[03:02:48]OFD Sender: No OFD packet to send [03:02:53]OFD Sender: No OFD packet to send [03:02:58]OFD Sender: No OFD packet to send [03:03:03]OFD Sender: No OFD packet to send [03:03:08]OFD Sender: No OFD packet to send [03:03:13]OFD Sender: No OFD packet to send [03:03:18]OFD Sender: No OFD packet to send [03:03:23]OFD Sender: No OFD packet to send [03:03:28]OFD Sender: No OFD packet to send [03:03:33]OFD Sender: No OFD packet to send [03:03:38]OFD Sender: No OFD packet to send [03:03:43]OFD Sender: No OFD packet to send [03:03:48]OFD Sender: No OFD packet to send [03:03:53]OFD Sender: No OFD packet to send [03:03:58]OFD Sender: No OFD packet to send [03:04:03]OFD Sender: No OFD packet to send [03:04:08]OFD Sender: No OFD packet to send [03:04:13]OFD Sender: No OFD packet to send [03:04:18]OFD Sender: No OFD packet to send [03:04:23]OFD Sender: No OFD packet to send [03:04:28]recv_with_timeout no data received [03:04:28]OFD Sender: No OFD packet to send [03:04:33]OFD Sender: No OFD packet to send [03:04:38]OFD Sender: No OFD packet to send [03:04:43]OFD Sender: No OFD packet to send [03:04:47]recv_with_timeout no data received [03:04:48]OFD Sender: No OFD packet to send [03:04:53]OFD Sender: No OFD packet to send [03:04:58]OFD Sender: No OFD packet to send [03:05:03]OFD Sender: No OFD packet to send [03:05:08]OFD Sender: No OFD packet to send [03:05:13]OFD Sender: No OFD packet to send [03:05:15]recv_with_timeout no data received [03:05:18]OFD Sender: No OFD packet to send [03:05:23]OFD Sender: No OFD packet to send [03:05:28]OFD Sender: No OFD packet to send [03:05:33]OFD Sender: No OFD packet to send [03:05:38]OFD Sender: No OFD packet to send [03:05:43]OFD Sender: No OFD packet to send [03:05:48]OFD Sender: No OFD packet to send [03:05:53]OFD Sender: No OFD packet to send [03:05:58]OFD Sender: No OFD packet to send [03:06:03]OFD Sender: No OFD packet to send [03:06:08]OFD Sender: No OFD packet to send [03:06:13]OFD Sender: No OFD packet to send [03:06:18]OFD Sender: No OFD packet to send [03:06:23]OFD Sender: No OFD packet to send [03:06:28]OFD Sender: No OFD packet to send [03:06:33]OFD Sender: No OFD packet to send [03:06:38]OFD Sender: No OFD packet to send [03:06:43]OFD Sender: No OFD packet to send [03:06:48]OFD Sender: No OFD packet to send [03:06:53]OFD Sender: No OFD packet to send [03:06:58]OFD Sender: No OFD packet to send [03:07:03]OFD Sender: No OFD packet to send [03:07:08]OFD Sender: No OFD packet to send [03:07:13]OFD Sender: No OFD packet to send [03:07:18]OFD Sender: No OFD packet to send [03:07:23]OFD Sender: No OFD packet to send [03:07:28]OFD Sender: No OFD packet to send [03:07:33]OFD Sender: No OFD packet to send [03:07:38]OFD Sender: No OFD packet to send [03:07:43]OFD Sender: No OFD packet to send [03:07:48]OFD Sender: No OFD packet to send [03:07:53]OFD Sender: No OFD packet to send [03:07:59]OFD Sender: No OFD packet to send [03:08:04]OFD Sender: No OFD packet to send [03:08:09]OFD Sender: No OFD packet to send [03:08:14]OFD Sender: No OFD packet to send [03:08:19]OFD Sender: No OFD packet to send [03:08:24]OFD Sender: No OFD packet to send [03:08:29]OFD Sender: No OFD packet to send [03:08:34]OFD Sender: No OFD packet to send [03:08:39]OFD Sender: No OFD packet to send [03:08:44]OFD Sender: No OFD packet to send [03:08:49]OFD Sender: No OFD packet to send [03:08:54]OFD Sender: No OFD packet to send [03:08:59]OFD Sender: No OFD packet to send [03:09:04]OFD Sender: No OFD packet to send [03:09:09]OFD Sender: No OFD packet to send [03:09:14]OFD Sender: No OFD packet to send [03:09:19]OFD Sender: No OFD packet to send [03:09:24]OFD Sender: No OFD packet to send [03:09:29]OFD Sender: No OFD packet to send [03:09:34]OFD Sender: No OFD packet to send [03:09:39]OFD Sender: No OFD packet to send [03:09:44]OFD Sender: No OFD packet to send [03:09:49]OFD Sender: No OFD packet to send [03:09:54]OFD Sender: No OFD packet to send [03:09:59]OFD Sender: No OFD packet to send [03:10:04]OFD Sender: No OFD packet to send [03:10:09]OFD Sender: No OFD packet to send [03:10:14]OFD Sender: No OFD packet to send [03:10:19]OFD Sender: No OFD packet to send [03:10:24]OFD Sender: No OFD packet to send [03:10:29]OFD Sender: No OFD packet to send [03:10:34]OFD Sender: No OFD packet to send [03:10:39]OFD Sender: No OFD packet to send [03:10:44]OFD Sender: No OFD packet to send [03:10:49]OFD Sender: No OFD packet to send [03:10:54]OFD Sender: No OFD packet to send [03:10:59]OFD Sender: No OFD packet to send [03:11:04]OFD Sender: No OFD packet to send [03:11:09]OFD Sender: No OFD packet to send [03:11:14]OFD Sender: No OFD packet to send [03:11:19]OFD Sender: No OFD packet to send [03:11:24]OFD Sender: No OFD packet to send [03:11:29]OFD Sender: No OFD packet to send [03:11:34]OFD Sender: No OFD packet to send [03:11:39]OFD Sender: No OFD packet to send [03:11:44]OFD Sender: No OFD packet to send [03:11:49]OFD Sender: No OFD packet to send [03:11:54]OFD Sender: No OFD packet to send [03:11:59]OFD Sender: No OFD packet to send [03:12:04]OFD Sender: No OFD packet to send [03:12:09]OFD Sender: No OFD packet to send [03:12:14]OFD Sender: No OFD packet to send [03:12:19]OFD Sender: No OFD packet to send [03:12:24]OFD Sender: No OFD packet to send [03:12:29]OFD Sender: No OFD packet to send [03:12:34]OFD Sender: No OFD packet to send [03:12:39]OFD Sender: No OFD packet to send [03:12:44]OFD Sender: No OFD packet to send [03:12:49]OFD Sender: No OFD packet to send [03:12:54]OFD Sender: No OFD packet to send [03:12:59]OFD Sender: No OFD packet to send [03:13:04]OFD Sender: No OFD packet to send [03:13:09]OFD Sender: No OFD packet to send [03:13:14]OFD Sender: No OFD packet to send [03:13:19]OFD Sender: No OFD packet to send [03:13:24]OFD Sender: No OFD packet to send [03:13:29]OFD Sender: No OFD packet to send [03:13:34]OFD Sender: No OFD packet to send [03:13:39]OFD Sender: No OFD packet to send [03:13:44]OFD Sender: No OFD packet to send [03:13:49]OFD Sender: No OFD packet to send [03:13:54]OFD Sender: No OFD packet to send [03:13:59]OFD Sender: No OFD packet to send [03:14:04]OFD Sender: No OFD packet to send [03:14:09]OFD Sender: No OFD packet to send [03:14:14]OFD Sender: No OFD packet to send [03:14:19]OFD Sender: No OFD packet to send [03:14:24]OFD Sender: No OFD packet to send [03:14:29]OFD Sender: No OFD packet to send [03:14:34]OFD Sender: No OFD packet to send [03:14:39]OFD Sender: No OFD packet to send [03:14:44]OFD Sender: No OFD packet to send [03:14:49]OFD Sender: No OFD packet to send [03:14:54]OFD Sender: No OFD packet to send [03:14:59]OFD Sender: No OFD packet to send [03:15:04]OFD Sender: No OFD packet to send [03:15:09]OFD Sender: No OFD packet to send [03:15:14]OFD Sender: No OFD packet to send [03:15:19]OFD Sender: No OFD packet to send [03:15:24]OFD Sender: No OFD packet to send [03:15:29]OFD Sender: No OFD packet to send [03:15:34]OFD Sender: No OFD packet to send [03:15:39]OFD Sender: No OFD packet to send [03:15:44]OFD Sender: No OFD packet to send [03:15:49]OFD Sender: No OFD packet to send [03:15:54]OFD Sender: No OFD packet to send [03:15:59]OFD Sender: No OFD packet to send [03:16:04]OFD Sender: No OFD packet to send [03:16:09]OFD Sender: No OFD packet to send [03:16:14]OFD Sender: No OFD packet to send [03:16:19]OFD Sender: No OFD packet to send [03:16:24]OFD Sender: No OFD packet to send [03:16:29]OFD Sender: No OFD packet to send [03:16:31]recv_with_timeout no data received [03:16:34]OFD Sender: No OFD packet to send [03:16:39]OFD Sender: No OFD packet to send [03:16:44]OFD Sender: No OFD packet to send [03:16:45]recv_with_timeout no data received [03:16:49]OFD Sender: No OFD packet to send [03:16:54]OFD Sender: No OFD packet to send [03:16:59]OFD Sender: No OFD packet to send [03:17:04]OFD Sender: No OFD packet to send [03:17:05]recv_with_timeout no data received [03:17:09]OFD Sender: No OFD packet to send [03:17:14]OFD Sender: No OFD packet to send [03:17:19]OFD Sender: No OFD packet to send [03:17:24]OFD Sender: No OFD packet to send [03:17:29]OFD Sender: No OFD packet to send [03:17:34]OFD Sender: No OFD packet to send [03:17:39]OFD Sender: No OFD packet to send [03:17:44]OFD Sender: No OFD packet to send [03:17:49]OFD Sender: No OFD packet to send [03:17:54]OFD Sender: No OFD packet to send [03:17:59]OFD Sender: No OFD packet to send [03:18:04]OFD Sender: No OFD packet to send [03:18:09]OFD Sender: No OFD packet to send [03:18:14]OFD Sender: No OFD packet to send [03:18:19]OFD Sender: No OFD packet to send [03:18:24]OFD Sender: No OFD packet to send [03:18:29]OFD Sender: No OFD packet to send [03:18:34]OFD Sender: No OFD packet to send [03:18:39]OFD Sender: No OFD packet to send [03:18:42]accept exits with 10 [03:18:42]New connection [03:18:42]New thread 3067137380 created [03:18:42]Thread 3066994020 joined [03:18:42]Waiting for new connection... [03:18:42] Sock 10.Parse request [03:18:42]Sock 10.Check first char [03:18:42]Sock 10.First char is OK [03:18:42]request: POST /json_proto HTTP/1.0 [03:18:42]Method: POST [03:18:42]URL: /json_proto [03:18:42]Method is POST - this is cgi request [03:18:42]url: /json_proto [03:18:42]query_string will be loaded in cgi processing [03:18:42]execute_cgi json_proto POST (null) [03:18:42]execute_cgi path=json_proto method=POST [03:18:42]POST find Content-Length [03:18:42]Host: 172.17.44.195:8080 [03:18:42]Content-Length: 679 [03:18:42]Content-Type: application/json [03:18:42] [03:18:42]POST finish read [03:18:42]Found Content-Length = 679 [03:18:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964256", "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" : 66.90, "quantity" : 10.020, "sum" : 670.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:18:42]execute_script... [03:18: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)1964256", "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" : 66.90, "quantity" : 10.020, "sum" : 670.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:18:42]POST & json_proto [03:18:42]process_json_proto [03:18:42]json parsed OK: [03:18:42]protocol is kg_v1.0 [03:18:42]action value=close_receipt [03:18:42]process_action close_receipt [03:18:42]cmd_close_receipt [03:18:42]MH_GetDate [03:18:42]Write to MH i2c: F0 00 00 09 09 01 [03:18:42]Write i2c OK [03:18:42]MH_I2C_Read... [03:18:42]Read from MH i2c: F0 [03:18:42]MH_I2C_Read... [03:18:42]Read from MH i2c: F0 09 00 [03:18:42]MH_I2C_Read... [03:18:42]Read from MH i2c: F0 09 00 09 09 00 93 19 17 67 82 C9 CF 66 B4 [03:18:42]GetLastDocTimeStamp 1729565191 [03:18:42]current date 1729567123 [03:18:42]FM_GetShiftState [03:18:42]SAM_PROTO_GetShiftState [03:18:42]wFMCommunicate request_size=4 [03:18:42]MH_SAM_APDU [03:18:42]CAPDU: 80 13 01 00 [03:18:42]Write to MH i2c: E2 08 00 0A 09 80 13 01 00 00 00 00 00 90 [03:18:42]Write i2c OK [03:18:42]MH_I2C_Read... [03:18:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:18:42]Read from MH i2c: E2 [03:18:42]MH_I2C_Read... [03:18:42]Read from MH i2c: E2 0E 00 [03:18:42]MH_I2C_Read... [03:18:42]Read from MH i2c: E2 0E 00 0A 09 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 57 [03:18:42]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [03:18:42]wFMCommunicate OK [03:18:42]SAM_PROTO_GetShiftState done [03:18:42]FM_GetShiftState done [03:18:42]opened in 1729555538 [03:18:42]opened+sec_in_day 1729641938 [03:18:42]quantity*price = 67033 [03:18:42]sum+1 = 67035 [03:18:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.19 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 23 22.10.2024 03:18 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228059 ФПД: 139138452724345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T031843&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228059&fm=139138452724345&tin=02508201610067®Number=0000000000091685&sum=67000 [03:18:43]StoreToDocumentArchive [03:18:43]shift 535 fd 228059 [03:18:43]save to /storage/0535/doc_00228059 [03:18:43]save last doc name /storage/0535/doc_00228059 to /storage/kkm_last_doc_name [03:18:43]save OK [03:18:43]Clear old archive folders... [03:18:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:18:43]tlvbuf is 0085BA70 [03:18:43]SAM_PROTO_ClearQueue [03:18:43]wFMCommunicate request_size=4 [03:18:43]MH_SAM_APDU [03:18:43]CAPDU: 80 09 00 00 [03:18:43]Write to MH i2c: E2 08 00 17 09 80 09 00 00 00 00 00 00 92 [03:18:43]Write i2c OK [03:18:43]MH_I2C_Read... [03:18:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:18:43]Read from MH i2c: E2 [03:18:43]MH_I2C_Read... [03:18:43]Read from MH i2c: E2 03 00 [03:18:43]MH_I2C_Read... [03:18:43]Read from MH i2c: E2 03 00 17 09 00 90 00 94 [03:18:43]RAPDU: 90 00 [03:18:43]wFMCommunicate OK [03:18:43]SAM_PROTO_ClearQueue done [03:18:43]KKMCreateOFDPacket [03:18:43]OFDProtocolAddRootSTLVToBuf [03:18:43]FM_MakeSignedData [03:18:43]FM_MakeSignedData [03:18:43]SAM_PROTO_SignData [03:18:43]wFMCommunicate request_size=4 [03:18:43]MH_SAM_APDU [03:18:43]CAPDU: 80 0D 01 02 [03:18:43]Write to MH i2c: E2 08 00 18 09 80 0D 01 02 00 00 00 00 9A [03:18:43]Write i2c OK [03:18:43]MH_I2C_Read... [03:18:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:18:43]Read from MH i2c: E2 [03:18:43]MH_I2C_Read... [03:18:43]Read from MH i2c: E2 03 00 [03:18:43]MH_I2C_Read... [03:18:43]Read from MH i2c: E2 03 00 18 09 00 90 00 95 [03:18:43]RAPDU: 90 00 [03:18:43]wFMCommunicate OK [03:18:43]wFMCommunicate request_size=255 [03:18:43]MH_SAM_APDU [03:18: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 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 93 19 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DB 7A 03 00 35 04 06 00 7E [03:18:43]Write to MH i2c: E2 02 01 19 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 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 93 19 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DB 7A 03 00 35 04 06 00 7E 00 00 FC [03:18:43]Write i2c OK [03:18:43]MH_I2C_Read... [03:18:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:18:43]Read from MH i2c: E2 [03:18:43]MH_I2C_Read... [03:18:43]Read from MH i2c: E2 03 00 [03:18:43]MH_I2C_Read... [03:18:43]Read from MH i2c: E2 03 00 19 09 00 90 00 96 [03:18:43]RAPDU: 90 00 [03:18:43]wFMCommunicate OK [03:18:43]wFMCommunicate request_size=10 [03:18:43]MH_SAM_APDU [03:18:43]CAPDU: 80 0D 02 02 05 8B B2 0C 9A 79 [03:18:43]Write to MH i2c: E2 0D 00 1A 09 80 0D 02 02 05 00 8B B2 0C 9A 79 00 00 03 [03:18:43]Write i2c OK [03:18:43]MH_I2C_Read... [03:18:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:18:43]Read from MH i2c: E2 [03:18:43]MH_I2C_Read... [03:18:43]Read from MH i2c: E2 03 00 [03:18:43]MH_I2C_Read... [03:18:43]Read from MH i2c: E2 03 00 1A 09 00 90 00 97 [03:18:43]RAPDU: 90 00 [03:18:43]wFMCommunicate OK [03:18:43]wFMCommunicate request_size=4 [03:18:43]MH_SAM_APDU [03:18:43]CAPDU: 80 0D 03 02 [03:18:43]Write to MH i2c: E2 08 00 1B 09 80 0D 03 02 00 00 00 00 9F [03:18:43]Write i2c OK [03:18:43]MH_I2C_Read... [03:18:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:18:43]Read from MH i2c: E2 [03:18:43]MH_I2C_Read... [03:18:43]Read from MH i2c: E2 0B 00 [03:18:43]MH_I2C_Read... [03:18:43]Read from MH i2c: E2 0B 00 1B 09 00 8F 6E 1C 02 DE 7F 76 84 90 00 12 [03:18:43]RAPDU: 8F 6E 1C 02 DE 7F 76 84 90 00 [03:18:43]wFMCommunicate OK [03:18:43]SAM_PROTO_SignData done [03:18:43]FM_MakeSignedData done [03:18:43]CreateOFDProtocolMessage [03:18:43]wFMCommunicate request_size=4 [03:18:43]MH_SAM_APDU [03:18:43]CAPDU: 80 11 00 00 [03:18:43]Write to MH i2c: E2 08 00 1C 09 80 11 00 00 00 00 00 00 9F [03:18:43]Write i2c OK [03:18:43]MH_I2C_Read... [03:18:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:18:43]Read from MH i2c: E2 [03:18:43]MH_I2C_Read... [03:18:43]Read from MH i2c: E2 17 00 [03:18:43]MH_I2C_Read... [03:18:43]Read from MH i2c: E2 17 00 1C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F6 [03:18:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [03:18:43]wFMCommunicate OK [03:18:43]CreateOFDProtocolMessage done [03:18:43]OFDSenderStorePacket 228059 [03:18:43]StoreOFDPacket docnum=228059 [03:18:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D4 A3 07 01 8D F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 93 19 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DB 7A 03 00 35 04 06 00 7E 8B B2 0C 9A 79 8F 6E 1C 02 DE 7F 76 84 [03:18:43]CheckFolder [03:18:43]dirname=/storage/ofd_packets [03:18:43]CheckFolder done [03:18:43]ProducePacketName [03:18:43]name=ofd_packets/00228059 [03:18:43]NVStorageSaveData ofd_packets/00228059 [03:18:43]File name is /storage/ofd_packets/00228059 [03:18:43]Write 301 bytes [03:18:43]NVStorageSaveData done [03:18:43]OFDSenderStorePacket done [03:18:43]KKMCreateOFDPacket done [03:18:43]NVStorageSaveData kkm_last_timestamp [03:18:43]File name is /storage/kkm_last_timestamp [03:18:43]Write 4 bytes [03:18:43]NVStorageSaveData done [03:18:43]ExternCall_PrintAddStr [03:18:43]wPrintStart [03:18:43]Write to MH i2c: 01 00 00 1D 09 26 [03:18:43]Write i2c OK [03:18:43]MH_I2C_Read... [03:18:43]Read from MH i2c: 01 [03:18:43]MH_I2C_Read... [03:18:43]Read from MH i2c: 01 07 00 [03:18:43]MH_I2C_Read... [03:18:43]Read from MH i2c: 01 07 00 1D 09 00 00 00 00 00 FF 0F 3B [03:18:43]RasterBufferAndPrint [03:18:43]line Счет N : (1)1964256 [03:18:43]line ИНН: 02508201610067 [03:18:43]line Контрольно-Кассовый Чек [03:18:43]line ПРОДАЖА [03:18:43]line ТРК (МРК, ГНК) : 53 [03:18:43]line Товар: 2710124130 [03:18:43]line Аи-92-К-5 [03:18:43]line 10.020 * 66.90 [03:18:43]line = 670.34 [03:18:43]line НДС 12% НСП 1% [03:18:43]line > о реализуемом товаре [03:18:43]line ОКРУГЛЕНИЕ: -0.34 [03:18:43]line ИТОГО: 670.00 [03:18:43]line Внесено: 670.00 [03:18:43]line СДАЧА: 0.00 [03:18:43]line НСП 1% : 5.93 [03:18:43]line НДС 12% : 71.19 [03:18:43]line Наличными: 670.00 [03:18:43]line Безнал.: 0.00 [03:18:43]line Место: АЗС № 133 "Партнер Нефть" [03:18:43]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [03:18:43]line СНО: Общий режим [03:18:43]line Чек 23 22.10.2024 03:18 [03:18:43]line Смена: 535 ФФД: 1.0 [03:18:43]line ЗНМ: 0300000091 [03:18:43]line РНМ: 0000000000091685 [03:18:43]line Версия ККМ: 001 [03:18:43]line ФМ: 0000000000871839 [03:18:43]line ФД: 228059 [03:18:44]line ФПД: 139138452724345 [03:18:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T031843&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228059&fm=139138452724345&tin=02508201610067®Number=0000000000091685&sum=67000 [03:18:44]OFD Sender: Processing packet 228059 [packets to send 38, broken 37] [03:18:44]ProducePacketName [03:18:44]name=ofd_packets/00228059 [03:18:44]OFD Sender: To server: pG, [03:18:44]CommunicateWithHost lk.salyk.kg:30040 [03:18:44]ConnectInit lk.salyk.kg [03:18:44]written 0, free lines is 4095 [03:18:44]Connected sock=9 [03:18:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D4 A3 07 01 8D F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 93 19 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DB 7A 03 00 35 04 06 00 7E 8B B2 0C 9A 79 8F 6E 1C 02 DE 7F 76 84 [03:18:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 ED 50 47 00 D9 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DB 7A 03 00 F4 03 04 00 8D C4 16 67 B6 04 01 00 00 EB 8F F0 B3 E8 FA 82 65 [03:18:44]CommunicateWithHost err = 0 [03:18:44]CheckOFDResponse [03:18:44]1017 (14) - 77093643461234 [03:18:44]1041 (16) - 0000000000871839 [03:18:44]1040 (4) - 228059 [03:18:44]1012 (4) - 21.10.2024 21:15 [03:18:44]1206 (1) - 0 [03:18:44]OFD Sender: Remove packet 228059 [03:18:44]ProducePacketName [03:18:44]name=ofd_packets/00228059 [03:18:44]NVStorageDeleteData [03:18:44]Write to MH i2c: 01 00 00 47 09 50 [03:18:44]Write i2c OK [03:18:44]MH_I2C_Read... [03:18:44]Read from MH i2c: 01 [03:18:44]MH_I2C_Read... [03:18:44]Read from MH i2c: 01 07 00 [03:18:44]MH_I2C_Read... [03:18:44]Read from MH i2c: 01 07 00 47 09 00 00 00 00 00 9D 0C 00 [03:18:44]RasterBufferAndPrint [03:18:44]line [03:18:44]line [03:18:44]line [03:18:44]line [03:18:44]line [03:18:44]written 0, free lines is 3233 [03:18:44]MH_Cut [03:18:44]Write to MH i2c: D1 01 00 4E 09 01 29 [03:18:44]Write i2c OK [03:18:44]MH_I2C_Read... [03:18:44]Read from MH i2c: D1 [03:18:44]MH_I2C_Read... [03:18:44]Read from MH i2c: D1 01 00 [03:18:44]MH_I2C_Read... [03:18:44]Read from MH i2c: D1 01 00 4E 09 00 28 [03:18:44]Write to MH i2c: 01 00 00 4F 09 58 [03:18:44]Write i2c OK [03:18:44]MH_I2C_Read... [03:18:44]OFD Sender: No OFD packet to send [03:18:45]*** Cut start [03:18:45]*** Partial cut [03:18:45]*** CUTSNS_PIN = 1 [03:18:45]*** CUTSNS_PIN = 0 [03:18:45]*** Brake cut motor [03:18:46]Read from MH i2c: 01 [03:18:46]MH_I2C_Read... [03:18:46]*** Stop cut motor [03:18:46]*** Cut end [03:18:46]Read from MH i2c: 01 07 00 [03:18:46]MH_I2C_Read... [03:18:46]Read from MH i2c: 01 07 00 4F 09 00 00 00 00 00 FF 0F 6D [03:18:46]process_action close_receipt done [03:18:46]requested_data is exist [03:18:46]produce_requested_data [03:18:46]requested_item fm.sn is exist - process it [03:18:46]wFMCommunicate request_size=4 [03:18:46]MH_SAM_APDU [03:18:46]CAPDU: 80 11 00 00 [03:18:46]Write to MH i2c: E2 08 00 50 09 80 11 00 00 00 00 00 00 D3 [03:18:46]Write i2c OK [03:18:46]MH_I2C_Read... [03:18:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:18:46]Read from MH i2c: E2 [03:18:46]MH_I2C_Read... [03:18:46]Read from MH i2c: E2 17 00 [03:18:46]MH_I2C_Read... [03:18:46]Read from MH i2c: E2 17 00 50 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2A [03:18:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [03:18:46]wFMCommunicate OK [03:18:46]requested_item fd.num is exist - process it [03:18:46]SAM_PROTO_GetFieldsCounters [03:18:46]wFMCommunicate request_size=4 [03:18:46]MH_SAM_APDU [03:18:46]CAPDU: 80 13 00 00 [03:18:46]Write to MH i2c: E2 08 00 51 09 80 13 00 00 00 00 00 00 D6 [03:18:46]Write i2c OK [03:18:46]MH_I2C_Read... [03:18:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:18:46]Read from MH i2c: E2 [03:18:46]MH_I2C_Read... [03:18:46]Read from MH i2c: E2 62 00 [03:18:46]MH_I2C_Read... [03:18:46]Read from MH i2c: E2 62 00 51 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 DB 7A 03 00 0E 04 04 00 17 02 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 B5 [03:18:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 DB 7A 03 00 0E 04 04 00 17 02 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 [03:18:46]wFMCommunicate OK [03:18:46]SAM_PROTO_GetFieldsCounters done [03:18:46]requested_item shift.num is exist - process it [03:18:46]requested_item shift.opened is exist - process it [03:18:46]req_shift_opened [03:18:46]FM_GetShiftState [03:18:46]SAM_PROTO_GetShiftState [03:18:46]wFMCommunicate request_size=4 [03:18:46]MH_SAM_APDU [03:18:46]CAPDU: 80 13 01 00 [03:18:46]Write to MH i2c: E2 08 00 52 09 80 13 01 00 00 00 00 00 D8 [03:18:46]Write i2c OK [03:18:46]MH_I2C_Read... [03:18:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:18:46]Read from MH i2c: E2 [03:18:46]MH_I2C_Read... [03:18:46]Read from MH i2c: E2 0E 00 [03:18:46]MH_I2C_Read... [03:18:46]Read from MH i2c: E2 0E 00 52 09 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 9F [03:18:46]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [03:18:46]wFMCommunicate OK [03:18:46]SAM_PROTO_GetShiftState done [03:18:46]FM_GetShiftState done [03:18:46]req_shift_opened done [03:18:46]requested_item shift.open_date is exist - process it [03:18:46]req_shift_open_date [03:18:46]req_shift_open_date done [03:18:46]produce_requested_data done [03:18:46]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228059,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [03:18:46]process_action_free close_receipt [03:18:46]json_value_free [03:18:46]json_value_free done [03:18:46]process_json_proto returns [03:18:46]Send response to host [03:18:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228059,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [03:18:46]free response buf [03:18:46]execute_script done [03:18:46]execute_script returns [03:18:46]free content buf [03:18:46]Sock 10.Close socket [03:18:46]Sock 10.Thread stoped [03:18:49]OFD Sender: No OFD packet to send [03:18:54]OFD Sender: No OFD packet to send [03:18:59]OFD Sender: No OFD packet to send [03:19:04]OFD Sender: No OFD packet to send [03:19:09]OFD Sender: No OFD packet to send [03:19:14]OFD Sender: No OFD packet to send [03:19:19]OFD Sender: No OFD packet to send [03:19:24]OFD Sender: No OFD packet to send [03:19:29]OFD Sender: No OFD packet to send [03:19:34]OFD Sender: No OFD packet to send [03:19:39]OFD Sender: No OFD packet to send [03:19:44]OFD Sender: No OFD packet to send [03:19:49]OFD Sender: No OFD packet to send [03:19:54]OFD Sender: No OFD packet to send [03:19:59]OFD Sender: No OFD packet to send [03:20:04]OFD Sender: No OFD packet to send [03:20:09]OFD Sender: No OFD packet to send [03:20:14]OFD Sender: No OFD packet to send [03:20:19]OFD Sender: No OFD packet to send [03:20:24]OFD Sender: No OFD packet to send [03:20:29]OFD Sender: No OFD packet to send [03:20:34]OFD Sender: No OFD packet to send [03:20:39]OFD Sender: No OFD packet to send [03:20:44]OFD Sender: No OFD packet to send [03:20:49]OFD Sender: No OFD packet to send [03:20:54]OFD Sender: No OFD packet to send [03:20:59]OFD Sender: No OFD packet to send [03:21:05]OFD Sender: No OFD packet to send [03:21:10]OFD Sender: No OFD packet to send [03:21:15]OFD Sender: No OFD packet to send [03:21:20]OFD Sender: No OFD packet to send [03:21:25]OFD Sender: No OFD packet to send [03:21:30]OFD Sender: No OFD packet to send [03:21:35]OFD Sender: No OFD packet to send [03:21:40]OFD Sender: No OFD packet to send [03:21:45]OFD Sender: No OFD packet to send [03:21:50]OFD Sender: No OFD packet to send [03:21:55]OFD Sender: No OFD packet to send [03:22:00]OFD Sender: No OFD packet to send [03:22:05]OFD Sender: No OFD packet to send [03:22:10]OFD Sender: No OFD packet to send [03:22:15]OFD Sender: No OFD packet to send [03:22:20]OFD Sender: No OFD packet to send [03:22:25]OFD Sender: No OFD packet to send [03:22:30]OFD Sender: No OFD packet to send [03:22:35]OFD Sender: No OFD packet to send [03:22:40]OFD Sender: No OFD packet to send [03:22:45]OFD Sender: No OFD packet to send [03:22:50]OFD Sender: No OFD packet to send [03:22:55]OFD Sender: No OFD packet to send [03:23:00]OFD Sender: No OFD packet to send [03:23:05]OFD Sender: No OFD packet to send [03:23:10]OFD Sender: No OFD packet to send [03:23:15]OFD Sender: No OFD packet to send [03:23:20]OFD Sender: No OFD packet to send [03:23:25]OFD Sender: No OFD packet to send [03:23:30]OFD Sender: No OFD packet to send [03:23:35]OFD Sender: No OFD packet to send [03:23:40]OFD Sender: No OFD packet to send [03:23:45]OFD Sender: No OFD packet to send [03:23:50]OFD Sender: No OFD packet to send [03:23:55]OFD Sender: No OFD packet to send [03:24:00]OFD Sender: No OFD packet to send [03:24:05]OFD Sender: No OFD packet to send [03:24:10]OFD Sender: No OFD packet to send [03:24:15]OFD Sender: No OFD packet to send [03:24:20]OFD Sender: No OFD packet to send [03:24:25]OFD Sender: No OFD packet to send [03:24:30]OFD Sender: No OFD packet to send [03:24:35]OFD Sender: No OFD packet to send [03:24:40]OFD Sender: No OFD packet to send [03:24:45]OFD Sender: No OFD packet to send [03:24:50]OFD Sender: No OFD packet to send [03:24:55]OFD Sender: No OFD packet to send [03:25:00]OFD Sender: No OFD packet to send [03:25:05]OFD Sender: No OFD packet to send [03:25:10]OFD Sender: No OFD packet to send [03:25:15]OFD Sender: No OFD packet to send [03:25:20]OFD Sender: No OFD packet to send [03:25:25]OFD Sender: No OFD packet to send [03:25:30]OFD Sender: No OFD packet to send [03:25:35]OFD Sender: No OFD packet to send [03:25:40]OFD Sender: No OFD packet to send [03:25:45]OFD Sender: No OFD packet to send [03:25:50]OFD Sender: No OFD packet to send [03:25:55]OFD Sender: No OFD packet to send [03:26:00]OFD Sender: No OFD packet to send [03:26:05]OFD Sender: No OFD packet to send [03:26:10]OFD Sender: No OFD packet to send [03:26:15]OFD Sender: No OFD packet to send [03:26:20]OFD Sender: No OFD packet to send [03:26:25]OFD Sender: No OFD packet to send [03:26:30]OFD Sender: No OFD packet to send [03:26:35]OFD Sender: No OFD packet to send [03:26:40]OFD Sender: No OFD packet to send [03:26:45]OFD Sender: No OFD packet to send [03:26:50]OFD Sender: No OFD packet to send [03:26:55]OFD Sender: No OFD packet to send [03:27:00]OFD Sender: No OFD packet to send [03:27:05]OFD Sender: No OFD packet to send [03:27:10]OFD Sender: No OFD packet to send [03:27:15]OFD Sender: No OFD packet to send [03:27:20]OFD Sender: No OFD packet to send [03:27:25]OFD Sender: No OFD packet to send [03:27:30]OFD Sender: No OFD packet to send [03:27:35]OFD Sender: No OFD packet to send [03:27:40]OFD Sender: No OFD packet to send [03:27:45]OFD Sender: No OFD packet to send [03:27:50]OFD Sender: No OFD packet to send [03:27:55]OFD Sender: No OFD packet to send [03:28:00]OFD Sender: No OFD packet to send [03:28:05]OFD Sender: No OFD packet to send [03:28:10]OFD Sender: No OFD packet to send [03:28:15]OFD Sender: No OFD packet to send [03:28:20]OFD Sender: No OFD packet to send [03:28:25]OFD Sender: No OFD packet to send [03:28:30]OFD Sender: No OFD packet to send [03:28:35]OFD Sender: No OFD packet to send [03:28:40]OFD Sender: No OFD packet to send [03:28:45]OFD Sender: No OFD packet to send [03:28:50]OFD Sender: No OFD packet to send [03:28:55]OFD Sender: No OFD packet to send [03:29:00]OFD Sender: No OFD packet to send [03:29:05]OFD Sender: No OFD packet to send [03:29:10]OFD Sender: No OFD packet to send [03:29:15]OFD Sender: No OFD packet to send [03:29:20]OFD Sender: No OFD packet to send [03:29:25]OFD Sender: No OFD packet to send [03:29:30]OFD Sender: No OFD packet to send [03:29:35]OFD Sender: No OFD packet to send [03:29:40]OFD Sender: No OFD packet to send [03:29:45]OFD Sender: No OFD packet to send [03:29:50]OFD Sender: No OFD packet to send [03:29:55]OFD Sender: No OFD packet to send [03:30:00]OFD Sender: No OFD packet to send [03:30:05]OFD Sender: No OFD packet to send [03:30:10]OFD Sender: No OFD packet to send [03:30:15]OFD Sender: No OFD packet to send [03:30:20]OFD Sender: No OFD packet to send [03:30:25]OFD Sender: No OFD packet to send [03:30:30]OFD Sender: No OFD packet to send [03:30:35]OFD Sender: No OFD packet to send [03:30:40]OFD Sender: No OFD packet to send [03:30:45]OFD Sender: No OFD packet to send [03:30:50]OFD Sender: No OFD packet to send [03:30:55]OFD Sender: No OFD packet to send [03:31:00]OFD Sender: No OFD packet to send [03:31:05]OFD Sender: No OFD packet to send [03:31:10]OFD Sender: No OFD packet to send [03:31:15]OFD Sender: No OFD packet to send [03:31:20]OFD Sender: No OFD packet to send [03:31:25]OFD Sender: No OFD packet to send [03:31:30]OFD Sender: No OFD packet to send [03:31:35]OFD Sender: No OFD packet to send [03:31:40]OFD Sender: No OFD packet to send [03:31:45]OFD Sender: No OFD packet to send [03:31:50]OFD Sender: No OFD packet to send [03:31:55]OFD Sender: No OFD packet to send [03:32:00]OFD Sender: No OFD packet to send [03:32:05]OFD Sender: No OFD packet to send [03:32:10]OFD Sender: No OFD packet to send [03:32:15]OFD Sender: No OFD packet to send [03:32:20]OFD Sender: No OFD packet to send [03:32:25]OFD Sender: No OFD packet to send [03:32:30]OFD Sender: No OFD packet to send [03:32:35]OFD Sender: No OFD packet to send [03:32:40]OFD Sender: No OFD packet to send [03:32:45]OFD Sender: No OFD packet to send [03:32:50]OFD Sender: No OFD packet to send [03:32:55]OFD Sender: No OFD packet to send [03:33:00]OFD Sender: No OFD packet to send [03:33:05]OFD Sender: No OFD packet to send [03:33:10]OFD Sender: No OFD packet to send [03:33:15]OFD Sender: No OFD packet to send [03:33:20]OFD Sender: No OFD packet to send [03:33:25]OFD Sender: No OFD packet to send [03:33:30]OFD Sender: No OFD packet to send [03:33:35]OFD Sender: No OFD packet to send [03:33:40]OFD Sender: No OFD packet to send [03:33:45]OFD Sender: No OFD packet to send [03:33:50]OFD Sender: No OFD packet to send [03:33:55]OFD Sender: No OFD packet to send [03:34:00]OFD Sender: No OFD packet to send [03:34:05]OFD Sender: No OFD packet to send [03:34:10]OFD Sender: No OFD packet to send [03:34:15]OFD Sender: No OFD packet to send [03:34:20]OFD Sender: No OFD packet to send [03:34:25]OFD Sender: No OFD packet to send [03:34:30]OFD Sender: No OFD packet to send [03:34:35]OFD Sender: No OFD packet to send [03:34:40]OFD Sender: No OFD packet to send [03:34:45]OFD Sender: No OFD packet to send [03:34:50]OFD Sender: No OFD packet to send [03:34:55]OFD Sender: No OFD packet to send [03:35:00]OFD Sender: No OFD packet to send [03:35:05]OFD Sender: No OFD packet to send [03:35:10]OFD Sender: No OFD packet to send [03:35:15]OFD Sender: No OFD packet to send [03:35:20]OFD Sender: No OFD packet to send [03:35:25]OFD Sender: No OFD packet to send [03:35:30]OFD Sender: No OFD packet to send [03:35:35]OFD Sender: No OFD packet to send [03:35:40]OFD Sender: No OFD packet to send [03:35:45]OFD Sender: No OFD packet to send [03:35:50]OFD Sender: No OFD packet to send [03:35:55]OFD Sender: No OFD packet to send [03:36:00]OFD Sender: No OFD packet to send [03:36:05]OFD Sender: No OFD packet to send [03:36:10]OFD Sender: No OFD packet to send [03:36:15]OFD Sender: No OFD packet to send [03:36:20]OFD Sender: No OFD packet to send [03:36:25]OFD Sender: No OFD packet to send [03:36:30]OFD Sender: No OFD packet to send [03:36:35]OFD Sender: No OFD packet to send [03:36:40]OFD Sender: No OFD packet to send [03:36:45]OFD Sender: No OFD packet to send [03:36:50]OFD Sender: No OFD packet to send [03:36:55]OFD Sender: No OFD packet to send [03:37:00]OFD Sender: No OFD packet to send [03:37:05]OFD Sender: No OFD packet to send [03:37:10]OFD Sender: No OFD packet to send [03:37:15]OFD Sender: No OFD packet to send [03:37:20]OFD Sender: No OFD packet to send [03:37:25]OFD Sender: No OFD packet to send [03:37:30]OFD Sender: No OFD packet to send [03:37:35]OFD Sender: No OFD packet to send [03:37:40]OFD Sender: No OFD packet to send [03:37:45]OFD Sender: No OFD packet to send [03:37:50]OFD Sender: No OFD packet to send [03:37:55]OFD Sender: No OFD packet to send [03:38:00]OFD Sender: No OFD packet to send [03:38:05]OFD Sender: No OFD packet to send [03:38:10]OFD Sender: No OFD packet to send [03:38:15]OFD Sender: No OFD packet to send [03:38:20]OFD Sender: No OFD packet to send [03:38:25]OFD Sender: No OFD packet to send [03:38:30]OFD Sender: No OFD packet to send [03:38:35]OFD Sender: No OFD packet to send [03:38:40]OFD Sender: No OFD packet to send [03:38:45]OFD Sender: No OFD packet to send [03:38:50]OFD Sender: No OFD packet to send [03:38:55]OFD Sender: No OFD packet to send [03:39:00]OFD Sender: No OFD packet to send [03:39:05]OFD Sender: No OFD packet to send [03:39:10]OFD Sender: No OFD packet to send [03:39:15]OFD Sender: No OFD packet to send [03:39:20]OFD Sender: No OFD packet to send [03:39:25]OFD Sender: No OFD packet to send [03:39:30]OFD Sender: No OFD packet to send [03:39:35]OFD Sender: No OFD packet to send [03:39:40]OFD Sender: No OFD packet to send [03:39:45]OFD Sender: No OFD packet to send [03:39:50]OFD Sender: No OFD packet to send [03:39:55]OFD Sender: No OFD packet to send [03:40:00]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:38]recv_with_timeout no data received [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:44:57]recv_with_timeout no data received [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:15]recv_with_timeout no data received [03:45:16]OFD Sender: No OFD packet to send [03:45:21]OFD Sender: No OFD packet to send [03:45:26]OFD Sender: No OFD packet to send [03:45:31]OFD Sender: No OFD packet to send [03:45:36]OFD Sender: No OFD packet to send [03:45:41]OFD Sender: No OFD packet to send [03:45:46]OFD Sender: No OFD packet to send [03:45:51]OFD Sender: No OFD packet to send [03:45:56]OFD Sender: No OFD packet to send [03:46:01]OFD Sender: No OFD packet to send [03:46:06]OFD Sender: No OFD packet to send [03:46:11]OFD Sender: No OFD packet to send [03:46:16]OFD Sender: No OFD packet to send [03:46:21]OFD Sender: No OFD packet to send [03:46:26]OFD Sender: No OFD packet to send [03:46:31]OFD Sender: No OFD packet to send [03:46:36]OFD Sender: No OFD packet to send [03:46:41]OFD Sender: No OFD packet to send [03:46:46]OFD Sender: No OFD packet to send [03:46:51]OFD Sender: No OFD packet to send [03:46:56]OFD Sender: No OFD packet to send [03:47:01]OFD Sender: No OFD packet to send [03:47:06]OFD Sender: No OFD packet to send [03:47:11]OFD Sender: No OFD packet to send [03:47:16]OFD Sender: No OFD packet to send [03:47:21]OFD Sender: No OFD packet to send [03:47:26]OFD Sender: No OFD packet to send [03:47:31]OFD Sender: No OFD packet to send [03:47:36]OFD Sender: No OFD packet to send [03:47:41]OFD Sender: No OFD packet to send [03:47:46]OFD Sender: No OFD packet to send [03:47:51]OFD Sender: No OFD packet to send [03:47:56]OFD Sender: No OFD packet to send [03:48:01]OFD Sender: No OFD packet to send [03:48:06]OFD Sender: No OFD packet to send [03:48:11]OFD Sender: No OFD packet to send [03:48:16]OFD Sender: No OFD packet to send [03:48:21]OFD Sender: No OFD packet to send [03:48:26]OFD Sender: No OFD packet to send [03:48:31]OFD Sender: No OFD packet to send [03:48:36]OFD Sender: No OFD packet to send [03:48:41]OFD Sender: No OFD packet to send [03:48:46]OFD Sender: No OFD packet to send [03:48:51]OFD Sender: No OFD packet to send [03:48:56]OFD Sender: No OFD packet to send [03:49:01]OFD Sender: No OFD packet to send [03:49:06]OFD Sender: No OFD packet to send [03:49:11]OFD Sender: No OFD packet to send [03:49:16]OFD Sender: No OFD packet to send [03:49:21]OFD Sender: No OFD packet to send [03:49:26]OFD Sender: No OFD packet to send [03:49:31]OFD Sender: No OFD packet to send [03:49:36]OFD Sender: No OFD packet to send [03:49:41]OFD Sender: No OFD packet to send [03:49:46]OFD Sender: No OFD packet to send [03:49:51]OFD Sender: No OFD packet to send [03:49:56]OFD Sender: No OFD packet to send [03:50:01]OFD Sender: No OFD packet to send [03:50:06]OFD Sender: No OFD packet to send [03:50:11]OFD Sender: No OFD packet to send [03:50:16]OFD Sender: No OFD packet to send [03:50:21]OFD Sender: No OFD packet to send [03:50:26]OFD Sender: No OFD packet to send [03:50:31]OFD Sender: No OFD packet to send [03:50:36]OFD Sender: No OFD packet to send [03:50:41]OFD Sender: No OFD packet to send [03:50:46]OFD Sender: No OFD packet to send [03:50:51]OFD Sender: No OFD packet to send [03:50:56]OFD Sender: No OFD packet to send [03:51:01]OFD Sender: No OFD packet to send [03:51:06]OFD Sender: No OFD packet to send [03:51:11]OFD Sender: No OFD packet to send [03:51:16]OFD Sender: No OFD packet to send [03:51:21]OFD Sender: No OFD packet to send [03:51:26]OFD Sender: No OFD packet to send [03:51:31]OFD Sender: No OFD packet to send [03:51:36]OFD Sender: No OFD packet to send [03:51:41]OFD Sender: No OFD packet to send [03:51:46]OFD Sender: No OFD packet to send [03:51:51]OFD Sender: No OFD packet to send [03:51:56]OFD Sender: No OFD packet to send [03:52:01]OFD Sender: No OFD packet to send [03:52:06]OFD Sender: No OFD packet to send [03:52:11]OFD Sender: No OFD packet to send [03:52:16]OFD Sender: No OFD packet to send [03:52:21]OFD Sender: No OFD packet to send [03:52:26]OFD Sender: No OFD packet to send [03:52:31]OFD Sender: No OFD packet to send [03:52:36]OFD Sender: No OFD packet to send [03:52:41]OFD Sender: No OFD packet to send [03:52:46]OFD Sender: No OFD packet to send [03:52:51]OFD Sender: No OFD packet to send [03:52:56]OFD Sender: No OFD packet to send [03:53:01]OFD Sender: No OFD packet to send [03:53:06]OFD Sender: No OFD packet to send [03:53:11]OFD Sender: No OFD packet to send [03:53:16]OFD Sender: No OFD packet to send [03:53:21]OFD Sender: No OFD packet to send [03:53:26]OFD Sender: No OFD packet to send [03:53:31]OFD Sender: No OFD packet to send [03:53:36]OFD Sender: No OFD packet to send [03:53:41]OFD Sender: No OFD packet to send [03:53:46]OFD Sender: No OFD packet to send [03:53:51]OFD Sender: No OFD packet to send [03:53:56]OFD Sender: No OFD packet to send [03:54:01]OFD Sender: No OFD packet to send [03:54:06]OFD Sender: No OFD packet to send [03:54:11]OFD Sender: No OFD packet to send [03:54:16]OFD Sender: No OFD packet to send [03:54:21]OFD Sender: No OFD packet to send [03:54:26]OFD Sender: No OFD packet to send [03:54:31]OFD Sender: No OFD packet to send [03:54:36]OFD Sender: No OFD packet to send [03:54:41]OFD Sender: No OFD packet to send [03:54:42]recv_with_timeout no data received [03:54:46]OFD Sender: No OFD packet to send [03:54:51]OFD Sender: No OFD packet to send [03:54:56]OFD Sender: No OFD packet to send [03:55:00]recv_with_timeout no data received [03:55:01]OFD Sender: No OFD packet to send [03:55:06]OFD Sender: No OFD packet to send [03:55:11]OFD Sender: No OFD packet to send [03:55:16]OFD Sender: No OFD packet to send [03:55:21]OFD Sender: No OFD packet to send [03:55:26]OFD Sender: No OFD packet to send [03:55:31]OFD Sender: No OFD packet to send [03:55:36]OFD Sender: No OFD packet to send [03:55:41]OFD Sender: No OFD packet to send [03:55:46]OFD Sender: No OFD packet to send [03:55:51]OFD Sender: No OFD packet to send [03:55:56]OFD Sender: No OFD packet to send [03:56:01]OFD Sender: No OFD packet to send [03:56:06]OFD Sender: No OFD packet to send [03:56:11]OFD Sender: No OFD packet to send [03:56:16]OFD Sender: No OFD packet to send [03:56:21]OFD Sender: No OFD packet to send [03:56:26]OFD Sender: No OFD packet to send [03:56:31]OFD Sender: No OFD packet to send [03:56:36]OFD Sender: No OFD packet to send [03:56:41]OFD Sender: No OFD packet to send [03:56:46]OFD Sender: No OFD packet to send [03:56:51]OFD Sender: No OFD packet to send [03:56:56]OFD Sender: No OFD packet to send [03:57:01]OFD Sender: No OFD packet to send [03:57:06]OFD Sender: No OFD packet to send [03:57:11]OFD Sender: No OFD packet to send [03:57:16]OFD Sender: No OFD packet to send [03:57:21]OFD Sender: No OFD packet to send [03:57:26]OFD Sender: No OFD packet to send [03:57:31]OFD Sender: No OFD packet to send [03:57:36]OFD Sender: No OFD packet to send [03:57:41]OFD Sender: No OFD packet to send [03:57:46]OFD Sender: No OFD packet to send [03:57:51]OFD Sender: No OFD packet to send [03:57:56]OFD Sender: No OFD packet to send [03:58:01]OFD Sender: No OFD packet to send [03:58:06]OFD Sender: No OFD packet to send [03:58:11]OFD Sender: No OFD packet to send [03:58:16]OFD Sender: No OFD packet to send [03:58:21]OFD Sender: No OFD packet to send [03:58:26]OFD Sender: No OFD packet to send [03:58:31]OFD Sender: No OFD packet to send [03:58:36]OFD Sender: No OFD packet to send [03:58:41]OFD Sender: No OFD packet to send [03:58:46]OFD Sender: No OFD packet to send [03:58:51]OFD Sender: No OFD packet to send [03:58:56]OFD Sender: No OFD packet to send [03:59:01]OFD Sender: No OFD packet to send [03:59:07]OFD Sender: No OFD packet to send [03:59:12]OFD Sender: No OFD packet to send [03:59:17]OFD Sender: No OFD packet to send [03:59:22]OFD Sender: No OFD packet to send [03:59:27]OFD Sender: No OFD packet to send [03:59:32]OFD Sender: No OFD packet to send [03:59:37]OFD Sender: No OFD packet to send [03:59:42]OFD Sender: No OFD packet to send [03:59:47]OFD Sender: No OFD packet to send [03:59:52]OFD Sender: No OFD packet to send [03:59:57]OFD Sender: No OFD packet to send [04:00:02]OFD Sender: No OFD packet to send [04:00:07]OFD Sender: No OFD packet to send [04:00:12]OFD Sender: No OFD packet to send [04:00:17]OFD Sender: No OFD packet to send [04:00:22]OFD Sender: No OFD packet to send [04:00:27]OFD Sender: No OFD packet to send [04:00:32]OFD Sender: No OFD packet to send [04:00:37]OFD Sender: No OFD packet to send [04:00:42]OFD Sender: No OFD packet to send [04:00:47]OFD Sender: No OFD packet to send [04:00:52]OFD Sender: No OFD packet to send [04:00:57]OFD Sender: No OFD packet to send [04:01:02]OFD Sender: No OFD packet to send [04:01:07]OFD Sender: No OFD packet to send [04:01:12]OFD Sender: No OFD packet to send [04:01:17]OFD Sender: No OFD packet to send [04:01:22]OFD Sender: No OFD packet to send [04:01:27]OFD Sender: No OFD packet to send [04:01:32]OFD Sender: No OFD packet to send [04:01:37]OFD Sender: No OFD packet to send [04:01:42]OFD Sender: No OFD packet to send [04:01:47]OFD Sender: No OFD packet to send [04:01:52]OFD Sender: No OFD packet to send [04:01:57]OFD Sender: No OFD packet to send [04:02:02]OFD Sender: No OFD packet to send [04:02:07]OFD Sender: No OFD packet to send [04:02:12]OFD Sender: No OFD packet to send [04:02:17]OFD Sender: No OFD packet to send [04:02:22]OFD Sender: No OFD packet to send [04:02:27]OFD Sender: No OFD packet to send [04:02:32]OFD Sender: No OFD packet to send [04:02:37]OFD Sender: No OFD packet to send [04:02:42]OFD Sender: No OFD packet to send [04:02:47]OFD Sender: No OFD packet to send [04:02:52]OFD Sender: No OFD packet to send [04:02:57]OFD Sender: No OFD packet to send [04:03:02]OFD Sender: No OFD packet to send [04:03:07]OFD Sender: No OFD packet to send [04:03:12]OFD Sender: No OFD packet to send [04:03:17]OFD Sender: No OFD packet to send [04:03:22]OFD Sender: No OFD packet to send [04:03:27]OFD Sender: No OFD packet to send [04:03:32]OFD Sender: No OFD packet to send [04:03:37]OFD Sender: No OFD packet to send [04:03:42]OFD Sender: No OFD packet to send [04:03:47]OFD Sender: No OFD packet to send [04:03:52]OFD Sender: No OFD packet to send [04:03:57]OFD Sender: No OFD packet to send [04:04:02]OFD Sender: No OFD packet to send [04:04:07]OFD Sender: No OFD packet to send [04:04:12]OFD Sender: No OFD packet to send [04:04:17]OFD Sender: No OFD packet to send [04:04:22]OFD Sender: No OFD packet to send [04:04:27]OFD Sender: No OFD packet to send [04:04:32]OFD Sender: No OFD packet to send [04:04:37]OFD Sender: No OFD packet to send [04:04:42]OFD Sender: No OFD packet to send [04:04:47]OFD Sender: No OFD packet to send [04:04:52]OFD Sender: No OFD packet to send [04:04:57]OFD Sender: No OFD packet to send [04:05:02]OFD Sender: No OFD packet to send [04:05:07]OFD Sender: No OFD packet to send [04:05:12]OFD Sender: No OFD packet to send [04:05:17]OFD Sender: No OFD packet to send [04:05:22]OFD Sender: No OFD packet to send [04:05:27]OFD Sender: No OFD packet to send [04:05:32]OFD Sender: No OFD packet to send [04:05:37]OFD Sender: No OFD packet to send [04:05:42]OFD Sender: No OFD packet to send [04:05:47]OFD Sender: No OFD packet to send [04:05:52]OFD Sender: No OFD packet to send [04:05:57]OFD Sender: No OFD packet to send [04:06:02]OFD Sender: No OFD packet to send [04:06:07]OFD Sender: No OFD packet to send [04:06:12]OFD Sender: No OFD packet to send [04:06:17]OFD Sender: No OFD packet to send [04:06:22]OFD Sender: No OFD packet to send [04:06:27]OFD Sender: No OFD packet to send [04:06:32]OFD Sender: No OFD packet to send [04:06:37]OFD Sender: No OFD packet to send [04:06:42]OFD Sender: No OFD packet to send [04:06:47]OFD Sender: No OFD packet to send [04:06:52]OFD Sender: No OFD packet to send [04:06:57]OFD Sender: No OFD packet to send [04:07:02]OFD Sender: No OFD packet to send [04:07:07]OFD Sender: No OFD packet to send [04:07:12]OFD Sender: No OFD packet to send [04:07:17]OFD Sender: No OFD packet to send [04:07:22]OFD Sender: No OFD packet to send [04:07:27]OFD Sender: No OFD packet to send [04:07:32]OFD Sender: No OFD packet to send [04:07:37]OFD Sender: No OFD packet to send [04:07:42]OFD Sender: No OFD packet to send [04:07:47]OFD Sender: No OFD packet to send [04:07:52]OFD Sender: No OFD packet to send [04:07:57]OFD Sender: No OFD packet to send [04:08:02]OFD Sender: No OFD packet to send [04:08:07]OFD Sender: No OFD packet to send [04:08:12]OFD Sender: No OFD packet to send [04:08:17]OFD Sender: No OFD packet to send [04:08:22]OFD Sender: No OFD packet to send [04:08:27]OFD Sender: No OFD packet to send [04:08:32]OFD Sender: No OFD packet to send [04:08:37]OFD Sender: No OFD packet to send [04:08:42]OFD Sender: No OFD packet to send [04:08:47]OFD Sender: No OFD packet to send [04:08:52]OFD Sender: No OFD packet to send [04:08:57]OFD Sender: No OFD packet to send [04:09:02]OFD Sender: No OFD packet to send [04:09:07]OFD Sender: No OFD packet to send [04:09:12]OFD Sender: No OFD packet to send [04:09:17]OFD Sender: No OFD packet to send [04:09:22]OFD Sender: No OFD packet to send [04:09:27]OFD Sender: No OFD packet to send [04:09:32]OFD Sender: No OFD packet to send [04:09:37]OFD Sender: No OFD packet to send [04:09:42]OFD Sender: No OFD packet to send [04:09:47]OFD Sender: No OFD packet to send [04:09:52]OFD Sender: No OFD packet to send [04:09:57]OFD Sender: No OFD packet to send [04:10:02]OFD Sender: No OFD packet to send [04:10:07]OFD Sender: No OFD packet to send [04:10:12]OFD Sender: No OFD packet to send [04:10:17]OFD Sender: No OFD packet to send [04:10:22]OFD Sender: No OFD packet to send [04:10:27]accept exits with 7 [04:10:27]New connection [04:10:27]New thread 3066994020 created [04:10:27]Thread 3067137380 joined [04:10:27]Waiting for new connection... [04:10:27] Sock 7.Parse request [04:10:27]Sock 7.Check first char [04:10:27]Sock 7.First char is OK [04:10:27]request: POST /json_proto HTTP/1.0 [04:10:27]Method: POST [04:10:27]URL: /json_proto [04:10:27]Method is POST - this is cgi request [04:10:27]url: /json_proto [04:10:27]query_string will be loaded in cgi processing [04:10:27]execute_cgi json_proto POST (null) [04:10:27]execute_cgi path=json_proto method=POST [04:10:27]POST find Content-Length [04:10:27]Host: 172.17.44.195:8080 [04:10:27]Content-Length: 683 [04:10:27]Content-Type: application/json [04:10:27] [04:10:27]POST finish read [04:10:27]Found Content-Length = 683 [04:10:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "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" ] } } [04:10:27]execute_script... [04: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)1964257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "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" ] } } [04:10:27]POST & json_proto [04:10:27]process_json_proto [04:10:27]json parsed OK: [04:10:27]protocol is kg_v1.0 [04:10:27]action value=close_receipt [04:10:27]process_action close_receipt [04:10:27]cmd_close_receipt [04:10:27]MH_GetDate [04:10:27]Write to MH i2c: F0 00 00 53 09 4B [04:10:27]Write i2c OK [04:10:27]MH_I2C_Read... [04:10:27]Read from MH i2c: F0 [04:10:27]MH_I2C_Read... [04:10:27]Read from MH i2c: F0 09 00 [04:10:27]MH_I2C_Read... [04:10:27]Read from MH i2c: F0 09 00 53 09 00 B4 25 17 67 82 C9 CF 66 2B [04:10:27]GetLastDocTimeStamp 1729567123 [04:10:27]current date 1729570228 [04:10:27]FM_GetShiftState [04:10:27]SAM_PROTO_GetShiftState [04:10:27]wFMCommunicate request_size=4 [04:10:27]MH_SAM_APDU [04:10:27]CAPDU: 80 13 01 00 [04:10:27]Write to MH i2c: E2 08 00 54 09 80 13 01 00 00 00 00 00 DA [04:10:27]Write i2c OK [04:10:27]MH_I2C_Read... [04:10:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:10:27]Read from MH i2c: E2 [04:10:27]MH_I2C_Read... [04:10:27]Read from MH i2c: E2 0E 00 [04:10:27]MH_I2C_Read... [04:10:27]Read from MH i2c: E2 0E 00 54 09 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 A1 [04:10:27]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [04:10:27]wFMCommunicate OK [04:10:27]SAM_PROTO_GetShiftState done [04:10:27]FM_GetShiftState done [04:10:27]opened in 1729555538 [04:10:27]opened+sec_in_day 1729641938 [04:10:27]quantity*price = 100015 [04:10:27]sum+1 = 100017 [04:10:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 24 22.10.2024 04:10 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228060 ФПД: 120909132967189 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T041029&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228060&fm=120909132967189&tin=02508201610067®Number=0000000000091685&sum=100000 [04:10:28]StoreToDocumentArchive [04:10:28]shift 535 fd 228060 [04:10:28]save to /storage/0535/doc_00228060 [04:10:28]save last doc name /storage/0535/doc_00228060 to /storage/kkm_last_doc_name [04:10:28]save OK [04:10:28]Clear old archive folders... [04:10:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:10:28]tlvbuf is 0087B840 [04:10:28]SAM_PROTO_ClearQueue [04:10:28]wFMCommunicate request_size=4 [04:10:28]MH_SAM_APDU [04:10:28]CAPDU: 80 09 00 00 [04:10:28]Write to MH i2c: E2 08 00 61 09 80 09 00 00 00 00 00 00 DC [04:10:28]Write i2c OK [04:10:28]MH_I2C_Read... [04:10:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:10:28]Read from MH i2c: E2 [04:10:28]MH_I2C_Read... [04:10:28]Read from MH i2c: E2 03 00 [04:10:28]MH_I2C_Read... [04:10:28]Read from MH i2c: E2 03 00 61 09 00 90 00 DE [04:10:28]RAPDU: 90 00 [04:10:28]wFMCommunicate OK [04:10:28]SAM_PROTO_ClearQueue done [04:10:28]KKMCreateOFDPacket [04:10:28]OFDProtocolAddRootSTLVToBuf [04:10:28]FM_MakeSignedData [04:10:28]FM_MakeSignedData [04:10:28]SAM_PROTO_SignData [04:10:28]wFMCommunicate request_size=4 [04:10:28]MH_SAM_APDU [04:10:28]CAPDU: 80 0D 01 02 [04:10:28]Write to MH i2c: E2 08 00 62 09 80 0D 01 02 00 00 00 00 E4 [04:10:28]Write i2c OK [04:10:28]MH_I2C_Read... [04:10:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:10:28]Read from MH i2c: E2 [04:10:28]MH_I2C_Read... [04:10:28]Read from MH i2c: E2 03 00 [04:10:28]MH_I2C_Read... [04:10:28]Read from MH i2c: E2 03 00 62 09 00 90 00 DF [04:10:28]RAPDU: 90 00 [04:10:28]wFMCommunicate OK [04:10:28]wFMCommunicate request_size=255 [04:10:28]MH_SAM_APDU [04:10: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 18 00 00 00 F4 03 04 00 B5 25 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DC 7A 03 00 35 04 06 00 6D [04:10:28]Write to MH i2c: E2 02 01 63 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 18 00 00 00 F4 03 04 00 B5 25 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DC 7A 03 00 35 04 06 00 6D 00 00 C4 [04:10:28]Write i2c OK [04:10:28]MH_I2C_Read... [04:10:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:10:28]Read from MH i2c: E2 [04:10:28]MH_I2C_Read... [04:10:28]Read from MH i2c: E2 03 00 [04:10:28]MH_I2C_Read... [04:10:28]Read from MH i2c: E2 03 00 63 09 00 90 00 E0 [04:10:28]RAPDU: 90 00 [04:10:28]wFMCommunicate OK [04:10:28]wFMCommunicate request_size=10 [04:10:28]MH_SAM_APDU [04:10:28]CAPDU: 80 0D 02 02 05 F7 59 EB AD 15 [04:10:28]Write to MH i2c: E2 0D 00 64 09 80 0D 02 02 05 00 F7 59 EB AD 15 00 00 EE [04:10:28]Write i2c OK [04:10:28]MH_I2C_Read... [04:10:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:10:28]Read from MH i2c: E2 [04:10:28]MH_I2C_Read... [04:10:28]Read from MH i2c: E2 03 00 [04:10:28]MH_I2C_Read... [04:10:28]Read from MH i2c: E2 03 00 64 09 00 90 00 E1 [04:10:28]RAPDU: 90 00 [04:10:28]wFMCommunicate OK [04:10:28]wFMCommunicate request_size=4 [04:10:28]MH_SAM_APDU [04:10:28]CAPDU: 80 0D 03 02 [04:10:28]Write to MH i2c: E2 08 00 65 09 80 0D 03 02 00 00 00 00 E9 [04:10:28]Write i2c OK [04:10:28]MH_I2C_Read... [04:10:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:10:28]Read from MH i2c: E2 [04:10:28]MH_I2C_Read... [04:10:28]Read from MH i2c: E2 0B 00 [04:10:28]MH_I2C_Read... [04:10:28]Read from MH i2c: E2 0B 00 65 09 00 5A D7 97 05 60 2E 28 EF 90 00 5C [04:10:28]RAPDU: 5A D7 97 05 60 2E 28 EF 90 00 [04:10:28]wFMCommunicate OK [04:10:28]SAM_PROTO_SignData done [04:10:28]FM_MakeSignedData done [04:10:28]CreateOFDProtocolMessage [04:10:28]wFMCommunicate request_size=4 [04:10:28]MH_SAM_APDU [04:10:28]CAPDU: 80 11 00 00 [04:10:28]Write to MH i2c: E2 08 00 66 09 80 11 00 00 00 00 00 00 E9 [04:10:28]Write i2c OK [04:10:28]MH_I2C_Read... [04:10:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:10:28]Read from MH i2c: E2 [04:10:28]MH_I2C_Read... [04:10:28]Read from MH i2c: E2 17 00 [04:10:28]MH_I2C_Read... [04:10:28]Read from MH i2c: E2 17 00 66 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 40 [04:10:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [04:10:28]wFMCommunicate OK [04:10:28]CreateOFDProtocolMessage done [04:10:28]OFDSenderStorePacket 228060 [04:10:28]StoreOFDPacket docnum=228060 [04:10:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 FF 2B 07 01 65 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 18 00 00 00 F4 03 04 00 B5 25 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DC 7A 03 00 35 04 06 00 6D F7 59 EB AD 15 5A D7 97 05 60 2E 28 EF [04:10:28]CheckFolder [04:10:28]dirname=/storage/ofd_packets [04:10:28]CheckFolder done [04:10:28]ProducePacketName [04:10:28]name=ofd_packets/00228060 [04:10:28]NVStorageSaveData ofd_packets/00228060 [04:10:28]File name is /storage/ofd_packets/00228060 [04:10:28]Write 301 bytes [04:10:28]NVStorageSaveData done [04:10:28]OFDSenderStorePacket done [04:10:28]KKMCreateOFDPacket done [04:10:28]NVStorageSaveData kkm_last_timestamp [04:10:28]File name is /storage/kkm_last_timestamp [04:10:28]Write 4 bytes [04:10:28]NVStorageSaveData done [04:10:28]OFD Sender: Processing packet 228060 [packets to send 38, broken 37] [04:10:28]ProducePacketName [04:10:28]name=ofd_packets/00228060 [04:10:28]OFD Sender: To server: pG, [04:10:28]CommunicateWithHost lk.salyk.kg:30040 [04:10:28]ConnectInit lk.salyk.kg [04:10:28]ExternCall_PrintAddStr [04:10:28]wPrintStart [04:10:28]Write to MH i2c: 01 00 00 67 09 70 [04:10:28]Write i2c OK [04:10:28]MH_I2C_Read... [04:10:28]Read from MH i2c: 01 [04:10:28]MH_I2C_Read... [04:10:28]Read from MH i2c: 01 07 00 [04:10:28]MH_I2C_Read... [04:10:28]Read from MH i2c: 01 07 00 67 09 00 00 00 00 00 FF 0F 85 [04:10:28]RasterBufferAndPrint [04:10:28]line Счет N : (1)1964257 [04:10:28]line ИНН: 02508201610067 [04:10:28]line Контрольно-Кассовый Чек [04:10:28]line ПРОДАЖА [04:10:28]line ТРК (МРК, ГНК) : 43 [04:10:28]line Товар: 2710124130 [04:10:28]line Аи-92-К-5 [04:10:28]line 14.950 * 66.90 [04:10:28]line = 1000.16 [04:10:28]line НДС 12% НСП 1% [04:10:28]line > о реализуемом товаре [04:10:28]line ОКРУГЛЕНИЕ: -0.16 [04:10:28]line ИТОГО: 1000.00 [04:10:28]line Внесено: 1000.00 [04:10:28]line СДАЧА: 0.00 [04:10:28]line НСП 1% : 8.85 [04:10:28]line НДС 12% : 106.21 [04:10:28]line Наличными: 1000.00 [04:10:28]line Безнал.: 0.00 [04:10:28]line Место: АЗС № 133 "Партнер Нефть" [04:10:28]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [04:10:28]line СНО: Общий режим [04:10:28]line Чек 24 22.10.2024 04:10 [04:10:28]line Смена: 535 ФФД: 1.0 [04:10:28]line ЗНМ: 0300000091 [04:10:28]line РНМ: 0000000000091685 [04:10:28]line Версия ККМ: 001 [04:10:28]line ФМ: 0000000000871839 [04:10:28]line ФД: 228060 [04:10:28]line ФПД: 120909132967189 [04:10:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T041029&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228060&fm=120909132967189&tin=02508201610067®Number=0000000000091685&sum=100000 [04:10:29]Connected sock=11 [04:10:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 FF 2B 07 01 65 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 18 00 00 00 F4 03 04 00 B5 25 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DC 7A 03 00 35 04 06 00 6D F7 59 EB AD 15 5A D7 97 05 60 2E 28 EF [04:10:29]written 0, free lines is 4095 [04:10:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 C3 24 47 00 B6 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DC 7A 03 00 F4 03 04 00 AE D0 16 67 B6 04 01 00 00 9D E1 FA 7A 56 27 C1 1E [04:10:29]CommunicateWithHost err = 0 [04:10:29]CheckOFDResponse [04:10:29]1017 (14) - 77093643461234 [04:10:29]1041 (16) - 0000000000871839 [04:10:29]1040 (4) - 228060 [04:10:29]1012 (4) - 21.10.2024 22:07 [04:10:29]1206 (1) - 0 [04:10:29]OFD Sender: Remove packet 228060 [04:10:29]ProducePacketName [04:10:29]name=ofd_packets/00228060 [04:10:29]NVStorageDeleteData [04:10:29]Write to MH i2c: 01 00 00 91 09 9A [04:10:29]Write i2c OK [04:10:29]MH_I2C_Read... [04:10:29]Read from MH i2c: 01 [04:10:29]MH_I2C_Read... [04:10:29]Read from MH i2c: 01 07 00 [04:10:29]MH_I2C_Read... [04:10:29]Read from MH i2c: 01 07 00 91 09 00 00 00 00 00 9E 0C 4B [04:10:29]RasterBufferAndPrint [04:10:29]line [04:10:29]line [04:10:29]line [04:10:29]line [04:10:29]line [04:10:29]written 0, free lines is 3234 [04:10:29]MH_Cut [04:10:29]Write to MH i2c: D1 01 00 98 09 01 73 [04:10:29]Write i2c OK [04:10:29]MH_I2C_Read... [04:10:29]Read from MH i2c: D1 [04:10:29]MH_I2C_Read... [04:10:29]Read from MH i2c: D1 01 00 [04:10:29]MH_I2C_Read... [04:10:29]Read from MH i2c: D1 01 00 98 09 00 72 [04:10:29]Write to MH i2c: 01 00 00 99 09 A2 [04:10:29]Write i2c OK [04:10:29]MH_I2C_Read... [04:10:29]OFD Sender: No OFD packet to send [04:10:30]*** Cut start [04:10:30]*** Partial cut [04:10:30]*** CUTSNS_PIN = 1 [04:10:30]*** CUTSNS_PIN = 0 [04:10:30]*** Brake cut motor [04:10:31]Read from MH i2c: 01 [04:10:31]MH_I2C_Read... [04:10:31]*** Stop cut motor [04:10:31]*** Cut end [04:10:31]Read from MH i2c: 01 07 00 [04:10:31]MH_I2C_Read... [04:10:31]Read from MH i2c: 01 07 00 99 09 00 00 00 00 00 FF 0F B7 [04:10:31]process_action close_receipt done [04:10:31]requested_data is exist [04:10:31]produce_requested_data [04:10:31]requested_item fm.sn is exist - process it [04:10:31]wFMCommunicate request_size=4 [04:10:31]MH_SAM_APDU [04:10:31]CAPDU: 80 11 00 00 [04:10:31]Write to MH i2c: E2 08 00 9A 09 80 11 00 00 00 00 00 00 1D [04:10:31]Write i2c OK [04:10:31]MH_I2C_Read... [04:10:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:10:31]Read from MH i2c: E2 [04:10:31]MH_I2C_Read... [04:10:31]Read from MH i2c: E2 17 00 [04:10:31]MH_I2C_Read... [04:10:31]Read from MH i2c: E2 17 00 9A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 74 [04:10:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [04:10:31]wFMCommunicate OK [04:10:31]requested_item fd.num is exist - process it [04:10:31]SAM_PROTO_GetFieldsCounters [04:10:31]wFMCommunicate request_size=4 [04:10:31]MH_SAM_APDU [04:10:31]CAPDU: 80 13 00 00 [04:10:31]Write to MH i2c: E2 08 00 9B 09 80 13 00 00 00 00 00 00 20 [04:10:31]Write i2c OK [04:10:31]MH_I2C_Read... [04:10:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:10:31]Read from MH i2c: E2 [04:10:31]MH_I2C_Read... [04:10:31]Read from MH i2c: E2 62 00 [04:10:31]MH_I2C_Read... [04:10:31]Read from MH i2c: E2 62 00 9B 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 DC 7A 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [04:10:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 DC 7A 03 00 0E 04 04 00 17 02 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 [04:10:31]wFMCommunicate OK [04:10:31]SAM_PROTO_GetFieldsCounters done [04:10:31]requested_item shift.num is exist - process it [04:10:31]requested_item shift.opened is exist - process it [04:10:31]req_shift_opened [04:10:31]FM_GetShiftState [04:10:31]SAM_PROTO_GetShiftState [04:10:31]wFMCommunicate request_size=4 [04:10:31]MH_SAM_APDU [04:10:31]CAPDU: 80 13 01 00 [04:10:31]Write to MH i2c: E2 08 00 9C 09 80 13 01 00 00 00 00 00 22 [04:10:31]Write i2c OK [04:10:31]MH_I2C_Read... [04:10:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:10:31]Read from MH i2c: E2 [04:10:31]MH_I2C_Read... [04:10:31]Read from MH i2c: E2 0E 00 [04:10:31]MH_I2C_Read... [04:10:31]Read from MH i2c: E2 0E 00 9C 09 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 E9 [04:10:31]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [04:10:31]wFMCommunicate OK [04:10:31]SAM_PROTO_GetShiftState done [04:10:31]FM_GetShiftState done [04:10:31]req_shift_opened done [04:10:31]requested_item shift.open_date is exist - process it [04:10:31]req_shift_open_date [04:10:31]req_shift_open_date done [04:10:31]produce_requested_data done [04:10:31]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228060,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [04:10:31]process_action_free close_receipt [04:10:31]json_value_free [04:10:31]json_value_free done [04:10:31]process_json_proto returns [04:10:31]Send response to host [04:10:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228060,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [04:10:31]free response buf [04:10:31]execute_script done [04:10:31]execute_script returns [04:10:31]free content buf [04:10:31]Sock 7.Close socket [04:10:31]Sock 7.Thread stoped [04:10:34]OFD Sender: No OFD packet to send [04:10:39]OFD Sender: No OFD packet to send [04:10:44]OFD Sender: No OFD packet to send [04:10:49]OFD Sender: No OFD packet to send [04:10:54]OFD Sender: No OFD packet to send [04:10:59]OFD Sender: No OFD packet to send [04:11:04]OFD Sender: No OFD packet to send [04:11:09]OFD Sender: No OFD packet to send [04:11:14]OFD Sender: No OFD packet to send [04:11:19]OFD Sender: No OFD packet to send [04:11:24]OFD Sender: No OFD packet to send [04:11:29]OFD Sender: No OFD packet to send [04:11:34]OFD Sender: No OFD packet to send [04:11:39]OFD Sender: No OFD packet to send [04:11:44]OFD Sender: No OFD packet to send [04:11:49]OFD Sender: No OFD packet to send [04:11:54]OFD Sender: No OFD packet to send [04:11:59]OFD Sender: No OFD packet to send [04:12:04]OFD Sender: No OFD packet to send [04:12:09]OFD Sender: No OFD packet to send [04:12:14]OFD Sender: No OFD packet to send [04:12:19]OFD Sender: No OFD packet to send [04:12:24]OFD Sender: No OFD packet to send [04:12:29]OFD Sender: No OFD packet to send [04:12:34]OFD Sender: No OFD packet to send [04:12:39]OFD Sender: No OFD packet to send [04:12:44]OFD Sender: No OFD packet to send [04:12:49]OFD Sender: No OFD packet to send [04:12:54]OFD Sender: No OFD packet to send [04:12:59]OFD Sender: No OFD packet to send [04:13:04]OFD Sender: No OFD packet to send [04:13:09]OFD Sender: No OFD packet to send [04:13:14]OFD Sender: No OFD packet to send [04:13:19]OFD Sender: No OFD packet to send [04:13:24]OFD Sender: No OFD packet to send [04:13:29]OFD Sender: No OFD packet to send [04:13:34]OFD Sender: No OFD packet to send [04:13:39]OFD Sender: No OFD packet to send [04:13:44]OFD Sender: No OFD packet to send [04:13:49]OFD Sender: No OFD packet to send [04:13:54]OFD Sender: No OFD packet to send [04:13:59]OFD Sender: No OFD packet to send [04:14:04]OFD Sender: No OFD packet to send [04:14:09]OFD Sender: No OFD packet to send [04:14:14]OFD Sender: No OFD packet to send [04:14:19]OFD Sender: No OFD packet to send [04:14:24]OFD Sender: No OFD packet to send [04:14:29]OFD Sender: No OFD packet to send [04:14:34]OFD Sender: No OFD packet to send [04:14:39]OFD Sender: No OFD packet to send [04:14:44]OFD Sender: No OFD packet to send [04:14:49]OFD Sender: No OFD packet to send [04:14: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:19]recv_with_timeout no data received [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:39]recv_with_timeout no data received [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:15:59]recv_with_timeout no data received [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:10]accept exits with 9 [04:20:10]New connection [04:20:10]New thread 3067137380 created [04:20:10]Thread 3066994020 joined [04:20:10]Waiting for new connection... [04:20:10] Sock 9.Parse request [04:20:10]Sock 9.Check first char [04:20:10]Sock 9.First char is OK [04:20:10]request: POST /json_proto HTTP/1.0 [04:20:10]Method: POST [04:20:10]URL: /json_proto [04:20:10]Method is POST - this is cgi request [04:20:10]url: /json_proto [04:20:10]query_string will be loaded in cgi processing [04:20:10]execute_cgi json_proto POST (null) [04:20:10]execute_cgi path=json_proto method=POST [04:20:10]POST find Content-Length [04:20:10]Host: 172.17.44.195:8080 [04:20:10]Content-Length: 677 [04:20:10]Content-Type: application/json [04:20:10] [04:20:10]POST finish read [04:20:10]Found Content-Length = 677 [04:20:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 38.570, "sum" : 1500.37, "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" ] } } [04:20:10]execute_script... [04:20: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)1964258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 38.570, "sum" : 1500.37, "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" ] } } [04:20:10]POST & json_proto [04:20:10]process_json_proto [04:20:10]json parsed OK: [04:20:10]protocol is kg_v1.0 [04:20:10]action value=close_receipt [04:20:10]process_action close_receipt [04:20:10]cmd_close_receipt [04:20:10]MH_GetDate [04:20:10]Write to MH i2c: F0 00 00 9D 09 95 [04:20:10]Write i2c OK [04:20:10]MH_I2C_Read... [04:20:10]Read from MH i2c: F0 [04:20:10]MH_I2C_Read... [04:20:10]Read from MH i2c: F0 09 00 [04:20:10]MH_I2C_Read... [04:20:10]Read from MH i2c: F0 09 00 9D 09 00 FC 27 17 67 82 C9 CF 66 BF [04:20:10]GetLastDocTimeStamp 1729570229 [04:20:10]current date 1729570812 [04:20:10]FM_GetShiftState [04:20:10]SAM_PROTO_GetShiftState [04:20:10]wFMCommunicate request_size=4 [04:20:10]MH_SAM_APDU [04:20:10]CAPDU: 80 13 01 00 [04:20:10]Write to MH i2c: E2 08 00 9E 09 80 13 01 00 00 00 00 00 24 [04:20:10]Write i2c OK [04:20:10]MH_I2C_Read... [04:20:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:20:10]Read from MH i2c: E2 [04:20:10]MH_I2C_Read... [04:20:10]Read from MH i2c: E2 0E 00 [04:20:10]MH_I2C_Read... [04:20:10]Read from MH i2c: E2 0E 00 9E 09 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 EB [04:20:10]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [04:20:10]wFMCommunicate OK [04:20:10]SAM_PROTO_GetShiftState done [04:20:10]FM_GetShiftState done [04:20:10]opened in 1729555538 [04:20:10]opened+sec_in_day 1729641938 [04:20:10]quantity*price = 150037 [04:20:10]sum+1 = 150038 [04:20:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 25 22.10.2024 04:20 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228061 ФПД: 97919680254051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T042012&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228061&fm=97919680254051&tin=02508201610067®Number=0000000000091685&sum=150000 [04:20:11]StoreToDocumentArchive [04:20:11]shift 535 fd 228061 [04:20:11]save to /storage/0535/doc_00228061 [04:20:11]save last doc name /storage/0535/doc_00228061 to /storage/kkm_last_doc_name [04:20:11]save OK [04:20:11]Clear old archive folders... [04:20:11]ProcessDocumentItem done err = 0, tmpTLVsize=245 [04:20:11]tlvbuf is 00859A00 [04:20:11]SAM_PROTO_ClearQueue [04:20:11]wFMCommunicate request_size=4 [04:20:11]MH_SAM_APDU [04:20:11]CAPDU: 80 09 00 00 [04:20:11]Write to MH i2c: E2 08 00 AB 09 80 09 00 00 00 00 00 00 26 [04:20:11]Write i2c OK [04:20:11]MH_I2C_Read... [04:20:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:20:11]Read from MH i2c: E2 [04:20:11]MH_I2C_Read... [04:20:11]Read from MH i2c: E2 03 00 [04:20:11]MH_I2C_Read... [04:20:11]Read from MH i2c: E2 03 00 AB 09 00 90 00 28 [04:20:11]RAPDU: 90 00 [04:20:11]wFMCommunicate OK [04:20:11]SAM_PROTO_ClearQueue done [04:20:11]KKMCreateOFDPacket [04:20:11]OFDProtocolAddRootSTLVToBuf [04:20:11]FM_MakeSignedData [04:20:11]FM_MakeSignedData [04:20:11]SAM_PROTO_SignData [04:20:11]wFMCommunicate request_size=4 [04:20:11]MH_SAM_APDU [04:20:11]CAPDU: 80 0D 01 02 [04:20:11]Write to MH i2c: E2 08 00 AC 09 80 0D 01 02 00 00 00 00 2E [04:20:11]Write i2c OK [04:20:11]MH_I2C_Read... [04:20:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:20:11]Read from MH i2c: E2 [04:20:11]MH_I2C_Read... [04:20:11]Read from MH i2c: E2 03 00 [04:20:11]MH_I2C_Read... [04:20:11]Read from MH i2c: E2 03 00 AC 09 00 90 00 29 [04:20:11]RAPDU: 90 00 [04:20:11]wFMCommunicate OK [04:20:11]wFMCommunicate request_size=254 [04:20:11]MH_SAM_APDU [04:20:11]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 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 3D 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 19 00 00 00 F4 03 04 00 FC 27 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DD 7A 03 00 35 04 06 00 59 0E B3 C2 10 63 [04:20:11]Write to MH i2c: E2 01 01 AD 09 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 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 3D 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 19 00 00 00 F4 03 04 00 FC 27 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DD 7A 03 00 35 04 06 00 59 0E B3 C2 10 63 00 00 6A [04:20:11]Write i2c OK [04:20:11]MH_I2C_Read... [04:20:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:20:11]Read from MH i2c: E2 [04:20:11]MH_I2C_Read... [04:20:11]Read from MH i2c: E2 03 00 [04:20:11]MH_I2C_Read... [04:20:11]Read from MH i2c: E2 03 00 AD 09 00 90 00 2A [04:20:11]RAPDU: 90 00 [04:20:11]wFMCommunicate OK [04:20:11]wFMCommunicate request_size=4 [04:20:11]MH_SAM_APDU [04:20:11]CAPDU: 80 0D 03 02 [04:20:11]Write to MH i2c: E2 08 00 AE 09 80 0D 03 02 00 00 00 00 32 [04:20:11]Write i2c OK [04:20:11]MH_I2C_Read... [04:20:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:20:11]Read from MH i2c: E2 [04:20:11]MH_I2C_Read... [04:20:11]Read from MH i2c: E2 0B 00 [04:20:11]MH_I2C_Read... [04:20:11]Read from MH i2c: E2 0B 00 AE 09 00 4E 97 02 53 DD DA BA 00 90 00 DE [04:20:11]RAPDU: 4E 97 02 53 DD DA BA 00 90 00 [04:20:11]wFMCommunicate OK [04:20:11]SAM_PROTO_SignData done [04:20:11]FM_MakeSignedData done [04:20:11]CreateOFDProtocolMessage [04:20:11]wFMCommunicate request_size=4 [04:20:11]MH_SAM_APDU [04:20:11]CAPDU: 80 11 00 00 [04:20:11]Write to MH i2c: E2 08 00 AF 09 80 11 00 00 00 00 00 00 32 [04:20:11]Write i2c OK [04:20:11]MH_I2C_Read... [04:20:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:20:11]Read from MH i2c: E2 [04:20:11]MH_I2C_Read... [04:20:11]Read from MH i2c: E2 17 00 [04:20:11]MH_I2C_Read... [04:20:11]Read from MH i2c: E2 17 00 AF 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 89 [04:20:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [04:20:11]wFMCommunicate OK [04:20:11]CreateOFDProtocolMessage done [04:20:11]OFDSenderStorePacket 228061 [04:20:11]StoreOFDPacket docnum=228061 [04:20:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 38 E5 01 01 49 59 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 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 3D 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 19 00 00 00 F4 03 04 00 FC 27 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DD 7A 03 00 35 04 06 00 59 0E B3 C2 10 63 4E 97 02 53 DD DA BA 00 [04:20:11]CheckFolder [04:20:11]dirname=/storage/ofd_packets [04:20:11]CheckFolder done [04:20:11]ProducePacketName [04:20:11]name=ofd_packets/00228061 [04:20:11]NVStorageSaveData ofd_packets/00228061 [04:20:11]File name is /storage/ofd_packets/00228061 [04:20:11]Write 295 bytes [04:20:11]NVStorageSaveData done [04:20:11]OFDSenderStorePacket done [04:20:11]KKMCreateOFDPacket done [04:20:11]NVStorageSaveData kkm_last_timestamp [04:20:11]File name is /storage/kkm_last_timestamp [04:20:11]Write 4 bytes [04:20:11]NVStorageSaveData done [04:20:11]ExternCall_PrintAddStr [04:20:11]wPrintStart [04:20:11]Write to MH i2c: 01 00 00 B0 09 B9 [04:20:11]Write i2c OK [04:20:11]MH_I2C_Read... [04:20:11]Read from MH i2c: 01 [04:20:11]MH_I2C_Read... [04:20:11]Read from MH i2c: 01 07 00 [04:20:11]MH_I2C_Read... [04:20:11]Read from MH i2c: 01 07 00 B0 09 00 00 00 00 00 FF 0F CE [04:20:11]RasterBufferAndPrint [04:20:11]line Счет N : (1)1964258 [04:20:11]line ИНН: 02508201610067 [04:20:11]line Контрольно-Кассовый Чек [04:20:11]line ПРОДАЖА [04:20:11]line ТРК (МРК, ГНК) : 71 [04:20:11]line Товар: 2711129700 [04:20:11]line ГАЗ [04:20:11]line 38.570 * 38.90 [04:20:11]line = 1500.37 [04:20:11]line НДС 12% НСП 1% [04:20:11]line > о реализуемом товаре [04:20:11]line ОКРУГЛЕНИЕ: -0.37 [04:20:11]line ИТОГО: 1500.00 [04:20:11]line Внесено: 1500.00 [04:20:11]line СДАЧА: 0.00 [04:20:11]line НСП 1% : 13.28 [04:20:11]line НДС 12% : 159.33 [04:20:11]line Наличными: 1500.00 [04:20:11]line Безнал.: 0.00 [04:20:11]line Место: АЗС № 133 "Партнер Нефть" [04:20:11]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [04:20:11]line СНО: Общий режим [04:20:11]line Чек 25 22.10.2024 04:20 [04:20:11]line Смена: 535 ФФД: 1.0 [04:20:11]line ЗНМ: 0300000091 [04:20:11]line РНМ: 0000000000091685 [04:20:11]line Версия ККМ: 001 [04:20:11]line ФМ: 0000000000871839 [04:20:11]line ФД: 228061 [04:20:11]line ФПД: 97919680254051 [04:20:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T042012&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228061&fm=97919680254051&tin=02508201610067®Number=0000000000091685&sum=150000 [04:20:12]OFD Sender: Processing packet 228061 [packets to send 38, broken 37] [04:20:12]ProducePacketName [04:20:12]name=ofd_packets/00228061 [04:20:12]OFD Sender: To server: pG, [04:20:12]CommunicateWithHost lk.salyk.kg:30040 [04:20:12]ConnectInit lk.salyk.kg [04:20:12]written 0, free lines is 4095 [04:20:12]Connected sock=10 [04:20:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 38 E5 01 01 49 59 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 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 3D 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 19 00 00 00 F4 03 04 00 FC 27 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DD 7A 03 00 35 04 06 00 59 0E B3 C2 10 63 4E 97 02 53 DD DA BA 00 [04:20:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 B5 A7 47 00 60 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DD 7A 03 00 F4 03 04 00 F5 D2 16 67 B6 04 01 00 00 43 63 03 F5 53 EA 41 8D [04:20:12]CommunicateWithHost err = 0 [04:20:12]CheckOFDResponse [04:20:12]1017 (14) - 77093643461234 [04:20:12]1041 (16) - 0000000000871839 [04:20:12]1040 (4) - 228061 [04:20:12]1012 (4) - 21.10.2024 22:17 [04:20:12]1206 (1) - 0 [04:20:12]OFD Sender: Remove packet 228061 [04:20:12]ProducePacketName [04:20:12]name=ofd_packets/00228061 [04:20:12]NVStorageDeleteData [04:20:12]Write to MH i2c: 01 00 00 DA 09 E3 [04:20:12]Write i2c OK [04:20:12]MH_I2C_Read... [04:20:12]Read from MH i2c: 01 [04:20:12]MH_I2C_Read... [04:20:12]Read from MH i2c: 01 07 00 [04:20:12]MH_I2C_Read... [04:20:12]Read from MH i2c: 01 07 00 DA 09 00 00 00 00 00 A0 0C 96 [04:20:12]RasterBufferAndPrint [04:20:12]line [04:20:12]line [04:20:12]line [04:20:12]line [04:20:12]line [04:20:12]written 0, free lines is 3235 [04:20:12]MH_Cut [04:20:12]Write to MH i2c: D1 01 00 E1 09 01 BC [04:20:12]Write i2c OK [04:20:12]MH_I2C_Read... [04:20:12]Read from MH i2c: D1 [04:20:12]MH_I2C_Read... [04:20:12]Read from MH i2c: D1 01 00 [04:20:12]MH_I2C_Read... [04:20:12]Read from MH i2c: D1 01 00 E1 09 00 BB [04:20:12]Write to MH i2c: 01 00 00 E2 09 EB [04:20:12]Write i2c OK [04:20:12]MH_I2C_Read... [04:20:13]OFD Sender: No OFD packet to send [04:20:13]*** Cut start [04:20:13]*** Partial cut [04:20:13]*** CUTSNS_PIN = 1 [04:20:13]*** CUTSNS_PIN = 0 [04:20:14]*** Brake cut motor [04:20:14]Read from MH i2c: 01 [04:20:14]MH_I2C_Read... [04:20:14]*** Stop cut motor [04:20:14]*** Cut end [04:20:14]Read from MH i2c: 01 07 00 [04:20:14]MH_I2C_Read... [04:20:14]Read from MH i2c: 01 07 00 E2 09 00 00 00 00 00 FF 0F 00 [04:20:14]process_action close_receipt done [04:20:14]requested_data is exist [04:20:14]produce_requested_data [04:20:14]requested_item fm.sn is exist - process it [04:20:14]wFMCommunicate request_size=4 [04:20:14]MH_SAM_APDU [04:20:14]CAPDU: 80 11 00 00 [04:20:14]Write to MH i2c: E2 08 00 E3 09 80 11 00 00 00 00 00 00 66 [04:20:14]Write i2c OK [04:20:14]MH_I2C_Read... [04:20:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:20:14]Read from MH i2c: E2 [04:20:14]MH_I2C_Read... [04:20:14]Read from MH i2c: E2 17 00 [04:20:14]MH_I2C_Read... [04:20:14]Read from MH i2c: E2 17 00 E3 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BD [04:20:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [04:20:14]wFMCommunicate OK [04:20:14]requested_item fd.num is exist - process it [04:20:14]SAM_PROTO_GetFieldsCounters [04:20:14]wFMCommunicate request_size=4 [04:20:14]MH_SAM_APDU [04:20:14]CAPDU: 80 13 00 00 [04:20:14]Write to MH i2c: E2 08 00 E4 09 80 13 00 00 00 00 00 00 69 [04:20:14]Write i2c OK [04:20:14]MH_I2C_Read... [04:20:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:20:14]Read from MH i2c: E2 [04:20:14]MH_I2C_Read... [04:20:14]Read from MH i2c: E2 62 00 [04:20:14]MH_I2C_Read... [04:20:14]Read from MH i2c: E2 62 00 E4 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 DD 7A 03 00 0E 04 04 00 17 02 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 50 [04:20:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 DD 7A 03 00 0E 04 04 00 17 02 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 [04:20:14]wFMCommunicate OK [04:20:14]SAM_PROTO_GetFieldsCounters done [04:20:14]requested_item shift.num is exist - process it [04:20:14]requested_item shift.opened is exist - process it [04:20:14]req_shift_opened [04:20:14]FM_GetShiftState [04:20:14]SAM_PROTO_GetShiftState [04:20:14]wFMCommunicate request_size=4 [04:20:14]MH_SAM_APDU [04:20:14]CAPDU: 80 13 01 00 [04:20:14]Write to MH i2c: E2 08 00 E5 09 80 13 01 00 00 00 00 00 6B [04:20:14]Write i2c OK [04:20:14]MH_I2C_Read... [04:20:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:20:14]Read from MH i2c: E2 [04:20:14]MH_I2C_Read... [04:20:14]Read from MH i2c: E2 0E 00 [04:20:14]MH_I2C_Read... [04:20:14]Read from MH i2c: E2 0E 00 E5 09 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 32 [04:20:14]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [04:20:14]wFMCommunicate OK [04:20:14]SAM_PROTO_GetShiftState done [04:20:14]FM_GetShiftState done [04:20:14]req_shift_opened done [04:20:14]requested_item shift.open_date is exist - process it [04:20:14]req_shift_open_date [04:20:14]req_shift_open_date done [04:20:14]produce_requested_data done [04:20:14]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228061,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [04:20:14]process_action_free close_receipt [04:20:14]json_value_free [04:20:14]json_value_free done [04:20:14]process_json_proto returns [04:20:14]Send response to host [04:20:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228061,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [04:20:14]free response buf [04:20:14]execute_script done [04:20:14]execute_script returns [04:20:14]free content buf [04:20:14]Sock 9.Close socket [04:20:14]Sock 9.Thread stoped [04:20:18]OFD Sender: No OFD packet to send [04:20:23]OFD Sender: No OFD packet to send [04:20:28]OFD Sender: No OFD packet to send [04:20:33]OFD Sender: No OFD packet to send [04:20:38]OFD Sender: No OFD packet to send [04:20:43]OFD Sender: No OFD packet to send [04:20:48]OFD Sender: No OFD packet to send [04:20:53]OFD Sender: No OFD packet to send [04:20:58]OFD Sender: No OFD packet to send [04:21:03]OFD Sender: No OFD packet to send [04:21:08]OFD Sender: No OFD packet to send [04:21:13]OFD Sender: No OFD packet to send [04:21:18]OFD Sender: No OFD packet to send [04:21:23]OFD Sender: No OFD packet to send [04:21:28]OFD Sender: No OFD packet to send [04:21:33]OFD Sender: No OFD packet to send [04:21:38]OFD Sender: No OFD packet to send [04:21:43]OFD Sender: No OFD packet to send [04:21:48]OFD Sender: No OFD packet to send [04:21:53]OFD Sender: No OFD packet to send [04:21:58]OFD Sender: No OFD packet to send [04:22:03]OFD Sender: No OFD packet to send [04:22:08]OFD Sender: No OFD packet to send [04:22:13]OFD Sender: No OFD packet to send [04:22:18]OFD Sender: No OFD packet to send [04:22:23]OFD Sender: No OFD packet to send [04:22:28]OFD Sender: No OFD packet to send [04:22:33]OFD Sender: No OFD packet to send [04:22:38]OFD Sender: No OFD packet to send [04:22:43]OFD Sender: No OFD packet to send [04:22:48]OFD Sender: No OFD packet to send [04:22:53]OFD Sender: No OFD packet to send [04:22:58]OFD Sender: No OFD packet to send [04:23:03]OFD Sender: No OFD packet to send [04:23:08]OFD Sender: No OFD packet to send [04:23:13]OFD Sender: No OFD packet to send [04:23:18]OFD Sender: No OFD packet to send [04:23:23]OFD Sender: No OFD packet to send [04:23:28]OFD Sender: No OFD packet to send [04:23:33]OFD Sender: No OFD packet to send [04:23:38]OFD Sender: No OFD packet to send [04:23:43]OFD Sender: No OFD packet to send [04:23:48]OFD Sender: No OFD packet to send [04:23:53]OFD Sender: No OFD packet to send [04:23:58]OFD Sender: No OFD packet to send [04:24:03]OFD Sender: No OFD packet to send [04:24:08]OFD Sender: No OFD packet to send [04:24:13]OFD Sender: No OFD packet to send [04:24:18]OFD Sender: No OFD packet to send [04:24:23]OFD Sender: No OFD packet to send [04:24:28]OFD Sender: No OFD packet to send [04:24:33]OFD Sender: No OFD packet to send [04:24:38]OFD Sender: No OFD packet to send [04:24:43]OFD Sender: No OFD packet to send [04:24:48]OFD Sender: No OFD packet to send [04:24:53]OFD Sender: No OFD packet to send [04:24:58]OFD Sender: No OFD packet to send [04:25:03]OFD Sender: No OFD packet to send [04:25:08]OFD Sender: No OFD packet to send [04:25:13]OFD Sender: No OFD packet to send [04:25:18]OFD Sender: No OFD packet to send [04:25:23]OFD Sender: No OFD packet to send [04:25:28]OFD Sender: No OFD packet to send [04:25:33]OFD Sender: No OFD packet to send [04:25:38]OFD Sender: No OFD packet to send [04:25:43]OFD Sender: No OFD packet to send [04:25:48]OFD Sender: No OFD packet to send [04:25:53]OFD Sender: No OFD packet to send [04:25:58]OFD Sender: No OFD packet to send [04:26:03]OFD Sender: No OFD packet to send [04:26:08]OFD Sender: No OFD packet to send [04:26:13]OFD Sender: No OFD packet to send [04:26:18]OFD Sender: No OFD packet to send [04:26:23]OFD Sender: No OFD packet to send [04:26:28]OFD Sender: No OFD packet to send [04:26:33]OFD Sender: No OFD packet to send [04:26:38]OFD Sender: No OFD packet to send [04:26:43]OFD Sender: No OFD packet to send [04:26:48]OFD Sender: No OFD packet to send [04:26:53]OFD Sender: No OFD packet to send [04:26:58]OFD Sender: No OFD packet to send [04:27:03]OFD Sender: No OFD packet to send [04:27:08]OFD Sender: No OFD packet to send [04:27:13]OFD Sender: No OFD packet to send [04:27:18]OFD Sender: No OFD packet to send [04:27:23]OFD Sender: No OFD packet to send [04:27:28]OFD Sender: No OFD packet to send [04:27:33]OFD Sender: No OFD packet to send [04:27:38]OFD Sender: No OFD packet to send [04:27:43]OFD Sender: No OFD packet to send [04:27:48]OFD Sender: No OFD packet to send [04:27:53]OFD Sender: No OFD packet to send [04:27:58]OFD Sender: No OFD packet to send [04:28:03]OFD Sender: No OFD packet to send [04:28:08]OFD Sender: No OFD packet to send [04:28:13]OFD Sender: No OFD packet to send [04:28:18]OFD Sender: No OFD packet to send [04:28:23]OFD Sender: No OFD packet to send [04:28:28]OFD Sender: No OFD packet to send [04:28:33]OFD Sender: No OFD packet to send [04:28:38]OFD Sender: No OFD packet to send [04:28:43]OFD Sender: No OFD packet to send [04:28:48]OFD Sender: No OFD packet to send [04:28:53]OFD Sender: No OFD packet to send [04:28:58]OFD Sender: No OFD packet to send [04:29:03]OFD Sender: No OFD packet to send [04:29:08]OFD Sender: No OFD packet to send [04:29:13]OFD Sender: No OFD packet to send [04:29:18]OFD Sender: No OFD packet to send [04:29:23]OFD Sender: No OFD packet to send [04:29:28]OFD Sender: No OFD packet to send [04:29:33]OFD Sender: No OFD packet to send [04:29:38]OFD Sender: No OFD packet to send [04:29:43]OFD Sender: No OFD packet to send [04:29:48]OFD Sender: No OFD packet to send [04:29:53]OFD Sender: No OFD packet to send [04:29:58]OFD Sender: No OFD packet to send [04:30:03]OFD Sender: No OFD packet to send [04:30:08]OFD Sender: No OFD packet to send [04:30:13]OFD Sender: No OFD packet to send [04:30:18]OFD Sender: No OFD packet to send [04:30:23]OFD Sender: No OFD packet to send [04:30:28]OFD Sender: No OFD packet to send [04:30:33]OFD Sender: No OFD packet to send [04:30:38]OFD Sender: No OFD packet to send [04:30:43]OFD Sender: No OFD packet to send [04:30:48]OFD Sender: No OFD packet to send [04:30:53]OFD Sender: No OFD packet to send [04:30:58]OFD Sender: No OFD packet to send [04:31:00]accept exits with 7 [04:31:00]New connection [04:31:00]New thread 3066994020 created [04:31:00]Thread 3067137380 joined [04:31:00]Waiting for new connection... [04:31:00] Sock 7.Parse request [04:31:00]Sock 7.Check first char [04:31:00]Sock 7.First char is OK [04:31:00]request: POST /json_proto HTTP/1.0 [04:31:00]Method: POST [04:31:00]URL: /json_proto [04:31:00]Method is POST - this is cgi request [04:31:00]url: /json_proto [04:31:00]query_string will be loaded in cgi processing [04:31:00]execute_cgi json_proto POST (null) [04:31:00]execute_cgi path=json_proto method=POST [04:31:00]POST find Content-Length [04:31:00]Host: 172.17.44.195:8080 [04:31:00]Content-Length: 680 [04:31:00]Content-Type: application/json [04:31:00] [04:31:00]POST finish read [04:31:00]Found Content-Length = 680 [04:31:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 35.440, "sum" : 2700.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2700.00, "total" : 2700.00, "payments": [ { "type": 0, "sum" : 2700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:31:00]execute_script... [04:31: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)1964259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 35.440, "sum" : 2700.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2700.00, "total" : 2700.00, "payments": [ { "type": 0, "sum" : 2700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:31:00]POST & json_proto [04:31:00]process_json_proto [04:31:00]json parsed OK: [04:31:00]protocol is kg_v1.0 [04:31:00]action value=close_receipt [04:31:00]process_action close_receipt [04:31:00]cmd_close_receipt [04:31:00]MH_GetDate [04:31:00]Write to MH i2c: F0 00 00 E6 09 DE [04:31:00]Write i2c OK [04:31:00]MH_I2C_Read... [04:31:00]Read from MH i2c: F0 [04:31:00]MH_I2C_Read... [04:31:00]Read from MH i2c: F0 09 00 [04:31:00]MH_I2C_Read... [04:31:00]Read from MH i2c: F0 09 00 E6 09 00 86 2A 17 67 82 C9 CF 66 95 [04:31:00]GetLastDocTimeStamp 1729570812 [04:31:00]current date 1729571462 [04:31:00]FM_GetShiftState [04:31:00]SAM_PROTO_GetShiftState [04:31:00]wFMCommunicate request_size=4 [04:31:00]MH_SAM_APDU [04:31:00]CAPDU: 80 13 01 00 [04:31:00]Write to MH i2c: E2 08 00 E7 09 80 13 01 00 00 00 00 00 6D [04:31:00]Write i2c OK [04:31:00]MH_I2C_Read... [04:31:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:31:00]Read from MH i2c: E2 [04:31:00]MH_I2C_Read... [04:31:00]Read from MH i2c: E2 0E 00 [04:31:00]MH_I2C_Read... [04:31:00]Read from MH i2c: E2 0E 00 E7 09 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 34 [04:31:00]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [04:31:00]wFMCommunicate OK [04:31:00]SAM_PROTO_GetShiftState done [04:31:00]FM_GetShiftState done [04:31:00]opened in 1729555538 [04:31:00]opened+sec_in_day 1729641938 [04:31:00]quantity*price = 270052 [04:31:00]sum+1 = 270054 [04:31:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 2700.00 Внесено: 2700.00 СДАЧА: 0.00 НСП 1% : 23.90 НДС 12% : 286.78 Наличными: 2700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 26 22.10.2024 04:31 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228062 ФПД: 51766153413658 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T043102&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228062&fm=51766153413658&tin=02508201610067®Number=0000000000091685&sum=270000 [04:31:01]StoreToDocumentArchive [04:31:01]shift 535 fd 228062 [04:31:01]save to /storage/0535/doc_00228062 [04:31:01]save last doc name /storage/0535/doc_00228062 to /storage/kkm_last_doc_name [04:31:01]save OK [04:31:01]Clear old archive folders... [04:31:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:31:01]tlvbuf is B6F85C40 [04:31:01]SAM_PROTO_ClearQueue [04:31:01]wFMCommunicate request_size=4 [04:31:01]MH_SAM_APDU [04:31:01]CAPDU: 80 09 00 00 [04:31:01]Write to MH i2c: E2 08 00 F4 09 80 09 00 00 00 00 00 00 6F [04:31:01]Write i2c OK [04:31:01]MH_I2C_Read... [04:31:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:31:01]Read from MH i2c: E2 [04:31:01]MH_I2C_Read... [04:31:01]Read from MH i2c: E2 03 00 [04:31:01]MH_I2C_Read... [04:31:01]Read from MH i2c: E2 03 00 F4 09 00 90 00 71 [04:31:01]RAPDU: 90 00 [04:31:01]wFMCommunicate OK [04:31:01]SAM_PROTO_ClearQueue done [04:31:01]KKMCreateOFDPacket [04:31:01]OFDProtocolAddRootSTLVToBuf [04:31:01]FM_MakeSignedData [04:31:01]FM_MakeSignedData [04:31:01]SAM_PROTO_SignData [04:31:01]wFMCommunicate request_size=4 [04:31:01]MH_SAM_APDU [04:31:01]CAPDU: 80 0D 01 02 [04:31:01]Write to MH i2c: E2 08 00 F5 09 80 0D 01 02 00 00 00 00 77 [04:31:01]Write i2c OK [04:31:01]MH_I2C_Read... [04:31:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:31:01]Read from MH i2c: E2 [04:31:01]MH_I2C_Read... [04:31:01]Read from MH i2c: E2 03 00 [04:31:01]MH_I2C_Read... [04:31:01]Read from MH i2c: E2 03 00 F5 09 00 90 00 72 [04:31:01]RAPDU: 90 00 [04:31:01]wFMCommunicate OK [04:31:01]wFMCommunicate request_size=255 [04:31:01]MH_SAM_APDU [04:31:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 8A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E5 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 70 00 00 00 00 07 04 06 00 B0 1E 04 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 86 2A 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DE 7A 03 00 35 04 06 00 2F 14 BF 2F [04:31:01]Write to MH i2c: E2 02 01 F6 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 8A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E5 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 70 00 00 00 00 07 04 06 00 B0 1E 04 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 86 2A 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DE 7A 03 00 35 04 06 00 2F 14 BF 2F 00 00 24 [04:31:01]Write i2c OK [04:31:01]MH_I2C_Read... [04:31:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:31:01]Read from MH i2c: E2 [04:31:01]MH_I2C_Read... [04:31:01]Read from MH i2c: E2 03 00 [04:31:01]MH_I2C_Read... [04:31:01]Read from MH i2c: E2 03 00 F6 09 00 90 00 73 [04:31:01]RAPDU: 90 00 [04:31:01]wFMCommunicate OK [04:31:01]wFMCommunicate request_size=7 [04:31:01]MH_SAM_APDU [04:31:01]CAPDU: 80 0D 02 02 02 84 1A [04:31:01]Write to MH i2c: E2 0A 00 F7 09 80 0D 02 02 02 00 84 1A 00 00 1C [04:31:01]Write i2c OK [04:31:01]MH_I2C_Read... [04:31:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:31:01]Read from MH i2c: E2 [04:31:01]MH_I2C_Read... [04:31:01]Read from MH i2c: E2 03 00 [04:31:01]MH_I2C_Read... [04:31:01]Read from MH i2c: E2 03 00 F7 09 00 90 00 74 [04:31:01]RAPDU: 90 00 [04:31:01]wFMCommunicate OK [04:31:01]wFMCommunicate request_size=4 [04:31:01]MH_SAM_APDU [04:31:01]CAPDU: 80 0D 03 02 [04:31:01]Write to MH i2c: E2 08 00 F8 09 80 0D 03 02 00 00 00 00 7C [04:31:01]Write i2c OK [04:31:01]MH_I2C_Read... [04:31:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:31:01]Read from MH i2c: E2 [04:31:01]MH_I2C_Read... [04:31:01]Read from MH i2c: E2 0B 00 [04:31:01]MH_I2C_Read... [04:31:01]Read from MH i2c: E2 0B 00 F8 09 00 71 5D BB E4 81 E9 29 AF 90 00 2C [04:31:01]RAPDU: 71 5D BB E4 81 E9 29 AF 90 00 [04:31:01]wFMCommunicate OK [04:31:01]SAM_PROTO_SignData done [04:31:01]FM_MakeSignedData done [04:31:01]CreateOFDProtocolMessage [04:31:01]wFMCommunicate request_size=4 [04:31:01]MH_SAM_APDU [04:31:01]CAPDU: 80 11 00 00 [04:31:01]Write to MH i2c: E2 08 00 F9 09 80 11 00 00 00 00 00 00 7C [04:31:01]Write i2c OK [04:31:01]MH_I2C_Read... [04:31:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:31:01]Read from MH i2c: E2 [04:31:01]MH_I2C_Read... [04:31:01]Read from MH i2c: E2 17 00 [04:31:01]MH_I2C_Read... [04:31:01]Read from MH i2c: E2 17 00 F9 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D3 [04:31:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [04:31:01]wFMCommunicate OK [04:31:01]CreateOFDProtocolMessage done [04:31:01]OFDSenderStorePacket 228062 [04:31:01]StoreOFDPacket docnum=228062 [04:31:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 C7 D9 04 01 31 B1 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 70 8A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E5 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 70 00 00 00 00 07 04 06 00 B0 1E 04 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 86 2A 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DE 7A 03 00 35 04 06 00 2F 14 BF 2F 84 1A 71 5D BB E4 81 E9 29 AF [04:31:01]CheckFolder [04:31:01]dirname=/storage/ofd_packets [04:31:01]CheckFolder done [04:31:01]ProducePacketName [04:31:01]name=ofd_packets/00228062 [04:31:01]NVStorageSaveData ofd_packets/00228062 [04:31:01]File name is /storage/ofd_packets/00228062 [04:31:01]Write 298 bytes [04:31:01]NVStorageSaveData done [04:31:01]OFDSenderStorePacket done [04:31:01]KKMCreateOFDPacket done [04:31:01]NVStorageSaveData kkm_last_timestamp [04:31:01]File name is /storage/kkm_last_timestamp [04:31:01]Write 4 bytes [04:31:01]NVStorageSaveData done [04:31:01]ExternCall_PrintAddStr [04:31:01]wPrintStart [04:31:01]Write to MH i2c: 01 00 00 FA 09 03 [04:31:01]Write i2c OK [04:31:01]MH_I2C_Read... [04:31:01]Read from MH i2c: 01 [04:31:01]MH_I2C_Read... [04:31:01]Read from MH i2c: 01 07 00 [04:31:01]MH_I2C_Read... [04:31:01]Read from MH i2c: 01 07 00 FA 09 00 00 00 00 00 FF 0F 18 [04:31:01]RasterBufferAndPrint [04:31:01]line Счет N : (1)1964259 [04:31:01]line ИНН: 02508201610067 [04:31:01]line Контрольно-Кассовый Чек [04:31:01]line ПРОДАЖА [04:31:01]line ТРК (МРК, ГНК) : 31 [04:31:01]line Товар: 2710194210 [04:31:01]line ДТ-К-5 [04:31:01]line 35.440 * 76.20 [04:31:01]line = 2700.53 [04:31:01]line НДС 12% НСП 1% [04:31:01]line > о реализуемом товаре [04:31:01]line ОКРУГЛЕНИЕ: -0.53 [04:31:01]line ИТОГО: 2700.00 [04:31:01]line Внесено: 2700.00 [04:31:01]line СДАЧА: 0.00 [04:31:01]line НСП 1% : 23.90 [04:31:01]line НДС 12% : 286.78 [04:31:01]line Наличными: 2700.00 [04:31:01]line Безнал.: 0.00 [04:31:01]line Место: АЗС № 133 "Партнер Нефть" [04:31:01]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [04:31:01]line СНО: Общий режим [04:31:01]line Чек 26 22.10.2024 04:31 [04:31:01]line Смена: 535 ФФД: 1.0 [04:31:01]line ЗНМ: 0300000091 [04:31:01]line РНМ: 0000000000091685 [04:31:01]line Версия ККМ: 001 [04:31:02]line ФМ: 0000000000871839 [04:31:02]line ФД: 228062 [04:31:02]line ФПД: 51766153413658 [04:31:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T043102&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228062&fm=51766153413658&tin=02508201610067®Number=0000000000091685&sum=270000 [04:31:02]OFD Sender: Processing packet 228062 [packets to send 38, broken 37] [04:31:02]ProducePacketName [04:31:02]name=ofd_packets/00228062 [04:31:02]OFD Sender: To server: pG, [04:31:02]CommunicateWithHost lk.salyk.kg:30040 [04:31:02]ConnectInit lk.salyk.kg [04:31:02]written 0, free lines is 4095 [04:31:02]Connected sock=10 [04:31:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 C7 D9 04 01 31 B1 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 70 8A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E5 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 70 00 00 00 00 07 04 06 00 B0 1E 04 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 86 2A 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DE 7A 03 00 35 04 06 00 2F 14 BF 2F 84 1A 71 5D BB E4 81 E9 29 AF [04:31:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 A1 3B 47 00 24 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DE 7A 03 00 F4 03 04 00 7F D5 16 67 B6 04 01 00 00 83 05 0F FE 7D FA D8 80 [04:31:02]CommunicateWithHost err = 0 [04:31:02]CheckOFDResponse [04:31:02]1017 (14) - 77093643461234 [04:31:02]1041 (16) - 0000000000871839 [04:31:02]1040 (4) - 228062 [04:31:02]1012 (4) - 21.10.2024 22:28 [04:31:02]1206 (1) - 0 [04:31:02]OFD Sender: Remove packet 228062 [04:31:02]ProducePacketName [04:31:02]name=ofd_packets/00228062 [04:31:02]NVStorageDeleteData [04:31:02]Write to MH i2c: 01 00 00 24 0A 2E [04:31:02]Write i2c OK [04:31:02]MH_I2C_Read... [04:31:02]Read from MH i2c: 01 [04:31:02]MH_I2C_Read... [04:31:02]Read from MH i2c: 01 07 00 [04:31:02]MH_I2C_Read... [04:31:02]Read from MH i2c: 01 07 00 24 0A 00 00 00 00 00 A5 0C E6 [04:31:02]RasterBufferAndPrint [04:31:02]line [04:31:02]line [04:31:02]line [04:31:02]line [04:31:02]line [04:31:02]written 0, free lines is 3241 [04:31:02]MH_Cut [04:31:02]Write to MH i2c: D1 01 00 2B 0A 01 07 [04:31:02]Write i2c OK [04:31:02]MH_I2C_Read... [04:31:02]Read from MH i2c: D1 [04:31:02]MH_I2C_Read... [04:31:02]Read from MH i2c: D1 01 00 [04:31:02]MH_I2C_Read... [04:31:02]Read from MH i2c: D1 01 00 2B 0A 00 06 [04:31:02]Write to MH i2c: 01 00 00 2C 0A 36 [04:31:02]Write i2c OK [04:31:02]MH_I2C_Read... [04:31:03]OFD Sender: No OFD packet to send [04:31:03]*** Cut start [04:31:03]*** Partial cut [04:31:03]*** CUTSNS_PIN = 1 [04:31:03]*** CUTSNS_PIN = 0 [04:31:03]*** Brake cut motor [04:31:04]Read from MH i2c: 01 [04:31:04]MH_I2C_Read... [04:31:04]*** Stop cut motor [04:31:04]*** Cut end [04:31:04]Read from MH i2c: 01 07 00 [04:31:04]MH_I2C_Read... [04:31:04]Read from MH i2c: 01 07 00 2C 0A 00 00 00 00 00 FF 0F 4B [04:31:04]process_action close_receipt done [04:31:04]requested_data is exist [04:31:04]produce_requested_data [04:31:04]requested_item fm.sn is exist - process it [04:31:04]wFMCommunicate request_size=4 [04:31:04]MH_SAM_APDU [04:31:04]CAPDU: 80 11 00 00 [04:31:04]Write to MH i2c: E2 08 00 2D 0A 80 11 00 00 00 00 00 00 B1 [04:31:04]Write i2c OK [04:31:04]MH_I2C_Read... [04:31:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:31:04]Read from MH i2c: E2 [04:31:04]MH_I2C_Read... [04:31:04]Read from MH i2c: E2 17 00 [04:31:04]MH_I2C_Read... [04:31:04]Read from MH i2c: E2 17 00 2D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 08 [04:31:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [04:31:04]wFMCommunicate OK [04:31:04]requested_item fd.num is exist - process it [04:31:04]SAM_PROTO_GetFieldsCounters [04:31:04]wFMCommunicate request_size=4 [04:31:04]MH_SAM_APDU [04:31:04]CAPDU: 80 13 00 00 [04:31:04]Write to MH i2c: E2 08 00 2E 0A 80 13 00 00 00 00 00 00 B4 [04:31:04]Write i2c OK [04:31:04]MH_I2C_Read... [04:31:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:31:04]Read from MH i2c: E2 [04:31:04]MH_I2C_Read... [04:31:04]Read from MH i2c: E2 62 00 [04:31:04]MH_I2C_Read... [04:31:04]Read from MH i2c: E2 62 00 2E 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 DE 7A 03 00 0E 04 04 00 17 02 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 9F [04:31:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 DE 7A 03 00 0E 04 04 00 17 02 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 [04:31:04]wFMCommunicate OK [04:31:04]SAM_PROTO_GetFieldsCounters done [04:31:04]requested_item shift.num is exist - process it [04:31:04]requested_item shift.opened is exist - process it [04:31:04]req_shift_opened [04:31:04]FM_GetShiftState [04:31:04]SAM_PROTO_GetShiftState [04:31:04]wFMCommunicate request_size=4 [04:31:04]MH_SAM_APDU [04:31:04]CAPDU: 80 13 01 00 [04:31:04]Write to MH i2c: E2 08 00 2F 0A 80 13 01 00 00 00 00 00 B6 [04:31:04]Write i2c OK [04:31:04]MH_I2C_Read... [04:31:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:31:04]Read from MH i2c: E2 [04:31:04]MH_I2C_Read... [04:31:04]Read from MH i2c: E2 0E 00 [04:31:04]MH_I2C_Read... [04:31:04]Read from MH i2c: E2 0E 00 2F 0A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 7D [04:31:04]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [04:31:04]wFMCommunicate OK [04:31:04]SAM_PROTO_GetShiftState done [04:31:04]FM_GetShiftState done [04:31:04]req_shift_opened done [04:31:04]requested_item shift.open_date is exist - process it [04:31:04]req_shift_open_date [04:31:04]req_shift_open_date done [04:31:04]produce_requested_data done [04:31:04]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228062,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [04:31:04]process_action_free close_receipt [04:31:04]json_value_free [04:31:04]json_value_free done [04:31:04]process_json_proto returns [04:31:04]Send response to host [04:31:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228062,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [04:31:04]free response buf [04:31:04]execute_script done [04:31:04]execute_script returns [04:31:04]free content buf [04:31:04]Sock 7.Close socket [04:31:04]Sock 7.Thread stoped [04:31:08]OFD Sender: No OFD packet to send [04:31:13]OFD Sender: No OFD packet to send [04:31:18]OFD Sender: No OFD packet to send [04:31:23]OFD Sender: No OFD packet to send [04:31:28]OFD Sender: No OFD packet to send [04:31:33]OFD Sender: No OFD packet to send [04:31:38]OFD Sender: No OFD packet to send [04:31:43]OFD Sender: No OFD packet to send [04:31:48]OFD Sender: No OFD packet to send [04:31:53]OFD Sender: No OFD packet to send [04:31:58]OFD Sender: No OFD packet to send [04:32:03]OFD Sender: No OFD packet to send [04:32:08]OFD Sender: No OFD packet to send [04:32:13]OFD Sender: No OFD packet to send [04:32:18]OFD Sender: No OFD packet to send [04:32:23]OFD Sender: No OFD packet to send [04:32:28]OFD Sender: No OFD packet to send [04:32:33]OFD Sender: No OFD packet to send [04:32:38]OFD Sender: No OFD packet to send [04:32:43]OFD Sender: No OFD packet to send [04:32:48]OFD Sender: No OFD packet to send [04:32:53]OFD Sender: No OFD packet to send [04:32:58]OFD Sender: No OFD packet to send [04:33:03]OFD Sender: No OFD packet to send [04:33:08]OFD Sender: No OFD packet to send [04:33:13]OFD Sender: No OFD packet to send [04:33:18]OFD Sender: No OFD packet to send [04:33:23]OFD Sender: No OFD packet to send [04:33:28]OFD Sender: No OFD packet to send [04:33:33]OFD Sender: No OFD packet to send [04:33:38]OFD Sender: No OFD packet to send [04:33:43]OFD Sender: No OFD packet to send [04:33:48]OFD Sender: No OFD packet to send [04:33:53]OFD Sender: No OFD packet to send [04:33:58]OFD Sender: No OFD packet to send [04:34:03]OFD Sender: No OFD packet to send [04:34:08]OFD Sender: No OFD packet to send [04:34:13]OFD Sender: No OFD packet to send [04:34:18]OFD Sender: No OFD packet to send [04:34:23]OFD Sender: No OFD packet to send [04:34:28]OFD Sender: No OFD packet to send [04:34:33]OFD Sender: No OFD packet to send [04:34:38]OFD Sender: No OFD packet to send [04:34:43]OFD Sender: No OFD packet to send [04:34:48]OFD Sender: No OFD packet to send [04:34:53]OFD Sender: No OFD packet to send [04:34:58]OFD Sender: No OFD packet to send [04:35:03]OFD Sender: No OFD packet to send [04:35:08]OFD Sender: No OFD packet to send [04:35:13]OFD Sender: No OFD packet to send [04:35:15]recv_with_timeout no data received [04:35:18]OFD Sender: No OFD packet to send [04:35:23]OFD Sender: No OFD packet to send [04:35:28]OFD Sender: No OFD packet to send [04:35:31]recv_with_timeout no data received [04:35:33]OFD Sender: No OFD packet to send [04:35:38]OFD Sender: No OFD packet to send [04:35:43]OFD Sender: No OFD packet to send [04:35:47]recv_with_timeout no data received [04:35:48]OFD Sender: No OFD packet to send [04:35:53]OFD Sender: No OFD packet to send [04:35:58]OFD Sender: No OFD packet to send [04:36:03]OFD Sender: No OFD packet to send [04:36:08]OFD Sender: No OFD packet to send [04:36:13]OFD Sender: No OFD packet to send [04:36:18]OFD Sender: No OFD packet to send [04:36:23]OFD Sender: No OFD packet to send [04:36:28]OFD Sender: No OFD packet to send [04:36:33]OFD Sender: No OFD packet to send [04:36:38]OFD Sender: No OFD packet to send [04:36:43]OFD Sender: No OFD packet to send [04:36:48]OFD Sender: No OFD packet to send [04:36:53]OFD Sender: No OFD packet to send [04:36:58]OFD Sender: No OFD packet to send [04:37:03]OFD Sender: No OFD packet to send [04:37:08]OFD Sender: No OFD packet to send [04:37:13]OFD Sender: No OFD packet to send [04:37:18]OFD Sender: No OFD packet to send [04:37:23]OFD Sender: No OFD packet to send [04:37:28]OFD Sender: No OFD packet to send [04:37:33]OFD Sender: No OFD packet to send [04:37:38]OFD Sender: No OFD packet to send [04:37:43]OFD Sender: No OFD packet to send [04:37:48]OFD Sender: No OFD packet to send [04:37:53]OFD Sender: No OFD packet to send [04:37:58]OFD Sender: No OFD packet to send [04:38:03]OFD Sender: No OFD packet to send [04:38:08]OFD Sender: No OFD packet to send [04:38:13]OFD Sender: No OFD packet to send [04:38:18]OFD Sender: No OFD packet to send [04:38:23]OFD Sender: No OFD packet to send [04:38:28]OFD Sender: No OFD packet to send [04:38:33]OFD Sender: No OFD packet to send [04:38:38]OFD Sender: No OFD packet to send [04:38:43]OFD Sender: No OFD packet to send [04:38:48]OFD Sender: No OFD packet to send [04:38:53]OFD Sender: No OFD packet to send [04:38:58]OFD Sender: No OFD packet to send [04:39:03]OFD Sender: No OFD packet to send [04:39:08]OFD Sender: No OFD packet to send [04:39:13]OFD Sender: No OFD packet to send [04:39:18]OFD Sender: No OFD packet to send [04:39:23]OFD Sender: No OFD packet to send [04:39:28]OFD Sender: No OFD packet to send [04:39:33]OFD Sender: No OFD packet to send [04:39:38]OFD Sender: No OFD packet to send [04:39:43]OFD Sender: No OFD packet to send [04:39:48]OFD Sender: No OFD packet to send [04:39:53]OFD Sender: No OFD packet to send [04:39:58]OFD Sender: No OFD packet to send [04:40:03]OFD Sender: No OFD packet to send [04:40:08]OFD Sender: No OFD packet to send [04:40:13]OFD Sender: No OFD packet to send [04:40:18]OFD Sender: No OFD packet to send [04:40:23]OFD Sender: No OFD packet to send [04:40:28]OFD Sender: No OFD packet to send [04:40:33]OFD Sender: No OFD packet to send [04:40:38]OFD Sender: No OFD packet to send [04:40:43]OFD Sender: No OFD packet to send [04:40:48]OFD Sender: No OFD packet to send [04:40:53]OFD Sender: No OFD packet to send [04:40:58]OFD Sender: No OFD packet to send [04:41:03]OFD Sender: No OFD packet to send [04:41:08]OFD Sender: No OFD packet to send [04:41:13]OFD Sender: No OFD packet to send [04:41:18]OFD Sender: No OFD packet to send [04:41:23]OFD Sender: No OFD packet to send [04:41:28]OFD Sender: No OFD packet to send [04:41:33]OFD Sender: No OFD packet to send [04:41:38]OFD Sender: No OFD packet to send [04:41:43]OFD Sender: No OFD packet to send [04:41:48]OFD Sender: No OFD packet to send [04:41:53]OFD Sender: No OFD packet to send [04:41:58]OFD Sender: No OFD packet to send [04:42:03]OFD Sender: No OFD packet to send [04:42:08]OFD Sender: No OFD packet to send [04:42:13]OFD Sender: No OFD packet to send [04:42:18]OFD Sender: No OFD packet to send [04:42:23]OFD Sender: No OFD packet to send [04:42:28]OFD Sender: No OFD packet to send [04:42:33]OFD Sender: No OFD packet to send [04:42:38]OFD Sender: No OFD packet to send [04:42:43]OFD Sender: No OFD packet to send [04:42:48]OFD Sender: No OFD packet to send [04:42:53]OFD Sender: No OFD packet to send [04:42:58]OFD Sender: No OFD packet to send [04:43:03]OFD Sender: No OFD packet to send [04:43:08]OFD Sender: No OFD packet to send [04:43:13]OFD Sender: No OFD packet to send [04:43:18]OFD Sender: No OFD packet to send [04:43:23]OFD Sender: No OFD packet to send [04:43:28]OFD Sender: No OFD packet to send [04:43:33]OFD Sender: No OFD packet to send [04:43:38]OFD Sender: No OFD packet to send [04:43:43]OFD Sender: No OFD packet to send [04:43:48]OFD Sender: No OFD packet to send [04:43:53]OFD Sender: No OFD packet to send [04:43:58]OFD Sender: No OFD packet to send [04:44:03]OFD Sender: No OFD packet to send [04:44:08]OFD Sender: No OFD packet to send [04:44:13]OFD Sender: No OFD packet to send [04:44:18]OFD Sender: No OFD packet to send [04:44:23]OFD Sender: No OFD packet to send [04:44:28]OFD Sender: No OFD packet to send [04:44:33]OFD Sender: No OFD packet to send [04:44:38]OFD Sender: No OFD packet to send [04:44:43]OFD Sender: No OFD packet to send [04:44:48]OFD Sender: No OFD packet to send [04:44:53]OFD Sender: No OFD packet to send [04:44:58]OFD Sender: No OFD packet to send [04:45:03]OFD Sender: No OFD packet to send [04:45:08]OFD Sender: No OFD packet to send [04:45:13]OFD Sender: No OFD packet to send [04:45:18]OFD Sender: No OFD packet to send [04:45:23]OFD Sender: No OFD packet to send [04:45:28]OFD Sender: No OFD packet to send [04:45:33]OFD Sender: No OFD packet to send [04:45:38]OFD Sender: No OFD packet to send [04:45:43]OFD Sender: No OFD packet to send [04:45:48]OFD Sender: No OFD packet to send [04:45:53]OFD Sender: No OFD packet to send [04:45:58]OFD Sender: No OFD packet to send [04:46:03]OFD Sender: No OFD packet to send [04:46:08]OFD Sender: No OFD packet to send [04:46:13]OFD Sender: No OFD packet to send [04:46:18]OFD Sender: No OFD packet to send [04:46:23]OFD Sender: No OFD packet to send [04:46:28]OFD Sender: No OFD packet to send [04:46:33]OFD Sender: No OFD packet to send [04:46:38]OFD Sender: No OFD packet to send [04:46:43]OFD Sender: No OFD packet to send [04:46:48]OFD Sender: No OFD packet to send [04:46:53]OFD Sender: No OFD packet to send [04:46:58]OFD Sender: No OFD packet to send [04:47:03]OFD Sender: No OFD packet to send [04:47:08]OFD Sender: No OFD packet to send [04:47:13]OFD Sender: No OFD packet to send [04:47:18]OFD Sender: No OFD packet to send [04:47:23]OFD Sender: No OFD packet to send [04:47:28]OFD Sender: No OFD packet to send [04:47:33]OFD Sender: No OFD packet to send [04:47:38]OFD Sender: No OFD packet to send [04:47:43]OFD Sender: No OFD packet to send [04:47:46]accept exits with 9 [04:47:46]New connection [04:47:46]New thread 3067137380 created [04:47:46]Thread 3066994020 joined [04:47:46]Waiting for new connection... [04:47:46] Sock 9.Parse request [04:47:46]Sock 9.Check first char [04:47:46]Sock 9.First char is OK [04:47:46]request: POST /json_proto HTTP/1.0 [04:47:46]Method: POST [04:47:46]URL: /json_proto [04:47:46]Method is POST - this is cgi request [04:47:46]url: /json_proto [04:47:46]query_string will be loaded in cgi processing [04:47:46]execute_cgi json_proto POST (null) [04:47:46]execute_cgi path=json_proto method=POST [04:47:46]POST find Content-Length [04:47:46]Host: 172.17.44.195:8080 [04:47:46]Content-Length: 679 [04:47:46]Content-Type: application/json [04:47:46] [04:47:46]POST finish read [04:47:46]Found Content-Length = 679 [04:47:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.210, "sum" : 980.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 980.00, "total" : 980.00, "payments": [ { "type": 0, "sum" : 980.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:47:46]execute_script... [04:47: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)1964261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.210, "sum" : 980.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 980.00, "total" : 980.00, "payments": [ { "type": 0, "sum" : 980.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:47:46]POST & json_proto [04:47:46]process_json_proto [04:47:46]json parsed OK: [04:47:46]protocol is kg_v1.0 [04:47:46]action value=close_receipt [04:47:46]process_action close_receipt [04:47:46]cmd_close_receipt [04:47:46]MH_GetDate [04:47:46]Write to MH i2c: F0 00 00 30 0A 29 [04:47:46]Write i2c OK [04:47:46]MH_I2C_Read... [04:47:46]Read from MH i2c: F0 [04:47:46]MH_I2C_Read... [04:47:46]Read from MH i2c: F0 09 00 [04:47:46]MH_I2C_Read... [04:47:46]Read from MH i2c: F0 09 00 30 0A 00 74 2E 17 67 82 C9 CF 66 D2 [04:47:46]GetLastDocTimeStamp 1729571462 [04:47:46]current date 1729572468 [04:47:46]FM_GetShiftState [04:47:46]SAM_PROTO_GetShiftState [04:47:46]wFMCommunicate request_size=4 [04:47:46]MH_SAM_APDU [04:47:46]CAPDU: 80 13 01 00 [04:47:46]Write to MH i2c: E2 08 00 31 0A 80 13 01 00 00 00 00 00 B8 [04:47:46]Write i2c OK [04:47:46]MH_I2C_Read... [04:47:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:47:46]Read from MH i2c: E2 [04:47:46]MH_I2C_Read... [04:47:46]Read from MH i2c: E2 0E 00 [04:47:46]MH_I2C_Read... [04:47:46]Read from MH i2c: E2 0E 00 31 0A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 7F [04:47:46]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [04:47:46]wFMCommunicate OK [04:47:46]SAM_PROTO_GetShiftState done [04:47:46]FM_GetShiftState done [04:47:46]opened in 1729555538 [04:47:46]opened+sec_in_day 1729641938 [04:47:46]quantity*price = 98018 [04:47:46]sum+1 = 98019 [04:47:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 980.00 Внесено: 980.00 СДАЧА: 0.00 НСП 1% : 8.67 НДС 12% : 104.09 Наличными: 980.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 27 22.10.2024 04:47 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228063 ФПД: 152761272827135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T044748&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228063&fm=152761272827135&tin=02508201610067®Number=0000000000091685&sum=98000 [04:47:47]StoreToDocumentArchive [04:47:47]shift 535 fd 228063 [04:47:47]save to /storage/0535/doc_00228063 [04:47:47]save last doc name /storage/0535/doc_00228063 to /storage/kkm_last_doc_name [04:47:47]save OK [04:47:47]Clear old archive folders... [04:47:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:47:47]tlvbuf is 00859C90 [04:47:47]SAM_PROTO_ClearQueue [04:47:47]wFMCommunicate request_size=4 [04:47:47]MH_SAM_APDU [04:47:47]CAPDU: 80 09 00 00 [04:47:47]Write to MH i2c: E2 08 00 3E 0A 80 09 00 00 00 00 00 00 BA [04:47:47]Write i2c OK [04:47:47]MH_I2C_Read... [04:47:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:47:47]Read from MH i2c: E2 [04:47:47]MH_I2C_Read... [04:47:47]Read from MH i2c: E2 03 00 [04:47:47]MH_I2C_Read... [04:47:47]Read from MH i2c: E2 03 00 3E 0A 00 90 00 BC [04:47:47]RAPDU: 90 00 [04:47:47]wFMCommunicate OK [04:47:47]SAM_PROTO_ClearQueue done [04:47:47]KKMCreateOFDPacket [04:47:47]OFDProtocolAddRootSTLVToBuf [04:47:47]FM_MakeSignedData [04:47:47]FM_MakeSignedData [04:47:47]SAM_PROTO_SignData [04:47:47]wFMCommunicate request_size=4 [04:47:47]MH_SAM_APDU [04:47:47]CAPDU: 80 0D 01 02 [04:47:47]Write to MH i2c: E2 08 00 3F 0A 80 0D 01 02 00 00 00 00 C2 [04:47:47]Write i2c OK [04:47:47]MH_I2C_Read... [04:47:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:47:47]Read from MH i2c: E2 [04:47:47]MH_I2C_Read... [04:47:47]Read from MH i2c: E2 03 00 [04:47:47]MH_I2C_Read... [04:47:47]Read from MH i2c: E2 03 00 3F 0A 00 90 00 BD [04:47:47]RAPDU: 90 00 [04:47:47]wFMCommunicate OK [04:47:47]wFMCommunicate request_size=255 [04:47:47]MH_SAM_APDU [04:47: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 9A 33 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E2 7E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 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 A9 28 00 00 00 00 07 04 06 00 D0 7E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 74 2E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DF 7A 03 00 35 04 06 00 8A [04:47:47]Write to MH i2c: E2 02 01 40 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 33 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E2 7E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 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 A9 28 00 00 00 00 07 04 06 00 D0 7E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 74 2E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DF 7A 03 00 35 04 06 00 8A 00 00 2D [04:47:47]Write i2c OK [04:47:47]MH_I2C_Read... [04:47:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:47:47]Read from MH i2c: E2 [04:47:47]MH_I2C_Read... [04:47:47]Read from MH i2c: E2 03 00 [04:47:47]MH_I2C_Read... [04:47:47]Read from MH i2c: E2 03 00 40 0A 00 90 00 BE [04:47:47]RAPDU: 90 00 [04:47:47]wFMCommunicate OK [04:47:47]wFMCommunicate request_size=10 [04:47:47]MH_SAM_APDU [04:47:47]CAPDU: 80 0D 02 02 05 EF 81 66 FC FF [04:47:47]Write to MH i2c: E2 0D 00 41 0A 80 0D 02 02 05 00 EF 81 66 FC FF 00 00 A0 [04:47:47]Write i2c OK [04:47:47]MH_I2C_Read... [04:47:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:47:48]Read from MH i2c: E2 [04:47:48]MH_I2C_Read... [04:47:48]Read from MH i2c: E2 03 00 [04:47:48]MH_I2C_Read... [04:47:48]Read from MH i2c: E2 03 00 41 0A 00 90 00 BF [04:47:48]RAPDU: 90 00 [04:47:48]wFMCommunicate OK [04:47:48]wFMCommunicate request_size=4 [04:47:48]MH_SAM_APDU [04:47:48]CAPDU: 80 0D 03 02 [04:47:48]Write to MH i2c: E2 08 00 42 0A 80 0D 03 02 00 00 00 00 C7 [04:47:48]Write i2c OK [04:47:48]MH_I2C_Read... [04:47:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:47:48]Read from MH i2c: E2 [04:47:48]MH_I2C_Read... [04:47:48]Read from MH i2c: E2 0B 00 [04:47:48]MH_I2C_Read... [04:47:48]Read from MH i2c: E2 0B 00 42 0A 00 BA 3C CA 3C 54 4D 5B 4C 90 00 0C [04:47:48]RAPDU: BA 3C CA 3C 54 4D 5B 4C 90 00 [04:47:48]wFMCommunicate OK [04:47:48]SAM_PROTO_SignData done [04:47:48]FM_MakeSignedData done [04:47:48]CreateOFDProtocolMessage [04:47:48]wFMCommunicate request_size=4 [04:47:48]MH_SAM_APDU [04:47:48]CAPDU: 80 11 00 00 [04:47:48]Write to MH i2c: E2 08 00 43 0A 80 11 00 00 00 00 00 00 C7 [04:47:48]Write i2c OK [04:47:48]MH_I2C_Read... [04:47:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:47:48]Read from MH i2c: E2 [04:47:48]MH_I2C_Read... [04:47:48]Read from MH i2c: E2 17 00 [04:47:48]MH_I2C_Read... [04:47:48]Read from MH i2c: E2 17 00 43 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1E [04:47:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [04:47:48]wFMCommunicate OK [04:47:48]CreateOFDProtocolMessage done [04:47:48]OFDSenderStorePacket 228063 [04:47:48]StoreOFDPacket docnum=228063 [04:47:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 3C 7D 07 01 CD AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 33 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E2 7E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 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 A9 28 00 00 00 00 07 04 06 00 D0 7E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 74 2E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DF 7A 03 00 35 04 06 00 8A EF 81 66 FC FF BA 3C CA 3C 54 4D 5B 4C [04:47:48]CheckFolder [04:47:48]dirname=/storage/ofd_packets [04:47:48]CheckFolder done [04:47:48]ProducePacketName [04:47:48]name=ofd_packets/00228063 [04:47:48]NVStorageSaveData ofd_packets/00228063 [04:47:48]File name is /storage/ofd_packets/00228063 [04:47:48]Write 301 bytes [04:47:48]NVStorageSaveData done [04:47:48]OFDSenderStorePacket done [04:47:48]KKMCreateOFDPacket done [04:47:48]NVStorageSaveData kkm_last_timestamp [04:47:48]File name is /storage/kkm_last_timestamp [04:47:48]Write 4 bytes [04:47:48]NVStorageSaveData done [04:47:48]ExternCall_PrintAddStr [04:47:48]wPrintStart [04:47:48]Write to MH i2c: 01 00 00 44 0A 4E [04:47:48]OFD Sender: Processing packet 228063 [packets to send 38, broken 37] [04:47:48]ProducePacketName [04:47:48]name=ofd_packets/00228063 [04:47:48]OFD Sender: To server: pG, [04:47:48]CommunicateWithHost lk.salyk.kg:30040 [04:47:48]ConnectInit lk.salyk.kg [04:47:48]Write i2c OK [04:47:48]MH_I2C_Read... [04:47:48]Read from MH i2c: 01 [04:47:48]MH_I2C_Read... [04:47:48]Read from MH i2c: 01 07 00 [04:47:48]MH_I2C_Read... [04:47:48]Read from MH i2c: 01 07 00 44 0A 00 00 00 00 00 FF 0F 63 [04:47:48]RasterBufferAndPrint [04:47:48]line Счет N : (1)1964261 [04:47:48]line ИНН: 02508201610067 [04:47:48]line Контрольно-Кассовый Чек [04:47:48]line ПРОДАЖА [04:47:48]line ТРК (МРК, ГНК) : 54 [04:47:48]line Товар: 2710124500 [04:47:48]line Аи-95-К-5 [04:47:48]line 13.210 * 74.20 [04:47:48]line = 980.18 [04:47:48]line НДС 12% НСП 1% [04:47:48]line > о реализуемом товаре [04:47:48]line ОКРУГЛЕНИЕ: -0.18 [04:47:48]line ИТОГО: 980.00 [04:47:48]line Внесено: 980.00 [04:47:48]line СДАЧА: 0.00 [04:47:48]line НСП 1% : 8.67 [04:47:48]line НДС 12% : 104.09 [04:47:48]line Наличными: 980.00 [04:47:48]line Безнал.: 0.00 [04:47:48]line Место: АЗС № 133 "Партнер Нефть" [04:47:48]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [04:47:48]line СНО: Общий режим [04:47:48]line Чек 27 22.10.2024 04:47 [04:47:48]line Смена: 535 ФФД: 1.0 [04:47:48]line ЗНМ: 0300000091 [04:47:48]line РНМ: 0000000000091685 [04:47:48]line Версия ККМ: 001 [04:47:48]line ФМ: 0000000000871839 [04:47:48]line ФД: 228063 [04:47:48]line ФПД: 152761272827135 [04:47:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T044748&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228063&fm=152761272827135&tin=02508201610067®Number=0000000000091685&sum=98000 [04:47:48]Connected sock=10 [04:47:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 3C 7D 07 01 CD AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 33 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E2 7E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 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 A9 28 00 00 00 00 07 04 06 00 D0 7E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 74 2E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DF 7A 03 00 35 04 06 00 8A EF 81 66 FC FF BA 3C CA 3C 54 4D 5B 4C [04:47:48]written 0, free lines is 4095 [04:47:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 61 85 47 00 8C 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DF 7A 03 00 F4 03 04 00 6D D9 16 67 B6 04 01 00 00 A3 BB A9 C5 DB A2 CA B0 [04:47:48]CommunicateWithHost err = 0 [04:47:48]CheckOFDResponse [04:47:48]1017 (14) - 77093643461234 [04:47:48]1041 (16) - 0000000000871839 [04:47:48]1040 (4) - 228063 [04:47:48]1012 (4) - 21.10.2024 22:45 [04:47:48]1206 (1) - 0 [04:47:48]OFD Sender: Remove packet 228063 [04:47:48]ProducePacketName [04:47:48]name=ofd_packets/00228063 [04:47:48]NVStorageDeleteData [04:47:48]Write to MH i2c: 01 00 00 6E 0A 78 [04:47:48]Write i2c OK [04:47:48]MH_I2C_Read... [04:47:48]Read from MH i2c: 01 [04:47:48]MH_I2C_Read... [04:47:48]Read from MH i2c: 01 07 00 [04:47:48]MH_I2C_Read... [04:47:48]Read from MH i2c: 01 07 00 6E 0A 00 00 00 00 00 99 0C 24 [04:47:48]RasterBufferAndPrint [04:47:48]line [04:47:48]line [04:47:48]line [04:47:48]line [04:47:48]line [04:47:48]written 0, free lines is 3229 [04:47:48]MH_Cut [04:47:48]Write to MH i2c: D1 01 00 75 0A 01 51 [04:47:48]Write i2c OK [04:47:48]MH_I2C_Read... [04:47:48]Read from MH i2c: D1 [04:47:48]MH_I2C_Read... [04:47:48]Read from MH i2c: D1 01 00 [04:47:48]MH_I2C_Read... [04:47:48]Read from MH i2c: D1 01 00 75 0A 00 50 [04:47:48]Write to MH i2c: 01 00 00 76 0A 80 [04:47:48]Write i2c OK [04:47:48]MH_I2C_Read... [04:47:49]OFD Sender: No OFD packet to send [04:47:49]*** Cut start [04:47:49]*** Partial cut [04:47:49]*** CUTSNS_PIN = 1 [04:47:49]*** CUTSNS_PIN = 0 [04:47:50]*** Brake cut motor [04:47:50]Read from MH i2c: 01 [04:47:50]MH_I2C_Read... [04:47:50]*** Stop cut motor [04:47:50]*** Cut end [04:47:50]Read from MH i2c: 01 07 00 [04:47:50]MH_I2C_Read... [04:47:50]Read from MH i2c: 01 07 00 76 0A 00 00 00 00 00 FF 0F 95 [04:47:50]process_action close_receipt done [04:47:50]requested_data is exist [04:47:50]produce_requested_data [04:47:50]requested_item fm.sn is exist - process it [04:47:50]wFMCommunicate request_size=4 [04:47:50]MH_SAM_APDU [04:47:50]CAPDU: 80 11 00 00 [04:47:50]Write to MH i2c: E2 08 00 77 0A 80 11 00 00 00 00 00 00 FB [04:47:50]Write i2c OK [04:47:50]MH_I2C_Read... [04:47:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:47:50]Read from MH i2c: E2 [04:47:50]MH_I2C_Read... [04:47:50]Read from MH i2c: E2 17 00 [04:47:50]MH_I2C_Read... [04:47:50]Read from MH i2c: E2 17 00 77 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 52 [04:47:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [04:47:50]wFMCommunicate OK [04:47:50]requested_item fd.num is exist - process it [04:47:50]SAM_PROTO_GetFieldsCounters [04:47:50]wFMCommunicate request_size=4 [04:47:50]MH_SAM_APDU [04:47:50]CAPDU: 80 13 00 00 [04:47:50]Write to MH i2c: E2 08 00 78 0A 80 13 00 00 00 00 00 00 FE [04:47:50]Write i2c OK [04:47:50]MH_I2C_Read... [04:47:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:47:50]Read from MH i2c: E2 [04:47:50]MH_I2C_Read... [04:47:50]Read from MH i2c: E2 62 00 [04:47:50]MH_I2C_Read... [04:47:50]Read from MH i2c: E2 62 00 78 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 DF 7A 03 00 0E 04 04 00 17 02 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 ED [04:47:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 DF 7A 03 00 0E 04 04 00 17 02 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 [04:47:50]wFMCommunicate OK [04:47:50]SAM_PROTO_GetFieldsCounters done [04:47:50]requested_item shift.num is exist - process it [04:47:50]requested_item shift.opened is exist - process it [04:47:50]req_shift_opened [04:47:50]FM_GetShiftState [04:47:50]SAM_PROTO_GetShiftState [04:47:50]wFMCommunicate request_size=4 [04:47:50]MH_SAM_APDU [04:47:50]CAPDU: 80 13 01 00 [04:47:50]Write to MH i2c: E2 08 00 79 0A 80 13 01 00 00 00 00 00 00 [04:47:50]Write i2c OK [04:47:50]MH_I2C_Read... [04:47:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:47:50]Read from MH i2c: E2 [04:47:50]MH_I2C_Read... [04:47:50]Read from MH i2c: E2 0E 00 [04:47:50]MH_I2C_Read... [04:47:50]Read from MH i2c: E2 0E 00 79 0A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 C7 [04:47:50]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [04:47:50]wFMCommunicate OK [04:47:50]SAM_PROTO_GetShiftState done [04:47:50]FM_GetShiftState done [04:47:50]req_shift_opened done [04:47:50]requested_item shift.open_date is exist - process it [04:47:50]req_shift_open_date [04:47:50]req_shift_open_date done [04:47:50]produce_requested_data done [04:47:50]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228063,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [04:47:50]process_action_free close_receipt [04:47:50]json_value_free [04:47:50]json_value_free done [04:47:50]process_json_proto returns [04:47:50]Send response to host [04:47:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228063,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [04:47:50]free response buf [04:47:50]execute_script done [04:47:50]execute_script returns [04:47:50]free content buf [04:47:50]Sock 9.Close socket [04:47:50]Sock 9.Thread stoped [04:47:51]accept exits with 7 [04:47:51]New connection [04:47:51]New thread 3066994020 created [04:47:51]Thread 3067137380 joined [04:47:51]Waiting for new connection... [04:47:51] Sock 7.Parse request [04:47:51]Sock 7.Check first char [04:47:51]Sock 7.First char is OK [04:47:51]request: POST /json_proto HTTP/1.0 [04:47:51]Method: POST [04:47:51]URL: /json_proto [04:47:51]Method is POST - this is cgi request [04:47:51]url: /json_proto [04:47:51]query_string will be loaded in cgi processing [04:47:51]execute_cgi json_proto POST (null) [04:47:51]execute_cgi path=json_proto method=POST [04:47:51]POST find Content-Length [04:47:51]Host: 172.17.44.195:8080 [04:47:51]Content-Length: 683 [04:47:51]Content-Type: application/json [04:47:51] [04:47:51]POST finish read [04:47:51]Found Content-Length = 683 [04:47:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [04:47:51]execute_script... [04:47: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)1964260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [04:47:51]POST & json_proto [04:47:51]process_json_proto [04:47:51]json parsed OK: [04:47:51]protocol is kg_v1.0 [04:47:51]action value=close_receipt [04:47:51]process_action close_receipt [04:47:51]cmd_close_receipt [04:47:51]MH_GetDate [04:47:51]Write to MH i2c: F0 00 00 7A 0A 73 [04:47:51]Write i2c OK [04:47:51]MH_I2C_Read... [04:47:51]Read from MH i2c: F0 [04:47:51]MH_I2C_Read... [04:47:51]Read from MH i2c: F0 09 00 [04:47:51]MH_I2C_Read... [04:47:51]Read from MH i2c: F0 09 00 7A 0A 00 79 2E 17 67 82 C9 CF 66 21 [04:47:51]GetLastDocTimeStamp 1729572468 [04:47:51]current date 1729572473 [04:47:51]FM_GetShiftState [04:47:51]SAM_PROTO_GetShiftState [04:47:51]wFMCommunicate request_size=4 [04:47:51]MH_SAM_APDU [04:47:51]CAPDU: 80 13 01 00 [04:47:51]Write to MH i2c: E2 08 00 7B 0A 80 13 01 00 00 00 00 00 02 [04:47:51]Write i2c OK [04:47:51]MH_I2C_Read... [04:47:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:47:51]Read from MH i2c: E2 [04:47:51]MH_I2C_Read... [04:47:51]Read from MH i2c: E2 0E 00 [04:47:51]MH_I2C_Read... [04:47:51]Read from MH i2c: E2 0E 00 7B 0A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 C9 [04:47:51]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [04:47:51]wFMCommunicate OK [04:47:51]SAM_PROTO_GetShiftState done [04:47:51]FM_GetShiftState done [04:47:51]opened in 1729555538 [04:47:51]opened+sec_in_day 1729641938 [04:47:51]quantity*price = 150056 [04:47:51]sum+1 = 150058 [04:47:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 28 22.10.2024 04:47 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228064 ФПД: 183177010451343 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T044753&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228064&fm=183177010451343&tin=02508201610067®Number=0000000000091685&sum=150000 [04:47:52]StoreToDocumentArchive [04:47:52]shift 535 fd 228064 [04:47:52]save to /storage/0535/doc_00228064 [04:47:52]save last doc name /storage/0535/doc_00228064 to /storage/kkm_last_doc_name [04:47:52]save OK [04:47:52]Clear old archive folders... [04:47:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:47:52]tlvbuf is 0089FFD0 [04:47:52]SAM_PROTO_ClearQueue [04:47:52]wFMCommunicate request_size=4 [04:47:52]MH_SAM_APDU [04:47:52]CAPDU: 80 09 00 00 [04:47:52]Write to MH i2c: E2 08 00 88 0A 80 09 00 00 00 00 00 00 04 [04:47:52]Write i2c OK [04:47:52]MH_I2C_Read... [04:47:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:47:52]Read from MH i2c: E2 [04:47:52]MH_I2C_Read... [04:47:52]Read from MH i2c: E2 03 00 [04:47:52]MH_I2C_Read... [04:47:52]Read from MH i2c: E2 03 00 88 0A 00 90 00 06 [04:47:52]RAPDU: 90 00 [04:47:52]wFMCommunicate OK [04:47:52]SAM_PROTO_ClearQueue done [04:47:52]KKMCreateOFDPacket [04:47:52]OFDProtocolAddRootSTLVToBuf [04:47:52]FM_MakeSignedData [04:47:52]FM_MakeSignedData [04:47:52]SAM_PROTO_SignData [04:47:52]wFMCommunicate request_size=4 [04:47:52]MH_SAM_APDU [04:47:52]CAPDU: 80 0D 01 02 [04:47:52]Write to MH i2c: E2 08 00 89 0A 80 0D 01 02 00 00 00 00 0C [04:47:52]Write i2c OK [04:47:52]MH_I2C_Read... [04:47:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:47:52]Read from MH i2c: E2 [04:47:52]MH_I2C_Read... [04:47:52]Read from MH i2c: E2 03 00 [04:47:52]MH_I2C_Read... [04:47:52]Read from MH i2c: E2 03 00 89 0A 00 90 00 07 [04:47:52]RAPDU: 90 00 [04:47:52]wFMCommunicate OK [04:47:52]wFMCommunicate request_size=255 [04:47:52]MH_SAM_APDU [04:47: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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 79 2E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E0 7A 03 00 35 04 06 00 A6 [04:47:52]Write to MH i2c: E2 02 01 8A 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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 79 2E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E0 7A 03 00 35 04 06 00 A6 00 00 49 [04:47:52]Write i2c OK [04:47:52]MH_I2C_Read... [04:47:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:47:53]Read from MH i2c: E2 [04:47:53]MH_I2C_Read... [04:47:53]Read from MH i2c: E2 03 00 [04:47:53]MH_I2C_Read... [04:47:53]Read from MH i2c: E2 03 00 8A 0A 00 90 00 08 [04:47:53]RAPDU: 90 00 [04:47:53]wFMCommunicate OK [04:47:53]wFMCommunicate request_size=10 [04:47:53]MH_SAM_APDU [04:47:53]CAPDU: 80 0D 02 02 05 99 38 A3 93 8F [04:47:53]Write to MH i2c: E2 0D 00 8B 0A 80 0D 02 02 05 00 99 38 A3 93 8F 00 00 AF [04:47:53]Write i2c OK [04:47:53]MH_I2C_Read... [04:47:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:47:53]Read from MH i2c: E2 [04:47:53]MH_I2C_Read... [04:47:53]Read from MH i2c: E2 03 00 [04:47:53]MH_I2C_Read... [04:47:53]Read from MH i2c: E2 03 00 8B 0A 00 90 00 09 [04:47:53]RAPDU: 90 00 [04:47:53]wFMCommunicate OK [04:47:53]wFMCommunicate request_size=4 [04:47:53]MH_SAM_APDU [04:47:53]CAPDU: 80 0D 03 02 [04:47:53]Write to MH i2c: E2 08 00 8C 0A 80 0D 03 02 00 00 00 00 11 [04:47:53]Write i2c OK [04:47:53]MH_I2C_Read... [04:47:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:47:53]Read from MH i2c: E2 [04:47:53]MH_I2C_Read... [04:47:53]Read from MH i2c: E2 0B 00 [04:47:53]MH_I2C_Read... [04:47:53]Read from MH i2c: E2 0B 00 8C 0A 00 9B DD FD 70 72 BD C6 E9 90 00 D5 [04:47:53]RAPDU: 9B DD FD 70 72 BD C6 E9 90 00 [04:47:53]wFMCommunicate OK [04:47:53]SAM_PROTO_SignData done [04:47:53]FM_MakeSignedData done [04:47:53]CreateOFDProtocolMessage [04:47:53]wFMCommunicate request_size=4 [04:47:53]MH_SAM_APDU [04:47:53]CAPDU: 80 11 00 00 [04:47:53]Write to MH i2c: E2 08 00 8D 0A 80 11 00 00 00 00 00 00 11 [04:47:53]Write i2c OK [04:47:53]MH_I2C_Read... [04:47:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:47:53]Read from MH i2c: E2 [04:47:53]MH_I2C_Read... [04:47:53]Read from MH i2c: E2 17 00 [04:47:53]MH_I2C_Read... [04:47:53]Read from MH i2c: E2 17 00 8D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 68 [04:47:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [04:47:53]wFMCommunicate OK [04:47:53]CreateOFDProtocolMessage done [04:47:53]OFDSenderStorePacket 228064 [04:47:53]StoreOFDPacket docnum=228064 [04:47:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 10 B9 07 01 50 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 79 2E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E0 7A 03 00 35 04 06 00 A6 99 38 A3 93 8F 9B DD FD 70 72 BD C6 E9 [04:47:53]CheckFolder [04:47:53]dirname=/storage/ofd_packets [04:47:53]CheckFolder done [04:47:53]ProducePacketName [04:47:53]name=ofd_packets/00228064 [04:47:53]NVStorageSaveData ofd_packets/00228064 [04:47:53]File name is /storage/ofd_packets/00228064 [04:47:53]Write 301 bytes [04:47:53]NVStorageSaveData done [04:47:53]OFDSenderStorePacket done [04:47:53]KKMCreateOFDPacket done [04:47:53]NVStorageSaveData kkm_last_timestamp [04:47:53]File name is /storage/kkm_last_timestamp [04:47:53]Write 4 bytes [04:47:53]NVStorageSaveData done [04:47:53]ExternCall_PrintAddStr [04:47:53]wPrintStart [04:47:53]Write to MH i2c: 01 00 00 8E 0A 98 [04:47:53]Write i2c OK [04:47:53]MH_I2C_Read... [04:47:53]Read from MH i2c: 01 [04:47:53]MH_I2C_Read... [04:47:53]Read from MH i2c: 01 07 00 [04:47:53]MH_I2C_Read... [04:47:53]Read from MH i2c: 01 07 00 8E 0A 00 00 00 00 00 FF 0F AD [04:47:53]RasterBufferAndPrint [04:47:53]line Счет N : (1)1964260 [04:47:53]line ИНН: 02508201610067 [04:47:53]line Контрольно-Кассовый Чек [04:47:53]line ПРОДАЖА [04:47:53]line ТРК (МРК, ГНК) : 33 [04:47:53]line Товар: 2710124130 [04:47:53]line Аи-92-К-5 [04:47:53]line 22.430 * 66.90 [04:47:53]line = 1500.57 [04:47:53]line НДС 12% НСП 1% [04:47:53]line > о реализуемом товаре [04:47:53]line ОКРУГЛЕНИЕ: -0.57 [04:47:53]line ИТОГО: 1500.00 [04:47:53]line Внесено: 1500.00 [04:47:53]line СДАЧА: 0.00 [04:47:53]line НСП 1% : 13.28 [04:47:53]line НДС 12% : 159.35 [04:47:53]line Наличными: 1500.00 [04:47:53]line Безнал.: 0.00 [04:47:53]line Место: АЗС № 133 "Партнер Нефть" [04:47:53]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [04:47:53]line СНО: Общий режим [04:47:53]line Чек 28 22.10.2024 04:47 [04:47:53]line Смена: 535 ФФД: 1.0 [04:47:53]line ЗНМ: 0300000091 [04:47:53]line РНМ: 0000000000091685 [04:47:53]line Версия ККМ: 001 [04:47:53]line ФМ: 0000000000871839 [04:47:53]line ФД: 228064 [04:47:53]line ФПД: 183177010451343 [04:47:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T044753&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228064&fm=183177010451343&tin=02508201610067®Number=0000000000091685&sum=150000 [04:47:53]written 0, free lines is 4095 [04:47:53]OFD Sender: Processing packet 228064 [packets to send 38, broken 37] [04:47:53]ProducePacketName [04:47:53]name=ofd_packets/00228064 [04:47:53]OFD Sender: To server: pG, [04:47:53]CommunicateWithHost lk.salyk.kg:30040 [04:47:53]ConnectInit lk.salyk.kg [04:47:53]Connected sock=9 [04:47:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 10 B9 07 01 50 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 79 2E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E0 7A 03 00 35 04 06 00 A6 99 38 A3 93 8F 9B DD FD 70 72 BD C6 E9 [04:47:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 1B A9 47 00 4C 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E0 7A 03 00 F4 03 04 00 73 D9 16 67 B6 04 01 00 00 C7 46 23 9C 9C 4D FA 82 [04:47:54]CommunicateWithHost err = 0 [04:47:54]CheckOFDResponse [04:47:54]1017 (14) - 77093643461234 [04:47:54]1041 (16) - 0000000000871839 [04:47:54]1040 (4) - 228064 [04:47:54]1012 (4) - 21.10.2024 22:45 [04:47:54]1206 (1) - 0 [04:47:54]OFD Sender: Remove packet 228064 [04:47:54]ProducePacketName [04:47:54]name=ofd_packets/00228064 [04:47:54]NVStorageDeleteData [04:47:54]Write to MH i2c: 01 00 00 B8 0A C2 [04:47:54]Write i2c OK [04:47:54]MH_I2C_Read... [04:47:54]Read from MH i2c: 01 [04:47:54]MH_I2C_Read... [04:47:54]Read from MH i2c: 01 07 00 [04:47:54]MH_I2C_Read... [04:47:54]Read from MH i2c: 01 07 00 B8 0A 00 00 00 00 00 AA 0C 7F [04:47:54]RasterBufferAndPrint [04:47:54]line [04:47:54]line [04:47:54]line [04:47:54]line [04:47:54]line [04:47:54]written 0, free lines is 3251 [04:47:54]MH_Cut [04:47:54]Write to MH i2c: D1 01 00 BF 0A 01 9B [04:47:54]Write i2c OK [04:47:54]MH_I2C_Read... [04:47:54]Read from MH i2c: D1 [04:47:54]MH_I2C_Read... [04:47:54]Read from MH i2c: D1 01 00 [04:47:54]MH_I2C_Read... [04:47:54]Read from MH i2c: D1 01 00 BF 0A 00 9A [04:47:54]Write to MH i2c: 01 00 00 C0 0A CA [04:47:54]Write i2c OK [04:47:54]MH_I2C_Read... [04:47:54]OFD Sender: No OFD packet to send [04:47:55]*** Cut start [04:47:55]*** Partial cut [04:47:55]*** CUTSNS_PIN = 1 [04:47:55]*** CUTSNS_PIN = 0 [04:47:55]*** Brake cut motor [04:47:55]Read from MH i2c: 01 [04:47:55]MH_I2C_Read... [04:47:55]*** Stop cut motor [04:47:55]*** Cut end [04:47:55]Read from MH i2c: 01 07 00 [04:47:55]MH_I2C_Read... [04:47:55]Read from MH i2c: 01 07 00 C0 0A 00 00 00 00 00 FF 0F DF [04:47:55]process_action close_receipt done [04:47:55]requested_data is exist [04:47:55]produce_requested_data [04:47:55]requested_item fm.sn is exist - process it [04:47:55]wFMCommunicate request_size=4 [04:47:55]MH_SAM_APDU [04:47:55]CAPDU: 80 11 00 00 [04:47:55]Write to MH i2c: E2 08 00 C1 0A 80 11 00 00 00 00 00 00 45 [04:47:55]Write i2c OK [04:47:55]MH_I2C_Read... [04:47:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:47:55]Read from MH i2c: E2 [04:47:55]MH_I2C_Read... [04:47:55]Read from MH i2c: E2 17 00 [04:47:55]MH_I2C_Read... [04:47:55]Read from MH i2c: E2 17 00 C1 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9C [04:47:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [04:47:55]wFMCommunicate OK [04:47:55]requested_item fd.num is exist - process it [04:47:55]SAM_PROTO_GetFieldsCounters [04:47:55]wFMCommunicate request_size=4 [04:47:55]MH_SAM_APDU [04:47:55]CAPDU: 80 13 00 00 [04:47:55]Write to MH i2c: E2 08 00 C2 0A 80 13 00 00 00 00 00 00 48 [04:47:55]Write i2c OK [04:47:55]MH_I2C_Read... [04:47:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:47:55]Read from MH i2c: E2 [04:47:55]MH_I2C_Read... [04:47:55]Read from MH i2c: E2 62 00 [04:47:55]MH_I2C_Read... [04:47:55]Read from MH i2c: E2 62 00 C2 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E0 7A 03 00 0E 04 04 00 17 02 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 3B [04:47:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E0 7A 03 00 0E 04 04 00 17 02 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 [04:47:55]wFMCommunicate OK [04:47:55]SAM_PROTO_GetFieldsCounters done [04:47:55]requested_item shift.num is exist - process it [04:47:55]requested_item shift.opened is exist - process it [04:47:55]req_shift_opened [04:47:55]FM_GetShiftState [04:47:55]SAM_PROTO_GetShiftState [04:47:55]wFMCommunicate request_size=4 [04:47:55]MH_SAM_APDU [04:47:55]CAPDU: 80 13 01 00 [04:47:55]Write to MH i2c: E2 08 00 C3 0A 80 13 01 00 00 00 00 00 4A [04:47:55]Write i2c OK [04:47:55]MH_I2C_Read... [04:47:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:47:56]Read from MH i2c: E2 [04:47:56]MH_I2C_Read... [04:47:56]Read from MH i2c: E2 0E 00 [04:47:56]MH_I2C_Read... [04:47:56]Read from MH i2c: E2 0E 00 C3 0A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 11 [04:47:56]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [04:47:56]wFMCommunicate OK [04:47:56]SAM_PROTO_GetShiftState done [04:47:56]FM_GetShiftState done [04:47:56]req_shift_opened done [04:47:56]requested_item shift.open_date is exist - process it [04:47:56]req_shift_open_date [04:47:56]req_shift_open_date done [04:47:56]produce_requested_data done [04:47:56]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228064,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [04:47:56]process_action_free close_receipt [04:47:56]json_value_free [04:47:56]json_value_free done [04:47:56]process_json_proto returns [04:47:56]Send response to host [04:47:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228064,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [04:47:56]free response buf [04:47:56]execute_script done [04:47:56]execute_script returns [04:47:56]free content buf [04:47:56]Sock 7.Close socket [04:47:56]Sock 7.Thread stoped [04:47:59]OFD Sender: No OFD packet to send [04:48:04]OFD Sender: No OFD packet to send [04:48:09]OFD Sender: No OFD packet to send [04:48:14]OFD Sender: No OFD packet to send [04:48:19]OFD Sender: No OFD packet to send [04:48:24]OFD Sender: No OFD packet to send [04:48:29]OFD Sender: No OFD packet to send [04:48:34]OFD Sender: No OFD packet to send [04:48:39]OFD Sender: No OFD packet to send [04:48:44]OFD Sender: No OFD packet to send [04:48:49]OFD Sender: No OFD packet to send [04:48:54]OFD Sender: No OFD packet to send [04:48:59]OFD Sender: No OFD packet to send [04:49:04]OFD Sender: No OFD packet to send [04:49:09]OFD Sender: No OFD packet to send [04:49:14]OFD Sender: No OFD packet to send [04:49:19]OFD Sender: No OFD packet to send [04:49:24]OFD Sender: No OFD packet to send [04:49:29]OFD Sender: No OFD packet to send [04:49:34]OFD Sender: No OFD packet to send [04:49:39]OFD Sender: No OFD packet to send [04:49:44]OFD Sender: No OFD packet to send [04:49:49]OFD Sender: No OFD packet to send [04:49:54]OFD Sender: No OFD packet to send [04:49:59]OFD Sender: No OFD packet to send [04:50:04]OFD Sender: No OFD packet to send [04:50:09]OFD Sender: No OFD packet to send [04:50:14]OFD Sender: No OFD packet to send [04:50:19]OFD Sender: No OFD packet to send [04:50:24]OFD Sender: No OFD packet to send [04:50:29]OFD Sender: No OFD packet to send [04:50:34]OFD Sender: No OFD packet to send [04:50:39]OFD Sender: No OFD packet to send [04:50:44]OFD Sender: No OFD packet to send [04:50:49]OFD Sender: No OFD packet to send [04:50:54]OFD Sender: No OFD packet to send [04:50:59]OFD Sender: No OFD packet to send [04:51:04]OFD Sender: No OFD packet to send [04:51:09]OFD Sender: No OFD packet to send [04:51:14]OFD Sender: No OFD packet to send [04:51:19]OFD Sender: No OFD packet to send [04:51:24]OFD Sender: No OFD packet to send [04:51:29]OFD Sender: No OFD packet to send [04:51:34]OFD Sender: No OFD packet to send [04:51:39]OFD Sender: No OFD packet to send [04:51:44]OFD Sender: No OFD packet to send [04:51:49]OFD Sender: No OFD packet to send [04:51:54]OFD Sender: No OFD packet to send [04:51:59]OFD Sender: No OFD packet to send [04:52:04]OFD Sender: No OFD packet to send [04:52:09]OFD Sender: No OFD packet to send [04:52:14]OFD Sender: No OFD packet to send [04:52:19]OFD Sender: No OFD packet to send [04:52:24]OFD Sender: No OFD packet to send [04:52:29]OFD Sender: No OFD packet to send [04:52:34]OFD Sender: No OFD packet to send [04:52:39]OFD Sender: No OFD packet to send [04:52:44]OFD Sender: No OFD packet to send [04:52:49]OFD Sender: No OFD packet to send [04:52:54]OFD Sender: No OFD packet to send [04:52:59]OFD Sender: No OFD packet to send [04:53:04]OFD Sender: No OFD packet to send [04:53:09]OFD Sender: No OFD packet to send [04:53:14]OFD Sender: No OFD packet to send [04:53:19]OFD Sender: No OFD packet to send [04:53:24]OFD Sender: No OFD packet to send [04:53:29]OFD Sender: No OFD packet to send [04:53:34]OFD Sender: No OFD packet to send [04:53:39]OFD Sender: No OFD packet to send [04:53:44]OFD Sender: No OFD packet to send [04:53:49]OFD Sender: No OFD packet to send [04:53:54]OFD Sender: No OFD packet to send [04:53:59]OFD Sender: No OFD packet to send [04:54:04]OFD Sender: No OFD packet to send [04:54:09]OFD Sender: No OFD packet to send [04:54:14]OFD Sender: No OFD packet to send [04:54:19]OFD Sender: No OFD packet to send [04:54:24]OFD Sender: No OFD packet to send [04:54:29]OFD Sender: No OFD packet to send [04:54:34]OFD Sender: No OFD packet to send [04:54:39]OFD Sender: No OFD packet to send [04:54:44]OFD Sender: No OFD packet to send [04:54:49]OFD Sender: No OFD packet to send [04:54:54]OFD Sender: No OFD packet to send [04:54:59]OFD Sender: No OFD packet to send [04:55:04]OFD Sender: No OFD packet to send [04:55:09]OFD Sender: No OFD packet to send [04:55:14]OFD Sender: No OFD packet to send [04:55:19]OFD Sender: No OFD packet to send [04:55:24]OFD Sender: No OFD packet to send [04:55:29]OFD Sender: No OFD packet to send [04:55:34]OFD Sender: No OFD packet to send [04:55:39]OFD Sender: No OFD packet to send [04:55:44]OFD Sender: No OFD packet to send [04:55:50]OFD Sender: No OFD packet to send [04:55:55]OFD Sender: No OFD packet to send [04:56:00]OFD Sender: No OFD packet to send [04:56:05]OFD Sender: No OFD packet to send [04:56:10]OFD Sender: No OFD packet to send [04:56:15]OFD Sender: No OFD packet to send [04:56:20]OFD Sender: No OFD packet to send [04:56:25]OFD Sender: No OFD packet to send [04:56:30]OFD Sender: No OFD packet to send [04:56:35]OFD Sender: No OFD packet to send [04:56:40]OFD Sender: No OFD packet to send [04:56:45]OFD Sender: No OFD packet to send [04:56:50]OFD Sender: No OFD packet to send [04:56:55]OFD Sender: No OFD packet to send [04:57:00]OFD Sender: No OFD packet to send [04:57:05]OFD Sender: No OFD packet to send [04:57:10]OFD Sender: No OFD packet to send [04:57:15]OFD Sender: No OFD packet to send [04:57:20]OFD Sender: No OFD packet to send [04:57:25]OFD Sender: No OFD packet to send [04:57:30]OFD Sender: No OFD packet to send [04:57:35]OFD Sender: No OFD packet to send [04:57:40]OFD Sender: No OFD packet to send [04:57:45]OFD Sender: No OFD packet to send [04:57:50]OFD Sender: No OFD packet to send [04:57:55]OFD Sender: No OFD packet to send [04:58:00]OFD Sender: No OFD packet to send [04:58:05]OFD Sender: No OFD packet to send [04:58:10]OFD Sender: No OFD packet to send [04:58:15]OFD Sender: No OFD packet to send [04:58:20]OFD Sender: No OFD packet to send [04:58:25]OFD Sender: No OFD packet to send [04:58:30]OFD Sender: No OFD packet to send [04:58:35]OFD Sender: No OFD packet to send [04:58:40]OFD Sender: No OFD packet to send [04:58:45]OFD Sender: No OFD packet to send [04:58:50]OFD Sender: No OFD packet to send [04:58:55]OFD Sender: No OFD packet to send [04:59:00]OFD Sender: No OFD packet to send [04:59:05]OFD Sender: No OFD packet to send [04:59:10]OFD Sender: No OFD packet to send [04:59:15]OFD Sender: No OFD packet to send [04:59:20]OFD Sender: No OFD packet to send [04:59:25]OFD Sender: No OFD packet to send [04:59:30]OFD Sender: No OFD packet to send [04:59:35]OFD Sender: No OFD packet to send [04:59:40]OFD Sender: No OFD packet to send [04:59:45]OFD Sender: No OFD packet to send [04:59:50]OFD Sender: No OFD packet to send [04:59:55]OFD Sender: No OFD packet to send [05:00:00]OFD Sender: No OFD packet to send [05:00:05]OFD Sender: No OFD packet to send [05:00:10]OFD Sender: No OFD packet to send [05:00:15]OFD Sender: No OFD packet to send [05:00:20]OFD Sender: No OFD packet to send [05:00:25]OFD Sender: No OFD packet to send [05:00:30]OFD Sender: No OFD packet to send [05:00:35]OFD Sender: No OFD packet to send [05:00:40]OFD Sender: No OFD packet to send [05:00:45]OFD Sender: No OFD packet to send [05:00:50]OFD Sender: No OFD packet to send [05:00:55]OFD Sender: No OFD packet to send [05:01:00]OFD Sender: No OFD packet to send [05:01:05]OFD Sender: No OFD packet to send [05:01:10]OFD Sender: No OFD packet to send [05:01:15]OFD Sender: No OFD packet to send [05:01:20]OFD Sender: No OFD packet to send [05:01:25]OFD Sender: No OFD packet to send [05:01:26]accept exits with 10 [05:01:26]New connection [05:01:26]New thread 3067137380 created [05:01:26]Thread 3066994020 joined [05:01:26]Waiting for new connection... [05:01:26] Sock 10.Parse request [05:01:26]Sock 10.Check first char [05:01:26]Sock 10.First char is OK [05:01:26]request: POST /json_proto HTTP/1.0 [05:01:26]Method: POST [05:01:26]URL: /json_proto [05:01:26]Method is POST - this is cgi request [05:01:26]url: /json_proto [05:01:26]query_string will be loaded in cgi processing [05:01:26]execute_cgi json_proto POST (null) [05:01:26]execute_cgi path=json_proto method=POST [05:01:26]POST find Content-Length [05:01:26]Host: 172.17.44.195:8080 [05:01:26]Content-Length: 678 [05:01:26]Content-Type: application/json [05:01:26] [05:01:26]POST finish read [05:01:26]Found Content-Length = 678 [05:01:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "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" ] } } [05:01:26]execute_script... [05:01: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)1964262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "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" ] } } [05:01:26]POST & json_proto [05:01:26]process_json_proto [05:01:26]json parsed OK: [05:01:26]protocol is kg_v1.0 [05:01:26]action value=close_receipt [05:01:26]process_action close_receipt [05:01:26]cmd_close_receipt [05:01:26]MH_GetDate [05:01:26]Write to MH i2c: F0 00 00 C4 0A BD [05:01:26]Write i2c OK [05:01:26]MH_I2C_Read... [05:01:26]Read from MH i2c: F0 [05:01:26]MH_I2C_Read... [05:01:26]Read from MH i2c: F0 09 00 [05:01:26]MH_I2C_Read... [05:01:26]Read from MH i2c: F0 09 00 C4 0A 00 A8 31 17 67 82 C9 CF 66 9D [05:01:26]GetLastDocTimeStamp 1729572473 [05:01:26]current date 1729573288 [05:01:26]FM_GetShiftState [05:01:26]SAM_PROTO_GetShiftState [05:01:26]wFMCommunicate request_size=4 [05:01:26]MH_SAM_APDU [05:01:26]CAPDU: 80 13 01 00 [05:01:26]Write to MH i2c: E2 08 00 C5 0A 80 13 01 00 00 00 00 00 4C [05:01:26]Write i2c OK [05:01:26]MH_I2C_Read... [05:01:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:01:26]Read from MH i2c: E2 [05:01:26]MH_I2C_Read... [05:01:26]Read from MH i2c: E2 0E 00 [05:01:26]MH_I2C_Read... [05:01:26]Read from MH i2c: E2 0E 00 C5 0A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 13 [05:01:26]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [05:01:26]wFMCommunicate OK [05:01:26]SAM_PROTO_GetShiftState done [05:01:26]FM_GetShiftState done [05:01:26]opened in 1729555538 [05:01:26]opened+sec_in_day 1729641938 [05:01:26]quantity*price = 30038 [05:01:26]sum+1 = 30039 [05:01:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 29 22.10.2024 05:01 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228065 ФПД: 229093726034018 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T050128&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228065&fm=229093726034018&tin=02508201610067®Number=0000000000091685&sum=30000 [05:01:27]StoreToDocumentArchive [05:01:27]shift 535 fd 228065 [05:01:27]save to /storage/0535/doc_00228065 [05:01:27]save last doc name /storage/0535/doc_00228065 to /storage/kkm_last_doc_name [05:01:27]save OK [05:01:27]Clear old archive folders... [05:01:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:01:27]tlvbuf is 00864290 [05:01:27]SAM_PROTO_ClearQueue [05:01:27]wFMCommunicate request_size=4 [05:01:27]MH_SAM_APDU [05:01:27]CAPDU: 80 09 00 00 [05:01:27]Write to MH i2c: E2 08 00 D2 0A 80 09 00 00 00 00 00 00 4E [05:01:27]Write i2c OK [05:01:27]MH_I2C_Read... [05:01:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:01:27]Read from MH i2c: E2 [05:01:27]MH_I2C_Read... [05:01:27]Read from MH i2c: E2 03 00 [05:01:27]MH_I2C_Read... [05:01:27]Read from MH i2c: E2 03 00 D2 0A 00 90 00 50 [05:01:27]RAPDU: 90 00 [05:01:27]wFMCommunicate OK [05:01:27]SAM_PROTO_ClearQueue done [05:01:27]KKMCreateOFDPacket [05:01:27]OFDProtocolAddRootSTLVToBuf [05:01:27]FM_MakeSignedData [05:01:27]FM_MakeSignedData [05:01:27]SAM_PROTO_SignData [05:01:27]wFMCommunicate request_size=4 [05:01:27]MH_SAM_APDU [05:01:27]CAPDU: 80 0D 01 02 [05:01:27]Write to MH i2c: E2 08 00 D3 0A 80 0D 01 02 00 00 00 00 56 [05:01:27]Write i2c OK [05:01:27]MH_I2C_Read... [05:01:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:01:27]Read from MH i2c: E2 [05:01:27]MH_I2C_Read... [05:01:27]Read from MH i2c: E2 03 00 [05:01:27]MH_I2C_Read... [05:01:27]Read from MH i2c: E2 03 00 D3 0A 00 90 00 51 [05:01:27]RAPDU: 90 00 [05:01:27]wFMCommunicate OK [05:01:27]wFMCommunicate request_size=255 [05:01:27]MH_SAM_APDU [05:01: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 1D 00 00 00 F4 03 04 00 A8 31 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E1 7A 03 00 35 04 06 00 D0 [05:01:27]Write to MH i2c: E2 02 01 D4 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 1D 00 00 00 F4 03 04 00 A8 31 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E1 7A 03 00 35 04 06 00 D0 00 00 9C [05:01:27]Write i2c OK [05:01:27]MH_I2C_Read... [05:01:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:01:27]Read from MH i2c: E2 [05:01:27]MH_I2C_Read... [05:01:27]Read from MH i2c: E2 03 00 [05:01:27]MH_I2C_Read... [05:01:27]Read from MH i2c: E2 03 00 D4 0A 00 90 00 52 [05:01:27]RAPDU: 90 00 [05:01:27]wFMCommunicate OK [05:01:27]wFMCommunicate request_size=10 [05:01:27]MH_SAM_APDU [05:01:27]CAPDU: 80 0D 02 02 05 5C 0A 29 18 62 [05:01:27]Write to MH i2c: E2 0D 00 D5 0A 80 0D 02 02 05 00 5C 0A 29 18 62 00 00 6C [05:01:27]Write i2c OK [05:01:27]MH_I2C_Read... [05:01:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:01:27]Read from MH i2c: E2 [05:01:27]MH_I2C_Read... [05:01:27]Read from MH i2c: E2 03 00 [05:01:27]MH_I2C_Read... [05:01:27]Read from MH i2c: E2 03 00 D5 0A 00 90 00 53 [05:01:27]RAPDU: 90 00 [05:01:27]wFMCommunicate OK [05:01:27]wFMCommunicate request_size=4 [05:01:27]MH_SAM_APDU [05:01:27]CAPDU: 80 0D 03 02 [05:01:27]Write to MH i2c: E2 08 00 D6 0A 80 0D 03 02 00 00 00 00 5B [05:01:27]Write i2c OK [05:01:27]MH_I2C_Read... [05:01:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:01:27]Read from MH i2c: E2 [05:01:27]MH_I2C_Read... [05:01:27]Read from MH i2c: E2 0B 00 [05:01:27]MH_I2C_Read... [05:01:27]Read from MH i2c: E2 0B 00 D6 0A 00 64 18 48 46 20 AD 9A 02 90 00 CF [05:01:27]RAPDU: 64 18 48 46 20 AD 9A 02 90 00 [05:01:27]wFMCommunicate OK [05:01:27]SAM_PROTO_SignData done [05:01:27]FM_MakeSignedData done [05:01:27]CreateOFDProtocolMessage [05:01:27]wFMCommunicate request_size=4 [05:01:27]MH_SAM_APDU [05:01:27]CAPDU: 80 11 00 00 [05:01:27]Write to MH i2c: E2 08 00 D7 0A 80 11 00 00 00 00 00 00 5B [05:01:27]Write i2c OK [05:01:27]MH_I2C_Read... [05:01:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:01:27]Read from MH i2c: E2 [05:01:27]MH_I2C_Read... [05:01:27]Read from MH i2c: E2 17 00 [05:01:27]MH_I2C_Read... [05:01:27]Read from MH i2c: E2 17 00 D7 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B2 [05:01:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [05:01:27]wFMCommunicate OK [05:01:27]CreateOFDProtocolMessage done [05:01:27]OFDSenderStorePacket 228065 [05:01:27]StoreOFDPacket docnum=228065 [05:01:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A6 42 07 01 C9 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 1D 00 00 00 F4 03 04 00 A8 31 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E1 7A 03 00 35 04 06 00 D0 5C 0A 29 18 62 64 18 48 46 20 AD 9A 02 [05:01:27]CheckFolder [05:01:27]dirname=/storage/ofd_packets [05:01:27]CheckFolder done [05:01:27]ProducePacketName [05:01:27]name=ofd_packets/00228065 [05:01:27]NVStorageSaveData ofd_packets/00228065 [05:01:27]File name is /storage/ofd_packets/00228065 [05:01:27]Write 301 bytes [05:01:27]NVStorageSaveData done [05:01:27]OFDSenderStorePacket done [05:01:27]KKMCreateOFDPacket done [05:01:27]NVStorageSaveData kkm_last_timestamp [05:01:27]File name is /storage/kkm_last_timestamp [05:01:27]Write 4 bytes [05:01:27]NVStorageSaveData done [05:01:27]ExternCall_PrintAddStr [05:01:27]wPrintStart [05:01:27]Write to MH i2c: 01 00 00 D8 0A E2 [05:01:27]Write i2c OK [05:01:27]MH_I2C_Read... [05:01:27]Read from MH i2c: 01 [05:01:27]MH_I2C_Read... [05:01:27]Read from MH i2c: 01 07 00 [05:01:27]MH_I2C_Read... [05:01:27]Read from MH i2c: 01 07 00 D8 0A 00 00 00 00 00 FF 0F F7 [05:01:27]RasterBufferAndPrint [05:01:27]line Счет N : (1)1964262 [05:01:27]line ИНН: 02508201610067 [05:01:27]line Контрольно-Кассовый Чек [05:01:27]line ПРОДАЖА [05:01:27]line ТРК (МРК, ГНК) : 33 [05:01:27]line Товар: 2710124130 [05:01:27]line Аи-92-К-5 [05:01:27]line 4.490 * 66.90 [05:01:27]line = 300.38 [05:01:27]line НДС 12% НСП 1% [05:01:27]line > о реализуемом товаре [05:01:27]line ОКРУГЛЕНИЕ: -0.38 [05:01:27]line ИТОГО: 300.00 [05:01:27]line Внесено: 300.00 [05:01:27]line СДАЧА: 0.00 [05:01:27]line НСП 1% : 2.66 [05:01:27]line НДС 12% : 31.90 [05:01:27]line Наличными: 300.00 [05:01:27]line Безнал.: 0.00 [05:01:27]line Место: АЗС № 133 "Партнер Нефть" [05:01:27]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [05:01:27]line СНО: Общий режим [05:01:27]line Чек 29 22.10.2024 05:01 [05:01:27]line Смена: 535 ФФД: 1.0 [05:01:27]line ЗНМ: 0300000091 [05:01:27]line РНМ: 0000000000091685 [05:01:27]line Версия ККМ: 001 [05:01:27]line ФМ: 0000000000871839 [05:01:27]line ФД: 228065 [05:01:27]line ФПД: 229093726034018 [05:01:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T050128&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228065&fm=229093726034018&tin=02508201610067®Number=0000000000091685&sum=30000 [05:01:28]written 0, free lines is 4095 [05:01:28]OFD Sender: Processing packet 228065 [packets to send 38, broken 37] [05:01:28]ProducePacketName [05:01:28]name=ofd_packets/00228065 [05:01:28]OFD Sender: To server: pG, [05:01:28]CommunicateWithHost lk.salyk.kg:30040 [05:01:28]ConnectInit lk.salyk.kg [05:01:28]Connected sock=9 [05:01:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A6 42 07 01 C9 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 1D 00 00 00 F4 03 04 00 A8 31 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E1 7A 03 00 35 04 06 00 D0 5C 0A 29 18 62 64 18 48 46 20 AD 9A 02 [05:01:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 15 2F 47 00 D2 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E1 7A 03 00 F4 03 04 00 A1 DC 16 67 B6 04 01 00 00 3A 32 B4 5C 56 E9 39 91 [05:01:28]CommunicateWithHost err = 0 [05:01:28]CheckOFDResponse [05:01:28]1017 (14) - 77093643461234 [05:01:28]1041 (16) - 0000000000871839 [05:01:28]1040 (4) - 228065 [05:01:28]1012 (4) - 21.10.2024 22:58 [05:01:28]1206 (1) - 0 [05:01:28]OFD Sender: Remove packet 228065 [05:01:28]ProducePacketName [05:01:28]name=ofd_packets/00228065 [05:01:28]NVStorageDeleteData [05:01:28]Write to MH i2c: 01 00 00 02 0B 0D [05:01:28]Write i2c OK [05:01:28]MH_I2C_Read... [05:01:28]Read from MH i2c: 01 [05:01:28]MH_I2C_Read... [05:01:28]Read from MH i2c: 01 07 00 [05:01:28]MH_I2C_Read... [05:01:28]Read from MH i2c: 01 07 00 02 0B 00 00 00 00 00 9A 0C BA [05:01:28]RasterBufferAndPrint [05:01:28]line [05:01:28]line [05:01:28]line [05:01:28]line [05:01:28]line [05:01:28]written 0, free lines is 3230 [05:01:28]MH_Cut [05:01:28]Write to MH i2c: D1 01 00 09 0B 01 E6 [05:01:28]Write i2c OK [05:01:28]MH_I2C_Read... [05:01:28]Read from MH i2c: D1 [05:01:28]MH_I2C_Read... [05:01:28]Read from MH i2c: D1 01 00 [05:01:28]MH_I2C_Read... [05:01:28]Read from MH i2c: D1 01 00 09 0B 00 E5 [05:01:28]Write to MH i2c: 01 00 00 0A 0B 15 [05:01:28]Write i2c OK [05:01:28]MH_I2C_Read... [05:01:29]OFD Sender: No OFD packet to send [05:01:29]*** Cut start [05:01:29]*** Partial cut [05:01:29]*** CUTSNS_PIN = 1 [05:01:29]*** CUTSNS_PIN = 0 [05:01:29]*** Brake cut motor [05:01:30]Read from MH i2c: 01 [05:01:30]MH_I2C_Read... [05:01:30]*** Stop cut motor [05:01:30]*** Cut end [05:01:30]Read from MH i2c: 01 07 00 [05:01:30]MH_I2C_Read... [05:01:30]Read from MH i2c: 01 07 00 0A 0B 00 00 00 00 00 FF 0F 2A [05:01:30]process_action close_receipt done [05:01:30]requested_data is exist [05:01:30]produce_requested_data [05:01:30]requested_item fm.sn is exist - process it [05:01:30]wFMCommunicate request_size=4 [05:01:30]MH_SAM_APDU [05:01:30]CAPDU: 80 11 00 00 [05:01:30]Write to MH i2c: E2 08 00 0B 0B 80 11 00 00 00 00 00 00 90 [05:01:30]Write i2c OK [05:01:30]MH_I2C_Read... [05:01:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:01:30]Read from MH i2c: E2 [05:01:30]MH_I2C_Read... [05:01:30]Read from MH i2c: E2 17 00 [05:01:30]MH_I2C_Read... [05:01:30]Read from MH i2c: E2 17 00 0B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E7 [05:01:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [05:01:30]wFMCommunicate OK [05:01:30]requested_item fd.num is exist - process it [05:01:30]SAM_PROTO_GetFieldsCounters [05:01:30]wFMCommunicate request_size=4 [05:01:30]MH_SAM_APDU [05:01:30]CAPDU: 80 13 00 00 [05:01:30]Write to MH i2c: E2 08 00 0C 0B 80 13 00 00 00 00 00 00 93 [05:01:30]Write i2c OK [05:01:30]MH_I2C_Read... [05:01:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:01:30]Read from MH i2c: E2 [05:01:30]MH_I2C_Read... [05:01:30]Read from MH i2c: E2 62 00 [05:01:30]MH_I2C_Read... [05:01:30]Read from MH i2c: E2 62 00 0C 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E1 7A 03 00 0E 04 04 00 17 02 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 8A [05:01:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E1 7A 03 00 0E 04 04 00 17 02 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 [05:01:30]wFMCommunicate OK [05:01:30]SAM_PROTO_GetFieldsCounters done [05:01:30]requested_item shift.num is exist - process it [05:01:30]requested_item shift.opened is exist - process it [05:01:30]req_shift_opened [05:01:30]FM_GetShiftState [05:01:30]SAM_PROTO_GetShiftState [05:01:30]wFMCommunicate request_size=4 [05:01:30]MH_SAM_APDU [05:01:30]CAPDU: 80 13 01 00 [05:01:30]Write to MH i2c: E2 08 00 0D 0B 80 13 01 00 00 00 00 00 95 [05:01:30]Write i2c OK [05:01:30]MH_I2C_Read... [05:01:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:01:30]Read from MH i2c: E2 [05:01:30]MH_I2C_Read... [05:01:30]Read from MH i2c: E2 0E 00 [05:01:30]MH_I2C_Read... [05:01:30]Read from MH i2c: E2 0E 00 0D 0B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 5C [05:01:30]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [05:01:30]wFMCommunicate OK [05:01:30]SAM_PROTO_GetShiftState done [05:01:30]FM_GetShiftState done [05:01:30]req_shift_opened done [05:01:30]requested_item shift.open_date is exist - process it [05:01:30]req_shift_open_date [05:01:30]req_shift_open_date done [05:01:30]produce_requested_data done [05:01:30]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228065,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [05:01:30]process_action_free close_receipt [05:01:30]json_value_free [05:01:30]json_value_free done [05:01:30]process_json_proto returns [05:01:30]Send response to host [05:01:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228065,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [05:01:30]free response buf [05:01:30]execute_script done [05:01:30]execute_script returns [05:01:30]free content buf [05:01:30]Sock 10.Close socket [05:01:30]Sock 10.Thread stoped [05:01:34]OFD Sender: No OFD packet to send [05:01:39]OFD Sender: No OFD packet to send [05:01:44]OFD Sender: No OFD packet to send [05:01:49]OFD Sender: No OFD packet to send [05:01:54]OFD Sender: No OFD packet to send [05:01:59]OFD Sender: No OFD packet to send [05:02:04]OFD Sender: No OFD packet to send [05:02:09]OFD Sender: No OFD packet to send [05:02:14]OFD Sender: No OFD packet to send [05:02:19]OFD Sender: No OFD packet to send [05:02:24]OFD Sender: No OFD packet to send [05:02:29]OFD Sender: No OFD packet to send [05:02:34]OFD Sender: No OFD packet to send [05:02:39]OFD Sender: No OFD packet to send [05:02:44]OFD Sender: No OFD packet to send [05:02:49]OFD Sender: No OFD packet to send [05:02:54]OFD Sender: No OFD packet to send [05:02:59]OFD Sender: No OFD packet to send [05:03:04]OFD Sender: No OFD packet to send [05:03:09]OFD Sender: No OFD packet to send [05:03:14]OFD Sender: No OFD packet to send [05:03:19]OFD Sender: No OFD packet to send [05:03:24]OFD Sender: No OFD packet to send [05:03:29]OFD Sender: No OFD packet to send [05:03:34]OFD Sender: No OFD packet to send [05:03:39]OFD Sender: No OFD packet to send [05:03:44]OFD Sender: No OFD packet to send [05:03:49]OFD Sender: No OFD packet to send [05:03:54]OFD Sender: No OFD packet to send [05:03:59]OFD Sender: No OFD packet to send [05:04:04]OFD Sender: No OFD packet to send [05:04:09]OFD Sender: No OFD packet to send [05:04:14]OFD Sender: No OFD packet to send [05:04:19]OFD Sender: No OFD packet to send [05:04:24]OFD Sender: No OFD packet to send [05:04:29]OFD Sender: No OFD packet to send [05:04:34]OFD Sender: No OFD packet to send [05:04:39]OFD Sender: No OFD packet to send [05:04:44]OFD Sender: No OFD packet to send [05:04:49]OFD Sender: No OFD packet to send [05:04:54]OFD Sender: No OFD packet to send [05:04:59]OFD Sender: No OFD packet to send [05:05:04]OFD Sender: No OFD packet to send [05:05:09]OFD Sender: No OFD packet to send [05:05:14]OFD Sender: No OFD packet to send [05:05:19]OFD Sender: No OFD packet to send [05:05:24]OFD Sender: No OFD packet to send [05:05:29]OFD Sender: No OFD packet to send [05:05:34]OFD Sender: No OFD packet to send [05:05:39]OFD Sender: No OFD packet to send [05:05:44]OFD Sender: No OFD packet to send [05:05:49]OFD Sender: No OFD packet to send [05:05:54]OFD Sender: No OFD packet to send [05:05:59]OFD Sender: No OFD packet to send [05:06:04]OFD Sender: No OFD packet to send [05:06:09]OFD Sender: No OFD packet to send [05:06:14]OFD Sender: No OFD packet to send [05:06:19]OFD Sender: No OFD packet to send [05:06:24]OFD Sender: No OFD packet to send [05:06:29]OFD Sender: No OFD packet to send [05:06:34]OFD Sender: No OFD packet to send [05:06:39]OFD Sender: No OFD packet to send [05:06:44]OFD Sender: No OFD packet to send [05:06:49]OFD Sender: No OFD packet to send [05:06:54]OFD Sender: No OFD packet to send [05:06:59]OFD Sender: No OFD packet to send [05:07:04]OFD Sender: No OFD packet to send [05:07:09]OFD Sender: No OFD packet to send [05:07:14]OFD Sender: No OFD packet to send [05:07:19]OFD Sender: No OFD packet to send [05:07:19]accept exits with 7 [05:07:19]New connection [05:07:19]New thread 3066994020 created [05:07:19]Thread 3067137380 joined [05:07:19]Waiting for new connection... [05:07:19] Sock 7.Parse request [05:07:19]Sock 7.Check first char [05:07:19]Sock 7.First char is OK [05:07:19]request: POST /json_proto HTTP/1.0 [05:07:19]Method: POST [05:07:19]URL: /json_proto [05:07:19]Method is POST - this is cgi request [05:07:19]url: /json_proto [05:07:19]query_string will be loaded in cgi processing [05:07:19]execute_cgi json_proto POST (null) [05:07:19]execute_cgi path=json_proto method=POST [05:07:19]POST find Content-Length [05:07:19]Host: 172.17.44.195:8080 [05:07:19]Content-Length: 683 [05:07:19]Content-Type: application/json [05:07:19] [05:07:19]POST finish read [05:07:19]Found Content-Length = 683 [05:07:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "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" ] } } [05:07:19]execute_script... [05:07:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "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" ] } } [05:07:19]POST & json_proto [05:07:19]process_json_proto [05:07:19]json parsed OK: [05:07:19]protocol is kg_v1.0 [05:07:19]action value=close_receipt [05:07:19]process_action close_receipt [05:07:19]cmd_close_receipt [05:07:19]MH_GetDate [05:07:19]Write to MH i2c: F0 00 00 0E 0B 08 [05:07:19]Write i2c OK [05:07:19]MH_I2C_Read... [05:07:19]Read from MH i2c: F0 [05:07:19]MH_I2C_Read... [05:07:19]Read from MH i2c: F0 09 00 [05:07:19]MH_I2C_Read... [05:07:19]Read from MH i2c: F0 09 00 0E 0B 00 09 33 17 67 82 C9 CF 66 4B [05:07:19]GetLastDocTimeStamp 1729573288 [05:07:19]current date 1729573641 [05:07:19]FM_GetShiftState [05:07:19]SAM_PROTO_GetShiftState [05:07:19]wFMCommunicate request_size=4 [05:07:19]MH_SAM_APDU [05:07:19]CAPDU: 80 13 01 00 [05:07:19]Write to MH i2c: E2 08 00 0F 0B 80 13 01 00 00 00 00 00 97 [05:07:19]Write i2c OK [05:07:19]MH_I2C_Read... [05:07:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:07:19]Read from MH i2c: E2 [05:07:19]MH_I2C_Read... [05:07:19]Read from MH i2c: E2 0E 00 [05:07:19]MH_I2C_Read... [05:07:19]Read from MH i2c: E2 0E 00 0F 0B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 5E [05:07:19]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [05:07:19]wFMCommunicate OK [05:07:19]SAM_PROTO_GetShiftState done [05:07:19]FM_GetShiftState done [05:07:19]opened in 1729555538 [05:07:19]opened+sec_in_day 1729641938 [05:07:19]quantity*price = 100015 [05:07:19]sum+1 = 100017 [05:07: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 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 30 22.10.2024 05:07 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228066 ФПД: 207569728686295 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T050722&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228066&fm=207569728686295&tin=02508201610067®Number=0000000000091685&sum=100000 [05:07:20]StoreToDocumentArchive [05:07:20]shift 535 fd 228066 [05:07:20]save to /storage/0535/doc_00228066 [05:07:20]save last doc name /storage/0535/doc_00228066 to /storage/kkm_last_doc_name [05:07:20]save OK [05:07:20]Clear old archive folders... [05:07:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:07:20]tlvbuf is 00865320 [05:07:20]SAM_PROTO_ClearQueue [05:07:20]wFMCommunicate request_size=4 [05:07:20]MH_SAM_APDU [05:07:20]CAPDU: 80 09 00 00 [05:07:20]Write to MH i2c: E2 08 00 1C 0B 80 09 00 00 00 00 00 00 99 [05:07:20]Write i2c OK [05:07:20]MH_I2C_Read... [05:07:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:07:21]Read from MH i2c: E2 [05:07:21]MH_I2C_Read... [05:07:21]Read from MH i2c: E2 03 00 [05:07:21]MH_I2C_Read... [05:07:21]Read from MH i2c: E2 03 00 1C 0B 00 90 00 9B [05:07:21]RAPDU: 90 00 [05:07:21]wFMCommunicate OK [05:07:21]SAM_PROTO_ClearQueue done [05:07:21]KKMCreateOFDPacket [05:07:21]OFDProtocolAddRootSTLVToBuf [05:07:21]FM_MakeSignedData [05:07:21]FM_MakeSignedData [05:07:21]SAM_PROTO_SignData [05:07:21]wFMCommunicate request_size=4 [05:07:21]MH_SAM_APDU [05:07:21]CAPDU: 80 0D 01 02 [05:07:21]Write to MH i2c: E2 08 00 1D 0B 80 0D 01 02 00 00 00 00 A1 [05:07:21]Write i2c OK [05:07:21]MH_I2C_Read... [05:07:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:07:21]Read from MH i2c: E2 [05:07:21]MH_I2C_Read... [05:07:21]Read from MH i2c: E2 03 00 [05:07:21]MH_I2C_Read... [05:07:21]Read from MH i2c: E2 03 00 1D 0B 00 90 00 9C [05:07:21]RAPDU: 90 00 [05:07:21]wFMCommunicate OK [05:07:21]wFMCommunicate request_size=255 [05:07:21]MH_SAM_APDU [05:07: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 1E 00 00 00 F4 03 04 00 0A 33 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E2 7A 03 00 35 04 06 00 BC [05:07:21]Write to MH i2c: E2 02 01 1E 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 1E 00 00 00 F4 03 04 00 0A 33 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E2 7A 03 00 35 04 06 00 BC 00 00 3F [05:07:21]Write i2c OK [05:07:21]MH_I2C_Read... [05:07:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:07:21]Read from MH i2c: E2 [05:07:21]MH_I2C_Read... [05:07:21]Read from MH i2c: E2 03 00 [05:07:21]MH_I2C_Read... [05:07:21]Read from MH i2c: E2 03 00 1E 0B 00 90 00 9D [05:07:21]RAPDU: 90 00 [05:07:21]wFMCommunicate OK [05:07:21]wFMCommunicate request_size=10 [05:07:21]MH_SAM_APDU [05:07:21]CAPDU: 80 0D 02 02 05 C8 97 F1 C8 D7 [05:07:21]Write to MH i2c: E2 0D 00 1F 0B 80 0D 02 02 05 00 C8 97 F1 C8 D7 00 00 9D [05:07:21]Write i2c OK [05:07:21]MH_I2C_Read... [05:07:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:07:21]Read from MH i2c: E2 [05:07:21]MH_I2C_Read... [05:07:21]Read from MH i2c: E2 03 00 [05:07:21]MH_I2C_Read... [05:07:21]Read from MH i2c: E2 03 00 1F 0B 00 90 00 9E [05:07:21]RAPDU: 90 00 [05:07:21]wFMCommunicate OK [05:07:21]wFMCommunicate request_size=4 [05:07:21]MH_SAM_APDU [05:07:21]CAPDU: 80 0D 03 02 [05:07:21]Write to MH i2c: E2 08 00 20 0B 80 0D 03 02 00 00 00 00 A6 [05:07:21]Write i2c OK [05:07:21]MH_I2C_Read... [05:07:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:07:21]Read from MH i2c: E2 [05:07:21]MH_I2C_Read... [05:07:21]Read from MH i2c: E2 0B 00 [05:07:21]MH_I2C_Read... [05:07:21]Read from MH i2c: E2 0B 00 20 0B 00 20 C6 71 2D D5 92 21 C6 90 00 79 [05:07:21]RAPDU: 20 C6 71 2D D5 92 21 C6 90 00 [05:07:21]wFMCommunicate OK [05:07:21]SAM_PROTO_SignData done [05:07:21]FM_MakeSignedData done [05:07:21]CreateOFDProtocolMessage [05:07:21]wFMCommunicate request_size=4 [05:07:21]MH_SAM_APDU [05:07:21]CAPDU: 80 11 00 00 [05:07:21]Write to MH i2c: E2 08 00 21 0B 80 11 00 00 00 00 00 00 A6 [05:07:21]Write i2c OK [05:07:21]MH_I2C_Read... [05:07:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:07:21]Read from MH i2c: E2 [05:07:21]MH_I2C_Read... [05:07:21]Read from MH i2c: E2 17 00 [05:07:21]MH_I2C_Read... [05:07:21]Read from MH i2c: E2 17 00 21 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FD [05:07:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [05:07:21]wFMCommunicate OK [05:07:21]CreateOFDProtocolMessage done [05:07:21]OFDSenderStorePacket 228066 [05:07:21]StoreOFDPacket docnum=228066 [05:07:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 DD 41 07 01 70 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 1E 00 00 00 F4 03 04 00 0A 33 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E2 7A 03 00 35 04 06 00 BC C8 97 F1 C8 D7 20 C6 71 2D D5 92 21 C6 [05:07:21]CheckFolder [05:07:21]dirname=/storage/ofd_packets [05:07:21]CheckFolder done [05:07:21]ProducePacketName [05:07:21]name=ofd_packets/00228066 [05:07:21]NVStorageSaveData ofd_packets/00228066 [05:07:21]File name is /storage/ofd_packets/00228066 [05:07:21]Write 301 bytes [05:07:21]NVStorageSaveData done [05:07:21]OFDSenderStorePacket done [05:07:21]KKMCreateOFDPacket done [05:07:21]NVStorageSaveData kkm_last_timestamp [05:07:21]File name is /storage/kkm_last_timestamp [05:07:21]Write 4 bytes [05:07:21]NVStorageSaveData done [05:07:21]ExternCall_PrintAddStr [05:07:21]wPrintStart [05:07:21]Write to MH i2c: 01 00 00 22 0B 2D [05:07:21]OFD Sender: Processing packet 228066 [packets to send 38, broken 37] [05:07:21]ProducePacketName [05:07:21]name=ofd_packets/00228066 [05:07:21]OFD Sender: To server: pG, [05:07:21]CommunicateWithHost lk.salyk.kg:30040 [05:07:21]ConnectInit lk.salyk.kg [05:07:21]Write i2c OK [05:07:21]MH_I2C_Read... [05:07:21]Read from MH i2c: 01 [05:07:21]MH_I2C_Read... [05:07:21]Read from MH i2c: 01 07 00 [05:07:21]MH_I2C_Read... [05:07:21]Read from MH i2c: 01 07 00 22 0B 00 00 00 00 00 FF 0F 42 [05:07:21]RasterBufferAndPrint [05:07:21]line Счет N : (1)1964263 [05:07:21]line ИНН: 02508201610067 [05:07:21]line Контрольно-Кассовый Чек [05:07:21]line ПРОДАЖА [05:07:21]line ТРК (МРК, ГНК) : 43 [05:07:21]line Товар: 2710124130 [05:07:21]line Аи-92-К-5 [05:07:21]line 14.950 * 66.90 [05:07:21]line = 1000.16 [05:07:21]line НДС 12% НСП 1% [05:07:21]line > о реализуемом товаре [05:07:21]line ОКРУГЛЕНИЕ: -0.16 [05:07:21]line ИТОГО: 1000.00 [05:07:21]line Внесено: 1000.00 [05:07:21]line СДАЧА: 0.00 [05:07:21]line НСП 1% : 8.85 [05:07:21]line НДС 12% : 106.21 [05:07:21]line Наличными: 1000.00 [05:07:21]line Безнал.: 0.00 [05:07:21]line Место: АЗС № 133 "Партнер Нефть" [05:07:21]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [05:07:21]line СНО: Общий режим [05:07:21]line Чек 30 22.10.2024 05:07 [05:07:21]line Смена: 535 ФФД: 1.0 [05:07:21]line ЗНМ: 0300000091 [05:07:21]line РНМ: 0000000000091685 [05:07:21]line Версия ККМ: 001 [05:07:21]line ФМ: 0000000000871839 [05:07:21]line ФД: 228066 [05:07:21]line ФПД: 207569728686295 [05:07:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T050722&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228066&fm=207569728686295&tin=02508201610067®Number=0000000000091685&sum=100000 [05:07:21]Connected sock=10 [05:07:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 DD 41 07 01 70 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 1E 00 00 00 F4 03 04 00 0A 33 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E2 7A 03 00 35 04 06 00 BC C8 97 F1 C8 D7 20 C6 71 2D D5 92 21 C6 [05:07:21]written 0, free lines is 4095 [05:07:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 6E 52 47 00 96 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E2 7A 03 00 F4 03 04 00 03 DE 16 67 B6 04 01 00 00 1F 3A 3D 59 7B 4C 25 9A [05:07:22]CommunicateWithHost err = 0 [05:07:22]CheckOFDResponse [05:07:22]1017 (14) - 77093643461234 [05:07:22]1041 (16) - 0000000000871839 [05:07:22]1040 (4) - 228066 [05:07:22]1012 (4) - 21.10.2024 23:04 [05:07:22]1206 (1) - 0 [05:07:22]OFD Sender: Remove packet 228066 [05:07:22]ProducePacketName [05:07:22]name=ofd_packets/00228066 [05:07:22]NVStorageDeleteData [05:07:22]Write to MH i2c: 01 00 00 4C 0B 57 [05:07:22]Write i2c OK [05:07:22]MH_I2C_Read... [05:07:22]Read from MH i2c: 01 [05:07:22]MH_I2C_Read... [05:07:22]Read from MH i2c: 01 07 00 [05:07:22]MH_I2C_Read... [05:07:22]Read from MH i2c: 01 07 00 4C 0B 00 00 00 00 00 A0 0C 0A [05:07:22]RasterBufferAndPrint [05:07:22]line [05:07:22]line [05:07:22]line [05:07:22]line [05:07:22]line [05:07:22]written 0, free lines is 3235 [05:07:22]MH_Cut [05:07:22]Write to MH i2c: D1 01 00 53 0B 01 30 [05:07:22]Write i2c OK [05:07:22]MH_I2C_Read... [05:07:22]Read from MH i2c: D1 [05:07:22]MH_I2C_Read... [05:07:22]Read from MH i2c: D1 01 00 [05:07:22]MH_I2C_Read... [05:07:22]Read from MH i2c: D1 01 00 53 0B 00 2F [05:07:22]Write to MH i2c: 01 00 00 54 0B 5F [05:07:22]Write i2c OK [05:07:22]MH_I2C_Read... [05:07:22]OFD Sender: No OFD packet to send [05:07:23]*** Cut start [05:07:23]*** Partial cut [05:07:23]*** CUTSNS_PIN = 1 [05:07:23]*** CUTSNS_PIN = 0 [05:07:23]*** Brake cut motor [05:07:23]Read from MH i2c: 01 [05:07:23]MH_I2C_Read... [05:07:23]*** Stop cut motor [05:07:23]*** Cut end [05:07:23]Read from MH i2c: 01 07 00 [05:07:23]MH_I2C_Read... [05:07:23]Read from MH i2c: 01 07 00 54 0B 00 00 00 00 00 FF 0F 74 [05:07:23]process_action close_receipt done [05:07:23]requested_data is exist [05:07:23]produce_requested_data [05:07:23]requested_item fm.sn is exist - process it [05:07:23]wFMCommunicate request_size=4 [05:07:23]MH_SAM_APDU [05:07:23]CAPDU: 80 11 00 00 [05:07:23]Write to MH i2c: E2 08 00 55 0B 80 11 00 00 00 00 00 00 DA [05:07:23]Write i2c OK [05:07:23]MH_I2C_Read... [05:07:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:07:24]Read from MH i2c: E2 [05:07:24]MH_I2C_Read... [05:07:24]Read from MH i2c: E2 17 00 [05:07:24]MH_I2C_Read... [05:07:24]Read from MH i2c: E2 17 00 55 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 31 [05:07:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [05:07:24]wFMCommunicate OK [05:07:24]requested_item fd.num is exist - process it [05:07:24]SAM_PROTO_GetFieldsCounters [05:07:24]wFMCommunicate request_size=4 [05:07:24]MH_SAM_APDU [05:07:24]CAPDU: 80 13 00 00 [05:07:24]Write to MH i2c: E2 08 00 56 0B 80 13 00 00 00 00 00 00 DD [05:07:24]Write i2c OK [05:07:24]MH_I2C_Read... [05:07:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:07:24]Read from MH i2c: E2 [05:07:24]MH_I2C_Read... [05:07:24]Read from MH i2c: E2 62 00 [05:07:24]MH_I2C_Read... [05:07:24]Read from MH i2c: E2 62 00 56 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E2 7A 03 00 0E 04 04 00 17 02 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 D8 [05:07:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E2 7A 03 00 0E 04 04 00 17 02 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 [05:07:24]wFMCommunicate OK [05:07:24]SAM_PROTO_GetFieldsCounters done [05:07:24]requested_item shift.num is exist - process it [05:07:24]requested_item shift.opened is exist - process it [05:07:24]req_shift_opened [05:07:24]FM_GetShiftState [05:07:24]SAM_PROTO_GetShiftState [05:07:24]wFMCommunicate request_size=4 [05:07:24]MH_SAM_APDU [05:07:24]CAPDU: 80 13 01 00 [05:07:24]Write to MH i2c: E2 08 00 57 0B 80 13 01 00 00 00 00 00 DF [05:07:24]Write i2c OK [05:07:24]MH_I2C_Read... [05:07:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:07:24]Read from MH i2c: E2 [05:07:24]MH_I2C_Read... [05:07:24]Read from MH i2c: E2 0E 00 [05:07:24]MH_I2C_Read... [05:07:24]Read from MH i2c: E2 0E 00 57 0B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 A6 [05:07:24]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [05:07:24]wFMCommunicate OK [05:07:24]SAM_PROTO_GetShiftState done [05:07:24]FM_GetShiftState done [05:07:24]req_shift_opened done [05:07:24]requested_item shift.open_date is exist - process it [05:07:24]req_shift_open_date [05:07:24]req_shift_open_date done [05:07:24]produce_requested_data done [05:07:24]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228066,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [05:07:24]process_action_free close_receipt [05:07:24]json_value_free [05:07:24]json_value_free done [05:07:24]process_json_proto returns [05:07:24]Send response to host [05:07:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228066,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [05:07:24]free response buf [05:07:24]execute_script done [05:07:24]execute_script returns [05:07:24]free content buf [05:07:24]Sock 7.Close socket [05:07:24]Sock 7.Thread stoped [05:07:27]OFD Sender: No OFD packet to send [05:07:32]OFD Sender: No OFD packet to send [05:07:37]OFD Sender: No OFD packet to send [05:07:42]OFD Sender: No OFD packet to send [05:07:47]OFD Sender: No OFD packet to send [05:07:52]OFD Sender: No OFD packet to send [05:07:57]OFD Sender: No OFD packet to send [05:08:02]OFD Sender: No OFD packet to send [05:08:07]OFD Sender: No OFD packet to send [05:08:12]OFD Sender: No OFD packet to send [05:08:17]OFD Sender: No OFD packet to send [05:08:22]OFD Sender: No OFD packet to send [05:08:27]OFD Sender: No OFD packet to send [05:08:32]OFD Sender: No OFD packet to send [05:08:37]OFD Sender: No OFD packet to send [05:08:42]OFD Sender: No OFD packet to send [05:08:46]accept exits with 9 [05:08:46]New connection [05:08:46]New thread 3067137380 created [05:08:46]Thread 3066994020 joined [05:08:46]Waiting for new connection... [05:08:46] Sock 9.Parse request [05:08:46]Sock 9.Check first char [05:08:46]Sock 9.First char is OK [05:08:46]request: POST /json_proto HTTP/1.0 [05:08:46]Method: POST [05:08:46]URL: /json_proto [05:08:46]Method is POST - this is cgi request [05:08:46]url: /json_proto [05:08:46]query_string will be loaded in cgi processing [05:08:46]execute_cgi json_proto POST (null) [05:08:46]execute_cgi path=json_proto method=POST [05:08:46]POST find Content-Length [05:08:46]Host: 172.17.44.195:8080 [05:08:46]Content-Length: 678 [05:08:46]Content-Type: application/json [05:08:46] [05:08:46]POST finish read [05:08:46]Found Content-Length = 678 [05:08:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964265", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:08:46]execute_script... [05:08:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964265", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:08:46]POST & json_proto [05:08:46]process_json_proto [05:08:46]json parsed OK: [05:08:46]protocol is kg_v1.0 [05:08:46]action value=close_receipt [05:08:46]process_action close_receipt [05:08:46]cmd_close_receipt [05:08:46]MH_GetDate [05:08:46]Write to MH i2c: F0 00 00 58 0B 52 [05:08:46]Write i2c OK [05:08:46]MH_I2C_Read... [05:08:46]Read from MH i2c: F0 [05:08:46]MH_I2C_Read... [05:08:46]Read from MH i2c: F0 09 00 [05:08:46]MH_I2C_Read... [05:08:46]Read from MH i2c: F0 09 00 58 0B 00 60 33 17 67 82 C9 CF 66 EC [05:08:46]GetLastDocTimeStamp 1729573642 [05:08:46]current date 1729573728 [05:08:46]FM_GetShiftState [05:08:46]SAM_PROTO_GetShiftState [05:08:46]wFMCommunicate request_size=4 [05:08:46]MH_SAM_APDU [05:08:46]CAPDU: 80 13 01 00 [05:08:46]Write to MH i2c: E2 08 00 59 0B 80 13 01 00 00 00 00 00 E1 [05:08:46]Write i2c OK [05:08:46]MH_I2C_Read... [05:08:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:08:46]Read from MH i2c: E2 [05:08:46]MH_I2C_Read... [05:08:46]Read from MH i2c: E2 0E 00 [05:08:46]MH_I2C_Read... [05:08:46]Read from MH i2c: E2 0E 00 59 0B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 A8 [05:08:46]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [05:08:46]wFMCommunicate OK [05:08:46]SAM_PROTO_GetShiftState done [05:08:46]FM_GetShiftState done [05:08:46]opened in 1729555538 [05:08:46]opened+sec_in_day 1729641938 [05:08:46]quantity*price = 50041 [05:08:46]sum+1 = 50042 [05:08:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 31 22.10.2024 05:08 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228067 ФПД: 158655284919176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T050848&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228067&fm=158655284919176&tin=02508201610067®Number=0000000000091685&sum=50000 [05:08:47]StoreToDocumentArchive [05:08:47]shift 535 fd 228067 [05:08:47]save to /storage/0535/doc_00228067 [05:08:47]save last doc name /storage/0535/doc_00228067 to /storage/kkm_last_doc_name [05:08:47]save OK [05:08:47]Clear old archive folders... [05:08:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:08:47]tlvbuf is 008604A0 [05:08:47]SAM_PROTO_ClearQueue [05:08:47]wFMCommunicate request_size=4 [05:08:47]MH_SAM_APDU [05:08:47]CAPDU: 80 09 00 00 [05:08:47]Write to MH i2c: E2 08 00 66 0B 80 09 00 00 00 00 00 00 E3 [05:08:47]Write i2c OK [05:08:47]MH_I2C_Read... [05:08:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:08:47]Read from MH i2c: E2 [05:08:47]MH_I2C_Read... [05:08:47]Read from MH i2c: E2 03 00 [05:08:47]MH_I2C_Read... [05:08:47]Read from MH i2c: E2 03 00 66 0B 00 90 00 E5 [05:08:47]RAPDU: 90 00 [05:08:47]wFMCommunicate OK [05:08:47]SAM_PROTO_ClearQueue done [05:08:47]KKMCreateOFDPacket [05:08:47]OFDProtocolAddRootSTLVToBuf [05:08:47]FM_MakeSignedData [05:08:47]FM_MakeSignedData [05:08:47]SAM_PROTO_SignData [05:08:47]wFMCommunicate request_size=4 [05:08:47]MH_SAM_APDU [05:08:47]CAPDU: 80 0D 01 02 [05:08:47]Write to MH i2c: E2 08 00 67 0B 80 0D 01 02 00 00 00 00 EB [05:08:47]Write i2c OK [05:08:47]MH_I2C_Read... [05:08:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:08:48]Read from MH i2c: E2 [05:08:48]MH_I2C_Read... [05:08:48]Read from MH i2c: E2 03 00 [05:08:48]MH_I2C_Read... [05:08:48]Read from MH i2c: E2 03 00 67 0B 00 90 00 E6 [05:08:48]RAPDU: 90 00 [05:08:48]wFMCommunicate OK [05:08:48]wFMCommunicate request_size=255 [05:08:48]MH_SAM_APDU [05:08: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 60 33 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E3 7A 03 00 35 04 06 00 90 [05:08:48]Write to MH i2c: E2 02 01 68 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 60 33 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E3 7A 03 00 35 04 06 00 90 00 00 BB [05:08:48]Write i2c OK [05:08:48]MH_I2C_Read... [05:08:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:08:48]Read from MH i2c: E2 [05:08:48]MH_I2C_Read... [05:08:48]Read from MH i2c: E2 03 00 [05:08:48]MH_I2C_Read... [05:08:48]Read from MH i2c: E2 03 00 68 0B 00 90 00 E7 [05:08:48]RAPDU: 90 00 [05:08:48]wFMCommunicate OK [05:08:48]wFMCommunicate request_size=10 [05:08:48]MH_SAM_APDU [05:08:48]CAPDU: 80 0D 02 02 05 4B CF E6 3B 88 [05:08:48]Write to MH i2c: E2 0D 00 69 0B 80 0D 02 02 05 00 4B CF E6 3B 88 00 00 BB [05:08:48]Write i2c OK [05:08:48]MH_I2C_Read... [05:08:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:08:48]Read from MH i2c: E2 [05:08:48]MH_I2C_Read... [05:08:48]Read from MH i2c: E2 03 00 [05:08:48]MH_I2C_Read... [05:08:48]Read from MH i2c: E2 03 00 69 0B 00 90 00 E8 [05:08:48]RAPDU: 90 00 [05:08:48]wFMCommunicate OK [05:08:48]wFMCommunicate request_size=4 [05:08:48]MH_SAM_APDU [05:08:48]CAPDU: 80 0D 03 02 [05:08:48]Write to MH i2c: E2 08 00 6A 0B 80 0D 03 02 00 00 00 00 F0 [05:08:48]Write i2c OK [05:08:48]MH_I2C_Read... [05:08:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:08:48]Read from MH i2c: E2 [05:08:48]MH_I2C_Read... [05:08:48]Read from MH i2c: E2 0B 00 [05:08:48]MH_I2C_Read... [05:08:48]Read from MH i2c: E2 0B 00 6A 0B 00 DF 9C 62 A2 69 84 0D F6 90 00 60 [05:08:48]RAPDU: DF 9C 62 A2 69 84 0D F6 90 00 [05:08:48]wFMCommunicate OK [05:08:48]SAM_PROTO_SignData done [05:08:48]FM_MakeSignedData done [05:08:48]CreateOFDProtocolMessage [05:08:48]wFMCommunicate request_size=4 [05:08:48]MH_SAM_APDU [05:08:48]CAPDU: 80 11 00 00 [05:08:48]Write to MH i2c: E2 08 00 6B 0B 80 11 00 00 00 00 00 00 F0 [05:08:48]Write i2c OK [05:08:48]MH_I2C_Read... [05:08:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:08:48]Read from MH i2c: E2 [05:08:48]MH_I2C_Read... [05:08:48]Read from MH i2c: E2 17 00 [05:08:48]MH_I2C_Read... [05:08:48]Read from MH i2c: E2 17 00 6B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 47 [05:08:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [05:08:48]wFMCommunicate OK [05:08:48]CreateOFDProtocolMessage done [05:08:48]OFDSenderStorePacket 228067 [05:08:48]StoreOFDPacket docnum=228067 [05:08:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 85 26 07 01 2B 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 60 33 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E3 7A 03 00 35 04 06 00 90 4B CF E6 3B 88 DF 9C 62 A2 69 84 0D F6 [05:08:48]CheckFolder [05:08:48]dirname=/storage/ofd_packets [05:08:48]CheckFolder done [05:08:48]ProducePacketName [05:08:48]name=ofd_packets/00228067 [05:08:48]NVStorageSaveData ofd_packets/00228067 [05:08:48]File name is /storage/ofd_packets/00228067 [05:08:48]Write 301 bytes [05:08:48]NVStorageSaveData done [05:08:48]OFDSenderStorePacket done [05:08:48]KKMCreateOFDPacket done [05:08:48]NVStorageSaveData kkm_last_timestamp [05:08:48]File name is /storage/kkm_last_timestamp [05:08:48]Write 4 bytes [05:08:48]NVStorageSaveData done [05:08:48]ExternCall_PrintAddStr [05:08:48]wPrintStart [05:08:48]Write to MH i2c: 01 00 00 6C 0B 77 [05:08:48]Write i2c OK [05:08:48]MH_I2C_Read... [05:08:48]Read from MH i2c: 01 [05:08:48]MH_I2C_Read... [05:08:48]Read from MH i2c: 01 07 00 [05:08:48]MH_I2C_Read... [05:08:48]Read from MH i2c: 01 07 00 6C 0B 00 00 00 00 00 FF 0F 8C [05:08:48]RasterBufferAndPrint [05:08:48]line Счет N : (1)1964265 [05:08:48]line ИНН: 02508201610067 [05:08:48]line Контрольно-Кассовый Чек [05:08:48]line ПРОДАЖА [05:08:48]line ТРК (МРК, ГНК) : 63 [05:08:48]line Товар: 2710124130 [05:08:48]line Аи-92-К-5 [05:08:48]line 7.480 * 66.90 [05:08:48]line = 500.41 [05:08:48]line НДС 12% НСП 1% [05:08:48]line > о реализуемом товаре [05:08:48]line ОКРУГЛЕНИЕ: -0.41 [05:08:48]line ИТОГО: 500.00 [05:08:48]line Внесено: 500.00 [05:08:48]line СДАЧА: 0.00 [05:08:48]line НСП 1% : 4.43 [05:08:48]line НДС 12% : 53.14 [05:08:48]line Наличными: 500.00 [05:08:48]line Безнал.: 0.00 [05:08:48]line Место: АЗС № 133 "Партнер Нефть" [05:08:48]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [05:08:48]line СНО: Общий режим [05:08:48]line Чек 31 22.10.2024 05:08 [05:08:48]line Смена: 535 ФФД: 1.0 [05:08:48]line ЗНМ: 0300000091 [05:08:48]line РНМ: 0000000000091685 [05:08:48]line Версия ККМ: 001 [05:08:48]line ФМ: 0000000000871839 [05:08:48]line ФД: 228067 [05:08:48]line ФПД: 158655284919176 [05:08:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T050848&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228067&fm=158655284919176&tin=02508201610067®Number=0000000000091685&sum=50000 [05:08:48]OFD Sender: Processing packet 228067 [packets to send 38, broken 37] [05:08:48]ProducePacketName [05:08:48]name=ofd_packets/00228067 [05:08:48]OFD Sender: To server: pG, [05:08:48]CommunicateWithHost lk.salyk.kg:30040 [05:08:48]ConnectInit lk.salyk.kg [05:08:48]written 0, free lines is 4095 [05:08:48]Connected sock=10 [05:08:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 85 26 07 01 2B 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 60 33 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E3 7A 03 00 35 04 06 00 90 4B CF E6 3B 88 DF 9C 62 A2 69 84 0D F6 [05:08:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 6E AB 47 00 0B BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E3 7A 03 00 F4 03 04 00 5A DE 16 67 B6 04 01 00 00 E7 63 58 AE EF 23 78 C1 [05:08:49]CommunicateWithHost err = 0 [05:08:49]CheckOFDResponse [05:08:49]1017 (14) - 77093643461234 [05:08:49]1041 (16) - 0000000000871839 [05:08:49]1040 (4) - 228067 [05:08:49]1012 (4) - 21.10.2024 23:06 [05:08:49]1206 (1) - 0 [05:08:49]OFD Sender: Remove packet 228067 [05:08:49]ProducePacketName [05:08:49]name=ofd_packets/00228067 [05:08:49]NVStorageDeleteData [05:08:49]Write to MH i2c: 01 00 00 96 0B A1 [05:08:49]Write i2c OK [05:08:49]MH_I2C_Read... [05:08:49]Read from MH i2c: 01 [05:08:49]MH_I2C_Read... [05:08:49]Read from MH i2c: 01 07 00 [05:08:49]MH_I2C_Read... [05:08:49]Read from MH i2c: 01 07 00 96 0B 00 00 00 00 00 A5 0C 59 [05:08:49]RasterBufferAndPrint [05:08:49]line [05:08:49]line [05:08:49]line [05:08:49]line [05:08:49]line [05:08:49]written 0, free lines is 3240 [05:08:49]MH_Cut [05:08:49]Write to MH i2c: D1 01 00 9D 0B 01 7A [05:08:49]Write i2c OK [05:08:49]MH_I2C_Read... [05:08:49]Read from MH i2c: D1 [05:08:49]MH_I2C_Read... [05:08:49]Read from MH i2c: D1 01 00 [05:08:49]MH_I2C_Read... [05:08:49]Read from MH i2c: D1 01 00 9D 0B 00 79 [05:08:49]Write to MH i2c: 01 00 00 9E 0B A9 [05:08:49]Write i2c OK [05:08:49]MH_I2C_Read... [05:08:49]OFD Sender: No OFD packet to send [05:08:50]*** Cut start [05:08:50]*** Partial cut [05:08:50]*** CUTSNS_PIN = 1 [05:08:50]*** CUTSNS_PIN = 0 [05:08:50]*** Brake cut motor [05:08:50]Read from MH i2c: 01 [05:08:50]MH_I2C_Read... [05:08:50]*** Stop cut motor [05:08:50]*** Cut end [05:08:50]Read from MH i2c: 01 07 00 [05:08:50]MH_I2C_Read... [05:08:50]Read from MH i2c: 01 07 00 9E 0B 00 00 00 00 00 FF 0F BE [05:08:50]process_action close_receipt done [05:08:50]requested_data is exist [05:08:50]produce_requested_data [05:08:50]requested_item fm.sn is exist - process it [05:08:50]wFMCommunicate request_size=4 [05:08:50]MH_SAM_APDU [05:08:50]CAPDU: 80 11 00 00 [05:08:50]Write to MH i2c: E2 08 00 9F 0B 80 11 00 00 00 00 00 00 24 [05:08:50]Write i2c OK [05:08:50]MH_I2C_Read... [05:08:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:08:50]Read from MH i2c: E2 [05:08:50]MH_I2C_Read... [05:08:50]Read from MH i2c: E2 17 00 [05:08:50]MH_I2C_Read... [05:08:50]Read from MH i2c: E2 17 00 9F 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7B [05:08:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [05:08:50]wFMCommunicate OK [05:08:50]requested_item fd.num is exist - process it [05:08:50]SAM_PROTO_GetFieldsCounters [05:08:50]wFMCommunicate request_size=4 [05:08:50]MH_SAM_APDU [05:08:50]CAPDU: 80 13 00 00 [05:08:50]Write to MH i2c: E2 08 00 A0 0B 80 13 00 00 00 00 00 00 27 [05:08:50]Write i2c OK [05:08:50]MH_I2C_Read... [05:08:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:08:51]Read from MH i2c: E2 [05:08:51]MH_I2C_Read... [05:08:51]Read from MH i2c: E2 62 00 [05:08:51]MH_I2C_Read... [05:08:51]Read from MH i2c: E2 62 00 A0 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E3 7A 03 00 0E 04 04 00 17 02 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 26 [05:08:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E3 7A 03 00 0E 04 04 00 17 02 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 [05:08:51]wFMCommunicate OK [05:08:51]SAM_PROTO_GetFieldsCounters done [05:08:51]requested_item shift.num is exist - process it [05:08:51]requested_item shift.opened is exist - process it [05:08:51]req_shift_opened [05:08:51]FM_GetShiftState [05:08:51]SAM_PROTO_GetShiftState [05:08:51]wFMCommunicate request_size=4 [05:08:51]MH_SAM_APDU [05:08:51]CAPDU: 80 13 01 00 [05:08:51]Write to MH i2c: E2 08 00 A1 0B 80 13 01 00 00 00 00 00 29 [05:08:51]Write i2c OK [05:08:51]MH_I2C_Read... [05:08:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:08:51]Read from MH i2c: E2 [05:08:51]MH_I2C_Read... [05:08:51]Read from MH i2c: E2 0E 00 [05:08:51]MH_I2C_Read... [05:08:51]Read from MH i2c: E2 0E 00 A1 0B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 F0 [05:08:51]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [05:08:51]wFMCommunicate OK [05:08:51]SAM_PROTO_GetShiftState done [05:08:51]FM_GetShiftState done [05:08:51]req_shift_opened done [05:08:51]requested_item shift.open_date is exist - process it [05:08:51]req_shift_open_date [05:08:51]req_shift_open_date done [05:08:51]produce_requested_data done [05:08:51]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228067,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [05:08:51]process_action_free close_receipt [05:08:51]json_value_free [05:08:51]json_value_free done [05:08:51]process_json_proto returns [05:08:51]Send response to host [05:08:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228067,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [05:08:51]free response buf [05:08:51]execute_script done [05:08:51]execute_script returns [05:08:51]free content buf [05:08:51]Sock 9.Close socket [05:08:51]Sock 9.Thread stoped [05:08:54]OFD Sender: No OFD packet to send [05:08:55]accept exits with 7 [05:08:55]New connection [05:08:55]New thread 3066994020 created [05:08:55]Thread 3067137380 joined [05:08:55]Waiting for new connection... [05:08:55] Sock 7.Parse request [05:08:55]Sock 7.Check first char [05:08:55]Sock 7.First char is OK [05:08:55]request: POST /json_proto HTTP/1.0 [05:08:55]Method: POST [05:08:55]URL: /json_proto [05:08:55]Method is POST - this is cgi request [05:08:55]url: /json_proto [05:08:55]query_string will be loaded in cgi processing [05:08:55]execute_cgi json_proto POST (null) [05:08:55]execute_cgi path=json_proto method=POST [05:08:55]POST find Content-Length [05:08:55]Host: 172.17.44.195:8080 [05:08:55]Content-Length: 677 [05:08:55]Content-Type: application/json [05:08:55] [05:08:55]POST finish read [05:08:55]Found Content-Length = 677 [05:08:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 33.420, "sum" : 1300.04, "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" ] } } [05:08:55]execute_script... [05:08: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)1964264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 33.420, "sum" : 1300.04, "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" ] } } [05:08:55]POST & json_proto [05:08:55]process_json_proto [05:08:55]json parsed OK: [05:08:55]protocol is kg_v1.0 [05:08:55]action value=close_receipt [05:08:55]process_action close_receipt [05:08:55]cmd_close_receipt [05:08:55]MH_GetDate [05:08:55]Write to MH i2c: F0 00 00 A2 0B 9C [05:08:55]Write i2c OK [05:08:55]MH_I2C_Read... [05:08:55]Read from MH i2c: F0 [05:08:55]MH_I2C_Read... [05:08:55]Read from MH i2c: F0 09 00 [05:08:55]MH_I2C_Read... [05:08:55]Read from MH i2c: F0 09 00 A2 0B 00 69 33 17 67 82 C9 CF 66 3F [05:08:55]GetLastDocTimeStamp 1729573728 [05:08:55]current date 1729573737 [05:08:55]FM_GetShiftState [05:08:55]SAM_PROTO_GetShiftState [05:08:55]wFMCommunicate request_size=4 [05:08:55]MH_SAM_APDU [05:08:55]CAPDU: 80 13 01 00 [05:08:55]Write to MH i2c: E2 08 00 A3 0B 80 13 01 00 00 00 00 00 2B [05:08:55]Write i2c OK [05:08:55]MH_I2C_Read... [05:08:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:08:55]Read from MH i2c: E2 [05:08:55]MH_I2C_Read... [05:08:55]Read from MH i2c: E2 0E 00 [05:08:55]MH_I2C_Read... [05:08:55]Read from MH i2c: E2 0E 00 A3 0B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 F2 [05:08:55]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [05:08:55]wFMCommunicate OK [05:08:55]SAM_PROTO_GetShiftState done [05:08:55]FM_GetShiftState done [05:08:55]opened in 1729555538 [05:08:55]opened+sec_in_day 1729641938 [05:08:55]quantity*price = 130003 [05:08:55]sum+1 = 130005 [05:08:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.50 НДС 12% : 138.06 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 32 22.10.2024 05:08 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228068 ФПД: 97133136596385 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T050857&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228068&fm=97133136596385&tin=02508201610067®Number=0000000000091685&sum=130000 [05:08:56]StoreToDocumentArchive [05:08:56]shift 535 fd 228068 [05:08:56]save to /storage/0535/doc_00228068 [05:08:56]save last doc name /storage/0535/doc_00228068 to /storage/kkm_last_doc_name [05:08:56]save OK [05:08:56]Clear old archive folders... [05:08:56]ProcessDocumentItem done err = 0, tmpTLVsize=245 [05:08:56]tlvbuf is 00897DB0 [05:08:56]SAM_PROTO_ClearQueue [05:08:56]wFMCommunicate request_size=4 [05:08:56]MH_SAM_APDU [05:08:56]CAPDU: 80 09 00 00 [05:08:56]Write to MH i2c: E2 08 00 B0 0B 80 09 00 00 00 00 00 00 2D [05:08:56]Write i2c OK [05:08:56]MH_I2C_Read... [05:08:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:08:56]Read from MH i2c: E2 [05:08:56]MH_I2C_Read... [05:08:56]Read from MH i2c: E2 03 00 [05:08:56]MH_I2C_Read... [05:08:56]Read from MH i2c: E2 03 00 B0 0B 00 90 00 2F [05:08:56]RAPDU: 90 00 [05:08:56]wFMCommunicate OK [05:08:56]SAM_PROTO_ClearQueue done [05:08:56]KKMCreateOFDPacket [05:08:56]OFDProtocolAddRootSTLVToBuf [05:08:56]FM_MakeSignedData [05:08:56]FM_MakeSignedData [05:08:56]SAM_PROTO_SignData [05:08:56]wFMCommunicate request_size=4 [05:08:56]MH_SAM_APDU [05:08:56]CAPDU: 80 0D 01 02 [05:08:56]Write to MH i2c: E2 08 00 B1 0B 80 0D 01 02 00 00 00 00 35 [05:08:56]Write i2c OK [05:08:56]MH_I2C_Read... [05:08:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:08:56]Read from MH i2c: E2 [05:08:56]MH_I2C_Read... [05:08:56]Read from MH i2c: E2 03 00 [05:08:56]MH_I2C_Read... [05:08:56]Read from MH i2c: E2 03 00 B1 0B 00 90 00 30 [05:08:56]RAPDU: 90 00 [05:08:56]wFMCommunicate OK [05:08:56]wFMCommunicate request_size=254 [05:08:56]MH_SAM_APDU [05:08:56]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 8C 82 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 D4 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 EE 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 20 00 00 00 F4 03 04 00 69 33 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E4 7A 03 00 35 04 06 00 58 57 92 1A 4D A1 [05:08:56]Write to MH i2c: E2 01 01 B2 0B 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 8C 82 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 D4 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 EE 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 20 00 00 00 F4 03 04 00 69 33 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E4 7A 03 00 35 04 06 00 58 57 92 1A 4D A1 00 00 46 [05:08:56]Write i2c OK [05:08:56]MH_I2C_Read... [05:08:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:08:56]Read from MH i2c: E2 [05:08:56]MH_I2C_Read... [05:08:56]Read from MH i2c: E2 03 00 [05:08:56]MH_I2C_Read... [05:08:56]Read from MH i2c: E2 03 00 B2 0B 00 90 00 31 [05:08:56]RAPDU: 90 00 [05:08:56]wFMCommunicate OK [05:08:56]wFMCommunicate request_size=4 [05:08:56]MH_SAM_APDU [05:08:56]CAPDU: 80 0D 03 02 [05:08:56]Write to MH i2c: E2 08 00 B3 0B 80 0D 03 02 00 00 00 00 39 [05:08:56]Write i2c OK [05:08:56]MH_I2C_Read... [05:08:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:08:56]Read from MH i2c: E2 [05:08:56]MH_I2C_Read... [05:08:56]Read from MH i2c: E2 0B 00 [05:08:56]MH_I2C_Read... [05:08:56]Read from MH i2c: E2 0B 00 B3 0B 00 A0 8B 71 ED C9 DB F2 EA 90 00 43 [05:08:56]RAPDU: A0 8B 71 ED C9 DB F2 EA 90 00 [05:08:56]wFMCommunicate OK [05:08:56]SAM_PROTO_SignData done [05:08:56]FM_MakeSignedData done [05:08:56]CreateOFDProtocolMessage [05:08:56]wFMCommunicate request_size=4 [05:08:56]MH_SAM_APDU [05:08:56]CAPDU: 80 11 00 00 [05:08:56]Write to MH i2c: E2 08 00 B4 0B 80 11 00 00 00 00 00 00 39 [05:08:56]Write i2c OK [05:08:56]MH_I2C_Read... [05:08:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:08:56]Read from MH i2c: E2 [05:08:56]MH_I2C_Read... [05:08:57]Read from MH i2c: E2 17 00 [05:08:57]MH_I2C_Read... [05:08:57]Read from MH i2c: E2 17 00 B4 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 90 [05:08:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [05:08:57]wFMCommunicate OK [05:08:57]CreateOFDProtocolMessage done [05:08:57]OFDSenderStorePacket 228068 [05:08:57]StoreOFDPacket docnum=228068 [05:08:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 BB 41 01 01 8C 90 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 8C 82 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 D4 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 EE 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 20 00 00 00 F4 03 04 00 69 33 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E4 7A 03 00 35 04 06 00 58 57 92 1A 4D A1 A0 8B 71 ED C9 DB F2 EA [05:08:57]CheckFolder [05:08:57]dirname=/storage/ofd_packets [05:08:57]CheckFolder done [05:08:57]ProducePacketName [05:08:57]name=ofd_packets/00228068 [05:08:57]NVStorageSaveData ofd_packets/00228068 [05:08:57]File name is /storage/ofd_packets/00228068 [05:08:57]Write 295 bytes [05:08:57]NVStorageSaveData done [05:08:57]OFDSenderStorePacket done [05:08:57]KKMCreateOFDPacket done [05:08:57]NVStorageSaveData kkm_last_timestamp [05:08:57]File name is /storage/kkm_last_timestamp [05:08:57]Write 4 bytes [05:08:57]NVStorageSaveData done [05:08:57]ExternCall_PrintAddStr [05:08:57]wPrintStart [05:08:57]Write to MH i2c: 01 00 00 B5 0B C0 [05:08:57]Write i2c OK [05:08:57]MH_I2C_Read... [05:08:57]Read from MH i2c: 01 [05:08:57]MH_I2C_Read... [05:08:57]Read from MH i2c: 01 07 00 [05:08:57]MH_I2C_Read... [05:08:57]Read from MH i2c: 01 07 00 B5 0B 00 00 00 00 00 FF 0F D5 [05:08:57]RasterBufferAndPrint [05:08:57]line Счет N : (1)1964264 [05:08:57]line ИНН: 02508201610067 [05:08:57]line Контрольно-Кассовый Чек [05:08:57]line ПРОДАЖА [05:08:57]line ТРК (МРК, ГНК) : 71 [05:08:57]line Товар: 2711129700 [05:08:57]line ГАЗ [05:08:57]line 33.420 * 38.90 [05:08:57]line = 1300.04 [05:08:57]line НДС 12% НСП 1% [05:08:57]line > о реализуемом товаре [05:08:57]line ОКРУГЛЕНИЕ: -0.04 [05:08:57]line ИТОГО: 1300.00 [05:08:57]line Внесено: 1300.00 [05:08:57]line СДАЧА: 0.00 [05:08:57]line НСП 1% : 11.50 [05:08:57]line НДС 12% : 138.06 [05:08:57]line Наличными: 1300.00 [05:08:57]line Безнал.: 0.00 [05:08:57]line Место: АЗС № 133 "Партнер Нефть" [05:08:57]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [05:08:57]line СНО: Общий режим [05:08:57]line Чек 32 22.10.2024 05:08 [05:08:57]line Смена: 535 ФФД: 1.0 [05:08:57]line ЗНМ: 0300000091 [05:08:57]line РНМ: 0000000000091685 [05:08:57]line Версия ККМ: 001 [05:08:57]line ФМ: 0000000000871839 [05:08:57]line ФД: 228068 [05:08:57]line ФПД: 97133136596385 [05:08:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T050857&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228068&fm=97133136596385&tin=02508201610067®Number=0000000000091685&sum=130000 [05:08:57]OFD Sender: Processing packet 228068 [packets to send 38, broken 37] [05:08:57]ProducePacketName [05:08:57]name=ofd_packets/00228068 [05:08:57]OFD Sender: To server: pG, [05:08:57]CommunicateWithHost lk.salyk.kg:30040 [05:08:57]ConnectInit lk.salyk.kg [05:08:57]Connected sock=10 [05:08:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 BB 41 01 01 8C 90 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 8C 82 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 D4 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 EE 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 20 00 00 00 F4 03 04 00 69 33 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E4 7A 03 00 35 04 06 00 58 57 92 1A 4D A1 A0 8B 71 ED C9 DB F2 EA [05:08:57]written 0, free lines is 4095 [05:08:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 3B 7F 47 00 99 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E4 7A 03 00 F4 03 04 00 62 DE 16 67 B6 04 01 00 00 23 40 6D 9E 4C A7 E5 C1 [05:08:57]CommunicateWithHost err = 0 [05:08:57]CheckOFDResponse [05:08:57]1017 (14) - 77093643461234 [05:08:57]1041 (16) - 0000000000871839 [05:08:57]1040 (4) - 228068 [05:08:57]1012 (4) - 21.10.2024 23:06 [05:08:57]1206 (1) - 0 [05:08:57]OFD Sender: Remove packet 228068 [05:08:57]ProducePacketName [05:08:57]name=ofd_packets/00228068 [05:08:57]NVStorageDeleteData [05:08:57]Write to MH i2c: 01 00 00 DF 0B EA [05:08:57]Write i2c OK [05:08:57]MH_I2C_Read... [05:08:57]Read from MH i2c: 01 [05:08:57]MH_I2C_Read... [05:08:57]Read from MH i2c: 01 07 00 [05:08:57]MH_I2C_Read... [05:08:57]Read from MH i2c: 01 07 00 DF 0B 00 00 00 00 00 A6 0C A3 [05:08:57]RasterBufferAndPrint [05:08:57]line [05:08:57]line [05:08:57]line [05:08:57]line [05:08:57]line [05:08:57]written 0, free lines is 3245 [05:08:57]MH_Cut [05:08:57]Write to MH i2c: D1 01 00 E6 0B 01 C3 [05:08:57]Write i2c OK [05:08:57]MH_I2C_Read... [05:08:57]Read from MH i2c: D1 [05:08:57]MH_I2C_Read... [05:08:57]Read from MH i2c: D1 01 00 [05:08:57]MH_I2C_Read... [05:08:57]Read from MH i2c: D1 01 00 E6 0B 00 C2 [05:08:57]Write to MH i2c: 01 00 00 E7 0B F2 [05:08:57]Write i2c OK [05:08:57]MH_I2C_Read... [05:08:58]OFD Sender: No OFD packet to send [05:08:58]*** Cut start [05:08:58]*** Partial cut [05:08:58]*** CUTSNS_PIN = 1 [05:08:58]*** CUTSNS_PIN = 0 [05:08:59]*** Brake cut motor [05:08:59]Read from MH i2c: 01 [05:08:59]MH_I2C_Read... [05:08:59]*** Stop cut motor [05:08:59]*** Cut end [05:08:59]Read from MH i2c: 01 07 00 [05:08:59]MH_I2C_Read... [05:08:59]Read from MH i2c: 01 07 00 E7 0B 00 00 00 00 00 FF 0F 07 [05:08:59]process_action close_receipt done [05:08:59]requested_data is exist [05:08:59]produce_requested_data [05:08:59]requested_item fm.sn is exist - process it [05:08:59]wFMCommunicate request_size=4 [05:08:59]MH_SAM_APDU [05:08:59]CAPDU: 80 11 00 00 [05:08:59]Write to MH i2c: E2 08 00 E8 0B 80 11 00 00 00 00 00 00 6D [05:08:59]Write i2c OK [05:08:59]MH_I2C_Read... [05:08:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:08:59]Read from MH i2c: E2 [05:08:59]MH_I2C_Read... [05:08:59]Read from MH i2c: E2 17 00 [05:08:59]MH_I2C_Read... [05:08:59]Read from MH i2c: E2 17 00 E8 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C4 [05:08:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [05:08:59]wFMCommunicate OK [05:08:59]requested_item fd.num is exist - process it [05:08:59]SAM_PROTO_GetFieldsCounters [05:08:59]wFMCommunicate request_size=4 [05:08:59]MH_SAM_APDU [05:08:59]CAPDU: 80 13 00 00 [05:08:59]Write to MH i2c: E2 08 00 E9 0B 80 13 00 00 00 00 00 00 70 [05:08:59]Write i2c OK [05:08:59]MH_I2C_Read... [05:08:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:08:59]Read from MH i2c: E2 [05:08:59]MH_I2C_Read... [05:08:59]Read from MH i2c: E2 62 00 [05:08:59]MH_I2C_Read... [05:08:59]Read from MH i2c: E2 62 00 E9 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E4 7A 03 00 0E 04 04 00 17 02 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 73 [05:08:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E4 7A 03 00 0E 04 04 00 17 02 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 [05:08:59]wFMCommunicate OK [05:08:59]SAM_PROTO_GetFieldsCounters done [05:08:59]requested_item shift.num is exist - process it [05:08:59]requested_item shift.opened is exist - process it [05:08:59]req_shift_opened [05:08:59]FM_GetShiftState [05:08:59]SAM_PROTO_GetShiftState [05:08:59]wFMCommunicate request_size=4 [05:08:59]MH_SAM_APDU [05:08:59]CAPDU: 80 13 01 00 [05:08:59]Write to MH i2c: E2 08 00 EA 0B 80 13 01 00 00 00 00 00 72 [05:08:59]Write i2c OK [05:08:59]MH_I2C_Read... [05:08:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:08:59]Read from MH i2c: E2 [05:08:59]MH_I2C_Read... [05:08:59]Read from MH i2c: E2 0E 00 [05:08:59]MH_I2C_Read... [05:08:59]Read from MH i2c: E2 0E 00 EA 0B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 39 [05:08:59]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [05:08:59]wFMCommunicate OK [05:08:59]SAM_PROTO_GetShiftState done [05:08:59]FM_GetShiftState done [05:08:59]req_shift_opened done [05:08:59]requested_item shift.open_date is exist - process it [05:08:59]req_shift_open_date [05:08:59]req_shift_open_date done [05:08:59]produce_requested_data done [05:08:59]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228068,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [05:08:59]process_action_free close_receipt [05:08:59]json_value_free [05:08:59]json_value_free done [05:08:59]process_json_proto returns [05:08:59]Send response to host [05:08:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228068,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [05:08:59]free response buf [05:08:59]execute_script done [05:08:59]execute_script returns [05:08:59]free content buf [05:08:59]Sock 7.Close socket [05:08:59]Sock 7.Thread stoped [05:09:03]OFD Sender: No OFD packet to send [05:09:08]OFD Sender: No OFD packet to send [05:09:13]OFD Sender: No OFD packet to send [05:09:18]OFD Sender: No OFD packet to send [05:09:23]OFD Sender: No OFD packet to send [05:09:28]OFD Sender: No OFD packet to send [05:09:33]OFD Sender: No OFD packet to send [05:09:38]OFD Sender: No OFD packet to send [05:09:43]OFD Sender: No OFD packet to send [05:09:48]OFD Sender: No OFD packet to send [05:09:53]OFD Sender: No OFD packet to send [05:09:58]OFD Sender: No OFD packet to send [05:10:03]OFD Sender: No OFD packet to send [05:10:08]OFD Sender: No OFD packet to send [05:10:13]OFD Sender: No OFD packet to send [05:10:18]OFD Sender: No OFD packet to send [05:10:23]OFD Sender: No OFD packet to send [05:10:28]OFD Sender: No OFD packet to send [05:10:33]OFD Sender: No OFD packet to send [05:10:38]OFD Sender: No OFD packet to send [05:10:43]OFD Sender: No OFD packet to send [05:10:48]OFD Sender: No OFD packet to send [05:10:51]accept exits with 9 [05:10:51]New connection [05:10:51]New thread 3067137380 created [05:10:51]Thread 3066994020 joined [05:10:51]Waiting for new connection... [05:10:51] Sock 9.Parse request [05:10:51]Sock 9.Check first char [05:10:51]Sock 9.First char is OK [05:10:51]request: POST /json_proto HTTP/1.0 [05:10:51]Method: POST [05:10:51]URL: /json_proto [05:10:51]Method is POST - this is cgi request [05:10:51]url: /json_proto [05:10:51]query_string will be loaded in cgi processing [05:10:51]execute_cgi json_proto POST (null) [05:10:51]execute_cgi path=json_proto method=POST [05:10:51]POST find Content-Length [05:10:51]Host: 172.17.44.195:8080 [05:10:51]Content-Length: 680 [05:10:51]Content-Type: application/json [05:10:51] [05:10:51]POST finish read [05:10:51]Found Content-Length = 680 [05:10:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 21.000, "sum" : 1600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:10:51]execute_script... [05:10: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)1964266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 21.000, "sum" : 1600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:10:51]POST & json_proto [05:10:51]process_json_proto [05:10:51]json parsed OK: [05:10:51]protocol is kg_v1.0 [05:10:51]action value=close_receipt [05:10:51]process_action close_receipt [05:10:51]cmd_close_receipt [05:10:51]MH_GetDate [05:10:51]Write to MH i2c: F0 00 00 EB 0B E5 [05:10:51]Write i2c OK [05:10:51]MH_I2C_Read... [05:10:51]Read from MH i2c: F0 [05:10:51]MH_I2C_Read... [05:10:51]Read from MH i2c: F0 09 00 [05:10:51]MH_I2C_Read... [05:10:51]Read from MH i2c: F0 09 00 EB 0B 00 DD 33 17 67 82 C9 CF 66 FC [05:10:51]GetLastDocTimeStamp 1729573737 [05:10:51]current date 1729573853 [05:10:51]FM_GetShiftState [05:10:51]SAM_PROTO_GetShiftState [05:10:51]wFMCommunicate request_size=4 [05:10:51]MH_SAM_APDU [05:10:51]CAPDU: 80 13 01 00 [05:10:51]Write to MH i2c: E2 08 00 EC 0B 80 13 01 00 00 00 00 00 74 [05:10:51]Write i2c OK [05:10:51]MH_I2C_Read... [05:10:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:10:51]Read from MH i2c: E2 [05:10:51]MH_I2C_Read... [05:10:51]Read from MH i2c: E2 0E 00 [05:10:51]MH_I2C_Read... [05:10:51]Read from MH i2c: E2 0E 00 EC 0B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 3B [05:10:51]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [05:10:51]wFMCommunicate OK [05:10:51]SAM_PROTO_GetShiftState done [05:10:51]FM_GetShiftState done [05:10:51]opened in 1729555538 [05:10:51]opened+sec_in_day 1729641938 [05:10:51]quantity*price = 160020 [05:10:51]sum+1 = 160021 [05:10:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.93 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 33 22.10.2024 05:10 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228069 ФПД: 114405200926674 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T051053&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228069&fm=114405200926674&tin=02508201610067®Number=0000000000091685&sum=160000 [05:10:52]StoreToDocumentArchive [05:10:52]shift 535 fd 228069 [05:10:52]save to /storage/0535/doc_00228069 [05:10:52]save last doc name /storage/0535/doc_00228069 to /storage/kkm_last_doc_name [05:10:52]save OK [05:10:52]Clear old archive folders... [05:10:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:10:52]tlvbuf is 00864F50 [05:10:52]SAM_PROTO_ClearQueue [05:10:52]wFMCommunicate request_size=4 [05:10:52]MH_SAM_APDU [05:10:52]CAPDU: 80 09 00 00 [05:10:52]Write to MH i2c: E2 08 00 F9 0B 80 09 00 00 00 00 00 00 76 [05:10:52]Write i2c OK [05:10:52]MH_I2C_Read... [05:10:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:10:52]Read from MH i2c: E2 [05:10:52]MH_I2C_Read... [05:10:52]Read from MH i2c: E2 03 00 [05:10:52]MH_I2C_Read... [05:10:52]Read from MH i2c: E2 03 00 F9 0B 00 90 00 78 [05:10:52]RAPDU: 90 00 [05:10:52]wFMCommunicate OK [05:10:52]SAM_PROTO_ClearQueue done [05:10:52]KKMCreateOFDPacket [05:10:52]OFDProtocolAddRootSTLVToBuf [05:10:52]FM_MakeSignedData [05:10:52]FM_MakeSignedData [05:10:52]SAM_PROTO_SignData [05:10:52]wFMCommunicate request_size=4 [05:10:52]MH_SAM_APDU [05:10:52]CAPDU: 80 0D 01 02 [05:10:52]Write to MH i2c: E2 08 00 FA 0B 80 0D 01 02 00 00 00 00 7E [05:10:52]Write i2c OK [05:10:52]MH_I2C_Read... [05:10:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:10:52]Read from MH i2c: E2 [05:10:52]MH_I2C_Read... [05:10:52]Read from MH i2c: E2 03 00 [05:10:52]MH_I2C_Read... [05:10:52]Read from MH i2c: E2 03 00 FA 0B 00 90 00 79 [05:10:52]RAPDU: 90 00 [05:10:52]wFMCommunicate OK [05:10:52]wFMCommunicate request_size=255 [05:10:52]MH_SAM_APDU [05:10: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 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 DD 33 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E5 7A 03 00 35 04 06 00 68 0D 09 5C [05:10:52]Write to MH i2c: E2 02 01 FB 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 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 DD 33 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E5 7A 03 00 35 04 06 00 68 0D 09 5C 00 00 BF [05:10:52]Write i2c OK [05:10:52]MH_I2C_Read... [05:10:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:10:52]Read from MH i2c: E2 [05:10:52]MH_I2C_Read... [05:10:52]Read from MH i2c: E2 03 00 [05:10:52]MH_I2C_Read... [05:10:52]Read from MH i2c: E2 03 00 FB 0B 00 90 00 7A [05:10:52]RAPDU: 90 00 [05:10:52]wFMCommunicate OK [05:10:52]wFMCommunicate request_size=7 [05:10:52]MH_SAM_APDU [05:10:52]CAPDU: 80 0D 02 02 02 97 D2 [05:10:52]Write to MH i2c: E2 0A 00 FC 0B 80 0D 02 02 02 00 97 D2 00 00 EE [05:10:52]Write i2c OK [05:10:52]MH_I2C_Read... [05:10:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:10:52]Read from MH i2c: E2 [05:10:52]MH_I2C_Read... [05:10:52]Read from MH i2c: E2 03 00 [05:10:52]MH_I2C_Read... [05:10:52]Read from MH i2c: E2 03 00 FC 0B 00 90 00 7B [05:10:52]RAPDU: 90 00 [05:10:52]wFMCommunicate OK [05:10:52]wFMCommunicate request_size=4 [05:10:52]MH_SAM_APDU [05:10:52]CAPDU: 80 0D 03 02 [05:10:52]Write to MH i2c: E2 08 00 FD 0B 80 0D 03 02 00 00 00 00 83 [05:10:52]Write i2c OK [05:10:52]MH_I2C_Read... [05:10:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:10:52]Read from MH i2c: E2 [05:10:52]MH_I2C_Read... [05:10:52]Read from MH i2c: E2 0B 00 [05:10:52]MH_I2C_Read... [05:10:52]Read from MH i2c: E2 0B 00 FD 0B 00 36 40 C1 3D 51 BF A6 D8 90 00 86 [05:10:52]RAPDU: 36 40 C1 3D 51 BF A6 D8 90 00 [05:10:52]wFMCommunicate OK [05:10:52]SAM_PROTO_SignData done [05:10:52]FM_MakeSignedData done [05:10:52]CreateOFDProtocolMessage [05:10:52]wFMCommunicate request_size=4 [05:10:52]MH_SAM_APDU [05:10:52]CAPDU: 80 11 00 00 [05:10:52]Write to MH i2c: E2 08 00 FE 0B 80 11 00 00 00 00 00 00 83 [05:10:52]Write i2c OK [05:10:52]MH_I2C_Read... [05:10:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:10:52]Read from MH i2c: E2 [05:10:52]MH_I2C_Read... [05:10:52]Read from MH i2c: E2 17 00 [05:10:52]MH_I2C_Read... [05:10:52]Read from MH i2c: E2 17 00 FE 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DA [05:10:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [05:10:52]wFMCommunicate OK [05:10:52]CreateOFDProtocolMessage done [05:10:52]OFDSenderStorePacket 228069 [05:10:52]StoreOFDPacket docnum=228069 [05:10:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 2B EB 04 01 3C 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 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 DD 33 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E5 7A 03 00 35 04 06 00 68 0D 09 5C 97 D2 36 40 C1 3D 51 BF A6 D8 [05:10:52]CheckFolder [05:10:52]dirname=/storage/ofd_packets [05:10:52]CheckFolder done [05:10:52]ProducePacketName [05:10:52]name=ofd_packets/00228069 [05:10:52]NVStorageSaveData ofd_packets/00228069 [05:10:52]File name is /storage/ofd_packets/00228069 [05:10:52]Write 298 bytes [05:10:52]NVStorageSaveData done [05:10:52]OFDSenderStorePacket done [05:10:52]KKMCreateOFDPacket done [05:10:52]NVStorageSaveData kkm_last_timestamp [05:10:52]File name is /storage/kkm_last_timestamp [05:10:52]Write 4 bytes [05:10:52]NVStorageSaveData done [05:10:52]ExternCall_PrintAddStr [05:10:52]wPrintStart [05:10:52]Write to MH i2c: 01 00 00 FF 0B 0A [05:10:52]Write i2c OK [05:10:52]MH_I2C_Read... [05:10:52]Read from MH i2c: 01 [05:10:52]MH_I2C_Read... [05:10:52]Read from MH i2c: 01 07 00 [05:10:52]MH_I2C_Read... [05:10:52]Read from MH i2c: 01 07 00 FF 0B 00 00 00 00 00 FF 0F 1F [05:10:52]RasterBufferAndPrint [05:10:52]line Счет N : (1)1964266 [05:10:52]line ИНН: 02508201610067 [05:10:52]line Контрольно-Кассовый Чек [05:10:52]line ПРОДАЖА [05:10:52]line ТРК (МРК, ГНК) : 31 [05:10:52]line Товар: 2710194210 [05:10:52]line ДТ-К-5 [05:10:52]line 21.000 * 76.20 [05:10:52]line = 1600.20 [05:10:52]line НДС 12% НСП 1% [05:10:52]line > о реализуемом товаре [05:10:52]line ОКРУГЛЕНИЕ: -0.20 [05:10:52]line ИТОГО: 1600.00 [05:10:52]line Внесено: 1600.00 [05:10:52]line СДАЧА: 0.00 [05:10:52]line НСП 1% : 14.16 [05:10:52]line НДС 12% : 169.93 [05:10:52]line Наличными: 1600.00 [05:10:52]line Безнал.: 0.00 [05:10:52]line Место: АЗС № 133 "Партнер Нефть" [05:10:52]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [05:10:52]line СНО: Общий режим [05:10:52]line Чек 33 22.10.2024 05:10 [05:10:52]line Смена: 535 ФФД: 1.0 [05:10:52]line ЗНМ: 0300000091 [05:10:52]line РНМ: 0000000000091685 [05:10:52]line Версия ККМ: 001 [05:10:52]line ФМ: 0000000000871839 [05:10:52]line ФД: 228069 [05:10:52]line ФПД: 114405200926674 [05:10:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T051053&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228069&fm=114405200926674&tin=02508201610067®Number=0000000000091685&sum=160000 [05:10:53]OFD Sender: Processing packet 228069 [packets to send 38, broken 37] [05:10:53]ProducePacketName [05:10:53]name=ofd_packets/00228069 [05:10:53]OFD Sender: To server: pG, [05:10:53]CommunicateWithHost lk.salyk.kg:30040 [05:10:53]ConnectInit lk.salyk.kg [05:10:53]written 0, free lines is 4095 [05:10:53]Connected sock=10 [05:10:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 2B EB 04 01 3C 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 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 DD 33 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E5 7A 03 00 35 04 06 00 68 0D 09 5C 97 D2 36 40 C1 3D 51 BF A6 D8 [05:10:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 C5 21 47 00 C1 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 38 37 31 38 33 39 10 04 04 00 E5 7A 03 00 F4 03 04 00 D6 DE 16 67 B6 04 01 00 00 0E 01 73 98 71 B5 96 AD [05:10:53]CommunicateWithHost err = 0 [05:10:53]CheckOFDResponse [05:10:53]1017 (14) - 77093643461234 [05:10:53]1041 (16) - 0000000000871839 [05:10:53]1040 (4) - 228069 [05:10:53]1012 (4) - 21.10.2024 23:08 [05:10:53]1206 (1) - 0 [05:10:53]OFD Sender: Remove packet 228069 [05:10:53]ProducePacketName [05:10:53]name=ofd_packets/00228069 [05:10:53]NVStorageDeleteData [05:10:53]Write to MH i2c: 01 00 00 29 0C 35 [05:10:53]Write i2c OK [05:10:53]MH_I2C_Read... [05:10:53]Read from MH i2c: 01 [05:10:53]MH_I2C_Read... [05:10:53]Read from MH i2c: 01 07 00 [05:10:53]MH_I2C_Read... [05:10:53]Read from MH i2c: 01 07 00 29 0C 00 00 00 00 00 A2 0C EA [05:10:53]RasterBufferAndPrint [05:10:53]line [05:10:53]line [05:10:53]line [05:10:53]line [05:10:53]line [05:10:53]written 0, free lines is 3239 [05:10:53]MH_Cut [05:10:53]Write to MH i2c: D1 01 00 30 0C 01 0E [05:10:53]Write i2c OK [05:10:53]MH_I2C_Read... [05:10:53]Read from MH i2c: D1 [05:10:53]MH_I2C_Read... [05:10:53]Read from MH i2c: D1 01 00 [05:10:53]MH_I2C_Read... [05:10:53]Read from MH i2c: D1 01 00 30 0C 00 0D [05:10:53]Write to MH i2c: 01 00 00 31 0C 3D [05:10:53]Write i2c OK [05:10:53]MH_I2C_Read... [05:10:54]OFD Sender: No OFD packet to send [05:10:54]*** Cut start [05:10:54]*** Partial cut [05:10:54]*** CUTSNS_PIN = 1 [05:10:54]*** CUTSNS_PIN = 0 [05:10:54]*** Brake cut motor [05:10:55]Read from MH i2c: 01 [05:10:55]MH_I2C_Read... [05:10:55]*** Stop cut motor [05:10:55]*** Cut end [05:10:55]Read from MH i2c: 01 07 00 [05:10:55]MH_I2C_Read... [05:10:55]Read from MH i2c: 01 07 00 31 0C 00 00 00 00 00 FF 0F 52 [05:10:55]process_action close_receipt done [05:10:55]requested_data is exist [05:10:55]produce_requested_data [05:10:55]requested_item fm.sn is exist - process it [05:10:55]wFMCommunicate request_size=4 [05:10:55]MH_SAM_APDU [05:10:55]CAPDU: 80 11 00 00 [05:10:55]Write to MH i2c: E2 08 00 32 0C 80 11 00 00 00 00 00 00 B8 [05:10:55]Write i2c OK [05:10:55]MH_I2C_Read... [05:10:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:10:55]Read from MH i2c: E2 [05:10:55]MH_I2C_Read... [05:10:55]Read from MH i2c: E2 17 00 [05:10:55]MH_I2C_Read... [05:10:55]Read from MH i2c: E2 17 00 32 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0F [05:10:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [05:10:55]wFMCommunicate OK [05:10:55]requested_item fd.num is exist - process it [05:10:55]SAM_PROTO_GetFieldsCounters [05:10:55]wFMCommunicate request_size=4 [05:10:55]MH_SAM_APDU [05:10:55]CAPDU: 80 13 00 00 [05:10:55]Write to MH i2c: E2 08 00 33 0C 80 13 00 00 00 00 00 00 BB [05:10:55]Write i2c OK [05:10:55]MH_I2C_Read... [05:10:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:10:55]Read from MH i2c: E2 [05:10:55]MH_I2C_Read... [05:10:55]Read from MH i2c: E2 62 00 [05:10:55]MH_I2C_Read... [05:10:55]Read from MH i2c: E2 62 00 33 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E5 7A 03 00 0E 04 04 00 17 02 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 C2 [05:10:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E5 7A 03 00 0E 04 04 00 17 02 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 [05:10:55]wFMCommunicate OK [05:10:55]SAM_PROTO_GetFieldsCounters done [05:10:55]requested_item shift.num is exist - process it [05:10:55]requested_item shift.opened is exist - process it [05:10:55]req_shift_opened [05:10:55]FM_GetShiftState [05:10:55]SAM_PROTO_GetShiftState [05:10:55]wFMCommunicate request_size=4 [05:10:55]MH_SAM_APDU [05:10:55]CAPDU: 80 13 01 00 [05:10:55]Write to MH i2c: E2 08 00 34 0C 80 13 01 00 00 00 00 00 BD [05:10:55]Write i2c OK [05:10:55]MH_I2C_Read... [05:10:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:10:55]Read from MH i2c: E2 [05:10:55]MH_I2C_Read... [05:10:55]Read from MH i2c: E2 0E 00 [05:10:55]MH_I2C_Read... [05:10:55]Read from MH i2c: E2 0E 00 34 0C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 84 [05:10:55]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [05:10:55]wFMCommunicate OK [05:10:55]SAM_PROTO_GetShiftState done [05:10:55]FM_GetShiftState done [05:10:55]req_shift_opened done [05:10:55]requested_item shift.open_date is exist - process it [05:10:55]req_shift_open_date [05:10:55]req_shift_open_date done [05:10:55]produce_requested_data done [05:10:55]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228069,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [05:10:55]process_action_free close_receipt [05:10:55]json_value_free [05:10:55]json_value_free done [05:10:55]process_json_proto returns [05:10:55]Send response to host [05:10:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228069,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [05:10:55]free response buf [05:10:55]execute_script done [05:10:55]execute_script returns [05:10:55]free content buf [05:10:55]Sock 9.Close socket [05:10:55]Sock 9.Thread stoped [05:10:59]OFD Sender: No OFD packet to send [05:11:04]OFD Sender: No OFD packet to send [05:11:09]OFD Sender: No OFD packet to send [05:11:14]OFD Sender: No OFD packet to send [05:11:19]OFD Sender: No OFD packet to send [05:11:24]OFD Sender: No OFD packet to send [05:11:29]OFD Sender: No OFD packet to send [05:11:34]OFD Sender: No OFD packet to send [05:11:39]OFD Sender: No OFD packet to send [05:11:44]OFD Sender: No OFD packet to send [05:11:44]accept exits with 7 [05:11:44]New connection [05:11:44]New thread 3066994020 created [05:11:44]Thread 3067137380 joined [05:11:44]Waiting for new connection... [05:11:44] Sock 7.Parse request [05:11:44]Sock 7.Check first char [05:11:44]Sock 7.First char is OK [05:11:44]request: POST /json_proto HTTP/1.0 [05:11:44]Method: POST [05:11:44]URL: /json_proto [05:11:44]Method is POST - this is cgi request [05:11:44]url: /json_proto [05:11:44]query_string will be loaded in cgi processing [05:11:44]execute_cgi json_proto POST (null) [05:11:44]execute_cgi path=json_proto method=POST [05:11:44]POST find Content-Length [05:11:44]Host: 172.17.44.195:8080 [05:11:44]Content-Length: 683 [05:11:44]Content-Type: application/json [05:11:44] [05:11:44]POST finish read [05:11:44]Found Content-Length = 683 [05:11:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964267", "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" : 66.90, "quantity" : 14.950, "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" ] } } [05:11:44]execute_script... [05:11: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)1964267", "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" : 66.90, "quantity" : 14.950, "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" ] } } [05:11:44]POST & json_proto [05:11:44]process_json_proto [05:11:44]json parsed OK: [05:11:44]protocol is kg_v1.0 [05:11:44]action value=close_receipt [05:11:44]process_action close_receipt [05:11:44]cmd_close_receipt [05:11:44]MH_GetDate [05:11:44]Write to MH i2c: F0 00 00 35 0C 30 [05:11:44]Write i2c OK [05:11:44]MH_I2C_Read... [05:11:44]Read from MH i2c: F0 [05:11:44]MH_I2C_Read... [05:11:44]Read from MH i2c: F0 09 00 [05:11:44]MH_I2C_Read... [05:11:44]Read from MH i2c: F0 09 00 35 0C 00 12 34 17 67 82 C9 CF 66 7D [05:11:44]GetLastDocTimeStamp 1729573853 [05:11:44]current date 1729573906 [05:11:44]FM_GetShiftState [05:11:44]SAM_PROTO_GetShiftState [05:11:44]wFMCommunicate request_size=4 [05:11:44]MH_SAM_APDU [05:11:44]CAPDU: 80 13 01 00 [05:11:44]Write to MH i2c: E2 08 00 36 0C 80 13 01 00 00 00 00 00 BF [05:11:44]Write i2c OK [05:11:44]MH_I2C_Read... [05:11:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:11:44]Read from MH i2c: E2 [05:11:44]MH_I2C_Read... [05:11:44]Read from MH i2c: E2 0E 00 [05:11:44]MH_I2C_Read... [05:11:44]Read from MH i2c: E2 0E 00 36 0C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 86 [05:11:44]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [05:11:44]wFMCommunicate OK [05:11:44]SAM_PROTO_GetShiftState done [05:11:44]FM_GetShiftState done [05:11:44]opened in 1729555538 [05:11:44]opened+sec_in_day 1729641938 [05:11:44]quantity*price = 100015 [05:11:44]sum+1 = 100017 [05:11:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 34 22.10.2024 05:11 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228070 ФПД: 134209676092254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T051146&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228070&fm=134209676092254&tin=02508201610067®Number=0000000000091685&sum=100000 [05:11:45]StoreToDocumentArchive [05:11:45]shift 535 fd 228070 [05:11:45]save to /storage/0535/doc_00228070 [05:11:45]save last doc name /storage/0535/doc_00228070 to /storage/kkm_last_doc_name [05:11:45]save OK [05:11:45]Clear old archive folders... [05:11:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:11:45]tlvbuf is 008861E0 [05:11:45]SAM_PROTO_ClearQueue [05:11:45]wFMCommunicate request_size=4 [05:11:45]MH_SAM_APDU [05:11:45]CAPDU: 80 09 00 00 [05:11:45]Write to MH i2c: E2 08 00 43 0C 80 09 00 00 00 00 00 00 C1 [05:11:45]Write i2c OK [05:11:45]MH_I2C_Read... [05:11:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:11:45]Read from MH i2c: E2 [05:11:45]MH_I2C_Read... [05:11:45]Read from MH i2c: E2 03 00 [05:11:45]MH_I2C_Read... [05:11:45]Read from MH i2c: E2 03 00 43 0C 00 90 00 C3 [05:11:45]RAPDU: 90 00 [05:11:45]wFMCommunicate OK [05:11:45]SAM_PROTO_ClearQueue done [05:11:45]KKMCreateOFDPacket [05:11:45]OFDProtocolAddRootSTLVToBuf [05:11:45]FM_MakeSignedData [05:11:45]FM_MakeSignedData [05:11:45]SAM_PROTO_SignData [05:11:45]wFMCommunicate request_size=4 [05:11:45]MH_SAM_APDU [05:11:45]CAPDU: 80 0D 01 02 [05:11:45]Write to MH i2c: E2 08 00 44 0C 80 0D 01 02 00 00 00 00 C9 [05:11:45]Write i2c OK [05:11:45]MH_I2C_Read... [05:11:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:11:45]Read from MH i2c: E2 [05:11:45]MH_I2C_Read... [05:11:45]Read from MH i2c: E2 03 00 [05:11:45]MH_I2C_Read... [05:11:45]Read from MH i2c: E2 03 00 44 0C 00 90 00 C4 [05:11:45]RAPDU: 90 00 [05:11:45]wFMCommunicate OK [05:11:45]wFMCommunicate request_size=255 [05:11:45]MH_SAM_APDU [05:11: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 22 00 00 00 F4 03 04 00 12 34 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E6 7A 03 00 35 04 06 00 7A [05:11:45]Write to MH i2c: E2 02 01 45 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 22 00 00 00 F4 03 04 00 12 34 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E6 7A 03 00 35 04 06 00 7A 00 00 36 [05:11:45]Write i2c OK [05:11:45]MH_I2C_Read... [05:11:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:11:45]Read from MH i2c: E2 [05:11:45]MH_I2C_Read... [05:11:45]Read from MH i2c: E2 03 00 [05:11:45]MH_I2C_Read... [05:11:45]Read from MH i2c: E2 03 00 45 0C 00 90 00 C5 [05:11:45]RAPDU: 90 00 [05:11:45]wFMCommunicate OK [05:11:45]wFMCommunicate request_size=10 [05:11:45]MH_SAM_APDU [05:11:45]CAPDU: 80 0D 02 02 05 10 20 11 A3 5E [05:11:45]Write to MH i2c: E2 0D 00 46 0C 80 0D 02 02 05 00 10 20 11 A3 5E 00 00 18 [05:11:45]Write i2c OK [05:11:45]MH_I2C_Read... [05:11:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:11:45]Read from MH i2c: E2 [05:11:45]MH_I2C_Read... [05:11:45]Read from MH i2c: E2 03 00 [05:11:45]MH_I2C_Read... [05:11:45]Read from MH i2c: E2 03 00 46 0C 00 90 00 C6 [05:11:45]RAPDU: 90 00 [05:11:45]wFMCommunicate OK [05:11:45]wFMCommunicate request_size=4 [05:11:45]MH_SAM_APDU [05:11:45]CAPDU: 80 0D 03 02 [05:11:45]Write to MH i2c: E2 08 00 47 0C 80 0D 03 02 00 00 00 00 CE [05:11:45]Write i2c OK [05:11:45]MH_I2C_Read... [05:11:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:11:46]Read from MH i2c: E2 [05:11:46]MH_I2C_Read... [05:11:46]Read from MH i2c: E2 0B 00 [05:11:46]MH_I2C_Read... [05:11:46]Read from MH i2c: E2 0B 00 47 0C 00 28 32 75 B4 43 53 33 A7 90 00 C2 [05:11:46]RAPDU: 28 32 75 B4 43 53 33 A7 90 00 [05:11:46]wFMCommunicate OK [05:11:46]SAM_PROTO_SignData done [05:11:46]FM_MakeSignedData done [05:11:46]CreateOFDProtocolMessage [05:11:46]wFMCommunicate request_size=4 [05:11:46]MH_SAM_APDU [05:11:46]CAPDU: 80 11 00 00 [05:11:46]Write to MH i2c: E2 08 00 48 0C 80 11 00 00 00 00 00 00 CE [05:11:46]Write i2c OK [05:11:46]MH_I2C_Read... [05:11:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:11:46]Read from MH i2c: E2 [05:11:46]MH_I2C_Read... [05:11:46]Read from MH i2c: E2 17 00 [05:11:46]MH_I2C_Read... [05:11:46]Read from MH i2c: E2 17 00 48 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 25 [05:11:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [05:11:46]wFMCommunicate OK [05:11:46]CreateOFDProtocolMessage done [05:11:46]OFDSenderStorePacket 228070 [05:11:46]StoreOFDPacket docnum=228070 [05:11:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 FC C5 07 01 CA F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 22 00 00 00 F4 03 04 00 12 34 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E6 7A 03 00 35 04 06 00 7A 10 20 11 A3 5E 28 32 75 B4 43 53 33 A7 [05:11:46]CheckFolder [05:11:46]dirname=/storage/ofd_packets [05:11:46]CheckFolder done [05:11:46]ProducePacketName [05:11:46]name=ofd_packets/00228070 [05:11:46]NVStorageSaveData ofd_packets/00228070 [05:11:46]File name is /storage/ofd_packets/00228070 [05:11:46]Write 301 bytes [05:11:46]NVStorageSaveData done [05:11:46]OFDSenderStorePacket done [05:11:46]KKMCreateOFDPacket done [05:11:46]NVStorageSaveData kkm_last_timestamp [05:11:46]File name is /storage/kkm_last_timestamp [05:11:46]Write 4 bytes [05:11:46]NVStorageSaveData done [05:11:46]OFD Sender: Processing packet 228070 [packets to send 38, broken 37] [05:11:46]ProducePacketName [05:11:46]name=ofd_packets/00228070 [05:11:46]OFD Sender: To server: pG, [05:11:46]CommunicateWithHost lk.salyk.kg:30040 [05:11:46]ConnectInit lk.salyk.kg [05:11:46]ExternCall_PrintAddStr [05:11:46]wPrintStart [05:11:46]Write to MH i2c: 01 00 00 49 0C 55 [05:11:46]Write i2c OK [05:11:46]MH_I2C_Read... [05:11:46]Read from MH i2c: 01 [05:11:46]MH_I2C_Read... [05:11:46]Read from MH i2c: 01 07 00 [05:11:46]MH_I2C_Read... [05:11:46]Read from MH i2c: 01 07 00 49 0C 00 00 00 00 00 FF 0F 6A [05:11:46]RasterBufferAndPrint [05:11:46]line Счет N : (1)1964267 [05:11:46]line ИНН: 02508201610067 [05:11:46]line Контрольно-Кассовый Чек [05:11:46]line ПРОДАЖА [05:11:46]line ТРК (МРК, ГНК) : 53 [05:11:46]line Товар: 2710124130 [05:11:46]line Аи-92-К-5 [05:11:46]line 14.950 * 66.90 [05:11:46]line = 1000.16 [05:11:46]line НДС 12% НСП 1% [05:11:46]line > о реализуемом товаре [05:11:46]line ОКРУГЛЕНИЕ: -0.16 [05:11:46]line ИТОГО: 1000.00 [05:11:46]line Внесено: 1000.00 [05:11:46]line СДАЧА: 0.00 [05:11:46]line НСП 1% : 8.85 [05:11:46]line НДС 12% : 106.21 [05:11:46]line Наличными: 1000.00 [05:11:46]line Безнал.: 0.00 [05:11:46]line Место: АЗС № 133 "Партнер Нефть" [05:11:46]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [05:11:46]line СНО: Общий режим [05:11:46]line Чек 34 22.10.2024 05:11 [05:11:46]line Смена: 535 ФФД: 1.0 [05:11:46]line ЗНМ: 0300000091 [05:11:46]line РНМ: 0000000000091685 [05:11:46]line Версия ККМ: 001 [05:11:46]line ФМ: 0000000000871839 [05:11:46]line ФД: 228070 [05:11:46]line ФПД: 134209676092254 [05:11:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T051146&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228070&fm=134209676092254&tin=02508201610067®Number=0000000000091685&sum=100000 [05:11:46]Connected sock=11 [05:11:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 FC C5 07 01 CA F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 22 00 00 00 F4 03 04 00 12 34 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E6 7A 03 00 35 04 06 00 7A 10 20 11 A3 5E 28 32 75 B4 43 53 33 A7 [05:11:46]written 0, free lines is 4095 [05:11:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 76 32 47 00 C2 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E6 7A 03 00 F4 03 04 00 0B DF 16 67 B6 04 01 00 00 01 99 1F A1 80 46 54 CE [05:11:46]CommunicateWithHost err = 0 [05:11:46]CheckOFDResponse [05:11:46]1017 (14) - 77093643461234 [05:11:46]1041 (16) - 0000000000871839 [05:11:46]1040 (4) - 228070 [05:11:46]1012 (4) - 21.10.2024 23:08 [05:11:46]1206 (1) - 0 [05:11:46]OFD Sender: Remove packet 228070 [05:11:46]ProducePacketName [05:11:46]name=ofd_packets/00228070 [05:11:46]NVStorageDeleteData [05:11:46]Write to MH i2c: 01 00 00 73 0C 7F [05:11:46]Write i2c OK [05:11:46]MH_I2C_Read... [05:11:46]Read from MH i2c: 01 [05:11:46]MH_I2C_Read... [05:11:46]Read from MH i2c: 01 07 00 [05:11:46]MH_I2C_Read... [05:11:46]Read from MH i2c: 01 07 00 73 0C 00 00 00 00 00 AD 0C 3F [05:11:46]RasterBufferAndPrint [05:11:46]line [05:11:46]line [05:11:46]line [05:11:46]line [05:11:46]line [05:11:46]written 0, free lines is 3248 [05:11:46]MH_Cut [05:11:46]Write to MH i2c: D1 01 00 7A 0C 01 58 [05:11:46]Write i2c OK [05:11:46]MH_I2C_Read... [05:11:46]Read from MH i2c: D1 [05:11:46]MH_I2C_Read... [05:11:46]Read from MH i2c: D1 01 00 [05:11:46]MH_I2C_Read... [05:11:46]Read from MH i2c: D1 01 00 7A 0C 00 57 [05:11:46]Write to MH i2c: 01 00 00 7B 0C 87 [05:11:46]Write i2c OK [05:11:46]MH_I2C_Read... [05:11:47]OFD Sender: No OFD packet to send [05:11:47]*** Cut start [05:11:47]*** Partial cut [05:11:47]*** CUTSNS_PIN = 1 [05:11:47]*** CUTSNS_PIN = 0 [05:11:48]*** Brake cut motor [05:11:48]Read from MH i2c: 01 [05:11:48]MH_I2C_Read... [05:11:48]*** Stop cut motor [05:11:48]*** Cut end [05:11:48]Read from MH i2c: 01 07 00 [05:11:48]MH_I2C_Read... [05:11:48]Read from MH i2c: 01 07 00 7B 0C 00 00 00 00 00 FF 0F 9C [05:11:48]process_action close_receipt done [05:11:48]requested_data is exist [05:11:48]produce_requested_data [05:11:48]requested_item fm.sn is exist - process it [05:11:48]wFMCommunicate request_size=4 [05:11:48]MH_SAM_APDU [05:11:48]CAPDU: 80 11 00 00 [05:11:48]Write to MH i2c: E2 08 00 7C 0C 80 11 00 00 00 00 00 00 02 [05:11:48]Write i2c OK [05:11:48]MH_I2C_Read... [05:11:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:11:48]Read from MH i2c: E2 [05:11:48]MH_I2C_Read... [05:11:48]Read from MH i2c: E2 17 00 [05:11:48]MH_I2C_Read... [05:11:48]Read from MH i2c: E2 17 00 7C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 59 [05:11:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [05:11:48]wFMCommunicate OK [05:11:48]requested_item fd.num is exist - process it [05:11:48]SAM_PROTO_GetFieldsCounters [05:11:48]wFMCommunicate request_size=4 [05:11:48]MH_SAM_APDU [05:11:48]CAPDU: 80 13 00 00 [05:11:48]Write to MH i2c: E2 08 00 7D 0C 80 13 00 00 00 00 00 00 05 [05:11:48]Write i2c OK [05:11:48]MH_I2C_Read... [05:11:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:11:48]Read from MH i2c: E2 [05:11:48]MH_I2C_Read... [05:11:48]Read from MH i2c: E2 62 00 [05:11:48]MH_I2C_Read... [05:11:48]Read from MH i2c: E2 62 00 7D 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E6 7A 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [05:11:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E6 7A 03 00 0E 04 04 00 17 02 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 [05:11:48]wFMCommunicate OK [05:11:48]SAM_PROTO_GetFieldsCounters done [05:11:48]requested_item shift.num is exist - process it [05:11:48]requested_item shift.opened is exist - process it [05:11:48]req_shift_opened [05:11:48]FM_GetShiftState [05:11:48]SAM_PROTO_GetShiftState [05:11:48]wFMCommunicate request_size=4 [05:11:48]MH_SAM_APDU [05:11:48]CAPDU: 80 13 01 00 [05:11:48]Write to MH i2c: E2 08 00 7E 0C 80 13 01 00 00 00 00 00 07 [05:11:48]Write i2c OK [05:11:48]MH_I2C_Read... [05:11:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:11:48]Read from MH i2c: E2 [05:11:48]MH_I2C_Read... [05:11:48]Read from MH i2c: E2 0E 00 [05:11:48]MH_I2C_Read... [05:11:48]Read from MH i2c: E2 0E 00 7E 0C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 CE [05:11:48]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [05:11:48]wFMCommunicate OK [05:11:48]SAM_PROTO_GetShiftState done [05:11:48]FM_GetShiftState done [05:11:48]req_shift_opened done [05:11:48]requested_item shift.open_date is exist - process it [05:11:48]req_shift_open_date [05:11:48]req_shift_open_date done [05:11:48]produce_requested_data done [05:11:48]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228070,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [05:11:48]process_action_free close_receipt [05:11:48]json_value_free [05:11:48]json_value_free done [05:11:48]process_json_proto returns [05:11:48]Send response to host [05:11:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228070,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [05:11:48]free response buf [05:11:48]execute_script done [05:11:48]execute_script returns [05:11:48]free content buf [05:11:48]Sock 7.Close socket [05:11:48]Sock 7.Thread stoped [05:11:52]OFD Sender: No OFD packet to send [05:11:57]OFD Sender: No OFD packet to send [05:12:02]OFD Sender: No OFD packet to send [05:12:07]OFD Sender: No OFD packet to send [05:12:12]OFD Sender: No OFD packet to send [05:12:17]OFD Sender: No OFD packet to send [05:12:22]OFD Sender: No OFD packet to send [05:12:27]OFD Sender: No OFD packet to send [05:12:32]OFD Sender: No OFD packet to send [05:12:37]OFD Sender: No OFD packet to send [05:12:42]OFD Sender: No OFD packet to send [05:12:47]OFD Sender: No OFD packet to send [05:12:52]OFD Sender: No OFD packet to send [05:12:57]OFD Sender: No OFD packet to send [05:13:02]OFD Sender: No OFD packet to send [05:13:07]OFD Sender: No OFD packet to send [05:13:12]OFD Sender: No OFD packet to send [05:13:17]OFD Sender: No OFD packet to send [05:13:22]OFD Sender: No OFD packet to send [05:13:27]OFD Sender: No OFD packet to send [05:13:32]OFD Sender: No OFD packet to send [05:13:37]OFD Sender: No OFD packet to send [05:13:42]OFD Sender: No OFD packet to send [05:13:47]OFD Sender: No OFD packet to send [05:13:52]OFD Sender: No OFD packet to send [05:13:57]OFD Sender: No OFD packet to send [05:14:02]OFD Sender: No OFD packet to send [05:14:07]OFD Sender: No OFD packet to send [05:14:12]OFD Sender: No OFD packet to send [05:14:17]OFD Sender: No OFD packet to send [05:14:22]OFD Sender: No OFD packet to send [05:14:27]OFD Sender: No OFD packet to send [05:14:32]OFD Sender: No OFD packet to send [05:14:37]OFD Sender: No OFD packet to send [05:14:42]OFD Sender: No OFD packet to send [05:14:47]OFD Sender: No OFD packet to send [05:14:52]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:17]OFD Sender: No OFD packet to send [05:15:22]OFD Sender: No OFD packet to send [05:15:27]OFD Sender: No OFD packet to send [05:15:32]OFD Sender: No OFD packet to send [05:15:37]OFD Sender: No OFD packet to send [05:15:42]OFD Sender: No OFD packet to send [05:15:47]OFD Sender: No OFD packet to send [05:15:52]OFD Sender: No OFD packet to send [05:15:57]OFD Sender: No OFD packet to send [05:16:02]OFD Sender: No OFD packet to send [05:16:07]OFD Sender: No OFD packet to send [05:16:12]OFD Sender: No OFD packet to send [05:16:17]OFD Sender: No OFD packet to send [05:16:22]OFD Sender: No OFD packet to send [05:16:27]OFD Sender: No OFD packet to send [05:16:32]OFD Sender: No OFD packet to send [05:16:37]OFD Sender: No OFD packet to send [05:16:42]OFD Sender: No OFD packet to send [05:16:47]OFD Sender: No OFD packet to send [05:16:52]OFD Sender: No OFD packet to send [05:16:57]OFD Sender: No OFD packet to send [05:17:02]OFD Sender: No OFD packet to send [05:17:07]OFD Sender: No OFD packet to send [05:17:12]OFD Sender: No OFD packet to send [05:17:17]OFD Sender: No OFD packet to send [05:17:22]OFD Sender: No OFD packet to send [05:17:27]OFD Sender: No OFD packet to send [05:17:32]OFD Sender: No OFD packet to send [05:17:37]OFD Sender: No OFD packet to send [05:17:42]OFD Sender: No OFD packet to send [05:17:47]OFD Sender: No OFD packet to send [05:17:52]OFD Sender: No OFD packet to send [05:17:57]OFD Sender: No OFD packet to send [05:18:02]OFD Sender: No OFD packet to send [05:18:07]OFD Sender: No OFD packet to send [05:18:12]OFD Sender: No OFD packet to send [05:18:17]OFD Sender: No OFD packet to send [05:18:22]OFD Sender: No OFD packet to send [05:18:27]OFD Sender: No OFD packet to send [05:18:32]OFD Sender: No OFD packet to send [05:18:37]OFD Sender: No OFD packet to send [05:18:42]OFD Sender: No OFD packet to send [05:18:47]OFD Sender: No OFD packet to send [05:18:52]OFD Sender: No OFD packet to send [05:18:57]OFD Sender: No OFD packet to send [05:19:02]OFD Sender: No OFD packet to send [05:19:07]OFD Sender: No OFD packet to send [05:19:12]OFD Sender: No OFD packet to send [05:19:17]OFD Sender: No OFD packet to send [05:19:22]OFD Sender: No OFD packet to send [05:19:27]OFD Sender: No OFD packet to send [05:19:32]OFD Sender: No OFD packet to send [05:19:37]OFD Sender: No OFD packet to send [05:19:42]OFD Sender: No OFD packet to send [05:19:47]OFD Sender: No OFD packet to send [05:19:52]OFD Sender: No OFD packet to send [05:19:57]OFD Sender: No OFD packet to send [05:20:02]OFD Sender: No OFD packet to send [05:20:07]OFD Sender: No OFD packet to send [05:20:12]OFD Sender: No OFD packet to send [05:20:17]OFD Sender: No OFD packet to send [05:20:22]OFD Sender: No OFD packet to send [05:20:27]OFD Sender: No OFD packet to send [05:20:32]OFD Sender: No OFD packet to send [05:20:37]OFD Sender: No OFD packet to send [05:20:42]OFD Sender: No OFD packet to send [05:20:47]OFD Sender: No OFD packet to send [05:20:52]OFD Sender: No OFD packet to send [05:20:57]OFD Sender: No OFD packet to send [05:21:02]OFD Sender: No OFD packet to send [05:21:07]OFD Sender: No OFD packet to send [05:21:12]OFD Sender: No OFD packet to send [05:21:17]OFD Sender: No OFD packet to send [05:21:22]OFD Sender: No OFD packet to send [05:21:27]OFD Sender: No OFD packet to send [05:21:32]OFD Sender: No OFD packet to send [05:21:37]OFD Sender: No OFD packet to send [05:21:42]OFD Sender: No OFD packet to send [05:21:47]OFD Sender: No OFD packet to send [05:21:52]OFD Sender: No OFD packet to send [05:21:57]OFD Sender: No OFD packet to send [05:22:02]OFD Sender: No OFD packet to send [05:22:07]OFD Sender: No OFD packet to send [05:22:12]OFD Sender: No OFD packet to send [05:22:17]OFD Sender: No OFD packet to send [05:22:22]OFD Sender: No OFD packet to send [05:22:27]OFD Sender: No OFD packet to send [05:22:32]OFD Sender: No OFD packet to send [05:22:37]OFD Sender: No OFD packet to send [05:22:42]OFD Sender: No OFD packet to send [05:22:47]OFD Sender: No OFD packet to send [05:22:52]OFD Sender: No OFD packet to send [05:22:57]OFD Sender: No OFD packet to send [05:23:02]OFD Sender: No OFD packet to send [05:23:07]OFD Sender: No OFD packet to send [05:23:12]OFD Sender: No OFD packet to send [05:23:17]OFD Sender: No OFD packet to send [05:23:22]OFD Sender: No OFD packet to send [05:23:27]OFD Sender: No OFD packet to send [05:23:32]OFD Sender: No OFD packet to send [05:23:37]OFD Sender: No OFD packet to send [05:23:42]OFD Sender: No OFD packet to send [05:23:47]OFD Sender: No OFD packet to send [05:23:52]OFD Sender: No OFD packet to send [05:23:57]OFD Sender: No OFD packet to send [05:24:02]OFD Sender: No OFD packet to send [05:24:07]OFD Sender: No OFD packet to send [05:24:12]OFD Sender: No OFD packet to send [05:24:17]OFD Sender: No OFD packet to send [05:24:22]OFD Sender: No OFD packet to send [05:24:27]OFD Sender: No OFD packet to send [05:24:32]OFD Sender: No OFD packet to send [05:24:37]OFD Sender: No OFD packet to send [05:24:42]OFD Sender: No OFD packet to send [05:24:43]accept exits with 9 [05:24:43]New connection [05:24:43]New thread 3067137380 created [05:24:43]Thread 3066994020 joined [05:24:43]Waiting for new connection... [05:24:43] Sock 9.Parse request [05:24:43]Sock 9.Check first char [05:24:43]Sock 9.First char is OK [05:24:43]request: POST /json_proto HTTP/1.0 [05:24:43]Method: POST [05:24:43]URL: /json_proto [05:24:43]Method is POST - this is cgi request [05:24:43]url: /json_proto [05:24:43]query_string will be loaded in cgi processing [05:24:43]execute_cgi json_proto POST (null) [05:24:43]execute_cgi path=json_proto method=POST [05:24:43]POST find Content-Length [05:24:43]Host: 172.17.44.195:8080 [05:24:43]Content-Length: 683 [05:24:43]Content-Type: application/json [05:24:43] [05:24:43]POST finish read [05:24:43]Found Content-Length = 683 [05:24:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "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" ] } } [05:24:43]execute_script... [05:24: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)1964269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "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" ] } } [05:24:43]POST & json_proto [05:24:43]process_json_proto [05:24:43]json parsed OK: [05:24:43]protocol is kg_v1.0 [05:24:43]action value=close_receipt [05:24:43]process_action close_receipt [05:24:43]cmd_close_receipt [05:24:43]MH_GetDate [05:24:43]Write to MH i2c: F0 00 00 7F 0C 7A [05:24:43]Write i2c OK [05:24:43]MH_I2C_Read... [05:24:43]Read from MH i2c: F0 [05:24:43]MH_I2C_Read... [05:24:43]Read from MH i2c: F0 09 00 [05:24:43]MH_I2C_Read... [05:24:43]Read from MH i2c: F0 09 00 7F 0C 00 1E 37 17 67 82 C9 CF 66 D6 [05:24:43]GetLastDocTimeStamp 1729573906 [05:24:43]current date 1729574686 [05:24:43]FM_GetShiftState [05:24:43]SAM_PROTO_GetShiftState [05:24:43]wFMCommunicate request_size=4 [05:24:43]MH_SAM_APDU [05:24:43]CAPDU: 80 13 01 00 [05:24:43]Write to MH i2c: E2 08 00 80 0C 80 13 01 00 00 00 00 00 09 [05:24:43]Write i2c OK [05:24:43]MH_I2C_Read... [05:24:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:24:43]Read from MH i2c: E2 [05:24:43]MH_I2C_Read... [05:24:43]Read from MH i2c: E2 0E 00 [05:24:43]MH_I2C_Read... [05:24:43]Read from MH i2c: E2 0E 00 80 0C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 D0 [05:24:43]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [05:24:43]wFMCommunicate OK [05:24:43]SAM_PROTO_GetShiftState done [05:24:43]FM_GetShiftState done [05:24:43]opened in 1729555538 [05:24:43]opened+sec_in_day 1729641938 [05:24:43]quantity*price = 200043 [05:24:43]sum+1 = 200044 [05:24:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 35 22.10.2024 05:24 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228071 ФПД: 223769827007722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T052446&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228071&fm=223769827007722&tin=02508201610067®Number=0000000000091685&sum=200000 [05:24:44]StoreToDocumentArchive [05:24:44]shift 535 fd 228071 [05:24:44]save to /storage/0535/doc_00228071 [05:24:44]save last doc name /storage/0535/doc_00228071 to /storage/kkm_last_doc_name [05:24:44]save OK [05:24:44]Clear old archive folders... [05:24:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:24:45]tlvbuf is 008926A0 [05:24:45]SAM_PROTO_ClearQueue [05:24:45]wFMCommunicate request_size=4 [05:24:45]MH_SAM_APDU [05:24:45]CAPDU: 80 09 00 00 [05:24:45]Write to MH i2c: E2 08 00 8D 0C 80 09 00 00 00 00 00 00 0B [05:24:45]Write i2c OK [05:24:45]MH_I2C_Read... [05:24:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:24:45]Read from MH i2c: E2 [05:24:45]MH_I2C_Read... [05:24:45]Read from MH i2c: E2 03 00 [05:24:45]MH_I2C_Read... [05:24:45]Read from MH i2c: E2 03 00 8D 0C 00 90 00 0D [05:24:45]RAPDU: 90 00 [05:24:45]wFMCommunicate OK [05:24:45]SAM_PROTO_ClearQueue done [05:24:45]KKMCreateOFDPacket [05:24:45]OFDProtocolAddRootSTLVToBuf [05:24:45]FM_MakeSignedData [05:24:45]FM_MakeSignedData [05:24:45]SAM_PROTO_SignData [05:24:45]wFMCommunicate request_size=4 [05:24:45]MH_SAM_APDU [05:24:45]CAPDU: 80 0D 01 02 [05:24:45]Write to MH i2c: E2 08 00 8E 0C 80 0D 01 02 00 00 00 00 13 [05:24:45]Write i2c OK [05:24:45]MH_I2C_Read... [05:24:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:24:45]Read from MH i2c: E2 [05:24:45]MH_I2C_Read... [05:24:45]Read from MH i2c: E2 03 00 [05:24:45]MH_I2C_Read... [05:24:45]Read from MH i2c: E2 03 00 8E 0C 00 90 00 0E [05:24:45]RAPDU: 90 00 [05:24:45]wFMCommunicate OK [05:24:45]wFMCommunicate request_size=255 [05:24:45]MH_SAM_APDU [05:24: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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 23 00 00 00 F4 03 04 00 1E 37 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E7 7A 03 00 35 04 06 00 CB [05:24:45]Write to MH i2c: E2 02 01 8F 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 23 00 00 00 F4 03 04 00 1E 37 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E7 7A 03 00 35 04 06 00 CB 00 00 90 [05:24:45]Write i2c OK [05:24:45]MH_I2C_Read... [05:24:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:24:45]Read from MH i2c: E2 [05:24:45]MH_I2C_Read... [05:24:45]Read from MH i2c: E2 03 00 [05:24:45]MH_I2C_Read... [05:24:45]Read from MH i2c: E2 03 00 8F 0C 00 90 00 0F [05:24:45]RAPDU: 90 00 [05:24:45]wFMCommunicate OK [05:24:45]wFMCommunicate request_size=10 [05:24:45]MH_SAM_APDU [05:24:45]CAPDU: 80 0D 02 02 05 84 79 0C DC EA [05:24:45]Write to MH i2c: E2 0D 00 90 0C 80 0D 02 02 05 00 84 79 0C DC EA 00 00 EF [05:24:45]Write i2c OK [05:24:45]MH_I2C_Read... [05:24:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:24:45]Read from MH i2c: E2 [05:24:45]MH_I2C_Read... [05:24:45]Read from MH i2c: E2 03 00 [05:24:45]MH_I2C_Read... [05:24:45]Read from MH i2c: E2 03 00 90 0C 00 90 00 10 [05:24:45]RAPDU: 90 00 [05:24:45]wFMCommunicate OK [05:24:45]wFMCommunicate request_size=4 [05:24:45]MH_SAM_APDU [05:24:45]CAPDU: 80 0D 03 02 [05:24:45]Write to MH i2c: E2 08 00 91 0C 80 0D 03 02 00 00 00 00 18 [05:24:45]Write i2c OK [05:24:45]MH_I2C_Read... [05:24:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:24:45]Read from MH i2c: E2 [05:24:45]MH_I2C_Read... [05:24:45]Read from MH i2c: E2 0B 00 [05:24:45]MH_I2C_Read... [05:24:45]Read from MH i2c: E2 0B 00 91 0C 00 54 7B 97 B4 22 AF 2E 99 90 00 CB [05:24:45]RAPDU: 54 7B 97 B4 22 AF 2E 99 90 00 [05:24:45]wFMCommunicate OK [05:24:45]SAM_PROTO_SignData done [05:24:45]FM_MakeSignedData done [05:24:45]CreateOFDProtocolMessage [05:24:45]wFMCommunicate request_size=4 [05:24:45]MH_SAM_APDU [05:24:45]CAPDU: 80 11 00 00 [05:24:45]Write to MH i2c: E2 08 00 92 0C 80 11 00 00 00 00 00 00 18 [05:24:45]Write i2c OK [05:24:45]MH_I2C_Read... [05:24:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:24:45]Read from MH i2c: E2 [05:24:45]MH_I2C_Read... [05:24:45]Read from MH i2c: E2 17 00 [05:24:45]MH_I2C_Read... [05:24:45]Read from MH i2c: E2 17 00 92 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6F [05:24:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [05:24:45]wFMCommunicate OK [05:24:45]CreateOFDProtocolMessage done [05:24:45]OFDSenderStorePacket 228071 [05:24:45]StoreOFDPacket docnum=228071 [05:24:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 27 B2 07 01 BB 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 23 00 00 00 F4 03 04 00 1E 37 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E7 7A 03 00 35 04 06 00 CB 84 79 0C DC EA 54 7B 97 B4 22 AF 2E 99 [05:24:45]CheckFolder [05:24:45]dirname=/storage/ofd_packets [05:24:45]CheckFolder done [05:24:45]ProducePacketName [05:24:45]name=ofd_packets/00228071 [05:24:45]NVStorageSaveData ofd_packets/00228071 [05:24:45]File name is /storage/ofd_packets/00228071 [05:24:45]Write 301 bytes [05:24:45]NVStorageSaveData done [05:24:45]OFDSenderStorePacket done [05:24:45]KKMCreateOFDPacket done [05:24:45]NVStorageSaveData kkm_last_timestamp [05:24:45]File name is /storage/kkm_last_timestamp [05:24:45]Write 4 bytes [05:24:45]NVStorageSaveData done [05:24:45]OFD Sender: Processing packet 228071 [packets to send 38, broken 37] [05:24:45]ProducePacketName [05:24:45]name=ofd_packets/00228071 [05:24:45]OFD Sender: To server: pG, [05:24:45]CommunicateWithHost lk.salyk.kg:30040 [05:24:45]ConnectInit lk.salyk.kg [05:24:45]ExternCall_PrintAddStr [05:24:45]wPrintStart [05:24:45]Write to MH i2c: 01 00 00 93 0C 9F [05:24:45]Write i2c OK [05:24:45]MH_I2C_Read... [05:24:45]Read from MH i2c: 01 [05:24:45]MH_I2C_Read... [05:24:45]Read from MH i2c: 01 07 00 [05:24:45]MH_I2C_Read... [05:24:45]Read from MH i2c: 01 07 00 93 0C 00 00 00 00 00 FF 0F B4 [05:24:45]RasterBufferAndPrint [05:24:45]line Счет N : (1)1964269 [05:24:45]line ИНН: 02508201610067 [05:24:45]line Контрольно-Кассовый Чек [05:24:45]line ПРОДАЖА [05:24:45]line ТРК (МРК, ГНК) : 34 [05:24:45]line Товар: 2710124500 [05:24:45]line Аи-95-К-5 [05:24:45]line 26.960 * 74.20 [05:24:45]line = 2000.43 [05:24:45]line НДС 12% НСП 1% [05:24:45]line > о реализуемом товаре [05:24:45]line ОКРУГЛЕНИЕ: -0.43 [05:24:45]line ИТОГО: 2000.00 [05:24:45]line Внесено: 2000.00 [05:24:45]line СДАЧА: 0.00 [05:24:45]line НСП 1% : 17.70 [05:24:45]line НДС 12% : 212.43 [05:24:45]line Наличными: 2000.00 [05:24:45]line Безнал.: 0.00 [05:24:45]line Место: АЗС № 133 "Партнер Нефть" [05:24:45]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [05:24:45]line СНО: Общий режим [05:24:45]line Чек 35 22.10.2024 05:24 [05:24:45]line Смена: 535 ФФД: 1.0 [05:24:45]line ЗНМ: 0300000091 [05:24:45]line РНМ: 0000000000091685 [05:24:45]line Версия ККМ: 001 [05:24:45]line ФМ: 0000000000871839 [05:24:45]line ФД: 228071 [05:24:45]line ФПД: 223769827007722 [05:24:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T052446&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228071&fm=223769827007722&tin=02508201610067®Number=0000000000091685&sum=200000 [05:24:45]Connected sock=11 [05:24:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 27 B2 07 01 BB 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 23 00 00 00 F4 03 04 00 1E 37 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E7 7A 03 00 35 04 06 00 CB 84 79 0C DC EA 54 7B 97 B4 22 AF 2E 99 [05:24:45]written 0, free lines is 4095 [05:24:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 E7 63 47 00 98 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E7 7A 03 00 F4 03 04 00 17 E2 16 67 B6 04 01 00 00 32 10 A9 41 82 E7 DC BB [05:24:46]CommunicateWithHost err = 0 [05:24:46]CheckOFDResponse [05:24:46]1017 (14) - 77093643461234 [05:24:46]1041 (16) - 0000000000871839 [05:24:46]1040 (4) - 228071 [05:24:46]1012 (4) - 21.10.2024 23:21 [05:24:46]1206 (1) - 0 [05:24:46]OFD Sender: Remove packet 228071 [05:24:46]ProducePacketName [05:24:46]name=ofd_packets/00228071 [05:24:46]NVStorageDeleteData [05:24:46]Write to MH i2c: 01 00 00 BD 0C C9 [05:24:46]Write i2c OK [05:24:46]MH_I2C_Read... [05:24:46]Read from MH i2c: 01 [05:24:46]MH_I2C_Read... [05:24:46]Read from MH i2c: 01 07 00 [05:24:46]MH_I2C_Read... [05:24:46]Read from MH i2c: 01 07 00 BD 0C 00 00 00 00 00 A6 0C 82 [05:24:46]RasterBufferAndPrint [05:24:46]line [05:24:46]line [05:24:46]line [05:24:46]line [05:24:46]line [05:24:46]written 0, free lines is 3242 [05:24:46]MH_Cut [05:24:46]Write to MH i2c: D1 01 00 C4 0C 01 A2 [05:24:46]Write i2c OK [05:24:46]MH_I2C_Read... [05:24:46]Read from MH i2c: D1 [05:24:46]MH_I2C_Read... [05:24:46]Read from MH i2c: D1 01 00 [05:24:46]MH_I2C_Read... [05:24:46]Read from MH i2c: D1 01 00 C4 0C 00 A1 [05:24:46]Write to MH i2c: 01 00 00 C5 0C D1 [05:24:46]Write i2c OK [05:24:46]MH_I2C_Read... [05:24:46]OFD Sender: No OFD packet to send [05:24:47]*** Cut start [05:24:47]*** Partial cut [05:24:47]*** CUTSNS_PIN = 1 [05:24:47]*** CUTSNS_PIN = 0 [05:24:47]*** Brake cut motor [05:24:47]Read from MH i2c: 01 [05:24:47]MH_I2C_Read... [05:24:47]*** Stop cut motor [05:24:47]*** Cut end [05:24:47]Read from MH i2c: 01 07 00 [05:24:47]MH_I2C_Read... [05:24:47]Read from MH i2c: 01 07 00 C5 0C 00 00 00 00 00 FF 0F E6 [05:24:47]process_action close_receipt done [05:24:47]requested_data is exist [05:24:47]produce_requested_data [05:24:47]requested_item fm.sn is exist - process it [05:24:47]wFMCommunicate request_size=4 [05:24:47]MH_SAM_APDU [05:24:47]CAPDU: 80 11 00 00 [05:24:47]Write to MH i2c: E2 08 00 C6 0C 80 11 00 00 00 00 00 00 4C [05:24:47]Write i2c OK [05:24:47]MH_I2C_Read... [05:24:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:24:47]Read from MH i2c: E2 [05:24:47]MH_I2C_Read... [05:24:47]Read from MH i2c: E2 17 00 [05:24:47]MH_I2C_Read... [05:24:47]Read from MH i2c: E2 17 00 C6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A3 [05:24:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [05:24:47]wFMCommunicate OK [05:24:47]requested_item fd.num is exist - process it [05:24:47]SAM_PROTO_GetFieldsCounters [05:24:47]wFMCommunicate request_size=4 [05:24:47]MH_SAM_APDU [05:24:47]CAPDU: 80 13 00 00 [05:24:47]Write to MH i2c: E2 08 00 C7 0C 80 13 00 00 00 00 00 00 4F [05:24:47]Write i2c OK [05:24:47]MH_I2C_Read... [05:24:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:24:48]Read from MH i2c: E2 [05:24:48]MH_I2C_Read... [05:24:48]Read from MH i2c: E2 62 00 [05:24:48]MH_I2C_Read... [05:24:48]Read from MH i2c: E2 62 00 C7 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E7 7A 03 00 0E 04 04 00 17 02 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 5E [05:24:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E7 7A 03 00 0E 04 04 00 17 02 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 [05:24:48]wFMCommunicate OK [05:24:48]SAM_PROTO_GetFieldsCounters done [05:24:48]requested_item shift.num is exist - process it [05:24:48]requested_item shift.opened is exist - process it [05:24:48]req_shift_opened [05:24:48]FM_GetShiftState [05:24:48]SAM_PROTO_GetShiftState [05:24:48]wFMCommunicate request_size=4 [05:24:48]MH_SAM_APDU [05:24:48]CAPDU: 80 13 01 00 [05:24:48]Write to MH i2c: E2 08 00 C8 0C 80 13 01 00 00 00 00 00 51 [05:24:48]Write i2c OK [05:24:48]MH_I2C_Read... [05:24:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:24:48]Read from MH i2c: E2 [05:24:48]MH_I2C_Read... [05:24:48]Read from MH i2c: E2 0E 00 [05:24:48]MH_I2C_Read... [05:24:48]Read from MH i2c: E2 0E 00 C8 0C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 18 [05:24:48]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [05:24:48]wFMCommunicate OK [05:24:48]SAM_PROTO_GetShiftState done [05:24:48]FM_GetShiftState done [05:24:48]req_shift_opened done [05:24:48]requested_item shift.open_date is exist - process it [05:24:48]req_shift_open_date [05:24:48]req_shift_open_date done [05:24:48]produce_requested_data done [05:24:48]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228071,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [05:24:48]process_action_free close_receipt [05:24:48]json_value_free [05:24:48]json_value_free done [05:24:48]process_json_proto returns [05:24:48]Send response to host [05:24:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228071,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [05:24:48]free response buf [05:24:48]execute_script done [05:24:48]execute_script returns [05:24:48]free content buf [05:24:48]Sock 9.Close socket [05:24:48]Sock 9.Thread stoped [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:24]accept exits with 7 [05:25:24]New connection [05:25:24]New thread 3066994020 created [05:25:24]Thread 3067137380 joined [05:25:24]Waiting for new connection... [05:25:24] Sock 7.Parse request [05:25:24]Sock 7.Check first char [05:25:24]Sock 7.First char is OK [05:25:24]request: POST /json_proto HTTP/1.0 [05:25:24]Method: POST [05:25:24]URL: /json_proto [05:25:24]Method is POST - this is cgi request [05:25:24]url: /json_proto [05:25:24]query_string will be loaded in cgi processing [05:25:24]execute_cgi json_proto POST (null) [05:25:24]execute_cgi path=json_proto method=POST [05:25:24]POST find Content-Length [05:25:24]Host: 172.17.44.195:8080 [05:25:24]Content-Length: 680 [05:25:24]Content-Type: application/json [05:25:24] [05:25:24]POST finish read [05:25:24]Found Content-Length = 680 [05:25:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 61.710, "sum" : 4702.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 4702.00, "payments": [ { "type": 0, "sum" : 4702.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:25:24]execute_script... [05:25: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)1964268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 61.710, "sum" : 4702.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 4702.00, "payments": [ { "type": 0, "sum" : 4702.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:25:24]POST & json_proto [05:25:24]process_json_proto [05:25:24]json parsed OK: [05:25:24]protocol is kg_v1.0 [05:25:24]action value=close_receipt [05:25:24]process_action close_receipt [05:25:24]cmd_close_receipt [05:25:24]MH_GetDate [05:25:24]Write to MH i2c: F0 00 00 C9 0C C4 [05:25:24]Write i2c OK [05:25:24]MH_I2C_Read... [05:25:24]Read from MH i2c: F0 [05:25:24]MH_I2C_Read... [05:25:24]Read from MH i2c: F0 09 00 [05:25:24]MH_I2C_Read... [05:25:24]Read from MH i2c: F0 09 00 C9 0C 00 47 37 17 67 82 C9 CF 66 49 [05:25:24]GetLastDocTimeStamp 1729574686 [05:25:24]current date 1729574727 [05:25:24]FM_GetShiftState [05:25:24]SAM_PROTO_GetShiftState [05:25:24]wFMCommunicate request_size=4 [05:25:24]MH_SAM_APDU [05:25:24]CAPDU: 80 13 01 00 [05:25:24]Write to MH i2c: E2 08 00 CA 0C 80 13 01 00 00 00 00 00 53 [05:25:24]Write i2c OK [05:25:24]MH_I2C_Read... [05:25:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:25:24]Read from MH i2c: E2 [05:25:24]MH_I2C_Read... [05:25:24]Read from MH i2c: E2 0E 00 [05:25:24]MH_I2C_Read... [05:25:24]Read from MH i2c: E2 0E 00 CA 0C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 1A [05:25:24]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [05:25:24]wFMCommunicate OK [05:25:24]SAM_PROTO_GetShiftState done [05:25:24]FM_GetShiftState done [05:25:24]opened in 1729555538 [05:25:24]opened+sec_in_day 1729641938 [05:25:24]quantity*price = 470230 [05:25:24]sum+1 = 470231 [05:25:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 4702.00 Внесено: 5000.00 СДАЧА: 298.00 НСП 1% : 41.61 НДС 12% : 499.36 Наличными: 4702.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 36 22.10.2024 05:25 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228072 ФПД: 160037868681239 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T052527&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228072&fm=160037868681239&tin=02508201610067®Number=0000000000091685&sum=470200 [05:25:25]StoreToDocumentArchive [05:25:25]shift 535 fd 228072 [05:25:25]save to /storage/0535/doc_00228072 [05:25:25]save last doc name /storage/0535/doc_00228072 to /storage/kkm_last_doc_name [05:25:25]save OK [05:25:25]Clear old archive folders... [05:25:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:25:25]tlvbuf is 0088A4D0 [05:25:25]SAM_PROTO_ClearQueue [05:25:25]wFMCommunicate request_size=4 [05:25:25]MH_SAM_APDU [05:25:25]CAPDU: 80 09 00 00 [05:25:25]Write to MH i2c: E2 08 00 D7 0C 80 09 00 00 00 00 00 00 55 [05:25:25]Write i2c OK [05:25:25]MH_I2C_Read... [05:25:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:25:25]Read from MH i2c: E2 [05:25:25]MH_I2C_Read... [05:25:25]Read from MH i2c: E2 03 00 [05:25:25]MH_I2C_Read... [05:25:25]Read from MH i2c: E2 03 00 D7 0C 00 90 00 57 [05:25:25]RAPDU: 90 00 [05:25:25]wFMCommunicate OK [05:25:25]SAM_PROTO_ClearQueue done [05:25:25]KKMCreateOFDPacket [05:25:25]OFDProtocolAddRootSTLVToBuf [05:25:25]FM_MakeSignedData [05:25:25]FM_MakeSignedData [05:25:25]SAM_PROTO_SignData [05:25:25]wFMCommunicate request_size=4 [05:25:25]MH_SAM_APDU [05:25:25]CAPDU: 80 0D 01 02 [05:25:25]Write to MH i2c: E2 08 00 D8 0C 80 0D 01 02 00 00 00 00 5D [05:25:25]Write i2c OK [05:25:25]MH_I2C_Read... [05:25:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:25:26]Read from MH i2c: E2 [05:25:26]MH_I2C_Read... [05:25:26]Read from MH i2c: E2 03 00 [05:25:26]MH_I2C_Read... [05:25:26]Read from MH i2c: E2 03 00 D8 0C 00 90 00 58 [05:25:26]RAPDU: 90 00 [05:25:26]wFMCommunicate OK [05:25:26]wFMCommunicate request_size=255 [05:25:26]MH_SAM_APDU [05:25: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 0E F1 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D6 2C 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 2C 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 C3 00 00 00 00 07 04 06 00 B8 2C 07 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 47 37 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E8 7A 03 00 35 04 06 00 91 8D B8 50 [05:25:26]Write to MH i2c: E2 02 01 D9 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0E F1 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D6 2C 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 2C 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 C3 00 00 00 00 07 04 06 00 B8 2C 07 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 47 37 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E8 7A 03 00 35 04 06 00 91 8D B8 50 00 00 69 [05:25:26]Write i2c OK [05:25:26]MH_I2C_Read... [05:25:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:25:26]Read from MH i2c: E2 [05:25:26]MH_I2C_Read... [05:25:26]Read from MH i2c: E2 03 00 [05:25:26]MH_I2C_Read... [05:25:26]Read from MH i2c: E2 03 00 D9 0C 00 90 00 59 [05:25:26]RAPDU: 90 00 [05:25:26]wFMCommunicate OK [05:25:26]wFMCommunicate request_size=7 [05:25:26]MH_SAM_APDU [05:25:26]CAPDU: 80 0D 02 02 02 38 17 [05:25:26]Write to MH i2c: E2 0A 00 DA 0C 80 0D 02 02 02 00 38 17 00 00 B3 [05:25:26]Write i2c OK [05:25:26]MH_I2C_Read... [05:25:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:25:26]Read from MH i2c: E2 [05:25:26]MH_I2C_Read... [05:25:26]Read from MH i2c: E2 03 00 [05:25:26]MH_I2C_Read... [05:25:26]Read from MH i2c: E2 03 00 DA 0C 00 90 00 5A [05:25:26]RAPDU: 90 00 [05:25:26]wFMCommunicate OK [05:25:26]wFMCommunicate request_size=4 [05:25:26]MH_SAM_APDU [05:25:26]CAPDU: 80 0D 03 02 [05:25:26]Write to MH i2c: E2 08 00 DB 0C 80 0D 03 02 00 00 00 00 62 [05:25:26]Write i2c OK [05:25:26]MH_I2C_Read... [05:25:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:25:26]Read from MH i2c: E2 [05:25:26]MH_I2C_Read... [05:25:26]Read from MH i2c: E2 0B 00 [05:25:26]MH_I2C_Read... [05:25:26]Read from MH i2c: E2 0B 00 DB 0C 00 CD A9 64 D6 09 BB DC 40 90 00 F3 [05:25:26]RAPDU: CD A9 64 D6 09 BB DC 40 90 00 [05:25:26]wFMCommunicate OK [05:25:26]SAM_PROTO_SignData done [05:25:26]FM_MakeSignedData done [05:25:26]CreateOFDProtocolMessage [05:25:26]wFMCommunicate request_size=4 [05:25:26]MH_SAM_APDU [05:25:26]CAPDU: 80 11 00 00 [05:25:26]Write to MH i2c: E2 08 00 DC 0C 80 11 00 00 00 00 00 00 62 [05:25:26]Write i2c OK [05:25:26]MH_I2C_Read... [05:25:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:25:26]Read from MH i2c: E2 [05:25:26]MH_I2C_Read... [05:25:26]Read from MH i2c: E2 17 00 [05:25:26]MH_I2C_Read... [05:25:26]Read from MH i2c: E2 17 00 DC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B9 [05:25:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [05:25:26]wFMCommunicate OK [05:25:26]CreateOFDProtocolMessage done [05:25:26]OFDSenderStorePacket 228072 [05:25:26]StoreOFDPacket docnum=228072 [05:25:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 0F A9 04 01 A2 F6 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 0E F1 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D6 2C 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 2C 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 C3 00 00 00 00 07 04 06 00 B8 2C 07 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 47 37 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E8 7A 03 00 35 04 06 00 91 8D B8 50 38 17 CD A9 64 D6 09 BB DC 40 [05:25:26]CheckFolder [05:25:26]dirname=/storage/ofd_packets [05:25:26]CheckFolder done [05:25:26]ProducePacketName [05:25:26]name=ofd_packets/00228072 [05:25:26]NVStorageSaveData ofd_packets/00228072 [05:25:26]File name is /storage/ofd_packets/00228072 [05:25:26]Write 298 bytes [05:25:26]NVStorageSaveData done [05:25:26]OFDSenderStorePacket done [05:25:26]KKMCreateOFDPacket done [05:25:26]NVStorageSaveData kkm_last_timestamp [05:25:26]File name is /storage/kkm_last_timestamp [05:25:26]Write 4 bytes [05:25:26]NVStorageSaveData done [05:25:26]ExternCall_PrintAddStr [05:25:26]wPrintStart [05:25:26]Write to MH i2c: 01 00 00 DD 0C E9 [05:25:26]Write i2c OK [05:25:26]MH_I2C_Read... [05:25:26]Read from MH i2c: 01 [05:25:26]MH_I2C_Read... [05:25:26]Read from MH i2c: 01 07 00 [05:25:26]MH_I2C_Read... [05:25:26]Read from MH i2c: 01 07 00 DD 0C 00 00 00 00 00 FF 0F FE [05:25:26]RasterBufferAndPrint [05:25:26]line Счет N : (1)1964268 [05:25:26]line ИНН: 02508201610067 [05:25:26]line Контрольно-Кассовый Чек [05:25:26]line ПРОДАЖА [05:25:26]line ТРК (МРК, ГНК) : 41 [05:25:26]line Товар: 2710194210 [05:25:26]line ДТ-К-5 [05:25:26]line 61.710 * 76.20 [05:25:26]line = 4702.30 [05:25:26]line НДС 12% НСП 1% [05:25:26]line > о реализуемом товаре [05:25:26]line ОКРУГЛЕНИЕ: -0.30 [05:25:26]line ИТОГО: 4702.00 [05:25:26]line Внесено: 5000.00 [05:25:26]line СДАЧА: 298.00 [05:25:26]line НСП 1% : 41.61 [05:25:26]line НДС 12% : 499.36 [05:25:26]line Наличными: 4702.00 [05:25:26]line Безнал.: 0.00 [05:25:26]line Место: АЗС № 133 "Партнер Нефть" [05:25:26]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [05:25:26]line СНО: Общий режим [05:25:26]line Чек 36 22.10.2024 05:25 [05:25:26]line Смена: 535 ФФД: 1.0 [05:25:26]line ЗНМ: 0300000091 [05:25:26]line РНМ: 0000000000091685 [05:25:26]line Версия ККМ: 001 [05:25:26]line ФМ: 0000000000871839 [05:25:26]line ФД: 228072 [05:25:26]line ФПД: 160037868681239 [05:25:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T052527&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228072&fm=160037868681239&tin=02508201610067®Number=0000000000091685&sum=470200 [05:25:26]OFD Sender: Processing packet 228072 [packets to send 38, broken 37] [05:25:26]ProducePacketName [05:25:26]name=ofd_packets/00228072 [05:25:26]OFD Sender: To server: pG, [05:25:26]CommunicateWithHost lk.salyk.kg:30040 [05:25:26]ConnectInit lk.salyk.kg [05:25:26]written 0, free lines is 4095 [05:25:26]Connected sock=10 [05:25:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 0F A9 04 01 A2 F6 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 0E F1 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D6 2C 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 2C 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 C3 00 00 00 00 07 04 06 00 B8 2C 07 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 47 37 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E8 7A 03 00 35 04 06 00 91 8D B8 50 38 17 CD A9 64 D6 09 BB DC 40 [05:25:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 3B B5 47 00 9C 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E8 7A 03 00 F4 03 04 00 40 E2 16 67 B6 04 01 00 00 D3 C1 FB 5F A5 5C D5 24 [05:25:27]CommunicateWithHost err = 0 [05:25:27]CheckOFDResponse [05:25:27]1017 (14) - 77093643461234 [05:25:27]1041 (16) - 0000000000871839 [05:25:27]1040 (4) - 228072 [05:25:27]1012 (4) - 21.10.2024 23:22 [05:25:27]1206 (1) - 0 [05:25:27]OFD Sender: Remove packet 228072 [05:25:27]ProducePacketName [05:25:27]name=ofd_packets/00228072 [05:25:27]NVStorageDeleteData [05:25:27]Write to MH i2c: 01 00 00 07 0D 14 [05:25:27]Write i2c OK [05:25:27]MH_I2C_Read... [05:25:27]Read from MH i2c: 01 [05:25:27]MH_I2C_Read... [05:25:27]Read from MH i2c: 01 07 00 [05:25:27]MH_I2C_Read... [05:25:27]Read from MH i2c: 01 07 00 07 0D 00 00 00 00 00 AC 0C D3 [05:25:27]RasterBufferAndPrint [05:25:27]line [05:25:27]line [05:25:27]line [05:25:27]line [05:25:27]line [05:25:27]written 0, free lines is 3248 [05:25:27]MH_Cut [05:25:27]Write to MH i2c: D1 01 00 0E 0D 01 ED [05:25:27]Write i2c OK [05:25:27]MH_I2C_Read... [05:25:27]Read from MH i2c: D1 [05:25:27]MH_I2C_Read... [05:25:27]Read from MH i2c: D1 01 00 [05:25:27]MH_I2C_Read... [05:25:27]Read from MH i2c: D1 01 00 0E 0D 00 EC [05:25:27]Write to MH i2c: 01 00 00 0F 0D 1C [05:25:27]Write i2c OK [05:25:27]MH_I2C_Read... [05:25:27]OFD Sender: No OFD packet to send [05:25:28]*** Cut start [05:25:28]*** Partial cut [05:25:28]*** CUTSNS_PIN = 1 [05:25:28]*** CUTSNS_PIN = 0 [05:25:28]*** Brake cut motor [05:25:28]Read from MH i2c: 01 [05:25:28]MH_I2C_Read... [05:25:28]*** Stop cut motor [05:25:28]*** Cut end [05:25:28]Read from MH i2c: 01 07 00 [05:25:28]MH_I2C_Read... [05:25:28]Read from MH i2c: 01 07 00 0F 0D 00 00 00 00 00 FF 0F 31 [05:25:28]process_action close_receipt done [05:25:28]requested_data is exist [05:25:28]produce_requested_data [05:25:28]requested_item fm.sn is exist - process it [05:25:28]wFMCommunicate request_size=4 [05:25:28]MH_SAM_APDU [05:25:28]CAPDU: 80 11 00 00 [05:25:28]Write to MH i2c: E2 08 00 10 0D 80 11 00 00 00 00 00 00 97 [05:25:28]Write i2c OK [05:25:28]MH_I2C_Read... [05:25:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:25:28]Read from MH i2c: E2 [05:25:28]MH_I2C_Read... [05:25:28]Read from MH i2c: E2 17 00 [05:25:28]MH_I2C_Read... [05:25:28]Read from MH i2c: E2 17 00 10 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 EE [05:25:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [05:25:28]wFMCommunicate OK [05:25:28]requested_item fd.num is exist - process it [05:25:28]SAM_PROTO_GetFieldsCounters [05:25:28]wFMCommunicate request_size=4 [05:25:28]MH_SAM_APDU [05:25:28]CAPDU: 80 13 00 00 [05:25:28]Write to MH i2c: E2 08 00 11 0D 80 13 00 00 00 00 00 00 9A [05:25:28]Write i2c OK [05:25:28]MH_I2C_Read... [05:25:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:25:29]Read from MH i2c: E2 [05:25:29]MH_I2C_Read... [05:25:29]Read from MH i2c: E2 62 00 [05:25:29]MH_I2C_Read... [05:25:29]Read from MH i2c: E2 62 00 11 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E8 7A 03 00 0E 04 04 00 17 02 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 AD [05:25:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E8 7A 03 00 0E 04 04 00 17 02 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 [05:25:29]wFMCommunicate OK [05:25:29]SAM_PROTO_GetFieldsCounters done [05:25:29]requested_item shift.num is exist - process it [05:25:29]requested_item shift.opened is exist - process it [05:25:29]req_shift_opened [05:25:29]FM_GetShiftState [05:25:29]SAM_PROTO_GetShiftState [05:25:29]wFMCommunicate request_size=4 [05:25:29]MH_SAM_APDU [05:25:29]CAPDU: 80 13 01 00 [05:25:29]Write to MH i2c: E2 08 00 12 0D 80 13 01 00 00 00 00 00 9C [05:25:29]Write i2c OK [05:25:29]MH_I2C_Read... [05:25:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:25:29]Read from MH i2c: E2 [05:25:29]MH_I2C_Read... [05:25:29]Read from MH i2c: E2 0E 00 [05:25:29]MH_I2C_Read... [05:25:29]Read from MH i2c: E2 0E 00 12 0D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 63 [05:25:29]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [05:25:29]wFMCommunicate OK [05:25:29]SAM_PROTO_GetShiftState done [05:25:29]FM_GetShiftState done [05:25:29]req_shift_opened done [05:25:29]requested_item shift.open_date is exist - process it [05:25:29]req_shift_open_date [05:25:29]req_shift_open_date done [05:25:29]produce_requested_data done [05:25:29]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228072,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [05:25:29]process_action_free close_receipt [05:25:29]json_value_free [05:25:29]json_value_free done [05:25:29]process_json_proto returns [05:25:29]Send response to host [05:25:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228072,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [05:25:29]free response buf [05:25:29]execute_script done [05:25:29]execute_script returns [05:25:29]free content buf [05:25:29]Sock 7.Close socket [05:25:29]Sock 7.Thread stoped [05:25:32]OFD Sender: No OFD packet to send [05:25:37]OFD Sender: No OFD packet to send [05:25:42]OFD Sender: No OFD packet to send [05:25:47]OFD Sender: No OFD packet to send [05:25:52]OFD Sender: No OFD packet to send [05:25:57]OFD Sender: No OFD packet to send [05:26:02]OFD Sender: No OFD packet to send [05:26:07]OFD Sender: No OFD packet to send [05:26:10]recv_with_timeout no data received [05:26:12]OFD Sender: No OFD packet to send [05:26:17]OFD Sender: No OFD packet to send [05:26:22]OFD Sender: No OFD packet to send [05:26:25]recv_with_timeout no data received [05:26:27]OFD Sender: No OFD packet to send [05:26:32]OFD Sender: No OFD packet to send [05:26:37]OFD Sender: No OFD packet to send [05:26:42]OFD Sender: No OFD packet to send [05:26:47]OFD Sender: No OFD packet to send [05:26:52]OFD Sender: No OFD packet to send [05:26:57]OFD Sender: No OFD packet to send [05:27:02]OFD Sender: No OFD packet to send [05:27:07]OFD Sender: No OFD packet to send [05:27:12]OFD Sender: No OFD packet to send [05:27:17]OFD Sender: No OFD packet to send [05:27:22]OFD Sender: No OFD packet to send [05:27:27]OFD Sender: No OFD packet to send [05:27:32]OFD Sender: No OFD packet to send [05:27:37]OFD Sender: No OFD packet to send [05:27:42]OFD Sender: No OFD packet to send [05:27:47]OFD Sender: No OFD packet to send [05:27:52]OFD Sender: No OFD packet to send [05:27:57]OFD Sender: No OFD packet to send [05:28:02]OFD Sender: No OFD packet to send [05:28:07]OFD Sender: No OFD packet to send [05:28:12]OFD Sender: No OFD packet to send [05:28:17]OFD Sender: No OFD packet to send [05:28:22]OFD Sender: No OFD packet to send [05:28:27]OFD Sender: No OFD packet to send [05:28:32]OFD Sender: No OFD packet to send [05:28:37]OFD Sender: No OFD packet to send [05:28:42]OFD Sender: No OFD packet to send [05:28:47]OFD Sender: No OFD packet to send [05:28:52]OFD Sender: No OFD packet to send [05:28:57]OFD Sender: No OFD packet to send [05:29:02]OFD Sender: No OFD packet to send [05:29:07]OFD Sender: No OFD packet to send [05:29:12]OFD Sender: No OFD packet to send [05:29:17]OFD Sender: No OFD packet to send [05:29:22]OFD Sender: No OFD packet to send [05:29:27]OFD Sender: No OFD packet to send [05:29:32]OFD Sender: No OFD packet to send [05:29:37]OFD Sender: No OFD packet to send [05:29:42]OFD Sender: No OFD packet to send [05:29:47]OFD Sender: No OFD packet to send [05:29:52]OFD Sender: No OFD packet to send [05:29:57]OFD Sender: No OFD packet to send [05:30:02]OFD Sender: No OFD packet to send [05:30:07]OFD Sender: No OFD packet to send [05:30:12]OFD Sender: No OFD packet to send [05:30:17]OFD Sender: No OFD packet to send [05:30:22]OFD Sender: No OFD packet to send [05:30:27]OFD Sender: No OFD packet to send [05:30:32]OFD Sender: No OFD packet to send [05:30:37]OFD Sender: No OFD packet to send [05:30:42]OFD Sender: No OFD packet to send [05:30:47]OFD Sender: No OFD packet to send [05:30:52]OFD Sender: No OFD packet to send [05:30:57]OFD Sender: No OFD packet to send [05:31:02]OFD Sender: No OFD packet to send [05:31:07]OFD Sender: No OFD packet to send [05:31:12]OFD Sender: No OFD packet to send [05:31:17]OFD Sender: No OFD packet to send [05:31:22]OFD Sender: No OFD packet to send [05:31:27]OFD Sender: No OFD packet to send [05:31:32]OFD Sender: No OFD packet to send [05:31:37]OFD Sender: No OFD packet to send [05:31:42]OFD Sender: No OFD packet to send [05:31:47]OFD Sender: No OFD packet to send [05:31:52]OFD Sender: No OFD packet to send [05:31:57]OFD Sender: No OFD packet to send [05:32:02]OFD Sender: No OFD packet to send [05:32:07]OFD Sender: No OFD packet to send [05:32:12]OFD Sender: No OFD packet to send [05:32:17]OFD Sender: No OFD packet to send [05:32:22]OFD Sender: No OFD packet to send [05:32:27]OFD Sender: No OFD packet to send [05:32:32]OFD Sender: No OFD packet to send [05:32:37]OFD Sender: No OFD packet to send [05:32:42]OFD Sender: No OFD packet to send [05:32:47]OFD Sender: No OFD packet to send [05:32:52]OFD Sender: No OFD packet to send [05:32:57]OFD Sender: No OFD packet to send [05:33:02]OFD Sender: No OFD packet to send [05:33:07]OFD Sender: No OFD packet to send [05:33:12]OFD Sender: No OFD packet to send [05:33:18]OFD Sender: No OFD packet to send [05:33:23]OFD Sender: No OFD packet to send [05:33:28]OFD Sender: No OFD packet to send [05:33:33]OFD Sender: No OFD packet to send [05:33:38]OFD Sender: No OFD packet to send [05:33:43]OFD Sender: No OFD packet to send [05:33:48]OFD Sender: No OFD packet to send [05:33:53]OFD Sender: No OFD packet to send [05:33:58]OFD Sender: No OFD packet to send [05:34:03]OFD Sender: No OFD packet to send [05:34:08]OFD Sender: No OFD packet to send [05:34:13]OFD Sender: No OFD packet to send [05:34:18]OFD Sender: No OFD packet to send [05:34:23]OFD Sender: No OFD packet to send [05:34:28]OFD Sender: No OFD packet to send [05:34:33]OFD Sender: No OFD packet to send [05:34:38]OFD Sender: No OFD packet to send [05:34:43]OFD Sender: No OFD packet to send [05:34:48]OFD Sender: No OFD packet to send [05:34:49]recv_with_timeout no data received [05:34:53]OFD Sender: No OFD packet to send [05:34:58]OFD Sender: No OFD packet to send [05:35:03]OFD Sender: No OFD packet to send [05:35:07]recv_with_timeout no data received [05:35:08]OFD Sender: No OFD packet to send [05:35:13]OFD Sender: No OFD packet to send [05:35:18]OFD Sender: No OFD packet to send [05:35:23]OFD Sender: No OFD packet to send [05:35:28]OFD Sender: No OFD packet to send [05:35:33]OFD Sender: No OFD packet to send [05:35:38]OFD Sender: No OFD packet to send [05:35:43]OFD Sender: No OFD packet to send [05:35:48]OFD Sender: No OFD packet to send [05:35:53]OFD Sender: No OFD packet to send [05:35:58]OFD Sender: No OFD packet to send [05:36:03]OFD Sender: No OFD packet to send [05:36:08]OFD Sender: No OFD packet to send [05:36:13]OFD Sender: No OFD packet to send [05:36:18]OFD Sender: No OFD packet to send [05:36:23]OFD Sender: No OFD packet to send [05:36:28]OFD Sender: No OFD packet to send [05:36:33]OFD Sender: No OFD packet to send [05:36:38]OFD Sender: No OFD packet to send [05:36:43]OFD Sender: No OFD packet to send [05:36:48]OFD Sender: No OFD packet to send [05:36:53]OFD Sender: No OFD packet to send [05:36:58]OFD Sender: No OFD packet to send [05:37:03]OFD Sender: No OFD packet to send [05:37:08]OFD Sender: No OFD packet to send [05:37:13]OFD Sender: No OFD packet to send [05:37:18]OFD Sender: No OFD packet to send [05:37:23]OFD Sender: No OFD packet to send [05:37:28]OFD Sender: No OFD packet to send [05:37:33]OFD Sender: No OFD packet to send [05:37:38]OFD Sender: No OFD packet to send [05:37:43]OFD Sender: No OFD packet to send [05:37:48]OFD Sender: No OFD packet to send [05:37:53]OFD Sender: No OFD packet to send [05:37:58]OFD Sender: No OFD packet to send [05:38:03]OFD Sender: No OFD packet to send [05:38:08]OFD Sender: No OFD packet to send [05:38:13]OFD Sender: No OFD packet to send [05:38:18]OFD Sender: No OFD packet to send [05:38:23]OFD Sender: No OFD packet to send [05:38:28]OFD Sender: No OFD packet to send [05:38:33]OFD Sender: No OFD packet to send [05:38:38]OFD Sender: No OFD packet to send [05:38:43]OFD Sender: No OFD packet to send [05:38:48]OFD Sender: No OFD packet to send [05:38:53]OFD Sender: No OFD packet to send [05:38:58]OFD Sender: No OFD packet to send [05:39:03]OFD Sender: No OFD packet to send [05:39:08]OFD Sender: No OFD packet to send [05:39:13]OFD Sender: No OFD packet to send [05:39:18]OFD Sender: No OFD packet to send [05:39:23]OFD Sender: No OFD packet to send [05:39:28]OFD Sender: No OFD packet to send [05:39:33]OFD Sender: No OFD packet to send [05:39:38]OFD Sender: No OFD packet to send [05:39:43]OFD Sender: No OFD packet to send [05:39:48]OFD Sender: No OFD packet to send [05:39:53]OFD Sender: No OFD packet to send [05:39:58]OFD Sender: No OFD packet to send [05:40:03]OFD Sender: No OFD packet to send [05:40:08]OFD Sender: No OFD packet to send [05:40:13]OFD Sender: No OFD packet to send [05:40:18]OFD Sender: No OFD packet to send [05:40:23]OFD Sender: No OFD packet to send [05:40:28]OFD Sender: No OFD packet to send [05:40:33]OFD Sender: No OFD packet to send [05:40:38]OFD Sender: No OFD packet to send [05:40:43]OFD Sender: No OFD packet to send [05:40:48]OFD Sender: No OFD packet to send [05:40:53]OFD Sender: No OFD packet to send [05:40:58]OFD Sender: No OFD packet to send [05:41:03]OFD Sender: No OFD packet to send [05:41:08]OFD Sender: No OFD packet to send [05:41:13]OFD Sender: No OFD packet to send [05:41:18]OFD Sender: No OFD packet to send [05:41:23]OFD Sender: No OFD packet to send [05:41:28]OFD Sender: No OFD packet to send [05:41:33]OFD Sender: No OFD packet to send [05:41:38]OFD Sender: No OFD packet to send [05:41:43]OFD Sender: No OFD packet to send [05:41:48]OFD Sender: No OFD packet to send [05:41:53]OFD Sender: No OFD packet to send [05:41:58]OFD Sender: No OFD packet to send [05:42:03]OFD Sender: No OFD packet to send [05:42:08]OFD Sender: No OFD packet to send [05:42:13]OFD Sender: No OFD packet to send [05:42:18]OFD Sender: No OFD packet to send [05:42:23]OFD Sender: No OFD packet to send [05:42:28]OFD Sender: No OFD packet to send [05:42:33]OFD Sender: No OFD packet to send [05:42:38]OFD Sender: No OFD packet to send [05:42:43]OFD Sender: No OFD packet to send [05:42:48]OFD Sender: No OFD packet to send [05:42:53]OFD Sender: No OFD packet to send [05:42:58]OFD Sender: No OFD packet to send [05:43:03]OFD Sender: No OFD packet to send [05:43:08]OFD Sender: No OFD packet to send [05:43:12]accept exits with 9 [05:43:12]New connection [05:43:12]New thread 3067137380 created [05:43:12]Thread 3066994020 joined [05:43:12]Waiting for new connection... [05:43:12] Sock 9.Parse request [05:43:12]Sock 9.Check first char [05:43:12]Sock 9.First char is OK [05:43:12]request: POST /json_proto HTTP/1.0 [05:43:12]Method: POST [05:43:12]URL: /json_proto [05:43:12]Method is POST - this is cgi request [05:43:12]url: /json_proto [05:43:12]query_string will be loaded in cgi processing [05:43:12]execute_cgi json_proto POST (null) [05:43:12]execute_cgi path=json_proto method=POST [05:43:12]POST find Content-Length [05:43:12]Host: 172.17.44.195:8080 [05:43:12]Content-Length: 678 [05:43:12]Content-Type: application/json [05:43:12] [05:43:12]POST finish read [05:43:12]Found Content-Length = 678 [05:43:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:43:12]execute_script... [05:43: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)1964270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:43:12]POST & json_proto [05:43:12]process_json_proto [05:43:12]json parsed OK: [05:43:12]protocol is kg_v1.0 [05:43:12]action value=close_receipt [05:43:12]process_action close_receipt [05:43:12]cmd_close_receipt [05:43:12]MH_GetDate [05:43:12]Write to MH i2c: F0 00 00 13 0D 0F [05:43:12]Write i2c OK [05:43:12]MH_I2C_Read... [05:43:12]Read from MH i2c: F0 [05:43:12]MH_I2C_Read... [05:43:12]Read from MH i2c: F0 09 00 [05:43:12]MH_I2C_Read... [05:43:12]Read from MH i2c: F0 09 00 13 0D 00 72 3B 17 67 82 C9 CF 66 C3 [05:43:12]GetLastDocTimeStamp 1729574727 [05:43:12]current date 1729575794 [05:43:12]FM_GetShiftState [05:43:12]SAM_PROTO_GetShiftState [05:43:12]wFMCommunicate request_size=4 [05:43:12]MH_SAM_APDU [05:43:12]CAPDU: 80 13 01 00 [05:43:12]Write to MH i2c: E2 08 00 14 0D 80 13 01 00 00 00 00 00 9E [05:43:12]Write i2c OK [05:43:12]MH_I2C_Read... [05:43:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:43:12]Read from MH i2c: E2 [05:43:12]MH_I2C_Read... [05:43:12]Read from MH i2c: E2 0E 00 [05:43:12]MH_I2C_Read... [05:43:12]Read from MH i2c: E2 0E 00 14 0D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 65 [05:43:12]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [05:43:12]wFMCommunicate OK [05:43:12]SAM_PROTO_GetShiftState done [05:43:12]FM_GetShiftState done [05:43:12]opened in 1729555538 [05:43:12]opened+sec_in_day 1729641938 [05:43:12]quantity*price = 50041 [05:43:12]sum+1 = 50042 [05:43:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 37 22.10.2024 05:43 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228073 ФПД: 242335546113836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T054314&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228073&fm=242335546113836&tin=02508201610067®Number=0000000000091685&sum=50000 [05:43:13]StoreToDocumentArchive [05:43:13]shift 535 fd 228073 [05:43:13]save to /storage/0535/doc_00228073 [05:43:13]save last doc name /storage/0535/doc_00228073 to /storage/kkm_last_doc_name [05:43:13]save OK [05:43:13]Clear old archive folders... [05:43:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:43:13]tlvbuf is 00A5E060 [05:43:13]SAM_PROTO_ClearQueue [05:43:13]wFMCommunicate request_size=4 [05:43:13]MH_SAM_APDU [05:43:13]CAPDU: 80 09 00 00 [05:43:13]Write to MH i2c: E2 08 00 21 0D 80 09 00 00 00 00 00 00 A0 [05:43:13]Write i2c OK [05:43:13]MH_I2C_Read... [05:43:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:43:13]Read from MH i2c: E2 [05:43:13]MH_I2C_Read... [05:43:13]Read from MH i2c: E2 03 00 [05:43:13]MH_I2C_Read... [05:43:13]Read from MH i2c: E2 03 00 21 0D 00 90 00 A2 [05:43:13]RAPDU: 90 00 [05:43:13]wFMCommunicate OK [05:43:13]SAM_PROTO_ClearQueue done [05:43:13]KKMCreateOFDPacket [05:43:13]OFDProtocolAddRootSTLVToBuf [05:43:13]FM_MakeSignedData [05:43:13]FM_MakeSignedData [05:43:13]SAM_PROTO_SignData [05:43:13]wFMCommunicate request_size=4 [05:43:13]MH_SAM_APDU [05:43:13]CAPDU: 80 0D 01 02 [05:43:13]Write to MH i2c: E2 08 00 22 0D 80 0D 01 02 00 00 00 00 A8 [05:43:13]Write i2c OK [05:43:13]MH_I2C_Read... [05:43:13]OFD Sender: No OFD packet to send [05:43:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:43:13]Read from MH i2c: E2 [05:43:13]MH_I2C_Read... [05:43:13]Read from MH i2c: E2 03 00 [05:43:13]MH_I2C_Read... [05:43:13]Read from MH i2c: E2 03 00 22 0D 00 90 00 A3 [05:43:13]RAPDU: 90 00 [05:43:13]wFMCommunicate OK [05:43:13]wFMCommunicate request_size=255 [05:43:13]MH_SAM_APDU [05:43:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 72 3B 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E9 7A 03 00 35 04 06 00 DC [05:43:13]Write to MH i2c: E2 02 01 23 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 72 3B 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E9 7A 03 00 35 04 06 00 DC 00 00 EA [05:43:13]Write i2c OK [05:43:13]MH_I2C_Read... [05:43:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:43:13]Read from MH i2c: E2 [05:43:13]MH_I2C_Read... [05:43:13]Read from MH i2c: E2 03 00 [05:43:13]MH_I2C_Read... [05:43:13]Read from MH i2c: E2 03 00 23 0D 00 90 00 A4 [05:43:13]RAPDU: 90 00 [05:43:13]wFMCommunicate OK [05:43:13]wFMCommunicate request_size=10 [05:43:13]MH_SAM_APDU [05:43:13]CAPDU: 80 0D 02 02 05 67 24 24 7F 2C [05:43:13]Write to MH i2c: E2 0D 00 24 0D 80 0D 02 02 05 00 67 24 24 7F 2C 00 00 0F [05:43:13]Write i2c OK [05:43:13]MH_I2C_Read... [05:43:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:43:13]Read from MH i2c: E2 [05:43:13]MH_I2C_Read... [05:43:13]Read from MH i2c: E2 03 00 [05:43:13]MH_I2C_Read... [05:43:13]Read from MH i2c: E2 03 00 24 0D 00 90 00 A5 [05:43:13]RAPDU: 90 00 [05:43:13]wFMCommunicate OK [05:43:13]wFMCommunicate request_size=4 [05:43:13]MH_SAM_APDU [05:43:13]CAPDU: 80 0D 03 02 [05:43:13]Write to MH i2c: E2 08 00 25 0D 80 0D 03 02 00 00 00 00 AD [05:43:13]Write i2c OK [05:43:13]MH_I2C_Read... [05:43:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:43:13]Read from MH i2c: E2 [05:43:13]MH_I2C_Read... [05:43:13]Read from MH i2c: E2 0B 00 [05:43:13]MH_I2C_Read... [05:43:13]Read from MH i2c: E2 0B 00 25 0D 00 85 D9 16 8F DF AA 62 38 90 00 D4 [05:43:13]RAPDU: 85 D9 16 8F DF AA 62 38 90 00 [05:43:13]wFMCommunicate OK [05:43:13]SAM_PROTO_SignData done [05:43:13]FM_MakeSignedData done [05:43:13]CreateOFDProtocolMessage [05:43:13]wFMCommunicate request_size=4 [05:43:13]MH_SAM_APDU [05:43:13]CAPDU: 80 11 00 00 [05:43:13]Write to MH i2c: E2 08 00 26 0D 80 11 00 00 00 00 00 00 AD [05:43:13]Write i2c OK [05:43:13]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 26 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 04 [05:43:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [05:43:14]wFMCommunicate OK [05:43:14]CreateOFDProtocolMessage done [05:43:14]OFDSenderStorePacket 228073 [05:43:14]StoreOFDPacket docnum=228073 [05:43:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 62 4F 07 01 F6 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 72 3B 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E9 7A 03 00 35 04 06 00 DC 67 24 24 7F 2C 85 D9 16 8F DF AA 62 38 [05:43:14]CheckFolder [05:43:14]dirname=/storage/ofd_packets [05:43:14]CheckFolder done [05:43:14]ProducePacketName [05:43:14]name=ofd_packets/00228073 [05:43:14]NVStorageSaveData ofd_packets/00228073 [05:43:14]File name is /storage/ofd_packets/00228073 [05:43:14]Write 301 bytes [05:43:14]NVStorageSaveData done [05:43:14]OFDSenderStorePacket done [05:43:14]KKMCreateOFDPacket done [05:43:14]NVStorageSaveData kkm_last_timestamp [05:43:14]File name is /storage/kkm_last_timestamp [05:43:14]Write 4 bytes [05:43:14]NVStorageSaveData done [05:43:14]ExternCall_PrintAddStr [05:43:14]wPrintStart [05:43:14]Write to MH i2c: 01 00 00 27 0D 34 [05:43:14]Write i2c OK [05:43:14]MH_I2C_Read... [05:43:14]Read from MH i2c: 01 [05:43:14]MH_I2C_Read... [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 27 0D 00 00 00 00 00 FF 0F 49 [05:43:14]RasterBufferAndPrint [05:43:14]line Счет N : (1)1964270 [05:43:14]line ИНН: 02508201610067 [05:43:14]line Контрольно-Кассовый Чек [05:43:14]line ПРОДАЖА [05:43:14]line ТРК (МРК, ГНК) : 43 [05:43:14]line Товар: 2710124130 [05:43:14]line Аи-92-К-5 [05:43:14]line 7.480 * 66.90 [05:43:14]line = 500.41 [05:43:14]line НДС 12% НСП 1% [05:43:14]line > о реализуемом товаре [05:43:14]line ОКРУГЛЕНИЕ: -0.41 [05:43:14]line ИТОГО: 500.00 [05:43:14]line Внесено: 500.00 [05:43:14]line СДАЧА: 0.00 [05:43:14]line НСП 1% : 4.43 [05:43:14]line НДС 12% : 53.14 [05:43:14]line Наличными: 500.00 [05:43:14]line Безнал.: 0.00 [05:43:14]line Место: АЗС № 133 "Партнер Нефть" [05:43:14]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [05:43:14]line СНО: Общий режим [05:43:14]line Чек 37 22.10.2024 05:43 [05:43:14]line Смена: 535 ФФД: 1.0 [05:43:14]line ЗНМ: 0300000091 [05:43:14]line РНМ: 0000000000091685 [05:43:14]line Версия ККМ: 001 [05:43:14]line ФМ: 0000000000871839 [05:43:14]line ФД: 228073 [05:43:14]line ФПД: 242335546113836 [05:43:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T054314&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228073&fm=242335546113836&tin=02508201610067®Number=0000000000091685&sum=50000 [05:43:14]OFD Sender: Processing packet 228073 [packets to send 38, broken 37] [05:43:14]ProducePacketName [05:43:14]name=ofd_packets/00228073 [05:43:14]OFD Sender: To server: pG, [05:43:14]CommunicateWithHost lk.salyk.kg:30040 [05:43:14]ConnectInit lk.salyk.kg [05:43:14]written 0, free lines is 4095 [05:43:14]Connected sock=10 [05:43:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 62 4F 07 01 F6 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 72 3B 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E9 7A 03 00 35 04 06 00 DC 67 24 24 7F 2C 85 D9 16 8F DF AA 62 38 [05:43:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 16 A1 47 00 AC 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 38 37 31 38 33 39 10 04 04 00 E9 7A 03 00 F4 03 04 00 6B E6 16 67 B6 04 01 00 00 0B 21 36 7B 43 C1 F3 8A [05:43:14]CommunicateWithHost err = 0 [05:43:14]CheckOFDResponse [05:43:14]1017 (14) - 77093643461234 [05:43:14]1041 (16) - 0000000000871839 [05:43:14]1040 (4) - 228073 [05:43:14]1012 (4) - 21.10.2024 23:40 [05:43:14]1206 (1) - 0 [05:43:14]OFD Sender: Remove packet 228073 [05:43:14]ProducePacketName [05:43:14]name=ofd_packets/00228073 [05:43:14]NVStorageDeleteData [05:43:14]Write to MH i2c: 01 00 00 51 0D 5E [05:43:14]Write i2c OK [05:43:14]MH_I2C_Read... [05:43:14]Read from MH i2c: 01 [05:43:14]MH_I2C_Read... [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 51 0D 00 00 00 00 00 A1 0C 12 [05:43:14]RasterBufferAndPrint [05:43:14]line [05:43:14]line [05:43:14]line [05:43:14]line [05:43:14]line [05:43:14]written 0, free lines is 3237 [05:43:14]MH_Cut [05:43:14]Write to MH i2c: D1 01 00 58 0D 01 37 [05:43:14]Write i2c OK [05:43:14]MH_I2C_Read... [05:43:14]Read from MH i2c: D1 [05:43:14]MH_I2C_Read... [05:43:14]Read from MH i2c: D1 01 00 [05:43:14]MH_I2C_Read... [05:43:14]Read from MH i2c: D1 01 00 58 0D 00 36 [05:43:14]Write to MH i2c: 01 00 00 59 0D 66 [05:43:14]Write i2c OK [05:43:14]MH_I2C_Read... [05:43:15]OFD Sender: No OFD packet to send [05:43:15]*** Cut start [05:43:15]*** Partial cut [05:43:15]*** CUTSNS_PIN = 1 [05:43:15]*** CUTSNS_PIN = 0 [05:43:16]*** Brake cut motor [05:43:16]Read from MH i2c: 01 [05:43:16]MH_I2C_Read... [05:43:16]*** Stop cut motor [05:43:16]*** Cut end [05:43:16]Read from MH i2c: 01 07 00 [05:43:16]MH_I2C_Read... [05:43:16]Read from MH i2c: 01 07 00 59 0D 00 00 00 00 00 FF 0F 7B [05:43:16]process_action close_receipt done [05:43:16]requested_data is exist [05:43:16]produce_requested_data [05:43:16]requested_item fm.sn is exist - process it [05:43:16]wFMCommunicate request_size=4 [05:43:16]MH_SAM_APDU [05:43:16]CAPDU: 80 11 00 00 [05:43:16]Write to MH i2c: E2 08 00 5A 0D 80 11 00 00 00 00 00 00 E1 [05:43:16]Write i2c OK [05:43:16]MH_I2C_Read... [05:43:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:43:16]Read from MH i2c: E2 [05:43:16]MH_I2C_Read... [05:43:16]Read from MH i2c: E2 17 00 [05:43:16]MH_I2C_Read... [05:43:16]Read from MH i2c: E2 17 00 5A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 38 [05:43:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [05:43:16]wFMCommunicate OK [05:43:16]requested_item fd.num is exist - process it [05:43:16]SAM_PROTO_GetFieldsCounters [05:43:16]wFMCommunicate request_size=4 [05:43:16]MH_SAM_APDU [05:43:16]CAPDU: 80 13 00 00 [05:43:16]Write to MH i2c: E2 08 00 5B 0D 80 13 00 00 00 00 00 00 E4 [05:43:16]Write i2c OK [05:43:16]MH_I2C_Read... [05:43:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:43:16]Read from MH i2c: E2 [05:43:16]MH_I2C_Read... [05:43:16]Read from MH i2c: E2 62 00 [05:43:16]MH_I2C_Read... [05:43:16]Read from MH i2c: E2 62 00 5B 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E9 7A 03 00 0E 04 04 00 17 02 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 FB [05:43:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E9 7A 03 00 0E 04 04 00 17 02 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 [05:43:16]wFMCommunicate OK [05:43:16]SAM_PROTO_GetFieldsCounters done [05:43:16]requested_item shift.num is exist - process it [05:43:16]requested_item shift.opened is exist - process it [05:43:16]req_shift_opened [05:43:16]FM_GetShiftState [05:43:16]SAM_PROTO_GetShiftState [05:43:16]wFMCommunicate request_size=4 [05:43:16]MH_SAM_APDU [05:43:16]CAPDU: 80 13 01 00 [05:43:16]Write to MH i2c: E2 08 00 5C 0D 80 13 01 00 00 00 00 00 E6 [05:43:16]Write i2c OK [05:43:16]MH_I2C_Read... [05:43:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:43:16]Read from MH i2c: E2 [05:43:16]MH_I2C_Read... [05:43:16]Read from MH i2c: E2 0E 00 [05:43:16]MH_I2C_Read... [05:43:16]Read from MH i2c: E2 0E 00 5C 0D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 AD [05:43:16]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [05:43:16]wFMCommunicate OK [05:43:16]SAM_PROTO_GetShiftState done [05:43:16]FM_GetShiftState done [05:43:16]req_shift_opened done [05:43:16]requested_item shift.open_date is exist - process it [05:43:16]req_shift_open_date [05:43:16]req_shift_open_date done [05:43:16]produce_requested_data done [05:43:16]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228073,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [05:43:16]process_action_free close_receipt [05:43:16]json_value_free [05:43:16]json_value_free done [05:43:16]process_json_proto returns [05:43:16]Send response to host [05:43:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228073,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [05:43:16]free response buf [05:43:16]execute_script done [05:43:16]execute_script returns [05:43:16]free content buf [05:43:16]Sock 9.Close socket [05:43:16]Sock 9.Thread stoped [05:43:20]OFD Sender: No OFD packet to send [05:43:25]OFD Sender: No OFD packet to send [05:43:30]OFD Sender: No OFD packet to send [05:43:35]OFD Sender: No OFD packet to send [05:43:40]OFD Sender: No OFD packet to send [05:43:45]OFD Sender: No OFD packet to send [05:43:50]OFD Sender: No OFD packet to send [05:43:55]OFD Sender: No OFD packet to send [05:44:00]OFD Sender: No OFD packet to send [05:44:05]OFD Sender: No OFD packet to send [05:44:10]OFD Sender: No OFD packet to send [05:44:15]OFD Sender: No OFD packet to send [05:44:20]OFD Sender: No OFD packet to send [05:44:25]OFD Sender: No OFD packet to send [05:44:30]OFD Sender: No OFD packet to send [05:44:35]OFD Sender: No OFD packet to send [05:44:40]OFD Sender: No OFD packet to send [05:44:45]OFD Sender: No OFD packet to send [05:44:50]OFD Sender: No OFD packet to send [05:44:55]OFD Sender: No OFD packet to send [05:45:00]OFD Sender: No OFD packet to send [05:45:05]OFD Sender: No OFD packet to send [05:45:10]OFD Sender: No OFD packet to send [05:45:15]OFD Sender: No OFD packet to send [05:45:20]OFD Sender: No OFD packet to send [05:45:25]OFD Sender: No OFD packet to send [05:45:30]OFD Sender: No OFD packet to send [05:45:35]OFD Sender: No OFD packet to send [05:45:40]OFD Sender: No OFD packet to send [05:45:45]OFD Sender: No OFD packet to send [05:45:50]OFD Sender: No OFD packet to send [05:45:55]OFD Sender: No OFD packet to send [05:46:00]OFD Sender: No OFD packet to send [05:46:05]OFD Sender: No OFD packet to send [05:46:10]OFD Sender: No OFD packet to send [05:46:15]OFD Sender: No OFD packet to send [05:46:20]OFD Sender: No OFD packet to send [05:46:25]OFD Sender: No OFD packet to send [05:46:30]OFD Sender: No OFD packet to send [05:46:35]OFD Sender: No OFD packet to send [05:46:40]OFD Sender: No OFD packet to send [05:46:45]OFD Sender: No OFD packet to send [05:46:50]OFD Sender: No OFD packet to send [05:46:55]OFD Sender: No OFD packet to send [05:47:00]OFD Sender: No OFD packet to send [05:47:05]OFD Sender: No OFD packet to send [05:47:10]OFD Sender: No OFD packet to send [05:47:15]OFD Sender: No OFD packet to send [05:47:20]OFD Sender: No OFD packet to send [05:47:25]OFD Sender: No OFD packet to send [05:47:30]OFD Sender: No OFD packet to send [05:47:35]OFD Sender: No OFD packet to send [05:47:40]OFD Sender: No OFD packet to send [05:47:45]OFD Sender: No OFD packet to send [05:47:50]OFD Sender: No OFD packet to send [05:47:55]OFD Sender: No OFD packet to send [05:48:00]OFD Sender: No OFD packet to send [05:48:05]OFD Sender: No OFD packet to send [05:48:10]OFD Sender: No OFD packet to send [05:48:15]OFD Sender: No OFD packet to send [05:48:20]OFD Sender: No OFD packet to send [05:48:25]OFD Sender: No OFD packet to send [05:48:30]OFD Sender: No OFD packet to send [05:48:35]OFD Sender: No OFD packet to send [05:48:40]OFD Sender: No OFD packet to send [05:48:45]OFD Sender: No OFD packet to send [05:48:50]OFD Sender: No OFD packet to send [05:48:55]OFD Sender: No OFD packet to send [05:49:00]OFD Sender: No OFD packet to send [05:49:05]OFD Sender: No OFD packet to send [05:49:10]OFD Sender: No OFD packet to send [05:49:15]OFD Sender: No OFD packet to send [05:49:18]accept exits with 7 [05:49:18]New connection [05:49:18]New thread 3066994020 created [05:49:18]Thread 3067137380 joined [05:49:18]Waiting for new connection... [05:49:18] Sock 7.Parse request [05:49:18]Sock 7.Check first char [05:49:18]Sock 7.First char is OK [05:49:18]request: POST /json_proto HTTP/1.0 [05:49:18]Method: POST [05:49:18]URL: /json_proto [05:49:18]Method is POST - this is cgi request [05:49:18]url: /json_proto [05:49:18]query_string will be loaded in cgi processing [05:49:18]execute_cgi json_proto POST (null) [05:49:18]execute_cgi path=json_proto method=POST [05:49:18]POST find Content-Length [05:49:18]Host: 172.17.44.195:8080 [05:49:18]Content-Length: 683 [05:49:18]Content-Type: application/json [05:49:18] [05:49:18]POST finish read [05:49:18]Found Content-Length = 683 [05:49:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [05:49:18]execute_script... [05:49: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)1964271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [05:49:18]POST & json_proto [05:49:18]process_json_proto [05:49:18]json parsed OK: [05:49:18]protocol is kg_v1.0 [05:49:18]action value=close_receipt [05:49:18]process_action close_receipt [05:49:18]cmd_close_receipt [05:49:18]MH_GetDate [05:49:18]Write to MH i2c: F0 00 00 5D 0D 59 [05:49:18]Write i2c OK [05:49:18]MH_I2C_Read... [05:49:18]Read from MH i2c: F0 [05:49:18]MH_I2C_Read... [05:49:18]Read from MH i2c: F0 09 00 [05:49:18]MH_I2C_Read... [05:49:18]Read from MH i2c: F0 09 00 5D 0D 00 E1 3C 17 67 82 C9 CF 66 7D [05:49:18]GetLastDocTimeStamp 1729575794 [05:49:18]current date 1729576161 [05:49:18]FM_GetShiftState [05:49:18]SAM_PROTO_GetShiftState [05:49:18]wFMCommunicate request_size=4 [05:49:18]MH_SAM_APDU [05:49:18]CAPDU: 80 13 01 00 [05:49:18]Write to MH i2c: E2 08 00 5E 0D 80 13 01 00 00 00 00 00 E8 [05:49:18]Write i2c OK [05:49:18]MH_I2C_Read... [05:49:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:49:18]Read from MH i2c: E2 [05:49:18]MH_I2C_Read... [05:49:18]Read from MH i2c: E2 0E 00 [05:49:18]MH_I2C_Read... [05:49:18]Read from MH i2c: E2 0E 00 5E 0D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 AF [05:49:18]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [05:49:18]wFMCommunicate OK [05:49:18]SAM_PROTO_GetShiftState done [05:49:18]FM_GetShiftState done [05:49:18]opened in 1729555538 [05:49:18]opened+sec_in_day 1729641938 [05:49:18]quantity*price = 150056 [05:49:18]sum+1 = 150058 [05:49:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 38 22.10.2024 05:49 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228074 ФПД: 278472538795655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T054921&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228074&fm=278472538795655&tin=02508201610067®Number=0000000000091685&sum=150000 [05:49:20]StoreToDocumentArchive [05:49:20]shift 535 fd 228074 [05:49:20]save to /storage/0535/doc_00228074 [05:49:20]save last doc name /storage/0535/doc_00228074 to /storage/kkm_last_doc_name [05:49:20]save OK [05:49:20]Clear old archive folders... [05:49:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:49:20]tlvbuf is 00886B60 [05:49:20]SAM_PROTO_ClearQueue [05:49:20]wFMCommunicate request_size=4 [05:49:20]MH_SAM_APDU [05:49:20]CAPDU: 80 09 00 00 [05:49:20]Write to MH i2c: E2 08 00 6B 0D 80 09 00 00 00 00 00 00 EA [05:49:20]Write i2c OK [05:49:20]MH_I2C_Read... [05:49:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:49:20]Read from MH i2c: E2 [05:49:20]MH_I2C_Read... [05:49:20]Read from MH i2c: E2 03 00 [05:49:20]MH_I2C_Read... [05:49:20]Read from MH i2c: E2 03 00 6B 0D 00 90 00 EC [05:49:20]RAPDU: 90 00 [05:49:20]wFMCommunicate OK [05:49:20]SAM_PROTO_ClearQueue done [05:49:20]KKMCreateOFDPacket [05:49:20]OFDProtocolAddRootSTLVToBuf [05:49:20]FM_MakeSignedData [05:49:20]FM_MakeSignedData [05:49:20]SAM_PROTO_SignData [05:49:20]wFMCommunicate request_size=4 [05:49:20]MH_SAM_APDU [05:49:20]CAPDU: 80 0D 01 02 [05:49:20]Write to MH i2c: E2 08 00 6C 0D 80 0D 01 02 00 00 00 00 F2 [05:49:20]Write i2c OK [05:49:20]MH_I2C_Read... [05:49:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:49:20]Read from MH i2c: E2 [05:49:20]MH_I2C_Read... [05:49:20]Read from MH i2c: E2 03 00 [05:49:20]MH_I2C_Read... [05:49:20]Read from MH i2c: E2 03 00 6C 0D 00 90 00 ED [05:49:20]RAPDU: 90 00 [05:49:20]wFMCommunicate OK [05:49:20]wFMCommunicate request_size=255 [05:49:20]MH_SAM_APDU [05:49: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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 E1 3C 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EA 7A 03 00 35 04 06 00 FD [05:49:20]Write to MH i2c: E2 02 01 6D 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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 E1 3C 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EA 7A 03 00 35 04 06 00 FD 00 00 10 [05:49:20]Write i2c OK [05:49:20]MH_I2C_Read... [05:49:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:49:20]Read from MH i2c: E2 [05:49:20]MH_I2C_Read... [05:49:20]Read from MH i2c: E2 03 00 [05:49:20]MH_I2C_Read... [05:49:20]Read from MH i2c: E2 03 00 6D 0D 00 90 00 EE [05:49:20]RAPDU: 90 00 [05:49:20]wFMCommunicate OK [05:49:20]wFMCommunicate request_size=10 [05:49:20]MH_SAM_APDU [05:49:20]CAPDU: 80 0D 02 02 05 44 F0 C1 2E 87 [05:49:20]Write to MH i2c: E2 0D 00 6E 0D 80 0D 02 02 05 00 44 F0 C1 2E 87 00 00 A9 [05:49:20]Write i2c OK [05:49:20]MH_I2C_Read... [05:49:20]OFD Sender: No OFD packet to send [05:49:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:49:20]Read from MH i2c: E2 [05:49:20]MH_I2C_Read... [05:49:20]Read from MH i2c: E2 03 00 [05:49:20]MH_I2C_Read... [05:49:20]Read from MH i2c: E2 03 00 6E 0D 00 90 00 EF [05:49:20]RAPDU: 90 00 [05:49:20]wFMCommunicate OK [05:49:20]wFMCommunicate request_size=4 [05:49:20]MH_SAM_APDU [05:49:20]CAPDU: 80 0D 03 02 [05:49:20]Write to MH i2c: E2 08 00 6F 0D 80 0D 03 02 00 00 00 00 F7 [05:49:20]Write i2c OK [05:49:20]MH_I2C_Read... [05:49:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:49:20]Read from MH i2c: E2 [05:49:20]MH_I2C_Read... [05:49:20]Read from MH i2c: E2 0B 00 [05:49:20]MH_I2C_Read... [05:49:20]Read from MH i2c: E2 0B 00 6F 0D 00 B7 47 29 4F 76 DB 49 EA 90 00 F2 [05:49:20]RAPDU: B7 47 29 4F 76 DB 49 EA 90 00 [05:49:20]wFMCommunicate OK [05:49:20]SAM_PROTO_SignData done [05:49:20]FM_MakeSignedData done [05:49:20]CreateOFDProtocolMessage [05:49:20]wFMCommunicate request_size=4 [05:49:20]MH_SAM_APDU [05:49:20]CAPDU: 80 11 00 00 [05:49:20]Write to MH i2c: E2 08 00 70 0D 80 11 00 00 00 00 00 00 F7 [05:49:20]Write i2c OK [05:49:20]MH_I2C_Read... [05:49:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:49:20]Read from MH i2c: E2 [05:49:20]MH_I2C_Read... [05:49:20]Read from MH i2c: E2 17 00 [05:49:20]MH_I2C_Read... [05:49:20]Read from MH i2c: E2 17 00 70 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4E [05:49:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [05:49:20]wFMCommunicate OK [05:49:20]CreateOFDProtocolMessage done [05:49:20]OFDSenderStorePacket 228074 [05:49:20]StoreOFDPacket docnum=228074 [05:49:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 33 C0 07 01 BF C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 E1 3C 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EA 7A 03 00 35 04 06 00 FD 44 F0 C1 2E 87 B7 47 29 4F 76 DB 49 EA [05:49:20]CheckFolder [05:49:20]dirname=/storage/ofd_packets [05:49:20]CheckFolder done [05:49:20]ProducePacketName [05:49:20]name=ofd_packets/00228074 [05:49:20]NVStorageSaveData ofd_packets/00228074 [05:49:20]File name is /storage/ofd_packets/00228074 [05:49:20]Write 301 bytes [05:49:20]NVStorageSaveData done [05:49:20]OFDSenderStorePacket done [05:49:20]KKMCreateOFDPacket done [05:49:20]NVStorageSaveData kkm_last_timestamp [05:49:20]File name is /storage/kkm_last_timestamp [05:49:20]Write 4 bytes [05:49:20]NVStorageSaveData done [05:49:20]ExternCall_PrintAddStr [05:49:20]wPrintStart [05:49:20]Write to MH i2c: 01 00 00 71 0D 7E [05:49:20]Write i2c OK [05:49:20]MH_I2C_Read... [05:49:20]Read from MH i2c: 01 [05:49:20]MH_I2C_Read... [05:49:20]Read from MH i2c: 01 07 00 [05:49:20]MH_I2C_Read... [05:49:20]Read from MH i2c: 01 07 00 71 0D 00 00 00 00 00 FF 0F 93 [05:49:20]RasterBufferAndPrint [05:49:20]line Счет N : (1)1964271 [05:49:20]line ИНН: 02508201610067 [05:49:20]line Контрольно-Кассовый Чек [05:49:20]line ПРОДАЖА [05:49:20]line ТРК (МРК, ГНК) : 33 [05:49:20]line Товар: 2710124130 [05:49:20]line Аи-92-К-5 [05:49:20]line 22.430 * 66.90 [05:49:20]line = 1500.57 [05:49:20]line НДС 12% НСП 1% [05:49:20]line > о реализуемом товаре [05:49:20]line ОКРУГЛЕНИЕ: -0.57 [05:49:20]line ИТОГО: 1500.00 [05:49:20]line Внесено: 1500.00 [05:49:20]line СДАЧА: 0.00 [05:49:20]line НСП 1% : 13.28 [05:49:20]line НДС 12% : 159.35 [05:49:20]line Наличными: 1500.00 [05:49:20]line Безнал.: 0.00 [05:49:20]line Место: АЗС № 133 "Партнер Нефть" [05:49:20]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [05:49:20]line СНО: Общий режим [05:49:20]line Чек 38 22.10.2024 05:49 [05:49:20]line Смена: 535 ФФД: 1.0 [05:49:20]line ЗНМ: 0300000091 [05:49:20]line РНМ: 0000000000091685 [05:49:20]line Версия ККМ: 001 [05:49:20]line ФМ: 0000000000871839 [05:49:20]line ФД: 228074 [05:49:20]line ФПД: 278472538795655 [05:49:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T054921&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228074&fm=278472538795655&tin=02508201610067®Number=0000000000091685&sum=150000 [05:49:20]written 0, free lines is 4095 [05:49:20]OFD Sender: Processing packet 228074 [packets to send 38, broken 37] [05:49:20]ProducePacketName [05:49:20]name=ofd_packets/00228074 [05:49:20]OFD Sender: To server: pG, [05:49:20]CommunicateWithHost lk.salyk.kg:30040 [05:49:20]ConnectInit lk.salyk.kg [05:49:20]Connected sock=10 [05:49:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 33 C0 07 01 BF C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 E1 3C 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EA 7A 03 00 35 04 06 00 FD 44 F0 C1 2E 87 B7 47 29 4F 76 DB 49 EA [05:49:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 DD 87 47 00 EE B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EA 7A 03 00 F4 03 04 00 DA E7 16 67 B6 04 01 00 00 DC 24 A1 63 E2 56 43 D2 [05:49:21]CommunicateWithHost err = 0 [05:49:21]CheckOFDResponse [05:49:21]1017 (14) - 77093643461234 [05:49:21]1041 (16) - 0000000000871839 [05:49:21]1040 (4) - 228074 [05:49:21]1012 (4) - 21.10.2024 23:46 [05:49:21]1206 (1) - 0 [05:49:21]OFD Sender: Remove packet 228074 [05:49:21]ProducePacketName [05:49:21]name=ofd_packets/00228074 [05:49:21]NVStorageDeleteData [05:49:21]Write to MH i2c: 01 00 00 9B 0D A8 [05:49:21]Write i2c OK [05:49:21]MH_I2C_Read... [05:49:21]Read from MH i2c: 01 [05:49:21]MH_I2C_Read... [05:49:21]Read from MH i2c: 01 07 00 [05:49:21]MH_I2C_Read... [05:49:21]Read from MH i2c: 01 07 00 9B 0D 00 00 00 00 00 A1 0C 5C [05:49:21]RasterBufferAndPrint [05:49:21]line [05:49:21]line [05:49:21]line [05:49:21]line [05:49:21]line [05:49:21]written 0, free lines is 3237 [05:49:21]MH_Cut [05:49:21]Write to MH i2c: D1 01 00 A2 0D 01 81 [05:49:21]Write i2c OK [05:49:21]MH_I2C_Read... [05:49:21]Read from MH i2c: D1 [05:49:21]MH_I2C_Read... [05:49:21]Read from MH i2c: D1 01 00 [05:49:21]MH_I2C_Read... [05:49:21]Read from MH i2c: D1 01 00 A2 0D 00 80 [05:49:21]Write to MH i2c: 01 00 00 A3 0D B0 [05:49:21]Write i2c OK [05:49:21]MH_I2C_Read... [05:49:21]OFD Sender: No OFD packet to send [05:49:22]*** Cut start [05:49:22]*** Partial cut [05:49:22]*** CUTSNS_PIN = 1 [05:49:22]*** CUTSNS_PIN = 0 [05:49:22]*** Brake cut motor [05:49:22]Read from MH i2c: 01 [05:49:22]MH_I2C_Read... [05:49:22]*** Stop cut motor [05:49:22]*** Cut end [05:49:22]Read from MH i2c: 01 07 00 [05:49:22]MH_I2C_Read... [05:49:22]Read from MH i2c: 01 07 00 A3 0D 00 00 00 00 00 FF 0F C5 [05:49:22]process_action close_receipt done [05:49:22]requested_data is exist [05:49:22]produce_requested_data [05:49:22]requested_item fm.sn is exist - process it [05:49:22]wFMCommunicate request_size=4 [05:49:22]MH_SAM_APDU [05:49:22]CAPDU: 80 11 00 00 [05:49:22]Write to MH i2c: E2 08 00 A4 0D 80 11 00 00 00 00 00 00 2B [05:49:22]Write i2c OK [05:49:22]MH_I2C_Read... [05:49:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:49:22]Read from MH i2c: E2 [05:49:22]MH_I2C_Read... [05:49:22]Read from MH i2c: E2 17 00 [05:49:22]MH_I2C_Read... [05:49:22]Read from MH i2c: E2 17 00 A4 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 82 [05:49:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [05:49:22]wFMCommunicate OK [05:49:22]requested_item fd.num is exist - process it [05:49:22]SAM_PROTO_GetFieldsCounters [05:49:22]wFMCommunicate request_size=4 [05:49:22]MH_SAM_APDU [05:49:22]CAPDU: 80 13 00 00 [05:49:22]Write to MH i2c: E2 08 00 A5 0D 80 13 00 00 00 00 00 00 2E [05:49:22]Write i2c OK [05:49:22]MH_I2C_Read... [05:49:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:49:22]Read from MH i2c: E2 [05:49:22]MH_I2C_Read... [05:49:22]Read from MH i2c: E2 62 00 [05:49:22]MH_I2C_Read... [05:49:22]Read from MH i2c: E2 62 00 A5 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EA 7A 03 00 0E 04 04 00 17 02 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 49 [05:49:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EA 7A 03 00 0E 04 04 00 17 02 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 [05:49:22]wFMCommunicate OK [05:49:22]SAM_PROTO_GetFieldsCounters done [05:49:22]requested_item shift.num is exist - process it [05:49:22]requested_item shift.opened is exist - process it [05:49:22]req_shift_opened [05:49:22]FM_GetShiftState [05:49:22]SAM_PROTO_GetShiftState [05:49:22]wFMCommunicate request_size=4 [05:49:22]MH_SAM_APDU [05:49:22]CAPDU: 80 13 01 00 [05:49:22]Write to MH i2c: E2 08 00 A6 0D 80 13 01 00 00 00 00 00 30 [05:49:22]Write i2c OK [05:49:22]MH_I2C_Read... [05:49:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:49:22]Read from MH i2c: E2 [05:49:22]MH_I2C_Read... [05:49:22]Read from MH i2c: E2 0E 00 [05:49:22]MH_I2C_Read... [05:49:22]Read from MH i2c: E2 0E 00 A6 0D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 F7 [05:49:22]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [05:49:22]wFMCommunicate OK [05:49:22]SAM_PROTO_GetShiftState done [05:49:22]FM_GetShiftState done [05:49:22]req_shift_opened done [05:49:22]requested_item shift.open_date is exist - process it [05:49:22]req_shift_open_date [05:49:22]req_shift_open_date done [05:49:22]produce_requested_data done [05:49:22]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228074,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [05:49:22]process_action_free close_receipt [05:49:22]json_value_free [05:49:22]json_value_free done [05:49:22]process_json_proto returns [05:49:22]Send response to host [05:49:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228074,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [05:49:22]free response buf [05:49:22]execute_script done [05:49:22]execute_script returns [05:49:22]free content buf [05:49:22]Sock 7.Close socket [05:49:22]Sock 7.Thread stoped [05:49:26]OFD Sender: No OFD packet to send [05:49:31]OFD Sender: No OFD packet to send [05:49:36]OFD Sender: No OFD packet to send [05:49:41]OFD Sender: No OFD packet to send [05:49:46]OFD Sender: No OFD packet to send [05:49:51]OFD Sender: No OFD packet to send [05:49:56]OFD Sender: No OFD packet to send [05:50:01]OFD Sender: No OFD packet to send [05:50:06]OFD Sender: No OFD packet to send [05:50:11]OFD Sender: No OFD packet to send [05:50:16]OFD Sender: No OFD packet to send [05:50:21]OFD Sender: No OFD packet to send [05:50:26]OFD Sender: No OFD packet to send [05:50:31]OFD Sender: No OFD packet to send [05:50:36]OFD Sender: No OFD packet to send [05:50:41]OFD Sender: No OFD packet to send [05:50:46]OFD Sender: No OFD packet to send [05:50:51]OFD Sender: No OFD packet to send [05:50:56]OFD Sender: No OFD packet to send [05:51:01]OFD Sender: No OFD packet to send [05:51:06]OFD Sender: No OFD packet to send [05:51:11]OFD Sender: No OFD packet to send [05:51:16]OFD Sender: No OFD packet to send [05:51:21]OFD Sender: No OFD packet to send [05:51:26]OFD Sender: No OFD packet to send [05:51:31]OFD Sender: No OFD packet to send [05:51:36]OFD Sender: No OFD packet to send [05:51:41]OFD Sender: No OFD packet to send [05:51:46]OFD Sender: No OFD packet to send [05:51:51]OFD Sender: No OFD packet to send [05:51:56]OFD Sender: No OFD packet to send [05:52:01]OFD Sender: No OFD packet to send [05:52:06]OFD Sender: No OFD packet to send [05:52:11]OFD Sender: No OFD packet to send [05:52:16]OFD Sender: No OFD packet to send [05:52:21]OFD Sender: No OFD packet to send [05:52:26]OFD Sender: No OFD packet to send [05:52:31]OFD Sender: No OFD packet to send [05:52:36]OFD Sender: No OFD packet to send [05:52:41]OFD Sender: No OFD packet to send [05:52:46]OFD Sender: No OFD packet to send [05:52:51]OFD Sender: No OFD packet to send [05:52:56]OFD Sender: No OFD packet to send [05:53:01]OFD Sender: No OFD packet to send [05:53:06]OFD Sender: No OFD packet to send [05:53:11]OFD Sender: No OFD packet to send [05:53:16]OFD Sender: No OFD packet to send [05:53:21]OFD Sender: No OFD packet to send [05:53:26]OFD Sender: No OFD packet to send [05:53:31]OFD Sender: No OFD packet to send [05:53:36]OFD Sender: No OFD packet to send [05:53:41]OFD Sender: No OFD packet to send [05:53:46]OFD Sender: No OFD packet to send [05:53:51]OFD Sender: No OFD packet to send [05:53:56]OFD Sender: No OFD packet to send [05:54:01]OFD Sender: No OFD packet to send [05:54:06]OFD Sender: No OFD packet to send [05:54:11]OFD Sender: No OFD packet to send [05:54:16]OFD Sender: No OFD packet to send [05:54:21]OFD Sender: No OFD packet to send [05:54:26]OFD Sender: No OFD packet to send [05:54:31]OFD Sender: No OFD packet to send [05:54:36]OFD Sender: No OFD packet to send [05:54:41]OFD Sender: No OFD packet to send [05:54:46]OFD Sender: No OFD packet to send [05:54:51]OFD Sender: No OFD packet to send [05:54:56]OFD Sender: No OFD packet to send [05:55:01]OFD Sender: No OFD packet to send [05:55:06]OFD Sender: No OFD packet to send [05:55:11]OFD Sender: No OFD packet to send [05:55:16]OFD Sender: No OFD packet to send [05:55:21]OFD Sender: No OFD packet to send [05:55:26]recv_with_timeout no data received [05:55:26]OFD Sender: No OFD packet to send [05:55:31]OFD Sender: No OFD packet to send [05:55:36]OFD Sender: No OFD packet to send [05:55:40]recv_with_timeout no data received [05:55:41]OFD Sender: No OFD packet to send [05:55:46]OFD Sender: No OFD packet to send [05:55:51]OFD Sender: No OFD packet to send [05:55:56]OFD Sender: No OFD packet to send [05:56:01]OFD Sender: No OFD packet to send [05:56:06]OFD Sender: No OFD packet to send [05:56:11]OFD Sender: No OFD packet to send [05:56:16]OFD Sender: No OFD packet to send [05:56:21]OFD Sender: No OFD packet to send [05:56:26]OFD Sender: No OFD packet to send [05:56:31]OFD Sender: No OFD packet to send [05:57:30]ConnectInit Can't connect to host [05:57:31]OFD Sender: No OFD packet to send [05:57:36]OFD Sender: No OFD packet to send [05:57:41]OFD Sender: No OFD packet to send [05:57:46]OFD Sender: No OFD packet to send [05:57:51]OFD Sender: No OFD packet to send [05:57:56]OFD Sender: No OFD packet to send [05:58:01]OFD Sender: No OFD packet to send [05:58:06]OFD Sender: No OFD packet to send [05:58:11]OFD Sender: No OFD packet to send [05:58:16]OFD Sender: No OFD packet to send [05:58:21]accept exits with 9 [05:58:21]New connection [05:58:21]New thread 3067137380 created [05:58:21]Thread 3066994020 joined [05:58:21]Waiting for new connection... [05:58:21] Sock 9.Parse request [05:58:21]Sock 9.Check first char [05:58:21]Sock 9.First char is OK [05:58:21]request: POST /json_proto HTTP/1.0 [05:58:21]Method: POST [05:58:21]URL: /json_proto [05:58:21]Method is POST - this is cgi request [05:58:21]url: /json_proto [05:58:21]query_string will be loaded in cgi processing [05:58:21]execute_cgi json_proto POST (null) [05:58:21]execute_cgi path=json_proto method=POST [05:58:21]POST find Content-Length [05:58:21]Host: 172.17.44.195:8080 [05:58:21]Content-Length: 683 [05:58:21]Content-Type: application/json [05:58:21] [05:58:21]POST finish read [05:58:21]Found Content-Length = 683 [05:58:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964272", "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" : 66.90, "quantity" : 14.950, "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" ] } } [05:58:21]execute_script... [05:58: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)1964272", "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" : 66.90, "quantity" : 14.950, "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" ] } } [05:58:21]POST & json_proto [05:58:21]process_json_proto [05:58:21]json parsed OK: [05:58:21]protocol is kg_v1.0 [05:58:21]action value=close_receipt [05:58:21]process_action close_receipt [05:58:21]cmd_close_receipt [05:58:21]MH_GetDate [05:58:21]Write to MH i2c: F0 00 00 A7 0D A3 [05:58:21]Write i2c OK [05:58:21]MH_I2C_Read... [05:58:21]Read from MH i2c: F0 [05:58:21]MH_I2C_Read... [05:58:21]Read from MH i2c: F0 09 00 [05:58:21]MH_I2C_Read... [05:58:21]Read from MH i2c: F0 09 00 A7 0D 00 00 3F 17 67 82 C9 CF 66 E9 [05:58:21]GetLastDocTimeStamp 1729576161 [05:58:21]current date 1729576704 [05:58:21]FM_GetShiftState [05:58:21]SAM_PROTO_GetShiftState [05:58:21]wFMCommunicate request_size=4 [05:58:21]MH_SAM_APDU [05:58:21]CAPDU: 80 13 01 00 [05:58:21]Write to MH i2c: E2 08 00 A8 0D 80 13 01 00 00 00 00 00 32 [05:58:21]Write i2c OK [05:58:21]MH_I2C_Read... [05:58:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:58:21]Read from MH i2c: E2 [05:58:21]MH_I2C_Read... [05:58:21]Read from MH i2c: E2 0E 00 [05:58:21]MH_I2C_Read... [05:58:21]Read from MH i2c: E2 0E 00 A8 0D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 F9 [05:58:21]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [05:58:21]wFMCommunicate OK [05:58:21]SAM_PROTO_GetShiftState done [05:58:21]FM_GetShiftState done [05:58:21]opened in 1729555538 [05:58:21]opened+sec_in_day 1729641938 [05:58:21]quantity*price = 100015 [05:58:21]sum+1 = 100017 [05:58:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 39 22.10.2024 05:58 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228075 ФПД: 130853794493140 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T055824&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228075&fm=130853794493140&tin=02508201610067®Number=0000000000091685&sum=100000 [05:58:23]StoreToDocumentArchive [05:58:23]shift 535 fd 228075 [05:58:23]save to /storage/0535/doc_00228075 [05:58:23]save last doc name /storage/0535/doc_00228075 to /storage/kkm_last_doc_name [05:58:23]save OK [05:58:23]Clear old archive folders... [05:58:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:58:23]tlvbuf is 0086E6F0 [05:58:23]SAM_PROTO_ClearQueue [05:58:23]wFMCommunicate request_size=4 [05:58:23]MH_SAM_APDU [05:58:23]CAPDU: 80 09 00 00 [05:58:23]Write to MH i2c: E2 08 00 B5 0D 80 09 00 00 00 00 00 00 34 [05:58:23]Write i2c OK [05:58:23]MH_I2C_Read... [05:58:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:58:23]Read from MH i2c: E2 [05:58:23]MH_I2C_Read... [05:58:23]Read from MH i2c: E2 03 00 [05:58:23]MH_I2C_Read... [05:58:23]Read from MH i2c: E2 03 00 B5 0D 00 90 00 36 [05:58:23]RAPDU: 90 00 [05:58:23]wFMCommunicate OK [05:58:23]SAM_PROTO_ClearQueue done [05:58:23]KKMCreateOFDPacket [05:58:23]OFDProtocolAddRootSTLVToBuf [05:58:23]FM_MakeSignedData [05:58:23]FM_MakeSignedData [05:58:23]SAM_PROTO_SignData [05:58:23]wFMCommunicate request_size=4 [05:58:23]MH_SAM_APDU [05:58:23]CAPDU: 80 0D 01 02 [05:58:23]Write to MH i2c: E2 08 00 B6 0D 80 0D 01 02 00 00 00 00 3C [05:58:23]Write i2c OK [05:58:23]MH_I2C_Read... [05:58:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:58:23]Read from MH i2c: E2 [05:58:23]MH_I2C_Read... [05:58:23]Read from MH i2c: E2 03 00 [05:58:23]MH_I2C_Read... [05:58:23]Read from MH i2c: E2 03 00 B6 0D 00 90 00 37 [05:58:23]RAPDU: 90 00 [05:58:23]wFMCommunicate OK [05:58:23]wFMCommunicate request_size=255 [05:58:23]MH_SAM_APDU [05:58: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 27 00 00 00 F4 03 04 00 00 3F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EB 7A 03 00 35 04 06 00 77 [05:58:23]Write to MH i2c: E2 02 01 B7 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 27 00 00 00 F4 03 04 00 00 3F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EB 7A 03 00 35 04 06 00 77 00 00 A9 [05:58:23]Write i2c OK [05:58:23]MH_I2C_Read... [05:58:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:58:23]Read from MH i2c: E2 [05:58:23]MH_I2C_Read... [05:58:23]Read from MH i2c: E2 03 00 [05:58:23]MH_I2C_Read... [05:58:23]Read from MH i2c: E2 03 00 B7 0D 00 90 00 38 [05:58:23]RAPDU: 90 00 [05:58:23]wFMCommunicate OK [05:58:23]wFMCommunicate request_size=10 [05:58:23]MH_SAM_APDU [05:58:23]CAPDU: 80 0D 02 02 05 02 C5 F0 32 D4 [05:58:23]Write to MH i2c: E2 0D 00 B8 0D 80 0D 02 02 05 00 02 C5 F0 32 D4 00 00 06 [05:58:23]Write i2c OK [05:58:23]MH_I2C_Read... [05:58:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:58:23]Read from MH i2c: E2 [05:58:23]MH_I2C_Read... [05:58:23]Read from MH i2c: E2 03 00 [05:58:23]MH_I2C_Read... [05:58:23]Read from MH i2c: E2 03 00 B8 0D 00 90 00 39 [05:58:23]RAPDU: 90 00 [05:58:23]wFMCommunicate OK [05:58:23]wFMCommunicate request_size=4 [05:58:23]MH_SAM_APDU [05:58:23]CAPDU: 80 0D 03 02 [05:58:23]Write to MH i2c: E2 08 00 B9 0D 80 0D 03 02 00 00 00 00 41 [05:58:23]Write i2c OK [05:58:23]MH_I2C_Read... [05:58:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:58:23]Read from MH i2c: E2 [05:58:23]MH_I2C_Read... [05:58:23]Read from MH i2c: E2 0B 00 [05:58:23]MH_I2C_Read... [05:58:23]Read from MH i2c: E2 0B 00 B9 0D 00 9E 72 78 80 01 FC 93 20 90 00 FA [05:58:23]RAPDU: 9E 72 78 80 01 FC 93 20 90 00 [05:58:23]wFMCommunicate OK [05:58:23]SAM_PROTO_SignData done [05:58:23]FM_MakeSignedData done [05:58:23]CreateOFDProtocolMessage [05:58:23]wFMCommunicate request_size=4 [05:58:23]MH_SAM_APDU [05:58:23]CAPDU: 80 11 00 00 [05:58:23]Write to MH i2c: E2 08 00 BA 0D 80 11 00 00 00 00 00 00 41 [05:58:23]Write i2c OK [05:58:23]MH_I2C_Read... [05:58:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:58:23]Read from MH i2c: E2 [05:58:23]MH_I2C_Read... [05:58:23]Read from MH i2c: E2 17 00 [05:58:23]MH_I2C_Read... [05:58:23]Read from MH i2c: E2 17 00 BA 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 98 [05:58:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [05:58:23]wFMCommunicate OK [05:58:23]CreateOFDProtocolMessage done [05:58:23]OFDSenderStorePacket 228075 [05:58:23]StoreOFDPacket docnum=228075 [05:58:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 39 F6 07 01 F7 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 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 27 00 00 00 F4 03 04 00 00 3F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EB 7A 03 00 35 04 06 00 77 02 C5 F0 32 D4 9E 72 78 80 01 FC 93 20 [05:58:23]CheckFolder [05:58:23]dirname=/storage/ofd_packets [05:58:23]CheckFolder done [05:58:23]ProducePacketName [05:58:23]name=ofd_packets/00228075 [05:58:23]NVStorageSaveData ofd_packets/00228075 [05:58:23]File name is /storage/ofd_packets/00228075 [05:58:23]Write 301 bytes [05:58:23]NVStorageSaveData done [05:58:23]OFDSenderStorePacket done [05:58:23]KKMCreateOFDPacket done [05:58:23]NVStorageSaveData kkm_last_timestamp [05:58:23]File name is /storage/kkm_last_timestamp [05:58:23]Write 4 bytes [05:58:23]NVStorageSaveData done [05:58:23]ExternCall_PrintAddStr [05:58:23]wPrintStart [05:58:23]Write to MH i2c: 01 00 00 BB 0D C8 [05:58:23]Write i2c OK [05:58:23]MH_I2C_Read... [05:58:23]Read from MH i2c: 01 [05:58:23]MH_I2C_Read... [05:58:23]Read from MH i2c: 01 07 00 [05:58:23]MH_I2C_Read... [05:58:23]Read from MH i2c: 01 07 00 BB 0D 00 00 00 00 00 FF 0F DD [05:58:23]RasterBufferAndPrint [05:58:23]line Счет N : (1)1964272 [05:58:23]line ИНН: 02508201610067 [05:58:23]line Контрольно-Кассовый Чек [05:58:23]line ПРОДАЖА [05:58:23]line ТРК (МРК, ГНК) : 53 [05:58:23]line Товар: 2710124130 [05:58:23]line Аи-92-К-5 [05:58:23]line 14.950 * 66.90 [05:58:23]line = 1000.16 [05:58:23]line НДС 12% НСП 1% [05:58:23]line > о реализуемом товаре [05:58:23]line ОКРУГЛЕНИЕ: -0.16 [05:58:23]line ИТОГО: 1000.00 [05:58:23]line Внесено: 1000.00 [05:58:23]line СДАЧА: 0.00 [05:58:23]line НСП 1% : 8.85 [05:58:23]line НДС 12% : 106.21 [05:58:23]line Наличными: 1000.00 [05:58:23]line Безнал.: 0.00 [05:58:23]line Место: АЗС № 133 "Партнер Нефть" [05:58:23]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [05:58:23]line СНО: Общий режим [05:58:23]line Чек 39 22.10.2024 05:58 [05:58:23]line Смена: 535 ФФД: 1.0 [05:58:23]line ЗНМ: 0300000091 [05:58:23]line РНМ: 0000000000091685 [05:58:23]line Версия ККМ: 001 [05:58:23]line ФМ: 0000000000871839 [05:58:23]line ФД: 228075 [05:58:23]line ФПД: 130853794493140 [05:58:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T055824&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228075&fm=130853794493140&tin=02508201610067®Number=0000000000091685&sum=100000 [05:58:23]OFD Sender: Processing packet 228075 [packets to send 38, broken 37] [05:58:23]ProducePacketName [05:58:23]name=ofd_packets/00228075 [05:58:23]OFD Sender: To server: pG, [05:58:23]CommunicateWithHost lk.salyk.kg:30040 [05:58:23]ConnectInit lk.salyk.kg [05:58:23]written 0, free lines is 4095 [05:58:24]Connected sock=10 [05:58:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 39 F6 07 01 F7 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 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 27 00 00 00 F4 03 04 00 00 3F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EB 7A 03 00 35 04 06 00 77 02 C5 F0 32 D4 9E 72 78 80 01 FC 93 20 [05:58:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 14 71 47 00 FF A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EB 7A 03 00 F4 03 04 00 F9 E9 16 67 B6 04 01 00 00 D6 68 A3 68 00 0E DE 5B [05:58:24]CommunicateWithHost err = 0 [05:58:24]CheckOFDResponse [05:58:24]1017 (14) - 77093643461234 [05:58:24]1041 (16) - 0000000000871839 [05:58:24]1040 (4) - 228075 [05:58:24]1012 (4) - 21.10.2024 23:55 [05:58:24]1206 (1) - 0 [05:58:24]OFD Sender: Remove packet 228075 [05:58:24]ProducePacketName [05:58:24]name=ofd_packets/00228075 [05:58:24]NVStorageDeleteData [05:58:24]Write to MH i2c: 01 00 00 E5 0D F2 [05:58:24]Write i2c OK [05:58:24]MH_I2C_Read... [05:58:24]Read from MH i2c: 01 [05:58:24]MH_I2C_Read... [05:58:24]Read from MH i2c: 01 07 00 [05:58:24]MH_I2C_Read... [05:58:24]Read from MH i2c: 01 07 00 E5 0D 00 00 00 00 00 9E 0C A3 [05:58:24]RasterBufferAndPrint [05:58:24]line [05:58:24]line [05:58:24]line [05:58:24]line [05:58:24]line [05:58:24]written 0, free lines is 3233 [05:58:24]MH_Cut [05:58:24]Write to MH i2c: D1 01 00 EC 0D 01 CB [05:58:24]Write i2c OK [05:58:24]MH_I2C_Read... [05:58:24]Read from MH i2c: D1 [05:58:24]MH_I2C_Read... [05:58:24]Read from MH i2c: D1 01 00 [05:58:24]MH_I2C_Read... [05:58:24]Read from MH i2c: D1 01 00 EC 0D 00 CA [05:58:24]Write to MH i2c: 01 00 00 ED 0D FA [05:58:24]Write i2c OK [05:58:24]MH_I2C_Read... [05:58:24]OFD Sender: No OFD packet to send [05:58:25]*** Cut start [05:58:25]*** Partial cut [05:58:25]*** CUTSNS_PIN = 1 [05:58:25]*** CUTSNS_PIN = 0 [05:58:25]*** Brake cut motor [05:58:25]Read from MH i2c: 01 [05:58:25]MH_I2C_Read... [05:58:25]*** Stop cut motor [05:58:26]*** Cut end [05:58:26]Read from MH i2c: 01 07 00 [05:58:26]MH_I2C_Read... [05:58:26]Read from MH i2c: 01 07 00 ED 0D 00 00 00 00 00 FF 0F 0F [05:58:26]process_action close_receipt done [05:58:26]requested_data is exist [05:58:26]produce_requested_data [05:58:26]requested_item fm.sn is exist - process it [05:58:26]wFMCommunicate request_size=4 [05:58:26]MH_SAM_APDU [05:58:26]CAPDU: 80 11 00 00 [05:58:26]Write to MH i2c: E2 08 00 EE 0D 80 11 00 00 00 00 00 00 75 [05:58:26]Write i2c OK [05:58:26]MH_I2C_Read... [05:58:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:58:26]Read from MH i2c: E2 [05:58:26]MH_I2C_Read... [05:58:26]Read from MH i2c: E2 17 00 [05:58:26]MH_I2C_Read... [05:58:26]Read from MH i2c: E2 17 00 EE 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CC [05:58:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [05:58:26]wFMCommunicate OK [05:58:26]requested_item fd.num is exist - process it [05:58:26]SAM_PROTO_GetFieldsCounters [05:58:26]wFMCommunicate request_size=4 [05:58:26]MH_SAM_APDU [05:58:26]CAPDU: 80 13 00 00 [05:58:26]Write to MH i2c: E2 08 00 EF 0D 80 13 00 00 00 00 00 00 78 [05:58:26]Write i2c OK [05:58:26]MH_I2C_Read... [05:58:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:58:26]Read from MH i2c: E2 [05:58:26]MH_I2C_Read... [05:58:26]Read from MH i2c: E2 62 00 [05:58:26]MH_I2C_Read... [05:58:26]Read from MH i2c: E2 62 00 EF 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EB 7A 03 00 0E 04 04 00 17 02 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 97 [05:58:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EB 7A 03 00 0E 04 04 00 17 02 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 [05:58:26]wFMCommunicate OK [05:58:26]SAM_PROTO_GetFieldsCounters done [05:58:26]requested_item shift.num is exist - process it [05:58:26]requested_item shift.opened is exist - process it [05:58:26]req_shift_opened [05:58:26]FM_GetShiftState [05:58:26]SAM_PROTO_GetShiftState [05:58:26]wFMCommunicate request_size=4 [05:58:26]MH_SAM_APDU [05:58:26]CAPDU: 80 13 01 00 [05:58:26]Write to MH i2c: E2 08 00 F0 0D 80 13 01 00 00 00 00 00 7A [05:58:26]Write i2c OK [05:58:26]MH_I2C_Read... [05:58:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:58:26]Read from MH i2c: E2 [05:58:26]MH_I2C_Read... [05:58:26]Read from MH i2c: E2 0E 00 [05:58:26]MH_I2C_Read... [05:58:26]Read from MH i2c: E2 0E 00 F0 0D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 41 [05:58:26]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [05:58:26]wFMCommunicate OK [05:58:26]SAM_PROTO_GetShiftState done [05:58:26]FM_GetShiftState done [05:58:26]req_shift_opened done [05:58:26]requested_item shift.open_date is exist - process it [05:58:26]req_shift_open_date [05:58:26]req_shift_open_date done [05:58:26]produce_requested_data done [05:58:26]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228075,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [05:58:26]process_action_free close_receipt [05:58:26]json_value_free [05:58:26]json_value_free done [05:58:26]process_json_proto returns [05:58:26]Send response to host [05:58:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228075,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [05:58:26]free response buf [05:58:26]execute_script done [05:58:26]execute_script returns [05:58:26]free content buf [05:58:26]Sock 9.Close socket [05:58:26]Sock 9.Thread stoped [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:15]OFD Sender: No OFD packet to send [06:03:20]OFD Sender: No OFD packet to send [06:03:25]OFD Sender: No OFD packet to send [06:03:30]OFD Sender: No OFD packet to send [06:03:35]OFD Sender: No OFD packet to send [06:03:40]OFD Sender: No OFD packet to send [06:03:45]OFD Sender: No OFD packet to send [06:03:50]OFD Sender: No OFD packet to send [06:03:55]OFD Sender: No OFD packet to send [06:04:00]OFD Sender: No OFD packet to send [06:04:05]OFD Sender: No OFD packet to send [06:04:10]OFD Sender: No OFD packet to send [06:04:15]OFD Sender: No OFD packet to send [06:04:20]OFD Sender: No OFD packet to send [06:04:25]OFD Sender: No OFD packet to send [06:04:30]OFD Sender: No OFD packet to send [06:04:35]OFD Sender: No OFD packet to send [06:04:40]OFD Sender: No OFD packet to send [06:04:45]OFD Sender: No OFD packet to send [06:04:50]OFD Sender: No OFD packet to send [06:04:50]recv_with_timeout no data received [06:04:55]OFD Sender: No OFD packet to send [06:05:00]OFD Sender: No OFD packet to send [06:05:05]OFD Sender: No OFD packet to send [06:05:07]recv_with_timeout no data received [06:05:10]OFD Sender: No OFD packet to send [06:05:15]OFD Sender: No OFD packet to send [06:05:20]OFD Sender: No OFD packet to send [06:05:23]recv_with_timeout no data received [06:05:25]OFD Sender: No OFD packet to send [06:05:30]OFD Sender: No OFD packet to send [06:05:35]OFD Sender: No OFD packet to send [06:05:39]recv_with_timeout no data received [06:05:40]OFD Sender: No OFD packet to send [06:05:45]OFD Sender: No OFD packet to send [06:05:50]OFD Sender: No OFD packet to send [06:05:55]OFD Sender: No OFD packet to send [06:06:00]OFD Sender: No OFD packet to send [06:06:05]OFD Sender: No OFD packet to send [06:06:10]OFD Sender: No OFD packet to send [06:06:15]OFD Sender: No OFD packet to send [06:06:20]OFD Sender: No OFD packet to send [06:06:25]OFD Sender: No OFD packet to send [06:06:30]OFD Sender: No OFD packet to send [06:06:35]OFD Sender: No OFD packet to send [06:06:40]OFD Sender: No OFD packet to send [06:06:45]OFD Sender: No OFD packet to send [06:06:50]OFD Sender: No OFD packet to send [06:06:55]OFD Sender: No OFD packet to send [06:07:00]OFD Sender: No OFD packet to send [06:07:05]OFD Sender: No OFD packet to send [06:07:10]OFD Sender: No OFD packet to send [06:07:15]OFD Sender: No OFD packet to send [06:07:20]OFD Sender: No OFD packet to send [06:07:25]OFD Sender: No OFD packet to send [06:07:30]OFD Sender: No OFD packet to send [06:07:35]OFD Sender: No OFD packet to send [06:07:40]OFD Sender: No OFD packet to send [06:07:45]OFD Sender: No OFD packet to send [06:07:50]OFD Sender: No OFD packet to send [06:07:55]OFD Sender: No OFD packet to send [06:08:00]OFD Sender: No OFD packet to send [06:08:05]OFD Sender: No OFD packet to send [06:08:10]OFD Sender: No OFD packet to send [06:08:15]OFD Sender: No OFD packet to send [06:08:20]OFD Sender: No OFD packet to send [06:08:25]OFD Sender: No OFD packet to send [06:08:30]OFD Sender: No OFD packet to send [06:08:35]OFD Sender: No OFD packet to send [06:08:40]OFD Sender: No OFD packet to send [06:08:45]OFD Sender: No OFD packet to send [06:08:50]OFD Sender: No OFD packet to send [06:08:55]OFD Sender: No OFD packet to send [06:09:00]OFD Sender: No OFD packet to send [06:09:05]OFD Sender: No OFD packet to send [06:09:10]OFD Sender: No OFD packet to send [06:09:15]OFD Sender: No OFD packet to send [06:09:20]OFD Sender: No OFD packet to send [06:09:25]OFD Sender: No OFD packet to send [06:09:30]OFD Sender: No OFD packet to send [06:09:35]OFD Sender: No OFD packet to send [06:09:40]OFD Sender: No OFD packet to send [06:09:45]OFD Sender: No OFD packet to send [06:09:50]OFD Sender: No OFD packet to send [06:09:55]OFD Sender: No OFD packet to send [06:10:00]OFD Sender: No OFD packet to send [06:10:05]OFD Sender: No OFD packet to send [06:10:10]OFD Sender: No OFD packet to send [06:10:15]OFD Sender: No OFD packet to send [06:10:20]OFD Sender: No OFD packet to send [06:10:25]OFD Sender: No OFD packet to send [06:10:30]OFD Sender: No OFD packet to send [06:10:35]OFD Sender: No OFD packet to send [06:10:40]OFD Sender: No OFD packet to send [06:10:45]OFD Sender: No OFD packet to send [06:10:50]OFD Sender: No OFD packet to send [06:10:55]OFD Sender: No OFD packet to send [06:11:00]OFD Sender: No OFD packet to send [06:11:05]OFD Sender: No OFD packet to send [06:11:10]OFD Sender: No OFD packet to send [06:11:15]OFD Sender: No OFD packet to send [06:11:20]OFD Sender: No OFD packet to send [06:11:25]OFD Sender: No OFD packet to send [06:11:30]OFD Sender: No OFD packet to send [06:11:35]OFD Sender: No OFD packet to send [06:11:40]OFD Sender: No OFD packet to send [06:11:45]OFD Sender: No OFD packet to send [06:11:50]OFD Sender: No OFD packet to send [06:11:55]OFD Sender: No OFD packet to send [06:12:00]OFD Sender: No OFD packet to send [06:12:05]OFD Sender: No OFD packet to send [06:12:10]OFD Sender: No OFD packet to send [06:12:15]OFD Sender: No OFD packet to send [06:12:20]OFD Sender: No OFD packet to send [06:12:25]OFD Sender: No OFD packet to send [06:12:30]OFD Sender: No OFD packet to send [06:12:35]OFD Sender: No OFD packet to send [06:12:40]OFD Sender: No OFD packet to send [06:12:45]OFD Sender: No OFD packet to send [06:12:50]OFD Sender: No OFD packet to send [06:12:55]OFD Sender: No OFD packet to send [06:13:00]OFD Sender: No OFD packet to send [06:13:05]OFD Sender: No OFD packet to send [06:13:10]OFD Sender: No OFD packet to send [06:13:15]OFD Sender: No OFD packet to send [06:13:20]OFD Sender: No OFD packet to send [06:13:25]OFD Sender: No OFD packet to send [06:13:30]OFD Sender: No OFD packet to send [06:13:35]OFD Sender: No OFD packet to send [06:13:40]OFD Sender: No OFD packet to send [06:13:45]OFD Sender: No OFD packet to send [06:13:50]OFD Sender: No OFD packet to send [06:13:55]OFD Sender: No OFD packet to send [06:14:00]OFD Sender: No OFD packet to send [06:14:05]OFD Sender: No OFD packet to send [06:14:10]OFD Sender: No OFD packet to send [06:14:15]OFD Sender: No OFD packet to send [06:14:20]OFD Sender: No OFD packet to send [06:14:25]OFD Sender: No OFD packet to send [06:14:30]OFD Sender: No OFD packet to send [06:14:35]OFD Sender: No OFD packet to send [06:14:40]OFD Sender: No OFD packet to send [06:14:45]OFD Sender: No OFD packet to send [06:14:50]OFD Sender: No OFD packet to send [06:14:55]OFD Sender: No OFD packet to send [06:14:59]recv_with_timeout no data received [06:15:00]OFD Sender: No OFD packet to send [06:15:25]OFD Sender: No OFD packet to send [06:15:30]OFD Sender: No OFD packet to send [06:15:35]OFD Sender: No OFD packet to send [06:15:37]recv_with_timeout no data received [06:15:40]OFD Sender: No OFD packet to send [06:15:45]OFD Sender: No OFD packet to send [06:15:50]OFD Sender: No OFD packet to send [06:15:55]OFD Sender: No OFD packet to send [06:16:00]OFD Sender: No OFD packet to send [06:16:05]OFD Sender: No OFD packet to send [06:16:10]OFD Sender: No OFD packet to send [06:16:15]OFD Sender: No OFD packet to send [06:16:35]OFD Sender: No OFD packet to send [06:16:40]OFD Sender: No OFD packet to send [06:16:45]OFD Sender: No OFD packet to send [06:16:50]OFD Sender: No OFD packet to send [06:16:55]OFD Sender: No OFD packet to send [06:17:00]OFD Sender: No OFD packet to send [06:17:05]OFD Sender: No OFD packet to send [06:17:10]OFD Sender: No OFD packet to send [06:17:15]OFD Sender: No OFD packet to send [06:17:20]OFD Sender: No OFD packet to send [06:17:25]OFD Sender: No OFD packet to send [06:17:30]OFD Sender: No OFD packet to send [06:17:35]OFD Sender: No OFD packet to send [06:17:40]OFD Sender: No OFD packet to send [06:17:45]OFD Sender: No OFD packet to send [06:17:50]OFD Sender: No OFD packet to send [06:17:55]OFD Sender: No OFD packet to send [06:17:57]accept exits with 7 [06:17:57]New connection [06:17:57]New thread 3066994020 created [06:17:57]Thread 3067137380 joined [06:17:57]Waiting for new connection... [06:17:57] Sock 7.Parse request [06:17:57]Sock 7.Check first char [06:17:57]Sock 7.First char is OK [06:17:57]request: POST /json_proto HTTP/1.0 [06:17:57]Method: POST [06:17:57]URL: /json_proto [06:17:57]Method is POST - this is cgi request [06:17:57]url: /json_proto [06:17:57]query_string will be loaded in cgi processing [06:17:57]execute_cgi json_proto POST (null) [06:17:57]execute_cgi path=json_proto method=POST [06:17:57]POST find Content-Length [06:17:57]Host: 172.17.44.195:8080 [06:17:57]Content-Length: 683 [06:17:57]Content-Type: application/json [06:17:57] [06:17:57]POST finish read [06:17:57]Found Content-Length = 683 [06:17:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "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" ] } } [06:17:57]execute_script... [06: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)1964273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "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" ] } } [06:17:57]POST & json_proto [06:17:57]process_json_proto [06:17:57]json parsed OK: [06:17:57]protocol is kg_v1.0 [06:17:57]action value=close_receipt [06:17:57]process_action close_receipt [06:17:57]cmd_close_receipt [06:17:57]MH_GetDate [06:17:57]Write to MH i2c: F0 00 00 F1 0D ED [06:17:57]Write i2c OK [06:17:57]MH_I2C_Read... [06:17:57]Read from MH i2c: F0 [06:17:57]MH_I2C_Read... [06:17:57]Read from MH i2c: F0 09 00 [06:17:57]MH_I2C_Read... [06:17:57]Read from MH i2c: F0 09 00 F1 0D 00 97 43 17 67 82 C9 CF 66 CE [06:17:57]GetLastDocTimeStamp 1729576704 [06:17:57]current date 1729577879 [06:17:57]FM_GetShiftState [06:17:57]SAM_PROTO_GetShiftState [06:17:57]wFMCommunicate request_size=4 [06:17:57]MH_SAM_APDU [06:17:57]CAPDU: 80 13 01 00 [06:17:57]Write to MH i2c: E2 08 00 F2 0D 80 13 01 00 00 00 00 00 7C [06:17:57]Write i2c OK [06:17:57]MH_I2C_Read... [06:17:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:17:57]Read from MH i2c: E2 [06:17:57]MH_I2C_Read... [06:17:57]Read from MH i2c: E2 0E 00 [06:17:57]MH_I2C_Read... [06:17:57]Read from MH i2c: E2 0E 00 F2 0D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 43 [06:17:57]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [06:17:57]wFMCommunicate OK [06:17:57]SAM_PROTO_GetShiftState done [06:17:57]FM_GetShiftState done [06:17:57]opened in 1729555538 [06:17:57]opened+sec_in_day 1729641938 [06:17:57]quantity*price = 100015 [06:17:57]sum+1 = 100017 [06:17:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 40 22.10.2024 06:17 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228076 ФПД: 151356258747620 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T061759&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228076&fm=151356258747620&tin=02508201610067®Number=0000000000091685&sum=100000 [06:17:58]StoreToDocumentArchive [06:17:58]shift 535 fd 228076 [06:17:58]save to /storage/0535/doc_00228076 [06:17:58]save last doc name /storage/0535/doc_00228076 to /storage/kkm_last_doc_name [06:17:58]save OK [06:17:58]Clear old archive folders... [06:17:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:17:58]tlvbuf is 00A5EF90 [06:17:58]SAM_PROTO_ClearQueue [06:17:58]wFMCommunicate request_size=4 [06:17:58]MH_SAM_APDU [06:17:58]CAPDU: 80 09 00 00 [06:17:58]Write to MH i2c: E2 08 00 FF 0D 80 09 00 00 00 00 00 00 7E [06:17:58]Write i2c OK [06:17:58]MH_I2C_Read... [06:17:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:17:58]Read from MH i2c: E2 [06:17:58]MH_I2C_Read... [06:17:58]Read from MH i2c: E2 03 00 [06:17:58]MH_I2C_Read... [06:17:58]Read from MH i2c: E2 03 00 FF 0D 00 90 00 80 [06:17:58]RAPDU: 90 00 [06:17:58]wFMCommunicate OK [06:17:58]SAM_PROTO_ClearQueue done [06:17:58]KKMCreateOFDPacket [06:17:58]OFDProtocolAddRootSTLVToBuf [06:17:58]FM_MakeSignedData [06:17:58]FM_MakeSignedData [06:17:58]SAM_PROTO_SignData [06:17:58]wFMCommunicate request_size=4 [06:17:58]MH_SAM_APDU [06:17:58]CAPDU: 80 0D 01 02 [06:17:58]Write to MH i2c: E2 08 00 00 0E 80 0D 01 02 00 00 00 00 87 [06:17:58]Write i2c OK [06:17:58]MH_I2C_Read... [06:17:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:17:58]Read from MH i2c: E2 [06:17:58]MH_I2C_Read... [06:17:58]Read from MH i2c: E2 03 00 [06:17:58]MH_I2C_Read... [06:17:58]Read from MH i2c: E2 03 00 00 0E 00 90 00 82 [06:17:58]RAPDU: 90 00 [06:17:58]wFMCommunicate OK [06:17:58]wFMCommunicate request_size=255 [06:17:58]MH_SAM_APDU [06:17: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 28 00 00 00 F4 03 04 00 97 43 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EC 7A 03 00 35 04 06 00 89 [06:17:58]Write to MH i2c: E2 02 01 01 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 28 00 00 00 F4 03 04 00 97 43 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EC 7A 03 00 35 04 06 00 89 00 00 A3 [06:17:58]Write i2c OK [06:17:58]MH_I2C_Read... [06:17:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:17:58]Read from MH i2c: E2 [06:17:58]MH_I2C_Read... [06:17:58]Read from MH i2c: E2 03 00 [06:17:58]MH_I2C_Read... [06:17:58]Read from MH i2c: E2 03 00 01 0E 00 90 00 83 [06:17:58]RAPDU: 90 00 [06:17:58]wFMCommunicate OK [06:17:58]wFMCommunicate request_size=10 [06:17:58]MH_SAM_APDU [06:17:58]CAPDU: 80 0D 02 02 05 A8 60 09 84 E4 [06:17:58]Write to MH i2c: E2 0D 00 02 0E 80 0D 02 02 05 00 A8 60 09 84 E4 00 00 0D [06:17:58]Write i2c OK [06:17:58]MH_I2C_Read... [06:17:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:17:58]Read from MH i2c: E2 [06:17:58]MH_I2C_Read... [06:17:58]Read from MH i2c: E2 03 00 [06:17:58]MH_I2C_Read... [06:17:58]Read from MH i2c: E2 03 00 02 0E 00 90 00 84 [06:17:58]RAPDU: 90 00 [06:17:58]wFMCommunicate OK [06:17:58]wFMCommunicate request_size=4 [06:17:58]MH_SAM_APDU [06:17:58]CAPDU: 80 0D 03 02 [06:17:58]Write to MH i2c: E2 08 00 03 0E 80 0D 03 02 00 00 00 00 8C [06:17:58]Write i2c OK [06:17:58]MH_I2C_Read... [06:17:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:17:58]Read from MH i2c: E2 [06:17:58]MH_I2C_Read... [06:17:58]Read from MH i2c: E2 0B 00 [06:17:58]MH_I2C_Read... [06:17:58]Read from MH i2c: E2 0B 00 03 0E 00 C5 DB 39 94 AE 9D 06 E9 90 00 34 [06:17:58]RAPDU: C5 DB 39 94 AE 9D 06 E9 90 00 [06:17:58]wFMCommunicate OK [06:17:58]SAM_PROTO_SignData done [06:17:58]FM_MakeSignedData done [06:17:58]CreateOFDProtocolMessage [06:17:58]wFMCommunicate request_size=4 [06:17:58]MH_SAM_APDU [06:17:58]CAPDU: 80 11 00 00 [06:17:58]Write to MH i2c: E2 08 00 04 0E 80 11 00 00 00 00 00 00 8C [06:17:58]Write i2c OK [06:17:58]MH_I2C_Read... [06:17:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:17:58]Read from MH i2c: E2 [06:17:58]MH_I2C_Read... [06:17:58]Read from MH i2c: E2 17 00 [06:17:58]MH_I2C_Read... [06:17:58]Read from MH i2c: E2 17 00 04 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E3 [06:17:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:17:58]wFMCommunicate OK [06:17:58]CreateOFDProtocolMessage done [06:17:58]OFDSenderStorePacket 228076 [06:17:58]StoreOFDPacket docnum=228076 [06:17:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 2F F8 07 01 70 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 28 00 00 00 F4 03 04 00 97 43 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EC 7A 03 00 35 04 06 00 89 A8 60 09 84 E4 C5 DB 39 94 AE 9D 06 E9 [06:17:58]CheckFolder [06:17:58]dirname=/storage/ofd_packets [06:17:58]CheckFolder done [06:17:58]ProducePacketName [06:17:58]name=ofd_packets/00228076 [06:17:58]NVStorageSaveData ofd_packets/00228076 [06:17:58]File name is /storage/ofd_packets/00228076 [06:17:58]Write 301 bytes [06:17:58]NVStorageSaveData done [06:17:58]OFDSenderStorePacket done [06:17:58]KKMCreateOFDPacket done [06:17:58]NVStorageSaveData kkm_last_timestamp [06:17:58]File name is /storage/kkm_last_timestamp [06:17:58]Write 4 bytes [06:17:58]NVStorageSaveData done [06:17:58]ExternCall_PrintAddStr [06:17:58]wPrintStart [06:17:58]Write to MH i2c: 01 00 00 05 0E 13 [06:17:58]Write i2c OK [06:17:58]MH_I2C_Read... [06:17:58]Read from MH i2c: 01 [06:17:58]MH_I2C_Read... [06:17:58]Read from MH i2c: 01 07 00 [06:17:58]MH_I2C_Read... [06:17:58]Read from MH i2c: 01 07 00 05 0E 00 00 00 00 00 FF 0F 28 [06:17:58]RasterBufferAndPrint [06:17:58]line Счет N : (1)1964273 [06:17:58]line ИНН: 02508201610067 [06:17:58]line Контрольно-Кассовый Чек [06:17:58]line ПРОДАЖА [06:17:58]line ТРК (МРК, ГНК) : 33 [06:17:58]line Товар: 2710124130 [06:17:58]line Аи-92-К-5 [06:17:58]line 14.950 * 66.90 [06:17:58]line = 1000.16 [06:17:58]line НДС 12% НСП 1% [06:17:58]line > о реализуемом товаре [06:17:58]line ОКРУГЛЕНИЕ: -0.16 [06:17:58]line ИТОГО: 1000.00 [06:17:58]line Внесено: 1000.00 [06:17:58]line СДАЧА: 0.00 [06:17:58]line НСП 1% : 8.85 [06:17:58]line НДС 12% : 106.21 [06:17:58]line Наличными: 1000.00 [06:17:58]line Безнал.: 0.00 [06:17:58]line Место: АЗС № 133 "Партнер Нефть" [06:17:58]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [06:17:58]line СНО: Общий режим [06:17:58]line Чек 40 22.10.2024 06:17 [06:17:58]line Смена: 535 ФФД: 1.0 [06:17:58]line ЗНМ: 0300000091 [06:17:58]line РНМ: 0000000000091685 [06:17:58]line Версия ККМ: 001 [06:17:58]line ФМ: 0000000000871839 [06:17:58]line ФД: 228076 [06:17:58]line ФПД: 151356258747620 [06:17:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T061759&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228076&fm=151356258747620&tin=02508201610067®Number=0000000000091685&sum=100000 [06:17:59]OFD Sender: Processing packet 228076 [packets to send 38, broken 37] [06:17:59]ProducePacketName [06:17:59]name=ofd_packets/00228076 [06:17:59]OFD Sender: To server: pG, [06:17:59]CommunicateWithHost lk.salyk.kg:30040 [06:17:59]ConnectInit lk.salyk.kg [06:17:59]written 0, free lines is 4095 [06:17:59]Connected sock=11 [06:17:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 2F F8 07 01 70 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 28 00 00 00 F4 03 04 00 97 43 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EC 7A 03 00 35 04 06 00 89 A8 60 09 84 E4 C5 DB 39 94 AE 9D 06 E9 [06:17:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 6A 12 47 00 EC 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EC 7A 03 00 F4 03 04 00 90 EE 16 67 B6 04 01 00 00 57 11 4F 5C FB DE 6C 68 [06:17:59]CommunicateWithHost err = 0 [06:17:59]CheckOFDResponse [06:17:59]1017 (14) - 77093643461234 [06:17:59]1041 (16) - 0000000000871839 [06:17:59]1040 (4) - 228076 [06:17:59]1012 (4) - 22.10.2024 00:15 [06:17:59]1206 (1) - 0 [06:17:59]OFD Sender: Remove packet 228076 [06:17:59]ProducePacketName [06:17:59]name=ofd_packets/00228076 [06:17:59]NVStorageDeleteData [06:17:59]Write to MH i2c: 01 00 00 2F 0E 3D [06:17:59]Write i2c OK [06:17:59]MH_I2C_Read... [06:17:59]Read from MH i2c: 01 [06:17:59]MH_I2C_Read... [06:17:59]Read from MH i2c: 01 07 00 [06:17:59]MH_I2C_Read... [06:17:59]Read from MH i2c: 01 07 00 2F 0E 00 00 00 00 00 A0 0C F0 [06:17:59]RasterBufferAndPrint [06:17:59]line [06:17:59]line [06:17:59]line [06:17:59]line [06:17:59]line [06:17:59]written 0, free lines is 3236 [06:17:59]MH_Cut [06:17:59]Write to MH i2c: D1 01 00 36 0E 01 16 [06:17:59]Write i2c OK [06:17:59]MH_I2C_Read... [06:17:59]Read from MH i2c: D1 [06:17:59]MH_I2C_Read... [06:17:59]Read from MH i2c: D1 01 00 [06:17:59]MH_I2C_Read... [06:17:59]Read from MH i2c: D1 01 00 36 0E 00 15 [06:17:59]Write to MH i2c: 01 00 00 37 0E 45 [06:17:59]Write i2c OK [06:17:59]MH_I2C_Read... [06:18:00]OFD Sender: No OFD packet to send [06:18:00]*** Cut start [06:18:00]*** Partial cut [06:18:00]*** CUTSNS_PIN = 1 [06:18:00]*** CUTSNS_PIN = 0 [06:18:00]*** Brake cut motor [06:18:01]Read from MH i2c: 01 [06:18:01]MH_I2C_Read... [06:18:01]*** Stop cut motor [06:18:01]*** Cut end [06:18:01]Read from MH i2c: 01 07 00 [06:18:01]MH_I2C_Read... [06:18:01]Read from MH i2c: 01 07 00 37 0E 00 00 00 00 00 FF 0F 5A [06:18:01]process_action close_receipt done [06:18:01]requested_data is exist [06:18:01]produce_requested_data [06:18:01]requested_item fm.sn is exist - process it [06:18:01]wFMCommunicate request_size=4 [06:18:01]MH_SAM_APDU [06:18:01]CAPDU: 80 11 00 00 [06:18:01]Write to MH i2c: E2 08 00 38 0E 80 11 00 00 00 00 00 00 C0 [06:18:01]Write i2c OK [06:18:01]MH_I2C_Read... [06:18:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:18:01]Read from MH i2c: E2 [06:18:01]MH_I2C_Read... [06:18:01]Read from MH i2c: E2 17 00 [06:18:01]MH_I2C_Read... [06:18:01]Read from MH i2c: E2 17 00 38 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 17 [06:18:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:18:01]wFMCommunicate OK [06:18:01]requested_item fd.num is exist - process it [06:18:01]SAM_PROTO_GetFieldsCounters [06:18:01]wFMCommunicate request_size=4 [06:18:01]MH_SAM_APDU [06:18:01]CAPDU: 80 13 00 00 [06:18:01]Write to MH i2c: E2 08 00 39 0E 80 13 00 00 00 00 00 00 C3 [06:18:01]Write i2c OK [06:18:01]MH_I2C_Read... [06:18:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:18:01]Read from MH i2c: E2 [06:18:01]MH_I2C_Read... [06:18:01]Read from MH i2c: E2 62 00 [06:18:01]MH_I2C_Read... [06:18:01]Read from MH i2c: E2 62 00 39 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EC 7A 03 00 0E 04 04 00 17 02 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 E6 [06:18:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EC 7A 03 00 0E 04 04 00 17 02 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 [06:18:01]wFMCommunicate OK [06:18:01]SAM_PROTO_GetFieldsCounters done [06:18:01]requested_item shift.num is exist - process it [06:18:01]requested_item shift.opened is exist - process it [06:18:01]req_shift_opened [06:18:01]FM_GetShiftState [06:18:01]SAM_PROTO_GetShiftState [06:18:01]wFMCommunicate request_size=4 [06:18:01]MH_SAM_APDU [06:18:01]CAPDU: 80 13 01 00 [06:18:01]Write to MH i2c: E2 08 00 3A 0E 80 13 01 00 00 00 00 00 C5 [06:18:01]Write i2c OK [06:18:01]MH_I2C_Read... [06:18:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:18:01]Read from MH i2c: E2 [06:18:01]MH_I2C_Read... [06:18:01]Read from MH i2c: E2 0E 00 [06:18:01]MH_I2C_Read... [06:18:01]Read from MH i2c: E2 0E 00 3A 0E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 8C [06:18:01]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [06:18:01]wFMCommunicate OK [06:18:01]SAM_PROTO_GetShiftState done [06:18:01]FM_GetShiftState done [06:18:01]req_shift_opened done [06:18:01]requested_item shift.open_date is exist - process it [06:18:01]req_shift_open_date [06:18:01]req_shift_open_date done [06:18:01]produce_requested_data done [06:18:01]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228076,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [06:18:01]process_action_free close_receipt [06:18:01]json_value_free [06:18:01]json_value_free done [06:18:01]process_json_proto returns [06:18:01]Send response to host [06:18:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228076,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [06:18:01]free response buf [06:18:01]execute_script done [06:18:01]execute_script returns [06:18:01]free content buf [06:18:01]Sock 7.Close socket [06:18:01]Sock 7.Thread stoped [06:18:05]OFD Sender: No OFD packet to send [06:18:10]OFD Sender: No OFD packet to send [06:18:15]OFD Sender: No OFD packet to send [06:18:20]OFD Sender: No OFD packet to send [06:18:25]OFD Sender: No OFD packet to send [06:18:30]OFD Sender: No OFD packet to send [06:18:35]OFD Sender: No OFD packet to send [06:18:40]OFD Sender: No OFD packet to send [06:18:41]ConnectInit Can't connect to host [06:18:45]OFD Sender: No OFD packet to send [06:18:50]OFD Sender: No OFD packet to send [06:18:55]OFD Sender: No OFD packet to send [06:19:00]OFD Sender: No OFD packet to send [06:19:05]OFD Sender: No OFD packet to send [06:19:10]OFD Sender: No OFD packet to send [06:19:15]OFD Sender: No OFD packet to send [06:19:20]OFD Sender: No OFD packet to send [06:19:25]OFD Sender: No OFD packet to send [06:19:30]OFD Sender: No OFD packet to send [06:19:35]OFD Sender: No OFD packet to send [06:19:40]OFD Sender: No OFD packet to send [06:19:45]OFD Sender: No OFD packet to send [06:19:50]OFD Sender: No OFD packet to send [06:19:55]OFD Sender: No OFD packet to send [06:20:00]OFD Sender: No OFD packet to send [06:20:05]OFD Sender: No OFD packet to send [06:20:10]OFD Sender: No OFD packet to send [06:20:15]OFD Sender: No OFD packet to send [06:20:20]OFD Sender: No OFD packet to send [06:20:25]OFD Sender: No OFD packet to send [06:20:30]OFD Sender: No OFD packet to send [06:20:35]OFD Sender: No OFD packet to send [06:20:40]OFD Sender: No OFD packet to send [06:20:45]OFD Sender: No OFD packet to send [06:20:50]OFD Sender: No OFD packet to send [06:20:55]OFD Sender: No OFD packet to send [06:21:00]OFD Sender: No OFD packet to send [06:21:05]OFD Sender: No OFD packet to send [06:21:10]OFD Sender: No OFD packet to send [06:21:15]OFD Sender: No OFD packet to send [06:21:20]OFD Sender: No OFD packet to send [06:21:25]OFD Sender: No OFD packet to send [06:21:30]OFD Sender: No OFD packet to send [06:21:35]OFD Sender: No OFD packet to send [06:21:40]OFD Sender: No OFD packet to send [06:21:45]OFD Sender: No OFD packet to send [06:21:50]OFD Sender: No OFD packet to send [06:21:55]OFD Sender: No OFD packet to send [06:22:00]OFD Sender: No OFD packet to send [06:22:05]OFD Sender: No OFD packet to send [06:22:10]OFD Sender: No OFD packet to send [06:22:15]OFD Sender: No OFD packet to send [06:22:20]OFD Sender: No OFD packet to send [06:22:25]OFD Sender: No OFD packet to send [06:22:30]OFD Sender: No OFD packet to send [06:22:35]OFD Sender: No OFD packet to send [06:22:40]OFD Sender: No OFD packet to send [06:22:45]OFD Sender: No OFD packet to send [06:22:50]OFD Sender: No OFD packet to send [06:22:55]OFD Sender: No OFD packet to send [06:23:00]OFD Sender: No OFD packet to send [06:23:05]OFD Sender: No OFD packet to send [06:23:10]OFD Sender: No OFD packet to send [06:23:15]OFD Sender: No OFD packet to send [06:23:20]OFD Sender: No OFD packet to send [06:23:25]OFD Sender: No OFD packet to send [06:23:30]OFD Sender: No OFD packet to send [06:23:35]OFD Sender: No OFD packet to send [06:23:40]OFD Sender: No OFD packet to send [06:23:45]OFD Sender: No OFD packet to send [06:23:50]OFD Sender: No OFD packet to send [06:23:53]accept exits with 10 [06:23:53]New connection [06:23:53]New thread 3067137380 created [06:23:53]Thread 3066994020 joined [06:23:53]Waiting for new connection... [06:23:53] Sock 10.Parse request [06:23:53]Sock 10.Check first char [06:23:53]Sock 10.First char is OK [06:23:53]request: POST /json_proto HTTP/1.0 [06:23:53]Method: POST [06:23:53]URL: /json_proto [06:23:53]Method is POST - this is cgi request [06:23:53]url: /json_proto [06:23:53]query_string will be loaded in cgi processing [06:23:53]execute_cgi json_proto POST (null) [06:23:53]execute_cgi path=json_proto method=POST [06:23:53]POST find Content-Length [06:23:53]Host: 172.17.44.195:8080 [06:23:53]Content-Length: 680 [06:23:53]Content-Type: application/json [06:23:53] [06:23:53]POST finish read [06:23:53]Found Content-Length = 680 [06:23:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [06:23:53]execute_script... [06:23: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)1964274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [06:23:53]POST & json_proto [06:23:53]process_json_proto [06:23:53]json parsed OK: [06:23:53]protocol is kg_v1.0 [06:23:53]action value=close_receipt [06:23:53]process_action close_receipt [06:23:53]cmd_close_receipt [06:23:53]MH_GetDate [06:23:53]Write to MH i2c: F0 00 00 3B 0E 38 [06:23:53]Write i2c OK [06:23:53]MH_I2C_Read... [06:23:53]Read from MH i2c: F0 [06:23:53]MH_I2C_Read... [06:23:53]Read from MH i2c: F0 09 00 [06:23:53]MH_I2C_Read... [06:23:53]Read from MH i2c: F0 09 00 3B 0E 00 FB 44 17 67 82 C9 CF 66 7E [06:23:53]GetLastDocTimeStamp 1729577879 [06:23:53]current date 1729578235 [06:23:53]FM_GetShiftState [06:23:53]SAM_PROTO_GetShiftState [06:23:53]wFMCommunicate request_size=4 [06:23:53]MH_SAM_APDU [06:23:53]CAPDU: 80 13 01 00 [06:23:53]Write to MH i2c: E2 08 00 3C 0E 80 13 01 00 00 00 00 00 C7 [06:23:53]Write i2c OK [06:23:53]MH_I2C_Read... [06:23:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:23:53]Read from MH i2c: E2 [06:23:53]MH_I2C_Read... [06:23:53]Read from MH i2c: E2 0E 00 [06:23:53]MH_I2C_Read... [06:23:53]Read from MH i2c: E2 0E 00 3C 0E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 8E [06:23:53]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [06:23:53]wFMCommunicate OK [06:23:53]SAM_PROTO_GetShiftState done [06:23:53]FM_GetShiftState done [06:23:53]opened in 1729555538 [06:23:53]opened+sec_in_day 1729641938 [06:23:53]quantity*price = 150037 [06:23:53]sum+1 = 150039 [06:23:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 41 22.10.2024 06:23 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228077 ФПД: 74612161508622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T062356&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228077&fm=74612161508622&tin=02508201610067®Number=0000000000091685&sum=150000 [06:23:54]StoreToDocumentArchive [06:23:54]shift 535 fd 228077 [06:23:54]save to /storage/0535/doc_00228077 [06:23:54]save last doc name /storage/0535/doc_00228077 to /storage/kkm_last_doc_name [06:23:54]save OK [06:23:54]Clear old archive folders... [06:23:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:23:54]tlvbuf is 00841B80 [06:23:54]SAM_PROTO_ClearQueue [06:23:54]wFMCommunicate request_size=4 [06:23:54]MH_SAM_APDU [06:23:54]CAPDU: 80 09 00 00 [06:23:54]Write to MH i2c: E2 08 00 49 0E 80 09 00 00 00 00 00 00 C9 [06:23:54]Write i2c OK [06:23:54]MH_I2C_Read... [06:23:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:23:54]Read from MH i2c: E2 [06:23:54]MH_I2C_Read... [06:23:54]Read from MH i2c: E2 03 00 [06:23:54]MH_I2C_Read... [06:23:54]Read from MH i2c: E2 03 00 49 0E 00 90 00 CB [06:23:54]RAPDU: 90 00 [06:23:54]wFMCommunicate OK [06:23:54]SAM_PROTO_ClearQueue done [06:23:54]KKMCreateOFDPacket [06:23:54]OFDProtocolAddRootSTLVToBuf [06:23:54]FM_MakeSignedData [06:23:54]FM_MakeSignedData [06:23:54]SAM_PROTO_SignData [06:23:54]wFMCommunicate request_size=4 [06:23:54]MH_SAM_APDU [06:23:54]CAPDU: 80 0D 01 02 [06:23:54]Write to MH i2c: E2 08 00 4A 0E 80 0D 01 02 00 00 00 00 D1 [06:23:54]Write i2c OK [06:23:54]MH_I2C_Read... [06:23:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:23:54]Read from MH i2c: E2 [06:23:54]MH_I2C_Read... [06:23:54]Read from MH i2c: E2 03 00 [06:23:54]MH_I2C_Read... [06:23:54]Read from MH i2c: E2 03 00 4A 0E 00 90 00 CC [06:23:54]RAPDU: 90 00 [06:23:54]wFMCommunicate OK [06:23:54]wFMCommunicate request_size=255 [06:23:54]MH_SAM_APDU [06:23:54]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 FC 44 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 ED 7A 03 00 35 04 06 00 43 DB FF 61 [06:23:54]Write to MH i2c: E2 02 01 4B 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 FC 44 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 ED 7A 03 00 35 04 06 00 43 DB FF 61 00 00 BD [06:23:54]Write i2c OK [06:23:54]MH_I2C_Read... [06:23:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:23:55]Read from MH i2c: E2 [06:23:55]MH_I2C_Read... [06:23:55]Read from MH i2c: E2 03 00 [06:23:55]MH_I2C_Read... [06:23:55]Read from MH i2c: E2 03 00 4B 0E 00 90 00 CD [06:23:55]RAPDU: 90 00 [06:23:55]wFMCommunicate OK [06:23:55]wFMCommunicate request_size=7 [06:23:55]MH_SAM_APDU [06:23:55]CAPDU: 80 0D 02 02 02 F5 0E [06:23:55]Write to MH i2c: E2 0A 00 4C 0E 80 0D 02 02 02 00 F5 0E 00 00 DB [06:23:55]Write i2c OK [06:23:55]MH_I2C_Read... [06:23:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:23:55]Read from MH i2c: E2 [06:23:55]MH_I2C_Read... [06:23:55]Read from MH i2c: E2 03 00 [06:23:55]MH_I2C_Read... [06:23:55]Read from MH i2c: E2 03 00 4C 0E 00 90 00 CE [06:23:55]RAPDU: 90 00 [06:23:55]wFMCommunicate OK [06:23:55]wFMCommunicate request_size=4 [06:23:55]MH_SAM_APDU [06:23:55]CAPDU: 80 0D 03 02 [06:23:55]Write to MH i2c: E2 08 00 4D 0E 80 0D 03 02 00 00 00 00 D6 [06:23:55]Write i2c OK [06:23:55]MH_I2C_Read... [06:23:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:23:55]Read from MH i2c: E2 [06:23:55]MH_I2C_Read... [06:23:55]Read from MH i2c: E2 0B 00 [06:23:55]MH_I2C_Read... [06:23:55]Read from MH i2c: E2 0B 00 4D 0E 00 6F BC 3D 4D 44 AC 1F 46 90 00 E1 [06:23:55]RAPDU: 6F BC 3D 4D 44 AC 1F 46 90 00 [06:23:55]wFMCommunicate OK [06:23:55]SAM_PROTO_SignData done [06:23:55]FM_MakeSignedData done [06:23:55]CreateOFDProtocolMessage [06:23:55]wFMCommunicate request_size=4 [06:23:55]MH_SAM_APDU [06:23:55]CAPDU: 80 11 00 00 [06:23:55]Write to MH i2c: E2 08 00 4E 0E 80 11 00 00 00 00 00 00 D6 [06:23:55]Write i2c OK [06:23:55]MH_I2C_Read... [06:23:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:23:55]Read from MH i2c: E2 [06:23:55]MH_I2C_Read... [06:23:55]Read from MH i2c: E2 17 00 [06:23:55]MH_I2C_Read... [06:23:55]Read from MH i2c: E2 17 00 4E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2D [06:23:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:23:55]wFMCommunicate OK [06:23:55]CreateOFDProtocolMessage done [06:23:55]OFDSenderStorePacket 228077 [06:23:55]StoreOFDPacket docnum=228077 [06:23:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 05 EE 04 01 B7 FD 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 FC 44 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 ED 7A 03 00 35 04 06 00 43 DB FF 61 F5 0E 6F BC 3D 4D 44 AC 1F 46 [06:23:55]CheckFolder [06:23:55]dirname=/storage/ofd_packets [06:23:55]CheckFolder done [06:23:55]ProducePacketName [06:23:55]name=ofd_packets/00228077 [06:23:55]NVStorageSaveData ofd_packets/00228077 [06:23:55]File name is /storage/ofd_packets/00228077 [06:23:55]Write 298 bytes [06:23:55]NVStorageSaveData done [06:23:55]OFDSenderStorePacket done [06:23:55]KKMCreateOFDPacket done [06:23:55]NVStorageSaveData kkm_last_timestamp [06:23:55]File name is /storage/kkm_last_timestamp [06:23:55]Write 4 bytes [06:23:55]NVStorageSaveData done [06:23:55]ExternCall_PrintAddStr [06:23:55]wPrintStart [06:23:55]Write to MH i2c: 01 00 00 4F 0E 5D [06:23:55]Write i2c OK [06:23:55]MH_I2C_Read... [06:23:55]Read from MH i2c: 01 [06:23:55]MH_I2C_Read... [06:23:55]Read from MH i2c: 01 07 00 [06:23:55]MH_I2C_Read... [06:23:55]Read from MH i2c: 01 07 00 4F 0E 00 00 00 00 00 FF 0F 72 [06:23:55]RasterBufferAndPrint [06:23:55]line Счет N : (1)1964274 [06:23:55]line ИНН: 02508201610067 [06:23:55]line Контрольно-Кассовый Чек [06:23:55]line ПРОДАЖА [06:23:55]line ТРК (МРК, ГНК) : 41 [06:23:55]line Товар: 2710194210 [06:23:55]line ДТ-К-5 [06:23:55]line 19.690 * 76.20 [06:23:55]line = 1500.38 [06:23:55]line НДС 12% НСП 1% [06:23:55]line > о реализуемом товаре [06:23:55]line ОКРУГЛЕНИЕ: -0.38 [06:23:55]line ИТОГО: 1500.00 [06:23:55]line Внесено: 1500.00 [06:23:55]line СДАЧА: 0.00 [06:23:55]line НСП 1% : 13.28 [06:23:55]line НДС 12% : 159.33 [06:23:55]line Наличными: 1500.00 [06:23:55]line Безнал.: 0.00 [06:23:55]line Место: АЗС № 133 "Партнер Нефть" [06:23:55]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [06:23:55]line СНО: Общий режим [06:23:55]line Чек 41 22.10.2024 06:23 [06:23:55]line Смена: 535 ФФД: 1.0 [06:23:55]line ЗНМ: 0300000091 [06:23:55]line РНМ: 0000000000091685 [06:23:55]line Версия ККМ: 001 [06:23:55]line ФМ: 0000000000871839 [06:23:55]line ФД: 228077 [06:23:55]line ФПД: 74612161508622 [06:23:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T062356&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228077&fm=74612161508622&tin=02508201610067®Number=0000000000091685&sum=150000 [06:23:55]OFD Sender: Processing packet 228077 [packets to send 38, broken 37] [06:23:55]ProducePacketName [06:23:55]name=ofd_packets/00228077 [06:23:55]OFD Sender: To server: pG, [06:23:55]CommunicateWithHost lk.salyk.kg:30040 [06:23:55]ConnectInit lk.salyk.kg [06:23:55]written 0, free lines is 4095 [06:23:55]Connected sock=9 [06:23:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 05 EE 04 01 B7 FD 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 FC 44 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 ED 7A 03 00 35 04 06 00 43 DB FF 61 F5 0E 6F BC 3D 4D 44 AC 1F 46 [06:23:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 C3 60 47 00 4A 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 ED 7A 03 00 F4 03 04 00 F5 EF 16 67 B6 04 01 00 00 D3 E7 AA 8A 64 57 8B EA [06:23:55]CommunicateWithHost err = 0 [06:23:55]CheckOFDResponse [06:23:55]1017 (14) - 77093643461234 [06:23:55]1041 (16) - 0000000000871839 [06:23:55]1040 (4) - 228077 [06:23:55]1012 (4) - 22.10.2024 00:21 [06:23:55]1206 (1) - 0 [06:23:55]OFD Sender: Remove packet 228077 [06:23:55]ProducePacketName [06:23:55]name=ofd_packets/00228077 [06:23:55]NVStorageDeleteData [06:23:55]Write to MH i2c: 01 00 00 79 0E 87 [06:23:55]Write i2c OK [06:23:55]MH_I2C_Read... [06:23:55]Read from MH i2c: 01 [06:23:55]MH_I2C_Read... [06:23:55]Read from MH i2c: 01 07 00 [06:23:55]MH_I2C_Read... [06:23:55]Read from MH i2c: 01 07 00 79 0E 00 00 00 00 00 9E 0C 38 [06:23:55]RasterBufferAndPrint [06:23:55]line [06:23:55]line [06:23:55]line [06:23:55]line [06:23:55]line [06:23:55]written 0, free lines is 3235 [06:23:55]MH_Cut [06:23:55]Write to MH i2c: D1 01 00 80 0E 01 60 [06:23:55]Write i2c OK [06:23:55]MH_I2C_Read... [06:23:55]Read from MH i2c: D1 [06:23:55]MH_I2C_Read... [06:23:55]Read from MH i2c: D1 01 00 [06:23:55]MH_I2C_Read... [06:23:55]Read from MH i2c: D1 01 00 80 0E 00 5F [06:23:55]Write to MH i2c: 01 00 00 81 0E 8F [06:23:55]Write i2c OK [06:23:55]MH_I2C_Read... [06:23:56]OFD Sender: No OFD packet to send [06:23:56]*** Cut start [06:23:56]*** Partial cut [06:23:56]*** CUTSNS_PIN = 1 [06:23:56]*** CUTSNS_PIN = 0 [06:23:57]*** Brake cut motor [06:23:57]Read from MH i2c: 01 [06:23:57]MH_I2C_Read... [06:23:57]*** Stop cut motor [06:23:57]*** Cut end [06:23:57]Read from MH i2c: 01 07 00 [06:23:57]MH_I2C_Read... [06:23:57]Read from MH i2c: 01 07 00 81 0E 00 00 00 00 00 FF 0F A4 [06:23:57]process_action close_receipt done [06:23:57]requested_data is exist [06:23:57]produce_requested_data [06:23:57]requested_item fm.sn is exist - process it [06:23:57]wFMCommunicate request_size=4 [06:23:57]MH_SAM_APDU [06:23:57]CAPDU: 80 11 00 00 [06:23:57]Write to MH i2c: E2 08 00 82 0E 80 11 00 00 00 00 00 00 0A [06:23:57]Write i2c OK [06:23:57]MH_I2C_Read... [06:23:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:23:57]Read from MH i2c: E2 [06:23:57]MH_I2C_Read... [06:23:57]Read from MH i2c: E2 17 00 [06:23:57]MH_I2C_Read... [06:23:57]Read from MH i2c: E2 17 00 82 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 61 [06:23:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:23:57]wFMCommunicate OK [06:23:57]requested_item fd.num is exist - process it [06:23:57]SAM_PROTO_GetFieldsCounters [06:23:57]wFMCommunicate request_size=4 [06:23:57]MH_SAM_APDU [06:23:57]CAPDU: 80 13 00 00 [06:23:57]Write to MH i2c: E2 08 00 83 0E 80 13 00 00 00 00 00 00 0D [06:23:57]Write i2c OK [06:23:57]MH_I2C_Read... [06:23:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:23:57]Read from MH i2c: E2 [06:23:57]MH_I2C_Read... [06:23:57]Read from MH i2c: E2 62 00 [06:23:57]MH_I2C_Read... [06:23:57]Read from MH i2c: E2 62 00 83 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 ED 7A 03 00 0E 04 04 00 17 02 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 34 [06:23:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 ED 7A 03 00 0E 04 04 00 17 02 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 [06:23:57]wFMCommunicate OK [06:23:57]SAM_PROTO_GetFieldsCounters done [06:23:57]requested_item shift.num is exist - process it [06:23:57]requested_item shift.opened is exist - process it [06:23:57]req_shift_opened [06:23:57]FM_GetShiftState [06:23:57]SAM_PROTO_GetShiftState [06:23:57]wFMCommunicate request_size=4 [06:23:57]MH_SAM_APDU [06:23:57]CAPDU: 80 13 01 00 [06:23:57]Write to MH i2c: E2 08 00 84 0E 80 13 01 00 00 00 00 00 0F [06:23:57]Write i2c OK [06:23:57]MH_I2C_Read... [06:23:57]Read from MH i2c: E2 [06:23:57]MH_I2C_Read... [06:23:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:23:57]Read from MH i2c: E2 0E 00 [06:23:57]MH_I2C_Read... [06:23:57]Read from MH i2c: E2 0E 00 84 0E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 D6 [06:23:57]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [06:23:57]wFMCommunicate OK [06:23:57]SAM_PROTO_GetShiftState done [06:23:57]FM_GetShiftState done [06:23:57]req_shift_opened done [06:23:57]requested_item shift.open_date is exist - process it [06:23:57]req_shift_open_date [06:23:57]req_shift_open_date done [06:23:57]produce_requested_data done [06:23:57]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228077,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [06:23:57]process_action_free close_receipt [06:23:57]json_value_free [06:23:57]json_value_free done [06:23:57]process_json_proto returns [06:23:57]Send response to host [06:23:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228077,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [06:23:57]free response buf [06:23:57]execute_script done [06:23:57]execute_script returns [06:23:57]free content buf [06:23:57]Sock 10.Close socket [06:23:57]Sock 10.Thread stoped [06:24:01]OFD Sender: No OFD packet to send [06:24:06]OFD Sender: No OFD packet to send [06:24:11]OFD Sender: No OFD packet to send [06:24:16]OFD Sender: No OFD packet to send [06:24:21]OFD Sender: No OFD packet to send [06:24:26]OFD Sender: No OFD packet to send [06:24:31]OFD Sender: No OFD packet to send [06:24:36]OFD Sender: No OFD packet to send [06:24:41]OFD Sender: No OFD packet to send [06:24:46]OFD Sender: No OFD packet to send [06:24:51]OFD Sender: No OFD packet to send [06:24:56]OFD Sender: No OFD packet to send [06:25:01]OFD Sender: No OFD packet to send [06:25:06]OFD Sender: No OFD packet to send [06:25:11]OFD Sender: No OFD packet to send [06:25:16]OFD Sender: No OFD packet to send [06:25:21]OFD Sender: No OFD packet to send [06:25:26]OFD Sender: No OFD packet to send [06:25:31]OFD Sender: No OFD packet to send [06:25:36]OFD Sender: No OFD packet to send [06:25:41]OFD Sender: No OFD packet to send [06:25:46]OFD Sender: No OFD packet to send [06:25:51]OFD Sender: No OFD packet to send [06:25:56]OFD Sender: No OFD packet to send [06:26:01]OFD Sender: No OFD packet to send [06:26:06]OFD Sender: No OFD packet to send [06:26:11]OFD Sender: No OFD packet to send [06:26:16]OFD Sender: No OFD packet to send [06:26:21]OFD Sender: No OFD packet to send [06:26:26]OFD Sender: No OFD packet to send [06:26:31]OFD Sender: No OFD packet to send [06:26:36]OFD Sender: No OFD packet to send [06:26:41]OFD Sender: No OFD packet to send [06:26:46]OFD Sender: No OFD packet to send [06:26:51]OFD Sender: No OFD packet to send [06:26:56]OFD Sender: No OFD packet to send [06:27:01]OFD Sender: No OFD packet to send [06:27:03]recv_with_timeout no data received [06:27:06]OFD Sender: No OFD packet to send [06:27:11]OFD Sender: No OFD packet to send [06:27:16]OFD Sender: No OFD packet to send [06:27:20]recv_with_timeout no data received [06:27:21]OFD Sender: No OFD packet to send [06:27:26]OFD Sender: No OFD packet to send [06:27:31]OFD Sender: No OFD packet to send [06:27:36]OFD Sender: No OFD packet to send [06:27:36]recv_with_timeout no data received [06:27:41]OFD Sender: No OFD packet to send [06:27:46]OFD Sender: No OFD packet to send [06:27:51]OFD Sender: No OFD packet to send [06:27:56]OFD Sender: No OFD packet to send [06:28:01]OFD Sender: No OFD packet to send [06:28:06]OFD Sender: No OFD packet to send [06:28:11]OFD Sender: No OFD packet to send [06:28:16]OFD Sender: No OFD packet to send [06:28:21]OFD Sender: No OFD packet to send [06:28:26]OFD Sender: No OFD packet to send [06:28:31]OFD Sender: No OFD packet to send [06:28:36]OFD Sender: No OFD packet to send [06:28:41]OFD Sender: No OFD packet to send [06:28:46]OFD Sender: No OFD packet to send [06:28:51]OFD Sender: No OFD packet to send [06:28:52]accept exits with 7 [06:28:52]New connection [06:28:52]New thread 3066994020 created [06:28:52]Thread 3067137380 joined [06:28:52]Waiting for new connection... [06:28:52] Sock 7.Parse request [06:28:52]Sock 7.Check first char [06:28:52]Sock 7.First char is OK [06:28:52]request: POST /json_proto HTTP/1.0 [06:28:52]Method: POST [06:28:52]URL: /json_proto [06:28:52]Method is POST - this is cgi request [06:28:52]url: /json_proto [06:28:52]query_string will be loaded in cgi processing [06:28:52]execute_cgi json_proto POST (null) [06:28:52]execute_cgi path=json_proto method=POST [06:28:52]POST find Content-Length [06:28:52]Host: 172.17.44.195:8080 [06:28:52]Content-Length: 683 [06:28:52]Content-Type: application/json [06:28:52] [06:28:52]POST finish read [06:28:52]Found Content-Length = 683 [06:28:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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" ] } } [06:28:52]execute_script... [06:28: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)1964276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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" ] } } [06:28:52]POST & json_proto [06:28:52]process_json_proto [06:28:52]json parsed OK: [06:28:52]protocol is kg_v1.0 [06:28:52]action value=close_receipt [06:28:52]process_action close_receipt [06:28:52]cmd_close_receipt [06:28:52]MH_GetDate [06:28:52]Write to MH i2c: F0 00 00 85 0E 82 [06:28:52]Write i2c OK [06:28:52]MH_I2C_Read... [06:28:52]Read from MH i2c: F0 [06:28:52]MH_I2C_Read... [06:28:52]Read from MH i2c: F0 09 00 [06:28:52]MH_I2C_Read... [06:28:52]Read from MH i2c: F0 09 00 85 0E 00 27 46 17 67 82 C9 CF 66 F6 [06:28:52]GetLastDocTimeStamp 1729578236 [06:28:52]current date 1729578535 [06:28:52]FM_GetShiftState [06:28:52]SAM_PROTO_GetShiftState [06:28:52]wFMCommunicate request_size=4 [06:28:52]MH_SAM_APDU [06:28:52]CAPDU: 80 13 01 00 [06:28:52]Write to MH i2c: E2 08 00 86 0E 80 13 01 00 00 00 00 00 11 [06:28:52]Write i2c OK [06:28:52]MH_I2C_Read... [06:28:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:28:52]Read from MH i2c: E2 [06:28:52]MH_I2C_Read... [06:28:52]Read from MH i2c: E2 0E 00 [06:28:52]MH_I2C_Read... [06:28:52]Read from MH i2c: E2 0E 00 86 0E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 D8 [06:28:52]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [06:28:52]wFMCommunicate OK [06:28:52]SAM_PROTO_GetShiftState done [06:28:52]FM_GetShiftState done [06:28:52]opened in 1729555538 [06:28:52]opened+sec_in_day 1729641938 [06:28:52]quantity*price = 150032 [06:28:52]sum+1 = 150033 [06:28:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 42 22.10.2024 06:28 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228078 ФПД: 143269145614452 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T062855&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228078&fm=143269145614452&tin=02508201610067®Number=0000000000091685&sum=150000 [06:28:53]StoreToDocumentArchive [06:28:53]shift 535 fd 228078 [06:28:53]save to /storage/0535/doc_00228078 [06:28:53]save last doc name /storage/0535/doc_00228078 to /storage/kkm_last_doc_name [06:28:53]save OK [06:28:53]Clear old archive folders... [06:28:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:28:53]tlvbuf is 00869F40 [06:28:53]SAM_PROTO_ClearQueue [06:28:53]wFMCommunicate request_size=4 [06:28:53]MH_SAM_APDU [06:28:53]CAPDU: 80 09 00 00 [06:28:53]Write to MH i2c: E2 08 00 93 0E 80 09 00 00 00 00 00 00 13 [06:28:53]Write i2c OK [06:28:53]MH_I2C_Read... [06:28:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:28:53]Read from MH i2c: E2 [06:28:53]MH_I2C_Read... [06:28:53]Read from MH i2c: E2 03 00 [06:28:53]MH_I2C_Read... [06:28:53]Read from MH i2c: E2 03 00 93 0E 00 90 00 15 [06:28:53]RAPDU: 90 00 [06:28:53]wFMCommunicate OK [06:28:53]SAM_PROTO_ClearQueue done [06:28:53]KKMCreateOFDPacket [06:28:53]OFDProtocolAddRootSTLVToBuf [06:28:53]FM_MakeSignedData [06:28:53]FM_MakeSignedData [06:28:53]SAM_PROTO_SignData [06:28:53]wFMCommunicate request_size=4 [06:28:53]MH_SAM_APDU [06:28:53]CAPDU: 80 0D 01 02 [06:28:53]Write to MH i2c: E2 08 00 94 0E 80 0D 01 02 00 00 00 00 1B [06:28:53]Write i2c OK [06:28:53]MH_I2C_Read... [06:28:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:28:53]Read from MH i2c: E2 [06:28:53]MH_I2C_Read... [06:28:53]Read from MH i2c: E2 03 00 [06:28:53]MH_I2C_Read... [06:28:53]Read from MH i2c: E2 03 00 94 0E 00 90 00 16 [06:28:53]RAPDU: 90 00 [06:28:53]wFMCommunicate OK [06:28:53]wFMCommunicate request_size=255 [06:28:53]MH_SAM_APDU [06:28: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 3D 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 2A 00 00 00 F4 03 04 00 27 46 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EE 7A 03 00 35 04 06 00 82 [06:28:53]Write to MH i2c: E2 02 01 95 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 3D 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 2A 00 00 00 F4 03 04 00 27 46 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EE 7A 03 00 35 04 06 00 82 00 00 30 [06:28:54]Write i2c OK [06:28:54]MH_I2C_Read... [06:28:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:28:54]Read from MH i2c: E2 [06:28:54]MH_I2C_Read... [06:28:54]Read from MH i2c: E2 03 00 [06:28:54]MH_I2C_Read... [06:28:54]Read from MH i2c: E2 03 00 95 0E 00 90 00 17 [06:28:54]RAPDU: 90 00 [06:28:54]wFMCommunicate OK [06:28:54]wFMCommunicate request_size=10 [06:28:54]MH_SAM_APDU [06:28:54]CAPDU: 80 0D 02 02 05 4D 72 88 18 74 [06:28:54]Write to MH i2c: E2 0D 00 96 0E 80 0D 02 02 05 00 4D 72 88 18 74 00 00 FB [06:28:54]Write i2c OK [06:28:54]MH_I2C_Read... [06:28:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:28:54]Read from MH i2c: E2 [06:28:54]MH_I2C_Read... [06:28:54]Read from MH i2c: E2 03 00 [06:28:54]MH_I2C_Read... [06:28:54]Read from MH i2c: E2 03 00 96 0E 00 90 00 18 [06:28:54]RAPDU: 90 00 [06:28:54]wFMCommunicate OK [06:28:54]wFMCommunicate request_size=4 [06:28:54]MH_SAM_APDU [06:28:54]CAPDU: 80 0D 03 02 [06:28:54]Write to MH i2c: E2 08 00 97 0E 80 0D 03 02 00 00 00 00 20 [06:28:54]Write i2c OK [06:28:54]MH_I2C_Read... [06:28:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:28:54]Read from MH i2c: E2 [06:28:54]MH_I2C_Read... [06:28:54]Read from MH i2c: E2 0B 00 [06:28:54]MH_I2C_Read... [06:28:54]Read from MH i2c: E2 0B 00 97 0E 00 A9 8C A0 07 F2 60 B9 29 90 00 31 [06:28:54]RAPDU: A9 8C A0 07 F2 60 B9 29 90 00 [06:28:54]wFMCommunicate OK [06:28:54]SAM_PROTO_SignData done [06:28:54]FM_MakeSignedData done [06:28:54]CreateOFDProtocolMessage [06:28:54]wFMCommunicate request_size=4 [06:28:54]MH_SAM_APDU [06:28:54]CAPDU: 80 11 00 00 [06:28:54]Write to MH i2c: E2 08 00 98 0E 80 11 00 00 00 00 00 00 20 [06:28:54]Write i2c OK [06:28:54]MH_I2C_Read... [06:28:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:28:54]Read from MH i2c: E2 [06:28:54]MH_I2C_Read... [06:28:54]Read from MH i2c: E2 17 00 [06:28:54]MH_I2C_Read... [06:28:54]Read from MH i2c: E2 17 00 98 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 77 [06:28:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:28:54]wFMCommunicate OK [06:28:54]CreateOFDProtocolMessage done [06:28:54]OFDSenderStorePacket 228078 [06:28:54]StoreOFDPacket docnum=228078 [06:28:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 3F 27 07 01 E4 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 3D 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 2A 00 00 00 F4 03 04 00 27 46 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EE 7A 03 00 35 04 06 00 82 4D 72 88 18 74 A9 8C A0 07 F2 60 B9 29 [06:28:54]CheckFolder [06:28:54]dirname=/storage/ofd_packets [06:28:54]CheckFolder done [06:28:54]ProducePacketName [06:28:54]name=ofd_packets/00228078 [06:28:54]NVStorageSaveData ofd_packets/00228078 [06:28:54]File name is /storage/ofd_packets/00228078 [06:28:54]Write 301 bytes [06:28:54]NVStorageSaveData done [06:28:54]OFDSenderStorePacket done [06:28:54]KKMCreateOFDPacket done [06:28:54]NVStorageSaveData kkm_last_timestamp [06:28:54]File name is /storage/kkm_last_timestamp [06:28:54]Write 4 bytes [06:28:54]NVStorageSaveData done [06:28:54]OFD Sender: Processing packet 228078 [packets to send 38, broken 37] [06:28:54]ProducePacketName [06:28:54]name=ofd_packets/00228078 [06:28:54]OFD Sender: To server: pG, [06:28:54]CommunicateWithHost lk.salyk.kg:30040 [06:28:54]ConnectInit lk.salyk.kg [06:28:54]ExternCall_PrintAddStr [06:28:54]wPrintStart [06:28:54]Write to MH i2c: 01 00 00 99 0E A7 [06:28:54]Write i2c OK [06:28:54]MH_I2C_Read... [06:28:54]Read from MH i2c: 01 [06:28:54]MH_I2C_Read... [06:28:54]Read from MH i2c: 01 07 00 [06:28:54]MH_I2C_Read... [06:28:54]Read from MH i2c: 01 07 00 99 0E 00 00 00 00 00 FF 0F BC [06:28:54]RasterBufferAndPrint [06:28:54]line Счет N : (1)1964276 [06:28:54]line ИНН: 02508201610067 [06:28:54]line Контрольно-Кассовый Чек [06:28:54]line ПРОДАЖА [06:28:54]line ТРК (МРК, ГНК) : 54 [06:28:54]line Товар: 2710124500 [06:28:54]line Аи-95-К-5 [06:28:54]line 20.220 * 74.20 [06:28:54]line = 1500.32 [06:28:54]line НДС 12% НСП 1% [06:28:54]line > о реализуемом товаре [06:28:54]line ОКРУГЛЕНИЕ: -0.32 [06:28:54]line ИТОГО: 1500.00 [06:28:54]line Внесено: 1500.00 [06:28:54]line СДАЧА: 0.00 [06:28:54]line НСП 1% : 13.28 [06:28:54]line НДС 12% : 159.33 [06:28:54]line Наличными: 1500.00 [06:28:54]line Безнал.: 0.00 [06:28:54]line Место: АЗС № 133 "Партнер Нефть" [06:28:54]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [06:28:54]line СНО: Общий режим [06:28:54]line Чек 42 22.10.2024 06:28 [06:28:54]line Смена: 535 ФФД: 1.0 [06:28:54]line ЗНМ: 0300000091 [06:28:54]line РНМ: 0000000000091685 [06:28:54]line Версия ККМ: 001 [06:28:54]line ФМ: 0000000000871839 [06:28:54]line ФД: 228078 [06:28:54]line ФПД: 143269145614452 [06:28:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T062855&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228078&fm=143269145614452&tin=02508201610067®Number=0000000000091685&sum=150000 [06:28:54]Connected sock=11 [06:28:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 3F 27 07 01 E4 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 3D 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 2A 00 00 00 F4 03 04 00 27 46 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EE 7A 03 00 35 04 06 00 82 4D 72 88 18 74 A9 8C A0 07 F2 60 B9 29 [06:28:54]written 0, free lines is 4095 [06:28:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 2C C4 47 00 8A C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EE 7A 03 00 F4 03 04 00 20 F1 16 67 B6 04 01 00 00 69 C1 4C 17 51 0D 3B 97 [06:28:54]CommunicateWithHost err = 0 [06:28:54]CheckOFDResponse [06:28:54]1017 (14) - 77093643461234 [06:28:54]1041 (16) - 0000000000871839 [06:28:54]1040 (4) - 228078 [06:28:54]1012 (4) - 22.10.2024 00:26 [06:28:54]1206 (1) - 0 [06:28:54]OFD Sender: Remove packet 228078 [06:28:54]ProducePacketName [06:28:54]name=ofd_packets/00228078 [06:28:54]NVStorageDeleteData [06:28:55]Write to MH i2c: 01 00 00 C3 0E D1 [06:28:55]Write i2c OK [06:28:55]MH_I2C_Read... [06:28:55]Read from MH i2c: 01 [06:28:55]MH_I2C_Read... [06:28:55]Read from MH i2c: 01 07 00 [06:28:55]MH_I2C_Read... [06:28:55]Read from MH i2c: 01 07 00 C3 0E 00 00 00 00 00 A1 0C 85 [06:28:55]RasterBufferAndPrint [06:28:55]line [06:28:55]line [06:28:55]line [06:28:55]line [06:28:55]line [06:28:55]written 0, free lines is 3237 [06:28:55]MH_Cut [06:28:55]Write to MH i2c: D1 01 00 CA 0E 01 AA [06:28:55]Write i2c OK [06:28:55]MH_I2C_Read... [06:28:55]Read from MH i2c: D1 [06:28:55]MH_I2C_Read... [06:28:55]Read from MH i2c: D1 01 00 [06:28:55]MH_I2C_Read... [06:28:55]Read from MH i2c: D1 01 00 CA 0E 00 A9 [06:28:55]Write to MH i2c: 01 00 00 CB 0E D9 [06:28:55]Write i2c OK [06:28:55]MH_I2C_Read... [06:28:55]OFD Sender: No OFD packet to send [06:28:56]*** Cut start [06:28:56]*** Partial cut [06:28:56]*** CUTSNS_PIN = 1 [06:28:56]*** CUTSNS_PIN = 0 [06:28:56]*** Brake cut motor [06:28:56]Read from MH i2c: 01 [06:28:56]MH_I2C_Read... [06:28:56]*** Stop cut motor [06:28:56]*** Cut end [06:28:56]Read from MH i2c: 01 07 00 [06:28:56]MH_I2C_Read... [06:28:56]Read from MH i2c: 01 07 00 CB 0E 00 00 00 00 00 FF 0F EE [06:28:56]process_action close_receipt done [06:28:56]requested_data is exist [06:28:56]produce_requested_data [06:28:56]requested_item fm.sn is exist - process it [06:28:56]wFMCommunicate request_size=4 [06:28:56]MH_SAM_APDU [06:28:56]CAPDU: 80 11 00 00 [06:28:56]Write to MH i2c: E2 08 00 CC 0E 80 11 00 00 00 00 00 00 54 [06:28:56]Write i2c OK [06:28:56]MH_I2C_Read... [06:28:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:28:56]Read from MH i2c: E2 [06:28:56]MH_I2C_Read... [06:28:56]Read from MH i2c: E2 17 00 [06:28:56]MH_I2C_Read... [06:28:56]Read from MH i2c: E2 17 00 CC 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AB [06:28:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:28:56]wFMCommunicate OK [06:28:56]requested_item fd.num is exist - process it [06:28:56]SAM_PROTO_GetFieldsCounters [06:28:56]wFMCommunicate request_size=4 [06:28:56]MH_SAM_APDU [06:28:56]CAPDU: 80 13 00 00 [06:28:56]Write to MH i2c: E2 08 00 CD 0E 80 13 00 00 00 00 00 00 57 [06:28:56]Write i2c OK [06:28:56]MH_I2C_Read... [06:28:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:28:57]Read from MH i2c: E2 [06:28:57]MH_I2C_Read... [06:28:57]Read from MH i2c: E2 62 00 [06:28:57]MH_I2C_Read... [06:28:57]Read from MH i2c: E2 62 00 CD 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EE 7A 03 00 0E 04 04 00 17 02 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 82 [06:28:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EE 7A 03 00 0E 04 04 00 17 02 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 [06:28:57]wFMCommunicate OK [06:28:57]SAM_PROTO_GetFieldsCounters done [06:28:57]requested_item shift.num is exist - process it [06:28:57]requested_item shift.opened is exist - process it [06:28:57]req_shift_opened [06:28:57]FM_GetShiftState [06:28:57]SAM_PROTO_GetShiftState [06:28:57]wFMCommunicate request_size=4 [06:28:57]MH_SAM_APDU [06:28:57]CAPDU: 80 13 01 00 [06:28:57]Write to MH i2c: E2 08 00 CE 0E 80 13 01 00 00 00 00 00 59 [06:28:57]Write i2c OK [06:28:57]MH_I2C_Read... [06:28:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:28:57]Read from MH i2c: E2 [06:28:57]MH_I2C_Read... [06:28:57]Read from MH i2c: E2 0E 00 [06:28:57]MH_I2C_Read... [06:28:57]Read from MH i2c: E2 0E 00 CE 0E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 20 [06:28:57]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [06:28:57]wFMCommunicate OK [06:28:57]SAM_PROTO_GetShiftState done [06:28:57]FM_GetShiftState done [06:28:57]req_shift_opened done [06:28:57]requested_item shift.open_date is exist - process it [06:28:57]req_shift_open_date [06:28:57]req_shift_open_date done [06:28:57]produce_requested_data done [06:28:57]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228078,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [06:28:57]process_action_free close_receipt [06:28:57]json_value_free [06:28:57]json_value_free done [06:28:57]process_json_proto returns [06:28:57]Send response to host [06:28:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228078,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [06:28:57]free response buf [06:28:57]execute_script done [06:28:57]execute_script returns [06:28:57]free content buf [06:28:57]Sock 7.Close socket [06:28:57]Sock 7.Thread stoped [06:29:00]OFD Sender: No OFD packet to send [06:29:01]accept exits with 9 [06:29:01]New connection [06:29:01]New thread 3067137380 created [06:29:01]Thread 3066994020 joined [06:29:01]Waiting for new connection... [06:29:01] Sock 9.Parse request [06:29:01]Sock 9.Check first char [06:29:01]Sock 9.First char is OK [06:29:01]request: POST /json_proto HTTP/1.0 [06:29:01]Method: POST [06:29:01]URL: /json_proto [06:29:01]Method is POST - this is cgi request [06:29:01]url: /json_proto [06:29:01]query_string will be loaded in cgi processing [06:29:01]execute_cgi json_proto POST (null) [06:29:01]execute_cgi path=json_proto method=POST [06:29:01]POST find Content-Length [06:29:01]Host: 172.17.44.195:8080 [06:29:01]Content-Length: 683 [06:29:01]Content-Type: application/json [06:29:01] [06:29:01]POST finish read [06:29:01]Found Content-Length = 683 [06:29:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "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:29:01]execute_script... [06:29: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)1964275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "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:29:01]POST & json_proto [06:29:01]process_json_proto [06:29:01]json parsed OK: [06:29:01]protocol is kg_v1.0 [06:29:01]action value=close_receipt [06:29:01]process_action close_receipt [06:29:01]cmd_close_receipt [06:29:01]MH_GetDate [06:29:01]Write to MH i2c: F0 00 00 CF 0E CC [06:29:01]Write i2c OK [06:29:01]MH_I2C_Read... [06:29:01]Read from MH i2c: F0 [06:29:01]MH_I2C_Read... [06:29:01]Read from MH i2c: F0 09 00 [06:29:01]MH_I2C_Read... [06:29:01]Read from MH i2c: F0 09 00 CF 0E 00 30 46 17 67 82 C9 CF 66 49 [06:29:01]GetLastDocTimeStamp 1729578535 [06:29:01]current date 1729578544 [06:29:01]FM_GetShiftState [06:29:01]SAM_PROTO_GetShiftState [06:29:01]wFMCommunicate request_size=4 [06:29:01]MH_SAM_APDU [06:29:01]CAPDU: 80 13 01 00 [06:29:01]Write to MH i2c: E2 08 00 D0 0E 80 13 01 00 00 00 00 00 5B [06:29:01]Write i2c OK [06:29:01]MH_I2C_Read... [06:29:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:29:01]Read from MH i2c: E2 [06:29:01]MH_I2C_Read... [06:29:01]Read from MH i2c: E2 0E 00 [06:29:01]MH_I2C_Read... [06:29:01]Read from MH i2c: E2 0E 00 D0 0E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 22 [06:29:01]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [06:29:01]wFMCommunicate OK [06:29:01]SAM_PROTO_GetShiftState done [06:29:01]FM_GetShiftState done [06:29:01]opened in 1729555538 [06:29:01]opened+sec_in_day 1729641938 [06:29:01]quantity*price = 200043 [06:29:01]sum+1 = 200044 [06:29:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 43 22.10.2024 06:29 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228079 ФПД: 265411324796329 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T062904&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228079&fm=265411324796329&tin=02508201610067®Number=0000000000091685&sum=200000 [06:29:02]StoreToDocumentArchive [06:29:02]shift 535 fd 228079 [06:29:02]save to /storage/0535/doc_00228079 [06:29:02]save last doc name /storage/0535/doc_00228079 to /storage/kkm_last_doc_name [06:29:02]save OK [06:29:02]Clear old archive folders... [06:29:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:29:02]tlvbuf is 00A6F010 [06:29:02]SAM_PROTO_ClearQueue [06:29:02]wFMCommunicate request_size=4 [06:29:02]MH_SAM_APDU [06:29:02]CAPDU: 80 09 00 00 [06:29:02]Write to MH i2c: E2 08 00 DD 0E 80 09 00 00 00 00 00 00 5D [06:29:02]Write i2c OK [06:29:02]MH_I2C_Read... [06:29:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:29:02]Read from MH i2c: E2 [06:29:02]MH_I2C_Read... [06:29:02]Read from MH i2c: E2 03 00 [06:29:02]MH_I2C_Read... [06:29:02]Read from MH i2c: E2 03 00 DD 0E 00 90 00 5F [06:29:02]RAPDU: 90 00 [06:29:02]wFMCommunicate OK [06:29:02]SAM_PROTO_ClearQueue done [06:29:02]KKMCreateOFDPacket [06:29:02]OFDProtocolAddRootSTLVToBuf [06:29:02]FM_MakeSignedData [06:29:02]FM_MakeSignedData [06:29:02]SAM_PROTO_SignData [06:29:02]wFMCommunicate request_size=4 [06:29:02]MH_SAM_APDU [06:29:02]CAPDU: 80 0D 01 02 [06:29:02]Write to MH i2c: E2 08 00 DE 0E 80 0D 01 02 00 00 00 00 65 [06:29:02]Write i2c OK [06:29:02]MH_I2C_Read... [06:29:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:29:02]Read from MH i2c: E2 [06:29:02]MH_I2C_Read... [06:29:02]Read from MH i2c: E2 03 00 [06:29:02]MH_I2C_Read... [06:29:02]Read from MH i2c: E2 03 00 DE 0E 00 90 00 60 [06:29:02]RAPDU: 90 00 [06:29:02]wFMCommunicate OK [06:29:02]wFMCommunicate request_size=255 [06:29:02]MH_SAM_APDU [06:29: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 2B 00 00 00 F4 03 04 00 30 46 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EF 7A 03 00 35 04 06 00 F1 [06:29:02]Write to MH i2c: E2 02 01 DF 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 2B 00 00 00 F4 03 04 00 30 46 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EF 7A 03 00 35 04 06 00 F1 00 00 39 [06:29:02]Write i2c OK [06:29:02]MH_I2C_Read... [06:29:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:29:03]Read from MH i2c: E2 [06:29:03]MH_I2C_Read... [06:29:03]Read from MH i2c: E2 03 00 [06:29:03]MH_I2C_Read... [06:29:03]Read from MH i2c: E2 03 00 DF 0E 00 90 00 61 [06:29:03]RAPDU: 90 00 [06:29:03]wFMCommunicate OK [06:29:03]wFMCommunicate request_size=10 [06:29:03]MH_SAM_APDU [06:29:03]CAPDU: 80 0D 02 02 05 63 E3 BB DD A9 [06:29:03]Write to MH i2c: E2 0D 00 E0 0E 80 0D 02 02 05 00 63 E3 BB DD A9 00 00 F9 [06:29:03]Write i2c OK [06:29:03]MH_I2C_Read... [06:29:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:29:03]Read from MH i2c: E2 [06:29:03]MH_I2C_Read... [06:29:03]Read from MH i2c: E2 03 00 [06:29:03]MH_I2C_Read... [06:29:03]Read from MH i2c: E2 03 00 E0 0E 00 90 00 62 [06:29:03]RAPDU: 90 00 [06:29:03]wFMCommunicate OK [06:29:03]wFMCommunicate request_size=4 [06:29:03]MH_SAM_APDU [06:29:03]CAPDU: 80 0D 03 02 [06:29:03]Write to MH i2c: E2 08 00 E1 0E 80 0D 03 02 00 00 00 00 6A [06:29:03]Write i2c OK [06:29:03]MH_I2C_Read... [06:29:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:29:03]Read from MH i2c: E2 [06:29:03]MH_I2C_Read... [06:29:03]Read from MH i2c: E2 0B 00 [06:29:03]MH_I2C_Read... [06:29:03]Read from MH i2c: E2 0B 00 E1 0E 00 C3 98 74 08 8C 0C 48 0F 90 00 31 [06:29:03]RAPDU: C3 98 74 08 8C 0C 48 0F 90 00 [06:29:03]wFMCommunicate OK [06:29:03]SAM_PROTO_SignData done [06:29:03]FM_MakeSignedData done [06:29:03]CreateOFDProtocolMessage [06:29:03]wFMCommunicate request_size=4 [06:29:03]MH_SAM_APDU [06:29:03]CAPDU: 80 11 00 00 [06:29:03]Write to MH i2c: E2 08 00 E2 0E 80 11 00 00 00 00 00 00 6A [06:29:03]Write i2c OK [06:29:03]MH_I2C_Read... [06:29:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:29:03]Read from MH i2c: E2 [06:29:03]MH_I2C_Read... [06:29:03]Read from MH i2c: E2 17 00 [06:29:03]MH_I2C_Read... [06:29:03]Read from MH i2c: E2 17 00 E2 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C1 [06:29:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:29:03]wFMCommunicate OK [06:29:03]CreateOFDProtocolMessage done [06:29:03]OFDSenderStorePacket 228079 [06:29:03]StoreOFDPacket docnum=228079 [06:29:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 80 51 07 01 02 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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 2B 00 00 00 F4 03 04 00 30 46 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EF 7A 03 00 35 04 06 00 F1 63 E3 BB DD A9 C3 98 74 08 8C 0C 48 0F [06:29:03]CheckFolder [06:29:03]dirname=/storage/ofd_packets [06:29:03]CheckFolder done [06:29:03]ProducePacketName [06:29:03]name=ofd_packets/00228079 [06:29:03]NVStorageSaveData ofd_packets/00228079 [06:29:03]File name is /storage/ofd_packets/00228079 [06:29:03]Write 301 bytes [06:29:03]NVStorageSaveData done [06:29:03]OFDSenderStorePacket done [06:29:03]KKMCreateOFDPacket done [06:29:03]NVStorageSaveData kkm_last_timestamp [06:29:03]File name is /storage/kkm_last_timestamp [06:29:03]Write 4 bytes [06:29:03]NVStorageSaveData done [06:29:03]ExternCall_PrintAddStr [06:29:03]wPrintStart [06:29:03]Write to MH i2c: 01 00 00 E3 0E F1 [06:29:03]Write i2c OK [06:29:03]MH_I2C_Read... [06:29:03]Read from MH i2c: 01 [06:29:03]MH_I2C_Read... [06:29:03]Read from MH i2c: 01 07 00 [06:29:03]MH_I2C_Read... [06:29:03]Read from MH i2c: 01 07 00 E3 0E 00 00 00 00 00 FF 0F 06 [06:29:03]RasterBufferAndPrint [06:29:03]line Счет N : (1)1964275 [06:29:03]line ИНН: 02508201610067 [06:29:03]line Контрольно-Кассовый Чек [06:29:03]line ПРОДАЖА [06:29:03]line ТРК (МРК, ГНК) : 34 [06:29:03]line Товар: 2710124500 [06:29:03]line Аи-95-К-5 [06:29:03]line 26.960 * 74.20 [06:29:03]line = 2000.43 [06:29:03]line НДС 12% НСП 1% [06:29:03]line > о реализуемом товаре [06:29:03]line ОКРУГЛЕНИЕ: -0.43 [06:29:03]line ИТОГО: 2000.00 [06:29:03]line Внесено: 2000.00 [06:29:03]line СДАЧА: 0.00 [06:29:03]line НСП 1% : 17.70 [06:29:03]line НДС 12% : 212.43 [06:29:03]line Наличными: 2000.00 [06:29:03]line Безнал.: 0.00 [06:29:03]line Место: АЗС № 133 "Партнер Нефть" [06:29:03]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [06:29:03]line СНО: Общий режим [06:29:03]line Чек 43 22.10.2024 06:29 [06:29:03]line Смена: 535 ФФД: 1.0 [06:29:03]line ЗНМ: 0300000091 [06:29:03]line РНМ: 0000000000091685 [06:29:03]line Версия ККМ: 001 [06:29:03]line ФМ: 0000000000871839 [06:29:03]line ФД: 228079 [06:29:03]line ФПД: 265411324796329 [06:29:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T062904&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228079&fm=265411324796329&tin=02508201610067®Number=0000000000091685&sum=200000 [06:29:03]written 0, free lines is 4095 [06:29:03]OFD Sender: Processing packet 228079 [packets to send 38, broken 37] [06:29:03]ProducePacketName [06:29:03]name=ofd_packets/00228079 [06:29:03]OFD Sender: To server: pG, [06:29:03]CommunicateWithHost lk.salyk.kg:30040 [06:29:03]ConnectInit lk.salyk.kg [06:29:03]Connected sock=10 [06:29:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 80 51 07 01 02 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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 2B 00 00 00 F4 03 04 00 30 46 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EF 7A 03 00 35 04 06 00 F1 63 E3 BB DD A9 C3 98 74 08 8C 0C 48 0F [06:29:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 6D EC 47 00 E1 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EF 7A 03 00 F4 03 04 00 29 F1 16 67 B6 04 01 00 00 DC 87 E5 5B 72 D7 E0 82 [06:29:03]CommunicateWithHost err = 0 [06:29:03]CheckOFDResponse [06:29:03]1017 (14) - 77093643461234 [06:29:03]1041 (16) - 0000000000871839 [06:29:03]1040 (4) - 228079 [06:29:03]1012 (4) - 22.10.2024 00:26 [06:29:03]1206 (1) - 0 [06:29:03]OFD Sender: Remove packet 228079 [06:29:03]ProducePacketName [06:29:03]name=ofd_packets/00228079 [06:29:03]NVStorageDeleteData [06:29:03]Write to MH i2c: 01 00 00 0D 0F 1C [06:29:03]Write i2c OK [06:29:03]MH_I2C_Read... [06:29:03]Read from MH i2c: 01 [06:29:03]MH_I2C_Read... [06:29:03]Read from MH i2c: 01 07 00 [06:29:03]MH_I2C_Read... [06:29:03]Read from MH i2c: 01 07 00 0D 0F 00 00 00 00 00 AA 0C D9 [06:29:03]RasterBufferAndPrint [06:29:03]line [06:29:03]line [06:29:03]line [06:29:03]line [06:29:03]line [06:29:03]written 0, free lines is 3248 [06:29:03]MH_Cut [06:29:03]Write to MH i2c: D1 01 00 14 0F 01 F5 [06:29:03]Write i2c OK [06:29:03]MH_I2C_Read... [06:29:03]Read from MH i2c: D1 [06:29:03]MH_I2C_Read... [06:29:03]Read from MH i2c: D1 01 00 [06:29:03]MH_I2C_Read... [06:29:03]Read from MH i2c: D1 01 00 14 0F 00 F4 [06:29:03]Write to MH i2c: 01 00 00 15 0F 24 [06:29:03]Write i2c OK [06:29:03]MH_I2C_Read... [06:29:04]OFD Sender: No OFD packet to send [06:29:04]*** Cut start [06:29:04]*** Partial cut [06:29:04]*** CUTSNS_PIN = 1 [06:29:04]*** CUTSNS_PIN = 0 [06:29:05]*** Brake cut motor [06:29:05]Read from MH i2c: 01 [06:29:05]MH_I2C_Read... [06:29:05]*** Stop cut motor [06:29:05]*** Cut end [06:29:05]Read from MH i2c: 01 07 00 [06:29:05]MH_I2C_Read... [06:29:05]Read from MH i2c: 01 07 00 15 0F 00 00 00 00 00 FF 0F 39 [06:29:05]process_action close_receipt done [06:29:05]requested_data is exist [06:29:05]produce_requested_data [06:29:05]requested_item fm.sn is exist - process it [06:29:05]wFMCommunicate request_size=4 [06:29:05]MH_SAM_APDU [06:29:05]CAPDU: 80 11 00 00 [06:29:05]Write to MH i2c: E2 08 00 16 0F 80 11 00 00 00 00 00 00 9F [06:29:05]Write i2c OK [06:29:05]MH_I2C_Read... [06:29:05]Read from MH i2c: E2 [06:29:05]MH_I2C_Read... [06:29:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:29:05]Read from MH i2c: E2 17 00 [06:29:05]MH_I2C_Read... [06:29:05]Read from MH i2c: E2 17 00 16 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F6 [06:29:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:29:05]wFMCommunicate OK [06:29:05]requested_item fd.num is exist - process it [06:29:05]SAM_PROTO_GetFieldsCounters [06:29:05]wFMCommunicate request_size=4 [06:29:05]MH_SAM_APDU [06:29:05]CAPDU: 80 13 00 00 [06:29:05]Write to MH i2c: E2 08 00 17 0F 80 13 00 00 00 00 00 00 A2 [06:29:05]Write i2c OK [06:29:05]MH_I2C_Read... [06:29:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:29:05]Read from MH i2c: E2 [06:29:05]MH_I2C_Read... [06:29:05]Read from MH i2c: E2 62 00 [06:29:05]MH_I2C_Read... [06:29:05]Read from MH i2c: E2 62 00 17 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EF 7A 03 00 0E 04 04 00 17 02 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 D1 [06:29:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EF 7A 03 00 0E 04 04 00 17 02 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 [06:29:05]wFMCommunicate OK [06:29:05]SAM_PROTO_GetFieldsCounters done [06:29:05]requested_item shift.num is exist - process it [06:29:05]requested_item shift.opened is exist - process it [06:29:05]req_shift_opened [06:29:05]FM_GetShiftState [06:29:05]SAM_PROTO_GetShiftState [06:29:05]wFMCommunicate request_size=4 [06:29:05]MH_SAM_APDU [06:29:05]CAPDU: 80 13 01 00 [06:29:05]Write to MH i2c: E2 08 00 18 0F 80 13 01 00 00 00 00 00 A4 [06:29:05]Write i2c OK [06:29:05]MH_I2C_Read... [06:29:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:29:05]Read from MH i2c: E2 [06:29:05]MH_I2C_Read... [06:29:05]Read from MH i2c: E2 0E 00 [06:29:05]MH_I2C_Read... [06:29:05]Read from MH i2c: E2 0E 00 18 0F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 6B [06:29:05]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [06:29:05]wFMCommunicate OK [06:29:05]SAM_PROTO_GetShiftState done [06:29:05]FM_GetShiftState done [06:29:05]req_shift_opened done [06:29:05]requested_item shift.open_date is exist - process it [06:29:05]req_shift_open_date [06:29:05]req_shift_open_date done [06:29:05]produce_requested_data done [06:29:05]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228079,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [06:29:05]process_action_free close_receipt [06:29:05]json_value_free [06:29:05]json_value_free done [06:29:05]process_json_proto returns [06:29:05]Send response to host [06:29:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228079,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [06:29:05]free response buf [06:29:05]execute_script done [06:29:05]execute_script returns [06:29:05]free content buf [06:29:05]Sock 9.Close socket [06:29:05]Sock 9.Thread stoped [06:29:09]OFD Sender: No OFD packet to send [06:29:14]OFD Sender: No OFD packet to send [06:29:19]OFD Sender: No OFD packet to send [06:29:24]OFD Sender: No OFD packet to send [06:29:29]OFD Sender: No OFD packet to send [06:29:34]OFD Sender: No OFD packet to send [06:29:39]OFD Sender: No OFD packet to send [06:29:44]OFD Sender: No OFD packet to send [06:29:49]OFD Sender: No OFD packet to send [06:29:54]OFD Sender: No OFD packet to send [06:29:59]OFD Sender: No OFD packet to send [06:30:04]OFD Sender: No OFD packet to send [06:30:09]OFD Sender: No OFD packet to send [06:30:14]OFD Sender: No OFD packet to send [06:30:19]OFD Sender: No OFD packet to send [06:30:24]OFD Sender: No OFD packet to send [06:30:29]OFD Sender: No OFD packet to send [06:30:34]OFD Sender: No OFD packet to send [06:30:39]OFD Sender: No OFD packet to send [06:30:44]OFD Sender: No OFD packet to send [06:30:49]OFD Sender: No OFD packet to send [06:30:54]OFD Sender: No OFD packet to send [06:30:59]OFD Sender: No OFD packet to send [06:31:04]OFD Sender: No OFD packet to send [06:31:09]OFD Sender: No OFD packet to send [06:31:14]OFD Sender: No OFD packet to send [06:31:19]OFD Sender: No OFD packet to send [06:31:24]OFD Sender: No OFD packet to send [06:31:29]OFD Sender: No OFD packet to send [06:31:34]OFD Sender: No OFD packet to send [06:31:39]OFD Sender: No OFD packet to send [06:31:44]OFD Sender: No OFD packet to send [06:31:49]OFD Sender: No OFD packet to send [06:31:54]OFD Sender: No OFD packet to send [06:31:59]OFD Sender: No OFD packet to send [06:32:01]accept exits with 7 [06:32:01]New connection [06:32:01]New thread 3066994020 created [06:32:01]Thread 3067137380 joined [06:32:01]Waiting for new connection... [06:32:01] Sock 7.Parse request [06:32:01]Sock 7.Check first char [06:32:01]Sock 7.First char is OK [06:32:01]request: POST /json_proto HTTP/1.0 [06:32:01]Method: POST [06:32:01]URL: /json_proto [06:32:01]Method is POST - this is cgi request [06:32:01]url: /json_proto [06:32:01]query_string will be loaded in cgi processing [06:32:01]execute_cgi json_proto POST (null) [06:32:01]execute_cgi path=json_proto method=POST [06:32:01]POST find Content-Length [06:32:01]Host: 172.17.44.195:8080 [06:32:01]Content-Length: 677 [06:32:01]Content-Type: application/json [06:32:01] [06:32:01]POST finish read [06:32:01]Found Content-Length = 677 [06:32:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:32:01]execute_script... [06:32: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)1964277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:32:01]POST & json_proto [06:32:01]process_json_proto [06:32:01]json parsed OK: [06:32:01]protocol is kg_v1.0 [06:32:01]action value=close_receipt [06:32:01]process_action close_receipt [06:32:01]cmd_close_receipt [06:32:01]MH_GetDate [06:32:01]Write to MH i2c: F0 00 00 19 0F 17 [06:32:01]Write i2c OK [06:32:01]MH_I2C_Read... [06:32:01]Read from MH i2c: F0 [06:32:01]MH_I2C_Read... [06:32:01]Read from MH i2c: F0 09 00 [06:32:01]MH_I2C_Read... [06:32:01]Read from MH i2c: F0 09 00 19 0F 00 E3 46 17 67 82 C9 CF 66 47 [06:32:01]GetLastDocTimeStamp 1729578544 [06:32:01]current date 1729578723 [06:32:01]FM_GetShiftState [06:32:01]SAM_PROTO_GetShiftState [06:32:01]wFMCommunicate request_size=4 [06:32:01]MH_SAM_APDU [06:32:01]CAPDU: 80 13 01 00 [06:32:01]Write to MH i2c: E2 08 00 1A 0F 80 13 01 00 00 00 00 00 A6 [06:32:01]Write i2c OK [06:32:01]MH_I2C_Read... [06:32:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:32:01]Read from MH i2c: E2 [06:32:01]MH_I2C_Read... [06:32:01]Read from MH i2c: E2 0E 00 [06:32:01]MH_I2C_Read... [06:32:01]Read from MH i2c: E2 0E 00 1A 0F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 6D [06:32:01]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [06:32:01]wFMCommunicate OK [06:32:01]SAM_PROTO_GetShiftState done [06:32:01]FM_GetShiftState done [06:32:01]opened in 1729555538 [06:32:01]opened+sec_in_day 1729641938 [06:32:01]quantity*price = 100011 [06:32:01]sum+1 = 100013 [06:32:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 44 22.10.2024 06:32 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228080 ФПД: 197715284291330 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T063203&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228080&fm=197715284291330&tin=02508201610067®Number=0000000000091685&sum=100000 [06:32:02]StoreToDocumentArchive [06:32:02]shift 535 fd 228080 [06:32:02]save to /storage/0535/doc_00228080 [06:32:02]save last doc name /storage/0535/doc_00228080 to /storage/kkm_last_doc_name [06:32:02]save OK [06:32:02]Clear old archive folders... [06:32:02]ProcessDocumentItem done err = 0, tmpTLVsize=245 [06:32:02]tlvbuf is 008899A0 [06:32:02]SAM_PROTO_ClearQueue [06:32:02]wFMCommunicate request_size=4 [06:32:02]MH_SAM_APDU [06:32:02]CAPDU: 80 09 00 00 [06:32:02]Write to MH i2c: E2 08 00 27 0F 80 09 00 00 00 00 00 00 A8 [06:32:02]Write i2c OK [06:32:02]MH_I2C_Read... [06:32:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:32:02]Read from MH i2c: E2 [06:32:02]MH_I2C_Read... [06:32:02]Read from MH i2c: E2 03 00 [06:32:02]MH_I2C_Read... [06:32:02]Read from MH i2c: E2 03 00 27 0F 00 90 00 AA [06:32:02]RAPDU: 90 00 [06:32:02]wFMCommunicate OK [06:32:02]SAM_PROTO_ClearQueue done [06:32:02]KKMCreateOFDPacket [06:32:02]OFDProtocolAddRootSTLVToBuf [06:32:02]FM_MakeSignedData [06:32:02]FM_MakeSignedData [06:32:02]SAM_PROTO_SignData [06:32:02]wFMCommunicate request_size=4 [06:32:02]MH_SAM_APDU [06:32:02]CAPDU: 80 0D 01 02 [06:32:02]Write to MH i2c: E2 08 00 28 0F 80 0D 01 02 00 00 00 00 B0 [06:32:02]Write i2c OK [06:32:02]MH_I2C_Read... [06:32:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:32:02]Read from MH i2c: E2 [06:32:02]MH_I2C_Read... [06:32:02]Read from MH i2c: E2 03 00 [06:32:02]MH_I2C_Read... [06:32:02]Read from MH i2c: E2 03 00 28 0F 00 90 00 AB [06:32:02]RAPDU: 90 00 [06:32:02]wFMCommunicate OK [06:32:02]wFMCommunicate request_size=254 [06:32:02]MH_SAM_APDU [06:32:02]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2C 00 00 00 F4 03 04 00 E3 46 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F0 7A 03 00 35 04 06 00 B3 D2 2D 49 6F 02 [06:32:02]Write to MH i2c: E2 01 01 29 0F 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2C 00 00 00 F4 03 04 00 E3 46 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F0 7A 03 00 35 04 06 00 B3 D2 2D 49 6F 02 00 00 DF [06:32:02]Write i2c OK [06:32:02]MH_I2C_Read... [06:32:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:32:02]Read from MH i2c: E2 [06:32:02]MH_I2C_Read... [06:32:02]Read from MH i2c: E2 03 00 [06:32:02]MH_I2C_Read... [06:32:02]Read from MH i2c: E2 03 00 29 0F 00 90 00 AC [06:32:02]RAPDU: 90 00 [06:32:02]wFMCommunicate OK [06:32:02]wFMCommunicate request_size=4 [06:32:02]MH_SAM_APDU [06:32:02]CAPDU: 80 0D 03 02 [06:32:02]Write to MH i2c: E2 08 00 2A 0F 80 0D 03 02 00 00 00 00 B4 [06:32:02]Write i2c OK [06:32:02]MH_I2C_Read... [06:32:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:32:02]Read from MH i2c: E2 [06:32:02]MH_I2C_Read... [06:32:02]Read from MH i2c: E2 0B 00 [06:32:02]MH_I2C_Read... [06:32:02]Read from MH i2c: E2 0B 00 2A 0F 00 41 4A AE 61 40 A2 A6 D1 90 00 A8 [06:32:02]RAPDU: 41 4A AE 61 40 A2 A6 D1 90 00 [06:32:02]wFMCommunicate OK [06:32:02]SAM_PROTO_SignData done [06:32:02]FM_MakeSignedData done [06:32:02]CreateOFDProtocolMessage [06:32:02]wFMCommunicate request_size=4 [06:32:02]MH_SAM_APDU [06:32:02]CAPDU: 80 11 00 00 [06:32:02]Write to MH i2c: E2 08 00 2B 0F 80 11 00 00 00 00 00 00 B4 [06:32:02]Write i2c OK [06:32:02]MH_I2C_Read... [06:32:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:32:02]Read from MH i2c: E2 [06:32:02]MH_I2C_Read... [06:32:02]Read from MH i2c: E2 17 00 [06:32:02]MH_I2C_Read... [06:32:02]Read from MH i2c: E2 17 00 2B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0B [06:32:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:32:02]wFMCommunicate OK [06:32:02]CreateOFDProtocolMessage done [06:32:02]OFDSenderStorePacket 228080 [06:32:02]StoreOFDPacket docnum=228080 [06:32:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 5D 54 01 01 40 A4 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2C 00 00 00 F4 03 04 00 E3 46 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F0 7A 03 00 35 04 06 00 B3 D2 2D 49 6F 02 41 4A AE 61 40 A2 A6 D1 [06:32:02]CheckFolder [06:32:02]dirname=/storage/ofd_packets [06:32:02]CheckFolder done [06:32:02]ProducePacketName [06:32:02]name=ofd_packets/00228080 [06:32:02]NVStorageSaveData ofd_packets/00228080 [06:32:02]File name is /storage/ofd_packets/00228080 [06:32:02]Write 295 bytes [06:32:02]NVStorageSaveData done [06:32:02]OFDSenderStorePacket done [06:32:02]KKMCreateOFDPacket done [06:32:02]NVStorageSaveData kkm_last_timestamp [06:32:02]File name is /storage/kkm_last_timestamp [06:32:02]Write 4 bytes [06:32:02]NVStorageSaveData done [06:32:02]ExternCall_PrintAddStr [06:32:02]wPrintStart [06:32:02]Write to MH i2c: 01 00 00 2C 0F 3B [06:32:02]Write i2c OK [06:32:02]MH_I2C_Read... [06:32:02]Read from MH i2c: 01 [06:32:02]MH_I2C_Read... [06:32:02]Read from MH i2c: 01 07 00 [06:32:02]MH_I2C_Read... [06:32:02]Read from MH i2c: 01 07 00 2C 0F 00 00 00 00 00 FF 0F 50 [06:32:02]RasterBufferAndPrint [06:32:02]line Счет N : (1)1964277 [06:32:02]line ИНН: 02508201610067 [06:32:02]line Контрольно-Кассовый Чек [06:32:02]line ПРОДАЖА [06:32:02]line ТРК (МРК, ГНК) : 71 [06:32:02]line Товар: 2711129700 [06:32:02]line ГАЗ [06:32:02]line 25.710 * 38.90 [06:32:02]line = 1000.12 [06:32:02]line НДС 12% НСП 1% [06:32:02]line > о реализуемом товаре [06:32:02]line ОКРУГЛЕНИЕ: -0.12 [06:32:02]line ИТОГО: 1000.00 [06:32:02]line Внесено: 1000.00 [06:32:02]line СДАЧА: 0.00 [06:32:02]line НСП 1% : 8.85 [06:32:02]line НДС 12% : 106.21 [06:32:02]line Наличными: 1000.00 [06:32:02]line Безнал.: 0.00 [06:32:02]line Место: АЗС № 133 "Партнер Нефть" [06:32:02]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [06:32:02]line СНО: Общий режим [06:32:02]line Чек 44 22.10.2024 06:32 [06:32:02]line Смена: 535 ФФД: 1.0 [06:32:02]line ЗНМ: 0300000091 [06:32:02]line РНМ: 0000000000091685 [06:32:02]line Версия ККМ: 001 [06:32:02]line ФМ: 0000000000871839 [06:32:02]line ФД: 228080 [06:32:02]line ФПД: 197715284291330 [06:32:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T063203&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228080&fm=197715284291330&tin=02508201610067®Number=0000000000091685&sum=100000 [06:32:03]OFD Sender: Processing packet 228080 [packets to send 38, broken 37] [06:32:03]ProducePacketName [06:32:03]name=ofd_packets/00228080 [06:32:03]OFD Sender: To server: pG, [06:32:03]CommunicateWithHost lk.salyk.kg:30040 [06:32:03]ConnectInit lk.salyk.kg [06:32:03]written 0, free lines is 4095 [06:32:03]Connected sock=10 [06:32:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 5D 54 01 01 40 A4 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2C 00 00 00 F4 03 04 00 E3 46 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F0 7A 03 00 35 04 06 00 B3 D2 2D 49 6F 02 41 4A AE 61 40 A2 A6 D1 [06:32:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 65 44 47 00 E0 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F0 7A 03 00 F4 03 04 00 DC F1 16 67 B6 04 01 00 00 FD 99 09 66 D8 39 29 ED [06:32:03]CommunicateWithHost err = 0 [06:32:03]CheckOFDResponse [06:32:03]1017 (14) - 77093643461234 [06:32:03]1041 (16) - 0000000000871839 [06:32:03]1040 (4) - 228080 [06:32:03]1012 (4) - 22.10.2024 00:29 [06:32:03]1206 (1) - 0 [06:32:03]OFD Sender: Remove packet 228080 [06:32:03]ProducePacketName [06:32:03]name=ofd_packets/00228080 [06:32:03]NVStorageDeleteData [06:32:03]Write to MH i2c: 01 00 00 56 0F 65 [06:32:03]Write i2c OK [06:32:03]MH_I2C_Read... [06:32:03]Read from MH i2c: 01 [06:32:03]MH_I2C_Read... [06:32:03]Read from MH i2c: 01 07 00 [06:32:03]MH_I2C_Read... [06:32:03]Read from MH i2c: 01 07 00 56 0F 00 00 00 00 00 A3 0C 1B [06:32:03]RasterBufferAndPrint [06:32:03]line [06:32:03]line [06:32:03]line [06:32:03]line [06:32:03]line [06:32:03]written 0, free lines is 3238 [06:32:03]MH_Cut [06:32:03]Write to MH i2c: D1 01 00 5D 0F 01 3E [06:32:03]Write i2c OK [06:32:03]MH_I2C_Read... [06:32:03]Read from MH i2c: D1 [06:32:03]MH_I2C_Read... [06:32:03]Read from MH i2c: D1 01 00 [06:32:03]MH_I2C_Read... [06:32:03]Read from MH i2c: D1 01 00 5D 0F 00 3D [06:32:03]Write to MH i2c: 01 00 00 5E 0F 6D [06:32:03]Write i2c OK [06:32:03]MH_I2C_Read... [06:32:03]OFD Sender: No OFD packet to send [06:32:04]*** Cut start [06:32:04]*** Partial cut [06:32:04]*** CUTSNS_PIN = 1 [06:32:04]*** CUTSNS_PIN = 0 [06:32:04]*** Brake cut motor [06:32:05]Read from MH i2c: 01 [06:32:05]MH_I2C_Read... [06:32:05]*** Stop cut motor [06:32:05]*** Cut end [06:32:05]Read from MH i2c: 01 07 00 [06:32:05]MH_I2C_Read... [06:32:05]Read from MH i2c: 01 07 00 5E 0F 00 00 00 00 00 FF 0F 82 [06:32:05]process_action close_receipt done [06:32:05]requested_data is exist [06:32:05]produce_requested_data [06:32:05]requested_item fm.sn is exist - process it [06:32:05]wFMCommunicate request_size=4 [06:32:05]MH_SAM_APDU [06:32:05]CAPDU: 80 11 00 00 [06:32:05]Write to MH i2c: E2 08 00 5F 0F 80 11 00 00 00 00 00 00 E8 [06:32:05]Write i2c OK [06:32:05]MH_I2C_Read... [06:32:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:32:05]Read from MH i2c: E2 [06:32:05]MH_I2C_Read... [06:32:05]Read from MH i2c: E2 17 00 [06:32:05]MH_I2C_Read... [06:32:05]Read from MH i2c: E2 17 00 5F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 3F [06:32:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:32:05]wFMCommunicate OK [06:32:05]requested_item fd.num is exist - process it [06:32:05]SAM_PROTO_GetFieldsCounters [06:32:05]wFMCommunicate request_size=4 [06:32:05]MH_SAM_APDU [06:32:05]CAPDU: 80 13 00 00 [06:32:05]Write to MH i2c: E2 08 00 60 0F 80 13 00 00 00 00 00 00 EB [06:32:05]Write i2c OK [06:32:05]MH_I2C_Read... [06:32:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:32:05]Read from MH i2c: E2 [06:32:05]MH_I2C_Read... [06:32:05]Read from MH i2c: E2 62 00 [06:32:05]MH_I2C_Read... [06:32:05]Read from MH i2c: E2 62 00 60 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F0 7A 03 00 0E 04 04 00 17 02 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 1E [06:32:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F0 7A 03 00 0E 04 04 00 17 02 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 [06:32:05]wFMCommunicate OK [06:32:05]SAM_PROTO_GetFieldsCounters done [06:32:05]requested_item shift.num is exist - process it [06:32:05]requested_item shift.opened is exist - process it [06:32:05]req_shift_opened [06:32:05]FM_GetShiftState [06:32:05]SAM_PROTO_GetShiftState [06:32:05]wFMCommunicate request_size=4 [06:32:05]MH_SAM_APDU [06:32:05]CAPDU: 80 13 01 00 [06:32:05]Write to MH i2c: E2 08 00 61 0F 80 13 01 00 00 00 00 00 ED [06:32:05]Write i2c OK [06:32:05]MH_I2C_Read... [06:32:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:32:05]Read from MH i2c: E2 [06:32:05]MH_I2C_Read... [06:32:05]Read from MH i2c: E2 0E 00 [06:32:05]MH_I2C_Read... [06:32:05]Read from MH i2c: E2 0E 00 61 0F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 B4 [06:32:05]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [06:32:05]wFMCommunicate OK [06:32:05]SAM_PROTO_GetShiftState done [06:32:05]FM_GetShiftState done [06:32:05]req_shift_opened done [06:32:05]requested_item shift.open_date is exist - process it [06:32:05]req_shift_open_date [06:32:05]req_shift_open_date done [06:32:05]produce_requested_data done [06:32:05]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228080,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [06:32:05]process_action_free close_receipt [06:32:05]json_value_free [06:32:05]json_value_free done [06:32:05]process_json_proto returns [06:32:05]Send response to host [06:32:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228080,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [06:32:05]free response buf [06:32:05]execute_script done [06:32:05]execute_script returns [06:32:05]free content buf [06:32:05]Sock 7.Close socket [06:32:05]Sock 7.Thread stoped [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:39]OFD Sender: No OFD packet to send [06:34:44]OFD Sender: No OFD packet to send [06:34:49]OFD Sender: No OFD packet to send [06:34:54]OFD Sender: No OFD packet to send [06:34:59]OFD Sender: No OFD packet to send [06:35:04]OFD Sender: No OFD packet to send [06:35:09]OFD Sender: No OFD packet to send [06:35:14]OFD Sender: No OFD packet to send [06:35:19]OFD Sender: No OFD packet to send [06:35:24]OFD Sender: No OFD packet to send [06:35:29]OFD Sender: No OFD packet to send [06:35:34]OFD Sender: No OFD packet to send [06:35:39]OFD Sender: No OFD packet to send [06:35:44]OFD Sender: No OFD packet to send [06:35:49]OFD Sender: No OFD packet to send [06:35:54]OFD Sender: No OFD packet to send [06:35:59]OFD Sender: No OFD packet to send [06:36:04]OFD Sender: No OFD packet to send [06:36:09]OFD Sender: No OFD packet to send [06:36:14]OFD Sender: No OFD packet to send [06:36:19]OFD Sender: No OFD packet to send [06:36:24]recv_with_timeout no data received [06:36:24]OFD Sender: No OFD packet to send [06:36:29]OFD Sender: No OFD packet to send [06:36:34]OFD Sender: No OFD packet to send [06:36:39]OFD Sender: No OFD packet to send [06:36:42]recv_with_timeout no data received [06:36:44]OFD Sender: No OFD packet to send [06:36:49]OFD Sender: No OFD packet to send [06:36:54]OFD Sender: No OFD packet to send [06:36:59]OFD Sender: No OFD packet to send [06:37:01]recv_with_timeout no data received [06:37:04]OFD Sender: No OFD packet to send [06:37:09]OFD Sender: No OFD packet to send [06:37:14]OFD Sender: No OFD packet to send [06:37:19]OFD Sender: No OFD packet to send [06:37:24]OFD Sender: No OFD packet to send [06:37:29]OFD Sender: No OFD packet to send [06:37:34]OFD Sender: No OFD packet to send [06:37:39]OFD Sender: No OFD packet to send [06:37:44]OFD Sender: No OFD packet to send [06:37:49]OFD Sender: No OFD packet to send [06:37:54]OFD Sender: No OFD packet to send [06:37:59]OFD Sender: No OFD packet to send [06:38:04]OFD Sender: No OFD packet to send [06:38:09]OFD Sender: No OFD packet to send [06:38:14]OFD Sender: No OFD packet to send [06:38:19]OFD Sender: No OFD packet to send [06:38:24]OFD Sender: No OFD packet to send [06:38:29]OFD Sender: No OFD packet to send [06:38:34]OFD Sender: No OFD packet to send [06:38:39]OFD Sender: No OFD packet to send [06:38:44]OFD Sender: No OFD packet to send [06:38:49]OFD Sender: No OFD packet to send [06:38:54]OFD Sender: No OFD packet to send [06:38:59]OFD Sender: No OFD packet to send [06:39:04]OFD Sender: No OFD packet to send [06:39:09]OFD Sender: No OFD packet to send [06:39:14]OFD Sender: No OFD packet to send [06:39:19]OFD Sender: No OFD packet to send [06:39:24]OFD Sender: No OFD packet to send [06:39:29]OFD Sender: No OFD packet to send [06:39:34]OFD Sender: No OFD packet to send [06:39:39]OFD Sender: No OFD packet to send [06:39:44]OFD Sender: No OFD packet to send [06:39:49]OFD Sender: No OFD packet to send [06:39:54]OFD Sender: No OFD packet to send [06:39:59]OFD Sender: No OFD packet to send [06:40:04]OFD Sender: No OFD packet to send [06:40:09]OFD Sender: No OFD packet to send [06:40:14]OFD Sender: No OFD packet to send [06:40:19]OFD Sender: No OFD packet to send [06:40:24]OFD Sender: No OFD packet to send [06:40:29]OFD Sender: No OFD packet to send [06:40:34]OFD Sender: No OFD packet to send [06:40:39]OFD Sender: No OFD packet to send [06:40:44]OFD Sender: No OFD packet to send [06:40:49]OFD Sender: No OFD packet to send [06:40:54]OFD Sender: No OFD packet to send [06:40:59]OFD Sender: No OFD packet to send [06:41:04]OFD Sender: No OFD packet to send [06:41:09]OFD Sender: No OFD packet to send [06:41:14]OFD Sender: No OFD packet to send [06:41:19]OFD Sender: No OFD packet to send [06:41:23]accept exits with 9 [06:41:23]New connection [06:41:23]New thread 3067137380 created [06:41:23]Thread 3066994020 joined [06:41:23]Waiting for new connection... [06:41:23] Sock 9.Parse request [06:41:23]Sock 9.Check first char [06:41:23]Sock 9.First char is OK [06:41:23]request: POST /json_proto HTTP/1.0 [06:41:23]Method: POST [06:41:23]URL: /json_proto [06:41:23]Method is POST - this is cgi request [06:41:23]url: /json_proto [06:41:23]query_string will be loaded in cgi processing [06:41:23]execute_cgi json_proto POST (null) [06:41:23]execute_cgi path=json_proto method=POST [06:41:23]POST find Content-Length [06:41:23]Host: 172.17.44.195:8080 [06:41:23]Content-Length: 683 [06:41:23]Content-Type: application/json [06:41:23] [06:41:23]POST finish read [06:41:23]Found Content-Length = 683 [06:41:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964280", "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" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "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" ] } } [06:41:23]execute_script... [06:41: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)1964280", "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" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "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" ] } } [06:41:23]POST & json_proto [06:41:23]process_json_proto [06:41:23]json parsed OK: [06:41:23]protocol is kg_v1.0 [06:41:23]action value=close_receipt [06:41:23]process_action close_receipt [06:41:23]cmd_close_receipt [06:41:23]MH_GetDate [06:41:23]Write to MH i2c: F0 00 00 62 0F 60 [06:41:23]Write i2c OK [06:41:23]MH_I2C_Read... [06:41:23]Read from MH i2c: F0 [06:41:23]MH_I2C_Read... [06:41:23]Read from MH i2c: F0 09 00 [06:41:23]MH_I2C_Read... [06:41:23]Read from MH i2c: F0 09 00 62 0F 00 15 49 17 67 82 C9 CF 66 C5 [06:41:23]GetLastDocTimeStamp 1729578723 [06:41:23]current date 1729579285 [06:41:23]FM_GetShiftState [06:41:23]SAM_PROTO_GetShiftState [06:41:23]wFMCommunicate request_size=4 [06:41:23]MH_SAM_APDU [06:41:23]CAPDU: 80 13 01 00 [06:41:23]Write to MH i2c: E2 08 00 63 0F 80 13 01 00 00 00 00 00 EF [06:41:23]Write i2c OK [06:41:23]MH_I2C_Read... [06:41:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:41:23]Read from MH i2c: E2 [06:41:23]MH_I2C_Read... [06:41:23]Read from MH i2c: E2 0E 00 [06:41:23]MH_I2C_Read... [06:41:23]Read from MH i2c: E2 0E 00 63 0F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 B6 [06:41:23]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [06:41:23]wFMCommunicate OK [06:41:23]SAM_PROTO_GetShiftState done [06:41:23]FM_GetShiftState done [06:41:23]opened in 1729555538 [06:41:23]opened+sec_in_day 1729641938 [06:41:23]quantity*price = 120018 [06:41:23]sum+1 = 120020 [06:41:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 45 22.10.2024 06:41 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228081 ФПД: 20440671269154 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T064125&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228081&fm=20440671269154&tin=02508201610067®Number=0000000000091685&sum=120000 [06:41:24]StoreToDocumentArchive [06:41:24]shift 535 fd 228081 [06:41:24]save to /storage/0535/doc_00228081 [06:41:24]save last doc name /storage/0535/doc_00228081 to /storage/kkm_last_doc_name [06:41:24]OFD Sender: No OFD packet to send [06:41:24]save OK [06:41:24]Clear old archive folders... [06:41:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:41:24]tlvbuf is 00051490 [06:41:24]SAM_PROTO_ClearQueue [06:41:24]wFMCommunicate request_size=4 [06:41:24]MH_SAM_APDU [06:41:24]CAPDU: 80 09 00 00 [06:41:24]Write to MH i2c: E2 08 00 70 0F 80 09 00 00 00 00 00 00 F1 [06:41:24]Write i2c OK [06:41:24]MH_I2C_Read... [06:41:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:41:24]Read from MH i2c: E2 [06:41:24]MH_I2C_Read... [06:41:24]Read from MH i2c: E2 03 00 [06:41:24]MH_I2C_Read... [06:41:24]Read from MH i2c: E2 03 00 70 0F 00 90 00 F3 [06:41:24]RAPDU: 90 00 [06:41:24]wFMCommunicate OK [06:41:24]SAM_PROTO_ClearQueue done [06:41:24]KKMCreateOFDPacket [06:41:24]OFDProtocolAddRootSTLVToBuf [06:41:24]FM_MakeSignedData [06:41:24]FM_MakeSignedData [06:41:24]SAM_PROTO_SignData [06:41:24]wFMCommunicate request_size=4 [06:41:24]MH_SAM_APDU [06:41:24]CAPDU: 80 0D 01 02 [06:41:24]Write to MH i2c: E2 08 00 71 0F 80 0D 01 02 00 00 00 00 F9 [06:41:24]Write i2c OK [06:41:24]MH_I2C_Read... [06:41:24]Read from MH i2c: E2 [06:41:24]MH_I2C_Read... [06:41:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:41:24]Read from MH i2c: E2 03 00 [06:41:24]MH_I2C_Read... [06:41:24]Read from MH i2c: E2 03 00 71 0F 00 90 00 F4 [06:41:24]RAPDU: 90 00 [06:41:24]wFMCommunicate OK [06:41:24]wFMCommunicate request_size=255 [06:41:24]MH_SAM_APDU [06:41:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 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 C9 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 2D 00 00 00 F4 03 04 00 15 49 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F1 7A 03 00 35 04 06 00 12 [06:41:24]Write to MH i2c: E2 02 01 72 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 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 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 C9 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 2D 00 00 00 F4 03 04 00 15 49 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F1 7A 03 00 35 04 06 00 12 00 00 39 [06:41:24]Write i2c OK [06:41:24]MH_I2C_Read... [06:41:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:41:24]Read from MH i2c: E2 [06:41:24]MH_I2C_Read... [06:41:24]Read from MH i2c: E2 03 00 [06:41:24]MH_I2C_Read... [06:41:24]Read from MH i2c: E2 03 00 72 0F 00 90 00 F5 [06:41:24]RAPDU: 90 00 [06:41:24]wFMCommunicate OK [06:41:24]wFMCommunicate request_size=10 [06:41:24]MH_SAM_APDU [06:41:24]CAPDU: 80 0D 02 02 05 97 36 F3 31 22 [06:41:24]Write to MH i2c: E2 0D 00 73 0F 80 0D 02 02 05 00 97 36 F3 31 22 00 00 19 [06:41:24]Write i2c OK [06:41:24]MH_I2C_Read... [06:41:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:41:24]Read from MH i2c: E2 [06:41:24]MH_I2C_Read... [06:41:24]Read from MH i2c: E2 03 00 [06:41:24]MH_I2C_Read... [06:41:24]Read from MH i2c: E2 03 00 73 0F 00 90 00 F6 [06:41:24]RAPDU: 90 00 [06:41:24]wFMCommunicate OK [06:41:24]wFMCommunicate request_size=4 [06:41:24]MH_SAM_APDU [06:41:24]CAPDU: 80 0D 03 02 [06:41:24]Write to MH i2c: E2 08 00 74 0F 80 0D 03 02 00 00 00 00 FE [06:41:24]Write i2c OK [06:41:24]MH_I2C_Read... [06:41:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:41:24]Read from MH i2c: E2 [06:41:24]MH_I2C_Read... [06:41:24]Read from MH i2c: E2 0B 00 [06:41:24]MH_I2C_Read... [06:41:24]Read from MH i2c: E2 0B 00 74 0F 00 2B F5 07 1A 94 65 26 50 90 00 AF [06:41:24]RAPDU: 2B F5 07 1A 94 65 26 50 90 00 [06:41:24]wFMCommunicate OK [06:41:24]SAM_PROTO_SignData done [06:41:24]FM_MakeSignedData done [06:41:24]CreateOFDProtocolMessage [06:41:24]wFMCommunicate request_size=4 [06:41:24]MH_SAM_APDU [06:41:24]CAPDU: 80 11 00 00 [06:41:24]Write to MH i2c: E2 08 00 75 0F 80 11 00 00 00 00 00 00 FE [06:41:24]Write i2c OK [06:41:24]MH_I2C_Read... [06:41:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:41:24]Read from MH i2c: E2 [06:41:24]MH_I2C_Read... [06:41:24]Read from MH i2c: E2 17 00 [06:41:24]MH_I2C_Read... [06:41:24]Read from MH i2c: E2 17 00 75 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 55 [06:41:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:41:24]wFMCommunicate OK [06:41:24]CreateOFDProtocolMessage done [06:41:24]OFDSenderStorePacket 228081 [06:41:24]StoreOFDPacket docnum=228081 [06:41:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 DF 5D 07 01 BC 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 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 C9 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 2D 00 00 00 F4 03 04 00 15 49 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F1 7A 03 00 35 04 06 00 12 97 36 F3 31 22 2B F5 07 1A 94 65 26 50 [06:41:24]CheckFolder [06:41:24]dirname=/storage/ofd_packets [06:41:24]CheckFolder done [06:41:24]ProducePacketName [06:41:24]name=ofd_packets/00228081 [06:41:24]NVStorageSaveData ofd_packets/00228081 [06:41:24]File name is /storage/ofd_packets/00228081 [06:41:24]Write 301 bytes [06:41:24]NVStorageSaveData done [06:41:24]OFDSenderStorePacket done [06:41:24]KKMCreateOFDPacket done [06:41:24]NVStorageSaveData kkm_last_timestamp [06:41:24]File name is /storage/kkm_last_timestamp [06:41:24]Write 4 bytes [06:41:24]NVStorageSaveData done [06:41:24]ExternCall_PrintAddStr [06:41:24]wPrintStart [06:41:24]Write to MH i2c: 01 00 00 76 0F 85 [06:41:24]Write i2c OK [06:41:24]MH_I2C_Read... [06:41:24]Read from MH i2c: 01 [06:41:24]MH_I2C_Read... [06:41:24]Read from MH i2c: 01 07 00 [06:41:24]MH_I2C_Read... [06:41:24]Read from MH i2c: 01 07 00 76 0F 00 00 00 00 00 FF 0F 9A [06:41:24]RasterBufferAndPrint [06:41:24]line Счет N : (1)1964280 [06:41:24]line ИНН: 02508201610067 [06:41:24]line Контрольно-Кассовый Чек [06:41:24]line ПРОДАЖА [06:41:24]line ТРК (МРК, ГНК) : 53 [06:41:24]line Товар: 2710124130 [06:41:24]line Аи-92-К-5 [06:41:24]line 17.940 * 66.90 [06:41:24]line = 1200.19 [06:41:24]line НДС 12% НСП 1% [06:41:24]line > о реализуемом товаре [06:41:24]line ОКРУГЛЕНИЕ: -0.19 [06:41:24]line ИТОГО: 1200.00 [06:41:24]line Внесено: 1200.00 [06:41:24]line СДАЧА: 0.00 [06:41:24]line НСП 1% : 10.62 [06:41:24]line НДС 12% : 127.45 [06:41:24]line Наличными: 1200.00 [06:41:24]line Безнал.: 0.00 [06:41:24]line Место: АЗС № 133 "Партнер Нефть" [06:41:24]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [06:41:24]line СНО: Общий режим [06:41:24]line Чек 45 22.10.2024 06:41 [06:41:24]line Смена: 535 ФФД: 1.0 [06:41:24]line ЗНМ: 0300000091 [06:41:24]line РНМ: 0000000000091685 [06:41:24]line Версия ККМ: 001 [06:41:24]line ФМ: 0000000000871839 [06:41:24]line ФД: 228081 [06:41:24]line ФПД: 20440671269154 [06:41:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T064125&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228081&fm=20440671269154&tin=02508201610067®Number=0000000000091685&sum=120000 [06:41:25]OFD Sender: Processing packet 228081 [packets to send 38, broken 37] [06:41:25]ProducePacketName [06:41:25]name=ofd_packets/00228081 [06:41:25]OFD Sender: To server: pG, [06:41:25]CommunicateWithHost lk.salyk.kg:30040 [06:41:25]ConnectInit lk.salyk.kg [06:41:25]written 0, free lines is 4095 [06:41:25]Connected sock=10 [06:41:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 DF 5D 07 01 BC 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 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 C9 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 2D 00 00 00 F4 03 04 00 15 49 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F1 7A 03 00 35 04 06 00 12 97 36 F3 31 22 2B F5 07 1A 94 65 26 50 [06:41:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 1D 12 47 00 CB BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F1 7A 03 00 F4 03 04 00 0E F4 16 67 B6 04 01 00 00 3E DB 83 D2 56 DF F3 A7 [06:41:25]CommunicateWithHost err = 0 [06:41:25]CheckOFDResponse [06:41:25]1017 (14) - 77093643461234 [06:41:25]1041 (16) - 0000000000871839 [06:41:25]1040 (4) - 228081 [06:41:25]1012 (4) - 22.10.2024 00:38 [06:41:25]1206 (1) - 0 [06:41:25]OFD Sender: Remove packet 228081 [06:41:25]ProducePacketName [06:41:25]name=ofd_packets/00228081 [06:41:25]NVStorageDeleteData [06:41:25]Write to MH i2c: 01 00 00 A0 0F AF [06:41:25]Write i2c OK [06:41:25]MH_I2C_Read... [06:41:25]Read from MH i2c: 01 [06:41:25]MH_I2C_Read... [06:41:25]Read from MH i2c: 01 07 00 [06:41:25]MH_I2C_Read... [06:41:25]Read from MH i2c: 01 07 00 A0 0F 00 00 00 00 00 A0 0C 62 [06:41:25]RasterBufferAndPrint [06:41:25]line [06:41:25]line [06:41:25]line [06:41:25]line [06:41:25]line [06:41:25]written 0, free lines is 3235 [06:41:25]MH_Cut [06:41:25]Write to MH i2c: D1 01 00 A7 0F 01 88 [06:41:25]Write i2c OK [06:41:25]MH_I2C_Read... [06:41:25]Read from MH i2c: D1 [06:41:25]MH_I2C_Read... [06:41:25]Read from MH i2c: D1 01 00 [06:41:25]MH_I2C_Read... [06:41:25]Read from MH i2c: D1 01 00 A7 0F 00 87 [06:41:25]Write to MH i2c: 01 00 00 A8 0F B7 [06:41:25]Write i2c OK [06:41:25]MH_I2C_Read... [06:41:26]OFD Sender: No OFD packet to send [06:41:26]*** Cut start [06:41:26]*** Partial cut [06:41:26]*** CUTSNS_PIN = 1 [06:41:26]*** CUTSNS_PIN = 0 [06:41:26]*** Brake cut motor [06:41:27]Read from MH i2c: 01 [06:41:27]MH_I2C_Read... [06:41:27]*** Stop cut motor [06:41:27]*** Cut end [06:41:27]Read from MH i2c: 01 07 00 [06:41:27]MH_I2C_Read... [06:41:27]Read from MH i2c: 01 07 00 A8 0F 00 00 00 00 00 FF 0F CC [06:41:27]process_action close_receipt done [06:41:27]requested_data is exist [06:41:27]produce_requested_data [06:41:27]requested_item fm.sn is exist - process it [06:41:27]wFMCommunicate request_size=4 [06:41:27]MH_SAM_APDU [06:41:27]CAPDU: 80 11 00 00 [06:41:27]Write to MH i2c: E2 08 00 A9 0F 80 11 00 00 00 00 00 00 32 [06:41:27]Write i2c OK [06:41:27]MH_I2C_Read... [06:41:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:41:27]Read from MH i2c: E2 [06:41:27]MH_I2C_Read... [06:41:27]Read from MH i2c: E2 17 00 [06:41:27]MH_I2C_Read... [06:41:27]Read from MH i2c: E2 17 00 A9 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 89 [06:41:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:41:27]wFMCommunicate OK [06:41:27]requested_item fd.num is exist - process it [06:41:27]SAM_PROTO_GetFieldsCounters [06:41:27]wFMCommunicate request_size=4 [06:41:27]MH_SAM_APDU [06:41:27]CAPDU: 80 13 00 00 [06:41:27]Write to MH i2c: E2 08 00 AA 0F 80 13 00 00 00 00 00 00 35 [06:41:27]Write i2c OK [06:41:27]MH_I2C_Read... [06:41:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:41:27]Read from MH i2c: E2 [06:41:27]MH_I2C_Read... [06:41:27]Read from MH i2c: E2 62 00 [06:41:27]MH_I2C_Read... [06:41:27]Read from MH i2c: E2 62 00 AA 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F1 7A 03 00 0E 04 04 00 17 02 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 6C [06:41:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F1 7A 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:41:27]wFMCommunicate OK [06:41:27]SAM_PROTO_GetFieldsCounters done [06:41:27]requested_item shift.num is exist - process it [06:41:27]requested_item shift.opened is exist - process it [06:41:27]req_shift_opened [06:41:27]FM_GetShiftState [06:41:27]SAM_PROTO_GetShiftState [06:41:27]wFMCommunicate request_size=4 [06:41:27]MH_SAM_APDU [06:41:27]CAPDU: 80 13 01 00 [06:41:27]Write to MH i2c: E2 08 00 AB 0F 80 13 01 00 00 00 00 00 37 [06:41:27]Write i2c OK [06:41:27]MH_I2C_Read... [06:41:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:41:27]Read from MH i2c: E2 [06:41:27]MH_I2C_Read... [06:41:27]Read from MH i2c: E2 0E 00 [06:41:27]MH_I2C_Read... [06:41:27]Read from MH i2c: E2 0E 00 AB 0F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 FE [06:41:27]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [06:41:27]wFMCommunicate OK [06:41:27]SAM_PROTO_GetShiftState done [06:41:27]FM_GetShiftState done [06:41:27]req_shift_opened done [06:41:27]requested_item shift.open_date is exist - process it [06:41:27]req_shift_open_date [06:41:27]req_shift_open_date done [06:41:27]produce_requested_data done [06:41:27]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228081,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [06:41:27]process_action_free close_receipt [06:41:27]json_value_free [06:41:27]json_value_free done [06:41:27]process_json_proto returns [06:41:27]Send response to host [06:41:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228081,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [06:41:27]free response buf [06:41:27]execute_script done [06:41:27]execute_script returns [06:41:27]free content buf [06:41:27]Sock 9.Close socket [06:41:27]Sock 9.Thread stoped [06:41:31]OFD Sender: No OFD packet to send [06:41:36]OFD Sender: No OFD packet to send [06:41:41]OFD Sender: No OFD packet to send [06:41:46]OFD Sender: No OFD packet to send [06:41:51]OFD Sender: No OFD packet to send [06:41:56]OFD Sender: No OFD packet to send [06:42:01]OFD Sender: No OFD packet to send [06:42:06]OFD Sender: No OFD packet to send [06:42:11]OFD Sender: No OFD packet to send [06:42:16]OFD Sender: No OFD packet to send [06:42:21]OFD Sender: No OFD packet to send [06:42:26]OFD Sender: No OFD packet to send [06:42:31]OFD Sender: No OFD packet to send [06:42:31]accept exits with 7 [06:42:31]New connection [06:42:31]New thread 3066994020 created [06:42:31]Thread 3067137380 joined [06:42:31]Waiting for new connection... [06:42:31] Sock 7.Parse request [06:42:31]Sock 7.Check first char [06:42:31]Sock 7.First char is OK [06:42:31]request: POST /json_proto HTTP/1.0 [06:42:31]Method: POST [06:42:31]URL: /json_proto [06:42:31]Method is POST - this is cgi request [06:42:31]url: /json_proto [06:42:31]query_string will be loaded in cgi processing [06:42:31]execute_cgi json_proto POST (null) [06:42:31]execute_cgi path=json_proto method=POST [06:42:31]POST find Content-Length [06:42:31]Host: 172.17.44.195:8080 [06:42:31]Content-Length: 679 [06:42:31]Content-Type: application/json [06:42:31] [06:42:31]POST finish read [06:42:31]Found Content-Length = 679 [06:42:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "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" ] } } [06:42:31]execute_script... [06:42: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)1964281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "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" ] } } [06:42:31]POST & json_proto [06:42:31]process_json_proto [06:42:31]json parsed OK: [06:42:31]protocol is kg_v1.0 [06:42:31]action value=close_receipt [06:42:31]process_action close_receipt [06:42:31]cmd_close_receipt [06:42:31]MH_GetDate [06:42:31]Write to MH i2c: F0 00 00 AC 0F AA [06:42:31]Write i2c OK [06:42:31]MH_I2C_Read... [06:42:31]Read from MH i2c: F0 [06:42:31]MH_I2C_Read... [06:42:31]Read from MH i2c: F0 09 00 [06:42:31]MH_I2C_Read... [06:42:31]Read from MH i2c: F0 09 00 AC 0F 00 5A 49 17 67 82 C9 CF 66 54 [06:42:31]GetLastDocTimeStamp 1729579285 [06:42:31]current date 1729579354 [06:42:31]FM_GetShiftState [06:42:31]SAM_PROTO_GetShiftState [06:42:31]wFMCommunicate request_size=4 [06:42:31]MH_SAM_APDU [06:42:31]CAPDU: 80 13 01 00 [06:42:31]Write to MH i2c: E2 08 00 AD 0F 80 13 01 00 00 00 00 00 39 [06:42:31]Write i2c OK [06:42:31]MH_I2C_Read... [06:42:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:42:31]Read from MH i2c: E2 [06:42:31]MH_I2C_Read... [06:42:31]Read from MH i2c: E2 0E 00 [06:42:31]MH_I2C_Read... [06:42:31]Read from MH i2c: E2 0E 00 AD 0F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 00 [06:42:31]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [06:42:31]wFMCommunicate OK [06:42:31]SAM_PROTO_GetShiftState done [06:42:31]FM_GetShiftState done [06:42:31]opened in 1729555538 [06:42:31]opened+sec_in_day 1729641938 [06:42:31]quantity*price = 80012 [06:42:31]sum+1 = 80013 [06:42:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 46 22.10.2024 06:42 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228082 ФПД: 251025658921703 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T064234&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228082&fm=251025658921703&tin=02508201610067®Number=0000000000091685&sum=80000 [06:42:32]StoreToDocumentArchive [06:42:32]shift 535 fd 228082 [06:42:32]save to /storage/0535/doc_00228082 [06:42:32]save last doc name /storage/0535/doc_00228082 to /storage/kkm_last_doc_name [06:42:32]save OK [06:42:32]Clear old archive folders... [06:42:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:42:32]tlvbuf is 00872FD0 [06:42:32]SAM_PROTO_ClearQueue [06:42:32]wFMCommunicate request_size=4 [06:42:32]MH_SAM_APDU [06:42:32]CAPDU: 80 09 00 00 [06:42:32]Write to MH i2c: E2 08 00 BA 0F 80 09 00 00 00 00 00 00 3B [06:42:32]Write i2c OK [06:42:32]MH_I2C_Read... [06:42:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:42:32]Read from MH i2c: E2 [06:42:32]MH_I2C_Read... [06:42:32]Read from MH i2c: E2 03 00 [06:42:32]MH_I2C_Read... [06:42:32]Read from MH i2c: E2 03 00 BA 0F 00 90 00 3D [06:42:32]RAPDU: 90 00 [06:42:32]wFMCommunicate OK [06:42:32]SAM_PROTO_ClearQueue done [06:42:32]KKMCreateOFDPacket [06:42:32]OFDProtocolAddRootSTLVToBuf [06:42:32]FM_MakeSignedData [06:42:32]FM_MakeSignedData [06:42:32]SAM_PROTO_SignData [06:42:32]wFMCommunicate request_size=4 [06:42:32]MH_SAM_APDU [06:42:32]CAPDU: 80 0D 01 02 [06:42:32]Write to MH i2c: E2 08 00 BB 0F 80 0D 01 02 00 00 00 00 43 [06:42:32]Write i2c OK [06:42:32]MH_I2C_Read... [06:42:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:42:32]Read from MH i2c: E2 [06:42:32]MH_I2C_Read... [06:42:32]Read from MH i2c: E2 03 00 [06:42:32]MH_I2C_Read... [06:42:32]Read from MH i2c: E2 03 00 BB 0F 00 90 00 3E [06:42:32]RAPDU: 90 00 [06:42:32]wFMCommunicate OK [06:42:32]wFMCommunicate request_size=255 [06:42:32]MH_SAM_APDU [06:42: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 5A 49 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F2 7A 03 00 35 04 06 00 E4 [06:42:32]Write to MH i2c: E2 02 01 BC 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 5A 49 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F2 7A 03 00 35 04 06 00 E4 00 00 81 [06:42:32]Write i2c OK [06:42:32]MH_I2C_Read... [06:42:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:42:33]Read from MH i2c: E2 [06:42:33]MH_I2C_Read... [06:42:33]Read from MH i2c: E2 03 00 [06:42:33]MH_I2C_Read... [06:42:33]Read from MH i2c: E2 03 00 BC 0F 00 90 00 3F [06:42:33]RAPDU: 90 00 [06:42:33]wFMCommunicate OK [06:42:33]wFMCommunicate request_size=10 [06:42:33]MH_SAM_APDU [06:42:33]CAPDU: 80 0D 02 02 05 4E 77 3A C2 E7 [06:42:33]Write to MH i2c: E2 0D 00 BD 0F 80 0D 02 02 05 00 4E 77 3A C2 E7 00 00 F8 [06:42:33]Write i2c OK [06:42:33]MH_I2C_Read... [06:42:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:42:33]Read from MH i2c: E2 [06:42:33]MH_I2C_Read... [06:42:33]Read from MH i2c: E2 03 00 [06:42:33]MH_I2C_Read... [06:42:33]Read from MH i2c: E2 03 00 BD 0F 00 90 00 40 [06:42:33]RAPDU: 90 00 [06:42:33]wFMCommunicate OK [06:42:33]wFMCommunicate request_size=4 [06:42:33]MH_SAM_APDU [06:42:33]CAPDU: 80 0D 03 02 [06:42:33]Write to MH i2c: E2 08 00 BE 0F 80 0D 03 02 00 00 00 00 48 [06:42:33]Write i2c OK [06:42:33]MH_I2C_Read... [06:42:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:42:33]Read from MH i2c: E2 [06:42:33]MH_I2C_Read... [06:42:33]Read from MH i2c: E2 0B 00 [06:42:33]MH_I2C_Read... [06:42:33]Read from MH i2c: E2 0B 00 BE 0F 00 A9 75 E9 D5 B9 AC 22 D9 90 00 85 [06:42:33]RAPDU: A9 75 E9 D5 B9 AC 22 D9 90 00 [06:42:33]wFMCommunicate OK [06:42:33]SAM_PROTO_SignData done [06:42:33]FM_MakeSignedData done [06:42:33]CreateOFDProtocolMessage [06:42:33]wFMCommunicate request_size=4 [06:42:33]MH_SAM_APDU [06:42:33]CAPDU: 80 11 00 00 [06:42:33]Write to MH i2c: E2 08 00 BF 0F 80 11 00 00 00 00 00 00 48 [06:42:33]Write i2c OK [06:42:33]MH_I2C_Read... [06:42:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:42:33]Read from MH i2c: E2 [06:42:33]MH_I2C_Read... [06:42:33]Read from MH i2c: E2 17 00 [06:42:33]MH_I2C_Read... [06:42:33]Read from MH i2c: E2 17 00 BF 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9F [06:42:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:42:33]wFMCommunicate OK [06:42:33]CreateOFDProtocolMessage done [06:42:33]OFDSenderStorePacket 228082 [06:42:33]StoreOFDPacket docnum=228082 [06:42:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 5B 1F 07 01 F0 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 5A 49 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F2 7A 03 00 35 04 06 00 E4 4E 77 3A C2 E7 A9 75 E9 D5 B9 AC 22 D9 [06:42:33]CheckFolder [06:42:33]dirname=/storage/ofd_packets [06:42:33]CheckFolder done [06:42:33]ProducePacketName [06:42:33]name=ofd_packets/00228082 [06:42:33]NVStorageSaveData ofd_packets/00228082 [06:42:33]File name is /storage/ofd_packets/00228082 [06:42:33]Write 301 bytes [06:42:33]NVStorageSaveData done [06:42:33]OFDSenderStorePacket done [06:42:33]KKMCreateOFDPacket done [06:42:33]NVStorageSaveData kkm_last_timestamp [06:42:33]File name is /storage/kkm_last_timestamp [06:42:33]Write 4 bytes [06:42:33]NVStorageSaveData done [06:42:33]ExternCall_PrintAddStr [06:42:33]wPrintStart [06:42:33]Write to MH i2c: 01 00 00 C0 0F CF [06:42:33]Write i2c OK [06:42:33]MH_I2C_Read... [06:42:33]Read from MH i2c: 01 [06:42:33]MH_I2C_Read... [06:42:33]Read from MH i2c: 01 07 00 [06:42:33]MH_I2C_Read... [06:42:33]Read from MH i2c: 01 07 00 C0 0F 00 00 00 00 00 FF 0F E4 [06:42:33]RasterBufferAndPrint [06:42:33]line Счет N : (1)1964281 [06:42:33]line ИНН: 02508201610067 [06:42:33]line Контрольно-Кассовый Чек [06:42:33]line ПРОДАЖА [06:42:33]line ТРК (МРК, ГНК) : 33 [06:42:33]line Товар: 2710124130 [06:42:33]line Аи-92-К-5 [06:42:33]line 11.960 * 66.90 [06:42:33]line = 800.12 [06:42:33]line НДС 12% НСП 1% [06:42:33]line > о реализуемом товаре [06:42:33]line ОКРУГЛЕНИЕ: -0.12 [06:42:33]line ИТОГО: 800.00 [06:42:33]line Внесено: 800.00 [06:42:33]line СДАЧА: 0.00 [06:42:33]line НСП 1% : 7.08 [06:42:33]line НДС 12% : 84.97 [06:42:33]line Наличными: 800.00 [06:42:33]line Безнал.: 0.00 [06:42:33]line Место: АЗС № 133 "Партнер Нефть" [06:42:33]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [06:42:33]line СНО: Общий режим [06:42:33]line Чек 46 22.10.2024 06:42 [06:42:33]line Смена: 535 ФФД: 1.0 [06:42:33]line ЗНМ: 0300000091 [06:42:33]line РНМ: 0000000000091685 [06:42:33]line Версия ККМ: 001 [06:42:33]line ФМ: 0000000000871839 [06:42:33]line ФД: 228082 [06:42:33]line ФПД: 251025658921703 [06:42:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T064234&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228082&fm=251025658921703&tin=02508201610067®Number=0000000000091685&sum=80000 [06:42:33]OFD Sender: Processing packet 228082 [packets to send 38, broken 37] [06:42:33]ProducePacketName [06:42:33]name=ofd_packets/00228082 [06:42:33]OFD Sender: To server: pG, [06:42:33]CommunicateWithHost lk.salyk.kg:30040 [06:42:33]ConnectInit lk.salyk.kg [06:42:33]written 0, free lines is 4095 [06:42:33]Connected sock=10 [06:42:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 5B 1F 07 01 F0 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 5A 49 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F2 7A 03 00 35 04 06 00 E4 4E 77 3A C2 E7 A9 75 E9 D5 B9 AC 22 D9 [06:42:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 3F D2 47 00 53 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F2 7A 03 00 F4 03 04 00 53 F4 16 67 B6 04 01 00 00 5D 60 9B FE D2 7F D9 AB [06:42:33]CommunicateWithHost err = 0 [06:42:33]CheckOFDResponse [06:42:33]1017 (14) - 77093643461234 [06:42:33]1041 (16) - 0000000000871839 [06:42:33]1040 (4) - 228082 [06:42:33]1012 (4) - 22.10.2024 00:39 [06:42:33]1206 (1) - 0 [06:42:33]OFD Sender: Remove packet 228082 [06:42:33]ProducePacketName [06:42:33]name=ofd_packets/00228082 [06:42:33]NVStorageDeleteData [06:42:34]Write to MH i2c: 01 00 00 EA 0F F9 [06:42:34]Write i2c OK [06:42:34]MH_I2C_Read... [06:42:34]Read from MH i2c: 01 [06:42:34]MH_I2C_Read... [06:42:34]Read from MH i2c: 01 07 00 [06:42:34]MH_I2C_Read... [06:42:34]Read from MH i2c: 01 07 00 EA 0F 00 00 00 00 00 A6 0C B2 [06:42:34]RasterBufferAndPrint [06:42:34]line [06:42:34]line [06:42:34]line [06:42:34]line [06:42:34]line [06:42:34]written 0, free lines is 3241 [06:42:34]MH_Cut [06:42:34]Write to MH i2c: D1 01 00 F1 0F 01 D2 [06:42:34]Write i2c OK [06:42:34]MH_I2C_Read... [06:42:34]Read from MH i2c: D1 [06:42:34]MH_I2C_Read... [06:42:34]Read from MH i2c: D1 01 00 [06:42:34]MH_I2C_Read... [06:42:34]Read from MH i2c: D1 01 00 F1 0F 00 D1 [06:42:34]Write to MH i2c: 01 00 00 F2 0F 01 [06:42:34]Write i2c OK [06:42:34]MH_I2C_Read... [06:42:34]OFD Sender: No OFD packet to send [06:42:35]*** Cut start [06:42:35]*** Partial cut [06:42:35]*** CUTSNS_PIN = 1 [06:42:35]*** CUTSNS_PIN = 0 [06:42:35]*** Brake cut motor [06:42:35]Read from MH i2c: 01 [06:42:35]MH_I2C_Read... [06:42:35]*** Stop cut motor [06:42:35]*** Cut end [06:42:35]Read from MH i2c: 01 07 00 [06:42:35]MH_I2C_Read... [06:42:35]Read from MH i2c: 01 07 00 F2 0F 00 00 00 00 00 FF 0F 16 [06:42:35]process_action close_receipt done [06:42:35]requested_data is exist [06:42:35]produce_requested_data [06:42:35]requested_item fm.sn is exist - process it [06:42:35]wFMCommunicate request_size=4 [06:42:35]MH_SAM_APDU [06:42:35]CAPDU: 80 11 00 00 [06:42:35]Write to MH i2c: E2 08 00 F3 0F 80 11 00 00 00 00 00 00 7C [06:42:35]Write i2c OK [06:42:35]MH_I2C_Read... [06:42:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:42:35]Read from MH i2c: E2 [06:42:35]MH_I2C_Read... [06:42:35]Read from MH i2c: E2 17 00 [06:42:35]MH_I2C_Read... [06:42:35]Read from MH i2c: E2 17 00 F3 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D3 [06:42:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:42:35]wFMCommunicate OK [06:42:35]requested_item fd.num is exist - process it [06:42:35]SAM_PROTO_GetFieldsCounters [06:42:35]wFMCommunicate request_size=4 [06:42:35]MH_SAM_APDU [06:42:35]CAPDU: 80 13 00 00 [06:42:35]Write to MH i2c: E2 08 00 F4 0F 80 13 00 00 00 00 00 00 7F [06:42:35]Write i2c OK [06:42:35]MH_I2C_Read... [06:42:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:42:35]Read from MH i2c: E2 [06:42:35]MH_I2C_Read... [06:42:35]Read from MH i2c: E2 62 00 [06:42:35]MH_I2C_Read... [06:42:35]Read from MH i2c: E2 62 00 F4 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F2 7A 03 00 0E 04 04 00 17 02 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 BA [06:42:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F2 7A 03 00 0E 04 04 00 17 02 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 [06:42:35]wFMCommunicate OK [06:42:35]SAM_PROTO_GetFieldsCounters done [06:42:35]requested_item shift.num is exist - process it [06:42:35]requested_item shift.opened is exist - process it [06:42:35]req_shift_opened [06:42:35]FM_GetShiftState [06:42:35]SAM_PROTO_GetShiftState [06:42:35]wFMCommunicate request_size=4 [06:42:35]MH_SAM_APDU [06:42:35]CAPDU: 80 13 01 00 [06:42:35]Write to MH i2c: E2 08 00 F5 0F 80 13 01 00 00 00 00 00 81 [06:42:35]Write i2c OK [06:42:35]MH_I2C_Read... [06:42:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:42:35]Read from MH i2c: E2 [06:42:35]MH_I2C_Read... [06:42:35]Read from MH i2c: E2 0E 00 [06:42:35]MH_I2C_Read... [06:42:35]Read from MH i2c: E2 0E 00 F5 0F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 48 [06:42:35]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [06:42:35]wFMCommunicate OK [06:42:35]SAM_PROTO_GetShiftState done [06:42:35]FM_GetShiftState done [06:42:35]req_shift_opened done [06:42:35]requested_item shift.open_date is exist - process it [06:42:35]req_shift_open_date [06:42:35]req_shift_open_date done [06:42:35]produce_requested_data done [06:42:35]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228082,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [06:42:35]process_action_free close_receipt [06:42:35]json_value_free [06:42:35]json_value_free done [06:42:35]process_json_proto returns [06:42:35]Send response to host [06:42:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228082,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [06:42:35]free response buf [06:42:35]execute_script done [06:42:35]execute_script returns [06:42:35]free content buf [06:42:35]Sock 7.Close socket [06:42:35]Sock 7.Thread stoped [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43:09]OFD Sender: No OFD packet to send [06:43:14]OFD Sender: No OFD packet to send [06:43:19]OFD Sender: No OFD packet to send [06:43:24]OFD Sender: No OFD packet to send [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]int [06:43:49]Write to MH i2c: 01 00 00 F6 0F 05 [06:43:49]*** FLAG_PRN_PAP1 set [06:43:49]Write i2c OK [06:43:49]MH_I2C_Read... [06:43:49]Read from MH i2c: 01 [06:43:49]MH_I2C_Read... [06:43:49]Read from MH i2c: 01 07 00 [06:43:49]MH_I2C_Read... [06:43:49]Read from MH i2c: 01 07 00 F6 0F 00 01 00 00 00 FF 0F 1B [06:43:49]state=0 [06:43:49]No paper [06:43:49]int [06:43:49]Write to MH i2c: 01 00 00 F7 0F 06 [06:43:49]*** FLAG_PRN_PAP2 set [06:43:49]Write i2c OK [06:43:49]MH_I2C_Read... [06:43:49]Read from MH i2c: 01 [06:43:49]MH_I2C_Read... [06:43:49]Read from MH i2c: 01 07 00 [06:43:49]MH_I2C_Read... [06:43:49]Read from MH i2c: 01 07 00 F7 0F 00 03 00 00 00 FF 0F 1E [06:43:49]state=0 [06:43:49]No paper [06:43:49]Cover opened [06:43:49]OFD Sender: No OFD packet to send [06:43:50]int [06:43:50]Write to MH i2c: 01 00 00 F8 0F 07 [06:43:50]*** FLAG_PRN_PAP2 reset [06:43:50]Write i2c OK [06:43:50]MH_I2C_Read... [06:43:50]Read from MH i2c: 01 [06:43:50]MH_I2C_Read... [06:43:50]Read from MH i2c: 01 07 00 [06:43:50]MH_I2C_Read... [06:43:50]Read from MH i2c: 01 07 00 F8 0F 00 01 00 00 00 FF 0F 1D [06:43:50]state=3 [06:43:50]No paper [06:43:50]Cover closed [06:43:54]OFD Sender: No OFD packet to send [06:43:59]OFD Sender: No OFD packet to send [06:44:04]OFD Sender: No OFD packet to send [06:44:09]OFD Sender: No OFD packet to send [06:44:14]OFD Sender: No OFD packet to send [06:44:19]OFD Sender: No OFD packet to send [06:44:24]OFD Sender: No OFD packet to send [06:44:29]OFD Sender: No OFD packet to send [06:44:34]OFD Sender: No OFD packet to send [06:44:39]OFD Sender: No OFD packet to send [06:44:44]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]accept exits with 9 [06:45:39]New connection [06:45:39]New thread 3067137380 created [06:45:39]Thread 3066994020 joined [06:45:39]Waiting for new connection... [06:45:39] Sock 9.Parse request [06:45:39]Sock 9.Check first char [06:45:39]Sock 9.First char is OK [06:45:39]request: POST /json_proto HTTP/1.0 [06:45:39]Method: POST [06:45:39]URL: /json_proto [06:45:39]Method is POST - this is cgi request [06:45:39]url: /json_proto [06:45:39]query_string will be loaded in cgi processing [06:45:39]execute_cgi json_proto POST (null) [06:45:39]execute_cgi path=json_proto method=POST [06:45:39]POST find Content-Length [06:45:39]Host: 172.17.44.195:8080 [06:45:39]Content-Length: 683 [06:45:39]Content-Type: application/json [06:45:39] [06:45:39]POST finish read [06:45:39]Found Content-Length = 683 [06:45:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 37.370, "sum" : 2500.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:45:39]execute_script... [06: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)1964282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 37.370, "sum" : 2500.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:45:39]POST & json_proto [06:45:39]process_json_proto [06:45:39]json parsed OK: [06:45:39]protocol is kg_v1.0 [06:45:39]action value=close_receipt [06:45:39]process_action close_receipt [06:45:39]cmd_close_receipt [06:45:39]MH_GetDate [06:45:39]Write to MH i2c: F0 00 00 F9 0F F7 [06:45:39]Write i2c OK [06:45:39]MH_I2C_Read... [06:45:39]Read from MH i2c: F0 [06:45:39]MH_I2C_Read... [06:45:39]Read from MH i2c: F0 09 00 [06:45:39]MH_I2C_Read... [06:45:39]Read from MH i2c: F0 09 00 F9 0F 00 15 4A 17 67 82 C9 CF 66 5D [06:45:39]GetLastDocTimeStamp 1729579354 [06:45:39]current date 1729579541 [06:45:39]FM_GetShiftState [06:45:39]SAM_PROTO_GetShiftState [06:45:39]wFMCommunicate request_size=4 [06:45:39]MH_SAM_APDU [06:45:39]CAPDU: 80 13 01 00 [06:45:39]Write to MH i2c: E2 08 00 FA 0F 80 13 01 00 00 00 00 00 86 [06:45:39]Write i2c OK [06:45:39]MH_I2C_Read... [06:45:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:45:39]Read from MH i2c: E2 [06:45:39]MH_I2C_Read... [06:45:39]Read from MH i2c: E2 0E 00 [06:45:39]MH_I2C_Read... [06:45:39]Read from MH i2c: E2 0E 00 FA 0F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 4D [06:45:39]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [06:45:39]wFMCommunicate OK [06:45:39]SAM_PROTO_GetShiftState done [06:45:39]FM_GetShiftState done [06:45:39]opened in 1729555538 [06:45:39]opened+sec_in_day 1729641938 [06:45:39]quantity*price = 250005 [06:45:39]sum+1 = 250006 [06:45:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 2500.00 Внесено: 5000.00 СДАЧА: 2500.00 НСП 1% : 22.12 НДС 12% : 265.49 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 47 22.10.2024 06:45 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228083 ФПД: 261185429584654 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T064541&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228083&fm=261185429584654&tin=02508201610067®Number=0000000000091685&sum=250000 [06:45:40]StoreToDocumentArchive [06:45:40]shift 535 fd 228083 [06:45:40]save to /storage/0535/doc_00228083 [06:45:40]save last doc name /storage/0535/doc_00228083 to /storage/kkm_last_doc_name [06:45:40]save OK [06:45:40]Clear old archive folders... [06:45:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:45:40]tlvbuf is 008609C0 [06:45:40]SAM_PROTO_ClearQueue [06:45:40]wFMCommunicate request_size=4 [06:45:40]MH_SAM_APDU [06:45:40]CAPDU: 80 09 00 00 [06:45:40]Write to MH i2c: E2 08 00 07 10 80 09 00 00 00 00 00 00 89 [06:45:40]Write i2c OK [06:45:40]MH_I2C_Read... [06:45:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:45:40]Read from MH i2c: E2 [06:45:40]MH_I2C_Read... [06:45:40]Read from MH i2c: E2 03 00 [06:45:40]MH_I2C_Read... [06:45:40]Read from MH i2c: E2 03 00 07 10 00 90 00 8B [06:45:40]RAPDU: 90 00 [06:45:40]wFMCommunicate OK [06:45:40]SAM_PROTO_ClearQueue done [06:45:40]KKMCreateOFDPacket [06:45:40]OFDProtocolAddRootSTLVToBuf [06:45:40]FM_MakeSignedData [06:45:40]FM_MakeSignedData [06:45:40]SAM_PROTO_SignData [06:45:40]wFMCommunicate request_size=4 [06:45:40]MH_SAM_APDU [06:45:40]CAPDU: 80 0D 01 02 [06:45:40]Write to MH i2c: E2 08 00 08 10 80 0D 01 02 00 00 00 00 91 [06:45:40]Write i2c OK [06:45:40]MH_I2C_Read... [06:45:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:45:40]Read from MH i2c: E2 [06:45:40]MH_I2C_Read... [06:45:40]Read from MH i2c: E2 03 00 [06:45:40]MH_I2C_Read... [06:45:40]Read from MH i2c: E2 03 00 08 10 00 90 00 8C [06:45:40]RAPDU: 90 00 [06:45:40]wFMCommunicate OK [06:45:40]wFMCommunicate request_size=255 [06:45:40]MH_SAM_APDU [06:45: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 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 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 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 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 2F 00 00 00 F4 03 04 00 15 4A 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F3 7A 03 00 35 04 06 00 ED [06:45:40]Write to MH i2c: E2 02 01 09 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 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 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 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 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 2F 00 00 00 F4 03 04 00 15 4A 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F3 7A 03 00 35 04 06 00 ED 00 00 E2 [06:45:40]Write i2c OK [06:45:40]MH_I2C_Read... [06:45:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:45:40]Read from MH i2c: E2 [06:45:40]MH_I2C_Read... [06:45:40]Read from MH i2c: E2 03 00 [06:45:40]MH_I2C_Read... [06:45:40]Read from MH i2c: E2 03 00 09 10 00 90 00 8D [06:45:40]RAPDU: 90 00 [06:45:40]wFMCommunicate OK [06:45:40]wFMCommunicate request_size=10 [06:45:40]MH_SAM_APDU [06:45:40]CAPDU: 80 0D 02 02 05 8B F8 C0 3B 0E [06:45:40]Write to MH i2c: E2 0D 00 0A 10 80 0D 02 02 05 00 8B F8 C0 3B 0E 00 00 2A [06:45:40]Write i2c OK [06:45:40]MH_I2C_Read... [06:45:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:45:40]Read from MH i2c: E2 [06:45:40]MH_I2C_Read... [06:45:40]Read from MH i2c: E2 03 00 [06:45:40]MH_I2C_Read... [06:45:40]Read from MH i2c: E2 03 00 0A 10 00 90 00 8E [06:45:40]RAPDU: 90 00 [06:45:40]wFMCommunicate OK [06:45:40]wFMCommunicate request_size=4 [06:45:40]MH_SAM_APDU [06:45:40]CAPDU: 80 0D 03 02 [06:45:40]Write to MH i2c: E2 08 00 0B 10 80 0D 03 02 00 00 00 00 96 [06:45:40]Write i2c OK [06:45:40]MH_I2C_Read... [06:45:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:45:41]Read from MH i2c: E2 [06:45:41]MH_I2C_Read... [06:45:41]Read from MH i2c: E2 0B 00 [06:45:41]MH_I2C_Read... [06:45:41]Read from MH i2c: E2 0B 00 0B 10 00 E7 36 83 06 01 09 AC 67 90 00 5A [06:45:41]RAPDU: E7 36 83 06 01 09 AC 67 90 00 [06:45:41]wFMCommunicate OK [06:45:41]SAM_PROTO_SignData done [06:45:41]FM_MakeSignedData done [06:45:41]CreateOFDProtocolMessage [06:45:41]wFMCommunicate request_size=4 [06:45:41]MH_SAM_APDU [06:45:41]CAPDU: 80 11 00 00 [06:45:41]Write to MH i2c: E2 08 00 0C 10 80 11 00 00 00 00 00 00 96 [06:45:41]Write i2c OK [06:45:41]MH_I2C_Read... [06:45:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:45:41]Read from MH i2c: E2 [06:45:41]MH_I2C_Read... [06:45:41]Read from MH i2c: E2 17 00 [06:45:41]MH_I2C_Read... [06:45:41]Read from MH i2c: E2 17 00 0C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 ED [06:45:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:45:41]wFMCommunicate OK [06:45:41]CreateOFDProtocolMessage done [06:45:41]OFDSenderStorePacket 228083 [06:45:41]StoreOFDPacket docnum=228083 [06:45:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 2D 74 07 01 B4 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 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 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 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 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 2F 00 00 00 F4 03 04 00 15 4A 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F3 7A 03 00 35 04 06 00 ED 8B F8 C0 3B 0E E7 36 83 06 01 09 AC 67 [06:45:41]CheckFolder [06:45:41]dirname=/storage/ofd_packets [06:45:41]CheckFolder done [06:45:41]ProducePacketName [06:45:41]name=ofd_packets/00228083 [06:45:41]NVStorageSaveData ofd_packets/00228083 [06:45:41]File name is /storage/ofd_packets/00228083 [06:45:41]Write 301 bytes [06:45:41]NVStorageSaveData done [06:45:41]OFDSenderStorePacket done [06:45:41]KKMCreateOFDPacket done [06:45:41]NVStorageSaveData kkm_last_timestamp [06:45:41]File name is /storage/kkm_last_timestamp [06:45:41]Write 4 bytes [06:45:41]NVStorageSaveData done [06:45:41]ExternCall_PrintAddStr [06:45:41]wPrintStart [06:45:41]Write to MH i2c: 01 00 00 0D 10 1D [06:45:41]Write i2c OK [06:45:41]MH_I2C_Read... [06:45:41]Read from MH i2c: 01 [06:45:41]MH_I2C_Read... [06:45:41]Read from MH i2c: 01 07 00 [06:45:41]MH_I2C_Read... [06:45:41]Read from MH i2c: 01 07 00 0D 10 00 01 00 00 00 FF 0F 33 [06:45:41]RasterBufferAndPrint [06:45:41]line Счет N : (1)1964282 [06:45:41]line ИНН: 02508201610067 [06:45:41]line Контрольно-Кассовый Чек [06:45:41]line ПРОДАЖА [06:45:41]line ТРК (МРК, ГНК) : 43 [06:45:41]line Товар: 2710124130 [06:45:41]line Аи-92-К-5 [06:45:41]line 37.370 * 66.90 [06:45:41]line = 2500.05 [06:45:41]line НДС 12% НСП 1% [06:45:41]line > о реализуемом товаре [06:45:41]line ОКРУГЛЕНИЕ: -0.05 [06:45:41]line ИТОГО: 2500.00 [06:45:41]line Внесено: 5000.00 [06:45:41]line СДАЧА: 2500.00 [06:45:41]line НСП 1% : 22.12 [06:45:41]line НДС 12% : 265.49 [06:45:41]line Наличными: 2500.00 [06:45:41]line Безнал.: 0.00 [06:45:41]line Место: АЗС № 133 "Партнер Нефть" [06:45:41]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [06:45:41]line СНО: Общий режим [06:45:41]line Чек 47 22.10.2024 06:45 [06:45:41]line Смена: 535 ФФД: 1.0 [06:45:41]line ЗНМ: 0300000091 [06:45:41]line РНМ: 0000000000091685 [06:45:41]line Версия ККМ: 001 [06:45:41]line ФМ: 0000000000871839 [06:45:41]line ФД: 228083 [06:45:41]line ФПД: 261185429584654 [06:45:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T064541&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228083&fm=261185429584654&tin=02508201610067®Number=0000000000091685&sum=250000 [06:45:41]written 0, free lines is 4095 [06:45:41]OFD Sender: Processing packet 228083 [packets to send 38, broken 37] [06:45:41]ProducePacketName [06:45:41]name=ofd_packets/00228083 [06:45:41]OFD Sender: To server: pG, [06:45:41]CommunicateWithHost lk.salyk.kg:30040 [06:45:41]ConnectInit lk.salyk.kg [06:45:41]Error from MH - 05 [06:45:41]process_action_free close_receipt [06:45:41]json_value_free [06:45:41]json_value_free done [06:45:41]process_json_proto returns [06:45:41]Send response to host [06:45:41]{"protocol":"kg_v1.0","response":{"error":1033,"error_desc":"No paper"}} [06:45:41]free response buf [06:45:41]execute_script done [06:45:41]execute_script returns [06:45:41]free content buf [06:45:41]Sock 9.Close socket [06:45:41]Sock 9.Thread stoped [06:45:41]Connected sock=10 [06:45:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 2D 74 07 01 B4 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 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 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 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 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 2F 00 00 00 F4 03 04 00 15 4A 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F3 7A 03 00 35 04 06 00 ED 8B F8 C0 3B 0E E7 36 83 06 01 09 AC 67 [06:45:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 8E A3 47 00 AE 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F3 7A 03 00 F4 03 04 00 0F F5 16 67 B6 04 01 00 00 D7 20 A1 B7 D8 79 1A 35 [06:45:41]CommunicateWithHost err = 0 [06:45:41]CheckOFDResponse [06:45:41]1017 (14) - 77093643461234 [06:45:41]1041 (16) - 0000000000871839 [06:45:41]1040 (4) - 228083 [06:45:41]1012 (4) - 22.10.2024 00:42 [06:45:41]1206 (1) - 0 [06:45:41]OFD Sender: Remove packet 228083 [06:45:41]ProducePacketName [06:45:41]name=ofd_packets/00228083 [06:45:41]NVStorageDeleteData [06:45:42]OFD Sender: No OFD packet to send [06:45:47]OFD Sender: No OFD packet to send [06:45:52]OFD Sender: No OFD packet to send [06:45:57]OFD Sender: No OFD packet to send [06:46:02]OFD Sender: No OFD packet to send [06:46:07]OFD Sender: No OFD packet to send [06:46:12]OFD Sender: No OFD packet to send [06:46:17]OFD Sender: No OFD packet to send [06:46:22]OFD Sender: No OFD packet to send [06:46:27]OFD Sender: No OFD packet to send [06:46:32]OFD Sender: No OFD packet to send [06:46:37]OFD Sender: No OFD packet to send [06:46:42]OFD Sender: No OFD packet to send [06:46:47]OFD Sender: No OFD packet to send [06:46:52]OFD Sender: No OFD packet to send [06:46:57]OFD Sender: No OFD packet to send [06:47:02]OFD Sender: No OFD packet to send [06:47:07]OFD Sender: No OFD packet to send [06:47:12]OFD Sender: No OFD packet to send [06:47:17]OFD Sender: No OFD packet to send [06:47:22]OFD Sender: No OFD packet to send [06:47:27]OFD Sender: No OFD packet to send [06:47:32]OFD Sender: No OFD packet to send [06:47:37]OFD Sender: No OFD packet to send [06:47:42]OFD Sender: No OFD packet to send [06:47:47]OFD Sender: No OFD packet to send [06:47:52]OFD Sender: No OFD packet to send [06:47:57]OFD Sender: No OFD packet to send [06:48:02]OFD Sender: No OFD packet to send [06:48:07]OFD Sender: No OFD packet to send [06:48:12]OFD Sender: No OFD packet to send [06:48:17]OFD Sender: No OFD packet to send [06:48:22]OFD Sender: No OFD packet to send [06:48:27]OFD Sender: No OFD packet to send [06:48:32]OFD Sender: No OFD packet to send [06:48:37]OFD Sender: No OFD packet to send [06:48:42]OFD Sender: No OFD packet to send [06:48:47]OFD Sender: No OFD packet to send [06:48:52]OFD Sender: No OFD packet to send [06:48:57]OFD Sender: No OFD packet to send [06:49:02]OFD Sender: No OFD packet to send [06:49:07]OFD Sender: No OFD packet to send [06:49:12]OFD Sender: No OFD packet to send [06:49:17]OFD Sender: No OFD packet to send [06:49:22]OFD Sender: No OFD packet to send [06:49:27]OFD Sender: No OFD packet to send [06:49:32]OFD Sender: No OFD packet to send [06:49:37]OFD Sender: No OFD packet to send [06:49:42]OFD Sender: No OFD packet to send [06:49:47]OFD Sender: No OFD packet to send [06:49:52]OFD Sender: No OFD packet to send [06:49:57]OFD Sender: No OFD packet to send [06:50:02]OFD Sender: No OFD packet to send [06:50:07]OFD Sender: No OFD packet to send [06:50:12]OFD Sender: No OFD packet to send [06:50:17]OFD Sender: No OFD packet to send [06:50:22]OFD Sender: No OFD packet to send [06:50:27]OFD Sender: No OFD packet to send [06:50:32]OFD Sender: No OFD packet to send [06:50:37]OFD Sender: No OFD packet to send [06:50:42]OFD Sender: No OFD packet to send [06:50:47]OFD Sender: No OFD packet to send [06:50:50]int [06:50:50]Write to MH i2c: 01 00 00 10 10 20 [06:50:50]*** FLAG_PRN_PAP2 set [06:50:50]Write i2c OK [06:50:50]MH_I2C_Read... [06:50:50]Read from MH i2c: 01 [06:50:50]MH_I2C_Read... [06:50:50]Read from MH i2c: 01 07 00 [06:50:50]MH_I2C_Read... [06:50:50]Read from MH i2c: 01 07 00 10 10 00 03 00 00 00 FF 0F 38 [06:50:50]state=0 [06:50:50]No paper [06:50:50]Cover opened [06:50:52]OFD Sender: No OFD packet to send [06:50:53]int [06:50:53]Write to MH i2c: 01 00 00 11 10 21 [06:50:53]Write i2c OK [06:50:53]MH_I2C_Read... [06:50:53]Read from MH i2c: 01 [06:50:53]MH_I2C_Read... [06:50:53]Read from MH i2c: 01 07 00 [06:50:53]MH_I2C_Read... [06:50:53]*** FLAG_PRN_PAP2 reset [06:50:53]*** FLAG_PRN_PAP1 reset [06:50:53]Read from MH i2c: 01 07 00 11 10 00 00 00 00 00 FF 0F 36 [06:50:53]state=3 [06:50:53]Cover closed [06:50:57]OFD Sender: No OFD packet to send [06:50:59]accept exits with 7 [06:50:59]New connection [06:50:59]New thread 3066994020 created [06:50:59]Thread 3067137380 joined [06:50:59]Waiting for new connection... [06:50:59] Sock 7.Parse request [06:50:59]Sock 7.Check first char [06:50:59]Sock 7.First char is OK [06:50:59]request: POST /json_proto HTTP/1.0 [06:50:59]Method: POST [06:50:59]URL: /json_proto [06:50:59]Method is POST - this is cgi request [06:50:59]url: /json_proto [06:50:59]query_string will be loaded in cgi processing [06:50:59]execute_cgi json_proto POST (null) [06:50:59]execute_cgi path=json_proto method=POST [06:50:59]POST find Content-Length [06:50:59]Host: 172.17.44.195:8080 [06:50:59]Content-Length: 215 [06:50:59]Content-Type: application/json [06:50:59] [06:50:59]POST finish read [06:50:59]Found Content-Length = 215 [06:50:59]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" ] } } [06:50:59]execute_script... [06:50:59]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" ] } } [06:50:59]POST & json_proto [06:50:59]process_json_proto [06:50:59]json parsed OK: [06:50:59]protocol is kg_v1.0 [06:50:59]action value=get_value [06:50:59]process_action get_value [06:50:59]cmd_get_value [06:50:59]process_action get_value done [06:50:59]requested_data is exist [06:50:59]produce_requested_data [06:50:59]requested_item kkm.sn is exist - process it [06:50:59]requested_item kkm.ver is exist - process it [06:50:59]requested_item fm.sn is exist - process it [06:50:59]wFMCommunicate request_size=4 [06:50:59]MH_SAM_APDU [06:50:59]CAPDU: 80 11 00 00 [06:50:59]Write to MH i2c: E2 08 00 12 10 80 11 00 00 00 00 00 00 9C [06:50:59]Write i2c OK [06:50:59]MH_I2C_Read... [06:50:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:50:59]Read from MH i2c: E2 [06:50:59]MH_I2C_Read... [06:50:59]Read from MH i2c: E2 17 00 [06:50:59]MH_I2C_Read... [06:50:59]Read from MH i2c: E2 17 00 12 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F3 [06:50:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:50:59]wFMCommunicate OK [06:50:59]requested_item fd.num is exist - process it [06:50:59]SAM_PROTO_GetFieldsCounters [06:50:59]wFMCommunicate request_size=4 [06:50:59]MH_SAM_APDU [06:50:59]CAPDU: 80 13 00 00 [06:50:59]Write to MH i2c: E2 08 00 13 10 80 13 00 00 00 00 00 00 9F [06:50:59]Write i2c OK [06:50:59]MH_I2C_Read... [06:50:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:50:59]Read from MH i2c: E2 [06:50:59]MH_I2C_Read... [06:50:59]Read from MH i2c: E2 62 00 [06:50:59]MH_I2C_Read... [06:50:59]Read from MH i2c: E2 62 00 13 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F3 7A 03 00 0E 04 04 00 17 02 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 DE [06:50:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F3 7A 03 00 0E 04 04 00 17 02 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 [06:50:59]wFMCommunicate OK [06:50:59]SAM_PROTO_GetFieldsCounters done [06:50:59]requested_item shift.num is exist - process it [06:50:59]requested_item shift.opened is exist - process it [06:50:59]req_shift_opened [06:50:59]FM_GetShiftState [06:50:59]SAM_PROTO_GetShiftState [06:50:59]wFMCommunicate request_size=4 [06:50:59]MH_SAM_APDU [06:50:59]CAPDU: 80 13 01 00 [06:50:59]Write to MH i2c: E2 08 00 14 10 80 13 01 00 00 00 00 00 A1 [06:50:59]Write i2c OK [06:50:59]MH_I2C_Read... [06:50:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:50:59]Read from MH i2c: E2 [06:50:59]MH_I2C_Read... [06:50:59]Read from MH i2c: E2 0E 00 [06:50:59]MH_I2C_Read... [06:50:59]Read from MH i2c: E2 0E 00 14 10 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 68 [06:50:59]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [06:50:59]wFMCommunicate OK [06:50:59]SAM_PROTO_GetShiftState done [06:50:59]FM_GetShiftState done [06:50:59]req_shift_opened done [06:50:59]requested_item shift.open_date is exist - process it [06:50:59]req_shift_open_date [06:50:59]req_shift_open_date done [06:50:59]produce_requested_data done [06:50:59]produce_requested_data return {"kkm.sn":"0300000091","kkm.ver":"001","fm.sn":"0000000000871839","fd.num":228083,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [06:50:59]process_action_free get_value [06:50:59]json_value_free [06:50:59]json_value_free done [06:50:59]process_json_proto returns [06:50:59]Send response to host [06:50:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000091","kkm.ver":"001","fm.sn":"0000000000871839","fd.num":228083,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [06:50:59]free response buf [06:50:59]execute_script done [06:50:59]execute_script returns [06:50:59]free content buf [06:50:59]Sock 7.Close socket [06:50:59]Sock 7.Thread stoped [06:50:59]accept exits with 9 [06:50:59]New connection [06:50:59]New thread 3067137380 created [06:50:59]Thread 3066994020 joined [06:50:59]Waiting for new connection... [06:50:59] Sock 9.Parse request [06:50:59]Sock 9.Check first char [06:50:59]Sock 9.First char is OK [06:50:59]request: POST /json_proto HTTP/1.0 [06:50:59]Method: POST [06:50:59]URL: /json_proto [06:50:59]Method is POST - this is cgi request [06:50:59]url: /json_proto [06:50:59]query_string will be loaded in cgi processing [06:50:59]execute_cgi json_proto POST (null) [06:50:59]execute_cgi path=json_proto method=POST [06:50:59]POST find Content-Length [06:50:59]Host: 172.17.44.195:8080 [06:50:59]Content-Length: 331 [06:50:59]Content-Type: application/json [06:50:59] [06:50:59]POST finish read [06:50:59]Found Content-Length = 331 [06:50:59]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" ] } } [06:50:59]execute_script... [06:50:59]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" ] } } [06:50:59]POST & json_proto [06:50:59]process_json_proto [06:50:59]json parsed OK: [06:50:59]protocol is kg_v1.0 [06:50:59]action value=get_value [06:50:59]process_action get_value [06:50:59]cmd_get_value [06:50:59]process_action get_value done [06:50:59]requested_data is exist [06:50:59]produce_requested_data [06:50:59]requested_item fm.sale.total is exist - process it [06:50:59]SAM_PROTO_GetFMData [06:50:59]wFMCommunicate request_size=4 [06:50:59]MH_SAM_APDU [06:50:59]CAPDU: 80 13 03 00 [06:50:59]Write to MH i2c: E2 08 00 15 10 80 13 03 00 00 00 00 00 A4 [06:50:59]Write i2c OK [06:50:59]MH_I2C_Read... [06:51:00]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [06:51:00]Read from MH i2c: E2 [06:51:00]MH_I2C_Read... [06:51:00]Read from MH i2c: E2 FD 00 [06:51:00]MH_I2C_Read... [06:51:00]Read from MH i2c: E2 FD 00 15 10 00 C5 04 85 04 C1 04 6E 04 04 00 C5 76 03 00 69 04 A3 00 6F 04 04 00 D4 6F 03 00 B1 04 05 00 3A 3C 9B C7 04 70 04 05 00 28 65 B7 4D 04 72 04 04 00 12 D7 E3 79 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 4A 87 FB 81 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 84 C9 D4 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F1 06 00 00 B1 04 04 00 18 5D D0 1E 70 04 04 00 18 5D D0 1E 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 3D C9 45 03 EF 03 09 90 00 85 [06:51:00]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C5 76 03 00 69 04 A3 00 6F 04 04 00 D4 6F 03 00 B1 04 05 00 3A 3C 9B C7 04 70 04 05 00 28 65 B7 4D 04 72 04 04 00 12 D7 E3 79 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 4A 87 FB 81 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 84 C9 D4 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F1 06 00 00 B1 04 04 00 18 5D D0 1E 70 04 04 00 18 5D D0 1E 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 3D C9 45 03 EF 03 09 90 00 [06:51:00]wFMCommunicate OK [06:51:00]wFMCommunicate request_size=4 [06:51:00]MH_SAM_APDU [06:51:00]CAPDU: 80 17 00 00 [06:51:00]Write to MH i2c: E2 08 00 16 10 80 17 00 00 00 00 00 00 A6 [06:51:00]Write i2c OK [06:51:00]MH_I2C_Read... [06:51:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:51:00]Read from MH i2c: E2 [06:51:00]MH_I2C_Read... [06:51:00]Read from MH i2c: E2 FD 00 [06:51:00]MH_I2C_Read... [06:51:00]Read from MH i2c: E2 FD 00 16 10 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 49 D0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 BA [06:51:00]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 49 D0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [06:51:00]wFMCommunicate OK [06:51:00]wFMCommunicate request_size=4 [06:51:00]MH_SAM_APDU [06:51:00]CAPDU: 80 17 00 00 [06:51:00]Write to MH i2c: E2 08 00 17 10 80 17 00 00 00 00 00 00 A7 [06:51:00]Write i2c OK [06:51:00]MH_I2C_Read... [06:51:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:51:00]Read from MH i2c: E2 [06:51:00]MH_I2C_Read... [06:51:00]Read from MH i2c: E2 FD 00 [06:51:00]MH_I2C_Read... [06:51:00]Read from MH i2c: E2 FD 00 17 10 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B9 [06:51:00]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [06:51:00]wFMCommunicate OK [06:51:00]wFMCommunicate request_size=4 [06:51:00]MH_SAM_APDU [06:51:00]CAPDU: 80 17 00 00 [06:51:00]Write to MH i2c: E2 08 00 18 10 80 17 00 00 00 00 00 00 A8 [06:51:00]Write i2c OK [06:51:00]MH_I2C_Read... [06:51:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:51:01]Read from MH i2c: E2 [06:51:01]MH_I2C_Read... [06:51:01]Read from MH i2c: E2 FD 00 [06:51:01]MH_I2C_Read... [06:51:01]Read from MH i2c: E2 FD 00 18 10 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 34 [06:51:01]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [06:51:01]wFMCommunicate OK [06:51:01]wFMCommunicate request_size=4 [06:51:01]MH_SAM_APDU [06:51:01]CAPDU: 80 17 00 00 [06:51:01]Write to MH i2c: E2 08 00 19 10 80 17 00 00 00 00 00 00 A9 [06:51:01]Write i2c OK [06:51:01]MH_I2C_Read... [06:51:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [06:51:01]Read from MH i2c: E2 [06:51:01]MH_I2C_Read... [06:51:01]Read from MH i2c: E2 E2 00 [06:51:01]MH_I2C_Read... [06:51:01]Read from MH i2c: E2 E2 00 19 10 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 87 [06:51:01]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [06:51:01]wFMCommunicate OK [06:51:01]SAM_PROTO_GetFMData done [06:51:01]requested_item fm.sale_refund.total is exist - process it [06:51:01]requested_item fm.buy.total is exist - process it [06:51:01]requested_item shift.sale.total is exist - process it [06:51:01]SAM_PROTO_GetShiftData [06:51:01]wFMCommunicate request_size=4 [06:51:01]MH_SAM_APDU [06:51:01]CAPDU: 80 13 02 00 [06:51:01]Write to MH i2c: E2 08 00 1A 10 80 13 02 00 00 00 00 00 A8 [06:51:01]Write i2c OK [06:51:01]MH_I2C_Read... [06:51:01]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [06:51:01]Read from MH i2c: E2 [06:51:01]MH_I2C_Read... [06:51:01]Read from MH i2c: E2 FD 00 [06:51:01]MH_I2C_Read... [06:51:01]Read from MH i2c: E2 FD 00 1A 10 00 AE 04 AA 04 AA 04 6E 04 04 00 2F 00 00 00 69 04 9B 00 6F 04 04 00 2F 00 00 00 B1 04 03 00 01 82 6E 70 04 03 00 C0 53 55 72 04 03 00 41 2E 19 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 B2 BC 0B 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 60 FA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 7B [06:51:01]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 2F 00 00 00 69 04 9B 00 6F 04 04 00 2F 00 00 00 B1 04 03 00 01 82 6E 70 04 03 00 C0 53 55 72 04 03 00 41 2E 19 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 B2 BC 0B 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 60 FA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [06:51:01]wFMCommunicate OK [06:51:01]wFMCommunicate request_size=4 [06:51:01]MH_SAM_APDU [06:51:01]CAPDU: 80 17 00 00 [06:51:01]Write to MH i2c: E2 08 00 1B 10 80 17 00 00 00 00 00 00 AB [06:51:01]Write i2c OK [06:51:01]MH_I2C_Read... [06:51:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:51:02]Read from MH i2c: E2 [06:51:02]MH_I2C_Read... [06:51:02]Read from MH i2c: E2 FD 00 [06:51:02]MH_I2C_Read... [06:51:02]Read from MH i2c: E2 FD 00 1B 10 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 CD [06:51:02]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [06:51:02]wFMCommunicate OK [06:51:02]wFMCommunicate request_size=4 [06:51:02]MH_SAM_APDU [06:51:02]CAPDU: 80 17 00 00 [06:51:02]Write to MH i2c: E2 08 00 1C 10 80 17 00 00 00 00 00 00 AC [06:51:02]Write i2c OK [06:51:02]MH_I2C_Read... [06:51:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:51:02]Read from MH i2c: E2 [06:51:02]MH_I2C_Read... [06:51:02]Read from MH i2c: E2 FD 00 [06:51:02]MH_I2C_Read... [06:51:02]Read from MH i2c: E2 FD 00 1C 10 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 63 [06:51:02]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [06:51:02]wFMCommunicate OK [06:51:02]wFMCommunicate request_size=4 [06:51:02]MH_SAM_APDU [06:51:02]CAPDU: 80 17 00 00 [06:51:02]Write to MH i2c: E2 08 00 1D 10 80 17 00 00 00 00 00 00 AD [06:51:02]Write i2c OK [06:51:02]MH_I2C_Read... [06:51:02]OFD Sender: No OFD packet to send [06:51:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:51:02]Read from MH i2c: E2 [06:51:02]MH_I2C_Read... [06:51:02]Read from MH i2c: E2 FD 00 [06:51:02]MH_I2C_Read... [06:51:02]Read from MH i2c: E2 FD 00 1D 10 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 1F [06:51:02]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [06:51:02]wFMCommunicate OK [06:51:02]wFMCommunicate request_size=4 [06:51:02]MH_SAM_APDU [06:51:02]CAPDU: 80 17 00 00 [06:51:02]Write to MH i2c: E2 08 00 1E 10 80 17 00 00 00 00 00 00 AE [06:51:02]Write i2c OK [06:51:02]MH_I2C_Read... [06:51:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [06:51:02]Read from MH i2c: E2 [06:51:02]MH_I2C_Read... [06:51:02]Read from MH i2c: E2 CB 00 [06:51:02]MH_I2C_Read... [06:51:02]Read from MH i2c: E2 CB 00 1E 10 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 97 [06:51:02]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [06:51:02]wFMCommunicate OK [06:51:02]SAM_PROTO_GetShiftData done [06:51:02]requested_item shift.sale.total_cash is exist - process it [06:51:02]requested_item shift.sale_refund.total is exist - process it [06:51:02]requested_item shift.sale_refund.total_cash is exist - process it [06:51:02]requested_item shift.buy.total is exist - process it [06:51:02]requested_item shift.buy.total_cash is exist - process it [06:51:02]produce_requested_data done [06:51:02]produce_requested_data return {"fm.sale.total":205287086.66,"fm.sale_refund.total":5169718.00,"fm.buy.total":0.00,"shift.sale.total":72422.41,"shift.sale.total_cash":55920.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} [06:51:02]process_action_free get_value [06:51:02]json_value_free [06:51:02]json_value_free done [06:51:02]process_json_proto returns [06:51:02]Send response to host [06:51:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":205287086.66,"fm.sale_refund.total":5169718.00,"fm.buy.total":0.00,"shift.sale.total":72422.41,"shift.sale.total_cash":55920.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}}} [06:51:02]free response buf [06:51:02]execute_script done [06:51:02]execute_script returns [06:51:02]free content buf [06:51:02]Sock 9.Close socket [06:51:02]Sock 9.Thread stoped [06:51:02]accept exits with 7 [06:51:02]New connection [06:51:02]New thread 3066994020 created [06:51:02]Thread 3067137380 joined [06:51:02]Waiting for new connection... [06:51:02] Sock 7.Parse request [06:51:02]Sock 7.Check first char [06:51:02]Sock 7.First char is OK [06:51:02]request: POST /json_proto HTTP/1.0 [06:51:02]Method: POST [06:51:02]URL: /json_proto [06:51:02]Method is POST - this is cgi request [06:51:02]url: /json_proto [06:51:02]query_string will be loaded in cgi processing [06:51:02]execute_cgi json_proto POST (null) [06:51:02]execute_cgi path=json_proto method=POST [06:51:02]POST find Content-Length [06:51:02]Host: 172.17.44.195:8080 [06:51:02]Content-Length: 144 [06:51:02]Content-Type: application/json [06:51:02] [06:51:02]POST finish read [06:51:02]Found Content-Length = 144 [06:51:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [06:51:02]execute_script... [06:51:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [06:51:02]POST & json_proto [06:51:02]process_json_proto [06:51:02]json parsed OK: [06:51:02]protocol is kg_v1.0 [06:51:02]action value=print_doc [06:51:02]process_action print_doc [06:51:02]ExternCall_PrintAddStr [06:51:02]wPrintStart [06:51:02]Write to MH i2c: 01 00 00 1F 10 2F [06:51:02]Write i2c OK [06:51:02]MH_I2C_Read... [06:51:02]Read from MH i2c: 01 [06:51:02]MH_I2C_Read... [06:51:02]Read from MH i2c: 01 07 00 [06:51:02]MH_I2C_Read... [06:51:02]Read from MH i2c: 01 07 00 1F 10 00 00 00 00 00 FF 0F 44 [06:51:02]RasterBufferAndPrint [06:51:02]line Счет N : (1)1964282 [06:51:02]line ИНН: 02508201610067 [06:51:02]line Контрольно-Кассовый Чек [06:51:02]line ПРОДАЖА [06:51:02]line ТРК (МРК, ГНК) : 43 [06:51:02]line Товар: 2710124130 [06:51:02]line Аи-92-К-5 [06:51:02]line 37.370 * 66.90 [06:51:02]line = 2500.05 [06:51:02]line НДС 12% НСП 1% [06:51:02]line > о реализуемом товаре [06:51:02]line ОКРУГЛЕНИЕ: -0.05 [06:51:02]line ИТОГО: 2500.00 [06:51:02]line Внесено: 5000.00 [06:51:02]line СДАЧА: 2500.00 [06:51:02]line НСП 1% : 22.12 [06:51:02]line НДС 12% : 265.49 [06:51:02]line Наличными: 2500.00 [06:51:02]line Безнал.: 0.00 [06:51:02]line Место: АЗС № 133 "Партнер Нефть" [06:51:02]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [06:51:02]line СНО: Общий режим [06:51:02]line Чек 47 22.10.2024 06:45 [06:51:02]line Смена: 535 ФФД: 1.0 [06:51:02]line ЗНМ: 0300000091 [06:51:02]line РНМ: 0000000000091685 [06:51:02]line Версия ККМ: 001 [06:51:02]line ФМ: 0000000000871839 [06:51:02]line ФД: 228083 [06:51:02]line ФПД: 261185429584654 [06:51:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T064541&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228083&fm=261185429584654&tin=02508201610067®Number=0000000000091685&sum=250000 [06:51:03]written 0, free lines is 4095 [06:51:03]Write to MH i2c: 01 00 00 49 10 59 [06:51:03]Write i2c OK [06:51:03]MH_I2C_Read... [06:51:03]Read from MH i2c: 01 [06:51:03]MH_I2C_Read... [06:51:03]Read from MH i2c: 01 07 00 [06:51:03]MH_I2C_Read... [06:51:03]Read from MH i2c: 01 07 00 49 10 00 00 00 00 00 AA 0C 16 [06:51:03]RasterBufferAndPrint [06:51:03]line [06:51:03]line [06:51:03]line [06:51:03]line [06:51:03]line [06:51:03]written 0, free lines is 3250 [06:51:03]MH_Cut [06:51:03]Write to MH i2c: D1 01 00 50 10 01 32 [06:51:03]Write i2c OK [06:51:03]MH_I2C_Read... [06:51:03]Read from MH i2c: D1 [06:51:03]MH_I2C_Read... [06:51:03]Read from MH i2c: D1 01 00 [06:51:03]MH_I2C_Read... [06:51:03]Read from MH i2c: D1 01 00 50 10 00 31 [06:51:03]Write to MH i2c: 01 00 00 51 10 61 [06:51:03]Write i2c OK [06:51:03]MH_I2C_Read... [06:51:04]*** Cut start [06:51:04]*** Partial cut [06:51:04]*** CUTSNS_PIN = 1 [06:51:04]*** CUTSNS_PIN = 0 [06:51:05]*** Brake cut motor [06:51:05]Read from MH i2c: 01 [06:51:05]MH_I2C_Read... [06:51:05]*** Stop cut motor [06:51:05]*** Cut end [06:51:05]Read from MH i2c: 01 07 00 [06:51:05]MH_I2C_Read... [06:51:05]Read from MH i2c: 01 07 00 51 10 00 00 00 00 00 FF 0F 76 [06:51:05]process_action print_doc done [06:51:05]requested_data is exist [06:51:05]produce_requested_data [06:51:05]produce_requested_data return (null) [06:51:05]process_action_free print_doc [06:51:05]json_value_free [06:51:05]json_value_free done [06:51:05]process_json_proto returns [06:51:05]Send response to host [06:51:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [06:51:05]free response buf [06:51:05]execute_script done [06:51:05]execute_script returns [06:51:05]free content buf [06:51:05]Sock 7.Close socket [06:51:05]Sock 7.Thread stoped [06:51:05]accept exits with 9 [06:51:05]New connection [06:51:05]New thread 3067137380 created [06:51:05]Thread 3066994020 joined [06:51:05]Waiting for new connection... [06:51:05] Sock 9.Parse request [06:51:05]Sock 9.Check first char [06:51:05]Sock 9.First char is OK [06:51:05]request: POST /json_proto HTTP/1.0 [06:51:05]Method: POST [06:51:05]URL: /json_proto [06:51:05]Method is POST - this is cgi request [06:51:05]url: /json_proto [06:51:05]query_string will be loaded in cgi processing [06:51:05]execute_cgi json_proto POST (null) [06:51:05]execute_cgi path=json_proto method=POST [06:51:05]POST find Content-Length [06:51:05]Host: 172.17.44.195:8080 [06:51:05]Content-Length: 331 [06:51:05]Content-Type: application/json [06:51:05] [06:51:05]POST finish read [06:51:05]Found Content-Length = 331 [06:51:05]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" ] } } [06:51:05]execute_script... [06:51:05]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" ] } } [06:51:05]POST & json_proto [06:51:05]process_json_proto [06:51:05]json parsed OK: [06:51:05]protocol is kg_v1.0 [06:51:05]action value=get_value [06:51:05]process_action get_value [06:51:05]cmd_get_value [06:51:05]process_action get_value done [06:51:05]requested_data is exist [06:51:05]produce_requested_data [06:51:05]requested_item fm.sale.total is exist - process it [06:51:05]SAM_PROTO_GetFMData [06:51:05]wFMCommunicate request_size=4 [06:51:05]MH_SAM_APDU [06:51:05]CAPDU: 80 13 03 00 [06:51:05]Write to MH i2c: E2 08 00 52 10 80 13 03 00 00 00 00 00 E1 [06:51:05]Write i2c OK [06:51:05]MH_I2C_Read... [06:51:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [06:51:05]Read from MH i2c: E2 [06:51:05]MH_I2C_Read... [06:51:05]Read from MH i2c: E2 FD 00 [06:51:05]MH_I2C_Read... [06:51:05]Read from MH i2c: E2 FD 00 52 10 00 C5 04 85 04 C1 04 6E 04 04 00 C5 76 03 00 69 04 A3 00 6F 04 04 00 D4 6F 03 00 B1 04 05 00 3A 3C 9B C7 04 70 04 05 00 28 65 B7 4D 04 72 04 04 00 12 D7 E3 79 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 4A 87 FB 81 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 84 C9 D4 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F1 06 00 00 B1 04 04 00 18 5D D0 1E 70 04 04 00 18 5D D0 1E 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 3D C9 45 03 EF 03 09 90 00 C2 [06:51:05]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C5 76 03 00 69 04 A3 00 6F 04 04 00 D4 6F 03 00 B1 04 05 00 3A 3C 9B C7 04 70 04 05 00 28 65 B7 4D 04 72 04 04 00 12 D7 E3 79 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 4A 87 FB 81 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 84 C9 D4 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F1 06 00 00 B1 04 04 00 18 5D D0 1E 70 04 04 00 18 5D D0 1E 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 3D C9 45 03 EF 03 09 90 00 [06:51:05]wFMCommunicate OK [06:51:05]wFMCommunicate request_size=4 [06:51:05]MH_SAM_APDU [06:51:05]CAPDU: 80 17 00 00 [06:51:05]Write to MH i2c: E2 08 00 53 10 80 17 00 00 00 00 00 00 E3 [06:51:05]Write i2c OK [06:51:05]MH_I2C_Read... [06:51:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:51:06]Read from MH i2c: E2 [06:51:06]MH_I2C_Read... [06:51:06]Read from MH i2c: E2 FD 00 [06:51:06]MH_I2C_Read... [06:51:06]Read from MH i2c: E2 FD 00 53 10 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 49 D0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 F7 [06:51:06]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 49 D0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [06:51:06]wFMCommunicate OK [06:51:06]wFMCommunicate request_size=4 [06:51:06]MH_SAM_APDU [06:51:06]CAPDU: 80 17 00 00 [06:51:06]Write to MH i2c: E2 08 00 54 10 80 17 00 00 00 00 00 00 E4 [06:51:06]Write i2c OK [06:51:06]MH_I2C_Read... [06:51:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:51:06]Read from MH i2c: E2 [06:51:06]MH_I2C_Read... [06:51:06]Read from MH i2c: E2 FD 00 [06:51:06]MH_I2C_Read... [06:51:06]Read from MH i2c: E2 FD 00 54 10 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F6 [06:51:06]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [06:51:06]wFMCommunicate OK [06:51:06]wFMCommunicate request_size=4 [06:51:06]MH_SAM_APDU [06:51:06]CAPDU: 80 17 00 00 [06:51:06]Write to MH i2c: E2 08 00 55 10 80 17 00 00 00 00 00 00 E5 [06:51:06]Write i2c OK [06:51:06]MH_I2C_Read... [06:51:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:51:06]Read from MH i2c: E2 [06:51:06]MH_I2C_Read... [06:51:06]Read from MH i2c: E2 FD 00 [06:51:06]MH_I2C_Read... [06:51:06]Read from MH i2c: E2 FD 00 55 10 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 71 [06:51:06]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [06:51:06]wFMCommunicate OK [06:51:06]wFMCommunicate request_size=4 [06:51:06]MH_SAM_APDU [06:51:06]CAPDU: 80 17 00 00 [06:51:06]Write to MH i2c: E2 08 00 56 10 80 17 00 00 00 00 00 00 E6 [06:51:06]Write i2c OK [06:51:06]MH_I2C_Read... [06:51:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [06:51:06]Read from MH i2c: E2 [06:51:06]MH_I2C_Read... [06:51:06]Read from MH i2c: E2 E2 00 [06:51:06]MH_I2C_Read... [06:51:06]Read from MH i2c: E2 E2 00 56 10 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C4 [06:51:06]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [06:51:07]wFMCommunicate OK [06:51:07]SAM_PROTO_GetFMData done [06:51:07]requested_item fm.sale_refund.total is exist - process it [06:51:07]requested_item fm.buy.total is exist - process it [06:51:07]requested_item shift.sale.total is exist - process it [06:51:07]SAM_PROTO_GetShiftData [06:51:07]wFMCommunicate request_size=4 [06:51:07]MH_SAM_APDU [06:51:07]CAPDU: 80 13 02 00 [06:51:07]Write to MH i2c: E2 08 00 57 10 80 13 02 00 00 00 00 00 E5 [06:51:07]Write i2c OK [06:51:07]MH_I2C_Read... [06:51:07]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [06:51:07]Read from MH i2c: E2 [06:51:07]MH_I2C_Read... [06:51:07]Read from MH i2c: E2 FD 00 [06:51:07]MH_I2C_Read... [06:51:07]Read from MH i2c: E2 FD 00 57 10 00 AE 04 AA 04 AA 04 6E 04 04 00 2F 00 00 00 69 04 9B 00 6F 04 04 00 2F 00 00 00 B1 04 03 00 01 82 6E 70 04 03 00 C0 53 55 72 04 03 00 41 2E 19 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 B2 BC 0B 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 60 FA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 B8 [06:51:07]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 2F 00 00 00 69 04 9B 00 6F 04 04 00 2F 00 00 00 B1 04 03 00 01 82 6E 70 04 03 00 C0 53 55 72 04 03 00 41 2E 19 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 B2 BC 0B 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 60 FA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [06:51:07]wFMCommunicate OK [06:51:07]wFMCommunicate request_size=4 [06:51:07]MH_SAM_APDU [06:51:07]CAPDU: 80 17 00 00 [06:51:07]Write to MH i2c: E2 08 00 58 10 80 17 00 00 00 00 00 00 E8 [06:51:07]Write i2c OK [06:51:07]MH_I2C_Read... [06:51:07]OFD Sender: No OFD packet to send [06:51:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:51:07]Read from MH i2c: E2 [06:51:07]MH_I2C_Read... [06:51:07]Read from MH i2c: E2 FD 00 [06:51:07]MH_I2C_Read... [06:51:07]Read from MH i2c: E2 FD 00 58 10 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 0A [06:51:07]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [06:51:07]wFMCommunicate OK [06:51:07]wFMCommunicate request_size=4 [06:51:07]MH_SAM_APDU [06:51:07]CAPDU: 80 17 00 00 [06:51:07]Write to MH i2c: E2 08 00 59 10 80 17 00 00 00 00 00 00 E9 [06:51:07]Write i2c OK [06:51:07]MH_I2C_Read... [06:51:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:51:08]Read from MH i2c: E2 [06:51:08]MH_I2C_Read... [06:51:08]Read from MH i2c: E2 FD 00 [06:51:08]MH_I2C_Read... [06:51:08]Read from MH i2c: E2 FD 00 59 10 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 A0 [06:51:08]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [06:51:08]wFMCommunicate OK [06:51:08]wFMCommunicate request_size=4 [06:51:08]MH_SAM_APDU [06:51:08]CAPDU: 80 17 00 00 [06:51:08]Write to MH i2c: E2 08 00 5A 10 80 17 00 00 00 00 00 00 EA [06:51:08]Write i2c OK [06:51:08]MH_I2C_Read... [06:51:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:51:08]Read from MH i2c: E2 [06:51:08]MH_I2C_Read... [06:51:08]Read from MH i2c: E2 FD 00 [06:51:08]MH_I2C_Read... [06:51:08]Read from MH i2c: E2 FD 00 5A 10 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 5C [06:51:08]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [06:51:08]wFMCommunicate OK [06:51:08]wFMCommunicate request_size=4 [06:51:08]MH_SAM_APDU [06:51:08]CAPDU: 80 17 00 00 [06:51:08]Write to MH i2c: E2 08 00 5B 10 80 17 00 00 00 00 00 00 EB [06:51:08]Write i2c OK [06:51:08]MH_I2C_Read... [06:51:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [06:51:08]Read from MH i2c: E2 [06:51:08]MH_I2C_Read... [06:51:08]Read from MH i2c: E2 CB 00 [06:51:08]MH_I2C_Read... [06:51:08]Read from MH i2c: E2 CB 00 5B 10 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D4 [06:51:08]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [06:51:09]wFMCommunicate OK [06:51:09]SAM_PROTO_GetShiftData done [06:51:09]requested_item shift.sale.total_cash is exist - process it [06:51:09]requested_item shift.sale_refund.total is exist - process it [06:51:09]requested_item shift.sale_refund.total_cash is exist - process it [06:51:09]requested_item shift.buy.total is exist - process it [06:51:09]requested_item shift.buy.total_cash is exist - process it [06:51:09]produce_requested_data done [06:51:09]produce_requested_data return {"fm.sale.total":205287086.66,"fm.sale_refund.total":5169718.00,"fm.buy.total":0.00,"shift.sale.total":72422.41,"shift.sale.total_cash":55920.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} [06:51:09]process_action_free get_value [06:51:09]json_value_free [06:51:09]json_value_free done [06:51:09]process_json_proto returns [06:51:09]Send response to host [06:51:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":205287086.66,"fm.sale_refund.total":5169718.00,"fm.buy.total":0.00,"shift.sale.total":72422.41,"shift.sale.total_cash":55920.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}}} [06:51:09]free response buf [06:51:09]execute_script done [06:51:09]execute_script returns [06:51:09]free content buf [06:51:09]Sock 9.Close socket [06:51:09]Sock 9.Thread stoped [06:51:09]accept exits with 7 [06:51:09]New connection [06:51:09]New thread 3066994020 created [06:51:09]Thread 3067137380 joined [06:51:09]Waiting for new connection... [06:51:09] Sock 7.Parse request [06:51:09]Sock 7.Check first char [06:51:09]Sock 7.First char is OK [06:51:09]request: POST /json_proto HTTP/1.0 [06:51:09]Method: POST [06:51:09]URL: /json_proto [06:51:09]Method is POST - this is cgi request [06:51:09]url: /json_proto [06:51:09]query_string will be loaded in cgi processing [06:51:09]execute_cgi json_proto POST (null) [06:51:09]execute_cgi path=json_proto method=POST [06:51:09]POST find Content-Length [06:51:09]Host: 172.17.44.195:8080 [06:51:09]Content-Length: 282 [06:51:09]Content-Type: application/json [06:51:09] [06:51:09]POST finish read [06:51:09]Found Content-Length = 282 [06:51:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0428\u0435\u043A\u0435\u0440\u0431\u0435\u043A \u043A\u044B\u0437\u044B \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:51:09]execute_script... [06:51:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0428\u0435\u043A\u0435\u0440\u0431\u0435\u043A \u043A\u044B\u0437\u044B \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:51:09]POST & json_proto [06:51:09]process_json_proto [06:51:09]json parsed OK: [06:51:09]protocol is kg_v1.0 [06:51:09]action value=x_report [06:51:09]process_action x_report [06:51:09]cmd_x_report [06:51:09]MH_GetDate [06:51:09]Write to MH i2c: F0 00 00 5C 10 5B [06:51:09]Write i2c OK [06:51:09]MH_I2C_Read... [06:51:09]Read from MH i2c: F0 [06:51:09]MH_I2C_Read... [06:51:09]Read from MH i2c: F0 09 00 [06:51:09]MH_I2C_Read... [06:51:09]Read from MH i2c: F0 09 00 5C 10 00 5F 4B 17 67 82 C9 CF 66 0C [06:51:09]GetLastDocTimeStamp 1729579541 [06:51:09]current date 1729579871 [06:51:09]FM_GetShiftState [06:51:09]SAM_PROTO_GetShiftState [06:51:09]wFMCommunicate request_size=4 [06:51:09]MH_SAM_APDU [06:51:09]CAPDU: 80 13 01 00 [06:51:09]Write to MH i2c: E2 08 00 5D 10 80 13 01 00 00 00 00 00 EA [06:51:09]Write i2c OK [06:51:09]MH_I2C_Read... [06:51:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:51:09]Read from MH i2c: E2 [06:51:09]MH_I2C_Read... [06:51:09]Read from MH i2c: E2 0E 00 [06:51:09]MH_I2C_Read... [06:51:09]Read from MH i2c: E2 0E 00 5D 10 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 B1 [06:51:09]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [06:51:09]wFMCommunicate OK [06:51:09]SAM_PROTO_GetShiftState done [06:51:09]FM_GetShiftState done [06:51:09]KKMCreateXReportDocument [06:51:09]Load OK [06:51:09]Malloc new data [06:51:09]MH_GetDate [06:51:09]Write to MH i2c: F0 00 00 5E 10 5D [06:51:09]Write i2c OK [06:51:09]MH_I2C_Read... [06:51:09]Read from MH i2c: F0 [06:51:09]MH_I2C_Read... [06:51:09]Read from MH i2c: F0 09 00 [06:51:09]MH_I2C_Read... [06:51:09]Read from MH i2c: F0 09 00 5E 10 00 5F 4B 17 67 82 C9 CF 66 0E [06:51:09]Malloc new data [06:51:09]Malloc new data [06:51:09]wFMCommunicate request_size=4 [06:51:09]MH_SAM_APDU [06:51:09]CAPDU: 80 11 00 00 [06:51:09]Write to MH i2c: E2 08 00 5F 10 80 11 00 00 00 00 00 00 E9 [06:51:09]Write i2c OK [06:51:09]MH_I2C_Read... [06:51:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:51:09]Read from MH i2c: E2 [06:51:09]MH_I2C_Read... [06:51:09]Read from MH i2c: E2 17 00 [06:51:09]MH_I2C_Read... [06:51:09]Read from MH i2c: E2 17 00 5F 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 40 [06:51:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:51:09]wFMCommunicate OK [06:51:09]SAM_PROTO_GetFieldsCounters [06:51:09]wFMCommunicate request_size=4 [06:51:09]MH_SAM_APDU [06:51:09]CAPDU: 80 13 00 00 [06:51:09]Write to MH i2c: E2 08 00 60 10 80 13 00 00 00 00 00 00 EC [06:51:09]Write i2c OK [06:51:09]MH_I2C_Read... [06:51:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:51:09]Read from MH i2c: E2 [06:51:09]MH_I2C_Read... [06:51:09]Read from MH i2c: E2 62 00 [06:51:09]MH_I2C_Read... [06:51:09]Read from MH i2c: E2 62 00 60 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F3 7A 03 00 0E 04 04 00 17 02 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 2B [06:51:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F3 7A 03 00 0E 04 04 00 17 02 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 [06:51:09]wFMCommunicate OK [06:51:09]SAM_PROTO_GetFieldsCounters done [06:51:09]Malloc new data [06:51:09]Malloc new data [06:51:09]Malloc new data [06:51:09]KKMCreateXReportDocument OK [06:51:09]KKMSetXReportData OK [06:51:09]KKMPrepareXReportFMData [06:51:09]SAM_PROTO_GetShiftData [06:51:09]wFMCommunicate request_size=4 [06:51:09]MH_SAM_APDU [06:51:09]CAPDU: 80 13 02 00 [06:51:09]Write to MH i2c: E2 08 00 61 10 80 13 02 00 00 00 00 00 EF [06:51:09]Write i2c OK [06:51:09]MH_I2C_Read... [06:51:09]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [06:51:09]Read from MH i2c: E2 [06:51:09]MH_I2C_Read... [06:51:09]Read from MH i2c: E2 FD 00 [06:51:09]MH_I2C_Read... [06:51:09]Read from MH i2c: E2 FD 00 61 10 00 AE 04 AA 04 AA 04 6E 04 04 00 2F 00 00 00 69 04 9B 00 6F 04 04 00 2F 00 00 00 B1 04 03 00 01 82 6E 70 04 03 00 C0 53 55 72 04 03 00 41 2E 19 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 B2 BC 0B 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 60 FA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 C2 [06:51:10]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 2F 00 00 00 69 04 9B 00 6F 04 04 00 2F 00 00 00 B1 04 03 00 01 82 6E 70 04 03 00 C0 53 55 72 04 03 00 41 2E 19 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 B2 BC 0B 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 60 FA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [06:51:10]wFMCommunicate OK [06:51:10]wFMCommunicate request_size=4 [06:51:10]MH_SAM_APDU [06:51:10]CAPDU: 80 17 00 00 [06:51:10]Write to MH i2c: E2 08 00 62 10 80 17 00 00 00 00 00 00 F2 [06:51:10]Write i2c OK [06:51:10]MH_I2C_Read... [06:51:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:51:10]Read from MH i2c: E2 [06:51:10]MH_I2C_Read... [06:51:10]Read from MH i2c: E2 FD 00 [06:51:10]MH_I2C_Read... [06:51:10]Read from MH i2c: E2 FD 00 62 10 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 14 [06:51:10]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [06:51:10]wFMCommunicate OK [06:51:10]wFMCommunicate request_size=4 [06:51:10]MH_SAM_APDU [06:51:10]CAPDU: 80 17 00 00 [06:51:10]Write to MH i2c: E2 08 00 63 10 80 17 00 00 00 00 00 00 F3 [06:51:10]Write i2c OK [06:51:10]MH_I2C_Read... [06:51:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:51:10]Read from MH i2c: E2 [06:51:10]MH_I2C_Read... [06:51:10]Read from MH i2c: E2 FD 00 [06:51:10]MH_I2C_Read... [06:51:10]Read from MH i2c: E2 FD 00 63 10 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 AA [06:51:10]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [06:51:10]wFMCommunicate OK [06:51:10]wFMCommunicate request_size=4 [06:51:10]MH_SAM_APDU [06:51:10]CAPDU: 80 17 00 00 [06:51:10]Write to MH i2c: E2 08 00 64 10 80 17 00 00 00 00 00 00 F4 [06:51:10]Write i2c OK [06:51:10]MH_I2C_Read... [06:51:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:51:11]Read from MH i2c: E2 [06:51:11]MH_I2C_Read... [06:51:11]Read from MH i2c: E2 FD 00 [06:51:11]MH_I2C_Read... [06:51:11]Read from MH i2c: E2 FD 00 64 10 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 66 [06:51:11]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [06:51:11]wFMCommunicate OK [06:51:11]wFMCommunicate request_size=4 [06:51:11]MH_SAM_APDU [06:51:11]CAPDU: 80 17 00 00 [06:51:11]Write to MH i2c: E2 08 00 65 10 80 17 00 00 00 00 00 00 F5 [06:51:11]Write i2c OK [06:51:11]MH_I2C_Read... [06:51:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [06:51:11]Read from MH i2c: E2 [06:51:11]MH_I2C_Read... [06:51:11]Read from MH i2c: E2 CB 00 [06:51:11]MH_I2C_Read... [06:51:11]Read from MH i2c: E2 CB 00 65 10 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DE [06:51:11]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [06:51:11]wFMCommunicate OK [06:51:11]SAM_PROTO_GetShiftData done [06:51:11]1194 (1194) - счетчики итогов смены [06:51:11] 1134 (4) - 47 - количество чеков со всеми признаками расчетов [06:51:11] 1129 (155) - счетчики операций «приход» [06:51:11] 1135 (4) - 47 - количество чеков по признаку расчетов [06:51:11] 1201 (3) - 72422.41 - общая итоговая сумма в чеках [06:51:11] 1136 (3) - 55920.00 - итоговая сумма в чеках наличными [06:51:11] 1138 (3) - 16502.41 - итоговая сумма в чеках безналичными [06:51:11] 1024 (122) - суммы налогов [06:51:11] 1006 (9) - суммы НДС [06:51:11] 1010 (1) - 0% - код ставки НДС [06:51:11] 1011 (0) - 0.00 - сумма НДС по ставке [06:51:11] 1006 (12) - суммы НДС [06:51:11] 1010 (1) - 12% - код ставки НДС [06:51:11] 1011 (3) - 7692.02 - сумма НДС по ставке [06:51:11] 1007 (9) - суммы НСП [06:51:11] 1014 (1) - 0% - код ставки НСП [06:51:11] 1015 (0) - 0.00 - сумма НСП по ставке [06:51:11] 1007 (11) - суммы НСП [06:51:11] 1014 (1) - 1% - код ставки НСП [06:51:11] 1015 (2) - 640.96 - сумма НСП по ставке [06:51:11] 1007 (9) - суммы НСП [06:51:11] 1014 (1) - 2% - код ставки НСП [06:51:11] 1015 (0) - 0.00 - сумма НСП по ставке [06:51:11] 1007 (9) - суммы НСП [06:51:11] 1014 (1) - 3% - код ставки НСП [06:51:11] 1015 (0) - 0.00 - сумма НСП по ставке [06:51:11] 1007 (9) - суммы НСП [06:51:11] 1014 (1) - 5% - код ставки НСП [06:51:11] 1015 (0) - 0.00 - сумма НСП по ставке [06:51:11] 1007 (9) - суммы НСП [06:51:11] 1014 (1) - 0,50% - код ставки НСП [06:51:11] 1015 (0) - 0.00 - сумма НСП по ставке [06:51:11] 1007 (9) - суммы НСП [06:51:11] 1014 (1) - 1,50% - код ставки НСП [06:51:11] 1015 (0) - 0.00 - сумма НСП по ставке [06:51:11] 1130 (141) - счетчики операций «возврат прихода» [06:51:11] 1135 (4) - 0 - количество чеков по признаку расчетов [06:51:11] 1201 (0) - 0.00 - общая итоговая сумма в чеках [06:51:11] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [06:51:11] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [06:51:11] 1024 (117) - суммы налогов [06:51:11] 1006 (9) - суммы НДС [06:51:11] 1010 (1) - 0% - код ставки НДС [06:51:11] 1011 (0) - 0.00 - сумма НДС по ставке [06:51:11] 1006 (9) - суммы НДС [06:51:11] 1010 (1) - 12% - код ставки НДС [06:51:11] 1011 (0) - 0.00 - сумма НДС по ставке [06:51:11] 1007 (9) - суммы НСП [06:51:11] 1014 (1) - 0% - код ставки НСП [06:51:11] 1015 (0) - 0.00 - сумма НСП по ставке [06:51:11] 1007 (9) - суммы НСП [06:51:11] 1014 (1) - 1% - код ставки НСП [06:51:11] 1015 (0) - 0.00 - сумма НСП по ставке [06:51:11] 1007 (9) - суммы НСП [06:51:11] 1014 (1) - 2% - код ставки НСП [06:51:11] 1015 (0) - 0.00 - сумма НСП по ставке [06:51:11] 1007 (9) - суммы НСП [06:51:11] 1014 (1) - 3% - код ставки НСП [06:51:11] 1015 (0) - 0.00 - сумма НСП по ставке [06:51:11] 1007 (9) - суммы НСП [06:51:11] 1014 (1) - 5% - код ставки НСП [06:51:11] 1015 (0) - 0.00 - сумма НСП по ставке [06:51:11] 1007 (9) - суммы НСП [06:51:11] 1014 (1) - 0,50% - код ставки НСП [06:51:11] 1015 (0) - 0.00 - сумма НСП по ставке [06:51:11] 1007 (9) - суммы НСП [06:51:11] 1014 (1) - 1,50% - код ставки НСП [06:51:11] 1015 (0) - 0.00 - сумма НСП по ставке [06:51:11] 1131 (141) - счетчики операций «расход» [06:51:11] 1135 (4) - 0 - количество чеков по признаку расчетов [06:51:11] 1201 (0) - 0.00 - общая итоговая сумма в чеках [06:51:11] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [06:51:11] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [06:51:11] 1024 (117) - суммы налогов [06:51:11] 1006 (9) - суммы НДС [06:51:11] 1010 (1) - 0% - код ставки НДС [06:51:11] 1011 (0) - 0.00 - сумма НДС по ставке [06:51:11] 1006 (9) - суммы НДС [06:51:11] 1010 (1) - 12% - код ставки НДС [06:51:11] 1011 (0) - 0.00 - сумма НДС по ставке [06:51:11] 1007 (9) - суммы НСП [06:51:11] 1014 (1) - 0% - код ставки НСП [06:51:11] 1015 (0) - 0.00 - сумма НСП по ставке [06:51:11] 1007 (9) - суммы НСП [06:51:11] 1014 (1) - 1% - код ставки НСП [06:51:11] 1015 (0) - 0.00 - сумма НСП по ставке [06:51:11] 1007 (9) - суммы НСП [06:51:11] 1014 (1) - 2% - код ставки НСП [06:51:11] 1015 (0) - 0.00 - сумма НСП по ставке [06:51:11] 1007 (9) - суммы НСП [06:51:11] 1014 (1) - 3% - код ставки НСП [06:51:11] 1015 (0) - 0.00 - сумма НСП по ставке [06:51:11] 1007 (9) - суммы НСП [06:51:11] 1014 (1) - 5% - код ставки НСП [06:51:11] 1015 (0) - 0.00 - сумма НСП по ставке [06:51:11] 1007 (9) - суммы НСП [06:51:11] 1014 (1) - 0,50% - код ставки НСП [06:51:11] 1015 (0) - 0.00 - сумма НСП по ставке [06:51:11] 1007 (9) - суммы НСП [06:51:11] 1014 (1) - 1,50% - код ставки НСП [06:51:11] 1015 (0) - 0.00 - сумма НСП по ставке [06:51:11] 1132 (141) - счетчики операций «возврат расхода» [06:51:11] 1135 (4) - 0 - количество чеков по признаку расчетов [06:51:11] 1201 (0) - 0.00 - общая итоговая сумма в чеках [06:51:11] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [06:51:11] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [06:51:11] 1024 (117) - суммы налогов [06:51:11] 1006 (9) - суммы НДС [06:51:11] 1010 (1) - 0% - код ставки НДС [06:51:11] 1011 (0) - 0.00 - сумма НДС по ставке [06:51:11] 1006 (9) - суммы НДС [06:51:11] 1010 (1) - 12% - код ставки НДС [06:51:11] 1011 (0) - 0.00 - сумма НДС по ставке [06:51:11] 1007 (9) - суммы НСП [06:51:11] 1014 (1) - 0% - код ставки НСП [06:51:11] 1015 (0) - 0.00 - сумма НСП по ставке [06:51:11] 1007 (9) - суммы НСП [06:51:11] 1014 (1) - 1% - код ставки НСП [06:51:11] 1015 (0) - 0.00 - сумма НСП по ставке [06:51:11] 1007 (9) - суммы НСП [06:51:11] 1014 (1) - 2% - код ставки НСП [06:51:11] 1015 (0) - 0.00 - сумма НСП по ставке [06:51:11] 1007 (9) - суммы НСП [06:51:11] 1014 (1) - 3% - код ставки НСП [06:51:11] 1015 (0) - 0.00 - сумма НСП по ставке [06:51:11] 1007 (9) - суммы НСП [06:51:11] 1014 (1) - 5% - код ставки НСП [06:51:11] 1015 (0) - 0.00 - сумма НСП по ставке [06:51:12] 1007 (9) - суммы НСП [06:51:12] 1014 (1) - 0,50% - код ставки НСП [06:51:12] 1015 (0) - 0.00 - сумма НСП по ставке [06:51:12] 1007 (9) - суммы НСП [06:51:12] 1014 (1) - 1,50% - код ставки НСП [06:51:12] 1015 (0) - 0.00 - сумма НСП по ставке [06:51:12] 1133 (588) - - счетчики коррекции - не используются [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1194 (04AA) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1134 (046E) [06:51:12]Malloc new data [06:51:12]Processing tag 1129 (0469) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1135 (046F) [06:51:12]Malloc new data [06:51:12]Processing tag 1201 (04B1) [06:51:12]Malloc new data [06:51:12]Processing tag 1136 (0470) [06:51:12]Malloc new data [06:51:12]Processing tag 1138 (0472) [06:51:12]Malloc new data [06:51:12]Processing tag 1024 (0400) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1006 (03EE) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1010 (03F2) [06:51:12]Malloc new data [06:51:12]Processing tag 1011 (03F3) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Processing tag 1006 (03EE) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1010 (03F2) [06:51:12]Malloc new data [06:51:12]Processing tag 1011 (03F3) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Processing tag 1007 (03EF) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1014 (03F6) [06:51:12]Malloc new data [06:51:12]Processing tag 1015 (03F7) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Processing tag 1007 (03EF) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1014 (03F6) [06:51:12]Malloc new data [06:51:12]Processing tag 1015 (03F7) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Processing tag 1007 (03EF) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1014 (03F6) [06:51:12]Malloc new data [06:51:12]Processing tag 1015 (03F7) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Processing tag 1007 (03EF) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1014 (03F6) [06:51:12]Malloc new data [06:51:12]Processing tag 1015 (03F7) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Processing tag 1007 (03EF) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1014 (03F6) [06:51:12]Malloc new data [06:51:12]Processing tag 1015 (03F7) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Processing tag 1007 (03EF) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1014 (03F6) [06:51:12]Malloc new data [06:51:12]Processing tag 1015 (03F7) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Processing tag 1007 (03EF) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1014 (03F6) [06:51:12]Malloc new data [06:51:12]Processing tag 1015 (03F7) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]SetTLVBufToDocument err=0 [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Processing tag 1130 (046A) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1135 (046F) [06:51:12]Malloc new data [06:51:12]Processing tag 1201 (04B1) [06:51:12]Malloc new data [06:51:12]Processing tag 1136 (0470) [06:51:12]Malloc new data [06:51:12]Processing tag 1138 (0472) [06:51:12]Malloc new data [06:51:12]Processing tag 1024 (0400) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1006 (03EE) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1010 (03F2) [06:51:12]Malloc new data [06:51:12]Processing tag 1011 (03F3) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Processing tag 1006 (03EE) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1010 (03F2) [06:51:12]Malloc new data [06:51:12]Processing tag 1011 (03F3) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Processing tag 1007 (03EF) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1014 (03F6) [06:51:12]Malloc new data [06:51:12]Processing tag 1015 (03F7) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Processing tag 1007 (03EF) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1014 (03F6) [06:51:12]Malloc new data [06:51:12]Processing tag 1015 (03F7) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Processing tag 1007 (03EF) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1014 (03F6) [06:51:12]Malloc new data [06:51:12]Processing tag 1015 (03F7) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Processing tag 1007 (03EF) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1014 (03F6) [06:51:12]Malloc new data [06:51:12]Processing tag 1015 (03F7) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Processing tag 1007 (03EF) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1014 (03F6) [06:51:12]Malloc new data [06:51:12]Processing tag 1015 (03F7) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Processing tag 1007 (03EF) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1014 (03F6) [06:51:12]Malloc new data [06:51:12]Processing tag 1015 (03F7) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Processing tag 1007 (03EF) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1014 (03F6) [06:51:12]Malloc new data [06:51:12]Processing tag 1015 (03F7) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]SetTLVBufToDocument err=0 [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Processing tag 1131 (046B) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1135 (046F) [06:51:12]Malloc new data [06:51:12]Processing tag 1201 (04B1) [06:51:12]Malloc new data [06:51:12]Processing tag 1136 (0470) [06:51:12]Malloc new data [06:51:12]Processing tag 1138 (0472) [06:51:12]Malloc new data [06:51:12]Processing tag 1024 (0400) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1006 (03EE) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1010 (03F2) [06:51:12]Malloc new data [06:51:12]Processing tag 1011 (03F3) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Processing tag 1006 (03EE) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1010 (03F2) [06:51:12]Malloc new data [06:51:12]Processing tag 1011 (03F3) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Processing tag 1007 (03EF) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1014 (03F6) [06:51:12]Malloc new data [06:51:12]Processing tag 1015 (03F7) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Processing tag 1007 (03EF) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1014 (03F6) [06:51:12]Malloc new data [06:51:12]Processing tag 1015 (03F7) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Processing tag 1007 (03EF) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1014 (03F6) [06:51:12]Malloc new data [06:51:12]Processing tag 1015 (03F7) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Processing tag 1007 (03EF) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1014 (03F6) [06:51:12]Malloc new data [06:51:12]Processing tag 1015 (03F7) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Processing tag 1007 (03EF) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1014 (03F6) [06:51:12]Malloc new data [06:51:12]Processing tag 1015 (03F7) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Processing tag 1007 (03EF) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1014 (03F6) [06:51:12]Malloc new data [06:51:12]Processing tag 1015 (03F7) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Processing tag 1007 (03EF) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1014 (03F6) [06:51:12]Malloc new data [06:51:12]Processing tag 1015 (03F7) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]SetTLVBufToDocument err=0 [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Processing tag 1132 (046C) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1135 (046F) [06:51:12]Malloc new data [06:51:12]Processing tag 1201 (04B1) [06:51:12]Malloc new data [06:51:12]Processing tag 1136 (0470) [06:51:12]Malloc new data [06:51:12]Processing tag 1138 (0472) [06:51:12]Malloc new data [06:51:12]Processing tag 1024 (0400) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1006 (03EE) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1010 (03F2) [06:51:12]Malloc new data [06:51:12]Processing tag 1011 (03F3) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Processing tag 1006 (03EE) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1010 (03F2) [06:51:12]Malloc new data [06:51:12]Processing tag 1011 (03F3) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Processing tag 1007 (03EF) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1014 (03F6) [06:51:12]Malloc new data [06:51:12]Processing tag 1015 (03F7) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Processing tag 1007 (03EF) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1014 (03F6) [06:51:12]Malloc new data [06:51:12]Processing tag 1015 (03F7) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Processing tag 1007 (03EF) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1014 (03F6) [06:51:12]Malloc new data [06:51:12]Processing tag 1015 (03F7) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Processing tag 1007 (03EF) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1014 (03F6) [06:51:12]Malloc new data [06:51:12]Processing tag 1015 (03F7) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Processing tag 1007 (03EF) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1014 (03F6) [06:51:12]Malloc new data [06:51:12]Processing tag 1015 (03F7) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Processing tag 1007 (03EF) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1014 (03F6) [06:51:12]Malloc new data [06:51:12]Processing tag 1015 (03F7) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Processing tag 1007 (03EF) [06:51:12]Load OK [06:51:12]SetTLVBufToDocument [06:51:12]Processing tag 1014 (03F6) [06:51:12]Malloc new data [06:51:12]Processing tag 1015 (03F7) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]SetTLVBufToDocument err=0 [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Processing tag 1133 (046D) [06:51:12]Malloc new data [06:51:12]SetTLVBufToDocument err=0 [06:51:12]SetTLVBufToDocument err=0 [06:51:12]Malloc new data [06:51:12]SAM_PROTO_GetFMData [06:51:12]wFMCommunicate request_size=4 [06:51:12]MH_SAM_APDU [06:51:12]CAPDU: 80 13 03 00 [06:51:12]Write to MH i2c: E2 08 00 66 10 80 13 03 00 00 00 00 00 F5 [06:51:12]OFD Sender: No OFD packet to send [06:51:12]Write i2c OK [06:51:12]MH_I2C_Read... [06:51:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [06:51:13]Read from MH i2c: E2 [06:51:13]MH_I2C_Read... [06:51:13]Read from MH i2c: E2 FD 00 [06:51:13]MH_I2C_Read... [06:51:13]Read from MH i2c: E2 FD 00 66 10 00 C5 04 85 04 C1 04 6E 04 04 00 C5 76 03 00 69 04 A3 00 6F 04 04 00 D4 6F 03 00 B1 04 05 00 3A 3C 9B C7 04 70 04 05 00 28 65 B7 4D 04 72 04 04 00 12 D7 E3 79 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 4A 87 FB 81 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 84 C9 D4 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F1 06 00 00 B1 04 04 00 18 5D D0 1E 70 04 04 00 18 5D D0 1E 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 3D C9 45 03 EF 03 09 90 00 D6 [06:51:13]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C5 76 03 00 69 04 A3 00 6F 04 04 00 D4 6F 03 00 B1 04 05 00 3A 3C 9B C7 04 70 04 05 00 28 65 B7 4D 04 72 04 04 00 12 D7 E3 79 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 4A 87 FB 81 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 84 C9 D4 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F1 06 00 00 B1 04 04 00 18 5D D0 1E 70 04 04 00 18 5D D0 1E 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 3D C9 45 03 EF 03 09 90 00 [06:51:13]wFMCommunicate OK [06:51:13]wFMCommunicate request_size=4 [06:51:13]MH_SAM_APDU [06:51:13]CAPDU: 80 17 00 00 [06:51:13]Write to MH i2c: E2 08 00 67 10 80 17 00 00 00 00 00 00 F7 [06:51:13]Write i2c OK [06:51:13]MH_I2C_Read... [06:51:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:51:13]Read from MH i2c: E2 [06:51:13]MH_I2C_Read... [06:51:13]Read from MH i2c: E2 FD 00 [06:51:13]MH_I2C_Read... [06:51:13]Read from MH i2c: E2 FD 00 67 10 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 49 D0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 0B [06:51:13]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 49 D0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [06:51:14]wFMCommunicate OK [06:51:14]wFMCommunicate request_size=4 [06:51:14]MH_SAM_APDU [06:51:14]CAPDU: 80 17 00 00 [06:51:14]Write to MH i2c: E2 08 00 68 10 80 17 00 00 00 00 00 00 F8 [06:51:14]Write i2c OK [06:51:14]MH_I2C_Read... [06:51:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:51:14]Read from MH i2c: E2 [06:51:14]MH_I2C_Read... [06:51:14]Read from MH i2c: E2 FD 00 [06:51:14]MH_I2C_Read... [06:51:14]Read from MH i2c: E2 FD 00 68 10 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0A [06:51:14]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [06:51:14]wFMCommunicate OK [06:51:14]wFMCommunicate request_size=4 [06:51:14]MH_SAM_APDU [06:51:14]CAPDU: 80 17 00 00 [06:51:14]Write to MH i2c: E2 08 00 69 10 80 17 00 00 00 00 00 00 F9 [06:51:14]Write i2c OK [06:51:14]MH_I2C_Read... [06:51:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:51:14]Read from MH i2c: E2 [06:51:14]MH_I2C_Read... [06:51:14]Read from MH i2c: E2 FD 00 [06:51:14]MH_I2C_Read... [06:51:14]Read from MH i2c: E2 FD 00 69 10 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 85 [06:51:14]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [06:51:15]wFMCommunicate OK [06:51:15]wFMCommunicate request_size=4 [06:51:15]MH_SAM_APDU [06:51:15]CAPDU: 80 17 00 00 [06:51:15]Write to MH i2c: E2 08 00 6A 10 80 17 00 00 00 00 00 00 FA [06:51:15]Write i2c OK [06:51:15]MH_I2C_Read... [06:51:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [06:51:15]Read from MH i2c: E2 [06:51:15]MH_I2C_Read... [06:51:15]Read from MH i2c: E2 E2 00 [06:51:15]MH_I2C_Read... [06:51:15]Read from MH i2c: E2 E2 00 6A 10 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D8 [06:51:15]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [06:51:15]wFMCommunicate OK [06:51:15]SAM_PROTO_GetFMData done [06:51:15]FM_GetFMData:85 04 C1 04 6E 04 04 00 C5 76 03 00 69 04 A3 00 6F 04 04 00 D4 6F 03 00 B1 04 05 00 3A 3C 9B C7 04 70 04 05 00 28 65 B7 4D 04 72 04 04 00 12 D7 E3 79 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 4A 87 FB 81 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 84 C9 D4 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F1 06 00 00 B1 04 04 00 18 5D D0 1E 70 04 04 00 18 5D D0 1E 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 3D C9 45 03 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 49 D0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 [06:51:16]oper:6F 04 04 00 D4 6F 03 00 B1 04 05 00 3A 3C 9B C7 04 70 04 05 00 28 65 B7 4D 04 72 04 04 00 12 D7 E3 79 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 4A 87 FB 81 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 84 C9 D4 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [06:51:16]total:3A 3C 9B C7 04 [06:51:16]Malloc new data [06:51:16]oper:6F 04 04 00 F1 06 00 00 B1 04 04 00 18 5D D0 1E 70 04 04 00 18 5D D0 1E 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 3D C9 45 03 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 49 D0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [06:51:16]total:18 5D D0 1E [06:51:16]Malloc new data [06:51:16]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 [06:51:16]total: [06:51:16]Malloc new data [06:51:16]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 [06:51:16]total: [06:51:16]Malloc new data [06:51:16]KKMPrepareXReportFMData err=0 [06:51:16]Х отчет ИНН: 02508201610067 Кассир: Шекербек кызы К. 22.10.2024 06:51 Смена: 522 РНМ: 0000000000091685 ЗНМ: 0300000091 СНО: Общий режим Всего чеков: 47 ИТОГИ ПРИХОД Чеков: 47 Общий итог: 72422.41 Итого наличными: 55920.00 Итого безнал.: 16502.41 НДС 0% : 0.00 НДС 12% : 7692.02 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 640.96 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 55920.00 НС Приход: 205287086.66 НС Возвр.Прихода: 5169718.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871839 [06:51:16]StoreToDocumentArchive [06:51:16]MH_GetDate [06:51:16]Write to MH i2c: F0 00 00 6B 10 6A [06:51:16]Write i2c OK [06:51:16]MH_I2C_Read... [06:51:16]Read from MH i2c: F0 [06:51:16]MH_I2C_Read... [06:51:16]Read from MH i2c: F0 09 00 [06:51:16]MH_I2C_Read... [06:51:16]Read from MH i2c: F0 09 00 6B 10 00 67 4B 17 67 82 C9 CF 66 23 [06:51:16]shift 522 fd 1729579879 [06:51:16]Create dir for shift 0522 [06:51:16]save to /storage/0522/doc_1729579879 [06:51:16]save last doc name /storage/0522/doc_1729579879 to /storage/kkm_last_doc_name [06:51:16]save OK [06:51:16]Clear old archive folders... [06:51:16]NVStorageSaveData kkm_last_timestamp [06:51:16]File name is /storage/kkm_last_timestamp [06:51:16]Write 4 bytes [06:51:16]NVStorageSaveData done [06:51:16]ExternCall_PrintAddStr [06:51:16]wPrintStart [06:51:16]Write to MH i2c: 01 00 00 6C 10 7C [06:51:16]Write i2c OK [06:51:16]MH_I2C_Read... [06:51:16]Read from MH i2c: 01 [06:51:16]MH_I2C_Read... [06:51:16]Read from MH i2c: 01 07 00 [06:51:16]MH_I2C_Read... [06:51:16]Read from MH i2c: 01 07 00 6C 10 00 00 00 00 00 FF 0F 91 [06:51:16]RasterBufferAndPrint [06:51:16]line Х отчет [06:51:16]line ИНН: 02508201610067 [06:51:16]line Кассир: Шекербек кызы К. [06:51:16]line 22.10.2024 06:51 [06:51:16]line Смена: 522 [06:51:16]line РНМ: 0000000000091685 [06:51:16]line ЗНМ: 0300000091 [06:51:16]line СНО: Общий режим [06:51:16]line Всего чеков: 47 [06:51:16]line ИТОГИ ПРИХОД [06:51:16]line Чеков: 47 [06:51:16]line Общий итог: 72422.41 [06:51:16]line Итого наличными: 55920.00 [06:51:16]line Итого безнал.: 16502.41 [06:51:16]line НДС 0% : 0.00 [06:51:16]line НДС 12% : 7692.02 [06:51:16]line НСП 0% : 0.00 [06:51:16]line НСП 1,50% : 0.00 [06:51:16]line НСП 0,50% : 0.00 [06:51:16]line НСП 5% : 0.00 [06:51:16]line НСП 3% : 0.00 [06:51:16]line НСП 2% : 0.00 [06:51:16]line НСП 1% : 640.96 [06:51:16]line ИТОГИ ВОЗВРАТ ПРИХОДА [06:51:16]line Чеков: 0 [06:51:16]line Общий итог: 0.00 [06:51:16]line Итого наличными: 0.00 [06:51:16]line Итого безнал.: 0.00 [06:51:16]line НДС 0% : 0.00 [06:51:16]line НДС 12% : 0.00 [06:51:16]line НСП 0% : 0.00 [06:51:16]line НСП 1,50% : 0.00 [06:51:16]line НСП 0,50% : 0.00 [06:51:16]line НСП 5% : 0.00 [06:51:16]line НСП 3% : 0.00 [06:51:16]line НСП 2% : 0.00 [06:51:16]line НСП 1% : 0.00 [06:51:16]line ИТОГИ РАСХОД [06:51:16]line Чеков: 0 [06:51:16]line Общий итог: 0.00 [06:51:16]line Итого наличными: 0.00 [06:51:16]line Итого безнал.: 0.00 [06:51:16]line НДС 0% : 0.00 [06:51:16]line НДС 12% : 0.00 [06:51:16]line НСП 0% : 0.00 [06:51:16]line НСП 1,50% : 0.00 [06:51:16]line НСП 0,50% : 0.00 [06:51:16]line НСП 5% : 0.00 [06:51:16]line НСП 3% : 0.00 [06:51:16]line НСП 2% : 0.00 [06:51:16]line НСП 1% : 0.00 [06:51:16]line ИТОГИ ВОЗВРАТ РАСХОДА [06:51:16]line Чеков: 0 [06:51:16]line Общий итог: 0.00 [06:51:16]line Итого наличными: 0.00 [06:51:16]line Итого безнал.: 0.00 [06:51:16]line НДС 0% : 0.00 [06:51:16]line НДС 12% : 0.00 [06:51:16]line НСП 0% : 0.00 [06:51:16]line НСП 1,50% : 0.00 [06:51:16]line НСП 0,50% : 0.00 [06:51:16]line НСП 5% : 0.00 [06:51:16]line НСП 3% : 0.00 [06:51:16]line НСП 2% : 0.00 [06:51:16]line НСП 1% : 0.00 [06:51:16]line Сумма внесений: 0.00 [06:51:16]line Сумма выплат: 0.00 [06:51:16]line Нал. в кассе: 55920.00 [06:51:16]line НС Приход: 205287086.66 [06:51:16]line НС Возвр.Прихода: 5169718.00 [06:51:16]line НС Расход: 0.00 [06:51:16]line НС Возвр.Расхода: 0.00 [06:51:16]line ФМ: 0000000000871839 [06:51:16]written 0, free lines is 4095 [06:51:17]Write to MH i2c: 01 00 00 B7 10 C7 [06:51:17]Write i2c OK [06:51:17]MH_I2C_Read... [06:51:17]Read from MH i2c: 01 [06:51:17]MH_I2C_Read... [06:51:17]Read from MH i2c: 01 07 00 [06:51:17]MH_I2C_Read... [06:51:17]Read from MH i2c: 01 07 00 B7 10 00 00 00 00 00 21 0A F9 [06:51:17]RasterBufferAndPrint [06:51:17]line [06:51:17]line [06:51:17]line [06:51:17]line [06:51:17]line [06:51:17]written 0, free lines is 2611 [06:51:17]MH_Cut [06:51:17]Write to MH i2c: D1 01 00 BE 10 01 A0 [06:51:17]Write i2c OK [06:51:17]MH_I2C_Read... [06:51:17]Read from MH i2c: D1 [06:51:17]MH_I2C_Read... [06:51:17]Read from MH i2c: D1 01 00 [06:51:17]MH_I2C_Read... [06:51:17]Read from MH i2c: D1 01 00 BE 10 00 9F [06:51:17]Write to MH i2c: 01 00 00 BF 10 CF [06:51:17]Write i2c OK [06:51:17]MH_I2C_Read... [06:51:17]OFD Sender: No OFD packet to send [06:51:18]*** Cut start [06:51:18]*** Partial cut [06:51:18]*** CUTSNS_PIN = 1 [06:51:18]*** CUTSNS_PIN = 0 [06:51:19]*** Brake cut motor [06:51:19]Read from MH i2c: 01 [06:51:19]MH_I2C_Read... [06:51:19]*** Stop cut motor [06:51:19]*** Cut end [06:51:19]Read from MH i2c: 01 07 00 [06:51:19]MH_I2C_Read... [06:51:19]Read from MH i2c: 01 07 00 BF 10 00 00 00 00 00 FF 0F E4 [06:51:19]process_action x_report done [06:51:19]requested_data is exist [06:51:19]produce_requested_data [06:51:19]requested_item fd.num is exist - process it [06:51:19]SAM_PROTO_GetFieldsCounters [06:51:19]wFMCommunicate request_size=4 [06:51:19]MH_SAM_APDU [06:51:19]CAPDU: 80 13 00 00 [06:51:19]Write to MH i2c: E2 08 00 C0 10 80 13 00 00 00 00 00 00 4C [06:51:19]Write i2c OK [06:51:19]MH_I2C_Read... [06:51:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:51:19]Read from MH i2c: E2 [06:51:19]MH_I2C_Read... [06:51:19]Read from MH i2c: E2 62 00 [06:51:19]MH_I2C_Read... [06:51:19]Read from MH i2c: E2 62 00 C0 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F3 7A 03 00 0E 04 04 00 17 02 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 8B [06:51:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F3 7A 03 00 0E 04 04 00 17 02 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 [06:51:19]wFMCommunicate OK [06:51:19]SAM_PROTO_GetFieldsCounters done [06:51:19]requested_item shift.num is exist - process it [06:51:19]requested_item shift.opened is exist - process it [06:51:19]req_shift_opened [06:51:19]FM_GetShiftState [06:51:19]SAM_PROTO_GetShiftState [06:51:19]wFMCommunicate request_size=4 [06:51:19]MH_SAM_APDU [06:51:19]CAPDU: 80 13 01 00 [06:51:19]Write to MH i2c: E2 08 00 C1 10 80 13 01 00 00 00 00 00 4E [06:51:19]Write i2c OK [06:51:19]MH_I2C_Read... [06:51:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:51:19]Read from MH i2c: E2 [06:51:19]MH_I2C_Read... [06:51:19]Read from MH i2c: E2 0E 00 [06:51:19]MH_I2C_Read... [06:51:19]Read from MH i2c: E2 0E 00 C1 10 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 15 [06:51:19]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [06:51:19]wFMCommunicate OK [06:51:19]SAM_PROTO_GetShiftState done [06:51:19]FM_GetShiftState done [06:51:19]req_shift_opened done [06:51:19]requested_item shift.open_date is exist - process it [06:51:19]req_shift_open_date [06:51:19]req_shift_open_date done [06:51:19]produce_requested_data done [06:51:19]produce_requested_data return {"fd.num":228083,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [06:51:19]process_action_free x_report [06:51:19]json_value_free [06:51:19]json_value_free done [06:51:19]process_json_proto returns [06:51:19]Send response to host [06:51:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":228083,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [06:51:19]free response buf [06:51:19]execute_script done [06:51:19]execute_script returns [06:51:19]free content buf [06:51:19]Sock 7.Close socket [06:51:19]Sock 7.Thread stoped [06:51:22]OFD Sender: No OFD packet to send [06:51:27]OFD Sender: No OFD packet to send [06:51:32]OFD Sender: No OFD packet to send [06:51:37]OFD Sender: No OFD packet to send [06:51:42]OFD Sender: No OFD packet to send [06:51:47]OFD Sender: No OFD packet to send [06:51:52]OFD Sender: No OFD packet to send [06:51:57]OFD Sender: No OFD packet to send [06:52:02]OFD Sender: No OFD packet to send [06:52:07]OFD Sender: No OFD packet to send [06:52:12]OFD Sender: No OFD packet to send [06:52:17]OFD Sender: No OFD packet to send [06:52:22]OFD Sender: No OFD packet to send [06:52:27]OFD Sender: No OFD packet to send [06:52:32]OFD Sender: No OFD packet to send [06:52:37]OFD Sender: No OFD packet to send [06:52: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:43]OFD Sender: No OFD packet to send [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:34]accept exits with 9 [06:54:34]New connection [06:54:34]New thread 3067137380 created [06:54:34]Thread 3066994020 joined [06:54:34]Waiting for new connection... [06:54:34] Sock 9.Parse request [06:54:34]Sock 9.Check first char [06:54:34]Sock 9.First char is OK [06:54:34]request: POST /json_proto HTTP/1.0 [06:54:34]Method: POST [06:54:34]URL: /json_proto [06:54:34]Method is POST - this is cgi request [06:54:34]url: /json_proto [06:54:34]query_string will be loaded in cgi processing [06:54:34]execute_cgi json_proto POST (null) [06:54:34]execute_cgi path=json_proto method=POST [06:54:34]POST find Content-Length [06:54:34]Host: 172.17.44.195:8080 [06:54:34]Content-Length: 679 [06:54:34]Content-Type: application/json [06:54:34] [06:54:34]POST finish read [06:54:34]Found Content-Length = 679 [06:54:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.300, "sum" : 689.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 689.00, "total" : 689.00, "payments": [ { "type": 0, "sum" : 689.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:54:34]execute_script... [06:54: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)1964288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.300, "sum" : 689.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 689.00, "total" : 689.00, "payments": [ { "type": 0, "sum" : 689.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:54:34]POST & json_proto [06:54:34]process_json_proto [06:54:34]json parsed OK: [06:54:34]protocol is kg_v1.0 [06:54:34]action value=close_receipt [06:54:34]process_action close_receipt [06:54:34]cmd_close_receipt [06:54:34]MH_GetDate [06:54:34]Write to MH i2c: F0 00 00 C2 10 C1 [06:54:34]Write i2c OK [06:54:34]MH_I2C_Read... [06:54:34]Read from MH i2c: F0 [06:54:34]MH_I2C_Read... [06:54:34]Read from MH i2c: F0 09 00 [06:54:34]MH_I2C_Read... [06:54:34]Read from MH i2c: F0 09 00 C2 10 00 2C 4C 17 67 82 C9 CF 66 40 [06:54:34]GetLastDocTimeStamp 1729579871 [06:54:34]current date 1729580076 [06:54:34]FM_GetShiftState [06:54:34]SAM_PROTO_GetShiftState [06:54:34]wFMCommunicate request_size=4 [06:54:34]MH_SAM_APDU [06:54:34]CAPDU: 80 13 01 00 [06:54:34]Write to MH i2c: E2 08 00 C3 10 80 13 01 00 00 00 00 00 50 [06:54:34]Write i2c OK [06:54:34]MH_I2C_Read... [06:54:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:54:34]Read from MH i2c: E2 [06:54:34]MH_I2C_Read... [06:54:34]Read from MH i2c: E2 0E 00 [06:54:34]MH_I2C_Read... [06:54:34]Read from MH i2c: E2 0E 00 C3 10 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 17 [06:54:34]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [06:54:34]wFMCommunicate OK [06:54:34]SAM_PROTO_GetShiftState done [06:54:34]FM_GetShiftState done [06:54:34]opened in 1729555538 [06:54:34]opened+sec_in_day 1729641938 [06:54:34]quantity*price = 68907 [06:54:34]sum+1 = 68908 [06:54:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 689.00 Внесено: 689.00 СДАЧА: 0.00 НСП 1% : 6.10 НДС 12% : 73.18 Наличными: 689.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 48 22.10.2024 06:54 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228084 ФПД: 197048549707931 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T065436&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228084&fm=197048549707931&tin=02508201610067®Number=0000000000091685&sum=68900 [06:54:35]StoreToDocumentArchive [06:54:35]shift 535 fd 228084 [06:54:35]save to /storage/0535/doc_00228084 [06:54:35]save last doc name /storage/0535/doc_00228084 to /storage/kkm_last_doc_name [06:54:35]save OK [06:54:35]Clear old archive folders... [06:54:35]Remove dir /storage/0522 [06:54:35]opendir ok [06:54:35]file . [06:54:35]file .. [06:54:35]file doc_1729579879 [06:54:35]remove file /storage/0522/doc_1729579879 [06:54:35]remove dir /storage/0522 [06:54:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:54:35]tlvbuf is 00A94D40 [06:54:35]SAM_PROTO_ClearQueue [06:54:35]wFMCommunicate request_size=4 [06:54:35]MH_SAM_APDU [06:54:35]CAPDU: 80 09 00 00 [06:54:35]Write to MH i2c: E2 08 00 D0 10 80 09 00 00 00 00 00 00 52 [06:54:35]Write i2c OK [06:54:35]MH_I2C_Read... [06:54:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:54:35]Read from MH i2c: E2 [06:54:35]MH_I2C_Read... [06:54:35]Read from MH i2c: E2 03 00 [06:54:35]MH_I2C_Read... [06:54:35]Read from MH i2c: E2 03 00 D0 10 00 90 00 54 [06:54:35]RAPDU: 90 00 [06:54:35]wFMCommunicate OK [06:54:35]SAM_PROTO_ClearQueue done [06:54:35]KKMCreateOFDPacket [06:54:35]OFDProtocolAddRootSTLVToBuf [06:54:35]FM_MakeSignedData [06:54:35]FM_MakeSignedData [06:54:35]SAM_PROTO_SignData [06:54:35]wFMCommunicate request_size=4 [06:54:35]MH_SAM_APDU [06:54:35]CAPDU: 80 0D 01 02 [06:54:35]Write to MH i2c: E2 08 00 D1 10 80 0D 01 02 00 00 00 00 5A [06:54:35]Write i2c OK [06:54:35]MH_I2C_Read... [06:54:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:54:35]Read from MH i2c: E2 [06:54:35]MH_I2C_Read... [06:54:35]Read from MH i2c: E2 03 00 [06:54:35]MH_I2C_Read... [06:54:35]Read from MH i2c: E2 03 00 D1 10 00 90 00 55 [06:54:35]RAPDU: 90 00 [06:54:35]wFMCommunicate OK [06:54:35]wFMCommunicate request_size=255 [06:54:35]MH_SAM_APDU [06:54: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 3C 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2B 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 1C 00 00 00 00 07 04 06 00 24 0D 01 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 2C 4C 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F4 7A 03 00 35 04 06 00 B3 [06:54:35]Write to MH i2c: E2 02 01 D2 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 3C 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2B 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 1C 00 00 00 00 07 04 06 00 24 0D 01 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 2C 4C 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F4 7A 03 00 35 04 06 00 B3 00 00 22 [06:54:35]Write i2c OK [06:54:35]MH_I2C_Read... [06:54:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:54:35]Read from MH i2c: E2 [06:54:35]MH_I2C_Read... [06:54:35]Read from MH i2c: E2 03 00 [06:54:35]MH_I2C_Read... [06:54:35]Read from MH i2c: E2 03 00 D2 10 00 90 00 56 [06:54:35]RAPDU: 90 00 [06:54:35]wFMCommunicate OK [06:54:35]wFMCommunicate request_size=10 [06:54:35]MH_SAM_APDU [06:54:35]CAPDU: 80 0D 02 02 05 36 F0 CF 10 9B [06:54:35]Write to MH i2c: E2 0D 00 D3 10 80 0D 02 02 05 00 36 F0 CF 10 9B 00 00 07 [06:54:35]Write i2c OK [06:54:35]MH_I2C_Read... [06:54:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:54:35]Read from MH i2c: E2 [06:54:35]MH_I2C_Read... [06:54:35]Read from MH i2c: E2 03 00 [06:54:35]MH_I2C_Read... [06:54:35]Read from MH i2c: E2 03 00 D3 10 00 90 00 57 [06:54:35]RAPDU: 90 00 [06:54:35]wFMCommunicate OK [06:54:35]wFMCommunicate request_size=4 [06:54:35]MH_SAM_APDU [06:54:35]CAPDU: 80 0D 03 02 [06:54:35]Write to MH i2c: E2 08 00 D4 10 80 0D 03 02 00 00 00 00 5F [06:54:35]Write i2c OK [06:54:35]MH_I2C_Read... [06:54:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:54:35]Read from MH i2c: E2 [06:54:35]MH_I2C_Read... [06:54:35]Read from MH i2c: E2 0B 00 [06:54:35]MH_I2C_Read... [06:54:35]Read from MH i2c: E2 0B 00 D4 10 00 19 0D 77 BC 2A 1B 75 19 90 00 8C [06:54:35]RAPDU: 19 0D 77 BC 2A 1B 75 19 90 00 [06:54:35]wFMCommunicate OK [06:54:35]SAM_PROTO_SignData done [06:54:35]FM_MakeSignedData done [06:54:35]CreateOFDProtocolMessage [06:54:35]wFMCommunicate request_size=4 [06:54:35]MH_SAM_APDU [06:54:35]CAPDU: 80 11 00 00 [06:54:35]Write to MH i2c: E2 08 00 D5 10 80 11 00 00 00 00 00 00 5F [06:54:35]Write i2c OK [06:54:35]MH_I2C_Read... [06:54:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:54:35]Read from MH i2c: E2 [06:54:35]MH_I2C_Read... [06:54:35]Read from MH i2c: E2 17 00 [06:54:35]MH_I2C_Read... [06:54:35]Read from MH i2c: E2 17 00 D5 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B6 [06:54:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:54:35]wFMCommunicate OK [06:54:35]CreateOFDProtocolMessage done [06:54:35]OFDSenderStorePacket 228084 [06:54:35]StoreOFDPacket docnum=228084 [06:54:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 E0 6D 07 01 0D 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 3C 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2B 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 1C 00 00 00 00 07 04 06 00 24 0D 01 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 2C 4C 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F4 7A 03 00 35 04 06 00 B3 36 F0 CF 10 9B 19 0D 77 BC 2A 1B 75 19 [06:54:35]CheckFolder [06:54:35]dirname=/storage/ofd_packets [06:54:35]CheckFolder done [06:54:35]ProducePacketName [06:54:35]name=ofd_packets/00228084 [06:54:35]NVStorageSaveData ofd_packets/00228084 [06:54:35]File name is /storage/ofd_packets/00228084 [06:54:35]Write 301 bytes [06:54:35]NVStorageSaveData done [06:54:35]OFDSenderStorePacket done [06:54:35]KKMCreateOFDPacket done [06:54:35]NVStorageSaveData kkm_last_timestamp [06:54:35]File name is /storage/kkm_last_timestamp [06:54:35]Write 4 bytes [06:54:35]NVStorageSaveData done [06:54:35]ExternCall_PrintAddStr [06:54:35]wPrintStart [06:54:35]Write to MH i2c: 01 00 00 D6 10 E6 [06:54:35]Write i2c OK [06:54:35]MH_I2C_Read... [06:54:35]Read from MH i2c: 01 [06:54:35]MH_I2C_Read... [06:54:35]Read from MH i2c: 01 07 00 [06:54:35]MH_I2C_Read... [06:54:35]Read from MH i2c: 01 07 00 D6 10 00 00 00 00 00 FF 0F FB [06:54:35]RasterBufferAndPrint [06:54:35]line Счет N : (1)1964288 [06:54:35]line ИНН: 02508201610067 [06:54:35]line Контрольно-Кассовый Чек [06:54:35]line ПРОДАЖА [06:54:35]line ТРК (МРК, ГНК) : 33 [06:54:35]line Товар: 2710124130 [06:54:35]line Аи-92-К-5 [06:54:35]line 10.300 * 66.90 [06:54:35]line = 689.07 [06:54:35]line НДС 12% НСП 1% [06:54:35]line > о реализуемом товаре [06:54:35]line ОКРУГЛЕНИЕ: -0.07 [06:54:35]line ИТОГО: 689.00 [06:54:35]line Внесено: 689.00 [06:54:35]line СДАЧА: 0.00 [06:54:35]line НСП 1% : 6.10 [06:54:35]line НДС 12% : 73.18 [06:54:35]line Наличными: 689.00 [06:54:35]line Безнал.: 0.00 [06:54:35]line Место: АЗС № 133 "Партнер Нефть" [06:54:35]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [06:54:35]line СНО: Общий режим [06:54:35]line Чек 48 22.10.2024 06:54 [06:54:35]line Смена: 535 ФФД: 1.0 [06:54:35]line ЗНМ: 0300000091 [06:54:35]line РНМ: 0000000000091685 [06:54:35]line Версия ККМ: 001 [06:54:35]line ФМ: 0000000000871839 [06:54:35]line ФД: 228084 [06:54:35]line ФПД: 197048549707931 [06:54:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T065436&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228084&fm=197048549707931&tin=02508201610067®Number=0000000000091685&sum=68900 [06:54:36]OFD Sender: Processing packet 228084 [packets to send 38, broken 37] [06:54:36]ProducePacketName [06:54:36]name=ofd_packets/00228084 [06:54:36]OFD Sender: To server: pG, [06:54:36]CommunicateWithHost lk.salyk.kg:30040 [06:54:36]ConnectInit lk.salyk.kg [06:54:36]written 0, free lines is 4095 [06:54:36]Connected sock=11 [06:54:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 E0 6D 07 01 0D 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 3C 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2B 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 1C 00 00 00 00 07 04 06 00 24 0D 01 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 2C 4C 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F4 7A 03 00 35 04 06 00 B3 36 F0 CF 10 9B 19 0D 77 BC 2A 1B 75 19 [06:54:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 C1 CB 47 00 03 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 38 37 31 38 33 39 10 04 04 00 F4 7A 03 00 F4 03 04 00 26 F7 16 67 B6 04 01 00 00 C8 62 E7 F5 B1 8F 4C 8A [06:54:36]CommunicateWithHost err = 0 [06:54:36]CheckOFDResponse [06:54:36]1017 (14) - 77093643461234 [06:54:36]1041 (16) - 0000000000871839 [06:54:36]1040 (4) - 228084 [06:54:36]1012 (4) - 22.10.2024 00:51 [06:54:36]1206 (1) - 0 [06:54:36]OFD Sender: Remove packet 228084 [06:54:36]ProducePacketName [06:54:36]name=ofd_packets/00228084 [06:54:36]NVStorageDeleteData [06:54:36]Write to MH i2c: 01 00 00 00 11 11 [06:54:36]Write i2c OK [06:54:36]MH_I2C_Read... [06:54:36]Read from MH i2c: 01 [06:54:36]MH_I2C_Read... [06:54:36]Read from MH i2c: 01 07 00 [06:54:36]MH_I2C_Read... [06:54:36]Read from MH i2c: 01 07 00 00 11 00 00 00 00 00 A7 0C CB [06:54:36]RasterBufferAndPrint [06:54:36]line [06:54:36]line [06:54:36]line [06:54:36]line [06:54:36]line [06:54:36]written 0, free lines is 3242 [06:54:36]MH_Cut [06:54:36]Write to MH i2c: D1 01 00 07 11 01 EA [06:54:36]Write i2c OK [06:54:36]MH_I2C_Read... [06:54:36]Read from MH i2c: D1 [06:54:36]MH_I2C_Read... [06:54:36]Read from MH i2c: D1 01 00 [06:54:36]MH_I2C_Read... [06:54:36]Read from MH i2c: D1 01 00 07 11 00 E9 [06:54:36]Write to MH i2c: 01 00 00 08 11 19 [06:54:36]Write i2c OK [06:54:36]MH_I2C_Read... [06:54:37]OFD Sender: No OFD packet to send [06:54:37]*** Cut start [06:54:37]*** Partial cut [06:54:37]*** CUTSNS_PIN = 1 [06:54:37]*** CUTSNS_PIN = 0 [06:54:38]*** Brake cut motor [06:54:38]Read from MH i2c: 01 [06:54:38]MH_I2C_Read... [06:54:38]*** Stop cut motor [06:54:38]*** Cut end [06:54:38]Read from MH i2c: 01 07 00 [06:54:38]MH_I2C_Read... [06:54:38]Read from MH i2c: 01 07 00 08 11 00 00 00 00 00 FF 0F 2E [06:54:38]process_action close_receipt done [06:54:38]requested_data is exist [06:54:38]produce_requested_data [06:54:38]requested_item fm.sn is exist - process it [06:54:38]wFMCommunicate request_size=4 [06:54:38]MH_SAM_APDU [06:54:38]CAPDU: 80 11 00 00 [06:54:38]Write to MH i2c: E2 08 00 09 11 80 11 00 00 00 00 00 00 94 [06:54:38]Write i2c OK [06:54:38]MH_I2C_Read... [06:54:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:54:38]Read from MH i2c: E2 [06:54:38]MH_I2C_Read... [06:54:38]Read from MH i2c: E2 17 00 [06:54:38]MH_I2C_Read... [06:54:38]Read from MH i2c: E2 17 00 09 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 EB [06:54:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:54:38]wFMCommunicate OK [06:54:38]requested_item fd.num is exist - process it [06:54:38]SAM_PROTO_GetFieldsCounters [06:54:38]wFMCommunicate request_size=4 [06:54:38]MH_SAM_APDU [06:54:38]CAPDU: 80 13 00 00 [06:54:38]Write to MH i2c: E2 08 00 0A 11 80 13 00 00 00 00 00 00 97 [06:54:38]Write i2c OK [06:54:38]MH_I2C_Read... [06:54:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:54:38]Read from MH i2c: E2 [06:54:38]MH_I2C_Read... [06:54:38]Read from MH i2c: E2 62 00 [06:54:38]MH_I2C_Read... [06:54:38]Read from MH i2c: E2 62 00 0A 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F4 7A 03 00 0E 04 04 00 17 02 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 DA [06:54:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F4 7A 03 00 0E 04 04 00 17 02 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 [06:54:38]wFMCommunicate OK [06:54:38]SAM_PROTO_GetFieldsCounters done [06:54:38]requested_item shift.num is exist - process it [06:54:38]requested_item shift.opened is exist - process it [06:54:38]req_shift_opened [06:54:38]FM_GetShiftState [06:54:38]SAM_PROTO_GetShiftState [06:54:38]wFMCommunicate request_size=4 [06:54:38]MH_SAM_APDU [06:54:38]CAPDU: 80 13 01 00 [06:54:38]Write to MH i2c: E2 08 00 0B 11 80 13 01 00 00 00 00 00 99 [06:54:38]Write i2c OK [06:54:38]MH_I2C_Read... [06:54:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:54:38]Read from MH i2c: E2 [06:54:38]MH_I2C_Read... [06:54:38]Read from MH i2c: E2 0E 00 [06:54:38]MH_I2C_Read... [06:54:38]Read from MH i2c: E2 0E 00 0B 11 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 60 [06:54:38]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [06:54:38]wFMCommunicate OK [06:54:38]SAM_PROTO_GetShiftState done [06:54:38]FM_GetShiftState done [06:54:38]req_shift_opened done [06:54:38]requested_item shift.open_date is exist - process it [06:54:38]req_shift_open_date [06:54:38]req_shift_open_date done [06:54:38]produce_requested_data done [06:54:38]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228084,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [06:54:38]process_action_free close_receipt [06:54:38]json_value_free [06:54:38]json_value_free done [06:54:38]process_json_proto returns [06:54:38]Send response to host [06:54:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228084,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [06:54:38]free response buf [06:54:38]execute_script done [06:54:38]execute_script returns [06:54:38]free content buf [06:54:38]Sock 9.Close socket [06:54:38]Sock 9.Thread stoped [06:54:42]OFD Sender: No OFD packet to send [06:54:47]OFD Sender: No OFD packet to send [06:54:52]OFD Sender: No OFD packet to send [06:54:57]OFD Sender: No OFD packet to send [06:55:02]OFD Sender: No OFD packet to send [06:55:07]OFD Sender: No OFD packet to send [06:55:09]recv_with_timeout no data received [06:55:12]OFD Sender: No OFD packet to send [06:55:17]OFD Sender: No OFD packet to send [06:55:22]OFD Sender: No OFD packet to send [06:55:27]OFD Sender: No OFD packet to send [06:55:30]recv_with_timeout no data received [06:55:32]OFD Sender: No OFD packet to send [06:55:37]OFD Sender: No OFD packet to send [06:55:42]OFD Sender: No OFD packet to send [06:55:47]OFD Sender: No OFD packet to send [06:55:52]recv_with_timeout no data received [06:55:52]OFD Sender: No OFD packet to send [06:55:57]OFD Sender: No OFD packet to send [06:56:02]OFD Sender: No OFD packet to send [06:56:07]OFD Sender: No OFD packet to send [06:56:12]OFD Sender: No OFD packet to send [06:56:17]OFD Sender: No OFD packet to send [06:56:22]OFD Sender: No OFD packet to send [06:56:27]OFD Sender: No OFD packet to send [06:56:32]OFD Sender: No OFD packet to send [06:56:37]OFD Sender: No OFD packet to send [06:56:42]OFD Sender: No OFD packet to send [06:56:47]OFD Sender: No OFD packet to send [06:56:52]OFD Sender: No OFD packet to send [06:56:57]OFD Sender: No OFD packet to send [06:57:02]OFD Sender: No OFD packet to send [06:57:07]OFD Sender: No OFD packet to send [06:57:12]OFD Sender: No OFD packet to send [06:57:17]OFD Sender: No OFD packet to send [06:57:22]OFD Sender: No OFD packet to send [06:57:27]OFD Sender: No OFD packet to send [06:57:32]OFD Sender: No OFD packet to send [06:57:37]OFD Sender: No OFD packet to send [06:57:42]OFD Sender: No OFD packet to send [06:57:47]OFD Sender: No OFD packet to send [06:57:52]OFD Sender: No OFD packet to send [06:57:57]OFD Sender: No OFD packet to send [06:58:02]OFD Sender: No OFD packet to send [06:58:07]OFD Sender: No OFD packet to send [06:58:12]OFD Sender: No OFD packet to send [06:58:17]OFD Sender: No OFD packet to send [06:58:22]OFD Sender: No OFD packet to send [06:58:27]OFD Sender: No OFD packet to send [06:58:32]OFD Sender: No OFD packet to send [06:58:37]OFD Sender: No OFD packet to send [06:58:42]OFD Sender: No OFD packet to send [06:58:47]OFD Sender: No OFD packet to send [06:58:52]OFD Sender: No OFD packet to send [06:58:57]OFD Sender: No OFD packet to send [06:59:02]OFD Sender: No OFD packet to send [06:59:07]OFD Sender: No OFD packet to send [06:59:12]OFD Sender: No OFD packet to send [06:59:17]OFD Sender: No OFD packet to send [06:59:22]OFD Sender: No OFD packet to send [06:59:27]OFD Sender: No OFD packet to send [06:59:32]OFD Sender: No OFD packet to send [06:59:37]OFD Sender: No OFD packet to send [06:59:42]OFD Sender: No OFD packet to send [06:59:47]OFD Sender: No OFD packet to send [06:59:52]OFD Sender: No OFD packet to send [06:59:57]OFD Sender: No OFD packet to send [07:00:02]OFD Sender: No OFD packet to send [07:00:07]OFD Sender: No OFD packet to send [07:00:12]OFD Sender: No OFD packet to send [07:00:17]OFD Sender: No OFD packet to send [07:00:22]OFD Sender: No OFD packet to send [07:00:27]OFD Sender: No OFD packet to send [07:00:32]OFD Sender: No OFD packet to send [07:00:37]OFD Sender: No OFD packet to send [07:00:42]OFD Sender: No OFD packet to send [07:00:47]OFD Sender: No OFD packet to send [07:00:52]OFD Sender: No OFD packet to send [07:00:57]OFD Sender: No OFD packet to send [07:01:02]OFD Sender: No OFD packet to send [07:01:07]OFD Sender: No OFD packet to send [07:01:12]OFD Sender: No OFD packet to send [07:01:17]OFD Sender: No OFD packet to send [07:01:22]OFD Sender: No OFD packet to send [07:01:27]OFD Sender: No OFD packet to send [07:01:32]OFD Sender: No OFD packet to send [07:01:37]OFD Sender: No OFD packet to send [07:01:42]OFD Sender: No OFD packet to send [07:01:47]OFD Sender: No OFD packet to send [07:01:52]OFD Sender: No OFD packet to send [07:01:57]OFD Sender: No OFD packet to send [07:02:02]OFD Sender: No OFD packet to send [07:02:07]OFD Sender: No OFD packet to send [07:02:12]OFD Sender: No OFD packet to send [07:02:17]OFD Sender: No OFD packet to send [07:02:22]OFD Sender: No OFD packet to send [07:02:27]OFD Sender: No OFD packet to send [07:02:32]OFD Sender: No OFD packet to send [07:02:37]OFD Sender: No OFD packet to send [07:02:42]OFD Sender: No OFD packet to send [07:02:47]OFD Sender: No OFD packet to send [07:02:52]OFD Sender: No OFD packet to send [07:02:57]OFD Sender: No OFD packet to send [07:03:02]OFD Sender: No OFD packet to send [07:03:07]OFD Sender: No OFD packet to send [07:03:12]OFD Sender: No OFD packet to send [07:03:17]OFD Sender: No OFD packet to send [07:03:22]OFD Sender: No OFD packet to send [07:03:27]OFD Sender: No OFD packet to send [07:03:32]OFD Sender: No OFD packet to send [07:03:37]OFD Sender: No OFD packet to send [07:03:42]OFD Sender: No OFD packet to send [07:03:47]OFD Sender: No OFD packet to send [07:03:52]OFD Sender: No OFD packet to send [07:03:57]OFD Sender: No OFD packet to send [07:04:02]OFD Sender: No OFD packet to send [07:04:07]accept exits with 7 [07:04:07]New connection [07:04:07]New thread 3066994020 created [07:04:07]Thread 3067137380 joined [07:04:07]Waiting for new connection... [07:04:07] Sock 7.Parse request [07:04:07]Sock 7.Check first char [07:04:07]Sock 7.First char is OK [07:04:07]request: POST /json_proto HTTP/1.0 [07:04:07]Method: POST [07:04:07]URL: /json_proto [07:04:07]Method is POST - this is cgi request [07:04:07]url: /json_proto [07:04:07]query_string will be loaded in cgi processing [07:04:07]execute_cgi json_proto POST (null) [07:04:07]execute_cgi path=json_proto method=POST [07:04:07]POST find Content-Length [07:04:07]Host: 172.17.44.195:8080 [07:04:07]Content-Length: 677 [07:04:07]Content-Type: application/json [07:04:07] [07:04:07]POST finish read [07:04:07]Found Content-Length = 677 [07:04:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:04:07]execute_script... [07:04: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)1964290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:04:07]POST & json_proto [07:04:07]process_json_proto [07:04:07]json parsed OK: [07:04:07]protocol is kg_v1.0 [07:04:07]action value=close_receipt [07:04:07]process_action close_receipt [07:04:07]cmd_close_receipt [07:04:07]MH_GetDate [07:04:07]Write to MH i2c: F0 00 00 0C 11 0C [07:04:07]Write i2c OK [07:04:07]MH_I2C_Read... [07:04:07]Read from MH i2c: F0 [07:04:07]MH_I2C_Read... [07:04:07]Read from MH i2c: F0 09 00 [07:04:07]MH_I2C_Read... [07:04:07]Read from MH i2c: F0 09 00 0C 11 00 69 4E 17 67 82 C9 CF 66 CA [07:04:07]GetLastDocTimeStamp 1729580076 [07:04:07]current date 1729580649 [07:04:07]FM_GetShiftState [07:04:07]SAM_PROTO_GetShiftState [07:04:07]wFMCommunicate request_size=4 [07:04:07]MH_SAM_APDU [07:04:07]CAPDU: 80 13 01 00 [07:04:07]Write to MH i2c: E2 08 00 0D 11 80 13 01 00 00 00 00 00 9B [07:04:07]Write i2c OK [07:04:07]MH_I2C_Read... [07:04:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:04:07]Read from MH i2c: E2 [07:04:07]MH_I2C_Read... [07:04:07]Read from MH i2c: E2 0E 00 [07:04:07]MH_I2C_Read... [07:04:07]Read from MH i2c: E2 0E 00 0D 11 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 62 [07:04:07]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [07:04:07]wFMCommunicate OK [07:04:07]SAM_PROTO_GetShiftState done [07:04:07]FM_GetShiftState done [07:04:07]opened in 1729555538 [07:04:07]opened+sec_in_day 1729641938 [07:04:07]quantity*price = 100011 [07:04:07]sum+1 = 100013 [07:04:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 49 22.10.2024 07:04 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228085 ФПД: 50269470698500 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T070409&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228085&fm=50269470698500&tin=02508201610067®Number=0000000000091685&sum=100000 [07:04:08]StoreToDocumentArchive [07:04:08]shift 535 fd 228085 [07:04:08]save to /storage/0535/doc_00228085 [07:04:08]save last doc name /storage/0535/doc_00228085 to /storage/kkm_last_doc_name [07:04:08]save OK [07:04:08]Clear old archive folders... [07:04:08]ProcessDocumentItem done err = 0, tmpTLVsize=245 [07:04:08]tlvbuf is 0086A090 [07:04:08]SAM_PROTO_ClearQueue [07:04:08]wFMCommunicate request_size=4 [07:04:08]MH_SAM_APDU [07:04:08]CAPDU: 80 09 00 00 [07:04:08]Write to MH i2c: E2 08 00 1A 11 80 09 00 00 00 00 00 00 9D [07:04:08]Write i2c OK [07:04:08]MH_I2C_Read... [07:04:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:04:08]Read from MH i2c: E2 [07:04:08]MH_I2C_Read... [07:04:08]Read from MH i2c: E2 03 00 [07:04:08]MH_I2C_Read... [07:04:08]Read from MH i2c: E2 03 00 1A 11 00 90 00 9F [07:04:08]RAPDU: 90 00 [07:04:08]wFMCommunicate OK [07:04:08]SAM_PROTO_ClearQueue done [07:04:08]KKMCreateOFDPacket [07:04:08]OFDProtocolAddRootSTLVToBuf [07:04:08]FM_MakeSignedData [07:04:08]FM_MakeSignedData [07:04:08]SAM_PROTO_SignData [07:04:08]wFMCommunicate request_size=4 [07:04:08]MH_SAM_APDU [07:04:08]CAPDU: 80 0D 01 02 [07:04:08]Write to MH i2c: E2 08 00 1B 11 80 0D 01 02 00 00 00 00 A5 [07:04:08]Write i2c OK [07:04:08]MH_I2C_Read... [07:04:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:04:08]Read from MH i2c: E2 [07:04:08]MH_I2C_Read... [07:04:08]Read from MH i2c: E2 03 00 [07:04:08]MH_I2C_Read... [07:04:08]Read from MH i2c: E2 03 00 1B 11 00 90 00 A0 [07:04:08]RAPDU: 90 00 [07:04:08]wFMCommunicate OK [07:04:08]wFMCommunicate request_size=254 [07:04:08]MH_SAM_APDU [07:04:08]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 31 00 00 00 F4 03 04 00 69 4E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F5 7A 03 00 35 04 06 00 2D B8 45 F1 AC 04 [07:04:08]Write to MH i2c: E2 01 01 1C 11 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 31 00 00 00 F4 03 04 00 69 4E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F5 7A 03 00 35 04 06 00 2D B8 45 F1 AC 04 00 00 CB [07:04:08]Write i2c OK [07:04:08]MH_I2C_Read... [07:04:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:04:08]Read from MH i2c: E2 [07:04:08]MH_I2C_Read... [07:04:08]Read from MH i2c: E2 03 00 [07:04:08]MH_I2C_Read... [07:04:08]Read from MH i2c: E2 03 00 1C 11 00 90 00 A1 [07:04:08]RAPDU: 90 00 [07:04:08]wFMCommunicate OK [07:04:08]wFMCommunicate request_size=4 [07:04:08]MH_SAM_APDU [07:04:08]CAPDU: 80 0D 03 02 [07:04:08]Write to MH i2c: E2 08 00 1D 11 80 0D 03 02 00 00 00 00 A9 [07:04:08]Write i2c OK [07:04:08]MH_I2C_Read... [07:04:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:04:08]Read from MH i2c: E2 [07:04:08]MH_I2C_Read... [07:04:08]Read from MH i2c: E2 0B 00 [07:04:08]MH_I2C_Read... [07:04:08]Read from MH i2c: E2 0B 00 1D 11 00 0F 71 12 90 C3 D2 46 AD 90 00 54 [07:04:08]RAPDU: 0F 71 12 90 C3 D2 46 AD 90 00 [07:04:08]wFMCommunicate OK [07:04:08]SAM_PROTO_SignData done [07:04:08]FM_MakeSignedData done [07:04:08]CreateOFDProtocolMessage [07:04:08]wFMCommunicate request_size=4 [07:04:08]MH_SAM_APDU [07:04:08]CAPDU: 80 11 00 00 [07:04:08]Write to MH i2c: E2 08 00 1E 11 80 11 00 00 00 00 00 00 A9 [07:04:08]Write i2c OK [07:04:08]MH_I2C_Read... [07:04:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:04:08]Read from MH i2c: E2 [07:04:08]MH_I2C_Read... [07:04:08]Read from MH i2c: E2 17 00 [07:04:08]MH_I2C_Read... [07:04:08]Read from MH i2c: E2 17 00 1E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 00 [07:04:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:04:08]wFMCommunicate OK [07:04:08]CreateOFDProtocolMessage done [07:04:08]OFDSenderStorePacket 228085 [07:04:08]StoreOFDPacket docnum=228085 [07:04:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 22 84 01 01 DB CE 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 31 00 00 00 F4 03 04 00 69 4E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F5 7A 03 00 35 04 06 00 2D B8 45 F1 AC 04 0F 71 12 90 C3 D2 46 AD [07:04:08]CheckFolder [07:04:08]dirname=/storage/ofd_packets [07:04:08]CheckFolder done [07:04:08]ProducePacketName [07:04:08]name=ofd_packets/00228085 [07:04:08]NVStorageSaveData ofd_packets/00228085 [07:04:08]File name is /storage/ofd_packets/00228085 [07:04:08]Write 295 bytes [07:04:08]NVStorageSaveData done [07:04:08]OFDSenderStorePacket done [07:04:08]KKMCreateOFDPacket done [07:04:08]NVStorageSaveData kkm_last_timestamp [07:04:08]File name is /storage/kkm_last_timestamp [07:04:08]Write 4 bytes [07:04:08]NVStorageSaveData done [07:04:08]ExternCall_PrintAddStr [07:04:08]wPrintStart [07:04:08]Write to MH i2c: 01 00 00 1F 11 30 [07:04:08]Write i2c OK [07:04:08]MH_I2C_Read... [07:04:08]Read from MH i2c: 01 [07:04:08]MH_I2C_Read... [07:04:08]Read from MH i2c: 01 07 00 [07:04:08]MH_I2C_Read... [07:04:08]Read from MH i2c: 01 07 00 1F 11 00 00 00 00 00 FF 0F 45 [07:04:08]RasterBufferAndPrint [07:04:08]line Счет N : (1)1964290 [07:04:08]line ИНН: 02508201610067 [07:04:08]line Контрольно-Кассовый Чек [07:04:08]line ПРОДАЖА [07:04:08]line ТРК (МРК, ГНК) : 71 [07:04:08]line Товар: 2711129700 [07:04:08]line ГАЗ [07:04:08]line 25.710 * 38.90 [07:04:08]line = 1000.12 [07:04:08]line НДС 12% НСП 1% [07:04:08]line > о реализуемом товаре [07:04:08]line ОКРУГЛЕНИЕ: -0.12 [07:04:08]line ИТОГО: 1000.00 [07:04:08]line Внесено: 1000.00 [07:04:08]line СДАЧА: 0.00 [07:04:08]line НСП 1% : 8.85 [07:04:08]line НДС 12% : 106.21 [07:04:08]line Наличными: 1000.00 [07:04:08]line Безнал.: 0.00 [07:04:08]line Место: АЗС № 133 "Партнер Нефть" [07:04:08]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [07:04:08]line СНО: Общий режим [07:04:08]line Чек 49 22.10.2024 07:04 [07:04:08]line Смена: 535 ФФД: 1.0 [07:04:08]line ЗНМ: 0300000091 [07:04:08]line РНМ: 0000000000091685 [07:04:08]line Версия ККМ: 001 [07:04:08]line ФМ: 0000000000871839 [07:04:08]line ФД: 228085 [07:04:08]line ФПД: 50269470698500 [07:04:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T070409&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228085&fm=50269470698500&tin=02508201610067®Number=0000000000091685&sum=100000 [07:04:09]OFD Sender: Processing packet 228085 [packets to send 38, broken 37] [07:04:09]ProducePacketName [07:04:09]name=ofd_packets/00228085 [07:04:09]OFD Sender: To server: pG, [07:04:09]CommunicateWithHost lk.salyk.kg:30040 [07:04:09]ConnectInit lk.salyk.kg [07:04:09]written 0, free lines is 4095 [07:04:09]Connected sock=9 [07:04:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 22 84 01 01 DB CE 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 31 00 00 00 F4 03 04 00 69 4E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F5 7A 03 00 35 04 06 00 2D B8 45 F1 AC 04 0F 71 12 90 C3 D2 46 AD [07:04:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 71 B8 47 00 7C BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F5 7A 03 00 F4 03 04 00 62 F9 16 67 B6 04 01 00 00 55 9D 47 A1 9B 92 E5 71 [07:04:09]CommunicateWithHost err = 0 [07:04:09]CheckOFDResponse [07:04:09]1017 (14) - 77093643461234 [07:04:09]1041 (16) - 0000000000871839 [07:04:09]1040 (4) - 228085 [07:04:09]1012 (4) - 22.10.2024 01:01 [07:04:09]1206 (1) - 0 [07:04:09]OFD Sender: Remove packet 228085 [07:04:09]ProducePacketName [07:04:09]name=ofd_packets/00228085 [07:04:09]NVStorageDeleteData [07:04:09]Write to MH i2c: 01 00 00 49 11 5A [07:04:09]Write i2c OK [07:04:09]MH_I2C_Read... [07:04:09]Read from MH i2c: 01 [07:04:09]MH_I2C_Read... [07:04:09]Read from MH i2c: 01 07 00 [07:04:09]MH_I2C_Read... [07:04:09]Read from MH i2c: 01 07 00 49 11 00 00 00 00 00 A2 0C 0F [07:04:09]RasterBufferAndPrint [07:04:09]line [07:04:09]line [07:04:09]line [07:04:09]line [07:04:09]line [07:04:09]written 0, free lines is 3239 [07:04:09]MH_Cut [07:04:09]Write to MH i2c: D1 01 00 50 11 01 33 [07:04:09]Write i2c OK [07:04:09]MH_I2C_Read... [07:04:09]Read from MH i2c: D1 [07:04:09]MH_I2C_Read... [07:04:09]Read from MH i2c: D1 01 00 [07:04:09]MH_I2C_Read... [07:04:09]Read from MH i2c: D1 01 00 50 11 00 32 [07:04:09]Write to MH i2c: 01 00 00 51 11 62 [07:04:09]Write i2c OK [07:04:09]MH_I2C_Read... [07:04:09]OFD Sender: No OFD packet to send [07:04:10]*** Cut start [07:04:10]*** Partial cut [07:04:10]*** CUTSNS_PIN = 1 [07:04:10]*** CUTSNS_PIN = 0 [07:04:10]*** Brake cut motor [07:04:11]Read from MH i2c: 01 [07:04:11]MH_I2C_Read... [07:04:11]*** Stop cut motor [07:04:11]*** Cut end [07:04:11]Read from MH i2c: 01 07 00 [07:04:11]MH_I2C_Read... [07:04:11]Read from MH i2c: 01 07 00 51 11 00 00 00 00 00 FF 0F 77 [07:04:11]process_action close_receipt done [07:04:11]requested_data is exist [07:04:11]produce_requested_data [07:04:11]requested_item fm.sn is exist - process it [07:04:11]wFMCommunicate request_size=4 [07:04:11]MH_SAM_APDU [07:04:11]CAPDU: 80 11 00 00 [07:04:11]Write to MH i2c: E2 08 00 52 11 80 11 00 00 00 00 00 00 DD [07:04:11]Write i2c OK [07:04:11]MH_I2C_Read... [07:04:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:04:11]Read from MH i2c: E2 [07:04:11]MH_I2C_Read... [07:04:11]Read from MH i2c: E2 17 00 [07:04:11]MH_I2C_Read... [07:04:11]Read from MH i2c: E2 17 00 52 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 34 [07:04:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:04:11]wFMCommunicate OK [07:04:11]requested_item fd.num is exist - process it [07:04:11]SAM_PROTO_GetFieldsCounters [07:04:11]wFMCommunicate request_size=4 [07:04:11]MH_SAM_APDU [07:04:11]CAPDU: 80 13 00 00 [07:04:11]Write to MH i2c: E2 08 00 53 11 80 13 00 00 00 00 00 00 E0 [07:04:11]Write i2c OK [07:04:11]MH_I2C_Read... [07:04:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:04:11]Read from MH i2c: E2 [07:04:11]MH_I2C_Read... [07:04:11]Read from MH i2c: E2 62 00 [07:04:11]MH_I2C_Read... [07:04:11]Read from MH i2c: E2 62 00 53 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F5 7A 03 00 0E 04 04 00 17 02 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 27 [07:04:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F5 7A 03 00 0E 04 04 00 17 02 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 [07:04:11]wFMCommunicate OK [07:04:11]SAM_PROTO_GetFieldsCounters done [07:04:11]requested_item shift.num is exist - process it [07:04:11]requested_item shift.opened is exist - process it [07:04:11]req_shift_opened [07:04:11]FM_GetShiftState [07:04:11]SAM_PROTO_GetShiftState [07:04:11]wFMCommunicate request_size=4 [07:04:11]MH_SAM_APDU [07:04:11]CAPDU: 80 13 01 00 [07:04:11]Write to MH i2c: E2 08 00 54 11 80 13 01 00 00 00 00 00 E2 [07:04:11]Write i2c OK [07:04:11]MH_I2C_Read... [07:04:11]Read from MH i2c: E2 [07:04:11]MH_I2C_Read... [07:04:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:04:11]Read from MH i2c: E2 0E 00 [07:04:11]MH_I2C_Read... [07:04:11]Read from MH i2c: E2 0E 00 54 11 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 A9 [07:04:11]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [07:04:11]wFMCommunicate OK [07:04:11]SAM_PROTO_GetShiftState done [07:04:11]FM_GetShiftState done [07:04:11]req_shift_opened done [07:04:11]requested_item shift.open_date is exist - process it [07:04:11]req_shift_open_date [07:04:11]req_shift_open_date done [07:04:11]produce_requested_data done [07:04:11]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228085,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [07:04:11]process_action_free close_receipt [07:04:11]json_value_free [07:04:11]json_value_free done [07:04:11]process_json_proto returns [07:04:11]Send response to host [07:04:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228085,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [07:04:11]free response buf [07:04:11]execute_script done [07:04:11]execute_script returns [07:04:11]free content buf [07:04:11]Sock 7.Close socket [07:04:11]Sock 7.Thread stoped [07:04:14]OFD Sender: No OFD packet to send [07:04:19]OFD Sender: No OFD packet to send [07:04:24]OFD Sender: No OFD packet to send [07:04:29]OFD Sender: No OFD packet to send [07:04:34]OFD Sender: No OFD packet to send [07:04:39]OFD Sender: No OFD packet to send [07:04:44]OFD Sender: No OFD packet to send [07:04:49]OFD Sender: No OFD packet to send [07:04:54]OFD Sender: No OFD packet to send [07:04:59]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:59]OFD Sender: No OFD packet to send [07:06:04]OFD Sender: No OFD packet to send [07:06:08]recv_with_timeout no data received [07:06:09]OFD Sender: No OFD packet to send [07:06:14]OFD Sender: No OFD packet to send [07:06:20]OFD Sender: No OFD packet to send [07:06:25]OFD Sender: No OFD packet to send [07:06:30]OFD Sender: No OFD packet to send [07:06:35]OFD Sender: No OFD packet to send [07:06:38]recv_with_timeout no data received [07:06:40]OFD Sender: No OFD packet to send [07:06:45]OFD Sender: No OFD packet to send [07:06:50]OFD Sender: No OFD packet to send [07:06:55]OFD Sender: No OFD packet to send [07:07:00]OFD Sender: No OFD packet to send [07:07:05]OFD Sender: No OFD packet to send [07:07:10]OFD Sender: No OFD packet to send [07:07:15]OFD Sender: No OFD packet to send [07:07:20]OFD Sender: No OFD packet to send [07:07:25]OFD Sender: No OFD packet to send [07:07:30]OFD Sender: No OFD packet to send [07:07:35]OFD Sender: No OFD packet to send [07:07:40]OFD Sender: No OFD packet to send [07:07:45]OFD Sender: No OFD packet to send [07:07:50]OFD Sender: No OFD packet to send [07:07:55]OFD Sender: No OFD packet to send [07:08:00]OFD Sender: No OFD packet to send [07:08:05]OFD Sender: No OFD packet to send [07:08:10]OFD Sender: No OFD packet to send [07:08:15]OFD Sender: No OFD packet to send [07:08:20]OFD Sender: No OFD packet to send [07:08:25]OFD Sender: No OFD packet to send [07:08:30]OFD Sender: No OFD packet to send [07:08:35]OFD Sender: No OFD packet to send [07:08:40]OFD Sender: No OFD packet to send [07:08:45]OFD Sender: No OFD packet to send [07:08:50]OFD Sender: No OFD packet to send [07:08:55]OFD Sender: No OFD packet to send [07:09:00]OFD Sender: No OFD packet to send [07:09:05]OFD Sender: No OFD packet to send [07:09:10]OFD Sender: No OFD packet to send [07:09:15]OFD Sender: No OFD packet to send [07:09:20]OFD Sender: No OFD packet to send [07:09:25]OFD Sender: No OFD packet to send [07:09:30]OFD Sender: No OFD packet to send [07:09:35]OFD Sender: No OFD packet to send [07:09:40]OFD Sender: No OFD packet to send [07:09:45]OFD Sender: No OFD packet to send [07:09:50]OFD Sender: No OFD packet to send [07:09:55]OFD Sender: No OFD packet to send [07:10:00]OFD Sender: No OFD packet to send [07:10:05]OFD Sender: No OFD packet to send [07:10:10]OFD Sender: No OFD packet to send [07:10:15]OFD Sender: No OFD packet to send [07:10:20]OFD Sender: No OFD packet to send [07:10:25]OFD Sender: No OFD packet to send [07:10:30]OFD Sender: No OFD packet to send [07:10:35]OFD Sender: No OFD packet to send [07:10:40]OFD Sender: No OFD packet to send [07:10:45]OFD Sender: No OFD packet to send [07:10:50]OFD Sender: No OFD packet to send [07:10:55]OFD Sender: No OFD packet to send [07:11:00]OFD Sender: No OFD packet to send [07:11:05]OFD Sender: No OFD packet to send [07:11:10]OFD Sender: No OFD packet to send [07:11:15]OFD Sender: No OFD packet to send [07:11:20]OFD Sender: No OFD packet to send [07:11:25]OFD Sender: No OFD packet to send [07:11:30]OFD Sender: No OFD packet to send [07:11:35]OFD Sender: No OFD packet to send [07:11:40]OFD Sender: No OFD packet to send [07:11:45]OFD Sender: No OFD packet to send [07:11:50]OFD Sender: No OFD packet to send [07:11:55]OFD Sender: No OFD packet to send [07:12:00]OFD Sender: No OFD packet to send [07:12:05]OFD Sender: No OFD packet to send [07:12:10]OFD Sender: No OFD packet to send [07:12:15]OFD Sender: No OFD packet to send [07:12:20]OFD Sender: No OFD packet to send [07:12:25]OFD Sender: No OFD packet to send [07:12:30]OFD Sender: No OFD packet to send [07:12:35]OFD Sender: No OFD packet to send [07:12:40]OFD Sender: No OFD packet to send [07:12:45]OFD Sender: No OFD packet to send [07:12:50]OFD Sender: No OFD packet to send [07:12:55]OFD Sender: No OFD packet to send [07:13:00]OFD Sender: No OFD packet to send [07:13:05]OFD Sender: No OFD packet to send [07:13:10]OFD Sender: No OFD packet to send [07:13:15]OFD Sender: No OFD packet to send [07:13:20]OFD Sender: No OFD packet to send [07:13:25]OFD Sender: No OFD packet to send [07:13:30]OFD Sender: No OFD packet to send [07:13:35]OFD Sender: No OFD packet to send [07:13:40]OFD Sender: No OFD packet to send [07:13:45]OFD Sender: No OFD packet to send [07:13:50]OFD Sender: No OFD packet to send [07:13:55]OFD Sender: No OFD packet to send [07:14:00]OFD Sender: No OFD packet to send [07:14:05]OFD Sender: No OFD packet to send [07:14:10]OFD Sender: No OFD packet to send [07:14:15]OFD Sender: No OFD packet to send [07:14:20]OFD Sender: No OFD packet to send [07:14:25]OFD Sender: No OFD packet to send [07:14:30]OFD Sender: No OFD packet to send [07:14:31]recv_with_timeout no data received [07:14:35]OFD Sender: No OFD packet to send [07:15:17]Read from MH i2c: E2 03 00 5E 11 00 90 00 E3 [07:15:17]RAPDU: 90 00 [07:15:17]wFMCommunicate OK [07:15:17]wFMCommunicate request_size=13 [07:15:17]MH_SAM_APDU [07:15:17]CAPDU: 80 15 02 00 08 F4 03 04 00 07 51 17 67 [07:15:17]Write to MH i2c: E2 10 00 5F 11 80 15 02 00 08 00 F4 03 04 00 07 51 17 67 00 00 D1 [07:15:17]Write i2c OK [07:15:17]MH_I2C_Read... [07:15:17]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [07:15:17]Read from MH i2c: E2 [07:15:17]MH_I2C_Read... [07:15:17]Read from MH i2c: E2 03 00 [07:15:17]MH_I2C_Read... [07:15:17]Read from MH i2c: E2 03 00 5F 11 00 90 00 E4 [07:15:17]RAPDU: 90 00 [07:15:17]wFMCommunicate OK [07:15:17]wFMCommunicate request_size=25 [07:15:17]MH_SAM_APDU [07:15:17]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 [07:15:17]Write to MH i2c: E2 1C 00 60 11 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 00 00 57 [07:15:17]Write i2c OK [07:15:17]MH_I2C_Read... [07:15:17]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [07:15:17]Read from MH i2c: E2 [07:15:17]MH_I2C_Read... [07:15:17]Read from MH i2c: E2 03 00 [07:15:17]MH_I2C_Read... [07:15:17]Read from MH i2c: E2 03 00 60 11 00 90 00 E5 [07:15:17]RAPDU: 90 00 [07:15:17]wFMCommunicate OK [07:15:17]wFMCommunicate request_size=4 [07:15:17]MH_SAM_APDU [07:15:17]CAPDU: 80 15 03 00 [07:15:17]Write to MH i2c: E2 08 00 61 11 80 15 03 00 00 00 00 00 F3 [07:15:17]Write i2c OK [07:15:17]MH_I2C_Read... [07:15:18]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [07:15:18]Read from MH i2c: E2 [07:15:18]MH_I2C_Read... [07:15:18]Read from MH i2c: E2 40 00 [07:15:18]MH_I2C_Read... [07:15:18]Read from MH i2c: E2 40 00 61 11 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F6 7A 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 32 00 00 00 35 04 06 00 8C 4D 49 B2 E1 F2 90 00 52 [07:15:18]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F6 7A 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 32 00 00 00 35 04 06 00 8C 4D 49 B2 E1 F2 90 00 [07:15:18]wFMCommunicate OK [07:15:18]SAM_PROTO_ProcessDocument answer len = 59 [07:15:18]SAM_PROTO_ProcessDocument done [07:15:18]SetTLVBufToDocument [07:15:18]Processing tag 1209 (04B9) [07:15:18]Malloc new data [07:15:18]Processing tag 1041 (0411) [07:15:18]Processing tag 1040 (0410) [07:15:18]Malloc new data [07:15:18]Processing tag 1038 (040E) [07:15:18]Malloc new data [07:15:18]Processing tag 1042 (0412) [07:15:18]Malloc new data [07:15:18]Processing tag 1077 (0435) [07:15:18]Malloc new data [07:15:18]SetTLVBufToDocument err=0 [07:15:18]KKMLoadAndSignReceiptData store KKM data [07:15:18]KKMLoadAndSignReceiptData err=0 [07:15:18]wFMCommunicate request_size=4 [07:15:18]MH_SAM_APDU [07:15:18]CAPDU: 80 11 00 00 [07:15:18]Write to MH i2c: E2 08 00 62 11 80 11 00 00 00 00 00 00 ED [07:15:18]Write i2c OK [07:15:18]MH_I2C_Read... [07:15:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:15:18]Read from MH i2c: E2 [07:15:18]MH_I2C_Read... [07:15:18]Read from MH i2c: E2 17 00 [07:15:18]MH_I2C_Read... [07:15:18]Read from MH i2c: E2 17 00 62 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 44 [07:15:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:15:18]wFMCommunicate OK [07:15:18]Счет N : (1)1964291 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 42 Товар: 2710124130 SU-92 14.620 * 68.40 = 1000.01 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 50 22.10.2024 07:15 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228086 ФПД: 154263576830450 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T071519&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228086&fm=154263576830450&tin=02508201610067®Number=0000000000091685&sum=100000 [07:15:18]StoreToDocumentArchive [07:15:18]shift 535 fd 228086 [07:15:18]save to /storage/0535/doc_00228086 [07:15:18]save last doc name /storage/0535/doc_00228086 to /storage/kkm_last_doc_name [07:15:18]save OK [07:15:18]Clear old archive folders... [07:15:18]ProcessDocumentItem done err = 0, tmpTLVsize=244 [07:15:18]tlvbuf is 0085FB20 [07:15:18]SAM_PROTO_ClearQueue [07:15:18]wFMCommunicate request_size=4 [07:15:18]MH_SAM_APDU [07:15:18]CAPDU: 80 09 00 00 [07:15:18]Write to MH i2c: E2 08 00 63 11 80 09 00 00 00 00 00 00 E6 [07:15:18]Write i2c OK [07:15:18]MH_I2C_Read... [07:15:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:15:18]Read from MH i2c: E2 [07:15:18]MH_I2C_Read... [07:15:18]Read from MH i2c: E2 03 00 [07:15:18]MH_I2C_Read... [07:15:18]Read from MH i2c: E2 03 00 63 11 00 90 00 E8 [07:15:18]RAPDU: 90 00 [07:15:18]wFMCommunicate OK [07:15:18]SAM_PROTO_ClearQueue done [07:15:18]KKMCreateOFDPacket [07:15:18]OFDProtocolAddRootSTLVToBuf [07:15:18]FM_MakeSignedData [07:15:18]FM_MakeSignedData [07:15:18]SAM_PROTO_SignData [07:15:18]wFMCommunicate request_size=4 [07:15:18]MH_SAM_APDU [07:15:18]CAPDU: 80 0D 01 02 [07:15:18]Write to MH i2c: E2 08 00 64 11 80 0D 01 02 00 00 00 00 EE [07:15:18]Write i2c OK [07:15:18]MH_I2C_Read... [07:15:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:15:18]Read from MH i2c: E2 [07:15:18]MH_I2C_Read... [07:15:18]Read from MH i2c: E2 03 00 [07:15:18]MH_I2C_Read... [07:15:18]Read from MH i2c: E2 03 00 64 11 00 90 00 E9 [07:15:18]RAPDU: 90 00 [07:15:18]wFMCommunicate OK [07:15:18]wFMCommunicate request_size=253 [07:15:18]MH_SAM_APDU [07:15:18]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 07 51 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F6 7A 03 00 35 04 06 00 8C 4D 49 B2 E1 F2 [07:15:18]Write to MH i2c: E2 00 01 65 11 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 07 51 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F6 7A 03 00 35 04 06 00 8C 4D 49 B2 E1 F2 00 00 A3 [07:15:18]Write i2c OK [07:15:18]MH_I2C_Read... [07:15:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:15:18]Read from MH i2c: E2 [07:15:18]MH_I2C_Read... [07:15:18]Read from MH i2c: E2 03 00 [07:15:18]MH_I2C_Read... [07:15:18]Read from MH i2c: E2 03 00 65 11 00 90 00 EA [07:15:18]RAPDU: 90 00 [07:15:18]wFMCommunicate OK [07:15:18]wFMCommunicate request_size=4 [07:15:18]MH_SAM_APDU [07:15:18]CAPDU: 80 0D 03 02 [07:15:18]Write to MH i2c: E2 08 00 66 11 80 0D 03 02 00 00 00 00 F2 [07:15:18]Write i2c OK [07:15:18]MH_I2C_Read... [07:15:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:15:18]Read from MH i2c: E2 [07:15:18]MH_I2C_Read... [07:15:18]Read from MH i2c: E2 0B 00 [07:15:18]MH_I2C_Read... [07:15:18]Read from MH i2c: E2 0B 00 66 11 00 9D AB 35 1D 22 65 DD 96 90 00 87 [07:15:18]RAPDU: 9D AB 35 1D 22 65 DD 96 90 00 [07:15:18]wFMCommunicate OK [07:15:18]SAM_PROTO_SignData done [07:15:18]FM_MakeSignedData done [07:15:18]CreateOFDProtocolMessage [07:15:18]wFMCommunicate request_size=4 [07:15:18]MH_SAM_APDU [07:15:18]CAPDU: 80 11 00 00 [07:15:18]Write to MH i2c: E2 08 00 67 11 80 11 00 00 00 00 00 00 F2 [07:15:18]Write i2c OK [07:15:18]MH_I2C_Read... [07:15:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:15:18]Read from MH i2c: E2 [07:15:18]MH_I2C_Read... [07:15:18]Read from MH i2c: E2 17 00 [07:15:18]MH_I2C_Read... [07:15:18]Read from MH i2c: E2 17 00 67 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 49 [07:15:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:15:18]wFMCommunicate OK [07:15:18]CreateOFDProtocolMessage done [07:15:18]OFDSenderStorePacket 228086 [07:15:18]StoreOFDPacket docnum=228086 [07:15:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 16 63 00 01 2E 60 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 07 51 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F6 7A 03 00 35 04 06 00 8C 4D 49 B2 E1 F2 9D AB 35 1D 22 65 DD 96 [07:15:18]CheckFolder [07:15:18]dirname=/storage/ofd_packets [07:15:18]CheckFolder done [07:15:18]ProducePacketName [07:15:18]name=ofd_packets/00228086 [07:15:18]NVStorageSaveData ofd_packets/00228086 [07:15:18]File name is /storage/ofd_packets/00228086 [07:15:18]Write 294 bytes [07:15:18]NVStorageSaveData done [07:15:18]OFDSenderStorePacket done [07:15:18]KKMCreateOFDPacket done [07:15:18]NVStorageSaveData kkm_last_timestamp [07:15:18]File name is /storage/kkm_last_timestamp [07:15:18]Write 4 bytes [07:15:18]NVStorageSaveData done [07:15:18]ExternCall_PrintAddStr [07:15:18]wPrintStart [07:15:18]Write to MH i2c: 01 00 00 68 11 79 [07:15:18]Write i2c OK [07:15:18]MH_I2C_Read... [07:15:18]Read from MH i2c: 01 [07:15:18]MH_I2C_Read... [07:15:18]Read from MH i2c: 01 07 00 [07:15:18]MH_I2C_Read... [07:15:18]Read from MH i2c: 01 07 00 68 11 00 00 00 00 00 FF 0F 8E [07:15:18]RasterBufferAndPrint [07:15:18]line Счет N : (1)1964291 [07:15:18]line ИНН: 02508201610067 [07:15:18]line Контрольно-Кассовый Чек [07:15:18]line ПРОДАЖА [07:15:18]line ТРК (МРК, ГНК) : 42 [07:15:18]line Товар: 2710124130 [07:15:18]line SU-92 [07:15:18]line 14.620 * 68.40 [07:15:18]line = 1000.01 [07:15:18]line НДС 12% НСП 1% [07:15:18]line > о реализуемом товаре [07:15:18]line ОКРУГЛЕНИЕ: -0.01 [07:15:18]line ИТОГО: 1000.00 [07:15:18]line Внесено: 1000.00 [07:15:18]line СДАЧА: 0.00 [07:15:18]line НСП 1% : 8.85 [07:15:18]line НДС 12% : 106.20 [07:15:18]line Наличными: 1000.00 [07:15:18]line Безнал.: 0.00 [07:15:18]line Место: АЗС № 133 "Партнер Нефть" [07:15:18]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [07:15:18]line СНО: Общий режим [07:15:18]line Чек 50 22.10.2024 07:15 [07:15:18]line Смена: 535 ФФД: 1.0 [07:15:18]line ЗНМ: 0300000091 [07:15:18]line РНМ: 0000000000091685 [07:15:18]line Версия ККМ: 001 [07:15:18]line ФМ: 0000000000871839 [07:15:18]line ФД: 228086 [07:15:18]line ФПД: 154263576830450 [07:15:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T071519&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228086&fm=154263576830450&tin=02508201610067®Number=0000000000091685&sum=100000 [07:15:18]OFD Sender: Processing packet 228086 [packets to send 38, broken 37] [07:15:18]ProducePacketName [07:15:18]name=ofd_packets/00228086 [07:15:18]OFD Sender: To server: pG, [07:15:18]CommunicateWithHost lk.salyk.kg:30040 [07:15:18]ConnectInit lk.salyk.kg [07:15:18]written 0, free lines is 4095 [07:15:19]Write to MH i2c: 01 00 00 92 11 A3 [07:15:19]Write i2c OK [07:15:19]MH_I2C_Read... [07:15:19]Read from MH i2c: 01 [07:15:19]MH_I2C_Read... [07:15:19]Read from MH i2c: 01 07 00 [07:15:19]MH_I2C_Read... [07:15:19]Read from MH i2c: 01 07 00 92 11 00 00 00 00 00 95 0C 4B [07:15:19]RasterBufferAndPrint [07:15:19]line [07:15:19]line [07:15:19]line [07:15:19]line [07:15:19]line [07:15:19]written 0, free lines is 3225 [07:15:19]MH_Cut [07:15:19]Write to MH i2c: D1 01 00 99 11 01 7C [07:15:19]Write i2c OK [07:15:19]MH_I2C_Read... [07:15:19]Read from MH i2c: D1 [07:15:19]MH_I2C_Read... [07:15:19]Read from MH i2c: D1 01 00 [07:15:19]MH_I2C_Read... [07:15:19]Read from MH i2c: D1 01 00 99 11 00 7B [07:15:19]Write to MH i2c: 01 00 00 9A 11 AB [07:15:19]Write i2c OK [07:15:19]MH_I2C_Read... [07:15:20]*** Cut start [07:15:20]*** Partial cut [07:15:20]*** CUTSNS_PIN = 1 [07:15:20]*** CUTSNS_PIN = 0 [07:15:20]*** Brake cut motor [07:15:20]Read from MH i2c: 01 [07:15:20]MH_I2C_Read... [07:15:20]*** Stop cut motor [07:15:20]*** Cut end [07:15:20]Read from MH i2c: 01 07 00 [07:15:20]MH_I2C_Read... [07:15:20]Read from MH i2c: 01 07 00 9A 11 00 00 00 00 00 FF 0F C0 [07:15:20]process_action close_receipt done [07:15:20]requested_data is exist [07:15:20]produce_requested_data [07:15:20]requested_item fm.sn is exist - process it [07:15:20]wFMCommunicate request_size=4 [07:15:20]MH_SAM_APDU [07:15:20]CAPDU: 80 11 00 00 [07:15:20]Write to MH i2c: E2 08 00 9B 11 80 11 00 00 00 00 00 00 26 [07:15:20]Write i2c OK [07:15:20]MH_I2C_Read... [07:15:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:15:21]Read from MH i2c: E2 [07:15:21]MH_I2C_Read... [07:15:21]Read from MH i2c: E2 17 00 [07:15:21]MH_I2C_Read... [07:15:21]Read from MH i2c: E2 17 00 9B 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7D [07:15:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:15:21]wFMCommunicate OK [07:15:21]requested_item fd.num is exist - process it [07:15:21]SAM_PROTO_GetFieldsCounters [07:15:21]wFMCommunicate request_size=4 [07:15:21]MH_SAM_APDU [07:15:21]CAPDU: 80 13 00 00 [07:15:21]Write to MH i2c: E2 08 00 9C 11 80 13 00 00 00 00 00 00 29 [07:15:21]Write i2c OK [07:15:21]MH_I2C_Read... [07:15:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:15:21]Read from MH i2c: E2 [07:15:21]MH_I2C_Read... [07:15:21]Read from MH i2c: E2 62 00 [07:15:21]MH_I2C_Read... [07:15:21]Read from MH i2c: E2 62 00 9C 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F6 7A 03 00 0E 04 04 00 17 02 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 74 [07:15:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F6 7A 03 00 0E 04 04 00 17 02 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 [07:15:21]wFMCommunicate OK [07:15:21]SAM_PROTO_GetFieldsCounters done [07:15:21]requested_item shift.num is exist - process it [07:15:21]requested_item shift.opened is exist - process it [07:15:21]req_shift_opened [07:15:21]FM_GetShiftState [07:15:21]SAM_PROTO_GetShiftState [07:15:21]wFMCommunicate request_size=4 [07:15:21]MH_SAM_APDU [07:15:21]CAPDU: 80 13 01 00 [07:15:21]Write to MH i2c: E2 08 00 9D 11 80 13 01 00 00 00 00 00 2B [07:15:21]Write i2c OK [07:15:21]MH_I2C_Read... [07:15:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:15:21]Read from MH i2c: E2 [07:15:21]MH_I2C_Read... [07:15:21]Read from MH i2c: E2 0E 00 [07:15:21]MH_I2C_Read... [07:15:21]Read from MH i2c: E2 0E 00 9D 11 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 F2 [07:15:21]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [07:15:21]wFMCommunicate OK [07:15:21]SAM_PROTO_GetShiftState done [07:15:21]FM_GetShiftState done [07:15:21]req_shift_opened done [07:15:21]requested_item shift.open_date is exist - process it [07:15:21]req_shift_open_date [07:15:21]req_shift_open_date done [07:15:21]produce_requested_data done [07:15:21]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228086,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [07:15:21]process_action_free close_receipt [07:15:21]json_value_free [07:15:21]json_value_free done [07:15:21]process_json_proto returns [07:15:21]Send response to host [07:15:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228086,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [07:15:21]free response buf [07:15:21]execute_script done [07:15:21]execute_script returns [07:15:21]free content buf [07:15:21]Sock 10.Close socket [07:15:21]Sock 10.Thread stoped [07:15:23]ConnectInit Can't take IP for lk.salyk.kg [07:15:23]CommunicateWithHost connect error [07:15:23]CommunicateWithHost err = -1 [07:15:23]OFD Sender: Server communicate error [07:15:28]OFD Sender: Processing packet 228086 [packets to send 38, broken 37] [07:15:28]ProducePacketName [07:15:28]name=ofd_packets/00228086 [07:15:28]OFD Sender: To server: pG, [07:15:28]CommunicateWithHost lk.salyk.kg:30040 [07:15:28]ConnectInit lk.salyk.kg [07:15:33]ConnectInit Can't take IP for lk.salyk.kg [07:15:33]CommunicateWithHost connect error [07:15:33]CommunicateWithHost err = -1 [07:15:33]OFD Sender: Server communicate error [07:15:38]OFD Sender: Processing packet 228086 [packets to send 38, broken 37] [07:15:38]ProducePacketName [07:15:38]name=ofd_packets/00228086 [07:15:38]OFD Sender: To server: pG, [07:15:38]CommunicateWithHost lk.salyk.kg:30040 [07:15:38]ConnectInit lk.salyk.kg [07:15:43]ConnectInit Can't take IP for lk.salyk.kg [07:15:43]CommunicateWithHost connect error [07:15:43]CommunicateWithHost err = -1 [07:15:43]OFD Sender: Server communicate error [07:15:48]OFD Sender: Processing packet 228086 [packets to send 38, broken 37] [07:15:48]ProducePacketName [07:15:48]name=ofd_packets/00228086 [07:15:48]OFD Sender: To server: pG, [07:15:48]CommunicateWithHost lk.salyk.kg:30040 [07:15:48]ConnectInit lk.salyk.kg [07:15:53]ConnectInit Can't take IP for lk.salyk.kg [07:15:53]CommunicateWithHost connect error [07:15:53]CommunicateWithHost err = -1 [07:15:53]OFD Sender: Server communicate error [07:15:58]OFD Sender: Processing packet 228086 [packets to send 38, broken 37] [07:15:58]ProducePacketName [07:15:58]name=ofd_packets/00228086 [07:15:58]OFD Sender: To server: pG, [07:15:58]CommunicateWithHost lk.salyk.kg:30040 [07:15:58]ConnectInit lk.salyk.kg [07:16:03]ConnectInit Can't take IP for lk.salyk.kg [07:16:03]CommunicateWithHost connect error [07:16:03]CommunicateWithHost err = -1 [07:16:03]OFD Sender: Server communicate error [07:16:06]recv_with_timeout no data received [07:16:08]OFD Sender: Processing packet 228086 [packets to send 38, broken 37] [07:16:08]ProducePacketName [07:16:08]name=ofd_packets/00228086 [07:16:08]OFD Sender: To server: pG, [07:16:08]CommunicateWithHost lk.salyk.kg:30040 [07:16:08]ConnectInit lk.salyk.kg [07:16:13]ConnectInit Can't take IP for lk.salyk.kg [07:16:13]CommunicateWithHost connect error [07:16:13]CommunicateWithHost err = -1 [07:16:13]OFD Sender: Server communicate error [07:16:18]OFD Sender: Processing packet 228086 [packets to send 38, broken 37] [07:16:18]ProducePacketName [07:16:18]name=ofd_packets/00228086 [07:16:18]OFD Sender: To server: pG, [07:16:18]CommunicateWithHost lk.salyk.kg:30040 [07:16:18]ConnectInit lk.salyk.kg [07:16:23]ConnectInit Can't take IP for lk.salyk.kg [07:16:23]CommunicateWithHost connect error [07:16:23]CommunicateWithHost err = -1 [07:16:23]OFD Sender: Server communicate error [07:16:25]recv_with_timeout no data received [07:16:28]OFD Sender: Processing packet 228086 [packets to send 38, broken 37] [07:16:28]ProducePacketName [07:16:28]name=ofd_packets/00228086 [07:16:28]OFD Sender: To server: pG, [07:16:28]CommunicateWithHost lk.salyk.kg:30040 [07:16:28]ConnectInit lk.salyk.kg [07:16:33]ConnectInit Can't take IP for lk.salyk.kg [07:16:33]CommunicateWithHost connect error [07:16:33]CommunicateWithHost err = -1 [07:16:33]OFD Sender: Server communicate error [07:16:38]OFD Sender: Processing packet 228086 [packets to send 38, broken 37] [07:16:38]ProducePacketName [07:16:38]name=ofd_packets/00228086 [07:16:38]OFD Sender: To server: pG, [07:16:38]CommunicateWithHost lk.salyk.kg:30040 [07:16:38]ConnectInit lk.salyk.kg [07:16:43]ConnectInit Can't take IP for lk.salyk.kg [07:16:43]CommunicateWithHost connect error [07:16:43]CommunicateWithHost err = -1 [07:16:43]OFD Sender: Server communicate error [07:16:48]OFD Sender: Processing packet 228086 [packets to send 38, broken 37] [07:16:48]ProducePacketName [07:16:48]name=ofd_packets/00228086 [07:16:48]OFD Sender: To server: pG, [07:16:48]CommunicateWithHost lk.salyk.kg:30040 [07:16:48]ConnectInit lk.salyk.kg [07:16:49]Connected sock=7 [07:16:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 16 63 00 01 2E 60 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 07 51 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F6 7A 03 00 35 04 06 00 8C 4D 49 B2 E1 F2 9D AB 35 1D 22 65 DD 96 [07:16:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 45 37 47 00 41 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F6 7A 03 00 F4 03 04 00 5B FC 16 67 B6 04 01 00 00 79 54 0A 52 04 60 AE 73 [07:16:50]CommunicateWithHost err = 0 [07:16:50]CheckOFDResponse [07:16:50]1017 (14) - 77093643461234 [07:16:50]1041 (16) - 0000000000871839 [07:16:50]1040 (4) - 228086 [07:16:50]1012 (4) - 22.10.2024 01:14 [07:16:50]1206 (1) - 0 [07:16:50]OFD Sender: Remove packet 228086 [07:16:50]ProducePacketName [07:16:50]name=ofd_packets/00228086 [07:16:50]NVStorageDeleteData [07:16:50]OFD Sender: No OFD packet to send [07:16:55]OFD Sender: No OFD packet to send [07:17:00]OFD Sender: No OFD packet to send [07:17:05]OFD Sender: No OFD packet to send [07:17:10]OFD Sender: No OFD packet to send [07:17:15]OFD Sender: No OFD packet to send [07:17:20]OFD Sender: No OFD packet to send [07:17:25]OFD Sender: No OFD packet to send [07:17:30]OFD Sender: No OFD packet to send [07:17:35]OFD Sender: No OFD packet to send [07:17:40]OFD Sender: No OFD packet to send [07:17:45]OFD Sender: No OFD packet to send [07:17:50]OFD Sender: No OFD packet to send [07:17:55]OFD Sender: No OFD packet to send [07:18:00]OFD Sender: No OFD packet to send [07:18:05]OFD Sender: No OFD packet to send [07:18:10]OFD Sender: No OFD packet to send [07:18: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:01]accept exits with 9 [07:20:01]New connection [07:20:01]New thread 3066994020 created [07:20:01]Thread 3067137380 joined [07:20:01]Waiting for new connection... [07:20:01] Sock 9.Parse request [07:20:01]Sock 9.Check first char [07:20:01]Sock 9.First char is OK [07:20:01]request: POST /json_proto HTTP/1.0 [07:20:01]Method: POST [07:20:01]URL: /json_proto [07:20:01]Method is POST - this is cgi request [07:20:01]url: /json_proto [07:20:01]query_string will be loaded in cgi processing [07:20:01]execute_cgi json_proto POST (null) [07:20:01]execute_cgi path=json_proto method=POST [07:20:01]POST find Content-Length [07:20:01]Host: 172.17.44.195:8080 [07:20:01]Content-Length: 680 [07:20:01]Content-Type: application/json [07:20:01] [07:20:01]POST finish read [07:20:01]Found Content-Length = 680 [07:20:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:20:01]execute_script... [07:20: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)1964292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:20:01]POST & json_proto [07:20:01]process_json_proto [07:20:01]json parsed OK: [07:20:01]protocol is kg_v1.0 [07:20:01]action value=close_receipt [07:20:01]process_action close_receipt [07:20:01]cmd_close_receipt [07:20:01]MH_GetDate [07:20:01]Write to MH i2c: F0 00 00 9E 11 9E [07:20:01]Write i2c OK [07:20:01]MH_I2C_Read... [07:20:01]Read from MH i2c: F0 [07:20:01]MH_I2C_Read... [07:20:01]Read from MH i2c: F0 09 00 [07:20:01]MH_I2C_Read... [07:20:01]Read from MH i2c: F0 09 00 9E 11 00 24 52 17 67 82 C9 CF 66 1B [07:20:01]GetLastDocTimeStamp 1729581319 [07:20:01]current date 1729581604 [07:20:01]FM_GetShiftState [07:20:01]SAM_PROTO_GetShiftState [07:20:01]wFMCommunicate request_size=4 [07:20:01]MH_SAM_APDU [07:20:01]CAPDU: 80 13 01 00 [07:20:01]Write to MH i2c: E2 08 00 9F 11 80 13 01 00 00 00 00 00 2D [07:20:01]Write i2c OK [07:20:01]MH_I2C_Read... [07:20:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:20:01]Read from MH i2c: E2 [07:20:01]MH_I2C_Read... [07:20:01]Read from MH i2c: E2 0E 00 [07:20:01]MH_I2C_Read... [07:20:01]Read from MH i2c: E2 0E 00 9F 11 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 F4 [07:20:01]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [07:20:01]wFMCommunicate OK [07:20:01]SAM_PROTO_GetShiftState done [07:20:01]FM_GetShiftState done [07:20:01]opened in 1729555538 [07:20:01]opened+sec_in_day 1729641938 [07:20:01]quantity*price = 200025 [07:20:01]sum+1 = 200026 [07:20:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 51 22.10.2024 07:20 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228087 ФПД: 114765907144605 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T072004&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228087&fm=114765907144605&tin=02508201610067®Number=0000000000091685&sum=200000 [07:20:02]StoreToDocumentArchive [07:20:02]shift 535 fd 228087 [07:20:02]save to /storage/0535/doc_00228087 [07:20:02]save last doc name /storage/0535/doc_00228087 to /storage/kkm_last_doc_name [07:20:02]save OK [07:20:02]Clear old archive folders... [07:20:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:20:02]tlvbuf is 008696B0 [07:20:02]SAM_PROTO_ClearQueue [07:20:02]wFMCommunicate request_size=4 [07:20:02]MH_SAM_APDU [07:20:02]CAPDU: 80 09 00 00 [07:20:02]Write to MH i2c: E2 08 00 AC 11 80 09 00 00 00 00 00 00 2F [07:20:02]Write i2c OK [07:20:02]MH_I2C_Read... [07:20:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:20:02]Read from MH i2c: E2 [07:20:02]MH_I2C_Read... [07:20:02]Read from MH i2c: E2 03 00 [07:20:02]MH_I2C_Read... [07:20:02]Read from MH i2c: E2 03 00 AC 11 00 90 00 31 [07:20:02]RAPDU: 90 00 [07:20:02]wFMCommunicate OK [07:20:02]SAM_PROTO_ClearQueue done [07:20:02]KKMCreateOFDPacket [07:20:02]OFDProtocolAddRootSTLVToBuf [07:20:02]FM_MakeSignedData [07:20:02]FM_MakeSignedData [07:20:02]SAM_PROTO_SignData [07:20:02]wFMCommunicate request_size=4 [07:20:02]MH_SAM_APDU [07:20:02]CAPDU: 80 0D 01 02 [07:20:02]Write to MH i2c: E2 08 00 AD 11 80 0D 01 02 00 00 00 00 37 [07:20:02]Write i2c OK [07:20:02]MH_I2C_Read... [07:20:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:20:02]Read from MH i2c: E2 [07:20:02]MH_I2C_Read... [07:20:02]Read from MH i2c: E2 03 00 [07:20:02]MH_I2C_Read... [07:20:02]Read from MH i2c: E2 03 00 AD 11 00 90 00 32 [07:20:02]RAPDU: 90 00 [07:20:02]wFMCommunicate OK [07:20:02]wFMCommunicate request_size=255 [07:20:02]MH_SAM_APDU [07:20: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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 33 00 00 00 F4 03 04 00 24 52 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F7 7A 03 00 35 04 06 00 68 61 05 20 [07:20:02]Write to MH i2c: E2 02 01 AE 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 33 00 00 00 F4 03 04 00 24 52 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F7 7A 03 00 35 04 06 00 68 61 05 20 00 00 54 [07:20:02]Write i2c OK [07:20:02]MH_I2C_Read... [07:20:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:20:02]Read from MH i2c: E2 [07:20:02]MH_I2C_Read... [07:20:02]Read from MH i2c: E2 03 00 [07:20:02]MH_I2C_Read... [07:20:02]Read from MH i2c: E2 03 00 AE 11 00 90 00 33 [07:20:02]RAPDU: 90 00 [07:20:02]wFMCommunicate OK [07:20:02]wFMCommunicate request_size=7 [07:20:02]MH_SAM_APDU [07:20:02]CAPDU: 80 0D 02 02 02 AF 9D [07:20:02]Write to MH i2c: E2 0A 00 AF 11 80 0D 02 02 02 00 AF 9D 00 00 8A [07:20:02]Write i2c OK [07:20:02]MH_I2C_Read... [07:20:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:20:03]Read from MH i2c: E2 [07:20:03]MH_I2C_Read... [07:20:03]Read from MH i2c: E2 03 00 [07:20:03]MH_I2C_Read... [07:20:03]Read from MH i2c: E2 03 00 AF 11 00 90 00 34 [07:20:03]RAPDU: 90 00 [07:20:03]wFMCommunicate OK [07:20:03]wFMCommunicate request_size=4 [07:20:03]MH_SAM_APDU [07:20:03]CAPDU: 80 0D 03 02 [07:20:03]Write to MH i2c: E2 08 00 B0 11 80 0D 03 02 00 00 00 00 3C [07:20:03]Write i2c OK [07:20:03]MH_I2C_Read... [07:20:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:20:03]Read from MH i2c: E2 [07:20:03]MH_I2C_Read... [07:20:03]Read from MH i2c: E2 0B 00 [07:20:03]MH_I2C_Read... [07:20:03]Read from MH i2c: E2 0B 00 B0 11 00 57 B0 7C 40 8A 71 17 94 90 00 A6 [07:20:03]RAPDU: 57 B0 7C 40 8A 71 17 94 90 00 [07:20:03]wFMCommunicate OK [07:20:03]SAM_PROTO_SignData done [07:20:03]FM_MakeSignedData done [07:20:03]CreateOFDProtocolMessage [07:20:03]wFMCommunicate request_size=4 [07:20:03]MH_SAM_APDU [07:20:03]CAPDU: 80 11 00 00 [07:20:03]Write to MH i2c: E2 08 00 B1 11 80 11 00 00 00 00 00 00 3C [07:20:03]Write i2c OK [07:20:03]MH_I2C_Read... [07:20:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:20:03]Read from MH i2c: E2 [07:20:03]MH_I2C_Read... [07:20:03]Read from MH i2c: E2 17 00 [07:20:03]MH_I2C_Read... [07:20:03]Read from MH i2c: E2 17 00 B1 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 93 [07:20:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:20:03]wFMCommunicate OK [07:20:03]CreateOFDProtocolMessage done [07:20:03]OFDSenderStorePacket 228087 [07:20:03]StoreOFDPacket docnum=228087 [07:20:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 EE D8 04 01 31 43 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 33 00 00 00 F4 03 04 00 24 52 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F7 7A 03 00 35 04 06 00 68 61 05 20 AF 9D 57 B0 7C 40 8A 71 17 94 [07:20:03]CheckFolder [07:20:03]dirname=/storage/ofd_packets [07:20:03]CheckFolder done [07:20:03]ProducePacketName [07:20:03]name=ofd_packets/00228087 [07:20:03]NVStorageSaveData ofd_packets/00228087 [07:20:03]File name is /storage/ofd_packets/00228087 [07:20:03]Write 298 bytes [07:20:03]NVStorageSaveData done [07:20:03]OFDSenderStorePacket done [07:20:03]KKMCreateOFDPacket done [07:20:03]NVStorageSaveData kkm_last_timestamp [07:20:03]File name is /storage/kkm_last_timestamp [07:20:03]Write 4 bytes [07:20:03]NVStorageSaveData done [07:20:03]ExternCall_PrintAddStr [07:20:03]wPrintStart [07:20:03]Write to MH i2c: 01 00 00 B2 11 C3 [07:20:03]Write i2c OK [07:20:03]MH_I2C_Read... [07:20:03]Read from MH i2c: 01 [07:20:03]MH_I2C_Read... [07:20:03]Read from MH i2c: 01 07 00 [07:20:03]MH_I2C_Read... [07:20:03]Read from MH i2c: 01 07 00 B2 11 00 00 00 00 00 FF 0F D8 [07:20:03]RasterBufferAndPrint [07:20:03]line Счет N : (1)1964292 [07:20:03]line ИНН: 02508201610067 [07:20:03]line Контрольно-Кассовый Чек [07:20:03]line ПРОДАЖА [07:20:03]line ТРК (МРК, ГНК) : 31 [07:20:03]line Товар: 2710194210 [07:20:03]line ДТ-К-5 [07:20:03]line 26.250 * 76.20 [07:20:03]line = 2000.25 [07:20:03]line НДС 12% НСП 1% [07:20:03]line > о реализуемом товаре [07:20:03]line ОКРУГЛЕНИЕ: -0.25 [07:20:03]line ИТОГО: 2000.00 [07:20:03]line Внесено: 2000.00 [07:20:03]line СДАЧА: 0.00 [07:20:03]line НСП 1% : 17.70 [07:20:03]line НДС 12% : 212.42 [07:20:03]line Наличными: 2000.00 [07:20:03]line Безнал.: 0.00 [07:20:03]line Место: АЗС № 133 "Партнер Нефть" [07:20:03]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [07:20:03]line СНО: Общий режим [07:20:03]line Чек 51 22.10.2024 07:20 [07:20:03]line Смена: 535 ФФД: 1.0 [07:20:03]line ЗНМ: 0300000091 [07:20:03]line РНМ: 0000000000091685 [07:20:03]line Версия ККМ: 001 [07:20:03]line ФМ: 0000000000871839 [07:20:03]line ФД: 228087 [07:20:03]line ФПД: 114765907144605 [07:20:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T072004&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228087&fm=114765907144605&tin=02508201610067®Number=0000000000091685&sum=200000 [07:20:03]OFD Sender: Processing packet 228087 [packets to send 38, broken 37] [07:20:03]ProducePacketName [07:20:03]name=ofd_packets/00228087 [07:20:03]OFD Sender: To server: pG, [07:20:03]CommunicateWithHost lk.salyk.kg:30040 [07:20:03]ConnectInit lk.salyk.kg [07:20:03]written 0, free lines is 4095 [07:20:03]Connected sock=10 [07:20:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 EE D8 04 01 31 43 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 33 00 00 00 F4 03 04 00 24 52 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F7 7A 03 00 35 04 06 00 68 61 05 20 AF 9D 57 B0 7C 40 8A 71 17 94 [07:20:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 48 00 47 00 01 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F7 7A 03 00 F4 03 04 00 1D FD 16 67 B6 04 01 00 00 C8 86 D1 A8 3B C2 E0 90 [07:20:03]CommunicateWithHost err = 0 [07:20:03]CheckOFDResponse [07:20:03]1017 (14) - 77093643461234 [07:20:03]1041 (16) - 0000000000871839 [07:20:03]1040 (4) - 228087 [07:20:03]1012 (4) - 22.10.2024 01:17 [07:20:03]1206 (1) - 0 [07:20:03]OFD Sender: Remove packet 228087 [07:20:03]ProducePacketName [07:20:03]name=ofd_packets/00228087 [07:20:03]NVStorageDeleteData [07:20:03]Write to MH i2c: 01 00 00 DC 11 ED [07:20:03]Write i2c OK [07:20:03]MH_I2C_Read... [07:20:03]Read from MH i2c: 01 [07:20:03]MH_I2C_Read... [07:20:03]Read from MH i2c: 01 07 00 [07:20:03]MH_I2C_Read... [07:20:03]Read from MH i2c: 01 07 00 DC 11 00 00 00 00 00 A2 0C A2 [07:20:03]RasterBufferAndPrint [07:20:03]line [07:20:03]line [07:20:03]line [07:20:03]line [07:20:03]line [07:20:03]written 0, free lines is 3238 [07:20:03]MH_Cut [07:20:03]Write to MH i2c: D1 01 00 E3 11 01 C6 [07:20:03]Write i2c OK [07:20:03]MH_I2C_Read... [07:20:03]Read from MH i2c: D1 [07:20:03]MH_I2C_Read... [07:20:03]Read from MH i2c: D1 01 00 [07:20:03]MH_I2C_Read... [07:20:03]Read from MH i2c: D1 01 00 E3 11 00 C5 [07:20:03]Write to MH i2c: 01 00 00 E4 11 F5 [07:20:03]Write i2c OK [07:20:03]MH_I2C_Read... [07:20:04]OFD Sender: No OFD packet to send [07:20:04]*** Cut start [07:20:04]*** Partial cut [07:20:04]*** CUTSNS_PIN = 1 [07:20:04]*** CUTSNS_PIN = 0 [07:20:05]*** Brake cut motor [07:20:05]Read from MH i2c: 01 [07:20:05]MH_I2C_Read... [07:20:05]*** Stop cut motor [07:20:05]*** Cut end [07:20:05]Read from MH i2c: 01 07 00 [07:20:05]MH_I2C_Read... [07:20:05]Read from MH i2c: 01 07 00 E4 11 00 00 00 00 00 FF 0F 0A [07:20:05]process_action close_receipt done [07:20:05]requested_data is exist [07:20:05]produce_requested_data [07:20:05]requested_item fm.sn is exist - process it [07:20:05]wFMCommunicate request_size=4 [07:20:05]MH_SAM_APDU [07:20:05]CAPDU: 80 11 00 00 [07:20:05]Write to MH i2c: E2 08 00 E5 11 80 11 00 00 00 00 00 00 70 [07:20:05]Write i2c OK [07:20:05]MH_I2C_Read... [07:20:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:20:05]Read from MH i2c: E2 [07:20:05]MH_I2C_Read... [07:20:05]Read from MH i2c: E2 17 00 [07:20:05]MH_I2C_Read... [07:20:05]Read from MH i2c: E2 17 00 E5 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C7 [07:20:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:20:05]wFMCommunicate OK [07:20:05]requested_item fd.num is exist - process it [07:20:05]SAM_PROTO_GetFieldsCounters [07:20:05]wFMCommunicate request_size=4 [07:20:05]MH_SAM_APDU [07:20:05]CAPDU: 80 13 00 00 [07:20:05]Write to MH i2c: E2 08 00 E6 11 80 13 00 00 00 00 00 00 73 [07:20:05]Write i2c OK [07:20:05]MH_I2C_Read... [07:20:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:20:05]Read from MH i2c: E2 [07:20:05]MH_I2C_Read... [07:20:05]Read from MH i2c: E2 62 00 [07:20:05]MH_I2C_Read... [07:20:05]Read from MH i2c: E2 62 00 E6 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F7 7A 03 00 0E 04 04 00 17 02 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 C2 [07:20:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F7 7A 03 00 0E 04 04 00 17 02 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 [07:20:05]wFMCommunicate OK [07:20:05]SAM_PROTO_GetFieldsCounters done [07:20:05]requested_item shift.num is exist - process it [07:20:05]requested_item shift.opened is exist - process it [07:20:05]req_shift_opened [07:20:05]FM_GetShiftState [07:20:05]SAM_PROTO_GetShiftState [07:20:05]wFMCommunicate request_size=4 [07:20:05]MH_SAM_APDU [07:20:05]CAPDU: 80 13 01 00 [07:20:05]Write to MH i2c: E2 08 00 E7 11 80 13 01 00 00 00 00 00 75 [07:20:05]Write i2c OK [07:20:05]MH_I2C_Read... [07:20:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:20:05]Read from MH i2c: E2 [07:20:05]MH_I2C_Read... [07:20:05]Read from MH i2c: E2 0E 00 [07:20:05]MH_I2C_Read... [07:20:05]Read from MH i2c: E2 0E 00 E7 11 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 3C [07:20:05]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [07:20:05]wFMCommunicate OK [07:20:05]SAM_PROTO_GetShiftState done [07:20:05]FM_GetShiftState done [07:20:05]req_shift_opened done [07:20:05]requested_item shift.open_date is exist - process it [07:20:05]req_shift_open_date [07:20:05]req_shift_open_date done [07:20:05]produce_requested_data done [07:20:05]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228087,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [07:20:05]process_action_free close_receipt [07:20:05]json_value_free [07:20:05]json_value_free done [07:20:05]process_json_proto returns [07:20:05]Send response to host [07:20:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228087,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [07:20:05]free response buf [07:20:05]execute_script done [07:20:05]execute_script returns [07:20:05]free content buf [07:20:05]Sock 9.Close socket [07:20:05]Sock 9.Thread stoped [07:20:09]OFD Sender: No OFD packet to send [07:20:14]OFD Sender: No OFD packet to send [07:20:19]OFD Sender: No OFD packet to send [07:20:24]OFD Sender: No OFD packet to send [07:20:29]OFD Sender: No OFD packet to send [07:20:33]accept exits with 7 [07:20:33]New connection [07:20:33]New thread 3067137380 created [07:20:33]Thread 3066994020 joined [07:20:33]Waiting for new connection... [07:20:33] Sock 7.Parse request [07:20:33]Sock 7.Check first char [07:20:33]Sock 7.First char is OK [07:20:33]request: POST /json_proto HTTP/1.0 [07:20:33]Method: POST [07:20:33]URL: /json_proto [07:20:33]Method is POST - this is cgi request [07:20:33]url: /json_proto [07:20:33]query_string will be loaded in cgi processing [07:20:33]execute_cgi json_proto POST (null) [07:20:33]execute_cgi path=json_proto method=POST [07:20:33]POST find Content-Length [07:20:33]Host: 172.17.44.195:8080 [07:20:33]Content-Length: 678 [07:20:33]Content-Type: application/json [07:20:33] [07:20:33]POST finish read [07:20:33]Found Content-Length = 678 [07:20:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964293", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:20:33]execute_script... [07:20: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)1964293", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:20:33]POST & json_proto [07:20:33]process_json_proto [07:20:33]json parsed OK: [07:20:33]protocol is kg_v1.0 [07:20:33]action value=close_receipt [07:20:33]process_action close_receipt [07:20:33]cmd_close_receipt [07:20:33]MH_GetDate [07:20:33]Write to MH i2c: F0 00 00 E8 11 E8 [07:20:33]Write i2c OK [07:20:33]MH_I2C_Read... [07:20:33]Read from MH i2c: F0 [07:20:33]MH_I2C_Read... [07:20:33]Read from MH i2c: F0 09 00 [07:20:33]MH_I2C_Read... [07:20:33]Read from MH i2c: F0 09 00 E8 11 00 44 52 17 67 82 C9 CF 66 85 [07:20:33]GetLastDocTimeStamp 1729581604 [07:20:33]current date 1729581636 [07:20:33]FM_GetShiftState [07:20:33]SAM_PROTO_GetShiftState [07:20:33]wFMCommunicate request_size=4 [07:20:33]MH_SAM_APDU [07:20:33]CAPDU: 80 13 01 00 [07:20:33]Write to MH i2c: E2 08 00 E9 11 80 13 01 00 00 00 00 00 77 [07:20:33]Write i2c OK [07:20:33]MH_I2C_Read... [07:20:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:20:33]Read from MH i2c: E2 [07:20:33]MH_I2C_Read... [07:20:33]Read from MH i2c: E2 0E 00 [07:20:33]MH_I2C_Read... [07:20:33]Read from MH i2c: E2 0E 00 E9 11 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 3E [07:20:33]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [07:20:33]wFMCommunicate OK [07:20:33]SAM_PROTO_GetShiftState done [07:20:33]FM_GetShiftState done [07:20:33]opened in 1729555538 [07:20:33]opened+sec_in_day 1729641938 [07:20:33]quantity*price = 50041 [07:20:33]sum+1 = 50042 [07:20:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 52 22.10.2024 07:20 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228088 ФПД: 96307303151413 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T072036&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228088&fm=96307303151413&tin=02508201610067®Number=0000000000091685&sum=50000 [07:20:34]StoreToDocumentArchive [07:20:34]shift 535 fd 228088 [07:20:34]save to /storage/0535/doc_00228088 [07:20:34]save last doc name /storage/0535/doc_00228088 to /storage/kkm_last_doc_name [07:20:34]save OK [07:20:34]Clear old archive folders... [07:20:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:20:34]tlvbuf is 00869990 [07:20:34]SAM_PROTO_ClearQueue [07:20:34]wFMCommunicate request_size=4 [07:20:34]MH_SAM_APDU [07:20:34]CAPDU: 80 09 00 00 [07:20:34]Write to MH i2c: E2 08 00 F6 11 80 09 00 00 00 00 00 00 79 [07:20:34]Write i2c OK [07:20:34]MH_I2C_Read... [07:20:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:20:35]Read from MH i2c: E2 [07:20:35]MH_I2C_Read... [07:20:35]Read from MH i2c: E2 03 00 [07:20:35]MH_I2C_Read... [07:20:35]Read from MH i2c: E2 03 00 F6 11 00 90 00 7B [07:20:35]RAPDU: 90 00 [07:20:35]wFMCommunicate OK [07:20:35]SAM_PROTO_ClearQueue done [07:20:35]KKMCreateOFDPacket [07:20:35]OFDProtocolAddRootSTLVToBuf [07:20:35]FM_MakeSignedData [07:20:35]FM_MakeSignedData [07:20:35]SAM_PROTO_SignData [07:20:35]wFMCommunicate request_size=4 [07:20:35]MH_SAM_APDU [07:20:35]CAPDU: 80 0D 01 02 [07:20:35]Write to MH i2c: E2 08 00 F7 11 80 0D 01 02 00 00 00 00 81 [07:20:35]Write i2c OK [07:20:35]MH_I2C_Read... [07:20:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:20:35]Read from MH i2c: E2 [07:20:35]MH_I2C_Read... [07:20:35]Read from MH i2c: E2 03 00 [07:20:35]MH_I2C_Read... [07:20:35]Read from MH i2c: E2 03 00 F7 11 00 90 00 7C [07:20:35]RAPDU: 90 00 [07:20:35]wFMCommunicate OK [07:20:35]wFMCommunicate request_size=255 [07:20:35]MH_SAM_APDU [07:20: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 44 52 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F8 7A 03 00 35 04 06 00 57 [07:20:35]Write to MH i2c: E2 02 01 F8 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 44 52 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F8 7A 03 00 35 04 06 00 57 00 00 45 [07:20:35]Write i2c OK [07:20:35]MH_I2C_Read... [07:20:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:20:35]Read from MH i2c: E2 [07:20:35]MH_I2C_Read... [07:20:35]Read from MH i2c: E2 03 00 [07:20:35]MH_I2C_Read... [07:20:35]Read from MH i2c: E2 03 00 F8 11 00 90 00 7D [07:20:35]RAPDU: 90 00 [07:20:35]wFMCommunicate OK [07:20:35]wFMCommunicate request_size=10 [07:20:35]MH_SAM_APDU [07:20:35]CAPDU: 80 0D 02 02 05 97 4A 97 F7 35 [07:20:35]Write to MH i2c: E2 0D 00 F9 11 80 0D 02 02 05 00 97 4A 97 F7 35 00 00 32 [07:20:35]Write i2c OK [07:20:35]MH_I2C_Read... [07:20:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:20:35]Read from MH i2c: E2 [07:20:35]MH_I2C_Read... [07:20:35]Read from MH i2c: E2 03 00 [07:20:35]MH_I2C_Read... [07:20:35]Read from MH i2c: E2 03 00 F9 11 00 90 00 7E [07:20:35]RAPDU: 90 00 [07:20:35]wFMCommunicate OK [07:20:35]wFMCommunicate request_size=4 [07:20:35]MH_SAM_APDU [07:20:35]CAPDU: 80 0D 03 02 [07:20:35]Write to MH i2c: E2 08 00 FA 11 80 0D 03 02 00 00 00 00 86 [07:20:35]Write i2c OK [07:20:35]MH_I2C_Read... [07:20:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:20:35]Read from MH i2c: E2 [07:20:35]MH_I2C_Read... [07:20:35]Read from MH i2c: E2 0B 00 [07:20:35]MH_I2C_Read... [07:20:35]Read from MH i2c: E2 0B 00 FA 11 00 D8 DA 49 C7 FE 3C E1 36 90 00 9A [07:20:35]RAPDU: D8 DA 49 C7 FE 3C E1 36 90 00 [07:20:35]wFMCommunicate OK [07:20:35]SAM_PROTO_SignData done [07:20:35]FM_MakeSignedData done [07:20:35]CreateOFDProtocolMessage [07:20:35]wFMCommunicate request_size=4 [07:20:35]MH_SAM_APDU [07:20:35]CAPDU: 80 11 00 00 [07:20:35]Write to MH i2c: E2 08 00 FB 11 80 11 00 00 00 00 00 00 86 [07:20:35]Write i2c OK [07:20:35]MH_I2C_Read... [07:20:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:20:35]Read from MH i2c: E2 [07:20:35]MH_I2C_Read... [07:20:35]Read from MH i2c: E2 17 00 [07:20:35]MH_I2C_Read... [07:20:35]Read from MH i2c: E2 17 00 FB 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DD [07:20:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:20:35]wFMCommunicate OK [07:20:35]CreateOFDProtocolMessage done [07:20:35]OFDSenderStorePacket 228088 [07:20:35]StoreOFDPacket docnum=228088 [07:20:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 1A BF 07 01 ED E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 44 52 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F8 7A 03 00 35 04 06 00 57 97 4A 97 F7 35 D8 DA 49 C7 FE 3C E1 36 [07:20:35]CheckFolder [07:20:35]dirname=/storage/ofd_packets [07:20:35]CheckFolder done [07:20:35]ProducePacketName [07:20:35]name=ofd_packets/00228088 [07:20:35]NVStorageSaveData ofd_packets/00228088 [07:20:35]File name is /storage/ofd_packets/00228088 [07:20:35]Write 301 bytes [07:20:35]NVStorageSaveData done [07:20:35]OFDSenderStorePacket done [07:20:35]KKMCreateOFDPacket done [07:20:35]NVStorageSaveData kkm_last_timestamp [07:20:35]File name is /storage/kkm_last_timestamp [07:20:35]Write 4 bytes [07:20:35]NVStorageSaveData done [07:20:35]ExternCall_PrintAddStr [07:20:35]wPrintStart [07:20:35]Write to MH i2c: 01 00 00 FC 11 0D [07:20:35]Write i2c OK [07:20:35]MH_I2C_Read... [07:20:35]Read from MH i2c: 01 [07:20:35]MH_I2C_Read... [07:20:35]Read from MH i2c: 01 07 00 [07:20:35]MH_I2C_Read... [07:20:35]Read from MH i2c: 01 07 00 FC 11 00 00 00 00 00 FF 0F 22 [07:20:35]RasterBufferAndPrint [07:20:35]line Счет N : (1)1964293 [07:20:35]line ИНН: 02508201610067 [07:20:35]line Контрольно-Кассовый Чек [07:20:35]line ПРОДАЖА [07:20:35]line ТРК (МРК, ГНК) : 53 [07:20:35]line Товар: 2710124130 [07:20:35]line Аи-92-К-5 [07:20:35]line 7.480 * 66.90 [07:20:35]line = 500.41 [07:20:35]line НДС 12% НСП 1% [07:20:35]line > о реализуемом товаре [07:20:35]line ОКРУГЛЕНИЕ: -0.41 [07:20:35]line ИТОГО: 500.00 [07:20:35]line Внесено: 500.00 [07:20:35]line СДАЧА: 0.00 [07:20:35]line НСП 1% : 4.43 [07:20:35]line НДС 12% : 53.14 [07:20:35]line Наличными: 500.00 [07:20:35]line Безнал.: 0.00 [07:20:35]line Место: АЗС № 133 "Партнер Нефть" [07:20:35]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [07:20:35]line СНО: Общий режим [07:20:35]line Чек 52 22.10.2024 07:20 [07:20:35]line Смена: 535 ФФД: 1.0 [07:20:35]line ЗНМ: 0300000091 [07:20:35]line РНМ: 0000000000091685 [07:20:35]line Версия ККМ: 001 [07:20:35]line ФМ: 0000000000871839 [07:20:35]line ФД: 228088 [07:20:35]line ФПД: 96307303151413 [07:20:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T072036&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228088&fm=96307303151413&tin=02508201610067®Number=0000000000091685&sum=50000 [07:20:35]OFD Sender: Processing packet 228088 [packets to send 38, broken 37] [07:20:35]ProducePacketName [07:20:35]name=ofd_packets/00228088 [07:20:35]OFD Sender: To server: pG, [07:20:35]CommunicateWithHost lk.salyk.kg:30040 [07:20:35]ConnectInit lk.salyk.kg [07:20:35]written 0, free lines is 4095 [07:20:35]Connected sock=10 [07:20:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 1A BF 07 01 ED E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 44 52 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F8 7A 03 00 35 04 06 00 57 97 4A 97 F7 35 D8 DA 49 C7 FE 3C E1 36 [07:20:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 DB FA 47 00 31 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F8 7A 03 00 F4 03 04 00 3D FD 16 67 B6 04 01 00 00 24 DF 5E 44 2B 96 05 1A [07:20:36]CommunicateWithHost err = 0 [07:20:36]CheckOFDResponse [07:20:36]1017 (14) - 77093643461234 [07:20:36]1041 (16) - 0000000000871839 [07:20:36]1040 (4) - 228088 [07:20:36]1012 (4) - 22.10.2024 01:17 [07:20:36]1206 (1) - 0 [07:20:36]OFD Sender: Remove packet 228088 [07:20:36]ProducePacketName [07:20:36]name=ofd_packets/00228088 [07:20:36]NVStorageDeleteData [07:20:36]Write to MH i2c: 01 00 00 26 12 38 [07:20:36]Write i2c OK [07:20:36]MH_I2C_Read... [07:20:36]Read from MH i2c: 01 [07:20:36]MH_I2C_Read... [07:20:36]Read from MH i2c: 01 07 00 [07:20:36]MH_I2C_Read... [07:20:36]Read from MH i2c: 01 07 00 26 12 00 00 00 00 00 9D 0C E8 [07:20:36]RasterBufferAndPrint [07:20:36]line [07:20:36]line [07:20:36]line [07:20:36]line [07:20:36]line [07:20:36]written 0, free lines is 3233 [07:20:36]MH_Cut [07:20:36]Write to MH i2c: D1 01 00 2D 12 01 11 [07:20:36]Write i2c OK [07:20:36]MH_I2C_Read... [07:20:36]Read from MH i2c: D1 [07:20:36]MH_I2C_Read... [07:20:36]Read from MH i2c: D1 01 00 [07:20:36]MH_I2C_Read... [07:20:36]Read from MH i2c: D1 01 00 2D 12 00 10 [07:20:36]Write to MH i2c: 01 00 00 2E 12 40 [07:20:36]Write i2c OK [07:20:36]MH_I2C_Read... [07:20:36]OFD Sender: No OFD packet to send [07:20:37]*** Cut start [07:20:37]*** Partial cut [07:20:37]*** CUTSNS_PIN = 1 [07:20:37]*** CUTSNS_PIN = 0 [07:20:37]*** Brake cut motor [07:20:37]Read from MH i2c: 01 [07:20:37]MH_I2C_Read... [07:20:37]*** Stop cut motor [07:20:37]*** Cut end [07:20:37]Read from MH i2c: 01 07 00 [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: 01 07 00 2E 12 00 00 00 00 00 FF 0F 55 [07:20:37]process_action close_receipt done [07:20:37]requested_data is exist [07:20:37]produce_requested_data [07:20:37]requested_item fm.sn is exist - process it [07:20:37]wFMCommunicate request_size=4 [07:20:37]MH_SAM_APDU [07:20:37]CAPDU: 80 11 00 00 [07:20:37]Write to MH i2c: E2 08 00 2F 12 80 11 00 00 00 00 00 00 BB [07:20:37]Write i2c OK [07:20:37]MH_I2C_Read... [07:20:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:20:37]Read from MH i2c: E2 [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: E2 17 00 [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: E2 17 00 2F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 12 [07:20:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:20:37]wFMCommunicate OK [07:20:37]requested_item fd.num is exist - process it [07:20:37]SAM_PROTO_GetFieldsCounters [07:20:37]wFMCommunicate request_size=4 [07:20:37]MH_SAM_APDU [07:20:37]CAPDU: 80 13 00 00 [07:20:37]Write to MH i2c: E2 08 00 30 12 80 13 00 00 00 00 00 00 BE [07:20:37]Write i2c OK [07:20:37]MH_I2C_Read... [07:20:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:20:38]Read from MH i2c: E2 [07:20:38]MH_I2C_Read... [07:20:38]Read from MH i2c: E2 62 00 [07:20:38]MH_I2C_Read... [07:20:38]Read from MH i2c: E2 62 00 30 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F8 7A 03 00 0E 04 04 00 17 02 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 11 [07:20:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F8 7A 03 00 0E 04 04 00 17 02 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 [07:20:38]wFMCommunicate OK [07:20:38]SAM_PROTO_GetFieldsCounters done [07:20:38]requested_item shift.num is exist - process it [07:20:38]requested_item shift.opened is exist - process it [07:20:38]req_shift_opened [07:20:38]FM_GetShiftState [07:20:38]SAM_PROTO_GetShiftState [07:20:38]wFMCommunicate request_size=4 [07:20:38]MH_SAM_APDU [07:20:38]CAPDU: 80 13 01 00 [07:20:38]Write to MH i2c: E2 08 00 31 12 80 13 01 00 00 00 00 00 C0 [07:20:38]Write i2c OK [07:20:38]MH_I2C_Read... [07:20:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:20:38]Read from MH i2c: E2 [07:20:38]MH_I2C_Read... [07:20:38]Read from MH i2c: E2 0E 00 [07:20:38]MH_I2C_Read... [07:20:38]Read from MH i2c: E2 0E 00 31 12 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 87 [07:20:38]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [07:20:38]wFMCommunicate OK [07:20:38]SAM_PROTO_GetShiftState done [07:20:38]FM_GetShiftState done [07:20:38]req_shift_opened done [07:20:38]requested_item shift.open_date is exist - process it [07:20:38]req_shift_open_date [07:20:38]req_shift_open_date done [07:20:38]produce_requested_data done [07:20:38]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228088,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [07:20:38]process_action_free close_receipt [07:20:38]json_value_free [07:20:38]json_value_free done [07:20:38]process_json_proto returns [07:20:38]Send response to host [07:20:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228088,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [07:20:38]free response buf [07:20:38]execute_script done [07:20:38]execute_script returns [07:20:38]free content buf [07:20:38]Sock 7.Close socket [07:20:38]Sock 7.Thread stoped [07:20:41]OFD Sender: No OFD packet to send [07:20:46]OFD Sender: No OFD packet to send [07:20:51]OFD Sender: No OFD packet to send [07:20:56]OFD Sender: No OFD packet to send [07:21:01]OFD Sender: No OFD packet to send [07:21:06]OFD Sender: No OFD packet to send [07:21:11]OFD Sender: No OFD packet to send [07:21:16]OFD Sender: No OFD packet to send [07:21:21]OFD Sender: No OFD packet to send [07:21:26]OFD Sender: No OFD packet to send [07:21:31]OFD Sender: No OFD packet to send [07:21:36]OFD Sender: No OFD packet to send [07:21:41]OFD Sender: No OFD packet to send [07:21:44]accept exits with 9 [07:21:44]New connection [07:21:44]New thread 3066994020 created [07:21:44]Thread 3067137380 joined [07:21:44]Waiting for new connection... [07:21:44] Sock 9.Parse request [07:21:44]Sock 9.Check first char [07:21:44]Sock 9.First char is OK [07:21:44]request: POST /json_proto HTTP/1.0 [07:21:44]Method: POST [07:21:44]URL: /json_proto [07:21:44]Method is POST - this is cgi request [07:21:44]url: /json_proto [07:21:44]query_string will be loaded in cgi processing [07:21:44]execute_cgi json_proto POST (null) [07:21:44]execute_cgi path=json_proto method=POST [07:21:44]POST find Content-Length [07:21:44]Host: 172.17.44.195:8080 [07:21:44]Content-Length: 679 [07:21:44]Content-Type: application/json [07:21:44] [07:21:44]POST finish read [07:21:44]Found Content-Length = 679 [07:21:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964294", "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" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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:21:44]execute_script... [07:21: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)1964294", "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" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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:21:44]POST & json_proto [07:21:44]process_json_proto [07:21:44]json parsed OK: [07:21:44]protocol is kg_v1.0 [07:21:44]action value=close_receipt [07:21:44]process_action close_receipt [07:21:44]cmd_close_receipt [07:21:44]MH_GetDate [07:21:44]Write to MH i2c: F0 00 00 32 12 33 [07:21:44]Write i2c OK [07:21:44]MH_I2C_Read... [07:21:44]Read from MH i2c: F0 [07:21:44]MH_I2C_Read... [07:21:44]Read from MH i2c: F0 09 00 [07:21:44]MH_I2C_Read... [07:21:44]Read from MH i2c: F0 09 00 32 12 00 8B 52 17 67 82 C9 CF 66 17 [07:21:44]GetLastDocTimeStamp 1729581636 [07:21:44]current date 1729581707 [07:21:44]FM_GetShiftState [07:21:44]SAM_PROTO_GetShiftState [07:21:44]wFMCommunicate request_size=4 [07:21:44]MH_SAM_APDU [07:21:44]CAPDU: 80 13 01 00 [07:21:44]Write to MH i2c: E2 08 00 33 12 80 13 01 00 00 00 00 00 C2 [07:21:44]Write i2c OK [07:21:44]MH_I2C_Read... [07:21:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:21:44]Read from MH i2c: E2 [07:21:44]MH_I2C_Read... [07:21:44]Read from MH i2c: E2 0E 00 [07:21:44]MH_I2C_Read... [07:21:44]Read from MH i2c: E2 0E 00 33 12 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 89 [07:21:44]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [07:21:44]wFMCommunicate OK [07:21:44]SAM_PROTO_GetShiftState done [07:21:44]FM_GetShiftState done [07:21:44]opened in 1729555538 [07:21:44]opened+sec_in_day 1729641938 [07:21:44]quantity*price = 70044 [07:21:44]sum+1 = 70045 [07:21:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 53 22.10.2024 07:21 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228089 ФПД: 27208234482409 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T072147&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228089&fm=27208234482409&tin=02508201610067®Number=0000000000091685&sum=70000 [07:21:45]StoreToDocumentArchive [07:21:45]shift 535 fd 228089 [07:21:45]save to /storage/0535/doc_00228089 [07:21:45]save last doc name /storage/0535/doc_00228089 to /storage/kkm_last_doc_name [07:21:45]save OK [07:21:45]Clear old archive folders... [07:21:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:21:45]tlvbuf is B6F07610 [07:21:45]SAM_PROTO_ClearQueue [07:21:45]wFMCommunicate request_size=4 [07:21:45]MH_SAM_APDU [07:21:45]CAPDU: 80 09 00 00 [07:21:45]Write to MH i2c: E2 08 00 40 12 80 09 00 00 00 00 00 00 C4 [07:21:45]Write i2c OK [07:21:45]MH_I2C_Read... [07:21:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:21:45]Read from MH i2c: E2 [07:21:45]MH_I2C_Read... [07:21:45]Read from MH i2c: E2 03 00 [07:21:45]MH_I2C_Read... [07:21:45]Read from MH i2c: E2 03 00 40 12 00 90 00 C6 [07:21:45]RAPDU: 90 00 [07:21:45]wFMCommunicate OK [07:21:45]SAM_PROTO_ClearQueue done [07:21:45]KKMCreateOFDPacket [07:21:45]OFDProtocolAddRootSTLVToBuf [07:21:45]FM_MakeSignedData [07:21:45]FM_MakeSignedData [07:21:45]SAM_PROTO_SignData [07:21:45]wFMCommunicate request_size=4 [07:21:45]MH_SAM_APDU [07:21:45]CAPDU: 80 0D 01 02 [07:21:45]Write to MH i2c: E2 08 00 41 12 80 0D 01 02 00 00 00 00 CC [07:21:45]Write i2c OK [07:21:45]MH_I2C_Read... [07:21:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:21:45]Read from MH i2c: E2 [07:21:45]MH_I2C_Read... [07:21:45]Read from MH i2c: E2 03 00 [07:21:45]MH_I2C_Read... [07:21:45]Read from MH i2c: E2 03 00 41 12 00 90 00 C7 [07:21:45]RAPDU: 90 00 [07:21:45]wFMCommunicate OK [07:21:45]wFMCommunicate request_size=255 [07:21:45]MH_SAM_APDU [07:21: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 35 00 00 00 F4 03 04 00 8B 52 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F9 7A 03 00 35 04 06 00 18 [07:21:45]Write to MH i2c: E2 02 01 42 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 35 00 00 00 F4 03 04 00 8B 52 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F9 7A 03 00 35 04 06 00 18 00 00 AA [07:21:45]Write i2c OK [07:21:45]MH_I2C_Read... [07:21:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:21:46]Read from MH i2c: E2 [07:21:46]MH_I2C_Read... [07:21:46]Read from MH i2c: E2 03 00 [07:21:46]MH_I2C_Read... [07:21:46]Read from MH i2c: E2 03 00 42 12 00 90 00 C8 [07:21:46]RAPDU: 90 00 [07:21:46]wFMCommunicate OK [07:21:46]wFMCommunicate request_size=10 [07:21:46]MH_SAM_APDU [07:21:46]CAPDU: 80 0D 02 02 05 BE E9 26 BA E9 [07:21:46]Write to MH i2c: E2 0D 00 43 12 80 0D 02 02 05 00 BE E9 26 BA E9 00 00 49 [07:21:46]Write i2c OK [07:21:46]MH_I2C_Read... [07:21:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:21:46]Read from MH i2c: E2 [07:21:46]MH_I2C_Read... [07:21:46]Read from MH i2c: E2 03 00 [07:21:46]MH_I2C_Read... [07:21:46]Read from MH i2c: E2 03 00 43 12 00 90 00 C9 [07:21:46]RAPDU: 90 00 [07:21:46]wFMCommunicate OK [07:21:46]wFMCommunicate request_size=4 [07:21:46]MH_SAM_APDU [07:21:46]CAPDU: 80 0D 03 02 [07:21:46]Write to MH i2c: E2 08 00 44 12 80 0D 03 02 00 00 00 00 D1 [07:21:46]Write i2c OK [07:21:46]MH_I2C_Read... [07:21:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:21:46]Read from MH i2c: E2 [07:21:46]MH_I2C_Read... [07:21:46]Read from MH i2c: E2 0B 00 [07:21:46]MH_I2C_Read... [07:21:46]Read from MH i2c: E2 0B 00 44 12 00 3E 43 EB 28 B5 23 63 1C 90 00 BD [07:21:46]RAPDU: 3E 43 EB 28 B5 23 63 1C 90 00 [07:21:46]wFMCommunicate OK [07:21:46]SAM_PROTO_SignData done [07:21:46]FM_MakeSignedData done [07:21:46]CreateOFDProtocolMessage [07:21:46]wFMCommunicate request_size=4 [07:21:46]MH_SAM_APDU [07:21:46]CAPDU: 80 11 00 00 [07:21:46]Write to MH i2c: E2 08 00 45 12 80 11 00 00 00 00 00 00 D1 [07:21:46]Write i2c OK [07:21:46]MH_I2C_Read... [07:21:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:21:46]Read from MH i2c: E2 [07:21:46]MH_I2C_Read... [07:21:46]Read from MH i2c: E2 17 00 [07:21:46]MH_I2C_Read... [07:21:46]Read from MH i2c: E2 17 00 45 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 28 [07:21:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:21:46]wFMCommunicate OK [07:21:46]CreateOFDProtocolMessage done [07:21:46]OFDSenderStorePacket 228089 [07:21:46]StoreOFDPacket docnum=228089 [07:21:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B9 BA 07 01 4F 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 35 00 00 00 F4 03 04 00 8B 52 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F9 7A 03 00 35 04 06 00 18 BE E9 26 BA E9 3E 43 EB 28 B5 23 63 1C [07:21:46]CheckFolder [07:21:46]dirname=/storage/ofd_packets [07:21:46]CheckFolder done [07:21:46]ProducePacketName [07:21:46]name=ofd_packets/00228089 [07:21:46]NVStorageSaveData ofd_packets/00228089 [07:21:46]File name is /storage/ofd_packets/00228089 [07:21:46]Write 301 bytes [07:21:46]NVStorageSaveData done [07:21:46]OFDSenderStorePacket done [07:21:46]KKMCreateOFDPacket done [07:21:46]NVStorageSaveData kkm_last_timestamp [07:21:46]File name is /storage/kkm_last_timestamp [07:21:46]Write 4 bytes [07:21:46]NVStorageSaveData done [07:21:46]ExternCall_PrintAddStr [07:21:46]wPrintStart [07:21:46]Write to MH i2c: 01 00 00 46 12 58 [07:21:46]Write i2c OK [07:21:46]MH_I2C_Read... [07:21:46]Read from MH i2c: 01 [07:21:46]MH_I2C_Read... [07:21:46]Read from MH i2c: 01 07 00 [07:21:46]MH_I2C_Read... [07:21:46]Read from MH i2c: 01 07 00 46 12 00 00 00 00 00 FF 0F 6D [07:21:46]RasterBufferAndPrint [07:21:46]line Счет N : (1)1964294 [07:21:46]line ИНН: 02508201610067 [07:21:46]line Контрольно-Кассовый Чек [07:21:46]line ПРОДАЖА [07:21:46]line ТРК (МРК, ГНК) : 63 [07:21:46]line Товар: 2710124130 [07:21:46]line Аи-92-К-5 [07:21:46]line 10.470 * 66.90 [07:21:46]line = 700.44 [07:21:46]line НДС 12% НСП 1% [07:21:46]line > о реализуемом товаре [07:21:46]line ОКРУГЛЕНИЕ: -0.44 [07:21:46]line ИТОГО: 700.00 [07:21:46]line Внесено: 700.00 [07:21:46]line СДАЧА: 0.00 [07:21:46]line НСП 1% : 6.20 [07:21:46]line НДС 12% : 74.38 [07:21:46]line Наличными: 700.00 [07:21:46]line Безнал.: 0.00 [07:21:46]line Место: АЗС № 133 "Партнер Нефть" [07:21:46]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [07:21:46]line СНО: Общий режим [07:21:46]line Чек 53 22.10.2024 07:21 [07:21:46]line Смена: 535 ФФД: 1.0 [07:21:46]line ЗНМ: 0300000091 [07:21:46]line РНМ: 0000000000091685 [07:21:46]line Версия ККМ: 001 [07:21:46]line ФМ: 0000000000871839 [07:21:46]line ФД: 228089 [07:21:46]line ФПД: 27208234482409 [07:21:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T072147&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228089&fm=27208234482409&tin=02508201610067®Number=0000000000091685&sum=70000 [07:21:46]OFD Sender: Processing packet 228089 [packets to send 38, broken 37] [07:21:46]ProducePacketName [07:21:46]name=ofd_packets/00228089 [07:21:46]OFD Sender: To server: pG, [07:21:46]CommunicateWithHost lk.salyk.kg:30040 [07:21:46]ConnectInit lk.salyk.kg [07:21:46]written 0, free lines is 4095 [07:21:46]Connected sock=10 [07:21:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B9 BA 07 01 4F 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 35 00 00 00 F4 03 04 00 8B 52 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F9 7A 03 00 35 04 06 00 18 BE E9 26 BA E9 3E 43 EB 28 B5 23 63 1C [07:21:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 CA 5C 47 00 25 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 38 37 31 38 33 39 10 04 04 00 F9 7A 03 00 F4 03 04 00 84 FD 16 67 B6 04 01 00 00 CA 17 49 5B 49 8E F1 81 [07:21:46]CommunicateWithHost err = 0 [07:21:46]CheckOFDResponse [07:21:46]1017 (14) - 77093643461234 [07:21:46]1041 (16) - 0000000000871839 [07:21:46]1040 (4) - 228089 [07:21:46]1012 (4) - 22.10.2024 01:19 [07:21:46]1206 (1) - 0 [07:21:46]OFD Sender: Remove packet 228089 [07:21:46]ProducePacketName [07:21:46]name=ofd_packets/00228089 [07:21:46]NVStorageDeleteData [07:21:47]Write to MH i2c: 01 00 00 70 12 82 [07:21:47]Write i2c OK [07:21:47]MH_I2C_Read... [07:21:47]Read from MH i2c: 01 [07:21:47]MH_I2C_Read... [07:21:47]Read from MH i2c: 01 07 00 [07:21:47]MH_I2C_Read... [07:21:47]Read from MH i2c: 01 07 00 70 12 00 00 00 00 00 A0 0C 35 [07:21:47]RasterBufferAndPrint [07:21:47]line [07:21:47]line [07:21:47]line [07:21:47]line [07:21:47]line [07:21:47]written 0, free lines is 3235 [07:21:47]MH_Cut [07:21:47]Write to MH i2c: D1 01 00 77 12 01 5B [07:21:47]Write i2c OK [07:21:47]MH_I2C_Read... [07:21:47]Read from MH i2c: D1 [07:21:47]MH_I2C_Read... [07:21:47]Read from MH i2c: D1 01 00 [07:21:47]MH_I2C_Read... [07:21:47]Read from MH i2c: D1 01 00 77 12 00 5A [07:21:47]Write to MH i2c: 01 00 00 78 12 8A [07:21:47]Write i2c OK [07:21:47]MH_I2C_Read... [07:21:47]OFD Sender: No OFD packet to send [07:21:47]*** Cut start [07:21:47]*** Partial cut [07:21:47]*** CUTSNS_PIN = 1 [07:21:48]*** CUTSNS_PIN = 0 [07:21:48]*** Brake cut motor [07:21:48]Read from MH i2c: 01 [07:21:48]MH_I2C_Read... [07:21:48]*** Stop cut motor [07:21:48]*** Cut end [07:21:48]Read from MH i2c: 01 07 00 [07:21:48]MH_I2C_Read... [07:21:48]Read from MH i2c: 01 07 00 78 12 00 00 00 00 00 FF 0F 9F [07:21:48]process_action close_receipt done [07:21:48]requested_data is exist [07:21:48]produce_requested_data [07:21:48]requested_item fm.sn is exist - process it [07:21:48]wFMCommunicate request_size=4 [07:21:48]MH_SAM_APDU [07:21:48]CAPDU: 80 11 00 00 [07:21:48]Write to MH i2c: E2 08 00 79 12 80 11 00 00 00 00 00 00 05 [07:21:48]Write i2c OK [07:21:48]MH_I2C_Read... [07:21:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:21:48]Read from MH i2c: E2 [07:21:48]MH_I2C_Read... [07:21:48]Read from MH i2c: E2 17 00 [07:21:48]MH_I2C_Read... [07:21:48]Read from MH i2c: E2 17 00 79 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5C [07:21:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:21:48]wFMCommunicate OK [07:21:48]requested_item fd.num is exist - process it [07:21:48]SAM_PROTO_GetFieldsCounters [07:21:48]wFMCommunicate request_size=4 [07:21:48]MH_SAM_APDU [07:21:48]CAPDU: 80 13 00 00 [07:21:48]Write to MH i2c: E2 08 00 7A 12 80 13 00 00 00 00 00 00 08 [07:21:48]Write i2c OK [07:21:48]MH_I2C_Read... [07:21:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:21:48]Read from MH i2c: E2 [07:21:48]MH_I2C_Read... [07:21:48]Read from MH i2c: E2 62 00 [07:21:48]MH_I2C_Read... [07:21:48]Read from MH i2c: E2 62 00 7A 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F9 7A 03 00 0E 04 04 00 17 02 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 5F [07:21:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F9 7A 03 00 0E 04 04 00 17 02 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 [07:21:48]wFMCommunicate OK [07:21:48]SAM_PROTO_GetFieldsCounters done [07:21:48]requested_item shift.num is exist - process it [07:21:48]requested_item shift.opened is exist - process it [07:21:48]req_shift_opened [07:21:48]FM_GetShiftState [07:21:48]SAM_PROTO_GetShiftState [07:21:48]wFMCommunicate request_size=4 [07:21:48]MH_SAM_APDU [07:21:48]CAPDU: 80 13 01 00 [07:21:48]Write to MH i2c: E2 08 00 7B 12 80 13 01 00 00 00 00 00 0A [07:21:48]Write i2c OK [07:21:48]MH_I2C_Read... [07:21:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:21:48]Read from MH i2c: E2 [07:21:48]MH_I2C_Read... [07:21:48]Read from MH i2c: E2 0E 00 [07:21:48]MH_I2C_Read... [07:21:48]Read from MH i2c: E2 0E 00 7B 12 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 D1 [07:21:48]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [07:21:48]wFMCommunicate OK [07:21:48]SAM_PROTO_GetShiftState done [07:21:48]FM_GetShiftState done [07:21:48]req_shift_opened done [07:21:48]requested_item shift.open_date is exist - process it [07:21:48]req_shift_open_date [07:21:48]req_shift_open_date done [07:21:48]produce_requested_data done [07:21:48]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228089,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [07:21:48]process_action_free close_receipt [07:21:48]json_value_free [07:21:48]json_value_free done [07:21:48]process_json_proto returns [07:21:48]Send response to host [07:21:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228089,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [07:21:48]free response buf [07:21:48]execute_script done [07:21:48]execute_script returns [07:21:48]free content buf [07:21:48]Sock 9.Close socket [07:21:48]Sock 9.Thread stoped [07:21:52]OFD Sender: No OFD packet to send [07:21:57]OFD Sender: No OFD packet to send [07:22:02]OFD Sender: No OFD packet to send [07:22:07]OFD Sender: No OFD packet to send [07:22:12]OFD Sender: No OFD packet to send [07:22:17]OFD Sender: No OFD packet to send [07:22:22]OFD Sender: No OFD packet to send [07:22:27]OFD Sender: No OFD packet to send [07:22:32]OFD Sender: No OFD packet to send [07:22:37]OFD Sender: No OFD packet to send [07:22:42]OFD Sender: No OFD packet to send [07:22:47]OFD Sender: No OFD packet to send [07:22:52]OFD Sender: No OFD packet to send [07:22:57]OFD Sender: No OFD packet to send [07:23:02]OFD Sender: No OFD packet to send [07:23:07]OFD Sender: No OFD packet to send [07:23:12]OFD Sender: No OFD packet to send [07:23:17]OFD Sender: No OFD packet to send [07:23:22]OFD Sender: No OFD packet to send [07:23:27]OFD Sender: No OFD packet to send [07:23:32]OFD Sender: No OFD packet to send [07:23:37]OFD Sender: No OFD packet to send [07:23:42]OFD Sender: No OFD packet to send [07:23:47]OFD Sender: No OFD packet to send [07:23:52]OFD Sender: No OFD packet to send [07:23:57]OFD Sender: No OFD packet to send [07:24:02]OFD Sender: No OFD packet to send [07:24:07]OFD Sender: No OFD packet to send [07:24:10]accept exits with 7 [07:24:10]New connection [07:24:10]New thread 3067137380 created [07:24:10]Thread 3066994020 joined [07:24:10]Waiting for new connection... [07:24:10] Sock 7.Parse request [07:24:10]Sock 7.Check first char [07:24:10]Sock 7.First char is OK [07:24:10]request: POST /json_proto HTTP/1.0 [07:24:10]Method: POST [07:24:10]URL: /json_proto [07:24:10]Method is POST - this is cgi request [07:24:10]url: /json_proto [07:24:10]query_string will be loaded in cgi processing [07:24:10]execute_cgi json_proto POST (null) [07:24:10]execute_cgi path=json_proto method=POST [07:24:10]POST find Content-Length [07:24:10]Host: 172.17.44.195:8080 [07:24:10]Content-Length: 678 [07:24:10]Content-Type: application/json [07:24:10] [07:24:10]POST finish read [07:24:10]Found Content-Length = 678 [07:24:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 7.010, "sum" : 520.14, "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" ] } } [07:24:10]execute_script... [07:24: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)1964295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 7.010, "sum" : 520.14, "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" ] } } [07:24:10]POST & json_proto [07:24:10]process_json_proto [07:24:10]json parsed OK: [07:24:10]protocol is kg_v1.0 [07:24:10]action value=close_receipt [07:24:10]process_action close_receipt [07:24:10]cmd_close_receipt [07:24:10]MH_GetDate [07:24:10]Write to MH i2c: F0 00 00 7C 12 7D [07:24:10]Write i2c OK [07:24:10]MH_I2C_Read... [07:24:10]Read from MH i2c: F0 [07:24:10]MH_I2C_Read... [07:24:10]Read from MH i2c: F0 09 00 [07:24:10]MH_I2C_Read... [07:24:10]Read from MH i2c: F0 09 00 7C 12 00 1C 53 17 67 82 C9 CF 66 F3 [07:24:10]GetLastDocTimeStamp 1729581707 [07:24:10]current date 1729581852 [07:24:10]FM_GetShiftState [07:24:10]SAM_PROTO_GetShiftState [07:24:10]wFMCommunicate request_size=4 [07:24:10]MH_SAM_APDU [07:24:10]CAPDU: 80 13 01 00 [07:24:10]Write to MH i2c: E2 08 00 7D 12 80 13 01 00 00 00 00 00 0C [07:24:10]Write i2c OK [07:24:10]MH_I2C_Read... [07:24:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:24:10]Read from MH i2c: E2 [07:24:10]MH_I2C_Read... [07:24:10]Read from MH i2c: E2 0E 00 [07:24:10]MH_I2C_Read... [07:24:10]Read from MH i2c: E2 0E 00 7D 12 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 D3 [07:24:10]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [07:24:10]wFMCommunicate OK [07:24:10]SAM_PROTO_GetShiftState done [07:24:10]FM_GetShiftState done [07:24:10]opened in 1729555538 [07:24:10]opened+sec_in_day 1729641938 [07:24:10]quantity*price = 52014 [07:24:10]sum+1 = 52015 [07:24:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 520.00 Внесено: 520.00 СДАЧА: 0.00 НСП 1% : 4.60 НДС 12% : 55.24 Наличными: 520.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 54 22.10.2024 07:24 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228090 ФПД: 149984276290755 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T072412&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228090&fm=149984276290755&tin=02508201610067®Number=0000000000091685&sum=52000 [07:24:11]StoreToDocumentArchive [07:24:11]shift 535 fd 228090 [07:24:11]save to /storage/0535/doc_00228090 [07:24:11]save last doc name /storage/0535/doc_00228090 to /storage/kkm_last_doc_name [07:24:11]save OK [07:24:11]Clear old archive folders... [07:24:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:24:11]tlvbuf is B6DD55B0 [07:24:11]SAM_PROTO_ClearQueue [07:24:11]wFMCommunicate request_size=4 [07:24:11]MH_SAM_APDU [07:24:11]CAPDU: 80 09 00 00 [07:24:11]Write to MH i2c: E2 08 00 8A 12 80 09 00 00 00 00 00 00 0E [07:24:11]Write i2c OK [07:24:11]MH_I2C_Read... [07:24:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:24:11]Read from MH i2c: E2 [07:24:11]MH_I2C_Read... [07:24:11]Read from MH i2c: E2 03 00 [07:24:11]MH_I2C_Read... [07:24:11]Read from MH i2c: E2 03 00 8A 12 00 90 00 10 [07:24:11]RAPDU: 90 00 [07:24:11]wFMCommunicate OK [07:24:11]SAM_PROTO_ClearQueue done [07:24:11]KKMCreateOFDPacket [07:24:11]OFDProtocolAddRootSTLVToBuf [07:24:11]FM_MakeSignedData [07:24:11]FM_MakeSignedData [07:24:11]SAM_PROTO_SignData [07:24:11]wFMCommunicate request_size=4 [07:24:11]MH_SAM_APDU [07:24:11]CAPDU: 80 0D 01 02 [07:24:11]Write to MH i2c: E2 08 00 8B 12 80 0D 01 02 00 00 00 00 16 [07:24:11]Write i2c OK [07:24:11]MH_I2C_Read... [07:24:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:24:11]Read from MH i2c: E2 [07:24:11]MH_I2C_Read... [07:24:11]Read from MH i2c: E2 03 00 [07:24:11]MH_I2C_Read... [07:24:11]Read from MH i2c: E2 03 00 8B 12 00 90 00 11 [07:24:11]RAPDU: 90 00 [07:24:11]wFMCommunicate OK [07:24:11]wFMCommunicate request_size=255 [07:24:11]MH_SAM_APDU [07:24: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 2E 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 36 00 00 00 F4 03 04 00 1C 53 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FA 7A 03 00 35 04 06 00 88 [07:24:11]Write to MH i2c: E2 02 01 8C 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 2E 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 36 00 00 00 F4 03 04 00 1C 53 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FA 7A 03 00 35 04 06 00 88 00 00 41 [07:24:11]Write i2c OK [07:24:11]MH_I2C_Read... [07:24:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:24:11]Read from MH i2c: E2 [07:24:11]MH_I2C_Read... [07:24:11]Read from MH i2c: E2 03 00 [07:24:11]MH_I2C_Read... [07:24:11]Read from MH i2c: E2 03 00 8C 12 00 90 00 12 [07:24:11]RAPDU: 90 00 [07:24:11]wFMCommunicate OK [07:24:11]wFMCommunicate request_size=10 [07:24:11]MH_SAM_APDU [07:24:11]CAPDU: 80 0D 02 02 05 68 EF 82 9C C3 [07:24:11]Write to MH i2c: E2 0D 00 8D 12 80 0D 02 02 05 00 68 EF 82 9C C3 00 00 5B [07:24:11]Write i2c OK [07:24:11]MH_I2C_Read... [07:24:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:24:11]Read from MH i2c: E2 [07:24:11]MH_I2C_Read... [07:24:11]Read from MH i2c: E2 03 00 [07:24:11]MH_I2C_Read... [07:24:11]Read from MH i2c: E2 03 00 8D 12 00 90 00 13 [07:24:11]RAPDU: 90 00 [07:24:11]wFMCommunicate OK [07:24:11]wFMCommunicate request_size=4 [07:24:11]MH_SAM_APDU [07:24:11]CAPDU: 80 0D 03 02 [07:24:11]Write to MH i2c: E2 08 00 8E 12 80 0D 03 02 00 00 00 00 1B [07:24:11]Write i2c OK [07:24:11]MH_I2C_Read... [07:24:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:24:11]Read from MH i2c: E2 [07:24:11]MH_I2C_Read... [07:24:11]Read from MH i2c: E2 0B 00 [07:24:11]MH_I2C_Read... [07:24:11]Read from MH i2c: E2 0B 00 8E 12 00 74 2D F0 CC CD 7C F1 8D 90 00 40 [07:24:11]RAPDU: 74 2D F0 CC CD 7C F1 8D 90 00 [07:24:11]wFMCommunicate OK [07:24:11]SAM_PROTO_SignData done [07:24:11]FM_MakeSignedData done [07:24:11]CreateOFDProtocolMessage [07:24:11]wFMCommunicate request_size=4 [07:24:11]MH_SAM_APDU [07:24:11]CAPDU: 80 11 00 00 [07:24:11]Write to MH i2c: E2 08 00 8F 12 80 11 00 00 00 00 00 00 1B [07:24:11]Write i2c OK [07:24:11]MH_I2C_Read... [07:24:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:24:11]Read from MH i2c: E2 [07:24:11]MH_I2C_Read... [07:24:11]Read from MH i2c: E2 17 00 [07:24:11]MH_I2C_Read... [07:24:11]Read from MH i2c: E2 17 00 8F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 72 [07:24:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:24:11]wFMCommunicate OK [07:24:11]CreateOFDProtocolMessage done [07:24:11]OFDSenderStorePacket 228090 [07:24:11]StoreOFDPacket docnum=228090 [07:24:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D8 28 07 01 CD 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 2E 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 36 00 00 00 F4 03 04 00 1C 53 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FA 7A 03 00 35 04 06 00 88 68 EF 82 9C C3 74 2D F0 CC CD 7C F1 8D [07:24:11]CheckFolder [07:24:11]dirname=/storage/ofd_packets [07:24:11]CheckFolder done [07:24:11]ProducePacketName [07:24:11]name=ofd_packets/00228090 [07:24:11]NVStorageSaveData ofd_packets/00228090 [07:24:11]File name is /storage/ofd_packets/00228090 [07:24:11]Write 301 bytes [07:24:11]NVStorageSaveData done [07:24:11]OFDSenderStorePacket done [07:24:11]KKMCreateOFDPacket done [07:24:11]NVStorageSaveData kkm_last_timestamp [07:24:11]File name is /storage/kkm_last_timestamp [07:24:11]Write 4 bytes [07:24:11]NVStorageSaveData done [07:24:11]ExternCall_PrintAddStr [07:24:11]wPrintStart [07:24:11]Write to MH i2c: 01 00 00 90 12 A2 [07:24:11]Write i2c OK [07:24:11]MH_I2C_Read... [07:24:11]Read from MH i2c: 01 [07:24:11]MH_I2C_Read... [07:24:11]Read from MH i2c: 01 07 00 [07:24:11]MH_I2C_Read... [07:24:11]Read from MH i2c: 01 07 00 90 12 00 00 00 00 00 FF 0F B7 [07:24:11]RasterBufferAndPrint [07:24:11]line Счет N : (1)1964295 [07:24:11]line ИНН: 02508201610067 [07:24:11]line Контрольно-Кассовый Чек [07:24:11]line ПРОДАЖА [07:24:11]line ТРК (МРК, ГНК) : 54 [07:24:11]line Товар: 2710124500 [07:24:11]line Аи-95-К-5 [07:24:11]line 7.010 * 74.20 [07:24:11]line = 520.14 [07:24:11]line НДС 12% НСП 1% [07:24:11]line > о реализуемом товаре [07:24:11]line ОКРУГЛЕНИЕ: -0.14 [07:24:11]line ИТОГО: 520.00 [07:24:11]line Внесено: 520.00 [07:24:11]line СДАЧА: 0.00 [07:24:11]line НСП 1% : 4.60 [07:24:11]line НДС 12% : 55.24 [07:24:11]line Наличными: 520.00 [07:24:11]line Безнал.: 0.00 [07:24:11]line Место: АЗС № 133 "Партнер Нефть" [07:24:11]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [07:24:11]line СНО: Общий режим [07:24:11]line Чек 54 22.10.2024 07:24 [07:24:11]line Смена: 535 ФФД: 1.0 [07:24:11]line ЗНМ: 0300000091 [07:24:11]line РНМ: 0000000000091685 [07:24:11]line Версия ККМ: 001 [07:24:11]line ФМ: 0000000000871839 [07:24:11]line ФД: 228090 [07:24:11]line ФПД: 149984276290755 [07:24:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T072412&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228090&fm=149984276290755&tin=02508201610067®Number=0000000000091685&sum=52000 [07:24:12]written 0, free lines is 4095 [07:24:12]OFD Sender: Processing packet 228090 [packets to send 38, broken 37] [07:24:12]ProducePacketName [07:24:12]name=ofd_packets/00228090 [07:24:12]OFD Sender: To server: pG, [07:24:12]CommunicateWithHost lk.salyk.kg:30040 [07:24:12]ConnectInit lk.salyk.kg [07:24:12]Connected sock=10 [07:24:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D8 28 07 01 CD 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 2E 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 36 00 00 00 F4 03 04 00 1C 53 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FA 7A 03 00 35 04 06 00 88 68 EF 82 9C C3 74 2D F0 CC CD 7C F1 8D [07:24:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 F8 2C 47 00 63 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FA 7A 03 00 F4 03 04 00 15 FE 16 67 B6 04 01 00 00 06 A4 3B 2B 0D F3 20 58 [07:24:12]CommunicateWithHost err = 0 [07:24:12]CheckOFDResponse [07:24:12]1017 (14) - 77093643461234 [07:24:12]1041 (16) - 0000000000871839 [07:24:12]1040 (4) - 228090 [07:24:12]1012 (4) - 22.10.2024 01:21 [07:24:12]1206 (1) - 0 [07:24:12]OFD Sender: Remove packet 228090 [07:24:12]ProducePacketName [07:24:12]name=ofd_packets/00228090 [07:24:12]NVStorageDeleteData [07:24:12]Write to MH i2c: 01 00 00 BA 12 CC [07:24:12]Write i2c OK [07:24:12]MH_I2C_Read... [07:24:12]Read from MH i2c: 01 [07:24:12]MH_I2C_Read... [07:24:12]Read from MH i2c: 01 07 00 [07:24:12]MH_I2C_Read... [07:24:12]Read from MH i2c: 01 07 00 BA 12 00 00 00 00 00 9B 0C 7A [07:24:12]RasterBufferAndPrint [07:24:12]line [07:24:12]line [07:24:12]line [07:24:12]line [07:24:12]line [07:24:12]written 0, free lines is 3232 [07:24:12]MH_Cut [07:24:12]Write to MH i2c: D1 01 00 C1 12 01 A5 [07:24:12]Write i2c OK [07:24:12]MH_I2C_Read... [07:24:12]Read from MH i2c: D1 [07:24:12]MH_I2C_Read... [07:24:12]Read from MH i2c: D1 01 00 [07:24:12]MH_I2C_Read... [07:24:12]Read from MH i2c: D1 01 00 C1 12 00 A4 [07:24:12]Write to MH i2c: 01 00 00 C2 12 D4 [07:24:12]Write i2c OK [07:24:12]MH_I2C_Read... [07:24:12]OFD Sender: No OFD packet to send [07:24:13]*** Cut start [07:24:13]*** Partial cut [07:24:13]*** CUTSNS_PIN = 1 [07:24:13]*** CUTSNS_PIN = 0 [07:24:13]*** Brake cut motor [07:24:14]Read from MH i2c: 01 [07:24:14]MH_I2C_Read... [07:24:14]*** Stop cut motor [07:24:14]*** Cut end [07:24:14]Read from MH i2c: 01 07 00 [07:24:14]MH_I2C_Read... [07:24:14]Read from MH i2c: 01 07 00 C2 12 00 00 00 00 00 FF 0F E9 [07:24:14]process_action close_receipt done [07:24:14]requested_data is exist [07:24:14]produce_requested_data [07:24:14]requested_item fm.sn is exist - process it [07:24:14]wFMCommunicate request_size=4 [07:24:14]MH_SAM_APDU [07:24:14]CAPDU: 80 11 00 00 [07:24:14]Write to MH i2c: E2 08 00 C3 12 80 11 00 00 00 00 00 00 4F [07:24:14]Write i2c OK [07:24:14]MH_I2C_Read... [07:24:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:24:14]Read from MH i2c: E2 [07:24:14]MH_I2C_Read... [07:24:14]Read from MH i2c: E2 17 00 [07:24:14]MH_I2C_Read... [07:24:14]Read from MH i2c: E2 17 00 C3 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A6 [07:24:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:24:14]wFMCommunicate OK [07:24:14]requested_item fd.num is exist - process it [07:24:14]SAM_PROTO_GetFieldsCounters [07:24:14]wFMCommunicate request_size=4 [07:24:14]MH_SAM_APDU [07:24:14]CAPDU: 80 13 00 00 [07:24:14]Write to MH i2c: E2 08 00 C4 12 80 13 00 00 00 00 00 00 52 [07:24:14]Write i2c OK [07:24:14]MH_I2C_Read... [07:24:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:24:14]Read from MH i2c: E2 [07:24:14]MH_I2C_Read... [07:24:14]Read from MH i2c: E2 62 00 [07:24:14]MH_I2C_Read... [07:24:14]Read from MH i2c: E2 62 00 C4 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FA 7A 03 00 0E 04 04 00 17 02 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 AD [07:24:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FA 7A 03 00 0E 04 04 00 17 02 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 [07:24:14]wFMCommunicate OK [07:24:14]SAM_PROTO_GetFieldsCounters done [07:24:14]requested_item shift.num is exist - process it [07:24:14]requested_item shift.opened is exist - process it [07:24:14]req_shift_opened [07:24:14]FM_GetShiftState [07:24:14]SAM_PROTO_GetShiftState [07:24:14]wFMCommunicate request_size=4 [07:24:14]MH_SAM_APDU [07:24:14]CAPDU: 80 13 01 00 [07:24:14]Write to MH i2c: E2 08 00 C5 12 80 13 01 00 00 00 00 00 54 [07:24:14]Write i2c OK [07:24:14]MH_I2C_Read... [07:24:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:24:14]Read from MH i2c: E2 [07:24:14]MH_I2C_Read... [07:24:14]Read from MH i2c: E2 0E 00 [07:24:14]MH_I2C_Read... [07:24:14]Read from MH i2c: E2 0E 00 C5 12 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 1B [07:24:14]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [07:24:14]wFMCommunicate OK [07:24:14]SAM_PROTO_GetShiftState done [07:24:14]FM_GetShiftState done [07:24:14]req_shift_opened done [07:24:14]requested_item shift.open_date is exist - process it [07:24:14]req_shift_open_date [07:24:14]req_shift_open_date done [07:24:14]produce_requested_data done [07:24:14]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228090,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [07:24:14]process_action_free close_receipt [07:24:14]json_value_free [07:24:14]json_value_free done [07:24:14]process_json_proto returns [07:24:14]Send response to host [07:24:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228090,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [07:24:14]free response buf [07:24:14]execute_script done [07:24:14]execute_script returns [07:24:14]free content buf [07:24:14]Sock 7.Close socket [07:24:14]Sock 7.Thread stoped [07:24:17]OFD Sender: No OFD packet to send [07:24:22]OFD Sender: No OFD packet to send [07:24:27]OFD Sender: No OFD packet to send [07:24:32]OFD Sender: No OFD packet to send [07:24:37]OFD Sender: No OFD packet to send [07:24:41]accept exits with 9 [07:24:41]New connection [07:24:41]New thread 3066994020 created [07:24:41]Thread 3067137380 joined [07:24:41]Waiting for new connection... [07:24:41] Sock 9.Parse request [07:24:41]Sock 9.Check first char [07:24:41]Sock 9.First char is OK [07:24:41]request: POST /json_proto HTTP/1.0 [07:24:41]Method: POST [07:24:41]URL: /json_proto [07:24:41]Method is POST - this is cgi request [07:24:41]url: /json_proto [07:24:41]query_string will be loaded in cgi processing [07:24:41]execute_cgi json_proto POST (null) [07:24:41]execute_cgi path=json_proto method=POST [07:24:41]POST find Content-Length [07:24:41]Host: 172.17.44.195:8080 [07:24:41]Content-Length: 678 [07:24:41]Content-Type: application/json [07:24:41] [07:24:41]POST finish read [07:24:41]Found Content-Length = 678 [07:24:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:24:41]execute_script... [07:24: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)1964297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:24:41]POST & json_proto [07:24:41]process_json_proto [07:24:41]json parsed OK: [07:24:41]protocol is kg_v1.0 [07:24:41]action value=close_receipt [07:24:41]process_action close_receipt [07:24:41]cmd_close_receipt [07:24:41]MH_GetDate [07:24:41]Write to MH i2c: F0 00 00 C6 12 C7 [07:24:41]Write i2c OK [07:24:41]MH_I2C_Read... [07:24:41]Read from MH i2c: F0 [07:24:41]MH_I2C_Read... [07:24:41]Read from MH i2c: F0 09 00 [07:24:41]MH_I2C_Read... [07:24:41]Read from MH i2c: F0 09 00 C6 12 00 3C 53 17 67 82 C9 CF 66 5D [07:24:41]GetLastDocTimeStamp 1729581852 [07:24:41]current date 1729581884 [07:24:41]FM_GetShiftState [07:24:41]SAM_PROTO_GetShiftState [07:24:41]wFMCommunicate request_size=4 [07:24:41]MH_SAM_APDU [07:24:41]CAPDU: 80 13 01 00 [07:24:41]Write to MH i2c: E2 08 00 C7 12 80 13 01 00 00 00 00 00 56 [07:24:41]Write i2c OK [07:24:41]MH_I2C_Read... [07:24:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:24:41]Read from MH i2c: E2 [07:24:41]MH_I2C_Read... [07:24:41]Read from MH i2c: E2 0E 00 [07:24:41]MH_I2C_Read... [07:24:41]Read from MH i2c: E2 0E 00 C7 12 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 1D [07:24:41]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [07:24:41]wFMCommunicate OK [07:24:41]SAM_PROTO_GetShiftState done [07:24:41]FM_GetShiftState done [07:24:41]opened in 1729555538 [07:24:41]opened+sec_in_day 1729641938 [07:24:41]quantity*price = 50010 [07:24:41]sum+1 = 50012 [07:24:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 55 22.10.2024 07:24 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228091 ФПД: 67185499954324 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T072444&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228091&fm=67185499954324&tin=02508201610067®Number=0000000000091685&sum=50000 [07:24:42]StoreToDocumentArchive [07:24:42]shift 535 fd 228091 [07:24:42]save to /storage/0535/doc_00228091 [07:24:42]save last doc name /storage/0535/doc_00228091 to /storage/kkm_last_doc_name [07:24:42]save OK [07:24:42]Clear old archive folders... [07:24:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:24:42]tlvbuf is 00AA5C00 [07:24:42]SAM_PROTO_ClearQueue [07:24:42]wFMCommunicate request_size=4 [07:24:42]MH_SAM_APDU [07:24:42]CAPDU: 80 09 00 00 [07:24:42]Write to MH i2c: E2 08 00 D4 12 80 09 00 00 00 00 00 00 58 [07:24:42]Write i2c OK [07:24:42]MH_I2C_Read... [07:24:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:24:42]Read from MH i2c: E2 [07:24:42]MH_I2C_Read... [07:24:42]Read from MH i2c: E2 03 00 [07:24:42]MH_I2C_Read... [07:24:42]Read from MH i2c: E2 03 00 D4 12 00 90 00 5A [07:24:42]RAPDU: 90 00 [07:24:42]wFMCommunicate OK [07:24:42]SAM_PROTO_ClearQueue done [07:24:42]KKMCreateOFDPacket [07:24:42]OFDProtocolAddRootSTLVToBuf [07:24:42]FM_MakeSignedData [07:24:42]FM_MakeSignedData [07:24:42]SAM_PROTO_SignData [07:24:42]wFMCommunicate request_size=4 [07:24:42]MH_SAM_APDU [07:24:42]CAPDU: 80 0D 01 02 [07:24:42]Write to MH i2c: E2 08 00 D5 12 80 0D 01 02 00 00 00 00 60 [07:24:42]Write i2c OK [07:24:42]MH_I2C_Read... [07:24:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:24:42]Read from MH i2c: E2 [07:24:42]MH_I2C_Read... [07:24:42]Read from MH i2c: E2 03 00 [07:24:42]MH_I2C_Read... [07:24:42]Read from MH i2c: E2 03 00 D5 12 00 90 00 5B [07:24:42]RAPDU: 90 00 [07:24:42]wFMCommunicate OK [07:24:42]wFMCommunicate request_size=255 [07:24:42]MH_SAM_APDU [07:24:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 3C 53 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FB 7A 03 00 35 04 06 00 3D [07:24:42]Write to MH i2c: E2 02 01 D6 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 3C 53 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FB 7A 03 00 35 04 06 00 3D 00 00 E1 [07:24:42]Write i2c OK [07:24:42]MH_I2C_Read... [07:24:42]OFD Sender: No OFD packet to send [07:24:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:24:43]Read from MH i2c: E2 [07:24:43]MH_I2C_Read... [07:24:43]Read from MH i2c: E2 03 00 [07:24:43]MH_I2C_Read... [07:24:43]Read from MH i2c: E2 03 00 D6 12 00 90 00 5C [07:24:43]RAPDU: 90 00 [07:24:43]wFMCommunicate OK [07:24:43]wFMCommunicate request_size=10 [07:24:43]MH_SAM_APDU [07:24:43]CAPDU: 80 0D 02 02 05 1A D7 DB DC 94 [07:24:43]Write to MH i2c: E2 0D 00 D7 12 80 0D 02 02 05 00 1A D7 DB DC 94 00 00 A9 [07:24:43]Write i2c OK [07:24:43]MH_I2C_Read... [07:24:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:24:43]Read from MH i2c: E2 [07:24:43]MH_I2C_Read... [07:24:43]Read from MH i2c: E2 03 00 [07:24:43]MH_I2C_Read... [07:24:43]Read from MH i2c: E2 03 00 D7 12 00 90 00 5D [07:24:43]RAPDU: 90 00 [07:24:43]wFMCommunicate OK [07:24:43]wFMCommunicate request_size=4 [07:24:43]MH_SAM_APDU [07:24:43]CAPDU: 80 0D 03 02 [07:24:43]Write to MH i2c: E2 08 00 D8 12 80 0D 03 02 00 00 00 00 65 [07:24:43]Write i2c OK [07:24:43]MH_I2C_Read... [07:24:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:24:43]Read from MH i2c: E2 [07:24:43]MH_I2C_Read... [07:24:43]Read from MH i2c: E2 0B 00 [07:24:43]MH_I2C_Read... [07:24:43]Read from MH i2c: E2 0B 00 D8 12 00 CE F0 C1 53 AF 86 C3 A6 90 00 D6 [07:24:43]RAPDU: CE F0 C1 53 AF 86 C3 A6 90 00 [07:24:43]wFMCommunicate OK [07:24:43]SAM_PROTO_SignData done [07:24:43]FM_MakeSignedData done [07:24:43]CreateOFDProtocolMessage [07:24:43]wFMCommunicate request_size=4 [07:24:43]MH_SAM_APDU [07:24:43]CAPDU: 80 11 00 00 [07:24:43]Write to MH i2c: E2 08 00 D9 12 80 11 00 00 00 00 00 00 65 [07:24:43]Write i2c OK [07:24:43]MH_I2C_Read... [07:24:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:24:43]Read from MH i2c: E2 [07:24:43]MH_I2C_Read... [07:24:43]Read from MH i2c: E2 17 00 [07:24:43]MH_I2C_Read... [07:24:43]Read from MH i2c: E2 17 00 D9 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BC [07:24:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:24:43]wFMCommunicate OK [07:24:43]CreateOFDProtocolMessage done [07:24:43]OFDSenderStorePacket 228091 [07:24:43]StoreOFDPacket docnum=228091 [07:24:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 E7 5A 07 01 06 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 3C 53 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FB 7A 03 00 35 04 06 00 3D 1A D7 DB DC 94 CE F0 C1 53 AF 86 C3 A6 [07:24:43]CheckFolder [07:24:43]dirname=/storage/ofd_packets [07:24:43]CheckFolder done [07:24:43]ProducePacketName [07:24:43]name=ofd_packets/00228091 [07:24:43]NVStorageSaveData ofd_packets/00228091 [07:24:43]File name is /storage/ofd_packets/00228091 [07:24:43]Write 301 bytes [07:24:43]NVStorageSaveData done [07:24:43]OFDSenderStorePacket done [07:24:43]KKMCreateOFDPacket done [07:24:43]NVStorageSaveData kkm_last_timestamp [07:24:43]File name is /storage/kkm_last_timestamp [07:24:43]Write 4 bytes [07:24:43]NVStorageSaveData done [07:24:43]OFD Sender: Processing packet 228091 [packets to send 38, broken 37] [07:24:43]ProducePacketName [07:24:43]name=ofd_packets/00228091 [07:24:43]OFD Sender: To server: pG, [07:24:43]CommunicateWithHost lk.salyk.kg:30040 [07:24:43]ConnectInit lk.salyk.kg [07:24:43]ExternCall_PrintAddStr [07:24:43]wPrintStart [07:24:43]Write to MH i2c: 01 00 00 DA 12 EC [07:24:43]Write i2c OK [07:24:43]MH_I2C_Read... [07:24:43]Read from MH i2c: 01 [07:24:43]MH_I2C_Read... [07:24:43]Read from MH i2c: 01 07 00 [07:24:43]MH_I2C_Read... [07:24:43]Read from MH i2c: 01 07 00 DA 12 00 00 00 00 00 FF 0F 01 [07:24:43]RasterBufferAndPrint [07:24:43]line Счет N : (1)1964297 [07:24:43]line ИНН: 02508201610067 [07:24:43]line Контрольно-Кассовый Чек [07:24:43]line ПРОДАЖА [07:24:43]line ТРК (МРК, ГНК) : 44 [07:24:43]line Товар: 2710124500 [07:24:43]line Аи-95-К-5 [07:24:43]line 6.740 * 74.20 [07:24:43]line = 500.11 [07:24:43]line НДС 12% НСП 1% [07:24:43]line > о реализуемом товаре [07:24:43]line ОКРУГЛЕНИЕ: -0.11 [07:24:43]line ИТОГО: 500.00 [07:24:43]line Внесено: 500.00 [07:24:43]line СДАЧА: 0.00 [07:24:43]line НСП 1% : 4.43 [07:24:43]line НДС 12% : 53.11 [07:24:43]line Наличными: 500.00 [07:24:43]line Безнал.: 0.00 [07:24:43]line Место: АЗС № 133 "Партнер Нефть" [07:24:43]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [07:24:43]line СНО: Общий режим [07:24:43]line Чек 55 22.10.2024 07:24 [07:24:43]line Смена: 535 ФФД: 1.0 [07:24:43]line ЗНМ: 0300000091 [07:24:43]line РНМ: 0000000000091685 [07:24:43]line Версия ККМ: 001 [07:24:43]line ФМ: 0000000000871839 [07:24:43]line ФД: 228091 [07:24:43]line ФПД: 67185499954324 [07:24:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T072444&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228091&fm=67185499954324&tin=02508201610067®Number=0000000000091685&sum=50000 [07:24:43]Connected sock=11 [07:24:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 E7 5A 07 01 06 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 3C 53 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FB 7A 03 00 35 04 06 00 3D 1A D7 DB DC 94 CE F0 C1 53 AF 86 C3 A6 [07:24:43]written 0, free lines is 4095 [07:24:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 20 9E 47 00 1A D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FB 7A 03 00 F4 03 04 00 35 FE 16 67 B6 04 01 00 00 08 EE CF 26 77 E6 67 FF [07:24:43]CommunicateWithHost err = 0 [07:24:43]CheckOFDResponse [07:24:43]1017 (14) - 77093643461234 [07:24:43]1041 (16) - 0000000000871839 [07:24:43]1040 (4) - 228091 [07:24:43]1012 (4) - 22.10.2024 01:21 [07:24:43]1206 (1) - 0 [07:24:43]OFD Sender: Remove packet 228091 [07:24:43]ProducePacketName [07:24:43]name=ofd_packets/00228091 [07:24:43]NVStorageDeleteData [07:24:44]Write to MH i2c: 01 00 00 04 13 17 [07:24:44]Write i2c OK [07:24:44]MH_I2C_Read... [07:24:44]Read from MH i2c: 01 [07:24:44]MH_I2C_Read... [07:24:44]Read from MH i2c: 01 07 00 [07:24:44]MH_I2C_Read... [07:24:44]Read from MH i2c: 01 07 00 04 13 00 00 00 00 00 9C 0C C6 [07:24:44]RasterBufferAndPrint [07:24:44]line [07:24:44]line [07:24:44]line [07:24:44]line [07:24:44]line [07:24:44]written 0, free lines is 3232 [07:24:44]MH_Cut [07:24:44]Write to MH i2c: D1 01 00 0B 13 01 F0 [07:24:44]Write i2c OK [07:24:44]MH_I2C_Read... [07:24:44]Read from MH i2c: D1 [07:24:44]MH_I2C_Read... [07:24:44]Read from MH i2c: D1 01 00 [07:24:44]MH_I2C_Read... [07:24:44]Read from MH i2c: D1 01 00 0B 13 00 EF [07:24:44]Write to MH i2c: 01 00 00 0C 13 1F [07:24:44]Write i2c OK [07:24:44]MH_I2C_Read... [07:24:44]OFD Sender: No OFD packet to send [07:24:45]*** Cut start [07:24:45]*** Partial cut [07:24:45]*** CUTSNS_PIN = 1 [07:24:45]*** CUTSNS_PIN = 0 [07:24:45]*** Brake cut motor [07:24:45]Read from MH i2c: 01 [07:24:45]MH_I2C_Read... [07:24:45]*** Stop cut motor [07:24:45]*** Cut end [07:24:45]Read from MH i2c: 01 07 00 [07:24:45]MH_I2C_Read... [07:24:45]Read from MH i2c: 01 07 00 0C 13 00 00 00 00 00 FF 0F 34 [07:24:45]process_action close_receipt done [07:24:45]requested_data is exist [07:24:45]produce_requested_data [07:24:45]requested_item fm.sn is exist - process it [07:24:45]wFMCommunicate request_size=4 [07:24:45]MH_SAM_APDU [07:24:45]CAPDU: 80 11 00 00 [07:24:45]Write to MH i2c: E2 08 00 0D 13 80 11 00 00 00 00 00 00 9A [07:24:45]Write i2c OK [07:24:45]MH_I2C_Read... [07:24:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:24:45]Read from MH i2c: E2 [07:24:45]MH_I2C_Read... [07:24:45]Read from MH i2c: E2 17 00 [07:24:45]MH_I2C_Read... [07:24:45]Read from MH i2c: E2 17 00 0D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F1 [07:24:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:24:45]wFMCommunicate OK [07:24:45]requested_item fd.num is exist - process it [07:24:45]SAM_PROTO_GetFieldsCounters [07:24:45]wFMCommunicate request_size=4 [07:24:45]MH_SAM_APDU [07:24:45]CAPDU: 80 13 00 00 [07:24:45]Write to MH i2c: E2 08 00 0E 13 80 13 00 00 00 00 00 00 9D [07:24:45]Write i2c OK [07:24:45]MH_I2C_Read... [07:24:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:24:45]Read from MH i2c: E2 [07:24:45]MH_I2C_Read... [07:24:45]Read from MH i2c: E2 62 00 [07:24:45]MH_I2C_Read... [07:24:45]Read from MH i2c: E2 62 00 0E 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FB 7A 03 00 0E 04 04 00 17 02 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 FC [07:24:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FB 7A 03 00 0E 04 04 00 17 02 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 [07:24:45]wFMCommunicate OK [07:24:45]SAM_PROTO_GetFieldsCounters done [07:24:45]requested_item shift.num is exist - process it [07:24:45]requested_item shift.opened is exist - process it [07:24:45]req_shift_opened [07:24:45]FM_GetShiftState [07:24:45]SAM_PROTO_GetShiftState [07:24:45]wFMCommunicate request_size=4 [07:24:45]MH_SAM_APDU [07:24:45]CAPDU: 80 13 01 00 [07:24:45]Write to MH i2c: E2 08 00 0F 13 80 13 01 00 00 00 00 00 9F [07:24:45]Write i2c OK [07:24:45]MH_I2C_Read... [07:24:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:24:46]Read from MH i2c: E2 [07:24:46]MH_I2C_Read... [07:24:46]Read from MH i2c: E2 0E 00 [07:24:46]MH_I2C_Read... [07:24:46]Read from MH i2c: E2 0E 00 0F 13 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 66 [07:24:46]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [07:24:46]wFMCommunicate OK [07:24:46]SAM_PROTO_GetShiftState done [07:24:46]FM_GetShiftState done [07:24:46]req_shift_opened done [07:24:46]requested_item shift.open_date is exist - process it [07:24:46]req_shift_open_date [07:24:46]req_shift_open_date done [07:24:46]produce_requested_data done [07:24:46]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228091,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [07:24:46]process_action_free close_receipt [07:24:46]json_value_free [07:24:46]json_value_free done [07:24:46]process_json_proto returns [07:24:46]Send response to host [07:24:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228091,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [07:24:46]free response buf [07:24:46]execute_script done [07:24:46]execute_script returns [07:24:46]free content buf [07:24:46]Sock 9.Close socket [07:24:46]Sock 9.Thread stoped [07:24:49]OFD Sender: No OFD packet to send [07:24:54]OFD Sender: No OFD packet to send [07:24:59]OFD Sender: No OFD packet to send [07:25:04]OFD Sender: No OFD packet to send [07:25:09]OFD Sender: No OFD packet to send [07:25:14]OFD Sender: No OFD packet to send [07:25:19]OFD Sender: No OFD packet to send [07:25:24]OFD Sender: No OFD packet to send [07:25:29]OFD Sender: No OFD packet to send [07:25:34]OFD Sender: No OFD packet to send [07:25:39]OFD Sender: No OFD packet to send [07:25:39]accept exits with 7 [07:25:39]New connection [07:25:39]New thread 3067137380 created [07:25:39]Thread 3066994020 joined [07:25:39]Waiting for new connection... [07:25:39] Sock 7.Parse request [07:25:39]Sock 7.Check first char [07:25:39]Sock 7.First char is OK [07:25:39]request: POST /json_proto HTTP/1.0 [07:25:39]Method: POST [07:25:39]URL: /json_proto [07:25:39]Method is POST - this is cgi request [07:25:39]url: /json_proto [07:25:39]query_string will be loaded in cgi processing [07:25:39]execute_cgi json_proto POST (null) [07:25:39]execute_cgi path=json_proto method=POST [07:25:39]POST find Content-Length [07:25:39]Host: 172.17.44.195:8080 [07:25:39]Content-Length: 675 [07:25:39]Content-Type: application/json [07:25:39] [07:25:39]POST finish read [07:25:39]Found Content-Length = 675 [07:25:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964298", "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" : 76.20, "quantity" : 9.190, "sum" : 700.28, "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:39]execute_script... [07:25:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964298", "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" : 76.20, "quantity" : 9.190, "sum" : 700.28, "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:39]POST & json_proto [07:25:39]process_json_proto [07:25:39]json parsed OK: [07:25:39]protocol is kg_v1.0 [07:25:39]action value=close_receipt [07:25:39]process_action close_receipt [07:25:39]cmd_close_receipt [07:25:39]MH_GetDate [07:25:39]Write to MH i2c: F0 00 00 10 13 12 [07:25:39]Write i2c OK [07:25:39]MH_I2C_Read... [07:25:39]Read from MH i2c: F0 [07:25:39]MH_I2C_Read... [07:25:39]Read from MH i2c: F0 09 00 [07:25:39]MH_I2C_Read... [07:25:39]Read from MH i2c: F0 09 00 10 13 00 76 53 17 67 82 C9 CF 66 E2 [07:25:39]GetLastDocTimeStamp 1729581884 [07:25:39]current date 1729581942 [07:25:39]FM_GetShiftState [07:25:39]SAM_PROTO_GetShiftState [07:25:39]wFMCommunicate request_size=4 [07:25:39]MH_SAM_APDU [07:25:39]CAPDU: 80 13 01 00 [07:25:39]Write to MH i2c: E2 08 00 11 13 80 13 01 00 00 00 00 00 A1 [07:25:39]Write i2c OK [07:25:39]MH_I2C_Read... [07:25:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:25:39]Read from MH i2c: E2 [07:25:39]MH_I2C_Read... [07:25:39]Read from MH i2c: E2 0E 00 [07:25:39]MH_I2C_Read... [07:25:39]Read from MH i2c: E2 0E 00 11 13 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 68 [07:25:39]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [07:25:39]wFMCommunicate OK [07:25:39]SAM_PROTO_GetShiftState done [07:25:39]FM_GetShiftState done [07:25:39]opened in 1729555538 [07:25:39]opened+sec_in_day 1729641938 [07:25:39]quantity*price = 70027 [07:25:39]sum+1 = 70029 [07:25:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 56 22.10.2024 07:25 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228092 ФПД: 83567042437704 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T072542&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228092&fm=83567042437704&tin=02508201610067®Number=0000000000091685&sum=70000 [07:25:41]StoreToDocumentArchive [07:25:41]shift 535 fd 228092 [07:25:41]save to /storage/0535/doc_00228092 [07:25:41]save last doc name /storage/0535/doc_00228092 to /storage/kkm_last_doc_name [07:25:41]save OK [07:25:41]Clear old archive folders... [07:25:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:25:41]tlvbuf is 008726A0 [07:25:41]SAM_PROTO_ClearQueue [07:25:41]wFMCommunicate request_size=4 [07:25:41]MH_SAM_APDU [07:25:41]CAPDU: 80 09 00 00 [07:25:41]Write to MH i2c: E2 08 00 1E 13 80 09 00 00 00 00 00 00 A3 [07:25:41]Write i2c OK [07:25:41]MH_I2C_Read... [07:25:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:25:41]Read from MH i2c: E2 [07:25:41]MH_I2C_Read... [07:25:41]Read from MH i2c: E2 03 00 [07:25:41]MH_I2C_Read... [07:25:41]Read from MH i2c: E2 03 00 1E 13 00 90 00 A5 [07:25:41]RAPDU: 90 00 [07:25:41]wFMCommunicate OK [07:25:41]SAM_PROTO_ClearQueue done [07:25:41]KKMCreateOFDPacket [07:25:41]OFDProtocolAddRootSTLVToBuf [07:25:41]FM_MakeSignedData [07:25:41]FM_MakeSignedData [07:25:41]SAM_PROTO_SignData [07:25:41]wFMCommunicate request_size=4 [07:25:41]MH_SAM_APDU [07:25:41]CAPDU: 80 0D 01 02 [07:25:41]Write to MH i2c: E2 08 00 1F 13 80 0D 01 02 00 00 00 00 AB [07:25:41]Write i2c OK [07:25:41]MH_I2C_Read... [07:25:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:25:41]Read from MH i2c: E2 [07:25:41]MH_I2C_Read... [07:25:41]Read from MH i2c: E2 03 00 [07:25:41]MH_I2C_Read... [07:25:41]Read from MH i2c: E2 03 00 1F 13 00 90 00 A6 [07:25:41]RAPDU: 90 00 [07:25:41]wFMCommunicate OK [07:25:41]wFMCommunicate request_size=255 [07:25:41]MH_SAM_APDU [07:25: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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 38 00 00 00 F4 03 04 00 76 53 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FC 7A 03 00 35 04 06 00 4C 00 F7 E1 [07:25:41]Write to MH i2c: E2 02 01 20 13 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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 38 00 00 00 F4 03 04 00 76 53 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FC 7A 03 00 35 04 06 00 4C 00 F7 E1 00 00 69 [07:25:41]Write i2c OK [07:25:41]MH_I2C_Read... [07:25:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:25:41]Read from MH i2c: E2 [07:25:41]MH_I2C_Read... [07:25:41]Read from MH i2c: E2 03 00 [07:25:41]MH_I2C_Read... [07:25:41]Read from MH i2c: E2 03 00 20 13 00 90 00 A7 [07:25:41]RAPDU: 90 00 [07:25:41]wFMCommunicate OK [07:25:41]wFMCommunicate request_size=7 [07:25:41]MH_SAM_APDU [07:25:41]CAPDU: 80 0D 02 02 02 22 48 [07:25:41]Write to MH i2c: E2 0A 00 21 13 80 0D 02 02 02 00 22 48 00 00 1C [07:25:41]Write i2c OK [07:25:41]MH_I2C_Read... [07:25:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:25:41]Read from MH i2c: E2 [07:25:41]MH_I2C_Read... [07:25:41]Read from MH i2c: E2 03 00 [07:25:41]MH_I2C_Read... [07:25:41]Read from MH i2c: E2 03 00 21 13 00 90 00 A8 [07:25:41]RAPDU: 90 00 [07:25:41]wFMCommunicate OK [07:25:41]wFMCommunicate request_size=4 [07:25:41]MH_SAM_APDU [07:25:41]CAPDU: 80 0D 03 02 [07:25:41]Write to MH i2c: E2 08 00 22 13 80 0D 03 02 00 00 00 00 B0 [07:25:41]Write i2c OK [07:25:41]MH_I2C_Read... [07:25:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:25:41]Read from MH i2c: E2 [07:25:41]MH_I2C_Read... [07:25:41]Read from MH i2c: E2 0B 00 [07:25:41]MH_I2C_Read... [07:25:41]Read from MH i2c: E2 0B 00 22 13 00 F0 76 D9 A1 49 6E BD 5A 90 00 5F [07:25:41]RAPDU: F0 76 D9 A1 49 6E BD 5A 90 00 [07:25:41]wFMCommunicate OK [07:25:41]SAM_PROTO_SignData done [07:25:41]FM_MakeSignedData done [07:25:41]CreateOFDProtocolMessage [07:25:41]wFMCommunicate request_size=4 [07:25:41]MH_SAM_APDU [07:25:41]CAPDU: 80 11 00 00 [07:25:41]Write to MH i2c: E2 08 00 23 13 80 11 00 00 00 00 00 00 B0 [07:25:41]Write i2c OK [07:25:41]MH_I2C_Read... [07:25:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:25:41]Read from MH i2c: E2 [07:25:41]MH_I2C_Read... [07:25:41]Read from MH i2c: E2 17 00 [07:25:41]MH_I2C_Read... [07:25:41]Read from MH i2c: E2 17 00 23 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 07 [07:25:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:25:41]wFMCommunicate OK [07:25:41]CreateOFDProtocolMessage done [07:25:41]OFDSenderStorePacket 228092 [07:25:41]StoreOFDPacket docnum=228092 [07:25:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 01 B6 04 01 E5 96 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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 38 00 00 00 F4 03 04 00 76 53 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FC 7A 03 00 35 04 06 00 4C 00 F7 E1 22 48 F0 76 D9 A1 49 6E BD 5A [07:25:41]CheckFolder [07:25:41]dirname=/storage/ofd_packets [07:25:41]CheckFolder done [07:25:41]ProducePacketName [07:25:41]name=ofd_packets/00228092 [07:25:41]NVStorageSaveData ofd_packets/00228092 [07:25:41]File name is /storage/ofd_packets/00228092 [07:25:41]Write 298 bytes [07:25:41]NVStorageSaveData done [07:25:41]OFDSenderStorePacket done [07:25:41]KKMCreateOFDPacket done [07:25:41]NVStorageSaveData kkm_last_timestamp [07:25:41]File name is /storage/kkm_last_timestamp [07:25:41]Write 4 bytes [07:25:41]NVStorageSaveData done [07:25:41]ExternCall_PrintAddStr [07:25:41]wPrintStart [07:25:41]Write to MH i2c: 01 00 00 24 13 37 [07:25:41]Write i2c OK [07:25:41]MH_I2C_Read... [07:25:41]Read from MH i2c: 01 [07:25:41]MH_I2C_Read... [07:25:41]Read from MH i2c: 01 07 00 [07:25:41]MH_I2C_Read... [07:25:41]Read from MH i2c: 01 07 00 24 13 00 00 00 00 00 FF 0F 4C [07:25:41]RasterBufferAndPrint [07:25:41]line Счет N : (1)1964298 [07:25:41]line ИНН: 02508201610067 [07:25:41]line Контрольно-Кассовый Чек [07:25:41]line ПРОДАЖА [07:25:41]line ТРК (МРК, ГНК) : 21 [07:25:41]line Товар: 2710194210 [07:25:41]line ДТ-К-5 [07:25:41]line 9.190 * 76.20 [07:25:41]line = 700.28 [07:25:41]line НДС 12% НСП 1% [07:25:41]line > о реализуемом товаре [07:25:41]line ОКРУГЛЕНИЕ: -0.28 [07:25:41]line ИТОГО: 700.00 [07:25:41]line Внесено: 700.00 [07:25:41]line СДАЧА: 0.00 [07:25:41]line НСП 1% : 6.20 [07:25:41]line НДС 12% : 74.37 [07:25:41]line Наличными: 700.00 [07:25:41]line Безнал.: 0.00 [07:25:41]line Место: АЗС № 133 "Партнер Нефть" [07:25:41]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [07:25:41]line СНО: Общий режим [07:25:41]line Чек 56 22.10.2024 07:25 [07:25:41]line Смена: 535 ФФД: 1.0 [07:25:41]line ЗНМ: 0300000091 [07:25:41]line РНМ: 0000000000091685 [07:25:41]line Версия ККМ: 001 [07:25:41]line ФМ: 0000000000871839 [07:25:41]line ФД: 228092 [07:25:41]line ФПД: 83567042437704 [07:25:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T072542&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228092&fm=83567042437704&tin=02508201610067®Number=0000000000091685&sum=70000 [07:25:41]OFD Sender: Processing packet 228092 [packets to send 38, broken 37] [07:25:41]ProducePacketName [07:25:41]name=ofd_packets/00228092 [07:25:41]OFD Sender: To server: pG, [07:25:41]CommunicateWithHost lk.salyk.kg:30040 [07:25:41]ConnectInit lk.salyk.kg [07:25:41]written 0, free lines is 4095 [07:25:42]Connected sock=10 [07:25:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 01 B6 04 01 E5 96 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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 38 00 00 00 F4 03 04 00 76 53 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FC 7A 03 00 35 04 06 00 4C 00 F7 E1 22 48 F0 76 D9 A1 49 6E BD 5A [07:25:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 DC D9 47 00 E0 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FC 7A 03 00 F4 03 04 00 6F FE 16 67 B6 04 01 00 00 0E 19 91 B1 24 D3 68 8C [07:25:42]CommunicateWithHost err = 0 [07:25:42]CheckOFDResponse [07:25:42]1017 (14) - 77093643461234 [07:25:42]1041 (16) - 0000000000871839 [07:25:42]1040 (4) - 228092 [07:25:42]1012 (4) - 22.10.2024 01:22 [07:25:42]1206 (1) - 0 [07:25:42]OFD Sender: Remove packet 228092 [07:25:42]ProducePacketName [07:25:42]name=ofd_packets/00228092 [07:25:42]NVStorageDeleteData [07:25:42]Write to MH i2c: 01 00 00 4E 13 61 [07:25:42]Write i2c OK [07:25:42]MH_I2C_Read... [07:25:42]Read from MH i2c: 01 [07:25:42]MH_I2C_Read... [07:25:42]Read from MH i2c: 01 07 00 [07:25:42]MH_I2C_Read... [07:25:42]Read from MH i2c: 01 07 00 4E 13 00 00 00 00 00 A3 0C 17 [07:25:42]RasterBufferAndPrint [07:25:42]line [07:25:42]line [07:25:42]line [07:25:42]line [07:25:42]line [07:25:42]written 0, free lines is 3240 [07:25:42]MH_Cut [07:25:42]Write to MH i2c: D1 01 00 55 13 01 3A [07:25:42]Write i2c OK [07:25:42]MH_I2C_Read... [07:25:42]Read from MH i2c: D1 [07:25:42]MH_I2C_Read... [07:25:42]Read from MH i2c: D1 01 00 [07:25:42]MH_I2C_Read... [07:25:42]Read from MH i2c: D1 01 00 55 13 00 39 [07:25:42]Write to MH i2c: 01 00 00 56 13 69 [07:25:42]Write i2c OK [07:25:42]MH_I2C_Read... [07:25:42]OFD Sender: No OFD packet to send [07:25:43]*** Cut start [07:25:43]*** Partial cut [07:25:43]*** CUTSNS_PIN = 1 [07:25:43]*** CUTSNS_PIN = 0 [07:25:43]*** Brake cut motor [07:25:44]Read from MH i2c: 01 [07:25:44]MH_I2C_Read... [07:25:44]*** Stop cut motor [07:25:44]*** Cut end [07:25:44]Read from MH i2c: 01 07 00 [07:25:44]MH_I2C_Read... [07:25:44]Read from MH i2c: 01 07 00 56 13 00 00 00 00 00 FF 0F 7E [07:25:44]process_action close_receipt done [07:25:44]requested_data is exist [07:25:44]produce_requested_data [07:25:44]requested_item fm.sn is exist - process it [07:25:44]wFMCommunicate request_size=4 [07:25:44]MH_SAM_APDU [07:25:44]CAPDU: 80 11 00 00 [07:25:44]Write to MH i2c: E2 08 00 57 13 80 11 00 00 00 00 00 00 E4 [07:25:44]Write i2c OK [07:25:44]MH_I2C_Read... [07:25:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:25:44]Read from MH i2c: E2 [07:25:44]MH_I2C_Read... [07:25:44]Read from MH i2c: E2 17 00 [07:25:44]MH_I2C_Read... [07:25:44]Read from MH i2c: E2 17 00 57 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 3B [07:25:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:25:44]wFMCommunicate OK [07:25:44]requested_item fd.num is exist - process it [07:25:44]SAM_PROTO_GetFieldsCounters [07:25:44]wFMCommunicate request_size=4 [07:25:44]MH_SAM_APDU [07:25:44]CAPDU: 80 13 00 00 [07:25:44]Write to MH i2c: E2 08 00 58 13 80 13 00 00 00 00 00 00 E7 [07:25:44]Write i2c OK [07:25:44]MH_I2C_Read... [07:25:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:25:44]Read from MH i2c: E2 [07:25:44]MH_I2C_Read... [07:25:44]Read from MH i2c: E2 62 00 [07:25:44]MH_I2C_Read... [07:25:44]Read from MH i2c: E2 62 00 58 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FC 7A 03 00 0E 04 04 00 17 02 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 4A [07:25:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FC 7A 03 00 0E 04 04 00 17 02 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 [07:25:44]wFMCommunicate OK [07:25:44]SAM_PROTO_GetFieldsCounters done [07:25:44]requested_item shift.num is exist - process it [07:25:44]requested_item shift.opened is exist - process it [07:25:44]req_shift_opened [07:25:44]FM_GetShiftState [07:25:44]SAM_PROTO_GetShiftState [07:25:44]wFMCommunicate request_size=4 [07:25:44]MH_SAM_APDU [07:25:44]CAPDU: 80 13 01 00 [07:25:44]Write to MH i2c: E2 08 00 59 13 80 13 01 00 00 00 00 00 E9 [07:25:44]Write i2c OK [07:25:44]MH_I2C_Read... [07:25:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:25:44]Read from MH i2c: E2 [07:25:44]MH_I2C_Read... [07:25:44]Read from MH i2c: E2 0E 00 [07:25:44]MH_I2C_Read... [07:25:44]Read from MH i2c: E2 0E 00 59 13 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 B0 [07:25:44]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [07:25:44]wFMCommunicate OK [07:25:44]SAM_PROTO_GetShiftState done [07:25:44]FM_GetShiftState done [07:25:44]req_shift_opened done [07:25:44]requested_item shift.open_date is exist - process it [07:25:44]req_shift_open_date [07:25:44]req_shift_open_date done [07:25:44]produce_requested_data done [07:25:44]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228092,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [07:25:44]process_action_free close_receipt [07:25:44]json_value_free [07:25:44]json_value_free done [07:25:44]process_json_proto returns [07:25:44]Send response to host [07:25:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228092,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [07:25:44]free response buf [07:25:44]execute_script done [07:25:44]execute_script returns [07:25:44]free content buf [07:25:44]Sock 7.Close socket [07:25:44]Sock 7.Thread stoped [07:25:47]OFD Sender: No OFD packet to send [07:25:52]OFD Sender: No OFD packet to send [07:25:57]OFD Sender: No OFD packet to send [07:26:02]OFD Sender: No OFD packet to send [07:26:07]OFD Sender: No OFD packet to send [07:26:12]OFD Sender: No OFD packet to send [07:26:17]OFD Sender: No OFD packet to send [07:26:22]OFD Sender: No OFD packet to send [07:26:27]OFD Sender: No OFD packet to send [07:26:32]OFD Sender: No OFD packet to send [07:26:37]OFD Sender: No OFD packet to send [07:26:42]OFD Sender: No OFD packet to send [07:26:47]OFD Sender: No OFD packet to send [07:26:52]OFD Sender: No OFD packet to send [07:26:57]OFD Sender: No OFD packet to send [07:27:02]OFD Sender: No OFD packet to send [07:27:07]accept exits with 9 [07:27:07]New connection [07:27:07]New thread 3066994020 created [07:27:07]Thread 3067137380 joined [07:27:07]Waiting for new connection... [07:27:07] Sock 9.Parse request [07:27:07]Sock 9.Check first char [07:27:07]Sock 9.First char is OK [07:27:07]request: POST /json_proto HTTP/1.0 [07:27:07]Method: POST [07:27:07]URL: /json_proto [07:27:07]Method is POST - this is cgi request [07:27:07]url: /json_proto [07:27:07]query_string will be loaded in cgi processing [07:27:07]execute_cgi json_proto POST (null) [07:27:07]execute_cgi path=json_proto method=POST [07:27:07]POST find Content-Length [07:27:07]Host: 172.17.44.195:8080 [07:27:07]Content-Length: 621 [07:27:07]Content-Type: application/json [07:27:07] [07:27:07]POST finish read [07:27:07]Found Content-Length = 621 [07:27:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:27:07]execute_script... [07:27:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:27:07]POST & json_proto [07:27:07]process_json_proto [07:27:07]json parsed OK: [07:27:07]protocol is kg_v1.0 [07:27:07]action value=close_receipt [07:27:07]process_action close_receipt [07:27:07]cmd_close_receipt [07:27:07]MH_GetDate [07:27:07]Write to MH i2c: F0 00 00 5A 13 5C [07:27:07]Write i2c OK [07:27:07]MH_I2C_Read... [07:27:07]Read from MH i2c: F0 [07:27:07]MH_I2C_Read... [07:27:07]Read from MH i2c: F0 09 00 [07:27:07]MH_I2C_Read... [07:27:07]Read from MH i2c: F0 09 00 5A 13 00 CD 53 17 67 82 C9 CF 66 83 [07:27:07]GetLastDocTimeStamp 1729581942 [07:27:07]current date 1729582029 [07:27:07]FM_GetShiftState [07:27:07]SAM_PROTO_GetShiftState [07:27:07]wFMCommunicate request_size=4 [07:27:07]MH_SAM_APDU [07:27:07]CAPDU: 80 13 01 00 [07:27:07]Write to MH i2c: E2 08 00 5B 13 80 13 01 00 00 00 00 00 EB [07:27:07]Write i2c OK [07:27:07]MH_I2C_Read... [07:27:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:27:07]Read from MH i2c: E2 [07:27:07]MH_I2C_Read... [07:27:07]Read from MH i2c: E2 0E 00 [07:27:07]MH_I2C_Read... [07:27:07]Read from MH i2c: E2 0E 00 5B 13 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 B2 [07:27:07]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [07:27:07]wFMCommunicate OK [07:27:07]SAM_PROTO_GetShiftState done [07:27:07]FM_GetShiftState done [07:27:07]opened in 1729555538 [07:27:07]opened+sec_in_day 1729641938 [07:27:07]quantity*price = 50000 [07:27:07]sum+1 = 50001 [07:27:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 57 22.10.2024 07:27 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228093 ФПД: 104258401360216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T072709&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228093&fm=104258401360216&tin=02508201610067®Number=0000000000091685&sum=50000 [07:27:08]StoreToDocumentArchive [07:27:08]shift 535 fd 228093 [07:27:08]save to /storage/0535/doc_00228093 [07:27:08]save last doc name /storage/0535/doc_00228093 to /storage/kkm_last_doc_name [07:27:08]save OK [07:27:08]Clear old archive folders... [07:27:08]ProcessDocumentItem done err = 0, tmpTLVsize=244 [07:27:08]tlvbuf is 0085FC40 [07:27:08]SAM_PROTO_ClearQueue [07:27:08]wFMCommunicate request_size=4 [07:27:08]MH_SAM_APDU [07:27:08]CAPDU: 80 09 00 00 [07:27:08]Write to MH i2c: E2 08 00 68 13 80 09 00 00 00 00 00 00 ED [07:27:08]Write i2c OK [07:27:08]MH_I2C_Read... [07:27:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:27:08]Read from MH i2c: E2 [07:27:08]MH_I2C_Read... [07:27:08]Read from MH i2c: E2 03 00 [07:27:08]MH_I2C_Read... [07:27:08]Read from MH i2c: E2 03 00 68 13 00 90 00 EF [07:27:08]RAPDU: 90 00 [07:27:08]wFMCommunicate OK [07:27:08]SAM_PROTO_ClearQueue done [07:27:08]KKMCreateOFDPacket [07:27:08]OFDProtocolAddRootSTLVToBuf [07:27:08]FM_MakeSignedData [07:27:08]FM_MakeSignedData [07:27:08]SAM_PROTO_SignData [07:27:08]wFMCommunicate request_size=4 [07:27:08]MH_SAM_APDU [07:27:08]CAPDU: 80 0D 01 02 [07:27:08]Write to MH i2c: E2 08 00 69 13 80 0D 01 02 00 00 00 00 F5 [07:27:08]Write i2c OK [07:27:08]MH_I2C_Read... [07:27:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:27:08]Read from MH i2c: E2 [07:27:08]MH_I2C_Read... [07:27:08]Read from MH i2c: E2 03 00 [07:27:08]MH_I2C_Read... [07:27:08]Read from MH i2c: E2 03 00 69 13 00 90 00 F0 [07:27:08]RAPDU: 90 00 [07:27:08]wFMCommunicate OK [07:27:08]wFMCommunicate request_size=253 [07:27:08]MH_SAM_APDU [07:27:08]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 CD 53 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FD 7A 03 00 35 04 06 00 5E D2 8C FA 59 58 [07:27:08]Write to MH i2c: E2 00 01 6A 13 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 CD 53 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FD 7A 03 00 35 04 06 00 5E D2 8C FA 59 58 00 00 C8 [07:27:08]Write i2c OK [07:27:08]MH_I2C_Read... [07:27:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:27:08]Read from MH i2c: E2 [07:27:08]MH_I2C_Read... [07:27:08]Read from MH i2c: E2 03 00 [07:27:08]MH_I2C_Read... [07:27:08]Read from MH i2c: E2 03 00 6A 13 00 90 00 F1 [07:27:08]RAPDU: 90 00 [07:27:08]wFMCommunicate OK [07:27:08]wFMCommunicate request_size=4 [07:27:08]MH_SAM_APDU [07:27:08]CAPDU: 80 0D 03 02 [07:27:08]Write to MH i2c: E2 08 00 6B 13 80 0D 03 02 00 00 00 00 F9 [07:27:08]Write i2c OK [07:27:08]MH_I2C_Read... [07:27:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:27:08]Read from MH i2c: E2 [07:27:08]MH_I2C_Read... [07:27:08]Read from MH i2c: E2 0B 00 [07:27:08]MH_I2C_Read... [07:27:08]Read from MH i2c: E2 0B 00 6B 13 00 7A 3E 90 83 49 97 C0 29 90 00 8E [07:27:08]RAPDU: 7A 3E 90 83 49 97 C0 29 90 00 [07:27:08]wFMCommunicate OK [07:27:08]SAM_PROTO_SignData done [07:27:08]FM_MakeSignedData done [07:27:08]CreateOFDProtocolMessage [07:27:08]wFMCommunicate request_size=4 [07:27:08]MH_SAM_APDU [07:27:08]CAPDU: 80 11 00 00 [07:27:08]Write to MH i2c: E2 08 00 6C 13 80 11 00 00 00 00 00 00 F9 [07:27:08]Write i2c OK [07:27:08]MH_I2C_Read... [07:27:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:27:08]Read from MH i2c: E2 [07:27:08]MH_I2C_Read... [07:27:08]Read from MH i2c: E2 17 00 [07:27:08]MH_I2C_Read... [07:27:08]Read from MH i2c: E2 17 00 6C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 50 [07:27:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:27:08]wFMCommunicate OK [07:27:08]CreateOFDProtocolMessage done [07:27:08]OFDSenderStorePacket 228093 [07:27:08]StoreOFDPacket docnum=228093 [07:27:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 E7 2A 00 01 29 59 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 CD 53 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FD 7A 03 00 35 04 06 00 5E D2 8C FA 59 58 7A 3E 90 83 49 97 C0 29 [07:27:08]CheckFolder [07:27:08]dirname=/storage/ofd_packets [07:27:08]CheckFolder done [07:27:08]ProducePacketName [07:27:08]name=ofd_packets/00228093 [07:27:08]NVStorageSaveData ofd_packets/00228093 [07:27:08]File name is /storage/ofd_packets/00228093 [07:27:08]Write 294 bytes [07:27:08]NVStorageSaveData done [07:27:08]OFDSenderStorePacket done [07:27:08]KKMCreateOFDPacket done [07:27:08]NVStorageSaveData kkm_last_timestamp [07:27:08]File name is /storage/kkm_last_timestamp [07:27:08]Write 4 bytes [07:27:08]NVStorageSaveData done [07:27:08]ExternCall_PrintAddStr [07:27:08]wPrintStart [07:27:08]Write to MH i2c: 01 00 00 6D 13 80 [07:27:08]Write i2c OK [07:27:08]MH_I2C_Read... [07:27:08]Read from MH i2c: 01 [07:27:08]MH_I2C_Read... [07:27:08]Read from MH i2c: 01 07 00 [07:27:08]MH_I2C_Read... [07:27:08]Read from MH i2c: 01 07 00 6D 13 00 00 00 00 00 FF 0F 95 [07:27:08]RasterBufferAndPrint [07:27:08]line Счет N : (1)1964300 [07:27:08]line ИНН: 02508201610067 [07:27:08]line Контрольно-Кассовый Чек [07:27:08]line ПРОДАЖА [07:27:08]line ТРК (МРК, ГНК) : 32 [07:27:08]line Товар: 2710124130 [07:27:08]line SU-92 [07:27:08]line 7.310 * 68.40 [07:27:08]line = 500.00 [07:27:08]line НДС 12% НСП 1% [07:27:08]line > о реализуемом товаре [07:27:08]line ИТОГО: 500.00 [07:27:08]line НСП 1% : 4.42 [07:27:08]line НДС 12% : 53.10 [07:27:08]line Наличными: 500.00 [07:27:08]line Безнал.: 0.00 [07:27:08]line Место: АЗС № 133 "Партнер Нефть" [07:27:08]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [07:27:08]line СНО: Общий режим [07:27:08]line Чек 57 22.10.2024 07:27 [07:27:08]line Смена: 535 ФФД: 1.0 [07:27:08]line ЗНМ: 0300000091 [07:27:08]line РНМ: 0000000000091685 [07:27:08]line Версия ККМ: 001 [07:27:08]line ФМ: 0000000000871839 [07:27:08]line ФД: 228093 [07:27:08]line ФПД: 104258401360216 [07:27:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T072709&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228093&fm=104258401360216&tin=02508201610067®Number=0000000000091685&sum=50000 [07:27:09]OFD Sender: Processing packet 228093 [packets to send 38, broken 37] [07:27:09]ProducePacketName [07:27:09]name=ofd_packets/00228093 [07:27:09]OFD Sender: To server: pG, [07:27:09]CommunicateWithHost lk.salyk.kg:30040 [07:27:09]ConnectInit lk.salyk.kg [07:27:09]written 0, free lines is 4095 [07:27:09]Connected sock=7 [07:27:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 E7 2A 00 01 29 59 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 CD 53 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FD 7A 03 00 35 04 06 00 5E D2 8C FA 59 58 7A 3E 90 83 49 97 C0 29 [07:27:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 6B CD 47 00 B2 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FD 7A 03 00 F4 03 04 00 C6 FE 16 67 B6 04 01 00 00 9F 17 B8 40 DC E1 44 7E [07:27:09]CommunicateWithHost err = 0 [07:27:09]CheckOFDResponse [07:27:09]1017 (14) - 77093643461234 [07:27:09]1041 (16) - 0000000000871839 [07:27:09]1040 (4) - 228093 [07:27:09]1012 (4) - 22.10.2024 01:24 [07:27:09]1206 (1) - 0 [07:27:09]OFD Sender: Remove packet 228093 [07:27:09]ProducePacketName [07:27:09]name=ofd_packets/00228093 [07:27:09]NVStorageDeleteData [07:27:09]Write to MH i2c: 01 00 00 94 13 A7 [07:27:09]Write i2c OK [07:27:09]MH_I2C_Read... [07:27:09]Read from MH i2c: 01 [07:27:09]MH_I2C_Read... [07:27:09]Read from MH i2c: 01 07 00 [07:27:09]MH_I2C_Read... [07:27:09]Read from MH i2c: 01 07 00 94 13 00 00 00 00 00 DC 0C 96 [07:27:09]RasterBufferAndPrint [07:27:09]line [07:27:09]line [07:27:09]line [07:27:09]line [07:27:09]line [07:27:09]written 0, free lines is 3296 [07:27:09]MH_Cut [07:27:09]Write to MH i2c: D1 01 00 9B 13 01 80 [07:27:09]Write i2c OK [07:27:09]MH_I2C_Read... [07:27:09]Read from MH i2c: D1 [07:27:09]MH_I2C_Read... [07:27:09]Read from MH i2c: D1 01 00 [07:27:09]MH_I2C_Read... [07:27:09]Read from MH i2c: D1 01 00 9B 13 00 7F [07:27:09]Write to MH i2c: 01 00 00 9C 13 AF [07:27:09]Write i2c OK [07:27:09]MH_I2C_Read... [07:27:09]OFD Sender: No OFD packet to send [07:27:10]*** Cut start [07:27:10]*** Partial cut [07:27:10]*** CUTSNS_PIN = 1 [07:27:10]*** CUTSNS_PIN = 0 [07:27:10]*** Brake cut motor [07:27:11]Read from MH i2c: 01 [07:27:11]MH_I2C_Read... [07:27:11]*** Stop cut motor [07:27:11]*** Cut end [07:27:11]Read from MH i2c: 01 07 00 [07:27:11]MH_I2C_Read... [07:27:11]Read from MH i2c: 01 07 00 9C 13 00 00 00 00 00 FF 0F C4 [07:27:11]process_action close_receipt done [07:27:11]requested_data is exist [07:27:11]produce_requested_data [07:27:11]requested_item fm.sn is exist - process it [07:27:11]wFMCommunicate request_size=4 [07:27:11]MH_SAM_APDU [07:27:11]CAPDU: 80 11 00 00 [07:27:11]Write to MH i2c: E2 08 00 9D 13 80 11 00 00 00 00 00 00 2A [07:27:11]Write i2c OK [07:27:11]MH_I2C_Read... [07:27:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:27:11]Read from MH i2c: E2 [07:27:11]MH_I2C_Read... [07:27:11]Read from MH i2c: E2 17 00 [07:27:11]MH_I2C_Read... [07:27:11]Read from MH i2c: E2 17 00 9D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 81 [07:27:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:27:11]wFMCommunicate OK [07:27:11]requested_item fd.num is exist - process it [07:27:11]SAM_PROTO_GetFieldsCounters [07:27:11]wFMCommunicate request_size=4 [07:27:11]MH_SAM_APDU [07:27:11]CAPDU: 80 13 00 00 [07:27:11]Write to MH i2c: E2 08 00 9E 13 80 13 00 00 00 00 00 00 2D [07:27:11]Write i2c OK [07:27:11]MH_I2C_Read... [07:27:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:27:11]Read from MH i2c: E2 [07:27:11]MH_I2C_Read... [07:27:11]Read from MH i2c: E2 62 00 [07:27:11]MH_I2C_Read... [07:27:11]Read from MH i2c: E2 62 00 9E 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FD 7A 03 00 0E 04 04 00 17 02 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 94 [07:27:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FD 7A 03 00 0E 04 04 00 17 02 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 [07:27:11]wFMCommunicate OK [07:27:11]SAM_PROTO_GetFieldsCounters done [07:27:11]requested_item shift.num is exist - process it [07:27:11]requested_item shift.opened is exist - process it [07:27:11]req_shift_opened [07:27:11]FM_GetShiftState [07:27:11]SAM_PROTO_GetShiftState [07:27:11]wFMCommunicate request_size=4 [07:27:11]MH_SAM_APDU [07:27:11]CAPDU: 80 13 01 00 [07:27:11]Write to MH i2c: E2 08 00 9F 13 80 13 01 00 00 00 00 00 2F [07:27:11]Write i2c OK [07:27:11]MH_I2C_Read... [07:27:11]Read from MH i2c: E2 [07:27:11]MH_I2C_Read... [07:27:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:27:11]Read from MH i2c: E2 0E 00 [07:27:11]MH_I2C_Read... [07:27:11]Read from MH i2c: E2 0E 00 9F 13 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 F6 [07:27:11]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [07:27:11]wFMCommunicate OK [07:27:11]SAM_PROTO_GetShiftState done [07:27:11]FM_GetShiftState done [07:27:11]req_shift_opened done [07:27:11]requested_item shift.open_date is exist - process it [07:27:11]req_shift_open_date [07:27:11]req_shift_open_date done [07:27:11]produce_requested_data done [07:27:11]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228093,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [07:27:11]process_action_free close_receipt [07:27:11]json_value_free [07:27:11]json_value_free done [07:27:11]process_json_proto returns [07:27:11]Send response to host [07:27:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228093,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [07:27:11]free response buf [07:27:11]execute_script done [07:27:11]execute_script returns [07:27:11]free content buf [07:27:11]Sock 9.Close socket [07:27:11]Sock 9.Thread stoped [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:05]accept exits with 10 [07:29:05]New connection [07:29:05]New thread 3067137380 created [07:29:05]Thread 3066994020 joined [07:29:05]Waiting for new connection... [07:29:05] Sock 10.Parse request [07:29:05]Sock 10.Check first char [07:29:05]Sock 10.First char is OK [07:29:05]request: POST /json_proto HTTP/1.0 [07:29:05]Method: POST [07:29:05]URL: /json_proto [07:29:05]Method is POST - this is cgi request [07:29:05]url: /json_proto [07:29:05]query_string will be loaded in cgi processing [07:29:05]execute_cgi json_proto POST (null) [07:29:05]execute_cgi path=json_proto method=POST [07:29:05]POST find Content-Length [07:29:05]Host: 172.17.44.195:8080 [07:29:05]Content-Length: 770 [07:29:05]Content-Type: application/json [07:29:05] [07:29:05]POST finish read [07:29:05]Found Content-Length = 770 [07:29:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:29:05]execute_script... [07: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)1964301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:29:05]POST & json_proto [07:29:05]process_json_proto [07:29:05]json parsed OK: [07:29:05]protocol is kg_v1.0 [07:29:05]action value=close_receipt [07:29:05]process_action close_receipt [07:29:05]cmd_close_receipt [07:29:05]MH_GetDate [07:29:05]Write to MH i2c: F0 00 00 A0 13 A2 [07:29:05]Write i2c OK [07:29:05]MH_I2C_Read... [07:29:05]Read from MH i2c: F0 [07:29:05]MH_I2C_Read... [07:29:05]Read from MH i2c: F0 09 00 [07:29:05]MH_I2C_Read... [07:29:05]Read from MH i2c: F0 09 00 A0 13 00 44 54 17 67 82 C9 CF 66 41 [07:29:05]GetLastDocTimeStamp 1729582029 [07:29:05]current date 1729582148 [07:29:05]FM_GetShiftState [07:29:05]SAM_PROTO_GetShiftState [07:29:05]wFMCommunicate request_size=4 [07:29:05]MH_SAM_APDU [07:29:05]CAPDU: 80 13 01 00 [07:29:05]Write to MH i2c: E2 08 00 A1 13 80 13 01 00 00 00 00 00 31 [07:29:05]Write i2c OK [07:29:05]MH_I2C_Read... [07:29:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:29:05]Read from MH i2c: E2 [07:29:05]MH_I2C_Read... [07:29:05]Read from MH i2c: E2 0E 00 [07:29:05]MH_I2C_Read... [07:29:05]Read from MH i2c: E2 0E 00 A1 13 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 F8 [07:29:05]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [07:29:05]wFMCommunicate OK [07:29:05]SAM_PROTO_GetShiftState done [07:29:05]FM_GetShiftState done [07:29:05]opened in 1729555538 [07:29:05]opened+sec_in_day 1729641938 [07:29:05]quantity*price = 200031 [07:29:05]sum+1 = 200032 [07:29:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.31 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.31 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 58 22.10.2024 07:29 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 228094 ФПД: 43424146544832 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T072908&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228094&fm=43424146544832&tin=02508201610067®Number=0000000000091685&sum=200031 [07:29:06]StoreToDocumentArchive [07:29:06]shift 535 fd 228094 [07:29:06]save to /storage/0535/doc_00228094 [07:29:06]save last doc name /storage/0535/doc_00228094 to /storage/kkm_last_doc_name [07:29:06]save OK [07:29:06]Clear old archive folders... [07:29:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:29:06]tlvbuf is 00872C60 [07:29:06]SAM_PROTO_ClearQueue [07:29:06]wFMCommunicate request_size=4 [07:29:06]MH_SAM_APDU [07:29:06]CAPDU: 80 09 00 00 [07:29:06]Write to MH i2c: E2 08 00 AE 13 80 09 00 00 00 00 00 00 33 [07:29:06]Write i2c OK [07:29:06]MH_I2C_Read... [07:29:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:29:06]Read from MH i2c: E2 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: E2 03 00 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: E2 03 00 AE 13 00 90 00 35 [07:29:06]RAPDU: 90 00 [07:29:06]wFMCommunicate OK [07:29:06]SAM_PROTO_ClearQueue done [07:29:06]KKMCreateOFDPacket [07:29:06]OFDProtocolAddRootSTLVToBuf [07:29:06]FM_MakeSignedData [07:29:06]FM_MakeSignedData [07:29:06]SAM_PROTO_SignData [07:29:06]wFMCommunicate request_size=4 [07:29:06]MH_SAM_APDU [07:29:06]CAPDU: 80 0D 01 02 [07:29:06]Write to MH i2c: E2 08 00 AF 13 80 0D 01 02 00 00 00 00 3B [07:29:06]Write i2c OK [07:29:06]MH_I2C_Read... [07:29:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:29:06]Read from MH i2c: E2 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: E2 03 00 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: E2 03 00 AF 13 00 90 00 36 [07:29:06]RAPDU: 90 00 [07:29:06]wFMCommunicate OK [07:29:06]wFMCommunicate request_size=255 [07:29:06]MH_SAM_APDU [07: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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 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 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 44 54 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FE 7A 03 00 35 04 06 00 27 [07:29:07]Write to MH i2c: E2 02 01 B0 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 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 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 44 54 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FE 7A 03 00 35 04 06 00 27 00 00 5D [07:29:07]Write i2c OK [07:29:07]MH_I2C_Read... [07:29:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:29:07]Read from MH i2c: E2 [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: E2 03 00 [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: E2 03 00 B0 13 00 90 00 37 [07:29:07]RAPDU: 90 00 [07:29:07]wFMCommunicate OK [07:29:07]wFMCommunicate request_size=10 [07:29:07]MH_SAM_APDU [07:29:07]CAPDU: 80 0D 02 02 05 7E 78 D4 58 C0 [07:29:07]Write to MH i2c: E2 0D 00 B1 13 80 0D 02 02 05 00 7E 78 D4 58 C0 00 00 2A [07:29:07]Write i2c OK [07:29:07]MH_I2C_Read... [07:29:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:29:07]Read from MH i2c: E2 [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: E2 03 00 [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: E2 03 00 B1 13 00 90 00 38 [07:29:07]RAPDU: 90 00 [07:29:07]wFMCommunicate OK [07:29:07]wFMCommunicate request_size=4 [07:29:07]MH_SAM_APDU [07:29:07]CAPDU: 80 0D 03 02 [07:29:07]Write to MH i2c: E2 08 00 B2 13 80 0D 03 02 00 00 00 00 40 [07:29:07]Write i2c OK [07:29:07]MH_I2C_Read... [07:29:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:29:07]Read from MH i2c: E2 [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: E2 0B 00 [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: E2 0B 00 B2 13 00 0B 94 84 71 3F 4C 09 03 90 00 6C [07:29:07]RAPDU: 0B 94 84 71 3F 4C 09 03 90 00 [07:29:07]wFMCommunicate OK [07:29:07]SAM_PROTO_SignData done [07:29:07]FM_MakeSignedData done [07:29:07]CreateOFDProtocolMessage [07:29:07]wFMCommunicate request_size=4 [07:29:07]MH_SAM_APDU [07:29:07]CAPDU: 80 11 00 00 [07:29:07]Write to MH i2c: E2 08 00 B3 13 80 11 00 00 00 00 00 00 40 [07:29:07]Write i2c OK [07:29:07]MH_I2C_Read... [07:29:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:29:07]Read from MH i2c: E2 [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: E2 17 00 [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: E2 17 00 B3 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 97 [07:29:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:29:07]wFMCommunicate OK [07:29:07]CreateOFDProtocolMessage done [07:29:07]OFDSenderStorePacket 228094 [07:29:07]StoreOFDPacket docnum=228094 [07:29:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 97 02 07 01 D6 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 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 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 44 54 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FE 7A 03 00 35 04 06 00 27 7E 78 D4 58 C0 0B 94 84 71 3F 4C 09 03 [07:29:07]CheckFolder [07:29:07]dirname=/storage/ofd_packets [07:29:07]CheckFolder done [07:29:07]ProducePacketName [07:29:07]name=ofd_packets/00228094 [07:29:07]NVStorageSaveData ofd_packets/00228094 [07:29:07]File name is /storage/ofd_packets/00228094 [07:29:07]Write 301 bytes [07:29:07]NVStorageSaveData done [07:29:07]OFDSenderStorePacket done [07:29:07]KKMCreateOFDPacket done [07:29:07]NVStorageSaveData kkm_last_timestamp [07:29:07]File name is /storage/kkm_last_timestamp [07:29:07]Write 4 bytes [07:29:07]NVStorageSaveData done [07:29:07]ExternCall_PrintAddStr [07:29:07]wPrintStart [07:29:07]Write to MH i2c: 01 00 00 B4 13 C7 [07:29:07]Write i2c OK [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: 01 [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: 01 07 00 [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: 01 07 00 B4 13 00 00 00 00 00 FF 0F DC [07:29:07]RasterBufferAndPrint [07:29:07]line Счет N : (1)1964301 [07:29:07]line ИНН: 02508201610067 [07:29:07]line Контрольно-Кассовый Чек [07:29:07]line ПРОДАЖА [07:29:07]line ТРК (МРК, ГНК) : 43 [07:29:07]line Товар: 2710124130 [07:29:07]line Аи-92-К-5 [07:29:07]line 29.900 * 66.90 [07:29:07]line = 2000.31 [07:29:07]line НДС 12% НСП 1% [07:29:07]line > о реализуемом товаре [07:29:07]line ИТОГО: 2000.31 [07:29:07]line НСП 1% : 17.70 [07:29:07]line НДС 12% : 212.42 [07:29:07]line Наличными: 0.00 [07:29:07]line Безнал.: 2000.31 [07:29:07]line Место: АЗС № 133 "Партнер Нефть" [07:29:07]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [07:29:07]line СНО: Общий режим [07:29:07]line Чек 58 22.10.2024 07:29 [07:29:07]line Смена: 535 ФФД: 1.0 [07:29:07]line ЗНМ: 0300000091 [07:29:07]line РНМ: 0000000000091685 [07:29:07]line Версия ККМ: 001 [07:29:07]line Платежная система: Mbank [07:29:07]line ФМ: 0000000000871839 [07:29:07]line ФД: 228094 [07:29:07]line ФПД: 43424146544832 [07:29:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T072908&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228094&fm=43424146544832&tin=02508201610067®Number=0000000000091685&sum=200031 [07:29:07]written 0, free lines is 4095 [07:29:07]OFD Sender: Processing packet 228094 [packets to send 38, broken 37] [07:29:07]ProducePacketName [07:29:07]name=ofd_packets/00228094 [07:29:07]OFD Sender: To server: pG, [07:29:07]CommunicateWithHost lk.salyk.kg:30040 [07:29:07]ConnectInit lk.salyk.kg [07:29:07]Connected sock=9 [07:29:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 97 02 07 01 D6 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 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 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 44 54 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FE 7A 03 00 35 04 06 00 27 7E 78 D4 58 C0 0B 94 84 71 3F 4C 09 03 [07:29:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 B2 EB 47 00 E3 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FE 7A 03 00 F4 03 04 00 3D FF 16 67 B6 04 01 00 00 B6 43 0B 90 F4 81 00 90 [07:29:07]CommunicateWithHost err = 0 [07:29:07]CheckOFDResponse [07:29:07]1017 (14) - 77093643461234 [07:29:07]1041 (16) - 0000000000871839 [07:29:07]1040 (4) - 228094 [07:29:07]1012 (4) - 22.10.2024 01:26 [07:29:07]1206 (1) - 0 [07:29:07]OFD Sender: Remove packet 228094 [07:29:07]ProducePacketName [07:29:07]name=ofd_packets/00228094 [07:29:07]NVStorageDeleteData [07:29:07]Write to MH i2c: 01 00 00 DC 13 EF [07:29:07]Write i2c OK [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: 01 [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: 01 07 00 [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: 01 07 00 DC 13 00 00 00 00 00 DC 0C DE [07:29:07]RasterBufferAndPrint [07:29:07]line [07:29:07]line [07:29:07]line [07:29:07]line [07:29:07]line [07:29:07]written 0, free lines is 3296 [07:29:07]MH_Cut [07:29:07]Write to MH i2c: D1 01 00 E3 13 01 C8 [07:29:07]Write i2c OK [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: D1 [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: D1 01 00 [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: D1 01 00 E3 13 00 C7 [07:29:07]Write to MH i2c: 01 00 00 E4 13 F7 [07:29:07]Write i2c OK [07:29:07]MH_I2C_Read... [07:29:08]OFD Sender: No OFD packet to send [07:29:08]*** Cut start [07:29:08]*** Partial cut [07:29:08]*** CUTSNS_PIN = 1 [07:29:08]*** CUTSNS_PIN = 0 [07:29:09]*** Brake cut motor [07:29:09]Read from MH i2c: 01 [07:29:09]MH_I2C_Read... [07:29:09]*** Stop cut motor [07:29:09]*** Cut end [07:29:09]Read from MH i2c: 01 07 00 [07:29:09]MH_I2C_Read... [07:29:09]Read from MH i2c: 01 07 00 E4 13 00 00 00 00 00 FF 0F 0C [07:29:09]process_action close_receipt done [07:29:09]requested_data is exist [07:29:09]produce_requested_data [07:29:09]requested_item fm.sn is exist - process it [07:29:09]wFMCommunicate request_size=4 [07:29:09]MH_SAM_APDU [07:29:09]CAPDU: 80 11 00 00 [07:29:09]Write to MH i2c: E2 08 00 E5 13 80 11 00 00 00 00 00 00 72 [07:29:09]Write i2c OK [07:29:09]MH_I2C_Read... [07:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:29:09]Read from MH i2c: E2 [07:29:09]MH_I2C_Read... [07:29:09]Read from MH i2c: E2 17 00 [07:29:09]MH_I2C_Read... [07:29:09]Read from MH i2c: E2 17 00 E5 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C9 [07:29:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:29:09]wFMCommunicate OK [07:29:09]requested_item fd.num is exist - process it [07:29:09]SAM_PROTO_GetFieldsCounters [07:29:09]wFMCommunicate request_size=4 [07:29:09]MH_SAM_APDU [07:29:09]CAPDU: 80 13 00 00 [07:29:09]Write to MH i2c: E2 08 00 E6 13 80 13 00 00 00 00 00 00 75 [07:29:09]Write i2c OK [07:29:09]MH_I2C_Read... [07:29:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:29:09]Read from MH i2c: E2 [07:29:09]MH_I2C_Read... [07:29:09]Read from MH i2c: E2 62 00 [07:29:09]MH_I2C_Read... [07:29:09]Read from MH i2c: E2 62 00 E6 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FE 7A 03 00 0E 04 04 00 17 02 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 E0 [07:29:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FE 7A 03 00 0E 04 04 00 17 02 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 [07:29:09]wFMCommunicate OK [07:29:09]SAM_PROTO_GetFieldsCounters done [07:29:09]requested_item shift.num is exist - process it [07:29:09]requested_item shift.opened is exist - process it [07:29:09]req_shift_opened [07:29:09]FM_GetShiftState [07:29:09]SAM_PROTO_GetShiftState [07:29:09]wFMCommunicate request_size=4 [07:29:09]MH_SAM_APDU [07:29:09]CAPDU: 80 13 01 00 [07:29:09]Write to MH i2c: E2 08 00 E7 13 80 13 01 00 00 00 00 00 77 [07:29:09]Write i2c OK [07:29:09]MH_I2C_Read... [07:29:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:29:09]Read from MH i2c: E2 [07:29:09]MH_I2C_Read... [07:29:09]Read from MH i2c: E2 0E 00 [07:29:09]MH_I2C_Read... [07:29:09]Read from MH i2c: E2 0E 00 E7 13 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 3E [07:29:09]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [07:29:09]wFMCommunicate OK [07:29:09]SAM_PROTO_GetShiftState done [07:29:09]FM_GetShiftState done [07:29:09]req_shift_opened done [07:29:09]requested_item shift.open_date is exist - process it [07:29:09]req_shift_open_date [07:29:09]req_shift_open_date done [07:29:09]produce_requested_data done [07:29:09]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228094,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [07:29:09]process_action_free close_receipt [07:29:09]json_value_free [07:29:09]json_value_free done [07:29:09]process_json_proto returns [07:29:09]Send response to host [07:29:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228094,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [07:29:09]free response buf [07:29:09]execute_script done [07:29:09]execute_script returns [07:29:09]free content buf [07:29:09]Sock 10.Close socket [07:29:09]Sock 10.Thread stoped [07:29:13]OFD Sender: No OFD packet to send [07:29:18]OFD Sender: No OFD packet to send [07:29:23]OFD Sender: No OFD packet to send [07:29:28]OFD Sender: No OFD packet to send [07:29:33]OFD Sender: No OFD packet to send [07:29:38]OFD Sender: No OFD packet to send [07:29:43]OFD Sender: No OFD packet to send [07:29:48]OFD Sender: No OFD packet to send [07:29:53]OFD Sender: No OFD packet to send [07:29:58]OFD Sender: No OFD packet to send [07:30:03]OFD Sender: No OFD packet to send [07:30:08]OFD Sender: No OFD packet to send [07:30:13]OFD Sender: No OFD packet to send [07:30:18]OFD Sender: No OFD packet to send [07:30:23]OFD Sender: No OFD packet to send [07:30:28]OFD Sender: No OFD packet to send [07:30:33]OFD Sender: No OFD packet to send [07:30:38]OFD Sender: No OFD packet to send [07:30:43]OFD Sender: No OFD packet to send [07:30:48]OFD Sender: No OFD packet to send [07:30:53]OFD Sender: No OFD packet to send [07:30:58]OFD Sender: No OFD packet to send [07:31:03]OFD Sender: No OFD packet to send [07:31:08]OFD Sender: No OFD packet to send [07:31:13]OFD Sender: No OFD packet to send [07:31:18]OFD Sender: No OFD packet to send [07:31:23]OFD Sender: No OFD packet to send [07:31:28]OFD Sender: No OFD packet to send [07:31:33]OFD Sender: No OFD packet to send [07:31:38]OFD Sender: No OFD packet to send [07:31:43]OFD Sender: No OFD packet to send [07:31:48]OFD Sender: No OFD packet to send [07:31:49]accept exits with 7 [07:31:49]New connection [07:31:49]New thread 3066994020 created [07:31:49]Thread 3067137380 joined [07:31:49]Waiting for new connection... [07:31:49] Sock 7.Parse request [07:31:49]Sock 7.Check first char [07:31:49]Sock 7.First char is OK [07:31:49]request: POST /json_proto HTTP/1.0 [07:31:49]Method: POST [07:31:49]URL: /json_proto [07:31:49]Method is POST - this is cgi request [07:31:49]url: /json_proto [07:31:49]query_string will be loaded in cgi processing [07:31:49]execute_cgi json_proto POST (null) [07:31:49]execute_cgi path=json_proto method=POST [07:31:49]POST find Content-Length [07:31:49]Host: 172.17.44.195:8080 [07:31:49]Content-Length: 677 [07:31:49]Content-Type: application/json [07:31:49] [07:31:49]POST finish read [07:31:49]Found Content-Length = 677 [07:31:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 66.840, "sum" : 2600.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2600.00, "total" : 2600.00, "payments": [ { "type": 0, "sum" : 2600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:31:49]execute_script... [07:31:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 66.840, "sum" : 2600.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2600.00, "total" : 2600.00, "payments": [ { "type": 0, "sum" : 2600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:31:49]POST & json_proto [07:31:49]process_json_proto [07:31:49]json parsed OK: [07:31:49]protocol is kg_v1.0 [07:31:49]action value=close_receipt [07:31:49]process_action close_receipt [07:31:49]cmd_close_receipt [07:31:49]MH_GetDate [07:31:49]Write to MH i2c: F0 00 00 E8 13 EA [07:31:49]Write i2c OK [07:31:49]MH_I2C_Read... [07:31:49]Read from MH i2c: F0 [07:31:49]MH_I2C_Read... [07:31:49]Read from MH i2c: F0 09 00 [07:31:49]MH_I2C_Read... [07:31:49]Read from MH i2c: F0 09 00 E8 13 00 E8 54 17 67 82 C9 CF 66 2D [07:31:49]GetLastDocTimeStamp 1729582148 [07:31:49]current date 1729582312 [07:31:49]FM_GetShiftState [07:31:49]SAM_PROTO_GetShiftState [07:31:49]wFMCommunicate request_size=4 [07:31:49]MH_SAM_APDU [07:31:49]CAPDU: 80 13 01 00 [07:31:49]Write to MH i2c: E2 08 00 E9 13 80 13 01 00 00 00 00 00 79 [07:31:49]Write i2c OK [07:31:49]MH_I2C_Read... [07:31:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:31:49]Read from MH i2c: E2 [07:31:49]MH_I2C_Read... [07:31:49]Read from MH i2c: E2 0E 00 [07:31:49]MH_I2C_Read... [07:31:49]Read from MH i2c: E2 0E 00 E9 13 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 40 [07:31:49]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [07:31:49]wFMCommunicate OK [07:31:49]SAM_PROTO_GetShiftState done [07:31:49]FM_GetShiftState done [07:31:49]opened in 1729555538 [07:31:49]opened+sec_in_day 1729641938 [07:31:49]quantity*price = 260007 [07:31:49]sum+1 = 260009 [07:31:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 2600.00 Внесено: 2600.00 СДАЧА: 0.00 НСП 1% : 23.01 НДС 12% : 276.11 Наличными: 2600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 59 22.10.2024 07:31 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228095 ФПД: 24061129894887 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T073152&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228095&fm=24061129894887&tin=02508201610067®Number=0000000000091685&sum=260000 [07:31:50]StoreToDocumentArchive [07:31:50]shift 535 fd 228095 [07:31:50]save to /storage/0535/doc_00228095 [07:31:50]save last doc name /storage/0535/doc_00228095 to /storage/kkm_last_doc_name [07:31:50]save OK [07:31:50]Clear old archive folders... [07:31:50]ProcessDocumentItem done err = 0, tmpTLVsize=245 [07:31:50]tlvbuf is B6EEE3F0 [07:31:50]SAM_PROTO_ClearQueue [07:31:50]wFMCommunicate request_size=4 [07:31:50]MH_SAM_APDU [07:31:50]CAPDU: 80 09 00 00 [07:31:50]Write to MH i2c: E2 08 00 F6 13 80 09 00 00 00 00 00 00 7B [07:31:50]Write i2c OK [07:31:50]MH_I2C_Read... [07:31:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:31:50]Read from MH i2c: E2 [07:31:50]MH_I2C_Read... [07:31:50]Read from MH i2c: E2 03 00 [07:31:50]MH_I2C_Read... [07:31:50]Read from MH i2c: E2 03 00 F6 13 00 90 00 7D [07:31:50]RAPDU: 90 00 [07:31:50]wFMCommunicate OK [07:31:50]SAM_PROTO_ClearQueue done [07:31:50]KKMCreateOFDPacket [07:31:50]OFDProtocolAddRootSTLVToBuf [07:31:50]FM_MakeSignedData [07:31:50]FM_MakeSignedData [07:31:50]SAM_PROTO_SignData [07:31:50]wFMCommunicate request_size=4 [07:31:50]MH_SAM_APDU [07:31:50]CAPDU: 80 0D 01 02 [07:31:50]Write to MH i2c: E2 08 00 F7 13 80 0D 01 02 00 00 00 00 83 [07:31:50]Write i2c OK [07:31:50]MH_I2C_Read... [07:31:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:31:50]Read from MH i2c: E2 [07:31:50]MH_I2C_Read... [07:31:50]Read from MH i2c: E2 03 00 [07:31:50]MH_I2C_Read... [07:31:50]Read from MH i2c: E2 03 00 F7 13 00 90 00 7E [07:31:50]RAPDU: 90 00 [07:31:50]wFMCommunicate OK [07:31:50]wFMCommunicate request_size=254 [07:31:50]MH_SAM_APDU [07:31:50]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 18 05 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 A8 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 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 DB 6B 00 00 00 00 07 04 06 00 A0 F7 03 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 E8 54 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FF 7A 03 00 35 04 06 00 15 E2 2B 19 AB E7 [07:31:50]Write to MH i2c: E2 01 01 F8 13 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 18 05 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 A8 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 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 DB 6B 00 00 00 00 07 04 06 00 A0 F7 03 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 E8 54 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FF 7A 03 00 35 04 06 00 15 E2 2B 19 AB E7 00 00 12 [07:31:50]Write i2c OK [07:31:50]MH_I2C_Read... [07:31:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:31:51]Read from MH i2c: E2 [07:31:51]MH_I2C_Read... [07:31:51]Read from MH i2c: E2 03 00 [07:31:51]MH_I2C_Read... [07:31:51]Read from MH i2c: E2 03 00 F8 13 00 90 00 7F [07:31:51]RAPDU: 90 00 [07:31:51]wFMCommunicate OK [07:31:51]wFMCommunicate request_size=4 [07:31:51]MH_SAM_APDU [07:31:51]CAPDU: 80 0D 03 02 [07:31:51]Write to MH i2c: E2 08 00 F9 13 80 0D 03 02 00 00 00 00 87 [07:31:51]Write i2c OK [07:31:51]MH_I2C_Read... [07:31:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:31:51]Read from MH i2c: E2 [07:31:51]MH_I2C_Read... [07:31:51]Read from MH i2c: E2 0B 00 [07:31:51]MH_I2C_Read... [07:31:51]Read from MH i2c: E2 0B 00 F9 13 00 9D 8F C7 7D F9 63 1E 34 90 00 A6 [07:31:51]RAPDU: 9D 8F C7 7D F9 63 1E 34 90 00 [07:31:51]wFMCommunicate OK [07:31:51]SAM_PROTO_SignData done [07:31:51]FM_MakeSignedData done [07:31:51]CreateOFDProtocolMessage [07:31:51]wFMCommunicate request_size=4 [07:31:51]MH_SAM_APDU [07:31:51]CAPDU: 80 11 00 00 [07:31:51]Write to MH i2c: E2 08 00 FA 13 80 11 00 00 00 00 00 00 87 [07:31:51]Write i2c OK [07:31:51]MH_I2C_Read... [07:31:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:31:51]Read from MH i2c: E2 [07:31:51]MH_I2C_Read... [07:31:51]Read from MH i2c: E2 17 00 [07:31:51]MH_I2C_Read... [07:31:51]Read from MH i2c: E2 17 00 FA 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DE [07:31:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:31:51]wFMCommunicate OK [07:31:51]CreateOFDProtocolMessage done [07:31:51]OFDSenderStorePacket 228095 [07:31:51]StoreOFDPacket docnum=228095 [07:31:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 9B 10 01 01 1F DC 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 18 05 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 A8 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 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 DB 6B 00 00 00 00 07 04 06 00 A0 F7 03 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 E8 54 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FF 7A 03 00 35 04 06 00 15 E2 2B 19 AB E7 9D 8F C7 7D F9 63 1E 34 [07:31:51]CheckFolder [07:31:51]dirname=/storage/ofd_packets [07:31:51]CheckFolder done [07:31:51]ProducePacketName [07:31:51]name=ofd_packets/00228095 [07:31:51]NVStorageSaveData ofd_packets/00228095 [07:31:51]File name is /storage/ofd_packets/00228095 [07:31:51]Write 295 bytes [07:31:51]NVStorageSaveData done [07:31:51]OFDSenderStorePacket done [07:31:51]KKMCreateOFDPacket done [07:31:51]NVStorageSaveData kkm_last_timestamp [07:31:51]File name is /storage/kkm_last_timestamp [07:31:51]Write 4 bytes [07:31:51]NVStorageSaveData done [07:31:51]ExternCall_PrintAddStr [07:31:51]wPrintStart [07:31:51]Write to MH i2c: 01 00 00 FB 13 0E [07:31:51]Write i2c OK [07:31:51]MH_I2C_Read... [07:31:51]Read from MH i2c: 01 [07:31:51]MH_I2C_Read... [07:31:51]Read from MH i2c: 01 07 00 [07:31:51]MH_I2C_Read... [07:31:51]Read from MH i2c: 01 07 00 FB 13 00 00 00 00 00 FF 0F 23 [07:31:51]RasterBufferAndPrint [07:31:51]line Счет N : (1)1964296 [07:31:51]line ИНН: 02508201610067 [07:31:51]line Контрольно-Кассовый Чек [07:31:51]line ПРОДАЖА [07:31:51]line ТРК (МРК, ГНК) : 71 [07:31:51]line Товар: 2711129700 [07:31:51]line ГАЗ [07:31:51]line 66.840 * 38.90 [07:31:51]line = 2600.08 [07:31:51]line НДС 12% НСП 1% [07:31:51]line > о реализуемом товаре [07:31:51]line ОКРУГЛЕНИЕ: -0.08 [07:31:51]line ИТОГО: 2600.00 [07:31:51]line Внесено: 2600.00 [07:31:51]line СДАЧА: 0.00 [07:31:51]line НСП 1% : 23.01 [07:31:51]line НДС 12% : 276.11 [07:31:51]line Наличными: 2600.00 [07:31:51]line Безнал.: 0.00 [07:31:51]line Место: АЗС № 133 "Партнер Нефть" [07:31:51]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [07:31:51]line СНО: Общий режим [07:31:51]line Чек 59 22.10.2024 07:31 [07:31:51]line Смена: 535 ФФД: 1.0 [07:31:51]line ЗНМ: 0300000091 [07:31:51]line РНМ: 0000000000091685 [07:31:51]line Версия ККМ: 001 [07:31:51]line ФМ: 0000000000871839 [07:31:51]line ФД: 228095 [07:31:51]line ФПД: 24061129894887 [07:31:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T073152&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228095&fm=24061129894887&tin=02508201610067®Number=0000000000091685&sum=260000 [07:31:51]OFD Sender: Processing packet 228095 [packets to send 38, broken 37] [07:31:51]ProducePacketName [07:31:51]name=ofd_packets/00228095 [07:31:51]OFD Sender: To server: pG, [07:31:51]CommunicateWithHost lk.salyk.kg:30040 [07:31:51]ConnectInit lk.salyk.kg [07:31:51]written 0, free lines is 4095 [07:31:51]Connected sock=10 [07:31:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 9B 10 01 01 1F DC 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 18 05 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 A8 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 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 DB 6B 00 00 00 00 07 04 06 00 A0 F7 03 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 E8 54 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FF 7A 03 00 35 04 06 00 15 E2 2B 19 AB E7 9D 8F C7 7D F9 63 1E 34 [07:31:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 D8 0F 47 00 13 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FF 7A 03 00 F4 03 04 00 E1 FF 16 67 B6 04 01 00 00 B1 B1 E0 E7 30 E8 93 51 [07:31:51]CommunicateWithHost err = 0 [07:31:51]CheckOFDResponse [07:31:51]1017 (14) - 77093643461234 [07:31:51]1041 (16) - 0000000000871839 [07:31:51]1040 (4) - 228095 [07:31:51]1012 (4) - 22.10.2024 01:29 [07:31:51]1206 (1) - 0 [07:31:51]OFD Sender: Remove packet 228095 [07:31:51]ProducePacketName [07:31:51]name=ofd_packets/00228095 [07:31:51]NVStorageDeleteData [07:31:52]Write to MH i2c: 01 00 00 25 14 39 [07:31:52]Write i2c OK [07:31:52]MH_I2C_Read... [07:31:52]Read from MH i2c: 01 [07:31:52]MH_I2C_Read... [07:31:52]Read from MH i2c: 01 07 00 [07:31:52]MH_I2C_Read... [07:31:52]Read from MH i2c: 01 07 00 25 14 00 00 00 00 00 9C 0C E8 [07:31:52]RasterBufferAndPrint [07:31:52]line [07:31:52]line [07:31:52]line [07:31:52]line [07:31:52]line [07:31:52]written 0, free lines is 3233 [07:31:52]MH_Cut [07:31:52]Write to MH i2c: D1 01 00 2C 14 01 12 [07:31:52]Write i2c OK [07:31:52]MH_I2C_Read... [07:31:52]Read from MH i2c: D1 [07:31:52]MH_I2C_Read... [07:31:52]Read from MH i2c: D1 01 00 [07:31:52]MH_I2C_Read... [07:31:52]Read from MH i2c: D1 01 00 2C 14 00 11 [07:31:52]Write to MH i2c: 01 00 00 2D 14 41 [07:31:52]Write i2c OK [07:31:52]MH_I2C_Read... [07:31:52]OFD Sender: No OFD packet to send [07:31:53]*** Cut start [07:31:53]*** Partial cut [07:31:53]*** CUTSNS_PIN = 1 [07:31:53]*** CUTSNS_PIN = 0 [07:31:53]*** Brake cut motor [07:31:53]Read from MH i2c: 01 [07:31:53]MH_I2C_Read... [07:31:53]*** Stop cut motor [07:31:53]*** Cut end [07:31:53]Read from MH i2c: 01 07 00 [07:31:53]MH_I2C_Read... [07:31:53]Read from MH i2c: 01 07 00 2D 14 00 00 00 00 00 FF 0F 56 [07:31:53]process_action close_receipt done [07:31:53]requested_data is exist [07:31:53]produce_requested_data [07:31:53]requested_item fm.sn is exist - process it [07:31:53]wFMCommunicate request_size=4 [07:31:53]MH_SAM_APDU [07:31:53]CAPDU: 80 11 00 00 [07:31:53]Write to MH i2c: E2 08 00 2E 14 80 11 00 00 00 00 00 00 BC [07:31:53]Write i2c OK [07:31:53]MH_I2C_Read... [07:31:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:31:53]Read from MH i2c: E2 [07:31:53]MH_I2C_Read... [07:31:53]Read from MH i2c: E2 17 00 [07:31:53]MH_I2C_Read... [07:31:53]Read from MH i2c: E2 17 00 2E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 13 [07:31:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:31:53]wFMCommunicate OK [07:31:53]requested_item fd.num is exist - process it [07:31:53]SAM_PROTO_GetFieldsCounters [07:31:53]wFMCommunicate request_size=4 [07:31:53]MH_SAM_APDU [07:31:53]CAPDU: 80 13 00 00 [07:31:53]Write to MH i2c: E2 08 00 2F 14 80 13 00 00 00 00 00 00 BF [07:31:53]Write i2c OK [07:31:53]MH_I2C_Read... [07:31:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:31:53]Read from MH i2c: E2 [07:31:53]MH_I2C_Read... [07:31:53]Read from MH i2c: E2 62 00 [07:31:53]MH_I2C_Read... [07:31:53]Read from MH i2c: E2 62 00 2F 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FF 7A 03 00 0E 04 04 00 17 02 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 2E [07:31:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FF 7A 03 00 0E 04 04 00 17 02 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 [07:31:53]wFMCommunicate OK [07:31:53]SAM_PROTO_GetFieldsCounters done [07:31:53]requested_item shift.num is exist - process it [07:31:53]requested_item shift.opened is exist - process it [07:31:53]req_shift_opened [07:31:53]FM_GetShiftState [07:31:53]SAM_PROTO_GetShiftState [07:31:53]wFMCommunicate request_size=4 [07:31:53]MH_SAM_APDU [07:31:53]CAPDU: 80 13 01 00 [07:31:53]Write to MH i2c: E2 08 00 30 14 80 13 01 00 00 00 00 00 C1 [07:31:53]Write i2c OK [07:31:53]MH_I2C_Read... [07:31:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:31:54]Read from MH i2c: E2 [07:31:54]MH_I2C_Read... [07:31:54]Read from MH i2c: E2 0E 00 [07:31:54]MH_I2C_Read... [07:31:54]Read from MH i2c: E2 0E 00 30 14 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 88 [07:31:54]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [07:31:54]wFMCommunicate OK [07:31:54]SAM_PROTO_GetShiftState done [07:31:54]FM_GetShiftState done [07:31:54]req_shift_opened done [07:31:54]requested_item shift.open_date is exist - process it [07:31:54]req_shift_open_date [07:31:54]req_shift_open_date done [07:31:54]produce_requested_data done [07:31:54]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228095,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [07:31:54]process_action_free close_receipt [07:31:54]json_value_free [07:31:54]json_value_free done [07:31:54]process_json_proto returns [07:31:54]Send response to host [07:31:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228095,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [07:31:54]free response buf [07:31:54]execute_script done [07:31:54]execute_script returns [07:31:54]free content buf [07:31:54]Sock 7.Close socket [07:31:54]Sock 7.Thread stoped [07:31:57]OFD Sender: No OFD packet to send [07:32:02]OFD Sender: No OFD packet to send [07:32:07]OFD Sender: No OFD packet to send [07:32:12]OFD Sender: No OFD packet to send [07:32:17]OFD Sender: No OFD packet to send [07:32:22]OFD Sender: No OFD packet to send [07:32:27]OFD Sender: No OFD packet to send [07:32:32]OFD Sender: No OFD packet to send [07:32:37]OFD Sender: No OFD packet to send [07:32:42]OFD Sender: No OFD packet to send [07:32:47]OFD Sender: No OFD packet to send [07:32:52]OFD Sender: No OFD packet to send [07:32:57]OFD Sender: No OFD packet to send [07:33:02]OFD Sender: No OFD packet to send [07:33:07]OFD Sender: No OFD packet to send [07:33:12]OFD Sender: No OFD packet to send [07:33:17]OFD Sender: No OFD packet to send [07:33:22]OFD Sender: No OFD packet to send [07:33:27]OFD Sender: No OFD packet to send [07:33:32]OFD Sender: No OFD packet to send [07:33:37]OFD Sender: No OFD packet to send [07:33:41]int [07:33:41]Write to MH i2c: 01 00 00 31 14 45 [07:33:41]*** FLAG_PRN_KEY set [07:33:41]Write i2c OK [07:33:41]MH_I2C_Read... [07:33:41]Read from MH i2c: 01 [07:33:41]MH_I2C_Read... [07:33:41]Read from MH i2c: 01 07 00 [07:33:41]MH_I2C_Read... [07:33:41]Read from MH i2c: 01 07 00 31 14 00 08 00 00 00 FF 0F 62 [07:33:41]state=0 [07:33:41]Key pressed [07:33:41]Feed [07:33:41]Write to MH i2c: D8 00 00 32 14 1D [07:33:41]Write i2c OK [07:33:41]MH_I2C_Read... [07:33:41]Read from MH i2c: D8 [07:33:41]MH_I2C_Read... [07:33:41]Read from MH i2c: D8 01 00 [07:33:41]MH_I2C_Read... [07:33:41]Read from MH i2c: D8 01 00 32 14 00 1E [07:33:41]int [07:33:41]Write to MH i2c: 01 00 00 33 14 47 [07:33:41]Write i2c OK [07:33:41]MH_I2C_Read... [07:33:41]Read from MH i2c: 01 [07:33:41]MH_I2C_Read... [07:33:41]Read from MH i2c: 01 07 00 [07:33:41]MH_I2C_Read... [07:33:41]Read from MH i2c: 01 07 00 33 14 00 48 00 00 00 3C 00 D2 [07:33:41]state=2 [07:33:41]Key pressed [07:33:42]OFD Sender: No OFD packet to send [07:33:43]int [07:33:43]Write to MH i2c: 01 00 00 34 14 48 [07:33:43]*** FLAG_PRN_KEY reset [07:33:43]Write i2c OK [07:33:43]MH_I2C_Read... [07:33:43]Read from MH i2c: 01 [07:33:43]MH_I2C_Read... [07:33:43]Read from MH i2c: 01 07 00 [07:33:43]MH_I2C_Read... [07:33:43]Read from MH i2c: 01 07 00 34 14 00 00 00 00 00 F6 0F 54 [07:33:43]state=2 [07:33:43]Stop feed [07:33:47]OFD Sender: No OFD packet to send [07:33:52]OFD Sender: No OFD packet to send [07:33:57]OFD Sender: No OFD packet to send [07:34:02]OFD Sender: No OFD packet to send [07:34:07]OFD Sender: No OFD packet to send [07:34:12]OFD Sender: No OFD packet to send [07:34:17]OFD Sender: No OFD packet to send [07:34:22]OFD Sender: No OFD packet to send [07:34:27]OFD Sender: No OFD packet to send [07:34:32]OFD Sender: No OFD packet to send [07:34:37]OFD Sender: No OFD packet to send [07:34:42]OFD Sender: No OFD packet to send [07:34:47]OFD Sender: No OFD packet to send [07:34:52]OFD Sender: No OFD packet to send [07:34:57]OFD Sender: No OFD packet to send [07:35:02]OFD Sender: No OFD packet to send [07:35:07]OFD Sender: No OFD packet to send [07:35:12]OFD Sender: No OFD packet to send [07:35:17]OFD Sender: No OFD packet to send [07:35:22]OFD Sender: No OFD packet to send [07:35:22]recv_with_timeout no data received [07:35:27]OFD Sender: No OFD packet to send [07:35:57]OFD Sender: No OFD packet to send [07:36:02]OFD Sender: No OFD packet to send [07:36:07]OFD Sender: No OFD packet to send [07:36:12]OFD Sender: No OFD packet to send [07:36:17]OFD Sender: No OFD packet to send [07:36:22]OFD Sender: No OFD packet to send [07:36:27]OFD Sender: No OFD packet to send [07:36:30]recv_with_timeout no data received [07:36:32]OFD Sender: No OFD packet to send [07:36:37]OFD Sender: No OFD packet to send [07:36:42]OFD Sender: No OFD packet to send [07:36:47]OFD Sender: No OFD packet to send [07:36:52]OFD Sender: No OFD packet to send [07:36:57]OFD Sender: No OFD packet to send [07:37:02]OFD Sender: No OFD packet to send [07:37:07]OFD Sender: No OFD packet to send [07:37:12]OFD Sender: No OFD packet to send [07:37:17]OFD Sender: No OFD packet to send [07:37:22]OFD Sender: No OFD packet to send [07:37:27]OFD Sender: No OFD packet to send [07:37:32]OFD Sender: No OFD packet to send [07:37:37]OFD Sender: No OFD packet to send [07:37:42]OFD Sender: No OFD packet to send [07:37:47]OFD Sender: No OFD packet to send [07:37:52]OFD Sender: No OFD packet to send [07:37:57]OFD Sender: No OFD packet to send [07:38:02]OFD Sender: No OFD packet to send [07:38:07]OFD Sender: No OFD packet to send [07:38:12]OFD Sender: No OFD packet to send [07:38:17]OFD Sender: No OFD packet to send [07:38:22]OFD Sender: No OFD packet to send [07:38:27]OFD Sender: No OFD packet to send [07:38:32]OFD Sender: No OFD packet to send [07:38:37]OFD Sender: No OFD packet to send [07:38:42]OFD Sender: No OFD packet to send [07:38:47]OFD Sender: No OFD packet to send [07:38:52]OFD Sender: No OFD packet to send [07:38:57]OFD Sender: No OFD packet to send [07:39:02]OFD Sender: No OFD packet to send [07:39:07]OFD Sender: No OFD packet to send [07:39:12]OFD Sender: No OFD packet to send [07:39:17]OFD Sender: No OFD packet to send [07:39:22]OFD Sender: No OFD packet to send [07:39:27]OFD Sender: No OFD packet to send [07:39:32]OFD Sender: No OFD packet to send [07:39:37]OFD Sender: No OFD packet to send [07:39:42]OFD Sender: No OFD packet to send [07:39:47]OFD Sender: No OFD packet to send [07:39:52]OFD Sender: No OFD packet to send [07:39:57]OFD Sender: No OFD packet to send [07:40:02]OFD Sender: No OFD packet to send [07:40:07]OFD Sender: No OFD packet to send [07:40:12]OFD Sender: No OFD packet to send [07:40:17]OFD Sender: No OFD packet to send [07:40:22]OFD Sender: No OFD packet to send [07:40:27]OFD Sender: No OFD packet to send [07:40:32]OFD Sender: No OFD packet to send [07:40:37]OFD Sender: No OFD packet to send [07:40:42]OFD Sender: No OFD packet to send [07:40:47]OFD Sender: No OFD packet to send [07:40:52]OFD Sender: No OFD packet to send [07:40:57]OFD Sender: No OFD packet to send [07:41:02]OFD Sender: No OFD packet to send [07:41:07]OFD Sender: No OFD packet to send [07:41:12]OFD Sender: No OFD packet to send [07:41:17]OFD Sender: No OFD packet to send [07:41:22]OFD Sender: No OFD packet to send [07:41: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:55]recv_with_timeout no data received [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:15]recv_with_timeout no data received [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:16]recv_with_timeout no data received [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:45]recv_with_timeout no data received [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:06]recv_with_timeout no data received [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:13]OFD Sender: No OFD packet to send [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:18]OFD Sender: No OFD packet to send [07:49:23]OFD Sender: No OFD packet to send [07:49:28]OFD Sender: No OFD packet to send [07:49:33]OFD Sender: No OFD packet to send [07:49:38]OFD Sender: No OFD packet to send [07:49:43]OFD Sender: No OFD packet to send [07:49:48]OFD Sender: No OFD packet to send [07:49:53]OFD Sender: No OFD packet to send [07:49:58]OFD Sender: No OFD packet to send [07:50:03]OFD Sender: No OFD packet to send [07:50:08]OFD Sender: No OFD packet to send [07:50:13]OFD Sender: No OFD packet to send [07:50:18]OFD Sender: No OFD packet to send [07:50:23]OFD Sender: No OFD packet to send [07:50:28]OFD Sender: No OFD packet to send [07:50:33]OFD Sender: No OFD packet to send [07:50:38]OFD Sender: No OFD packet to send [07:50:43]OFD Sender: No OFD packet to send [07:50:48]OFD Sender: No OFD packet to send [07:50:53]OFD Sender: No OFD packet to send [07:50:58]OFD Sender: No OFD packet to send [07:51:03]OFD Sender: No OFD packet to send [07:51:08]OFD Sender: No OFD packet to send [07:51:13]OFD Sender: No OFD packet to send [07:51:18]OFD Sender: No OFD packet to send [07:51:23]OFD Sender: No OFD packet to send [07:51:28]OFD Sender: No OFD packet to send [07:51:33]OFD Sender: No OFD packet to send [07:51:38]OFD Sender: No OFD packet to send [07:51:43]OFD Sender: No OFD packet to send [07:51:48]OFD Sender: No OFD packet to send [07:51:53]OFD Sender: No OFD packet to send [07:51:58]OFD Sender: No OFD packet to send [07:52:03]OFD Sender: No OFD packet to send [07:52:08]OFD Sender: No OFD packet to send [07:52:13]OFD Sender: No OFD packet to send [07:52:18]OFD Sender: No OFD packet to send [07:52:23]OFD Sender: No OFD packet to send [07:52:28]OFD Sender: No OFD packet to send [07:52:33]OFD Sender: No OFD packet to send [07:52:38]OFD Sender: No OFD packet to send [07:52:43]OFD Sender: No OFD packet to send [07:52:48]OFD Sender: No OFD packet to send [07:52:53]OFD Sender: No OFD packet to send [07:52:58]OFD Sender: No OFD packet to send [07:53:03]OFD Sender: No OFD packet to send [07:53:08]OFD Sender: No OFD packet to send [07:53:13]OFD Sender: No OFD packet to send [07:53:18]OFD Sender: No OFD packet to send [07:53:23]OFD Sender: No OFD packet to send [07:53:28]OFD Sender: No OFD packet to send [07:53:33]OFD Sender: No OFD packet to send [07:53:38]OFD Sender: No OFD packet to send [07:53:43]OFD Sender: No OFD packet to send [07:53:48]OFD Sender: No OFD packet to send [07:53:53]OFD Sender: No OFD packet to send [07:53:58]OFD Sender: No OFD packet to send [07:54:03]OFD Sender: No OFD packet to send [07:54:08]OFD Sender: No OFD packet to send [07:54:13]OFD Sender: No OFD packet to send [07:54:18]OFD Sender: No OFD packet to send [07:54:23]OFD Sender: No OFD packet to send [07:54:28]OFD Sender: No OFD packet to send [07:54:33]OFD Sender: No OFD packet to send [07:54:38]OFD Sender: No OFD packet to send [07:54:43]OFD Sender: No OFD packet to send [07:54:48]OFD Sender: No OFD packet to send [07:54:53]OFD Sender: No OFD packet to send [07:54:58]OFD Sender: No OFD packet to send [07:55:03]OFD Sender: No OFD packet to send [07:55:08]OFD Sender: No OFD packet to send [07:55:13]OFD Sender: No OFD packet to send [07:55:18]OFD Sender: No OFD packet to send [07:55:23]OFD Sender: No OFD packet to send [07:55:28]OFD Sender: No OFD packet to send [07:55:33]OFD Sender: No OFD packet to send [07:55:38]OFD Sender: No OFD packet to send [07:55:43]OFD Sender: No OFD packet to send [07:55:48]OFD Sender: No OFD packet to send [07:55:53]OFD Sender: No OFD packet to send [07:55:58]OFD Sender: No OFD packet to send [07:56:03]OFD Sender: No OFD packet to send [07:56:08]OFD Sender: No OFD packet to send [07:56:13]OFD Sender: No OFD packet to send [07:56:18]OFD Sender: No OFD packet to send [07:56:23]OFD Sender: No OFD packet to send [07:56:28]OFD Sender: No OFD packet to send [07:56:33]OFD Sender: No OFD packet to send [07:56:38]OFD Sender: No OFD packet to send [07:56:43]recv_with_timeout no data received [07:56:43]OFD Sender: No OFD packet to send [07:56:48]OFD Sender: No OFD packet to send [07:56:53]OFD Sender: No OFD packet to send [07:56:57]recv_with_timeout no data received [07:56:58]OFD Sender: No OFD packet to send [07:57:03]OFD Sender: No OFD packet to send [07:57:08]OFD Sender: No OFD packet to send [07:57:13]OFD Sender: No OFD packet to send [07:57:16]recv_with_timeout no data received [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:04]ConnectInit Can't connect to host [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:23]OFD Sender: No OFD packet to send [07:58:28]OFD Sender: No OFD packet to send [07:58:33]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [07:59:13]OFD Sender: No OFD packet to send [07:59:18]OFD Sender: No OFD packet to send [07:59:23]OFD Sender: No OFD packet to send [07:59:28]OFD Sender: No OFD packet to send [07:59:33]OFD Sender: No OFD packet to send [07:59:38]OFD Sender: No OFD packet to send [07:59:43]OFD Sender: No OFD packet to send [07:59:48]OFD Sender: No OFD packet to send [07:59:53]OFD Sender: No OFD packet to send [07:59:58]OFD Sender: No OFD packet to send [08:00:03]OFD Sender: No OFD packet to send [08:00:08]OFD Sender: No OFD packet to send [08:00:13]OFD Sender: No OFD packet to send [08:00:18]OFD Sender: No OFD packet to send [08:00:24]OFD Sender: No OFD packet to send [08:00:29]OFD Sender: No OFD packet to send [08:00:34]OFD Sender: No OFD packet to send [08:00:39]OFD Sender: No OFD packet to send [08:00:44]OFD Sender: No OFD packet to send [08:00:49]OFD Sender: No OFD packet to send [08:00:54]OFD Sender: No OFD packet to send [08:00:59]OFD Sender: No OFD packet to send [08:01:04]OFD Sender: No OFD packet to send [08:01:09]OFD Sender: No OFD packet to send [08:01:14]OFD Sender: No OFD packet to send [08:01:19]OFD Sender: No OFD packet to send [08:01:24]OFD Sender: No OFD packet to send [08:01:29]OFD Sender: No OFD packet to send [08:01:34]OFD Sender: No OFD packet to send [08:01:39]OFD Sender: No OFD packet to send [08:01:44]OFD Sender: No OFD packet to send [08:01:49]OFD Sender: No OFD packet to send [08:01:54]OFD Sender: No OFD packet to send [08:01:59]OFD Sender: No OFD packet to send [08:02:04]OFD Sender: No OFD packet to send [08:02:09]OFD Sender: No OFD packet to send [08:02:14]OFD Sender: No OFD packet to send [08:02:19]OFD Sender: No OFD packet to send [08:02:24]OFD Sender: No OFD packet to send [08:02:29]OFD Sender: No OFD packet to send [08:02:34]OFD Sender: No OFD packet to send [08:02:39]OFD Sender: No OFD packet to send [08:02:44]OFD Sender: No OFD packet to send [08:02:49]OFD Sender: No OFD packet to send [08:02:54]OFD Sender: No OFD packet to send [08:02:59]OFD Sender: No OFD packet to send [08:03:04]OFD Sender: No OFD packet to send [08:03:09]OFD Sender: No OFD packet to send [08:03:14]OFD Sender: No OFD packet to send [08:03:19]OFD Sender: No OFD packet to send [08:03:24]OFD Sender: No OFD packet to send [08:03:29]OFD Sender: No OFD packet to send [08:03:34]OFD Sender: No OFD packet to send [08:03:39]OFD Sender: No OFD packet to send [08:03:44]OFD Sender: No OFD packet to send [08:03:49]OFD Sender: No OFD packet to send [08:03:54]OFD Sender: No OFD packet to send [08:03:59]OFD Sender: No OFD packet to send [08:04:04]OFD Sender: No OFD packet to send [08:04:09]OFD Sender: No OFD packet to send [08:04:14]OFD Sender: No OFD packet to send [08:04:19]OFD Sender: No OFD packet to send [08:04:24]OFD Sender: No OFD packet to send [08:04:29]OFD Sender: No OFD packet to send [08:04:34]OFD Sender: No OFD packet to send [08:04:39]OFD Sender: No OFD packet to send [08:04:44]OFD Sender: No OFD packet to send [08:04:49]OFD Sender: No OFD packet to send [08:04:54]OFD Sender: No OFD packet to send [08:04:59]OFD Sender: No OFD packet to send [08:05:04]OFD Sender: No OFD packet to send [08:05:09]OFD Sender: No OFD packet to send [08:05:14]recv_with_timeout no data received [08:05:14]OFD Sender: No OFD packet to send [08:05:19]OFD Sender: No OFD packet to send [08:05:24]OFD Sender: No OFD packet to send [08:05:29]OFD Sender: No OFD packet to send [08:05:29]recv_with_timeout no data received [08:05:34]OFD Sender: No OFD packet to send [08:05:39]OFD Sender: No OFD packet to send [08:05:44]OFD Sender: No OFD packet to send [08:05:49]OFD Sender: No OFD packet to send [08:05:54]OFD Sender: No OFD packet to send [08:05:59]OFD Sender: No OFD packet to send [08:06:04]OFD Sender: No OFD packet to send [08:06:09]OFD Sender: No OFD packet to send [08:06:14]OFD Sender: No OFD packet to send [08:06:19]OFD Sender: No OFD packet to send [08:06:24]OFD Sender: No OFD packet to send [08:06:29]OFD Sender: No OFD packet to send [08:06:34]OFD Sender: No OFD packet to send [08:06:39]OFD Sender: No OFD packet to send [08:06:44]OFD Sender: No OFD packet to send [08:06:45]recv_with_timeout no data received [08:06:49]OFD Sender: No OFD packet to send [08:06:54]OFD Sender: No OFD packet to send [08:06:59]OFD Sender: No OFD packet to send [08:07:04]OFD Sender: No OFD packet to send [08:07:06]recv_with_timeout no data received [08:07:09]OFD Sender: No OFD packet to send [08:07:14]OFD Sender: No OFD packet to send [08:07:19]OFD Sender: No OFD packet to send [08:07:24]OFD Sender: No OFD packet to send [08:07:27]recv_with_timeout no data received [08:07:29]OFD Sender: No OFD packet to send [08:07:34]OFD Sender: No OFD packet to send [08:07:39]OFD Sender: No OFD packet to send [08:07:44]OFD Sender: No OFD packet to send [08:07:49]OFD Sender: No OFD packet to send [08:07:54]OFD Sender: No OFD packet to send [08:07:59]OFD Sender: No OFD packet to send [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:34]OFD Sender: No OFD packet to send [08:10:39]OFD Sender: No OFD packet to send [08:10:44]OFD Sender: No OFD packet to send [08:10:49]OFD Sender: No OFD packet to send [08:10:54]OFD Sender: No OFD packet to send [08:10:59]OFD Sender: No OFD packet to send [08:11:04]OFD Sender: No OFD packet to send [08:11:09]OFD Sender: No OFD packet to send [08:11:14]OFD Sender: No OFD packet to send [08:11:19]OFD Sender: No OFD packet to send [08:11:24]OFD Sender: No OFD packet to send [08:11:29]OFD Sender: No OFD packet to send [08:11:34]OFD Sender: No OFD packet to send [08:11:39]OFD Sender: No OFD packet to send [08:11:44]OFD Sender: No OFD packet to send [08:11:49]OFD Sender: No OFD packet to send [08:11:54]OFD Sender: No OFD packet to send [08:11:59]OFD Sender: No OFD packet to send [08:12:04]OFD Sender: No OFD packet to send [08:12:09]OFD Sender: No OFD packet to send [08:12:14]OFD Sender: No OFD packet to send [08:12:19]OFD Sender: No OFD packet to send [08:12:24]OFD Sender: No OFD packet to send [08:12:29]OFD Sender: No OFD packet to send [08:12:34]OFD Sender: No OFD packet to send [08:12:39]OFD Sender: No OFD packet to send [08:12:44]OFD Sender: No OFD packet to send [08:12:49]OFD Sender: No OFD packet to send [08:12:54]OFD Sender: No OFD packet to send [08:12:59]OFD Sender: No OFD packet to send [08:13:04]OFD Sender: No OFD packet to send [08:13:09]OFD Sender: No OFD packet to send [08:13:14]OFD Sender: No OFD packet to send [08:13:19]OFD Sender: No OFD packet to send [08:13:24]OFD Sender: No OFD packet to send [08:13:29]OFD Sender: No OFD packet to send [08:13:34]OFD Sender: No OFD packet to send [08:13:39]OFD Sender: No OFD packet to send [08:13:44]OFD Sender: No OFD packet to send [08:13:49]OFD Sender: No OFD packet to send [08:13:54]OFD Sender: No OFD packet to send [08:13:59]OFD Sender: No OFD packet to send [08:14:04]OFD Sender: No OFD packet to send [08:14:09]OFD Sender: No OFD packet to send [08:14:14]OFD Sender: No OFD packet to send [08:14:19]OFD Sender: No OFD packet to send [08:14:24]OFD Sender: No OFD packet to send [08:14:29]OFD Sender: No OFD packet to send [08:14:34]OFD Sender: No OFD packet to send [08:14:39]OFD Sender: No OFD packet to send [08:14:44]OFD Sender: No OFD packet to send [08:14:49]OFD Sender: No OFD packet to send [08:14:54]OFD Sender: No OFD packet to send [08:14:59]OFD Sender: No OFD packet to send [08:15:04]OFD Sender: No OFD packet to send [08:15:09]OFD Sender: No OFD packet to send [08:15:14]OFD Sender: No OFD packet to send [08:15:19]OFD Sender: No OFD packet to send [08:15:24]OFD Sender: No OFD packet to send [08:15:29]OFD Sender: No OFD packet to send [08:15:34]OFD Sender: No OFD packet to send [08:15:39]OFD Sender: No OFD packet to send [08:15:44]OFD Sender: No OFD packet to send [08:15:49]OFD Sender: No OFD packet to send [08:15:54]OFD Sender: No OFD packet to send [08:15:55]recv_with_timeout no data received [08:15:59]OFD Sender: No OFD packet to send [08:16:04]OFD Sender: No OFD packet to send [08:16:09]OFD Sender: No OFD packet to send [08:16:13]recv_with_timeout no data received [08:16:14]OFD Sender: No OFD packet to send [08:16:19]OFD Sender: No OFD packet to send [08:16:24]OFD Sender: No OFD packet to send [08:16:29]OFD Sender: No OFD packet to send [08:16:34]recv_with_timeout no data received [08:16:34]OFD Sender: No OFD packet to send [08:16:39]OFD Sender: No OFD packet to send [08:16:44]OFD Sender: No OFD packet to send [08:16:49]OFD Sender: No OFD packet to send [08:16:54]OFD Sender: No OFD packet to send [08:16:59]OFD Sender: No OFD packet to send [08:17:04]OFD Sender: No OFD packet to send [08:17:09]OFD Sender: No OFD packet to send [08:17:14]OFD Sender: No OFD packet to send [08:17:19]OFD Sender: No OFD packet to send [08:17:24]OFD Sender: No OFD packet to send [08:17:29]OFD Sender: No OFD packet to send [08:17:34]OFD Sender: No OFD packet to send [08:17:39]OFD Sender: No OFD packet to send [08:17:44]OFD Sender: No OFD packet to send [08:17:49]OFD Sender: No OFD packet to send [08:17:54]OFD Sender: No OFD packet to send [08:17:59]OFD Sender: No OFD packet to send [08:18:04]OFD Sender: No OFD packet to send [08:18:09]OFD Sender: No OFD packet to send [08:18:14]OFD Sender: No OFD packet to send [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:05]OFD Sender: No OFD packet to send [08:19:10]OFD Sender: No OFD packet to send [08:19:15]OFD Sender: No OFD packet to send [08:19:20]OFD Sender: No OFD packet to send [08:19:25]OFD Sender: No OFD packet to send [08:19:30]OFD Sender: No OFD packet to send [08:19:35]OFD Sender: No OFD packet to send [08:19:40]OFD Sender: No OFD packet to send [08:19:45]OFD Sender: No OFD packet to send [08:19:50]OFD Sender: No OFD packet to send [08:19:55]OFD Sender: No OFD packet to send [08:20:00]OFD Sender: No OFD packet to send [08:20:05]OFD Sender: No OFD packet to send [08:20:10]OFD Sender: No OFD packet to send [08:20:15]OFD Sender: No OFD packet to send [08:20:20]OFD Sender: No OFD packet to send [08:20:25]OFD Sender: No OFD packet to send [08:20:30]OFD Sender: No OFD packet to send [08:20:35]OFD Sender: No OFD packet to send [08:20:40]OFD Sender: No OFD packet to send [08:20:45]OFD Sender: No OFD packet to send [08:20:50]OFD Sender: No OFD packet to send [08:20:55]OFD Sender: No OFD packet to send [08:21:00]OFD Sender: No OFD packet to send [08:21:05]OFD Sender: No OFD packet to send [08:21:10]OFD Sender: No OFD packet to send [08:21:15]OFD Sender: No OFD packet to send [08:21:20]OFD Sender: No OFD packet to send [08:21:25]OFD Sender: No OFD packet to send [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:35]OFD Sender: No OFD packet to send [08:23:40]OFD Sender: No OFD packet to send [08:23:45]OFD Sender: No OFD packet to send [08:23:50]OFD Sender: No OFD packet to send [08:23:55]OFD Sender: No OFD packet to send [08:24:00]OFD Sender: No OFD packet to send [08:24:05]OFD Sender: No OFD packet to send [08:24:10]OFD Sender: No OFD packet to send [08:24:15]OFD Sender: No OFD packet to send [08:24:20]OFD Sender: No OFD packet to send [08:24:25]OFD Sender: No OFD packet to send [08:24:30]OFD Sender: No OFD packet to send [08:24:35]OFD Sender: No OFD packet to send [08:24:40]OFD Sender: No OFD packet to send [08:24:45]OFD Sender: No OFD packet to send [08:24:50]OFD Sender: No OFD packet to send [08:24:55]OFD Sender: No OFD packet to send [08:25:00]OFD Sender: No OFD packet to send [08:25: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:35]OFD Sender: No OFD packet to send [08:26:40]OFD Sender: No OFD packet to send [08:26:45]OFD Sender: No OFD packet to send [08:26:50]OFD Sender: No OFD packet to send [08:26:55]OFD Sender: No OFD packet to send [08:27:00]OFD Sender: No OFD packet to send [08:27:05]OFD Sender: No OFD packet to send [08:27:10]OFD Sender: No OFD packet to send [08:27:15]OFD Sender: No OFD packet to send [08:27:20]OFD Sender: No OFD packet to send [08:27:25]OFD Sender: No OFD packet to send [08:27:30]OFD Sender: No OFD packet to send [08:27:35]OFD Sender: No OFD packet to send [08:27:40]OFD Sender: No OFD packet to send [08:27:45]OFD Sender: No OFD packet to send [08:27:50]OFD Sender: No OFD packet to send [08:27:55]OFD Sender: No OFD packet to send [08:28:00]OFD Sender: No OFD packet to send [08:28:05]OFD Sender: No OFD packet to send [08:28:10]OFD Sender: No OFD packet to send [08:28:15]OFD Sender: No OFD packet to send [08:28:20]OFD Sender: No OFD packet to send [08:28:25]OFD Sender: No OFD packet to send [08:28:30]OFD Sender: No OFD packet to send [08:28:35]OFD Sender: No OFD packet to send [08:28:40]OFD Sender: No OFD packet to send [08:28:45]OFD Sender: No OFD packet to send [08:28:50]OFD Sender: No OFD packet to send [08:28:55]OFD Sender: No OFD packet to send [08:29:00]OFD Sender: No OFD packet to send [08:29:05]OFD Sender: No OFD packet to send [08:29: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:10]OFD Sender: No OFD packet to send [08:31:15]OFD Sender: No OFD packet to send [08:31:20]OFD Sender: No OFD packet to send [08:31:25]OFD Sender: No OFD packet to send [08:31:30]OFD Sender: No OFD packet to send [08:31:35]OFD Sender: No OFD packet to send [08:31:40]OFD Sender: No OFD packet to send [08:31:45]OFD Sender: No OFD packet to send [08:31:50]OFD Sender: No OFD packet to send [08:31:55]OFD Sender: No OFD packet to send [08:32:00]OFD Sender: No OFD packet to send [08:32:05]OFD Sender: No OFD packet to send [08:32:10]OFD Sender: No OFD packet to send [08:32:15]OFD Sender: No OFD packet to send [08:32:20]OFD Sender: No OFD packet to send [08:32:25]OFD Sender: No OFD packet to send [08:32:30]OFD Sender: No OFD packet to send [08:32:35]OFD Sender: No OFD packet to send [08:32:40]OFD Sender: No OFD packet to send [08:32:45]OFD Sender: No OFD packet to send [08:32:50]OFD Sender: No OFD packet to send [08:32:55]OFD Sender: No OFD packet to send [08:33:00]OFD Sender: No OFD packet to send [08:33:05]OFD Sender: No OFD packet to send [08:33:10]OFD Sender: No OFD packet to send [08:33:15]OFD Sender: No OFD packet to send [08:33:20]OFD Sender: No OFD packet to send [08:33:25]OFD Sender: No OFD packet to send [08:33:30]OFD Sender: No OFD packet to send [08:33:35]OFD Sender: No OFD packet to send [08:33:40]OFD Sender: No OFD packet to send [08:33:45]OFD Sender: No OFD packet to send [08:33:50]OFD Sender: No OFD packet to send [08:33:55]OFD Sender: No OFD packet to send [08:34:00]OFD Sender: No OFD packet to send [08:34:05]OFD Sender: No OFD packet to send [08:34:10]OFD Sender: No OFD packet to send [08:34:15]OFD Sender: No OFD packet to send [08:34:20]OFD Sender: No OFD packet to send [08:34:25]OFD Sender: No OFD packet to send [08:34:30]OFD Sender: No OFD packet to send [08:34:35]OFD Sender: No OFD packet to send [08:34:40]OFD Sender: No OFD packet to send [08:34:45]OFD Sender: No OFD packet to send [08:34:50]OFD Sender: No OFD packet to send [08:34:55]OFD Sender: No OFD packet to send [08:35:00]OFD Sender: No OFD packet to send [08:35:05]OFD Sender: No OFD packet to send [08:35:10]OFD Sender: No OFD packet to send [08:35:15]OFD Sender: No OFD packet to send [08:35:20]OFD Sender: No OFD packet to send [08:35:25]OFD Sender: No OFD packet to send [08:35:30]OFD Sender: No OFD packet to send [08:35:35]OFD Sender: No OFD packet to send [08:35:40]OFD Sender: No OFD packet to send [08:35:45]OFD Sender: No OFD packet to send [08:35:50]OFD Sender: No OFD packet to send [08:35:55]OFD Sender: No OFD packet to send [08:36:00]OFD Sender: No OFD packet to send [08:36:05]OFD Sender: No OFD packet to send [08:36:10]OFD Sender: No OFD packet to send [08:36:15]OFD Sender: No OFD packet to send [08:36:20]OFD Sender: No OFD packet to send [08:36:25]OFD Sender: No OFD packet to send [08:36:30]OFD Sender: No OFD packet to send [08:36:35]OFD Sender: No OFD packet to send [08:36:40]OFD Sender: No OFD packet to send [08:36:45]OFD Sender: No OFD packet to send [08:36:50]OFD Sender: No OFD packet to send [08:36:55]OFD Sender: No OFD packet to send [08:37:00]OFD Sender: No OFD packet to send [08:37:05]OFD Sender: No OFD packet to send [08:37:10]OFD Sender: No OFD packet to send [08:37:15]OFD Sender: No OFD packet to send [08:37:20]OFD Sender: No OFD packet to send [08:37:25]OFD Sender: No OFD packet to send [08:37:30]OFD Sender: No OFD packet to send [08:37:35]OFD Sender: No OFD packet to send [08:37:40]OFD Sender: No OFD packet to send [08:37:45]OFD Sender: No OFD packet to send [08:37:50]OFD Sender: No OFD packet to send [08:37:55]OFD Sender: No OFD packet to send [08:38:01]OFD Sender: No OFD packet to send [08:38:06]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [08:39:46]OFD Sender: No OFD packet to send [08:39:51]OFD Sender: No OFD packet to send [08:39:56]OFD Sender: No OFD packet to send [08:40:01]OFD Sender: No OFD packet to send [08:40:06]OFD Sender: No OFD packet to send [08:40:11]OFD Sender: No OFD packet to send [08:40:16]OFD Sender: No OFD packet to send [08:40:21]OFD Sender: No OFD packet to send [08:40:26]OFD Sender: No OFD packet to send [08:40:31]OFD Sender: No OFD packet to send [08:40:36]OFD Sender: No OFD packet to send [08:40:41]OFD Sender: No OFD packet to send [08:40:46]OFD Sender: No OFD packet to send [08:40:51]OFD Sender: No OFD packet to send [08:40:56]OFD Sender: No OFD packet to send [08:41:01]OFD Sender: No OFD packet to send [08:41:06]OFD Sender: No OFD packet to send [08:41:11]OFD Sender: No OFD packet to send [08:41:16]OFD Sender: No OFD packet to send [08:41:21]OFD Sender: No OFD packet to send [08:41:26]OFD Sender: No OFD packet to send [08:41:31]OFD Sender: No OFD packet to send [08:41:36]OFD Sender: No OFD packet to send [08:41:41]OFD Sender: No OFD packet to send [08:41:46]OFD Sender: No OFD packet to send [08:41:51]OFD Sender: No OFD packet to send [08:41:56]OFD Sender: No OFD packet to send [08:42:01]OFD Sender: No OFD packet to send [08:42:06]OFD Sender: No OFD packet to send [08:42:11]OFD Sender: No OFD packet to send [08:42:16]OFD Sender: No OFD packet to send [08:42:21]OFD Sender: No OFD packet to send [08:42:26]OFD Sender: No OFD packet to send [08:42:31]OFD Sender: No OFD packet to send [08:42:36]OFD Sender: No OFD packet to send [08:42:41]OFD Sender: No OFD packet to send [08:42:46]OFD Sender: No OFD packet to send [08:42:51]OFD Sender: No OFD packet to send [08:42:56]OFD Sender: No OFD packet to send [08:43:01]OFD Sender: No OFD packet to send [08:43:06]OFD Sender: No OFD packet to send [08:43:11]OFD Sender: No OFD packet to send [08:43:16]OFD Sender: No OFD packet to send [08:43:21]OFD Sender: No OFD packet to send [08:43:26]OFD Sender: No OFD packet to send [08:43:31]OFD Sender: No OFD packet to send [08:43:36]OFD Sender: No OFD packet to send [08:43:41]OFD Sender: No OFD packet to send [08:43:46]OFD Sender: No OFD packet to send [08:43:51]OFD Sender: No OFD packet to send [08:43:56]OFD Sender: No OFD packet to send [08:44:01]OFD Sender: No OFD packet to send [08:44:06]OFD Sender: No OFD packet to send [08:44:11]OFD Sender: No OFD packet to send [08:44:16]OFD Sender: No OFD packet to send [08:44:21]OFD Sender: No OFD packet to send [08:44:26]OFD Sender: No OFD packet to send [08:44:31]OFD Sender: No OFD packet to send [08:44:36]OFD Sender: No OFD packet to send [08:44:41]OFD Sender: No OFD packet to send [08:44:46]OFD Sender: No OFD packet to send [08:44:51]OFD Sender: No OFD packet to send [08:44:56]OFD Sender: No OFD packet to send [08:45:01]OFD Sender: No OFD packet to send [08:45:06]OFD Sender: No OFD packet to send [08:45:11]OFD Sender: No OFD packet to send [08:45:16]OFD Sender: No OFD packet to send [08:45:21]OFD Sender: No OFD packet to send [08:45:26]OFD Sender: No OFD packet to send [08:45:31]OFD Sender: No OFD packet to send [08:45:36]OFD Sender: No OFD packet to send [08:45:41]OFD Sender: No OFD packet to send [08:45:46]OFD Sender: No OFD packet to send [08:45:51]OFD Sender: No OFD packet to send [08:45:56]OFD Sender: No OFD packet to send [08:46:01]OFD Sender: No OFD packet to send [08:46:06]OFD Sender: No OFD packet to send [08:46:11]OFD Sender: No OFD packet to send [08:46:16]OFD Sender: No OFD packet to send [08:46:21]OFD Sender: No OFD packet to send [08:46:26]OFD Sender: No OFD packet to send [08:46:31]OFD Sender: No OFD packet to send [08:46:36]OFD Sender: No OFD packet to send [08:46:41]OFD Sender: No OFD packet to send [08:46:46]OFD Sender: No OFD packet to send [08:46:51]OFD Sender: No OFD packet to send [08:46:56]OFD Sender: No OFD packet to send [08:47:01]OFD Sender: No OFD packet to send [08:47:06]OFD Sender: No OFD packet to send [08:47:11]OFD Sender: No OFD packet to send [08:47:16]OFD Sender: No OFD packet to send [08:47:21]OFD Sender: No OFD packet to send [08:47:26]OFD Sender: No OFD packet to send [08:47:31]OFD Sender: No OFD packet to send [08:47:36]OFD Sender: No OFD packet to send [08:47:41]OFD Sender: No OFD packet to send [08:47:46]OFD Sender: No OFD packet to send [08:47:51]OFD Sender: No OFD packet to send [08:47:56]OFD Sender: No OFD packet to send [08:48:01]OFD Sender: No OFD packet to send [08:48:06]OFD Sender: No OFD packet to send [08:48:11]OFD Sender: No OFD packet to send [08:48:16]OFD Sender: No OFD packet to send [08:48:21]OFD Sender: No OFD packet to send [08:48:26]OFD Sender: No OFD packet to send [08:48:31]OFD Sender: No OFD packet to send [08:48:36]OFD Sender: No OFD packet to send [08:48:41]OFD Sender: No OFD packet to send [08:48:46]OFD Sender: No OFD packet to send [08:48:51]OFD Sender: No OFD packet to send [08:48:56]OFD Sender: No OFD packet to send [08:49:01]OFD Sender: No OFD packet to send [08:49:06]OFD Sender: No OFD packet to send [08:49:11]OFD Sender: No OFD packet to send [08:49:16]OFD Sender: No OFD packet to send [08:49:21]OFD Sender: No OFD packet to send [08:49:26]OFD Sender: No OFD packet to send [08:49:31]OFD Sender: No OFD packet to send [08:49:36]OFD Sender: No OFD packet to send [08:49:41]OFD Sender: No OFD packet to send [08:49:46]OFD Sender: No OFD packet to send [08:49:51]OFD Sender: No OFD packet to send [08:49:56]OFD Sender: No OFD packet to send [08:50:01]OFD Sender: No OFD packet to send [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:16]OFD Sender: No OFD packet to send [08:50:21]OFD Sender: No OFD packet to send [08:50:26]OFD Sender: No OFD packet to send [08:50:31]OFD Sender: No OFD packet to send [08:50:36]OFD Sender: No OFD packet to send [08:50:41]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]OFD Sender: No OFD packet to send [08:51:01]OFD Sender: No OFD packet to send [08:51:06]OFD Sender: No OFD packet to send [08:51:11]OFD Sender: No OFD packet to send [08:51:16]OFD Sender: No OFD packet to send [08:51:21]OFD Sender: No OFD packet to send [08:51:26]OFD Sender: No OFD packet to send [08:51:31]OFD Sender: No OFD packet to send [08:51:36]OFD Sender: No OFD packet to send [08:51:41]OFD Sender: No OFD packet to send [08:51:46]OFD Sender: No OFD packet to send [08:51:51]OFD Sender: No OFD packet to send [08:51:56]OFD Sender: No OFD packet to send [08:52:01]OFD Sender: No OFD packet to send [08:52:06]OFD Sender: No OFD packet to send [08:52:11]OFD Sender: No OFD packet to send [08:52:16]OFD Sender: No OFD packet to send [08:52:21]OFD Sender: No OFD packet to send [08:52:26]OFD Sender: No OFD packet to send [08:52:31]OFD Sender: No OFD packet to send [08:52:36]OFD Sender: No OFD packet to send [08:52:41]OFD Sender: No OFD packet to send [08:52:46]OFD Sender: No OFD packet to send [08:52:51]OFD Sender: No OFD packet to send [08:52:56]OFD Sender: No OFD packet to send [08:53:01]OFD Sender: No OFD packet to send [08:53:06]OFD Sender: No OFD packet to send [08:53:11]OFD Sender: No OFD packet to send [08:53:16]OFD Sender: No OFD packet to send [08:53:21]OFD Sender: No OFD packet to send [08:53:26]OFD Sender: No OFD packet to send [08:53:31]OFD Sender: No OFD packet to send [08:53:36]OFD Sender: No OFD packet to send [08:53:41]OFD Sender: No OFD packet to send [08:53:46]OFD Sender: No OFD packet to send [08:53:51]OFD Sender: No OFD packet to send [08:53:56]OFD Sender: No OFD packet to send [08:54:01]OFD Sender: No OFD packet to send [08:54:06]OFD Sender: No OFD packet to send [08:54:11]OFD Sender: No OFD packet to send [08:54:16]OFD Sender: No OFD packet to send [08:54:21]OFD Sender: No OFD packet to send [08:54:26]OFD Sender: No OFD packet to send [08:54:31]OFD Sender: No OFD packet to send [08:54:36]OFD Sender: No OFD packet to send [08:54:41]OFD Sender: No OFD packet to send [08:54:46]OFD Sender: No OFD packet to send [08:54:51]OFD Sender: No OFD packet to send [08:54:56]OFD Sender: No OFD packet to send [08:55:01]OFD Sender: No OFD packet to send [08:55:06]OFD Sender: No OFD packet to send [08:55:11]OFD Sender: No OFD packet to send [08:55:16]OFD Sender: No OFD packet to send [08:55:21]OFD Sender: No OFD packet to send [08:55:26]OFD Sender: No OFD packet to send [08:55:31]OFD Sender: No OFD packet to send [08:55:36]OFD Sender: No OFD packet to send [08:55:41]OFD Sender: No OFD packet to send [08:55:46]OFD Sender: No OFD packet to send [08:55:51]OFD Sender: No OFD packet to send [08:55:56]OFD Sender: No OFD packet to send [08:56:01]OFD Sender: No OFD packet to send [08:56:06]OFD Sender: No OFD packet to send [08:56:11]OFD Sender: No OFD packet to send [08:56:16]OFD Sender: No OFD packet to send [08:56:21]OFD Sender: No OFD packet to send [08:56:26]OFD Sender: No OFD packet to send [08:56:31]OFD Sender: No OFD packet to send [08:56:36]OFD Sender: No OFD packet to send [08:56:41]OFD Sender: No OFD packet to send [08:56:46]OFD Sender: No OFD packet to send [08:56:51]OFD Sender: No OFD packet to send [08:56:56]OFD Sender: No OFD packet to send [08:57: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:27]OFD Sender: No OFD packet to send [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:17]OFD Sender: No OFD packet to send [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:17]OFD Sender: No OFD packet to send [09:05:22]OFD Sender: No OFD packet to send [09:05:27]OFD Sender: No OFD packet to send [09:05:32]OFD Sender: No OFD packet to send [09:05:37]OFD Sender: No OFD packet to send [09:05:42]OFD Sender: No OFD packet to send [09:05:47]OFD Sender: No OFD packet to send [09:05:52]OFD Sender: No OFD packet to send [09:05:57]OFD Sender: No OFD packet to send [09:06:02]OFD Sender: No OFD packet to send [09:06:07]OFD Sender: No OFD packet to send [09:06:12]OFD Sender: No OFD packet to send [09:06:17]OFD Sender: No OFD packet to send [09:06:22]OFD Sender: No OFD packet to send [09:06:27]OFD Sender: No OFD packet to send [09:06:32]OFD Sender: No OFD packet to send [09:06:37]OFD Sender: No OFD packet to send [09:06:42]OFD Sender: No OFD packet to send [09:06:47]OFD Sender: No OFD packet to send [09:06:52]OFD Sender: No OFD packet to send [09:06:57]OFD Sender: No OFD packet to send [09:07:02]OFD Sender: No OFD packet to send [09:07:07]OFD Sender: No OFD packet to send [09:07:12]OFD Sender: No OFD packet to send [09:07:17]OFD Sender: No OFD packet to send [09:07:22]OFD Sender: No OFD packet to send [09:07:27]OFD Sender: No OFD packet to send [09:07:32]OFD Sender: No OFD packet to send [09:07:37]OFD Sender: No OFD packet to send [09:07:42]OFD Sender: No OFD packet to send [09:07:47]OFD Sender: No OFD packet to send [09:07:52]OFD Sender: No OFD packet to send [09:07:57]OFD Sender: No OFD packet to send [09:08:02]OFD Sender: No OFD packet to send [09:08:07]OFD Sender: No OFD packet to send [09:08:12]OFD Sender: No OFD packet to send [09:08:17]OFD Sender: No OFD packet to send [09:08:22]OFD Sender: No OFD packet to send [09:08:27]OFD Sender: No OFD packet to send [09:08:32]OFD Sender: No OFD packet to send [09:08:37]OFD Sender: No OFD packet to send [09:08:42]OFD Sender: No OFD packet to send [09:08:47]OFD Sender: No OFD packet to send [09:08:52]OFD Sender: No OFD packet to send [09:08:57]OFD Sender: No OFD packet to send [09:09:02]OFD Sender: No OFD packet to send [09:09:07]OFD Sender: No OFD packet to send [09:09:12]OFD Sender: No OFD packet to send [09:09:17]OFD Sender: No OFD packet to send [09:09:22]OFD Sender: No OFD packet to send [09:09:27]OFD Sender: No OFD packet to send [09:09:32]OFD Sender: No OFD packet to send [09:09:37]OFD Sender: No OFD packet to send [09:09:42]OFD Sender: No OFD packet to send [09:09:47]OFD Sender: No OFD packet to send [09:09:52]OFD Sender: No OFD packet to send [09:09:57]OFD Sender: No OFD packet to send [09:10:02]OFD Sender: No OFD packet to send [09:10:07]OFD Sender: No OFD packet to send [09:10:12]OFD Sender: No OFD packet to send [09:10:17]OFD Sender: No OFD packet to send [09:10:22]OFD Sender: No OFD packet to send [09:10:27]OFD Sender: No OFD packet to send [09:10:32]OFD Sender: No OFD packet to send [09:10:37]OFD Sender: No OFD packet to send [09:10:42]OFD Sender: No OFD packet to send [09:10:47]OFD Sender: No OFD packet to send [09:10:52]OFD Sender: No OFD packet to send [09:10:57]OFD Sender: No OFD packet to send [09:11:02]OFD Sender: No OFD packet to send [09:11:07]OFD Sender: No OFD packet to send [09:11:12]OFD Sender: No OFD packet to send [09:11:17]OFD Sender: No OFD packet to send [09:11:22]OFD Sender: No OFD packet to send [09:11:27]OFD Sender: No OFD packet to send [09:11:32]OFD Sender: No OFD packet to send [09:11:37]OFD Sender: No OFD packet to send [09:11:42]OFD Sender: No OFD packet to send [09:11:47]OFD Sender: No OFD packet to send [09:11:52]OFD Sender: No OFD packet to send [09:11:57]OFD Sender: No OFD packet to send [09:12:02]OFD Sender: No OFD packet to send [09:12:07]OFD Sender: No OFD packet to send [09:12:12]OFD Sender: No OFD packet to send [09:12:17]OFD Sender: No OFD packet to send [09:12:22]OFD Sender: No OFD packet to send [09:12:27]OFD Sender: No OFD packet to send [09:12:32]OFD Sender: No OFD packet to send [09:12:37]OFD Sender: No OFD packet to send [09:12:42]OFD Sender: No OFD packet to send [09:12:47]OFD Sender: No OFD packet to send [09:12:52]OFD Sender: No OFD packet to send [09:12:57]OFD Sender: No OFD packet to send [09:13:02]OFD Sender: No OFD packet to send [09:13:07]OFD Sender: No OFD packet to send [09:13:12]OFD Sender: No OFD packet to send [09:13:17]OFD Sender: No OFD packet to send [09:13:22]OFD Sender: No OFD packet to send [09:13:27]OFD Sender: No OFD packet to send [09:13:32]OFD Sender: No OFD packet to send [09:13:37]OFD Sender: No OFD packet to send [09:13:42]OFD Sender: No OFD packet to send [09:13:47]OFD Sender: No OFD packet to send [09:13:52]OFD Sender: No OFD packet to send [09:13:57]OFD Sender: No OFD packet to send [09:14:02]OFD Sender: No OFD packet to send [09:14:07]OFD Sender: No OFD packet to send [09:14:12]OFD Sender: No OFD packet to send [09:14:17]OFD Sender: No OFD packet to send [09:14:22]OFD Sender: No OFD packet to send [09:14:27]OFD Sender: No OFD packet to send [09:14:32]OFD Sender: No OFD packet to send [09:14:37]OFD Sender: No OFD packet to send [09:14:42]OFD Sender: No OFD packet to send [09:14:47]OFD Sender: No OFD packet to send [09:14:52]OFD Sender: No OFD packet to send [09:14:57]OFD Sender: No OFD packet to send [09:15:02]OFD Sender: No OFD packet to send [09:15:07]OFD Sender: No OFD packet to send [09:15:12]OFD Sender: No OFD packet to send [09:15:17]OFD Sender: No OFD packet to send [09:15:22]OFD Sender: No OFD packet to send [09:15:27]OFD Sender: No OFD packet to send [09:15:32]OFD Sender: No OFD packet to send [09:15:37]OFD Sender: No OFD packet to send [09:15:42]OFD Sender: No OFD packet to send [09:15:47]OFD Sender: No OFD packet to send [09:15:52]OFD Sender: No OFD packet to send [09:15:57]OFD Sender: No OFD packet to send [09:16:02]OFD Sender: No OFD packet to send [09:16:07]OFD Sender: No OFD packet to send [09:16:13]OFD Sender: No OFD packet to send [09:16:18]OFD Sender: No OFD packet to send [09:16:23]OFD Sender: No OFD packet to send [09:16:28]OFD Sender: No OFD packet to send [09:16:33]OFD Sender: No OFD packet to send [09:16:38]OFD Sender: No OFD packet to send [09:16:43]OFD Sender: No OFD packet to send [09:16:48]OFD Sender: No OFD packet to send [09:16:53]OFD Sender: No OFD packet to send [09:16:58]OFD Sender: No OFD packet to send [09:17:03]OFD Sender: No OFD packet to send [09:17:08]OFD Sender: No OFD packet to send [09:17:13]OFD Sender: No OFD packet to send [09:17:18]OFD Sender: No OFD packet to send [09:17:23]OFD Sender: No OFD packet to send [09:17:28]OFD Sender: No OFD packet to send [09:17:33]OFD Sender: No OFD packet to send [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:23]OFD Sender: No OFD packet to send [09:24:28]OFD Sender: No OFD packet to send [09:24:33]OFD Sender: No OFD packet to send [09:24:38]OFD Sender: No OFD packet to send [09:24:43]OFD Sender: No OFD packet to send [09:24:48]OFD Sender: No OFD packet to send [09:24:53]OFD Sender: No OFD packet to send [09:24:58]OFD Sender: No OFD packet to send [09:25:03]OFD Sender: No OFD packet to send [09:25:08]OFD Sender: No OFD packet to send [09:25:13]OFD Sender: No OFD packet to send [09:25:18]OFD Sender: No OFD packet to send [09:25:23]OFD Sender: No OFD packet to send [09:25:28]OFD Sender: No OFD packet to send [09:25:33]OFD Sender: No OFD packet to send [09:25:38]OFD Sender: No OFD packet to send [09:25:43]OFD Sender: No OFD packet to send [09:25:45]accept exits with 9 [09:25:45]New connection [09:25:45]New thread 3067137380 created [09:25:45]Thread 3066994020 joined [09:25:45]Waiting for new connection... [09:25:45] Sock 9.Parse request [09:25:45]Sock 9.Check first char [09:25:45]Sock 9.First char is OK [09:25:45]request: POST /json_proto HTTP/1.0 [09:25:45]Method: POST [09:25:45]URL: /json_proto [09:25:45]Method is POST - this is cgi request [09:25:45]url: /json_proto [09:25:45]query_string will be loaded in cgi processing [09:25:45]execute_cgi json_proto POST (null) [09:25:45]execute_cgi path=json_proto method=POST [09:25:45]POST find Content-Length [09:25:45]Host: 172.17.44.195:8080 [09:25:45]Content-Length: 678 [09:25:45]Content-Type: application/json [09:25:45] [09:25:45]POST finish read [09:25:45]Found Content-Length = 678 [09:25:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964429", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:25:45]execute_script... [09:25: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)1964429", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:25:45]POST & json_proto [09:25:45]process_json_proto [09:25:45]json parsed OK: [09:25:45]protocol is kg_v1.0 [09:25:45]action value=close_receipt [09:25:45]process_action close_receipt [09:25:45]cmd_close_receipt [09:25:45]MH_GetDate [09:25:45]Write to MH i2c: F0 00 00 35 14 38 [09:25:45]Write i2c OK [09:25:45]MH_I2C_Read... [09:25:45]Read from MH i2c: F0 [09:25:45]MH_I2C_Read... [09:25:45]Read from MH i2c: F0 09 00 [09:25:45]MH_I2C_Read... [09:25:45]Read from MH i2c: F0 09 00 35 14 00 9D 6F 17 67 82 C9 CF 66 4B [09:25:45]GetLastDocTimeStamp 1729582312 [09:25:45]current date 1729589149 [09:25:45]FM_GetShiftState [09:25:45]SAM_PROTO_GetShiftState [09:25:45]wFMCommunicate request_size=4 [09:25:45]MH_SAM_APDU [09:25:45]CAPDU: 80 13 01 00 [09:25:45]Write to MH i2c: E2 08 00 36 14 80 13 01 00 00 00 00 00 C7 [09:25:45]Write i2c OK [09:25:45]MH_I2C_Read... [09:25:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:46]Read from MH i2c: E2 [09:25:46]MH_I2C_Read... [09:25:46]Read from MH i2c: E2 0E 00 [09:25:46]MH_I2C_Read... [09:25:46]Read from MH i2c: E2 0E 00 36 14 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 8E [09:25:46]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:25:46]wFMCommunicate OK [09:25:46]SAM_PROTO_GetShiftState done [09:25:46]FM_GetShiftState done [09:25:46]opened in 1729555538 [09:25:46]opened+sec_in_day 1729641938 [09:25:46]quantity*price = 50041 [09:25:46]sum+1 = 50042 [09:25:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 60 22.10.2024 09:25 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228096 ФПД: 215780723198305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092549&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228096&fm=215780723198305&tin=02508201610067®Number=0000000000091685&sum=50000 [09:25:47]StoreToDocumentArchive [09:25:47]shift 535 fd 228096 [09:25:47]save to /storage/0535/doc_00228096 [09:25:47]save last doc name /storage/0535/doc_00228096 to /storage/kkm_last_doc_name [09:25:47]save OK [09:25:47]Clear old archive folders... [09:25:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:25:47]tlvbuf is 00AA3290 [09:25:47]SAM_PROTO_ClearQueue [09:25:47]wFMCommunicate request_size=4 [09:25:47]MH_SAM_APDU [09:25:47]CAPDU: 80 09 00 00 [09:25:47]Write to MH i2c: E2 08 00 43 14 80 09 00 00 00 00 00 00 C9 [09:25:47]Write i2c OK [09:25:47]MH_I2C_Read... [09:25:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:47]Read from MH i2c: E2 [09:25:47]MH_I2C_Read... [09:25:47]Read from MH i2c: E2 03 00 [09:25:47]MH_I2C_Read... [09:25:47]Read from MH i2c: E2 03 00 43 14 00 90 00 CB [09:25:47]RAPDU: 90 00 [09:25:47]wFMCommunicate OK [09:25:47]SAM_PROTO_ClearQueue done [09:25:47]KKMCreateOFDPacket [09:25:47]OFDProtocolAddRootSTLVToBuf [09:25:47]FM_MakeSignedData [09:25:47]FM_MakeSignedData [09:25:47]SAM_PROTO_SignData [09:25:47]wFMCommunicate request_size=4 [09:25:47]MH_SAM_APDU [09:25:47]CAPDU: 80 0D 01 02 [09:25:47]Write to MH i2c: E2 08 00 44 14 80 0D 01 02 00 00 00 00 D1 [09:25:47]Write i2c OK [09:25:47]MH_I2C_Read... [09:25:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:47]Read from MH i2c: E2 [09:25:47]MH_I2C_Read... [09:25:47]Read from MH i2c: E2 03 00 [09:25:47]MH_I2C_Read... [09:25:47]Read from MH i2c: E2 03 00 44 14 00 90 00 CC [09:25:47]RAPDU: 90 00 [09:25:47]wFMCommunicate OK [09:25:47]wFMCommunicate request_size=255 [09:25:47]MH_SAM_APDU [09:25: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 9D 6F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 00 7B 03 00 35 04 06 00 C4 [09:25:47]Write to MH i2c: E2 02 01 45 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 9D 6F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 00 7B 03 00 35 04 06 00 C4 00 00 89 [09:25:47]Write i2c OK [09:25:47]MH_I2C_Read... [09:25:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:47]Read from MH i2c: E2 [09:25:47]MH_I2C_Read... [09:25:47]Read from MH i2c: E2 03 00 [09:25:47]MH_I2C_Read... [09:25:47]Read from MH i2c: E2 03 00 45 14 00 90 00 CD [09:25:47]RAPDU: 90 00 [09:25:47]wFMCommunicate OK [09:25:47]wFMCommunicate request_size=10 [09:25:47]MH_SAM_APDU [09:25:47]CAPDU: 80 0D 02 02 05 40 5D 5B 09 61 [09:25:47]Write to MH i2c: E2 0D 00 46 14 80 0D 02 02 05 00 40 5D 5B 09 61 00 00 40 [09:25:47]Write i2c OK [09:25:47]MH_I2C_Read... [09:25:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:47]Read from MH i2c: E2 [09:25:47]MH_I2C_Read... [09:25:47]Read from MH i2c: E2 03 00 [09:25:47]MH_I2C_Read... [09:25:47]Read from MH i2c: E2 03 00 46 14 00 90 00 CE [09:25:47]RAPDU: 90 00 [09:25:47]wFMCommunicate OK [09:25:47]wFMCommunicate request_size=4 [09:25:47]MH_SAM_APDU [09:25:47]CAPDU: 80 0D 03 02 [09:25:47]Write to MH i2c: E2 08 00 47 14 80 0D 03 02 00 00 00 00 D6 [09:25:47]Write i2c OK [09:25:47]MH_I2C_Read... [09:25:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:47]Read from MH i2c: E2 [09:25:47]MH_I2C_Read... [09:25:47]Read from MH i2c: E2 0B 00 [09:25:47]MH_I2C_Read... [09:25:47]Read from MH i2c: E2 0B 00 47 14 00 64 04 B5 31 BB A9 77 EA 90 00 EA [09:25:47]RAPDU: 64 04 B5 31 BB A9 77 EA 90 00 [09:25:47]wFMCommunicate OK [09:25:47]SAM_PROTO_SignData done [09:25:47]FM_MakeSignedData done [09:25:47]CreateOFDProtocolMessage [09:25:47]wFMCommunicate request_size=4 [09:25:47]MH_SAM_APDU [09:25:47]CAPDU: 80 11 00 00 [09:25:47]Write to MH i2c: E2 08 00 48 14 80 11 00 00 00 00 00 00 D6 [09:25:47]Write i2c OK [09:25:47]MH_I2C_Read... [09:25:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:47]Read from MH i2c: E2 [09:25:47]MH_I2C_Read... [09:25:47]Read from MH i2c: E2 17 00 [09:25:47]MH_I2C_Read... [09:25:47]Read from MH i2c: E2 17 00 48 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2D [09:25:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:25:47]wFMCommunicate OK [09:25:47]CreateOFDProtocolMessage done [09:25:47]OFDSenderStorePacket 228096 [09:25:47]StoreOFDPacket docnum=228096 [09:25:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 22 EB 07 01 F3 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 9D 6F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 00 7B 03 00 35 04 06 00 C4 40 5D 5B 09 61 64 04 B5 31 BB A9 77 EA [09:25:47]CheckFolder [09:25:47]dirname=/storage/ofd_packets [09:25:47]CheckFolder done [09:25:47]ProducePacketName [09:25:47]name=ofd_packets/00228096 [09:25:47]NVStorageSaveData ofd_packets/00228096 [09:25:47]File name is /storage/ofd_packets/00228096 [09:25:47]Write 301 bytes [09:25:47]NVStorageSaveData done [09:25:47]OFDSenderStorePacket done [09:25:47]KKMCreateOFDPacket done [09:25:47]NVStorageSaveData kkm_last_timestamp [09:25:47]File name is /storage/kkm_last_timestamp [09:25:47]Write 4 bytes [09:25:47]NVStorageSaveData done [09:25:47]ExternCall_PrintAddStr [09:25:47]wPrintStart [09:25:47]Write to MH i2c: 01 00 00 49 14 5D [09:25:47]Write i2c OK [09:25:47]MH_I2C_Read... [09:25:47]Read from MH i2c: 01 [09:25:47]MH_I2C_Read... [09:25:47]Read from MH i2c: 01 07 00 [09:25:47]MH_I2C_Read... [09:25:47]Read from MH i2c: 01 07 00 49 14 00 00 00 00 00 FF 0F 72 [09:25:47]RasterBufferAndPrint [09:25:47]line Счет N : (1)1964429 [09:25:47]line ИНН: 02508201610067 [09:25:47]line Контрольно-Кассовый Чек [09:25:47]line ПРОДАЖА [09:25:47]line ТРК (МРК, ГНК) : 53 [09:25:47]line Товар: 2710124130 [09:25:47]line Аи-92-К-5 [09:25:47]line 7.480 * 66.90 [09:25:47]line = 500.41 [09:25:47]line НДС 12% НСП 1% [09:25:47]line > о реализуемом товаре [09:25:47]line ОКРУГЛЕНИЕ: -0.41 [09:25:47]line ИТОГО: 500.00 [09:25:47]line Внесено: 500.00 [09:25:47]line СДАЧА: 0.00 [09:25:47]line НСП 1% : 4.43 [09:25:47]line НДС 12% : 53.14 [09:25:47]line Наличными: 500.00 [09:25:47]line Безнал.: 0.00 [09:25:47]line Место: АЗС № 133 "Партнер Нефть" [09:25:47]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:25:47]line СНО: Общий режим [09:25:47]line Чек 60 22.10.2024 09:25 [09:25:47]line Смена: 535 ФФД: 1.0 [09:25:47]line ЗНМ: 0300000091 [09:25:47]line РНМ: 0000000000091685 [09:25:47]line Версия ККМ: 001 [09:25:47]line ФМ: 0000000000871839 [09:25:47]line ФД: 228096 [09:25:47]line ФПД: 215780723198305 [09:25:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092549&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228096&fm=215780723198305&tin=02508201610067®Number=0000000000091685&sum=50000 [09:25:48]OFD Sender: Processing packet 228096 [packets to send 38, broken 37] [09:25:48]ProducePacketName [09:25:48]name=ofd_packets/00228096 [09:25:48]OFD Sender: To server: pG, [09:25:48]CommunicateWithHost lk.salyk.kg:30040 [09:25:48]ConnectInit lk.salyk.kg [09:25:48]written 0, free lines is 4095 [09:25:48]Connected sock=10 [09:25:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 22 EB 07 01 F3 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 9D 6F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 00 7B 03 00 35 04 06 00 C4 40 5D 5B 09 61 64 04 B5 31 BB A9 77 EA [09:25:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 7C 8C 47 00 8E 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 00 7B 03 00 F4 03 04 00 96 1A 17 67 B6 04 01 00 00 23 B7 F9 2C E0 89 36 30 [09:25:48]CommunicateWithHost err = 0 [09:25:48]CheckOFDResponse [09:25:48]1017 (14) - 77093643461234 [09:25:48]1041 (16) - 0000000000871839 [09:25:48]1040 (4) - 228096 [09:25:48]1012 (4) - 22.10.2024 03:23 [09:25:48]1206 (1) - 0 [09:25:48]OFD Sender: Remove packet 228096 [09:25:48]ProducePacketName [09:25:48]name=ofd_packets/00228096 [09:25:48]NVStorageDeleteData [09:25:48]Write to MH i2c: 01 00 00 73 14 87 [09:25:48]Write i2c OK [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: 01 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: 01 07 00 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: 01 07 00 73 14 00 00 00 00 00 AD 0C 47 [09:25:48]RasterBufferAndPrint [09:25:48]line [09:25:48]line [09:25:48]line [09:25:48]line [09:25:48]line [09:25:48]written 0, free lines is 3249 [09:25:48]MH_Cut [09:25:48]Write to MH i2c: D1 01 00 7A 14 01 60 [09:25:48]Write i2c OK [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: D1 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: D1 01 00 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: D1 01 00 7A 14 00 5F [09:25:48]Write to MH i2c: 01 00 00 7B 14 8F [09:25:48]Write i2c OK [09:25:48]MH_I2C_Read... [09:25:48]OFD Sender: No OFD packet to send [09:25:49]*** Cut start [09:25:49]*** Partial cut [09:25:49]*** CUTSNS_PIN = 1 [09:25:49]*** CUTSNS_PIN = 0 [09:25:49]*** Brake cut motor [09:25:50]Read from MH i2c: 01 [09:25:50]MH_I2C_Read... [09:25:50]*** Stop cut motor [09:25:50]*** Cut end [09:25:50]Read from MH i2c: 01 07 00 [09:25:50]MH_I2C_Read... [09:25:50]Read from MH i2c: 01 07 00 7B 14 00 00 00 00 00 FF 0F A4 [09:25:50]process_action close_receipt done [09:25:50]requested_data is exist [09:25:50]produce_requested_data [09:25:50]requested_item fm.sn is exist - process it [09:25:50]wFMCommunicate request_size=4 [09:25:50]MH_SAM_APDU [09:25:50]CAPDU: 80 11 00 00 [09:25:50]Write to MH i2c: E2 08 00 7C 14 80 11 00 00 00 00 00 00 0A [09:25:50]Write i2c OK [09:25:50]MH_I2C_Read... [09:25:50]Read from MH i2c: E2 [09:25:50]MH_I2C_Read... [09:25:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:50]Read from MH i2c: E2 17 00 [09:25:50]MH_I2C_Read... [09:25:50]Read from MH i2c: E2 17 00 7C 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 61 [09:25:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:25:50]wFMCommunicate OK [09:25:50]requested_item fd.num is exist - process it [09:25:50]SAM_PROTO_GetFieldsCounters [09:25:50]wFMCommunicate request_size=4 [09:25:50]MH_SAM_APDU [09:25:50]CAPDU: 80 13 00 00 [09:25:50]Write to MH i2c: E2 08 00 7D 14 80 13 00 00 00 00 00 00 0D [09:25:50]Write i2c OK [09:25:50]MH_I2C_Read... [09:25:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:50]Read from MH i2c: E2 [09:25:50]MH_I2C_Read... [09:25:50]Read from MH i2c: E2 62 00 [09:25:50]MH_I2C_Read... [09:25:50]Read from MH i2c: E2 62 00 7D 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 00 7B 03 00 0E 04 04 00 17 02 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 81 [09:25:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 00 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:25:50]wFMCommunicate OK [09:25:50]SAM_PROTO_GetFieldsCounters done [09:25:50]requested_item shift.num is exist - process it [09:25:50]requested_item shift.opened is exist - process it [09:25:50]req_shift_opened [09:25:50]FM_GetShiftState [09:25:50]SAM_PROTO_GetShiftState [09:25:50]wFMCommunicate request_size=4 [09:25:50]MH_SAM_APDU [09:25:50]CAPDU: 80 13 01 00 [09:25:50]Write to MH i2c: E2 08 00 7E 14 80 13 01 00 00 00 00 00 0F [09:25:50]Write i2c OK [09:25:50]MH_I2C_Read... [09:25:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:50]Read from MH i2c: E2 [09:25:50]MH_I2C_Read... [09:25:50]Read from MH i2c: E2 0E 00 [09:25:50]MH_I2C_Read... [09:25:50]Read from MH i2c: E2 0E 00 7E 14 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 D6 [09:25:50]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:25:50]wFMCommunicate OK [09:25:50]SAM_PROTO_GetShiftState done [09:25:50]FM_GetShiftState done [09:25:50]req_shift_opened done [09:25:50]requested_item shift.open_date is exist - process it [09:25:50]req_shift_open_date [09:25:50]req_shift_open_date done [09:25:50]produce_requested_data done [09:25:50]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228096,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [09:25:50]process_action_free close_receipt [09:25:50]json_value_free [09:25:50]json_value_free done [09:25:50]process_json_proto returns [09:25:50]Send response to host [09:25:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228096,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [09:25:50]free response buf [09:25:50]execute_script done [09:25:50]execute_script returns [09:25:50]free content buf [09:25:50]Sock 9.Close socket [09:25:50]Sock 9.Thread stoped [09:25:53]OFD Sender: No OFD packet to send [09:25:58]OFD Sender: No OFD packet to send [09:26:03]OFD Sender: No OFD packet to send [09:26:08]OFD Sender: No OFD packet to send [09:26:13]OFD Sender: No OFD packet to send [09:26:18]OFD Sender: No OFD packet to send [09:26:23]OFD Sender: No OFD packet to send [09:26:28]OFD Sender: No OFD packet to send [09:26:33]OFD Sender: No OFD packet to send [09:26:38]OFD Sender: No OFD packet to send [09:26:43]OFD Sender: No OFD packet to send [09:26:44]accept exits with 7 [09:26:44]New connection [09:26:44]New thread 3066994020 created [09:26:44]Thread 3067137380 joined [09:26:44]Waiting for new connection... [09:26:44] Sock 7.Parse request [09:26:44]Sock 7.Check first char [09:26:44]Sock 7.First char is OK [09:26:44]request: POST /json_proto HTTP/1.0 [09:26:44]Method: POST [09:26:44]URL: /json_proto [09:26:44]Method is POST - this is cgi request [09:26:44]url: /json_proto [09:26:44]query_string will be loaded in cgi processing [09:26:44]execute_cgi json_proto POST (null) [09:26:44]execute_cgi path=json_proto method=POST [09:26:44]POST find Content-Length [09:26:44]Host: 172.17.44.195:8080 [09:26:44]Content-Length: 674 [09:26:44]Content-Type: application/json [09:26:44] [09:26:44]POST finish read [09:26:44]Found Content-Length = 674 [09:26:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 1.000, "sum" : 74.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 74.00, "total" : 74.00, "payments": [ { "type": 0, "sum" : 74.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:44]execute_script... [09:26: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)1964431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 1.000, "sum" : 74.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 74.00, "total" : 74.00, "payments": [ { "type": 0, "sum" : 74.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:44]POST & json_proto [09:26:44]process_json_proto [09:26:44]json parsed OK: [09:26:44]protocol is kg_v1.0 [09:26:44]action value=close_receipt [09:26:44]process_action close_receipt [09:26:44]cmd_close_receipt [09:26:44]MH_GetDate [09:26:44]Write to MH i2c: F0 00 00 7F 14 82 [09:26:44]Write i2c OK [09:26:44]MH_I2C_Read... [09:26:44]Read from MH i2c: F0 [09:26:44]MH_I2C_Read... [09:26:44]Read from MH i2c: F0 09 00 [09:26:44]MH_I2C_Read... [09:26:44]Read from MH i2c: F0 09 00 7F 14 00 D7 6F 17 67 82 C9 CF 66 CF [09:26:44]GetLastDocTimeStamp 1729589149 [09:26:44]current date 1729589207 [09:26:44]FM_GetShiftState [09:26:44]SAM_PROTO_GetShiftState [09:26:44]wFMCommunicate request_size=4 [09:26:44]MH_SAM_APDU [09:26:44]CAPDU: 80 13 01 00 [09:26:44]Write to MH i2c: E2 08 00 80 14 80 13 01 00 00 00 00 00 11 [09:26:44]Write i2c OK [09:26:44]MH_I2C_Read... [09:26:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:44]Read from MH i2c: E2 [09:26:44]MH_I2C_Read... [09:26:44]Read from MH i2c: E2 0E 00 [09:26:44]MH_I2C_Read... [09:26:44]Read from MH i2c: E2 0E 00 80 14 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 D8 [09:26:44]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:26:44]wFMCommunicate OK [09:26:44]SAM_PROTO_GetShiftState done [09:26:44]FM_GetShiftState done [09:26:44]opened in 1729555538 [09:26:44]opened+sec_in_day 1729641938 [09:26:44]quantity*price = 7420 [09:26:44]sum+1 = 7421 [09:26:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 74.00 Внесено: 74.00 СДАЧА: 0.00 НСП 1% : 0.66 НДС 12% : 7.88 Наличными: 74.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 61 22.10.2024 09:26 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228097 ФПД: 14647835068097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092647&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228097&fm=14647835068097&tin=02508201610067®Number=0000000000091685&sum=7400 [09:26:45]StoreToDocumentArchive [09:26:45]shift 535 fd 228097 [09:26:45]save to /storage/0535/doc_00228097 [09:26:45]save last doc name /storage/0535/doc_00228097 to /storage/kkm_last_doc_name [09:26:45]save OK [09:26:45]Clear old archive folders... [09:26:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:26:45]tlvbuf is 008730B0 [09:26:45]SAM_PROTO_ClearQueue [09:26:45]wFMCommunicate request_size=4 [09:26:45]MH_SAM_APDU [09:26:45]CAPDU: 80 09 00 00 [09:26:45]Write to MH i2c: E2 08 00 8D 14 80 09 00 00 00 00 00 00 13 [09:26:45]Write i2c OK [09:26:45]MH_I2C_Read... [09:26:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:45]Read from MH i2c: E2 [09:26:45]MH_I2C_Read... [09:26:45]Read from MH i2c: E2 03 00 [09:26:45]MH_I2C_Read... [09:26:45]Read from MH i2c: E2 03 00 8D 14 00 90 00 15 [09:26:45]RAPDU: 90 00 [09:26:45]wFMCommunicate OK [09:26:45]SAM_PROTO_ClearQueue done [09:26:45]KKMCreateOFDPacket [09:26:45]OFDProtocolAddRootSTLVToBuf [09:26:45]FM_MakeSignedData [09:26:45]FM_MakeSignedData [09:26:45]SAM_PROTO_SignData [09:26:45]wFMCommunicate request_size=4 [09:26:45]MH_SAM_APDU [09:26:45]CAPDU: 80 0D 01 02 [09:26:45]Write to MH i2c: E2 08 00 8E 14 80 0D 01 02 00 00 00 00 1B [09:26:45]Write i2c OK [09:26:45]MH_I2C_Read... [09:26:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:45]Read from MH i2c: E2 [09:26:45]MH_I2C_Read... [09:26:45]Read from MH i2c: E2 03 00 [09:26:45]MH_I2C_Read... [09:26:45]Read from MH i2c: E2 03 00 8E 14 00 90 00 16 [09:26:45]RAPDU: 90 00 [09:26:45]wFMCommunicate OK [09:26:45]wFMCommunicate request_size=255 [09:26:45]MH_SAM_APDU [09:26: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 E8 03 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 FC 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 03 00 00 00 00 07 04 06 00 E8 1C 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 D7 6F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 01 7B 03 00 35 04 06 00 0D [09:26:45]Write to MH i2c: E2 02 01 8F 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 FC 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 03 00 00 00 00 07 04 06 00 E8 1C 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 D7 6F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 01 7B 03 00 35 04 06 00 0D 00 00 53 [09:26:45]Write i2c OK [09:26:45]MH_I2C_Read... [09:26:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:45]Read from MH i2c: E2 [09:26:45]MH_I2C_Read... [09:26:45]Read from MH i2c: E2 03 00 [09:26:45]MH_I2C_Read... [09:26:45]Read from MH i2c: E2 03 00 8F 14 00 90 00 17 [09:26:45]RAPDU: 90 00 [09:26:45]wFMCommunicate OK [09:26:45]wFMCommunicate request_size=10 [09:26:45]MH_SAM_APDU [09:26:45]CAPDU: 80 0D 02 02 05 52 77 01 86 C1 [09:26:45]Write to MH i2c: E2 0D 00 90 14 80 0D 02 02 05 00 52 77 01 86 C1 00 00 39 [09:26:45]Write i2c OK [09:26:45]MH_I2C_Read... [09:26:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:45]Read from MH i2c: E2 [09:26:45]MH_I2C_Read... [09:26:45]Read from MH i2c: E2 03 00 [09:26:45]MH_I2C_Read... [09:26:45]Read from MH i2c: E2 03 00 90 14 00 90 00 18 [09:26:45]RAPDU: 90 00 [09:26:45]wFMCommunicate OK [09:26:45]wFMCommunicate request_size=4 [09:26:45]MH_SAM_APDU [09:26:45]CAPDU: 80 0D 03 02 [09:26:45]Write to MH i2c: E2 08 00 91 14 80 0D 03 02 00 00 00 00 20 [09:26:45]Write i2c OK [09:26:45]MH_I2C_Read... [09:26:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:45]Read from MH i2c: E2 [09:26:45]MH_I2C_Read... [09:26:45]Read from MH i2c: E2 0B 00 [09:26:45]MH_I2C_Read... [09:26:45]Read from MH i2c: E2 0B 00 91 14 00 79 48 C5 E7 50 FC 83 7B 90 00 D8 [09:26:45]RAPDU: 79 48 C5 E7 50 FC 83 7B 90 00 [09:26:45]wFMCommunicate OK [09:26:45]SAM_PROTO_SignData done [09:26:45]FM_MakeSignedData done [09:26:45]CreateOFDProtocolMessage [09:26:45]wFMCommunicate request_size=4 [09:26:45]MH_SAM_APDU [09:26:45]CAPDU: 80 11 00 00 [09:26:45]Write to MH i2c: E2 08 00 92 14 80 11 00 00 00 00 00 00 20 [09:26:45]Write i2c OK [09:26:45]MH_I2C_Read... [09:26:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:45]Read from MH i2c: E2 [09:26:45]MH_I2C_Read... [09:26:45]Read from MH i2c: E2 17 00 [09:26:45]MH_I2C_Read... [09:26:45]Read from MH i2c: E2 17 00 92 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 77 [09:26:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:26:45]wFMCommunicate OK [09:26:45]CreateOFDProtocolMessage done [09:26:45]OFDSenderStorePacket 228097 [09:26:45]StoreOFDPacket docnum=228097 [09:26:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 5F 18 07 01 72 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 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 03 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 FC 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 03 00 00 00 00 07 04 06 00 E8 1C 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 D7 6F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 01 7B 03 00 35 04 06 00 0D 52 77 01 86 C1 79 48 C5 E7 50 FC 83 7B [09:26:45]CheckFolder [09:26:45]dirname=/storage/ofd_packets [09:26:45]CheckFolder done [09:26:45]ProducePacketName [09:26:45]name=ofd_packets/00228097 [09:26:45]NVStorageSaveData ofd_packets/00228097 [09:26:45]File name is /storage/ofd_packets/00228097 [09:26:45]Write 301 bytes [09:26:45]NVStorageSaveData done [09:26:45]OFDSenderStorePacket done [09:26:45]KKMCreateOFDPacket done [09:26:45]NVStorageSaveData kkm_last_timestamp [09:26:45]File name is /storage/kkm_last_timestamp [09:26:45]Write 4 bytes [09:26:45]NVStorageSaveData done [09:26:45]ExternCall_PrintAddStr [09:26:45]wPrintStart [09:26:45]Write to MH i2c: 01 00 00 93 14 A7 [09:26:45]Write i2c OK [09:26:45]MH_I2C_Read... [09:26:45]Read from MH i2c: 01 [09:26:45]MH_I2C_Read... [09:26:45]Read from MH i2c: 01 07 00 [09:26:45]MH_I2C_Read... [09:26:45]Read from MH i2c: 01 07 00 93 14 00 00 00 00 00 FF 0F BC [09:26:45]RasterBufferAndPrint [09:26:45]line Счет N : (1)1964431 [09:26:45]line ИНН: 02508201610067 [09:26:45]line Контрольно-Кассовый Чек [09:26:45]line ПРОДАЖА [09:26:45]line ТРК (МРК, ГНК) : 44 [09:26:45]line Товар: 2710124500 [09:26:45]line Аи-95-К-5 [09:26:45]line 1.000 * 74.20 [09:26:45]line = 74.20 [09:26:45]line НДС 12% НСП 1% [09:26:45]line > о реализуемом товаре [09:26:45]line ОКРУГЛЕНИЕ: -0.20 [09:26:45]line ИТОГО: 74.00 [09:26:45]line Внесено: 74.00 [09:26:45]line СДАЧА: 0.00 [09:26:45]line НСП 1% : 0.66 [09:26:45]line НДС 12% : 7.88 [09:26:45]line Наличными: 74.00 [09:26:45]line Безнал.: 0.00 [09:26:45]line Место: АЗС № 133 "Партнер Нефть" [09:26:45]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:26:45]line СНО: Общий режим [09:26:45]line Чек 61 22.10.2024 09:26 [09:26:45]line Смена: 535 ФФД: 1.0 [09:26:45]line ЗНМ: 0300000091 [09:26:45]line РНМ: 0000000000091685 [09:26:45]line Версия ККМ: 001 [09:26:45]line ФМ: 0000000000871839 [09:26:45]line ФД: 228097 [09:26:45]line ФПД: 14647835068097 [09:26:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092647&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228097&fm=14647835068097&tin=02508201610067®Number=0000000000091685&sum=7400 [09:26:46]written 0, free lines is 4095 [09:26:46]OFD Sender: Processing packet 228097 [packets to send 38, broken 37] [09:26:46]ProducePacketName [09:26:46]name=ofd_packets/00228097 [09:26:46]OFD Sender: To server: pG, [09:26:46]CommunicateWithHost lk.salyk.kg:30040 [09:26:46]ConnectInit lk.salyk.kg [09:26:46]Connected sock=10 [09:26:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 5F 18 07 01 72 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 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 03 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 FC 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 03 00 00 00 00 07 04 06 00 E8 1C 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 D7 6F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 01 7B 03 00 35 04 06 00 0D 52 77 01 86 C1 79 48 C5 E7 50 FC 83 7B [09:26:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 5A 00 47 00 12 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 01 7B 03 00 F4 03 04 00 D0 1A 17 67 B6 04 01 00 00 4F 00 2E B0 C1 52 02 53 [09:26:46]CommunicateWithHost err = 0 [09:26:46]CheckOFDResponse [09:26:46]1017 (14) - 77093643461234 [09:26:46]1041 (16) - 0000000000871839 [09:26:46]1040 (4) - 228097 [09:26:46]1012 (4) - 22.10.2024 03:24 [09:26:46]1206 (1) - 0 [09:26:46]OFD Sender: Remove packet 228097 [09:26:46]ProducePacketName [09:26:46]name=ofd_packets/00228097 [09:26:46]NVStorageDeleteData [09:26:46]Write to MH i2c: 01 00 00 BD 14 D1 [09:26:46]Write i2c OK [09:26:46]MH_I2C_Read... [09:26:46]Read from MH i2c: 01 [09:26:46]MH_I2C_Read... [09:26:46]Read from MH i2c: 01 07 00 [09:26:46]MH_I2C_Read... [09:26:46]Read from MH i2c: 01 07 00 BD 14 00 00 00 00 00 A0 0C 84 [09:26:46]RasterBufferAndPrint [09:26:46]line [09:26:46]line [09:26:46]line [09:26:46]line [09:26:46]line [09:26:46]written 0, free lines is 3237 [09:26:46]MH_Cut [09:26:46]Write to MH i2c: D1 01 00 C4 14 01 AA [09:26:46]Write i2c OK [09:26:46]MH_I2C_Read... [09:26:46]Read from MH i2c: D1 [09:26:46]MH_I2C_Read... [09:26:46]Read from MH i2c: D1 01 00 [09:26:46]MH_I2C_Read... [09:26:46]Read from MH i2c: D1 01 00 C4 14 00 A9 [09:26:46]Write to MH i2c: 01 00 00 C5 14 D9 [09:26:46]Write i2c OK [09:26:46]MH_I2C_Read... [09:26:47]OFD Sender: No OFD packet to send [09:26:47]*** Cut start [09:26:47]*** Partial cut [09:26:47]*** CUTSNS_PIN = 1 [09:26:47]*** CUTSNS_PIN = 0 [09:26:47]*** Brake cut motor [09:26:48]Read from MH i2c: 01 [09:26:48]MH_I2C_Read... [09:26:48]*** Stop cut motor [09:26:48]*** Cut end [09:26:48]Read from MH i2c: 01 07 00 [09:26:48]MH_I2C_Read... [09:26:48]Read from MH i2c: 01 07 00 C5 14 00 00 00 00 00 FF 0F EE [09:26:48]process_action close_receipt done [09:26:48]requested_data is exist [09:26:48]produce_requested_data [09:26:48]requested_item fm.sn is exist - process it [09:26:48]wFMCommunicate request_size=4 [09:26:48]MH_SAM_APDU [09:26:48]CAPDU: 80 11 00 00 [09:26:48]Write to MH i2c: E2 08 00 C6 14 80 11 00 00 00 00 00 00 54 [09:26:48]Write i2c OK [09:26:48]MH_I2C_Read... [09:26:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:48]Read from MH i2c: E2 [09:26:48]MH_I2C_Read... [09:26:48]Read from MH i2c: E2 17 00 [09:26:48]MH_I2C_Read... [09:26:48]Read from MH i2c: E2 17 00 C6 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AB [09:26:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:26:48]wFMCommunicate OK [09:26:48]requested_item fd.num is exist - process it [09:26:48]SAM_PROTO_GetFieldsCounters [09:26:48]wFMCommunicate request_size=4 [09:26:48]MH_SAM_APDU [09:26:48]CAPDU: 80 13 00 00 [09:26:48]Write to MH i2c: E2 08 00 C7 14 80 13 00 00 00 00 00 00 57 [09:26:48]Write i2c OK [09:26:48]MH_I2C_Read... [09:26:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:48]Read from MH i2c: E2 [09:26:48]MH_I2C_Read... [09:26:48]Read from MH i2c: E2 62 00 [09:26:48]MH_I2C_Read... [09:26:48]Read from MH i2c: E2 62 00 C7 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 01 7B 03 00 0E 04 04 00 17 02 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 CF [09:26:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 01 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:48]wFMCommunicate OK [09:26:48]SAM_PROTO_GetFieldsCounters done [09:26:48]requested_item shift.num is exist - process it [09:26:48]requested_item shift.opened is exist - process it [09:26:48]req_shift_opened [09:26:48]FM_GetShiftState [09:26:48]SAM_PROTO_GetShiftState [09:26:48]wFMCommunicate request_size=4 [09:26:48]MH_SAM_APDU [09:26:48]CAPDU: 80 13 01 00 [09:26:48]Write to MH i2c: E2 08 00 C8 14 80 13 01 00 00 00 00 00 59 [09:26:48]Write i2c OK [09:26:48]MH_I2C_Read... [09:26:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:48]Read from MH i2c: E2 [09:26:48]MH_I2C_Read... [09:26:48]Read from MH i2c: E2 0E 00 [09:26:48]MH_I2C_Read... [09:26:48]Read from MH i2c: E2 0E 00 C8 14 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 20 [09:26:48]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:26:48]wFMCommunicate OK [09:26:48]SAM_PROTO_GetShiftState done [09:26:48]FM_GetShiftState done [09:26:48]req_shift_opened done [09:26:48]requested_item shift.open_date is exist - process it [09:26:48]req_shift_open_date [09:26:48]req_shift_open_date done [09:26:48]produce_requested_data done [09:26:48]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228097,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [09:26:48]process_action_free close_receipt [09:26:48]json_value_free [09:26:48]json_value_free done [09:26:48]process_json_proto returns [09:26:48]Send response to host [09:26:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228097,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [09:26:48]free response buf [09:26:48]execute_script done [09:26:48]execute_script returns [09:26:48]free content buf [09:26:48]Sock 7.Close socket [09:26:48]Sock 7.Thread stoped [09:26:48]accept exits with 9 [09:26:48]New connection [09:26:48]New thread 3067137380 created [09:26:48]Thread 3066994020 joined [09:26:48]Waiting for new connection... [09:26:48] Sock 9.Parse request [09:26:48]Sock 9.Check first char [09:26:48]Sock 9.First char is OK [09:26:48]request: POST /json_proto HTTP/1.0 [09:26:48]Method: POST [09:26:48]URL: /json_proto [09:26:48]Method is POST - this is cgi request [09:26:48]url: /json_proto [09:26:48]query_string will be loaded in cgi processing [09:26:48]execute_cgi json_proto POST (null) [09:26:48]execute_cgi path=json_proto method=POST [09:26:48]POST find Content-Length [09:26:48]Host: 172.17.44.195:8080 [09:26:48]Content-Length: 798 [09:26:48]Content-Type: application/json [09:26:48] [09:26:48]POST finish read [09:26:48]Found Content-Length = 798 [09:26:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964430", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4690467", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:48]execute_script... [09:26: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)1964430", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4690467", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:48]POST & json_proto [09:26:48]process_json_proto [09:26:48]json parsed OK: [09:26:48]protocol is kg_v1.0 [09:26:48]action value=close_receipt [09:26:48]process_action close_receipt [09:26:48]cmd_close_receipt [09:26:48]MH_GetDate [09:26:48]Write to MH i2c: F0 00 00 C9 14 CC [09:26:48]Write i2c OK [09:26:48]MH_I2C_Read... [09:26:48]Read from MH i2c: F0 [09:26:48]MH_I2C_Read... [09:26:48]Read from MH i2c: F0 09 00 [09:26:48]MH_I2C_Read... [09:26:48]Read from MH i2c: F0 09 00 C9 14 00 DC 6F 17 67 82 C9 CF 66 1E [09:26:48]GetLastDocTimeStamp 1729589207 [09:26:48]current date 1729589212 [09:26:48]FM_GetShiftState [09:26:48]SAM_PROTO_GetShiftState [09:26:48]wFMCommunicate request_size=4 [09:26:48]MH_SAM_APDU [09:26:48]CAPDU: 80 13 01 00 [09:26:48]Write to MH i2c: E2 08 00 CA 14 80 13 01 00 00 00 00 00 5B [09:26:48]Write i2c OK [09:26:48]MH_I2C_Read... [09:26:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:48]Read from MH i2c: E2 [09:26:48]MH_I2C_Read... [09:26:48]Read from MH i2c: E2 0E 00 [09:26:48]MH_I2C_Read... [09:26:48]Read from MH i2c: E2 0E 00 CA 14 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 22 [09:26:48]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:26:48]wFMCommunicate OK [09:26:48]SAM_PROTO_GetShiftState done [09:26:48]FM_GetShiftState done [09:26:48]opened in 1729555538 [09:26:48]opened+sec_in_day 1729641938 [09:26:48]quantity*price = 0 [09:26:48]sum+1 = 1 [09:26:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 62 22.10.2024 09:26 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливные Талоны 4690467 ФМ: 0000000000871839 ФД: 228098 ФПД: 2234937736044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092652&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228098&fm=2234937736044&tin=02508201610067®Number=0000000000091685&sum=0 [09:26:50]StoreToDocumentArchive [09:26:50]shift 535 fd 228098 [09:26:50]save to /storage/0535/doc_00228098 [09:26:50]save last doc name /storage/0535/doc_00228098 to /storage/kkm_last_doc_name [09:26:50]save OK [09:26:50]Clear old archive folders... [09:26:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:26:50]tlvbuf is 00A70AD0 [09:26:50]SAM_PROTO_ClearQueue [09:26:50]wFMCommunicate request_size=4 [09:26:50]MH_SAM_APDU [09:26:50]CAPDU: 80 09 00 00 [09:26:50]Write to MH i2c: E2 08 00 D7 14 80 09 00 00 00 00 00 00 5D [09:26:50]Write i2c OK [09:26:50]MH_I2C_Read... [09:26:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:50]Read from MH i2c: E2 [09:26:50]MH_I2C_Read... [09:26:50]Read from MH i2c: E2 03 00 [09:26:50]MH_I2C_Read... [09:26:50]Read from MH i2c: E2 03 00 D7 14 00 90 00 5F [09:26:50]RAPDU: 90 00 [09:26:50]wFMCommunicate OK [09:26:50]SAM_PROTO_ClearQueue done [09:26:50]KKMCreateOFDPacket [09:26:50]OFDProtocolAddRootSTLVToBuf [09:26:50]FM_MakeSignedData [09:26:50]FM_MakeSignedData [09:26:50]SAM_PROTO_SignData [09:26:50]wFMCommunicate request_size=4 [09:26:50]MH_SAM_APDU [09:26:50]CAPDU: 80 0D 01 02 [09:26:50]Write to MH i2c: E2 08 00 D8 14 80 0D 01 02 00 00 00 00 65 [09:26:50]Write i2c OK [09:26:50]MH_I2C_Read... [09:26:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:50]Read from MH i2c: E2 [09:26:50]MH_I2C_Read... [09:26:50]Read from MH i2c: E2 03 00 [09:26:50]MH_I2C_Read... [09:26:50]Read from MH i2c: E2 03 00 D8 14 00 90 00 60 [09:26:50]RAPDU: 90 00 [09:26:50]wFMCommunicate OK [09:26:50]wFMCommunicate request_size=255 [09:26:50]MH_SAM_APDU [09:26:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 DC 6F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 02 7B 03 00 35 04 06 00 02 08 5C AB [09:26:50]Write to MH i2c: E2 02 01 D9 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 DC 6F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 02 7B 03 00 35 04 06 00 02 08 5C AB 00 00 E9 [09:26:50]Write i2c OK [09:26:50]MH_I2C_Read... [09:26:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:50]Read from MH i2c: E2 [09:26:50]MH_I2C_Read... [09:26:50]Read from MH i2c: E2 03 00 [09:26:50]MH_I2C_Read... [09:26:50]Read from MH i2c: E2 03 00 D9 14 00 90 00 61 [09:26:50]RAPDU: 90 00 [09:26:50]wFMCommunicate OK [09:26:50]wFMCommunicate request_size=7 [09:26:50]MH_SAM_APDU [09:26:50]CAPDU: 80 0D 02 02 02 7B 6C [09:26:50]Write to MH i2c: E2 0A 00 DA 14 80 0D 02 02 02 00 7B 6C 00 00 53 [09:26:50]Write i2c OK [09:26:50]MH_I2C_Read... [09:26:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:50]Read from MH i2c: E2 [09:26:50]MH_I2C_Read... [09:26:50]Read from MH i2c: E2 03 00 [09:26:50]MH_I2C_Read... [09:26:50]Read from MH i2c: E2 03 00 DA 14 00 90 00 62 [09:26:50]RAPDU: 90 00 [09:26:50]wFMCommunicate OK [09:26:50]wFMCommunicate request_size=4 [09:26:50]MH_SAM_APDU [09:26:50]CAPDU: 80 0D 03 02 [09:26:50]Write to MH i2c: E2 08 00 DB 14 80 0D 03 02 00 00 00 00 6A [09:26:50]Write i2c OK [09:26:50]MH_I2C_Read... [09:26:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:50]Read from MH i2c: E2 [09:26:50]MH_I2C_Read... [09:26:50]Read from MH i2c: E2 0B 00 [09:26:50]MH_I2C_Read... [09:26:50]Read from MH i2c: E2 0B 00 DB 14 00 10 30 2A 80 E6 84 8F 74 90 00 C2 [09:26:50]RAPDU: 10 30 2A 80 E6 84 8F 74 90 00 [09:26:50]wFMCommunicate OK [09:26:50]SAM_PROTO_SignData done [09:26:50]FM_MakeSignedData done [09:26:50]CreateOFDProtocolMessage [09:26:50]wFMCommunicate request_size=4 [09:26:50]MH_SAM_APDU [09:26:50]CAPDU: 80 11 00 00 [09:26:50]Write to MH i2c: E2 08 00 DC 14 80 11 00 00 00 00 00 00 6A [09:26:50]Write i2c OK [09:26:50]MH_I2C_Read... [09:26:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:50]Read from MH i2c: E2 [09:26:50]MH_I2C_Read... [09:26:50]Read from MH i2c: E2 17 00 [09:26:50]MH_I2C_Read... [09:26:50]Read from MH i2c: E2 17 00 DC 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C1 [09:26:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:26:50]wFMCommunicate OK [09:26:50]CreateOFDProtocolMessage done [09:26:50]OFDSenderStorePacket 228098 [09:26:50]StoreOFDPacket docnum=228098 [09:26:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 54 57 04 01 2D 6F 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 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 DC 6F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 02 7B 03 00 35 04 06 00 02 08 5C AB 7B 6C 10 30 2A 80 E6 84 8F 74 [09:26:50]CheckFolder [09:26:50]dirname=/storage/ofd_packets [09:26:50]CheckFolder done [09:26:50]ProducePacketName [09:26:50]name=ofd_packets/00228098 [09:26:50]NVStorageSaveData ofd_packets/00228098 [09:26:50]File name is /storage/ofd_packets/00228098 [09:26:50]Write 298 bytes [09:26:50]NVStorageSaveData done [09:26:50]OFDSenderStorePacket done [09:26:50]KKMCreateOFDPacket done [09:26:50]NVStorageSaveData kkm_last_timestamp [09:26:50]File name is /storage/kkm_last_timestamp [09:26:50]Write 4 bytes [09:26:50]NVStorageSaveData done [09:26:50]ExternCall_PrintAddStr [09:26:50]wPrintStart [09:26:50]Write to MH i2c: 01 00 00 DD 14 F1 [09:26:50]Write i2c OK [09:26:50]MH_I2C_Read... [09:26:50]Read from MH i2c: 01 [09:26:50]MH_I2C_Read... [09:26:50]Read from MH i2c: 01 07 00 [09:26:50]MH_I2C_Read... [09:26:50]Read from MH i2c: 01 07 00 DD 14 00 00 00 00 00 FF 0F 06 [09:26:50]RasterBufferAndPrint [09:26:50]line Счет N : (1)1964430 [09:26:50]line ИНН: 02508201610067 [09:26:50]line Контрольно-Кассовый Чек [09:26:50]line ПРОДАЖА [09:26:50]line ТРК (МРК, ГНК) : 11 [09:26:50]line Товар: 2710194210 [09:26:50]line ДТ-К-5 [09:26:50]line 20.000 * 0.00 [09:26:50]line = 0.00 [09:26:50]line НДС 12% НСП 1% [09:26:50]line > о реализуемом товаре [09:26:50]line ИТОГО: 0.00 [09:26:50]line НСП 1% : 0.00 [09:26:50]line НДС 12% : 0.00 [09:26:50]line Наличными: 0.00 [09:26:50]line Безнал.: 0.00 [09:26:50]line Место: АЗС № 133 "Партнер Нефть" [09:26:50]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:26:50]line СНО: Общий режим [09:26:50]line Чек 62 22.10.2024 09:26 [09:26:50]line Смена: 535 ФФД: 1.0 [09:26:50]line ЗНМ: 0300000091 [09:26:50]line РНМ: 0000000000091685 [09:26:50]line Версия ККМ: 001 [09:26:50]line Талоны: Топливные Талоны [09:26:50]line 4690467 [09:26:50]line ФМ: 0000000000871839 [09:26:51]line ФД: 228098 [09:26:51]line ФПД: 2234937736044 [09:26:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092652&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228098&fm=2234937736044&tin=02508201610067®Number=0000000000091685&sum=0 [09:26:51]OFD Sender: Processing packet 228098 [packets to send 38, broken 37] [09:26:51]ProducePacketName [09:26:51]name=ofd_packets/00228098 [09:26:51]written 0, free lines is 4095 [09:26:51]OFD Sender: To server: pG, [09:26:51]CommunicateWithHost lk.salyk.kg:30040 [09:26:51]ConnectInit lk.salyk.kg [09:26:51]Connected sock=7 [09:26:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 54 57 04 01 2D 6F 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 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 DC 6F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 02 7B 03 00 35 04 06 00 02 08 5C AB 7B 6C 10 30 2A 80 E6 84 8F 74 [09:26:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 5C 2E 47 00 CB 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 02 7B 03 00 F4 03 04 00 D5 1A 17 67 B6 04 01 00 00 6A FF 22 98 2A CE 7C 3C [09:26:51]CommunicateWithHost err = 0 [09:26:51]CheckOFDResponse [09:26:51]1017 (14) - 77093643461234 [09:26:51]1041 (16) - 0000000000871839 [09:26:51]1040 (4) - 228098 [09:26:51]1012 (4) - 22.10.2024 03:24 [09:26:51]1206 (1) - 0 [09:26:51]OFD Sender: Remove packet 228098 [09:26:51]ProducePacketName [09:26:51]name=ofd_packets/00228098 [09:26:51]NVStorageDeleteData [09:26:51]Write to MH i2c: 01 00 00 06 15 1B [09:26:51]Write i2c OK [09:26:51]MH_I2C_Read... [09:26:51]Read from MH i2c: 01 [09:26:51]MH_I2C_Read... [09:26:51]Read from MH i2c: 01 07 00 [09:26:51]MH_I2C_Read... [09:26:51]Read from MH i2c: 01 07 00 06 15 00 00 00 00 00 C7 0C F5 [09:26:51]RasterBufferAndPrint [09:26:51]line [09:26:51]line [09:26:51]line [09:26:51]line [09:26:51]line [09:26:51]written 0, free lines is 3280 [09:26:51]MH_Cut [09:26:51]Write to MH i2c: D1 01 00 0D 15 01 F4 [09:26:51]Write i2c OK [09:26:51]MH_I2C_Read... [09:26:51]Read from MH i2c: D1 [09:26:51]MH_I2C_Read... [09:26:51]Read from MH i2c: D1 01 00 [09:26:51]MH_I2C_Read... [09:26:51]Read from MH i2c: D1 01 00 0D 15 00 F3 [09:26:51]Write to MH i2c: 01 00 00 0E 15 23 [09:26:51]Write i2c OK [09:26:51]MH_I2C_Read... [09:26:52]OFD Sender: No OFD packet to send [09:26:52]*** Cut start [09:26:52]*** Partial cut [09:26:52]*** CUTSNS_PIN = 1 [09:26:52]*** CUTSNS_PIN = 0 [09:26:52]*** Brake cut motor [09:26:53]Read from MH i2c: 01 [09:26:53]MH_I2C_Read... [09:26:53]*** Stop cut motor [09:26:53]*** Cut end [09:26:53]Read from MH i2c: 01 07 00 [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: 01 07 00 0E 15 00 00 00 00 00 FF 0F 38 [09:26:53]process_action close_receipt done [09:26:53]requested_data is exist [09:26:53]produce_requested_data [09:26:53]requested_item fm.sn is exist - process it [09:26:53]wFMCommunicate request_size=4 [09:26:53]MH_SAM_APDU [09:26:53]CAPDU: 80 11 00 00 [09:26:53]Write to MH i2c: E2 08 00 0F 15 80 11 00 00 00 00 00 00 9E [09:26:53]Write i2c OK [09:26:53]MH_I2C_Read... [09:26:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:53]Read from MH i2c: E2 [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: E2 17 00 [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: E2 17 00 0F 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F5 [09:26:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:26:53]wFMCommunicate OK [09:26:53]requested_item fd.num is exist - process it [09:26:53]SAM_PROTO_GetFieldsCounters [09:26:53]wFMCommunicate request_size=4 [09:26:53]MH_SAM_APDU [09:26:53]CAPDU: 80 13 00 00 [09:26:53]Write to MH i2c: E2 08 00 10 15 80 13 00 00 00 00 00 00 A1 [09:26:53]Write i2c OK [09:26:53]MH_I2C_Read... [09:26:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:53]Read from MH i2c: E2 [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: E2 62 00 [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: E2 62 00 10 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 02 7B 03 00 0E 04 04 00 17 02 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 1D [09:26:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 02 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:53]wFMCommunicate OK [09:26:53]SAM_PROTO_GetFieldsCounters done [09:26:53]requested_item shift.num is exist - process it [09:26:53]requested_item shift.opened is exist - process it [09:26:53]req_shift_opened [09:26:53]FM_GetShiftState [09:26:53]SAM_PROTO_GetShiftState [09:26:53]wFMCommunicate request_size=4 [09:26:53]MH_SAM_APDU [09:26:53]CAPDU: 80 13 01 00 [09:26:53]Write to MH i2c: E2 08 00 11 15 80 13 01 00 00 00 00 00 A3 [09:26:53]Write i2c OK [09:26:53]MH_I2C_Read... [09:26:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:53]Read from MH i2c: E2 [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: E2 0E 00 [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: E2 0E 00 11 15 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 6A [09:26:53]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:26:53]wFMCommunicate OK [09:26:53]SAM_PROTO_GetShiftState done [09:26:53]FM_GetShiftState done [09:26:53]req_shift_opened done [09:26:53]requested_item shift.open_date is exist - process it [09:26:53]req_shift_open_date [09:26:53]req_shift_open_date done [09:26:53]produce_requested_data done [09:26:53]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228098,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [09:26:53]process_action_free close_receipt [09:26:53]json_value_free [09:26:53]json_value_free done [09:26:53]process_json_proto returns [09:26:53]Send response to host [09:26:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228098,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [09:26:53]free response buf [09:26:53]execute_script done [09:26:53]execute_script returns [09:26:53]free content buf [09:26:53]Sock 9.Close socket [09:26:53]Sock 9.Thread stoped [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:25]int [09:27:25]Write to MH i2c: 01 00 00 12 15 27 [09:27:25]*** FLAG_PRN_KEY set [09:27:25]Write i2c OK [09:27:25]MH_I2C_Read... [09:27:25]Read from MH i2c: 01 [09:27:25]MH_I2C_Read... [09:27:25]Read from MH i2c: 01 07 00 [09:27:25]MH_I2C_Read... [09:27:25]Read from MH i2c: 01 07 00 12 15 00 08 00 00 00 FF 0F 44 [09:27:25]state=0 [09:27:25]Key pressed [09:27:25]Feed [09:27:25]Write to MH i2c: D8 00 00 13 15 FF [09:27:25]Write i2c OK [09:27:25]MH_I2C_Read... [09:27:25]Read from MH i2c: D8 [09:27:25]MH_I2C_Read... [09:27:25]Read from MH i2c: D8 01 00 [09:27:25]MH_I2C_Read... [09:27:25]Read from MH i2c: D8 01 00 13 15 00 00 [09:27:25]int [09:27:25]Write to MH i2c: 01 00 00 14 15 29 [09:27:25]Write i2c OK [09:27:25]MH_I2C_Read... [09:27:25]Read from MH i2c: 01 [09:27:25]MH_I2C_Read... [09:27:25]Read from MH i2c: 01 07 00 [09:27:25]MH_I2C_Read... [09:27:25]Read from MH i2c: 01 07 00 14 15 00 48 00 00 00 3C 00 B4 [09:27:25]state=2 [09:27:25]Key pressed [09:27:25]int [09:27:25]Write to MH i2c: 01 00 00 15 15 2A [09:27:25]*** FLAG_PRN_KEY reset [09:27:25]Write i2c OK [09:27:25]MH_I2C_Read... [09:27:25]Read from MH i2c: 01 [09:27:25]MH_I2C_Read... [09:27:25]Read from MH i2c: 01 07 00 [09:27:25]MH_I2C_Read... [09:27:25]Read from MH i2c: 01 07 00 15 15 00 00 00 00 00 F6 0F 36 [09:27:25]state=2 [09:27:25]Stop feed [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:27]OFD Sender: No OFD packet to send [09:30:32]OFD Sender: No OFD packet to send [09:30:37]OFD Sender: No OFD packet to send [09:30:42]OFD Sender: No OFD packet to send [09:30:47]OFD Sender: No OFD packet to send [09:30:52]OFD Sender: No OFD packet to send [09:30:57]OFD Sender: No OFD packet to send [09:31:02]OFD Sender: No OFD packet to send [09:31:07]OFD Sender: No OFD packet to send [09:31:12]OFD Sender: No OFD packet to send [09:31:17]OFD Sender: No OFD packet to send [09:31:22]OFD Sender: No OFD packet to send [09:31:27]OFD Sender: No OFD packet to send [09:31:32]OFD Sender: No OFD packet to send [09:31:37]OFD Sender: No OFD packet to send [09:31:42]OFD Sender: No OFD packet to send [09:31:47]OFD Sender: No OFD packet to send [09:31:52]OFD Sender: No OFD packet to send [09:31:57]OFD Sender: No OFD packet to send [09:32:02]OFD Sender: No OFD packet to send [09:32:07]OFD Sender: No OFD packet to send [09:32:12]OFD Sender: No OFD packet to send [09:32:17]OFD Sender: No OFD packet to send [09:32:22]OFD Sender: No OFD packet to send [09:32:27]OFD Sender: No OFD packet to send [09:32:32]OFD Sender: No OFD packet to send [09:32:37]OFD Sender: No OFD packet to send [09:32:42]OFD Sender: No OFD packet to send [09:32:47]OFD Sender: No OFD packet to send [09:32:52]OFD Sender: No OFD packet to send [09:32:57]OFD Sender: No OFD packet to send [09:33:02]OFD Sender: No OFD packet to send [09:33:07]OFD Sender: No OFD packet to send [09:33:12]OFD Sender: No OFD packet to send [09:33:17]OFD Sender: No OFD packet to send [09:33:22]OFD Sender: No OFD packet to send [09:33:27]OFD Sender: No OFD packet to send [09:33:32]OFD Sender: No OFD packet to send [09:33:37]OFD Sender: No OFD packet to send [09:33:42]OFD Sender: No OFD packet to send [09:33:47]OFD Sender: No OFD packet to send [09:33:52]OFD Sender: No OFD packet to send [09:33:57]OFD Sender: No OFD packet to send [09:34:02]OFD Sender: No OFD packet to send [09:34:07]OFD Sender: No OFD packet to send [09:34:12]OFD Sender: No OFD packet to send [09:34:17]OFD Sender: No OFD packet to send [09:34:22]OFD Sender: No OFD packet to send [09:34:27]OFD Sender: No OFD packet to send [09:34:32]OFD Sender: No OFD packet to send [09:34:37]OFD Sender: No OFD packet to send [09:34:42]OFD Sender: No OFD packet to send [09:34:47]OFD Sender: No OFD packet to send [09:34:52]OFD Sender: No OFD packet to send [09:34:57]OFD Sender: No OFD packet to send [09:35:02]OFD Sender: No OFD packet to send [09:35:07]OFD Sender: No OFD packet to send [09:35:12]OFD Sender: No OFD packet to send [09:35:17]OFD Sender: No OFD packet to send [09:35:22]OFD Sender: No OFD packet to send [09:35:27]OFD Sender: No OFD packet to send [09:35:32]OFD Sender: No OFD packet to send [09:35:37]OFD Sender: No OFD packet to send [09:35:42]OFD Sender: No OFD packet to send [09:35:47]OFD Sender: No OFD packet to send [09:35:52]OFD Sender: No OFD packet to send [09:35:57]OFD Sender: No OFD packet to send [09:36:02]OFD Sender: No OFD packet to send [09:36:07]OFD Sender: No OFD packet to send [09:36:12]OFD Sender: No OFD packet to send [09:36:17]OFD Sender: No OFD packet to send [09:36:22]OFD Sender: No OFD packet to send [09:36:27]OFD Sender: No OFD packet to send [09:36:32]OFD Sender: No OFD packet to send [09:36:37]OFD Sender: No OFD packet to send [09:36:42]OFD Sender: No OFD packet to send [09:36:47]OFD Sender: No OFD packet to send [09:36:52]OFD Sender: No OFD packet to send [09:36:57]OFD Sender: No OFD packet to send [09:37:02]OFD Sender: No OFD packet to send [09:37:07]OFD Sender: No OFD packet to send [09:37:12]OFD Sender: No OFD packet to send [09:37:17]OFD Sender: No OFD packet to send [09:37:22]OFD Sender: No OFD packet to send [09:37:27]OFD Sender: No OFD packet to send [09:37:32]OFD Sender: No OFD packet to send [09:37:37]OFD Sender: No OFD packet to send [09:37:42]OFD Sender: No OFD packet to send [09:37:47]OFD Sender: No OFD packet to send [09:37:52]OFD Sender: No OFD packet to send [09:37:57]OFD Sender: No OFD packet to send [09:38:02]OFD Sender: No OFD packet to send [09:38:07]OFD Sender: No OFD packet to send [09:38:12]OFD Sender: No OFD packet to send [09:38:17]OFD Sender: No OFD packet to send [09:38:22]OFD Sender: No OFD packet to send [09:38:27]OFD Sender: No OFD packet to send [09:38:32]OFD Sender: No OFD packet to send [09:38:37]OFD Sender: No OFD packet to send [09:38:42]OFD Sender: No OFD packet to send [09:38:47]OFD Sender: No OFD packet to send [09:38:52]OFD Sender: No OFD packet to send [09:38:57]OFD Sender: No OFD packet to send [09:39:02]OFD Sender: No OFD packet to send [09:39:07]OFD Sender: No OFD packet to send [09:39:12]OFD Sender: No OFD packet to send [09:39:17]OFD Sender: No OFD packet to send [09:39:22]OFD Sender: No OFD packet to send [09:39:27]OFD Sender: No OFD packet to send [09:39:32]OFD Sender: No OFD packet to send [09:39:37]OFD Sender: No OFD packet to send [09:39:42]OFD Sender: No OFD packet to send [09:39:47]OFD Sender: No OFD packet to send [09:39:52]OFD Sender: No OFD packet to send [09:39:57]OFD Sender: No OFD packet to send [09:40:02]OFD Sender: No OFD packet to send [09:40:07]OFD Sender: No OFD packet to send [09:40:12]OFD Sender: No OFD packet to send [09:40:17]OFD Sender: No OFD packet to send [09:40:22]OFD Sender: No OFD packet to send [09:40:27]OFD Sender: No OFD packet to send [09:40:32]OFD Sender: No OFD packet to send [09:40:37]OFD Sender: No OFD packet to send [09:40:42]OFD Sender: No OFD packet to send [09:40:47]OFD Sender: No OFD packet to send [09:40:52]OFD Sender: No OFD packet to send [09:40:57]OFD Sender: No OFD packet to send [09:41:02]OFD Sender: No OFD packet to send [09:41:07]OFD Sender: No OFD packet to send [09:41:12]OFD Sender: No OFD packet to send [09:41:17]OFD Sender: No OFD packet to send [09:41:22]OFD Sender: No OFD packet to send [09:41:27]OFD Sender: No OFD packet to send [09:41:32]OFD Sender: No OFD packet to send [09:41:37]OFD Sender: No OFD packet to send [09:41:42]OFD Sender: No OFD packet to send [09:41:47]OFD Sender: No OFD packet to send [09:41:52]OFD Sender: No OFD packet to send [09:41:57]OFD Sender: No OFD packet to send [09:42:02]OFD Sender: No OFD packet to send [09:42:07]OFD Sender: No OFD packet to send [09:42:12]OFD Sender: No OFD packet to send [09:42:17]OFD Sender: No OFD packet to send [09:42:22]OFD Sender: No OFD packet to send [09:42:27]OFD Sender: No OFD packet to send [09:42:32]OFD Sender: No OFD packet to send [09:42:37]OFD Sender: No OFD packet to send [09:42:42]OFD Sender: No OFD packet to send [09:42:45]accept exits with 10 [09:42:45]New connection [09:42:45]New thread 3066994020 created [09:42:45]Thread 3067137380 joined [09:42:45]Waiting for new connection... [09:42:45] Sock 10.Parse request [09:42:45]Sock 10.Check first char [09:42:45]Sock 10.First char is OK [09:42:45]request: POST /json_proto HTTP/1.0 [09:42:45]Method: POST [09:42:45]URL: /json_proto [09:42:45]Method is POST - this is cgi request [09:42:45]url: /json_proto [09:42:45]query_string will be loaded in cgi processing [09:42:45]execute_cgi json_proto POST (null) [09:42:45]execute_cgi path=json_proto method=POST [09:42:45]POST find Content-Length [09:42:45]Host: 172.17.44.195:8080 [09:42:45]Content-Length: 683 [09:42:45]Content-Type: application/json [09:42:45] [09:42:45]POST finish read [09:42:45]Found Content-Length = 683 [09:42:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964456", "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" : 66.90, "quantity" : 14.950, "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" ] } } [09:42:45]execute_script... [09:42: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)1964456", "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" : 66.90, "quantity" : 14.950, "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" ] } } [09:42:45]POST & json_proto [09:42:45]process_json_proto [09:42:45]json parsed OK: [09:42:45]protocol is kg_v1.0 [09:42:45]action value=close_receipt [09:42:45]process_action close_receipt [09:42:45]cmd_close_receipt [09:42:45]MH_GetDate [09:42:45]Write to MH i2c: F0 00 00 16 15 1A [09:42:45]Write i2c OK [09:42:45]MH_I2C_Read... [09:42:45]Read from MH i2c: F0 [09:42:45]MH_I2C_Read... [09:42:45]Read from MH i2c: F0 09 00 [09:42:45]MH_I2C_Read... [09:42:45]Read from MH i2c: F0 09 00 16 15 00 98 73 17 67 82 C9 CF 66 2C [09:42:45]GetLastDocTimeStamp 1729589212 [09:42:45]current date 1729590168 [09:42:45]FM_GetShiftState [09:42:45]SAM_PROTO_GetShiftState [09:42:45]wFMCommunicate request_size=4 [09:42:45]MH_SAM_APDU [09:42:45]CAPDU: 80 13 01 00 [09:42:45]Write to MH i2c: E2 08 00 17 15 80 13 01 00 00 00 00 00 A9 [09:42:45]Write i2c OK [09:42:45]MH_I2C_Read... [09:42:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:45]Read from MH i2c: E2 [09:42:45]MH_I2C_Read... [09:42:45]Read from MH i2c: E2 0E 00 [09:42:45]MH_I2C_Read... [09:42:45]Read from MH i2c: E2 0E 00 17 15 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 70 [09:42:45]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:42:45]wFMCommunicate OK [09:42:45]SAM_PROTO_GetShiftState done [09:42:45]FM_GetShiftState done [09:42:45]opened in 1729555538 [09:42:45]opened+sec_in_day 1729641938 [09:42:45]quantity*price = 100015 [09:42:45]sum+1 = 100017 [09:42: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 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 63 22.10.2024 09:42 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228099 ФПД: 193172666703644 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094248&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228099&fm=193172666703644&tin=02508201610067®Number=0000000000091685&sum=100000 [09:42:46]StoreToDocumentArchive [09:42:46]shift 535 fd 228099 [09:42:46]save to /storage/0535/doc_00228099 [09:42:46]save last doc name /storage/0535/doc_00228099 to /storage/kkm_last_doc_name [09:42:46]save OK [09:42:46]Clear old archive folders... [09:42:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:42:46]tlvbuf is 00AA3C70 [09:42:46]SAM_PROTO_ClearQueue [09:42:46]wFMCommunicate request_size=4 [09:42:46]MH_SAM_APDU [09:42:46]CAPDU: 80 09 00 00 [09:42:46]Write to MH i2c: E2 08 00 24 15 80 09 00 00 00 00 00 00 AB [09:42:46]Write i2c OK [09:42:46]MH_I2C_Read... [09:42:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:46]Read from MH i2c: E2 [09:42:46]MH_I2C_Read... [09:42:46]Read from MH i2c: E2 03 00 [09:42:46]MH_I2C_Read... [09:42:46]Read from MH i2c: E2 03 00 24 15 00 90 00 AD [09:42:46]RAPDU: 90 00 [09:42:46]wFMCommunicate OK [09:42:46]SAM_PROTO_ClearQueue done [09:42:46]KKMCreateOFDPacket [09:42:46]OFDProtocolAddRootSTLVToBuf [09:42:46]FM_MakeSignedData [09:42:46]FM_MakeSignedData [09:42:46]SAM_PROTO_SignData [09:42:46]wFMCommunicate request_size=4 [09:42:46]MH_SAM_APDU [09:42:46]CAPDU: 80 0D 01 02 [09:42:46]Write to MH i2c: E2 08 00 25 15 80 0D 01 02 00 00 00 00 B3 [09:42:46]Write i2c OK [09:42:46]MH_I2C_Read... [09:42:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:46]Read from MH i2c: E2 [09:42:46]MH_I2C_Read... [09:42:46]Read from MH i2c: E2 03 00 [09:42:46]MH_I2C_Read... [09:42:46]Read from MH i2c: E2 03 00 25 15 00 90 00 AE [09:42:46]RAPDU: 90 00 [09:42:46]wFMCommunicate OK [09:42:46]wFMCommunicate request_size=255 [09:42:46]MH_SAM_APDU [09:42: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 98 73 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 03 7B 03 00 35 04 06 00 AF [09:42:46]Write to MH i2c: E2 02 01 26 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 98 73 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 03 7B 03 00 35 04 06 00 AF 00 00 55 [09:42:46]Write i2c OK [09:42:46]MH_I2C_Read... [09:42:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:46]Read from MH i2c: E2 [09:42:46]MH_I2C_Read... [09:42:46]Read from MH i2c: E2 03 00 [09:42:46]MH_I2C_Read... [09:42:46]Read from MH i2c: E2 03 00 26 15 00 90 00 AF [09:42:46]RAPDU: 90 00 [09:42:46]wFMCommunicate OK [09:42:46]wFMCommunicate request_size=10 [09:42:46]MH_SAM_APDU [09:42:46]CAPDU: 80 0D 02 02 05 B0 84 2D DF 1C [09:42:46]Write to MH i2c: E2 0D 00 27 15 80 0D 02 02 05 00 B0 84 2D DF 1C 00 00 1C [09:42:46]Write i2c OK [09:42:46]MH_I2C_Read... [09:42:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:46]Read from MH i2c: E2 [09:42:46]MH_I2C_Read... [09:42:46]Read from MH i2c: E2 03 00 [09:42:46]MH_I2C_Read... [09:42:46]Read from MH i2c: E2 03 00 27 15 00 90 00 B0 [09:42:46]RAPDU: 90 00 [09:42:46]wFMCommunicate OK [09:42:46]wFMCommunicate request_size=4 [09:42:46]MH_SAM_APDU [09:42:46]CAPDU: 80 0D 03 02 [09:42:46]Write to MH i2c: E2 08 00 28 15 80 0D 03 02 00 00 00 00 B8 [09:42:46]Write i2c OK [09:42:46]MH_I2C_Read... [09:42:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:46]Read from MH i2c: E2 [09:42:46]MH_I2C_Read... [09:42:46]Read from MH i2c: E2 0B 00 [09:42:46]MH_I2C_Read... [09:42:46]Read from MH i2c: E2 0B 00 28 15 00 23 B0 F2 8F 06 E4 8D FD 90 00 81 [09:42:46]RAPDU: 23 B0 F2 8F 06 E4 8D FD 90 00 [09:42:46]wFMCommunicate OK [09:42:46]SAM_PROTO_SignData done [09:42:46]FM_MakeSignedData done [09:42:46]CreateOFDProtocolMessage [09:42:46]wFMCommunicate request_size=4 [09:42:46]MH_SAM_APDU [09:42:46]CAPDU: 80 11 00 00 [09:42:46]Write to MH i2c: E2 08 00 29 15 80 11 00 00 00 00 00 00 B8 [09:42:46]Write i2c OK [09:42:46]MH_I2C_Read... [09:42:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:46]Read from MH i2c: E2 [09:42:46]MH_I2C_Read... [09:42:46]Read from MH i2c: E2 17 00 [09:42:46]MH_I2C_Read... [09:42:46]Read from MH i2c: E2 17 00 29 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0F [09:42:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:42:46]wFMCommunicate OK [09:42:46]CreateOFDProtocolMessage done [09:42:46]OFDSenderStorePacket 228099 [09:42:46]StoreOFDPacket docnum=228099 [09:42:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 6A 36 07 01 51 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 98 73 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 03 7B 03 00 35 04 06 00 AF B0 84 2D DF 1C 23 B0 F2 8F 06 E4 8D FD [09:42:46]CheckFolder [09:42:46]dirname=/storage/ofd_packets [09:42:46]CheckFolder done [09:42:46]ProducePacketName [09:42:46]name=ofd_packets/00228099 [09:42:46]NVStorageSaveData ofd_packets/00228099 [09:42:46]File name is /storage/ofd_packets/00228099 [09:42:46]Write 301 bytes [09:42:46]NVStorageSaveData done [09:42:46]OFDSenderStorePacket done [09:42:46]KKMCreateOFDPacket done [09:42:46]NVStorageSaveData kkm_last_timestamp [09:42:46]File name is /storage/kkm_last_timestamp [09:42:46]Write 4 bytes [09:42:46]NVStorageSaveData done [09:42:46]ExternCall_PrintAddStr [09:42:46]wPrintStart [09:42:46]Write to MH i2c: 01 00 00 2A 15 3F [09:42:46]Write i2c OK [09:42:46]MH_I2C_Read... [09:42:46]Read from MH i2c: 01 [09:42:46]MH_I2C_Read... [09:42:46]Read from MH i2c: 01 07 00 [09:42:46]MH_I2C_Read... [09:42:46]Read from MH i2c: 01 07 00 2A 15 00 00 00 00 00 FF 0F 54 [09:42:46]RasterBufferAndPrint [09:42:46]line Счет N : (1)1964456 [09:42:46]line ИНН: 02508201610067 [09:42:46]line Контрольно-Кассовый Чек [09:42:46]line ПРОДАЖА [09:42:46]line ТРК (МРК, ГНК) : 63 [09:42:46]line Товар: 2710124130 [09:42:46]line Аи-92-К-5 [09:42:46]line 14.950 * 66.90 [09:42:46]line = 1000.16 [09:42:46]line НДС 12% НСП 1% [09:42:46]line > о реализуемом товаре [09:42:46]line ОКРУГЛЕНИЕ: -0.16 [09:42:46]line ИТОГО: 1000.00 [09:42:46]line Внесено: 1000.00 [09:42:46]line СДАЧА: 0.00 [09:42:46]line НСП 1% : 8.85 [09:42:46]line НДС 12% : 106.21 [09:42:46]line Наличными: 1000.00 [09:42:46]line Безнал.: 0.00 [09:42:46]line Место: АЗС № 133 "Партнер Нефть" [09:42:46]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:42:46]line СНО: Общий режим [09:42:46]line Чек 63 22.10.2024 09:42 [09:42:46]line Смена: 535 ФФД: 1.0 [09:42:46]line ЗНМ: 0300000091 [09:42:46]line РНМ: 0000000000091685 [09:42:46]line Версия ККМ: 001 [09:42:46]line ФМ: 0000000000871839 [09:42:46]line ФД: 228099 [09:42:46]line ФПД: 193172666703644 [09:42:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094248&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228099&fm=193172666703644&tin=02508201610067®Number=0000000000091685&sum=100000 [09:42:47]OFD Sender: Processing packet 228099 [packets to send 38, broken 37] [09:42:47]ProducePacketName [09:42:47]name=ofd_packets/00228099 [09:42:47]OFD Sender: To server: pG, [09:42:47]CommunicateWithHost lk.salyk.kg:30040 [09:42:47]ConnectInit lk.salyk.kg [09:42:47]written 0, free lines is 4095 [09:42:47]Connected sock=9 [09:42:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 6A 36 07 01 51 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 98 73 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 03 7B 03 00 35 04 06 00 AF B0 84 2D DF 1C 23 B0 F2 8F 06 E4 8D FD [09:42:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 42 14 47 00 90 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 03 7B 03 00 F4 03 04 00 91 1E 17 67 B6 04 01 00 00 93 00 51 28 AC 22 18 06 [09:42:47]CommunicateWithHost err = 0 [09:42:47]CheckOFDResponse [09:42:47]1017 (14) - 77093643461234 [09:42:47]1041 (16) - 0000000000871839 [09:42:47]1040 (4) - 228099 [09:42:47]1012 (4) - 22.10.2024 03:40 [09:42:47]1206 (1) - 0 [09:42:47]OFD Sender: Remove packet 228099 [09:42:47]ProducePacketName [09:42:47]name=ofd_packets/00228099 [09:42:47]NVStorageDeleteData [09:42:47]Write to MH i2c: 01 00 00 54 15 69 [09:42:47]Write i2c OK [09:42:47]MH_I2C_Read... [09:42:47]Read from MH i2c: 01 [09:42:47]MH_I2C_Read... [09:42:47]Read from MH i2c: 01 07 00 [09:42:47]MH_I2C_Read... [09:42:47]Read from MH i2c: 01 07 00 54 15 00 00 00 00 00 AD 0C 29 [09:42:47]RasterBufferAndPrint [09:42:47]line [09:42:47]line [09:42:47]line [09:42:47]line [09:42:47]line [09:42:47]written 0, free lines is 3248 [09:42:47]MH_Cut [09:42:47]Write to MH i2c: D1 01 00 5B 15 01 42 [09:42:47]Write i2c OK [09:42:47]MH_I2C_Read... [09:42:47]Read from MH i2c: D1 [09:42:47]MH_I2C_Read... [09:42:47]Read from MH i2c: D1 01 00 [09:42:47]MH_I2C_Read... [09:42:47]Read from MH i2c: D1 01 00 5B 15 00 41 [09:42:47]Write to MH i2c: 01 00 00 5C 15 71 [09:42:47]Write i2c OK [09:42:47]MH_I2C_Read... [09:42:48]OFD Sender: No OFD packet to send [09:42:48]*** Cut start [09:42:48]*** Partial cut [09:42:48]*** CUTSNS_PIN = 1 [09:42:48]*** CUTSNS_PIN = 0 [09:42:49]*** Brake cut motor [09:42:49]Read from MH i2c: 01 [09:42:49]MH_I2C_Read... [09:42:49]*** Stop cut motor [09:42:49]*** Cut end [09:42:49]Read from MH i2c: 01 07 00 [09:42:49]MH_I2C_Read... [09:42:49]Read from MH i2c: 01 07 00 5C 15 00 00 00 00 00 FF 0F 86 [09:42:49]process_action close_receipt done [09:42:49]requested_data is exist [09:42:49]produce_requested_data [09:42:49]requested_item fm.sn is exist - process it [09:42:49]wFMCommunicate request_size=4 [09:42:49]MH_SAM_APDU [09:42:49]CAPDU: 80 11 00 00 [09:42:49]Write to MH i2c: E2 08 00 5D 15 80 11 00 00 00 00 00 00 EC [09:42:49]Write i2c OK [09:42:49]MH_I2C_Read... [09:42:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:49]Read from MH i2c: E2 [09:42:49]MH_I2C_Read... [09:42:49]Read from MH i2c: E2 17 00 [09:42:49]MH_I2C_Read... [09:42:49]Read from MH i2c: E2 17 00 5D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 43 [09:42:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:42:49]wFMCommunicate OK [09:42:49]requested_item fd.num is exist - process it [09:42:49]SAM_PROTO_GetFieldsCounters [09:42:49]wFMCommunicate request_size=4 [09:42:49]MH_SAM_APDU [09:42:49]CAPDU: 80 13 00 00 [09:42:49]Write to MH i2c: E2 08 00 5E 15 80 13 00 00 00 00 00 00 EF [09:42:49]Write i2c OK [09:42:49]MH_I2C_Read... [09:42:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:49]Read from MH i2c: E2 [09:42:49]MH_I2C_Read... [09:42:49]Read from MH i2c: E2 62 00 [09:42:49]MH_I2C_Read... [09:42:49]Read from MH i2c: E2 62 00 5E 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 03 7B 03 00 0E 04 04 00 17 02 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 6F [09:42:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 03 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:49]wFMCommunicate OK [09:42:49]SAM_PROTO_GetFieldsCounters done [09:42:49]requested_item shift.num is exist - process it [09:42:49]requested_item shift.opened is exist - process it [09:42:49]req_shift_opened [09:42:49]FM_GetShiftState [09:42:49]SAM_PROTO_GetShiftState [09:42:49]wFMCommunicate request_size=4 [09:42:49]MH_SAM_APDU [09:42:49]CAPDU: 80 13 01 00 [09:42:49]Write to MH i2c: E2 08 00 5F 15 80 13 01 00 00 00 00 00 F1 [09:42:49]Write i2c OK [09:42:49]MH_I2C_Read... [09:42:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:49]Read from MH i2c: E2 [09:42:49]MH_I2C_Read... [09:42:49]Read from MH i2c: E2 0E 00 [09:42:49]MH_I2C_Read... [09:42:49]Read from MH i2c: E2 0E 00 5F 15 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 B8 [09:42:49]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:42:49]wFMCommunicate OK [09:42:49]SAM_PROTO_GetShiftState done [09:42:49]FM_GetShiftState done [09:42:49]req_shift_opened done [09:42:49]requested_item shift.open_date is exist - process it [09:42:49]req_shift_open_date [09:42:49]req_shift_open_date done [09:42:49]produce_requested_data done [09:42:49]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228099,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [09:42:49]process_action_free close_receipt [09:42:49]json_value_free [09:42:49]json_value_free done [09:42:49]process_json_proto returns [09:42:49]Send response to host [09:42:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228099,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [09:42:49]free response buf [09:42:49]execute_script done [09:42:49]execute_script returns [09:42:49]free content buf [09:42:49]Sock 10.Close socket [09:42:49]Sock 10.Thread stoped [09:42:53]OFD Sender: No OFD packet to send [09:42:58]OFD Sender: No OFD packet to send [09:43:03]OFD Sender: No OFD packet to send [09:43:08]OFD Sender: No OFD packet to send [09:43:13]OFD Sender: No OFD packet to send [09:43:18]OFD Sender: No OFD packet to send [09:43:23]OFD Sender: No OFD packet to send [09:43:28]OFD Sender: No OFD packet to send [09:43:33]OFD Sender: No OFD packet to send [09:43:38]OFD Sender: No OFD packet to send [09:43:43]OFD Sender: No OFD packet to send [09:43:48]OFD Sender: No OFD packet to send [09:43:48]accept exits with 7 [09:43:48]New connection [09:43:48]New thread 3067137380 created [09:43:48]Thread 3066994020 joined [09:43:48]Waiting for new connection... [09:43:48] Sock 7.Parse request [09:43:48]Sock 7.Check first char [09:43:48]Sock 7.First char is OK [09:43:48]request: POST /json_proto HTTP/1.0 [09:43:48]Method: POST [09:43:48]URL: /json_proto [09:43:48]Method is POST - this is cgi request [09:43:48]url: /json_proto [09:43:48]query_string will be loaded in cgi processing [09:43:48]execute_cgi json_proto POST (null) [09:43:48]execute_cgi path=json_proto method=POST [09:43:48]POST find Content-Length [09:43:48]Host: 172.17.44.195:8080 [09:43:48]Content-Length: 678 [09:43:48]Content-Type: application/json [09:43:48] [09:43:48]POST finish read [09:43:48]Found Content-Length = 678 [09:43:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964457", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:43:48]execute_script... [09:43: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)1964457", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:43:48]POST & json_proto [09:43:48]process_json_proto [09:43:48]json parsed OK: [09:43:48]protocol is kg_v1.0 [09:43:48]action value=close_receipt [09:43:48]process_action close_receipt [09:43:48]cmd_close_receipt [09:43:48]MH_GetDate [09:43:48]Write to MH i2c: F0 00 00 60 15 64 [09:43:48]Write i2c OK [09:43:48]MH_I2C_Read... [09:43:48]Read from MH i2c: F0 [09:43:48]MH_I2C_Read... [09:43:48]Read from MH i2c: F0 09 00 [09:43:48]MH_I2C_Read... [09:43:48]Read from MH i2c: F0 09 00 60 15 00 D7 73 17 67 82 C9 CF 66 B5 [09:43:48]GetLastDocTimeStamp 1729590168 [09:43:48]current date 1729590231 [09:43:48]FM_GetShiftState [09:43:48]SAM_PROTO_GetShiftState [09:43:48]wFMCommunicate request_size=4 [09:43:48]MH_SAM_APDU [09:43:48]CAPDU: 80 13 01 00 [09:43:48]Write to MH i2c: E2 08 00 61 15 80 13 01 00 00 00 00 00 F3 [09:43:48]Write i2c OK [09:43:48]MH_I2C_Read... [09:43:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:48]Read from MH i2c: E2 [09:43:48]MH_I2C_Read... [09:43:48]Read from MH i2c: E2 0E 00 [09:43:48]MH_I2C_Read... [09:43:48]Read from MH i2c: E2 0E 00 61 15 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 BA [09:43:48]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:43:48]wFMCommunicate OK [09:43:48]SAM_PROTO_GetShiftState done [09:43:48]FM_GetShiftState done [09:43:48]opened in 1729555538 [09:43:48]opened+sec_in_day 1729641938 [09:43:48]quantity*price = 50041 [09:43:48]sum+1 = 50042 [09:43:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 64 22.10.2024 09:43 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228100 ФПД: 97254351480209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094352&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228100&fm=97254351480209&tin=02508201610067®Number=0000000000091685&sum=50000 [09:43:49]StoreToDocumentArchive [09:43:49]shift 535 fd 228100 [09:43:49]save to /storage/0535/doc_00228100 [09:43:49]save last doc name /storage/0535/doc_00228100 to /storage/kkm_last_doc_name [09:43:49]save OK [09:43:49]Clear old archive folders... [09:43:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:43:49]tlvbuf is B6EEE3D0 [09:43:49]SAM_PROTO_ClearQueue [09:43:49]wFMCommunicate request_size=4 [09:43:49]MH_SAM_APDU [09:43:49]CAPDU: 80 09 00 00 [09:43:49]Write to MH i2c: E2 08 00 6E 15 80 09 00 00 00 00 00 00 F5 [09:43:49]Write i2c OK [09:43:49]MH_I2C_Read... [09:43:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:49]Read from MH i2c: E2 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: E2 03 00 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: E2 03 00 6E 15 00 90 00 F7 [09:43:49]RAPDU: 90 00 [09:43:49]wFMCommunicate OK [09:43:49]SAM_PROTO_ClearQueue done [09:43:49]KKMCreateOFDPacket [09:43:49]OFDProtocolAddRootSTLVToBuf [09:43:49]FM_MakeSignedData [09:43:49]FM_MakeSignedData [09:43:49]SAM_PROTO_SignData [09:43:49]wFMCommunicate request_size=4 [09:43:49]MH_SAM_APDU [09:43:49]CAPDU: 80 0D 01 02 [09:43:49]Write to MH i2c: E2 08 00 6F 15 80 0D 01 02 00 00 00 00 FD [09:43:49]Write i2c OK [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: E2 [09:43:49]MH_I2C_Read... [09:43:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:49]Read from MH i2c: E2 03 00 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: E2 03 00 6F 15 00 90 00 F8 [09:43:49]RAPDU: 90 00 [09:43:49]wFMCommunicate OK [09:43:49]wFMCommunicate request_size=255 [09:43:49]MH_SAM_APDU [09:43: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 D8 73 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 04 7B 03 00 35 04 06 00 58 [09:43:49]Write to MH i2c: E2 02 01 70 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 D8 73 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 04 7B 03 00 35 04 06 00 58 00 00 90 [09:43:49]Write i2c OK [09:43:49]MH_I2C_Read... [09:43:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:50]Read from MH i2c: E2 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 03 00 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 03 00 70 15 00 90 00 F9 [09:43:50]RAPDU: 90 00 [09:43:50]wFMCommunicate OK [09:43:50]wFMCommunicate request_size=10 [09:43:50]MH_SAM_APDU [09:43:50]CAPDU: 80 0D 02 02 05 73 CB 12 A5 91 [09:43:50]Write to MH i2c: E2 0D 00 71 15 80 0D 02 02 05 00 73 CB 12 A5 91 00 00 90 [09:43:50]Write i2c OK [09:43:50]MH_I2C_Read... [09:43:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:50]Read from MH i2c: E2 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 03 00 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 03 00 71 15 00 90 00 FA [09:43:50]RAPDU: 90 00 [09:43:50]wFMCommunicate OK [09:43:50]wFMCommunicate request_size=4 [09:43:50]MH_SAM_APDU [09:43:50]CAPDU: 80 0D 03 02 [09:43:50]Write to MH i2c: E2 08 00 72 15 80 0D 03 02 00 00 00 00 02 [09:43:50]Write i2c OK [09:43:50]MH_I2C_Read... [09:43:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:50]Read from MH i2c: E2 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 0B 00 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 0B 00 72 15 00 04 D7 63 22 7F 0E 54 B8 90 00 FC [09:43:50]RAPDU: 04 D7 63 22 7F 0E 54 B8 90 00 [09:43:50]wFMCommunicate OK [09:43:50]SAM_PROTO_SignData done [09:43:50]FM_MakeSignedData done [09:43:50]CreateOFDProtocolMessage [09:43:50]wFMCommunicate request_size=4 [09:43:50]MH_SAM_APDU [09:43:50]CAPDU: 80 11 00 00 [09:43:50]Write to MH i2c: E2 08 00 73 15 80 11 00 00 00 00 00 00 02 [09:43:50]Write i2c OK [09:43:50]MH_I2C_Read... [09:43:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:50]Read from MH i2c: E2 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 17 00 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 17 00 73 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 59 [09:43:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:43:50]wFMCommunicate OK [09:43:50]CreateOFDProtocolMessage done [09:43:50]OFDSenderStorePacket 228100 [09:43:50]StoreOFDPacket docnum=228100 [09:43:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 EE 18 07 01 81 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 D8 73 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 04 7B 03 00 35 04 06 00 58 73 CB 12 A5 91 04 D7 63 22 7F 0E 54 B8 [09:43:50]CheckFolder [09:43:50]dirname=/storage/ofd_packets [09:43:50]CheckFolder done [09:43:50]ProducePacketName [09:43:50]name=ofd_packets/00228100 [09:43:50]NVStorageSaveData ofd_packets/00228100 [09:43:50]File name is /storage/ofd_packets/00228100 [09:43:50]Write 301 bytes [09:43:50]NVStorageSaveData done [09:43:50]OFDSenderStorePacket done [09:43:50]KKMCreateOFDPacket done [09:43:50]NVStorageSaveData kkm_last_timestamp [09:43:50]File name is /storage/kkm_last_timestamp [09:43:50]Write 4 bytes [09:43:50]NVStorageSaveData done [09:43:50]ExternCall_PrintAddStr [09:43:50]wPrintStart [09:43:50]Write to MH i2c: 01 00 00 74 15 89 [09:43:50]Write i2c OK [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: 01 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: 01 07 00 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: 01 07 00 74 15 00 00 00 00 00 FF 0F 9E [09:43:50]RasterBufferAndPrint [09:43:50]line Счет N : (1)1964457 [09:43:50]line ИНН: 02508201610067 [09:43:50]line Контрольно-Кассовый Чек [09:43:50]line ПРОДАЖА [09:43:50]line ТРК (МРК, ГНК) : 53 [09:43:50]line Товар: 2710124130 [09:43:50]line Аи-92-К-5 [09:43:50]line 7.480 * 66.90 [09:43:50]line = 500.41 [09:43:50]line НДС 12% НСП 1% [09:43:50]line > о реализуемом товаре [09:43:50]line ОКРУГЛЕНИЕ: -0.41 [09:43:50]line ИТОГО: 500.00 [09:43:50]line Внесено: 500.00 [09:43:50]line СДАЧА: 0.00 [09:43:50]line НСП 1% : 4.43 [09:43:50]line НДС 12% : 53.14 [09:43:50]line Наличными: 500.00 [09:43:50]line Безнал.: 0.00 [09:43:50]line Место: АЗС № 133 "Партнер Нефть" [09:43:50]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:43:50]line СНО: Общий режим [09:43:50]line Чек 64 22.10.2024 09:43 [09:43:50]line Смена: 535 ФФД: 1.0 [09:43:50]line ЗНМ: 0300000091 [09:43:50]line РНМ: 0000000000091685 [09:43:50]line Версия ККМ: 001 [09:43:50]line ФМ: 0000000000871839 [09:43:50]line ФД: 228100 [09:43:50]line ФПД: 97254351480209 [09:43:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094352&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228100&fm=97254351480209&tin=02508201610067®Number=0000000000091685&sum=50000 [09:43:50]OFD Sender: Processing packet 228100 [packets to send 38, broken 37] [09:43:50]ProducePacketName [09:43:50]name=ofd_packets/00228100 [09:43:50]OFD Sender: To server: pG, [09:43:50]CommunicateWithHost lk.salyk.kg:30040 [09:43:50]ConnectInit lk.salyk.kg [09:43:50]written 0, free lines is 4095 [09:43:50]Connected sock=10 [09:43:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 EE 18 07 01 81 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 D8 73 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 04 7B 03 00 35 04 06 00 58 73 CB 12 A5 91 04 D7 63 22 7F 0E 54 B8 [09:43:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 D9 61 47 00 52 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 04 7B 03 00 F4 03 04 00 D0 1E 17 67 B6 04 01 00 00 DF C7 2E 89 87 88 A0 92 [09:43:51]CommunicateWithHost err = 0 [09:43:51]CheckOFDResponse [09:43:51]1017 (14) - 77093643461234 [09:43:51]1041 (16) - 0000000000871839 [09:43:51]1040 (4) - 228100 [09:43:51]1012 (4) - 22.10.2024 03:41 [09:43:51]1206 (1) - 0 [09:43:51]OFD Sender: Remove packet 228100 [09:43:51]ProducePacketName [09:43:51]name=ofd_packets/00228100 [09:43:51]NVStorageDeleteData [09:43:51]Write to MH i2c: 01 00 00 9E 15 B3 [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: 01 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: 01 07 00 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: 01 07 00 9E 15 00 00 00 00 00 A7 0C 6D [09:43:51]RasterBufferAndPrint [09:43:51]line [09:43:51]line [09:43:51]line [09:43:51]line [09:43:51]line [09:43:51]written 0, free lines is 3242 [09:43:51]MH_Cut [09:43:51]Write to MH i2c: D1 01 00 A5 15 01 8C [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: D1 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: D1 01 00 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: D1 01 00 A5 15 00 8B [09:43:51]Write to MH i2c: 01 00 00 A6 15 BB [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]OFD Sender: No OFD packet to send [09:43:52]*** Cut start [09:43:52]*** Partial cut [09:43:52]*** CUTSNS_PIN = 1 [09:43:52]*** CUTSNS_PIN = 0 [09:43:52]*** Brake cut motor [09:43:52]Read from MH i2c: 01 [09:43:52]MH_I2C_Read... [09:43:52]*** Stop cut motor [09:43:52]*** Cut end [09:43:52]Read from MH i2c: 01 07 00 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: 01 07 00 A6 15 00 00 00 00 00 FF 0F D0 [09:43:52]process_action close_receipt done [09:43:52]requested_data is exist [09:43:52]produce_requested_data [09:43:52]requested_item fm.sn is exist - process it [09:43:52]wFMCommunicate request_size=4 [09:43:52]MH_SAM_APDU [09:43:52]CAPDU: 80 11 00 00 [09:43:52]Write to MH i2c: E2 08 00 A7 15 80 11 00 00 00 00 00 00 36 [09:43:52]Write i2c OK [09:43:52]MH_I2C_Read... [09:43:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:52]Read from MH i2c: E2 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: E2 17 00 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: E2 17 00 A7 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8D [09:43:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:43:52]wFMCommunicate OK [09:43:52]requested_item fd.num is exist - process it [09:43:52]SAM_PROTO_GetFieldsCounters [09:43:52]wFMCommunicate request_size=4 [09:43:52]MH_SAM_APDU [09:43:52]CAPDU: 80 13 00 00 [09:43:52]Write to MH i2c: E2 08 00 A8 15 80 13 00 00 00 00 00 00 39 [09:43:52]Write i2c OK [09:43:52]MH_I2C_Read... [09:43:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:52]Read from MH i2c: E2 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: E2 62 00 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: E2 62 00 A8 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 04 7B 03 00 0E 04 04 00 17 02 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 BD [09:43:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 04 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:43:52]wFMCommunicate OK [09:43:52]SAM_PROTO_GetFieldsCounters done [09:43:52]requested_item shift.num is exist - process it [09:43:52]requested_item shift.opened is exist - process it [09:43:52]req_shift_opened [09:43:52]FM_GetShiftState [09:43:52]SAM_PROTO_GetShiftState [09:43:52]wFMCommunicate request_size=4 [09:43:52]MH_SAM_APDU [09:43:52]CAPDU: 80 13 01 00 [09:43:52]Write to MH i2c: E2 08 00 A9 15 80 13 01 00 00 00 00 00 3B [09:43:52]Write i2c OK [09:43:52]MH_I2C_Read... [09:43:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:53]Read from MH i2c: E2 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: E2 0E 00 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: E2 0E 00 A9 15 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 02 [09:43:53]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:43:53]wFMCommunicate OK [09:43:53]SAM_PROTO_GetShiftState done [09:43:53]FM_GetShiftState done [09:43:53]req_shift_opened done [09:43:53]requested_item shift.open_date is exist - process it [09:43:53]req_shift_open_date [09:43:53]req_shift_open_date done [09:43:53]produce_requested_data done [09:43:53]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228100,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [09:43:53]process_action_free close_receipt [09:43:53]json_value_free [09:43:53]json_value_free done [09:43:53]process_json_proto returns [09:43:53]Send response to host [09:43:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228100,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [09:43:53]free response buf [09:43:53]execute_script done [09:43:53]execute_script returns [09:43:53]free content buf [09:43:53]Sock 7.Close socket [09:43:53]Sock 7.Thread stoped [09:43:56]OFD Sender: No OFD packet to send [09:44:01]OFD Sender: No OFD packet to send [09:44:06]OFD Sender: No OFD packet to send [09:44:11]OFD Sender: No OFD packet to send [09:44:16]OFD Sender: No OFD packet to send [09:44:21]OFD Sender: No OFD packet to send [09:44:26]OFD Sender: No OFD packet to send [09:44:31]OFD Sender: No OFD packet to send [09:44:36]OFD Sender: No OFD packet to send [09:44:41]OFD Sender: No OFD packet to send [09:44:46]OFD Sender: No OFD packet to send [09:44:51]OFD Sender: No OFD packet to send [09:44:56]OFD Sender: No OFD packet to send [09:45:01]OFD Sender: No OFD packet to send [09:45:06]OFD Sender: No OFD packet to send [09:45:11]OFD Sender: No OFD packet to send [09:45:16]OFD Sender: No OFD packet to send [09:45:21]OFD Sender: No OFD packet to send [09:45:26]OFD Sender: No OFD packet to send [09:45:31]OFD Sender: No OFD packet to send [09:45:36]OFD Sender: No OFD packet to send [09:45:41]OFD Sender: No OFD packet to send [09:45:46]OFD Sender: No OFD packet to send [09:45:51]OFD Sender: No OFD packet to send [09:45:56]OFD Sender: No OFD packet to send [09:46:01]OFD Sender: No OFD packet to send [09:46:06]OFD Sender: No OFD packet to send [09:46:11]OFD Sender: No OFD packet to send [09:46:16]OFD Sender: No OFD packet to send [09:46:21]OFD Sender: No OFD packet to send [09:46:23]accept exits with 9 [09:46:23]New connection [09:46:23]New thread 3066994020 created [09:46:23]Thread 3067137380 joined [09:46:23]Waiting for new connection... [09:46:23] Sock 9.Parse request [09:46:23]Sock 9.Check first char [09:46:23]Sock 9.First char is OK [09:46:23]request: POST /json_proto HTTP/1.0 [09:46:23]Method: POST [09:46:23]URL: /json_proto [09:46:23]Method is POST - this is cgi request [09:46:23]url: /json_proto [09:46:23]query_string will be loaded in cgi processing [09:46:23]execute_cgi json_proto POST (null) [09:46:23]execute_cgi path=json_proto method=POST [09:46:23]POST find Content-Length [09:46:23]Host: 172.17.44.195:8080 [09:46:23]Content-Length: 664 [09:46:23]Content-Type: application/json [09:46:23] [09:46:23]POST finish read [09:46:23]Found Content-Length = 664 [09:46:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:23]execute_script... [09:46: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)1964459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:23]POST & json_proto [09:46:23]process_json_proto [09:46:23]json parsed OK: [09:46:23]protocol is kg_v1.0 [09:46:23]action value=close_receipt [09:46:23]process_action close_receipt [09:46:23]cmd_close_receipt [09:46:23]MH_GetDate [09:46:23]Write to MH i2c: F0 00 00 AA 15 AE [09:46:23]Write i2c OK [09:46:23]MH_I2C_Read... [09:46:23]Read from MH i2c: F0 [09:46:23]MH_I2C_Read... [09:46:23]Read from MH i2c: F0 09 00 [09:46:23]MH_I2C_Read... [09:46:23]Read from MH i2c: F0 09 00 AA 15 00 72 74 17 67 82 C9 CF 66 9B [09:46:23]GetLastDocTimeStamp 1729590232 [09:46:23]current date 1729590386 [09:46:23]FM_GetShiftState [09:46:23]SAM_PROTO_GetShiftState [09:46:23]wFMCommunicate request_size=4 [09:46:23]MH_SAM_APDU [09:46:23]CAPDU: 80 13 01 00 [09:46:23]Write to MH i2c: E2 08 00 AB 15 80 13 01 00 00 00 00 00 3D [09:46:23]Write i2c OK [09:46:23]MH_I2C_Read... [09:46:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:23]Read from MH i2c: E2 [09:46:23]MH_I2C_Read... [09:46:23]Read from MH i2c: E2 0E 00 [09:46:23]MH_I2C_Read... [09:46:23]Read from MH i2c: E2 0E 00 AB 15 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 04 [09:46:23]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:46:23]wFMCommunicate OK [09:46:23]SAM_PROTO_GetShiftState done [09:46:23]FM_GetShiftState done [09:46:23]opened in 1729555538 [09:46:23]opened+sec_in_day 1729641938 [09:46:23]quantity*price = 100000 [09:46:23]sum+1 = 100002 [09:46:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 65 22.10.2024 09:46 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228101 ФПД: 231086561192341 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094626&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228101&fm=231086561192341&tin=02508201610067®Number=0000000000091685&sum=100000 [09:46:24]StoreToDocumentArchive [09:46:24]shift 535 fd 228101 [09:46:24]save to /storage/0535/doc_00228101 [09:46:24]save last doc name /storage/0535/doc_00228101 to /storage/kkm_last_doc_name [09:46:24]save OK [09:46:24]Clear old archive folders... [09:46:24]ProcessDocumentItem done err = 0, tmpTLVsize=244 [09:46:24]tlvbuf is 00A64D50 [09:46:24]SAM_PROTO_ClearQueue [09:46:24]wFMCommunicate request_size=4 [09:46:24]MH_SAM_APDU [09:46:24]CAPDU: 80 09 00 00 [09:46:24]Write to MH i2c: E2 08 00 B8 15 80 09 00 00 00 00 00 00 3F [09:46:24]Write i2c OK [09:46:24]MH_I2C_Read... [09:46:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:24]Read from MH i2c: E2 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: E2 03 00 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: E2 03 00 B8 15 00 90 00 41 [09:46:24]RAPDU: 90 00 [09:46:24]wFMCommunicate OK [09:46:24]SAM_PROTO_ClearQueue done [09:46:24]KKMCreateOFDPacket [09:46:24]OFDProtocolAddRootSTLVToBuf [09:46:24]FM_MakeSignedData [09:46:24]FM_MakeSignedData [09:46:24]SAM_PROTO_SignData [09:46:24]wFMCommunicate request_size=4 [09:46:24]MH_SAM_APDU [09:46:24]CAPDU: 80 0D 01 02 [09:46:24]Write to MH i2c: E2 08 00 B9 15 80 0D 01 02 00 00 00 00 47 [09:46:24]Write i2c OK [09:46:24]MH_I2C_Read... [09:46:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:24]Read from MH i2c: E2 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: E2 03 00 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: E2 03 00 B9 15 00 90 00 42 [09:46:24]RAPDU: 90 00 [09:46:24]wFMCommunicate OK [09:46:24]wFMCommunicate request_size=253 [09:46:24]MH_SAM_APDU [09:46:24]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 72 74 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 05 7B 03 00 35 04 06 00 D2 2C 08 64 69 95 [09:46:24]Write to MH i2c: E2 00 01 BA 15 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 72 74 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 05 7B 03 00 35 04 06 00 D2 2C 08 64 69 95 00 00 6A [09:46:24]Write i2c OK [09:46:24]MH_I2C_Read... [09:46:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:24]Read from MH i2c: E2 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: E2 03 00 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: E2 03 00 BA 15 00 90 00 43 [09:46:24]RAPDU: 90 00 [09:46:24]wFMCommunicate OK [09:46:24]wFMCommunicate request_size=4 [09:46:24]MH_SAM_APDU [09:46:24]CAPDU: 80 0D 03 02 [09:46:24]Write to MH i2c: E2 08 00 BB 15 80 0D 03 02 00 00 00 00 4B [09:46:24]Write i2c OK [09:46:24]MH_I2C_Read... [09:46:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:24]Read from MH i2c: E2 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: E2 0B 00 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: E2 0B 00 BB 15 00 22 EA 78 26 B7 FB CE 23 90 00 99 [09:46:24]RAPDU: 22 EA 78 26 B7 FB CE 23 90 00 [09:46:24]wFMCommunicate OK [09:46:24]SAM_PROTO_SignData done [09:46:24]FM_MakeSignedData done [09:46:24]CreateOFDProtocolMessage [09:46:24]wFMCommunicate request_size=4 [09:46:24]MH_SAM_APDU [09:46:24]CAPDU: 80 11 00 00 [09:46:24]Write to MH i2c: E2 08 00 BC 15 80 11 00 00 00 00 00 00 4B [09:46:24]Write i2c OK [09:46:24]MH_I2C_Read... [09:46:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:24]Read from MH i2c: E2 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: E2 17 00 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: E2 17 00 BC 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A2 [09:46:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:46:24]wFMCommunicate OK [09:46:24]CreateOFDProtocolMessage done [09:46:24]OFDSenderStorePacket 228101 [09:46:24]StoreOFDPacket docnum=228101 [09:46:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 DE 73 00 01 AD F0 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 72 74 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 05 7B 03 00 35 04 06 00 D2 2C 08 64 69 95 22 EA 78 26 B7 FB CE 23 [09:46:24]CheckFolder [09:46:24]dirname=/storage/ofd_packets [09:46:24]CheckFolder done [09:46:24]ProducePacketName [09:46:24]name=ofd_packets/00228101 [09:46:24]NVStorageSaveData ofd_packets/00228101 [09:46:24]File name is /storage/ofd_packets/00228101 [09:46:24]Write 294 bytes [09:46:24]NVStorageSaveData done [09:46:24]OFDSenderStorePacket done [09:46:24]KKMCreateOFDPacket done [09:46:24]NVStorageSaveData kkm_last_timestamp [09:46:24]File name is /storage/kkm_last_timestamp [09:46:24]Write 4 bytes [09:46:24]NVStorageSaveData done [09:46:24]ExternCall_PrintAddStr [09:46:24]wPrintStart [09:46:24]Write to MH i2c: 01 00 00 BD 15 D2 [09:46:24]Write i2c OK [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: 01 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: 01 07 00 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: 01 07 00 BD 15 00 00 00 00 00 FF 0F E7 [09:46:24]RasterBufferAndPrint [09:46:24]line Счет N : (1)1964459 [09:46:24]line ИНН: 02508201610067 [09:46:24]line Контрольно-Кассовый Чек [09:46:24]line ПРОДАЖА [09:46:24]line ТРК (МРК, ГНК) : 52 [09:46:24]line Товар: 2710124130 [09:46:24]line SU-92 [09:46:24]line 14.620 * 68.40 [09:46:24]line = 1000.01 [09:46:24]line НДС 12% НСП 1% [09:46:24]line > о реализуемом товаре [09:46:24]line ОКРУГЛЕНИЕ: -0.01 [09:46:24]line ИТОГО: 1000.00 [09:46:24]line Внесено: 1000.00 [09:46:24]line СДАЧА: 0.00 [09:46:24]line НСП 1% : 8.85 [09:46:24]line НДС 12% : 106.20 [09:46:24]line Наличными: 1000.00 [09:46:24]line Безнал.: 0.00 [09:46:24]line Место: АЗС № 133 "Партнер Нефть" [09:46:24]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:46:24]line СНО: Общий режим [09:46:24]line Чек 65 22.10.2024 09:46 [09:46:24]line Смена: 535 ФФД: 1.0 [09:46:24]line ЗНМ: 0300000091 [09:46:24]line РНМ: 0000000000091685 [09:46:24]line Версия ККМ: 001 [09:46:24]line ФМ: 0000000000871839 [09:46:24]line ФД: 228101 [09:46:24]line ФПД: 231086561192341 [09:46:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094626&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228101&fm=231086561192341&tin=02508201610067®Number=0000000000091685&sum=100000 [09:46:25]OFD Sender: Processing packet 228101 [packets to send 38, broken 37] [09:46:25]ProducePacketName [09:46:25]name=ofd_packets/00228101 [09:46:25]OFD Sender: To server: pG, [09:46:25]CommunicateWithHost lk.salyk.kg:30040 [09:46:25]ConnectInit lk.salyk.kg [09:46:25]written 0, free lines is 4095 [09:46:25]Connected sock=7 [09:46:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 DE 73 00 01 AD F0 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 72 74 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 05 7B 03 00 35 04 06 00 D2 2C 08 64 69 95 22 EA 78 26 B7 FB CE 23 [09:46:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 FC 7B 47 00 C0 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 05 7B 03 00 F4 03 04 00 6B 1F 17 67 B6 04 01 00 00 DF 8C 9D DB 22 FE 96 13 [09:46:25]CommunicateWithHost err = 0 [09:46:25]CheckOFDResponse [09:46:25]1017 (14) - 77093643461234 [09:46:25]1041 (16) - 0000000000871839 [09:46:25]1040 (4) - 228101 [09:46:25]1012 (4) - 22.10.2024 03:43 [09:46:25]1206 (1) - 0 [09:46:25]OFD Sender: Remove packet 228101 [09:46:25]ProducePacketName [09:46:25]name=ofd_packets/00228101 [09:46:25]NVStorageDeleteData [09:46:25]Write to MH i2c: 01 00 00 E7 15 FC [09:46:25]Write i2c OK [09:46:25]MH_I2C_Read... [09:46:25]Read from MH i2c: 01 [09:46:25]MH_I2C_Read... [09:46:25]Read from MH i2c: 01 07 00 [09:46:25]MH_I2C_Read... [09:46:25]Read from MH i2c: 01 07 00 E7 15 00 00 00 00 00 A8 0C B7 [09:46:25]RasterBufferAndPrint [09:46:25]line [09:46:25]line [09:46:25]line [09:46:25]line [09:46:25]line [09:46:25]written 0, free lines is 3245 [09:46:25]MH_Cut [09:46:25]Write to MH i2c: D1 01 00 EE 15 01 D5 [09:46:25]Write i2c OK [09:46:25]MH_I2C_Read... [09:46:25]Read from MH i2c: D1 [09:46:25]MH_I2C_Read... [09:46:25]Read from MH i2c: D1 01 00 [09:46:25]MH_I2C_Read... [09:46:25]Read from MH i2c: D1 01 00 EE 15 00 D4 [09:46:25]Write to MH i2c: 01 00 00 EF 15 04 [09:46:25]Write i2c OK [09:46:25]MH_I2C_Read... [09:46:26]OFD Sender: No OFD packet to send [09:46:26]*** Cut start [09:46:26]*** Partial cut [09:46:26]*** CUTSNS_PIN = 1 [09:46:26]*** CUTSNS_PIN = 0 [09:46:26]*** Brake cut motor [09:46:27]Read from MH i2c: 01 [09:46:27]MH_I2C_Read... [09:46:27]*** Stop cut motor [09:46:27]*** Cut end [09:46:27]Read from MH i2c: 01 07 00 [09:46:27]MH_I2C_Read... [09:46:27]Read from MH i2c: 01 07 00 EF 15 00 00 00 00 00 FF 0F 19 [09:46:27]process_action close_receipt done [09:46:27]requested_data is exist [09:46:27]produce_requested_data [09:46:27]requested_item fm.sn is exist - process it [09:46:27]wFMCommunicate request_size=4 [09:46:27]MH_SAM_APDU [09:46:27]CAPDU: 80 11 00 00 [09:46:27]Write to MH i2c: E2 08 00 F0 15 80 11 00 00 00 00 00 00 7F [09:46:27]Write i2c OK [09:46:27]MH_I2C_Read... [09:46:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:27]Read from MH i2c: E2 [09:46:27]MH_I2C_Read... [09:46:27]Read from MH i2c: E2 17 00 [09:46:27]MH_I2C_Read... [09:46:27]Read from MH i2c: E2 17 00 F0 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D6 [09:46:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:46:27]wFMCommunicate OK [09:46:27]requested_item fd.num is exist - process it [09:46:27]SAM_PROTO_GetFieldsCounters [09:46:27]wFMCommunicate request_size=4 [09:46:27]MH_SAM_APDU [09:46:27]CAPDU: 80 13 00 00 [09:46:27]Write to MH i2c: E2 08 00 F1 15 80 13 00 00 00 00 00 00 82 [09:46:27]Write i2c OK [09:46:27]MH_I2C_Read... [09:46:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:27]Read from MH i2c: E2 [09:46:27]MH_I2C_Read... [09:46:27]Read from MH i2c: E2 62 00 [09:46:27]MH_I2C_Read... [09:46:27]Read from MH i2c: E2 62 00 F1 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 05 7B 03 00 0E 04 04 00 17 02 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 0A [09:46:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 05 7B 03 00 0E 04 04 00 17 02 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:46:27]wFMCommunicate OK [09:46:27]SAM_PROTO_GetFieldsCounters done [09:46:27]requested_item shift.num is exist - process it [09:46:27]requested_item shift.opened is exist - process it [09:46:27]req_shift_opened [09:46:27]FM_GetShiftState [09:46:27]SAM_PROTO_GetShiftState [09:46:27]wFMCommunicate request_size=4 [09:46:27]MH_SAM_APDU [09:46:27]CAPDU: 80 13 01 00 [09:46:27]Write to MH i2c: E2 08 00 F2 15 80 13 01 00 00 00 00 00 84 [09:46:27]Write i2c OK [09:46:27]MH_I2C_Read... [09:46:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:27]Read from MH i2c: E2 [09:46:27]MH_I2C_Read... [09:46:27]Read from MH i2c: E2 0E 00 [09:46:27]MH_I2C_Read... [09:46:27]Read from MH i2c: E2 0E 00 F2 15 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 4B [09:46:27]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:46:27]wFMCommunicate OK [09:46:27]SAM_PROTO_GetShiftState done [09:46:27]FM_GetShiftState done [09:46:27]req_shift_opened done [09:46:27]requested_item shift.open_date is exist - process it [09:46:27]req_shift_open_date [09:46:27]req_shift_open_date done [09:46:27]produce_requested_data done [09:46:27]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228101,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [09:46:27]process_action_free close_receipt [09:46:27]json_value_free [09:46:27]json_value_free done [09:46:27]process_json_proto returns [09:46:27]Send response to host [09:46:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228101,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [09:46:27]free response buf [09:46:27]execute_script done [09:46:27]execute_script returns [09:46:27]free content buf [09:46:27]Sock 9.Close socket [09:46:27]Sock 9.Thread stoped [09:46:31]OFD Sender: No OFD packet to send [09:46:36]OFD Sender: No OFD packet to send [09:46:41]OFD Sender: No OFD packet to send [09:46:46]OFD Sender: No OFD packet to send [09:46:51]OFD Sender: No OFD packet to send [09:46:55]accept exits with 10 [09:46:55]New connection [09:46:55]New thread 3067137380 created [09:46:55]Thread 3066994020 joined [09:46:55]Waiting for new connection... [09:46:55] Sock 10.Parse request [09:46:55]Sock 10.Check first char [09:46:55]Sock 10.First char is OK [09:46:55]request: POST /json_proto HTTP/1.0 [09:46:55]Method: POST [09:46:55]URL: /json_proto [09:46:55]Method is POST - this is cgi request [09:46:55]url: /json_proto [09:46:55]query_string will be loaded in cgi processing [09:46:55]execute_cgi json_proto POST (null) [09:46:55]execute_cgi path=json_proto method=POST [09:46:55]POST find Content-Length [09:46:55]Host: 172.17.44.195:8080 [09:46:55]Content-Length: 678 [09:46:55]Content-Type: application/json [09:46:55] [09:46:55]POST finish read [09:46:55]Found Content-Length = 678 [09:46:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:46:55]execute_script... [09:46: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)1964460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:46:55]POST & json_proto [09:46:55]process_json_proto [09:46:55]json parsed OK: [09:46:55]protocol is kg_v1.0 [09:46:55]action value=close_receipt [09:46:55]process_action close_receipt [09:46:55]cmd_close_receipt [09:46:55]MH_GetDate [09:46:55]Write to MH i2c: F0 00 00 F3 15 F7 [09:46:55]Write i2c OK [09:46:55]MH_I2C_Read... [09:46:55]Read from MH i2c: F0 [09:46:55]MH_I2C_Read... [09:46:55]Read from MH i2c: F0 09 00 [09:46:55]MH_I2C_Read... [09:46:55]Read from MH i2c: F0 09 00 F3 15 00 93 74 17 67 82 C9 CF 66 05 [09:46:55]GetLastDocTimeStamp 1729590386 [09:46:55]current date 1729590419 [09:46:55]FM_GetShiftState [09:46:55]SAM_PROTO_GetShiftState [09:46:55]wFMCommunicate request_size=4 [09:46:55]MH_SAM_APDU [09:46:55]CAPDU: 80 13 01 00 [09:46:55]Write to MH i2c: E2 08 00 F4 15 80 13 01 00 00 00 00 00 86 [09:46:55]Write i2c OK [09:46:55]MH_I2C_Read... [09:46:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:55]Read from MH i2c: E2 [09:46:55]MH_I2C_Read... [09:46:55]Read from MH i2c: E2 0E 00 [09:46:55]MH_I2C_Read... [09:46:55]Read from MH i2c: E2 0E 00 F4 15 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 4D [09:46:55]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:46:55]wFMCommunicate OK [09:46:55]SAM_PROTO_GetShiftState done [09:46:55]FM_GetShiftState done [09:46:55]opened in 1729555538 [09:46:55]opened+sec_in_day 1729641938 [09:46:55]quantity*price = 50041 [09:46:55]sum+1 = 50042 [09:46:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 66 22.10.2024 09:46 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228102 ФПД: 141275502390836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094659&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228102&fm=141275502390836&tin=02508201610067®Number=0000000000091685&sum=50000 [09:46:56]StoreToDocumentArchive [09:46:56]shift 535 fd 228102 [09:46:56]save to /storage/0535/doc_00228102 [09:46:56]save last doc name /storage/0535/doc_00228102 to /storage/kkm_last_doc_name [09:46:56]save OK [09:46:56]Clear old archive folders... [09:46:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:46:56]tlvbuf is 00A65790 [09:46:56]SAM_PROTO_ClearQueue [09:46:56]wFMCommunicate request_size=4 [09:46:56]MH_SAM_APDU [09:46:56]CAPDU: 80 09 00 00 [09:46:56]Write to MH i2c: E2 08 00 01 16 80 09 00 00 00 00 00 00 89 [09:46:56]Write i2c OK [09:46:56]MH_I2C_Read... [09:46:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:57]Read from MH i2c: E2 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 03 00 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 03 00 01 16 00 90 00 8B [09:46:57]RAPDU: 90 00 [09:46:57]wFMCommunicate OK [09:46:57]SAM_PROTO_ClearQueue done [09:46:57]KKMCreateOFDPacket [09:46:57]OFDProtocolAddRootSTLVToBuf [09:46:57]FM_MakeSignedData [09:46:57]FM_MakeSignedData [09:46:57]SAM_PROTO_SignData [09:46:57]wFMCommunicate request_size=4 [09:46:57]MH_SAM_APDU [09:46:57]CAPDU: 80 0D 01 02 [09:46:57]Write to MH i2c: E2 08 00 02 16 80 0D 01 02 00 00 00 00 91 [09:46:57]Write i2c OK [09:46:57]MH_I2C_Read... [09:46:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:57]Read from MH i2c: E2 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 03 00 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 03 00 02 16 00 90 00 8C [09:46:57]RAPDU: 90 00 [09:46:57]wFMCommunicate OK [09:46:57]wFMCommunicate request_size=255 [09:46:57]MH_SAM_APDU [09:46: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 93 74 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 06 7B 03 00 35 04 06 00 80 [09:46:57]Write to MH i2c: E2 02 01 03 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 93 74 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 06 7B 03 00 35 04 06 00 80 00 00 0C [09:46:57]Write i2c OK [09:46:57]MH_I2C_Read... [09:46:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:57]Read from MH i2c: E2 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 03 00 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 03 00 03 16 00 90 00 8D [09:46:57]RAPDU: 90 00 [09:46:57]wFMCommunicate OK [09:46:57]wFMCommunicate request_size=10 [09:46:57]MH_SAM_APDU [09:46:57]CAPDU: 80 0D 02 02 05 7D 44 22 AE 34 [09:46:57]Write to MH i2c: E2 0D 00 04 16 80 0D 02 02 05 00 7D 44 22 AE 34 00 00 63 [09:46:57]Write i2c OK [09:46:57]MH_I2C_Read... [09:46:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:57]Read from MH i2c: E2 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 03 00 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 03 00 04 16 00 90 00 8E [09:46:57]RAPDU: 90 00 [09:46:57]wFMCommunicate OK [09:46:57]wFMCommunicate request_size=4 [09:46:57]MH_SAM_APDU [09:46:57]CAPDU: 80 0D 03 02 [09:46:57]Write to MH i2c: E2 08 00 05 16 80 0D 03 02 00 00 00 00 96 [09:46:57]Write i2c OK [09:46:57]MH_I2C_Read... [09:46:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:57]Read from MH i2c: E2 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 0B 00 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 0B 00 05 16 00 66 3A 57 13 61 57 88 28 90 00 09 [09:46:57]RAPDU: 66 3A 57 13 61 57 88 28 90 00 [09:46:57]wFMCommunicate OK [09:46:57]SAM_PROTO_SignData done [09:46:57]FM_MakeSignedData done [09:46:57]CreateOFDProtocolMessage [09:46:57]wFMCommunicate request_size=4 [09:46:57]MH_SAM_APDU [09:46:57]CAPDU: 80 11 00 00 [09:46:57]Write to MH i2c: E2 08 00 06 16 80 11 00 00 00 00 00 00 96 [09:46:57]Write i2c OK [09:46:57]MH_I2C_Read... [09:46:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:57]Read from MH i2c: E2 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 17 00 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 17 00 06 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 ED [09:46:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:46:57]wFMCommunicate OK [09:46:57]CreateOFDProtocolMessage done [09:46:57]OFDSenderStorePacket 228102 [09:46:57]StoreOFDPacket docnum=228102 [09:46:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 32 5B 07 01 E5 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 93 74 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 06 7B 03 00 35 04 06 00 80 7D 44 22 AE 34 66 3A 57 13 61 57 88 28 [09:46:57]CheckFolder [09:46:57]dirname=/storage/ofd_packets [09:46:57]CheckFolder done [09:46:57]ProducePacketName [09:46:57]name=ofd_packets/00228102 [09:46:57]NVStorageSaveData ofd_packets/00228102 [09:46:57]File name is /storage/ofd_packets/00228102 [09:46:57]Write 301 bytes [09:46:57]NVStorageSaveData done [09:46:57]OFDSenderStorePacket done [09:46:57]KKMCreateOFDPacket done [09:46:57]NVStorageSaveData kkm_last_timestamp [09:46:57]File name is /storage/kkm_last_timestamp [09:46:57]Write 4 bytes [09:46:57]NVStorageSaveData done [09:46:57]OFD Sender: Processing packet 228102 [packets to send 38, broken 37] [09:46:57]ProducePacketName [09:46:57]name=ofd_packets/00228102 [09:46:57]OFD Sender: To server: pG, [09:46:57]CommunicateWithHost lk.salyk.kg:30040 [09:46:57]ConnectInit lk.salyk.kg [09:46:57]ExternCall_PrintAddStr [09:46:57]wPrintStart [09:46:57]Write to MH i2c: 01 00 00 07 16 1D [09:46:57]Write i2c OK [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: 01 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: 01 07 00 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: 01 07 00 07 16 00 00 00 00 00 FF 0F 32 [09:46:57]RasterBufferAndPrint [09:46:57]line Счет N : (1)1964460 [09:46:57]line ИНН: 02508201610067 [09:46:57]line Контрольно-Кассовый Чек [09:46:57]line ПРОДАЖА [09:46:57]line ТРК (МРК, ГНК) : 33 [09:46:57]line Товар: 2710124130 [09:46:57]line Аи-92-К-5 [09:46:57]line 7.480 * 66.90 [09:46:57]line = 500.41 [09:46:57]line НДС 12% НСП 1% [09:46:57]line > о реализуемом товаре [09:46:57]line ОКРУГЛЕНИЕ: -0.41 [09:46:57]line ИТОГО: 500.00 [09:46:57]line Внесено: 500.00 [09:46:57]line СДАЧА: 0.00 [09:46:57]line НСП 1% : 4.43 [09:46:57]line НДС 12% : 53.14 [09:46:57]line Наличными: 500.00 [09:46:57]line Безнал.: 0.00 [09:46:57]line Место: АЗС № 133 "Партнер Нефть" [09:46:57]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:46:57]line СНО: Общий режим [09:46:57]line Чек 66 22.10.2024 09:46 [09:46:57]line Смена: 535 ФФД: 1.0 [09:46:57]line ЗНМ: 0300000091 [09:46:57]line РНМ: 0000000000091685 [09:46:57]line Версия ККМ: 001 [09:46:57]line ФМ: 0000000000871839 [09:46:57]line ФД: 228102 [09:46:57]line ФПД: 141275502390836 [09:46:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094659&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228102&fm=141275502390836&tin=02508201610067®Number=0000000000091685&sum=50000 [09:46:57]Connected sock=11 [09:46:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 32 5B 07 01 E5 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 93 74 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 06 7B 03 00 35 04 06 00 80 7D 44 22 AE 34 66 3A 57 13 61 57 88 28 [09:46:57]written 0, free lines is 4095 [09:46:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 A2 20 47 00 42 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 06 7B 03 00 F4 03 04 00 8B 1F 17 67 B6 04 01 00 00 66 F0 9E E4 A6 68 F2 BE [09:46:58]CommunicateWithHost err = 0 [09:46:58]CheckOFDResponse [09:46:58]1017 (14) - 77093643461234 [09:46:58]1041 (16) - 0000000000871839 [09:46:58]1040 (4) - 228102 [09:46:58]1012 (4) - 22.10.2024 03:44 [09:46:58]1206 (1) - 0 [09:46:58]OFD Sender: Remove packet 228102 [09:46:58]ProducePacketName [09:46:58]name=ofd_packets/00228102 [09:46:58]NVStorageDeleteData [09:46:58]Write to MH i2c: 01 00 00 31 16 47 [09:46:58]Write i2c OK [09:46:58]MH_I2C_Read... [09:46:58]Read from MH i2c: 01 [09:46:58]MH_I2C_Read... [09:46:58]Read from MH i2c: 01 07 00 [09:46:58]MH_I2C_Read... [09:46:58]Read from MH i2c: 01 07 00 31 16 00 00 00 00 00 AD 0C 07 [09:46:58]RasterBufferAndPrint [09:46:58]line [09:46:58]line [09:46:58]line [09:46:58]line [09:46:58]line [09:46:58]written 0, free lines is 3248 [09:46:58]MH_Cut [09:46:58]Write to MH i2c: D1 01 00 38 16 01 20 [09:46:58]Write i2c OK [09:46:58]MH_I2C_Read... [09:46:58]Read from MH i2c: D1 [09:46:58]MH_I2C_Read... [09:46:58]Read from MH i2c: D1 01 00 [09:46:58]MH_I2C_Read... [09:46:58]Read from MH i2c: D1 01 00 38 16 00 1F [09:46:58]Write to MH i2c: 01 00 00 39 16 4F [09:46:58]Write i2c OK [09:46:58]MH_I2C_Read... [09:46:58]OFD Sender: No OFD packet to send [09:46:59]*** Cut start [09:46:59]*** Partial cut [09:46:59]*** CUTSNS_PIN = 1 [09:46:59]*** CUTSNS_PIN = 0 [09:46:59]*** Brake cut motor [09:46:59]Read from MH i2c: 01 [09:46:59]MH_I2C_Read... [09:46:59]*** Stop cut motor [09:46:59]*** Cut end [09:46:59]Read from MH i2c: 01 07 00 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: 01 07 00 39 16 00 00 00 00 00 FF 0F 64 [09:46:59]process_action close_receipt done [09:46:59]requested_data is exist [09:46:59]produce_requested_data [09:46:59]requested_item fm.sn is exist - process it [09:46:59]wFMCommunicate request_size=4 [09:46:59]MH_SAM_APDU [09:46:59]CAPDU: 80 11 00 00 [09:46:59]Write to MH i2c: E2 08 00 3A 16 80 11 00 00 00 00 00 00 CA [09:46:59]Write i2c OK [09:46:59]MH_I2C_Read... [09:46:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:59]Read from MH i2c: E2 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: E2 17 00 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: E2 17 00 3A 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 21 [09:46:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:46:59]wFMCommunicate OK [09:46:59]requested_item fd.num is exist - process it [09:46:59]SAM_PROTO_GetFieldsCounters [09:46:59]wFMCommunicate request_size=4 [09:46:59]MH_SAM_APDU [09:46:59]CAPDU: 80 13 00 00 [09:46:59]Write to MH i2c: E2 08 00 3B 16 80 13 00 00 00 00 00 00 CD [09:46:59]Write i2c OK [09:46:59]MH_I2C_Read... [09:47:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:00]Read from MH i2c: E2 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 62 00 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 62 00 3B 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 06 7B 03 00 0E 04 04 00 17 02 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 59 [09:47:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 06 7B 03 00 0E 04 04 00 17 02 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:47:00]wFMCommunicate OK [09:47:00]SAM_PROTO_GetFieldsCounters done [09:47:00]requested_item shift.num is exist - process it [09:47:00]requested_item shift.opened is exist - process it [09:47:00]req_shift_opened [09:47:00]FM_GetShiftState [09:47:00]SAM_PROTO_GetShiftState [09:47:00]wFMCommunicate request_size=4 [09:47:00]MH_SAM_APDU [09:47:00]CAPDU: 80 13 01 00 [09:47:00]Write to MH i2c: E2 08 00 3C 16 80 13 01 00 00 00 00 00 CF [09:47:00]Write i2c OK [09:47:00]MH_I2C_Read... [09:47:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:00]Read from MH i2c: E2 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 0E 00 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 0E 00 3C 16 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 96 [09:47:00]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:47:00]wFMCommunicate OK [09:47:00]SAM_PROTO_GetShiftState done [09:47:00]FM_GetShiftState done [09:47:00]req_shift_opened done [09:47:00]requested_item shift.open_date is exist - process it [09:47:00]req_shift_open_date [09:47:00]req_shift_open_date done [09:47:00]produce_requested_data done [09:47:00]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228102,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [09:47:00]process_action_free close_receipt [09:47:00]json_value_free [09:47:00]json_value_free done [09:47:00]process_json_proto returns [09:47:00]Send response to host [09:47:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228102,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [09:47:00]free response buf [09:47:00]execute_script done [09:47:00]execute_script returns [09:47:00]free content buf [09:47:00]Sock 10.Close socket [09:47:00]Sock 10.Thread stoped [09:47:03]OFD Sender: No OFD packet to send [09:47:08]OFD Sender: No OFD packet to send [09:47:13]OFD Sender: No OFD packet to send [09:47:18]OFD Sender: No OFD packet to send [09:47:23]OFD Sender: No OFD packet to send [09:47:28]OFD Sender: No OFD packet to send [09:47:33]OFD Sender: No OFD packet to send [09:47:38]OFD Sender: No OFD packet to send [09:47:43]OFD Sender: No OFD packet to send [09:47:48]OFD Sender: No OFD packet to send [09:47:52]accept exits with 7 [09:47:52]New connection [09:47:52]New thread 3066994020 created [09:47:52]Thread 3067137380 joined [09:47:52]Waiting for new connection... [09:47:52] Sock 7.Parse request [09:47:52]Sock 7.Check first char [09:47:52]Sock 7.First char is OK [09:47:52]request: POST /json_proto HTTP/1.0 [09:47:52]Method: POST [09:47:52]URL: /json_proto [09:47:52]Method is POST - this is cgi request [09:47:52]url: /json_proto [09:47:52]query_string will be loaded in cgi processing [09:47:52]execute_cgi json_proto POST (null) [09:47:52]execute_cgi path=json_proto method=POST [09:47:52]POST find Content-Length [09:47:52]Host: 172.17.44.195:8080 [09:47:52]Content-Length: 660 [09:47:52]Content-Type: application/json [09:47:52] [09:47:52]POST finish read [09:47:52]Found Content-Length = 660 [09:47:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "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" ] } } [09:47:52]execute_script... [09:47:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "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" ] } } [09:47:52]POST & json_proto [09:47:52]process_json_proto [09:47:52]json parsed OK: [09:47:52]protocol is kg_v1.0 [09:47:52]action value=close_receipt [09:47:52]process_action close_receipt [09:47:52]cmd_close_receipt [09:47:52]MH_GetDate [09:47:52]Write to MH i2c: F0 00 00 3D 16 42 [09:47:52]Write i2c OK [09:47:52]MH_I2C_Read... [09:47:52]Read from MH i2c: F0 [09:47:52]MH_I2C_Read... [09:47:52]Read from MH i2c: F0 09 00 [09:47:52]MH_I2C_Read... [09:47:52]Read from MH i2c: F0 09 00 3D 16 00 CB 74 17 67 82 C9 CF 66 88 [09:47:52]GetLastDocTimeStamp 1729590419 [09:47:52]current date 1729590475 [09:47:52]FM_GetShiftState [09:47:52]SAM_PROTO_GetShiftState [09:47:52]wFMCommunicate request_size=4 [09:47:52]MH_SAM_APDU [09:47:52]CAPDU: 80 13 01 00 [09:47:52]Write to MH i2c: E2 08 00 3E 16 80 13 01 00 00 00 00 00 D1 [09:47:52]Write i2c OK [09:47:52]MH_I2C_Read... [09:47:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:52]Read from MH i2c: E2 [09:47:52]MH_I2C_Read... [09:47:52]Read from MH i2c: E2 0E 00 [09:47:52]MH_I2C_Read... [09:47:52]Read from MH i2c: E2 0E 00 3E 16 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 98 [09:47:52]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:47:52]wFMCommunicate OK [09:47:52]SAM_PROTO_GetShiftState done [09:47:52]FM_GetShiftState done [09:47:52]opened in 1729555538 [09:47:52]opened+sec_in_day 1729641938 [09:47:52]quantity*price = 70041 [09:47:52]sum+1 = 70043 [09:47:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 67 22.10.2024 09:47 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228103 ФПД: 280682766697665 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094755&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228103&fm=280682766697665&tin=02508201610067®Number=0000000000091685&sum=70000 [09:47:53]StoreToDocumentArchive [09:47:53]shift 535 fd 228103 [09:47:53]save to /storage/0535/doc_00228103 [09:47:53]save last doc name /storage/0535/doc_00228103 to /storage/kkm_last_doc_name [09:47:53]save OK [09:47:53]Clear old archive folders... [09:47:53]ProcessDocumentItem done err = 0, tmpTLVsize=244 [09:47:53]tlvbuf is 00A7BB10 [09:47:53]SAM_PROTO_ClearQueue [09:47:53]wFMCommunicate request_size=4 [09:47:53]MH_SAM_APDU [09:47:53]CAPDU: 80 09 00 00 [09:47:53]Write to MH i2c: E2 08 00 4B 16 80 09 00 00 00 00 00 00 D3 [09:47:53]Write i2c OK [09:47:53]MH_I2C_Read... [09:47:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:53]Read from MH i2c: E2 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: E2 03 00 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: E2 03 00 4B 16 00 90 00 D5 [09:47:53]RAPDU: 90 00 [09:47:53]wFMCommunicate OK [09:47:53]SAM_PROTO_ClearQueue done [09:47:53]KKMCreateOFDPacket [09:47:53]OFDProtocolAddRootSTLVToBuf [09:47:53]FM_MakeSignedData [09:47:53]FM_MakeSignedData [09:47:53]SAM_PROTO_SignData [09:47:53]wFMCommunicate request_size=4 [09:47:53]MH_SAM_APDU [09:47:53]CAPDU: 80 0D 01 02 [09:47:53]Write to MH i2c: E2 08 00 4C 16 80 0D 01 02 00 00 00 00 DB [09:47:53]Write i2c OK [09:47:53]MH_I2C_Read... [09:47:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:53]Read from MH i2c: E2 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: E2 03 00 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: E2 03 00 4C 16 00 90 00 D6 [09:47:53]RAPDU: 90 00 [09:47:53]wFMCommunicate OK [09:47:53]wFMCommunicate request_size=253 [09:47:53]MH_SAM_APDU [09:47:53]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 43 00 00 00 F4 03 04 00 CB 74 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 07 7B 03 00 35 04 06 00 FF 47 8C 9A 84 C1 [09:47:53]Write to MH i2c: E2 00 01 4D 16 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 43 00 00 00 F4 03 04 00 CB 74 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 07 7B 03 00 35 04 06 00 FF 47 8C 9A 84 C1 00 00 2D [09:47:53]Write i2c OK [09:47:53]MH_I2C_Read... [09:47:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:54]Read from MH i2c: E2 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: E2 03 00 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: E2 03 00 4D 16 00 90 00 D7 [09:47:54]RAPDU: 90 00 [09:47:54]wFMCommunicate OK [09:47:54]wFMCommunicate request_size=4 [09:47:54]MH_SAM_APDU [09:47:54]CAPDU: 80 0D 03 02 [09:47:54]Write to MH i2c: E2 08 00 4E 16 80 0D 03 02 00 00 00 00 DF [09:47:54]Write i2c OK [09:47:54]MH_I2C_Read... [09:47:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:54]Read from MH i2c: E2 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: E2 0B 00 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: E2 0B 00 4E 16 00 C9 92 D2 97 5C 08 EB B1 90 00 A4 [09:47:54]RAPDU: C9 92 D2 97 5C 08 EB B1 90 00 [09:47:54]wFMCommunicate OK [09:47:54]SAM_PROTO_SignData done [09:47:54]FM_MakeSignedData done [09:47:54]CreateOFDProtocolMessage [09:47:54]wFMCommunicate request_size=4 [09:47:54]MH_SAM_APDU [09:47:54]CAPDU: 80 11 00 00 [09:47:54]Write to MH i2c: E2 08 00 4F 16 80 11 00 00 00 00 00 00 DF [09:47:54]Write i2c OK [09:47:54]MH_I2C_Read... [09:47:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:54]Read from MH i2c: E2 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: E2 17 00 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: E2 17 00 4F 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 36 [09:47:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:47:54]wFMCommunicate OK [09:47:54]CreateOFDProtocolMessage done [09:47:54]OFDSenderStorePacket 228103 [09:47:54]StoreOFDPacket docnum=228103 [09:47:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 0F E0 00 01 59 C4 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 43 00 00 00 F4 03 04 00 CB 74 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 07 7B 03 00 35 04 06 00 FF 47 8C 9A 84 C1 C9 92 D2 97 5C 08 EB B1 [09:47:54]CheckFolder [09:47:54]dirname=/storage/ofd_packets [09:47:54]CheckFolder done [09:47:54]ProducePacketName [09:47:54]name=ofd_packets/00228103 [09:47:54]NVStorageSaveData ofd_packets/00228103 [09:47:54]File name is /storage/ofd_packets/00228103 [09:47:54]Write 294 bytes [09:47:54]NVStorageSaveData done [09:47:54]OFDSenderStorePacket done [09:47:54]KKMCreateOFDPacket done [09:47:54]NVStorageSaveData kkm_last_timestamp [09:47:54]File name is /storage/kkm_last_timestamp [09:47:54]Write 4 bytes [09:47:54]NVStorageSaveData done [09:47:54]ExternCall_PrintAddStr [09:47:54]wPrintStart [09:47:54]Write to MH i2c: 01 00 00 50 16 66 [09:47:54]Write i2c OK [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: 01 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: 01 07 00 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: 01 07 00 50 16 00 00 00 00 00 FF 0F 7B [09:47:54]RasterBufferAndPrint [09:47:54]line Счет N : (1)1964461 [09:47:54]line ИНН: 02508201610067 [09:47:54]line Контрольно-Кассовый Чек [09:47:54]line ПРОДАЖА [09:47:54]line ТРК (МРК, ГНК) : 62 [09:47:54]line Товар: 2710124130 [09:47:54]line SU-92 [09:47:54]line 10.240 * 68.40 [09:47:54]line = 700.42 [09:47:54]line НДС 12% НСП 1% [09:47:54]line > о реализуемом товаре [09:47:54]line ОКРУГЛЕНИЕ: -0.42 [09:47:54]line ИТОГО: 700.00 [09:47:54]line Внесено: 700.00 [09:47:54]line СДАЧА: 0.00 [09:47:54]line НСП 1% : 6.20 [09:47:54]line НДС 12% : 74.38 [09:47:54]line Наличными: 700.00 [09:47:54]line Безнал.: 0.00 [09:47:54]line Место: АЗС № 133 "Партнер Нефть" [09:47:54]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:47:54]line СНО: Общий режим [09:47:54]line Чек 67 22.10.2024 09:47 [09:47:54]line Смена: 535 ФФД: 1.0 [09:47:54]line ЗНМ: 0300000091 [09:47:54]line РНМ: 0000000000091685 [09:47:54]line Версия ККМ: 001 [09:47:54]line ФМ: 0000000000871839 [09:47:54]line ФД: 228103 [09:47:54]line ФПД: 280682766697665 [09:47:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094755&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228103&fm=280682766697665&tin=02508201610067®Number=0000000000091685&sum=70000 [09:47:54]OFD Sender: Processing packet 228103 [packets to send 38, broken 37] [09:47:54]ProducePacketName [09:47:54]name=ofd_packets/00228103 [09:47:54]OFD Sender: To server: pG, [09:47:54]CommunicateWithHost lk.salyk.kg:30040 [09:47:54]ConnectInit lk.salyk.kg [09:47:54]written 0, free lines is 4095 [09:47:54]Connected sock=10 [09:47:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 0F E0 00 01 59 C4 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 43 00 00 00 F4 03 04 00 CB 74 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 07 7B 03 00 35 04 06 00 FF 47 8C 9A 84 C1 C9 92 D2 97 5C 08 EB B1 [09:47:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 B3 67 47 00 DE 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 38 37 31 38 33 39 10 04 04 00 07 7B 03 00 F4 03 04 00 C4 1F 17 67 B6 04 01 00 00 4F 61 19 14 DD 8F 19 98 [09:47:54]CommunicateWithHost err = 0 [09:47:54]CheckOFDResponse [09:47:54]1017 (14) - 77093643461234 [09:47:54]1041 (16) - 0000000000871839 [09:47:54]1040 (4) - 228103 [09:47:54]1012 (4) - 22.10.2024 03:45 [09:47:54]1206 (1) - 0 [09:47:54]OFD Sender: Remove packet 228103 [09:47:54]ProducePacketName [09:47:54]name=ofd_packets/00228103 [09:47:54]NVStorageDeleteData [09:47:54]Write to MH i2c: 01 00 00 7A 16 90 [09:47:54]Write i2c OK [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: 01 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: 01 07 00 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: 01 07 00 7A 16 00 00 00 00 00 AE 0C 51 [09:47:54]RasterBufferAndPrint [09:47:54]line [09:47:54]line [09:47:54]line [09:47:54]line [09:47:54]line [09:47:54]written 0, free lines is 3250 [09:47:54]MH_Cut [09:47:54]Write to MH i2c: D1 01 00 81 16 01 69 [09:47:54]Write i2c OK [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: D1 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: D1 01 00 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: D1 01 00 81 16 00 68 [09:47:54]Write to MH i2c: 01 00 00 82 16 98 [09:47:54]Write i2c OK [09:47:54]MH_I2C_Read... [09:47:55]OFD Sender: No OFD packet to send [09:47:55]*** Cut start [09:47:55]*** Partial cut [09:47:55]*** CUTSNS_PIN = 1 [09:47:55]*** CUTSNS_PIN = 0 [09:47:56]*** Brake cut motor [09:47:56]Read from MH i2c: 01 *** Stop cut motor [09:47:56]*** Cut end [09:47:56] [09:47:56]MH_I2C_Read... [09:47:56]Read from MH i2c: 01 07 00 [09:47:56]MH_I2C_Read... [09:47:56]Read from MH i2c: 01 07 00 82 16 00 00 00 00 00 FF 0F AD [09:47:56]process_action close_receipt done [09:47:56]requested_data is exist [09:47:56]produce_requested_data [09:47:56]requested_item fm.sn is exist - process it [09:47:56]wFMCommunicate request_size=4 [09:47:56]MH_SAM_APDU [09:47:56]CAPDU: 80 11 00 00 [09:47:56]Write to MH i2c: E2 08 00 83 16 80 11 00 00 00 00 00 00 13 [09:47:56]Write i2c OK [09:47:56]MH_I2C_Read... [09:47:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:56]Read from MH i2c: E2 [09:47:56]MH_I2C_Read... [09:47:56]Read from MH i2c: E2 17 00 [09:47:56]MH_I2C_Read... [09:47:56]Read from MH i2c: E2 17 00 83 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6A [09:47:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:47:56]wFMCommunicate OK [09:47:56]requested_item fd.num is exist - process it [09:47:56]SAM_PROTO_GetFieldsCounters [09:47:56]wFMCommunicate request_size=4 [09:47:56]MH_SAM_APDU [09:47:56]CAPDU: 80 13 00 00 [09:47:56]Write to MH i2c: E2 08 00 84 16 80 13 00 00 00 00 00 00 16 [09:47:56]Write i2c OK [09:47:56]MH_I2C_Read... [09:47:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:56]Read from MH i2c: E2 [09:47:56]MH_I2C_Read... [09:47:56]Read from MH i2c: E2 62 00 [09:47:56]MH_I2C_Read... [09:47:56]Read from MH i2c: E2 62 00 84 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 07 7B 03 00 0E 04 04 00 17 02 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 A6 [09:47:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 07 7B 03 00 0E 04 04 00 17 02 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:47:56]wFMCommunicate OK [09:47:56]SAM_PROTO_GetFieldsCounters done [09:47:56]requested_item shift.num is exist - process it [09:47:56]requested_item shift.opened is exist - process it [09:47:56]req_shift_opened [09:47:56]FM_GetShiftState [09:47:56]SAM_PROTO_GetShiftState [09:47:56]wFMCommunicate request_size=4 [09:47:56]MH_SAM_APDU [09:47:56]CAPDU: 80 13 01 00 [09:47:56]Write to MH i2c: E2 08 00 85 16 80 13 01 00 00 00 00 00 18 [09:47:56]Write i2c OK [09:47:56]MH_I2C_Read... [09:47:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:56]Read from MH i2c: E2 [09:47:56]MH_I2C_Read... [09:47:56]Read from MH i2c: E2 0E 00 [09:47:56]MH_I2C_Read... [09:47:56]Read from MH i2c: E2 0E 00 85 16 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 DF [09:47:56]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:47:56]wFMCommunicate OK [09:47:56]SAM_PROTO_GetShiftState done [09:47:56]FM_GetShiftState done [09:47:56]req_shift_opened done [09:47:56]requested_item shift.open_date is exist - process it [09:47:56]req_shift_open_date [09:47:56]req_shift_open_date done [09:47:56]produce_requested_data done [09:47:56]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228103,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [09:47:56]process_action_free close_receipt [09:47:56]json_value_free [09:47:56]json_value_free done [09:47:56]process_json_proto returns [09:47:56]Send response to host [09:47:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228103,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [09:47:56]free response buf [09:47:56]execute_script done [09:47:56]execute_script returns [09:47:56]free content buf [09:47:56]Sock 7.Close socket [09:47:56]Sock 7.Thread stoped [09:48:00]OFD Sender: No OFD packet to send [09:48:05]OFD Sender: No OFD packet to send [09:48:10]OFD Sender: No OFD packet to send [09:48:15]OFD Sender: No OFD packet to send [09:48:20]OFD Sender: No OFD packet to send [09:48:25]OFD Sender: No OFD packet to send [09:48:30]OFD Sender: No OFD packet to send [09:48:35]OFD Sender: No OFD packet to send [09:48:40]OFD Sender: No OFD packet to send [09:48:45]OFD Sender: No OFD packet to send [09:48:50]OFD Sender: No OFD packet to send [09:48:55]OFD Sender: No OFD packet to send [09:49:00]OFD Sender: No OFD packet to send [09:49:05]OFD Sender: No OFD packet to send [09:49:10]OFD Sender: No OFD packet to send [09:49:15]OFD Sender: No OFD packet to send [09:49:20]OFD Sender: No OFD packet to send [09:49:25]OFD Sender: No OFD packet to send [09:49:26]accept exits with 9 [09:49:26]New connection [09:49:26]New thread 3067137380 created [09:49:26]Thread 3066994020 joined [09:49:26]Waiting for new connection... [09:49:26] Sock 9.Parse request [09:49:26]Sock 9.Check first char [09:49:26]Sock 9.First char is OK [09:49:26]request: POST /json_proto HTTP/1.0 [09:49:26]Method: POST [09:49:26]URL: /json_proto [09:49:26]Method is POST - this is cgi request [09:49:26]url: /json_proto [09:49:26]query_string will be loaded in cgi processing [09:49:26]execute_cgi json_proto POST (null) [09:49:26]execute_cgi path=json_proto method=POST [09:49:26]POST find Content-Length [09:49:26]Host: 172.17.44.195:8080 [09:49:26]Content-Length: 678 [09:49:26]Content-Type: application/json [09:49:26] [09:49:26]POST finish read [09:49:26]Found Content-Length = 678 [09:49:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "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" ] } } [09:49:26]execute_script... [09:49: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)1964463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "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" ] } } [09:49:26]POST & json_proto [09:49:26]process_json_proto [09:49:26]json parsed OK: [09:49:26]protocol is kg_v1.0 [09:49:26]action value=close_receipt [09:49:26]process_action close_receipt [09:49:26]cmd_close_receipt [09:49:26]MH_GetDate [09:49:26]Write to MH i2c: F0 00 00 86 16 8B [09:49:26]Write i2c OK [09:49:26]MH_I2C_Read... [09:49:26]Read from MH i2c: F0 [09:49:26]MH_I2C_Read... [09:49:26]Read from MH i2c: F0 09 00 [09:49:26]MH_I2C_Read... [09:49:26]Read from MH i2c: F0 09 00 86 16 00 29 75 17 67 82 C9 CF 66 30 [09:49:26]GetLastDocTimeStamp 1729590475 [09:49:26]current date 1729590569 [09:49:26]FM_GetShiftState [09:49:26]SAM_PROTO_GetShiftState [09:49:26]wFMCommunicate request_size=4 [09:49:26]MH_SAM_APDU [09:49:26]CAPDU: 80 13 01 00 [09:49:26]Write to MH i2c: E2 08 00 87 16 80 13 01 00 00 00 00 00 1A [09:49:26]Write i2c OK [09:49:26]MH_I2C_Read... [09:49:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:26]Read from MH i2c: E2 [09:49:26]MH_I2C_Read... [09:49:26]Read from MH i2c: E2 0E 00 [09:49:26]MH_I2C_Read... [09:49:26]Read from MH i2c: E2 0E 00 87 16 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 E1 [09:49:26]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:49:26]wFMCommunicate OK [09:49:26]SAM_PROTO_GetShiftState done [09:49:26]FM_GetShiftState done [09:49:26]opened in 1729555538 [09:49:26]opened+sec_in_day 1729641938 [09:49:26]quantity*price = 40006 [09:49:26]sum+1 = 40007 [09:49:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 68 22.10.2024 09:49 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228104 ФПД: 104314823355814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094929&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228104&fm=104314823355814&tin=02508201610067®Number=0000000000091685&sum=40000 [09:49:27]StoreToDocumentArchive [09:49:27]shift 535 fd 228104 [09:49:27]save to /storage/0535/doc_00228104 [09:49:27]save last doc name /storage/0535/doc_00228104 to /storage/kkm_last_doc_name [09:49:27]save OK [09:49:27]Clear old archive folders... [09:49:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:49:27]tlvbuf is 0085DAA0 [09:49:27]SAM_PROTO_ClearQueue [09:49:27]wFMCommunicate request_size=4 [09:49:27]MH_SAM_APDU [09:49:27]CAPDU: 80 09 00 00 [09:49:27]Write to MH i2c: E2 08 00 94 16 80 09 00 00 00 00 00 00 1C [09:49:27]Write i2c OK [09:49:27]MH_I2C_Read... [09:49:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:27]Read from MH i2c: E2 [09:49:27]MH_I2C_Read... [09:49:27]Read from MH i2c: E2 03 00 [09:49:27]MH_I2C_Read... [09:49:27]Read from MH i2c: E2 03 00 94 16 00 90 00 1E [09:49:27]RAPDU: 90 00 [09:49:27]wFMCommunicate OK [09:49:27]SAM_PROTO_ClearQueue done [09:49:27]KKMCreateOFDPacket [09:49:27]OFDProtocolAddRootSTLVToBuf [09:49:27]FM_MakeSignedData [09:49:27]FM_MakeSignedData [09:49:27]SAM_PROTO_SignData [09:49:27]wFMCommunicate request_size=4 [09:49:27]MH_SAM_APDU [09:49:27]CAPDU: 80 0D 01 02 [09:49:27]Write to MH i2c: E2 08 00 95 16 80 0D 01 02 00 00 00 00 24 [09:49:27]Write i2c OK [09:49:27]MH_I2C_Read... [09:49:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:27]Read from MH i2c: E2 [09:49:27]MH_I2C_Read... [09:49:27]Read from MH i2c: E2 03 00 [09:49:27]MH_I2C_Read... [09:49:27]Read from MH i2c: E2 03 00 95 16 00 90 00 1F [09:49:27]RAPDU: 90 00 [09:49:27]wFMCommunicate OK [09:49:27]wFMCommunicate request_size=255 [09:49:27]MH_SAM_APDU [09:49: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 44 00 00 00 F4 03 04 00 29 75 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 08 7B 03 00 35 04 06 00 5E [09:49:27]Write to MH i2c: E2 02 01 96 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 44 00 00 00 F4 03 04 00 29 75 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 08 7B 03 00 35 04 06 00 5E 00 00 E7 [09:49:27]Write i2c OK [09:49:27]MH_I2C_Read... [09:49:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:28]Read from MH i2c: E2 [09:49:28]MH_I2C_Read... [09:49:28]Read from MH i2c: E2 03 00 [09:49:28]MH_I2C_Read... [09:49:28]Read from MH i2c: E2 03 00 96 16 00 90 00 20 [09:49:28]RAPDU: 90 00 [09:49:28]wFMCommunicate OK [09:49:28]wFMCommunicate request_size=10 [09:49:28]MH_SAM_APDU [09:49:28]CAPDU: 80 0D 02 02 05 DF AF FD AD A6 [09:49:28]Write to MH i2c: E2 0D 00 97 16 80 0D 02 02 05 00 DF AF FD AD A6 00 00 0F [09:49:28]Write i2c OK [09:49:28]MH_I2C_Read... [09:49:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:28]Read from MH i2c: E2 [09:49:28]MH_I2C_Read... [09:49:28]Read from MH i2c: E2 03 00 [09:49:28]MH_I2C_Read... [09:49:28]Read from MH i2c: E2 03 00 97 16 00 90 00 21 [09:49:28]RAPDU: 90 00 [09:49:28]wFMCommunicate OK [09:49:28]wFMCommunicate request_size=4 [09:49:28]MH_SAM_APDU [09:49:28]CAPDU: 80 0D 03 02 [09:49:28]Write to MH i2c: E2 08 00 98 16 80 0D 03 02 00 00 00 00 29 [09:49:28]Write i2c OK [09:49:28]MH_I2C_Read... [09:49:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:28]Read from MH i2c: E2 [09:49:28]MH_I2C_Read... [09:49:28]Read from MH i2c: E2 0B 00 [09:49:28]MH_I2C_Read... [09:49:28]Read from MH i2c: E2 0B 00 98 16 00 F4 05 8D 0A 3A 6E E6 7F 90 00 C7 [09:49:28]RAPDU: F4 05 8D 0A 3A 6E E6 7F 90 00 [09:49:28]wFMCommunicate OK [09:49:28]SAM_PROTO_SignData done [09:49:28]FM_MakeSignedData done [09:49:28]CreateOFDProtocolMessage [09:49:28]wFMCommunicate request_size=4 [09:49:28]MH_SAM_APDU [09:49:28]CAPDU: 80 11 00 00 [09:49:28]Write to MH i2c: E2 08 00 99 16 80 11 00 00 00 00 00 00 29 [09:49:28]Write i2c OK [09:49:28]MH_I2C_Read... [09:49:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:28]Read from MH i2c: E2 [09:49:28]MH_I2C_Read... [09:49:28]Read from MH i2c: E2 17 00 [09:49:28]MH_I2C_Read... [09:49:28]Read from MH i2c: E2 17 00 99 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 80 [09:49:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:49:28]wFMCommunicate OK [09:49:28]CreateOFDProtocolMessage done [09:49:28]OFDSenderStorePacket 228104 [09:49:28]StoreOFDPacket docnum=228104 [09:49:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 7F F2 07 01 70 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 44 00 00 00 F4 03 04 00 29 75 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 08 7B 03 00 35 04 06 00 5E DF AF FD AD A6 F4 05 8D 0A 3A 6E E6 7F [09:49:28]CheckFolder [09:49:28]dirname=/storage/ofd_packets [09:49:28]CheckFolder done [09:49:28]ProducePacketName [09:49:28]name=ofd_packets/00228104 [09:49:28]NVStorageSaveData ofd_packets/00228104 [09:49:28]File name is /storage/ofd_packets/00228104 [09:49:28]Write 301 bytes [09:49:28]NVStorageSaveData done [09:49:28]OFDSenderStorePacket done [09:49:28]KKMCreateOFDPacket done [09:49:28]NVStorageSaveData kkm_last_timestamp [09:49:28]File name is /storage/kkm_last_timestamp [09:49:28]Write 4 bytes [09:49:28]NVStorageSaveData done [09:49:28]ExternCall_PrintAddStr [09:49:28]wPrintStart [09:49:28]Write to MH i2c: 01 00 00 9A 16 B0 [09:49:28]Write i2c OK [09:49:28]MH_I2C_Read... [09:49:28]Read from MH i2c: 01 [09:49:28]MH_I2C_Read... [09:49:28]Read from MH i2c: 01 07 00 [09:49:28]MH_I2C_Read... [09:49:28]Read from MH i2c: 01 07 00 9A 16 00 00 00 00 00 FF 0F C5 [09:49:28]RasterBufferAndPrint [09:49:28]line Счет N : (1)1964463 [09:49:28]line ИНН: 02508201610067 [09:49:28]line Контрольно-Кассовый Чек [09:49:28]line ПРОДАЖА [09:49:28]line ТРК (МРК, ГНК) : 43 [09:49:28]line Товар: 2710124130 [09:49:28]line Аи-92-К-5 [09:49:28]line 5.980 * 66.90 [09:49:28]line = 400.06 [09:49:28]line НДС 12% НСП 1% [09:49:28]line > о реализуемом товаре [09:49:28]line ОКРУГЛЕНИЕ: -0.06 [09:49:28]line ИТОГО: 400.00 [09:49:28]line Внесено: 400.00 [09:49:28]line СДАЧА: 0.00 [09:49:28]line НСП 1% : 3.54 [09:49:28]line НДС 12% : 42.48 [09:49:28]line Наличными: 400.00 [09:49:28]line Безнал.: 0.00 [09:49:28]line Место: АЗС № 133 "Партнер Нефть" [09:49:28]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:49:28]line СНО: Общий режим [09:49:28]line Чек 68 22.10.2024 09:49 [09:49:28]line Смена: 535 ФФД: 1.0 [09:49:28]line ЗНМ: 0300000091 [09:49:28]line РНМ: 0000000000091685 [09:49:28]line Версия ККМ: 001 [09:49:28]line ФМ: 0000000000871839 [09:49:28]line ФД: 228104 [09:49:28]line ФПД: 104314823355814 [09:49:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094929&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228104&fm=104314823355814&tin=02508201610067®Number=0000000000091685&sum=40000 [09:49:28]written 0, free lines is 4095 [09:49:28]OFD Sender: Processing packet 228104 [packets to send 38, broken 37] [09:49:28]ProducePacketName [09:49:28]name=ofd_packets/00228104 [09:49:28]OFD Sender: To server: pG, [09:49:28]CommunicateWithHost lk.salyk.kg:30040 [09:49:28]ConnectInit lk.salyk.kg [09:49:28]Connected sock=10 [09:49:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 7F F2 07 01 70 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 44 00 00 00 F4 03 04 00 29 75 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 08 7B 03 00 35 04 06 00 5E DF AF FD AD A6 F4 05 8D 0A 3A 6E E6 7F [09:49:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 E1 1E 47 00 64 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 08 7B 03 00 F4 03 04 00 22 20 17 67 B6 04 01 00 00 B2 10 7E FC 67 19 8C 2C [09:49:28]CommunicateWithHost err = 0 [09:49:28]CheckOFDResponse [09:49:28]1017 (14) - 77093643461234 [09:49:28]1041 (16) - 0000000000871839 [09:49:28]1040 (4) - 228104 [09:49:28]1012 (4) - 22.10.2024 03:46 [09:49:28]1206 (1) - 0 [09:49:28]OFD Sender: Remove packet 228104 [09:49:28]ProducePacketName [09:49:28]name=ofd_packets/00228104 [09:49:28]NVStorageDeleteData [09:49:29]Write to MH i2c: 01 00 00 C4 16 DA [09:49:29]Write i2c OK [09:49:29]MH_I2C_Read... [09:49:29]Read from MH i2c: 01 [09:49:29]MH_I2C_Read... [09:49:29]Read from MH i2c: 01 07 00 [09:49:29]MH_I2C_Read... [09:49:29]Read from MH i2c: 01 07 00 C4 16 00 00 00 00 00 AF 0C 9C [09:49:29]RasterBufferAndPrint [09:49:29]line [09:49:29]line [09:49:29]line [09:49:29]line [09:49:29]line [09:49:29]written 0, free lines is 3250 [09:49:29]MH_Cut [09:49:29]Write to MH i2c: D1 01 00 CB 16 01 B3 [09:49:29]Write i2c OK [09:49:29]MH_I2C_Read... [09:49:29]Read from MH i2c: D1 [09:49:29]MH_I2C_Read... [09:49:29]Read from MH i2c: D1 01 00 [09:49:29]MH_I2C_Read... [09:49:29]Read from MH i2c: D1 01 00 CB 16 00 B2 [09:49:29]Write to MH i2c: 01 00 00 CC 16 E2 [09:49:29]Write i2c OK [09:49:29]MH_I2C_Read... [09:49:29]OFD Sender: No OFD packet to send [09:49:29]*** Cut start [09:49:29]*** Partial cut [09:49:29]*** CUTSNS_PIN = 1 [09:49:29]*** CUTSNS_PIN = 0 [09:49:30]*** Brake cut motor [09:49:30]Read from MH i2c: 01 [09:49:30]MH_I2C_Read... [09:49:30]*** Stop cut motor [09:49:30]*** Cut end [09:49:30]Read from MH i2c: 01 07 00 [09:49:30]MH_I2C_Read... [09:49:30]Read from MH i2c: 01 07 00 CC 16 00 00 00 00 00 FF 0F F7 [09:49:30]process_action close_receipt done [09:49:30]requested_data is exist [09:49:30]produce_requested_data [09:49:30]requested_item fm.sn is exist - process it [09:49:30]wFMCommunicate request_size=4 [09:49:30]MH_SAM_APDU [09:49:30]CAPDU: 80 11 00 00 [09:49:30]Write to MH i2c: E2 08 00 CD 16 80 11 00 00 00 00 00 00 5D [09:49:30]Write i2c OK [09:49:30]MH_I2C_Read... [09:49:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:30]Read from MH i2c: E2 [09:49:30]MH_I2C_Read... [09:49:30]Read from MH i2c: E2 17 00 [09:49:30]MH_I2C_Read... [09:49:30]Read from MH i2c: E2 17 00 CD 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B4 [09:49:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:49:30]wFMCommunicate OK [09:49:30]requested_item fd.num is exist - process it [09:49:30]SAM_PROTO_GetFieldsCounters [09:49:30]wFMCommunicate request_size=4 [09:49:30]MH_SAM_APDU [09:49:30]CAPDU: 80 13 00 00 [09:49:30]Write to MH i2c: E2 08 00 CE 16 80 13 00 00 00 00 00 00 60 [09:49:30]Write i2c OK [09:49:30]MH_I2C_Read... [09:49:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:30]Read from MH i2c: E2 [09:49:30]MH_I2C_Read... [09:49:30]Read from MH i2c: E2 62 00 [09:49:30]MH_I2C_Read... [09:49:30]Read from MH i2c: E2 62 00 CE 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 08 7B 03 00 0E 04 04 00 17 02 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 F4 [09:49:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 08 7B 03 00 0E 04 04 00 17 02 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:49:30]wFMCommunicate OK [09:49:30]SAM_PROTO_GetFieldsCounters done [09:49:30]requested_item shift.num is exist - process it [09:49:30]requested_item shift.opened is exist - process it [09:49:30]req_shift_opened [09:49:30]FM_GetShiftState [09:49:30]SAM_PROTO_GetShiftState [09:49:30]wFMCommunicate request_size=4 [09:49:30]MH_SAM_APDU [09:49:30]CAPDU: 80 13 01 00 [09:49:30]Write to MH i2c: E2 08 00 CF 16 80 13 01 00 00 00 00 00 62 [09:49:30]Write i2c OK [09:49:30]MH_I2C_Read... [09:49:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:30]Read from MH i2c: E2 [09:49:30]MH_I2C_Read... [09:49:30]Read from MH i2c: E2 0E 00 [09:49:30]MH_I2C_Read... [09:49:30]Read from MH i2c: E2 0E 00 CF 16 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 29 [09:49:30]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:49:30]wFMCommunicate OK [09:49:30]SAM_PROTO_GetShiftState done [09:49:30]FM_GetShiftState done [09:49:30]req_shift_opened done [09:49:30]requested_item shift.open_date is exist - process it [09:49:30]req_shift_open_date [09:49:30]req_shift_open_date done [09:49:30]produce_requested_data done [09:49:30]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228104,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [09:49:30]process_action_free close_receipt [09:49:30]json_value_free [09:49:30]json_value_free done [09:49:30]process_json_proto returns [09:49:30]Send response to host [09:49:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228104,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [09:49:30]free response buf [09:49:30]execute_script done [09:49:30]execute_script returns [09:49:30]free content buf [09:49:30]Sock 9.Close socket [09:49:30]Sock 9.Thread stoped [09:49:34]OFD Sender: No OFD packet to send [09:49:39]OFD Sender: No OFD packet to send [09:49:44]OFD Sender: No OFD packet to send [09:49:49]OFD Sender: No OFD packet to send [09:49:54]OFD Sender: No OFD packet to send [09:49:59]OFD Sender: No OFD packet to send [09:50:04]OFD Sender: No OFD packet to send [09:50:09]OFD Sender: No OFD packet to send [09:50:14]OFD Sender: No OFD packet to send [09:50:19]OFD Sender: No OFD packet to send [09:50:24]OFD Sender: No OFD packet to send [09:50:29]OFD Sender: No OFD packet to send [09:50:34]OFD Sender: No OFD packet to send [09:50:39]OFD Sender: No OFD packet to send [09:50:44]OFD Sender: No OFD packet to send [09:50:49]OFD Sender: No OFD packet to send [09:50:51]accept exits with 7 [09:50:51]New connection [09:50:51]New thread 3066994020 created [09:50:51]Thread 3067137380 joined [09:50:51]Waiting for new connection... [09:50:51] Sock 7.Parse request [09:50:51]Sock 7.Check first char [09:50:51]Sock 7.First char is OK [09:50:51]request: POST /json_proto HTTP/1.0 [09:50:51]Method: POST [09:50:51]URL: /json_proto [09:50:51]Method is POST - this is cgi request [09:50:51]url: /json_proto [09:50:51]query_string will be loaded in cgi processing [09:50:51]execute_cgi json_proto POST (null) [09:50:51]execute_cgi path=json_proto method=POST [09:50:51]POST find Content-Length [09:50:51]Host: 172.17.44.195:8080 [09:50:51]Content-Length: 678 [09:50:51]Content-Type: application/json [09:50:51] [09:50:51]POST finish read [09:50:51]Found Content-Length = 678 [09:50:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 3.320, "sum" : 246.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 246.00, "payments": [ { "type": 0, "sum" : 246.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:51]execute_script... [09:50: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)1964464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 3.320, "sum" : 246.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 246.00, "payments": [ { "type": 0, "sum" : 246.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:51]POST & json_proto [09:50:51]process_json_proto [09:50:51]json parsed OK: [09:50:51]protocol is kg_v1.0 [09:50:51]action value=close_receipt [09:50:51]process_action close_receipt [09:50:51]cmd_close_receipt [09:50:51]MH_GetDate [09:50:51]Write to MH i2c: F0 00 00 D0 16 D5 [09:50:51]Write i2c OK [09:50:51]MH_I2C_Read... [09:50:51]Read from MH i2c: F0 [09:50:51]MH_I2C_Read... [09:50:51]Read from MH i2c: F0 09 00 [09:50:51]MH_I2C_Read... [09:50:51]Read from MH i2c: F0 09 00 D0 16 00 7E 75 17 67 82 C9 CF 66 CF [09:50:51]GetLastDocTimeStamp 1729590569 [09:50:51]current date 1729590654 [09:50:51]FM_GetShiftState [09:50:51]SAM_PROTO_GetShiftState [09:50:51]wFMCommunicate request_size=4 [09:50:51]MH_SAM_APDU [09:50:51]CAPDU: 80 13 01 00 [09:50:51]Write to MH i2c: E2 08 00 D1 16 80 13 01 00 00 00 00 00 64 [09:50:51]Write i2c OK [09:50:51]MH_I2C_Read... [09:50:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:51]Read from MH i2c: E2 [09:50:51]MH_I2C_Read... [09:50:51]Read from MH i2c: E2 0E 00 [09:50:51]MH_I2C_Read... [09:50:51]Read from MH i2c: E2 0E 00 D1 16 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 2B [09:50:51]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:50:51]wFMCommunicate OK [09:50:51]SAM_PROTO_GetShiftState done [09:50:51]FM_GetShiftState done [09:50:51]opened in 1729555538 [09:50:51]opened+sec_in_day 1729641938 [09:50:51]quantity*price = 24634 [09:50:51]sum+1 = 24635 [09:50:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 246.00 Внесено: 500.00 СДАЧА: 254.00 НСП 1% : 2.18 НДС 12% : 26.16 Наличными: 246.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 69 22.10.2024 09:50 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228105 ФПД: 72610898704025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095054&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228105&fm=72610898704025&tin=02508201610067®Number=0000000000091685&sum=24600 [09:50:52]StoreToDocumentArchive [09:50:52]shift 535 fd 228105 [09:50:52]save to /storage/0535/doc_00228105 [09:50:52]save last doc name /storage/0535/doc_00228105 to /storage/kkm_last_doc_name [09:50:52]save OK [09:50:52]Clear old archive folders... [09:50:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:50:52]tlvbuf is 0087EE50 [09:50:52]SAM_PROTO_ClearQueue [09:50:52]wFMCommunicate request_size=4 [09:50:52]MH_SAM_APDU [09:50:52]CAPDU: 80 09 00 00 [09:50:52]Write to MH i2c: E2 08 00 DE 16 80 09 00 00 00 00 00 00 66 [09:50:52]Write i2c OK [09:50:52]MH_I2C_Read... [09:50:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:50:52]Read from MH i2c: E2 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 03 00 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 03 00 DE 16 00 90 00 68 [09:50:52]RAPDU: 90 00 [09:50:52]wFMCommunicate OK [09:50:52]SAM_PROTO_ClearQueue done [09:50:52]KKMCreateOFDPacket [09:50:52]OFDProtocolAddRootSTLVToBuf [09:50:52]FM_MakeSignedData [09:50:52]FM_MakeSignedData [09:50:52]SAM_PROTO_SignData [09:50:52]wFMCommunicate request_size=4 [09:50:52]MH_SAM_APDU [09:50:52]CAPDU: 80 0D 01 02 [09:50:52]Write to MH i2c: E2 08 00 DF 16 80 0D 01 02 00 00 00 00 6E [09:50:52]Write i2c OK [09:50:52]MH_I2C_Read... [09:50:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:50:52]Read from MH i2c: E2 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 03 00 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 03 00 DF 16 00 90 00 69 [09:50:52]RAPDU: 90 00 [09:50:52]wFMCommunicate OK [09:50:52]wFMCommunicate request_size=255 [09:50:52]MH_SAM_APDU [09:50:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 3A 60 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 0A 00 00 00 00 07 04 06 00 18 60 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 7E 75 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 09 7B 03 00 35 04 06 00 42 [09:50:52]Write to MH i2c: E2 02 01 E0 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 3A 60 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 0A 00 00 00 00 07 04 06 00 18 60 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 7E 75 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 09 7B 03 00 35 04 06 00 42 00 00 DE [09:50:52]Write i2c OK [09:50:52]MH_I2C_Read... [09:50:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:52]Read from MH i2c: E2 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 03 00 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 03 00 E0 16 00 90 00 6A [09:50:52]RAPDU: 90 00 [09:50:52]wFMCommunicate OK [09:50:52]wFMCommunicate request_size=10 [09:50:52]MH_SAM_APDU [09:50:52]CAPDU: 80 0D 02 02 05 0A 0A D2 F6 99 [09:50:52]Write to MH i2c: E2 0D 00 E1 16 80 0D 02 02 05 00 0A 0A D2 F6 99 00 00 F0 [09:50:52]Write i2c OK [09:50:52]MH_I2C_Read... [09:50:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:52]Read from MH i2c: E2 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 03 00 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 03 00 E1 16 00 90 00 6B [09:50:52]RAPDU: 90 00 [09:50:52]wFMCommunicate OK [09:50:52]wFMCommunicate request_size=4 [09:50:52]MH_SAM_APDU [09:50:52]CAPDU: 80 0D 03 02 [09:50:52]Write to MH i2c: E2 08 00 E2 16 80 0D 03 02 00 00 00 00 73 [09:50:52]Write i2c OK [09:50:52]MH_I2C_Read... [09:50:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:50:52]Read from MH i2c: E2 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 0B 00 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 0B 00 E2 16 00 90 1F 36 23 FC 09 8D F6 90 00 04 [09:50:52]RAPDU: 90 1F 36 23 FC 09 8D F6 90 00 [09:50:52]wFMCommunicate OK [09:50:52]SAM_PROTO_SignData done [09:50:52]FM_MakeSignedData done [09:50:52]CreateOFDProtocolMessage [09:50:52]wFMCommunicate request_size=4 [09:50:52]MH_SAM_APDU [09:50:52]CAPDU: 80 11 00 00 [09:50:52]Write to MH i2c: E2 08 00 E3 16 80 11 00 00 00 00 00 00 73 [09:50:52]Write i2c OK [09:50:52]MH_I2C_Read... [09:50:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:52]Read from MH i2c: E2 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 17 00 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 17 00 E3 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CA [09:50:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:50:52]wFMCommunicate OK [09:50:52]CreateOFDProtocolMessage done [09:50:52]OFDSenderStorePacket 228105 [09:50:52]StoreOFDPacket docnum=228105 [09:50:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 53 71 07 01 32 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 3A 60 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 0A 00 00 00 00 07 04 06 00 18 60 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 7E 75 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 09 7B 03 00 35 04 06 00 42 0A 0A D2 F6 99 90 1F 36 23 FC 09 8D F6 [09:50:52]CheckFolder [09:50:52]dirname=/storage/ofd_packets [09:50:52]CheckFolder done [09:50:52]ProducePacketName [09:50:52]name=ofd_packets/00228105 [09:50:52]NVStorageSaveData ofd_packets/00228105 [09:50:52]File name is /storage/ofd_packets/00228105 [09:50:52]Write 301 bytes [09:50:52]NVStorageSaveData done [09:50:52]OFDSenderStorePacket done [09:50:52]KKMCreateOFDPacket done [09:50:52]NVStorageSaveData kkm_last_timestamp [09:50:52]File name is /storage/kkm_last_timestamp [09:50:52]Write 4 bytes [09:50:52]NVStorageSaveData done [09:50:52]ExternCall_PrintAddStr [09:50:52]wPrintStart [09:50:52]Write to MH i2c: 01 00 00 E4 16 FA [09:50:52]Write i2c OK [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: 01 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: 01 07 00 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: 01 07 00 E4 16 00 00 00 00 00 FF 0F 0F [09:50:52]RasterBufferAndPrint [09:50:52]line Счет N : (1)1964464 [09:50:52]line ИНН: 02508201610067 [09:50:52]line Контрольно-Кассовый Чек [09:50:52]line ПРОДАЖА [09:50:52]line ТРК (МРК, ГНК) : 54 [09:50:52]line Товар: 2710124500 [09:50:52]line Аи-95-К-5 [09:50:52]line 3.320 * 74.20 [09:50:52]line = 246.34 [09:50:52]line НДС 12% НСП 1% [09:50:52]line > о реализуемом товаре [09:50:52]line ОКРУГЛЕНИЕ: -0.34 [09:50:52]line ИТОГО: 246.00 [09:50:52]line Внесено: 500.00 [09:50:52]line СДАЧА: 254.00 [09:50:52]line НСП 1% : 2.18 [09:50:52]line НДС 12% : 26.16 [09:50:52]line Наличными: 246.00 [09:50:52]line Безнал.: 0.00 [09:50:52]line Место: АЗС № 133 "Партнер Нефть" [09:50:52]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:50:52]line СНО: Общий режим [09:50:52]line Чек 69 22.10.2024 09:50 [09:50:52]line Смена: 535 ФФД: 1.0 [09:50:52]line ЗНМ: 0300000091 [09:50:52]line РНМ: 0000000000091685 [09:50:52]line Версия ККМ: 001 [09:50:52]line ФМ: 0000000000871839 [09:50:52]line ФД: 228105 [09:50:52]line ФПД: 72610898704025 [09:50:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095054&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228105&fm=72610898704025&tin=02508201610067®Number=0000000000091685&sum=24600 [09:50:53]OFD Sender: Processing packet 228105 [packets to send 38, broken 37] [09:50:53]ProducePacketName [09:50:53]name=ofd_packets/00228105 [09:50:53]OFD Sender: To server: pG, [09:50:53]CommunicateWithHost lk.salyk.kg:30040 [09:50:53]ConnectInit lk.salyk.kg [09:50:53]written 0, free lines is 4095 [09:50:53]Connected sock=10 [09:50:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 53 71 07 01 32 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 3A 60 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 0A 00 00 00 00 07 04 06 00 18 60 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 7E 75 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 09 7B 03 00 35 04 06 00 42 0A 0A D2 F6 99 90 1F 36 23 FC 09 8D F6 [09:50:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 B1 71 47 00 D5 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 09 7B 03 00 F4 03 04 00 77 20 17 67 B6 04 01 00 00 42 47 A4 54 95 56 A2 D8 [09:50:53]CommunicateWithHost err = 0 [09:50:53]CheckOFDResponse [09:50:53]1017 (14) - 77093643461234 [09:50:53]1041 (16) - 0000000000871839 [09:50:53]1040 (4) - 228105 [09:50:53]1012 (4) - 22.10.2024 03:48 [09:50:53]1206 (1) - 0 [09:50:53]OFD Sender: Remove packet 228105 [09:50:53]ProducePacketName [09:50:53]name=ofd_packets/00228105 [09:50:53]NVStorageDeleteData [09:50:53]Write to MH i2c: 01 00 00 0E 17 25 [09:50:53]Write i2c OK [09:50:53]MH_I2C_Read... [09:50:53]Read from MH i2c: 01 [09:50:53]MH_I2C_Read... [09:50:53]Read from MH i2c: 01 07 00 [09:50:53]MH_I2C_Read... [09:50:53]Read from MH i2c: 01 07 00 0E 17 00 00 00 00 00 B6 0C EE [09:50:53]RasterBufferAndPrint [09:50:53]line [09:50:53]line [09:50:53]line [09:50:53]line [09:50:53]line [09:50:53]written 0, free lines is 3257 [09:50:53]MH_Cut [09:50:53]Write to MH i2c: D1 01 00 15 17 01 FE [09:50:53]Write i2c OK [09:50:53]MH_I2C_Read... [09:50:53]Read from MH i2c: D1 [09:50:53]MH_I2C_Read... [09:50:53]Read from MH i2c: D1 01 00 [09:50:53]MH_I2C_Read... [09:50:53]Read from MH i2c: D1 01 00 15 17 00 FD [09:50:53]Write to MH i2c: 01 00 00 16 17 2D [09:50:53]Write i2c OK [09:50:53]MH_I2C_Read... [09:50:53]OFD Sender: No OFD packet to send [09:50:54]*** Cut start [09:50:54]*** Partial cut [09:50:54]*** CUTSNS_PIN = 1 [09:50:54]*** CUTSNS_PIN = 0 [09:50:54]*** Brake cut motor [09:50:55]Read from MH i2c: 01 [09:50:55]MH_I2C_Read... [09:50:55]*** Stop cut motor [09:50:55]*** Cut end [09:50:55]Read from MH i2c: 01 07 00 [09:50:55]MH_I2C_Read... [09:50:55]Read from MH i2c: 01 07 00 16 17 00 00 00 00 00 FF 0F 42 [09:50:55]process_action close_receipt done [09:50:55]requested_data is exist [09:50:55]produce_requested_data [09:50:55]requested_item fm.sn is exist - process it [09:50:55]wFMCommunicate request_size=4 [09:50:55]MH_SAM_APDU [09:50:55]CAPDU: 80 11 00 00 [09:50:55]Write to MH i2c: E2 08 00 17 17 80 11 00 00 00 00 00 00 A8 [09:50:55]Write i2c OK [09:50:55]MH_I2C_Read... [09:50:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:55]Read from MH i2c: E2 [09:50:55]MH_I2C_Read... [09:50:55]Read from MH i2c: E2 17 00 [09:50:55]MH_I2C_Read... [09:50:55]Read from MH i2c: E2 17 00 17 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FF [09:50:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:50:55]wFMCommunicate OK [09:50:55]requested_item fd.num is exist - process it [09:50:55]SAM_PROTO_GetFieldsCounters [09:50:55]wFMCommunicate request_size=4 [09:50:55]MH_SAM_APDU [09:50:55]CAPDU: 80 13 00 00 [09:50:55]Write to MH i2c: E2 08 00 18 17 80 13 00 00 00 00 00 00 AB [09:50:55]Write i2c OK [09:50:55]MH_I2C_Read... [09:50:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:55]Read from MH i2c: E2 [09:50:55]MH_I2C_Read... [09:50:55]Read from MH i2c: E2 62 00 [09:50:55]MH_I2C_Read... [09:50:55]Read from MH i2c: E2 62 00 18 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 09 7B 03 00 0E 04 04 00 17 02 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 43 [09:50:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 09 7B 03 00 0E 04 04 00 17 02 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:50:55]wFMCommunicate OK [09:50:55]SAM_PROTO_GetFieldsCounters done [09:50:55]requested_item shift.num is exist - process it [09:50:55]requested_item shift.opened is exist - process it [09:50:55]req_shift_opened [09:50:55]FM_GetShiftState [09:50:55]SAM_PROTO_GetShiftState [09:50:55]wFMCommunicate request_size=4 [09:50:55]MH_SAM_APDU [09:50:55]CAPDU: 80 13 01 00 [09:50:55]Write to MH i2c: E2 08 00 19 17 80 13 01 00 00 00 00 00 AD [09:50:55]Write i2c OK [09:50:55]MH_I2C_Read... [09:50:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:55]Read from MH i2c: E2 [09:50:55]MH_I2C_Read... [09:50:55]Read from MH i2c: E2 0E 00 [09:50:55]MH_I2C_Read... [09:50:55]Read from MH i2c: E2 0E 00 19 17 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 74 [09:50:55]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:50:55]wFMCommunicate OK [09:50:55]SAM_PROTO_GetShiftState done [09:50:55]FM_GetShiftState done [09:50:55]req_shift_opened done [09:50:55]requested_item shift.open_date is exist - process it [09:50:55]req_shift_open_date [09:50:55]req_shift_open_date done [09:50:55]produce_requested_data done [09:50:55]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228105,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [09:50:55]process_action_free close_receipt [09:50:55]json_value_free [09:50:55]json_value_free done [09:50:55]process_json_proto returns [09:50:55]Send response to host [09:50:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228105,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [09:50:55]free response buf [09:50:55]execute_script done [09:50:55]execute_script returns [09:50:55]free content buf [09:50:55]Sock 7.Close socket [09:50:55]Sock 7.Thread stoped [09:50:58]OFD Sender: No OFD packet to send [09:51:03]OFD Sender: No OFD packet to send [09:51:09]OFD Sender: No OFD packet to send [09:51:14]OFD Sender: No OFD packet to send [09:51:19]OFD Sender: No OFD packet to send [09:51:24]OFD Sender: No OFD packet to send [09:51:29]OFD Sender: No OFD packet to send [09:51:34]OFD Sender: No OFD packet to send [09:51:39]OFD Sender: No OFD packet to send [09:51:44]OFD Sender: No OFD packet to send [09:51:49]OFD Sender: No OFD packet to send [09:51:54]OFD Sender: No OFD packet to send [09:51:59]OFD Sender: No OFD packet to send [09:52:04]OFD Sender: No OFD packet to send [09:52:09]OFD Sender: No OFD packet to send [09:52:14]OFD Sender: No OFD packet to send [09:52:16]accept exits with 9 [09:52:16]New connection [09:52:16]New thread 3067137380 created [09:52:16]Thread 3066994020 joined [09:52:16]Waiting for new connection... [09:52:16] Sock 9.Parse request [09:52:16]Sock 9.Check first char [09:52:16]Sock 9.First char is OK [09:52:16]request: POST /json_proto HTTP/1.0 [09:52:16]Method: POST [09:52:16]URL: /json_proto [09:52:16]Method is POST - this is cgi request [09:52:16]url: /json_proto [09:52:16]query_string will be loaded in cgi processing [09:52:16]execute_cgi json_proto POST (null) [09:52:16]execute_cgi path=json_proto method=POST [09:52:16]POST find Content-Length [09:52:16]Host: 172.17.44.195:8080 [09:52:16]Content-Length: 770 [09:52:16]Content-Type: application/json [09:52:16] [09:52:16]POST finish read [09:52:16]Found Content-Length = 770 [09:52:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:16]execute_script... [09: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)1964465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:16]POST & json_proto [09:52:16]process_json_proto [09:52:16]json parsed OK: [09:52:16]protocol is kg_v1.0 [09:52:16]action value=close_receipt [09:52:16]process_action close_receipt [09:52:16]cmd_close_receipt [09:52:16]MH_GetDate [09:52:16]Write to MH i2c: F0 00 00 1A 17 20 [09:52:16]Write i2c OK [09:52:16]MH_I2C_Read... [09:52:16]Read from MH i2c: F0 [09:52:16]MH_I2C_Read... [09:52:16]Read from MH i2c: F0 09 00 [09:52:16]MH_I2C_Read... [09:52:16]Read from MH i2c: F0 09 00 1A 17 00 D3 75 17 67 82 C9 CF 66 6F [09:52:16]GetLastDocTimeStamp 1729590654 [09:52:16]current date 1729590739 [09:52:16]FM_GetShiftState [09:52:16]SAM_PROTO_GetShiftState [09:52:16]wFMCommunicate request_size=4 [09:52:16]MH_SAM_APDU [09:52:16]CAPDU: 80 13 01 00 [09:52:16]Write to MH i2c: E2 08 00 1B 17 80 13 01 00 00 00 00 00 AF [09:52:16]Write i2c OK [09:52:16]MH_I2C_Read... [09:52:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:16]Read from MH i2c: E2 [09:52:16]MH_I2C_Read... [09:52:16]Read from MH i2c: E2 0E 00 [09:52:16]MH_I2C_Read... [09:52:16]Read from MH i2c: E2 0E 00 1B 17 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 76 [09:52:16]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:52:16]wFMCommunicate OK [09:52:16]SAM_PROTO_GetShiftState done [09:52:16]FM_GetShiftState done [09:52:16]opened in 1729555538 [09:52:16]opened+sec_in_day 1729641938 [09:52:16]quantity*price = 100015 [09:52:16]sum+1 = 100017 [09:52:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 70 22.10.2024 09:52 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 228106 ФПД: 215084632475765 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095219&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228106&fm=215084632475765&tin=02508201610067®Number=0000000000091685&sum=100016 [09:52:17]StoreToDocumentArchive [09:52:17]shift 535 fd 228106 [09:52:17]save to /storage/0535/doc_00228106 [09:52:17]save last doc name /storage/0535/doc_00228106 to /storage/kkm_last_doc_name [09:52:17]save OK [09:52:17]Clear old archive folders... [09:52:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:52:17]tlvbuf is 00A69450 [09:52:17]SAM_PROTO_ClearQueue [09:52:17]wFMCommunicate request_size=4 [09:52:17]MH_SAM_APDU [09:52:17]CAPDU: 80 09 00 00 [09:52:17]Write to MH i2c: E2 08 00 28 17 80 09 00 00 00 00 00 00 B1 [09:52:17]Write i2c OK [09:52:17]MH_I2C_Read... [09:52:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:17]Read from MH i2c: E2 [09:52:17]MH_I2C_Read... [09:52:17]Read from MH i2c: E2 03 00 [09:52:17]MH_I2C_Read... [09:52:17]Read from MH i2c: E2 03 00 28 17 00 90 00 B3 [09:52:17]RAPDU: 90 00 [09:52:17]wFMCommunicate OK [09:52:17]SAM_PROTO_ClearQueue done [09:52:17]KKMCreateOFDPacket [09:52:17]OFDProtocolAddRootSTLVToBuf [09:52:17]FM_MakeSignedData [09:52:17]FM_MakeSignedData [09:52:17]SAM_PROTO_SignData [09:52:17]wFMCommunicate request_size=4 [09:52:17]MH_SAM_APDU [09:52:17]CAPDU: 80 0D 01 02 [09:52:17]Write to MH i2c: E2 08 00 29 17 80 0D 01 02 00 00 00 00 B9 [09:52:17]Write i2c OK [09:52:17]MH_I2C_Read... [09:52:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:17]Read from MH i2c: E2 [09:52:17]MH_I2C_Read... [09:52:17]Read from MH i2c: E2 03 00 [09:52:17]MH_I2C_Read... [09:52:17]Read from MH i2c: E2 03 00 29 17 00 90 00 B4 [09:52:17]RAPDU: 90 00 [09:52:17]wFMCommunicate OK [09:52:17]wFMCommunicate request_size=255 [09:52:17]MH_SAM_APDU [09: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 46 00 00 00 F4 03 04 00 D3 75 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0A 7B 03 00 35 04 06 00 C3 [09:52:17]Write to MH i2c: E2 02 01 2A 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 46 00 00 00 F4 03 04 00 D3 75 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0A 7B 03 00 35 04 06 00 C3 00 00 DA [09:52:17]Write i2c OK [09:52:17]MH_I2C_Read... [09:52:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:18]Read from MH i2c: E2 [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: E2 03 00 [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: E2 03 00 2A 17 00 90 00 B5 [09:52:18]RAPDU: 90 00 [09:52:18]wFMCommunicate OK [09:52:18]wFMCommunicate request_size=10 [09:52:18]MH_SAM_APDU [09:52:18]CAPDU: 80 0D 02 02 05 9E 4B 1D 88 75 [09:52:18]Write to MH i2c: E2 0D 00 2B 17 80 0D 02 02 05 00 9E 4B 1D 88 75 00 00 C9 [09:52:18]Write i2c OK [09:52:18]MH_I2C_Read... [09:52:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:18]Read from MH i2c: E2 [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: E2 03 00 [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: E2 03 00 2B 17 00 90 00 B6 [09:52:18]RAPDU: 90 00 [09:52:18]wFMCommunicate OK [09:52:18]wFMCommunicate request_size=4 [09:52:18]MH_SAM_APDU [09:52:18]CAPDU: 80 0D 03 02 [09:52:18]Write to MH i2c: E2 08 00 2C 17 80 0D 03 02 00 00 00 00 BE [09:52:18]Write i2c OK [09:52:18]MH_I2C_Read... [09:52:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:18]Read from MH i2c: E2 [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: E2 0B 00 [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: E2 0B 00 2C 17 00 A7 D9 6F 38 5A 63 58 6D 90 00 68 [09:52:18]RAPDU: A7 D9 6F 38 5A 63 58 6D 90 00 [09:52:18]wFMCommunicate OK [09:52:18]SAM_PROTO_SignData done [09:52:18]FM_MakeSignedData done [09:52:18]CreateOFDProtocolMessage [09:52:18]wFMCommunicate request_size=4 [09:52:18]MH_SAM_APDU [09:52:18]CAPDU: 80 11 00 00 [09:52:18]Write to MH i2c: E2 08 00 2D 17 80 11 00 00 00 00 00 00 BE [09:52:18]Write i2c OK [09:52:18]MH_I2C_Read... [09:52:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:18]Read from MH i2c: E2 [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: E2 17 00 [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: E2 17 00 2D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 15 [09:52:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:52:18]wFMCommunicate OK [09:52:18]CreateOFDProtocolMessage done [09:52:18]OFDSenderStorePacket 228106 [09:52:18]StoreOFDPacket docnum=228106 [09:52:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 EA 86 07 01 FA 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 46 00 00 00 F4 03 04 00 D3 75 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0A 7B 03 00 35 04 06 00 C3 9E 4B 1D 88 75 A7 D9 6F 38 5A 63 58 6D [09:52:18]CheckFolder [09:52:18]dirname=/storage/ofd_packets [09:52:18]CheckFolder done [09:52:18]ProducePacketName [09:52:18]name=ofd_packets/00228106 [09:52:18]NVStorageSaveData ofd_packets/00228106 [09:52:18]File name is /storage/ofd_packets/00228106 [09:52:18]Write 301 bytes [09:52:18]NVStorageSaveData done [09:52:18]OFDSenderStorePacket done [09:52:18]KKMCreateOFDPacket done [09:52:18]NVStorageSaveData kkm_last_timestamp [09:52:18]File name is /storage/kkm_last_timestamp [09:52:18]Write 4 bytes [09:52:18]NVStorageSaveData done [09:52:18]ExternCall_PrintAddStr [09:52:18]wPrintStart [09:52:18]Write to MH i2c: 01 00 00 2E 17 45 [09:52:18]Write i2c OK [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: 01 [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: 01 07 00 [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: 01 07 00 2E 17 00 00 00 00 00 FF 0F 5A [09:52:18]RasterBufferAndPrint [09:52:18]line Счет N : (1)1964465 [09:52:18]line ИНН: 02508201610067 [09:52:18]line Контрольно-Кассовый Чек [09:52:18]line ПРОДАЖА [09:52:18]line ТРК (МРК, ГНК) : 43 [09:52:18]line Товар: 2710124130 [09:52:18]line Аи-92-К-5 [09:52:18]line 14.950 * 66.90 [09:52:18]line = 1000.16 [09:52:18]line НДС 12% НСП 1% [09:52:18]line > о реализуемом товаре [09:52:18]line ИТОГО: 1000.16 [09:52:18]line НСП 1% : 8.85 [09:52:18]line НДС 12% : 106.21 [09:52:18]line Наличными: 0.00 [09:52:18]line Безнал.: 1000.16 [09:52:18]line Место: АЗС № 133 "Партнер Нефть" [09:52:18]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:52:18]line СНО: Общий режим [09:52:18]line Чек 70 22.10.2024 09:52 [09:52:18]line Смена: 535 ФФД: 1.0 [09:52:18]line ЗНМ: 0300000091 [09:52:18]line РНМ: 0000000000091685 [09:52:18]line Версия ККМ: 001 [09:52:18]line Платежная система: Mbank [09:52:18]line ФМ: 0000000000871839 [09:52:18]line ФД: 228106 [09:52:18]line ФПД: 215084632475765 [09:52:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095219&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228106&fm=215084632475765&tin=02508201610067®Number=0000000000091685&sum=100016 [09:52:18]written 0, free lines is 4095 [09:52:18]OFD Sender: Processing packet 228106 [packets to send 38, broken 37] [09:52:18]ProducePacketName [09:52:18]name=ofd_packets/00228106 [09:52:18]OFD Sender: To server: pG, [09:52:18]CommunicateWithHost lk.salyk.kg:30040 [09:52:18]ConnectInit lk.salyk.kg [09:52:18]Write to MH i2c: 01 00 00 56 17 6D [09:52:18]Write i2c OK [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: 01 [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: 01 07 00 [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: 01 07 00 56 17 00 00 00 00 00 E1 0C 61 [09:52:18]RasterBufferAndPrint [09:52:18]line [09:52:18]line [09:52:18]line [09:52:18]line [09:52:18]line [09:52:18]written 0, free lines is 3300 [09:52:18]MH_Cut [09:52:18]Write to MH i2c: D1 01 00 5D 17 01 46 [09:52:18]Write i2c OK [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: D1 [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: D1 01 00 [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: D1 01 00 5D 17 00 45 [09:52:18]Write to MH i2c: 01 00 00 5E 17 75 [09:52:18]Write i2c OK [09:52:18]MH_I2C_Read... [09:52:18]Connected sock=10 [09:52:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 EA 86 07 01 FA 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 46 00 00 00 F4 03 04 00 D3 75 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0A 7B 03 00 35 04 06 00 C3 9E 4B 1D 88 75 A7 D9 6F 38 5A 63 58 6D [09:52:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 C2 E3 47 00 BB 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 38 37 31 38 33 39 10 04 04 00 0A 7B 03 00 F4 03 04 00 CC 20 17 67 B6 04 01 00 00 32 5F E3 65 5E DA 80 82 [09:52:18]CommunicateWithHost err = 0 [09:52:18]CheckOFDResponse [09:52:18]1017 (14) - 77093643461234 [09:52:18]1041 (16) - 0000000000871839 [09:52:18]1040 (4) - 228106 [09:52:18]1012 (4) - 22.10.2024 03:49 [09:52:18]1206 (1) - 0 [09:52:18]OFD Sender: Remove packet 228106 [09:52:18]ProducePacketName [09:52:18]name=ofd_packets/00228106 [09:52:18]NVStorageDeleteData [09:52:19]OFD Sender: No OFD packet to send [09:52:19]*** Cut start [09:52:19]*** Partial cut [09:52:19]*** CUTSNS_PIN = 1 [09:52:19]*** CUTSNS_PIN = 0 [09:52:19]*** Brake cut motor [09:52:20]Read from MH i2c: 01 [09:52:20]MH_I2C_Read... [09:52:20]*** Stop cut motor [09:52:20]*** Cut end [09:52:20]Read from MH i2c: 01 07 00 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: 01 07 00 5E 17 00 00 00 00 00 FF 0F 8A [09:52:20]process_action close_receipt done [09:52:20]requested_data is exist [09:52:20]produce_requested_data [09:52:20]requested_item fm.sn is exist - process it [09:52:20]wFMCommunicate request_size=4 [09:52:20]MH_SAM_APDU [09:52:20]CAPDU: 80 11 00 00 [09:52:20]Write to MH i2c: E2 08 00 5F 17 80 11 00 00 00 00 00 00 F0 [09:52:20]Write i2c OK [09:52:20]MH_I2C_Read... [09:52:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:20]Read from MH i2c: E2 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: E2 17 00 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: E2 17 00 5F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 47 [09:52:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:52:20]wFMCommunicate OK [09:52:20]requested_item fd.num is exist - process it [09:52:20]SAM_PROTO_GetFieldsCounters [09:52:20]wFMCommunicate request_size=4 [09:52:20]MH_SAM_APDU [09:52:20]CAPDU: 80 13 00 00 [09:52:20]Write to MH i2c: E2 08 00 60 17 80 13 00 00 00 00 00 00 F3 [09:52:20]Write i2c OK [09:52:20]MH_I2C_Read... [09:52:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:20]Read from MH i2c: E2 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: E2 62 00 [09:52:20]MH_I2C_Read... [09:52:20]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 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0A 7B 03 00 0E 04 04 00 17 02 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 8F [09:52:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0A 7B 03 00 0E 04 04 00 17 02 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:52:20]wFMCommunicate OK [09:52:20]SAM_PROTO_GetFieldsCounters done [09:52:20]requested_item shift.num is exist - process it [09:52:20]requested_item shift.opened is exist - process it [09:52:20]req_shift_opened [09:52:20]FM_GetShiftState [09:52:20]SAM_PROTO_GetShiftState [09:52:20]wFMCommunicate request_size=4 [09:52:20]MH_SAM_APDU [09:52:20]CAPDU: 80 13 01 00 [09:52:20]Write to MH i2c: E2 08 00 61 17 80 13 01 00 00 00 00 00 F5 [09:52:20]Write i2c OK [09:52:20]MH_I2C_Read... [09:52:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:20]Read from MH i2c: E2 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: E2 0E 00 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: E2 0E 00 61 17 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 BC [09:52:20]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:52:20]wFMCommunicate OK [09:52:20]SAM_PROTO_GetShiftState done [09:52:20]FM_GetShiftState done [09:52:20]req_shift_opened done [09:52:20]requested_item shift.open_date is exist - process it [09:52:20]req_shift_open_date [09:52:20]req_shift_open_date done [09:52:20]produce_requested_data done [09:52:20]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228106,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [09:52:20]process_action_free close_receipt [09:52:20]json_value_free [09:52:20]json_value_free done [09:52:20]process_json_proto returns [09:52:20]Send response to host [09:52:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228106,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [09:52:20]free response buf [09:52:20]execute_script done [09:52:20]execute_script returns [09:52:20]free content buf [09:52:20]Sock 9.Close socket [09:52:20]Sock 9.Thread stoped [09:52:24]OFD Sender: No OFD packet to send [09:52:29]OFD Sender: No OFD packet to send [09:52:34]OFD Sender: No OFD packet to send [09:52:39]OFD Sender: No OFD packet to send [09:52:44]OFD Sender: No OFD packet to send [09:52:49]OFD Sender: No OFD packet to send [09:52:53]accept exits with 7 [09:52:53]New connection [09:52:53]New thread 3066994020 created [09:52:53]Thread 3067137380 joined [09:52:53]Waiting for new connection... [09:52:53] Sock 7.Parse request [09:52:53]Sock 7.Check first char [09:52:53]Sock 7.First char is OK [09:52:53]request: POST /json_proto HTTP/1.0 [09:52:53]Method: POST [09:52:53]URL: /json_proto [09:52:53]Method is POST - this is cgi request [09:52:53]url: /json_proto [09:52:53]query_string will be loaded in cgi processing [09:52:53]execute_cgi json_proto POST (null) [09:52:53]execute_cgi path=json_proto method=POST [09:52:53]POST find Content-Length [09:52:53]Host: 172.17.44.195:8080 [09:52:53]Content-Length: 677 [09:52:53]Content-Type: application/json [09:52:53] [09:52:53]POST finish read [09:52:53]Found Content-Length = 677 [09:52:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 36.040, "sum" : 1401.96, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 1401.00, "payments": [ { "type": 0, "sum" : 1401.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:53]execute_script... [09:52: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)1964462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 36.040, "sum" : 1401.96, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 1401.00, "payments": [ { "type": 0, "sum" : 1401.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:53]POST & json_proto [09:52:53]process_json_proto [09:52:53]json parsed OK: [09:52:53]protocol is kg_v1.0 [09:52:53]action value=close_receipt [09:52:53]process_action close_receipt [09:52:53]cmd_close_receipt [09:52:53]MH_GetDate [09:52:53]Write to MH i2c: F0 00 00 62 17 68 [09:52:53]Write i2c OK [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: F0 [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: F0 09 00 [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: F0 09 00 62 17 00 F8 75 17 67 82 C9 CF 66 DC [09:52:53]GetLastDocTimeStamp 1729590739 [09:52:53]current date 1729590776 [09:52:53]FM_GetShiftState [09:52:53]SAM_PROTO_GetShiftState [09:52:53]wFMCommunicate request_size=4 [09:52:53]MH_SAM_APDU [09:52:53]CAPDU: 80 13 01 00 [09:52:53]Write to MH i2c: E2 08 00 63 17 80 13 01 00 00 00 00 00 F7 [09:52:53]Write i2c OK [09:52:53]MH_I2C_Read... [09:52:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:53]Read from MH i2c: E2 [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: E2 0E 00 [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: E2 0E 00 63 17 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 BE [09:52:53]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:52:53]wFMCommunicate OK [09:52:53]SAM_PROTO_GetShiftState done [09:52:53]FM_GetShiftState done [09:52:53]opened in 1729555538 [09:52:53]opened+sec_in_day 1729641938 [09:52:53]quantity*price = 140195 [09:52:53]sum+1 = 140197 [09:52:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.96 ИТОГО: 1401.00 Внесено: 5000.00 СДАЧА: 3599.00 НСП 1% : 12.41 НДС 12% : 148.88 Наличными: 1401.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 71 22.10.2024 09:52 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228107 ФПД: 231422089484910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095256&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228107&fm=231422089484910&tin=02508201610067®Number=0000000000091685&sum=140100 [09:52:54]StoreToDocumentArchive [09:52:54]shift 535 fd 228107 [09:52:54]save to /storage/0535/doc_00228107 [09:52:54]save last doc name /storage/0535/doc_00228107 to /storage/kkm_last_doc_name [09:52:54]save OK [09:52:54]Clear old archive folders... [09:52:54]ProcessDocumentItem done err = 0, tmpTLVsize=245 [09:52:54]tlvbuf is 0085B640 [09:52:54]SAM_PROTO_ClearQueue [09:52:54]wFMCommunicate request_size=4 [09:52:54]MH_SAM_APDU [09:52:54]CAPDU: 80 09 00 00 [09:52:54]Write to MH i2c: E2 08 00 70 17 80 09 00 00 00 00 00 00 F9 [09:52:54]Write i2c OK [09:52:54]MH_I2C_Read... [09:52:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:54]Read from MH i2c: E2 [09:52:54]MH_I2C_Read... [09:52:54]Read from MH i2c: E2 03 00 [09:52:54]MH_I2C_Read... [09:52:54]Read from MH i2c: E2 03 00 70 17 00 90 00 FB [09:52:54]RAPDU: 90 00 [09:52:54]wFMCommunicate OK [09:52:54]SAM_PROTO_ClearQueue done [09:52:54]KKMCreateOFDPacket [09:52:54]OFDProtocolAddRootSTLVToBuf [09:52:54]FM_MakeSignedData [09:52:54]FM_MakeSignedData [09:52:54]SAM_PROTO_SignData [09:52:54]wFMCommunicate request_size=4 [09:52:54]MH_SAM_APDU [09:52:54]CAPDU: 80 0D 01 02 [09:52:54]Write to MH i2c: E2 08 00 71 17 80 0D 01 02 00 00 00 00 01 [09:52:54]Write i2c OK [09:52:54]MH_I2C_Read... [09:52:54]OFD Sender: No OFD packet to send [09:52:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:54]Read from MH i2c: E2 [09:52:54]MH_I2C_Read... [09:52:54]Read from MH i2c: E2 03 00 [09:52:54]MH_I2C_Read... [09:52:54]Read from MH i2c: E2 03 00 71 17 00 90 00 FC [09:52:54]RAPDU: 90 00 [09:52:54]wFMCommunicate OK [09:52:54]wFMCommunicate request_size=254 [09:52:54]MH_SAM_APDU [09:52:54]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 C8 8C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 A4 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 23 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 3A 00 00 00 00 07 04 06 00 44 23 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 F8 75 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0B 7B 03 00 35 04 06 00 D2 7A 27 6F DA 6E [09:52:54]Write to MH i2c: E2 01 01 72 17 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 C8 8C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 A4 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 23 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 3A 00 00 00 00 07 04 06 00 44 23 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 F8 75 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0B 7B 03 00 35 04 06 00 D2 7A 27 6F DA 6E 00 00 26 [09:52:54]Write i2c OK [09:52:54]MH_I2C_Read... [09:52:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:54]Read from MH i2c: E2 [09:52:54]MH_I2C_Read... [09:52:54]Read from MH i2c: E2 03 00 [09:52:54]MH_I2C_Read... [09:52:54]Read from MH i2c: E2 03 00 72 17 00 90 00 FD [09:52:54]RAPDU: 90 00 [09:52:54]wFMCommunicate OK [09:52:54]wFMCommunicate request_size=4 [09:52:54]MH_SAM_APDU [09:52:54]CAPDU: 80 0D 03 02 [09:52:54]Write to MH i2c: E2 08 00 73 17 80 0D 03 02 00 00 00 00 05 [09:52:54]Write i2c OK [09:52:54]MH_I2C_Read... [09:52:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:54]Read from MH i2c: E2 [09:52:54]MH_I2C_Read... [09:52:54]Read from MH i2c: E2 0B 00 [09:52:54]MH_I2C_Read... [09:52:54]Read from MH i2c: E2 0B 00 73 17 00 C3 5D 88 3E B9 0E A3 C1 90 00 17 [09:52:54]RAPDU: C3 5D 88 3E B9 0E A3 C1 90 00 [09:52:54]wFMCommunicate OK [09:52:54]SAM_PROTO_SignData done [09:52:54]FM_MakeSignedData done [09:52:54]CreateOFDProtocolMessage [09:52:54]wFMCommunicate request_size=4 [09:52:54]MH_SAM_APDU [09:52:54]CAPDU: 80 11 00 00 [09:52:54]Write to MH i2c: E2 08 00 74 17 80 11 00 00 00 00 00 00 05 [09:52:54]Write i2c OK [09:52:54]MH_I2C_Read... [09:52:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:54]Read from MH i2c: E2 [09:52:54]MH_I2C_Read... [09:52:54]Read from MH i2c: E2 17 00 [09:52:54]MH_I2C_Read... [09:52:54]Read from MH i2c: E2 17 00 74 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5C [09:52:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:52:54]wFMCommunicate OK [09:52:54]CreateOFDProtocolMessage done [09:52:54]OFDSenderStorePacket 228107 [09:52:54]StoreOFDPacket docnum=228107 [09:52:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 CA F9 01 01 D4 48 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 C8 8C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 A4 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 23 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 3A 00 00 00 00 07 04 06 00 44 23 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 F8 75 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0B 7B 03 00 35 04 06 00 D2 7A 27 6F DA 6E C3 5D 88 3E B9 0E A3 C1 [09:52:54]CheckFolder [09:52:54]dirname=/storage/ofd_packets [09:52:54]CheckFolder done [09:52:54]ProducePacketName [09:52:54]name=ofd_packets/00228107 [09:52:54]NVStorageSaveData ofd_packets/00228107 [09:52:54]File name is /storage/ofd_packets/00228107 [09:52:54]Write 295 bytes [09:52:54]NVStorageSaveData done [09:52:54]OFDSenderStorePacket done [09:52:54]KKMCreateOFDPacket done [09:52:54]NVStorageSaveData kkm_last_timestamp [09:52:54]File name is /storage/kkm_last_timestamp [09:52:54]Write 4 bytes [09:52:54]NVStorageSaveData done [09:52:54]OFD Sender: Processing packet 228107 [packets to send 38, broken 37] [09:52:54]ProducePacketName [09:52:54]name=ofd_packets/00228107 [09:52:54]OFD Sender: To server: pG, [09:52:54]CommunicateWithHost lk.salyk.kg:30040 [09:52:54]ConnectInit lk.salyk.kg [09:52:54]ExternCall_PrintAddStr [09:52:54]wPrintStart [09:52:54]Write to MH i2c: 01 00 00 75 17 8C [09:52:54]Write i2c OK [09:52:54]MH_I2C_Read... [09:52:54]Read from MH i2c: 01 [09:52:54]MH_I2C_Read... [09:52:54]Read from MH i2c: 01 07 00 [09:52:54]MH_I2C_Read... [09:52:54]Read from MH i2c: 01 07 00 75 17 00 00 00 00 00 FF 0F A1 [09:52:54]RasterBufferAndPrint [09:52:54]line Счет N : (1)1964462 [09:52:54]line ИНН: 02508201610067 [09:52:54]line Контрольно-Кассовый Чек [09:52:54]line ПРОДАЖА [09:52:54]line ТРК (МРК, ГНК) : 71 [09:52:54]line Товар: 2711129700 [09:52:54]line ГАЗ [09:52:54]line 36.040 * 38.90 [09:52:54]line = 1401.96 [09:52:54]line НДС 12% НСП 1% [09:52:54]line > о реализуемом товаре [09:52:54]line ОКРУГЛЕНИЕ: -0.96 [09:52:54]line ИТОГО: 1401.00 [09:52:54]line Внесено: 5000.00 [09:52:54]line СДАЧА: 3599.00 [09:52:54]line НСП 1% : 12.41 [09:52:54]line НДС 12% : 148.88 [09:52:54]line Наличными: 1401.00 [09:52:54]line Безнал.: 0.00 [09:52:54]line Место: АЗС № 133 "Партнер Нефть" [09:52:54]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:52:54]line СНО: Общий режим [09:52:54]line Чек 71 22.10.2024 09:52 [09:52:54]line Смена: 535 ФФД: 1.0 [09:52:54]line ЗНМ: 0300000091 [09:52:54]line РНМ: 0000000000091685 [09:52:54]line Версия ККМ: 001 [09:52:54]line ФМ: 0000000000871839 [09:52:54]line ФД: 228107 [09:52:54]line ФПД: 231422089484910 [09:52:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095256&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228107&fm=231422089484910&tin=02508201610067®Number=0000000000091685&sum=140100 [09:52:55]Connected sock=11 [09:52:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 CA F9 01 01 D4 48 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 C8 8C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 A4 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 23 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 3A 00 00 00 00 07 04 06 00 44 23 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 F8 75 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0B 7B 03 00 35 04 06 00 D2 7A 27 6F DA 6E C3 5D 88 3E B9 0E A3 C1 [09:52:55]written 0, free lines is 4095 [09:52:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 F1 B5 47 00 3E 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0B 7B 03 00 F4 03 04 00 F1 20 17 67 B6 04 01 00 00 DE DC DE 3E 4C 80 8F E5 [09:52:55]CommunicateWithHost err = 0 [09:52:55]CheckOFDResponse [09:52:55]1017 (14) - 77093643461234 [09:52:55]1041 (16) - 0000000000871839 [09:52:55]1040 (4) - 228107 [09:52:55]1012 (4) - 22.10.2024 03:50 [09:52:55]1206 (1) - 0 [09:52:55]OFD Sender: Remove packet 228107 [09:52:55]ProducePacketName [09:52:55]name=ofd_packets/00228107 [09:52:55]NVStorageDeleteData [09:52:55]Write to MH i2c: 01 00 00 9F 17 B6 [09:52:55]Write i2c OK [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: 01 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: 01 07 00 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: 01 07 00 9F 17 00 00 00 00 00 B7 0C 80 [09:52:55]RasterBufferAndPrint [09:52:55]line [09:52:55]line [09:52:55]line [09:52:55]line [09:52:55]line [09:52:55]written 0, free lines is 3259 [09:52:55]MH_Cut [09:52:55]Write to MH i2c: D1 01 00 A6 17 01 8F [09:52:55]Write i2c OK [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: D1 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: D1 01 00 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: D1 01 00 A6 17 00 8E [09:52:55]Write to MH i2c: 01 00 00 A7 17 BE [09:52:55]Write i2c OK [09:52:55]MH_I2C_Read... [09:52:55]OFD Sender: No OFD packet to send [09:52:56]*** Cut start [09:52:56]*** Partial cut [09:52:56]*** CUTSNS_PIN = 1 [09:52:56]*** CUTSNS_PIN = 0 [09:52:56]*** Brake cut motor [09:52:57]Read from MH i2c: 01 [09:52:57]MH_I2C_Read... [09:52:57]*** Stop cut motor [09:52:57]*** Cut end [09:52:57]Read from MH i2c: 01 07 00 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: 01 07 00 A7 17 00 00 00 00 00 FF 0F D3 [09:52:57]process_action close_receipt done [09:52:57]requested_data is exist [09:52:57]produce_requested_data [09:52:57]requested_item fm.sn is exist - process it [09:52:57]wFMCommunicate request_size=4 [09:52:57]MH_SAM_APDU [09:52:57]CAPDU: 80 11 00 00 [09:52:57]Write to MH i2c: E2 08 00 A8 17 80 11 00 00 00 00 00 00 39 [09:52:57]Write i2c OK [09:52:57]MH_I2C_Read... [09:52:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:57]Read from MH i2c: E2 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: E2 17 00 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: E2 17 00 A8 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 90 [09:52:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:52:57]wFMCommunicate OK [09:52:57]requested_item fd.num is exist - process it [09:52:57]SAM_PROTO_GetFieldsCounters [09:52:57]wFMCommunicate request_size=4 [09:52:57]MH_SAM_APDU [09:52:57]CAPDU: 80 13 00 00 [09:52:57]Write to MH i2c: E2 08 00 A9 17 80 13 00 00 00 00 00 00 3C [09:52:57]Write i2c OK [09:52:57]MH_I2C_Read... [09:52:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:57]Read from MH i2c: E2 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: E2 62 00 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: E2 62 00 A9 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0B 7B 03 00 0E 04 04 00 17 02 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 DC [09:52:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0B 7B 03 00 0E 04 04 00 17 02 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:52:57]wFMCommunicate OK [09:52:57]SAM_PROTO_GetFieldsCounters done [09:52:57]requested_item shift.num is exist - process it [09:52:57]requested_item shift.opened is exist - process it [09:52:57]req_shift_opened [09:52:57]FM_GetShiftState [09:52:57]SAM_PROTO_GetShiftState [09:52:57]wFMCommunicate request_size=4 [09:52:57]MH_SAM_APDU [09:52:57]CAPDU: 80 13 01 00 [09:52:57]Write to MH i2c: E2 08 00 AA 17 80 13 01 00 00 00 00 00 3E [09:52:57]Write i2c OK [09:52:57]MH_I2C_Read... [09:52:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:57]Read from MH i2c: E2 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: E2 0E 00 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: E2 0E 00 AA 17 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 05 [09:52:57]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:52:57]wFMCommunicate OK [09:52:57]SAM_PROTO_GetShiftState done [09:52:57]FM_GetShiftState done [09:52:57]req_shift_opened done [09:52:57]requested_item shift.open_date is exist - process it [09:52:57]req_shift_open_date [09:52:57]req_shift_open_date done [09:52:57]produce_requested_data done [09:52:57]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228107,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [09:52:57]process_action_free close_receipt [09:52:57]json_value_free [09:52:57]json_value_free done [09:52:57]process_json_proto returns [09:52:57]Send response to host [09:52:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228107,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [09:52:57]free response buf [09:52:57]execute_script done [09:52:57]execute_script returns [09:52:57]free content buf [09:52:57]Sock 7.Close socket [09:52:57]Sock 7.Thread stoped [09:52:57]accept exits with 9 [09:52:57]New connection [09:52:57]New thread 3067137380 created [09:52:57]Thread 3066994020 joined [09:52:57]Waiting for new connection... [09:52:57] Sock 9.Parse request [09:52:57]Sock 9.Check first char [09:52:57]Sock 9.First char is OK [09:52:57]request: POST /json_proto HTTP/1.0 [09:52:57]Method: POST [09:52:57]URL: /json_proto [09:52:57]Method is POST - this is cgi request [09:52:57]url: /json_proto [09:52:57]query_string will be loaded in cgi processing [09:52:57]execute_cgi json_proto POST (null) [09:52:57]execute_cgi path=json_proto method=POST [09:52:57]POST find Content-Length [09:52:57]Host: 172.17.44.195:8080 [09:52:57]Content-Length: 680 [09:52:57]Content-Type: application/json [09:52:57] [09:52:57]POST finish read [09:52:57]Found Content-Length = 680 [09:52:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964466", "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" : 76.20, "quantity" : 18.330, "sum" : 1396.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1396.00, "total" : 1396.00, "payments": [ { "type": 0, "sum" : 1396.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:57]execute_script... [09:52: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)1964466", "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" : 76.20, "quantity" : 18.330, "sum" : 1396.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1396.00, "total" : 1396.00, "payments": [ { "type": 0, "sum" : 1396.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:57]POST & json_proto [09:52:57]process_json_proto [09:52:57]json parsed OK: [09:52:57]protocol is kg_v1.0 [09:52:57]action value=close_receipt [09:52:57]process_action close_receipt [09:52:57]cmd_close_receipt [09:52:57]MH_GetDate [09:52:57]Write to MH i2c: F0 00 00 AB 17 B1 [09:52:57]Write i2c OK [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: F0 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: F0 09 00 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: F0 09 00 AB 17 00 FD 75 17 67 82 C9 CF 66 2A [09:52:57]GetLastDocTimeStamp 1729590776 [09:52:57]current date 1729590781 [09:52:57]FM_GetShiftState [09:52:57]SAM_PROTO_GetShiftState [09:52:57]wFMCommunicate request_size=4 [09:52:57]MH_SAM_APDU [09:52:57]CAPDU: 80 13 01 00 [09:52:57]Write to MH i2c: E2 08 00 AC 17 80 13 01 00 00 00 00 00 40 [09:52:57]Write i2c OK [09:52:57]MH_I2C_Read... [09:52:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:57]Read from MH i2c: E2 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: E2 0E 00 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: E2 0E 00 AC 17 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 07 [09:52:57]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:52:57]wFMCommunicate OK [09:52:57]SAM_PROTO_GetShiftState done [09:52:57]FM_GetShiftState done [09:52:57]opened in 1729555538 [09:52:57]opened+sec_in_day 1729641938 [09:52:57]quantity*price = 139674 [09:52:57]sum+1 = 139676 [09:52:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.75 ИТОГО: 1396.00 Внесено: 1396.00 СДАЧА: 0.00 НСП 1% : 12.36 НДС 12% : 148.33 Наличными: 1396.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 72 22.10.2024 09:53 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228108 ФПД: 29042921598547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095301&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228108&fm=29042921598547&tin=02508201610067®Number=0000000000091685&sum=139600 [09:52:59]StoreToDocumentArchive [09:52:59]shift 535 fd 228108 [09:52:59]save to /storage/0535/doc_00228108 [09:52:59]save last doc name /storage/0535/doc_00228108 to /storage/kkm_last_doc_name [09:52:59]save OK [09:52:59]Clear old archive folders... [09:52:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:52:59]tlvbuf is 008A3320 [09:52:59]SAM_PROTO_ClearQueue [09:52:59]wFMCommunicate request_size=4 [09:52:59]MH_SAM_APDU [09:52:59]CAPDU: 80 09 00 00 [09:52:59]Write to MH i2c: E2 08 00 B9 17 80 09 00 00 00 00 00 00 42 [09:52:59]Write i2c OK [09:52:59]MH_I2C_Read... [09:52:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:59]Read from MH i2c: E2 [09:52:59]MH_I2C_Read... [09:52:59]Read from MH i2c: E2 03 00 [09:52:59]MH_I2C_Read... [09:52:59]Read from MH i2c: E2 03 00 B9 17 00 90 00 44 [09:52:59]RAPDU: 90 00 [09:52:59]wFMCommunicate OK [09:52:59]SAM_PROTO_ClearQueue done [09:52:59]KKMCreateOFDPacket [09:52:59]OFDProtocolAddRootSTLVToBuf [09:52:59]FM_MakeSignedData [09:52:59]FM_MakeSignedData [09:52:59]SAM_PROTO_SignData [09:52:59]wFMCommunicate request_size=4 [09:52:59]MH_SAM_APDU [09:52:59]CAPDU: 80 0D 01 02 [09:52:59]Write to MH i2c: E2 08 00 BA 17 80 0D 01 02 00 00 00 00 4A [09:52:59]Write i2c OK [09:52:59]MH_I2C_Read... [09:52:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:59]Read from MH i2c: E2 [09:52:59]MH_I2C_Read... [09:52:59]Read from MH i2c: E2 03 00 [09:52:59]MH_I2C_Read... [09:52:59]Read from MH i2c: E2 03 00 BA 17 00 90 00 45 [09:52:59]RAPDU: 90 00 [09:52:59]wFMCommunicate OK [09:52:59]wFMCommunicate request_size=255 [09:52:59]MH_SAM_APDU [09:52: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 9A 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9B 21 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 21 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 39 00 00 00 00 07 04 06 00 50 21 02 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 FD 75 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0C 7B 03 00 35 04 06 00 1A 6A 15 06 [09:52:59]Write to MH i2c: E2 02 01 BB 17 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9A 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9B 21 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 21 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 39 00 00 00 00 07 04 06 00 50 21 02 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 FD 75 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0C 7B 03 00 35 04 06 00 1A 6A 15 06 00 00 91 [09:52:59]Write i2c OK [09:52:59]MH_I2C_Read... [09:52:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:59]Read from MH i2c: E2 [09:52:59]MH_I2C_Read... [09:52:59]Read from MH i2c: E2 03 00 [09:52:59]MH_I2C_Read... [09:52:59]Read from MH i2c: E2 03 00 BB 17 00 90 00 46 [09:52:59]RAPDU: 90 00 [09:52:59]wFMCommunicate OK [09:52:59]wFMCommunicate request_size=7 [09:52:59]MH_SAM_APDU [09:52:59]CAPDU: 80 0D 02 02 02 6E 53 [09:52:59]Write to MH i2c: E2 0A 00 BC 17 80 0D 02 02 02 00 6E 53 00 00 12 [09:52:59]Write i2c OK [09:52:59]MH_I2C_Read... [09:52:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:59]Read from MH i2c: E2 [09:52:59]MH_I2C_Read... [09:52:59]Read from MH i2c: E2 03 00 [09:52:59]MH_I2C_Read... [09:52:59]Read from MH i2c: E2 03 00 BC 17 00 90 00 47 [09:52:59]RAPDU: 90 00 [09:52:59]wFMCommunicate OK [09:52:59]wFMCommunicate request_size=4 [09:52:59]MH_SAM_APDU [09:52:59]CAPDU: 80 0D 03 02 [09:52:59]Write to MH i2c: E2 08 00 BD 17 80 0D 03 02 00 00 00 00 4F [09:52:59]Write i2c OK [09:52:59]MH_I2C_Read... [09:52:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:59]Read from MH i2c: E2 [09:52:59]MH_I2C_Read... [09:52:59]Read from MH i2c: E2 0B 00 [09:52:59]MH_I2C_Read... [09:52:59]Read from MH i2c: E2 0B 00 BD 17 00 68 C8 C9 3E CD 1F C3 F7 90 00 2D [09:52:59]RAPDU: 68 C8 C9 3E CD 1F C3 F7 90 00 [09:52:59]wFMCommunicate OK [09:52:59]SAM_PROTO_SignData done [09:52:59]FM_MakeSignedData done [09:52:59]CreateOFDProtocolMessage [09:52:59]wFMCommunicate request_size=4 [09:52:59]MH_SAM_APDU [09:52:59]CAPDU: 80 11 00 00 [09:52:59]Write to MH i2c: E2 08 00 BE 17 80 11 00 00 00 00 00 00 4F [09:52:59]Write i2c OK [09:52:59]MH_I2C_Read... [09:52:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:59]Read from MH i2c: E2 [09:52:59]MH_I2C_Read... [09:52:59]Read from MH i2c: E2 17 00 [09:52:59]MH_I2C_Read... [09:52:59]Read from MH i2c: E2 17 00 BE 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A6 [09:52:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:52:59]wFMCommunicate OK [09:52:59]CreateOFDProtocolMessage done [09:52:59]OFDSenderStorePacket 228108 [09:52:59]StoreOFDPacket docnum=228108 [09:52:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 E1 7D 04 01 FC 0F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9A 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9B 21 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 21 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 39 00 00 00 00 07 04 06 00 50 21 02 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 FD 75 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0C 7B 03 00 35 04 06 00 1A 6A 15 06 6E 53 68 C8 C9 3E CD 1F C3 F7 [09:52:59]CheckFolder [09:52:59]dirname=/storage/ofd_packets [09:52:59]CheckFolder done [09:52:59]ProducePacketName [09:52:59]name=ofd_packets/00228108 [09:52:59]NVStorageSaveData ofd_packets/00228108 [09:52:59]File name is /storage/ofd_packets/00228108 [09:52:59]Write 298 bytes [09:52:59]NVStorageSaveData done [09:52:59]OFDSenderStorePacket done [09:52:59]KKMCreateOFDPacket done [09:52:59]NVStorageSaveData kkm_last_timestamp [09:52:59]File name is /storage/kkm_last_timestamp [09:52:59]Write 4 bytes [09:52:59]NVStorageSaveData done [09:52:59]ExternCall_PrintAddStr [09:52:59]wPrintStart [09:52:59]Write to MH i2c: 01 00 00 BF 17 D6 [09:52:59]Write i2c OK [09:52:59]MH_I2C_Read... [09:52:59]Read from MH i2c: 01 [09:53:00]MH_I2C_Read... [09:53:00]OFD Sender: Processing packet 228108 [packets to send 38, broken 37] [09:53:00]ProducePacketName [09:53:00]name=ofd_packets/00228108 [09:53:00]OFD Sender: To server: pG, [09:53:00]CommunicateWithHost lk.salyk.kg:30040 [09:53:00]ConnectInit lk.salyk.kg [09:53:00]Read from MH i2c: 01 07 00 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: 01 07 00 BF 17 00 00 00 00 00 FF 0F EB [09:53:00]RasterBufferAndPrint [09:53:00]line Счет N : (1)1964466 [09:53:00]line ИНН: 02508201610067 [09:53:00]line Контрольно-Кассовый Чек [09:53:00]line ПРОДАЖА [09:53:00]line ТРК (МРК, ГНК) : 11 [09:53:00]line Товар: 2710194210 [09:53:00]line ДТ-К-5 [09:53:00]line 18.330 * 76.20 [09:53:00]line = 1396.75 [09:53:00]line НДС 12% НСП 1% [09:53:00]line > о реализуемом товаре [09:53:00]line ОКРУГЛЕНИЕ: -0.75 [09:53:00]line ИТОГО: 1396.00 [09:53:00]line Внесено: 1396.00 [09:53:00]line СДАЧА: 0.00 [09:53:00]line НСП 1% : 12.36 [09:53:00]line НДС 12% : 148.33 [09:53:00]line Наличными: 1396.00 [09:53:00]line Безнал.: 0.00 [09:53:00]line Место: АЗС № 133 "Партнер Нефть" [09:53:00]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:53:00]line СНО: Общий режим [09:53:00]line Чек 72 22.10.2024 09:53 [09:53:00]line Смена: 535 ФФД: 1.0 [09:53:00]line ЗНМ: 0300000091 [09:53:00]line РНМ: 0000000000091685 [09:53:00]line Версия ККМ: 001 [09:53:00]line ФМ: 0000000000871839 [09:53:00]line ФД: 228108 [09:53:00]line ФПД: 29042921598547 [09:53:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095301&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228108&fm=29042921598547&tin=02508201610067®Number=0000000000091685&sum=139600 [09:53:00]written 0, free lines is 4095 [09:53:00]Connected sock=10 [09:53:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 E1 7D 04 01 FC 0F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9A 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9B 21 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 21 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 39 00 00 00 00 07 04 06 00 50 21 02 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 FD 75 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0C 7B 03 00 35 04 06 00 1A 6A 15 06 6E 53 68 C8 C9 3E CD 1F C3 F7 [09:53:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 08 62 47 00 0F 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0C 7B 03 00 F4 03 04 00 F6 20 17 67 B6 04 01 00 00 B4 1B 14 2B 88 30 C5 F1 [09:53:00]CommunicateWithHost err = 0 [09:53:00]CheckOFDResponse [09:53:00]1017 (14) - 77093643461234 [09:53:00]1041 (16) - 0000000000871839 [09:53:00]1040 (4) - 228108 [09:53:00]1012 (4) - 22.10.2024 03:50 [09:53:00]1206 (1) - 0 [09:53:00]OFD Sender: Remove packet 228108 [09:53:00]ProducePacketName [09:53:00]name=ofd_packets/00228108 [09:53:00]NVStorageDeleteData [09:53:00]Write to MH i2c: 01 00 00 E9 17 00 [09:53:00]Write i2c OK [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: 01 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: 01 07 00 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: 01 07 00 E9 17 00 00 00 00 00 C7 0C DA [09:53:00]RasterBufferAndPrint [09:53:00]line [09:53:00]line [09:53:00]line [09:53:00]line [09:53:00]line [09:53:00]written 0, free lines is 3281 [09:53:00]MH_Cut [09:53:00]Write to MH i2c: D1 01 00 F0 17 01 D9 [09:53:00]Write i2c OK [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: D1 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: D1 01 00 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: D1 01 00 F0 17 00 D8 [09:53:00]Write to MH i2c: 01 00 00 F1 17 08 [09:53:00]Write i2c OK [09:53:00]MH_I2C_Read... [09:53:01]OFD Sender: No OFD packet to send [09:53:01]*** Cut start [09:53:01]*** Partial cut [09:53:01]*** CUTSNS_PIN = 1 [09:53:01]*** CUTSNS_PIN = 0 [09:53:01]*** Brake cut motor [09:53:02]Read from MH i2c: 01 [09:53:02]MH_I2C_Read... [09:53:02]*** Stop cut motor [09:53:02]*** Cut end [09:53:02]Read from MH i2c: 01 07 00 [09:53:02]MH_I2C_Read... [09:53:02]Read from MH i2c: 01 07 00 F1 17 00 00 00 00 00 FF 0F 1D [09:53:02]process_action close_receipt done [09:53:02]requested_data is exist [09:53:02]produce_requested_data [09:53:02]requested_item fm.sn is exist - process it [09:53:02]wFMCommunicate request_size=4 [09:53:02]MH_SAM_APDU [09:53:02]CAPDU: 80 11 00 00 [09:53:02]Write to MH i2c: E2 08 00 F2 17 80 11 00 00 00 00 00 00 83 [09:53:02]Write i2c OK [09:53:02]MH_I2C_Read... [09:53:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:02]Read from MH i2c: E2 [09:53:02]MH_I2C_Read... [09:53:02]Read from MH i2c: E2 17 00 [09:53:02]MH_I2C_Read... [09:53:02]Read from MH i2c: E2 17 00 F2 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DA [09:53:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:53:02]wFMCommunicate OK [09:53:02]requested_item fd.num is exist - process it [09:53:02]SAM_PROTO_GetFieldsCounters [09:53:02]wFMCommunicate request_size=4 [09:53:02]MH_SAM_APDU [09:53:02]CAPDU: 80 13 00 00 [09:53:02]Write to MH i2c: E2 08 00 F3 17 80 13 00 00 00 00 00 00 86 [09:53:02]Write i2c OK [09:53:02]MH_I2C_Read... [09:53:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:02]Read from MH i2c: E2 [09:53:02]MH_I2C_Read... [09:53:02]Read from MH i2c: E2 62 00 [09:53:02]MH_I2C_Read... [09:53:02]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 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0C 7B 03 00 0E 04 04 00 17 02 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 2A [09:53:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0C 7B 03 00 0E 04 04 00 17 02 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:53:02]wFMCommunicate OK [09:53:02]SAM_PROTO_GetFieldsCounters done [09:53:02]requested_item shift.num is exist - process it [09:53:02]requested_item shift.opened is exist - process it [09:53:02]req_shift_opened [09:53:02]FM_GetShiftState [09:53:02]SAM_PROTO_GetShiftState [09:53:02]wFMCommunicate request_size=4 [09:53:02]MH_SAM_APDU [09:53:02]CAPDU: 80 13 01 00 [09:53:02]Write to MH i2c: E2 08 00 F4 17 80 13 01 00 00 00 00 00 88 [09:53:02]Write i2c OK [09:53:02]MH_I2C_Read... [09:53:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:02]Read from MH i2c: E2 [09:53:02]MH_I2C_Read... [09:53:02]Read from MH i2c: E2 0E 00 [09:53:02]MH_I2C_Read... [09:53:02]Read from MH i2c: E2 0E 00 F4 17 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 4F [09:53:02]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:53:02]wFMCommunicate OK [09:53:02]SAM_PROTO_GetShiftState done [09:53:02]FM_GetShiftState done [09:53:02]req_shift_opened done [09:53:02]requested_item shift.open_date is exist - process it [09:53:02]req_shift_open_date [09:53:02]req_shift_open_date done [09:53:02]produce_requested_data done [09:53:02]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228108,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [09:53:02]process_action_free close_receipt [09:53:02]json_value_free [09:53:02]json_value_free done [09:53:02]process_json_proto returns [09:53:02]Send response to host [09:53:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228108,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [09:53:02]free response buf [09:53:02]execute_script done [09:53:02]execute_script returns [09:53:02]free content buf [09:53:02]Sock 9.Close socket [09:53:02]Sock 9.Thread stoped [09:53:06]OFD Sender: No OFD packet to send [09:53:11]accept exits with 7 [09:53:11]New connection [09:53:11]New thread 3066994020 created [09:53:11]Thread 3067137380 joined [09:53:11]Waiting for new connection... [09:53:11] Sock 7.Parse request [09:53:11]Sock 7.Check first char [09:53:11]Sock 7.First char is OK [09:53:11]request: POST /json_proto HTTP/1.0 [09:53:11]Method: POST [09:53:11]URL: /json_proto [09:53:11]Method is POST - this is cgi request [09:53:11]url: /json_proto [09:53:11]query_string will be loaded in cgi processing [09:53:11]execute_cgi json_proto POST (null) [09:53:11]execute_cgi path=json_proto method=POST [09:53:11]POST find Content-Length [09:53:11]Host: 172.17.44.195:8080 [09:53:11]Content-Length: 678 [09:53:11]Content-Type: application/json [09:53:11] [09:53:11]POST finish read [09:53:11]Found Content-Length = 678 [09:53:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:53:11]execute_script... [09:53: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)1964467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:53:11]POST & json_proto [09:53:11]process_json_proto [09:53:11]json parsed OK: [09:53:11]protocol is kg_v1.0 [09:53:11]action value=close_receipt [09:53:11]process_action close_receipt [09:53:11]cmd_close_receipt [09:53:11]MH_GetDate [09:53:11]Write to MH i2c: F0 00 00 F5 17 FB [09:53:11]OFD Sender: No OFD packet to send [09:53:11]Write i2c OK [09:53:11]MH_I2C_Read... [09:53:11]Read from MH i2c: F0 [09:53:11]MH_I2C_Read... [09:53:11]Read from MH i2c: F0 09 00 [09:53:11]MH_I2C_Read... [09:53:11]Read from MH i2c: F0 09 00 F5 17 00 0A 76 17 67 82 C9 CF 66 82 [09:53:11]GetLastDocTimeStamp 1729590781 [09:53:11]current date 1729590794 [09:53:11]FM_GetShiftState [09:53:11]SAM_PROTO_GetShiftState [09:53:11]wFMCommunicate request_size=4 [09:53:11]MH_SAM_APDU [09:53:11]CAPDU: 80 13 01 00 [09:53:11]Write to MH i2c: E2 08 00 F6 17 80 13 01 00 00 00 00 00 8A [09:53:11]Write i2c OK [09:53:11]MH_I2C_Read... [09:53:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:11]Read from MH i2c: E2 [09:53:11]MH_I2C_Read... [09:53:11]Read from MH i2c: E2 0E 00 [09:53:11]MH_I2C_Read... [09:53:11]Read from MH i2c: E2 0E 00 F6 17 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 51 [09:53:11]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:53:11]wFMCommunicate OK [09:53:11]SAM_PROTO_GetShiftState done [09:53:11]FM_GetShiftState done [09:53:11]opened in 1729555538 [09:53:11]opened+sec_in_day 1729641938 [09:53:11]quantity*price = 50041 [09:53:11]sum+1 = 50042 [09:53:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 73 22.10.2024 09:53 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228109 ФПД: 92652512225461 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095314&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228109&fm=92652512225461&tin=02508201610067®Number=0000000000091685&sum=50000 [09:53:12]StoreToDocumentArchive [09:53:12]shift 535 fd 228109 [09:53:12]save to /storage/0535/doc_00228109 [09:53:12]save last doc name /storage/0535/doc_00228109 to /storage/kkm_last_doc_name [09:53:12]save OK [09:53:12]Clear old archive folders... [09:53:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:12]tlvbuf is 0086EC70 [09:53:12]SAM_PROTO_ClearQueue [09:53:12]wFMCommunicate request_size=4 [09:53:12]MH_SAM_APDU [09:53:12]CAPDU: 80 09 00 00 [09:53:12]Write to MH i2c: E2 08 00 03 18 80 09 00 00 00 00 00 00 8D [09:53:12]Write i2c OK [09:53:12]MH_I2C_Read... [09:53:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:12]Read from MH i2c: E2 [09:53:12]MH_I2C_Read... [09:53:12]Read from MH i2c: E2 03 00 [09:53:12]MH_I2C_Read... [09:53:12]Read from MH i2c: E2 03 00 03 18 00 90 00 8F [09:53:12]RAPDU: 90 00 [09:53:12]wFMCommunicate OK [09:53:12]SAM_PROTO_ClearQueue done [09:53:12]KKMCreateOFDPacket [09:53:12]OFDProtocolAddRootSTLVToBuf [09:53:12]FM_MakeSignedData [09:53:12]FM_MakeSignedData [09:53:12]SAM_PROTO_SignData [09:53:12]wFMCommunicate request_size=4 [09:53:12]MH_SAM_APDU [09:53:12]CAPDU: 80 0D 01 02 [09:53:12]Write to MH i2c: E2 08 00 04 18 80 0D 01 02 00 00 00 00 95 [09:53:12]Write i2c OK [09:53:12]MH_I2C_Read... [09:53:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:12]Read from MH i2c: E2 [09:53:12]MH_I2C_Read... [09:53:12]Read from MH i2c: E2 03 00 [09:53:12]MH_I2C_Read... [09:53:12]Read from MH i2c: E2 03 00 04 18 00 90 00 90 [09:53:12]RAPDU: 90 00 [09:53:12]wFMCommunicate OK [09:53:12]wFMCommunicate request_size=255 [09:53:12]MH_SAM_APDU [09:53: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0A 76 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0D 7B 03 00 35 04 06 00 54 [09:53:12]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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0A 76 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0D 7B 03 00 35 04 06 00 54 00 00 6B [09:53:12]Write i2c OK [09:53:12]MH_I2C_Read... [09:53:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:12]Read from MH i2c: E2 [09:53:12]MH_I2C_Read... [09:53:12]Read from MH i2c: E2 03 00 [09:53:12]MH_I2C_Read... [09:53:12]Read from MH i2c: E2 03 00 05 18 00 90 00 91 [09:53:12]RAPDU: 90 00 [09:53:12]wFMCommunicate OK [09:53:12]wFMCommunicate request_size=10 [09:53:12]MH_SAM_APDU [09:53:12]CAPDU: 80 0D 02 02 05 44 58 14 28 B5 [09:53:12]Write to MH i2c: E2 0D 00 06 18 80 0D 02 02 05 00 44 58 14 28 B5 00 00 2F [09:53:12]Write i2c OK [09:53:12]MH_I2C_Read... [09:53:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:12]Read from MH i2c: E2 [09:53:12]MH_I2C_Read... [09:53:12]Read from MH i2c: E2 03 00 [09:53:12]MH_I2C_Read... [09:53:12]Read from MH i2c: E2 03 00 06 18 00 90 00 92 [09:53:12]RAPDU: 90 00 [09:53:12]wFMCommunicate OK [09:53:12]wFMCommunicate request_size=4 [09:53:12]MH_SAM_APDU [09:53:12]CAPDU: 80 0D 03 02 [09:53:12]Write to MH i2c: E2 08 00 07 18 80 0D 03 02 00 00 00 00 9A [09:53:12]Write i2c OK [09:53:12]MH_I2C_Read... [09:53:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:12]Read from MH i2c: E2 [09:53:12]MH_I2C_Read... [09:53:12]Read from MH i2c: E2 0B 00 [09:53:12]MH_I2C_Read... [09:53:12]Read from MH i2c: E2 0B 00 07 18 00 8E 28 E8 38 78 27 6C DE 90 00 5A [09:53:12]RAPDU: 8E 28 E8 38 78 27 6C DE 90 00 [09:53:12]wFMCommunicate OK [09:53:12]SAM_PROTO_SignData done [09:53:12]FM_MakeSignedData done [09:53:12]CreateOFDProtocolMessage [09:53:12]wFMCommunicate request_size=4 [09:53:12]MH_SAM_APDU [09:53:12]CAPDU: 80 11 00 00 [09:53:12]Write to MH i2c: E2 08 00 08 18 80 11 00 00 00 00 00 00 9A [09:53:12]Write i2c OK [09:53:12]MH_I2C_Read... [09:53:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:12]Read from MH i2c: E2 [09:53:12]MH_I2C_Read... [09:53:12]Read from MH i2c: E2 17 00 [09:53:12]MH_I2C_Read... [09:53:12]Read from MH i2c: E2 17 00 08 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F1 [09:53:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:53:12]wFMCommunicate OK [09:53:12]CreateOFDProtocolMessage done [09:53:12]OFDSenderStorePacket 228109 [09:53:12]StoreOFDPacket docnum=228109 [09:53:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 9D C1 07 01 7C 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0A 76 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0D 7B 03 00 35 04 06 00 54 44 58 14 28 B5 8E 28 E8 38 78 27 6C DE [09:53:12]CheckFolder [09:53:12]dirname=/storage/ofd_packets [09:53:12]CheckFolder done [09:53:12]ProducePacketName [09:53:12]name=ofd_packets/00228109 [09:53:12]NVStorageSaveData ofd_packets/00228109 [09:53:12]File name is /storage/ofd_packets/00228109 [09:53:12]Write 301 bytes [09:53:12]NVStorageSaveData done [09:53:12]OFDSenderStorePacket done [09:53:12]KKMCreateOFDPacket done [09:53:12]NVStorageSaveData kkm_last_timestamp [09:53:12]File name is /storage/kkm_last_timestamp [09:53:12]Write 4 bytes [09:53:12]NVStorageSaveData done [09:53:12]ExternCall_PrintAddStr [09:53:12]wPrintStart [09:53:12]Write to MH i2c: 01 00 00 09 18 21 [09:53:12]Write i2c OK [09:53:12]MH_I2C_Read... [09:53:12]Read from MH i2c: 01 [09:53:12]MH_I2C_Read... [09:53:12]Read from MH i2c: 01 07 00 [09:53:12]MH_I2C_Read... [09:53:12]Read from MH i2c: 01 07 00 09 18 00 00 00 00 00 FF 0F 36 [09:53:12]RasterBufferAndPrint [09:53:12]line Счет N : (1)1964467 [09:53:12]line ИНН: 02508201610067 [09:53:12]line Контрольно-Кассовый Чек [09:53:12]line ПРОДАЖА [09:53:12]line ТРК (МРК, ГНК) : 33 [09:53:12]line Товар: 2710124130 [09:53:12]line Аи-92-К-5 [09:53:12]line 7.480 * 66.90 [09:53:12]line = 500.41 [09:53:12]line НДС 12% НСП 1% [09:53:12]line > о реализуемом товаре [09:53:12]line ОКРУГЛЕНИЕ: -0.41 [09:53:12]line ИТОГО: 500.00 [09:53:12]line Внесено: 500.00 [09:53:12]line СДАЧА: 0.00 [09:53:12]line НСП 1% : 4.43 [09:53:12]line НДС 12% : 53.14 [09:53:12]line Наличными: 500.00 [09:53:12]line Безнал.: 0.00 [09:53:12]line Место: АЗС № 133 "Партнер Нефть" [09:53:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:53:12]line СНО: Общий режим [09:53:12]line Чек 73 22.10.2024 09:53 [09:53:12]line Смена: 535 ФФД: 1.0 [09:53:12]line ЗНМ: 0300000091 [09:53:12]line РНМ: 0000000000091685 [09:53:12]line Версия ККМ: 001 [09:53:12]line ФМ: 0000000000871839 [09:53:12]line ФД: 228109 [09:53:12]line ФПД: 92652512225461 [09:53:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095314&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228109&fm=92652512225461&tin=02508201610067®Number=0000000000091685&sum=50000 [09:53:12]OFD Sender: Processing packet 228109 [packets to send 38, broken 37] [09:53:12]ProducePacketName [09:53:12]name=ofd_packets/00228109 [09:53:12]OFD Sender: To server: pG, [09:53:12]CommunicateWithHost lk.salyk.kg:30040 [09:53:12]ConnectInit lk.salyk.kg [09:53:12]written 0, free lines is 4095 [09:53:12]Connected sock=10 [09:53:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 9D C1 07 01 7C 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0A 76 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0D 7B 03 00 35 04 06 00 54 44 58 14 28 B5 8E 28 E8 38 78 27 6C DE [09:53:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 A3 72 47 00 74 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0D 7B 03 00 F4 03 04 00 02 21 17 67 B6 04 01 00 00 82 AB 86 9A 73 64 68 40 [09:53:13]CommunicateWithHost err = 0 [09:53:13]CheckOFDResponse [09:53:13]1017 (14) - 77093643461234 [09:53:13]1041 (16) - 0000000000871839 [09:53:13]1040 (4) - 228109 [09:53:13]1012 (4) - 22.10.2024 03:50 [09:53:13]1206 (1) - 0 [09:53:13]OFD Sender: Remove packet 228109 [09:53:13]ProducePacketName [09:53:13]name=ofd_packets/00228109 [09:53:13]NVStorageDeleteData [09:53:13]Write to MH i2c: 01 00 00 33 18 4B [09:53:13]Write i2c OK [09:53:13]MH_I2C_Read... [09:53:13]Read from MH i2c: 01 [09:53:13]MH_I2C_Read... [09:53:13]Read from MH i2c: 01 07 00 [09:53:13]MH_I2C_Read... [09:53:13]Read from MH i2c: 01 07 00 33 18 00 00 00 00 00 B7 0C 15 [09:53:13]RasterBufferAndPrint [09:53:13]line [09:53:13]line [09:53:13]line [09:53:13]line [09:53:13]line [09:53:13]written 0, free lines is 3269 [09:53:13]MH_Cut [09:53:13]Write to MH i2c: D1 01 00 3A 18 01 24 [09:53:13]Write i2c OK [09:53:13]MH_I2C_Read... [09:53:13]Read from MH i2c: D1 [09:53:13]MH_I2C_Read... [09:53:13]Read from MH i2c: D1 01 00 [09:53:13]MH_I2C_Read... [09:53:13]Read from MH i2c: D1 01 00 3A 18 00 23 [09:53:13]Write to MH i2c: 01 00 00 3B 18 53 [09:53:13]Write i2c OK [09:53:13]MH_I2C_Read... [09:53:13]OFD Sender: No OFD packet to send [09:53:14]*** Cut start [09:53:14]*** Partial cut [09:53:14]*** CUTSNS_PIN = 1 [09:53:14]*** CUTSNS_PIN = 0 [09:53:14]*** Brake cut motor [09:53:14]Read from MH i2c: 01 [09:53:14]MH_I2C_Read... [09:53:14]*** Stop cut motor [09:53:14]*** Cut end [09:53:14]Read from MH i2c: 01 07 00 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: 01 07 00 3B 18 00 00 00 00 00 FF 0F 68 [09:53:14]process_action close_receipt done [09:53:14]requested_data is exist [09:53:14]produce_requested_data [09:53:14]requested_item fm.sn is exist - process it [09:53:14]wFMCommunicate request_size=4 [09:53:14]MH_SAM_APDU [09:53:14]CAPDU: 80 11 00 00 [09:53:14]Write to MH i2c: E2 08 00 3C 18 80 11 00 00 00 00 00 00 CE [09:53:14]Write i2c OK [09:53:14]MH_I2C_Read... [09:53:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:14]Read from MH i2c: E2 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: E2 17 00 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: E2 17 00 3C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 25 [09:53:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:53:14]wFMCommunicate OK [09:53:14]requested_item fd.num is exist - process it [09:53:14]SAM_PROTO_GetFieldsCounters [09:53:14]wFMCommunicate request_size=4 [09:53:14]MH_SAM_APDU [09:53:14]CAPDU: 80 13 00 00 [09:53:14]Write to MH i2c: E2 08 00 3D 18 80 13 00 00 00 00 00 00 D1 [09:53:15]Write i2c OK [09:53:15]MH_I2C_Read... [09:53:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:15]Read from MH i2c: E2 [09:53:15]MH_I2C_Read... [09:53:15]Read from MH i2c: E2 62 00 [09:53:15]MH_I2C_Read... [09:53:15]Read from MH i2c: E2 62 00 3D 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0D 7B 03 00 0E 04 04 00 17 02 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 79 [09:53:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0D 7B 03 00 0E 04 04 00 17 02 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:53:15]wFMCommunicate OK [09:53:15]SAM_PROTO_GetFieldsCounters done [09:53:15]requested_item shift.num is exist - process it [09:53:15]requested_item shift.opened is exist - process it [09:53:15]req_shift_opened [09:53:15]FM_GetShiftState [09:53:15]SAM_PROTO_GetShiftState [09:53:15]wFMCommunicate request_size=4 [09:53:15]MH_SAM_APDU [09:53:15]CAPDU: 80 13 01 00 [09:53:15]Write to MH i2c: E2 08 00 3E 18 80 13 01 00 00 00 00 00 D3 [09:53:15]Write i2c OK [09:53:15]MH_I2C_Read... [09:53:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:15]Read from MH i2c: E2 [09:53:15]MH_I2C_Read... [09:53:15]Read from MH i2c: E2 0E 00 [09:53:15]MH_I2C_Read... [09:53:15]Read from MH i2c: E2 0E 00 3E 18 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 9A [09:53:15]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:53:15]wFMCommunicate OK [09:53:15]SAM_PROTO_GetShiftState done [09:53:15]FM_GetShiftState done [09:53:15]req_shift_opened done [09:53:15]requested_item shift.open_date is exist - process it [09:53:15]req_shift_open_date [09:53:15]req_shift_open_date done [09:53:15]produce_requested_data done [09:53:15]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228109,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [09:53:15]process_action_free close_receipt [09:53:15]json_value_free [09:53:15]json_value_free done [09:53:15]process_json_proto returns [09:53:15]Send response to host [09:53:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228109,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [09:53:15]free response buf [09:53:15]execute_script done [09:53:15]execute_script returns [09:53:15]free content buf [09:53:15]Sock 7.Close socket [09:53:15]Sock 7.Thread stoped [09:53:18]OFD Sender: No OFD packet to send [09:53:23]OFD Sender: No OFD packet to send [09:53:28]OFD Sender: No OFD packet to send [09:53:33]OFD Sender: No OFD packet to send [09:53:38]OFD Sender: No OFD packet to send [09:53:43]OFD Sender: No OFD packet to send [09:53:46]accept exits with 9 [09:53:46]New connection [09:53:46]New thread 3067137380 created [09:53:46]Thread 3066994020 joined [09:53:46]Waiting for new connection... [09:53:46] Sock 9.Parse request [09:53:46]Sock 9.Check first char [09:53:46]Sock 9.First char is OK [09:53:46]request: POST /json_proto HTTP/1.0 [09:53:46]Method: POST [09:53:46]URL: /json_proto [09:53:46]Method is POST - this is cgi request [09:53:46]url: /json_proto [09:53:46]query_string will be loaded in cgi processing [09:53:46]execute_cgi json_proto POST (null) [09:53:46]execute_cgi path=json_proto method=POST [09:53:46]POST find Content-Length [09:53:46]Host: 172.17.44.195:8080 [09:53:46]Content-Length: 621 [09:53:46]Content-Type: application/json [09:53:46] [09:53:46]POST finish read [09:53:46]Found Content-Length = 621 [09:53:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:46]execute_script... [09:53: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)1964468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:46]POST & json_proto [09:53:46]process_json_proto [09:53:46]json parsed OK: [09:53:46]protocol is kg_v1.0 [09:53:46]action value=close_receipt [09:53:46]process_action close_receipt [09:53:46]cmd_close_receipt [09:53:46]MH_GetDate [09:53:46]Write to MH i2c: F0 00 00 3F 18 46 [09:53:46]Write i2c OK [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: F0 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: F0 09 00 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: F0 09 00 3F 18 00 2D 76 17 67 82 C9 CF 66 F0 [09:53:46]GetLastDocTimeStamp 1729590794 [09:53:46]current date 1729590829 [09:53:46]FM_GetShiftState [09:53:46]SAM_PROTO_GetShiftState [09:53:46]wFMCommunicate request_size=4 [09:53:46]MH_SAM_APDU [09:53:46]CAPDU: 80 13 01 00 [09:53:46]Write to MH i2c: E2 08 00 40 18 80 13 01 00 00 00 00 00 D5 [09:53:46]Write i2c OK [09:53:46]MH_I2C_Read... [09:53:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:46]Read from MH i2c: E2 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: E2 0E 00 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: E2 0E 00 40 18 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 9C [09:53:46]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:53:46]wFMCommunicate OK [09:53:46]SAM_PROTO_GetShiftState done [09:53:46]FM_GetShiftState done [09:53:46]opened in 1729555538 [09:53:46]opened+sec_in_day 1729641938 [09:53:46]quantity*price = 50000 [09:53:46]sum+1 = 50001 [09:53:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 74 22.10.2024 09:53 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228110 ФПД: 97015467427682 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095349&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228110&fm=97015467427682&tin=02508201610067®Number=0000000000091685&sum=50000 [09:53:47]StoreToDocumentArchive [09:53:47]shift 535 fd 228110 [09:53:47]save to /storage/0535/doc_00228110 [09:53:47]save last doc name /storage/0535/doc_00228110 to /storage/kkm_last_doc_name [09:53:47]save OK [09:53:47]Clear old archive folders... [09:53:47]ProcessDocumentItem done err = 0, tmpTLVsize=244 [09:53:47]tlvbuf is 00AA3A00 [09:53:47]SAM_PROTO_ClearQueue [09:53:47]wFMCommunicate request_size=4 [09:53:47]MH_SAM_APDU [09:53:47]CAPDU: 80 09 00 00 [09:53:47]Write to MH i2c: E2 08 00 4D 18 80 09 00 00 00 00 00 00 D7 [09:53:47]Write i2c OK [09:53:47]MH_I2C_Read... [09:53:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:47]Read from MH i2c: E2 [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: E2 03 00 [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: E2 03 00 4D 18 00 90 00 D9 [09:53:47]RAPDU: 90 00 [09:53:47]wFMCommunicate OK [09:53:47]SAM_PROTO_ClearQueue done [09:53:47]KKMCreateOFDPacket [09:53:47]OFDProtocolAddRootSTLVToBuf [09:53:47]FM_MakeSignedData [09:53:47]FM_MakeSignedData [09:53:47]SAM_PROTO_SignData [09:53:47]wFMCommunicate request_size=4 [09:53:47]MH_SAM_APDU [09:53:47]CAPDU: 80 0D 01 02 [09:53:47]Write to MH i2c: E2 08 00 4E 18 80 0D 01 02 00 00 00 00 DF [09:53:47]Write i2c OK [09:53:47]MH_I2C_Read... [09:53:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:47]Read from MH i2c: E2 [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: E2 03 00 [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: E2 03 00 4E 18 00 90 00 DA [09:53:47]RAPDU: 90 00 [09:53:47]wFMCommunicate OK [09:53:47]wFMCommunicate request_size=253 [09:53:47]MH_SAM_APDU [09:53:47]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 2D 76 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0E 7B 03 00 35 04 06 00 58 3C 2C 79 47 62 [09:53:47]Write to MH i2c: E2 00 01 4F 18 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 2D 76 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0E 7B 03 00 35 04 06 00 58 3C 2C 79 47 62 00 00 D3 [09:53:47]Write i2c OK [09:53:47]MH_I2C_Read... [09:53:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:48]Read from MH i2c: E2 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: E2 03 00 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: E2 03 00 4F 18 00 90 00 DB [09:53:48]RAPDU: 90 00 [09:53:48]wFMCommunicate OK [09:53:48]wFMCommunicate request_size=4 [09:53:48]MH_SAM_APDU [09:53:48]CAPDU: 80 0D 03 02 [09:53:48]Write to MH i2c: E2 08 00 50 18 80 0D 03 02 00 00 00 00 E3 [09:53:48]Write i2c OK [09:53:48]MH_I2C_Read... [09:53:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:48]Read from MH i2c: E2 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: E2 0B 00 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: E2 0B 00 50 18 00 91 D9 EC 52 B5 AD D8 B8 90 00 7E [09:53:48]RAPDU: 91 D9 EC 52 B5 AD D8 B8 90 00 [09:53:48]wFMCommunicate OK [09:53:48]SAM_PROTO_SignData done [09:53:48]FM_MakeSignedData done [09:53:48]CreateOFDProtocolMessage [09:53:48]wFMCommunicate request_size=4 [09:53:48]MH_SAM_APDU [09:53:48]CAPDU: 80 11 00 00 [09:53:48]Write to MH i2c: E2 08 00 51 18 80 11 00 00 00 00 00 00 E3 [09:53:48]Write i2c OK [09:53:48]MH_I2C_Read... [09:53:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:48]Read from MH i2c: E2 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: E2 17 00 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: E2 17 00 51 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 3A [09:53:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:53:48]wFMCommunicate OK [09:53:48]CreateOFDProtocolMessage done [09:53:48]OFDSenderStorePacket 228110 [09:53:48]StoreOFDPacket docnum=228110 [09:53:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 99 BC 00 01 6C B7 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 2D 76 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0E 7B 03 00 35 04 06 00 58 3C 2C 79 47 62 91 D9 EC 52 B5 AD D8 B8 [09:53:48]CheckFolder [09:53:48]dirname=/storage/ofd_packets [09:53:48]CheckFolder done [09:53:48]ProducePacketName [09:53:48]name=ofd_packets/00228110 [09:53:48]NVStorageSaveData ofd_packets/00228110 [09:53:48]File name is /storage/ofd_packets/00228110 [09:53:48]Write 294 bytes [09:53:48]NVStorageSaveData done [09:53:48]OFDSenderStorePacket done [09:53:48]KKMCreateOFDPacket done [09:53:48]NVStorageSaveData kkm_last_timestamp [09:53:48]File name is /storage/kkm_last_timestamp [09:53:48]Write 4 bytes [09:53:48]NVStorageSaveData done [09:53:48]ExternCall_PrintAddStr [09:53:48]wPrintStart [09:53:48]Write to MH i2c: 01 00 00 52 18 6A [09:53:48]Write i2c OK [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: 01 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: 01 07 00 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: 01 07 00 52 18 00 00 00 00 00 FF 0F 7F [09:53:48]RasterBufferAndPrint [09:53:48]line Счет N : (1)1964468 [09:53:48]line ИНН: 02508201610067 [09:53:48]line Контрольно-Кассовый Чек [09:53:48]line ПРОДАЖА [09:53:48]line ТРК (МРК, ГНК) : 52 [09:53:48]line Товар: 2710124130 [09:53:48]line SU-92 [09:53:48]line 7.310 * 68.40 [09:53:48]line = 500.00 [09:53:48]line НДС 12% НСП 1% [09:53:48]line > о реализуемом товаре [09:53:48]line ИТОГО: 500.00 [09:53:48]line НСП 1% : 4.42 [09:53:48]line НДС 12% : 53.10 [09:53:48]line Наличными: 500.00 [09:53:48]line Безнал.: 0.00 [09:53:48]line Место: АЗС № 133 "Партнер Нефть" [09:53:48]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:53:48]line СНО: Общий режим [09:53:48]line Чек 74 22.10.2024 09:53 [09:53:48]line Смена: 535 ФФД: 1.0 [09:53:48]line ЗНМ: 0300000091 [09:53:48]line РНМ: 0000000000091685 [09:53:48]line Версия ККМ: 001 [09:53:48]line ФМ: 0000000000871839 [09:53:48]line ФД: 228110 [09:53:48]line ФПД: 97015467427682 [09:53:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095349&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228110&fm=97015467427682&tin=02508201610067®Number=0000000000091685&sum=50000 [09:53:48]OFD Sender: Processing packet 228110 [packets to send 38, broken 37] [09:53:48]ProducePacketName [09:53:48]name=ofd_packets/00228110 [09:53:48]OFD Sender: To server: pG, [09:53:48]CommunicateWithHost lk.salyk.kg:30040 [09:53:48]ConnectInit lk.salyk.kg [09:53:48]written 0, free lines is 4095 [09:53:48]Connected sock=10 [09:53:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 99 BC 00 01 6C B7 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 2D 76 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0E 7B 03 00 35 04 06 00 58 3C 2C 79 47 62 91 D9 EC 52 B5 AD D8 B8 [09:53:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 0B 5D 47 00 4D AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0E 7B 03 00 F4 03 04 00 26 21 17 67 B6 04 01 00 00 E0 6C A4 60 6D 55 ED 76 [09:53:48]CommunicateWithHost err = 0 [09:53:48]CheckOFDResponse [09:53:48]1017 (14) - 77093643461234 [09:53:48]1041 (16) - 0000000000871839 [09:53:48]1040 (4) - 228110 [09:53:48]1012 (4) - 22.10.2024 03:51 [09:53:48]1206 (1) - 0 [09:53:48]OFD Sender: Remove packet 228110 [09:53:48]ProducePacketName [09:53:48]name=ofd_packets/00228110 [09:53:48]NVStorageDeleteData [09:53:48]Write to MH i2c: 01 00 00 79 18 91 [09:53:48]Write i2c OK [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: 01 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: 01 07 00 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: 01 07 00 79 18 00 00 00 00 00 EF 0C 93 [09:53:48]RasterBufferAndPrint [09:53:48]line [09:53:48]line [09:53:48]line [09:53:48]line [09:53:48]line [09:53:48]written 0, free lines is 3315 [09:53:48]MH_Cut [09:53:48]Write to MH i2c: D1 01 00 80 18 01 6A [09:53:48]Write i2c OK [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: D1 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: D1 01 00 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: D1 01 00 80 18 00 69 [09:53:48]Write to MH i2c: 01 00 00 81 18 99 [09:53:48]Write i2c OK [09:53:48]MH_I2C_Read... [09:53:49]OFD Sender: No OFD packet to send [09:53:49]*** Cut start [09:53:49]*** Partial cut [09:53:49]*** CUTSNS_PIN = 1 [09:53:49]*** CUTSNS_PIN = 0 [09:53:50]*** Brake cut motor [09:53:50]Read from MH i2c: 01 [09:53:50]MH_I2C_Read... [09:53:50]*** Stop cut motor [09:53:50]*** Cut end [09:53:50]Read from MH i2c: 01 07 00 [09:53:50]MH_I2C_Read... [09:53:50]Read from MH i2c: 01 07 00 81 18 00 00 00 00 00 FF 0F AE [09:53:50]process_action close_receipt done [09:53:50]requested_data is exist [09:53:50]produce_requested_data [09:53:50]requested_item fm.sn is exist - process it [09:53:50]wFMCommunicate request_size=4 [09:53:50]MH_SAM_APDU [09:53:50]CAPDU: 80 11 00 00 [09:53:50]Write to MH i2c: E2 08 00 82 18 80 11 00 00 00 00 00 00 14 [09:53:50]Write i2c OK [09:53:50]MH_I2C_Read... [09:53:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:50]Read from MH i2c: E2 [09:53:50]MH_I2C_Read... [09:53:50]Read from MH i2c: E2 17 00 [09:53:50]MH_I2C_Read... [09:53:50]Read from MH i2c: E2 17 00 82 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6B [09:53:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:53:50]wFMCommunicate OK [09:53:50]requested_item fd.num is exist - process it [09:53:50]SAM_PROTO_GetFieldsCounters [09:53:50]wFMCommunicate request_size=4 [09:53:50]MH_SAM_APDU [09:53:50]CAPDU: 80 13 00 00 [09:53:50]Write to MH i2c: E2 08 00 83 18 80 13 00 00 00 00 00 00 17 [09:53:50]Write i2c OK [09:53:50]MH_I2C_Read... [09:53:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:50]Read from MH i2c: E2 [09:53:50]MH_I2C_Read... [09:53:50]Read from MH i2c: E2 62 00 [09:53:50]MH_I2C_Read... [09:53:50]Read from MH i2c: E2 62 00 83 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0E 7B 03 00 0E 04 04 00 17 02 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 C3 [09:53:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0E 7B 03 00 0E 04 04 00 17 02 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:53:50]wFMCommunicate OK [09:53:50]SAM_PROTO_GetFieldsCounters done [09:53:50]requested_item shift.num is exist - process it [09:53:50]requested_item shift.opened is exist - process it [09:53:50]req_shift_opened [09:53:50]FM_GetShiftState [09:53:50]SAM_PROTO_GetShiftState [09:53:50]wFMCommunicate request_size=4 [09:53:50]MH_SAM_APDU [09:53:50]CAPDU: 80 13 01 00 [09:53:50]Write to MH i2c: E2 08 00 84 18 80 13 01 00 00 00 00 00 19 [09:53:50]Write i2c OK [09:53:50]MH_I2C_Read... [09:53:50]Read from MH i2c: E2 [09:53:50]MH_I2C_Read... [09:53:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:50]Read from MH i2c: E2 0E 00 [09:53:50]MH_I2C_Read... [09:53:50]Read from MH i2c: E2 0E 00 84 18 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 E0 [09:53:50]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:53:50]wFMCommunicate OK [09:53:50]SAM_PROTO_GetShiftState done [09:53:50]FM_GetShiftState done [09:53:50]req_shift_opened done [09:53:50]requested_item shift.open_date is exist - process it [09:53:50]req_shift_open_date [09:53:50]req_shift_open_date done [09:53:50]produce_requested_data done [09:53:50]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228110,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [09:53:50]process_action_free close_receipt [09:53:50]json_value_free [09:53:50]json_value_free done [09:53:50]process_json_proto returns [09:53:50]Send response to host [09:53:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228110,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [09:53:50]free response buf [09:53:50]execute_script done [09:53:50]execute_script returns [09:53:50]free content buf [09:53:50]Sock 9.Close socket [09:53:50]Sock 9.Thread stoped [09:53:54]OFD Sender: No OFD packet to send [09:53:59]OFD Sender: No OFD packet to send [09:54:04]OFD Sender: No OFD packet to send [09:54:09]OFD Sender: No OFD packet to send [09:54:14]OFD Sender: No OFD packet to send [09:54:19]OFD Sender: No OFD packet to send [09:54:24]OFD Sender: No OFD packet to send [09:54:29]OFD Sender: No OFD packet to send [09:54:34]OFD Sender: No OFD packet to send [09:54:39]OFD Sender: No OFD packet to send [09:54:44]OFD Sender: No OFD packet to send [09:54:49]OFD Sender: No OFD packet to send [09:54:54]OFD Sender: No OFD packet to send [09:54:59]OFD Sender: No OFD packet to send [09:55:04]OFD Sender: No OFD packet to send [09:55:09]OFD Sender: No OFD packet to send [09:55:11]accept exits with 7 [09:55:11]New connection [09:55:11]New thread 3066994020 created [09:55:11]Thread 3067137380 joined [09:55:11]Waiting for new connection... [09:55:11] Sock 7.Parse request [09:55:11]Sock 7.Check first char [09:55:11]Sock 7.First char is OK [09:55:11]request: POST /json_proto HTTP/1.0 [09:55:11]Method: POST [09:55:11]URL: /json_proto [09:55:11]Method is POST - this is cgi request [09:55:11]url: /json_proto [09:55:11]query_string will be loaded in cgi processing [09:55:11]execute_cgi json_proto POST (null) [09:55:11]execute_cgi path=json_proto method=POST [09:55:11]POST find Content-Length [09:55:11]Host: 172.17.44.195:8080 [09:55:11]Content-Length: 678 [09:55:11]Content-Type: application/json [09:55:11] [09:55:11]POST finish read [09:55:11]Found Content-Length = 678 [09:55:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:11]execute_script... [09:55: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)1964470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:11]POST & json_proto [09:55:11]process_json_proto [09:55:11]json parsed OK: [09:55:11]protocol is kg_v1.0 [09:55:11]action value=close_receipt [09:55:11]process_action close_receipt [09:55:11]cmd_close_receipt [09:55:11]MH_GetDate [09:55:11]Write to MH i2c: F0 00 00 85 18 8C [09:55:11]Write i2c OK [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: F0 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: F0 09 00 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: F0 09 00 85 18 00 82 76 17 67 82 C9 CF 66 8B [09:55:11]GetLastDocTimeStamp 1729590829 [09:55:11]current date 1729590914 [09:55:11]FM_GetShiftState [09:55:11]SAM_PROTO_GetShiftState [09:55:11]wFMCommunicate request_size=4 [09:55:11]MH_SAM_APDU [09:55:11]CAPDU: 80 13 01 00 [09:55:11]Write to MH i2c: E2 08 00 86 18 80 13 01 00 00 00 00 00 1B [09:55:11]Write i2c OK [09:55:11]MH_I2C_Read... [09:55:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:11]Read from MH i2c: E2 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: E2 0E 00 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: E2 0E 00 86 18 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 E2 [09:55:11]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:55:11]wFMCommunicate OK [09:55:11]SAM_PROTO_GetShiftState done [09:55:11]FM_GetShiftState done [09:55:11]opened in 1729555538 [09:55:11]opened+sec_in_day 1729641938 [09:55:11]quantity*price = 50010 [09:55:11]sum+1 = 50012 [09:55:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 75 22.10.2024 09:55 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228111 ФПД: 93166865521538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095514&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228111&fm=93166865521538&tin=02508201610067®Number=0000000000091685&sum=50000 [09:55:12]StoreToDocumentArchive [09:55:12]shift 535 fd 228111 [09:55:12]save to /storage/0535/doc_00228111 [09:55:12]save last doc name /storage/0535/doc_00228111 to /storage/kkm_last_doc_name [09:55:12]save OK [09:55:12]Clear old archive folders... [09:55:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:55:12]tlvbuf is 00AA3620 [09:55:12]SAM_PROTO_ClearQueue [09:55:12]wFMCommunicate request_size=4 [09:55:12]MH_SAM_APDU [09:55:12]CAPDU: 80 09 00 00 [09:55:12]Write to MH i2c: E2 08 00 93 18 80 09 00 00 00 00 00 00 1D [09:55:12]Write i2c OK [09:55:12]MH_I2C_Read... [09:55:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:12]Read from MH i2c: E2 [09:55:12]MH_I2C_Read... [09:55:12]Read from MH i2c: E2 03 00 [09:55:12]MH_I2C_Read... [09:55:12]Read from MH i2c: E2 03 00 93 18 00 90 00 1F [09:55:12]RAPDU: 90 00 [09:55:12]wFMCommunicate OK [09:55:12]SAM_PROTO_ClearQueue done [09:55:12]KKMCreateOFDPacket [09:55:12]OFDProtocolAddRootSTLVToBuf [09:55:12]FM_MakeSignedData [09:55:12]FM_MakeSignedData [09:55:12]SAM_PROTO_SignData [09:55:12]wFMCommunicate request_size=4 [09:55:12]MH_SAM_APDU [09:55:12]CAPDU: 80 0D 01 02 [09:55:12]Write to MH i2c: E2 08 00 94 18 80 0D 01 02 00 00 00 00 25 [09:55:12]Write i2c OK [09:55:12]MH_I2C_Read... [09:55:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:12]Read from MH i2c: E2 [09:55:12]MH_I2C_Read... [09:55:12]Read from MH i2c: E2 03 00 [09:55:12]MH_I2C_Read... [09:55:12]Read from MH i2c: E2 03 00 94 18 00 90 00 20 [09:55:12]RAPDU: 90 00 [09:55:12]wFMCommunicate OK [09:55:12]wFMCommunicate request_size=255 [09:55:12]MH_SAM_APDU [09:55: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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 82 76 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0F 7B 03 00 35 04 06 00 54 [09:55:12]Write to MH i2c: E2 02 01 95 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 82 76 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0F 7B 03 00 35 04 06 00 54 00 00 4F [09:55:12]Write i2c OK [09:55:12]MH_I2C_Read... [09:55:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:13]Read from MH i2c: E2 [09:55:13]MH_I2C_Read... [09:55:13]Read from MH i2c: E2 03 00 [09:55:13]MH_I2C_Read... [09:55:13]Read from MH i2c: E2 03 00 95 18 00 90 00 21 [09:55:13]RAPDU: 90 00 [09:55:13]wFMCommunicate OK [09:55:13]wFMCommunicate request_size=10 [09:55:13]MH_SAM_APDU [09:55:13]CAPDU: 80 0D 02 02 05 BC 19 EC 9B 82 [09:55:13]Write to MH i2c: E2 0D 00 96 18 80 0D 02 02 05 00 BC 19 EC 9B 82 00 00 10 [09:55:13]Write i2c OK [09:55:13]MH_I2C_Read... [09:55:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:13]Read from MH i2c: E2 [09:55:13]MH_I2C_Read... [09:55:13]Read from MH i2c: E2 03 00 [09:55:13]MH_I2C_Read... [09:55:13]Read from MH i2c: E2 03 00 96 18 00 90 00 22 [09:55:13]RAPDU: 90 00 [09:55:13]wFMCommunicate OK [09:55:13]wFMCommunicate request_size=4 [09:55:13]MH_SAM_APDU [09:55:13]CAPDU: 80 0D 03 02 [09:55:13]Write to MH i2c: E2 08 00 97 18 80 0D 03 02 00 00 00 00 2A [09:55:13]Write i2c OK [09:55:13]MH_I2C_Read... [09:55:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:13]Read from MH i2c: E2 [09:55:13]MH_I2C_Read... [09:55:13]Read from MH i2c: E2 0B 00 [09:55:13]MH_I2C_Read... [09:55:13]Read from MH i2c: E2 0B 00 97 18 00 E5 55 1A 5C E5 A0 30 54 90 00 E4 [09:55:13]RAPDU: E5 55 1A 5C E5 A0 30 54 90 00 [09:55:13]wFMCommunicate OK [09:55:13]SAM_PROTO_SignData done [09:55:13]FM_MakeSignedData done [09:55:13]CreateOFDProtocolMessage [09:55:13]wFMCommunicate request_size=4 [09:55:13]MH_SAM_APDU [09:55:13]CAPDU: 80 11 00 00 [09:55:13]Write to MH i2c: E2 08 00 98 18 80 11 00 00 00 00 00 00 2A [09:55:13]Write i2c OK [09:55:13]MH_I2C_Read... [09:55:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:13]Read from MH i2c: E2 [09:55:13]MH_I2C_Read... [09:55:13]Read from MH i2c: E2 17 00 [09:55:13]MH_I2C_Read... [09:55:13]Read from MH i2c: E2 17 00 98 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 81 [09:55:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:55:13]wFMCommunicate OK [09:55:13]CreateOFDProtocolMessage done [09:55:13]OFDSenderStorePacket 228111 [09:55:13]StoreOFDPacket docnum=228111 [09:55:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 11 DD 07 01 07 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 82 76 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0F 7B 03 00 35 04 06 00 54 BC 19 EC 9B 82 E5 55 1A 5C E5 A0 30 54 [09:55:13]CheckFolder [09:55:13]dirname=/storage/ofd_packets [09:55:13]CheckFolder done [09:55:13]ProducePacketName [09:55:13]name=ofd_packets/00228111 [09:55:13]NVStorageSaveData ofd_packets/00228111 [09:55:13]File name is /storage/ofd_packets/00228111 [09:55:13]Write 301 bytes [09:55:13]NVStorageSaveData done [09:55:13]OFDSenderStorePacket done [09:55:13]KKMCreateOFDPacket done [09:55:13]NVStorageSaveData kkm_last_timestamp [09:55:13]File name is /storage/kkm_last_timestamp [09:55:13]Write 4 bytes [09:55:13]NVStorageSaveData done [09:55:13]ExternCall_PrintAddStr [09:55:13]wPrintStart [09:55:13]Write to MH i2c: 01 00 00 99 18 B1 [09:55:13]OFD Sender: Processing packet 228111 [packets to send 38, broken 37] [09:55:13]ProducePacketName [09:55:13]name=ofd_packets/00228111 [09:55:13]OFD Sender: To server: pG, [09:55:13]CommunicateWithHost lk.salyk.kg:30040 [09:55:13]ConnectInit lk.salyk.kg [09:55:13]Write i2c OK [09:55:13]MH_I2C_Read... [09:55:13]Read from MH i2c: 01 [09:55:13]MH_I2C_Read... [09:55:13]Read from MH i2c: 01 07 00 [09:55:13]MH_I2C_Read... [09:55:13]Read from MH i2c: 01 07 00 99 18 00 00 00 00 00 FF 0F C6 [09:55:13]RasterBufferAndPrint [09:55:13]line Счет N : (1)1964470 [09:55:13]line ИНН: 02508201610067 [09:55:13]line Контрольно-Кассовый Чек [09:55:13]line ПРОДАЖА [09:55:13]line ТРК (МРК, ГНК) : 54 [09:55:13]line Товар: 2710124500 [09:55:13]line Аи-95-К-5 [09:55:13]line 6.740 * 74.20 [09:55:13]line = 500.11 [09:55:13]line НДС 12% НСП 1% [09:55:13]line > о реализуемом товаре [09:55:13]line ОКРУГЛЕНИЕ: -0.11 [09:55:13]line ИТОГО: 500.00 [09:55:13]line Внесено: 500.00 [09:55:13]line СДАЧА: 0.00 [09:55:13]line НСП 1% : 4.43 [09:55:13]line НДС 12% : 53.11 [09:55:13]line Наличными: 500.00 [09:55:13]line Безнал.: 0.00 [09:55:13]line Место: АЗС № 133 "Партнер Нефть" [09:55:13]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:55:13]line СНО: Общий режим [09:55:13]line Чек 75 22.10.2024 09:55 [09:55:13]line Смена: 535 ФФД: 1.0 [09:55:13]line ЗНМ: 0300000091 [09:55:13]line РНМ: 0000000000091685 [09:55:13]line Версия ККМ: 001 [09:55:13]line ФМ: 0000000000871839 [09:55:13]line ФД: 228111 [09:55:13]line ФПД: 93166865521538 [09:55:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095514&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228111&fm=93166865521538&tin=02508201610067®Number=0000000000091685&sum=50000 [09:55:13]Connected sock=10 [09:55:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 11 DD 07 01 07 A8 5A 03 01 00 written 0, free lines is 4095 [09:55:13]03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 82 76 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0F 7B 03 00 35 04 06 00 54 BC 19 EC 9B 82 E5 55 1A 5C E5 A0 30 54 [09:55:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 04 2F 47 00 46 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0F 7B 03 00 F4 03 04 00 7B 21 17 67 B6 04 01 00 00 7D 75 1A FA C9 B0 96 90 [09:55:13]CommunicateWithHost err = 0 [09:55:13]CheckOFDResponse [09:55:13]1017 (14) - 77093643461234 [09:55:13]1041 (16) - 0000000000871839 [09:55:13]1040 (4) - 228111 [09:55:13]1012 (4) - 22.10.2024 03:52 [09:55:13]1206 (1) - 0 [09:55:13]OFD Sender: Remove packet 228111 [09:55:13]ProducePacketName [09:55:13]name=ofd_packets/00228111 [09:55:13]NVStorageDeleteData [09:55:14]Write to MH i2c: 01 00 00 C3 18 DB [09:55:14]Write i2c OK [09:55:14]MH_I2C_Read... [09:55:14]Read from MH i2c: 01 [09:55:14]MH_I2C_Read... [09:55:14]Read from MH i2c: 01 07 00 [09:55:14]MH_I2C_Read... [09:55:14]Read from MH i2c: 01 07 00 C3 18 00 00 00 00 00 B1 0C 9F [09:55:14]RasterBufferAndPrint [09:55:14]line [09:55:14]line [09:55:14]line [09:55:14]line [09:55:14]line [09:55:14]written 0, free lines is 3253 [09:55:14]MH_Cut [09:55:14]Write to MH i2c: D1 01 00 CA 18 01 B4 [09:55:14]Write i2c OK [09:55:14]MH_I2C_Read... [09:55:14]Read from MH i2c: D1 [09:55:14]MH_I2C_Read... [09:55:14]Read from MH i2c: D1 01 00 [09:55:14]MH_I2C_Read... [09:55:14]Read from MH i2c: D1 01 00 CA 18 00 B3 [09:55:14]Write to MH i2c: 01 00 00 CB 18 E3 [09:55:14]Write i2c OK [09:55:14]MH_I2C_Read... [09:55:14]OFD Sender: No OFD packet to send [09:55:14]*** Cut start [09:55:14]*** Partial cut [09:55:14]*** CUTSNS_PIN = 1 [09:55:14]*** CUTSNS_PIN = 0 [09:55:15]*** Brake cut motor [09:55:15]Read from MH i2c: 01 [09:55:15]MH_I2C_Read... [09:55:15]*** Stop cut motor [09:55:15]*** Cut end [09:55:15]Read from MH i2c: 01 07 00 [09:55:15]MH_I2C_Read... [09:55:15]Read from MH i2c: 01 07 00 CB 18 00 00 00 00 00 FF 0F F8 [09:55:15]process_action close_receipt done [09:55:15]requested_data is exist [09:55:15]produce_requested_data [09:55:15]requested_item fm.sn is exist - process it [09:55:15]wFMCommunicate request_size=4 [09:55:15]MH_SAM_APDU [09:55:15]CAPDU: 80 11 00 00 [09:55:15]Write to MH i2c: E2 08 00 CC 18 80 11 00 00 00 00 00 00 5E [09:55:15]Write i2c OK [09:55:15]MH_I2C_Read... [09:55:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:15]Read from MH i2c: E2 [09:55:15]MH_I2C_Read... [09:55:15]Read from MH i2c: E2 17 00 [09:55:15]MH_I2C_Read... [09:55:15]Read from MH i2c: E2 17 00 CC 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B5 [09:55:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:55:15]wFMCommunicate OK [09:55:15]requested_item fd.num is exist - process it [09:55:15]SAM_PROTO_GetFieldsCounters [09:55:15]wFMCommunicate request_size=4 [09:55:15]MH_SAM_APDU [09:55:15]CAPDU: 80 13 00 00 [09:55:15]Write to MH i2c: E2 08 00 CD 18 80 13 00 00 00 00 00 00 61 [09:55:15]Write i2c OK [09:55:15]MH_I2C_Read... [09:55:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:15]Read from MH i2c: E2 [09:55:15]MH_I2C_Read... [09:55:15]Read from MH i2c: E2 62 00 [09:55:15]MH_I2C_Read... [09:55:15]Read from MH i2c: E2 62 00 CD 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0F 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [09:55:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0F 7B 03 00 0E 04 04 00 17 02 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:55:15]wFMCommunicate OK [09:55:15]SAM_PROTO_GetFieldsCounters done [09:55:15]requested_item shift.num is exist - process it [09:55:15]requested_item shift.opened is exist - process it [09:55:15]req_shift_opened [09:55:15]FM_GetShiftState [09:55:15]SAM_PROTO_GetShiftState [09:55:15]wFMCommunicate request_size=4 [09:55:15]MH_SAM_APDU [09:55:15]CAPDU: 80 13 01 00 [09:55:15]Write to MH i2c: E2 08 00 CE 18 80 13 01 00 00 00 00 00 63 [09:55:15]Write i2c OK [09:55:15]MH_I2C_Read... [09:55:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:15]Read from MH i2c: E2 [09:55:15]MH_I2C_Read... [09:55:15]Read from MH i2c: E2 0E 00 [09:55:15]MH_I2C_Read... [09:55:15]Read from MH i2c: E2 0E 00 CE 18 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 2A [09:55:15]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:55:15]wFMCommunicate OK [09:55:15]SAM_PROTO_GetShiftState done [09:55:15]FM_GetShiftState done [09:55:15]req_shift_opened done [09:55:15]requested_item shift.open_date is exist - process it [09:55:15]req_shift_open_date [09:55:15]req_shift_open_date done [09:55:15]produce_requested_data done [09:55:15]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228111,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [09:55:15]process_action_free close_receipt [09:55:15]json_value_free [09:55:15]json_value_free done [09:55:15]process_json_proto returns [09:55:15]Send response to host [09:55:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228111,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [09:55:15]free response buf [09:55:15]execute_script done [09:55:15]execute_script returns [09:55:15]free content buf [09:55:15]Sock 7.Close socket [09:55:15]Sock 7.Thread stoped [09:55:16]accept exits with 9 [09:55:16]New connection [09:55:16]New thread 3067137380 created [09:55:16]Thread 3066994020 joined [09:55:16]Waiting for new connection... [09:55:16] Sock 9.Parse request [09:55:16]Sock 9.Check first char [09:55:16]Sock 9.First char is OK [09:55:16]request: POST /json_proto HTTP/1.0 [09:55:16]Method: POST [09:55:16]URL: /json_proto [09:55:16]Method is POST - this is cgi request [09:55:16]url: /json_proto [09:55:16]query_string will be loaded in cgi processing [09:55:16]execute_cgi json_proto POST (null) [09:55:16]execute_cgi path=json_proto method=POST [09:55:16]POST find Content-Length [09:55:16]Host: 172.17.44.195:8080 [09:55:16]Content-Length: 678 [09:55:16]Content-Type: application/json [09:55:16] [09:55:16]POST finish read [09:55:16]Found Content-Length = 678 [09:55:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:55:16]execute_script... [09: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)1964472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:55:16]POST & json_proto [09:55:16]process_json_proto [09:55:16]json parsed OK: [09:55:16]protocol is kg_v1.0 [09:55:16]action value=close_receipt [09:55:16]process_action close_receipt [09:55:16]cmd_close_receipt [09:55:16]MH_GetDate [09:55:16]Write to MH i2c: F0 00 00 CF 18 D6 [09:55:16]Write i2c OK [09:55:16]MH_I2C_Read... [09:55:16]Read from MH i2c: F0 [09:55:16]MH_I2C_Read... [09:55:16]Read from MH i2c: F0 09 00 [09:55:16]MH_I2C_Read... [09:55:16]Read from MH i2c: F0 09 00 CF 18 00 87 76 17 67 82 C9 CF 66 DA [09:55:16]GetLastDocTimeStamp 1729590914 [09:55:16]current date 1729590919 [09:55:16]FM_GetShiftState [09:55:16]SAM_PROTO_GetShiftState [09:55:16]wFMCommunicate request_size=4 [09:55:16]MH_SAM_APDU [09:55:16]CAPDU: 80 13 01 00 [09:55:16]Write to MH i2c: E2 08 00 D0 18 80 13 01 00 00 00 00 00 65 [09:55:16]Write i2c OK [09:55:16]MH_I2C_Read... [09:55:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:16]Read from MH i2c: E2 [09:55:16]MH_I2C_Read... [09:55:16]Read from MH i2c: E2 0E 00 [09:55:16]MH_I2C_Read... [09:55:16]Read from MH i2c: E2 0E 00 D0 18 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 2C [09:55:16]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:55:16]wFMCommunicate OK [09:55:16]SAM_PROTO_GetShiftState done [09:55:16]FM_GetShiftState done [09:55:16]opened in 1729555538 [09:55:16]opened+sec_in_day 1729641938 [09:55:16]quantity*price = 50041 [09:55:16]sum+1 = 50042 [09:55:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 76 22.10.2024 09:55 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228112 ФПД: 143337897481914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095519&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228112&fm=143337897481914&tin=02508201610067®Number=0000000000091685&sum=50000 [09:55:17]StoreToDocumentArchive [09:55:17]shift 535 fd 228112 [09:55:17]save to /storage/0535/doc_00228112 [09:55:17]save last doc name /storage/0535/doc_00228112 to /storage/kkm_last_doc_name [09:55:17]save OK [09:55:17]Clear old archive folders... [09:55:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:55:17]tlvbuf is 008A7B50 [09:55:17]SAM_PROTO_ClearQueue [09:55:17]wFMCommunicate request_size=4 [09:55:17]MH_SAM_APDU [09:55:17]CAPDU: 80 09 00 00 [09:55:17]Write to MH i2c: E2 08 00 DD 18 80 09 00 00 00 00 00 00 67 [09:55:17]Write i2c OK [09:55:17]MH_I2C_Read... [09:55:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:17]Read from MH i2c: E2 [09:55:17]MH_I2C_Read... [09:55:17]Read from MH i2c: E2 03 00 [09:55:17]MH_I2C_Read... [09:55:17]Read from MH i2c: E2 03 00 DD 18 00 90 00 69 [09:55:17]RAPDU: 90 00 [09:55:17]wFMCommunicate OK [09:55:17]SAM_PROTO_ClearQueue done [09:55:17]KKMCreateOFDPacket [09:55:17]OFDProtocolAddRootSTLVToBuf [09:55:17]FM_MakeSignedData [09:55:17]FM_MakeSignedData [09:55:17]SAM_PROTO_SignData [09:55:17]wFMCommunicate request_size=4 [09:55:17]MH_SAM_APDU [09:55:17]CAPDU: 80 0D 01 02 [09:55:17]Write to MH i2c: E2 08 00 DE 18 80 0D 01 02 00 00 00 00 6F [09:55:17]Write i2c OK [09:55:17]MH_I2C_Read... [09:55:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:17]Read from MH i2c: E2 [09:55:17]MH_I2C_Read... [09:55:17]Read from MH i2c: E2 03 00 [09:55:17]MH_I2C_Read... [09:55:17]Read from MH i2c: E2 03 00 DE 18 00 90 00 6A [09:55:17]RAPDU: 90 00 [09:55:17]wFMCommunicate OK [09:55:17]wFMCommunicate request_size=255 [09:55:17]MH_SAM_APDU [09:55: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 87 76 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 10 7B 03 00 35 04 06 00 82 [09:55:17]Write to MH i2c: E2 02 01 DF 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 87 76 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 10 7B 03 00 35 04 06 00 82 00 00 F6 [09:55:17]Write i2c OK [09:55:17]MH_I2C_Read... [09:55:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:18]Read from MH i2c: E2 [09:55:18]MH_I2C_Read... [09:55:18]Read from MH i2c: E2 03 00 [09:55:18]MH_I2C_Read... [09:55:18]Read from MH i2c: E2 03 00 DF 18 00 90 00 6B [09:55:18]RAPDU: 90 00 [09:55:18]wFMCommunicate OK [09:55:18]wFMCommunicate request_size=10 [09:55:18]MH_SAM_APDU [09:55:18]CAPDU: 80 0D 02 02 05 5D 74 76 56 BA [09:55:18]Write to MH i2c: E2 0D 00 E0 18 80 0D 02 02 05 00 5D 74 76 56 BA 00 00 D3 [09:55:18]Write i2c OK [09:55:18]MH_I2C_Read... [09:55:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:18]Read from MH i2c: E2 [09:55:18]MH_I2C_Read... [09:55:18]Read from MH i2c: E2 03 00 [09:55:18]MH_I2C_Read... [09:55:18]Read from MH i2c: E2 03 00 E0 18 00 90 00 6C [09:55:18]RAPDU: 90 00 [09:55:18]wFMCommunicate OK [09:55:18]wFMCommunicate request_size=4 [09:55:18]MH_SAM_APDU [09:55:18]CAPDU: 80 0D 03 02 [09:55:18]Write to MH i2c: E2 08 00 E1 18 80 0D 03 02 00 00 00 00 74 [09:55:18]Write i2c OK [09:55:18]MH_I2C_Read... [09:55:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:18]Read from MH i2c: E2 [09:55:18]MH_I2C_Read... [09:55:18]Read from MH i2c: E2 0B 00 [09:55:18]MH_I2C_Read... [09:55:18]Read from MH i2c: E2 0B 00 E1 18 00 F8 10 F8 BC 14 25 BA 01 90 00 25 [09:55:18]RAPDU: F8 10 F8 BC 14 25 BA 01 90 00 [09:55:18]wFMCommunicate OK [09:55:18]SAM_PROTO_SignData done [09:55:18]FM_MakeSignedData done [09:55:18]CreateOFDProtocolMessage [09:55:18]wFMCommunicate request_size=4 [09:55:18]MH_SAM_APDU [09:55:18]CAPDU: 80 11 00 00 [09:55:18]Write to MH i2c: E2 08 00 E2 18 80 11 00 00 00 00 00 00 74 [09:55:18]Write i2c OK [09:55:18]MH_I2C_Read... [09:55:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:18]Read from MH i2c: E2 [09:55:18]MH_I2C_Read... [09:55:18]Read from MH i2c: E2 17 00 [09:55:18]MH_I2C_Read... [09:55:18]Read from MH i2c: E2 17 00 E2 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CB [09:55:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:55:18]wFMCommunicate OK [09:55:18]CreateOFDProtocolMessage done [09:55:18]OFDSenderStorePacket 228112 [09:55:18]StoreOFDPacket docnum=228112 [09:55:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 C2 2C 07 01 DC 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 87 76 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 10 7B 03 00 35 04 06 00 82 5D 74 76 56 BA F8 10 F8 BC 14 25 BA 01 [09:55:18]CheckFolder [09:55:18]dirname=/storage/ofd_packets [09:55:18]CheckFolder done [09:55:18]ProducePacketName [09:55:18]name=ofd_packets/00228112 [09:55:18]NVStorageSaveData ofd_packets/00228112 [09:55:18]File name is /storage/ofd_packets/00228112 [09:55:18]Write 301 bytes [09:55:18]NVStorageSaveData done [09:55:18]OFDSenderStorePacket done [09:55:18]KKMCreateOFDPacket done [09:55:18]NVStorageSaveData kkm_last_timestamp [09:55:18]File name is /storage/kkm_last_timestamp [09:55:18]Write 4 bytes [09:55:18]NVStorageSaveData done [09:55:18]ExternCall_PrintAddStr [09:55:18]wPrintStart [09:55:18]Write to MH i2c: 01 00 00 E3 18 FB [09:55:18]OFD Sender: Processing packet 228112 [packets to send 38, broken 37] [09:55:18]ProducePacketName [09:55:18]name=ofd_packets/00228112 [09:55:18]OFD Sender: To server: pG, [09:55:18]CommunicateWithHost lk.salyk.kg:30040 [09:55:18]ConnectInit lk.salyk.kg [09:55:18]Write i2c OK [09:55:18]MH_I2C_Read... [09:55:18]Read from MH i2c: 01 [09:55:18]MH_I2C_Read... [09:55:18]Read from MH i2c: 01 07 00 [09:55:18]MH_I2C_Read... [09:55:18]Read from MH i2c: 01 07 00 E3 18 00 00 00 00 00 FF 0F 10 [09:55:18]RasterBufferAndPrint [09:55:18]line Счет N : (1)1964472 [09:55:18]line ИНН: 02508201610067 [09:55:18]line Контрольно-Кассовый Чек [09:55:18]line ПРОДАЖА [09:55:18]line ТРК (МРК, ГНК) : 33 [09:55:18]line Товар: 2710124130 [09:55:18]line Аи-92-К-5 [09:55:18]line 7.480 * 66.90 [09:55:18]line = 500.41 [09:55:18]line НДС 12% НСП 1% [09:55:18]line > о реализуемом товаре [09:55:18]line ОКРУГЛЕНИЕ: -0.41 [09:55:18]line ИТОГО: 500.00 [09:55:18]line Внесено: 500.00 [09:55:18]line СДАЧА: 0.00 [09:55:18]line НСП 1% : 4.43 [09:55:18]line НДС 12% : 53.14 [09:55:18]line Наличными: 500.00 [09:55:18]line Безнал.: 0.00 [09:55:18]line Место: АЗС № 133 "Партнер Нефть" [09:55:18]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:55:18]line СНО: Общий режим [09:55:18]line Чек 76 22.10.2024 09:55 [09:55:18]line Смена: 535 ФФД: 1.0 [09:55:18]line ЗНМ: 0300000091 [09:55:18]line РНМ: 0000000000091685 [09:55:18]line Версия ККМ: 001 [09:55:18]line ФМ: 0000000000871839 [09:55:18]line ФД: 228112 [09:55:18]line ФПД: 143337897481914 [09:55:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095519&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228112&fm=143337897481914&tin=02508201610067®Number=0000000000091685&sum=50000 [09:55:18]written 0, free lines is 4095 [09:55:18]Connected sock=10 [09:55:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 C2 2C 07 01 DC 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 87 76 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 10 7B 03 00 35 04 06 00 82 5D 74 76 56 BA F8 10 F8 BC 14 25 BA 01 [09:55:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 BC EC 47 00 0E 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 10 7B 03 00 F4 03 04 00 80 21 17 67 B6 04 01 00 00 FA 6B 54 45 D6 FF 46 C3 [09:55:18]CommunicateWithHost err = 0 [09:55:18]CheckOFDResponse [09:55:18]1017 (14) - 77093643461234 [09:55:18]1041 (16) - 0000000000871839 [09:55:18]1040 (4) - 228112 [09:55:18]1012 (4) - 22.10.2024 03:52 [09:55:18]1206 (1) - 0 [09:55:18]OFD Sender: Remove packet 228112 [09:55:18]ProducePacketName [09:55:18]name=ofd_packets/00228112 [09:55:18]NVStorageDeleteData [09:55:19]Write to MH i2c: 01 00 00 0D 19 26 [09:55:19]Write i2c OK [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: 01 [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: 01 07 00 [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: 01 07 00 0D 19 00 00 00 00 00 BD 0C F6 [09:55:19]RasterBufferAndPrint [09:55:19]line [09:55:19]line [09:55:19]line [09:55:19]line [09:55:19]line [09:55:19]written 0, free lines is 3273 [09:55:19]MH_Cut [09:55:19]Write to MH i2c: D1 01 00 14 19 01 FF [09:55:19]Write i2c OK [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: D1 [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: D1 01 00 [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: D1 01 00 14 19 00 FE [09:55:19]Write to MH i2c: 01 00 00 15 19 2E [09:55:19]Write i2c OK [09:55:19]MH_I2C_Read... [09:55:19]OFD Sender: No OFD packet to send [09:55:19]*** Cut start [09:55:19]*** Partial cut [09:55:19]*** CUTSNS_PIN = 1 [09:55:20]*** CUTSNS_PIN = 0 [09:55:20]*** Brake cut motor [09:55:20]Read from MH i2c: 01 [09:55:20]MH_I2C_Read... [09:55:20]*** Stop cut motor [09:55:20]*** Cut end [09:55:20]Read from MH i2c: 01 07 00 [09:55:20]MH_I2C_Read... [09:55:20]Read from MH i2c: 01 07 00 15 19 00 00 00 00 00 FF 0F 43 [09:55:20]process_action close_receipt done [09:55:20]requested_data is exist [09:55:20]produce_requested_data [09:55:20]requested_item fm.sn is exist - process it [09:55:20]wFMCommunicate request_size=4 [09:55:20]MH_SAM_APDU [09:55:20]CAPDU: 80 11 00 00 [09:55:20]Write to MH i2c: E2 08 00 16 19 80 11 00 00 00 00 00 00 A9 [09:55:20]Write i2c OK [09:55:20]MH_I2C_Read... [09:55:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:20]Read from MH i2c: E2 [09:55:20]MH_I2C_Read... [09:55:20]Read from MH i2c: E2 17 00 [09:55:20]MH_I2C_Read... [09:55:20]Read from MH i2c: E2 17 00 16 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 00 [09:55:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:55:20]wFMCommunicate OK [09:55:20]requested_item fd.num is exist - process it [09:55:20]SAM_PROTO_GetFieldsCounters [09:55:20]wFMCommunicate request_size=4 [09:55:20]MH_SAM_APDU [09:55:20]CAPDU: 80 13 00 00 [09:55:20]Write to MH i2c: E2 08 00 17 19 80 13 00 00 00 00 00 00 AC [09:55:20]Write i2c OK [09:55:20]MH_I2C_Read... [09:55:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:20]Read from MH i2c: E2 [09:55:20]MH_I2C_Read... [09:55:20]Read from MH i2c: E2 62 00 [09:55:20]MH_I2C_Read... [09:55:20]Read from MH i2c: E2 62 00 17 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 10 7B 03 00 0E 04 04 00 17 02 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 60 [09:55:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 10 7B 03 00 0E 04 04 00 17 02 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:55:20]wFMCommunicate OK [09:55:20]SAM_PROTO_GetFieldsCounters done [09:55:20]requested_item shift.num is exist - process it [09:55:20]requested_item shift.opened is exist - process it [09:55:20]req_shift_opened [09:55:20]FM_GetShiftState [09:55:20]SAM_PROTO_GetShiftState [09:55:20]wFMCommunicate request_size=4 [09:55:20]MH_SAM_APDU [09:55:20]CAPDU: 80 13 01 00 [09:55:20]Write to MH i2c: E2 08 00 18 19 80 13 01 00 00 00 00 00 AE [09:55:20]Write i2c OK [09:55:20]MH_I2C_Read... [09:55:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:20]Read from MH i2c: E2 [09:55:20]MH_I2C_Read... [09:55:20]Read from MH i2c: E2 0E 00 [09:55:20]MH_I2C_Read... [09:55:20]Read from MH i2c: E2 0E 00 18 19 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 75 [09:55:20]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:55:20]wFMCommunicate OK [09:55:20]SAM_PROTO_GetShiftState done [09:55:20]FM_GetShiftState done [09:55:20]req_shift_opened done [09:55:20]requested_item shift.open_date is exist - process it [09:55:20]req_shift_open_date [09:55:20]req_shift_open_date done [09:55:20]produce_requested_data done [09:55:20]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228112,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [09:55:20]process_action_free close_receipt [09:55:20]json_value_free [09:55:20]json_value_free done [09:55:20]process_json_proto returns [09:55:20]Send response to host [09:55:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228112,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [09:55:20]free response buf [09:55:20]execute_script done [09:55:20]execute_script returns [09:55:20]free content buf [09:55:20]Sock 9.Close socket [09:55:20]Sock 9.Thread stoped [09:55:24]OFD Sender: No OFD packet to send [09:55:29]OFD Sender: No OFD packet to send [09:55:30]accept exits with 7 [09:55:30]New connection [09:55:30]New thread 3066994020 created [09:55:30]Thread 3067137380 joined [09:55:30]Waiting for new connection... [09:55:30] Sock 7.Parse request [09:55:30]Sock 7.Check first char [09:55:30]Sock 7.First char is OK [09:55:30]request: POST /json_proto HTTP/1.0 [09:55:30]Method: POST [09:55:30]URL: /json_proto [09:55:30]Method is POST - this is cgi request [09:55:30]url: /json_proto [09:55:30]query_string will be loaded in cgi processing [09:55:30]execute_cgi json_proto POST (null) [09:55:30]execute_cgi path=json_proto method=POST [09:55:30]POST find Content-Length [09:55:30]Host: 172.17.44.195:8080 [09:55:30]Content-Length: 678 [09:55:30]Content-Type: application/json [09:55:30] [09:55:30]POST finish read [09:55:30]Found Content-Length = 678 [09:55:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [09:55:30]execute_script... [09:55:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [09:55:30]POST & json_proto [09:55:30]process_json_proto [09:55:30]json parsed OK: [09:55:30]protocol is kg_v1.0 [09:55:30]action value=close_receipt [09:55:30]process_action close_receipt [09:55:30]cmd_close_receipt [09:55:30]MH_GetDate [09:55:30]Write to MH i2c: F0 00 00 19 19 21 [09:55:30]Write i2c OK [09:55:30]MH_I2C_Read... [09:55:30]Read from MH i2c: F0 [09:55:30]MH_I2C_Read... [09:55:30]Read from MH i2c: F0 09 00 [09:55:30]MH_I2C_Read... [09:55:30]Read from MH i2c: F0 09 00 19 19 00 95 76 17 67 82 C9 CF 66 33 [09:55:30]GetLastDocTimeStamp 1729590919 [09:55:30]current date 1729590933 [09:55:30]FM_GetShiftState [09:55:30]SAM_PROTO_GetShiftState [09:55:30]wFMCommunicate request_size=4 [09:55:30]MH_SAM_APDU [09:55:30]CAPDU: 80 13 01 00 [09:55:30]Write to MH i2c: E2 08 00 1A 19 80 13 01 00 00 00 00 00 B0 [09:55:30]Write i2c OK [09:55:30]MH_I2C_Read... [09:55:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:30]Read from MH i2c: E2 [09:55:30]MH_I2C_Read... [09:55:30]Read from MH i2c: E2 0E 00 [09:55:30]MH_I2C_Read... [09:55:30]Read from MH i2c: E2 0E 00 1A 19 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 77 [09:55:30]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:55:30]wFMCommunicate OK [09:55:30]SAM_PROTO_GetShiftState done [09:55:30]FM_GetShiftState done [09:55:30]opened in 1729555538 [09:55:30]opened+sec_in_day 1729641938 [09:55:30]quantity*price = 20003 [09:55:30]sum+1 = 20004 [09:55:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 77 22.10.2024 09:55 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228113 ФПД: 247481286250579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095533&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228113&fm=247481286250579&tin=02508201610067®Number=0000000000091685&sum=20000 [09:55:31]StoreToDocumentArchive [09:55:31]shift 535 fd 228113 [09:55:31]save to /storage/0535/doc_00228113 [09:55:31]save last doc name /storage/0535/doc_00228113 to /storage/kkm_last_doc_name [09:55:31]save OK [09:55:31]Clear old archive folders... [09:55:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:55:31]tlvbuf is 008608A0 [09:55:31]SAM_PROTO_ClearQueue [09:55:31]wFMCommunicate request_size=4 [09:55:31]MH_SAM_APDU [09:55:31]CAPDU: 80 09 00 00 [09:55:31]Write to MH i2c: E2 08 00 27 19 80 09 00 00 00 00 00 00 B2 [09:55:31]Write i2c OK [09:55:31]MH_I2C_Read... [09:55:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:31]Read from MH i2c: E2 [09:55:31]MH_I2C_Read... [09:55:31]Read from MH i2c: E2 03 00 [09:55:31]MH_I2C_Read... [09:55:31]Read from MH i2c: E2 03 00 27 19 00 90 00 B4 [09:55:31]RAPDU: 90 00 [09:55:31]wFMCommunicate OK [09:55:31]SAM_PROTO_ClearQueue done [09:55:31]KKMCreateOFDPacket [09:55:31]OFDProtocolAddRootSTLVToBuf [09:55:31]FM_MakeSignedData [09:55:31]FM_MakeSignedData [09:55:31]SAM_PROTO_SignData [09:55:31]wFMCommunicate request_size=4 [09:55:31]MH_SAM_APDU [09:55:31]CAPDU: 80 0D 01 02 [09:55:31]Write to MH i2c: E2 08 00 28 19 80 0D 01 02 00 00 00 00 BA [09:55:31]Write i2c OK [09:55:31]MH_I2C_Read... [09:55:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:31]Read from MH i2c: E2 [09:55:31]MH_I2C_Read... [09:55:31]Read from MH i2c: E2 03 00 [09:55:31]MH_I2C_Read... [09:55:31]Read from MH i2c: E2 03 00 28 19 00 90 00 B5 [09:55:31]RAPDU: 90 00 [09:55:31]wFMCommunicate OK [09:55:31]wFMCommunicate request_size=255 [09:55:31]MH_SAM_APDU [09:55: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 95 76 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 11 7B 03 00 35 04 06 00 E1 [09:55:31]Write to MH i2c: E2 02 01 29 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 95 76 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 11 7B 03 00 35 04 06 00 E1 00 00 72 [09:55:31]Write i2c OK [09:55:31]MH_I2C_Read... [09:55:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:31]Read from MH i2c: E2 [09:55:31]MH_I2C_Read... [09:55:31]Read from MH i2c: E2 03 00 [09:55:31]MH_I2C_Read... [09:55:31]Read from MH i2c: E2 03 00 29 19 00 90 00 B6 [09:55:31]RAPDU: 90 00 [09:55:31]wFMCommunicate OK [09:55:31]wFMCommunicate request_size=10 [09:55:31]MH_SAM_APDU [09:55:31]CAPDU: 80 0D 02 02 05 15 3A 27 D0 53 [09:55:31]Write to MH i2c: E2 0D 00 2A 19 80 0D 02 02 05 00 15 3A 27 D0 53 00 00 60 [09:55:31]Write i2c OK [09:55:31]MH_I2C_Read... [09:55:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:32]Read from MH i2c: E2 [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: E2 03 00 [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: E2 03 00 2A 19 00 90 00 B7 [09:55:32]RAPDU: 90 00 [09:55:32]wFMCommunicate OK [09:55:32]wFMCommunicate request_size=4 [09:55:32]MH_SAM_APDU [09:55:32]CAPDU: 80 0D 03 02 [09:55:32]Write to MH i2c: E2 08 00 2B 19 80 0D 03 02 00 00 00 00 BF [09:55:32]Write i2c OK [09:55:32]MH_I2C_Read... [09:55:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:32]Read from MH i2c: E2 [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: E2 0B 00 [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: E2 0B 00 2B 19 00 26 E6 E2 D7 DE 04 95 89 90 00 85 [09:55:32]RAPDU: 26 E6 E2 D7 DE 04 95 89 90 00 [09:55:32]wFMCommunicate OK [09:55:32]SAM_PROTO_SignData done [09:55:32]FM_MakeSignedData done [09:55:32]CreateOFDProtocolMessage [09:55:32]wFMCommunicate request_size=4 [09:55:32]MH_SAM_APDU [09:55:32]CAPDU: 80 11 00 00 [09:55:32]Write to MH i2c: E2 08 00 2C 19 80 11 00 00 00 00 00 00 BF [09:55:32]Write i2c OK [09:55:32]MH_I2C_Read... [09:55:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:32]Read from MH i2c: E2 [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: E2 17 00 [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: E2 17 00 2C 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 16 [09:55:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:55:32]wFMCommunicate OK [09:55:32]CreateOFDProtocolMessage done [09:55:32]OFDSenderStorePacket 228113 [09:55:32]StoreOFDPacket docnum=228113 [09:55:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 04 A4 07 01 D6 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 95 76 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 11 7B 03 00 35 04 06 00 E1 15 3A 27 D0 53 26 E6 E2 D7 DE 04 95 89 [09:55:32]CheckFolder [09:55:32]dirname=/storage/ofd_packets [09:55:32]CheckFolder done [09:55:32]ProducePacketName [09:55:32]name=ofd_packets/00228113 [09:55:32]NVStorageSaveData ofd_packets/00228113 [09:55:32]File name is /storage/ofd_packets/00228113 [09:55:32]Write 301 bytes [09:55:32]NVStorageSaveData done [09:55:32]OFDSenderStorePacket done [09:55:32]KKMCreateOFDPacket done [09:55:32]NVStorageSaveData kkm_last_timestamp [09:55:32]File name is /storage/kkm_last_timestamp [09:55:32]Write 4 bytes [09:55:32]NVStorageSaveData done [09:55:32]ExternCall_PrintAddStr [09:55:32]wPrintStart [09:55:32]Write to MH i2c: 01 00 00 2D 19 46 [09:55:32]Write i2c OK [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: 01 [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: 01 07 00 [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: 01 07 00 2D 19 00 00 00 00 00 FF 0F 5B [09:55:32]RasterBufferAndPrint [09:55:32]line Счет N : (1)1964471 [09:55:32]line ИНН: 02508201610067 [09:55:32]line Контрольно-Кассовый Чек [09:55:32]line ПРОДАЖА [09:55:32]line ТРК (МРК, ГНК) : 43 [09:55:32]line Товар: 2710124130 [09:55:32]line Аи-92-К-5 [09:55:32]line 2.990 * 66.90 [09:55:32]line = 200.03 [09:55:32]line НДС 12% НСП 1% [09:55:32]line > о реализуемом товаре [09:55:32]line ОКРУГЛЕНИЕ: -0.03 [09:55:32]line ИТОГО: 200.00 [09:55:32]line Внесено: 200.00 [09:55:32]line СДАЧА: 0.00 [09:55:32]line НСП 1% : 1.77 [09:55:32]line НДС 12% : 21.24 [09:55:32]line Наличными: 200.00 [09:55:32]line Безнал.: 0.00 [09:55:32]line Место: АЗС № 133 "Партнер Нефть" [09:55:32]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:55:32]line СНО: Общий режим [09:55:32]line Чек 77 22.10.2024 09:55 [09:55:32]line Смена: 535 ФФД: 1.0 [09:55:32]line ЗНМ: 0300000091 [09:55:32]line РНМ: 0000000000091685 [09:55:32]line Версия ККМ: 001 [09:55:32]line ФМ: 0000000000871839 [09:55:32]line ФД: 228113 [09:55:32]line ФПД: 247481286250579 [09:55:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095533&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228113&fm=247481286250579&tin=02508201610067®Number=0000000000091685&sum=20000 [09:55:32]written 0, free lines is 4095 [09:55:32]OFD Sender: Processing packet 228113 [packets to send 38, broken 37] [09:55:32]ProducePacketName [09:55:32]name=ofd_packets/00228113 [09:55:32]OFD Sender: To server: pG, [09:55:32]CommunicateWithHost lk.salyk.kg:30040 [09:55:32]ConnectInit lk.salyk.kg [09:55:32]Connected sock=10 [09:55:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 04 A4 07 01 D6 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 95 76 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 11 7B 03 00 35 04 06 00 E1 15 3A 27 D0 53 26 E6 E2 D7 DE 04 95 89 [09:55:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 2D 96 47 00 D9 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 11 7B 03 00 F4 03 04 00 8E 21 17 67 B6 04 01 00 00 D4 AB BF C1 3D 6C CF 2E [09:55:32]CommunicateWithHost err = 0 [09:55:32]CheckOFDResponse [09:55:32]1017 (14) - 77093643461234 [09:55:32]1041 (16) - 0000000000871839 [09:55:32]1040 (4) - 228113 [09:55:32]1012 (4) - 22.10.2024 03:52 [09:55:32]1206 (1) - 0 [09:55:32]OFD Sender: Remove packet 228113 [09:55:32]ProducePacketName [09:55:32]name=ofd_packets/00228113 [09:55:32]NVStorageDeleteData [09:55:32]Write to MH i2c: 01 00 00 57 19 70 [09:55:32]Write i2c OK [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: 01 [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: 01 07 00 [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: 01 07 00 57 19 00 00 00 00 00 C8 0C 4B [09:55:32]RasterBufferAndPrint [09:55:32]line [09:55:32]line [09:55:32]line [09:55:32]line [09:55:32]line [09:55:32]written 0, free lines is 3284 [09:55:32]MH_Cut [09:55:32]Write to MH i2c: D1 01 00 5E 19 01 49 [09:55:32]Write i2c OK [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: D1 [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: D1 01 00 [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: D1 01 00 5E 19 00 48 [09:55:32]Write to MH i2c: 01 00 00 5F 19 78 [09:55:32]Write i2c OK [09:55:32]MH_I2C_Read... [09:55:33]OFD Sender: No OFD packet to send [09:55:33]*** Cut start [09:55:33]*** Partial cut [09:55:33]*** CUTSNS_PIN = 1 [09:55:33]*** CUTSNS_PIN = 0 [09:55:33]*** Brake cut motor [09:55:34]Read from MH i2c: 01 [09:55:34]MH_I2C_Read... [09:55:34]*** Stop cut motor [09:55:34]*** Cut end [09:55:34]Read from MH i2c: 01 07 00 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: 01 07 00 5F 19 00 00 00 00 00 FF 0F 8D [09:55:34]process_action close_receipt done [09:55:34]requested_data is exist [09:55:34]produce_requested_data [09:55:34]requested_item fm.sn is exist - process it [09:55:34]wFMCommunicate request_size=4 [09:55:34]MH_SAM_APDU [09:55:34]CAPDU: 80 11 00 00 [09:55:34]Write to MH i2c: E2 08 00 60 19 80 11 00 00 00 00 00 00 F3 [09:55:34]Write i2c OK [09:55:34]MH_I2C_Read... [09:55:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:34]Read from MH i2c: E2 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: E2 17 00 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: E2 17 00 60 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4A [09:55:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:55:34]wFMCommunicate OK [09:55:34]requested_item fd.num is exist - process it [09:55:34]SAM_PROTO_GetFieldsCounters [09:55:34]wFMCommunicate request_size=4 [09:55:34]MH_SAM_APDU [09:55:34]CAPDU: 80 13 00 00 [09:55:34]Write to MH i2c: E2 08 00 61 19 80 13 00 00 00 00 00 00 F6 [09:55:34]Write i2c OK [09:55:34]MH_I2C_Read... [09:55:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:34]Read from MH i2c: E2 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: E2 62 00 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: E2 62 00 61 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 11 7B 03 00 0E 04 04 00 17 02 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 AE [09:55:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 11 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:55:34]wFMCommunicate OK [09:55:34]SAM_PROTO_GetFieldsCounters done [09:55:34]requested_item shift.num is exist - process it [09:55:34]requested_item shift.opened is exist - process it [09:55:34]req_shift_opened [09:55:34]FM_GetShiftState [09:55:34]SAM_PROTO_GetShiftState [09:55:34]wFMCommunicate request_size=4 [09:55:34]MH_SAM_APDU [09:55:34]CAPDU: 80 13 01 00 [09:55:34]Write to MH i2c: E2 08 00 62 19 80 13 01 00 00 00 00 00 F8 [09:55:34]Write i2c OK [09:55:34]MH_I2C_Read... [09:55:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:34]Read from MH i2c: E2 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: E2 0E 00 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: E2 0E 00 62 19 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 BF [09:55:34]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:55:34]wFMCommunicate OK [09:55:34]SAM_PROTO_GetShiftState done [09:55:34]FM_GetShiftState done [09:55:34]req_shift_opened done [09:55:34]requested_item shift.open_date is exist - process it [09:55:34]req_shift_open_date [09:55:34]req_shift_open_date done [09:55:34]produce_requested_data done [09:55:34]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228113,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [09:55:34]process_action_free close_receipt [09:55:34]json_value_free [09:55:34]json_value_free done [09:55:34]process_json_proto returns [09:55:34]Send response to host [09:55:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228113,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [09:55:34]free response buf [09:55:34]execute_script done [09:55:34]execute_script returns [09:55:34]free content buf [09:55:34]Sock 7.Close socket [09:55:34]Sock 7.Thread stoped [09:55:38]OFD Sender: No OFD packet to send [09:55:43]OFD Sender: No OFD packet to send [09:55:48]OFD Sender: No OFD packet to send [09:55:53]OFD Sender: No OFD packet to send [09:55:58]OFD Sender: No OFD packet to send [09:56:03]OFD Sender: No OFD packet to send [09:56:03]accept exits with 9 [09:56:03]New connection [09:56:03]New thread 3067137380 created [09:56:03]Thread 3066994020 joined [09:56:03]Waiting for new connection... [09:56:03] Sock 9.Parse request [09:56:03]Sock 9.Check first char [09:56:03]Sock 9.First char is OK [09:56:03]request: POST /json_proto HTTP/1.0 [09:56:03]Method: POST [09:56:03]URL: /json_proto [09:56:03]Method is POST - this is cgi request [09:56:03]url: /json_proto [09:56:03]query_string will be loaded in cgi processing [09:56:03]execute_cgi json_proto POST (null) [09:56:03]execute_cgi path=json_proto method=POST [09:56:03]POST find Content-Length [09:56:03]Host: 172.17.44.195:8080 [09:56:03]Content-Length: 677 [09:56:03]Content-Type: application/json [09:56:03] [09:56:03]POST finish read [09:56:03]Found Content-Length = 677 [09:56:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:56:03]execute_script... [09:56: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)1964469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:56:03]POST & json_proto [09:56:03]process_json_proto [09:56:03]json parsed OK: [09:56:03]protocol is kg_v1.0 [09:56:03]action value=close_receipt [09:56:03]process_action close_receipt [09:56:03]cmd_close_receipt [09:56:03]MH_GetDate [09:56:03]Write to MH i2c: F0 00 00 63 19 6B [09:56:03]Write i2c OK [09:56:03]MH_I2C_Read... [09:56:03]Read from MH i2c: F0 [09:56:03]MH_I2C_Read... [09:56:03]Read from MH i2c: F0 09 00 [09:56:03]MH_I2C_Read... [09:56:03]Read from MH i2c: F0 09 00 63 19 00 B6 76 17 67 82 C9 CF 66 9E [09:56:03]GetLastDocTimeStamp 1729590933 [09:56:03]current date 1729590966 [09:56:03]FM_GetShiftState [09:56:03]SAM_PROTO_GetShiftState [09:56:03]wFMCommunicate request_size=4 [09:56:03]MH_SAM_APDU [09:56:03]CAPDU: 80 13 01 00 [09:56:03]Write to MH i2c: E2 08 00 64 19 80 13 01 00 00 00 00 00 FA [09:56:03]Write i2c OK [09:56:03]MH_I2C_Read... [09:56:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:03]Read from MH i2c: E2 [09:56:03]MH_I2C_Read... [09:56:03]Read from MH i2c: E2 0E 00 [09:56:03]MH_I2C_Read... [09:56:03]Read from MH i2c: E2 0E 00 64 19 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 C1 [09:56:03]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:56:03]wFMCommunicate OK [09:56:03]SAM_PROTO_GetShiftState done [09:56:03]FM_GetShiftState done [09:56:03]opened in 1729555538 [09:56:03]opened+sec_in_day 1729641938 [09:56:03]quantity*price = 100011 [09:56:03]sum+1 = 100013 [09:56:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 78 22.10.2024 09:56 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228114 ФПД: 277211245121479 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095606&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228114&fm=277211245121479&tin=02508201610067®Number=0000000000091685&sum=100000 [09:56:04]StoreToDocumentArchive [09:56:04]shift 535 fd 228114 [09:56:04]save to /storage/0535/doc_00228114 [09:56:04]save last doc name /storage/0535/doc_00228114 to /storage/kkm_last_doc_name [09:56:04]save OK [09:56:04]Clear old archive folders... [09:56:04]ProcessDocumentItem done err = 0, tmpTLVsize=245 [09:56:04]tlvbuf is B6F826B0 [09:56:04]SAM_PROTO_ClearQueue [09:56:04]wFMCommunicate request_size=4 [09:56:04]MH_SAM_APDU [09:56:04]CAPDU: 80 09 00 00 [09:56:04]Write to MH i2c: E2 08 00 71 19 80 09 00 00 00 00 00 00 FC [09:56:04]Write i2c OK [09:56:04]MH_I2C_Read... [09:56:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:56:04]Read from MH i2c: E2 [09:56:04]MH_I2C_Read... [09:56:04]Read from MH i2c: E2 03 00 [09:56:04]MH_I2C_Read... [09:56:04]Read from MH i2c: E2 03 00 71 19 00 90 00 FE [09:56:04]RAPDU: 90 00 [09:56:04]wFMCommunicate OK [09:56:04]SAM_PROTO_ClearQueue done [09:56:04]KKMCreateOFDPacket [09:56:04]OFDProtocolAddRootSTLVToBuf [09:56:04]FM_MakeSignedData [09:56:04]FM_MakeSignedData [09:56:04]SAM_PROTO_SignData [09:56:04]wFMCommunicate request_size=4 [09:56:04]MH_SAM_APDU [09:56:04]CAPDU: 80 0D 01 02 [09:56:04]Write to MH i2c: E2 08 00 72 19 80 0D 01 02 00 00 00 00 04 [09:56:04]Write i2c OK [09:56:04]MH_I2C_Read... [09:56:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:56:04]Read from MH i2c: E2 [09:56:04]MH_I2C_Read... [09:56:04]Read from MH i2c: E2 03 00 [09:56:04]MH_I2C_Read... [09:56:04]Read from MH i2c: E2 03 00 72 19 00 90 00 FF [09:56:04]RAPDU: 90 00 [09:56:04]wFMCommunicate OK [09:56:04]wFMCommunicate request_size=254 [09:56:04]MH_SAM_APDU [09:56:04]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4E 00 00 00 F4 03 04 00 B6 76 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 12 7B 03 00 35 04 06 00 FC 1F 45 CB 0F C7 [09:56:04]Write to MH i2c: E2 01 01 73 19 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4E 00 00 00 F4 03 04 00 B6 76 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 12 7B 03 00 35 04 06 00 FC 1F 45 CB 0F C7 00 00 10 [09:56:04]Write i2c OK [09:56:04]MH_I2C_Read... [09:56:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:04]Read from MH i2c: E2 [09:56:04]MH_I2C_Read... [09:56:04]Read from MH i2c: E2 03 00 [09:56:04]MH_I2C_Read... [09:56:04]Read from MH i2c: E2 03 00 73 19 00 90 00 00 [09:56:04]RAPDU: 90 00 [09:56:04]wFMCommunicate OK [09:56:04]wFMCommunicate request_size=4 [09:56:04]MH_SAM_APDU [09:56:04]CAPDU: 80 0D 03 02 [09:56:04]Write to MH i2c: E2 08 00 74 19 80 0D 03 02 00 00 00 00 08 [09:56:04]Write i2c OK [09:56:04]MH_I2C_Read... [09:56:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:56:04]Read from MH i2c: E2 [09:56:04]MH_I2C_Read... [09:56:04]Read from MH i2c: E2 0B 00 [09:56:04]MH_I2C_Read... [09:56:04]Read from MH i2c: E2 0B 00 74 19 00 39 4C 86 CF 58 C5 A8 D9 90 00 81 [09:56:04]RAPDU: 39 4C 86 CF 58 C5 A8 D9 90 00 [09:56:04]wFMCommunicate OK [09:56:04]SAM_PROTO_SignData done [09:56:04]FM_MakeSignedData done [09:56:04]CreateOFDProtocolMessage [09:56:04]wFMCommunicate request_size=4 [09:56:04]MH_SAM_APDU [09:56:04]CAPDU: 80 11 00 00 [09:56:04]Write to MH i2c: E2 08 00 75 19 80 11 00 00 00 00 00 00 08 [09:56:04]Write i2c OK [09:56:04]MH_I2C_Read... [09:56:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:04]Read from MH i2c: E2 [09:56:04]MH_I2C_Read... [09:56:04]Read from MH i2c: E2 17 00 [09:56:04]MH_I2C_Read... [09:56:04]Read from MH i2c: E2 17 00 75 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5F [09:56:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:56:04]wFMCommunicate OK [09:56:04]CreateOFDProtocolMessage done [09:56:04]OFDSenderStorePacket 228114 [09:56:04]StoreOFDPacket docnum=228114 [09:56:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 46 43 01 01 37 1E 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4E 00 00 00 F4 03 04 00 B6 76 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 12 7B 03 00 35 04 06 00 FC 1F 45 CB 0F C7 39 4C 86 CF 58 C5 A8 D9 [09:56:04]CheckFolder [09:56:04]dirname=/storage/ofd_packets [09:56:04]CheckFolder done [09:56:04]ProducePacketName [09:56:04]name=ofd_packets/00228114 [09:56:04]NVStorageSaveData ofd_packets/00228114 [09:56:04]File name is /storage/ofd_packets/00228114 [09:56:04]Write 295 bytes [09:56:04]NVStorageSaveData done [09:56:04]OFDSenderStorePacket done [09:56:04]KKMCreateOFDPacket done [09:56:04]NVStorageSaveData kkm_last_timestamp [09:56:04]File name is /storage/kkm_last_timestamp [09:56:04]Write 4 bytes [09:56:04]NVStorageSaveData done [09:56:04]ExternCall_PrintAddStr [09:56:04]wPrintStart [09:56:04]Write to MH i2c: 01 00 00 76 19 8F [09:56:04]Write i2c OK [09:56:04]MH_I2C_Read... [09:56:04]Read from MH i2c: 01 [09:56:04]MH_I2C_Read... [09:56:04]Read from MH i2c: 01 07 00 [09:56:04]MH_I2C_Read... [09:56:04]Read from MH i2c: 01 07 00 76 19 00 00 00 00 00 FF 0F A4 [09:56:04]RasterBufferAndPrint [09:56:04]line Счет N : (1)1964469 [09:56:04]line ИНН: 02508201610067 [09:56:04]line Контрольно-Кассовый Чек [09:56:04]line ПРОДАЖА [09:56:04]line ТРК (МРК, ГНК) : 71 [09:56:04]line Товар: 2711129700 [09:56:04]line ГАЗ [09:56:04]line 25.710 * 38.90 [09:56:04]line = 1000.12 [09:56:04]line НДС 12% НСП 1% [09:56:04]line > о реализуемом товаре [09:56:04]line ОКРУГЛЕНИЕ: -0.12 [09:56:04]line ИТОГО: 1000.00 [09:56:04]line Внесено: 1000.00 [09:56:04]line СДАЧА: 0.00 [09:56:04]line НСП 1% : 8.85 [09:56:04]line НДС 12% : 106.21 [09:56:04]line Наличными: 1000.00 [09:56:04]line Безнал.: 0.00 [09:56:04]line Место: АЗС № 133 "Партнер Нефть" [09:56:04]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:56:04]line СНО: Общий режим [09:56:04]line Чек 78 22.10.2024 09:56 [09:56:04]line Смена: 535 ФФД: 1.0 [09:56:04]line ЗНМ: 0300000091 [09:56:04]line РНМ: 0000000000091685 [09:56:04]line Версия ККМ: 001 [09:56:04]line ФМ: 0000000000871839 [09:56:04]line ФД: 228114 [09:56:04]line ФПД: 277211245121479 [09:56:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095606&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228114&fm=277211245121479&tin=02508201610067®Number=0000000000091685&sum=100000 [09:56:05]OFD Sender: Processing packet 228114 [packets to send 38, broken 37] [09:56:05]ProducePacketName [09:56:05]name=ofd_packets/00228114 [09:56:05]OFD Sender: To server: pG, [09:56:05]CommunicateWithHost lk.salyk.kg:30040 [09:56:05]ConnectInit lk.salyk.kg [09:56:05]written 0, free lines is 4095 [09:56:05]Connected sock=10 [09:56:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 46 43 01 01 37 1E 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4E 00 00 00 F4 03 04 00 B6 76 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 12 7B 03 00 35 04 06 00 FC 1F 45 CB 0F C7 39 4C 86 CF 58 C5 A8 D9 [09:56:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 C7 F2 47 00 45 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 12 7B 03 00 F4 03 04 00 AF 21 17 67 B6 04 01 00 00 4F 4F 2D 50 84 E5 EB A9 [09:56:05]CommunicateWithHost err = 0 [09:56:05]CheckOFDResponse [09:56:05]1017 (14) - 77093643461234 [09:56:05]1041 (16) - 0000000000871839 [09:56:05]1040 (4) - 228114 [09:56:05]1012 (4) - 22.10.2024 03:53 [09:56:05]1206 (1) - 0 [09:56:05]OFD Sender: Remove packet 228114 [09:56:05]ProducePacketName [09:56:05]name=ofd_packets/00228114 [09:56:05]NVStorageDeleteData [09:56:05]Write to MH i2c: 01 00 00 A0 19 B9 [09:56:05]Write i2c OK [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: 01 [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: 01 07 00 [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: 01 07 00 A0 19 00 00 00 00 00 B3 0C 7F [09:56:05]RasterBufferAndPrint [09:56:05]line [09:56:05]line [09:56:05]line [09:56:05]line [09:56:05]line [09:56:05]written 0, free lines is 3257 [09:56:05]MH_Cut [09:56:05]Write to MH i2c: D1 01 00 A7 19 01 92 [09:56:05]Write i2c OK [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: D1 [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: D1 01 00 [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: D1 01 00 A7 19 00 91 [09:56:05]Write to MH i2c: 01 00 00 A8 19 C1 [09:56:05]Write i2c OK [09:56:05]MH_I2C_Read... [09:56:06]OFD Sender: No OFD packet to send [09:56:06]*** Cut start [09:56:06]*** Partial cut [09:56:06]*** CUTSNS_PIN = 1 [09:56:06]*** CUTSNS_PIN = 0 [09:56:06]*** Brake cut motor [09:56:07]Read from MH i2c: 01 [09:56:07]MH_I2C_Read... [09:56:07]*** Stop cut motor [09:56:07]*** Cut end [09:56:07]Read from MH i2c: 01 07 00 [09:56:07]MH_I2C_Read... [09:56:07]Read from MH i2c: 01 07 00 A8 19 00 00 00 00 00 FF 0F D6 [09:56:07]process_action close_receipt done [09:56:07]requested_data is exist [09:56:07]produce_requested_data [09:56:07]requested_item fm.sn is exist - process it [09:56:07]wFMCommunicate request_size=4 [09:56:07]MH_SAM_APDU [09:56:07]CAPDU: 80 11 00 00 [09:56:07]Write to MH i2c: E2 08 00 A9 19 80 11 00 00 00 00 00 00 3C [09:56:07]Write i2c OK [09:56:07]MH_I2C_Read... [09:56:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:07]Read from MH i2c: E2 [09:56:07]MH_I2C_Read... [09:56:07]Read from MH i2c: E2 17 00 [09:56:07]MH_I2C_Read... [09:56:07]Read from MH i2c: E2 17 00 A9 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 93 [09:56:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:56:07]wFMCommunicate OK [09:56:07]requested_item fd.num is exist - process it [09:56:07]SAM_PROTO_GetFieldsCounters [09:56:07]wFMCommunicate request_size=4 [09:56:07]MH_SAM_APDU [09:56:07]CAPDU: 80 13 00 00 [09:56:07]Write to MH i2c: E2 08 00 AA 19 80 13 00 00 00 00 00 00 3F [09:56:07]Write i2c OK [09:56:07]MH_I2C_Read... [09:56:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:07]Read from MH i2c: E2 [09:56:07]MH_I2C_Read... [09:56:07]Read from MH i2c: E2 62 00 [09:56:07]MH_I2C_Read... [09:56:07]Read from MH i2c: E2 62 00 AA 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 12 7B 03 00 0E 04 04 00 17 02 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 FB [09:56:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 12 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:56:07]wFMCommunicate OK [09:56:07]SAM_PROTO_GetFieldsCounters done [09:56:07]requested_item shift.num is exist - process it [09:56:07]requested_item shift.opened is exist - process it [09:56:07]req_shift_opened [09:56:07]FM_GetShiftState [09:56:07]SAM_PROTO_GetShiftState [09:56:07]wFMCommunicate request_size=4 [09:56:07]MH_SAM_APDU [09:56:07]CAPDU: 80 13 01 00 [09:56:07]Write to MH i2c: E2 08 00 AB 19 80 13 01 00 00 00 00 00 41 [09:56:07]Write i2c OK [09:56:07]MH_I2C_Read... [09:56:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:07]Read from MH i2c: E2 [09:56:07]MH_I2C_Read... [09:56:07]Read from MH i2c: E2 0E 00 [09:56:07]MH_I2C_Read... [09:56:07]Read from MH i2c: E2 0E 00 AB 19 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 08 [09:56:07]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:56:07]wFMCommunicate OK [09:56:07]SAM_PROTO_GetShiftState done [09:56:07]FM_GetShiftState done [09:56:07]req_shift_opened done [09:56:07]requested_item shift.open_date is exist - process it [09:56:07]req_shift_open_date [09:56:07]req_shift_open_date done [09:56:07]produce_requested_data done [09:56:07]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228114,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [09:56:07]process_action_free close_receipt [09:56:07]json_value_free [09:56:07]json_value_free done [09:56:07]process_json_proto returns [09:56:07]Send response to host [09:56:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228114,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [09:56:07]free response buf [09:56:07]execute_script done [09:56:07]execute_script returns [09:56:07]free content buf [09:56:07]Sock 9.Close socket [09:56:07]Sock 9.Thread stoped [09:56:11]OFD Sender: No OFD packet to send [09:56:16]OFD Sender: No OFD packet to send [09:56:21]OFD Sender: No OFD packet to send [09:56:26]OFD Sender: No OFD packet to send [09:56:31]OFD Sender: No OFD packet to send [09:56:36]OFD Sender: No OFD packet to send [09:56:41]OFD Sender: No OFD packet to send [09:56:46]OFD Sender: No OFD packet to send [09:56:51]OFD Sender: No OFD packet to send [09:56:56]OFD Sender: No OFD packet to send [09:57:01]OFD Sender: No OFD packet to send [09:57:06]OFD Sender: No OFD packet to send [09:57:11]OFD Sender: No OFD packet to send [09:57:14]accept exits with 7 [09:57:14]New connection [09:57:14]New thread 3066994020 created [09:57:14]Thread 3067137380 joined [09:57:14]Waiting for new connection... [09:57:14] Sock 7.Parse request [09:57:14]Sock 7.Check first char [09:57:14]Sock 7.First char is OK [09:57:14]request: POST /json_proto HTTP/1.0 [09:57:14]Method: POST [09:57:14]URL: /json_proto [09:57:14]Method is POST - this is cgi request [09:57:14]url: /json_proto [09:57:14]query_string will be loaded in cgi processing [09:57:14]execute_cgi json_proto POST (null) [09:57:14]execute_cgi path=json_proto method=POST [09:57:14]POST find Content-Length [09:57:14]Host: 172.17.44.195:8080 [09:57:14]Content-Length: 683 [09:57:14]Content-Type: application/json [09:57:14] [09:57:14]POST finish read [09:57:14]Found Content-Length = 683 [09:57:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:14]execute_script... [09:57: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)1964473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:14]POST & json_proto [09:57:14]process_json_proto [09:57:14]json parsed OK: [09:57:14]protocol is kg_v1.0 [09:57:14]action value=close_receipt [09:57:14]process_action close_receipt [09:57:14]cmd_close_receipt [09:57:14]MH_GetDate [09:57:14]Write to MH i2c: F0 00 00 AC 19 B4 [09:57:14]Write i2c OK [09:57:14]MH_I2C_Read... [09:57:14]Read from MH i2c: F0 [09:57:14]MH_I2C_Read... [09:57:14]Read from MH i2c: F0 09 00 [09:57:14]MH_I2C_Read... [09:57:14]Read from MH i2c: F0 09 00 AC 19 00 FD 76 17 67 82 C9 CF 66 2E [09:57:14]GetLastDocTimeStamp 1729590966 [09:57:14]current date 1729591037 [09:57:14]FM_GetShiftState [09:57:14]SAM_PROTO_GetShiftState [09:57:14]wFMCommunicate request_size=4 [09:57:14]MH_SAM_APDU [09:57:14]CAPDU: 80 13 01 00 [09:57:14]Write to MH i2c: E2 08 00 AD 19 80 13 01 00 00 00 00 00 43 [09:57:14]Write i2c OK [09:57:14]MH_I2C_Read... [09:57:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:14]Read from MH i2c: E2 [09:57:14]MH_I2C_Read... [09:57:14]Read from MH i2c: E2 0E 00 [09:57:14]MH_I2C_Read... [09:57:14]Read from MH i2c: E2 0E 00 AD 19 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 0A [09:57:14]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:57:14]wFMCommunicate OK [09:57:14]SAM_PROTO_GetShiftState done [09:57:14]FM_GetShiftState done [09:57:14]opened in 1729555538 [09:57:14]opened+sec_in_day 1729641938 [09:57:14]quantity*price = 100021 [09:57:14]sum+1 = 100023 [09:57:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 79 22.10.2024 09:57 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228115 ФПД: 204146544940585 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095718&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228115&fm=204146544940585&tin=02508201610067®Number=0000000000091685&sum=100000 [09:57:15]StoreToDocumentArchive [09:57:15]shift 535 fd 228115 [09:57:15]save to /storage/0535/doc_00228115 [09:57:15]save last doc name /storage/0535/doc_00228115 to /storage/kkm_last_doc_name [09:57:15]save OK [09:57:15]Clear old archive folders... [09:57:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:57:15]tlvbuf is 00A81930 [09:57:15]SAM_PROTO_ClearQueue [09:57:15]wFMCommunicate request_size=4 [09:57:15]MH_SAM_APDU [09:57:15]CAPDU: 80 09 00 00 [09:57:15]Write to MH i2c: E2 08 00 BA 19 80 09 00 00 00 00 00 00 45 [09:57:15]Write i2c OK [09:57:15]MH_I2C_Read... [09:57:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:15]Read from MH i2c: E2 [09:57:15]MH_I2C_Read... [09:57:15]Read from MH i2c: E2 03 00 [09:57:15]MH_I2C_Read... [09:57:15]Read from MH i2c: E2 03 00 BA 19 00 90 00 47 [09:57:15]RAPDU: 90 00 [09:57:15]wFMCommunicate OK [09:57:15]SAM_PROTO_ClearQueue done [09:57:15]KKMCreateOFDPacket [09:57:15]OFDProtocolAddRootSTLVToBuf [09:57:15]FM_MakeSignedData [09:57:15]FM_MakeSignedData [09:57:15]SAM_PROTO_SignData [09:57:15]wFMCommunicate request_size=4 [09:57:15]MH_SAM_APDU [09:57:15]CAPDU: 80 0D 01 02 [09:57:15]Write to MH i2c: E2 08 00 BB 19 80 0D 01 02 00 00 00 00 4D [09:57:15]Write i2c OK [09:57:15]MH_I2C_Read... [09:57:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:15]Read from MH i2c: E2 [09:57:15]MH_I2C_Read... [09:57:15]Read from MH i2c: E2 03 00 [09:57:15]MH_I2C_Read... [09:57:15]Read from MH i2c: E2 03 00 BB 19 00 90 00 48 [09:57:15]RAPDU: 90 00 [09:57:15]wFMCommunicate OK [09:57:15]wFMCommunicate request_size=255 [09:57:15]MH_SAM_APDU [09:57: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 FE 76 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 13 7B 03 00 35 04 06 00 B9 [09:57:15]Write to MH i2c: E2 02 01 BC 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 FE 76 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 13 7B 03 00 35 04 06 00 B9 00 00 A5 [09:57:15]Write i2c OK [09:57:15]MH_I2C_Read... [09:57:16]OFD Sender: No OFD packet to send [09:57:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:16]Read from MH i2c: E2 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 03 00 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 03 00 BC 19 00 90 00 49 [09:57:16]RAPDU: 90 00 [09:57:16]wFMCommunicate OK [09:57:16]wFMCommunicate request_size=10 [09:57:16]MH_SAM_APDU [09:57:16]CAPDU: 80 0D 02 02 05 AB 92 4B 16 29 [09:57:16]Write to MH i2c: E2 0D 00 BD 19 80 0D 02 02 05 00 AB 92 4B 16 29 00 00 21 [09:57:16]Write i2c OK [09:57:16]MH_I2C_Read... [09:57:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:16]Read from MH i2c: E2 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 03 00 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 03 00 BD 19 00 90 00 4A [09:57:16]RAPDU: 90 00 [09:57:16]wFMCommunicate OK [09:57:16]wFMCommunicate request_size=4 [09:57:16]MH_SAM_APDU [09:57:16]CAPDU: 80 0D 03 02 [09:57:16]Write to MH i2c: E2 08 00 BE 19 80 0D 03 02 00 00 00 00 52 [09:57:16]Write i2c OK [09:57:16]MH_I2C_Read... [09:57:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:16]Read from MH i2c: E2 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 0B 00 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 0B 00 BE 19 00 9D E9 DA BE 55 89 B4 7F 90 00 82 [09:57:16]RAPDU: 9D E9 DA BE 55 89 B4 7F 90 00 [09:57:16]wFMCommunicate OK [09:57:16]SAM_PROTO_SignData done [09:57:16]FM_MakeSignedData done [09:57:16]CreateOFDProtocolMessage [09:57:16]wFMCommunicate request_size=4 [09:57:16]MH_SAM_APDU [09:57:16]CAPDU: 80 11 00 00 [09:57:16]Write to MH i2c: E2 08 00 BF 19 80 11 00 00 00 00 00 00 52 [09:57:16]Write i2c OK [09:57:16]MH_I2C_Read... [09:57:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:16]Read from MH i2c: E2 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 17 00 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 17 00 BF 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A9 [09:57:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:57:16]wFMCommunicate OK [09:57:16]CreateOFDProtocolMessage done [09:57:16]OFDSenderStorePacket 228115 [09:57:16]StoreOFDPacket docnum=228115 [09:57:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 25 04 07 01 65 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 FE 76 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 13 7B 03 00 35 04 06 00 B9 AB 92 4B 16 29 9D E9 DA BE 55 89 B4 7F [09:57:16]CheckFolder [09:57:16]dirname=/storage/ofd_packets [09:57:16]CheckFolder done [09:57:16]ProducePacketName [09:57:16]name=ofd_packets/00228115 [09:57:16]NVStorageSaveData ofd_packets/00228115 [09:57:16]File name is /storage/ofd_packets/00228115 [09:57:16]Write 301 bytes [09:57:16]NVStorageSaveData done [09:57:16]OFDSenderStorePacket done [09:57:16]KKMCreateOFDPacket done [09:57:16]NVStorageSaveData kkm_last_timestamp [09:57:16]File name is /storage/kkm_last_timestamp [09:57:16]Write 4 bytes [09:57:16]NVStorageSaveData done [09:57:16]ExternCall_PrintAddStr [09:57:16]wPrintStart [09:57:16]Write to MH i2c: 01 00 00 C0 19 D9 [09:57:16]Write i2c OK [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: 01 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: 01 07 00 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: 01 07 00 C0 19 00 00 00 00 00 FF 0F EE [09:57:16]RasterBufferAndPrint [09:57:16]line Счет N : (1)1964473 [09:57:16]line ИНН: 02508201610067 [09:57:16]line Контрольно-Кассовый Чек [09:57:16]line ПРОДАЖА [09:57:16]line ТРК (МРК, ГНК) : 64 [09:57:16]line Товар: 2710124500 [09:57:16]line Аи-95-К-5 [09:57:16]line 13.480 * 74.20 [09:57:16]line = 1000.22 [09:57:16]line НДС 12% НСП 1% [09:57:16]line > о реализуемом товаре [09:57:16]line ОКРУГЛЕНИЕ: -0.22 [09:57:16]line ИТОГО: 1000.00 [09:57:16]line Внесено: 1000.00 [09:57:16]line СДАЧА: 0.00 [09:57:16]line НСП 1% : 8.85 [09:57:16]line НДС 12% : 106.22 [09:57:16]line Наличными: 1000.00 [09:57:16]line Безнал.: 0.00 [09:57:16]line Место: АЗС № 133 "Партнер Нефть" [09:57:16]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:57:16]line СНО: Общий режим [09:57:16]line Чек 79 22.10.2024 09:57 [09:57:16]line Смена: 535 ФФД: 1.0 [09:57:16]line ЗНМ: 0300000091 [09:57:16]line РНМ: 0000000000091685 [09:57:16]line Версия ККМ: 001 [09:57:16]line ФМ: 0000000000871839 [09:57:16]line ФД: 228115 [09:57:16]line ФПД: 204146544940585 [09:57:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095718&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228115&fm=204146544940585&tin=02508201610067®Number=0000000000091685&sum=100000 [09:57:16]OFD Sender: Processing packet 228115 [packets to send 38, broken 37] [09:57:16]ProducePacketName [09:57:16]name=ofd_packets/00228115 [09:57:16]OFD Sender: To server: pG, [09:57:16]CommunicateWithHost lk.salyk.kg:30040 [09:57:16]ConnectInit lk.salyk.kg [09:57:16]written 0, free lines is 4095 [09:57:16]Connected sock=10 [09:57:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 25 04 07 01 65 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 FE 76 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 13 7B 03 00 35 04 06 00 B9 AB 92 4B 16 29 9D E9 DA BE 55 89 B4 7F [09:57:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 83 A8 47 00 FC 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 13 7B 03 00 F4 03 04 00 F6 21 17 67 B6 04 01 00 00 AE 73 DD 28 50 C3 73 73 [09:57:16]CommunicateWithHost err = 0 [09:57:16]CheckOFDResponse [09:57:16]1017 (14) - 77093643461234 [09:57:16]1041 (16) - 0000000000871839 [09:57:16]1040 (4) - 228115 [09:57:16]1012 (4) - 22.10.2024 03:54 [09:57:16]1206 (1) - 0 [09:57:16]OFD Sender: Remove packet 228115 [09:57:16]ProducePacketName [09:57:16]name=ofd_packets/00228115 [09:57:16]NVStorageDeleteData [09:57:17]Write to MH i2c: 01 00 00 EA 19 03 [09:57:17]Write i2c OK [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: 01 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: 01 07 00 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: 01 07 00 EA 19 00 00 00 00 00 C0 0C D6 [09:57:17]RasterBufferAndPrint [09:57:17]line [09:57:17]line [09:57:17]line [09:57:17]line [09:57:17]line [09:57:17]written 0, free lines is 3269 [09:57:17]MH_Cut [09:57:17]Write to MH i2c: D1 01 00 F1 19 01 DC [09:57:17]Write i2c OK [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: D1 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: D1 01 00 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: D1 01 00 F1 19 00 DB [09:57:17]Write to MH i2c: 01 00 00 F2 19 0B [09:57:17]Write i2c OK [09:57:17]MH_I2C_Read... [09:57:17]OFD Sender: No OFD packet to send [09:57:17]*** Cut start [09:57:17]*** Partial cut [09:57:17]*** CUTSNS_PIN = 1 [09:57:18]*** CUTSNS_PIN = 0 [09:57:18]*** Brake cut motor [09:57:18]Read from MH i2c: 01 [09:57:18]MH_I2C_Read... [09:57:18]*** Stop cut motor [09:57:18]*** Cut end [09:57:18]Read from MH i2c: 01 07 00 [09:57:18]MH_I2C_Read... [09:57:18]Read from MH i2c: 01 07 00 F2 19 00 00 00 00 00 FF 0F 20 [09:57:18]process_action close_receipt done [09:57:18]requested_data is exist [09:57:18]produce_requested_data [09:57:18]requested_item fm.sn is exist - process it [09:57:18]wFMCommunicate request_size=4 [09:57:18]MH_SAM_APDU [09:57:18]CAPDU: 80 11 00 00 [09:57:18]Write to MH i2c: E2 08 00 F3 19 80 11 00 00 00 00 00 00 86 [09:57:18]Write i2c OK [09:57:18]MH_I2C_Read... [09:57:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:18]Read from MH i2c: E2 [09:57:18]MH_I2C_Read... [09:57:18]Read from MH i2c: E2 17 00 [09:57:18]MH_I2C_Read... [09:57:18]Read from MH i2c: E2 17 00 F3 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DD [09:57:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:57:18]wFMCommunicate OK [09:57:18]requested_item fd.num is exist - process it [09:57:18]SAM_PROTO_GetFieldsCounters [09:57:18]wFMCommunicate request_size=4 [09:57:18]MH_SAM_APDU [09:57:18]CAPDU: 80 13 00 00 [09:57:18]Write to MH i2c: E2 08 00 F4 19 80 13 00 00 00 00 00 00 89 [09:57:18]Write i2c OK [09:57:18]MH_I2C_Read... [09:57:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:18]Read from MH i2c: E2 [09:57:18]MH_I2C_Read... [09:57:18]Read from MH i2c: E2 62 00 [09:57:18]MH_I2C_Read... [09:57:18]Read from MH i2c: E2 62 00 F4 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 13 7B 03 00 0E 04 04 00 17 02 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 49 [09:57:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 13 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:57:18]wFMCommunicate OK [09:57:18]SAM_PROTO_GetFieldsCounters done [09:57:18]requested_item shift.num is exist - process it [09:57:18]requested_item shift.opened is exist - process it [09:57:18]req_shift_opened [09:57:18]FM_GetShiftState [09:57:18]SAM_PROTO_GetShiftState [09:57:18]wFMCommunicate request_size=4 [09:57:18]MH_SAM_APDU [09:57:18]CAPDU: 80 13 01 00 [09:57:18]Write to MH i2c: E2 08 00 F5 19 80 13 01 00 00 00 00 00 8B [09:57:18]Write i2c OK [09:57:18]MH_I2C_Read... [09:57:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:18]Read from MH i2c: E2 [09:57:18]MH_I2C_Read... [09:57:18]Read from MH i2c: E2 0E 00 [09:57:18]MH_I2C_Read... [09:57:18]Read from MH i2c: E2 0E 00 F5 19 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 52 [09:57:18]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:57:18]wFMCommunicate OK [09:57:18]SAM_PROTO_GetShiftState done [09:57:18]FM_GetShiftState done [09:57:18]req_shift_opened done [09:57:18]requested_item shift.open_date is exist - process it [09:57:18]req_shift_open_date [09:57:18]req_shift_open_date done [09:57:18]produce_requested_data done [09:57:18]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228115,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [09:57:18]process_action_free close_receipt [09:57:18]json_value_free [09:57:18]json_value_free done [09:57:18]process_json_proto returns [09:57:18]Send response to host [09:57:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228115,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [09:57:18]free response buf [09:57:18]execute_script done [09:57:18]execute_script returns [09:57:18]free content buf [09:57:18]Sock 7.Close socket [09:57:18]Sock 7.Thread stoped [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:57:57]accept exits with 9 [09:57:57]New connection [09:57:57]New thread 3067137380 created [09:57:57]Thread 3066994020 joined [09:57:57]Waiting for new connection... [09:57:57] Sock 9.Parse request [09:57:57]Sock 9.Check first char [09:57:57]Sock 9.First char is OK [09:57:57]request: POST /json_proto HTTP/1.0 [09:57:57]Method: POST [09:57:57]URL: /json_proto [09:57:57]Method is POST - this is cgi request [09:57:57]url: /json_proto [09:57:57]query_string will be loaded in cgi processing [09:57:57]execute_cgi json_proto POST (null) [09:57:57]execute_cgi path=json_proto method=POST [09:57:57]POST find Content-Length [09:57:57]Host: 172.17.44.195:8080 [09:57:57]Content-Length: 680 [09:57:57]Content-Type: application/json [09:57:57] [09:57:57]POST finish read [09:57:57]Found Content-Length = 680 [09:57:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964474", "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" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:57]execute_script... [09:57:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964474", "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" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:57]POST & json_proto [09:57:57]process_json_proto [09:57:57]json parsed OK: [09:57:57]protocol is kg_v1.0 [09:57:57]action value=close_receipt [09:57:57]process_action close_receipt [09:57:57]cmd_close_receipt [09:57:57]MH_GetDate [09:57:57]Write to MH i2c: F0 00 00 F6 19 FE [09:57:57]Write i2c OK [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: F0 [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: F0 09 00 [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: F0 09 00 F6 19 00 29 77 17 67 82 C9 CF 66 A5 [09:57:57]GetLastDocTimeStamp 1729591038 [09:57:57]current date 1729591081 [09:57:57]FM_GetShiftState [09:57:57]SAM_PROTO_GetShiftState [09:57:57]wFMCommunicate request_size=4 [09:57:57]MH_SAM_APDU [09:57:57]CAPDU: 80 13 01 00 [09:57:57]Write to MH i2c: E2 08 00 F7 19 80 13 01 00 00 00 00 00 8D [09:57:57]Write i2c OK [09:57:57]MH_I2C_Read... [09:57:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:57]Read from MH i2c: E2 [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: E2 0E 00 [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: E2 0E 00 F7 19 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 54 [09:57:57]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:57:57]wFMCommunicate OK [09:57:57]SAM_PROTO_GetShiftState done [09:57:57]FM_GetShiftState done [09:57:57]opened in 1729555538 [09:57:57]opened+sec_in_day 1729641938 [09:57:57]quantity*price = 200025 [09:57:57]sum+1 = 200026 [09:57:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 80 22.10.2024 09:58 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228116 ФПД: 81964016174416 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095801&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228116&fm=81964016174416&tin=02508201610067®Number=0000000000091685&sum=200000 [09:57:58]StoreToDocumentArchive [09:57:58]shift 535 fd 228116 [09:57:58]save to /storage/0535/doc_00228116 [09:57:58]save last doc name /storage/0535/doc_00228116 to /storage/kkm_last_doc_name [09:57:58]save OK [09:57:58]Clear old archive folders... [09:57:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:57:58]tlvbuf is 00A65630 [09:57:58]SAM_PROTO_ClearQueue [09:57:58]wFMCommunicate request_size=4 [09:57:58]MH_SAM_APDU [09:57:58]CAPDU: 80 09 00 00 [09:57:58]Write to MH i2c: E2 08 00 04 1A 80 09 00 00 00 00 00 00 90 [09:57:58]Write i2c OK [09:57:58]MH_I2C_Read... [09:57:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:58]Read from MH i2c: E2 [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: E2 03 00 [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: E2 03 00 04 1A 00 90 00 92 [09:57:58]RAPDU: 90 00 [09:57:58]wFMCommunicate OK [09:57:58]SAM_PROTO_ClearQueue done [09:57:58]KKMCreateOFDPacket [09:57:58]OFDProtocolAddRootSTLVToBuf [09:57:58]FM_MakeSignedData [09:57:58]FM_MakeSignedData [09:57:58]SAM_PROTO_SignData [09:57:58]wFMCommunicate request_size=4 [09:57:58]MH_SAM_APDU [09:57:58]CAPDU: 80 0D 01 02 [09:57:58]Write to MH i2c: E2 08 00 05 1A 80 0D 01 02 00 00 00 00 98 [09:57:58]Write i2c OK [09:57:58]MH_I2C_Read... [09:57:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:58]Read from MH i2c: E2 [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: E2 03 00 [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: E2 03 00 05 1A 00 90 00 93 [09:57:58]RAPDU: 90 00 [09:57:58]wFMCommunicate OK [09:57:58]wFMCommunicate request_size=255 [09:57:58]MH_SAM_APDU [09:57:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 50 00 00 00 F4 03 04 00 29 77 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 14 7B 03 00 35 04 06 00 4A 8B BC 11 [09:57:58]Write to MH i2c: E2 02 01 06 1A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 50 00 00 00 F4 03 04 00 29 77 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 14 7B 03 00 35 04 06 00 4A 8B BC 11 00 00 CE [09:57:58]Write i2c OK [09:57:58]MH_I2C_Read... [09:57:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:59]Read from MH i2c: E2 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 03 00 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 03 00 06 1A 00 90 00 94 [09:57:59]RAPDU: 90 00 [09:57:59]wFMCommunicate OK [09:57:59]wFMCommunicate request_size=7 [09:57:59]MH_SAM_APDU [09:57:59]CAPDU: 80 0D 02 02 02 85 50 [09:57:59]Write to MH i2c: E2 0A 00 07 1A 80 0D 02 02 02 00 85 50 00 00 74 [09:57:59]Write i2c OK [09:57:59]MH_I2C_Read... [09:57:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:59]Read from MH i2c: E2 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 03 00 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 03 00 07 1A 00 90 00 95 [09:57:59]RAPDU: 90 00 [09:57:59]wFMCommunicate OK [09:57:59]wFMCommunicate request_size=4 [09:57:59]MH_SAM_APDU [09:57:59]CAPDU: 80 0D 03 02 [09:57:59]Write to MH i2c: E2 08 00 08 1A 80 0D 03 02 00 00 00 00 9D [09:57:59]Write i2c OK [09:57:59]MH_I2C_Read... [09:57:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:59]Read from MH i2c: E2 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 0B 00 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 0B 00 08 1A 00 FC 2E A7 4E 29 C6 3E 2E 90 00 18 [09:57:59]RAPDU: FC 2E A7 4E 29 C6 3E 2E 90 00 [09:57:59]wFMCommunicate OK [09:57:59]SAM_PROTO_SignData done [09:57:59]FM_MakeSignedData done [09:57:59]CreateOFDProtocolMessage [09:57:59]wFMCommunicate request_size=4 [09:57:59]MH_SAM_APDU [09:57:59]CAPDU: 80 11 00 00 [09:57:59]Write to MH i2c: E2 08 00 09 1A 80 11 00 00 00 00 00 00 9D [09:57:59]Write i2c OK [09:57:59]MH_I2C_Read... [09:57:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:59]Read from MH i2c: E2 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 17 00 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 17 00 09 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F4 [09:57:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:57:59]wFMCommunicate OK [09:57:59]CreateOFDProtocolMessage done [09:57:59]OFDSenderStorePacket 228116 [09:57:59]StoreOFDPacket docnum=228116 [09:57:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 81 A5 04 01 05 DD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 50 00 00 00 F4 03 04 00 29 77 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 14 7B 03 00 35 04 06 00 4A 8B BC 11 85 50 FC 2E A7 4E 29 C6 3E 2E [09:57:59]CheckFolder [09:57:59]dirname=/storage/ofd_packets [09:57:59]CheckFolder done [09:57:59]ProducePacketName [09:57:59]name=ofd_packets/00228116 [09:57:59]NVStorageSaveData ofd_packets/00228116 [09:57:59]File name is /storage/ofd_packets/00228116 [09:57:59]Write 298 bytes [09:57:59]NVStorageSaveData done [09:57:59]OFDSenderStorePacket done [09:57:59]KKMCreateOFDPacket done [09:57:59]NVStorageSaveData kkm_last_timestamp [09:57:59]File name is /storage/kkm_last_timestamp [09:57:59]Write 4 bytes [09:57:59]NVStorageSaveData done [09:57:59]ExternCall_PrintAddStr [09:57:59]wPrintStart [09:57:59]Write to MH i2c: 01 00 00 0A 1A 24 [09:57:59]Write i2c OK [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: 01 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: 01 07 00 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: 01 07 00 0A 1A 00 00 00 00 00 FF 0F 39 [09:57:59]RasterBufferAndPrint [09:57:59]line Счет N : (1)1964474 [09:57:59]line ИНН: 02508201610067 [09:57:59]line Контрольно-Кассовый Чек [09:57:59]line ПРОДАЖА [09:57:59]line ТРК (МРК, ГНК) : 11 [09:57:59]line Товар: 2710194210 [09:57:59]line ДТ-К-5 [09:57:59]line 26.250 * 76.20 [09:57:59]line = 2000.25 [09:57:59]line НДС 12% НСП 1% [09:57:59]line > о реализуемом товаре [09:57:59]line ОКРУГЛЕНИЕ: -0.25 [09:57:59]line ИТОГО: 2000.00 [09:57:59]line Внесено: 2000.00 [09:57:59]line СДАЧА: 0.00 [09:57:59]line НСП 1% : 17.70 [09:57:59]line НДС 12% : 212.42 [09:57:59]line Наличными: 2000.00 [09:57:59]line Безнал.: 0.00 [09:57:59]line Место: АЗС № 133 "Партнер Нефть" [09:57:59]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:57:59]line СНО: Общий режим [09:57:59]line Чек 80 22.10.2024 09:58 [09:57:59]line Смена: 535 ФФД: 1.0 [09:57:59]line ЗНМ: 0300000091 [09:57:59]line РНМ: 0000000000091685 [09:57:59]line Версия ККМ: 001 [09:57:59]line ФМ: 0000000000871839 [09:57:59]line ФД: 228116 [09:57:59]line ФПД: 81964016174416 [09:57:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095801&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228116&fm=81964016174416&tin=02508201610067®Number=0000000000091685&sum=200000 [09:57:59]OFD Sender: Processing packet 228116 [packets to send 38, broken 37] [09:57:59]ProducePacketName [09:57:59]name=ofd_packets/00228116 [09:57:59]OFD Sender: To server: pG, [09:57:59]CommunicateWithHost lk.salyk.kg:30040 [09:57:59]ConnectInit lk.salyk.kg [09:57:59]written 0, free lines is 4095 [09:57:59]Connected sock=11 [09:57:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 81 A5 04 01 05 DD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 50 00 00 00 F4 03 04 00 29 77 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 14 7B 03 00 35 04 06 00 4A 8B BC 11 85 50 FC 2E A7 4E 29 C6 3E 2E [09:57:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 45 67 47 00 90 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 14 7B 03 00 F4 03 04 00 21 22 17 67 B6 04 01 00 00 71 65 9C 68 67 B9 94 9B [09:57:59]CommunicateWithHost err = 0 [09:57:59]CheckOFDResponse [09:57:59]1017 (14) - 77093643461234 [09:57:59]1041 (16) - 0000000000871839 [09:57:59]1040 (4) - 228116 [09:57:59]1012 (4) - 22.10.2024 03:55 [09:57:59]1206 (1) - 0 [09:57:59]OFD Sender: Remove packet 228116 [09:57:59]ProducePacketName [09:57:59]name=ofd_packets/00228116 [09:57:59]NVStorageDeleteData [09:58:00]Write to MH i2c: 01 00 00 34 1A 4E [09:58:00]Write i2c OK [09:58:00]MH_I2C_Read... [09:58:00]Read from MH i2c: 01 [09:58:00]MH_I2C_Read... [09:58:00]Read from MH i2c: 01 07 00 [09:58:00]MH_I2C_Read... [09:58:00]Read from MH i2c: 01 07 00 34 1A 00 00 00 00 00 C2 0C 23 [09:58:00]RasterBufferAndPrint [09:58:00]line [09:58:00]line [09:58:00]line [09:58:00]line [09:58:00]line [09:58:00]written 0, free lines is 3270 [09:58:00]MH_Cut [09:58:00]Write to MH i2c: D1 01 00 3B 1A 01 27 [09:58:00]Write i2c OK [09:58:00]MH_I2C_Read... [09:58:00]Read from MH i2c: D1 [09:58:00]MH_I2C_Read... [09:58:00]Read from MH i2c: D1 01 00 [09:58:00]MH_I2C_Read... [09:58:00]Read from MH i2c: D1 01 00 3B 1A 00 26 [09:58:00]Write to MH i2c: 01 00 00 3C 1A 56 [09:58:00]Write i2c OK [09:58:00]MH_I2C_Read... [09:58:00]OFD Sender: No OFD packet to send [09:58:01]*** Cut start [09:58:01]*** Partial cut [09:58:01]*** CUTSNS_PIN = 1 [09:58:01]*** CUTSNS_PIN = 0 [09:58:01]*** Brake cut motor [09:58:01]Read from MH i2c: 01 [09:58:01]MH_I2C_Read... [09:58:01]*** Stop cut motor [09:58:01]*** Cut end [09:58:01]Read from MH i2c: 01 07 00 [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: 01 07 00 3C 1A 00 00 00 00 00 FF 0F 6B [09:58:01]process_action close_receipt done [09:58:01]requested_data is exist [09:58:01]produce_requested_data [09:58:01]requested_item fm.sn is exist - process it [09:58:01]wFMCommunicate request_size=4 [09:58:01]MH_SAM_APDU [09:58:01]CAPDU: 80 11 00 00 [09:58:01]Write to MH i2c: E2 08 00 3D 1A 80 11 00 00 00 00 00 00 D1 [09:58:01]Write i2c OK [09:58:01]MH_I2C_Read... [09:58:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:01]Read from MH i2c: E2 [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: E2 17 00 [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: E2 17 00 3D 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 28 [09:58:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:58:01]wFMCommunicate OK [09:58:01]requested_item fd.num is exist - process it [09:58:01]SAM_PROTO_GetFieldsCounters [09:58:01]wFMCommunicate request_size=4 [09:58:01]MH_SAM_APDU [09:58:01]CAPDU: 80 13 00 00 [09:58:01]Write to MH i2c: E2 08 00 3E 1A 80 13 00 00 00 00 00 00 D4 [09:58:01]Write i2c OK [09:58:01]MH_I2C_Read... [09:58:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:01]Read from MH i2c: E2 [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: E2 62 00 [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: E2 62 00 3E 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 14 7B 03 00 0E 04 04 00 17 02 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 98 [09:58:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 14 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:58:01]wFMCommunicate OK [09:58:01]SAM_PROTO_GetFieldsCounters done [09:58:01]requested_item shift.num is exist - process it [09:58:01]requested_item shift.opened is exist - process it [09:58:01]req_shift_opened [09:58:01]FM_GetShiftState [09:58:01]SAM_PROTO_GetShiftState [09:58:01]wFMCommunicate request_size=4 [09:58:01]MH_SAM_APDU [09:58:01]CAPDU: 80 13 01 00 [09:58:01]Write to MH i2c: E2 08 00 3F 1A 80 13 01 00 00 00 00 00 D6 [09:58:01]Write i2c OK [09:58:01]MH_I2C_Read... [09:58:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:02]Read from MH i2c: E2 [09:58:02]MH_I2C_Read... [09:58:02]Read from MH i2c: E2 0E 00 [09:58:02]MH_I2C_Read... [09:58:02]Read from MH i2c: E2 0E 00 3F 1A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 9D [09:58:02]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:58:02]wFMCommunicate OK [09:58:02]SAM_PROTO_GetShiftState done [09:58:02]FM_GetShiftState done [09:58:02]req_shift_opened done [09:58:02]requested_item shift.open_date is exist - process it [09:58:02]req_shift_open_date [09:58:02]req_shift_open_date done [09:58:02]produce_requested_data done [09:58:02]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228116,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [09:58:02]process_action_free close_receipt [09:58:02]json_value_free [09:58:02]json_value_free done [09:58:02]process_json_proto returns [09:58:02]Send response to host [09:58:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228116,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [09:58:02]free response buf [09:58:02]execute_script done [09:58:02]execute_script returns [09:58:02]free content buf [09:58:02]Sock 9.Close socket [09:58:02]Sock 9.Thread stoped [09:58:05]OFD Sender: No OFD packet to send [09:58:10]OFD Sender: No OFD packet to send [09:58:15]OFD Sender: No OFD packet to send [09:58:20]OFD Sender: No OFD packet to send [09:58:25]OFD Sender: No OFD packet to send [09:58:30]OFD Sender: No OFD packet to send [09:58:35]OFD Sender: No OFD packet to send [09:58:40]OFD Sender: No OFD packet to send [09:58:45]OFD Sender: No OFD packet to send [09:58:50]OFD Sender: No OFD packet to send [09:58:55]OFD Sender: No OFD packet to send [09:58:58]accept exits with 7 [09:58:58]New connection [09:58:58]New thread 3066994020 created [09:58:58]Thread 3067137380 joined [09:58:58]Waiting for new connection... [09:58:58] Sock 7.Parse request [09:58:58]Sock 7.Check first char [09:58:58]Sock 7.First char is OK [09:58:58]request: POST /json_proto HTTP/1.0 [09:58:58]Method: POST [09:58:58]URL: /json_proto [09:58:58]Method is POST - this is cgi request [09:58:58]url: /json_proto [09:58:58]query_string will be loaded in cgi processing [09:58:58]execute_cgi json_proto POST (null) [09:58:58]execute_cgi path=json_proto method=POST [09:58:58]POST find Content-Length [09:58:58]Host: 172.17.44.195:8080 [09:58:58]Content-Length: 646 [09:58:58]Content-Type: application/json [09:58:58] [09:58:58]POST finish read [09:58:58]Found Content-Length = 646 [09:58:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273038", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:58]execute_script... [09:58:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273038", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:58]POST & json_proto [09:58:58]process_json_proto [09:58:58]json parsed OK: [09:58:58]protocol is kg_v1.0 [09:58:58]action value=close_receipt [09:58:58]process_action close_receipt [09:58:58]cmd_close_receipt [09:58:58]MH_GetDate [09:58:58]Write to MH i2c: F0 00 00 40 1A 49 [09:58:58]Write i2c OK [09:58:58]MH_I2C_Read... [09:58:58]Read from MH i2c: F0 [09:58:58]MH_I2C_Read... [09:58:58]Read from MH i2c: F0 09 00 [09:58:58]MH_I2C_Read... [09:58:58]Read from MH i2c: F0 09 00 40 1A 00 65 77 17 67 82 C9 CF 66 2C [09:58:58]GetLastDocTimeStamp 1729591081 [09:58:58]current date 1729591141 [09:58:58]FM_GetShiftState [09:58:58]SAM_PROTO_GetShiftState [09:58:58]wFMCommunicate request_size=4 [09:58:58]MH_SAM_APDU [09:58:58]CAPDU: 80 13 01 00 [09:58:58]Write to MH i2c: E2 08 00 41 1A 80 13 01 00 00 00 00 00 D8 [09:58:58]Write i2c OK [09:58:58]MH_I2C_Read... [09:58:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:58]Read from MH i2c: E2 [09:58:58]MH_I2C_Read... [09:58:58]Read from MH i2c: E2 0E 00 [09:58:58]MH_I2C_Read... [09:58:58]Read from MH i2c: E2 0E 00 41 1A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 9F [09:58:58]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [09:58:58]wFMCommunicate OK [09:58:58]SAM_PROTO_GetShiftState done [09:58:58]FM_GetShiftState done [09:58:58]opened in 1729555538 [09:58:58]opened+sec_in_day 1729641938 [09:58:58]quantity*price = 26000 [09:58:58]sum+1 = 26001 [09:58:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 81 22.10.2024 09:59 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228117 ФПД: 241218419106714 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095901&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228117&fm=241218419106714&tin=02508201610067®Number=0000000000091685&sum=26000 0 [09:58:59]StoreToDocumentArchive [09:58:59]shift 535 fd 228117 [09:58:59]save to /storage/0535/doc_00228117 [09:58:59]save last doc name /storage/0535/doc_00228117 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=282 [09:58:59]tlvbuf is B6ED5370 [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 4E 1A 80 09 00 00 00 00 00 00 DA [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 4E 1A 00 90 00 DC [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 4F 1A 80 0D 01 02 00 00 00 00 E2 [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 4F 1A 00 90 00 DD [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 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 65 77 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 [09:58:59]Write to MH i2c: E2 02 01 50 1A 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 65 77 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 00 00 73 [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 50 1A 00 90 00 DE [09:58:59]RAPDU: 90 00 [09:58:59]wFMCommunicate OK [09:58:59]wFMCommunicate request_size=41 [09:58:59]MH_SAM_APDU [09:58:59]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 15 7B 03 00 35 04 06 00 DB 63 0A 2F 23 9A [09:58:59]Write to MH i2c: E2 2C 00 51 1A 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 15 7B 03 00 35 04 06 00 DB 63 0A 2F 23 9A 00 00 7F [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 51 1A 00 90 00 DF [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 52 1A 80 0D 03 02 00 00 00 00 E7 [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 52 1A 00 19 67 DB CD EE AD 13 B9 90 00 77 [09:58:59]RAPDU: 19 67 DB CD EE AD 13 B9 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 53 1A 80 11 00 00 00 00 00 00 E7 [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 53 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 3E [09:58:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:58:59]wFMCommunicate OK [09:58:59]CreateOFDProtocolMessage done [09:58:59]OFDSenderStorePacket 228117 [09:58:59]StoreOFDPacket docnum=228117 [09:58:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 2E 01 00 00 F5 17 26 01 4C 9F 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 65 77 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 15 7B 03 00 35 04 06 00 DB 63 0A 2F 23 9A 19 67 DB CD EE AD 13 B9 [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/00228117 [09:58:59]NVStorageSaveData ofd_packets/00228117 [09:58:59]File name is /storage/ofd_packets/00228117 [09:58:59]Write 332 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 54 1A 6E [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 54 1A 00 00 00 00 00 FF 0F 83 [09:58:59]RasterBufferAndPrint [09:58:59]line Счет N : (3)273038 [09:58:59]line ИНН: 02508201610067 [09:58:59]line Контрольно-Кассовый Чек [09:58:59]line ПРОДАЖА [09:58:59]line Товар: 2000036220012 [09:58:59]line Кофе Капучино XL(GABB TRADE) [09:58:59]line 2.000 * 130.00 [09:58:59]line = 260.00 [09:58:59]line НДС 12% НСП 1% [09:58:59]line > о реализуемом товаре [09:58:59]line ИТОГО: 260.00 [09:58:59]line НСП 1% : 2.30 [09:58:59]line НДС 12% : 27.61 [09:58:59]line Наличными: 260.00 [09:58:59]line Безнал.: 0.00 [09:58:59]line Место: АЗС № 133 "Партнер Нефть" [09:58:59]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:58:59]line СНО: Общий режим [09:58:59]line Чек 81 22.10.2024 09:59 [09:58:59]line Смена: 535 ФФД: 1.0 [09:58:59]line ЗНМ: 0300000091 [09:58:59]line РНМ: 0000000000091685 [09:58:59]line Версия ККМ: 001 [09:58:59]line ФМ: 0000000000871839 [09:58:59]line ФД: 228117 [09:58:59]line ФПД: 241218419106714 [09:59:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095901&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228117&fm=241218419106714&tin=02508201610067®Number=0000000000091685&sum=26000 [09:59:00]line 0 [09:59:00]OFD Sender: Processing packet 228117 [packets to send 38, broken 37] [09:59:00]ProducePacketName [09:59:00]name=ofd_packets/00228117 [09:59:00]OFD Sender: To server: pG, [09:59:00]CommunicateWithHost lk.salyk.kg:30040 [09:59:00]ConnectInit lk.salyk.kg [09:59:00]written 0, free lines is 4095 [09:59:00]Connected sock=10 [09:59:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 2E 01 00 00 F5 17 26 01 4C 9F 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 65 77 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 15 7B 03 00 35 04 06 00 DB 63 0A 2F 23 9A 19 67 DB CD EE AD 13 B9 [09:59:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 B6 AB 47 00 BA 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 15 7B 03 00 F4 03 04 00 5E 22 17 67 B6 04 01 00 00 33 13 36 54 A1 40 52 AE [09:59:00]CommunicateWithHost err = 0 [09:59:00]CheckOFDResponse [09:59:00]1017 (14) - 77093643461234 [09:59:00]1041 (16) - 0000000000871839 [09:59:00]1040 (4) - 228117 [09:59:00]1012 (4) - 22.10.2024 03:56 [09:59:00]1206 (1) - 0 [09:59:00]OFD Sender: Remove packet 228117 [09:59:00]ProducePacketName [09:59:00]name=ofd_packets/00228117 [09:59:00]NVStorageDeleteData [09:59:00]Write to MH i2c: 01 00 00 7C 1A 96 [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 7C 1A 00 00 00 00 00 E2 0C 8B [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 3303 [09:59:00]MH_Cut [09:59:00]Write to MH i2c: D1 01 00 83 1A 01 6F [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 83 1A 00 6E [09:59:00]Write to MH i2c: 01 00 00 84 1A 9E [09:59:00]Write i2c OK [09:59:00]MH_I2C_Read... [09:59:01]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:02]Read from MH i2c: 01 [09:59:02]MH_I2C_Read... [09:59:02]*** Stop cut motor [09:59:02]*** Cut end [09:59:02]Read from MH i2c: 01 07 00 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: 01 07 00 84 1A 00 00 00 00 00 FF 0F B3 [09:59:02]process_action close_receipt done [09:59:02]requested_data is exist [09:59:02]produce_requested_data [09:59:02]requested_item fm.sn is exist - process it [09:59:02]wFMCommunicate request_size=4 [09:59:02]MH_SAM_APDU [09:59:02]CAPDU: 80 11 00 00 [09:59:02]Write to MH i2c: E2 08 00 85 1A 80 11 00 00 00 00 00 00 19 [09:59:02]Write i2c OK [09:59:02]MH_I2C_Read... [09:59:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:02]Read from MH i2c: E2 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 17 00 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 17 00 85 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 70 [09:59:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:59:02]wFMCommunicate OK [09:59:02]requested_item fd.num is exist - process it [09:59:02]SAM_PROTO_GetFieldsCounters [09:59:02]wFMCommunicate request_size=4 [09:59:02]MH_SAM_APDU [09:59:02]CAPDU: 80 13 00 00 [09:59:02]Write to MH i2c: E2 08 00 86 1A 80 13 00 00 00 00 00 00 1C [09:59:02]Write i2c OK [09:59:02]MH_I2C_Read... [09:59:02]*** 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 86 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 15 7B 03 00 0E 04 04 00 17 02 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 E4 [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 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 15 7B 03 00 0E 04 04 00 17 02 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 [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 87 1A 80 13 01 00 00 00 00 00 1E [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 87 1A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 E5 [09:59:02]RAPDU: 09 00 01 52 EC 16 67 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":"0000000000871839","fd.num":228117,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [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":"0000000000871839","fd.num":228117,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [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 7.Close socket [09:59:02]Sock 7.Thread stoped [09:59:06]OFD Sender: No OFD packet to send [09:59:11]OFD Sender: No OFD packet to send [09:59:16]OFD Sender: No OFD packet to send [09:59:21]OFD Sender: No OFD packet to send [09:59:26]OFD Sender: No OFD packet to send [09:59:31]OFD Sender: No OFD packet to send [09:59:36]OFD Sender: No OFD packet to send [09:59:41]OFD Sender: No OFD packet to send [09:59:46]OFD Sender: No OFD packet to send [09:59:51]OFD Sender: No OFD packet to send [09:59:56]OFD Sender: No OFD packet to send [10:00:01]OFD Sender: No OFD packet to send [10:00:06]OFD Sender: No OFD packet to send [10:00:11]OFD Sender: No OFD packet to send [10:00:16]OFD Sender: No OFD packet to send [10:00:21]OFD Sender: No OFD packet to send [10:00:21]accept exits with 9 [10:00:21]New connection [10:00:21]New thread 3067137380 created [10:00:21]Thread 3066994020 joined [10:00:21]Waiting for new connection... [10:00:21] Sock 9.Parse request [10:00:21]Sock 9.Check first char [10:00:21]Sock 9.First char is OK [10:00:21]request: POST /json_proto HTTP/1.0 [10:00:21]Method: POST [10:00:21]URL: /json_proto [10:00:21]Method is POST - this is cgi request [10:00:21]url: /json_proto [10:00:21]query_string will be loaded in cgi processing [10:00:21]execute_cgi json_proto POST (null) [10:00:21]execute_cgi path=json_proto method=POST [10:00:21]POST find Content-Length [10:00:21]Host: 172.17.44.195:8080 [10:00:21]Content-Length: 621 [10:00:21]Content-Type: application/json [10:00:21] [10:00:21]POST finish read [10:00:21]Found Content-Length = 621 [10:00:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:21]execute_script... [10:00:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:21]POST & json_proto [10:00:21]process_json_proto [10:00:21]json parsed OK: [10:00:21]protocol is kg_v1.0 [10:00:21]action value=close_receipt [10:00:21]process_action close_receipt [10:00:21]cmd_close_receipt [10:00:21]MH_GetDate [10:00:21]Write to MH i2c: F0 00 00 88 1A 91 [10:00:21]Write i2c OK [10:00:21]MH_I2C_Read... [10:00:21]Read from MH i2c: F0 [10:00:21]MH_I2C_Read... [10:00:21]Read from MH i2c: F0 09 00 [10:00:21]MH_I2C_Read... [10:00:21]Read from MH i2c: F0 09 00 88 1A 00 B8 77 17 67 82 C9 CF 66 C7 [10:00:21]GetLastDocTimeStamp 1729591141 [10:00:21]current date 1729591224 [10:00:21]FM_GetShiftState [10:00:21]SAM_PROTO_GetShiftState [10:00:21]wFMCommunicate request_size=4 [10:00:21]MH_SAM_APDU [10:00:21]CAPDU: 80 13 01 00 [10:00:21]Write to MH i2c: E2 08 00 89 1A 80 13 01 00 00 00 00 00 20 [10:00:21]Write i2c OK [10:00:21]MH_I2C_Read... [10:00:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:21]Read from MH i2c: E2 [10:00:21]MH_I2C_Read... [10:00:21]Read from MH i2c: E2 0E 00 [10:00:21]MH_I2C_Read... [10:00:21]Read from MH i2c: E2 0E 00 89 1A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 E7 [10:00:21]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:00:21]wFMCommunicate OK [10:00:21]SAM_PROTO_GetShiftState done [10:00:21]FM_GetShiftState done [10:00:21]opened in 1729555538 [10:00:21]opened+sec_in_day 1729641938 [10:00:21]quantity*price = 50000 [10:00:21]sum+1 = 50001 [10:00:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 82 22.10.2024 10:00 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228118 ФПД: 250718766970361 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100024&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228118&fm=250718766970361&tin=02508201610067®Number=0000000000091685&sum=50000 [10:00:22]StoreToDocumentArchive [10:00:22]shift 535 fd 228118 [10:00:22]save to /storage/0535/doc_00228118 [10:00:22]save last doc name /storage/0535/doc_00228118 to /storage/kkm_last_doc_name [10:00:22]save OK [10:00:22]Clear old archive folders... [10:00:22]ProcessDocumentItem done err = 0, tmpTLVsize=244 [10:00:22]tlvbuf is 00A7BEB0 [10:00:22]SAM_PROTO_ClearQueue [10:00:22]wFMCommunicate request_size=4 [10:00:22]MH_SAM_APDU [10:00:22]CAPDU: 80 09 00 00 [10:00:22]Write to MH i2c: E2 08 00 96 1A 80 09 00 00 00 00 00 00 22 [10:00:22]Write i2c OK [10:00:22]MH_I2C_Read... [10:00:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:22]Read from MH i2c: E2 [10:00:22]MH_I2C_Read... [10:00:22]Read from MH i2c: E2 03 00 [10:00:22]MH_I2C_Read... [10:00:22]Read from MH i2c: E2 03 00 96 1A 00 90 00 24 [10:00:22]RAPDU: 90 00 [10:00:22]wFMCommunicate OK [10:00:22]SAM_PROTO_ClearQueue done [10:00:22]KKMCreateOFDPacket [10:00:22]OFDProtocolAddRootSTLVToBuf [10:00:22]FM_MakeSignedData [10:00:22]FM_MakeSignedData [10:00:22]SAM_PROTO_SignData [10:00:22]wFMCommunicate request_size=4 [10:00:22]MH_SAM_APDU [10:00:22]CAPDU: 80 0D 01 02 [10:00:22]Write to MH i2c: E2 08 00 97 1A 80 0D 01 02 00 00 00 00 2A [10:00:22]Write i2c OK [10:00:22]MH_I2C_Read... [10:00:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:22]Read from MH i2c: E2 [10:00:22]MH_I2C_Read... [10:00:22]Read from MH i2c: E2 03 00 [10:00:22]MH_I2C_Read... [10:00:22]Read from MH i2c: E2 03 00 97 1A 00 90 00 25 [10:00:22]RAPDU: 90 00 [10:00:22]wFMCommunicate OK [10:00:22]wFMCommunicate request_size=253 [10:00:22]MH_SAM_APDU [10:00:22]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 B8 77 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 16 7B 03 00 35 04 06 00 E4 07 03 0B 35 F9 [10:00:22]Write to MH i2c: E2 00 01 98 1A 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 B8 77 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 16 7B 03 00 35 04 06 00 E4 07 03 0B 35 F9 00 00 FF [10:00:22]Write i2c OK [10:00:22]MH_I2C_Read... [10:00:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:22]Read from MH i2c: E2 [10:00:22]MH_I2C_Read... [10:00:22]Read from MH i2c: E2 03 00 [10:00:22]MH_I2C_Read... [10:00:22]Read from MH i2c: E2 03 00 98 1A 00 90 00 26 [10:00:22]RAPDU: 90 00 [10:00:22]wFMCommunicate OK [10:00:22]wFMCommunicate request_size=4 [10:00:22]MH_SAM_APDU [10:00:22]CAPDU: 80 0D 03 02 [10:00:22]Write to MH i2c: E2 08 00 99 1A 80 0D 03 02 00 00 00 00 2E [10:00:22]Write i2c OK [10:00:22]MH_I2C_Read... [10:00:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:22]Read from MH i2c: E2 [10:00:22]MH_I2C_Read... [10:00:22]Read from MH i2c: E2 0B 00 [10:00:22]MH_I2C_Read... [10:00:22]Read from MH i2c: E2 0B 00 99 1A 00 09 B8 2D F8 19 C6 9B 2B 90 00 BA [10:00:22]RAPDU: 09 B8 2D F8 19 C6 9B 2B 90 00 [10:00:22]wFMCommunicate OK [10:00:22]SAM_PROTO_SignData done [10:00:22]FM_MakeSignedData done [10:00:22]CreateOFDProtocolMessage [10:00:22]wFMCommunicate request_size=4 [10:00:22]MH_SAM_APDU [10:00:22]CAPDU: 80 11 00 00 [10:00:22]Write to MH i2c: E2 08 00 9A 1A 80 11 00 00 00 00 00 00 2E [10:00:22]Write i2c OK [10:00:22]MH_I2C_Read... [10:00:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:22]Read from MH i2c: E2 [10:00:22]MH_I2C_Read... [10:00:22]Read from MH i2c: E2 17 00 [10:00:22]MH_I2C_Read... [10:00:22]Read from MH i2c: E2 17 00 9A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 85 [10:00:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:00:22]wFMCommunicate OK [10:00:22]CreateOFDProtocolMessage done [10:00:22]OFDSenderStorePacket 228118 [10:00:22]StoreOFDPacket docnum=228118 [10:00:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 95 45 00 01 4B CC 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 B8 77 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 16 7B 03 00 35 04 06 00 E4 07 03 0B 35 F9 09 B8 2D F8 19 C6 9B 2B [10:00:22]CheckFolder [10:00:22]dirname=/storage/ofd_packets [10:00:22]CheckFolder done [10:00:22]ProducePacketName [10:00:22]name=ofd_packets/00228118 [10:00:22]NVStorageSaveData ofd_packets/00228118 [10:00:22]File name is /storage/ofd_packets/00228118 [10:00:22]Write 294 bytes [10:00:22]NVStorageSaveData done [10:00:22]OFDSenderStorePacket done [10:00:22]KKMCreateOFDPacket done [10:00:22]NVStorageSaveData kkm_last_timestamp [10:00:22]File name is /storage/kkm_last_timestamp [10:00:22]Write 4 bytes [10:00:22]NVStorageSaveData done [10:00:22]ExternCall_PrintAddStr [10:00:22]wPrintStart [10:00:22]Write to MH i2c: 01 00 00 9B 1A B5 [10:00:22]Write i2c OK [10:00:22]MH_I2C_Read... [10:00:22]Read from MH i2c: 01 [10:00:22]MH_I2C_Read... [10:00:22]Read from MH i2c: 01 07 00 [10:00:22]MH_I2C_Read... [10:00:22]Read from MH i2c: 01 07 00 9B 1A 00 00 00 00 00 FF 0F CA [10:00:22]RasterBufferAndPrint [10:00:22]line Счет N : (1)1964477 [10:00:22]line ИНН: 02508201610067 [10:00:22]line Контрольно-Кассовый Чек [10:00:22]line ПРОДАЖА [10:00:22]line ТРК (МРК, ГНК) : 52 [10:00:22]line Товар: 2710124130 [10:00:22]line SU-92 [10:00:22]line 7.310 * 68.40 [10:00:22]line = 500.00 [10:00:22]line НДС 12% НСП 1% [10:00:22]line > о реализуемом товаре [10:00:22]line ИТОГО: 500.00 [10:00:22]line НСП 1% : 4.42 [10:00:22]line НДС 12% : 53.10 [10:00:22]line Наличными: 500.00 [10:00:22]line Безнал.: 0.00 [10:00:22]line Место: АЗС № 133 "Партнер Нефть" [10:00:22]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:00:22]line СНО: Общий режим [10:00:22]line Чек 82 22.10.2024 10:00 [10:00:22]line Смена: 535 ФФД: 1.0 [10:00:22]line ЗНМ: 0300000091 [10:00:22]line РНМ: 0000000000091685 [10:00:22]line Версия ККМ: 001 [10:00:22]line ФМ: 0000000000871839 [10:00:22]line ФД: 228118 [10:00:22]line ФПД: 250718766970361 [10:00:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100024&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228118&fm=250718766970361&tin=02508201610067®Number=0000000000091685&sum=50000 [10:00:23]OFD Sender: Processing packet 228118 [packets to send 38, broken 37] [10:00:23]ProducePacketName [10:00:23]name=ofd_packets/00228118 [10:00:23]OFD Sender: To server: pG, [10:00:23]CommunicateWithHost lk.salyk.kg:30040 [10:00:23]ConnectInit lk.salyk.kg [10:00:23]written 0, free lines is 4095 [10:00:23]Connected sock=10 [10:00:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 95 45 00 01 4B CC 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 B8 77 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 16 7B 03 00 35 04 06 00 E4 07 03 0B 35 F9 09 B8 2D F8 19 C6 9B 2B [10:00:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 7B 12 47 00 78 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 16 7B 03 00 F4 03 04 00 B1 22 17 67 B6 04 01 00 00 72 85 DA A2 DC AD E4 D3 [10:00:23]CommunicateWithHost err = 0 [10:00:23]CheckOFDResponse [10:00:23]1017 (14) - 77093643461234 [10:00:23]1041 (16) - 0000000000871839 [10:00:23]1040 (4) - 228118 [10:00:23]1012 (4) - 22.10.2024 03:57 [10:00:23]1206 (1) - 0 [10:00:23]OFD Sender: Remove packet 228118 [10:00:23]ProducePacketName [10:00:23]name=ofd_packets/00228118 [10:00:23]NVStorageDeleteData [10:00:23]Write to MH i2c: 01 00 00 C2 1A DC [10:00:23]Write i2c OK [10:00:23]MH_I2C_Read... [10:00:23]Read from MH i2c: 01 [10:00:23]MH_I2C_Read... [10:00:23]Read from MH i2c: 01 07 00 [10:00:23]MH_I2C_Read... [10:00:23]Read from MH i2c: 01 07 00 C2 1A 00 00 00 00 00 F2 0C E1 [10:00:23]RasterBufferAndPrint [10:00:23]line [10:00:23]line [10:00:23]line [10:00:23]line [10:00:23]line [10:00:23]written 0, free lines is 3319 [10:00:23]MH_Cut [10:00:23]Write to MH i2c: D1 01 00 C9 1A 01 B5 [10:00:23]Write i2c OK [10:00:23]MH_I2C_Read... [10:00:23]Read from MH i2c: D1 [10:00:23]MH_I2C_Read... [10:00:23]Read from MH i2c: D1 01 00 [10:00:23]MH_I2C_Read... [10:00:23]Read from MH i2c: D1 01 00 C9 1A 00 B4 [10:00:23]Write to MH i2c: 01 00 00 CA 1A E4 [10:00:23]Write i2c OK [10:00:23]MH_I2C_Read... [10:00:24]OFD Sender: No OFD packet to send [10:00:24]*** Cut start [10:00:24]*** Partial cut [10:00:24]*** CUTSNS_PIN = 1 [10:00:24]*** CUTSNS_PIN = 0 [10:00:24]*** Brake cut motor [10:00:25]Read from MH i2c: 01 [10:00:25]MH_I2C_Read... [10:00:25]*** Stop cut motor [10:00:25]*** Cut end [10:00:25]Read from MH i2c: 01 07 00 [10:00:25]MH_I2C_Read... [10:00:25]Read from MH i2c: 01 07 00 CA 1A 00 00 00 00 00 FF 0F F9 [10:00:25]process_action close_receipt done [10:00:25]requested_data is exist [10:00:25]produce_requested_data [10:00:25]requested_item fm.sn is exist - process it [10:00:25]wFMCommunicate request_size=4 [10:00:25]MH_SAM_APDU [10:00:25]CAPDU: 80 11 00 00 [10:00:25]Write to MH i2c: E2 08 00 CB 1A 80 11 00 00 00 00 00 00 5F [10:00:25]Write i2c OK [10:00:25]MH_I2C_Read... [10:00:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:25]Read from MH i2c: E2 [10:00:25]MH_I2C_Read... [10:00:25]Read from MH i2c: E2 17 00 [10:00:25]MH_I2C_Read... [10:00:25]Read from MH i2c: E2 17 00 CB 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B6 [10:00:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:00:25]wFMCommunicate OK [10:00:25]requested_item fd.num is exist - process it [10:00:25]SAM_PROTO_GetFieldsCounters [10:00:25]wFMCommunicate request_size=4 [10:00:25]MH_SAM_APDU [10:00:25]CAPDU: 80 13 00 00 [10:00:25]Write to MH i2c: E2 08 00 CC 1A 80 13 00 00 00 00 00 00 62 [10:00:25]Write i2c OK [10:00:25]MH_I2C_Read... [10:00:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:25]Read from MH i2c: E2 [10:00:25]MH_I2C_Read... [10:00:25]Read from MH i2c: E2 62 00 [10:00:25]MH_I2C_Read... [10:00:25]Read from MH i2c: E2 62 00 CC 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 16 7B 03 00 0E 04 04 00 17 02 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 2E [10:00:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 16 7B 03 00 0E 04 04 00 17 02 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:00:25]wFMCommunicate OK [10:00:25]SAM_PROTO_GetFieldsCounters done [10:00:25]requested_item shift.num is exist - process it [10:00:25]requested_item shift.opened is exist - process it [10:00:25]req_shift_opened [10:00:25]FM_GetShiftState [10:00:25]SAM_PROTO_GetShiftState [10:00:25]wFMCommunicate request_size=4 [10:00:25]MH_SAM_APDU [10:00:25]CAPDU: 80 13 01 00 [10:00:25]Write to MH i2c: E2 08 00 CD 1A 80 13 01 00 00 00 00 00 64 [10:00:25]Write i2c OK [10:00:25]MH_I2C_Read... [10:00:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:25]Read from MH i2c: E2 [10:00:25]MH_I2C_Read... [10:00:25]Read from MH i2c: E2 0E 00 [10:00:25]MH_I2C_Read... [10:00:25]Read from MH i2c: E2 0E 00 CD 1A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 2B [10:00:25]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:00:25]wFMCommunicate OK [10:00:25]SAM_PROTO_GetShiftState done [10:00:25]FM_GetShiftState done [10:00:25]req_shift_opened done [10:00:25]requested_item shift.open_date is exist - process it [10:00:25]req_shift_open_date [10:00:25]req_shift_open_date done [10:00:25]produce_requested_data done [10:00:25]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228118,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [10:00:25]process_action_free close_receipt [10:00:25]json_value_free [10:00:25]json_value_free done [10:00:25]process_json_proto returns [10:00:25]Send response to host [10:00:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228118,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [10:00:25]free response buf [10:00:25]execute_script done [10:00:25]execute_script returns [10:00:25]free content buf [10:00:25]Sock 9.Close socket [10:00:25]Sock 9.Thread stoped [10:00:26]accept exits with 7 [10:00:26]New connection [10:00:26]New thread 3066994020 created [10:00:26]Thread 3067137380 joined [10:00:26]Waiting for new connection... [10:00:26] Sock 7.Parse request [10:00:26]Sock 7.Check first char [10:00:26]Sock 7.First char is OK [10:00:26]request: POST /json_proto HTTP/1.0 [10:00:26]Method: POST [10:00:26]URL: /json_proto [10:00:26]Method is POST - this is cgi request [10:00:26]url: /json_proto [10:00:26]query_string will be loaded in cgi processing [10:00:26]execute_cgi json_proto POST (null) [10:00:26]execute_cgi path=json_proto method=POST [10:00:26]POST find Content-Length [10:00:26]Host: 172.17.44.195:8080 [10:00:26]Content-Length: 683 [10:00:26]Content-Type: application/json [10:00:26] [10:00:26]POST finish read [10:00:26]Found Content-Length = 683 [10:00:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964478", "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" : 66.90, "quantity" : 14.950, "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" ] } } [10:00:26]execute_script... [10:00: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)1964478", "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" : 66.90, "quantity" : 14.950, "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" ] } } [10:00:26]POST & json_proto [10:00:26]process_json_proto [10:00:26]json parsed OK: [10:00:26]protocol is kg_v1.0 [10:00:26]action value=close_receipt [10:00:26]process_action close_receipt [10:00:26]cmd_close_receipt [10:00:26]MH_GetDate [10:00:26]Write to MH i2c: F0 00 00 CE 1A D7 [10:00:26]Write i2c OK [10:00:26]MH_I2C_Read... [10:00:26]Read from MH i2c: F0 [10:00:26]MH_I2C_Read... [10:00:26]Read from MH i2c: F0 09 00 [10:00:26]MH_I2C_Read... [10:00:26]Read from MH i2c: F0 09 00 CE 1A 00 BE 77 17 67 82 C9 CF 66 13 [10:00:26]GetLastDocTimeStamp 1729591224 [10:00:26]current date 1729591230 [10:00:26]FM_GetShiftState [10:00:26]SAM_PROTO_GetShiftState [10:00:26]wFMCommunicate request_size=4 [10:00:26]MH_SAM_APDU [10:00:26]CAPDU: 80 13 01 00 [10:00:26]Write to MH i2c: E2 08 00 CF 1A 80 13 01 00 00 00 00 00 66 [10:00:26]Write i2c OK [10:00:26]MH_I2C_Read... [10:00:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:27]Read from MH i2c: E2 [10:00:27]MH_I2C_Read... [10:00:27]Read from MH i2c: E2 0E 00 [10:00:27]MH_I2C_Read... [10:00:27]Read from MH i2c: E2 0E 00 CF 1A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 2D [10:00:27]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:00:27]wFMCommunicate OK [10:00:27]SAM_PROTO_GetShiftState done [10:00:27]FM_GetShiftState done [10:00:27]opened in 1729555538 [10:00:27]opened+sec_in_day 1729641938 [10:00:27]quantity*price = 100015 [10:00:27]sum+1 = 100017 [10:00:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 83 22.10.2024 10:00 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228119 ФПД: 114150245318168 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100030&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228119&fm=114150245318168&tin=02508201610067®Number=0000000000091685&sum=100000 [10:00:28]StoreToDocumentArchive [10:00:28]shift 535 fd 228119 [10:00:28]save to /storage/0535/doc_00228119 [10:00:28]save last doc name /storage/0535/doc_00228119 to /storage/kkm_last_doc_name [10:00:28]save OK [10:00:28]Clear old archive folders... [10:00:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:00:28]tlvbuf is B6F07800 [10:00:28]SAM_PROTO_ClearQueue [10:00:28]wFMCommunicate request_size=4 [10:00:28]MH_SAM_APDU [10:00:28]CAPDU: 80 09 00 00 [10:00:28]Write to MH i2c: E2 08 00 DC 1A 80 09 00 00 00 00 00 00 68 [10:00:28]Write i2c OK [10:00:28]MH_I2C_Read... [10:00:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:28]Read from MH i2c: E2 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: E2 03 00 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: E2 03 00 DC 1A 00 90 00 6A [10:00:28]RAPDU: 90 00 [10:00:28]wFMCommunicate OK [10:00:28]SAM_PROTO_ClearQueue done [10:00:28]KKMCreateOFDPacket [10:00:28]OFDProtocolAddRootSTLVToBuf [10:00:28]FM_MakeSignedData [10:00:28]FM_MakeSignedData [10:00:28]SAM_PROTO_SignData [10:00:28]wFMCommunicate request_size=4 [10:00:28]MH_SAM_APDU [10:00:28]CAPDU: 80 0D 01 02 [10:00:28]Write to MH i2c: E2 08 00 DD 1A 80 0D 01 02 00 00 00 00 70 [10:00:28]Write i2c OK [10:00:28]MH_I2C_Read... [10:00:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:28]Read from MH i2c: E2 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: E2 03 00 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: E2 03 00 DD 1A 00 90 00 6B [10:00:28]RAPDU: 90 00 [10:00:28]wFMCommunicate OK [10:00:28]wFMCommunicate request_size=255 [10:00:28]MH_SAM_APDU [10:00: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 53 00 00 00 F4 03 04 00 BE 77 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 17 7B 03 00 35 04 06 00 67 [10:00:28]Write to MH i2c: E2 02 01 DE 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 53 00 00 00 F4 03 04 00 BE 77 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 17 7B 03 00 35 04 06 00 67 00 00 1C [10:00:28]Write i2c OK [10:00:28]MH_I2C_Read... [10:00:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:28]Read from MH i2c: E2 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: E2 03 00 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: E2 03 00 DE 1A 00 90 00 6C [10:00:28]RAPDU: 90 00 [10:00:28]wFMCommunicate OK [10:00:28]wFMCommunicate request_size=10 [10:00:28]MH_SAM_APDU [10:00:28]CAPDU: 80 0D 02 02 05 D1 AC D2 BE 18 [10:00:28]Write to MH i2c: E2 0D 00 DF 1A 80 0D 02 02 05 00 D1 AC D2 BE 18 00 00 A2 [10:00:28]Write i2c OK [10:00:28]MH_I2C_Read... [10:00:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:28]Read from MH i2c: E2 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: E2 03 00 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: E2 03 00 DF 1A 00 90 00 6D [10:00:28]RAPDU: 90 00 [10:00:28]wFMCommunicate OK [10:00:28]wFMCommunicate request_size=4 [10:00:28]MH_SAM_APDU [10:00:28]CAPDU: 80 0D 03 02 [10:00:28]Write to MH i2c: E2 08 00 E0 1A 80 0D 03 02 00 00 00 00 75 [10:00:28]Write i2c OK [10:00:28]MH_I2C_Read... [10:00:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:28]Read from MH i2c: E2 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: E2 0B 00 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: E2 0B 00 E0 1A 00 23 90 51 CF A0 86 5D B5 90 00 81 [10:00:28]RAPDU: 23 90 51 CF A0 86 5D B5 90 00 [10:00:28]wFMCommunicate OK [10:00:28]SAM_PROTO_SignData done [10:00:28]FM_MakeSignedData done [10:00:28]CreateOFDProtocolMessage [10:00:28]wFMCommunicate request_size=4 [10:00:28]MH_SAM_APDU [10:00:28]CAPDU: 80 11 00 00 [10:00:28]Write to MH i2c: E2 08 00 E1 1A 80 11 00 00 00 00 00 00 75 [10:00:28]Write i2c OK [10:00:28]MH_I2C_Read... [10:00:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:29]Read from MH i2c: E2 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: E2 17 00 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: E2 17 00 E1 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CC [10:00:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:00:29]wFMCommunicate OK [10:00:29]CreateOFDProtocolMessage done [10:00:29]OFDSenderStorePacket 228119 [10:00:29]StoreOFDPacket docnum=228119 [10:00:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 7C 3D 07 01 73 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 53 00 00 00 F4 03 04 00 BE 77 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 17 7B 03 00 35 04 06 00 67 D1 AC D2 BE 18 23 90 51 CF A0 86 5D B5 [10:00:29]CheckFolder [10:00:29]dirname=/storage/ofd_packets [10:00:29]CheckFolder done [10:00:29]ProducePacketName [10:00:29]name=ofd_packets/00228119 [10:00:29]NVStorageSaveData ofd_packets/00228119 [10:00:29]File name is /storage/ofd_packets/00228119 [10:00:29]Write 301 bytes [10:00:29]NVStorageSaveData done [10:00:29]OFDSenderStorePacket done [10:00:29]KKMCreateOFDPacket done [10:00:29]NVStorageSaveData kkm_last_timestamp [10:00:29]File name is /storage/kkm_last_timestamp [10:00:29]Write 4 bytes [10:00:29]NVStorageSaveData done [10:00:29]ExternCall_PrintAddStr [10:00:29]wPrintStart [10:00:29]Write to MH i2c: 01 00 00 E2 1A FC [10:00:29]Write i2c OK [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: 01 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: 01 07 00 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: 01 07 00 E2 1A 00 00 00 00 00 FF 0F 11 [10:00:29]RasterBufferAndPrint [10:00:29]line Счет N : (1)1964478 [10:00:29]line ИНН: 02508201610067 [10:00:29]line Контрольно-Кассовый Чек [10:00:29]line ПРОДАЖА [10:00:29]line ТРК (МРК, ГНК) : 63 [10:00:29]line Товар: 2710124130 [10:00:29]line Аи-92-К-5 [10:00:29]line 14.950 * 66.90 [10:00:29]line = 1000.16 [10:00:29]line НДС 12% НСП 1% [10:00:29]line > о реализуемом товаре [10:00:29]line ОКРУГЛЕНИЕ: -0.16 [10:00:29]line ИТОГО: 1000.00 [10:00:29]line Внесено: 1000.00 [10:00:29]line СДАЧА: 0.00 [10:00:29]line НСП 1% : 8.85 [10:00:29]line НДС 12% : 106.21 [10:00:29]line Наличными: 1000.00 [10:00:29]line Безнал.: 0.00 [10:00:29]line Место: АЗС № 133 "Партнер Нефть" [10:00:29]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:00:29]line СНО: Общий режим [10:00:29]line Чек 83 22.10.2024 10:00 [10:00:29]line Смена: 535 ФФД: 1.0 [10:00:29]line ЗНМ: 0300000091 [10:00:29]line РНМ: 0000000000091685 [10:00:29]line Версия ККМ: 001 [10:00:29]line ФМ: 0000000000871839 [10:00:29]line ФД: 228119 [10:00:29]line ФПД: 114150245318168 [10:00:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100030&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228119&fm=114150245318168&tin=02508201610067®Number=0000000000091685&sum=100000 [10:00:29]OFD Sender: Processing packet 228119 [packets to send 38, broken 37] [10:00:29]ProducePacketName [10:00:29]name=ofd_packets/00228119 [10:00:29]OFD Sender: To server: pG, [10:00:29]CommunicateWithHost lk.salyk.kg:30040 [10:00:29]ConnectInit lk.salyk.kg [10:00:29]written 0, free lines is 4095 [10:00:29]Connected sock=10 [10:00:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 7C 3D 07 01 73 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 53 00 00 00 F4 03 04 00 BE 77 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 17 7B 03 00 35 04 06 00 67 D1 AC D2 BE 18 23 90 51 CF A0 86 5D B5 [10:00:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 77 99 47 00 4A 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 17 7B 03 00 F4 03 04 00 B7 22 17 67 B6 04 01 00 00 26 0E 1F C2 21 FC A0 B0 [10:00:29]CommunicateWithHost err = 0 [10:00:29]CheckOFDResponse [10:00:29]1017 (14) - 77093643461234 [10:00:29]1041 (16) - 0000000000871839 [10:00:29]1040 (4) - 228119 [10:00:29]1012 (4) - 22.10.2024 03:57 [10:00:29]1206 (1) - 0 [10:00:29]OFD Sender: Remove packet 228119 [10:00:29]ProducePacketName [10:00:29]name=ofd_packets/00228119 [10:00:29]NVStorageDeleteData [10:00:29]Write to MH i2c: 01 00 00 0C 1B 27 [10:00:29]Write i2c OK [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: 01 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: 01 07 00 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: 01 07 00 0C 1B 00 00 00 00 00 BE 0C F8 [10:00:29]RasterBufferAndPrint [10:00:29]line [10:00:29]line [10:00:29]line [10:00:29]line [10:00:29]line [10:00:29]written 0, free lines is 3268 [10:00:29]MH_Cut [10:00:29]Write to MH i2c: D1 01 00 13 1B 01 00 [10:00:29]Write i2c OK [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: D1 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: D1 01 00 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: D1 01 00 13 1B 00 FF [10:00:29]Write to MH i2c: 01 00 00 14 1B 2F [10:00:29]Write i2c OK [10:00:29]MH_I2C_Read... [10:00:30]OFD Sender: No OFD packet to send [10:00:30]*** Cut start [10:00:30]*** Partial cut [10:00:30]*** CUTSNS_PIN = 1 [10:00:30]*** CUTSNS_PIN = 0 [10:00:31]*** Brake cut motor [10:00:31]Read from MH i2c: 01 [10:00:31]MH_I2C_Read... [10:00:31]*** Stop cut motor [10:00:31]*** Cut end [10:00:31]Read from MH i2c: 01 07 00 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: 01 07 00 14 1B 00 00 00 00 00 FF 0F 44 [10:00:31]process_action close_receipt done [10:00:31]requested_data is exist [10:00:31]produce_requested_data [10:00:31]requested_item fm.sn is exist - process it [10:00:31]wFMCommunicate request_size=4 [10:00:31]MH_SAM_APDU [10:00:31]CAPDU: 80 11 00 00 [10:00:31]Write to MH i2c: E2 08 00 15 1B 80 11 00 00 00 00 00 00 AA [10:00:31]Write i2c OK [10:00:31]MH_I2C_Read... [10:00:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:31]Read from MH i2c: E2 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: E2 17 00 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: E2 17 00 15 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 01 [10:00:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:00:31]wFMCommunicate OK [10:00:31]requested_item fd.num is exist - process it [10:00:31]SAM_PROTO_GetFieldsCounters [10:00:31]wFMCommunicate request_size=4 [10:00:31]MH_SAM_APDU [10:00:31]CAPDU: 80 13 00 00 [10:00:31]Write to MH i2c: E2 08 00 16 1B 80 13 00 00 00 00 00 00 AD [10:00:31]Write i2c OK [10:00:31]MH_I2C_Read... [10:00:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:31]Read from MH i2c: E2 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: E2 62 00 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: E2 62 00 16 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 17 7B 03 00 0E 04 04 00 17 02 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 7D [10:00:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 17 7B 03 00 0E 04 04 00 17 02 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:00:31]wFMCommunicate OK [10:00:31]SAM_PROTO_GetFieldsCounters done [10:00:31]requested_item shift.num is exist - process it [10:00:31]requested_item shift.opened is exist - process it [10:00:31]req_shift_opened [10:00:31]FM_GetShiftState [10:00:31]SAM_PROTO_GetShiftState [10:00:31]wFMCommunicate request_size=4 [10:00:31]MH_SAM_APDU [10:00:31]CAPDU: 80 13 01 00 [10:00:31]Write to MH i2c: E2 08 00 17 1B 80 13 01 00 00 00 00 00 AF [10:00:31]Write i2c OK [10:00:31]MH_I2C_Read... [10:00:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:31]Read from MH i2c: E2 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: E2 0E 00 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: E2 0E 00 17 1B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 76 [10:00:31]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:00:31]wFMCommunicate OK [10:00:31]SAM_PROTO_GetShiftState done [10:00:31]FM_GetShiftState done [10:00:31]req_shift_opened done [10:00:31]requested_item shift.open_date is exist - process it [10:00:31]req_shift_open_date [10:00:31]req_shift_open_date done [10:00:31]produce_requested_data done [10:00:31]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228119,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [10:00:31]process_action_free close_receipt [10:00:31]json_value_free [10:00:31]json_value_free done [10:00:31]process_json_proto returns [10:00:31]Send response to host [10:00:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228119,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [10:00:31]free response buf [10:00:31]execute_script done [10:00:31]execute_script returns [10:00:31]free content buf [10:00:31]Sock 7.Close socket [10:00:31]Sock 7.Thread stoped [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:45]accept exits with 9 [10:00:45]New connection [10:00:45]New thread 3067137380 created [10:00:45]Thread 3066994020 joined [10:00:45]Waiting for new connection... [10:00:45] Sock 9.Parse request [10:00:45]Sock 9.Check first char [10:00:45]Sock 9.First char is OK [10:00:45]request: POST /json_proto HTTP/1.0 [10:00:45]Method: POST [10:00:45]URL: /json_proto [10:00:45]Method is POST - this is cgi request [10:00:45]url: /json_proto [10:00:45]query_string will be loaded in cgi processing [10:00:45]execute_cgi json_proto POST (null) [10:00:45]execute_cgi path=json_proto method=POST [10:00:45]POST find Content-Length [10:00:45]Host: 172.17.44.195:8080 [10:00:45]Content-Length: 678 [10:00:45]Content-Type: application/json [10:00:45] [10:00:45]POST finish read [10:00:45]Found Content-Length = 678 [10:00:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:00:45]execute_script... [10:00: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)1964476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:00:45]POST & json_proto [10:00:45]process_json_proto [10:00:45]json parsed OK: [10:00:45]protocol is kg_v1.0 [10:00:45]action value=close_receipt [10:00:45]process_action close_receipt [10:00:45]cmd_close_receipt [10:00:45]MH_GetDate [10:00:45]Write to MH i2c: F0 00 00 18 1B 22 [10:00:45]Write i2c OK [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: F0 [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: F0 09 00 [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: F0 09 00 18 1B 00 D1 77 17 67 82 C9 CF 66 71 [10:00:45]GetLastDocTimeStamp 1729591230 [10:00:45]current date 1729591249 [10:00:45]FM_GetShiftState [10:00:45]SAM_PROTO_GetShiftState [10:00:45]wFMCommunicate request_size=4 [10:00:45]MH_SAM_APDU [10:00:45]CAPDU: 80 13 01 00 [10:00:45]Write to MH i2c: E2 08 00 19 1B 80 13 01 00 00 00 00 00 B1 [10:00:45]Write i2c OK [10:00:45]MH_I2C_Read... [10:00:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:45]Read from MH i2c: E2 [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: E2 0E 00 [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: E2 0E 00 19 1B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 78 [10:00:45]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:00:45]wFMCommunicate OK [10:00:45]SAM_PROTO_GetShiftState done [10:00:45]FM_GetShiftState done [10:00:45]opened in 1729555538 [10:00:45]opened+sec_in_day 1729641938 [10:00:45]quantity*price = 50041 [10:00:45]sum+1 = 50042 [10:00:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 84 22.10.2024 10:00 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228120 ФПД: 102884841215838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100049&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228120&fm=102884841215838&tin=02508201610067®Number=0000000000091685&sum=50000 [10:00:46]StoreToDocumentArchive [10:00:46]shift 535 fd 228120 [10:00:46]save to /storage/0535/doc_00228120 [10:00:46]save last doc name /storage/0535/doc_00228120 to /storage/kkm_last_doc_name [10:00:46]save OK [10:00:46]Clear old archive folders... [10:00:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:00:46]tlvbuf is B6F85320 [10:00:46]SAM_PROTO_ClearQueue [10:00:46]wFMCommunicate request_size=4 [10:00:46]MH_SAM_APDU [10:00:46]CAPDU: 80 09 00 00 [10:00:46]Write to MH i2c: E2 08 00 26 1B 80 09 00 00 00 00 00 00 B3 [10:00:46]Write i2c OK [10:00:46]MH_I2C_Read... [10:00:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:46]Read from MH i2c: E2 [10:00:46]MH_I2C_Read... [10:00:46]Read from MH i2c: E2 03 00 [10:00:46]MH_I2C_Read... [10:00:46]Read from MH i2c: E2 03 00 26 1B 00 90 00 B5 [10:00:46]RAPDU: 90 00 [10:00:46]wFMCommunicate OK [10:00:46]SAM_PROTO_ClearQueue done [10:00:46]KKMCreateOFDPacket [10:00:46]OFDProtocolAddRootSTLVToBuf [10:00:46]FM_MakeSignedData [10:00:46]FM_MakeSignedData [10:00:46]SAM_PROTO_SignData [10:00:46]wFMCommunicate request_size=4 [10:00:46]MH_SAM_APDU [10:00:46]CAPDU: 80 0D 01 02 [10:00:46]Write to MH i2c: E2 08 00 27 1B 80 0D 01 02 00 00 00 00 BB [10:00:46]Write i2c OK [10:00:46]MH_I2C_Read... [10:00:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:46]Read from MH i2c: E2 [10:00:46]MH_I2C_Read... [10:00:46]Read from MH i2c: E2 03 00 [10:00:46]MH_I2C_Read... [10:00:46]Read from MH i2c: E2 03 00 27 1B 00 90 00 B6 [10:00:46]RAPDU: 90 00 [10:00:46]wFMCommunicate OK [10:00:46]wFMCommunicate request_size=255 [10:00:46]MH_SAM_APDU [10:00: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 D1 77 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 18 7B 03 00 35 04 06 00 5D [10:00:46]Write to MH i2c: E2 02 01 28 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 D1 77 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 18 7B 03 00 35 04 06 00 5D 00 00 78 [10:00:46]Write i2c OK [10:00:46]MH_I2C_Read... [10:00:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:47]Read from MH i2c: E2 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: E2 03 00 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: E2 03 00 28 1B 00 90 00 B7 [10:00:47]RAPDU: 90 00 [10:00:47]wFMCommunicate OK [10:00:47]wFMCommunicate request_size=10 [10:00:47]MH_SAM_APDU [10:00:47]CAPDU: 80 0D 02 02 05 92 BE 69 D7 5E [10:00:47]Write to MH i2c: E2 0D 00 29 1B 80 0D 02 02 05 00 92 BE 69 D7 5E 00 00 B6 [10:00:47]Write i2c OK [10:00:47]MH_I2C_Read... [10:00:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:47]Read from MH i2c: E2 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: E2 03 00 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: E2 03 00 29 1B 00 90 00 B8 [10:00:47]RAPDU: 90 00 [10:00:47]wFMCommunicate OK [10:00:47]wFMCommunicate request_size=4 [10:00:47]MH_SAM_APDU [10:00:47]CAPDU: 80 0D 03 02 [10:00:47]Write to MH i2c: E2 08 00 2A 1B 80 0D 03 02 00 00 00 00 C0 [10:00:47]Write i2c OK [10:00:47]MH_I2C_Read... [10:00:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:47]Read from MH i2c: E2 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: E2 0B 00 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: E2 0B 00 2A 1B 00 85 32 9F CF 1B 27 39 E9 90 00 4A [10:00:47]RAPDU: 85 32 9F CF 1B 27 39 E9 90 00 [10:00:47]wFMCommunicate OK [10:00:47]SAM_PROTO_SignData done [10:00:47]FM_MakeSignedData done [10:00:47]CreateOFDProtocolMessage [10:00:47]wFMCommunicate request_size=4 [10:00:47]MH_SAM_APDU [10:00:47]CAPDU: 80 11 00 00 [10:00:47]Write to MH i2c: E2 08 00 2B 1B 80 11 00 00 00 00 00 00 C0 [10:00:47]Write i2c OK [10:00:47]MH_I2C_Read... [10:00:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:47]Read from MH i2c: E2 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: E2 17 00 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: E2 17 00 2B 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 17 [10:00:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:00:47]wFMCommunicate OK [10:00:47]CreateOFDProtocolMessage done [10:00:47]OFDSenderStorePacket 228120 [10:00:47]StoreOFDPacket docnum=228120 [10:00:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 36 74 07 01 BD 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 D1 77 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 18 7B 03 00 35 04 06 00 5D 92 BE 69 D7 5E 85 32 9F CF 1B 27 39 E9 [10:00:47]CheckFolder [10:00:47]dirname=/storage/ofd_packets [10:00:47]CheckFolder done [10:00:47]ProducePacketName [10:00:47]name=ofd_packets/00228120 [10:00:47]NVStorageSaveData ofd_packets/00228120 [10:00:47]File name is /storage/ofd_packets/00228120 [10:00:47]Write 301 bytes [10:00:47]NVStorageSaveData done [10:00:47]OFDSenderStorePacket done [10:00:47]KKMCreateOFDPacket done [10:00:47]NVStorageSaveData kkm_last_timestamp [10:00:47]File name is /storage/kkm_last_timestamp [10:00:47]Write 4 bytes [10:00:47]NVStorageSaveData done [10:00:47]ExternCall_PrintAddStr [10:00:47]wPrintStart [10:00:47]Write to MH i2c: 01 00 00 2C 1B 47 [10:00:47]Write i2c OK [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: 01 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: 01 07 00 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: 01 07 00 2C 1B 00 00 00 00 00 FF 0F 5C [10:00:47]RasterBufferAndPrint [10:00:47]line Счет N : (1)1964476 [10:00:47]line ИНН: 02508201610067 [10:00:47]line Контрольно-Кассовый Чек [10:00:47]line ПРОДАЖА [10:00:47]line ТРК (МРК, ГНК) : 43 [10:00:47]line Товар: 2710124130 [10:00:47]line Аи-92-К-5 [10:00:47]line 7.480 * 66.90 [10:00:47]line = 500.41 [10:00:47]line НДС 12% НСП 1% [10:00:47]line > о реализуемом товаре [10:00:47]line ОКРУГЛЕНИЕ: -0.41 [10:00:47]line ИТОГО: 500.00 [10:00:47]line Внесено: 500.00 [10:00:47]line СДАЧА: 0.00 [10:00:47]line НСП 1% : 4.43 [10:00:47]line НДС 12% : 53.14 [10:00:47]line Наличными: 500.00 [10:00:47]line Безнал.: 0.00 [10:00:47]line Место: АЗС № 133 "Партнер Нефть" [10:00:47]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:00:47]line СНО: Общий режим [10:00:47]line Чек 84 22.10.2024 10:00 [10:00:47]line Смена: 535 ФФД: 1.0 [10:00:47]line ЗНМ: 0300000091 [10:00:47]line РНМ: 0000000000091685 [10:00:47]line Версия ККМ: 001 [10:00:47]line ФМ: 0000000000871839 [10:00:47]line ФД: 228120 [10:00:47]line ФПД: 102884841215838 [10:00:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100049&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228120&fm=102884841215838&tin=02508201610067®Number=0000000000091685&sum=50000 [10:00:47]written 0, free lines is 4095 [10:00:47]OFD Sender: Processing packet 228120 [packets to send 38, broken 37] [10:00:47]ProducePacketName [10:00:47]name=ofd_packets/00228120 [10:00:47]OFD Sender: To server: pG, [10:00:47]CommunicateWithHost lk.salyk.kg:30040 [10:00:47]ConnectInit lk.salyk.kg [10:00:47]Connected sock=10 [10:00:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 36 74 07 01 BD 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 D1 77 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 18 7B 03 00 35 04 06 00 5D 92 BE 69 D7 5E 85 32 9F CF 1B 27 39 E9 [10:00:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 95 4E 47 00 53 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 18 7B 03 00 F4 03 04 00 C9 22 17 67 B6 04 01 00 00 0E 11 F2 9D D4 9E 5C 4D [10:00:47]CommunicateWithHost err = 0 [10:00:47]CheckOFDResponse [10:00:47]1017 (14) - 77093643461234 [10:00:47]1041 (16) - 0000000000871839 [10:00:47]1040 (4) - 228120 [10:00:47]1012 (4) - 22.10.2024 03:58 [10:00:47]1206 (1) - 0 [10:00:47]OFD Sender: Remove packet 228120 [10:00:47]ProducePacketName [10:00:47]name=ofd_packets/00228120 [10:00:47]NVStorageDeleteData [10:00:47]Write to MH i2c: 01 00 00 56 1B 71 [10:00:47]Write i2c OK [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: 01 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: 01 07 00 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: 01 07 00 56 1B 00 00 00 00 00 C6 0C 4A [10:00:47]RasterBufferAndPrint [10:00:47]line [10:00:47]line [10:00:47]line [10:00:47]line [10:00:47]line [10:00:47]written 0, free lines is 3278 [10:00:47]MH_Cut [10:00:47]Write to MH i2c: D1 01 00 5D 1B 01 4A [10:00:47]Write i2c OK [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: D1 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: D1 01 00 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: D1 01 00 5D 1B 00 49 [10:00:47]Write to MH i2c: 01 00 00 5E 1B 79 [10:00:47]Write i2c OK [10:00:47]MH_I2C_Read... [10:00:48]OFD Sender: No OFD packet to send [10:00:48]*** Cut start [10:00:48]*** Partial cut [10:00:48]*** CUTSNS_PIN = 1 [10:00:48]*** CUTSNS_PIN = 0 [10:00:49]*** Brake cut motor [10:00:49]Read from MH i2c: 01 [10:00:49]MH_I2C_Read... [10:00:49]*** Stop cut motor [10:00:49]*** Cut end [10:00:49]Read from MH i2c: 01 07 00 [10:00:49]MH_I2C_Read... [10:00:49]Read from MH i2c: 01 07 00 5E 1B 00 00 00 00 00 FF 0F 8E [10:00:49]process_action close_receipt done [10:00:49]requested_data is exist [10:00:49]produce_requested_data [10:00:49]requested_item fm.sn is exist - process it [10:00:49]wFMCommunicate request_size=4 [10:00:49]MH_SAM_APDU [10:00:49]CAPDU: 80 11 00 00 [10:00:49]Write to MH i2c: E2 08 00 5F 1B 80 11 00 00 00 00 00 00 F4 [10:00:49]Write i2c OK [10:00:49]MH_I2C_Read... [10:00:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:49]Read from MH i2c: E2 [10:00:49]MH_I2C_Read... [10:00:49]Read from MH i2c: E2 17 00 [10:00:49]MH_I2C_Read... [10:00:49]Read from MH i2c: E2 17 00 5F 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4B [10:00:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:00:49]wFMCommunicate OK [10:00:49]requested_item fd.num is exist - process it [10:00:49]SAM_PROTO_GetFieldsCounters [10:00:49]wFMCommunicate request_size=4 [10:00:49]MH_SAM_APDU [10:00:49]CAPDU: 80 13 00 00 [10:00:49]Write to MH i2c: E2 08 00 60 1B 80 13 00 00 00 00 00 00 F7 [10:00:49]Write i2c OK [10:00:49]MH_I2C_Read... [10:00:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:49]Read from MH i2c: E2 [10:00:49]MH_I2C_Read... [10:00:49]Read from MH i2c: E2 62 00 [10:00:49]MH_I2C_Read... [10:00:49]Read from MH i2c: E2 62 00 60 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 18 7B 03 00 0E 04 04 00 17 02 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 CB [10:00:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 18 7B 03 00 0E 04 04 00 17 02 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:00:49]wFMCommunicate OK [10:00:49]SAM_PROTO_GetFieldsCounters done [10:00:49]requested_item shift.num is exist - process it [10:00:49]requested_item shift.opened is exist - process it [10:00:49]req_shift_opened [10:00:49]FM_GetShiftState [10:00:49]SAM_PROTO_GetShiftState [10:00:49]wFMCommunicate request_size=4 [10:00:49]MH_SAM_APDU [10:00:49]CAPDU: 80 13 01 00 [10:00:49]Write to MH i2c: E2 08 00 61 1B 80 13 01 00 00 00 00 00 F9 [10:00:49]Write i2c OK [10:00:49]MH_I2C_Read... [10:00:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:49]Read from MH i2c: E2 [10:00:49]MH_I2C_Read... [10:00:49]Read from MH i2c: E2 0E 00 [10:00:49]MH_I2C_Read... [10:00:49]Read from MH i2c: E2 0E 00 61 1B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 C0 [10:00:49]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:00:49]wFMCommunicate OK [10:00:49]SAM_PROTO_GetShiftState done [10:00:49]FM_GetShiftState done [10:00:49]req_shift_opened done [10:00:49]requested_item shift.open_date is exist - process it [10:00:49]req_shift_open_date [10:00:49]req_shift_open_date done [10:00:49]produce_requested_data done [10:00:49]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228120,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [10:00:49]process_action_free close_receipt [10:00:49]json_value_free [10:00:49]json_value_free done [10:00:49]process_json_proto returns [10:00:49]Send response to host [10:00:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228120,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [10:00:49]free response buf [10:00:49]execute_script done [10:00:49]execute_script returns [10:00:49]free content buf [10:00:49]Sock 9.Close socket [10:00:49]Sock 9.Thread stoped [10:00:53]OFD Sender: No OFD packet to send [10:00:58]OFD Sender: No OFD packet to send [10:01:03]OFD Sender: No OFD packet to send [10:01:08]OFD Sender: No OFD packet to send [10:01:13]OFD Sender: No OFD packet to send [10:01:14]accept exits with 7 [10:01:14]New connection [10:01:14]New thread 3066994020 created [10:01:14]Thread 3067137380 joined [10:01:14]Waiting for new connection... [10:01:14] Sock 7.Parse request [10:01:14]Sock 7.Check first char [10:01:14]Sock 7.First char is OK [10:01:14]request: POST /json_proto HTTP/1.0 [10:01:14]Method: POST [10:01:14]URL: /json_proto [10:01:14]Method is POST - this is cgi request [10:01:14]url: /json_proto [10:01:14]query_string will be loaded in cgi processing [10:01:14]execute_cgi json_proto POST (null) [10:01:14]execute_cgi path=json_proto method=POST [10:01:14]POST find Content-Length [10:01:14]Host: 172.17.44.195:8080 [10:01:14]Content-Length: 675 [10:01:14]Content-Type: application/json [10:01:14] [10:01:14]POST finish read [10:01:14]Found Content-Length = 675 [10:01:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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:01:14]execute_script... [10: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)1964479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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:01:14]POST & json_proto [10:01:14]process_json_proto [10:01:14]json parsed OK: [10:01:14]protocol is kg_v1.0 [10:01:14]action value=close_receipt [10:01:14]process_action close_receipt [10:01:14]cmd_close_receipt [10:01:14]MH_GetDate [10:01:14]Write to MH i2c: F0 00 00 62 1B 6C [10:01:14]Write i2c OK [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: F0 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: F0 09 00 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: F0 09 00 62 1B 00 ED 77 17 67 82 C9 CF 66 D7 [10:01:14]GetLastDocTimeStamp 1729591249 [10:01:14]current date 1729591277 [10:01:14]FM_GetShiftState [10:01:14]SAM_PROTO_GetShiftState [10:01:14]wFMCommunicate request_size=4 [10:01:14]MH_SAM_APDU [10:01:14]CAPDU: 80 13 01 00 [10:01:14]Write to MH i2c: E2 08 00 63 1B 80 13 01 00 00 00 00 00 FB [10:01:14]Write i2c OK [10:01:14]MH_I2C_Read... [10:01:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:14]Read from MH i2c: E2 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: E2 0E 00 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: E2 0E 00 63 1B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 C2 [10:01:14]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:01:14]wFMCommunicate OK [10:01:14]SAM_PROTO_GetShiftState done [10:01:14]FM_GetShiftState done [10:01:14]opened in 1729555538 [10:01:14]opened+sec_in_day 1729641938 [10:01:14]quantity*price = 60045 [10:01:14]sum+1 = 60047 [10:01:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 85 22.10.2024 10:01 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228121 ФПД: 238153168398069 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100117&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228121&fm=238153168398069&tin=02508201610067®Number=0000000000091685&sum=60000 [10:01:15]StoreToDocumentArchive [10:01:15]shift 535 fd 228121 [10:01:15]save to /storage/0535/doc_00228121 [10:01:15]save last doc name /storage/0535/doc_00228121 to /storage/kkm_last_doc_name [10:01:15]save OK [10:01:15]Clear old archive folders... [10:01:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:01:15]tlvbuf is 00875A40 [10:01:15]SAM_PROTO_ClearQueue [10:01:15]wFMCommunicate request_size=4 [10:01:15]MH_SAM_APDU [10:01:15]CAPDU: 80 09 00 00 [10:01:15]Write to MH i2c: E2 08 00 70 1B 80 09 00 00 00 00 00 00 FD [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:15]Read from MH i2c: E2 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 03 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 03 00 70 1B 00 90 00 FF [10:01:15]RAPDU: 90 00 [10:01:15]wFMCommunicate OK [10:01:15]SAM_PROTO_ClearQueue done [10:01:15]KKMCreateOFDPacket [10:01:15]OFDProtocolAddRootSTLVToBuf [10:01:15]FM_MakeSignedData [10:01:15]FM_MakeSignedData [10:01:15]SAM_PROTO_SignData [10:01:15]wFMCommunicate request_size=4 [10:01:15]MH_SAM_APDU [10:01:15]CAPDU: 80 0D 01 02 [10:01:15]Write to MH i2c: E2 08 00 71 1B 80 0D 01 02 00 00 00 00 05 [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:15]Read from MH i2c: E2 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 03 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 03 00 71 1B 00 90 00 00 [10:01:15]RAPDU: 90 00 [10:01:15]wFMCommunicate OK [10:01:15]wFMCommunicate request_size=255 [10:01:15]MH_SAM_APDU [10:01:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 55 00 00 00 F4 03 04 00 ED 77 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 19 7B 03 00 35 04 06 00 D8 99 5B 01 [10:01:15]Write to MH i2c: E2 02 01 72 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 55 00 00 00 F4 03 04 00 ED 77 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 19 7B 03 00 35 04 06 00 D8 99 5B 01 00 00 07 [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:15]Read from MH i2c: E2 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 03 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 03 00 72 1B 00 90 00 01 [10:01:15]RAPDU: 90 00 [10:01:15]wFMCommunicate OK [10:01:15]wFMCommunicate request_size=7 [10:01:15]MH_SAM_APDU [10:01:15]CAPDU: 80 0D 02 02 02 26 F5 [10:01:15]Write to MH i2c: E2 0A 00 73 1B 80 0D 02 02 02 00 26 F5 00 00 27 [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:15]Read from MH i2c: E2 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 03 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 03 00 73 1B 00 90 00 02 [10:01:15]RAPDU: 90 00 [10:01:15]wFMCommunicate OK [10:01:15]wFMCommunicate request_size=4 [10:01:15]MH_SAM_APDU [10:01:15]CAPDU: 80 0D 03 02 [10:01:15]Write to MH i2c: E2 08 00 74 1B 80 0D 03 02 00 00 00 00 0A [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:15]Read from MH i2c: E2 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 0B 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 0B 00 74 1B 00 CC AF 1B 6B D9 45 0D 4E 90 00 85 [10:01:15]RAPDU: CC AF 1B 6B D9 45 0D 4E 90 00 [10:01:15]wFMCommunicate OK [10:01:15]SAM_PROTO_SignData done [10:01:15]FM_MakeSignedData done [10:01:15]CreateOFDProtocolMessage [10:01:15]wFMCommunicate request_size=4 [10:01:15]MH_SAM_APDU [10:01:15]CAPDU: 80 11 00 00 [10:01:15]Write to MH i2c: E2 08 00 75 1B 80 11 00 00 00 00 00 00 0A [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:15]Read from MH i2c: E2 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 17 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 17 00 75 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 61 [10:01:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:01:15]wFMCommunicate OK [10:01:15]CreateOFDProtocolMessage done [10:01:15]OFDSenderStorePacket 228121 [10:01:15]StoreOFDPacket docnum=228121 [10:01:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 FE 75 04 01 38 DF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 55 00 00 00 F4 03 04 00 ED 77 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 19 7B 03 00 35 04 06 00 D8 99 5B 01 26 F5 CC AF 1B 6B D9 45 0D 4E [10:01:15]CheckFolder [10:01:15]dirname=/storage/ofd_packets [10:01:15]CheckFolder done [10:01:15]ProducePacketName [10:01:15]name=ofd_packets/00228121 [10:01:15]NVStorageSaveData ofd_packets/00228121 [10:01:15]File name is /storage/ofd_packets/00228121 [10:01:15]Write 298 bytes [10:01:15]NVStorageSaveData done [10:01:15]OFDSenderStorePacket done [10:01:15]KKMCreateOFDPacket done [10:01:15]NVStorageSaveData kkm_last_timestamp [10:01:15]File name is /storage/kkm_last_timestamp [10:01:15]Write 4 bytes [10:01:15]NVStorageSaveData done [10:01:15]ExternCall_PrintAddStr [10:01:15]wPrintStart [10:01:15]Write to MH i2c: 01 00 00 76 1B 91 [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: 01 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: 01 07 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: 01 07 00 76 1B 00 00 00 00 00 FF 0F A6 [10:01:15]RasterBufferAndPrint [10:01:15]line Счет N : (1)1964479 [10:01:15]line ИНН: 02508201610067 [10:01:15]line Контрольно-Кассовый Чек [10:01:15]line ПРОДАЖА [10:01:15]line ТРК (МРК, ГНК) : 31 [10:01:15]line Товар: 2710194210 [10:01:15]line ДТ-К-5 [10:01:15]line 7.880 * 76.20 [10:01:15]line = 600.46 [10:01:15]line НДС 12% НСП 1% [10:01:15]line > о реализуемом товаре [10:01:15]line ОКРУГЛЕНИЕ: -0.46 [10:01:15]line ИТОГО: 600.00 [10:01:15]line Внесено: 600.00 [10:01:15]line СДАЧА: 0.00 [10:01:15]line НСП 1% : 5.31 [10:01:15]line НДС 12% : 63.77 [10:01:15]line Наличными: 600.00 [10:01:15]line Безнал.: 0.00 [10:01:15]line Место: АЗС № 133 "Партнер Нефть" [10:01:15]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:01:15]line СНО: Общий режим [10:01:15]line Чек 85 22.10.2024 10:01 [10:01:15]line Смена: 535 ФФД: 1.0 [10:01:15]line ЗНМ: 0300000091 [10:01:15]line РНМ: 0000000000091685 [10:01:15]line Версия ККМ: 001 [10:01:15]line ФМ: 0000000000871839 [10:01:15]line ФД: 228121 [10:01:15]line ФПД: 238153168398069 [10:01:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100117&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228121&fm=238153168398069&tin=02508201610067®Number=0000000000091685&sum=60000 [10:01:16]OFD Sender: Processing packet 228121 [packets to send 38, broken 37] [10:01:16]ProducePacketName [10:01:16]name=ofd_packets/00228121 [10:01:16]OFD Sender: To server: pG, [10:01:16]CommunicateWithHost lk.salyk.kg:30040 [10:01:16]ConnectInit lk.salyk.kg [10:01:16]written 0, free lines is 4095 [10:01:16]Connected sock=10 [10:01:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 FE 75 04 01 38 DF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 55 00 00 00 F4 03 04 00 ED 77 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 19 7B 03 00 35 04 06 00 D8 99 5B 01 26 F5 CC AF 1B 6B D9 45 0D 4E [10:01:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 E2 E4 47 00 A9 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 19 7B 03 00 F4 03 04 00 E6 22 17 67 B6 04 01 00 00 A6 DD E5 51 27 0D B0 43 [10:01:16]CommunicateWithHost err = 0 [10:01:16]CheckOFDResponse [10:01:16]1017 (14) - 77093643461234 [10:01:16]1041 (16) - 0000000000871839 [10:01:16]1040 (4) - 228121 [10:01:16]1012 (4) - 22.10.2024 03:58 [10:01:16]1206 (1) - 0 [10:01:16]OFD Sender: Remove packet 228121 [10:01:16]ProducePacketName [10:01:16]name=ofd_packets/00228121 [10:01:16]NVStorageDeleteData [10:01:16]Write to MH i2c: 01 00 00 A0 1B BB [10:01:16]Write i2c OK [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: 01 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: 01 07 00 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: 01 07 00 A0 1B 00 00 00 00 00 C8 0C 96 [10:01:16]RasterBufferAndPrint [10:01:16]line [10:01:16]line [10:01:16]line [10:01:16]line [10:01:16]line [10:01:16]written 0, free lines is 3277 [10:01:16]MH_Cut [10:01:16]Write to MH i2c: D1 01 00 A7 1B 01 94 [10:01:16]Write i2c OK [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: D1 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: D1 01 00 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: D1 01 00 A7 1B 00 93 [10:01:16]Write to MH i2c: 01 00 00 A8 1B C3 [10:01:16]Write i2c OK [10:01:16]MH_I2C_Read... [10:01:17]OFD Sender: No OFD packet to send [10:01:17]*** Cut start [10:01:17]*** Partial cut [10:01:17]*** CUTSNS_PIN = 1 [10:01:17]*** CUTSNS_PIN = 0 [10:01:17]*** Brake cut motor [10:01:18]Read from MH i2c: 01 [10:01:18]MH_I2C_Read... [10:01:18]*** Stop cut motor [10:01:18]*** Cut end [10:01:18]Read from MH i2c: 01 07 00 [10:01:18]MH_I2C_Read... [10:01:18]Read from MH i2c: 01 07 00 A8 1B 00 00 00 00 00 FF 0F D8 [10:01:18]process_action close_receipt done [10:01:18]requested_data is exist [10:01:18]produce_requested_data [10:01:18]requested_item fm.sn is exist - process it [10:01:18]wFMCommunicate request_size=4 [10:01:18]MH_SAM_APDU [10:01:18]CAPDU: 80 11 00 00 [10:01:18]Write to MH i2c: E2 08 00 A9 1B 80 11 00 00 00 00 00 00 3E [10:01:18]Write i2c OK [10:01:18]MH_I2C_Read... [10:01:18]Read from MH i2c: E2 [10:01:18]MH_I2C_Read... [10:01:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:18]Read from MH i2c: E2 17 00 [10:01:18]MH_I2C_Read... [10:01:18]Read from MH i2c: E2 17 00 A9 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 95 [10:01:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:01:18]wFMCommunicate OK [10:01:18]requested_item fd.num is exist - process it [10:01:18]SAM_PROTO_GetFieldsCounters [10:01:18]wFMCommunicate request_size=4 [10:01:18]MH_SAM_APDU [10:01:18]CAPDU: 80 13 00 00 [10:01:18]Write to MH i2c: E2 08 00 AA 1B 80 13 00 00 00 00 00 00 41 [10:01:18]Write i2c OK [10:01:18]MH_I2C_Read... [10:01:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:18]Read from MH i2c: E2 [10:01:18]MH_I2C_Read... [10:01:18]Read from MH i2c: E2 62 00 [10:01:18]MH_I2C_Read... [10:01:18]Read from MH i2c: E2 62 00 AA 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 19 7B 03 00 0E 04 04 00 17 02 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 19 [10:01:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 19 7B 03 00 0E 04 04 00 17 02 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:01:18]wFMCommunicate OK [10:01:18]SAM_PROTO_GetFieldsCounters done [10:01:18]requested_item shift.num is exist - process it [10:01:18]requested_item shift.opened is exist - process it [10:01:18]req_shift_opened [10:01:18]FM_GetShiftState [10:01:18]SAM_PROTO_GetShiftState [10:01:18]wFMCommunicate request_size=4 [10:01:18]MH_SAM_APDU [10:01:18]CAPDU: 80 13 01 00 [10:01:18]Write to MH i2c: E2 08 00 AB 1B 80 13 01 00 00 00 00 00 43 [10:01:18]Write i2c OK [10:01:18]MH_I2C_Read... [10:01:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:18]Read from MH i2c: E2 [10:01:18]MH_I2C_Read... [10:01:18]Read from MH i2c: E2 0E 00 [10:01:18]MH_I2C_Read... [10:01:18]Read from MH i2c: E2 0E 00 AB 1B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 0A [10:01:18]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:01:18]wFMCommunicate OK [10:01:18]SAM_PROTO_GetShiftState done [10:01:18]FM_GetShiftState done [10:01:18]req_shift_opened done [10:01:18]requested_item shift.open_date is exist - process it [10:01:18]req_shift_open_date [10:01:18]req_shift_open_date done [10:01:18]produce_requested_data done [10:01:18]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228121,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [10:01:18]process_action_free close_receipt [10:01:18]json_value_free [10:01:18]json_value_free done [10:01:18]process_json_proto returns [10:01:18]Send response to host [10:01:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228121,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [10:01:18]free response buf [10:01:18]execute_script done [10:01:18]execute_script returns [10:01:18]free content buf [10:01:18]Sock 7.Close socket [10:01:18]Sock 7.Thread stoped [10:01:22]OFD Sender: No OFD packet to send [10:01:27]OFD Sender: No OFD packet to send [10:01:32]OFD Sender: No OFD packet to send [10:01:37]OFD Sender: No OFD packet to send [10:01:42]OFD Sender: No OFD packet to send [10:01:47]OFD Sender: No OFD packet to send [10:01:52]OFD Sender: No OFD packet to send [10:01:52]accept exits with 9 [10:01:52]New connection [10:01:52]New thread 3067137380 created [10:01:52]Thread 3066994020 joined [10:01:52]Waiting for new connection... [10:01:52] Sock 9.Parse request [10:01:52]Sock 9.Check first char [10:01:52]Sock 9.First char is OK [10:01:52]request: POST /json_proto HTTP/1.0 [10:01:52]Method: POST [10:01:52]URL: /json_proto [10:01:52]Method is POST - this is cgi request [10:01:52]url: /json_proto [10:01:52]query_string will be loaded in cgi processing [10:01:52]execute_cgi json_proto POST (null) [10:01:52]execute_cgi path=json_proto method=POST [10:01:52]POST find Content-Length [10:01:52]Host: 172.17.44.195:8080 [10:01:52]Content-Length: 677 [10:01:52]Content-Type: application/json [10:01:52] [10:01:52]POST finish read [10:01:52]Found Content-Length = 677 [10:01:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.24, "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" ] } } [10:01:52]execute_script... [10:01: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)1964475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.24, "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" ] } } [10:01:52]POST & json_proto [10:01:52]process_json_proto [10:01:52]json parsed OK: [10:01:52]protocol is kg_v1.0 [10:01:52]action value=close_receipt [10:01:52]process_action close_receipt [10:01:52]cmd_close_receipt [10:01:52]MH_GetDate [10:01:52]Write to MH i2c: F0 00 00 AC 1B B6 [10:01:52]Write i2c OK [10:01:52]MH_I2C_Read... [10:01:52]Read from MH i2c: F0 [10:01:52]MH_I2C_Read... [10:01:52]Read from MH i2c: F0 09 00 [10:01:52]MH_I2C_Read... [10:01:52]Read from MH i2c: F0 09 00 AC 1B 00 13 78 17 67 82 C9 CF 66 48 [10:01:52]GetLastDocTimeStamp 1729591277 [10:01:52]current date 1729591315 [10:01:52]FM_GetShiftState [10:01:52]SAM_PROTO_GetShiftState [10:01:52]wFMCommunicate request_size=4 [10:01:52]MH_SAM_APDU [10:01:52]CAPDU: 80 13 01 00 [10:01:52]Write to MH i2c: E2 08 00 AD 1B 80 13 01 00 00 00 00 00 45 [10:01:52]Write i2c OK [10:01:52]MH_I2C_Read... [10:01:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:52]Read from MH i2c: E2 [10:01:52]MH_I2C_Read... [10:01:52]Read from MH i2c: E2 0E 00 [10:01:52]MH_I2C_Read... [10:01:52]Read from MH i2c: E2 0E 00 AD 1B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 0C [10:01:52]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:01:52]wFMCommunicate OK [10:01:52]SAM_PROTO_GetShiftState done [10:01:52]FM_GetShiftState done [10:01:52]opened in 1729555538 [10:01:52]opened+sec_in_day 1729641938 [10:01:52]quantity*price = 200023 [10:01:52]sum+1 = 200025 [10:01:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 86 22.10.2024 10:01 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228122 ФПД: 280572757280625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100155&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228122&fm=280572757280625&tin=02508201610067®Number=0000000000091685&sum=200000 [10:01:53]StoreToDocumentArchive [10:01:53]shift 535 fd 228122 [10:01:53]save to /storage/0535/doc_00228122 [10:01:53]save last doc name /storage/0535/doc_00228122 to /storage/kkm_last_doc_name [10:01:53]save OK [10:01:53]Clear old archive folders... [10:01:53]ProcessDocumentItem done err = 0, tmpTLVsize=245 [10:01:53]tlvbuf is 008B7390 [10:01:53]SAM_PROTO_ClearQueue [10:01:53]wFMCommunicate request_size=4 [10:01:53]MH_SAM_APDU [10:01:53]CAPDU: 80 09 00 00 [10:01:53]Write to MH i2c: E2 08 00 BA 1B 80 09 00 00 00 00 00 00 47 [10:01:53]Write i2c OK [10:01:53]MH_I2C_Read... [10:01:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:53]Read from MH i2c: E2 [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: E2 03 00 [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: E2 03 00 BA 1B 00 90 00 49 [10:01:53]RAPDU: 90 00 [10:01:53]wFMCommunicate OK [10:01:53]SAM_PROTO_ClearQueue done [10:01:53]KKMCreateOFDPacket [10:01:53]OFDProtocolAddRootSTLVToBuf [10:01:53]FM_MakeSignedData [10:01:53]FM_MakeSignedData [10:01:53]SAM_PROTO_SignData [10:01:53]wFMCommunicate request_size=4 [10:01:53]MH_SAM_APDU [10:01:53]CAPDU: 80 0D 01 02 [10:01:53]Write to MH i2c: E2 08 00 BB 1B 80 0D 01 02 00 00 00 00 4F [10:01:53]Write i2c OK [10:01:53]MH_I2C_Read... [10:01:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:53]Read from MH i2c: E2 [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: E2 03 00 [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: E2 03 00 BB 1B 00 90 00 4A [10:01:53]RAPDU: 90 00 [10:01:53]wFMCommunicate OK [10:01:53]wFMCommunicate request_size=254 [10:01:53]MH_SAM_APDU [10:01:53]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 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 56 00 00 00 F4 03 04 00 13 78 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1A 7B 03 00 35 04 06 00 FF 2D EF 88 07 71 [10:01:53]Write to MH i2c: E2 01 01 BC 1B 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 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 56 00 00 00 F4 03 04 00 13 78 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1A 7B 03 00 35 04 06 00 FF 2D EF 88 07 71 00 00 5A [10:01:53]Write i2c OK [10:01:53]MH_I2C_Read... [10:01:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:53]Read from MH i2c: E2 [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: E2 03 00 [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: E2 03 00 BC 1B 00 90 00 4B [10:01:53]RAPDU: 90 00 [10:01:53]wFMCommunicate OK [10:01:53]wFMCommunicate request_size=4 [10:01:53]MH_SAM_APDU [10:01:53]CAPDU: 80 0D 03 02 [10:01:53]Write to MH i2c: E2 08 00 BD 1B 80 0D 03 02 00 00 00 00 53 [10:01:53]Write i2c OK [10:01:53]MH_I2C_Read... [10:01:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:54]Read from MH i2c: E2 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: E2 0B 00 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: E2 0B 00 BD 1B 00 63 E4 86 2F D5 A4 1A 03 90 00 E6 [10:01:54]RAPDU: 63 E4 86 2F D5 A4 1A 03 90 00 [10:01:54]wFMCommunicate OK [10:01:54]SAM_PROTO_SignData done [10:01:54]FM_MakeSignedData done [10:01:54]CreateOFDProtocolMessage [10:01:54]wFMCommunicate request_size=4 [10:01:54]MH_SAM_APDU [10:01:54]CAPDU: 80 11 00 00 [10:01:54]Write to MH i2c: E2 08 00 BE 1B 80 11 00 00 00 00 00 00 53 [10:01:54]Write i2c OK [10:01:54]MH_I2C_Read... [10:01:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:54]Read from MH i2c: E2 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: E2 17 00 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: E2 17 00 BE 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AA [10:01:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:01:54]wFMCommunicate OK [10:01:54]CreateOFDProtocolMessage done [10:01:54]OFDSenderStorePacket 228122 [10:01:54]StoreOFDPacket docnum=228122 [10:01:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 05 05 01 01 6A 62 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 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 56 00 00 00 F4 03 04 00 13 78 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1A 7B 03 00 35 04 06 00 FF 2D EF 88 07 71 63 E4 86 2F D5 A4 1A 03 [10:01:54]CheckFolder [10:01:54]dirname=/storage/ofd_packets [10:01:54]CheckFolder done [10:01:54]ProducePacketName [10:01:54]name=ofd_packets/00228122 [10:01:54]NVStorageSaveData ofd_packets/00228122 [10:01:54]File name is /storage/ofd_packets/00228122 [10:01:54]Write 295 bytes [10:01:54]NVStorageSaveData done [10:01:54]OFDSenderStorePacket done [10:01:54]KKMCreateOFDPacket done [10:01:54]NVStorageSaveData kkm_last_timestamp [10:01:54]File name is /storage/kkm_last_timestamp [10:01:54]Write 4 bytes [10:01:54]NVStorageSaveData done [10:01:54]ExternCall_PrintAddStr [10:01:54]wPrintStart [10:01:54]Write to MH i2c: 01 00 00 BF 1B DA [10:01:54]Write i2c OK [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: 01 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: 01 07 00 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: 01 07 00 BF 1B 00 00 00 00 00 FF 0F EF [10:01:54]RasterBufferAndPrint [10:01:54]line Счет N : (1)1964475 [10:01:54]line ИНН: 02508201610067 [10:01:54]line Контрольно-Кассовый Чек [10:01:54]line ПРОДАЖА [10:01:54]line ТРК (МРК, ГНК) : 71 [10:01:54]line Товар: 2711129700 [10:01:54]line ГАЗ [10:01:54]line 51.420 * 38.90 [10:01:54]line = 2000.24 [10:01:54]line НДС 12% НСП 1% [10:01:54]line > о реализуемом товаре [10:01:54]line ОКРУГЛЕНИЕ: -0.24 [10:01:54]line ИТОГО: 2000.00 [10:01:54]line Внесено: 2000.00 [10:01:54]line СДАЧА: 0.00 [10:01:54]line НСП 1% : 17.70 [10:01:54]line НДС 12% : 212.41 [10:01:54]line Наличными: 2000.00 [10:01:54]line Безнал.: 0.00 [10:01:54]line Место: АЗС № 133 "Партнер Нефть" [10:01:54]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:01:54]line СНО: Общий режим [10:01:54]line Чек 86 22.10.2024 10:01 [10:01:54]line Смена: 535 ФФД: 1.0 [10:01:54]line ЗНМ: 0300000091 [10:01:54]line РНМ: 0000000000091685 [10:01:54]line Версия ККМ: 001 [10:01:54]line ФМ: 0000000000871839 [10:01:54]line ФД: 228122 [10:01:54]line ФПД: 280572757280625 [10:01:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100155&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228122&fm=280572757280625&tin=02508201610067®Number=0000000000091685&sum=200000 [10:01:54]OFD Sender: Processing packet 228122 [packets to send 38, broken 37] [10:01:54]ProducePacketName [10:01:54]name=ofd_packets/00228122 [10:01:54]OFD Sender: To server: pG, [10:01:54]CommunicateWithHost lk.salyk.kg:30040 [10:01:54]ConnectInit lk.salyk.kg [10:01:54]written 0, free lines is 4095 [10:01:54]Connected sock=10 [10:01:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 05 05 01 01 6A 62 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 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 56 00 00 00 F4 03 04 00 13 78 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1A 7B 03 00 35 04 06 00 FF 2D EF 88 07 71 63 E4 86 2F D5 A4 1A 03 [10:01:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 8A F7 47 00 F9 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1A 7B 03 00 F4 03 04 00 0C 23 17 67 B6 04 01 00 00 8F 41 3A 5E 55 64 B7 03 [10:01:54]CommunicateWithHost err = 0 [10:01:54]CheckOFDResponse [10:01:54]1017 (14) - 77093643461234 [10:01:54]1041 (16) - 0000000000871839 [10:01:54]1040 (4) - 228122 [10:01:54]1012 (4) - 22.10.2024 03:59 [10:01:54]1206 (1) - 0 [10:01:54]OFD Sender: Remove packet 228122 [10:01:54]ProducePacketName [10:01:54]name=ofd_packets/00228122 [10:01:54]NVStorageDeleteData [10:01:54]Write to MH i2c: 01 00 00 E9 1B 04 [10:01:54]Write i2c OK [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: 01 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: 01 07 00 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: 01 07 00 E9 1B 00 00 00 00 00 BB 0C D2 [10:01:54]RasterBufferAndPrint [10:01:54]line [10:01:54]line [10:01:54]line [10:01:54]line [10:01:54]line [10:01:54]written 0, free lines is 3265 [10:01:54]MH_Cut [10:01:54]Write to MH i2c: D1 01 00 F0 1B 01 DD [10:01:54]Write i2c OK [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: D1 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: D1 01 00 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: D1 01 00 F0 1B 00 DC [10:01:54]Write to MH i2c: 01 00 00 F1 1B 0C [10:01:54]Write i2c OK [10:01:54]MH_I2C_Read... [10:01:55]OFD Sender: No OFD packet to send [10:01:55]*** Cut start [10:01:55]*** Partial cut [10:01:55]*** CUTSNS_PIN = 1 [10:01:55]*** CUTSNS_PIN = 0 [10:01:56]*** Brake cut motor [10:01:56]Read from MH i2c: 01 [10:01:56]MH_I2C_Read... [10:01:56]*** Stop cut motor [10:01:56]*** Cut end [10:01:56]Read from MH i2c: 01 07 00 [10:01:56]MH_I2C_Read... [10:01:56]Read from MH i2c: 01 07 00 F1 1B 00 00 00 00 00 FF 0F 21 [10:01:56]process_action close_receipt done [10:01:56]requested_data is exist [10:01:56]produce_requested_data [10:01:56]requested_item fm.sn is exist - process it [10:01:56]wFMCommunicate request_size=4 [10:01:56]MH_SAM_APDU [10:01:56]CAPDU: 80 11 00 00 [10:01:56]Write to MH i2c: E2 08 00 F2 1B 80 11 00 00 00 00 00 00 87 [10:01:56]Write i2c OK [10:01:56]MH_I2C_Read... [10:01:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:56]Read from MH i2c: E2 [10:01:56]MH_I2C_Read... [10:01:56]Read from MH i2c: E2 17 00 [10:01:56]MH_I2C_Read... [10:01:56]Read from MH i2c: E2 17 00 F2 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DE [10:01:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:01:56]wFMCommunicate OK [10:01:56]requested_item fd.num is exist - process it [10:01:56]SAM_PROTO_GetFieldsCounters [10:01:56]wFMCommunicate request_size=4 [10:01:56]MH_SAM_APDU [10:01:56]CAPDU: 80 13 00 00 [10:01:56]Write to MH i2c: E2 08 00 F3 1B 80 13 00 00 00 00 00 00 8A [10:01:56]Write i2c OK [10:01:56]MH_I2C_Read... [10:01:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:56]Read from MH i2c: E2 [10:01:56]MH_I2C_Read... [10:01:56]Read from MH i2c: E2 62 00 [10:01:56]MH_I2C_Read... [10:01:56]Read from MH i2c: E2 62 00 F3 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1A 7B 03 00 0E 04 04 00 17 02 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 66 [10:01:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1A 7B 03 00 0E 04 04 00 17 02 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:01:56]wFMCommunicate OK [10:01:56]SAM_PROTO_GetFieldsCounters done [10:01:56]requested_item shift.num is exist - process it [10:01:56]requested_item shift.opened is exist - process it [10:01:56]req_shift_opened [10:01:56]FM_GetShiftState [10:01:56]SAM_PROTO_GetShiftState [10:01:56]wFMCommunicate request_size=4 [10:01:56]MH_SAM_APDU [10:01:56]CAPDU: 80 13 01 00 [10:01:56]Write to MH i2c: E2 08 00 F4 1B 80 13 01 00 00 00 00 00 8C [10:01:56]Write i2c OK [10:01:56]MH_I2C_Read... [10:01:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:56]Read from MH i2c: E2 [10:01:56]MH_I2C_Read... [10:01:56]Read from MH i2c: E2 0E 00 [10:01:56]MH_I2C_Read... [10:01:56]Read from MH i2c: E2 0E 00 F4 1B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 53 [10:01:56]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:01:56]wFMCommunicate OK [10:01:56]SAM_PROTO_GetShiftState done [10:01:56]FM_GetShiftState done [10:01:56]req_shift_opened done [10:01:56]requested_item shift.open_date is exist - process it [10:01:56]req_shift_open_date [10:01:56]req_shift_open_date done [10:01:56]produce_requested_data done [10:01:56]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228122,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [10:01:56]process_action_free close_receipt [10:01:56]json_value_free [10:01:56]json_value_free done [10:01:56]process_json_proto returns [10:01:56]Send response to host [10:01:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228122,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [10:01:56]free response buf [10:01:56]execute_script done [10:01:56]execute_script returns [10:01:56]free content buf [10:01:56]Sock 9.Close socket [10:01:56]Sock 9.Thread stoped [10:01:57]accept exits with 7 [10:01:57]New connection [10:01:57]New thread 3066994020 created [10:01:57]Thread 3067137380 joined [10:01:57]Waiting for new connection... [10:01:57] Sock 7.Parse request [10:01:57]Sock 7.Check first char [10:01:57]Sock 7.First char is OK [10:01:57]request: POST /json_proto HTTP/1.0 [10:01:57]Method: POST [10:01:57]URL: /json_proto [10:01:57]Method is POST - this is cgi request [10:01:57]url: /json_proto [10:01:57]query_string will be loaded in cgi processing [10:01:57]execute_cgi json_proto POST (null) [10:01:57]execute_cgi path=json_proto method=POST [10:01:57]POST find Content-Length [10:01:57]Host: 172.17.44.195:8080 [10:01:57]Content-Length: 673 [10:01:57]Content-Type: application/json [10:01:57] [10:01:57]POST finish read [10:01:57]Found Content-Length = 673 [10:01:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 12.860, "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:01:57]execute_script... [10:01: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)1964480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 12.860, "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:01:57]POST & json_proto [10:01:57]process_json_proto [10:01:57]json parsed OK: [10:01:57]protocol is kg_v1.0 [10:01:57]action value=close_receipt [10:01:57]process_action close_receipt [10:01:57]cmd_close_receipt [10:01:57]MH_GetDate [10:01:57]Write to MH i2c: F0 00 00 F5 1B FF [10:01:57]Write i2c OK [10:01:57]MH_I2C_Read... [10:01:57]Read from MH i2c: F0 [10:01:57]MH_I2C_Read... [10:01:57]Read from MH i2c: F0 09 00 [10:01:57]MH_I2C_Read... [10:01:57]Read from MH i2c: F0 09 00 F5 1B 00 18 78 17 67 82 C9 CF 66 96 [10:01:57]GetLastDocTimeStamp 1729591315 [10:01:57]current date 1729591320 [10:01:57]FM_GetShiftState [10:01:57]SAM_PROTO_GetShiftState [10:01:57]wFMCommunicate request_size=4 [10:01:57]MH_SAM_APDU [10:01:57]CAPDU: 80 13 01 00 [10:01:57]Write to MH i2c: E2 08 00 F6 1B 80 13 01 00 00 00 00 00 8E [10:01:57]Write i2c OK [10:01:57]MH_I2C_Read... [10:01:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:57]Read from MH i2c: E2 [10:01:57]MH_I2C_Read... [10:01:57]Read from MH i2c: E2 0E 00 [10:01:57]MH_I2C_Read... [10:01:57]Read from MH i2c: E2 0E 00 F6 1B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 55 [10:01:57]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:01:57]wFMCommunicate OK [10:01:57]SAM_PROTO_GetShiftState done [10:01:57]FM_GetShiftState done [10:01:57]opened in 1729555538 [10:01:57]opened+sec_in_day 1729641938 [10:01:57]quantity*price = 50025 [10:01:57]sum+1 = 50026 [10:01:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 87 22.10.2024 10:02 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228123 ФПД: 81257720412420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100200&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228123&fm=81257720412420&tin=02508201610067®Number=0000000000091685&sum=50000 [10:01:58]StoreToDocumentArchive [10:01:58]shift 535 fd 228123 [10:01:58]save to /storage/0535/doc_00228123 [10:01:58]save last doc name /storage/0535/doc_00228123 to /storage/kkm_last_doc_name [10:01:58]save OK [10:01:58]Clear old archive folders... [10:01:58]ProcessDocumentItem done err = 0, tmpTLVsize=245 [10:01:58]tlvbuf is 008C9CD0 [10:01:58]SAM_PROTO_ClearQueue [10:01:58]wFMCommunicate request_size=4 [10:01:58]MH_SAM_APDU [10:01:58]CAPDU: 80 09 00 00 [10:01:58]Write to MH i2c: E2 08 00 03 1C 80 09 00 00 00 00 00 00 91 [10:01:58]Write i2c OK [10:01:58]MH_I2C_Read... [10:01:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:58]Read from MH i2c: E2 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 03 00 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 03 00 03 1C 00 90 00 93 [10:01:58]RAPDU: 90 00 [10:01:58]wFMCommunicate OK [10:01:58]SAM_PROTO_ClearQueue done [10:01:58]KKMCreateOFDPacket [10:01:58]OFDProtocolAddRootSTLVToBuf [10:01:58]FM_MakeSignedData [10:01:58]FM_MakeSignedData [10:01:58]SAM_PROTO_SignData [10:01:58]wFMCommunicate request_size=4 [10:01:58]MH_SAM_APDU [10:01:58]CAPDU: 80 0D 01 02 [10:01:58]Write to MH i2c: E2 08 00 04 1C 80 0D 01 02 00 00 00 00 99 [10:01:58]Write i2c OK [10:01:58]MH_I2C_Read... [10:01:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:58]Read from MH i2c: E2 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 03 00 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 03 00 04 1C 00 90 00 94 [10:01:58]RAPDU: 90 00 [10:01:58]wFMCommunicate OK [10:01:58]wFMCommunicate request_size=254 [10:01:58]MH_SAM_APDU [10:01:58]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 18 78 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1B 7B 03 00 35 04 06 00 49 E7 49 8F 79 04 [10:01:58]Write to MH i2c: E2 01 01 05 1C 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 18 78 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1B 7B 03 00 35 04 06 00 49 E7 49 8F 79 04 00 00 7E [10:01:58]Write i2c OK [10:01:58]MH_I2C_Read... [10:01:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:58]Read from MH i2c: E2 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 03 00 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 03 00 05 1C 00 90 00 95 [10:01:58]RAPDU: 90 00 [10:01:59]wFMCommunicate OK [10:01:59]wFMCommunicate request_size=4 [10:01:59]MH_SAM_APDU [10:01:59]CAPDU: 80 0D 03 02 [10:01:59]Write to MH i2c: E2 08 00 06 1C 80 0D 03 02 00 00 00 00 9D [10:01:59]Write i2c OK [10:01:59]MH_I2C_Read... [10:01:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:59]Read from MH i2c: E2 [10:01:59]MH_I2C_Read... [10:01:59]Read from MH i2c: E2 0B 00 [10:01:59]MH_I2C_Read... [10:01:59]Read from MH i2c: E2 0B 00 06 1C 00 CE 4C EE 8A 21 19 C9 88 90 00 BB [10:01:59]RAPDU: CE 4C EE 8A 21 19 C9 88 90 00 [10:01:59]wFMCommunicate OK [10:01:59]SAM_PROTO_SignData done [10:01:59]FM_MakeSignedData done [10:01:59]CreateOFDProtocolMessage [10:01:59]wFMCommunicate request_size=4 [10:01:59]MH_SAM_APDU [10:01:59]CAPDU: 80 11 00 00 [10:01:59]Write to MH i2c: E2 08 00 07 1C 80 11 00 00 00 00 00 00 9D [10:01:59]Write i2c OK [10:01:59]MH_I2C_Read... [10:01:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:59]Read from MH i2c: E2 [10:01:59]MH_I2C_Read... [10:01:59]Read from MH i2c: E2 17 00 [10:01:59]MH_I2C_Read... [10:01:59]Read from MH i2c: E2 17 00 07 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F4 [10:01:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:01:59]wFMCommunicate OK [10:01:59]CreateOFDProtocolMessage done [10:01:59]OFDSenderStorePacket 228123 [10:01:59]StoreOFDPacket docnum=228123 [10:01:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 2E 8E 01 01 57 C7 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 18 78 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1B 7B 03 00 35 04 06 00 49 E7 49 8F 79 04 CE 4C EE 8A 21 19 C9 88 [10:01:59]CheckFolder [10:01:59]dirname=/storage/ofd_packets [10:01:59]CheckFolder done [10:01:59]ProducePacketName [10:01:59]name=ofd_packets/00228123 [10:01:59]NVStorageSaveData ofd_packets/00228123 [10:01:59]File name is /storage/ofd_packets/00228123 [10:01:59]Write 295 bytes [10:01:59]NVStorageSaveData done [10:01:59]OFDSenderStorePacket done [10:01:59]KKMCreateOFDPacket done [10:01:59]NVStorageSaveData kkm_last_timestamp [10:01:59]File name is /storage/kkm_last_timestamp [10:01:59]Write 4 bytes [10:01:59]NVStorageSaveData done [10:01:59]ExternCall_PrintAddStr [10:01:59]wPrintStart [10:01:59]Write to MH i2c: 01 00 00 08 1C 24 [10:01:59]Write i2c OK [10:01:59]MH_I2C_Read... [10:01:59]Read from MH i2c: 01 [10:01:59]MH_I2C_Read... [10:01:59]Read from MH i2c: 01 07 00 [10:01:59]MH_I2C_Read... [10:01:59]Read from MH i2c: 01 07 00 08 1C 00 00 00 00 00 FF 0F 39 [10:01:59]RasterBufferAndPrint [10:01:59]line Счет N : (1)1964480 [10:01:59]line ИНН: 02508201610067 [10:01:59]line Контрольно-Кассовый Чек [10:01:59]line ПРОДАЖА [10:01:59]line ТРК (МРК, ГНК) : 71 [10:01:59]line Товар: 2711129700 [10:01:59]line ГАЗ [10:01:59]line 12.860 * 38.90 [10:01:59]line = 500.25 [10:01:59]line НДС 12% НСП 1% [10:01:59]line > о реализуемом товаре [10:01:59]line ОКРУГЛЕНИЕ: -0.25 [10:01:59]line ИТОГО: 500.00 [10:01:59]line Внесено: 500.00 [10:01:59]line СДАЧА: 0.00 [10:01:59]line НСП 1% : 4.43 [10:01:59]line НДС 12% : 53.12 [10:01:59]line Наличными: 500.00 [10:01:59]line Безнал.: 0.00 [10:01:59]line Место: АЗС № 133 "Партнер Нефть" [10:01:59]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:01:59]line СНО: Общий режим [10:01:59]line Чек 87 22.10.2024 10:02 [10:01:59]line Смена: 535 ФФД: 1.0 [10:01:59]line ЗНМ: 0300000091 [10:01:59]line РНМ: 0000000000091685 [10:01:59]line Версия ККМ: 001 [10:01:59]line ФМ: 0000000000871839 [10:01:59]line ФД: 228123 [10:01:59]line ФПД: 81257720412420 [10:01:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100200&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228123&fm=81257720412420&tin=02508201610067®Number=0000000000091685&sum=50000 [10:01:59]written 0, free lines is 4095 [10:01:59]OFD Sender: Processing packet 228123 [packets to send 38, broken 37] [10:01:59]ProducePacketName [10:01:59]name=ofd_packets/00228123 [10:01:59]OFD Sender: To server: pG, [10:01:59]CommunicateWithHost lk.salyk.kg:30040 [10:01:59]ConnectInit lk.salyk.kg [10:01:59]Connected sock=10 [10:01:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 2E 8E 01 01 57 C7 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 18 78 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1B 7B 03 00 35 04 06 00 49 E7 49 8F 79 04 CE 4C EE 8A 21 19 C9 88 [10:01:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 B9 F2 47 00 1F E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1B 7B 03 00 F4 03 04 00 11 23 17 67 B6 04 01 00 00 15 49 4B E3 1B C9 41 F5 [10:01:59]CommunicateWithHost err = 0 [10:01:59]CheckOFDResponse [10:01:59]1017 (14) - 77093643461234 [10:01:59]1041 (16) - 0000000000871839 [10:01:59]1040 (4) - 228123 [10:01:59]1012 (4) - 22.10.2024 03:59 [10:01:59]1206 (1) - 0 [10:01:59]OFD Sender: Remove packet 228123 [10:01:59]ProducePacketName [10:01:59]name=ofd_packets/00228123 [10:01:59]NVStorageDeleteData [10:01:59]Write to MH i2c: 01 00 00 32 1C 4E [10:01:59]Write i2c OK [10:01:59]MH_I2C_Read... [10:01:59]Read from MH i2c: 01 [10:01:59]MH_I2C_Read... [10:01:59]Read from MH i2c: 01 07 00 [10:01:59]MH_I2C_Read... [10:01:59]Read from MH i2c: 01 07 00 32 1C 00 00 00 00 00 C2 0C 23 [10:01:59]RasterBufferAndPrint [10:01:59]line [10:01:59]line [10:01:59]line [10:01:59]line [10:01:59]line [10:01:59]written 0, free lines is 3276 [10:01:59]MH_Cut [10:01:59]Write to MH i2c: D1 01 00 39 1C 01 27 [10:01:59]Write i2c OK [10:01:59]MH_I2C_Read... [10:01:59]Read from MH i2c: D1 [10:01:59]MH_I2C_Read... [10:01:59]Read from MH i2c: D1 01 00 [10:01:59]MH_I2C_Read... [10:01:59]Read from MH i2c: D1 01 00 39 1C 00 26 [10:01:59]Write to MH i2c: 01 00 00 3A 1C 56 [10:01:59]Write i2c OK [10:01:59]MH_I2C_Read... [10:02:00]OFD Sender: No OFD packet to send [10:02:00]*** Cut start [10:02:00]*** Partial cut [10:02:00]*** CUTSNS_PIN = 1 [10:02:00]*** CUTSNS_PIN = 0 [10:02:00]*** Brake cut motor [10:02:01]Read from MH i2c: 01 [10:02:01]MH_I2C_Read... [10:02:01]*** Stop cut motor [10:02:01]*** Cut end [10:02:01]Read from MH i2c: 01 07 00 [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: 01 07 00 3A 1C 00 00 00 00 00 FF 0F 6B [10:02:01]process_action close_receipt done [10:02:01]requested_data is exist [10:02:01]produce_requested_data [10:02:01]requested_item fm.sn is exist - process it [10:02:01]wFMCommunicate request_size=4 [10:02:01]MH_SAM_APDU [10:02:01]CAPDU: 80 11 00 00 [10:02:01]Write to MH i2c: E2 08 00 3B 1C 80 11 00 00 00 00 00 00 D1 [10:02:01]Write i2c OK [10:02:01]MH_I2C_Read... [10:02:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:01]Read from MH i2c: E2 [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: E2 17 00 [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: E2 17 00 3B 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 28 [10:02:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:02:01]wFMCommunicate OK [10:02:01]requested_item fd.num is exist - process it [10:02:01]SAM_PROTO_GetFieldsCounters [10:02:01]wFMCommunicate request_size=4 [10:02:01]MH_SAM_APDU [10:02:01]CAPDU: 80 13 00 00 [10:02:01]Write to MH i2c: E2 08 00 3C 1C 80 13 00 00 00 00 00 00 D4 [10:02:01]Write i2c OK [10:02:01]MH_I2C_Read... [10:02:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:01]Read from MH i2c: E2 [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: E2 62 00 [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: E2 62 00 3C 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1B 7B 03 00 0E 04 04 00 17 02 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 B4 [10:02:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1B 7B 03 00 0E 04 04 00 17 02 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:02:01]wFMCommunicate OK [10:02:01]SAM_PROTO_GetFieldsCounters done [10:02:01]requested_item shift.num is exist - process it [10:02:01]requested_item shift.opened is exist - process it [10:02:01]req_shift_opened [10:02:01]FM_GetShiftState [10:02:01]SAM_PROTO_GetShiftState [10:02:01]wFMCommunicate request_size=4 [10:02:01]MH_SAM_APDU [10:02:01]CAPDU: 80 13 01 00 [10:02:01]Write to MH i2c: E2 08 00 3D 1C 80 13 01 00 00 00 00 00 D6 [10:02:01]Write i2c OK [10:02:01]MH_I2C_Read... [10:02:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:01]Read from MH i2c: E2 [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: E2 0E 00 [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: E2 0E 00 3D 1C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 9D [10:02:01]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:02:01]wFMCommunicate OK [10:02:01]SAM_PROTO_GetShiftState done [10:02:01]FM_GetShiftState done [10:02:01]req_shift_opened done [10:02:01]requested_item shift.open_date is exist - process it [10:02:01]req_shift_open_date [10:02:01]req_shift_open_date done [10:02:01]produce_requested_data done [10:02:01]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228123,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [10:02:01]process_action_free close_receipt [10:02:01]json_value_free [10:02:01]json_value_free done [10:02:01]process_json_proto returns [10:02:01]Send response to host [10:02:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228123,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [10:02:01]free response buf [10:02:01]execute_script done [10:02:01]execute_script returns [10:02:01]free content buf [10:02:01]Sock 7.Close socket [10:02:01]Sock 7.Thread stoped [10:02:05]OFD Sender: No OFD packet to send [10:02:10]OFD Sender: No OFD packet to send [10:02:11]accept exits with 9 [10:02:11]New connection [10:02:11]New thread 3067137380 created [10:02:11]Thread 3066994020 joined [10:02:11]Waiting for new connection... [10:02:11] Sock 9.Parse request [10:02:11]Sock 9.Check first char [10:02:11]Sock 9.First char is OK [10:02:11]request: POST /json_proto HTTP/1.0 [10:02:11]Method: POST [10:02:11]URL: /json_proto [10:02:11]Method is POST - this is cgi request [10:02:11]url: /json_proto [10:02:11]query_string will be loaded in cgi processing [10:02:11]execute_cgi json_proto POST (null) [10:02:11]execute_cgi path=json_proto method=POST [10:02:11]POST find Content-Length [10:02:11]Host: 172.17.44.195:8080 [10:02:11]Content-Length: 678 [10:02:11]Content-Type: application/json [10:02:11] [10:02:11]POST finish read [10:02:11]Found Content-Length = 678 [10:02:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:02:11]execute_script... [10:02: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)1964481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:02:11]POST & json_proto [10:02:11]process_json_proto [10:02:11]json parsed OK: [10:02:11]protocol is kg_v1.0 [10:02:11]action value=close_receipt [10:02:11]process_action close_receipt [10:02:11]cmd_close_receipt [10:02:11]MH_GetDate [10:02:11]Write to MH i2c: F0 00 00 3E 1C 49 [10:02:11]Write i2c OK [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: F0 [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: F0 09 00 [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: F0 09 00 3E 1C 00 26 78 17 67 82 C9 CF 66 EE [10:02:11]GetLastDocTimeStamp 1729591320 [10:02:11]current date 1729591334 [10:02:11]FM_GetShiftState [10:02:11]SAM_PROTO_GetShiftState [10:02:11]wFMCommunicate request_size=4 [10:02:11]MH_SAM_APDU [10:02:11]CAPDU: 80 13 01 00 [10:02:11]Write to MH i2c: E2 08 00 3F 1C 80 13 01 00 00 00 00 00 D8 [10:02:11]Write i2c OK [10:02:11]MH_I2C_Read... [10:02:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:11]Read from MH i2c: E2 [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: E2 0E 00 [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: E2 0E 00 3F 1C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 9F [10:02:11]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:02:11]wFMCommunicate OK [10:02:11]SAM_PROTO_GetShiftState done [10:02:11]FM_GetShiftState done [10:02:11]opened in 1729555538 [10:02:11]opened+sec_in_day 1729641938 [10:02:11]quantity*price = 50041 [10:02:11]sum+1 = 50042 [10:02:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 88 22.10.2024 10:02 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228124 ФПД: 51519412817947 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100214&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228124&fm=51519412817947&tin=02508201610067®Number=0000000000091685&sum=50000 [10:02:12]StoreToDocumentArchive [10:02:12]shift 535 fd 228124 [10:02:12]save to /storage/0535/doc_00228124 [10:02:12]save last doc name /storage/0535/doc_00228124 to /storage/kkm_last_doc_name [10:02:12]save OK [10:02:12]Clear old archive folders... [10:02:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:02:12]tlvbuf is 008AE290 [10:02:12]SAM_PROTO_ClearQueue [10:02:12]wFMCommunicate request_size=4 [10:02:12]MH_SAM_APDU [10:02:12]CAPDU: 80 09 00 00 [10:02:12]Write to MH i2c: E2 08 00 4C 1C 80 09 00 00 00 00 00 00 DA [10:02:12]Write i2c OK [10:02:12]MH_I2C_Read... [10:02:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:12]Read from MH i2c: E2 [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: E2 03 00 [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: E2 03 00 4C 1C 00 90 00 DC [10:02:12]RAPDU: 90 00 [10:02:12]wFMCommunicate OK [10:02:12]SAM_PROTO_ClearQueue done [10:02:12]KKMCreateOFDPacket [10:02:12]OFDProtocolAddRootSTLVToBuf [10:02:12]FM_MakeSignedData [10:02:12]FM_MakeSignedData [10:02:12]SAM_PROTO_SignData [10:02:12]wFMCommunicate request_size=4 [10:02:12]MH_SAM_APDU [10:02:12]CAPDU: 80 0D 01 02 [10:02:12]Write to MH i2c: E2 08 00 4D 1C 80 0D 01 02 00 00 00 00 E2 [10:02:12]Write i2c OK [10:02:12]MH_I2C_Read... [10:02:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:12]Read from MH i2c: E2 [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: E2 03 00 [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: E2 03 00 4D 1C 00 90 00 DD [10:02:12]RAPDU: 90 00 [10:02:12]wFMCommunicate OK [10:02:12]wFMCommunicate request_size=255 [10:02:12]MH_SAM_APDU [10:02: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 26 78 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1C 7B 03 00 35 04 06 00 2E [10:02:12]Write to MH i2c: E2 02 01 4E 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 26 78 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1C 7B 03 00 35 04 06 00 2E 00 00 CE [10:02:12]Write i2c OK [10:02:12]MH_I2C_Read... [10:02:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:13]Read from MH i2c: E2 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: E2 03 00 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: E2 03 00 4E 1C 00 90 00 DE [10:02:13]RAPDU: 90 00 [10:02:13]wFMCommunicate OK [10:02:13]wFMCommunicate request_size=10 [10:02:13]MH_SAM_APDU [10:02:13]CAPDU: 80 0D 02 02 05 DB 4C 4C D0 1B [10:02:13]Write to MH i2c: E2 0D 00 4F 1C 80 0D 02 02 05 00 DB 4C 4C D0 1B 00 00 4D [10:02:13]Write i2c OK [10:02:13]MH_I2C_Read... [10:02:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:13]Read from MH i2c: E2 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: E2 03 00 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: E2 03 00 4F 1C 00 90 00 DF [10:02:13]RAPDU: 90 00 [10:02:13]wFMCommunicate OK [10:02:13]wFMCommunicate request_size=4 [10:02:13]MH_SAM_APDU [10:02:13]CAPDU: 80 0D 03 02 [10:02:13]Write to MH i2c: E2 08 00 50 1C 80 0D 03 02 00 00 00 00 E7 [10:02:13]Write i2c OK [10:02:13]MH_I2C_Read... [10:02:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:13]Read from MH i2c: E2 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: E2 0B 00 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: E2 0B 00 50 1C 00 6C 0C 6B 19 CB B1 19 36 90 00 AF [10:02:13]RAPDU: 6C 0C 6B 19 CB B1 19 36 90 00 [10:02:13]wFMCommunicate OK [10:02:13]SAM_PROTO_SignData done [10:02:13]FM_MakeSignedData done [10:02:13]CreateOFDProtocolMessage [10:02:13]wFMCommunicate request_size=4 [10:02:13]MH_SAM_APDU [10:02:13]CAPDU: 80 11 00 00 [10:02:13]Write to MH i2c: E2 08 00 51 1C 80 11 00 00 00 00 00 00 E7 [10:02:13]Write i2c OK [10:02:13]MH_I2C_Read... [10:02:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:13]Read from MH i2c: E2 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: E2 17 00 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: E2 17 00 51 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 3E [10:02:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:02:13]wFMCommunicate OK [10:02:13]CreateOFDProtocolMessage done [10:02:13]OFDSenderStorePacket 228124 [10:02:13]StoreOFDPacket docnum=228124 [10:02:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 46 6B 07 01 B2 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 26 78 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1C 7B 03 00 35 04 06 00 2E DB 4C 4C D0 1B 6C 0C 6B 19 CB B1 19 36 [10:02:13]CheckFolder [10:02:13]dirname=/storage/ofd_packets [10:02:13]CheckFolder done [10:02:13]ProducePacketName [10:02:13]name=ofd_packets/00228124 [10:02:13]NVStorageSaveData ofd_packets/00228124 [10:02:13]File name is /storage/ofd_packets/00228124 [10:02:13]Write 301 bytes [10:02:13]NVStorageSaveData done [10:02:13]OFDSenderStorePacket done [10:02:13]KKMCreateOFDPacket done [10:02:13]NVStorageSaveData kkm_last_timestamp [10:02:13]File name is /storage/kkm_last_timestamp [10:02:13]Write 4 bytes [10:02:13]NVStorageSaveData done [10:02:13]ExternCall_PrintAddStr [10:02:13]wPrintStart [10:02:13]Write to MH i2c: 01 00 00 52 1C 6E [10:02:13]Write i2c OK [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: 01 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: 01 07 00 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: 01 07 00 52 1C 00 00 00 00 00 FF 0F 83 [10:02:13]RasterBufferAndPrint [10:02:13]line Счет N : (1)1964481 [10:02:13]line ИНН: 02508201610067 [10:02:13]line Контрольно-Кассовый Чек [10:02:13]line ПРОДАЖА [10:02:13]line ТРК (МРК, ГНК) : 43 [10:02:13]line Товар: 2710124130 [10:02:13]line Аи-92-К-5 [10:02:13]line 7.480 * 66.90 [10:02:13]line = 500.41 [10:02:13]line НДС 12% НСП 1% [10:02:13]line > о реализуемом товаре [10:02:13]line ОКРУГЛЕНИЕ: -0.41 [10:02:13]line ИТОГО: 500.00 [10:02:13]line Внесено: 500.00 [10:02:13]line СДАЧА: 0.00 [10:02:13]line НСП 1% : 4.43 [10:02:13]line НДС 12% : 53.14 [10:02:13]line Наличными: 500.00 [10:02:13]line Безнал.: 0.00 [10:02:13]line Место: АЗС № 133 "Партнер Нефть" [10:02:13]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:02:13]line СНО: Общий режим [10:02:13]line Чек 88 22.10.2024 10:02 [10:02:13]line Смена: 535 ФФД: 1.0 [10:02:13]line ЗНМ: 0300000091 [10:02:13]line РНМ: 0000000000091685 [10:02:13]line Версия ККМ: 001 [10:02:13]line ФМ: 0000000000871839 [10:02:13]line ФД: 228124 [10:02:13]line ФПД: 51519412817947 [10:02:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100214&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228124&fm=51519412817947&tin=02508201610067®Number=0000000000091685&sum=50000 [10:02:13]written 0, free lines is 4095 [10:02:13]OFD Sender: Processing packet 228124 [packets to send 38, broken 37] [10:02:13]ProducePacketName [10:02:13]name=ofd_packets/00228124 [10:02:13]OFD Sender: To server: pG, [10:02:13]CommunicateWithHost lk.salyk.kg:30040 [10:02:13]ConnectInit lk.salyk.kg [10:02:13]Connected sock=10 [10:02:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 46 6B 07 01 B2 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 26 78 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1C 7B 03 00 35 04 06 00 2E DB 4C 4C D0 1B 6C 0C 6B 19 CB B1 19 36 [10:02:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 10 5D 47 00 46 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1C 7B 03 00 F4 03 04 00 1F 23 17 67 B6 04 01 00 00 3D A1 95 9A E2 B8 9A D1 [10:02:13]CommunicateWithHost err = 0 [10:02:13]CheckOFDResponse [10:02:13]1017 (14) - 77093643461234 [10:02:13]1041 (16) - 0000000000871839 [10:02:13]1040 (4) - 228124 [10:02:13]1012 (4) - 22.10.2024 03:59 [10:02:13]1206 (1) - 0 [10:02:13]OFD Sender: Remove packet 228124 [10:02:13]ProducePacketName [10:02:13]name=ofd_packets/00228124 [10:02:13]NVStorageDeleteData [10:02:13]Write to MH i2c: 01 00 00 7C 1C 98 [10:02:13]Write i2c OK [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: 01 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: 01 07 00 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: 01 07 00 7C 1C 00 00 00 00 00 D6 0C 81 [10:02:13]RasterBufferAndPrint [10:02:13]line [10:02:13]line [10:02:13]line [10:02:13]line [10:02:13]line [10:02:13]written 0, free lines is 3299 [10:02:13]MH_Cut [10:02:13]Write to MH i2c: D1 01 00 83 1C 01 71 [10:02:13]Write i2c OK [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: D1 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: D1 01 00 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: D1 01 00 83 1C 00 70 [10:02:13]Write to MH i2c: 01 00 00 84 1C A0 [10:02:13]Write i2c OK [10:02:13]MH_I2C_Read... [10:02:14]OFD Sender: No OFD packet to send [10:02:14]*** Cut start [10:02:14]*** Partial cut [10:02:14]*** CUTSNS_PIN = 1 [10:02:14]*** CUTSNS_PIN = 0 [10:02:15]*** Brake cut motor [10:02:15]Read from MH i2c: 01 [10:02:15]MH_I2C_Read... [10:02:15]*** Stop cut motor [10:02:15]*** Cut end [10:02:15]Read from MH i2c: 01 07 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: 01 07 00 84 1C 00 00 00 00 00 FF 0F B5 [10:02:15]process_action close_receipt done [10:02:15]requested_data is exist [10:02:15]produce_requested_data [10:02:15]requested_item fm.sn is exist - process it [10:02:15]wFMCommunicate request_size=4 [10:02:15]MH_SAM_APDU [10:02:15]CAPDU: 80 11 00 00 [10:02:15]Write to MH i2c: E2 08 00 85 1C 80 11 00 00 00 00 00 00 1B [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:15]Read from MH i2c: E2 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 17 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 17 00 85 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 72 [10:02:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:02:15]wFMCommunicate OK [10:02:15]requested_item fd.num is exist - process it [10:02:15]SAM_PROTO_GetFieldsCounters [10:02:15]wFMCommunicate request_size=4 [10:02:15]MH_SAM_APDU [10:02:15]CAPDU: 80 13 00 00 [10:02:15]Write to MH i2c: E2 08 00 86 1C 80 13 00 00 00 00 00 00 1E [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:15]Read from MH i2c: E2 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 62 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 62 00 86 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1C 7B 03 00 0E 04 04 00 17 02 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 02 [10:02:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1C 7B 03 00 0E 04 04 00 17 02 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:02:15]wFMCommunicate OK [10:02:15]SAM_PROTO_GetFieldsCounters done [10:02:15]requested_item shift.num is exist - process it [10:02:15]requested_item shift.opened is exist - process it [10:02:15]req_shift_opened [10:02:15]FM_GetShiftState [10:02:15]SAM_PROTO_GetShiftState [10:02:15]wFMCommunicate request_size=4 [10:02:15]MH_SAM_APDU [10:02:15]CAPDU: 80 13 01 00 [10:02:15]Write to MH i2c: E2 08 00 87 1C 80 13 01 00 00 00 00 00 20 [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:15]Read from MH i2c: E2 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 0E 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 0E 00 87 1C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 E7 [10:02:15]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:02:15]wFMCommunicate OK [10:02:15]SAM_PROTO_GetShiftState done [10:02:15]FM_GetShiftState done [10:02:15]req_shift_opened done [10:02:15]requested_item shift.open_date is exist - process it [10:02:15]req_shift_open_date [10:02:15]req_shift_open_date done [10:02:15]produce_requested_data done [10:02:15]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228124,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [10:02:15]process_action_free close_receipt [10:02:15]json_value_free [10:02:15]json_value_free done [10:02:15]process_json_proto returns [10:02:15]Send response to host [10:02:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228124,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [10:02:15]free response buf [10:02:15]execute_script done [10:02:15]execute_script returns [10:02:15]free content buf [10:02:15]Sock 9.Close socket [10:02:15]Sock 9.Thread stoped [10:02:19]OFD Sender: No OFD packet to send [10:02:24]OFD Sender: No OFD packet to send [10:02:29]OFD Sender: No OFD packet to send [10:02:34]OFD Sender: No OFD packet to send [10:02:39]OFD Sender: No OFD packet to send [10:02:44]OFD Sender: No OFD packet to send [10:02:49]OFD Sender: No OFD packet to send [10:02:54]OFD Sender: No OFD packet to send [10:02:59]OFD Sender: No OFD packet to send [10:03:04]OFD Sender: No OFD packet to send [10:03:09]OFD Sender: No OFD packet to send [10:03:14]OFD Sender: No OFD packet to send [10:03:19]OFD Sender: No OFD packet to send [10:03:24]OFD Sender: No OFD packet to send [10:03:29]OFD Sender: No OFD packet to send [10:03:34]OFD Sender: No OFD packet to send [10:03:39]OFD Sender: No OFD packet to send [10:03:44]OFD Sender: No OFD packet to send [10:03:49]OFD Sender: No OFD packet to send [10:03:54]OFD Sender: No OFD packet to send [10:03:59]OFD Sender: No OFD packet to send [10:04:04]OFD Sender: No OFD packet to send [10:04:09]OFD Sender: No OFD packet to send [10:04:14]OFD Sender: No OFD packet to send [10:04:19]OFD Sender: No OFD packet to send [10:04:24]OFD Sender: No OFD packet to send [10:04:29]OFD Sender: No OFD packet to send [10:04:33]accept exits with 7 [10:04:33]New connection [10:04:33]New thread 3066994020 created [10:04:33]Thread 3067137380 joined [10:04:33]Waiting for new connection... [10:04:33] Sock 7.Parse request [10:04:33]Sock 7.Check first char [10:04:33]Sock 7.First char is OK [10:04:33]request: POST /json_proto HTTP/1.0 [10:04:33]Method: POST [10:04:33]URL: /json_proto [10:04:33]Method is POST - this is cgi request [10:04:33]url: /json_proto [10:04:33]query_string will be loaded in cgi processing [10:04:33]execute_cgi json_proto POST (null) [10:04:33]execute_cgi path=json_proto method=POST [10:04:33]POST find Content-Length [10:04:33]Host: 172.17.44.195:8080 [10:04:33]Content-Length: 673 [10:04:33]Content-Type: application/json [10:04:33] [10:04:33]POST finish read [10:04:33]Found Content-Length = 673 [10:04:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 12.860, "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:04:33]execute_script... [10:04: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)1964482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 12.860, "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:04:33]POST & json_proto [10:04:33]process_json_proto [10:04:33]json parsed OK: [10:04:33]protocol is kg_v1.0 [10:04:33]action value=close_receipt [10:04:33]process_action close_receipt [10:04:33]cmd_close_receipt [10:04:33]MH_GetDate [10:04:33]Write to MH i2c: F0 00 00 88 1C 93 [10:04:33]Write i2c OK [10:04:33]MH_I2C_Read... [10:04:33]Read from MH i2c: F0 [10:04:33]MH_I2C_Read... [10:04:33]Read from MH i2c: F0 09 00 [10:04:33]MH_I2C_Read... [10:04:33]Read from MH i2c: F0 09 00 88 1C 00 B4 78 17 67 82 C9 CF 66 C6 [10:04:33]GetLastDocTimeStamp 1729591334 [10:04:33]current date 1729591476 [10:04:33]FM_GetShiftState [10:04:33]SAM_PROTO_GetShiftState [10:04:33]wFMCommunicate request_size=4 [10:04:33]MH_SAM_APDU [10:04:33]CAPDU: 80 13 01 00 [10:04:33]Write to MH i2c: E2 08 00 89 1C 80 13 01 00 00 00 00 00 22 [10:04:33]Write i2c OK [10:04:33]MH_I2C_Read... [10:04:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:33]Read from MH i2c: E2 [10:04:33]MH_I2C_Read... [10:04:33]Read from MH i2c: E2 0E 00 [10:04:33]MH_I2C_Read... [10:04:33]Read from MH i2c: E2 0E 00 89 1C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 E9 [10:04:33]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:04:33]wFMCommunicate OK [10:04:33]SAM_PROTO_GetShiftState done [10:04:33]FM_GetShiftState done [10:04:33]opened in 1729555538 [10:04:33]opened+sec_in_day 1729641938 [10:04:33]quantity*price = 50025 [10:04:33]sum+1 = 50026 [10:04: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 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 89 22.10.2024 10:04 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228125 ФПД: 76053225249704 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100436&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228125&fm=76053225249704&tin=02508201610067®Number=0000000000091685&sum=50000 [10:04:34]StoreToDocumentArchive [10:04:34]shift 535 fd 228125 [10:04:34]save to /storage/0535/doc_00228125 [10:04:34]save last doc name /storage/0535/doc_00228125 to /storage/kkm_last_doc_name [10:04:34]save OK [10:04:34]Clear old archive folders... [10:04:34]ProcessDocumentItem done err = 0, tmpTLVsize=245 [10:04:34]tlvbuf is 008A0E30 [10:04:34]SAM_PROTO_ClearQueue [10:04:34]wFMCommunicate request_size=4 [10:04:34]MH_SAM_APDU [10:04:34]CAPDU: 80 09 00 00 [10:04:34]Write to MH i2c: E2 08 00 96 1C 80 09 00 00 00 00 00 00 24 [10:04:34]Write i2c OK [10:04:34]MH_I2C_Read... [10:04:34]OFD Sender: No OFD packet to send [10:04:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:34]Read from MH i2c: E2 [10:04:34]MH_I2C_Read... [10:04:34]Read from MH i2c: E2 03 00 [10:04:34]MH_I2C_Read... [10:04:34]Read from MH i2c: E2 03 00 96 1C 00 90 00 26 [10:04:34]RAPDU: 90 00 [10:04:34]wFMCommunicate OK [10:04:34]SAM_PROTO_ClearQueue done [10:04:34]KKMCreateOFDPacket [10:04:34]OFDProtocolAddRootSTLVToBuf [10:04:34]FM_MakeSignedData [10:04:34]FM_MakeSignedData [10:04:34]SAM_PROTO_SignData [10:04:34]wFMCommunicate request_size=4 [10:04:34]MH_SAM_APDU [10:04:34]CAPDU: 80 0D 01 02 [10:04:34]Write to MH i2c: E2 08 00 97 1C 80 0D 01 02 00 00 00 00 2C [10:04:34]Write i2c OK [10:04:34]MH_I2C_Read... [10:04:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:34]Read from MH i2c: E2 [10:04:34]MH_I2C_Read... [10:04:34]Read from MH i2c: E2 03 00 [10:04:34]MH_I2C_Read... [10:04:34]Read from MH i2c: E2 03 00 97 1C 00 90 00 27 [10:04:34]RAPDU: 90 00 [10:04:34]wFMCommunicate OK [10:04:34]wFMCommunicate request_size=254 [10:04:34]MH_SAM_APDU [10:04:34]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 B4 78 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1D 7B 03 00 35 04 06 00 45 2B 85 79 9B A8 [10:04:34]Write to MH i2c: E2 01 01 98 1C 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 B4 78 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1D 7B 03 00 35 04 06 00 45 2B 85 79 9B A8 00 00 DD [10:04:34]Write i2c OK [10:04:34]MH_I2C_Read... [10:04:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:34]Read from MH i2c: E2 [10:04:34]MH_I2C_Read... [10:04:34]Read from MH i2c: E2 03 00 [10:04:34]MH_I2C_Read... [10:04:34]Read from MH i2c: E2 03 00 98 1C 00 90 00 28 [10:04:34]RAPDU: 90 00 [10:04:34]wFMCommunicate OK [10:04:34]wFMCommunicate request_size=4 [10:04:34]MH_SAM_APDU [10:04:34]CAPDU: 80 0D 03 02 [10:04:34]Write to MH i2c: E2 08 00 99 1C 80 0D 03 02 00 00 00 00 30 [10:04:34]Write i2c OK [10:04:34]MH_I2C_Read... [10:04:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:34]Read from MH i2c: E2 [10:04:34]MH_I2C_Read... [10:04:34]Read from MH i2c: E2 0B 00 [10:04:34]MH_I2C_Read... [10:04:34]Read from MH i2c: E2 0B 00 99 1C 00 BB B6 45 42 3A 7D AE 95 90 00 23 [10:04:34]RAPDU: BB B6 45 42 3A 7D AE 95 90 00 [10:04:34]wFMCommunicate OK [10:04:34]SAM_PROTO_SignData done [10:04:34]FM_MakeSignedData done [10:04:34]CreateOFDProtocolMessage [10:04:34]wFMCommunicate request_size=4 [10:04:34]MH_SAM_APDU [10:04:34]CAPDU: 80 11 00 00 [10:04:34]Write to MH i2c: E2 08 00 9A 1C 80 11 00 00 00 00 00 00 30 [10:04:34]Write i2c OK [10:04:34]MH_I2C_Read... [10:04:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:34]Read from MH i2c: E2 [10:04:34]MH_I2C_Read... [10:04:34]Read from MH i2c: E2 17 00 [10:04:34]MH_I2C_Read... [10:04:34]Read from MH i2c: E2 17 00 9A 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 87 [10:04:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:04:34]wFMCommunicate OK [10:04:34]CreateOFDProtocolMessage done [10:04:34]OFDSenderStorePacket 228125 [10:04:34]StoreOFDPacket docnum=228125 [10:04:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 92 BA 01 01 39 42 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 B4 78 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1D 7B 03 00 35 04 06 00 45 2B 85 79 9B A8 BB B6 45 42 3A 7D AE 95 [10:04:34]CheckFolder [10:04:34]dirname=/storage/ofd_packets [10:04:34]CheckFolder done [10:04:34]ProducePacketName [10:04:34]name=ofd_packets/00228125 [10:04:34]NVStorageSaveData ofd_packets/00228125 [10:04:34]File name is /storage/ofd_packets/00228125 [10:04:34]Write 295 bytes [10:04:34]NVStorageSaveData done [10:04:34]OFDSenderStorePacket done [10:04:34]KKMCreateOFDPacket done [10:04:34]NVStorageSaveData kkm_last_timestamp [10:04:34]File name is /storage/kkm_last_timestamp [10:04:34]Write 4 bytes [10:04:34]NVStorageSaveData done [10:04:34]ExternCall_PrintAddStr [10:04:34]wPrintStart [10:04:34]Write to MH i2c: 01 00 00 9B 1C B7 [10:04:34]Write i2c OK [10:04:34]MH_I2C_Read... [10:04:34]Read from MH i2c: 01 [10:04:34]MH_I2C_Read... [10:04:34]Read from MH i2c: 01 07 00 [10:04:34]MH_I2C_Read... [10:04:34]Read from MH i2c: 01 07 00 9B 1C 00 00 00 00 00 FF 0F CC [10:04:34]RasterBufferAndPrint [10:04:34]line Счет N : (1)1964482 [10:04:34]line ИНН: 02508201610067 [10:04:34]line Контрольно-Кассовый Чек [10:04:34]line ПРОДАЖА [10:04:34]line ТРК (МРК, ГНК) : 71 [10:04:34]line Товар: 2711129700 [10:04:34]line ГАЗ [10:04:34]line 12.860 * 38.90 [10:04:34]line = 500.25 [10:04:34]line НДС 12% НСП 1% [10:04:34]line > о реализуемом товаре [10:04:34]line ОКРУГЛЕНИЕ: -0.25 [10:04:34]line ИТОГО: 500.00 [10:04:34]line Внесено: 500.00 [10:04:34]line СДАЧА: 0.00 [10:04:34]line НСП 1% : 4.43 [10:04:34]line НДС 12% : 53.12 [10:04:34]line Наличными: 500.00 [10:04:34]line Безнал.: 0.00 [10:04:34]line Место: АЗС № 133 "Партнер Нефть" [10:04:34]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:04:34]line СНО: Общий режим [10:04:34]line Чек 89 22.10.2024 10:04 [10:04:34]line Смена: 535 ФФД: 1.0 [10:04:34]line ЗНМ: 0300000091 [10:04:34]line РНМ: 0000000000091685 [10:04:34]line Версия ККМ: 001 [10:04:34]line ФМ: 0000000000871839 [10:04:34]line ФД: 228125 [10:04:34]line ФПД: 76053225249704 [10:04:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100436&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228125&fm=76053225249704&tin=02508201610067®Number=0000000000091685&sum=50000 [10:04:35]OFD Sender: Processing packet 228125 [packets to send 38, broken 37] [10:04:35]ProducePacketName [10:04:35]name=ofd_packets/00228125 [10:04:35]OFD Sender: To server: pG, [10:04:35]CommunicateWithHost lk.salyk.kg:30040 [10:04:35]ConnectInit lk.salyk.kg [10:04:35]written 0, free lines is 4095 [10:04:35]Connected sock=10 [10:04:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 92 BA 01 01 39 42 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 B4 78 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1D 7B 03 00 35 04 06 00 45 2B 85 79 9B A8 BB B6 45 42 3A 7D AE 95 [10:04:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 E3 67 47 00 1E 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1D 7B 03 00 F4 03 04 00 AD 23 17 67 B6 04 01 00 00 23 90 45 97 CD 7F C1 39 [10:04:35]CommunicateWithHost err = 0 [10:04:35]CheckOFDResponse [10:04:35]1017 (14) - 77093643461234 [10:04:35]1041 (16) - 0000000000871839 [10:04:35]1040 (4) - 228125 [10:04:35]1012 (4) - 22.10.2024 04:01 [10:04:35]1206 (1) - 0 [10:04:35]OFD Sender: Remove packet 228125 [10:04:35]ProducePacketName [10:04:35]name=ofd_packets/00228125 [10:04:35]NVStorageDeleteData [10:04:35]Write to MH i2c: 01 00 00 C5 1C E1 [10:04:35]Write i2c OK [10:04:35]MH_I2C_Read... [10:04:35]Read from MH i2c: 01 [10:04:35]MH_I2C_Read... [10:04:35]Read from MH i2c: 01 07 00 [10:04:35]MH_I2C_Read... [10:04:35]Read from MH i2c: 01 07 00 C5 1C 00 00 00 00 00 BE 0C B2 [10:04:35]RasterBufferAndPrint [10:04:35]line [10:04:35]line [10:04:35]line [10:04:35]line [10:04:35]line [10:04:35]written 0, free lines is 3268 [10:04:35]MH_Cut [10:04:35]Write to MH i2c: D1 01 00 CC 1C 01 BA [10:04:35]Write i2c OK [10:04:35]MH_I2C_Read... [10:04:35]Read from MH i2c: D1 [10:04:35]MH_I2C_Read... [10:04:35]Read from MH i2c: D1 01 00 [10:04:35]MH_I2C_Read... [10:04:35]Read from MH i2c: D1 01 00 CC 1C 00 B9 [10:04:35]Write to MH i2c: 01 00 00 CD 1C E9 [10:04:35]Write i2c OK [10:04:35]MH_I2C_Read... [10:04:36]OFD Sender: No OFD packet to send [10:04:36]*** Cut start [10:04:36]*** Partial cut [10:04:36]*** CUTSNS_PIN = 1 [10:04:36]*** CUTSNS_PIN = 0 [10:04:36]*** Brake cut motor [10:04:37]Read from MH i2c: 01 [10:04:37]MH_I2C_Read... [10:04:37]*** Stop cut motor [10:04:37]*** Cut end [10:04:37]Read from MH i2c: 01 07 00 [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: 01 07 00 CD 1C 00 00 00 00 00 FF 0F FE [10:04:37]process_action close_receipt done [10:04:37]requested_data is exist [10:04:37]produce_requested_data [10:04:37]requested_item fm.sn is exist - process it [10:04:37]wFMCommunicate request_size=4 [10:04:37]MH_SAM_APDU [10:04:37]CAPDU: 80 11 00 00 [10:04:37]Write to MH i2c: E2 08 00 CE 1C 80 11 00 00 00 00 00 00 64 [10:04:37]Write i2c OK [10:04:37]MH_I2C_Read... [10:04:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:37]Read from MH i2c: E2 [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: E2 17 00 [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: E2 17 00 CE 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BB [10:04:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:04:37]wFMCommunicate OK [10:04:37]requested_item fd.num is exist - process it [10:04:37]SAM_PROTO_GetFieldsCounters [10:04:37]wFMCommunicate request_size=4 [10:04:37]MH_SAM_APDU [10:04:37]CAPDU: 80 13 00 00 [10:04:37]Write to MH i2c: E2 08 00 CF 1C 80 13 00 00 00 00 00 00 67 [10:04:37]Write i2c OK [10:04:37]MH_I2C_Read... [10:04:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:37]Read from MH i2c: E2 [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: E2 62 00 [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: E2 62 00 CF 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1D 7B 03 00 0E 04 04 00 17 02 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 4F [10:04:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1D 7B 03 00 0E 04 04 00 17 02 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:04:37]wFMCommunicate OK [10:04:37]SAM_PROTO_GetFieldsCounters done [10:04:37]requested_item shift.num is exist - process it [10:04:37]requested_item shift.opened is exist - process it [10:04:37]req_shift_opened [10:04:37]FM_GetShiftState [10:04:37]SAM_PROTO_GetShiftState [10:04:37]wFMCommunicate request_size=4 [10:04:37]MH_SAM_APDU [10:04:37]CAPDU: 80 13 01 00 [10:04:37]Write to MH i2c: E2 08 00 D0 1C 80 13 01 00 00 00 00 00 69 [10:04:37]Write i2c OK [10:04:37]MH_I2C_Read... [10:04:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:37]Read from MH i2c: E2 [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: E2 0E 00 [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: E2 0E 00 D0 1C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 30 [10:04:37]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:04:37]wFMCommunicate OK [10:04:37]SAM_PROTO_GetShiftState done [10:04:37]FM_GetShiftState done [10:04:37]req_shift_opened done [10:04:37]requested_item shift.open_date is exist - process it [10:04:37]req_shift_open_date [10:04:37]req_shift_open_date done [10:04:37]produce_requested_data done [10:04:37]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228125,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [10:04:37]process_action_free close_receipt [10:04:37]json_value_free [10:04:37]json_value_free done [10:04:37]process_json_proto returns [10:04:37]Send response to host [10:04:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228125,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [10:04:37]free response buf [10:04:37]execute_script done [10:04:37]execute_script returns [10:04:37]free content buf [10:04:37]Sock 7.Close socket [10:04:37]Sock 7.Thread stoped [10:04:41]OFD Sender: No OFD packet to send [10:04:46]OFD Sender: No OFD packet to send [10:04:51]OFD Sender: No OFD packet to send [10:04:56]OFD Sender: No OFD packet to send [10:05:01]OFD Sender: No OFD packet to send [10:05:06]OFD Sender: No OFD packet to send [10:05:11]OFD Sender: No OFD packet to send [10:05:16]OFD Sender: No OFD packet to send [10:05:21]OFD Sender: No OFD packet to send [10:05:26]OFD Sender: No OFD packet to send [10:05:31]OFD Sender: No OFD packet to send [10:05:36]OFD Sender: No OFD packet to send [10:05:41]OFD Sender: No OFD packet to send [10:05:46]OFD Sender: No OFD packet to send [10:05:51]OFD Sender: No OFD packet to send [10:05:56]OFD Sender: No OFD packet to send [10:06:01]OFD Sender: No OFD packet to send [10:06:06]OFD Sender: No OFD packet to send [10:06:11]OFD Sender: No OFD packet to send [10:06:16]OFD Sender: No OFD packet to send [10:06:21]OFD Sender: No OFD packet to send [10:06:26]OFD Sender: No OFD packet to send [10:06:31]OFD Sender: No OFD packet to send [10:06:36]OFD Sender: No OFD packet to send [10:06:41]OFD Sender: No OFD packet to send [10:06:46]OFD Sender: No OFD packet to send [10:06:49]accept exits with 9 [10:06:49]New connection [10:06:49]New thread 3067137380 created [10:06:49]Thread 3066994020 joined [10:06:49]Waiting for new connection... [10:06:49] Sock 9.Parse request [10:06:49]Sock 9.Check first char [10:06:49]Sock 9.First char is OK [10:06:49]request: POST /json_proto HTTP/1.0 [10:06:49]Method: POST [10:06:49]URL: /json_proto [10:06:49]Method is POST - this is cgi request [10:06:49]url: /json_proto [10:06:49]query_string will be loaded in cgi processing [10:06:49]execute_cgi json_proto POST (null) [10:06:49]execute_cgi path=json_proto method=POST [10:06:49]POST find Content-Length [10:06:49]Host: 172.17.44.195:8080 [10:06:49]Content-Length: 679 [10:06:49]Content-Type: application/json [10:06:49] [10:06:49]POST finish read [10:06:49]Found Content-Length = 679 [10:06:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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:06:49]execute_script... [10:06: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)1964483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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:06:49]POST & json_proto [10:06:49]process_json_proto [10:06:49]json parsed OK: [10:06:49]protocol is kg_v1.0 [10:06:49]action value=close_receipt [10:06:49]process_action close_receipt [10:06:49]cmd_close_receipt [10:06:49]MH_GetDate [10:06:49]Write to MH i2c: F0 00 00 D1 1C DC [10:06:49]Write i2c OK [10:06:49]MH_I2C_Read... [10:06:49]Read from MH i2c: F0 [10:06:49]MH_I2C_Read... [10:06:49]Read from MH i2c: F0 09 00 [10:06:49]MH_I2C_Read... [10:06:49]Read from MH i2c: F0 09 00 D1 1C 00 3D 79 17 67 82 C9 CF 66 99 [10:06:49]GetLastDocTimeStamp 1729591476 [10:06:49]current date 1729591613 [10:06:49]FM_GetShiftState [10:06:49]SAM_PROTO_GetShiftState [10:06:49]wFMCommunicate request_size=4 [10:06:49]MH_SAM_APDU [10:06:49]CAPDU: 80 13 01 00 [10:06:49]Write to MH i2c: E2 08 00 D2 1C 80 13 01 00 00 00 00 00 6B [10:06:49]Write i2c OK [10:06:49]MH_I2C_Read... [10:06:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:49]Read from MH i2c: E2 [10:06:49]MH_I2C_Read... [10:06:49]Read from MH i2c: E2 0E 00 [10:06:49]MH_I2C_Read... [10:06:49]Read from MH i2c: E2 0E 00 D2 1C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 32 [10:06:49]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:06:49]wFMCommunicate OK [10:06:49]SAM_PROTO_GetShiftState done [10:06:49]FM_GetShiftState done [10:06:49]opened in 1729555538 [10:06:49]opened+sec_in_day 1729641938 [10:06:49]quantity*price = 70044 [10:06:49]sum+1 = 70045 [10:06:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 90 22.10.2024 10:06 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228126 ФПД: 118343374079910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100653&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228126&fm=118343374079910&tin=02508201610067®Number=0000000000091685&sum=70000 [10:06:50]StoreToDocumentArchive [10:06:50]shift 535 fd 228126 [10:06:50]save to /storage/0535/doc_00228126 [10:06:50]save last doc name /storage/0535/doc_00228126 to /storage/kkm_last_doc_name [10:06:50]save OK [10:06:50]Clear old archive folders... [10:06:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:06:50]tlvbuf is B6EEE510 [10:06:50]SAM_PROTO_ClearQueue [10:06:50]wFMCommunicate request_size=4 [10:06:50]MH_SAM_APDU [10:06:50]CAPDU: 80 09 00 00 [10:06:50]Write to MH i2c: E2 08 00 DF 1C 80 09 00 00 00 00 00 00 6D [10:06:50]Write i2c OK [10:06:50]MH_I2C_Read... [10:06:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:51]Read from MH i2c: E2 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: E2 03 00 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: E2 03 00 DF 1C 00 90 00 6F [10:06:51]RAPDU: 90 00 [10:06:51]wFMCommunicate OK [10:06:51]SAM_PROTO_ClearQueue done [10:06:51]KKMCreateOFDPacket [10:06:51]OFDProtocolAddRootSTLVToBuf [10:06:51]FM_MakeSignedData [10:06:51]FM_MakeSignedData [10:06:51]SAM_PROTO_SignData [10:06:51]wFMCommunicate request_size=4 [10:06:51]MH_SAM_APDU [10:06:51]CAPDU: 80 0D 01 02 [10:06:51]Write to MH i2c: E2 08 00 E0 1C 80 0D 01 02 00 00 00 00 75 [10:06:51]Write i2c OK [10:06:51]MH_I2C_Read... [10:06:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:51]Read from MH i2c: E2 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: E2 03 00 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: E2 03 00 E0 1C 00 90 00 70 [10:06:51]RAPDU: 90 00 [10:06:51]wFMCommunicate OK [10:06:51]wFMCommunicate request_size=255 [10:06:51]MH_SAM_APDU [10:06: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 5A 00 00 00 F4 03 04 00 3D 79 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1E 7B 03 00 35 04 06 00 6B [10:06:51]Write to MH i2c: E2 02 01 E1 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 5A 00 00 00 F4 03 04 00 3D 79 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1E 7B 03 00 35 04 06 00 6B 00 00 CA [10:06:51]Write i2c OK [10:06:51]MH_I2C_Read... [10:06:51]OFD Sender: No OFD packet to send [10:06:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:51]Read from MH i2c: E2 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: E2 03 00 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: E2 03 00 E1 1C 00 90 00 71 [10:06:51]RAPDU: 90 00 [10:06:51]wFMCommunicate OK [10:06:51]wFMCommunicate request_size=10 [10:06:51]MH_SAM_APDU [10:06:51]CAPDU: 80 0D 02 02 05 A1 F6 C6 07 A6 [10:06:51]Write to MH i2c: E2 0D 00 E2 1C 80 0D 02 02 05 00 A1 F6 C6 07 A6 00 00 8C [10:06:51]Write i2c OK [10:06:51]MH_I2C_Read... [10:06:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:51]Read from MH i2c: E2 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: E2 03 00 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: E2 03 00 E2 1C 00 90 00 72 [10:06:51]RAPDU: 90 00 [10:06:51]wFMCommunicate OK [10:06:51]wFMCommunicate request_size=4 [10:06:51]MH_SAM_APDU [10:06:51]CAPDU: 80 0D 03 02 [10:06:51]Write to MH i2c: E2 08 00 E3 1C 80 0D 03 02 00 00 00 00 7A [10:06:51]Write i2c OK [10:06:51]MH_I2C_Read... [10:06:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:51]Read from MH i2c: E2 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: E2 0B 00 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: E2 0B 00 E3 1C 00 7B CD 08 93 43 4F B1 9B 90 00 3C [10:06:51]RAPDU: 7B CD 08 93 43 4F B1 9B 90 00 [10:06:51]wFMCommunicate OK [10:06:51]SAM_PROTO_SignData done [10:06:51]FM_MakeSignedData done [10:06:51]CreateOFDProtocolMessage [10:06:51]wFMCommunicate request_size=4 [10:06:51]MH_SAM_APDU [10:06:51]CAPDU: 80 11 00 00 [10:06:51]Write to MH i2c: E2 08 00 E4 1C 80 11 00 00 00 00 00 00 7A [10:06:51]Write i2c OK [10:06:51]MH_I2C_Read... [10:06:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:51]Read from MH i2c: E2 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: E2 17 00 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: E2 17 00 E4 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D1 [10:06:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:06:51]wFMCommunicate OK [10:06:51]CreateOFDProtocolMessage done [10:06:51]OFDSenderStorePacket 228126 [10:06:51]StoreOFDPacket docnum=228126 [10:06:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 39 99 07 01 75 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 5A 00 00 00 F4 03 04 00 3D 79 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1E 7B 03 00 35 04 06 00 6B A1 F6 C6 07 A6 7B CD 08 93 43 4F B1 9B [10:06:51]CheckFolder [10:06:51]dirname=/storage/ofd_packets [10:06:51]CheckFolder done [10:06:51]ProducePacketName [10:06:51]name=ofd_packets/00228126 [10:06:51]NVStorageSaveData ofd_packets/00228126 [10:06:51]File name is /storage/ofd_packets/00228126 [10:06:51]Write 301 bytes [10:06:51]NVStorageSaveData done [10:06:51]OFDSenderStorePacket done [10:06:51]KKMCreateOFDPacket done [10:06:51]NVStorageSaveData kkm_last_timestamp [10:06:51]File name is /storage/kkm_last_timestamp [10:06:51]Write 4 bytes [10:06:51]NVStorageSaveData done [10:06:51]OFD Sender: Processing packet 228126 [packets to send 38, broken 37] [10:06:51]ProducePacketName [10:06:51]name=ofd_packets/00228126 [10:06:51]OFD Sender: To server: pG, [10:06:51]CommunicateWithHost lk.salyk.kg:30040 [10:06:51]ConnectInit lk.salyk.kg [10:06:51]ExternCall_PrintAddStr [10:06:51]wPrintStart [10:06:51]Write to MH i2c: 01 00 00 E5 1C 01 [10:06:51]Write i2c OK [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: 01 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: 01 07 00 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: 01 07 00 E5 1C 00 00 00 00 00 FF 0F 16 [10:06:51]RasterBufferAndPrint [10:06:51]line Счет N : (1)1964483 [10:06:51]line ИНН: 02508201610067 [10:06:51]line Контрольно-Кассовый Чек [10:06:51]line ПРОДАЖА [10:06:51]line ТРК (МРК, ГНК) : 43 [10:06:51]line Товар: 2710124130 [10:06:51]line Аи-92-К-5 [10:06:51]line 10.470 * 66.90 [10:06:51]line = 700.44 [10:06:51]line НДС 12% НСП 1% [10:06:51]line > о реализуемом товаре [10:06:51]line ОКРУГЛЕНИЕ: -0.44 [10:06:51]line ИТОГО: 700.00 [10:06:51]line Внесено: 700.00 [10:06:51]line СДАЧА: 0.00 [10:06:51]line НСП 1% : 6.20 [10:06:51]line НДС 12% : 74.38 [10:06:51]line Наличными: 700.00 [10:06:51]line Безнал.: 0.00 [10:06:51]line Место: АЗС № 133 "Партнер Нефть" [10:06:51]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:06:51]line СНО: Общий режим [10:06:51]line Чек 90 22.10.2024 10:06 [10:06:51]line Смена: 535 ФФД: 1.0 [10:06:51]line ЗНМ: 0300000091 [10:06:51]line РНМ: 0000000000091685 [10:06:51]line Версия ККМ: 001 [10:06:51]line ФМ: 0000000000871839 [10:06:51]line ФД: 228126 [10:06:51]line ФПД: 118343374079910 [10:06:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100653&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228126&fm=118343374079910&tin=02508201610067®Number=0000000000091685&sum=70000 [10:06:51]Connected sock=11 [10:06:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 39 99 07 01 75 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 5A 00 00 00 F4 03 04 00 3D 79 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1E 7B 03 00 35 04 06 00 6B A1 F6 C6 07 A6 7B CD 08 93 43 4F B1 9B [10:06:51]written 0, free lines is 4095 [10:06:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 9A A9 47 00 06 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1E 7B 03 00 F4 03 04 00 35 24 17 67 B6 04 01 00 00 6A FE DD D1 ED D8 CE 8C [10:06:52]CommunicateWithHost err = 0 [10:06:52]CheckOFDResponse [10:06:52]1017 (14) - 77093643461234 [10:06:52]1041 (16) - 0000000000871839 [10:06:52]1040 (4) - 228126 [10:06:52]1012 (4) - 22.10.2024 04:04 [10:06:52]1206 (1) - 0 [10:06:52]OFD Sender: Remove packet 228126 [10:06:52]ProducePacketName [10:06:52]name=ofd_packets/00228126 [10:06:52]NVStorageDeleteData [10:06:52]Write to MH i2c: 01 00 00 0F 1D 2C [10:06:52]Write i2c OK [10:06:52]MH_I2C_Read... [10:06:52]Read from MH i2c: 01 [10:06:52]MH_I2C_Read... [10:06:52]Read from MH i2c: 01 07 00 [10:06:52]MH_I2C_Read... [10:06:52]Read from MH i2c: 01 07 00 0F 1D 00 00 00 00 00 C3 0C 02 [10:06:52]RasterBufferAndPrint [10:06:52]line [10:06:52]line [10:06:52]line [10:06:52]line [10:06:52]line [10:06:52]written 0, free lines is 3272 [10:06:52]MH_Cut [10:06:52]Write to MH i2c: D1 01 00 16 1D 01 05 [10:06:52]Write i2c OK [10:06:52]MH_I2C_Read... [10:06:52]Read from MH i2c: D1 [10:06:52]MH_I2C_Read... [10:06:52]Read from MH i2c: D1 01 00 [10:06:52]MH_I2C_Read... [10:06:52]Read from MH i2c: D1 01 00 16 1D 00 04 [10:06:52]Write to MH i2c: 01 00 00 17 1D 34 [10:06:52]Write i2c OK [10:06:52]MH_I2C_Read... [10:06:52]OFD Sender: No OFD packet to send [10:06:53]*** Cut start [10:06:53]*** Partial cut [10:06:53]*** CUTSNS_PIN = 1 [10:06:53]*** CUTSNS_PIN = 0 [10:06:53]*** Brake cut motor [10:06:53]Read from MH i2c: 01 [10:06:53]MH_I2C_Read... [10:06:53]*** Stop cut motor [10:06:53]*** Cut end [10:06:53]Read from MH i2c: 01 07 00 [10:06:53]MH_I2C_Read... [10:06:53]Read from MH i2c: 01 07 00 17 1D 00 00 00 00 00 FF 0F 49 [10:06:53]process_action close_receipt done [10:06:53]requested_data is exist [10:06:53]produce_requested_data [10:06:53]requested_item fm.sn is exist - process it [10:06:53]wFMCommunicate request_size=4 [10:06:53]MH_SAM_APDU [10:06:53]CAPDU: 80 11 00 00 [10:06:53]Write to MH i2c: E2 08 00 18 1D 80 11 00 00 00 00 00 00 AF [10:06:53]Write i2c OK [10:06:53]MH_I2C_Read... [10:06:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:53]Read from MH i2c: E2 [10:06:53]MH_I2C_Read... [10:06:53]Read from MH i2c: E2 17 00 [10:06:53]MH_I2C_Read... [10:06:53]Read from MH i2c: E2 17 00 18 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 06 [10:06:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:06:53]wFMCommunicate OK [10:06:53]requested_item fd.num is exist - process it [10:06:53]SAM_PROTO_GetFieldsCounters [10:06:53]wFMCommunicate request_size=4 [10:06:53]MH_SAM_APDU [10:06:53]CAPDU: 80 13 00 00 [10:06:53]Write to MH i2c: E2 08 00 19 1D 80 13 00 00 00 00 00 00 B2 [10:06:53]Write i2c OK [10:06:53]MH_I2C_Read... [10:06:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:54]Read from MH i2c: E2 [10:06:54]MH_I2C_Read... [10:06:54]Read from MH i2c: E2 62 00 [10:06:54]MH_I2C_Read... [10:06:54]Read from MH i2c: E2 62 00 19 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1E 7B 03 00 0E 04 04 00 17 02 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 9E [10:06:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1E 7B 03 00 0E 04 04 00 17 02 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:06:54]wFMCommunicate OK [10:06:54]SAM_PROTO_GetFieldsCounters done [10:06:54]requested_item shift.num is exist - process it [10:06:54]requested_item shift.opened is exist - process it [10:06:54]req_shift_opened [10:06:54]FM_GetShiftState [10:06:54]SAM_PROTO_GetShiftState [10:06:54]wFMCommunicate request_size=4 [10:06:54]MH_SAM_APDU [10:06:54]CAPDU: 80 13 01 00 [10:06:54]Write to MH i2c: E2 08 00 1A 1D 80 13 01 00 00 00 00 00 B4 [10:06:54]Write i2c OK [10:06:54]MH_I2C_Read... [10:06:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:54]Read from MH i2c: E2 [10:06:54]MH_I2C_Read... [10:06:54]Read from MH i2c: E2 0E 00 [10:06:54]MH_I2C_Read... [10:06:54]Read from MH i2c: E2 0E 00 1A 1D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 7B [10:06:54]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:06:54]wFMCommunicate OK [10:06:54]SAM_PROTO_GetShiftState done [10:06:54]FM_GetShiftState done [10:06:54]req_shift_opened done [10:06:54]requested_item shift.open_date is exist - process it [10:06:54]req_shift_open_date [10:06:54]req_shift_open_date done [10:06:54]produce_requested_data done [10:06:54]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228126,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [10:06:54]process_action_free close_receipt [10:06:54]json_value_free [10:06:54]json_value_free done [10:06:54]process_json_proto returns [10:06:54]Send response to host [10:06:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228126,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [10:06:54]free response buf [10:06:54]execute_script done [10:06:54]execute_script returns [10:06:54]free content buf [10:06:54]Sock 9.Close socket [10:06:54]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [10:08:32]OFD Sender: No OFD packet to send [10:08:37]OFD Sender: No OFD packet to send [10:08:42]OFD Sender: No OFD packet to send [10:08:47]OFD Sender: No OFD packet to send [10:08:52]OFD Sender: No OFD packet to send [10:08:57]OFD Sender: No OFD packet to send [10:09:02]OFD Sender: No OFD packet to send [10:09:07]OFD Sender: No OFD packet to send [10:09:12]OFD Sender: No OFD packet to send [10:09:17]OFD Sender: No OFD packet to send [10:09:22]OFD Sender: No OFD packet to send [10:09:27]OFD Sender: No OFD packet to send [10:09:32]OFD Sender: No OFD packet to send [10:09:37]OFD Sender: No OFD packet to send [10:09:42]OFD Sender: No OFD packet to send [10:09:47]OFD Sender: No OFD packet to send [10:09:52]OFD Sender: No OFD packet to send [10:09:57]OFD Sender: No OFD packet to send [10:10:02]OFD Sender: No OFD packet to send [10:10:07]OFD Sender: No OFD packet to send [10:10:12]OFD Sender: No OFD packet to send [10:10:17]OFD Sender: No OFD packet to send [10:10:22]OFD Sender: No OFD packet to send [10:10:27]OFD Sender: No OFD packet to send [10:10:29]accept exits with 7 [10:10:29]New connection [10:10:29]New thread 3066994020 created [10:10:29]Thread 3067137380 joined [10:10:29]Waiting for new connection... [10:10:29] Sock 7.Parse request [10:10:29]Sock 7.Check first char [10:10:29]Sock 7.First char is OK [10:10:29]request: POST /json_proto HTTP/1.0 [10:10:29]Method: POST [10:10:29]URL: /json_proto [10:10:29]Method is POST - this is cgi request [10:10:29]url: /json_proto [10:10:29]query_string will be loaded in cgi processing [10:10:29]execute_cgi json_proto POST (null) [10:10:29]execute_cgi path=json_proto method=POST [10:10:29]POST find Content-Length [10:10:29]Host: 172.17.44.195:8080 [10:10:29]Content-Length: 678 [10:10:29]Content-Type: application/json [10:10:29] [10:10:29]POST finish read [10:10:29]Found Content-Length = 678 [10:10:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964485", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:10:29]execute_script... [10: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)1964485", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:10:29]POST & json_proto [10:10:29]process_json_proto [10:10:29]json parsed OK: [10:10:29]protocol is kg_v1.0 [10:10:29]action value=close_receipt [10:10:29]process_action close_receipt [10:10:29]cmd_close_receipt [10:10:29]MH_GetDate [10:10:29]Write to MH i2c: F0 00 00 1B 1D 27 [10:10:29]Write i2c OK [10:10:29]MH_I2C_Read... [10:10:29]Read from MH i2c: F0 [10:10:29]MH_I2C_Read... [10:10:29]Read from MH i2c: F0 09 00 [10:10:29]MH_I2C_Read... [10:10:29]Read from MH i2c: F0 09 00 1B 1D 00 18 7A 17 67 82 C9 CF 66 C0 [10:10:29]GetLastDocTimeStamp 1729591613 [10:10:29]current date 1729591832 [10:10:29]FM_GetShiftState [10:10:29]SAM_PROTO_GetShiftState [10:10:29]wFMCommunicate request_size=4 [10:10:29]MH_SAM_APDU [10:10:29]CAPDU: 80 13 01 00 [10:10:29]Write to MH i2c: E2 08 00 1C 1D 80 13 01 00 00 00 00 00 B6 [10:10:29]Write i2c OK [10:10:29]MH_I2C_Read... [10:10:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:29]Read from MH i2c: E2 [10:10:29]MH_I2C_Read... [10:10:29]Read from MH i2c: E2 0E 00 [10:10:29]MH_I2C_Read... [10:10:29]Read from MH i2c: E2 0E 00 1C 1D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 7D [10:10:29]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:10:29]wFMCommunicate OK [10:10:29]SAM_PROTO_GetShiftState done [10:10:29]FM_GetShiftState done [10:10:29]opened in 1729555538 [10:10:29]opened+sec_in_day 1729641938 [10:10:29]quantity*price = 50041 [10:10:29]sum+1 = 50042 [10:10:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 91 22.10.2024 10:10 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228127 ФПД: 211814554605762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101032&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228127&fm=211814554605762&tin=02508201610067®Number=0000000000091685&sum=50000 [10:10:30]StoreToDocumentArchive [10:10:30]shift 535 fd 228127 [10:10:30]save to /storage/0535/doc_00228127 [10:10:30]save last doc name /storage/0535/doc_00228127 to /storage/kkm_last_doc_name [10:10:30]save OK [10:10:30]Clear old archive folders... [10:10:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:10:30]tlvbuf is 008A06B0 [10:10:30]SAM_PROTO_ClearQueue [10:10:30]wFMCommunicate request_size=4 [10:10:30]MH_SAM_APDU [10:10:30]CAPDU: 80 09 00 00 [10:10:30]Write to MH i2c: E2 08 00 29 1D 80 09 00 00 00 00 00 00 B8 [10:10:30]Write i2c OK [10:10:30]MH_I2C_Read... [10:10:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:30]Read from MH i2c: E2 [10:10:30]MH_I2C_Read... [10:10:30]Read from MH i2c: E2 03 00 [10:10:30]MH_I2C_Read... [10:10:30]Read from MH i2c: E2 03 00 29 1D 00 90 00 BA [10:10:30]RAPDU: 90 00 [10:10:30]wFMCommunicate OK [10:10:30]SAM_PROTO_ClearQueue done [10:10:30]KKMCreateOFDPacket [10:10:30]OFDProtocolAddRootSTLVToBuf [10:10:30]FM_MakeSignedData [10:10:30]FM_MakeSignedData [10:10:30]SAM_PROTO_SignData [10:10:30]wFMCommunicate request_size=4 [10:10:30]MH_SAM_APDU [10:10:30]CAPDU: 80 0D 01 02 [10:10:30]Write to MH i2c: E2 08 00 2A 1D 80 0D 01 02 00 00 00 00 C0 [10:10:30]Write i2c OK [10:10:30]MH_I2C_Read... [10:10:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:30]Read from MH i2c: E2 [10:10:30]MH_I2C_Read... [10:10:30]Read from MH i2c: E2 03 00 [10:10:30]MH_I2C_Read... [10:10:30]Read from MH i2c: E2 03 00 2A 1D 00 90 00 BB [10:10:30]RAPDU: 90 00 [10:10:30]wFMCommunicate OK [10:10:30]wFMCommunicate request_size=255 [10:10:30]MH_SAM_APDU [10: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 18 7A 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1F 7B 03 00 35 04 06 00 C0 [10:10:30]Write to MH i2c: E2 02 01 2B 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 18 7A 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1F 7B 03 00 35 04 06 00 C0 00 00 38 [10:10:30]Write i2c OK [10:10:30]MH_I2C_Read... [10:10:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:30]Read from MH i2c: E2 [10:10:30]MH_I2C_Read... [10:10:30]Read from MH i2c: E2 03 00 [10:10:30]MH_I2C_Read... [10:10:30]Read from MH i2c: E2 03 00 2B 1D 00 90 00 BC [10:10:30]RAPDU: 90 00 [10:10:30]wFMCommunicate OK [10:10:30]wFMCommunicate request_size=10 [10:10:30]MH_SAM_APDU [10:10:30]CAPDU: 80 0D 02 02 05 A4 EB 49 18 C2 [10:10:30]Write to MH i2c: E2 0D 00 2C 1D 80 0D 02 02 05 00 A4 EB 49 18 C2 00 00 7F [10:10:30]Write i2c OK [10:10:30]MH_I2C_Read... [10:10:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:30]Read from MH i2c: E2 [10:10:30]MH_I2C_Read... [10:10:30]Read from MH i2c: E2 03 00 [10:10:30]MH_I2C_Read... [10:10:30]Read from MH i2c: E2 03 00 2C 1D 00 90 00 BD [10:10:30]RAPDU: 90 00 [10:10:30]wFMCommunicate OK [10:10:30]wFMCommunicate request_size=4 [10:10:30]MH_SAM_APDU [10:10:30]CAPDU: 80 0D 03 02 [10:10:30]Write to MH i2c: E2 08 00 2D 1D 80 0D 03 02 00 00 00 00 C5 [10:10:30]Write i2c OK [10:10:30]MH_I2C_Read... [10:10:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:31]Read from MH i2c: E2 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 0B 00 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 0B 00 2D 1D 00 FB E0 D0 C1 E6 5A C4 36 90 00 6C [10:10:31]RAPDU: FB E0 D0 C1 E6 5A C4 36 90 00 [10:10:31]wFMCommunicate OK [10:10:31]SAM_PROTO_SignData done [10:10:31]FM_MakeSignedData done [10:10:31]CreateOFDProtocolMessage [10:10:31]wFMCommunicate request_size=4 [10:10:31]MH_SAM_APDU [10:10:31]CAPDU: 80 11 00 00 [10:10:31]Write to MH i2c: E2 08 00 2E 1D 80 11 00 00 00 00 00 00 C5 [10:10:31]Write i2c OK [10:10:31]MH_I2C_Read... [10:10:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:31]Read from MH i2c: E2 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 17 00 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 17 00 2E 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1C [10:10:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:10:31]wFMCommunicate OK [10:10:31]CreateOFDProtocolMessage done [10:10:31]OFDSenderStorePacket 228127 [10:10:31]StoreOFDPacket docnum=228127 [10:10:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 7A 70 07 01 3C 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 18 7A 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1F 7B 03 00 35 04 06 00 C0 A4 EB 49 18 C2 FB E0 D0 C1 E6 5A C4 36 [10:10:31]CheckFolder [10:10:31]dirname=/storage/ofd_packets [10:10:31]CheckFolder done [10:10:31]ProducePacketName [10:10:31]name=ofd_packets/00228127 [10:10:31]NVStorageSaveData ofd_packets/00228127 [10:10:31]File name is /storage/ofd_packets/00228127 [10:10:31]Write 301 bytes [10:10:31]NVStorageSaveData done [10:10:31]OFDSenderStorePacket done [10:10:31]KKMCreateOFDPacket done [10:10:31]NVStorageSaveData kkm_last_timestamp [10:10:31]File name is /storage/kkm_last_timestamp [10:10:31]Write 4 bytes [10:10:31]NVStorageSaveData done [10:10:31]ExternCall_PrintAddStr [10:10:31]wPrintStart [10:10:31]Write to MH i2c: 01 00 00 2F 1D 4C [10:10:31]Write i2c OK [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: 01 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: 01 07 00 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: 01 07 00 2F 1D 00 00 00 00 00 FF 0F 61 [10:10:31]RasterBufferAndPrint [10:10:31]line Счет N : (1)1964485 [10:10:31]line ИНН: 02508201610067 [10:10:31]line Контрольно-Кассовый Чек [10:10:31]line ПРОДАЖА [10:10:31]line ТРК (МРК, ГНК) : 43 [10:10:31]line Товар: 2710124130 [10:10:31]line Аи-92-К-5 [10:10:31]line 7.480 * 66.90 [10:10:31]line = 500.41 [10:10:31]line НДС 12% НСП 1% [10:10:31]line > о реализуемом товаре [10:10:31]line ОКРУГЛЕНИЕ: -0.41 [10:10:31]line ИТОГО: 500.00 [10:10:31]line Внесено: 500.00 [10:10:31]line СДАЧА: 0.00 [10:10:31]line НСП 1% : 4.43 [10:10:31]line НДС 12% : 53.14 [10:10:31]line Наличными: 500.00 [10:10:31]line Безнал.: 0.00 [10:10:31]line Место: АЗС № 133 "Партнер Нефть" [10:10:31]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:10:31]line СНО: Общий режим [10:10:31]line Чек 91 22.10.2024 10:10 [10:10:31]line Смена: 535 ФФД: 1.0 [10:10:31]line ЗНМ: 0300000091 [10:10:31]line РНМ: 0000000000091685 [10:10:31]line Версия ККМ: 001 [10:10:31]line ФМ: 0000000000871839 [10:10:31]line ФД: 228127 [10:10:31]line ФПД: 211814554605762 [10:10:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101032&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228127&fm=211814554605762&tin=02508201610067®Number=0000000000091685&sum=50000 [10:10:31]OFD Sender: Processing packet 228127 [packets to send 38, broken 37] [10:10:31]ProducePacketName [10:10:31]name=ofd_packets/00228127 [10:10:31]OFD Sender: To server: pG, [10:10:31]CommunicateWithHost lk.salyk.kg:30040 [10:10:31]ConnectInit lk.salyk.kg [10:10:31]written 0, free lines is 4095 [10:10:31]Write to MH i2c: 01 00 00 59 1D 76 [10:10:31]Write i2c OK [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: 01 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: 01 07 00 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: 01 07 00 59 1D 00 00 00 00 00 B9 0C 42 [10:10:31]RasterBufferAndPrint [10:10:31]line [10:10:31]line [10:10:31]line [10:10:31]line [10:10:31]line [10:10:31]written 0, free lines is 3262 [10:10:31]MH_Cut [10:10:31]Write to MH i2c: D1 01 00 60 1D 01 4F [10:10:31]Write i2c OK [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: D1 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: D1 01 00 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: D1 01 00 60 1D 00 4E [10:10:31]Write to MH i2c: 01 00 00 61 1D 7E [10:10:31]Write i2c OK [10:10:31]MH_I2C_Read... [10:10:32]Connected sock=10 [10:10:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 7A 70 07 01 3C 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 18 7A 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1F 7B 03 00 35 04 06 00 C0 A4 EB 49 18 C2 FB E0 D0 C1 E6 5A C4 36 [10:10:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 6D E0 47 00 FA 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1F 7B 03 00 F4 03 04 00 12 25 17 67 B6 04 01 00 00 3E 82 AD 66 D7 1F 24 49 [10:10:32]CommunicateWithHost err = 0 [10:10:32]CheckOFDResponse [10:10:32]1017 (14) - 77093643461234 [10:10:32]1041 (16) - 0000000000871839 [10:10:32]1040 (4) - 228127 [10:10:32]1012 (4) - 22.10.2024 04:07 [10:10:32]1206 (1) - 0 [10:10:32]OFD Sender: Remove packet 228127 [10:10:32]ProducePacketName [10:10:32]name=ofd_packets/00228127 [10:10:32]NVStorageDeleteData [10:10:32]*** Cut start [10:10:32]*** Partial cut [10:10:32]*** CUTSNS_PIN = 1 [10:10:32]*** CUTSNS_PIN = 0 [10:10:32]OFD Sender: No OFD packet to send [10:10:33]*** Brake cut motor [10:10:33]Read from MH i2c: 01 [10:10:33]MH_I2C_Read... [10:10:33]*** Stop cut motor [10:10:33]*** Cut end [10:10:33]Read from MH i2c: 01 07 00 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: 01 07 00 61 1D 00 00 00 00 00 FF 0F 93 [10:10:33]process_action close_receipt done [10:10:33]requested_data is exist [10:10:33]produce_requested_data [10:10:33]requested_item fm.sn is exist - process it [10:10:33]wFMCommunicate request_size=4 [10:10:33]MH_SAM_APDU [10:10:33]CAPDU: 80 11 00 00 [10:10:33]Write to MH i2c: E2 08 00 62 1D 80 11 00 00 00 00 00 00 F9 [10:10:33]Write i2c OK [10:10:33]MH_I2C_Read... [10:10:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:33]Read from MH i2c: E2 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: E2 17 00 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: E2 17 00 62 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 50 [10:10:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:10:33]wFMCommunicate OK [10:10:33]requested_item fd.num is exist - process it [10:10:33]SAM_PROTO_GetFieldsCounters [10:10:33]wFMCommunicate request_size=4 [10:10:33]MH_SAM_APDU [10:10:33]CAPDU: 80 13 00 00 [10:10:33]Write to MH i2c: E2 08 00 63 1D 80 13 00 00 00 00 00 00 FC [10:10:33]Write i2c OK [10:10:33]MH_I2C_Read... [10:10:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:33]Read from MH i2c: E2 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: E2 62 00 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: E2 62 00 63 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1F 7B 03 00 0E 04 04 00 17 02 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 EC [10:10:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1F 7B 03 00 0E 04 04 00 17 02 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:10:33]wFMCommunicate OK [10:10:33]SAM_PROTO_GetFieldsCounters done [10:10:33]requested_item shift.num is exist - process it [10:10:33]requested_item shift.opened is exist - process it [10:10:33]req_shift_opened [10:10:33]FM_GetShiftState [10:10:33]SAM_PROTO_GetShiftState [10:10:33]wFMCommunicate request_size=4 [10:10:33]MH_SAM_APDU [10:10:33]CAPDU: 80 13 01 00 [10:10:33]Write to MH i2c: E2 08 00 64 1D 80 13 01 00 00 00 00 00 FE [10:10:33]Write i2c OK [10:10:33]MH_I2C_Read... [10:10:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:33]Read from MH i2c: E2 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: E2 0E 00 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: E2 0E 00 64 1D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 C5 [10:10:33]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:10:33]wFMCommunicate OK [10:10:33]SAM_PROTO_GetShiftState done [10:10:33]FM_GetShiftState done [10:10:33]req_shift_opened done [10:10:33]requested_item shift.open_date is exist - process it [10:10:33]req_shift_open_date [10:10:33]req_shift_open_date done [10:10:33]produce_requested_data done [10:10:33]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228127,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [10:10:33]process_action_free close_receipt [10:10:33]json_value_free [10:10:33]json_value_free done [10:10:33]process_json_proto returns [10:10:33]Send response to host [10:10:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228127,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [10:10:33]free response buf [10:10:33]execute_script done [10:10:33]execute_script returns [10:10:33]free content buf [10:10:33]Sock 7.Close socket [10:10:33]Sock 7.Thread stoped [10:10:37]OFD Sender: No OFD packet to send [10:10:42]OFD Sender: No OFD packet to send [10:10:47]OFD Sender: No OFD packet to send [10:10:52]OFD Sender: No OFD packet to send [10:10:57]OFD Sender: No OFD packet to send [10:11:02]OFD Sender: No OFD packet to send [10:11:07]OFD Sender: No OFD packet to send [10:11:12]OFD Sender: No OFD packet to send [10:11:17]OFD Sender: No OFD packet to send [10:11:22]OFD Sender: No OFD packet to send [10:11:27]OFD Sender: No OFD packet to send [10:11:32]OFD Sender: No OFD packet to send [10:11:37]OFD Sender: No OFD packet to send [10:11:42]OFD Sender: No OFD packet to send [10:11:47]OFD Sender: No OFD packet to send [10:11:52]OFD Sender: No OFD packet to send [10:11:57]OFD Sender: No OFD packet to send [10:12:02]OFD Sender: No OFD packet to send [10:12:07]OFD Sender: No OFD packet to send [10:12:12]OFD Sender: No OFD packet to send [10:12:17]OFD Sender: No OFD packet to send [10:12:22]OFD Sender: No OFD packet to send [10:12:27]OFD Sender: No OFD packet to send [10:12:32]OFD Sender: No OFD packet to send [10:12:37]OFD Sender: No OFD packet to send [10:12:42]OFD Sender: No OFD packet to send [10:12:47]OFD Sender: No OFD packet to send [10:12:52]OFD Sender: No OFD packet to send [10:12:57]OFD Sender: No OFD packet to send [10:13:02]OFD Sender: No OFD packet to send [10:13:07]OFD Sender: No OFD packet to send [10:13:12]OFD Sender: No OFD packet to send [10:13:17]OFD Sender: No OFD packet to send [10:13:22]OFD Sender: No OFD packet to send [10:13:28]OFD Sender: No OFD packet to send [10:13:33]OFD Sender: No OFD packet to send [10:13:38]OFD Sender: No OFD packet to send [10:13:43]OFD Sender: No OFD packet to send [10:13:48]OFD Sender: No OFD packet to send [10:13:53]OFD Sender: No OFD packet to send [10:13:58]OFD Sender: No OFD packet to send [10:14:03]OFD Sender: No OFD packet to send [10:14:08]OFD Sender: No OFD packet to send [10:14:13]OFD Sender: No OFD packet to send [10:14:18]OFD Sender: No OFD packet to send [10:14:23]OFD Sender: No OFD packet to send [10:14:28]OFD Sender: No OFD packet to send [10:14:33]OFD Sender: No OFD packet to send [10:14:38]OFD Sender: No OFD packet to send [10:14:43]OFD Sender: No OFD packet to send [10:14:48]OFD Sender: No OFD packet to send [10:14:53]OFD Sender: No OFD packet to send [10:14:58]OFD Sender: No OFD packet to send [10:15:03]OFD Sender: No OFD packet to send [10:15:08]OFD Sender: No OFD packet to send [10:15:13]OFD Sender: No OFD packet to send [10:15:18]OFD Sender: No OFD packet to send [10:15:23]OFD Sender: No OFD packet to send [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:38]OFD Sender: No OFD packet to send [10:15:43]OFD Sender: No OFD packet to send [10:15:48]OFD Sender: No OFD packet to send [10:15:53]OFD Sender: No OFD packet to send [10:15:58]OFD Sender: No OFD packet to send [10:16:03]OFD Sender: No OFD packet to send [10:16:08]OFD Sender: No OFD packet to send [10:16:13]OFD Sender: No OFD packet to send [10:16:18]OFD Sender: No OFD packet to send [10:16:23]OFD Sender: No OFD packet to send [10:16:24]recv_with_timeout no data received [10:16:28]OFD Sender: No OFD packet to send [10:16:33]OFD Sender: No OFD packet to send [10:16:38]OFD Sender: No OFD packet to send [10:16:43]OFD Sender: No OFD packet to send [10:16:45]recv_with_timeout no data received [10:16:48]OFD Sender: No OFD packet to send [10:16:53]OFD Sender: No OFD packet to send [10:16:58]OFD Sender: No OFD packet to send [10:17:03]OFD Sender: No OFD packet to send [10:17:08]OFD Sender: No OFD packet to send [10:17:13]OFD Sender: No OFD packet to send [10:17:18]OFD Sender: No OFD packet to send [10:17:23]OFD Sender: No OFD packet to send [10:17:28]OFD Sender: No OFD packet to send [10:17:33]OFD Sender: No OFD packet to send [10:17:38]OFD Sender: No OFD packet to send [10:17:43]OFD Sender: No OFD packet to send [10:17:48]OFD Sender: No OFD packet to send [10:17:53]OFD Sender: No OFD packet to send [10:17:58]OFD Sender: No OFD packet to send [10:18:03]OFD Sender: No OFD packet to send [10:18:08]OFD Sender: No OFD packet to send [10:18:13]OFD Sender: No OFD packet to send [10:18:18]OFD Sender: No OFD packet to send [10:18:20]accept exits with 9 [10:18:20]New connection [10:18:20]New thread 3067137380 created [10:18:20]Thread 3066994020 joined [10:18:20]Waiting for new connection... [10:18:20] Sock 9.Parse request [10:18:20]Sock 9.Check first char [10:18:20]Sock 9.First char is OK [10:18:20]request: POST /json_proto HTTP/1.0 [10:18:20]Method: POST [10:18:20]URL: /json_proto [10:18:20]Method is POST - this is cgi request [10:18:20]url: /json_proto [10:18:20]query_string will be loaded in cgi processing [10:18:20]execute_cgi json_proto POST (null) [10:18:20]execute_cgi path=json_proto method=POST [10:18:20]POST find Content-Length [10:18:20]Host: 172.17.44.195:8080 [10:18:20]Content-Length: 679 [10:18:20]Content-Type: application/json [10:18:20] [10:18:20]POST finish read [10:18:20]Found Content-Length = 679 [10:18:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964490", "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" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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:18:20]execute_script... [10: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)1964490", "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" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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:18:20]POST & json_proto [10:18:20]process_json_proto [10:18:20]json parsed OK: [10:18:20]protocol is kg_v1.0 [10:18:20]action value=close_receipt [10:18:20]process_action close_receipt [10:18:20]cmd_close_receipt [10:18:20]MH_GetDate [10:18:20]Write to MH i2c: F0 00 00 65 1D 71 [10:18:20]Write i2c OK [10:18:20]MH_I2C_Read... [10:18:20]Read from MH i2c: F0 [10:18:20]MH_I2C_Read... [10:18:20]Read from MH i2c: F0 09 00 [10:18:20]MH_I2C_Read... [10:18:20]Read from MH i2c: F0 09 00 65 1D 00 F0 7B 17 67 82 C9 CF 66 E3 [10:18:20]GetLastDocTimeStamp 1729591832 [10:18:20]current date 1729592304 [10:18:20]FM_GetShiftState [10:18:20]SAM_PROTO_GetShiftState [10:18:20]wFMCommunicate request_size=4 [10:18:20]MH_SAM_APDU [10:18:20]CAPDU: 80 13 01 00 [10:18:20]Write to MH i2c: E2 08 00 66 1D 80 13 01 00 00 00 00 00 00 [10:18:20]Write i2c OK [10:18:20]MH_I2C_Read... [10:18:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:20]Read from MH i2c: E2 [10:18:20]MH_I2C_Read... [10:18:20]Read from MH i2c: E2 0E 00 [10:18:20]MH_I2C_Read... [10:18:20]Read from MH i2c: E2 0E 00 66 1D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 C7 [10:18:20]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:18:20]wFMCommunicate OK [10:18:20]SAM_PROTO_GetShiftState done [10:18:20]FM_GetShiftState done [10:18:20]opened in 1729555538 [10:18:20]opened+sec_in_day 1729641938 [10:18:20]quantity*price = 70044 [10:18:20]sum+1 = 70045 [10:18:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 92 22.10.2024 10:18 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228128 ФПД: 194320149079092 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101824&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228128&fm=194320149079092&tin=02508201610067®Number=0000000000091685&sum=70000 [10:18:21]StoreToDocumentArchive [10:18:21]shift 535 fd 228128 [10:18:21]save to /storage/0535/doc_00228128 [10:18:21]save last doc name /storage/0535/doc_00228128 to /storage/kkm_last_doc_name [10:18:21]save OK [10:18:21]Clear old archive folders... [10:18:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:18:21]tlvbuf is 008AF1C0 [10:18:21]SAM_PROTO_ClearQueue [10:18:21]wFMCommunicate request_size=4 [10:18:21]MH_SAM_APDU [10:18:21]CAPDU: 80 09 00 00 [10:18:21]Write to MH i2c: E2 08 00 73 1D 80 09 00 00 00 00 00 00 02 [10:18:21]Write i2c OK [10:18:21]MH_I2C_Read... [10:18:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:21]Read from MH i2c: E2 [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: E2 03 00 [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: E2 03 00 73 1D 00 90 00 04 [10:18:21]RAPDU: 90 00 [10:18:21]wFMCommunicate OK [10:18:21]SAM_PROTO_ClearQueue done [10:18:21]KKMCreateOFDPacket [10:18:21]OFDProtocolAddRootSTLVToBuf [10:18:21]FM_MakeSignedData [10:18:21]FM_MakeSignedData [10:18:21]SAM_PROTO_SignData [10:18:21]wFMCommunicate request_size=4 [10:18:21]MH_SAM_APDU [10:18:21]CAPDU: 80 0D 01 02 [10:18:21]Write to MH i2c: E2 08 00 74 1D 80 0D 01 02 00 00 00 00 0A [10:18:21]Write i2c OK [10:18:21]MH_I2C_Read... [10:18:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:21]Read from MH i2c: E2 [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: E2 03 00 [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: E2 03 00 74 1D 00 90 00 05 [10:18:21]RAPDU: 90 00 [10:18:21]wFMCommunicate OK [10:18:21]wFMCommunicate request_size=255 [10:18:21]MH_SAM_APDU [10:18: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 5C 00 00 00 F4 03 04 00 F0 7B 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 20 7B 03 00 35 04 06 00 B0 [10:18:21]Write to MH i2c: E2 02 01 75 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 5C 00 00 00 F4 03 04 00 F0 7B 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 20 7B 03 00 35 04 06 00 B0 00 00 5D [10:18:21]Write i2c OK [10:18:21]MH_I2C_Read... [10:18:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:22]Read from MH i2c: E2 [10:18:22]MH_I2C_Read... [10:18:22]Read from MH i2c: E2 03 00 [10:18:22]MH_I2C_Read... [10:18:22]Read from MH i2c: E2 03 00 75 1D 00 90 00 06 [10:18:22]RAPDU: 90 00 [10:18:22]wFMCommunicate OK [10:18:22]wFMCommunicate request_size=10 [10:18:22]MH_SAM_APDU [10:18:22]CAPDU: 80 0D 02 02 05 BB AF 75 64 34 [10:18:22]Write to MH i2c: E2 0D 00 76 1D 80 0D 02 02 05 00 BB AF 75 64 34 00 00 8E [10:18:22]Write i2c OK [10:18:22]MH_I2C_Read... [10:18:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:22]Read from MH i2c: E2 [10:18:22]MH_I2C_Read... [10:18:22]Read from MH i2c: E2 03 00 [10:18:22]MH_I2C_Read... [10:18:22]Read from MH i2c: E2 03 00 76 1D 00 90 00 07 [10:18:22]RAPDU: 90 00 [10:18:22]wFMCommunicate OK [10:18:22]wFMCommunicate request_size=4 [10:18:22]MH_SAM_APDU [10:18:22]CAPDU: 80 0D 03 02 [10:18:22]Write to MH i2c: E2 08 00 77 1D 80 0D 03 02 00 00 00 00 0F [10:18:22]Write i2c OK [10:18:22]MH_I2C_Read... [10:18:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:22]Read from MH i2c: E2 [10:18:22]MH_I2C_Read... [10:18:22]Read from MH i2c: E2 0B 00 [10:18:22]MH_I2C_Read... [10:18:22]Read from MH i2c: E2 0B 00 77 1D 00 CD C3 6C DA 70 5E F2 12 90 00 B8 [10:18:22]RAPDU: CD C3 6C DA 70 5E F2 12 90 00 [10:18:22]wFMCommunicate OK [10:18:22]SAM_PROTO_SignData done [10:18:22]FM_MakeSignedData done [10:18:22]CreateOFDProtocolMessage [10:18:22]wFMCommunicate request_size=4 [10:18:22]MH_SAM_APDU [10:18:22]CAPDU: 80 11 00 00 [10:18:22]Write to MH i2c: E2 08 00 78 1D 80 11 00 00 00 00 00 00 0F [10:18:22]Write i2c OK [10:18:22]MH_I2C_Read... [10:18:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:22]Read from MH i2c: E2 [10:18:22]MH_I2C_Read... [10:18:22]Read from MH i2c: E2 17 00 [10:18:22]MH_I2C_Read... [10:18:22]Read from MH i2c: E2 17 00 78 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 66 [10:18:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:18:22]wFMCommunicate OK [10:18:22]CreateOFDProtocolMessage done [10:18:22]OFDSenderStorePacket 228128 [10:18:22]StoreOFDPacket docnum=228128 [10:18:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 41 1E 07 01 C3 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 5C 00 00 00 F4 03 04 00 F0 7B 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 20 7B 03 00 35 04 06 00 B0 BB AF 75 64 34 CD C3 6C DA 70 5E F2 12 [10:18:22]CheckFolder [10:18:22]dirname=/storage/ofd_packets [10:18:22]CheckFolder done [10:18:22]ProducePacketName [10:18:22]name=ofd_packets/00228128 [10:18:22]NVStorageSaveData ofd_packets/00228128 [10:18:22]File name is /storage/ofd_packets/00228128 [10:18:22]Write 301 bytes [10:18:22]NVStorageSaveData done [10:18:22]OFDSenderStorePacket done [10:18:22]KKMCreateOFDPacket done [10:18:22]NVStorageSaveData kkm_last_timestamp [10:18:22]File name is /storage/kkm_last_timestamp [10:18:22]Write 4 bytes [10:18:22]NVStorageSaveData done [10:18:22]OFD Sender: Processing packet 228128 [packets to send 38, broken 37] [10:18:22]ProducePacketName [10:18:22]name=ofd_packets/00228128 [10:18:22]OFD Sender: To server: pG, [10:18:22]CommunicateWithHost lk.salyk.kg:30040 [10:18:22]ConnectInit lk.salyk.kg [10:18:22]ExternCall_PrintAddStr [10:18:22]wPrintStart [10:18:22]Write to MH i2c: 01 00 00 79 1D 96 [10:18:22]Write i2c OK [10:18:22]MH_I2C_Read... [10:18:22]Read from MH i2c: 01 [10:18:22]MH_I2C_Read... [10:18:22]Read from MH i2c: 01 07 00 [10:18:22]MH_I2C_Read... [10:18:22]Read from MH i2c: 01 07 00 79 1D 00 00 00 00 00 FF 0F AB [10:18:22]RasterBufferAndPrint [10:18:22]line Счет N : (1)1964490 [10:18:22]line ИНН: 02508201610067 [10:18:22]line Контрольно-Кассовый Чек [10:18:22]line ПРОДАЖА [10:18:22]line ТРК (МРК, ГНК) : 53 [10:18:22]line Товар: 2710124130 [10:18:22]line Аи-92-К-5 [10:18:22]line 10.470 * 66.90 [10:18:22]line = 700.44 [10:18:22]line НДС 12% НСП 1% [10:18:22]line > о реализуемом товаре [10:18:22]line ОКРУГЛЕНИЕ: -0.44 [10:18:22]line ИТОГО: 700.00 [10:18:22]line Внесено: 700.00 [10:18:22]line СДАЧА: 0.00 [10:18:22]line НСП 1% : 6.20 [10:18:22]line НДС 12% : 74.38 [10:18:22]line Наличными: 700.00 [10:18:22]line Безнал.: 0.00 [10:18:22]line Место: АЗС № 133 "Партнер Нефть" [10:18:22]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:18:22]line СНО: Общий режим [10:18:22]line Чек 92 22.10.2024 10:18 [10:18:22]line Смена: 535 ФФД: 1.0 [10:18:22]line ЗНМ: 0300000091 [10:18:22]line РНМ: 0000000000091685 [10:18:22]line Версия ККМ: 001 [10:18:22]line ФМ: 0000000000871839 [10:18:22]line ФД: 228128 [10:18:22]line ФПД: 194320149079092 [10:18:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101824&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228128&fm=194320149079092&tin=02508201610067®Number=0000000000091685&sum=70000 [10:18:22]Connected sock=11 [10:18:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 41 1E 07 01 C3 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 5C 00 00 00 F4 03 04 00 F0 7B 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 20 7B 03 00 35 04 06 00 B0 BB AF 75 64 34 CD C3 6C DA 70 5E F2 12 [10:18:22]written 0, free lines is 4095 [10:18:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 3B BA 47 00 16 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 20 7B 03 00 F4 03 04 00 E8 26 17 67 B6 04 01 00 00 06 E3 03 39 20 E1 98 39 [10:18:22]CommunicateWithHost err = 0 [10:18:22]CheckOFDResponse [10:18:22]1017 (14) - 77093643461234 [10:18:22]1041 (16) - 0000000000871839 [10:18:22]1040 (4) - 228128 [10:18:22]1012 (4) - 22.10.2024 04:15 [10:18:22]1206 (1) - 0 [10:18:22]OFD Sender: Remove packet 228128 [10:18:22]ProducePacketName [10:18:22]name=ofd_packets/00228128 [10:18:22]NVStorageDeleteData [10:18:23]Write to MH i2c: 01 00 00 A3 1D C0 [10:18:23]Write i2c OK [10:18:23]MH_I2C_Read... [10:18:23]Read from MH i2c: 01 [10:18:23]MH_I2C_Read... [10:18:23]Read from MH i2c: 01 07 00 [10:18:23]MH_I2C_Read... [10:18:23]Read from MH i2c: 01 07 00 A3 1D 00 00 00 00 00 C6 0C 99 [10:18:23]RasterBufferAndPrint [10:18:23]line [10:18:23]line [10:18:23]line [10:18:23]line [10:18:23]line [10:18:23]written 0, free lines is 3275 [10:18:23]MH_Cut [10:18:23]Write to MH i2c: D1 01 00 AA 1D 01 99 [10:18:23]Write i2c OK [10:18:23]MH_I2C_Read... [10:18:23]Read from MH i2c: D1 [10:18:23]MH_I2C_Read... [10:18:23]Read from MH i2c: D1 01 00 [10:18:23]MH_I2C_Read... [10:18:23]Read from MH i2c: D1 01 00 AA 1D 00 98 [10:18:23]Write to MH i2c: 01 00 00 AB 1D C8 [10:18:23]Write i2c OK [10:18:23]MH_I2C_Read... [10:18:23]OFD Sender: No OFD packet to send [10:18:23]*** Cut start [10:18:23]*** Partial cut [10:18:23]*** CUTSNS_PIN = 1 [10:18:23]*** CUTSNS_PIN = 0 [10:18:24]*** Brake cut motor [10:18:24]Read from MH i2c: 01 [10:18:24]MH_I2C_Read... [10:18:24]*** Stop cut motor [10:18:24]*** Cut end [10:18:24]Read from MH i2c: 01 07 00 [10:18:24]MH_I2C_Read... [10:18:24]Read from MH i2c: 01 07 00 AB 1D 00 00 00 00 00 FF 0F DD [10:18:24]process_action close_receipt done [10:18:24]requested_data is exist [10:18:24]produce_requested_data [10:18:24]requested_item fm.sn is exist - process it [10:18:24]wFMCommunicate request_size=4 [10:18:24]MH_SAM_APDU [10:18:24]CAPDU: 80 11 00 00 [10:18:24]Write to MH i2c: E2 08 00 AC 1D 80 11 00 00 00 00 00 00 43 [10:18:24]Write i2c OK [10:18:24]MH_I2C_Read... [10:18:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:24]Read from MH i2c: E2 [10:18:24]MH_I2C_Read... [10:18:24]Read from MH i2c: E2 17 00 [10:18:24]MH_I2C_Read... [10:18:24]Read from MH i2c: E2 17 00 AC 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9A [10:18:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:18:24]wFMCommunicate OK [10:18:24]requested_item fd.num is exist - process it [10:18:24]SAM_PROTO_GetFieldsCounters [10:18:24]wFMCommunicate request_size=4 [10:18:24]MH_SAM_APDU [10:18:24]CAPDU: 80 13 00 00 [10:18:24]Write to MH i2c: E2 08 00 AD 1D 80 13 00 00 00 00 00 00 46 [10:18:24]Write i2c OK [10:18:24]MH_I2C_Read... [10:18:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:24]Read from MH i2c: E2 [10:18:24]MH_I2C_Read... [10:18:24]Read from MH i2c: E2 62 00 [10:18:24]MH_I2C_Read... [10:18:24]Read from MH i2c: E2 62 00 AD 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 20 7B 03 00 0E 04 04 00 17 02 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 3A [10:18:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 20 7B 03 00 0E 04 04 00 17 02 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:18:24]wFMCommunicate OK [10:18:24]SAM_PROTO_GetFieldsCounters done [10:18:24]requested_item shift.num is exist - process it [10:18:24]requested_item shift.opened is exist - process it [10:18:24]req_shift_opened [10:18:24]FM_GetShiftState [10:18:24]SAM_PROTO_GetShiftState [10:18:24]wFMCommunicate request_size=4 [10:18:24]MH_SAM_APDU [10:18:24]CAPDU: 80 13 01 00 [10:18:24]Write to MH i2c: E2 08 00 AE 1D 80 13 01 00 00 00 00 00 48 [10:18:24]Write i2c OK [10:18:24]MH_I2C_Read... [10:18:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:24]Read from MH i2c: E2 [10:18:24]MH_I2C_Read... [10:18:24]Read from MH i2c: E2 0E 00 [10:18:24]MH_I2C_Read... [10:18:24]Read from MH i2c: E2 0E 00 AE 1D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 0F [10:18:24]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:18:24]wFMCommunicate OK [10:18:24]SAM_PROTO_GetShiftState done [10:18:24]FM_GetShiftState done [10:18:24]req_shift_opened done [10:18:24]requested_item shift.open_date is exist - process it [10:18:24]req_shift_open_date [10:18:24]req_shift_open_date done [10:18:24]produce_requested_data done [10:18:24]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228128,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [10:18:24]process_action_free close_receipt [10:18:24]json_value_free [10:18:24]json_value_free done [10:18:24]process_json_proto returns [10:18:24]Send response to host [10:18:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228128,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [10:18:24]free response buf [10:18:24]execute_script done [10:18:24]execute_script returns [10:18:24]free content buf [10:18:24]Sock 9.Close socket [10:18:24]Sock 9.Thread stoped [10:18:28]OFD Sender: No OFD packet to send [10:18:33]OFD Sender: No OFD packet to send [10:18:38]OFD Sender: No OFD packet to send [10:18:43]OFD Sender: No OFD packet to send [10:18:48]OFD Sender: No OFD packet to send [10:18:51]accept exits with 7 [10:18:51]New connection [10:18:51]New thread 3066994020 created [10:18:51]Thread 3067137380 joined [10:18:51]Waiting for new connection... [10:18:51] Sock 7.Parse request [10:18:51]Sock 7.Check first char [10:18:51]Sock 7.First char is OK [10:18:51]request: POST /json_proto HTTP/1.0 [10:18:51]Method: POST [10:18:51]URL: /json_proto [10:18:51]Method is POST - this is cgi request [10:18:51]url: /json_proto [10:18:51]query_string will be loaded in cgi processing [10:18:51]execute_cgi json_proto POST (null) [10:18:51]execute_cgi path=json_proto method=POST [10:18:51]POST find Content-Length [10:18:51]Host: 172.17.44.195:8080 [10:18:51]Content-Length: 679 [10:18:51]Content-Type: application/json [10:18:51] [10:18:51]POST finish read [10:18:51]Found Content-Length = 679 [10:18:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "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:18:51]execute_script... [10:18: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)1964489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "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:18:51]POST & json_proto [10:18:51]process_json_proto [10:18:51]json parsed OK: [10:18:51]protocol is kg_v1.0 [10:18:51]action value=close_receipt [10:18:51]process_action close_receipt [10:18:51]cmd_close_receipt [10:18:51]MH_GetDate [10:18:51]Write to MH i2c: F0 00 00 AF 1D BB [10:18:51]Write i2c OK [10:18:51]MH_I2C_Read... [10:18:51]Read from MH i2c: F0 [10:18:51]MH_I2C_Read... [10:18:51]Read from MH i2c: F0 09 00 [10:18:51]MH_I2C_Read... [10:18:51]Read from MH i2c: F0 09 00 AF 1D 00 0E 7C 17 67 82 C9 CF 66 4C [10:18:51]GetLastDocTimeStamp 1729592304 [10:18:51]current date 1729592334 [10:18:51]FM_GetShiftState [10:18:51]SAM_PROTO_GetShiftState [10:18:51]wFMCommunicate request_size=4 [10:18:51]MH_SAM_APDU [10:18:51]CAPDU: 80 13 01 00 [10:18:51]Write to MH i2c: E2 08 00 B0 1D 80 13 01 00 00 00 00 00 4A [10:18:51]Write i2c OK [10:18:51]MH_I2C_Read... [10:18:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:51]Read from MH i2c: E2 [10:18:51]MH_I2C_Read... [10:18:51]Read from MH i2c: E2 0E 00 [10:18:51]MH_I2C_Read... [10:18:51]Read from MH i2c: E2 0E 00 B0 1D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 11 [10:18:51]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:18:51]wFMCommunicate OK [10:18:51]SAM_PROTO_GetShiftState done [10:18:51]FM_GetShiftState done [10:18:51]opened in 1729555538 [10:18:51]opened+sec_in_day 1729641938 [10:18:51]quantity*price = 80012 [10:18:51]sum+1 = 80013 [10:18:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 93 22.10.2024 10:18 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228129 ФПД: 195036374069462 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101854&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228129&fm=195036374069462&tin=02508201610067®Number=0000000000091685&sum=80000 [10:18:52]StoreToDocumentArchive [10:18:52]shift 535 fd 228129 [10:18:52]save to /storage/0535/doc_00228129 [10:18:52]save last doc name /storage/0535/doc_00228129 to /storage/kkm_last_doc_name [10:18:52]save OK [10:18:52]Clear old archive folders... [10:18:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:18:52]tlvbuf is B6DD58A0 [10:18:52]SAM_PROTO_ClearQueue [10:18:52]wFMCommunicate request_size=4 [10:18:52]MH_SAM_APDU [10:18:52]CAPDU: 80 09 00 00 [10:18:52]Write to MH i2c: E2 08 00 BD 1D 80 09 00 00 00 00 00 00 4C [10:18:52]Write i2c OK [10:18:52]MH_I2C_Read... [10:18:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:52]Read from MH i2c: E2 [10:18:52]MH_I2C_Read... [10:18:52]Read from MH i2c: E2 03 00 [10:18:52]MH_I2C_Read... [10:18:52]Read from MH i2c: E2 03 00 BD 1D 00 90 00 4E [10:18:52]RAPDU: 90 00 [10:18:52]wFMCommunicate OK [10:18:52]SAM_PROTO_ClearQueue done [10:18:52]KKMCreateOFDPacket [10:18:52]OFDProtocolAddRootSTLVToBuf [10:18:52]FM_MakeSignedData [10:18:52]FM_MakeSignedData [10:18:52]SAM_PROTO_SignData [10:18:52]wFMCommunicate request_size=4 [10:18:52]MH_SAM_APDU [10:18:52]CAPDU: 80 0D 01 02 [10:18:52]Write to MH i2c: E2 08 00 BE 1D 80 0D 01 02 00 00 00 00 54 [10:18:52]Write i2c OK [10:18:52]MH_I2C_Read... [10:18:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:52]Read from MH i2c: E2 [10:18:52]MH_I2C_Read... [10:18:52]Read from MH i2c: E2 03 00 [10:18:52]MH_I2C_Read... [10:18:52]Read from MH i2c: E2 03 00 BE 1D 00 90 00 4F [10:18:52]RAPDU: 90 00 [10:18:52]wFMCommunicate OK [10:18:52]wFMCommunicate request_size=255 [10:18:52]MH_SAM_APDU [10:18: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 0E 7C 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 21 7B 03 00 35 04 06 00 B1 [10:18:52]Write to MH i2c: E2 02 01 BF 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 0E 7C 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 21 7B 03 00 35 04 06 00 B1 00 00 A5 [10:18:52]Write i2c OK [10:18:52]MH_I2C_Read... [10:18:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:52]Read from MH i2c: E2 [10:18:52]MH_I2C_Read... [10:18:52]Read from MH i2c: E2 03 00 [10:18:52]MH_I2C_Read... [10:18:52]Read from MH i2c: E2 03 00 BF 1D 00 90 00 50 [10:18:52]RAPDU: 90 00 [10:18:53]wFMCommunicate OK [10:18:53]wFMCommunicate request_size=10 [10:18:53]MH_SAM_APDU [10:18:53]CAPDU: 80 0D 02 02 05 62 71 CB 70 D6 [10:18:53]Write to MH i2c: E2 0D 00 C0 1D 80 0D 02 02 05 00 62 71 CB 70 D6 00 00 45 [10:18:53]Write i2c OK [10:18:53]MH_I2C_Read... [10:18:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:53]Read from MH i2c: E2 [10:18:53]MH_I2C_Read... [10:18:53]Read from MH i2c: E2 03 00 [10:18:53]MH_I2C_Read... [10:18:53]Read from MH i2c: E2 03 00 C0 1D 00 90 00 51 [10:18:53]RAPDU: 90 00 [10:18:53]wFMCommunicate OK [10:18:53]wFMCommunicate request_size=4 [10:18:53]MH_SAM_APDU [10:18:53]CAPDU: 80 0D 03 02 [10:18:53]Write to MH i2c: E2 08 00 C1 1D 80 0D 03 02 00 00 00 00 59 [10:18:53]Write i2c OK [10:18:53]MH_I2C_Read... [10:18:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:53]Read from MH i2c: E2 [10:18:53]MH_I2C_Read... [10:18:53]Read from MH i2c: E2 0B 00 [10:18:53]MH_I2C_Read... [10:18:53]Read from MH i2c: E2 0B 00 C1 1D 00 4D C5 07 5B 10 B4 E7 6C 90 00 E5 [10:18:53]RAPDU: 4D C5 07 5B 10 B4 E7 6C 90 00 [10:18:53]wFMCommunicate OK [10:18:53]SAM_PROTO_SignData done [10:18:53]FM_MakeSignedData done [10:18:53]CreateOFDProtocolMessage [10:18:53]wFMCommunicate request_size=4 [10:18:53]MH_SAM_APDU [10:18:53]CAPDU: 80 11 00 00 [10:18:53]Write to MH i2c: E2 08 00 C2 1D 80 11 00 00 00 00 00 00 59 [10:18:53]Write i2c OK [10:18:53]MH_I2C_Read... [10:18:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:53]Read from MH i2c: E2 [10:18:53]MH_I2C_Read... [10:18:53]Read from MH i2c: E2 17 00 [10:18:53]MH_I2C_Read... [10:18:53]Read from MH i2c: E2 17 00 C2 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B0 [10:18:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:18:53]wFMCommunicate OK [10:18:53]CreateOFDProtocolMessage done [10:18:53]OFDSenderStorePacket 228129 [10:18:53]StoreOFDPacket docnum=228129 [10:18:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 AD 40 07 01 6C C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 0E 7C 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 21 7B 03 00 35 04 06 00 B1 62 71 CB 70 D6 4D C5 07 5B 10 B4 E7 6C [10:18:53]CheckFolder [10:18:53]dirname=/storage/ofd_packets [10:18:53]CheckFolder done [10:18:53]ProducePacketName [10:18:53]name=ofd_packets/00228129 [10:18:53]NVStorageSaveData ofd_packets/00228129 [10:18:53]File name is /storage/ofd_packets/00228129 [10:18:53]Write 301 bytes [10:18:53]NVStorageSaveData done [10:18:53]OFDSenderStorePacket done [10:18:53]KKMCreateOFDPacket done [10:18:53]NVStorageSaveData kkm_last_timestamp [10:18:53]File name is /storage/kkm_last_timestamp [10:18:53]Write 4 bytes [10:18:53]NVStorageSaveData done [10:18:53]ExternCall_PrintAddStr [10:18:53]wPrintStart [10:18:53]Write to MH i2c: 01 00 00 C3 1D E0 [10:18:53]Write i2c OK [10:18:53]MH_I2C_Read... [10:18:53]Read from MH i2c: 01 [10:18:53]MH_I2C_Read... [10:18:53]Read from MH i2c: 01 07 00 [10:18:53]MH_I2C_Read... [10:18:53]Read from MH i2c: 01 07 00 C3 1D 00 00 00 00 00 FF 0F F5 [10:18:53]RasterBufferAndPrint [10:18:53]line Счет N : (1)1964489 [10:18:53]line ИНН: 02508201610067 [10:18:53]line Контрольно-Кассовый Чек [10:18:53]line ПРОДАЖА [10:18:53]line ТРК (МРК, ГНК) : 43 [10:18:53]line Товар: 2710124130 [10:18:53]line Аи-92-К-5 [10:18:53]line 11.960 * 66.90 [10:18:53]line = 800.12 [10:18:53]line НДС 12% НСП 1% [10:18:53]line > о реализуемом товаре [10:18:53]line ОКРУГЛЕНИЕ: -0.12 [10:18:53]line ИТОГО: 800.00 [10:18:53]line Внесено: 800.00 [10:18:53]line СДАЧА: 0.00 [10:18:53]line НСП 1% : 7.08 [10:18:53]line НДС 12% : 84.97 [10:18:53]line Наличными: 800.00 [10:18:53]line Безнал.: 0.00 [10:18:53]line Место: АЗС № 133 "Партнер Нефть" [10:18:53]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:18:53]line СНО: Общий режим [10:18:53]line Чек 93 22.10.2024 10:18 [10:18:53]line Смена: 535 ФФД: 1.0 [10:18:53]line ЗНМ: 0300000091 [10:18:53]line РНМ: 0000000000091685 [10:18:53]line Версия ККМ: 001 [10:18:53]line ФМ: 0000000000871839 [10:18:53]line ФД: 228129 [10:18:53]line ФПД: 195036374069462 [10:18:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101854&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228129&fm=195036374069462&tin=02508201610067®Number=0000000000091685&sum=80000 [10:18:53]OFD Sender: Processing packet 228129 [packets to send 38, broken 37] [10:18:53]ProducePacketName [10:18:53]name=ofd_packets/00228129 [10:18:53]OFD Sender: To server: pG, [10:18:53]CommunicateWithHost lk.salyk.kg:30040 [10:18:53]ConnectInit lk.salyk.kg [10:18:53]written 0, free lines is 4095 [10:18:53]Connected sock=10 [10:18:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 AD 40 07 01 6C C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 0E 7C 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 21 7B 03 00 35 04 06 00 B1 62 71 CB 70 D6 4D C5 07 5B 10 B4 E7 6C [10:18:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 37 AB 47 00 D3 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 21 7B 03 00 F4 03 04 00 07 27 17 67 B6 04 01 00 00 D5 2D 6B 35 49 0B B4 94 [10:18:53]CommunicateWithHost err = 0 [10:18:53]CheckOFDResponse [10:18:53]1017 (14) - 77093643461234 [10:18:53]1041 (16) - 0000000000871839 [10:18:53]1040 (4) - 228129 [10:18:53]1012 (4) - 22.10.2024 04:16 [10:18:53]1206 (1) - 0 [10:18:53]OFD Sender: Remove packet 228129 [10:18:53]ProducePacketName [10:18:53]name=ofd_packets/00228129 [10:18:53]NVStorageDeleteData [10:18:53]Write to MH i2c: 01 00 00 ED 1D 0A [10:18:53]Write i2c OK [10:18:53]MH_I2C_Read... [10:18:53]Read from MH i2c: 01 [10:18:53]MH_I2C_Read... [10:18:53]Read from MH i2c: 01 07 00 [10:18:53]MH_I2C_Read... [10:18:53]Read from MH i2c: 01 07 00 ED 1D 00 00 00 00 00 C7 0C E4 [10:18:53]RasterBufferAndPrint [10:18:53]line [10:18:53]line [10:18:53]line [10:18:53]line [10:18:53]line [10:18:53]written 0, free lines is 3277 [10:18:53]MH_Cut [10:18:53]Write to MH i2c: D1 01 00 F4 1D 01 E3 [10:18:53]Write i2c OK [10:18:53]MH_I2C_Read... [10:18:53]Read from MH i2c: D1 [10:18:53]MH_I2C_Read... [10:18:53]Read from MH i2c: D1 01 00 [10:18:53]MH_I2C_Read... [10:18:53]Read from MH i2c: D1 01 00 F4 1D 00 E2 [10:18:53]Write to MH i2c: 01 00 00 F5 1D 12 [10:18:53]Write i2c OK [10:18:53]MH_I2C_Read... [10:18:54]OFD Sender: No OFD packet to send [10:18:54]*** Cut start [10:18:54]*** Partial cut [10:18:54]*** CUTSNS_PIN = 1 [10:18:54]*** CUTSNS_PIN = 0 [10:18:55]*** Brake cut motor [10:18:55]Read from MH i2c: 01 [10:18:55]MH_I2C_Read... [10:18:55]*** Stop cut motor [10:18:55]*** Cut end [10:18:55]Read from MH i2c: 01 07 00 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: 01 07 00 F5 1D 00 00 00 00 00 FF 0F 27 [10:18:55]process_action close_receipt done [10:18:55]requested_data is exist [10:18:55]produce_requested_data [10:18:55]requested_item fm.sn is exist - process it [10:18:55]wFMCommunicate request_size=4 [10:18:55]MH_SAM_APDU [10:18:55]CAPDU: 80 11 00 00 [10:18:55]Write to MH i2c: E2 08 00 F6 1D 80 11 00 00 00 00 00 00 8D [10:18:55]Write i2c OK [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: E2 [10:18:55]MH_I2C_Read... [10:18:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:55]Read from MH i2c: E2 17 00 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: E2 17 00 F6 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E4 [10:18:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:18:55]wFMCommunicate OK [10:18:55]requested_item fd.num is exist - process it [10:18:55]SAM_PROTO_GetFieldsCounters [10:18:55]wFMCommunicate request_size=4 [10:18:55]MH_SAM_APDU [10:18:55]CAPDU: 80 13 00 00 [10:18:55]Write to MH i2c: E2 08 00 F7 1D 80 13 00 00 00 00 00 00 90 [10:18:55]Write i2c OK [10:18:55]MH_I2C_Read... [10:18:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:55]Read from MH i2c: E2 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: E2 62 00 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: E2 62 00 F7 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 21 7B 03 00 0E 04 04 00 17 02 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 88 [10:18:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 21 7B 03 00 0E 04 04 00 17 02 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:18:55]wFMCommunicate OK [10:18:55]SAM_PROTO_GetFieldsCounters done [10:18:55]requested_item shift.num is exist - process it [10:18:55]requested_item shift.opened is exist - process it [10:18:55]req_shift_opened [10:18:55]FM_GetShiftState [10:18:55]SAM_PROTO_GetShiftState [10:18:55]wFMCommunicate request_size=4 [10:18:55]MH_SAM_APDU [10:18:55]CAPDU: 80 13 01 00 [10:18:55]Write to MH i2c: E2 08 00 F8 1D 80 13 01 00 00 00 00 00 92 [10:18:55]Write i2c OK [10:18:55]MH_I2C_Read... [10:18:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:55]Read from MH i2c: E2 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: E2 0E 00 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: E2 0E 00 F8 1D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 59 [10:18:55]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:18:55]wFMCommunicate OK [10:18:55]SAM_PROTO_GetShiftState done [10:18:55]FM_GetShiftState done [10:18:55]req_shift_opened done [10:18:55]requested_item shift.open_date is exist - process it [10:18:55]req_shift_open_date [10:18:55]req_shift_open_date done [10:18:55]produce_requested_data done [10:18:55]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228129,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [10:18:55]process_action_free close_receipt [10:18:55]json_value_free [10:18:55]json_value_free done [10:18:55]process_json_proto returns [10:18:55]Send response to host [10:18:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228129,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [10:18:55]free response buf [10:18:55]execute_script done [10:18:55]execute_script returns [10:18:55]free content buf [10:18:55]Sock 7.Close socket [10:18:55]Sock 7.Thread stoped [10:18:59]OFD Sender: No OFD packet to send [10:19:04]OFD Sender: No OFD packet to send [10:19:09]OFD Sender: No OFD packet to send [10:19:14]OFD Sender: No OFD packet to send [10:19:19]OFD Sender: No OFD packet to send [10:19:24]OFD Sender: No OFD packet to send [10:19:29]OFD Sender: No OFD packet to send [10:19:34]OFD Sender: No OFD packet to send [10:19:39]OFD Sender: No OFD packet to send [10:19:44]OFD Sender: No OFD packet to send [10:19:49]OFD Sender: No OFD packet to send [10:19:54]OFD Sender: No OFD packet to send [10:19:59]OFD Sender: No OFD packet to send [10:20:04]OFD Sender: No OFD packet to send [10:20:09]OFD Sender: No OFD packet to send [10:20:14]OFD Sender: No OFD packet to send [10:20:19]OFD Sender: No OFD packet to send [10:20:24]OFD Sender: No OFD packet to send [10:20:29]OFD Sender: No OFD packet to send [10:20:34]OFD Sender: No OFD packet to send [10:20:39]OFD Sender: No OFD packet to send [10:20:44]OFD Sender: No OFD packet to send [10:20:49]OFD Sender: No OFD packet to send [10:20:54]OFD Sender: No OFD packet to send [10:20:59]OFD Sender: No OFD packet to send [10:21:04]OFD Sender: No OFD packet to send [10:21:09]OFD Sender: No OFD packet to send [10:21:14]OFD Sender: No OFD packet to send [10:21:19]OFD Sender: No OFD packet to send [10:21:24]OFD Sender: No OFD packet to send [10:21:29]OFD Sender: No OFD packet to send [10:21:34]OFD Sender: No OFD packet to send [10:21:39]OFD Sender: No OFD packet to send [10:21:44]OFD Sender: No OFD packet to send [10:21:49]OFD Sender: No OFD packet to send [10:21:54]OFD Sender: No OFD packet to send [10:21:59]OFD Sender: No OFD packet to send [10:22:04]OFD Sender: No OFD packet to send [10:22:09]OFD Sender: No OFD packet to send [10:22:14]OFD Sender: No OFD packet to send [10:22:19]OFD Sender: No OFD packet to send [10:22:24]OFD Sender: No OFD packet to send [10:22:29]OFD Sender: No OFD packet to send [10:22:34]OFD Sender: No OFD packet to send [10:22:39]OFD Sender: No OFD packet to send [10:22:44]OFD Sender: No OFD packet to send [10:22:49]OFD Sender: No OFD packet to send [10:22:50]accept exits with 9 [10:22:50]New connection [10:22:50]New thread 3067137380 created [10:22:50]Thread 3066994020 joined [10:22:50]Waiting for new connection... [10:22:50] Sock 9.Parse request [10:22:50]Sock 9.Check first char [10:22:50]Sock 9.First char is OK [10:22:50]request: POST /json_proto HTTP/1.0 [10:22:50]Method: POST [10:22:50]URL: /json_proto [10:22:50]Method is POST - this is cgi request [10:22:50]url: /json_proto [10:22:50]query_string will be loaded in cgi processing [10:22:50]execute_cgi json_proto POST (null) [10:22:50]execute_cgi path=json_proto method=POST [10:22:50]POST find Content-Length [10:22:50]Host: 172.17.44.195:8080 [10:22:50]Content-Length: 621 [10:22:50]Content-Type: application/json [10:22:50] [10:22:50]POST finish read [10:22:50]Found Content-Length = 621 [10:22:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:50]execute_script... [10:22: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)1964494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:50]POST & json_proto [10:22:50]process_json_proto [10:22:50]json parsed OK: [10:22:50]protocol is kg_v1.0 [10:22:50]action value=close_receipt [10:22:50]process_action close_receipt [10:22:50]cmd_close_receipt [10:22:50]MH_GetDate [10:22:50]Write to MH i2c: F0 00 00 F9 1D 05 [10:22:50]Write i2c OK [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: F0 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: F0 09 00 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: F0 09 00 F9 1D 00 FD 7C 17 67 82 C9 CF 66 85 [10:22:50]GetLastDocTimeStamp 1729592334 [10:22:50]current date 1729592573 [10:22:50]FM_GetShiftState [10:22:50]SAM_PROTO_GetShiftState [10:22:50]wFMCommunicate request_size=4 [10:22:50]MH_SAM_APDU [10:22:50]CAPDU: 80 13 01 00 [10:22:50]Write to MH i2c: E2 08 00 FA 1D 80 13 01 00 00 00 00 00 94 [10:22:50]Write i2c OK [10:22:50]MH_I2C_Read... [10:22:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:50]Read from MH i2c: E2 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: E2 0E 00 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: E2 0E 00 FA 1D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 5B [10:22:50]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:22:50]wFMCommunicate OK [10:22:50]SAM_PROTO_GetShiftState done [10:22:50]FM_GetShiftState done [10:22:50]opened in 1729555538 [10:22:50]opened+sec_in_day 1729641938 [10:22:50]quantity*price = 50000 [10:22:50]sum+1 = 50001 [10:22:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 94 22.10.2024 10:22 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228130 ФПД: 242162767213462 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102253&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228130&fm=242162767213462&tin=02508201610067®Number=0000000000091685&sum=50000 [10:22:51]StoreToDocumentArchive [10:22:51]shift 535 fd 228130 [10:22:51]save to /storage/0535/doc_00228130 [10:22:51]save last doc name /storage/0535/doc_00228130 to /storage/kkm_last_doc_name [10:22:51]save OK [10:22:51]Clear old archive folders... [10:22:51]ProcessDocumentItem done err = 0, tmpTLVsize=244 [10:22:51]tlvbuf is B6DD57C0 [10:22:51]SAM_PROTO_ClearQueue [10:22:51]wFMCommunicate request_size=4 [10:22:51]MH_SAM_APDU [10:22:51]CAPDU: 80 09 00 00 [10:22:51]Write to MH i2c: E2 08 00 07 1E 80 09 00 00 00 00 00 00 97 [10:22:51]Write i2c OK [10:22:51]MH_I2C_Read... [10:22:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:51]Read from MH i2c: E2 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: E2 03 00 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: E2 03 00 07 1E 00 90 00 99 [10:22:51]RAPDU: 90 00 [10:22:51]wFMCommunicate OK [10:22:51]SAM_PROTO_ClearQueue done [10:22:51]KKMCreateOFDPacket [10:22:51]OFDProtocolAddRootSTLVToBuf [10:22:51]FM_MakeSignedData [10:22:51]FM_MakeSignedData [10:22:51]SAM_PROTO_SignData [10:22:51]wFMCommunicate request_size=4 [10:22:51]MH_SAM_APDU [10:22:51]CAPDU: 80 0D 01 02 [10:22:51]Write to MH i2c: E2 08 00 08 1E 80 0D 01 02 00 00 00 00 9F [10:22:51]Write i2c OK [10:22:51]MH_I2C_Read... [10:22:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:51]Read from MH i2c: E2 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: E2 03 00 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: E2 03 00 08 1E 00 90 00 9A [10:22:51]RAPDU: 90 00 [10:22:51]wFMCommunicate OK [10:22:51]wFMCommunicate request_size=253 [10:22:51]MH_SAM_APDU [10:22:51]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 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 FD 7C 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 22 7B 03 00 35 04 06 00 DC 3E E9 B7 B3 96 [10:22:51]Write to MH i2c: E2 00 01 09 1E 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 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 FD 7C 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 22 7B 03 00 35 04 06 00 DC 3E E9 B7 B3 96 00 00 B2 [10:22:51]Write i2c OK [10:22:51]MH_I2C_Read... [10:22:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:51]Read from MH i2c: E2 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: E2 03 00 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: E2 03 00 09 1E 00 90 00 9B [10:22:51]RAPDU: 90 00 [10:22:51]wFMCommunicate OK [10:22:51]wFMCommunicate request_size=4 [10:22:51]MH_SAM_APDU [10:22:51]CAPDU: 80 0D 03 02 [10:22:51]Write to MH i2c: E2 08 00 0A 1E 80 0D 03 02 00 00 00 00 A3 [10:22:51]Write i2c OK [10:22:51]MH_I2C_Read... [10:22:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:51]Read from MH i2c: E2 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: E2 0B 00 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: E2 0B 00 0A 1E 00 1A 4B 98 68 0E 4B 21 9F 90 00 22 [10:22:51]RAPDU: 1A 4B 98 68 0E 4B 21 9F 90 00 [10:22:51]wFMCommunicate OK [10:22:51]SAM_PROTO_SignData done [10:22:51]FM_MakeSignedData done [10:22:51]CreateOFDProtocolMessage [10:22:51]wFMCommunicate request_size=4 [10:22:51]MH_SAM_APDU [10:22:51]CAPDU: 80 11 00 00 [10:22:51]Write to MH i2c: E2 08 00 0B 1E 80 11 00 00 00 00 00 00 A3 [10:22:51]Write i2c OK [10:22:51]MH_I2C_Read... [10:22:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:51]Read from MH i2c: E2 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: E2 17 00 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: E2 17 00 0B 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FA [10:22:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:22:51]wFMCommunicate OK [10:22:51]CreateOFDProtocolMessage done [10:22:51]OFDSenderStorePacket 228130 [10:22:51]StoreOFDPacket docnum=228130 [10:22:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 E2 3E 00 01 D0 01 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 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 FD 7C 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 22 7B 03 00 35 04 06 00 DC 3E E9 B7 B3 96 1A 4B 98 68 0E 4B 21 9F [10:22:51]CheckFolder [10:22:51]dirname=/storage/ofd_packets [10:22:51]CheckFolder done [10:22:51]ProducePacketName [10:22:51]name=ofd_packets/00228130 [10:22:51]NVStorageSaveData ofd_packets/00228130 [10:22:51]File name is /storage/ofd_packets/00228130 [10:22:51]Write 294 bytes [10:22:51]NVStorageSaveData done [10:22:51]OFDSenderStorePacket done [10:22:51]KKMCreateOFDPacket done [10:22:51]NVStorageSaveData kkm_last_timestamp [10:22:51]File name is /storage/kkm_last_timestamp [10:22:51]Write 4 bytes [10:22:51]NVStorageSaveData done [10:22:51]ExternCall_PrintAddStr [10:22:51]wPrintStart [10:22:51]Write to MH i2c: 01 00 00 0C 1E 2A [10:22:51]Write i2c OK [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: 01 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: 01 07 00 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: 01 07 00 0C 1E 00 00 00 00 00 FF 0F 3F [10:22:51]RasterBufferAndPrint [10:22:51]line Счет N : (1)1964494 [10:22:51]line ИНН: 02508201610067 [10:22:51]line Контрольно-Кассовый Чек [10:22:51]line ПРОДАЖА [10:22:51]line ТРК (МРК, ГНК) : 42 [10:22:51]line Товар: 2710124130 [10:22:51]line SU-92 [10:22:51]line 7.310 * 68.40 [10:22:51]line = 500.00 [10:22:51]line НДС 12% НСП 1% [10:22:51]line > о реализуемом товаре [10:22:51]line ИТОГО: 500.00 [10:22:51]line НСП 1% : 4.42 [10:22:51]line НДС 12% : 53.10 [10:22:51]line Наличными: 500.00 [10:22:51]line Безнал.: 0.00 [10:22:51]line Место: АЗС № 133 "Партнер Нефть" [10:22:51]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:22:51]line СНО: Общий режим [10:22:51]line Чек 94 22.10.2024 10:22 [10:22:51]line Смена: 535 ФФД: 1.0 [10:22:51]line ЗНМ: 0300000091 [10:22:51]line РНМ: 0000000000091685 [10:22:51]line Версия ККМ: 001 [10:22:51]line ФМ: 0000000000871839 [10:22:51]line ФД: 228130 [10:22:51]line ФПД: 242162767213462 [10:22:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102253&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228130&fm=242162767213462&tin=02508201610067®Number=0000000000091685&sum=50000 [10:22:52]OFD Sender: Processing packet 228130 [packets to send 38, broken 37] [10:22:52]ProducePacketName [10:22:52]name=ofd_packets/00228130 [10:22:52]OFD Sender: To server: pG, [10:22:52]CommunicateWithHost lk.salyk.kg:30040 [10:22:52]ConnectInit lk.salyk.kg [10:22:52]written 0, free lines is 4095 [10:22:52]Connected sock=10 [10:22:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 E2 3E 00 01 D0 01 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 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 FD 7C 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 22 7B 03 00 35 04 06 00 DC 3E E9 B7 B3 96 1A 4B 98 68 0E 4B 21 9F [10:22:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 CB 7A 47 00 E6 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 22 7B 03 00 F4 03 04 00 F6 27 17 67 B6 04 01 00 00 02 27 67 FE CB DF BD FD [10:22:52]CommunicateWithHost err = 0 [10:22:52]CheckOFDResponse [10:22:52]1017 (14) - 77093643461234 [10:22:52]1041 (16) - 0000000000871839 [10:22:52]1040 (4) - 228130 [10:22:52]1012 (4) - 22.10.2024 04:20 [10:22:52]1206 (1) - 0 [10:22:52]OFD Sender: Remove packet 228130 [10:22:52]ProducePacketName [10:22:52]name=ofd_packets/00228130 [10:22:52]NVStorageDeleteData [10:22:52]Write to MH i2c: 01 00 00 33 1E 51 [10:22:52]Write i2c OK [10:22:52]MH_I2C_Read... [10:22:52]Read from MH i2c: 01 [10:22:52]MH_I2C_Read... [10:22:52]Read from MH i2c: 01 07 00 [10:22:52]MH_I2C_Read... [10:22:52]Read from MH i2c: 01 07 00 33 1E 00 00 00 00 00 FC 0C 60 [10:22:52]RasterBufferAndPrint [10:22:52]line [10:22:52]line [10:22:52]line [10:22:52]line [10:22:52]line [10:22:52]written 0, free lines is 3330 [10:22:52]MH_Cut [10:22:52]Write to MH i2c: D1 01 00 3A 1E 01 2A [10:22:52]Write i2c OK [10:22:52]MH_I2C_Read... [10:22:52]Read from MH i2c: D1 [10:22:52]MH_I2C_Read... [10:22:52]Read from MH i2c: D1 01 00 [10:22:52]MH_I2C_Read... [10:22:52]Read from MH i2c: D1 01 00 3A 1E 00 29 [10:22:52]Write to MH i2c: 01 00 00 3B 1E 59 [10:22:52]Write i2c OK [10:22:52]MH_I2C_Read... [10:22:53]OFD Sender: No OFD packet to send [10:22:53]*** Cut start [10:22:53]*** Partial cut [10:22:53]*** CUTSNS_PIN = 1 [10:22:53]*** CUTSNS_PIN = 0 [10:22:53]*** Brake cut motor [10:22:54]Read from MH i2c: 01 [10:22:54]MH_I2C_Read... [10:22:54]*** Stop cut motor [10:22:54]*** Cut end [10:22:54]Read from MH i2c: 01 07 00 [10:22:54]MH_I2C_Read... [10:22:54]Read from MH i2c: 01 07 00 3B 1E 00 00 00 00 00 FF 0F 6E [10:22:54]process_action close_receipt done [10:22:54]requested_data is exist [10:22:54]produce_requested_data [10:22:54]requested_item fm.sn is exist - process it [10:22:54]wFMCommunicate request_size=4 [10:22:54]MH_SAM_APDU [10:22:54]CAPDU: 80 11 00 00 [10:22:54]Write to MH i2c: E2 08 00 3C 1E 80 11 00 00 00 00 00 00 D4 [10:22:54]Write i2c OK [10:22:54]MH_I2C_Read... [10:22:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:54]Read from MH i2c: E2 [10:22:54]MH_I2C_Read... [10:22:54]Read from MH i2c: E2 17 00 [10:22:54]MH_I2C_Read... [10:22:54]Read from MH i2c: E2 17 00 3C 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2B [10:22:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:22:54]wFMCommunicate OK [10:22:54]requested_item fd.num is exist - process it [10:22:54]SAM_PROTO_GetFieldsCounters [10:22:54]wFMCommunicate request_size=4 [10:22:54]MH_SAM_APDU [10:22:54]CAPDU: 80 13 00 00 [10:22:54]Write to MH i2c: E2 08 00 3D 1E 80 13 00 00 00 00 00 00 D7 [10:22:54]Write i2c OK [10:22:54]MH_I2C_Read... [10:22:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:54]Read from MH i2c: E2 [10:22:54]MH_I2C_Read... [10:22:54]Read from MH i2c: E2 62 00 [10:22:54]MH_I2C_Read... [10:22:54]Read from MH i2c: E2 62 00 3D 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 22 7B 03 00 0E 04 04 00 17 02 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 D3 [10:22:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 22 7B 03 00 0E 04 04 00 17 02 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:22:54]wFMCommunicate OK [10:22:54]SAM_PROTO_GetFieldsCounters done [10:22:54]requested_item shift.num is exist - process it [10:22:54]requested_item shift.opened is exist - process it [10:22:54]req_shift_opened [10:22:54]FM_GetShiftState [10:22:54]SAM_PROTO_GetShiftState [10:22:54]wFMCommunicate request_size=4 [10:22:54]MH_SAM_APDU [10:22:54]CAPDU: 80 13 01 00 [10:22:54]Write to MH i2c: E2 08 00 3E 1E 80 13 01 00 00 00 00 00 D9 [10:22:54]Write i2c OK [10:22:54]MH_I2C_Read... [10:22:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:54]Read from MH i2c: E2 [10:22:54]MH_I2C_Read... [10:22:54]Read from MH i2c: E2 0E 00 [10:22:54]MH_I2C_Read... [10:22:54]Read from MH i2c: E2 0E 00 3E 1E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 A0 [10:22:54]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:22:54]wFMCommunicate OK [10:22:54]SAM_PROTO_GetShiftState done [10:22:54]FM_GetShiftState done [10:22:54]req_shift_opened done [10:22:54]requested_item shift.open_date is exist - process it [10:22:54]req_shift_open_date [10:22:54]req_shift_open_date done [10:22:54]produce_requested_data done [10:22:54]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228130,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [10:22:54]process_action_free close_receipt [10:22:54]json_value_free [10:22:54]json_value_free done [10:22:54]process_json_proto returns [10:22:54]Send response to host [10:22:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228130,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [10:22:54]free response buf [10:22:54]execute_script done [10:22:54]execute_script returns [10:22:54]free content buf [10:22:54]Sock 9.Close socket [10:22:54]Sock 9.Thread stoped [10:22:58]OFD Sender: No OFD packet to send [10:23:02]accept exits with 7 [10:23:02]New connection [10:23:02]New thread 3066994020 created [10:23:02]Thread 3067137380 joined [10:23:02]Waiting for new connection... [10:23:02] Sock 7.Parse request [10:23:02]Sock 7.Check first char [10:23:02]Sock 7.First char is OK [10:23:02]request: POST /json_proto HTTP/1.0 [10:23:02]Method: POST [10:23:02]URL: /json_proto [10:23:02]Method is POST - this is cgi request [10:23:02]url: /json_proto [10:23:02]query_string will be loaded in cgi processing [10:23:02]execute_cgi json_proto POST (null) [10:23:02]execute_cgi path=json_proto method=POST [10:23:02]POST find Content-Length [10:23:02]Host: 172.17.44.195:8080 [10:23:02]Content-Length: 770 [10:23:02]Content-Type: application/json [10:23:02] [10:23:02]POST finish read [10:23:02]Found Content-Length = 770 [10:23:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:02]execute_script... [10:23: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)1964493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:02]POST & json_proto [10:23:02]process_json_proto [10:23:02]json parsed OK: [10:23:02]protocol is kg_v1.0 [10:23:02]action value=close_receipt [10:23:02]process_action close_receipt [10:23:02]cmd_close_receipt [10:23:02]MH_GetDate [10:23:02]Write to MH i2c: F0 00 00 3F 1E 4C [10:23:02]Write i2c OK [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: F0 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: F0 09 00 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: F0 09 00 3F 1E 00 09 7D 17 67 82 C9 CF 66 D9 [10:23:02]GetLastDocTimeStamp 1729592573 [10:23:02]current date 1729592585 [10:23:02]FM_GetShiftState [10:23:02]SAM_PROTO_GetShiftState [10:23:02]wFMCommunicate request_size=4 [10:23:02]MH_SAM_APDU [10:23:02]CAPDU: 80 13 01 00 [10:23:02]Write to MH i2c: E2 08 00 40 1E 80 13 01 00 00 00 00 00 DB [10:23:02]Write i2c OK [10:23:02]MH_I2C_Read... [10:23:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:02]Read from MH i2c: E2 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 0E 00 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 0E 00 40 1E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 A2 [10:23:02]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:23:02]wFMCommunicate OK [10:23:02]SAM_PROTO_GetShiftState done [10:23:02]FM_GetShiftState done [10:23:02]opened in 1729555538 [10:23:02]opened+sec_in_day 1729641938 [10:23:02]quantity*price = 100021 [10:23:02]sum+1 = 100023 [10:23:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 95 22.10.2024 10:23 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 228131 ФПД: 28695667442480 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102305&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228131&fm=28695667442480&tin=02508201610067®Number=0000000000091685&sum=100022 [10:23:03]StoreToDocumentArchive [10:23:03]shift 535 fd 228131 [10:23:03]save to /storage/0535/doc_00228131 [10:23:03]save last doc name /storage/0535/doc_00228131 to /storage/kkm_last_doc_name [10:23:03]save OK [10:23:03]Clear old archive folders... [10:23:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:23:03]tlvbuf is 00A7BB50 [10:23:03]SAM_PROTO_ClearQueue [10:23:03]wFMCommunicate request_size=4 [10:23:03]MH_SAM_APDU [10:23:03]CAPDU: 80 09 00 00 [10:23:03]Write to MH i2c: E2 08 00 4D 1E 80 09 00 00 00 00 00 00 DD [10:23:03]Write i2c OK [10:23:03]MH_I2C_Read... [10:23:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:03]Read from MH i2c: E2 [10:23:03]MH_I2C_Read... [10:23:03]Read from MH i2c: E2 03 00 [10:23:03]MH_I2C_Read... [10:23:03]Read from MH i2c: E2 03 00 4D 1E 00 90 00 DF [10:23:03]RAPDU: 90 00 [10:23:03]wFMCommunicate OK [10:23:03]SAM_PROTO_ClearQueue done [10:23:03]KKMCreateOFDPacket [10:23:03]OFDProtocolAddRootSTLVToBuf [10:23:03]FM_MakeSignedData [10:23:03]FM_MakeSignedData [10:23:03]SAM_PROTO_SignData [10:23:03]wFMCommunicate request_size=4 [10:23:03]MH_SAM_APDU [10:23:03]CAPDU: 80 0D 01 02 [10:23:03]Write to MH i2c: E2 08 00 4E 1E 80 0D 01 02 00 00 00 00 E5 [10:23:03]Write i2c OK [10:23:03]MH_I2C_Read... [10:23:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:03]Read from MH i2c: E2 [10:23:03]MH_I2C_Read... [10:23:03]Read from MH i2c: E2 03 00 [10:23:03]MH_I2C_Read... [10:23:03]Read from MH i2c: E2 03 00 4E 1E 00 90 00 E0 [10:23:03]RAPDU: 90 00 [10:23:03]wFMCommunicate OK [10:23:03]wFMCommunicate request_size=255 [10:23:03]MH_SAM_APDU [10:23:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 09 7D 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 23 7B 03 00 35 04 06 00 1A [10:23:03]Write to MH i2c: E2 02 01 4F 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 09 7D 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 23 7B 03 00 35 04 06 00 1A 00 00 FC [10:23:03]Write i2c OK [10:23:03]MH_I2C_Read... [10:23:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:04]Read from MH i2c: E2 [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: E2 03 00 [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: E2 03 00 4F 1E 00 90 00 E1 [10:23:04]RAPDU: 90 00 [10:23:04]wFMCommunicate OK [10:23:04]wFMCommunicate request_size=10 [10:23:04]MH_SAM_APDU [10:23:04]CAPDU: 80 0D 02 02 05 19 3B 10 83 30 [10:23:04]Write to MH i2c: E2 0D 00 50 1E 80 0D 02 02 05 00 19 3B 10 83 30 00 00 09 [10:23:04]Write i2c OK [10:23:04]MH_I2C_Read... [10:23:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:04]Read from MH i2c: E2 [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: E2 03 00 [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: E2 03 00 50 1E 00 90 00 E2 [10:23:04]RAPDU: 90 00 [10:23:04]wFMCommunicate OK [10:23:04]wFMCommunicate request_size=4 [10:23:04]MH_SAM_APDU [10:23:04]CAPDU: 80 0D 03 02 [10:23:04]Write to MH i2c: E2 08 00 51 1E 80 0D 03 02 00 00 00 00 EA [10:23:04]Write i2c OK [10:23:04]MH_I2C_Read... [10:23:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:04]Read from MH i2c: E2 [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: E2 0B 00 [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: E2 0B 00 51 1E 00 2E 43 9B 28 26 6A 66 31 90 00 46 [10:23:04]RAPDU: 2E 43 9B 28 26 6A 66 31 90 00 [10:23:04]wFMCommunicate OK [10:23:04]SAM_PROTO_SignData done [10:23:04]FM_MakeSignedData done [10:23:04]CreateOFDProtocolMessage [10:23:04]wFMCommunicate request_size=4 [10:23:04]MH_SAM_APDU [10:23:04]CAPDU: 80 11 00 00 [10:23:04]Write to MH i2c: E2 08 00 52 1E 80 11 00 00 00 00 00 00 EA [10:23:04]Write i2c OK [10:23:04]MH_I2C_Read... [10:23:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:04]Read from MH i2c: E2 [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: E2 17 00 [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: E2 17 00 52 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 41 [10:23:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:23:04]wFMCommunicate OK [10:23:04]CreateOFDProtocolMessage done [10:23:04]OFDSenderStorePacket 228131 [10:23:04]StoreOFDPacket docnum=228131 [10:23:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 0E 54 07 01 97 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 09 7D 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 23 7B 03 00 35 04 06 00 1A 19 3B 10 83 30 2E 43 9B 28 26 6A 66 31 [10:23:04]CheckFolder [10:23:04]dirname=/storage/ofd_packets [10:23:04]CheckFolder done [10:23:04]ProducePacketName [10:23:04]name=ofd_packets/00228131 [10:23:04]NVStorageSaveData ofd_packets/00228131 [10:23:04]File name is /storage/ofd_packets/00228131 [10:23:04]Write 301 bytes [10:23:04]NVStorageSaveData done [10:23:04]OFDSenderStorePacket done [10:23:04]KKMCreateOFDPacket done [10:23:04]NVStorageSaveData kkm_last_timestamp [10:23:04]File name is /storage/kkm_last_timestamp [10:23:04]Write 4 bytes [10:23:04]NVStorageSaveData done [10:23:04]ExternCall_PrintAddStr [10:23:04]wPrintStart [10:23:04]Write to MH i2c: 01 00 00 53 1E 71 [10:23:04]Write i2c OK [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: 01 [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: 01 07 00 [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: 01 07 00 53 1E 00 00 00 00 00 FF 0F 86 [10:23:04]RasterBufferAndPrint [10:23:04]line Счет N : (1)1964493 [10:23:04]line ИНН: 02508201610067 [10:23:04]line Контрольно-Кассовый Чек [10:23:04]line ПРОДАЖА [10:23:04]line ТРК (МРК, ГНК) : 54 [10:23:04]line Товар: 2710124500 [10:23:04]line Аи-95-К-5 [10:23:04]line 13.480 * 74.20 [10:23:04]line = 1000.22 [10:23:04]line НДС 12% НСП 1% [10:23:04]line > о реализуемом товаре [10:23:04]line ИТОГО: 1000.22 [10:23:04]line НСП 1% : 8.85 [10:23:04]line НДС 12% : 106.22 [10:23:04]line Наличными: 0.00 [10:23:04]line Безнал.: 1000.22 [10:23:04]line Место: АЗС № 133 "Партнер Нефть" [10:23:04]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:23:04]line СНО: Общий режим [10:23:04]line Чек 95 22.10.2024 10:23 [10:23:04]line Смена: 535 ФФД: 1.0 [10:23:04]line ЗНМ: 0300000091 [10:23:04]line РНМ: 0000000000091685 [10:23:04]line Версия ККМ: 001 [10:23:04]line Платежная система: Mbank [10:23:04]line ФМ: 0000000000871839 [10:23:04]line ФД: 228131 [10:23:04]line ФПД: 28695667442480 [10:23:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102305&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228131&fm=28695667442480&tin=02508201610067®Number=0000000000091685&sum=100022 [10:23:04]written 0, free lines is 4095 [10:23:04]OFD Sender: Processing packet 228131 [packets to send 38, broken 37] [10:23:04]ProducePacketName [10:23:04]name=ofd_packets/00228131 [10:23:04]OFD Sender: To server: pG, [10:23:04]CommunicateWithHost lk.salyk.kg:30040 [10:23:04]ConnectInit lk.salyk.kg [10:23:04]Connected sock=11 [10:23:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 0E 54 07 01 97 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 09 7D 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 23 7B 03 00 35 04 06 00 1A 19 3B 10 83 30 2E 43 9B 28 26 6A 66 31 [10:23:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 C8 B3 47 00 D6 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 23 7B 03 00 F4 03 04 00 02 28 17 67 B6 04 01 00 00 F4 D0 07 B7 B1 FA 4B FD [10:23:04]CommunicateWithHost err = 0 [10:23:04]CheckOFDResponse [10:23:04]1017 (14) - 77093643461234 [10:23:04]1041 (16) - 0000000000871839 [10:23:04]1040 (4) - 228131 [10:23:04]1012 (4) - 22.10.2024 04:20 [10:23:04]1206 (1) - 0 [10:23:04]OFD Sender: Remove packet 228131 [10:23:04]ProducePacketName [10:23:04]name=ofd_packets/00228131 [10:23:04]NVStorageDeleteData [10:23:04]Write to MH i2c: 01 00 00 7B 1E 99 [10:23:04]Write i2c OK [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: 01 [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: 01 07 00 [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: 01 07 00 7B 1E 00 00 00 00 00 FC 0C A8 [10:23:04]RasterBufferAndPrint [10:23:04]line [10:23:04]line [10:23:04]line [10:23:04]line [10:23:04]line [10:23:04]written 0, free lines is 3330 [10:23:04]MH_Cut [10:23:04]Write to MH i2c: D1 01 00 82 1E 01 72 [10:23:04]Write i2c OK [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: D1 [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: D1 01 00 [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: D1 01 00 82 1E 00 71 [10:23:04]Write to MH i2c: 01 00 00 83 1E A1 [10:23:04]Write i2c OK [10:23:04]MH_I2C_Read... [10:23:05]OFD Sender: No OFD packet to send [10:23:05]*** Cut start [10:23:05]*** Partial cut [10:23:05]*** CUTSNS_PIN = 1 [10:23:05]*** CUTSNS_PIN = 0 [10:23:05]*** Brake cut motor [10:23:06]Read from MH i2c: 01 [10:23:06]MH_I2C_Read... [10:23:06]*** Stop cut motor [10:23:06]*** Cut end [10:23:06]Read from MH i2c: 01 07 00 [10:23:06]MH_I2C_Read... [10:23:06]Read from MH i2c: 01 07 00 83 1E 00 00 00 00 00 FF 0F B6 [10:23:06]process_action close_receipt done [10:23:06]requested_data is exist [10:23:06]produce_requested_data [10:23:06]requested_item fm.sn is exist - process it [10:23:06]wFMCommunicate request_size=4 [10:23:06]MH_SAM_APDU [10:23:06]CAPDU: 80 11 00 00 [10:23:06]Write to MH i2c: E2 08 00 84 1E 80 11 00 00 00 00 00 00 1C [10:23:06]Write i2c OK [10:23:06]MH_I2C_Read... [10:23:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:06]Read from MH i2c: E2 [10:23:06]MH_I2C_Read... [10:23:06]Read from MH i2c: E2 17 00 [10:23:06]MH_I2C_Read... [10:23:06]Read from MH i2c: E2 17 00 84 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 73 [10:23:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:23:06]wFMCommunicate OK [10:23:06]requested_item fd.num is exist - process it [10:23:06]SAM_PROTO_GetFieldsCounters [10:23:06]wFMCommunicate request_size=4 [10:23:06]MH_SAM_APDU [10:23:06]CAPDU: 80 13 00 00 [10:23:06]Write to MH i2c: E2 08 00 85 1E 80 13 00 00 00 00 00 00 1F [10:23:06]Write i2c OK [10:23:06]MH_I2C_Read... [10:23:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:06]Read from MH i2c: E2 [10:23:06]MH_I2C_Read... [10:23:06]Read from MH i2c: E2 62 00 [10:23:06]MH_I2C_Read... [10:23:06]Read from MH i2c: E2 62 00 85 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 23 7B 03 00 0E 04 04 00 17 02 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 1F [10:23:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 23 7B 03 00 0E 04 04 00 17 02 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:23:06]wFMCommunicate OK [10:23:06]SAM_PROTO_GetFieldsCounters done [10:23:06]requested_item shift.num is exist - process it [10:23:06]requested_item shift.opened is exist - process it [10:23:06]req_shift_opened [10:23:06]FM_GetShiftState [10:23:06]SAM_PROTO_GetShiftState [10:23:06]wFMCommunicate request_size=4 [10:23:06]MH_SAM_APDU [10:23:06]CAPDU: 80 13 01 00 [10:23:06]Write to MH i2c: E2 08 00 86 1E 80 13 01 00 00 00 00 00 21 [10:23:06]Write i2c OK [10:23:06]MH_I2C_Read... [10:23:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:06]Read from MH i2c: E2 [10:23:06]MH_I2C_Read... [10:23:06]Read from MH i2c: E2 0E 00 [10:23:06]MH_I2C_Read... [10:23:06]Read from MH i2c: E2 0E 00 86 1E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 E8 [10:23:06]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:23:06]wFMCommunicate OK [10:23:06]SAM_PROTO_GetShiftState done [10:23:06]FM_GetShiftState done [10:23:06]req_shift_opened done [10:23:06]requested_item shift.open_date is exist - process it [10:23:06]req_shift_open_date [10:23:06]req_shift_open_date done [10:23:06]produce_requested_data done [10:23:06]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228131,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [10:23:06]process_action_free close_receipt [10:23:06]json_value_free [10:23:06]json_value_free done [10:23:06]process_json_proto returns [10:23:06]Send response to host [10:23:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228131,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [10:23:06]free response buf [10:23:06]execute_script done [10:23:06]execute_script returns [10:23:06]free content buf [10:23:06]Sock 7.Close socket [10:23:06]Sock 7.Thread stoped [10:23:06]accept exits with 9 [10:23:06]New connection [10:23:06]New thread 3067137380 created [10:23:06]Thread 3066994020 joined [10:23:06]Waiting for new connection... [10:23:06] Sock 9.Parse request [10:23:06]Sock 9.Check first char [10:23:06]Sock 9.First char is OK [10:23:06]request: POST /json_proto HTTP/1.0 [10:23:06]Method: POST [10:23:06]URL: /json_proto [10:23:06]Method is POST - this is cgi request [10:23:06]url: /json_proto [10:23:06]query_string will be loaded in cgi processing [10:23:06]execute_cgi json_proto POST (null) [10:23:06]execute_cgi path=json_proto method=POST [10:23:06]POST find Content-Length [10:23:06]Host: 172.17.44.195:8080 [10:23:06]Content-Length: 683 [10:23:06]Content-Type: application/json [10:23:06] [10:23:06]POST finish read [10:23:06]Found Content-Length = 683 [10:23:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964495", "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" : 66.90, "quantity" : 14.950, "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" ] } } [10:23:06]execute_script... [10:23: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)1964495", "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" : 66.90, "quantity" : 14.950, "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" ] } } [10:23:06]POST & json_proto [10:23:06]process_json_proto [10:23:06]json parsed OK: [10:23:06]protocol is kg_v1.0 [10:23:06]action value=close_receipt [10:23:06]process_action close_receipt [10:23:06]cmd_close_receipt [10:23:06]MH_GetDate [10:23:06]Write to MH i2c: F0 00 00 87 1E 94 [10:23:06]Write i2c OK [10:23:06]MH_I2C_Read... [10:23:06]Read from MH i2c: F0 [10:23:06]MH_I2C_Read... [10:23:06]Read from MH i2c: F0 09 00 [10:23:06]MH_I2C_Read... [10:23:06]Read from MH i2c: F0 09 00 87 1E 00 0E 7D 17 67 82 C9 CF 66 26 [10:23:06]GetLastDocTimeStamp 1729592585 [10:23:06]current date 1729592590 [10:23:06]FM_GetShiftState [10:23:06]SAM_PROTO_GetShiftState [10:23:06]wFMCommunicate request_size=4 [10:23:06]MH_SAM_APDU [10:23:06]CAPDU: 80 13 01 00 [10:23:06]Write to MH i2c: E2 08 00 88 1E 80 13 01 00 00 00 00 00 23 [10:23:06]Write i2c OK [10:23:06]MH_I2C_Read... [10:23:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:06]Read from MH i2c: E2 [10:23:06]MH_I2C_Read... [10:23:06]Read from MH i2c: E2 0E 00 [10:23:06]MH_I2C_Read... [10:23:06]Read from MH i2c: E2 0E 00 88 1E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 EA [10:23:06]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:23:06]wFMCommunicate OK [10:23:06]SAM_PROTO_GetShiftState done [10:23:06]FM_GetShiftState done [10:23:06]opened in 1729555538 [10:23:06]opened+sec_in_day 1729641938 [10:23:06]quantity*price = 100015 [10:23:06]sum+1 = 100017 [10:23:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 96 22.10.2024 10:23 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228132 ФПД: 173613860072934 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102310&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228132&fm=173613860072934&tin=02508201610067®Number=0000000000091685&sum=100000 [10:23:07]StoreToDocumentArchive [10:23:07]shift 535 fd 228132 [10:23:07]save to /storage/0535/doc_00228132 [10:23:07]save last doc name /storage/0535/doc_00228132 to /storage/kkm_last_doc_name [10:23:07]save OK [10:23:07]Clear old archive folders... [10:23:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:23:07]tlvbuf is 00AA3C20 [10:23:07]SAM_PROTO_ClearQueue [10:23:07]wFMCommunicate request_size=4 [10:23:07]MH_SAM_APDU [10:23:07]CAPDU: 80 09 00 00 [10:23:07]Write to MH i2c: E2 08 00 95 1E 80 09 00 00 00 00 00 00 25 [10:23:07]Write i2c OK [10:23:07]MH_I2C_Read... [10:23:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:07]Read from MH i2c: E2 [10:23:07]MH_I2C_Read... [10:23:07]Read from MH i2c: E2 03 00 [10:23:07]MH_I2C_Read... [10:23:07]Read from MH i2c: E2 03 00 95 1E 00 90 00 27 [10:23:07]RAPDU: 90 00 [10:23:07]wFMCommunicate OK [10:23:07]SAM_PROTO_ClearQueue done [10:23:07]KKMCreateOFDPacket [10:23:07]OFDProtocolAddRootSTLVToBuf [10:23:07]FM_MakeSignedData [10:23:07]FM_MakeSignedData [10:23:07]SAM_PROTO_SignData [10:23:07]wFMCommunicate request_size=4 [10:23:07]MH_SAM_APDU [10:23:07]CAPDU: 80 0D 01 02 [10:23:07]Write to MH i2c: E2 08 00 96 1E 80 0D 01 02 00 00 00 00 2D [10:23:07]Write i2c OK [10:23:07]MH_I2C_Read... [10:23:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:07]Read from MH i2c: E2 [10:23:07]MH_I2C_Read... [10:23:07]Read from MH i2c: E2 03 00 [10:23:07]MH_I2C_Read... [10:23:07]Read from MH i2c: E2 03 00 96 1E 00 90 00 28 [10:23:07]RAPDU: 90 00 [10:23:07]wFMCommunicate OK [10:23:07]wFMCommunicate request_size=255 [10:23:07]MH_SAM_APDU [10:23: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 60 00 00 00 F4 03 04 00 0E 7D 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 24 7B 03 00 35 04 06 00 9D [10:23:08]Write to MH i2c: E2 02 01 97 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 60 00 00 00 F4 03 04 00 0E 7D 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 24 7B 03 00 35 04 06 00 9D 00 00 7F [10:23:08]Write i2c OK [10:23:08]MH_I2C_Read... [10:23:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:08]Read from MH i2c: E2 [10:23:08]MH_I2C_Read... [10:23:08]Read from MH i2c: E2 03 00 [10:23:08]MH_I2C_Read... [10:23:08]Read from MH i2c: E2 03 00 97 1E 00 90 00 29 [10:23:08]RAPDU: 90 00 [10:23:08]wFMCommunicate OK [10:23:08]wFMCommunicate request_size=10 [10:23:08]MH_SAM_APDU [10:23:08]CAPDU: 80 0D 02 02 05 E6 A0 75 2D E6 [10:23:08]Write to MH i2c: E2 0D 00 98 1E 80 0D 02 02 05 00 E6 A0 75 2D E6 00 00 48 [10:23:08]Write i2c OK [10:23:08]MH_I2C_Read... [10:23:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:08]Read from MH i2c: E2 [10:23:08]MH_I2C_Read... [10:23:08]Read from MH i2c: E2 03 00 [10:23:08]MH_I2C_Read... [10:23:08]Read from MH i2c: E2 03 00 98 1E 00 90 00 2A [10:23:08]RAPDU: 90 00 [10:23:08]wFMCommunicate OK [10:23:08]wFMCommunicate request_size=4 [10:23:08]MH_SAM_APDU [10:23:08]CAPDU: 80 0D 03 02 [10:23:08]Write to MH i2c: E2 08 00 99 1E 80 0D 03 02 00 00 00 00 32 [10:23:08]Write i2c OK [10:23:08]MH_I2C_Read... [10:23:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:08]Read from MH i2c: E2 [10:23:08]MH_I2C_Read... [10:23:08]Read from MH i2c: E2 0B 00 [10:23:08]MH_I2C_Read... [10:23:08]Read from MH i2c: E2 0B 00 99 1E 00 D0 26 43 40 D1 FD FE 75 90 00 ED [10:23:08]RAPDU: D0 26 43 40 D1 FD FE 75 90 00 [10:23:08]wFMCommunicate OK [10:23:08]SAM_PROTO_SignData done [10:23:08]FM_MakeSignedData done [10:23:08]CreateOFDProtocolMessage [10:23:08]wFMCommunicate request_size=4 [10:23:08]MH_SAM_APDU [10:23:08]CAPDU: 80 11 00 00 [10:23:08]Write to MH i2c: E2 08 00 9A 1E 80 11 00 00 00 00 00 00 32 [10:23:08]Write i2c OK [10:23:08]MH_I2C_Read... [10:23:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:08]Read from MH i2c: E2 [10:23:08]MH_I2C_Read... [10:23:08]Read from MH i2c: E2 17 00 [10:23:08]MH_I2C_Read... [10:23:08]Read from MH i2c: E2 17 00 9A 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 89 [10:23:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:23:08]wFMCommunicate OK [10:23:08]CreateOFDProtocolMessage done [10:23:08]OFDSenderStorePacket 228132 [10:23:08]StoreOFDPacket docnum=228132 [10:23:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 EB 50 07 01 90 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 60 00 00 00 F4 03 04 00 0E 7D 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 24 7B 03 00 35 04 06 00 9D E6 A0 75 2D E6 D0 26 43 40 D1 FD FE 75 [10:23:08]CheckFolder [10:23:08]dirname=/storage/ofd_packets [10:23:08]CheckFolder done [10:23:08]ProducePacketName [10:23:08]name=ofd_packets/00228132 [10:23:08]NVStorageSaveData ofd_packets/00228132 [10:23:08]File name is /storage/ofd_packets/00228132 [10:23:08]Write 301 bytes [10:23:08]NVStorageSaveData done [10:23:08]OFDSenderStorePacket done [10:23:08]KKMCreateOFDPacket done [10:23:08]NVStorageSaveData kkm_last_timestamp [10:23:08]File name is /storage/kkm_last_timestamp [10:23:08]Write 4 bytes [10:23:08]NVStorageSaveData done [10:23:08]ExternCall_PrintAddStr [10:23:08]wPrintStart [10:23:08]Write to MH i2c: 01 00 00 9B 1E B9 [10:23:08]Write i2c OK [10:23:08]MH_I2C_Read... [10:23:08]Read from MH i2c: 01 [10:23:08]MH_I2C_Read... [10:23:08]Read from MH i2c: 01 07 00 [10:23:08]MH_I2C_Read... [10:23:08]Read from MH i2c: 01 07 00 9B 1E 00 00 00 00 00 FF 0F CE [10:23:08]RasterBufferAndPrint [10:23:08]line Счет N : (1)1964495 [10:23:08]line ИНН: 02508201610067 [10:23:08]line Контрольно-Кассовый Чек [10:23:08]line ПРОДАЖА [10:23:08]line ТРК (МРК, ГНК) : 63 [10:23:08]line Товар: 2710124130 [10:23:08]line Аи-92-К-5 [10:23:08]line 14.950 * 66.90 [10:23:08]line = 1000.16 [10:23:08]line НДС 12% НСП 1% [10:23:08]line > о реализуемом товаре [10:23:08]line ОКРУГЛЕНИЕ: -0.16 [10:23:08]line ИТОГО: 1000.00 [10:23:08]line Внесено: 1000.00 [10:23:08]line СДАЧА: 0.00 [10:23:08]line НСП 1% : 8.85 [10:23:08]line НДС 12% : 106.21 [10:23:08]line Наличными: 1000.00 [10:23:08]line Безнал.: 0.00 [10:23:08]line Место: АЗС № 133 "Партнер Нефть" [10:23:08]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:23:08]line СНО: Общий режим [10:23:08]line Чек 96 22.10.2024 10:23 [10:23:08]line Смена: 535 ФФД: 1.0 [10:23:08]line ЗНМ: 0300000091 [10:23:08]line РНМ: 0000000000091685 [10:23:08]line Версия ККМ: 001 [10:23:08]line ФМ: 0000000000871839 [10:23:08]line ФД: 228132 [10:23:08]line ФПД: 173613860072934 [10:23:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102310&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228132&fm=173613860072934&tin=02508201610067®Number=0000000000091685&sum=100000 [10:23:08]written 0, free lines is 4095 [10:23:08]OFD Sender: Processing packet 228132 [packets to send 38, broken 37] [10:23:08]ProducePacketName [10:23:08]name=ofd_packets/00228132 [10:23:08]OFD Sender: To server: pG, [10:23:08]CommunicateWithHost lk.salyk.kg:30040 [10:23:08]ConnectInit lk.salyk.kg [10:23:08]Connected sock=10 [10:23:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 EB 50 07 01 90 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 60 00 00 00 F4 03 04 00 0E 7D 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 24 7B 03 00 35 04 06 00 9D E6 A0 75 2D E6 D0 26 43 40 D1 FD FE 75 [10:23:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 AE C7 47 00 D6 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 24 7B 03 00 F4 03 04 00 06 28 17 67 B6 04 01 00 00 44 96 4B 51 89 82 FA 8E [10:23:09]CommunicateWithHost err = 0 [10:23:09]CheckOFDResponse [10:23:09]1017 (14) - 77093643461234 [10:23:09]1041 (16) - 0000000000871839 [10:23:09]1040 (4) - 228132 [10:23:09]1012 (4) - 22.10.2024 04:20 [10:23:09]1206 (1) - 0 [10:23:09]OFD Sender: Remove packet 228132 [10:23:09]ProducePacketName [10:23:09]name=ofd_packets/00228132 [10:23:09]NVStorageDeleteData [10:23:09]Write to MH i2c: 01 00 00 C5 1E E3 [10:23:09]Write i2c OK [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: 01 [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: 01 07 00 [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: 01 07 00 C5 1E 00 00 00 00 00 E1 0C D7 [10:23:09]RasterBufferAndPrint [10:23:09]line [10:23:09]line [10:23:09]line [10:23:09]line [10:23:09]line [10:23:09]written 0, free lines is 3312 [10:23:09]MH_Cut [10:23:09]Write to MH i2c: D1 01 00 CC 1E 01 BC [10:23:09]Write i2c OK [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: D1 [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: D1 01 00 [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: D1 01 00 CC 1E 00 BB [10:23:09]Write to MH i2c: 01 00 00 CD 1E EB [10:23:09]Write i2c OK [10:23:09]MH_I2C_Read... [10:23:09]OFD Sender: No OFD packet to send [10:23:10]*** Cut start [10:23:10]*** Partial cut [10:23:10]*** CUTSNS_PIN = 1 [10:23:10]*** CUTSNS_PIN = 0 [10:23:10]*** Brake cut motor [10:23:10]Read from MH i2c: 01 *** Stop cut motor [10:23:10] [10:23:10]*** Cut end [10:23:10]MH_I2C_Read... [10:23:10]Read from MH i2c: 01 07 00 [10:23:10]MH_I2C_Read... [10:23:10]Read from MH i2c: 01 07 00 CD 1E 00 00 00 00 00 FF 0F 00 [10:23:10]process_action close_receipt done [10:23:10]requested_data is exist [10:23:10]produce_requested_data [10:23:10]requested_item fm.sn is exist - process it [10:23:10]wFMCommunicate request_size=4 [10:23:10]MH_SAM_APDU [10:23:10]CAPDU: 80 11 00 00 [10:23:10]Write to MH i2c: E2 08 00 CE 1E 80 11 00 00 00 00 00 00 66 [10:23:10]Write i2c OK [10:23:10]MH_I2C_Read... [10:23:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:10]Read from MH i2c: E2 [10:23:10]MH_I2C_Read... [10:23:10]Read from MH i2c: E2 17 00 [10:23:10]MH_I2C_Read... [10:23:10]Read from MH i2c: E2 17 00 CE 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BD [10:23:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:23:10]wFMCommunicate OK [10:23:10]requested_item fd.num is exist - process it [10:23:10]SAM_PROTO_GetFieldsCounters [10:23:10]wFMCommunicate request_size=4 [10:23:10]MH_SAM_APDU [10:23:10]CAPDU: 80 13 00 00 [10:23:10]Write to MH i2c: E2 08 00 CF 1E 80 13 00 00 00 00 00 00 69 [10:23:10]Write i2c OK [10:23:10]MH_I2C_Read... [10:23:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:11]Read from MH i2c: E2 [10:23:11]MH_I2C_Read... [10:23:11]Read from MH i2c: E2 62 00 [10:23:11]MH_I2C_Read... [10:23:11]Read from MH i2c: E2 62 00 CF 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 24 7B 03 00 0E 04 04 00 17 02 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 6D [10:23:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 24 7B 03 00 0E 04 04 00 17 02 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:23:11]wFMCommunicate OK [10:23:11]SAM_PROTO_GetFieldsCounters done [10:23:11]requested_item shift.num is exist - process it [10:23:11]requested_item shift.opened is exist - process it [10:23:11]req_shift_opened [10:23:11]FM_GetShiftState [10:23:11]SAM_PROTO_GetShiftState [10:23:11]wFMCommunicate request_size=4 [10:23:11]MH_SAM_APDU [10:23:11]CAPDU: 80 13 01 00 [10:23:11]Write to MH i2c: E2 08 00 D0 1E 80 13 01 00 00 00 00 00 6B [10:23:11]Write i2c OK [10:23:11]MH_I2C_Read... [10:23:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:11]Read from MH i2c: E2 [10:23:11]MH_I2C_Read... [10:23:11]Read from MH i2c: E2 0E 00 [10:23:11]MH_I2C_Read... [10:23:11]Read from MH i2c: E2 0E 00 D0 1E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 32 [10:23:11]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:23:11]wFMCommunicate OK [10:23:11]SAM_PROTO_GetShiftState done [10:23:11]FM_GetShiftState done [10:23:11]req_shift_opened done [10:23:11]requested_item shift.open_date is exist - process it [10:23:11]req_shift_open_date [10:23:11]req_shift_open_date done [10:23:11]produce_requested_data done [10:23:11]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228132,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [10:23:11]process_action_free close_receipt [10:23:11]json_value_free [10:23:11]json_value_free done [10:23:11]process_json_proto returns [10:23:11]Send response to host [10:23:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228132,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [10:23:11]free response buf [10:23:11]execute_script done [10:23:11]execute_script returns [10:23:11]free content buf [10:23:11]Sock 9.Close socket [10:23:11]Sock 9.Thread stoped [10:23:14]OFD Sender: No OFD packet to send [10:23:19]OFD Sender: No OFD packet to send [10:23:24]OFD Sender: No OFD packet to send [10:23:29]OFD Sender: No OFD packet to send [10:23:34]OFD Sender: No OFD packet to send [10:23:39]OFD Sender: No OFD packet to send [10:23:44]OFD Sender: No OFD packet to send [10:23:49]OFD Sender: No OFD packet to send [10:23:54]OFD Sender: No OFD packet to send [10:23:59]OFD Sender: No OFD packet to send [10:24:04]OFD Sender: No OFD packet to send [10:24:09]OFD Sender: No OFD packet to send [10:24:14]OFD Sender: No OFD packet to send [10:24:19]OFD Sender: No OFD packet to send [10:24:24]OFD Sender: No OFD packet to send [10:24:29]OFD Sender: No OFD packet to send [10:24:34]OFD Sender: No OFD packet to send [10:24:39]OFD Sender: No OFD packet to send [10:24:44]OFD Sender: No OFD packet to send [10:24:49]OFD Sender: No OFD packet to send [10:24:54]OFD Sender: No OFD packet to send [10:24:59]OFD Sender: No OFD packet to send [10:25:04]OFD Sender: No OFD packet to send [10:25:07]accept exits with 7 [10:25:07]New connection [10:25:07]New thread 3066994020 created [10:25:07]Thread 3067137380 joined [10:25:07]Waiting for new connection... [10:25:07] Sock 7.Parse request [10:25:07]Sock 7.Check first char [10:25:07]Sock 7.First char is OK [10:25:07]request: POST /json_proto HTTP/1.0 [10:25:07]Method: POST [10:25:07]URL: /json_proto [10:25:07]Method is POST - this is cgi request [10:25:07]url: /json_proto [10:25:07]query_string will be loaded in cgi processing [10:25:07]execute_cgi json_proto POST (null) [10:25:07]execute_cgi path=json_proto method=POST [10:25:07]POST find Content-Length [10:25:07]Host: 172.17.44.195:8080 [10:25:07]Content-Length: 801 [10:25:07]Content-Type: application/json [10:25:07] [10:25:07]POST finish read [10:25:07]Found Content-Length = 801 [10:25:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1646173", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:07]execute_script... [10:25: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)1964497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1646173", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:07]POST & json_proto [10:25:07]process_json_proto [10:25:07]json parsed OK: [10:25:07]protocol is kg_v1.0 [10:25:07]action value=close_receipt [10:25:07]process_action close_receipt [10:25:07]cmd_close_receipt [10:25:07]MH_GetDate [10:25:07]Write to MH i2c: F0 00 00 D1 1E DE [10:25:07]Write i2c OK [10:25:07]MH_I2C_Read... [10:25:07]Read from MH i2c: F0 [10:25:07]MH_I2C_Read... [10:25:07]Read from MH i2c: F0 09 00 [10:25:07]MH_I2C_Read... [10:25:07]Read from MH i2c: F0 09 00 D1 1E 00 87 7D 17 67 82 C9 CF 66 E9 [10:25:07]GetLastDocTimeStamp 1729592590 [10:25:07]current date 1729592711 [10:25:07]FM_GetShiftState [10:25:07]SAM_PROTO_GetShiftState [10:25:07]wFMCommunicate request_size=4 [10:25:07]MH_SAM_APDU [10:25:07]CAPDU: 80 13 01 00 [10:25:07]Write to MH i2c: E2 08 00 D2 1E 80 13 01 00 00 00 00 00 6D [10:25:07]Write i2c OK [10:25:07]MH_I2C_Read... [10:25:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:07]Read from MH i2c: E2 [10:25:07]MH_I2C_Read... [10:25:07]Read from MH i2c: E2 0E 00 [10:25:07]MH_I2C_Read... [10:25:07]Read from MH i2c: E2 0E 00 D2 1E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 34 [10:25:07]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:25:07]wFMCommunicate OK [10:25:07]SAM_PROTO_GetShiftState done [10:25:07]FM_GetShiftState done [10:25:07]opened in 1729555538 [10:25:07]opened+sec_in_day 1729641938 [10:25:07]quantity*price = 0 [10:25:07]sum+1 = 1 [10:25:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 97 22.10.2024 10:25 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливные Талоны 1646173 ФМ: 0000000000871839 ФД: 228133 ФПД: 106139285064353 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102511&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228133&fm=106139285064353&tin=02508201610067®Number=0000000000091685&sum=0 [10:25:08]StoreToDocumentArchive [10:25:08]shift 535 fd 228133 [10:25:08]save to /storage/0535/doc_00228133 [10:25:08]save last doc name /storage/0535/doc_00228133 to /storage/kkm_last_doc_name [10:25:08]save OK [10:25:08]Clear old archive folders... [10:25:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:25:08]tlvbuf is B6F07AF0 [10:25:08]SAM_PROTO_ClearQueue [10:25:08]wFMCommunicate request_size=4 [10:25:08]MH_SAM_APDU [10:25:08]CAPDU: 80 09 00 00 [10:25:08]Write to MH i2c: E2 08 00 DF 1E 80 09 00 00 00 00 00 00 6F [10:25:08]Write i2c OK [10:25:08]MH_I2C_Read... [10:25:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:08]Read from MH i2c: E2 [10:25:08]MH_I2C_Read... [10:25:08]Read from MH i2c: E2 03 00 [10:25:08]MH_I2C_Read... [10:25:08]Read from MH i2c: E2 03 00 DF 1E 00 90 00 71 [10:25:08]RAPDU: 90 00 [10:25:08]wFMCommunicate OK [10:25:08]SAM_PROTO_ClearQueue done [10:25:08]KKMCreateOFDPacket [10:25:08]OFDProtocolAddRootSTLVToBuf [10:25:08]FM_MakeSignedData [10:25:08]FM_MakeSignedData [10:25:08]SAM_PROTO_SignData [10:25:08]wFMCommunicate request_size=4 [10:25:08]MH_SAM_APDU [10:25:08]CAPDU: 80 0D 01 02 [10:25:08]Write to MH i2c: E2 08 00 E0 1E 80 0D 01 02 00 00 00 00 77 [10:25:08]Write i2c OK [10:25:08]MH_I2C_Read... [10:25:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:08]Read from MH i2c: E2 [10:25:08]MH_I2C_Read... [10:25:08]Read from MH i2c: E2 03 00 [10:25:08]MH_I2C_Read... [10:25:08]Read from MH i2c: E2 03 00 E0 1E 00 90 00 72 [10:25:08]RAPDU: 90 00 [10:25:08]wFMCommunicate OK [10:25:08]wFMCommunicate request_size=255 [10:25:08]MH_SAM_APDU [10: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 87 7D 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 25 7B 03 00 35 04 06 00 60 [10:25:08]Write to MH i2c: E2 02 01 E1 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 87 7D 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 25 7B 03 00 35 04 06 00 60 00 00 C3 [10:25:08]Write i2c OK [10:25:08]MH_I2C_Read... [10:25:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:09]Read from MH i2c: E2 [10:25:09]MH_I2C_Read... [10:25:09]Read from MH i2c: E2 03 00 [10:25:09]MH_I2C_Read... [10:25:09]Read from MH i2c: E2 03 00 E1 1E 00 90 00 73 [10:25:09]RAPDU: 90 00 [10:25:09]wFMCommunicate OK [10:25:09]wFMCommunicate request_size=10 [10:25:09]MH_SAM_APDU [10:25:09]CAPDU: 80 0D 02 02 05 88 7A 62 0A A1 [10:25:09]Write to MH i2c: E2 0D 00 E2 1E 80 0D 02 02 05 00 88 7A 62 0A A1 00 00 93 [10:25:09]Write i2c OK [10:25:09]MH_I2C_Read... [10:25:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:09]Read from MH i2c: E2 [10:25:09]MH_I2C_Read... [10:25:09]Read from MH i2c: E2 03 00 [10:25:09]MH_I2C_Read... [10:25:09]Read from MH i2c: E2 03 00 E2 1E 00 90 00 74 [10:25:09]RAPDU: 90 00 [10:25:09]wFMCommunicate OK [10:25:09]wFMCommunicate request_size=4 [10:25:09]MH_SAM_APDU [10:25:09]CAPDU: 80 0D 03 02 [10:25:09]Write to MH i2c: E2 08 00 E3 1E 80 0D 03 02 00 00 00 00 7C [10:25:09]Write i2c OK [10:25:09]MH_I2C_Read... [10:25:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:09]Read from MH i2c: E2 [10:25:09]MH_I2C_Read... [10:25:09]Read from MH i2c: E2 0B 00 [10:25:09]MH_I2C_Read... [10:25:09]Read from MH i2c: E2 0B 00 E3 1E 00 4E FC 08 07 21 A9 97 A6 90 00 DD [10:25:09]RAPDU: 4E FC 08 07 21 A9 97 A6 90 00 [10:25:09]wFMCommunicate OK [10:25:09]SAM_PROTO_SignData done [10:25:09]FM_MakeSignedData done [10:25:09]CreateOFDProtocolMessage [10:25:09]wFMCommunicate request_size=4 [10:25:09]MH_SAM_APDU [10:25:09]CAPDU: 80 11 00 00 [10:25:09]Write to MH i2c: E2 08 00 E4 1E 80 11 00 00 00 00 00 00 7C [10:25:09]Write i2c OK [10:25:09]MH_I2C_Read... [10:25:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:09]Read from MH i2c: E2 [10:25:09]MH_I2C_Read... [10:25:09]Read from MH i2c: E2 17 00 [10:25:09]MH_I2C_Read... [10:25:09]Read from MH i2c: E2 17 00 E4 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D3 [10:25:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:25:09]wFMCommunicate OK [10:25:09]CreateOFDProtocolMessage done [10:25:09]OFDSenderStorePacket 228133 [10:25:09]StoreOFDPacket docnum=228133 [10:25:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 7A 08 07 01 DB 07 5A 03 01 00 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 87 7D 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 25 7B 03 00 35 04 06 00 60 88 7A 62 0A A1 4E FC 08 07 21 A9 97 A6 [10:25:09]CheckFolder [10:25:09]dirname=/storage/ofd_packets [10:25:09]CheckFolder done [10:25:09]ProducePacketName [10:25:09]name=ofd_packets/00228133 [10:25:09]NVStorageSaveData ofd_packets/00228133 [10:25:09]File name is /storage/ofd_packets/00228133 [10:25:09]Write 301 bytes [10:25:09]NVStorageSaveData done [10:25:09]OFDSenderStorePacket done [10:25:09]KKMCreateOFDPacket done [10:25:09]NVStorageSaveData kkm_last_timestamp [10:25:09]File name is /storage/kkm_last_timestamp [10:25:09]Write 4 bytes [10:25:09]NVStorageSaveData done [10:25:09]ExternCall_PrintAddStr [10:25:09]wPrintStart [10:25:09]Write to MH i2c: 01 00 00 E5 1E 03 [10:25:09]Write i2c OK [10:25:09]MH_I2C_Read... [10:25:09]Read from MH i2c: 01 [10:25:09]MH_I2C_Read... [10:25:09]Read from MH i2c: 01 07 00 [10:25:09]MH_I2C_Read... [10:25:09]Read from MH i2c: 01 07 00 E5 1E 00 00 00 00 00 FF 0F 18 [10:25:09]RasterBufferAndPrint [10:25:09]line Счет N : (1)1964497 [10:25:09]line ИНН: 02508201610067 [10:25:09]line Контрольно-Кассовый Чек [10:25:09]line ПРОДАЖА [10:25:09]line ТРК (МРК, ГНК) : 44 [10:25:09]line Товар: 2710124500 [10:25:09]line Аи-95-К-5 [10:25:09]line 10.000 * 0.00 [10:25:09]line = 0.00 [10:25:09]line НДС 12% НСП 1% [10:25:09]line > о реализуемом товаре [10:25:09]line ИТОГО: 0.00 [10:25:09]line НСП 1% : 0.00 [10:25:09]line НДС 12% : 0.00 [10:25:09]line Наличными: 0.00 [10:25:09]line Безнал.: 0.00 [10:25:09]line Место: АЗС № 133 "Партнер Нефть" [10:25:09]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:25:09]line СНО: Общий режим [10:25:09]line Чек 97 22.10.2024 10:25 [10:25:09]line Смена: 535 ФФД: 1.0 [10:25:09]line ЗНМ: 0300000091 [10:25:09]line РНМ: 0000000000091685 [10:25:09]line Версия ККМ: 001 [10:25:09]line Талоны: Топливные Талоны [10:25:09]line 1646173 [10:25:09]line ФМ: 0000000000871839 [10:25:09]line ФД: 228133 [10:25:09]line ФПД: 106139285064353 [10:25:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102511&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228133&fm=106139285064353&tin=02508201610067®Number=0000000000091685&sum=0 [10:25:09]written 0, free lines is 4095 [10:25:09]OFD Sender: Processing packet 228133 [packets to send 38, broken 37] [10:25:09]ProducePacketName [10:25:09]name=ofd_packets/00228133 [10:25:09]OFD Sender: To server: pG, [10:25:09]CommunicateWithHost lk.salyk.kg:30040 [10:25:09]ConnectInit lk.salyk.kg [10:25:09]Write to MH i2c: 01 00 00 0E 1F 2D [10:25:09]Write i2c OK [10:25:09]MH_I2C_Read... [10:25:09]Read from MH i2c: 01 [10:25:09]MH_I2C_Read... [10:25:09]Read from MH i2c: 01 07 00 [10:25:09]MH_I2C_Read... [10:25:09]Read from MH i2c: 01 07 00 0E 1F 00 00 00 00 00 E2 0C 22 [10:25:09]RasterBufferAndPrint [10:25:09]line [10:25:09]line [10:25:09]line [10:25:09]line [10:25:09]line [10:25:09]Connected sock=10 [10:25:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 7A 08 07 01 DB 07 5A 03 01 00 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 87 7D 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 25 7B 03 00 35 04 06 00 60 88 7A 62 0A A1 4E FC 08 07 21 A9 97 A6 [10:25:09]written 0, free lines is 3323 [10:25:09]MH_Cut [10:25:09]Write to MH i2c: D1 01 00 15 1F 01 06 [10:25:09]Write i2c OK [10:25:09]MH_I2C_Read... [10:25:09]Read from MH i2c: D1 [10:25:09]MH_I2C_Read... [10:25:09]Read from MH i2c: D1 01 00 [10:25:09]MH_I2C_Read... [10:25:09]Read from MH i2c: D1 01 00 15 1F 00 05 [10:25:09]Write to MH i2c: 01 00 00 16 1F 35 [10:25:09]Write i2c OK [10:25:09]MH_I2C_Read... [10:25:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 27 6F 47 00 9D 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 25 7B 03 00 F4 03 04 00 7F 28 17 67 B6 04 01 00 00 1A C5 AE E3 83 9D FC 16 [10:25:09]CommunicateWithHost err = 0 [10:25:09]CheckOFDResponse [10:25:09]1017 (14) - 77093643461234 [10:25:09]1041 (16) - 0000000000871839 [10:25:09]1040 (4) - 228133 [10:25:09]1012 (4) - 22.10.2024 04:22 [10:25:09]1206 (1) - 0 [10:25:09]OFD Sender: Remove packet 228133 [10:25:09]ProducePacketName [10:25:09]name=ofd_packets/00228133 [10:25:09]NVStorageDeleteData [10:25:10]OFD Sender: No OFD packet to send [10:25:10]*** Cut start [10:25:10]*** Partial cut [10:25:10]*** CUTSNS_PIN = 1 [10:25:10]*** CUTSNS_PIN = 0 [10:25:10]*** Brake cut motor [10:25:11]Read from MH i2c: 01 [10:25:11]MH_I2C_Read... [10:25:11]*** Stop cut motor [10:25:11]*** Cut end [10:25:11]Read from MH i2c: 01 07 00 [10:25:11]MH_I2C_Read... [10:25:11]Read from MH i2c: 01 07 00 16 1F 00 00 00 00 00 FF 0F 4A [10:25:11]process_action close_receipt done [10:25:11]requested_data is exist [10:25:11]produce_requested_data [10:25:11]requested_item fm.sn is exist - process it [10:25:11]wFMCommunicate request_size=4 [10:25:11]MH_SAM_APDU [10:25:11]CAPDU: 80 11 00 00 [10:25:11]Write to MH i2c: E2 08 00 17 1F 80 11 00 00 00 00 00 00 B0 [10:25:11]Write i2c OK [10:25:11]MH_I2C_Read... [10:25:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:11]Read from MH i2c: E2 [10:25:11]MH_I2C_Read... [10:25:11]Read from MH i2c: E2 17 00 [10:25:11]MH_I2C_Read... [10:25:11]Read from MH i2c: E2 17 00 17 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 07 [10:25:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:25:11]wFMCommunicate OK [10:25:11]requested_item fd.num is exist - process it [10:25:11]SAM_PROTO_GetFieldsCounters [10:25:11]wFMCommunicate request_size=4 [10:25:11]MH_SAM_APDU [10:25:11]CAPDU: 80 13 00 00 [10:25:11]Write to MH i2c: E2 08 00 18 1F 80 13 00 00 00 00 00 00 B3 [10:25:11]Write i2c OK [10:25:11]MH_I2C_Read... [10:25:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:11]Read from MH i2c: E2 [10:25:11]MH_I2C_Read... [10:25:11]Read from MH i2c: E2 62 00 [10:25:11]MH_I2C_Read... [10:25:11]Read from MH i2c: E2 62 00 18 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 25 7B 03 00 0E 04 04 00 17 02 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 BB [10:25:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 25 7B 03 00 0E 04 04 00 17 02 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:25:11]wFMCommunicate OK [10:25:11]SAM_PROTO_GetFieldsCounters done [10:25:11]requested_item shift.num is exist - process it [10:25:11]requested_item shift.opened is exist - process it [10:25:11]req_shift_opened [10:25:11]FM_GetShiftState [10:25:11]SAM_PROTO_GetShiftState [10:25:11]wFMCommunicate request_size=4 [10:25:11]MH_SAM_APDU [10:25:11]CAPDU: 80 13 01 00 [10:25:11]Write to MH i2c: E2 08 00 19 1F 80 13 01 00 00 00 00 00 B5 [10:25:11]Write i2c OK [10:25:11]MH_I2C_Read... [10:25:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:11]Read from MH i2c: E2 [10:25:11]MH_I2C_Read... [10:25:11]Read from MH i2c: E2 0E 00 [10:25:11]MH_I2C_Read... [10:25:11]Read from MH i2c: E2 0E 00 19 1F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 7C [10:25:11]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:25:11]wFMCommunicate OK [10:25:11]SAM_PROTO_GetShiftState done [10:25:11]FM_GetShiftState done [10:25:11]req_shift_opened done [10:25:11]requested_item shift.open_date is exist - process it [10:25:11]req_shift_open_date [10:25:11]req_shift_open_date done [10:25:11]produce_requested_data done [10:25:11]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228133,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [10:25:11]process_action_free close_receipt [10:25:11]json_value_free [10:25:11]json_value_free done [10:25:11]process_json_proto returns [10:25:11]Send response to host [10:25:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228133,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [10:25:11]free response buf [10:25:11]execute_script done [10:25:11]execute_script returns [10:25:11]free content buf [10:25:11]Sock 7.Close socket [10:25:11]Sock 7.Thread stoped [10:25:15]OFD Sender: No OFD packet to send [10:25:20]accept exits with 9 [10:25:20]New connection [10:25:20]New thread 3067137380 created [10:25:20]Thread 3066994020 joined [10:25:20]Waiting for new connection... [10:25:20] Sock 9.Parse request [10:25:20]Sock 9.Check first char [10:25:20]Sock 9.First char is OK [10:25:20]request: POST /json_proto HTTP/1.0 [10:25:20]Method: POST [10:25:20]URL: /json_proto [10:25:20]Method is POST - this is cgi request [10:25:20]url: /json_proto [10:25:20]query_string will be loaded in cgi processing [10:25:20]execute_cgi json_proto POST (null) [10:25:20]execute_cgi path=json_proto method=POST [10:25:20]POST find Content-Length [10:25:20]Host: 172.17.44.195:8080 [10:25:20]Content-Length: 798 [10:25:20]Content-Type: application/json [10:25:20] [10:25:20]POST finish read [10:25:20]Found Content-Length = 798 [10:25:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964496", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4690465", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:20]execute_script... [10:25: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)1964496", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4690465", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:20]POST & json_proto [10:25:20]process_json_proto [10:25:20]json parsed OK: [10:25:20]protocol is kg_v1.0 [10:25:20]action value=close_receipt [10:25:20]process_action close_receipt [10:25:20]cmd_close_receipt [10:25:20]MH_GetDate [10:25:20]Write to MH i2c: F0 00 00 1A 1F 28 [10:25:20]Write i2c OK [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: F0 [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: F0 09 00 [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: F0 09 00 1A 1F 00 93 7D 17 67 82 C9 CF 66 3F [10:25:20]GetLastDocTimeStamp 1729592711 [10:25:20]current date 1729592723 [10:25:20]FM_GetShiftState [10:25:20]SAM_PROTO_GetShiftState [10:25:20]wFMCommunicate request_size=4 [10:25:20]MH_SAM_APDU [10:25:20]CAPDU: 80 13 01 00 [10:25:20]Write to MH i2c: E2 08 00 1B 1F 80 13 01 00 00 00 00 00 B7 [10:25:20]Write i2c OK [10:25:20]MH_I2C_Read... [10:25:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:20]Read from MH i2c: E2 [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: E2 0E 00 [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: E2 0E 00 1B 1F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 7E [10:25:20]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:25:20]wFMCommunicate OK [10:25:20]SAM_PROTO_GetShiftState done [10:25:20]FM_GetShiftState done [10:25:20]opened in 1729555538 [10:25:20]opened+sec_in_day 1729641938 [10:25:20]quantity*price = 0 [10:25:20]sum+1 = 1 [10:25:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 98 22.10.2024 10:25 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливные Талоны 4690465 ФМ: 0000000000871839 ФД: 228134 ФПД: 5058426813648 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102523&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228134&fm=5058426813648&tin=02508201610067®Number=0000000000091685&sum=0 [10:25:21]StoreToDocumentArchive [10:25:21]shift 535 fd 228134 [10:25:21]save to /storage/0535/doc_00228134 [10:25:21]save last doc name /storage/0535/doc_00228134 to /storage/kkm_last_doc_name [10:25:21]save OK [10:25:21]Clear old archive folders... [10:25:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:25:21]tlvbuf is 0085D960 [10:25:21]SAM_PROTO_ClearQueue [10:25:21]wFMCommunicate request_size=4 [10:25:21]MH_SAM_APDU [10:25:21]CAPDU: 80 09 00 00 [10:25:21]Write to MH i2c: E2 08 00 28 1F 80 09 00 00 00 00 00 00 B9 [10:25:21]Write i2c OK [10:25:21]MH_I2C_Read... [10:25:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:21]Read from MH i2c: E2 [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: E2 03 00 [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: E2 03 00 28 1F 00 90 00 BB [10:25:21]RAPDU: 90 00 [10:25:21]wFMCommunicate OK [10:25:21]SAM_PROTO_ClearQueue done [10:25:21]KKMCreateOFDPacket [10:25:21]OFDProtocolAddRootSTLVToBuf [10:25:21]FM_MakeSignedData [10:25:21]FM_MakeSignedData [10:25:21]SAM_PROTO_SignData [10:25:21]wFMCommunicate request_size=4 [10:25:21]MH_SAM_APDU [10:25:21]CAPDU: 80 0D 01 02 [10:25:21]Write to MH i2c: E2 08 00 29 1F 80 0D 01 02 00 00 00 00 C1 [10:25:21]Write i2c OK [10:25:21]MH_I2C_Read... [10:25:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:21]Read from MH i2c: E2 [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: E2 03 00 [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: E2 03 00 29 1F 00 90 00 BC [10:25:21]RAPDU: 90 00 [10:25:21]wFMCommunicate OK [10:25:21]wFMCommunicate request_size=255 [10:25:21]MH_SAM_APDU [10:25: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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 93 7D 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 26 7B 03 00 35 04 06 00 04 99 C1 BB [10:25:21]Write to MH i2c: E2 02 01 2A 1F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 93 7D 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 26 7B 03 00 35 04 06 00 04 99 C1 BB 00 00 5A [10:25:21]Write i2c OK [10:25:21]MH_I2C_Read... [10:25:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:21]Read from MH i2c: E2 [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: E2 03 00 [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: E2 03 00 2A 1F 00 90 00 BD [10:25:21]RAPDU: 90 00 [10:25:21]wFMCommunicate OK [10:25:21]wFMCommunicate request_size=7 [10:25:21]MH_SAM_APDU [10:25:21]CAPDU: 80 0D 02 02 02 BC D0 [10:25:21]Write to MH i2c: E2 0A 00 2B 1F 80 0D 02 02 02 00 BC D0 00 00 54 [10:25:21]Write i2c OK [10:25:21]MH_I2C_Read... [10:25:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:21]Read from MH i2c: E2 [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: E2 03 00 [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: E2 03 00 2B 1F 00 90 00 BE [10:25:21]RAPDU: 90 00 [10:25:21]wFMCommunicate OK [10:25:21]wFMCommunicate request_size=4 [10:25:21]MH_SAM_APDU [10:25:21]CAPDU: 80 0D 03 02 [10:25:21]Write to MH i2c: E2 08 00 2C 1F 80 0D 03 02 00 00 00 00 C6 [10:25:21]Write i2c OK [10:25:21]MH_I2C_Read... [10:25:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:22]Read from MH i2c: E2 [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: E2 0B 00 [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: E2 0B 00 2C 1F 00 F0 66 AE 9A 83 5E CA 30 90 00 40 [10:25:22]RAPDU: F0 66 AE 9A 83 5E CA 30 90 00 [10:25:22]wFMCommunicate OK [10:25:22]SAM_PROTO_SignData done [10:25:22]FM_MakeSignedData done [10:25:22]CreateOFDProtocolMessage [10:25:22]wFMCommunicate request_size=4 [10:25:22]MH_SAM_APDU [10:25:22]CAPDU: 80 11 00 00 [10:25:22]Write to MH i2c: E2 08 00 2D 1F 80 11 00 00 00 00 00 00 C6 [10:25:22]Write i2c OK [10:25:22]MH_I2C_Read... [10:25:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:22]Read from MH i2c: E2 [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: E2 17 00 [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: E2 17 00 2D 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1D [10:25:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:25:22]wFMCommunicate OK [10:25:22]CreateOFDProtocolMessage done [10:25:22]OFDSenderStorePacket 228134 [10:25:22]StoreOFDPacket docnum=228134 [10:25:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 EB 03 04 01 4D 33 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 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 93 7D 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 26 7B 03 00 35 04 06 00 04 99 C1 BB BC D0 F0 66 AE 9A 83 5E CA 30 [10:25:22]CheckFolder [10:25:22]dirname=/storage/ofd_packets [10:25:22]CheckFolder done [10:25:22]ProducePacketName [10:25:22]name=ofd_packets/00228134 [10:25:22]NVStorageSaveData ofd_packets/00228134 [10:25:22]File name is /storage/ofd_packets/00228134 [10:25:22]Write 298 bytes [10:25:22]NVStorageSaveData done [10:25:22]OFDSenderStorePacket done [10:25:22]KKMCreateOFDPacket done [10:25:22]NVStorageSaveData kkm_last_timestamp [10:25:22]File name is /storage/kkm_last_timestamp [10:25:22]Write 4 bytes [10:25:22]NVStorageSaveData done [10:25:22]ExternCall_PrintAddStr [10:25:22]wPrintStart [10:25:22]Write to MH i2c: 01 00 00 2E 1F 4D [10:25:22]Write i2c OK [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: 01 [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: 01 07 00 [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: 01 07 00 2E 1F 00 00 00 00 00 FF 0F 62 [10:25:22]RasterBufferAndPrint [10:25:22]line Счет N : (1)1964496 [10:25:22]line ИНН: 02508201610067 [10:25:22]line Контрольно-Кассовый Чек [10:25:22]line ПРОДАЖА [10:25:22]line ТРК (МРК, ГНК) : 11 [10:25:22]line Товар: 2710194210 [10:25:22]line ДТ-К-5 [10:25:22]line 20.000 * 0.00 [10:25:22]line = 0.00 [10:25:22]line НДС 12% НСП 1% [10:25:22]line > о реализуемом товаре [10:25:22]line ИТОГО: 0.00 [10:25:22]line НСП 1% : 0.00 [10:25:22]line НДС 12% : 0.00 [10:25:22]line Наличными: 0.00 [10:25:22]line Безнал.: 0.00 [10:25:22]line Место: АЗС № 133 "Партнер Нефть" [10:25:22]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:25:22]line СНО: Общий режим [10:25:22]line Чек 98 22.10.2024 10:25 [10:25:22]line Смена: 535 ФФД: 1.0 [10:25:22]line ЗНМ: 0300000091 [10:25:22]line РНМ: 0000000000091685 [10:25:22]line Версия ККМ: 001 [10:25:22]line Талоны: Топливные Талоны [10:25:22]line 4690465 [10:25:22]line ФМ: 0000000000871839 [10:25:22]line ФД: 228134 [10:25:22]line ФПД: 5058426813648 [10:25:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102523&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228134&fm=5058426813648&tin=02508201610067®Number=0000000000091685&sum=0 [10:25:22]OFD Sender: Processing packet 228134 [packets to send 38, broken 37] [10:25:22]ProducePacketName [10:25:22]name=ofd_packets/00228134 [10:25:22]OFD Sender: To server: pG, [10:25:22]CommunicateWithHost lk.salyk.kg:30040 [10:25:22]ConnectInit lk.salyk.kg [10:25:22]written 0, free lines is 4095 [10:25:22]Connected sock=10 [10:25:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 EB 03 04 01 4D 33 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 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 93 7D 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 26 7B 03 00 35 04 06 00 04 99 C1 BB BC D0 F0 66 AE 9A 83 5E CA 30 [10:25:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 70 08 47 00 70 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 26 7B 03 00 F4 03 04 00 8C 28 17 67 B6 04 01 00 00 FE 48 F6 71 3C 34 B7 FC [10:25:22]CommunicateWithHost err = 0 [10:25:22]CheckOFDResponse [10:25:22]1017 (14) - 77093643461234 [10:25:22]1041 (16) - 0000000000871839 [10:25:22]1040 (4) - 228134 [10:25:22]1012 (4) - 22.10.2024 04:22 [10:25:22]1206 (1) - 0 [10:25:22]OFD Sender: Remove packet 228134 [10:25:22]ProducePacketName [10:25:22]name=ofd_packets/00228134 [10:25:22]NVStorageDeleteData [10:25:22]Write to MH i2c: 01 00 00 57 1F 76 [10:25:22]Write i2c OK [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: 01 [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: 01 07 00 [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: 01 07 00 57 1F 00 00 00 00 00 E8 0C 71 [10:25:22]RasterBufferAndPrint [10:25:22]line [10:25:22]line [10:25:22]line [10:25:22]line [10:25:22]line [10:25:22]written 0, free lines is 3311 [10:25:22]MH_Cut [10:25:22]Write to MH i2c: D1 01 00 5E 1F 01 4F [10:25:22]Write i2c OK [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: D1 [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: D1 01 00 [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: D1 01 00 5E 1F 00 4E [10:25:22]Write to MH i2c: 01 00 00 5F 1F 7E [10:25:22]Write i2c OK [10:25:22]MH_I2C_Read... [10:25:23]OFD Sender: No OFD packet to send [10:25:23]*** Cut start [10:25:23]*** Partial cut [10:25:23]*** CUTSNS_PIN = 1 [10:25:23]*** CUTSNS_PIN = 0 [10:25:24]*** Brake cut motor [10:25:24]Read from MH i2c: 01 [10:25:24]MH_I2C_Read... [10:25:24]*** Stop cut motor [10:25:24]*** Cut end [10:25:24]Read from MH i2c: 01 07 00 [10:25:24]MH_I2C_Read... [10:25:24]Read from MH i2c: 01 07 00 5F 1F 00 00 00 00 00 FF 0F 93 [10:25:24]process_action close_receipt done [10:25:24]requested_data is exist [10:25:24]produce_requested_data [10:25:24]requested_item fm.sn is exist - process it [10:25:24]wFMCommunicate request_size=4 [10:25:24]MH_SAM_APDU [10:25:24]CAPDU: 80 11 00 00 [10:25:24]Write to MH i2c: E2 08 00 60 1F 80 11 00 00 00 00 00 00 F9 [10:25:24]Write i2c OK [10:25:24]MH_I2C_Read... [10:25:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:24]Read from MH i2c: E2 [10:25:24]MH_I2C_Read... [10:25:24]Read from MH i2c: E2 17 00 [10:25:24]MH_I2C_Read... [10:25:24]Read from MH i2c: E2 17 00 60 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 50 [10:25:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:25:24]wFMCommunicate OK [10:25:24]requested_item fd.num is exist - process it [10:25:24]SAM_PROTO_GetFieldsCounters [10:25:24]wFMCommunicate request_size=4 [10:25:24]MH_SAM_APDU [10:25:24]CAPDU: 80 13 00 00 [10:25:24]Write to MH i2c: E2 08 00 61 1F 80 13 00 00 00 00 00 00 FC [10:25:24]Write i2c OK [10:25:24]MH_I2C_Read... [10:25:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:24]Read from MH i2c: E2 [10:25:24]MH_I2C_Read... [10:25:24]Read from MH i2c: E2 62 00 [10:25:24]MH_I2C_Read... [10:25:24]Read from MH i2c: E2 62 00 61 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 26 7B 03 00 0E 04 04 00 17 02 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 08 [10:25:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 26 7B 03 00 0E 04 04 00 17 02 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:25:24]wFMCommunicate OK [10:25:24]SAM_PROTO_GetFieldsCounters done [10:25:24]requested_item shift.num is exist - process it [10:25:24]requested_item shift.opened is exist - process it [10:25:24]req_shift_opened [10:25:24]FM_GetShiftState [10:25:24]SAM_PROTO_GetShiftState [10:25:24]wFMCommunicate request_size=4 [10:25:24]MH_SAM_APDU [10:25:24]CAPDU: 80 13 01 00 [10:25:24]Write to MH i2c: E2 08 00 62 1F 80 13 01 00 00 00 00 00 FE [10:25:24]Write i2c OK [10:25:24]MH_I2C_Read... [10:25:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:24]Read from MH i2c: E2 [10:25:24]MH_I2C_Read... [10:25:24]Read from MH i2c: E2 0E 00 [10:25:24]MH_I2C_Read... [10:25:24]Read from MH i2c: E2 0E 00 62 1F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 C5 [10:25:24]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:25:24]wFMCommunicate OK [10:25:24]SAM_PROTO_GetShiftState done [10:25:24]FM_GetShiftState done [10:25:24]req_shift_opened done [10:25:24]requested_item shift.open_date is exist - process it [10:25:24]req_shift_open_date [10:25:24]req_shift_open_date done [10:25:24]produce_requested_data done [10:25:24]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228134,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [10:25:24]process_action_free close_receipt [10:25:24]json_value_free [10:25:24]json_value_free done [10:25:24]process_json_proto returns [10:25:24]Send response to host [10:25:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228134,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [10:25:24]free response buf [10:25:24]execute_script done [10:25:24]execute_script returns [10:25:24]free content buf [10:25:24]Sock 9.Close socket [10:25:24]Sock 9.Thread stoped [10:25:28]OFD Sender: No OFD packet to send [10:25:33]OFD Sender: No OFD packet to send [10:25:34]accept exits with 7 [10:25:34]New connection [10:25:34]New thread 3066994020 created [10:25:34]Thread 3067137380 joined [10:25:34]Waiting for new connection... [10:25:34] Sock 7.Parse request [10:25:34]Sock 7.Check first char [10:25:34]Sock 7.First char is OK [10:25:34]request: POST /json_proto HTTP/1.0 [10:25:34]Method: POST [10:25:34]URL: /json_proto [10:25:34]Method is POST - this is cgi request [10:25:34]url: /json_proto [10:25:34]query_string will be loaded in cgi processing [10:25:34]execute_cgi json_proto POST (null) [10:25:34]execute_cgi path=json_proto method=POST [10:25:34]POST find Content-Length [10:25:34]Host: 172.17.44.195:8080 [10:25:34]Content-Length: 678 [10:25:34]Content-Type: application/json [10:25:34] [10:25:34]POST finish read [10:25:34]Found Content-Length = 678 [10:25:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964499", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:25:34]execute_script... [10:25: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)1964499", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:25:34]POST & json_proto [10:25:34]process_json_proto [10:25:34]json parsed OK: [10:25:34]protocol is kg_v1.0 [10:25:34]action value=close_receipt [10:25:34]process_action close_receipt [10:25:34]cmd_close_receipt [10:25:34]MH_GetDate [10:25:34]Write to MH i2c: F0 00 00 63 1F 71 [10:25:34]Write i2c OK [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: F0 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: F0 09 00 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: F0 09 00 63 1F 00 A1 7D 17 67 82 C9 CF 66 96 [10:25:34]GetLastDocTimeStamp 1729592723 [10:25:34]current date 1729592737 [10:25:34]FM_GetShiftState [10:25:34]SAM_PROTO_GetShiftState [10:25:34]wFMCommunicate request_size=4 [10:25:34]MH_SAM_APDU [10:25:34]CAPDU: 80 13 01 00 [10:25:34]Write to MH i2c: E2 08 00 64 1F 80 13 01 00 00 00 00 00 00 [10:25:34]Write i2c OK [10:25:34]MH_I2C_Read... [10:25:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:34]Read from MH i2c: E2 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: E2 0E 00 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: E2 0E 00 64 1F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 C7 [10:25:34]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:25:34]wFMCommunicate OK [10:25:34]SAM_PROTO_GetShiftState done [10:25:34]FM_GetShiftState done [10:25:34]opened in 1729555538 [10:25:34]opened+sec_in_day 1729641938 [10:25:34]quantity*price = 50041 [10:25:34]sum+1 = 50042 [10:25:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 99 22.10.2024 10:25 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228135 ФПД: 241675128389213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102537&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228135&fm=241675128389213&tin=02508201610067®Number=0000000000091685&sum=50000 [10:25:35]StoreToDocumentArchive [10:25:35]shift 535 fd 228135 [10:25:35]save to /storage/0535/doc_00228135 [10:25:35]save last doc name /storage/0535/doc_00228135 to /storage/kkm_last_doc_name [10:25:35]save OK [10:25:35]Clear old archive folders... [10:25:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:25:35]tlvbuf is 008B72F0 [10:25:35]SAM_PROTO_ClearQueue [10:25:35]wFMCommunicate request_size=4 [10:25:35]MH_SAM_APDU [10:25:35]CAPDU: 80 09 00 00 [10:25:35]Write to MH i2c: E2 08 00 71 1F 80 09 00 00 00 00 00 00 02 [10:25:35]Write i2c OK [10:25:35]MH_I2C_Read... [10:25:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:35]Read from MH i2c: E2 [10:25:35]MH_I2C_Read... [10:25:35]Read from MH i2c: E2 03 00 [10:25:35]MH_I2C_Read... [10:25:35]Read from MH i2c: E2 03 00 71 1F 00 90 00 04 [10:25:35]RAPDU: 90 00 [10:25:35]wFMCommunicate OK [10:25:35]SAM_PROTO_ClearQueue done [10:25:35]KKMCreateOFDPacket [10:25:35]OFDProtocolAddRootSTLVToBuf [10:25:35]FM_MakeSignedData [10:25:35]FM_MakeSignedData [10:25:35]SAM_PROTO_SignData [10:25:35]wFMCommunicate request_size=4 [10:25:35]MH_SAM_APDU [10:25:35]CAPDU: 80 0D 01 02 [10:25:35]Write to MH i2c: E2 08 00 72 1F 80 0D 01 02 00 00 00 00 0A [10:25:35]Write i2c OK [10:25:35]MH_I2C_Read... [10:25:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:35]Read from MH i2c: E2 [10:25:35]MH_I2C_Read... [10:25:35]Read from MH i2c: E2 03 00 [10:25:35]MH_I2C_Read... [10:25:35]Read from MH i2c: E2 03 00 72 1F 00 90 00 05 [10:25:35]RAPDU: 90 00 [10:25:35]wFMCommunicate OK [10:25:35]wFMCommunicate request_size=255 [10:25:35]MH_SAM_APDU [10:25: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 A1 7D 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 27 7B 03 00 35 04 06 00 DB [10:25:35]Write to MH i2c: E2 02 01 73 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 A1 7D 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 27 7B 03 00 35 04 06 00 DB 00 00 39 [10:25:35]Write i2c OK [10:25:35]MH_I2C_Read... [10:25:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:36]Read from MH i2c: E2 [10:25:36]MH_I2C_Read... [10:25:36]Read from MH i2c: E2 03 00 [10:25:36]MH_I2C_Read... [10:25:36]Read from MH i2c: E2 03 00 73 1F 00 90 00 06 [10:25:36]RAPDU: 90 00 [10:25:36]wFMCommunicate OK [10:25:36]wFMCommunicate request_size=10 [10:25:36]MH_SAM_APDU [10:25:36]CAPDU: 80 0D 02 02 05 CD 60 2D BE 5D [10:25:36]Write to MH i2c: E2 0D 00 74 1F 80 0D 02 02 05 00 CD 60 2D BE 5D 00 00 8C [10:25:36]Write i2c OK [10:25:36]MH_I2C_Read... [10:25:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:36]Read from MH i2c: E2 [10:25:36]MH_I2C_Read... [10:25:36]Read from MH i2c: E2 03 00 [10:25:36]MH_I2C_Read... [10:25:36]Read from MH i2c: E2 03 00 74 1F 00 90 00 07 [10:25:36]RAPDU: 90 00 [10:25:36]wFMCommunicate OK [10:25:36]wFMCommunicate request_size=4 [10:25:36]MH_SAM_APDU [10:25:36]CAPDU: 80 0D 03 02 [10:25:36]Write to MH i2c: E2 08 00 75 1F 80 0D 03 02 00 00 00 00 0F [10:25:36]Write i2c OK [10:25:36]MH_I2C_Read... [10:25:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:36]Read from MH i2c: E2 [10:25:36]MH_I2C_Read... [10:25:36]Read from MH i2c: E2 0B 00 [10:25:36]MH_I2C_Read... [10:25:36]Read from MH i2c: E2 0B 00 75 1F 00 8E FF 8A 45 DE 07 D7 73 90 00 9B [10:25:36]RAPDU: 8E FF 8A 45 DE 07 D7 73 90 00 [10:25:36]wFMCommunicate OK [10:25:36]SAM_PROTO_SignData done [10:25:36]FM_MakeSignedData done [10:25:36]CreateOFDProtocolMessage [10:25:36]wFMCommunicate request_size=4 [10:25:36]MH_SAM_APDU [10:25:36]CAPDU: 80 11 00 00 [10:25:36]Write to MH i2c: E2 08 00 76 1F 80 11 00 00 00 00 00 00 0F [10:25:36]Write i2c OK [10:25:36]MH_I2C_Read... [10:25:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:36]Read from MH i2c: E2 [10:25:36]MH_I2C_Read... [10:25:36]Read from MH i2c: E2 17 00 [10:25:36]MH_I2C_Read... [10:25:36]Read from MH i2c: E2 17 00 76 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 66 [10:25:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:25:36]wFMCommunicate OK [10:25:36]CreateOFDProtocolMessage done [10:25:36]OFDSenderStorePacket 228135 [10:25:36]StoreOFDPacket docnum=228135 [10:25:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 9F 0F 07 01 C2 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 A1 7D 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 27 7B 03 00 35 04 06 00 DB CD 60 2D BE 5D 8E FF 8A 45 DE 07 D7 73 [10:25:36]CheckFolder [10:25:36]dirname=/storage/ofd_packets [10:25:36]CheckFolder done [10:25:36]ProducePacketName [10:25:36]name=ofd_packets/00228135 [10:25:36]NVStorageSaveData ofd_packets/00228135 [10:25:36]File name is /storage/ofd_packets/00228135 [10:25:36]Write 301 bytes [10:25:36]NVStorageSaveData done [10:25:36]OFDSenderStorePacket done [10:25:36]KKMCreateOFDPacket done [10:25:36]NVStorageSaveData kkm_last_timestamp [10:25:36]File name is /storage/kkm_last_timestamp [10:25:36]Write 4 bytes [10:25:36]NVStorageSaveData done [10:25:36]ExternCall_PrintAddStr [10:25:36]wPrintStart [10:25:36]Write to MH i2c: 01 00 00 77 1F 96 [10:25:36]Write i2c OK [10:25:36]MH_I2C_Read... [10:25:36]Read from MH i2c: 01 [10:25:36]MH_I2C_Read... [10:25:36]Read from MH i2c: 01 07 00 [10:25:36]MH_I2C_Read... [10:25:36]Read from MH i2c: 01 07 00 77 1F 00 00 00 00 00 FF 0F AB [10:25:36]RasterBufferAndPrint [10:25:36]line Счет N : (1)1964499 [10:25:36]line ИНН: 02508201610067 [10:25:36]line Контрольно-Кассовый Чек [10:25:36]line ПРОДАЖА [10:25:36]line ТРК (МРК, ГНК) : 63 [10:25:36]line Товар: 2710124130 [10:25:36]line Аи-92-К-5 [10:25:36]line 7.480 * 66.90 [10:25:36]line = 500.41 [10:25:36]line НДС 12% НСП 1% [10:25:36]line > о реализуемом товаре [10:25:36]line ОКРУГЛЕНИЕ: -0.41 [10:25:36]line ИТОГО: 500.00 [10:25:36]line Внесено: 500.00 [10:25:36]line СДАЧА: 0.00 [10:25:36]line НСП 1% : 4.43 [10:25:36]line НДС 12% : 53.14 [10:25:36]line Наличными: 500.00 [10:25:36]line Безнал.: 0.00 [10:25:36]line Место: АЗС № 133 "Партнер Нефть" [10:25:36]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:25:36]line СНО: Общий режим [10:25:36]line Чек 99 22.10.2024 10:25 [10:25:36]line Смена: 535 ФФД: 1.0 [10:25:36]line ЗНМ: 0300000091 [10:25:36]line РНМ: 0000000000091685 [10:25:36]line Версия ККМ: 001 [10:25:36]line ФМ: 0000000000871839 [10:25:36]line ФД: 228135 [10:25:36]line ФПД: 241675128389213 [10:25:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102537&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228135&fm=241675128389213&tin=02508201610067®Number=0000000000091685&sum=50000 [10:25:36]written 0, free lines is 4095 [10:25:36]OFD Sender: Processing packet 228135 [packets to send 38, broken 37] [10:25:36]ProducePacketName [10:25:36]name=ofd_packets/00228135 [10:25:36]OFD Sender: To server: pG, [10:25:36]CommunicateWithHost lk.salyk.kg:30040 [10:25:36]ConnectInit lk.salyk.kg [10:25:36]Connected sock=10 [10:25:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 9F 0F 07 01 C2 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 A1 7D 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 27 7B 03 00 35 04 06 00 DB CD 60 2D BE 5D 8E FF 8A 45 DE 07 D7 73 [10:25:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 B9 08 47 00 30 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 27 7B 03 00 F4 03 04 00 9A 28 17 67 B6 04 01 00 00 F6 88 C1 4F CA C0 B9 CB [10:25:36]CommunicateWithHost err = 0 [10:25:36]CheckOFDResponse [10:25:36]1017 (14) - 77093643461234 [10:25:36]1041 (16) - 0000000000871839 [10:25:36]1040 (4) - 228135 [10:25:36]1012 (4) - 22.10.2024 04:22 [10:25:36]1206 (1) - 0 [10:25:36]OFD Sender: Remove packet 228135 [10:25:36]ProducePacketName [10:25:36]name=ofd_packets/00228135 [10:25:36]NVStorageDeleteData [10:25:36]Write to MH i2c: 01 00 00 A1 1F C0 [10:25:36]Write i2c OK [10:25:36]MH_I2C_Read... [10:25:36]Read from MH i2c: 01 [10:25:36]MH_I2C_Read... [10:25:36]Read from MH i2c: 01 07 00 [10:25:36]MH_I2C_Read... [10:25:36]Read from MH i2c: 01 07 00 A1 1F 00 00 00 00 00 E6 0C B9 [10:25:36]RasterBufferAndPrint [10:25:36]line [10:25:36]line [10:25:36]line [10:25:36]line [10:25:36]line [10:25:36]written 0, free lines is 3311 [10:25:36]MH_Cut [10:25:36]Write to MH i2c: D1 01 00 A8 1F 01 99 [10:25:36]Write i2c OK [10:25:36]MH_I2C_Read... [10:25:36]Read from MH i2c: D1 [10:25:36]MH_I2C_Read... [10:25:36]Read from MH i2c: D1 01 00 [10:25:36]MH_I2C_Read... [10:25:36]Read from MH i2c: D1 01 00 A8 1F 00 98 [10:25:36]Write to MH i2c: 01 00 00 A9 1F C8 [10:25:36]Write i2c OK [10:25:36]MH_I2C_Read... [10:25:37]OFD Sender: No OFD packet to send [10:25:37]*** Cut start [10:25:37]*** Partial cut [10:25:37]*** CUTSNS_PIN = 1 [10:25:37]*** CUTSNS_PIN = 0 [10:25:37]*** Brake cut motor [10:25:38]Read from MH i2c: 01 [10:25:38]MH_I2C_Read... [10:25:38]*** Stop cut motor [10:25:38]*** Cut end [10:25:38]Read from MH i2c: 01 07 00 [10:25:38]MH_I2C_Read... [10:25:38]Read from MH i2c: 01 07 00 A9 1F 00 00 00 00 00 FF 0F DD [10:25:38]process_action close_receipt done [10:25:38]requested_data is exist [10:25:38]produce_requested_data [10:25:38]requested_item fm.sn is exist - process it [10:25:38]wFMCommunicate request_size=4 [10:25:38]MH_SAM_APDU [10:25:38]CAPDU: 80 11 00 00 [10:25:38]Write to MH i2c: E2 08 00 AA 1F 80 11 00 00 00 00 00 00 43 [10:25:38]Write i2c OK [10:25:38]MH_I2C_Read... [10:25:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:38]Read from MH i2c: E2 [10:25:38]MH_I2C_Read... [10:25:38]Read from MH i2c: E2 17 00 [10:25:38]MH_I2C_Read... [10:25:38]Read from MH i2c: E2 17 00 AA 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9A [10:25:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:25:38]wFMCommunicate OK [10:25:38]requested_item fd.num is exist - process it [10:25:38]SAM_PROTO_GetFieldsCounters [10:25:38]wFMCommunicate request_size=4 [10:25:38]MH_SAM_APDU [10:25:38]CAPDU: 80 13 00 00 [10:25:38]Write to MH i2c: E2 08 00 AB 1F 80 13 00 00 00 00 00 00 46 [10:25:38]Write i2c OK [10:25:38]MH_I2C_Read... [10:25:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:38]Read from MH i2c: E2 [10:25:38]MH_I2C_Read... [10:25:38]Read from MH i2c: E2 62 00 [10:25:38]MH_I2C_Read... [10:25:38]Read from MH i2c: E2 62 00 AB 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 27 7B 03 00 0E 04 04 00 17 02 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 56 [10:25:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 27 7B 03 00 0E 04 04 00 17 02 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:25:38]wFMCommunicate OK [10:25:38]SAM_PROTO_GetFieldsCounters done [10:25:38]requested_item shift.num is exist - process it [10:25:38]requested_item shift.opened is exist - process it [10:25:38]req_shift_opened [10:25:38]FM_GetShiftState [10:25:38]SAM_PROTO_GetShiftState [10:25:38]wFMCommunicate request_size=4 [10:25:38]MH_SAM_APDU [10:25:38]CAPDU: 80 13 01 00 [10:25:38]Write to MH i2c: E2 08 00 AC 1F 80 13 01 00 00 00 00 00 48 [10:25:38]Write i2c OK [10:25:38]MH_I2C_Read... [10:25:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:38]Read from MH i2c: E2 [10:25:38]MH_I2C_Read... [10:25:38]Read from MH i2c: E2 0E 00 [10:25:38]MH_I2C_Read... [10:25:38]Read from MH i2c: E2 0E 00 AC 1F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 0F [10:25:38]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:25:38]wFMCommunicate OK [10:25:38]SAM_PROTO_GetShiftState done [10:25:38]FM_GetShiftState done [10:25:38]req_shift_opened done [10:25:38]requested_item shift.open_date is exist - process it [10:25:38]req_shift_open_date [10:25:38]req_shift_open_date done [10:25:38]produce_requested_data done [10:25:38]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228135,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [10:25:38]process_action_free close_receipt [10:25:38]json_value_free [10:25:38]json_value_free done [10:25:38]process_json_proto returns [10:25:38]Send response to host [10:25:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228135,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [10:25:38]free response buf [10:25:38]execute_script done [10:25:38]execute_script returns [10:25:38]free content buf [10:25:38]Sock 7.Close socket [10:25:38]Sock 7.Thread stoped [10:25:38]accept exits with 9 [10:25:38]New connection [10:25:38]New thread 3067137380 created [10:25:38]Thread 3066994020 joined [10:25:38]Waiting for new connection... [10:25:38] Sock 9.Parse request [10:25:38]Sock 9.Check first char [10:25:38]Sock 9.First char is OK [10:25:38]request: POST /json_proto HTTP/1.0 [10:25:38]Method: POST [10:25:38]URL: /json_proto [10:25:38]Method is POST - this is cgi request [10:25:38]url: /json_proto [10:25:38]query_string will be loaded in cgi processing [10:25:38]execute_cgi json_proto POST (null) [10:25:38]execute_cgi path=json_proto method=POST [10:25:38]POST find Content-Length [10:25:38]Host: 172.17.44.195:8080 [10:25:38]Content-Length: 770 [10:25:38]Content-Type: application/json [10:25:38] [10:25:38]POST finish read [10:25:38]Found Content-Length = 770 [10:25:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:38]execute_script... [10:25: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)1964498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:38]POST & json_proto [10:25:38]process_json_proto [10:25:38]json parsed OK: [10:25:38]protocol is kg_v1.0 [10:25:38]action value=close_receipt [10:25:38]process_action close_receipt [10:25:38]cmd_close_receipt [10:25:38]MH_GetDate [10:25:38]Write to MH i2c: F0 00 00 AD 1F BB [10:25:38]Write i2c OK [10:25:38]MH_I2C_Read... [10:25:38]Read from MH i2c: F0 [10:25:38]MH_I2C_Read... [10:25:38]Read from MH i2c: F0 09 00 [10:25:38]MH_I2C_Read... [10:25:38]Read from MH i2c: F0 09 00 AD 1F 00 A6 7D 17 67 82 C9 CF 66 E5 [10:25:38]GetLastDocTimeStamp 1729592737 [10:25:38]current date 1729592742 [10:25:38]FM_GetShiftState [10:25:38]SAM_PROTO_GetShiftState [10:25:38]wFMCommunicate request_size=4 [10:25:38]MH_SAM_APDU [10:25:38]CAPDU: 80 13 01 00 [10:25:38]Write to MH i2c: E2 08 00 AE 1F 80 13 01 00 00 00 00 00 4A [10:25:38]Write i2c OK [10:25:38]MH_I2C_Read... [10:25:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:38]Read from MH i2c: E2 [10:25:38]MH_I2C_Read... [10:25:38]Read from MH i2c: E2 0E 00 [10:25:38]MH_I2C_Read... [10:25:38]Read from MH i2c: E2 0E 00 AE 1F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 11 [10:25:38]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:25:38]wFMCommunicate OK [10:25:38]SAM_PROTO_GetShiftState done [10:25:38]FM_GetShiftState done [10:25:38]opened in 1729555538 [10:25:38]opened+sec_in_day 1729641938 [10:25:38]quantity*price = 100015 [10:25:38]sum+1 = 100017 [10:25:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 100 22.10.2024 10:25 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 228136 ФПД: 238841327849485 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102542&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228136&fm=238841327849485&tin=02508201610067®Number=0000000000091685&sum=100016 [10:25:40]StoreToDocumentArchive [10:25:40]shift 535 fd 228136 [10:25:40]save to /storage/0535/doc_00228136 [10:25:40]save last doc name /storage/0535/doc_00228136 to /storage/kkm_last_doc_name [10:25:40]save OK [10:25:40]Clear old archive folders... [10:25:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:25:40]tlvbuf is B6EEE3D0 [10:25:40]SAM_PROTO_ClearQueue [10:25:40]wFMCommunicate request_size=4 [10:25:40]MH_SAM_APDU [10:25:40]CAPDU: 80 09 00 00 [10:25:40]Write to MH i2c: E2 08 00 BB 1F 80 09 00 00 00 00 00 00 4C [10:25:40]Write i2c OK [10:25:40]MH_I2C_Read... [10:25:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:40]Read from MH i2c: E2 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: E2 03 00 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: E2 03 00 BB 1F 00 90 00 4E [10:25:40]RAPDU: 90 00 [10:25:40]wFMCommunicate OK [10:25:40]SAM_PROTO_ClearQueue done [10:25:40]KKMCreateOFDPacket [10:25:40]OFDProtocolAddRootSTLVToBuf [10:25:40]FM_MakeSignedData [10:25:40]FM_MakeSignedData [10:25:40]SAM_PROTO_SignData [10:25:40]wFMCommunicate request_size=4 [10:25:40]MH_SAM_APDU [10:25:40]CAPDU: 80 0D 01 02 [10:25:40]Write to MH i2c: E2 08 00 BC 1F 80 0D 01 02 00 00 00 00 54 [10:25:40]Write i2c OK [10:25:40]MH_I2C_Read... [10:25:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:40]Read from MH i2c: E2 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: E2 03 00 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: E2 03 00 BC 1F 00 90 00 4F [10:25:40]RAPDU: 90 00 [10:25:40]wFMCommunicate OK [10:25:40]wFMCommunicate request_size=255 [10:25:40]MH_SAM_APDU [10:25: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 64 00 00 00 F4 03 04 00 A6 7D 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 28 7B 03 00 35 04 06 00 D9 [10:25:40]Write to MH i2c: E2 02 01 BD 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 64 00 00 00 F4 03 04 00 A6 7D 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 28 7B 03 00 35 04 06 00 D9 00 00 A2 [10:25:40]Write i2c OK [10:25:40]MH_I2C_Read... [10:25:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:40]Read from MH i2c: E2 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: E2 03 00 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: E2 03 00 BD 1F 00 90 00 50 [10:25:40]RAPDU: 90 00 [10:25:40]wFMCommunicate OK [10:25:40]wFMCommunicate request_size=10 [10:25:40]MH_SAM_APDU [10:25:40]CAPDU: 80 0D 02 02 05 39 94 81 10 0D [10:25:40]Write to MH i2c: E2 0D 00 BE 1F 80 0D 02 02 05 00 39 94 81 10 0D 00 00 CC [10:25:40]Write i2c OK [10:25:40]MH_I2C_Read... [10:25:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:40]Read from MH i2c: E2 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: E2 03 00 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: E2 03 00 BE 1F 00 90 00 51 [10:25:40]RAPDU: 90 00 [10:25:40]wFMCommunicate OK [10:25:40]wFMCommunicate request_size=4 [10:25:40]MH_SAM_APDU [10:25:40]CAPDU: 80 0D 03 02 [10:25:40]Write to MH i2c: E2 08 00 BF 1F 80 0D 03 02 00 00 00 00 59 [10:25:40]Write i2c OK [10:25:40]MH_I2C_Read... [10:25:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:41]Read from MH i2c: E2 [10:25:41]MH_I2C_Read... [10:25:41]Read from MH i2c: E2 0B 00 [10:25:41]MH_I2C_Read... [10:25:41]Read from MH i2c: E2 0B 00 BF 1F 00 50 51 DC 22 AA 12 2D E3 90 00 C5 [10:25:41]RAPDU: 50 51 DC 22 AA 12 2D E3 90 00 [10:25:41]wFMCommunicate OK [10:25:41]SAM_PROTO_SignData done [10:25:41]FM_MakeSignedData done [10:25:41]CreateOFDProtocolMessage [10:25:41]wFMCommunicate request_size=4 [10:25:41]MH_SAM_APDU [10:25:41]CAPDU: 80 11 00 00 [10:25:41]Write to MH i2c: E2 08 00 C0 1F 80 11 00 00 00 00 00 00 59 [10:25:41]Write i2c OK [10:25:41]MH_I2C_Read... [10:25:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:41]Read from MH i2c: E2 [10:25:41]MH_I2C_Read... [10:25:41]Read from MH i2c: E2 17 00 [10:25:41]MH_I2C_Read... [10:25:41]Read from MH i2c: E2 17 00 C0 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B0 [10:25:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:25:41]wFMCommunicate OK [10:25:41]CreateOFDProtocolMessage done [10:25:41]OFDSenderStorePacket 228136 [10:25:41]StoreOFDPacket docnum=228136 [10:25:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 EE E4 07 01 15 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 64 00 00 00 F4 03 04 00 A6 7D 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 28 7B 03 00 35 04 06 00 D9 39 94 81 10 0D 50 51 DC 22 AA 12 2D E3 [10:25:41]CheckFolder [10:25:41]dirname=/storage/ofd_packets [10:25:41]CheckFolder done [10:25:41]ProducePacketName [10:25:41]name=ofd_packets/00228136 [10:25:41]NVStorageSaveData ofd_packets/00228136 [10:25:41]File name is /storage/ofd_packets/00228136 [10:25:41]Write 301 bytes [10:25:41]NVStorageSaveData done [10:25:41]OFDSenderStorePacket done [10:25:41]KKMCreateOFDPacket done [10:25:41]NVStorageSaveData kkm_last_timestamp [10:25:41]File name is /storage/kkm_last_timestamp [10:25:41]Write 4 bytes [10:25:41]NVStorageSaveData done [10:25:41]ExternCall_PrintAddStr [10:25:41]wPrintStart [10:25:41]Write to MH i2c: 01 00 00 C1 1F E0 [10:25:41]Write i2c OK [10:25:41]MH_I2C_Read... [10:25:41]Read from MH i2c: 01 [10:25:41]MH_I2C_Read... [10:25:41]Read from MH i2c: 01 07 00 [10:25:41]MH_I2C_Read... [10:25:41]Read from MH i2c: 01 07 00 C1 1F 00 00 00 00 00 FF 0F F5 [10:25:41]RasterBufferAndPrint [10:25:41]line Счет N : (1)1964498 [10:25:41]line ИНН: 02508201610067 [10:25:41]line Контрольно-Кассовый Чек [10:25:41]line ПРОДАЖА [10:25:41]line ТРК (МРК, ГНК) : 33 [10:25:41]line Товар: 2710124130 [10:25:41]line Аи-92-К-5 [10:25:41]line 14.950 * 66.90 [10:25:41]line = 1000.16 [10:25:41]line НДС 12% НСП 1% [10:25:41]line > о реализуемом товаре [10:25:41]line ИТОГО: 1000.16 [10:25:41]line НСП 1% : 8.85 [10:25:41]line НДС 12% : 106.21 [10:25:41]line Наличными: 0.00 [10:25:41]line Безнал.: 1000.16 [10:25:41]line Место: АЗС № 133 "Партнер Нефть" [10:25:41]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:25:41]line СНО: Общий режим [10:25:41]line Чек 100 22.10.2024 10:25 [10:25:41]line Смена: 535 ФФД: 1.0 [10:25:41]line ЗНМ: 0300000091 [10:25:41]line РНМ: 0000000000091685 [10:25:41]line Версия ККМ: 001 [10:25:41]line Платежная система: Mbank [10:25:41]line ФМ: 0000000000871839 [10:25:41]line ФД: 228136 [10:25:41]line ФПД: 238841327849485 [10:25:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102542&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228136&fm=238841327849485&tin=02508201610067®Number=0000000000091685&sum=100016 [10:25:41]written 0, free lines is 4095 [10:25:41]OFD Sender: Processing packet 228136 [packets to send 38, broken 37] [10:25:41]ProducePacketName [10:25:41]name=ofd_packets/00228136 [10:25:41]OFD Sender: To server: pG, [10:25:41]CommunicateWithHost lk.salyk.kg:30040 [10:25:41]ConnectInit lk.salyk.kg [10:25:41]Connected sock=10 [10:25:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 EE E4 07 01 15 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 64 00 00 00 F4 03 04 00 A6 7D 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 28 7B 03 00 35 04 06 00 D9 39 94 81 10 0D 50 51 DC 22 AA 12 2D E3 [10:25:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 75 61 47 00 60 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 28 7B 03 00 F4 03 04 00 9F 28 17 67 B6 04 01 00 00 D2 C1 69 B6 9D 98 99 2A [10:25:41]CommunicateWithHost err = 0 [10:25:41]CheckOFDResponse [10:25:41]1017 (14) - 77093643461234 [10:25:41]1041 (16) - 0000000000871839 [10:25:41]1040 (4) - 228136 [10:25:41]1012 (4) - 22.10.2024 04:22 [10:25:41]1206 (1) - 0 [10:25:41]OFD Sender: Remove packet 228136 [10:25:41]ProducePacketName [10:25:41]name=ofd_packets/00228136 [10:25:41]NVStorageDeleteData [10:25:41]Write to MH i2c: 01 00 00 E9 1F 08 [10:25:41]Write i2c OK [10:25:41]MH_I2C_Read... [10:25:41]Read from MH i2c: 01 [10:25:41]MH_I2C_Read... [10:25:41]Read from MH i2c: 01 07 00 [10:25:41]MH_I2C_Read... [10:25:41]Read from MH i2c: 01 07 00 E9 1F 00 00 00 00 00 1A 0D 36 [10:25:41]RasterBufferAndPrint [10:25:41]line [10:25:41]line [10:25:41]line [10:25:41]line [10:25:41]line [10:25:41]written 0, free lines is 3370 [10:25:41]MH_Cut [10:25:41]Write to MH i2c: D1 01 00 F0 1F 01 E1 [10:25:41]Write i2c OK [10:25:41]MH_I2C_Read... [10:25:41]Read from MH i2c: D1 [10:25:41]MH_I2C_Read... [10:25:41]Read from MH i2c: D1 01 00 [10:25:41]MH_I2C_Read... [10:25:41]Read from MH i2c: D1 01 00 F0 1F 00 E0 [10:25:41]Write to MH i2c: 01 00 00 F1 1F 10 [10:25:41]Write i2c OK [10:25:41]MH_I2C_Read... [10:25:42]OFD Sender: No OFD packet to send [10:25:42]*** Cut start [10:25:42]*** Partial cut [10:25:42]*** CUTSNS_PIN = 1 [10:25:42]*** CUTSNS_PIN = 0 [10:25:42]*** Brake cut motor [10:25:43]Read from MH i2c: 01 [10:25:43]MH_I2C_Read... [10:25:43]*** Stop cut motor [10:25:43]*** Cut end [10:25:43]Read from MH i2c: 01 07 00 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: 01 07 00 F1 1F 00 00 00 00 00 FF 0F 25 [10:25:43]process_action close_receipt done [10:25:43]requested_data is exist [10:25:43]produce_requested_data [10:25:43]requested_item fm.sn is exist - process it [10:25:43]wFMCommunicate request_size=4 [10:25:43]MH_SAM_APDU [10:25:43]CAPDU: 80 11 00 00 [10:25:43]Write to MH i2c: E2 08 00 F2 1F 80 11 00 00 00 00 00 00 8B [10:25:43]Write i2c OK [10:25:43]MH_I2C_Read... [10:25:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:43]Read from MH i2c: E2 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: E2 17 00 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: E2 17 00 F2 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E2 [10:25:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:25:43]wFMCommunicate OK [10:25:43]requested_item fd.num is exist - process it [10:25:43]SAM_PROTO_GetFieldsCounters [10:25:43]wFMCommunicate request_size=4 [10:25:43]MH_SAM_APDU [10:25:43]CAPDU: 80 13 00 00 [10:25:43]Write to MH i2c: E2 08 00 F3 1F 80 13 00 00 00 00 00 00 8E [10:25:43]Write i2c OK [10:25:43]MH_I2C_Read... [10:25:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:43]Read from MH i2c: E2 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: E2 62 00 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: E2 62 00 F3 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 28 7B 03 00 0E 04 04 00 17 02 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 A2 [10:25:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 28 7B 03 00 0E 04 04 00 17 02 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:25:43]wFMCommunicate OK [10:25:43]SAM_PROTO_GetFieldsCounters done [10:25:43]requested_item shift.num is exist - process it [10:25:43]requested_item shift.opened is exist - process it [10:25:43]req_shift_opened [10:25:43]FM_GetShiftState [10:25:43]SAM_PROTO_GetShiftState [10:25:43]wFMCommunicate request_size=4 [10:25:43]MH_SAM_APDU [10:25:43]CAPDU: 80 13 01 00 [10:25:43]Write to MH i2c: E2 08 00 F4 1F 80 13 01 00 00 00 00 00 90 [10:25:43]Write i2c OK [10:25:43]MH_I2C_Read... [10:25:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:43]Read from MH i2c: E2 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: E2 0E 00 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: E2 0E 00 F4 1F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 57 [10:25:43]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:25:43]wFMCommunicate OK [10:25:43]SAM_PROTO_GetShiftState done [10:25:43]FM_GetShiftState done [10:25:43]req_shift_opened done [10:25:43]requested_item shift.open_date is exist - process it [10:25:43]req_shift_open_date [10:25:43]req_shift_open_date done [10:25:43]produce_requested_data done [10:25:43]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228136,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [10:25:43]process_action_free close_receipt [10:25:43]json_value_free [10:25:43]json_value_free done [10:25:43]process_json_proto returns [10:25:43]Send response to host [10:25:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228136,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [10:25:43]free response buf [10:25:43]execute_script done [10:25:43]execute_script returns [10:25:43]free content buf [10:25:43]Sock 9.Close socket [10:25:43]Sock 9.Thread stoped [10:25:44]int [10:25:44]Write to MH i2c: 01 00 00 F5 1F 14 [10:25:44]*** FLAG_PRN_PAP1 set [10:25:44]Write i2c OK [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: 01 [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: 01 07 00 [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: 01 07 00 F5 1F 00 01 00 00 00 FF 0F 2A [10:25:44]state=0 [10:25:44]No paper [10:25:44]int line is 0 - check status [10:25:44]Write to MH i2c: 01 00 00 F6 1F 15 [10:25:44]*** FLAG_PRN_PAP2 set [10:25:44]*** FLAG_PRN_PAP2 reset [10:25:44]Write i2c OK [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: 01 [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: 01 07 00 [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: 01 07 00 F6 1F 00 01 00 00 00 FF 0F 2B [10:25:44]state=0 [10:25:44]No paper [10:25:44]int [10:25:44]Write to MH i2c: 01 00 00 F7 1F 16 [10:25:44]Write i2c OK [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: 01 [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: 01 07 00 [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: 01 07 00 F7 1F 00 01 00 00 00 FF 0F 2C [10:25:44]state=0 [10:25:44]No paper [10:25:45]int [10:25:45]Write to MH i2c: 01 00 00 F8 1F 17 [10:25:45]*** FLAG_PRN_PAP2 set [10:25:45]Write i2c OK [10:25:45]MH_I2C_Read... [10:25:45]Read from MH i2c: 01 [10:25:45]MH_I2C_Read... [10:25:45]Read from MH i2c: 01 07 00 [10:25:45]MH_I2C_Read... [10:25:45]Read from MH i2c: 01 07 00 F8 1F 00 03 00 00 00 FF 0F 2F [10:25:45]state=0 [10:25:45]No paper [10:25:45]Cover opened [10:25:45]int [10:25:45]Write to MH i2c: 01 00 00 F9 1F 18 [10:25:45]*** FLAG_PRN_PAP2 reset [10:25:45]Write i2c OK [10:25:45]MH_I2C_Read... [10:25:45]Read from MH i2c: 01 [10:25:45]MH_I2C_Read... [10:25:45]Read from MH i2c: 01 07 00 [10:25:45]MH_I2C_Read... [10:25:45]Read from MH i2c: 01 07 00 F9 1F 00 01 00 00 00 FF 0F 2E [10:25:45]state=3 [10:25:45]No paper [10:25:45]Cover closed [10:25:46]int [10:25:46]Write to MH i2c: 01 00 00 FA 1F 19 [10:25:46]*** FLAG_PRN_PAP2 set [10:25:46]Write i2c OK [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: 01 [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: 01 07 00 [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: 01 07 00 FA 1F 00 03 00 00 00 FF 0F 31 [10:25:46]state=0 [10:25:46]No paper [10:25:46]Cover opened [10:25:46]int [10:25:46]Write to MH i2c: 01 00 00 FB 1F 1A [10:25:46]*** FLAG_PRN_PAP2 reset [10:25:46]Write i2c OK [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: 01 [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: 01 07 00 [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: 01 07 00 FB 1F 00 01 00 00 00 FF 0F 30 [10:25:46]state=3 [10:25:46]No paper [10:25:46]Cover closed [10:25:46]int [10:25:46]Write to MH i2c: 01 00 00 FC 1F 1B [10:25:46]*** FLAG_PRN_PAP2 set [10:25:46]Write i2c OK [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: 01 [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: 01 07 00 [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: 01 07 00 FC 1F 00 03 00 00 00 FF 0F 33 [10:25:46]state=0 [10:25:46]No paper [10:25:46]Cover opened [10:25:47]OFD Sender: No OFD packet to send [10:25:47]int [10:25:47]Write to MH i2c: 01 00 00 FD 1F 1C [10:25:47]*** FLAG_PRN_PAP2 reset [10:25:47]Write i2c OK [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: 01 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: 01 07 00 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: 01 07 00 FD 1F 00 01 00 00 00 FF 0F 32 [10:25:47]state=3 [10:25:47]No paper [10:25:47]Cover closed [10:25:47]int [10:25:47]Write to MH i2c: 01 00 00 FE 1F 1D [10:25:47]*** FLAG_PRN_PAP2 set [10:25:47]Write i2c OK [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: 01 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: 01 07 00 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: 01 07 00 FE 1F 00 03 00 00 00 FF 0F 35 [10:25:47]state=0 [10:25:47]No paper [10:25:47]Cover opened [10:25:47]int [10:25:47]Write to MH i2c: 01 00 00 FF 1F 1E [10:25:47]*** FLAG_PRN_PAP2 reset [10:25:47]Write i2c OK [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: 01 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: 01 07 00 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: 01 07 00 FF 1F 00 01 00 00 00 FF 0F 34 [10:25:47]state=3 [10:25:47]No paper [10:25:47]Cover closed [10:25:52]OFD Sender: No OFD packet to send [10:25:55]int [10:25:55]Write to MH i2c: 01 00 00 00 20 20 [10:25:55]*** FLAG_PRN_PAP2 set [10:25:55]Write i2c OK [10:25:55]MH_I2C_Read... [10:25:55]Read from MH i2c: 01 [10:25:55]MH_I2C_Read... [10:25:55]Read from MH i2c: 01 07 00 [10:25:55]MH_I2C_Read... [10:25:55]Read from MH i2c: 01 07 00 00 20 00 03 00 00 00 FF 0F 38 [10:25:55]state=0 [10:25:55]No paper [10:25:55]Cover opened [10:25:55]int [10:25:55]Write to MH i2c: 01 00 00 01 20 21 [10:25:55]*** FLAG_PRN_PAP2 reset [10:25:55]Write i2c OK [10:25:55]MH_I2C_Read... [10:25:55]Read from MH i2c: 01 [10:25:55]MH_I2C_Read... [10:25:55]Read from MH i2c: 01 07 00 [10:25:55]MH_I2C_Read... [10:25:55]Read from MH i2c: 01 07 00 01 20 00 01 00 00 00 FF 0F 37 [10:25:55]state=3 [10:25:55]No paper [10:25:55]Cover closed [10:25:55]int [10:25:55]Write to MH i2c: 01 00 00 02 20 22 [10:25:55]*** FLAG_PRN_PAP2 set [10:25:55]Write i2c OK [10:25:55]MH_I2C_Read... [10:25:55]Read from MH i2c: 01 [10:25:55]MH_I2C_Read... [10:25:55]Read from MH i2c: 01 07 00 [10:25:55]MH_I2C_Read... [10:25:55]Read from MH i2c: 01 07 00 02 20 00 03 00 00 00 FF 0F 3A [10:25:55]state=0 [10:25:55]No paper [10:25:55]Cover opened [10:25:56]int [10:25:56]Write to MH i2c: 01 00 00 03 20 23 [10:25:56]*** FLAG_PRN_PAP2 reset [10:25:56]Write i2c OK [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: 01 [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: 01 07 00 [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: 01 07 00 03 20 00 01 00 00 00 FF 0F 39 [10:25:56]state=3 [10:25:56]No paper [10:25:56]Cover closed [10:25:56]int [10:25:56]Write to MH i2c: 01 00 00 04 20 24 [10:25:56]*** FLAG_PRN_PAP2 set [10:25:56]Write i2c OK [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: 01 [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: 01 07 00 [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: 01 07 00 04 20 00 03 00 00 00 FF 0F 3C [10:25:56]state=0 [10:25:56]No paper [10:25:56]Cover opened [10:25:56]int [10:25:56]Write to MH i2c: 01 00 00 05 20 25 [10:25:56]*** FLAG_PRN_PAP1 reset [10:25:56]*** FLAG_PRN_PAP2 reset [10:25:56]Write i2c OK [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: 01 [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: 01 07 00 [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: 01 07 00 05 20 00 00 00 00 00 FF 0F 3A [10:25:56]state=3 [10:25:56]Cover closed [10:25:57]OFD Sender: No OFD packet to send [10:26:02]OFD Sender: No OFD packet to send [10:26:07]OFD Sender: No OFD packet to send [10:26:12]OFD Sender: No OFD packet to send [10:26:17]OFD Sender: No OFD packet to send [10:26:22]OFD Sender: No OFD packet to send [10:26:27]OFD Sender: No OFD packet to send [10:26:32]OFD Sender: No OFD packet to send [10:26:37]OFD Sender: No OFD packet to send [10:26:37]recv_with_timeout no data received [10:26:42]OFD Sender: No OFD packet to send [10:26:42]accept exits with 7 [10:26:42]New connection [10:26:42]New thread 3066994020 created [10:26:42]Thread 3067137380 joined [10:26:42]Waiting for new connection... [10:26:42] Sock 7.Parse request [10:26:42]Sock 7.Check first char [10:26:42]Sock 7.First char is OK [10:26:42]request: POST /json_proto HTTP/1.0 [10:26:42]Method: POST [10:26:42]URL: /json_proto [10:26:42]Method is POST - this is cgi request [10:26:42]url: /json_proto [10:26:42]query_string will be loaded in cgi processing [10:26:42]execute_cgi json_proto POST (null) [10:26:42]execute_cgi path=json_proto method=POST [10:26:42]POST find Content-Length [10:26:42]Host: 172.17.44.195:8080 [10:26:42]Content-Length: 683 [10:26:42]Content-Type: application/json [10:26:42] [10:26:42]POST finish read [10:26:42]Found Content-Length = 683 [10:26:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964500", "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" : 66.90, "quantity" : 20.930, "sum" : 1400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:42]execute_script... [10:26: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)1964500", "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" : 66.90, "quantity" : 20.930, "sum" : 1400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:42]POST & json_proto [10:26:42]process_json_proto [10:26:42]json parsed OK: [10:26:42]protocol is kg_v1.0 [10:26:42]action value=close_receipt [10:26:42]process_action close_receipt [10:26:42]cmd_close_receipt [10:26:42]MH_GetDate [10:26:42]Write to MH i2c: F0 00 00 06 20 15 [10:26:42]Write i2c OK [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: F0 [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: F0 09 00 [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: F0 09 00 06 20 00 E5 7D 17 67 82 C9 CF 66 7E [10:26:42]GetLastDocTimeStamp 1729592742 [10:26:42]current date 1729592805 [10:26:42]FM_GetShiftState [10:26:42]SAM_PROTO_GetShiftState [10:26:42]wFMCommunicate request_size=4 [10:26:42]MH_SAM_APDU [10:26:42]CAPDU: 80 13 01 00 [10:26:42]Write to MH i2c: E2 08 00 07 20 80 13 01 00 00 00 00 00 A4 [10:26:42]Write i2c OK [10:26:42]MH_I2C_Read... [10:26:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:42]Read from MH i2c: E2 [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: E2 0E 00 [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: E2 0E 00 07 20 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 6B [10:26:42]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:26:42]wFMCommunicate OK [10:26:42]SAM_PROTO_GetShiftState done [10:26:42]FM_GetShiftState done [10:26:42]opened in 1729555538 [10:26:42]opened+sec_in_day 1729641938 [10:26:42]quantity*price = 140021 [10:26:42]sum+1 = 140023 [10:26:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1400.00 Внесено: 4000.00 СДАЧА: 2600.00 НСП 1% : 12.39 НДС 12% : 148.70 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 101 22.10.2024 10:26 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228137 ФПД: 11586541730247 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102646&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228137&fm=11586541730247&tin=02508201610067®Number=0000000000091685&sum=140000 [10:26:43]StoreToDocumentArchive [10:26:43]shift 535 fd 228137 [10:26:43]save to /storage/0535/doc_00228137 [10:26:43]save last doc name /storage/0535/doc_00228137 to /storage/kkm_last_doc_name [10:26:43]save OK [10:26:43]Clear old archive folders... [10:26:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:26:43]tlvbuf is B6F85740 [10:26:43]SAM_PROTO_ClearQueue [10:26:43]wFMCommunicate request_size=4 [10:26:43]MH_SAM_APDU [10:26:43]CAPDU: 80 09 00 00 [10:26:43]Write to MH i2c: E2 08 00 14 20 80 09 00 00 00 00 00 00 A6 [10:26:43]Write i2c OK [10:26:43]MH_I2C_Read... [10:26:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:43]Read from MH i2c: E2 [10:26:43]MH_I2C_Read... [10:26:43]Read from MH i2c: E2 03 00 [10:26:43]MH_I2C_Read... [10:26:43]Read from MH i2c: E2 03 00 14 20 00 90 00 A8 [10:26:43]RAPDU: 90 00 [10:26:43]wFMCommunicate OK [10:26:43]SAM_PROTO_ClearQueue done [10:26:43]KKMCreateOFDPacket [10:26:43]OFDProtocolAddRootSTLVToBuf [10:26:43]FM_MakeSignedData [10:26:43]FM_MakeSignedData [10:26:43]SAM_PROTO_SignData [10:26:43]wFMCommunicate request_size=4 [10:26:43]MH_SAM_APDU [10:26:43]CAPDU: 80 0D 01 02 [10:26:43]Write to MH i2c: E2 08 00 15 20 80 0D 01 02 00 00 00 00 AE [10:26:43]Write i2c OK [10:26:43]MH_I2C_Read... [10:26:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:43]Read from MH i2c: E2 [10:26:43]MH_I2C_Read... [10:26:43]Read from MH i2c: E2 03 00 [10:26:43]MH_I2C_Read... [10:26:43]Read from MH i2c: E2 03 00 15 20 00 90 00 A9 [10:26:43]RAPDU: 90 00 [10:26:43]wFMCommunicate OK [10:26:43]wFMCommunicate request_size=255 [10:26:43]MH_SAM_APDU [10:26: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 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 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 16 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 65 00 00 00 F4 03 04 00 E6 7D 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 29 7B 03 00 35 04 06 00 0A [10:26:43]Write to MH i2c: E2 02 01 16 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 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 16 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 65 00 00 00 F4 03 04 00 E6 7D 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 29 7B 03 00 35 04 06 00 0A 00 00 6C [10:26:43]Write i2c OK [10:26:43]MH_I2C_Read... [10:26:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:44]Read from MH i2c: E2 [10:26:44]MH_I2C_Read... [10:26:44]Read from MH i2c: E2 03 00 [10:26:44]MH_I2C_Read... [10:26:44]Read from MH i2c: E2 03 00 16 20 00 90 00 AA [10:26:44]RAPDU: 90 00 [10:26:44]wFMCommunicate OK [10:26:44]wFMCommunicate request_size=10 [10:26:44]MH_SAM_APDU [10:26:44]CAPDU: 80 0D 02 02 05 89 B3 B4 39 C7 [10:26:44]Write to MH i2c: E2 0D 00 17 20 80 0D 02 02 05 00 89 B3 B4 39 C7 00 00 AB [10:26:44]Write i2c OK [10:26:44]MH_I2C_Read... [10:26:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:44]Read from MH i2c: E2 [10:26:44]MH_I2C_Read... [10:26:44]Read from MH i2c: E2 03 00 [10:26:44]MH_I2C_Read... [10:26:44]Read from MH i2c: E2 03 00 17 20 00 90 00 AB [10:26:44]RAPDU: 90 00 [10:26:44]wFMCommunicate OK [10:26:44]wFMCommunicate request_size=4 [10:26:44]MH_SAM_APDU [10:26:44]CAPDU: 80 0D 03 02 [10:26:44]Write to MH i2c: E2 08 00 18 20 80 0D 03 02 00 00 00 00 B3 [10:26:44]Write i2c OK [10:26:44]MH_I2C_Read... [10:26:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:44]Read from MH i2c: E2 [10:26:44]MH_I2C_Read... [10:26:44]Read from MH i2c: E2 0B 00 [10:26:44]MH_I2C_Read... [10:26:44]Read from MH i2c: E2 0B 00 18 20 00 08 15 68 7E 3C 55 1C 99 90 00 FD [10:26:44]RAPDU: 08 15 68 7E 3C 55 1C 99 90 00 [10:26:44]wFMCommunicate OK [10:26:44]SAM_PROTO_SignData done [10:26:44]FM_MakeSignedData done [10:26:44]CreateOFDProtocolMessage [10:26:44]wFMCommunicate request_size=4 [10:26:44]MH_SAM_APDU [10:26:44]CAPDU: 80 11 00 00 [10:26:44]Write to MH i2c: E2 08 00 19 20 80 11 00 00 00 00 00 00 B3 [10:26:44]Write i2c OK [10:26:44]MH_I2C_Read... [10:26:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:44]Read from MH i2c: E2 [10:26:44]MH_I2C_Read... [10:26:44]Read from MH i2c: E2 17 00 [10:26:44]MH_I2C_Read... [10:26:44]Read from MH i2c: E2 17 00 19 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0A [10:26:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:26:44]wFMCommunicate OK [10:26:44]CreateOFDProtocolMessage done [10:26:44]OFDSenderStorePacket 228137 [10:26:44]StoreOFDPacket docnum=228137 [10:26:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 6E 58 07 01 EA C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 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 16 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 65 00 00 00 F4 03 04 00 E6 7D 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 29 7B 03 00 35 04 06 00 0A 89 B3 B4 39 C7 08 15 68 7E 3C 55 1C 99 [10:26:44]CheckFolder [10:26:44]dirname=/storage/ofd_packets [10:26:44]CheckFolder done [10:26:44]ProducePacketName [10:26:44]name=ofd_packets/00228137 [10:26:44]NVStorageSaveData ofd_packets/00228137 [10:26:44]File name is /storage/ofd_packets/00228137 [10:26:44]Write 301 bytes [10:26:44]NVStorageSaveData done [10:26:44]OFDSenderStorePacket done [10:26:44]KKMCreateOFDPacket done [10:26:44]NVStorageSaveData kkm_last_timestamp [10:26:44]File name is /storage/kkm_last_timestamp [10:26:44]Write 4 bytes [10:26:44]NVStorageSaveData done [10:26:44]ExternCall_PrintAddStr [10:26:44]wPrintStart [10:26:44]Write to MH i2c: 01 00 00 1A 20 3A [10:26:44]Write i2c OK [10:26:44]MH_I2C_Read... [10:26:44]Read from MH i2c: 01 [10:26:44]MH_I2C_Read... [10:26:44]Read from MH i2c: 01 07 00 [10:26:44]MH_I2C_Read... [10:26:44]Read from MH i2c: 01 07 00 1A 20 00 00 00 00 00 FF 0F 4F [10:26:44]RasterBufferAndPrint [10:26:44]line Счет N : (1)1964500 [10:26:44]line ИНН: 02508201610067 [10:26:44]line Контрольно-Кассовый Чек [10:26:44]line ПРОДАЖА [10:26:44]line ТРК (МРК, ГНК) : 53 [10:26:44]line Товар: 2710124130 [10:26:44]line Аи-92-К-5 [10:26:44]line 20.930 * 66.90 [10:26:44]line = 1400.22 [10:26:44]line НДС 12% НСП 1% [10:26:44]line > о реализуемом товаре [10:26:44]line ОКРУГЛЕНИЕ: -0.22 [10:26:44]line ИТОГО: 1400.00 [10:26:44]line Внесено: 4000.00 [10:26:44]line СДАЧА: 2600.00 [10:26:44]line НСП 1% : 12.39 [10:26:44]line НДС 12% : 148.70 [10:26:44]line Наличными: 1400.00 [10:26:44]line Безнал.: 0.00 [10:26:44]line Место: АЗС № 133 "Партнер Нефть" [10:26:44]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:26:44]line СНО: Общий режим [10:26:44]line Чек 101 22.10.2024 10:26 [10:26:44]line Смена: 535 ФФД: 1.0 [10:26:44]line ЗНМ: 0300000091 [10:26:44]line РНМ: 0000000000091685 [10:26:44]line Версия ККМ: 001 [10:26:44]line ФМ: 0000000000871839 [10:26:44]line ФД: 228137 [10:26:44]line ФПД: 11586541730247 [10:26:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102646&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228137&fm=11586541730247&tin=02508201610067®Number=0000000000091685&sum=140000 [10:26:44]OFD Sender: Processing packet 228137 [packets to send 38, broken 37] [10:26:44]ProducePacketName [10:26:44]name=ofd_packets/00228137 [10:26:44]OFD Sender: To server: pG, [10:26:44]CommunicateWithHost lk.salyk.kg:30040 [10:26:44]ConnectInit lk.salyk.kg [10:26:44]written 0, free lines is 4095 [10:26:44]Write to MH i2c: 01 00 00 44 20 64 [10:26:44]Write i2c OK [10:26:44]MH_I2C_Read... [10:26:44]Read from MH i2c: 01 [10:26:44]MH_I2C_Read... [10:26:44]Read from MH i2c: 01 07 00 [10:26:44]MH_I2C_Read... [10:26:44]Read from MH i2c: 01 07 00 44 20 00 00 00 00 00 D0 0C 47 [10:26:44]RasterBufferAndPrint [10:26:44]line [10:26:44]line [10:26:44]line [10:26:44]line [10:26:44]line [10:26:45]written 0, free lines is 3287 [10:26:45]MH_Cut [10:26:45]Write to MH i2c: D1 01 00 4B 20 01 3D [10:26:45]Write i2c OK [10:26:45]MH_I2C_Read... [10:26:45]Read from MH i2c: D1 [10:26:45]MH_I2C_Read... [10:26:45]Read from MH i2c: D1 01 00 [10:26:45]MH_I2C_Read... [10:26:45]Read from MH i2c: D1 01 00 4B 20 00 3C [10:26:45]Write to MH i2c: 01 00 00 4C 20 6C [10:26:45]Write i2c OK [10:26:45]MH_I2C_Read... [10:26:45]*** Cut start [10:26:45]*** Partial cut [10:26:45]*** CUTSNS_PIN = 1 [10:26:45]*** CUTSNS_PIN = 0 [10:26:46]*** Brake cut motor [10:26:46]Read from MH i2c: 01 [10:26:46]MH_I2C_Read... [10:26:46]*** Stop cut motor [10:26:46]*** Cut end [10:26:46]Read from MH i2c: 01 07 00 [10:26:46]MH_I2C_Read... [10:26:46]Read from MH i2c: 01 07 00 4C 20 00 00 00 00 00 FF 0F 81 [10:26:46]process_action close_receipt done [10:26:46]requested_data is exist [10:26:46]produce_requested_data [10:26:46]requested_item fm.sn is exist - process it [10:26:46]wFMCommunicate request_size=4 [10:26:46]MH_SAM_APDU [10:26:46]CAPDU: 80 11 00 00 [10:26:46]Write to MH i2c: E2 08 00 4D 20 80 11 00 00 00 00 00 00 E7 [10:26:46]Write i2c OK [10:26:46]MH_I2C_Read... [10:26:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:46]Read from MH i2c: E2 [10:26:46]MH_I2C_Read... [10:26:46]Read from MH i2c: E2 17 00 [10:26:46]MH_I2C_Read... [10:26:46]Read from MH i2c: E2 17 00 4D 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 3E [10:26:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:26:46]wFMCommunicate OK [10:26:46]requested_item fd.num is exist - process it [10:26:46]SAM_PROTO_GetFieldsCounters [10:26:46]wFMCommunicate request_size=4 [10:26:46]MH_SAM_APDU [10:26:46]CAPDU: 80 13 00 00 [10:26:46]Write to MH i2c: E2 08 00 4E 20 80 13 00 00 00 00 00 00 EA [10:26:46]Write i2c OK [10:26:46]MH_I2C_Read... [10:26:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:46]Read from MH i2c: E2 [10:26:46]MH_I2C_Read... [10:26:46]Read from MH i2c: E2 62 00 [10:26:46]MH_I2C_Read... [10:26:46]Read from MH i2c: E2 62 00 4E 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 29 7B 03 00 0E 04 04 00 17 02 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 02 [10:26:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 29 7B 03 00 0E 04 04 00 17 02 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:26:46]wFMCommunicate OK [10:26:46]SAM_PROTO_GetFieldsCounters done [10:26:46]requested_item shift.num is exist - process it [10:26:46]requested_item shift.opened is exist - process it [10:26:46]req_shift_opened [10:26:46]FM_GetShiftState [10:26:46]SAM_PROTO_GetShiftState [10:26:46]wFMCommunicate request_size=4 [10:26:46]MH_SAM_APDU [10:26:46]CAPDU: 80 13 01 00 [10:26:46]Write to MH i2c: E2 08 00 4F 20 80 13 01 00 00 00 00 00 EC [10:26:46]Write i2c OK [10:26:46]MH_I2C_Read... [10:26:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:46]Read from MH i2c: E2 [10:26:46]MH_I2C_Read... [10:26:46]Read from MH i2c: E2 0E 00 [10:26:46]MH_I2C_Read... [10:26:46]Read from MH i2c: E2 0E 00 4F 20 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 B3 [10:26:46]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:26:46]wFMCommunicate OK [10:26:46]SAM_PROTO_GetShiftState done [10:26:46]FM_GetShiftState done [10:26:46]req_shift_opened done [10:26:46]requested_item shift.open_date is exist - process it [10:26:46]req_shift_open_date [10:26:46]req_shift_open_date done [10:26:46]produce_requested_data done [10:26:46]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228137,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [10:26:46]process_action_free close_receipt [10:26:46]json_value_free [10:26:46]json_value_free done [10:26:46]process_json_proto returns [10:26:46]Send response to host [10:26:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228137,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [10:26:46]free response buf [10:26:46]execute_script done [10:26:46]execute_script returns [10:26:46]free content buf [10:26:46]Sock 7.Close socket [10:26:46]Sock 7.Thread stoped [10:26:49]ConnectInit Can't take IP for lk.salyk.kg [10:26:49]CommunicateWithHost connect error [10:26:49]CommunicateWithHost err = -1 [10:26:49]OFD Sender: Server communicate error [10:26:54]OFD Sender: Processing packet 228137 [packets to send 38, broken 37] [10:26:54]ProducePacketName [10:26:54]name=ofd_packets/00228137 [10:26:54]OFD Sender: To server: pG, [10:26:54]CommunicateWithHost lk.salyk.kg:30040 [10:26:54]ConnectInit lk.salyk.kg [10:26:59]ConnectInit Can't take IP for lk.salyk.kg [10:26:59]CommunicateWithHost connect error [10:26:59]CommunicateWithHost err = -1 [10:26:59]OFD Sender: Server communicate error [10:27:03]recv_with_timeout no data received [10:27:04]OFD Sender: Processing packet 228137 [packets to send 38, broken 37] [10:27:04]ProducePacketName [10:27:04]name=ofd_packets/00228137 [10:27:04]OFD Sender: To server: pG, [10:27:04]CommunicateWithHost lk.salyk.kg:30040 [10:27:04]ConnectInit lk.salyk.kg [10:27:09]ConnectInit Can't take IP for lk.salyk.kg [10:27:09]CommunicateWithHost connect error [10:27:09]CommunicateWithHost err = -1 [10:27:09]OFD Sender: Server communicate error [10:27:14]OFD Sender: Processing packet 228137 [packets to send 38, broken 37] [10:27:14]ProducePacketName [10:27:14]name=ofd_packets/00228137 [10:27:14]OFD Sender: To server: pG, [10:27:14]CommunicateWithHost lk.salyk.kg:30040 [10:27:14]ConnectInit lk.salyk.kg [10:27:19]ConnectInit Can't take IP for lk.salyk.kg [10:27:19]CommunicateWithHost connect error [10:27:19]CommunicateWithHost err = -1 [10:27:19]OFD Sender: Server communicate error [10:27:21]recv_with_timeout no data received [10:27:24]OFD Sender: Processing packet 228137 [packets to send 38, broken 37] [10:27:24]ProducePacketName [10:27:24]name=ofd_packets/00228137 [10:27:24]OFD Sender: To server: pG, [10:27:24]CommunicateWithHost lk.salyk.kg:30040 [10:27:24]ConnectInit lk.salyk.kg [10:27:29]ConnectInit Can't take IP for lk.salyk.kg [10:27:29]CommunicateWithHost connect error [10:27:29]CommunicateWithHost err = -1 [10:27:29]OFD Sender: Server communicate error [10:27:34]accept exits with 10 [10:27:34]New connection [10:27:34]New thread 3067137380 created [10:27:34]Thread 3066994020 joined [10:27:34]Waiting for new connection... [10:27:34] Sock 10.Parse request [10:27:34]Sock 10.Check first char [10:27:34]Sock 10.First char is OK [10:27:34]request: POST /json_proto HTTP/1.0 [10:27:34]Method: POST [10:27:34]URL: /json_proto [10:27:34]Method is POST - this is cgi request [10:27:34]url: /json_proto [10:27:34]query_string will be loaded in cgi processing [10:27:34]execute_cgi json_proto POST (null) [10:27:34]execute_cgi path=json_proto method=POST [10:27:34]POST find Content-Length [10:27:34]Host: 172.17.44.195:8080 [10:27:34]Content-Length: 664 [10:27:34]Content-Type: application/json [10:27:34] [10:27:34]POST finish read [10:27:34]Found Content-Length = 664 [10:27:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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:27:34]execute_script... [10:27: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)1964501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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:27:34]POST & json_proto [10:27:34]process_json_proto [10:27:34]json parsed OK: [10:27:34]protocol is kg_v1.0 [10:27:34]action value=close_receipt [10:27:34]process_action close_receipt [10:27:34]cmd_close_receipt [10:27:34]MH_GetDate [10:27:34]Write to MH i2c: F0 00 00 50 20 5F [10:27:34]Write i2c OK [10:27:34]MH_I2C_Read... [10:27:34]Read from MH i2c: F0 [10:27:34]MH_I2C_Read... [10:27:34]Read from MH i2c: F0 09 00 [10:27:34]MH_I2C_Read... [10:27:34]Read from MH i2c: F0 09 00 50 20 00 19 7E 17 67 82 C9 CF 66 FD [10:27:34]GetLastDocTimeStamp 1729592806 [10:27:34]current date 1729592857 [10:27:34]FM_GetShiftState [10:27:34]SAM_PROTO_GetShiftState [10:27:34]wFMCommunicate request_size=4 [10:27:34]MH_SAM_APDU [10:27:34]CAPDU: 80 13 01 00 [10:27:34]Write to MH i2c: E2 08 00 51 20 80 13 01 00 00 00 00 00 EE [10:27:34]Write i2c OK [10:27:34]MH_I2C_Read... [10:27:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:34]Read from MH i2c: E2 [10:27:34]MH_I2C_Read... [10:27:34]Read from MH i2c: E2 0E 00 [10:27:34]MH_I2C_Read... [10:27:34]Read from MH i2c: E2 0E 00 51 20 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 B5 [10:27:34]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:27:34]wFMCommunicate OK [10:27:34]SAM_PROTO_GetShiftState done [10:27:34]FM_GetShiftState done [10:27:34]opened in 1729555538 [10:27:34]opened+sec_in_day 1729641938 [10:27:34]quantity*price = 100000 [10:27:34]sum+1 = 100002 [10:27:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 102 22.10.2024 10:27 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228138 ФПД: 131169163296724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102737&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228138&fm=131169163296724&tin=02508201610067®Number=0000000000091685&sum=100000 [10:27:35]StoreToDocumentArchive [10:27:35]shift 535 fd 228138 [10:27:35]save to /storage/0535/doc_00228138 [10:27:35]save last doc name /storage/0535/doc_00228138 to /storage/kkm_last_doc_name [10:27:35]save OK [10:27:35]Clear old archive folders... [10:27:35]ProcessDocumentItem done err = 0, tmpTLVsize=244 [10:27:35]tlvbuf is 00A8B470 [10:27:35]SAM_PROTO_ClearQueue [10:27:35]wFMCommunicate request_size=4 [10:27:35]MH_SAM_APDU [10:27:35]CAPDU: 80 09 00 00 [10:27:35]Write to MH i2c: E2 08 00 5E 20 80 09 00 00 00 00 00 00 F0 [10:27:35]Write i2c OK [10:27:35]MH_I2C_Read... [10:27:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:35]Read from MH i2c: E2 [10:27:35]MH_I2C_Read... [10:27:35]OFD Sender: No OFD packet to send [10:27:35]Read from MH i2c: E2 03 00 [10:27:35]MH_I2C_Read... [10:27:35]Read from MH i2c: E2 03 00 5E 20 00 90 00 F2 [10:27:35]RAPDU: 90 00 [10:27:35]wFMCommunicate OK [10:27:35]SAM_PROTO_ClearQueue done [10:27:35]KKMCreateOFDPacket [10:27:35]OFDProtocolAddRootSTLVToBuf [10:27:35]FM_MakeSignedData [10:27:35]FM_MakeSignedData [10:27:35]SAM_PROTO_SignData [10:27:35]wFMCommunicate request_size=4 [10:27:35]MH_SAM_APDU [10:27:35]CAPDU: 80 0D 01 02 [10:27:35]Write to MH i2c: E2 08 00 5F 20 80 0D 01 02 00 00 00 00 F8 [10:27:35]Write i2c OK [10:27:35]MH_I2C_Read... [10:27:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:35]Read from MH i2c: E2 [10:27:35]MH_I2C_Read... [10:27:35]Read from MH i2c: E2 03 00 [10:27:35]MH_I2C_Read... [10:27:35]Read from MH i2c: E2 03 00 5F 20 00 90 00 F3 [10:27:35]RAPDU: 90 00 [10:27:35]wFMCommunicate OK [10:27:35]wFMCommunicate request_size=253 [10:27:35]MH_SAM_APDU [10:27:35]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 19 7E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2A 7B 03 00 35 04 06 00 77 4C 33 62 3F D4 [10:27:35]Write to MH i2c: E2 00 01 60 20 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 19 7E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2A 7B 03 00 35 04 06 00 77 4C 33 62 3F D4 00 00 19 [10:27:35]Write i2c OK [10:27:35]MH_I2C_Read... [10:27:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:35]Read from MH i2c: E2 [10:27:35]MH_I2C_Read... [10:27:35]Read from MH i2c: E2 03 00 [10:27:35]MH_I2C_Read... [10:27:35]Read from MH i2c: E2 03 00 60 20 00 90 00 F4 [10:27:35]RAPDU: 90 00 [10:27:35]wFMCommunicate OK [10:27:35]wFMCommunicate request_size=4 [10:27:35]MH_SAM_APDU [10:27:35]CAPDU: 80 0D 03 02 [10:27:35]Write to MH i2c: E2 08 00 61 20 80 0D 03 02 00 00 00 00 FC [10:27:35]Write i2c OK [10:27:35]MH_I2C_Read... [10:27:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:35]Read from MH i2c: E2 [10:27:35]MH_I2C_Read... [10:27:35]Read from MH i2c: E2 0B 00 [10:27:35]MH_I2C_Read... [10:27:35]Read from MH i2c: E2 0B 00 61 20 00 20 8A 53 8E E1 68 17 89 90 00 71 [10:27:35]RAPDU: 20 8A 53 8E E1 68 17 89 90 00 [10:27:35]wFMCommunicate OK [10:27:35]SAM_PROTO_SignData done [10:27:35]FM_MakeSignedData done [10:27:35]CreateOFDProtocolMessage [10:27:35]wFMCommunicate request_size=4 [10:27:35]MH_SAM_APDU [10:27:35]CAPDU: 80 11 00 00 [10:27:35]Write to MH i2c: E2 08 00 62 20 80 11 00 00 00 00 00 00 FC [10:27:35]Write i2c OK [10:27:35]MH_I2C_Read... [10:27:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:36]Read from MH i2c: E2 [10:27:36]MH_I2C_Read... [10:27:36]Read from MH i2c: E2 17 00 [10:27:36]MH_I2C_Read... [10:27:36]Read from MH i2c: E2 17 00 62 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 53 [10:27:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:27:36]wFMCommunicate OK [10:27:36]CreateOFDProtocolMessage done [10:27:36]OFDSenderStorePacket 228138 [10:27:36]StoreOFDPacket docnum=228138 [10:27:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 95 2A 00 01 18 F7 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 19 7E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2A 7B 03 00 35 04 06 00 77 4C 33 62 3F D4 20 8A 53 8E E1 68 17 89 [10:27:36]CheckFolder [10:27:36]dirname=/storage/ofd_packets [10:27:36]CheckFolder done [10:27:36]ProducePacketName [10:27:36]name=ofd_packets/00228138 [10:27:36]NVStorageSaveData ofd_packets/00228138 [10:27:36]File name is /storage/ofd_packets/00228138 [10:27:36]Write 294 bytes [10:27:36]NVStorageSaveData done [10:27:36]OFDSenderStorePacket done [10:27:36]KKMCreateOFDPacket done [10:27:36]NVStorageSaveData kkm_last_timestamp [10:27:36]File name is /storage/kkm_last_timestamp [10:27:36]Write 4 bytes [10:27:36]NVStorageSaveData done [10:27:36]ExternCall_PrintAddStr [10:27:36]wPrintStart [10:27:36]Write to MH i2c: 01 00 00 63 20 83 [10:27:36]Write i2c OK [10:27:36]MH_I2C_Read... [10:27:36]Read from MH i2c: 01 [10:27:36]MH_I2C_Read... [10:27:36]Read from MH i2c: 01 07 00 [10:27:36]MH_I2C_Read... [10:27:36]Read from MH i2c: 01 07 00 63 20 00 00 00 00 00 FF 0F 98 [10:27:36]RasterBufferAndPrint [10:27:36]line Счет N : (1)1964501 [10:27:36]line ИНН: 02508201610067 [10:27:36]line Контрольно-Кассовый Чек [10:27:36]line ПРОДАЖА [10:27:36]line ТРК (МРК, ГНК) : 42 [10:27:36]line Товар: 2710124130 [10:27:36]line SU-92 [10:27:36]line 14.620 * 68.40 [10:27:36]line = 1000.01 [10:27:36]line НДС 12% НСП 1% [10:27:36]line > о реализуемом товаре [10:27:36]line ОКРУГЛЕНИЕ: -0.01 [10:27:36]line ИТОГО: 1000.00 [10:27:36]line Внесено: 1000.00 [10:27:36]line СДАЧА: 0.00 [10:27:36]line НСП 1% : 8.85 [10:27:36]line НДС 12% : 106.20 [10:27:36]line Наличными: 1000.00 [10:27:36]line Безнал.: 0.00 [10:27:36]line Место: АЗС № 133 "Партнер Нефть" [10:27:36]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:27:36]line СНО: Общий режим [10:27:36]line Чек 102 22.10.2024 10:27 [10:27:36]line Смена: 535 ФФД: 1.0 [10:27:36]line ЗНМ: 0300000091 [10:27:36]line РНМ: 0000000000091685 [10:27:36]line Версия ККМ: 001 [10:27:36]line ФМ: 0000000000871839 [10:27:36]line ФД: 228138 [10:27:36]line ФПД: 131169163296724 [10:27:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102737&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228138&fm=131169163296724&tin=02508201610067®Number=0000000000091685&sum=100000 [10:27:36]OFD Sender: Processing packet 228138 [packets to send 38, broken 37] [10:27:36]ProducePacketName [10:27:36]name=ofd_packets/00228138 [10:27:36]OFD Sender: To server: pG, [10:27:36]CommunicateWithHost lk.salyk.kg:30040 [10:27:36]ConnectInit lk.salyk.kg [10:27:36]written 0, free lines is 4095 [10:27:36]Connected sock=11 [10:27:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 95 2A 00 01 18 F7 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 19 7E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2A 7B 03 00 35 04 06 00 77 4C 33 62 3F D4 20 8A 53 8E E1 68 17 89 [10:27:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 E4 44 47 00 CF 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2A 7B 03 00 F4 03 04 00 12 29 17 67 B6 04 01 00 00 21 4A 88 AA 68 34 F4 58 [10:27:36]CommunicateWithHost err = 0 [10:27:36]CheckOFDResponse [10:27:36]1017 (14) - 77093643461234 [10:27:36]1041 (16) - 0000000000871839 [10:27:36]1040 (4) - 228138 [10:27:36]1012 (4) - 22.10.2024 04:24 [10:27:36]1206 (1) - 0 [10:27:36]OFD Sender: Remove packet 228138 [10:27:36]ProducePacketName [10:27:36]name=ofd_packets/00228138 [10:27:36]NVStorageDeleteData [10:27:36]Write to MH i2c: 01 00 00 8D 20 AD [10:27:36]Write i2c OK [10:27:36]MH_I2C_Read... [10:27:36]Read from MH i2c: 01 [10:27:36]MH_I2C_Read... [10:27:36]Read from MH i2c: 01 07 00 [10:27:36]MH_I2C_Read... [10:27:36]Read from MH i2c: 01 07 00 8D 20 00 00 00 00 00 D6 0C 96 [10:27:36]RasterBufferAndPrint [10:27:36]line [10:27:36]line [10:27:36]line [10:27:36]line [10:27:36]line [10:27:36]written 0, free lines is 3292 [10:27:36]MH_Cut [10:27:36]Write to MH i2c: D1 01 00 94 20 01 86 [10:27:36]Write i2c OK [10:27:36]MH_I2C_Read... [10:27:36]Read from MH i2c: D1 [10:27:36]MH_I2C_Read... [10:27:36]Read from MH i2c: D1 01 00 [10:27:36]MH_I2C_Read... [10:27:36]Read from MH i2c: D1 01 00 94 20 00 85 [10:27:36]Write to MH i2c: 01 00 00 95 20 B5 [10:27:36]Write i2c OK [10:27:36]MH_I2C_Read... [10:27:37]OFD Sender: No OFD packet to send [10:27:37]*** Cut start [10:27:37]*** Partial cut [10:27:37]*** CUTSNS_PIN = 1 [10:27:37]*** CUTSNS_PIN = 0 [10:27:37]*** Brake cut motor [10:27:38]Read from MH i2c: 01 [10:27:38]MH_I2C_Read... [10:27:38]*** Stop cut motor [10:27:38]*** Cut end [10:27:38]Read from MH i2c: 01 07 00 [10:27:38]MH_I2C_Read... [10:27:38]Read from MH i2c: 01 07 00 95 20 00 00 00 00 00 FF 0F CA [10:27:38]process_action close_receipt done [10:27:38]requested_data is exist [10:27:38]produce_requested_data [10:27:38]requested_item fm.sn is exist - process it [10:27:38]wFMCommunicate request_size=4 [10:27:38]MH_SAM_APDU [10:27:38]CAPDU: 80 11 00 00 [10:27:38]Write to MH i2c: E2 08 00 96 20 80 11 00 00 00 00 00 00 30 [10:27:38]Write i2c OK [10:27:38]MH_I2C_Read... [10:27:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:38]Read from MH i2c: E2 [10:27:38]MH_I2C_Read... [10:27:38]Read from MH i2c: E2 17 00 [10:27:38]MH_I2C_Read... [10:27:38]Read from MH i2c: E2 17 00 96 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 87 [10:27:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:27:38]wFMCommunicate OK [10:27:38]requested_item fd.num is exist - process it [10:27:38]SAM_PROTO_GetFieldsCounters [10:27:38]wFMCommunicate request_size=4 [10:27:38]MH_SAM_APDU [10:27:38]CAPDU: 80 13 00 00 [10:27:38]Write to MH i2c: E2 08 00 97 20 80 13 00 00 00 00 00 00 33 [10:27:38]Write i2c OK [10:27:38]MH_I2C_Read... [10:27:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:38]Read from MH i2c: E2 [10:27:38]MH_I2C_Read... [10:27:38]Read from MH i2c: E2 62 00 [10:27:38]MH_I2C_Read... [10:27:38]Read from MH i2c: E2 62 00 97 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2A 7B 03 00 0E 04 04 00 17 02 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 4F [10:27:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2A 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:27:38]wFMCommunicate OK [10:27:38]SAM_PROTO_GetFieldsCounters done [10:27:38]requested_item shift.num is exist - process it [10:27:38]requested_item shift.opened is exist - process it [10:27:38]req_shift_opened [10:27:38]FM_GetShiftState [10:27:38]SAM_PROTO_GetShiftState [10:27:38]wFMCommunicate request_size=4 [10:27:38]MH_SAM_APDU [10:27:38]CAPDU: 80 13 01 00 [10:27:38]Write to MH i2c: E2 08 00 98 20 80 13 01 00 00 00 00 00 35 [10:27:38]Write i2c OK [10:27:38]MH_I2C_Read... [10:27:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:38]Read from MH i2c: E2 [10:27:38]MH_I2C_Read... [10:27:38]Read from MH i2c: E2 0E 00 [10:27:38]MH_I2C_Read... [10:27:38]Read from MH i2c: E2 0E 00 98 20 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 FC [10:27:38]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:27:38]wFMCommunicate OK [10:27:38]SAM_PROTO_GetShiftState done [10:27:38]FM_GetShiftState done [10:27:38]req_shift_opened done [10:27:38]requested_item shift.open_date is exist - process it [10:27:38]req_shift_open_date [10:27:38]req_shift_open_date done [10:27:38]produce_requested_data done [10:27:38]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228138,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [10:27:38]process_action_free close_receipt [10:27:38]json_value_free [10:27:38]json_value_free done [10:27:38]process_json_proto returns [10:27:38]Send response to host [10:27:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228138,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [10:27:38]free response buf [10:27:38]execute_script done [10:27:38]execute_script returns [10:27:38]free content buf [10:27:38]Sock 10.Close socket [10:27:38]Sock 10.Thread stoped [10:27:42]OFD Sender: No OFD packet to send [10:27:45]accept exits with 7 [10:27:45]New connection [10:27:45]New thread 3066994020 created [10:27:45]Thread 3067137380 joined [10:27:45]Waiting for new connection... [10:27:45] Sock 7.Parse request [10:27:45]Sock 7.Check first char [10:27:45]Sock 7.First char is OK [10:27:45]request: POST /json_proto HTTP/1.0 [10:27:45]Method: POST [10:27:45]URL: /json_proto [10:27:45]Method is POST - this is cgi request [10:27:45]url: /json_proto [10:27:45]query_string will be loaded in cgi processing [10:27:45]execute_cgi json_proto POST (null) [10:27:45]execute_cgi path=json_proto method=POST [10:27:45]POST find Content-Length [10:27:45]Host: 172.17.44.195:8080 [10:27:45]Content-Length: 678 [10:27:45]Content-Type: application/json [10:27:45] [10:27:45]POST finish read [10:27:45]Found Content-Length = 678 [10:27:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:27:45]execute_script... [10:27: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)1964502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:27:45]POST & json_proto [10:27:45]process_json_proto [10:27:45]json parsed OK: [10:27:45]protocol is kg_v1.0 [10:27:45]action value=close_receipt [10:27:45]process_action close_receipt [10:27:45]cmd_close_receipt [10:27:45]MH_GetDate [10:27:45]Write to MH i2c: F0 00 00 99 20 A8 [10:27:45]Write i2c OK [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: F0 [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: F0 09 00 [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: F0 09 00 99 20 00 24 7E 17 67 82 C9 CF 66 51 [10:27:45]GetLastDocTimeStamp 1729592857 [10:27:45]current date 1729592868 [10:27:45]FM_GetShiftState [10:27:45]SAM_PROTO_GetShiftState [10:27:45]wFMCommunicate request_size=4 [10:27:45]MH_SAM_APDU [10:27:45]CAPDU: 80 13 01 00 [10:27:45]Write to MH i2c: E2 08 00 9A 20 80 13 01 00 00 00 00 00 37 [10:27:45]Write i2c OK [10:27:45]MH_I2C_Read... [10:27:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:45]Read from MH i2c: E2 [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: E2 0E 00 [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: E2 0E 00 9A 20 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 FE [10:27:45]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:27:45]wFMCommunicate OK [10:27:45]SAM_PROTO_GetShiftState done [10:27:45]FM_GetShiftState done [10:27:45]opened in 1729555538 [10:27:45]opened+sec_in_day 1729641938 [10:27:45]quantity*price = 50041 [10:27:45]sum+1 = 50042 [10:27:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 103 22.10.2024 10:27 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228139 ФПД: 80035921104184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102748&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228139&fm=80035921104184&tin=02508201610067®Number=0000000000091685&sum=50000 [10:27:46]StoreToDocumentArchive [10:27:46]shift 535 fd 228139 [10:27:46]save to /storage/0535/doc_00228139 [10:27:46]save last doc name /storage/0535/doc_00228139 to /storage/kkm_last_doc_name [10:27:46]save OK [10:27:46]Clear old archive folders... [10:27:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:27:46]tlvbuf is 008E30D0 [10:27:46]SAM_PROTO_ClearQueue [10:27:46]wFMCommunicate request_size=4 [10:27:46]MH_SAM_APDU [10:27:46]CAPDU: 80 09 00 00 [10:27:46]Write to MH i2c: E2 08 00 A7 20 80 09 00 00 00 00 00 00 39 [10:27:46]Write i2c OK [10:27:46]MH_I2C_Read... [10:27:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:46]Read from MH i2c: E2 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: E2 03 00 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: E2 03 00 A7 20 00 90 00 3B [10:27:46]RAPDU: 90 00 [10:27:46]wFMCommunicate OK [10:27:46]SAM_PROTO_ClearQueue done [10:27:46]KKMCreateOFDPacket [10:27:46]OFDProtocolAddRootSTLVToBuf [10:27:46]FM_MakeSignedData [10:27:46]FM_MakeSignedData [10:27:46]SAM_PROTO_SignData [10:27:46]wFMCommunicate request_size=4 [10:27:46]MH_SAM_APDU [10:27:46]CAPDU: 80 0D 01 02 [10:27:46]Write to MH i2c: E2 08 00 A8 20 80 0D 01 02 00 00 00 00 41 [10:27:46]Write i2c OK [10:27:46]MH_I2C_Read... [10:27:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:46]Read from MH i2c: E2 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: E2 03 00 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: E2 03 00 A8 20 00 90 00 3C [10:27:46]RAPDU: 90 00 [10:27:46]wFMCommunicate OK [10:27:46]wFMCommunicate request_size=255 [10:27:46]MH_SAM_APDU [10:27: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 24 7E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2B 7B 03 00 35 04 06 00 48 [10:27:46]Write to MH i2c: E2 02 01 A9 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 24 7E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2B 7B 03 00 35 04 06 00 48 00 00 69 [10:27:46]Write i2c OK [10:27:46]MH_I2C_Read... [10:27:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:46]Read from MH i2c: E2 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: E2 03 00 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: E2 03 00 A9 20 00 90 00 3D [10:27:46]RAPDU: 90 00 [10:27:46]wFMCommunicate OK [10:27:46]wFMCommunicate request_size=10 [10:27:46]MH_SAM_APDU [10:27:46]CAPDU: 80 0D 02 02 05 CA D0 A5 8D 38 [10:27:46]Write to MH i2c: E2 0D 00 AA 20 80 0D 02 02 05 00 CA D0 A5 8D 38 00 00 52 [10:27:46]Write i2c OK [10:27:46]MH_I2C_Read... [10:27:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:46]Read from MH i2c: E2 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: E2 03 00 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: E2 03 00 AA 20 00 90 00 3E [10:27:46]RAPDU: 90 00 [10:27:46]wFMCommunicate OK [10:27:46]wFMCommunicate request_size=4 [10:27:46]MH_SAM_APDU [10:27:46]CAPDU: 80 0D 03 02 [10:27:46]Write to MH i2c: E2 08 00 AB 20 80 0D 03 02 00 00 00 00 46 [10:27:46]Write i2c OK [10:27:46]MH_I2C_Read... [10:27:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:46]Read from MH i2c: E2 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: E2 0B 00 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: E2 0B 00 AB 20 00 05 32 61 F4 B2 43 9D 02 90 00 67 [10:27:46]RAPDU: 05 32 61 F4 B2 43 9D 02 90 00 [10:27:46]wFMCommunicate OK [10:27:46]SAM_PROTO_SignData done [10:27:46]FM_MakeSignedData done [10:27:46]CreateOFDProtocolMessage [10:27:46]wFMCommunicate request_size=4 [10:27:46]MH_SAM_APDU [10:27:46]CAPDU: 80 11 00 00 [10:27:46]Write to MH i2c: E2 08 00 AC 20 80 11 00 00 00 00 00 00 46 [10:27:46]Write i2c OK [10:27:46]MH_I2C_Read... [10:27:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:46]Read from MH i2c: E2 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: E2 17 00 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: E2 17 00 AC 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9D [10:27:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:27:46]wFMCommunicate OK [10:27:46]CreateOFDProtocolMessage done [10:27:46]OFDSenderStorePacket 228139 [10:27:46]StoreOFDPacket docnum=228139 [10:27:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 54 98 07 01 1F B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 24 7E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2B 7B 03 00 35 04 06 00 48 CA D0 A5 8D 38 05 32 61 F4 B2 43 9D 02 [10:27:46]CheckFolder [10:27:46]dirname=/storage/ofd_packets [10:27:46]CheckFolder done [10:27:46]ProducePacketName [10:27:46]name=ofd_packets/00228139 [10:27:46]NVStorageSaveData ofd_packets/00228139 [10:27:46]File name is /storage/ofd_packets/00228139 [10:27:46]Write 301 bytes [10:27:46]NVStorageSaveData done [10:27:46]OFDSenderStorePacket done [10:27:46]KKMCreateOFDPacket done [10:27:46]NVStorageSaveData kkm_last_timestamp [10:27:46]File name is /storage/kkm_last_timestamp [10:27:46]Write 4 bytes [10:27:46]NVStorageSaveData done [10:27:46]ExternCall_PrintAddStr [10:27:46]wPrintStart [10:27:46]Write to MH i2c: 01 00 00 AD 20 CD [10:27:46]Write i2c OK [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: 01 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: 01 07 00 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: 01 07 00 AD 20 00 00 00 00 00 FF 0F E2 [10:27:46]RasterBufferAndPrint [10:27:46]line Счет N : (1)1964502 [10:27:46]line ИНН: 02508201610067 [10:27:46]line Контрольно-Кассовый Чек [10:27:46]line ПРОДАЖА [10:27:46]line ТРК (МРК, ГНК) : 33 [10:27:46]line Товар: 2710124130 [10:27:46]line Аи-92-К-5 [10:27:46]line 7.480 * 66.90 [10:27:46]line = 500.41 [10:27:46]line НДС 12% НСП 1% [10:27:46]line > о реализуемом товаре [10:27:46]line ОКРУГЛЕНИЕ: -0.41 [10:27:46]line ИТОГО: 500.00 [10:27:46]line Внесено: 500.00 [10:27:46]line СДАЧА: 0.00 [10:27:46]line НСП 1% : 4.43 [10:27:46]line НДС 12% : 53.14 [10:27:46]line Наличными: 500.00 [10:27:46]line Безнал.: 0.00 [10:27:46]line Место: АЗС № 133 "Партнер Нефть" [10:27:46]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:27:46]line СНО: Общий режим [10:27:46]line Чек 103 22.10.2024 10:27 [10:27:46]line Смена: 535 ФФД: 1.0 [10:27:46]line ЗНМ: 0300000091 [10:27:46]line РНМ: 0000000000091685 [10:27:46]line Версия ККМ: 001 [10:27:46]line ФМ: 0000000000871839 [10:27:46]line ФД: 228139 [10:27:46]line ФПД: 80035921104184 [10:27:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102748&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228139&fm=80035921104184&tin=02508201610067®Number=0000000000091685&sum=50000 [10:27:46]written 0, free lines is 4095 [10:27:46]OFD Sender: Processing packet 228139 [packets to send 38, broken 37] [10:27:46]ProducePacketName [10:27:46]name=ofd_packets/00228139 [10:27:46]OFD Sender: To server: pG, [10:27:46]CommunicateWithHost lk.salyk.kg:30040 [10:27:46]ConnectInit lk.salyk.kg [10:27:47]Write to MH i2c: 01 00 00 D7 20 F7 [10:27:47]Write i2c OK [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: 01 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: 01 07 00 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: 01 07 00 D7 20 00 00 00 00 00 D3 0C DD [10:27:47]RasterBufferAndPrint [10:27:47]line [10:27:47]line [10:27:47]line [10:27:47]line [10:27:47]line [10:27:47]written 0, free lines is 3292 [10:27:47]MH_Cut [10:27:47]Write to MH i2c: D1 01 00 DE 20 01 D0 [10:27:47]Write i2c OK [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: D1 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: D1 01 00 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: D1 01 00 DE 20 00 CF [10:27:47]Write to MH i2c: 01 00 00 DF 20 FF [10:27:47]Write i2c OK [10:27:47]MH_I2C_Read... [10:27:47]Connected sock=11 [10:27:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 54 98 07 01 1F B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 24 7E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2B 7B 03 00 35 04 06 00 48 CA D0 A5 8D 38 05 32 61 F4 B2 43 9D 02 [10:27:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 0E E6 47 00 6E E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2B 7B 03 00 F4 03 04 00 1D 29 17 67 B6 04 01 00 00 1D CB BA E5 2F 52 41 39 [10:27:47]CommunicateWithHost err = 0 [10:27:47]CheckOFDResponse [10:27:47]1017 (14) - 77093643461234 [10:27:47]1041 (16) - 0000000000871839 [10:27:47]1040 (4) - 228139 [10:27:47]1012 (4) - 22.10.2024 04:25 [10:27:47]1206 (1) - 0 [10:27:47]OFD Sender: Remove packet 228139 [10:27:47]ProducePacketName [10:27:47]name=ofd_packets/00228139 [10:27:47]NVStorageDeleteData [10:27:48]*** Cut start [10:27:48]*** Partial cut [10:27:48]*** CUTSNS_PIN = 1 [10:27:48]OFD Sender: No OFD packet to send [10:27:48]*** CUTSNS_PIN = 0 [10:27:48]*** Brake cut motor [10:27:48]Read from MH i2c: 01 [10:27:48]MH_I2C_Read... [10:27:48]*** Stop cut motor [10:27:48]*** Cut end [10:27:48]Read from MH i2c: 01 07 00 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: 01 07 00 DF 20 00 00 00 00 00 FF 0F 14 [10:27:48]process_action close_receipt done [10:27:48]requested_data is exist [10:27:48]produce_requested_data [10:27:48]requested_item fm.sn is exist - process it [10:27:48]wFMCommunicate request_size=4 [10:27:48]MH_SAM_APDU [10:27:48]CAPDU: 80 11 00 00 [10:27:48]Write to MH i2c: E2 08 00 E0 20 80 11 00 00 00 00 00 00 7A [10:27:48]Write i2c OK [10:27:48]MH_I2C_Read... [10:27:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:48]Read from MH i2c: E2 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: E2 17 00 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: E2 17 00 E0 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D1 [10:27:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:27:48]wFMCommunicate OK [10:27:48]requested_item fd.num is exist - process it [10:27:48]SAM_PROTO_GetFieldsCounters [10:27:48]wFMCommunicate request_size=4 [10:27:48]MH_SAM_APDU [10:27:48]CAPDU: 80 13 00 00 [10:27:48]Write to MH i2c: E2 08 00 E1 20 80 13 00 00 00 00 00 00 7D [10:27:48]Write i2c OK [10:27:48]MH_I2C_Read... [10:27:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:48]Read from MH i2c: E2 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: E2 62 00 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: E2 62 00 E1 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2B 7B 03 00 0E 04 04 00 17 02 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 9D [10:27:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2B 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:27:48]wFMCommunicate OK [10:27:48]SAM_PROTO_GetFieldsCounters done [10:27:48]requested_item shift.num is exist - process it [10:27:48]requested_item shift.opened is exist - process it [10:27:48]req_shift_opened [10:27:48]FM_GetShiftState [10:27:48]SAM_PROTO_GetShiftState [10:27:48]wFMCommunicate request_size=4 [10:27:48]MH_SAM_APDU [10:27:48]CAPDU: 80 13 01 00 [10:27:48]Write to MH i2c: E2 08 00 E2 20 80 13 01 00 00 00 00 00 7F [10:27:48]Write i2c OK [10:27:48]MH_I2C_Read... [10:27:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:49]Read from MH i2c: E2 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: E2 0E 00 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: E2 0E 00 E2 20 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 46 [10:27:49]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:27:49]wFMCommunicate OK [10:27:49]SAM_PROTO_GetShiftState done [10:27:49]FM_GetShiftState done [10:27:49]req_shift_opened done [10:27:49]requested_item shift.open_date is exist - process it [10:27:49]req_shift_open_date [10:27:49]req_shift_open_date done [10:27:49]produce_requested_data done [10:27:49]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228139,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [10:27:49]process_action_free close_receipt [10:27:49]json_value_free [10:27:49]json_value_free done [10:27:49]process_json_proto returns [10:27:49]Send response to host [10:27:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228139,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [10:27:49]free response buf [10:27:49]execute_script done [10:27:49]execute_script returns [10:27:49]free content buf [10:27:49]Sock 7.Close socket [10:27:49]Sock 7.Thread stoped [10:27:53]OFD Sender: No OFD packet to send [10:27:58]OFD Sender: No OFD packet to send [10:28:03]OFD Sender: No OFD packet to send [10:28:08]OFD Sender: No OFD packet to send [10:28:13]OFD Sender: No OFD packet to send [10:28:18]OFD Sender: No OFD packet to send [10:28:21]accept exits with 9 [10:28:21]New connection [10:28:21]New thread 3067137380 created [10:28:21]Thread 3066994020 joined [10:28:21]Waiting for new connection... [10:28:21] Sock 9.Parse request [10:28:21]Sock 9.Check first char [10:28:21]Sock 9.First char is OK [10:28:21]request: POST /json_proto HTTP/1.0 [10:28:21]Method: POST [10:28:21]URL: /json_proto [10:28:21]Method is POST - this is cgi request [10:28:21]url: /json_proto [10:28:21]query_string will be loaded in cgi processing [10:28:21]execute_cgi json_proto POST (null) [10:28:21]execute_cgi path=json_proto method=POST [10:28:21]POST find Content-Length [10:28:21]Host: 172.17.44.195:8080 [10:28:21]Content-Length: 678 [10:28:21]Content-Type: application/json [10:28:21] [10:28:21]POST finish read [10:28:21]Found Content-Length = 678 [10:28:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964503", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:28:21]execute_script... [10:28:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964503", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:28:21]POST & json_proto [10:28:21]process_json_proto [10:28:21]json parsed OK: [10:28:21]protocol is kg_v1.0 [10:28:21]action value=close_receipt [10:28:21]process_action close_receipt [10:28:21]cmd_close_receipt [10:28:21]MH_GetDate [10:28:21]Write to MH i2c: F0 00 00 E3 20 F2 [10:28:21]Write i2c OK [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: F0 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: F0 09 00 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: F0 09 00 E3 20 00 49 7E 17 67 82 C9 CF 66 C0 [10:28:21]GetLastDocTimeStamp 1729592868 [10:28:21]current date 1729592905 [10:28:21]FM_GetShiftState [10:28:21]SAM_PROTO_GetShiftState [10:28:21]wFMCommunicate request_size=4 [10:28:21]MH_SAM_APDU [10:28:21]CAPDU: 80 13 01 00 [10:28:21]Write to MH i2c: E2 08 00 E4 20 80 13 01 00 00 00 00 00 81 [10:28:21]Write i2c OK [10:28:21]MH_I2C_Read... [10:28:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:21]Read from MH i2c: E2 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: E2 0E 00 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: E2 0E 00 E4 20 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 48 [10:28:21]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:28:21]wFMCommunicate OK [10:28:21]SAM_PROTO_GetShiftState done [10:28:21]FM_GetShiftState done [10:28:21]opened in 1729555538 [10:28:21]opened+sec_in_day 1729641938 [10:28:21]quantity*price = 50041 [10:28:21]sum+1 = 50042 [10:28:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 104 22.10.2024 10:28 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228140 ФПД: 274371589345422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102825&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228140&fm=274371589345422&tin=02508201610067®Number=0000000000091685&sum=50000 [10:28:22]StoreToDocumentArchive [10:28:22]shift 535 fd 228140 [10:28:22]save to /storage/0535/doc_00228140 [10:28:22]save last doc name /storage/0535/doc_00228140 to /storage/kkm_last_doc_name [10:28:22]save OK [10:28:22]Clear old archive folders... [10:28:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:28:22]tlvbuf is 008CA190 [10:28:22]SAM_PROTO_ClearQueue [10:28:22]wFMCommunicate request_size=4 [10:28:22]MH_SAM_APDU [10:28:22]CAPDU: 80 09 00 00 [10:28:22]Write to MH i2c: E2 08 00 F1 20 80 09 00 00 00 00 00 00 83 [10:28:22]Write i2c OK [10:28:22]MH_I2C_Read... [10:28:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:22]Read from MH i2c: E2 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 03 00 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 03 00 F1 20 00 90 00 85 [10:28:22]RAPDU: 90 00 [10:28:22]wFMCommunicate OK [10:28:22]SAM_PROTO_ClearQueue done [10:28:22]KKMCreateOFDPacket [10:28:22]OFDProtocolAddRootSTLVToBuf [10:28:22]FM_MakeSignedData [10:28:22]FM_MakeSignedData [10:28:22]SAM_PROTO_SignData [10:28:22]wFMCommunicate request_size=4 [10:28:22]MH_SAM_APDU [10:28:22]CAPDU: 80 0D 01 02 [10:28:22]Write to MH i2c: E2 08 00 F2 20 80 0D 01 02 00 00 00 00 8B [10:28:22]Write i2c OK [10:28:22]MH_I2C_Read... [10:28:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:22]Read from MH i2c: E2 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 03 00 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 03 00 F2 20 00 90 00 86 [10:28:22]RAPDU: 90 00 [10:28:22]wFMCommunicate OK [10:28:22]wFMCommunicate request_size=255 [10:28:22]MH_SAM_APDU [10:28:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 49 7E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2C 7B 03 00 35 04 06 00 F9 [10:28:22]Write to MH i2c: E2 02 01 F3 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 49 7E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2C 7B 03 00 35 04 06 00 F9 00 00 8B [10:28:22]Write i2c OK [10:28:22]MH_I2C_Read... [10:28:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:23]Read from MH i2c: E2 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: E2 03 00 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: E2 03 00 F3 20 00 90 00 87 [10:28:23]RAPDU: 90 00 [10:28:23]wFMCommunicate OK [10:28:23]wFMCommunicate request_size=10 [10:28:23]MH_SAM_APDU [10:28:23]CAPDU: 80 0D 02 02 05 8A 1D 1E 90 8E [10:28:23]Write to MH i2c: E2 0D 00 F4 20 80 0D 02 02 05 00 8A 1D 1E 90 8E 00 00 7B [10:28:23]Write i2c OK [10:28:23]MH_I2C_Read... [10:28:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:23]Read from MH i2c: E2 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: E2 03 00 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: E2 03 00 F4 20 00 90 00 88 [10:28:23]RAPDU: 90 00 [10:28:23]wFMCommunicate OK [10:28:23]wFMCommunicate request_size=4 [10:28:23]MH_SAM_APDU [10:28:23]CAPDU: 80 0D 03 02 [10:28:23]Write to MH i2c: E2 08 00 F5 20 80 0D 03 02 00 00 00 00 90 [10:28:23]Write i2c OK [10:28:23]MH_I2C_Read... [10:28:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:23]OFD Sender: No OFD packet to send [10:28:23]Read from MH i2c: E2 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: E2 0B 00 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: E2 0B 00 F5 20 00 66 F1 7F FA AA 38 9B 17 90 00 F5 [10:28:23]RAPDU: 66 F1 7F FA AA 38 9B 17 90 00 [10:28:23]wFMCommunicate OK [10:28:23]SAM_PROTO_SignData done [10:28:23]FM_MakeSignedData done [10:28:23]CreateOFDProtocolMessage [10:28:23]wFMCommunicate request_size=4 [10:28:23]MH_SAM_APDU [10:28:23]CAPDU: 80 11 00 00 [10:28:23]Write to MH i2c: E2 08 00 F6 20 80 11 00 00 00 00 00 00 90 [10:28:23]Write i2c OK [10:28:23]MH_I2C_Read... [10:28:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:23]Read from MH i2c: E2 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: E2 17 00 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: E2 17 00 F6 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E7 [10:28:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:28:23]wFMCommunicate OK [10:28:23]CreateOFDProtocolMessage done [10:28:23]OFDSenderStorePacket 228140 [10:28:23]StoreOFDPacket docnum=228140 [10:28:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 19 62 07 01 A9 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 49 7E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2C 7B 03 00 35 04 06 00 F9 8A 1D 1E 90 8E 66 F1 7F FA AA 38 9B 17 [10:28:23]CheckFolder [10:28:23]dirname=/storage/ofd_packets [10:28:23]CheckFolder done [10:28:23]ProducePacketName [10:28:23]name=ofd_packets/00228140 [10:28:23]NVStorageSaveData ofd_packets/00228140 [10:28:23]File name is /storage/ofd_packets/00228140 [10:28:23]Write 301 bytes [10:28:23]NVStorageSaveData done [10:28:23]OFDSenderStorePacket done [10:28:23]KKMCreateOFDPacket done [10:28:23]NVStorageSaveData kkm_last_timestamp [10:28:23]File name is /storage/kkm_last_timestamp [10:28:23]Write 4 bytes [10:28:23]NVStorageSaveData done [10:28:23]ExternCall_PrintAddStr [10:28:23]wPrintStart [10:28:23]Write to MH i2c: 01 00 00 F7 20 17 [10:28:23]Write i2c OK [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: 01 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: 01 07 00 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: 01 07 00 F7 20 00 00 00 00 00 FF 0F 2C [10:28:23]RasterBufferAndPrint [10:28:23]line Счет N : (1)1964503 [10:28:23]line ИНН: 02508201610067 [10:28:23]line Контрольно-Кассовый Чек [10:28:23]line ПРОДАЖА [10:28:23]line ТРК (МРК, ГНК) : 63 [10:28:23]line Товар: 2710124130 [10:28:23]line Аи-92-К-5 [10:28:23]line 7.480 * 66.90 [10:28:23]line = 500.41 [10:28:23]line НДС 12% НСП 1% [10:28:23]line > о реализуемом товаре [10:28:23]line ОКРУГЛЕНИЕ: -0.41 [10:28:23]line ИТОГО: 500.00 [10:28:23]line Внесено: 500.00 [10:28:23]line СДАЧА: 0.00 [10:28:23]line НСП 1% : 4.43 [10:28:23]line НДС 12% : 53.14 [10:28:23]line Наличными: 500.00 [10:28:23]line Безнал.: 0.00 [10:28:23]line Место: АЗС № 133 "Партнер Нефть" [10:28:23]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:28:23]line СНО: Общий режим [10:28:23]line Чек 104 22.10.2024 10:28 [10:28:23]line Смена: 535 ФФД: 1.0 [10:28:23]line ЗНМ: 0300000091 [10:28:23]line РНМ: 0000000000091685 [10:28:23]line Версия ККМ: 001 [10:28:23]line ФМ: 0000000000871839 [10:28:23]line ФД: 228140 [10:28:23]line ФПД: 274371589345422 [10:28:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102825&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228140&fm=274371589345422&tin=02508201610067®Number=0000000000091685&sum=50000 [10:28:23]OFD Sender: Processing packet 228140 [packets to send 38, broken 37] [10:28:23]ProducePacketName [10:28:23]name=ofd_packets/00228140 [10:28:23]OFD Sender: To server: pG, [10:28:23]CommunicateWithHost lk.salyk.kg:30040 [10:28:23]ConnectInit lk.salyk.kg [10:28:23]written 0, free lines is 4095 [10:28:23]Connected sock=10 [10:28:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 19 62 07 01 A9 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 49 7E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2C 7B 03 00 35 04 06 00 F9 8A 1D 1E 90 8E 66 F1 7F FA AA 38 9B 17 [10:28:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 90 8D 47 00 9E 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2C 7B 03 00 F4 03 04 00 41 29 17 67 B6 04 01 00 00 DD 70 78 C1 ED 02 FD 99 [10:28:23]CommunicateWithHost err = 0 [10:28:23]CheckOFDResponse [10:28:23]1017 (14) - 77093643461234 [10:28:23]1041 (16) - 0000000000871839 [10:28:23]1040 (4) - 228140 [10:28:23]1012 (4) - 22.10.2024 04:25 [10:28:23]1206 (1) - 0 [10:28:23]OFD Sender: Remove packet 228140 [10:28:23]ProducePacketName [10:28:23]name=ofd_packets/00228140 [10:28:23]NVStorageDeleteData [10:28:24]Write to MH i2c: 01 00 00 21 21 42 [10:28:24]Write i2c OK [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: 01 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: 01 07 00 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: 01 07 00 21 21 00 00 00 00 00 D2 0C 27 [10:28:24]RasterBufferAndPrint [10:28:24]line [10:28:24]line [10:28:24]line [10:28:24]line [10:28:24]line [10:28:24]written 0, free lines is 3289 [10:28:24]MH_Cut [10:28:24]Write to MH i2c: D1 01 00 28 21 01 1B [10:28:24]Write i2c OK [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: D1 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: D1 01 00 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: D1 01 00 28 21 00 1A [10:28:24]Write to MH i2c: 01 00 00 29 21 4A [10:28:24]Write i2c OK [10:28:24]MH_I2C_Read... [10:28:24]OFD Sender: No OFD packet to send [10:28:24]*** Cut start [10:28:24]*** Partial cut [10:28:24]*** CUTSNS_PIN = 1 [10:28:24]*** CUTSNS_PIN = 0 [10:28:25]*** Brake cut motor [10:28:25]Read from MH i2c: 01 [10:28:25]MH_I2C_Read... [10:28:25]*** Stop cut motor [10:28:25]*** Cut end [10:28:25]Read from MH i2c: 01 07 00 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: 01 07 00 29 21 00 00 00 00 00 FF 0F 5F [10:28:25]process_action close_receipt done [10:28:25]requested_data is exist [10:28:25]produce_requested_data [10:28:25]requested_item fm.sn is exist - process it [10:28:25]wFMCommunicate request_size=4 [10:28:25]MH_SAM_APDU [10:28:25]CAPDU: 80 11 00 00 [10:28:25]Write to MH i2c: E2 08 00 2A 21 80 11 00 00 00 00 00 00 C5 [10:28:25]Write i2c OK [10:28:25]MH_I2C_Read... [10:28:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:25]Read from MH i2c: E2 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 17 00 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 17 00 2A 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1C [10:28:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:28:25]wFMCommunicate OK [10:28:25]requested_item fd.num is exist - process it [10:28:25]SAM_PROTO_GetFieldsCounters [10:28:25]wFMCommunicate request_size=4 [10:28:25]MH_SAM_APDU [10:28:25]CAPDU: 80 13 00 00 [10:28:25]Write to MH i2c: E2 08 00 2B 21 80 13 00 00 00 00 00 00 C8 [10:28:25]Write i2c OK [10:28:25]MH_I2C_Read... [10:28:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:25]Read from MH i2c: E2 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 62 00 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 62 00 2B 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2C 7B 03 00 0E 04 04 00 17 02 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 EC [10:28:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2C 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:28:25]wFMCommunicate OK [10:28:25]SAM_PROTO_GetFieldsCounters done [10:28:25]requested_item shift.num is exist - process it [10:28:25]requested_item shift.opened is exist - process it [10:28:25]req_shift_opened [10:28:25]FM_GetShiftState [10:28:25]SAM_PROTO_GetShiftState [10:28:25]wFMCommunicate request_size=4 [10:28:25]MH_SAM_APDU [10:28:25]CAPDU: 80 13 01 00 [10:28:25]Write to MH i2c: E2 08 00 2C 21 80 13 01 00 00 00 00 00 CA [10:28:25]Write i2c OK [10:28:25]MH_I2C_Read... [10:28:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:25]Read from MH i2c: E2 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 0E 00 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 0E 00 2C 21 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 91 [10:28:25]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:28:25]wFMCommunicate OK [10:28:25]SAM_PROTO_GetShiftState done [10:28:25]FM_GetShiftState done [10:28:25]req_shift_opened done [10:28:25]requested_item shift.open_date is exist - process it [10:28:25]req_shift_open_date [10:28:25]req_shift_open_date done [10:28:25]produce_requested_data done [10:28:25]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228140,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [10:28:25]process_action_free close_receipt [10:28:25]json_value_free [10:28:25]json_value_free done [10:28:25]process_json_proto returns [10:28:25]Send response to host [10:28:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228140,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [10:28:25]free response buf [10:28:25]execute_script done [10:28:25]execute_script returns [10:28:25]free content buf [10:28:25]Sock 9.Close socket [10:28:25]Sock 9.Thread stoped [10:28:29]OFD Sender: No OFD packet to send [10:28:34]OFD Sender: No OFD packet to send [10:28:39]OFD Sender: No OFD packet to send [10:28:44]OFD Sender: No OFD packet to send [10:28:49]OFD Sender: No OFD packet to send [10:28:54]OFD Sender: No OFD packet to send [10:28:59]OFD Sender: No OFD packet to send [10:29:04]OFD Sender: No OFD packet to send [10:29:09]OFD Sender: No OFD packet to send [10:29:14]OFD Sender: No OFD packet to send [10:29:19]OFD Sender: No OFD packet to send [10:29:24]OFD Sender: No OFD packet to send [10:29:29]OFD Sender: No OFD packet to send [10:29:34]OFD Sender: No OFD packet to send [10:29:39]OFD Sender: No OFD packet to send [10:29:44]OFD Sender: No OFD packet to send [10:29:49]OFD Sender: No OFD packet to send [10:29:51]accept exits with 7 [10:29:51]New connection [10:29:51]New thread 3066994020 created [10:29:51]Thread 3067137380 joined [10:29:51]Waiting for new connection... [10:29:51] Sock 7.Parse request [10:29:51]Sock 7.Check first char [10:29:51]Sock 7.First char is OK [10:29:51]request: POST /json_proto HTTP/1.0 [10:29:51]Method: POST [10:29:51]URL: /json_proto [10:29:51]Method is POST - this is cgi request [10:29:51]url: /json_proto [10:29:51]query_string will be loaded in cgi processing [10:29:51]execute_cgi json_proto POST (null) [10:29:51]execute_cgi path=json_proto method=POST [10:29:51]POST find Content-Length [10:29:51]Host: 172.17.44.195:8080 [10:29:51]Content-Length: 659 [10:29:51]Content-Type: application/json [10:29:51] [10:29:51]POST finish read [10:29:51]Found Content-Length = 659 [10:29:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 4.390, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:51]execute_script... [10:29: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)1964505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 4.390, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:51]POST & json_proto [10:29:51]process_json_proto [10:29:51]json parsed OK: [10:29:51]protocol is kg_v1.0 [10:29:51]action value=close_receipt [10:29:51]process_action close_receipt [10:29:51]cmd_close_receipt [10:29:51]MH_GetDate [10:29:51]Write to MH i2c: F0 00 00 2D 21 3D [10:29:51]Write i2c OK [10:29:51]MH_I2C_Read... [10:29:51]Read from MH i2c: F0 [10:29:51]MH_I2C_Read... [10:29:51]Read from MH i2c: F0 09 00 [10:29:51]MH_I2C_Read... [10:29:51]Read from MH i2c: F0 09 00 2D 21 00 A2 7E 17 67 82 C9 CF 66 64 [10:29:51]GetLastDocTimeStamp 1729592905 [10:29:51]current date 1729592994 [10:29:51]FM_GetShiftState [10:29:51]SAM_PROTO_GetShiftState [10:29:51]wFMCommunicate request_size=4 [10:29:51]MH_SAM_APDU [10:29:51]CAPDU: 80 13 01 00 [10:29:51]Write to MH i2c: E2 08 00 2E 21 80 13 01 00 00 00 00 00 CC [10:29:51]Write i2c OK [10:29:51]MH_I2C_Read... [10:29:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:51]Read from MH i2c: E2 [10:29:51]MH_I2C_Read... [10:29:51]Read from MH i2c: E2 0E 00 [10:29:51]MH_I2C_Read... [10:29:51]Read from MH i2c: E2 0E 00 2E 21 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 93 [10:29:51]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:29:51]wFMCommunicate OK [10:29:51]SAM_PROTO_GetShiftState done [10:29:51]FM_GetShiftState done [10:29:51]opened in 1729555538 [10:29:51]opened+sec_in_day 1729641938 [10:29:51]quantity*price = 30027 [10:29:51]sum+1 = 30029 [10:29:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 105 22.10.2024 10:29 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228141 ФПД: 201639918971251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102954&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228141&fm=201639918971251&tin=02508201610067®Number=0000000000091685&sum=30000 [10:29:52]StoreToDocumentArchive [10:29:52]shift 535 fd 228141 [10:29:52]save to /storage/0535/doc_00228141 [10:29:52]save last doc name /storage/0535/doc_00228141 to /storage/kkm_last_doc_name [10:29:52]save OK [10:29:52]Clear old archive folders... [10:29:52]ProcessDocumentItem done err = 0, tmpTLVsize=244 [10:29:52]tlvbuf is 008C2B00 [10:29:52]SAM_PROTO_ClearQueue [10:29:52]wFMCommunicate request_size=4 [10:29:52]MH_SAM_APDU [10:29:52]CAPDU: 80 09 00 00 [10:29:52]Write to MH i2c: E2 08 00 3B 21 80 09 00 00 00 00 00 00 CE [10:29:52]Write i2c OK [10:29:52]MH_I2C_Read... [10:29:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:52]Read from MH i2c: E2 [10:29:52]MH_I2C_Read... [10:29:52]Read from MH i2c: E2 03 00 [10:29:52]MH_I2C_Read... [10:29:52]Read from MH i2c: E2 03 00 3B 21 00 90 00 D0 [10:29:52]RAPDU: 90 00 [10:29:52]wFMCommunicate OK [10:29:52]SAM_PROTO_ClearQueue done [10:29:52]KKMCreateOFDPacket [10:29:52]OFDProtocolAddRootSTLVToBuf [10:29:52]FM_MakeSignedData [10:29:52]FM_MakeSignedData [10:29:52]SAM_PROTO_SignData [10:29:52]wFMCommunicate request_size=4 [10:29:52]MH_SAM_APDU [10:29:52]CAPDU: 80 0D 01 02 [10:29:52]Write to MH i2c: E2 08 00 3C 21 80 0D 01 02 00 00 00 00 D6 [10:29:52]Write i2c OK [10:29:52]MH_I2C_Read... [10:29:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:52]Read from MH i2c: E2 [10:29:52]MH_I2C_Read... [10:29:52]Read from MH i2c: E2 03 00 [10:29:52]MH_I2C_Read... [10:29:52]Read from MH i2c: E2 03 00 3C 21 00 90 00 D1 [10:29:52]RAPDU: 90 00 [10:29:52]wFMCommunicate OK [10:29:52]wFMCommunicate request_size=253 [10:29:52]MH_SAM_APDU [10:29:52]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 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 69 00 00 00 F4 03 04 00 A2 7E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2D 7B 03 00 35 04 06 00 B7 63 F3 BE 29 73 [10:29:52]Write to MH i2c: E2 00 01 3D 21 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 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 69 00 00 00 F4 03 04 00 A2 7E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2D 7B 03 00 35 04 06 00 B7 63 F3 BE 29 73 00 00 68 [10:29:52]Write i2c OK [10:29:52]MH_I2C_Read... [10:29:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:53]Read from MH i2c: E2 [10:29:53]MH_I2C_Read... [10:29:53]Read from MH i2c: E2 03 00 [10:29:53]MH_I2C_Read... [10:29:53]Read from MH i2c: E2 03 00 3D 21 00 90 00 D2 [10:29:53]RAPDU: 90 00 [10:29:53]wFMCommunicate OK [10:29:53]wFMCommunicate request_size=4 [10:29:53]MH_SAM_APDU [10:29:53]CAPDU: 80 0D 03 02 [10:29:53]Write to MH i2c: E2 08 00 3E 21 80 0D 03 02 00 00 00 00 DA [10:29:53]Write i2c OK [10:29:53]MH_I2C_Read... [10:29:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:53]Read from MH i2c: E2 [10:29:53]MH_I2C_Read... [10:29:53]Read from MH i2c: E2 0B 00 [10:29:53]MH_I2C_Read... [10:29:53]Read from MH i2c: E2 0B 00 3E 21 00 9B A2 90 88 E4 A3 F0 06 90 00 AD [10:29:53]RAPDU: 9B A2 90 88 E4 A3 F0 06 90 00 [10:29:53]wFMCommunicate OK [10:29:53]SAM_PROTO_SignData done [10:29:53]FM_MakeSignedData done [10:29:53]CreateOFDProtocolMessage [10:29:53]wFMCommunicate request_size=4 [10:29:53]MH_SAM_APDU [10:29:53]CAPDU: 80 11 00 00 [10:29:53]Write to MH i2c: E2 08 00 3F 21 80 11 00 00 00 00 00 00 DA [10:29:53]Write i2c OK [10:29:53]MH_I2C_Read... [10:29:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:53]Read from MH i2c: E2 [10:29:53]MH_I2C_Read... [10:29:53]Read from MH i2c: E2 17 00 [10:29:53]MH_I2C_Read... [10:29:53]Read from MH i2c: E2 17 00 3F 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 31 [10:29:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:29:53]wFMCommunicate OK [10:29:53]CreateOFDProtocolMessage done [10:29:53]OFDSenderStorePacket 228141 [10:29:53]StoreOFDPacket docnum=228141 [10:29:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 FD 22 00 01 CB C8 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 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 69 00 00 00 F4 03 04 00 A2 7E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2D 7B 03 00 35 04 06 00 B7 63 F3 BE 29 73 9B A2 90 88 E4 A3 F0 06 [10:29:53]CheckFolder [10:29:53]dirname=/storage/ofd_packets [10:29:53]CheckFolder done [10:29:53]ProducePacketName [10:29:53]name=ofd_packets/00228141 [10:29:53]NVStorageSaveData ofd_packets/00228141 [10:29:53]File name is /storage/ofd_packets/00228141 [10:29:53]Write 294 bytes [10:29:53]NVStorageSaveData done [10:29:53]OFDSenderStorePacket done [10:29:53]KKMCreateOFDPacket done [10:29:53]NVStorageSaveData kkm_last_timestamp [10:29:53]File name is /storage/kkm_last_timestamp [10:29:53]Write 4 bytes [10:29:53]NVStorageSaveData done [10:29:53]ExternCall_PrintAddStr [10:29:53]wPrintStart [10:29:53]Write to MH i2c: 01 00 00 40 21 61 [10:29:53]Write i2c OK [10:29:53]MH_I2C_Read... [10:29:53]Read from MH i2c: 01 [10:29:53]MH_I2C_Read... [10:29:53]Read from MH i2c: 01 07 00 [10:29:53]MH_I2C_Read... [10:29:53]Read from MH i2c: 01 07 00 40 21 00 00 00 00 00 FF 0F 76 [10:29:53]RasterBufferAndPrint [10:29:53]line Счет N : (1)1964505 [10:29:53]line ИНН: 02508201610067 [10:29:53]line Контрольно-Кассовый Чек [10:29:53]line ПРОДАЖА [10:29:53]line ТРК (МРК, ГНК) : 32 [10:29:53]line Товар: 2710124130 [10:29:53]line SU-92 [10:29:53]line 4.390 * 68.40 [10:29:53]line = 300.28 [10:29:53]line НДС 12% НСП 1% [10:29:53]line > о реализуемом товаре [10:29:53]line ОКРУГЛЕНИЕ: -0.28 [10:29:53]line ИТОГО: 300.00 [10:29:53]line Внесено: 300.00 [10:29:53]line СДАЧА: 0.00 [10:29:53]line НСП 1% : 2.66 [10:29:53]line НДС 12% : 31.89 [10:29:53]line Наличными: 300.00 [10:29:53]line Безнал.: 0.00 [10:29:53]line Место: АЗС № 133 "Партнер Нефть" [10:29:53]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:29:53]line СНО: Общий режим [10:29:53]line Чек 105 22.10.2024 10:29 [10:29:53]line Смена: 535 ФФД: 1.0 [10:29:53]line ЗНМ: 0300000091 [10:29:53]line РНМ: 0000000000091685 [10:29:53]line Версия ККМ: 001 [10:29:53]line ФМ: 0000000000871839 [10:29:53]line ФД: 228141 [10:29:53]line ФПД: 201639918971251 [10:29:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102954&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228141&fm=201639918971251&tin=02508201610067®Number=0000000000091685&sum=30000 [10:29:53]OFD Sender: Processing packet 228141 [packets to send 38, broken 37] [10:29:53]ProducePacketName [10:29:53]name=ofd_packets/00228141 [10:29:53]OFD Sender: To server: pG, [10:29:53]CommunicateWithHost lk.salyk.kg:30040 [10:29:53]ConnectInit lk.salyk.kg [10:29:53]written 0, free lines is 4095 [10:29:53]Write to MH i2c: 01 00 00 6A 21 8B [10:29:53]Write i2c OK [10:29:53]MH_I2C_Read... [10:29:53]Read from MH i2c: 01 [10:29:53]MH_I2C_Read... [10:29:53]Read from MH i2c: 01 07 00 [10:29:53]MH_I2C_Read... [10:29:53]Read from MH i2c: 01 07 00 6A 21 00 00 00 00 00 CC 0C 6A [10:29:53]RasterBufferAndPrint [10:29:53]line [10:29:53]line [10:29:53]line [10:29:53]line [10:29:53]line [10:29:53]written 0, free lines is 3280 [10:29:53]MH_Cut [10:29:53]Write to MH i2c: D1 01 00 71 21 01 64 [10:29:53]Write i2c OK [10:29:53]MH_I2C_Read... [10:29:53]Read from MH i2c: D1 [10:29:53]MH_I2C_Read... [10:29:53]Read from MH i2c: D1 01 00 [10:29:53]MH_I2C_Read... [10:29:53]Read from MH i2c: D1 01 00 71 21 00 63 [10:29:53]Write to MH i2c: 01 00 00 72 21 93 [10:29:53]Write i2c OK [10:29:53]MH_I2C_Read... [10:29:54]*** Cut start [10:29:54]*** Partial cut [10:29:54]*** CUTSNS_PIN = 1 [10:29:54]*** CUTSNS_PIN = 0 [10:29:54]*** Brake cut motor [10:29:55]Read from MH i2c: 01 [10:29:55]MH_I2C_Read... [10:29:55]*** Stop cut motor [10:29:55]*** Cut end [10:29:55]Read from MH i2c: 01 07 00 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: 01 07 00 72 21 00 00 00 00 00 FF 0F A8 [10:29:55]process_action close_receipt done [10:29:55]requested_data is exist [10:29:55]produce_requested_data [10:29:55]requested_item fm.sn is exist - process it [10:29:55]wFMCommunicate request_size=4 [10:29:55]MH_SAM_APDU [10:29:55]CAPDU: 80 11 00 00 [10:29:55]Write to MH i2c: E2 08 00 73 21 80 11 00 00 00 00 00 00 0E [10:29:55]Write i2c OK [10:29:55]MH_I2C_Read... [10:29:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:55]Read from MH i2c: E2 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: E2 17 00 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: E2 17 00 73 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 65 [10:29:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:29:55]wFMCommunicate OK [10:29:55]requested_item fd.num is exist - process it [10:29:55]SAM_PROTO_GetFieldsCounters [10:29:55]wFMCommunicate request_size=4 [10:29:55]MH_SAM_APDU [10:29:55]CAPDU: 80 13 00 00 [10:29:55]Write to MH i2c: E2 08 00 74 21 80 13 00 00 00 00 00 00 11 [10:29:55]Write i2c OK [10:29:55]MH_I2C_Read... [10:29:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:55]Read from MH i2c: E2 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: E2 62 00 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: E2 62 00 74 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2D 7B 03 00 0E 04 04 00 17 02 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 39 [10:29:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2D 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:29:55]wFMCommunicate OK [10:29:55]SAM_PROTO_GetFieldsCounters done [10:29:55]requested_item shift.num is exist - process it [10:29:55]requested_item shift.opened is exist - process it [10:29:55]req_shift_opened [10:29:55]FM_GetShiftState [10:29:55]SAM_PROTO_GetShiftState [10:29:55]wFMCommunicate request_size=4 [10:29:55]MH_SAM_APDU [10:29:55]CAPDU: 80 13 01 00 [10:29:55]Write to MH i2c: E2 08 00 75 21 80 13 01 00 00 00 00 00 13 [10:29:55]Write i2c OK [10:29:55]MH_I2C_Read... [10:29:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:55]Read from MH i2c: E2 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: E2 0E 00 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: E2 0E 00 75 21 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 DA [10:29:55]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:29:55]wFMCommunicate OK [10:29:55]SAM_PROTO_GetShiftState done [10:29:55]FM_GetShiftState done [10:29:55]req_shift_opened done [10:29:55]requested_item shift.open_date is exist - process it [10:29:55]req_shift_open_date [10:29:55]req_shift_open_date done [10:29:55]produce_requested_data done [10:29:55]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228141,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [10:29:55]process_action_free close_receipt [10:29:55]json_value_free [10:29:55]json_value_free done [10:29:55]process_json_proto returns [10:29:55]Send response to host [10:29:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228141,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [10:29:55]free response buf [10:29:55]execute_script done [10:29:55]execute_script returns [10:29:55]free content buf [10:29:55]Sock 7.Close socket [10:29:55]Sock 7.Thread stoped [10:30:03]accept exits with 9 [10:30:03]New connection [10:30:03]New thread 3067137380 created [10:30:03]Thread 3066994020 joined [10:30:03]Waiting for new connection... [10:30:03] Sock 9.Parse request [10:30:03]Sock 9.Check first char [10:30:03]Sock 9.First char is OK [10:30:03]request: POST /json_proto HTTP/1.0 [10:30:03]Method: POST [10:30:03]URL: /json_proto [10:30:03]Method is POST - this is cgi request [10:30:03]url: /json_proto [10:30:03]query_string will be loaded in cgi processing [10:30:03]execute_cgi json_proto POST (null) [10:30:03]execute_cgi path=json_proto method=POST [10:30:03]POST find Content-Length [10:30:03]Host: 172.17.44.195:8080 [10:30:03]Content-Length: 680 [10:30:03]Content-Type: application/json [10:30:03] [10:30:03]POST finish read [10:30:03]Found Content-Length = 680 [10:30:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964504", "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" : 76.20, "quantity" : 17.850, "sum" : 1360.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1360.00, "total" : 1360.00, "payments": [ { "type": 0, "sum" : 1360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:03]execute_script... [10:30: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)1964504", "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" : 76.20, "quantity" : 17.850, "sum" : 1360.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1360.00, "total" : 1360.00, "payments": [ { "type": 0, "sum" : 1360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:03]POST & json_proto [10:30:03]process_json_proto [10:30:03]json parsed OK: [10:30:03]protocol is kg_v1.0 [10:30:03]action value=close_receipt [10:30:03]process_action close_receipt [10:30:03]cmd_close_receipt [10:30:03]MH_GetDate [10:30:03]Write to MH i2c: F0 00 00 76 21 86 [10:30:03]Write i2c OK [10:30:03]MH_I2C_Read... [10:30:03]Read from MH i2c: F0 [10:30:03]MH_I2C_Read... [10:30:03]Read from MH i2c: F0 09 00 [10:30:03]MH_I2C_Read... [10:30:03]Read from MH i2c: F0 09 00 76 21 00 AF 7E 17 67 82 C9 CF 66 BA [10:30:03]GetLastDocTimeStamp 1729592994 [10:30:03]current date 1729593007 [10:30:03]FM_GetShiftState [10:30:03]SAM_PROTO_GetShiftState [10:30:03]wFMCommunicate request_size=4 [10:30:03]MH_SAM_APDU [10:30:03]CAPDU: 80 13 01 00 [10:30:03]Write to MH i2c: E2 08 00 77 21 80 13 01 00 00 00 00 00 15 [10:30:03]Write i2c OK [10:30:03]MH_I2C_Read... [10:30:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:03]Read from MH i2c: E2 [10:30:03]MH_I2C_Read... [10:30:03]Read from MH i2c: E2 0E 00 [10:30:03]MH_I2C_Read... [10:30:03]Read from MH i2c: E2 0E 00 77 21 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 DC [10:30:03]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:30:03]wFMCommunicate OK [10:30:03]SAM_PROTO_GetShiftState done [10:30:03]FM_GetShiftState done [10:30:03]opened in 1729555538 [10:30:03]opened+sec_in_day 1729641938 [10:30:03]quantity*price = 136017 [10:30:03]sum+1 = 136018 [10:30:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1360.00 Внесено: 1360.00 СДАЧА: 0.00 НСП 1% : 12.04 НДС 12% : 144.44 Наличными: 1360.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 106 22.10.2024 10:30 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228142 ФПД: 248713065654574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103007&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228142&fm=248713065654574&tin=02508201610067®Number=0000000000091685&sum=136000 [10:30:05]StoreToDocumentArchive [10:30:05]shift 535 fd 228142 [10:30:05]save to /storage/0535/doc_00228142 [10:30:05]save last doc name /storage/0535/doc_00228142 to /storage/kkm_last_doc_name [10:30:05]save OK [10:30:05]Clear old archive folders... [10:30:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:30:05]tlvbuf is 0085B720 [10:30:05]SAM_PROTO_ClearQueue [10:30:05]wFMCommunicate request_size=4 [10:30:05]MH_SAM_APDU [10:30:05]CAPDU: 80 09 00 00 [10:30:05]Write to MH i2c: E2 08 00 84 21 80 09 00 00 00 00 00 00 17 [10:30:05]Write i2c OK [10:30:05]MH_I2C_Read... [10:30:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:05]Read from MH i2c: E2 [10:30:05]MH_I2C_Read... [10:30:05]Read from MH i2c: E2 03 00 [10:30:05]MH_I2C_Read... [10:30:05]Read from MH i2c: E2 03 00 84 21 00 90 00 19 [10:30:05]RAPDU: 90 00 [10:30:05]wFMCommunicate OK [10:30:05]SAM_PROTO_ClearQueue done [10:30:05]KKMCreateOFDPacket [10:30:05]OFDProtocolAddRootSTLVToBuf [10:30:05]FM_MakeSignedData [10:30:05]FM_MakeSignedData [10:30:05]SAM_PROTO_SignData [10:30:05]wFMCommunicate request_size=4 [10:30:05]MH_SAM_APDU [10:30:05]CAPDU: 80 0D 01 02 [10:30:05]Write to MH i2c: E2 08 00 85 21 80 0D 01 02 00 00 00 00 1F [10:30:05]Write i2c OK [10:30:05]MH_I2C_Read... [10:30:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:05]Read from MH i2c: E2 [10:30:05]MH_I2C_Read... [10:30:05]Read from MH i2c: E2 03 00 [10:30:05]MH_I2C_Read... [10:30:05]Read from MH i2c: E2 03 00 85 21 00 90 00 1A [10:30:05]RAPDU: 90 00 [10:30:05]wFMCommunicate OK [10:30:05]wFMCommunicate request_size=255 [10:30:05]MH_SAM_APDU [10:30:05]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 45 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 51 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 13 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 38 00 00 00 00 07 04 06 00 40 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 6A 00 00 00 F4 03 04 00 AF 7E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2E 7B 03 00 35 04 06 00 E2 34 05 ED [10:30:05]Write to MH i2c: E2 02 01 86 21 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 45 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 51 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 13 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 38 00 00 00 00 07 04 06 00 40 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 6A 00 00 00 F4 03 04 00 AF 7E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2E 7B 03 00 35 04 06 00 E2 34 05 ED 00 00 B2 [10:30:05]Write i2c OK [10:30:05]MH_I2C_Read... [10:30:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:05]Read from MH i2c: E2 [10:30:05]MH_I2C_Read... [10:30:05]Read from MH i2c: E2 03 00 [10:30:05]MH_I2C_Read... [10:30:05]Read from MH i2c: E2 03 00 86 21 00 90 00 1B [10:30:05]RAPDU: 90 00 [10:30:05]wFMCommunicate OK [10:30:05]wFMCommunicate request_size=7 [10:30:05]MH_SAM_APDU [10:30:05]CAPDU: 80 0D 02 02 02 E9 2E [10:30:05]Write to MH i2c: E2 0A 00 87 21 80 0D 02 02 02 00 E9 2E 00 00 3D [10:30:05]Write i2c OK [10:30:05]MH_I2C_Read... [10:30:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:05]Read from MH i2c: E2 [10:30:05]MH_I2C_Read... [10:30:05]Read from MH i2c: E2 03 00 [10:30:05]MH_I2C_Read... [10:30:05]Read from MH i2c: E2 03 00 87 21 00 90 00 1C [10:30:05]RAPDU: 90 00 [10:30:05]wFMCommunicate OK [10:30:05]wFMCommunicate request_size=4 [10:30:05]MH_SAM_APDU [10:30:05]CAPDU: 80 0D 03 02 [10:30:05]Write to MH i2c: E2 08 00 88 21 80 0D 03 02 00 00 00 00 24 [10:30:05]Write i2c OK [10:30:05]MH_I2C_Read... [10:30:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:05]Read from MH i2c: E2 [10:30:05]MH_I2C_Read... [10:30:05]Read from MH i2c: E2 0B 00 [10:30:05]MH_I2C_Read... [10:30:05]Read from MH i2c: E2 0B 00 88 21 00 28 A4 D2 D6 14 C4 0B 89 90 00 05 [10:30:05]RAPDU: 28 A4 D2 D6 14 C4 0B 89 90 00 [10:30:05]wFMCommunicate OK [10:30:05]SAM_PROTO_SignData done [10:30:05]FM_MakeSignedData done [10:30:05]CreateOFDProtocolMessage [10:30:05]wFMCommunicate request_size=4 [10:30:05]MH_SAM_APDU [10:30:05]CAPDU: 80 11 00 00 [10:30:05]Write to MH i2c: E2 08 00 89 21 80 11 00 00 00 00 00 00 24 [10:30:05]Write i2c OK [10:30:05]MH_I2C_Read... [10:30:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:05]Read from MH i2c: E2 [10:30:05]MH_I2C_Read... [10:30:05]Read from MH i2c: E2 17 00 [10:30:05]MH_I2C_Read... [10:30:05]Read from MH i2c: E2 17 00 89 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7B [10:30:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:30:05]wFMCommunicate OK [10:30:05]CreateOFDProtocolMessage done [10:30:05]OFDSenderStorePacket 228142 [10:30:05]StoreOFDPacket docnum=228142 [10:30:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 2D 47 04 01 E2 7F 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 45 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 51 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 13 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 38 00 00 00 00 07 04 06 00 40 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 6A 00 00 00 F4 03 04 00 AF 7E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2E 7B 03 00 35 04 06 00 E2 34 05 ED E9 2E 28 A4 D2 D6 14 C4 0B 89 [10:30:05]CheckFolder [10:30:05]dirname=/storage/ofd_packets [10:30:05]CheckFolder done [10:30:05]ProducePacketName [10:30:05]name=ofd_packets/00228142 [10:30:05]NVStorageSaveData ofd_packets/00228142 [10:30:05]File name is /storage/ofd_packets/00228142 [10:30:05]Write 298 bytes [10:30:05]NVStorageSaveData done [10:30:05]OFDSenderStorePacket done [10:30:05]KKMCreateOFDPacket done [10:30:05]NVStorageSaveData kkm_last_timestamp [10:30:05]File name is /storage/kkm_last_timestamp [10:30:05]Write 4 bytes [10:30:05]NVStorageSaveData done [10:30:05]ExternCall_PrintAddStr [10:30:05]wPrintStart [10:30:05]Write to MH i2c: 01 00 00 8A 21 AB [10:30:05]Write i2c OK [10:30:05]MH_I2C_Read... [10:30:05]Read from MH i2c: 01 [10:30:05]MH_I2C_Read... [10:30:05]Read from MH i2c: 01 07 00 [10:30:05]MH_I2C_Read... [10:30:05]Read from MH i2c: 01 07 00 8A 21 00 00 00 00 00 FF 0F C0 [10:30:05]RasterBufferAndPrint [10:30:05]line Счет N : (1)1964504 [10:30:05]line ИНН: 02508201610067 [10:30:05]line Контрольно-Кассовый Чек [10:30:05]line ПРОДАЖА [10:30:05]line ТРК (МРК, ГНК) : 51 [10:30:05]line Товар: 2710194210 [10:30:05]line ДТ-К-5 [10:30:05]line 17.850 * 76.20 [10:30:05]line = 1360.17 [10:30:05]line НДС 12% НСП 1% [10:30:05]line > о реализуемом товаре [10:30:05]line ОКРУГЛЕНИЕ: -0.17 [10:30:05]line ИТОГО: 1360.00 [10:30:05]line Внесено: 1360.00 [10:30:05]line СДАЧА: 0.00 [10:30:05]line НСП 1% : 12.04 [10:30:05]line НДС 12% : 144.44 [10:30:05]line Наличными: 1360.00 [10:30:05]line Безнал.: 0.00 [10:30:05]line Место: АЗС № 133 "Партнер Нефть" [10:30:05]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:30:05]line СНО: Общий режим [10:30:05]line Чек 106 22.10.2024 10:30 [10:30:05]line Смена: 535 ФФД: 1.0 [10:30:05]line ЗНМ: 0300000091 [10:30:05]line РНМ: 0000000000091685 [10:30:05]line Версия ККМ: 001 [10:30:05]line ФМ: 0000000000871839 [10:30:05]line ФД: 228142 [10:30:05]line ФПД: 248713065654574 [10:30:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103007&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228142&fm=248713065654574&tin=02508201610067®Number=0000000000091685&sum=136000 [10:30:05]written 0, free lines is 4095 [10:30:06]Write to MH i2c: 01 00 00 B4 21 D5 [10:30:06]Write i2c OK [10:30:06]MH_I2C_Read... [10:30:06]Read from MH i2c: 01 [10:30:06]MH_I2C_Read... [10:30:06]Read from MH i2c: 01 07 00 [10:30:06]MH_I2C_Read... [10:30:06]Read from MH i2c: 01 07 00 B4 21 00 00 00 00 00 D0 0C B8 [10:30:06]RasterBufferAndPrint [10:30:06]line [10:30:06]line [10:30:06]line [10:30:06]line [10:30:06]line [10:30:06]written 0, free lines is 3285 [10:30:06]MH_Cut [10:30:06]Write to MH i2c: D1 01 00 BB 21 01 AE [10:30:06]Write i2c OK [10:30:06]MH_I2C_Read... [10:30:06]Read from MH i2c: D1 [10:30:06]MH_I2C_Read... [10:30:06]Read from MH i2c: D1 01 00 [10:30:06]MH_I2C_Read... [10:30:06]Read from MH i2c: D1 01 00 BB 21 00 AD [10:30:06]Write to MH i2c: 01 00 00 BC 21 DD [10:30:06]Write i2c OK [10:30:06]MH_I2C_Read... [10:30:07]*** Cut start [10:30:07]*** Partial cut [10:30:07]*** CUTSNS_PIN = 1 [10:30:07]*** CUTSNS_PIN = 0 [10:30:07]*** Brake cut motor [10:30:07]Read from MH i2c: 01 [10:30:07]MH_I2C_Read... [10:30:07]*** Stop cut motor [10:30:07]*** Cut end [10:30:07]Read from MH i2c: 01 07 00 [10:30:07]MH_I2C_Read... [10:30:07]Read from MH i2c: 01 07 00 BC 21 00 00 00 00 00 FF 0F F2 [10:30:07]process_action close_receipt done [10:30:07]requested_data is exist [10:30:07]produce_requested_data [10:30:07]requested_item fm.sn is exist - process it [10:30:07]wFMCommunicate request_size=4 [10:30:07]MH_SAM_APDU [10:30:07]CAPDU: 80 11 00 00 [10:30:07]Write to MH i2c: E2 08 00 BD 21 80 11 00 00 00 00 00 00 58 [10:30:07]Write i2c OK [10:30:07]MH_I2C_Read... [10:30:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:07]Read from MH i2c: E2 [10:30:07]MH_I2C_Read... [10:30:07]Read from MH i2c: E2 17 00 [10:30:07]MH_I2C_Read... [10:30:07]Read from MH i2c: E2 17 00 BD 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AF [10:30:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:30:07]wFMCommunicate OK [10:30:07]requested_item fd.num is exist - process it [10:30:07]SAM_PROTO_GetFieldsCounters [10:30:07]wFMCommunicate request_size=4 [10:30:07]MH_SAM_APDU [10:30:07]CAPDU: 80 13 00 00 [10:30:07]Write to MH i2c: E2 08 00 BE 21 80 13 00 00 00 00 00 00 5B [10:30:07]Write i2c OK [10:30:07]MH_I2C_Read... [10:30:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:07]Read from MH i2c: E2 [10:30:07]MH_I2C_Read... [10:30:07]Read from MH i2c: E2 62 00 [10:30:07]MH_I2C_Read... [10:30:07]Read from MH i2c: E2 62 00 BE 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2E 7B 03 00 0E 04 04 00 17 02 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 87 [10:30:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2E 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:30:07]wFMCommunicate OK [10:30:07]SAM_PROTO_GetFieldsCounters done [10:30:07]requested_item shift.num is exist - process it [10:30:07]requested_item shift.opened is exist - process it [10:30:07]req_shift_opened [10:30:07]FM_GetShiftState [10:30:07]SAM_PROTO_GetShiftState [10:30:07]wFMCommunicate request_size=4 [10:30:07]MH_SAM_APDU [10:30:07]CAPDU: 80 13 01 00 [10:30:07]Write to MH i2c: E2 08 00 BF 21 80 13 01 00 00 00 00 00 5D [10:30:07]Write i2c OK [10:30:07]MH_I2C_Read... [10:30:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:07]Read from MH i2c: E2 [10:30:07]MH_I2C_Read... [10:30:07]Read from MH i2c: E2 0E 00 [10:30:07]MH_I2C_Read... [10:30:07]Read from MH i2c: E2 0E 00 BF 21 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 24 [10:30:07]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:30:07]wFMCommunicate OK [10:30:07]SAM_PROTO_GetShiftState done [10:30:07]FM_GetShiftState done [10:30:07]req_shift_opened done [10:30:07]requested_item shift.open_date is exist - process it [10:30:07]req_shift_open_date [10:30:07]req_shift_open_date done [10:30:07]produce_requested_data done [10:30:07]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228142,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [10:30:07]process_action_free close_receipt [10:30:07]json_value_free [10:30:07]json_value_free done [10:30:07]process_json_proto returns [10:30:07]Send response to host [10:30:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228142,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [10:30:07]free response buf [10:30:07]execute_script done [10:30:07]execute_script returns [10:30:07]free content buf [10:30:07]Sock 9.Close socket [10:30:07]Sock 9.Thread stoped [10:31:01]accept exits with 7 [10:31:01]New connection [10:31:01]New thread 3066994020 created [10:31:01]Thread 3067137380 joined [10:31:01]Waiting for new connection... [10:31:01] Sock 7.Parse request [10:31:01]Sock 7.Check first char [10:31:01]Sock 7.First char is OK [10:31:01]request: POST /json_proto HTTP/1.0 [10:31:01]Method: POST [10:31:01]URL: /json_proto [10:31:01]Method is POST - this is cgi request [10:31:01]url: /json_proto [10:31:01]query_string will be loaded in cgi processing [10:31:01]execute_cgi json_proto POST (null) [10:31:01]execute_cgi path=json_proto method=POST [10:31:01]POST find Content-Length [10:31:01]Host: 172.17.44.195:8080 [10:31:01]Content-Length: 621 [10:31:01]Content-Type: application/json [10:31:01] [10:31:01]POST finish read [10:31:01]Found Content-Length = 621 [10:31:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:01]execute_script... [10:31: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)1964507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:01]POST & json_proto [10:31:01]process_json_proto [10:31:01]json parsed OK: [10:31:01]protocol is kg_v1.0 [10:31:01]action value=close_receipt [10:31:01]process_action close_receipt [10:31:01]cmd_close_receipt [10:31:01]MH_GetDate [10:31:01]Write to MH i2c: F0 00 00 C0 21 D0 [10:31:01]Write i2c OK [10:31:01]MH_I2C_Read... [10:31:01]Read from MH i2c: F0 [10:31:01]MH_I2C_Read... [10:31:01]Read from MH i2c: F0 09 00 [10:31:01]MH_I2C_Read... [10:31:01]Read from MH i2c: F0 09 00 C0 21 00 E9 7E 17 67 82 C9 CF 66 3E [10:31:01]GetLastDocTimeStamp 1729593007 [10:31:01]current date 1729593065 [10:31:01]FM_GetShiftState [10:31:01]SAM_PROTO_GetShiftState [10:31:01]wFMCommunicate request_size=4 [10:31:01]MH_SAM_APDU [10:31:01]CAPDU: 80 13 01 00 [10:31:01]Write to MH i2c: E2 08 00 C1 21 80 13 01 00 00 00 00 00 5F [10:31:01]Write i2c OK [10:31:01]MH_I2C_Read... [10:31:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:01]Read from MH i2c: E2 [10:31:01]MH_I2C_Read... [10:31:01]Read from MH i2c: E2 0E 00 [10:31:01]MH_I2C_Read... [10:31:01]Read from MH i2c: E2 0E 00 C1 21 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 26 [10:31:01]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:31:01]wFMCommunicate OK [10:31:01]SAM_PROTO_GetShiftState done [10:31:01]FM_GetShiftState done [10:31:01]opened in 1729555538 [10:31:01]opened+sec_in_day 1729641938 [10:31:01]quantity*price = 50000 [10:31:01]sum+1 = 50001 [10:31:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 107 22.10.2024 10:31 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228143 ФПД: 190315449649941 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103105&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228143&fm=190315449649941&tin=02508201610067®Number=0000000000091685&sum=50000 [10:31:02]StoreToDocumentArchive [10:31:02]shift 535 fd 228143 [10:31:02]save to /storage/0535/doc_00228143 [10:31:02]save last doc name /storage/0535/doc_00228143 to /storage/kkm_last_doc_name [10:31:02]save OK [10:31:02]Clear old archive folders... [10:31:02]ProcessDocumentItem done err = 0, tmpTLVsize=244 [10:31:02]tlvbuf is 00A7B970 [10:31:02]SAM_PROTO_ClearQueue [10:31:02]wFMCommunicate request_size=4 [10:31:02]MH_SAM_APDU [10:31:02]CAPDU: 80 09 00 00 [10:31:02]Write to MH i2c: E2 08 00 CE 21 80 09 00 00 00 00 00 00 61 [10:31:02]Write i2c OK [10:31:02]MH_I2C_Read... [10:31:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:02]Read from MH i2c: E2 [10:31:02]MH_I2C_Read... [10:31:02]Read from MH i2c: E2 03 00 [10:31:02]MH_I2C_Read... [10:31:02]Read from MH i2c: E2 03 00 CE 21 00 90 00 63 [10:31:02]RAPDU: 90 00 [10:31:02]wFMCommunicate OK [10:31:02]SAM_PROTO_ClearQueue done [10:31:02]KKMCreateOFDPacket [10:31:02]OFDProtocolAddRootSTLVToBuf [10:31:02]FM_MakeSignedData [10:31:02]FM_MakeSignedData [10:31:02]SAM_PROTO_SignData [10:31:02]wFMCommunicate request_size=4 [10:31:02]MH_SAM_APDU [10:31:02]CAPDU: 80 0D 01 02 [10:31:02]Write to MH i2c: E2 08 00 CF 21 80 0D 01 02 00 00 00 00 69 [10:31:02]Write i2c OK [10:31:02]MH_I2C_Read... [10:31:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:02]Read from MH i2c: E2 [10:31:02]MH_I2C_Read... [10:31:02]Read from MH i2c: E2 03 00 [10:31:02]MH_I2C_Read... [10:31:02]Read from MH i2c: E2 03 00 CF 21 00 90 00 64 [10:31:02]RAPDU: 90 00 [10:31:02]wFMCommunicate OK [10:31:02]wFMCommunicate request_size=253 [10:31:02]MH_SAM_APDU [10:31:02]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 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 E9 7E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2F 7B 03 00 35 04 06 00 AD 17 44 C5 8B 15 [10:31:02]Write to MH i2c: E2 00 01 D0 21 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 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 E9 7E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2F 7B 03 00 35 04 06 00 AD 17 44 C5 8B 15 00 00 EE [10:31:02]Write i2c OK [10:31:02]MH_I2C_Read... [10:31:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:03]Read from MH i2c: E2 [10:31:03]MH_I2C_Read... [10:31:03]Read from MH i2c: E2 03 00 [10:31:03]MH_I2C_Read... [10:31:03]Read from MH i2c: E2 03 00 D0 21 00 90 00 65 [10:31:03]RAPDU: 90 00 [10:31:03]wFMCommunicate OK [10:31:03]wFMCommunicate request_size=4 [10:31:03]MH_SAM_APDU [10:31:03]CAPDU: 80 0D 03 02 [10:31:03]Write to MH i2c: E2 08 00 D1 21 80 0D 03 02 00 00 00 00 6D [10:31:03]Write i2c OK [10:31:03]MH_I2C_Read... [10:31:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:03]Read from MH i2c: E2 [10:31:03]MH_I2C_Read... [10:31:03]Read from MH i2c: E2 0B 00 [10:31:03]MH_I2C_Read... [10:31:03]Read from MH i2c: E2 0B 00 D1 21 00 60 2D 47 BA 91 34 AD 58 90 00 C6 [10:31:03]RAPDU: 60 2D 47 BA 91 34 AD 58 90 00 [10:31:03]wFMCommunicate OK [10:31:03]SAM_PROTO_SignData done [10:31:03]FM_MakeSignedData done [10:31:03]CreateOFDProtocolMessage [10:31:03]wFMCommunicate request_size=4 [10:31:03]MH_SAM_APDU [10:31:03]CAPDU: 80 11 00 00 [10:31:03]Write to MH i2c: E2 08 00 D2 21 80 11 00 00 00 00 00 00 6D [10:31:03]Write i2c OK [10:31:03]MH_I2C_Read... [10:31:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:03]Read from MH i2c: E2 [10:31:03]MH_I2C_Read... [10:31:03]Read from MH i2c: E2 17 00 [10:31:03]MH_I2C_Read... [10:31:03]Read from MH i2c: E2 17 00 D2 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C4 [10:31:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:31:03]wFMCommunicate OK [10:31:03]CreateOFDProtocolMessage done [10:31:03]OFDSenderStorePacket 228143 [10:31:03]StoreOFDPacket docnum=228143 [10:31:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 5E 4D 00 01 6B 7E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 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 E9 7E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2F 7B 03 00 35 04 06 00 AD 17 44 C5 8B 15 60 2D 47 BA 91 34 AD 58 [10:31:03]CheckFolder [10:31:03]dirname=/storage/ofd_packets [10:31:03]CheckFolder done [10:31:03]ProducePacketName [10:31:03]name=ofd_packets/00228143 [10:31:03]NVStorageSaveData ofd_packets/00228143 [10:31:03]File name is /storage/ofd_packets/00228143 [10:31:03]Write 294 bytes [10:31:03]NVStorageSaveData done [10:31:03]OFDSenderStorePacket done [10:31:03]KKMCreateOFDPacket done [10:31:03]NVStorageSaveData kkm_last_timestamp [10:31:03]File name is /storage/kkm_last_timestamp [10:31:03]Write 4 bytes [10:31:03]NVStorageSaveData done [10:31:03]ExternCall_PrintAddStr [10:31:03]wPrintStart [10:31:03]Write to MH i2c: 01 00 00 D3 21 F4 [10:31:03]Write i2c OK [10:31:03]MH_I2C_Read... [10:31:03]Read from MH i2c: 01 [10:31:03]MH_I2C_Read... [10:31:03]Read from MH i2c: 01 07 00 [10:31:03]MH_I2C_Read... [10:31:03]Read from MH i2c: 01 07 00 D3 21 00 00 00 00 00 FF 0F 09 [10:31:03]RasterBufferAndPrint [10:31:03]line Счет N : (1)1964507 [10:31:03]line ИНН: 02508201610067 [10:31:03]line Контрольно-Кассовый Чек [10:31:03]line ПРОДАЖА [10:31:03]line ТРК (МРК, ГНК) : 42 [10:31:03]line Товар: 2710124130 [10:31:03]line SU-92 [10:31:03]line 7.310 * 68.40 [10:31:03]line = 500.00 [10:31:03]line НДС 12% НСП 1% [10:31:03]line > о реализуемом товаре [10:31:03]line ИТОГО: 500.00 [10:31:03]line НСП 1% : 4.42 [10:31:03]line НДС 12% : 53.10 [10:31:03]line Наличными: 500.00 [10:31:03]line Безнал.: 0.00 [10:31:03]line Место: АЗС № 133 "Партнер Нефть" [10:31:03]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:31:03]line СНО: Общий режим [10:31:03]line Чек 107 22.10.2024 10:31 [10:31:03]line Смена: 535 ФФД: 1.0 [10:31:03]line ЗНМ: 0300000091 [10:31:03]line РНМ: 0000000000091685 [10:31:03]line Версия ККМ: 001 [10:31:03]line ФМ: 0000000000871839 [10:31:03]line ФД: 228143 [10:31:03]line ФПД: 190315449649941 [10:31:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103105&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228143&fm=190315449649941&tin=02508201610067®Number=0000000000091685&sum=50000 [10:31:03]written 0, free lines is 4095 [10:31:03]Write to MH i2c: 01 00 00 FA 21 1B [10:31:03]Write i2c OK [10:31:03]MH_I2C_Read... [10:31:03]Read from MH i2c: 01 [10:31:03]MH_I2C_Read... [10:31:03]Read from MH i2c: 01 07 00 [10:31:03]MH_I2C_Read... [10:31:03]Read from MH i2c: 01 07 00 FA 21 00 00 00 00 00 FC 0C 2A [10:31:03]RasterBufferAndPrint [10:31:03]line [10:31:03]line [10:31:03]line [10:31:03]line [10:31:03]line [10:31:03]written 0, free lines is 3331 [10:31:03]MH_Cut [10:31:03]Write to MH i2c: D1 01 00 01 22 01 F5 [10:31:03]Write i2c OK [10:31:03]MH_I2C_Read... [10:31:03]Read from MH i2c: D1 [10:31:03]MH_I2C_Read... [10:31:03]Read from MH i2c: D1 01 00 [10:31:03]MH_I2C_Read... [10:31:03]Read from MH i2c: D1 01 00 01 22 00 F4 [10:31:03]Write to MH i2c: 01 00 00 02 22 24 [10:31:03]Write i2c OK [10:31:03]MH_I2C_Read... [10:31:04]*** Cut start [10:31:04]*** Partial cut [10:31:04]*** CUTSNS_PIN = 1 [10:31:04]*** CUTSNS_PIN = 0 [10:31:04]*** Brake cut motor [10:31:05]Read from MH i2c: 01 [10:31:05]*** Stop cut motor [10:31:05]*** Cut end [10:31:05]MH_I2C_Read... [10:31:05]Read from MH i2c: 01 07 00 [10:31:05]MH_I2C_Read... [10:31:05]Read from MH i2c: 01 07 00 02 22 00 00 00 00 00 FF 0F 39 [10:31:05]process_action close_receipt done [10:31:05]requested_data is exist [10:31:05]produce_requested_data [10:31:05]requested_item fm.sn is exist - process it [10:31:05]wFMCommunicate request_size=4 [10:31:05]MH_SAM_APDU [10:31:05]CAPDU: 80 11 00 00 [10:31:05]Write to MH i2c: E2 08 00 03 22 80 11 00 00 00 00 00 00 9F [10:31:05]Write i2c OK [10:31:05]MH_I2C_Read... [10:31:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:05]Read from MH i2c: E2 [10:31:05]MH_I2C_Read... [10:31:05]Read from MH i2c: E2 17 00 [10:31:05]MH_I2C_Read... [10:31:05]Read from MH i2c: E2 17 00 03 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F6 [10:31:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:31:05]wFMCommunicate OK [10:31:05]requested_item fd.num is exist - process it [10:31:05]SAM_PROTO_GetFieldsCounters [10:31:05]wFMCommunicate request_size=4 [10:31:05]MH_SAM_APDU [10:31:05]CAPDU: 80 13 00 00 [10:31:05]Write to MH i2c: E2 08 00 04 22 80 13 00 00 00 00 00 00 A2 [10:31:05]Write i2c OK [10:31:05]MH_I2C_Read... [10:31:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:05]Read from MH i2c: E2 [10:31:05]MH_I2C_Read... [10:31:05]Read from MH i2c: E2 62 00 [10:31:05]MH_I2C_Read... [10:31:05]Read from MH i2c: E2 62 00 04 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2F 7B 03 00 0E 04 04 00 17 02 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 D2 [10:31:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2F 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:31:05]wFMCommunicate OK [10:31:05]SAM_PROTO_GetFieldsCounters done [10:31:05]requested_item shift.num is exist - process it [10:31:05]requested_item shift.opened is exist - process it [10:31:05]req_shift_opened [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 05 22 80 13 01 00 00 00 00 00 A4 [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 05 22 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 6B [10:31:05]RAPDU: 09 00 01 52 EC 16 67 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]req_shift_opened done [10:31:05]requested_item shift.open_date is exist - process it [10:31:05]req_shift_open_date [10:31:05]req_shift_open_date done [10:31:05]produce_requested_data done [10:31:05]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228143,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [10:31:05]process_action_free close_receipt [10:31:05]json_value_free [10:31:05]json_value_free done [10:31:05]process_json_proto returns [10:31:05]Send response to host [10:31:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228143,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [10:31:05]free response buf [10:31:05]execute_script done [10:31:05]execute_script returns [10:31:05]free content buf [10:31:05]Sock 7.Close socket [10:31:05]Sock 7.Thread stoped [10:32:02]ConnectInit Can't connect to host [10:32:02]CommunicateWithHost connect error [10:32:02]CommunicateWithHost err = -1 [10:32:02]OFD Sender: Server communicate error [10:32:03]OFD Sender: Processing packet 228141 [packets to send 40, broken 37] [10:32:03]ProducePacketName [10:32:03]name=ofd_packets/00228141 [10:32:03]OFD Sender: To server: pG, [10:32:03]CommunicateWithHost lk.salyk.kg:30040 [10:32:03]ConnectInit lk.salyk.kg [10:32:03]Connected sock=7 [10:32:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 FD 22 00 01 CB C8 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 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 69 00 00 00 F4 03 04 00 A2 7E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2D 7B 03 00 35 04 06 00 B7 63 F3 BE 29 73 9B A2 90 88 E4 A3 F0 06 [10:32:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 20 38 47 00 FF 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2D 7B 03 00 F4 03 04 00 1D 2A 17 67 B6 04 01 00 00 2E 05 1D 74 71 35 25 6B [10:32:03]CommunicateWithHost err = 0 [10:32:03]CheckOFDResponse [10:32:03]1017 (14) - 77093643461234 [10:32:03]1041 (16) - 0000000000871839 [10:32:03]1040 (4) - 228141 [10:32:03]1012 (4) - 22.10.2024 04:29 [10:32:03]1206 (1) - 0 [10:32:03]OFD Sender: Remove packet 228141 [10:32:03]ProducePacketName [10:32:03]name=ofd_packets/00228141 [10:32:03]NVStorageDeleteData [10:32:03]OFD Sender: Processing packet 228142 [packets to send 39, broken 37] [10:32:03]ProducePacketName [10:32:03]name=ofd_packets/00228142 [10:32:03]OFD Sender: To server: pG, [10:32:03]CommunicateWithHost lk.salyk.kg:30040 [10:32:03]ConnectInit lk.salyk.kg [10:32:03]Connected sock=7 [10:32:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 2D 47 04 01 E2 7F 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 45 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 51 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 13 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 38 00 00 00 00 07 04 06 00 40 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 6A 00 00 00 F4 03 04 00 AF 7E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2E 7B 03 00 35 04 06 00 E2 34 05 ED E9 2E 28 A4 D2 D6 14 C4 0B 89 [10:32:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 78 11 47 00 28 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2E 7B 03 00 F4 03 04 00 1D 2A 17 67 B6 04 01 00 00 71 78 0F 4C EE 7E E7 F8 [10:32:04]CommunicateWithHost err = 0 [10:32:04]CheckOFDResponse [10:32:04]1017 (14) - 77093643461234 [10:32:04]1041 (16) - 0000000000871839 [10:32:04]1040 (4) - 228142 [10:32:04]1012 (4) - 22.10.2024 04:29 [10:32:04]1206 (1) - 0 [10:32:04]OFD Sender: Remove packet 228142 [10:32:04]ProducePacketName [10:32:04]name=ofd_packets/00228142 [10:32:04]NVStorageDeleteData [10:32:04]OFD Sender: Processing packet 228143 [packets to send 38, broken 37] [10:32:04]ProducePacketName [10:32:04]name=ofd_packets/00228143 [10:32:04]OFD Sender: To server: pG, [10:32:04]CommunicateWithHost lk.salyk.kg:30040 [10:32:04]ConnectInit lk.salyk.kg [10:32:04]Connected sock=7 [10:32:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 5E 4D 00 01 6B 7E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 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 E9 7E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2F 7B 03 00 35 04 06 00 AD 17 44 C5 8B 15 60 2D 47 BA 91 34 AD 58 [10:32:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 A5 BD 47 00 06 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2F 7B 03 00 F4 03 04 00 1E 2A 17 67 B6 04 01 00 00 43 83 DE EE D5 BF 11 A9 [10:32:04]CommunicateWithHost err = 0 [10:32:04]CheckOFDResponse [10:32:04]1017 (14) - 77093643461234 [10:32:04]1041 (16) - 0000000000871839 [10:32:04]1040 (4) - 228143 [10:32:04]1012 (4) - 22.10.2024 04:29 [10:32:04]1206 (1) - 0 [10:32:04]OFD Sender: Remove packet 228143 [10:32:04]ProducePacketName [10:32:04]name=ofd_packets/00228143 [10:32:04]NVStorageDeleteData [10:32:05]OFD Sender: No OFD packet to send [10:32:10]OFD Sender: No OFD packet to send [10:32:15]OFD Sender: No OFD packet to send [10:32:20]OFD Sender: No OFD packet to send [10:32:25]OFD Sender: No OFD packet to send [10:32:30]OFD Sender: No OFD packet to send [10:32:35]OFD Sender: No OFD packet to send [10:32:40]OFD Sender: No OFD packet to send [10:32:45]OFD Sender: No OFD packet to send [10:32:50]OFD Sender: No OFD packet to send [10:32:55]OFD Sender: No OFD packet to send [10:33:00]OFD Sender: No OFD packet to send [10:33:05]OFD Sender: No OFD packet to send [10:33:10]OFD Sender: No OFD packet to send [10:33:14]accept exits with 9 [10:33:14]New connection [10:33:14]New thread 3067137380 created [10:33:14]Thread 3066994020 joined [10:33:14]Waiting for new connection... [10:33:14] Sock 9.Parse request [10:33:14]Sock 9.Check first char [10:33:14]Sock 9.First char is OK [10:33:14]request: POST /json_proto HTTP/1.0 [10:33:14]Method: POST [10:33:14]URL: /json_proto [10:33:14]Method is POST - this is cgi request [10:33:14]url: /json_proto [10:33:14]query_string will be loaded in cgi processing [10:33:14]execute_cgi json_proto POST (null) [10:33:14]execute_cgi path=json_proto method=POST [10:33:14]POST find Content-Length [10:33:14]Host: 172.17.44.195:8080 [10:33:14]Content-Length: 680 [10:33:14]Content-Type: application/json [10:33:14] [10:33:14]POST finish read [10:33:14]Found Content-Length = 680 [10:33:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964509", "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" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "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" ] } } [10:33:14]execute_script... [10:33: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)1964509", "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" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "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" ] } } [10:33:14]POST & json_proto [10:33:14]process_json_proto [10:33:14]json parsed OK: [10:33:14]protocol is kg_v1.0 [10:33:14]action value=close_receipt [10:33:14]process_action close_receipt [10:33:14]cmd_close_receipt [10:33:14]MH_GetDate [10:33:14]Write to MH i2c: F0 00 00 06 22 17 [10:33:14]Write i2c OK [10:33:14]MH_I2C_Read... [10:33:14]Read from MH i2c: F0 [10:33:14]MH_I2C_Read... [10:33:14]Read from MH i2c: F0 09 00 [10:33:14]MH_I2C_Read... [10:33:14]Read from MH i2c: F0 09 00 06 22 00 6D 7F 17 67 82 C9 CF 66 0A [10:33:14]GetLastDocTimeStamp 1729593065 [10:33:14]current date 1729593197 [10:33:14]FM_GetShiftState [10:33:14]SAM_PROTO_GetShiftState [10:33:14]wFMCommunicate request_size=4 [10:33:14]MH_SAM_APDU [10:33:14]CAPDU: 80 13 01 00 [10:33:14]Write to MH i2c: E2 08 00 07 22 80 13 01 00 00 00 00 00 A6 [10:33:14]Write i2c OK [10:33:14]MH_I2C_Read... [10:33:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:14]Read from MH i2c: E2 [10:33:14]MH_I2C_Read... [10:33:14]Read from MH i2c: E2 0E 00 [10:33:14]MH_I2C_Read... [10:33:14]Read from MH i2c: E2 0E 00 07 22 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 6D [10:33:14]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:33:14]wFMCommunicate OK [10:33:14]SAM_PROTO_GetShiftState done [10:33:14]FM_GetShiftState done [10:33:14]opened in 1729555538 [10:33:14]opened+sec_in_day 1729641938 [10:33:14]quantity*price = 120015 [10:33:14]sum+1 = 120016 [10:33:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 108 22.10.2024 10:33 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228144 ФПД: 89974522336964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103317&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228144&fm=89974522336964&tin=02508201610067®Number=0000000000091685&sum=120000 [10:33:15]StoreToDocumentArchive [10:33:15]shift 535 fd 228144 [10:33:15]save to /storage/0535/doc_00228144 [10:33:15]save last doc name /storage/0535/doc_00228144 to /storage/kkm_last_doc_name [10:33:15]save OK [10:33:15]Clear old archive folders... [10:33:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:33:15]tlvbuf is 00875210 [10:33:15]SAM_PROTO_ClearQueue [10:33:15]wFMCommunicate request_size=4 [10:33:15]MH_SAM_APDU [10:33:15]CAPDU: 80 09 00 00 [10:33:15]Write to MH i2c: E2 08 00 14 22 80 09 00 00 00 00 00 00 A8 [10:33:15]Write i2c OK [10:33:15]MH_I2C_Read... [10:33:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:33:15]Read from MH i2c: E2 [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: E2 03 00 [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: E2 03 00 14 22 00 90 00 AA [10:33:15]RAPDU: 90 00 [10:33:15]wFMCommunicate OK [10:33:15]SAM_PROTO_ClearQueue done [10:33:15]KKMCreateOFDPacket [10:33:15]OFDProtocolAddRootSTLVToBuf [10:33:15]FM_MakeSignedData [10:33:15]FM_MakeSignedData [10:33:15]SAM_PROTO_SignData [10:33:15]wFMCommunicate request_size=4 [10:33:15]MH_SAM_APDU [10:33:15]CAPDU: 80 0D 01 02 [10:33:15]Write to MH i2c: E2 08 00 15 22 80 0D 01 02 00 00 00 00 B0 [10:33:15]Write i2c OK [10:33:15]MH_I2C_Read... [10:33:15]OFD Sender: No OFD packet to send [10:33:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:33:15]Read from MH i2c: E2 [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: E2 03 00 [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: E2 03 00 15 22 00 90 00 AB [10:33:15]RAPDU: 90 00 [10:33:15]wFMCommunicate OK [10:33:15]wFMCommunicate request_size=255 [10:33:15]MH_SAM_APDU [10:33:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF 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 C9 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 6C 00 00 00 F4 03 04 00 6D 7F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 30 7B 03 00 35 04 06 00 51 D4 D3 71 [10:33:15]Write to MH i2c: E2 02 01 16 22 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF 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 C9 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 6C 00 00 00 F4 03 04 00 6D 7F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 30 7B 03 00 35 04 06 00 51 D4 D3 71 00 00 B1 [10:33:15]Write i2c OK [10:33:15]MH_I2C_Read... [10:33:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:15]Read from MH i2c: E2 [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: E2 03 00 [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: E2 03 00 16 22 00 90 00 AC [10:33:15]RAPDU: 90 00 [10:33:15]wFMCommunicate OK [10:33:15]wFMCommunicate request_size=7 [10:33:15]MH_SAM_APDU [10:33:15]CAPDU: 80 0D 02 02 02 56 C4 [10:33:15]Write to MH i2c: E2 0A 00 17 22 80 0D 02 02 02 00 56 C4 00 00 D1 [10:33:15]Write i2c OK [10:33:15]MH_I2C_Read... [10:33:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:15]Read from MH i2c: E2 [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: E2 03 00 [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: E2 03 00 17 22 00 90 00 AD [10:33:15]RAPDU: 90 00 [10:33:15]wFMCommunicate OK [10:33:15]wFMCommunicate request_size=4 [10:33:15]MH_SAM_APDU [10:33:15]CAPDU: 80 0D 03 02 [10:33:15]Write to MH i2c: E2 08 00 18 22 80 0D 03 02 00 00 00 00 B5 [10:33:15]Write i2c OK [10:33:15]MH_I2C_Read... [10:33:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:33:15]Read from MH i2c: E2 [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: E2 0B 00 [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: E2 0B 00 18 22 00 D4 C1 53 D9 1D E2 E8 74 90 00 D2 [10:33:15]RAPDU: D4 C1 53 D9 1D E2 E8 74 90 00 [10:33:15]wFMCommunicate OK [10:33:15]SAM_PROTO_SignData done [10:33:15]FM_MakeSignedData done [10:33:15]CreateOFDProtocolMessage [10:33:15]wFMCommunicate request_size=4 [10:33:15]MH_SAM_APDU [10:33:15]CAPDU: 80 11 00 00 [10:33:15]Write to MH i2c: E2 08 00 19 22 80 11 00 00 00 00 00 00 B5 [10:33:15]Write i2c OK [10:33:15]MH_I2C_Read... [10:33:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:15]Read from MH i2c: E2 [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: E2 17 00 [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: E2 17 00 19 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0C [10:33:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:33:15]wFMCommunicate OK [10:33:15]CreateOFDProtocolMessage done [10:33:15]OFDSenderStorePacket 228144 [10:33:15]StoreOFDPacket docnum=228144 [10:33:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 4D 8B 04 01 FD 62 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF 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 C9 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 6C 00 00 00 F4 03 04 00 6D 7F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 30 7B 03 00 35 04 06 00 51 D4 D3 71 56 C4 D4 C1 53 D9 1D E2 E8 74 [10:33:15]CheckFolder [10:33:15]dirname=/storage/ofd_packets [10:33:15]CheckFolder done [10:33:15]ProducePacketName [10:33:15]name=ofd_packets/00228144 [10:33:15]NVStorageSaveData ofd_packets/00228144 [10:33:15]File name is /storage/ofd_packets/00228144 [10:33:15]Write 298 bytes [10:33:15]NVStorageSaveData done [10:33:15]OFDSenderStorePacket done [10:33:15]KKMCreateOFDPacket done [10:33:15]NVStorageSaveData kkm_last_timestamp [10:33:15]File name is /storage/kkm_last_timestamp [10:33:15]Write 4 bytes [10:33:15]NVStorageSaveData done [10:33:15]ExternCall_PrintAddStr [10:33:15]wPrintStart [10:33:15]Write to MH i2c: 01 00 00 1A 22 3C [10:33:15]Write i2c OK [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: 01 [10:33:16]MH_I2C_Read... [10:33:16]Read from MH i2c: 01 07 00 [10:33:16]MH_I2C_Read... [10:33:16]Read from MH i2c: 01 07 00 1A 22 00 00 00 00 00 FF 0F 51 [10:33:16]RasterBufferAndPrint [10:33:16]line Счет N : (1)1964509 [10:33:16]line ИНН: 02508201610067 [10:33:16]line Контрольно-Кассовый Чек [10:33:16]line ПРОДАЖА [10:33:16]line ТРК (МРК, ГНК) : 61 [10:33:16]line Товар: 2710194210 [10:33:16]line ДТ-К-5 [10:33:16]line 15.750 * 76.20 [10:33:16]line = 1200.15 [10:33:16]line НДС 12% НСП 1% [10:33:16]line > о реализуемом товаре [10:33:16]line ОКРУГЛЕНИЕ: -0.15 [10:33:16]line ИТОГО: 1200.00 [10:33:16]line Внесено: 1200.00 [10:33:16]line СДАЧА: 0.00 [10:33:16]line НСП 1% : 10.62 [10:33:16]line НДС 12% : 127.45 [10:33:16]line Наличными: 1200.00 [10:33:16]line Безнал.: 0.00 [10:33:16]line Место: АЗС № 133 "Партнер Нефть" [10:33:16]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:33:16]line СНО: Общий режим [10:33:16]line Чек 108 22.10.2024 10:33 [10:33:16]line Смена: 535 ФФД: 1.0 [10:33:16]line ЗНМ: 0300000091 [10:33:16]line РНМ: 0000000000091685 [10:33:16]line Версия ККМ: 001 [10:33:16]line ФМ: 0000000000871839 [10:33:16]line ФД: 228144 [10:33:16]line ФПД: 89974522336964 [10:33:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103317&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228144&fm=89974522336964&tin=02508201610067®Number=0000000000091685&sum=120000 [10:33:16]OFD Sender: Processing packet 228144 [packets to send 38, broken 37] [10:33:16]ProducePacketName [10:33:16]name=ofd_packets/00228144 [10:33:16]OFD Sender: To server: pG, [10:33:16]CommunicateWithHost lk.salyk.kg:30040 [10:33:16]ConnectInit lk.salyk.kg [10:33:16]written 0, free lines is 4095 [10:33:16]Connected sock=10 [10:33:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 4D 8B 04 01 FD 62 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF 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 C9 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 6C 00 00 00 F4 03 04 00 6D 7F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 30 7B 03 00 35 04 06 00 51 D4 D3 71 56 C4 D4 C1 53 D9 1D E2 E8 74 [10:33:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 87 B7 47 00 DD 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 38 37 31 38 33 39 10 04 04 00 30 7B 03 00 F4 03 04 00 66 2A 17 67 B6 04 01 00 00 51 5D 2F 71 05 DD 04 32 [10:33:16]CommunicateWithHost err = 0 [10:33:16]CheckOFDResponse [10:33:16]1017 (14) - 77093643461234 [10:33:16]1041 (16) - 0000000000871839 [10:33:16]1040 (4) - 228144 [10:33:16]1012 (4) - 22.10.2024 04:30 [10:33:16]1206 (1) - 0 [10:33:16]OFD Sender: Remove packet 228144 [10:33:16]ProducePacketName [10:33:16]name=ofd_packets/00228144 [10:33:16]NVStorageDeleteData [10:33:16]Write to MH i2c: 01 00 00 44 22 66 [10:33:16]Write i2c OK [10:33:16]MH_I2C_Read... [10:33:16]Read from MH i2c: 01 [10:33:16]MH_I2C_Read... [10:33:16]Read from MH i2c: 01 07 00 [10:33:16]MH_I2C_Read... [10:33:16]Read from MH i2c: 01 07 00 44 22 00 00 00 00 00 D0 0C 49 [10:33:16]RasterBufferAndPrint [10:33:16]line [10:33:16]line [10:33:16]line [10:33:16]line [10:33:16]line [10:33:16]written 0, free lines is 3284 [10:33:16]MH_Cut [10:33:16]Write to MH i2c: D1 01 00 4B 22 01 3F [10:33:16]Write i2c OK [10:33:16]MH_I2C_Read... [10:33:16]Read from MH i2c: D1 [10:33:16]MH_I2C_Read... [10:33:16]Read from MH i2c: D1 01 00 [10:33:16]MH_I2C_Read... [10:33:16]Read from MH i2c: D1 01 00 4B 22 00 3E [10:33:16]Write to MH i2c: 01 00 00 4C 22 6E [10:33:16]Write i2c OK [10:33:16]MH_I2C_Read... [10:33:17]OFD Sender: No OFD packet to send [10:33:17]*** Cut start [10:33:17]*** Partial cut [10:33:17]*** CUTSNS_PIN = 1 [10:33:17]*** CUTSNS_PIN = 0 [10:33:17]*** Brake cut motor [10:33:18]Read from MH i2c: 01 [10:33:18]MH_I2C_Read... [10:33:18]*** Stop cut motor [10:33:18]*** Cut end [10:33:18]Read from MH i2c: 01 07 00 [10:33:18]MH_I2C_Read... [10:33:18]Read from MH i2c: 01 07 00 4C 22 00 00 00 00 00 FF 0F 83 [10:33:18]process_action close_receipt done [10:33:18]requested_data is exist [10:33:18]produce_requested_data [10:33:18]requested_item fm.sn is exist - process it [10:33:18]wFMCommunicate request_size=4 [10:33:18]MH_SAM_APDU [10:33:18]CAPDU: 80 11 00 00 [10:33:18]Write to MH i2c: E2 08 00 4D 22 80 11 00 00 00 00 00 00 E9 [10:33:18]Write i2c OK [10:33:18]MH_I2C_Read... [10:33:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:18]Read from MH i2c: E2 [10:33:18]MH_I2C_Read... [10:33:18]Read from MH i2c: E2 17 00 [10:33:18]MH_I2C_Read... [10:33:18]Read from MH i2c: E2 17 00 4D 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 40 [10:33:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:33:18]wFMCommunicate OK [10:33:18]requested_item fd.num is exist - process it [10:33:18]SAM_PROTO_GetFieldsCounters [10:33:18]wFMCommunicate request_size=4 [10:33:18]MH_SAM_APDU [10:33:18]CAPDU: 80 13 00 00 [10:33:18]Write to MH i2c: E2 08 00 4E 22 80 13 00 00 00 00 00 00 EC [10:33:18]Write i2c OK [10:33:18]MH_I2C_Read... [10:33:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:33:18]Read from MH i2c: E2 [10:33:18]MH_I2C_Read... [10:33:18]Read from MH i2c: E2 62 00 [10:33:18]MH_I2C_Read... [10:33:18]Read from MH i2c: E2 62 00 4E 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 30 7B 03 00 0E 04 04 00 17 02 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 20 [10:33:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 30 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:33:18]wFMCommunicate OK [10:33:18]SAM_PROTO_GetFieldsCounters done [10:33:18]requested_item shift.num is exist - process it [10:33:18]requested_item shift.opened is exist - process it [10:33:18]req_shift_opened [10:33:18]FM_GetShiftState [10:33:18]SAM_PROTO_GetShiftState [10:33:18]wFMCommunicate request_size=4 [10:33:18]MH_SAM_APDU [10:33:18]CAPDU: 80 13 01 00 [10:33:18]Write to MH i2c: E2 08 00 4F 22 80 13 01 00 00 00 00 00 EE [10:33:18]Write i2c OK [10:33:18]MH_I2C_Read... [10:33:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:18]Read from MH i2c: E2 [10:33:18]MH_I2C_Read... [10:33:18]Read from MH i2c: E2 0E 00 [10:33:18]MH_I2C_Read... [10:33:18]Read from MH i2c: E2 0E 00 4F 22 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 B5 [10:33:18]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:33:18]wFMCommunicate OK [10:33:18]SAM_PROTO_GetShiftState done [10:33:18]FM_GetShiftState done [10:33:18]req_shift_opened done [10:33:18]requested_item shift.open_date is exist - process it [10:33:18]req_shift_open_date [10:33:18]req_shift_open_date done [10:33:18]produce_requested_data done [10:33:18]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228144,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [10:33:18]process_action_free close_receipt [10:33:18]json_value_free [10:33:18]json_value_free done [10:33:18]process_json_proto returns [10:33:18]Send response to host [10:33:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228144,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [10:33:18]free response buf [10:33:18]execute_script done [10:33:18]execute_script returns [10:33:18]free content buf [10:33:18]Sock 9.Close socket [10:33:18]Sock 9.Thread stoped [10:33:22]OFD Sender: No OFD packet to send [10:33:27]OFD Sender: No OFD packet to send [10:33:32]OFD Sender: No OFD packet to send [10:33:37]OFD Sender: No OFD packet to send [10:33:42]OFD Sender: No OFD packet to send [10:33:47]OFD Sender: No OFD packet to send [10:33:52]OFD Sender: No OFD packet to send [10:33:56]accept exits with 7 [10:33:56]New connection [10:33:56]New thread 3066994020 created [10:33:56]Thread 3067137380 joined [10:33:56]Waiting for new connection... [10:33:56] Sock 7.Parse request [10:33:56]Sock 7.Check first char [10:33:56]Sock 7.First char is OK [10:33:56]request: POST /json_proto HTTP/1.0 [10:33:56]Method: POST [10:33:56]URL: /json_proto [10:33:56]Method is POST - this is cgi request [10:33:56]url: /json_proto [10:33:56]query_string will be loaded in cgi processing [10:33:56]execute_cgi json_proto POST (null) [10:33:56]execute_cgi path=json_proto method=POST [10:33:56]POST find Content-Length [10:33:56]Host: 172.17.44.195:8080 [10:33:56]Content-Length: 678 [10:33:56]Content-Type: application/json [10:33:56] [10:33:56]POST finish read [10:33:56]Found Content-Length = 678 [10:33:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964511", "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" : 66.90, "quantity" : 5.980, "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" ] } } [10:33:56]execute_script... [10: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)1964511", "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" : 66.90, "quantity" : 5.980, "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" ] } } [10:33:56]POST & json_proto [10:33:56]process_json_proto [10:33:56]json parsed OK: [10:33:56]protocol is kg_v1.0 [10:33:56]action value=close_receipt [10:33:56]process_action close_receipt [10:33:56]cmd_close_receipt [10:33:56]MH_GetDate [10:33:56]Write to MH i2c: F0 00 00 50 22 61 [10:33:56]Write i2c OK [10:33:56]MH_I2C_Read... [10:33:56]Read from MH i2c: F0 [10:33:56]MH_I2C_Read... [10:33:56]Read from MH i2c: F0 09 00 [10:33:56]MH_I2C_Read... [10:33:56]Read from MH i2c: F0 09 00 50 22 00 98 7F 17 67 82 C9 CF 66 7F [10:33:56]GetLastDocTimeStamp 1729593197 [10:33:56]current date 1729593240 [10:33:56]FM_GetShiftState [10:33:56]SAM_PROTO_GetShiftState [10:33:56]wFMCommunicate request_size=4 [10:33:56]MH_SAM_APDU [10:33:56]CAPDU: 80 13 01 00 [10:33:56]Write to MH i2c: E2 08 00 51 22 80 13 01 00 00 00 00 00 F0 [10:33:56]Write i2c OK [10:33:56]MH_I2C_Read... [10:33:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:56]Read from MH i2c: E2 [10:33:56]MH_I2C_Read... [10:33:56]Read from MH i2c: E2 0E 00 [10:33:56]MH_I2C_Read... [10:33:56]Read from MH i2c: E2 0E 00 51 22 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 B7 [10:33:56]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:33:56]wFMCommunicate OK [10:33:56]SAM_PROTO_GetShiftState done [10:33:56]FM_GetShiftState done [10:33:56]opened in 1729555538 [10:33:56]opened+sec_in_day 1729641938 [10:33:56]quantity*price = 40006 [10:33:56]sum+1 = 40007 [10:33:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 109 22.10.2024 10:34 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228145 ФПД: 26818437965737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103400&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228145&fm=26818437965737&tin=02508201610067®Number=0000000000091685&sum=40000 [10:33:57]StoreToDocumentArchive [10:33:57]shift 535 fd 228145 [10:33:57]save to /storage/0535/doc_00228145 [10:33:57]save last doc name /storage/0535/doc_00228145 to /storage/kkm_last_doc_name [10:33:57]save OK [10:33:57]Clear old archive folders... [10:33:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:33:57]tlvbuf is 00A8B4C0 [10:33:57]SAM_PROTO_ClearQueue [10:33:57]wFMCommunicate request_size=4 [10:33:57]MH_SAM_APDU [10:33:57]CAPDU: 80 09 00 00 [10:33:57]Write to MH i2c: E2 08 00 5E 22 80 09 00 00 00 00 00 00 F2 [10:33:57]Write i2c OK [10:33:57]MH_I2C_Read... [10:33:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:33:57]Read from MH i2c: E2 [10:33:57]MH_I2C_Read... [10:33:57]Read from MH i2c: E2 03 00 [10:33:57]MH_I2C_Read... [10:33:57]Read from MH i2c: E2 03 00 5E 22 00 90 00 F4 [10:33:57]RAPDU: 90 00 [10:33:57]wFMCommunicate OK [10:33:57]SAM_PROTO_ClearQueue done [10:33:57]KKMCreateOFDPacket [10:33:57]OFDProtocolAddRootSTLVToBuf [10:33:57]FM_MakeSignedData [10:33:57]FM_MakeSignedData [10:33:57]SAM_PROTO_SignData [10:33:57]wFMCommunicate request_size=4 [10:33:57]MH_SAM_APDU [10:33:57]CAPDU: 80 0D 01 02 [10:33:57]Write to MH i2c: E2 08 00 5F 22 80 0D 01 02 00 00 00 00 FA [10:33:57]Write i2c OK [10:33:57]MH_I2C_Read... [10:33:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:33:57]Read from MH i2c: E2 [10:33:57]MH_I2C_Read... [10:33:57]Read from MH i2c: E2 03 00 [10:33:57]MH_I2C_Read... [10:33:57]Read from MH i2c: E2 03 00 5F 22 00 90 00 F5 [10:33:57]RAPDU: 90 00 [10:33:57]wFMCommunicate OK [10:33:57]wFMCommunicate request_size=255 [10:33:57]MH_SAM_APDU [10: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 6D 00 00 00 F4 03 04 00 98 7F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 31 7B 03 00 35 04 06 00 18 [10:33:57]Write to MH i2c: E2 02 01 60 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 6D 00 00 00 F4 03 04 00 98 7F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 31 7B 03 00 35 04 06 00 18 00 00 42 [10:33:57]Write i2c OK [10:33:57]MH_I2C_Read... [10:33:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:58]Read from MH i2c: E2 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: E2 03 00 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: E2 03 00 60 22 00 90 00 F6 [10:33:58]RAPDU: 90 00 [10:33:58]wFMCommunicate OK [10:33:58]wFMCommunicate request_size=10 [10:33:58]MH_SAM_APDU [10:33:58]CAPDU: 80 0D 02 02 05 64 27 77 E7 A9 [10:33:58]Write to MH i2c: E2 0D 00 61 22 80 0D 02 02 05 00 64 27 77 E7 A9 00 00 99 [10:33:58]Write i2c OK [10:33:58]MH_I2C_Read... [10:33:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:58]Read from MH i2c: E2 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: E2 03 00 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: E2 03 00 61 22 00 90 00 F7 [10:33:58]RAPDU: 90 00 [10:33:58]wFMCommunicate OK [10:33:58]wFMCommunicate request_size=4 [10:33:58]MH_SAM_APDU [10:33:58]CAPDU: 80 0D 03 02 [10:33:58]Write to MH i2c: E2 08 00 62 22 80 0D 03 02 00 00 00 00 FF [10:33:58]Write i2c OK [10:33:58]MH_I2C_Read... [10:33:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:33:58]Read from MH i2c: E2 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: E2 0B 00 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: E2 0B 00 62 22 00 FF F3 E9 BC FE AA C1 51 90 00 51 [10:33:58]RAPDU: FF F3 E9 BC FE AA C1 51 90 00 [10:33:58]wFMCommunicate OK [10:33:58]SAM_PROTO_SignData done [10:33:58]FM_MakeSignedData done [10:33:58]CreateOFDProtocolMessage [10:33:58]wFMCommunicate request_size=4 [10:33:58]MH_SAM_APDU [10:33:58]CAPDU: 80 11 00 00 [10:33:58]Write to MH i2c: E2 08 00 63 22 80 11 00 00 00 00 00 00 FF [10:33:58]Write i2c OK [10:33:58]MH_I2C_Read... [10:33:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:58]Read from MH i2c: E2 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: E2 17 00 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: E2 17 00 63 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 56 [10:33:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:33:58]wFMCommunicate OK [10:33:58]CreateOFDProtocolMessage done [10:33:58]OFDSenderStorePacket 228145 [10:33:58]StoreOFDPacket docnum=228145 [10:33:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 DA 5B 07 01 04 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 6D 00 00 00 F4 03 04 00 98 7F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 31 7B 03 00 35 04 06 00 18 64 27 77 E7 A9 FF F3 E9 BC FE AA C1 51 [10:33:58]CheckFolder [10:33:58]dirname=/storage/ofd_packets [10:33:58]CheckFolder done [10:33:58]ProducePacketName [10:33:58]name=ofd_packets/00228145 [10:33:58]NVStorageSaveData ofd_packets/00228145 [10:33:58]File name is /storage/ofd_packets/00228145 [10:33:58]Write 301 bytes [10:33:58]NVStorageSaveData done [10:33:58]OFDSenderStorePacket done [10:33:58]KKMCreateOFDPacket done [10:33:58]NVStorageSaveData kkm_last_timestamp [10:33:58]File name is /storage/kkm_last_timestamp [10:33:58]Write 4 bytes [10:33:58]NVStorageSaveData done [10:33:58]ExternCall_PrintAddStr [10:33:58]wPrintStart [10:33:58]Write to MH i2c: 01 00 00 64 22 86 [10:33:58]OFD Sender: Processing packet 228145 [packets to send 38, broken 37] [10:33:58]ProducePacketName [10:33:58]name=ofd_packets/00228145 [10:33:58]OFD Sender: To server: pG, [10:33:58]CommunicateWithHost lk.salyk.kg:30040 [10:33:58]ConnectInit lk.salyk.kg [10:33:58]Write i2c OK [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: 01 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: 01 07 00 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: 01 07 00 64 22 00 00 00 00 00 FF 0F 9B [10:33:58]RasterBufferAndPrint [10:33:58]line Счет N : (1)1964511 [10:33:58]line ИНН: 02508201610067 [10:33:58]line Контрольно-Кассовый Чек [10:33:58]line ПРОДАЖА [10:33:58]line ТРК (МРК, ГНК) : 53 [10:33:58]line Товар: 2710124130 [10:33:58]line Аи-92-К-5 [10:33:58]line 5.980 * 66.90 [10:33:58]line = 400.06 [10:33:58]line НДС 12% НСП 1% [10:33:58]line > о реализуемом товаре [10:33:58]line ОКРУГЛЕНИЕ: -0.06 [10:33:58]line ИТОГО: 400.00 [10:33:58]line Внесено: 400.00 [10:33:58]line СДАЧА: 0.00 [10:33:58]line НСП 1% : 3.54 [10:33:58]line НДС 12% : 42.48 [10:33:58]line Наличными: 400.00 [10:33:58]line Безнал.: 0.00 [10:33:58]line Место: АЗС № 133 "Партнер Нефть" [10:33:58]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:33:58]line СНО: Общий режим [10:33:58]line Чек 109 22.10.2024 10:34 [10:33:58]line Смена: 535 ФФД: 1.0 [10:33:58]line ЗНМ: 0300000091 [10:33:58]line РНМ: 0000000000091685 [10:33:58]line Версия ККМ: 001 [10:33:58]line ФМ: 0000000000871839 [10:33:58]line ФД: 228145 [10:33:58]line ФПД: 26818437965737 [10:33:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103400&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228145&fm=26818437965737&tin=02508201610067®Number=0000000000091685&sum=40000 [10:33:58]written 0, free lines is 4095 [10:33:58]Connected sock=10 [10:33:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 DA 5B 07 01 04 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 6D 00 00 00 F4 03 04 00 98 7F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 31 7B 03 00 35 04 06 00 18 64 27 77 E7 A9 FF F3 E9 BC FE AA C1 51 [10:33:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 85 38 47 00 D5 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 31 7B 03 00 F4 03 04 00 90 2A 17 67 B6 04 01 00 00 44 21 C5 31 C0 8D DA D6 [10:33:58]CommunicateWithHost err = 0 [10:33:58]CheckOFDResponse [10:33:58]1017 (14) - 77093643461234 [10:33:58]1041 (16) - 0000000000871839 [10:33:58]1040 (4) - 228145 [10:33:58]1012 (4) - 22.10.2024 04:31 [10:33:58]1206 (1) - 0 [10:33:58]OFD Sender: Remove packet 228145 [10:33:58]ProducePacketName [10:33:58]name=ofd_packets/00228145 [10:33:58]NVStorageDeleteData [10:33:58]Write to MH i2c: 01 00 00 8E 22 B0 [10:33:58]Write i2c OK [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: 01 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: 01 07 00 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: 01 07 00 8E 22 00 00 00 00 00 CD 0C 90 [10:33:58]RasterBufferAndPrint [10:33:58]line [10:33:58]line [10:33:58]line [10:33:58]line [10:33:58]line [10:33:58]written 0, free lines is 3283 [10:33:58]MH_Cut [10:33:58]Write to MH i2c: D1 01 00 95 22 01 89 [10:33:58]Write i2c OK [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: D1 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: D1 01 00 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: D1 01 00 95 22 00 88 [10:33:58]Write to MH i2c: 01 00 00 96 22 B8 [10:33:58]Write i2c OK [10:33:58]MH_I2C_Read... [10:33:59]OFD Sender: No OFD packet to send [10:33:59]*** Cut start [10:33:59]*** Partial cut [10:33:59]*** CUTSNS_PIN = 1 [10:33:59]*** CUTSNS_PIN = 0 [10:33:59]*** Brake cut motor [10:34:00]Read from MH i2c: 01 [10:34:00]MH_I2C_Read... [10:34:00]*** Stop cut motor [10:34:00]*** Cut end [10:34:00]Read from MH i2c: 01 07 00 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: 01 07 00 96 22 00 00 00 00 00 FF 0F CD [10:34:00]process_action close_receipt done [10:34:00]requested_data is exist [10:34:00]produce_requested_data [10:34:00]requested_item fm.sn is exist - process it [10:34:00]wFMCommunicate request_size=4 [10:34:00]MH_SAM_APDU [10:34:00]CAPDU: 80 11 00 00 [10:34:00]Write to MH i2c: E2 08 00 97 22 80 11 00 00 00 00 00 00 33 [10:34:00]Write i2c OK [10:34:00]MH_I2C_Read... [10:34:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:00]Read from MH i2c: E2 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 17 00 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 17 00 97 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8A [10:34:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:34:00]wFMCommunicate OK [10:34:00]requested_item fd.num is exist - process it [10:34:00]SAM_PROTO_GetFieldsCounters [10:34:00]wFMCommunicate request_size=4 [10:34:00]MH_SAM_APDU [10:34:00]CAPDU: 80 13 00 00 [10:34:00]Write to MH i2c: E2 08 00 98 22 80 13 00 00 00 00 00 00 36 [10:34:00]Write i2c OK [10:34:00]MH_I2C_Read... [10:34:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:00]Read from MH i2c: E2 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 62 00 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 62 00 98 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 31 7B 03 00 0E 04 04 00 17 02 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 6E [10:34:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 31 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:34:00]wFMCommunicate OK [10:34:00]SAM_PROTO_GetFieldsCounters done [10:34:00]requested_item shift.num is exist - process it [10:34:00]requested_item shift.opened is exist - process it [10:34:00]req_shift_opened [10:34:00]FM_GetShiftState [10:34:00]SAM_PROTO_GetShiftState [10:34:00]wFMCommunicate request_size=4 [10:34:00]MH_SAM_APDU [10:34:00]CAPDU: 80 13 01 00 [10:34:00]Write to MH i2c: E2 08 00 99 22 80 13 01 00 00 00 00 00 38 [10:34:00]Write i2c OK [10:34:00]MH_I2C_Read... [10:34:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:00]Read from MH i2c: E2 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 0E 00 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 0E 00 99 22 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 FF [10:34:00]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:34:00]wFMCommunicate OK [10:34:00]SAM_PROTO_GetShiftState done [10:34:00]FM_GetShiftState done [10:34:00]req_shift_opened done [10:34:00]requested_item shift.open_date is exist - process it [10:34:00]req_shift_open_date [10:34:00]req_shift_open_date done [10:34:00]produce_requested_data done [10:34:00]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228145,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [10:34:00]process_action_free close_receipt [10:34:00]json_value_free [10:34:00]json_value_free done [10:34:00]process_json_proto returns [10:34:00]Send response to host [10:34:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228145,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [10:34:00]free response buf [10:34:00]execute_script done [10:34:00]execute_script returns [10:34:00]free content buf [10:34:00]Sock 7.Close socket [10:34:00]Sock 7.Thread stoped [10:34:04]OFD Sender: No OFD packet to send [10:34:09]OFD Sender: No OFD packet to send [10:34:14]OFD Sender: No OFD packet to send [10:34:19]OFD Sender: No OFD packet to send [10:34:24]OFD Sender: No OFD packet to send [10:34:29]OFD Sender: No OFD packet to send [10:34:34]OFD Sender: No OFD packet to send [10:34:39]OFD Sender: No OFD packet to send [10:34:44]OFD Sender: No OFD packet to send [10:34:49]OFD Sender: No OFD packet to send [10:34:54]OFD Sender: No OFD packet to send [10:34:57]accept exits with 9 [10:34:57]New connection [10:34:57]New thread 3067137380 created [10:34:57]Thread 3066994020 joined [10:34:57]Waiting for new connection... [10:34:57] Sock 9.Parse request [10:34:57]Sock 9.Check first char [10:34:57]Sock 9.First char is OK [10:34:57]request: POST /json_proto HTTP/1.0 [10:34:57]Method: POST [10:34:57]URL: /json_proto [10:34:57]Method is POST - this is cgi request [10:34:57]url: /json_proto [10:34:57]query_string will be loaded in cgi processing [10:34:57]execute_cgi json_proto POST (null) [10:34:57]execute_cgi path=json_proto method=POST [10:34:57]POST find Content-Length [10:34:57]Host: 172.17.44.195:8080 [10:34:57]Content-Length: 677 [10:34:57]Content-Type: application/json [10:34:57] [10:34:57]POST finish read [10:34:57]Found Content-Length = 677 [10:34:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.24, "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" ] } } [10:34:57]execute_script... [10:34: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)1964506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.24, "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" ] } } [10:34:57]POST & json_proto [10:34:57]process_json_proto [10:34:57]json parsed OK: [10:34:57]protocol is kg_v1.0 [10:34:57]action value=close_receipt [10:34:57]process_action close_receipt [10:34:57]cmd_close_receipt [10:34:57]MH_GetDate [10:34:57]Write to MH i2c: F0 00 00 9A 22 AB [10:34:57]Write i2c OK [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: F0 [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: F0 09 00 [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: F0 09 00 9A 22 00 D5 7F 17 67 82 C9 CF 66 06 [10:34:57]GetLastDocTimeStamp 1729593240 [10:34:57]current date 1729593301 [10:34:57]FM_GetShiftState [10:34:57]SAM_PROTO_GetShiftState [10:34:57]wFMCommunicate request_size=4 [10:34:57]MH_SAM_APDU [10:34:57]CAPDU: 80 13 01 00 [10:34:57]Write to MH i2c: E2 08 00 9B 22 80 13 01 00 00 00 00 00 3A [10:34:57]Write i2c OK [10:34:57]MH_I2C_Read... [10:34:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:57]Read from MH i2c: E2 [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: E2 0E 00 [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: E2 0E 00 9B 22 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 01 [10:34:57]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:34:57]wFMCommunicate OK [10:34:57]SAM_PROTO_GetShiftState done [10:34:57]FM_GetShiftState done [10:34:57]opened in 1729555538 [10:34:57]opened+sec_in_day 1729641938 [10:34:57]quantity*price = 200023 [10:34:57]sum+1 = 200025 [10:34:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 110 22.10.2024 10:35 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228146 ФПД: 238813622402753 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103501&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228146&fm=238813622402753&tin=02508201610067®Number=0000000000091685&sum=200000 [10:34:59]StoreToDocumentArchive [10:34:59]shift 535 fd 228146 [10:34:59]save to /storage/0535/doc_00228146 [10:34:59]save last doc name /storage/0535/doc_00228146 to /storage/kkm_last_doc_name [10:34:59]save OK [10:34:59]Clear old archive folders... [10:34:59]ProcessDocumentItem done err = 0, tmpTLVsize=245 [10:34:59]tlvbuf is 0088CC80 [10:34:59]SAM_PROTO_ClearQueue [10:34:59]wFMCommunicate request_size=4 [10:34:59]MH_SAM_APDU [10:34:59]CAPDU: 80 09 00 00 [10:34:59]Write to MH i2c: E2 08 00 A8 22 80 09 00 00 00 00 00 00 3C [10:34:59]Write i2c OK [10:34:59]MH_I2C_Read... [10:34:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:59]Read from MH i2c: E2 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: E2 03 00 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: E2 03 00 A8 22 00 90 00 3E [10:34:59]RAPDU: 90 00 [10:34:59]wFMCommunicate OK [10:34:59]SAM_PROTO_ClearQueue done [10:34:59]KKMCreateOFDPacket [10:34:59]OFDProtocolAddRootSTLVToBuf [10:34:59]FM_MakeSignedData [10:34:59]FM_MakeSignedData [10:34:59]SAM_PROTO_SignData [10:34:59]wFMCommunicate request_size=4 [10:34:59]MH_SAM_APDU [10:34:59]CAPDU: 80 0D 01 02 [10:34:59]Write to MH i2c: E2 08 00 A9 22 80 0D 01 02 00 00 00 00 44 [10:34:59]Write i2c OK [10:34:59]MH_I2C_Read... [10:34:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:59]Read from MH i2c: E2 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: E2 03 00 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: E2 03 00 A9 22 00 90 00 3F [10:34:59]RAPDU: 90 00 [10:34:59]wFMCommunicate OK [10:34:59]wFMCommunicate request_size=254 [10:34:59]MH_SAM_APDU [10:34:59]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 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 6E 00 00 00 F4 03 04 00 D5 7F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 32 7B 03 00 35 04 06 00 D9 33 21 21 7E C1 [10:34:59]Write to MH i2c: E2 01 01 AA 22 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 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 6E 00 00 00 F4 03 04 00 D5 7F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 32 7B 03 00 35 04 06 00 D9 33 21 21 7E C1 00 00 BA [10:34:59]Write i2c OK [10:34:59]MH_I2C_Read... [10:34:59]OFD Sender: No OFD packet to send [10:34:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:59]Read from MH i2c: E2 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: E2 03 00 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: E2 03 00 AA 22 00 90 00 40 [10:34:59]RAPDU: 90 00 [10:34:59]wFMCommunicate OK [10:34:59]wFMCommunicate request_size=4 [10:34:59]MH_SAM_APDU [10:34:59]CAPDU: 80 0D 03 02 [10:34:59]Write to MH i2c: E2 08 00 AB 22 80 0D 03 02 00 00 00 00 48 [10:34:59]Write i2c OK [10:34:59]MH_I2C_Read... [10:34:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:59]Read from MH i2c: E2 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: E2 0B 00 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: E2 0B 00 AB 22 00 49 1A 97 60 EB 38 76 8C 90 00 C8 [10:34:59]RAPDU: 49 1A 97 60 EB 38 76 8C 90 00 [10:34:59]wFMCommunicate OK [10:34:59]SAM_PROTO_SignData done [10:34:59]FM_MakeSignedData done [10:34:59]CreateOFDProtocolMessage [10:34:59]wFMCommunicate request_size=4 [10:34:59]MH_SAM_APDU [10:34:59]CAPDU: 80 11 00 00 [10:34:59]Write to MH i2c: E2 08 00 AC 22 80 11 00 00 00 00 00 00 48 [10:34:59]Write i2c OK [10:34:59]MH_I2C_Read... [10:34:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:59]Read from MH i2c: E2 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: E2 17 00 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: E2 17 00 AC 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9F [10:34:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:34:59]wFMCommunicate OK [10:34:59]CreateOFDProtocolMessage done [10:34:59]OFDSenderStorePacket 228146 [10:34:59]StoreOFDPacket docnum=228146 [10:34:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 41 11 01 01 F4 CB 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 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 6E 00 00 00 F4 03 04 00 D5 7F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 32 7B 03 00 35 04 06 00 D9 33 21 21 7E C1 49 1A 97 60 EB 38 76 8C [10:34:59]CheckFolder [10:34:59]dirname=/storage/ofd_packets [10:34:59]CheckFolder done [10:34:59]ProducePacketName [10:34:59]name=ofd_packets/00228146 [10:34:59]NVStorageSaveData ofd_packets/00228146 [10:34:59]File name is /storage/ofd_packets/00228146 [10:34:59]Write 295 bytes [10:34:59]NVStorageSaveData done [10:34:59]OFDSenderStorePacket done [10:34:59]KKMCreateOFDPacket done [10:34:59]NVStorageSaveData kkm_last_timestamp [10:34:59]File name is /storage/kkm_last_timestamp [10:34:59]Write 4 bytes [10:34:59]NVStorageSaveData done [10:34:59]ExternCall_PrintAddStr [10:34:59]wPrintStart [10:34:59]Write to MH i2c: 01 00 00 AD 22 CF [10:34:59]Write i2c OK [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: 01 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: 01 07 00 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: 01 07 00 AD 22 00 00 00 00 00 FF 0F E4 [10:34:59]RasterBufferAndPrint [10:34:59]line Счет N : (1)1964506 [10:34:59]line ИНН: 02508201610067 [10:34:59]line Контрольно-Кассовый Чек [10:34:59]line ПРОДАЖА [10:34:59]line ТРК (МРК, ГНК) : 71 [10:34:59]line Товар: 2711129700 [10:34:59]line ГАЗ [10:34:59]line 51.420 * 38.90 [10:34:59]line = 2000.24 [10:34:59]line НДС 12% НСП 1% [10:34:59]line > о реализуемом товаре [10:34:59]line ОКРУГЛЕНИЕ: -0.24 [10:34:59]line ИТОГО: 2000.00 [10:34:59]line Внесено: 2000.00 [10:34:59]line СДАЧА: 0.00 [10:34:59]line НСП 1% : 17.70 [10:34:59]line НДС 12% : 212.41 [10:34:59]line Наличными: 2000.00 [10:34:59]line Безнал.: 0.00 [10:34:59]line Место: АЗС № 133 "Партнер Нефть" [10:34:59]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:34:59]line СНО: Общий режим [10:34:59]line Чек 110 22.10.2024 10:35 [10:34:59]line Смена: 535 ФФД: 1.0 [10:34:59]line ЗНМ: 0300000091 [10:34:59]line РНМ: 0000000000091685 [10:34:59]line Версия ККМ: 001 [10:34:59]line ФМ: 0000000000871839 [10:34:59]line ФД: 228146 [10:34:59]line ФПД: 238813622402753 [10:34:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103501&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228146&fm=238813622402753&tin=02508201610067®Number=0000000000091685&sum=200000 [10:34:59]written 0, free lines is 4095 [10:34:59]OFD Sender: Processing packet 228146 [packets to send 38, broken 37] [10:34:59]ProducePacketName [10:34:59]name=ofd_packets/00228146 [10:34:59]OFD Sender: To server: pG, [10:34:59]CommunicateWithHost lk.salyk.kg:30040 [10:34:59]ConnectInit lk.salyk.kg [10:34:59]Connected sock=10 [10:34:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 41 11 01 01 F4 CB 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 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 6E 00 00 00 F4 03 04 00 D5 7F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 32 7B 03 00 35 04 06 00 D9 33 21 21 7E C1 49 1A 97 60 EB 38 76 8C [10:34:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 26 B3 47 00 52 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 32 7B 03 00 F4 03 04 00 CD 2A 17 67 B6 04 01 00 00 93 99 CE 5E C7 92 DA 21 [10:34:59]CommunicateWithHost err = 0 [10:34:59]CheckOFDResponse [10:34:59]1017 (14) - 77093643461234 [10:34:59]1041 (16) - 0000000000871839 [10:34:59]1040 (4) - 228146 [10:34:59]1012 (4) - 22.10.2024 04:32 [10:34:59]1206 (1) - 0 [10:34:59]OFD Sender: Remove packet 228146 [10:34:59]ProducePacketName [10:34:59]name=ofd_packets/00228146 [10:34:59]NVStorageDeleteData [10:34:59]Write to MH i2c: 01 00 00 D7 22 F9 [10:34:59]Write i2c OK [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: 01 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: 01 07 00 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: 01 07 00 D7 22 00 00 00 00 00 D6 0C E2 [10:34:59]RasterBufferAndPrint [10:34:59]line [10:34:59]line [10:34:59]line [10:34:59]line [10:34:59]line [10:34:59]written 0, free lines is 3293 [10:34:59]MH_Cut [10:34:59]Write to MH i2c: D1 01 00 DE 22 01 D2 [10:34:59]Write i2c OK [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: D1 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: D1 01 00 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: D1 01 00 DE 22 00 D1 [10:34:59]Write to MH i2c: 01 00 00 DF 22 01 [10:34:59]Write i2c OK [10:34:59]MH_I2C_Read... [10:35:00]OFD Sender: No OFD packet to send [10:35:00]*** Cut start [10:35:00]*** Partial cut [10:35:00]*** CUTSNS_PIN = 1 [10:35:00]*** CUTSNS_PIN = 0 [10:35:01]*** Brake cut motor [10:35:01]Read from MH i2c: 01 [10:35:01]MH_I2C_Read... [10:35:01]*** Stop cut motor [10:35:01]*** Cut end [10:35:01]Read from MH i2c: 01 07 00 [10:35:01]MH_I2C_Read... [10:35:01]Read from MH i2c: 01 07 00 DF 22 00 00 00 00 00 FF 0F 16 [10:35:01]process_action close_receipt done [10:35:01]requested_data is exist [10:35:01]produce_requested_data [10:35:01]requested_item fm.sn is exist - process it [10:35:01]wFMCommunicate request_size=4 [10:35:01]MH_SAM_APDU [10:35:01]CAPDU: 80 11 00 00 [10:35:01]Write to MH i2c: E2 08 00 E0 22 80 11 00 00 00 00 00 00 7C [10:35:01]Write i2c OK [10:35:01]MH_I2C_Read... [10:35:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:01]Read from MH i2c: E2 [10:35:01]MH_I2C_Read... [10:35:01]Read from MH i2c: E2 17 00 [10:35:01]MH_I2C_Read... [10:35:01]Read from MH i2c: E2 17 00 E0 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D3 [10:35:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:35:01]wFMCommunicate OK [10:35:01]requested_item fd.num is exist - process it [10:35:01]SAM_PROTO_GetFieldsCounters [10:35:01]wFMCommunicate request_size=4 [10:35:01]MH_SAM_APDU [10:35:01]CAPDU: 80 13 00 00 [10:35:01]Write to MH i2c: E2 08 00 E1 22 80 13 00 00 00 00 00 00 7F [10:35:01]Write i2c OK [10:35:01]MH_I2C_Read... [10:35:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:01]Read from MH i2c: E2 [10:35:01]MH_I2C_Read... [10:35:01]Read from MH i2c: E2 62 00 [10:35:01]MH_I2C_Read... [10:35:01]Read from MH i2c: E2 62 00 E1 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 32 7B 03 00 0E 04 04 00 17 02 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 BB [10:35:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 32 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:35:01]wFMCommunicate OK [10:35:01]SAM_PROTO_GetFieldsCounters done [10:35:01]requested_item shift.num is exist - process it [10:35:01]requested_item shift.opened is exist - process it [10:35:01]req_shift_opened [10:35:01]FM_GetShiftState [10:35:01]SAM_PROTO_GetShiftState [10:35:01]wFMCommunicate request_size=4 [10:35:01]MH_SAM_APDU [10:35:01]CAPDU: 80 13 01 00 [10:35:01]Write to MH i2c: E2 08 00 E2 22 80 13 01 00 00 00 00 00 81 [10:35:01]Write i2c OK [10:35:01]MH_I2C_Read... [10:35:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:01]Read from MH i2c: E2 [10:35:01]MH_I2C_Read... [10:35:01]Read from MH i2c: E2 0E 00 [10:35:01]MH_I2C_Read... [10:35:01]Read from MH i2c: E2 0E 00 E2 22 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 48 [10:35:01]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:35:01]wFMCommunicate OK [10:35:01]SAM_PROTO_GetShiftState done [10:35:01]FM_GetShiftState done [10:35:01]req_shift_opened done [10:35:01]requested_item shift.open_date is exist - process it [10:35:01]req_shift_open_date [10:35:01]req_shift_open_date done [10:35:01]produce_requested_data done [10:35:01]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228146,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [10:35:01]process_action_free close_receipt [10:35:01]json_value_free [10:35:01]json_value_free done [10:35:01]process_json_proto returns [10:35:01]Send response to host [10:35:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228146,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [10:35:01]free response buf [10:35:01]execute_script done [10:35:01]execute_script returns [10:35:01]free content buf [10:35:01]Sock 9.Close socket [10:35:01]Sock 9.Thread stoped [10:35:05]OFD Sender: No OFD packet to send [10:35:10]OFD Sender: No OFD packet to send [10:35:15]OFD Sender: No OFD packet to send [10:35:20]OFD Sender: No OFD packet to send [10:35:25]OFD Sender: No OFD packet to send [10:35:25]accept exits with 7 [10:35:25]New connection [10:35:25]New thread 3066994020 created [10:35:25]Thread 3067137380 joined [10:35:25]Waiting for new connection... [10:35:25] Sock 7.Parse request [10:35:25]Sock 7.Check first char [10:35:25]Sock 7.First char is OK [10:35:25]request: POST /json_proto HTTP/1.0 [10:35:25]Method: POST [10:35:25]URL: /json_proto [10:35:25]Method is POST - this is cgi request [10:35:25]url: /json_proto [10:35:25]query_string will be loaded in cgi processing [10:35:25]execute_cgi json_proto POST (null) [10:35:25]execute_cgi path=json_proto method=POST [10:35:25]POST find Content-Length [10:35:25]Host: 172.17.44.195:8080 [10:35:25]Content-Length: 791 [10:35:25]Content-Type: application/json [10:35:25] [10:35:25]POST finish read [10:35:25]Found Content-Length = 791 [10:35:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964508", "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" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53548", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:25]execute_script... [10: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)1964508", "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" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53548", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:25]POST & json_proto [10:35:25]process_json_proto [10:35:25]json parsed OK: [10:35:25]protocol is kg_v1.0 [10:35:25]action value=close_receipt [10:35:25]process_action close_receipt [10:35:25]cmd_close_receipt [10:35:25]MH_GetDate [10:35:25]Write to MH i2c: F0 00 00 E3 22 F4 [10:35:25]Write i2c OK [10:35:25]MH_I2C_Read... [10:35:25]Read from MH i2c: F0 [10:35:25]MH_I2C_Read... [10:35:25]Read from MH i2c: F0 09 00 [10:35:25]MH_I2C_Read... [10:35:25]Read from MH i2c: F0 09 00 E3 22 00 F1 7F 17 67 82 C9 CF 66 6B [10:35:25]GetLastDocTimeStamp 1729593301 [10:35:25]current date 1729593329 [10:35:25]FM_GetShiftState [10:35:25]SAM_PROTO_GetShiftState [10:35:25]wFMCommunicate request_size=4 [10:35:25]MH_SAM_APDU [10:35:25]CAPDU: 80 13 01 00 [10:35:25]Write to MH i2c: E2 08 00 E4 22 80 13 01 00 00 00 00 00 83 [10:35:25]Write i2c OK [10:35:25]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 E4 22 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 4A [10:35:26]RAPDU: 09 00 01 52 EC 16 67 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]opened in 1729555538 [10:35:26]opened+sec_in_day 1729641938 [10:35:26]quantity*price = 0 [10:35:26]sum+1 = 1 [10:35:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 111 22.10.2024 10:35 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливная Карта 53548 ФМ: 0000000000871839 ФД: 228147 ФПД: 178381935382016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103529&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228147&fm=178381935382016&tin=02508201610067®Number=0000000000091685&sum=0 [10:35:27]StoreToDocumentArchive [10:35:27]shift 535 fd 228147 [10:35:27]save to /storage/0535/doc_00228147 [10:35:27]save last doc name /storage/0535/doc_00228147 to /storage/kkm_last_doc_name [10:35:27]save OK [10:35:27]Clear old archive folders... [10:35:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:35:27]tlvbuf is 00895800 [10:35:27]SAM_PROTO_ClearQueue [10:35:27]wFMCommunicate request_size=4 [10:35:27]MH_SAM_APDU [10:35:27]CAPDU: 80 09 00 00 [10:35:27]Write to MH i2c: E2 08 00 F1 22 80 09 00 00 00 00 00 00 85 [10:35:27]Write i2c OK [10:35:27]MH_I2C_Read... [10:35:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:27]Read from MH i2c: E2 [10:35:27]MH_I2C_Read... [10:35:27]Read from MH i2c: E2 03 00 [10:35:27]MH_I2C_Read... [10:35:27]Read from MH i2c: E2 03 00 F1 22 00 90 00 87 [10:35:27]RAPDU: 90 00 [10:35:27]wFMCommunicate OK [10:35:27]SAM_PROTO_ClearQueue done [10:35:27]KKMCreateOFDPacket [10:35:27]OFDProtocolAddRootSTLVToBuf [10:35:27]FM_MakeSignedData [10:35:27]FM_MakeSignedData [10:35:27]SAM_PROTO_SignData [10:35:27]wFMCommunicate request_size=4 [10:35:27]MH_SAM_APDU [10:35:27]CAPDU: 80 0D 01 02 [10:35:27]Write to MH i2c: E2 08 00 F2 22 80 0D 01 02 00 00 00 00 8D [10:35:27]Write i2c OK [10:35:27]MH_I2C_Read... [10:35:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:27]Read from MH i2c: E2 [10:35:27]MH_I2C_Read... [10:35:27]Read from MH i2c: E2 03 00 [10:35:27]MH_I2C_Read... [10:35:27]Read from MH i2c: E2 03 00 F2 22 00 90 00 88 [10:35:27]RAPDU: 90 00 [10:35:27]wFMCommunicate OK [10:35:27]wFMCommunicate request_size=255 [10:35:27]MH_SAM_APDU [10:35: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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 F1 7F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 33 7B 03 00 35 04 06 00 A2 3C C7 E4 [10:35:27]Write to MH i2c: E2 02 01 F3 22 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 F1 7F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 33 7B 03 00 35 04 06 00 A2 3C C7 E4 00 00 C9 [10:35:27]Write i2c OK [10:35:27]MH_I2C_Read... [10:35:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:27]Read from MH i2c: E2 [10:35:27]MH_I2C_Read... [10:35:27]Read from MH i2c: E2 03 00 [10:35:27]MH_I2C_Read... [10:35:27]Read from MH i2c: E2 03 00 F3 22 00 90 00 89 [10:35:27]RAPDU: 90 00 [10:35:27]wFMCommunicate OK [10:35:27]wFMCommunicate request_size=7 [10:35:27]MH_SAM_APDU [10:35:27]CAPDU: 80 0D 02 02 02 8E 00 [10:35:27]Write to MH i2c: E2 0A 00 F4 22 80 0D 02 02 02 00 8E 00 00 00 22 [10:35:27]Write i2c OK [10:35:27]MH_I2C_Read... [10:35:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:27]Read from MH i2c: E2 [10:35:27]MH_I2C_Read... [10:35:27]Read from MH i2c: E2 03 00 [10:35:27]MH_I2C_Read... [10:35:27]Read from MH i2c: E2 03 00 F4 22 00 90 00 8A [10:35:27]RAPDU: 90 00 [10:35:27]wFMCommunicate OK [10:35:27]wFMCommunicate request_size=4 [10:35:27]MH_SAM_APDU [10:35:27]CAPDU: 80 0D 03 02 [10:35:27]Write to MH i2c: E2 08 00 F5 22 80 0D 03 02 00 00 00 00 92 [10:35:27]Write i2c OK [10:35:27]MH_I2C_Read... [10:35:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:27]Read from MH i2c: E2 [10:35:27]MH_I2C_Read... [10:35:27]Read from MH i2c: E2 0B 00 [10:35:27]MH_I2C_Read... [10:35:27]Read from MH i2c: E2 0B 00 F5 22 00 70 6D 97 AE F8 06 39 25 90 00 11 [10:35:27]RAPDU: 70 6D 97 AE F8 06 39 25 90 00 [10:35:27]wFMCommunicate OK [10:35:27]SAM_PROTO_SignData done [10:35:27]FM_MakeSignedData done [10:35:27]CreateOFDProtocolMessage [10:35:27]wFMCommunicate request_size=4 [10:35:27]MH_SAM_APDU [10:35:27]CAPDU: 80 11 00 00 [10:35:27]Write to MH i2c: E2 08 00 F6 22 80 11 00 00 00 00 00 00 92 [10:35:27]Write i2c OK [10:35:27]MH_I2C_Read... [10:35:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:27]Read from MH i2c: E2 [10:35:27]MH_I2C_Read... [10:35:27]Read from MH i2c: E2 17 00 [10:35:27]MH_I2C_Read... [10:35:27]Read from MH i2c: E2 17 00 F6 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E9 [10:35:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:35:27]wFMCommunicate OK [10:35:27]CreateOFDProtocolMessage done [10:35:27]OFDSenderStorePacket 228147 [10:35:27]StoreOFDPacket docnum=228147 [10:35:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 D7 9C 04 01 F1 1F 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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 F1 7F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 33 7B 03 00 35 04 06 00 A2 3C C7 E4 8E 00 70 6D 97 AE F8 06 39 25 [10:35:27]CheckFolder [10:35:27]dirname=/storage/ofd_packets [10:35:27]CheckFolder done [10:35:27]ProducePacketName [10:35:27]name=ofd_packets/00228147 [10:35:27]NVStorageSaveData ofd_packets/00228147 [10:35:27]File name is /storage/ofd_packets/00228147 [10:35:27]Write 298 bytes [10:35:27]NVStorageSaveData done [10:35:27]OFDSenderStorePacket done [10:35:27]KKMCreateOFDPacket done [10:35:27]NVStorageSaveData kkm_last_timestamp [10:35:27]File name is /storage/kkm_last_timestamp [10:35:27]Write 4 bytes [10:35:27]NVStorageSaveData done [10:35:27]ExternCall_PrintAddStr [10:35:27]wPrintStart [10:35:27]Write to MH i2c: 01 00 00 F7 22 19 [10:35:27]Write i2c OK [10:35:27]MH_I2C_Read... [10:35:27]Read from MH i2c: 01 [10:35:27]MH_I2C_Read... [10:35:27]Read from MH i2c: 01 07 00 [10:35:27]MH_I2C_Read... [10:35:27]Read from MH i2c: 01 07 00 F7 22 00 00 00 00 00 FF 0F 2E [10:35:27]RasterBufferAndPrint [10:35:27]line Счет N : (1)1964508 [10:35:27]line ИНН: 02508201610067 [10:35:27]line Контрольно-Кассовый Чек [10:35:27]line ПРОДАЖА [10:35:27]line ТРК (МРК, ГНК) : 21 [10:35:27]line Товар: 2710194210 [10:35:27]line ДТ-К-5 [10:35:27]line 100.000 * 0.00 [10:35:27]line = 0.00 [10:35:27]line НДС 12% НСП 1% [10:35:27]line > о реализуемом товаре [10:35:27]line ИТОГО: 0.00 [10:35:27]line НСП 1% : 0.00 [10:35:27]line НДС 12% : 0.00 [10:35:27]line Наличными: 0.00 [10:35:27]line Безнал.: 0.00 [10:35:27]line Место: АЗС № 133 "Партнер Нефть" [10:35:27]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:35:27]line СНО: Общий режим [10:35:27]line Чек 111 22.10.2024 10:35 [10:35:27]line Смена: 535 ФФД: 1.0 [10:35:27]line ЗНМ: 0300000091 [10:35:27]line РНМ: 0000000000091685 [10:35:27]line Версия ККМ: 001 [10:35:27]line Талоны: Топливная Карта [10:35:27]line 53548 [10:35:27]line ФМ: 0000000000871839 [10:35:27]line ФД: 228147 [10:35:27]line ФПД: 178381935382016 [10:35:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103529&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228147&fm=178381935382016&tin=02508201610067®Number=0000000000091685&sum=0 [10:35:27]OFD Sender: Processing packet 228147 [packets to send 38, broken 37] [10:35:27]ProducePacketName [10:35:27]name=ofd_packets/00228147 [10:35:27]OFD Sender: To server: pG, [10:35:27]CommunicateWithHost lk.salyk.kg:30040 [10:35:27]ConnectInit lk.salyk.kg [10:35:27]written 0, free lines is 4095 [10:35:28]Connected sock=10 [10:35:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 D7 9C 04 01 F1 1F 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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 F1 7F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 33 7B 03 00 35 04 06 00 A2 3C C7 E4 8E 00 70 6D 97 AE F8 06 39 25 [10:35:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 01 C4 47 00 F2 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 33 7B 03 00 F4 03 04 00 EA 2A 17 67 B6 04 01 00 00 58 52 D7 4D 74 94 F4 36 [10:35:28]CommunicateWithHost err = 0 [10:35:28]CheckOFDResponse [10:35:28]1017 (14) - 77093643461234 [10:35:28]1041 (16) - 0000000000871839 [10:35:28]1040 (4) - 228147 [10:35:28]1012 (4) - 22.10.2024 04:32 [10:35:28]1206 (1) - 0 [10:35:28]OFD Sender: Remove packet 228147 [10:35:28]ProducePacketName [10:35:28]name=ofd_packets/00228147 [10:35:28]NVStorageDeleteData [10:35:28]Write to MH i2c: 01 00 00 20 23 43 [10:35:28]Write i2c OK [10:35:28]MH_I2C_Read... [10:35:28]Read from MH i2c: 01 [10:35:28]MH_I2C_Read... [10:35:28]Read from MH i2c: 01 07 00 [10:35:28]MH_I2C_Read... [10:35:28]Read from MH i2c: 01 07 00 20 23 00 00 00 00 00 DE 0C 34 [10:35:28]RasterBufferAndPrint [10:35:28]line [10:35:28]line [10:35:28]line [10:35:28]line [10:35:28]line [10:35:28]written 0, free lines is 3301 [10:35:28]MH_Cut [10:35:28]Write to MH i2c: D1 01 00 27 23 01 1C [10:35:28]Write i2c OK [10:35:28]MH_I2C_Read... [10:35:28]Read from MH i2c: D1 [10:35:28]MH_I2C_Read... [10:35:28]Read from MH i2c: D1 01 00 [10:35:28]MH_I2C_Read... [10:35:28]Read from MH i2c: D1 01 00 27 23 00 1B [10:35:28]Write to MH i2c: 01 00 00 28 23 4B [10:35:28]Write i2c OK [10:35:28]MH_I2C_Read... [10:35:28]OFD Sender: No OFD packet to send [10:35:29]*** Cut start [10:35:29]*** Partial cut [10:35:29]*** CUTSNS_PIN = 1 [10:35:29]*** CUTSNS_PIN = 0 [10:35:29]*** Brake cut motor [10:35:29]Read from MH i2c: 01 [10:35:29]MH_I2C_Read... [10:35:29]*** Stop cut motor [10:35:29]*** Cut end [10:35:29]Read from MH i2c: 01 07 00 [10:35:29]MH_I2C_Read... [10:35:29]Read from MH i2c: 01 07 00 28 23 00 00 00 00 00 FF 0F 60 [10:35:29]process_action close_receipt done [10:35:29]requested_data is exist [10:35:29]produce_requested_data [10:35:29]requested_item fm.sn is exist - process it [10:35:29]wFMCommunicate request_size=4 [10:35:29]MH_SAM_APDU [10:35:29]CAPDU: 80 11 00 00 [10:35:29]Write to MH i2c: E2 08 00 29 23 80 11 00 00 00 00 00 00 C6 [10:35:29]Write i2c OK [10:35:29]MH_I2C_Read... [10:35:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:29]Read from MH i2c: E2 [10:35:29]MH_I2C_Read... [10:35:29]Read from MH i2c: E2 17 00 [10:35:29]MH_I2C_Read... [10:35:29]Read from MH i2c: E2 17 00 29 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1D [10:35:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:35:29]wFMCommunicate OK [10:35:29]requested_item fd.num is exist - process it [10:35:29]SAM_PROTO_GetFieldsCounters [10:35:29]wFMCommunicate request_size=4 [10:35:29]MH_SAM_APDU [10:35:29]CAPDU: 80 13 00 00 [10:35:29]Write to MH i2c: E2 08 00 2A 23 80 13 00 00 00 00 00 00 C9 [10:35:29]Write i2c OK [10:35:29]MH_I2C_Read... [10:35:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:29]Read from MH i2c: E2 [10:35:29]MH_I2C_Read... [10:35:29]Read from MH i2c: E2 62 00 [10:35:29]MH_I2C_Read... [10:35:29]Read from MH i2c: E2 62 00 2A 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 33 7B 03 00 0E 04 04 00 17 02 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 09 [10:35:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 33 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:35:29]wFMCommunicate OK [10:35:29]SAM_PROTO_GetFieldsCounters done [10:35:29]requested_item shift.num is exist - process it [10:35:29]requested_item shift.opened is exist - process it [10:35:29]req_shift_opened [10:35:29]FM_GetShiftState [10:35:29]SAM_PROTO_GetShiftState [10:35:29]wFMCommunicate request_size=4 [10:35:29]MH_SAM_APDU [10:35:29]CAPDU: 80 13 01 00 [10:35:30]Write to MH i2c: E2 08 00 2B 23 80 13 01 00 00 00 00 00 CB [10:35:30]Write i2c OK [10:35:30]MH_I2C_Read... [10:35:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:30]Read from MH i2c: E2 [10:35:30]MH_I2C_Read... [10:35:30]Read from MH i2c: E2 0E 00 [10:35:30]MH_I2C_Read... [10:35:30]Read from MH i2c: E2 0E 00 2B 23 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 92 [10:35:30]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:35:30]wFMCommunicate OK [10:35:30]SAM_PROTO_GetShiftState done [10:35:30]FM_GetShiftState done [10:35:30]req_shift_opened done [10:35:30]requested_item shift.open_date is exist - process it [10:35:30]req_shift_open_date [10:35:30]req_shift_open_date done [10:35:30]produce_requested_data done [10:35:30]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228147,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [10:35:30]process_action_free close_receipt [10:35:30]json_value_free [10:35:30]json_value_free done [10:35:30]process_json_proto returns [10:35:30]Send response to host [10:35:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228147,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [10:35:30]free response buf [10:35:30]execute_script done [10:35:30]execute_script returns [10:35:30]free content buf [10:35:30]Sock 7.Close socket [10:35:30]Sock 7.Thread stoped [10:35:33]OFD Sender: No OFD packet to send [10:35:36]accept exits with 9 [10:35:36]New connection [10:35:36]New thread 3067137380 created [10:35:36]Thread 3066994020 joined [10:35:36]Waiting for new connection... [10:35:36] Sock 9.Parse request [10:35:36]Sock 9.Check first char [10:35:36]Sock 9.First char is OK [10:35:36]request: POST /json_proto HTTP/1.0 [10:35:36]Method: POST [10:35:36]URL: /json_proto [10:35:36]Method is POST - this is cgi request [10:35:36]url: /json_proto [10:35:36]query_string will be loaded in cgi processing [10:35:36]execute_cgi json_proto POST (null) [10:35:36]execute_cgi path=json_proto method=POST [10:35:36]POST find Content-Length [10:35:36]Host: 172.17.44.195:8080 [10:35:36]Content-Length: 841 [10:35:36]Content-Type: application/json [10:35:36] [10:35:36]POST finish read [10:35:36]Found Content-Length = 841 [10:35:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964510", "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" : 76.20, "quantity" : 52.500, "sum" : 4000.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" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:36]execute_script... [10:35:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964510", "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" : 76.20, "quantity" : 52.500, "sum" : 4000.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" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:36]POST & json_proto [10:35:36]process_json_proto [10:35:36]json parsed OK: [10:35:36]protocol is kg_v1.0 [10:35:36]action value=close_receipt [10:35:36]process_action close_receipt [10:35:36]cmd_close_receipt [10:35:36]MH_GetDate [10:35:36]Write to MH i2c: F0 00 00 2C 23 3E [10:35:36]Write i2c OK [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: F0 [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: F0 09 00 [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: F0 09 00 2C 23 00 FC 7F 17 67 82 C9 CF 66 C0 [10:35:36]GetLastDocTimeStamp 1729593329 [10:35:36]current date 1729593340 [10:35:36]FM_GetShiftState [10:35:36]SAM_PROTO_GetShiftState [10:35:36]wFMCommunicate request_size=4 [10:35:36]MH_SAM_APDU [10:35:36]CAPDU: 80 13 01 00 [10:35:36]Write to MH i2c: E2 08 00 2D 23 80 13 01 00 00 00 00 00 CD [10:35:36]Write i2c OK [10:35:36]MH_I2C_Read... [10:35:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:36]Read from MH i2c: E2 [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: E2 0E 00 [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: E2 0E 00 2D 23 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 94 [10:35:36]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:35:36]wFMCommunicate OK [10:35:36]SAM_PROTO_GetShiftState done [10:35:36]FM_GetShiftState done [10:35:36]opened in 1729555538 [10:35:36]opened+sec_in_day 1729641938 [10:35:36]quantity*price = 400050 [10:35:36]sum+1 = 400051 [10:35:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.50 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 0.00 Безнал.: 4000.50 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 112 22.10.2024 10:35 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000871839 ФД: 228148 ФПД: 226332824756574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103540&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228148&fm=226332824756574&tin=02508201610067®Number=0000000000091685&sum=400050 [10:35:37]StoreToDocumentArchive [10:35:37]shift 535 fd 228148 [10:35:37]save to /storage/0535/doc_00228148 [10:35:37]save last doc name /storage/0535/doc_00228148 to /storage/kkm_last_doc_name [10:35:37]save OK [10:35:37]Clear old archive folders... [10:35:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:35:37]tlvbuf is 008E7690 [10:35:37]SAM_PROTO_ClearQueue [10:35:37]wFMCommunicate request_size=4 [10:35:37]MH_SAM_APDU [10:35:37]CAPDU: 80 09 00 00 [10:35:37]Write to MH i2c: E2 08 00 3A 23 80 09 00 00 00 00 00 00 CF [10:35:37]Write i2c OK [10:35:37]MH_I2C_Read... [10:35:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:37]Read from MH i2c: E2 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: E2 03 00 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: E2 03 00 3A 23 00 90 00 D1 [10:35:37]RAPDU: 90 00 [10:35:37]wFMCommunicate OK [10:35:37]SAM_PROTO_ClearQueue done [10:35:37]KKMCreateOFDPacket [10:35:37]OFDProtocolAddRootSTLVToBuf [10:35:37]FM_MakeSignedData [10:35:37]FM_MakeSignedData [10:35:37]SAM_PROTO_SignData [10:35:37]wFMCommunicate request_size=4 [10:35:37]MH_SAM_APDU [10:35:37]CAPDU: 80 0D 01 02 [10:35:37]Write to MH i2c: E2 08 00 3B 23 80 0D 01 02 00 00 00 00 D7 [10:35:37]Write i2c OK [10:35:37]MH_I2C_Read... [10:35:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:37]Read from MH i2c: E2 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: E2 03 00 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: E2 03 00 3B 23 00 90 00 D2 [10:35:37]RAPDU: 90 00 [10:35:37]wFMCommunicate OK [10:35:37]wFMCommunicate request_size=255 [10:35:37]MH_SAM_APDU [10:35:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 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 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 FC 7F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 34 7B 03 00 35 04 06 00 CD D9 37 9E [10:35:37]Write to MH i2c: E2 02 01 3C 23 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 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 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 FC 7F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 34 7B 03 00 35 04 06 00 CD D9 37 9E 00 00 9C [10:35:37]Write i2c OK [10:35:37]MH_I2C_Read... [10:35:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:38]Read from MH i2c: E2 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: E2 03 00 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: E2 03 00 3C 23 00 90 00 D3 [10:35:38]RAPDU: 90 00 [10:35:38]wFMCommunicate OK [10:35:38]wFMCommunicate request_size=7 [10:35:38]MH_SAM_APDU [10:35:38]CAPDU: 80 0D 02 02 02 E1 5E [10:35:38]Write to MH i2c: E2 0A 00 3D 23 80 0D 02 02 02 00 E1 5E 00 00 1D [10:35:38]Write i2c OK [10:35:38]MH_I2C_Read... [10:35:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:38]Read from MH i2c: E2 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: E2 03 00 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: E2 03 00 3D 23 00 90 00 D4 [10:35:38]RAPDU: 90 00 [10:35:38]wFMCommunicate OK [10:35:38]wFMCommunicate request_size=4 [10:35:38]MH_SAM_APDU [10:35:38]CAPDU: 80 0D 03 02 [10:35:38]Write to MH i2c: E2 08 00 3E 23 80 0D 03 02 00 00 00 00 DC [10:35:38]Write i2c OK [10:35:38]MH_I2C_Read... [10:35:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:38]Read from MH i2c: E2 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: E2 0B 00 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: E2 0B 00 3E 23 00 BC 02 06 CC 30 2F 00 89 90 00 55 [10:35:38]RAPDU: BC 02 06 CC 30 2F 00 89 90 00 [10:35:38]wFMCommunicate OK [10:35:38]SAM_PROTO_SignData done [10:35:38]FM_MakeSignedData done [10:35:38]CreateOFDProtocolMessage [10:35:38]wFMCommunicate request_size=4 [10:35:38]MH_SAM_APDU [10:35:38]CAPDU: 80 11 00 00 [10:35:38]Write to MH i2c: E2 08 00 3F 23 80 11 00 00 00 00 00 00 DC [10:35:38]Write i2c OK [10:35:38]MH_I2C_Read... [10:35:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:38]Read from MH i2c: E2 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: E2 17 00 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: E2 17 00 3F 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 33 [10:35:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:35:38]wFMCommunicate OK [10:35:38]CreateOFDProtocolMessage done [10:35:38]OFDSenderStorePacket 228148 [10:35:38]StoreOFDPacket docnum=228148 [10:35:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 60 B8 04 01 3C 2D 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 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 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 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 FC 7F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 34 7B 03 00 35 04 06 00 CD D9 37 9E E1 5E BC 02 06 CC 30 2F 00 89 [10:35:38]CheckFolder [10:35:38]dirname=/storage/ofd_packets [10:35:38]CheckFolder done [10:35:38]ProducePacketName [10:35:38]name=ofd_packets/00228148 [10:35:38]NVStorageSaveData ofd_packets/00228148 [10:35:38]File name is /storage/ofd_packets/00228148 [10:35:38]Write 298 bytes [10:35:38]NVStorageSaveData done [10:35:38]OFDSenderStorePacket done [10:35:38]KKMCreateOFDPacket done [10:35:38]NVStorageSaveData kkm_last_timestamp [10:35:38]File name is /storage/kkm_last_timestamp [10:35:38]Write 4 bytes [10:35:38]NVStorageSaveData done [10:35:38]ExternCall_PrintAddStr [10:35:38]wPrintStart [10:35:38]Write to MH i2c: 01 00 00 40 23 63 [10:35:38]Write i2c OK [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: 01 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: 01 07 00 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: 01 07 00 40 23 00 00 00 00 00 FF 0F 78 [10:35:38]RasterBufferAndPrint [10:35:38]line Счет N : (1)1964510 [10:35:38]line ИНН: 02508201610067 [10:35:38]line Контрольно-Кассовый Чек [10:35:38]line ПРОДАЖА [10:35:38]line ТРК (МРК, ГНК) : 11 [10:35:38]line Товар: 2710194210 [10:35:38]line ДТ-К-5 [10:35:38]line 52.500 * 76.20 [10:35:38]line = 4000.50 [10:35:38]line НДС 12% НСП 1% [10:35:38]line > о реализуемом товаре [10:35:38]line ИТОГО: 4000.50 [10:35:38]line НСП 1% : 35.40 [10:35:38]line НДС 12% : 424.83 [10:35:38]line Наличными: 0.00 [10:35:38]line Безнал.: 4000.50 [10:35:38]line Место: АЗС № 133 "Партнер Нефть" [10:35:38]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:35:38]line СНО: Общий режим [10:35:38]line Чек 112 22.10.2024 10:35 [10:35:38]line Смена: 535 ФФД: 1.0 [10:35:38]line ЗНМ: 0300000091 [10:35:38]line РНМ: 0000000000091685 [10:35:38]line Версия ККМ: 001 [10:35:38]line Платежная система: АКБ Кыргызстан [10:35:38]line ФМ: 0000000000871839 [10:35:38]line ФД: 228148 [10:35:38]line ФПД: 226332824756574 [10:35:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103540&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228148&fm=226332824756574&tin=02508201610067®Number=0000000000091685&sum=400050 [10:35:38]OFD Sender: Processing packet 228148 [packets to send 38, broken 37] [10:35:38]ProducePacketName [10:35:38]name=ofd_packets/00228148 [10:35:38]OFD Sender: To server: pG, [10:35:38]CommunicateWithHost lk.salyk.kg:30040 [10:35:38]ConnectInit lk.salyk.kg [10:35:38]written 0, free lines is 4095 [10:35:38]Connected sock=10 [10:35:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 60 B8 04 01 3C 2D 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 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 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 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 FC 7F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 34 7B 03 00 35 04 06 00 CD D9 37 9E E1 5E BC 02 06 CC 30 2F 00 89 [10:35:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 66 14 47 00 F0 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 34 7B 03 00 F4 03 04 00 F4 2A 17 67 B6 04 01 00 00 83 CF BC FE EC 10 10 A9 [10:35:39]CommunicateWithHost err = 0 [10:35:39]CheckOFDResponse [10:35:39]1017 (14) - 77093643461234 [10:35:39]1041 (16) - 0000000000871839 [10:35:39]1040 (4) - 228148 [10:35:39]1012 (4) - 22.10.2024 04:32 [10:35:39]1206 (1) - 0 [10:35:39]OFD Sender: Remove packet 228148 [10:35:39]ProducePacketName [10:35:39]name=ofd_packets/00228148 [10:35:39]NVStorageDeleteData [10:35:39]Write to MH i2c: 01 00 00 69 23 8C [10:35:39]Write i2c OK [10:35:39]MH_I2C_Read... [10:35:39]Read from MH i2c: 01 [10:35:39]MH_I2C_Read... [10:35:39]Read from MH i2c: 01 07 00 [10:35:39]MH_I2C_Read... [10:35:39]Read from MH i2c: 01 07 00 69 23 00 00 00 00 00 F6 0C 95 [10:35:39]RasterBufferAndPrint [10:35:39]line [10:35:39]line [10:35:39]line [10:35:39]line [10:35:39]line [10:35:39]written 0, free lines is 3326 [10:35:39]MH_Cut [10:35:39]Write to MH i2c: D1 01 00 70 23 01 65 [10:35:39]Write i2c OK [10:35:39]MH_I2C_Read... [10:35:39]Read from MH i2c: D1 [10:35:39]MH_I2C_Read... [10:35:39]Read from MH i2c: D1 01 00 [10:35:39]MH_I2C_Read... [10:35:39]Read from MH i2c: D1 01 00 70 23 00 64 [10:35:39]Write to MH i2c: 01 00 00 71 23 94 [10:35:39]Write i2c OK [10:35:39]MH_I2C_Read... [10:35:39]OFD Sender: No OFD packet to send [10:35:39]*** Cut start [10:35:39]*** Partial cut [10:35:39]*** CUTSNS_PIN = 1 [10:35:39]*** CUTSNS_PIN = 0 [10:35:40]*** Brake cut motor [10:35:40]Read from MH i2c: 01 [10:35:40]MH_I2C_Read... [10:35:40]*** Stop cut motor [10:35:40]*** Cut end [10:35:40]Read from MH i2c: 01 07 00 [10:35:40]MH_I2C_Read... [10:35:40]Read from MH i2c: 01 07 00 71 23 00 00 00 00 00 FF 0F A9 [10:35:40]process_action close_receipt done [10:35:40]requested_data is exist [10:35:40]produce_requested_data [10:35:40]requested_item fm.sn is exist - process it [10:35:40]wFMCommunicate request_size=4 [10:35:40]MH_SAM_APDU [10:35:40]CAPDU: 80 11 00 00 [10:35:40]Write to MH i2c: E2 08 00 72 23 80 11 00 00 00 00 00 00 0F [10:35:40]Write i2c OK [10:35:40]MH_I2C_Read... [10:35:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:40]Read from MH i2c: E2 [10:35:40]MH_I2C_Read... [10:35:40]Read from MH i2c: E2 17 00 [10:35:40]MH_I2C_Read... [10:35:40]Read from MH i2c: E2 17 00 72 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 66 [10:35:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:35:40]wFMCommunicate OK [10:35:40]requested_item fd.num is exist - process it [10:35:40]SAM_PROTO_GetFieldsCounters [10:35:40]wFMCommunicate request_size=4 [10:35:40]MH_SAM_APDU [10:35:40]CAPDU: 80 13 00 00 [10:35:40]Write to MH i2c: E2 08 00 73 23 80 13 00 00 00 00 00 00 12 [10:35:40]Write i2c OK [10:35:40]MH_I2C_Read... [10:35:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:40]Read from MH i2c: E2 [10:35:40]MH_I2C_Read... [10:35:40]Read from MH i2c: E2 62 00 [10:35:40]MH_I2C_Read... [10:35:40]Read from MH i2c: E2 62 00 73 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 34 7B 03 00 0E 04 04 00 17 02 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 56 [10:35:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 34 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:35:40]wFMCommunicate OK [10:35:40]SAM_PROTO_GetFieldsCounters done [10:35:40]requested_item shift.num is exist - process it [10:35:40]requested_item shift.opened is exist - process it [10:35:40]req_shift_opened [10:35:40]FM_GetShiftState [10:35:40]SAM_PROTO_GetShiftState [10:35:40]wFMCommunicate request_size=4 [10:35:40]MH_SAM_APDU [10:35:40]CAPDU: 80 13 01 00 [10:35:40]Write to MH i2c: E2 08 00 74 23 80 13 01 00 00 00 00 00 14 [10:35:40]Write i2c OK [10:35:40]MH_I2C_Read... [10:35:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:40]Read from MH i2c: E2 [10:35:40]MH_I2C_Read... [10:35:40]Read from MH i2c: E2 0E 00 [10:35:40]MH_I2C_Read... [10:35:40]Read from MH i2c: E2 0E 00 74 23 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 DB [10:35:40]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:35:40]wFMCommunicate OK [10:35:40]SAM_PROTO_GetShiftState done [10:35:40]FM_GetShiftState done [10:35:40]req_shift_opened done [10:35:40]requested_item shift.open_date is exist - process it [10:35:40]req_shift_open_date [10:35:40]req_shift_open_date done [10:35:40]produce_requested_data done [10:35:40]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228148,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [10:35:40]process_action_free close_receipt [10:35:40]json_value_free [10:35:40]json_value_free done [10:35:40]process_json_proto returns [10:35:40]Send response to host [10:35:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228148,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [10:35:40]free response buf [10:35:40]execute_script done [10:35:40]execute_script returns [10:35:40]free content buf [10:35:40]Sock 9.Close socket [10:35:40]Sock 9.Thread stoped [10:35:44]OFD Sender: No OFD packet to send [10:35:49]OFD Sender: No OFD packet to send [10:35:54]OFD Sender: No OFD packet to send [10:35:55]recv_with_timeout no data received [10:35:59]OFD Sender: No OFD packet to send [10:36:04]OFD Sender: No OFD packet to send [10:36:09]OFD Sender: No OFD packet to send [10:36:10]recv_with_timeout no data received [10:36:14]OFD Sender: No OFD packet to send [10:36:19]OFD Sender: No OFD packet to send [10:36:24]OFD Sender: No OFD packet to send [10:36:29]OFD Sender: No OFD packet to send [10:36:34]OFD Sender: No OFD packet to send [10:36:37]recv_with_timeout no data received [10:36:39]OFD Sender: No OFD packet to send [10:36:44]OFD Sender: No OFD packet to send [10:36:49]OFD Sender: No OFD packet to send [10:36:54]OFD Sender: No OFD packet to send [10:36:59]OFD Sender: No OFD packet to send [10:37:04]accept exits with 7 [10:37:04]New connection [10:37:04]New thread 3066994020 created [10:37:04]Thread 3067137380 joined [10:37:04]Waiting for new connection... [10:37:04] Sock 7.Parse request [10:37:04]Sock 7.Check first char [10:37:04]Sock 7.First char is OK [10:37:04]request: POST /json_proto HTTP/1.0 [10:37:04]Method: POST [10:37:04]URL: /json_proto [10:37:04]Method is POST - this is cgi request [10:37:04]url: /json_proto [10:37:04]query_string will be loaded in cgi processing [10:37:04]execute_cgi json_proto POST (null) [10:37:04]execute_cgi path=json_proto method=POST [10:37:04]POST find Content-Length [10:37:04]Host: 172.17.44.195:8080 [10:37:04]Content-Length: 683 [10:37:04]Content-Type: application/json [10:37:04] [10:37:04]POST finish read [10:37:04]Found Content-Length = 683 [10:37:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:04]execute_script... [10:37: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)1964514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:04]POST & json_proto [10:37:04]process_json_proto [10:37:04]json parsed OK: [10:37:04]protocol is kg_v1.0 [10:37:04]action value=close_receipt [10:37:04]process_action close_receipt [10:37:04]cmd_close_receipt [10:37:04]MH_GetDate [10:37:04]Write to MH i2c: F0 00 00 75 23 87 [10:37:04]Write i2c OK [10:37:04]MH_I2C_Read... [10:37:04]Read from MH i2c: F0 [10:37:04]MH_I2C_Read... [10:37:04]Read from MH i2c: F0 09 00 [10:37:04]MH_I2C_Read... [10:37:04]Read from MH i2c: F0 09 00 75 23 00 53 80 17 67 82 C9 CF 66 61 [10:37:04]GetLastDocTimeStamp 1729593340 [10:37:04]current date 1729593427 [10:37:04]FM_GetShiftState [10:37:04]SAM_PROTO_GetShiftState [10:37:04]wFMCommunicate request_size=4 [10:37:04]MH_SAM_APDU [10:37:04]CAPDU: 80 13 01 00 [10:37:04]Write to MH i2c: E2 08 00 76 23 80 13 01 00 00 00 00 00 16 [10:37:04]Write i2c OK [10:37:04]MH_I2C_Read... [10:37:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:04]Read from MH i2c: E2 [10:37:04]MH_I2C_Read... [10:37:04]Read from MH i2c: E2 0E 00 [10:37:04]MH_I2C_Read... [10:37:04]Read from MH i2c: E2 0E 00 76 23 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 DD [10:37:04]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:37:04]wFMCommunicate OK [10:37:04]SAM_PROTO_GetShiftState done [10:37:04]FM_GetShiftState done [10:37:04]opened in 1729555538 [10:37:04]opened+sec_in_day 1729641938 [10:37:04]quantity*price = 100021 [10:37:04]sum+1 = 100023 [10:37:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 113 22.10.2024 10:37 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228149 ФПД: 244762750681983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103708&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228149&fm=244762750681983&tin=02508201610067®Number=0000000000091685&sum=100000 [10:37:05]StoreToDocumentArchive [10:37:05]shift 535 fd 228149 [10:37:05]save to /storage/0535/doc_00228149 [10:37:05]save last doc name /storage/0535/doc_00228149 to /storage/kkm_last_doc_name [10:37:05]save OK [10:37:05]Clear old archive folders... [10:37:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:37:05]tlvbuf is B6DD5580 [10:37:05]SAM_PROTO_ClearQueue [10:37:05]wFMCommunicate request_size=4 [10:37:05]MH_SAM_APDU [10:37:05]CAPDU: 80 09 00 00 [10:37:05]Write to MH i2c: E2 08 00 83 23 80 09 00 00 00 00 00 00 18 [10:37:05]Write i2c OK [10:37:05]MH_I2C_Read... [10:37:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:05]Read from MH i2c: E2 [10:37:05]MH_I2C_Read... [10:37:05]Read from MH i2c: E2 03 00 [10:37:05]MH_I2C_Read... [10:37:05]Read from MH i2c: E2 03 00 83 23 00 90 00 1A [10:37:05]RAPDU: 90 00 [10:37:05]wFMCommunicate OK [10:37:05]SAM_PROTO_ClearQueue done [10:37:05]KKMCreateOFDPacket [10:37:05]OFDProtocolAddRootSTLVToBuf [10:37:05]FM_MakeSignedData [10:37:05]FM_MakeSignedData [10:37:05]SAM_PROTO_SignData [10:37:05]wFMCommunicate request_size=4 [10:37:05]MH_SAM_APDU [10:37:05]CAPDU: 80 0D 01 02 [10:37:05]Write to MH i2c: E2 08 00 84 23 80 0D 01 02 00 00 00 00 20 [10:37:05]Write i2c OK [10:37:05]MH_I2C_Read... [10:37:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:05]Read from MH i2c: E2 [10:37:05]MH_I2C_Read... [10:37:05]Read from MH i2c: E2 03 00 [10:37:05]MH_I2C_Read... [10:37:05]Read from MH i2c: E2 03 00 84 23 00 90 00 1B [10:37:05]RAPDU: 90 00 [10:37:05]wFMCommunicate OK [10:37:05]wFMCommunicate request_size=255 [10:37:05]MH_SAM_APDU [10:37: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 54 80 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 35 7B 03 00 35 04 06 00 DE [10:37:05]Write to MH i2c: E2 02 01 85 23 80 0D 02 02 FA 00 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 54 80 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 35 7B 03 00 35 04 06 00 DE 00 00 41 [10:37:05]Write i2c OK [10:37:05]MH_I2C_Read... [10:37:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:05]Read from MH i2c: E2 [10:37:05]MH_I2C_Read... [10:37:05]Read from MH i2c: E2 03 00 [10:37:05]MH_I2C_Read... [10:37:05]Read from MH i2c: E2 03 00 85 23 00 90 00 1C [10:37:05]RAPDU: 90 00 [10:37:05]wFMCommunicate OK [10:37:05]wFMCommunicate request_size=10 [10:37:05]MH_SAM_APDU [10:37:05]CAPDU: 80 0D 02 02 05 9C 44 CF 03 7F [10:37:05]Write to MH i2c: E2 0D 00 86 23 80 0D 02 02 05 00 9C 44 CF 03 7F 00 00 5E [10:37:05]Write i2c OK [10:37:05]MH_I2C_Read... [10:37:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:06]Read from MH i2c: E2 [10:37:06]MH_I2C_Read... [10:37:06]Read from MH i2c: E2 03 00 [10:37:06]MH_I2C_Read... [10:37:06]Read from MH i2c: E2 03 00 86 23 00 90 00 1D [10:37:06]RAPDU: 90 00 [10:37:06]wFMCommunicate OK [10:37:06]wFMCommunicate request_size=4 [10:37:06]MH_SAM_APDU [10:37:06]CAPDU: 80 0D 03 02 [10:37:06]Write to MH i2c: E2 08 00 87 23 80 0D 03 02 00 00 00 00 25 [10:37:06]Write i2c OK [10:37:06]MH_I2C_Read... [10:37:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:06]Read from MH i2c: E2 [10:37:06]MH_I2C_Read... [10:37:06]Read from MH i2c: E2 0B 00 [10:37:06]MH_I2C_Read... [10:37:06]Read from MH i2c: E2 0B 00 87 23 00 8A BE 8B 0E EF 9E 64 75 90 00 6D [10:37:06]RAPDU: 8A BE 8B 0E EF 9E 64 75 90 00 [10:37:06]wFMCommunicate OK [10:37:06]SAM_PROTO_SignData done [10:37:06]FM_MakeSignedData done [10:37:06]CreateOFDProtocolMessage [10:37:06]wFMCommunicate request_size=4 [10:37:06]MH_SAM_APDU [10:37:06]CAPDU: 80 11 00 00 [10:37:06]Write to MH i2c: E2 08 00 88 23 80 11 00 00 00 00 00 00 25 [10:37:06]Write i2c OK [10:37:06]MH_I2C_Read... [10:37:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:06]Read from MH i2c: E2 [10:37:06]MH_I2C_Read... [10:37:06]Read from MH i2c: E2 17 00 [10:37:06]MH_I2C_Read... [10:37:06]Read from MH i2c: E2 17 00 88 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7C [10:37:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:37:06]wFMCommunicate OK [10:37:06]CreateOFDProtocolMessage done [10:37:06]OFDSenderStorePacket 228149 [10:37:06]StoreOFDPacket docnum=228149 [10:37:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 5B 83 07 01 2B 38 5A 03 01 00 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 54 80 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 35 7B 03 00 35 04 06 00 DE 9C 44 CF 03 7F 8A BE 8B 0E EF 9E 64 75 [10:37:06]CheckFolder [10:37:06]dirname=/storage/ofd_packets [10:37:06]CheckFolder done [10:37:06]ProducePacketName [10:37:06]name=ofd_packets/00228149 [10:37:06]NVStorageSaveData ofd_packets/00228149 [10:37:06]File name is /storage/ofd_packets/00228149 [10:37:06]Write 301 bytes [10:37:06]NVStorageSaveData done [10:37:06]OFDSenderStorePacket done [10:37:06]KKMCreateOFDPacket done [10:37:06]NVStorageSaveData kkm_last_timestamp [10:37:06]File name is /storage/kkm_last_timestamp [10:37:06]Write 4 bytes [10:37:06]NVStorageSaveData done [10:37:06]ExternCall_PrintAddStr [10:37:06]wPrintStart [10:37:06]Write to MH i2c: 01 00 00 89 23 AC [10:37:06]Write i2c OK [10:37:06]MH_I2C_Read... [10:37:06]Read from MH i2c: 01 [10:37:06]MH_I2C_Read... [10:37:06]Read from MH i2c: 01 07 00 [10:37:06]MH_I2C_Read... [10:37:06]Read from MH i2c: 01 07 00 89 23 00 00 00 00 00 FF 0F C1 [10:37:06]RasterBufferAndPrint [10:37:06]line Счет N : (1)1964514 [10:37:06]line ИНН: 02508201610067 [10:37:06]line Контрольно-Кассовый Чек [10:37:06]line ПРОДАЖА [10:37:06]line ТРК (МРК, ГНК) : 54 [10:37:06]line Товар: 2710124500 [10:37:06]line Аи-95-К-5 [10:37:06]line 13.480 * 74.20 [10:37:06]line = 1000.22 [10:37:06]line НДС 12% НСП 1% [10:37:06]line > о реализуемом товаре [10:37:06]line ОКРУГЛЕНИЕ: -0.22 [10:37:06]line ИТОГО: 1000.00 [10:37:06]line Внесено: 1000.00 [10:37:06]line СДАЧА: 0.00 [10:37:06]line НСП 1% : 8.85 [10:37:06]line НДС 12% : 106.22 [10:37:06]line Наличными: 1000.00 [10:37:06]line Безнал.: 0.00 [10:37:06]line Место: АЗС № 133 "Партнер Нефть" [10:37:06]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:37:06]line СНО: Общий режим [10:37:06]line Чек 113 22.10.2024 10:37 [10:37:06]line Смена: 535 ФФД: 1.0 [10:37:06]line ЗНМ: 0300000091 [10:37:06]line РНМ: 0000000000091685 [10:37:06]line Версия ККМ: 001 [10:37:06]line ФМ: 0000000000871839 [10:37:06]line ФД: 228149 [10:37:06]line ФПД: 244762750681983 [10:37:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103708&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228149&fm=244762750681983&tin=02508201610067®Number=0000000000091685&sum=100000 [10:37:06]OFD Sender: Processing packet 228149 [packets to send 38, broken 37] [10:37:06]ProducePacketName [10:37:06]name=ofd_packets/00228149 [10:37:06]OFD Sender: To server: pG, [10:37:06]CommunicateWithHost lk.salyk.kg:30040 [10:37:06]ConnectInit lk.salyk.kg [10:37:06]written 0, free lines is 4095 [10:37:06]Connected sock=10 [10:37:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 5B 83 07 01 2B 38 5A 03 01 00 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 54 80 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 35 7B 03 00 35 04 06 00 DE 9C 44 CF 03 7F 8A BE 8B 0E EF 9E 64 75 [10:37:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 BD F6 47 00 99 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 35 7B 03 00 F4 03 04 00 4C 2B 17 67 B6 04 01 00 00 85 4F 4B A1 A0 E1 8C 87 [10:37:06]CommunicateWithHost err = 0 [10:37:06]CheckOFDResponse [10:37:06]1017 (14) - 77093643461234 [10:37:06]1041 (16) - 0000000000871839 [10:37:06]1040 (4) - 228149 [10:37:06]1012 (4) - 22.10.2024 04:34 [10:37:06]1206 (1) - 0 [10:37:06]OFD Sender: Remove packet 228149 [10:37:06]ProducePacketName [10:37:06]name=ofd_packets/00228149 [10:37:06]NVStorageDeleteData [10:37:06]Write to MH i2c: 01 00 00 B3 23 D6 [10:37:06]Write i2c OK [10:37:06]MH_I2C_Read... [10:37:06]Read from MH i2c: 01 [10:37:06]MH_I2C_Read... [10:37:06]Read from MH i2c: 01 07 00 [10:37:06]MH_I2C_Read... [10:37:06]Read from MH i2c: 01 07 00 B3 23 00 00 00 00 00 E0 0C C9 [10:37:06]RasterBufferAndPrint [10:37:06]line [10:37:06]line [10:37:06]line [10:37:06]line [10:37:06]line [10:37:06]written 0, free lines is 3302 [10:37:06]MH_Cut [10:37:06]Write to MH i2c: D1 01 00 BA 23 01 AF [10:37:06]Write i2c OK [10:37:06]MH_I2C_Read... [10:37:06]Read from MH i2c: D1 [10:37:06]MH_I2C_Read... [10:37:06]Read from MH i2c: D1 01 00 [10:37:06]MH_I2C_Read... [10:37:06]Read from MH i2c: D1 01 00 BA 23 00 AE [10:37:06]Write to MH i2c: 01 00 00 BB 23 DE [10:37:06]Write i2c OK [10:37:06]MH_I2C_Read... [10:37:07]OFD Sender: No OFD packet to send [10:37:07]*** Cut start [10:37:07]*** Partial cut [10:37:07]*** CUTSNS_PIN = 1 [10:37:07]*** CUTSNS_PIN = 0 [10:37:07]*** Brake cut motor [10:37:08]Read from MH i2c: 01 [10:37:08]MH_I2C_Read... [10:37:08]*** Stop cut motor [10:37:08]*** Cut end [10:37:08]Read from MH i2c: 01 07 00 [10:37:08]MH_I2C_Read... [10:37:08]Read from MH i2c: 01 07 00 BB 23 00 00 00 00 00 FF 0F F3 [10:37:08]process_action close_receipt done [10:37:08]requested_data is exist [10:37:08]produce_requested_data [10:37:08]requested_item fm.sn is exist - process it [10:37:08]wFMCommunicate request_size=4 [10:37:08]MH_SAM_APDU [10:37:08]CAPDU: 80 11 00 00 [10:37:08]Write to MH i2c: E2 08 00 BC 23 80 11 00 00 00 00 00 00 59 [10:37:08]Write i2c OK [10:37:08]MH_I2C_Read... [10:37:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:08]Read from MH i2c: E2 [10:37:08]MH_I2C_Read... [10:37:08]Read from MH i2c: E2 17 00 [10:37:08]MH_I2C_Read... [10:37:08]Read from MH i2c: E2 17 00 BC 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B0 [10:37:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:37:08]wFMCommunicate OK [10:37:08]requested_item fd.num is exist - process it [10:37:08]SAM_PROTO_GetFieldsCounters [10:37:08]wFMCommunicate request_size=4 [10:37:08]MH_SAM_APDU [10:37:08]CAPDU: 80 13 00 00 [10:37:08]Write to MH i2c: E2 08 00 BD 23 80 13 00 00 00 00 00 00 5C [10:37:08]Write i2c OK [10:37:08]MH_I2C_Read... [10:37:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:08]Read from MH i2c: E2 [10:37:08]MH_I2C_Read... [10:37:08]Read from MH i2c: E2 62 00 [10:37:08]MH_I2C_Read... [10:37:08]Read from MH i2c: E2 62 00 BD 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 35 7B 03 00 0E 04 04 00 17 02 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 A4 [10:37:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 35 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:37:08]wFMCommunicate OK [10:37:08]SAM_PROTO_GetFieldsCounters done [10:37:08]requested_item shift.num is exist - process it [10:37:08]requested_item shift.opened is exist - process it [10:37:08]req_shift_opened [10:37:08]FM_GetShiftState [10:37:08]SAM_PROTO_GetShiftState [10:37:08]wFMCommunicate request_size=4 [10:37:08]MH_SAM_APDU [10:37:08]CAPDU: 80 13 01 00 [10:37:08]Write to MH i2c: E2 08 00 BE 23 80 13 01 00 00 00 00 00 5E [10:37:08]Write i2c OK [10:37:08]MH_I2C_Read... [10:37:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:08]Read from MH i2c: E2 [10:37:08]MH_I2C_Read... [10:37:08]Read from MH i2c: E2 0E 00 [10:37:08]MH_I2C_Read... [10:37:08]Read from MH i2c: E2 0E 00 BE 23 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 25 [10:37:08]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:37:08]wFMCommunicate OK [10:37:08]SAM_PROTO_GetShiftState done [10:37:08]FM_GetShiftState done [10:37:08]req_shift_opened done [10:37:08]requested_item shift.open_date is exist - process it [10:37:08]req_shift_open_date [10:37:08]req_shift_open_date done [10:37:08]produce_requested_data done [10:37:08]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228149,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [10:37:08]process_action_free close_receipt [10:37:08]json_value_free [10:37:08]json_value_free done [10:37:08]process_json_proto returns [10:37:08]Send response to host [10:37:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228149,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [10:37:08]free response buf [10:37:08]execute_script done [10:37:08]execute_script returns [10:37:08]free content buf [10:37:08]Sock 7.Close socket [10:37:08]Sock 7.Thread stoped [10:37:12]OFD Sender: No OFD packet to send [10:37:17]OFD Sender: No OFD packet to send [10:37:22]OFD Sender: No OFD packet to send [10:37:27]OFD Sender: No OFD packet to send [10:37:32]OFD Sender: No OFD packet to send [10:37:34]accept exits with 9 [10:37:34]New connection [10:37:34]New thread 3067137380 created [10:37:34]Thread 3066994020 joined [10:37:34]Waiting for new connection... [10:37:34] Sock 9.Parse request [10:37:34]Sock 9.Check first char [10:37:34]Sock 9.First char is OK [10:37:34]request: POST /json_proto HTTP/1.0 [10:37:34]Method: POST [10:37:34]URL: /json_proto [10:37:34]Method is POST - this is cgi request [10:37:34]url: /json_proto [10:37:34]query_string will be loaded in cgi processing [10:37:34]execute_cgi json_proto POST (null) [10:37:34]execute_cgi path=json_proto method=POST [10:37:34]POST find Content-Length [10:37:34]Host: 172.17.44.195:8080 [10:37:34]Content-Length: 678 [10:37:34]Content-Type: application/json [10:37:34] [10:37:34]POST finish read [10:37:34]Found Content-Length = 678 [10:37:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:34]execute_script... [10:37: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)1964515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:34]POST & json_proto [10:37:34]process_json_proto [10:37:34]json parsed OK: [10:37:34]protocol is kg_v1.0 [10:37:34]action value=close_receipt [10:37:34]process_action close_receipt [10:37:34]cmd_close_receipt [10:37:34]MH_GetDate [10:37:34]Write to MH i2c: F0 00 00 BF 23 D1 [10:37:34]Write i2c OK [10:37:34]MH_I2C_Read... [10:37:34]Read from MH i2c: F0 [10:37:34]MH_I2C_Read... [10:37:34]Read from MH i2c: F0 09 00 [10:37:34]MH_I2C_Read... [10:37:34]Read from MH i2c: F0 09 00 BF 23 00 72 80 17 67 82 C9 CF 66 CA [10:37:34]GetLastDocTimeStamp 1729593428 [10:37:34]current date 1729593458 [10:37:34]FM_GetShiftState [10:37:34]SAM_PROTO_GetShiftState [10:37:34]wFMCommunicate request_size=4 [10:37:34]MH_SAM_APDU [10:37:34]CAPDU: 80 13 01 00 [10:37:34]Write to MH i2c: E2 08 00 C0 23 80 13 01 00 00 00 00 00 60 [10:37:34]Write i2c OK [10:37:34]MH_I2C_Read... [10:37:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:34]Read from MH i2c: E2 [10:37:34]MH_I2C_Read... [10:37:34]Read from MH i2c: E2 0E 00 [10:37:34]MH_I2C_Read... [10:37:34]Read from MH i2c: E2 0E 00 C0 23 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 27 [10:37:34]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:37:34]wFMCommunicate OK [10:37:34]SAM_PROTO_GetShiftState done [10:37:34]FM_GetShiftState done [10:37:34]opened in 1729555538 [10:37:34]opened+sec_in_day 1729641938 [10:37:34]quantity*price = 50010 [10:37:34]sum+1 = 50012 [10:37:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 114 22.10.2024 10:37 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228150 ФПД: 67722178396561 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103738&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228150&fm=67722178396561&tin=02508201610067®Number=0000000000091685&sum=50000 [10:37:36]StoreToDocumentArchive [10:37:36]shift 535 fd 228150 [10:37:36]save to /storage/0535/doc_00228150 [10:37:36]save last doc name /storage/0535/doc_00228150 to /storage/kkm_last_doc_name [10:37:36]save OK [10:37:36]Clear old archive folders... [10:37:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:37:36]tlvbuf is 008E50B0 [10:37:36]SAM_PROTO_ClearQueue [10:37:36]wFMCommunicate request_size=4 [10:37:36]MH_SAM_APDU [10:37:36]CAPDU: 80 09 00 00 [10:37:36]Write to MH i2c: E2 08 00 CD 23 80 09 00 00 00 00 00 00 62 [10:37:36]Write i2c OK [10:37:36]MH_I2C_Read... [10:37:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:36]Read from MH i2c: E2 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: E2 03 00 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: E2 03 00 CD 23 00 90 00 64 [10:37:36]RAPDU: 90 00 [10:37:36]wFMCommunicate OK [10:37:36]SAM_PROTO_ClearQueue done [10:37:36]KKMCreateOFDPacket [10:37:36]OFDProtocolAddRootSTLVToBuf [10:37:36]FM_MakeSignedData [10:37:36]FM_MakeSignedData [10:37:36]SAM_PROTO_SignData [10:37:36]wFMCommunicate request_size=4 [10:37:36]MH_SAM_APDU [10:37:36]CAPDU: 80 0D 01 02 [10:37:36]Write to MH i2c: E2 08 00 CE 23 80 0D 01 02 00 00 00 00 6A [10:37:36]Write i2c OK [10:37:36]MH_I2C_Read... [10:37:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:36]Read from MH i2c: E2 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: E2 03 00 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: E2 03 00 CE 23 00 90 00 65 [10:37:36]RAPDU: 90 00 [10:37:36]wFMCommunicate OK [10:37:36]wFMCommunicate request_size=255 [10:37:36]MH_SAM_APDU [10:37: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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 72 80 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 36 7B 03 00 35 04 06 00 3D [10:37:36]Write to MH i2c: E2 02 01 CF 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 72 80 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 36 7B 03 00 35 04 06 00 3D 00 00 C5 [10:37:36]Write i2c OK [10:37:36]MH_I2C_Read... [10:37:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:36]Read from MH i2c: E2 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: E2 03 00 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: E2 03 00 CF 23 00 90 00 66 [10:37:36]RAPDU: 90 00 [10:37:36]wFMCommunicate OK [10:37:36]wFMCommunicate request_size=10 [10:37:36]MH_SAM_APDU [10:37:36]CAPDU: 80 0D 02 02 05 97 CC 63 01 91 [10:37:36]Write to MH i2c: E2 0D 00 D0 23 80 0D 02 02 05 00 97 CC 63 01 91 00 00 CF [10:37:36]Write i2c OK [10:37:36]MH_I2C_Read... [10:37:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:36]Read from MH i2c: E2 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: E2 03 00 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: E2 03 00 D0 23 00 90 00 67 [10:37:36]RAPDU: 90 00 [10:37:36]wFMCommunicate OK [10:37:36]wFMCommunicate request_size=4 [10:37:36]MH_SAM_APDU [10:37:36]CAPDU: 80 0D 03 02 [10:37:36]Write to MH i2c: E2 08 00 D1 23 80 0D 03 02 00 00 00 00 6F [10:37:36]Write i2c OK [10:37:36]MH_I2C_Read... [10:37:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:36]Read from MH i2c: E2 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: E2 0B 00 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: E2 0B 00 D1 23 00 BA 15 39 29 5C E8 E1 E8 90 00 AE [10:37:36]RAPDU: BA 15 39 29 5C E8 E1 E8 90 00 [10:37:36]wFMCommunicate OK [10:37:36]SAM_PROTO_SignData done [10:37:36]FM_MakeSignedData done [10:37:36]CreateOFDProtocolMessage [10:37:36]wFMCommunicate request_size=4 [10:37:36]MH_SAM_APDU [10:37:36]CAPDU: 80 11 00 00 [10:37:36]Write to MH i2c: E2 08 00 D2 23 80 11 00 00 00 00 00 00 6F [10:37:36]Write i2c OK [10:37:36]MH_I2C_Read... [10:37:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:36]Read from MH i2c: E2 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: E2 17 00 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: E2 17 00 D2 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C6 [10:37:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:37:36]wFMCommunicate OK [10:37:36]CreateOFDProtocolMessage done [10:37:36]OFDSenderStorePacket 228150 [10:37:36]StoreOFDPacket docnum=228150 [10:37:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 C2 73 07 01 2C 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 72 80 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 36 7B 03 00 35 04 06 00 3D 97 CC 63 01 91 BA 15 39 29 5C E8 E1 E8 [10:37:36]CheckFolder [10:37:36]dirname=/storage/ofd_packets [10:37:36]CheckFolder done [10:37:36]ProducePacketName [10:37:36]name=ofd_packets/00228150 [10:37:36]NVStorageSaveData ofd_packets/00228150 [10:37:36]File name is /storage/ofd_packets/00228150 [10:37:36]Write 301 bytes [10:37:36]NVStorageSaveData done [10:37:36]OFDSenderStorePacket done [10:37:36]KKMCreateOFDPacket done [10:37:36]NVStorageSaveData kkm_last_timestamp [10:37:36]File name is /storage/kkm_last_timestamp [10:37:36]Write 4 bytes [10:37:36]NVStorageSaveData done [10:37:36]ExternCall_PrintAddStr [10:37:36]wPrintStart [10:37:36]Write to MH i2c: 01 00 00 D3 23 F6 [10:37:36]Write i2c OK [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: 01 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: 01 07 00 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: 01 07 00 D3 23 00 00 00 00 00 FF 0F 0B [10:37:36]RasterBufferAndPrint [10:37:36]line Счет N : (1)1964515 [10:37:36]line ИНН: 02508201610067 [10:37:36]line Контрольно-Кассовый Чек [10:37:36]line ПРОДАЖА [10:37:36]line ТРК (МРК, ГНК) : 44 [10:37:36]line Товар: 2710124500 [10:37:36]line Аи-95-К-5 [10:37:36]line 6.740 * 74.20 [10:37:36]line = 500.11 [10:37:36]line НДС 12% НСП 1% [10:37:36]line > о реализуемом товаре [10:37:36]line ОКРУГЛЕНИЕ: -0.11 [10:37:36]line ИТОГО: 500.00 [10:37:36]line Внесено: 500.00 [10:37:36]line СДАЧА: 0.00 [10:37:36]line НСП 1% : 4.43 [10:37:36]line НДС 12% : 53.11 [10:37:36]line Наличными: 500.00 [10:37:36]line Безнал.: 0.00 [10:37:36]line Место: АЗС № 133 "Партнер Нефть" [10:37:36]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:37:36]line СНО: Общий режим [10:37:36]line Чек 114 22.10.2024 10:37 [10:37:36]line Смена: 535 ФФД: 1.0 [10:37:36]line ЗНМ: 0300000091 [10:37:36]line РНМ: 0000000000091685 [10:37:36]line Версия ККМ: 001 [10:37:36]line ФМ: 0000000000871839 [10:37:36]line ФД: 228150 [10:37:36]line ФПД: 67722178396561 [10:37:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103738&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228150&fm=67722178396561&tin=02508201610067®Number=0000000000091685&sum=50000 [10:37:36]OFD Sender: Processing packet 228150 [packets to send 38, broken 37] [10:37:36]ProducePacketName [10:37:36]name=ofd_packets/00228150 [10:37:36]OFD Sender: To server: pG, [10:37:36]CommunicateWithHost lk.salyk.kg:30040 [10:37:36]ConnectInit lk.salyk.kg [10:37:36]written 0, free lines is 4095 [10:37:37]Connected sock=10 [10:37:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 C2 73 07 01 2C 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 72 80 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 36 7B 03 00 35 04 06 00 3D 97 CC 63 01 91 BA 15 39 29 5C E8 E1 E8 [10:37:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 10 0D 47 00 97 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 38 37 31 38 33 39 10 04 04 00 36 7B 03 00 F4 03 04 00 6B 2B 17 67 B6 04 01 00 00 4A AD FC 7A 2A EF 77 B0 [10:37:37]CommunicateWithHost err = 0 [10:37:37]CheckOFDResponse [10:37:37]1017 (14) - 77093643461234 [10:37:37]1041 (16) - 0000000000871839 [10:37:37]1040 (4) - 228150 [10:37:37]1012 (4) - 22.10.2024 04:34 [10:37:37]1206 (1) - 0 [10:37:37]OFD Sender: Remove packet 228150 [10:37:37]ProducePacketName [10:37:37]name=ofd_packets/00228150 [10:37:37]NVStorageDeleteData [10:37:37]Write to MH i2c: 01 00 00 FD 23 20 [10:37:37]Write i2c OK [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: 01 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: 01 07 00 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: 01 07 00 FD 23 00 00 00 00 00 D7 0C 0A [10:37:37]RasterBufferAndPrint [10:37:37]line [10:37:37]line [10:37:37]line [10:37:37]line [10:37:37]line [10:37:37]written 0, free lines is 3293 [10:37:37]MH_Cut [10:37:37]Write to MH i2c: D1 01 00 04 24 01 FA [10:37:37]Write i2c OK [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: D1 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: D1 01 00 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: D1 01 00 04 24 00 F9 [10:37:37]Write to MH i2c: 01 00 00 05 24 29 [10:37:37]Write i2c OK [10:37:37]MH_I2C_Read... [10:37:37]OFD Sender: No OFD packet to send [10:37:38]*** Cut start [10:37:38]*** Partial cut [10:37:38]*** CUTSNS_PIN = 1 [10:37:38]*** CUTSNS_PIN = 0 [10:37:38]*** Brake cut motor [10:37:38]Read from MH i2c: 01 [10:37:38]MH_I2C_Read... [10:37:38]*** Stop cut motor [10:37:38]*** Cut end [10:37:38]Read from MH i2c: 01 07 00 [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: 01 07 00 05 24 00 00 00 00 00 FF 0F 3E [10:37:38]process_action close_receipt done [10:37:38]requested_data is exist [10:37:38]produce_requested_data [10:37:38]requested_item fm.sn is exist - process it [10:37:38]wFMCommunicate request_size=4 [10:37:38]MH_SAM_APDU [10:37:38]CAPDU: 80 11 00 00 [10:37:38]Write to MH i2c: E2 08 00 06 24 80 11 00 00 00 00 00 00 A4 [10:37:38]Write i2c OK [10:37:38]MH_I2C_Read... [10:37:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:38]Read from MH i2c: E2 [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: E2 17 00 [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: E2 17 00 06 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FB [10:37:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:37:38]wFMCommunicate OK [10:37:38]requested_item fd.num is exist - process it [10:37:38]SAM_PROTO_GetFieldsCounters [10:37:38]wFMCommunicate request_size=4 [10:37:38]MH_SAM_APDU [10:37:38]CAPDU: 80 13 00 00 [10:37:38]Write to MH i2c: E2 08 00 07 24 80 13 00 00 00 00 00 00 A7 [10:37:38]Write i2c OK [10:37:38]MH_I2C_Read... [10:37:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:38]Read from MH i2c: E2 [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: E2 62 00 [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: E2 62 00 07 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 36 7B 03 00 0E 04 04 00 17 02 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 F3 [10:37:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 36 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:37:38]wFMCommunicate OK [10:37:38]SAM_PROTO_GetFieldsCounters done [10:37:38]requested_item shift.num is exist - process it [10:37:38]requested_item shift.opened is exist - process it [10:37:38]req_shift_opened [10:37:38]FM_GetShiftState [10:37:38]SAM_PROTO_GetShiftState [10:37:38]wFMCommunicate request_size=4 [10:37:38]MH_SAM_APDU [10:37:38]CAPDU: 80 13 01 00 [10:37:38]Write to MH i2c: E2 08 00 08 24 80 13 01 00 00 00 00 00 A9 [10:37:38]Write i2c OK [10:37:38]MH_I2C_Read... [10:37:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:39]Read from MH i2c: E2 [10:37:39]MH_I2C_Read... [10:37:39]Read from MH i2c: E2 0E 00 [10:37:39]MH_I2C_Read... [10:37:39]Read from MH i2c: E2 0E 00 08 24 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 70 [10:37:39]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:37:39]wFMCommunicate OK [10:37:39]SAM_PROTO_GetShiftState done [10:37:39]FM_GetShiftState done [10:37:39]req_shift_opened done [10:37:39]requested_item shift.open_date is exist - process it [10:37:39]req_shift_open_date [10:37:39]req_shift_open_date done [10:37:39]produce_requested_data done [10:37:39]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228150,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [10:37:39]process_action_free close_receipt [10:37:39]json_value_free [10:37:39]json_value_free done [10:37:39]process_json_proto returns [10:37:39]Send response to host [10:37:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228150,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [10:37:39]free response buf [10:37:39]execute_script done [10:37:39]execute_script returns [10:37:39]free content buf [10:37:39]Sock 9.Close socket [10:37:39]Sock 9.Thread stoped [10:37:42]OFD Sender: No OFD packet to send [10:37:44]accept exits with 7 [10:37:44]New connection [10:37:44]New thread 3066994020 created [10:37:44]Thread 3067137380 joined [10:37:44]Waiting for new connection... [10:37:44] Sock 7.Parse request [10:37:44]Sock 7.Check first char [10:37:44]Sock 7.First char is OK [10:37:44]request: POST /json_proto HTTP/1.0 [10:37:44]Method: POST [10:37:44]URL: /json_proto [10:37:44]Method is POST - this is cgi request [10:37:44]url: /json_proto [10:37:44]query_string will be loaded in cgi processing [10:37:44]execute_cgi json_proto POST (null) [10:37:44]execute_cgi path=json_proto method=POST [10:37:44]POST find Content-Length [10:37:44]Host: 172.17.44.195:8080 [10:37:44]Content-Length: 673 [10:37:44]Content-Type: application/json [10:37:44] [10:37:44]POST finish read [10:37:44]Found Content-Length = 673 [10:37:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 23.140, "sum" : 900.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:44]execute_script... [10:37:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 23.140, "sum" : 900.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:44]POST & json_proto [10:37:44]process_json_proto [10:37:44]json parsed OK: [10:37:44]protocol is kg_v1.0 [10:37:44]action value=close_receipt [10:37:44]process_action close_receipt [10:37:44]cmd_close_receipt [10:37:44]MH_GetDate [10:37:44]Write to MH i2c: F0 00 00 09 24 1C [10:37:44]Write i2c OK [10:37:44]MH_I2C_Read... [10:37:44]Read from MH i2c: F0 [10:37:44]MH_I2C_Read... [10:37:44]Read from MH i2c: F0 09 00 [10:37:44]MH_I2C_Read... [10:37:44]Read from MH i2c: F0 09 00 09 24 00 7C 80 17 67 82 C9 CF 66 1F [10:37:44]GetLastDocTimeStamp 1729593458 [10:37:44]current date 1729593468 [10:37:44]FM_GetShiftState [10:37:44]SAM_PROTO_GetShiftState [10:37:44]wFMCommunicate request_size=4 [10:37:44]MH_SAM_APDU [10:37:44]CAPDU: 80 13 01 00 [10:37:44]Write to MH i2c: E2 08 00 0A 24 80 13 01 00 00 00 00 00 AB [10:37:44]Write i2c OK [10:37:44]MH_I2C_Read... [10:37:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:44]Read from MH i2c: E2 [10:37:44]MH_I2C_Read... [10:37:44]Read from MH i2c: E2 0E 00 [10:37:44]MH_I2C_Read... [10:37:44]Read from MH i2c: E2 0E 00 0A 24 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 72 [10:37:44]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:37:44]wFMCommunicate OK [10:37:44]SAM_PROTO_GetShiftState done [10:37:44]FM_GetShiftState done [10:37:44]opened in 1729555538 [10:37:44]opened+sec_in_day 1729641938 [10:37:44]quantity*price = 90014 [10:37:44]sum+1 = 90016 [10:37:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.59 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 115 22.10.2024 10:37 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228151 ФПД: 193792054856314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103748&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228151&fm=193792054856314&tin=02508201610067®Number=0000000000091685&sum=90000 [10:37:45]StoreToDocumentArchive [10:37:45]shift 535 fd 228151 [10:37:45]save to /storage/0535/doc_00228151 [10:37:45]save last doc name /storage/0535/doc_00228151 to /storage/kkm_last_doc_name [10:37:45]save OK [10:37:45]Clear old archive folders... [10:37:45]ProcessDocumentItem done err = 0, tmpTLVsize=245 [10:37:45]tlvbuf is 00A93D90 [10:37:45]SAM_PROTO_ClearQueue [10:37:45]wFMCommunicate request_size=4 [10:37:45]MH_SAM_APDU [10:37:45]CAPDU: 80 09 00 00 [10:37:45]Write to MH i2c: E2 08 00 17 24 80 09 00 00 00 00 00 00 AD [10:37:45]Write i2c OK [10:37:45]MH_I2C_Read... [10:37:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:45]Read from MH i2c: E2 [10:37:45]MH_I2C_Read... [10:37:45]Read from MH i2c: E2 03 00 [10:37:45]MH_I2C_Read... [10:37:45]Read from MH i2c: E2 03 00 17 24 00 90 00 AF [10:37:45]RAPDU: 90 00 [10:37:45]wFMCommunicate OK [10:37:45]SAM_PROTO_ClearQueue done [10:37:45]KKMCreateOFDPacket [10:37:45]OFDProtocolAddRootSTLVToBuf [10:37:45]FM_MakeSignedData [10:37:45]FM_MakeSignedData [10:37:45]SAM_PROTO_SignData [10:37:45]wFMCommunicate request_size=4 [10:37:45]MH_SAM_APDU [10:37:45]CAPDU: 80 0D 01 02 [10:37:45]Write to MH i2c: E2 08 00 18 24 80 0D 01 02 00 00 00 00 B5 [10:37:45]Write i2c OK [10:37:45]MH_I2C_Read... [10:37:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:46]Read from MH i2c: E2 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: E2 03 00 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: E2 03 00 18 24 00 90 00 B0 [10:37:46]RAPDU: 90 00 [10:37:46]wFMCommunicate OK [10:37:46]wFMCommunicate request_size=254 [10:37:46]MH_SAM_APDU [10:37:46]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 64 5A 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 9F 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 7C 80 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 37 7B 03 00 35 04 06 00 B0 40 BA 97 0A 7A [10:37:46]Write to MH i2c: E2 01 01 19 24 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 64 5A 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 9F 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 7C 80 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 37 7B 03 00 35 04 06 00 B0 40 BA 97 0A 7A 00 00 67 [10:37:46]Write i2c OK [10:37:46]MH_I2C_Read... [10:37:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:46]Read from MH i2c: E2 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: E2 03 00 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: E2 03 00 19 24 00 90 00 B1 [10:37:46]RAPDU: 90 00 [10:37:46]wFMCommunicate OK [10:37:46]wFMCommunicate request_size=4 [10:37:46]MH_SAM_APDU [10:37:46]CAPDU: 80 0D 03 02 [10:37:46]Write to MH i2c: E2 08 00 1A 24 80 0D 03 02 00 00 00 00 B9 [10:37:46]Write i2c OK [10:37:46]MH_I2C_Read... [10:37:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:46]Read from MH i2c: E2 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: E2 0B 00 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: E2 0B 00 1A 24 00 31 17 78 6C BD 85 FA BB 90 00 DD [10:37:46]RAPDU: 31 17 78 6C BD 85 FA BB 90 00 [10:37:46]wFMCommunicate OK [10:37:46]SAM_PROTO_SignData done [10:37:46]FM_MakeSignedData done [10:37:46]CreateOFDProtocolMessage [10:37:46]wFMCommunicate request_size=4 [10:37:46]MH_SAM_APDU [10:37:46]CAPDU: 80 11 00 00 [10:37:46]Write to MH i2c: E2 08 00 1B 24 80 11 00 00 00 00 00 00 B9 [10:37:46]Write i2c OK [10:37:46]MH_I2C_Read... [10:37:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:46]Read from MH i2c: E2 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: E2 17 00 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: E2 17 00 1B 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 10 [10:37:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:37:46]wFMCommunicate OK [10:37:46]CreateOFDProtocolMessage done [10:37:46]OFDSenderStorePacket 228151 [10:37:46]StoreOFDPacket docnum=228151 [10:37:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 D1 BE 01 01 B9 47 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 64 5A 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 9F 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 7C 80 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 37 7B 03 00 35 04 06 00 B0 40 BA 97 0A 7A 31 17 78 6C BD 85 FA BB [10:37:46]CheckFolder [10:37:46]dirname=/storage/ofd_packets [10:37:46]CheckFolder done [10:37:46]ProducePacketName [10:37:46]name=ofd_packets/00228151 [10:37:46]NVStorageSaveData ofd_packets/00228151 [10:37:46]File name is /storage/ofd_packets/00228151 [10:37:46]Write 295 bytes [10:37:46]NVStorageSaveData done [10:37:46]OFDSenderStorePacket done [10:37:46]KKMCreateOFDPacket done [10:37:46]NVStorageSaveData kkm_last_timestamp [10:37:46]File name is /storage/kkm_last_timestamp [10:37:46]Write 4 bytes [10:37:46]NVStorageSaveData done [10:37:46]ExternCall_PrintAddStr [10:37:46]wPrintStart [10:37:46]Write to MH i2c: 01 00 00 1C 24 40 [10:37:46]Write i2c OK [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: 01 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: 01 07 00 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: 01 07 00 1C 24 00 00 00 00 00 FF 0F 55 [10:37:46]RasterBufferAndPrint [10:37:46]line Счет N : (1)1964513 [10:37:46]line ИНН: 02508201610067 [10:37:46]line Контрольно-Кассовый Чек [10:37:46]line ПРОДАЖА [10:37:46]line ТРК (МРК, ГНК) : 71 [10:37:46]line Товар: 2711129700 [10:37:46]line ГАЗ [10:37:46]line 23.140 * 38.90 [10:37:46]line = 900.15 [10:37:46]line НДС 12% НСП 1% [10:37:46]line > о реализуемом товаре [10:37:46]line ОКРУГЛЕНИЕ: -0.15 [10:37:46]line ИТОГО: 900.00 [10:37:46]line Внесено: 900.00 [10:37:46]line СДАЧА: 0.00 [10:37:46]line НСП 1% : 7.97 [10:37:46]line НДС 12% : 95.59 [10:37:46]line Наличными: 900.00 [10:37:46]line Безнал.: 0.00 [10:37:46]line Место: АЗС № 133 "Партнер Нефть" [10:37:46]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:37:46]line СНО: Общий режим [10:37:46]line Чек 115 22.10.2024 10:37 [10:37:46]line Смена: 535 ФФД: 1.0 [10:37:46]line ЗНМ: 0300000091 [10:37:46]line РНМ: 0000000000091685 [10:37:46]line Версия ККМ: 001 [10:37:46]line ФМ: 0000000000871839 [10:37:46]line ФД: 228151 [10:37:46]line ФПД: 193792054856314 [10:37:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103748&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228151&fm=193792054856314&tin=02508201610067®Number=0000000000091685&sum=90000 [10:37:46]written 0, free lines is 4095 [10:37:46]OFD Sender: Processing packet 228151 [packets to send 38, broken 37] [10:37:46]ProducePacketName [10:37:46]name=ofd_packets/00228151 [10:37:46]OFD Sender: To server: pG, [10:37:46]CommunicateWithHost lk.salyk.kg:30040 [10:37:46]ConnectInit lk.salyk.kg [10:37:46]Connected sock=10 [10:37:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 D1 BE 01 01 B9 47 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 64 5A 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 9F 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 7C 80 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 37 7B 03 00 35 04 06 00 B0 40 BA 97 0A 7A 31 17 78 6C BD 85 FA BB [10:37:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 C1 94 47 00 3D 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 37 7B 03 00 F4 03 04 00 74 2B 17 67 B6 04 01 00 00 2C 89 2F 75 57 12 AB E0 [10:37:46]CommunicateWithHost err = 0 [10:37:46]CheckOFDResponse [10:37:46]1017 (14) - 77093643461234 [10:37:46]1041 (16) - 0000000000871839 [10:37:46]1040 (4) - 228151 [10:37:46]1012 (4) - 22.10.2024 04:35 [10:37:46]1206 (1) - 0 [10:37:46]OFD Sender: Remove packet 228151 [10:37:46]ProducePacketName [10:37:46]name=ofd_packets/00228151 [10:37:46]NVStorageDeleteData [10:37:46]Write to MH i2c: 01 00 00 46 24 6A [10:37:46]Write i2c OK [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: 01 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: 01 07 00 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: 01 07 00 46 24 00 00 00 00 00 DE 0C 5B [10:37:46]RasterBufferAndPrint [10:37:46]line [10:37:46]line [10:37:46]line [10:37:46]line [10:37:46]line [10:37:46]written 0, free lines is 3301 [10:37:46]MH_Cut [10:37:46]Write to MH i2c: D1 01 00 4D 24 01 43 [10:37:46]Write i2c OK [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: D1 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: D1 01 00 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: D1 01 00 4D 24 00 42 [10:37:46]Write to MH i2c: 01 00 00 4E 24 72 [10:37:46]Write i2c OK [10:37:46]MH_I2C_Read... [10:37:47]OFD Sender: No OFD packet to send [10:37:47]*** Cut start [10:37:47]*** Partial cut [10:37:47]*** CUTSNS_PIN = 1 [10:37:47]*** CUTSNS_PIN = 0 [10:37:47]*** Brake cut motor [10:37:48]Read from MH i2c: 01 [10:37:48]MH_I2C_Read... [10:37:48]*** Stop cut motor [10:37:48]*** Cut end [10:37:48]Read from MH i2c: 01 07 00 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: 01 07 00 4E 24 00 00 00 00 00 FF 0F 87 [10:37:48]process_action close_receipt done [10:37:48]requested_data is exist [10:37:48]produce_requested_data [10:37:48]requested_item fm.sn is exist - process it [10:37:48]wFMCommunicate request_size=4 [10:37:48]MH_SAM_APDU [10:37:48]CAPDU: 80 11 00 00 [10:37:48]Write to MH i2c: E2 08 00 4F 24 80 11 00 00 00 00 00 00 ED [10:37:48]Write i2c OK [10:37:48]MH_I2C_Read... [10:37:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:48]Read from MH i2c: E2 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: E2 17 00 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: E2 17 00 4F 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 44 [10:37:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:37:48]wFMCommunicate OK [10:37:48]requested_item fd.num is exist - process it [10:37:48]SAM_PROTO_GetFieldsCounters [10:37:48]wFMCommunicate request_size=4 [10:37:48]MH_SAM_APDU [10:37:48]CAPDU: 80 13 00 00 [10:37:48]Write to MH i2c: E2 08 00 50 24 80 13 00 00 00 00 00 00 F0 [10:37:48]Write i2c OK [10:37:48]MH_I2C_Read... [10:37:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:48]Read from MH i2c: E2 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: E2 62 00 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: E2 62 00 50 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 37 7B 03 00 0E 04 04 00 17 02 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 40 [10:37:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 37 7B 03 00 0E 04 04 00 17 02 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 [10:37:48]wFMCommunicate OK [10:37:48]SAM_PROTO_GetFieldsCounters done [10:37:48]requested_item shift.num is exist - process it [10:37:48]requested_item shift.opened is exist - process it [10:37:48]req_shift_opened [10:37:48]FM_GetShiftState [10:37:48]SAM_PROTO_GetShiftState [10:37:48]wFMCommunicate request_size=4 [10:37:48]MH_SAM_APDU [10:37:48]CAPDU: 80 13 01 00 [10:37:48]Write to MH i2c: E2 08 00 51 24 80 13 01 00 00 00 00 00 F2 [10:37:48]Write i2c OK [10:37:48]MH_I2C_Read... [10:37:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:48]Read from MH i2c: E2 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: E2 0E 00 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: E2 0E 00 51 24 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 B9 [10:37:48]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:37:48]wFMCommunicate OK [10:37:48]SAM_PROTO_GetShiftState done [10:37:48]FM_GetShiftState done [10:37:48]req_shift_opened done [10:37:48]requested_item shift.open_date is exist - process it [10:37:48]req_shift_open_date [10:37:48]req_shift_open_date done [10:37:48]produce_requested_data done [10:37:48]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228151,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [10:37:48]process_action_free close_receipt [10:37:48]json_value_free [10:37:48]json_value_free done [10:37:48]process_json_proto returns [10:37:48]Send response to host [10:37:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228151,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [10:37:48]free response buf [10:37:48]execute_script done [10:37:48]execute_script returns [10:37:48]free content buf [10:37:48]Sock 7.Close socket [10:37:48]Sock 7.Thread stoped [10:37:52]OFD Sender: No OFD packet to send [10:37:57]OFD Sender: No OFD packet to send [10:38:02]OFD Sender: No OFD packet to send [10:38:07]OFD Sender: No OFD packet to send [10:38:12]OFD Sender: No OFD packet to send [10:38:17]OFD Sender: No OFD packet to send [10:38:22]OFD Sender: No OFD packet to send [10:38:27]OFD Sender: No OFD packet to send [10:38:32]OFD Sender: No OFD packet to send [10:38:37]OFD Sender: No OFD packet to send [10:38:42]OFD Sender: No OFD packet to send [10:38:44]accept exits with 9 [10:38:44]New connection [10:38:44]New thread 3067137380 created [10:38:44]Thread 3066994020 joined [10:38:44]Waiting for new connection... [10:38:44] Sock 9.Parse request [10:38:44]Sock 9.Check first char [10:38:44]Sock 9.First char is OK [10:38:44]request: POST /json_proto HTTP/1.0 [10:38:44]Method: POST [10:38:44]URL: /json_proto [10:38:44]Method is POST - this is cgi request [10:38:44]url: /json_proto [10:38:44]query_string will be loaded in cgi processing [10:38:44]execute_cgi json_proto POST (null) [10:38:44]execute_cgi path=json_proto method=POST [10:38:44]POST find Content-Length [10:38:44]Host: 172.17.44.195:8080 [10:38:44]Content-Length: 791 [10:38:44]Content-Type: application/json [10:38:44] [10:38:44]POST finish read [10:38:44]Found Content-Length = 791 [10:38:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964512", "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" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53548", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:44]execute_script... [10:38: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)1964512", "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" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53548", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:44]POST & json_proto [10:38:44]process_json_proto [10:38:44]json parsed OK: [10:38:44]protocol is kg_v1.0 [10:38:44]action value=close_receipt [10:38:44]process_action close_receipt [10:38:44]cmd_close_receipt [10:38:44]MH_GetDate [10:38:44]Write to MH i2c: F0 00 00 52 24 65 [10:38:44]Write i2c OK [10:38:44]MH_I2C_Read... [10:38:44]Read from MH i2c: F0 [10:38:44]MH_I2C_Read... [10:38:44]Read from MH i2c: F0 09 00 [10:38:44]MH_I2C_Read... [10:38:44]Read from MH i2c: F0 09 00 52 24 00 B7 80 17 67 82 C9 CF 66 A3 [10:38:44]GetLastDocTimeStamp 1729593468 [10:38:44]current date 1729593527 [10:38:44]FM_GetShiftState [10:38:44]SAM_PROTO_GetShiftState [10:38:44]wFMCommunicate request_size=4 [10:38:44]MH_SAM_APDU [10:38:44]CAPDU: 80 13 01 00 [10:38:44]Write to MH i2c: E2 08 00 53 24 80 13 01 00 00 00 00 00 F4 [10:38:44]Write i2c OK [10:38:44]MH_I2C_Read... [10:38:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:44]Read from MH i2c: E2 [10:38:44]MH_I2C_Read... [10:38:44]Read from MH i2c: E2 0E 00 [10:38:44]MH_I2C_Read... [10:38:44]Read from MH i2c: E2 0E 00 53 24 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 BB [10:38:44]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:38:44]wFMCommunicate OK [10:38:44]SAM_PROTO_GetShiftState done [10:38:44]FM_GetShiftState done [10:38:44]opened in 1729555538 [10:38:44]opened+sec_in_day 1729641938 [10:38:44]quantity*price = 0 [10:38:44]sum+1 = 1 [10:38:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 116 22.10.2024 10:38 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливная Карта 53548 ФМ: 0000000000871839 ФД: 228152 ФПД: 85091103532276 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103847&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228152&fm=85091103532276&tin=02508201610067®Number=0000000000091685&sum=0 [10:38:45]StoreToDocumentArchive [10:38:45]shift 535 fd 228152 [10:38:45]save to /storage/0535/doc_00228152 [10:38:45]save last doc name /storage/0535/doc_00228152 to /storage/kkm_last_doc_name [10:38:45]save OK [10:38:45]Clear old archive folders... [10:38:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:38:45]tlvbuf is B6F85D70 [10:38:45]SAM_PROTO_ClearQueue [10:38:45]wFMCommunicate request_size=4 [10:38:45]MH_SAM_APDU [10:38:45]CAPDU: 80 09 00 00 [10:38:45]Write to MH i2c: E2 08 00 60 24 80 09 00 00 00 00 00 00 F6 [10:38:45]Write i2c OK [10:38:45]MH_I2C_Read... [10:38:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:45]Read from MH i2c: E2 [10:38:45]MH_I2C_Read... [10:38:45]Read from MH i2c: E2 03 00 [10:38:45]MH_I2C_Read... [10:38:45]Read from MH i2c: E2 03 00 60 24 00 90 00 F8 [10:38:45]RAPDU: 90 00 [10:38:45]wFMCommunicate OK [10:38:45]SAM_PROTO_ClearQueue done [10:38:45]KKMCreateOFDPacket [10:38:45]OFDProtocolAddRootSTLVToBuf [10:38:45]FM_MakeSignedData [10:38:45]FM_MakeSignedData [10:38:45]SAM_PROTO_SignData [10:38:45]wFMCommunicate request_size=4 [10:38:45]MH_SAM_APDU [10:38:45]CAPDU: 80 0D 01 02 [10:38:45]Write to MH i2c: E2 08 00 61 24 80 0D 01 02 00 00 00 00 FE [10:38:45]Write i2c OK [10:38:45]MH_I2C_Read... [10:38:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:45]Read from MH i2c: E2 [10:38:45]MH_I2C_Read... [10:38:45]Read from MH i2c: E2 03 00 [10:38:45]MH_I2C_Read... [10:38:45]Read from MH i2c: E2 03 00 61 24 00 90 00 F9 [10:38:45]RAPDU: 90 00 [10:38:45]wFMCommunicate OK [10:38:45]wFMCommunicate request_size=255 [10:38:45]MH_SAM_APDU [10:38: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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 B7 80 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 38 7B 03 00 35 04 06 00 4D 63 D0 FF [10:38:45]Write to MH i2c: E2 02 01 62 24 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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 B7 80 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 38 7B 03 00 35 04 06 00 4D 63 D0 FF 00 00 01 [10:38:45]Write i2c OK [10:38:45]MH_I2C_Read... [10:38:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:45]Read from MH i2c: E2 [10:38:45]MH_I2C_Read... [10:38:45]Read from MH i2c: E2 03 00 [10:38:45]MH_I2C_Read... [10:38:45]Read from MH i2c: E2 03 00 62 24 00 90 00 FA [10:38:45]RAPDU: 90 00 [10:38:45]wFMCommunicate OK [10:38:45]wFMCommunicate request_size=7 [10:38:45]MH_SAM_APDU [10:38:45]CAPDU: 80 0D 02 02 02 E4 F4 [10:38:45]Write to MH i2c: E2 0A 00 63 24 80 0D 02 02 02 00 E4 F4 00 00 DD [10:38:45]Write i2c OK [10:38:45]MH_I2C_Read... [10:38:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:45]Read from MH i2c: E2 [10:38:45]MH_I2C_Read... [10:38:45]Read from MH i2c: E2 03 00 [10:38:45]MH_I2C_Read... [10:38:45]Read from MH i2c: E2 03 00 63 24 00 90 00 FB [10:38:45]RAPDU: 90 00 [10:38:45]wFMCommunicate OK [10:38:45]wFMCommunicate request_size=4 [10:38:45]MH_SAM_APDU [10:38:45]CAPDU: 80 0D 03 02 [10:38:45]Write to MH i2c: E2 08 00 64 24 80 0D 03 02 00 00 00 00 03 [10:38:45]Write i2c OK [10:38:45]MH_I2C_Read... [10:38:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:46]Read from MH i2c: E2 [10:38:46]MH_I2C_Read... [10:38:46]Read from MH i2c: E2 0B 00 [10:38:46]MH_I2C_Read... [10:38:46]Read from MH i2c: E2 0B 00 64 24 00 CD 88 E5 0A 08 9C B9 46 90 00 EB [10:38:46]RAPDU: CD 88 E5 0A 08 9C B9 46 90 00 [10:38:46]wFMCommunicate OK [10:38:46]SAM_PROTO_SignData done [10:38:46]FM_MakeSignedData done [10:38:46]CreateOFDProtocolMessage [10:38:46]wFMCommunicate request_size=4 [10:38:46]MH_SAM_APDU [10:38:46]CAPDU: 80 11 00 00 [10:38:46]Write to MH i2c: E2 08 00 65 24 80 11 00 00 00 00 00 00 03 [10:38:46]Write i2c OK [10:38:46]MH_I2C_Read... [10:38:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:46]Read from MH i2c: E2 [10:38:46]MH_I2C_Read... [10:38:46]Read from MH i2c: E2 17 00 [10:38:46]MH_I2C_Read... [10:38:46]Read from MH i2c: E2 17 00 65 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5A [10:38:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:38:46]wFMCommunicate OK [10:38:46]CreateOFDProtocolMessage done [10:38:46]OFDSenderStorePacket 228152 [10:38:46]StoreOFDPacket docnum=228152 [10:38:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 59 17 04 01 08 28 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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 B7 80 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 38 7B 03 00 35 04 06 00 4D 63 D0 FF E4 F4 CD 88 E5 0A 08 9C B9 46 [10:38:46]CheckFolder [10:38:46]dirname=/storage/ofd_packets [10:38:46]CheckFolder done [10:38:46]ProducePacketName [10:38:46]name=ofd_packets/00228152 [10:38:46]NVStorageSaveData ofd_packets/00228152 [10:38:46]File name is /storage/ofd_packets/00228152 [10:38:46]Write 298 bytes [10:38:46]NVStorageSaveData done [10:38:46]OFDSenderStorePacket done [10:38:46]KKMCreateOFDPacket done [10:38:46]NVStorageSaveData kkm_last_timestamp [10:38:46]File name is /storage/kkm_last_timestamp [10:38:46]Write 4 bytes [10:38:46]NVStorageSaveData done [10:38:46]ExternCall_PrintAddStr [10:38:46]wPrintStart [10:38:46]Write to MH i2c: 01 00 00 66 24 8A [10:38:46]Write i2c OK [10:38:46]MH_I2C_Read... [10:38:46]Read from MH i2c: 01 [10:38:46]MH_I2C_Read... [10:38:46]Read from MH i2c: 01 07 00 [10:38:46]MH_I2C_Read... [10:38:46]Read from MH i2c: 01 07 00 66 24 00 00 00 00 00 FF 0F 9F [10:38:46]RasterBufferAndPrint [10:38:46]line Счет N : (1)1964512 [10:38:46]line ИНН: 02508201610067 [10:38:46]line Контрольно-Кассовый Чек [10:38:46]line ПРОДАЖА [10:38:46]line ТРК (МРК, ГНК) : 21 [10:38:46]line Товар: 2710194210 [10:38:46]line ДТ-К-5 [10:38:46]line 100.000 * 0.00 [10:38:46]line = 0.00 [10:38:46]line НДС 12% НСП 1% [10:38:46]line > о реализуемом товаре [10:38:46]line ИТОГО: 0.00 [10:38:46]line НСП 1% : 0.00 [10:38:46]line НДС 12% : 0.00 [10:38:46]line Наличными: 0.00 [10:38:46]line Безнал.: 0.00 [10:38:46]line Место: АЗС № 133 "Партнер Нефть" [10:38:46]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:38:46]line СНО: Общий режим [10:38:46]line Чек 116 22.10.2024 10:38 [10:38:46]line Смена: 535 ФФД: 1.0 [10:38:46]line ЗНМ: 0300000091 [10:38:46]line РНМ: 0000000000091685 [10:38:46]line Версия ККМ: 001 [10:38:46]line Талоны: Топливная Карта [10:38:46]line 53548 [10:38:46]line ФМ: 0000000000871839 [10:38:46]line ФД: 228152 [10:38:46]line ФПД: 85091103532276 [10:38:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103847&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228152&fm=85091103532276&tin=02508201610067®Number=0000000000091685&sum=0 [10:38:46]OFD Sender: Processing packet 228152 [packets to send 38, broken 37] [10:38:46]ProducePacketName [10:38:46]name=ofd_packets/00228152 [10:38:46]OFD Sender: To server: pG, [10:38:46]CommunicateWithHost lk.salyk.kg:30040 [10:38:46]ConnectInit lk.salyk.kg [10:38:46]written 0, free lines is 4095 [10:38:46]Connected sock=7 [10:38:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 59 17 04 01 08 28 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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 B7 80 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 38 7B 03 00 35 04 06 00 4D 63 D0 FF E4 F4 CD 88 E5 0A 08 9C B9 46 [10:38:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 46 AE 47 00 E6 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 38 7B 03 00 F4 03 04 00 B0 2B 17 67 B6 04 01 00 00 C3 D2 23 23 7E FE C9 80 [10:38:46]CommunicateWithHost err = 0 [10:38:46]CheckOFDResponse [10:38:46]1017 (14) - 77093643461234 [10:38:46]1041 (16) - 0000000000871839 [10:38:46]1040 (4) - 228152 [10:38:46]1012 (4) - 22.10.2024 04:36 [10:38:46]1206 (1) - 0 [10:38:46]OFD Sender: Remove packet 228152 [10:38:46]ProducePacketName [10:38:46]name=ofd_packets/00228152 [10:38:46]NVStorageDeleteData [10:38:46]Write to MH i2c: 01 00 00 8F 24 B3 [10:38:46]Write i2c OK [10:38:46]MH_I2C_Read... [10:38:46]Read from MH i2c: 01 [10:38:46]MH_I2C_Read... [10:38:46]Read from MH i2c: 01 07 00 [10:38:46]MH_I2C_Read... [10:38:46]Read from MH i2c: 01 07 00 8F 24 00 00 00 00 00 E9 0C AF [10:38:46]RasterBufferAndPrint [10:38:46]line [10:38:46]line [10:38:46]line [10:38:46]line [10:38:46]line [10:38:46]written 0, free lines is 3311 [10:38:46]MH_Cut [10:38:46]Write to MH i2c: D1 01 00 96 24 01 8C [10:38:46]Write i2c OK [10:38:46]MH_I2C_Read... [10:38:46]Read from MH i2c: D1 [10:38:46]MH_I2C_Read... [10:38:46]Read from MH i2c: D1 01 00 [10:38:46]MH_I2C_Read... [10:38:46]Read from MH i2c: D1 01 00 96 24 00 8B [10:38:46]Write to MH i2c: 01 00 00 97 24 BB [10:38:46]Write i2c OK [10:38:46]MH_I2C_Read... [10:38:47]OFD Sender: No OFD packet to send [10:38:47]*** Cut start [10:38:47]*** Partial cut [10:38:47]*** CUTSNS_PIN = 1 [10:38:47]*** CUTSNS_PIN = 0 [10:38:47]*** Brake cut motor [10:38:48]Read from MH i2c: 01 [10:38:48]MH_I2C_Read... [10:38:48]*** Stop cut motor [10:38:48]*** Cut end [10:38:48]Read from MH i2c: 01 07 00 [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: 01 07 00 97 24 00 00 00 00 00 FF 0F D0 [10:38:48]process_action close_receipt done [10:38:48]requested_data is exist [10:38:48]produce_requested_data [10:38:48]requested_item fm.sn is exist - process it [10:38:48]wFMCommunicate request_size=4 [10:38:48]MH_SAM_APDU [10:38:48]CAPDU: 80 11 00 00 [10:38:48]Write to MH i2c: E2 08 00 98 24 80 11 00 00 00 00 00 00 36 [10:38:48]Write i2c OK [10:38:48]MH_I2C_Read... [10:38:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:48]Read from MH i2c: E2 [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: E2 17 00 [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: E2 17 00 98 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8D [10:38:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:38:48]wFMCommunicate OK [10:38:48]requested_item fd.num is exist - process it [10:38:48]SAM_PROTO_GetFieldsCounters [10:38:48]wFMCommunicate request_size=4 [10:38:48]MH_SAM_APDU [10:38:48]CAPDU: 80 13 00 00 [10:38:48]Write to MH i2c: E2 08 00 99 24 80 13 00 00 00 00 00 00 39 [10:38:48]Write i2c OK [10:38:48]MH_I2C_Read... [10:38:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:48]Read from MH i2c: E2 [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: E2 62 00 [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: E2 62 00 99 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 38 7B 03 00 0E 04 04 00 17 02 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 8D [10:38:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 38 7B 03 00 0E 04 04 00 17 02 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 [10:38:48]wFMCommunicate OK [10:38:48]SAM_PROTO_GetFieldsCounters done [10:38:48]requested_item shift.num is exist - process it [10:38:48]requested_item shift.opened is exist - process it [10:38:48]req_shift_opened [10:38:48]FM_GetShiftState [10:38:48]SAM_PROTO_GetShiftState [10:38:48]wFMCommunicate request_size=4 [10:38:48]MH_SAM_APDU [10:38:48]CAPDU: 80 13 01 00 [10:38:48]Write to MH i2c: E2 08 00 9A 24 80 13 01 00 00 00 00 00 3B [10:38:48]Write i2c OK [10:38:48]MH_I2C_Read... [10:38:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:48]Read from MH i2c: E2 [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: E2 0E 00 [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: E2 0E 00 9A 24 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 02 [10:38:48]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [10:38:48]wFMCommunicate OK [10:38:48]SAM_PROTO_GetShiftState done [10:38:48]FM_GetShiftState done [10:38:48]req_shift_opened done [10:38:48]requested_item shift.open_date is exist - process it [10:38:48]req_shift_open_date [10:38:48]req_shift_open_date done [10:38:48]produce_requested_data done [10:38:48]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228152,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [10:38:48]process_action_free close_receipt [10:38:48]json_value_free [10:38:48]json_value_free done [10:38:48]process_json_proto returns [10:38:48]Send response to host [10:38:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228152,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [10:38:48]free response buf [10:38:48]execute_script done [10:38:48]execute_script returns [10:38:48]free content buf [10:38:48]Sock 9.Close socket [10:38:48]Sock 9.Thread stoped [10:38:52]OFD Sender: No OFD packet to send [10:38:57]OFD Sender: No OFD packet to send [10:39:02]OFD Sender: No OFD packet to send [10:39:07]OFD Sender: No OFD packet to send [10:39:12]OFD Sender: No OFD packet to send [10:39:17]OFD Sender: No OFD packet to send [10:39:22]OFD Sender: No OFD packet to send [10:39:27]OFD Sender: No OFD packet to send [10:39:32]OFD Sender: No OFD packet to send [10:39:37]OFD Sender: No OFD packet to send [10:39:42]OFD Sender: No OFD packet to send [10:39:47]OFD Sender: No OFD packet to send [10:39:52]OFD Sender: No OFD packet to send [10:39:57]OFD Sender: No OFD packet to send [10:40:02]OFD Sender: No OFD packet to send [10:40:07]OFD Sender: No OFD packet to send [10:40:12]OFD Sender: No OFD packet to send [10:40:17]OFD Sender: No OFD packet to send [10:40:22]OFD Sender: No OFD packet to send [10:40:27]OFD Sender: No OFD packet to send [10:40:32]OFD Sender: No OFD packet to send [10:40:37]OFD Sender: No OFD packet to send [10:40:42]OFD Sender: No OFD packet to send [10:40:47]OFD Sender: No OFD packet to send [10:40:52]OFD Sender: No OFD packet to send [10:40:57]OFD Sender: No OFD packet to send [10:41:02]OFD Sender: No OFD packet to send [10:41:07]OFD Sender: No OFD packet to send [10:41:12]OFD Sender: No OFD packet to send [10:41:17]OFD Sender: No OFD packet to send [10:41:22]OFD Sender: No OFD packet to send [10:41:27]OFD Sender: No OFD packet to send [10:41:32]OFD Sender: No OFD packet to send [10:41:37]OFD Sender: No OFD packet to send [10:41:42]OFD Sender: No OFD packet to send [10:41:47]OFD Sender: No OFD packet to send [10:41:52]OFD Sender: No OFD packet to send [10:41:57]OFD Sender: No OFD packet to send [10:42:02]OFD Sender: No OFD packet to send [10:42:07]OFD Sender: No OFD packet to send [10:42:12]OFD Sender: No OFD packet to send [10:42:17]OFD Sender: No OFD packet to send [10:42:22]OFD Sender: No OFD packet to send [10:42:27]OFD Sender: No OFD packet to send [10:42:32]OFD Sender: No OFD packet to send [10:42:37]OFD Sender: No OFD packet to send [10:42:42]OFD Sender: No OFD packet to send [10:42:47]OFD Sender: No OFD packet to send [10:42:52]OFD Sender: No OFD packet to send [10:42:57]OFD Sender: No OFD packet to send [10:43:02]OFD Sender: No OFD packet to send [10:43:07]OFD Sender: No OFD packet to send [10:43:12]OFD Sender: No OFD packet to send [10:43:17]OFD Sender: No OFD packet to send [10:43:22]OFD Sender: No OFD packet to send [10:43:27]OFD Sender: No OFD packet to send [10:43:32]OFD Sender: No OFD packet to send [10:43:37]OFD Sender: No OFD packet to send [10:43:42]OFD Sender: No OFD packet to send [10:43:47]OFD Sender: No OFD packet to send [10:43:52]OFD Sender: No OFD packet to send [10:43:57]OFD Sender: No OFD packet to send [10:44:02]OFD Sender: No OFD packet to send [10:44:07]OFD Sender: No OFD packet to send [10:44:12]OFD Sender: No OFD packet to send [10:44:17]OFD Sender: No OFD packet to send [10:44:22]OFD Sender: No OFD packet to send [10:44:27]OFD Sender: No OFD packet to send [10:44:32]OFD Sender: No OFD packet to send [10:44:37]OFD Sender: No OFD packet to send [10:44:42]OFD Sender: No OFD packet to send [10:44:47]OFD Sender: No OFD packet to send [10:44:52]OFD Sender: No OFD packet to send [10:44:57]OFD Sender: No OFD packet to send [10:45:02]OFD Sender: No OFD packet to send [10:45:07]OFD Sender: No OFD packet to send [10:45:12]OFD Sender: No OFD packet to send [10:45:17]OFD Sender: No OFD packet to send [10:45:22]OFD Sender: No OFD packet to send [10:45:27]OFD Sender: No OFD packet to send [10:45:32]OFD Sender: No OFD packet to send [10:45:37]OFD Sender: No OFD packet to send [10:45:42]OFD Sender: No OFD packet to send [10:45:47]OFD Sender: No OFD packet to send [10:45:52]OFD Sender: No OFD packet to send [10:45:57]OFD Sender: No OFD packet to send [10:46:02]OFD Sender: No OFD packet to send [10:46:07]OFD Sender: No OFD packet to send [10:46:12]OFD Sender: No OFD packet to send [10:46:17]OFD Sender: No OFD packet to send [10:46:22]OFD Sender: No OFD packet to send [10:46:27]OFD Sender: No OFD packet to send [10:46:32]OFD Sender: No OFD packet to send [10:46:37]OFD Sender: No OFD packet to send [10:46:42]OFD Sender: No OFD packet to send [10:46:47]OFD Sender: No OFD packet to send [10:46:52]OFD Sender: No OFD packet to send [10:46:57]OFD Sender: No OFD packet to send [10:47:02]OFD Sender: No OFD packet to send [10:47:07]OFD Sender: No OFD packet to send [10:47:12]OFD Sender: No OFD packet to send [10:47:17]OFD Sender: No OFD packet to send [10:47:22]OFD Sender: No OFD packet to send [10:47:27]OFD Sender: No OFD packet to send [10:47:32]OFD Sender: No OFD packet to send [10:47:37]OFD Sender: No OFD packet to send [10:47:42]OFD Sender: No OFD packet to send [10:47:47]OFD Sender: No OFD packet to send [10:47:52]OFD Sender: No OFD packet to send [10:47:57]OFD Sender: No OFD packet to send [10:48:02]OFD Sender: No OFD packet to send [10:48:07]OFD Sender: No OFD packet to send [10:48:12]OFD Sender: No OFD packet to send [10:48:17]OFD Sender: No OFD packet to send [10:48:22]OFD Sender: No OFD packet to send [10:48:27]OFD Sender: No OFD packet to send [10:48:32]OFD Sender: No OFD packet to send [10:48:37]OFD Sender: No OFD packet to send [10:48:42]OFD Sender: No OFD packet to send [10:48:47]OFD Sender: No OFD packet to send [10:48:52]OFD Sender: No OFD packet to send [10:48:57]OFD Sender: No OFD packet to send [10:49:02]OFD Sender: No OFD packet to send [10:49:07]OFD Sender: No OFD packet to send [10:49:12]OFD Sender: No OFD packet to send [10:49:17]OFD Sender: No OFD packet to send [10:49:22]OFD Sender: No OFD packet to send [10:49:27]OFD Sender: No OFD packet to send [10:49:32]OFD Sender: No OFD packet to send [10:49:37]OFD Sender: No OFD packet to send [10:49:42]OFD Sender: No OFD packet to send [10:49:47]OFD Sender: No OFD packet to send [10:49:52]OFD Sender: No OFD packet to send [10:49:57]OFD Sender: No OFD packet to send [10:50:02]OFD Sender: No OFD packet to send [10:50:07]OFD Sender: No OFD packet to send [10:50:12]OFD Sender: No OFD packet to send [10:50:17]OFD Sender: No OFD packet to send [10:50:22]OFD Sender: No OFD packet to send [10:50:27]OFD Sender: No OFD packet to send [10:50:32]OFD Sender: No OFD packet to send [10:50:37]OFD Sender: No OFD packet to send [10:50:42]OFD Sender: No OFD packet to send [10:50:47]OFD Sender: No OFD packet to send [10:50:52]OFD Sender: No OFD packet to send [10:50:57]OFD Sender: No OFD packet to send [10:51:02]OFD Sender: No OFD packet to send [10:51:07]OFD Sender: No OFD packet to send [10:51:12]OFD Sender: No OFD packet to send [10:51:17]OFD Sender: No OFD packet to send [10:51:22]OFD Sender: No OFD packet to send [10:51:27]OFD Sender: No OFD packet to send [10:51:32]OFD Sender: No OFD packet to send [10:51:37]OFD Sender: No OFD packet to send [10:51:42]OFD Sender: No OFD packet to send [10:51:47]OFD Sender: No OFD packet to send [10:51:52]OFD Sender: No OFD packet to send [10:51:57]OFD Sender: No OFD packet to send [10:52:02]OFD Sender: No OFD packet to send [10:52:07]OFD Sender: No OFD packet to send [10:52:12]OFD Sender: No OFD packet to send [10:52:17]OFD Sender: No OFD packet to send [10:52:22]OFD Sender: No OFD packet to send [10:52:27]OFD Sender: No OFD packet to send [10:52:32]OFD Sender: No OFD packet to send [10:52:37]OFD Sender: No OFD packet to send [10:52:42]OFD Sender: No OFD packet to send [10:52:47]OFD Sender: No OFD packet to send [10:52:52]OFD Sender: No OFD packet to send [10:52:57]OFD Sender: No OFD packet to send [10:53:02]OFD Sender: No OFD packet to send [10:53:07]OFD Sender: No OFD packet to send [10:53:12]OFD Sender: No OFD packet to send [10:53:17]OFD Sender: No OFD packet to send [10:53:23]OFD Sender: No OFD packet to send [10:53:28]OFD Sender: No OFD packet to send [10:53:33]OFD Sender: No OFD packet to send [10:53:38]OFD Sender: No OFD packet to send [10:53:43]OFD Sender: No OFD packet to send [10:53:48]OFD Sender: No OFD packet to send [10:53:53]OFD Sender: No OFD packet to send [10:53:58]OFD Sender: No OFD packet to send [10:54:03]OFD Sender: No OFD packet to send [10:54:08]OFD Sender: No OFD packet to send [10:54:13]OFD Sender: No OFD packet to send [10:54:18]OFD Sender: No OFD packet to send [10:54:23]OFD Sender: No OFD packet to send [10:54:28]OFD Sender: No OFD packet to send [10:54:33]OFD Sender: No OFD packet to send [10:54:38]OFD Sender: No OFD packet to send [10:54:43]OFD Sender: No OFD packet to send [10:54:48]OFD Sender: No OFD packet to send [10:54:53]OFD Sender: No OFD packet to send [10:54:58]OFD Sender: No OFD packet to send [10:55:03]OFD Sender: No OFD packet to send [10:55:08]OFD Sender: No OFD packet to send [10:55:13]OFD Sender: No OFD packet to send [10:55:18]OFD Sender: No OFD packet to send [10:55:23]OFD Sender: No OFD packet to send [10:55:28]OFD Sender: No OFD packet to send [10:55:33]OFD Sender: No OFD packet to send [10:55:38]OFD Sender: No OFD packet to send [10:55:43]OFD Sender: No OFD packet to send [10:55:48]OFD Sender: No OFD packet to send [10:55:53]OFD Sender: No OFD packet to send [10:55:58]OFD Sender: No OFD packet to send [10:56:03]OFD Sender: No OFD packet to send [10:56:08]OFD Sender: No OFD packet to send [10:56:13]OFD Sender: No OFD packet to send [10:56:18]OFD Sender: No OFD packet to send [10:56:23]OFD Sender: No OFD packet to send [10:56:28]OFD Sender: No OFD packet to send [10:56:33]OFD Sender: No OFD packet to send [10:56:38]OFD Sender: No OFD packet to send [10:56:43]OFD Sender: No OFD packet to send [10:56:48]OFD Sender: No OFD packet to send [10:56:53]OFD Sender: No OFD packet to send [10:56:58]OFD Sender: No OFD packet to send [10:57:03]OFD Sender: No OFD packet to send [10:57:08]OFD Sender: No OFD packet to send [10:57:13]OFD Sender: No OFD packet to send [10:57:18]OFD Sender: No OFD packet to send [10:57:23]OFD Sender: No OFD packet to send [10:57:28]OFD Sender: No OFD packet to send [10:57:33]OFD Sender: No OFD packet to send [10:57:38]OFD Sender: No OFD packet to send [10:57:43]OFD Sender: No OFD packet to send [10:57:48]OFD Sender: No OFD packet to send [10:57:53]OFD Sender: No OFD packet to send [10:57:58]OFD Sender: No OFD packet to send [10:58:03]OFD Sender: No OFD packet to send [10:58:08]OFD Sender: No OFD packet to send [10:58:13]OFD Sender: No OFD packet to send [10:58:18]OFD Sender: No OFD packet to send [10:58:23]OFD Sender: No OFD packet to send [10:58:28]OFD Sender: No OFD packet to send [10:58:33]OFD Sender: No OFD packet to send [10:58:38]OFD Sender: No OFD packet to send [10:58:43]OFD Sender: No OFD packet to send [10:58:48]OFD Sender: No OFD packet to send [10:58:53]OFD Sender: No OFD packet to send [10:58:58]OFD Sender: No OFD packet to send [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:48]OFD Sender: No OFD packet to send [11:00:53]OFD Sender: No OFD packet to send [11:00:58]OFD Sender: No OFD packet to send [11:01:03]OFD Sender: No OFD packet to send [11:01:08]OFD Sender: No OFD packet to send [11:01:13]OFD Sender: No OFD packet to send [11:01:18]OFD Sender: No OFD packet to send [11:01:23]OFD Sender: No OFD packet to send [11:01:28]OFD Sender: No OFD packet to send [11:01:33]OFD Sender: No OFD packet to send [11:01:38]OFD Sender: No OFD packet to send [11:01:43]OFD Sender: No OFD packet to send [11:01:48]OFD Sender: No OFD packet to send [11:01:53]OFD Sender: No OFD packet to send [11:01:58]OFD Sender: No OFD packet to send [11:02:03]OFD Sender: No OFD packet to send [11:02:08]OFD Sender: No OFD packet to send [11:02:13]OFD Sender: No OFD packet to send [11:02:18]OFD Sender: No OFD packet to send [11:02:23]OFD Sender: No OFD packet to send [11:02:28]OFD Sender: No OFD packet to send [11:02:33]OFD Sender: No OFD packet to send [11:02:38]OFD Sender: No OFD packet to send [11:02:43]OFD Sender: No OFD packet to send [11:02:48]OFD Sender: No OFD packet to send [11:02:53]OFD Sender: No OFD packet to send [11:02:58]OFD Sender: No OFD packet to send [11:03:03]OFD Sender: No OFD packet to send [11:03:08]OFD Sender: No OFD packet to send [11:03:13]OFD Sender: No OFD packet to send [11:03:18]OFD Sender: No OFD packet to send [11:03:23]OFD Sender: No OFD packet to send [11:03:28]OFD Sender: No OFD packet to send [11:03:33]OFD Sender: No OFD packet to send [11:03:38]OFD Sender: No OFD packet to send [11:03:43]OFD Sender: No OFD packet to send [11:03:48]OFD Sender: No OFD packet to send [11:03:53]OFD Sender: No OFD packet to send [11:03:58]OFD Sender: No OFD packet to send [11:04:03]OFD Sender: No OFD packet to send [11:04:08]OFD Sender: No OFD packet to send [11:04:13]OFD Sender: No OFD packet to send [11:04:18]OFD Sender: No OFD packet to send [11:04:23]OFD Sender: No OFD packet to send [11:04:28]OFD Sender: No OFD packet to send [11:04:33]OFD Sender: No OFD packet to send [11:04:38]OFD Sender: No OFD packet to send [11:04:43]OFD Sender: No OFD packet to send [11:04:48]OFD Sender: No OFD packet to send [11:04:53]OFD Sender: No OFD packet to send [11:04:58]OFD Sender: No OFD packet to send [11:05:03]OFD Sender: No OFD packet to send [11:05:08]OFD Sender: No OFD packet to send [11:05:13]OFD Sender: No OFD packet to send [11:05:18]OFD Sender: No OFD packet to send [11:05:23]OFD Sender: No OFD packet to send [11:05:28]OFD Sender: No OFD packet to send [11:05:33]OFD Sender: No OFD packet to send [11:05:38]OFD Sender: No OFD packet to send [11:05:43]OFD Sender: No OFD packet to send [11:05:48]OFD Sender: No OFD packet to send [11:05:53]OFD Sender: No OFD packet to send [11:05:58]OFD Sender: No OFD packet to send [11:06:03]OFD Sender: No OFD packet to send [11:06:08]OFD Sender: No OFD packet to send [11:06:13]OFD Sender: No OFD packet to send [11:06:18]OFD Sender: No OFD packet to send [11:06:23]OFD Sender: No OFD packet to send [11:06:28]OFD Sender: No OFD packet to send [11:06:33]OFD Sender: No OFD packet to send [11:06:38]OFD Sender: No OFD packet to send [11:06:43]OFD Sender: No OFD packet to send [11:06:48]OFD Sender: No OFD packet to send [11:06:53]OFD Sender: No OFD packet to send [11:06:58]OFD Sender: No OFD packet to send [11:07:03]OFD Sender: No OFD packet to send [11:07:08]OFD Sender: No OFD packet to send [11:07:13]OFD Sender: No OFD packet to send [11:07:18]OFD Sender: No OFD packet to send [11:07:23]OFD Sender: No OFD packet to send [11:07:28]OFD Sender: No OFD packet to send [11:07:33]OFD Sender: No OFD packet to send [11:07:38]OFD Sender: No OFD packet to send [11:07:43]OFD Sender: No OFD packet to send [11:07:48]OFD Sender: No OFD packet to send [11:07:53]OFD Sender: No OFD packet to send [11:07:58]OFD Sender: No OFD packet to send [11:08:03]OFD Sender: No OFD packet to send [11:08:08]OFD Sender: No OFD packet to send [11:08:13]OFD Sender: No OFD packet to send [11:08:18]OFD Sender: No OFD packet to send [11:08:23]OFD Sender: No OFD packet to send [11:08:28]OFD Sender: No OFD packet to send [11:08:33]OFD Sender: No OFD packet to send [11:08:38]OFD Sender: No OFD packet to send [11:08:43]OFD Sender: No OFD packet to send [11:08:48]OFD Sender: No OFD packet to send [11:08:53]OFD Sender: No OFD packet to send [11:08:58]OFD Sender: No OFD packet to send [11:09:03]OFD Sender: No OFD packet to send [11:09:08]OFD Sender: No OFD packet to send [11:09:13]OFD Sender: No OFD packet to send [11:09:18]OFD Sender: No OFD packet to send [11:09:23]OFD Sender: No OFD packet to send [11:09:33]OFD Sender: No OFD packet to send [11:09:38]OFD Sender: No OFD packet to send [11:09:38]recv_with_timeout no data received [11:09:43]OFD Sender: No OFD packet to send [11:09:48]OFD Sender: No OFD packet to send [11:09:53]OFD Sender: No OFD packet to send [11:09:58]OFD Sender: No OFD packet to send [11:10:00]recv_with_timeout no data received [11:10:03]OFD Sender: No OFD packet to send [11:10:08]OFD Sender: No OFD packet to send [11:10:13]OFD Sender: No OFD packet to send [11:10:18]OFD Sender: No OFD packet to send [11:10:23]OFD Sender: No OFD packet to send [11:10:28]OFD Sender: No OFD packet to send [11:10:33]OFD Sender: No OFD packet to send [11:10:34]recv_with_timeout no data received [11:10:38]OFD Sender: No OFD packet to send [11:10:43]OFD Sender: No OFD packet to send [11:10:48]OFD Sender: No OFD packet to send [11:10:53]OFD Sender: No OFD packet to send [11:10:58]OFD Sender: No OFD packet to send [11:11:03]OFD Sender: No OFD packet to send [11:11:08]OFD Sender: No OFD packet to send [11:11:13]OFD Sender: No OFD packet to send [11:11:18]OFD Sender: No OFD packet to send [11:11:23]OFD Sender: No OFD packet to send [11:11:28]OFD Sender: No OFD packet to send [11:11:33]OFD Sender: No OFD packet to send [11:11:38]OFD Sender: No OFD packet to send [11:11:43]accept exits with 10 [11:11:43]New connection [11:11:43]New thread 3066994020 created [11:11:43]Thread 3067137380 joined [11:11:43]Waiting for new connection... [11:11:43] Sock 10.Parse request [11:11:43]Sock 10.Check first char [11:11:43]Sock 10.First char is OK [11:11:43]request: POST /json_proto HTTP/1.0 [11:11:43]Method: POST [11:11:43]URL: /json_proto [11:11:43]Method is POST - this is cgi request [11:11:43]url: /json_proto [11:11:43]query_string will be loaded in cgi processing [11:11:43]execute_cgi json_proto POST (null) [11:11:43]execute_cgi path=json_proto method=POST [11:11:43]POST find Content-Length [11:11:43]Host: 172.17.44.195:8080 [11:11:43]Content-Length: 767 [11:11:43]Content-Type: application/json [11:11:43] [11:11:43]POST finish read [11:11:43]Found Content-Length = 767 [11:11:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964551", "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" : 76.20, "quantity" : 65.620, "sum" : 5000.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: Mbank", "payments": [ { "type": 1, "sum" : 5000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:43]execute_script... [11:11:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964551", "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" : 76.20, "quantity" : 65.620, "sum" : 5000.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: Mbank", "payments": [ { "type": 1, "sum" : 5000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:43]POST & json_proto [11:11:43]process_json_proto [11:11:43]json parsed OK: [11:11:43]protocol is kg_v1.0 [11:11:43]action value=close_receipt [11:11:43]process_action close_receipt [11:11:43]cmd_close_receipt [11:11:43]MH_GetDate [11:11:43]Write to MH i2c: F0 00 00 9B 24 AE [11:11:43]Write i2c OK [11:11:43]MH_I2C_Read... [11:11:43]Read from MH i2c: F0 [11:11:43]MH_I2C_Read... [11:11:43]Read from MH i2c: F0 09 00 [11:11:43]MH_I2C_Read... [11:11:43]Read from MH i2c: F0 09 00 9B 24 00 72 88 17 67 82 C9 CF 66 AF [11:11:43]GetLastDocTimeStamp 1729593527 [11:11:43]current date 1729595506 [11:11:43]FM_GetShiftState [11:11:43]SAM_PROTO_GetShiftState [11:11:43]wFMCommunicate request_size=4 [11:11:43]MH_SAM_APDU [11:11:43]CAPDU: 80 13 01 00 [11:11:43]Write to MH i2c: E2 08 00 9C 24 80 13 01 00 00 00 00 00 3D [11:11:43]Write i2c OK [11:11:43]MH_I2C_Read... [11:11:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:43]Read from MH i2c: E2 [11:11:43]MH_I2C_Read... [11:11:43]Read from MH i2c: E2 0E 00 [11:11:43]MH_I2C_Read... [11:11:43]Read from MH i2c: E2 0E 00 9C 24 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 04 [11:11:43]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [11:11:43]wFMCommunicate OK [11:11:43]SAM_PROTO_GetShiftState done [11:11:43]FM_GetShiftState done [11:11:43]opened in 1729555538 [11:11:43]opened+sec_in_day 1729641938 [11:11:43]quantity*price = 500024 [11:11:43]sum+1 = 500025 [11:11:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5000.24 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 0.00 Безнал.: 5000.24 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 117 22.10.2024 11:11 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 228153 ФПД: 148221799830886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111146&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228153&fm=148221799830886&tin=02508201610067®Number=0000000000091685&sum=500024 [11:11:44]StoreToDocumentArchive [11:11:44]shift 535 fd 228153 [11:11:44]save to /storage/0535/doc_00228153 [11:11:44]save last doc name /storage/0535/doc_00228153 to /storage/kkm_last_doc_name [11:11:44]save OK [11:11:44]Clear old archive folders... [11:11:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:11:44]tlvbuf is 008AF560 [11:11:44]SAM_PROTO_ClearQueue [11:11:44]wFMCommunicate request_size=4 [11:11:44]MH_SAM_APDU [11:11:44]CAPDU: 80 09 00 00 [11:11:44]Write to MH i2c: E2 08 00 A9 24 80 09 00 00 00 00 00 00 3F [11:11:44]Write i2c OK [11:11:44]MH_I2C_Read... [11:11:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:44]Read from MH i2c: E2 [11:11:44]MH_I2C_Read... [11:11:44]Read from MH i2c: E2 03 00 [11:11:44]MH_I2C_Read... [11:11:44]Read from MH i2c: E2 03 00 A9 24 00 90 00 41 [11:11:44]RAPDU: 90 00 [11:11:44]wFMCommunicate OK [11:11:44]SAM_PROTO_ClearQueue done [11:11:44]KKMCreateOFDPacket [11:11:44]OFDProtocolAddRootSTLVToBuf [11:11:44]FM_MakeSignedData [11:11:44]FM_MakeSignedData [11:11:44]SAM_PROTO_SignData [11:11:44]wFMCommunicate request_size=4 [11:11:44]MH_SAM_APDU [11:11:44]CAPDU: 80 0D 01 02 [11:11:44]Write to MH i2c: E2 08 00 AA 24 80 0D 01 02 00 00 00 00 47 [11:11:44]Write i2c OK [11:11:44]MH_I2C_Read... [11:11:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:44]Read from MH i2c: E2 [11:11:44]MH_I2C_Read... [11:11:44]Read from MH i2c: E2 03 00 [11:11:44]MH_I2C_Read... [11:11:44]Read from MH i2c: E2 03 00 AA 24 00 90 00 42 [11:11:44]RAPDU: 90 00 [11:11:44]wFMCommunicate OK [11:11:44]wFMCommunicate request_size=255 [11:11:44]MH_SAM_APDU [11:11:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 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 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 72 88 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 39 7B 03 00 35 04 06 00 86 CE 93 BA [11:11:44]Write to MH i2c: E2 02 01 AB 24 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 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 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 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 72 88 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 39 7B 03 00 35 04 06 00 86 CE 93 BA 00 00 75 [11:11:44]Write i2c OK [11:11:44]MH_I2C_Read... [11:11:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:44]Read from MH i2c: E2 [11:11:44]MH_I2C_Read... [11:11:44]Read from MH i2c: E2 03 00 [11:11:44]MH_I2C_Read... [11:11:44]Read from MH i2c: E2 03 00 AB 24 00 90 00 43 [11:11:44]RAPDU: 90 00 [11:11:44]wFMCommunicate OK [11:11:44]wFMCommunicate request_size=7 [11:11:44]MH_SAM_APDU [11:11:44]CAPDU: 80 0D 02 02 02 15 66 [11:11:44]Write to MH i2c: E2 0A 00 AC 24 80 0D 02 02 02 00 15 66 00 00 C9 [11:11:44]Write i2c OK [11:11:44]MH_I2C_Read... [11:11:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:44]Read from MH i2c: E2 [11:11:44]MH_I2C_Read... [11:11:44]Read from MH i2c: E2 03 00 [11:11:44]MH_I2C_Read... [11:11:44]Read from MH i2c: E2 03 00 AC 24 00 90 00 44 [11:11:44]RAPDU: 90 00 [11:11:44]wFMCommunicate OK [11:11:44]wFMCommunicate request_size=4 [11:11:44]MH_SAM_APDU [11:11:44]CAPDU: 80 0D 03 02 [11:11:44]Write to MH i2c: E2 08 00 AD 24 80 0D 03 02 00 00 00 00 4C [11:11:44]Write i2c OK [11:11:44]MH_I2C_Read... [11:11:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:44]Read from MH i2c: E2 [11:11:44]MH_I2C_Read... [11:11:44]Read from MH i2c: E2 0B 00 [11:11:44]MH_I2C_Read... [11:11:44]Read from MH i2c: E2 0B 00 AD 24 00 11 1C B8 5A 3E 8B 9E 47 90 00 3A [11:11:44]RAPDU: 11 1C B8 5A 3E 8B 9E 47 90 00 [11:11:44]wFMCommunicate OK [11:11:44]SAM_PROTO_SignData done [11:11:44]FM_MakeSignedData done [11:11:44]CreateOFDProtocolMessage [11:11:44]wFMCommunicate request_size=4 [11:11:44]MH_SAM_APDU [11:11:44]CAPDU: 80 11 00 00 [11:11:44]Write to MH i2c: E2 08 00 AE 24 80 11 00 00 00 00 00 00 4C [11:11:44]Write i2c OK [11:11:44]MH_I2C_Read... [11:11:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:44]Read from MH i2c: E2 [11:11:44]MH_I2C_Read... [11:11:44]Read from MH i2c: E2 17 00 [11:11:44]MH_I2C_Read... [11:11:44]Read from MH i2c: E2 17 00 AE 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A3 [11:11:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:11:44]wFMCommunicate OK [11:11:44]CreateOFDProtocolMessage done [11:11:44]OFDSenderStorePacket 228153 [11:11:44]StoreOFDPacket docnum=228153 [11:11:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 E7 C3 04 01 FD 8E 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 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 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 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 72 88 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 39 7B 03 00 35 04 06 00 86 CE 93 BA 15 66 11 1C B8 5A 3E 8B 9E 47 [11:11:44]CheckFolder [11:11:44]dirname=/storage/ofd_packets [11:11:44]CheckFolder done [11:11:44]ProducePacketName [11:11:44]name=ofd_packets/00228153 [11:11:44]NVStorageSaveData ofd_packets/00228153 [11:11:44]File name is /storage/ofd_packets/00228153 [11:11:44]Write 298 bytes [11:11:44]NVStorageSaveData done [11:11:44]OFDSenderStorePacket done [11:11:44]KKMCreateOFDPacket done [11:11:44]NVStorageSaveData kkm_last_timestamp [11:11:44]File name is /storage/kkm_last_timestamp [11:11:44]Write 4 bytes [11:11:44]NVStorageSaveData done [11:11:44]ExternCall_PrintAddStr [11:11:44]wPrintStart [11:11:44]Write to MH i2c: 01 00 00 AF 24 D3 [11:11:44]Write i2c OK [11:11:44]MH_I2C_Read... [11:11:44]Read from MH i2c: 01 [11:11:44]MH_I2C_Read... [11:11:44]Read from MH i2c: 01 07 00 [11:11:44]MH_I2C_Read... [11:11:44]Read from MH i2c: 01 07 00 AF 24 00 00 00 00 00 FF 0F E8 [11:11:44]RasterBufferAndPrint [11:11:44]line Счет N : (1)1964551 [11:11:44]line ИНН: 02508201610067 [11:11:44]line Контрольно-Кассовый Чек [11:11:44]line ПРОДАЖА [11:11:44]line ТРК (МРК, ГНК) : 21 [11:11:44]line Товар: 2710194210 [11:11:44]line ДТ-К-5 [11:11:44]line 65.620 * 76.20 [11:11:44]line = 5000.24 [11:11:44]line НДС 12% НСП 1% [11:11:44]line > о реализуемом товаре [11:11:44]line ИТОГО: 5000.24 [11:11:44]line НСП 1% : 44.25 [11:11:44]line НДС 12% : 531.00 [11:11:44]line Наличными: 0.00 [11:11:44]line Безнал.: 5000.24 [11:11:44]line Место: АЗС № 133 "Партнер Нефть" [11:11:44]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:11:44]line СНО: Общий режим [11:11:44]line Чек 117 22.10.2024 11:11 [11:11:44]line Смена: 535 ФФД: 1.0 [11:11:44]line ЗНМ: 0300000091 [11:11:44]line РНМ: 0000000000091685 [11:11:44]line Версия ККМ: 001 [11:11:44]line Платежная система: Mbank [11:11:44]line ФМ: 0000000000871839 [11:11:44]line ФД: 228153 [11:11:44]line ФПД: 148221799830886 [11:11:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111146&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228153&fm=148221799830886&tin=02508201610067®Number=0000000000091685&sum=500024 [11:11:45]OFD Sender: Processing packet 228153 [packets to send 38, broken 37] [11:11:45]ProducePacketName [11:11:45]name=ofd_packets/00228153 [11:11:45]OFD Sender: To server: pG, [11:11:45]CommunicateWithHost lk.salyk.kg:30040 [11:11:45]ConnectInit lk.salyk.kg [11:11:45]written 0, free lines is 4095 [11:11:45]Connected sock=9 [11:11:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 E7 C3 04 01 FD 8E 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 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 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 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 72 88 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 39 7B 03 00 35 04 06 00 86 CE 93 BA 15 66 11 1C B8 5A 3E 8B 9E 47 [11:11:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 22 D8 47 00 86 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 39 7B 03 00 F4 03 04 00 6B 33 17 67 B6 04 01 00 00 7C 88 8F 7F 1F 48 DC A9 [11:11:45]CommunicateWithHost err = 0 [11:11:45]CheckOFDResponse [11:11:45]1017 (14) - 77093643461234 [11:11:45]1041 (16) - 0000000000871839 [11:11:45]1040 (4) - 228153 [11:11:45]1012 (4) - 22.10.2024 05:08 [11:11:45]1206 (1) - 0 [11:11:45]OFD Sender: Remove packet 228153 [11:11:45]ProducePacketName [11:11:45]name=ofd_packets/00228153 [11:11:45]NVStorageDeleteData [11:11:45]Write to MH i2c: 01 00 00 D7 24 FB [11:11:45]Write i2c OK [11:11:45]MH_I2C_Read... [11:11:45]Read from MH i2c: 01 [11:11:45]MH_I2C_Read... [11:11:45]Read from MH i2c: 01 07 00 [11:11:45]MH_I2C_Read... [11:11:45]Read from MH i2c: 01 07 00 D7 24 00 00 00 00 00 FE 0C 0C [11:11:45]RasterBufferAndPrint [11:11:45]line [11:11:45]line [11:11:45]line [11:11:45]line [11:11:45]line [11:11:45]written 0, free lines is 3332 [11:11:45]MH_Cut [11:11:45]Write to MH i2c: D1 01 00 DE 24 01 D4 [11:11:45]Write i2c OK [11:11:45]MH_I2C_Read... [11:11:45]Read from MH i2c: D1 [11:11:45]MH_I2C_Read... [11:11:45]Read from MH i2c: D1 01 00 [11:11:45]MH_I2C_Read... [11:11:45]Read from MH i2c: D1 01 00 DE 24 00 D3 [11:11:45]Write to MH i2c: 01 00 00 DF 24 03 [11:11:45]Write i2c OK [11:11:45]MH_I2C_Read... [11:11:45]OFD Sender: No OFD packet to send [11:11:46]*** Cut start [11:11:46]*** Partial cut [11:11:46]*** CUTSNS_PIN = 1 [11:11:46]*** CUTSNS_PIN = 0 [11:11:46]*** Brake cut motor [11:11:46]Read from MH i2c: 01 [11:11:46]MH_I2C_Read... [11:11:46]*** Stop cut motor [11:11:46]*** Cut end [11:11:46]Read from MH i2c: 01 07 00 [11:11:46]MH_I2C_Read... [11:11:46]Read from MH i2c: 01 07 00 DF 24 00 00 00 00 00 FF 0F 18 [11:11:46]process_action close_receipt done [11:11:46]requested_data is exist [11:11:46]produce_requested_data [11:11:46]requested_item fm.sn is exist - process it [11:11:46]wFMCommunicate request_size=4 [11:11:46]MH_SAM_APDU [11:11:46]CAPDU: 80 11 00 00 [11:11:46]Write to MH i2c: E2 08 00 E0 24 80 11 00 00 00 00 00 00 7E [11:11:46]Write i2c OK [11:11:46]MH_I2C_Read... [11:11:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:46]Read from MH i2c: E2 [11:11:46]MH_I2C_Read... [11:11:46]Read from MH i2c: E2 17 00 [11:11:46]MH_I2C_Read... [11:11:46]Read from MH i2c: E2 17 00 E0 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D5 [11:11:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:11:46]wFMCommunicate OK [11:11:46]requested_item fd.num is exist - process it [11:11:46]SAM_PROTO_GetFieldsCounters [11:11:46]wFMCommunicate request_size=4 [11:11:46]MH_SAM_APDU [11:11:46]CAPDU: 80 13 00 00 [11:11:46]Write to MH i2c: E2 08 00 E1 24 80 13 00 00 00 00 00 00 81 [11:11:47]Write i2c OK [11:11:47]MH_I2C_Read... [11:11:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:47]Read from MH i2c: E2 [11:11:47]MH_I2C_Read... [11:11:47]Read from MH i2c: E2 62 00 [11:11:47]MH_I2C_Read... [11:11:47]Read from MH i2c: E2 62 00 E1 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 39 7B 03 00 0E 04 04 00 17 02 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 D9 [11:11:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 39 7B 03 00 0E 04 04 00 17 02 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:11:47]wFMCommunicate OK [11:11:47]SAM_PROTO_GetFieldsCounters done [11:11:47]requested_item shift.num is exist - process it [11:11:47]requested_item shift.opened is exist - process it [11:11:47]req_shift_opened [11:11:47]FM_GetShiftState [11:11:47]SAM_PROTO_GetShiftState [11:11:47]wFMCommunicate request_size=4 [11:11:47]MH_SAM_APDU [11:11:47]CAPDU: 80 13 01 00 [11:11:47]Write to MH i2c: E2 08 00 E2 24 80 13 01 00 00 00 00 00 83 [11:11:47]Write i2c OK [11:11:47]MH_I2C_Read... [11:11:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:47]Read from MH i2c: E2 [11:11:47]MH_I2C_Read... [11:11:47]Read from MH i2c: E2 0E 00 [11:11:47]MH_I2C_Read... [11:11:47]Read from MH i2c: E2 0E 00 E2 24 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 4A [11:11:47]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [11:11:47]wFMCommunicate OK [11:11:47]SAM_PROTO_GetShiftState done [11:11:47]FM_GetShiftState done [11:11:47]req_shift_opened done [11:11:47]requested_item shift.open_date is exist - process it [11:11:47]req_shift_open_date [11:11:47]req_shift_open_date done [11:11:47]produce_requested_data done [11:11:47]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228153,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [11:11:47]process_action_free close_receipt [11:11:47]json_value_free [11:11:47]json_value_free done [11:11:47]process_json_proto returns [11:11:47]Send response to host [11:11:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228153,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [11:11:47]free response buf [11:11:47]execute_script done [11:11:47]execute_script returns [11:11:47]free content buf [11:11:47]Sock 10.Close socket [11:11:47]Sock 10.Thread stoped [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:31]OFD Sender: No OFD packet to send [11:13:35]accept exits with 7 [11:13:35]New connection [11:13:35]New thread 3067137380 created [11:13:35]Thread 3066994020 joined [11:13:35]Waiting for new connection... [11:13:35] Sock 7.Parse request [11:13:35]Sock 7.Check first char [11:13:35]Sock 7.First char is OK [11:13:35]request: POST /json_proto HTTP/1.0 [11:13:35]Method: POST [11:13:35]URL: /json_proto [11:13:35]Method is POST - this is cgi request [11:13:35]url: /json_proto [11:13:35]query_string will be loaded in cgi processing [11:13:35]execute_cgi json_proto POST (null) [11:13:35]execute_cgi path=json_proto method=POST [11:13:35]POST find Content-Length [11:13:35]Host: 172.17.44.195:8080 [11:13:35]Content-Length: 679 [11:13:35]Content-Type: application/json [11:13:35] [11:13:35]POST finish read [11:13:35]Found Content-Length = 679 [11:13:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.930, "sum" : 865.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 865.00, "total" : 865.00, "payments": [ { "type": 0, "sum" : 865.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:35]execute_script... [11:13: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)1964554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.930, "sum" : 865.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 865.00, "total" : 865.00, "payments": [ { "type": 0, "sum" : 865.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:35]POST & json_proto [11:13:35]process_json_proto [11:13:35]json parsed OK: [11:13:35]protocol is kg_v1.0 [11:13:35]action value=close_receipt [11:13:35]process_action close_receipt [11:13:35]cmd_close_receipt [11:13:35]MH_GetDate [11:13:35]Write to MH i2c: F0 00 00 E3 24 F6 [11:13:35]Write i2c OK [11:13:35]MH_I2C_Read... [11:13:35]Read from MH i2c: F0 [11:13:35]MH_I2C_Read... [11:13:35]Read from MH i2c: F0 09 00 [11:13:35]MH_I2C_Read... [11:13:35]Read from MH i2c: F0 09 00 E3 24 00 E3 88 17 67 82 C9 CF 66 68 [11:13:35]GetLastDocTimeStamp 1729595506 [11:13:35]current date 1729595619 [11:13:35]FM_GetShiftState [11:13:35]SAM_PROTO_GetShiftState [11:13:35]wFMCommunicate request_size=4 [11:13:35]MH_SAM_APDU [11:13:35]CAPDU: 80 13 01 00 [11:13:35]Write to MH i2c: E2 08 00 E4 24 80 13 01 00 00 00 00 00 85 [11:13:35]Write i2c OK [11:13:35]MH_I2C_Read... [11:13:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:35]Read from MH i2c: E2 [11:13:35]MH_I2C_Read... [11:13:35]Read from MH i2c: E2 0E 00 [11:13:35]MH_I2C_Read... [11:13:35]Read from MH i2c: E2 0E 00 E4 24 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 4C [11:13:35]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [11:13:35]wFMCommunicate OK [11:13:35]SAM_PROTO_GetShiftState done [11:13:35]FM_GetShiftState done [11:13:35]opened in 1729555538 [11:13:35]opened+sec_in_day 1729641938 [11:13:35]quantity*price = 86501 [11:13:35]sum+1 = 86503 [11:13:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 865.00 Внесено: 865.00 СДАЧА: 0.00 НСП 1% : 7.65 НДС 12% : 91.86 Наличными: 865.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 118 22.10.2024 11:13 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228154 ФПД: 89280867793457 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111339&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228154&fm=89280867793457&tin=02508201610067®Number=0000000000091685&sum=86500 [11:13:36]StoreToDocumentArchive [11:13:36]shift 535 fd 228154 [11:13:36]save to /storage/0535/doc_00228154 [11:13:36]save last doc name /storage/0535/doc_00228154 to /storage/kkm_last_doc_name [11:13:36]save OK [11:13:36]Clear old archive folders... [11:13:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:13:36]tlvbuf is 00A81580 [11:13:36]SAM_PROTO_ClearQueue [11:13:36]wFMCommunicate request_size=4 [11:13:36]MH_SAM_APDU [11:13:36]CAPDU: 80 09 00 00 [11:13:36]Write to MH i2c: E2 08 00 F1 24 80 09 00 00 00 00 00 00 87 [11:13:36]Write i2c OK [11:13:36]MH_I2C_Read... [11:13:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:36]Read from MH i2c: E2 [11:13:36]MH_I2C_Read... [11:13:36]Read from MH i2c: E2 03 00 [11:13:36]MH_I2C_Read... [11:13:36]Read from MH i2c: E2 03 00 F1 24 00 90 00 89 [11:13:36]RAPDU: 90 00 [11:13:36]wFMCommunicate OK [11:13:36]SAM_PROTO_ClearQueue done [11:13:36]KKMCreateOFDPacket [11:13:36]OFDProtocolAddRootSTLVToBuf [11:13:36]FM_MakeSignedData [11:13:36]FM_MakeSignedData [11:13:36]SAM_PROTO_SignData [11:13:36]wFMCommunicate request_size=4 [11:13:36]MH_SAM_APDU [11:13:36]CAPDU: 80 0D 01 02 [11:13:36]Write to MH i2c: E2 08 00 F2 24 80 0D 01 02 00 00 00 00 8F [11:13:36]Write i2c OK [11:13:36]MH_I2C_Read... [11:13:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:37]Read from MH i2c: E2 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: E2 03 00 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: E2 03 00 F2 24 00 90 00 8A [11:13:37]RAPDU: 90 00 [11:13:37]wFMCommunicate OK [11:13:37]wFMCommunicate request_size=255 [11:13:37]MH_SAM_APDU [11:13:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 82 32 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 51 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 51 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 23 00 00 00 00 07 04 06 00 E4 51 01 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 E3 88 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3A 7B 03 00 35 04 06 00 51 [11:13:37]Write to MH i2c: E2 02 01 F3 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 82 32 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 51 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 51 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 23 00 00 00 00 07 04 06 00 E4 51 01 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 E3 88 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3A 7B 03 00 35 04 06 00 51 00 00 BA [11:13:37]Write i2c OK [11:13:37]MH_I2C_Read... [11:13:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:37]Read from MH i2c: E2 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: E2 03 00 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: E2 03 00 F3 24 00 90 00 8B [11:13:37]RAPDU: 90 00 [11:13:37]wFMCommunicate OK [11:13:37]wFMCommunicate request_size=10 [11:13:37]MH_SAM_APDU [11:13:37]CAPDU: 80 0D 02 02 05 33 52 68 FA 31 [11:13:37]Write to MH i2c: E2 0D 00 F4 24 80 0D 02 02 05 00 33 52 68 FA 31 00 00 B4 [11:13:37]Write i2c OK [11:13:37]MH_I2C_Read... [11:13:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:37]Read from MH i2c: E2 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: E2 03 00 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: E2 03 00 F4 24 00 90 00 8C [11:13:37]RAPDU: 90 00 [11:13:37]wFMCommunicate OK [11:13:37]wFMCommunicate request_size=4 [11:13:37]MH_SAM_APDU [11:13:37]CAPDU: 80 0D 03 02 [11:13:37]Write to MH i2c: E2 08 00 F5 24 80 0D 03 02 00 00 00 00 94 [11:13:37]Write i2c OK [11:13:37]MH_I2C_Read... [11:13:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:37]Read from MH i2c: E2 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: E2 0B 00 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: E2 0B 00 F5 24 00 7B 2B B2 CC 12 0A EF A5 90 00 69 [11:13:37]RAPDU: 7B 2B B2 CC 12 0A EF A5 90 00 [11:13:37]wFMCommunicate OK [11:13:37]SAM_PROTO_SignData done [11:13:37]FM_MakeSignedData done [11:13:37]CreateOFDProtocolMessage [11:13:37]wFMCommunicate request_size=4 [11:13:37]MH_SAM_APDU [11:13:37]CAPDU: 80 11 00 00 [11:13:37]Write to MH i2c: E2 08 00 F6 24 80 11 00 00 00 00 00 00 94 [11:13:37]Write i2c OK [11:13:37]MH_I2C_Read... [11:13:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:37]Read from MH i2c: E2 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: E2 17 00 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: E2 17 00 F6 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 EB [11:13:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:13:37]wFMCommunicate OK [11:13:37]CreateOFDProtocolMessage done [11:13:37]OFDSenderStorePacket 228154 [11:13:37]StoreOFDPacket docnum=228154 [11:13:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 E1 9C 07 01 70 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 82 32 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 51 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 51 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 23 00 00 00 00 07 04 06 00 E4 51 01 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 E3 88 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3A 7B 03 00 35 04 06 00 51 33 52 68 FA 31 7B 2B B2 CC 12 0A EF A5 [11:13:37]CheckFolder [11:13:37]dirname=/storage/ofd_packets [11:13:37]CheckFolder done [11:13:37]ProducePacketName [11:13:37]name=ofd_packets/00228154 [11:13:37]NVStorageSaveData ofd_packets/00228154 [11:13:37]File name is /storage/ofd_packets/00228154 [11:13:37]Write 301 bytes [11:13:37]NVStorageSaveData done [11:13:37]OFDSenderStorePacket done [11:13:37]KKMCreateOFDPacket done [11:13:37]NVStorageSaveData kkm_last_timestamp [11:13:37]File name is /storage/kkm_last_timestamp [11:13:37]Write 4 bytes [11:13:37]NVStorageSaveData done [11:13:37]ExternCall_PrintAddStr [11:13:37]wPrintStart [11:13:37]Write to MH i2c: 01 00 00 F7 24 1B [11:13:37]Write i2c OK [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: 01 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: 01 07 00 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: 01 07 00 F7 24 00 00 00 00 00 FF 0F 30 [11:13:37]RasterBufferAndPrint [11:13:37]line Счет N : (1)1964554 [11:13:37]line ИНН: 02508201610067 [11:13:37]line Контрольно-Кассовый Чек [11:13:37]line ПРОДАЖА [11:13:37]line ТРК (МРК, ГНК) : 43 [11:13:37]line Товар: 2710124130 [11:13:37]line Аи-92-К-5 [11:13:37]line 12.930 * 66.90 [11:13:37]line = 865.02 [11:13:37]line НДС 12% НСП 1% [11:13:37]line > о реализуемом товаре [11:13:37]line ОКРУГЛЕНИЕ: -0.02 [11:13:37]line ИТОГО: 865.00 [11:13:37]line Внесено: 865.00 [11:13:37]line СДАЧА: 0.00 [11:13:37]line НСП 1% : 7.65 [11:13:37]line НДС 12% : 91.86 [11:13:37]line Наличными: 865.00 [11:13:37]line Безнал.: 0.00 [11:13:37]line Место: АЗС № 133 "Партнер Нефть" [11:13:37]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:13:37]line СНО: Общий режим [11:13:37]line Чек 118 22.10.2024 11:13 [11:13:37]line Смена: 535 ФФД: 1.0 [11:13:37]line ЗНМ: 0300000091 [11:13:37]line РНМ: 0000000000091685 [11:13:37]line Версия ККМ: 001 [11:13:37]line ФМ: 0000000000871839 [11:13:37]line ФД: 228154 [11:13:37]line ФПД: 89280867793457 [11:13:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111339&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228154&fm=89280867793457&tin=02508201610067®Number=0000000000091685&sum=86500 [11:13:37]OFD Sender: Processing packet 228154 [packets to send 38, broken 37] [11:13:37]ProducePacketName [11:13:37]name=ofd_packets/00228154 [11:13:37]OFD Sender: To server: pG, [11:13:37]CommunicateWithHost lk.salyk.kg:30040 [11:13:37]ConnectInit lk.salyk.kg [11:13:37]written 0, free lines is 4095 [11:13:37]Connected sock=10 [11:13:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 E1 9C 07 01 70 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 82 32 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 51 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 51 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 23 00 00 00 00 07 04 06 00 E4 51 01 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 E3 88 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3A 7B 03 00 35 04 06 00 51 33 52 68 FA 31 7B 2B B2 CC 12 0A EF A5 [11:13:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 2B 69 47 00 C7 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3A 7B 03 00 F4 03 04 00 DB 33 17 67 B6 04 01 00 00 DC D5 9B 09 F8 5F 8A 6C [11:13:38]CommunicateWithHost err = 0 [11:13:38]CheckOFDResponse [11:13:38]1017 (14) - 77093643461234 [11:13:38]1041 (16) - 0000000000871839 [11:13:38]1040 (4) - 228154 [11:13:38]1012 (4) - 22.10.2024 05:10 [11:13:38]1206 (1) - 0 [11:13:38]OFD Sender: Remove packet 228154 [11:13:38]ProducePacketName [11:13:38]name=ofd_packets/00228154 [11:13:38]NVStorageDeleteData [11:13:38]Write to MH i2c: 01 00 00 21 25 46 [11:13:38]Write i2c OK [11:13:38]MH_I2C_Read... [11:13:38]Read from MH i2c: 01 [11:13:38]MH_I2C_Read... [11:13:38]Read from MH i2c: 01 07 00 [11:13:38]MH_I2C_Read... [11:13:38]Read from MH i2c: 01 07 00 21 25 00 00 00 00 00 E2 0C 3B [11:13:38]RasterBufferAndPrint [11:13:38]line [11:13:38]line [11:13:38]line [11:13:38]line [11:13:38]line [11:13:38]written 0, free lines is 3303 [11:13:38]MH_Cut [11:13:38]Write to MH i2c: D1 01 00 28 25 01 1F [11:13:38]Write i2c OK [11:13:38]MH_I2C_Read... [11:13:38]Read from MH i2c: D1 [11:13:38]MH_I2C_Read... [11:13:38]Read from MH i2c: D1 01 00 [11:13:38]MH_I2C_Read... [11:13:38]Read from MH i2c: D1 01 00 28 25 00 1E [11:13:38]Write to MH i2c: 01 00 00 29 25 4E [11:13:38]Write i2c OK [11:13:38]MH_I2C_Read... [11:13:38]OFD Sender: No OFD packet to send [11:13:39]*** Cut start [11:13:39]*** Partial cut [11:13:39]*** CUTSNS_PIN = 1 [11:13:39]*** CUTSNS_PIN = 0 [11:13:39]*** Brake cut motor [11:13:39]Read from MH i2c: 01 [11:13:39]MH_I2C_Read... [11:13:39]*** Stop cut motor [11:13:39]*** Cut end [11:13:39]Read from MH i2c: 01 07 00 [11:13:39]MH_I2C_Read... [11:13:39]Read from MH i2c: 01 07 00 29 25 00 00 00 00 00 FF 0F 63 [11:13:39]process_action close_receipt done [11:13:39]requested_data is exist [11:13:39]produce_requested_data [11:13:39]requested_item fm.sn is exist - process it [11:13:39]wFMCommunicate request_size=4 [11:13:39]MH_SAM_APDU [11:13:39]CAPDU: 80 11 00 00 [11:13:39]Write to MH i2c: E2 08 00 2A 25 80 11 00 00 00 00 00 00 C9 [11:13:39]Write i2c OK [11:13:39]MH_I2C_Read... [11:13:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:39]Read from MH i2c: E2 [11:13:39]MH_I2C_Read... [11:13:39]Read from MH i2c: E2 17 00 [11:13:39]MH_I2C_Read... [11:13:39]Read from MH i2c: E2 17 00 2A 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 20 [11:13:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:13:39]wFMCommunicate OK [11:13:39]requested_item fd.num is exist - process it [11:13:39]SAM_PROTO_GetFieldsCounters [11:13:39]wFMCommunicate request_size=4 [11:13:39]MH_SAM_APDU [11:13:39]CAPDU: 80 13 00 00 [11:13:39]Write to MH i2c: E2 08 00 2B 25 80 13 00 00 00 00 00 00 CC [11:13:39]Write i2c OK [11:13:39]MH_I2C_Read... [11:13:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:39]Read from MH i2c: E2 [11:13:39]MH_I2C_Read... [11:13:39]Read from MH i2c: E2 62 00 [11:13:39]MH_I2C_Read... [11:13:39]Read from MH i2c: E2 62 00 2B 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3A 7B 03 00 0E 04 04 00 17 02 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 28 [11:13:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3A 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:13:39]wFMCommunicate OK [11:13:39]SAM_PROTO_GetFieldsCounters done [11:13:39]requested_item shift.num is exist - process it [11:13:39]requested_item shift.opened is exist - process it [11:13:39]req_shift_opened [11:13:39]FM_GetShiftState [11:13:39]SAM_PROTO_GetShiftState [11:13:39]wFMCommunicate request_size=4 [11:13:39]MH_SAM_APDU [11:13:39]CAPDU: 80 13 01 00 [11:13:39]Write to MH i2c: E2 08 00 2C 25 80 13 01 00 00 00 00 00 CE [11:13:39]Write i2c OK [11:13:39]MH_I2C_Read... [11:13:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:39]Read from MH i2c: E2 [11:13:39]MH_I2C_Read... [11:13:39]Read from MH i2c: E2 0E 00 [11:13:39]MH_I2C_Read... [11:13:39]Read from MH i2c: E2 0E 00 2C 25 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 95 [11:13:39]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [11:13:39]wFMCommunicate OK [11:13:39]SAM_PROTO_GetShiftState done [11:13:39]FM_GetShiftState done [11:13:39]req_shift_opened done [11:13:39]requested_item shift.open_date is exist - process it [11:13:39]req_shift_open_date [11:13:39]req_shift_open_date done [11:13:39]produce_requested_data done [11:13:39]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228154,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [11:13:39]process_action_free close_receipt [11:13:39]json_value_free [11:13:39]json_value_free done [11:13:39]process_json_proto returns [11:13:39]Send response to host [11:13:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228154,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [11:13:39]free response buf [11:13:39]execute_script done [11:13:39]execute_script returns [11:13:39]free content buf [11:13:39]Sock 7.Close socket [11:13:39]Sock 7.Thread stoped [11:13:43]OFD Sender: No OFD packet to send [11:13:48]OFD Sender: No OFD packet to send [11:13:53]OFD Sender: No OFD packet to send [11:13:58]OFD Sender: No OFD packet to send [11:14:03]OFD Sender: No OFD packet to send [11:14:08]OFD Sender: No OFD packet to send [11:14:13]OFD Sender: No OFD packet to send [11:14:18]OFD Sender: No OFD packet to send [11:14:23]OFD Sender: No OFD packet to send [11:14:28]OFD Sender: No OFD packet to send [11:14:33]OFD Sender: No OFD packet to send [11:14:38]OFD Sender: No OFD packet to send [11:14:43]OFD Sender: No OFD packet to send [11:14:48]OFD Sender: No OFD packet to send [11:14:53]OFD Sender: No OFD packet to send [11:14:58]OFD Sender: No OFD packet to send [11:15:03]OFD Sender: No OFD packet to send [11:15:08]OFD Sender: No OFD packet to send [11:15:13]OFD Sender: No OFD packet to send [11:15:18]OFD Sender: No OFD packet to send [11:15:23]OFD Sender: No OFD packet to send [11:15:28]OFD Sender: No OFD packet to send [11:15:33]OFD Sender: No OFD packet to send [11:15:38]OFD Sender: No OFD packet to send [11:15:43]OFD Sender: No OFD packet to send [11:15:48]OFD Sender: No OFD packet to send [11:15:53]OFD Sender: No OFD packet to send [11:15:58]OFD Sender: No OFD packet to send [11:16:03]OFD Sender: No OFD packet to send [11:16:08]OFD Sender: No OFD packet to send [11:16:13]OFD Sender: No OFD packet to send [11:16:18]OFD Sender: No OFD packet to send [11:16:23]OFD Sender: No OFD packet to send [11:16:28]OFD Sender: No OFD packet to send [11:16:33]OFD Sender: No OFD packet to send [11:16:38]OFD Sender: No OFD packet to send [11:16:43]OFD Sender: No OFD packet to send [11:16:48]OFD Sender: No OFD packet to send [11:16:53]OFD Sender: No OFD packet to send [11:16:58]OFD Sender: No OFD packet to send [11:17:03]OFD Sender: No OFD packet to send [11:17:08]OFD Sender: No OFD packet to send [11:17:13]OFD Sender: No OFD packet to send [11:17:18]OFD Sender: No OFD packet to send [11:17:23]OFD Sender: No OFD packet to send [11:17:28]OFD Sender: No OFD packet to send [11:17:33]OFD Sender: No OFD packet to send [11:17:38]OFD Sender: No OFD packet to send [11:17:43]OFD Sender: No OFD packet to send [11:17:48]OFD Sender: No OFD packet to send [11:17:53]OFD Sender: No OFD packet to send [11:17:58]OFD Sender: No OFD packet to send [11:18:03]OFD Sender: No OFD packet to send [11:18:08]OFD Sender: No OFD packet to send [11:18:13]OFD Sender: No OFD packet to send [11:18:18]OFD Sender: No OFD packet to send [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:53]OFD Sender: No OFD packet to send [11:18:58]OFD Sender: No OFD packet to send [11:19:03]OFD Sender: No OFD packet to send [11:19:08]OFD Sender: No OFD packet to send [11:19:13]OFD Sender: No OFD packet to send [11:19:18]OFD Sender: No OFD packet to send [11:19:23]OFD Sender: No OFD packet to send [11:19:28]OFD Sender: No OFD packet to send [11:19:33]OFD Sender: No OFD packet to send [11:19:38]OFD Sender: No OFD packet to send [11:19:43]OFD Sender: No OFD packet to send [11:19:48]OFD Sender: No OFD packet to send [11:19:53]OFD Sender: No OFD packet to send [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:18]OFD Sender: No OFD packet to send [11:20:23]OFD Sender: No OFD packet to send [11:20:28]OFD Sender: No OFD packet to send [11:20:34]OFD Sender: No OFD packet to send [11:20:39]OFD Sender: No OFD packet to send [11:20:44]OFD Sender: No OFD packet to send [11:20:49]OFD Sender: No OFD packet to send [11:20:54]OFD Sender: No OFD packet to send [11:20:59]OFD Sender: No OFD packet to send [11:21:04]OFD Sender: No OFD packet to send [11:21:09]OFD Sender: No OFD packet to send [11:21:14]OFD Sender: No OFD packet to send [11:21:19]OFD Sender: No OFD packet to send [11:21:24]OFD Sender: No OFD packet to send [11:21:29]OFD Sender: No OFD packet to send [11:21:34]OFD Sender: No OFD packet to send [11:21:39]OFD Sender: No OFD packet to send [11:21:44]OFD Sender: No OFD packet to send [11:21:49]OFD Sender: No OFD packet to send [11:21:54]OFD Sender: No OFD packet to send [11:21:59]OFD Sender: No OFD packet to send [11:22:04]OFD Sender: No OFD packet to send [11:22:09]OFD Sender: No OFD packet to send [11:22:14]OFD Sender: No OFD packet to send [11:22:19]OFD Sender: No OFD packet to send [11:22:24]OFD Sender: No OFD packet to send [11:22:29]OFD Sender: No OFD packet to send [11:22:34]OFD Sender: No OFD packet to send [11:22:39]OFD Sender: No OFD packet to send [11:22:44]OFD Sender: No OFD packet to send [11:22:49]OFD Sender: No OFD packet to send [11:22:54]OFD Sender: No OFD packet to send [11:22:59]OFD Sender: No OFD packet to send [11:23:04]OFD Sender: No OFD packet to send [11:23:09]OFD Sender: No OFD packet to send [11:23:14]OFD Sender: No OFD packet to send [11:23:19]OFD Sender: No OFD packet to send [11:23:24]OFD Sender: No OFD packet to send [11:23:29]OFD Sender: No OFD packet to send [11:23:34]OFD Sender: No OFD packet to send [11:23:39]OFD Sender: No OFD packet to send [11:23:44]OFD Sender: No OFD packet to send [11:23:49]OFD Sender: No OFD packet to send [11:23:54]OFD Sender: No OFD packet to send [11:23:59]OFD Sender: No OFD packet to send [11:24:04]OFD Sender: No OFD packet to send [11:24:09]OFD Sender: No OFD packet to send [11:24:14]OFD Sender: No OFD packet to send [11:24:19]OFD Sender: No OFD packet to send [11:24:24]OFD Sender: No OFD packet to send [11:24:29]OFD Sender: No OFD packet to send [11:24:34]OFD Sender: No OFD packet to send [11:24:39]OFD Sender: No OFD packet to send [11:24:44]OFD Sender: No OFD packet to send [11:24:49]OFD Sender: No OFD packet to send [11:24:54]OFD Sender: No OFD packet to send [11:24:59]OFD Sender: No OFD packet to send [11:25:04]OFD Sender: No OFD packet to send [11:25:09]OFD Sender: No OFD packet to send [11:25:14]OFD Sender: No OFD packet to send [11:25:19]OFD Sender: No OFD packet to send [11:25:24]OFD Sender: No OFD packet to send [11:25:29]OFD Sender: No OFD packet to send [11:25:34]OFD Sender: No OFD packet to send [11:25:39]OFD Sender: No OFD packet to send [11:25:44]OFD Sender: No OFD packet to send [11:25:49]OFD Sender: No OFD packet to send [11:25:54]OFD Sender: No OFD packet to send [11:25:59]OFD Sender: No OFD packet to send [11:26:04]OFD Sender: No OFD packet to send [11:26:09]OFD Sender: No OFD packet to send [11:26:14]OFD Sender: No OFD packet to send [11:26:19]OFD Sender: No OFD packet to send [11:26:24]OFD Sender: No OFD packet to send [11:26:29]OFD Sender: No OFD packet to send [11:26:34]OFD Sender: No OFD packet to send [11:26:39]OFD Sender: No OFD packet to send [11:26:44]OFD Sender: No OFD packet to send [11:26:49]OFD Sender: No OFD packet to send [11:26:54]OFD Sender: No OFD packet to send [11:26:59]OFD Sender: No OFD packet to send [11:27:04]OFD Sender: No OFD packet to send [11:27:09]OFD Sender: No OFD packet to send [11:27:14]OFD Sender: No OFD packet to send [11:27:19]OFD Sender: No OFD packet to send [11:27:24]OFD Sender: No OFD packet to send [11:27:29]OFD Sender: No OFD packet to send [11:27:34]OFD Sender: No OFD packet to send [11:27:39]OFD Sender: No OFD packet to send [11:27:44]OFD Sender: No OFD packet to send [11:27:49]OFD Sender: No OFD packet to send [11:27:54]OFD Sender: No OFD packet to send [11:27:59]OFD Sender: No OFD packet to send [11:28:04]OFD Sender: No OFD packet to send [11:28:09]OFD Sender: No OFD packet to send [11:28:14]OFD Sender: No OFD packet to send [11:28:19]OFD Sender: No OFD packet to send [11:28:24]OFD Sender: No OFD packet to send [11:28:29]OFD Sender: No OFD packet to send [11:28:34]OFD Sender: No OFD packet to send [11:28:39]OFD Sender: No OFD packet to send [11:28:44]OFD Sender: No OFD packet to send [11:28:49]OFD Sender: No OFD packet to send [11:28:54]OFD Sender: No OFD packet to send [11:28:59]OFD Sender: No OFD packet to send [11:29:04]OFD Sender: No OFD packet to send [11:29:09]OFD Sender: No OFD packet to send [11:29:14]OFD Sender: No OFD packet to send [11:29:19]OFD Sender: No OFD packet to send [11:29:24]OFD Sender: No OFD packet to send [11:29:29]OFD Sender: No OFD packet to send [11:29:34]OFD Sender: No OFD packet to send [11:29:39]OFD Sender: No OFD packet to send [11:29:44]OFD Sender: No OFD packet to send [11:29:49]OFD Sender: No OFD packet to send [11:29:54]OFD Sender: No OFD packet to send [11:29:59]OFD Sender: No OFD packet to send [11:30:04]OFD Sender: No OFD packet to send [11:30:09]OFD Sender: No OFD packet to send [11:30:14]OFD Sender: No OFD packet to send [11:30:19]OFD Sender: No OFD packet to send [11:30:24]OFD Sender: No OFD packet to send [11:30:29]OFD Sender: No OFD packet to send [11:30:34]OFD Sender: No OFD packet to send [11:30:39]OFD Sender: No OFD packet to send [11:30:44]OFD Sender: No OFD packet to send [11:30:49]OFD Sender: No OFD packet to send [11:30:54]OFD Sender: No OFD packet to send [11:30:59]OFD Sender: No OFD packet to send [11:31:04]OFD Sender: No OFD packet to send [11:31:09]OFD Sender: No OFD packet to send [11:31:14]OFD Sender: No OFD packet to send [11:31:19]OFD Sender: No OFD packet to send [11:31:24]OFD Sender: No OFD packet to send [11:31:29]OFD Sender: No OFD packet to send [11:31:34]OFD Sender: No OFD packet to send [11:31:39]OFD Sender: No OFD packet to send [11:31:44]OFD Sender: No OFD packet to send [11:31:49]OFD Sender: No OFD packet to send [11:31:54]OFD Sender: No OFD packet to send [11:31:59]OFD Sender: No OFD packet to send [11:32:04]OFD Sender: No OFD packet to send [11:32:09]OFD Sender: No OFD packet to send [11:32:14]OFD Sender: No OFD packet to send [11:32:19]OFD Sender: No OFD packet to send [11:32:24]OFD Sender: No OFD packet to send [11:32:29]OFD Sender: No OFD packet to send [11:32:34]OFD Sender: No OFD packet to send [11:32:39]OFD Sender: No OFD packet to send [11:32:44]OFD Sender: No OFD packet to send [11:32:49]OFD Sender: No OFD packet to send [11:32:54]OFD Sender: No OFD packet to send [11:32:59]OFD Sender: No OFD packet to send [11:33:04]OFD Sender: No OFD packet to send [11:33:09]OFD Sender: No OFD packet to send [11:33:14]OFD Sender: No OFD packet to send [11:33:19]OFD Sender: No OFD packet to send [11:33:24]OFD Sender: No OFD packet to send [11:33:29]OFD Sender: No OFD packet to send [11:33:34]OFD Sender: No OFD packet to send [11:33:39]OFD Sender: No OFD packet to send [11:33:44]OFD Sender: No OFD packet to send [11:33:49]OFD Sender: No OFD packet to send [11:33:54]OFD Sender: No OFD packet to send [11:33:59]OFD Sender: No OFD packet to send [11:34:04]OFD Sender: No OFD packet to send [11:34:09]OFD Sender: No OFD packet to send [11:34:14]OFD Sender: No OFD packet to send [11:34:19]OFD Sender: No OFD packet to send [11:34:24]OFD Sender: No OFD packet to send [11:34:29]OFD Sender: No OFD packet to send [11:34:34]OFD Sender: No OFD packet to send [11:34:39]OFD Sender: No OFD packet to send [11:34:44]OFD Sender: No OFD packet to send [11:34:49]OFD Sender: No OFD packet to send [11:34:54]OFD Sender: No OFD packet to send [11:34:59]OFD Sender: No OFD packet to send [11:35:04]OFD Sender: No OFD packet to send [11:35:09]OFD Sender: No OFD packet to send [11:35:14]OFD Sender: No OFD packet to send [11:35:19]OFD Sender: No OFD packet to send [11:35:24]OFD Sender: No OFD packet to send [11:35:29]OFD Sender: No OFD packet to send [11:35:34]OFD Sender: No OFD packet to send [11:35:39]OFD Sender: No OFD packet to send [11:35:44]OFD Sender: No OFD packet to send [11:35:49]OFD Sender: No OFD packet to send [11:35:54]OFD Sender: No OFD packet to send [11:35:59]OFD Sender: No OFD packet to send [11:36:04]OFD Sender: No OFD packet to send [11:36:09]OFD Sender: No OFD packet to send [11:36:14]OFD Sender: No OFD packet to send [11:36:19]OFD Sender: No OFD packet to send [11:36:24]OFD Sender: No OFD packet to send [11:36:29]OFD Sender: No OFD packet to send [11:36:34]OFD Sender: No OFD packet to send [11:36:39]OFD Sender: No OFD packet to send [11:36:44]OFD Sender: No OFD packet to send [11:36:49]OFD Sender: No OFD packet to send [11:36:54]OFD Sender: No OFD packet to send [11:36:59]OFD Sender: No OFD packet to send [11:37:04]OFD Sender: No OFD packet to send [11:37:09]OFD Sender: No OFD packet to send [11:37:14]OFD Sender: No OFD packet to send [11:37:19]OFD Sender: No OFD packet to send [11:37:24]OFD Sender: No OFD packet to send [11:37:29]OFD Sender: No OFD packet to send [11:37:34]OFD Sender: No OFD packet to send [11:37:39]OFD Sender: No OFD packet to send [11:37:44]OFD Sender: No OFD packet to send [11:37:49]OFD Sender: No OFD packet to send [11:37:54]OFD Sender: No OFD packet to send [11:37:59]OFD Sender: No OFD packet to send [11:38:04]OFD Sender: No OFD packet to send [11:38:09]OFD Sender: No OFD packet to send [11:38:14]OFD Sender: No OFD packet to send [11:38:19]OFD Sender: No OFD packet to send [11:38:24]OFD Sender: No OFD packet to send [11:38:29]OFD Sender: No OFD packet to send [11:38:34]OFD Sender: No OFD packet to send [11:38:39]OFD Sender: No OFD packet to send [11:38:44]OFD Sender: No OFD packet to send [11:38:49]OFD Sender: No OFD packet to send [11:38:54]OFD Sender: No OFD packet to send [11:38:59]OFD Sender: No OFD packet to send [11:39:04]OFD Sender: No OFD packet to send [11:39:09]OFD Sender: No OFD packet to send [11:39:14]OFD Sender: No OFD packet to send [11:39:19]OFD Sender: No OFD packet to send [11:39:24]OFD Sender: No OFD packet to send [11:39:29]OFD Sender: No OFD packet to send [11:39:34]OFD Sender: No OFD packet to send [11:39:40]OFD Sender: No OFD packet to send [11:39:45]OFD Sender: No OFD packet to send [11:39:50]OFD Sender: No OFD packet to send [11:39:55]OFD Sender: No OFD packet to send [11:40:00]OFD Sender: No OFD packet to send [11:40:05]OFD Sender: No OFD packet to send [11:40:10]OFD Sender: No OFD packet to send [11:40:15]OFD Sender: No OFD packet to send [11:40:20]OFD Sender: No OFD packet to send [11:40:25]OFD Sender: No OFD packet to send [11:40:30]OFD Sender: No OFD packet to send [11:40:35]OFD Sender: No OFD packet to send [11:40:40]OFD Sender: No OFD packet to send [11:40:45]OFD Sender: No OFD packet to send [11:40:50]OFD Sender: No OFD packet to send [11:40:55]OFD Sender: No OFD packet to send [11:41:00]OFD Sender: No OFD packet to send [11:41:05]OFD Sender: No OFD packet to send [11:41:10]OFD Sender: No OFD packet to send [11:41:15]OFD Sender: No OFD packet to send [11:41:20]OFD Sender: No OFD packet to send [11:41:25]OFD Sender: No OFD packet to send [11:41:30]OFD Sender: No OFD packet to send [11:41:35]OFD Sender: No OFD packet to send [11:41:40]OFD Sender: No OFD packet to send [11:41:45]OFD Sender: No OFD packet to send [11:41:50]OFD Sender: No OFD packet to send [11:41:55]OFD Sender: No OFD packet to send [11:42:00]OFD Sender: No OFD packet to send [11:42:05]OFD Sender: No OFD packet to send [11:42:10]OFD Sender: No OFD packet to send [11:42:15]OFD Sender: No OFD packet to send [11:42:20]OFD Sender: No OFD packet to send [11:42:25]OFD Sender: No OFD packet to send [11:42:30]OFD Sender: No OFD packet to send [11:42:35]OFD Sender: No OFD packet to send [11:42:40]OFD Sender: No OFD packet to send [11:42:45]OFD Sender: No OFD packet to send [11:42:50]OFD Sender: No OFD packet to send [11:42:55]OFD Sender: No OFD packet to send [11:43:00]OFD Sender: No OFD packet to send [11:43:05]OFD Sender: No OFD packet to send [11:43:10]OFD Sender: No OFD packet to send [11:43:15]OFD Sender: No OFD packet to send [11:43:20]OFD Sender: No OFD packet to send [11:43:25]OFD Sender: No OFD packet to send [11:43:30]OFD Sender: No OFD packet to send [11:43:35]OFD Sender: No OFD packet to send [11:43:40]OFD Sender: No OFD packet to send [11:43:45]OFD Sender: No OFD packet to send [11:43:50]OFD Sender: No OFD packet to send [11:43:55]OFD Sender: No OFD packet to send [11:44:00]OFD Sender: No OFD packet to send [11:44:05]OFD Sender: No OFD packet to send [11:44:10]OFD Sender: No OFD packet to send [11:44:15]OFD Sender: No OFD packet to send [11:44:20]OFD Sender: No OFD packet to send [11:44:25]OFD Sender: No OFD packet to send [11:44:30]OFD Sender: No OFD packet to send [11:44:35]OFD Sender: No OFD packet to send [11:44:40]OFD Sender: No OFD packet to send [11:44:45]OFD Sender: No OFD packet to send [11:44:50]OFD Sender: No OFD packet to send [11:44:55]OFD Sender: No OFD packet to send [11:45:00]OFD Sender: No OFD packet to send [11:45:05]OFD Sender: No OFD packet to send [11:45:10]OFD Sender: No OFD packet to send [11:45:15]OFD Sender: No OFD packet to send [11:45:20]OFD Sender: No OFD packet to send [11:45:25]OFD Sender: No OFD packet to send [11:45:30]OFD Sender: No OFD packet to send [11:45:35]OFD Sender: No OFD packet to send [11:45:40]OFD Sender: No OFD packet to send [11:45:45]OFD Sender: No OFD packet to send [11:45:50]OFD Sender: No OFD packet to send [11:45:55]OFD Sender: No OFD packet to send [11:46:00]OFD Sender: No OFD packet to send [11:46:05]OFD Sender: No OFD packet to send [11:46:10]OFD Sender: No OFD packet to send [11:46:15]OFD Sender: No OFD packet to send [11:46:20]OFD Sender: No OFD packet to send [11:46:25]OFD Sender: No OFD packet to send [11:46:30]OFD Sender: No OFD packet to send [11:46:35]OFD Sender: No OFD packet to send [11:46:40]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:05]OFD Sender: No OFD packet to send [11:47:10]OFD Sender: No OFD packet to send [11:47:15]OFD Sender: No OFD packet to send [11:47:20]OFD Sender: No OFD packet to send [11:47:25]OFD Sender: No OFD packet to send [11:47:30]OFD Sender: No OFD packet to send [11:47:35]OFD Sender: No OFD packet to send [11:47:40]OFD Sender: No OFD packet to send [11:47:45]OFD Sender: No OFD packet to send [11:47:46]accept exits with 9 [11:47:46]New connection [11:47:46]New thread 3066994020 created [11:47:46]Thread 3067137380 joined [11:47:46]Waiting for new connection... [11:47:46] Sock 9.Parse request [11:47:46]Sock 9.Check first char [11:47:46]Sock 9.First char is OK [11:47:46]request: POST /json_proto HTTP/1.0 [11:47:46]Method: POST [11:47:46]URL: /json_proto [11:47:46]Method is POST - this is cgi request [11:47:46]url: /json_proto [11:47:46]query_string will be loaded in cgi processing [11:47:46]execute_cgi json_proto POST (null) [11:47:46]execute_cgi path=json_proto method=POST [11:47:46]POST find Content-Length [11:47:46]Host: 172.17.44.195:8080 [11:47:46]Content-Length: 767 [11:47:46]Content-Type: application/json [11:47:46] [11:47:46]POST finish read [11:47:46]Found Content-Length = 767 [11:47:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:46]execute_script... [11:47: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)1964588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:46]POST & json_proto [11:47:46]process_json_proto [11:47:46]json parsed OK: [11:47:46]protocol is kg_v1.0 [11:47:46]action value=close_receipt [11:47:46]process_action close_receipt [11:47:46]cmd_close_receipt [11:47:46]MH_GetDate [11:47:46]Write to MH i2c: F0 00 00 2D 25 41 [11:47:46]Write i2c OK [11:47:46]MH_I2C_Read... [11:47:46]Read from MH i2c: F0 [11:47:46]MH_I2C_Read... [11:47:46]Read from MH i2c: F0 09 00 [11:47:46]MH_I2C_Read... [11:47:46]Read from MH i2c: F0 09 00 2D 25 00 E6 90 17 67 82 C9 CF 66 BE [11:47:46]GetLastDocTimeStamp 1729595619 [11:47:46]current date 1729597670 [11:47:46]FM_GetShiftState [11:47:46]SAM_PROTO_GetShiftState [11:47:46]wFMCommunicate request_size=4 [11:47:46]MH_SAM_APDU [11:47:46]CAPDU: 80 13 01 00 [11:47:46]Write to MH i2c: E2 08 00 2E 25 80 13 01 00 00 00 00 00 D0 [11:47:46]Write i2c OK [11:47:46]MH_I2C_Read... [11:47:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:46]Read from MH i2c: E2 [11:47:46]MH_I2C_Read... [11:47:46]Read from MH i2c: E2 0E 00 [11:47:46]MH_I2C_Read... [11:47:46]Read from MH i2c: E2 0E 00 2E 25 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 97 [11:47:46]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [11:47:46]wFMCommunicate OK [11:47:46]SAM_PROTO_GetShiftState done [11:47:46]FM_GetShiftState done [11:47:46]opened in 1729555538 [11:47:46]opened+sec_in_day 1729641938 [11:47:46]quantity*price = 50010 [11:47:46]sum+1 = 50012 [11:47:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 119 22.10.2024 11:47 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 228155 ФПД: 229131151338788 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114750&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228155&fm=229131151338788&tin=02508201610067®Number=0000000000091685&sum=50011 [11:47:47]StoreToDocumentArchive [11:47:47]shift 535 fd 228155 [11:47:47]save to /storage/0535/doc_00228155 [11:47:47]save last doc name /storage/0535/doc_00228155 to /storage/kkm_last_doc_name [11:47:47]save OK [11:47:47]Clear old archive folders... [11:47:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:47:47]tlvbuf is 00A815D0 [11:47:47]SAM_PROTO_ClearQueue [11:47:47]wFMCommunicate request_size=4 [11:47:47]MH_SAM_APDU [11:47:47]CAPDU: 80 09 00 00 [11:47:47]Write to MH i2c: E2 08 00 3B 25 80 09 00 00 00 00 00 00 D2 [11:47:47]Write i2c OK [11:47:47]MH_I2C_Read... [11:47:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:47]Read from MH i2c: E2 [11:47:47]MH_I2C_Read... [11:47:47]Read from MH i2c: E2 03 00 [11:47:47]MH_I2C_Read... [11:47:47]Read from MH i2c: E2 03 00 3B 25 00 90 00 D4 [11:47:47]RAPDU: 90 00 [11:47:47]wFMCommunicate OK [11:47:47]SAM_PROTO_ClearQueue done [11:47:47]KKMCreateOFDPacket [11:47:47]OFDProtocolAddRootSTLVToBuf [11:47:47]FM_MakeSignedData [11:47:47]FM_MakeSignedData [11:47:47]SAM_PROTO_SignData [11:47:47]wFMCommunicate request_size=4 [11:47:47]MH_SAM_APDU [11:47:47]CAPDU: 80 0D 01 02 [11:47:47]Write to MH i2c: E2 08 00 3C 25 80 0D 01 02 00 00 00 00 DA [11:47:47]Write i2c OK [11:47:47]MH_I2C_Read... [11:47:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:47]Read from MH i2c: E2 [11:47:47]MH_I2C_Read... [11:47:47]Read from MH i2c: E2 03 00 [11:47:47]MH_I2C_Read... [11:47:47]Read from MH i2c: E2 03 00 3C 25 00 90 00 D5 [11:47:47]RAPDU: 90 00 [11:47:47]wFMCommunicate OK [11:47:47]wFMCommunicate request_size=255 [11:47:47]MH_SAM_APDU [11:47: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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 E6 90 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3B 7B 03 00 35 04 06 00 D0 [11:47:47]Write to MH i2c: E2 02 01 3D 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 E6 90 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3B 7B 03 00 35 04 06 00 D0 00 00 6C [11:47:47]Write i2c OK [11:47:47]MH_I2C_Read... [11:47:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:47]Read from MH i2c: E2 [11:47:47]MH_I2C_Read... [11:47:47]Read from MH i2c: E2 03 00 [11:47:47]MH_I2C_Read... [11:47:47]Read from MH i2c: E2 03 00 3D 25 00 90 00 D6 [11:47:47]RAPDU: 90 00 [11:47:47]wFMCommunicate OK [11:47:47]wFMCommunicate request_size=10 [11:47:47]MH_SAM_APDU [11:47:47]CAPDU: 80 0D 02 02 05 64 C0 E1 ED 24 [11:47:47]Write to MH i2c: E2 0D 00 3E 25 80 0D 02 02 05 00 64 C0 E1 ED 24 00 00 FD [11:47:47]Write i2c OK [11:47:47]MH_I2C_Read... [11:47:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:48]Read from MH i2c: E2 [11:47:48]MH_I2C_Read... [11:47:48]Read from MH i2c: E2 03 00 [11:47:48]MH_I2C_Read... [11:47:48]Read from MH i2c: E2 03 00 3E 25 00 90 00 D7 [11:47:48]RAPDU: 90 00 [11:47:48]wFMCommunicate OK [11:47:48]wFMCommunicate request_size=4 [11:47:48]MH_SAM_APDU [11:47:48]CAPDU: 80 0D 03 02 [11:47:48]Write to MH i2c: E2 08 00 3F 25 80 0D 03 02 00 00 00 00 DF [11:47:48]Write i2c OK [11:47:48]MH_I2C_Read... [11:47:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:48]Read from MH i2c: E2 [11:47:48]MH_I2C_Read... [11:47:48]Read from MH i2c: E2 0B 00 [11:47:48]MH_I2C_Read... [11:47:48]Read from MH i2c: E2 0B 00 3F 25 00 80 75 2D 78 BE AD B6 68 90 00 03 [11:47:48]RAPDU: 80 75 2D 78 BE AD B6 68 90 00 [11:47:48]wFMCommunicate OK [11:47:48]SAM_PROTO_SignData done [11:47:48]FM_MakeSignedData done [11:47:48]CreateOFDProtocolMessage [11:47:48]wFMCommunicate request_size=4 [11:47:48]MH_SAM_APDU [11:47:48]CAPDU: 80 11 00 00 [11:47:48]Write to MH i2c: E2 08 00 40 25 80 11 00 00 00 00 00 00 DF [11:47:48]Write i2c OK [11:47:48]MH_I2C_Read... [11:47:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:48]Read from MH i2c: E2 [11:47:48]MH_I2C_Read... [11:47:48]Read from MH i2c: E2 17 00 [11:47:48]MH_I2C_Read... [11:47:48]Read from MH i2c: E2 17 00 40 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 36 [11:47:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:47:48]wFMCommunicate OK [11:47:48]CreateOFDProtocolMessage done [11:47:48]OFDSenderStorePacket 228155 [11:47:48]StoreOFDPacket docnum=228155 [11:47:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B5 3D 07 01 DC 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 E6 90 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3B 7B 03 00 35 04 06 00 D0 64 C0 E1 ED 24 80 75 2D 78 BE AD B6 68 [11:47:48]CheckFolder [11:47:48]dirname=/storage/ofd_packets [11:47:48]CheckFolder done [11:47:48]ProducePacketName [11:47:48]name=ofd_packets/00228155 [11:47:48]NVStorageSaveData ofd_packets/00228155 [11:47:48]File name is /storage/ofd_packets/00228155 [11:47:48]Write 301 bytes [11:47:48]NVStorageSaveData done [11:47:48]OFDSenderStorePacket done [11:47:48]KKMCreateOFDPacket done [11:47:48]NVStorageSaveData kkm_last_timestamp [11:47:48]File name is /storage/kkm_last_timestamp [11:47:48]Write 4 bytes [11:47:48]NVStorageSaveData done [11:47:48]ExternCall_PrintAddStr [11:47:48]wPrintStart [11:47:48]Write to MH i2c: 01 00 00 41 25 66 [11:47:48]Write i2c OK [11:47:48]MH_I2C_Read... [11:47:48]Read from MH i2c: 01 [11:47:48]MH_I2C_Read... [11:47:48]Read from MH i2c: 01 07 00 [11:47:48]MH_I2C_Read... [11:47:48]Read from MH i2c: 01 07 00 41 25 00 00 00 00 00 FF 0F 7B [11:47:48]RasterBufferAndPrint [11:47:48]line Счет N : (1)1964588 [11:47:48]line ИНН: 02508201610067 [11:47:48]line Контрольно-Кассовый Чек [11:47:48]line ПРОДАЖА [11:47:48]line ТРК (МРК, ГНК) : 64 [11:47:48]line Товар: 2710124500 [11:47:48]line Аи-95-К-5 [11:47:48]line 6.740 * 74.20 [11:47:48]line = 500.11 [11:47:48]line НДС 12% НСП 1% [11:47:48]line > о реализуемом товаре [11:47:48]line ИТОГО: 500.11 [11:47:48]line НСП 1% : 4.43 [11:47:48]line НДС 12% : 53.11 [11:47:48]line Наличными: 0.00 [11:47:48]line Безнал.: 500.11 [11:47:48]line Место: АЗС № 133 "Партнер Нефть" [11:47:48]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:47:48]line СНО: Общий режим [11:47:48]line Чек 119 22.10.2024 11:47 [11:47:48]line Смена: 535 ФФД: 1.0 [11:47:48]line ЗНМ: 0300000091 [11:47:48]line РНМ: 0000000000091685 [11:47:48]line Версия ККМ: 001 [11:47:48]line Платежная система: Mbank [11:47:48]line ФМ: 0000000000871839 [11:47:48]line ФД: 228155 [11:47:48]line ФПД: 229131151338788 [11:47:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114750&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228155&fm=229131151338788&tin=02508201610067®Number=0000000000091685&sum=50011 [11:47:48]written 0, free lines is 4095 [11:47:48]OFD Sender: Processing packet 228155 [packets to send 38, broken 37] [11:47:48]ProducePacketName [11:47:48]name=ofd_packets/00228155 [11:47:48]OFD Sender: To server: pG, [11:47:48]CommunicateWithHost lk.salyk.kg:30040 [11:47:48]ConnectInit lk.salyk.kg [11:47:48]Write to MH i2c: 01 00 00 69 25 8E [11:47:48]Write i2c OK [11:47:48]MH_I2C_Read... [11:47:48]Read from MH i2c: 01 [11:47:48]MH_I2C_Read... [11:47:48]Read from MH i2c: 01 07 00 [11:47:48]MH_I2C_Read... [11:47:48]Read from MH i2c: 01 07 00 69 25 00 00 00 00 00 E1 0C 82 [11:47:48]RasterBufferAndPrint [11:47:48]line [11:47:48]line [11:47:48]line [11:47:48]line [11:47:48]line [11:47:48]written 0, free lines is 3300 [11:47:48]MH_Cut [11:47:48]Write to MH i2c: D1 01 00 70 25 01 67 [11:47:48]Write i2c OK [11:47:48]MH_I2C_Read... [11:47:48]Read from MH i2c: D1 [11:47:48]MH_I2C_Read... [11:47:48]Read from MH i2c: D1 01 00 [11:47:48]MH_I2C_Read... [11:47:48]Read from MH i2c: D1 01 00 70 25 00 66 [11:47:48]Write to MH i2c: 01 00 00 71 25 96 [11:47:48]Write i2c OK [11:47:48]MH_I2C_Read... [11:47:49]*** Cut start [11:47:49]*** Partial cut [11:47:49]*** CUTSNS_PIN = 1 [11:47:49]*** CUTSNS_PIN = 0 [11:47:49]*** Brake cut motor [11:47:50]Read from MH i2c: 01 [11:47:50]MH_I2C_Read... [11:47:50]*** Stop cut motor [11:47:50]*** Cut end [11:47:50]Read from MH i2c: 01 07 00 [11:47:50]MH_I2C_Read... [11:47:50]Read from MH i2c: 01 07 00 71 25 00 00 00 00 00 FF 0F AB [11:47:50]process_action close_receipt done [11:47:50]requested_data is exist [11:47:50]produce_requested_data [11:47:50]requested_item fm.sn is exist - process it [11:47:50]wFMCommunicate request_size=4 [11:47:50]MH_SAM_APDU [11:47:50]CAPDU: 80 11 00 00 [11:47:50]Write to MH i2c: E2 08 00 72 25 80 11 00 00 00 00 00 00 11 [11:47:50]Write i2c OK [11:47:50]MH_I2C_Read... [11:47:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:50]Read from MH i2c: E2 [11:47:50]MH_I2C_Read... [11:47:50]Read from MH i2c: E2 17 00 [11:47:50]MH_I2C_Read... [11:47:50]Read from MH i2c: E2 17 00 72 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 68 [11:47:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:47:50]wFMCommunicate OK [11:47:50]requested_item fd.num is exist - process it [11:47:50]SAM_PROTO_GetFieldsCounters [11:47:50]wFMCommunicate request_size=4 [11:47:50]MH_SAM_APDU [11:47:50]CAPDU: 80 13 00 00 [11:47:50]Write to MH i2c: E2 08 00 73 25 80 13 00 00 00 00 00 00 14 [11:47:50]Write i2c OK [11:47:50]MH_I2C_Read... [11:47:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:50]Read from MH i2c: E2 [11:47:50]MH_I2C_Read... [11:47:50]Read from MH i2c: E2 62 00 [11:47:50]MH_I2C_Read... [11:47:50]Read from MH i2c: E2 62 00 73 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3B 7B 03 00 0E 04 04 00 17 02 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 74 [11:47:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3B 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:47:50]wFMCommunicate OK [11:47:50]SAM_PROTO_GetFieldsCounters done [11:47:50]requested_item shift.num is exist - process it [11:47:50]requested_item shift.opened is exist - process it [11:47:50]req_shift_opened [11:47:50]FM_GetShiftState [11:47:50]SAM_PROTO_GetShiftState [11:47:50]wFMCommunicate request_size=4 [11:47:50]MH_SAM_APDU [11:47:50]CAPDU: 80 13 01 00 [11:47:50]Write to MH i2c: E2 08 00 74 25 80 13 01 00 00 00 00 00 16 [11:47:50]Write i2c OK [11:47:50]MH_I2C_Read... [11:47:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:50]Read from MH i2c: E2 [11:47:50]MH_I2C_Read... [11:47:50]Read from MH i2c: E2 0E 00 [11:47:50]MH_I2C_Read... [11:47:50]Read from MH i2c: E2 0E 00 74 25 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 DD [11:47:50]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [11:47:50]wFMCommunicate OK [11:47:50]SAM_PROTO_GetShiftState done [11:47:50]FM_GetShiftState done [11:47:50]req_shift_opened done [11:47:50]requested_item shift.open_date is exist - process it [11:47:50]req_shift_open_date [11:47:50]req_shift_open_date done [11:47:50]produce_requested_data done [11:47:50]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228155,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [11:47:50]process_action_free close_receipt [11:47:50]json_value_free [11:47:50]json_value_free done [11:47:50]process_json_proto returns [11:47:50]Send response to host [11:47:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228155,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [11:47:50]free response buf [11:47:50]execute_script done [11:47:50]execute_script returns [11:47:50]free content buf [11:47:50]Sock 9.Close socket [11:47:50]Sock 9.Thread stoped [11:49:14]accept exits with 7 [11:49:14]New connection [11:49:14]New thread 3067137380 created [11:49:14]Thread 3066994020 joined [11:49:14]Waiting for new connection... [11:49:14] Sock 7.Parse request [11:49:14]Sock 7.Check first char [11:49:14]Sock 7.First char is OK [11:49:14]request: POST /json_proto HTTP/1.0 [11:49:14]Method: POST [11:49:14]URL: /json_proto [11:49:14]Method is POST - this is cgi request [11:49:14]url: /json_proto [11:49:14]query_string will be loaded in cgi processing [11:49:14]execute_cgi json_proto POST (null) [11:49:14]execute_cgi path=json_proto method=POST [11:49:14]POST find Content-Length [11:49:14]Host: 172.17.44.195:8080 [11:49:14]Content-Length: 770 [11:49:14]Content-Type: application/json [11:49:14] [11:49:14]POST finish read [11:49:14]Found Content-Length = 770 [11:49:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:14]execute_script... [11: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)1964589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:14]POST & json_proto [11:49:14]process_json_proto [11:49:14]json parsed OK: [11:49:14]protocol is kg_v1.0 [11:49:14]action value=close_receipt [11:49:14]process_action close_receipt [11:49:14]cmd_close_receipt [11:49:14]MH_GetDate [11:49:14]Write to MH i2c: F0 00 00 75 25 89 [11:49:14]Write i2c OK [11:49:14]MH_I2C_Read... [11:49:14]Read from MH i2c: F0 [11:49:14]MH_I2C_Read... [11:49:14]Read from MH i2c: F0 09 00 [11:49:14]MH_I2C_Read... [11:49:14]Read from MH i2c: F0 09 00 75 25 00 3D 91 17 67 82 C9 CF 66 5E [11:49:14]GetLastDocTimeStamp 1729597670 [11:49:14]current date 1729597757 [11:49:14]FM_GetShiftState [11:49:14]SAM_PROTO_GetShiftState [11:49:14]wFMCommunicate request_size=4 [11:49:14]MH_SAM_APDU [11:49:14]CAPDU: 80 13 01 00 [11:49:14]Write to MH i2c: E2 08 00 76 25 80 13 01 00 00 00 00 00 18 [11:49:14]Write i2c OK [11:49:14]MH_I2C_Read... [11:49:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:14]Read from MH i2c: E2 [11:49:14]MH_I2C_Read... [11:49:14]Read from MH i2c: E2 0E 00 [11:49:14]MH_I2C_Read... [11:49:14]Read from MH i2c: E2 0E 00 76 25 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 DF [11:49:14]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [11:49:14]wFMCommunicate OK [11:49:14]SAM_PROTO_GetShiftState done [11:49:14]FM_GetShiftState done [11:49:14]opened in 1729555538 [11:49:14]opened+sec_in_day 1729641938 [11:49:14]quantity*price = 100021 [11:49:14]sum+1 = 100023 [11:49:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 120 22.10.2024 11:49 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 228156 ФПД: 108080557929797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114918&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228156&fm=108080557929797&tin=02508201610067®Number=0000000000091685&sum=100022 [11:49:15]StoreToDocumentArchive [11:49:15]shift 535 fd 228156 [11:49:15]save to /storage/0535/doc_00228156 [11:49:15]save last doc name /storage/0535/doc_00228156 to /storage/kkm_last_doc_name [11:49:15]save OK [11:49:15]Clear old archive folders... [11:49:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:49:15]tlvbuf is 00A7B970 [11:49:15]SAM_PROTO_ClearQueue [11:49:15]wFMCommunicate request_size=4 [11:49:15]MH_SAM_APDU [11:49:15]CAPDU: 80 09 00 00 [11:49:15]Write to MH i2c: E2 08 00 83 25 80 09 00 00 00 00 00 00 1A [11:49:15]Write i2c OK [11:49:15]MH_I2C_Read... [11:49:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:15]Read from MH i2c: E2 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 03 00 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 03 00 83 25 00 90 00 1C [11:49:15]RAPDU: 90 00 [11:49:15]wFMCommunicate OK [11:49:15]SAM_PROTO_ClearQueue done [11:49:15]KKMCreateOFDPacket [11:49:15]OFDProtocolAddRootSTLVToBuf [11:49:15]FM_MakeSignedData [11:49:15]FM_MakeSignedData [11:49:15]SAM_PROTO_SignData [11:49:15]wFMCommunicate request_size=4 [11:49:15]MH_SAM_APDU [11:49:15]CAPDU: 80 0D 01 02 [11:49:15]Write to MH i2c: E2 08 00 84 25 80 0D 01 02 00 00 00 00 22 [11:49:15]Write i2c OK [11:49:15]MH_I2C_Read... [11:49:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:15]Read from MH i2c: E2 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 03 00 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 03 00 84 25 00 90 00 1D [11:49:15]RAPDU: 90 00 [11:49:15]wFMCommunicate OK [11:49:15]wFMCommunicate request_size=255 [11:49:15]MH_SAM_APDU [11:49: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 3E 91 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3C 7B 03 00 35 04 06 00 62 [11:49:15]Write to MH i2c: E2 02 01 85 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 3E 91 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3C 7B 03 00 35 04 06 00 62 00 00 FC [11:49:15]Write i2c OK [11:49:15]MH_I2C_Read... [11:49:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:15]Read from MH i2c: E2 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 03 00 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 03 00 85 25 00 90 00 1E [11:49:15]RAPDU: 90 00 [11:49:15]wFMCommunicate OK [11:49:15]wFMCommunicate request_size=10 [11:49:15]MH_SAM_APDU [11:49:15]CAPDU: 80 0D 02 02 05 4C 77 43 35 45 [11:49:15]Write to MH i2c: E2 0D 00 86 25 80 0D 02 02 05 00 4C 77 43 35 45 00 00 AF [11:49:15]Write i2c OK [11:49:15]MH_I2C_Read... [11:49:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:15]Read from MH i2c: E2 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 03 00 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 03 00 86 25 00 90 00 1F [11:49:15]RAPDU: 90 00 [11:49:15]wFMCommunicate OK [11:49:15]wFMCommunicate request_size=4 [11:49:15]MH_SAM_APDU [11:49:15]CAPDU: 80 0D 03 02 [11:49:15]Write to MH i2c: E2 08 00 87 25 80 0D 03 02 00 00 00 00 27 [11:49:15]Write i2c OK [11:49:15]MH_I2C_Read... [11:49:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:15]Read from MH i2c: E2 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 0B 00 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 0B 00 87 25 00 8E 86 66 44 9B 97 02 E2 90 00 FC [11:49:15]RAPDU: 8E 86 66 44 9B 97 02 E2 90 00 [11:49:15]wFMCommunicate OK [11:49:15]SAM_PROTO_SignData done [11:49:15]FM_MakeSignedData done [11:49:15]CreateOFDProtocolMessage [11:49:15]wFMCommunicate request_size=4 [11:49:15]MH_SAM_APDU [11:49:15]CAPDU: 80 11 00 00 [11:49:15]Write to MH i2c: E2 08 00 88 25 80 11 00 00 00 00 00 00 27 [11:49:15]Write i2c OK [11:49:15]MH_I2C_Read... [11:49:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:15]Read from MH i2c: E2 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 17 00 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 17 00 88 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7E [11:49:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:49:15]wFMCommunicate OK [11:49:15]CreateOFDProtocolMessage done [11:49:15]OFDSenderStorePacket 228156 [11:49:15]StoreOFDPacket docnum=228156 [11:49:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 55 7D 07 01 9E 86 5A 03 01 00 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 3E 91 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3C 7B 03 00 35 04 06 00 62 4C 77 43 35 45 8E 86 66 44 9B 97 02 E2 [11:49:15]CheckFolder [11:49:15]dirname=/storage/ofd_packets [11:49:15]CheckFolder done [11:49:15]ProducePacketName [11:49:15]name=ofd_packets/00228156 [11:49:15]NVStorageSaveData ofd_packets/00228156 [11:49:15]File name is /storage/ofd_packets/00228156 [11:49:15]Write 301 bytes [11:49:15]NVStorageSaveData done [11:49:15]OFDSenderStorePacket done [11:49:15]KKMCreateOFDPacket done [11:49:15]NVStorageSaveData kkm_last_timestamp [11:49:15]File name is /storage/kkm_last_timestamp [11:49:15]Write 4 bytes [11:49:15]NVStorageSaveData done [11:49:15]ExternCall_PrintAddStr [11:49:15]wPrintStart [11:49:15]Write to MH i2c: 01 00 00 89 25 AE [11:49:15]Write i2c OK [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: 01 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: 01 07 00 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: 01 07 00 89 25 00 00 00 00 00 FF 0F C3 [11:49:15]RasterBufferAndPrint [11:49:15]line Счет N : (1)1964589 [11:49:15]line ИНН: 02508201610067 [11:49:15]line Контрольно-Кассовый Чек [11:49:15]line ПРОДАЖА [11:49:15]line ТРК (МРК, ГНК) : 44 [11:49:15]line Товар: 2710124500 [11:49:15]line Аи-95-К-5 [11:49:15]line 13.480 * 74.20 [11:49:15]line = 1000.22 [11:49:15]line НДС 12% НСП 1% [11:49:15]line > о реализуемом товаре [11:49:15]line ИТОГО: 1000.22 [11:49:15]line НСП 1% : 8.85 [11:49:15]line НДС 12% : 106.22 [11:49:15]line Наличными: 0.00 [11:49:15]line Безнал.: 1000.22 [11:49:15]line Место: АЗС № 133 "Партнер Нефть" [11:49:15]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:49:15]line СНО: Общий режим [11:49:15]line Чек 120 22.10.2024 11:49 [11:49:15]line Смена: 535 ФФД: 1.0 [11:49:15]line ЗНМ: 0300000091 [11:49:15]line РНМ: 0000000000091685 [11:49:15]line Версия ККМ: 001 [11:49:15]line Платежная система: Mbank [11:49:15]line ФМ: 0000000000871839 [11:49:15]line ФД: 228156 [11:49:15]line ФПД: 108080557929797 [11:49:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114918&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228156&fm=108080557929797&tin=02508201610067®Number=0000000000091685&sum=100022 [11:49:16]written 0, free lines is 4095 [11:49:16]Write to MH i2c: 01 00 00 B1 25 D6 [11:49:16]Write i2c OK [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: 01 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: 01 07 00 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: 01 07 00 B1 25 00 00 00 00 00 E3 0C CC [11:49:16]RasterBufferAndPrint [11:49:16]line [11:49:16]line [11:49:16]line [11:49:16]line [11:49:16]line [11:49:16]written 0, free lines is 3303 [11:49:16]MH_Cut [11:49:16]Write to MH i2c: D1 01 00 B8 25 01 AF [11:49:16]Write i2c OK [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: D1 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: D1 01 00 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: D1 01 00 B8 25 00 AE [11:49:16]Write to MH i2c: 01 00 00 B9 25 DE [11:49:16]Write i2c OK [11:49:16]MH_I2C_Read... [11:49:17]*** Cut start [11:49:17]*** Partial cut [11:49:17]*** CUTSNS_PIN = 1 [11:49:17]*** CUTSNS_PIN = 0 [11:49:17]*** Brake cut motor [11:49:18]Read from MH i2c: 01 [11:49:18]MH_I2C_Read... [11:49:18]*** Stop cut motor [11:49:18]*** Cut end [11:49:18]Read from MH i2c: 01 07 00 [11:49:18]MH_I2C_Read... [11:49:18]Read from MH i2c: 01 07 00 B9 25 00 00 00 00 00 FF 0F F3 [11:49:18]process_action close_receipt done [11:49:18]requested_data is exist [11:49:18]produce_requested_data [11:49:18]requested_item fm.sn is exist - process it [11:49:18]wFMCommunicate request_size=4 [11:49:18]MH_SAM_APDU [11:49:18]CAPDU: 80 11 00 00 [11:49:18]Write to MH i2c: E2 08 00 BA 25 80 11 00 00 00 00 00 00 59 [11:49:18]Write i2c OK [11:49:18]MH_I2C_Read... [11:49:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:18]Read from MH i2c: E2 [11:49:18]MH_I2C_Read... [11:49:18]Read from MH i2c: E2 17 00 [11:49:18]MH_I2C_Read... [11:49:18]Read from MH i2c: E2 17 00 BA 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B0 [11:49:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:49:18]wFMCommunicate OK [11:49:18]requested_item fd.num is exist - process it [11:49:18]SAM_PROTO_GetFieldsCounters [11:49:18]wFMCommunicate request_size=4 [11:49:18]MH_SAM_APDU [11:49:18]CAPDU: 80 13 00 00 [11:49:18]Write to MH i2c: E2 08 00 BB 25 80 13 00 00 00 00 00 00 5C [11:49:18]Write i2c OK [11:49:18]MH_I2C_Read... [11:49:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:18]Read from MH i2c: E2 [11:49:18]MH_I2C_Read... [11:49:18]Read from MH i2c: E2 62 00 [11:49:18]MH_I2C_Read... [11:49:18]Read from MH i2c: E2 62 00 BB 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3C 7B 03 00 0E 04 04 00 17 02 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 C0 [11:49:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3C 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:49:18]wFMCommunicate OK [11:49:18]SAM_PROTO_GetFieldsCounters done [11:49:18]requested_item shift.num is exist - process it [11:49:18]requested_item shift.opened is exist - process it [11:49:18]req_shift_opened [11:49:18]FM_GetShiftState [11:49:18]SAM_PROTO_GetShiftState [11:49:18]wFMCommunicate request_size=4 [11:49:18]MH_SAM_APDU [11:49:18]CAPDU: 80 13 01 00 [11:49:18]Write to MH i2c: E2 08 00 BC 25 80 13 01 00 00 00 00 00 5E [11:49:18]Write i2c OK [11:49:18]MH_I2C_Read... [11:49:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:18]Read from MH i2c: E2 [11:49:18]MH_I2C_Read... [11:49:18]Read from MH i2c: E2 0E 00 [11:49:18]MH_I2C_Read... [11:49:18]Read from MH i2c: E2 0E 00 BC 25 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 25 [11:49:18]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [11:49:18]wFMCommunicate OK [11:49:18]SAM_PROTO_GetShiftState done [11:49:18]FM_GetShiftState done [11:49:18]req_shift_opened done [11:49:18]requested_item shift.open_date is exist - process it [11:49:18]req_shift_open_date [11:49:18]req_shift_open_date done [11:49:18]produce_requested_data done [11:49:18]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228156,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [11:49:18]process_action_free close_receipt [11:49:18]json_value_free [11:49:18]json_value_free done [11:49:18]process_json_proto returns [11:49:18]Send response to host [11:49:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228156,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [11:49:18]free response buf [11:49:18]execute_script done [11:49:18]execute_script returns [11:49:18]free content buf [11:49:18]Sock 7.Close socket [11:49:18]Sock 7.Thread stoped [11:49:48]accept exits with 9 [11:49:48]New connection [11:49:48]New thread 3066994020 created [11:49:48]Thread 3067137380 joined [11:49:48]Waiting for new connection... [11:49:48] Sock 9.Parse request [11:49:48]Sock 9.Check first char [11:49:48]Sock 9.First char is OK [11:49:48]request: POST /json_proto HTTP/1.0 [11:49:48]Method: POST [11:49:48]URL: /json_proto [11:49:48]Method is POST - this is cgi request [11:49:48]url: /json_proto [11:49:48]query_string will be loaded in cgi processing [11:49:48]execute_cgi json_proto POST (null) [11:49:48]execute_cgi path=json_proto method=POST [11:49:48]POST find Content-Length [11:49:48]Host: 172.17.44.195:8080 [11:49:48]Content-Length: 676 [11:49:48]Content-Type: application/json [11:49:48] [11:49:48]POST finish read [11:49:48]Found Content-Length = 676 [11:49:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964590", "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" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:48]execute_script... [11:49: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)1964590", "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" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:48]POST & json_proto [11:49:48]process_json_proto [11:49:48]json parsed OK: [11:49:48]protocol is kg_v1.0 [11:49:48]action value=close_receipt [11:49:48]process_action close_receipt [11:49:48]cmd_close_receipt [11:49:48]MH_GetDate [11:49:48]Write to MH i2c: F0 00 00 BD 25 D1 [11:49:48]Write i2c OK [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: F0 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: F0 09 00 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: F0 09 00 BD 25 00 60 91 17 67 82 C9 CF 66 C9 [11:49:48]GetLastDocTimeStamp 1729597758 [11:49:48]current date 1729597792 [11:49:48]FM_GetShiftState [11:49:48]SAM_PROTO_GetShiftState [11:49:48]wFMCommunicate request_size=4 [11:49:48]MH_SAM_APDU [11:49:48]CAPDU: 80 13 01 00 [11:49:48]Write to MH i2c: E2 08 00 BE 25 80 13 01 00 00 00 00 00 60 [11:49:48]Write i2c OK [11:49:48]MH_I2C_Read... [11:49:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:48]Read from MH i2c: E2 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: E2 0E 00 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: E2 0E 00 BE 25 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 27 [11:49:48]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [11:49:48]wFMCommunicate OK [11:49:48]SAM_PROTO_GetShiftState done [11:49:48]FM_GetShiftState done [11:49:48]opened in 1729555538 [11:49:48]opened+sec_in_day 1729641938 [11:49:48]quantity*price = 80010 [11:49:48]sum+1 = 80011 [11:49:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 121 22.10.2024 11:49 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228157 ФПД: 129827974585436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114952&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228157&fm=129827974585436&tin=02508201610067®Number=0000000000091685&sum=80000 [11:49:49]StoreToDocumentArchive [11:49:49]shift 535 fd 228157 [11:49:49]save to /storage/0535/doc_00228157 [11:49:49]save last doc name /storage/0535/doc_00228157 to /storage/kkm_last_doc_name [11:49:49]save OK [11:49:49]Clear old archive folders... [11:49:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:49:49]tlvbuf is 0085B000 [11:49:49]SAM_PROTO_ClearQueue [11:49:49]wFMCommunicate request_size=4 [11:49:49]MH_SAM_APDU [11:49:49]CAPDU: 80 09 00 00 [11:49:49]Write to MH i2c: E2 08 00 CB 25 80 09 00 00 00 00 00 00 62 [11:49:49]Write i2c OK [11:49:49]MH_I2C_Read... [11:49:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:49]Read from MH i2c: E2 [11:49:49]MH_I2C_Read... [11:49:49]Read from MH i2c: E2 03 00 [11:49:49]MH_I2C_Read... [11:49:49]Read from MH i2c: E2 03 00 CB 25 00 90 00 64 [11:49:49]RAPDU: 90 00 [11:49:49]wFMCommunicate OK [11:49:49]SAM_PROTO_ClearQueue done [11:49:49]KKMCreateOFDPacket [11:49:49]OFDProtocolAddRootSTLVToBuf [11:49:49]FM_MakeSignedData [11:49:49]FM_MakeSignedData [11:49:49]SAM_PROTO_SignData [11:49:49]wFMCommunicate request_size=4 [11:49:49]MH_SAM_APDU [11:49:49]CAPDU: 80 0D 01 02 [11:49:49]Write to MH i2c: E2 08 00 CC 25 80 0D 01 02 00 00 00 00 6A [11:49:49]Write i2c OK [11:49:49]MH_I2C_Read... [11:49:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:49]Read from MH i2c: E2 [11:49:49]MH_I2C_Read... [11:49:49]Read from MH i2c: E2 03 00 [11:49:49]MH_I2C_Read... [11:49:49]Read from MH i2c: E2 03 00 CC 25 00 90 00 65 [11:49:49]RAPDU: 90 00 [11:49:49]wFMCommunicate OK [11:49:49]wFMCommunicate request_size=255 [11:49:49]MH_SAM_APDU [11:49:49]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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 60 91 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3D 7B 03 00 35 04 06 00 76 13 EE 4E [11:49:49]Write to MH i2c: E2 02 01 CD 25 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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 60 91 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3D 7B 03 00 35 04 06 00 76 13 EE 4E 00 00 AB [11:49:49]Write i2c OK [11:49:49]MH_I2C_Read... [11:49:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:50]Read from MH i2c: E2 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: E2 03 00 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: E2 03 00 CD 25 00 90 00 66 [11:49:50]RAPDU: 90 00 [11:49:50]wFMCommunicate OK [11:49:50]wFMCommunicate request_size=7 [11:49:50]MH_SAM_APDU [11:49:50]CAPDU: 80 0D 02 02 02 9C 5C [11:49:50]Write to MH i2c: E2 0A 00 CE 25 80 0D 02 02 02 00 9C 5C 00 00 69 [11:49:50]Write i2c OK [11:49:50]MH_I2C_Read... [11:49:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:50]Read from MH i2c: E2 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: E2 03 00 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: E2 03 00 CE 25 00 90 00 67 [11:49:50]RAPDU: 90 00 [11:49:50]wFMCommunicate OK [11:49:50]wFMCommunicate request_size=4 [11:49:50]MH_SAM_APDU [11:49:50]CAPDU: 80 0D 03 02 [11:49:50]Write to MH i2c: E2 08 00 CF 25 80 0D 03 02 00 00 00 00 6F [11:49:50]Write i2c OK [11:49:50]MH_I2C_Read... [11:49:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:50]Read from MH i2c: E2 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: E2 0B 00 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: E2 0B 00 CF 25 00 F0 D6 BD DA 04 BA C0 76 90 00 C1 [11:49:50]RAPDU: F0 D6 BD DA 04 BA C0 76 90 00 [11:49:50]wFMCommunicate OK [11:49:50]SAM_PROTO_SignData done [11:49:50]FM_MakeSignedData done [11:49:50]CreateOFDProtocolMessage [11:49:50]wFMCommunicate request_size=4 [11:49:50]MH_SAM_APDU [11:49:50]CAPDU: 80 11 00 00 [11:49:50]Write to MH i2c: E2 08 00 D0 25 80 11 00 00 00 00 00 00 6F [11:49:50]Write i2c OK [11:49:50]MH_I2C_Read... [11:49:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:50]Read from MH i2c: E2 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: E2 17 00 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: E2 17 00 D0 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C6 [11:49:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:49:50]wFMCommunicate OK [11:49:50]CreateOFDProtocolMessage done [11:49:50]OFDSenderStorePacket 228157 [11:49:50]StoreOFDPacket docnum=228157 [11:49:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 59 E8 04 01 DF 71 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 60 91 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3D 7B 03 00 35 04 06 00 76 13 EE 4E 9C 5C F0 D6 BD DA 04 BA C0 76 [11:49:50]CheckFolder [11:49:50]dirname=/storage/ofd_packets [11:49:50]CheckFolder done [11:49:50]ProducePacketName [11:49:50]name=ofd_packets/00228157 [11:49:50]NVStorageSaveData ofd_packets/00228157 [11:49:50]File name is /storage/ofd_packets/00228157 [11:49:50]Write 298 bytes [11:49:50]NVStorageSaveData done [11:49:50]OFDSenderStorePacket done [11:49:50]KKMCreateOFDPacket done [11:49:50]NVStorageSaveData kkm_last_timestamp [11:49:50]File name is /storage/kkm_last_timestamp [11:49:50]Write 4 bytes [11:49:50]NVStorageSaveData done [11:49:50]ExternCall_PrintAddStr [11:49:50]wPrintStart [11:49:50]Write to MH i2c: 01 00 00 D1 25 F6 [11:49:50]Write i2c OK [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: 01 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: 01 07 00 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: 01 07 00 D1 25 00 00 00 00 00 FF 0F 0B [11:49:50]RasterBufferAndPrint [11:49:50]line Счет N : (1)1964590 [11:49:50]line ИНН: 02508201610067 [11:49:50]line Контрольно-Кассовый Чек [11:49:50]line ПРОДАЖА [11:49:50]line ТРК (МРК, ГНК) : 21 [11:49:50]line Товар: 2710194210 [11:49:50]line ДТ-К-5 [11:49:50]line 10.500 * 76.20 [11:49:50]line = 800.10 [11:49:50]line НДС 12% НСП 1% [11:49:50]line > о реализуемом товаре [11:49:50]line ОКРУГЛЕНИЕ: -0.10 [11:49:50]line ИТОГО: 800.00 [11:49:50]line Внесено: 800.00 [11:49:50]line СДАЧА: 0.00 [11:49:50]line НСП 1% : 7.08 [11:49:50]line НДС 12% : 84.97 [11:49:50]line Наличными: 800.00 [11:49:50]line Безнал.: 0.00 [11:49:50]line Место: АЗС № 133 "Партнер Нефть" [11:49:50]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:49:50]line СНО: Общий режим [11:49:50]line Чек 121 22.10.2024 11:49 [11:49:50]line Смена: 535 ФФД: 1.0 [11:49:50]line ЗНМ: 0300000091 [11:49:50]line РНМ: 0000000000091685 [11:49:50]line Версия ККМ: 001 [11:49:50]line ФМ: 0000000000871839 [11:49:50]line ФД: 228157 [11:49:50]line ФПД: 129827974585436 [11:49:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114952&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228157&fm=129827974585436&tin=02508201610067®Number=0000000000091685&sum=80000 [11:49:50]written 0, free lines is 4095 [11:49:50]Write to MH i2c: 01 00 00 FB 25 20 [11:49:50]Write i2c OK [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: 01 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: 01 07 00 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: 01 07 00 FB 25 00 00 00 00 00 B9 0C EC [11:49:50]RasterBufferAndPrint [11:49:50]line [11:49:50]line [11:49:50]line [11:49:50]line [11:49:50]line [11:49:50]written 0, free lines is 3261 [11:49:50]MH_Cut [11:49:50]Write to MH i2c: D1 01 00 02 26 01 FA [11:49:50]Write i2c OK [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: D1 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: D1 01 00 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: D1 01 00 02 26 00 F9 [11:49:50]Write to MH i2c: 01 00 00 03 26 29 [11:49:50]Write i2c OK [11:49:50]MH_I2C_Read... [11:49:51]*** Cut start [11:49:51]*** Partial cut [11:49:51]*** CUTSNS_PIN = 1 [11:49:51]*** CUTSNS_PIN = 0 [11:49:52]*** Brake cut motor [11:49:52]Read from MH i2c: 01 [11:49:52]MH_I2C_Read... [11:49:52]*** Stop cut motor [11:49:52]*** Cut end [11:49:52]Read from MH i2c: 01 07 00 [11:49:52]MH_I2C_Read... [11:49:52]Read from MH i2c: 01 07 00 03 26 00 00 00 00 00 FF 0F 3E [11:49:52]process_action close_receipt done [11:49:52]requested_data is exist [11:49:52]produce_requested_data [11:49:52]requested_item fm.sn is exist - process it [11:49:52]wFMCommunicate request_size=4 [11:49:52]MH_SAM_APDU [11:49:52]CAPDU: 80 11 00 00 [11:49:52]Write to MH i2c: E2 08 00 04 26 80 11 00 00 00 00 00 00 A4 [11:49:52]Write i2c OK [11:49:52]MH_I2C_Read... [11:49:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:52]Read from MH i2c: E2 [11:49:52]MH_I2C_Read... [11:49:52]Read from MH i2c: E2 17 00 [11:49:52]MH_I2C_Read... [11:49:52]Read from MH i2c: E2 17 00 04 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FB [11:49:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:49:52]wFMCommunicate OK [11:49:52]requested_item fd.num is exist - process it [11:49:52]SAM_PROTO_GetFieldsCounters [11:49:52]wFMCommunicate request_size=4 [11:49:52]MH_SAM_APDU [11:49:52]CAPDU: 80 13 00 00 [11:49:52]Write to MH i2c: E2 08 00 05 26 80 13 00 00 00 00 00 00 A7 [11:49:52]Write i2c OK [11:49:52]MH_I2C_Read... [11:49:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:52]Read from MH i2c: E2 [11:49:52]MH_I2C_Read... [11:49:52]Read from MH i2c: E2 62 00 [11:49:52]MH_I2C_Read... [11:49:52]Read from MH i2c: E2 62 00 05 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3D 7B 03 00 0E 04 04 00 17 02 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 0F [11:49:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3D 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:49:52]wFMCommunicate OK [11:49:52]SAM_PROTO_GetFieldsCounters done [11:49:52]requested_item shift.num is exist - process it [11:49:52]requested_item shift.opened is exist - process it [11:49:52]req_shift_opened [11:49:52]FM_GetShiftState [11:49:52]SAM_PROTO_GetShiftState [11:49:52]wFMCommunicate request_size=4 [11:49:52]MH_SAM_APDU [11:49:52]CAPDU: 80 13 01 00 [11:49:52]Write to MH i2c: E2 08 00 06 26 80 13 01 00 00 00 00 00 A9 [11:49:52]Write i2c OK [11:49:52]MH_I2C_Read... [11:49:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:52]Read from MH i2c: E2 [11:49:52]MH_I2C_Read... [11:49:52]Read from MH i2c: E2 0E 00 [11:49:52]MH_I2C_Read... [11:49:52]Read from MH i2c: E2 0E 00 06 26 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 70 [11:49:52]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [11:49:52]wFMCommunicate OK [11:49:52]SAM_PROTO_GetShiftState done [11:49:52]FM_GetShiftState done [11:49:52]req_shift_opened done [11:49:52]requested_item shift.open_date is exist - process it [11:49:52]req_shift_open_date [11:49:52]req_shift_open_date done [11:49:52]produce_requested_data done [11:49:52]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228157,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [11:49:52]process_action_free close_receipt [11:49:52]json_value_free [11:49:52]json_value_free done [11:49:52]process_json_proto returns [11:49:52]Send response to host [11:49:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228157,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [11:49:52]free response buf [11:49:52]execute_script done [11:49:52]execute_script returns [11:49:52]free content buf [11:49:52]Sock 9.Close socket [11:49:52]Sock 9.Thread stoped [11:50:02]ConnectInit Can't connect to host [11:50:02]CommunicateWithHost connect error [11:50:02]CommunicateWithHost err = -1 [11:50:02]OFD Sender: Server communicate error [11:50:02]OFD Sender: Processing packet 228155 [packets to send 40, broken 37] [11:50:02]ProducePacketName [11:50:02]name=ofd_packets/00228155 [11:50:02]OFD Sender: To server: pG, [11:50:02]CommunicateWithHost lk.salyk.kg:30040 [11:50:02]ConnectInit lk.salyk.kg [11:50:02]Connected sock=9 [11:50:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B5 3D 07 01 DC 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 E6 90 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3B 7B 03 00 35 04 06 00 D0 64 C0 E1 ED 24 80 75 2D 78 BE AD B6 68 [11:50:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 52 25 47 00 58 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3B 7B 03 00 F4 03 04 00 64 3C 17 67 B6 04 01 00 00 DE A1 D1 4E 9F 80 4A E1 [11:50:03]CommunicateWithHost err = 0 [11:50:03]CheckOFDResponse [11:50:03]1017 (14) - 77093643461234 [11:50:03]1041 (16) - 0000000000871839 [11:50:03]1040 (4) - 228155 [11:50:03]1012 (4) - 22.10.2024 05:47 [11:50:03]1206 (1) - 0 [11:50:03]OFD Sender: Remove packet 228155 [11:50:03]ProducePacketName [11:50:03]name=ofd_packets/00228155 [11:50:03]NVStorageDeleteData [11:50:03]OFD Sender: Processing packet 228156 [packets to send 39, broken 37] [11:50:03]ProducePacketName [11:50:03]name=ofd_packets/00228156 [11:50:03]OFD Sender: To server: pG, [11:50:03]CommunicateWithHost lk.salyk.kg:30040 [11:50:03]ConnectInit lk.salyk.kg [11:50:03]Connected sock=9 [11:50:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 55 7D 07 01 9E 86 5A 03 01 00 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 3E 91 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3C 7B 03 00 35 04 06 00 62 4C 77 43 35 45 8E 86 66 44 9B 97 02 E2 [11:50:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 18 F5 47 00 22 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3C 7B 03 00 F4 03 04 00 65 3C 17 67 B6 04 01 00 00 BC CD CD F1 D9 4A DC 6D [11:50:03]CommunicateWithHost err = 0 [11:50:03]CheckOFDResponse [11:50:03]1017 (14) - 77093643461234 [11:50:03]1041 (16) - 0000000000871839 [11:50:03]1040 (4) - 228156 [11:50:03]1012 (4) - 22.10.2024 05:47 [11:50:03]1206 (1) - 0 [11:50:03]OFD Sender: Remove packet 228156 [11:50:03]ProducePacketName [11:50:03]name=ofd_packets/00228156 [11:50:03]NVStorageDeleteData [11:50:04]OFD Sender: Processing packet 228157 [packets to send 38, broken 37] [11:50:04]ProducePacketName [11:50:04]name=ofd_packets/00228157 [11:50:04]OFD Sender: To server: pG, [11:50:04]CommunicateWithHost lk.salyk.kg:30040 [11:50:04]ConnectInit lk.salyk.kg [11:50:04]Connected sock=9 [11:50:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 59 E8 04 01 DF 71 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 60 91 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3D 7B 03 00 35 04 06 00 76 13 EE 4E 9C 5C F0 D6 BD DA 04 BA C0 76 [11:50:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 94 AD 47 00 59 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3D 7B 03 00 F4 03 04 00 66 3C 17 67 B6 04 01 00 00 77 E7 93 39 4F 80 A2 66 [11:50:04]CommunicateWithHost err = 0 [11:50:04]CheckOFDResponse [11:50:04]1017 (14) - 77093643461234 [11:50:04]1041 (16) - 0000000000871839 [11:50:04]1040 (4) - 228157 [11:50:04]1012 (4) - 22.10.2024 05:47 [11:50:04]1206 (1) - 0 [11:50:04]OFD Sender: Remove packet 228157 [11:50:04]ProducePacketName [11:50:04]name=ofd_packets/00228157 [11:50:04]NVStorageDeleteData [11:50:05]OFD Sender: No OFD packet to send [11:50:05]accept exits with 7 [11:50:05]New connection [11:50:05]New thread 3067137380 created [11:50:05]Thread 3066994020 joined [11:50:05]Waiting for new connection... [11:50:05] Sock 7.Parse request [11:50:05]Sock 7.Check first char [11:50:05]Sock 7.First char is OK [11:50:05]request: POST /json_proto HTTP/1.0 [11:50:05]Method: POST [11:50:05]URL: /json_proto [11:50:05]Method is POST - this is cgi request [11:50:05]url: /json_proto [11:50:05]query_string will be loaded in cgi processing [11:50:05]execute_cgi json_proto POST (null) [11:50:05]execute_cgi path=json_proto method=POST [11:50:05]POST find Content-Length [11:50:05]Host: 172.17.44.195:8080 [11:50:05]Content-Length: 767 [11:50:05]Content-Type: application/json [11:50:05] [11:50:05]POST finish read [11:50:05]Found Content-Length = 767 [11:50:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964591", "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" : 66.90, "quantity" : 7.480, "sum" : 500.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: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:05]execute_script... [11:50:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964591", "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" : 66.90, "quantity" : 7.480, "sum" : 500.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: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:05]POST & json_proto [11:50:05]process_json_proto [11:50:05]json parsed OK: [11:50:05]protocol is kg_v1.0 [11:50:05]action value=close_receipt [11:50:05]process_action close_receipt [11:50:05]cmd_close_receipt [11:50:05]MH_GetDate [11:50:05]Write to MH i2c: F0 00 00 07 26 1C [11:50:05]Write i2c OK [11:50:05]MH_I2C_Read... [11:50:05]Read from MH i2c: F0 [11:50:05]MH_I2C_Read... [11:50:05]Read from MH i2c: F0 09 00 [11:50:05]MH_I2C_Read... [11:50:05]Read from MH i2c: F0 09 00 07 26 00 71 91 17 67 82 C9 CF 66 25 [11:50:05]GetLastDocTimeStamp 1729597792 [11:50:05]current date 1729597809 [11:50:05]FM_GetShiftState [11:50:05]SAM_PROTO_GetShiftState [11:50:05]wFMCommunicate request_size=4 [11:50:05]MH_SAM_APDU [11:50:05]CAPDU: 80 13 01 00 [11:50:05]Write to MH i2c: E2 08 00 08 26 80 13 01 00 00 00 00 00 AB [11:50:05]Write i2c OK [11:50:05]MH_I2C_Read... [11:50:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:05]Read from MH i2c: E2 [11:50:05]MH_I2C_Read... [11:50:05]Read from MH i2c: E2 0E 00 [11:50:05]MH_I2C_Read... [11:50:05]Read from MH i2c: E2 0E 00 08 26 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 72 [11:50:05]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [11:50:05]wFMCommunicate OK [11:50:05]SAM_PROTO_GetShiftState done [11:50:05]FM_GetShiftState done [11:50:05]opened in 1729555538 [11:50:05]opened+sec_in_day 1729641938 [11:50:05]quantity*price = 50041 [11:50:05]sum+1 = 50042 [11:50:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 122 22.10.2024 11:50 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 228158 ФПД: 28527917239926 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115009&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228158&fm=28527917239926&tin=02508201610067®Number=0000000000091685&sum=50041 [11:50:06]StoreToDocumentArchive [11:50:06]shift 535 fd 228158 [11:50:06]save to /storage/0535/doc_00228158 [11:50:06]save last doc name /storage/0535/doc_00228158 to /storage/kkm_last_doc_name [11:50:06]save OK [11:50:06]Clear old archive folders... [11:50:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:50:06]tlvbuf is 008A32B0 [11:50:06]SAM_PROTO_ClearQueue [11:50:06]wFMCommunicate request_size=4 [11:50:06]MH_SAM_APDU [11:50:06]CAPDU: 80 09 00 00 [11:50:06]Write to MH i2c: E2 08 00 15 26 80 09 00 00 00 00 00 00 AD [11:50:06]Write i2c OK [11:50:06]MH_I2C_Read... [11:50:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:06]Read from MH i2c: E2 [11:50:06]MH_I2C_Read... [11:50:06]Read from MH i2c: E2 03 00 [11:50:06]MH_I2C_Read... [11:50:06]Read from MH i2c: E2 03 00 15 26 00 90 00 AF [11:50:06]RAPDU: 90 00 [11:50:06]wFMCommunicate OK [11:50:06]SAM_PROTO_ClearQueue done [11:50:06]KKMCreateOFDPacket [11:50:06]OFDProtocolAddRootSTLVToBuf [11:50:06]FM_MakeSignedData [11:50:06]FM_MakeSignedData [11:50:06]SAM_PROTO_SignData [11:50:06]wFMCommunicate request_size=4 [11:50:06]MH_SAM_APDU [11:50:06]CAPDU: 80 0D 01 02 [11:50:06]Write to MH i2c: E2 08 00 16 26 80 0D 01 02 00 00 00 00 B5 [11:50:06]Write i2c OK [11:50:06]MH_I2C_Read... [11:50:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:06]Read from MH i2c: E2 [11:50:06]MH_I2C_Read... [11:50:06]Read from MH i2c: E2 03 00 [11:50:06]MH_I2C_Read... [11:50:06]Read from MH i2c: E2 03 00 16 26 00 90 00 B0 [11:50:06]RAPDU: 90 00 [11:50:06]wFMCommunicate OK [11:50:06]wFMCommunicate request_size=255 [11:50:06]MH_SAM_APDU [11:50: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 71 91 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3E 7B 03 00 35 04 06 00 19 [11:50:06]Write to MH i2c: E2 02 01 17 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 71 91 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3E 7B 03 00 35 04 06 00 19 00 00 86 [11:50:06]Write i2c OK [11:50:06]MH_I2C_Read... [11:50:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:06]Read from MH i2c: E2 [11:50:06]MH_I2C_Read... [11:50:06]Read from MH i2c: E2 03 00 [11:50:06]MH_I2C_Read... [11:50:06]Read from MH i2c: E2 03 00 17 26 00 90 00 B1 [11:50:06]RAPDU: 90 00 [11:50:06]wFMCommunicate OK [11:50:06]wFMCommunicate request_size=10 [11:50:06]MH_SAM_APDU [11:50:06]CAPDU: 80 0D 02 02 05 F2 2C 5F 8E 76 [11:50:06]Write to MH i2c: E2 0D 00 18 26 80 0D 02 02 05 00 F2 2C 5F 8E 76 00 00 43 [11:50:06]Write i2c OK [11:50:06]MH_I2C_Read... [11:50:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:07]Read from MH i2c: E2 [11:50:07]MH_I2C_Read... [11:50:07]Read from MH i2c: E2 03 00 [11:50:07]MH_I2C_Read... [11:50:07]Read from MH i2c: E2 03 00 18 26 00 90 00 B2 [11:50:07]RAPDU: 90 00 [11:50:07]wFMCommunicate OK [11:50:07]wFMCommunicate request_size=4 [11:50:07]MH_SAM_APDU [11:50:07]CAPDU: 80 0D 03 02 [11:50:07]Write to MH i2c: E2 08 00 19 26 80 0D 03 02 00 00 00 00 BA [11:50:07]Write i2c OK [11:50:07]MH_I2C_Read... [11:50:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:07]Read from MH i2c: E2 [11:50:07]MH_I2C_Read... [11:50:07]Read from MH i2c: E2 0B 00 [11:50:07]MH_I2C_Read... [11:50:07]Read from MH i2c: E2 0B 00 19 26 00 63 1C B5 20 08 B4 66 B1 90 00 E2 [11:50:07]RAPDU: 63 1C B5 20 08 B4 66 B1 90 00 [11:50:07]wFMCommunicate OK [11:50:07]SAM_PROTO_SignData done [11:50:07]FM_MakeSignedData done [11:50:07]CreateOFDProtocolMessage [11:50:07]wFMCommunicate request_size=4 [11:50:07]MH_SAM_APDU [11:50:07]CAPDU: 80 11 00 00 [11:50:07]Write to MH i2c: E2 08 00 1A 26 80 11 00 00 00 00 00 00 BA [11:50:07]Write i2c OK [11:50:07]MH_I2C_Read... [11:50:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:07]Read from MH i2c: E2 [11:50:07]MH_I2C_Read... [11:50:07]Read from MH i2c: E2 17 00 [11:50:07]MH_I2C_Read... [11:50:07]Read from MH i2c: E2 17 00 1A 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 11 [11:50:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:50:07]wFMCommunicate OK [11:50:07]CreateOFDProtocolMessage done [11:50:07]OFDSenderStorePacket 228158 [11:50:07]StoreOFDPacket docnum=228158 [11:50:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 AB DA 07 01 73 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 71 91 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3E 7B 03 00 35 04 06 00 19 F2 2C 5F 8E 76 63 1C B5 20 08 B4 66 B1 [11:50:07]CheckFolder [11:50:07]dirname=/storage/ofd_packets [11:50:07]CheckFolder done [11:50:07]ProducePacketName [11:50:07]name=ofd_packets/00228158 [11:50:07]NVStorageSaveData ofd_packets/00228158 [11:50:07]File name is /storage/ofd_packets/00228158 [11:50:07]Write 301 bytes [11:50:07]NVStorageSaveData done [11:50:07]OFDSenderStorePacket done [11:50:07]KKMCreateOFDPacket done [11:50:07]NVStorageSaveData kkm_last_timestamp [11:50:07]File name is /storage/kkm_last_timestamp [11:50:07]Write 4 bytes [11:50:07]NVStorageSaveData done [11:50:07]OFD Sender: Processing packet 228158 [packets to send 38, broken 37] [11:50:07]ProducePacketName [11:50:07]name=ofd_packets/00228158 [11:50:07]OFD Sender: To server: pG, [11:50:07]CommunicateWithHost lk.salyk.kg:30040 [11:50:07]ConnectInit lk.salyk.kg [11:50:07]ExternCall_PrintAddStr [11:50:07]wPrintStart [11:50:07]Write to MH i2c: 01 00 00 1B 26 41 [11:50:07]Write i2c OK [11:50:07]MH_I2C_Read... [11:50:07]Read from MH i2c: 01 [11:50:07]MH_I2C_Read... [11:50:07]Read from MH i2c: 01 07 00 [11:50:07]MH_I2C_Read... [11:50:07]Read from MH i2c: 01 07 00 1B 26 00 00 00 00 00 FF 0F 56 [11:50:07]RasterBufferAndPrint [11:50:07]line Счет N : (1)1964591 [11:50:07]line ИНН: 02508201610067 [11:50:07]line Контрольно-Кассовый Чек [11:50:07]line ПРОДАЖА [11:50:07]line ТРК (МРК, ГНК) : 63 [11:50:07]line Товар: 2710124130 [11:50:07]line Аи-92-К-5 [11:50:07]line 7.480 * 66.90 [11:50:07]line = 500.41 [11:50:07]line НДС 12% НСП 1% [11:50:07]line > о реализуемом товаре [11:50:07]line ИТОГО: 500.41 [11:50:07]line НСП 1% : 4.43 [11:50:07]line НДС 12% : 53.14 [11:50:07]line Наличными: 0.00 [11:50:07]line Безнал.: 500.41 [11:50:07]line Место: АЗС № 133 "Партнер Нефть" [11:50:07]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:50:07]line СНО: Общий режим [11:50:07]line Чек 122 22.10.2024 11:50 [11:50:07]line Смена: 535 ФФД: 1.0 [11:50:07]line ЗНМ: 0300000091 [11:50:07]line РНМ: 0000000000091685 [11:50:07]line Версия ККМ: 001 [11:50:07]line Платежная система: Mbank [11:50:07]line ФМ: 0000000000871839 [11:50:07]line ФД: 228158 [11:50:07]line ФПД: 28527917239926 [11:50:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115009&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228158&fm=28527917239926&tin=02508201610067®Number=0000000000091685&sum=50041 [11:50:07]Connected sock=11 [11:50:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 AB DA 07 01 73 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 71 91 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3E 7B 03 00 35 04 06 00 19 F2 2C 5F 8E 76 63 1C B5 20 08 B4 66 B1 [11:50:07]written 0, free lines is 4095 [11:50:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 3A A0 47 00 E4 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3E 7B 03 00 F4 03 04 00 69 3C 17 67 B6 04 01 00 00 9B FB 86 EF 55 09 3E CE [11:50:07]CommunicateWithHost err = 0 [11:50:07]CheckOFDResponse [11:50:07]1017 (14) - 77093643461234 [11:50:07]1041 (16) - 0000000000871839 [11:50:07]1040 (4) - 228158 [11:50:07]1012 (4) - 22.10.2024 05:47 [11:50:07]1206 (1) - 0 [11:50:07]OFD Sender: Remove packet 228158 [11:50:07]ProducePacketName [11:50:07]name=ofd_packets/00228158 [11:50:07]NVStorageDeleteData [11:50:07]Write to MH i2c: 01 00 00 43 26 69 [11:50:07]Write i2c OK [11:50:07]MH_I2C_Read... [11:50:07]Read from MH i2c: 01 [11:50:07]MH_I2C_Read... [11:50:07]Read from MH i2c: 01 07 00 [11:50:07]MH_I2C_Read... [11:50:07]Read from MH i2c: 01 07 00 43 26 00 00 00 00 00 ED 0C 69 [11:50:07]RasterBufferAndPrint [11:50:07]line [11:50:07]line [11:50:07]line [11:50:07]line [11:50:07]line [11:50:07]written 0, free lines is 3316 [11:50:07]MH_Cut [11:50:07]Write to MH i2c: D1 01 00 4A 26 01 42 [11:50:07]Write i2c OK [11:50:07]MH_I2C_Read... [11:50:07]Read from MH i2c: D1 [11:50:07]MH_I2C_Read... [11:50:07]Read from MH i2c: D1 01 00 [11:50:07]MH_I2C_Read... [11:50:07]Read from MH i2c: D1 01 00 4A 26 00 41 [11:50:07]Write to MH i2c: 01 00 00 4B 26 71 [11:50:07]Write i2c OK [11:50:07]MH_I2C_Read... [11:50:08]OFD Sender: No OFD packet to send [11:50:08]*** Cut start [11:50:08]*** Partial cut [11:50:08]*** CUTSNS_PIN = 1 [11:50:08]*** CUTSNS_PIN = 0 [11:50:08]*** Brake cut motor [11:50:09]Read from MH i2c: 01 [11:50:09]MH_I2C_Read... [11:50:09]*** Stop cut motor [11:50:09]*** Cut end [11:50:09]Read from MH i2c: 01 07 00 [11:50:09]MH_I2C_Read... [11:50:09]Read from MH i2c: 01 07 00 4B 26 00 00 00 00 00 FF 0F 86 [11:50:09]process_action close_receipt done [11:50:09]requested_data is exist [11:50:09]produce_requested_data [11:50:09]requested_item fm.sn is exist - process it [11:50:09]wFMCommunicate request_size=4 [11:50:09]MH_SAM_APDU [11:50:09]CAPDU: 80 11 00 00 [11:50:09]Write to MH i2c: E2 08 00 4C 26 80 11 00 00 00 00 00 00 EC [11:50:09]Write i2c OK [11:50:09]MH_I2C_Read... [11:50:09]Read from MH i2c: E2 [11:50:09]MH_I2C_Read... [11:50:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:09]Read from MH i2c: E2 17 00 [11:50:09]MH_I2C_Read... [11:50:09]Read from MH i2c: E2 17 00 4C 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 43 [11:50:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:50:09]wFMCommunicate OK [11:50:09]requested_item fd.num is exist - process it [11:50:09]SAM_PROTO_GetFieldsCounters [11:50:09]wFMCommunicate request_size=4 [11:50:09]MH_SAM_APDU [11:50:09]CAPDU: 80 13 00 00 [11:50:09]Write to MH i2c: E2 08 00 4D 26 80 13 00 00 00 00 00 00 EF [11:50:09]Write i2c OK [11:50:09]MH_I2C_Read... [11:50:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:09]Read from MH i2c: E2 [11:50:09]MH_I2C_Read... [11:50:09]Read from MH i2c: E2 62 00 [11:50:09]MH_I2C_Read... [11:50:09]Read from MH i2c: E2 62 00 4D 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3E 7B 03 00 0E 04 04 00 17 02 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 5B [11:50:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3E 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:50:09]wFMCommunicate OK [11:50:09]SAM_PROTO_GetFieldsCounters done [11:50:09]requested_item shift.num is exist - process it [11:50:09]requested_item shift.opened is exist - process it [11:50:09]req_shift_opened [11:50:09]FM_GetShiftState [11:50:09]SAM_PROTO_GetShiftState [11:50:09]wFMCommunicate request_size=4 [11:50:09]MH_SAM_APDU [11:50:09]CAPDU: 80 13 01 00 [11:50:09]Write to MH i2c: E2 08 00 4E 26 80 13 01 00 00 00 00 00 F1 [11:50:09]Write i2c OK [11:50:09]MH_I2C_Read... [11:50:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:09]Read from MH i2c: E2 [11:50:09]MH_I2C_Read... [11:50:09]Read from MH i2c: E2 0E 00 [11:50:09]MH_I2C_Read... [11:50:09]Read from MH i2c: E2 0E 00 4E 26 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 B8 [11:50:09]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [11:50:09]wFMCommunicate OK [11:50:09]SAM_PROTO_GetShiftState done [11:50:09]FM_GetShiftState done [11:50:09]req_shift_opened done [11:50:09]requested_item shift.open_date is exist - process it [11:50:09]req_shift_open_date [11:50:09]req_shift_open_date done [11:50:09]produce_requested_data done [11:50:09]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228158,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [11:50:09]process_action_free close_receipt [11:50:09]json_value_free [11:50:09]json_value_free done [11:50:09]process_json_proto returns [11:50:09]Send response to host [11:50:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228158,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [11:50:09]free response buf [11:50:09]execute_script done [11:50:09]execute_script returns [11:50:09]free content buf [11:50:09]Sock 7.Close socket [11:50:09]Sock 7.Thread stoped [11:50:13]OFD Sender: No OFD packet to send [11:50:18]OFD Sender: No OFD packet to send [11:50:23]OFD Sender: No OFD packet to send [11:50:28]OFD Sender: No OFD packet to send [11:50:33]OFD Sender: No OFD packet to send [11:50:38]OFD Sender: No OFD packet to send [11:50:43]OFD Sender: No OFD packet to send [11:50:48]OFD Sender: No OFD packet to send [11:50:53]OFD Sender: No OFD packet to send [11:50:58]OFD Sender: No OFD packet to send [11:50:59]accept exits with 9 [11:50:59]New connection [11:50:59]New thread 3066994020 created [11:50:59]Thread 3067137380 joined [11:50:59]Waiting for new connection... [11:50:59] Sock 9.Parse request [11:50:59]Sock 9.Check first char [11:50:59]Sock 9.First char is OK [11:50:59]request: POST /json_proto HTTP/1.0 [11:50:59]Method: POST [11:50:59]URL: /json_proto [11:50:59]Method is POST - this is cgi request [11:50:59]url: /json_proto [11:50:59]query_string will be loaded in cgi processing [11:50:59]execute_cgi json_proto POST (null) [11:50:59]execute_cgi path=json_proto method=POST [11:50:59]POST find Content-Length [11:50:59]Host: 172.17.44.195:8080 [11:50:59]Content-Length: 678 [11:50:59]Content-Type: application/json [11:50:59] [11:50:59]POST finish read [11:50:59]Found Content-Length = 678 [11:50:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 2.970, "sum" : 220.37, "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" ] } } [11:50:59]execute_script... [11:50: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)1964592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 2.970, "sum" : 220.37, "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" ] } } [11:50:59]POST & json_proto [11:50:59]process_json_proto [11:50:59]json parsed OK: [11:50:59]protocol is kg_v1.0 [11:50:59]action value=close_receipt [11:50:59]process_action close_receipt [11:50:59]cmd_close_receipt [11:50:59]MH_GetDate [11:50:59]Write to MH i2c: F0 00 00 4F 26 64 [11:50:59]Write i2c OK [11:50:59]MH_I2C_Read... [11:50:59]Read from MH i2c: F0 [11:50:59]MH_I2C_Read... [11:50:59]Read from MH i2c: F0 09 00 [11:50:59]MH_I2C_Read... [11:50:59]Read from MH i2c: F0 09 00 4F 26 00 A7 91 17 67 82 C9 CF 66 A3 [11:50:59]GetLastDocTimeStamp 1729597809 [11:50:59]current date 1729597863 [11:50:59]FM_GetShiftState [11:50:59]SAM_PROTO_GetShiftState [11:50:59]wFMCommunicate request_size=4 [11:50:59]MH_SAM_APDU [11:50:59]CAPDU: 80 13 01 00 [11:50:59]Write to MH i2c: E2 08 00 50 26 80 13 01 00 00 00 00 00 F3 [11:50:59]Write i2c OK [11:50:59]MH_I2C_Read... [11:50:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:59]Read from MH i2c: E2 [11:50:59]MH_I2C_Read... [11:50:59]Read from MH i2c: E2 0E 00 [11:50:59]MH_I2C_Read... [11:50:59]Read from MH i2c: E2 0E 00 50 26 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 BA [11:50:59]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [11:50:59]wFMCommunicate OK [11:50:59]SAM_PROTO_GetShiftState done [11:50:59]FM_GetShiftState done [11:50:59]opened in 1729555538 [11:50:59]opened+sec_in_day 1729641938 [11:50:59]quantity*price = 22037 [11:50:59]sum+1 = 22038 [11:50:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.40 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 123 22.10.2024 11:51 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228159 ФПД: 91879006608355 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115103&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228159&fm=91879006608355&tin=02508201610067®Number=0000000000091685&sum=22000 [11:51:00]StoreToDocumentArchive [11:51:00]shift 535 fd 228159 [11:51:00]save to /storage/0535/doc_00228159 [11:51:00]save last doc name /storage/0535/doc_00228159 to /storage/kkm_last_doc_name [11:51:00]save OK [11:51:00]Clear old archive folders... [11:51:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:51:00]tlvbuf is 008BCA40 [11:51:00]SAM_PROTO_ClearQueue [11:51:00]wFMCommunicate request_size=4 [11:51:00]MH_SAM_APDU [11:51:00]CAPDU: 80 09 00 00 [11:51:00]Write to MH i2c: E2 08 00 5D 26 80 09 00 00 00 00 00 00 F5 [11:51:00]Write i2c OK [11:51:00]MH_I2C_Read... [11:51:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:01]Read from MH i2c: E2 [11:51:01]MH_I2C_Read... [11:51:01]Read from MH i2c: E2 03 00 [11:51:01]MH_I2C_Read... [11:51:01]Read from MH i2c: E2 03 00 5D 26 00 90 00 F7 [11:51:01]RAPDU: 90 00 [11:51:01]wFMCommunicate OK [11:51:01]SAM_PROTO_ClearQueue done [11:51:01]KKMCreateOFDPacket [11:51:01]OFDProtocolAddRootSTLVToBuf [11:51:01]FM_MakeSignedData [11:51:01]FM_MakeSignedData [11:51:01]SAM_PROTO_SignData [11:51:01]wFMCommunicate request_size=4 [11:51:01]MH_SAM_APDU [11:51:01]CAPDU: 80 0D 01 02 [11:51:01]Write to MH i2c: E2 08 00 5E 26 80 0D 01 02 00 00 00 00 FD [11:51:01]Write i2c OK [11:51:01]MH_I2C_Read... [11:51:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:01]Read from MH i2c: E2 [11:51:01]MH_I2C_Read... [11:51:01]Read from MH i2c: E2 03 00 [11:51:01]MH_I2C_Read... [11:51:01]Read from MH i2c: E2 03 00 5E 26 00 90 00 F8 [11:51:01]RAPDU: 90 00 [11:51:01]wFMCommunicate OK [11:51:01]wFMCommunicate request_size=255 [11:51:01]MH_SAM_APDU [11:51: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 9A 0B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 15 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 24 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 7B 00 00 00 F4 03 04 00 A7 91 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3F 7B 03 00 35 04 06 00 53 [11:51:01]Write to MH i2c: E2 02 01 5F 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 15 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 24 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 7B 00 00 00 F4 03 04 00 A7 91 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3F 7B 03 00 35 04 06 00 53 00 00 0F [11:51:01]Write i2c OK [11:51:01]MH_I2C_Read... [11:51:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:01]Read from MH i2c: E2 [11:51:01]MH_I2C_Read... [11:51:01]Read from MH i2c: E2 03 00 [11:51:01]MH_I2C_Read... [11:51:01]Read from MH i2c: E2 03 00 5F 26 00 90 00 F9 [11:51:01]RAPDU: 90 00 [11:51:01]wFMCommunicate OK [11:51:01]wFMCommunicate request_size=10 [11:51:01]MH_SAM_APDU [11:51:01]CAPDU: 80 0D 02 02 05 90 3F 8D 1B E3 [11:51:01]Write to MH i2c: E2 0D 00 60 26 80 0D 02 02 05 00 90 3F 8D 1B E3 00 00 64 [11:51:01]Write i2c OK [11:51:01]MH_I2C_Read... [11:51:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:01]Read from MH i2c: E2 [11:51:01]MH_I2C_Read... [11:51:01]Read from MH i2c: E2 03 00 [11:51:01]MH_I2C_Read... [11:51:01]Read from MH i2c: E2 03 00 60 26 00 90 00 FA [11:51:01]RAPDU: 90 00 [11:51:01]wFMCommunicate OK [11:51:01]wFMCommunicate request_size=4 [11:51:01]MH_SAM_APDU [11:51:01]CAPDU: 80 0D 03 02 [11:51:01]Write to MH i2c: E2 08 00 61 26 80 0D 03 02 00 00 00 00 02 [11:51:01]Write i2c OK [11:51:01]MH_I2C_Read... [11:51:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:01]Read from MH i2c: E2 [11:51:01]MH_I2C_Read... [11:51:01]Read from MH i2c: E2 0B 00 [11:51:01]MH_I2C_Read... [11:51:01]Read from MH i2c: E2 0B 00 61 26 00 06 EA 1B C4 C2 9C 00 95 90 00 C5 [11:51:01]RAPDU: 06 EA 1B C4 C2 9C 00 95 90 00 [11:51:01]wFMCommunicate OK [11:51:01]SAM_PROTO_SignData done [11:51:01]FM_MakeSignedData done [11:51:01]CreateOFDProtocolMessage [11:51:01]wFMCommunicate request_size=4 [11:51:01]MH_SAM_APDU [11:51:01]CAPDU: 80 11 00 00 [11:51:01]Write to MH i2c: E2 08 00 62 26 80 11 00 00 00 00 00 00 02 [11:51:01]Write i2c OK [11:51:01]MH_I2C_Read... [11:51:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:01]Read from MH i2c: E2 [11:51:01]MH_I2C_Read... [11:51:01]Read from MH i2c: E2 17 00 [11:51:01]MH_I2C_Read... [11:51:01]Read from MH i2c: E2 17 00 62 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 59 [11:51:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:51:01]wFMCommunicate OK [11:51:01]CreateOFDProtocolMessage done [11:51:01]OFDSenderStorePacket 228159 [11:51:01]StoreOFDPacket docnum=228159 [11:51:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 61 EF 07 01 77 45 5A 03 01 00 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 9A 0B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 15 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 24 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 7B 00 00 00 F4 03 04 00 A7 91 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3F 7B 03 00 35 04 06 00 53 90 3F 8D 1B E3 06 EA 1B C4 C2 9C 00 95 [11:51:01]CheckFolder [11:51:01]dirname=/storage/ofd_packets [11:51:01]CheckFolder done [11:51:01]ProducePacketName [11:51:01]name=ofd_packets/00228159 [11:51:01]NVStorageSaveData ofd_packets/00228159 [11:51:01]File name is /storage/ofd_packets/00228159 [11:51:01]Write 301 bytes [11:51:01]NVStorageSaveData done [11:51:01]OFDSenderStorePacket done [11:51:01]KKMCreateOFDPacket done [11:51:01]NVStorageSaveData kkm_last_timestamp [11:51:01]File name is /storage/kkm_last_timestamp [11:51:01]Write 4 bytes [11:51:01]NVStorageSaveData done [11:51:01]ExternCall_PrintAddStr [11:51:01]wPrintStart [11:51:01]Write to MH i2c: 01 00 00 63 26 89 [11:51:01]Write i2c OK [11:51:01]MH_I2C_Read... [11:51:01]Read from MH i2c: 01 [11:51:01]MH_I2C_Read... [11:51:01]Read from MH i2c: 01 07 00 [11:51:01]MH_I2C_Read... [11:51:01]Read from MH i2c: 01 07 00 63 26 00 00 00 00 00 FF 0F 9E [11:51:01]RasterBufferAndPrint [11:51:01]line Счет N : (1)1964592 [11:51:01]line ИНН: 02508201610067 [11:51:01]line Контрольно-Кассовый Чек [11:51:01]line ПРОДАЖА [11:51:01]line ТРК (МРК, ГНК) : 54 [11:51:01]line Товар: 2710124500 [11:51:01]line Аи-95-К-5 [11:51:01]line 2.970 * 74.20 [11:51:01]line = 220.37 [11:51:01]line НДС 12% НСП 1% [11:51:01]line > о реализуемом товаре [11:51:01]line ОКРУГЛЕНИЕ: -0.37 [11:51:01]line ИТОГО: 220.00 [11:51:01]line Внесено: 220.00 [11:51:01]line СДАЧА: 0.00 [11:51:01]line НСП 1% : 1.95 [11:51:01]line НДС 12% : 23.40 [11:51:01]line Наличными: 220.00 [11:51:01]line Безнал.: 0.00 [11:51:01]line Место: АЗС № 133 "Партнер Нефть" [11:51:01]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:51:01]line СНО: Общий режим [11:51:01]line Чек 123 22.10.2024 11:51 [11:51:01]line Смена: 535 ФФД: 1.0 [11:51:01]line ЗНМ: 0300000091 [11:51:01]line РНМ: 0000000000091685 [11:51:01]line Версия ККМ: 001 [11:51:01]line ФМ: 0000000000871839 [11:51:01]line ФД: 228159 [11:51:01]line ФПД: 91879006608355 [11:51:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115103&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228159&fm=91879006608355&tin=02508201610067®Number=0000000000091685&sum=22000 [11:51:01]OFD Sender: Processing packet 228159 [packets to send 38, broken 37] [11:51:01]ProducePacketName [11:51:01]name=ofd_packets/00228159 [11:51:01]OFD Sender: To server: pG, [11:51:01]CommunicateWithHost lk.salyk.kg:30040 [11:51:01]ConnectInit lk.salyk.kg [11:51:01]written 0, free lines is 4095 [11:51:01]Connected sock=10 [11:51:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 61 EF 07 01 77 45 5A 03 01 00 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 9A 0B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 15 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 24 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 7B 00 00 00 F4 03 04 00 A7 91 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3F 7B 03 00 35 04 06 00 53 90 3F 8D 1B E3 06 EA 1B C4 C2 9C 00 95 [11:51:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 8B F6 47 00 C9 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3F 7B 03 00 F4 03 04 00 9F 3C 17 67 B6 04 01 00 00 37 2F 89 D1 37 20 4B E4 [11:51:01]CommunicateWithHost err = 0 [11:51:01]CheckOFDResponse [11:51:01]1017 (14) - 77093643461234 [11:51:01]1041 (16) - 0000000000871839 [11:51:01]1040 (4) - 228159 [11:51:01]1012 (4) - 22.10.2024 05:48 [11:51:01]1206 (1) - 0 [11:51:01]OFD Sender: Remove packet 228159 [11:51:01]ProducePacketName [11:51:01]name=ofd_packets/00228159 [11:51:01]NVStorageDeleteData [11:51:01]Write to MH i2c: 01 00 00 8D 26 B3 [11:51:01]Write i2c OK [11:51:01]MH_I2C_Read... [11:51:01]Read from MH i2c: 01 [11:51:01]MH_I2C_Read... [11:51:01]Read from MH i2c: 01 07 00 [11:51:01]MH_I2C_Read... [11:51:01]Read from MH i2c: 01 07 00 8D 26 00 00 00 00 00 C2 0C 88 [11:51:01]RasterBufferAndPrint [11:51:01]line [11:51:01]line [11:51:01]line [11:51:01]line [11:51:01]line [11:51:01]written 0, free lines is 3272 [11:51:02]MH_Cut [11:51:02]Write to MH i2c: D1 01 00 94 26 01 8C [11:51:02]Write i2c OK [11:51:02]MH_I2C_Read... [11:51:02]Read from MH i2c: D1 [11:51:02]MH_I2C_Read... [11:51:02]Read from MH i2c: D1 01 00 [11:51:02]MH_I2C_Read... [11:51:02]Read from MH i2c: D1 01 00 94 26 00 8B [11:51:02]Write to MH i2c: 01 00 00 95 26 BB [11:51:02]Write i2c OK [11:51:02]MH_I2C_Read... [11:51:02]OFD Sender: No OFD packet to send [11:51:02]*** Cut start [11:51:02]*** Partial cut [11:51:02]*** CUTSNS_PIN = 1 [11:51:02]*** CUTSNS_PIN = 0 [11:51:03]*** Brake cut motor [11:51:03]Read from MH i2c: 01 [11:51:03]MH_I2C_Read... [11:51:03]*** Stop cut motor [11:51:03]*** Cut end [11:51:03]Read from MH i2c: 01 07 00 [11:51:03]MH_I2C_Read... [11:51:03]Read from MH i2c: 01 07 00 95 26 00 00 00 00 00 FF 0F D0 [11:51:03]process_action close_receipt done [11:51:03]requested_data is exist [11:51:03]produce_requested_data [11:51:03]requested_item fm.sn is exist - process it [11:51:03]wFMCommunicate request_size=4 [11:51:03]MH_SAM_APDU [11:51:03]CAPDU: 80 11 00 00 [11:51:03]Write to MH i2c: E2 08 00 96 26 80 11 00 00 00 00 00 00 36 [11:51:03]Write i2c OK [11:51:03]MH_I2C_Read... [11:51:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:03]Read from MH i2c: E2 [11:51:03]MH_I2C_Read... [11:51:03]Read from MH i2c: E2 17 00 [11:51:03]MH_I2C_Read... [11:51:03]Read from MH i2c: E2 17 00 96 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8D [11:51:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:51:03]wFMCommunicate OK [11:51:03]requested_item fd.num is exist - process it [11:51:03]SAM_PROTO_GetFieldsCounters [11:51:03]wFMCommunicate request_size=4 [11:51:03]MH_SAM_APDU [11:51:03]CAPDU: 80 13 00 00 [11:51:03]Write to MH i2c: E2 08 00 97 26 80 13 00 00 00 00 00 00 39 [11:51:03]Write i2c OK [11:51:03]MH_I2C_Read... [11:51:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:03]Read from MH i2c: E2 [11:51:03]MH_I2C_Read... [11:51:03]Read from MH i2c: E2 62 00 [11:51:03]MH_I2C_Read... [11:51:03]Read from MH i2c: E2 62 00 97 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3F 7B 03 00 0E 04 04 00 17 02 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 A9 [11:51:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3F 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:51:03]wFMCommunicate OK [11:51:03]SAM_PROTO_GetFieldsCounters done [11:51:03]requested_item shift.num is exist - process it [11:51:03]requested_item shift.opened is exist - process it [11:51:03]req_shift_opened [11:51:03]FM_GetShiftState [11:51:03]SAM_PROTO_GetShiftState [11:51:03]wFMCommunicate request_size=4 [11:51:03]MH_SAM_APDU [11:51:03]CAPDU: 80 13 01 00 [11:51:03]Write to MH i2c: E2 08 00 98 26 80 13 01 00 00 00 00 00 3B [11:51:03]Write i2c OK [11:51:03]MH_I2C_Read... [11:51:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:03]Read from MH i2c: E2 [11:51:03]MH_I2C_Read... [11:51:03]Read from MH i2c: E2 0E 00 [11:51:03]MH_I2C_Read... [11:51:03]Read from MH i2c: E2 0E 00 98 26 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 02 [11:51:03]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [11:51:03]wFMCommunicate OK [11:51:03]SAM_PROTO_GetShiftState done [11:51:03]FM_GetShiftState done [11:51:03]req_shift_opened done [11:51:03]requested_item shift.open_date is exist - process it [11:51:03]req_shift_open_date [11:51:03]req_shift_open_date done [11:51:03]produce_requested_data done [11:51:03]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228159,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [11:51:03]process_action_free close_receipt [11:51:03]json_value_free [11:51:03]json_value_free done [11:51:03]process_json_proto returns [11:51:03]Send response to host [11:51:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228159,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [11:51:03]free response buf [11:51:03]execute_script done [11:51:03]execute_script returns [11:51:03]free content buf [11:51:03]Sock 9.Close socket [11:51:03]Sock 9.Thread stoped [11:51:07]OFD Sender: No OFD packet to send [11:51:12]OFD Sender: No OFD packet to send [11:51:17]OFD Sender: No OFD packet to send [11:51:22]OFD Sender: No OFD packet to send [11:51:23]accept exits with 7 [11:51:23]New connection [11:51:23]New thread 3067137380 created [11:51:23]Thread 3066994020 joined [11:51:23]Waiting for new connection... [11:51:23] Sock 7.Parse request [11:51:23]Sock 7.Check first char [11:51:23]Sock 7.First char is OK [11:51:23]request: POST /json_proto HTTP/1.0 [11:51:23]Method: POST [11:51:23]URL: /json_proto [11:51:23]Method is POST - this is cgi request [11:51:23]url: /json_proto [11:51:23]query_string will be loaded in cgi processing [11:51:23]execute_cgi json_proto POST (null) [11:51:23]execute_cgi path=json_proto method=POST [11:51:23]POST find Content-Length [11:51:23]Host: 172.17.44.195:8080 [11:51:23]Content-Length: 678 [11:51:23]Content-Type: application/json [11:51:23] [11:51:23]POST finish read [11:51:23]Found Content-Length = 678 [11:51:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:23]execute_script... [11: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)1964593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:23]POST & json_proto [11:51:23]process_json_proto [11:51:23]json parsed OK: [11:51:23]protocol is kg_v1.0 [11:51:23]action value=close_receipt [11:51:23]process_action close_receipt [11:51:23]cmd_close_receipt [11:51:23]MH_GetDate [11:51:23]Write to MH i2c: F0 00 00 99 26 AE [11:51:23]Write i2c OK [11:51:23]MH_I2C_Read... [11:51:23]Read from MH i2c: F0 [11:51:23]MH_I2C_Read... [11:51:23]Read from MH i2c: F0 09 00 [11:51:23]MH_I2C_Read... [11:51:23]Read from MH i2c: F0 09 00 99 26 00 BF 91 17 67 82 C9 CF 66 05 [11:51:23]GetLastDocTimeStamp 1729597863 [11:51:23]current date 1729597887 [11:51:23]FM_GetShiftState [11:51:23]SAM_PROTO_GetShiftState [11:51:23]wFMCommunicate request_size=4 [11:51:23]MH_SAM_APDU [11:51:23]CAPDU: 80 13 01 00 [11:51:23]Write to MH i2c: E2 08 00 9A 26 80 13 01 00 00 00 00 00 3D [11:51:23]Write i2c OK [11:51:23]MH_I2C_Read... [11:51:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:23]Read from MH i2c: E2 [11:51:23]MH_I2C_Read... [11:51:23]Read from MH i2c: E2 0E 00 [11:51:23]MH_I2C_Read... [11:51:23]Read from MH i2c: E2 0E 00 9A 26 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 04 [11:51:23]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [11:51:23]wFMCommunicate OK [11:51:23]SAM_PROTO_GetShiftState done [11:51:23]FM_GetShiftState done [11:51:23]opened in 1729555538 [11:51:23]opened+sec_in_day 1729641938 [11:51:23]quantity*price = 50041 [11:51:23]sum+1 = 50042 [11:51:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 124 22.10.2024 11:51 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228160 ФПД: 72380134904430 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115127&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228160&fm=72380134904430&tin=02508201610067®Number=0000000000091685&sum=50000 [11:51:24]StoreToDocumentArchive [11:51:24]shift 535 fd 228160 [11:51:24]save to /storage/0535/doc_00228160 [11:51:24]save last doc name /storage/0535/doc_00228160 to /storage/kkm_last_doc_name [11:51:24]save OK [11:51:24]Clear old archive folders... [11:51:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:51:24]tlvbuf is 008BC9E0 [11:51:24]SAM_PROTO_ClearQueue [11:51:24]wFMCommunicate request_size=4 [11:51:24]MH_SAM_APDU [11:51:24]CAPDU: 80 09 00 00 [11:51:24]Write to MH i2c: E2 08 00 A7 26 80 09 00 00 00 00 00 00 3F [11:51:24]Write i2c OK [11:51:24]MH_I2C_Read... [11:51:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:24]Read from MH i2c: E2 [11:51:24]MH_I2C_Read... [11:51:24]Read from MH i2c: E2 03 00 [11:51:24]MH_I2C_Read... [11:51:24]Read from MH i2c: E2 03 00 A7 26 00 90 00 41 [11:51:24]RAPDU: 90 00 [11:51:24]wFMCommunicate OK [11:51:24]SAM_PROTO_ClearQueue done [11:51:24]KKMCreateOFDPacket [11:51:24]OFDProtocolAddRootSTLVToBuf [11:51:24]FM_MakeSignedData [11:51:24]FM_MakeSignedData [11:51:24]SAM_PROTO_SignData [11:51:24]wFMCommunicate request_size=4 [11:51:24]MH_SAM_APDU [11:51:24]CAPDU: 80 0D 01 02 [11:51:24]Write to MH i2c: E2 08 00 A8 26 80 0D 01 02 00 00 00 00 47 [11:51:24]Write i2c OK [11:51:24]MH_I2C_Read... [11:51:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:24]Read from MH i2c: E2 [11:51:24]MH_I2C_Read... [11:51:24]Read from MH i2c: E2 03 00 [11:51:24]MH_I2C_Read... [11:51:24]Read from MH i2c: E2 03 00 A8 26 00 90 00 42 [11:51:24]RAPDU: 90 00 [11:51:24]wFMCommunicate OK [11:51:24]wFMCommunicate request_size=255 [11:51:24]MH_SAM_APDU [11:51:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 BF 91 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 40 7B 03 00 35 04 06 00 41 [11:51:24]Write to MH i2c: E2 02 01 A9 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 BF 91 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 40 7B 03 00 35 04 06 00 41 00 00 40 [11:51:24]Write i2c OK [11:51:24]MH_I2C_Read... [11:51:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:25]Read from MH i2c: E2 [11:51:25]MH_I2C_Read... [11:51:25]Read from MH i2c: E2 03 00 [11:51:25]MH_I2C_Read... [11:51:25]Read from MH i2c: E2 03 00 A9 26 00 90 00 43 [11:51:25]RAPDU: 90 00 [11:51:25]wFMCommunicate OK [11:51:25]wFMCommunicate request_size=10 [11:51:25]MH_SAM_APDU [11:51:25]CAPDU: 80 0D 02 02 05 D4 50 3A D2 6E [11:51:25]Write to MH i2c: E2 0D 00 AA 26 80 0D 02 02 05 00 D4 50 3A D2 6E 00 00 F2 [11:51:25]Write i2c OK [11:51:25]MH_I2C_Read... [11:51:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:25]Read from MH i2c: E2 [11:51:25]MH_I2C_Read... [11:51:25]Read from MH i2c: E2 03 00 [11:51:25]MH_I2C_Read... [11:51:25]Read from MH i2c: E2 03 00 AA 26 00 90 00 44 [11:51:25]RAPDU: 90 00 [11:51:25]wFMCommunicate OK [11:51:25]wFMCommunicate request_size=4 [11:51:25]MH_SAM_APDU [11:51:25]CAPDU: 80 0D 03 02 [11:51:25]Write to MH i2c: E2 08 00 AB 26 80 0D 03 02 00 00 00 00 4C [11:51:25]Write i2c OK [11:51:25]MH_I2C_Read... [11:51:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:25]Read from MH i2c: E2 [11:51:25]MH_I2C_Read... [11:51:25]Read from MH i2c: E2 0B 00 [11:51:25]MH_I2C_Read... [11:51:25]Read from MH i2c: E2 0B 00 AB 26 00 EC 5F 8B AD D0 9A 3F 72 90 00 EB [11:51:25]RAPDU: EC 5F 8B AD D0 9A 3F 72 90 00 [11:51:25]wFMCommunicate OK [11:51:25]SAM_PROTO_SignData done [11:51:25]FM_MakeSignedData done [11:51:25]CreateOFDProtocolMessage [11:51:25]wFMCommunicate request_size=4 [11:51:25]MH_SAM_APDU [11:51:25]CAPDU: 80 11 00 00 [11:51:25]Write to MH i2c: E2 08 00 AC 26 80 11 00 00 00 00 00 00 4C [11:51:25]Write i2c OK [11:51:25]MH_I2C_Read... [11:51:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:25]Read from MH i2c: E2 [11:51:25]MH_I2C_Read... [11:51:25]Read from MH i2c: E2 17 00 [11:51:25]MH_I2C_Read... [11:51:25]Read from MH i2c: E2 17 00 AC 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A3 [11:51:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:51:25]wFMCommunicate OK [11:51:25]CreateOFDProtocolMessage done [11:51:25]OFDSenderStorePacket 228160 [11:51:25]StoreOFDPacket docnum=228160 [11:51:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 46 57 07 01 13 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 BF 91 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 40 7B 03 00 35 04 06 00 41 D4 50 3A D2 6E EC 5F 8B AD D0 9A 3F 72 [11:51:25]CheckFolder [11:51:25]dirname=/storage/ofd_packets [11:51:25]CheckFolder done [11:51:25]ProducePacketName [11:51:25]name=ofd_packets/00228160 [11:51:25]NVStorageSaveData ofd_packets/00228160 [11:51:25]File name is /storage/ofd_packets/00228160 [11:51:25]Write 301 bytes [11:51:25]NVStorageSaveData done [11:51:25]OFDSenderStorePacket done [11:51:25]KKMCreateOFDPacket done [11:51:25]NVStorageSaveData kkm_last_timestamp [11:51:25]File name is /storage/kkm_last_timestamp [11:51:25]Write 4 bytes [11:51:25]NVStorageSaveData done [11:51:25]OFD Sender: Processing packet 228160 [packets to send 38, broken 37] [11:51:25]ProducePacketName [11:51:25]name=ofd_packets/00228160 [11:51:25]OFD Sender: To server: pG, [11:51:25]CommunicateWithHost lk.salyk.kg:30040 [11:51:25]ConnectInit lk.salyk.kg [11:51:25]ExternCall_PrintAddStr [11:51:25]wPrintStart [11:51:25]Write to MH i2c: 01 00 00 AD 26 D3 [11:51:25]Write i2c OK [11:51:25]MH_I2C_Read... [11:51:25]Read from MH i2c: 01 [11:51:25]MH_I2C_Read... [11:51:25]Read from MH i2c: 01 07 00 [11:51:25]MH_I2C_Read... [11:51:25]Read from MH i2c: 01 07 00 AD 26 00 00 00 00 00 FF 0F E8 [11:51:25]RasterBufferAndPrint [11:51:25]line Счет N : (1)1964593 [11:51:25]line ИНН: 02508201610067 [11:51:25]line Контрольно-Кассовый Чек [11:51:25]line ПРОДАЖА [11:51:25]line ТРК (МРК, ГНК) : 43 [11:51:25]line Товар: 2710124130 [11:51:25]line Аи-92-К-5 [11:51:25]line 7.480 * 66.90 [11:51:25]line = 500.41 [11:51:25]line НДС 12% НСП 1% [11:51:25]line > о реализуемом товаре [11:51:25]line ОКРУГЛЕНИЕ: -0.41 [11:51:25]line ИТОГО: 500.00 [11:51:25]line Внесено: 500.00 [11:51:25]line СДАЧА: 0.00 [11:51:25]line НСП 1% : 4.43 [11:51:25]line НДС 12% : 53.14 [11:51:25]line Наличными: 500.00 [11:51:25]line Безнал.: 0.00 [11:51:25]line Место: АЗС № 133 "Партнер Нефть" [11:51:25]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:51:25]line СНО: Общий режим [11:51:25]line Чек 124 22.10.2024 11:51 [11:51:25]line Смена: 535 ФФД: 1.0 [11:51:25]line ЗНМ: 0300000091 [11:51:25]line РНМ: 0000000000091685 [11:51:25]line Версия ККМ: 001 [11:51:25]line ФМ: 0000000000871839 [11:51:25]line ФД: 228160 [11:51:25]line ФПД: 72380134904430 [11:51:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115127&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228160&fm=72380134904430&tin=02508201610067®Number=0000000000091685&sum=50000 [11:51:25]Connected sock=11 [11:51:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 46 57 07 01 13 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 BF 91 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 40 7B 03 00 35 04 06 00 41 D4 50 3A D2 6E EC 5F 8B AD D0 9A 3F 72 [11:51:25]written 0, free lines is 4095 [11:51:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 51 83 47 00 3A 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 40 7B 03 00 F4 03 04 00 B7 3C 17 67 B6 04 01 00 00 C9 66 E2 0A 98 C5 CB 46 [11:51:25]CommunicateWithHost err = 0 [11:51:25]CheckOFDResponse [11:51:25]1017 (14) - 77093643461234 [11:51:25]1041 (16) - 0000000000871839 [11:51:25]1040 (4) - 228160 [11:51:25]1012 (4) - 22.10.2024 05:48 [11:51:25]1206 (1) - 0 [11:51:25]OFD Sender: Remove packet 228160 [11:51:25]ProducePacketName [11:51:25]name=ofd_packets/00228160 [11:51:25]NVStorageDeleteData [11:51:26]Write to MH i2c: 01 00 00 D7 26 FD [11:51:26]Write i2c OK [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: 01 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: 01 07 00 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: 01 07 00 D7 26 00 00 00 00 00 BE 0C CE [11:51:26]RasterBufferAndPrint [11:51:26]line [11:51:26]line [11:51:26]line [11:51:26]line [11:51:26]line [11:51:26]written 0, free lines is 3266 [11:51:26]MH_Cut [11:51:26]Write to MH i2c: D1 01 00 DE 26 01 D6 [11:51:26]Write i2c OK [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: D1 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: D1 01 00 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: D1 01 00 DE 26 00 D5 [11:51:26]Write to MH i2c: 01 00 00 DF 26 05 [11:51:26]Write i2c OK [11:51:26]MH_I2C_Read... [11:51:26]OFD Sender: No OFD packet to send [11:51:26]*** Cut start [11:51:26]*** Partial cut [11:51:26]*** CUTSNS_PIN = 1 [11:51:26]*** CUTSNS_PIN = 0 [11:51:27]*** Brake cut motor [11:51:27]Read from MH i2c: 01 [11:51:27]MH_I2C_Read... [11:51:27]*** Stop cut motor [11:51:27]*** Cut end [11:51:27]Read from MH i2c: 01 07 00 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: 01 07 00 DF 26 00 00 00 00 00 FF 0F 1A [11:51:27]process_action close_receipt done [11:51:27]requested_data is exist [11:51:27]produce_requested_data [11:51:27]requested_item fm.sn is exist - process it [11:51:27]wFMCommunicate request_size=4 [11:51:27]MH_SAM_APDU [11:51:27]CAPDU: 80 11 00 00 [11:51:27]Write to MH i2c: E2 08 00 E0 26 80 11 00 00 00 00 00 00 80 [11:51:27]Write i2c OK [11:51:27]MH_I2C_Read... [11:51:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:27]Read from MH i2c: E2 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: E2 17 00 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: E2 17 00 E0 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D7 [11:51:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:51:27]wFMCommunicate OK [11:51:27]requested_item fd.num is exist - process it [11:51:27]SAM_PROTO_GetFieldsCounters [11:51:27]wFMCommunicate request_size=4 [11:51:27]MH_SAM_APDU [11:51:27]CAPDU: 80 13 00 00 [11:51:27]Write to MH i2c: E2 08 00 E1 26 80 13 00 00 00 00 00 00 83 [11:51:27]Write i2c OK [11:51:27]MH_I2C_Read... [11:51:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:27]Read from MH i2c: E2 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: E2 62 00 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: E2 62 00 E1 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 40 7B 03 00 0E 04 04 00 17 02 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 F7 [11:51:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 40 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:51:27]wFMCommunicate OK [11:51:27]SAM_PROTO_GetFieldsCounters done [11:51:27]requested_item shift.num is exist - process it [11:51:27]requested_item shift.opened is exist - process it [11:51:27]req_shift_opened [11:51:27]FM_GetShiftState [11:51:27]SAM_PROTO_GetShiftState [11:51:27]wFMCommunicate request_size=4 [11:51:27]MH_SAM_APDU [11:51:27]CAPDU: 80 13 01 00 [11:51:27]Write to MH i2c: E2 08 00 E2 26 80 13 01 00 00 00 00 00 85 [11:51:27]Write i2c OK [11:51:27]MH_I2C_Read... [11:51:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:27]Read from MH i2c: E2 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: E2 0E 00 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: E2 0E 00 E2 26 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 4C [11:51:27]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [11:51:27]wFMCommunicate OK [11:51:27]SAM_PROTO_GetShiftState done [11:51:27]FM_GetShiftState done [11:51:27]req_shift_opened done [11:51:27]requested_item shift.open_date is exist - process it [11:51:27]req_shift_open_date [11:51:27]req_shift_open_date done [11:51:27]produce_requested_data done [11:51:27]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228160,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [11:51:27]process_action_free close_receipt [11:51:27]json_value_free [11:51:27]json_value_free done [11:51:27]process_json_proto returns [11:51:27]Send response to host [11:51:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228160,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [11:51:27]free response buf [11:51:27]execute_script done [11:51:27]execute_script returns [11:51:27]free content buf [11:51:27]Sock 7.Close socket [11:51:27]Sock 7.Thread stoped [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:48]accept exits with 9 [11:51:48]New connection [11:51:48]New thread 3066994020 created [11:51:48]Thread 3067137380 joined [11:51:48]Waiting for new connection... [11:51:48] Sock 9.Parse request [11:51:48]Sock 9.Check first char [11:51:48]Sock 9.First char is OK [11:51:48]request: POST /json_proto HTTP/1.0 [11:51:48]Method: POST [11:51:48]URL: /json_proto [11:51:48]Method is POST - this is cgi request [11:51:48]url: /json_proto [11:51:48]query_string will be loaded in cgi processing [11:51:48]execute_cgi json_proto POST (null) [11:51:48]execute_cgi path=json_proto method=POST [11:51:48]POST find Content-Length [11:51:48]Host: 172.17.44.195:8080 [11:51:48]Content-Length: 768 [11:51:48]Content-Type: application/json [11:51:48] [11:51:48]POST finish read [11:51:48]Found Content-Length = 768 [11:51:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:48]execute_script... [11:51: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)1964594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:48]POST & json_proto [11:51:48]process_json_proto [11:51:48]json parsed OK: [11:51:48]protocol is kg_v1.0 [11:51:48]action value=close_receipt [11:51:48]process_action close_receipt [11:51:48]cmd_close_receipt [11:51:48]MH_GetDate [11:51:48]Write to MH i2c: F0 00 00 E3 26 F8 [11:51:48]Write i2c OK [11:51:48]MH_I2C_Read... [11:51:48]Read from MH i2c: F0 [11:51:48]MH_I2C_Read... [11:51:48]Read from MH i2c: F0 09 00 [11:51:48]MH_I2C_Read... [11:51:48]Read from MH i2c: F0 09 00 E3 26 00 D8 91 17 67 82 C9 CF 66 68 [11:51:48]GetLastDocTimeStamp 1729597887 [11:51:48]current date 1729597912 [11:51:48]FM_GetShiftState [11:51:48]SAM_PROTO_GetShiftState [11:51:48]wFMCommunicate request_size=4 [11:51:48]MH_SAM_APDU [11:51:48]CAPDU: 80 13 01 00 [11:51:48]Write to MH i2c: E2 08 00 E4 26 80 13 01 00 00 00 00 00 87 [11:51:48]Write i2c OK [11:51:48]MH_I2C_Read... [11:51:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:48]Read from MH i2c: E2 [11:51:48]MH_I2C_Read... [11:51:48]Read from MH i2c: E2 0E 00 [11:51:48]MH_I2C_Read... [11:51:48]Read from MH i2c: E2 0E 00 E4 26 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 4E [11:51:48]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [11:51:48]wFMCommunicate OK [11:51:48]SAM_PROTO_GetShiftState done [11:51:48]FM_GetShiftState done [11:51:48]opened in 1729555538 [11:51:48]opened+sec_in_day 1729641938 [11:51:48]quantity*price = 80061 [11:51:48]sum+1 = 80063 [11:51:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.62 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 0.00 Безнал.: 800.62 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 125 22.10.2024 11:51 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 228161 ФПД: 246843262970937 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115152&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228161&fm=246843262970937&tin=02508201610067®Number=0000000000091685&sum=80062 [11:51:49]StoreToDocumentArchive [11:51:49]shift 535 fd 228161 [11:51:49]save to /storage/0535/doc_00228161 [11:51:49]save last doc name /storage/0535/doc_00228161 to /storage/kkm_last_doc_name [11:51:49]save OK [11:51:49]Clear old archive folders... [11:51:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:51:49]tlvbuf is 008E51F0 [11:51:49]SAM_PROTO_ClearQueue [11:51:49]wFMCommunicate request_size=4 [11:51:49]MH_SAM_APDU [11:51:49]CAPDU: 80 09 00 00 [11:51:49]Write to MH i2c: E2 08 00 F1 26 80 09 00 00 00 00 00 00 89 [11:51:49]Write i2c OK [11:51:49]MH_I2C_Read... [11:51:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:49]Read from MH i2c: E2 [11:51:49]MH_I2C_Read... [11:51:49]Read from MH i2c: E2 03 00 [11:51:49]MH_I2C_Read... [11:51:49]Read from MH i2c: E2 03 00 F1 26 00 90 00 8B [11:51:49]RAPDU: 90 00 [11:51:49]wFMCommunicate OK [11:51:49]SAM_PROTO_ClearQueue done [11:51:49]KKMCreateOFDPacket [11:51:49]OFDProtocolAddRootSTLVToBuf [11:51:49]FM_MakeSignedData [11:51:49]FM_MakeSignedData [11:51:49]SAM_PROTO_SignData [11:51:49]wFMCommunicate request_size=4 [11:51:49]MH_SAM_APDU [11:51:49]CAPDU: 80 0D 01 02 [11:51:49]Write to MH i2c: E2 08 00 F2 26 80 0D 01 02 00 00 00 00 91 [11:51:49]Write i2c OK [11:51:49]MH_I2C_Read... [11:51:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:49]Read from MH i2c: E2 [11:51:49]MH_I2C_Read... [11:51:49]Read from MH i2c: E2 03 00 [11:51:49]MH_I2C_Read... [11:51:49]Read from MH i2c: E2 03 00 F2 26 00 90 00 8C [11:51:49]RAPDU: 90 00 [11:51:49]wFMCommunicate OK [11:51:49]wFMCommunicate request_size=255 [11:51:49]MH_SAM_APDU [11:51: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 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 D8 91 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 41 7B 03 00 35 04 06 00 E0 [11:51:49]Write to MH i2c: E2 02 01 F3 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 D8 91 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 41 7B 03 00 35 04 06 00 E0 00 00 2D [11:51:50]Write i2c OK [11:51:50]MH_I2C_Read... [11:51:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:50]Read from MH i2c: E2 [11:51:50]MH_I2C_Read... [11:51:50]Read from MH i2c: E2 03 00 [11:51:50]MH_I2C_Read... [11:51:50]Read from MH i2c: E2 03 00 F3 26 00 90 00 8D [11:51:50]RAPDU: 90 00 [11:51:50]wFMCommunicate OK [11:51:50]wFMCommunicate request_size=10 [11:51:50]MH_SAM_APDU [11:51:50]CAPDU: 80 0D 02 02 05 80 AD 01 2C 39 [11:51:50]Write to MH i2c: E2 0D 00 F4 26 80 0D 02 02 05 00 80 AD 01 2C 39 00 00 31 [11:51:50]Write i2c OK [11:51:50]MH_I2C_Read... [11:51:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:50]Read from MH i2c: E2 [11:51:50]MH_I2C_Read... [11:51:50]Read from MH i2c: E2 03 00 [11:51:50]MH_I2C_Read... [11:51:50]Read from MH i2c: E2 03 00 F4 26 00 90 00 8E [11:51:50]RAPDU: 90 00 [11:51:50]wFMCommunicate OK [11:51:50]wFMCommunicate request_size=4 [11:51:50]MH_SAM_APDU [11:51:50]CAPDU: 80 0D 03 02 [11:51:50]Write to MH i2c: E2 08 00 F5 26 80 0D 03 02 00 00 00 00 96 [11:51:50]Write i2c OK [11:51:50]MH_I2C_Read... [11:51:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:50]Read from MH i2c: E2 [11:51:50]MH_I2C_Read... [11:51:50]Read from MH i2c: E2 0B 00 [11:51:50]MH_I2C_Read... [11:51:50]Read from MH i2c: E2 0B 00 F5 26 00 8F 51 9F 77 A8 63 8F 5E 90 00 85 [11:51:50]RAPDU: 8F 51 9F 77 A8 63 8F 5E 90 00 [11:51:50]wFMCommunicate OK [11:51:50]SAM_PROTO_SignData done [11:51:50]FM_MakeSignedData done [11:51:50]CreateOFDProtocolMessage [11:51:50]wFMCommunicate request_size=4 [11:51:50]MH_SAM_APDU [11:51:50]CAPDU: 80 11 00 00 [11:51:50]Write to MH i2c: E2 08 00 F6 26 80 11 00 00 00 00 00 00 96 [11:51:50]Write i2c OK [11:51:50]MH_I2C_Read... [11:51:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:50]Read from MH i2c: E2 [11:51:50]MH_I2C_Read... [11:51:50]Read from MH i2c: E2 17 00 [11:51:50]MH_I2C_Read... [11:51:50]Read from MH i2c: E2 17 00 F6 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 ED [11:51:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:51:50]wFMCommunicate OK [11:51:50]CreateOFDProtocolMessage done [11:51:50]OFDSenderStorePacket 228161 [11:51:50]StoreOFDPacket docnum=228161 [11:51:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 E3 6B 07 01 CA E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 D8 91 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 41 7B 03 00 35 04 06 00 E0 80 AD 01 2C 39 8F 51 9F 77 A8 63 8F 5E [11:51:50]CheckFolder [11:51:50]dirname=/storage/ofd_packets [11:51:50]CheckFolder done [11:51:50]ProducePacketName [11:51:50]name=ofd_packets/00228161 [11:51:50]NVStorageSaveData ofd_packets/00228161 [11:51:50]File name is /storage/ofd_packets/00228161 [11:51:50]Write 301 bytes [11:51:50]NVStorageSaveData done [11:51:50]OFDSenderStorePacket done [11:51:50]KKMCreateOFDPacket done [11:51:50]NVStorageSaveData kkm_last_timestamp [11:51:50]File name is /storage/kkm_last_timestamp [11:51:50]Write 4 bytes [11:51:50]NVStorageSaveData done [11:51:50]ExternCall_PrintAddStr [11:51:50]wPrintStart [11:51:50]Write to MH i2c: 01 00 00 F7 26 1D [11:51:50]Write i2c OK [11:51:50]MH_I2C_Read... [11:51:50]Read from MH i2c: 01 [11:51:50]MH_I2C_Read... [11:51:50]Read from MH i2c: 01 07 00 [11:51:50]MH_I2C_Read... [11:51:50]Read from MH i2c: 01 07 00 F7 26 00 00 00 00 00 FF 0F 32 [11:51:50]RasterBufferAndPrint [11:51:50]line Счет N : (1)1964594 [11:51:50]line ИНН: 02508201610067 [11:51:50]line Контрольно-Кассовый Чек [11:51:50]line ПРОДАЖА [11:51:50]line ТРК (МРК, ГНК) : 34 [11:51:50]line Товар: 2710124500 [11:51:50]line Аи-95-К-5 [11:51:50]line 10.790 * 74.20 [11:51:50]line = 800.62 [11:51:50]line НДС 12% НСП 1% [11:51:50]line > о реализуемом товаре [11:51:50]line ИТОГО: 800.62 [11:51:50]line НСП 1% : 7.08 [11:51:50]line НДС 12% : 85.02 [11:51:50]line Наличными: 0.00 [11:51:50]line Безнал.: 800.62 [11:51:50]line Место: АЗС № 133 "Партнер Нефть" [11:51:50]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:51:50]line СНО: Общий режим [11:51:50]line Чек 125 22.10.2024 11:51 [11:51:50]line Смена: 535 ФФД: 1.0 [11:51:50]line ЗНМ: 0300000091 [11:51:50]line РНМ: 0000000000091685 [11:51:50]line Версия ККМ: 001 [11:51:50]line Платежная система: Mbank [11:51:50]line ФМ: 0000000000871839 [11:51:50]line ФД: 228161 [11:51:50]line ФПД: 246843262970937 [11:51:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115152&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228161&fm=246843262970937&tin=02508201610067®Number=0000000000091685&sum=80062 [11:51:50]OFD Sender: Processing packet 228161 [packets to send 38, broken 37] [11:51:50]ProducePacketName [11:51:50]name=ofd_packets/00228161 [11:51:50]OFD Sender: To server: pG, [11:51:50]CommunicateWithHost lk.salyk.kg:30040 [11:51:50]ConnectInit lk.salyk.kg [11:51:50]written 0, free lines is 4095 [11:51:50]Connected sock=10 [11:51:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 E3 6B 07 01 CA E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 D8 91 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 41 7B 03 00 35 04 06 00 E0 80 AD 01 2C 39 8F 51 9F 77 A8 63 8F 5E [11:51:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 DA 5D 47 00 C7 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 41 7B 03 00 F4 03 04 00 D1 3C 17 67 B6 04 01 00 00 8B 69 30 82 AF 90 2E 6C [11:51:51]CommunicateWithHost err = 0 [11:51:51]CheckOFDResponse [11:51:51]1017 (14) - 77093643461234 [11:51:51]1041 (16) - 0000000000871839 [11:51:51]1040 (4) - 228161 [11:51:51]1012 (4) - 22.10.2024 05:49 [11:51:51]1206 (1) - 0 [11:51:51]OFD Sender: Remove packet 228161 [11:51:51]ProducePacketName [11:51:51]name=ofd_packets/00228161 [11:51:51]NVStorageDeleteData [11:51:51]Write to MH i2c: 01 00 00 1F 27 46 [11:51:51]Write i2c OK [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: 01 [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: 01 07 00 [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: 01 07 00 1F 27 00 00 00 00 00 EE 0C 47 [11:51:51]RasterBufferAndPrint [11:51:51]line [11:51:51]line [11:51:51]line [11:51:51]line [11:51:51]line [11:51:51]written 0, free lines is 3316 [11:51:51]MH_Cut [11:51:51]Write to MH i2c: D1 01 00 26 27 01 1F [11:51:51]Write i2c OK [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: D1 [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: D1 01 00 [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: D1 01 00 26 27 00 1E [11:51:51]Write to MH i2c: 01 00 00 27 27 4E [11:51:51]Write i2c OK [11:51:51]MH_I2C_Read... [11:51:51]OFD Sender: No OFD packet to send [11:51:51]*** Cut start [11:51:51]*** Partial cut [11:51:51]*** CUTSNS_PIN = 1 [11:51:52]*** CUTSNS_PIN = 0 [11:51:52]*** Brake cut motor [11:51:52]Read from MH i2c: 01 [11:51:52]MH_I2C_Read... [11:51:52]*** Stop cut motor [11:51:52]*** Cut end [11:51:52]Read from MH i2c: 01 07 00 [11:51:52]MH_I2C_Read... [11:51:52]Read from MH i2c: 01 07 00 27 27 00 00 00 00 00 FF 0F 63 [11:51:52]process_action close_receipt done [11:51:52]requested_data is exist [11:51:52]produce_requested_data [11:51:52]requested_item fm.sn is exist - process it [11:51:52]wFMCommunicate request_size=4 [11:51:52]MH_SAM_APDU [11:51:52]CAPDU: 80 11 00 00 [11:51:52]Write to MH i2c: E2 08 00 28 27 80 11 00 00 00 00 00 00 C9 [11:51:52]Write i2c OK [11:51:52]MH_I2C_Read... [11:51:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:52]Read from MH i2c: E2 [11:51:52]MH_I2C_Read... [11:51:52]Read from MH i2c: E2 17 00 [11:51:52]MH_I2C_Read... [11:51:52]Read from MH i2c: E2 17 00 28 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 20 [11:51:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:51:52]wFMCommunicate OK [11:51:52]requested_item fd.num is exist - process it [11:51:52]SAM_PROTO_GetFieldsCounters [11:51:52]wFMCommunicate request_size=4 [11:51:52]MH_SAM_APDU [11:51:52]CAPDU: 80 13 00 00 [11:51:52]Write to MH i2c: E2 08 00 29 27 80 13 00 00 00 00 00 00 CC [11:51:52]Write i2c OK [11:51:52]MH_I2C_Read... [11:51:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:52]Read from MH i2c: E2 [11:51:52]MH_I2C_Read... [11:51:52]Read from MH i2c: E2 62 00 [11:51:52]MH_I2C_Read... [11:51:52]Read from MH i2c: E2 62 00 29 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 41 7B 03 00 0E 04 04 00 17 02 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 44 [11:51:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 41 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:51:52]wFMCommunicate OK [11:51:52]SAM_PROTO_GetFieldsCounters done [11:51:52]requested_item shift.num is exist - process it [11:51:52]requested_item shift.opened is exist - process it [11:51:52]req_shift_opened [11:51:52]FM_GetShiftState [11:51:52]SAM_PROTO_GetShiftState [11:51:52]wFMCommunicate request_size=4 [11:51:52]MH_SAM_APDU [11:51:52]CAPDU: 80 13 01 00 [11:51:52]Write to MH i2c: E2 08 00 2A 27 80 13 01 00 00 00 00 00 CE [11:51:52]Write i2c OK [11:51:52]MH_I2C_Read... [11:51:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:52]Read from MH i2c: E2 [11:51:52]MH_I2C_Read... [11:51:52]Read from MH i2c: E2 0E 00 [11:51:52]MH_I2C_Read... [11:51:52]Read from MH i2c: E2 0E 00 2A 27 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 95 [11:51:52]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [11:51:52]wFMCommunicate OK [11:51:52]SAM_PROTO_GetShiftState done [11:51:52]FM_GetShiftState done [11:51:52]req_shift_opened done [11:51:52]requested_item shift.open_date is exist - process it [11:51:52]req_shift_open_date [11:51:52]req_shift_open_date done [11:51:52]produce_requested_data done [11:51:52]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228161,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [11:51:52]process_action_free close_receipt [11:51:52]json_value_free [11:51:52]json_value_free done [11:51:52]process_json_proto returns [11:51:52]Send response to host [11:51:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228161,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [11:51:52]free response buf [11:51:52]execute_script done [11:51:52]execute_script returns [11:51:52]free content buf [11:51:52]Sock 9.Close socket [11:51:52]Sock 9.Thread stoped [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:10]accept exits with 7 [11:52:10]New connection [11:52:10]New thread 3067137380 created [11:52:10]Thread 3066994020 joined [11:52:10]Waiting for new connection... [11:52:10] Sock 7.Parse request [11:52:10]Sock 7.Check first char [11:52:10]Sock 7.First char is OK [11:52:10]request: POST /json_proto HTTP/1.0 [11:52:10]Method: POST [11:52:10]URL: /json_proto [11:52:10]Method is POST - this is cgi request [11:52:10]url: /json_proto [11:52:10]query_string will be loaded in cgi processing [11:52:10]execute_cgi json_proto POST (null) [11:52:10]execute_cgi path=json_proto method=POST [11:52:10]POST find Content-Length [11:52:10]Host: 172.17.44.195:8080 [11:52:10]Content-Length: 678 [11:52:10]Content-Type: application/json [11:52:10] [11:52:10]POST finish read [11:52:10]Found Content-Length = 678 [11:52:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "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" ] } } [11:52:10]execute_script... [11:52: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)1964595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "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" ] } } [11:52:10]POST & json_proto [11:52:10]process_json_proto [11:52:10]json parsed OK: [11:52:10]protocol is kg_v1.0 [11:52:10]action value=close_receipt [11:52:10]process_action close_receipt [11:52:10]cmd_close_receipt [11:52:10]MH_GetDate [11:52:10]Write to MH i2c: F0 00 00 2B 27 41 [11:52:10]Write i2c OK [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: F0 [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: F0 09 00 [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: F0 09 00 2B 27 00 EE 91 17 67 82 C9 CF 66 C7 [11:52:10]GetLastDocTimeStamp 1729597912 [11:52:10]current date 1729597934 [11:52:10]FM_GetShiftState [11:52:10]SAM_PROTO_GetShiftState [11:52:10]wFMCommunicate request_size=4 [11:52:10]MH_SAM_APDU [11:52:10]CAPDU: 80 13 01 00 [11:52:10]Write to MH i2c: E2 08 00 2C 27 80 13 01 00 00 00 00 00 D0 [11:52:10]Write i2c OK [11:52:10]MH_I2C_Read... [11:52:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:10]Read from MH i2c: E2 [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: E2 0E 00 [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: E2 0E 00 2C 27 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 97 [11:52:10]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [11:52:10]wFMCommunicate OK [11:52:10]SAM_PROTO_GetShiftState done [11:52:10]FM_GetShiftState done [11:52:10]opened in 1729555538 [11:52:10]opened+sec_in_day 1729641938 [11:52:10]quantity*price = 30051 [11:52:10]sum+1 = 30052 [11:52:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 126 22.10.2024 11:52 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228162 ФПД: 231256761317993 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115214&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228162&fm=231256761317993&tin=02508201610067®Number=0000000000091685&sum=30000 [11:52:11]StoreToDocumentArchive [11:52:11]shift 535 fd 228162 [11:52:11]save to /storage/0535/doc_00228162 [11:52:11]save last doc name /storage/0535/doc_00228162 to /storage/kkm_last_doc_name [11:52:11]save OK [11:52:11]Clear old archive folders... [11:52:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:52:11]tlvbuf is 008C9CD0 [11:52:11]SAM_PROTO_ClearQueue [11:52:11]wFMCommunicate request_size=4 [11:52:11]MH_SAM_APDU [11:52:11]CAPDU: 80 09 00 00 [11:52:11]Write to MH i2c: E2 08 00 39 27 80 09 00 00 00 00 00 00 D2 [11:52:11]Write i2c OK [11:52:11]MH_I2C_Read... [11:52:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:11]Read from MH i2c: E2 [11:52:11]MH_I2C_Read... [11:52:11]Read from MH i2c: E2 03 00 [11:52:11]MH_I2C_Read... [11:52:11]Read from MH i2c: E2 03 00 39 27 00 90 00 D4 [11:52:11]RAPDU: 90 00 [11:52:11]wFMCommunicate OK [11:52:11]SAM_PROTO_ClearQueue done [11:52:11]KKMCreateOFDPacket [11:52:11]OFDProtocolAddRootSTLVToBuf [11:52:11]FM_MakeSignedData [11:52:11]FM_MakeSignedData [11:52:11]SAM_PROTO_SignData [11:52:11]wFMCommunicate request_size=4 [11:52:11]MH_SAM_APDU [11:52:11]CAPDU: 80 0D 01 02 [11:52:11]Write to MH i2c: E2 08 00 3A 27 80 0D 01 02 00 00 00 00 DA [11:52:11]Write i2c OK [11:52:11]MH_I2C_Read... [11:52:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:11]OFD Sender: No OFD packet to send [11:52:11]Read from MH i2c: E2 [11:52:11]MH_I2C_Read... [11:52:11]Read from MH i2c: E2 03 00 [11:52:11]MH_I2C_Read... [11:52:11]Read from MH i2c: E2 03 00 3A 27 00 90 00 D5 [11:52:11]RAPDU: 90 00 [11:52:11]wFMCommunicate OK [11:52:11]wFMCommunicate request_size=255 [11:52:11]MH_SAM_APDU [11:52: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 77 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 7E 00 00 00 F4 03 04 00 EE 91 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 42 7B 03 00 35 04 06 00 D2 [11:52:11]Write to MH i2c: E2 02 01 3B 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 77 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 7E 00 00 00 F4 03 04 00 EE 91 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 42 7B 03 00 35 04 06 00 D2 00 00 BF [11:52:11]Write i2c OK [11:52:11]MH_I2C_Read... [11:52:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:11]Read from MH i2c: E2 [11:52:11]MH_I2C_Read... [11:52:11]Read from MH i2c: E2 03 00 [11:52:11]MH_I2C_Read... [11:52:11]Read from MH i2c: E2 03 00 3B 27 00 90 00 D6 [11:52:11]RAPDU: 90 00 [11:52:11]wFMCommunicate OK [11:52:11]wFMCommunicate request_size=10 [11:52:11]MH_SAM_APDU [11:52:11]CAPDU: 80 0D 02 02 05 53 A9 1C 3A 69 [11:52:11]Write to MH i2c: E2 0D 00 3C 27 80 0D 02 02 05 00 53 A9 1C 3A 69 00 00 A2 [11:52:11]Write i2c OK [11:52:11]MH_I2C_Read... [11:52:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:11]Read from MH i2c: E2 [11:52:11]MH_I2C_Read... [11:52:11]Read from MH i2c: E2 03 00 [11:52:11]MH_I2C_Read... [11:52:11]Read from MH i2c: E2 03 00 3C 27 00 90 00 D7 [11:52:11]RAPDU: 90 00 [11:52:11]wFMCommunicate OK [11:52:11]wFMCommunicate request_size=4 [11:52:11]MH_SAM_APDU [11:52:11]CAPDU: 80 0D 03 02 [11:52:11]Write to MH i2c: E2 08 00 3D 27 80 0D 03 02 00 00 00 00 DF [11:52:11]Write i2c OK [11:52:11]MH_I2C_Read... [11:52:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:11]Read from MH i2c: E2 [11:52:11]MH_I2C_Read... [11:52:11]Read from MH i2c: E2 0B 00 [11:52:11]MH_I2C_Read... [11:52:11]Read from MH i2c: E2 0B 00 3D 27 00 0B 68 75 06 24 13 B7 0A 90 00 C6 [11:52:11]RAPDU: 0B 68 75 06 24 13 B7 0A 90 00 [11:52:11]wFMCommunicate OK [11:52:11]SAM_PROTO_SignData done [11:52:11]FM_MakeSignedData done [11:52:11]CreateOFDProtocolMessage [11:52:11]wFMCommunicate request_size=4 [11:52:11]MH_SAM_APDU [11:52:11]CAPDU: 80 11 00 00 [11:52:11]Write to MH i2c: E2 08 00 3E 27 80 11 00 00 00 00 00 00 DF [11:52:11]Write i2c OK [11:52:11]MH_I2C_Read... [11:52:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:12]Read from MH i2c: E2 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: E2 17 00 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: E2 17 00 3E 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 36 [11:52:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:52:12]wFMCommunicate OK [11:52:12]CreateOFDProtocolMessage done [11:52:12]OFDSenderStorePacket 228162 [11:52:12]StoreOFDPacket docnum=228162 [11:52:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 9F EE 07 01 DC F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 77 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 7E 00 00 00 F4 03 04 00 EE 91 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 42 7B 03 00 35 04 06 00 D2 53 A9 1C 3A 69 0B 68 75 06 24 13 B7 0A [11:52:12]CheckFolder [11:52:12]dirname=/storage/ofd_packets [11:52:12]CheckFolder done [11:52:12]ProducePacketName [11:52:12]name=ofd_packets/00228162 [11:52:12]NVStorageSaveData ofd_packets/00228162 [11:52:12]File name is /storage/ofd_packets/00228162 [11:52:12]Write 301 bytes [11:52:12]NVStorageSaveData done [11:52:12]OFDSenderStorePacket done [11:52:12]KKMCreateOFDPacket done [11:52:12]NVStorageSaveData kkm_last_timestamp [11:52:12]File name is /storage/kkm_last_timestamp [11:52:12]Write 4 bytes [11:52:12]NVStorageSaveData done [11:52:12]ExternCall_PrintAddStr [11:52:12]wPrintStart [11:52:12]Write to MH i2c: 01 00 00 3F 27 66 [11:52:12]Write i2c OK [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: 01 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: 01 07 00 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: 01 07 00 3F 27 00 00 00 00 00 FF 0F 7B [11:52:12]RasterBufferAndPrint [11:52:12]line Счет N : (1)1964595 [11:52:12]line ИНН: 02508201610067 [11:52:12]line Контрольно-Кассовый Чек [11:52:12]line ПРОДАЖА [11:52:12]line ТРК (МРК, ГНК) : 64 [11:52:12]line Товар: 2710124500 [11:52:12]line Аи-95-К-5 [11:52:12]line 4.050 * 74.20 [11:52:12]line = 300.51 [11:52:12]line НДС 12% НСП 1% [11:52:12]line > о реализуемом товаре [11:52:12]line ОКРУГЛЕНИЕ: -0.51 [11:52:12]line ИТОГО: 300.00 [11:52:12]line Внесено: 300.00 [11:52:12]line СДАЧА: 0.00 [11:52:12]line НСП 1% : 2.66 [11:52:12]line НДС 12% : 31.91 [11:52:12]line Наличными: 300.00 [11:52:12]line Безнал.: 0.00 [11:52:12]line Место: АЗС № 133 "Партнер Нефть" [11:52:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:52:12]line СНО: Общий режим [11:52:12]line Чек 126 22.10.2024 11:52 [11:52:12]line Смена: 535 ФФД: 1.0 [11:52:12]line ЗНМ: 0300000091 [11:52:12]line РНМ: 0000000000091685 [11:52:12]line Версия ККМ: 001 [11:52:12]line ФМ: 0000000000871839 [11:52:12]line ФД: 228162 [11:52:12]line ФПД: 231256761317993 [11:52:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115214&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228162&fm=231256761317993&tin=02508201610067®Number=0000000000091685&sum=30000 [11:52:12]OFD Sender: Processing packet 228162 [packets to send 38, broken 37] [11:52:12]ProducePacketName [11:52:12]name=ofd_packets/00228162 [11:52:12]OFD Sender: To server: pG, [11:52:12]CommunicateWithHost lk.salyk.kg:30040 [11:52:12]ConnectInit lk.salyk.kg [11:52:12]written 0, free lines is 4095 [11:52:12]Connected sock=10 [11:52:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 9F EE 07 01 DC F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 77 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 7E 00 00 00 F4 03 04 00 EE 91 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 42 7B 03 00 35 04 06 00 D2 53 A9 1C 3A 69 0B 68 75 06 24 13 B7 0A [11:52:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 3C 9A 47 00 75 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 38 37 31 38 33 39 10 04 04 00 42 7B 03 00 F4 03 04 00 E6 3C 17 67 B6 04 01 00 00 40 A2 04 FA D0 88 C8 24 [11:52:12]CommunicateWithHost err = 0 [11:52:12]CheckOFDResponse [11:52:12]1017 (14) - 77093643461234 [11:52:12]1041 (16) - 0000000000871839 [11:52:12]1040 (4) - 228162 [11:52:12]1012 (4) - 22.10.2024 05:49 [11:52:12]1206 (1) - 0 [11:52:12]OFD Sender: Remove packet 228162 [11:52:12]ProducePacketName [11:52:12]name=ofd_packets/00228162 [11:52:12]NVStorageDeleteData [11:52:12]Write to MH i2c: 01 00 00 69 27 90 [11:52:12]Write i2c OK [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: 01 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: 01 07 00 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: 01 07 00 69 27 00 00 00 00 00 BF 0C 62 [11:52:12]RasterBufferAndPrint [11:52:12]line [11:52:12]line [11:52:12]line [11:52:12]line [11:52:12]line [11:52:12]written 0, free lines is 3267 [11:52:12]MH_Cut [11:52:12]Write to MH i2c: D1 01 00 70 27 01 69 [11:52:12]Write i2c OK [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: D1 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: D1 01 00 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: D1 01 00 70 27 00 68 [11:52:12]Write to MH i2c: 01 00 00 71 27 98 [11:52:12]Write i2c OK [11:52:12]MH_I2C_Read... [11:52:13]OFD Sender: No OFD packet to send [11:52:13]*** Cut start [11:52:13]*** Partial cut [11:52:13]*** CUTSNS_PIN = 1 [11:52:13]*** CUTSNS_PIN = 0 [11:52:13]*** Brake cut motor [11:52:14]Read from MH i2c: 01 [11:52:14]MH_I2C_Read... [11:52:14]*** Stop cut motor [11:52:14]*** Cut end [11:52:14]Read from MH i2c: 01 07 00 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: 01 07 00 71 27 00 00 00 00 00 FF 0F AD [11:52:14]process_action close_receipt done [11:52:14]requested_data is exist [11:52:14]produce_requested_data [11:52:14]requested_item fm.sn is exist - process it [11:52:14]wFMCommunicate request_size=4 [11:52:14]MH_SAM_APDU [11:52:14]CAPDU: 80 11 00 00 [11:52:14]Write to MH i2c: E2 08 00 72 27 80 11 00 00 00 00 00 00 13 [11:52:14]Write i2c OK [11:52:14]MH_I2C_Read... [11:52:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:14]Read from MH i2c: E2 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: E2 17 00 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: E2 17 00 72 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6A [11:52:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:52:14]wFMCommunicate OK [11:52:14]requested_item fd.num is exist - process it [11:52:14]SAM_PROTO_GetFieldsCounters [11:52:14]wFMCommunicate request_size=4 [11:52:14]MH_SAM_APDU [11:52:14]CAPDU: 80 13 00 00 [11:52:14]Write to MH i2c: E2 08 00 73 27 80 13 00 00 00 00 00 00 16 [11:52:14]Write i2c OK [11:52:14]MH_I2C_Read... [11:52:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:14]Read from MH i2c: E2 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: E2 62 00 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: E2 62 00 73 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 42 7B 03 00 0E 04 04 00 17 02 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 92 [11:52:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 42 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:52:14]wFMCommunicate OK [11:52:14]SAM_PROTO_GetFieldsCounters done [11:52:14]requested_item shift.num is exist - process it [11:52:14]requested_item shift.opened is exist - process it [11:52:14]req_shift_opened [11:52:14]FM_GetShiftState [11:52:14]SAM_PROTO_GetShiftState [11:52:14]wFMCommunicate request_size=4 [11:52:14]MH_SAM_APDU [11:52:14]CAPDU: 80 13 01 00 [11:52:14]Write to MH i2c: E2 08 00 74 27 80 13 01 00 00 00 00 00 18 [11:52:14]Write i2c OK [11:52:14]MH_I2C_Read... [11:52:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:14]Read from MH i2c: E2 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: E2 0E 00 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: E2 0E 00 74 27 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 DF [11:52:14]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [11:52:14]wFMCommunicate OK [11:52:14]SAM_PROTO_GetShiftState done [11:52:14]FM_GetShiftState done [11:52:14]req_shift_opened done [11:52:14]requested_item shift.open_date is exist - process it [11:52:14]req_shift_open_date [11:52:14]req_shift_open_date done [11:52:14]produce_requested_data done [11:52:14]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228162,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [11:52:14]process_action_free close_receipt [11:52:14]json_value_free [11:52:14]json_value_free done [11:52:14]process_json_proto returns [11:52:14]Send response to host [11:52:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228162,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [11:52:14]free response buf [11:52:14]execute_script done [11:52:14]execute_script returns [11:52:14]free content buf [11:52:14]Sock 7.Close socket [11:52:14]Sock 7.Thread stoped [11:52:18]OFD Sender: No OFD packet to send [11:52:23]OFD Sender: No OFD packet to send [11:52:25]accept exits with 9 [11:52:25]New connection [11:52:25]New thread 3066994020 created [11:52:25]Thread 3067137380 joined [11:52:25]Waiting for new connection... [11:52:25] Sock 9.Parse request [11:52:25]Sock 9.Check first char [11:52:25]Sock 9.First char is OK [11:52:25]request: POST /json_proto HTTP/1.0 [11:52:25]Method: POST [11:52:25]URL: /json_proto [11:52:25]Method is POST - this is cgi request [11:52:25]url: /json_proto [11:52:25]query_string will be loaded in cgi processing [11:52:25]execute_cgi json_proto POST (null) [11:52:25]execute_cgi path=json_proto method=POST [11:52:25]POST find Content-Length [11:52:25]Host: 172.17.44.195:8080 [11:52:25]Content-Length: 798 [11:52:25]Content-Type: application/json [11:52:25] [11:52:25]POST finish read [11:52:25]Found Content-Length = 798 [11:52:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964596", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4382097", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:25]execute_script... [11:52: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)1964596", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4382097", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:25]POST & json_proto [11:52:25]process_json_proto [11:52:25]json parsed OK: [11:52:25]protocol is kg_v1.0 [11:52:25]action value=close_receipt [11:52:25]process_action close_receipt [11:52:25]cmd_close_receipt [11:52:25]MH_GetDate [11:52:25]Write to MH i2c: F0 00 00 75 27 8B [11:52:25]Write i2c OK [11:52:25]MH_I2C_Read... [11:52:25]Read from MH i2c: F0 [11:52:25]MH_I2C_Read... [11:52:25]Read from MH i2c: F0 09 00 [11:52:25]MH_I2C_Read... [11:52:25]Read from MH i2c: F0 09 00 75 27 00 FD 91 17 67 82 C9 CF 66 20 [11:52:25]GetLastDocTimeStamp 1729597934 [11:52:25]current date 1729597949 [11:52:25]FM_GetShiftState [11:52:25]SAM_PROTO_GetShiftState [11:52:25]wFMCommunicate request_size=4 [11:52:25]MH_SAM_APDU [11:52:25]CAPDU: 80 13 01 00 [11:52:25]Write to MH i2c: E2 08 00 76 27 80 13 01 00 00 00 00 00 1A [11:52:25]Write i2c OK [11:52:25]MH_I2C_Read... [11:52:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:25]Read from MH i2c: E2 [11:52:25]MH_I2C_Read... [11:52:25]Read from MH i2c: E2 0E 00 [11:52:25]MH_I2C_Read... [11:52:25]Read from MH i2c: E2 0E 00 76 27 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 E1 [11:52:25]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [11:52:25]wFMCommunicate OK [11:52:25]SAM_PROTO_GetShiftState done [11:52:25]FM_GetShiftState done [11:52:25]opened in 1729555538 [11:52:25]opened+sec_in_day 1729641938 [11:52:25]quantity*price = 0 [11:52:25]sum+1 = 1 [11:52:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 127 22.10.2024 11:52 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливные Талоны 4382097 ФМ: 0000000000871839 ФД: 228163 ФПД: 271250728129651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115229&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228163&fm=271250728129651&tin=02508201610067®Number=0000000000091685&sum=0 [11:52:27]StoreToDocumentArchive [11:52:27]shift 535 fd 228163 [11:52:27]save to /storage/0535/doc_00228163 [11:52:27]save last doc name /storage/0535/doc_00228163 to /storage/kkm_last_doc_name [11:52:27]save OK [11:52:27]Clear old archive folders... [11:52:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:52:27]tlvbuf is 00A815B0 [11:52:27]SAM_PROTO_ClearQueue [11:52:27]wFMCommunicate request_size=4 [11:52:27]MH_SAM_APDU [11:52:27]CAPDU: 80 09 00 00 [11:52:27]Write to MH i2c: E2 08 00 83 27 80 09 00 00 00 00 00 00 1C [11:52:27]Write i2c OK [11:52:27]MH_I2C_Read... [11:52:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:27]Read from MH i2c: E2 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: E2 03 00 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: E2 03 00 83 27 00 90 00 1E [11:52:27]RAPDU: 90 00 [11:52:27]wFMCommunicate OK [11:52:27]SAM_PROTO_ClearQueue done [11:52:27]KKMCreateOFDPacket [11:52:27]OFDProtocolAddRootSTLVToBuf [11:52:27]FM_MakeSignedData [11:52:27]FM_MakeSignedData [11:52:27]SAM_PROTO_SignData [11:52:27]wFMCommunicate request_size=4 [11:52:27]MH_SAM_APDU [11:52:27]CAPDU: 80 0D 01 02 [11:52:27]Write to MH i2c: E2 08 00 84 27 80 0D 01 02 00 00 00 00 24 [11:52:27]Write i2c OK [11:52:27]MH_I2C_Read... [11:52:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:27]Read from MH i2c: E2 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: E2 03 00 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: E2 03 00 84 27 00 90 00 1F [11:52:27]RAPDU: 90 00 [11:52:27]wFMCommunicate OK [11:52:27]wFMCommunicate request_size=255 [11:52:27]MH_SAM_APDU [11:52: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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 FD 91 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 43 7B 03 00 35 04 06 00 F6 B3 7B 4B [11:52:27]Write to MH i2c: E2 02 01 85 27 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 FD 91 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 43 7B 03 00 35 04 06 00 F6 B3 7B 4B 00 00 CB [11:52:27]Write i2c OK [11:52:27]MH_I2C_Read... [11:52:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:27]Read from MH i2c: E2 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: E2 03 00 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: E2 03 00 85 27 00 90 00 20 [11:52:27]RAPDU: 90 00 [11:52:27]wFMCommunicate OK [11:52:27]wFMCommunicate request_size=7 [11:52:27]MH_SAM_APDU [11:52:27]CAPDU: 80 0D 02 02 02 94 73 [11:52:27]Write to MH i2c: E2 0A 00 86 27 80 0D 02 02 02 00 94 73 00 00 32 [11:52:27]Write i2c OK [11:52:27]MH_I2C_Read... [11:52:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:27]Read from MH i2c: E2 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: E2 03 00 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: E2 03 00 86 27 00 90 00 21 [11:52:27]RAPDU: 90 00 [11:52:27]wFMCommunicate OK [11:52:27]wFMCommunicate request_size=4 [11:52:27]MH_SAM_APDU [11:52:27]CAPDU: 80 0D 03 02 [11:52:27]Write to MH i2c: E2 08 00 87 27 80 0D 03 02 00 00 00 00 29 [11:52:27]Write i2c OK [11:52:27]MH_I2C_Read... [11:52:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:27]Read from MH i2c: E2 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: E2 0B 00 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: E2 0B 00 87 27 00 AD 09 BD 53 8A ED F5 AF 90 00 0B [11:52:27]RAPDU: AD 09 BD 53 8A ED F5 AF 90 00 [11:52:27]wFMCommunicate OK [11:52:27]SAM_PROTO_SignData done [11:52:27]FM_MakeSignedData done [11:52:27]CreateOFDProtocolMessage [11:52:27]wFMCommunicate request_size=4 [11:52:27]MH_SAM_APDU [11:52:27]CAPDU: 80 11 00 00 [11:52:27]Write to MH i2c: E2 08 00 88 27 80 11 00 00 00 00 00 00 29 [11:52:27]Write i2c OK [11:52:27]MH_I2C_Read... [11:52:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:27]Read from MH i2c: E2 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: E2 17 00 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: E2 17 00 88 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 80 [11:52:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:52:27]wFMCommunicate OK [11:52:27]CreateOFDProtocolMessage done [11:52:27]OFDSenderStorePacket 228163 [11:52:27]StoreOFDPacket docnum=228163 [11:52:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 2D 90 04 01 B6 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 FD 91 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 43 7B 03 00 35 04 06 00 F6 B3 7B 4B 94 73 AD 09 BD 53 8A ED F5 AF [11:52:27]CheckFolder [11:52:27]dirname=/storage/ofd_packets [11:52:27]CheckFolder done [11:52:27]ProducePacketName [11:52:27]name=ofd_packets/00228163 [11:52:27]NVStorageSaveData ofd_packets/00228163 [11:52:27]File name is /storage/ofd_packets/00228163 [11:52:27]Write 298 bytes [11:52:27]NVStorageSaveData done [11:52:27]OFDSenderStorePacket done [11:52:27]KKMCreateOFDPacket done [11:52:27]NVStorageSaveData kkm_last_timestamp [11:52:27]File name is /storage/kkm_last_timestamp [11:52:27]Write 4 bytes [11:52:27]NVStorageSaveData done [11:52:27]ExternCall_PrintAddStr [11:52:27]wPrintStart [11:52:27]Write to MH i2c: 01 00 00 89 27 B0 [11:52:27]Write i2c OK [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: 01 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: 01 07 00 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: 01 07 00 89 27 00 00 00 00 00 FF 0F C5 [11:52:27]RasterBufferAndPrint [11:52:27]line Счет N : (1)1964596 [11:52:27]line ИНН: 02508201610067 [11:52:27]line Контрольно-Кассовый Чек [11:52:27]line ПРОДАЖА [11:52:27]line ТРК (МРК, ГНК) : 11 [11:52:27]line Товар: 2710194210 [11:52:27]line ДТ-К-5 [11:52:27]line 20.000 * 0.00 [11:52:27]line = 0.00 [11:52:27]line НДС 12% НСП 1% [11:52:27]line > о реализуемом товаре [11:52:27]line ИТОГО: 0.00 [11:52:27]line НСП 1% : 0.00 [11:52:27]line НДС 12% : 0.00 [11:52:27]line Наличными: 0.00 [11:52:27]line Безнал.: 0.00 [11:52:27]line Место: АЗС № 133 "Партнер Нефть" [11:52:27]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:52:27]line СНО: Общий режим [11:52:27]line Чек 127 22.10.2024 11:52 [11:52:27]line Смена: 535 ФФД: 1.0 [11:52:27]line ЗНМ: 0300000091 [11:52:27]line РНМ: 0000000000091685 [11:52:27]line Версия ККМ: 001 [11:52:27]line Талоны: Топливные Талоны [11:52:27]line 4382097 [11:52:27]line ФМ: 0000000000871839 [11:52:27]line ФД: 228163 [11:52:27]line ФПД: 271250728129651 [11:52:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115229&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228163&fm=271250728129651&tin=02508201610067®Number=0000000000091685&sum=0 [11:52:27]OFD Sender: Processing packet 228163 [packets to send 38, broken 37] [11:52:27]ProducePacketName [11:52:27]name=ofd_packets/00228163 [11:52:27]OFD Sender: To server: pG, [11:52:27]CommunicateWithHost lk.salyk.kg:30040 [11:52:27]ConnectInit lk.salyk.kg [11:52:27]written 0, free lines is 4095 [11:52:28]Connected sock=10 [11:52:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 2D 90 04 01 B6 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 FD 91 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 43 7B 03 00 35 04 06 00 F6 B3 7B 4B 94 73 AD 09 BD 53 8A ED F5 AF [11:52:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 F8 F1 47 00 F9 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 43 7B 03 00 F4 03 04 00 F6 3C 17 67 B6 04 01 00 00 EF 47 A0 0A 7A 6A DA B9 [11:52:28]CommunicateWithHost err = 0 [11:52:28]CheckOFDResponse [11:52:28]1017 (14) - 77093643461234 [11:52:28]1041 (16) - 0000000000871839 [11:52:28]1040 (4) - 228163 [11:52:28]1012 (4) - 22.10.2024 05:49 [11:52:28]1206 (1) - 0 [11:52:28]OFD Sender: Remove packet 228163 [11:52:28]ProducePacketName [11:52:28]name=ofd_packets/00228163 [11:52:28]NVStorageDeleteData [11:52:28]Write to MH i2c: 01 00 00 B2 27 D9 [11:52:28]Write i2c OK [11:52:28]MH_I2C_Read... [11:52:28]Read from MH i2c: 01 [11:52:28]MH_I2C_Read... [11:52:28]Read from MH i2c: 01 07 00 [11:52:28]MH_I2C_Read... [11:52:28]Read from MH i2c: 01 07 00 B2 27 00 00 00 00 00 D8 0C C4 [11:52:28]RasterBufferAndPrint [11:52:28]line [11:52:28]line [11:52:28]line [11:52:28]line [11:52:28]line [11:52:28]written 0, free lines is 3292 [11:52:28]MH_Cut [11:52:28]Write to MH i2c: D1 01 00 B9 27 01 B2 [11:52:28]Write i2c OK [11:52:28]MH_I2C_Read... [11:52:28]Read from MH i2c: D1 [11:52:28]MH_I2C_Read... [11:52:28]Read from MH i2c: D1 01 00 [11:52:28]MH_I2C_Read... [11:52:28]Read from MH i2c: D1 01 00 B9 27 00 B1 [11:52:28]Write to MH i2c: 01 00 00 BA 27 E1 [11:52:28]Write i2c OK [11:52:28]MH_I2C_Read... [11:52:28]OFD Sender: No OFD packet to send [11:52:29]*** Cut start [11:52:29]*** Partial cut [11:52:29]*** CUTSNS_PIN = 1 [11:52:29]*** CUTSNS_PIN = 0 [11:52:29]*** Brake cut motor [11:52:29]Read from MH i2c: 01 [11:52:29]MH_I2C_Read... [11:52:29]*** Stop cut motor [11:52:29]*** Cut end [11:52:29]Read from MH i2c: 01 07 00 [11:52:29]MH_I2C_Read... [11:52:29]Read from MH i2c: 01 07 00 BA 27 00 00 00 00 00 FF 0F F6 [11:52:29]process_action close_receipt done [11:52:29]requested_data is exist [11:52:29]produce_requested_data [11:52:29]requested_item fm.sn is exist - process it [11:52:29]wFMCommunicate request_size=4 [11:52:29]MH_SAM_APDU [11:52:29]CAPDU: 80 11 00 00 [11:52:29]Write to MH i2c: E2 08 00 BB 27 80 11 00 00 00 00 00 00 5C [11:52:29]Write i2c OK [11:52:29]MH_I2C_Read... [11:52:29]Read from MH i2c: E2 [11:52:29]MH_I2C_Read... [11:52:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:29]Read from MH i2c: E2 17 00 [11:52:29]MH_I2C_Read... [11:52:29]Read from MH i2c: E2 17 00 BB 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B3 [11:52:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:52:29]wFMCommunicate OK [11:52:29]requested_item fd.num is exist - process it [11:52:29]SAM_PROTO_GetFieldsCounters [11:52:29]wFMCommunicate request_size=4 [11:52:29]MH_SAM_APDU [11:52:29]CAPDU: 80 13 00 00 [11:52:29]Write to MH i2c: E2 08 00 BC 27 80 13 00 00 00 00 00 00 5F [11:52:29]Write i2c OK [11:52:29]MH_I2C_Read... [11:52:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:29]Read from MH i2c: E2 [11:52:29]MH_I2C_Read... [11:52:29]Read from MH i2c: E2 62 00 [11:52:29]MH_I2C_Read... [11:52:29]Read from MH i2c: E2 62 00 BC 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 43 7B 03 00 0E 04 04 00 17 02 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 DF [11:52:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 43 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:52:29]wFMCommunicate OK [11:52:29]SAM_PROTO_GetFieldsCounters done [11:52:29]requested_item shift.num is exist - process it [11:52:29]requested_item shift.opened is exist - process it [11:52:29]req_shift_opened [11:52:29]FM_GetShiftState [11:52:29]SAM_PROTO_GetShiftState [11:52:29]wFMCommunicate request_size=4 [11:52:29]MH_SAM_APDU [11:52:29]CAPDU: 80 13 01 00 [11:52:29]Write to MH i2c: E2 08 00 BD 27 80 13 01 00 00 00 00 00 61 [11:52:29]Write i2c OK [11:52:29]MH_I2C_Read... [11:52:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:29]Read from MH i2c: E2 [11:52:29]MH_I2C_Read... [11:52:29]Read from MH i2c: E2 0E 00 [11:52:30]MH_I2C_Read... [11:52:30]Read from MH i2c: E2 0E 00 BD 27 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 28 [11:52:30]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [11:52:30]wFMCommunicate OK [11:52:30]SAM_PROTO_GetShiftState done [11:52:30]FM_GetShiftState done [11:52:30]req_shift_opened done [11:52:30]requested_item shift.open_date is exist - process it [11:52:30]req_shift_open_date [11:52:30]req_shift_open_date done [11:52:30]produce_requested_data done [11:52:30]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228163,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [11:52:30]process_action_free close_receipt [11:52:30]json_value_free [11:52:30]json_value_free done [11:52:30]process_json_proto returns [11:52:30]Send response to host [11:52:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228163,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [11:52:30]free response buf [11:52:30]execute_script done [11:52:30]execute_script returns [11:52:30]free content buf [11:52:30]Sock 9.Close socket [11:52:30]Sock 9.Thread stoped [11:52:33]OFD Sender: No OFD packet to send [11:52:38]OFD Sender: No OFD packet to send [11:52:43]OFD Sender: No OFD packet to send [11:52:48]OFD Sender: No OFD packet to send [11:52:53]OFD Sender: No OFD packet to send [11:52:58]OFD Sender: No OFD packet to send [11:53:03]OFD Sender: No OFD packet to send [11:53:08]OFD Sender: No OFD packet to send [11:53:13]OFD Sender: No OFD packet to send [11:53:18]OFD Sender: No OFD packet to send [11:53:23]OFD Sender: No OFD packet to send [11:53:28]OFD Sender: No OFD packet to send [11:53:33]OFD Sender: No OFD packet to send [11:53:38]OFD Sender: No OFD packet to send [11:53:43]OFD Sender: No OFD packet to send [11:53:48]accept exits with 7 [11:53:48]New connection [11:53:48]New thread 3067137380 created [11:53:48]Thread 3066994020 joined [11:53:48]Waiting for new connection... [11:53:48] Sock 7.Parse request [11:53:48]Sock 7.Check first char [11:53:48]Sock 7.First char is OK [11:53:48]request: POST /json_proto HTTP/1.0 [11:53:48]Method: POST [11:53:48]URL: /json_proto [11:53:48]Method is POST - this is cgi request [11:53:48]url: /json_proto [11:53:48]query_string will be loaded in cgi processing [11:53:48]execute_cgi json_proto POST (null) [11:53:48]execute_cgi path=json_proto method=POST [11:53:48]POST find Content-Length [11:53:48]Host: 172.17.44.195:8080 [11:53:48]Content-Length: 678 [11:53:48]Content-Type: application/json [11:53:48] [11:53:48]POST finish read [11:53:48]Found Content-Length = 678 [11:53:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964597", "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" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:48]execute_script... [11:53: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)1964597", "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" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:48]POST & json_proto [11:53:48]process_json_proto [11:53:48]json parsed OK: [11:53:48]protocol is kg_v1.0 [11:53:48]action value=close_receipt [11:53:48]process_action close_receipt [11:53:48]cmd_close_receipt [11:53:48]MH_GetDate [11:53:48]Write to MH i2c: F0 00 00 BE 27 D4 [11:53:48]Write i2c OK [11:53:48]MH_I2C_Read... [11:53:48]Read from MH i2c: F0 [11:53:48]MH_I2C_Read... [11:53:48]Read from MH i2c: F0 09 00 [11:53:48]MH_I2C_Read... [11:53:48]Read from MH i2c: F0 09 00 BE 27 00 50 92 17 67 82 C9 CF 66 BD [11:53:48]GetLastDocTimeStamp 1729597949 [11:53:48]current date 1729598032 [11:53:48]FM_GetShiftState [11:53:48]SAM_PROTO_GetShiftState [11:53:48]wFMCommunicate request_size=4 [11:53:48]MH_SAM_APDU [11:53:48]CAPDU: 80 13 01 00 [11:53:48]Write to MH i2c: E2 08 00 BF 27 80 13 01 00 00 00 00 00 63 [11:53:48]Write i2c OK [11:53:48]MH_I2C_Read... [11:53:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:48]Read from MH i2c: E2 [11:53:48]MH_I2C_Read... [11:53:48]Read from MH i2c: E2 0E 00 [11:53:48]MH_I2C_Read... [11:53:48]Read from MH i2c: E2 0E 00 BF 27 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 2A [11:53:48]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [11:53:48]wFMCommunicate OK [11:53:48]SAM_PROTO_GetShiftState done [11:53:48]FM_GetShiftState done [11:53:48]opened in 1729555538 [11:53:48]opened+sec_in_day 1729641938 [11:53:48]quantity*price = 34052 [11:53:48]sum+1 = 34053 [11:53:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.16 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 128 22.10.2024 11:53 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228164 ФПД: 166785849537583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115352&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228164&fm=166785849537583&tin=02508201610067®Number=0000000000091685&sum=34000 [11:53:49]StoreToDocumentArchive [11:53:49]shift 535 fd 228164 [11:53:49]save to /storage/0535/doc_00228164 [11:53:49]save last doc name /storage/0535/doc_00228164 to /storage/kkm_last_doc_name [11:53:49]save OK [11:53:49]Clear old archive folders... [11:53:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:53:49]tlvbuf is 0085B7C0 [11:53:49]SAM_PROTO_ClearQueue [11:53:49]wFMCommunicate request_size=4 [11:53:49]MH_SAM_APDU [11:53:49]CAPDU: 80 09 00 00 [11:53:49]Write to MH i2c: E2 08 00 CC 27 80 09 00 00 00 00 00 00 65 [11:53:49]Write i2c OK [11:53:49]MH_I2C_Read... [11:53:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:49]Read from MH i2c: E2 [11:53:49]MH_I2C_Read... [11:53:49]Read from MH i2c: E2 03 00 [11:53:49]MH_I2C_Read... [11:53:49]Read from MH i2c: E2 03 00 CC 27 00 90 00 67 [11:53:49]RAPDU: 90 00 [11:53:49]wFMCommunicate OK [11:53:49]SAM_PROTO_ClearQueue done [11:53:49]KKMCreateOFDPacket [11:53:49]OFDProtocolAddRootSTLVToBuf [11:53:49]FM_MakeSignedData [11:53:49]FM_MakeSignedData [11:53:49]SAM_PROTO_SignData [11:53:49]wFMCommunicate request_size=4 [11:53:49]MH_SAM_APDU [11:53:49]CAPDU: 80 0D 01 02 [11:53:49]Write to MH i2c: E2 08 00 CD 27 80 0D 01 02 00 00 00 00 6D [11:53:49]Write i2c OK [11:53:49]MH_I2C_Read... [11:53:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:49]Read from MH i2c: E2 [11:53:49]MH_I2C_Read... [11:53:49]Read from MH i2c: E2 03 00 [11:53:49]MH_I2C_Read... [11:53:49]Read from MH i2c: E2 03 00 CD 27 00 90 00 68 [11:53:49]RAPDU: 90 00 [11:53:49]wFMCommunicate OK [11:53:49]wFMCommunicate request_size=255 [11:53:49]MH_SAM_APDU [11:53: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 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 50 92 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 44 7B 03 00 35 04 06 00 97 [11:53:49]Write to MH i2c: E2 02 01 CE 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 50 92 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 44 7B 03 00 35 04 06 00 97 00 00 8F [11:53:49]Write i2c OK [11:53:49]MH_I2C_Read... [11:53:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:50]Read from MH i2c: E2 [11:53:50]MH_I2C_Read... [11:53:50]Read from MH i2c: E2 03 00 [11:53:50]MH_I2C_Read... [11:53:50]Read from MH i2c: E2 03 00 CE 27 00 90 00 69 [11:53:50]RAPDU: 90 00 [11:53:50]wFMCommunicate OK [11:53:50]wFMCommunicate request_size=10 [11:53:50]MH_SAM_APDU [11:53:50]CAPDU: 80 0D 02 02 05 B0 DB 50 B4 2F [11:53:50]Write to MH i2c: E2 0D 00 CF 27 80 0D 02 02 05 00 B0 DB 50 B4 2F 00 00 38 [11:53:50]Write i2c OK [11:53:50]MH_I2C_Read... [11:53:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:50]Read from MH i2c: E2 [11:53:50]MH_I2C_Read... [11:53:50]Read from MH i2c: E2 03 00 [11:53:50]MH_I2C_Read... [11:53:50]Read from MH i2c: E2 03 00 CF 27 00 90 00 6A [11:53:50]RAPDU: 90 00 [11:53:50]wFMCommunicate OK [11:53:50]wFMCommunicate request_size=4 [11:53:50]MH_SAM_APDU [11:53:50]CAPDU: 80 0D 03 02 [11:53:50]Write to MH i2c: E2 08 00 D0 27 80 0D 03 02 00 00 00 00 72 [11:53:50]Write i2c OK [11:53:50]MH_I2C_Read... [11:53:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:50]Read from MH i2c: E2 [11:53:50]MH_I2C_Read... [11:53:50]Read from MH i2c: E2 0B 00 [11:53:50]MH_I2C_Read... [11:53:50]Read from MH i2c: E2 0B 00 D0 27 00 25 90 59 B1 81 F8 78 FF 90 00 22 [11:53:50]RAPDU: 25 90 59 B1 81 F8 78 FF 90 00 [11:53:50]wFMCommunicate OK [11:53:50]SAM_PROTO_SignData done [11:53:50]FM_MakeSignedData done [11:53:50]CreateOFDProtocolMessage [11:53:50]wFMCommunicate request_size=4 [11:53:50]MH_SAM_APDU [11:53:50]CAPDU: 80 11 00 00 [11:53:50]Write to MH i2c: E2 08 00 D1 27 80 11 00 00 00 00 00 00 72 [11:53:50]Write i2c OK [11:53:50]MH_I2C_Read... [11:53:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:50]Read from MH i2c: E2 [11:53:50]MH_I2C_Read... [11:53:50]Read from MH i2c: E2 17 00 [11:53:50]MH_I2C_Read... [11:53:50]Read from MH i2c: E2 17 00 D1 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C9 [11:53:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:53:50]wFMCommunicate OK [11:53:50]CreateOFDProtocolMessage done [11:53:50]OFDSenderStorePacket 228164 [11:53:50]StoreOFDPacket docnum=228164 [11:53:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 1C 34 07 01 AB 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 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 50 92 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 44 7B 03 00 35 04 06 00 97 B0 DB 50 B4 2F 25 90 59 B1 81 F8 78 FF [11:53:50]CheckFolder [11:53:50]dirname=/storage/ofd_packets [11:53:50]CheckFolder done [11:53:50]ProducePacketName [11:53:50]name=ofd_packets/00228164 [11:53:50]NVStorageSaveData ofd_packets/00228164 [11:53:50]File name is /storage/ofd_packets/00228164 [11:53:50]Write 301 bytes [11:53:50]NVStorageSaveData done [11:53:50]OFDSenderStorePacket done [11:53:50]KKMCreateOFDPacket done [11:53:50]NVStorageSaveData kkm_last_timestamp [11:53:50]File name is /storage/kkm_last_timestamp [11:53:50]Write 4 bytes [11:53:50]NVStorageSaveData done [11:53:50]ExternCall_PrintAddStr [11:53:50]wPrintStart [11:53:50]Write to MH i2c: 01 00 00 D2 27 F9 [11:53:50]Write i2c OK [11:53:50]MH_I2C_Read... [11:53:50]Read from MH i2c: 01 [11:53:50]MH_I2C_Read... [11:53:50]Read from MH i2c: 01 07 00 [11:53:50]MH_I2C_Read... [11:53:50]Read from MH i2c: 01 07 00 D2 27 00 00 00 00 00 FF 0F 0E [11:53:50]RasterBufferAndPrint [11:53:50]line Счет N : (1)1964597 [11:53:50]line ИНН: 02508201610067 [11:53:50]line Контрольно-Кассовый Чек [11:53:50]line ПРОДАЖА [11:53:50]line ТРК (МРК, ГНК) : 53 [11:53:50]line Товар: 2710124130 [11:53:50]line Аи-92-К-5 [11:53:50]line 5.090 * 66.90 [11:53:50]line = 340.52 [11:53:50]line НДС 12% НСП 1% [11:53:50]line > о реализуемом товаре [11:53:50]line ОКРУГЛЕНИЕ: -0.52 [11:53:50]line ИТОГО: 340.00 [11:53:50]line Внесено: 340.00 [11:53:50]line СДАЧА: 0.00 [11:53:50]line НСП 1% : 3.01 [11:53:50]line НДС 12% : 36.16 [11:53:50]line Наличными: 340.00 [11:53:50]line Безнал.: 0.00 [11:53:50]line Место: АЗС № 133 "Партнер Нефть" [11:53:50]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:53:50]line СНО: Общий режим [11:53:50]line Чек 128 22.10.2024 11:53 [11:53:50]line Смена: 535 ФФД: 1.0 [11:53:50]line ЗНМ: 0300000091 [11:53:50]line РНМ: 0000000000091685 [11:53:50]line Версия ККМ: 001 [11:53:50]line ФМ: 0000000000871839 [11:53:50]line ФД: 228164 [11:53:50]line ФПД: 166785849537583 [11:53:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115352&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228164&fm=166785849537583&tin=02508201610067®Number=0000000000091685&sum=34000 [11:53:50]OFD Sender: Processing packet 228164 [packets to send 38, broken 37] [11:53:50]ProducePacketName [11:53:50]name=ofd_packets/00228164 [11:53:50]OFD Sender: To server: pG, [11:53:50]CommunicateWithHost lk.salyk.kg:30040 [11:53:50]ConnectInit lk.salyk.kg [11:53:50]written 0, free lines is 4095 [11:53:50]Connected sock=10 [11:53:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 1C 34 07 01 AB 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 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 50 92 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 44 7B 03 00 35 04 06 00 97 B0 DB 50 B4 2F 25 90 59 B1 81 F8 78 FF [11:53:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 B3 BA 47 00 21 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 44 7B 03 00 F4 03 04 00 48 3D 17 67 B6 04 01 00 00 95 EF 89 1C 86 C1 18 52 [11:53:50]CommunicateWithHost err = 0 [11:53:50]CheckOFDResponse [11:53:50]1017 (14) - 77093643461234 [11:53:50]1041 (16) - 0000000000871839 [11:53:50]1040 (4) - 228164 [11:53:50]1012 (4) - 22.10.2024 05:51 [11:53:50]1206 (1) - 0 [11:53:50]OFD Sender: Remove packet 228164 [11:53:50]ProducePacketName [11:53:50]name=ofd_packets/00228164 [11:53:50]NVStorageDeleteData [11:53:51]Write to MH i2c: 01 00 00 FC 27 23 [11:53:51]Write i2c OK [11:53:51]MH_I2C_Read... [11:53:51]Read from MH i2c: 01 [11:53:51]MH_I2C_Read... [11:53:51]Read from MH i2c: 01 07 00 [11:53:51]MH_I2C_Read... [11:53:51]Read from MH i2c: 01 07 00 FC 27 00 00 00 00 00 BE 0C F4 [11:53:51]RasterBufferAndPrint [11:53:51]line [11:53:51]line [11:53:51]line [11:53:51]line [11:53:51]line [11:53:51]written 0, free lines is 3267 [11:53:51]MH_Cut [11:53:51]Write to MH i2c: D1 01 00 03 28 01 FD [11:53:51]Write i2c OK [11:53:51]MH_I2C_Read... [11:53:51]Read from MH i2c: D1 [11:53:51]MH_I2C_Read... [11:53:51]Read from MH i2c: D1 01 00 [11:53:51]MH_I2C_Read... [11:53:51]Read from MH i2c: D1 01 00 03 28 00 FC [11:53:51]Write to MH i2c: 01 00 00 04 28 2C [11:53:51]Write i2c OK [11:53:51]MH_I2C_Read... [11:53:51]OFD Sender: No OFD packet to send [11:53:51]*** Cut start [11:53:51]*** Partial cut [11:53:51]*** CUTSNS_PIN = 1 [11:53:51]*** CUTSNS_PIN = 0 [11:53:52]*** Brake cut motor [11:53:52]Read from MH i2c: 01 [11:53:52]MH_I2C_Read... [11:53:52]*** Stop cut motor [11:53:52]*** Cut end [11:53:52]Read from MH i2c: 01 07 00 [11:53:52]MH_I2C_Read... [11:53:52]Read from MH i2c: 01 07 00 04 28 00 00 00 00 00 FF 0F 41 [11:53:52]process_action close_receipt done [11:53:52]requested_data is exist [11:53:52]produce_requested_data [11:53:52]requested_item fm.sn is exist - process it [11:53:52]wFMCommunicate request_size=4 [11:53:52]MH_SAM_APDU [11:53:52]CAPDU: 80 11 00 00 [11:53:52]Write to MH i2c: E2 08 00 05 28 80 11 00 00 00 00 00 00 A7 [11:53:52]Write i2c OK [11:53:52]MH_I2C_Read... [11:53:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:52]Read from MH i2c: E2 [11:53:52]MH_I2C_Read... [11:53:52]Read from MH i2c: E2 17 00 [11:53:52]MH_I2C_Read... [11:53:52]Read from MH i2c: E2 17 00 05 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FE [11:53:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:53:52]wFMCommunicate OK [11:53:52]requested_item fd.num is exist - process it [11:53:52]SAM_PROTO_GetFieldsCounters [11:53:52]wFMCommunicate request_size=4 [11:53:52]MH_SAM_APDU [11:53:52]CAPDU: 80 13 00 00 [11:53:52]Write to MH i2c: E2 08 00 06 28 80 13 00 00 00 00 00 00 AA [11:53:52]Write i2c OK [11:53:52]MH_I2C_Read... [11:53:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:52]Read from MH i2c: E2 [11:53:52]MH_I2C_Read... [11:53:52]Read from MH i2c: E2 62 00 [11:53:52]MH_I2C_Read... [11:53:52]Read from MH i2c: E2 62 00 06 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 44 7B 03 00 0E 04 04 00 17 02 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 2E [11:53:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 44 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:53:52]wFMCommunicate OK [11:53:52]SAM_PROTO_GetFieldsCounters done [11:53:52]requested_item shift.num is exist - process it [11:53:52]requested_item shift.opened is exist - process it [11:53:52]req_shift_opened [11:53:52]FM_GetShiftState [11:53:52]SAM_PROTO_GetShiftState [11:53:52]wFMCommunicate request_size=4 [11:53:52]MH_SAM_APDU [11:53:52]CAPDU: 80 13 01 00 [11:53:52]Write to MH i2c: E2 08 00 07 28 80 13 01 00 00 00 00 00 AC [11:53:52]Write i2c OK [11:53:52]MH_I2C_Read... [11:53:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:52]Read from MH i2c: E2 [11:53:52]MH_I2C_Read... [11:53:52]Read from MH i2c: E2 0E 00 [11:53:52]MH_I2C_Read... [11:53:52]Read from MH i2c: E2 0E 00 07 28 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 73 [11:53:52]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [11:53:52]wFMCommunicate OK [11:53:52]SAM_PROTO_GetShiftState done [11:53:52]FM_GetShiftState done [11:53:52]req_shift_opened done [11:53:52]requested_item shift.open_date is exist - process it [11:53:52]req_shift_open_date [11:53:52]req_shift_open_date done [11:53:52]produce_requested_data done [11:53:52]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228164,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [11:53:52]process_action_free close_receipt [11:53:52]json_value_free [11:53:52]json_value_free done [11:53:52]process_json_proto returns [11:53:52]Send response to host [11:53:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228164,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [11:53:52]free response buf [11:53:52]execute_script done [11:53:52]execute_script returns [11:53:52]free content buf [11:53:52]Sock 7.Close socket [11:53:52]Sock 7.Thread stoped [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:14]accept exits with 9 [11:55:14]New connection [11:55:14]New thread 3066994020 created [11:55:14]Thread 3067137380 joined [11:55:14]Waiting for new connection... [11:55:14] Sock 9.Parse request [11:55:14]Sock 9.Check first char [11:55:14]Sock 9.First char is OK [11:55:14]request: POST /json_proto HTTP/1.0 [11:55:14]Method: POST [11:55:14]URL: /json_proto [11:55:14]Method is POST - this is cgi request [11:55:14]url: /json_proto [11:55:14]query_string will be loaded in cgi processing [11:55:14]execute_cgi json_proto POST (null) [11:55:14]execute_cgi path=json_proto method=POST [11:55:14]POST find Content-Length [11:55:14]Host: 172.17.44.195:8080 [11:55:14]Content-Length: 678 [11:55:14]Content-Type: application/json [11:55:14] [11:55:14]POST finish read [11:55:14]Found Content-Length = 678 [11:55:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:14]execute_script... [11:55: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)1964599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:14]POST & json_proto [11:55:14]process_json_proto [11:55:14]json parsed OK: [11:55:14]protocol is kg_v1.0 [11:55:14]action value=close_receipt [11:55:14]process_action close_receipt [11:55:14]cmd_close_receipt [11:55:14]MH_GetDate [11:55:14]Write to MH i2c: F0 00 00 08 28 1F [11:55:14]Write i2c OK [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: F0 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: F0 09 00 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: F0 09 00 08 28 00 A6 92 17 67 82 C9 CF 66 5E [11:55:14]GetLastDocTimeStamp 1729598032 [11:55:14]current date 1729598118 [11:55:14]FM_GetShiftState [11:55:14]SAM_PROTO_GetShiftState [11:55:14]wFMCommunicate request_size=4 [11:55:14]MH_SAM_APDU [11:55:14]CAPDU: 80 13 01 00 [11:55:14]Write to MH i2c: E2 08 00 09 28 80 13 01 00 00 00 00 00 AE [11:55:14]Write i2c OK [11:55:14]MH_I2C_Read... [11:55:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:14]Read from MH i2c: E2 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 0E 00 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 0E 00 09 28 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 75 [11:55:14]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [11:55:14]wFMCommunicate OK [11:55:14]SAM_PROTO_GetShiftState done [11:55:14]FM_GetShiftState done [11:55:14]opened in 1729555538 [11:55:14]opened+sec_in_day 1729641938 [11:55:14]quantity*price = 50041 [11:55:14]sum+1 = 50042 [11:55:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 129 22.10.2024 11:55 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228165 ФПД: 202145670838792 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115518&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228165&fm=202145670838792&tin=02508201610067®Number=0000000000091685&sum=50000 [11:55:15]StoreToDocumentArchive [11:55:15]shift 535 fd 228165 [11:55:15]save to /storage/0535/doc_00228165 [11:55:15]save last doc name /storage/0535/doc_00228165 to /storage/kkm_last_doc_name [11:55:15]save OK [11:55:15]Clear old archive folders... [11:55:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:55:15]tlvbuf is 00875470 [11:55:15]SAM_PROTO_ClearQueue [11:55:15]wFMCommunicate request_size=4 [11:55:15]MH_SAM_APDU [11:55:15]CAPDU: 80 09 00 00 [11:55:15]Write to MH i2c: E2 08 00 16 28 80 09 00 00 00 00 00 00 B0 [11:55:15]Write i2c OK [11:55:15]MH_I2C_Read... [11:55:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:15]Read from MH i2c: E2 [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: E2 03 00 [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: E2 03 00 16 28 00 90 00 B2 [11:55:15]RAPDU: 90 00 [11:55:15]wFMCommunicate OK [11:55:15]SAM_PROTO_ClearQueue done [11:55:15]KKMCreateOFDPacket [11:55:15]OFDProtocolAddRootSTLVToBuf [11:55:15]FM_MakeSignedData [11:55:15]FM_MakeSignedData [11:55:15]SAM_PROTO_SignData [11:55:15]wFMCommunicate request_size=4 [11:55:15]MH_SAM_APDU [11:55:15]CAPDU: 80 0D 01 02 [11:55:15]Write to MH i2c: E2 08 00 17 28 80 0D 01 02 00 00 00 00 B8 [11:55:15]Write i2c OK [11:55:15]MH_I2C_Read... [11:55:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:15]Read from MH i2c: E2 [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: E2 03 00 [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: E2 03 00 17 28 00 90 00 B3 [11:55:15]RAPDU: 90 00 [11:55:15]wFMCommunicate OK [11:55:15]wFMCommunicate request_size=255 [11:55:15]MH_SAM_APDU [11:55: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 A6 92 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 45 7B 03 00 35 04 06 00 B7 [11:55:15]Write to MH i2c: E2 02 01 18 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 A6 92 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 45 7B 03 00 35 04 06 00 B7 00 00 19 [11:55:15]Write i2c OK [11:55:15]MH_I2C_Read... [11:55:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:15]Read from MH i2c: E2 [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: E2 03 00 [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: E2 03 00 18 28 00 90 00 B4 [11:55:15]RAPDU: 90 00 [11:55:15]wFMCommunicate OK [11:55:15]wFMCommunicate request_size=10 [11:55:15]MH_SAM_APDU [11:55:15]CAPDU: 80 0D 02 02 05 D9 B4 E7 3A 08 [11:55:15]Write to MH i2c: E2 0D 00 19 28 80 0D 02 02 05 00 D9 B4 E7 3A 08 00 00 7B [11:55:15]Write i2c OK [11:55:15]MH_I2C_Read... [11:55:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:15]Read from MH i2c: E2 [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: E2 03 00 [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: E2 03 00 19 28 00 90 00 B5 [11:55:15]RAPDU: 90 00 [11:55:15]wFMCommunicate OK [11:55:15]wFMCommunicate request_size=4 [11:55:15]MH_SAM_APDU [11:55:15]CAPDU: 80 0D 03 02 [11:55:15]Write to MH i2c: E2 08 00 1A 28 80 0D 03 02 00 00 00 00 BD [11:55:15]Write i2c OK [11:55:15]MH_I2C_Read... [11:55:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:15]Read from MH i2c: E2 [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: E2 0B 00 [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: E2 0B 00 1A 28 00 40 5A 1B 86 05 D0 1D 32 90 00 1D [11:55:15]RAPDU: 40 5A 1B 86 05 D0 1D 32 90 00 [11:55:15]wFMCommunicate OK [11:55:15]SAM_PROTO_SignData done [11:55:15]FM_MakeSignedData done [11:55:15]CreateOFDProtocolMessage [11:55:15]wFMCommunicate request_size=4 [11:55:15]MH_SAM_APDU [11:55:15]CAPDU: 80 11 00 00 [11:55:15]Write to MH i2c: E2 08 00 1B 28 80 11 00 00 00 00 00 00 BD [11:55:15]Write i2c OK [11:55:15]MH_I2C_Read... [11:55:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:15]Read from MH i2c: E2 [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: E2 17 00 [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: E2 17 00 1B 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 14 [11:55:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:55:15]wFMCommunicate OK [11:55:15]CreateOFDProtocolMessage done [11:55:15]OFDSenderStorePacket 228165 [11:55:15]StoreOFDPacket docnum=228165 [11:55:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 DE 60 07 01 27 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 A6 92 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 45 7B 03 00 35 04 06 00 B7 D9 B4 E7 3A 08 40 5A 1B 86 05 D0 1D 32 [11:55:15]CheckFolder [11:55:15]dirname=/storage/ofd_packets [11:55:15]CheckFolder done [11:55:15]ProducePacketName [11:55:15]name=ofd_packets/00228165 [11:55:15]NVStorageSaveData ofd_packets/00228165 [11:55:15]File name is /storage/ofd_packets/00228165 [11:55:15]Write 301 bytes [11:55:15]NVStorageSaveData done [11:55:15]OFDSenderStorePacket done [11:55:15]KKMCreateOFDPacket done [11:55:15]NVStorageSaveData kkm_last_timestamp [11:55:15]File name is /storage/kkm_last_timestamp [11:55:15]Write 4 bytes [11:55:15]NVStorageSaveData done [11:55:15]OFD Sender: Processing packet 228165 [packets to send 38, broken 37] [11:55:15]ProducePacketName [11:55:15]name=ofd_packets/00228165 [11:55:15]OFD Sender: To server: pG, [11:55:15]CommunicateWithHost lk.salyk.kg:30040 [11:55:15]ConnectInit lk.salyk.kg [11:55:15]ExternCall_PrintAddStr [11:55:15]wPrintStart [11:55:15]Write to MH i2c: 01 00 00 1C 28 44 [11:55:15]Write i2c OK [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: 01 [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: 01 07 00 [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: 01 07 00 1C 28 00 00 00 00 00 FF 0F 59 [11:55:15]RasterBufferAndPrint [11:55:15]line Счет N : (1)1964599 [11:55:15]line ИНН: 02508201610067 [11:55:15]line Контрольно-Кассовый Чек [11:55:15]line ПРОДАЖА [11:55:15]line ТРК (МРК, ГНК) : 33 [11:55:15]line Товар: 2710124130 [11:55:15]line Аи-92-К-5 [11:55:15]line 7.480 * 66.90 [11:55:15]line = 500.41 [11:55:15]line НДС 12% НСП 1% [11:55:15]line > о реализуемом товаре [11:55:15]line ОКРУГЛЕНИЕ: -0.41 [11:55:15]line ИТОГО: 500.00 [11:55:15]line Внесено: 500.00 [11:55:15]line СДАЧА: 0.00 [11:55:15]line НСП 1% : 4.43 [11:55:15]line НДС 12% : 53.14 [11:55:16]line Наличными: 500.00 [11:55:16]line Безнал.: 0.00 [11:55:16]line Место: АЗС № 133 "Партнер Нефть" [11:55:16]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:55:16]line СНО: Общий режим [11:55:16]line Чек 129 22.10.2024 11:55 [11:55:16]line Смена: 535 ФФД: 1.0 [11:55:16]line ЗНМ: 0300000091 [11:55:16]line РНМ: 0000000000091685 [11:55:16]line Версия ККМ: 001 [11:55:16]line ФМ: 0000000000871839 [11:55:16]line ФД: 228165 [11:55:16]line ФПД: 202145670838792 [11:55:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115518&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228165&fm=202145670838792&tin=02508201610067®Number=0000000000091685&sum=50000 [11:55:16]Connected sock=11 [11:55:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 DE 60 07 01 27 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 A6 92 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 45 7B 03 00 35 04 06 00 B7 D9 B4 E7 3A 08 40 5A 1B 86 05 D0 1D 32 [11:55:16]written 0, free lines is 4095 [11:55:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 F3 F0 47 00 56 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 45 7B 03 00 F4 03 04 00 9E 3D 17 67 B6 04 01 00 00 F1 FF 23 61 86 96 5E 5C [11:55:16]CommunicateWithHost err = 0 [11:55:16]CheckOFDResponse [11:55:16]1017 (14) - 77093643461234 [11:55:16]1041 (16) - 0000000000871839 [11:55:16]1040 (4) - 228165 [11:55:16]1012 (4) - 22.10.2024 05:52 [11:55:16]1206 (1) - 0 [11:55:16]OFD Sender: Remove packet 228165 [11:55:16]ProducePacketName [11:55:16]name=ofd_packets/00228165 [11:55:16]NVStorageDeleteData [11:55:16]Write to MH i2c: 01 00 00 46 28 6E [11:55:16]Write i2c OK [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: 01 [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: 01 07 00 [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: 01 07 00 46 28 00 00 00 00 00 C0 0C 41 [11:55:16]RasterBufferAndPrint [11:55:16]line [11:55:16]line [11:55:16]line [11:55:16]line [11:55:16]line [11:55:16]written 0, free lines is 3269 [11:55:16]MH_Cut [11:55:16]Write to MH i2c: D1 01 00 4D 28 01 47 [11:55:16]Write i2c OK [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: D1 [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: D1 01 00 [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: D1 01 00 4D 28 00 46 [11:55:16]Write to MH i2c: 01 00 00 4E 28 76 [11:55:16]Write i2c OK [11:55:16]MH_I2C_Read... [11:55:17]OFD Sender: No OFD packet to send [11:55:17]*** Cut start [11:55:17]*** Partial cut [11:55:17]*** CUTSNS_PIN = 1 [11:55:17]*** CUTSNS_PIN = 0 [11:55:17]*** Brake cut motor [11:55:18]Read from MH i2c: 01 [11:55:18]MH_I2C_Read... [11:55:18]*** Stop cut motor [11:55:18]*** Cut end [11:55:18]Read from MH i2c: 01 07 00 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: 01 07 00 4E 28 00 00 00 00 00 FF 0F 8B [11:55:18]process_action close_receipt done [11:55:18]requested_data is exist [11:55:18]produce_requested_data [11:55:18]requested_item fm.sn is exist - process it [11:55:18]wFMCommunicate request_size=4 [11:55:18]MH_SAM_APDU [11:55:18]CAPDU: 80 11 00 00 [11:55:18]Write to MH i2c: E2 08 00 4F 28 80 11 00 00 00 00 00 00 F1 [11:55:18]Write i2c OK [11:55:18]MH_I2C_Read... [11:55:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:18]Read from MH i2c: E2 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: E2 17 00 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: E2 17 00 4F 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 48 [11:55:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:55:18]wFMCommunicate OK [11:55:18]requested_item fd.num is exist - process it [11:55:18]SAM_PROTO_GetFieldsCounters [11:55:18]wFMCommunicate request_size=4 [11:55:18]MH_SAM_APDU [11:55:18]CAPDU: 80 13 00 00 [11:55:18]Write to MH i2c: E2 08 00 50 28 80 13 00 00 00 00 00 00 F4 [11:55:18]Write i2c OK [11:55:18]MH_I2C_Read... [11:55:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:18]Read from MH i2c: E2 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: E2 62 00 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: E2 62 00 50 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 45 7B 03 00 0E 04 04 00 17 02 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 7C [11:55:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 45 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:55:18]wFMCommunicate OK [11:55:18]SAM_PROTO_GetFieldsCounters done [11:55:18]requested_item shift.num is exist - process it [11:55:18]requested_item shift.opened is exist - process it [11:55:18]req_shift_opened [11:55:18]FM_GetShiftState [11:55:18]SAM_PROTO_GetShiftState [11:55:18]wFMCommunicate request_size=4 [11:55:18]MH_SAM_APDU [11:55:18]CAPDU: 80 13 01 00 [11:55:18]Write to MH i2c: E2 08 00 51 28 80 13 01 00 00 00 00 00 F6 [11:55:18]Write i2c OK [11:55:18]MH_I2C_Read... [11:55:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:18]Read from MH i2c: E2 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: E2 0E 00 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: E2 0E 00 51 28 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 BD [11:55:18]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [11:55:18]wFMCommunicate OK [11:55:18]SAM_PROTO_GetShiftState done [11:55:18]FM_GetShiftState done [11:55:18]req_shift_opened done [11:55:18]requested_item shift.open_date is exist - process it [11:55:18]req_shift_open_date [11:55:18]req_shift_open_date done [11:55:18]produce_requested_data done [11:55:18]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228165,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [11:55:18]process_action_free close_receipt [11:55:18]json_value_free [11:55:18]json_value_free done [11:55:18]process_json_proto returns [11:55:18]Send response to host [11:55:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228165,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [11:55:18]free response buf [11:55:18]execute_script done [11:55:18]execute_script returns [11:55:18]free content buf [11:55:18]Sock 9.Close socket [11:55:18]Sock 9.Thread stoped [11:55:18]accept exits with 7 [11:55:18]New connection [11:55:18]New thread 3067137380 created [11:55:18]Thread 3066994020 joined [11:55:18]Waiting for new connection... [11:55:18] Sock 7.Parse request [11:55:18]Sock 7.Check first char [11:55:18]Sock 7.First char is OK [11:55:18]request: POST /json_proto HTTP/1.0 [11:55:18]Method: POST [11:55:18]URL: /json_proto [11:55:18]Method is POST - this is cgi request [11:55:18]url: /json_proto [11:55:18]query_string will be loaded in cgi processing [11:55:18]execute_cgi json_proto POST (null) [11:55:18]execute_cgi path=json_proto method=POST [11:55:18]POST find Content-Length [11:55:18]Host: 172.17.44.195:8080 [11:55:18]Content-Length: 676 [11:55:18]Content-Type: application/json [11:55:18] [11:55:18]POST finish read [11:55:18]Found Content-Length = 676 [11:55:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964600", "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" : 76.20, "quantity" : 11.820, "sum" : 900.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:18]execute_script... [11:55: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)1964600", "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" : 76.20, "quantity" : 11.820, "sum" : 900.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:18]POST & json_proto [11:55:18]process_json_proto [11:55:18]json parsed OK: [11:55:18]protocol is kg_v1.0 [11:55:18]action value=close_receipt [11:55:18]process_action close_receipt [11:55:18]cmd_close_receipt [11:55:18]MH_GetDate [11:55:18]Write to MH i2c: F0 00 00 52 28 69 [11:55:18]Write i2c OK [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: F0 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: F0 09 00 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: F0 09 00 52 28 00 AA 92 17 67 82 C9 CF 66 AC [11:55:18]GetLastDocTimeStamp 1729598118 [11:55:18]current date 1729598122 [11:55:18]FM_GetShiftState [11:55:18]SAM_PROTO_GetShiftState [11:55:18]wFMCommunicate request_size=4 [11:55:18]MH_SAM_APDU [11:55:18]CAPDU: 80 13 01 00 [11:55:18]Write to MH i2c: E2 08 00 53 28 80 13 01 00 00 00 00 00 F8 [11:55:18]Write i2c OK [11:55:18]MH_I2C_Read... [11:55:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:18]Read from MH i2c: E2 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: E2 0E 00 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: E2 0E 00 53 28 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 BF [11:55:18]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [11:55:18]wFMCommunicate OK [11:55:18]SAM_PROTO_GetShiftState done [11:55:18]FM_GetShiftState done [11:55:18]opened in 1729555538 [11:55:18]opened+sec_in_day 1729641938 [11:55:18]quantity*price = 90068 [11:55:18]sum+1 = 90069 [11:55:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.65 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 130 22.10.2024 11:55 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228166 ФПД: 58102904995228 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115522&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228166&fm=58102904995228&tin=02508201610067®Number=0000000000091685&sum=90000 [11:55:20]StoreToDocumentArchive [11:55:20]shift 535 fd 228166 [11:55:20]save to /storage/0535/doc_00228166 [11:55:20]save last doc name /storage/0535/doc_00228166 to /storage/kkm_last_doc_name [11:55:20]save OK [11:55:20]Clear old archive folders... [11:55:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:55:20]tlvbuf is B6DD55F0 [11:55:20]SAM_PROTO_ClearQueue [11:55:20]wFMCommunicate request_size=4 [11:55:20]MH_SAM_APDU [11:55:20]CAPDU: 80 09 00 00 [11:55:20]Write to MH i2c: E2 08 00 60 28 80 09 00 00 00 00 00 00 FA [11:55:20]Write i2c OK [11:55:20]MH_I2C_Read... [11:55:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:20]Read from MH i2c: E2 [11:55:20]MH_I2C_Read... [11:55:20]Read from MH i2c: E2 03 00 [11:55:20]MH_I2C_Read... [11:55:20]Read from MH i2c: E2 03 00 60 28 00 90 00 FC [11:55:20]RAPDU: 90 00 [11:55:20]wFMCommunicate OK [11:55:20]SAM_PROTO_ClearQueue done [11:55:20]KKMCreateOFDPacket [11:55:20]OFDProtocolAddRootSTLVToBuf [11:55:20]FM_MakeSignedData [11:55:20]FM_MakeSignedData [11:55:20]SAM_PROTO_SignData [11:55:20]wFMCommunicate request_size=4 [11:55:20]MH_SAM_APDU [11:55:20]CAPDU: 80 0D 01 02 [11:55:20]Write to MH i2c: E2 08 00 61 28 80 0D 01 02 00 00 00 00 02 [11:55:20]Write i2c OK [11:55:20]MH_I2C_Read... [11:55:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:20]Read from MH i2c: E2 [11:55:20]MH_I2C_Read... [11:55:20]Read from MH i2c: E2 03 00 [11:55:20]MH_I2C_Read... [11:55:20]Read from MH i2c: E2 03 00 61 28 00 90 00 FD [11:55:20]RAPDU: 90 00 [11:55:20]wFMCommunicate OK [11:55:20]wFMCommunicate request_size=255 [11:55:20]MH_SAM_APDU [11:55: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 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 AA 92 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 46 7B 03 00 35 04 06 00 34 D8 23 03 [11:55:20]Write to MH i2c: E2 02 01 62 28 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 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 AA 92 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 46 7B 03 00 35 04 06 00 34 D8 23 03 00 00 A3 [11:55:20]Write i2c OK [11:55:20]MH_I2C_Read... [11:55:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:20]Read from MH i2c: E2 [11:55:20]MH_I2C_Read... [11:55:20]Read from MH i2c: E2 03 00 [11:55:20]MH_I2C_Read... [11:55:20]Read from MH i2c: E2 03 00 62 28 00 90 00 FE [11:55:20]RAPDU: 90 00 [11:55:20]wFMCommunicate OK [11:55:20]wFMCommunicate request_size=7 [11:55:20]MH_SAM_APDU [11:55:20]CAPDU: 80 0D 02 02 02 3D 9C [11:55:20]Write to MH i2c: E2 0A 00 63 28 80 0D 02 02 02 00 3D 9C 00 00 E2 [11:55:20]Write i2c OK [11:55:20]MH_I2C_Read... [11:55:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:20]Read from MH i2c: E2 [11:55:20]MH_I2C_Read... [11:55:20]Read from MH i2c: E2 03 00 [11:55:20]MH_I2C_Read... [11:55:20]Read from MH i2c: E2 03 00 63 28 00 90 00 FF [11:55:20]RAPDU: 90 00 [11:55:20]wFMCommunicate OK [11:55:20]wFMCommunicate request_size=4 [11:55:20]MH_SAM_APDU [11:55:20]CAPDU: 80 0D 03 02 [11:55:20]Write to MH i2c: E2 08 00 64 28 80 0D 03 02 00 00 00 00 07 [11:55:20]Write i2c OK [11:55:20]MH_I2C_Read... [11:55:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:20]Read from MH i2c: E2 [11:55:20]MH_I2C_Read... [11:55:20]Read from MH i2c: E2 0B 00 [11:55:20]MH_I2C_Read... [11:55:20]Read from MH i2c: E2 0B 00 64 28 00 75 F6 4E D1 6C 2E DC DC 90 00 E4 [11:55:20]RAPDU: 75 F6 4E D1 6C 2E DC DC 90 00 [11:55:20]wFMCommunicate OK [11:55:20]SAM_PROTO_SignData done [11:55:20]FM_MakeSignedData done [11:55:20]CreateOFDProtocolMessage [11:55:20]wFMCommunicate request_size=4 [11:55:20]MH_SAM_APDU [11:55:20]CAPDU: 80 11 00 00 [11:55:20]Write to MH i2c: E2 08 00 65 28 80 11 00 00 00 00 00 00 07 [11:55:20]Write i2c OK [11:55:20]MH_I2C_Read... [11:55:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:20]Read from MH i2c: E2 [11:55:20]MH_I2C_Read... [11:55:20]Read from MH i2c: E2 17 00 [11:55:20]MH_I2C_Read... [11:55:20]Read from MH i2c: E2 17 00 65 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5E [11:55:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:55:20]wFMCommunicate OK [11:55:20]CreateOFDProtocolMessage done [11:55:20]OFDSenderStorePacket 228166 [11:55:20]StoreOFDPacket docnum=228166 [11:55:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 66 FC 04 01 EE 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 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 AA 92 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 46 7B 03 00 35 04 06 00 34 D8 23 03 3D 9C 75 F6 4E D1 6C 2E DC DC [11:55:21]CheckFolder [11:55:21]dirname=/storage/ofd_packets [11:55:21]CheckFolder done [11:55:21]ProducePacketName [11:55:21]name=ofd_packets/00228166 [11:55:21]NVStorageSaveData ofd_packets/00228166 [11:55:21]File name is /storage/ofd_packets/00228166 [11:55:21]Write 298 bytes [11:55:21]NVStorageSaveData done [11:55:21]OFDSenderStorePacket done [11:55:21]KKMCreateOFDPacket done [11:55:21]NVStorageSaveData kkm_last_timestamp [11:55:21]File name is /storage/kkm_last_timestamp [11:55:21]Write 4 bytes [11:55:21]NVStorageSaveData done [11:55:21]ExternCall_PrintAddStr [11:55:21]wPrintStart [11:55:21]Write to MH i2c: 01 00 00 66 28 8E [11:55:21]Write i2c OK [11:55:21]MH_I2C_Read... [11:55:21]Read from MH i2c: 01 [11:55:21]MH_I2C_Read... [11:55:21]Read from MH i2c: 01 07 00 [11:55:21]MH_I2C_Read... [11:55:21]Read from MH i2c: 01 07 00 66 28 00 00 00 00 00 FF 0F A3 [11:55:21]RasterBufferAndPrint [11:55:21]line Счет N : (1)1964600 [11:55:21]line ИНН: 02508201610067 [11:55:21]line Контрольно-Кассовый Чек [11:55:21]line ПРОДАЖА [11:55:21]line ТРК (МРК, ГНК) : 21 [11:55:21]line Товар: 2710194210 [11:55:21]line ДТ-К-5 [11:55:21]line 11.820 * 76.20 [11:55:21]line = 900.68 [11:55:21]line НДС 12% НСП 1% [11:55:21]line > о реализуемом товаре [11:55:21]line ОКРУГЛЕНИЕ: -0.68 [11:55:21]line ИТОГО: 900.00 [11:55:21]line Внесено: 900.00 [11:55:21]line СДАЧА: 0.00 [11:55:21]line НСП 1% : 7.97 [11:55:21]line НДС 12% : 95.65 [11:55:21]line Наличными: 900.00 [11:55:21]line Безнал.: 0.00 [11:55:21]line Место: АЗС № 133 "Партнер Нефть" [11:55:21]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:55:21]line СНО: Общий режим [11:55:21]line Чек 130 22.10.2024 11:55 [11:55:21]line Смена: 535 ФФД: 1.0 [11:55:21]line ЗНМ: 0300000091 [11:55:21]line РНМ: 0000000000091685 [11:55:21]line Версия ККМ: 001 [11:55:21]line ФМ: 0000000000871839 [11:55:21]line ФД: 228166 [11:55:21]line ФПД: 58102904995228 [11:55:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115522&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228166&fm=58102904995228&tin=02508201610067®Number=0000000000091685&sum=90000 [11:55:21]written 0, free lines is 4095 [11:55:21]OFD Sender: Processing packet 228166 [packets to send 38, broken 37] [11:55:21]ProducePacketName [11:55:21]name=ofd_packets/00228166 [11:55:21]OFD Sender: To server: pG, [11:55:21]CommunicateWithHost lk.salyk.kg:30040 [11:55:21]ConnectInit lk.salyk.kg [11:55:21]Connected sock=10 [11:55:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 66 FC 04 01 EE 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 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 AA 92 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 46 7B 03 00 35 04 06 00 34 D8 23 03 3D 9C 75 F6 4E D1 6C 2E DC DC [11:55:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 E8 06 47 00 4A 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 46 7B 03 00 F4 03 04 00 A3 3D 17 67 B6 04 01 00 00 3F A3 B6 C0 02 33 A6 01 [11:55:21]CommunicateWithHost err = 0 [11:55:21]CheckOFDResponse [11:55:21]1017 (14) - 77093643461234 [11:55:21]1041 (16) - 0000000000871839 [11:55:21]1040 (4) - 228166 [11:55:21]1012 (4) - 22.10.2024 05:52 [11:55:21]1206 (1) - 0 [11:55:21]OFD Sender: Remove packet 228166 [11:55:21]ProducePacketName [11:55:21]name=ofd_packets/00228166 [11:55:21]NVStorageDeleteData [11:55:21]Write to MH i2c: 01 00 00 90 28 B8 [11:55:21]Write i2c OK [11:55:21]MH_I2C_Read... [11:55:21]Read from MH i2c: 01 [11:55:21]MH_I2C_Read... [11:55:21]Read from MH i2c: 01 07 00 [11:55:21]MH_I2C_Read... [11:55:21]Read from MH i2c: 01 07 00 90 28 00 00 00 00 00 C6 0C 91 [11:55:21]RasterBufferAndPrint [11:55:21]line [11:55:21]line [11:55:21]line [11:55:21]line [11:55:21]line [11:55:21]written 0, free lines is 3282 [11:55:21]MH_Cut [11:55:21]Write to MH i2c: D1 01 00 97 28 01 91 [11:55:21]Write i2c OK [11:55:21]MH_I2C_Read... [11:55:21]Read from MH i2c: D1 [11:55:21]MH_I2C_Read... [11:55:21]Read from MH i2c: D1 01 00 [11:55:21]MH_I2C_Read... [11:55:21]Read from MH i2c: D1 01 00 97 28 00 90 [11:55:21]Write to MH i2c: 01 00 00 98 28 C0 [11:55:21]Write i2c OK [11:55:21]MH_I2C_Read... [11:55:21]OFD Sender: No OFD packet to send [11:55:22]*** Cut start [11:55:22]*** Partial cut [11:55:22]*** CUTSNS_PIN = 1 [11:55:22]*** CUTSNS_PIN = 0 [11:55:22]*** Brake cut motor [11:55:22]Read from MH i2c: 01 [11:55:22]MH_I2C_Read... [11:55:22]*** Stop cut motor [11:55:22]*** Cut end [11:55:22]Read from MH i2c: 01 07 00 [11:55:22]MH_I2C_Read... [11:55:22]Read from MH i2c: 01 07 00 98 28 00 00 00 00 00 FF 0F D5 [11:55:22]process_action close_receipt done [11:55:22]requested_data is exist [11:55:22]produce_requested_data [11:55:22]requested_item fm.sn is exist - process it [11:55:22]wFMCommunicate request_size=4 [11:55:22]MH_SAM_APDU [11:55:22]CAPDU: 80 11 00 00 [11:55:22]Write to MH i2c: E2 08 00 99 28 80 11 00 00 00 00 00 00 3B [11:55:22]Write i2c OK [11:55:22]MH_I2C_Read... [11:55:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:22]Read from MH i2c: E2 [11:55:22]MH_I2C_Read... [11:55:22]Read from MH i2c: E2 17 00 [11:55:22]MH_I2C_Read... [11:55:22]Read from MH i2c: E2 17 00 99 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 92 [11:55:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:55:22]wFMCommunicate OK [11:55:22]requested_item fd.num is exist - process it [11:55:22]SAM_PROTO_GetFieldsCounters [11:55:22]wFMCommunicate request_size=4 [11:55:22]MH_SAM_APDU [11:55:22]CAPDU: 80 13 00 00 [11:55:22]Write to MH i2c: E2 08 00 9A 28 80 13 00 00 00 00 00 00 3E [11:55:22]Write i2c OK [11:55:22]MH_I2C_Read... [11:55:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:23]Read from MH i2c: E2 [11:55:23]MH_I2C_Read... [11:55:23]Read from MH i2c: E2 62 00 [11:55:23]MH_I2C_Read... [11:55:23]Read from MH i2c: E2 62 00 9A 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 46 7B 03 00 0E 04 04 00 17 02 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 CA [11:55:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 46 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:55:23]wFMCommunicate OK [11:55:23]SAM_PROTO_GetFieldsCounters done [11:55:23]requested_item shift.num is exist - process it [11:55:23]requested_item shift.opened is exist - process it [11:55:23]req_shift_opened [11:55:23]FM_GetShiftState [11:55:23]SAM_PROTO_GetShiftState [11:55:23]wFMCommunicate request_size=4 [11:55:23]MH_SAM_APDU [11:55:23]CAPDU: 80 13 01 00 [11:55:23]Write to MH i2c: E2 08 00 9B 28 80 13 01 00 00 00 00 00 40 [11:55:23]Write i2c OK [11:55:23]MH_I2C_Read... [11:55:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:23]Read from MH i2c: E2 [11:55:23]MH_I2C_Read... [11:55:23]Read from MH i2c: E2 0E 00 [11:55:23]MH_I2C_Read... [11:55:23]Read from MH i2c: E2 0E 00 9B 28 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 07 [11:55:23]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [11:55:23]wFMCommunicate OK [11:55:23]SAM_PROTO_GetShiftState done [11:55:23]FM_GetShiftState done [11:55:23]req_shift_opened done [11:55:23]requested_item shift.open_date is exist - process it [11:55:23]req_shift_open_date [11:55:23]req_shift_open_date done [11:55:23]produce_requested_data done [11:55:23]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228166,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [11:55:23]process_action_free close_receipt [11:55:23]json_value_free [11:55:23]json_value_free done [11:55:23]process_json_proto returns [11:55:23]Send response to host [11:55:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228166,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [11:55:23]free response buf [11:55:23]execute_script done [11:55:23]execute_script returns [11:55:23]free content buf [11:55:23]Sock 7.Close socket [11:55:23]Sock 7.Thread stoped [11:55:26]OFD Sender: No OFD packet to send [11:55:28]accept exits with 9 [11:55:28]New connection [11:55:28]New thread 3066994020 created [11:55:28]Thread 3067137380 joined [11:55:28]Waiting for new connection... [11:55:28] Sock 9.Parse request [11:55:28]Sock 9.Check first char [11:55:28]Sock 9.First char is OK [11:55:28]request: POST /json_proto HTTP/1.0 [11:55:28]Method: POST [11:55:28]URL: /json_proto [11:55:28]Method is POST - this is cgi request [11:55:28]url: /json_proto [11:55:28]query_string will be loaded in cgi processing [11:55:28]execute_cgi json_proto POST (null) [11:55:28]execute_cgi path=json_proto method=POST [11:55:28]POST find Content-Length [11:55:28]Host: 172.17.44.195:8080 [11:55:28]Content-Length: 790 [11:55:28]Content-Type: application/json [11:55:28] [11:55:28]POST finish read [11:55:28]Found Content-Length = 790 [11:55:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 59.060, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53608", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:28]execute_script... [11:55: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)1964598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 59.060, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53608", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:28]POST & json_proto [11:55:28]process_json_proto [11:55:28]json parsed OK: [11:55:28]protocol is kg_v1.0 [11:55:28]action value=close_receipt [11:55:28]process_action close_receipt [11:55:28]cmd_close_receipt [11:55:28]MH_GetDate [11:55:28]Write to MH i2c: F0 00 00 9C 28 B3 [11:55:28]Write i2c OK [11:55:28]MH_I2C_Read... [11:55:28]Read from MH i2c: F0 [11:55:28]MH_I2C_Read... [11:55:28]Read from MH i2c: F0 09 00 [11:55:28]MH_I2C_Read... [11:55:28]Read from MH i2c: F0 09 00 9C 28 00 B4 92 17 67 82 C9 CF 66 00 [11:55:28]GetLastDocTimeStamp 1729598122 [11:55:28]current date 1729598132 [11:55:28]FM_GetShiftState [11:55:28]SAM_PROTO_GetShiftState [11:55:28]wFMCommunicate request_size=4 [11:55:28]MH_SAM_APDU [11:55:28]CAPDU: 80 13 01 00 [11:55:28]Write to MH i2c: E2 08 00 9D 28 80 13 01 00 00 00 00 00 42 [11:55:28]Write i2c OK [11:55:28]MH_I2C_Read... [11:55:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:28]Read from MH i2c: E2 [11:55:28]MH_I2C_Read... [11:55:28]Read from MH i2c: E2 0E 00 [11:55:28]MH_I2C_Read... [11:55:28]Read from MH i2c: E2 0E 00 9D 28 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 09 [11:55:28]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [11:55:28]wFMCommunicate OK [11:55:28]SAM_PROTO_GetShiftState done [11:55:28]FM_GetShiftState done [11:55:28]opened in 1729555538 [11:55:28]opened+sec_in_day 1729641938 [11:55:28]quantity*price = 0 [11:55:28]sum+1 = 1 [11:55:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 131 22.10.2024 11:55 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливная Карта 53608 ФМ: 0000000000871839 ФД: 228167 ФПД: 146586952684596 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115532&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228167&fm=146586952684596&tin=02508201610067®Number=0000000000091685&sum=0 [11:55:29]StoreToDocumentArchive [11:55:29]shift 535 fd 228167 [11:55:29]save to /storage/0535/doc_00228167 [11:55:29]save last doc name /storage/0535/doc_00228167 to /storage/kkm_last_doc_name [11:55:29]save OK [11:55:29]Clear old archive folders... [11:55:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:55:29]tlvbuf is 008F5940 [11:55:29]SAM_PROTO_ClearQueue [11:55:29]wFMCommunicate request_size=4 [11:55:29]MH_SAM_APDU [11:55:29]CAPDU: 80 09 00 00 [11:55:29]Write to MH i2c: E2 08 00 AA 28 80 09 00 00 00 00 00 00 44 [11:55:29]Write i2c OK [11:55:29]MH_I2C_Read... [11:55:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:29]Read from MH i2c: E2 [11:55:29]MH_I2C_Read... [11:55:29]Read from MH i2c: E2 03 00 [11:55:29]MH_I2C_Read... [11:55:29]Read from MH i2c: E2 03 00 AA 28 00 90 00 46 [11:55:29]RAPDU: 90 00 [11:55:29]wFMCommunicate OK [11:55:29]SAM_PROTO_ClearQueue done [11:55:29]KKMCreateOFDPacket [11:55:29]OFDProtocolAddRootSTLVToBuf [11:55:29]FM_MakeSignedData [11:55:29]FM_MakeSignedData [11:55:29]SAM_PROTO_SignData [11:55:29]wFMCommunicate request_size=4 [11:55:29]MH_SAM_APDU [11:55:29]CAPDU: 80 0D 01 02 [11:55:29]Write to MH i2c: E2 08 00 AB 28 80 0D 01 02 00 00 00 00 4C [11:55:29]Write i2c OK [11:55:29]MH_I2C_Read... [11:55:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:29]Read from MH i2c: E2 [11:55:29]MH_I2C_Read... [11:55:29]Read from MH i2c: E2 03 00 [11:55:29]MH_I2C_Read... [11:55:29]Read from MH i2c: E2 03 00 AB 28 00 90 00 47 [11:55:29]RAPDU: 90 00 [11:55:29]wFMCommunicate OK [11:55:29]wFMCommunicate request_size=255 [11:55:29]MH_SAM_APDU [11:55: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 B4 E6 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 B4 92 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 47 7B 03 00 35 04 06 00 85 51 EF 3E [11:55:29]Write to MH i2c: E2 02 01 AC 28 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 B4 E6 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 B4 92 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 47 7B 03 00 35 04 06 00 85 51 EF 3E 00 00 73 [11:55:30]Write i2c OK [11:55:30]MH_I2C_Read... [11:55:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:30]Read from MH i2c: E2 [11:55:30]MH_I2C_Read... [11:55:30]Read from MH i2c: E2 03 00 [11:55:30]MH_I2C_Read... [11:55:30]Read from MH i2c: E2 03 00 AC 28 00 90 00 48 [11:55:30]RAPDU: 90 00 [11:55:30]wFMCommunicate OK [11:55:30]wFMCommunicate request_size=7 [11:55:30]MH_SAM_APDU [11:55:30]CAPDU: 80 0D 02 02 02 54 34 [11:55:30]Write to MH i2c: E2 0A 00 AD 28 80 0D 02 02 02 00 54 34 00 00 DB [11:55:30]Write i2c OK [11:55:30]MH_I2C_Read... [11:55:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:30]Read from MH i2c: E2 [11:55:30]MH_I2C_Read... [11:55:30]Read from MH i2c: E2 03 00 [11:55:30]MH_I2C_Read... [11:55:30]Read from MH i2c: E2 03 00 AD 28 00 90 00 49 [11:55:30]RAPDU: 90 00 [11:55:30]wFMCommunicate OK [11:55:30]wFMCommunicate request_size=4 [11:55:30]MH_SAM_APDU [11:55:30]CAPDU: 80 0D 03 02 [11:55:30]Write to MH i2c: E2 08 00 AE 28 80 0D 03 02 00 00 00 00 51 [11:55:30]Write i2c OK [11:55:30]MH_I2C_Read... [11:55:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:30]Read from MH i2c: E2 [11:55:30]MH_I2C_Read... [11:55:30]Read from MH i2c: E2 0B 00 [11:55:30]MH_I2C_Read... [11:55:30]Read from MH i2c: E2 0B 00 AE 28 00 A5 1E F6 96 20 AD 5F D7 90 00 A4 [11:55:30]RAPDU: A5 1E F6 96 20 AD 5F D7 90 00 [11:55:30]wFMCommunicate OK [11:55:30]SAM_PROTO_SignData done [11:55:30]FM_MakeSignedData done [11:55:30]CreateOFDProtocolMessage [11:55:30]wFMCommunicate request_size=4 [11:55:30]MH_SAM_APDU [11:55:30]CAPDU: 80 11 00 00 [11:55:30]Write to MH i2c: E2 08 00 AF 28 80 11 00 00 00 00 00 00 51 [11:55:30]Write i2c OK [11:55:30]MH_I2C_Read... [11:55:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:30]Read from MH i2c: E2 [11:55:30]MH_I2C_Read... [11:55:30]Read from MH i2c: E2 17 00 [11:55:30]MH_I2C_Read... [11:55:30]Read from MH i2c: E2 17 00 AF 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A8 [11:55:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:55:30]wFMCommunicate OK [11:55:30]CreateOFDProtocolMessage done [11:55:30]OFDSenderStorePacket 228167 [11:55:30]StoreOFDPacket docnum=228167 [11:55:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 CC 60 04 01 87 1C 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 B4 E6 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 B4 92 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 47 7B 03 00 35 04 06 00 85 51 EF 3E 54 34 A5 1E F6 96 20 AD 5F D7 [11:55:30]CheckFolder [11:55:30]dirname=/storage/ofd_packets [11:55:30]CheckFolder done [11:55:30]ProducePacketName [11:55:30]name=ofd_packets/00228167 [11:55:30]NVStorageSaveData ofd_packets/00228167 [11:55:30]File name is /storage/ofd_packets/00228167 [11:55:30]Write 298 bytes [11:55:30]NVStorageSaveData done [11:55:30]OFDSenderStorePacket done [11:55:30]KKMCreateOFDPacket done [11:55:30]NVStorageSaveData kkm_last_timestamp [11:55:30]File name is /storage/kkm_last_timestamp [11:55:30]Write 4 bytes [11:55:30]NVStorageSaveData done [11:55:30]ExternCall_PrintAddStr [11:55:30]wPrintStart [11:55:30]Write to MH i2c: 01 00 00 B0 28 D8 [11:55:30]Write i2c OK [11:55:30]MH_I2C_Read... [11:55:30]Read from MH i2c: 01 [11:55:30]MH_I2C_Read... [11:55:30]Read from MH i2c: 01 07 00 [11:55:30]MH_I2C_Read... [11:55:30]Read from MH i2c: 01 07 00 B0 28 00 00 00 00 00 FF 0F ED [11:55:30]RasterBufferAndPrint [11:55:30]line Счет N : (1)1964598 [11:55:30]line ИНН: 02508201610067 [11:55:30]line Контрольно-Кассовый Чек [11:55:30]line ПРОДАЖА [11:55:30]line ТРК (МРК, ГНК) : 41 [11:55:30]line Товар: 2710194210 [11:55:30]line ДТ-К-5 [11:55:30]line 59.060 * 0.00 [11:55:30]line = 0.00 [11:55:30]line НДС 12% НСП 1% [11:55:30]line > о реализуемом товаре [11:55:30]line ИТОГО: 0.00 [11:55:30]line НСП 1% : 0.00 [11:55:30]line НДС 12% : 0.00 [11:55:30]line Наличными: 0.00 [11:55:30]line Безнал.: 0.00 [11:55:30]line Место: АЗС № 133 "Партнер Нефть" [11:55:30]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:55:30]line СНО: Общий режим [11:55:30]line Чек 131 22.10.2024 11:55 [11:55:30]line Смена: 535 ФФД: 1.0 [11:55:30]line ЗНМ: 0300000091 [11:55:30]line РНМ: 0000000000091685 [11:55:30]line Версия ККМ: 001 [11:55:30]line Талоны: Топливная Карта [11:55:30]line 53608 [11:55:30]line ФМ: 0000000000871839 [11:55:30]line ФД: 228167 [11:55:30]line ФПД: 146586952684596 [11:55:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115532&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228167&fm=146586952684596&tin=02508201610067®Number=0000000000091685&sum=0 [11:55:30]written 0, free lines is 4095 [11:55:30]OFD Sender: Processing packet 228167 [packets to send 38, broken 37] [11:55:30]ProducePacketName [11:55:30]name=ofd_packets/00228167 [11:55:30]OFD Sender: To server: pG, [11:55:30]CommunicateWithHost lk.salyk.kg:30040 [11:55:30]ConnectInit lk.salyk.kg [11:55:30]Connected sock=10 [11:55:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 CC 60 04 01 87 1C 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 B4 E6 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 B4 92 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 47 7B 03 00 35 04 06 00 85 51 EF 3E 54 34 A5 1E F6 96 20 AD 5F D7 [11:55:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 D3 BF 47 00 A3 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 47 7B 03 00 F4 03 04 00 AC 3D 17 67 B6 04 01 00 00 75 A3 2A B8 FF C6 69 AB [11:55:30]CommunicateWithHost err = 0 [11:55:30]CheckOFDResponse [11:55:30]1017 (14) - 77093643461234 [11:55:30]1041 (16) - 0000000000871839 [11:55:30]1040 (4) - 228167 [11:55:30]1012 (4) - 22.10.2024 05:52 [11:55:30]1206 (1) - 0 [11:55:30]OFD Sender: Remove packet 228167 [11:55:30]ProducePacketName [11:55:30]name=ofd_packets/00228167 [11:55:30]NVStorageDeleteData [11:55:30]Write to MH i2c: 01 00 00 D9 28 01 [11:55:30]Write i2c OK [11:55:30]MH_I2C_Read... [11:55:30]Read from MH i2c: 01 [11:55:30]MH_I2C_Read... [11:55:30]Read from MH i2c: 01 07 00 [11:55:30]MH_I2C_Read... [11:55:30]Read from MH i2c: 01 07 00 D9 28 00 00 00 00 00 E5 0C F9 [11:55:30]RasterBufferAndPrint [11:55:30]line [11:55:30]line [11:55:30]line [11:55:30]line [11:55:30]line [11:55:30]written 0, free lines is 3320 [11:55:30]MH_Cut [11:55:30]Write to MH i2c: D1 01 00 E0 28 01 DA [11:55:30]Write i2c OK [11:55:30]MH_I2C_Read... [11:55:30]Read from MH i2c: D1 [11:55:30]MH_I2C_Read... [11:55:30]Read from MH i2c: D1 01 00 [11:55:30]MH_I2C_Read... [11:55:30]Read from MH i2c: D1 01 00 E0 28 00 D9 [11:55:30]Write to MH i2c: 01 00 00 E1 28 09 [11:55:30]Write i2c OK [11:55:30]MH_I2C_Read... [11:55:31]OFD Sender: No OFD packet to send [11:55:31]*** Cut start [11:55:31]*** Partial cut [11:55:31]*** CUTSNS_PIN = 1 [11:55:31]*** CUTSNS_PIN = 0 [11:55:31]*** Brake cut motor [11:55:32]Read from MH i2c: 01 [11:55:32]MH_I2C_Read... [11:55:32]*** Stop cut motor [11:55:32]*** Cut end [11:55:32]Read from MH i2c: 01 07 00 [11:55:32]MH_I2C_Read... [11:55:32]Read from MH i2c: 01 07 00 E1 28 00 00 00 00 00 FF 0F 1E [11:55:32]process_action close_receipt done [11:55:32]requested_data is exist [11:55:32]produce_requested_data [11:55:32]requested_item fm.sn is exist - process it [11:55:32]wFMCommunicate request_size=4 [11:55:32]MH_SAM_APDU [11:55:32]CAPDU: 80 11 00 00 [11:55:32]Write to MH i2c: E2 08 00 E2 28 80 11 00 00 00 00 00 00 84 [11:55:32]Write i2c OK [11:55:32]MH_I2C_Read... [11:55:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:32]Read from MH i2c: E2 [11:55:32]MH_I2C_Read... [11:55:32]Read from MH i2c: E2 17 00 [11:55:32]MH_I2C_Read... [11:55:32]Read from MH i2c: E2 17 00 E2 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DB [11:55:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:55:32]wFMCommunicate OK [11:55:32]requested_item fd.num is exist - process it [11:55:32]SAM_PROTO_GetFieldsCounters [11:55:32]wFMCommunicate request_size=4 [11:55:32]MH_SAM_APDU [11:55:32]CAPDU: 80 13 00 00 [11:55:32]Write to MH i2c: E2 08 00 E3 28 80 13 00 00 00 00 00 00 87 [11:55:32]Write i2c OK [11:55:32]MH_I2C_Read... [11:55:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:32]Read from MH i2c: E2 [11:55:32]MH_I2C_Read... [11:55:32]Read from MH i2c: E2 62 00 [11:55:32]MH_I2C_Read... [11:55:32]Read from MH i2c: E2 62 00 E3 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 47 7B 03 00 0E 04 04 00 17 02 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 17 [11:55:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 47 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:55:32]wFMCommunicate OK [11:55:32]SAM_PROTO_GetFieldsCounters done [11:55:32]requested_item shift.num is exist - process it [11:55:32]requested_item shift.opened is exist - process it [11:55:32]req_shift_opened [11:55:32]FM_GetShiftState [11:55:32]SAM_PROTO_GetShiftState [11:55:32]wFMCommunicate request_size=4 [11:55:32]MH_SAM_APDU [11:55:32]CAPDU: 80 13 01 00 [11:55:32]Write to MH i2c: E2 08 00 E4 28 80 13 01 00 00 00 00 00 89 [11:55:32]Write i2c OK [11:55:32]MH_I2C_Read... [11:55:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:32]Read from MH i2c: E2 [11:55:32]MH_I2C_Read... [11:55:32]Read from MH i2c: E2 0E 00 [11:55:32]MH_I2C_Read... [11:55:32]Read from MH i2c: E2 0E 00 E4 28 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 50 [11:55:32]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [11:55:32]wFMCommunicate OK [11:55:32]SAM_PROTO_GetShiftState done [11:55:32]FM_GetShiftState done [11:55:32]req_shift_opened done [11:55:32]requested_item shift.open_date is exist - process it [11:55:32]req_shift_open_date [11:55:32]req_shift_open_date done [11:55:32]produce_requested_data done [11:55:32]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228167,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [11:55:32]process_action_free close_receipt [11:55:32]json_value_free [11:55:32]json_value_free done [11:55:32]process_json_proto returns [11:55:32]Send response to host [11:55:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228167,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [11:55:32]free response buf [11:55:32]execute_script done [11:55:32]execute_script returns [11:55:32]free content buf [11:55:32]Sock 9.Close socket [11:55:32]Sock 9.Thread stoped [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:17]accept exits with 7 [11:56:17]New connection [11:56:17]New thread 3067137380 created [11:56:17]Thread 3066994020 joined [11:56:17]Waiting for new connection... [11:56:17] Sock 7.Parse request [11:56:17]Sock 7.Check first char [11:56:17]Sock 7.First char is OK [11:56:17]request: POST /json_proto HTTP/1.0 [11:56:17]Method: POST [11:56:17]URL: /json_proto [11:56:17]Method is POST - this is cgi request [11:56:17]url: /json_proto [11:56:17]query_string will be loaded in cgi processing [11:56:17]execute_cgi json_proto POST (null) [11:56:17]execute_cgi path=json_proto method=POST [11:56:17]POST find Content-Length [11:56:17]Host: 172.17.44.195:8080 [11:56:17]Content-Length: 673 [11:56:17]Content-Type: application/json [11:56:17] [11:56:17]POST finish read [11:56:17]Found Content-Length = 673 [11:56:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:17]execute_script... [11:56: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)1964601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:17]POST & json_proto [11:56:17]process_json_proto [11:56:17]json parsed OK: [11:56:17]protocol is kg_v1.0 [11:56:17]action value=close_receipt [11:56:17]process_action close_receipt [11:56:17]cmd_close_receipt [11:56:17]MH_GetDate [11:56:17]Write to MH i2c: F0 00 00 E5 28 FC [11:56:17]Write i2c OK [11:56:17]MH_I2C_Read... [11:56:17]Read from MH i2c: F0 [11:56:17]MH_I2C_Read... [11:56:17]Read from MH i2c: F0 09 00 [11:56:17]MH_I2C_Read... [11:56:17]Read from MH i2c: F0 09 00 E5 28 00 E5 92 17 67 82 C9 CF 66 7A [11:56:17]GetLastDocTimeStamp 1729598132 [11:56:17]current date 1729598181 [11:56:17]FM_GetShiftState [11:56:17]SAM_PROTO_GetShiftState [11:56:17]wFMCommunicate request_size=4 [11:56:17]MH_SAM_APDU [11:56:17]CAPDU: 80 13 01 00 [11:56:17]Write to MH i2c: E2 08 00 E6 28 80 13 01 00 00 00 00 00 8B [11:56:17]Write i2c OK [11:56:17]MH_I2C_Read... [11:56:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:17]Read from MH i2c: E2 [11:56:17]MH_I2C_Read... [11:56:17]Read from MH i2c: E2 0E 00 [11:56:17]MH_I2C_Read... [11:56:17]Read from MH i2c: E2 0E 00 E6 28 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 52 [11:56:17]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [11:56:17]wFMCommunicate OK [11:56:17]SAM_PROTO_GetShiftState done [11:56:17]FM_GetShiftState done [11:56:17]opened in 1729555538 [11:56:17]opened+sec_in_day 1729641938 [11:56:17]quantity*price = 50025 [11:56:17]sum+1 = 50026 [11:56:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 132 22.10.2024 11:56 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228168 ФПД: 48809618325894 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115621&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228168&fm=48809618325894&tin=02508201610067®Number=0000000000091685&sum=50000 [11:56:18]StoreToDocumentArchive [11:56:18]shift 535 fd 228168 [11:56:18]save to /storage/0535/doc_00228168 [11:56:18]save last doc name /storage/0535/doc_00228168 to /storage/kkm_last_doc_name [11:56:18]save OK [11:56:18]Clear old archive folders... [11:56:18]ProcessDocumentItem done err = 0, tmpTLVsize=245 [11:56:18]tlvbuf is 008BC9E0 [11:56:18]SAM_PROTO_ClearQueue [11:56:18]wFMCommunicate request_size=4 [11:56:18]MH_SAM_APDU [11:56:18]CAPDU: 80 09 00 00 [11:56:18]Write to MH i2c: E2 08 00 F3 28 80 09 00 00 00 00 00 00 8D [11:56:18]Write i2c OK [11:56:18]MH_I2C_Read... [11:56:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:56:18]Read from MH i2c: E2 [11:56:18]MH_I2C_Read... [11:56:18]Read from MH i2c: E2 03 00 [11:56:18]MH_I2C_Read... [11:56:18]Read from MH i2c: E2 03 00 F3 28 00 90 00 8F [11:56:18]RAPDU: 90 00 [11:56:18]wFMCommunicate OK [11:56:18]SAM_PROTO_ClearQueue done [11:56:18]KKMCreateOFDPacket [11:56:18]OFDProtocolAddRootSTLVToBuf [11:56:18]FM_MakeSignedData [11:56:18]FM_MakeSignedData [11:56:18]SAM_PROTO_SignData [11:56:18]wFMCommunicate request_size=4 [11:56:18]MH_SAM_APDU [11:56:18]CAPDU: 80 0D 01 02 [11:56:18]Write to MH i2c: E2 08 00 F4 28 80 0D 01 02 00 00 00 00 95 [11:56:18]Write i2c OK [11:56:18]MH_I2C_Read... [11:56:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:56:18]Read from MH i2c: E2 [11:56:18]MH_I2C_Read... [11:56:18]Read from MH i2c: E2 03 00 [11:56:18]MH_I2C_Read... [11:56:18]Read from MH i2c: E2 03 00 F4 28 00 90 00 90 [11:56:18]RAPDU: 90 00 [11:56:18]wFMCommunicate OK [11:56:18]wFMCommunicate request_size=254 [11:56:18]MH_SAM_APDU [11:56:18]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 E5 92 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 48 7B 03 00 35 04 06 00 2C 64 5F F6 41 86 [11:56:18]Write to MH i2c: E2 01 01 F5 28 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 E5 92 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 48 7B 03 00 35 04 06 00 2C 64 5F F6 41 86 00 00 E2 [11:56:18]Write i2c OK [11:56:18]MH_I2C_Read... [11:56:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:19]Read from MH i2c: E2 [11:56:19]MH_I2C_Read... [11:56:19]Read from MH i2c: E2 03 00 [11:56:19]MH_I2C_Read... [11:56:19]Read from MH i2c: E2 03 00 F5 28 00 90 00 91 [11:56:19]RAPDU: 90 00 [11:56:19]wFMCommunicate OK [11:56:19]wFMCommunicate request_size=4 [11:56:19]MH_SAM_APDU [11:56:19]CAPDU: 80 0D 03 02 [11:56:19]Write to MH i2c: E2 08 00 F6 28 80 0D 03 02 00 00 00 00 99 [11:56:19]Write i2c OK [11:56:19]MH_I2C_Read... [11:56:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:56:19]Read from MH i2c: E2 [11:56:19]MH_I2C_Read... [11:56:19]Read from MH i2c: E2 0B 00 [11:56:19]MH_I2C_Read... [11:56:19]Read from MH i2c: E2 0B 00 F6 28 00 B0 2F 17 F9 72 69 0C 1F 90 00 8F [11:56:19]RAPDU: B0 2F 17 F9 72 69 0C 1F 90 00 [11:56:19]wFMCommunicate OK [11:56:19]SAM_PROTO_SignData done [11:56:19]FM_MakeSignedData done [11:56:19]CreateOFDProtocolMessage [11:56:19]wFMCommunicate request_size=4 [11:56:19]MH_SAM_APDU [11:56:19]CAPDU: 80 11 00 00 [11:56:19]Write to MH i2c: E2 08 00 F7 28 80 11 00 00 00 00 00 00 99 [11:56:19]Write i2c OK [11:56:19]MH_I2C_Read... [11:56:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:19]Read from MH i2c: E2 [11:56:19]MH_I2C_Read... [11:56:19]Read from MH i2c: E2 17 00 [11:56:19]MH_I2C_Read... [11:56:19]Read from MH i2c: E2 17 00 F7 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F0 [11:56:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:56:19]wFMCommunicate OK [11:56:19]CreateOFDProtocolMessage done [11:56:19]OFDSenderStorePacket 228168 [11:56:19]StoreOFDPacket docnum=228168 [11:56:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 BC 97 01 01 1C 1A 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 E5 92 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 48 7B 03 00 35 04 06 00 2C 64 5F F6 41 86 B0 2F 17 F9 72 69 0C 1F [11:56:19]CheckFolder [11:56:19]dirname=/storage/ofd_packets [11:56:19]CheckFolder done [11:56:19]ProducePacketName [11:56:19]name=ofd_packets/00228168 [11:56:19]NVStorageSaveData ofd_packets/00228168 [11:56:19]File name is /storage/ofd_packets/00228168 [11:56:19]Write 295 bytes [11:56:19]NVStorageSaveData done [11:56:19]OFDSenderStorePacket done [11:56:19]KKMCreateOFDPacket done [11:56:19]NVStorageSaveData kkm_last_timestamp [11:56:19]File name is /storage/kkm_last_timestamp [11:56:19]Write 4 bytes [11:56:19]NVStorageSaveData done [11:56:19]ExternCall_PrintAddStr [11:56:19]wPrintStart [11:56:19]Write to MH i2c: 01 00 00 F8 28 20 [11:56:19]Write i2c OK [11:56:19]MH_I2C_Read... [11:56:19]Read from MH i2c: 01 [11:56:19]MH_I2C_Read... [11:56:19]Read from MH i2c: 01 07 00 [11:56:19]MH_I2C_Read... [11:56:19]Read from MH i2c: 01 07 00 F8 28 00 00 00 00 00 FF 0F 35 [11:56:19]RasterBufferAndPrint [11:56:19]line Счет N : (1)1964601 [11:56:19]line ИНН: 02508201610067 [11:56:19]line Контрольно-Кассовый Чек [11:56:19]line ПРОДАЖА [11:56:19]line ТРК (МРК, ГНК) : 71 [11:56:19]line Товар: 2711129700 [11:56:19]line ГАЗ [11:56:19]line 12.860 * 38.90 [11:56:19]line = 500.25 [11:56:19]line НДС 12% НСП 1% [11:56:19]line > о реализуемом товаре [11:56:19]line ОКРУГЛЕНИЕ: -0.25 [11:56:19]line ИТОГО: 500.00 [11:56:19]line Внесено: 500.00 [11:56:19]line СДАЧА: 0.00 [11:56:19]line НСП 1% : 4.43 [11:56:19]line НДС 12% : 53.12 [11:56:19]line Наличными: 500.00 [11:56:19]line Безнал.: 0.00 [11:56:19]line Место: АЗС № 133 "Партнер Нефть" [11:56:19]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:56:19]line СНО: Общий режим [11:56:19]line Чек 132 22.10.2024 11:56 [11:56:19]line Смена: 535 ФФД: 1.0 [11:56:19]line ЗНМ: 0300000091 [11:56:19]line РНМ: 0000000000091685 [11:56:19]line Версия ККМ: 001 [11:56:19]line ФМ: 0000000000871839 [11:56:19]line ФД: 228168 [11:56:19]line ФПД: 48809618325894 [11:56:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115621&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228168&fm=48809618325894&tin=02508201610067®Number=0000000000091685&sum=50000 [11:56:19]OFD Sender: Processing packet 228168 [packets to send 38, broken 37] [11:56:19]ProducePacketName [11:56:19]name=ofd_packets/00228168 [11:56:19]OFD Sender: To server: pG, [11:56:19]CommunicateWithHost lk.salyk.kg:30040 [11:56:19]ConnectInit lk.salyk.kg [11:56:19]written 0, free lines is 4095 [11:56:19]Connected sock=10 [11:56:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 BC 97 01 01 1C 1A 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 E5 92 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 48 7B 03 00 35 04 06 00 2C 64 5F F6 41 86 B0 2F 17 F9 72 69 0C 1F [11:56:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 99 6F 47 00 D9 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 48 7B 03 00 F4 03 04 00 DD 3D 17 67 B6 04 01 00 00 05 F6 09 0F 7D D6 CA DC [11:56:19]CommunicateWithHost err = 0 [11:56:19]CheckOFDResponse [11:56:19]1017 (14) - 77093643461234 [11:56:19]1041 (16) - 0000000000871839 [11:56:19]1040 (4) - 228168 [11:56:19]1012 (4) - 22.10.2024 05:53 [11:56:19]1206 (1) - 0 [11:56:19]OFD Sender: Remove packet 228168 [11:56:19]ProducePacketName [11:56:19]name=ofd_packets/00228168 [11:56:19]NVStorageDeleteData [11:56:20]Write to MH i2c: 01 00 00 22 29 4B [11:56:20]Write i2c OK [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: 01 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: 01 07 00 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: 01 07 00 22 29 00 00 00 00 00 C4 0C 22 [11:56:20]RasterBufferAndPrint [11:56:20]line [11:56:20]line [11:56:20]line [11:56:20]line [11:56:20]line [11:56:20]written 0, free lines is 3274 [11:56:20]MH_Cut [11:56:20]Write to MH i2c: D1 01 00 29 29 01 24 [11:56:20]Write i2c OK [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: D1 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: D1 01 00 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: D1 01 00 29 29 00 23 [11:56:20]Write to MH i2c: 01 00 00 2A 29 53 [11:56:20]Write i2c OK [11:56:20]MH_I2C_Read... [11:56:20]OFD Sender: No OFD packet to send [11:56:20]*** Cut start [11:56:20]*** Partial cut [11:56:20]*** CUTSNS_PIN = 1 [11:56:20]*** CUTSNS_PIN = 0 [11:56:21]*** Brake cut motor [11:56:21]Read from MH i2c: 01 [11:56:21]MH_I2C_Read... [11:56:21]*** Stop cut motor [11:56:21]*** Cut end [11:56:21]Read from MH i2c: 01 07 00 [11:56:21]MH_I2C_Read... [11:56:21]Read from MH i2c: 01 07 00 2A 29 00 00 00 00 00 FF 0F 68 [11:56:21]process_action close_receipt done [11:56:21]requested_data is exist [11:56:21]produce_requested_data [11:56:21]requested_item fm.sn is exist - process it [11:56:21]wFMCommunicate request_size=4 [11:56:21]MH_SAM_APDU [11:56:21]CAPDU: 80 11 00 00 [11:56:21]Write to MH i2c: E2 08 00 2B 29 80 11 00 00 00 00 00 00 CE [11:56:21]Write i2c OK [11:56:21]MH_I2C_Read... [11:56:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:21]Read from MH i2c: E2 [11:56:21]MH_I2C_Read... [11:56:21]Read from MH i2c: E2 17 00 [11:56:21]MH_I2C_Read... [11:56:21]Read from MH i2c: E2 17 00 2B 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 25 [11:56:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:56:21]wFMCommunicate OK [11:56:21]requested_item fd.num is exist - process it [11:56:21]SAM_PROTO_GetFieldsCounters [11:56:21]wFMCommunicate request_size=4 [11:56:21]MH_SAM_APDU [11:56:21]CAPDU: 80 13 00 00 [11:56:21]Write to MH i2c: E2 08 00 2C 29 80 13 00 00 00 00 00 00 D1 [11:56:21]Write i2c OK [11:56:21]MH_I2C_Read... [11:56:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:21]Read from MH i2c: E2 [11:56:21]MH_I2C_Read... [11:56:21]Read from MH i2c: E2 62 00 [11:56:21]MH_I2C_Read... [11:56:21]Read from MH i2c: E2 62 00 2C 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 48 7B 03 00 0E 04 04 00 17 02 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 65 [11:56:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 48 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:56:21]wFMCommunicate OK [11:56:21]SAM_PROTO_GetFieldsCounters done [11:56:21]requested_item shift.num is exist - process it [11:56:21]requested_item shift.opened is exist - process it [11:56:21]req_shift_opened [11:56:21]FM_GetShiftState [11:56:21]SAM_PROTO_GetShiftState [11:56:21]wFMCommunicate request_size=4 [11:56:21]MH_SAM_APDU [11:56:21]CAPDU: 80 13 01 00 [11:56:21]Write to MH i2c: E2 08 00 2D 29 80 13 01 00 00 00 00 00 D3 [11:56:21]Write i2c OK [11:56:21]MH_I2C_Read... [11:56:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:21]Read from MH i2c: E2 [11:56:21]MH_I2C_Read... [11:56:21]Read from MH i2c: E2 0E 00 [11:56:21]MH_I2C_Read... [11:56:21]Read from MH i2c: E2 0E 00 2D 29 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 9A [11:56:21]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [11:56:21]wFMCommunicate OK [11:56:21]SAM_PROTO_GetShiftState done [11:56:21]FM_GetShiftState done [11:56:21]req_shift_opened done [11:56:21]requested_item shift.open_date is exist - process it [11:56:21]req_shift_open_date [11:56:21]req_shift_open_date done [11:56:21]produce_requested_data done [11:56:21]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228168,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [11:56:21]process_action_free close_receipt [11:56:21]json_value_free [11:56:21]json_value_free done [11:56:21]process_json_proto returns [11:56:21]Send response to host [11:56:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228168,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [11:56:21]free response buf [11:56:21]execute_script done [11:56:21]execute_script returns [11:56:21]free content buf [11:56:21]Sock 7.Close socket [11:56:21]Sock 7.Thread stoped [11:56:25]OFD Sender: No OFD packet to send [11:56:30]OFD Sender: No OFD packet to send [11:56:35]OFD Sender: No OFD packet to send [11:56:40]OFD Sender: No OFD packet to send [11:56:45]OFD Sender: No OFD packet to send [11:56:50]OFD Sender: No OFD packet to send [11:56:55]OFD Sender: No OFD packet to send [11:57:00]OFD Sender: No OFD packet to send [11:57:05]OFD Sender: No OFD packet to send [11:57:10]OFD Sender: No OFD packet to send [11:57:15]OFD Sender: No OFD packet to send [11:57:20]OFD Sender: No OFD packet to send [11:57:25]OFD Sender: No OFD packet to send [11:57:30]OFD Sender: No OFD packet to send [11:57:35]OFD Sender: No OFD packet to send [11:57:40]OFD Sender: No OFD packet to send [11:57:45]OFD Sender: No OFD packet to send [11:57:50]OFD Sender: No OFD packet to send [11:57:55]OFD Sender: No OFD packet to send [11:58:00]OFD Sender: No OFD packet to send [11:58:05]OFD Sender: No OFD packet to send [11:58:10]OFD Sender: No OFD packet to send [11:58:15]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:25]OFD Sender: No OFD packet to send [11:58:30]OFD Sender: No OFD packet to send [11:58:35]OFD Sender: No OFD packet to send [11:58:40]OFD Sender: No OFD packet to send [11:58:45]OFD Sender: No OFD packet to send [11:58:50]OFD Sender: No OFD packet to send [11:58:55]OFD Sender: No OFD packet to send [11:59:00]OFD Sender: No OFD packet to send [11:59:05]OFD Sender: No OFD packet to send [11:59:10]OFD Sender: No OFD packet to send [11:59:15]OFD Sender: No OFD packet to send [11:59:20]OFD Sender: No OFD packet to send [11:59:25]OFD Sender: No OFD packet to send [11:59:30]OFD Sender: No OFD packet to send [11:59:30]accept exits with 9 [11:59:30]New connection [11:59:30]New thread 3066994020 created [11:59:30]Thread 3067137380 joined [11:59:30]Waiting for new connection... [11:59:30] Sock 9.Parse request [11:59:30]Sock 9.Check first char [11:59:30]Sock 9.First char is OK [11:59:30]request: POST /json_proto HTTP/1.0 [11:59:30]Method: POST [11:59:30]URL: /json_proto [11:59:30]Method is POST - this is cgi request [11:59:30]url: /json_proto [11:59:30]query_string will be loaded in cgi processing [11:59:30]execute_cgi json_proto POST (null) [11:59:30]execute_cgi path=json_proto method=POST [11:59:30]POST find Content-Length [11:59:30]Host: 172.17.44.195:8080 [11:59:30]Content-Length: 678 [11:59:30]Content-Type: application/json [11:59:30] [11:59:30]POST finish read [11:59:30]Found Content-Length = 678 [11:59:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "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" ] } } [11:59:30]execute_script... [11:59: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)1964602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "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" ] } } [11:59:30]POST & json_proto [11:59:30]process_json_proto [11:59:30]json parsed OK: [11:59:30]protocol is kg_v1.0 [11:59:30]action value=close_receipt [11:59:30]process_action close_receipt [11:59:30]cmd_close_receipt [11:59:30]MH_GetDate [11:59:30]Write to MH i2c: F0 00 00 2E 29 46 [11:59:30]Write i2c OK [11:59:30]MH_I2C_Read... [11:59:30]Read from MH i2c: F0 [11:59:30]MH_I2C_Read... [11:59:30]Read from MH i2c: F0 09 00 [11:59:30]MH_I2C_Read... [11:59:30]Read from MH i2c: F0 09 00 2E 29 00 A6 93 17 67 82 C9 CF 66 86 [11:59:30]GetLastDocTimeStamp 1729598181 [11:59:30]current date 1729598374 [11:59:30]FM_GetShiftState [11:59:30]SAM_PROTO_GetShiftState [11:59:30]wFMCommunicate request_size=4 [11:59:30]MH_SAM_APDU [11:59:30]CAPDU: 80 13 01 00 [11:59:30]Write to MH i2c: E2 08 00 2F 29 80 13 01 00 00 00 00 00 D5 [11:59:30]Write i2c OK [11:59:30]MH_I2C_Read... [11:59:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:30]Read from MH i2c: E2 [11:59:30]MH_I2C_Read... [11:59:30]Read from MH i2c: E2 0E 00 [11:59:30]MH_I2C_Read... [11:59:30]Read from MH i2c: E2 0E 00 2F 29 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 9C [11:59:30]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [11:59:30]wFMCommunicate OK [11:59:30]SAM_PROTO_GetShiftState done [11:59:30]FM_GetShiftState done [11:59:30]opened in 1729555538 [11:59:30]opened+sec_in_day 1729641938 [11:59:30]quantity*price = 30038 [11:59:30]sum+1 = 30039 [11:59:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 133 22.10.2024 11:59 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228169 ФПД: 129410800166607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115934&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228169&fm=129410800166607&tin=02508201610067®Number=0000000000091685&sum=30000 [11:59:32]StoreToDocumentArchive [11:59:32]shift 535 fd 228169 [11:59:32]save to /storage/0535/doc_00228169 [11:59:32]save last doc name /storage/0535/doc_00228169 to /storage/kkm_last_doc_name [11:59:32]save OK [11:59:32]Clear old archive folders... [11:59:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:59:32]tlvbuf is 008BD020 [11:59:32]SAM_PROTO_ClearQueue [11:59:32]wFMCommunicate request_size=4 [11:59:32]MH_SAM_APDU [11:59:32]CAPDU: 80 09 00 00 [11:59:32]Write to MH i2c: E2 08 00 3C 29 80 09 00 00 00 00 00 00 D7 [11:59:32]Write i2c OK [11:59:32]MH_I2C_Read... [11:59:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:32]Read from MH i2c: E2 [11:59:32]MH_I2C_Read... [11:59:32]Read from MH i2c: E2 03 00 [11:59:32]MH_I2C_Read... [11:59:32]Read from MH i2c: E2 03 00 3C 29 00 90 00 D9 [11:59:32]RAPDU: 90 00 [11:59:32]wFMCommunicate OK [11:59:32]SAM_PROTO_ClearQueue done [11:59:32]KKMCreateOFDPacket [11:59:32]OFDProtocolAddRootSTLVToBuf [11:59:32]FM_MakeSignedData [11:59:32]FM_MakeSignedData [11:59:32]SAM_PROTO_SignData [11:59:32]wFMCommunicate request_size=4 [11:59:32]MH_SAM_APDU [11:59:32]CAPDU: 80 0D 01 02 [11:59:32]Write to MH i2c: E2 08 00 3D 29 80 0D 01 02 00 00 00 00 DF [11:59:32]Write i2c OK [11:59:32]MH_I2C_Read... [11:59:32]Read from MH i2c: E2 [11:59:32]MH_I2C_Read... [11:59:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:32]Read from MH i2c: E2 03 00 [11:59:32]MH_I2C_Read... [11:59:32]Read from MH i2c: E2 03 00 3D 29 00 90 00 DA [11:59:32]RAPDU: 90 00 [11:59:32]wFMCommunicate OK [11:59:32]wFMCommunicate request_size=255 [11:59:32]MH_SAM_APDU [11:59: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 85 00 00 00 F4 03 04 00 A6 93 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 49 7B 03 00 35 04 06 00 75 [11:59:32]Write to MH i2c: E2 02 01 3E 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 85 00 00 00 F4 03 04 00 A6 93 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 49 7B 03 00 35 04 06 00 75 00 00 FB [11:59:32]Write i2c OK [11:59:32]MH_I2C_Read... [11:59:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:32]Read from MH i2c: E2 [11:59:32]MH_I2C_Read... [11:59:32]Read from MH i2c: E2 03 00 [11:59:32]MH_I2C_Read... [11:59:32]Read from MH i2c: E2 03 00 3E 29 00 90 00 DB [11:59:32]RAPDU: 90 00 [11:59:32]wFMCommunicate OK [11:59:32]wFMCommunicate request_size=10 [11:59:32]MH_SAM_APDU [11:59:32]CAPDU: 80 0D 02 02 05 B2 CC C6 26 CF [11:59:32]Write to MH i2c: E2 0D 00 3F 29 80 0D 02 02 05 00 B2 CC C6 26 CF 00 00 25 [11:59:32]Write i2c OK [11:59:32]MH_I2C_Read... [11:59:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:32]Read from MH i2c: E2 [11:59:32]MH_I2C_Read... [11:59:32]Read from MH i2c: E2 03 00 [11:59:32]MH_I2C_Read... [11:59:32]Read from MH i2c: E2 03 00 3F 29 00 90 00 DC [11:59:32]RAPDU: 90 00 [11:59:32]wFMCommunicate OK [11:59:32]wFMCommunicate request_size=4 [11:59:32]MH_SAM_APDU [11:59:32]CAPDU: 80 0D 03 02 [11:59:32]Write to MH i2c: E2 08 00 40 29 80 0D 03 02 00 00 00 00 E4 [11:59:32]Write i2c OK [11:59:32]MH_I2C_Read... [11:59:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:32]Read from MH i2c: E2 [11:59:32]MH_I2C_Read... [11:59:32]Read from MH i2c: E2 0B 00 [11:59:32]MH_I2C_Read... [11:59:32]Read from MH i2c: E2 0B 00 40 29 00 B8 69 C3 0B E8 DA 29 8B 90 00 4A [11:59:32]RAPDU: B8 69 C3 0B E8 DA 29 8B 90 00 [11:59:32]wFMCommunicate OK [11:59:32]SAM_PROTO_SignData done [11:59:32]FM_MakeSignedData done [11:59:32]CreateOFDProtocolMessage [11:59:32]wFMCommunicate request_size=4 [11:59:32]MH_SAM_APDU [11:59:32]CAPDU: 80 11 00 00 [11:59:32]Write to MH i2c: E2 08 00 41 29 80 11 00 00 00 00 00 00 E4 [11:59:32]Write i2c OK [11:59:32]MH_I2C_Read... [11:59:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:32]Read from MH i2c: E2 [11:59:32]MH_I2C_Read... [11:59:32]Read from MH i2c: E2 17 00 [11:59:32]MH_I2C_Read... [11:59:32]Read from MH i2c: E2 17 00 41 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 3B [11:59:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:59:32]wFMCommunicate OK [11:59:32]CreateOFDProtocolMessage done [11:59:32]OFDSenderStorePacket 228169 [11:59:32]StoreOFDPacket docnum=228169 [11:59:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 05 99 07 01 CA F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 85 00 00 00 F4 03 04 00 A6 93 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 49 7B 03 00 35 04 06 00 75 B2 CC C6 26 CF B8 69 C3 0B E8 DA 29 8B [11:59:32]CheckFolder [11:59:32]dirname=/storage/ofd_packets [11:59:32]CheckFolder done [11:59:32]ProducePacketName [11:59:32]name=ofd_packets/00228169 [11:59:32]NVStorageSaveData ofd_packets/00228169 [11:59:32]File name is /storage/ofd_packets/00228169 [11:59:32]Write 301 bytes [11:59:32]NVStorageSaveData done [11:59:32]OFDSenderStorePacket done [11:59:32]KKMCreateOFDPacket done [11:59:32]NVStorageSaveData kkm_last_timestamp [11:59:32]File name is /storage/kkm_last_timestamp [11:59:32]Write 4 bytes [11:59:32]NVStorageSaveData done [11:59:32]ExternCall_PrintAddStr [11:59:32]wPrintStart [11:59:32]Write to MH i2c: 01 00 00 42 29 6B [11:59:32]Write i2c OK [11:59:32]MH_I2C_Read... [11:59:32]Read from MH i2c: 01 [11:59:32]MH_I2C_Read... [11:59:32]Read from MH i2c: 01 07 00 [11:59:32]MH_I2C_Read... [11:59:32]Read from MH i2c: 01 07 00 42 29 00 00 00 00 00 FF 0F 80 [11:59:32]RasterBufferAndPrint [11:59:32]line Счет N : (1)1964602 [11:59:32]line ИНН: 02508201610067 [11:59:32]line Контрольно-Кассовый Чек [11:59:32]line ПРОДАЖА [11:59:32]line ТРК (МРК, ГНК) : 33 [11:59:32]line Товар: 2710124130 [11:59:32]line Аи-92-К-5 [11:59:32]line 4.490 * 66.90 [11:59:32]line = 300.38 [11:59:32]line НДС 12% НСП 1% [11:59:32]line > о реализуемом товаре [11:59:32]line ОКРУГЛЕНИЕ: -0.38 [11:59:32]line ИТОГО: 300.00 [11:59:32]line Внесено: 300.00 [11:59:32]line СДАЧА: 0.00 [11:59:32]line НСП 1% : 2.66 [11:59:32]line НДС 12% : 31.90 [11:59:32]line Наличными: 300.00 [11:59:32]line Безнал.: 0.00 [11:59:32]line Место: АЗС № 133 "Партнер Нефть" [11:59:32]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:59:32]line СНО: Общий режим [11:59:32]line Чек 133 22.10.2024 11:59 [11:59:32]line Смена: 535 ФФД: 1.0 [11:59:32]line ЗНМ: 0300000091 [11:59:32]line РНМ: 0000000000091685 [11:59:32]line Версия ККМ: 001 [11:59:32]line ФМ: 0000000000871839 [11:59:32]line ФД: 228169 [11:59:32]line ФПД: 129410800166607 [11:59:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115934&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228169&fm=129410800166607&tin=02508201610067®Number=0000000000091685&sum=30000 [11:59:32]written 0, free lines is 4095 [11:59:32]OFD Sender: Processing packet 228169 [packets to send 38, broken 37] [11:59:32]ProducePacketName [11:59:32]name=ofd_packets/00228169 [11:59:32]OFD Sender: To server: pG, [11:59:32]CommunicateWithHost lk.salyk.kg:30040 [11:59:32]ConnectInit lk.salyk.kg [11:59:32]Connected sock=7 [11:59:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 05 99 07 01 CA F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 85 00 00 00 F4 03 04 00 A6 93 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 49 7B 03 00 35 04 06 00 75 B2 CC C6 26 CF B8 69 C3 0B E8 DA 29 8B [11:59:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 15 1C 47 00 69 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 49 7B 03 00 F4 03 04 00 9E 3E 17 67 B6 04 01 00 00 33 D7 39 C2 84 B8 76 EA [11:59:32]CommunicateWithHost err = 0 [11:59:32]CheckOFDResponse [11:59:32]1017 (14) - 77093643461234 [11:59:32]1041 (16) - 0000000000871839 [11:59:32]1040 (4) - 228169 [11:59:32]1012 (4) - 22.10.2024 05:56 [11:59:32]1206 (1) - 0 [11:59:32]OFD Sender: Remove packet 228169 [11:59:32]ProducePacketName [11:59:32]name=ofd_packets/00228169 [11:59:32]NVStorageDeleteData [11:59:33]Write to MH i2c: 01 00 00 6C 29 95 [11:59:33]Write i2c OK [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: 01 [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: 01 07 00 [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: 01 07 00 6C 29 00 00 00 00 00 CA 0C 72 [11:59:33]RasterBufferAndPrint [11:59:33]line [11:59:33]line [11:59:33]line [11:59:33]line [11:59:33]line [11:59:33]written 0, free lines is 3280 [11:59:33]MH_Cut [11:59:33]Write to MH i2c: D1 01 00 73 29 01 6E [11:59:33]Write i2c OK [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: D1 [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: D1 01 00 [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: D1 01 00 73 29 00 6D [11:59:33]Write to MH i2c: 01 00 00 74 29 9D [11:59:33]Write i2c OK [11:59:33]MH_I2C_Read... [11:59:33]OFD Sender: No OFD packet to send [11:59:33]*** Cut start [11:59:33]*** Partial cut [11:59:33]*** CUTSNS_PIN = 1 [11:59:33]*** CUTSNS_PIN = 0 [11:59:34]*** Brake cut motor [11:59:34]Read from MH i2c: 01 [11:59:34]MH_I2C_Read... [11:59:34]*** Stop cut motor [11:59:34]*** Cut end [11:59:34]Read from MH i2c: 01 07 00 [11:59:34]MH_I2C_Read... [11:59:34]Read from MH i2c: 01 07 00 74 29 00 00 00 00 00 FF 0F B2 [11:59:34]process_action close_receipt done [11:59:34]requested_data is exist [11:59:34]produce_requested_data [11:59:34]requested_item fm.sn is exist - process it [11:59:34]wFMCommunicate request_size=4 [11:59:34]MH_SAM_APDU [11:59:34]CAPDU: 80 11 00 00 [11:59:34]Write to MH i2c: E2 08 00 75 29 80 11 00 00 00 00 00 00 18 [11:59:34]Write i2c OK [11:59:34]MH_I2C_Read... [11:59:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:34]Read from MH i2c: E2 [11:59:34]MH_I2C_Read... [11:59:34]Read from MH i2c: E2 17 00 [11:59:34]MH_I2C_Read... [11:59:34]Read from MH i2c: E2 17 00 75 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6F [11:59:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:59:34]wFMCommunicate OK [11:59:34]requested_item fd.num is exist - process it [11:59:34]SAM_PROTO_GetFieldsCounters [11:59:34]wFMCommunicate request_size=4 [11:59:34]MH_SAM_APDU [11:59:34]CAPDU: 80 13 00 00 [11:59:34]Write to MH i2c: E2 08 00 76 29 80 13 00 00 00 00 00 00 1B [11:59:34]Write i2c OK [11:59:34]MH_I2C_Read... [11:59:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:34]Read from MH i2c: E2 [11:59:34]MH_I2C_Read... [11:59:34]Read from MH i2c: E2 62 00 [11:59:34]MH_I2C_Read... [11:59:34]Read from MH i2c: E2 62 00 76 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 49 7B 03 00 0E 04 04 00 17 02 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 B3 [11:59:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 49 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:59:34]wFMCommunicate OK [11:59:34]SAM_PROTO_GetFieldsCounters done [11:59:34]requested_item shift.num is exist - process it [11:59:34]requested_item shift.opened is exist - process it [11:59:34]req_shift_opened [11:59:34]FM_GetShiftState [11:59:34]SAM_PROTO_GetShiftState [11:59:34]wFMCommunicate request_size=4 [11:59:34]MH_SAM_APDU [11:59:34]CAPDU: 80 13 01 00 [11:59:34]Write to MH i2c: E2 08 00 77 29 80 13 01 00 00 00 00 00 1D [11:59:34]Write i2c OK [11:59:34]MH_I2C_Read... [11:59:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:34]Read from MH i2c: E2 [11:59:34]MH_I2C_Read... [11:59:34]Read from MH i2c: E2 0E 00 [11:59:34]MH_I2C_Read... [11:59:34]Read from MH i2c: E2 0E 00 77 29 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 E4 [11:59:34]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [11:59:34]wFMCommunicate OK [11:59:34]SAM_PROTO_GetShiftState done [11:59:34]FM_GetShiftState done [11:59:34]req_shift_opened done [11:59:34]requested_item shift.open_date is exist - process it [11:59:34]req_shift_open_date [11:59:34]req_shift_open_date done [11:59:34]produce_requested_data done [11:59:34]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228169,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [11:59:34]process_action_free close_receipt [11:59:34]json_value_free [11:59:34]json_value_free done [11:59:34]process_json_proto returns [11:59:34]Send response to host [11:59:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228169,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [11:59:34]free response buf [11:59:34]execute_script done [11:59:34]execute_script returns [11:59:34]free content buf [11:59:34]Sock 9.Close socket [11:59:34]Sock 9.Thread stoped [11:59:38]OFD Sender: No OFD packet to send [11:59:43]OFD Sender: No OFD packet to send [11:59:48]OFD Sender: No OFD packet to send [11:59:53]OFD Sender: No OFD packet to send [11:59:58]OFD Sender: No OFD packet to send [12:00:03]OFD Sender: No OFD packet to send [12:00:08]OFD Sender: No OFD packet to send [12:00:13]OFD Sender: No OFD packet to send [12:00:18]OFD Sender: No OFD packet to send [12:00:23]OFD Sender: No OFD packet to send [12:00:28]OFD Sender: No OFD packet to send [12:00:33]OFD Sender: No OFD packet to send [12:00:38]OFD Sender: No OFD packet to send [12:00:43]OFD Sender: No OFD packet to send [12:00:48]OFD Sender: No OFD packet to send [12:00:53]OFD Sender: No OFD packet to send [12:00:58]OFD Sender: No OFD packet to send [12:01:03]OFD Sender: No OFD packet to send [12:01:08]OFD Sender: No OFD packet to send [12:01:13]accept exits with 10 [12:01:13]New connection [12:01:13]New thread 3067137380 created [12:01:13]Thread 3066994020 joined [12:01:13]Waiting for new connection... [12:01:13] Sock 10.Parse request [12:01:13]Sock 10.Check first char [12:01:13]Sock 10.First char is OK [12:01:13]request: POST /json_proto HTTP/1.0 [12:01:13]Method: POST [12:01:13]URL: /json_proto [12:01:13]Method is POST - this is cgi request [12:01:13]url: /json_proto [12:01:13]query_string will be loaded in cgi processing [12:01:13]execute_cgi json_proto POST (null) [12:01:13]execute_cgi path=json_proto method=POST [12:01:13]POST find Content-Length [12:01:13]Host: 172.17.44.195:8080 [12:01:13]Content-Length: 790 [12:01:13]Content-Type: application/json [12:01:13] [12:01:13]POST finish read [12:01:13]Found Content-Length = 790 [12:01:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53608", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:13]execute_script... [12:01: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)1964603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53608", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:13]POST & json_proto [12:01:13]process_json_proto [12:01:13]json parsed OK: [12:01:13]protocol is kg_v1.0 [12:01:13]action value=close_receipt [12:01:13]process_action close_receipt [12:01:13]cmd_close_receipt [12:01:13]MH_GetDate [12:01:13]Write to MH i2c: F0 00 00 78 29 90 [12:01:13]OFD Sender: No OFD packet to send [12:01:13]Write i2c OK [12:01:13]MH_I2C_Read... [12:01:13]Read from MH i2c: F0 [12:01:13]MH_I2C_Read... [12:01:13]Read from MH i2c: F0 09 00 [12:01:13]MH_I2C_Read... [12:01:13]Read from MH i2c: F0 09 00 78 29 00 0D 94 17 67 82 C9 CF 66 38 [12:01:13]GetLastDocTimeStamp 1729598374 [12:01:13]current date 1729598477 [12:01:13]FM_GetShiftState [12:01:13]SAM_PROTO_GetShiftState [12:01:13]wFMCommunicate request_size=4 [12:01:13]MH_SAM_APDU [12:01:13]CAPDU: 80 13 01 00 [12:01:13]Write to MH i2c: E2 08 00 79 29 80 13 01 00 00 00 00 00 1F [12:01:13]Write i2c OK [12:01:13]MH_I2C_Read... [12:01:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:13]Read from MH i2c: E2 [12:01:13]MH_I2C_Read... [12:01:13]Read from MH i2c: E2 0E 00 [12:01:13]MH_I2C_Read... [12:01:13]Read from MH i2c: E2 0E 00 79 29 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 E6 [12:01:13]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:01:13]wFMCommunicate OK [12:01:13]SAM_PROTO_GetShiftState done [12:01:13]FM_GetShiftState done [12:01:13]opened in 1729555538 [12:01:13]opened+sec_in_day 1729641938 [12:01:13]quantity*price = 0 [12:01:13]sum+1 = 1 [12:01:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 134 22.10.2024 12:01 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливная Карта 53608 ФМ: 0000000000871839 ФД: 228170 ФПД: 15334298507701 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120117&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228170&fm=15334298507701&tin=02508201610067®Number=0000000000091685&sum=0 [12:01:14]StoreToDocumentArchive [12:01:14]shift 535 fd 228170 [12:01:14]save to /storage/0535/doc_00228170 [12:01:14]save last doc name /storage/0535/doc_00228170 to /storage/kkm_last_doc_name [12:01:14]save OK [12:01:14]Clear old archive folders... [12:01:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:01:14]tlvbuf is B6DD5770 [12:01:14]SAM_PROTO_ClearQueue [12:01:14]wFMCommunicate request_size=4 [12:01:14]MH_SAM_APDU [12:01:14]CAPDU: 80 09 00 00 [12:01:14]Write to MH i2c: E2 08 00 86 29 80 09 00 00 00 00 00 00 21 [12:01:14]Write i2c OK [12:01:14]MH_I2C_Read... [12:01:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:14]Read from MH i2c: E2 [12:01:14]MH_I2C_Read... [12:01:14]Read from MH i2c: E2 03 00 [12:01:14]MH_I2C_Read... [12:01:14]Read from MH i2c: E2 03 00 86 29 00 90 00 23 [12:01:14]RAPDU: 90 00 [12:01:14]wFMCommunicate OK [12:01:14]SAM_PROTO_ClearQueue done [12:01:14]KKMCreateOFDPacket [12:01:14]OFDProtocolAddRootSTLVToBuf [12:01:14]FM_MakeSignedData [12:01:14]FM_MakeSignedData [12:01:14]SAM_PROTO_SignData [12:01:14]wFMCommunicate request_size=4 [12:01:14]MH_SAM_APDU [12:01:14]CAPDU: 80 0D 01 02 [12:01:14]Write to MH i2c: E2 08 00 87 29 80 0D 01 02 00 00 00 00 29 [12:01:14]Write i2c OK [12:01:14]MH_I2C_Read... [12:01:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:14]Read from MH i2c: E2 [12:01:14]MH_I2C_Read... [12:01:14]Read from MH i2c: E2 03 00 [12:01:14]MH_I2C_Read... [12:01:14]Read from MH i2c: E2 03 00 87 29 00 90 00 24 [12:01:14]RAPDU: 90 00 [12:01:14]wFMCommunicate OK [12:01:14]wFMCommunicate request_size=255 [12:01:14]MH_SAM_APDU [12:01: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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 0D 94 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4A 7B 03 00 35 04 06 00 0D F2 4B 6A [12:01:14]Write to MH i2c: E2 02 01 88 29 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 0D 94 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4A 7B 03 00 35 04 06 00 0D F2 4B 6A 00 00 B8 [12:01:14]Write i2c OK [12:01:14]MH_I2C_Read... [12:01:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:15]Read from MH i2c: E2 [12:01:15]MH_I2C_Read... [12:01:15]Read from MH i2c: E2 03 00 [12:01:15]MH_I2C_Read... [12:01:15]Read from MH i2c: E2 03 00 88 29 00 90 00 25 [12:01:15]RAPDU: 90 00 [12:01:15]wFMCommunicate OK [12:01:15]wFMCommunicate request_size=7 [12:01:15]MH_SAM_APDU [12:01:15]CAPDU: 80 0D 02 02 02 59 B5 [12:01:15]Write to MH i2c: E2 0A 00 89 29 80 0D 02 02 02 00 59 B5 00 00 3E [12:01:15]Write i2c OK [12:01:15]MH_I2C_Read... [12:01:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:15]Read from MH i2c: E2 [12:01:15]MH_I2C_Read... [12:01:15]Read from MH i2c: E2 03 00 [12:01:15]MH_I2C_Read... [12:01:15]Read from MH i2c: E2 03 00 89 29 00 90 00 26 [12:01:15]RAPDU: 90 00 [12:01:15]wFMCommunicate OK [12:01:15]wFMCommunicate request_size=4 [12:01:15]MH_SAM_APDU [12:01:15]CAPDU: 80 0D 03 02 [12:01:15]Write to MH i2c: E2 08 00 8A 29 80 0D 03 02 00 00 00 00 2E [12:01:15]Write i2c OK [12:01:15]MH_I2C_Read... [12:01:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:15]Read from MH i2c: E2 [12:01:15]MH_I2C_Read... [12:01:15]Read from MH i2c: E2 0B 00 [12:01:15]MH_I2C_Read... [12:01:15]Read from MH i2c: E2 0B 00 8A 29 00 D1 21 77 F8 4E 10 E8 46 90 00 1C [12:01:15]RAPDU: D1 21 77 F8 4E 10 E8 46 90 00 [12:01:15]wFMCommunicate OK [12:01:15]SAM_PROTO_SignData done [12:01:15]FM_MakeSignedData done [12:01:15]CreateOFDProtocolMessage [12:01:15]wFMCommunicate request_size=4 [12:01:15]MH_SAM_APDU [12:01:15]CAPDU: 80 11 00 00 [12:01:15]Write to MH i2c: E2 08 00 8B 29 80 11 00 00 00 00 00 00 2E [12:01:15]Write i2c OK [12:01:15]MH_I2C_Read... [12:01:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:15]Read from MH i2c: E2 [12:01:15]MH_I2C_Read... [12:01:15]Read from MH i2c: E2 17 00 [12:01:15]MH_I2C_Read... [12:01:15]Read from MH i2c: E2 17 00 8B 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 85 [12:01:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:01:15]wFMCommunicate OK [12:01:15]CreateOFDProtocolMessage done [12:01:15]OFDSenderStorePacket 228170 [12:01:15]StoreOFDPacket docnum=228170 [12:01:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 F3 36 04 01 E5 3C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 0D 94 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4A 7B 03 00 35 04 06 00 0D F2 4B 6A 59 B5 D1 21 77 F8 4E 10 E8 46 [12:01:15]CheckFolder [12:01:15]dirname=/storage/ofd_packets [12:01:15]CheckFolder done [12:01:15]ProducePacketName [12:01:15]name=ofd_packets/00228170 [12:01:15]NVStorageSaveData ofd_packets/00228170 [12:01:15]File name is /storage/ofd_packets/00228170 [12:01:15]Write 298 bytes [12:01:15]NVStorageSaveData done [12:01:15]OFDSenderStorePacket done [12:01:15]KKMCreateOFDPacket done [12:01:15]NVStorageSaveData kkm_last_timestamp [12:01:15]File name is /storage/kkm_last_timestamp [12:01:15]Write 4 bytes [12:01:15]NVStorageSaveData done [12:01:15]ExternCall_PrintAddStr [12:01:15]wPrintStart [12:01:15]Write to MH i2c: 01 00 00 8C 29 B5 [12:01:15]Write i2c OK [12:01:15]MH_I2C_Read... [12:01:15]Read from MH i2c: 01 [12:01:15]MH_I2C_Read... [12:01:15]Read from MH i2c: 01 07 00 [12:01:15]MH_I2C_Read... [12:01:15]Read from MH i2c: 01 07 00 8C 29 00 00 00 00 00 FF 0F CA [12:01:15]RasterBufferAndPrint [12:01:15]line Счет N : (1)1964603 [12:01:15]line ИНН: 02508201610067 [12:01:15]line Контрольно-Кассовый Чек [12:01:15]line ПРОДАЖА [12:01:15]line ТРК (МРК, ГНК) : 41 [12:01:15]line Товар: 2710194210 [12:01:15]line ДТ-К-5 [12:01:15]line 26.250 * 0.00 [12:01:15]line = 0.00 [12:01:15]line НДС 12% НСП 1% [12:01:15]line > о реализуемом товаре [12:01:15]line ИТОГО: 0.00 [12:01:15]line НСП 1% : 0.00 [12:01:15]line НДС 12% : 0.00 [12:01:15]line Наличными: 0.00 [12:01:15]line Безнал.: 0.00 [12:01:15]line Место: АЗС № 133 "Партнер Нефть" [12:01:15]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:01:15]line СНО: Общий режим [12:01:15]line Чек 134 22.10.2024 12:01 [12:01:15]line Смена: 535 ФФД: 1.0 [12:01:15]line ЗНМ: 0300000091 [12:01:15]line РНМ: 0000000000091685 [12:01:15]line Версия ККМ: 001 [12:01:15]line Талоны: Топливная Карта [12:01:15]line 53608 [12:01:15]line ФМ: 0000000000871839 [12:01:15]line ФД: 228170 [12:01:15]line ФПД: 15334298507701 [12:01:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120117&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228170&fm=15334298507701&tin=02508201610067®Number=0000000000091685&sum=0 [12:01:15]OFD Sender: Processing packet 228170 [packets to send 38, broken 37] [12:01:15]ProducePacketName [12:01:15]name=ofd_packets/00228170 [12:01:15]OFD Sender: To server: pG, [12:01:15]CommunicateWithHost lk.salyk.kg:30040 [12:01:15]ConnectInit lk.salyk.kg [12:01:15]written 0, free lines is 4095 [12:01:15]Connected sock=9 [12:01:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 F3 36 04 01 E5 3C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 0D 94 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4A 7B 03 00 35 04 06 00 0D F2 4B 6A 59 B5 D1 21 77 F8 4E 10 E8 46 [12:01:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 7A F1 47 00 72 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4A 7B 03 00 F4 03 04 00 05 3F 17 67 B6 04 01 00 00 4B 9E 8F 68 5E D5 52 5C [12:01:15]CommunicateWithHost err = 0 [12:01:15]CheckOFDResponse [12:01:15]1017 (14) - 77093643461234 [12:01:15]1041 (16) - 0000000000871839 [12:01:15]1040 (4) - 228170 [12:01:15]1012 (4) - 22.10.2024 05:58 [12:01:15]1206 (1) - 0 [12:01:15]OFD Sender: Remove packet 228170 [12:01:15]ProducePacketName [12:01:15]name=ofd_packets/00228170 [12:01:15]NVStorageDeleteData [12:01:16]Write to MH i2c: 01 00 00 B5 29 DE [12:01:16]Write i2c OK [12:01:16]MH_I2C_Read... [12:01:16]Read from MH i2c: 01 [12:01:16]MH_I2C_Read... [12:01:16]Read from MH i2c: 01 07 00 [12:01:16]MH_I2C_Read... [12:01:16]Read from MH i2c: 01 07 00 B5 29 00 00 00 00 00 D7 0C C8 [12:01:16]RasterBufferAndPrint [12:01:16]line [12:01:16]line [12:01:16]line [12:01:16]line [12:01:16]line [12:01:16]written 0, free lines is 3293 [12:01:16]MH_Cut [12:01:16]Write to MH i2c: D1 01 00 BC 29 01 B7 [12:01:16]Write i2c OK [12:01:16]MH_I2C_Read... [12:01:16]Read from MH i2c: D1 [12:01:16]MH_I2C_Read... [12:01:16]Read from MH i2c: D1 01 00 [12:01:16]MH_I2C_Read... [12:01:16]Read from MH i2c: D1 01 00 BC 29 00 B6 [12:01:16]Write to MH i2c: 01 00 00 BD 29 E6 [12:01:16]Write i2c OK [12:01:16]MH_I2C_Read... [12:01:16]OFD Sender: No OFD packet to send [12:01:16]*** Cut start [12:01:16]*** Partial cut [12:01:16]*** CUTSNS_PIN = 1 [12:01:16]*** CUTSNS_PIN = 0 [12:01:17]*** Brake cut motor [12:01:17]Read from MH i2c: 01 [12:01:17]MH_I2C_Read... [12:01:17]*** Stop cut motor [12:01:17]*** Cut end [12:01:17]Read from MH i2c: 01 07 00 [12:01:17]MH_I2C_Read... [12:01:17]Read from MH i2c: 01 07 00 BD 29 00 00 00 00 00 FF 0F FB [12:01:17]process_action close_receipt done [12:01:17]requested_data is exist [12:01:17]produce_requested_data [12:01:17]requested_item fm.sn is exist - process it [12:01:17]wFMCommunicate request_size=4 [12:01:17]MH_SAM_APDU [12:01:17]CAPDU: 80 11 00 00 [12:01:17]Write to MH i2c: E2 08 00 BE 29 80 11 00 00 00 00 00 00 61 [12:01:17]Write i2c OK [12:01:17]MH_I2C_Read... [12:01:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:17]Read from MH i2c: E2 [12:01:17]MH_I2C_Read... [12:01:17]Read from MH i2c: E2 17 00 [12:01:17]MH_I2C_Read... [12:01:17]Read from MH i2c: E2 17 00 BE 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B8 [12:01:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:01:17]wFMCommunicate OK [12:01:17]requested_item fd.num is exist - process it [12:01:17]SAM_PROTO_GetFieldsCounters [12:01:17]wFMCommunicate request_size=4 [12:01:17]MH_SAM_APDU [12:01:17]CAPDU: 80 13 00 00 [12:01:17]Write to MH i2c: E2 08 00 BF 29 80 13 00 00 00 00 00 00 64 [12:01:17]Write i2c OK [12:01:17]MH_I2C_Read... [12:01:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:17]Read from MH i2c: E2 [12:01:17]MH_I2C_Read... [12:01:17]Read from MH i2c: E2 62 00 [12:01:17]MH_I2C_Read... [12:01:17]Read from MH i2c: E2 62 00 BF 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4A 7B 03 00 0E 04 04 00 17 02 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 00 [12:01:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4A 7B 03 00 0E 04 04 00 17 02 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:01:17]wFMCommunicate OK [12:01:17]SAM_PROTO_GetFieldsCounters done [12:01:17]requested_item shift.num is exist - process it [12:01:17]requested_item shift.opened is exist - process it [12:01:17]req_shift_opened [12:01:17]FM_GetShiftState [12:01:17]SAM_PROTO_GetShiftState [12:01:17]wFMCommunicate request_size=4 [12:01:17]MH_SAM_APDU [12:01:17]CAPDU: 80 13 01 00 [12:01:17]Write to MH i2c: E2 08 00 C0 29 80 13 01 00 00 00 00 00 66 [12:01:17]Write i2c OK [12:01:17]MH_I2C_Read... [12:01:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:17]Read from MH i2c: E2 [12:01:17]MH_I2C_Read... [12:01:17]Read from MH i2c: E2 0E 00 [12:01:17]MH_I2C_Read... [12:01:17]Read from MH i2c: E2 0E 00 C0 29 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 2D [12:01:17]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:01:17]wFMCommunicate OK [12:01:17]SAM_PROTO_GetShiftState done [12:01:17]FM_GetShiftState done [12:01:17]req_shift_opened done [12:01:17]requested_item shift.open_date is exist - process it [12:01:17]req_shift_open_date [12:01:17]req_shift_open_date done [12:01:17]produce_requested_data done [12:01:17]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228170,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [12:01:17]process_action_free close_receipt [12:01:17]json_value_free [12:01:17]json_value_free done [12:01:17]process_json_proto returns [12:01:17]Send response to host [12:01:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228170,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [12:01:17]free response buf [12:01:17]execute_script done [12:01:17]execute_script returns [12:01:17]free content buf [12:01:17]Sock 10.Close socket [12:01:17]Sock 10.Thread stoped [12:01:21]OFD Sender: No OFD packet to send [12:01:26]OFD Sender: No OFD packet to send [12:01:31]OFD Sender: No OFD packet to send [12:01:36]OFD Sender: No OFD packet to send [12:01:41]OFD Sender: No OFD packet to send [12:01:46]OFD Sender: No OFD packet to send [12:01:51]accept exits with 7 [12:01:51]New connection [12:01:51]New thread 3066994020 created [12:01:51]Thread 3067137380 joined [12:01:51]Waiting for new connection... [12:01:51] Sock 7.Parse request [12:01:51]Sock 7.Check first char [12:01:51]Sock 7.First char is OK [12:01:51]request: POST /json_proto HTTP/1.0 [12:01:51]Method: POST [12:01:51]URL: /json_proto [12:01:51]Method is POST - this is cgi request [12:01:51]url: /json_proto [12:01:51]query_string will be loaded in cgi processing [12:01:51]execute_cgi json_proto POST (null) [12:01:51]execute_cgi path=json_proto method=POST [12:01:51]POST find Content-Length [12:01:51]Host: 172.17.44.195:8080 [12:01:51]Content-Length: 767 [12:01:51]Content-Type: application/json [12:01:51] [12:01:51]POST finish read [12:01:51]Found Content-Length = 767 [12:01:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964607", "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" : 66.90, "quantity" : 7.480, "sum" : 500.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: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:51]execute_script... [12:01: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)1964607", "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" : 66.90, "quantity" : 7.480, "sum" : 500.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: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:51]POST & json_proto [12:01:51]process_json_proto [12:01:51]json parsed OK: [12:01:51]protocol is kg_v1.0 [12:01:51]action value=close_receipt [12:01:51]process_action close_receipt [12:01:51]cmd_close_receipt [12:01:51]MH_GetDate [12:01:51]Write to MH i2c: F0 00 00 C1 29 D9 [12:01:51]Write i2c OK [12:01:51]MH_I2C_Read... [12:01:51]Read from MH i2c: F0 [12:01:51]MH_I2C_Read... [12:01:51]Read from MH i2c: F0 09 00 [12:01:51]MH_I2C_Read... [12:01:51]Read from MH i2c: F0 09 00 C1 29 00 32 94 17 67 82 C9 CF 66 A6 [12:01:51]GetLastDocTimeStamp 1729598477 [12:01:51]current date 1729598514 [12:01:51]FM_GetShiftState [12:01:51]SAM_PROTO_GetShiftState [12:01:51]wFMCommunicate request_size=4 [12:01:51]MH_SAM_APDU [12:01:51]CAPDU: 80 13 01 00 [12:01:51]Write to MH i2c: E2 08 00 C2 29 80 13 01 00 00 00 00 00 68 [12:01:51]Write i2c OK [12:01:51]MH_I2C_Read... [12:01:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:51]Read from MH i2c: E2 [12:01:51]MH_I2C_Read... [12:01:51]Read from MH i2c: E2 0E 00 [12:01:51]MH_I2C_Read... [12:01:51]Read from MH i2c: E2 0E 00 C2 29 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 2F [12:01:51]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:01:51]wFMCommunicate OK [12:01:51]SAM_PROTO_GetShiftState done [12:01:51]FM_GetShiftState done [12:01:51]opened in 1729555538 [12:01:51]opened+sec_in_day 1729641938 [12:01:51]quantity*price = 50041 [12:01:51]sum+1 = 50042 [12:01:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 135 22.10.2024 12:01 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 228171 ФПД: 110137757328125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120155&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228171&fm=110137757328125&tin=02508201610067®Number=0000000000091685&sum=50041 [12:01:52]StoreToDocumentArchive [12:01:52]shift 535 fd 228171 [12:01:52]save to /storage/0535/doc_00228171 [12:01:52]save last doc name /storage/0535/doc_00228171 to /storage/kkm_last_doc_name [12:01:52]save OK [12:01:52]Clear old archive folders... [12:01:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:01:52]tlvbuf is 0085AFA0 [12:01:52]SAM_PROTO_ClearQueue [12:01:52]wFMCommunicate request_size=4 [12:01:52]MH_SAM_APDU [12:01:52]CAPDU: 80 09 00 00 [12:01:52]Write to MH i2c: E2 08 00 CF 29 80 09 00 00 00 00 00 00 6A [12:01:52]Write i2c OK [12:01:52]MH_I2C_Read... [12:01:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:52]Read from MH i2c: E2 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 03 00 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 03 00 CF 29 00 90 00 6C [12:01:52]RAPDU: 90 00 [12:01:52]wFMCommunicate OK [12:01:52]SAM_PROTO_ClearQueue done [12:01:52]KKMCreateOFDPacket [12:01:52]OFDProtocolAddRootSTLVToBuf [12:01:52]FM_MakeSignedData [12:01:52]FM_MakeSignedData [12:01:52]SAM_PROTO_SignData [12:01:52]wFMCommunicate request_size=4 [12:01:52]MH_SAM_APDU [12:01:52]CAPDU: 80 0D 01 02 [12:01:52]Write to MH i2c: E2 08 00 D0 29 80 0D 01 02 00 00 00 00 72 [12:01:52]Write i2c OK [12:01:52]MH_I2C_Read... [12:01:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:52]Read from MH i2c: E2 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 03 00 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 03 00 D0 29 00 90 00 6D [12:01:52]RAPDU: 90 00 [12:01:52]wFMCommunicate OK [12:01:52]wFMCommunicate request_size=255 [12:01:52]MH_SAM_APDU [12:01:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 33 94 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4B 7B 03 00 35 04 06 00 64 [12:01:52]Write to MH i2c: E2 02 01 D1 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 33 94 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4B 7B 03 00 35 04 06 00 64 00 00 6D [12:01:52]Write i2c OK [12:01:52]MH_I2C_Read... [12:01:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:52]Read from MH i2c: E2 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 03 00 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 03 00 D1 29 00 90 00 6E [12:01:52]RAPDU: 90 00 [12:01:52]wFMCommunicate OK [12:01:52]wFMCommunicate request_size=10 [12:01:52]MH_SAM_APDU [12:01:52]CAPDU: 80 0D 02 02 05 2B 71 E6 E2 FD [12:01:52]Write to MH i2c: E2 0D 00 D2 29 80 0D 02 02 05 00 2B 71 E6 E2 FD 00 00 E0 [12:01:52]Write i2c OK [12:01:52]MH_I2C_Read... [12:01:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:52]Read from MH i2c: E2 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 03 00 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 03 00 D2 29 00 90 00 6F [12:01:52]RAPDU: 90 00 [12:01:52]wFMCommunicate OK [12:01:52]wFMCommunicate request_size=4 [12:01:52]MH_SAM_APDU [12:01:52]CAPDU: 80 0D 03 02 [12:01:52]Write to MH i2c: E2 08 00 D3 29 80 0D 03 02 00 00 00 00 77 [12:01:52]Write i2c OK [12:01:52]MH_I2C_Read... [12:01:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:52]Read from MH i2c: E2 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 0B 00 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 0B 00 D3 29 00 C1 E2 80 91 4C B8 A0 74 90 00 44 [12:01:52]RAPDU: C1 E2 80 91 4C B8 A0 74 90 00 [12:01:52]wFMCommunicate OK [12:01:52]SAM_PROTO_SignData done [12:01:52]FM_MakeSignedData done [12:01:52]CreateOFDProtocolMessage [12:01:52]wFMCommunicate request_size=4 [12:01:52]MH_SAM_APDU [12:01:52]CAPDU: 80 11 00 00 [12:01:52]Write to MH i2c: E2 08 00 D4 29 80 11 00 00 00 00 00 00 77 [12:01:52]Write i2c OK [12:01:52]MH_I2C_Read... [12:01:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:52]Read from MH i2c: E2 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 17 00 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 17 00 D4 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CE [12:01:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:01:52]wFMCommunicate OK [12:01:52]CreateOFDProtocolMessage done [12:01:52]OFDSenderStorePacket 228171 [12:01:52]StoreOFDPacket docnum=228171 [12:01:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 AD CD 07 01 EE 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 33 94 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4B 7B 03 00 35 04 06 00 64 2B 71 E6 E2 FD C1 E2 80 91 4C B8 A0 74 [12:01:52]CheckFolder [12:01:52]dirname=/storage/ofd_packets [12:01:52]CheckFolder done [12:01:52]ProducePacketName [12:01:52]name=ofd_packets/00228171 [12:01:52]NVStorageSaveData ofd_packets/00228171 [12:01:52]File name is /storage/ofd_packets/00228171 [12:01:52]Write 301 bytes [12:01:52]NVStorageSaveData done [12:01:52]OFDSenderStorePacket done [12:01:52]KKMCreateOFDPacket done [12:01:52]NVStorageSaveData kkm_last_timestamp [12:01:52]File name is /storage/kkm_last_timestamp [12:01:52]Write 4 bytes [12:01:52]NVStorageSaveData done [12:01:52]ExternCall_PrintAddStr [12:01:52]wPrintStart [12:01:52]Write to MH i2c: 01 00 00 D5 29 FE [12:01:52]Write i2c OK [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: 01 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: 01 07 00 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: 01 07 00 D5 29 00 00 00 00 00 FF 0F 13 [12:01:52]RasterBufferAndPrint [12:01:52]line Счет N : (1)1964607 [12:01:52]line ИНН: 02508201610067 [12:01:52]line Контрольно-Кассовый Чек [12:01:52]line ПРОДАЖА [12:01:52]line ТРК (МРК, ГНК) : 53 [12:01:52]line Товар: 2710124130 [12:01:52]line Аи-92-К-5 [12:01:52]line 7.480 * 66.90 [12:01:52]line = 500.41 [12:01:52]line НДС 12% НСП 1% [12:01:52]line > о реализуемом товаре [12:01:52]line ИТОГО: 500.41 [12:01:52]line НСП 1% : 4.43 [12:01:52]line НДС 12% : 53.14 [12:01:52]line Наличными: 0.00 [12:01:52]line Безнал.: 500.41 [12:01:52]line Место: АЗС № 133 "Партнер Нефть" [12:01:52]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:01:52]line СНО: Общий режим [12:01:52]line Чек 135 22.10.2024 12:01 [12:01:52]line Смена: 535 ФФД: 1.0 [12:01:52]line ЗНМ: 0300000091 [12:01:52]line РНМ: 0000000000091685 [12:01:52]line Версия ККМ: 001 [12:01:52]line Платежная система: Mbank [12:01:52]line ФМ: 0000000000871839 [12:01:52]line ФД: 228171 [12:01:52]line ФПД: 110137757328125 [12:01:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120155&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228171&fm=110137757328125&tin=02508201610067®Number=0000000000091685&sum=50041 [12:01:52]written 0, free lines is 4095 [12:01:52]OFD Sender: Processing packet 228171 [packets to send 38, broken 37] [12:01:52]ProducePacketName [12:01:52]name=ofd_packets/00228171 [12:01:53]OFD Sender: To server: pG, [12:01:53]CommunicateWithHost lk.salyk.kg:30040 [12:01:53]ConnectInit lk.salyk.kg [12:01:53]Write to MH i2c: 01 00 00 FD 29 26 [12:01:53]Write i2c OK [12:01:53]MH_I2C_Read... [12:01:53]Read from MH i2c: 01 [12:01:53]MH_I2C_Read... [12:01:53]Read from MH i2c: 01 07 00 [12:01:53]MH_I2C_Read... [12:01:53]Connected sock=10 [12:01:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 AD CD 07 01 EE 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 33 94 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4B 7B 03 00 35 04 06 00 64 2B 71 E6 E2 FD C1 E2 80 91 4C B8 A0 74 [12:01:53]Read from MH i2c: 01 07 00 FD 29 00 00 00 00 00 E2 0C 1B [12:01:53]RasterBufferAndPrint [12:01:53]line [12:01:53]line [12:01:53]line [12:01:53]line [12:01:53]line [12:01:53]written 0, free lines is 3312 [12:01:53]MH_Cut [12:01:53]Write to MH i2c: D1 01 00 04 2A 01 00 [12:01:53]Write i2c OK [12:01:53]MH_I2C_Read... [12:01:53]Read from MH i2c: D1 [12:01:53]MH_I2C_Read... [12:01:53]Read from MH i2c: D1 01 00 [12:01:53]MH_I2C_Read... [12:01:53]Read from MH i2c: D1 01 00 04 2A 00 FF [12:01:53]Write to MH i2c: 01 00 00 05 2A 2F [12:01:53]Write i2c OK [12:01:53]MH_I2C_Read... [12:01:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 14 D8 47 00 B3 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4B 7B 03 00 F4 03 04 00 2B 3F 17 67 B6 04 01 00 00 F5 95 43 1B DD CC E2 0D [12:01:53]CommunicateWithHost err = 0 [12:01:53]CheckOFDResponse [12:01:53]1017 (14) - 77093643461234 [12:01:53]1041 (16) - 0000000000871839 [12:01:53]1040 (4) - 228171 [12:01:53]1012 (4) - 22.10.2024 05:59 [12:01:53]1206 (1) - 0 [12:01:53]OFD Sender: Remove packet 228171 [12:01:53]ProducePacketName [12:01:53]name=ofd_packets/00228171 [12:01:53]NVStorageDeleteData [12:01:54]OFD Sender: No OFD packet to send [12:01:54]*** Cut start [12:01:54]*** Partial cut [12:01:54]*** CUTSNS_PIN = 1 [12:01:54]*** CUTSNS_PIN = 0 [12:01:54]*** Brake cut motor [12:01:54]Read from MH i2c: 01 [12:01:54]MH_I2C_Read... [12:01:54]*** Stop cut motor [12:01:54]*** Cut end [12:01:54]Read from MH i2c: 01 07 00 [12:01:54]MH_I2C_Read... [12:01:54]Read from MH i2c: 01 07 00 05 2A 00 00 00 00 00 FF 0F 44 [12:01:54]process_action close_receipt done [12:01:54]requested_data is exist [12:01:54]produce_requested_data [12:01:54]requested_item fm.sn is exist - process it [12:01:54]wFMCommunicate request_size=4 [12:01:54]MH_SAM_APDU [12:01:54]CAPDU: 80 11 00 00 [12:01:54]Write to MH i2c: E2 08 00 06 2A 80 11 00 00 00 00 00 00 AA [12:01:54]Write i2c OK [12:01:54]MH_I2C_Read... [12:01:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:54]Read from MH i2c: E2 [12:01:54]MH_I2C_Read... [12:01:54]Read from MH i2c: E2 17 00 [12:01:54]MH_I2C_Read... [12:01:54]Read from MH i2c: E2 17 00 06 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 01 [12:01:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:01:54]wFMCommunicate OK [12:01:54]requested_item fd.num is exist - process it [12:01:54]SAM_PROTO_GetFieldsCounters [12:01:54]wFMCommunicate request_size=4 [12:01:54]MH_SAM_APDU [12:01:54]CAPDU: 80 13 00 00 [12:01:54]Write to MH i2c: E2 08 00 07 2A 80 13 00 00 00 00 00 00 AD [12:01:54]Write i2c OK [12:01:54]MH_I2C_Read... [12:01:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:54]Read from MH i2c: E2 [12:01:54]MH_I2C_Read... [12:01:54]Read from MH i2c: E2 62 00 [12:01:54]MH_I2C_Read... [12:01:54]Read from MH i2c: E2 62 00 07 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4B 7B 03 00 0E 04 04 00 17 02 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 4D [12:01:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4B 7B 03 00 0E 04 04 00 17 02 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:01:54]wFMCommunicate OK [12:01:54]SAM_PROTO_GetFieldsCounters done [12:01:54]requested_item shift.num is exist - process it [12:01:54]requested_item shift.opened is exist - process it [12:01:54]req_shift_opened [12:01:54]FM_GetShiftState [12:01:54]SAM_PROTO_GetShiftState [12:01:54]wFMCommunicate request_size=4 [12:01:54]MH_SAM_APDU [12:01:54]CAPDU: 80 13 01 00 [12:01:54]Write to MH i2c: E2 08 00 08 2A 80 13 01 00 00 00 00 00 AF [12:01:54]Write i2c OK [12:01:54]MH_I2C_Read... [12:01:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:54]Read from MH i2c: E2 [12:01:54]MH_I2C_Read... [12:01:54]Read from MH i2c: E2 0E 00 [12:01:54]MH_I2C_Read... [12:01:54]Read from MH i2c: E2 0E 00 08 2A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 76 [12:01:54]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:01:54]wFMCommunicate OK [12:01:54]SAM_PROTO_GetShiftState done [12:01:54]FM_GetShiftState done [12:01:54]req_shift_opened done [12:01:54]requested_item shift.open_date is exist - process it [12:01:54]req_shift_open_date [12:01:54]req_shift_open_date done [12:01:54]produce_requested_data done [12:01:54]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228171,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [12:01:54]process_action_free close_receipt [12:01:54]json_value_free [12:01:54]json_value_free done [12:01:54]process_json_proto returns [12:01:54]Send response to host [12:01:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228171,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [12:01:54]free response buf [12:01:54]execute_script done [12:01:54]execute_script returns [12:01:54]free content buf [12:01:54]Sock 7.Close socket [12:01:54]Sock 7.Thread stoped [12:01:59]OFD Sender: No OFD packet to send [12:02:04]OFD Sender: No OFD packet to send [12:02:08]accept exits with 9 [12:02:08]New connection [12:02:08]New thread 3067137380 created [12:02:08]Thread 3066994020 joined [12:02:08]Waiting for new connection... [12:02:08] Sock 9.Parse request [12:02:08]Sock 9.Check first char [12:02:08]Sock 9.First char is OK [12:02:08]request: POST /json_proto HTTP/1.0 [12:02:08]Method: POST [12:02:08]URL: /json_proto [12:02:08]Method is POST - this is cgi request [12:02:08]url: /json_proto [12:02:08]query_string will be loaded in cgi processing [12:02:08]execute_cgi json_proto POST (null) [12:02:08]execute_cgi path=json_proto method=POST [12:02:08]POST find Content-Length [12:02:08]Host: 172.17.44.195:8080 [12:02:08]Content-Length: 790 [12:02:08]Content-Type: application/json [12:02:08] [12:02:08]POST finish read [12:02:08]Found Content-Length = 790 [12:02:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964606", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53608", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:08]execute_script... [12:02:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964606", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53608", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:08]POST & json_proto [12:02:08]process_json_proto [12:02:08]json parsed OK: [12:02:08]protocol is kg_v1.0 [12:02:08]action value=close_receipt [12:02:08]process_action close_receipt [12:02:08]cmd_close_receipt [12:02:08]MH_GetDate [12:02:08]Write to MH i2c: F0 00 00 09 2A 22 [12:02:08]Write i2c OK [12:02:08]MH_I2C_Read... [12:02:08]Read from MH i2c: F0 [12:02:08]MH_I2C_Read... [12:02:08]Read from MH i2c: F0 09 00 [12:02:08]MH_I2C_Read... [12:02:08]Read from MH i2c: F0 09 00 09 2A 00 44 94 17 67 82 C9 CF 66 01 [12:02:08]GetLastDocTimeStamp 1729598515 [12:02:08]current date 1729598532 [12:02:08]FM_GetShiftState [12:02:08]SAM_PROTO_GetShiftState [12:02:08]wFMCommunicate request_size=4 [12:02:08]MH_SAM_APDU [12:02:08]CAPDU: 80 13 01 00 [12:02:08]Write to MH i2c: E2 08 00 0A 2A 80 13 01 00 00 00 00 00 B1 [12:02:08]Write i2c OK [12:02:08]MH_I2C_Read... [12:02:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:08]Read from MH i2c: E2 [12:02:08]MH_I2C_Read... [12:02:08]Read from MH i2c: E2 0E 00 [12:02:08]MH_I2C_Read... [12:02:08]Read from MH i2c: E2 0E 00 0A 2A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 78 [12:02:08]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:02:08]wFMCommunicate OK [12:02:08]SAM_PROTO_GetShiftState done [12:02:08]FM_GetShiftState done [12:02:08]opened in 1729555538 [12:02:08]opened+sec_in_day 1729641938 [12:02:08]quantity*price = 0 [12:02:08]sum+1 = 1 [12:02:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 136 22.10.2024 12:02 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливная Карта 53608 ФМ: 0000000000871839 ФД: 228172 ФПД: 92562676508520 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120212&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228172&fm=92562676508520&tin=02508201610067®Number=0000000000091685&sum=0 [12:02:09]StoreToDocumentArchive [12:02:09]shift 535 fd 228172 [12:02:09]save to /storage/0535/doc_00228172 [12:02:09]save last doc name /storage/0535/doc_00228172 to /storage/kkm_last_doc_name [12:02:09]save OK [12:02:09]Clear old archive folders... [12:02:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:02:09]tlvbuf is 0091B180 [12:02:09]SAM_PROTO_ClearQueue [12:02:09]wFMCommunicate request_size=4 [12:02:09]MH_SAM_APDU [12:02:09]CAPDU: 80 09 00 00 [12:02:09]Write to MH i2c: E2 08 00 17 2A 80 09 00 00 00 00 00 00 B3 [12:02:09]Write i2c OK [12:02:09]MH_I2C_Read... [12:02:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:09]Read from MH i2c: E2 [12:02:09]MH_I2C_Read... [12:02:09]Read from MH i2c: E2 03 00 [12:02:09]MH_I2C_Read... [12:02:09]Read from MH i2c: E2 03 00 17 2A 00 90 00 B5 [12:02:09]RAPDU: 90 00 [12:02:09]wFMCommunicate OK [12:02:09]SAM_PROTO_ClearQueue done [12:02:09]KKMCreateOFDPacket [12:02:09]OFDProtocolAddRootSTLVToBuf [12:02:09]FM_MakeSignedData [12:02:09]FM_MakeSignedData [12:02:09]SAM_PROTO_SignData [12:02:09]wFMCommunicate request_size=4 [12:02:09]MH_SAM_APDU [12:02:09]CAPDU: 80 0D 01 02 [12:02:09]Write to MH i2c: E2 08 00 18 2A 80 0D 01 02 00 00 00 00 BB [12:02:09]Write i2c OK [12:02:09]MH_I2C_Read... [12:02:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:09]Read from MH i2c: E2 [12:02:09]MH_I2C_Read... [12:02:09]Read from MH i2c: E2 03 00 [12:02:09]MH_I2C_Read... [12:02:09]Read from MH i2c: E2 03 00 18 2A 00 90 00 B6 [12:02:09]RAPDU: 90 00 [12:02:09]wFMCommunicate OK [12:02:09]wFMCommunicate request_size=255 [12:02:09]MH_SAM_APDU [12:02:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 44 94 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4C 7B 03 00 35 04 06 00 54 2F 6D 73 [12:02:09]Write to MH i2c: E2 02 01 19 2A 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 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 44 94 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4C 7B 03 00 35 04 06 00 54 2F 6D 73 00 00 B2 [12:02:09]Write i2c OK [12:02:09]MH_I2C_Read... [12:02:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:10]Read from MH i2c: E2 [12:02:10]MH_I2C_Read... [12:02:10]Read from MH i2c: E2 03 00 [12:02:10]MH_I2C_Read... [12:02:10]Read from MH i2c: E2 03 00 19 2A 00 90 00 B7 [12:02:10]RAPDU: 90 00 [12:02:10]wFMCommunicate OK [12:02:10]wFMCommunicate request_size=7 [12:02:10]MH_SAM_APDU [12:02:10]CAPDU: 80 0D 02 02 02 E7 68 [12:02:10]Write to MH i2c: E2 0A 00 1A 2A 80 0D 02 02 02 00 E7 68 00 00 11 [12:02:10]Write i2c OK [12:02:10]MH_I2C_Read... [12:02:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:10]Read from MH i2c: E2 [12:02:10]MH_I2C_Read... [12:02:10]Read from MH i2c: E2 03 00 [12:02:10]MH_I2C_Read... [12:02:10]Read from MH i2c: E2 03 00 1A 2A 00 90 00 B8 [12:02:10]RAPDU: 90 00 [12:02:10]wFMCommunicate OK [12:02:10]wFMCommunicate request_size=4 [12:02:10]MH_SAM_APDU [12:02:10]CAPDU: 80 0D 03 02 [12:02:10]Write to MH i2c: E2 08 00 1B 2A 80 0D 03 02 00 00 00 00 C0 [12:02:10]Write i2c OK [12:02:10]MH_I2C_Read... [12:02:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:10]Read from MH i2c: E2 [12:02:10]MH_I2C_Read... [12:02:10]Read from MH i2c: E2 0B 00 [12:02:10]MH_I2C_Read... [12:02:10]Read from MH i2c: E2 0B 00 1B 2A 00 0F 22 39 33 17 F6 AC F9 90 00 10 [12:02:10]RAPDU: 0F 22 39 33 17 F6 AC F9 90 00 [12:02:10]wFMCommunicate OK [12:02:10]SAM_PROTO_SignData done [12:02:10]FM_MakeSignedData done [12:02:10]CreateOFDProtocolMessage [12:02:10]wFMCommunicate request_size=4 [12:02:10]MH_SAM_APDU [12:02:10]CAPDU: 80 11 00 00 [12:02:10]Write to MH i2c: E2 08 00 1C 2A 80 11 00 00 00 00 00 00 C0 [12:02:10]Write i2c OK [12:02:10]MH_I2C_Read... [12:02:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:10]Read from MH i2c: E2 [12:02:10]MH_I2C_Read... [12:02:10]Read from MH i2c: E2 17 00 [12:02:10]MH_I2C_Read... [12:02:10]Read from MH i2c: E2 17 00 1C 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 17 [12:02:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:02:10]wFMCommunicate OK [12:02:10]CreateOFDProtocolMessage done [12:02:10]OFDSenderStorePacket 228172 [12:02:10]StoreOFDPacket docnum=228172 [12:02:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 32 26 04 01 CB 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 44 94 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4C 7B 03 00 35 04 06 00 54 2F 6D 73 E7 68 0F 22 39 33 17 F6 AC F9 [12:02:10]CheckFolder [12:02:10]dirname=/storage/ofd_packets [12:02:10]CheckFolder done [12:02:10]ProducePacketName [12:02:10]name=ofd_packets/00228172 [12:02:10]NVStorageSaveData ofd_packets/00228172 [12:02:10]File name is /storage/ofd_packets/00228172 [12:02:10]Write 298 bytes [12:02:10]NVStorageSaveData done [12:02:10]OFDSenderStorePacket done [12:02:10]KKMCreateOFDPacket done [12:02:10]NVStorageSaveData kkm_last_timestamp [12:02:10]File name is /storage/kkm_last_timestamp [12:02:10]Write 4 bytes [12:02:10]NVStorageSaveData done [12:02:10]ExternCall_PrintAddStr [12:02:10]wPrintStart [12:02:10]Write to MH i2c: 01 00 00 1D 2A 47 [12:02:10]Write i2c OK [12:02:10]MH_I2C_Read... [12:02:10]Read from MH i2c: 01 [12:02:10]MH_I2C_Read... [12:02:10]Read from MH i2c: 01 07 00 [12:02:10]MH_I2C_Read... [12:02:10]Read from MH i2c: 01 07 00 1D 2A 00 00 00 00 00 FF 0F 5C [12:02:10]RasterBufferAndPrint [12:02:10]line Счет N : (1)1964606 [12:02:10]line ИНН: 02508201610067 [12:02:10]line Контрольно-Кассовый Чек [12:02:10]line ПРОДАЖА [12:02:10]line ТРК (МРК, ГНК) : 61 [12:02:10]line Товар: 2710194210 [12:02:10]line ДТ-К-5 [12:02:10]line 20.000 * 0.00 [12:02:10]line = 0.00 [12:02:10]line НДС 12% НСП 1% [12:02:10]line > о реализуемом товаре [12:02:10]line ИТОГО: 0.00 [12:02:10]line НСП 1% : 0.00 [12:02:10]line НДС 12% : 0.00 [12:02:10]line Наличными: 0.00 [12:02:10]line Безнал.: 0.00 [12:02:10]line Место: АЗС № 133 "Партнер Нефть" [12:02:10]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:02:10]line СНО: Общий режим [12:02:10]line Чек 136 22.10.2024 12:02 [12:02:10]line Смена: 535 ФФД: 1.0 [12:02:10]line ЗНМ: 0300000091 [12:02:10]line РНМ: 0000000000091685 [12:02:10]line Версия ККМ: 001 [12:02:10]line Талоны: Топливная Карта [12:02:10]line 53608 [12:02:10]line ФМ: 0000000000871839 [12:02:10]line ФД: 228172 [12:02:10]line ФПД: 92562676508520 [12:02:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120212&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228172&fm=92562676508520&tin=02508201610067®Number=0000000000091685&sum=0 [12:02:10]OFD Sender: Processing packet 228172 [packets to send 38, broken 37] [12:02:10]ProducePacketName [12:02:10]name=ofd_packets/00228172 [12:02:10]OFD Sender: To server: pG, [12:02:10]CommunicateWithHost lk.salyk.kg:30040 [12:02:10]ConnectInit lk.salyk.kg [12:02:10]written 0, free lines is 4095 [12:02:10]Connected sock=10 [12:02:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 32 26 04 01 CB 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 44 94 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4C 7B 03 00 35 04 06 00 54 2F 6D 73 E7 68 0F 22 39 33 17 F6 AC F9 [12:02:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 F0 39 47 00 03 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4C 7B 03 00 F4 03 04 00 3C 3F 17 67 B6 04 01 00 00 B3 AF 03 BB D8 8B C0 2D [12:02:10]CommunicateWithHost err = 0 [12:02:10]CheckOFDResponse [12:02:10]1017 (14) - 77093643461234 [12:02:10]1041 (16) - 0000000000871839 [12:02:10]1040 (4) - 228172 [12:02:10]1012 (4) - 22.10.2024 05:59 [12:02:10]1206 (1) - 0 [12:02:10]OFD Sender: Remove packet 228172 [12:02:10]ProducePacketName [12:02:10]name=ofd_packets/00228172 [12:02:10]NVStorageDeleteData [12:02:10]Write to MH i2c: 01 00 00 46 2A 70 [12:02:10]Write i2c OK [12:02:10]MH_I2C_Read... [12:02:10]Read from MH i2c: 01 [12:02:10]MH_I2C_Read... [12:02:10]Read from MH i2c: 01 07 00 [12:02:10]MH_I2C_Read... [12:02:10]Read from MH i2c: 01 07 00 46 2A 00 00 00 00 00 D4 0C 57 [12:02:10]RasterBufferAndPrint [12:02:10]line [12:02:10]line [12:02:10]line [12:02:10]line [12:02:10]line [12:02:10]written 0, free lines is 3290 [12:02:10]MH_Cut [12:02:10]Write to MH i2c: D1 01 00 4D 2A 01 49 [12:02:10]Write i2c OK [12:02:10]MH_I2C_Read... [12:02:10]Read from MH i2c: D1 [12:02:10]MH_I2C_Read... [12:02:10]Read from MH i2c: D1 01 00 [12:02:10]MH_I2C_Read... [12:02:10]Read from MH i2c: D1 01 00 4D 2A 00 48 [12:02:10]Write to MH i2c: 01 00 00 4E 2A 78 [12:02:10]Write i2c OK [12:02:10]MH_I2C_Read... [12:02:11]OFD Sender: No OFD packet to send [12:02:11]*** Cut start [12:02:11]*** Partial cut [12:02:11]*** CUTSNS_PIN = 1 [12:02:11]*** CUTSNS_PIN = 0 [12:02:12]*** Brake cut motor [12:02:12]Read from MH i2c: 01 [12:02:12]MH_I2C_Read... [12:02:12]*** Stop cut motor [12:02:12]*** Cut end [12:02:12]Read from MH i2c: 01 07 00 [12:02:12]MH_I2C_Read... [12:02:12]Read from MH i2c: 01 07 00 4E 2A 00 00 00 00 00 FF 0F 8D [12:02:12]process_action close_receipt done [12:02:12]requested_data is exist [12:02:12]produce_requested_data [12:02:12]requested_item fm.sn is exist - process it [12:02:12]wFMCommunicate request_size=4 [12:02:12]MH_SAM_APDU [12:02:12]CAPDU: 80 11 00 00 [12:02:12]Write to MH i2c: E2 08 00 4F 2A 80 11 00 00 00 00 00 00 F3 [12:02:12]Write i2c OK [12:02:12]MH_I2C_Read... [12:02:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:12]Read from MH i2c: E2 [12:02:12]MH_I2C_Read... [12:02:12]Read from MH i2c: E2 17 00 [12:02:12]MH_I2C_Read... [12:02:12]Read from MH i2c: E2 17 00 4F 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4A [12:02:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:02:12]wFMCommunicate OK [12:02:12]requested_item fd.num is exist - process it [12:02:12]SAM_PROTO_GetFieldsCounters [12:02:12]wFMCommunicate request_size=4 [12:02:12]MH_SAM_APDU [12:02:12]CAPDU: 80 13 00 00 [12:02:12]Write to MH i2c: E2 08 00 50 2A 80 13 00 00 00 00 00 00 F6 [12:02:12]Write i2c OK [12:02:12]MH_I2C_Read... [12:02:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:12]Read from MH i2c: E2 [12:02:12]MH_I2C_Read... [12:02:12]Read from MH i2c: E2 62 00 [12:02:12]MH_I2C_Read... [12:02:12]Read from MH i2c: E2 62 00 50 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4C 7B 03 00 0E 04 04 00 17 02 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 9A [12:02:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4C 7B 03 00 0E 04 04 00 17 02 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 [12:02:12]wFMCommunicate OK [12:02:12]SAM_PROTO_GetFieldsCounters done [12:02:12]requested_item shift.num is exist - process it [12:02:12]requested_item shift.opened is exist - process it [12:02:12]req_shift_opened [12:02:12]FM_GetShiftState [12:02:12]SAM_PROTO_GetShiftState [12:02:12]wFMCommunicate request_size=4 [12:02:12]MH_SAM_APDU [12:02:12]CAPDU: 80 13 01 00 [12:02:12]Write to MH i2c: E2 08 00 51 2A 80 13 01 00 00 00 00 00 F8 [12:02:12]Write i2c OK [12:02:12]MH_I2C_Read... [12:02:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:12]Read from MH i2c: E2 [12:02:12]MH_I2C_Read... [12:02:12]Read from MH i2c: E2 0E 00 [12:02:12]MH_I2C_Read... [12:02:12]Read from MH i2c: E2 0E 00 51 2A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 BF [12:02:12]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:02:12]wFMCommunicate OK [12:02:12]SAM_PROTO_GetShiftState done [12:02:12]FM_GetShiftState done [12:02:12]req_shift_opened done [12:02:12]requested_item shift.open_date is exist - process it [12:02:12]req_shift_open_date [12:02:12]req_shift_open_date done [12:02:12]produce_requested_data done [12:02:12]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228172,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [12:02:12]process_action_free close_receipt [12:02:12]json_value_free [12:02:12]json_value_free done [12:02:12]process_json_proto returns [12:02:12]Send response to host [12:02:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228172,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [12:02:12]free response buf [12:02:12]execute_script done [12:02:12]execute_script returns [12:02:12]free content buf [12:02:12]Sock 9.Close socket [12:02:12]Sock 9.Thread stoped [12:02:16]OFD Sender: No OFD packet to send [12:02:21]OFD Sender: No OFD packet to send [12:02:26]OFD Sender: No OFD packet to send [12:02:31]OFD Sender: No OFD packet to send [12:02:36]OFD Sender: No OFD packet to send [12:02:41]OFD Sender: No OFD packet to send [12:02:46]OFD Sender: No OFD packet to send [12:02:51]OFD Sender: No OFD packet to send [12:02:56]OFD Sender: No OFD packet to send [12:03:01]OFD Sender: No OFD packet to send [12:03:06]OFD Sender: No OFD packet to send [12:03:11]OFD Sender: No OFD packet to send [12:03:16]OFD Sender: No OFD packet to send [12:03:21]OFD Sender: No OFD packet to send [12:03:26]OFD Sender: No OFD packet to send [12:03:31]OFD Sender: No OFD packet to send [12:03:36]OFD Sender: No OFD packet to send [12:03:41]OFD Sender: No OFD packet to send [12:03:44]accept exits with 7 [12:03:44]New connection [12:03:44]New thread 3066994020 created [12:03:44]Thread 3067137380 joined [12:03:44]Waiting for new connection... [12:03:44] Sock 7.Parse request [12:03:44]Sock 7.Check first char [12:03:44]Sock 7.First char is OK [12:03:44]request: POST /json_proto HTTP/1.0 [12:03:44]Method: POST [12:03:44]URL: /json_proto [12:03:44]Method is POST - this is cgi request [12:03:44]url: /json_proto [12:03:44]query_string will be loaded in cgi processing [12:03:44]execute_cgi json_proto POST (null) [12:03:44]execute_cgi path=json_proto method=POST [12:03:44]POST find Content-Length [12:03:44]Host: 172.17.44.195:8080 [12:03:44]Content-Length: 678 [12:03:44]Content-Type: application/json [12:03:44] [12:03:44]POST finish read [12:03:44]Found Content-Length = 678 [12:03:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964608", "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" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [12:03:44]execute_script... [12:03:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964608", "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" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [12:03:44]POST & json_proto [12:03:44]process_json_proto [12:03:44]json parsed OK: [12:03:44]protocol is kg_v1.0 [12:03:44]action value=close_receipt [12:03:44]process_action close_receipt [12:03:44]cmd_close_receipt [12:03:44]MH_GetDate [12:03:44]Write to MH i2c: F0 00 00 52 2A 6B [12:03:44]Write i2c OK [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: F0 [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: F0 09 00 [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: F0 09 00 52 2A 00 A4 94 17 67 82 C9 CF 66 AA [12:03:44]GetLastDocTimeStamp 1729598532 [12:03:44]current date 1729598628 [12:03:44]FM_GetShiftState [12:03:44]SAM_PROTO_GetShiftState [12:03:44]wFMCommunicate request_size=4 [12:03:44]MH_SAM_APDU [12:03:44]CAPDU: 80 13 01 00 [12:03:44]Write to MH i2c: E2 08 00 53 2A 80 13 01 00 00 00 00 00 FA [12:03:44]Write i2c OK [12:03:44]MH_I2C_Read... [12:03:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:44]Read from MH i2c: E2 [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: E2 0E 00 [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: E2 0E 00 53 2A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 C1 [12:03:44]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:03:44]wFMCommunicate OK [12:03:44]SAM_PROTO_GetShiftState done [12:03:44]FM_GetShiftState done [12:03:44]opened in 1729555538 [12:03:44]opened+sec_in_day 1729641938 [12:03:44]quantity*price = 20003 [12:03:44]sum+1 = 20004 [12:03:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 137 22.10.2024 12:03 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228173 ФПД: 173248434103774 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120348&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228173&fm=173248434103774&tin=02508201610067®Number=0000000000091685&sum=20000 [12:03:45]StoreToDocumentArchive [12:03:45]shift 535 fd 228173 [12:03:45]save to /storage/0535/doc_00228173 [12:03:45]save last doc name /storage/0535/doc_00228173 to /storage/kkm_last_doc_name [12:03:45]save OK [12:03:45]Clear old archive folders... [12:03:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:03:45]tlvbuf is 00A8AF60 [12:03:45]SAM_PROTO_ClearQueue [12:03:45]wFMCommunicate request_size=4 [12:03:45]MH_SAM_APDU [12:03:45]CAPDU: 80 09 00 00 [12:03:45]Write to MH i2c: E2 08 00 60 2A 80 09 00 00 00 00 00 00 FC [12:03:45]Write i2c OK [12:03:45]MH_I2C_Read... [12:03:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:45]Read from MH i2c: E2 [12:03:45]MH_I2C_Read... [12:03:45]Read from MH i2c: E2 03 00 [12:03:45]MH_I2C_Read... [12:03:45]Read from MH i2c: E2 03 00 60 2A 00 90 00 FE [12:03:45]RAPDU: 90 00 [12:03:45]wFMCommunicate OK [12:03:45]SAM_PROTO_ClearQueue done [12:03:45]KKMCreateOFDPacket [12:03:45]OFDProtocolAddRootSTLVToBuf [12:03:45]FM_MakeSignedData [12:03:45]FM_MakeSignedData [12:03:45]SAM_PROTO_SignData [12:03:45]wFMCommunicate request_size=4 [12:03:45]MH_SAM_APDU [12:03:45]CAPDU: 80 0D 01 02 [12:03:45]Write to MH i2c: E2 08 00 61 2A 80 0D 01 02 00 00 00 00 04 [12:03:45]Write i2c OK [12:03:45]MH_I2C_Read... [12:03:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:46]Read from MH i2c: E2 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: E2 03 00 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: E2 03 00 61 2A 00 90 00 FF [12:03:46]RAPDU: 90 00 [12:03:46]wFMCommunicate OK [12:03:46]wFMCommunicate request_size=255 [12:03:46]MH_SAM_APDU [12:03: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 A4 94 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4D 7B 03 00 35 04 06 00 9D [12:03:46]Write to MH i2c: E2 02 01 62 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 A4 94 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4D 7B 03 00 35 04 06 00 9D 00 00 1D [12:03:46]Write i2c OK [12:03:46]MH_I2C_Read... [12:03:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:46]Read from MH i2c: E2 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: E2 03 00 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: E2 03 00 62 2A 00 90 00 00 [12:03:46]RAPDU: 90 00 [12:03:46]wFMCommunicate OK [12:03:46]wFMCommunicate request_size=10 [12:03:46]MH_SAM_APDU [12:03:46]CAPDU: 80 0D 02 02 05 91 8B 5F 65 DE [12:03:46]Write to MH i2c: E2 0D 00 63 2A 80 0D 02 02 05 00 91 8B 5F 65 DE 00 00 CF [12:03:46]Write i2c OK [12:03:46]MH_I2C_Read... [12:03:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:46]Read from MH i2c: E2 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: E2 03 00 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: E2 03 00 63 2A 00 90 00 01 [12:03:46]RAPDU: 90 00 [12:03:46]wFMCommunicate OK [12:03:46]wFMCommunicate request_size=4 [12:03:46]MH_SAM_APDU [12:03:46]CAPDU: 80 0D 03 02 [12:03:46]Write to MH i2c: E2 08 00 64 2A 80 0D 03 02 00 00 00 00 09 [12:03:46]Write i2c OK [12:03:46]MH_I2C_Read... [12:03:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:46]Read from MH i2c: E2 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: E2 0B 00 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: E2 0B 00 64 2A 00 F1 35 2F BE B4 DD B8 CD 90 00 33 [12:03:46]RAPDU: F1 35 2F BE B4 DD B8 CD 90 00 [12:03:46]wFMCommunicate OK [12:03:46]SAM_PROTO_SignData done [12:03:46]FM_MakeSignedData done [12:03:46]CreateOFDProtocolMessage [12:03:46]wFMCommunicate request_size=4 [12:03:46]MH_SAM_APDU [12:03:46]CAPDU: 80 11 00 00 [12:03:46]Write to MH i2c: E2 08 00 65 2A 80 11 00 00 00 00 00 00 09 [12:03:46]Write i2c OK [12:03:46]MH_I2C_Read... [12:03:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:46]Read from MH i2c: E2 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: E2 17 00 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: E2 17 00 65 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 60 [12:03:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:03:46]wFMCommunicate OK [12:03:46]CreateOFDProtocolMessage done [12:03:46]OFDSenderStorePacket 228173 [12:03:46]StoreOFDPacket docnum=228173 [12:03:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 C4 38 07 01 5F 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 A4 94 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4D 7B 03 00 35 04 06 00 9D 91 8B 5F 65 DE F1 35 2F BE B4 DD B8 CD [12:03:46]CheckFolder [12:03:46]dirname=/storage/ofd_packets [12:03:46]CheckFolder done [12:03:46]ProducePacketName [12:03:46]name=ofd_packets/00228173 [12:03:46]NVStorageSaveData ofd_packets/00228173 [12:03:46]File name is /storage/ofd_packets/00228173 [12:03:46]Write 301 bytes [12:03:46]NVStorageSaveData done [12:03:46]OFDSenderStorePacket done [12:03:46]KKMCreateOFDPacket done [12:03:46]NVStorageSaveData kkm_last_timestamp [12:03:46]File name is /storage/kkm_last_timestamp [12:03:46]Write 4 bytes [12:03:46]NVStorageSaveData done [12:03:46]OFD Sender: Processing packet 228173 [packets to send 38, broken 37] [12:03:46]ProducePacketName [12:03:46]name=ofd_packets/00228173 [12:03:46]OFD Sender: To server: pG, [12:03:46]CommunicateWithHost lk.salyk.kg:30040 [12:03:46]ConnectInit lk.salyk.kg [12:03:46]ExternCall_PrintAddStr [12:03:46]wPrintStart [12:03:46]Write to MH i2c: 01 00 00 66 2A 90 [12:03:46]Write i2c OK [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: 01 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: 01 07 00 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: 01 07 00 66 2A 00 00 00 00 00 FF 0F A5 [12:03:46]RasterBufferAndPrint [12:03:46]line Счет N : (1)1964608 [12:03:46]line ИНН: 02508201610067 [12:03:46]line Контрольно-Кассовый Чек [12:03:46]line ПРОДАЖА [12:03:46]line ТРК (МРК, ГНК) : 63 [12:03:46]line Товар: 2710124130 [12:03:46]line Аи-92-К-5 [12:03:46]line 2.990 * 66.90 [12:03:46]line = 200.03 [12:03:46]line НДС 12% НСП 1% [12:03:46]line > о реализуемом товаре [12:03:46]line ОКРУГЛЕНИЕ: -0.03 [12:03:46]line ИТОГО: 200.00 [12:03:46]line Внесено: 200.00 [12:03:46]line СДАЧА: 0.00 [12:03:46]line НСП 1% : 1.77 [12:03:46]line НДС 12% : 21.24 [12:03:46]line Наличными: 200.00 [12:03:46]line Безнал.: 0.00 [12:03:46]line Место: АЗС № 133 "Партнер Нефть" [12:03:46]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:03:46]line СНО: Общий режим [12:03:46]line Чек 137 22.10.2024 12:03 [12:03:46]line Смена: 535 ФФД: 1.0 [12:03:46]line ЗНМ: 0300000091 [12:03:46]line РНМ: 0000000000091685 [12:03:46]line Версия ККМ: 001 [12:03:46]line ФМ: 0000000000871839 [12:03:46]line ФД: 228173 [12:03:46]line ФПД: 173248434103774 [12:03:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120348&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228173&fm=173248434103774&tin=02508201610067®Number=0000000000091685&sum=20000 [12:03:46]Connected sock=11 [12:03:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 C4 38 07 01 5F 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 A4 94 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4D 7B 03 00 35 04 06 00 9D 91 8B 5F 65 DE F1 35 2F BE B4 DD B8 CD [12:03:46]written 0, free lines is 4095 [12:03:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 79 D9 47 00 AF 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4D 7B 03 00 F4 03 04 00 9C 3F 17 67 B6 04 01 00 00 C7 F5 3B 02 28 35 A4 37 [12:03:46]CommunicateWithHost err = 0 [12:03:46]CheckOFDResponse [12:03:46]1017 (14) - 77093643461234 [12:03:46]1041 (16) - 0000000000871839 [12:03:46]1040 (4) - 228173 [12:03:46]1012 (4) - 22.10.2024 06:01 [12:03:46]1206 (1) - 0 [12:03:46]OFD Sender: Remove packet 228173 [12:03:46]ProducePacketName [12:03:46]name=ofd_packets/00228173 [12:03:46]NVStorageDeleteData [12:03:47]Write to MH i2c: 01 00 00 90 2A BA [12:03:47]Write i2c OK [12:03:47]MH_I2C_Read... [12:03:47]Read from MH i2c: 01 [12:03:47]MH_I2C_Read... [12:03:47]Read from MH i2c: 01 07 00 [12:03:47]MH_I2C_Read... [12:03:47]Read from MH i2c: 01 07 00 90 2A 00 00 00 00 00 BE 0C 8B [12:03:47]RasterBufferAndPrint [12:03:47]line [12:03:47]line [12:03:47]line [12:03:47]line [12:03:47]line [12:03:47]written 0, free lines is 3266 [12:03:47]MH_Cut [12:03:47]Write to MH i2c: D1 01 00 97 2A 01 93 [12:03:47]Write i2c OK [12:03:47]MH_I2C_Read... [12:03:47]Read from MH i2c: D1 [12:03:47]MH_I2C_Read... [12:03:47]Read from MH i2c: D1 01 00 [12:03:47]MH_I2C_Read... [12:03:47]Read from MH i2c: D1 01 00 97 2A 00 92 [12:03:47]Write to MH i2c: 01 00 00 98 2A C2 [12:03:47]Write i2c OK [12:03:47]MH_I2C_Read... [12:03:47]OFD Sender: No OFD packet to send [12:03:48]*** Cut start [12:03:48]*** Partial cut [12:03:48]*** CUTSNS_PIN = 1 [12:03:48]*** CUTSNS_PIN = 0 [12:03:48]*** Brake cut motor [12:03:48]Read from MH i2c: 01 [12:03:48]MH_I2C_Read... [12:03:48]*** Stop cut motor [12:03:48]*** Cut end [12:03:48]Read from MH i2c: 01 07 00 [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: 01 07 00 98 2A 00 00 00 00 00 FF 0F D7 [12:03:48]process_action close_receipt done [12:03:48]requested_data is exist [12:03:48]produce_requested_data [12:03:48]requested_item fm.sn is exist - process it [12:03:48]wFMCommunicate request_size=4 [12:03:48]MH_SAM_APDU [12:03:48]CAPDU: 80 11 00 00 [12:03:48]Write to MH i2c: E2 08 00 99 2A 80 11 00 00 00 00 00 00 3D [12:03:48]Write i2c OK [12:03:48]MH_I2C_Read... [12:03:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:48]Read from MH i2c: E2 [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: E2 17 00 [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: E2 17 00 99 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 94 [12:03:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:03:48]wFMCommunicate OK [12:03:48]requested_item fd.num is exist - process it [12:03:48]SAM_PROTO_GetFieldsCounters [12:03:48]wFMCommunicate request_size=4 [12:03:48]MH_SAM_APDU [12:03:48]CAPDU: 80 13 00 00 [12:03:48]Write to MH i2c: E2 08 00 9A 2A 80 13 00 00 00 00 00 00 40 [12:03:48]Write i2c OK [12:03:48]MH_I2C_Read... [12:03:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:48]Read from MH i2c: E2 [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: E2 62 00 [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: E2 62 00 9A 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4D 7B 03 00 0E 04 04 00 17 02 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 E8 [12:03:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4D 7B 03 00 0E 04 04 00 17 02 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 [12:03:48]wFMCommunicate OK [12:03:48]SAM_PROTO_GetFieldsCounters done [12:03:48]requested_item shift.num is exist - process it [12:03:48]requested_item shift.opened is exist - process it [12:03:48]req_shift_opened [12:03:48]FM_GetShiftState [12:03:48]SAM_PROTO_GetShiftState [12:03:48]wFMCommunicate request_size=4 [12:03:48]MH_SAM_APDU [12:03:48]CAPDU: 80 13 01 00 [12:03:48]Write to MH i2c: E2 08 00 9B 2A 80 13 01 00 00 00 00 00 42 [12:03:48]Write i2c OK [12:03:48]MH_I2C_Read... [12:03:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:48]Read from MH i2c: E2 [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: E2 0E 00 [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: E2 0E 00 9B 2A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 09 [12:03:48]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:03:48]wFMCommunicate OK [12:03:48]SAM_PROTO_GetShiftState done [12:03:48]FM_GetShiftState done [12:03:48]req_shift_opened done [12:03:48]requested_item shift.open_date is exist - process it [12:03:48]req_shift_open_date [12:03:48]req_shift_open_date done [12:03:48]produce_requested_data done [12:03:48]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228173,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [12:03:48]process_action_free close_receipt [12:03:48]json_value_free [12:03:48]json_value_free done [12:03:48]process_json_proto returns [12:03:48]Send response to host [12:03:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228173,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [12:03:48]free response buf [12:03:48]execute_script done [12:03:48]execute_script returns [12:03:48]free content buf [12:03:48]Sock 7.Close socket [12:03:48]Sock 7.Thread stoped [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:23]accept exits with 9 [12:05:23]New connection [12:05:23]New thread 3067137380 created [12:05:23]Thread 3066994020 joined [12:05:23]Waiting for new connection... [12:05:23] Sock 9.Parse request [12:05:23]Sock 9.Check first char [12:05:23]Sock 9.First char is OK [12:05:23]request: POST /json_proto HTTP/1.0 [12:05:23]Method: POST [12:05:23]URL: /json_proto [12:05:23]Method is POST - this is cgi request [12:05:23]url: /json_proto [12:05:23]query_string will be loaded in cgi processing [12:05:23]execute_cgi json_proto POST (null) [12:05:23]execute_cgi path=json_proto method=POST [12:05:23]POST find Content-Length [12:05:23]Host: 172.17.44.195:8080 [12:05:23]Content-Length: 678 [12:05:23]Content-Type: application/json [12:05:23] [12:05:23]POST finish read [12:05:23]Found Content-Length = 678 [12:05:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:05:23]execute_script... [12:05:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:05:23]POST & json_proto [12:05:23]process_json_proto [12:05:23]json parsed OK: [12:05:23]protocol is kg_v1.0 [12:05:23]action value=close_receipt [12:05:23]process_action close_receipt [12:05:23]cmd_close_receipt [12:05:23]MH_GetDate [12:05:23]Write to MH i2c: F0 00 00 9C 2A B5 [12:05:23]Write i2c OK [12:05:23]MH_I2C_Read... [12:05:23]Read from MH i2c: F0 [12:05:23]MH_I2C_Read... [12:05:23]Read from MH i2c: F0 09 00 [12:05:23]MH_I2C_Read... [12:05:23]Read from MH i2c: F0 09 00 9C 2A 00 07 95 17 67 82 C9 CF 66 58 [12:05:23]GetLastDocTimeStamp 1729598628 [12:05:23]current date 1729598727 [12:05:23]FM_GetShiftState [12:05:23]SAM_PROTO_GetShiftState [12:05:23]wFMCommunicate request_size=4 [12:05:23]MH_SAM_APDU [12:05:23]CAPDU: 80 13 01 00 [12:05:23]Write to MH i2c: E2 08 00 9D 2A 80 13 01 00 00 00 00 00 44 [12:05:23]Write i2c OK [12:05:23]MH_I2C_Read... [12:05:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:23]Read from MH i2c: E2 [12:05:23]MH_I2C_Read... [12:05:23]Read from MH i2c: E2 0E 00 [12:05:23]MH_I2C_Read... [12:05:23]Read from MH i2c: E2 0E 00 9D 2A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 0B [12:05:23]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:05:23]wFMCommunicate OK [12:05:23]SAM_PROTO_GetShiftState done [12:05:23]FM_GetShiftState done [12:05:23]opened in 1729555538 [12:05:23]opened+sec_in_day 1729641938 [12:05:23]quantity*price = 50041 [12:05:23]sum+1 = 50042 [12:05:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 138 22.10.2024 12:05 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228174 ФПД: 261923242338992 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120527&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228174&fm=261923242338992&tin=02508201610067®Number=0000000000091685&sum=50000 [12:05:24]StoreToDocumentArchive [12:05:24]shift 535 fd 228174 [12:05:24]save to /storage/0535/doc_00228174 [12:05:24]save last doc name /storage/0535/doc_00228174 to /storage/kkm_last_doc_name [12:05:24]save OK [12:05:24]Clear old archive folders... [12:05:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:05:24]tlvbuf is 0091B180 [12:05:24]SAM_PROTO_ClearQueue [12:05:24]wFMCommunicate request_size=4 [12:05:24]MH_SAM_APDU [12:05:24]CAPDU: 80 09 00 00 [12:05:24]Write to MH i2c: E2 08 00 AA 2A 80 09 00 00 00 00 00 00 46 [12:05:24]Write i2c OK [12:05:24]MH_I2C_Read... [12:05:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:24]Read from MH i2c: E2 [12:05:24]MH_I2C_Read... [12:05:24]Read from MH i2c: E2 03 00 [12:05:24]MH_I2C_Read... [12:05:24]Read from MH i2c: E2 03 00 AA 2A 00 90 00 48 [12:05:24]RAPDU: 90 00 [12:05:24]wFMCommunicate OK [12:05:24]SAM_PROTO_ClearQueue done [12:05:24]KKMCreateOFDPacket [12:05:24]OFDProtocolAddRootSTLVToBuf [12:05:24]FM_MakeSignedData [12:05:24]FM_MakeSignedData [12:05:24]SAM_PROTO_SignData [12:05:24]wFMCommunicate request_size=4 [12:05:24]MH_SAM_APDU [12:05:24]CAPDU: 80 0D 01 02 [12:05:24]Write to MH i2c: E2 08 00 AB 2A 80 0D 01 02 00 00 00 00 4E [12:05:24]Write i2c OK [12:05:24]MH_I2C_Read... [12:05:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:24]Read from MH i2c: E2 [12:05:24]MH_I2C_Read... [12:05:24]Read from MH i2c: E2 03 00 [12:05:24]MH_I2C_Read... [12:05:24]Read from MH i2c: E2 03 00 AB 2A 00 90 00 49 [12:05:24]RAPDU: 90 00 [12:05:24]wFMCommunicate OK [12:05:24]wFMCommunicate request_size=255 [12:05:24]MH_SAM_APDU [12:05:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 07 95 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4E 7B 03 00 35 04 06 00 EE [12:05:24]Write to MH i2c: E2 02 01 AC 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 07 95 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4E 7B 03 00 35 04 06 00 EE 00 00 5C [12:05:24]Write i2c OK [12:05:24]MH_I2C_Read... [12:05:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:24]Read from MH i2c: E2 [12:05:24]MH_I2C_Read... [12:05:24]Read from MH i2c: E2 03 00 [12:05:24]MH_I2C_Read... [12:05:24]Read from MH i2c: E2 03 00 AC 2A 00 90 00 4A [12:05:24]RAPDU: 90 00 [12:05:24]wFMCommunicate OK [12:05:24]wFMCommunicate request_size=10 [12:05:24]MH_SAM_APDU [12:05:24]CAPDU: 80 0D 02 02 05 37 C1 D1 6A B0 [12:05:24]Write to MH i2c: E2 0D 00 AD 2A 80 0D 02 02 05 00 37 C1 D1 6A B0 00 00 3E [12:05:24]Write i2c OK [12:05:24]MH_I2C_Read... [12:05:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:25]Read from MH i2c: E2 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: E2 03 00 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: E2 03 00 AD 2A 00 90 00 4B [12:05:25]RAPDU: 90 00 [12:05:25]wFMCommunicate OK [12:05:25]wFMCommunicate request_size=4 [12:05:25]MH_SAM_APDU [12:05:25]CAPDU: 80 0D 03 02 [12:05:25]Write to MH i2c: E2 08 00 AE 2A 80 0D 03 02 00 00 00 00 53 [12:05:25]Write i2c OK [12:05:25]MH_I2C_Read... [12:05:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:25]Read from MH i2c: E2 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: E2 0B 00 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: E2 0B 00 AE 2A 00 F4 CB 9D E0 D3 89 AD 2D 90 00 C6 [12:05:25]RAPDU: F4 CB 9D E0 D3 89 AD 2D 90 00 [12:05:25]wFMCommunicate OK [12:05:25]SAM_PROTO_SignData done [12:05:25]FM_MakeSignedData done [12:05:25]CreateOFDProtocolMessage [12:05:25]wFMCommunicate request_size=4 [12:05:25]MH_SAM_APDU [12:05:25]CAPDU: 80 11 00 00 [12:05:25]Write to MH i2c: E2 08 00 AF 2A 80 11 00 00 00 00 00 00 53 [12:05:25]Write i2c OK [12:05:25]MH_I2C_Read... [12:05:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:25]Read from MH i2c: E2 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: E2 17 00 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: E2 17 00 AF 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AA [12:05:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:05:25]wFMCommunicate OK [12:05:25]CreateOFDProtocolMessage done [12:05:25]OFDSenderStorePacket 228174 [12:05:25]StoreOFDPacket docnum=228174 [12:05:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 14 53 07 01 1F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 07 95 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4E 7B 03 00 35 04 06 00 EE 37 C1 D1 6A B0 F4 CB 9D E0 D3 89 AD 2D [12:05:25]CheckFolder [12:05:25]dirname=/storage/ofd_packets [12:05:25]CheckFolder done [12:05:25]ProducePacketName [12:05:25]name=ofd_packets/00228174 [12:05:25]NVStorageSaveData ofd_packets/00228174 [12:05:25]File name is /storage/ofd_packets/00228174 [12:05:25]Write 301 bytes [12:05:25]NVStorageSaveData done [12:05:25]OFDSenderStorePacket done [12:05:25]KKMCreateOFDPacket done [12:05:25]NVStorageSaveData kkm_last_timestamp [12:05:25]File name is /storage/kkm_last_timestamp [12:05:25]Write 4 bytes [12:05:25]NVStorageSaveData done [12:05:25]ExternCall_PrintAddStr [12:05:25]wPrintStart [12:05:25]Write to MH i2c: 01 00 00 B0 2A DA [12:05:25]Write i2c OK [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: 01 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: 01 07 00 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: 01 07 00 B0 2A 00 00 00 00 00 FF 0F EF [12:05:25]RasterBufferAndPrint [12:05:25]line Счет N : (1)1964609 [12:05:25]line ИНН: 02508201610067 [12:05:25]line Контрольно-Кассовый Чек [12:05:25]line ПРОДАЖА [12:05:25]line ТРК (МРК, ГНК) : 43 [12:05:25]line Товар: 2710124130 [12:05:25]line Аи-92-К-5 [12:05:25]line 7.480 * 66.90 [12:05:25]line = 500.41 [12:05:25]line НДС 12% НСП 1% [12:05:25]line > о реализуемом товаре [12:05:25]line ОКРУГЛЕНИЕ: -0.41 [12:05:25]line ИТОГО: 500.00 [12:05:25]line Внесено: 500.00 [12:05:25]line СДАЧА: 0.00 [12:05:25]line НСП 1% : 4.43 [12:05:25]line НДС 12% : 53.14 [12:05:25]line Наличными: 500.00 [12:05:25]line Безнал.: 0.00 [12:05:25]line Место: АЗС № 133 "Партнер Нефть" [12:05:25]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:05:25]line СНО: Общий режим [12:05:25]line Чек 138 22.10.2024 12:05 [12:05:25]line Смена: 535 ФФД: 1.0 [12:05:25]line ЗНМ: 0300000091 [12:05:25]line РНМ: 0000000000091685 [12:05:25]line Версия ККМ: 001 [12:05:25]line ФМ: 0000000000871839 [12:05:25]line ФД: 228174 [12:05:25]line ФПД: 261923242338992 [12:05:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120527&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228174&fm=261923242338992&tin=02508201610067®Number=0000000000091685&sum=50000 [12:05:25]OFD Sender: Processing packet 228174 [packets to send 38, broken 37] [12:05:25]ProducePacketName [12:05:25]name=ofd_packets/00228174 [12:05:25]OFD Sender: To server: pG, [12:05:25]CommunicateWithHost lk.salyk.kg:30040 [12:05:25]ConnectInit lk.salyk.kg [12:05:25]written 0, free lines is 4095 [12:05:25]Connected sock=10 [12:05:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 14 53 07 01 1F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 07 95 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4E 7B 03 00 35 04 06 00 EE 37 C1 D1 6A B0 F4 CB 9D E0 D3 89 AD 2D [12:05:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 48 8D 47 00 69 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4E 7B 03 00 F4 03 04 00 FF 3F 17 67 B6 04 01 00 00 70 5B 7C 7E D7 F8 EA BD [12:05:25]CommunicateWithHost err = 0 [12:05:25]CheckOFDResponse [12:05:25]1017 (14) - 77093643461234 [12:05:25]1041 (16) - 0000000000871839 [12:05:25]1040 (4) - 228174 [12:05:25]1012 (4) - 22.10.2024 06:02 [12:05:25]1206 (1) - 0 [12:05:25]OFD Sender: Remove packet 228174 [12:05:25]ProducePacketName [12:05:25]name=ofd_packets/00228174 [12:05:25]NVStorageDeleteData [12:05:25]Write to MH i2c: 01 00 00 DA 2A 04 [12:05:25]Write i2c OK [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: 01 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: 01 07 00 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: 01 07 00 DA 2A 00 00 00 00 00 D5 0C EC [12:05:25]RasterBufferAndPrint [12:05:25]line [12:05:25]line [12:05:25]line [12:05:25]line [12:05:25]line [12:05:25]written 0, free lines is 3292 [12:05:25]MH_Cut [12:05:25]Write to MH i2c: D1 01 00 E1 2A 01 DD [12:05:25]Write i2c OK [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: D1 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: D1 01 00 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: D1 01 00 E1 2A 00 DC [12:05:25]Write to MH i2c: 01 00 00 E2 2A 0C [12:05:25]Write i2c OK [12:05:25]MH_I2C_Read... [12:05:26]OFD Sender: No OFD packet to send [12:05:26]*** Cut start [12:05:26]*** Partial cut [12:05:26]*** CUTSNS_PIN = 1 [12:05:26]*** CUTSNS_PIN = 0 [12:05:26]*** Brake cut motor [12:05:27]Read from MH i2c: 01 [12:05:27]MH_I2C_Read... [12:05:27]*** Stop cut motor [12:05:27]*** Cut end [12:05:27]Read from MH i2c: 01 07 00 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: 01 07 00 E2 2A 00 00 00 00 00 FF 0F 21 [12:05:27]process_action close_receipt done [12:05:27]requested_data is exist [12:05:27]produce_requested_data [12:05:27]requested_item fm.sn is exist - process it [12:05:27]wFMCommunicate request_size=4 [12:05:27]MH_SAM_APDU [12:05:27]CAPDU: 80 11 00 00 [12:05:27]Write to MH i2c: E2 08 00 E3 2A 80 11 00 00 00 00 00 00 87 [12:05:27]Write i2c OK [12:05:27]MH_I2C_Read... [12:05:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:27]Read from MH i2c: E2 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: E2 17 00 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: E2 17 00 E3 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DE [12:05:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:05:27]wFMCommunicate OK [12:05:27]requested_item fd.num is exist - process it [12:05:27]SAM_PROTO_GetFieldsCounters [12:05:27]wFMCommunicate request_size=4 [12:05:27]MH_SAM_APDU [12:05:27]CAPDU: 80 13 00 00 [12:05:27]Write to MH i2c: E2 08 00 E4 2A 80 13 00 00 00 00 00 00 8A [12:05:27]Write i2c OK [12:05:27]MH_I2C_Read... [12:05:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:27]Read from MH i2c: E2 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: E2 62 00 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: E2 62 00 E4 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4E 7B 03 00 0E 04 04 00 17 02 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 36 [12:05:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4E 7B 03 00 0E 04 04 00 17 02 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 [12:05:27]wFMCommunicate OK [12:05:27]SAM_PROTO_GetFieldsCounters done [12:05:27]requested_item shift.num is exist - process it [12:05:27]requested_item shift.opened is exist - process it [12:05:27]req_shift_opened [12:05:27]FM_GetShiftState [12:05:27]SAM_PROTO_GetShiftState [12:05:27]wFMCommunicate request_size=4 [12:05:27]MH_SAM_APDU [12:05:27]CAPDU: 80 13 01 00 [12:05:27]Write to MH i2c: E2 08 00 E5 2A 80 13 01 00 00 00 00 00 8C [12:05:27]Write i2c OK [12:05:27]MH_I2C_Read... [12:05:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:27]Read from MH i2c: E2 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: E2 0E 00 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: E2 0E 00 E5 2A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 53 [12:05:27]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:05:27]wFMCommunicate OK [12:05:27]SAM_PROTO_GetShiftState done [12:05:27]FM_GetShiftState done [12:05:27]req_shift_opened done [12:05:27]requested_item shift.open_date is exist - process it [12:05:27]req_shift_open_date [12:05:27]req_shift_open_date done [12:05:27]produce_requested_data done [12:05:27]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228174,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [12:05:27]process_action_free close_receipt [12:05:27]json_value_free [12:05:27]json_value_free done [12:05:27]process_json_proto returns [12:05:27]Send response to host [12:05:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228174,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [12:05:27]free response buf [12:05:27]execute_script done [12:05:27]execute_script returns [12:05:27]free content buf [12:05:27]Sock 9.Close socket [12:05:27]Sock 9.Thread stoped [12:05:31]OFD Sender: No OFD packet to send [12:05:36]OFD Sender: No OFD packet to send [12:05:41]OFD Sender: No OFD packet to send [12:05:46]OFD Sender: No OFD packet to send [12:05:51]OFD Sender: No OFD packet to send [12:05:56]OFD Sender: No OFD packet to send [12:06:01]OFD Sender: No OFD packet to send [12:06:06]OFD Sender: No OFD packet to send [12:06:11]OFD Sender: No OFD packet to send [12:06:16]OFD Sender: No OFD packet to send [12:06:21]OFD Sender: No OFD packet to send [12:06:26]OFD Sender: No OFD packet to send [12:06:31]OFD Sender: No OFD packet to send [12:06:36]OFD Sender: No OFD packet to send [12:06:39]accept exits with 7 [12:06:39]New connection [12:06:39]New thread 3066994020 created [12:06:39]Thread 3067137380 joined [12:06:39]Waiting for new connection... [12:06:39] Sock 7.Parse request [12:06:39]Sock 7.Check first char [12:06:39]Sock 7.First char is OK [12:06:39]request: POST /json_proto HTTP/1.0 [12:06:39]Method: POST [12:06:39]URL: /json_proto [12:06:39]Method is POST - this is cgi request [12:06:39]url: /json_proto [12:06:39]query_string will be loaded in cgi processing [12:06:39]execute_cgi json_proto POST (null) [12:06:39]execute_cgi path=json_proto method=POST [12:06:39]POST find Content-Length [12:06:39]Host: 172.17.44.195:8080 [12:06:39]Content-Length: 678 [12:06:39]Content-Type: application/json [12:06:39] [12:06:39]POST finish read [12:06:39]Found Content-Length = 678 [12:06:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964610", "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" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:39]execute_script... [12:06: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)1964610", "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" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:39]POST & json_proto [12:06:39]process_json_proto [12:06:39]json parsed OK: [12:06:39]protocol is kg_v1.0 [12:06:39]action value=close_receipt [12:06:39]process_action close_receipt [12:06:39]cmd_close_receipt [12:06:39]MH_GetDate [12:06:39]Write to MH i2c: F0 00 00 E6 2A FF [12:06:39]Write i2c OK [12:06:39]MH_I2C_Read... [12:06:39]Read from MH i2c: F0 [12:06:39]MH_I2C_Read... [12:06:39]Read from MH i2c: F0 09 00 [12:06:39]MH_I2C_Read... [12:06:39]Read from MH i2c: F0 09 00 E6 2A 00 53 95 17 67 82 C9 CF 66 EE [12:06:39]GetLastDocTimeStamp 1729598727 [12:06:39]current date 1729598803 [12:06:39]FM_GetShiftState [12:06:39]SAM_PROTO_GetShiftState [12:06:39]wFMCommunicate request_size=4 [12:06:39]MH_SAM_APDU [12:06:39]CAPDU: 80 13 01 00 [12:06:39]Write to MH i2c: E2 08 00 E7 2A 80 13 01 00 00 00 00 00 8E [12:06:39]Write i2c OK [12:06:39]MH_I2C_Read... [12:06:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:39]Read from MH i2c: E2 [12:06:39]MH_I2C_Read... [12:06:39]Read from MH i2c: E2 0E 00 [12:06:39]MH_I2C_Read... [12:06:39]Read from MH i2c: E2 0E 00 E7 2A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 55 [12:06:39]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:06:39]wFMCommunicate OK [12:06:39]SAM_PROTO_GetShiftState done [12:06:39]FM_GetShiftState done [12:06:39]opened in 1729555538 [12:06:39]opened+sec_in_day 1729641938 [12:06:39]quantity*price = 30038 [12:06:39]sum+1 = 30039 [12:06:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 139 22.10.2024 12:06 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228175 ФПД: 113985192816361 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120643&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228175&fm=113985192816361&tin=02508201610067®Number=0000000000091685&sum=30000 [12:06:40]StoreToDocumentArchive [12:06:40]shift 535 fd 228175 [12:06:40]save to /storage/0535/doc_00228175 [12:06:40]save last doc name /storage/0535/doc_00228175 to /storage/kkm_last_doc_name [12:06:40]save OK [12:06:40]Clear old archive folders... [12:06:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:06:40]tlvbuf is 008953B0 [12:06:40]SAM_PROTO_ClearQueue [12:06:40]wFMCommunicate request_size=4 [12:06:40]MH_SAM_APDU [12:06:40]CAPDU: 80 09 00 00 [12:06:40]Write to MH i2c: E2 08 00 F4 2A 80 09 00 00 00 00 00 00 90 [12:06:40]Write i2c OK [12:06:40]MH_I2C_Read... [12:06:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:40]Read from MH i2c: E2 [12:06:40]MH_I2C_Read... [12:06:40]Read from MH i2c: E2 03 00 [12:06:40]MH_I2C_Read... [12:06:40]Read from MH i2c: E2 03 00 F4 2A 00 90 00 92 [12:06:40]RAPDU: 90 00 [12:06:40]wFMCommunicate OK [12:06:40]SAM_PROTO_ClearQueue done [12:06:40]KKMCreateOFDPacket [12:06:40]OFDProtocolAddRootSTLVToBuf [12:06:40]FM_MakeSignedData [12:06:40]FM_MakeSignedData [12:06:40]SAM_PROTO_SignData [12:06:40]wFMCommunicate request_size=4 [12:06:40]MH_SAM_APDU [12:06:40]CAPDU: 80 0D 01 02 [12:06:40]Write to MH i2c: E2 08 00 F5 2A 80 0D 01 02 00 00 00 00 98 [12:06:40]Write i2c OK [12:06:40]MH_I2C_Read... [12:06:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:40]Read from MH i2c: E2 [12:06:40]MH_I2C_Read... [12:06:40]Read from MH i2c: E2 03 00 [12:06:40]MH_I2C_Read... [12:06:40]Read from MH i2c: E2 03 00 F5 2A 00 90 00 93 [12:06:40]RAPDU: 90 00 [12:06:40]wFMCommunicate OK [12:06:40]wFMCommunicate request_size=255 [12:06:40]MH_SAM_APDU [12:06: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 8B 00 00 00 F4 03 04 00 53 95 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4F 7B 03 00 35 04 06 00 67 [12:06:40]Write to MH i2c: E2 02 01 F6 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 8B 00 00 00 F4 03 04 00 53 95 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4F 7B 03 00 35 04 06 00 67 00 00 61 [12:06:40]Write i2c OK [12:06:40]MH_I2C_Read... [12:06:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:40]Read from MH i2c: E2 [12:06:40]MH_I2C_Read... [12:06:40]Read from MH i2c: E2 03 00 [12:06:40]MH_I2C_Read... [12:06:40]Read from MH i2c: E2 03 00 F6 2A 00 90 00 94 [12:06:40]RAPDU: 90 00 [12:06:40]wFMCommunicate OK [12:06:40]wFMCommunicate request_size=10 [12:06:40]MH_SAM_APDU [12:06:40]CAPDU: 80 0D 02 02 05 AB 3E ED 6E E9 [12:06:40]Write to MH i2c: E2 0D 00 F7 2A 80 0D 02 02 05 00 AB 3E ED 6E E9 00 00 D2 [12:06:40]Write i2c OK [12:06:40]MH_I2C_Read... [12:06:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:40]Read from MH i2c: E2 [12:06:40]MH_I2C_Read... [12:06:40]Read from MH i2c: E2 03 00 [12:06:40]MH_I2C_Read... [12:06:40]Read from MH i2c: E2 03 00 F7 2A 00 90 00 95 [12:06:40]RAPDU: 90 00 [12:06:40]wFMCommunicate OK [12:06:40]wFMCommunicate request_size=4 [12:06:40]MH_SAM_APDU [12:06:40]CAPDU: 80 0D 03 02 [12:06:40]Write to MH i2c: E2 08 00 F8 2A 80 0D 03 02 00 00 00 00 9D [12:06:40]Write i2c OK [12:06:40]MH_I2C_Read... [12:06:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:40]Read from MH i2c: E2 [12:06:40]MH_I2C_Read... [12:06:40]Read from MH i2c: E2 0B 00 [12:06:40]MH_I2C_Read... [12:06:40]Read from MH i2c: E2 0B 00 F8 2A 00 88 A3 77 52 67 02 8C 6D 90 00 F4 [12:06:40]RAPDU: 88 A3 77 52 67 02 8C 6D 90 00 [12:06:40]wFMCommunicate OK [12:06:40]SAM_PROTO_SignData done [12:06:40]FM_MakeSignedData done [12:06:40]CreateOFDProtocolMessage [12:06:40]wFMCommunicate request_size=4 [12:06:40]MH_SAM_APDU [12:06:40]CAPDU: 80 11 00 00 [12:06:40]Write to MH i2c: E2 08 00 F9 2A 80 11 00 00 00 00 00 00 9D [12:06:40]Write i2c OK [12:06:40]MH_I2C_Read... [12:06:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:40]Read from MH i2c: E2 [12:06:40]MH_I2C_Read... [12:06:40]Read from MH i2c: E2 17 00 [12:06:40]MH_I2C_Read... [12:06:40]Read from MH i2c: E2 17 00 F9 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F4 [12:06:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:06:40]wFMCommunicate OK [12:06:40]CreateOFDProtocolMessage done [12:06:40]OFDSenderStorePacket 228175 [12:06:40]StoreOFDPacket docnum=228175 [12:06:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 11 D8 07 01 25 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 11 00 00 00 00 00 37 04 06 00 22 1A 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 8B 00 00 00 F4 03 04 00 53 95 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4F 7B 03 00 35 04 06 00 67 AB 3E ED 6E E9 88 A3 77 52 67 02 8C 6D [12:06:40]CheckFolder [12:06:40]dirname=/storage/ofd_packets [12:06:40]CheckFolder done [12:06:40]ProducePacketName [12:06:40]name=ofd_packets/00228175 [12:06:40]NVStorageSaveData ofd_packets/00228175 [12:06:40]File name is /storage/ofd_packets/00228175 [12:06:40]Write 301 bytes [12:06:40]NVStorageSaveData done [12:06:40]OFDSenderStorePacket done [12:06:40]KKMCreateOFDPacket done [12:06:40]NVStorageSaveData kkm_last_timestamp [12:06:40]File name is /storage/kkm_last_timestamp [12:06:40]Write 4 bytes [12:06:40]NVStorageSaveData done [12:06:40]ExternCall_PrintAddStr [12:06:40]wPrintStart [12:06:40]Write to MH i2c: 01 00 00 FA 2A 24 [12:06:40]Write i2c OK [12:06:40]MH_I2C_Read... [12:06:40]Read from MH i2c: 01 [12:06:40]MH_I2C_Read... [12:06:40]Read from MH i2c: 01 07 00 [12:06:40]MH_I2C_Read... [12:06:40]Read from MH i2c: 01 07 00 FA 2A 00 00 00 00 00 FF 0F 39 [12:06:40]RasterBufferAndPrint [12:06:40]line Счет N : (1)1964610 [12:06:40]line ИНН: 02508201610067 [12:06:40]line Контрольно-Кассовый Чек [12:06:40]line ПРОДАЖА [12:06:40]line ТРК (МРК, ГНК) : 63 [12:06:40]line Товар: 2710124130 [12:06:40]line Аи-92-К-5 [12:06:40]line 4.490 * 66.90 [12:06:40]line = 300.38 [12:06:40]line НДС 12% НСП 1% [12:06:40]line > о реализуемом товаре [12:06:40]line ОКРУГЛЕНИЕ: -0.38 [12:06:40]line ИТОГО: 300.00 [12:06:40]line Внесено: 300.00 [12:06:40]line СДАЧА: 0.00 [12:06:40]line НСП 1% : 2.66 [12:06:40]line НДС 12% : 31.90 [12:06:40]line Наличными: 300.00 [12:06:40]line Безнал.: 0.00 [12:06:40]line Место: АЗС № 133 "Партнер Нефть" [12:06:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:06:40]line СНО: Общий режим [12:06:40]line Чек 139 22.10.2024 12:06 [12:06:40]line Смена: 535 ФФД: 1.0 [12:06:40]line ЗНМ: 0300000091 [12:06:40]line РНМ: 0000000000091685 [12:06:40]line Версия ККМ: 001 [12:06:40]line ФМ: 0000000000871839 [12:06:40]line ФД: 228175 [12:06:40]line ФПД: 113985192816361 [12:06:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120643&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228175&fm=113985192816361&tin=02508201610067®Number=0000000000091685&sum=30000 [12:06:41]written 0, free lines is 4095 [12:06:41]OFD Sender: Processing packet 228175 [packets to send 38, broken 37] [12:06:41]ProducePacketName [12:06:41]name=ofd_packets/00228175 [12:06:41]OFD Sender: To server: pG, [12:06:41]CommunicateWithHost lk.salyk.kg:30040 [12:06:41]ConnectInit lk.salyk.kg [12:06:41]Connected sock=10 [12:06:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 11 D8 07 01 25 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 11 00 00 00 00 00 37 04 06 00 22 1A 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 8B 00 00 00 F4 03 04 00 53 95 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4F 7B 03 00 35 04 06 00 67 AB 3E ED 6E E9 88 A3 77 52 67 02 8C 6D [12:06:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 A5 96 47 00 CD 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4F 7B 03 00 F4 03 04 00 4B 40 17 67 B6 04 01 00 00 3C 72 F0 49 0A 1F EA 6F [12:06:41]CommunicateWithHost err = 0 [12:06:41]CheckOFDResponse [12:06:41]1017 (14) - 77093643461234 [12:06:41]1041 (16) - 0000000000871839 [12:06:41]1040 (4) - 228175 [12:06:41]1012 (4) - 22.10.2024 06:03 [12:06:41]1206 (1) - 0 [12:06:41]OFD Sender: Remove packet 228175 [12:06:41]ProducePacketName [12:06:41]name=ofd_packets/00228175 [12:06:41]NVStorageDeleteData [12:06:41]Write to MH i2c: 01 00 00 24 2B 4F [12:06:41]Write i2c OK [12:06:41]MH_I2C_Read... [12:06:41]Read from MH i2c: 01 [12:06:41]MH_I2C_Read... [12:06:41]Read from MH i2c: 01 07 00 [12:06:41]MH_I2C_Read... [12:06:41]Read from MH i2c: 01 07 00 24 2B 00 00 00 00 00 D5 0C 37 [12:06:41]RasterBufferAndPrint [12:06:41]line [12:06:41]line [12:06:41]line [12:06:41]line [12:06:41]line [12:06:41]written 0, free lines is 3292 [12:06:41]MH_Cut [12:06:41]Write to MH i2c: D1 01 00 2B 2B 01 28 [12:06:41]Write i2c OK [12:06:41]MH_I2C_Read... [12:06:41]Read from MH i2c: D1 [12:06:41]MH_I2C_Read... [12:06:41]Read from MH i2c: D1 01 00 [12:06:41]MH_I2C_Read... [12:06:41]Read from MH i2c: D1 01 00 2B 2B 00 27 [12:06:41]Write to MH i2c: 01 00 00 2C 2B 57 [12:06:41]Write i2c OK [12:06:41]MH_I2C_Read... [12:06:42]OFD Sender: No OFD packet to send [12:06:42]*** Cut start [12:06:42]*** Partial cut [12:06:42]*** CUTSNS_PIN = 1 [12:06:42]*** CUTSNS_PIN = 0 [12:06:42]*** Brake cut motor [12:06:43]Read from MH i2c: 01 [12:06:43]MH_I2C_Read... [12:06:43]*** Stop cut motor [12:06:43]*** Cut end [12:06:43]Read from MH i2c: 01 07 00 [12:06:43]MH_I2C_Read... [12:06:43]Read from MH i2c: 01 07 00 2C 2B 00 00 00 00 00 FF 0F 6C [12:06:43]process_action close_receipt done [12:06:43]requested_data is exist [12:06:43]produce_requested_data [12:06:43]requested_item fm.sn is exist - process it [12:06:43]wFMCommunicate request_size=4 [12:06:43]MH_SAM_APDU [12:06:43]CAPDU: 80 11 00 00 [12:06:43]Write to MH i2c: E2 08 00 2D 2B 80 11 00 00 00 00 00 00 D2 [12:06:43]Write i2c OK [12:06:43]MH_I2C_Read... [12:06:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:43]Read from MH i2c: E2 [12:06:43]MH_I2C_Read... [12:06:43]Read from MH i2c: E2 17 00 [12:06:43]MH_I2C_Read... [12:06:43]Read from MH i2c: E2 17 00 2D 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 29 [12:06:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:06:43]wFMCommunicate OK [12:06:43]requested_item fd.num is exist - process it [12:06:43]SAM_PROTO_GetFieldsCounters [12:06:43]wFMCommunicate request_size=4 [12:06:43]MH_SAM_APDU [12:06:43]CAPDU: 80 13 00 00 [12:06:43]Write to MH i2c: E2 08 00 2E 2B 80 13 00 00 00 00 00 00 D5 [12:06:43]Write i2c OK [12:06:43]MH_I2C_Read... [12:06:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:43]Read from MH i2c: E2 [12:06:43]MH_I2C_Read... [12:06:43]Read from MH i2c: E2 62 00 [12:06:43]MH_I2C_Read... [12:06:43]Read from MH i2c: E2 62 00 2E 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4F 7B 03 00 0E 04 04 00 17 02 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 85 [12:06:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4F 7B 03 00 0E 04 04 00 17 02 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 [12:06:43]wFMCommunicate OK [12:06:43]SAM_PROTO_GetFieldsCounters done [12:06:43]requested_item shift.num is exist - process it [12:06:43]requested_item shift.opened is exist - process it [12:06:43]req_shift_opened [12:06:43]FM_GetShiftState [12:06:43]SAM_PROTO_GetShiftState [12:06:43]wFMCommunicate request_size=4 [12:06:43]MH_SAM_APDU [12:06:43]CAPDU: 80 13 01 00 [12:06:43]Write to MH i2c: E2 08 00 2F 2B 80 13 01 00 00 00 00 00 D7 [12:06:43]Write i2c OK [12:06:43]MH_I2C_Read... [12:06:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:43]Read from MH i2c: E2 [12:06:43]MH_I2C_Read... [12:06:43]Read from MH i2c: E2 0E 00 [12:06:43]MH_I2C_Read... [12:06:43]Read from MH i2c: E2 0E 00 2F 2B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 9E [12:06:43]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:06:43]wFMCommunicate OK [12:06:43]SAM_PROTO_GetShiftState done [12:06:43]FM_GetShiftState done [12:06:43]req_shift_opened done [12:06:43]requested_item shift.open_date is exist - process it [12:06:43]req_shift_open_date [12:06:43]req_shift_open_date done [12:06:43]produce_requested_data done [12:06:43]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228175,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [12:06:43]process_action_free close_receipt [12:06:43]json_value_free [12:06:43]json_value_free done [12:06:43]process_json_proto returns [12:06:43]Send response to host [12:06:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228175,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [12:06:43]free response buf [12:06:43]execute_script done [12:06:43]execute_script returns [12:06:43]free content buf [12:06:43]Sock 7.Close socket [12:06:43]Sock 7.Thread stoped [12:06:47]OFD Sender: No OFD packet to send [12:06:52]OFD Sender: No OFD packet to send [12:06:57]OFD Sender: No OFD packet to send [12:07:02]OFD Sender: No OFD packet to send [12:07:07]OFD Sender: No OFD packet to send [12:07:12]OFD Sender: No OFD packet to send [12:07:17]OFD Sender: No OFD packet to send [12:07:22]OFD Sender: No OFD packet to send [12:07:27]OFD Sender: No OFD packet to send [12:07:32]OFD Sender: No OFD packet to send [12:07:37]OFD Sender: No OFD packet to send [12:07:42]OFD Sender: No OFD packet to send [12:07:47]OFD Sender: No OFD packet to send [12:07:52]OFD Sender: No OFD packet to send [12:07:57]OFD Sender: No OFD packet to send [12:08:02]OFD Sender: No OFD packet to send [12:08:07]OFD Sender: No OFD packet to send [12:08:12]OFD Sender: No OFD packet to send [12:08:17]OFD Sender: No OFD packet to send [12:08:22]OFD Sender: No OFD packet to send [12:08:27]OFD Sender: No OFD packet to send [12:08:32]OFD Sender: No OFD packet to send [12:08:37]OFD Sender: No OFD packet to send [12:08:42]OFD Sender: No OFD packet to send [12:08:47]OFD Sender: No OFD packet to send [12:08:52]OFD Sender: No OFD packet to send [12:08:57]OFD Sender: No OFD packet to send [12:09:02]OFD Sender: No OFD packet to send [12:09:07]OFD Sender: No OFD packet to send [12:09:12]OFD Sender: No OFD packet to send [12:09:17]OFD Sender: No OFD packet to send [12:09:22]OFD Sender: No OFD packet to send [12:09:27]OFD Sender: No OFD packet to send [12:09:32]OFD Sender: No OFD packet to send [12:09:37]OFD Sender: No OFD packet to send [12:09:42]OFD Sender: No OFD packet to send [12:09:47]OFD Sender: No OFD packet to send [12:09:52]OFD Sender: No OFD packet to send [12:09:57]OFD Sender: No OFD packet to send [12:10:02]OFD Sender: No OFD packet to send [12:10:07]OFD Sender: No OFD packet to send [12:10:12]OFD Sender: No OFD packet to send [12:10:17]OFD Sender: No OFD packet to send [12:10:22]OFD Sender: No OFD packet to send [12:10:27]OFD Sender: No OFD packet to send [12:10:32]OFD Sender: No OFD packet to send [12:10:37]OFD Sender: No OFD packet to send [12:10:42]OFD Sender: No OFD packet to send [12:10:47]OFD Sender: No OFD packet to send [12:10:52]OFD Sender: No OFD packet to send [12:10:57]OFD Sender: No OFD packet to send [12:11:02]OFD Sender: No OFD packet to send [12:11:07]OFD Sender: No OFD packet to send [12:11:12]OFD Sender: No OFD packet to send [12:11:17]OFD Sender: No OFD packet to send [12:11:22]OFD Sender: No OFD packet to send [12:11:27]OFD Sender: No OFD packet to send [12:11:32]OFD Sender: No OFD packet to send [12:11:37]OFD Sender: No OFD packet to send [12:11:42]OFD Sender: No OFD packet to send [12:11:47]OFD Sender: No OFD packet to send [12:11:52]OFD Sender: No OFD packet to send [12:11:57]OFD Sender: No OFD packet to send [12:12:02]OFD Sender: No OFD packet to send [12:12:07]OFD Sender: No OFD packet to send [12:12:12]OFD Sender: No OFD packet to send [12:12:17]OFD Sender: No OFD packet to send [12:12:22]OFD Sender: No OFD packet to send [12:12:27]OFD Sender: No OFD packet to send [12:12:32]OFD Sender: No OFD packet to send [12:12:37]OFD Sender: No OFD packet to send [12:12:42]OFD Sender: No OFD packet to send [12:12:47]OFD Sender: No OFD packet to send [12:12:52]OFD Sender: No OFD packet to send [12:12:57]OFD Sender: No OFD packet to send [12:13:02]OFD Sender: No OFD packet to send [12:13:07]OFD Sender: No OFD packet to send [12:13:12]OFD Sender: No OFD packet to send [12:13:17]OFD Sender: No OFD packet to send [12:13:22]OFD Sender: No OFD packet to send [12:13:27]OFD Sender: No OFD packet to send [12:13:32]OFD Sender: No OFD packet to send [12:13:37]OFD Sender: No OFD packet to send [12:13:42]OFD Sender: No OFD packet to send [12:13:47]OFD Sender: No OFD packet to send [12:13:52]OFD Sender: No OFD packet to send [12:13:57]OFD Sender: No OFD packet to send [12:14:02]OFD Sender: No OFD packet to send [12:14:07]OFD Sender: No OFD packet to send [12:14:12]OFD Sender: No OFD packet to send [12:14:17]OFD Sender: No OFD packet to send [12:14:22]OFD Sender: No OFD packet to send [12:14:27]OFD Sender: No OFD packet to send [12:14:32]OFD Sender: No OFD packet to send [12:14:37]OFD Sender: No OFD packet to send [12:14:42]OFD Sender: No OFD packet to send [12:14:47]OFD Sender: No OFD packet to send [12:14:52]OFD Sender: No OFD packet to send [12:14:57]OFD Sender: No OFD packet to send [12:15:02]OFD Sender: No OFD packet to send [12:15:07]OFD Sender: No OFD packet to send [12:15:12]OFD Sender: No OFD packet to send [12:15:17]OFD Sender: No OFD packet to send [12:15:22]OFD Sender: No OFD packet to send [12:15:27]OFD Sender: No OFD packet to send [12:15:32]OFD Sender: No OFD packet to send [12:15:37]OFD Sender: No OFD packet to send [12:15:42]OFD Sender: No OFD packet to send [12:15:47]OFD Sender: No OFD packet to send [12:15:52]OFD Sender: No OFD packet to send [12:15:57]OFD Sender: No OFD packet to send [12:16:02]OFD Sender: No OFD packet to send [12:16:07]OFD Sender: No OFD packet to send [12:16:12]OFD Sender: No OFD packet to send [12:16:17]OFD Sender: No OFD packet to send [12:16:22]OFD Sender: No OFD packet to send [12:16:27]OFD Sender: No OFD packet to send [12:16:32]OFD Sender: No OFD packet to send [12:16:37]OFD Sender: No OFD packet to send [12:16:42]OFD Sender: No OFD packet to send [12:16:47]OFD Sender: No OFD packet to send [12:16:52]OFD Sender: No OFD packet to send [12:16:57]OFD Sender: No OFD packet to send [12:17:02]OFD Sender: No OFD packet to send [12:17:07]OFD Sender: No OFD packet to send [12:17:12]OFD Sender: No OFD packet to send [12:17:17]OFD Sender: No OFD packet to send [12:17:22]OFD Sender: No OFD packet to send [12:17:23]accept exits with 9 [12:17:23]New connection [12:17:23]New thread 3067137380 created [12:17:23]Thread 3066994020 joined [12:17:23]Waiting for new connection... [12:17:23] Sock 9.Parse request [12:17:23]Sock 9.Check first char [12:17:23]Sock 9.First char is OK [12:17:23]request: POST /json_proto HTTP/1.0 [12:17:23]Method: POST [12:17:23]URL: /json_proto [12:17:23]Method is POST - this is cgi request [12:17:23]url: /json_proto [12:17:23]query_string will be loaded in cgi processing [12:17:23]execute_cgi json_proto POST (null) [12:17:23]execute_cgi path=json_proto method=POST [12:17:23]POST find Content-Length [12:17:23]Host: 172.17.44.195:8080 [12:17:23]Content-Length: 678 [12:17:23]Content-Type: application/json [12:17:23] [12:17:23]POST finish read [12:17:23]Found Content-Length = 678 [12:17:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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:17:23]execute_script... [12:17: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)1964619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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:17:23]POST & json_proto [12:17:23]process_json_proto [12:17:23]json parsed OK: [12:17:23]protocol is kg_v1.0 [12:17:23]action value=close_receipt [12:17:23]process_action close_receipt [12:17:23]cmd_close_receipt [12:17:23]MH_GetDate [12:17:23]Write to MH i2c: F0 00 00 30 2B 4A [12:17:23]Write i2c OK [12:17:23]MH_I2C_Read... [12:17:23]Read from MH i2c: F0 [12:17:23]MH_I2C_Read... [12:17:23]Read from MH i2c: F0 09 00 [12:17:23]MH_I2C_Read... [12:17:23]Read from MH i2c: F0 09 00 30 2B 00 D7 97 17 67 82 C9 CF 66 BF [12:17:23]GetLastDocTimeStamp 1729598803 [12:17:23]current date 1729599447 [12:17:23]FM_GetShiftState [12:17:23]SAM_PROTO_GetShiftState [12:17:23]wFMCommunicate request_size=4 [12:17:23]MH_SAM_APDU [12:17:23]CAPDU: 80 13 01 00 [12:17:23]Write to MH i2c: E2 08 00 31 2B 80 13 01 00 00 00 00 00 D9 [12:17:23]Write i2c OK [12:17:23]MH_I2C_Read... [12:17:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:23]Read from MH i2c: E2 [12:17:23]MH_I2C_Read... [12:17:23]Read from MH i2c: E2 0E 00 [12:17:23]MH_I2C_Read... [12:17:23]Read from MH i2c: E2 0E 00 31 2B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 A0 [12:17:23]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:17:23]wFMCommunicate OK [12:17:23]SAM_PROTO_GetShiftState done [12:17:23]FM_GetShiftState done [12:17:23]opened in 1729555538 [12:17:23]opened+sec_in_day 1729641938 [12:17:23]quantity*price = 60009 [12:17:23]sum+1 = 60010 [12:17:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 140 22.10.2024 12:17 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228176 ФПД: 231169966264428 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121727&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228176&fm=231169966264428&tin=02508201610067®Number=0000000000091685&sum=60000 [12:17:25]StoreToDocumentArchive [12:17:25]shift 535 fd 228176 [12:17:25]save to /storage/0535/doc_00228176 [12:17:25]save last doc name /storage/0535/doc_00228176 to /storage/kkm_last_doc_name [12:17:25]save OK [12:17:25]Clear old archive folders... [12:17:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:17:25]tlvbuf is B6F85230 [12:17:25]SAM_PROTO_ClearQueue [12:17:25]wFMCommunicate request_size=4 [12:17:25]MH_SAM_APDU [12:17:25]CAPDU: 80 09 00 00 [12:17:25]Write to MH i2c: E2 08 00 3E 2B 80 09 00 00 00 00 00 00 DB [12:17:25]Write i2c OK [12:17:25]MH_I2C_Read... [12:17:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:25]Read from MH i2c: E2 [12:17:25]MH_I2C_Read... [12:17:25]Read from MH i2c: E2 03 00 [12:17:25]MH_I2C_Read... [12:17:25]Read from MH i2c: E2 03 00 3E 2B 00 90 00 DD [12:17:25]RAPDU: 90 00 [12:17:25]wFMCommunicate OK [12:17:25]SAM_PROTO_ClearQueue done [12:17:25]KKMCreateOFDPacket [12:17:25]OFDProtocolAddRootSTLVToBuf [12:17:25]FM_MakeSignedData [12:17:25]FM_MakeSignedData [12:17:25]SAM_PROTO_SignData [12:17:25]wFMCommunicate request_size=4 [12:17:25]MH_SAM_APDU [12:17:25]CAPDU: 80 0D 01 02 [12:17:25]Write to MH i2c: E2 08 00 3F 2B 80 0D 01 02 00 00 00 00 E3 [12:17:25]Write i2c OK [12:17:25]MH_I2C_Read... [12:17:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:25]Read from MH i2c: E2 [12:17:25]MH_I2C_Read... [12:17:25]Read from MH i2c: E2 03 00 [12:17:25]MH_I2C_Read... [12:17:25]Read from MH i2c: E2 03 00 3F 2B 00 90 00 DE [12:17:25]RAPDU: 90 00 [12:17:25]wFMCommunicate OK [12:17:25]wFMCommunicate request_size=255 [12:17:25]MH_SAM_APDU [12:17: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 8C 00 00 00 F4 03 04 00 D7 97 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 50 7B 03 00 35 04 06 00 D2 [12:17:25]Write to MH i2c: E2 02 01 40 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 8C 00 00 00 F4 03 04 00 D7 97 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 50 7B 03 00 35 04 06 00 D2 00 00 88 [12:17:25]Write i2c OK [12:17:25]MH_I2C_Read... [12:17:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:25]Read from MH i2c: E2 [12:17:25]MH_I2C_Read... [12:17:25]Read from MH i2c: E2 03 00 [12:17:25]MH_I2C_Read... [12:17:25]Read from MH i2c: E2 03 00 40 2B 00 90 00 DF [12:17:25]RAPDU: 90 00 [12:17:25]wFMCommunicate OK [12:17:25]wFMCommunicate request_size=10 [12:17:25]MH_SAM_APDU [12:17:25]CAPDU: 80 0D 02 02 05 3F 73 B8 D0 6C [12:17:25]Write to MH i2c: E2 0D 00 41 2B 80 0D 02 02 05 00 3F 73 B8 D0 6C 00 00 96 [12:17:25]Write i2c OK [12:17:25]MH_I2C_Read... [12:17:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:25]Read from MH i2c: E2 [12:17:25]MH_I2C_Read... [12:17:25]Read from MH i2c: E2 03 00 [12:17:25]MH_I2C_Read... [12:17:25]Read from MH i2c: E2 03 00 41 2B 00 90 00 E0 [12:17:25]RAPDU: 90 00 [12:17:25]wFMCommunicate OK [12:17:25]wFMCommunicate request_size=4 [12:17:25]MH_SAM_APDU [12:17:25]CAPDU: 80 0D 03 02 [12:17:25]Write to MH i2c: E2 08 00 42 2B 80 0D 03 02 00 00 00 00 E8 [12:17:25]Write i2c OK [12:17:25]MH_I2C_Read... [12:17:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:25]Read from MH i2c: E2 [12:17:25]MH_I2C_Read... [12:17:25]Read from MH i2c: E2 0B 00 [12:17:25]MH_I2C_Read... [12:17:25]Read from MH i2c: E2 0B 00 42 2B 00 05 B9 77 DB 9B F7 37 76 90 00 38 [12:17:25]RAPDU: 05 B9 77 DB 9B F7 37 76 90 00 [12:17:25]wFMCommunicate OK [12:17:25]SAM_PROTO_SignData done [12:17:25]FM_MakeSignedData done [12:17:25]CreateOFDProtocolMessage [12:17:25]wFMCommunicate request_size=4 [12:17:25]MH_SAM_APDU [12:17:25]CAPDU: 80 11 00 00 [12:17:25]Write to MH i2c: E2 08 00 43 2B 80 11 00 00 00 00 00 00 E8 [12:17:25]Write i2c OK [12:17:25]MH_I2C_Read... [12:17:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:25]Read from MH i2c: E2 [12:17:25]MH_I2C_Read... [12:17:25]Read from MH i2c: E2 17 00 [12:17:25]MH_I2C_Read... [12:17:25]Read from MH i2c: E2 17 00 43 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 3F [12:17:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:17:25]wFMCommunicate OK [12:17:25]CreateOFDProtocolMessage done [12:17:25]OFDSenderStorePacket 228176 [12:17:25]StoreOFDPacket docnum=228176 [12:17:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 BA C4 07 01 6F 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 8C 00 00 00 F4 03 04 00 D7 97 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 50 7B 03 00 35 04 06 00 D2 3F 73 B8 D0 6C 05 B9 77 DB 9B F7 37 76 [12:17:25]CheckFolder [12:17:25]dirname=/storage/ofd_packets [12:17:25]CheckFolder done [12:17:25]ProducePacketName [12:17:25]name=ofd_packets/00228176 [12:17:25]NVStorageSaveData ofd_packets/00228176 [12:17:25]File name is /storage/ofd_packets/00228176 [12:17:25]Write 301 bytes [12:17:25]NVStorageSaveData done [12:17:25]OFDSenderStorePacket done [12:17:25]KKMCreateOFDPacket done [12:17:25]NVStorageSaveData kkm_last_timestamp [12:17:25]File name is /storage/kkm_last_timestamp [12:17:25]Write 4 bytes [12:17:25]NVStorageSaveData done [12:17:25]ExternCall_PrintAddStr [12:17:25]wPrintStart [12:17:25]Write to MH i2c: 01 00 00 44 2B 6F [12:17:25]Write i2c OK [12:17:25]MH_I2C_Read... [12:17:25]Read from MH i2c: 01 [12:17:25]MH_I2C_Read... [12:17:25]Read from MH i2c: 01 07 00 [12:17:25]MH_I2C_Read... [12:17:25]Read from MH i2c: 01 07 00 44 2B 00 00 00 00 00 FF 0F 84 [12:17:25]RasterBufferAndPrint [12:17:25]line Счет N : (1)1964619 [12:17:25]line ИНН: 02508201610067 [12:17:25]line Контрольно-Кассовый Чек [12:17:25]line ПРОДАЖА [12:17:25]line ТРК (МРК, ГНК) : 33 [12:17:25]line Товар: 2710124130 [12:17:25]line Аи-92-К-5 [12:17:25]line 8.970 * 66.90 [12:17:25]line = 600.09 [12:17:25]line НДС 12% НСП 1% [12:17:25]line > о реализуемом товаре [12:17:25]line ОКРУГЛЕНИЕ: -0.09 [12:17:25]line ИТОГО: 600.00 [12:17:25]line Внесено: 600.00 [12:17:25]line СДАЧА: 0.00 [12:17:25]line НСП 1% : 5.31 [12:17:25]line НДС 12% : 63.73 [12:17:25]line Наличными: 600.00 [12:17:25]line Безнал.: 0.00 [12:17:25]line Место: АЗС № 133 "Партнер Нефть" [12:17:25]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:17:25]line СНО: Общий режим [12:17:25]line Чек 140 22.10.2024 12:17 [12:17:25]line Смена: 535 ФФД: 1.0 [12:17:25]line ЗНМ: 0300000091 [12:17:25]line РНМ: 0000000000091685 [12:17:25]line Версия ККМ: 001 [12:17:25]line ФМ: 0000000000871839 [12:17:25]line ФД: 228176 [12:17:25]line ФПД: 231169966264428 [12:17:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121727&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228176&fm=231169966264428&tin=02508201610067®Number=0000000000091685&sum=60000 [12:17:25]OFD Sender: Processing packet 228176 [packets to send 38, broken 37] [12:17:25]ProducePacketName [12:17:25]name=ofd_packets/00228176 [12:17:25]OFD Sender: To server: pG, [12:17:25]CommunicateWithHost lk.salyk.kg:30040 [12:17:25]ConnectInit lk.salyk.kg [12:17:25]written 0, free lines is 4095 [12:17:26]Connected sock=10 [12:17:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 BA C4 07 01 6F 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 8C 00 00 00 F4 03 04 00 D7 97 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 50 7B 03 00 35 04 06 00 D2 3F 73 B8 D0 6C 05 B9 77 DB 9B F7 37 76 [12:17:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 46 64 47 00 86 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 50 7B 03 00 F4 03 04 00 D0 42 17 67 B6 04 01 00 00 59 2D 09 D9 92 69 2F 60 [12:17:26]CommunicateWithHost err = 0 [12:17:26]CheckOFDResponse [12:17:26]1017 (14) - 77093643461234 [12:17:26]1041 (16) - 0000000000871839 [12:17:26]1040 (4) - 228176 [12:17:26]1012 (4) - 22.10.2024 06:14 [12:17:26]1206 (1) - 0 [12:17:26]OFD Sender: Remove packet 228176 [12:17:26]ProducePacketName [12:17:26]name=ofd_packets/00228176 [12:17:26]NVStorageDeleteData [12:17:26]Write to MH i2c: 01 00 00 6E 2B 99 [12:17:26]Write i2c OK [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: 01 [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: 01 07 00 [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: 01 07 00 6E 2B 00 00 00 00 00 C3 0C 6F [12:17:26]RasterBufferAndPrint [12:17:26]line [12:17:26]line [12:17:26]line [12:17:26]line [12:17:26]line [12:17:26]written 0, free lines is 3273 [12:17:26]MH_Cut [12:17:26]Write to MH i2c: D1 01 00 75 2B 01 72 [12:17:26]Write i2c OK [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: D1 [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: D1 01 00 [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: D1 01 00 75 2B 00 71 [12:17:26]Write to MH i2c: 01 00 00 76 2B A1 [12:17:26]Write i2c OK [12:17:26]MH_I2C_Read... [12:17:26]OFD Sender: No OFD packet to send [12:17:27]*** Cut start [12:17:27]*** Partial cut [12:17:27]*** CUTSNS_PIN = 1 [12:17:27]*** CUTSNS_PIN = 0 [12:17:27]*** Brake cut motor [12:17:27]Read from MH i2c: 01 [12:17:27]MH_I2C_Read... [12:17:27]*** Stop cut motor [12:17:27]*** Cut end [12:17:27]Read from MH i2c: 01 07 00 [12:17:27]MH_I2C_Read... [12:17:27]Read from MH i2c: 01 07 00 76 2B 00 00 00 00 00 FF 0F B6 [12:17:27]process_action close_receipt done [12:17:27]requested_data is exist [12:17:27]produce_requested_data [12:17:27]requested_item fm.sn is exist - process it [12:17:27]wFMCommunicate request_size=4 [12:17:27]MH_SAM_APDU [12:17:27]CAPDU: 80 11 00 00 [12:17:27]Write to MH i2c: E2 08 00 77 2B 80 11 00 00 00 00 00 00 1C [12:17:27]Write i2c OK [12:17:27]MH_I2C_Read... [12:17:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:27]Read from MH i2c: E2 [12:17:27]MH_I2C_Read... [12:17:27]Read from MH i2c: E2 17 00 [12:17:27]MH_I2C_Read... [12:17:27]Read from MH i2c: E2 17 00 77 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 73 [12:17:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:17:27]wFMCommunicate OK [12:17:27]requested_item fd.num is exist - process it [12:17:27]SAM_PROTO_GetFieldsCounters [12:17:27]wFMCommunicate request_size=4 [12:17:27]MH_SAM_APDU [12:17:27]CAPDU: 80 13 00 00 [12:17:27]Write to MH i2c: E2 08 00 78 2B 80 13 00 00 00 00 00 00 1F [12:17:27]Write i2c OK [12:17:27]MH_I2C_Read... [12:17:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:28]Read from MH i2c: E2 [12:17:28]MH_I2C_Read... [12:17:28]Read from MH i2c: E2 62 00 [12:17:28]MH_I2C_Read... [12:17:28]Read from MH i2c: E2 62 00 78 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 50 7B 03 00 0E 04 04 00 17 02 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 D3 [12:17:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 50 7B 03 00 0E 04 04 00 17 02 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 [12:17:28]wFMCommunicate OK [12:17:28]SAM_PROTO_GetFieldsCounters done [12:17:28]requested_item shift.num is exist - process it [12:17:28]requested_item shift.opened is exist - process it [12:17:28]req_shift_opened [12:17:28]FM_GetShiftState [12:17:28]SAM_PROTO_GetShiftState [12:17:28]wFMCommunicate request_size=4 [12:17:28]MH_SAM_APDU [12:17:28]CAPDU: 80 13 01 00 [12:17:28]Write to MH i2c: E2 08 00 79 2B 80 13 01 00 00 00 00 00 21 [12:17:28]Write i2c OK [12:17:28]MH_I2C_Read... [12:17:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:28]Read from MH i2c: E2 [12:17:28]MH_I2C_Read... [12:17:28]Read from MH i2c: E2 0E 00 [12:17:28]MH_I2C_Read... [12:17:28]Read from MH i2c: E2 0E 00 79 2B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 E8 [12:17:28]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:17:28]wFMCommunicate OK [12:17:28]SAM_PROTO_GetShiftState done [12:17:28]FM_GetShiftState done [12:17:28]req_shift_opened done [12:17:28]requested_item shift.open_date is exist - process it [12:17:28]req_shift_open_date [12:17:28]req_shift_open_date done [12:17:28]produce_requested_data done [12:17:28]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228176,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [12:17:28]process_action_free close_receipt [12:17:28]json_value_free [12:17:28]json_value_free done [12:17:28]process_json_proto returns [12:17:28]Send response to host [12:17:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228176,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [12:17:28]free response buf [12:17:28]execute_script done [12:17:28]execute_script returns [12:17:28]free content buf [12:17:28]Sock 9.Close socket [12:17:28]Sock 9.Thread stoped [12:17:31]OFD Sender: No OFD packet to send [12:17:36]OFD Sender: No OFD packet to send [12:17:41]OFD Sender: No OFD packet to send [12:17:46]accept exits with 7 [12:17:46]New connection [12:17:46]New thread 3066994020 created [12:17:46]Thread 3067137380 joined [12:17:46]Waiting for new connection... [12:17:46] Sock 7.Parse request [12:17:46]Sock 7.Check first char [12:17:46]Sock 7.First char is OK [12:17:46]request: POST /json_proto HTTP/1.0 [12:17:46]Method: POST [12:17:46]URL: /json_proto [12:17:46]Method is POST - this is cgi request [12:17:46]url: /json_proto [12:17:46]query_string will be loaded in cgi processing [12:17:46]execute_cgi json_proto POST (null) [12:17:46]execute_cgi path=json_proto method=POST [12:17:46]POST find Content-Length [12:17:46]Host: 172.17.44.195:8080 [12:17:46]Content-Length: 767 [12:17:46]Content-Type: application/json [12:17:46] [12:17:46]POST finish read [12:17:46]Found Content-Length = 767 [12:17:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964620", "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" : 66.90, "quantity" : 7.480, "sum" : 500.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: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:46]execute_script... [12:17: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)1964620", "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" : 66.90, "quantity" : 7.480, "sum" : 500.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: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:46]POST & json_proto [12:17:46]process_json_proto [12:17:46]json parsed OK: [12:17:46]protocol is kg_v1.0 [12:17:46]action value=close_receipt [12:17:46]process_action close_receipt [12:17:46]cmd_close_receipt [12:17:46]MH_GetDate [12:17:46]Write to MH i2c: F0 00 00 7A 2B 94 [12:17:46]Write i2c OK [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: F0 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: F0 09 00 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: F0 09 00 7A 2B 00 EE 97 17 67 82 C9 CF 66 20 [12:17:46]GetLastDocTimeStamp 1729599447 [12:17:46]current date 1729599470 [12:17:46]FM_GetShiftState [12:17:46]SAM_PROTO_GetShiftState [12:17:46]wFMCommunicate request_size=4 [12:17:46]MH_SAM_APDU [12:17:46]CAPDU: 80 13 01 00 [12:17:46]Write to MH i2c: E2 08 00 7B 2B 80 13 01 00 00 00 00 00 23 [12:17:46]Write i2c OK [12:17:46]MH_I2C_Read... [12:17:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:46]Read from MH i2c: E2 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: E2 0E 00 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: E2 0E 00 7B 2B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 EA [12:17:46]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:17:46]wFMCommunicate OK [12:17:46]SAM_PROTO_GetShiftState done [12:17:46]FM_GetShiftState done [12:17:46]opened in 1729555538 [12:17:46]opened+sec_in_day 1729641938 [12:17:46]quantity*price = 50041 [12:17:46]sum+1 = 50042 [12:17:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 141 22.10.2024 12:17 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 228177 ФПД: 26602046121627 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121750&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228177&fm=26602046121627&tin=02508201610067®Number=0000000000091685&sum=50041 [12:17:47]StoreToDocumentArchive [12:17:47]shift 535 fd 228177 [12:17:47]save to /storage/0535/doc_00228177 [12:17:47]save last doc name /storage/0535/doc_00228177 to /storage/kkm_last_doc_name [12:17:47]save OK [12:17:47]Clear old archive folders... [12:17:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:17:47]tlvbuf is 008E7A70 [12:17:47]SAM_PROTO_ClearQueue [12:17:47]wFMCommunicate request_size=4 [12:17:47]MH_SAM_APDU [12:17:47]CAPDU: 80 09 00 00 [12:17:47]Write to MH i2c: E2 08 00 88 2B 80 09 00 00 00 00 00 00 25 [12:17:47]Write i2c OK [12:17:47]MH_I2C_Read... [12:17:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:47]Read from MH i2c: E2 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: E2 03 00 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: E2 03 00 88 2B 00 90 00 27 [12:17:47]RAPDU: 90 00 [12:17:47]wFMCommunicate OK [12:17:47]SAM_PROTO_ClearQueue done [12:17:47]KKMCreateOFDPacket [12:17:47]OFDProtocolAddRootSTLVToBuf [12:17:47]FM_MakeSignedData [12:17:47]FM_MakeSignedData [12:17:47]SAM_PROTO_SignData [12:17:47]wFMCommunicate request_size=4 [12:17:47]MH_SAM_APDU [12:17:47]CAPDU: 80 0D 01 02 [12:17:47]Write to MH i2c: E2 08 00 89 2B 80 0D 01 02 00 00 00 00 2D [12:17:47]Write i2c OK [12:17:47]MH_I2C_Read... [12:17:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:47]Read from MH i2c: E2 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: E2 03 00 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: E2 03 00 89 2B 00 90 00 28 [12:17:47]RAPDU: 90 00 [12:17:47]wFMCommunicate OK [12:17:47]wFMCommunicate request_size=255 [12:17:47]MH_SAM_APDU [12:17: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 EE 97 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 51 7B 03 00 35 04 06 00 18 [12:17:47]Write to MH i2c: E2 02 01 8A 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 EE 97 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 51 7B 03 00 35 04 06 00 18 00 00 A6 [12:17:47]Write i2c OK [12:17:47]MH_I2C_Read... [12:17:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:47]Read from MH i2c: E2 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: E2 03 00 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: E2 03 00 8A 2B 00 90 00 29 [12:17:47]RAPDU: 90 00 [12:17:47]wFMCommunicate OK [12:17:47]wFMCommunicate request_size=10 [12:17:47]MH_SAM_APDU [12:17:47]CAPDU: 80 0D 02 02 05 31 C5 82 66 9B [12:17:47]Write to MH i2c: E2 0D 00 8B 2B 80 0D 02 02 05 00 31 C5 82 66 9B 00 00 B3 [12:17:47]Write i2c OK [12:17:47]MH_I2C_Read... [12:17:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:47]Read from MH i2c: E2 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: E2 03 00 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: E2 03 00 8B 2B 00 90 00 2A [12:17:47]RAPDU: 90 00 [12:17:47]wFMCommunicate OK [12:17:47]wFMCommunicate request_size=4 [12:17:47]MH_SAM_APDU [12:17:47]CAPDU: 80 0D 03 02 [12:17:47]Write to MH i2c: E2 08 00 8C 2B 80 0D 03 02 00 00 00 00 32 [12:17:47]Write i2c OK [12:17:47]MH_I2C_Read... [12:17:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:47]Read from MH i2c: E2 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: E2 0B 00 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: E2 0B 00 8C 2B 00 C4 1A D3 3D 6C 0F 90 EA 90 00 16 [12:17:47]RAPDU: C4 1A D3 3D 6C 0F 90 EA 90 00 [12:17:47]wFMCommunicate OK [12:17:47]SAM_PROTO_SignData done [12:17:47]FM_MakeSignedData done [12:17:47]CreateOFDProtocolMessage [12:17:47]wFMCommunicate request_size=4 [12:17:47]MH_SAM_APDU [12:17:47]CAPDU: 80 11 00 00 [12:17:47]Write to MH i2c: E2 08 00 8D 2B 80 11 00 00 00 00 00 00 32 [12:17:47]Write i2c OK [12:17:47]MH_I2C_Read... [12:17:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:47]Read from MH i2c: E2 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: E2 17 00 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: E2 17 00 8D 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 89 [12:17:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:17:47]wFMCommunicate OK [12:17:47]CreateOFDProtocolMessage done [12:17:47]OFDSenderStorePacket 228177 [12:17:47]StoreOFDPacket docnum=228177 [12:17:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B3 2A 07 01 41 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 EE 97 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 51 7B 03 00 35 04 06 00 18 31 C5 82 66 9B C4 1A D3 3D 6C 0F 90 EA [12:17:47]CheckFolder [12:17:47]dirname=/storage/ofd_packets [12:17:47]CheckFolder done [12:17:47]ProducePacketName [12:17:47]name=ofd_packets/00228177 [12:17:47]NVStorageSaveData ofd_packets/00228177 [12:17:47]File name is /storage/ofd_packets/00228177 [12:17:47]Write 301 bytes [12:17:47]NVStorageSaveData done [12:17:47]OFDSenderStorePacket done [12:17:47]KKMCreateOFDPacket done [12:17:47]NVStorageSaveData kkm_last_timestamp [12:17:47]File name is /storage/kkm_last_timestamp [12:17:47]Write 4 bytes [12:17:47]NVStorageSaveData done [12:17:47]ExternCall_PrintAddStr [12:17:47]wPrintStart [12:17:47]Write to MH i2c: 01 00 00 8E 2B B9 [12:17:47]Write i2c OK [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: 01 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: 01 07 00 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: 01 07 00 8E 2B 00 00 00 00 00 FF 0F CE [12:17:47]RasterBufferAndPrint [12:17:47]line Счет N : (1)1964620 [12:17:47]line ИНН: 02508201610067 [12:17:47]line Контрольно-Кассовый Чек [12:17:47]line ПРОДАЖА [12:17:47]line ТРК (МРК, ГНК) : 63 [12:17:47]line Товар: 2710124130 [12:17:47]line Аи-92-К-5 [12:17:47]line 7.480 * 66.90 [12:17:47]line = 500.41 [12:17:47]line НДС 12% НСП 1% [12:17:47]line > о реализуемом товаре [12:17:47]line ИТОГО: 500.41 [12:17:47]line НСП 1% : 4.43 [12:17:47]line НДС 12% : 53.14 [12:17:47]line Наличными: 0.00 [12:17:47]line Безнал.: 500.41 [12:17:47]line Место: АЗС № 133 "Партнер Нефть" [12:17:47]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:17:47]line СНО: Общий режим [12:17:47]line Чек 141 22.10.2024 12:17 [12:17:47]line Смена: 535 ФФД: 1.0 [12:17:47]line ЗНМ: 0300000091 [12:17:47]line РНМ: 0000000000091685 [12:17:47]line Версия ККМ: 001 [12:17:47]line Платежная система: Mbank [12:17:47]line ФМ: 0000000000871839 [12:17:47]line ФД: 228177 [12:17:47]line ФПД: 26602046121627 [12:17:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121750&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228177&fm=26602046121627&tin=02508201610067®Number=0000000000091685&sum=50041 [12:17:47]written 0, free lines is 4095 [12:17:47]OFD Sender: Processing packet 228177 [packets to send 38, broken 37] [12:17:47]ProducePacketName [12:17:47]name=ofd_packets/00228177 [12:17:47]OFD Sender: To server: pG, [12:17:48]CommunicateWithHost lk.salyk.kg:30040 [12:17:48]ConnectInit lk.salyk.kg [12:17:48]Write to MH i2c: 01 00 00 B6 2B E1 [12:17:48]Write i2c OK [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: 01 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: 01 07 00 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: 01 07 00 B6 2B 00 00 00 00 00 E4 0C D8 [12:17:48]RasterBufferAndPrint [12:17:48]line [12:17:48]line [12:17:48]line [12:17:48]line [12:17:48]line [12:17:48]Connected sock=10 [12:17:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B3 2A 07 01 41 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 EE 97 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 51 7B 03 00 35 04 06 00 18 31 C5 82 66 9B C4 1A D3 3D 6C 0F 90 EA [12:17:48]written 0, free lines is 3320 [12:17:48]MH_Cut [12:17:48]Write to MH i2c: D1 01 00 BD 2B 01 BA [12:17:48]Write i2c OK [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: D1 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: D1 01 00 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: D1 01 00 BD 2B 00 B9 [12:17:48]Write to MH i2c: 01 00 00 BE 2B E9 [12:17:48]Write i2c OK [12:17:48]MH_I2C_Read... [12:17:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 EB 88 47 00 34 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 51 7B 03 00 F4 03 04 00 E6 42 17 67 B6 04 01 00 00 91 88 F6 59 FE A4 8B B4 [12:17:48]CommunicateWithHost err = 0 [12:17:48]CheckOFDResponse [12:17:48]1017 (14) - 77093643461234 [12:17:48]1041 (16) - 0000000000871839 [12:17:48]1040 (4) - 228177 [12:17:48]1012 (4) - 22.10.2024 06:15 [12:17:48]1206 (1) - 0 [12:17:48]OFD Sender: Remove packet 228177 [12:17:48]ProducePacketName [12:17:48]name=ofd_packets/00228177 [12:17:48]NVStorageDeleteData [12:17:49]OFD Sender: No OFD packet to send [12:17:49]*** Cut start [12:17:49]*** Partial cut [12:17:49]*** CUTSNS_PIN = 1 [12:17:49]*** CUTSNS_PIN = 0 [12:17:49]*** Brake cut motor [12:17:49]Read from MH i2c: 01 [12:17:49]MH_I2C_Read... [12:17:49]*** Stop cut motor [12:17:49]*** Cut end [12:17:49]Read from MH i2c: 01 07 00 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: 01 07 00 BE 2B 00 00 00 00 00 FF 0F FE [12:17:49]process_action close_receipt done [12:17:49]requested_data is exist [12:17:49]produce_requested_data [12:17:49]requested_item fm.sn is exist - process it [12:17:49]wFMCommunicate request_size=4 [12:17:49]MH_SAM_APDU [12:17:49]CAPDU: 80 11 00 00 [12:17:49]Write to MH i2c: E2 08 00 BF 2B 80 11 00 00 00 00 00 00 64 [12:17:49]Write i2c OK [12:17:49]MH_I2C_Read... [12:17:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:49]Read from MH i2c: E2 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: E2 17 00 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: E2 17 00 BF 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BB [12:17:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:17:49]wFMCommunicate OK [12:17:49]requested_item fd.num is exist - process it [12:17:49]SAM_PROTO_GetFieldsCounters [12:17:49]wFMCommunicate request_size=4 [12:17:49]MH_SAM_APDU [12:17:49]CAPDU: 80 13 00 00 [12:17:49]Write to MH i2c: E2 08 00 C0 2B 80 13 00 00 00 00 00 00 67 [12:17:49]Write i2c OK [12:17:49]MH_I2C_Read... [12:17:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:49]Read from MH i2c: E2 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: E2 62 00 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: E2 62 00 C0 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 51 7B 03 00 0E 04 04 00 17 02 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 1F [12:17:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 51 7B 03 00 0E 04 04 00 17 02 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 [12:17:49]wFMCommunicate OK [12:17:49]SAM_PROTO_GetFieldsCounters done [12:17:49]requested_item shift.num is exist - process it [12:17:49]requested_item shift.opened is exist - process it [12:17:49]req_shift_opened [12:17:49]FM_GetShiftState [12:17:49]SAM_PROTO_GetShiftState [12:17:49]wFMCommunicate request_size=4 [12:17:49]MH_SAM_APDU [12:17:49]CAPDU: 80 13 01 00 [12:17:49]Write to MH i2c: E2 08 00 C1 2B 80 13 01 00 00 00 00 00 69 [12:17:49]Write i2c OK [12:17:49]MH_I2C_Read... [12:17:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:49]Read from MH i2c: E2 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: E2 0E 00 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: E2 0E 00 C1 2B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 30 [12:17:49]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:17:49]wFMCommunicate OK [12:17:49]SAM_PROTO_GetShiftState done [12:17:49]FM_GetShiftState done [12:17:49]req_shift_opened done [12:17:49]requested_item shift.open_date is exist - process it [12:17:49]req_shift_open_date [12:17:49]req_shift_open_date done [12:17:49]produce_requested_data done [12:17:49]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228177,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [12:17:49]process_action_free close_receipt [12:17:49]json_value_free [12:17:49]json_value_free done [12:17:49]process_json_proto returns [12:17:49]Send response to host [12:17:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228177,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [12:17:49]free response buf [12:17:49]execute_script done [12:17:49]execute_script returns [12:17:49]free content buf [12:17:49]Sock 7.Close socket [12:17:49]Sock 7.Thread stoped [12:17:53]accept exits with 9 [12:17:53]New connection [12:17:53]New thread 3067137380 created [12:17:53]Thread 3066994020 joined [12:17:53]Waiting for new connection... [12:17:53] Sock 9.Parse request [12:17:53]Sock 9.Check first char [12:17:53]Sock 9.First char is OK [12:17:53]request: POST /json_proto HTTP/1.0 [12:17:53]Method: POST [12:17:53]URL: /json_proto [12:17:53]Method is POST - this is cgi request [12:17:53]url: /json_proto [12:17:53]query_string will be loaded in cgi processing [12:17:53]execute_cgi json_proto POST (null) [12:17:53]execute_cgi path=json_proto method=POST [12:17:53]POST find Content-Length [12:17:53]Host: 172.17.44.195:8080 [12:17:53]Content-Length: 680 [12:17:53]Content-Type: application/json [12:17:53] [12:17:53]POST finish read [12:17:53]Found Content-Length = 680 [12:17:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964616", "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" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "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" ] } } [12:17:53]execute_script... [12:17: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)1964616", "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" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "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" ] } } [12:17:53]POST & json_proto [12:17:53]process_json_proto [12:17:53]json parsed OK: [12:17:53]protocol is kg_v1.0 [12:17:53]action value=close_receipt [12:17:53]process_action close_receipt [12:17:53]cmd_close_receipt [12:17:53]MH_GetDate [12:17:53]Write to MH i2c: F0 00 00 C2 2B DC [12:17:53]Write i2c OK [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: F0 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: F0 09 00 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: F0 09 00 C2 2B 00 F5 97 17 67 82 C9 CF 66 6F [12:17:53]GetLastDocTimeStamp 1729599470 [12:17:53]current date 1729599477 [12:17:53]FM_GetShiftState [12:17:53]SAM_PROTO_GetShiftState [12:17:53]wFMCommunicate request_size=4 [12:17:53]MH_SAM_APDU [12:17:53]CAPDU: 80 13 01 00 [12:17:53]Write to MH i2c: E2 08 00 C3 2B 80 13 01 00 00 00 00 00 6B [12:17:53]Write i2c OK [12:17:53]MH_I2C_Read... [12:17:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:53]Read from MH i2c: E2 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: E2 0E 00 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: E2 0E 00 C3 2B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 32 [12:17:53]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:17:53]wFMCommunicate OK [12:17:53]SAM_PROTO_GetShiftState done [12:17:53]FM_GetShiftState done [12:17:53]opened in 1729555538 [12:17:53]opened+sec_in_day 1729641938 [12:17:53]quantity*price = 120015 [12:17:53]sum+1 = 120016 [12:17:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 142 22.10.2024 12:17 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228178 ФПД: 62382506283499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121757&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228178&fm=62382506283499&tin=02508201610067®Number=0000000000091685&sum=120000 [12:17:55]StoreToDocumentArchive [12:17:55]shift 535 fd 228178 [12:17:55]save to /storage/0535/doc_00228178 [12:17:55]save last doc name /storage/0535/doc_00228178 to /storage/kkm_last_doc_name [12:17:55]save OK [12:17:55]Clear old archive folders... [12:17:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:17:55]tlvbuf is 008AF0A0 [12:17:55]SAM_PROTO_ClearQueue [12:17:55]wFMCommunicate request_size=4 [12:17:55]MH_SAM_APDU [12:17:55]CAPDU: 80 09 00 00 [12:17:55]Write to MH i2c: E2 08 00 D0 2B 80 09 00 00 00 00 00 00 6D [12:17:55]Write i2c OK [12:17:55]MH_I2C_Read... [12:17:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:55]Read from MH i2c: E2 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 03 00 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 03 00 D0 2B 00 90 00 6F [12:17:55]RAPDU: 90 00 [12:17:55]wFMCommunicate OK [12:17:55]SAM_PROTO_ClearQueue done [12:17:55]KKMCreateOFDPacket [12:17:55]OFDProtocolAddRootSTLVToBuf [12:17:55]FM_MakeSignedData [12:17:55]FM_MakeSignedData [12:17:55]SAM_PROTO_SignData [12:17:55]wFMCommunicate request_size=4 [12:17:55]MH_SAM_APDU [12:17:55]CAPDU: 80 0D 01 02 [12:17:55]Write to MH i2c: E2 08 00 D1 2B 80 0D 01 02 00 00 00 00 75 [12:17:55]Write i2c OK [12:17:55]MH_I2C_Read... [12:17:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:55]Read from MH i2c: E2 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 03 00 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 03 00 D1 2B 00 90 00 70 [12:17:55]RAPDU: 90 00 [12:17:55]wFMCommunicate OK [12:17:55]wFMCommunicate request_size=255 [12:17:55]MH_SAM_APDU [12:17:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF 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 C9 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 8E 00 00 00 F4 03 04 00 F5 97 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 52 7B 03 00 35 04 06 00 38 BC 8F 20 [12:17:55]Write to MH i2c: E2 02 01 D2 2B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF 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 C9 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 8E 00 00 00 F4 03 04 00 F5 97 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 52 7B 03 00 35 04 06 00 38 BC 8F 20 00 00 94 [12:17:55]Write i2c OK [12:17:55]MH_I2C_Read... [12:17:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:55]Read from MH i2c: E2 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 03 00 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 03 00 D2 2B 00 90 00 71 [12:17:55]RAPDU: 90 00 [12:17:55]wFMCommunicate OK [12:17:55]wFMCommunicate request_size=7 [12:17:55]MH_SAM_APDU [12:17:55]CAPDU: 80 0D 02 02 02 91 EB [12:17:55]Write to MH i2c: E2 0A 00 D3 2B 80 0D 02 02 02 00 91 EB 00 00 F8 [12:17:55]Write i2c OK [12:17:55]MH_I2C_Read... [12:17:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:55]Read from MH i2c: E2 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 03 00 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 03 00 D3 2B 00 90 00 72 [12:17:55]RAPDU: 90 00 [12:17:55]wFMCommunicate OK [12:17:55]wFMCommunicate request_size=4 [12:17:55]MH_SAM_APDU [12:17:55]CAPDU: 80 0D 03 02 [12:17:55]Write to MH i2c: E2 08 00 D4 2B 80 0D 03 02 00 00 00 00 7A [12:17:55]Write i2c OK [12:17:55]MH_I2C_Read... [12:17:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:55]Read from MH i2c: E2 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 0B 00 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 0B 00 D4 2B 00 48 FA BF 6B 43 D0 C9 B2 90 00 75 [12:17:55]RAPDU: 48 FA BF 6B 43 D0 C9 B2 90 00 [12:17:55]wFMCommunicate OK [12:17:55]SAM_PROTO_SignData done [12:17:55]FM_MakeSignedData done [12:17:55]CreateOFDProtocolMessage [12:17:55]wFMCommunicate request_size=4 [12:17:55]MH_SAM_APDU [12:17:55]CAPDU: 80 11 00 00 [12:17:55]Write to MH i2c: E2 08 00 D5 2B 80 11 00 00 00 00 00 00 7A [12:17:55]Write i2c OK [12:17:55]MH_I2C_Read... [12:17:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:55]Read from MH i2c: E2 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 17 00 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 17 00 D5 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D1 [12:17:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:17:55]wFMCommunicate OK [12:17:55]CreateOFDProtocolMessage done [12:17:55]OFDSenderStorePacket 228178 [12:17:55]StoreOFDPacket docnum=228178 [12:17:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 52 3B 04 01 FA 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 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF 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 C9 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 8E 00 00 00 F4 03 04 00 F5 97 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 52 7B 03 00 35 04 06 00 38 BC 8F 20 91 EB 48 FA BF 6B 43 D0 C9 B2 [12:17:55]CheckFolder [12:17:55]dirname=/storage/ofd_packets [12:17:55]CheckFolder done [12:17:55]ProducePacketName [12:17:55]name=ofd_packets/00228178 [12:17:55]NVStorageSaveData ofd_packets/00228178 [12:17:55]File name is /storage/ofd_packets/00228178 [12:17:55]Write 298 bytes [12:17:55]NVStorageSaveData done [12:17:55]OFDSenderStorePacket done [12:17:55]KKMCreateOFDPacket done [12:17:55]NVStorageSaveData kkm_last_timestamp [12:17:55]File name is /storage/kkm_last_timestamp [12:17:55]Write 4 bytes [12:17:55]NVStorageSaveData done [12:17:55]ExternCall_PrintAddStr [12:17:55]wPrintStart [12:17:55]Write to MH i2c: 01 00 00 D6 2B 01 [12:17:55]Write i2c OK [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: 01 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: 01 07 00 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: 01 07 00 D6 2B 00 00 00 00 00 FF 0F 16 [12:17:55]RasterBufferAndPrint [12:17:55]line Счет N : (1)1964616 [12:17:55]line ИНН: 02508201610067 [12:17:55]line Контрольно-Кассовый Чек [12:17:55]line ПРОДАЖА [12:17:55]line ТРК (МРК, ГНК) : 11 [12:17:55]line Товар: 2710194210 [12:17:55]line ДТ-К-5 [12:17:55]line 15.750 * 76.20 [12:17:55]line = 1200.15 [12:17:55]line НДС 12% НСП 1% [12:17:55]line > о реализуемом товаре [12:17:55]line ОКРУГЛЕНИЕ: -0.15 [12:17:55]line ИТОГО: 1200.00 [12:17:55]line Внесено: 1200.00 [12:17:55]line СДАЧА: 0.00 [12:17:55]line НСП 1% : 10.62 [12:17:55]line НДС 12% : 127.45 [12:17:55]line Наличными: 1200.00 [12:17:55]line Безнал.: 0.00 [12:17:55]line Место: АЗС № 133 "Партнер Нефть" [12:17:55]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:17:55]line СНО: Общий режим [12:17:55]line Чек 142 22.10.2024 12:17 [12:17:55]line Смена: 535 ФФД: 1.0 [12:17:55]line ЗНМ: 0300000091 [12:17:55]line РНМ: 0000000000091685 [12:17:55]line Версия ККМ: 001 [12:17:55]line ФМ: 0000000000871839 [12:17:55]line ФД: 228178 [12:17:55]line ФПД: 62382506283499 [12:17:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121757&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228178&fm=62382506283499&tin=02508201610067®Number=0000000000091685&sum=120000 [12:17:55]written 0, free lines is 4095 [12:17:55]OFD Sender: Processing packet 228178 [packets to send 38, broken 37] [12:17:55]ProducePacketName [12:17:55]name=ofd_packets/00228178 [12:17:55]OFD Sender: To server: pG, [12:17:55]CommunicateWithHost lk.salyk.kg:30040 [12:17:55]ConnectInit lk.salyk.kg [12:17:55]Connected sock=10 [12:17:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 52 3B 04 01 FA 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 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF 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 C9 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 8E 00 00 00 F4 03 04 00 F5 97 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 52 7B 03 00 35 04 06 00 38 BC 8F 20 91 EB 48 FA BF 6B 43 D0 C9 B2 [12:17:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 A1 A1 47 00 F0 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 38 37 31 38 33 39 10 04 04 00 52 7B 03 00 F4 03 04 00 EE 42 17 67 B6 04 01 00 00 EB 25 B5 41 A3 53 EA EF [12:17:56]CommunicateWithHost err = 0 [12:17:56]CheckOFDResponse [12:17:56]1017 (14) - 77093643461234 [12:17:56]1041 (16) - 0000000000871839 [12:17:56]1040 (4) - 228178 [12:17:56]1012 (4) - 22.10.2024 06:15 [12:17:56]1206 (1) - 0 [12:17:56]OFD Sender: Remove packet 228178 [12:17:56]ProducePacketName [12:17:56]name=ofd_packets/00228178 [12:17:56]NVStorageDeleteData [12:17:56]Write to MH i2c: 01 00 00 00 2C 2C [12:17:56]Write i2c OK [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: 01 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: 01 07 00 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: 01 07 00 00 2C 00 00 00 00 00 C0 0C FF [12:17:56]RasterBufferAndPrint [12:17:56]line [12:17:56]line [12:17:56]line [12:17:56]line [12:17:56]line [12:17:56]written 0, free lines is 3271 [12:17:56]MH_Cut [12:17:56]Write to MH i2c: D1 01 00 07 2C 01 05 [12:17:56]Write i2c OK [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: D1 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: D1 01 00 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: D1 01 00 07 2C 00 04 [12:17:56]Write to MH i2c: 01 00 00 08 2C 34 [12:17:56]Write i2c OK [12:17:56]MH_I2C_Read... [12:17:56]OFD Sender: No OFD packet to send [12:17:56]*** Cut start [12:17:56]*** Partial cut [12:17:56]*** CUTSNS_PIN = 1 [12:17:57]*** CUTSNS_PIN = 0 [12:17:57]*** Brake cut motor [12:17:57]Read from MH i2c: 01 [12:17:57]MH_I2C_Read... [12:17:57]*** Stop cut motor [12:17:57]*** Cut end [12:17:57]Read from MH i2c: 01 07 00 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: 01 07 00 08 2C 00 00 00 00 00 FF 0F 49 [12:17:57]process_action close_receipt done [12:17:57]requested_data is exist [12:17:57]produce_requested_data [12:17:57]requested_item fm.sn is exist - process it [12:17:57]wFMCommunicate request_size=4 [12:17:57]MH_SAM_APDU [12:17:57]CAPDU: 80 11 00 00 [12:17:57]Write to MH i2c: E2 08 00 09 2C 80 11 00 00 00 00 00 00 AF [12:17:57]Write i2c OK [12:17:57]MH_I2C_Read... [12:17:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:57]Read from MH i2c: E2 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 17 00 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 17 00 09 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 06 [12:17:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:17:57]wFMCommunicate OK [12:17:57]requested_item fd.num is exist - process it [12:17:57]SAM_PROTO_GetFieldsCounters [12:17:57]wFMCommunicate request_size=4 [12:17:57]MH_SAM_APDU [12:17:57]CAPDU: 80 13 00 00 [12:17:57]Write to MH i2c: E2 08 00 0A 2C 80 13 00 00 00 00 00 00 B2 [12:17:57]Write i2c OK [12:17:57]MH_I2C_Read... [12:17:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:57]Read from MH i2c: E2 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 62 00 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 62 00 0A 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 52 7B 03 00 0E 04 04 00 17 02 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 6E [12:17:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 52 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:57]wFMCommunicate OK [12:17:57]SAM_PROTO_GetFieldsCounters done [12:17:57]requested_item shift.num is exist - process it [12:17:57]requested_item shift.opened is exist - process it [12:17:57]req_shift_opened [12:17:57]FM_GetShiftState [12:17:57]SAM_PROTO_GetShiftState [12:17:57]wFMCommunicate request_size=4 [12:17:57]MH_SAM_APDU [12:17:57]CAPDU: 80 13 01 00 [12:17:57]Write to MH i2c: E2 08 00 0B 2C 80 13 01 00 00 00 00 00 B4 [12:17:57]Write i2c OK [12:17:57]MH_I2C_Read... [12:17:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:57]Read from MH i2c: E2 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 0E 00 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 0E 00 0B 2C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 7B [12:17:57]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:17:57]wFMCommunicate OK [12:17:57]SAM_PROTO_GetShiftState done [12:17:57]FM_GetShiftState done [12:17:57]req_shift_opened done [12:17:57]requested_item shift.open_date is exist - process it [12:17:57]req_shift_open_date [12:17:57]req_shift_open_date done [12:17:57]produce_requested_data done [12:17:57]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228178,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [12:17:57]process_action_free close_receipt [12:17:57]json_value_free [12:17:57]json_value_free done [12:17:57]process_json_proto returns [12:17:57]Send response to host [12:17:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228178,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [12:17:57]free response buf [12:17:57]execute_script done [12:17:57]execute_script returns [12:17:57]free content buf [12:17:57]Sock 9.Close socket [12:17:57]Sock 9.Thread stoped [12:18:01]OFD Sender: No OFD packet to send [12:18:06]OFD Sender: No OFD packet to send [12:18:11]OFD Sender: No OFD packet to send [12:18:16]OFD Sender: No OFD packet to send [12:18:21]OFD Sender: No OFD packet to send [12:18:26]OFD Sender: No OFD packet to send [12:18:31]OFD Sender: No OFD packet to send [12:18:36]OFD Sender: No OFD packet to send [12:18:41]OFD Sender: No OFD packet to send [12:18:46]OFD Sender: No OFD packet to send [12:18:51]OFD Sender: No OFD packet to send [12:18:56]OFD Sender: No OFD packet to send [12:19:01]OFD Sender: No OFD packet to send [12:19:06]OFD Sender: No OFD packet to send [12:19:11]OFD Sender: No OFD packet to send [12:19:16]OFD Sender: No OFD packet to send [12:19:21]OFD Sender: No OFD packet to send [12:19:26]OFD Sender: No OFD packet to send [12:19:31]OFD Sender: No OFD packet to send [12:19:36]OFD Sender: No OFD packet to send [12:19:41]OFD Sender: No OFD packet to send [12:19:46]OFD Sender: No OFD packet to send [12:19:51]OFD Sender: No OFD packet to send [12:19:56]OFD Sender: No OFD packet to send [12:20:01]OFD Sender: No OFD packet to send [12:20:06]OFD Sender: No OFD packet to send [12:20:11]OFD Sender: No OFD packet to send [12:20:16]OFD Sender: No OFD packet to send [12:20:21]OFD Sender: No OFD packet to send [12:20:26]OFD Sender: No OFD packet to send [12:20:31]OFD Sender: No OFD packet to send [12:20:36]OFD Sender: No OFD packet to send [12:20:41]OFD Sender: No OFD packet to send [12:20:46]OFD Sender: No OFD packet to send [12:20:51]OFD Sender: No OFD packet to send [12:20:52]accept exits with 7 [12:20:52]New connection [12:20:52]New thread 3066994020 created [12:20:52]Thread 3067137380 joined [12:20:52]Waiting for new connection... [12:20:52] Sock 7.Parse request [12:20:52]Sock 7.Check first char [12:20:52]Sock 7.First char is OK [12:20:52]request: POST /json_proto HTTP/1.0 [12:20:52]Method: POST [12:20:52]URL: /json_proto [12:20:52]Method is POST - this is cgi request [12:20:52]url: /json_proto [12:20:52]query_string will be loaded in cgi processing [12:20:52]execute_cgi json_proto POST (null) [12:20:52]execute_cgi path=json_proto method=POST [12:20:52]POST find Content-Length [12:20:52]Host: 172.17.44.195:8080 [12:20:52]Content-Length: 678 [12:20:52]Content-Type: application/json [12:20:52] [12:20:52]POST finish read [12:20:52]Found Content-Length = 678 [12:20:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964623", "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" : 66.90, "quantity" : 2.250, "sum" : 150.53, "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" ] } } [12:20:52]execute_script... [12:20:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964623", "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" : 66.90, "quantity" : 2.250, "sum" : 150.53, "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" ] } } [12:20:52]POST & json_proto [12:20:52]process_json_proto [12:20:52]json parsed OK: [12:20:52]protocol is kg_v1.0 [12:20:52]action value=close_receipt [12:20:52]process_action close_receipt [12:20:52]cmd_close_receipt [12:20:52]MH_GetDate [12:20:52]Write to MH i2c: F0 00 00 0C 2C 27 [12:20:52]Write i2c OK [12:20:52]MH_I2C_Read... [12:20:52]Read from MH i2c: F0 [12:20:52]MH_I2C_Read... [12:20:52]Read from MH i2c: F0 09 00 [12:20:52]MH_I2C_Read... [12:20:52]Read from MH i2c: F0 09 00 0C 2C 00 A8 98 17 67 82 C9 CF 66 6E [12:20:52]GetLastDocTimeStamp 1729599477 [12:20:52]current date 1729599656 [12:20:52]FM_GetShiftState [12:20:52]SAM_PROTO_GetShiftState [12:20:52]wFMCommunicate request_size=4 [12:20:52]MH_SAM_APDU [12:20:52]CAPDU: 80 13 01 00 [12:20:52]Write to MH i2c: E2 08 00 0D 2C 80 13 01 00 00 00 00 00 B6 [12:20:52]Write i2c OK [12:20:52]MH_I2C_Read... [12:20:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:52]Read from MH i2c: E2 [12:20:52]MH_I2C_Read... [12:20:52]Read from MH i2c: E2 0E 00 [12:20:52]MH_I2C_Read... [12:20:52]Read from MH i2c: E2 0E 00 0D 2C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 7D [12:20:52]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:20:52]wFMCommunicate OK [12:20:52]SAM_PROTO_GetShiftState done [12:20:52]FM_GetShiftState done [12:20:52]opened in 1729555538 [12:20:52]opened+sec_in_day 1729641938 [12:20:52]quantity*price = 15052 [12:20:52]sum+1 = 15054 [12:20:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 143 22.10.2024 12:20 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228179 ФПД: 277192079393498 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122056&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228179&fm=277192079393498&tin=02508201610067®Number=0000000000091685&sum=15000 [12:20:53]StoreToDocumentArchive [12:20:53]shift 535 fd 228179 [12:20:53]save to /storage/0535/doc_00228179 [12:20:53]save last doc name /storage/0535/doc_00228179 to /storage/kkm_last_doc_name [12:20:53]save OK [12:20:53]Clear old archive folders... [12:20:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:20:53]tlvbuf is 008C9D70 [12:20:53]SAM_PROTO_ClearQueue [12:20:53]wFMCommunicate request_size=4 [12:20:53]MH_SAM_APDU [12:20:53]CAPDU: 80 09 00 00 [12:20:53]Write to MH i2c: E2 08 00 1A 2C 80 09 00 00 00 00 00 00 B8 [12:20:53]Write i2c OK [12:20:53]MH_I2C_Read... [12:20:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:54]Read from MH i2c: E2 [12:20:54]MH_I2C_Read... [12:20:54]Read from MH i2c: E2 03 00 [12:20:54]MH_I2C_Read... [12:20:54]Read from MH i2c: E2 03 00 1A 2C 00 90 00 BA [12:20:54]RAPDU: 90 00 [12:20:54]wFMCommunicate OK [12:20:54]SAM_PROTO_ClearQueue done [12:20:54]KKMCreateOFDPacket [12:20:54]OFDProtocolAddRootSTLVToBuf [12:20:54]FM_MakeSignedData [12:20:54]FM_MakeSignedData [12:20:54]SAM_PROTO_SignData [12:20:54]wFMCommunicate request_size=4 [12:20:54]MH_SAM_APDU [12:20:54]CAPDU: 80 0D 01 02 [12:20:54]Write to MH i2c: E2 08 00 1B 2C 80 0D 01 02 00 00 00 00 C0 [12:20:54]Write i2c OK [12:20:54]MH_I2C_Read... [12:20:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:54]Read from MH i2c: E2 [12:20:54]MH_I2C_Read... [12:20:54]Read from MH i2c: E2 03 00 [12:20:54]MH_I2C_Read... [12:20:54]Read from MH i2c: E2 03 00 1B 2C 00 90 00 BB [12:20:54]RAPDU: 90 00 [12:20:54]wFMCommunicate OK [12:20:54]wFMCommunicate request_size=255 [12:20:54]MH_SAM_APDU [12:20:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 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 3E 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 8F 00 00 00 F4 03 04 00 A8 98 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 53 7B 03 00 35 04 06 00 FC [12:20:54]Write to MH i2c: E2 02 01 1C 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 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 3E 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 8F 00 00 00 F4 03 04 00 A8 98 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 53 7B 03 00 35 04 06 00 FC 00 00 87 [12:20:54]Write i2c OK [12:20:54]MH_I2C_Read... [12:20:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:54]Read from MH i2c: E2 [12:20:54]MH_I2C_Read... [12:20:54]Read from MH i2c: E2 03 00 [12:20:54]MH_I2C_Read... [12:20:54]Read from MH i2c: E2 03 00 1C 2C 00 90 00 BC [12:20:54]RAPDU: 90 00 [12:20:54]wFMCommunicate OK [12:20:54]wFMCommunicate request_size=10 [12:20:54]MH_SAM_APDU [12:20:54]CAPDU: 80 0D 02 02 05 1A CF 6D 42 DA [12:20:54]Write to MH i2c: E2 0D 00 1D 2C 80 0D 02 02 05 00 1A CF 6D 42 DA 00 00 3F [12:20:54]Write i2c OK [12:20:54]MH_I2C_Read... [12:20:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:54]Read from MH i2c: E2 [12:20:54]MH_I2C_Read... [12:20:54]Read from MH i2c: E2 03 00 [12:20:54]MH_I2C_Read... [12:20:54]Read from MH i2c: E2 03 00 1D 2C 00 90 00 BD [12:20:54]RAPDU: 90 00 [12:20:54]wFMCommunicate OK [12:20:54]wFMCommunicate request_size=4 [12:20:54]MH_SAM_APDU [12:20:54]CAPDU: 80 0D 03 02 [12:20:54]Write to MH i2c: E2 08 00 1E 2C 80 0D 03 02 00 00 00 00 C5 [12:20:54]Write i2c OK [12:20:54]MH_I2C_Read... [12:20:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:54]Read from MH i2c: E2 [12:20:54]MH_I2C_Read... [12:20:54]Read from MH i2c: E2 0B 00 [12:20:54]MH_I2C_Read... [12:20:54]Read from MH i2c: E2 0B 00 1E 2C 00 50 F4 43 FB 94 03 7C 88 90 00 E3 [12:20:54]RAPDU: 50 F4 43 FB 94 03 7C 88 90 00 [12:20:54]wFMCommunicate OK [12:20:54]SAM_PROTO_SignData done [12:20:54]FM_MakeSignedData done [12:20:54]CreateOFDProtocolMessage [12:20:54]wFMCommunicate request_size=4 [12:20:54]MH_SAM_APDU [12:20:54]CAPDU: 80 11 00 00 [12:20:54]Write to MH i2c: E2 08 00 1F 2C 80 11 00 00 00 00 00 00 C5 [12:20:54]Write i2c OK [12:20:54]MH_I2C_Read... [12:20:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:54]Read from MH i2c: E2 [12:20:54]MH_I2C_Read... [12:20:54]Read from MH i2c: E2 17 00 [12:20:54]MH_I2C_Read... [12:20:54]Read from MH i2c: E2 17 00 1F 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1C [12:20:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:20:54]wFMCommunicate OK [12:20:54]CreateOFDProtocolMessage done [12:20:54]OFDSenderStorePacket 228179 [12:20:54]StoreOFDPacket docnum=228179 [12:20:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 64 80 07 01 F6 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 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 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 3E 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 8F 00 00 00 F4 03 04 00 A8 98 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 53 7B 03 00 35 04 06 00 FC 1A CF 6D 42 DA 50 F4 43 FB 94 03 7C 88 [12:20:54]CheckFolder [12:20:54]dirname=/storage/ofd_packets [12:20:54]CheckFolder done [12:20:54]ProducePacketName [12:20:54]name=ofd_packets/00228179 [12:20:54]NVStorageSaveData ofd_packets/00228179 [12:20:54]File name is /storage/ofd_packets/00228179 [12:20:54]Write 301 bytes [12:20:54]NVStorageSaveData done [12:20:54]OFDSenderStorePacket done [12:20:54]KKMCreateOFDPacket done [12:20:54]NVStorageSaveData kkm_last_timestamp [12:20:54]File name is /storage/kkm_last_timestamp [12:20:54]Write 4 bytes [12:20:54]NVStorageSaveData done [12:20:54]ExternCall_PrintAddStr [12:20:54]wPrintStart [12:20:54]Write to MH i2c: 01 00 00 20 2C 4C [12:20:54]Write i2c OK [12:20:54]MH_I2C_Read... [12:20:54]Read from MH i2c: 01 [12:20:54]MH_I2C_Read... [12:20:54]Read from MH i2c: 01 07 00 [12:20:54]MH_I2C_Read... [12:20:54]Read from MH i2c: 01 07 00 20 2C 00 00 00 00 00 FF 0F 61 [12:20:54]RasterBufferAndPrint [12:20:54]line Счет N : (1)1964623 [12:20:54]line ИНН: 02508201610067 [12:20:54]line Контрольно-Кассовый Чек [12:20:54]line ПРОДАЖА [12:20:54]line ТРК (МРК, ГНК) : 53 [12:20:54]line Товар: 2710124130 [12:20:54]line Аи-92-К-5 [12:20:54]line 2.250 * 66.90 [12:20:54]line = 150.53 [12:20:54]line НДС 12% НСП 1% [12:20:54]line > о реализуемом товаре [12:20:54]line ОКРУГЛЕНИЕ: -0.53 [12:20:54]line ИТОГО: 150.00 [12:20:54]line Внесено: 150.00 [12:20:54]line СДАЧА: 0.00 [12:20:54]line НСП 1% : 1.33 [12:20:54]line НДС 12% : 15.98 [12:20:54]line Наличными: 150.00 [12:20:54]line Безнал.: 0.00 [12:20:54]line Место: АЗС № 133 "Партнер Нефть" [12:20:54]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:20:54]line СНО: Общий режим [12:20:54]line Чек 143 22.10.2024 12:20 [12:20:54]line Смена: 535 ФФД: 1.0 [12:20:54]line ЗНМ: 0300000091 [12:20:54]line РНМ: 0000000000091685 [12:20:54]line Версия ККМ: 001 [12:20:54]line ФМ: 0000000000871839 [12:20:54]line ФД: 228179 [12:20:54]line ФПД: 277192079393498 [12:20:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122056&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228179&fm=277192079393498&tin=02508201610067®Number=0000000000091685&sum=15000 [12:20:54]OFD Sender: Processing packet 228179 [packets to send 38, broken 37] [12:20:54]ProducePacketName [12:20:54]name=ofd_packets/00228179 [12:20:54]OFD Sender: To server: pG, [12:20:54]CommunicateWithHost lk.salyk.kg:30040 [12:20:54]ConnectInit lk.salyk.kg [12:20:54]written 0, free lines is 4095 [12:20:54]Connected sock=10 [12:20:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 64 80 07 01 F6 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 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 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 3E 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 8F 00 00 00 F4 03 04 00 A8 98 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 53 7B 03 00 35 04 06 00 FC 1A CF 6D 42 DA 50 F4 43 FB 94 03 7C 88 [12:20:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 D5 0B 47 00 AE 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 53 7B 03 00 F4 03 04 00 A1 43 17 67 B6 04 01 00 00 B4 A6 24 80 B8 6B DC 4E [12:20:55]CommunicateWithHost err = 0 [12:20:55]CheckOFDResponse [12:20:55]1017 (14) - 77093643461234 [12:20:55]1041 (16) - 0000000000871839 [12:20:55]1040 (4) - 228179 [12:20:55]1012 (4) - 22.10.2024 06:18 [12:20:55]1206 (1) - 0 [12:20:55]OFD Sender: Remove packet 228179 [12:20:55]ProducePacketName [12:20:55]name=ofd_packets/00228179 [12:20:55]NVStorageDeleteData [12:20:55]Write to MH i2c: 01 00 00 4A 2C 76 [12:20:55]Write i2c OK [12:20:55]MH_I2C_Read... [12:20:55]Read from MH i2c: 01 [12:20:55]MH_I2C_Read... [12:20:55]Read from MH i2c: 01 07 00 [12:20:55]MH_I2C_Read... [12:20:55]Read from MH i2c: 01 07 00 4A 2C 00 00 00 00 00 C3 0C 4C [12:20:55]RasterBufferAndPrint [12:20:55]line [12:20:55]line [12:20:55]line [12:20:55]line [12:20:55]line [12:20:55]written 0, free lines is 3271 [12:20:55]MH_Cut [12:20:55]Write to MH i2c: D1 01 00 51 2C 01 4F [12:20:55]Write i2c OK [12:20:55]MH_I2C_Read... [12:20:55]Read from MH i2c: D1 [12:20:55]MH_I2C_Read... [12:20:55]Read from MH i2c: D1 01 00 [12:20:55]MH_I2C_Read... [12:20:55]Read from MH i2c: D1 01 00 51 2C 00 4E [12:20:55]Write to MH i2c: 01 00 00 52 2C 7E [12:20:55]Write i2c OK [12:20:55]MH_I2C_Read... [12:20:55]OFD Sender: No OFD packet to send [12:20:56]*** Cut start [12:20:56]*** Partial cut [12:20:56]*** CUTSNS_PIN = 1 [12:20:56]*** CUTSNS_PIN = 0 [12:20:56]*** Brake cut motor [12:20:56]Read from MH i2c: 01 [12:20:56]MH_I2C_Read... [12:20:56]*** Stop cut motor [12:20:56]*** Cut end [12:20:56]Read from MH i2c: 01 07 00 [12:20:56]MH_I2C_Read... [12:20:56]Read from MH i2c: 01 07 00 52 2C 00 00 00 00 00 FF 0F 93 [12:20:56]process_action close_receipt done [12:20:56]requested_data is exist [12:20:56]produce_requested_data [12:20:56]requested_item fm.sn is exist - process it [12:20:56]wFMCommunicate request_size=4 [12:20:56]MH_SAM_APDU [12:20:56]CAPDU: 80 11 00 00 [12:20:56]Write to MH i2c: E2 08 00 53 2C 80 11 00 00 00 00 00 00 F9 [12:20:56]Write i2c OK [12:20:56]MH_I2C_Read... [12:20:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:56]Read from MH i2c: E2 [12:20:56]MH_I2C_Read... [12:20:56]Read from MH i2c: E2 17 00 [12:20:56]MH_I2C_Read... [12:20:56]Read from MH i2c: E2 17 00 53 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 50 [12:20:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:20:56]wFMCommunicate OK [12:20:56]requested_item fd.num is exist - process it [12:20:56]SAM_PROTO_GetFieldsCounters [12:20:56]wFMCommunicate request_size=4 [12:20:56]MH_SAM_APDU [12:20:56]CAPDU: 80 13 00 00 [12:20:56]Write to MH i2c: E2 08 00 54 2C 80 13 00 00 00 00 00 00 FC [12:20:56]Write i2c OK [12:20:56]MH_I2C_Read... [12:20:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:56]Read from MH i2c: E2 [12:20:56]MH_I2C_Read... [12:20:56]Read from MH i2c: E2 62 00 [12:20:56]MH_I2C_Read... [12:20:56]Read from MH i2c: E2 62 00 54 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 53 7B 03 00 0E 04 04 00 17 02 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 BC [12:20:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 53 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:20:56]wFMCommunicate OK [12:20:56]SAM_PROTO_GetFieldsCounters done [12:20:56]requested_item shift.num is exist - process it [12:20:56]requested_item shift.opened is exist - process it [12:20:56]req_shift_opened [12:20:56]FM_GetShiftState [12:20:56]SAM_PROTO_GetShiftState [12:20:56]wFMCommunicate request_size=4 [12:20:56]MH_SAM_APDU [12:20:56]CAPDU: 80 13 01 00 [12:20:56]Write to MH i2c: E2 08 00 55 2C 80 13 01 00 00 00 00 00 FE [12:20:56]Write i2c OK [12:20:56]MH_I2C_Read... [12:20:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:57]Read from MH i2c: E2 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 0E 00 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 0E 00 55 2C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 C5 [12:20:57]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:20:57]wFMCommunicate OK [12:20:57]SAM_PROTO_GetShiftState done [12:20:57]FM_GetShiftState done [12:20:57]req_shift_opened done [12:20:57]requested_item shift.open_date is exist - process it [12:20:57]req_shift_open_date [12:20:57]req_shift_open_date done [12:20:57]produce_requested_data done [12:20:57]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228179,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [12:20:57]process_action_free close_receipt [12:20:57]json_value_free [12:20:57]json_value_free done [12:20:57]process_json_proto returns [12:20:57]Send response to host [12:20:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228179,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [12:20:57]free response buf [12:20:57]execute_script done [12:20:57]execute_script returns [12:20:57]free content buf [12:20:57]Sock 7.Close socket [12:20:57]Sock 7.Thread stoped [12:20:57]accept exits with 9 [12:20:57]New connection [12:20:57]New thread 3067137380 created [12:20:57]Thread 3066994020 joined [12:20:57]Waiting for new connection... [12:20:57] Sock 9.Parse request [12:20:57]Sock 9.Check first char [12:20:57]Sock 9.First char is OK [12:20:57]request: POST /json_proto HTTP/1.0 [12:20:57]Method: POST [12:20:57]URL: /json_proto [12:20:57]Method is POST - this is cgi request [12:20:57]url: /json_proto [12:20:57]query_string will be loaded in cgi processing [12:20:57]execute_cgi json_proto POST (null) [12:20:57]execute_cgi path=json_proto method=POST [12:20:57]POST find Content-Length [12:20:57]Host: 172.17.44.195:8080 [12:20:57]Content-Length: 678 [12:20:57]Content-Type: application/json [12:20:57] [12:20:57]POST finish read [12:20:57]Found Content-Length = 678 [12:20:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:20:57]execute_script... [12:20: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)1964621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:20:57]POST & json_proto [12:20:57]process_json_proto [12:20:57]json parsed OK: [12:20:57]protocol is kg_v1.0 [12:20:57]action value=close_receipt [12:20:57]process_action close_receipt [12:20:57]cmd_close_receipt [12:20:57]MH_GetDate [12:20:57]Write to MH i2c: F0 00 00 56 2C 71 [12:20:57]Write i2c OK [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: F0 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: F0 09 00 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: F0 09 00 56 2C 00 AD 98 17 67 82 C9 CF 66 BD [12:20:57]GetLastDocTimeStamp 1729599656 [12:20:57]current date 1729599661 [12:20:57]FM_GetShiftState [12:20:57]SAM_PROTO_GetShiftState [12:20:57]wFMCommunicate request_size=4 [12:20:57]MH_SAM_APDU [12:20:57]CAPDU: 80 13 01 00 [12:20:57]Write to MH i2c: E2 08 00 57 2C 80 13 01 00 00 00 00 00 00 [12:20:57]Write i2c OK [12:20:57]MH_I2C_Read... [12:20:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:57]Read from MH i2c: E2 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 0E 00 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 0E 00 57 2C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 C7 [12:20:57]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:20:57]wFMCommunicate OK [12:20:57]SAM_PROTO_GetShiftState done [12:20:57]FM_GetShiftState done [12:20:57]opened in 1729555538 [12:20:57]opened+sec_in_day 1729641938 [12:20:57]quantity*price = 50041 [12:20:57]sum+1 = 50042 [12:20:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 144 22.10.2024 12:21 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228180 ФПД: 145888737964700 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122101&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228180&fm=145888737964700&tin=02508201610067®Number=0000000000091685&sum=50000 [12:20:58]StoreToDocumentArchive [12:20:58]shift 535 fd 228180 [12:20:58]save to /storage/0535/doc_00228180 [12:20:58]save last doc name /storage/0535/doc_00228180 to /storage/kkm_last_doc_name [12:20:58]save OK [12:20:58]Clear old archive folders... [12:20:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:20:58]tlvbuf is 00A69520 [12:20:58]SAM_PROTO_ClearQueue [12:20:58]wFMCommunicate request_size=4 [12:20:58]MH_SAM_APDU [12:20:58]CAPDU: 80 09 00 00 [12:20:58]Write to MH i2c: E2 08 00 64 2C 80 09 00 00 00 00 00 00 02 [12:20:58]Write i2c OK [12:20:58]MH_I2C_Read... [12:20:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:59]Read from MH i2c: E2 [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: E2 03 00 [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: E2 03 00 64 2C 00 90 00 04 [12:20:59]RAPDU: 90 00 [12:20:59]wFMCommunicate OK [12:20:59]SAM_PROTO_ClearQueue done [12:20:59]KKMCreateOFDPacket [12:20:59]OFDProtocolAddRootSTLVToBuf [12:20:59]FM_MakeSignedData [12:20:59]FM_MakeSignedData [12:20:59]SAM_PROTO_SignData [12:20:59]wFMCommunicate request_size=4 [12:20:59]MH_SAM_APDU [12:20:59]CAPDU: 80 0D 01 02 [12:20:59]Write to MH i2c: E2 08 00 65 2C 80 0D 01 02 00 00 00 00 0A [12:20:59]Write i2c OK [12:20:59]MH_I2C_Read... [12:20:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:59]Read from MH i2c: E2 [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: E2 03 00 [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: E2 03 00 65 2C 00 90 00 05 [12:20:59]RAPDU: 90 00 [12:20:59]wFMCommunicate OK [12:20:59]wFMCommunicate request_size=255 [12:20:59]MH_SAM_APDU [12:20: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 AD 98 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 54 7B 03 00 35 04 06 00 84 [12:20:59]Write to MH i2c: E2 02 01 66 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 AD 98 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 54 7B 03 00 35 04 06 00 84 00 00 63 [12:20:59]Write i2c OK [12:20:59]MH_I2C_Read... [12:20:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:59]Read from MH i2c: E2 [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: E2 03 00 [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: E2 03 00 66 2C 00 90 00 06 [12:20:59]RAPDU: 90 00 [12:20:59]wFMCommunicate OK [12:20:59]wFMCommunicate request_size=10 [12:20:59]MH_SAM_APDU [12:20:59]CAPDU: 80 0D 02 02 05 AF 5E 67 32 9C [12:20:59]Write to MH i2c: E2 0D 00 67 2C 80 0D 02 02 05 00 AF 5E 67 32 9C 00 00 59 [12:20:59]Write i2c OK [12:20:59]MH_I2C_Read... [12:20:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:59]Read from MH i2c: E2 [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: E2 03 00 [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: E2 03 00 67 2C 00 90 00 07 [12:20:59]RAPDU: 90 00 [12:20:59]wFMCommunicate OK [12:20:59]wFMCommunicate request_size=4 [12:20:59]MH_SAM_APDU [12:20:59]CAPDU: 80 0D 03 02 [12:20:59]Write to MH i2c: E2 08 00 68 2C 80 0D 03 02 00 00 00 00 0F [12:20:59]Write i2c OK [12:20:59]MH_I2C_Read... [12:20:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:59]Read from MH i2c: E2 [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: E2 0B 00 [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: E2 0B 00 68 2C 00 DC DD DC 0F F9 FD A4 55 90 00 A3 [12:20:59]RAPDU: DC DD DC 0F F9 FD A4 55 90 00 [12:20:59]wFMCommunicate OK [12:20:59]SAM_PROTO_SignData done [12:20:59]FM_MakeSignedData done [12:20:59]CreateOFDProtocolMessage [12:20:59]wFMCommunicate request_size=4 [12:20:59]MH_SAM_APDU [12:20:59]CAPDU: 80 11 00 00 [12:20:59]Write to MH i2c: E2 08 00 69 2C 80 11 00 00 00 00 00 00 0F [12:20:59]Write i2c OK [12:20:59]MH_I2C_Read... [12:20:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:59]Read from MH i2c: E2 [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: E2 17 00 [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: E2 17 00 69 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 66 [12:20:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:20:59]wFMCommunicate OK [12:20:59]CreateOFDProtocolMessage done [12:20:59]OFDSenderStorePacket 228180 [12:20:59]StoreOFDPacket docnum=228180 [12:20:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 56 4B 07 01 2B A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 AD 98 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 54 7B 03 00 35 04 06 00 84 AF 5E 67 32 9C DC DD DC 0F F9 FD A4 55 [12:20:59]CheckFolder [12:20:59]dirname=/storage/ofd_packets [12:20:59]CheckFolder done [12:20:59]ProducePacketName [12:20:59]name=ofd_packets/00228180 [12:20:59]NVStorageSaveData ofd_packets/00228180 [12:20:59]File name is /storage/ofd_packets/00228180 [12:20:59]Write 301 bytes [12:20:59]NVStorageSaveData done [12:20:59]OFDSenderStorePacket done [12:20:59]KKMCreateOFDPacket done [12:20:59]NVStorageSaveData kkm_last_timestamp [12:20:59]File name is /storage/kkm_last_timestamp [12:20:59]Write 4 bytes [12:20:59]NVStorageSaveData done [12:20:59]ExternCall_PrintAddStr [12:20:59]wPrintStart [12:20:59]Write to MH i2c: 01 00 00 6A 2C 96 [12:20:59]Write i2c OK [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: 01 [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: 01 07 00 [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: 01 07 00 6A 2C 00 00 00 00 00 FF 0F AB [12:20:59]RasterBufferAndPrint [12:20:59]line Счет N : (1)1964621 [12:20:59]line ИНН: 02508201610067 [12:20:59]line Контрольно-Кассовый Чек [12:20:59]line ПРОДАЖА [12:20:59]line ТРК (МРК, ГНК) : 43 [12:20:59]line Товар: 2710124130 [12:20:59]line Аи-92-К-5 [12:20:59]line 7.480 * 66.90 [12:20:59]line = 500.41 [12:20:59]line НДС 12% НСП 1% [12:20:59]line > о реализуемом товаре [12:20:59]line ОКРУГЛЕНИЕ: -0.41 [12:20:59]line ИТОГО: 500.00 [12:20:59]line Внесено: 500.00 [12:20:59]line СДАЧА: 0.00 [12:20:59]line НСП 1% : 4.43 [12:20:59]line НДС 12% : 53.14 [12:20:59]line Наличными: 500.00 [12:20:59]line Безнал.: 0.00 [12:20:59]line Место: АЗС № 133 "Партнер Нефть" [12:20:59]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:20:59]line СНО: Общий режим [12:20:59]line Чек 144 22.10.2024 12:21 [12:20:59]line Смена: 535 ФФД: 1.0 [12:20:59]line ЗНМ: 0300000091 [12:20:59]line РНМ: 0000000000091685 [12:20:59]line Версия ККМ: 001 [12:20:59]line ФМ: 0000000000871839 [12:20:59]line ФД: 228180 [12:20:59]line ФПД: 145888737964700 [12:20:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122101&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228180&fm=145888737964700&tin=02508201610067®Number=0000000000091685&sum=50000 [12:20:59]written 0, free lines is 4095 [12:20:59]OFD Sender: Processing packet 228180 [packets to send 38, broken 37] [12:20:59]ProducePacketName [12:20:59]name=ofd_packets/00228180 [12:20:59]OFD Sender: To server: pG, [12:20:59]CommunicateWithHost lk.salyk.kg:30040 [12:20:59]ConnectInit lk.salyk.kg [12:20:59]Connected sock=10 [12:20:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 56 4B 07 01 2B A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 AD 98 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 54 7B 03 00 35 04 06 00 84 AF 5E 67 32 9C DC DD DC 0F F9 FD A4 55 [12:20:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 5D 3B 47 00 D6 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 54 7B 03 00 F4 03 04 00 A5 43 17 67 B6 04 01 00 00 3A 79 F7 C7 AD 8C 69 FC [12:20:59]CommunicateWithHost err = 0 [12:20:59]CheckOFDResponse [12:20:59]1017 (14) - 77093643461234 [12:20:59]1041 (16) - 0000000000871839 [12:20:59]1040 (4) - 228180 [12:20:59]1012 (4) - 22.10.2024 06:18 [12:20:59]1206 (1) - 0 [12:20:59]OFD Sender: Remove packet 228180 [12:20:59]ProducePacketName [12:20:59]name=ofd_packets/00228180 [12:20:59]NVStorageDeleteData [12:20:59]Write to MH i2c: 01 00 00 94 2C C0 [12:20:59]Write i2c OK [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: 01 [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: 01 07 00 [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: 01 07 00 94 2C 00 00 00 00 00 D3 0C A6 [12:21:00]RasterBufferAndPrint [12:21:00]line [12:21:00]line [12:21:00]line [12:21:00]line [12:21:00]line [12:21:00]written 0, free lines is 3293 [12:21:00]MH_Cut [12:21:00]Write to MH i2c: D1 01 00 9B 2C 01 99 [12:21:00]Write i2c OK [12:21:00]MH_I2C_Read... [12:21:00]Read from MH i2c: D1 [12:21:00]MH_I2C_Read... [12:21:00]Read from MH i2c: D1 01 00 [12:21:00]MH_I2C_Read... [12:21:00]Read from MH i2c: D1 01 00 9B 2C 00 98 [12:21:00]Write to MH i2c: 01 00 00 9C 2C C8 [12:21:00]Write i2c OK [12:21:00]MH_I2C_Read... [12:21:00]OFD Sender: No OFD packet to send [12:21:00]*** Cut start [12:21:00]*** Partial cut [12:21:00]*** CUTSNS_PIN = 1 [12:21:00]*** CUTSNS_PIN = 0 [12:21:01]*** Brake cut motor [12:21:01]Read from MH i2c: 01 [12:21:01]MH_I2C_Read... [12:21:01]*** Stop cut motor [12:21:01]*** Cut end [12:21:01]Read from MH i2c: 01 07 00 [12:21:01]MH_I2C_Read... [12:21:01]Read from MH i2c: 01 07 00 9C 2C 00 00 00 00 00 FF 0F DD [12:21:01]process_action close_receipt done [12:21:01]requested_data is exist [12:21:01]produce_requested_data [12:21:01]requested_item fm.sn is exist - process it [12:21:01]wFMCommunicate request_size=4 [12:21:01]MH_SAM_APDU [12:21:01]CAPDU: 80 11 00 00 [12:21:01]Write to MH i2c: E2 08 00 9D 2C 80 11 00 00 00 00 00 00 43 [12:21:01]Write i2c OK [12:21:01]MH_I2C_Read... [12:21:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:01]Read from MH i2c: E2 [12:21:01]MH_I2C_Read... [12:21:01]Read from MH i2c: E2 17 00 [12:21:01]MH_I2C_Read... [12:21:01]Read from MH i2c: E2 17 00 9D 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9A [12:21:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:21:01]wFMCommunicate OK [12:21:01]requested_item fd.num is exist - process it [12:21:01]SAM_PROTO_GetFieldsCounters [12:21:01]wFMCommunicate request_size=4 [12:21:01]MH_SAM_APDU [12:21:01]CAPDU: 80 13 00 00 [12:21:01]Write to MH i2c: E2 08 00 9E 2C 80 13 00 00 00 00 00 00 46 [12:21:01]Write i2c OK [12:21:01]MH_I2C_Read... [12:21:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:01]Read from MH i2c: E2 [12:21:01]MH_I2C_Read... [12:21:01]Read from MH i2c: E2 62 00 [12:21:01]MH_I2C_Read... [12:21:01]Read from MH i2c: E2 62 00 9E 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 54 7B 03 00 0E 04 04 00 17 02 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 0A [12:21:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 54 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:21:01]wFMCommunicate OK [12:21:01]SAM_PROTO_GetFieldsCounters done [12:21:01]requested_item shift.num is exist - process it [12:21:01]requested_item shift.opened is exist - process it [12:21:01]req_shift_opened [12:21:01]FM_GetShiftState [12:21:01]SAM_PROTO_GetShiftState [12:21:01]wFMCommunicate request_size=4 [12:21:01]MH_SAM_APDU [12:21:01]CAPDU: 80 13 01 00 [12:21:01]Write to MH i2c: E2 08 00 9F 2C 80 13 01 00 00 00 00 00 48 [12:21:01]Write i2c OK [12:21:01]MH_I2C_Read... [12:21:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:01]Read from MH i2c: E2 [12:21:01]MH_I2C_Read... [12:21:01]Read from MH i2c: E2 0E 00 [12:21:01]MH_I2C_Read... [12:21:01]Read from MH i2c: E2 0E 00 9F 2C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 0F [12:21:01]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:21:01]wFMCommunicate OK [12:21:01]SAM_PROTO_GetShiftState done [12:21:01]FM_GetShiftState done [12:21:01]req_shift_opened done [12:21:01]requested_item shift.open_date is exist - process it [12:21:01]req_shift_open_date [12:21:01]req_shift_open_date done [12:21:01]produce_requested_data done [12:21:01]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228180,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [12:21:01]process_action_free close_receipt [12:21:01]json_value_free [12:21:01]json_value_free done [12:21:01]process_json_proto returns [12:21:01]Send response to host [12:21:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228180,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [12:21:01]free response buf [12:21:01]execute_script done [12:21:01]execute_script returns [12:21:01]free content buf [12:21:01]Sock 9.Close socket [12:21:01]Sock 9.Thread stoped [12:21:05]OFD Sender: No OFD packet to send [12:21:10]OFD Sender: No OFD packet to send [12:21:15]OFD Sender: No OFD packet to send [12:21:18]accept exits with 7 [12:21:18]New connection [12:21:18]New thread 3066994020 created [12:21:18]Thread 3067137380 joined [12:21:18]Waiting for new connection... [12:21:18] Sock 7.Parse request [12:21:18]Sock 7.Check first char [12:21:18]Sock 7.First char is OK [12:21:18]request: POST /json_proto HTTP/1.0 [12:21:18]Method: POST [12:21:18]URL: /json_proto [12:21:18]Method is POST - this is cgi request [12:21:18]url: /json_proto [12:21:18]query_string will be loaded in cgi processing [12:21:18]execute_cgi json_proto POST (null) [12:21:18]execute_cgi path=json_proto method=POST [12:21:18]POST find Content-Length [12:21:18]Host: 172.17.44.195:8080 [12:21:18]Content-Length: 683 [12:21:18]Content-Type: application/json [12:21:18] [12:21:18]POST finish read [12:21:18]Found Content-Length = 683 [12:21:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:18]execute_script... [12:21: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)1964625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:18]POST & json_proto [12:21:18]process_json_proto [12:21:18]json parsed OK: [12:21:18]protocol is kg_v1.0 [12:21:18]action value=close_receipt [12:21:18]process_action close_receipt [12:21:18]cmd_close_receipt [12:21:18]MH_GetDate [12:21:18]Write to MH i2c: F0 00 00 A0 2C BB [12:21:18]Write i2c OK [12:21:18]MH_I2C_Read... [12:21:18]Read from MH i2c: F0 [12:21:18]MH_I2C_Read... [12:21:18]Read from MH i2c: F0 09 00 [12:21:18]MH_I2C_Read... [12:21:18]Read from MH i2c: F0 09 00 A0 2C 00 C2 98 17 67 82 C9 CF 66 1C [12:21:18]GetLastDocTimeStamp 1729599661 [12:21:18]current date 1729599682 [12:21:18]FM_GetShiftState [12:21:18]SAM_PROTO_GetShiftState [12:21:18]wFMCommunicate request_size=4 [12:21:18]MH_SAM_APDU [12:21:18]CAPDU: 80 13 01 00 [12:21:18]Write to MH i2c: E2 08 00 A1 2C 80 13 01 00 00 00 00 00 4A [12:21:18]Write i2c OK [12:21:18]MH_I2C_Read... [12:21:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:18]Read from MH i2c: E2 [12:21:18]MH_I2C_Read... [12:21:18]Read from MH i2c: E2 0E 00 [12:21:18]MH_I2C_Read... [12:21:18]Read from MH i2c: E2 0E 00 A1 2C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 11 [12:21:18]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:21:18]wFMCommunicate OK [12:21:18]SAM_PROTO_GetShiftState done [12:21:18]FM_GetShiftState done [12:21:18]opened in 1729555538 [12:21:18]opened+sec_in_day 1729641938 [12:21:18]quantity*price = 100021 [12:21:18]sum+1 = 100023 [12:21:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 145 22.10.2024 12:21 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228181 ФПД: 249707591959908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122122&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228181&fm=249707591959908&tin=02508201610067®Number=0000000000091685&sum=100000 [12:21:19]StoreToDocumentArchive [12:21:19]shift 535 fd 228181 [12:21:19]save to /storage/0535/doc_00228181 [12:21:19]save last doc name /storage/0535/doc_00228181 to /storage/kkm_last_doc_name [12:21:19]save OK [12:21:19]Clear old archive folders... [12:21:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:21:19]tlvbuf is 008E50C0 [12:21:19]SAM_PROTO_ClearQueue [12:21:19]wFMCommunicate request_size=4 [12:21:19]MH_SAM_APDU [12:21:19]CAPDU: 80 09 00 00 [12:21:19]Write to MH i2c: E2 08 00 AE 2C 80 09 00 00 00 00 00 00 4C [12:21:19]Write i2c OK [12:21:19]MH_I2C_Read... [12:21:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:21:19]Read from MH i2c: E2 [12:21:19]MH_I2C_Read... [12:21:19]Read from MH i2c: E2 03 00 [12:21:19]MH_I2C_Read... [12:21:19]Read from MH i2c: E2 03 00 AE 2C 00 90 00 4E [12:21:19]RAPDU: 90 00 [12:21:19]wFMCommunicate OK [12:21:19]SAM_PROTO_ClearQueue done [12:21:19]KKMCreateOFDPacket [12:21:19]OFDProtocolAddRootSTLVToBuf [12:21:19]FM_MakeSignedData [12:21:19]FM_MakeSignedData [12:21:19]SAM_PROTO_SignData [12:21:19]wFMCommunicate request_size=4 [12:21:19]MH_SAM_APDU [12:21:19]CAPDU: 80 0D 01 02 [12:21:19]Write to MH i2c: E2 08 00 AF 2C 80 0D 01 02 00 00 00 00 54 [12:21:19]Write i2c OK [12:21:19]MH_I2C_Read... [12:21:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:21:19]Read from MH i2c: E2 [12:21:19]MH_I2C_Read... [12:21:19]Read from MH i2c: E2 03 00 [12:21:19]MH_I2C_Read... [12:21:19]Read from MH i2c: E2 03 00 AF 2C 00 90 00 4F [12:21:19]RAPDU: 90 00 [12:21:19]wFMCommunicate OK [12:21:19]wFMCommunicate request_size=255 [12:21:19]MH_SAM_APDU [12:21: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 C2 98 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 55 7B 03 00 35 04 06 00 E3 [12:21:19]Write to MH i2c: E2 02 01 B0 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 C2 98 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 55 7B 03 00 35 04 06 00 E3 00 00 40 [12:21:19]Write i2c OK [12:21:19]MH_I2C_Read... [12:21:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:20]Read from MH i2c: E2 [12:21:20]MH_I2C_Read... [12:21:20]Read from MH i2c: E2 03 00 [12:21:20]MH_I2C_Read... [12:21:20]Read from MH i2c: E2 03 00 B0 2C 00 90 00 50 [12:21:20]RAPDU: 90 00 [12:21:20]wFMCommunicate OK [12:21:20]wFMCommunicate request_size=10 [12:21:20]MH_SAM_APDU [12:21:20]CAPDU: 80 0D 02 02 05 1B 94 51 05 64 [12:21:20]Write to MH i2c: E2 0D 00 B1 2C 80 0D 02 02 05 00 1B 94 51 05 64 00 00 CA [12:21:20]Write i2c OK [12:21:20]MH_I2C_Read... [12:21:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:20]Read from MH i2c: E2 [12:21:20]MH_I2C_Read... [12:21:20]Read from MH i2c: E2 03 00 [12:21:20]MH_I2C_Read... [12:21:20]Read from MH i2c: E2 03 00 B1 2C 00 90 00 51 [12:21:20]RAPDU: 90 00 [12:21:20]wFMCommunicate OK [12:21:20]wFMCommunicate request_size=4 [12:21:20]MH_SAM_APDU [12:21:20]CAPDU: 80 0D 03 02 [12:21:20]Write to MH i2c: E2 08 00 B2 2C 80 0D 03 02 00 00 00 00 59 [12:21:20]Write i2c OK [12:21:20]MH_I2C_Read... [12:21:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:20]Read from MH i2c: E2 [12:21:20]MH_I2C_Read... [12:21:20]Read from MH i2c: E2 0B 00 [12:21:20]MH_I2C_Read... [12:21:20]Read from MH i2c: E2 0B 00 B2 2C 00 A0 F3 2D F5 52 5D BB 0B 90 00 84 [12:21:20]RAPDU: A0 F3 2D F5 52 5D BB 0B 90 00 [12:21:20]wFMCommunicate OK [12:21:20]SAM_PROTO_SignData done [12:21:20]FM_MakeSignedData done [12:21:20]CreateOFDProtocolMessage [12:21:20]wFMCommunicate request_size=4 [12:21:20]MH_SAM_APDU [12:21:20]CAPDU: 80 11 00 00 [12:21:20]Write to MH i2c: E2 08 00 B3 2C 80 11 00 00 00 00 00 00 59 [12:21:20]Write i2c OK [12:21:20]MH_I2C_Read... [12:21:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:20]Read from MH i2c: E2 [12:21:20]MH_I2C_Read... [12:21:20]Read from MH i2c: E2 17 00 [12:21:20]MH_I2C_Read... [12:21:20]Read from MH i2c: E2 17 00 B3 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B0 [12:21:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:21:20]wFMCommunicate OK [12:21:20]CreateOFDProtocolMessage done [12:21:20]OFDSenderStorePacket 228181 [12:21:20]StoreOFDPacket docnum=228181 [12:21:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 49 08 07 01 61 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 C2 98 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 55 7B 03 00 35 04 06 00 E3 1B 94 51 05 64 A0 F3 2D F5 52 5D BB 0B [12:21:20]CheckFolder [12:21:20]dirname=/storage/ofd_packets [12:21:20]CheckFolder done [12:21:20]ProducePacketName [12:21:20]name=ofd_packets/00228181 [12:21:20]NVStorageSaveData ofd_packets/00228181 [12:21:20]File name is /storage/ofd_packets/00228181 [12:21:20]Write 301 bytes [12:21:20]NVStorageSaveData done [12:21:20]OFDSenderStorePacket done [12:21:20]KKMCreateOFDPacket done [12:21:20]NVStorageSaveData kkm_last_timestamp [12:21:20]File name is /storage/kkm_last_timestamp [12:21:20]Write 4 bytes [12:21:20]NVStorageSaveData done [12:21:20]ExternCall_PrintAddStr [12:21:20]wPrintStart [12:21:20]Write to MH i2c: 01 00 00 B4 2C E0 [12:21:20]Write i2c OK [12:21:20]MH_I2C_Read... [12:21:20]Read from MH i2c: 01 [12:21:20]MH_I2C_Read... [12:21:20]Read from MH i2c: 01 07 00 [12:21:20]MH_I2C_Read... [12:21:20]Read from MH i2c: 01 07 00 B4 2C 00 00 00 00 00 FF 0F F5 [12:21:20]RasterBufferAndPrint [12:21:20]line Счет N : (1)1964625 [12:21:20]line ИНН: 02508201610067 [12:21:20]line Контрольно-Кассовый Чек [12:21:20]line ПРОДАЖА [12:21:20]line ТРК (МРК, ГНК) : 64 [12:21:20]line Товар: 2710124500 [12:21:20]line Аи-95-К-5 [12:21:20]line 13.480 * 74.20 [12:21:20]line = 1000.22 [12:21:20]line НДС 12% НСП 1% [12:21:20]line > о реализуемом товаре [12:21:20]line ОКРУГЛЕНИЕ: -0.22 [12:21:20]line ИТОГО: 1000.00 [12:21:20]line Внесено: 1000.00 [12:21:20]line СДАЧА: 0.00 [12:21:20]line НСП 1% : 8.85 [12:21:20]line НДС 12% : 106.22 [12:21:20]line Наличными: 1000.00 [12:21:20]line Безнал.: 0.00 [12:21:20]line Место: АЗС № 133 "Партнер Нефть" [12:21:20]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:21:20]line СНО: Общий режим [12:21:20]line Чек 145 22.10.2024 12:21 [12:21:20]line Смена: 535 ФФД: 1.0 [12:21:20]line ЗНМ: 0300000091 [12:21:20]line РНМ: 0000000000091685 [12:21:20]line Версия ККМ: 001 [12:21:20]line ФМ: 0000000000871839 [12:21:20]line ФД: 228181 [12:21:20]line ФПД: 249707591959908 [12:21:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122122&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228181&fm=249707591959908&tin=02508201610067®Number=0000000000091685&sum=100000 [12:21:20]written 0, free lines is 4095 [12:21:20]OFD Sender: Processing packet 228181 [packets to send 38, broken 37] [12:21:20]ProducePacketName [12:21:20]name=ofd_packets/00228181 [12:21:20]OFD Sender: To server: pG, [12:21:20]CommunicateWithHost lk.salyk.kg:30040 [12:21:20]ConnectInit lk.salyk.kg [12:21:20]Connected sock=10 [12:21:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 49 08 07 01 61 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 C2 98 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 55 7B 03 00 35 04 06 00 E3 1B 94 51 05 64 A0 F3 2D F5 52 5D BB 0B [12:21:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 60 84 47 00 9F 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 55 7B 03 00 F4 03 04 00 BA 43 17 67 B6 04 01 00 00 BA 56 12 2C A1 77 88 70 [12:21:20]CommunicateWithHost err = 0 [12:21:20]CheckOFDResponse [12:21:20]1017 (14) - 77093643461234 [12:21:20]1041 (16) - 0000000000871839 [12:21:20]1040 (4) - 228181 [12:21:20]1012 (4) - 22.10.2024 06:18 [12:21:20]1206 (1) - 0 [12:21:20]OFD Sender: Remove packet 228181 [12:21:20]ProducePacketName [12:21:20]name=ofd_packets/00228181 [12:21:20]NVStorageDeleteData [12:21:20]Write to MH i2c: 01 00 00 DE 2C 0A [12:21:20]Write i2c OK [12:21:20]MH_I2C_Read... [12:21:20]Read from MH i2c: 01 [12:21:20]MH_I2C_Read... [12:21:20]Read from MH i2c: 01 07 00 [12:21:20]MH_I2C_Read... [12:21:20]Read from MH i2c: 01 07 00 DE 2C 00 00 00 00 00 D6 0C F3 [12:21:20]RasterBufferAndPrint [12:21:20]line [12:21:20]line [12:21:20]line [12:21:20]line [12:21:20]line [12:21:20]written 0, free lines is 3293 [12:21:20]MH_Cut [12:21:20]Write to MH i2c: D1 01 00 E5 2C 01 E3 [12:21:20]Write i2c OK [12:21:20]MH_I2C_Read... [12:21:20]Read from MH i2c: D1 [12:21:20]MH_I2C_Read... [12:21:20]Read from MH i2c: D1 01 00 [12:21:20]MH_I2C_Read... [12:21:20]Read from MH i2c: D1 01 00 E5 2C 00 E2 [12:21:20]Write to MH i2c: 01 00 00 E6 2C 12 [12:21:20]Write i2c OK [12:21:20]MH_I2C_Read... [12:21:21]OFD Sender: No OFD packet to send [12:21:21]*** Cut start [12:21:21]*** Partial cut [12:21:21]*** CUTSNS_PIN = 1 [12:21:21]*** CUTSNS_PIN = 0 [12:21:21]*** Brake cut motor [12:21:22]Read from MH i2c: 01 [12:21:22]MH_I2C_Read... [12:21:22]*** Stop cut motor [12:21:22]*** Cut end [12:21:22]Read from MH i2c: 01 07 00 [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: 01 07 00 E6 2C 00 00 00 00 00 FF 0F 27 [12:21:22]process_action close_receipt done [12:21:22]requested_data is exist [12:21:22]produce_requested_data [12:21:22]requested_item fm.sn is exist - process it [12:21:22]wFMCommunicate request_size=4 [12:21:22]MH_SAM_APDU [12:21:22]CAPDU: 80 11 00 00 [12:21:22]Write to MH i2c: E2 08 00 E7 2C 80 11 00 00 00 00 00 00 8D [12:21:22]Write i2c OK [12:21:22]MH_I2C_Read... [12:21:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:22]Read from MH i2c: E2 [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: E2 17 00 [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: E2 17 00 E7 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E4 [12:21:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:21:22]wFMCommunicate OK [12:21:22]requested_item fd.num is exist - process it [12:21:22]SAM_PROTO_GetFieldsCounters [12:21:22]wFMCommunicate request_size=4 [12:21:22]MH_SAM_APDU [12:21:22]CAPDU: 80 13 00 00 [12:21:22]Write to MH i2c: E2 08 00 E8 2C 80 13 00 00 00 00 00 00 90 [12:21:22]Write i2c OK [12:21:22]MH_I2C_Read... [12:21:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:22]Read from MH i2c: E2 [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: E2 62 00 [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: E2 62 00 E8 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 55 7B 03 00 0E 04 04 00 17 02 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 58 [12:21:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 55 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:21:22]wFMCommunicate OK [12:21:22]SAM_PROTO_GetFieldsCounters done [12:21:22]requested_item shift.num is exist - process it [12:21:22]requested_item shift.opened is exist - process it [12:21:22]req_shift_opened [12:21:22]FM_GetShiftState [12:21:22]SAM_PROTO_GetShiftState [12:21:22]wFMCommunicate request_size=4 [12:21:22]MH_SAM_APDU [12:21:22]CAPDU: 80 13 01 00 [12:21:22]Write to MH i2c: E2 08 00 E9 2C 80 13 01 00 00 00 00 00 92 [12:21:22]Write i2c OK [12:21:22]MH_I2C_Read... [12:21:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:22]Read from MH i2c: E2 [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: E2 0E 00 [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: E2 0E 00 E9 2C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 59 [12:21:22]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:21:22]wFMCommunicate OK [12:21:22]SAM_PROTO_GetShiftState done [12:21:22]FM_GetShiftState done [12:21:22]req_shift_opened done [12:21:22]requested_item shift.open_date is exist - process it [12:21:22]req_shift_open_date [12:21:22]req_shift_open_date done [12:21:22]produce_requested_data done [12:21:22]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228181,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [12:21:22]process_action_free close_receipt [12:21:22]json_value_free [12:21:22]json_value_free done [12:21:22]process_json_proto returns [12:21:22]Send response to host [12:21:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228181,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [12:21:22]free response buf [12:21:22]execute_script done [12:21:22]execute_script returns [12:21:22]free content buf [12:21:22]Sock 7.Close socket [12:21:22]Sock 7.Thread stoped [12:21:22]accept exits with 9 [12:21:22]New connection [12:21:22]New thread 3067137380 created [12:21:22]Thread 3066994020 joined [12:21:22]Waiting for new connection... [12:21:22] Sock 9.Parse request [12:21:22]Sock 9.Check first char [12:21:22]Sock 9.First char is OK [12:21:22]request: POST /json_proto HTTP/1.0 [12:21:22]Method: POST [12:21:22]URL: /json_proto [12:21:22]Method is POST - this is cgi request [12:21:22]url: /json_proto [12:21:22]query_string will be loaded in cgi processing [12:21:22]execute_cgi json_proto POST (null) [12:21:22]execute_cgi path=json_proto method=POST [12:21:22]POST find Content-Length [12:21:22]Host: 172.17.44.195:8080 [12:21:22]Content-Length: 675 [12:21:22]Content-Type: application/json [12:21:22] [12:21:22]POST finish read [12:21:22]Found Content-Length = 675 [12:21:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 2.630, "sum" : 200.41, "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" ] } } [12:21:22]execute_script... [12: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)1964622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 2.630, "sum" : 200.41, "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" ] } } [12:21:22]POST & json_proto [12:21:22]process_json_proto [12:21:22]json parsed OK: [12:21:22]protocol is kg_v1.0 [12:21:22]action value=close_receipt [12:21:22]process_action close_receipt [12:21:22]cmd_close_receipt [12:21:22]MH_GetDate [12:21:22]Write to MH i2c: F0 00 00 EA 2C 05 [12:21:22]Write i2c OK [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: F0 [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: F0 09 00 [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: F0 09 00 EA 2C 00 C6 98 17 67 82 C9 CF 66 6A [12:21:22]GetLastDocTimeStamp 1729599682 [12:21:22]current date 1729599686 [12:21:22]FM_GetShiftState [12:21:22]SAM_PROTO_GetShiftState [12:21:22]wFMCommunicate request_size=4 [12:21:22]MH_SAM_APDU [12:21:22]CAPDU: 80 13 01 00 [12:21:22]Write to MH i2c: E2 08 00 EB 2C 80 13 01 00 00 00 00 00 94 [12:21:22]Write i2c OK [12:21:22]MH_I2C_Read... [12:21:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:22]Read from MH i2c: E2 [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: E2 0E 00 [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: E2 0E 00 EB 2C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 5B [12:21:22]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:21:22]wFMCommunicate OK [12:21:22]SAM_PROTO_GetShiftState done [12:21:22]FM_GetShiftState done [12:21:22]opened in 1729555538 [12:21:22]opened+sec_in_day 1729641938 [12:21:22]quantity*price = 20040 [12:21:22]sum+1 = 20042 [12:21:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 146 22.10.2024 12:21 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228182 ФПД: 225129509332152 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122126&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228182&fm=225129509332152&tin=02508201610067®Number=0000000000091685&sum=20000 [12:21:23]StoreToDocumentArchive [12:21:23]shift 535 fd 228182 [12:21:23]save to /storage/0535/doc_00228182 [12:21:23]save last doc name /storage/0535/doc_00228182 to /storage/kkm_last_doc_name [12:21:23]save OK [12:21:23]Clear old archive folders... [12:21:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:21:23]tlvbuf is 0092DE60 [12:21:23]SAM_PROTO_ClearQueue [12:21:23]wFMCommunicate request_size=4 [12:21:23]MH_SAM_APDU [12:21:23]CAPDU: 80 09 00 00 [12:21:23]Write to MH i2c: E2 08 00 F8 2C 80 09 00 00 00 00 00 00 96 [12:21:23]Write i2c OK [12:21:23]MH_I2C_Read... [12:21:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:21:23]Read from MH i2c: E2 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: E2 03 00 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: E2 03 00 F8 2C 00 90 00 98 [12:21:23]RAPDU: 90 00 [12:21:23]wFMCommunicate OK [12:21:23]SAM_PROTO_ClearQueue done [12:21:23]KKMCreateOFDPacket [12:21:23]OFDProtocolAddRootSTLVToBuf [12:21:23]FM_MakeSignedData [12:21:23]FM_MakeSignedData [12:21:23]SAM_PROTO_SignData [12:21:23]wFMCommunicate request_size=4 [12:21:23]MH_SAM_APDU [12:21:23]CAPDU: 80 0D 01 02 [12:21:23]Write to MH i2c: E2 08 00 F9 2C 80 0D 01 02 00 00 00 00 9E [12:21:23]Write i2c OK [12:21:23]MH_I2C_Read... [12:21:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:21:23]Read from MH i2c: E2 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: E2 03 00 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: E2 03 00 F9 2C 00 90 00 99 [12:21:23]RAPDU: 90 00 [12:21:23]wFMCommunicate OK [12:21:23]wFMCommunicate request_size=255 [12:21:23]MH_SAM_APDU [12:21: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 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 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 50 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 92 00 00 00 F4 03 04 00 C6 98 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 56 7B 03 00 35 04 06 00 CC C1 0C 6E [12:21:23]Write to MH i2c: E2 02 01 FA 2C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 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 50 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 92 00 00 00 F4 03 04 00 C6 98 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 56 7B 03 00 35 04 06 00 CC C1 0C 6E 00 00 12 [12:21:24]Write i2c OK [12:21:24]MH_I2C_Read... [12:21:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:24]Read from MH i2c: E2 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: E2 03 00 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: E2 03 00 FA 2C 00 90 00 9A [12:21:24]RAPDU: 90 00 [12:21:24]wFMCommunicate OK [12:21:24]wFMCommunicate request_size=7 [12:21:24]MH_SAM_APDU [12:21:24]CAPDU: 80 0D 02 02 02 A4 B8 [12:21:24]Write to MH i2c: E2 0A 00 FB 2C 80 0D 02 02 02 00 A4 B8 00 00 01 [12:21:24]Write i2c OK [12:21:24]MH_I2C_Read... [12:21:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:24]Read from MH i2c: E2 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: E2 03 00 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: E2 03 00 FB 2C 00 90 00 9B [12:21:24]RAPDU: 90 00 [12:21:24]wFMCommunicate OK [12:21:24]wFMCommunicate request_size=4 [12:21:24]MH_SAM_APDU [12:21:24]CAPDU: 80 0D 03 02 [12:21:24]Write to MH i2c: E2 08 00 FC 2C 80 0D 03 02 00 00 00 00 A3 [12:21:24]Write i2c OK [12:21:24]MH_I2C_Read... [12:21:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:24]Read from MH i2c: E2 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: E2 0B 00 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: E2 0B 00 FC 2C 00 6E B2 AD CC 16 34 AC 30 90 00 63 [12:21:24]RAPDU: 6E B2 AD CC 16 34 AC 30 90 00 [12:21:24]wFMCommunicate OK [12:21:24]SAM_PROTO_SignData done [12:21:24]FM_MakeSignedData done [12:21:24]CreateOFDProtocolMessage [12:21:24]wFMCommunicate request_size=4 [12:21:24]MH_SAM_APDU [12:21:24]CAPDU: 80 11 00 00 [12:21:24]Write to MH i2c: E2 08 00 FD 2C 80 11 00 00 00 00 00 00 A3 [12:21:24]Write i2c OK [12:21:24]MH_I2C_Read... [12:21:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:25]Read from MH i2c: E2 [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: E2 17 00 [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: E2 17 00 FD 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FA [12:21:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:21:25]wFMCommunicate OK [12:21:25]CreateOFDProtocolMessage done [12:21:25]OFDSenderStorePacket 228182 [12:21:25]StoreOFDPacket docnum=228182 [12:21:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 DB 63 04 01 19 C9 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 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 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 50 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 92 00 00 00 F4 03 04 00 C6 98 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 56 7B 03 00 35 04 06 00 CC C1 0C 6E A4 B8 6E B2 AD CC 16 34 AC 30 [12:21:25]CheckFolder [12:21:25]dirname=/storage/ofd_packets [12:21:25]CheckFolder done [12:21:25]ProducePacketName [12:21:25]name=ofd_packets/00228182 [12:21:25]NVStorageSaveData ofd_packets/00228182 [12:21:25]File name is /storage/ofd_packets/00228182 [12:21:25]Write 298 bytes [12:21:25]NVStorageSaveData done [12:21:25]OFDSenderStorePacket done [12:21:25]KKMCreateOFDPacket done [12:21:25]NVStorageSaveData kkm_last_timestamp [12:21:25]File name is /storage/kkm_last_timestamp [12:21:25]Write 4 bytes [12:21:25]NVStorageSaveData done [12:21:25]ExternCall_PrintAddStr [12:21:25]wPrintStart [12:21:25]Write to MH i2c: 01 00 00 FE 2C 2A [12:21:25]Write i2c OK [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: 01 [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: 01 07 00 [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: 01 07 00 FE 2C 00 00 00 00 00 FF 0F 3F [12:21:25]RasterBufferAndPrint [12:21:25]line Счет N : (1)1964622 [12:21:25]line ИНН: 02508201610067 [12:21:25]line Контрольно-Кассовый Чек [12:21:25]line ПРОДАЖА [12:21:25]line ТРК (МРК, ГНК) : 31 [12:21:25]line Товар: 2710194210 [12:21:25]line ДТ-К-5 [12:21:25]line 2.630 * 76.20 [12:21:25]line = 200.41 [12:21:25]line НДС 12% НСП 1% [12:21:25]line > о реализуемом товаре [12:21:25]line ОКРУГЛЕНИЕ: -0.41 [12:21:25]line ИТОГО: 200.00 [12:21:25]line Внесено: 200.00 [12:21:25]line СДАЧА: 0.00 [12:21:25]line НСП 1% : 1.77 [12:21:25]line НДС 12% : 21.28 [12:21:25]line Наличными: 200.00 [12:21:25]line Безнал.: 0.00 [12:21:25]line Место: АЗС № 133 "Партнер Нефть" [12:21:25]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:21:25]line СНО: Общий режим [12:21:25]line Чек 146 22.10.2024 12:21 [12:21:25]line Смена: 535 ФФД: 1.0 [12:21:25]line ЗНМ: 0300000091 [12:21:25]line РНМ: 0000000000091685 [12:21:25]line Версия ККМ: 001 [12:21:25]line ФМ: 0000000000871839 [12:21:25]line ФД: 228182 [12:21:25]line ФПД: 225129509332152 [12:21:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122126&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228182&fm=225129509332152&tin=02508201610067®Number=0000000000091685&sum=20000 [12:21:25]written 0, free lines is 4095 [12:21:25]OFD Sender: Processing packet 228182 [packets to send 38, broken 37] [12:21:25]ProducePacketName [12:21:25]name=ofd_packets/00228182 [12:21:25]OFD Sender: To server: pG, [12:21:25]CommunicateWithHost lk.salyk.kg:30040 [12:21:25]ConnectInit lk.salyk.kg [12:21:25]Connected sock=10 [12:21:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 DB 63 04 01 19 C9 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 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 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 50 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 92 00 00 00 F4 03 04 00 C6 98 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 56 7B 03 00 35 04 06 00 CC C1 0C 6E A4 B8 6E B2 AD CC 16 34 AC 30 [12:21:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 C8 31 47 00 17 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 56 7B 03 00 F4 03 04 00 BF 43 17 67 B6 04 01 00 00 26 54 15 C4 9C AF C8 F1 [12:21:25]CommunicateWithHost err = 0 [12:21:25]CheckOFDResponse [12:21:25]1017 (14) - 77093643461234 [12:21:25]1041 (16) - 0000000000871839 [12:21:25]1040 (4) - 228182 [12:21:25]1012 (4) - 22.10.2024 06:18 [12:21:25]1206 (1) - 0 [12:21:25]OFD Sender: Remove packet 228182 [12:21:25]ProducePacketName [12:21:25]name=ofd_packets/00228182 [12:21:25]NVStorageDeleteData [12:21:25]Write to MH i2c: 01 00 00 28 2D 55 [12:21:25]Write i2c OK [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: 01 [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: 01 07 00 [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: 01 07 00 28 2D 00 00 00 00 00 E2 0C 4A [12:21:25]RasterBufferAndPrint [12:21:25]line [12:21:25]line [12:21:25]line [12:21:25]line [12:21:25]line [12:21:25]written 0, free lines is 3311 [12:21:25]MH_Cut [12:21:25]Write to MH i2c: D1 01 00 2F 2D 01 2E [12:21:25]Write i2c OK [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: D1 [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: D1 01 00 [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: D1 01 00 2F 2D 00 2D [12:21:25]Write to MH i2c: 01 00 00 30 2D 5D [12:21:25]Write i2c OK [12:21:25]MH_I2C_Read... [12:21:26]OFD Sender: No OFD packet to send [12:21:26]*** Cut start [12:21:26]*** Partial cut [12:21:26]*** CUTSNS_PIN = 1 [12:21:26]*** CUTSNS_PIN = 0 [12:21:26]*** Brake cut motor [12:21:26]Read from MH i2c: 01 [12:21:26]MH_I2C_Read... [12:21:26]*** Stop cut motor [12:21:26]*** Cut end [12:21:26]Read from MH i2c: 01 07 00 [12:21:26]MH_I2C_Read... [12:21:26]Read from MH i2c: 01 07 00 30 2D 00 00 00 00 00 FF 0F 72 [12:21:26]process_action close_receipt done [12:21:26]requested_data is exist [12:21:26]produce_requested_data [12:21:26]requested_item fm.sn is exist - process it [12:21:26]wFMCommunicate request_size=4 [12:21:26]MH_SAM_APDU [12:21:26]CAPDU: 80 11 00 00 [12:21:26]Write to MH i2c: E2 08 00 31 2D 80 11 00 00 00 00 00 00 D8 [12:21:26]Write i2c OK [12:21:26]MH_I2C_Read... [12:21:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:27]Read from MH i2c: E2 [12:21:27]MH_I2C_Read... [12:21:27]Read from MH i2c: E2 17 00 [12:21:27]MH_I2C_Read... [12:21:27]Read from MH i2c: E2 17 00 31 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2F [12:21:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:21:27]wFMCommunicate OK [12:21:27]requested_item fd.num is exist - process it [12:21:27]SAM_PROTO_GetFieldsCounters [12:21:27]wFMCommunicate request_size=4 [12:21:27]MH_SAM_APDU [12:21:27]CAPDU: 80 13 00 00 [12:21:27]Write to MH i2c: E2 08 00 32 2D 80 13 00 00 00 00 00 00 DB [12:21:27]Write i2c OK [12:21:27]MH_I2C_Read... [12:21:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:27]Read from MH i2c: E2 [12:21:27]MH_I2C_Read... [12:21:27]Read from MH i2c: E2 62 00 [12:21:27]MH_I2C_Read... [12:21:27]Read from MH i2c: E2 62 00 32 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 56 7B 03 00 0E 04 04 00 17 02 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 A7 [12:21:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 56 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:21:27]wFMCommunicate OK [12:21:27]SAM_PROTO_GetFieldsCounters done [12:21:27]requested_item shift.num is exist - process it [12:21:27]requested_item shift.opened is exist - process it [12:21:27]req_shift_opened [12:21:27]FM_GetShiftState [12:21:27]SAM_PROTO_GetShiftState [12:21:27]wFMCommunicate request_size=4 [12:21:27]MH_SAM_APDU [12:21:27]CAPDU: 80 13 01 00 [12:21:27]Write to MH i2c: E2 08 00 33 2D 80 13 01 00 00 00 00 00 DD [12:21:27]Write i2c OK [12:21:27]MH_I2C_Read... [12:21:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:27]Read from MH i2c: E2 [12:21:27]MH_I2C_Read... [12:21:27]Read from MH i2c: E2 0E 00 [12:21:27]MH_I2C_Read... [12:21:27]Read from MH i2c: E2 0E 00 33 2D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 A4 [12:21:27]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:21:27]wFMCommunicate OK [12:21:27]SAM_PROTO_GetShiftState done [12:21:27]FM_GetShiftState done [12:21:27]req_shift_opened done [12:21:27]requested_item shift.open_date is exist - process it [12:21:27]req_shift_open_date [12:21:27]req_shift_open_date done [12:21:27]produce_requested_data done [12:21:27]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228182,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [12:21:27]process_action_free close_receipt [12:21:27]json_value_free [12:21:27]json_value_free done [12:21:27]process_json_proto returns [12:21:27]Send response to host [12:21:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228182,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [12:21:27]free response buf [12:21:27]execute_script done [12:21:27]execute_script returns [12:21:27]free content buf [12:21:27]Sock 9.Close socket [12:21:27]Sock 9.Thread stoped [12:21:31]OFD Sender: No OFD packet to send [12:21:36]OFD Sender: No OFD packet to send [12:21:41]OFD Sender: No OFD packet to send [12:21:46]OFD Sender: No OFD packet to send [12:21:51]OFD Sender: No OFD packet to send [12:21:56]OFD Sender: No OFD packet to send [12:22:01]OFD Sender: No OFD packet to send [12:22:06]OFD Sender: No OFD packet to send [12:22:11]OFD Sender: No OFD packet to send [12:22:16]OFD Sender: No OFD packet to send [12:22:21]OFD Sender: No OFD packet to send [12:22:26]OFD Sender: No OFD packet to send [12:22:31]OFD Sender: No OFD packet to send [12:22:36]OFD Sender: No OFD packet to send [12:22:41]OFD Sender: No OFD packet to send [12:22:46]OFD Sender: No OFD packet to send [12:22:51]OFD Sender: No OFD packet to send [12:22:56]OFD Sender: No OFD packet to send [12:23:00]accept exits with 7 [12:23:00]New connection [12:23:00]New thread 3066994020 created [12:23:00]Thread 3067137380 joined [12:23:00]Waiting for new connection... [12:23:00] Sock 7.Parse request [12:23:00]Sock 7.Check first char [12:23:00]Sock 7.First char is OK [12:23:00]request: POST /json_proto HTTP/1.0 [12:23:00]Method: POST [12:23:00]URL: /json_proto [12:23:00]Method is POST - this is cgi request [12:23:00]url: /json_proto [12:23:00]query_string will be loaded in cgi processing [12:23:00]execute_cgi json_proto POST (null) [12:23:00]execute_cgi path=json_proto method=POST [12:23:00]POST find Content-Length [12:23:00]Host: 172.17.44.195:8080 [12:23:00]Content-Length: 678 [12:23:00]Content-Type: application/json [12:23:00] [12:23:00]POST finish read [12:23:00]Found Content-Length = 678 [12:23:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "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" ] } } [12:23:00]execute_script... [12:23: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)1964626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "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" ] } } [12:23:00]POST & json_proto [12:23:00]process_json_proto [12:23:00]json parsed OK: [12:23:00]protocol is kg_v1.0 [12:23:00]action value=close_receipt [12:23:00]process_action close_receipt [12:23:00]cmd_close_receipt [12:23:00]MH_GetDate [12:23:00]Write to MH i2c: F0 00 00 34 2D 50 [12:23:00]Write i2c OK [12:23:00]MH_I2C_Read... [12:23:00]Read from MH i2c: F0 [12:23:00]MH_I2C_Read... [12:23:00]Read from MH i2c: F0 09 00 [12:23:00]MH_I2C_Read... [12:23:00]Read from MH i2c: F0 09 00 34 2D 00 28 99 17 67 82 C9 CF 66 18 [12:23:00]GetLastDocTimeStamp 1729599686 [12:23:00]current date 1729599784 [12:23:00]FM_GetShiftState [12:23:00]SAM_PROTO_GetShiftState [12:23:00]wFMCommunicate request_size=4 [12:23:00]MH_SAM_APDU [12:23:00]CAPDU: 80 13 01 00 [12:23:00]Write to MH i2c: E2 08 00 35 2D 80 13 01 00 00 00 00 00 DF [12:23:00]Write i2c OK [12:23:00]MH_I2C_Read... [12:23:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:00]Read from MH i2c: E2 [12:23:00]MH_I2C_Read... [12:23:00]Read from MH i2c: E2 0E 00 [12:23:00]MH_I2C_Read... [12:23:00]Read from MH i2c: E2 0E 00 35 2D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 A6 [12:23:00]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:23:00]wFMCommunicate OK [12:23:00]SAM_PROTO_GetShiftState done [12:23:00]FM_GetShiftState done [12:23:00]opened in 1729555538 [12:23:00]opened+sec_in_day 1729641938 [12:23:00]quantity*price = 40006 [12:23:00]sum+1 = 40007 [12:23:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 147 22.10.2024 12:23 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228183 ФПД: 150884127167950 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122304&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228183&fm=150884127167950&tin=02508201610067®Number=0000000000091685&sum=40000 [12:23:01]StoreToDocumentArchive [12:23:01]shift 535 fd 228183 [12:23:01]save to /storage/0535/doc_00228183 [12:23:01]save last doc name /storage/0535/doc_00228183 to /storage/kkm_last_doc_name [12:23:01]save OK [12:23:01]Clear old archive folders... [12:23:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:23:01]tlvbuf is 00875970 [12:23:01]SAM_PROTO_ClearQueue [12:23:01]wFMCommunicate request_size=4 [12:23:01]MH_SAM_APDU [12:23:01]CAPDU: 80 09 00 00 [12:23:01]Write to MH i2c: E2 08 00 42 2D 80 09 00 00 00 00 00 00 E1 [12:23:01]Write i2c OK [12:23:01]MH_I2C_Read... [12:23:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:01]Read from MH i2c: E2 [12:23:01]MH_I2C_Read... [12:23:01]Read from MH i2c: E2 03 00 [12:23:01]MH_I2C_Read... [12:23:01]Read from MH i2c: E2 03 00 42 2D 00 90 00 E3 [12:23:01]RAPDU: 90 00 [12:23:01]wFMCommunicate OK [12:23:01]SAM_PROTO_ClearQueue done [12:23:01]KKMCreateOFDPacket [12:23:01]OFDProtocolAddRootSTLVToBuf [12:23:01]FM_MakeSignedData [12:23:01]FM_MakeSignedData [12:23:01]SAM_PROTO_SignData [12:23:01]wFMCommunicate request_size=4 [12:23:01]MH_SAM_APDU [12:23:01]CAPDU: 80 0D 01 02 [12:23:01]Write to MH i2c: E2 08 00 43 2D 80 0D 01 02 00 00 00 00 E9 [12:23:01]Write i2c OK [12:23:01]MH_I2C_Read... [12:23:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:01]Read from MH i2c: E2 [12:23:01]MH_I2C_Read... [12:23:01]Read from MH i2c: E2 03 00 [12:23:01]MH_I2C_Read... [12:23:01]Read from MH i2c: E2 03 00 43 2D 00 90 00 E4 [12:23:01]RAPDU: 90 00 [12:23:01]wFMCommunicate OK [12:23:01]wFMCommunicate request_size=255 [12:23:01]MH_SAM_APDU [12:23: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 93 00 00 00 F4 03 04 00 28 99 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 57 7B 03 00 35 04 06 00 89 [12:23:01]Write to MH i2c: E2 02 01 44 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 93 00 00 00 F4 03 04 00 28 99 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 57 7B 03 00 35 04 06 00 89 00 00 98 [12:23:01]Write i2c OK [12:23:01]MH_I2C_Read... [12:23:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:01]Read from MH i2c: E2 [12:23:01]MH_I2C_Read... [12:23:01]Read from MH i2c: E2 03 00 [12:23:01]MH_I2C_Read... [12:23:01]Read from MH i2c: E2 03 00 44 2D 00 90 00 E5 [12:23:01]RAPDU: 90 00 [12:23:01]wFMCommunicate OK [12:23:01]wFMCommunicate request_size=10 [12:23:01]MH_SAM_APDU [12:23:01]CAPDU: 80 0D 02 02 05 3A 72 CD 55 CE [12:23:01]Write to MH i2c: E2 0D 00 45 2D 80 0D 02 02 05 00 3A 72 CD 55 CE 00 00 92 [12:23:01]Write i2c OK [12:23:01]MH_I2C_Read... [12:23:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:01]Read from MH i2c: E2 [12:23:01]MH_I2C_Read... [12:23:01]Read from MH i2c: E2 03 00 [12:23:01]MH_I2C_Read... [12:23:01]Read from MH i2c: E2 03 00 45 2D 00 90 00 E6 [12:23:01]RAPDU: 90 00 [12:23:01]wFMCommunicate OK [12:23:01]wFMCommunicate request_size=4 [12:23:01]MH_SAM_APDU [12:23:01]CAPDU: 80 0D 03 02 [12:23:01]Write to MH i2c: E2 08 00 46 2D 80 0D 03 02 00 00 00 00 EE [12:23:01]Write i2c OK [12:23:01]MH_I2C_Read... [12:23:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:01]Read from MH i2c: E2 [12:23:01]MH_I2C_Read... [12:23:01]Read from MH i2c: E2 0B 00 [12:23:01]MH_I2C_Read... [12:23:01]Read from MH i2c: E2 0B 00 46 2D 00 8C E0 9A 8F DF 09 B7 34 90 00 57 [12:23:01]RAPDU: 8C E0 9A 8F DF 09 B7 34 90 00 [12:23:01]wFMCommunicate OK [12:23:01]SAM_PROTO_SignData done [12:23:01]FM_MakeSignedData done [12:23:01]CreateOFDProtocolMessage [12:23:01]wFMCommunicate request_size=4 [12:23:01]MH_SAM_APDU [12:23:01]CAPDU: 80 11 00 00 [12:23:01]Write to MH i2c: E2 08 00 47 2D 80 11 00 00 00 00 00 00 EE [12:23:01]Write i2c OK [12:23:01]MH_I2C_Read... [12:23:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:01]Read from MH i2c: E2 [12:23:01]MH_I2C_Read... [12:23:01]Read from MH i2c: E2 17 00 [12:23:01]MH_I2C_Read... [12:23:01]Read from MH i2c: E2 17 00 47 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 45 [12:23:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:23:01]wFMCommunicate OK [12:23:01]CreateOFDProtocolMessage done [12:23:01]OFDSenderStorePacket 228183 [12:23:01]StoreOFDPacket docnum=228183 [12:23:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 DD 00 07 01 14 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 93 00 00 00 F4 03 04 00 28 99 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 57 7B 03 00 35 04 06 00 89 3A 72 CD 55 CE 8C E0 9A 8F DF 09 B7 34 [12:23:01]CheckFolder [12:23:01]dirname=/storage/ofd_packets [12:23:01]CheckFolder done [12:23:01]ProducePacketName [12:23:01]name=ofd_packets/00228183 [12:23:01]NVStorageSaveData ofd_packets/00228183 [12:23:01]File name is /storage/ofd_packets/00228183 [12:23:01]Write 301 bytes [12:23:01]NVStorageSaveData done [12:23:01]OFDSenderStorePacket done [12:23:01]KKMCreateOFDPacket done [12:23:01]NVStorageSaveData kkm_last_timestamp [12:23:01]File name is /storage/kkm_last_timestamp [12:23:01]Write 4 bytes [12:23:01]NVStorageSaveData done [12:23:01]OFD Sender: Processing packet 228183 [packets to send 38, broken 37] [12:23:01]ProducePacketName [12:23:01]name=ofd_packets/00228183 [12:23:01]OFD Sender: To server: pG, [12:23:01]CommunicateWithHost lk.salyk.kg:30040 [12:23:01]ConnectInit lk.salyk.kg [12:23:01]ExternCall_PrintAddStr [12:23:01]wPrintStart [12:23:01]Write to MH i2c: 01 00 00 48 2D 75 [12:23:01]Write i2c OK [12:23:01]MH_I2C_Read... [12:23:01]Read from MH i2c: 01 [12:23:01]MH_I2C_Read... [12:23:01]Read from MH i2c: 01 07 00 [12:23:01]MH_I2C_Read... [12:23:01]Read from MH i2c: 01 07 00 48 2D 00 00 00 00 00 FF 0F 8A [12:23:01]RasterBufferAndPrint [12:23:01]line Счет N : (1)1964626 [12:23:01]line ИНН: 02508201610067 [12:23:01]line Контрольно-Кассовый Чек [12:23:01]line ПРОДАЖА [12:23:01]line ТРК (МРК, ГНК) : 43 [12:23:01]line Товар: 2710124130 [12:23:01]line Аи-92-К-5 [12:23:01]line 5.980 * 66.90 [12:23:01]line = 400.06 [12:23:01]line НДС 12% НСП 1% [12:23:01]line > о реализуемом товаре [12:23:01]line ОКРУГЛЕНИЕ: -0.06 [12:23:01]line ИТОГО: 400.00 [12:23:01]line Внесено: 400.00 [12:23:01]line СДАЧА: 0.00 [12:23:01]line НСП 1% : 3.54 [12:23:01]line НДС 12% : 42.48 [12:23:01]line Наличными: 400.00 [12:23:01]line Безнал.: 0.00 [12:23:01]line Место: АЗС № 133 "Партнер Нефть" [12:23:01]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:23:01]line СНО: Общий режим [12:23:01]line Чек 147 22.10.2024 12:23 [12:23:01]line Смена: 535 ФФД: 1.0 [12:23:01]line ЗНМ: 0300000091 [12:23:01]line РНМ: 0000000000091685 [12:23:01]line Версия ККМ: 001 [12:23:01]line ФМ: 0000000000871839 [12:23:01]line ФД: 228183 [12:23:01]line ФПД: 150884127167950 [12:23:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122304&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228183&fm=150884127167950&tin=02508201610067®Number=0000000000091685&sum=40000 [12:23:02]Connected sock=11 [12:23:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 DD 00 07 01 14 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 93 00 00 00 F4 03 04 00 28 99 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 57 7B 03 00 35 04 06 00 89 3A 72 CD 55 CE 8C E0 9A 8F DF 09 B7 34 [12:23:02]written 0, free lines is 4095 [12:23:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 A5 F6 47 00 70 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 57 7B 03 00 F4 03 04 00 20 44 17 67 B6 04 01 00 00 FD 23 8B 13 E8 FF 17 C4 [12:23:02]CommunicateWithHost err = 0 [12:23:02]CheckOFDResponse [12:23:02]1017 (14) - 77093643461234 [12:23:02]1041 (16) - 0000000000871839 [12:23:02]1040 (4) - 228183 [12:23:02]1012 (4) - 22.10.2024 06:20 [12:23:02]1206 (1) - 0 [12:23:02]OFD Sender: Remove packet 228183 [12:23:02]ProducePacketName [12:23:02]name=ofd_packets/00228183 [12:23:02]NVStorageDeleteData [12:23:02]Write to MH i2c: 01 00 00 72 2D 9F [12:23:02]Write i2c OK [12:23:02]MH_I2C_Read... [12:23:02]Read from MH i2c: 01 [12:23:02]MH_I2C_Read... [12:23:02]Read from MH i2c: 01 07 00 [12:23:02]MH_I2C_Read... [12:23:02]Read from MH i2c: 01 07 00 72 2D 00 00 00 00 00 CA 0C 7C [12:23:02]RasterBufferAndPrint [12:23:02]line [12:23:02]line [12:23:02]line [12:23:02]line [12:23:02]line [12:23:02]written 0, free lines is 3280 [12:23:02]MH_Cut [12:23:02]Write to MH i2c: D1 01 00 79 2D 01 78 [12:23:02]Write i2c OK [12:23:02]MH_I2C_Read... [12:23:02]Read from MH i2c: D1 [12:23:02]MH_I2C_Read... [12:23:02]Read from MH i2c: D1 01 00 [12:23:02]MH_I2C_Read... [12:23:02]Read from MH i2c: D1 01 00 79 2D 00 77 [12:23:02]Write to MH i2c: 01 00 00 7A 2D A7 [12:23:02]Write i2c OK [12:23:02]MH_I2C_Read... [12:23:02]OFD Sender: No OFD packet to send [12:23:03]*** Cut start [12:23:03]*** Partial cut [12:23:03]*** CUTSNS_PIN = 1 [12:23:03]*** CUTSNS_PIN = 0 [12:23:03]*** Brake cut motor [12:23:04]Read from MH i2c: 01 [12:23:04]MH_I2C_Read... [12:23:04]*** Stop cut motor [12:23:04]*** Cut end [12:23:04]Read from MH i2c: 01 07 00 [12:23:04]MH_I2C_Read... [12:23:04]Read from MH i2c: 01 07 00 7A 2D 00 00 00 00 00 FF 0F BC [12:23:04]process_action close_receipt done [12:23:04]requested_data is exist [12:23:04]produce_requested_data [12:23:04]requested_item fm.sn is exist - process it [12:23:04]wFMCommunicate request_size=4 [12:23:04]MH_SAM_APDU [12:23:04]CAPDU: 80 11 00 00 [12:23:04]Write to MH i2c: E2 08 00 7B 2D 80 11 00 00 00 00 00 00 22 [12:23:04]Write i2c OK [12:23:04]MH_I2C_Read... [12:23:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:04]Read from MH i2c: E2 [12:23:04]MH_I2C_Read... [12:23:04]Read from MH i2c: E2 17 00 [12:23:04]MH_I2C_Read... [12:23:04]Read from MH i2c: E2 17 00 7B 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 79 [12:23:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:23:04]wFMCommunicate OK [12:23:04]requested_item fd.num is exist - process it [12:23:04]SAM_PROTO_GetFieldsCounters [12:23:04]wFMCommunicate request_size=4 [12:23:04]MH_SAM_APDU [12:23:04]CAPDU: 80 13 00 00 [12:23:04]Write to MH i2c: E2 08 00 7C 2D 80 13 00 00 00 00 00 00 25 [12:23:04]Write i2c OK [12:23:04]MH_I2C_Read... [12:23:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:04]Read from MH i2c: E2 [12:23:04]MH_I2C_Read... [12:23:04]Read from MH i2c: E2 62 00 [12:23:04]MH_I2C_Read... [12:23:04]Read from MH i2c: E2 62 00 7C 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 57 7B 03 00 0E 04 04 00 17 02 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 F5 [12:23:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 57 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:23:04]wFMCommunicate OK [12:23:04]SAM_PROTO_GetFieldsCounters done [12:23:04]requested_item shift.num is exist - process it [12:23:04]requested_item shift.opened is exist - process it [12:23:04]req_shift_opened [12:23:04]FM_GetShiftState [12:23:04]SAM_PROTO_GetShiftState [12:23:04]wFMCommunicate request_size=4 [12:23:04]MH_SAM_APDU [12:23:04]CAPDU: 80 13 01 00 [12:23:04]Write to MH i2c: E2 08 00 7D 2D 80 13 01 00 00 00 00 00 27 [12:23:04]Write i2c OK [12:23:04]MH_I2C_Read... [12:23:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:04]Read from MH i2c: E2 [12:23:04]MH_I2C_Read... [12:23:04]Read from MH i2c: E2 0E 00 [12:23:04]MH_I2C_Read... [12:23:04]Read from MH i2c: E2 0E 00 7D 2D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 EE [12:23:04]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:23:04]wFMCommunicate OK [12:23:04]SAM_PROTO_GetShiftState done [12:23:04]FM_GetShiftState done [12:23:04]req_shift_opened done [12:23:04]requested_item shift.open_date is exist - process it [12:23:04]req_shift_open_date [12:23:04]req_shift_open_date done [12:23:04]produce_requested_data done [12:23:04]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228183,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [12:23:04]process_action_free close_receipt [12:23:04]json_value_free [12:23:04]json_value_free done [12:23:04]process_json_proto returns [12:23:04]Send response to host [12:23:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228183,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [12:23:04]free response buf [12:23:04]execute_script done [12:23:04]execute_script returns [12:23:04]free content buf [12:23:04]Sock 7.Close socket [12:23:04]Sock 7.Thread stoped [12:23:07]OFD Sender: No OFD packet to send [12:23:13]OFD Sender: No OFD packet to send [12:23:18]OFD Sender: No OFD packet to send [12:23:23]OFD Sender: No OFD packet to send [12:23:28]OFD Sender: No OFD packet to send [12:23:33]OFD Sender: No OFD packet to send [12:23:38]OFD Sender: No OFD packet to send [12:23:43]OFD Sender: No OFD packet to send [12:23:48]OFD Sender: No OFD packet to send [12:23:53]OFD Sender: No OFD packet to send [12:23:58]OFD Sender: No OFD packet to send [12:24:03]OFD Sender: No OFD packet to send [12:24:08]OFD Sender: No OFD packet to send [12:24:13]OFD Sender: No OFD packet to send [12:24:18]OFD Sender: No OFD packet to send [12:24:23]OFD Sender: No OFD packet to send [12:24:28]OFD Sender: No OFD packet to send [12:24:33]OFD Sender: No OFD packet to send [12:24:38]OFD Sender: No OFD packet to send [12:24:43]OFD Sender: No OFD packet to send [12:24:48]OFD Sender: No OFD packet to send [12:24:53]OFD Sender: No OFD packet to send [12:24:53]accept exits with 9 [12:24:53]New connection [12:24:53]New thread 3067137380 created [12:24:53]Thread 3066994020 joined [12:24:53]Waiting for new connection... [12:24:53] Sock 9.Parse request [12:24:53]Sock 9.Check first char [12:24:53]Sock 9.First char is OK [12:24:53]request: POST /json_proto HTTP/1.0 [12:24:53]Method: POST [12:24:53]URL: /json_proto [12:24:53]Method is POST - this is cgi request [12:24:53]url: /json_proto [12:24:53]query_string will be loaded in cgi processing [12:24:53]execute_cgi json_proto POST (null) [12:24:53]execute_cgi path=json_proto method=POST [12:24:53]POST find Content-Length [12:24:53]Host: 172.17.44.195:8080 [12:24:53]Content-Length: 678 [12:24:53]Content-Type: application/json [12:24:53] [12:24:53]POST finish read [12:24:53]Found Content-Length = 678 [12:24:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:53]execute_script... [12:24: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)1964627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:53]POST & json_proto [12:24:53]process_json_proto [12:24:53]json parsed OK: [12:24:53]protocol is kg_v1.0 [12:24:53]action value=close_receipt [12:24:53]process_action close_receipt [12:24:53]cmd_close_receipt [12:24:53]MH_GetDate [12:24:53]Write to MH i2c: F0 00 00 7E 2D 9A [12:24:53]Write i2c OK [12:24:53]MH_I2C_Read... [12:24:53]Read from MH i2c: F0 [12:24:53]MH_I2C_Read... [12:24:53]Read from MH i2c: F0 09 00 [12:24:53]MH_I2C_Read... [12:24:53]Read from MH i2c: F0 09 00 7E 2D 00 99 99 17 67 82 C9 CF 66 D3 [12:24:53]GetLastDocTimeStamp 1729599784 [12:24:53]current date 1729599897 [12:24:53]FM_GetShiftState [12:24:53]SAM_PROTO_GetShiftState [12:24:53]wFMCommunicate request_size=4 [12:24:53]MH_SAM_APDU [12:24:53]CAPDU: 80 13 01 00 [12:24:53]Write to MH i2c: E2 08 00 7F 2D 80 13 01 00 00 00 00 00 29 [12:24:53]Write i2c OK [12:24:53]MH_I2C_Read... [12:24:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:53]Read from MH i2c: E2 [12:24:53]MH_I2C_Read... [12:24:53]Read from MH i2c: E2 0E 00 [12:24:53]MH_I2C_Read... [12:24:53]Read from MH i2c: E2 0E 00 7F 2D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 F0 [12:24:53]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:24:53]wFMCommunicate OK [12:24:53]SAM_PROTO_GetShiftState done [12:24:53]FM_GetShiftState done [12:24:53]opened in 1729555538 [12:24:53]opened+sec_in_day 1729641938 [12:24:53]quantity*price = 40068 [12:24:53]sum+1 = 40069 [12:24:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 148 22.10.2024 12:24 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228184 ФПД: 135099149284406 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122457&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228184&fm=135099149284406&tin=02508201610067®Number=0000000000091685&sum=40000 [12:24:54]StoreToDocumentArchive [12:24:54]shift 535 fd 228184 [12:24:54]save to /storage/0535/doc_00228184 [12:24:54]save last doc name /storage/0535/doc_00228184 to /storage/kkm_last_doc_name [12:24:54]save OK [12:24:54]Clear old archive folders... [12:24:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:24:54]tlvbuf is 0085BAF0 [12:24:54]SAM_PROTO_ClearQueue [12:24:54]wFMCommunicate request_size=4 [12:24:54]MH_SAM_APDU [12:24:54]CAPDU: 80 09 00 00 [12:24:54]Write to MH i2c: E2 08 00 8C 2D 80 09 00 00 00 00 00 00 2B [12:24:54]Write i2c OK [12:24:54]MH_I2C_Read... [12:24:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:54]Read from MH i2c: E2 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 03 00 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 03 00 8C 2D 00 90 00 2D [12:24:54]RAPDU: 90 00 [12:24:54]wFMCommunicate OK [12:24:54]SAM_PROTO_ClearQueue done [12:24:54]KKMCreateOFDPacket [12:24:54]OFDProtocolAddRootSTLVToBuf [12:24:54]FM_MakeSignedData [12:24:54]FM_MakeSignedData [12:24:54]SAM_PROTO_SignData [12:24:54]wFMCommunicate request_size=4 [12:24:54]MH_SAM_APDU [12:24:54]CAPDU: 80 0D 01 02 [12:24:54]Write to MH i2c: E2 08 00 8D 2D 80 0D 01 02 00 00 00 00 33 [12:24:54]Write i2c OK [12:24:54]MH_I2C_Read... [12:24:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:54]Read from MH i2c: E2 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 03 00 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 03 00 8D 2D 00 90 00 2E [12:24:54]RAPDU: 90 00 [12:24:54]wFMCommunicate OK [12:24:54]wFMCommunicate request_size=255 [12:24:54]MH_SAM_APDU [12:24:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 99 99 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 58 7B 03 00 35 04 06 00 7A [12:24:54]Write to MH i2c: E2 02 01 8E 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 99 99 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 58 7B 03 00 35 04 06 00 7A 00 00 26 [12:24:54]Write i2c OK [12:24:54]MH_I2C_Read... [12:24:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:55]Read from MH i2c: E2 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: E2 03 00 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: E2 03 00 8E 2D 00 90 00 2F [12:24:55]RAPDU: 90 00 [12:24:55]wFMCommunicate OK [12:24:55]wFMCommunicate request_size=10 [12:24:55]MH_SAM_APDU [12:24:55]CAPDU: 80 0D 02 02 05 DF 38 CD 74 36 [12:24:55]Write to MH i2c: E2 0D 00 8F 2D 80 0D 02 02 05 00 DF 38 CD 74 36 00 00 CE [12:24:55]Write i2c OK [12:24:55]MH_I2C_Read... [12:24:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:55]Read from MH i2c: E2 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: E2 03 00 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: E2 03 00 8F 2D 00 90 00 30 [12:24:55]RAPDU: 90 00 [12:24:55]wFMCommunicate OK [12:24:55]wFMCommunicate request_size=4 [12:24:55]MH_SAM_APDU [12:24:55]CAPDU: 80 0D 03 02 [12:24:55]Write to MH i2c: E2 08 00 90 2D 80 0D 03 02 00 00 00 00 38 [12:24:55]Write i2c OK [12:24:55]MH_I2C_Read... [12:24:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:55]Read from MH i2c: E2 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: E2 0B 00 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: E2 0B 00 90 2D 00 0A 80 C4 64 03 92 C5 8D 90 00 D2 [12:24:55]RAPDU: 0A 80 C4 64 03 92 C5 8D 90 00 [12:24:55]wFMCommunicate OK [12:24:55]SAM_PROTO_SignData done [12:24:55]FM_MakeSignedData done [12:24:55]CreateOFDProtocolMessage [12:24:55]wFMCommunicate request_size=4 [12:24:55]MH_SAM_APDU [12:24:55]CAPDU: 80 11 00 00 [12:24:55]Write to MH i2c: E2 08 00 91 2D 80 11 00 00 00 00 00 00 38 [12:24:55]Write i2c OK [12:24:55]MH_I2C_Read... [12:24:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:55]Read from MH i2c: E2 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: E2 17 00 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: E2 17 00 91 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8F [12:24:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:24:55]wFMCommunicate OK [12:24:55]CreateOFDProtocolMessage done [12:24:55]OFDSenderStorePacket 228184 [12:24:55]StoreOFDPacket docnum=228184 [12:24:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 21 12 07 01 BE A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 99 99 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 58 7B 03 00 35 04 06 00 7A DF 38 CD 74 36 0A 80 C4 64 03 92 C5 8D [12:24:55]CheckFolder [12:24:55]dirname=/storage/ofd_packets [12:24:55]CheckFolder done [12:24:55]ProducePacketName [12:24:55]name=ofd_packets/00228184 [12:24:55]NVStorageSaveData ofd_packets/00228184 [12:24:55]File name is /storage/ofd_packets/00228184 [12:24:55]Write 301 bytes [12:24:55]NVStorageSaveData done [12:24:55]OFDSenderStorePacket done [12:24:55]KKMCreateOFDPacket done [12:24:55]NVStorageSaveData kkm_last_timestamp [12:24:55]File name is /storage/kkm_last_timestamp [12:24:55]Write 4 bytes [12:24:55]NVStorageSaveData done [12:24:55]ExternCall_PrintAddStr [12:24:55]wPrintStart [12:24:55]Write to MH i2c: 01 00 00 92 2D BF [12:24:55]Write i2c OK [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: 01 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: 01 07 00 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: 01 07 00 92 2D 00 00 00 00 00 FF 0F D4 [12:24:55]RasterBufferAndPrint [12:24:55]line Счет N : (1)1964627 [12:24:55]line ИНН: 02508201610067 [12:24:55]line Контрольно-Кассовый Чек [12:24:55]line ПРОДАЖА [12:24:55]line ТРК (МРК, ГНК) : 44 [12:24:55]line Товар: 2710124500 [12:24:55]line Аи-95-К-5 [12:24:55]line 5.400 * 74.20 [12:24:55]line = 400.68 [12:24:55]line НДС 12% НСП 1% [12:24:55]line > о реализуемом товаре [12:24:55]line ОКРУГЛЕНИЕ: -0.68 [12:24:55]line ИТОГО: 400.00 [12:24:55]line Внесено: 400.00 [12:24:55]line СДАЧА: 0.00 [12:24:55]line НСП 1% : 3.55 [12:24:55]line НДС 12% : 42.55 [12:24:55]line Наличными: 400.00 [12:24:55]line Безнал.: 0.00 [12:24:55]line Место: АЗС № 133 "Партнер Нефть" [12:24:55]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:24:55]line СНО: Общий режим [12:24:55]line Чек 148 22.10.2024 12:24 [12:24:55]line Смена: 535 ФФД: 1.0 [12:24:55]line ЗНМ: 0300000091 [12:24:55]line РНМ: 0000000000091685 [12:24:55]line Версия ККМ: 001 [12:24:55]line ФМ: 0000000000871839 [12:24:55]line ФД: 228184 [12:24:55]line ФПД: 135099149284406 [12:24:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122457&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228184&fm=135099149284406&tin=02508201610067®Number=0000000000091685&sum=40000 [12:24:55]written 0, free lines is 4095 [12:24:55]OFD Sender: Processing packet 228184 [packets to send 38, broken 37] [12:24:55]ProducePacketName [12:24:55]name=ofd_packets/00228184 [12:24:55]OFD Sender: To server: pG, [12:24:55]CommunicateWithHost lk.salyk.kg:30040 [12:24:55]ConnectInit lk.salyk.kg [12:24:55]Connected sock=10 [12:24:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 21 12 07 01 BE A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 99 99 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 58 7B 03 00 35 04 06 00 7A DF 38 CD 74 36 0A 80 C4 64 03 92 C5 8D [12:24:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 C6 5A 47 00 39 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 58 7B 03 00 F4 03 04 00 91 44 17 67 B6 04 01 00 00 BD 85 E3 BC 50 ED A9 A3 [12:24:55]CommunicateWithHost err = 0 [12:24:55]CheckOFDResponse [12:24:55]1017 (14) - 77093643461234 [12:24:55]1041 (16) - 0000000000871839 [12:24:55]1040 (4) - 228184 [12:24:55]1012 (4) - 22.10.2024 06:22 [12:24:55]1206 (1) - 0 [12:24:55]OFD Sender: Remove packet 228184 [12:24:55]ProducePacketName [12:24:55]name=ofd_packets/00228184 [12:24:55]NVStorageDeleteData [12:24:55]Write to MH i2c: 01 00 00 BC 2D E9 [12:24:55]Write i2c OK [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: 01 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: 01 07 00 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: 01 07 00 BC 2D 00 00 00 00 00 CC 0C C8 [12:24:55]RasterBufferAndPrint [12:24:55]line [12:24:55]line [12:24:55]line [12:24:55]line [12:24:55]line [12:24:55]written 0, free lines is 3281 [12:24:55]MH_Cut [12:24:55]Write to MH i2c: D1 01 00 C3 2D 01 C2 [12:24:55]Write i2c OK [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: D1 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: D1 01 00 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: D1 01 00 C3 2D 00 C1 [12:24:55]Write to MH i2c: 01 00 00 C4 2D F1 [12:24:55]Write i2c OK [12:24:55]MH_I2C_Read... [12:24:56]OFD Sender: No OFD packet to send [12:24:56]*** Cut start [12:24:56]*** Partial cut [12:24:56]*** CUTSNS_PIN = 1 [12:24:56]*** CUTSNS_PIN = 0 [12:24:56]*** Brake cut motor [12:24:57]Read from MH i2c: 01 [12:24:57]MH_I2C_Read... [12:24:57]*** Stop cut motor [12:24:57]*** Cut end [12:24:57]Read from MH i2c: 01 07 00 [12:24:57]MH_I2C_Read... [12:24:57]Read from MH i2c: 01 07 00 C4 2D 00 00 00 00 00 FF 0F 06 [12:24:57]process_action close_receipt done [12:24:57]requested_data is exist [12:24:57]produce_requested_data [12:24:57]requested_item fm.sn is exist - process it [12:24:57]wFMCommunicate request_size=4 [12:24:57]MH_SAM_APDU [12:24:57]CAPDU: 80 11 00 00 [12:24:57]Write to MH i2c: E2 08 00 C5 2D 80 11 00 00 00 00 00 00 6C [12:24:57]Write i2c OK [12:24:57]MH_I2C_Read... [12:24:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:57]Read from MH i2c: E2 [12:24:57]MH_I2C_Read... [12:24:57]Read from MH i2c: E2 17 00 [12:24:57]MH_I2C_Read... [12:24:57]Read from MH i2c: E2 17 00 C5 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C3 [12:24:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:24:57]wFMCommunicate OK [12:24:57]requested_item fd.num is exist - process it [12:24:57]SAM_PROTO_GetFieldsCounters [12:24:57]wFMCommunicate request_size=4 [12:24:57]MH_SAM_APDU [12:24:57]CAPDU: 80 13 00 00 [12:24:57]Write to MH i2c: E2 08 00 C6 2D 80 13 00 00 00 00 00 00 6F [12:24:57]Write i2c OK [12:24:57]MH_I2C_Read... [12:24:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:57]Read from MH i2c: E2 [12:24:57]MH_I2C_Read... [12:24:57]Read from MH i2c: E2 62 00 [12:24:57]MH_I2C_Read... [12:24:57]Read from MH i2c: E2 62 00 C6 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 58 7B 03 00 0E 04 04 00 17 02 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 43 [12:24:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 58 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:24:57]wFMCommunicate OK [12:24:57]SAM_PROTO_GetFieldsCounters done [12:24:57]requested_item shift.num is exist - process it [12:24:57]requested_item shift.opened is exist - process it [12:24:57]req_shift_opened [12:24:57]FM_GetShiftState [12:24:57]SAM_PROTO_GetShiftState [12:24:57]wFMCommunicate request_size=4 [12:24:57]MH_SAM_APDU [12:24:57]CAPDU: 80 13 01 00 [12:24:57]Write to MH i2c: E2 08 00 C7 2D 80 13 01 00 00 00 00 00 71 [12:24:57]Write i2c OK [12:24:57]MH_I2C_Read... [12:24:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:57]Read from MH i2c: E2 [12:24:57]MH_I2C_Read... [12:24:57]Read from MH i2c: E2 0E 00 [12:24:57]MH_I2C_Read... [12:24:57]Read from MH i2c: E2 0E 00 C7 2D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 38 [12:24:57]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:24:57]wFMCommunicate OK [12:24:57]SAM_PROTO_GetShiftState done [12:24:57]FM_GetShiftState done [12:24:57]req_shift_opened done [12:24:57]requested_item shift.open_date is exist - process it [12:24:57]req_shift_open_date [12:24:57]req_shift_open_date done [12:24:57]produce_requested_data done [12:24:57]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228184,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [12:24:57]process_action_free close_receipt [12:24:57]json_value_free [12:24:57]json_value_free done [12:24:57]process_json_proto returns [12:24:57]Send response to host [12:24:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228184,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [12:24:57]free response buf [12:24:57]execute_script done [12:24:57]execute_script returns [12:24:57]free content buf [12:24:57]Sock 9.Close socket [12:24:57]Sock 9.Thread stoped [12:24:57]accept exits with 7 [12:24:57]New connection [12:24:57]New thread 3066994020 created [12:24:57]Thread 3067137380 joined [12:24:57]Waiting for new connection... [12:24:57] Sock 7.Parse request [12:24:57]Sock 7.Check first char [12:24:57]Sock 7.First char is OK [12:24:57]request: POST /json_proto HTTP/1.0 [12:24:57]Method: POST [12:24:57]URL: /json_proto [12:24:57]Method is POST - this is cgi request [12:24:57]url: /json_proto [12:24:57]query_string will be loaded in cgi processing [12:24:57]execute_cgi json_proto POST (null) [12:24:57]execute_cgi path=json_proto method=POST [12:24:57]POST find Content-Length [12:24:57]Host: 172.17.44.195:8080 [12:24:57]Content-Length: 791 [12:24:57]Content-Type: application/json [12:24:57] [12:24:57]POST finish read [12:24:57]Found Content-Length = 791 [12:24:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964624", "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" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53957", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:57]execute_script... [12: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)1964624", "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" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53957", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:57]POST & json_proto [12:24:57]process_json_proto [12:24:57]json parsed OK: [12:24:57]protocol is kg_v1.0 [12:24:57]action value=close_receipt [12:24:57]process_action close_receipt [12:24:57]cmd_close_receipt [12:24:57]MH_GetDate [12:24:57]Write to MH i2c: F0 00 00 C8 2D E4 [12:24:57]Write i2c OK [12:24:57]MH_I2C_Read... [12:24:57]Read from MH i2c: F0 [12:24:57]MH_I2C_Read... [12:24:57]Read from MH i2c: F0 09 00 [12:24:57]MH_I2C_Read... [12:24:57]Read from MH i2c: F0 09 00 C8 2D 00 9D 99 17 67 82 C9 CF 66 21 [12:24:57]GetLastDocTimeStamp 1729599897 [12:24:57]current date 1729599901 [12:24:57]FM_GetShiftState [12:24:57]SAM_PROTO_GetShiftState [12:24:57]wFMCommunicate request_size=4 [12:24:57]MH_SAM_APDU [12:24:57]CAPDU: 80 13 01 00 [12:24:57]Write to MH i2c: E2 08 00 C9 2D 80 13 01 00 00 00 00 00 73 [12:24:57]Write i2c OK [12:24:57]MH_I2C_Read... [12:24:57]Read from MH i2c: E2 [12:24:57]MH_I2C_Read... [12:24:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:57]Read from MH i2c: E2 0E 00 [12:24:57]MH_I2C_Read... [12:24:57]Read from MH i2c: E2 0E 00 C9 2D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 3A [12:24:57]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:24:57]wFMCommunicate OK [12:24:57]SAM_PROTO_GetShiftState done [12:24:57]FM_GetShiftState done [12:24:57]opened in 1729555538 [12:24:57]opened+sec_in_day 1729641938 [12:24:57]quantity*price = 0 [12:24:57]sum+1 = 1 [12:24:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 149 22.10.2024 12:25 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливная Карта 53957 ФМ: 0000000000871839 ФД: 228185 ФПД: 35227866797110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122501&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228185&fm=35227866797110&tin=02508201610067®Number=0000000000091685&sum=0 [12:24:59]StoreToDocumentArchive [12:24:59]shift 535 fd 228185 [12:24:59]save to /storage/0535/doc_00228185 [12:24:59]save last doc name /storage/0535/doc_00228185 to /storage/kkm_last_doc_name [12:24:59]save OK [12:24:59]Clear old archive folders... [12:24:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:24:59]tlvbuf is 00921F20 [12:24:59]SAM_PROTO_ClearQueue [12:24:59]wFMCommunicate request_size=4 [12:24:59]MH_SAM_APDU [12:24:59]CAPDU: 80 09 00 00 [12:24:59]Write to MH i2c: E2 08 00 D6 2D 80 09 00 00 00 00 00 00 75 [12:24:59]Write i2c OK [12:24:59]MH_I2C_Read... [12:24:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:59]Read from MH i2c: E2 [12:24:59]MH_I2C_Read... [12:24:59]Read from MH i2c: E2 03 00 [12:24:59]MH_I2C_Read... [12:24:59]Read from MH i2c: E2 03 00 D6 2D 00 90 00 77 [12:24:59]RAPDU: 90 00 [12:24:59]wFMCommunicate OK [12:24:59]SAM_PROTO_ClearQueue done [12:24:59]KKMCreateOFDPacket [12:24:59]OFDProtocolAddRootSTLVToBuf [12:24:59]FM_MakeSignedData [12:24:59]FM_MakeSignedData [12:24:59]SAM_PROTO_SignData [12:24:59]wFMCommunicate request_size=4 [12:24:59]MH_SAM_APDU [12:24:59]CAPDU: 80 0D 01 02 [12:24:59]Write to MH i2c: E2 08 00 D7 2D 80 0D 01 02 00 00 00 00 7D [12:24:59]Write i2c OK [12:24:59]MH_I2C_Read... [12:24:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:59]Read from MH i2c: E2 [12:24:59]MH_I2C_Read... [12:24:59]Read from MH i2c: E2 03 00 [12:24:59]MH_I2C_Read... [12:24:59]Read from MH i2c: E2 03 00 D7 2D 00 90 00 78 [12:24:59]RAPDU: 90 00 [12:24:59]wFMCommunicate OK [12:24:59]wFMCommunicate request_size=255 [12:24:59]MH_SAM_APDU [12:24: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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 9D 99 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 59 7B 03 00 35 04 06 00 20 0A 20 7C [12:24:59]Write to MH i2c: E2 02 01 D8 2D 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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 9D 99 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 59 7B 03 00 35 04 06 00 20 0A 20 7C 00 00 08 [12:24:59]Write i2c OK [12:24:59]MH_I2C_Read... [12:24:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:59]Read from MH i2c: E2 [12:24:59]MH_I2C_Read... [12:24:59]Read from MH i2c: E2 03 00 [12:24:59]MH_I2C_Read... [12:24:59]Read from MH i2c: E2 03 00 D8 2D 00 90 00 79 [12:24:59]RAPDU: 90 00 [12:24:59]wFMCommunicate OK [12:24:59]wFMCommunicate request_size=7 [12:24:59]MH_SAM_APDU [12:24:59]CAPDU: 80 0D 02 02 02 94 36 [12:24:59]Write to MH i2c: E2 0A 00 D9 2D 80 0D 02 02 02 00 94 36 00 00 4E [12:24:59]Write i2c OK [12:24:59]MH_I2C_Read... [12:24:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:59]Read from MH i2c: E2 [12:24:59]MH_I2C_Read... [12:24:59]Read from MH i2c: E2 03 00 [12:24:59]MH_I2C_Read... [12:24:59]Read from MH i2c: E2 03 00 D9 2D 00 90 00 7A [12:24:59]RAPDU: 90 00 [12:24:59]wFMCommunicate OK [12:24:59]wFMCommunicate request_size=4 [12:24:59]MH_SAM_APDU [12:24:59]CAPDU: 80 0D 03 02 [12:24:59]Write to MH i2c: E2 08 00 DA 2D 80 0D 03 02 00 00 00 00 82 [12:24:59]Write i2c OK [12:24:59]MH_I2C_Read... [12:24:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:59]Read from MH i2c: E2 [12:24:59]MH_I2C_Read... [12:24:59]Read from MH i2c: E2 0B 00 [12:24:59]MH_I2C_Read... [12:24:59]Read from MH i2c: E2 0B 00 DA 2D 00 0B 05 B4 E5 49 72 02 28 90 00 11 [12:24:59]RAPDU: 0B 05 B4 E5 49 72 02 28 90 00 [12:24:59]wFMCommunicate OK [12:24:59]SAM_PROTO_SignData done [12:24:59]FM_MakeSignedData done [12:24:59]CreateOFDProtocolMessage [12:24:59]wFMCommunicate request_size=4 [12:24:59]MH_SAM_APDU [12:24:59]CAPDU: 80 11 00 00 [12:24:59]Write to MH i2c: E2 08 00 DB 2D 80 11 00 00 00 00 00 00 82 [12:24:59]Write i2c OK [12:24:59]MH_I2C_Read... [12:24:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:59]Read from MH i2c: E2 [12:24:59]MH_I2C_Read... [12:24:59]Read from MH i2c: E2 17 00 [12:24:59]MH_I2C_Read... [12:24:59]Read from MH i2c: E2 17 00 DB 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D9 [12:24:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:24:59]wFMCommunicate OK [12:24:59]CreateOFDProtocolMessage done [12:24:59]OFDSenderStorePacket 228185 [12:24:59]StoreOFDPacket docnum=228185 [12:24:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 15 7A 04 01 59 13 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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 9D 99 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 59 7B 03 00 35 04 06 00 20 0A 20 7C 94 36 0B 05 B4 E5 49 72 02 28 [12:24:59]CheckFolder [12:24:59]dirname=/storage/ofd_packets [12:24:59]CheckFolder done [12:24:59]ProducePacketName [12:24:59]name=ofd_packets/00228185 [12:24:59]NVStorageSaveData ofd_packets/00228185 [12:24:59]File name is /storage/ofd_packets/00228185 [12:24:59]Write 298 bytes [12:24:59]NVStorageSaveData done [12:24:59]OFDSenderStorePacket done [12:24:59]KKMCreateOFDPacket done [12:24:59]NVStorageSaveData kkm_last_timestamp [12:24:59]File name is /storage/kkm_last_timestamp [12:24:59]Write 4 bytes [12:24:59]NVStorageSaveData done [12:24:59]ExternCall_PrintAddStr [12:24:59]wPrintStart [12:24:59]Write to MH i2c: 01 00 00 DC 2D 09 [12:24:59]Write i2c OK [12:24:59]MH_I2C_Read... [12:24:59]Read from MH i2c: 01 [12:24:59]MH_I2C_Read... [12:24:59]Read from MH i2c: 01 07 00 [12:24:59]MH_I2C_Read... [12:24:59]Read from MH i2c: 01 07 00 DC 2D 00 00 00 00 00 FF 0F 1E [12:24:59]RasterBufferAndPrint [12:24:59]line Счет N : (1)1964624 [12:24:59]line ИНН: 02508201610067 [12:24:59]line Контрольно-Кассовый Чек [12:24:59]line ПРОДАЖА [12:24:59]line ТРК (МРК, ГНК) : 11 [12:24:59]line Товар: 2710194210 [12:24:59]line ДТ-К-5 [12:24:59]line 100.000 * 0.00 [12:24:59]line = 0.00 [12:24:59]line НДС 12% НСП 1% [12:24:59]line > о реализуемом товаре [12:24:59]line ИТОГО: 0.00 [12:24:59]line НСП 1% : 0.00 [12:24:59]line НДС 12% : 0.00 [12:24:59]line Наличными: 0.00 [12:24:59]line Безнал.: 0.00 [12:24:59]line Место: АЗС № 133 "Партнер Нефть" [12:24:59]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:24:59]line СНО: Общий режим [12:24:59]line Чек 149 22.10.2024 12:25 [12:24:59]line Смена: 535 ФФД: 1.0 [12:24:59]line ЗНМ: 0300000091 [12:25:00]line РНМ: 0000000000091685 [12:25:00]line Версия ККМ: 001 [12:25:00]line Талоны: Топливная Карта [12:25:00]line 53957 [12:25:00]line ФМ: 0000000000871839 [12:25:00]line ФД: 228185 [12:25:00]line ФПД: 35227866797110 [12:25:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122501&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228185&fm=35227866797110&tin=02508201610067®Number=0000000000091685&sum=0 [12:25:00]OFD Sender: Processing packet 228185 [packets to send 38, broken 37] [12:25:00]ProducePacketName [12:25:00]name=ofd_packets/00228185 [12:25:00]OFD Sender: To server: pG, [12:25:00]CommunicateWithHost lk.salyk.kg:30040 [12:25:00]ConnectInit lk.salyk.kg [12:25:00]written 0, free lines is 4095 [12:25:00]Connected sock=10 [12:25:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 15 7A 04 01 59 13 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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 9D 99 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 59 7B 03 00 35 04 06 00 20 0A 20 7C 94 36 0B 05 B4 E5 49 72 02 28 [12:25:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 1B E1 47 00 CE 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 38 37 31 38 33 39 10 04 04 00 59 7B 03 00 F4 03 04 00 96 44 17 67 B6 04 01 00 00 07 02 45 E6 C4 0B 7B F8 [12:25:00]CommunicateWithHost err = 0 [12:25:00]CheckOFDResponse [12:25:00]1017 (14) - 77093643461234 [12:25:00]1041 (16) - 0000000000871839 [12:25:00]1040 (4) - 228185 [12:25:00]1012 (4) - 22.10.2024 06:22 [12:25:00]1206 (1) - 0 [12:25:00]OFD Sender: Remove packet 228185 [12:25:00]ProducePacketName [12:25:00]name=ofd_packets/00228185 [12:25:00]NVStorageDeleteData [12:25:00]Write to MH i2c: 01 00 00 05 2E 33 [12:25:00]Write i2c OK [12:25:00]MH_I2C_Read... [12:25:00]Read from MH i2c: 01 [12:25:00]MH_I2C_Read... [12:25:00]Read from MH i2c: 01 07 00 [12:25:00]MH_I2C_Read... [12:25:00]Read from MH i2c: 01 07 00 05 2E 00 00 00 00 00 D5 0C 1B [12:25:00]RasterBufferAndPrint [12:25:00]line [12:25:00]line [12:25:00]line [12:25:00]line [12:25:00]line [12:25:00]written 0, free lines is 3299 [12:25:00]MH_Cut [12:25:00]Write to MH i2c: D1 01 00 0C 2E 01 0C [12:25:00]Write i2c OK [12:25:00]MH_I2C_Read... [12:25:00]Read from MH i2c: D1 [12:25:00]MH_I2C_Read... [12:25:00]Read from MH i2c: D1 01 00 [12:25:00]MH_I2C_Read... [12:25:00]Read from MH i2c: D1 01 00 0C 2E 00 0B [12:25:00]Write to MH i2c: 01 00 00 0D 2E 3B [12:25:00]Write i2c OK [12:25:00]MH_I2C_Read... [12:25:00]OFD Sender: No OFD packet to send [12:25:01]*** Cut start [12:25:01]*** Partial cut [12:25:01]*** CUTSNS_PIN = 1 [12:25:01]*** CUTSNS_PIN = 0 [12:25:01]*** Brake cut motor [12:25:01]Read from MH i2c: 01 [12:25:02]MH_I2C_Read... [12:25:02]*** Stop cut motor [12:25:02]*** Cut end [12:25:02]Read from MH i2c: 01 07 00 [12:25:02]MH_I2C_Read... [12:25:02]Read from MH i2c: 01 07 00 0D 2E 00 00 00 00 00 FF 0F 50 [12:25:02]process_action close_receipt done [12:25:02]requested_data is exist [12:25:02]produce_requested_data [12:25:02]requested_item fm.sn is exist - process it [12:25:02]wFMCommunicate request_size=4 [12:25:02]MH_SAM_APDU [12:25:02]CAPDU: 80 11 00 00 [12:25:02]Write to MH i2c: E2 08 00 0E 2E 80 11 00 00 00 00 00 00 B6 [12:25:02]Write i2c OK [12:25:02]MH_I2C_Read... [12:25:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:02]Read from MH i2c: E2 [12:25:02]MH_I2C_Read... [12:25:02]Read from MH i2c: E2 17 00 [12:25:02]MH_I2C_Read... [12:25:02]Read from MH i2c: E2 17 00 0E 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0D [12:25:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:25:02]wFMCommunicate OK [12:25:02]requested_item fd.num is exist - process it [12:25:02]SAM_PROTO_GetFieldsCounters [12:25:02]wFMCommunicate request_size=4 [12:25:02]MH_SAM_APDU [12:25:02]CAPDU: 80 13 00 00 [12:25:02]Write to MH i2c: E2 08 00 0F 2E 80 13 00 00 00 00 00 00 B9 [12:25:02]Write i2c OK [12:25:02]MH_I2C_Read... [12:25:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:02]Read from MH i2c: E2 [12:25:02]MH_I2C_Read... [12:25:02]Read from MH i2c: E2 62 00 [12:25:02]MH_I2C_Read... [12:25:02]Read from MH i2c: E2 62 00 0F 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 59 7B 03 00 0E 04 04 00 17 02 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 91 [12:25:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 59 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:25:02]wFMCommunicate OK [12:25:02]SAM_PROTO_GetFieldsCounters done [12:25:02]requested_item shift.num is exist - process it [12:25:02]requested_item shift.opened is exist - process it [12:25:02]req_shift_opened [12:25:02]FM_GetShiftState [12:25:02]SAM_PROTO_GetShiftState [12:25:02]wFMCommunicate request_size=4 [12:25:02]MH_SAM_APDU [12:25:02]CAPDU: 80 13 01 00 [12:25:02]Write to MH i2c: E2 08 00 10 2E 80 13 01 00 00 00 00 00 BB [12:25:02]Write i2c OK [12:25:02]MH_I2C_Read... [12:25:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:02]Read from MH i2c: E2 [12:25:02]MH_I2C_Read... [12:25:02]Read from MH i2c: E2 0E 00 [12:25:02]MH_I2C_Read... [12:25:02]Read from MH i2c: E2 0E 00 10 2E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 82 [12:25:02]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:25:02]wFMCommunicate OK [12:25:02]SAM_PROTO_GetShiftState done [12:25:02]FM_GetShiftState done [12:25:02]req_shift_opened done [12:25:02]requested_item shift.open_date is exist - process it [12:25:02]req_shift_open_date [12:25:02]req_shift_open_date done [12:25:02]produce_requested_data done [12:25:02]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228185,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [12:25:02]process_action_free close_receipt [12:25:02]json_value_free [12:25:02]json_value_free done [12:25:02]process_json_proto returns [12:25:02]Send response to host [12:25:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228185,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [12:25:02]free response buf [12:25:02]execute_script done [12:25:02]execute_script returns [12:25:02]free content buf [12:25:02]Sock 7.Close socket [12:25:02]Sock 7.Thread stoped [12:25:06]OFD Sender: No OFD packet to send [12:25:11]OFD Sender: No OFD packet to send [12:25:16]OFD Sender: No OFD packet to send [12:25:21]OFD Sender: No OFD packet to send [12:25:26]OFD Sender: No OFD packet to send [12:25:31]OFD Sender: No OFD packet to send [12:25:36]OFD Sender: No OFD packet to send [12:25:41]OFD Sender: No OFD packet to send [12:25:44]accept exits with 9 [12:25:44]New connection [12:25:44]New thread 3067137380 created [12:25:44]Thread 3066994020 joined [12:25:44]Waiting for new connection... [12:25:44] Sock 9.Parse request [12:25:44]Sock 9.Check first char [12:25:44]Sock 9.First char is OK [12:25:44]request: POST /json_proto HTTP/1.0 [12:25:44]Method: POST [12:25:44]URL: /json_proto [12:25:44]Method is POST - this is cgi request [12:25:44]url: /json_proto [12:25:44]query_string will be loaded in cgi processing [12:25:44]execute_cgi json_proto POST (null) [12:25:44]execute_cgi path=json_proto method=POST [12:25:44]POST find Content-Length [12:25:44]Host: 172.17.44.195:8080 [12:25:44]Content-Length: 678 [12:25:44]Content-Type: application/json [12:25:44] [12:25:44]POST finish read [12:25:44]Found Content-Length = 678 [12:25:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964628", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:25:44]execute_script... [12:25: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)1964628", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:25:44]POST & json_proto [12:25:44]process_json_proto [12:25:44]json parsed OK: [12:25:44]protocol is kg_v1.0 [12:25:44]action value=close_receipt [12:25:44]process_action close_receipt [12:25:44]cmd_close_receipt [12:25:44]MH_GetDate [12:25:44]Write to MH i2c: F0 00 00 11 2E 2E [12:25:44]Write i2c OK [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: F0 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: F0 09 00 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: F0 09 00 11 2E 00 CC 99 17 67 82 C9 CF 66 9A [12:25:44]GetLastDocTimeStamp 1729599901 [12:25:44]current date 1729599948 [12:25:44]FM_GetShiftState [12:25:44]SAM_PROTO_GetShiftState [12:25:44]wFMCommunicate request_size=4 [12:25:44]MH_SAM_APDU [12:25:44]CAPDU: 80 13 01 00 [12:25:44]Write to MH i2c: E2 08 00 12 2E 80 13 01 00 00 00 00 00 BD [12:25:44]Write i2c OK [12:25:44]MH_I2C_Read... [12:25:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:44]Read from MH i2c: E2 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: E2 0E 00 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: E2 0E 00 12 2E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 84 [12:25:44]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:25:44]wFMCommunicate OK [12:25:44]SAM_PROTO_GetShiftState done [12:25:44]FM_GetShiftState done [12:25:44]opened in 1729555538 [12:25:44]opened+sec_in_day 1729641938 [12:25:44]quantity*price = 50041 [12:25:44]sum+1 = 50042 [12:25:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 150 22.10.2024 12:25 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228186 ФПД: 12119097015492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122548&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228186&fm=12119097015492&tin=02508201610067®Number=0000000000091685&sum=50000 [12:25:45]StoreToDocumentArchive [12:25:45]shift 535 fd 228186 [12:25:45]save to /storage/0535/doc_00228186 [12:25:45]save last doc name /storage/0535/doc_00228186 to /storage/kkm_last_doc_name [12:25:45]save OK [12:25:45]Clear old archive folders... [12:25:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:25:45]tlvbuf is 00A812C0 [12:25:45]SAM_PROTO_ClearQueue [12:25:45]wFMCommunicate request_size=4 [12:25:45]MH_SAM_APDU [12:25:45]CAPDU: 80 09 00 00 [12:25:45]Write to MH i2c: E2 08 00 1F 2E 80 09 00 00 00 00 00 00 BF [12:25:45]Write i2c OK [12:25:45]MH_I2C_Read... [12:25:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:45]Read from MH i2c: E2 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: E2 03 00 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: E2 03 00 1F 2E 00 90 00 C1 [12:25:45]RAPDU: 90 00 [12:25:45]wFMCommunicate OK [12:25:45]SAM_PROTO_ClearQueue done [12:25:45]KKMCreateOFDPacket [12:25:45]OFDProtocolAddRootSTLVToBuf [12:25:45]FM_MakeSignedData [12:25:45]FM_MakeSignedData [12:25:45]SAM_PROTO_SignData [12:25:45]wFMCommunicate request_size=4 [12:25:45]MH_SAM_APDU [12:25:45]CAPDU: 80 0D 01 02 [12:25:45]Write to MH i2c: E2 08 00 20 2E 80 0D 01 02 00 00 00 00 C7 [12:25:45]Write i2c OK [12:25:45]MH_I2C_Read... [12:25:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:45]Read from MH i2c: E2 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: E2 03 00 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: E2 03 00 20 2E 00 90 00 C2 [12:25:45]RAPDU: 90 00 [12:25:45]wFMCommunicate OK [12:25:45]wFMCommunicate request_size=255 [12:25:45]MH_SAM_APDU [12:25: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 CC 99 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5A 7B 03 00 35 04 06 00 0B [12:25:45]Write to MH i2c: E2 02 01 21 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 CC 99 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5A 7B 03 00 35 04 06 00 0B 00 00 D3 [12:25:45]Write i2c OK [12:25:45]MH_I2C_Read... [12:25:46]OFD Sender: No OFD packet to send [12:25:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:46]Read from MH i2c: E2 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: E2 03 00 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: E2 03 00 21 2E 00 90 00 C3 [12:25:46]RAPDU: 90 00 [12:25:46]wFMCommunicate OK [12:25:46]wFMCommunicate request_size=10 [12:25:46]MH_SAM_APDU [12:25:46]CAPDU: 80 0D 02 02 05 05 B2 78 FC C4 [12:25:46]Write to MH i2c: E2 0D 00 22 2E 80 0D 02 02 05 00 05 B2 78 FC C4 00 00 C3 [12:25:46]Write i2c OK [12:25:46]MH_I2C_Read... [12:25:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:46]Read from MH i2c: E2 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: E2 03 00 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: E2 03 00 22 2E 00 90 00 C4 [12:25:46]RAPDU: 90 00 [12:25:46]wFMCommunicate OK [12:25:46]wFMCommunicate request_size=4 [12:25:46]MH_SAM_APDU [12:25:46]CAPDU: 80 0D 03 02 [12:25:46]Write to MH i2c: E2 08 00 23 2E 80 0D 03 02 00 00 00 00 CC [12:25:46]Write i2c OK [12:25:46]MH_I2C_Read... [12:25:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:46]Read from MH i2c: E2 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: E2 0B 00 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: E2 0B 00 23 2E 00 47 BF 86 7D F9 FD EE AB 90 00 65 [12:25:46]RAPDU: 47 BF 86 7D F9 FD EE AB 90 00 [12:25:46]wFMCommunicate OK [12:25:46]SAM_PROTO_SignData done [12:25:46]FM_MakeSignedData done [12:25:46]CreateOFDProtocolMessage [12:25:46]wFMCommunicate request_size=4 [12:25:46]MH_SAM_APDU [12:25:46]CAPDU: 80 11 00 00 [12:25:46]Write to MH i2c: E2 08 00 24 2E 80 11 00 00 00 00 00 00 CC [12:25:46]Write i2c OK [12:25:46]MH_I2C_Read... [12:25:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:46]Read from MH i2c: E2 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: E2 17 00 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: E2 17 00 24 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 23 [12:25:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:25:46]wFMCommunicate OK [12:25:46]CreateOFDProtocolMessage done [12:25:46]OFDSenderStorePacket 228186 [12:25:46]StoreOFDPacket docnum=228186 [12:25:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B4 99 07 01 39 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 CC 99 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5A 7B 03 00 35 04 06 00 0B 05 B2 78 FC C4 47 BF 86 7D F9 FD EE AB [12:25:46]CheckFolder [12:25:46]dirname=/storage/ofd_packets [12:25:46]CheckFolder done [12:25:46]ProducePacketName [12:25:46]name=ofd_packets/00228186 [12:25:46]NVStorageSaveData ofd_packets/00228186 [12:25:46]File name is /storage/ofd_packets/00228186 [12:25:46]Write 301 bytes [12:25:46]NVStorageSaveData done [12:25:46]OFDSenderStorePacket done [12:25:46]KKMCreateOFDPacket done [12:25:46]NVStorageSaveData kkm_last_timestamp [12:25:46]File name is /storage/kkm_last_timestamp [12:25:46]Write 4 bytes [12:25:46]NVStorageSaveData done [12:25:46]ExternCall_PrintAddStr [12:25:46]wPrintStart [12:25:46]Write to MH i2c: 01 00 00 25 2E 53 [12:25:46]Write i2c OK [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: 01 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: 01 07 00 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: 01 07 00 25 2E 00 00 00 00 00 FF 0F 68 [12:25:46]RasterBufferAndPrint [12:25:46]line Счет N : (1)1964628 [12:25:46]line ИНН: 02508201610067 [12:25:46]line Контрольно-Кассовый Чек [12:25:46]line ПРОДАЖА [12:25:46]line ТРК (МРК, ГНК) : 53 [12:25:46]line Товар: 2710124130 [12:25:46]line Аи-92-К-5 [12:25:46]line 7.480 * 66.90 [12:25:46]line = 500.41 [12:25:46]line НДС 12% НСП 1% [12:25:46]line > о реализуемом товаре [12:25:46]line ОКРУГЛЕНИЕ: -0.41 [12:25:46]line ИТОГО: 500.00 [12:25:46]line Внесено: 500.00 [12:25:46]line СДАЧА: 0.00 [12:25:46]line НСП 1% : 4.43 [12:25:46]line НДС 12% : 53.14 [12:25:46]line Наличными: 500.00 [12:25:46]line Безнал.: 0.00 [12:25:46]line Место: АЗС № 133 "Партнер Нефть" [12:25:46]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:25:46]line СНО: Общий режим [12:25:46]line Чек 150 22.10.2024 12:25 [12:25:46]line Смена: 535 ФФД: 1.0 [12:25:46]line ЗНМ: 0300000091 [12:25:46]line РНМ: 0000000000091685 [12:25:46]line Версия ККМ: 001 [12:25:46]line ФМ: 0000000000871839 [12:25:46]line ФД: 228186 [12:25:46]line ФПД: 12119097015492 [12:25:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122548&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228186&fm=12119097015492&tin=02508201610067®Number=0000000000091685&sum=50000 [12:25:46]OFD Sender: Processing packet 228186 [packets to send 38, broken 37] [12:25:46]ProducePacketName [12:25:46]name=ofd_packets/00228186 [12:25:46]OFD Sender: To server: pG, [12:25:46]CommunicateWithHost lk.salyk.kg:30040 [12:25:46]ConnectInit lk.salyk.kg [12:25:46]written 0, free lines is 4095 [12:25:46]Connected sock=10 [12:25:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B4 99 07 01 39 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 CC 99 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5A 7B 03 00 35 04 06 00 0B 05 B2 78 FC C4 47 BF 86 7D F9 FD EE AB [12:25:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 C6 5A 47 00 39 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5A 7B 03 00 F4 03 04 00 C5 44 17 67 B6 04 01 00 00 D0 D3 0D 41 82 12 BF 6E [12:25:47]CommunicateWithHost err = 0 [12:25:47]CheckOFDResponse [12:25:47]1017 (14) - 77093643461234 [12:25:47]1041 (16) - 0000000000871839 [12:25:47]1040 (4) - 228186 [12:25:47]1012 (4) - 22.10.2024 06:23 [12:25:47]1206 (1) - 0 [12:25:47]OFD Sender: Remove packet 228186 [12:25:47]ProducePacketName [12:25:47]name=ofd_packets/00228186 [12:25:47]NVStorageDeleteData [12:25:47]Write to MH i2c: 01 00 00 4F 2E 7D [12:25:47]Write i2c OK [12:25:47]MH_I2C_Read... [12:25:47]Read from MH i2c: 01 [12:25:47]MH_I2C_Read... [12:25:47]Read from MH i2c: 01 07 00 [12:25:47]MH_I2C_Read... [12:25:47]Read from MH i2c: 01 07 00 4F 2E 00 00 00 00 00 BE 0C 4E [12:25:47]RasterBufferAndPrint [12:25:47]line [12:25:47]line [12:25:47]line [12:25:47]line [12:25:47]line [12:25:47]written 0, free lines is 3268 [12:25:47]MH_Cut [12:25:47]Write to MH i2c: D1 01 00 56 2E 01 56 [12:25:47]Write i2c OK [12:25:47]MH_I2C_Read... [12:25:47]Read from MH i2c: D1 [12:25:47]MH_I2C_Read... [12:25:47]Read from MH i2c: D1 01 00 [12:25:47]MH_I2C_Read... [12:25:47]Read from MH i2c: D1 01 00 56 2E 00 55 [12:25:47]Write to MH i2c: 01 00 00 57 2E 85 [12:25:47]Write i2c OK [12:25:47]MH_I2C_Read... [12:25:47]OFD Sender: No OFD packet to send [12:25:47]*** Cut start [12:25:47]*** Partial cut [12:25:47]*** CUTSNS_PIN = 1 [12:25:48]*** CUTSNS_PIN = 0 [12:25:48]*** Brake cut motor [12:25:48]Read from MH i2c: 01 [12:25:48]MH_I2C_Read... [12:25:48]*** Stop cut motor [12:25:48]*** Cut end [12:25:48]Read from MH i2c: 01 07 00 [12:25:48]MH_I2C_Read... [12:25:48]Read from MH i2c: 01 07 00 57 2E 00 00 00 00 00 FF 0F 9A [12:25:48]process_action close_receipt done [12:25:48]requested_data is exist [12:25:48]produce_requested_data [12:25:48]requested_item fm.sn is exist - process it [12:25:48]wFMCommunicate request_size=4 [12:25:48]MH_SAM_APDU [12:25:48]CAPDU: 80 11 00 00 [12:25:48]Write to MH i2c: E2 08 00 58 2E 80 11 00 00 00 00 00 00 00 [12:25:48]Write i2c OK [12:25:48]MH_I2C_Read... [12:25:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:48]Read from MH i2c: E2 [12:25:48]MH_I2C_Read... [12:25:48]Read from MH i2c: E2 17 00 [12:25:48]MH_I2C_Read... [12:25:48]Read from MH i2c: E2 17 00 58 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 57 [12:25:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:25:48]wFMCommunicate OK [12:25:48]requested_item fd.num is exist - process it [12:25:48]SAM_PROTO_GetFieldsCounters [12:25:48]wFMCommunicate request_size=4 [12:25:48]MH_SAM_APDU [12:25:48]CAPDU: 80 13 00 00 [12:25:48]Write to MH i2c: E2 08 00 59 2E 80 13 00 00 00 00 00 00 03 [12:25:48]Write i2c OK [12:25:48]MH_I2C_Read... [12:25:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:48]Read from MH i2c: E2 [12:25:48]MH_I2C_Read... [12:25:48]Read from MH i2c: E2 62 00 [12:25:48]MH_I2C_Read... [12:25:48]Read from MH i2c: E2 62 00 59 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5A 7B 03 00 0E 04 04 00 17 02 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 DF [12:25:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5A 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:25:48]wFMCommunicate OK [12:25:48]SAM_PROTO_GetFieldsCounters done [12:25:48]requested_item shift.num is exist - process it [12:25:48]requested_item shift.opened is exist - process it [12:25:48]req_shift_opened [12:25:48]FM_GetShiftState [12:25:48]SAM_PROTO_GetShiftState [12:25:48]wFMCommunicate request_size=4 [12:25:48]MH_SAM_APDU [12:25:48]CAPDU: 80 13 01 00 [12:25:48]Write to MH i2c: E2 08 00 5A 2E 80 13 01 00 00 00 00 00 05 [12:25:48]Write i2c OK [12:25:48]MH_I2C_Read... [12:25:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:48]Read from MH i2c: E2 [12:25:48]MH_I2C_Read... [12:25:48]Read from MH i2c: E2 0E 00 [12:25:48]MH_I2C_Read... [12:25:48]Read from MH i2c: E2 0E 00 5A 2E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 CC [12:25:48]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:25:48]wFMCommunicate OK [12:25:48]SAM_PROTO_GetShiftState done [12:25:48]FM_GetShiftState done [12:25:48]req_shift_opened done [12:25:48]requested_item shift.open_date is exist - process it [12:25:48]req_shift_open_date [12:25:48]req_shift_open_date done [12:25:48]produce_requested_data done [12:25:48]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228186,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [12:25:48]process_action_free close_receipt [12:25:48]json_value_free [12:25:48]json_value_free done [12:25:48]process_json_proto returns [12:25:48]Send response to host [12:25:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228186,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [12:25:48]free response buf [12:25:48]execute_script done [12:25:48]execute_script returns [12:25:48]free content buf [12:25:48]Sock 9.Close socket [12:25:48]Sock 9.Thread stoped [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:55]accept exits with 7 [12:26:55]New connection [12:26:55]New thread 3066994020 created [12:26:55]Thread 3067137380 joined [12:26:55]Waiting for new connection... [12:26:55] Sock 7.Parse request [12:26:55]Sock 7.Check first char [12:26:55]Sock 7.First char is OK [12:26:55]request: POST /json_proto HTTP/1.0 [12:26:55]Method: POST [12:26:55]URL: /json_proto [12:26:55]Method is POST - this is cgi request [12:26:55]url: /json_proto [12:26:55]query_string will be loaded in cgi processing [12:26:55]execute_cgi json_proto POST (null) [12:26:55]execute_cgi path=json_proto method=POST [12:26:55]POST find Content-Length [12:26:55]Host: 172.17.44.195:8080 [12:26:55]Content-Length: 660 [12:26:55]Content-Type: application/json [12:26:55] [12:26:55]POST finish read [12:26:55]Found Content-Length = 660 [12:26:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "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:26:55]execute_script... [12:26: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)1964629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "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:26:55]POST & json_proto [12:26:55]process_json_proto [12:26:55]json parsed OK: [12:26:55]protocol is kg_v1.0 [12:26:55]action value=close_receipt [12:26:55]process_action close_receipt [12:26:55]cmd_close_receipt [12:26:55]MH_GetDate [12:26:55]Write to MH i2c: F0 00 00 5B 2E 78 [12:26:55]Write i2c OK [12:26:55]MH_I2C_Read... [12:26:55]Read from MH i2c: F0 [12:26:55]MH_I2C_Read... [12:26:55]Read from MH i2c: F0 09 00 [12:26:55]MH_I2C_Read... [12:26:55]Read from MH i2c: F0 09 00 5B 2E 00 13 9A 17 67 82 C9 CF 66 2C [12:26:55]GetLastDocTimeStamp 1729599948 [12:26:55]current date 1729600019 [12:26:55]FM_GetShiftState [12:26:55]SAM_PROTO_GetShiftState [12:26:55]wFMCommunicate request_size=4 [12:26:55]MH_SAM_APDU [12:26:55]CAPDU: 80 13 01 00 [12:26:55]Write to MH i2c: E2 08 00 5C 2E 80 13 01 00 00 00 00 00 07 [12:26:55]Write i2c OK [12:26:55]MH_I2C_Read... [12:26:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:55]Read from MH i2c: E2 [12:26:55]MH_I2C_Read... [12:26:55]Read from MH i2c: E2 0E 00 [12:26:55]MH_I2C_Read... [12:26:55]Read from MH i2c: E2 0E 00 5C 2E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 CE [12:26:55]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:26:55]wFMCommunicate OK [12:26:55]SAM_PROTO_GetShiftState done [12:26:55]FM_GetShiftState done [12:26:55]opened in 1729555538 [12:26:55]opened+sec_in_day 1729641938 [12:26:55]quantity*price = 70041 [12:26:55]sum+1 = 70043 [12:26:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 151 22.10.2024 12:26 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228187 ФПД: 128233065391118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122659&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228187&fm=128233065391118&tin=02508201610067®Number=0000000000091685&sum=70000 [12:26:57]StoreToDocumentArchive [12:26:57]shift 535 fd 228187 [12:26:57]save to /storage/0535/doc_00228187 [12:26:57]save last doc name /storage/0535/doc_00228187 to /storage/kkm_last_doc_name [12:26:57]save OK [12:26:57]Clear old archive folders... [12:26:57]ProcessDocumentItem done err = 0, tmpTLVsize=244 [12:26:57]tlvbuf is 00A81320 [12:26:57]SAM_PROTO_ClearQueue [12:26:57]wFMCommunicate request_size=4 [12:26:57]MH_SAM_APDU [12:26:57]CAPDU: 80 09 00 00 [12:26:57]Write to MH i2c: E2 08 00 69 2E 80 09 00 00 00 00 00 00 09 [12:26:57]Write i2c OK [12:26:57]MH_I2C_Read... [12:26:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:26:57]Read from MH i2c: E2 [12:26:57]MH_I2C_Read... [12:26:57]Read from MH i2c: E2 03 00 [12:26:57]MH_I2C_Read... [12:26:57]Read from MH i2c: E2 03 00 69 2E 00 90 00 0B [12:26:57]RAPDU: 90 00 [12:26:57]wFMCommunicate OK [12:26:57]SAM_PROTO_ClearQueue done [12:26:57]KKMCreateOFDPacket [12:26:57]OFDProtocolAddRootSTLVToBuf [12:26:57]FM_MakeSignedData [12:26:57]FM_MakeSignedData [12:26:57]SAM_PROTO_SignData [12:26:57]wFMCommunicate request_size=4 [12:26:57]MH_SAM_APDU [12:26:57]CAPDU: 80 0D 01 02 [12:26:57]Write to MH i2c: E2 08 00 6A 2E 80 0D 01 02 00 00 00 00 11 [12:26:57]Write i2c OK [12:26:57]MH_I2C_Read... [12:26:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:26:57]Read from MH i2c: E2 [12:26:57]MH_I2C_Read... [12:26:57]Read from MH i2c: E2 03 00 [12:26:57]MH_I2C_Read... [12:26:57]Read from MH i2c: E2 03 00 6A 2E 00 90 00 0C [12:26:57]RAPDU: 90 00 [12:26:57]wFMCommunicate OK [12:26:57]wFMCommunicate request_size=253 [12:26:57]MH_SAM_APDU [12:26:57]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 97 00 00 00 F4 03 04 00 13 9A 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5B 7B 03 00 35 04 06 00 74 A0 96 4F A4 0E [12:26:57]Write to MH i2c: E2 00 01 6B 2E 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 97 00 00 00 F4 03 04 00 13 9A 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5B 7B 03 00 35 04 06 00 74 A0 96 4F A4 0E 00 00 73 [12:26:57]Write i2c OK [12:26:57]MH_I2C_Read... [12:26:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:57]Read from MH i2c: E2 [12:26:57]MH_I2C_Read... [12:26:57]Read from MH i2c: E2 03 00 [12:26:57]MH_I2C_Read... [12:26:57]Read from MH i2c: E2 03 00 6B 2E 00 90 00 0D [12:26:57]RAPDU: 90 00 [12:26:57]wFMCommunicate OK [12:26:57]wFMCommunicate request_size=4 [12:26:57]MH_SAM_APDU [12:26:57]CAPDU: 80 0D 03 02 [12:26:57]Write to MH i2c: E2 08 00 6C 2E 80 0D 03 02 00 00 00 00 15 [12:26:57]Write i2c OK [12:26:57]MH_I2C_Read... [12:26:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:26:57]Read from MH i2c: E2 [12:26:57]MH_I2C_Read... [12:26:57]Read from MH i2c: E2 0B 00 [12:26:57]MH_I2C_Read... [12:26:57]Read from MH i2c: E2 0B 00 6C 2E 00 E1 D9 7E 03 56 81 16 9B 90 00 D9 [12:26:57]RAPDU: E1 D9 7E 03 56 81 16 9B 90 00 [12:26:57]wFMCommunicate OK [12:26:57]SAM_PROTO_SignData done [12:26:57]FM_MakeSignedData done [12:26:57]CreateOFDProtocolMessage [12:26:57]wFMCommunicate request_size=4 [12:26:57]MH_SAM_APDU [12:26:57]CAPDU: 80 11 00 00 [12:26:57]Write to MH i2c: E2 08 00 6D 2E 80 11 00 00 00 00 00 00 15 [12:26:57]Write i2c OK [12:26:57]MH_I2C_Read... [12:26:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:57]Read from MH i2c: E2 [12:26:57]MH_I2C_Read... [12:26:57]Read from MH i2c: E2 17 00 [12:26:57]MH_I2C_Read... [12:26:57]Read from MH i2c: E2 17 00 6D 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6C [12:26:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:26:57]wFMCommunicate OK [12:26:57]CreateOFDProtocolMessage done [12:26:57]OFDSenderStorePacket 228187 [12:26:57]StoreOFDPacket docnum=228187 [12:26:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 26 14 00 01 24 3F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 97 00 00 00 F4 03 04 00 13 9A 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5B 7B 03 00 35 04 06 00 74 A0 96 4F A4 0E E1 D9 7E 03 56 81 16 9B [12:26:57]CheckFolder [12:26:57]dirname=/storage/ofd_packets [12:26:57]CheckFolder done [12:26:57]ProducePacketName [12:26:57]name=ofd_packets/00228187 [12:26:57]NVStorageSaveData ofd_packets/00228187 [12:26:57]File name is /storage/ofd_packets/00228187 [12:26:57]Write 294 bytes [12:26:57]NVStorageSaveData done [12:26:57]OFDSenderStorePacket done [12:26:57]KKMCreateOFDPacket done [12:26:57]NVStorageSaveData kkm_last_timestamp [12:26:57]File name is /storage/kkm_last_timestamp [12:26:57]Write 4 bytes [12:26:57]NVStorageSaveData done [12:26:57]ExternCall_PrintAddStr [12:26:57]wPrintStart [12:26:57]Write to MH i2c: 01 00 00 6E 2E 9C [12:26:57]Write i2c OK [12:26:57]MH_I2C_Read... [12:26:57]Read from MH i2c: 01 [12:26:57]MH_I2C_Read... [12:26:57]Read from MH i2c: 01 07 00 [12:26:57]MH_I2C_Read... [12:26:57]Read from MH i2c: 01 07 00 6E 2E 00 00 00 00 00 FF 0F B1 [12:26:57]RasterBufferAndPrint [12:26:57]line Счет N : (1)1964629 [12:26:57]line ИНН: 02508201610067 [12:26:57]line Контрольно-Кассовый Чек [12:26:57]line ПРОДАЖА [12:26:57]line ТРК (МРК, ГНК) : 62 [12:26:57]line Товар: 2710124130 [12:26:57]line SU-92 [12:26:57]line 10.240 * 68.40 [12:26:57]line = 700.42 [12:26:57]line НДС 12% НСП 1% [12:26:57]line > о реализуемом товаре [12:26:57]line ОКРУГЛЕНИЕ: -0.42 [12:26:57]line ИТОГО: 700.00 [12:26:57]line Внесено: 700.00 [12:26:57]line СДАЧА: 0.00 [12:26:57]line НСП 1% : 6.20 [12:26:57]line НДС 12% : 74.38 [12:26:57]line Наличными: 700.00 [12:26:57]line Безнал.: 0.00 [12:26:57]line Место: АЗС № 133 "Партнер Нефть" [12:26:57]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:26:57]line СНО: Общий режим [12:26:57]line Чек 151 22.10.2024 12:26 [12:26:57]line Смена: 535 ФФД: 1.0 [12:26:57]line ЗНМ: 0300000091 [12:26:57]line РНМ: 0000000000091685 [12:26:57]line Версия ККМ: 001 [12:26:57]line ФМ: 0000000000871839 [12:26:57]line ФД: 228187 [12:26:57]line ФПД: 128233065391118 [12:26:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122659&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228187&fm=128233065391118&tin=02508201610067®Number=0000000000091685&sum=70000 [12:26:57]OFD Sender: Processing packet 228187 [packets to send 38, broken 37] [12:26:57]ProducePacketName [12:26:57]name=ofd_packets/00228187 [12:26:57]OFD Sender: To server: pG, [12:26:57]CommunicateWithHost lk.salyk.kg:30040 [12:26:57]ConnectInit lk.salyk.kg [12:26:57]written 0, free lines is 4095 [12:26:57]Connected sock=10 [12:26:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 26 14 00 01 24 3F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 97 00 00 00 F4 03 04 00 13 9A 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5B 7B 03 00 35 04 06 00 74 A0 96 4F A4 0E E1 D9 7E 03 56 81 16 9B [12:26:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 37 EF 47 00 0C 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5B 7B 03 00 F4 03 04 00 0C 45 17 67 B6 04 01 00 00 B1 87 B3 F6 BD 20 06 D6 [12:26:58]CommunicateWithHost err = 0 [12:26:58]CheckOFDResponse [12:26:58]1017 (14) - 77093643461234 [12:26:58]1041 (16) - 0000000000871839 [12:26:58]1040 (4) - 228187 [12:26:58]1012 (4) - 22.10.2024 06:24 [12:26:58]1206 (1) - 0 [12:26:58]OFD Sender: Remove packet 228187 [12:26:58]ProducePacketName [12:26:58]name=ofd_packets/00228187 [12:26:58]NVStorageDeleteData [12:26:58]Write to MH i2c: 01 00 00 98 2E C6 [12:26:58]Write i2c OK [12:26:58]MH_I2C_Read... [12:26:58]Read from MH i2c: 01 [12:26:58]MH_I2C_Read... [12:26:58]Read from MH i2c: 01 07 00 [12:26:58]MH_I2C_Read... [12:26:58]Read from MH i2c: 01 07 00 98 2E 00 00 00 00 00 BE 0C 97 [12:26:58]RasterBufferAndPrint [12:26:58]line [12:26:58]line [12:26:58]line [12:26:58]line [12:26:58]line [12:26:58]written 0, free lines is 3265 [12:26:58]MH_Cut [12:26:58]Write to MH i2c: D1 01 00 9F 2E 01 9F [12:26:58]Write i2c OK [12:26:58]MH_I2C_Read... [12:26:58]Read from MH i2c: D1 [12:26:58]MH_I2C_Read... [12:26:58]Read from MH i2c: D1 01 00 [12:26:58]MH_I2C_Read... [12:26:58]Read from MH i2c: D1 01 00 9F 2E 00 9E [12:26:58]Write to MH i2c: 01 00 00 A0 2E CE [12:26:58]Write i2c OK [12:26:58]MH_I2C_Read... [12:26:58]OFD Sender: No OFD packet to send [12:26:59]*** Cut start [12:26:59]*** Partial cut [12:26:59]*** CUTSNS_PIN = 1 [12:26:59]*** CUTSNS_PIN = 0 [12:26:59]*** Brake cut motor [12:26:59]Read from MH i2c: 01 [12:26:59]MH_I2C_Read... [12:26:59]*** Stop cut motor [12:26:59]*** Cut end [12:26:59]Read from MH i2c: 01 07 00 [12:26:59]MH_I2C_Read... [12:26:59]Read from MH i2c: 01 07 00 A0 2E 00 00 00 00 00 FF 0F E3 [12:26:59]process_action close_receipt done [12:26:59]requested_data is exist [12:26:59]produce_requested_data [12:26:59]requested_item fm.sn is exist - process it [12:26:59]wFMCommunicate request_size=4 [12:26:59]MH_SAM_APDU [12:26:59]CAPDU: 80 11 00 00 [12:26:59]Write to MH i2c: E2 08 00 A1 2E 80 11 00 00 00 00 00 00 49 [12:26:59]Write i2c OK [12:26:59]MH_I2C_Read... [12:26:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:59]Read from MH i2c: E2 [12:26:59]MH_I2C_Read... [12:26:59]Read from MH i2c: E2 17 00 [12:26:59]MH_I2C_Read... [12:26:59]Read from MH i2c: E2 17 00 A1 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A0 [12:26:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:26:59]wFMCommunicate OK [12:26:59]requested_item fd.num is exist - process it [12:26:59]SAM_PROTO_GetFieldsCounters [12:26:59]wFMCommunicate request_size=4 [12:26:59]MH_SAM_APDU [12:26:59]CAPDU: 80 13 00 00 [12:26:59]Write to MH i2c: E2 08 00 A2 2E 80 13 00 00 00 00 00 00 4C [12:26:59]Write i2c OK [12:26:59]MH_I2C_Read... [12:26:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:59]Read from MH i2c: E2 [12:26:59]MH_I2C_Read... [12:26:59]Read from MH i2c: E2 62 00 [12:26:59]MH_I2C_Read... [12:26:59]Read from MH i2c: E2 62 00 A2 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5B 7B 03 00 0E 04 04 00 17 02 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 2C [12:26:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5B 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:26:59]wFMCommunicate OK [12:26:59]SAM_PROTO_GetFieldsCounters done [12:26:59]requested_item shift.num is exist - process it [12:26:59]requested_item shift.opened is exist - process it [12:26:59]req_shift_opened [12:26:59]FM_GetShiftState [12:26:59]SAM_PROTO_GetShiftState [12:26:59]wFMCommunicate request_size=4 [12:26:59]MH_SAM_APDU [12:26:59]CAPDU: 80 13 01 00 [12:26:59]Write to MH i2c: E2 08 00 A3 2E 80 13 01 00 00 00 00 00 4E [12:26:59]Write i2c OK [12:26:59]MH_I2C_Read... [12:26:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:59]Read from MH i2c: E2 [12:26:59]MH_I2C_Read... [12:26:59]Read from MH i2c: E2 0E 00 [12:26:59]MH_I2C_Read... [12:26:59]Read from MH i2c: E2 0E 00 A3 2E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 15 [12:26:59]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:26:59]wFMCommunicate OK [12:26:59]SAM_PROTO_GetShiftState done [12:26:59]FM_GetShiftState done [12:26:59]req_shift_opened done [12:26:59]requested_item shift.open_date is exist - process it [12:26:59]req_shift_open_date [12:26:59]req_shift_open_date done [12:26:59]produce_requested_data done [12:26:59]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228187,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [12:26:59]process_action_free close_receipt [12:26:59]json_value_free [12:26:59]json_value_free done [12:26:59]process_json_proto returns [12:26:59]Send response to host [12:26:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228187,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [12:26:59]free response buf [12:26:59]execute_script done [12:26:59]execute_script returns [12:26:59]free content buf [12:26:59]Sock 7.Close socket [12:26:59]Sock 7.Thread stoped [12:27:03]OFD Sender: No OFD packet to send [12:27:08]OFD Sender: No OFD packet to send [12:27:13]OFD Sender: No OFD packet to send [12:27:18]OFD Sender: No OFD packet to send [12:27:23]OFD Sender: No OFD packet to send [12:27:28]OFD Sender: No OFD packet to send [12:27:33]OFD Sender: No OFD packet to send [12:27:38]OFD Sender: No OFD packet to send [12:27:43]OFD Sender: No OFD packet to send [12:27:48]OFD Sender: No OFD packet to send [12:27:53]OFD Sender: No OFD packet to send [12:27:58]OFD Sender: No OFD packet to send [12:28:03]OFD Sender: No OFD packet to send [12:28:08]OFD Sender: No OFD packet to send [12:28:13]OFD Sender: No OFD packet to send [12:28:18]OFD Sender: No OFD packet to send [12:28:23]OFD Sender: No OFD packet to send [12:28:28]OFD Sender: No OFD packet to send [12:28:33]OFD Sender: No OFD packet to send [12:28:38]OFD Sender: No OFD packet to send [12:28:43]OFD Sender: No OFD packet to send [12:28:48]OFD Sender: No OFD packet to send [12:28:53]OFD Sender: No OFD packet to send [12:28:58]OFD Sender: No OFD packet to send [12:29:03]OFD Sender: No OFD packet to send [12:29:08]OFD Sender: No OFD packet to send [12:29:13]OFD Sender: No OFD packet to send [12:29:17]accept exits with 9 [12:29:17]New connection [12:29:17]New thread 3067137380 created [12:29:17]Thread 3066994020 joined [12:29:17]Waiting for new connection... [12:29:17] Sock 9.Parse request [12:29:17]Sock 9.Check first char [12:29:17]Sock 9.First char is OK [12:29:17]request: POST /json_proto HTTP/1.0 [12:29:17]Method: POST [12:29:17]URL: /json_proto [12:29:17]Method is POST - this is cgi request [12:29:17]url: /json_proto [12:29:17]query_string will be loaded in cgi processing [12:29:17]execute_cgi json_proto POST (null) [12:29:17]execute_cgi path=json_proto method=POST [12:29:17]POST find Content-Length [12:29:17]Host: 172.17.44.195:8080 [12:29:17]Content-Length: 790 [12:29:17]Content-Type: application/json [12:29:17] [12:29:17]POST finish read [12:29:17]Found Content-Length = 790 [12:29:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964631", "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" : 0.00, "quantity" : 13.130, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00933", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:17]execute_script... [12:29: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)1964631", "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" : 0.00, "quantity" : 13.130, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00933", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:17]POST & json_proto [12:29:17]process_json_proto [12:29:17]json parsed OK: [12:29:17]protocol is kg_v1.0 [12:29:17]action value=close_receipt [12:29:17]process_action close_receipt [12:29:17]cmd_close_receipt [12:29:17]MH_GetDate [12:29:17]Write to MH i2c: F0 00 00 A4 2E C1 [12:29:17]Write i2c OK [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: F0 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: F0 09 00 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: F0 09 00 A4 2E 00 A1 9A 17 67 82 C9 CF 66 03 [12:29:17]GetLastDocTimeStamp 1729600019 [12:29:17]current date 1729600161 [12:29:17]FM_GetShiftState [12:29:17]SAM_PROTO_GetShiftState [12:29:17]wFMCommunicate request_size=4 [12:29:17]MH_SAM_APDU [12:29:17]CAPDU: 80 13 01 00 [12:29:17]Write to MH i2c: E2 08 00 A5 2E 80 13 01 00 00 00 00 00 50 [12:29:17]Write i2c OK [12:29:17]MH_I2C_Read... [12:29:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:17]Read from MH i2c: E2 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: E2 0E 00 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: E2 0E 00 A5 2E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 17 [12:29:17]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:29:17]wFMCommunicate OK [12:29:17]SAM_PROTO_GetShiftState done [12:29:17]FM_GetShiftState done [12:29:17]opened in 1729555538 [12:29:17]opened+sec_in_day 1729641938 [12:29:17]quantity*price = 0 [12:29:17]sum+1 = 1 [12:29:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 152 22.10.2024 12:29 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливная Карта 00933 ФМ: 0000000000871839 ФД: 228188 ФПД: 54726980876930 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122921&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228188&fm=54726980876930&tin=02508201610067®Number=0000000000091685&sum=0 [12:29:18]StoreToDocumentArchive [12:29:18]shift 535 fd 228188 [12:29:18]save to /storage/0535/doc_00228188 [12:29:18]save last doc name /storage/0535/doc_00228188 to /storage/kkm_last_doc_name [12:29:18]save OK [12:29:18]Clear old archive folders... [12:29:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:29:18]tlvbuf is 008C2510 [12:29:18]SAM_PROTO_ClearQueue [12:29:18]wFMCommunicate request_size=4 [12:29:18]MH_SAM_APDU [12:29:18]CAPDU: 80 09 00 00 [12:29:18]Write to MH i2c: E2 08 00 B2 2E 80 09 00 00 00 00 00 00 52 [12:29:18]Write i2c OK [12:29:18]MH_I2C_Read... [12:29:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:18]Read from MH i2c: E2 [12:29:18]MH_I2C_Read... [12:29:18]Read from MH i2c: E2 03 00 [12:29:18]MH_I2C_Read... [12:29:18]Read from MH i2c: E2 03 00 B2 2E 00 90 00 54 [12:29:18]RAPDU: 90 00 [12:29:18]wFMCommunicate OK [12:29:18]SAM_PROTO_ClearQueue done [12:29:18]KKMCreateOFDPacket [12:29:18]OFDProtocolAddRootSTLVToBuf [12:29:18]FM_MakeSignedData [12:29:18]FM_MakeSignedData [12:29:18]SAM_PROTO_SignData [12:29:18]wFMCommunicate request_size=4 [12:29:18]MH_SAM_APDU [12:29:18]CAPDU: 80 0D 01 02 [12:29:18]Write to MH i2c: E2 08 00 B3 2E 80 0D 01 02 00 00 00 00 5A [12:29:18]Write i2c OK [12:29:18]MH_I2C_Read... [12:29:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:18]Read from MH i2c: E2 [12:29:18]MH_I2C_Read... [12:29:18]Read from MH i2c: E2 03 00 [12:29:18]MH_I2C_Read... [12:29:18]Read from MH i2c: E2 03 00 B3 2E 00 90 00 55 [12:29:18]RAPDU: 90 00 [12:29:18]wFMCommunicate OK [12:29:18]wFMCommunicate request_size=255 [12:29:18]MH_SAM_APDU [12:29: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 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 A1 9A 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5C 7B 03 00 35 04 06 00 31 C6 1E 41 [12:29:18]Write to MH i2c: E2 02 01 B4 2E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 A1 9A 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5C 7B 03 00 35 04 06 00 31 C6 1E 41 00 00 D6 [12:29:18]Write i2c OK [12:29:18]MH_I2C_Read... [12:29:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:19]Read from MH i2c: E2 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: E2 03 00 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: E2 03 00 B4 2E 00 90 00 56 [12:29:19]RAPDU: 90 00 [12:29:19]wFMCommunicate OK [12:29:19]wFMCommunicate request_size=7 [12:29:19]MH_SAM_APDU [12:29:19]CAPDU: 80 0D 02 02 02 3A 82 [12:29:19]Write to MH i2c: E2 0A 00 B5 2E 80 0D 02 02 02 00 3A 82 00 00 1D [12:29:19]Write i2c OK [12:29:19]MH_I2C_Read... [12:29:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:19]Read from MH i2c: E2 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: E2 03 00 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: E2 03 00 B5 2E 00 90 00 57 [12:29:19]RAPDU: 90 00 [12:29:19]wFMCommunicate OK [12:29:19]wFMCommunicate request_size=4 [12:29:19]MH_SAM_APDU [12:29:19]CAPDU: 80 0D 03 02 [12:29:19]Write to MH i2c: E2 08 00 B6 2E 80 0D 03 02 00 00 00 00 5F [12:29:19]Write i2c OK [12:29:19]MH_I2C_Read... [12:29:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:19]Read from MH i2c: E2 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: E2 0B 00 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: E2 0B 00 B6 2E 00 07 BA E1 5C 66 AD 85 F3 90 00 E9 [12:29:19]RAPDU: 07 BA E1 5C 66 AD 85 F3 90 00 [12:29:19]wFMCommunicate OK [12:29:19]SAM_PROTO_SignData done [12:29:19]FM_MakeSignedData done [12:29:19]CreateOFDProtocolMessage [12:29:19]wFMCommunicate request_size=4 [12:29:19]MH_SAM_APDU [12:29:19]CAPDU: 80 11 00 00 [12:29:19]Write to MH i2c: E2 08 00 B7 2E 80 11 00 00 00 00 00 00 5F [12:29:19]Write i2c OK [12:29:19]MH_I2C_Read... [12:29:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:19]Read from MH i2c: E2 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: E2 17 00 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: E2 17 00 B7 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B6 [12:29:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:29:19]wFMCommunicate OK [12:29:19]CreateOFDProtocolMessage done [12:29:19]OFDSenderStorePacket 228188 [12:29:19]StoreOFDPacket docnum=228188 [12:29:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 BA AB 04 01 F0 59 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 A1 9A 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5C 7B 03 00 35 04 06 00 31 C6 1E 41 3A 82 07 BA E1 5C 66 AD 85 F3 [12:29:19]CheckFolder [12:29:19]dirname=/storage/ofd_packets [12:29:19]CheckFolder done [12:29:19]ProducePacketName [12:29:19]name=ofd_packets/00228188 [12:29:19]NVStorageSaveData ofd_packets/00228188 [12:29:19]File name is /storage/ofd_packets/00228188 [12:29:19]Write 298 bytes [12:29:19]NVStorageSaveData done [12:29:19]OFDSenderStorePacket done [12:29:19]KKMCreateOFDPacket done [12:29:19]NVStorageSaveData kkm_last_timestamp [12:29:19]File name is /storage/kkm_last_timestamp [12:29:19]Write 4 bytes [12:29:19]NVStorageSaveData done [12:29:19]ExternCall_PrintAddStr [12:29:19]wPrintStart [12:29:19]Write to MH i2c: 01 00 00 B8 2E E6 [12:29:19]Write i2c OK [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: 01 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: 01 07 00 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: 01 07 00 B8 2E 00 00 00 00 00 FF 0F FB [12:29:19]RasterBufferAndPrint [12:29:19]line Счет N : (1)1964631 [12:29:19]line ИНН: 02508201610067 [12:29:19]line Контрольно-Кассовый Чек [12:29:19]line ПРОДАЖА [12:29:19]line ТРК (МРК, ГНК) : 21 [12:29:19]line Товар: 2710194210 [12:29:19]line ДТ-К-5 [12:29:19]line 13.130 * 0.00 [12:29:19]line = 0.00 [12:29:19]line НДС 12% НСП 1% [12:29:19]line > о реализуемом товаре [12:29:19]line ИТОГО: 0.00 [12:29:19]line НСП 1% : 0.00 [12:29:19]line НДС 12% : 0.00 [12:29:19]line Наличными: 0.00 [12:29:19]line Безнал.: 0.00 [12:29:19]line Место: АЗС № 133 "Партнер Нефть" [12:29:19]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:29:19]line СНО: Общий режим [12:29:19]line Чек 152 22.10.2024 12:29 [12:29:19]line Смена: 535 ФФД: 1.0 [12:29:19]line ЗНМ: 0300000091 [12:29:19]line РНМ: 0000000000091685 [12:29:19]line Версия ККМ: 001 [12:29:19]line Талоны: Топливная Карта [12:29:19]line 00933 [12:29:19]line ФМ: 0000000000871839 [12:29:19]line ФД: 228188 [12:29:19]line ФПД: 54726980876930 [12:29:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122921&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228188&fm=54726980876930&tin=02508201610067®Number=0000000000091685&sum=0 [12:29:19]OFD Sender: Processing packet 228188 [packets to send 38, broken 37] [12:29:19]ProducePacketName [12:29:19]name=ofd_packets/00228188 [12:29:19]OFD Sender: To server: pG, [12:29:19]CommunicateWithHost lk.salyk.kg:30040 [12:29:19]ConnectInit lk.salyk.kg [12:29:19]written 0, free lines is 4095 [12:29:19]Connected sock=10 [12:29:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 BA AB 04 01 F0 59 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 A1 9A 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5C 7B 03 00 35 04 06 00 31 C6 1E 41 3A 82 07 BA E1 5C 66 AD 85 F3 [12:29:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 16 DA 47 00 F0 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5C 7B 03 00 F4 03 04 00 99 45 17 67 B6 04 01 00 00 D0 4F 86 C6 82 6C E2 8C [12:29:19]CommunicateWithHost err = 0 [12:29:19]CheckOFDResponse [12:29:19]1017 (14) - 77093643461234 [12:29:19]1041 (16) - 0000000000871839 [12:29:19]1040 (4) - 228188 [12:29:19]1012 (4) - 22.10.2024 06:26 [12:29:19]1206 (1) - 0 [12:29:19]OFD Sender: Remove packet 228188 [12:29:19]ProducePacketName [12:29:19]name=ofd_packets/00228188 [12:29:19]NVStorageDeleteData [12:29:20]Write to MH i2c: 01 00 00 E1 2E 0F [12:29:20]Write i2c OK [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: 01 [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: 01 07 00 [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: 01 07 00 E1 2E 00 00 00 00 00 CC 0C EE [12:29:20]RasterBufferAndPrint [12:29:20]line [12:29:20]line [12:29:20]line [12:29:20]line [12:29:20]line [12:29:20]written 0, free lines is 3282 [12:29:20]MH_Cut [12:29:20]Write to MH i2c: D1 01 00 E8 2E 01 E8 [12:29:20]Write i2c OK [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: D1 [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: D1 01 00 [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: D1 01 00 E8 2E 00 E7 [12:29:20]Write to MH i2c: 01 00 00 E9 2E 17 [12:29:20]Write i2c OK [12:29:20]MH_I2C_Read... [12:29:20]OFD Sender: No OFD packet to send [12:29:20]*** Cut start [12:29:20]*** Partial cut [12:29:20]*** CUTSNS_PIN = 1 [12:29:20]*** CUTSNS_PIN = 0 [12:29:21]*** Brake cut motor [12:29:21]Read from MH i2c: 01 [12:29:21]MH_I2C_Read... [12:29:21]*** Stop cut motor [12:29:21]*** Cut end [12:29:21]Read from MH i2c: 01 07 00 [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: 01 07 00 E9 2E 00 00 00 00 00 FF 0F 2C [12:29:21]process_action close_receipt done [12:29:21]requested_data is exist [12:29:21]produce_requested_data [12:29:21]requested_item fm.sn is exist - process it [12:29:21]wFMCommunicate request_size=4 [12:29:21]MH_SAM_APDU [12:29:21]CAPDU: 80 11 00 00 [12:29:21]Write to MH i2c: E2 08 00 EA 2E 80 11 00 00 00 00 00 00 92 [12:29:21]Write i2c OK [12:29:21]MH_I2C_Read... [12:29:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:21]Read from MH i2c: E2 [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: E2 17 00 [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: E2 17 00 EA 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E9 [12:29:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:29:21]wFMCommunicate OK [12:29:21]requested_item fd.num is exist - process it [12:29:21]SAM_PROTO_GetFieldsCounters [12:29:21]wFMCommunicate request_size=4 [12:29:21]MH_SAM_APDU [12:29:21]CAPDU: 80 13 00 00 [12:29:21]Write to MH i2c: E2 08 00 EB 2E 80 13 00 00 00 00 00 00 95 [12:29:21]Write i2c OK [12:29:21]MH_I2C_Read... [12:29:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:21]Read from MH i2c: E2 [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: E2 62 00 [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: E2 62 00 EB 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5C 7B 03 00 0E 04 04 00 17 02 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 79 [12:29:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5C 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:21]wFMCommunicate OK [12:29:21]SAM_PROTO_GetFieldsCounters done [12:29:21]requested_item shift.num is exist - process it [12:29:21]requested_item shift.opened is exist - process it [12:29:21]req_shift_opened [12:29:21]FM_GetShiftState [12:29:21]SAM_PROTO_GetShiftState [12:29:21]wFMCommunicate request_size=4 [12:29:21]MH_SAM_APDU [12:29:21]CAPDU: 80 13 01 00 [12:29:21]Write to MH i2c: E2 08 00 EC 2E 80 13 01 00 00 00 00 00 97 [12:29:21]Write i2c OK [12:29:21]MH_I2C_Read... [12:29:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:21]Read from MH i2c: E2 [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: E2 0E 00 [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: E2 0E 00 EC 2E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 5E [12:29:21]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:29:21]wFMCommunicate OK [12:29:21]SAM_PROTO_GetShiftState done [12:29:21]FM_GetShiftState done [12:29:21]req_shift_opened done [12:29:21]requested_item shift.open_date is exist - process it [12:29:21]req_shift_open_date [12:29:21]req_shift_open_date done [12:29:21]produce_requested_data done [12:29:21]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228188,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [12:29:21]process_action_free close_receipt [12:29:21]json_value_free [12:29:21]json_value_free done [12:29:21]process_json_proto returns [12:29:21]Send response to host [12:29:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228188,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [12:29:21]free response buf [12:29:21]execute_script done [12:29:21]execute_script returns [12:29:21]free content buf [12:29:21]Sock 9.Close socket [12:29:21]Sock 9.Thread stoped [12:29:25]OFD Sender: No OFD packet to send [12:29:30]OFD Sender: No OFD packet to send [12:29:35]OFD Sender: No OFD packet to send [12:29:40]OFD Sender: No OFD packet to send [12:29:45]OFD Sender: No OFD packet to send [12:29:50]OFD Sender: No OFD packet to send [12:29:55]OFD Sender: No OFD packet to send [12:30:00]OFD Sender: No OFD packet to send [12:30:05]OFD Sender: No OFD packet to send [12:30:10]OFD Sender: No OFD packet to send [12:30:15]OFD Sender: No OFD packet to send [12:30:20]OFD Sender: No OFD packet to send [12:30:25]OFD Sender: No OFD packet to send [12:30:30]OFD Sender: No OFD packet to send [12:30:35]OFD Sender: No OFD packet to send [12:30:40]OFD Sender: No OFD packet to send [12:30:45]OFD Sender: No OFD packet to send [12:30:50]OFD Sender: No OFD packet to send [12:30:55]OFD Sender: No OFD packet to send [12:31:00]OFD Sender: No OFD packet to send [12:31:05]OFD Sender: No OFD packet to send [12:31:10]OFD Sender: No OFD packet to send [12:31:15]OFD Sender: No OFD packet to send [12:31:20]OFD Sender: No OFD packet to send [12:31:25]OFD Sender: No OFD packet to send [12:31:30]OFD Sender: No OFD packet to send [12:31:35]OFD Sender: No OFD packet to send [12:31:40]OFD Sender: No OFD packet to send [12:31:45]OFD Sender: No OFD packet to send [12:31:50]OFD Sender: No OFD packet to send [12:31:55]OFD Sender: No OFD packet to send [12:32:00]OFD Sender: No OFD packet to send [12:32:05]OFD Sender: No OFD packet to send [12:32:10]OFD Sender: No OFD packet to send [12:32:15]OFD Sender: No OFD packet to send [12:32:20]OFD Sender: No OFD packet to send [12:32:25]OFD Sender: No OFD packet to send [12:32:30]OFD Sender: No OFD packet to send [12:32:32]accept exits with 7 [12:32:32]New connection [12:32:32]New thread 3066994020 created [12:32:32]Thread 3067137380 joined [12:32:32]Waiting for new connection... [12:32:32] Sock 7.Parse request [12:32:32]Sock 7.Check first char [12:32:32]Sock 7.First char is OK [12:32:32]request: POST /json_proto HTTP/1.0 [12:32:32]Method: POST [12:32:32]URL: /json_proto [12:32:32]Method is POST - this is cgi request [12:32:32]url: /json_proto [12:32:32]query_string will be loaded in cgi processing [12:32:32]execute_cgi json_proto POST (null) [12:32:32]execute_cgi path=json_proto method=POST [12:32:32]POST find Content-Length [12:32:32]Host: 172.17.44.195:8080 [12:32:32]Content-Length: 678 [12:32:32]Content-Type: application/json [12:32:32] [12:32:32]POST finish read [12:32:32]Found Content-Length = 678 [12:32:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:32:32]execute_script... [12:32: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)1964632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:32:32]POST & json_proto [12:32:32]process_json_proto [12:32:32]json parsed OK: [12:32:32]protocol is kg_v1.0 [12:32:32]action value=close_receipt [12:32:32]process_action close_receipt [12:32:32]cmd_close_receipt [12:32:32]MH_GetDate [12:32:32]Write to MH i2c: F0 00 00 ED 2E 0A [12:32:32]Write i2c OK [12:32:32]MH_I2C_Read... [12:32:32]Read from MH i2c: F0 [12:32:32]MH_I2C_Read... [12:32:32]Read from MH i2c: F0 09 00 [12:32:32]MH_I2C_Read... [12:32:32]Read from MH i2c: F0 09 00 ED 2E 00 64 9B 17 67 82 C9 CF 66 10 [12:32:32]GetLastDocTimeStamp 1729600161 [12:32:32]current date 1729600356 [12:32:32]FM_GetShiftState [12:32:32]SAM_PROTO_GetShiftState [12:32:32]wFMCommunicate request_size=4 [12:32:32]MH_SAM_APDU [12:32:32]CAPDU: 80 13 01 00 [12:32:32]Write to MH i2c: E2 08 00 EE 2E 80 13 01 00 00 00 00 00 99 [12:32:32]Write i2c OK [12:32:32]MH_I2C_Read... [12:32:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:32]Read from MH i2c: E2 [12:32:32]MH_I2C_Read... [12:32:32]Read from MH i2c: E2 0E 00 [12:32:32]MH_I2C_Read... [12:32:32]Read from MH i2c: E2 0E 00 EE 2E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 60 [12:32:32]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:32:32]wFMCommunicate OK [12:32:32]SAM_PROTO_GetShiftState done [12:32:32]FM_GetShiftState done [12:32:32]opened in 1729555538 [12:32:32]opened+sec_in_day 1729641938 [12:32:32]quantity*price = 50041 [12:32:32]sum+1 = 50042 [12:32:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 153 22.10.2024 12:32 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228189 ФПД: 223710489646521 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123236&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228189&fm=223710489646521&tin=02508201610067®Number=0000000000091685&sum=50000 [12:32:33]StoreToDocumentArchive [12:32:33]shift 535 fd 228189 [12:32:33]save to /storage/0535/doc_00228189 [12:32:33]save last doc name /storage/0535/doc_00228189 to /storage/kkm_last_doc_name [12:32:33]save OK [12:32:33]Clear old archive folders... [12:32:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:32:33]tlvbuf is 008C2CE0 [12:32:33]SAM_PROTO_ClearQueue [12:32:33]wFMCommunicate request_size=4 [12:32:33]MH_SAM_APDU [12:32:33]CAPDU: 80 09 00 00 [12:32:33]Write to MH i2c: E2 08 00 FB 2E 80 09 00 00 00 00 00 00 9B [12:32:33]Write i2c OK [12:32:33]MH_I2C_Read... [12:32:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:33]Read from MH i2c: E2 [12:32:33]MH_I2C_Read... [12:32:33]Read from MH i2c: E2 03 00 [12:32:33]MH_I2C_Read... [12:32:33]Read from MH i2c: E2 03 00 FB 2E 00 90 00 9D [12:32:33]RAPDU: 90 00 [12:32:33]wFMCommunicate OK [12:32:33]SAM_PROTO_ClearQueue done [12:32:33]KKMCreateOFDPacket [12:32:33]OFDProtocolAddRootSTLVToBuf [12:32:33]FM_MakeSignedData [12:32:33]FM_MakeSignedData [12:32:33]SAM_PROTO_SignData [12:32:33]wFMCommunicate request_size=4 [12:32:33]MH_SAM_APDU [12:32:33]CAPDU: 80 0D 01 02 [12:32:33]Write to MH i2c: E2 08 00 FC 2E 80 0D 01 02 00 00 00 00 A3 [12:32:33]Write i2c OK [12:32:33]MH_I2C_Read... [12:32:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:33]Read from MH i2c: E2 [12:32:33]MH_I2C_Read... [12:32:33]Read from MH i2c: E2 03 00 [12:32:33]MH_I2C_Read... [12:32:33]Read from MH i2c: E2 03 00 FC 2E 00 90 00 9E [12:32:33]RAPDU: 90 00 [12:32:33]wFMCommunicate OK [12:32:33]wFMCommunicate request_size=255 [12:32:33]MH_SAM_APDU [12:32:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 64 9B 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5D 7B 03 00 35 04 06 00 CB [12:32:33]Write to MH i2c: E2 02 01 FD 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 64 9B 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5D 7B 03 00 35 04 06 00 CB 00 00 0F [12:32:33]Write i2c OK [12:32:33]MH_I2C_Read... [12:32:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:33]Read from MH i2c: E2 [12:32:33]MH_I2C_Read... [12:32:33]Read from MH i2c: E2 03 00 [12:32:33]MH_I2C_Read... [12:32:33]Read from MH i2c: E2 03 00 FD 2E 00 90 00 9F [12:32:33]RAPDU: 90 00 [12:32:33]wFMCommunicate OK [12:32:33]wFMCommunicate request_size=10 [12:32:33]MH_SAM_APDU [12:32:33]CAPDU: 80 0D 02 02 05 76 A8 44 95 B9 [12:32:33]Write to MH i2c: E2 0D 00 FE 2E 80 0D 02 02 05 00 76 A8 44 95 B9 00 00 60 [12:32:33]Write i2c OK [12:32:33]MH_I2C_Read... [12:32:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:33]Read from MH i2c: E2 [12:32:33]MH_I2C_Read... [12:32:33]Read from MH i2c: E2 03 00 [12:32:33]MH_I2C_Read... [12:32:33]Read from MH i2c: E2 03 00 FE 2E 00 90 00 A0 [12:32:33]RAPDU: 90 00 [12:32:33]wFMCommunicate OK [12:32:33]wFMCommunicate request_size=4 [12:32:33]MH_SAM_APDU [12:32:33]CAPDU: 80 0D 03 02 [12:32:33]Write to MH i2c: E2 08 00 FF 2E 80 0D 03 02 00 00 00 00 A8 [12:32:33]Write i2c OK [12:32:33]MH_I2C_Read... [12:32:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:33]Read from MH i2c: E2 [12:32:33]MH_I2C_Read... [12:32:33]Read from MH i2c: E2 0B 00 [12:32:33]MH_I2C_Read... [12:32:33]Read from MH i2c: E2 0B 00 FF 2E 00 8C BB 5B F5 8E 13 71 E1 90 00 33 [12:32:33]RAPDU: 8C BB 5B F5 8E 13 71 E1 90 00 [12:32:33]wFMCommunicate OK [12:32:33]SAM_PROTO_SignData done [12:32:33]FM_MakeSignedData done [12:32:33]CreateOFDProtocolMessage [12:32:33]wFMCommunicate request_size=4 [12:32:33]MH_SAM_APDU [12:32:33]CAPDU: 80 11 00 00 [12:32:33]Write to MH i2c: E2 08 00 00 2F 80 11 00 00 00 00 00 00 A9 [12:32:33]Write i2c OK [12:32:33]MH_I2C_Read... [12:32:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:33]Read from MH i2c: E2 [12:32:33]MH_I2C_Read... [12:32:33]Read from MH i2c: E2 17 00 [12:32:33]MH_I2C_Read... [12:32:33]Read from MH i2c: E2 17 00 00 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 00 [12:32:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:32:33]wFMCommunicate OK [12:32:33]CreateOFDProtocolMessage done [12:32:33]OFDSenderStorePacket 228189 [12:32:33]StoreOFDPacket docnum=228189 [12:32:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 4E 3F 07 01 6A 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 64 9B 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5D 7B 03 00 35 04 06 00 CB 76 A8 44 95 B9 8C BB 5B F5 8E 13 71 E1 [12:32:33]CheckFolder [12:32:33]dirname=/storage/ofd_packets [12:32:33]CheckFolder done [12:32:33]ProducePacketName [12:32:33]name=ofd_packets/00228189 [12:32:33]NVStorageSaveData ofd_packets/00228189 [12:32:33]File name is /storage/ofd_packets/00228189 [12:32:33]Write 301 bytes [12:32:33]NVStorageSaveData done [12:32:33]OFDSenderStorePacket done [12:32:33]KKMCreateOFDPacket done [12:32:33]NVStorageSaveData kkm_last_timestamp [12:32:33]File name is /storage/kkm_last_timestamp [12:32:33]Write 4 bytes [12:32:33]NVStorageSaveData done [12:32:33]ExternCall_PrintAddStr [12:32:33]wPrintStart [12:32:33]Write to MH i2c: 01 00 00 01 2F 30 [12:32:33]Write i2c OK [12:32:33]MH_I2C_Read... [12:32:33]Read from MH i2c: 01 [12:32:33]MH_I2C_Read... [12:32:33]Read from MH i2c: 01 07 00 [12:32:33]MH_I2C_Read... [12:32:33]Read from MH i2c: 01 07 00 01 2F 00 00 00 00 00 FF 0F 45 [12:32:33]RasterBufferAndPrint [12:32:33]line Счет N : (1)1964632 [12:32:33]line ИНН: 02508201610067 [12:32:33]line Контрольно-Кассовый Чек [12:32:33]line ПРОДАЖА [12:32:33]line ТРК (МРК, ГНК) : 33 [12:32:33]line Товар: 2710124130 [12:32:33]line Аи-92-К-5 [12:32:33]line 7.480 * 66.90 [12:32:33]line = 500.41 [12:32:33]line НДС 12% НСП 1% [12:32:33]line > о реализуемом товаре [12:32:33]line ОКРУГЛЕНИЕ: -0.41 [12:32:33]line ИТОГО: 500.00 [12:32:33]line Внесено: 500.00 [12:32:33]line СДАЧА: 0.00 [12:32:33]line НСП 1% : 4.43 [12:32:33]line НДС 12% : 53.14 [12:32:33]line Наличными: 500.00 [12:32:33]line Безнал.: 0.00 [12:32:33]line Место: АЗС № 133 "Партнер Нефть" [12:32:33]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:32:33]line СНО: Общий режим [12:32:33]line Чек 153 22.10.2024 12:32 [12:32:33]line Смена: 535 ФФД: 1.0 [12:32:33]line ЗНМ: 0300000091 [12:32:33]line РНМ: 0000000000091685 [12:32:33]line Версия ККМ: 001 [12:32:33]line ФМ: 0000000000871839 [12:32:33]line ФД: 228189 [12:32:33]line ФПД: 223710489646521 [12:32:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123236&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228189&fm=223710489646521&tin=02508201610067®Number=0000000000091685&sum=50000 [12:32:34]written 0, free lines is 4095 [12:32:34]OFD Sender: Processing packet 228189 [packets to send 38, broken 37] [12:32:34]ProducePacketName [12:32:34]name=ofd_packets/00228189 [12:32:34]OFD Sender: To server: pG, [12:32:34]CommunicateWithHost lk.salyk.kg:30040 [12:32:34]ConnectInit lk.salyk.kg [12:32:34]Connected sock=10 [12:32:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 4E 3F 07 01 6A 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 64 9B 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5D 7B 03 00 35 04 06 00 CB 76 A8 44 95 B9 8C BB 5B F5 8E 13 71 E1 [12:32:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 B7 A6 47 00 B2 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5D 7B 03 00 F4 03 04 00 5C 46 17 67 B6 04 01 00 00 CE 08 0A F3 D3 BA 80 F2 [12:32:34]CommunicateWithHost err = 0 [12:32:34]CheckOFDResponse [12:32:34]1017 (14) - 77093643461234 [12:32:34]1041 (16) - 0000000000871839 [12:32:34]1040 (4) - 228189 [12:32:34]1012 (4) - 22.10.2024 06:29 [12:32:34]1206 (1) - 0 [12:32:34]OFD Sender: Remove packet 228189 [12:32:34]ProducePacketName [12:32:34]name=ofd_packets/00228189 [12:32:34]NVStorageDeleteData [12:32:34]Write to MH i2c: 01 00 00 2B 2F 5A [12:32:34]Write i2c OK [12:32:34]MH_I2C_Read... [12:32:34]Read from MH i2c: 01 [12:32:34]MH_I2C_Read... [12:32:34]Read from MH i2c: 01 07 00 [12:32:34]MH_I2C_Read... [12:32:34]Read from MH i2c: 01 07 00 2B 2F 00 00 00 00 00 B8 0C 25 [12:32:34]RasterBufferAndPrint [12:32:34]line [12:32:34]line [12:32:34]line [12:32:34]line [12:32:34]line [12:32:34]written 0, free lines is 3261 [12:32:34]MH_Cut [12:32:34]Write to MH i2c: D1 01 00 32 2F 01 33 [12:32:34]Write i2c OK [12:32:34]MH_I2C_Read... [12:32:34]Read from MH i2c: D1 [12:32:34]MH_I2C_Read... [12:32:34]Read from MH i2c: D1 01 00 [12:32:34]MH_I2C_Read... [12:32:34]Read from MH i2c: D1 01 00 32 2F 00 32 [12:32:34]Write to MH i2c: 01 00 00 33 2F 62 [12:32:34]Write i2c OK [12:32:34]MH_I2C_Read... [12:32:35]OFD Sender: No OFD packet to send [12:32:35]*** Cut start [12:32:35]*** Partial cut [12:32:35]*** CUTSNS_PIN = 1 [12:32:35]*** CUTSNS_PIN = 0 [12:32:35]*** Brake cut motor [12:32:36]Read from MH i2c: 01 [12:32:36]MH_I2C_Read... [12:32:36]*** Stop cut motor [12:32:36]*** Cut end [12:32:36]Read from MH i2c: 01 07 00 [12:32:36]MH_I2C_Read... [12:32:36]Read from MH i2c: 01 07 00 33 2F 00 00 00 00 00 FF 0F 77 [12:32:36]process_action close_receipt done [12:32:36]requested_data is exist [12:32:36]produce_requested_data [12:32:36]requested_item fm.sn is exist - process it [12:32:36]wFMCommunicate request_size=4 [12:32:36]MH_SAM_APDU [12:32:36]CAPDU: 80 11 00 00 [12:32:36]Write to MH i2c: E2 08 00 34 2F 80 11 00 00 00 00 00 00 DD [12:32:36]Write i2c OK [12:32:36]MH_I2C_Read... [12:32:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:36]Read from MH i2c: E2 [12:32:36]MH_I2C_Read... [12:32:36]Read from MH i2c: E2 17 00 [12:32:36]MH_I2C_Read... [12:32:36]Read from MH i2c: E2 17 00 34 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 34 [12:32:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:32:36]wFMCommunicate OK [12:32:36]requested_item fd.num is exist - process it [12:32:36]SAM_PROTO_GetFieldsCounters [12:32:36]wFMCommunicate request_size=4 [12:32:36]MH_SAM_APDU [12:32:36]CAPDU: 80 13 00 00 [12:32:36]Write to MH i2c: E2 08 00 35 2F 80 13 00 00 00 00 00 00 E0 [12:32:36]Write i2c OK [12:32:36]MH_I2C_Read... [12:32:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:36]Read from MH i2c: E2 [12:32:36]MH_I2C_Read... [12:32:36]Read from MH i2c: E2 62 00 [12:32:36]MH_I2C_Read... [12:32:36]Read from MH i2c: E2 62 00 35 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5D 7B 03 00 0E 04 04 00 17 02 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 C8 [12:32:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5D 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:32:36]wFMCommunicate OK [12:32:36]SAM_PROTO_GetFieldsCounters done [12:32:36]requested_item shift.num is exist - process it [12:32:36]requested_item shift.opened is exist - process it [12:32:36]req_shift_opened [12:32:36]FM_GetShiftState [12:32:36]SAM_PROTO_GetShiftState [12:32:36]wFMCommunicate request_size=4 [12:32:36]MH_SAM_APDU [12:32:36]CAPDU: 80 13 01 00 [12:32:36]Write to MH i2c: E2 08 00 36 2F 80 13 01 00 00 00 00 00 E2 [12:32:36]Write i2c OK [12:32:36]MH_I2C_Read... [12:32:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:36]Read from MH i2c: E2 [12:32:36]MH_I2C_Read... [12:32:36]Read from MH i2c: E2 0E 00 [12:32:36]MH_I2C_Read... [12:32:36]Read from MH i2c: E2 0E 00 36 2F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 A9 [12:32:36]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:32:36]wFMCommunicate OK [12:32:36]SAM_PROTO_GetShiftState done [12:32:36]FM_GetShiftState done [12:32:36]req_shift_opened done [12:32:36]requested_item shift.open_date is exist - process it [12:32:36]req_shift_open_date [12:32:36]req_shift_open_date done [12:32:36]produce_requested_data done [12:32:36]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228189,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [12:32:36]process_action_free close_receipt [12:32:36]json_value_free [12:32:36]json_value_free done [12:32:36]process_json_proto returns [12:32:36]Send response to host [12:32:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228189,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [12:32:36]free response buf [12:32:36]execute_script done [12:32:36]execute_script returns [12:32:36]free content buf [12:32:36]Sock 7.Close socket [12:32:36]Sock 7.Thread stoped [12:32:40]OFD Sender: No OFD packet to send [12:32:45]OFD Sender: No OFD packet to send [12:32:50]OFD Sender: No OFD packet to send [12:32:55]OFD Sender: No OFD packet to send [12:33:00]OFD Sender: No OFD packet to send [12:33:05]OFD Sender: No OFD packet to send [12:33:10]OFD Sender: No OFD packet to send [12:33:15]OFD Sender: No OFD packet to send [12:33:20]OFD Sender: No OFD packet to send [12:33:25]OFD Sender: No OFD packet to send [12:33:30]OFD Sender: No OFD packet to send [12:33:35]OFD Sender: No OFD packet to send [12:33:40]OFD Sender: No OFD packet to send [12:33:45]OFD Sender: No OFD packet to send [12:33:45]accept exits with 9 [12:33:45]New connection [12:33:45]New thread 3067137380 created [12:33:45]Thread 3066994020 joined [12:33:45]Waiting for new connection... [12:33:45] Sock 9.Parse request [12:33:45]Sock 9.Check first char [12:33:45]Sock 9.First char is OK [12:33:45]request: POST /json_proto HTTP/1.0 [12:33:45]Method: POST [12:33:45]URL: /json_proto [12:33:45]Method is POST - this is cgi request [12:33:45]url: /json_proto [12:33:45]query_string will be loaded in cgi processing [12:33:45]execute_cgi json_proto POST (null) [12:33:45]execute_cgi path=json_proto method=POST [12:33:45]POST find Content-Length [12:33:45]Host: 172.17.44.195:8080 [12:33:45]Content-Length: 801 [12:33:45]Content-Type: application/json [12:33:45] [12:33:45]POST finish read [12:33:45]Found Content-Length = 801 [12:33:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1646597", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:45]execute_script... [12:33:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1646597", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:45]POST & json_proto [12:33:45]process_json_proto [12:33:45]json parsed OK: [12:33:45]protocol is kg_v1.0 [12:33:45]action value=close_receipt [12:33:45]process_action close_receipt [12:33:45]cmd_close_receipt [12:33:45]MH_GetDate [12:33:45]Write to MH i2c: F0 00 00 37 2F 55 [12:33:45]Write i2c OK [12:33:45]MH_I2C_Read... [12:33:45]Read from MH i2c: F0 [12:33:45]MH_I2C_Read... [12:33:45]Read from MH i2c: F0 09 00 [12:33:45]MH_I2C_Read... [12:33:45]Read from MH i2c: F0 09 00 37 2F 00 AD 9B 17 67 82 C9 CF 66 A4 [12:33:45]GetLastDocTimeStamp 1729600356 [12:33:45]current date 1729600429 [12:33:45]FM_GetShiftState [12:33:45]SAM_PROTO_GetShiftState [12:33:45]wFMCommunicate request_size=4 [12:33:45]MH_SAM_APDU [12:33:45]CAPDU: 80 13 01 00 [12:33:45]Write to MH i2c: E2 08 00 38 2F 80 13 01 00 00 00 00 00 E4 [12:33:45]Write i2c OK [12:33:45]MH_I2C_Read... [12:33:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:45]Read from MH i2c: E2 [12:33:45]MH_I2C_Read... [12:33:45]Read from MH i2c: E2 0E 00 [12:33:45]MH_I2C_Read... [12:33:45]Read from MH i2c: E2 0E 00 38 2F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 AB [12:33:45]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:33:45]wFMCommunicate OK [12:33:45]SAM_PROTO_GetShiftState done [12:33:45]FM_GetShiftState done [12:33:45]opened in 1729555538 [12:33:45]opened+sec_in_day 1729641938 [12:33:45]quantity*price = 0 [12:33:45]sum+1 = 1 [12:33:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 154 22.10.2024 12:33 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливные Талоны 1646597 ФМ: 0000000000871839 ФД: 228190 ФПД: 137372958089946 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123349&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228190&fm=137372958089946&tin=02508201610067®Number=0000000000091685&sum=0 [12:33:47]StoreToDocumentArchive [12:33:47]shift 535 fd 228190 [12:33:47]save to /storage/0535/doc_00228190 [12:33:47]save last doc name /storage/0535/doc_00228190 to /storage/kkm_last_doc_name [12:33:47]save OK [12:33:47]Clear old archive folders... [12:33:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:33:47]tlvbuf is 008CA5D0 [12:33:47]SAM_PROTO_ClearQueue [12:33:47]wFMCommunicate request_size=4 [12:33:47]MH_SAM_APDU [12:33:47]CAPDU: 80 09 00 00 [12:33:47]Write to MH i2c: E2 08 00 45 2F 80 09 00 00 00 00 00 00 E6 [12:33:47]Write i2c OK [12:33:47]MH_I2C_Read... [12:33:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:47]Read from MH i2c: E2 [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: E2 03 00 [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: E2 03 00 45 2F 00 90 00 E8 [12:33:47]RAPDU: 90 00 [12:33:47]wFMCommunicate OK [12:33:47]SAM_PROTO_ClearQueue done [12:33:47]KKMCreateOFDPacket [12:33:47]OFDProtocolAddRootSTLVToBuf [12:33:47]FM_MakeSignedData [12:33:47]FM_MakeSignedData [12:33:47]SAM_PROTO_SignData [12:33:47]wFMCommunicate request_size=4 [12:33:47]MH_SAM_APDU [12:33:47]CAPDU: 80 0D 01 02 [12:33:47]Write to MH i2c: E2 08 00 46 2F 80 0D 01 02 00 00 00 00 EE [12:33:47]Write i2c OK [12:33:47]MH_I2C_Read... [12:33:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:47]Read from MH i2c: E2 [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: E2 03 00 [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: E2 03 00 46 2F 00 90 00 E9 [12:33:47]RAPDU: 90 00 [12:33:47]wFMCommunicate OK [12:33:47]wFMCommunicate request_size=255 [12:33:47]MH_SAM_APDU [12:33: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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 AD 9B 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5E 7B 03 00 35 04 06 00 7C [12:33:47]Write to MH i2c: E2 02 01 47 2F 80 0D 02 02 FA 00 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 AD 9B 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5E 7B 03 00 35 04 06 00 7C 00 00 0C [12:33:47]Write i2c OK [12:33:47]MH_I2C_Read... [12:33:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:47]Read from MH i2c: E2 [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: E2 03 00 [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: E2 03 00 47 2F 00 90 00 EA [12:33:47]RAPDU: 90 00 [12:33:47]wFMCommunicate OK [12:33:47]wFMCommunicate request_size=10 [12:33:47]MH_SAM_APDU [12:33:47]CAPDU: 80 0D 02 02 05 F0 A2 5E 62 DA [12:33:47]Write to MH i2c: E2 0D 00 48 2F 80 0D 02 02 05 00 F0 A2 5E 62 DA 00 00 27 [12:33:47]Write i2c OK [12:33:47]MH_I2C_Read... [12:33:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:47]Read from MH i2c: E2 [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: E2 03 00 [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: E2 03 00 48 2F 00 90 00 EB [12:33:47]RAPDU: 90 00 [12:33:47]wFMCommunicate OK [12:33:47]wFMCommunicate request_size=4 [12:33:47]MH_SAM_APDU [12:33:47]CAPDU: 80 0D 03 02 [12:33:47]Write to MH i2c: E2 08 00 49 2F 80 0D 03 02 00 00 00 00 F3 [12:33:47]Write i2c OK [12:33:47]MH_I2C_Read... [12:33:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:47]Read from MH i2c: E2 [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: E2 0B 00 [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: E2 0B 00 49 2F 00 CC B2 10 33 59 6B 0D 00 90 00 86 [12:33:47]RAPDU: CC B2 10 33 59 6B 0D 00 90 00 [12:33:47]wFMCommunicate OK [12:33:47]SAM_PROTO_SignData done [12:33:47]FM_MakeSignedData done [12:33:47]CreateOFDProtocolMessage [12:33:47]wFMCommunicate request_size=4 [12:33:47]MH_SAM_APDU [12:33:47]CAPDU: 80 11 00 00 [12:33:47]Write to MH i2c: E2 08 00 4A 2F 80 11 00 00 00 00 00 00 F3 [12:33:47]Write i2c OK [12:33:47]MH_I2C_Read... [12:33:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:47]Read from MH i2c: E2 [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: E2 17 00 [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: E2 17 00 4A 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4A [12:33:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:33:47]wFMCommunicate OK [12:33:47]CreateOFDProtocolMessage done [12:33:47]OFDSenderStorePacket 228190 [12:33:47]StoreOFDPacket docnum=228190 [12:33:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 83 F4 07 01 26 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 AD 9B 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5E 7B 03 00 35 04 06 00 7C F0 A2 5E 62 DA CC B2 10 33 59 6B 0D 00 [12:33:47]CheckFolder [12:33:47]dirname=/storage/ofd_packets [12:33:47]CheckFolder done [12:33:47]ProducePacketName [12:33:47]name=ofd_packets/00228190 [12:33:47]NVStorageSaveData ofd_packets/00228190 [12:33:47]File name is /storage/ofd_packets/00228190 [12:33:47]Write 301 bytes [12:33:47]NVStorageSaveData done [12:33:47]OFDSenderStorePacket done [12:33:47]KKMCreateOFDPacket done [12:33:47]NVStorageSaveData kkm_last_timestamp [12:33:47]File name is /storage/kkm_last_timestamp [12:33:47]Write 4 bytes [12:33:47]NVStorageSaveData done [12:33:47]ExternCall_PrintAddStr [12:33:47]wPrintStart [12:33:47]Write to MH i2c: 01 00 00 4B 2F 7A [12:33:47]Write i2c OK [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: 01 [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: 01 07 00 [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: 01 07 00 4B 2F 00 00 00 00 00 FF 0F 8F [12:33:47]RasterBufferAndPrint [12:33:47]line Счет N : (1)1964633 [12:33:47]line ИНН: 02508201610067 [12:33:47]line Контрольно-Кассовый Чек [12:33:47]line ПРОДАЖА [12:33:47]line ТРК (МРК, ГНК) : 64 [12:33:47]line Товар: 2710124500 [12:33:47]line Аи-95-К-5 [12:33:47]line 10.000 * 0.00 [12:33:47]line = 0.00 [12:33:47]line НДС 12% НСП 1% [12:33:47]line > о реализуемом товаре [12:33:47]line ИТОГО: 0.00 [12:33:47]line НСП 1% : 0.00 [12:33:47]line НДС 12% : 0.00 [12:33:47]line Наличными: 0.00 [12:33:47]line Безнал.: 0.00 [12:33:47]line Место: АЗС № 133 "Партнер Нефть" [12:33:47]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:33:47]line СНО: Общий режим [12:33:47]line Чек 154 22.10.2024 12:33 [12:33:47]line Смена: 535 ФФД: 1.0 [12:33:47]line ЗНМ: 0300000091 [12:33:47]line РНМ: 0000000000091685 [12:33:47]line Версия ККМ: 001 [12:33:47]line Талоны: Топливные Талоны [12:33:47]line 1646597 [12:33:47]line ФМ: 0000000000871839 [12:33:47]line ФД: 228190 [12:33:47]line ФПД: 137372958089946 [12:33:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123349&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228190&fm=137372958089946&tin=02508201610067®Number=0000000000091685&sum=0 [12:33:47]written 0, free lines is 4095 [12:33:47]OFD Sender: Processing packet 228190 [packets to send 38, broken 37] [12:33:47]ProducePacketName [12:33:47]name=ofd_packets/00228190 [12:33:47]OFD Sender: To server: pG, [12:33:47]CommunicateWithHost lk.salyk.kg:30040 [12:33:47]ConnectInit lk.salyk.kg [12:33:47]Connected sock=10 [12:33:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 83 F4 07 01 26 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 AD 9B 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5E 7B 03 00 35 04 06 00 7C F0 A2 5E 62 DA CC B2 10 33 59 6B 0D 00 [12:33:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 4F 8A 47 00 BF 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5E 7B 03 00 F4 03 04 00 A6 46 17 67 B6 04 01 00 00 4C 4D 74 C2 95 84 A3 4B [12:33:48]CommunicateWithHost err = 0 [12:33:48]CheckOFDResponse [12:33:48]1017 (14) - 77093643461234 [12:33:48]1041 (16) - 0000000000871839 [12:33:48]1040 (4) - 228190 [12:33:48]1012 (4) - 22.10.2024 06:31 [12:33:48]1206 (1) - 0 [12:33:48]OFD Sender: Remove packet 228190 [12:33:48]ProducePacketName [12:33:48]name=ofd_packets/00228190 [12:33:48]NVStorageDeleteData [12:33:48]Write to MH i2c: 01 00 00 74 2F A3 [12:33:48]Write i2c OK [12:33:48]MH_I2C_Read... [12:33:48]Read from MH i2c: 01 [12:33:48]MH_I2C_Read... [12:33:48]Read from MH i2c: 01 07 00 [12:33:48]MH_I2C_Read... [12:33:48]Read from MH i2c: 01 07 00 74 2F 00 00 00 00 00 E0 0C 96 [12:33:48]RasterBufferAndPrint [12:33:48]line [12:33:48]line [12:33:48]line [12:33:48]line [12:33:48]line [12:33:48]written 0, free lines is 3302 [12:33:48]MH_Cut [12:33:48]Write to MH i2c: D1 01 00 7B 2F 01 7C [12:33:48]Write i2c OK [12:33:48]MH_I2C_Read... [12:33:48]Read from MH i2c: D1 [12:33:48]MH_I2C_Read... [12:33:48]Read from MH i2c: D1 01 00 [12:33:48]MH_I2C_Read... [12:33:48]Read from MH i2c: D1 01 00 7B 2F 00 7B [12:33:48]Write to MH i2c: 01 00 00 7C 2F AB [12:33:48]Write i2c OK [12:33:48]MH_I2C_Read... [12:33:48]OFD Sender: No OFD packet to send [12:33:48]*** Cut start [12:33:48]*** Partial cut [12:33:48]*** CUTSNS_PIN = 1 [12:33:48]*** CUTSNS_PIN = 0 [12:33:49]*** Brake cut motor [12:33:49]Read from MH i2c: 01 [12:33:49]MH_I2C_Read... [12:33:49]*** Stop cut motor [12:33:49]*** Cut end [12:33:49]Read from MH i2c: 01 07 00 [12:33:49]MH_I2C_Read... [12:33:49]Read from MH i2c: 01 07 00 7C 2F 00 00 00 00 00 FF 0F C0 [12:33:49]process_action close_receipt done [12:33:49]requested_data is exist [12:33:49]produce_requested_data [12:33:49]requested_item fm.sn is exist - process it [12:33:49]wFMCommunicate request_size=4 [12:33:49]MH_SAM_APDU [12:33:49]CAPDU: 80 11 00 00 [12:33:49]Write to MH i2c: E2 08 00 7D 2F 80 11 00 00 00 00 00 00 26 [12:33:49]Write i2c OK [12:33:49]MH_I2C_Read... [12:33:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:49]Read from MH i2c: E2 [12:33:49]MH_I2C_Read... [12:33:49]Read from MH i2c: E2 17 00 [12:33:49]MH_I2C_Read... [12:33:49]Read from MH i2c: E2 17 00 7D 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7D [12:33:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:33:49]wFMCommunicate OK [12:33:49]requested_item fd.num is exist - process it [12:33:49]SAM_PROTO_GetFieldsCounters [12:33:49]wFMCommunicate request_size=4 [12:33:49]MH_SAM_APDU [12:33:49]CAPDU: 80 13 00 00 [12:33:49]Write to MH i2c: E2 08 00 7E 2F 80 13 00 00 00 00 00 00 29 [12:33:49]Write i2c OK [12:33:49]MH_I2C_Read... [12:33:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:49]Read from MH i2c: E2 [12:33:49]MH_I2C_Read... [12:33:49]Read from MH i2c: E2 62 00 [12:33:49]MH_I2C_Read... [12:33:49]Read from MH i2c: E2 62 00 7E 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5E 7B 03 00 0E 04 04 00 17 02 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 15 [12:33:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5E 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:33:49]wFMCommunicate OK [12:33:49]SAM_PROTO_GetFieldsCounters done [12:33:49]requested_item shift.num is exist - process it [12:33:49]requested_item shift.opened is exist - process it [12:33:49]req_shift_opened [12:33:49]FM_GetShiftState [12:33:49]SAM_PROTO_GetShiftState [12:33:49]wFMCommunicate request_size=4 [12:33:49]MH_SAM_APDU [12:33:49]CAPDU: 80 13 01 00 [12:33:49]Write to MH i2c: E2 08 00 7F 2F 80 13 01 00 00 00 00 00 2B [12:33:49]Write i2c OK [12:33:49]MH_I2C_Read... [12:33:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:49]Read from MH i2c: E2 [12:33:49]MH_I2C_Read... [12:33:49]Read from MH i2c: E2 0E 00 [12:33:49]MH_I2C_Read... [12:33:49]Read from MH i2c: E2 0E 00 7F 2F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 F2 [12:33:49]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:33:49]wFMCommunicate OK [12:33:49]SAM_PROTO_GetShiftState done [12:33:49]FM_GetShiftState done [12:33:49]req_shift_opened done [12:33:49]requested_item shift.open_date is exist - process it [12:33:49]req_shift_open_date [12:33:49]req_shift_open_date done [12:33:49]produce_requested_data done [12:33:49]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228190,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [12:33:49]process_action_free close_receipt [12:33:49]json_value_free [12:33:49]json_value_free done [12:33:49]process_json_proto returns [12:33:49]Send response to host [12:33:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228190,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [12:33:49]free response buf [12:33:49]execute_script done [12:33:49]execute_script returns [12:33:49]free content buf [12:33:49]Sock 9.Close socket [12:33:49]Sock 9.Thread stoped [12:33:53]OFD Sender: No OFD packet to send [12:33:58]OFD Sender: No OFD packet to send [12:34:03]OFD Sender: No OFD packet to send [12:34:08]OFD Sender: No OFD packet to send [12:34:13]OFD Sender: No OFD packet to send [12:34:18]OFD Sender: No OFD packet to send [12:34:23]OFD Sender: No OFD packet to send [12:34:28]OFD Sender: No OFD packet to send [12:34:33]OFD Sender: No OFD packet to send [12:34:38]OFD Sender: No OFD packet to send [12:34:43]OFD Sender: No OFD packet to send [12:34:48]OFD Sender: No OFD packet to send [12:34:53]OFD Sender: No OFD packet to send [12:34:58]OFD Sender: No OFD packet to send [12:35:03]OFD Sender: No OFD packet to send [12:35:08]OFD Sender: No OFD packet to send [12:35:13]OFD Sender: No OFD packet to send [12:35:18]OFD Sender: No OFD packet to send [12:35:23]OFD Sender: No OFD packet to send [12:35:28]OFD Sender: No OFD packet to send [12:35:33]OFD Sender: No OFD packet to send [12:35:38]OFD Sender: No OFD packet to send [12:35:43]OFD Sender: No OFD packet to send [12:35:48]OFD Sender: No OFD packet to send [12:35:53]OFD Sender: No OFD packet to send [12:35:58]OFD Sender: No OFD packet to send [12:36:03]OFD Sender: No OFD packet to send [12:36:08]OFD Sender: No OFD packet to send [12:36:13]OFD Sender: No OFD packet to send [12:36:18]OFD Sender: No OFD packet to send [12:36:23]OFD Sender: No OFD packet to send [12:36:28]OFD Sender: No OFD packet to send [12:36:33]OFD Sender: No OFD packet to send [12:36:38]OFD Sender: No OFD packet to send [12:36:43]OFD Sender: No OFD packet to send [12:36:48]OFD Sender: No OFD packet to send [12:36:53]OFD Sender: No OFD packet to send [12:36:58]OFD Sender: No OFD packet to send [12:37:03]OFD Sender: No OFD packet to send [12:37:07]accept exits with 7 [12:37:07]New connection [12:37:07]New thread 3066994020 created [12:37:07]Thread 3067137380 joined [12:37:07]Waiting for new connection... [12:37:07] Sock 7.Parse request [12:37:07]Sock 7.Check first char [12:37:07]Sock 7.First char is OK [12:37:07]request: POST /json_proto HTTP/1.0 [12:37:07]Method: POST [12:37:07]URL: /json_proto [12:37:07]Method is POST - this is cgi request [12:37:07]url: /json_proto [12:37:07]query_string will be loaded in cgi processing [12:37:07]execute_cgi json_proto POST (null) [12:37:07]execute_cgi path=json_proto method=POST [12:37:07]POST find Content-Length [12:37:07]Host: 172.17.44.195:8080 [12:37:07]Content-Length: 683 [12:37:07]Content-Type: application/json [12:37:07] [12:37:07]POST finish read [12:37:07]Found Content-Length = 683 [12:37:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964635", "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" : 66.90, "quantity" : 14.950, "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" ] } } [12:37:07]execute_script... [12:37: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)1964635", "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" : 66.90, "quantity" : 14.950, "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" ] } } [12:37:07]POST & json_proto [12:37:07]process_json_proto [12:37:07]json parsed OK: [12:37:07]protocol is kg_v1.0 [12:37:07]action value=close_receipt [12:37:07]process_action close_receipt [12:37:07]cmd_close_receipt [12:37:07]MH_GetDate [12:37:07]Write to MH i2c: F0 00 00 80 2F 9E [12:37:07]Write i2c OK [12:37:07]MH_I2C_Read... [12:37:07]Read from MH i2c: F0 [12:37:07]MH_I2C_Read... [12:37:07]Read from MH i2c: F0 09 00 [12:37:07]MH_I2C_Read... [12:37:07]Read from MH i2c: F0 09 00 80 2F 00 77 9C 17 67 82 C9 CF 66 B8 [12:37:07]GetLastDocTimeStamp 1729600429 [12:37:07]current date 1729600631 [12:37:07]FM_GetShiftState [12:37:07]SAM_PROTO_GetShiftState [12:37:07]wFMCommunicate request_size=4 [12:37:07]MH_SAM_APDU [12:37:07]CAPDU: 80 13 01 00 [12:37:07]Write to MH i2c: E2 08 00 81 2F 80 13 01 00 00 00 00 00 2D [12:37:07]Write i2c OK [12:37:07]MH_I2C_Read... [12:37:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:07]Read from MH i2c: E2 [12:37:07]MH_I2C_Read... [12:37:07]Read from MH i2c: E2 0E 00 [12:37:07]MH_I2C_Read... [12:37:07]Read from MH i2c: E2 0E 00 81 2F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 F4 [12:37:07]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:37:07]wFMCommunicate OK [12:37:07]SAM_PROTO_GetShiftState done [12:37:07]FM_GetShiftState done [12:37:07]opened in 1729555538 [12:37:07]opened+sec_in_day 1729641938 [12:37:07]quantity*price = 100015 [12:37:07]sum+1 = 100017 [12:37:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 155 22.10.2024 12:37 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228191 ФПД: 151710111458630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123711&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228191&fm=151710111458630&tin=02508201610067®Number=0000000000091685&sum=100000 [12:37:08]StoreToDocumentArchive [12:37:08]shift 535 fd 228191 [12:37:08]save to /storage/0535/doc_00228191 [12:37:08]save last doc name /storage/0535/doc_00228191 to /storage/kkm_last_doc_name [12:37:08]save OK [12:37:08]Clear old archive folders... [12:37:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:37:08]tlvbuf is 00895C10 [12:37:08]SAM_PROTO_ClearQueue [12:37:08]wFMCommunicate request_size=4 [12:37:08]MH_SAM_APDU [12:37:08]CAPDU: 80 09 00 00 [12:37:08]Write to MH i2c: E2 08 00 8E 2F 80 09 00 00 00 00 00 00 2F [12:37:08]Write i2c OK [12:37:08]MH_I2C_Read... [12:37:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:08]Read from MH i2c: E2 [12:37:08]MH_I2C_Read... [12:37:08]Read from MH i2c: E2 03 00 [12:37:08]MH_I2C_Read... [12:37:08]Read from MH i2c: E2 03 00 8E 2F 00 90 00 31 [12:37:08]RAPDU: 90 00 [12:37:08]wFMCommunicate OK [12:37:08]SAM_PROTO_ClearQueue done [12:37:08]KKMCreateOFDPacket [12:37:08]OFDProtocolAddRootSTLVToBuf [12:37:08]FM_MakeSignedData [12:37:08]FM_MakeSignedData [12:37:08]SAM_PROTO_SignData [12:37:08]wFMCommunicate request_size=4 [12:37:08]MH_SAM_APDU [12:37:08]CAPDU: 80 0D 01 02 [12:37:08]Write to MH i2c: E2 08 00 8F 2F 80 0D 01 02 00 00 00 00 37 [12:37:08]Write i2c OK [12:37:08]MH_I2C_Read... [12:37:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:08]Read from MH i2c: E2 [12:37:08]MH_I2C_Read... [12:37:08]Read from MH i2c: E2 03 00 [12:37:08]MH_I2C_Read... [12:37:08]Read from MH i2c: E2 03 00 8F 2F 00 90 00 32 [12:37:08]RAPDU: 90 00 [12:37:08]wFMCommunicate OK [12:37:08]wFMCommunicate request_size=255 [12:37:08]MH_SAM_APDU [12:37: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 9B 00 00 00 F4 03 04 00 77 9C 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5F 7B 03 00 35 04 06 00 89 [12:37:08]Write to MH i2c: E2 02 01 90 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 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 9B 00 00 00 F4 03 04 00 77 9C 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5F 7B 03 00 35 04 06 00 89 00 00 73 [12:37:08]Write i2c OK [12:37:08]MH_I2C_Read... [12:37:08]OFD Sender: No OFD packet to send [12:37:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:08]Read from MH i2c: E2 [12:37:08]MH_I2C_Read... [12:37:08]Read from MH i2c: E2 03 00 [12:37:08]MH_I2C_Read... [12:37:08]Read from MH i2c: E2 03 00 90 2F 00 90 00 33 [12:37:08]RAPDU: 90 00 [12:37:08]wFMCommunicate OK [12:37:08]wFMCommunicate request_size=10 [12:37:08]MH_SAM_APDU [12:37:08]CAPDU: 80 0D 02 02 05 FA C3 4D 65 46 [12:37:08]Write to MH i2c: E2 0D 00 91 2F 80 0D 02 02 05 00 FA C3 4D 65 46 00 00 F9 [12:37:08]Write i2c OK [12:37:08]MH_I2C_Read... [12:37:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:08]Read from MH i2c: E2 [12:37:08]MH_I2C_Read... [12:37:08]Read from MH i2c: E2 03 00 [12:37:08]MH_I2C_Read... [12:37:08]Read from MH i2c: E2 03 00 91 2F 00 90 00 34 [12:37:08]RAPDU: 90 00 [12:37:08]wFMCommunicate OK [12:37:08]wFMCommunicate request_size=4 [12:37:08]MH_SAM_APDU [12:37:08]CAPDU: 80 0D 03 02 [12:37:08]Write to MH i2c: E2 08 00 92 2F 80 0D 03 02 00 00 00 00 3C [12:37:08]Write i2c OK [12:37:08]MH_I2C_Read... [12:37:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:08]Read from MH i2c: E2 [12:37:08]MH_I2C_Read... [12:37:08]Read from MH i2c: E2 0B 00 [12:37:08]MH_I2C_Read... [12:37:08]Read from MH i2c: E2 0B 00 92 2F 00 B4 22 D8 8E 13 FB B4 F3 90 00 2E [12:37:08]RAPDU: B4 22 D8 8E 13 FB B4 F3 90 00 [12:37:08]wFMCommunicate OK [12:37:08]SAM_PROTO_SignData done [12:37:08]FM_MakeSignedData done [12:37:08]CreateOFDProtocolMessage [12:37:08]wFMCommunicate request_size=4 [12:37:08]MH_SAM_APDU [12:37:08]CAPDU: 80 11 00 00 [12:37:08]Write to MH i2c: E2 08 00 93 2F 80 11 00 00 00 00 00 00 3C [12:37:08]Write i2c OK [12:37:08]MH_I2C_Read... [12:37:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:09]Read from MH i2c: E2 [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: E2 17 00 [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: E2 17 00 93 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 93 [12:37:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:37:09]wFMCommunicate OK [12:37:09]CreateOFDProtocolMessage done [12:37:09]OFDSenderStorePacket 228191 [12:37:09]StoreOFDPacket docnum=228191 [12:37:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 64 07 07 01 9B A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 9B 00 00 00 F4 03 04 00 77 9C 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5F 7B 03 00 35 04 06 00 89 FA C3 4D 65 46 B4 22 D8 8E 13 FB B4 F3 [12:37:09]CheckFolder [12:37:09]dirname=/storage/ofd_packets [12:37:09]CheckFolder done [12:37:09]ProducePacketName [12:37:09]name=ofd_packets/00228191 [12:37:09]NVStorageSaveData ofd_packets/00228191 [12:37:09]File name is /storage/ofd_packets/00228191 [12:37:09]Write 301 bytes [12:37:09]NVStorageSaveData done [12:37:09]OFDSenderStorePacket done [12:37:09]KKMCreateOFDPacket done [12:37:09]NVStorageSaveData kkm_last_timestamp [12:37:09]File name is /storage/kkm_last_timestamp [12:37:09]Write 4 bytes [12:37:09]NVStorageSaveData done [12:37:09]ExternCall_PrintAddStr [12:37:09]wPrintStart [12:37:09]Write to MH i2c: 01 00 00 94 2F C3 [12:37:09]Write i2c OK [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: 01 [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: 01 07 00 [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: 01 07 00 94 2F 00 00 00 00 00 FF 0F D8 [12:37:09]RasterBufferAndPrint [12:37:09]line Счет N : (1)1964635 [12:37:09]line ИНН: 02508201610067 [12:37:09]line Контрольно-Кассовый Чек [12:37:09]line ПРОДАЖА [12:37:09]line ТРК (МРК, ГНК) : 63 [12:37:09]line Товар: 2710124130 [12:37:09]line Аи-92-К-5 [12:37:09]line 14.950 * 66.90 [12:37:09]line = 1000.16 [12:37:09]line НДС 12% НСП 1% [12:37:09]line > о реализуемом товаре [12:37:09]line ОКРУГЛЕНИЕ: -0.16 [12:37:09]line ИТОГО: 1000.00 [12:37:09]line Внесено: 1000.00 [12:37:09]line СДАЧА: 0.00 [12:37:09]line НСП 1% : 8.85 [12:37:09]line НДС 12% : 106.21 [12:37:09]line Наличными: 1000.00 [12:37:09]line Безнал.: 0.00 [12:37:09]line Место: АЗС № 133 "Партнер Нефть" [12:37:09]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:37:09]line СНО: Общий режим [12:37:09]line Чек 155 22.10.2024 12:37 [12:37:09]line Смена: 535 ФФД: 1.0 [12:37:09]line ЗНМ: 0300000091 [12:37:09]line РНМ: 0000000000091685 [12:37:09]line Версия ККМ: 001 [12:37:09]line ФМ: 0000000000871839 [12:37:09]line ФД: 228191 [12:37:09]line ФПД: 151710111458630 [12:37:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123711&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228191&fm=151710111458630&tin=02508201610067®Number=0000000000091685&sum=100000 [12:37:09]OFD Sender: Processing packet 228191 [packets to send 38, broken 37] [12:37:09]ProducePacketName [12:37:09]name=ofd_packets/00228191 [12:37:09]OFD Sender: To server: pG, [12:37:09]CommunicateWithHost lk.salyk.kg:30040 [12:37:09]ConnectInit lk.salyk.kg [12:37:09]written 0, free lines is 4095 [12:37:09]Connected sock=10 [12:37:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 64 07 07 01 9B A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 9B 00 00 00 F4 03 04 00 77 9C 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5F 7B 03 00 35 04 06 00 89 FA C3 4D 65 46 B4 22 D8 8E 13 FB B4 F3 [12:37:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 68 A1 47 00 93 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5F 7B 03 00 F4 03 04 00 6F 47 17 67 B6 04 01 00 00 43 67 7A 9F 4F 41 3B BA [12:37:09]CommunicateWithHost err = 0 [12:37:09]CheckOFDResponse [12:37:09]1017 (14) - 77093643461234 [12:37:09]1041 (16) - 0000000000871839 [12:37:09]1040 (4) - 228191 [12:37:09]1012 (4) - 22.10.2024 06:34 [12:37:09]1206 (1) - 0 [12:37:09]OFD Sender: Remove packet 228191 [12:37:09]ProducePacketName [12:37:09]name=ofd_packets/00228191 [12:37:09]NVStorageDeleteData [12:37:09]Write to MH i2c: 01 00 00 BE 2F ED [12:37:09]Write i2c OK [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: 01 [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: 01 07 00 [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: 01 07 00 BE 2F 00 00 00 00 00 BB 0C BB [12:37:09]RasterBufferAndPrint [12:37:09]line [12:37:09]line [12:37:09]line [12:37:09]line [12:37:09]line [12:37:09]written 0, free lines is 3265 [12:37:09]MH_Cut [12:37:09]Write to MH i2c: D1 01 00 C5 2F 01 C6 [12:37:09]Write i2c OK [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: D1 [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: D1 01 00 [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: D1 01 00 C5 2F 00 C5 [12:37:09]Write to MH i2c: 01 00 00 C6 2F F5 [12:37:09]Write i2c OK [12:37:09]MH_I2C_Read... [12:37:10]OFD Sender: No OFD packet to send [12:37:10]*** Cut start [12:37:10]*** Partial cut [12:37:10]*** CUTSNS_PIN = 1 [12:37:10]*** CUTSNS_PIN = 0 [12:37:10]*** Brake cut motor [12:37:11]Read from MH i2c: 01 [12:37:11]MH_I2C_Read... [12:37:11]*** Stop cut motor [12:37:11]*** Cut end [12:37:11]Read from MH i2c: 01 07 00 [12:37:11]MH_I2C_Read... [12:37:11]Read from MH i2c: 01 07 00 C6 2F 00 00 00 00 00 FF 0F 0A [12:37:11]process_action close_receipt done [12:37:11]requested_data is exist [12:37:11]produce_requested_data [12:37:11]requested_item fm.sn is exist - process it [12:37:11]wFMCommunicate request_size=4 [12:37:11]MH_SAM_APDU [12:37:11]CAPDU: 80 11 00 00 [12:37:11]Write to MH i2c: E2 08 00 C7 2F 80 11 00 00 00 00 00 00 70 [12:37:11]Write i2c OK [12:37:11]MH_I2C_Read... [12:37:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:11]Read from MH i2c: E2 [12:37:11]MH_I2C_Read... [12:37:11]Read from MH i2c: E2 17 00 [12:37:11]MH_I2C_Read... [12:37:11]Read from MH i2c: E2 17 00 C7 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C7 [12:37:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:37:11]wFMCommunicate OK [12:37:11]requested_item fd.num is exist - process it [12:37:11]SAM_PROTO_GetFieldsCounters [12:37:11]wFMCommunicate request_size=4 [12:37:11]MH_SAM_APDU [12:37:11]CAPDU: 80 13 00 00 [12:37:11]Write to MH i2c: E2 08 00 C8 2F 80 13 00 00 00 00 00 00 73 [12:37:11]Write i2c OK [12:37:11]MH_I2C_Read... [12:37:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:11]Read from MH i2c: E2 [12:37:11]MH_I2C_Read... [12:37:11]Read from MH i2c: E2 62 00 [12:37:11]MH_I2C_Read... [12:37:11]Read from MH i2c: E2 62 00 C8 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5F 7B 03 00 0E 04 04 00 17 02 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 63 [12:37:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5F 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:37:11]wFMCommunicate OK [12:37:11]SAM_PROTO_GetFieldsCounters done [12:37:11]requested_item shift.num is exist - process it [12:37:11]requested_item shift.opened is exist - process it [12:37:11]req_shift_opened [12:37:11]FM_GetShiftState [12:37:11]SAM_PROTO_GetShiftState [12:37:11]wFMCommunicate request_size=4 [12:37:11]MH_SAM_APDU [12:37:11]CAPDU: 80 13 01 00 [12:37:11]Write to MH i2c: E2 08 00 C9 2F 80 13 01 00 00 00 00 00 75 [12:37:11]Write i2c OK [12:37:11]MH_I2C_Read... [12:37:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:11]Read from MH i2c: E2 [12:37:11]MH_I2C_Read... [12:37:11]Read from MH i2c: E2 0E 00 [12:37:11]MH_I2C_Read... [12:37:11]Read from MH i2c: E2 0E 00 C9 2F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 3C [12:37:11]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:37:11]wFMCommunicate OK [12:37:11]SAM_PROTO_GetShiftState done [12:37:11]FM_GetShiftState done [12:37:11]req_shift_opened done [12:37:11]requested_item shift.open_date is exist - process it [12:37:11]req_shift_open_date [12:37:11]req_shift_open_date done [12:37:11]produce_requested_data done [12:37:11]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228191,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [12:37:11]process_action_free close_receipt [12:37:11]json_value_free [12:37:11]json_value_free done [12:37:11]process_json_proto returns [12:37:11]Send response to host [12:37:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228191,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [12:37:11]free response buf [12:37:11]execute_script done [12:37:11]execute_script returns [12:37:11]free content buf [12:37:11]Sock 7.Close socket [12:37:11]Sock 7.Thread stoped [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:45]accept exits with 9 [12:37:45]New connection [12:37:45]New thread 3067137380 created [12:37:45]Thread 3066994020 joined [12:37:45]Waiting for new connection... [12:37:45] Sock 9.Parse request [12:37:45]Sock 9.Check first char [12:37:45]Sock 9.First char is OK [12:37:45]request: POST /json_proto HTTP/1.0 [12:37:45]Method: POST [12:37:45]URL: /json_proto [12:37:45]Method is POST - this is cgi request [12:37:45]url: /json_proto [12:37:45]query_string will be loaded in cgi processing [12:37:45]execute_cgi json_proto POST (null) [12:37:45]execute_cgi path=json_proto method=POST [12:37:45]POST find Content-Length [12:37:45]Host: 172.17.44.195:8080 [12:37:45]Content-Length: 790 [12:37:45]Content-Type: application/json [12:37:45] [12:37:45]POST finish read [12:37:45]Found Content-Length = 790 [12:37:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964636", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43393", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:45]execute_script... [12:37: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)1964636", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43393", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:45]POST & json_proto [12:37:45]process_json_proto [12:37:45]json parsed OK: [12:37:45]protocol is kg_v1.0 [12:37:45]action value=close_receipt [12:37:45]process_action close_receipt [12:37:45]cmd_close_receipt [12:37:45]MH_GetDate [12:37:45]Write to MH i2c: F0 00 00 CA 2F E8 [12:37:45]Write i2c OK [12:37:45]MH_I2C_Read... [12:37:45]Read from MH i2c: F0 [12:37:45]MH_I2C_Read... [12:37:45]Read from MH i2c: F0 09 00 [12:37:45]MH_I2C_Read... [12:37:45]Read from MH i2c: F0 09 00 CA 2F 00 9D 9C 17 67 82 C9 CF 66 28 [12:37:45]GetLastDocTimeStamp 1729600631 [12:37:45]current date 1729600669 [12:37:45]FM_GetShiftState [12:37:45]SAM_PROTO_GetShiftState [12:37:45]wFMCommunicate request_size=4 [12:37:45]MH_SAM_APDU [12:37:45]CAPDU: 80 13 01 00 [12:37:45]Write to MH i2c: E2 08 00 CB 2F 80 13 01 00 00 00 00 00 77 [12:37:45]Write i2c OK [12:37:45]MH_I2C_Read... [12:37:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:45]Read from MH i2c: E2 [12:37:45]MH_I2C_Read... [12:37:45]Read from MH i2c: E2 0E 00 [12:37:45]MH_I2C_Read... [12:37:45]Read from MH i2c: E2 0E 00 CB 2F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 3E [12:37:45]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:37:45]wFMCommunicate OK [12:37:45]SAM_PROTO_GetShiftState done [12:37:45]FM_GetShiftState done [12:37:45]opened in 1729555538 [12:37:45]opened+sec_in_day 1729641938 [12:37:45]quantity*price = 0 [12:37:45]sum+1 = 1 [12:37:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 156 22.10.2024 12:37 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливная Карта 43393 ФМ: 0000000000871839 ФД: 228192 ФПД: 199243319405336 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123749&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228192&fm=199243319405336&tin=02508201610067®Number=0000000000091685&sum=0 [12:37:46]StoreToDocumentArchive [12:37:46]shift 535 fd 228192 [12:37:46]save to /storage/0535/doc_00228192 [12:37:46]save last doc name /storage/0535/doc_00228192 to /storage/kkm_last_doc_name [12:37:46]save OK [12:37:46]Clear old archive folders... [12:37:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:37:46]tlvbuf is 008E7790 [12:37:46]SAM_PROTO_ClearQueue [12:37:46]wFMCommunicate request_size=4 [12:37:46]MH_SAM_APDU [12:37:46]CAPDU: 80 09 00 00 [12:37:46]Write to MH i2c: E2 08 00 D8 2F 80 09 00 00 00 00 00 00 79 [12:37:46]Write i2c OK [12:37:46]MH_I2C_Read... [12:37:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:46]Read from MH i2c: E2 [12:37:46]MH_I2C_Read... [12:37:46]Read from MH i2c: E2 03 00 [12:37:46]MH_I2C_Read... [12:37:46]Read from MH i2c: E2 03 00 D8 2F 00 90 00 7B [12:37:46]RAPDU: 90 00 [12:37:46]wFMCommunicate OK [12:37:46]SAM_PROTO_ClearQueue done [12:37:46]KKMCreateOFDPacket [12:37:46]OFDProtocolAddRootSTLVToBuf [12:37:46]FM_MakeSignedData [12:37:46]FM_MakeSignedData [12:37:46]SAM_PROTO_SignData [12:37:46]wFMCommunicate request_size=4 [12:37:46]MH_SAM_APDU [12:37:46]CAPDU: 80 0D 01 02 [12:37:46]Write to MH i2c: E2 08 00 D9 2F 80 0D 01 02 00 00 00 00 81 [12:37:46]Write i2c OK [12:37:46]MH_I2C_Read... [12:37:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:46]Read from MH i2c: E2 [12:37:46]MH_I2C_Read... [12:37:46]Read from MH i2c: E2 03 00 [12:37:46]MH_I2C_Read... [12:37:46]Read from MH i2c: E2 03 00 D9 2F 00 90 00 7C [12:37:46]RAPDU: 90 00 [12:37:46]wFMCommunicate OK [12:37:46]wFMCommunicate request_size=255 [12:37:46]MH_SAM_APDU [12:37: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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 9D 9C 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 60 7B 03 00 35 04 06 00 B5 35 F3 46 [12:37:46]Write to MH i2c: E2 02 01 DA 2F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 9D 9C 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 60 7B 03 00 35 04 06 00 B5 35 F3 46 00 00 C1 [12:37:46]Write i2c OK [12:37:46]MH_I2C_Read... [12:37:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:46]Read from MH i2c: E2 [12:37:46]MH_I2C_Read... [12:37:46]Read from MH i2c: E2 03 00 [12:37:46]MH_I2C_Read... [12:37:46]Read from MH i2c: E2 03 00 DA 2F 00 90 00 7D [12:37:46]RAPDU: 90 00 [12:37:46]wFMCommunicate OK [12:37:46]wFMCommunicate request_size=7 [12:37:46]MH_SAM_APDU [12:37:46]CAPDU: 80 0D 02 02 02 EB 18 [12:37:46]Write to MH i2c: E2 0A 00 DB 2F 80 0D 02 02 02 00 EB 18 00 00 8B [12:37:46]Write i2c OK [12:37:46]MH_I2C_Read... [12:37:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:46]Read from MH i2c: E2 [12:37:46]MH_I2C_Read... [12:37:46]Read from MH i2c: E2 03 00 [12:37:46]MH_I2C_Read... [12:37:46]Read from MH i2c: E2 03 00 DB 2F 00 90 00 7E [12:37:46]RAPDU: 90 00 [12:37:46]wFMCommunicate OK [12:37:46]wFMCommunicate request_size=4 [12:37:46]MH_SAM_APDU [12:37:46]CAPDU: 80 0D 03 02 [12:37:46]Write to MH i2c: E2 08 00 DC 2F 80 0D 03 02 00 00 00 00 86 [12:37:46]Write i2c OK [12:37:46]MH_I2C_Read... [12:37:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:46]Read from MH i2c: E2 [12:37:46]MH_I2C_Read... [12:37:46]Read from MH i2c: E2 0B 00 [12:37:46]MH_I2C_Read... [12:37:47]Read from MH i2c: E2 0B 00 DC 2F 00 95 D0 E3 73 94 EF 1E E5 90 00 C8 [12:37:47]RAPDU: 95 D0 E3 73 94 EF 1E E5 90 00 [12:37:47]wFMCommunicate OK [12:37:47]SAM_PROTO_SignData done [12:37:47]FM_MakeSignedData done [12:37:47]CreateOFDProtocolMessage [12:37:47]wFMCommunicate request_size=4 [12:37:47]MH_SAM_APDU [12:37:47]CAPDU: 80 11 00 00 [12:37:47]Write to MH i2c: E2 08 00 DD 2F 80 11 00 00 00 00 00 00 86 [12:37:47]Write i2c OK [12:37:47]MH_I2C_Read... [12:37:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:47]Read from MH i2c: E2 [12:37:47]MH_I2C_Read... [12:37:47]Read from MH i2c: E2 17 00 [12:37:47]MH_I2C_Read... [12:37:47]Read from MH i2c: E2 17 00 DD 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DD [12:37:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:37:47]wFMCommunicate OK [12:37:47]CreateOFDProtocolMessage done [12:37:47]OFDSenderStorePacket 228192 [12:37:47]StoreOFDPacket docnum=228192 [12:37:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 D6 A4 04 01 E4 18 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 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 9D 9C 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 60 7B 03 00 35 04 06 00 B5 35 F3 46 EB 18 95 D0 E3 73 94 EF 1E E5 [12:37:47]CheckFolder [12:37:47]dirname=/storage/ofd_packets [12:37:47]CheckFolder done [12:37:47]ProducePacketName [12:37:47]name=ofd_packets/00228192 [12:37:47]NVStorageSaveData ofd_packets/00228192 [12:37:47]File name is /storage/ofd_packets/00228192 [12:37:47]Write 298 bytes [12:37:47]NVStorageSaveData done [12:37:47]OFDSenderStorePacket done [12:37:47]KKMCreateOFDPacket done [12:37:47]NVStorageSaveData kkm_last_timestamp [12:37:47]File name is /storage/kkm_last_timestamp [12:37:47]Write 4 bytes [12:37:47]NVStorageSaveData done [12:37:47]ExternCall_PrintAddStr [12:37:47]wPrintStart [12:37:47]Write to MH i2c: 01 00 00 DE 2F 0D [12:37:47]Write i2c OK [12:37:47]MH_I2C_Read... [12:37:47]Read from MH i2c: 01 [12:37:47]MH_I2C_Read... [12:37:47]Read from MH i2c: 01 07 00 [12:37:47]MH_I2C_Read... [12:37:47]Read from MH i2c: 01 07 00 DE 2F 00 00 00 00 00 FF 0F 22 [12:37:47]RasterBufferAndPrint [12:37:47]line Счет N : (1)1964636 [12:37:47]line ИНН: 02508201610067 [12:37:47]line Контрольно-Кассовый Чек [12:37:47]line ПРОДАЖА [12:37:47]line ТРК (МРК, ГНК) : 21 [12:37:47]line Товар: 2710194210 [12:37:47]line ДТ-К-5 [12:37:47]line 20.000 * 0.00 [12:37:47]line = 0.00 [12:37:47]line НДС 12% НСП 1% [12:37:47]line > о реализуемом товаре [12:37:47]line ИТОГО: 0.00 [12:37:47]line НСП 1% : 0.00 [12:37:47]line НДС 12% : 0.00 [12:37:47]line Наличными: 0.00 [12:37:47]line Безнал.: 0.00 [12:37:47]line Место: АЗС № 133 "Партнер Нефть" [12:37:47]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:37:47]line СНО: Общий режим [12:37:47]line Чек 156 22.10.2024 12:37 [12:37:47]line Смена: 535 ФФД: 1.0 [12:37:47]line ЗНМ: 0300000091 [12:37:47]line РНМ: 0000000000091685 [12:37:47]line Версия ККМ: 001 [12:37:47]line Талоны: Топливная Карта [12:37:47]line 43393 [12:37:47]line ФМ: 0000000000871839 [12:37:47]line ФД: 228192 [12:37:47]line ФПД: 199243319405336 [12:37:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123749&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228192&fm=199243319405336&tin=02508201610067®Number=0000000000091685&sum=0 [12:37:47]OFD Sender: Processing packet 228192 [packets to send 38, broken 37] [12:37:47]ProducePacketName [12:37:47]name=ofd_packets/00228192 [12:37:47]OFD Sender: To server: pG, [12:37:47]CommunicateWithHost lk.salyk.kg:30040 [12:37:47]ConnectInit lk.salyk.kg [12:37:47]written 0, free lines is 4095 [12:37:47]Connected sock=10 [12:37:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 D6 A4 04 01 E4 18 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 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 9D 9C 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 60 7B 03 00 35 04 06 00 B5 35 F3 46 EB 18 95 D0 E3 73 94 EF 1E E5 [12:37:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 3D 94 47 00 CF 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 60 7B 03 00 F4 03 04 00 95 47 17 67 B6 04 01 00 00 BC 5C 1C 01 7F 2B AA 7D [12:37:47]CommunicateWithHost err = 0 [12:37:47]CheckOFDResponse [12:37:47]1017 (14) - 77093643461234 [12:37:47]1041 (16) - 0000000000871839 [12:37:47]1040 (4) - 228192 [12:37:47]1012 (4) - 22.10.2024 06:35 [12:37:47]1206 (1) - 0 [12:37:47]OFD Sender: Remove packet 228192 [12:37:47]ProducePacketName [12:37:47]name=ofd_packets/00228192 [12:37:47]NVStorageDeleteData [12:37:47]Write to MH i2c: 01 00 00 07 30 37 [12:37:47]Write i2c OK [12:37:47]MH_I2C_Read... [12:37:47]Read from MH i2c: 01 [12:37:47]MH_I2C_Read... [12:37:47]Read from MH i2c: 01 07 00 [12:37:47]MH_I2C_Read... [12:37:47]Read from MH i2c: 01 07 00 07 30 00 00 00 00 00 D6 0C 20 [12:37:47]RasterBufferAndPrint [12:37:47]line [12:37:47]line [12:37:47]line [12:37:47]line [12:37:47]line [12:37:47]written 0, free lines is 3292 [12:37:47]MH_Cut [12:37:47]Write to MH i2c: D1 01 00 0E 30 01 10 [12:37:47]Write i2c OK [12:37:47]MH_I2C_Read... [12:37:47]Read from MH i2c: D1 [12:37:47]MH_I2C_Read... [12:37:47]Read from MH i2c: D1 01 00 [12:37:47]MH_I2C_Read... [12:37:47]Read from MH i2c: D1 01 00 0E 30 00 0F [12:37:47]Write to MH i2c: 01 00 00 0F 30 3F [12:37:47]Write i2c OK [12:37:47]MH_I2C_Read... [12:37:48]OFD Sender: No OFD packet to send [12:37:48]*** Cut start [12:37:48]*** Partial cut [12:37:48]*** CUTSNS_PIN = 1 [12:37:48]*** CUTSNS_PIN = 0 [12:37:48]*** Brake cut motor [12:37:49]Read from MH i2c: 01 [12:37:49]MH_I2C_Read... [12:37:49]*** Stop cut motor [12:37:49]*** Cut end [12:37:49]Read from MH i2c: 01 07 00 [12:37:49]MH_I2C_Read... [12:37:49]Read from MH i2c: 01 07 00 0F 30 00 00 00 00 00 FF 0F 54 [12:37:49]process_action close_receipt done [12:37:49]requested_data is exist [12:37:49]produce_requested_data [12:37:49]requested_item fm.sn is exist - process it [12:37:49]wFMCommunicate request_size=4 [12:37:49]MH_SAM_APDU [12:37:49]CAPDU: 80 11 00 00 [12:37:49]Write to MH i2c: E2 08 00 10 30 80 11 00 00 00 00 00 00 BA [12:37:49]Write i2c OK [12:37:49]MH_I2C_Read... [12:37:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:49]Read from MH i2c: E2 [12:37:49]MH_I2C_Read... [12:37:49]Read from MH i2c: E2 17 00 [12:37:49]MH_I2C_Read... [12:37:49]Read from MH i2c: E2 17 00 10 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 11 [12:37:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:37:49]wFMCommunicate OK [12:37:49]requested_item fd.num is exist - process it [12:37:49]SAM_PROTO_GetFieldsCounters [12:37:49]wFMCommunicate request_size=4 [12:37:49]MH_SAM_APDU [12:37:49]CAPDU: 80 13 00 00 [12:37:49]Write to MH i2c: E2 08 00 11 30 80 13 00 00 00 00 00 00 BD [12:37:49]Write i2c OK [12:37:49]MH_I2C_Read... [12:37:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:49]Read from MH i2c: E2 [12:37:49]MH_I2C_Read... [12:37:49]Read from MH i2c: E2 62 00 [12:37:49]MH_I2C_Read... [12:37:49]Read from MH i2c: E2 62 00 11 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 60 7B 03 00 0E 04 04 00 17 02 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 B1 [12:37:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 60 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:37:49]wFMCommunicate OK [12:37:49]SAM_PROTO_GetFieldsCounters done [12:37:49]requested_item shift.num is exist - process it [12:37:49]requested_item shift.opened is exist - process it [12:37:49]req_shift_opened [12:37:49]FM_GetShiftState [12:37:49]SAM_PROTO_GetShiftState [12:37:49]wFMCommunicate request_size=4 [12:37:49]MH_SAM_APDU [12:37:49]CAPDU: 80 13 01 00 [12:37:49]Write to MH i2c: E2 08 00 12 30 80 13 01 00 00 00 00 00 BF [12:37:49]Write i2c OK [12:37:49]MH_I2C_Read... [12:37:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:49]Read from MH i2c: E2 [12:37:49]MH_I2C_Read... [12:37:49]Read from MH i2c: E2 0E 00 [12:37:49]MH_I2C_Read... [12:37:49]Read from MH i2c: E2 0E 00 12 30 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 86 [12:37:49]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:37:49]wFMCommunicate OK [12:37:49]SAM_PROTO_GetShiftState done [12:37:49]FM_GetShiftState done [12:37:49]req_shift_opened done [12:37:49]requested_item shift.open_date is exist - process it [12:37:49]req_shift_open_date [12:37:49]req_shift_open_date done [12:37:49]produce_requested_data done [12:37:49]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228192,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [12:37:49]process_action_free close_receipt [12:37:49]json_value_free [12:37:49]json_value_free done [12:37:49]process_json_proto returns [12:37:49]Send response to host [12:37:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228192,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [12:37:49]free response buf [12:37:49]execute_script done [12:37:49]execute_script returns [12:37:49]free content buf [12:37:49]Sock 9.Close socket [12:37:49]Sock 9.Thread stoped [12:37:53]OFD Sender: No OFD packet to send [12:37:58]OFD Sender: No OFD packet to send [12:38:03]OFD Sender: No OFD packet to send [12:38:08]OFD Sender: No OFD packet to send [12:38:13]OFD Sender: No OFD packet to send [12:38:18]OFD Sender: No OFD packet to send [12:38:23]OFD Sender: No OFD packet to send [12:38:23]accept exits with 7 [12:38:23]New connection [12:38:23]New thread 3066994020 created [12:38:23]Thread 3067137380 joined [12:38:23]Waiting for new connection... [12:38:23] Sock 7.Parse request [12:38:23]Sock 7.Check first char [12:38:23]Sock 7.First char is OK [12:38:23]request: POST /json_proto HTTP/1.0 [12:38:23]Method: POST [12:38:23]URL: /json_proto [12:38:23]Method is POST - this is cgi request [12:38:23]url: /json_proto [12:38:23]query_string will be loaded in cgi processing [12:38:23]execute_cgi json_proto POST (null) [12:38:23]execute_cgi path=json_proto method=POST [12:38:23]POST find Content-Length [12:38:23]Host: 172.17.44.195:8080 [12:38:23]Content-Length: 683 [12:38:23]Content-Type: application/json [12:38:23] [12:38:23]POST finish read [12:38:23]Found Content-Length = 683 [12:38:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "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" ] } } [12:38:23]execute_script... [12:38: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)1964637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "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" ] } } [12:38:23]POST & json_proto [12:38:23]process_json_proto [12:38:23]json parsed OK: [12:38:23]protocol is kg_v1.0 [12:38:23]action value=close_receipt [12:38:23]process_action close_receipt [12:38:23]cmd_close_receipt [12:38:23]MH_GetDate [12:38:23]Write to MH i2c: F0 00 00 13 30 32 [12:38:23]Write i2c OK [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: F0 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: F0 09 00 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: F0 09 00 13 30 00 C3 9C 17 67 82 C9 CF 66 98 [12:38:23]GetLastDocTimeStamp 1729600669 [12:38:23]current date 1729600707 [12:38:23]FM_GetShiftState [12:38:23]SAM_PROTO_GetShiftState [12:38:23]wFMCommunicate request_size=4 [12:38:23]MH_SAM_APDU [12:38:23]CAPDU: 80 13 01 00 [12:38:23]Write to MH i2c: E2 08 00 14 30 80 13 01 00 00 00 00 00 C1 [12:38:23]Write i2c OK [12:38:23]MH_I2C_Read... [12:38:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:23]Read from MH i2c: E2 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: E2 0E 00 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: E2 0E 00 14 30 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 88 [12:38:23]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:38:23]wFMCommunicate OK [12:38:23]SAM_PROTO_GetShiftState done [12:38:23]FM_GetShiftState done [12:38:23]opened in 1729555538 [12:38:23]opened+sec_in_day 1729641938 [12:38:23]quantity*price = 100015 [12:38:23]sum+1 = 100017 [12:38:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 157 22.10.2024 12:38 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228193 ФПД: 219108519803864 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123827&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228193&fm=219108519803864&tin=02508201610067®Number=0000000000091685&sum=100000 [12:38:24]StoreToDocumentArchive [12:38:24]shift 535 fd 228193 [12:38:24]save to /storage/0535/doc_00228193 [12:38:24]save last doc name /storage/0535/doc_00228193 to /storage/kkm_last_doc_name [12:38:24]save OK [12:38:24]Clear old archive folders... [12:38:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:38:24]tlvbuf is 0085D710 [12:38:24]SAM_PROTO_ClearQueue [12:38:24]wFMCommunicate request_size=4 [12:38:24]MH_SAM_APDU [12:38:24]CAPDU: 80 09 00 00 [12:38:24]Write to MH i2c: E2 08 00 21 30 80 09 00 00 00 00 00 00 C3 [12:38:24]Write i2c OK [12:38:24]MH_I2C_Read... [12:38:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:24]Read from MH i2c: E2 [12:38:24]MH_I2C_Read... [12:38:24]Read from MH i2c: E2 03 00 [12:38:24]MH_I2C_Read... [12:38:24]Read from MH i2c: E2 03 00 21 30 00 90 00 C5 [12:38:24]RAPDU: 90 00 [12:38:24]wFMCommunicate OK [12:38:24]SAM_PROTO_ClearQueue done [12:38:24]KKMCreateOFDPacket [12:38:24]OFDProtocolAddRootSTLVToBuf [12:38:24]FM_MakeSignedData [12:38:24]FM_MakeSignedData [12:38:24]SAM_PROTO_SignData [12:38:24]wFMCommunicate request_size=4 [12:38:24]MH_SAM_APDU [12:38:24]CAPDU: 80 0D 01 02 [12:38:24]Write to MH i2c: E2 08 00 22 30 80 0D 01 02 00 00 00 00 CB [12:38:24]Write i2c OK [12:38:24]MH_I2C_Read... [12:38:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:25]Read from MH i2c: E2 [12:38:25]MH_I2C_Read... [12:38:25]Read from MH i2c: E2 03 00 [12:38:25]MH_I2C_Read... [12:38:25]Read from MH i2c: E2 03 00 22 30 00 90 00 C6 [12:38:25]RAPDU: 90 00 [12:38:25]wFMCommunicate OK [12:38:25]wFMCommunicate request_size=255 [12:38:25]MH_SAM_APDU [12:38: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 9D 00 00 00 F4 03 04 00 C3 9C 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 61 7B 03 00 35 04 06 00 C7 [12:38:25]Write to MH i2c: E2 02 01 23 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 9D 00 00 00 F4 03 04 00 C3 9C 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 61 7B 03 00 35 04 06 00 C7 00 00 95 [12:38:25]Write i2c OK [12:38:25]MH_I2C_Read... [12:38:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:25]Read from MH i2c: E2 [12:38:25]MH_I2C_Read... [12:38:25]Read from MH i2c: E2 03 00 [12:38:25]MH_I2C_Read... [12:38:25]Read from MH i2c: E2 03 00 23 30 00 90 00 C7 [12:38:25]RAPDU: 90 00 [12:38:25]wFMCommunicate OK [12:38:25]wFMCommunicate request_size=10 [12:38:25]MH_SAM_APDU [12:38:25]CAPDU: 80 0D 02 02 05 47 2D 7D 7B D8 [12:38:25]Write to MH i2c: E2 0D 00 24 30 80 0D 02 02 05 00 47 2D 7D 7B D8 00 00 1C [12:38:25]Write i2c OK [12:38:25]MH_I2C_Read... [12:38:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:25]Read from MH i2c: E2 [12:38:25]MH_I2C_Read... [12:38:25]Read from MH i2c: E2 03 00 [12:38:25]MH_I2C_Read... [12:38:25]Read from MH i2c: E2 03 00 24 30 00 90 00 C8 [12:38:25]RAPDU: 90 00 [12:38:25]wFMCommunicate OK [12:38:25]wFMCommunicate request_size=4 [12:38:25]MH_SAM_APDU [12:38:25]CAPDU: 80 0D 03 02 [12:38:25]Write to MH i2c: E2 08 00 25 30 80 0D 03 02 00 00 00 00 D0 [12:38:25]Write i2c OK [12:38:25]MH_I2C_Read... [12:38:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:25]Read from MH i2c: E2 [12:38:25]MH_I2C_Read... [12:38:25]Read from MH i2c: E2 0B 00 [12:38:25]MH_I2C_Read... [12:38:25]Read from MH i2c: E2 0B 00 25 30 00 CA AE 02 D1 56 CB 22 FB 90 00 5A [12:38:25]RAPDU: CA AE 02 D1 56 CB 22 FB 90 00 [12:38:25]wFMCommunicate OK [12:38:25]SAM_PROTO_SignData done [12:38:25]FM_MakeSignedData done [12:38:25]CreateOFDProtocolMessage [12:38:25]wFMCommunicate request_size=4 [12:38:25]MH_SAM_APDU [12:38:25]CAPDU: 80 11 00 00 [12:38:25]Write to MH i2c: E2 08 00 26 30 80 11 00 00 00 00 00 00 D0 [12:38:25]Write i2c OK [12:38:25]MH_I2C_Read... [12:38:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:25]Read from MH i2c: E2 [12:38:25]MH_I2C_Read... [12:38:25]Read from MH i2c: E2 17 00 [12:38:25]MH_I2C_Read... [12:38:25]Read from MH i2c: E2 17 00 26 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 27 [12:38:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:38:25]wFMCommunicate OK [12:38:25]CreateOFDProtocolMessage done [12:38:25]OFDSenderStorePacket 228193 [12:38:25]StoreOFDPacket docnum=228193 [12:38:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 74 AF 07 01 A2 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 9D 00 00 00 F4 03 04 00 C3 9C 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 61 7B 03 00 35 04 06 00 C7 47 2D 7D 7B D8 CA AE 02 D1 56 CB 22 FB [12:38:25]CheckFolder [12:38:25]dirname=/storage/ofd_packets [12:38:25]CheckFolder done [12:38:25]ProducePacketName [12:38:25]name=ofd_packets/00228193 [12:38:25]NVStorageSaveData ofd_packets/00228193 [12:38:25]File name is /storage/ofd_packets/00228193 [12:38:25]Write 301 bytes [12:38:25]NVStorageSaveData done [12:38:25]OFDSenderStorePacket done [12:38:25]KKMCreateOFDPacket done [12:38:25]NVStorageSaveData kkm_last_timestamp [12:38:25]File name is /storage/kkm_last_timestamp [12:38:25]Write 4 bytes [12:38:25]NVStorageSaveData done [12:38:25]ExternCall_PrintAddStr [12:38:25]wPrintStart [12:38:25]Write to MH i2c: 01 00 00 27 30 57 [12:38:25]Write i2c OK [12:38:25]MH_I2C_Read... [12:38:25]Read from MH i2c: 01 [12:38:25]MH_I2C_Read... [12:38:25]Read from MH i2c: 01 07 00 [12:38:25]MH_I2C_Read... [12:38:25]Read from MH i2c: 01 07 00 27 30 00 00 00 00 00 FF 0F 6C [12:38:25]RasterBufferAndPrint [12:38:25]line Счет N : (1)1964637 [12:38:25]line ИНН: 02508201610067 [12:38:25]line Контрольно-Кассовый Чек [12:38:25]line ПРОДАЖА [12:38:25]line ТРК (МРК, ГНК) : 33 [12:38:25]line Товар: 2710124130 [12:38:25]line Аи-92-К-5 [12:38:25]line 14.950 * 66.90 [12:38:25]line = 1000.16 [12:38:25]line НДС 12% НСП 1% [12:38:25]line > о реализуемом товаре [12:38:25]line ОКРУГЛЕНИЕ: -0.16 [12:38:25]line ИТОГО: 1000.00 [12:38:25]line Внесено: 1000.00 [12:38:25]line СДАЧА: 0.00 [12:38:25]line НСП 1% : 8.85 [12:38:25]line НДС 12% : 106.21 [12:38:25]line Наличными: 1000.00 [12:38:25]line Безнал.: 0.00 [12:38:25]line Место: АЗС № 133 "Партнер Нефть" [12:38:25]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:38:25]line СНО: Общий режим [12:38:25]line Чек 157 22.10.2024 12:38 [12:38:25]line Смена: 535 ФФД: 1.0 [12:38:25]line ЗНМ: 0300000091 [12:38:25]line РНМ: 0000000000091685 [12:38:25]line Версия ККМ: 001 [12:38:25]line ФМ: 0000000000871839 [12:38:25]line ФД: 228193 [12:38:25]line ФПД: 219108519803864 [12:38:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123827&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228193&fm=219108519803864&tin=02508201610067®Number=0000000000091685&sum=100000 [12:38:25]OFD Sender: Processing packet 228193 [packets to send 38, broken 37] [12:38:25]ProducePacketName [12:38:25]name=ofd_packets/00228193 [12:38:25]OFD Sender: To server: pG, [12:38:25]CommunicateWithHost lk.salyk.kg:30040 [12:38:25]ConnectInit lk.salyk.kg [12:38:25]written 0, free lines is 4095 [12:38:26]Connected sock=10 [12:38:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 74 AF 07 01 A2 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 9D 00 00 00 F4 03 04 00 C3 9C 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 61 7B 03 00 35 04 06 00 C7 47 2D 7D 7B D8 CA AE 02 D1 56 CB 22 FB [12:38:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 40 29 47 00 73 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 61 7B 03 00 F4 03 04 00 BC 47 17 67 B6 04 01 00 00 FC CE E2 CD 21 24 41 07 [12:38:26]CommunicateWithHost err = 0 [12:38:26]CheckOFDResponse [12:38:26]1017 (14) - 77093643461234 [12:38:26]1041 (16) - 0000000000871839 [12:38:26]1040 (4) - 228193 [12:38:26]1012 (4) - 22.10.2024 06:35 [12:38:26]1206 (1) - 0 [12:38:26]OFD Sender: Remove packet 228193 [12:38:26]ProducePacketName [12:38:26]name=ofd_packets/00228193 [12:38:26]NVStorageDeleteData [12:38:26]Write to MH i2c: 01 00 00 51 30 81 [12:38:26]Write i2c OK [12:38:26]MH_I2C_Read... [12:38:26]Read from MH i2c: 01 [12:38:26]MH_I2C_Read... [12:38:26]Read from MH i2c: 01 07 00 [12:38:26]MH_I2C_Read... [12:38:26]Read from MH i2c: 01 07 00 51 30 00 00 00 00 00 C0 0C 54 [12:38:26]RasterBufferAndPrint [12:38:26]line [12:38:26]line [12:38:26]line [12:38:26]line [12:38:26]line [12:38:26]written 0, free lines is 3268 [12:38:26]MH_Cut [12:38:26]Write to MH i2c: D1 01 00 58 30 01 5A [12:38:26]Write i2c OK [12:38:26]MH_I2C_Read... [12:38:26]Read from MH i2c: D1 [12:38:26]MH_I2C_Read... [12:38:26]Read from MH i2c: D1 01 00 [12:38:26]MH_I2C_Read... [12:38:26]Read from MH i2c: D1 01 00 58 30 00 59 [12:38:26]Write to MH i2c: 01 00 00 59 30 89 [12:38:26]Write i2c OK [12:38:26]MH_I2C_Read... [12:38:26]OFD Sender: No OFD packet to send [12:38:27]*** Cut start [12:38:27]*** Partial cut [12:38:27]*** CUTSNS_PIN = 1 [12:38:27]*** CUTSNS_PIN = 0 [12:38:27]*** Brake cut motor [12:38:27]Read from MH i2c: 01 [12:38:27]MH_I2C_Read... [12:38:27]*** Stop cut motor [12:38:27]*** Cut end [12:38:27]Read from MH i2c: 01 07 00 [12:38:27]MH_I2C_Read... [12:38:27]Read from MH i2c: 01 07 00 59 30 00 00 00 00 00 FF 0F 9E [12:38:27]process_action close_receipt done [12:38:27]requested_data is exist [12:38:27]produce_requested_data [12:38:27]requested_item fm.sn is exist - process it [12:38:27]wFMCommunicate request_size=4 [12:38:27]MH_SAM_APDU [12:38:27]CAPDU: 80 11 00 00 [12:38:27]Write to MH i2c: E2 08 00 5A 30 80 11 00 00 00 00 00 00 04 [12:38:27]Write i2c OK [12:38:27]MH_I2C_Read... [12:38:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:27]Read from MH i2c: E2 [12:38:27]MH_I2C_Read... [12:38:27]Read from MH i2c: E2 17 00 [12:38:27]MH_I2C_Read... [12:38:27]Read from MH i2c: E2 17 00 5A 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5B [12:38:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:38:27]wFMCommunicate OK [12:38:27]requested_item fd.num is exist - process it [12:38:27]SAM_PROTO_GetFieldsCounters [12:38:27]wFMCommunicate request_size=4 [12:38:27]MH_SAM_APDU [12:38:27]CAPDU: 80 13 00 00 [12:38:27]Write to MH i2c: E2 08 00 5B 30 80 13 00 00 00 00 00 00 07 [12:38:27]Write i2c OK [12:38:27]MH_I2C_Read... [12:38:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:27]Read from MH i2c: E2 [12:38:27]MH_I2C_Read... [12:38:27]Read from MH i2c: E2 62 00 [12:38:27]MH_I2C_Read... [12:38:27]Read from MH i2c: E2 62 00 5B 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 61 7B 03 00 0E 04 04 00 17 02 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 FF [12:38:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 61 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:38:27]wFMCommunicate OK [12:38:27]SAM_PROTO_GetFieldsCounters done [12:38:27]requested_item shift.num is exist - process it [12:38:27]requested_item shift.opened is exist - process it [12:38:27]req_shift_opened [12:38:27]FM_GetShiftState [12:38:27]SAM_PROTO_GetShiftState [12:38:27]wFMCommunicate request_size=4 [12:38:27]MH_SAM_APDU [12:38:27]CAPDU: 80 13 01 00 [12:38:27]Write to MH i2c: E2 08 00 5C 30 80 13 01 00 00 00 00 00 09 [12:38:27]Write i2c OK [12:38:27]MH_I2C_Read... [12:38:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:27]Read from MH i2c: E2 [12:38:27]MH_I2C_Read... [12:38:27]Read from MH i2c: E2 0E 00 [12:38:27]MH_I2C_Read... [12:38:27]Read from MH i2c: E2 0E 00 5C 30 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 D0 [12:38:27]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:38:27]wFMCommunicate OK [12:38:27]SAM_PROTO_GetShiftState done [12:38:27]FM_GetShiftState done [12:38:27]req_shift_opened done [12:38:27]requested_item shift.open_date is exist - process it [12:38:27]req_shift_open_date [12:38:27]req_shift_open_date done [12:38:27]produce_requested_data done [12:38:27]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228193,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [12:38:27]process_action_free close_receipt [12:38:27]json_value_free [12:38:27]json_value_free done [12:38:27]process_json_proto returns [12:38:27]Send response to host [12:38:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228193,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [12:38:27]free response buf [12:38:27]execute_script done [12:38:27]execute_script returns [12:38:27]free content buf [12:38:27]Sock 7.Close socket [12:38:27]Sock 7.Thread stoped [12:38:28]accept exits with 9 [12:38:28]New connection [12:38:28]New thread 3067137380 created [12:38:28]Thread 3066994020 joined [12:38:28]Waiting for new connection... [12:38:28] Sock 9.Parse request [12:38:28]Sock 9.Check first char [12:38:28]Sock 9.First char is OK [12:38:28]request: POST /json_proto HTTP/1.0 [12:38:28]Method: POST [12:38:28]URL: /json_proto [12:38:28]Method is POST - this is cgi request [12:38:28]url: /json_proto [12:38:28]query_string will be loaded in cgi processing [12:38:28]execute_cgi json_proto POST (null) [12:38:28]execute_cgi path=json_proto method=POST [12:38:28]POST find Content-Length [12:38:28]Host: 172.17.44.195:8080 [12:38:28]Content-Length: 678 [12:38:28]Content-Type: application/json [12:38:28] [12:38:28]POST finish read [12:38:28]Found Content-Length = 678 [12:38:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964638", "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" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [12:38:28]execute_script... [12:38: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)1964638", "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" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [12:38:28]POST & json_proto [12:38:28]process_json_proto [12:38:28]json parsed OK: [12:38:28]protocol is kg_v1.0 [12:38:28]action value=close_receipt [12:38:28]process_action close_receipt [12:38:28]cmd_close_receipt [12:38:28]MH_GetDate [12:38:28]Write to MH i2c: F0 00 00 5D 30 7C [12:38:28]Write i2c OK [12:38:28]MH_I2C_Read... [12:38:28]Read from MH i2c: F0 [12:38:28]MH_I2C_Read... [12:38:28]Read from MH i2c: F0 09 00 [12:38:28]MH_I2C_Read... [12:38:28]Read from MH i2c: F0 09 00 5D 30 00 C8 9C 17 67 82 C9 CF 66 E7 [12:38:28]GetLastDocTimeStamp 1729600707 [12:38:28]current date 1729600712 [12:38:28]FM_GetShiftState [12:38:28]SAM_PROTO_GetShiftState [12:38:28]wFMCommunicate request_size=4 [12:38:28]MH_SAM_APDU [12:38:28]CAPDU: 80 13 01 00 [12:38:28]Write to MH i2c: E2 08 00 5E 30 80 13 01 00 00 00 00 00 0B [12:38:28]Write i2c OK [12:38:28]MH_I2C_Read... [12:38:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:28]Read from MH i2c: E2 [12:38:28]MH_I2C_Read... [12:38:28]Read from MH i2c: E2 0E 00 [12:38:28]MH_I2C_Read... [12:38:28]Read from MH i2c: E2 0E 00 5E 30 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 D2 [12:38:28]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:38:28]wFMCommunicate OK [12:38:28]SAM_PROTO_GetShiftState done [12:38:28]FM_GetShiftState done [12:38:28]opened in 1729555538 [12:38:28]opened+sec_in_day 1729641938 [12:38:28]quantity*price = 20003 [12:38:28]sum+1 = 20004 [12:38:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 158 22.10.2024 12:38 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228194 ФПД: 200940868584015 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123832&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228194&fm=200940868584015&tin=02508201610067®Number=0000000000091685&sum=20000 [12:38:29]StoreToDocumentArchive [12:38:29]shift 535 fd 228194 [12:38:29]save to /storage/0535/doc_00228194 [12:38:29]save last doc name /storage/0535/doc_00228194 to /storage/kkm_last_doc_name [12:38:29]save OK [12:38:29]Clear old archive folders... [12:38:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:38:29]tlvbuf is 00A78270 [12:38:29]SAM_PROTO_ClearQueue [12:38:29]wFMCommunicate request_size=4 [12:38:29]MH_SAM_APDU [12:38:29]CAPDU: 80 09 00 00 [12:38:29]Write to MH i2c: E2 08 00 6B 30 80 09 00 00 00 00 00 00 0D [12:38:29]Write i2c OK [12:38:29]MH_I2C_Read... [12:38:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:29]Read from MH i2c: E2 [12:38:29]MH_I2C_Read... [12:38:29]Read from MH i2c: E2 03 00 [12:38:29]MH_I2C_Read... [12:38:29]Read from MH i2c: E2 03 00 6B 30 00 90 00 0F [12:38:29]RAPDU: 90 00 [12:38:29]wFMCommunicate OK [12:38:29]SAM_PROTO_ClearQueue done [12:38:29]KKMCreateOFDPacket [12:38:29]OFDProtocolAddRootSTLVToBuf [12:38:29]FM_MakeSignedData [12:38:29]FM_MakeSignedData [12:38:29]SAM_PROTO_SignData [12:38:29]wFMCommunicate request_size=4 [12:38:29]MH_SAM_APDU [12:38:29]CAPDU: 80 0D 01 02 [12:38:29]Write to MH i2c: E2 08 00 6C 30 80 0D 01 02 00 00 00 00 15 [12:38:29]Write i2c OK [12:38:29]MH_I2C_Read... [12:38:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:29]Read from MH i2c: E2 [12:38:29]MH_I2C_Read... [12:38:29]Read from MH i2c: E2 03 00 [12:38:29]MH_I2C_Read... [12:38:29]Read from MH i2c: E2 03 00 6C 30 00 90 00 10 [12:38:29]RAPDU: 90 00 [12:38:29]wFMCommunicate OK [12:38:29]wFMCommunicate request_size=255 [12:38:29]MH_SAM_APDU [12:38: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 C8 9C 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 62 7B 03 00 35 04 06 00 B6 [12:38:29]Write to MH i2c: E2 02 01 6D 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 C8 9C 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 62 7B 03 00 35 04 06 00 B6 00 00 9D [12:38:29]Write i2c OK [12:38:29]MH_I2C_Read... [12:38:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:30]Read from MH i2c: E2 [12:38:30]MH_I2C_Read... [12:38:30]Read from MH i2c: E2 03 00 [12:38:30]MH_I2C_Read... [12:38:30]Read from MH i2c: E2 03 00 6D 30 00 90 00 11 [12:38:30]RAPDU: 90 00 [12:38:30]wFMCommunicate OK [12:38:30]wFMCommunicate request_size=10 [12:38:30]MH_SAM_APDU [12:38:30]CAPDU: 80 0D 02 02 05 C1 31 17 C2 4F [12:38:30]Write to MH i2c: E2 0D 00 6E 30 80 0D 02 02 05 00 C1 31 17 C2 4F 00 00 3C [12:38:30]Write i2c OK [12:38:30]MH_I2C_Read... [12:38:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:30]Read from MH i2c: E2 [12:38:30]MH_I2C_Read... [12:38:30]Read from MH i2c: E2 03 00 [12:38:30]MH_I2C_Read... [12:38:30]Read from MH i2c: E2 03 00 6E 30 00 90 00 12 [12:38:30]RAPDU: 90 00 [12:38:30]wFMCommunicate OK [12:38:30]wFMCommunicate request_size=4 [12:38:30]MH_SAM_APDU [12:38:30]CAPDU: 80 0D 03 02 [12:38:30]Write to MH i2c: E2 08 00 6F 30 80 0D 03 02 00 00 00 00 1A [12:38:30]Write i2c OK [12:38:30]MH_I2C_Read... [12:38:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:30]Read from MH i2c: E2 [12:38:30]MH_I2C_Read... [12:38:30]Read from MH i2c: E2 0B 00 [12:38:30]MH_I2C_Read... [12:38:30]Read from MH i2c: E2 0B 00 6F 30 00 04 69 7A 23 3D A7 D5 7F 90 00 5D [12:38:30]RAPDU: 04 69 7A 23 3D A7 D5 7F 90 00 [12:38:30]wFMCommunicate OK [12:38:30]SAM_PROTO_SignData done [12:38:30]FM_MakeSignedData done [12:38:30]CreateOFDProtocolMessage [12:38:30]wFMCommunicate request_size=4 [12:38:30]MH_SAM_APDU [12:38:30]CAPDU: 80 11 00 00 [12:38:30]Write to MH i2c: E2 08 00 70 30 80 11 00 00 00 00 00 00 1A [12:38:30]Write i2c OK [12:38:30]MH_I2C_Read... [12:38:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:30]Read from MH i2c: E2 [12:38:30]MH_I2C_Read... [12:38:30]Read from MH i2c: E2 17 00 [12:38:30]MH_I2C_Read... [12:38:30]Read from MH i2c: E2 17 00 70 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 71 [12:38:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:38:30]wFMCommunicate OK [12:38:30]CreateOFDProtocolMessage done [12:38:30]OFDSenderStorePacket 228194 [12:38:30]StoreOFDPacket docnum=228194 [12:38:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B1 FF 07 01 CE C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 C8 9C 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 62 7B 03 00 35 04 06 00 B6 C1 31 17 C2 4F 04 69 7A 23 3D A7 D5 7F [12:38:30]CheckFolder [12:38:30]dirname=/storage/ofd_packets [12:38:30]CheckFolder done [12:38:30]ProducePacketName [12:38:30]name=ofd_packets/00228194 [12:38:30]NVStorageSaveData ofd_packets/00228194 [12:38:30]File name is /storage/ofd_packets/00228194 [12:38:30]Write 301 bytes [12:38:30]NVStorageSaveData done [12:38:30]OFDSenderStorePacket done [12:38:30]KKMCreateOFDPacket done [12:38:30]NVStorageSaveData kkm_last_timestamp [12:38:30]File name is /storage/kkm_last_timestamp [12:38:30]Write 4 bytes [12:38:30]NVStorageSaveData done [12:38:30]ExternCall_PrintAddStr [12:38:30]wPrintStart [12:38:30]Write to MH i2c: 01 00 00 71 30 A1 [12:38:30]Write i2c OK [12:38:30]MH_I2C_Read... [12:38:30]Read from MH i2c: 01 [12:38:30]MH_I2C_Read... [12:38:30]Read from MH i2c: 01 07 00 [12:38:30]MH_I2C_Read... [12:38:30]Read from MH i2c: 01 07 00 71 30 00 00 00 00 00 FF 0F B6 [12:38:30]RasterBufferAndPrint [12:38:30]line Счет N : (1)1964638 [12:38:30]line ИНН: 02508201610067 [12:38:30]line Контрольно-Кассовый Чек [12:38:30]line ПРОДАЖА [12:38:30]line ТРК (МРК, ГНК) : 53 [12:38:30]line Товар: 2710124130 [12:38:30]line Аи-92-К-5 [12:38:30]line 2.990 * 66.90 [12:38:30]line = 200.03 [12:38:30]line НДС 12% НСП 1% [12:38:30]line > о реализуемом товаре [12:38:30]line ОКРУГЛЕНИЕ: -0.03 [12:38:30]line ИТОГО: 200.00 [12:38:30]line Внесено: 200.00 [12:38:30]line СДАЧА: 0.00 [12:38:30]line НСП 1% : 1.77 [12:38:30]line НДС 12% : 21.24 [12:38:30]line Наличными: 200.00 [12:38:30]line Безнал.: 0.00 [12:38:30]line Место: АЗС № 133 "Партнер Нефть" [12:38:30]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:38:30]line СНО: Общий режим [12:38:30]line Чек 158 22.10.2024 12:38 [12:38:30]line Смена: 535 ФФД: 1.0 [12:38:30]line ЗНМ: 0300000091 [12:38:30]line РНМ: 0000000000091685 [12:38:30]line Версия ККМ: 001 [12:38:30]line ФМ: 0000000000871839 [12:38:30]line ФД: 228194 [12:38:30]line ФПД: 200940868584015 [12:38:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123832&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228194&fm=200940868584015&tin=02508201610067®Number=0000000000091685&sum=20000 [12:38:30]OFD Sender: Processing packet 228194 [packets to send 38, broken 37] [12:38:30]ProducePacketName [12:38:30]name=ofd_packets/00228194 [12:38:30]OFD Sender: To server: pG, [12:38:30]CommunicateWithHost lk.salyk.kg:30040 [12:38:30]ConnectInit lk.salyk.kg [12:38:30]written 0, free lines is 4095 [12:38:30]Connected sock=10 [12:38:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B1 FF 07 01 CE C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 C8 9C 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 62 7B 03 00 35 04 06 00 B6 C1 31 17 C2 4F 04 69 7A 23 3D A7 D5 7F [12:38:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 F8 D5 47 00 B8 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 62 7B 03 00 F4 03 04 00 C1 47 17 67 B6 04 01 00 00 7F 44 ED DC D3 2C AF 1E [12:38:31]CommunicateWithHost err = 0 [12:38:31]CheckOFDResponse [12:38:31]1017 (14) - 77093643461234 [12:38:31]1041 (16) - 0000000000871839 [12:38:31]1040 (4) - 228194 [12:38:31]1012 (4) - 22.10.2024 06:35 [12:38:31]1206 (1) - 0 [12:38:31]OFD Sender: Remove packet 228194 [12:38:31]ProducePacketName [12:38:31]name=ofd_packets/00228194 [12:38:31]NVStorageDeleteData [12:38:31]Write to MH i2c: 01 00 00 9B 30 CB [12:38:31]Write i2c OK [12:38:31]MH_I2C_Read... [12:38:31]Read from MH i2c: 01 [12:38:31]MH_I2C_Read... [12:38:31]Read from MH i2c: 01 07 00 [12:38:31]MH_I2C_Read... [12:38:31]Read from MH i2c: 01 07 00 9B 30 00 00 00 00 00 C4 0C A2 [12:38:31]RasterBufferAndPrint [12:38:31]line [12:38:31]line [12:38:31]line [12:38:31]line [12:38:31]line [12:38:31]written 0, free lines is 3276 [12:38:31]MH_Cut [12:38:31]Write to MH i2c: D1 01 00 A2 30 01 A4 [12:38:31]Write i2c OK [12:38:31]MH_I2C_Read... [12:38:31]Read from MH i2c: D1 [12:38:31]MH_I2C_Read... [12:38:31]Read from MH i2c: D1 01 00 [12:38:31]MH_I2C_Read... [12:38:31]Read from MH i2c: D1 01 00 A2 30 00 A3 [12:38:31]Write to MH i2c: 01 00 00 A3 30 D3 [12:38:31]Write i2c OK [12:38:31]MH_I2C_Read... [12:38:31]OFD Sender: No OFD packet to send [12:38:31]*** Cut start [12:38:31]*** Partial cut [12:38:31]*** CUTSNS_PIN = 1 [12:38:32]*** CUTSNS_PIN = 0 [12:38:32]*** Brake cut motor [12:38:32]Read from MH i2c: 01 [12:38:32]MH_I2C_Read... [12:38:32]*** Stop cut motor [12:38:32]*** Cut end [12:38:32]Read from MH i2c: 01 07 00 [12:38:32]MH_I2C_Read... [12:38:32]Read from MH i2c: 01 07 00 A3 30 00 00 00 00 00 FF 0F E8 [12:38:32]process_action close_receipt done [12:38:32]requested_data is exist [12:38:32]produce_requested_data [12:38:32]requested_item fm.sn is exist - process it [12:38:32]wFMCommunicate request_size=4 [12:38:32]MH_SAM_APDU [12:38:32]CAPDU: 80 11 00 00 [12:38:32]Write to MH i2c: E2 08 00 A4 30 80 11 00 00 00 00 00 00 4E [12:38:32]Write i2c OK [12:38:32]MH_I2C_Read... [12:38:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:32]Read from MH i2c: E2 [12:38:32]MH_I2C_Read... [12:38:32]Read from MH i2c: E2 17 00 [12:38:32]MH_I2C_Read... [12:38:32]Read from MH i2c: E2 17 00 A4 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A5 [12:38:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:38:32]wFMCommunicate OK [12:38:32]requested_item fd.num is exist - process it [12:38:32]SAM_PROTO_GetFieldsCounters [12:38:32]wFMCommunicate request_size=4 [12:38:32]MH_SAM_APDU [12:38:32]CAPDU: 80 13 00 00 [12:38:32]Write to MH i2c: E2 08 00 A5 30 80 13 00 00 00 00 00 00 51 [12:38:32]Write i2c OK [12:38:32]MH_I2C_Read... [12:38:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:32]Read from MH i2c: E2 [12:38:32]MH_I2C_Read... [12:38:32]Read from MH i2c: E2 62 00 [12:38:32]MH_I2C_Read... [12:38:32]Read from MH i2c: E2 62 00 A5 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 62 7B 03 00 0E 04 04 00 17 02 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 4D [12:38:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 62 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:38:32]wFMCommunicate OK [12:38:32]SAM_PROTO_GetFieldsCounters done [12:38:32]requested_item shift.num is exist - process it [12:38:32]requested_item shift.opened is exist - process it [12:38:32]req_shift_opened [12:38:32]FM_GetShiftState [12:38:32]SAM_PROTO_GetShiftState [12:38:32]wFMCommunicate request_size=4 [12:38:32]MH_SAM_APDU [12:38:32]CAPDU: 80 13 01 00 [12:38:32]Write to MH i2c: E2 08 00 A6 30 80 13 01 00 00 00 00 00 53 [12:38:32]Write i2c OK [12:38:32]MH_I2C_Read... [12:38:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:32]Read from MH i2c: E2 [12:38:32]MH_I2C_Read... [12:38:32]Read from MH i2c: E2 0E 00 [12:38:32]MH_I2C_Read... [12:38:32]Read from MH i2c: E2 0E 00 A6 30 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 1A [12:38:32]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:38:32]wFMCommunicate OK [12:38:32]SAM_PROTO_GetShiftState done [12:38:32]FM_GetShiftState done [12:38:32]req_shift_opened done [12:38:32]requested_item shift.open_date is exist - process it [12:38:32]req_shift_open_date [12:38:32]req_shift_open_date done [12:38:32]produce_requested_data done [12:38:32]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228194,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [12:38:32]process_action_free close_receipt [12:38:32]json_value_free [12:38:32]json_value_free done [12:38:32]process_json_proto returns [12:38:32]Send response to host [12:38:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228194,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [12:38:32]free response buf [12:38:32]execute_script done [12:38:32]execute_script returns [12:38:32]free content buf [12:38:32]Sock 9.Close socket [12:38:32]Sock 9.Thread stoped [12:38:36]OFD Sender: No OFD packet to send [12:38:41]OFD Sender: No OFD packet to send [12:38:46]OFD Sender: No OFD packet to send [12:38:51]OFD Sender: No OFD packet to send [12:38:56]OFD Sender: No OFD packet to send [12:39:01]OFD Sender: No OFD packet to send [12:39:06]OFD Sender: No OFD packet to send [12:39:11]OFD Sender: No OFD packet to send [12:39:16]OFD Sender: No OFD packet to send [12:39:21]OFD Sender: No OFD packet to send [12:39:26]OFD Sender: No OFD packet to send [12:39:31]OFD Sender: No OFD packet to send [12:39:36]OFD Sender: No OFD packet to send [12:39:41]OFD Sender: No OFD packet to send [12:39:46]OFD Sender: No OFD packet to send [12:39:51]accept exits with 7 [12:39:51]New connection [12:39:51]New thread 3066994020 created [12:39:51]Thread 3067137380 joined [12:39:51]Waiting for new connection... [12:39:51] Sock 7.Parse request [12:39:51]Sock 7.Check first char [12:39:51]Sock 7.First char is OK [12:39:51]request: POST /json_proto HTTP/1.0 [12:39:51]Method: POST [12:39:51]URL: /json_proto [12:39:51]Method is POST - this is cgi request [12:39:51]url: /json_proto [12:39:51]query_string will be loaded in cgi processing [12:39:51]execute_cgi json_proto POST (null) [12:39:51]execute_cgi path=json_proto method=POST [12:39:51]POST find Content-Length [12:39:51]Host: 172.17.44.195:8080 [12:39:51]Content-Length: 678 [12:39:51]Content-Type: application/json [12:39:51] [12:39:51]POST finish read [12:39:51]Found Content-Length = 678 [12:39:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964639", "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" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:51]execute_script... [12:39: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)1964639", "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" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:51]POST & json_proto [12:39:51]process_json_proto [12:39:51]json parsed OK: [12:39:51]protocol is kg_v1.0 [12:39:51]action value=close_receipt [12:39:51]process_action close_receipt [12:39:51]cmd_close_receipt [12:39:51]MH_GetDate [12:39:51]Write to MH i2c: F0 00 00 A7 30 C6 [12:39:51]Write i2c OK [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: F0 [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: F0 09 00 [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: F0 09 00 A7 30 00 1B 9D 17 67 82 C9 CF 66 85 [12:39:51]GetLastDocTimeStamp 1729600712 [12:39:51]current date 1729600795 [12:39:51]FM_GetShiftState [12:39:51]SAM_PROTO_GetShiftState [12:39:51]wFMCommunicate request_size=4 [12:39:51]MH_SAM_APDU [12:39:51]CAPDU: 80 13 01 00 [12:39:51]Write to MH i2c: E2 08 00 A8 30 80 13 01 00 00 00 00 00 55 [12:39:51]Write i2c OK [12:39:51]MH_I2C_Read... [12:39:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:51]Read from MH i2c: E2 [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: E2 0E 00 [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: E2 0E 00 A8 30 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 1C [12:39:51]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:39:51]wFMCommunicate OK [12:39:51]SAM_PROTO_GetShiftState done [12:39:51]FM_GetShiftState done [12:39:51]opened in 1729555538 [12:39:51]opened+sec_in_day 1729641938 [12:39:51]quantity*price = 30038 [12:39:51]sum+1 = 30039 [12:39:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 159 22.10.2024 12:39 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228195 ФПД: 257497167461640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123955&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228195&fm=257497167461640&tin=02508201610067®Number=0000000000091685&sum=30000 [12:39:52]StoreToDocumentArchive [12:39:52]shift 535 fd 228195 [12:39:52]save to /storage/0535/doc_00228195 [12:39:52]save last doc name /storage/0535/doc_00228195 to /storage/kkm_last_doc_name [12:39:52]save OK [12:39:52]Clear old archive folders... [12:39:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:39:52]tlvbuf is 008D8750 [12:39:52]SAM_PROTO_ClearQueue [12:39:52]wFMCommunicate request_size=4 [12:39:52]MH_SAM_APDU [12:39:52]CAPDU: 80 09 00 00 [12:39:52]Write to MH i2c: E2 08 00 B5 30 80 09 00 00 00 00 00 00 57 [12:39:52]Write i2c OK [12:39:52]MH_I2C_Read... [12:39:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:39:52]Read from MH i2c: E2 [12:39:52]MH_I2C_Read... [12:39:52]Read from MH i2c: E2 03 00 [12:39:52]MH_I2C_Read... [12:39:52]Read from MH i2c: E2 03 00 B5 30 00 90 00 59 [12:39:52]RAPDU: 90 00 [12:39:52]wFMCommunicate OK [12:39:52]SAM_PROTO_ClearQueue done [12:39:52]KKMCreateOFDPacket [12:39:52]OFDProtocolAddRootSTLVToBuf [12:39:52]FM_MakeSignedData [12:39:52]FM_MakeSignedData [12:39:52]SAM_PROTO_SignData [12:39:52]wFMCommunicate request_size=4 [12:39:52]MH_SAM_APDU [12:39:52]CAPDU: 80 0D 01 02 [12:39:52]Write to MH i2c: E2 08 00 B6 30 80 0D 01 02 00 00 00 00 5F [12:39:52]Write i2c OK [12:39:52]MH_I2C_Read... [12:39:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:39:52]Read from MH i2c: E2 [12:39:52]MH_I2C_Read... [12:39:52]Read from MH i2c: E2 03 00 [12:39:52]MH_I2C_Read... [12:39:52]Read from MH i2c: E2 03 00 B6 30 00 90 00 5A [12:39:52]RAPDU: 90 00 [12:39:52]wFMCommunicate OK [12:39:52]wFMCommunicate request_size=255 [12:39:52]MH_SAM_APDU [12:39: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 9F 00 00 00 F4 03 04 00 1B 9D 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 63 7B 03 00 35 04 06 00 EA [12:39:52]Write to MH i2c: E2 02 01 B7 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 9F 00 00 00 F4 03 04 00 1B 9D 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 63 7B 03 00 35 04 06 00 EA 00 00 A3 [12:39:52]Write i2c OK [12:39:52]MH_I2C_Read... [12:39:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:53]Read from MH i2c: E2 [12:39:53]MH_I2C_Read... [12:39:53]Read from MH i2c: E2 03 00 [12:39:53]MH_I2C_Read... [12:39:53]Read from MH i2c: E2 03 00 B7 30 00 90 00 5B [12:39:53]RAPDU: 90 00 [12:39:53]wFMCommunicate OK [12:39:53]wFMCommunicate request_size=10 [12:39:53]MH_SAM_APDU [12:39:53]CAPDU: 80 0D 02 02 05 31 3B 32 7D 08 [12:39:53]Write to MH i2c: E2 0D 00 B8 30 80 0D 02 02 05 00 31 3B 32 7D 08 00 00 8F [12:39:53]Write i2c OK [12:39:53]MH_I2C_Read... [12:39:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:53]Read from MH i2c: E2 [12:39:53]MH_I2C_Read... [12:39:53]Read from MH i2c: E2 03 00 [12:39:53]MH_I2C_Read... [12:39:53]Read from MH i2c: E2 03 00 B8 30 00 90 00 5C [12:39:53]RAPDU: 90 00 [12:39:53]wFMCommunicate OK [12:39:53]wFMCommunicate request_size=4 [12:39:53]MH_SAM_APDU [12:39:53]CAPDU: 80 0D 03 02 [12:39:53]Write to MH i2c: E2 08 00 B9 30 80 0D 03 02 00 00 00 00 64 [12:39:53]Write i2c OK [12:39:53]MH_I2C_Read... [12:39:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:39:53]Read from MH i2c: E2 [12:39:53]MH_I2C_Read... [12:39:53]Read from MH i2c: E2 0B 00 [12:39:53]MH_I2C_Read... [12:39:53]Read from MH i2c: E2 0B 00 B9 30 00 3A 5A E2 1F E3 80 BD 66 90 00 80 [12:39:53]RAPDU: 3A 5A E2 1F E3 80 BD 66 90 00 [12:39:53]wFMCommunicate OK [12:39:53]SAM_PROTO_SignData done [12:39:53]FM_MakeSignedData done [12:39:53]CreateOFDProtocolMessage [12:39:53]wFMCommunicate request_size=4 [12:39:53]MH_SAM_APDU [12:39:53]CAPDU: 80 11 00 00 [12:39:53]Write to MH i2c: E2 08 00 BA 30 80 11 00 00 00 00 00 00 64 [12:39:53]Write i2c OK [12:39:53]MH_I2C_Read... [12:39:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:53]Read from MH i2c: E2 [12:39:53]MH_I2C_Read... [12:39:53]Read from MH i2c: E2 17 00 [12:39:53]MH_I2C_Read... [12:39:53]Read from MH i2c: E2 17 00 BA 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BB [12:39:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:39:53]wFMCommunicate OK [12:39:53]CreateOFDProtocolMessage done [12:39:53]OFDSenderStorePacket 228195 [12:39:53]StoreOFDPacket docnum=228195 [12:39:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 48 27 07 01 BD 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 9F 00 00 00 F4 03 04 00 1B 9D 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 63 7B 03 00 35 04 06 00 EA 31 3B 32 7D 08 3A 5A E2 1F E3 80 BD 66 [12:39:53]CheckFolder [12:39:53]dirname=/storage/ofd_packets [12:39:53]CheckFolder done [12:39:53]ProducePacketName [12:39:53]name=ofd_packets/00228195 [12:39:53]NVStorageSaveData ofd_packets/00228195 [12:39:53]File name is /storage/ofd_packets/00228195 [12:39:53]Write 301 bytes [12:39:53]NVStorageSaveData done [12:39:53]OFDSenderStorePacket done [12:39:53]KKMCreateOFDPacket done [12:39:53]NVStorageSaveData kkm_last_timestamp [12:39:53]File name is /storage/kkm_last_timestamp [12:39:53]Write 4 bytes [12:39:53]NVStorageSaveData done [12:39:53]ExternCall_PrintAddStr [12:39:53]wPrintStart [12:39:53]Write to MH i2c: 01 00 00 BB 30 EB [12:39:53]Write i2c OK [12:39:53]MH_I2C_Read... [12:39:53]Read from MH i2c: 01 [12:39:53]MH_I2C_Read... [12:39:53]Read from MH i2c: 01 07 00 [12:39:53]MH_I2C_Read... [12:39:53]Read from MH i2c: 01 07 00 BB 30 00 00 00 00 00 FF 0F 00 [12:39:53]RasterBufferAndPrint [12:39:53]line Счет N : (1)1964639 [12:39:53]line ИНН: 02508201610067 [12:39:53]line Контрольно-Кассовый Чек [12:39:53]line ПРОДАЖА [12:39:53]line ТРК (МРК, ГНК) : 63 [12:39:53]line Товар: 2710124130 [12:39:53]line Аи-92-К-5 [12:39:53]line 4.490 * 66.90 [12:39:53]line = 300.38 [12:39:53]line НДС 12% НСП 1% [12:39:53]line > о реализуемом товаре [12:39:53]line ОКРУГЛЕНИЕ: -0.38 [12:39:53]line ИТОГО: 300.00 [12:39:53]line Внесено: 300.00 [12:39:53]line СДАЧА: 0.00 [12:39:53]line НСП 1% : 2.66 [12:39:53]line НДС 12% : 31.90 [12:39:53]line Наличными: 300.00 [12:39:53]line Безнал.: 0.00 [12:39:53]line Место: АЗС № 133 "Партнер Нефть" [12:39:53]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:39:53]line СНО: Общий режим [12:39:53]line Чек 159 22.10.2024 12:39 [12:39:53]line Смена: 535 ФФД: 1.0 [12:39:53]line ЗНМ: 0300000091 [12:39:53]line РНМ: 0000000000091685 [12:39:53]line Версия ККМ: 001 [12:39:53]line ФМ: 0000000000871839 [12:39:53]line ФД: 228195 [12:39:53]line ФПД: 257497167461640 [12:39:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123955&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228195&fm=257497167461640&tin=02508201610067®Number=0000000000091685&sum=30000 [12:39:53]written 0, free lines is 4095 [12:39:53]OFD Sender: Processing packet 228195 [packets to send 38, broken 37] [12:39:53]ProducePacketName [12:39:53]name=ofd_packets/00228195 [12:39:53]OFD Sender: To server: pG, [12:39:53]CommunicateWithHost lk.salyk.kg:30040 [12:39:53]ConnectInit lk.salyk.kg [12:39:53]Connected sock=10 [12:39:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 48 27 07 01 BD 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 9F 00 00 00 F4 03 04 00 1B 9D 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 63 7B 03 00 35 04 06 00 EA 31 3B 32 7D 08 3A 5A E2 1F E3 80 BD 66 [12:39:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 14 E8 47 00 99 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 63 7B 03 00 F4 03 04 00 13 48 17 67 B6 04 01 00 00 E6 3D 19 6D 0F 78 89 8D [12:39:53]CommunicateWithHost err = 0 [12:39:53]CheckOFDResponse [12:39:53]1017 (14) - 77093643461234 [12:39:53]1041 (16) - 0000000000871839 [12:39:53]1040 (4) - 228195 [12:39:53]1012 (4) - 22.10.2024 06:37 [12:39:53]1206 (1) - 0 [12:39:53]OFD Sender: Remove packet 228195 [12:39:53]ProducePacketName [12:39:53]name=ofd_packets/00228195 [12:39:53]NVStorageDeleteData [12:39:54]Write to MH i2c: 01 00 00 E5 30 15 [12:39:54]Write i2c OK [12:39:54]MH_I2C_Read... [12:39:54]Read from MH i2c: 01 [12:39:54]MH_I2C_Read... [12:39:54]Read from MH i2c: 01 07 00 [12:39:54]MH_I2C_Read... [12:39:54]Read from MH i2c: 01 07 00 E5 30 00 00 00 00 00 CB 0C F3 [12:39:54]RasterBufferAndPrint [12:39:54]line [12:39:54]line [12:39:54]line [12:39:54]line [12:39:54]line [12:39:54]written 0, free lines is 3281 [12:39:54]MH_Cut [12:39:54]Write to MH i2c: D1 01 00 EC 30 01 EE [12:39:54]Write i2c OK [12:39:54]MH_I2C_Read... [12:39:54]Read from MH i2c: D1 [12:39:54]MH_I2C_Read... [12:39:54]Read from MH i2c: D1 01 00 [12:39:54]MH_I2C_Read... [12:39:54]Read from MH i2c: D1 01 00 EC 30 00 ED [12:39:54]Write to MH i2c: 01 00 00 ED 30 1D [12:39:54]Write i2c OK [12:39:54]MH_I2C_Read... [12:39:54]OFD Sender: No OFD packet to send [12:39:54]*** Cut start [12:39:54]*** Partial cut [12:39:54]*** CUTSNS_PIN = 1 [12:39:54]*** CUTSNS_PIN = 0 [12:39:55]*** Brake cut motor [12:39:55]Read from MH i2c: 01 [12:39:55]MH_I2C_Read... [12:39:55]*** Stop cut motor [12:39:55]*** Cut end [12:39:55]Read from MH i2c: 01 07 00 [12:39:55]MH_I2C_Read... [12:39:55]Read from MH i2c: 01 07 00 ED 30 00 00 00 00 00 FF 0F 32 [12:39:55]process_action close_receipt done [12:39:55]requested_data is exist [12:39:55]produce_requested_data [12:39:55]requested_item fm.sn is exist - process it [12:39:55]wFMCommunicate request_size=4 [12:39:55]MH_SAM_APDU [12:39:55]CAPDU: 80 11 00 00 [12:39:55]Write to MH i2c: E2 08 00 EE 30 80 11 00 00 00 00 00 00 98 [12:39:55]Write i2c OK [12:39:55]MH_I2C_Read... [12:39:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:55]Read from MH i2c: E2 [12:39:55]MH_I2C_Read... [12:39:55]Read from MH i2c: E2 17 00 [12:39:55]MH_I2C_Read... [12:39:55]Read from MH i2c: E2 17 00 EE 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 EF [12:39:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:39:55]wFMCommunicate OK [12:39:55]requested_item fd.num is exist - process it [12:39:55]SAM_PROTO_GetFieldsCounters [12:39:55]wFMCommunicate request_size=4 [12:39:55]MH_SAM_APDU [12:39:55]CAPDU: 80 13 00 00 [12:39:55]Write to MH i2c: E2 08 00 EF 30 80 13 00 00 00 00 00 00 9B [12:39:55]Write i2c OK [12:39:55]MH_I2C_Read... [12:39:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:39:55]Read from MH i2c: E2 [12:39:55]MH_I2C_Read... [12:39:55]Read from MH i2c: E2 62 00 [12:39:55]MH_I2C_Read... [12:39:55]Read from MH i2c: E2 62 00 EF 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 63 7B 03 00 0E 04 04 00 17 02 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 9B [12:39:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 63 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:39:55]wFMCommunicate OK [12:39:55]SAM_PROTO_GetFieldsCounters done [12:39:55]requested_item shift.num is exist - process it [12:39:55]requested_item shift.opened is exist - process it [12:39:55]req_shift_opened [12:39:55]FM_GetShiftState [12:39:55]SAM_PROTO_GetShiftState [12:39:55]wFMCommunicate request_size=4 [12:39:55]MH_SAM_APDU [12:39:55]CAPDU: 80 13 01 00 [12:39:55]Write to MH i2c: E2 08 00 F0 30 80 13 01 00 00 00 00 00 9D [12:39:55]Write i2c OK [12:39:55]MH_I2C_Read... [12:39:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:55]Read from MH i2c: E2 [12:39:55]MH_I2C_Read... [12:39:55]Read from MH i2c: E2 0E 00 [12:39:55]MH_I2C_Read... [12:39:55]Read from MH i2c: E2 0E 00 F0 30 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 64 [12:39:55]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:39:55]wFMCommunicate OK [12:39:55]SAM_PROTO_GetShiftState done [12:39:55]FM_GetShiftState done [12:39:55]req_shift_opened done [12:39:55]requested_item shift.open_date is exist - process it [12:39:55]req_shift_open_date [12:39:55]req_shift_open_date done [12:39:55]produce_requested_data done [12:39:55]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228195,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [12:39:55]process_action_free close_receipt [12:39:55]json_value_free [12:39:55]json_value_free done [12:39:55]process_json_proto returns [12:39:55]Send response to host [12:39:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228195,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [12:39:55]free response buf [12:39:55]execute_script done [12:39:55]execute_script returns [12:39:55]free content buf [12:39:55]Sock 7.Close socket [12:39:55]Sock 7.Thread stoped [12:39:59]OFD Sender: No OFD packet to send [12:40:04]OFD Sender: No OFD packet to send [12:40:09]OFD Sender: No OFD packet to send [12:40:14]OFD Sender: No OFD packet to send [12:40:19]OFD Sender: No OFD packet to send [12:40:24]OFD Sender: No OFD packet to send [12:40:29]OFD Sender: No OFD packet to send [12:40:30]accept exits with 9 [12:40:30]New connection [12:40:30]New thread 3067137380 created [12:40:30]Thread 3066994020 joined [12:40:30]Waiting for new connection... [12:40:30] Sock 9.Parse request [12:40:30]Sock 9.Check first char [12:40:30]Sock 9.First char is OK [12:40:30]request: POST /json_proto HTTP/1.0 [12:40:30]Method: POST [12:40:30]URL: /json_proto [12:40:30]Method is POST - this is cgi request [12:40:30]url: /json_proto [12:40:30]query_string will be loaded in cgi processing [12:40:30]execute_cgi json_proto POST (null) [12:40:30]execute_cgi path=json_proto method=POST [12:40:30]POST find Content-Length [12:40:30]Host: 172.17.44.195:8080 [12:40:30]Content-Length: 790 [12:40:30]Content-Type: application/json [12:40:30] [12:40:30]POST finish read [12:40:30]Found Content-Length = 790 [12:40:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964640", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53608", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:30]execute_script... [12:40: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)1964640", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53608", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:30]POST & json_proto [12:40:30]process_json_proto [12:40:30]json parsed OK: [12:40:30]protocol is kg_v1.0 [12:40:30]action value=close_receipt [12:40:30]process_action close_receipt [12:40:30]cmd_close_receipt [12:40:30]MH_GetDate [12:40:30]Write to MH i2c: F0 00 00 F1 30 10 [12:40:30]Write i2c OK [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: F0 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: F0 09 00 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: F0 09 00 F1 30 00 42 9D 17 67 82 C9 CF 66 F6 [12:40:30]GetLastDocTimeStamp 1729600795 [12:40:30]current date 1729600834 [12:40:30]FM_GetShiftState [12:40:30]SAM_PROTO_GetShiftState [12:40:30]wFMCommunicate request_size=4 [12:40:30]MH_SAM_APDU [12:40:30]CAPDU: 80 13 01 00 [12:40:30]Write to MH i2c: E2 08 00 F2 30 80 13 01 00 00 00 00 00 9F [12:40:30]Write i2c OK [12:40:30]MH_I2C_Read... [12:40:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:30]Read from MH i2c: E2 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: E2 0E 00 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: E2 0E 00 F2 30 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 66 [12:40:30]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:40:30]wFMCommunicate OK [12:40:30]SAM_PROTO_GetShiftState done [12:40:30]FM_GetShiftState done [12:40:30]opened in 1729555538 [12:40:30]opened+sec_in_day 1729641938 [12:40:30]quantity*price = 0 [12:40:30]sum+1 = 1 [12:40:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 160 22.10.2024 12:40 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливная Карта 53608 ФМ: 0000000000871839 ФД: 228196 ФПД: 230997818481216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124034&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228196&fm=230997818481216&tin=02508201610067®Number=0000000000091685&sum=0 [12:40:31]StoreToDocumentArchive [12:40:31]shift 535 fd 228196 [12:40:31]save to /storage/0535/doc_00228196 [12:40:31]save last doc name /storage/0535/doc_00228196 to /storage/kkm_last_doc_name [12:40:31]save OK [12:40:31]Clear old archive folders... [12:40:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:40:31]tlvbuf is 00875200 [12:40:31]SAM_PROTO_ClearQueue [12:40:31]wFMCommunicate request_size=4 [12:40:31]MH_SAM_APDU [12:40:31]CAPDU: 80 09 00 00 [12:40:31]Write to MH i2c: E2 08 00 FF 30 80 09 00 00 00 00 00 00 A1 [12:40:31]Write i2c OK [12:40:31]MH_I2C_Read... [12:40:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:31]Read from MH i2c: E2 [12:40:31]MH_I2C_Read... [12:40:31]Read from MH i2c: E2 03 00 [12:40:31]MH_I2C_Read... [12:40:31]Read from MH i2c: E2 03 00 FF 30 00 90 00 A3 [12:40:31]RAPDU: 90 00 [12:40:31]wFMCommunicate OK [12:40:31]SAM_PROTO_ClearQueue done [12:40:31]KKMCreateOFDPacket [12:40:31]OFDProtocolAddRootSTLVToBuf [12:40:31]FM_MakeSignedData [12:40:31]FM_MakeSignedData [12:40:31]SAM_PROTO_SignData [12:40:31]wFMCommunicate request_size=4 [12:40:31]MH_SAM_APDU [12:40:31]CAPDU: 80 0D 01 02 [12:40:31]Write to MH i2c: E2 08 00 00 31 80 0D 01 02 00 00 00 00 AA [12:40:31]Write i2c OK [12:40:31]MH_I2C_Read... [12:40:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:31]Read from MH i2c: E2 [12:40:31]MH_I2C_Read... [12:40:31]Read from MH i2c: E2 03 00 [12:40:31]MH_I2C_Read... [12:40:31]Read from MH i2c: E2 03 00 00 31 00 90 00 A5 [12:40:31]RAPDU: 90 00 [12:40:31]wFMCommunicate OK [12:40:31]wFMCommunicate request_size=255 [12:40:31]MH_SAM_APDU [12:40:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 42 9D 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 64 7B 03 00 35 04 06 00 D2 17 5E EA [12:40:31]Write to MH i2c: E2 02 01 01 31 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 42 9D 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 64 7B 03 00 35 04 06 00 D2 17 5E EA 00 00 A6 [12:40:31]Write i2c OK [12:40:31]MH_I2C_Read... [12:40:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:32]Read from MH i2c: E2 [12:40:32]MH_I2C_Read... [12:40:32]Read from MH i2c: E2 03 00 [12:40:32]MH_I2C_Read... [12:40:32]Read from MH i2c: E2 03 00 01 31 00 90 00 A6 [12:40:32]RAPDU: 90 00 [12:40:32]wFMCommunicate OK [12:40:32]wFMCommunicate request_size=7 [12:40:32]MH_SAM_APDU [12:40:32]CAPDU: 80 0D 02 02 02 1A 40 [12:40:32]Write to MH i2c: E2 0A 00 02 31 80 0D 02 02 02 00 1A 40 00 00 0B [12:40:32]Write i2c OK [12:40:32]MH_I2C_Read... [12:40:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:32]Read from MH i2c: E2 [12:40:32]MH_I2C_Read... [12:40:32]Read from MH i2c: E2 03 00 [12:40:32]MH_I2C_Read... [12:40:32]Read from MH i2c: E2 03 00 02 31 00 90 00 A7 [12:40:32]RAPDU: 90 00 [12:40:32]wFMCommunicate OK [12:40:32]wFMCommunicate request_size=4 [12:40:32]MH_SAM_APDU [12:40:32]CAPDU: 80 0D 03 02 [12:40:32]Write to MH i2c: E2 08 00 03 31 80 0D 03 02 00 00 00 00 AF [12:40:32]Write i2c OK [12:40:32]MH_I2C_Read... [12:40:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:32]Read from MH i2c: E2 [12:40:32]MH_I2C_Read... [12:40:32]Read from MH i2c: E2 0B 00 [12:40:32]MH_I2C_Read... [12:40:32]Read from MH i2c: E2 0B 00 03 31 00 9F 45 54 22 6A 1D 89 56 90 00 70 [12:40:32]RAPDU: 9F 45 54 22 6A 1D 89 56 90 00 [12:40:32]wFMCommunicate OK [12:40:32]SAM_PROTO_SignData done [12:40:32]FM_MakeSignedData done [12:40:32]CreateOFDProtocolMessage [12:40:32]wFMCommunicate request_size=4 [12:40:32]MH_SAM_APDU [12:40:32]CAPDU: 80 11 00 00 [12:40:32]Write to MH i2c: E2 08 00 04 31 80 11 00 00 00 00 00 00 AF [12:40:32]Write i2c OK [12:40:32]MH_I2C_Read... [12:40:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:32]Read from MH i2c: E2 [12:40:32]MH_I2C_Read... [12:40:32]Read from MH i2c: E2 17 00 [12:40:32]MH_I2C_Read... [12:40:32]Read from MH i2c: E2 17 00 04 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 06 [12:40:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:40:32]wFMCommunicate OK [12:40:32]CreateOFDProtocolMessage done [12:40:32]OFDSenderStorePacket 228196 [12:40:32]StoreOFDPacket docnum=228196 [12:40:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 86 37 04 01 71 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 42 9D 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 64 7B 03 00 35 04 06 00 D2 17 5E EA 1A 40 9F 45 54 22 6A 1D 89 56 [12:40:32]CheckFolder [12:40:32]dirname=/storage/ofd_packets [12:40:32]CheckFolder done [12:40:32]ProducePacketName [12:40:32]name=ofd_packets/00228196 [12:40:32]NVStorageSaveData ofd_packets/00228196 [12:40:32]File name is /storage/ofd_packets/00228196 [12:40:32]Write 298 bytes [12:40:32]NVStorageSaveData done [12:40:32]OFDSenderStorePacket done [12:40:32]KKMCreateOFDPacket done [12:40:32]NVStorageSaveData kkm_last_timestamp [12:40:32]File name is /storage/kkm_last_timestamp [12:40:32]Write 4 bytes [12:40:32]NVStorageSaveData done [12:40:32]ExternCall_PrintAddStr [12:40:32]wPrintStart [12:40:32]Write to MH i2c: 01 00 00 05 31 36 [12:40:32]Write i2c OK [12:40:32]MH_I2C_Read... [12:40:32]Read from MH i2c: 01 [12:40:32]MH_I2C_Read... [12:40:32]Read from MH i2c: 01 07 00 [12:40:32]MH_I2C_Read... [12:40:32]Read from MH i2c: 01 07 00 05 31 00 00 00 00 00 FF 0F 4B [12:40:32]RasterBufferAndPrint [12:40:32]line Счет N : (1)1964640 [12:40:32]line ИНН: 02508201610067 [12:40:32]line Контрольно-Кассовый Чек [12:40:32]line ПРОДАЖА [12:40:32]line ТРК (МРК, ГНК) : 51 [12:40:32]line Товар: 2710194210 [12:40:32]line ДТ-К-5 [12:40:32]line 20.000 * 0.00 [12:40:32]line = 0.00 [12:40:32]line НДС 12% НСП 1% [12:40:32]line > о реализуемом товаре [12:40:32]line ИТОГО: 0.00 [12:40:32]line НСП 1% : 0.00 [12:40:32]line НДС 12% : 0.00 [12:40:32]line Наличными: 0.00 [12:40:32]line Безнал.: 0.00 [12:40:32]line Место: АЗС № 133 "Партнер Нефть" [12:40:32]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:40:32]line СНО: Общий режим [12:40:32]line Чек 160 22.10.2024 12:40 [12:40:32]line Смена: 535 ФФД: 1.0 [12:40:32]line ЗНМ: 0300000091 [12:40:32]line РНМ: 0000000000091685 [12:40:32]line Версия ККМ: 001 [12:40:32]line Талоны: Топливная Карта [12:40:32]line 53608 [12:40:32]line ФМ: 0000000000871839 [12:40:32]line ФД: 228196 [12:40:32]line ФПД: 230997818481216 [12:40:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124034&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228196&fm=230997818481216&tin=02508201610067®Number=0000000000091685&sum=0 [12:40:32]written 0, free lines is 4095 [12:40:32]OFD Sender: Processing packet 228196 [packets to send 38, broken 37] [12:40:32]ProducePacketName [12:40:32]name=ofd_packets/00228196 [12:40:32]OFD Sender: To server: pG, [12:40:32]CommunicateWithHost lk.salyk.kg:30040 [12:40:32]ConnectInit lk.salyk.kg [12:40:32]Connected sock=10 [12:40:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 86 37 04 01 71 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 42 9D 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 64 7B 03 00 35 04 06 00 D2 17 5E EA 1A 40 9F 45 54 22 6A 1D 89 56 [12:40:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 1B 78 47 00 A8 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 64 7B 03 00 F4 03 04 00 3A 48 17 67 B6 04 01 00 00 A2 B7 F5 87 9E 9E D8 4A [12:40:32]CommunicateWithHost err = 0 [12:40:32]CheckOFDResponse [12:40:32]1017 (14) - 77093643461234 [12:40:32]1041 (16) - 0000000000871839 [12:40:32]1040 (4) - 228196 [12:40:32]1012 (4) - 22.10.2024 06:37 [12:40:32]1206 (1) - 0 [12:40:32]OFD Sender: Remove packet 228196 [12:40:32]ProducePacketName [12:40:32]name=ofd_packets/00228196 [12:40:32]NVStorageDeleteData [12:40:32]Write to MH i2c: 01 00 00 2E 31 5F [12:40:32]Write i2c OK [12:40:32]MH_I2C_Read... [12:40:32]Read from MH i2c: 01 [12:40:32]MH_I2C_Read... [12:40:32]Read from MH i2c: 01 07 00 [12:40:32]MH_I2C_Read... [12:40:32]Read from MH i2c: 01 07 00 2E 31 00 00 00 00 00 DC 0C 4E [12:40:32]RasterBufferAndPrint [12:40:32]line [12:40:32]line [12:40:32]line [12:40:32]line [12:40:32]line [12:40:32]written 0, free lines is 3297 [12:40:32]MH_Cut [12:40:32]Write to MH i2c: D1 01 00 35 31 01 38 [12:40:32]Write i2c OK [12:40:32]MH_I2C_Read... [12:40:32]Read from MH i2c: D1 [12:40:32]MH_I2C_Read... [12:40:32]Read from MH i2c: D1 01 00 [12:40:32]MH_I2C_Read... [12:40:32]Read from MH i2c: D1 01 00 35 31 00 37 [12:40:32]Write to MH i2c: 01 00 00 36 31 67 [12:40:32]Write i2c OK [12:40:32]MH_I2C_Read... [12:40:33]OFD Sender: No OFD packet to send [12:40:33]*** Cut start [12:40:33]*** Partial cut [12:40:33]*** CUTSNS_PIN = 1 [12:40:33]*** CUTSNS_PIN = 0 [12:40:33]*** Brake cut motor [12:40:34]Read from MH i2c: 01 [12:40:34]MH_I2C_Read... [12:40:34]*** Stop cut motor [12:40:34]*** Cut end [12:40:34]Read from MH i2c: 01 07 00 [12:40:34]MH_I2C_Read... [12:40:34]Read from MH i2c: 01 07 00 36 31 00 00 00 00 00 FF 0F 7C [12:40:34]process_action close_receipt done [12:40:34]requested_data is exist [12:40:34]produce_requested_data [12:40:34]requested_item fm.sn is exist - process it [12:40:34]wFMCommunicate request_size=4 [12:40:34]MH_SAM_APDU [12:40:34]CAPDU: 80 11 00 00 [12:40:34]Write to MH i2c: E2 08 00 37 31 80 11 00 00 00 00 00 00 E2 [12:40:34]Write i2c OK [12:40:34]MH_I2C_Read... [12:40:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:34]Read from MH i2c: E2 [12:40:34]MH_I2C_Read... [12:40:34]Read from MH i2c: E2 17 00 [12:40:34]MH_I2C_Read... [12:40:34]Read from MH i2c: E2 17 00 37 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 39 [12:40:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:40:34]wFMCommunicate OK [12:40:34]requested_item fd.num is exist - process it [12:40:34]SAM_PROTO_GetFieldsCounters [12:40:34]wFMCommunicate request_size=4 [12:40:34]MH_SAM_APDU [12:40:34]CAPDU: 80 13 00 00 [12:40:34]Write to MH i2c: E2 08 00 38 31 80 13 00 00 00 00 00 00 E5 [12:40:34]Write i2c OK [12:40:34]MH_I2C_Read... [12:40:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:34]Read from MH i2c: E2 [12:40:34]MH_I2C_Read... [12:40:34]Read from MH i2c: E2 62 00 [12:40:34]MH_I2C_Read... [12:40:34]Read from MH i2c: E2 62 00 38 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 64 7B 03 00 0E 04 04 00 17 02 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 E9 [12:40:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 64 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:40:34]wFMCommunicate OK [12:40:34]SAM_PROTO_GetFieldsCounters done [12:40:34]requested_item shift.num is exist - process it [12:40:34]requested_item shift.opened is exist - process it [12:40:34]req_shift_opened [12:40:34]FM_GetShiftState [12:40:34]SAM_PROTO_GetShiftState [12:40:34]wFMCommunicate request_size=4 [12:40:34]MH_SAM_APDU [12:40:34]CAPDU: 80 13 01 00 [12:40:34]Write to MH i2c: E2 08 00 39 31 80 13 01 00 00 00 00 00 E7 [12:40:34]Write i2c OK [12:40:34]MH_I2C_Read... [12:40:34]Read from MH i2c: E2 [12:40:34]MH_I2C_Read... [12:40:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:34]Read from MH i2c: E2 0E 00 [12:40:34]MH_I2C_Read... [12:40:34]Read from MH i2c: E2 0E 00 39 31 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 AE [12:40:34]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:40:34]wFMCommunicate OK [12:40:34]SAM_PROTO_GetShiftState done [12:40:34]FM_GetShiftState done [12:40:34]req_shift_opened done [12:40:34]requested_item shift.open_date is exist - process it [12:40:34]req_shift_open_date [12:40:34]req_shift_open_date done [12:40:34]produce_requested_data done [12:40:34]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228196,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [12:40:34]process_action_free close_receipt [12:40:34]json_value_free [12:40:34]json_value_free done [12:40:34]process_json_proto returns [12:40:34]Send response to host [12:40:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228196,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [12:40:34]free response buf [12:40:34]execute_script done [12:40:34]execute_script returns [12:40:34]free content buf [12:40:34]Sock 9.Close socket [12:40:34]Sock 9.Thread stoped [12:40:38]OFD Sender: No OFD packet to send [12:40:43]OFD Sender: No OFD packet to send [12:40:48]OFD Sender: No OFD packet to send [12:40:53]OFD Sender: No OFD packet to send [12:40:58]OFD Sender: No OFD packet to send [12:41:03]OFD Sender: No OFD packet to send [12:41:08]OFD Sender: No OFD packet to send [12:41:13]OFD Sender: No OFD packet to send [12:41:18]OFD Sender: No OFD packet to send [12:41:23]OFD Sender: No OFD packet to send [12:41:28]OFD Sender: No OFD packet to send [12:41:33]OFD Sender: No OFD packet to send [12:41:38]OFD Sender: No OFD packet to send [12:41:43]OFD Sender: No OFD packet to send [12:41:48]OFD Sender: No OFD packet to send [12:41:53]OFD Sender: No OFD packet to send [12:41:58]OFD Sender: No OFD packet to send [12:42:03]OFD Sender: No OFD packet to send [12:42:08]OFD Sender: No OFD packet to send [12:42:13]OFD Sender: No OFD packet to send [12:42:18]OFD Sender: No OFD packet to send [12:42:23]OFD Sender: No OFD packet to send [12:42:28]OFD Sender: No OFD packet to send [12:42:33]OFD Sender: No OFD packet to send [12:42:38]OFD Sender: No OFD packet to send [12:42:43]OFD Sender: No OFD packet to send [12:42:48]OFD Sender: No OFD packet to send [12:42:53]OFD Sender: No OFD packet to send [12:42:58]OFD Sender: No OFD packet to send [12:43:03]OFD Sender: No OFD packet to send [12:43:08]OFD Sender: No OFD packet to send [12:43:13]OFD Sender: No OFD packet to send [12:43:18]OFD Sender: No OFD packet to send [12:43:23]OFD Sender: No OFD packet to send [12:43:28]OFD Sender: No OFD packet to send [12:43:33]OFD Sender: No OFD packet to send [12:43:38]OFD Sender: No OFD packet to send [12:43:43]OFD Sender: No OFD packet to send [12:43:48]OFD Sender: No OFD packet to send [12:43:53]OFD Sender: No OFD packet to send [12:43:58]OFD Sender: No OFD packet to send [12:44:03]OFD Sender: No OFD packet to send [12:44:08]OFD Sender: No OFD packet to send [12:44:13]OFD Sender: No OFD packet to send [12:44:18]OFD Sender: No OFD packet to send [12:44:23]OFD Sender: No OFD packet to send [12:44:28]OFD Sender: No OFD packet to send [12:44:33]OFD Sender: No OFD packet to send [12:44:38]OFD Sender: No OFD packet to send [12:44:43]OFD Sender: No OFD packet to send [12:44:48]OFD Sender: No OFD packet to send [12:44:53]OFD Sender: No OFD packet to send [12:44:58]OFD Sender: No OFD packet to send [12:45:03]OFD Sender: No OFD packet to send [12:45:08]OFD Sender: No OFD packet to send [12:45:13]OFD Sender: No OFD packet to send [12:45:14]accept exits with 7 [12:45:14]New connection [12:45:14]New thread 3066994020 created [12:45:14]Thread 3067137380 joined [12:45:14]Waiting for new connection... [12:45:14] Sock 7.Parse request [12:45:14]Sock 7.Check first char [12:45:14]Sock 7.First char is OK [12:45:14]request: POST /json_proto HTTP/1.0 [12:45:14]Method: POST [12:45:14]URL: /json_proto [12:45:14]Method is POST - this is cgi request [12:45:14]url: /json_proto [12:45:14]query_string will be loaded in cgi processing [12:45:14]execute_cgi json_proto POST (null) [12:45:14]execute_cgi path=json_proto method=POST [12:45:14]POST find Content-Length [12:45:14]Host: 172.17.44.195:8080 [12:45:14]Content-Length: 675 [12:45:14]Content-Type: application/json [12:45:14] [12:45:14]POST finish read [12:45:14]Found Content-Length = 675 [12:45:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964641", "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" : 76.20, "quantity" : 5.250, "sum" : 400.05, "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:45:14]execute_script... [12:45: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)1964641", "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" : 76.20, "quantity" : 5.250, "sum" : 400.05, "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:45:14]POST & json_proto [12:45:14]process_json_proto [12:45:14]json parsed OK: [12:45:14]protocol is kg_v1.0 [12:45:14]action value=close_receipt [12:45:14]process_action close_receipt [12:45:14]cmd_close_receipt [12:45:14]MH_GetDate [12:45:14]Write to MH i2c: F0 00 00 3A 31 5A [12:45:14]Write i2c OK [12:45:14]MH_I2C_Read... [12:45:14]Read from MH i2c: F0 [12:45:14]MH_I2C_Read... [12:45:14]Read from MH i2c: F0 09 00 [12:45:14]MH_I2C_Read... [12:45:14]Read from MH i2c: F0 09 00 3A 31 00 5E 9E 17 67 82 C9 CF 66 5D [12:45:14]GetLastDocTimeStamp 1729600834 [12:45:14]current date 1729601118 [12:45:14]FM_GetShiftState [12:45:14]SAM_PROTO_GetShiftState [12:45:14]wFMCommunicate request_size=4 [12:45:14]MH_SAM_APDU [12:45:14]CAPDU: 80 13 01 00 [12:45:14]Write to MH i2c: E2 08 00 3B 31 80 13 01 00 00 00 00 00 E9 [12:45:14]Write i2c OK [12:45:14]MH_I2C_Read... [12:45:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:14]Read from MH i2c: E2 [12:45:14]MH_I2C_Read... [12:45:14]Read from MH i2c: E2 0E 00 [12:45:14]MH_I2C_Read... [12:45:14]Read from MH i2c: E2 0E 00 3B 31 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 B0 [12:45:14]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:45:14]wFMCommunicate OK [12:45:14]SAM_PROTO_GetShiftState done [12:45:14]FM_GetShiftState done [12:45:14]opened in 1729555538 [12:45:14]opened+sec_in_day 1729641938 [12:45:14]quantity*price = 40005 [12:45:14]sum+1 = 40006 [12:45:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 161 22.10.2024 12:45 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228197 ФПД: 62901965693157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124518&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228197&fm=62901965693157&tin=02508201610067®Number=0000000000091685&sum=40000 [12:45:15]StoreToDocumentArchive [12:45:15]shift 535 fd 228197 [12:45:15]save to /storage/0535/doc_00228197 [12:45:15]save last doc name /storage/0535/doc_00228197 to /storage/kkm_last_doc_name [12:45:15]save OK [12:45:15]Clear old archive folders... [12:45:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:45:15]tlvbuf is 0092A5B0 [12:45:15]SAM_PROTO_ClearQueue [12:45:15]wFMCommunicate request_size=4 [12:45:15]MH_SAM_APDU [12:45:15]CAPDU: 80 09 00 00 [12:45:15]Write to MH i2c: E2 08 00 48 31 80 09 00 00 00 00 00 00 EB [12:45:15]Write i2c OK [12:45:15]MH_I2C_Read... [12:45:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:45:15]Read from MH i2c: E2 [12:45:15]MH_I2C_Read... [12:45:15]Read from MH i2c: E2 03 00 [12:45:15]MH_I2C_Read... [12:45:15]Read from MH i2c: E2 03 00 48 31 00 90 00 ED [12:45:15]RAPDU: 90 00 [12:45:15]wFMCommunicate OK [12:45:15]SAM_PROTO_ClearQueue done [12:45:15]KKMCreateOFDPacket [12:45:15]OFDProtocolAddRootSTLVToBuf [12:45:15]FM_MakeSignedData [12:45:15]FM_MakeSignedData [12:45:15]SAM_PROTO_SignData [12:45:15]wFMCommunicate request_size=4 [12:45:15]MH_SAM_APDU [12:45:15]CAPDU: 80 0D 01 02 [12:45:15]Write to MH i2c: E2 08 00 49 31 80 0D 01 02 00 00 00 00 F3 [12:45:15]Write i2c OK [12:45:15]MH_I2C_Read... [12:45:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:45:15]Read from MH i2c: E2 [12:45:15]MH_I2C_Read... [12:45:15]Read from MH i2c: E2 03 00 [12:45:15]MH_I2C_Read... [12:45:15]Read from MH i2c: E2 03 00 49 31 00 90 00 EE [12:45:15]RAPDU: 90 00 [12:45:15]wFMCommunicate OK [12:45:15]wFMCommunicate request_size=255 [12:45:15]MH_SAM_APDU [12:45:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 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 A1 00 00 00 F4 03 04 00 5E 9E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 65 7B 03 00 35 04 06 00 39 35 81 52 [12:45:15]Write to MH i2c: E2 02 01 4A 31 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 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 A1 00 00 00 F4 03 04 00 5E 9E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 65 7B 03 00 35 04 06 00 39 35 81 52 00 00 CB [12:45:15]Write i2c OK [12:45:15]MH_I2C_Read... [12:45:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:16]Read from MH i2c: E2 [12:45:16]MH_I2C_Read... [12:45:16]Read from MH i2c: E2 03 00 [12:45:16]MH_I2C_Read... [12:45:16]Read from MH i2c: E2 03 00 4A 31 00 90 00 EF [12:45:16]RAPDU: 90 00 [12:45:16]wFMCommunicate OK [12:45:16]wFMCommunicate request_size=7 [12:45:16]MH_SAM_APDU [12:45:16]CAPDU: 80 0D 02 02 02 20 E5 [12:45:16]Write to MH i2c: E2 0A 00 4B 31 80 0D 02 02 02 00 20 E5 00 00 FF [12:45:16]Write i2c OK [12:45:16]MH_I2C_Read... [12:45:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:16]Read from MH i2c: E2 [12:45:16]MH_I2C_Read... [12:45:16]Read from MH i2c: E2 03 00 [12:45:16]MH_I2C_Read... [12:45:16]Read from MH i2c: E2 03 00 4B 31 00 90 00 F0 [12:45:16]RAPDU: 90 00 [12:45:16]wFMCommunicate OK [12:45:16]wFMCommunicate request_size=4 [12:45:16]MH_SAM_APDU [12:45:16]CAPDU: 80 0D 03 02 [12:45:16]Write to MH i2c: E2 08 00 4C 31 80 0D 03 02 00 00 00 00 F8 [12:45:16]Write i2c OK [12:45:16]MH_I2C_Read... [12:45:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:16]Read from MH i2c: E2 [12:45:16]MH_I2C_Read... [12:45:16]Read from MH i2c: E2 0B 00 [12:45:16]MH_I2C_Read... [12:45:16]Read from MH i2c: E2 0B 00 4C 31 00 1A 1A EA 2D BF C1 19 D0 90 00 AD [12:45:16]RAPDU: 1A 1A EA 2D BF C1 19 D0 90 00 [12:45:16]wFMCommunicate OK [12:45:16]SAM_PROTO_SignData done [12:45:16]FM_MakeSignedData done [12:45:16]CreateOFDProtocolMessage [12:45:16]wFMCommunicate request_size=4 [12:45:16]MH_SAM_APDU [12:45:16]CAPDU: 80 11 00 00 [12:45:16]Write to MH i2c: E2 08 00 4D 31 80 11 00 00 00 00 00 00 F8 [12:45:16]Write i2c OK [12:45:16]MH_I2C_Read... [12:45:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:16]Read from MH i2c: E2 [12:45:16]MH_I2C_Read... [12:45:16]Read from MH i2c: E2 17 00 [12:45:16]MH_I2C_Read... [12:45:16]Read from MH i2c: E2 17 00 4D 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4F [12:45:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:45:16]wFMCommunicate OK [12:45:16]CreateOFDProtocolMessage done [12:45:16]OFDSenderStorePacket 228197 [12:45:16]StoreOFDPacket docnum=228197 [12:45:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 1D 88 04 01 28 13 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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 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 A1 00 00 00 F4 03 04 00 5E 9E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 65 7B 03 00 35 04 06 00 39 35 81 52 20 E5 1A 1A EA 2D BF C1 19 D0 [12:45:16]CheckFolder [12:45:16]dirname=/storage/ofd_packets [12:45:16]CheckFolder done [12:45:16]ProducePacketName [12:45:16]name=ofd_packets/00228197 [12:45:16]NVStorageSaveData ofd_packets/00228197 [12:45:16]File name is /storage/ofd_packets/00228197 [12:45:16]Write 298 bytes [12:45:16]NVStorageSaveData done [12:45:16]OFDSenderStorePacket done [12:45:16]KKMCreateOFDPacket done [12:45:16]NVStorageSaveData kkm_last_timestamp [12:45:16]File name is /storage/kkm_last_timestamp [12:45:16]Write 4 bytes [12:45:16]NVStorageSaveData done [12:45:16]ExternCall_PrintAddStr [12:45:16]wPrintStart [12:45:16]Write to MH i2c: 01 00 00 4E 31 7F [12:45:16]Write i2c OK [12:45:16]MH_I2C_Read... [12:45:16]Read from MH i2c: 01 [12:45:16]MH_I2C_Read... [12:45:16]Read from MH i2c: 01 07 00 [12:45:16]MH_I2C_Read... [12:45:16]Read from MH i2c: 01 07 00 4E 31 00 00 00 00 00 FF 0F 94 [12:45:16]RasterBufferAndPrint [12:45:16]line Счет N : (1)1964641 [12:45:16]line ИНН: 02508201610067 [12:45:16]line Контрольно-Кассовый Чек [12:45:16]line ПРОДАЖА [12:45:16]line ТРК (МРК, ГНК) : 11 [12:45:16]line Товар: 2710194210 [12:45:16]line ДТ-К-5 [12:45:16]line 5.250 * 76.20 [12:45:16]line = 400.05 [12:45:16]line НДС 12% НСП 1% [12:45:16]line > о реализуемом товаре [12:45:16]line ОКРУГЛЕНИЕ: -0.05 [12:45:16]line ИТОГО: 400.00 [12:45:16]line Внесено: 400.00 [12:45:16]line СДАЧА: 0.00 [12:45:16]line НСП 1% : 3.54 [12:45:16]line НДС 12% : 42.48 [12:45:16]line Наличными: 400.00 [12:45:16]line Безнал.: 0.00 [12:45:16]line Место: АЗС № 133 "Партнер Нефть" [12:45:16]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:45:16]line СНО: Общий режим [12:45:16]line Чек 161 22.10.2024 12:45 [12:45:16]line Смена: 535 ФФД: 1.0 [12:45:16]line ЗНМ: 0300000091 [12:45:16]line РНМ: 0000000000091685 [12:45:16]line Версия ККМ: 001 [12:45:16]line ФМ: 0000000000871839 [12:45:16]line ФД: 228197 [12:45:16]line ФПД: 62901965693157 [12:45:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124518&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228197&fm=62901965693157&tin=02508201610067®Number=0000000000091685&sum=40000 [12:45:16]OFD Sender: Processing packet 228197 [packets to send 38, broken 37] [12:45:16]ProducePacketName [12:45:16]name=ofd_packets/00228197 [12:45:16]OFD Sender: To server: pG, [12:45:16]CommunicateWithHost lk.salyk.kg:30040 [12:45:16]ConnectInit lk.salyk.kg [12:45:16]written 0, free lines is 4095 [12:45:16]Connected sock=10 [12:45:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 1D 88 04 01 28 13 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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 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 A1 00 00 00 F4 03 04 00 5E 9E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 65 7B 03 00 35 04 06 00 39 35 81 52 20 E5 1A 1A EA 2D BF C1 19 D0 [12:45:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 39 DB 47 00 3F D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 65 7B 03 00 F4 03 04 00 57 49 17 67 B6 04 01 00 00 B1 8E 3F 1F 77 42 AD AE [12:45:16]CommunicateWithHost err = 0 [12:45:16]CheckOFDResponse [12:45:16]1017 (14) - 77093643461234 [12:45:16]1041 (16) - 0000000000871839 [12:45:16]1040 (4) - 228197 [12:45:16]1012 (4) - 22.10.2024 06:42 [12:45:16]1206 (1) - 0 [12:45:16]OFD Sender: Remove packet 228197 [12:45:16]ProducePacketName [12:45:16]name=ofd_packets/00228197 [12:45:16]NVStorageDeleteData [12:45:17]Write to MH i2c: 01 00 00 78 31 A9 [12:45:17]Write i2c OK [12:45:17]MH_I2C_Read... [12:45:17]Read from MH i2c: 01 [12:45:17]MH_I2C_Read... [12:45:17]Read from MH i2c: 01 07 00 [12:45:17]MH_I2C_Read... [12:45:17]Read from MH i2c: 01 07 00 78 31 00 00 00 00 00 B5 0C 71 [12:45:17]RasterBufferAndPrint [12:45:17]line [12:45:17]line [12:45:17]line [12:45:17]line [12:45:17]line [12:45:17]written 0, free lines is 3257 [12:45:17]MH_Cut [12:45:17]Write to MH i2c: D1 01 00 7F 31 01 82 [12:45:17]Write i2c OK [12:45:17]MH_I2C_Read... [12:45:17]Read from MH i2c: D1 [12:45:17]MH_I2C_Read... [12:45:17]Read from MH i2c: D1 01 00 [12:45:17]MH_I2C_Read... [12:45:17]Read from MH i2c: D1 01 00 7F 31 00 81 [12:45:17]Write to MH i2c: 01 00 00 80 31 B1 [12:45:17]Write i2c OK [12:45:17]MH_I2C_Read... [12:45:17]OFD Sender: No OFD packet to send [12:45:17]*** Cut start [12:45:17]*** Partial cut [12:45:17]*** CUTSNS_PIN = 1 [12:45:18]*** CUTSNS_PIN = 0 [12:45:18]*** Brake cut motor [12:45:18]Read from MH i2c: 01 [12:45:18]MH_I2C_Read... [12:45:18]*** Stop cut motor [12:45:18]*** Cut end [12:45:18]Read from MH i2c: 01 07 00 [12:45:18]MH_I2C_Read... [12:45:18]Read from MH i2c: 01 07 00 80 31 00 00 00 00 00 FF 0F C6 [12:45:18]process_action close_receipt done [12:45:18]requested_data is exist [12:45:18]produce_requested_data [12:45:18]requested_item fm.sn is exist - process it [12:45:18]wFMCommunicate request_size=4 [12:45:18]MH_SAM_APDU [12:45:18]CAPDU: 80 11 00 00 [12:45:18]Write to MH i2c: E2 08 00 81 31 80 11 00 00 00 00 00 00 2C [12:45:18]Write i2c OK [12:45:18]MH_I2C_Read... [12:45:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:18]Read from MH i2c: E2 [12:45:18]MH_I2C_Read... [12:45:18]Read from MH i2c: E2 17 00 [12:45:18]MH_I2C_Read... [12:45:18]Read from MH i2c: E2 17 00 81 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 83 [12:45:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:45:18]wFMCommunicate OK [12:45:18]requested_item fd.num is exist - process it [12:45:18]SAM_PROTO_GetFieldsCounters [12:45:18]wFMCommunicate request_size=4 [12:45:18]MH_SAM_APDU [12:45:18]CAPDU: 80 13 00 00 [12:45:18]Write to MH i2c: E2 08 00 82 31 80 13 00 00 00 00 00 00 2F [12:45:18]Write i2c OK [12:45:18]MH_I2C_Read... [12:45:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:18]Read from MH i2c: E2 [12:45:18]MH_I2C_Read... [12:45:18]Read from MH i2c: E2 62 00 [12:45:18]MH_I2C_Read... [12:45:18]Read from MH i2c: E2 62 00 82 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 65 7B 03 00 0E 04 04 00 17 02 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 37 [12:45:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 65 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:45:18]wFMCommunicate OK [12:45:18]SAM_PROTO_GetFieldsCounters done [12:45:18]requested_item shift.num is exist - process it [12:45:18]requested_item shift.opened is exist - process it [12:45:18]req_shift_opened [12:45:18]FM_GetShiftState [12:45:18]SAM_PROTO_GetShiftState [12:45:18]wFMCommunicate request_size=4 [12:45:18]MH_SAM_APDU [12:45:18]CAPDU: 80 13 01 00 [12:45:18]Write to MH i2c: E2 08 00 83 31 80 13 01 00 00 00 00 00 31 [12:45:18]Write i2c OK [12:45:18]MH_I2C_Read... [12:45:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:18]Read from MH i2c: E2 [12:45:18]MH_I2C_Read... [12:45:18]Read from MH i2c: E2 0E 00 [12:45:18]MH_I2C_Read... [12:45:18]Read from MH i2c: E2 0E 00 83 31 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 F8 [12:45:18]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:45:18]wFMCommunicate OK [12:45:18]SAM_PROTO_GetShiftState done [12:45:18]FM_GetShiftState done [12:45:18]req_shift_opened done [12:45:18]requested_item shift.open_date is exist - process it [12:45:18]req_shift_open_date [12:45:18]req_shift_open_date done [12:45:18]produce_requested_data done [12:45:18]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228197,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [12:45:18]process_action_free close_receipt [12:45:18]json_value_free [12:45:18]json_value_free done [12:45:18]process_json_proto returns [12:45:18]Send response to host [12:45:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228197,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [12:45:18]free response buf [12:45:18]execute_script done [12:45:18]execute_script returns [12:45:18]free content buf [12:45:18]Sock 7.Close socket [12:45:18]Sock 7.Thread stoped [12:45:22]OFD Sender: No OFD packet to send [12:45:27]OFD Sender: No OFD packet to send [12:45:32]OFD Sender: No OFD packet to send [12:45:37]OFD Sender: No OFD packet to send [12:45:42]OFD Sender: No OFD packet to send [12:45:47]OFD Sender: No OFD packet to send [12:45:52]OFD Sender: No OFD packet to send [12:45:57]OFD Sender: No OFD packet to send [12:46:02]OFD Sender: No OFD packet to send [12:46:07]OFD Sender: No OFD packet to send [12:46:12]OFD Sender: No OFD packet to send [12:46:17]OFD Sender: No OFD packet to send [12:46:22]OFD Sender: No OFD packet to send [12:46:27]OFD Sender: No OFD packet to send [12:46:32]OFD Sender: No OFD packet to send [12:46:32]accept exits with 9 [12:46:32]New connection [12:46:32]New thread 3067137380 created [12:46:32]Thread 3066994020 joined [12:46:32]Waiting for new connection... [12:46:32] Sock 9.Parse request [12:46:32]Sock 9.Check first char [12:46:32]Sock 9.First char is OK [12:46:32]request: POST /json_proto HTTP/1.0 [12:46:32]Method: POST [12:46:32]URL: /json_proto [12:46:32]Method is POST - this is cgi request [12:46:32]url: /json_proto [12:46:32]query_string will be loaded in cgi processing [12:46:32]execute_cgi json_proto POST (null) [12:46:32]execute_cgi path=json_proto method=POST [12:46:32]POST find Content-Length [12:46:32]Host: 172.17.44.195:8080 [12:46:32]Content-Length: 678 [12:46:32]Content-Type: application/json [12:46:32] [12:46:32]POST finish read [12:46:32]Found Content-Length = 678 [12:46:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964642", "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" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [12:46:32]execute_script... [12: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)1964642", "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" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [12:46:32]POST & json_proto [12:46:32]process_json_proto [12:46:32]json parsed OK: [12:46:32]protocol is kg_v1.0 [12:46:32]action value=close_receipt [12:46:32]process_action close_receipt [12:46:32]cmd_close_receipt [12:46:32]MH_GetDate [12:46:32]Write to MH i2c: F0 00 00 84 31 A4 [12:46:32]Write i2c OK [12:46:32]MH_I2C_Read... [12:46:32]Read from MH i2c: F0 [12:46:32]MH_I2C_Read... [12:46:32]Read from MH i2c: F0 09 00 [12:46:32]MH_I2C_Read... [12:46:32]Read from MH i2c: F0 09 00 84 31 00 AD 9E 17 67 82 C9 CF 66 F6 [12:46:32]GetLastDocTimeStamp 1729601118 [12:46:32]current date 1729601197 [12:46:32]FM_GetShiftState [12:46:32]SAM_PROTO_GetShiftState [12:46:32]wFMCommunicate request_size=4 [12:46:32]MH_SAM_APDU [12:46:32]CAPDU: 80 13 01 00 [12:46:32]Write to MH i2c: E2 08 00 85 31 80 13 01 00 00 00 00 00 33 [12:46:33]Write i2c OK [12:46:33]MH_I2C_Read... [12:46:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:33]Read from MH i2c: E2 [12:46:33]MH_I2C_Read... [12:46:33]Read from MH i2c: E2 0E 00 [12:46:33]MH_I2C_Read... [12:46:33]Read from MH i2c: E2 0E 00 85 31 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 FA [12:46:33]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:46:33]wFMCommunicate OK [12:46:33]SAM_PROTO_GetShiftState done [12:46:33]FM_GetShiftState done [12:46:33]opened in 1729555538 [12:46:33]opened+sec_in_day 1729641938 [12:46:33]quantity*price = 20003 [12:46:33]sum+1 = 20004 [12:46:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 162 22.10.2024 12:46 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228198 ФПД: 16829657201811 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124637&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228198&fm=16829657201811&tin=02508201610067®Number=0000000000091685&sum=20000 [12:46:34]StoreToDocumentArchive [12:46:34]shift 535 fd 228198 [12:46:34]save to /storage/0535/doc_00228198 [12:46:34]save last doc name /storage/0535/doc_00228198 to /storage/kkm_last_doc_name [12:46:34]save OK [12:46:34]Clear old archive folders... [12:46:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:46:34]tlvbuf is 008C9DD0 [12:46:34]SAM_PROTO_ClearQueue [12:46:34]wFMCommunicate request_size=4 [12:46:34]MH_SAM_APDU [12:46:34]CAPDU: 80 09 00 00 [12:46:34]Write to MH i2c: E2 08 00 92 31 80 09 00 00 00 00 00 00 35 [12:46:34]Write i2c OK [12:46:34]MH_I2C_Read... [12:46:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:34]Read from MH i2c: E2 [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: E2 03 00 [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: E2 03 00 92 31 00 90 00 37 [12:46:34]RAPDU: 90 00 [12:46:34]wFMCommunicate OK [12:46:34]SAM_PROTO_ClearQueue done [12:46:34]KKMCreateOFDPacket [12:46:34]OFDProtocolAddRootSTLVToBuf [12:46:34]FM_MakeSignedData [12:46:34]FM_MakeSignedData [12:46:34]SAM_PROTO_SignData [12:46:34]wFMCommunicate request_size=4 [12:46:34]MH_SAM_APDU [12:46:34]CAPDU: 80 0D 01 02 [12:46:34]Write to MH i2c: E2 08 00 93 31 80 0D 01 02 00 00 00 00 3D [12:46:34]Write i2c OK [12:46:34]MH_I2C_Read... [12:46:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:34]Read from MH i2c: E2 [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: E2 03 00 [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: E2 03 00 93 31 00 90 00 38 [12:46:34]RAPDU: 90 00 [12:46:34]wFMCommunicate OK [12:46:34]wFMCommunicate request_size=255 [12:46:34]MH_SAM_APDU [12:46: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 AD 9E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 66 7B 03 00 35 04 06 00 0F [12:46:34]Write to MH i2c: E2 02 01 94 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 AD 9E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 66 7B 03 00 35 04 06 00 0F 00 00 0D [12:46:34]Write i2c OK [12:46:34]MH_I2C_Read... [12:46:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:34]Read from MH i2c: E2 [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: E2 03 00 [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: E2 03 00 94 31 00 90 00 39 [12:46:34]RAPDU: 90 00 [12:46:34]wFMCommunicate OK [12:46:34]wFMCommunicate request_size=10 [12:46:34]MH_SAM_APDU [12:46:34]CAPDU: 80 0D 02 02 05 4E 75 BD 3C 93 [12:46:34]Write to MH i2c: E2 0D 00 95 31 80 0D 02 02 05 00 4E 75 BD 3C 93 00 00 99 [12:46:34]Write i2c OK [12:46:34]MH_I2C_Read... [12:46:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:34]Read from MH i2c: E2 [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: E2 03 00 [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: E2 03 00 95 31 00 90 00 3A [12:46:34]RAPDU: 90 00 [12:46:34]wFMCommunicate OK [12:46:34]wFMCommunicate request_size=4 [12:46:34]MH_SAM_APDU [12:46:34]CAPDU: 80 0D 03 02 [12:46:34]Write to MH i2c: E2 08 00 96 31 80 0D 03 02 00 00 00 00 42 [12:46:34]Write i2c OK [12:46:34]MH_I2C_Read... [12:46:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:34]Read from MH i2c: E2 [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: E2 0B 00 [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: E2 0B 00 96 31 00 C2 91 A9 96 7F 03 B6 26 90 00 33 [12:46:34]RAPDU: C2 91 A9 96 7F 03 B6 26 90 00 [12:46:34]wFMCommunicate OK [12:46:34]SAM_PROTO_SignData done [12:46:34]FM_MakeSignedData done [12:46:34]CreateOFDProtocolMessage [12:46:34]wFMCommunicate request_size=4 [12:46:34]MH_SAM_APDU [12:46:34]CAPDU: 80 11 00 00 [12:46:34]Write to MH i2c: E2 08 00 97 31 80 11 00 00 00 00 00 00 42 [12:46:34]Write i2c OK [12:46:34]MH_I2C_Read... [12:46:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:34]Read from MH i2c: E2 [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: E2 17 00 [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: E2 17 00 97 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 99 [12:46:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:46:34]wFMCommunicate OK [12:46:34]CreateOFDProtocolMessage done [12:46:34]OFDSenderStorePacket 228198 [12:46:34]StoreOFDPacket docnum=228198 [12:46:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 1A 0E 07 01 49 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 AD 9E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 66 7B 03 00 35 04 06 00 0F 4E 75 BD 3C 93 C2 91 A9 96 7F 03 B6 26 [12:46:34]CheckFolder [12:46:34]dirname=/storage/ofd_packets [12:46:34]CheckFolder done [12:46:34]ProducePacketName [12:46:34]name=ofd_packets/00228198 [12:46:34]NVStorageSaveData ofd_packets/00228198 [12:46:34]File name is /storage/ofd_packets/00228198 [12:46:34]Write 301 bytes [12:46:34]NVStorageSaveData done [12:46:34]OFDSenderStorePacket done [12:46:34]KKMCreateOFDPacket done [12:46:34]NVStorageSaveData kkm_last_timestamp [12:46:34]File name is /storage/kkm_last_timestamp [12:46:34]Write 4 bytes [12:46:34]NVStorageSaveData done [12:46:34]OFD Sender: Processing packet 228198 [packets to send 38, broken 37] [12:46:34]ProducePacketName [12:46:34]name=ofd_packets/00228198 [12:46:34]OFD Sender: To server: pG, [12:46:34]CommunicateWithHost lk.salyk.kg:30040 [12:46:34]ConnectInit lk.salyk.kg [12:46:34]ExternCall_PrintAddStr [12:46:34]wPrintStart [12:46:34]Write to MH i2c: 01 00 00 98 31 C9 [12:46:34]Write i2c OK [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: 01 [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: 01 07 00 [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: 01 07 00 98 31 00 00 00 00 00 FF 0F DE [12:46:34]RasterBufferAndPrint [12:46:34]line Счет N : (1)1964642 [12:46:34]line ИНН: 02508201610067 [12:46:34]line Контрольно-Кассовый Чек [12:46:34]line ПРОДАЖА [12:46:34]line ТРК (МРК, ГНК) : 53 [12:46:34]line Товар: 2710124130 [12:46:34]line Аи-92-К-5 [12:46:34]line 2.990 * 66.90 [12:46:34]line = 200.03 [12:46:34]line НДС 12% НСП 1% [12:46:34]line > о реализуемом товаре [12:46:34]line ОКРУГЛЕНИЕ: -0.03 [12:46:34]line ИТОГО: 200.00 [12:46:34]line Внесено: 200.00 [12:46:34]line СДАЧА: 0.00 [12:46:34]line НСП 1% : 1.77 [12:46:34]line НДС 12% : 21.24 [12:46:34]line Наличными: 200.00 [12:46:34]line Безнал.: 0.00 [12:46:34]line Место: АЗС № 133 "Партнер Нефть" [12:46:34]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:46:34]line СНО: Общий режим [12:46:34]line Чек 162 22.10.2024 12:46 [12:46:34]line Смена: 535 ФФД: 1.0 [12:46:34]line ЗНМ: 0300000091 [12:46:34]line РНМ: 0000000000091685 [12:46:34]line Версия ККМ: 001 [12:46:34]line ФМ: 0000000000871839 [12:46:34]line ФД: 228198 [12:46:34]line ФПД: 16829657201811 [12:46:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124637&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228198&fm=16829657201811&tin=02508201610067®Number=0000000000091685&sum=20000 [12:46:35]Connected sock=11 [12:46:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 1A 0E 07 01 49 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 AD 9E 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 66 7B 03 00 35 04 06 00 0F 4E 75 BD 3C 93 C2 91 A9 96 7F 03 B6 26 [12:46:35]written 0, free lines is 4095 [12:46:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 FB CD 47 00 6C A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 66 7B 03 00 F4 03 04 00 A5 49 17 67 B6 04 01 00 00 6F EC CC FA B4 CD 90 BB [12:46:35]CommunicateWithHost err = 0 [12:46:35]CheckOFDResponse [12:46:35]1017 (14) - 77093643461234 [12:46:35]1041 (16) - 0000000000871839 [12:46:35]1040 (4) - 228198 [12:46:35]1012 (4) - 22.10.2024 06:43 [12:46:35]1206 (1) - 0 [12:46:35]OFD Sender: Remove packet 228198 [12:46:35]ProducePacketName [12:46:35]name=ofd_packets/00228198 [12:46:35]NVStorageDeleteData [12:46:35]Write to MH i2c: 01 00 00 C2 31 F3 [12:46:35]Write i2c OK [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: 01 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: 01 07 00 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: 01 07 00 C2 31 00 00 00 00 00 C0 0C C6 [12:46:35]RasterBufferAndPrint [12:46:35]line [12:46:35]line [12:46:35]line [12:46:35]line [12:46:35]line [12:46:35]written 0, free lines is 3268 [12:46:35]MH_Cut [12:46:35]Write to MH i2c: D1 01 00 C9 31 01 CC [12:46:35]Write i2c OK [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: D1 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: D1 01 00 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: D1 01 00 C9 31 00 CB [12:46:35]Write to MH i2c: 01 00 00 CA 31 FB [12:46:35]Write i2c OK [12:46:35]MH_I2C_Read... [12:46:35]OFD Sender: No OFD packet to send [12:46:36]*** Cut start [12:46:36]*** Partial cut [12:46:36]*** CUTSNS_PIN = 1 [12:46:36]*** CUTSNS_PIN = 0 [12:46:36]*** Brake cut motor [12:46:36]Read from MH i2c: 01 [12:46:37]MH_I2C_Read... [12:46:37]*** Stop cut motor [12:46:37]*** Cut end [12:46:37]Read from MH i2c: 01 07 00 [12:46:37]MH_I2C_Read... [12:46:37]Read from MH i2c: 01 07 00 CA 31 00 00 00 00 00 FF 0F 10 [12:46:37]process_action close_receipt done [12:46:37]requested_data is exist [12:46:37]produce_requested_data [12:46:37]requested_item fm.sn is exist - process it [12:46:37]wFMCommunicate request_size=4 [12:46:37]MH_SAM_APDU [12:46:37]CAPDU: 80 11 00 00 [12:46:37]Write to MH i2c: E2 08 00 CB 31 80 11 00 00 00 00 00 00 76 [12:46:37]Write i2c OK [12:46:37]MH_I2C_Read... [12:46:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:37]Read from MH i2c: E2 [12:46:37]MH_I2C_Read... [12:46:37]Read from MH i2c: E2 17 00 [12:46:37]MH_I2C_Read... [12:46:37]Read from MH i2c: E2 17 00 CB 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CD [12:46:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:46:37]wFMCommunicate OK [12:46:37]requested_item fd.num is exist - process it [12:46:37]SAM_PROTO_GetFieldsCounters [12:46:37]wFMCommunicate request_size=4 [12:46:37]MH_SAM_APDU [12:46:37]CAPDU: 80 13 00 00 [12:46:37]Write to MH i2c: E2 08 00 CC 31 80 13 00 00 00 00 00 00 79 [12:46:37]Write i2c OK [12:46:37]MH_I2C_Read... [12:46:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:37]Read from MH i2c: E2 [12:46:37]MH_I2C_Read... [12:46:37]Read from MH i2c: E2 62 00 [12:46:37]MH_I2C_Read... [12:46:37]Read from MH i2c: E2 62 00 CC 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 66 7B 03 00 0E 04 04 00 17 02 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 85 [12:46:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 66 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:37]wFMCommunicate OK [12:46:37]SAM_PROTO_GetFieldsCounters done [12:46:37]requested_item shift.num is exist - process it [12:46:37]requested_item shift.opened is exist - process it [12:46:37]req_shift_opened [12:46:37]FM_GetShiftState [12:46:37]SAM_PROTO_GetShiftState [12:46:37]wFMCommunicate request_size=4 [12:46:37]MH_SAM_APDU [12:46:37]CAPDU: 80 13 01 00 [12:46:37]Write to MH i2c: E2 08 00 CD 31 80 13 01 00 00 00 00 00 7B [12:46:37]Write i2c OK [12:46:37]MH_I2C_Read... [12:46:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:37]Read from MH i2c: E2 [12:46:37]MH_I2C_Read... [12:46:37]Read from MH i2c: E2 0E 00 [12:46:37]MH_I2C_Read... [12:46:37]Read from MH i2c: E2 0E 00 CD 31 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 42 [12:46:37]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:46:37]wFMCommunicate OK [12:46:37]SAM_PROTO_GetShiftState done [12:46:37]FM_GetShiftState done [12:46:37]req_shift_opened done [12:46:37]requested_item shift.open_date is exist - process it [12:46:37]req_shift_open_date [12:46:37]req_shift_open_date done [12:46:37]produce_requested_data done [12:46:37]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228198,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [12:46:37]process_action_free close_receipt [12:46:37]json_value_free [12:46:37]json_value_free done [12:46:37]process_json_proto returns [12:46:37]Send response to host [12:46:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228198,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [12:46:37]free response buf [12:46:37]execute_script done [12:46:37]execute_script returns [12:46:37]free content buf [12:46:37]Sock 9.Close socket [12:46:37]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [12:49:40]OFD Sender: No OFD packet to send [12:49:45]OFD Sender: No OFD packet to send [12:49:47]accept exits with 7 [12:49:47]New connection [12:49:47]New thread 3066994020 created [12:49:47]Thread 3067137380 joined [12:49:47]Waiting for new connection... [12:49:47] Sock 7.Parse request [12:49:47]Sock 7.Check first char [12:49:47]Sock 7.First char is OK [12:49:47]request: POST /json_proto HTTP/1.0 [12:49:47]Method: POST [12:49:47]URL: /json_proto [12:49:47]Method is POST - this is cgi request [12:49:47]url: /json_proto [12:49:47]query_string will be loaded in cgi processing [12:49:47]execute_cgi json_proto POST (null) [12:49:47]execute_cgi path=json_proto method=POST [12:49:47]POST find Content-Length [12:49:47]Host: 172.17.44.195:8080 [12:49:47]Content-Length: 683 [12:49:47]Content-Type: application/json [12:49:47] [12:49:47]POST finish read [12:49:47]Found Content-Length = 683 [12:49:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:47]execute_script... [12:49: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)1964643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:47]POST & json_proto [12:49:47]process_json_proto [12:49:47]json parsed OK: [12:49:47]protocol is kg_v1.0 [12:49:47]action value=close_receipt [12:49:47]process_action close_receipt [12:49:47]cmd_close_receipt [12:49:47]MH_GetDate [12:49:47]Write to MH i2c: F0 00 00 CE 31 EE [12:49:47]Write i2c OK [12:49:47]MH_I2C_Read... [12:49:47]Read from MH i2c: F0 [12:49:47]MH_I2C_Read... [12:49:47]Read from MH i2c: F0 09 00 [12:49:47]MH_I2C_Read... [12:49:47]Read from MH i2c: F0 09 00 CE 31 00 6F 9F 17 67 82 C9 CF 66 03 [12:49:47]GetLastDocTimeStamp 1729601197 [12:49:47]current date 1729601391 [12:49:47]FM_GetShiftState [12:49:47]SAM_PROTO_GetShiftState [12:49:47]wFMCommunicate request_size=4 [12:49:47]MH_SAM_APDU [12:49:47]CAPDU: 80 13 01 00 [12:49:47]Write to MH i2c: E2 08 00 CF 31 80 13 01 00 00 00 00 00 7D [12:49:47]Write i2c OK [12:49:47]MH_I2C_Read... [12:49:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:47]Read from MH i2c: E2 [12:49:47]MH_I2C_Read... [12:49:47]Read from MH i2c: E2 0E 00 [12:49:47]MH_I2C_Read... [12:49:47]Read from MH i2c: E2 0E 00 CF 31 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 44 [12:49:47]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:49:47]wFMCommunicate OK [12:49:47]SAM_PROTO_GetShiftState done [12:49:47]FM_GetShiftState done [12:49:47]opened in 1729555538 [12:49:47]opened+sec_in_day 1729641938 [12:49:47]quantity*price = 300064 [12:49:47]sum+1 = 300066 [12:49:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 163 22.10.2024 12:49 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228199 ФПД: 226308811334713 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124951&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228199&fm=226308811334713&tin=02508201610067®Number=0000000000091685&sum=300000 [12:49:49]StoreToDocumentArchive [12:49:49]shift 535 fd 228199 [12:49:49]save to /storage/0535/doc_00228199 [12:49:49]save last doc name /storage/0535/doc_00228199 to /storage/kkm_last_doc_name [12:49:49]save OK [12:49:49]Clear old archive folders... [12:49:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:49:49]tlvbuf is B6F852B0 [12:49:49]SAM_PROTO_ClearQueue [12:49:49]wFMCommunicate request_size=4 [12:49:49]MH_SAM_APDU [12:49:49]CAPDU: 80 09 00 00 [12:49:49]Write to MH i2c: E2 08 00 DC 31 80 09 00 00 00 00 00 00 7F [12:49:49]Write i2c OK [12:49:49]MH_I2C_Read... [12:49:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:49]Read from MH i2c: E2 [12:49:49]MH_I2C_Read... [12:49:49]Read from MH i2c: E2 03 00 [12:49:49]MH_I2C_Read... [12:49:49]Read from MH i2c: E2 03 00 DC 31 00 90 00 81 [12:49:49]RAPDU: 90 00 [12:49:49]wFMCommunicate OK [12:49:49]SAM_PROTO_ClearQueue done [12:49:49]KKMCreateOFDPacket [12:49:49]OFDProtocolAddRootSTLVToBuf [12:49:49]FM_MakeSignedData [12:49:49]FM_MakeSignedData [12:49:49]SAM_PROTO_SignData [12:49:49]wFMCommunicate request_size=4 [12:49:49]MH_SAM_APDU [12:49:49]CAPDU: 80 0D 01 02 [12:49:49]Write to MH i2c: E2 08 00 DD 31 80 0D 01 02 00 00 00 00 87 [12:49:49]Write i2c OK [12:49:49]MH_I2C_Read... [12:49:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:49]Read from MH i2c: E2 [12:49:49]MH_I2C_Read... [12:49:49]Read from MH i2c: E2 03 00 [12:49:49]MH_I2C_Read... [12:49:49]Read from MH i2c: E2 03 00 DD 31 00 90 00 82 [12:49:49]RAPDU: 90 00 [12:49:49]wFMCommunicate OK [12:49:49]wFMCommunicate request_size=255 [12:49:49]MH_SAM_APDU [12:49: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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 6F 9F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 67 7B 03 00 35 04 06 00 CD [12:49:49]Write to MH i2c: E2 02 01 DE 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 6F 9F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 67 7B 03 00 35 04 06 00 CD 00 00 49 [12:49:49]Write i2c OK [12:49:49]MH_I2C_Read... [12:49:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:49]Read from MH i2c: E2 [12:49:49]MH_I2C_Read... [12:49:49]Read from MH i2c: E2 03 00 [12:49:49]MH_I2C_Read... [12:49:49]Read from MH i2c: E2 03 00 DE 31 00 90 00 83 [12:49:49]RAPDU: 90 00 [12:49:49]wFMCommunicate OK [12:49:49]wFMCommunicate request_size=10 [12:49:49]MH_SAM_APDU [12:49:49]CAPDU: 80 0D 02 02 05 D3 A0 4F 24 39 [12:49:49]Write to MH i2c: E2 0D 00 DF 31 80 0D 02 02 05 00 D3 A0 4F 24 39 00 00 B3 [12:49:49]Write i2c OK [12:49:49]MH_I2C_Read... [12:49:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:49]Read from MH i2c: E2 [12:49:49]MH_I2C_Read... [12:49:49]Read from MH i2c: E2 03 00 [12:49:49]MH_I2C_Read... [12:49:49]Read from MH i2c: E2 03 00 DF 31 00 90 00 84 [12:49:49]RAPDU: 90 00 [12:49:49]wFMCommunicate OK [12:49:49]wFMCommunicate request_size=4 [12:49:49]MH_SAM_APDU [12:49:49]CAPDU: 80 0D 03 02 [12:49:49]Write to MH i2c: E2 08 00 E0 31 80 0D 03 02 00 00 00 00 8C [12:49:49]Write i2c OK [12:49:49]MH_I2C_Read... [12:49:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:49]Read from MH i2c: E2 [12:49:49]MH_I2C_Read... [12:49:49]Read from MH i2c: E2 0B 00 [12:49:49]MH_I2C_Read... [12:49:49]Read from MH i2c: E2 0B 00 E0 31 00 E9 38 90 68 4A 70 C0 B3 90 00 D3 [12:49:49]RAPDU: E9 38 90 68 4A 70 C0 B3 90 00 [12:49:49]wFMCommunicate OK [12:49:49]SAM_PROTO_SignData done [12:49:49]FM_MakeSignedData done [12:49:49]CreateOFDProtocolMessage [12:49:49]wFMCommunicate request_size=4 [12:49:49]MH_SAM_APDU [12:49:49]CAPDU: 80 11 00 00 [12:49:49]Write to MH i2c: E2 08 00 E1 31 80 11 00 00 00 00 00 00 8C [12:49:49]Write i2c OK [12:49:49]MH_I2C_Read... [12:49:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:49]Read from MH i2c: E2 [12:49:49]MH_I2C_Read... [12:49:49]Read from MH i2c: E2 17 00 [12:49:49]MH_I2C_Read... [12:49:49]Read from MH i2c: E2 17 00 E1 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E3 [12:49:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:49:49]wFMCommunicate OK [12:49:49]CreateOFDProtocolMessage done [12:49:49]OFDSenderStorePacket 228199 [12:49:49]StoreOFDPacket docnum=228199 [12:49:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A3 DD 07 01 0F CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 6F 9F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 67 7B 03 00 35 04 06 00 CD D3 A0 4F 24 39 E9 38 90 68 4A 70 C0 B3 [12:49:49]CheckFolder [12:49:49]dirname=/storage/ofd_packets [12:49:49]CheckFolder done [12:49:49]ProducePacketName [12:49:49]name=ofd_packets/00228199 [12:49:49]NVStorageSaveData ofd_packets/00228199 [12:49:49]File name is /storage/ofd_packets/00228199 [12:49:49]Write 301 bytes [12:49:49]NVStorageSaveData done [12:49:49]OFDSenderStorePacket done [12:49:49]KKMCreateOFDPacket done [12:49:49]NVStorageSaveData kkm_last_timestamp [12:49:49]File name is /storage/kkm_last_timestamp [12:49:49]Write 4 bytes [12:49:49]NVStorageSaveData done [12:49:49]OFD Sender: Processing packet 228199 [packets to send 38, broken 37] [12:49:49]ProducePacketName [12:49:49]name=ofd_packets/00228199 [12:49:49]OFD Sender: To server: pG, [12:49:49]CommunicateWithHost lk.salyk.kg:30040 [12:49:49]ConnectInit lk.salyk.kg [12:49:49]ExternCall_PrintAddStr [12:49:49]wPrintStart [12:49:49]Write to MH i2c: 01 00 00 E2 31 13 [12:49:49]Write i2c OK [12:49:49]MH_I2C_Read... [12:49:49]Read from MH i2c: 01 [12:49:49]MH_I2C_Read... [12:49:49]Read from MH i2c: 01 07 00 [12:49:49]MH_I2C_Read... [12:49:49]Read from MH i2c: 01 07 00 E2 31 00 00 00 00 00 FF 0F 28 [12:49:49]RasterBufferAndPrint [12:49:49]line Счет N : (1)1964643 [12:49:49]line ИНН: 02508201610067 [12:49:49]line Контрольно-Кассовый Чек [12:49:49]line ПРОДАЖА [12:49:49]line ТРК (МРК, ГНК) : 54 [12:49:49]line Товар: 2710124500 [12:49:49]line Аи-95-К-5 [12:49:49]line 40.440 * 74.20 [12:49:49]line = 3000.65 [12:49:49]line НДС 12% НСП 1% [12:49:49]line > о реализуемом товаре [12:49:49]line ОКРУГЛЕНИЕ: -0.65 [12:49:49]line ИТОГО: 3000.00 [12:49:49]line Внесено: 3000.00 [12:49:49]line СДАЧА: 0.00 [12:49:49]line НСП 1% : 26.55 [12:49:49]line НДС 12% : 318.65 [12:49:49]line Наличными: 3000.00 [12:49:49]line Безнал.: 0.00 [12:49:49]line Место: АЗС № 133 "Партнер Нефть" [12:49:49]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:49:49]line СНО: Общий режим [12:49:49]line Чек 163 22.10.2024 12:49 [12:49:49]line Смена: 535 ФФД: 1.0 [12:49:49]line ЗНМ: 0300000091 [12:49:49]line РНМ: 0000000000091685 [12:49:49]line Версия ККМ: 001 [12:49:49]line ФМ: 0000000000871839 [12:49:49]line ФД: 228199 [12:49:49]line ФПД: 226308811334713 [12:49:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124951&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228199&fm=226308811334713&tin=02508201610067®Number=0000000000091685&sum=300000 [12:49:49]Connected sock=11 [12:49:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A3 DD 07 01 0F CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 6F 9F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 67 7B 03 00 35 04 06 00 CD D3 A0 4F 24 39 E9 38 90 68 4A 70 C0 B3 [12:49:49]written 0, free lines is 4095 [12:49:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 C4 A2 47 00 55 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 67 7B 03 00 F4 03 04 00 68 4A 17 67 B6 04 01 00 00 FA 22 AC 0C 5A EF 86 19 [12:49:50]CommunicateWithHost err = 0 [12:49:50]CheckOFDResponse [12:49:50]1017 (14) - 77093643461234 [12:49:50]1041 (16) - 0000000000871839 [12:49:50]1040 (4) - 228199 [12:49:50]1012 (4) - 22.10.2024 06:47 [12:49:50]1206 (1) - 0 [12:49:50]OFD Sender: Remove packet 228199 [12:49:50]ProducePacketName [12:49:50]name=ofd_packets/00228199 [12:49:50]NVStorageDeleteData [12:49:50]Write to MH i2c: 01 00 00 0C 32 3E [12:49:50]Write i2c OK [12:49:50]MH_I2C_Read... [12:49:50]Read from MH i2c: 01 [12:49:50]MH_I2C_Read... [12:49:50]Read from MH i2c: 01 07 00 [12:49:50]MH_I2C_Read... [12:49:50]Read from MH i2c: 01 07 00 0C 32 00 00 00 00 00 C0 0C 11 [12:49:50]RasterBufferAndPrint [12:49:50]line [12:49:50]line [12:49:50]line [12:49:50]line [12:49:50]line [12:49:50]written 0, free lines is 3269 [12:49:50]MH_Cut [12:49:50]Write to MH i2c: D1 01 00 13 32 01 17 [12:49:50]Write i2c OK [12:49:50]MH_I2C_Read... [12:49:50]Read from MH i2c: D1 [12:49:50]MH_I2C_Read... [12:49:50]Read from MH i2c: D1 01 00 [12:49:50]MH_I2C_Read... [12:49:50]Read from MH i2c: D1 01 00 13 32 00 16 [12:49:50]Write to MH i2c: 01 00 00 14 32 46 [12:49:50]Write i2c OK [12:49:50]MH_I2C_Read... [12:49:50]OFD Sender: No OFD packet to send [12:49:51]*** Cut start [12:49:51]*** Partial cut [12:49:51]*** CUTSNS_PIN = 1 [12:49:51]*** CUTSNS_PIN = 0 [12:49:51]*** Brake cut motor [12:49:51]Read from MH i2c: 01 [12:49:51]MH_I2C_Read... [12:49:51]*** Stop cut motor [12:49:51]Read from MH i2c: 01 *** Cut end [12:49:51]07 00 [12:49:51]MH_I2C_Read... [12:49:51]Read from MH i2c: 01 07 00 14 32 00 00 00 00 00 FF 0F 5B [12:49:51]process_action close_receipt done [12:49:51]requested_data is exist [12:49:51]produce_requested_data [12:49:51]requested_item fm.sn is exist - process it [12:49:51]wFMCommunicate request_size=4 [12:49:51]MH_SAM_APDU [12:49:51]CAPDU: 80 11 00 00 [12:49:51]Write to MH i2c: E2 08 00 15 32 80 11 00 00 00 00 00 00 C1 [12:49:51]Write i2c OK [12:49:51]MH_I2C_Read... [12:49:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:51]Read from MH i2c: E2 [12:49:51]MH_I2C_Read... [12:49:51]Read from MH i2c: E2 17 00 [12:49:51]MH_I2C_Read... [12:49:51]Read from MH i2c: E2 17 00 15 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 18 [12:49:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:49:51]wFMCommunicate OK [12:49:51]requested_item fd.num is exist - process it [12:49:51]SAM_PROTO_GetFieldsCounters [12:49:51]wFMCommunicate request_size=4 [12:49:51]MH_SAM_APDU [12:49:51]CAPDU: 80 13 00 00 [12:49:51]Write to MH i2c: E2 08 00 16 32 80 13 00 00 00 00 00 00 C4 [12:49:51]Write i2c OK [12:49:51]MH_I2C_Read... [12:49:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:52]Read from MH i2c: E2 [12:49:52]MH_I2C_Read... [12:49:52]Read from MH i2c: E2 62 00 [12:49:52]MH_I2C_Read... [12:49:52]Read from MH i2c: E2 62 00 16 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 67 7B 03 00 0E 04 04 00 17 02 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 D4 [12:49:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 67 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:49:52]wFMCommunicate OK [12:49:52]SAM_PROTO_GetFieldsCounters done [12:49:52]requested_item shift.num is exist - process it [12:49:52]requested_item shift.opened is exist - process it [12:49:52]req_shift_opened [12:49:52]FM_GetShiftState [12:49:52]SAM_PROTO_GetShiftState [12:49:52]wFMCommunicate request_size=4 [12:49:52]MH_SAM_APDU [12:49:52]CAPDU: 80 13 01 00 [12:49:52]Write to MH i2c: E2 08 00 17 32 80 13 01 00 00 00 00 00 C6 [12:49:52]Write i2c OK [12:49:52]MH_I2C_Read... [12:49:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:52]Read from MH i2c: E2 [12:49:52]MH_I2C_Read... [12:49:52]Read from MH i2c: E2 0E 00 [12:49:52]MH_I2C_Read... [12:49:52]Read from MH i2c: E2 0E 00 17 32 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 8D [12:49:52]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:49:52]wFMCommunicate OK [12:49:52]SAM_PROTO_GetShiftState done [12:49:52]FM_GetShiftState done [12:49:52]req_shift_opened done [12:49:52]requested_item shift.open_date is exist - process it [12:49:52]req_shift_open_date [12:49:52]req_shift_open_date done [12:49:52]produce_requested_data done [12:49:52]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228199,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [12:49:52]process_action_free close_receipt [12:49:52]json_value_free [12:49:52]json_value_free done [12:49:52]process_json_proto returns [12:49:52]Send response to host [12:49:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228199,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [12:49:52]free response buf [12:49:52]execute_script done [12:49:52]execute_script returns [12:49:52]free content buf [12:49:52]Sock 7.Close socket [12:49:52]Sock 7.Thread stoped [12:49:55]OFD Sender: No OFD packet to send [12:50:00]OFD Sender: No OFD packet to send [12:50:05]OFD Sender: No OFD packet to send [12:50:10]OFD Sender: No OFD packet to send [12:50:15]OFD Sender: No OFD packet to send [12:50:20]OFD Sender: No OFD packet to send [12:50:25]OFD Sender: No OFD packet to send [12:50:30]OFD Sender: No OFD packet to send [12:50:35]OFD Sender: No OFD packet to send [12:50:35]accept exits with 9 [12:50:35]New connection [12:50:35]New thread 3067137380 created [12:50:35]Thread 3066994020 joined [12:50:35]Waiting for new connection... [12:50:35] Sock 9.Parse request [12:50:35]Sock 9.Check first char [12:50:35]Sock 9.First char is OK [12:50:35]request: POST /json_proto HTTP/1.0 [12:50:35]Method: POST [12:50:35]URL: /json_proto [12:50:35]Method is POST - this is cgi request [12:50:35]url: /json_proto [12:50:35]query_string will be loaded in cgi processing [12:50:35]execute_cgi json_proto POST (null) [12:50:35]execute_cgi path=json_proto method=POST [12:50:35]POST find Content-Length [12:50:35]Host: 172.17.44.195:8080 [12:50:35]Content-Length: 678 [12:50:35]Content-Type: application/json [12:50:35] [12:50:35]POST finish read [12:50:35]Found Content-Length = 678 [12:50:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:50:35]execute_script... [12:50:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:50:35]POST & json_proto [12:50:35]process_json_proto [12:50:35]json parsed OK: [12:50:35]protocol is kg_v1.0 [12:50:35]action value=close_receipt [12:50:35]process_action close_receipt [12:50:35]cmd_close_receipt [12:50:35]MH_GetDate [12:50:35]Write to MH i2c: F0 00 00 18 32 39 [12:50:35]Write i2c OK [12:50:35]MH_I2C_Read... [12:50:35]Read from MH i2c: F0 [12:50:35]MH_I2C_Read... [12:50:35]Read from MH i2c: F0 09 00 [12:50:35]MH_I2C_Read... [12:50:35]Read from MH i2c: F0 09 00 18 32 00 9F 9F 17 67 82 C9 CF 66 7E [12:50:35]GetLastDocTimeStamp 1729601391 [12:50:35]current date 1729601439 [12:50:35]FM_GetShiftState [12:50:35]SAM_PROTO_GetShiftState [12:50:35]wFMCommunicate request_size=4 [12:50:35]MH_SAM_APDU [12:50:35]CAPDU: 80 13 01 00 [12:50:35]Write to MH i2c: E2 08 00 19 32 80 13 01 00 00 00 00 00 C8 [12:50:35]Write i2c OK [12:50:35]MH_I2C_Read... [12:50:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:35]Read from MH i2c: E2 [12:50:35]MH_I2C_Read... [12:50:35]Read from MH i2c: E2 0E 00 [12:50:35]MH_I2C_Read... [12:50:35]Read from MH i2c: E2 0E 00 19 32 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 8F [12:50:35]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:50:35]wFMCommunicate OK [12:50:35]SAM_PROTO_GetShiftState done [12:50:35]FM_GetShiftState done [12:50:35]opened in 1729555538 [12:50:35]opened+sec_in_day 1729641938 [12:50:35]quantity*price = 50041 [12:50:35]sum+1 = 50042 [12:50:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 164 22.10.2024 12:50 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228200 ФПД: 179830612193576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125039&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228200&fm=179830612193576&tin=02508201610067®Number=0000000000091685&sum=50000 [12:50:36]StoreToDocumentArchive [12:50:36]shift 535 fd 228200 [12:50:36]save to /storage/0535/doc_00228200 [12:50:36]save last doc name /storage/0535/doc_00228200 to /storage/kkm_last_doc_name [12:50:36]save OK [12:50:36]Clear old archive folders... [12:50:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:50:36]tlvbuf is 008C2630 [12:50:36]SAM_PROTO_ClearQueue [12:50:36]wFMCommunicate request_size=4 [12:50:36]MH_SAM_APDU [12:50:36]CAPDU: 80 09 00 00 [12:50:36]Write to MH i2c: E2 08 00 26 32 80 09 00 00 00 00 00 00 CA [12:50:36]Write i2c OK [12:50:36]MH_I2C_Read... [12:50:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:50:37]Read from MH i2c: E2 [12:50:37]MH_I2C_Read... [12:50:37]Read from MH i2c: E2 03 00 [12:50:37]MH_I2C_Read... [12:50:37]Read from MH i2c: E2 03 00 26 32 00 90 00 CC [12:50:37]RAPDU: 90 00 [12:50:37]wFMCommunicate OK [12:50:37]SAM_PROTO_ClearQueue done [12:50:37]KKMCreateOFDPacket [12:50:37]OFDProtocolAddRootSTLVToBuf [12:50:37]FM_MakeSignedData [12:50:37]FM_MakeSignedData [12:50:37]SAM_PROTO_SignData [12:50:37]wFMCommunicate request_size=4 [12:50:37]MH_SAM_APDU [12:50:37]CAPDU: 80 0D 01 02 [12:50:37]Write to MH i2c: E2 08 00 27 32 80 0D 01 02 00 00 00 00 D2 [12:50:37]Write i2c OK [12:50:37]MH_I2C_Read... [12:50:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:50:37]Read from MH i2c: E2 [12:50:37]MH_I2C_Read... [12:50:37]Read from MH i2c: E2 03 00 [12:50:37]MH_I2C_Read... [12:50:37]Read from MH i2c: E2 03 00 27 32 00 90 00 CD [12:50:37]RAPDU: 90 00 [12:50:37]wFMCommunicate OK [12:50:37]wFMCommunicate request_size=255 [12:50:37]MH_SAM_APDU [12:50:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 9F 9F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 68 7B 03 00 35 04 06 00 A3 [12:50:37]Write to MH i2c: E2 02 01 28 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 9F 9F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 68 7B 03 00 35 04 06 00 A3 00 00 6B [12:50:37]Write i2c OK [12:50:37]MH_I2C_Read... [12:50:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:37]Read from MH i2c: E2 [12:50:37]MH_I2C_Read... [12:50:37]Read from MH i2c: E2 03 00 [12:50:37]MH_I2C_Read... [12:50:37]Read from MH i2c: E2 03 00 28 32 00 90 00 CE [12:50:37]RAPDU: 90 00 [12:50:37]wFMCommunicate OK [12:50:37]wFMCommunicate request_size=10 [12:50:37]MH_SAM_APDU [12:50:37]CAPDU: 80 0D 02 02 05 8E 13 C2 71 28 [12:50:37]Write to MH i2c: E2 0D 00 29 32 80 0D 02 02 05 00 8E 13 C2 71 28 00 00 DB [12:50:37]Write i2c OK [12:50:37]MH_I2C_Read... [12:50:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:37]Read from MH i2c: E2 [12:50:37]MH_I2C_Read... [12:50:37]Read from MH i2c: E2 03 00 [12:50:37]MH_I2C_Read... [12:50:37]Read from MH i2c: E2 03 00 29 32 00 90 00 CF [12:50:37]RAPDU: 90 00 [12:50:37]wFMCommunicate OK [12:50:37]wFMCommunicate request_size=4 [12:50:37]MH_SAM_APDU [12:50:37]CAPDU: 80 0D 03 02 [12:50:37]Write to MH i2c: E2 08 00 2A 32 80 0D 03 02 00 00 00 00 D7 [12:50:37]Write i2c OK [12:50:37]MH_I2C_Read... [12:50:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:50:37]Read from MH i2c: E2 [12:50:37]MH_I2C_Read... [12:50:37]Read from MH i2c: E2 0B 00 [12:50:37]MH_I2C_Read... [12:50:37]Read from MH i2c: E2 0B 00 2A 32 00 9E DC 36 3C 8B A8 17 7E 90 00 8C [12:50:37]RAPDU: 9E DC 36 3C 8B A8 17 7E 90 00 [12:50:37]wFMCommunicate OK [12:50:37]SAM_PROTO_SignData done [12:50:37]FM_MakeSignedData done [12:50:37]CreateOFDProtocolMessage [12:50:37]wFMCommunicate request_size=4 [12:50:37]MH_SAM_APDU [12:50:37]CAPDU: 80 11 00 00 [12:50:37]Write to MH i2c: E2 08 00 2B 32 80 11 00 00 00 00 00 00 D7 [12:50:37]Write i2c OK [12:50:37]MH_I2C_Read... [12:50:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:37]Read from MH i2c: E2 [12:50:37]MH_I2C_Read... [12:50:37]Read from MH i2c: E2 17 00 [12:50:37]MH_I2C_Read... [12:50:37]Read from MH i2c: E2 17 00 2B 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2E [12:50:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:50:37]wFMCommunicate OK [12:50:37]CreateOFDProtocolMessage done [12:50:37]OFDSenderStorePacket 228200 [12:50:37]StoreOFDPacket docnum=228200 [12:50:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 55 2D 07 01 24 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 9F 9F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 68 7B 03 00 35 04 06 00 A3 8E 13 C2 71 28 9E DC 36 3C 8B A8 17 7E [12:50:37]CheckFolder [12:50:37]dirname=/storage/ofd_packets [12:50:37]CheckFolder done [12:50:37]ProducePacketName [12:50:37]name=ofd_packets/00228200 [12:50:37]NVStorageSaveData ofd_packets/00228200 [12:50:37]File name is /storage/ofd_packets/00228200 [12:50:37]Write 301 bytes [12:50:37]NVStorageSaveData done [12:50:37]OFDSenderStorePacket done [12:50:37]KKMCreateOFDPacket done [12:50:37]NVStorageSaveData kkm_last_timestamp [12:50:37]File name is /storage/kkm_last_timestamp [12:50:37]Write 4 bytes [12:50:37]NVStorageSaveData done [12:50:37]ExternCall_PrintAddStr [12:50:37]wPrintStart [12:50:37]Write to MH i2c: 01 00 00 2C 32 5E [12:50:37]Write i2c OK [12:50:37]MH_I2C_Read... [12:50:37]Read from MH i2c: 01 [12:50:37]MH_I2C_Read... [12:50:37]Read from MH i2c: 01 07 00 [12:50:37]MH_I2C_Read... [12:50:37]Read from MH i2c: 01 07 00 2C 32 00 00 00 00 00 FF 0F 73 [12:50:37]RasterBufferAndPrint [12:50:37]line Счет N : (1)1964645 [12:50:37]line ИНН: 02508201610067 [12:50:37]line Контрольно-Кассовый Чек [12:50:37]line ПРОДАЖА [12:50:37]line ТРК (МРК, ГНК) : 33 [12:50:37]line Товар: 2710124130 [12:50:37]line Аи-92-К-5 [12:50:37]line 7.480 * 66.90 [12:50:37]line = 500.41 [12:50:37]line НДС 12% НСП 1% [12:50:37]line > о реализуемом товаре [12:50:37]line ОКРУГЛЕНИЕ: -0.41 [12:50:37]line ИТОГО: 500.00 [12:50:37]line Внесено: 500.00 [12:50:37]line СДАЧА: 0.00 [12:50:37]line НСП 1% : 4.43 [12:50:37]line НДС 12% : 53.14 [12:50:37]line Наличными: 500.00 [12:50:37]line Безнал.: 0.00 [12:50:37]line Место: АЗС № 133 "Партнер Нефть" [12:50:37]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:50:37]line СНО: Общий режим [12:50:37]line Чек 164 22.10.2024 12:50 [12:50:37]line Смена: 535 ФФД: 1.0 [12:50:37]line ЗНМ: 0300000091 [12:50:37]line РНМ: 0000000000091685 [12:50:37]line Версия ККМ: 001 [12:50:37]line ФМ: 0000000000871839 [12:50:37]line ФД: 228200 [12:50:37]line ФПД: 179830612193576 [12:50:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125039&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228200&fm=179830612193576&tin=02508201610067®Number=0000000000091685&sum=50000 [12:50:37]written 0, free lines is 4095 [12:50:37]OFD Sender: Processing packet 228200 [packets to send 38, broken 37] [12:50:37]ProducePacketName [12:50:37]name=ofd_packets/00228200 [12:50:37]OFD Sender: To server: pG, [12:50:37]CommunicateWithHost lk.salyk.kg:30040 [12:50:37]ConnectInit lk.salyk.kg [12:50:37]Connected sock=10 [12:50:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 55 2D 07 01 24 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 9F 9F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 68 7B 03 00 35 04 06 00 A3 8E 13 C2 71 28 9E DC 36 3C 8B A8 17 7E [12:50:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 38 2F 47 00 EC 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 68 7B 03 00 F4 03 04 00 98 4A 17 67 B6 04 01 00 00 41 45 9A 5C 61 4B 25 BE [12:50:38]CommunicateWithHost err = 0 [12:50:38]CheckOFDResponse [12:50:38]1017 (14) - 77093643461234 [12:50:38]1041 (16) - 0000000000871839 [12:50:38]1040 (4) - 228200 [12:50:38]1012 (4) - 22.10.2024 06:47 [12:50:38]1206 (1) - 0 [12:50:38]OFD Sender: Remove packet 228200 [12:50:38]ProducePacketName [12:50:38]name=ofd_packets/00228200 [12:50:38]NVStorageDeleteData [12:50:38]Write to MH i2c: 01 00 00 56 32 88 [12:50:38]Write i2c OK [12:50:38]MH_I2C_Read... [12:50:38]Read from MH i2c: 01 [12:50:38]MH_I2C_Read... [12:50:38]Read from MH i2c: 01 07 00 [12:50:38]MH_I2C_Read... [12:50:38]Read from MH i2c: 01 07 00 56 32 00 00 00 00 00 C2 0C 5D [12:50:38]RasterBufferAndPrint [12:50:38]line [12:50:38]line [12:50:38]line [12:50:38]line [12:50:38]line [12:50:38]written 0, free lines is 3270 [12:50:38]MH_Cut [12:50:38]Write to MH i2c: D1 01 00 5D 32 01 61 [12:50:38]Write i2c OK [12:50:38]MH_I2C_Read... [12:50:38]Read from MH i2c: D1 [12:50:38]MH_I2C_Read... [12:50:38]Read from MH i2c: D1 01 00 [12:50:38]MH_I2C_Read... [12:50:38]Read from MH i2c: D1 01 00 5D 32 00 60 [12:50:38]Write to MH i2c: 01 00 00 5E 32 90 [12:50:38]Write i2c OK [12:50:38]MH_I2C_Read... [12:50:38]OFD Sender: No OFD packet to send [12:50:39]*** Cut start [12:50:39]*** Partial cut [12:50:39]*** CUTSNS_PIN = 1 [12:50:39]*** CUTSNS_PIN = 0 [12:50:39]*** Brake cut motor [12:50:39]Read from MH i2c: 01 [12:50:39]MH_I2C_Read... [12:50:39]*** Stop cut motor [12:50:39]*** Cut end [12:50:39]Read from MH i2c: 01 07 00 [12:50:39]MH_I2C_Read... [12:50:39]Read from MH i2c: 01 07 00 5E 32 00 00 00 00 00 FF 0F A5 [12:50:39]process_action close_receipt done [12:50:39]requested_data is exist [12:50:39]produce_requested_data [12:50:39]requested_item fm.sn is exist - process it [12:50:39]wFMCommunicate request_size=4 [12:50:39]MH_SAM_APDU [12:50:39]CAPDU: 80 11 00 00 [12:50:39]Write to MH i2c: E2 08 00 5F 32 80 11 00 00 00 00 00 00 0B [12:50:39]Write i2c OK [12:50:39]MH_I2C_Read... [12:50:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:39]Read from MH i2c: E2 [12:50:39]MH_I2C_Read... [12:50:39]Read from MH i2c: E2 17 00 [12:50:39]MH_I2C_Read... [12:50:39]Read from MH i2c: E2 17 00 5F 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 62 [12:50:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:50:39]wFMCommunicate OK [12:50:39]requested_item fd.num is exist - process it [12:50:39]SAM_PROTO_GetFieldsCounters [12:50:39]wFMCommunicate request_size=4 [12:50:39]MH_SAM_APDU [12:50:39]CAPDU: 80 13 00 00 [12:50:39]Write to MH i2c: E2 08 00 60 32 80 13 00 00 00 00 00 00 0E [12:50:39]Write i2c OK [12:50:39]MH_I2C_Read... [12:50:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:50:39]Read from MH i2c: E2 [12:50:39]MH_I2C_Read... [12:50:39]Read from MH i2c: E2 62 00 [12:50:39]MH_I2C_Read... [12:50:39]Read from MH i2c: E2 62 00 60 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 68 7B 03 00 0E 04 04 00 17 02 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 22 [12:50:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 68 7B 03 00 0E 04 04 00 17 02 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 [12:50:39]wFMCommunicate OK [12:50:39]SAM_PROTO_GetFieldsCounters done [12:50:39]requested_item shift.num is exist - process it [12:50:39]requested_item shift.opened is exist - process it [12:50:39]req_shift_opened [12:50:39]FM_GetShiftState [12:50:39]SAM_PROTO_GetShiftState [12:50:39]wFMCommunicate request_size=4 [12:50:39]MH_SAM_APDU [12:50:39]CAPDU: 80 13 01 00 [12:50:39]Write to MH i2c: E2 08 00 61 32 80 13 01 00 00 00 00 00 10 [12:50:39]Write i2c OK [12:50:39]MH_I2C_Read... [12:50:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:39]Read from MH i2c: E2 [12:50:40]MH_I2C_Read... [12:50:40]Read from MH i2c: E2 0E 00 [12:50:40]MH_I2C_Read... [12:50:40]Read from MH i2c: E2 0E 00 61 32 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 D7 [12:50:40]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:50:40]wFMCommunicate OK [12:50:40]SAM_PROTO_GetShiftState done [12:50:40]FM_GetShiftState done [12:50:40]req_shift_opened done [12:50:40]requested_item shift.open_date is exist - process it [12:50:40]req_shift_open_date [12:50:40]req_shift_open_date done [12:50:40]produce_requested_data done [12:50:40]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228200,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [12:50:40]process_action_free close_receipt [12:50:40]json_value_free [12:50:40]json_value_free done [12:50:40]process_json_proto returns [12:50:40]Send response to host [12:50:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228200,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [12:50:40]free response buf [12:50:40]execute_script done [12:50:40]execute_script returns [12:50:40]free content buf [12:50:40]Sock 9.Close socket [12:50:40]Sock 9.Thread stoped [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:33]OFD Sender: No OFD packet to send [12:51:38]OFD Sender: No OFD packet to send [12:51:43]OFD Sender: No OFD packet to send [12:51:44]accept exits with 7 [12:51:44]New connection [12:51:44]New thread 3066994020 created [12:51:44]Thread 3067137380 joined [12:51:44]Waiting for new connection... [12:51:44] Sock 7.Parse request [12:51:44]Sock 7.Check first char [12:51:44]Sock 7.First char is OK [12:51:44]request: POST /json_proto HTTP/1.0 [12:51:44]Method: POST [12:51:44]URL: /json_proto [12:51:44]Method is POST - this is cgi request [12:51:44]url: /json_proto [12:51:44]query_string will be loaded in cgi processing [12:51:44]execute_cgi json_proto POST (null) [12:51:44]execute_cgi path=json_proto method=POST [12:51:44]POST find Content-Length [12:51:44]Host: 172.17.44.195:8080 [12:51:44]Content-Length: 767 [12:51:44]Content-Type: application/json [12:51:44] [12:51:44]POST finish read [12:51:44]Found Content-Length = 767 [12:51:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.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: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:44]execute_script... [12: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)1964644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.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: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:44]POST & json_proto [12:51:44]process_json_proto [12:51:44]json parsed OK: [12:51:44]protocol is kg_v1.0 [12:51:44]action value=close_receipt [12:51:44]process_action close_receipt [12:51:44]cmd_close_receipt [12:51:44]MH_GetDate [12:51:44]Write to MH i2c: F0 00 00 62 32 83 [12:51:44]Write i2c OK [12:51:44]MH_I2C_Read... [12:51:44]Read from MH i2c: F0 [12:51:44]MH_I2C_Read... [12:51:44]Read from MH i2c: F0 09 00 [12:51:44]MH_I2C_Read... [12:51:44]Read from MH i2c: F0 09 00 62 32 00 E4 9F 17 67 82 C9 CF 66 0D [12:51:44]GetLastDocTimeStamp 1729601439 [12:51:44]current date 1729601508 [12:51:44]FM_GetShiftState [12:51:44]SAM_PROTO_GetShiftState [12:51:44]wFMCommunicate request_size=4 [12:51:44]MH_SAM_APDU [12:51:44]CAPDU: 80 13 01 00 [12:51:44]Write to MH i2c: E2 08 00 63 32 80 13 01 00 00 00 00 00 12 [12:51:44]Write i2c OK [12:51:44]MH_I2C_Read... [12:51:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:44]Read from MH i2c: E2 [12:51:44]MH_I2C_Read... [12:51:44]Read from MH i2c: E2 0E 00 [12:51:44]MH_I2C_Read... [12:51:44]Read from MH i2c: E2 0E 00 63 32 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 D9 [12:51:44]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:51:44]wFMCommunicate OK [12:51:44]SAM_PROTO_GetShiftState done [12:51:44]FM_GetShiftState done [12:51:44]opened in 1729555538 [12:51:44]opened+sec_in_day 1729641938 [12:51:44]quantity*price = 50041 [12:51:44]sum+1 = 50042 [12:51:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 165 22.10.2024 12:51 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 228201 ФПД: 6769549707801 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125148&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228201&fm=6769549707801&tin=02508201610067®Number=0000000000091685&sum=50041 [12:51:45]StoreToDocumentArchive [12:51:45]shift 535 fd 228201 [12:51:45]save to /storage/0535/doc_00228201 [12:51:45]save last doc name /storage/0535/doc_00228201 to /storage/kkm_last_doc_name [12:51:45]save OK [12:51:45]Clear old archive folders... [12:51:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:51:45]tlvbuf is 008D8E00 [12:51:45]SAM_PROTO_ClearQueue [12:51:45]wFMCommunicate request_size=4 [12:51:45]MH_SAM_APDU [12:51:45]CAPDU: 80 09 00 00 [12:51:45]Write to MH i2c: E2 08 00 70 32 80 09 00 00 00 00 00 00 14 [12:51:45]Write i2c OK [12:51:45]MH_I2C_Read... [12:51:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:45]Read from MH i2c: E2 [12:51:45]MH_I2C_Read... [12:51:45]Read from MH i2c: E2 03 00 [12:51:45]MH_I2C_Read... [12:51:45]Read from MH i2c: E2 03 00 70 32 00 90 00 16 [12:51:45]RAPDU: 90 00 [12:51:45]wFMCommunicate OK [12:51:45]SAM_PROTO_ClearQueue done [12:51:45]KKMCreateOFDPacket [12:51:45]OFDProtocolAddRootSTLVToBuf [12:51:45]FM_MakeSignedData [12:51:45]FM_MakeSignedData [12:51:45]SAM_PROTO_SignData [12:51:45]wFMCommunicate request_size=4 [12:51:45]MH_SAM_APDU [12:51:45]CAPDU: 80 0D 01 02 [12:51:45]Write to MH i2c: E2 08 00 71 32 80 0D 01 02 00 00 00 00 1C [12:51:45]Write i2c OK [12:51:45]MH_I2C_Read... [12:51:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:45]Read from MH i2c: E2 [12:51:45]MH_I2C_Read... [12:51:45]Read from MH i2c: E2 03 00 [12:51:45]MH_I2C_Read... [12:51:45]Read from MH i2c: E2 03 00 71 32 00 90 00 17 [12:51:45]RAPDU: 90 00 [12:51:45]wFMCommunicate OK [12:51:45]wFMCommunicate request_size=255 [12:51:45]MH_SAM_APDU [12: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 E4 9F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 69 7B 03 00 35 04 06 00 06 [12:51:45]Write to MH i2c: E2 02 01 72 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 E4 9F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 69 7B 03 00 35 04 06 00 06 00 00 B1 [12:51:45]Write i2c OK [12:51:45]MH_I2C_Read... [12:51:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:45]Read from MH i2c: E2 [12:51:45]MH_I2C_Read... [12:51:45]Read from MH i2c: E2 03 00 [12:51:45]MH_I2C_Read... [12:51:45]Read from MH i2c: E2 03 00 72 32 00 90 00 18 [12:51:45]RAPDU: 90 00 [12:51:45]wFMCommunicate OK [12:51:45]wFMCommunicate request_size=10 [12:51:45]MH_SAM_APDU [12:51:45]CAPDU: 80 0D 02 02 05 28 28 9B 0A 19 [12:51:45]Write to MH i2c: E2 0D 00 73 32 80 0D 02 02 05 00 28 28 9B 0A 19 00 00 37 [12:51:45]Write i2c OK [12:51:45]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 73 32 00 90 00 19 [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 74 32 80 0D 03 02 00 00 00 00 21 [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 74 32 00 F9 FD 93 6D 9C 05 B5 F3 90 00 61 [12:51:46]RAPDU: F9 FD 93 6D 9C 05 B5 F3 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 75 32 80 11 00 00 00 00 00 00 21 [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 75 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 78 [12:51:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:51:46]wFMCommunicate OK [12:51:46]CreateOFDProtocolMessage done [12:51:46]OFDSenderStorePacket 228201 [12:51:46]StoreOFDPacket docnum=228201 [12:51:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 92 94 07 01 E1 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 E4 9F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 69 7B 03 00 35 04 06 00 06 28 28 9B 0A 19 F9 FD 93 6D 9C 05 B5 F3 [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/00228201 [12:51:46]NVStorageSaveData ofd_packets/00228201 [12:51:46]File name is /storage/ofd_packets/00228201 [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 76 32 A8 [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 76 32 00 00 00 00 00 FF 0F BD [12:51:46]RasterBufferAndPrint [12:51:46]line Счет N : (1)1964644 [12:51:46]line ИНН: 02508201610067 [12:51:46]line Контрольно-Кассовый Чек [12:51:46]line ПРОДАЖА [12:51:46]line ТРК (МРК, ГНК) : 43 [12:51:46]line Товар: 2710124130 [12:51:46]line Аи-92-К-5 [12:51:46]line 7.480 * 66.90 [12:51:46]line = 500.41 [12:51:46]line НДС 12% НСП 1% [12:51:46]line > о реализуемом товаре [12:51:46]line ИТОГО: 500.41 [12:51:46]line НСП 1% : 4.43 [12:51:46]line НДС 12% : 53.14 [12:51:46]line Наличными: 0.00 [12:51:46]line Безнал.: 500.41 [12:51:46]line Место: АЗС № 133 "Партнер Нефть" [12:51:46]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:51:46]line СНО: Общий режим [12:51:46]line Чек 165 22.10.2024 12:51 [12:51:46]line Смена: 535 ФФД: 1.0 [12:51:46]line ЗНМ: 0300000091 [12:51:46]line РНМ: 0000000000091685 [12:51:46]line Версия ККМ: 001 [12:51:46]line Платежная система: Mbank [12:51:46]line ФМ: 0000000000871839 [12:51:46]line ФД: 228201 [12:51:46]line ФПД: 6769549707801 [12:51:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125148&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228201&fm=6769549707801&tin=02508201610067®Number=0000000000091685&sum=50041 [12:51:46]written 0, free lines is 4095 [12:51:46]OFD Sender: Processing packet 228201 [packets to send 38, broken 37] [12:51:46]ProducePacketName [12:51:46]name=ofd_packets/00228201 [12:51:46]OFD Sender: To server: pG, [12:51:46]CommunicateWithHost lk.salyk.kg:30040 [12:51:46]ConnectInit lk.salyk.kg [12:51:46]Connected sock=10 [12:51:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 92 94 07 01 E1 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 E4 9F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 69 7B 03 00 35 04 06 00 06 28 28 9B 0A 19 F9 FD 93 6D 9C 05 B5 F3 [12:51:46]Write to MH i2c: 01 00 00 9E 32 D0 [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 9E 32 00 00 00 00 00 F7 0C DA [12:51:46]RasterBufferAndPrint [12:51:46]line [12:51:46]line [12:51:46]line [12:51:46]line [12:51:46]line [12:51:46]written 0, free lines is 3328 [12:51:46]MH_Cut [12:51:46]Write to MH i2c: D1 01 00 A5 32 01 A9 [12:51:46]Write i2c OK [12:51:46]MH_I2C_Read... [12:51:46]Read from MH i2c: D1 [12:51:46]MH_I2C_Read... [12:51:46]Read from MH i2c: D1 01 00 [12:51:46]MH_I2C_Read... [12:51:46]Read from MH i2c: D1 01 00 A5 32 00 A8 [12:51:46]Write to MH i2c: 01 00 00 A6 32 D8 [12:51:46]Write i2c OK [12:51:46]MH_I2C_Read... [12:51:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 37 97 47 00 E2 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 69 7B 03 00 F4 03 04 00 DC 4A 17 67 B6 04 01 00 00 CE 2B 00 67 FB 1E A8 E5 [12:51:46]CommunicateWithHost err = 0 [12:51:46]CheckOFDResponse [12:51:46]1017 (14) - 77093643461234 [12:51:46]1041 (16) - 0000000000871839 [12:51:46]1040 (4) - 228201 [12:51:46]1012 (4) - 22.10.2024 06:49 [12:51:46]1206 (1) - 0 [12:51:46]OFD Sender: Remove packet 228201 [12:51:46]ProducePacketName [12:51:46]name=ofd_packets/00228201 [12:51:46]NVStorageDeleteData [12:51:47]OFD Sender: No OFD packet to send [12:51:47]*** Cut start [12:51:47]*** Partial cut [12:51:47]*** CUTSNS_PIN = 1 [12:51:47]*** CUTSNS_PIN = 0 [12:51:47]*** Brake cut motor [12:51:47]Read from MH i2c: 01 [12:51:48]MH_I2C_Read... [12:51:48]*** Stop cut motor [12:51:48]*** Cut end [12:51:48]Read from MH i2c: 01 07 00 [12:51:48]MH_I2C_Read... [12:51:48]Read from MH i2c: 01 07 00 A6 32 00 00 00 00 00 FF 0F ED [12:51:48]process_action close_receipt done [12:51:48]requested_data is exist [12:51:48]produce_requested_data [12:51:48]requested_item fm.sn is exist - process it [12:51:48]wFMCommunicate request_size=4 [12:51:48]MH_SAM_APDU [12:51:48]CAPDU: 80 11 00 00 [12:51:48]Write to MH i2c: E2 08 00 A7 32 80 11 00 00 00 00 00 00 53 [12:51:48]Write i2c OK [12:51:48]MH_I2C_Read... [12:51:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:48]Read from MH i2c: E2 [12:51:48]MH_I2C_Read... [12:51:48]Read from MH i2c: E2 17 00 [12:51:48]MH_I2C_Read... [12:51:48]Read from MH i2c: E2 17 00 A7 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AA [12:51:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:51:48]wFMCommunicate OK [12:51:48]requested_item fd.num is exist - process it [12:51:48]SAM_PROTO_GetFieldsCounters [12:51:48]wFMCommunicate request_size=4 [12:51:48]MH_SAM_APDU [12:51:48]CAPDU: 80 13 00 00 [12:51:48]Write to MH i2c: E2 08 00 A8 32 80 13 00 00 00 00 00 00 56 [12:51:48]Write i2c OK [12:51:48]MH_I2C_Read... [12:51:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:48]Read from MH i2c: E2 [12:51:48]MH_I2C_Read... [12:51:48]Read from MH i2c: E2 62 00 [12:51:48]MH_I2C_Read... [12:51:48]Read from MH i2c: E2 62 00 A8 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 69 7B 03 00 0E 04 04 00 17 02 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 6E [12:51:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 69 7B 03 00 0E 04 04 00 17 02 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 [12:51:48]wFMCommunicate OK [12:51:48]SAM_PROTO_GetFieldsCounters done [12:51:48]requested_item shift.num is exist - process it [12:51:48]requested_item shift.opened is exist - process it [12:51:48]req_shift_opened [12:51:48]FM_GetShiftState [12:51:48]SAM_PROTO_GetShiftState [12:51:48]wFMCommunicate request_size=4 [12:51:48]MH_SAM_APDU [12:51:48]CAPDU: 80 13 01 00 [12:51:48]Write to MH i2c: E2 08 00 A9 32 80 13 01 00 00 00 00 00 58 [12:51:48]Write i2c OK [12:51:48]MH_I2C_Read... [12:51:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:48]Read from MH i2c: E2 [12:51:48]MH_I2C_Read... [12:51:48]Read from MH i2c: E2 0E 00 [12:51:48]MH_I2C_Read... [12:51:48]Read from MH i2c: E2 0E 00 A9 32 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 1F [12:51:48]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:51:48]wFMCommunicate OK [12:51:48]SAM_PROTO_GetShiftState done [12:51:48]FM_GetShiftState done [12:51:48]req_shift_opened done [12:51:48]requested_item shift.open_date is exist - process it [12:51:48]req_shift_open_date [12:51:48]req_shift_open_date done [12:51:48]produce_requested_data done [12:51:48]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228201,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [12:51:48]process_action_free close_receipt [12:51:48]json_value_free [12:51:48]json_value_free done [12:51:48]process_json_proto returns [12:51:48]Send response to host [12:51:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228201,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [12:51:48]free response buf [12:51:48]execute_script done [12:51:48]execute_script returns [12:51:48]free content buf [12:51:48]Sock 7.Close socket [12:51:48]Sock 7.Thread stoped [12:51:48]accept exits with 9 [12:51:48]New connection [12:51:48]New thread 3067137380 created [12:51:48]Thread 3066994020 joined [12:51:48]Waiting for new connection... [12:51:48] Sock 9.Parse request [12:51:48]Sock 9.Check first char [12:51:48]Sock 9.First char is OK [12:51:48]request: POST /json_proto HTTP/1.0 [12:51:48]Method: POST [12:51:48]URL: /json_proto [12:51:48]Method is POST - this is cgi request [12:51:48]url: /json_proto [12:51:48]query_string will be loaded in cgi processing [12:51:48]execute_cgi json_proto POST (null) [12:51:48]execute_cgi path=json_proto method=POST [12:51:48]POST find Content-Length [12:51:48]Host: 172.17.44.195:8080 [12:51:48]Content-Length: 678 [12:51:48]Content-Type: application/json [12:51:48] [12:51:48]POST finish read [12:51:48]Found Content-Length = 678 [12:51:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964646", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:48]execute_script... [12:51: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)1964646", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:48]POST & json_proto [12:51:48]process_json_proto [12:51:48]json parsed OK: [12:51:48]protocol is kg_v1.0 [12:51:48]action value=close_receipt [12:51:48]process_action close_receipt [12:51:48]cmd_close_receipt [12:51:48]MH_GetDate [12:51:48]Write to MH i2c: F0 00 00 AA 32 CB [12:51:48]Write i2c OK [12:51:48]MH_I2C_Read... [12:51:48]Read from MH i2c: F0 [12:51:48]MH_I2C_Read... [12:51:48]Read from MH i2c: F0 09 00 [12:51:48]MH_I2C_Read... [12:51:48]Read from MH i2c: F0 09 00 AA 32 00 E8 9F 17 67 82 C9 CF 66 59 [12:51:48]GetLastDocTimeStamp 1729601508 [12:51:48]current date 1729601512 [12:51:48]FM_GetShiftState [12:51:48]SAM_PROTO_GetShiftState [12:51:48]wFMCommunicate request_size=4 [12:51:48]MH_SAM_APDU [12:51:48]CAPDU: 80 13 01 00 [12:51:48]Write to MH i2c: E2 08 00 AB 32 80 13 01 00 00 00 00 00 5A [12:51:48]Write i2c OK [12:51:48]MH_I2C_Read... [12:51:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:48]Read from MH i2c: E2 [12:51:48]MH_I2C_Read... [12:51:48]Read from MH i2c: E2 0E 00 [12:51:48]MH_I2C_Read... [12:51:48]Read from MH i2c: E2 0E 00 AB 32 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 21 [12:51:48]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:51:48]wFMCommunicate OK [12:51:48]SAM_PROTO_GetShiftState done [12:51:48]FM_GetShiftState done [12:51:48]opened in 1729555538 [12:51:48]opened+sec_in_day 1729641938 [12:51:48]quantity*price = 50041 [12:51:48]sum+1 = 50042 [12:51:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 166 22.10.2024 12:51 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228202 ФПД: 160316527928863 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125152&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228202&fm=160316527928863&tin=02508201610067®Number=0000000000091685&sum=50000 [12:51:50]StoreToDocumentArchive [12:51:50]shift 535 fd 228202 [12:51:50]save to /storage/0535/doc_00228202 [12:51:50]save last doc name /storage/0535/doc_00228202 to /storage/kkm_last_doc_name [12:51:50]save OK [12:51:50]Clear old archive folders... [12:51:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:51:50]tlvbuf is 0090C270 [12:51:50]SAM_PROTO_ClearQueue [12:51:50]wFMCommunicate request_size=4 [12:51:50]MH_SAM_APDU [12:51:50]CAPDU: 80 09 00 00 [12:51:50]Write to MH i2c: E2 08 00 B8 32 80 09 00 00 00 00 00 00 5C [12:51:50]Write i2c OK [12:51:50]MH_I2C_Read... [12:51:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:50]Read from MH i2c: E2 [12:51:50]MH_I2C_Read... [12:51:50]Read from MH i2c: E2 03 00 [12:51:50]MH_I2C_Read... [12:51:50]Read from MH i2c: E2 03 00 B8 32 00 90 00 5E [12:51:50]RAPDU: 90 00 [12:51:50]wFMCommunicate OK [12:51:50]SAM_PROTO_ClearQueue done [12:51:50]KKMCreateOFDPacket [12:51:50]OFDProtocolAddRootSTLVToBuf [12:51:50]FM_MakeSignedData [12:51:50]FM_MakeSignedData [12:51:50]SAM_PROTO_SignData [12:51:50]wFMCommunicate request_size=4 [12:51:50]MH_SAM_APDU [12:51:50]CAPDU: 80 0D 01 02 [12:51:50]Write to MH i2c: E2 08 00 B9 32 80 0D 01 02 00 00 00 00 64 [12:51:50]Write i2c OK [12:51:50]MH_I2C_Read... [12:51:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:50]Read from MH i2c: E2 [12:51:50]MH_I2C_Read... [12:51:50]Read from MH i2c: E2 03 00 [12:51:50]MH_I2C_Read... [12:51:50]Read from MH i2c: E2 03 00 B9 32 00 90 00 5F [12:51:50]RAPDU: 90 00 [12:51:50]wFMCommunicate OK [12:51:50]wFMCommunicate request_size=255 [12:51:50]MH_SAM_APDU [12:51: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 E8 9F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6A 7B 03 00 35 04 06 00 91 [12:51:50]Write to MH i2c: E2 02 01 BA 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 E8 9F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6A 7B 03 00 35 04 06 00 91 00 00 38 [12:51:50]Write i2c OK [12:51:50]MH_I2C_Read... [12:51:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:50]Read from MH i2c: E2 [12:51:50]MH_I2C_Read... [12:51:50]Read from MH i2c: E2 03 00 [12:51:50]MH_I2C_Read... [12:51:50]Read from MH i2c: E2 03 00 BA 32 00 90 00 60 [12:51:50]RAPDU: 90 00 [12:51:50]wFMCommunicate OK [12:51:50]wFMCommunicate request_size=10 [12:51:50]MH_SAM_APDU [12:51:50]CAPDU: 80 0D 02 02 05 CE 99 B2 E6 1F [12:51:50]Write to MH i2c: E2 0D 00 BB 32 80 0D 02 02 05 00 CE 99 B2 E6 1F 00 00 8F [12:51:50]Write i2c OK [12:51:50]MH_I2C_Read... [12:51:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:50]Read from MH i2c: E2 [12:51:50]MH_I2C_Read... [12:51:50]Read from MH i2c: E2 03 00 [12:51:50]MH_I2C_Read... [12:51:50]Read from MH i2c: E2 03 00 BB 32 00 90 00 61 [12:51:50]RAPDU: 90 00 [12:51:50]wFMCommunicate OK [12:51:50]wFMCommunicate request_size=4 [12:51:50]MH_SAM_APDU [12:51:50]CAPDU: 80 0D 03 02 [12:51:50]Write to MH i2c: E2 08 00 BC 32 80 0D 03 02 00 00 00 00 69 [12:51:50]Write i2c OK [12:51:50]MH_I2C_Read... [12:51:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:50]Read from MH i2c: E2 [12:51:50]MH_I2C_Read... [12:51:50]Read from MH i2c: E2 0B 00 [12:51:50]MH_I2C_Read... [12:51:50]Read from MH i2c: E2 0B 00 BC 32 00 3A 67 74 9B AA 2A 7D B3 90 00 1E [12:51:50]RAPDU: 3A 67 74 9B AA 2A 7D B3 90 00 [12:51:50]wFMCommunicate OK [12:51:50]SAM_PROTO_SignData done [12:51:50]FM_MakeSignedData done [12:51:50]CreateOFDProtocolMessage [12:51:50]wFMCommunicate request_size=4 [12:51:50]MH_SAM_APDU [12:51:50]CAPDU: 80 11 00 00 [12:51:50]Write to MH i2c: E2 08 00 BD 32 80 11 00 00 00 00 00 00 69 [12:51:50]Write i2c OK [12:51:50]MH_I2C_Read... [12:51:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:50]Read from MH i2c: E2 [12:51:50]MH_I2C_Read... [12:51:50]Read from MH i2c: E2 17 00 [12:51:50]MH_I2C_Read... [12:51:50]Read from MH i2c: E2 17 00 BD 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C0 [12:51:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:51:50]wFMCommunicate OK [12:51:50]CreateOFDProtocolMessage done [12:51:50]OFDSenderStorePacket 228202 [12:51:50]StoreOFDPacket docnum=228202 [12:51:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 89 6D 07 01 5E 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 E8 9F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6A 7B 03 00 35 04 06 00 91 CE 99 B2 E6 1F 3A 67 74 9B AA 2A 7D B3 [12:51:50]CheckFolder [12:51:50]dirname=/storage/ofd_packets [12:51:50]CheckFolder done [12:51:50]ProducePacketName [12:51:50]name=ofd_packets/00228202 [12:51:50]NVStorageSaveData ofd_packets/00228202 [12:51:50]File name is /storage/ofd_packets/00228202 [12:51:50]Write 301 bytes [12:51:50]NVStorageSaveData done [12:51:50]OFDSenderStorePacket done [12:51:50]KKMCreateOFDPacket done [12:51:50]NVStorageSaveData kkm_last_timestamp [12:51:50]File name is /storage/kkm_last_timestamp [12:51:50]Write 4 bytes [12:51:50]NVStorageSaveData done [12:51:50]ExternCall_PrintAddStr [12:51:50]wPrintStart [12:51:50]Write to MH i2c: 01 00 00 BE 32 F0 [12:51:50]Write i2c OK [12:51:50]MH_I2C_Read... [12:51:50]Read from MH i2c: 01 [12:51:50]MH_I2C_Read... [12:51:50]Read from MH i2c: 01 07 00 [12:51:50]MH_I2C_Read... [12:51:50]Read from MH i2c: 01 07 00 BE 32 00 00 00 00 00 FF 0F 05 [12:51:50]RasterBufferAndPrint [12:51:50]line Счет N : (1)1964646 [12:51:50]line ИНН: 02508201610067 [12:51:50]line Контрольно-Кассовый Чек [12:51:50]line ПРОДАЖА [12:51:50]line ТРК (МРК, ГНК) : 63 [12:51:50]line Товар: 2710124130 [12:51:50]line Аи-92-К-5 [12:51:50]line 7.480 * 66.90 [12:51:50]line = 500.41 [12:51:50]line НДС 12% НСП 1% [12:51:50]line > о реализуемом товаре [12:51:50]line ОКРУГЛЕНИЕ: -0.41 [12:51:50]line ИТОГО: 500.00 [12:51:50]line Внесено: 500.00 [12:51:50]line СДАЧА: 0.00 [12:51:50]line НСП 1% : 4.43 [12:51:50]line НДС 12% : 53.14 [12:51:50]line Наличными: 500.00 [12:51:50]line Безнал.: 0.00 [12:51:50]line Место: АЗС № 133 "Партнер Нефть" [12:51:50]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:51:50]line СНО: Общий режим [12:51:50]line Чек 166 22.10.2024 12:51 [12:51:50]line Смена: 535 ФФД: 1.0 [12:51:50]line ЗНМ: 0300000091 [12:51:50]line РНМ: 0000000000091685 [12:51:50]line Версия ККМ: 001 [12:51:50]line ФМ: 0000000000871839 [12:51:50]line ФД: 228202 [12:51:51]line ФПД: 160316527928863 [12:51:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125152&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228202&fm=160316527928863&tin=02508201610067®Number=0000000000091685&sum=50000 [12:51:51]OFD Sender: Processing packet 228202 [packets to send 38, broken 37] [12:51:51]ProducePacketName [12:51:51]name=ofd_packets/00228202 [12:51:51]written 0, free lines is 4095 [12:51:51]OFD Sender: To server: pG, [12:51:51]CommunicateWithHost lk.salyk.kg:30040 [12:51:51]ConnectInit lk.salyk.kg [12:51:51]Connected sock=10 [12:51:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 89 6D 07 01 5E 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 E8 9F 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6A 7B 03 00 35 04 06 00 91 CE 99 B2 E6 1F 3A 67 74 9B AA 2A 7D B3 [12:51:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 C8 49 47 00 BF F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6A 7B 03 00 F4 03 04 00 E1 4A 17 67 B6 04 01 00 00 8B ED 40 EE EA 35 0D F1 [12:51:51]CommunicateWithHost err = 0 [12:51:51]CheckOFDResponse [12:51:51]1017 (14) - 77093643461234 [12:51:51]1041 (16) - 0000000000871839 [12:51:51]1040 (4) - 228202 [12:51:51]1012 (4) - 22.10.2024 06:49 [12:51:51]1206 (1) - 0 [12:51:51]OFD Sender: Remove packet 228202 [12:51:51]ProducePacketName [12:51:51]name=ofd_packets/00228202 [12:51:51]NVStorageDeleteData [12:51:51]Write to MH i2c: 01 00 00 E8 32 1A [12:51:51]Write i2c OK [12:51:51]MH_I2C_Read... [12:51:51]Read from MH i2c: 01 [12:51:51]MH_I2C_Read... [12:51:51]Read from MH i2c: 01 07 00 [12:51:51]MH_I2C_Read... [12:51:51]Read from MH i2c: 01 07 00 E8 32 00 00 00 00 00 D6 0C 03 [12:51:51]RasterBufferAndPrint [12:51:51]line [12:51:51]line [12:51:51]line [12:51:51]line [12:51:51]line [12:51:51]written 0, free lines is 3300 [12:51:51]MH_Cut [12:51:51]Write to MH i2c: D1 01 00 EF 32 01 F3 [12:51:51]Write i2c OK [12:51:51]MH_I2C_Read... [12:51:51]Read from MH i2c: D1 [12:51:51]MH_I2C_Read... [12:51:51]Read from MH i2c: D1 01 00 [12:51:51]MH_I2C_Read... [12:51:51]Read from MH i2c: D1 01 00 EF 32 00 F2 [12:51:51]Write to MH i2c: 01 00 00 F0 32 22 [12:51:51]Write i2c OK [12:51:51]MH_I2C_Read... [12:51:51]OFD Sender: No OFD packet to send [12:51:52]*** Cut start [12:51:52]*** Partial cut [12:51:52]*** CUTSNS_PIN = 1 [12:51:52]*** CUTSNS_PIN = 0 [12:51:52]*** Brake cut motor [12:51:52]Read from MH i2c: 01 [12:51:53]MH_I2C_Read... [12:51:53]*** Stop cut motor [12:51:53]*** Cut end [12:51:53]Read from MH i2c: 01 07 00 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: 01 07 00 F0 32 00 00 00 00 00 FF 0F 37 [12:51:53]process_action close_receipt done [12:51:53]requested_data is exist [12:51:53]produce_requested_data [12:51:53]requested_item fm.sn is exist - process it [12:51:53]wFMCommunicate request_size=4 [12:51:53]MH_SAM_APDU [12:51:53]CAPDU: 80 11 00 00 [12:51:53]Write to MH i2c: E2 08 00 F1 32 80 11 00 00 00 00 00 00 9D [12:51:53]Write i2c OK [12:51:53]MH_I2C_Read... [12:51:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:53]Read from MH i2c: E2 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 17 00 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 17 00 F1 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F4 [12:51:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:51:53]wFMCommunicate OK [12:51:53]requested_item fd.num is exist - process it [12:51:53]SAM_PROTO_GetFieldsCounters [12:51:53]wFMCommunicate request_size=4 [12:51:53]MH_SAM_APDU [12:51:53]CAPDU: 80 13 00 00 [12:51:53]Write to MH i2c: E2 08 00 F2 32 80 13 00 00 00 00 00 00 A0 [12:51:53]Write i2c OK [12:51:53]MH_I2C_Read... [12:51:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:53]Read from MH i2c: E2 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 62 00 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 62 00 F2 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6A 7B 03 00 0E 04 04 00 17 02 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 BC [12:51:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6A 7B 03 00 0E 04 04 00 17 02 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 [12:51:53]wFMCommunicate OK [12:51:53]SAM_PROTO_GetFieldsCounters done [12:51:53]requested_item shift.num is exist - process it [12:51:53]requested_item shift.opened is exist - process it [12:51:53]req_shift_opened [12:51:53]FM_GetShiftState [12:51:53]SAM_PROTO_GetShiftState [12:51:53]wFMCommunicate request_size=4 [12:51:53]MH_SAM_APDU [12:51:53]CAPDU: 80 13 01 00 [12:51:53]Write to MH i2c: E2 08 00 F3 32 80 13 01 00 00 00 00 00 A2 [12:51:53]Write i2c OK [12:51:53]MH_I2C_Read... [12:51:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:53]Read from MH i2c: E2 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 0E 00 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 0E 00 F3 32 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 69 [12:51:53]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:51:53]wFMCommunicate OK [12:51:53]SAM_PROTO_GetShiftState done [12:51:53]FM_GetShiftState done [12:51:53]req_shift_opened done [12:51:53]requested_item shift.open_date is exist - process it [12:51:53]req_shift_open_date [12:51:53]req_shift_open_date done [12:51:53]produce_requested_data done [12:51:53]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228202,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [12:51:53]process_action_free close_receipt [12:51:53]json_value_free [12:51:53]json_value_free done [12:51:53]process_json_proto returns [12:51:53]Send response to host [12:51:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228202,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [12:51:53]free response buf [12:51:53]execute_script done [12:51:53]execute_script returns [12:51:53]free content buf [12:51:53]Sock 9.Close socket [12:51:53]Sock 9.Thread stoped [12:51:56]OFD Sender: No OFD packet to send [12:52:02]OFD Sender: No OFD packet to send [12:52:07]OFD Sender: No OFD packet to send [12:52:12]OFD Sender: No OFD packet to send [12:52:17]OFD Sender: No OFD packet to send [12:52:22]OFD Sender: No OFD packet to send [12:52:27]OFD Sender: No OFD packet to send [12:52:32]OFD Sender: No OFD packet to send [12:52:37]OFD Sender: No OFD packet to send [12:52:42]OFD Sender: No OFD packet to send [12:52:47]OFD Sender: No OFD packet to send [12:52:52]OFD Sender: No OFD packet to send [12:52:57]OFD Sender: No OFD packet to send [12:53:02]OFD Sender: No OFD packet to send [12:53:07]OFD Sender: No OFD packet to send [12:53:12]OFD Sender: No OFD packet to send [12:53:17]OFD Sender: No OFD packet to send [12:53:22]OFD Sender: No OFD packet to send [12:53:27]OFD Sender: No OFD packet to send [12:53:32]OFD Sender: No OFD packet to send [12:53:37]OFD Sender: No OFD packet to send [12:53:42]OFD Sender: No OFD packet to send [12:53:47]OFD Sender: No OFD packet to send [12:53:52]OFD Sender: No OFD packet to send [12:53:57]OFD Sender: No OFD packet to send [12:54:02]OFD Sender: No OFD packet to send [12:54:07]OFD Sender: No OFD packet to send [12:54:12]OFD Sender: No OFD packet to send [12:54:17]OFD Sender: No OFD packet to send [12:54:22]OFD Sender: No OFD packet to send [12:54:27]OFD Sender: No OFD packet to send [12:54:32]OFD Sender: No OFD packet to send [12:54:37]OFD Sender: No OFD packet to send [12:54:42]OFD Sender: No OFD packet to send [12:54:47]OFD Sender: No OFD packet to send [12:54:52]OFD Sender: No OFD packet to send [12:54:57]OFD Sender: No OFD packet to send [12:55:02]OFD Sender: No OFD packet to send [12:55:07]OFD Sender: No OFD packet to send [12:55:12]OFD Sender: No OFD packet to send [12:55:17]OFD Sender: No OFD packet to send [12:55:22]OFD Sender: No OFD packet to send [12:55:27]OFD Sender: No OFD packet to send [12:55:32]OFD Sender: No OFD packet to send [12:55:37]OFD Sender: No OFD packet to send [12:55:42]OFD Sender: No OFD packet to send [12:55:47]OFD Sender: No OFD packet to send [12:55:49]accept exits with 7 [12:55:49]New connection [12:55:49]New thread 3066994020 created [12:55:49]Thread 3067137380 joined [12:55:49]Waiting for new connection... [12:55:49] Sock 7.Parse request [12:55:49]Sock 7.Check first char [12:55:49]Sock 7.First char is OK [12:55:49]request: POST /json_proto HTTP/1.0 [12:55:49]Method: POST [12:55:49]URL: /json_proto [12:55:49]Method is POST - this is cgi request [12:55:49]url: /json_proto [12:55:49]query_string will be loaded in cgi processing [12:55:49]execute_cgi json_proto POST (null) [12:55:49]execute_cgi path=json_proto method=POST [12:55:49]POST find Content-Length [12:55:49]Host: 172.17.44.195:8080 [12:55:49]Content-Length: 790 [12:55:49]Content-Type: application/json [12:55:49] [12:55:49]POST finish read [12:55:49]Found Content-Length = 790 [12:55:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964647", "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" : 0.00, "quantity" : 52.500, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53957", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:49]execute_script... [12: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)1964647", "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" : 0.00, "quantity" : 52.500, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53957", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:49]POST & json_proto [12:55:49]process_json_proto [12:55:49]json parsed OK: [12:55:49]protocol is kg_v1.0 [12:55:49]action value=close_receipt [12:55:49]process_action close_receipt [12:55:49]cmd_close_receipt [12:55:49]MH_GetDate [12:55:49]Write to MH i2c: F0 00 00 F4 32 15 [12:55:49]Write i2c OK [12:55:49]MH_I2C_Read... [12:55:49]Read from MH i2c: F0 [12:55:49]MH_I2C_Read... [12:55:49]Read from MH i2c: F0 09 00 [12:55:49]MH_I2C_Read... [12:55:49]Read from MH i2c: F0 09 00 F4 32 00 D9 A0 17 67 82 C9 CF 66 95 [12:55:49]GetLastDocTimeStamp 1729601512 [12:55:49]current date 1729601753 [12:55:49]FM_GetShiftState [12:55:49]SAM_PROTO_GetShiftState [12:55:49]wFMCommunicate request_size=4 [12:55:49]MH_SAM_APDU [12:55:49]CAPDU: 80 13 01 00 [12:55:49]Write to MH i2c: E2 08 00 F5 32 80 13 01 00 00 00 00 00 A4 [12:55:49]Write i2c OK [12:55:49]MH_I2C_Read... [12:55:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:49]Read from MH i2c: E2 [12:55:49]MH_I2C_Read... [12:55:49]Read from MH i2c: E2 0E 00 [12:55:49]MH_I2C_Read... [12:55:49]Read from MH i2c: E2 0E 00 F5 32 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 6B [12:55:49]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:55:49]wFMCommunicate OK [12:55:49]SAM_PROTO_GetShiftState done [12:55:49]FM_GetShiftState done [12:55:49]opened in 1729555538 [12:55:49]opened+sec_in_day 1729641938 [12:55:49]quantity*price = 0 [12:55:49]sum+1 = 1 [12:55:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 167 22.10.2024 12:55 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливная Карта 53957 ФМ: 0000000000871839 ФД: 228203 ФПД: 10753392033101 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125553&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228203&fm=10753392033101&tin=02508201610067®Number=0000000000091685&sum=0 [12:55:50]StoreToDocumentArchive [12:55:50]shift 535 fd 228203 [12:55:50]save to /storage/0535/doc_00228203 [12:55:50]save last doc name /storage/0535/doc_00228203 to /storage/kkm_last_doc_name [12:55:50]save OK [12:55:50]Clear old archive folders... [12:55:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:55:50]tlvbuf is 00A7C020 [12:55:50]SAM_PROTO_ClearQueue [12:55:50]wFMCommunicate request_size=4 [12:55:50]MH_SAM_APDU [12:55:50]CAPDU: 80 09 00 00 [12:55:50]Write to MH i2c: E2 08 00 02 33 80 09 00 00 00 00 00 00 A7 [12:55:50]Write i2c OK [12:55:50]MH_I2C_Read... [12:55:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:55:50]Read from MH i2c: E2 [12:55:50]MH_I2C_Read... [12:55:50]Read from MH i2c: E2 03 00 [12:55:50]MH_I2C_Read... [12:55:50]Read from MH i2c: E2 03 00 02 33 00 90 00 A9 [12:55:50]RAPDU: 90 00 [12:55:50]wFMCommunicate OK [12:55:50]SAM_PROTO_ClearQueue done [12:55:50]KKMCreateOFDPacket [12:55:50]OFDProtocolAddRootSTLVToBuf [12:55:50]FM_MakeSignedData [12:55:50]FM_MakeSignedData [12:55:50]SAM_PROTO_SignData [12:55:50]wFMCommunicate request_size=4 [12:55:50]MH_SAM_APDU [12:55:50]CAPDU: 80 0D 01 02 [12:55:50]Write to MH i2c: E2 08 00 03 33 80 0D 01 02 00 00 00 00 AF [12:55:50]Write i2c OK [12:55:50]MH_I2C_Read... [12:55:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:55:50]Read from MH i2c: E2 [12:55:50]MH_I2C_Read... [12:55:50]Read from MH i2c: E2 03 00 [12:55:50]MH_I2C_Read... [12:55:50]Read from MH i2c: E2 03 00 03 33 00 90 00 AA [12:55:50]RAPDU: 90 00 [12:55:50]wFMCommunicate OK [12:55:50]wFMCommunicate request_size=255 [12:55:50]MH_SAM_APDU [12:55:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 D9 A0 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6B 7B 03 00 35 04 06 00 09 C7 B8 1C [12:55:50]Write to MH i2c: E2 02 01 04 33 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 D9 A0 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6B 7B 03 00 35 04 06 00 09 C7 B8 1C 00 00 39 [12:55:50]Write i2c OK [12:55:50]MH_I2C_Read... [12:55:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:51]Read from MH i2c: E2 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: E2 03 00 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: E2 03 00 04 33 00 90 00 AB [12:55:51]RAPDU: 90 00 [12:55:51]wFMCommunicate OK [12:55:51]wFMCommunicate request_size=7 [12:55:51]MH_SAM_APDU [12:55:51]CAPDU: 80 0D 02 02 02 BD 4D [12:55:51]Write to MH i2c: E2 0A 00 05 33 80 0D 02 02 02 00 BD 4D 00 00 C0 [12:55:51]Write i2c OK [12:55:51]MH_I2C_Read... [12:55:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:51]Read from MH i2c: E2 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: E2 03 00 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: E2 03 00 05 33 00 90 00 AC [12:55:51]RAPDU: 90 00 [12:55:51]wFMCommunicate OK [12:55:51]wFMCommunicate request_size=4 [12:55:51]MH_SAM_APDU [12:55:51]CAPDU: 80 0D 03 02 [12:55:51]Write to MH i2c: E2 08 00 06 33 80 0D 03 02 00 00 00 00 B4 [12:55:51]Write i2c OK [12:55:51]MH_I2C_Read... [12:55:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:55:51]Read from MH i2c: E2 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: E2 0B 00 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: E2 0B 00 06 33 00 6A 27 D5 F7 49 10 42 FD 90 00 AA [12:55:51]RAPDU: 6A 27 D5 F7 49 10 42 FD 90 00 [12:55:51]wFMCommunicate OK [12:55:51]SAM_PROTO_SignData done [12:55:51]FM_MakeSignedData done [12:55:51]CreateOFDProtocolMessage [12:55:51]wFMCommunicate request_size=4 [12:55:51]MH_SAM_APDU [12:55:51]CAPDU: 80 11 00 00 [12:55:51]Write to MH i2c: E2 08 00 07 33 80 11 00 00 00 00 00 00 B4 [12:55:51]Write i2c OK [12:55:51]MH_I2C_Read... [12:55:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:51]Read from MH i2c: E2 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: E2 17 00 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: E2 17 00 07 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0B [12:55:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:55:51]wFMCommunicate OK [12:55:51]CreateOFDProtocolMessage done [12:55:51]OFDSenderStorePacket 228203 [12:55:51]StoreOFDPacket docnum=228203 [12:55:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 4F 54 04 01 CF 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 14 CD 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 D9 A0 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6B 7B 03 00 35 04 06 00 09 C7 B8 1C BD 4D 6A 27 D5 F7 49 10 42 FD [12:55:51]CheckFolder [12:55:51]dirname=/storage/ofd_packets [12:55:51]CheckFolder done [12:55:51]ProducePacketName [12:55:51]name=ofd_packets/00228203 [12:55:51]NVStorageSaveData ofd_packets/00228203 [12:55:51]File name is /storage/ofd_packets/00228203 [12:55:51]Write 298 bytes [12:55:51]NVStorageSaveData done [12:55:51]OFDSenderStorePacket done [12:55:51]KKMCreateOFDPacket done [12:55:51]NVStorageSaveData kkm_last_timestamp [12:55:51]File name is /storage/kkm_last_timestamp [12:55:51]Write 4 bytes [12:55:51]NVStorageSaveData done [12:55:51]ExternCall_PrintAddStr [12:55:51]wPrintStart [12:55:51]Write to MH i2c: 01 00 00 08 33 3B [12:55:51]Write i2c OK [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: 01 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: 01 07 00 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: 01 07 00 08 33 00 00 00 00 00 FF 0F 50 [12:55:51]RasterBufferAndPrint [12:55:51]line Счет N : (1)1964647 [12:55:51]line ИНН: 02508201610067 [12:55:51]line Контрольно-Кассовый Чек [12:55:51]line ПРОДАЖА [12:55:51]line ТРК (МРК, ГНК) : 21 [12:55:51]line Товар: 2710194210 [12:55:51]line ДТ-К-5 [12:55:51]line 52.500 * 0.00 [12:55:51]line = 0.00 [12:55:51]line НДС 12% НСП 1% [12:55:51]line > о реализуемом товаре [12:55:51]line ИТОГО: 0.00 [12:55:51]line НСП 1% : 0.00 [12:55:51]line НДС 12% : 0.00 [12:55:51]line Наличными: 0.00 [12:55:51]line Безнал.: 0.00 [12:55:51]line Место: АЗС № 133 "Партнер Нефть" [12:55:51]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:55:51]line СНО: Общий режим [12:55:51]line Чек 167 22.10.2024 12:55 [12:55:51]line Смена: 535 ФФД: 1.0 [12:55:51]line ЗНМ: 0300000091 [12:55:51]line РНМ: 0000000000091685 [12:55:51]line Версия ККМ: 001 [12:55:51]line Талоны: Топливная Карта [12:55:51]line 53957 [12:55:51]line ФМ: 0000000000871839 [12:55:51]line ФД: 228203 [12:55:51]line ФПД: 10753392033101 [12:55:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125553&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228203&fm=10753392033101&tin=02508201610067®Number=0000000000091685&sum=0 [12:55:51]OFD Sender: Processing packet 228203 [packets to send 38, broken 37] [12:55:51]ProducePacketName [12:55:51]name=ofd_packets/00228203 [12:55:51]OFD Sender: To server: pG, [12:55:51]CommunicateWithHost lk.salyk.kg:30040 [12:55:51]ConnectInit lk.salyk.kg [12:55:51]written 0, free lines is 4095 [12:55:51]Connected sock=9 [12:55:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 4F 54 04 01 CF 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 14 CD 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 D9 A0 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6B 7B 03 00 35 04 06 00 09 C7 B8 1C BD 4D 6A 27 D5 F7 49 10 42 FD [12:55:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 03 D2 47 00 BF 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 38 37 31 38 33 39 10 04 04 00 6B 7B 03 00 F4 03 04 00 D2 4B 17 67 B6 04 01 00 00 DF 38 65 27 B2 54 4D C5 [12:55:51]CommunicateWithHost err = 0 [12:55:51]CheckOFDResponse [12:55:51]1017 (14) - 77093643461234 [12:55:51]1041 (16) - 0000000000871839 [12:55:51]1040 (4) - 228203 [12:55:51]1012 (4) - 22.10.2024 06:53 [12:55:51]1206 (1) - 0 [12:55:51]OFD Sender: Remove packet 228203 [12:55:51]ProducePacketName [12:55:51]name=ofd_packets/00228203 [12:55:51]NVStorageDeleteData [12:55:52]Write to MH i2c: 01 00 00 31 33 64 [12:55:52]Write i2c OK [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: 01 [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: 01 07 00 [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: 01 07 00 31 33 00 00 00 00 00 DB 0C 52 [12:55:52]RasterBufferAndPrint [12:55:52]line [12:55:52]line [12:55:52]line [12:55:52]line [12:55:52]line [12:55:52]written 0, free lines is 3297 [12:55:52]MH_Cut [12:55:52]Write to MH i2c: D1 01 00 38 33 01 3D [12:55:52]Write i2c OK [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: D1 [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: D1 01 00 [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: D1 01 00 38 33 00 3C [12:55:52]Write to MH i2c: 01 00 00 39 33 6C [12:55:52]Write i2c OK [12:55:52]MH_I2C_Read... [12:55:52]OFD Sender: No OFD packet to send [12:55:52]*** Cut start [12:55:52]*** Partial cut [12:55:52]*** CUTSNS_PIN = 1 [12:55:52]*** CUTSNS_PIN = 0 [12:55:53]*** Brake cut motor [12:55:53]Read from MH i2c: 01 [12:55:53]MH_I2C_Read... [12:55:53]*** Stop cut motor [12:55:53]*** Cut end [12:55:53]Read from MH i2c: 01 07 00 [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: 01 07 00 39 33 00 00 00 00 00 FF 0F 81 [12:55:53]process_action close_receipt done [12:55:53]requested_data is exist [12:55:53]produce_requested_data [12:55:53]requested_item fm.sn is exist - process it [12:55:53]wFMCommunicate request_size=4 [12:55:53]MH_SAM_APDU [12:55:53]CAPDU: 80 11 00 00 [12:55:53]Write to MH i2c: E2 08 00 3A 33 80 11 00 00 00 00 00 00 E7 [12:55:53]Write i2c OK [12:55:53]MH_I2C_Read... [12:55:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:53]Read from MH i2c: E2 [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: E2 17 00 [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: E2 17 00 3A 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 3E [12:55:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:55:53]wFMCommunicate OK [12:55:53]requested_item fd.num is exist - process it [12:55:53]SAM_PROTO_GetFieldsCounters [12:55:53]wFMCommunicate request_size=4 [12:55:53]MH_SAM_APDU [12:55:53]CAPDU: 80 13 00 00 [12:55:53]Write to MH i2c: E2 08 00 3B 33 80 13 00 00 00 00 00 00 EA [12:55:53]Write i2c OK [12:55:53]MH_I2C_Read... [12:55:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:55:53]Read from MH i2c: E2 [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: E2 62 00 [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: E2 62 00 3B 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6B 7B 03 00 0E 04 04 00 17 02 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 0A [12:55:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6B 7B 03 00 0E 04 04 00 17 02 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 [12:55:53]wFMCommunicate OK [12:55:53]SAM_PROTO_GetFieldsCounters done [12:55:53]requested_item shift.num is exist - process it [12:55:53]requested_item shift.opened is exist - process it [12:55:53]req_shift_opened [12:55:53]FM_GetShiftState [12:55:53]SAM_PROTO_GetShiftState [12:55:53]wFMCommunicate request_size=4 [12:55:53]MH_SAM_APDU [12:55:53]CAPDU: 80 13 01 00 [12:55:53]Write to MH i2c: E2 08 00 3C 33 80 13 01 00 00 00 00 00 EC [12:55:53]Write i2c OK [12:55:53]MH_I2C_Read... [12:55:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:53]Read from MH i2c: E2 [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: E2 0E 00 [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: E2 0E 00 3C 33 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 B3 [12:55:53]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:55:53]wFMCommunicate OK [12:55:53]SAM_PROTO_GetShiftState done [12:55:53]FM_GetShiftState done [12:55:53]req_shift_opened done [12:55:53]requested_item shift.open_date is exist - process it [12:55:53]req_shift_open_date [12:55:53]req_shift_open_date done [12:55:53]produce_requested_data done [12:55:53]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228203,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [12:55:53]process_action_free close_receipt [12:55:53]json_value_free [12:55:53]json_value_free done [12:55:53]process_json_proto returns [12:55:53]Send response to host [12:55:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228203,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [12:55:53]free response buf [12:55:53]execute_script done [12:55:53]execute_script returns [12:55:53]free content buf [12:55:53]Sock 7.Close socket [12:55:53]Sock 7.Thread stoped [12:55:57]OFD Sender: No OFD packet to send [12:56:02]OFD Sender: No OFD packet to send [12:56:07]OFD Sender: No OFD packet to send [12:56:12]OFD Sender: No OFD packet to send [12:56:17]OFD Sender: No OFD packet to send [12:56:22]OFD Sender: No OFD packet to send [12:56:27]OFD Sender: No OFD packet to send [12:56:32]OFD Sender: No OFD packet to send [12:56:37]OFD Sender: No OFD packet to send [12:56:42]OFD Sender: No OFD packet to send [12:56:47]OFD Sender: No OFD packet to send [12:56:52]OFD Sender: No OFD packet to send [12:56:57]OFD Sender: No OFD packet to send [12:57:02]OFD Sender: No OFD packet to send [12:57:07]OFD Sender: No OFD packet to send [12:57:12]OFD Sender: No OFD packet to send [12:57:17]OFD Sender: No OFD packet to send [12:57:22]OFD Sender: No OFD packet to send [12:57:27]OFD Sender: No OFD packet to send [12:57:32]OFD Sender: No OFD packet to send [12:57:37]OFD Sender: No OFD packet to send [12:57:42]OFD Sender: No OFD packet to send [12:57:47]OFD Sender: No OFD packet to send [12:57:52]OFD Sender: No OFD packet to send [12:57:57]OFD Sender: No OFD packet to send [12:58:02]OFD Sender: No OFD packet to send [12:58:07]OFD Sender: No OFD packet to send [12:58:12]OFD Sender: No OFD packet to send [12:58:17]OFD Sender: No OFD packet to send [12:58:22]OFD Sender: No OFD packet to send [12:58:27]OFD Sender: No OFD packet to send [12:58:32]OFD Sender: No OFD packet to send [12:58:37]OFD Sender: No OFD packet to send [12:58:42]OFD Sender: No OFD packet to send [12:58:47]OFD Sender: No OFD packet to send [12:58:52]OFD Sender: No OFD packet to send [12:58:57]OFD Sender: No OFD packet to send [12:59:02]OFD Sender: No OFD packet to send [12:59:07]OFD Sender: No OFD packet to send [12:59:12]OFD Sender: No OFD packet to send [12:59:17]OFD Sender: No OFD packet to send [12:59:22]OFD Sender: No OFD packet to send [12:59:27]OFD Sender: No OFD packet to send [12:59:29]accept exits with 10 [12:59:29]New connection [12:59:29]New thread 3067137380 created [12:59:29]Thread 3066994020 joined [12:59:29]Waiting for new connection... [12:59:29] Sock 10.Parse request [12:59:29]Sock 10.Check first char [12:59:29]Sock 10.First char is OK [12:59:29]request: POST /json_proto HTTP/1.0 [12:59:29]Method: POST [12:59:29]URL: /json_proto [12:59:29]Method is POST - this is cgi request [12:59:29]url: /json_proto [12:59:29]query_string will be loaded in cgi processing [12:59:29]execute_cgi json_proto POST (null) [12:59:29]execute_cgi path=json_proto method=POST [12:59:29]POST find Content-Length [12:59:29]Host: 172.17.44.195:8080 [12:59:29]Content-Length: 683 [12:59:29]Content-Type: application/json [12:59:29] [12:59:29]POST finish read [12:59:29]Found Content-Length = 683 [12:59:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:29]execute_script... [12:59:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:29]POST & json_proto [12:59:29]process_json_proto [12:59:29]json parsed OK: [12:59:29]protocol is kg_v1.0 [12:59:29]action value=close_receipt [12:59:29]process_action close_receipt [12:59:29]cmd_close_receipt [12:59:29]MH_GetDate [12:59:29]Write to MH i2c: F0 00 00 3D 33 5F [12:59:29]Write i2c OK [12:59:29]MH_I2C_Read... [12:59:29]Read from MH i2c: F0 [12:59:29]MH_I2C_Read... [12:59:29]Read from MH i2c: F0 09 00 [12:59:29]MH_I2C_Read... [12:59:29]Read from MH i2c: F0 09 00 3D 33 00 B5 A1 17 67 82 C9 CF 66 BC [12:59:29]GetLastDocTimeStamp 1729601753 [12:59:29]current date 1729601973 [12:59:29]FM_GetShiftState [12:59:29]SAM_PROTO_GetShiftState [12:59:29]wFMCommunicate request_size=4 [12:59:29]MH_SAM_APDU [12:59:29]CAPDU: 80 13 01 00 [12:59:29]Write to MH i2c: E2 08 00 3E 33 80 13 01 00 00 00 00 00 EE [12:59:29]Write i2c OK [12:59:29]MH_I2C_Read... [12:59:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:29]Read from MH i2c: E2 [12:59:29]MH_I2C_Read... [12:59:29]Read from MH i2c: E2 0E 00 [12:59:29]MH_I2C_Read... [12:59:29]Read from MH i2c: E2 0E 00 3E 33 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 B5 [12:59:29]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:59:29]wFMCommunicate OK [12:59:29]SAM_PROTO_GetShiftState done [12:59:29]FM_GetShiftState done [12:59:29]opened in 1729555538 [12:59:29]opened+sec_in_day 1729641938 [12:59:29]quantity*price = 100021 [12:59:29]sum+1 = 100023 [12:59:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 168 22.10.2024 12:59 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228204 ФПД: 9573015684611 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125934&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228204&fm=9573015684611&tin=02508201610067®Number=0000000000091685&sum=100000 [12:59:31]StoreToDocumentArchive [12:59:31]shift 535 fd 228204 [12:59:31]save to /storage/0535/doc_00228204 [12:59:31]save last doc name /storage/0535/doc_00228204 to /storage/kkm_last_doc_name [12:59:31]save OK [12:59:31]Clear old archive folders... [12:59:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:59:31]tlvbuf is 00A85B90 [12:59:31]SAM_PROTO_ClearQueue [12:59:31]wFMCommunicate request_size=4 [12:59:31]MH_SAM_APDU [12:59:31]CAPDU: 80 09 00 00 [12:59:31]Write to MH i2c: E2 08 00 4B 33 80 09 00 00 00 00 00 00 F0 [12:59:31]Write i2c OK [12:59:31]MH_I2C_Read... [12:59:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:59:31]Read from MH i2c: E2 [12:59:31]MH_I2C_Read... [12:59:31]Read from MH i2c: E2 03 00 [12:59:31]MH_I2C_Read... [12:59:31]Read from MH i2c: E2 03 00 4B 33 00 90 00 F2 [12:59:31]RAPDU: 90 00 [12:59:31]wFMCommunicate OK [12:59:31]SAM_PROTO_ClearQueue done [12:59:31]KKMCreateOFDPacket [12:59:31]OFDProtocolAddRootSTLVToBuf [12:59:31]FM_MakeSignedData [12:59:31]FM_MakeSignedData [12:59:31]SAM_PROTO_SignData [12:59:31]wFMCommunicate request_size=4 [12:59:31]MH_SAM_APDU [12:59:31]CAPDU: 80 0D 01 02 [12:59:31]Write to MH i2c: E2 08 00 4C 33 80 0D 01 02 00 00 00 00 F8 [12:59:31]Write i2c OK [12:59:31]MH_I2C_Read... [12:59:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:59:31]Read from MH i2c: E2 [12:59:31]MH_I2C_Read... [12:59:31]Read from MH i2c: E2 03 00 [12:59:31]MH_I2C_Read... [12:59:31]Read from MH i2c: E2 03 00 4C 33 00 90 00 F3 [12:59:31]RAPDU: 90 00 [12:59:31]wFMCommunicate OK [12:59:31]wFMCommunicate request_size=255 [12:59:31]MH_SAM_APDU [12:59:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 B6 A1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6C 7B 03 00 35 04 06 00 08 [12:59:31]Write to MH i2c: E2 02 01 4D 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 B6 A1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6C 7B 03 00 35 04 06 00 08 00 00 34 [12:59:31]Write i2c OK [12:59:31]MH_I2C_Read... [12:59:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:31]Read from MH i2c: E2 [12:59:31]MH_I2C_Read... [12:59:31]Read from MH i2c: E2 03 00 [12:59:31]MH_I2C_Read... [12:59:31]Read from MH i2c: E2 03 00 4D 33 00 90 00 F4 [12:59:31]RAPDU: 90 00 [12:59:31]wFMCommunicate OK [12:59:31]wFMCommunicate request_size=10 [12:59:31]MH_SAM_APDU [12:59:31]CAPDU: 80 0D 02 02 05 B4 E4 33 06 03 [12:59:31]Write to MH i2c: E2 0D 00 4E 33 80 0D 02 02 05 00 B4 E4 33 06 03 00 00 D9 [12:59:31]Write i2c OK [12:59:31]MH_I2C_Read... [12:59:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:31]Read from MH i2c: E2 [12:59:31]MH_I2C_Read... [12:59:31]Read from MH i2c: E2 03 00 [12:59:31]MH_I2C_Read... [12:59:31]Read from MH i2c: E2 03 00 4E 33 00 90 00 F5 [12:59:31]RAPDU: 90 00 [12:59:31]wFMCommunicate OK [12:59:31]wFMCommunicate request_size=4 [12:59:31]MH_SAM_APDU [12:59:31]CAPDU: 80 0D 03 02 [12:59:31]Write to MH i2c: E2 08 00 4F 33 80 0D 03 02 00 00 00 00 FD [12:59:31]Write i2c OK [12:59:31]MH_I2C_Read... [12:59:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:31]Read from MH i2c: E2 [12:59:31]MH_I2C_Read... [12:59:31]Read from MH i2c: E2 0B 00 [12:59:31]MH_I2C_Read... [12:59:31]Read from MH i2c: E2 0B 00 4F 33 00 86 6D 7F 69 64 77 40 84 90 00 78 [12:59:31]RAPDU: 86 6D 7F 69 64 77 40 84 90 00 [12:59:31]wFMCommunicate OK [12:59:31]SAM_PROTO_SignData done [12:59:31]FM_MakeSignedData done [12:59:31]CreateOFDProtocolMessage [12:59:31]wFMCommunicate request_size=4 [12:59:31]MH_SAM_APDU [12:59:31]CAPDU: 80 11 00 00 [12:59:31]Write to MH i2c: E2 08 00 50 33 80 11 00 00 00 00 00 00 FD [12:59:31]Write i2c OK [12:59:31]MH_I2C_Read... [12:59:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:31]Read from MH i2c: E2 [12:59:31]MH_I2C_Read... [12:59:31]Read from MH i2c: E2 17 00 [12:59:31]MH_I2C_Read... [12:59:31]Read from MH i2c: E2 17 00 50 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 54 [12:59:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:59:31]wFMCommunicate OK [12:59:31]CreateOFDProtocolMessage done [12:59:31]OFDSenderStorePacket 228204 [12:59:31]StoreOFDPacket docnum=228204 [12:59:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 EF C8 07 01 D7 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 B6 A1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6C 7B 03 00 35 04 06 00 08 B4 E4 33 06 03 86 6D 7F 69 64 77 40 84 [12:59:31]CheckFolder [12:59:31]dirname=/storage/ofd_packets [12:59:31]CheckFolder done [12:59:31]ProducePacketName [12:59:31]name=ofd_packets/00228204 [12:59:31]NVStorageSaveData ofd_packets/00228204 [12:59:31]File name is /storage/ofd_packets/00228204 [12:59:31]Write 301 bytes [12:59:31]NVStorageSaveData done [12:59:31]OFDSenderStorePacket done [12:59:31]KKMCreateOFDPacket done [12:59:31]NVStorageSaveData kkm_last_timestamp [12:59:31]File name is /storage/kkm_last_timestamp [12:59:31]Write 4 bytes [12:59:31]NVStorageSaveData done [12:59:31]ExternCall_PrintAddStr [12:59:31]wPrintStart [12:59:31]Write to MH i2c: 01 00 00 51 33 84 [12:59:31]Write i2c OK [12:59:31]MH_I2C_Read... [12:59:31]Read from MH i2c: 01 [12:59:31]MH_I2C_Read... [12:59:31]Read from MH i2c: 01 07 00 [12:59:31]MH_I2C_Read... [12:59:31]Read from MH i2c: 01 07 00 51 33 00 00 00 00 00 FF 0F 99 [12:59:31]RasterBufferAndPrint [12:59:31]line Счет N : (1)1964648 [12:59:31]line ИНН: 02508201610067 [12:59:31]line Контрольно-Кассовый Чек [12:59:31]line ПРОДАЖА [12:59:31]line ТРК (МРК, ГНК) : 44 [12:59:31]line Товар: 2710124500 [12:59:31]line Аи-95-К-5 [12:59:31]line 13.480 * 74.20 [12:59:31]line = 1000.22 [12:59:31]line НДС 12% НСП 1% [12:59:31]line > о реализуемом товаре [12:59:31]line ОКРУГЛЕНИЕ: -0.22 [12:59:31]line ИТОГО: 1000.00 [12:59:31]line Внесено: 1000.00 [12:59:31]line СДАЧА: 0.00 [12:59:31]line НСП 1% : 8.85 [12:59:31]line НДС 12% : 106.22 [12:59:31]line Наличными: 1000.00 [12:59:31]line Безнал.: 0.00 [12:59:31]line Место: АЗС № 133 "Партнер Нефть" [12:59:31]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:59:31]line СНО: Общий режим [12:59:31]line Чек 168 22.10.2024 12:59 [12:59:31]line Смена: 535 ФФД: 1.0 [12:59:31]line ЗНМ: 0300000091 [12:59:31]line РНМ: 0000000000091685 [12:59:31]line Версия ККМ: 001 [12:59:31]line ФМ: 0000000000871839 [12:59:31]line ФД: 228204 [12:59:31]line ФПД: 9573015684611 [12:59:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125934&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228204&fm=9573015684611&tin=02508201610067®Number=0000000000091685&sum=100000 [12:59:31]OFD Sender: Processing packet 228204 [packets to send 38, broken 37] [12:59:31]ProducePacketName [12:59:31]name=ofd_packets/00228204 [12:59:31]OFD Sender: To server: pG, [12:59:31]CommunicateWithHost lk.salyk.kg:30040 [12:59:31]ConnectInit lk.salyk.kg [12:59:31]written 0, free lines is 4095 [12:59:32]Connected sock=9 [12:59:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 EF C8 07 01 D7 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 B6 A1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6C 7B 03 00 35 04 06 00 08 B4 E4 33 06 03 86 6D 7F 69 64 77 40 84 [12:59:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 08 AB 47 00 FE 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6C 7B 03 00 F4 03 04 00 AE 4C 17 67 B6 04 01 00 00 F7 DD 82 88 74 24 DC 7F [12:59:32]CommunicateWithHost err = 0 [12:59:32]CheckOFDResponse [12:59:32]1017 (14) - 77093643461234 [12:59:32]1041 (16) - 0000000000871839 [12:59:32]1040 (4) - 228204 [12:59:32]1012 (4) - 22.10.2024 06:56 [12:59:32]1206 (1) - 0 [12:59:32]OFD Sender: Remove packet 228204 [12:59:32]ProducePacketName [12:59:32]name=ofd_packets/00228204 [12:59:32]NVStorageDeleteData [12:59:32]Write to MH i2c: 01 00 00 7B 33 AE [12:59:32]Write i2c OK [12:59:32]MH_I2C_Read... [12:59:32]Read from MH i2c: 01 [12:59:32]MH_I2C_Read... [12:59:32]Read from MH i2c: 01 07 00 [12:59:32]MH_I2C_Read... [12:59:32]Read from MH i2c: 01 07 00 7B 33 00 00 00 00 00 C2 0C 83 [12:59:32]RasterBufferAndPrint [12:59:32]line [12:59:32]line [12:59:32]line [12:59:32]line [12:59:32]line [12:59:32]written 0, free lines is 3270 [12:59:32]MH_Cut [12:59:32]Write to MH i2c: D1 01 00 82 33 01 87 [12:59:32]Write i2c OK [12:59:32]MH_I2C_Read... [12:59:32]Read from MH i2c: D1 [12:59:32]MH_I2C_Read... [12:59:32]Read from MH i2c: D1 01 00 [12:59:32]MH_I2C_Read... [12:59:32]Read from MH i2c: D1 01 00 82 33 00 86 [12:59:32]Write to MH i2c: 01 00 00 83 33 B6 [12:59:32]Write i2c OK [12:59:32]MH_I2C_Read... [12:59:32]OFD Sender: No OFD packet to send [12:59:33]*** Cut start [12:59:33]*** Partial cut [12:59:33]*** CUTSNS_PIN = 1 [12:59:33]*** CUTSNS_PIN = 0 [12:59:33]*** Brake cut motor [12:59:33]Read from MH i2c: 01 [12:59:33]MH_I2C_Read... [12:59:33]*** Stop cut motor [12:59:33]*** Cut end [12:59:33]Read from MH i2c: 01 07 00 [12:59:33]MH_I2C_Read... [12:59:33]Read from MH i2c: 01 07 00 83 33 00 00 00 00 00 FF 0F CB [12:59:33]process_action close_receipt done [12:59:33]requested_data is exist [12:59:33]produce_requested_data [12:59:33]requested_item fm.sn is exist - process it [12:59:33]wFMCommunicate request_size=4 [12:59:33]MH_SAM_APDU [12:59:33]CAPDU: 80 11 00 00 [12:59:33]Write to MH i2c: E2 08 00 84 33 80 11 00 00 00 00 00 00 31 [12:59:33]Write i2c OK [12:59:33]MH_I2C_Read... [12:59:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:33]Read from MH i2c: E2 [12:59:33]MH_I2C_Read... [12:59:33]Read from MH i2c: E2 17 00 [12:59:33]MH_I2C_Read... [12:59:33]Read from MH i2c: E2 17 00 84 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 88 [12:59:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:59:33]wFMCommunicate OK [12:59:33]requested_item fd.num is exist - process it [12:59:33]SAM_PROTO_GetFieldsCounters [12:59:33]wFMCommunicate request_size=4 [12:59:33]MH_SAM_APDU [12:59:33]CAPDU: 80 13 00 00 [12:59:33]Write to MH i2c: E2 08 00 85 33 80 13 00 00 00 00 00 00 34 [12:59:33]Write i2c OK [12:59:33]MH_I2C_Read... [12:59:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:34]Read from MH i2c: E2 [12:59:34]MH_I2C_Read... [12:59:34]Read from MH i2c: E2 62 00 [12:59:34]MH_I2C_Read... [12:59:34]Read from MH i2c: E2 62 00 85 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6C 7B 03 00 0E 04 04 00 17 02 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 58 [12:59:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6C 7B 03 00 0E 04 04 00 17 02 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 [12:59:34]wFMCommunicate OK [12:59:34]SAM_PROTO_GetFieldsCounters done [12:59:34]requested_item shift.num is exist - process it [12:59:34]requested_item shift.opened is exist - process it [12:59:34]req_shift_opened [12:59:34]FM_GetShiftState [12:59:34]SAM_PROTO_GetShiftState [12:59:34]wFMCommunicate request_size=4 [12:59:34]MH_SAM_APDU [12:59:34]CAPDU: 80 13 01 00 [12:59:34]Write to MH i2c: E2 08 00 86 33 80 13 01 00 00 00 00 00 36 [12:59:34]Write i2c OK [12:59:34]MH_I2C_Read... [12:59:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:34]Read from MH i2c: E2 [12:59:34]MH_I2C_Read... [12:59:34]Read from MH i2c: E2 0E 00 [12:59:34]MH_I2C_Read... [12:59:34]Read from MH i2c: E2 0E 00 86 33 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 FD [12:59:34]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:59:34]wFMCommunicate OK [12:59:34]SAM_PROTO_GetShiftState done [12:59:34]FM_GetShiftState done [12:59:34]req_shift_opened done [12:59:34]requested_item shift.open_date is exist - process it [12:59:34]req_shift_open_date [12:59:34]req_shift_open_date done [12:59:34]produce_requested_data done [12:59:34]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228204,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [12:59:34]process_action_free close_receipt [12:59:34]json_value_free [12:59:34]json_value_free done [12:59:34]process_json_proto returns [12:59:34]Send response to host [12:59:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228204,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [12:59:34]free response buf [12:59:34]execute_script done [12:59:34]execute_script returns [12:59:34]free content buf [12:59:34]Sock 10.Close socket [12:59:34]Sock 10.Thread stoped [12:59:37]OFD Sender: No OFD packet to send [12:59:42]OFD Sender: No OFD packet to send [12:59:43]accept exits with 7 [12:59:43]New connection [12:59:43]New thread 3066994020 created [12:59:43]Thread 3067137380 joined [12:59:43]Waiting for new connection... [12:59:43] Sock 7.Parse request [12:59:43]Sock 7.Check first char [12:59:43]Sock 7.First char is OK [12:59:43]request: POST /json_proto HTTP/1.0 [12:59:43]Method: POST [12:59:43]URL: /json_proto [12:59:43]Method is POST - this is cgi request [12:59:43]url: /json_proto [12:59:43]query_string will be loaded in cgi processing [12:59:43]execute_cgi json_proto POST (null) [12:59:43]execute_cgi path=json_proto method=POST [12:59:43]POST find Content-Length [12:59:43]Host: 172.17.44.195:8080 [12:59:43]Content-Length: 678 [12:59:43]Content-Type: application/json [12:59:43] [12:59:43]POST finish read [12:59:43]Found Content-Length = 678 [12:59:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964649", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:59:43]execute_script... [12:59:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964649", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:59:43]POST & json_proto [12:59:43]process_json_proto [12:59:43]json parsed OK: [12:59:43]protocol is kg_v1.0 [12:59:43]action value=close_receipt [12:59:43]process_action close_receipt [12:59:43]cmd_close_receipt [12:59:43]MH_GetDate [12:59:43]Write to MH i2c: F0 00 00 87 33 A9 [12:59:43]Write i2c OK [12:59:43]MH_I2C_Read... [12:59:43]Read from MH i2c: F0 [12:59:43]MH_I2C_Read... [12:59:43]Read from MH i2c: F0 09 00 [12:59:43]MH_I2C_Read... [12:59:43]Read from MH i2c: F0 09 00 87 33 00 C3 A1 17 67 82 C9 CF 66 14 [12:59:43]GetLastDocTimeStamp 1729601974 [12:59:43]current date 1729601987 [12:59:43]FM_GetShiftState [12:59:43]SAM_PROTO_GetShiftState [12:59:43]wFMCommunicate request_size=4 [12:59:43]MH_SAM_APDU [12:59:43]CAPDU: 80 13 01 00 [12:59:43]Write to MH i2c: E2 08 00 88 33 80 13 01 00 00 00 00 00 38 [12:59:43]Write i2c OK [12:59:43]MH_I2C_Read... [12:59:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:43]Read from MH i2c: E2 [12:59:43]MH_I2C_Read... [12:59:43]Read from MH i2c: E2 0E 00 [12:59:43]MH_I2C_Read... [12:59:43]Read from MH i2c: E2 0E 00 88 33 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 FF [12:59:43]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:59:43]wFMCommunicate OK [12:59:43]SAM_PROTO_GetShiftState done [12:59:43]FM_GetShiftState done [12:59:43]opened in 1729555538 [12:59:43]opened+sec_in_day 1729641938 [12:59:43]quantity*price = 50041 [12:59:43]sum+1 = 50042 [12:59:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 169 22.10.2024 12:59 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228205 ФПД: 47875672758890 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125947&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228205&fm=47875672758890&tin=02508201610067®Number=0000000000091685&sum=50000 [12:59:44]StoreToDocumentArchive [12:59:44]shift 535 fd 228205 [12:59:44]save to /storage/0535/doc_00228205 [12:59:44]save last doc name /storage/0535/doc_00228205 to /storage/kkm_last_doc_name [12:59:44]save OK [12:59:44]Clear old archive folders... [12:59:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:59:44]tlvbuf is B6DD5510 [12:59:44]SAM_PROTO_ClearQueue [12:59:44]wFMCommunicate request_size=4 [12:59:44]MH_SAM_APDU [12:59:44]CAPDU: 80 09 00 00 [12:59:44]Write to MH i2c: E2 08 00 95 33 80 09 00 00 00 00 00 00 3A [12:59:44]Write i2c OK [12:59:44]MH_I2C_Read... [12:59:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:59:44]Read from MH i2c: E2 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 03 00 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 03 00 95 33 00 90 00 3C [12:59:44]RAPDU: 90 00 [12:59:44]wFMCommunicate OK [12:59:44]SAM_PROTO_ClearQueue done [12:59:44]KKMCreateOFDPacket [12:59:44]OFDProtocolAddRootSTLVToBuf [12:59:44]FM_MakeSignedData [12:59:44]FM_MakeSignedData [12:59:44]SAM_PROTO_SignData [12:59:44]wFMCommunicate request_size=4 [12:59:44]MH_SAM_APDU [12:59:44]CAPDU: 80 0D 01 02 [12:59:44]Write to MH i2c: E2 08 00 96 33 80 0D 01 02 00 00 00 00 42 [12:59:44]Write i2c OK [12:59:44]MH_I2C_Read... [12:59:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:59:44]Read from MH i2c: E2 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 03 00 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 03 00 96 33 00 90 00 3D [12:59:44]RAPDU: 90 00 [12:59:44]wFMCommunicate OK [12:59:44]wFMCommunicate request_size=255 [12:59:44]MH_SAM_APDU [12:59:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 C3 A1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6D 7B 03 00 35 04 06 00 2B [12:59:44]Write to MH i2c: E2 02 01 97 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 C3 A1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6D 7B 03 00 35 04 06 00 2B 00 00 93 [12:59:44]Write i2c OK [12:59:44]MH_I2C_Read... [12:59:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:44]Read from MH i2c: E2 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 03 00 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 03 00 97 33 00 90 00 3E [12:59:44]RAPDU: 90 00 [12:59:44]wFMCommunicate OK [12:59:44]wFMCommunicate request_size=10 [12:59:44]MH_SAM_APDU [12:59:44]CAPDU: 80 0D 02 02 05 8A EC 77 DA 6A [12:59:44]Write to MH i2c: E2 0D 00 98 33 80 0D 02 02 05 00 8A EC 77 DA 6A 00 00 80 [12:59:44]Write i2c OK [12:59:44]MH_I2C_Read... [12:59:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:44]Read from MH i2c: E2 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 03 00 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 03 00 98 33 00 90 00 3F [12:59:44]RAPDU: 90 00 [12:59:44]wFMCommunicate OK [12:59:44]wFMCommunicate request_size=4 [12:59:44]MH_SAM_APDU [12:59:44]CAPDU: 80 0D 03 02 [12:59:44]Write to MH i2c: E2 08 00 99 33 80 0D 03 02 00 00 00 00 47 [12:59:44]Write i2c OK [12:59:44]MH_I2C_Read... [12:59:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:44]Read from MH i2c: E2 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 0B 00 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 0B 00 99 33 00 28 5E A6 F9 EA 3F 7E 7E 90 00 92 [12:59:44]RAPDU: 28 5E A6 F9 EA 3F 7E 7E 90 00 [12:59:44]wFMCommunicate OK [12:59:44]SAM_PROTO_SignData done [12:59:44]FM_MakeSignedData done [12:59:44]CreateOFDProtocolMessage [12:59:44]wFMCommunicate request_size=4 [12:59:44]MH_SAM_APDU [12:59:44]CAPDU: 80 11 00 00 [12:59:44]Write to MH i2c: E2 08 00 9A 33 80 11 00 00 00 00 00 00 47 [12:59:44]Write i2c OK [12:59:44]MH_I2C_Read... [12:59:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:44]Read from MH i2c: E2 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 17 00 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 17 00 9A 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9E [12:59:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:59:44]wFMCommunicate OK [12:59:44]CreateOFDProtocolMessage done [12:59:44]OFDSenderStorePacket 228205 [12:59:44]StoreOFDPacket docnum=228205 [12:59:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 33 1B 07 01 BB B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 C3 A1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6D 7B 03 00 35 04 06 00 2B 8A EC 77 DA 6A 28 5E A6 F9 EA 3F 7E 7E [12:59:44]CheckFolder [12:59:44]dirname=/storage/ofd_packets [12:59:44]CheckFolder done [12:59:44]ProducePacketName [12:59:44]name=ofd_packets/00228205 [12:59:44]NVStorageSaveData ofd_packets/00228205 [12:59:44]File name is /storage/ofd_packets/00228205 [12:59:44]Write 301 bytes [12:59:44]NVStorageSaveData done [12:59:44]OFDSenderStorePacket done [12:59:44]KKMCreateOFDPacket done [12:59:44]NVStorageSaveData kkm_last_timestamp [12:59:44]File name is /storage/kkm_last_timestamp [12:59:44]Write 4 bytes [12:59:44]NVStorageSaveData done [12:59:44]ExternCall_PrintAddStr [12:59:44]wPrintStart [12:59:44]Write to MH i2c: 01 00 00 9B 33 CE [12:59:44]Write i2c OK [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: 01 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: 01 07 00 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: 01 07 00 9B 33 00 00 00 00 00 FF 0F E3 [12:59:44]RasterBufferAndPrint [12:59:44]line Счет N : (1)1964649 [12:59:44]line ИНН: 02508201610067 [12:59:44]line Контрольно-Кассовый Чек [12:59:44]line ПРОДАЖА [12:59:44]line ТРК (МРК, ГНК) : 63 [12:59:44]line Товар: 2710124130 [12:59:44]line Аи-92-К-5 [12:59:44]line 7.480 * 66.90 [12:59:44]line = 500.41 [12:59:44]line НДС 12% НСП 1% [12:59:44]line > о реализуемом товаре [12:59:44]line ОКРУГЛЕНИЕ: -0.41 [12:59:44]line ИТОГО: 500.00 [12:59:44]line Внесено: 500.00 [12:59:44]line СДАЧА: 0.00 [12:59:44]line НСП 1% : 4.43 [12:59:44]line НДС 12% : 53.14 [12:59:44]line Наличными: 500.00 [12:59:44]line Безнал.: 0.00 [12:59:44]line Место: АЗС № 133 "Партнер Нефть" [12:59:44]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:59:44]line СНО: Общий режим [12:59:44]line Чек 169 22.10.2024 12:59 [12:59:44]line Смена: 535 ФФД: 1.0 [12:59:44]line ЗНМ: 0300000091 [12:59:44]line РНМ: 0000000000091685 [12:59:44]line Версия ККМ: 001 [12:59:44]line ФМ: 0000000000871839 [12:59:44]line ФД: 228205 [12:59:44]line ФПД: 47875672758890 [12:59:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125947&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228205&fm=47875672758890&tin=02508201610067®Number=0000000000091685&sum=50000 [12:59:45]OFD Sender: Processing packet 228205 [packets to send 38, broken 37] [12:59:45]ProducePacketName [12:59:45]name=ofd_packets/00228205 [12:59:45]OFD Sender: To server: pG, [12:59:45]CommunicateWithHost lk.salyk.kg:30040 [12:59:45]ConnectInit lk.salyk.kg [12:59:45]written 0, free lines is 4095 [12:59:45]Connected sock=10 [12:59:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 33 1B 07 01 BB B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 C3 A1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6D 7B 03 00 35 04 06 00 2B 8A EC 77 DA 6A 28 5E A6 F9 EA 3F 7E 7E [12:59:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 CA 6C 47 00 0F B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6D 7B 03 00 F4 03 04 00 BB 4C 17 67 B6 04 01 00 00 F8 AE 0C BF 77 D1 FC 9F [12:59:45]CommunicateWithHost err = 0 [12:59:45]CheckOFDResponse [12:59:45]1017 (14) - 77093643461234 [12:59:45]1041 (16) - 0000000000871839 [12:59:45]1040 (4) - 228205 [12:59:45]1012 (4) - 22.10.2024 06:56 [12:59:45]1206 (1) - 0 [12:59:45]OFD Sender: Remove packet 228205 [12:59:45]ProducePacketName [12:59:45]name=ofd_packets/00228205 [12:59:45]NVStorageDeleteData [12:59:45]Write to MH i2c: 01 00 00 C5 33 F8 [12:59:45]Write i2c OK [12:59:45]MH_I2C_Read... [12:59:45]Read from MH i2c: 01 [12:59:45]MH_I2C_Read... [12:59:45]Read from MH i2c: 01 07 00 [12:59:45]MH_I2C_Read... [12:59:45]Read from MH i2c: 01 07 00 C5 33 00 00 00 00 00 C4 0C CF [12:59:45]RasterBufferAndPrint [12:59:45]line [12:59:45]line [12:59:45]line [12:59:45]line [12:59:45]line [12:59:45]written 0, free lines is 3274 [12:59:45]MH_Cut [12:59:45]Write to MH i2c: D1 01 00 CC 33 01 D1 [12:59:45]Write i2c OK [12:59:45]MH_I2C_Read... [12:59:45]Read from MH i2c: D1 [12:59:45]MH_I2C_Read... [12:59:45]Read from MH i2c: D1 01 00 [12:59:45]MH_I2C_Read... [12:59:45]Read from MH i2c: D1 01 00 CC 33 00 D0 [12:59:45]Write to MH i2c: 01 00 00 CD 33 00 [12:59:45]Write i2c OK [12:59:45]MH_I2C_Read... [12:59:46]OFD Sender: No OFD packet to send [12:59:46]*** Cut start [12:59:46]*** Partial cut [12:59:46]*** CUTSNS_PIN = 1 [12:59:46]*** CUTSNS_PIN = 0 [12:59:46]*** Brake cut motor [12:59:47]Read from MH i2c: 01 [12:59:47]MH_I2C_Read... [12:59:47]*** Stop cut motor [12:59:47]*** Cut end [12:59:47]Read from MH i2c: 01 07 00 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: 01 07 00 CD 33 00 00 00 00 00 FF 0F 15 [12:59:47]process_action close_receipt done [12:59:47]requested_data is exist [12:59:47]produce_requested_data [12:59:47]requested_item fm.sn is exist - process it [12:59:47]wFMCommunicate request_size=4 [12:59:47]MH_SAM_APDU [12:59:47]CAPDU: 80 11 00 00 [12:59:47]Write to MH i2c: E2 08 00 CE 33 80 11 00 00 00 00 00 00 7B [12:59:47]Write i2c OK [12:59:47]MH_I2C_Read... [12:59:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:47]Read from MH i2c: E2 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: E2 17 00 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: E2 17 00 CE 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D2 [12:59:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:59:47]wFMCommunicate OK [12:59:47]requested_item fd.num is exist - process it [12:59:47]SAM_PROTO_GetFieldsCounters [12:59:47]wFMCommunicate request_size=4 [12:59:47]MH_SAM_APDU [12:59:47]CAPDU: 80 13 00 00 [12:59:47]Write to MH i2c: E2 08 00 CF 33 80 13 00 00 00 00 00 00 7E [12:59:47]Write i2c OK [12:59:47]MH_I2C_Read... [12:59:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:47]Read from MH i2c: E2 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: E2 62 00 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: E2 62 00 CF 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6D 7B 03 00 0E 04 04 00 17 02 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 A6 [12:59:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6D 7B 03 00 0E 04 04 00 17 02 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 [12:59:47]wFMCommunicate OK [12:59:47]SAM_PROTO_GetFieldsCounters done [12:59:47]requested_item shift.num is exist - process it [12:59:47]requested_item shift.opened is exist - process it [12:59:47]req_shift_opened [12:59:47]FM_GetShiftState [12:59:47]SAM_PROTO_GetShiftState [12:59:47]wFMCommunicate request_size=4 [12:59:47]MH_SAM_APDU [12:59:47]CAPDU: 80 13 01 00 [12:59:47]Write to MH i2c: E2 08 00 D0 33 80 13 01 00 00 00 00 00 80 [12:59:47]Write i2c OK [12:59:47]MH_I2C_Read... [12:59:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:47]Read from MH i2c: E2 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: E2 0E 00 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: E2 0E 00 D0 33 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 47 [12:59:47]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [12:59:47]wFMCommunicate OK [12:59:47]SAM_PROTO_GetShiftState done [12:59:47]FM_GetShiftState done [12:59:47]req_shift_opened done [12:59:47]requested_item shift.open_date is exist - process it [12:59:47]req_shift_open_date [12:59:47]req_shift_open_date done [12:59:47]produce_requested_data done [12:59:47]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228205,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [12:59:47]process_action_free close_receipt [12:59:47]json_value_free [12:59:47]json_value_free done [12:59:47]process_json_proto returns [12:59:47]Send response to host [12:59:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228205,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [12:59:47]free response buf [12:59:47]execute_script done [12:59:47]execute_script returns [12:59:47]free content buf [12:59:47]Sock 7.Close socket [12:59:47]Sock 7.Thread stoped [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:16]accept exits with 9 [13:00:16]New connection [13:00:16]New thread 3067137380 created [13:00:16]Thread 3066994020 joined [13:00:16]Waiting for new connection... [13:00:16] Sock 9.Parse request [13:00:16]Sock 9.Check first char [13:00:16]Sock 9.First char is OK [13:00:16]request: POST /json_proto HTTP/1.0 [13:00:16]Method: POST [13:00:16]URL: /json_proto [13:00:16]Method is POST - this is cgi request [13:00:16]url: /json_proto [13:00:16]query_string will be loaded in cgi processing [13:00:16]execute_cgi json_proto POST (null) [13:00:16]execute_cgi path=json_proto method=POST [13:00:16]POST find Content-Length [13:00:16]Host: 172.17.44.195:8080 [13:00:16]Content-Length: 683 [13:00:16]Content-Type: application/json [13:00:16] [13:00:16]POST finish read [13:00:16]Found Content-Length = 683 [13:00:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964651", "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" : 66.90, "quantity" : 14.950, "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" ] } } [13:00:16]execute_script... [13:00: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)1964651", "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" : 66.90, "quantity" : 14.950, "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" ] } } [13:00:16]POST & json_proto [13:00:16]process_json_proto [13:00:16]json parsed OK: [13:00:16]protocol is kg_v1.0 [13:00:16]action value=close_receipt [13:00:16]process_action close_receipt [13:00:16]cmd_close_receipt [13:00:16]MH_GetDate [13:00:16]Write to MH i2c: F0 00 00 D1 33 F3 [13:00:16]Write i2c OK [13:00:16]MH_I2C_Read... [13:00:16]Read from MH i2c: F0 [13:00:16]MH_I2C_Read... [13:00:16]Read from MH i2c: F0 09 00 [13:00:16]MH_I2C_Read... [13:00:16]Read from MH i2c: F0 09 00 D1 33 00 E4 A1 17 67 82 C9 CF 66 7F [13:00:16]GetLastDocTimeStamp 1729601987 [13:00:16]current date 1729602020 [13:00:16]FM_GetShiftState [13:00:16]SAM_PROTO_GetShiftState [13:00:16]wFMCommunicate request_size=4 [13:00:16]MH_SAM_APDU [13:00:16]CAPDU: 80 13 01 00 [13:00:16]Write to MH i2c: E2 08 00 D2 33 80 13 01 00 00 00 00 00 82 [13:00:16]Write i2c OK [13:00:16]MH_I2C_Read... [13:00:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:16]Read from MH i2c: E2 [13:00:16]MH_I2C_Read... [13:00:16]Read from MH i2c: E2 0E 00 [13:00:16]MH_I2C_Read... [13:00:16]Read from MH i2c: E2 0E 00 D2 33 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 49 [13:00:16]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:00:16]wFMCommunicate OK [13:00:16]SAM_PROTO_GetShiftState done [13:00:16]FM_GetShiftState done [13:00:16]opened in 1729555538 [13:00:16]opened+sec_in_day 1729641938 [13:00:16]quantity*price = 100015 [13:00:16]sum+1 = 100017 [13:00:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 170 22.10.2024 13:00 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228206 ФПД: 24277070686926 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130020&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228206&fm=24277070686926&tin=02508201610067®Number=0000000000091685&sum=100000 [13:00:17]StoreToDocumentArchive [13:00:17]shift 535 fd 228206 [13:00:17]save to /storage/0535/doc_00228206 [13:00:17]save last doc name /storage/0535/doc_00228206 to /storage/kkm_last_doc_name [13:00:17]save OK [13:00:17]Clear old archive folders... [13:00:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:00:17]tlvbuf is 008E4E60 [13:00:17]SAM_PROTO_ClearQueue [13:00:17]wFMCommunicate request_size=4 [13:00:17]MH_SAM_APDU [13:00:17]CAPDU: 80 09 00 00 [13:00:17]Write to MH i2c: E2 08 00 DF 33 80 09 00 00 00 00 00 00 84 [13:00:17]Write i2c OK [13:00:17]MH_I2C_Read... [13:00:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:17]Read from MH i2c: E2 [13:00:17]MH_I2C_Read... [13:00:17]Read from MH i2c: E2 03 00 [13:00:17]MH_I2C_Read... [13:00:17]Read from MH i2c: E2 03 00 DF 33 00 90 00 86 [13:00:17]RAPDU: 90 00 [13:00:17]wFMCommunicate OK [13:00:17]SAM_PROTO_ClearQueue done [13:00:17]KKMCreateOFDPacket [13:00:17]OFDProtocolAddRootSTLVToBuf [13:00:17]FM_MakeSignedData [13:00:17]FM_MakeSignedData [13:00:17]SAM_PROTO_SignData [13:00:17]wFMCommunicate request_size=4 [13:00:17]MH_SAM_APDU [13:00:17]CAPDU: 80 0D 01 02 [13:00:17]Write to MH i2c: E2 08 00 E0 33 80 0D 01 02 00 00 00 00 8C [13:00:17]Write i2c OK [13:00:17]MH_I2C_Read... [13:00:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:17]Read from MH i2c: E2 [13:00:17]MH_I2C_Read... [13:00:17]Read from MH i2c: E2 03 00 [13:00:17]MH_I2C_Read... [13:00:17]Read from MH i2c: E2 03 00 E0 33 00 90 00 87 [13:00:17]RAPDU: 90 00 [13:00:17]wFMCommunicate OK [13:00:17]wFMCommunicate request_size=255 [13:00:17]MH_SAM_APDU [13:00: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 AA 00 00 00 F4 03 04 00 E4 A1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6E 7B 03 00 35 04 06 00 16 [13:00:17]Write to MH i2c: E2 02 01 E1 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 AA 00 00 00 F4 03 04 00 E4 A1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6E 7B 03 00 35 04 06 00 16 00 00 E5 [13:00:17]Write i2c OK [13:00:17]MH_I2C_Read... [13:00:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:18]Read from MH i2c: E2 [13:00:18]MH_I2C_Read... [13:00:18]Read from MH i2c: E2 03 00 [13:00:18]MH_I2C_Read... [13:00:18]Read from MH i2c: E2 03 00 E1 33 00 90 00 88 [13:00:18]RAPDU: 90 00 [13:00:18]wFMCommunicate OK [13:00:18]wFMCommunicate request_size=10 [13:00:18]MH_SAM_APDU [13:00:18]CAPDU: 80 0D 02 02 05 14 72 2C AA CE [13:00:18]Write to MH i2c: E2 0D 00 E2 33 80 0D 02 02 05 00 14 72 2C AA CE 00 00 C3 [13:00:18]Write i2c OK [13:00:18]MH_I2C_Read... [13:00:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:18]Read from MH i2c: E2 [13:00:18]MH_I2C_Read... [13:00:18]Read from MH i2c: E2 03 00 [13:00:18]MH_I2C_Read... [13:00:18]Read from MH i2c: E2 03 00 E2 33 00 90 00 89 [13:00:18]RAPDU: 90 00 [13:00:18]wFMCommunicate OK [13:00:18]wFMCommunicate request_size=4 [13:00:18]MH_SAM_APDU [13:00:18]CAPDU: 80 0D 03 02 [13:00:18]Write to MH i2c: E2 08 00 E3 33 80 0D 03 02 00 00 00 00 91 [13:00:18]Write i2c OK [13:00:18]MH_I2C_Read... [13:00:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:18]Read from MH i2c: E2 [13:00:18]MH_I2C_Read... [13:00:18]Read from MH i2c: E2 0B 00 [13:00:18]MH_I2C_Read... [13:00:18]Read from MH i2c: E2 0B 00 E3 33 00 84 BE 5B EA BC CD E2 D5 90 00 59 [13:00:18]RAPDU: 84 BE 5B EA BC CD E2 D5 90 00 [13:00:18]wFMCommunicate OK [13:00:18]SAM_PROTO_SignData done [13:00:18]FM_MakeSignedData done [13:00:18]CreateOFDProtocolMessage [13:00:18]wFMCommunicate request_size=4 [13:00:18]MH_SAM_APDU [13:00:18]CAPDU: 80 11 00 00 [13:00:18]Write to MH i2c: E2 08 00 E4 33 80 11 00 00 00 00 00 00 91 [13:00:18]Write i2c OK [13:00:18]MH_I2C_Read... [13:00:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:18]Read from MH i2c: E2 [13:00:18]MH_I2C_Read... [13:00:18]Read from MH i2c: E2 17 00 [13:00:18]MH_I2C_Read... [13:00:18]Read from MH i2c: E2 17 00 E4 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E8 [13:00:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:00:18]wFMCommunicate OK [13:00:18]CreateOFDProtocolMessage done [13:00:18]OFDSenderStorePacket 228206 [13:00:18]StoreOFDPacket docnum=228206 [13:00:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 23 B0 07 01 1B 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 AA 00 00 00 F4 03 04 00 E4 A1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6E 7B 03 00 35 04 06 00 16 14 72 2C AA CE 84 BE 5B EA BC CD E2 D5 [13:00:18]CheckFolder [13:00:18]dirname=/storage/ofd_packets [13:00:18]CheckFolder done [13:00:18]ProducePacketName [13:00:18]name=ofd_packets/00228206 [13:00:18]NVStorageSaveData ofd_packets/00228206 [13:00:18]File name is /storage/ofd_packets/00228206 [13:00:18]Write 301 bytes [13:00:18]NVStorageSaveData done [13:00:18]OFDSenderStorePacket done [13:00:18]KKMCreateOFDPacket done [13:00:18]NVStorageSaveData kkm_last_timestamp [13:00:18]File name is /storage/kkm_last_timestamp [13:00:18]Write 4 bytes [13:00:18]NVStorageSaveData done [13:00:18]ExternCall_PrintAddStr [13:00:18]wPrintStart [13:00:18]Write to MH i2c: 01 00 00 E5 33 18 [13:00:18]Write i2c OK [13:00:18]MH_I2C_Read... [13:00:18]Read from MH i2c: 01 [13:00:18]MH_I2C_Read... [13:00:18]Read from MH i2c: 01 07 00 [13:00:18]MH_I2C_Read... [13:00:18]Read from MH i2c: 01 07 00 E5 33 00 00 00 00 00 FF 0F 2D [13:00:18]RasterBufferAndPrint [13:00:18]line Счет N : (1)1964651 [13:00:18]line ИНН: 02508201610067 [13:00:18]line Контрольно-Кассовый Чек [13:00:18]line ПРОДАЖА [13:00:18]line ТРК (МРК, ГНК) : 53 [13:00:18]line Товар: 2710124130 [13:00:18]line Аи-92-К-5 [13:00:18]line 14.950 * 66.90 [13:00:18]line = 1000.16 [13:00:18]line НДС 12% НСП 1% [13:00:18]line > о реализуемом товаре [13:00:18]line ОКРУГЛЕНИЕ: -0.16 [13:00:18]line ИТОГО: 1000.00 [13:00:18]line Внесено: 1000.00 [13:00:18]line СДАЧА: 0.00 [13:00:18]line НСП 1% : 8.85 [13:00:18]line НДС 12% : 106.21 [13:00:18]line Наличными: 1000.00 [13:00:18]line Безнал.: 0.00 [13:00:18]line Место: АЗС № 133 "Партнер Нефть" [13:00:18]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:00:18]line СНО: Общий режим [13:00:18]line Чек 170 22.10.2024 13:00 [13:00:18]line Смена: 535 ФФД: 1.0 [13:00:18]line ЗНМ: 0300000091 [13:00:18]line РНМ: 0000000000091685 [13:00:18]line Версия ККМ: 001 [13:00:18]line ФМ: 0000000000871839 [13:00:18]line ФД: 228206 [13:00:18]line ФПД: 24277070686926 [13:00:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130020&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228206&fm=24277070686926&tin=02508201610067®Number=0000000000091685&sum=100000 [13:00:18]written 0, free lines is 4095 [13:00:18]OFD Sender: Processing packet 228206 [packets to send 38, broken 37] [13:00:18]ProducePacketName [13:00:18]name=ofd_packets/00228206 [13:00:18]OFD Sender: To server: pG, [13:00:18]CommunicateWithHost lk.salyk.kg:30040 [13:00:18]ConnectInit lk.salyk.kg [13:00:18]Connected sock=11 [13:00:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 23 B0 07 01 1B 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 AA 00 00 00 F4 03 04 00 E4 A1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6E 7B 03 00 35 04 06 00 16 14 72 2C AA CE 84 BE 5B EA BC CD E2 D5 [13:00:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 F9 05 47 00 6C 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6E 7B 03 00 F4 03 04 00 DC 4C 17 67 B6 04 01 00 00 0E 67 D7 33 87 BC FB B8 [13:00:18]CommunicateWithHost err = 0 [13:00:18]CheckOFDResponse [13:00:18]1017 (14) - 77093643461234 [13:00:18]1041 (16) - 0000000000871839 [13:00:18]1040 (4) - 228206 [13:00:18]1012 (4) - 22.10.2024 06:57 [13:00:18]1206 (1) - 0 [13:00:18]OFD Sender: Remove packet 228206 [13:00:18]ProducePacketName [13:00:18]name=ofd_packets/00228206 [13:00:18]NVStorageDeleteData [13:00:19]Write to MH i2c: 01 00 00 0F 34 43 [13:00:19]Write i2c OK [13:00:19]MH_I2C_Read... [13:00:19]Read from MH i2c: 01 [13:00:19]MH_I2C_Read... [13:00:19]Read from MH i2c: 01 07 00 [13:00:19]MH_I2C_Read... [13:00:19]Read from MH i2c: 01 07 00 0F 34 00 00 00 00 00 C7 0C 1D [13:00:19]RasterBufferAndPrint [13:00:19]line [13:00:19]line [13:00:19]line [13:00:19]line [13:00:19]line [13:00:19]written 0, free lines is 3275 [13:00:19]MH_Cut [13:00:19]Write to MH i2c: D1 01 00 16 34 01 1C [13:00:19]Write i2c OK [13:00:19]MH_I2C_Read... [13:00:19]Read from MH i2c: D1 [13:00:19]MH_I2C_Read... [13:00:19]Read from MH i2c: D1 01 00 [13:00:19]MH_I2C_Read... [13:00:19]Read from MH i2c: D1 01 00 16 34 00 1B [13:00:19]Write to MH i2c: 01 00 00 17 34 4B [13:00:19]Write i2c OK [13:00:19]MH_I2C_Read... [13:00:19]OFD Sender: No OFD packet to send [13:00:19]*** Cut start [13:00:19]*** Partial cut [13:00:19]*** CUTSNS_PIN = 1 [13:00:19]*** CUTSNS_PIN = 0 [13:00:20]*** Brake cut motor [13:00:20]Read from MH i2c: 01 [13:00:20]MH_I2C_Read... [13:00:20]*** Stop cut motor [13:00:20]*** Cut end [13:00:20]Read from MH i2c: 01 07 00 [13:00:20]MH_I2C_Read... [13:00:20]Read from MH i2c: 01 07 00 17 34 00 00 00 00 00 FF 0F 60 [13:00:20]process_action close_receipt done [13:00:20]requested_data is exist [13:00:20]produce_requested_data [13:00:20]requested_item fm.sn is exist - process it [13:00:20]wFMCommunicate request_size=4 [13:00:20]MH_SAM_APDU [13:00:20]CAPDU: 80 11 00 00 [13:00:20]Write to MH i2c: E2 08 00 18 34 80 11 00 00 00 00 00 00 C6 [13:00:20]Write i2c OK [13:00:20]MH_I2C_Read... [13:00:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:20]Read from MH i2c: E2 [13:00:20]MH_I2C_Read... [13:00:20]Read from MH i2c: E2 17 00 [13:00:20]MH_I2C_Read... [13:00:20]Read from MH i2c: E2 17 00 18 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1D [13:00:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:00:20]wFMCommunicate OK [13:00:20]requested_item fd.num is exist - process it [13:00:20]SAM_PROTO_GetFieldsCounters [13:00:20]wFMCommunicate request_size=4 [13:00:20]MH_SAM_APDU [13:00:20]CAPDU: 80 13 00 00 [13:00:20]Write to MH i2c: E2 08 00 19 34 80 13 00 00 00 00 00 00 C9 [13:00:20]Write i2c OK [13:00:20]MH_I2C_Read... [13:00:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:20]Read from MH i2c: E2 [13:00:20]MH_I2C_Read... [13:00:20]Read from MH i2c: E2 62 00 [13:00:20]MH_I2C_Read... [13:00:20]Read from MH i2c: E2 62 00 19 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6E 7B 03 00 0E 04 04 00 17 02 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 F5 [13:00:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6E 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:00:20]wFMCommunicate OK [13:00:20]SAM_PROTO_GetFieldsCounters done [13:00:20]requested_item shift.num is exist - process it [13:00:20]requested_item shift.opened is exist - process it [13:00:20]req_shift_opened [13:00:20]FM_GetShiftState [13:00:20]SAM_PROTO_GetShiftState [13:00:20]wFMCommunicate request_size=4 [13:00:20]MH_SAM_APDU [13:00:20]CAPDU: 80 13 01 00 [13:00:20]Write to MH i2c: E2 08 00 1A 34 80 13 01 00 00 00 00 00 CB [13:00:20]Write i2c OK [13:00:20]MH_I2C_Read... [13:00:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:20]Read from MH i2c: E2 [13:00:20]MH_I2C_Read... [13:00:20]Read from MH i2c: E2 0E 00 [13:00:20]MH_I2C_Read... [13:00:20]Read from MH i2c: E2 0E 00 1A 34 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 92 [13:00:20]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:00:20]wFMCommunicate OK [13:00:20]SAM_PROTO_GetShiftState done [13:00:20]FM_GetShiftState done [13:00:20]req_shift_opened done [13:00:20]requested_item shift.open_date is exist - process it [13:00:20]req_shift_open_date [13:00:20]req_shift_open_date done [13:00:20]produce_requested_data done [13:00:20]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228206,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:00:20]process_action_free close_receipt [13:00:20]json_value_free [13:00:20]json_value_free done [13:00:20]process_json_proto returns [13:00:20]Send response to host [13:00:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228206,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:00:20]free response buf [13:00:20]execute_script done [13:00:20]execute_script returns [13:00:20]free content buf [13:00:20]Sock 9.Close socket [13:00:20]Sock 9.Thread stoped [13:00:24]OFD Sender: No OFD packet to send [13:00:29]OFD Sender: No OFD packet to send [13:00:34]OFD Sender: No OFD packet to send [13:00:39]OFD Sender: No OFD packet to send [13:00:44]OFD Sender: No OFD packet to send [13:00:49]OFD Sender: No OFD packet to send [13:00:54]OFD Sender: No OFD packet to send [13:00:59]OFD Sender: No OFD packet to send [13:01:04]OFD Sender: No OFD packet to send [13:01:09]OFD Sender: No OFD packet to send [13:01:14]OFD Sender: No OFD packet to send [13:01:19]OFD Sender: No OFD packet to send [13:01:24]OFD Sender: No OFD packet to send [13:01:29]OFD Sender: No OFD packet to send [13:01:34]OFD Sender: No OFD packet to send [13:01:39]OFD Sender: No OFD packet to send [13:01:44]OFD Sender: No OFD packet to send [13:01:49]OFD Sender: No OFD packet to send [13:01:54]OFD Sender: No OFD packet to send [13:01:59]OFD Sender: No OFD packet to send [13:02:04]OFD Sender: No OFD packet to send [13:02:09]OFD Sender: No OFD packet to send [13:02:14]OFD Sender: No OFD packet to send [13:02:19]OFD Sender: No OFD packet to send [13:02:24]OFD Sender: No OFD packet to send [13:02:29]OFD Sender: No OFD packet to send [13:02:34]OFD Sender: No OFD packet to send [13:02:39]OFD Sender: No OFD packet to send [13:02:44]OFD Sender: No OFD packet to send [13:02:49]OFD Sender: No OFD packet to send [13:02:54]OFD Sender: No OFD packet to send [13:02:59]OFD Sender: No OFD packet to send [13:03:04]OFD Sender: No OFD packet to send [13:03:09]OFD Sender: No OFD packet to send [13:03:14]OFD Sender: No OFD packet to send [13:03:19]OFD Sender: No OFD packet to send [13:03:24]OFD Sender: No OFD packet to send [13:03:29]OFD Sender: No OFD packet to send [13:03:30]accept exits with 7 [13:03:30]New connection [13:03:30]New thread 3066994020 created [13:03:30]Thread 3067137380 joined [13:03:30]Waiting for new connection... [13:03:30] Sock 7.Parse request [13:03:30]Sock 7.Check first char [13:03:30]Sock 7.First char is OK [13:03:30]request: POST /json_proto HTTP/1.0 [13:03:30]Method: POST [13:03:30]URL: /json_proto [13:03:30]Method is POST - this is cgi request [13:03:30]url: /json_proto [13:03:30]query_string will be loaded in cgi processing [13:03:30]execute_cgi json_proto POST (null) [13:03:30]execute_cgi path=json_proto method=POST [13:03:30]POST find Content-Length [13:03:30]Host: 172.17.44.195:8080 [13:03:30]Content-Length: 748 [13:03:30]Content-Type: application/json [13:03:30] [13:03:30]POST finish read [13:03:30]Found Content-Length = 748 [13:03:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:30]execute_script... [13:03: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)1964654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:30]POST & json_proto [13:03:30]process_json_proto [13:03:30]json parsed OK: [13:03:30]protocol is kg_v1.0 [13:03:30]action value=close_receipt [13:03:30]process_action close_receipt [13:03:30]cmd_close_receipt [13:03:30]MH_GetDate [13:03:30]Write to MH i2c: F0 00 00 1B 34 3E [13:03:30]Write i2c OK [13:03:30]MH_I2C_Read... [13:03:30]Read from MH i2c: F0 [13:03:30]MH_I2C_Read... [13:03:30]Read from MH i2c: F0 09 00 [13:03:30]MH_I2C_Read... [13:03:30]Read from MH i2c: F0 09 00 1B 34 00 A6 A2 17 67 82 C9 CF 66 8D [13:03:30]GetLastDocTimeStamp 1729602020 [13:03:30]current date 1729602214 [13:03:30]FM_GetShiftState [13:03:30]SAM_PROTO_GetShiftState [13:03:30]wFMCommunicate request_size=4 [13:03:30]MH_SAM_APDU [13:03:30]CAPDU: 80 13 01 00 [13:03:30]Write to MH i2c: E2 08 00 1C 34 80 13 01 00 00 00 00 00 CD [13:03:30]Write i2c OK [13:03:30]MH_I2C_Read... [13:03:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:30]Read from MH i2c: E2 [13:03:30]MH_I2C_Read... [13:03:30]Read from MH i2c: E2 0E 00 [13:03:30]MH_I2C_Read... [13:03:30]Read from MH i2c: E2 0E 00 1C 34 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 94 [13:03:30]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:03:30]wFMCommunicate OK [13:03:30]SAM_PROTO_GetShiftState done [13:03:30]FM_GetShiftState done [13:03:30]opened in 1729555538 [13:03:30]opened+sec_in_day 1729641938 [13:03:30]quantity*price = 50000 [13:03:30]sum+1 = 50001 [13:03:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 0.00 Безнал.: 500.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 171 22.10.2024 13:03 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 228207 ФПД: 63856746445134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130334&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228207&fm=63856746445134&tin=02508201610067®Number=0000000000091685&sum=50000 [13:03:31]StoreToDocumentArchive [13:03:31]shift 535 fd 228207 [13:03:31]save to /storage/0535/doc_00228207 [13:03:31]save last doc name /storage/0535/doc_00228207 to /storage/kkm_last_doc_name [13:03:31]save OK [13:03:31]Clear old archive folders... [13:03:31]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:03:31]tlvbuf is 0092E3A0 [13:03:31]SAM_PROTO_ClearQueue [13:03:31]wFMCommunicate request_size=4 [13:03:31]MH_SAM_APDU [13:03:31]CAPDU: 80 09 00 00 [13:03:31]Write to MH i2c: E2 08 00 29 34 80 09 00 00 00 00 00 00 CF [13:03:31]Write i2c OK [13:03:31]MH_I2C_Read... [13:03:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:32]Read from MH i2c: E2 [13:03:32]MH_I2C_Read... [13:03:32]Read from MH i2c: E2 03 00 [13:03:32]MH_I2C_Read... [13:03:32]Read from MH i2c: E2 03 00 29 34 00 90 00 D1 [13:03:32]RAPDU: 90 00 [13:03:32]wFMCommunicate OK [13:03:32]SAM_PROTO_ClearQueue done [13:03:32]KKMCreateOFDPacket [13:03:32]OFDProtocolAddRootSTLVToBuf [13:03:32]FM_MakeSignedData [13:03:32]FM_MakeSignedData [13:03:32]SAM_PROTO_SignData [13:03:32]wFMCommunicate request_size=4 [13:03:32]MH_SAM_APDU [13:03:32]CAPDU: 80 0D 01 02 [13:03:32]Write to MH i2c: E2 08 00 2A 34 80 0D 01 02 00 00 00 00 D7 [13:03:32]Write i2c OK [13:03:32]MH_I2C_Read... [13:03:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:32]Read from MH i2c: E2 [13:03:32]MH_I2C_Read... [13:03:32]Read from MH i2c: E2 03 00 [13:03:32]MH_I2C_Read... [13:03:32]Read from MH i2c: E2 03 00 2A 34 00 90 00 D2 [13:03:32]RAPDU: 90 00 [13:03:32]wFMCommunicate OK [13:03:32]wFMCommunicate request_size=253 [13:03:32]MH_SAM_APDU [13:03:32]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 A6 A2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6F 7B 03 00 35 04 06 00 3A 13 CE B0 39 4E [13:03:32]Write to MH i2c: E2 00 01 2B 34 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 A6 A2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6F 7B 03 00 35 04 06 00 3A 13 CE B0 39 4E 00 00 A2 [13:03:32]Write i2c OK [13:03:32]MH_I2C_Read... [13:03:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:32]Read from MH i2c: E2 [13:03:32]MH_I2C_Read... [13:03:32]Read from MH i2c: E2 03 00 [13:03:32]MH_I2C_Read... [13:03:32]Read from MH i2c: E2 03 00 2B 34 00 90 00 D3 [13:03:32]RAPDU: 90 00 [13:03:32]wFMCommunicate OK [13:03:32]wFMCommunicate request_size=4 [13:03:32]MH_SAM_APDU [13:03:32]CAPDU: 80 0D 03 02 [13:03:32]Write to MH i2c: E2 08 00 2C 34 80 0D 03 02 00 00 00 00 DB [13:03:32]Write i2c OK [13:03:32]MH_I2C_Read... [13:03:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:32]Read from MH i2c: E2 [13:03:32]MH_I2C_Read... [13:03:32]Read from MH i2c: E2 0B 00 [13:03:32]MH_I2C_Read... [13:03:32]Read from MH i2c: E2 0B 00 2C 34 00 84 C5 97 E0 AD 80 9B 80 90 00 E4 [13:03:32]RAPDU: 84 C5 97 E0 AD 80 9B 80 90 00 [13:03:32]wFMCommunicate OK [13:03:32]SAM_PROTO_SignData done [13:03:32]FM_MakeSignedData done [13:03:32]CreateOFDProtocolMessage [13:03:32]wFMCommunicate request_size=4 [13:03:32]MH_SAM_APDU [13:03:32]CAPDU: 80 11 00 00 [13:03:32]Write to MH i2c: E2 08 00 2D 34 80 11 00 00 00 00 00 00 DB [13:03:32]Write i2c OK [13:03:32]MH_I2C_Read... [13:03:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:32]Read from MH i2c: E2 [13:03:32]MH_I2C_Read... [13:03:32]Read from MH i2c: E2 17 00 [13:03:32]MH_I2C_Read... [13:03:32]Read from MH i2c: E2 17 00 2D 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 32 [13:03:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:03:32]wFMCommunicate OK [13:03:32]CreateOFDProtocolMessage done [13:03:32]OFDSenderStorePacket 228207 [13:03:32]StoreOFDPacket docnum=228207 [13:03:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 D2 4C 00 01 78 C5 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 A6 A2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6F 7B 03 00 35 04 06 00 3A 13 CE B0 39 4E 84 C5 97 E0 AD 80 9B 80 [13:03:32]CheckFolder [13:03:32]dirname=/storage/ofd_packets [13:03:32]CheckFolder done [13:03:32]ProducePacketName [13:03:32]name=ofd_packets/00228207 [13:03:32]NVStorageSaveData ofd_packets/00228207 [13:03:32]File name is /storage/ofd_packets/00228207 [13:03:32]Write 294 bytes [13:03:32]NVStorageSaveData done [13:03:32]OFDSenderStorePacket done [13:03:32]KKMCreateOFDPacket done [13:03:32]NVStorageSaveData kkm_last_timestamp [13:03:32]File name is /storage/kkm_last_timestamp [13:03:32]Write 4 bytes [13:03:32]NVStorageSaveData done [13:03:32]ExternCall_PrintAddStr [13:03:32]wPrintStart [13:03:32]Write to MH i2c: 01 00 00 2E 34 62 [13:03:32]Write i2c OK [13:03:32]MH_I2C_Read... [13:03:32]Read from MH i2c: 01 [13:03:32]MH_I2C_Read... [13:03:32]Read from MH i2c: 01 07 00 [13:03:32]MH_I2C_Read... [13:03:32]Read from MH i2c: 01 07 00 2E 34 00 00 00 00 00 FF 0F 77 [13:03:32]RasterBufferAndPrint [13:03:32]line Счет N : (1)1964654 [13:03:32]line ИНН: 02508201610067 [13:03:32]line Контрольно-Кассовый Чек [13:03:32]line ПРОДАЖА [13:03:32]line ТРК (МРК, ГНК) : 42 [13:03:32]line Товар: 2710124130 [13:03:32]line SU-92 [13:03:32]line 7.310 * 68.40 [13:03:32]line = 500.00 [13:03:32]line НДС 12% НСП 1% [13:03:32]line > о реализуемом товаре [13:03:32]line ИТОГО: 500.00 [13:03:32]line НСП 1% : 4.42 [13:03:32]line НДС 12% : 53.10 [13:03:32]line Наличными: 0.00 [13:03:32]line Безнал.: 500.00 [13:03:32]line Место: АЗС № 133 "Партнер Нефть" [13:03:32]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:03:32]line СНО: Общий режим [13:03:32]line Чек 171 22.10.2024 13:03 [13:03:32]line Смена: 535 ФФД: 1.0 [13:03:32]line ЗНМ: 0300000091 [13:03:32]line РНМ: 0000000000091685 [13:03:32]line Версия ККМ: 001 [13:03:32]line Платежная система: Mbank [13:03:32]line ФМ: 0000000000871839 [13:03:32]line ФД: 228207 [13:03:32]line ФПД: 63856746445134 [13:03:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130334&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228207&fm=63856746445134&tin=02508201610067®Number=0000000000091685&sum=50000 [13:03:32]written 0, free lines is 4095 [13:03:32]OFD Sender: Processing packet 228207 [packets to send 38, broken 37] [13:03:32]ProducePacketName [13:03:32]name=ofd_packets/00228207 [13:03:32]OFD Sender: To server: pG, [13:03:32]CommunicateWithHost lk.salyk.kg:30040 [13:03:32]ConnectInit lk.salyk.kg [13:03:32]Connected sock=10 [13:03:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 D2 4C 00 01 78 C5 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 A6 A2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6F 7B 03 00 35 04 06 00 3A 13 CE B0 39 4E 84 C5 97 E0 AD 80 9B 80 [13:03:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 76 0D 47 00 41 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6F 7B 03 00 F4 03 04 00 9E 4D 17 67 B6 04 01 00 00 9E 73 45 C2 FF 36 4C 31 [13:03:32]CommunicateWithHost err = 0 [13:03:32]CheckOFDResponse [13:03:32]1017 (14) - 77093643461234 [13:03:32]1041 (16) - 0000000000871839 [13:03:32]1040 (4) - 228207 [13:03:32]1012 (4) - 22.10.2024 07:00 [13:03:32]1206 (1) - 0 [13:03:32]OFD Sender: Remove packet 228207 [13:03:32]ProducePacketName [13:03:32]name=ofd_packets/00228207 [13:03:32]NVStorageDeleteData [13:03:32]Write to MH i2c: 01 00 00 56 34 8A [13:03:32]Write i2c OK [13:03:32]MH_I2C_Read... [13:03:32]Read from MH i2c: 01 [13:03:32]MH_I2C_Read... [13:03:32]Read from MH i2c: 01 07 00 [13:03:32]MH_I2C_Read... [13:03:32]Read from MH i2c: 01 07 00 56 34 00 00 00 00 00 F4 0C 91 [13:03:32]RasterBufferAndPrint [13:03:32]line [13:03:32]line [13:03:32]line [13:03:32]line [13:03:32]line [13:03:32]written 0, free lines is 3324 [13:03:32]MH_Cut [13:03:32]Write to MH i2c: D1 01 00 5D 34 01 63 [13:03:32]Write i2c OK [13:03:32]MH_I2C_Read... [13:03:32]Read from MH i2c: D1 [13:03:32]MH_I2C_Read... [13:03:32]Read from MH i2c: D1 01 00 [13:03:32]MH_I2C_Read... [13:03:32]Read from MH i2c: D1 01 00 5D 34 00 62 [13:03:32]Write to MH i2c: 01 00 00 5E 34 92 [13:03:32]Write i2c OK [13:03:32]MH_I2C_Read... [13:03:33]OFD Sender: No OFD packet to send [13:03:33]*** Cut start [13:03:33]*** Partial cut [13:03:33]*** CUTSNS_PIN = 1 [13:03:33]*** CUTSNS_PIN = 0 [13:03:33]*** Brake cut motor [13:03:34]Read from MH i2c: 01 [13:03:34]MH_I2C_Read... [13:03:34]*** Stop cut motor [13:03:34]Read from MH i2c: 01 07 00 [13:03:34]MH_I2C_Read... [13:03:34]*** Cut end [13:03:34]Read from MH i2c: 01 07 00 5E 34 00 00 00 00 00 FF 0F A7 [13:03:34]process_action close_receipt done [13:03:34]requested_data is exist [13:03:34]produce_requested_data [13:03:34]requested_item fm.sn is exist - process it [13:03:34]wFMCommunicate request_size=4 [13:03:34]MH_SAM_APDU [13:03:34]CAPDU: 80 11 00 00 [13:03:34]Write to MH i2c: E2 08 00 5F 34 80 11 00 00 00 00 00 00 0D [13:03:34]Write i2c OK [13:03:34]MH_I2C_Read... [13:03:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:34]Read from MH i2c: E2 [13:03:34]MH_I2C_Read... [13:03:34]Read from MH i2c: E2 17 00 [13:03:34]MH_I2C_Read... [13:03:34]Read from MH i2c: E2 17 00 5F 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 64 [13:03:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:03:34]wFMCommunicate OK [13:03:34]requested_item fd.num is exist - process it [13:03:34]SAM_PROTO_GetFieldsCounters [13:03:34]wFMCommunicate request_size=4 [13:03:34]MH_SAM_APDU [13:03:34]CAPDU: 80 13 00 00 [13:03:34]Write to MH i2c: E2 08 00 60 34 80 13 00 00 00 00 00 00 10 [13:03:34]Write i2c OK [13:03:34]MH_I2C_Read... [13:03:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:34]Read from MH i2c: E2 [13:03:34]MH_I2C_Read... [13:03:34]Read from MH i2c: E2 62 00 [13:03:34]MH_I2C_Read... [13:03:34]Read from MH i2c: E2 62 00 60 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6F 7B 03 00 0E 04 04 00 17 02 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 40 [13:03:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6F 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:03:34]wFMCommunicate OK [13:03:34]SAM_PROTO_GetFieldsCounters done [13:03:34]requested_item shift.num is exist - process it [13:03:34]requested_item shift.opened is exist - process it [13:03:34]req_shift_opened [13:03:34]FM_GetShiftState [13:03:34]SAM_PROTO_GetShiftState [13:03:34]wFMCommunicate request_size=4 [13:03:34]MH_SAM_APDU [13:03:34]CAPDU: 80 13 01 00 [13:03:34]Write to MH i2c: E2 08 00 61 34 80 13 01 00 00 00 00 00 12 [13:03:34]Write i2c OK [13:03:34]MH_I2C_Read... [13:03:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:34]Read from MH i2c: E2 [13:03:34]MH_I2C_Read... [13:03:34]Read from MH i2c: E2 0E 00 [13:03:34]MH_I2C_Read... [13:03:34]Read from MH i2c: E2 0E 00 61 34 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 D9 [13:03:34]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:03:34]wFMCommunicate OK [13:03:34]SAM_PROTO_GetShiftState done [13:03:34]FM_GetShiftState done [13:03:34]req_shift_opened done [13:03:34]requested_item shift.open_date is exist - process it [13:03:34]req_shift_open_date [13:03:34]req_shift_open_date done [13:03:34]produce_requested_data done [13:03:34]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228207,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:03:34]process_action_free close_receipt [13:03:34]json_value_free [13:03:34]json_value_free done [13:03:34]process_json_proto returns [13:03:34]Send response to host [13:03:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228207,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:03:34]free response buf [13:03:34]execute_script done [13:03:34]execute_script returns [13:03:34]free content buf [13:03:34]Sock 7.Close socket [13:03:34]Sock 7.Thread stoped [13:03:38]OFD Sender: No OFD packet to send [13:03:43]OFD Sender: No OFD packet to send [13:03:48]OFD Sender: No OFD packet to send [13:03:53]OFD Sender: No OFD packet to send [13:03:58]OFD Sender: No OFD packet to send [13:04:03]OFD Sender: No OFD packet to send [13:04:04]accept exits with 9 [13:04:04]New connection [13:04:04]New thread 3067137380 created [13:04:04]Thread 3066994020 joined [13:04:04]Waiting for new connection... [13:04:04] Sock 9.Parse request [13:04:04]Sock 9.Check first char [13:04:04]Sock 9.First char is OK [13:04:04]request: POST /json_proto HTTP/1.0 [13:04:04]Method: POST [13:04:04]URL: /json_proto [13:04:04]Method is POST - this is cgi request [13:04:04]url: /json_proto [13:04:04]query_string will be loaded in cgi processing [13:04:04]execute_cgi json_proto POST (null) [13:04:04]execute_cgi path=json_proto method=POST [13:04:04]POST find Content-Length [13:04:04]Host: 172.17.44.195:8080 [13:04:04]Content-Length: 678 [13:04:04]Content-Type: application/json [13:04:04] [13:04:04]POST finish read [13:04:04]Found Content-Length = 678 [13:04:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964655", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:04:04]execute_script... [13:04: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)1964655", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:04:04]POST & json_proto [13:04:04]process_json_proto [13:04:04]json parsed OK: [13:04:04]protocol is kg_v1.0 [13:04:04]action value=close_receipt [13:04:04]process_action close_receipt [13:04:04]cmd_close_receipt [13:04:04]MH_GetDate [13:04:04]Write to MH i2c: F0 00 00 62 34 85 [13:04:04]Write i2c OK [13:04:04]MH_I2C_Read... [13:04:04]Read from MH i2c: F0 [13:04:04]MH_I2C_Read... [13:04:04]Read from MH i2c: F0 09 00 [13:04:04]MH_I2C_Read... [13:04:04]Read from MH i2c: F0 09 00 62 34 00 C8 A2 17 67 82 C9 CF 66 F6 [13:04:04]GetLastDocTimeStamp 1729602214 [13:04:04]current date 1729602248 [13:04:04]FM_GetShiftState [13:04:04]SAM_PROTO_GetShiftState [13:04:04]wFMCommunicate request_size=4 [13:04:04]MH_SAM_APDU [13:04:04]CAPDU: 80 13 01 00 [13:04:04]Write to MH i2c: E2 08 00 63 34 80 13 01 00 00 00 00 00 14 [13:04:04]Write i2c OK [13:04:04]MH_I2C_Read... [13:04:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:04]Read from MH i2c: E2 [13:04:04]MH_I2C_Read... [13:04:04]Read from MH i2c: E2 0E 00 [13:04:04]MH_I2C_Read... [13:04:04]Read from MH i2c: E2 0E 00 63 34 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 DB [13:04:04]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:04:04]wFMCommunicate OK [13:04:04]SAM_PROTO_GetShiftState done [13:04:04]FM_GetShiftState done [13:04:04]opened in 1729555538 [13:04:04]opened+sec_in_day 1729641938 [13:04:04]quantity*price = 50041 [13:04:04]sum+1 = 50042 [13:04:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 172 22.10.2024 13:04 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228208 ФПД: 139526140975533 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130408&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228208&fm=139526140975533&tin=02508201610067®Number=0000000000091685&sum=50000 [13:04:05]StoreToDocumentArchive [13:04:05]shift 535 fd 228208 [13:04:05]save to /storage/0535/doc_00228208 [13:04:05]save last doc name /storage/0535/doc_00228208 to /storage/kkm_last_doc_name [13:04:05]save OK [13:04:05]Clear old archive folders... [13:04:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:04:05]tlvbuf is 0087EFC0 [13:04:05]SAM_PROTO_ClearQueue [13:04:05]wFMCommunicate request_size=4 [13:04:05]MH_SAM_APDU [13:04:05]CAPDU: 80 09 00 00 [13:04:05]Write to MH i2c: E2 08 00 70 34 80 09 00 00 00 00 00 00 16 [13:04:05]Write i2c OK [13:04:05]MH_I2C_Read... [13:04:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:04:06]Read from MH i2c: E2 [13:04:06]MH_I2C_Read... [13:04:06]Read from MH i2c: E2 03 00 [13:04:06]MH_I2C_Read... [13:04:06]Read from MH i2c: E2 03 00 70 34 00 90 00 18 [13:04:06]RAPDU: 90 00 [13:04:06]wFMCommunicate OK [13:04:06]SAM_PROTO_ClearQueue done [13:04:06]KKMCreateOFDPacket [13:04:06]OFDProtocolAddRootSTLVToBuf [13:04:06]FM_MakeSignedData [13:04:06]FM_MakeSignedData [13:04:06]SAM_PROTO_SignData [13:04:06]wFMCommunicate request_size=4 [13:04:06]MH_SAM_APDU [13:04:06]CAPDU: 80 0D 01 02 [13:04:06]Write to MH i2c: E2 08 00 71 34 80 0D 01 02 00 00 00 00 1E [13:04:06]Write i2c OK [13:04:06]MH_I2C_Read... [13:04:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:04:06]Read from MH i2c: E2 [13:04:06]MH_I2C_Read... [13:04:06]Read from MH i2c: E2 03 00 [13:04:06]MH_I2C_Read... [13:04:06]Read from MH i2c: E2 03 00 71 34 00 90 00 19 [13:04:06]RAPDU: 90 00 [13:04:06]wFMCommunicate OK [13:04:06]wFMCommunicate request_size=255 [13:04:06]MH_SAM_APDU [13: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 C8 A2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 70 7B 03 00 35 04 06 00 7E [13:04:06]Write to MH i2c: E2 02 01 72 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 C8 A2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 70 7B 03 00 35 04 06 00 7E 00 00 CE [13:04:06]Write i2c OK [13:04:06]MH_I2C_Read... [13:04:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:06]Read from MH i2c: E2 [13:04:06]MH_I2C_Read... [13:04:06]Read from MH i2c: E2 03 00 [13:04:06]MH_I2C_Read... [13:04:06]Read from MH i2c: E2 03 00 72 34 00 90 00 1A [13:04:06]RAPDU: 90 00 [13:04:06]wFMCommunicate OK [13:04:06]wFMCommunicate request_size=10 [13:04:06]MH_SAM_APDU [13:04:06]CAPDU: 80 0D 02 02 05 E5 F6 11 D9 AD [13:04:06]Write to MH i2c: E2 0D 00 73 34 80 0D 02 02 05 00 E5 F6 11 D9 AD 00 00 9D [13:04:06]Write i2c OK [13:04:06]MH_I2C_Read... [13:04:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:06]Read from MH i2c: E2 [13:04:06]MH_I2C_Read... [13:04:06]Read from MH i2c: E2 03 00 [13:04:06]MH_I2C_Read... [13:04:06]Read from MH i2c: E2 03 00 73 34 00 90 00 1B [13:04:06]RAPDU: 90 00 [13:04:06]wFMCommunicate OK [13:04:06]wFMCommunicate request_size=4 [13:04:06]MH_SAM_APDU [13:04:06]CAPDU: 80 0D 03 02 [13:04:06]Write to MH i2c: E2 08 00 74 34 80 0D 03 02 00 00 00 00 23 [13:04:06]Write i2c OK [13:04:06]MH_I2C_Read... [13:04:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:04:06]Read from MH i2c: E2 [13:04:06]MH_I2C_Read... [13:04:06]Read from MH i2c: E2 0B 00 [13:04:06]MH_I2C_Read... [13:04:06]Read from MH i2c: E2 0B 00 74 34 00 EA 45 AC 16 BD 71 6E DA 90 00 8B [13:04:06]RAPDU: EA 45 AC 16 BD 71 6E DA 90 00 [13:04:06]wFMCommunicate OK [13:04:06]SAM_PROTO_SignData done [13:04:06]FM_MakeSignedData done [13:04:06]CreateOFDProtocolMessage [13:04:06]wFMCommunicate request_size=4 [13:04:06]MH_SAM_APDU [13:04:06]CAPDU: 80 11 00 00 [13:04:06]Write to MH i2c: E2 08 00 75 34 80 11 00 00 00 00 00 00 23 [13:04:06]Write i2c OK [13:04:06]MH_I2C_Read... [13:04:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:06]Read from MH i2c: E2 [13:04:06]MH_I2C_Read... [13:04:06]Read from MH i2c: E2 17 00 [13:04:06]MH_I2C_Read... [13:04:06]Read from MH i2c: E2 17 00 75 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7A [13:04:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:04:06]wFMCommunicate OK [13:04:06]CreateOFDProtocolMessage done [13:04:06]OFDSenderStorePacket 228208 [13:04:06]StoreOFDPacket docnum=228208 [13:04:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 C1 E9 07 01 30 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 C8 A2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 70 7B 03 00 35 04 06 00 7E E5 F6 11 D9 AD EA 45 AC 16 BD 71 6E DA [13:04:06]CheckFolder [13:04:06]dirname=/storage/ofd_packets [13:04:06]CheckFolder done [13:04:06]ProducePacketName [13:04:06]name=ofd_packets/00228208 [13:04:06]NVStorageSaveData ofd_packets/00228208 [13:04:06]File name is /storage/ofd_packets/00228208 [13:04:06]Write 301 bytes [13:04:06]NVStorageSaveData done [13:04:06]OFDSenderStorePacket done [13:04:06]KKMCreateOFDPacket done [13:04:06]NVStorageSaveData kkm_last_timestamp [13:04:06]File name is /storage/kkm_last_timestamp [13:04:06]Write 4 bytes [13:04:06]NVStorageSaveData done [13:04:06]ExternCall_PrintAddStr [13:04:06]wPrintStart [13:04:06]Write to MH i2c: 01 00 00 76 34 AA [13:04:06]Write i2c OK [13:04:06]MH_I2C_Read... [13:04:06]Read from MH i2c: 01 [13:04:06]MH_I2C_Read... [13:04:06]Read from MH i2c: 01 07 00 [13:04:06]MH_I2C_Read... [13:04:06]Read from MH i2c: 01 07 00 76 34 00 00 00 00 00 FF 0F BF [13:04:06]RasterBufferAndPrint [13:04:06]line Счет N : (1)1964655 [13:04:06]line ИНН: 02508201610067 [13:04:06]line Контрольно-Кассовый Чек [13:04:06]line ПРОДАЖА [13:04:06]line ТРК (МРК, ГНК) : 53 [13:04:06]line Товар: 2710124130 [13:04:06]line Аи-92-К-5 [13:04:06]line 7.480 * 66.90 [13:04:06]line = 500.41 [13:04:06]line НДС 12% НСП 1% [13:04:06]line > о реализуемом товаре [13:04:06]line ОКРУГЛЕНИЕ: -0.41 [13:04:06]line ИТОГО: 500.00 [13:04:06]line Внесено: 500.00 [13:04:06]line СДАЧА: 0.00 [13:04:06]line НСП 1% : 4.43 [13:04:06]line НДС 12% : 53.14 [13:04:06]line Наличными: 500.00 [13:04:06]line Безнал.: 0.00 [13:04:06]line Место: АЗС № 133 "Партнер Нефть" [13:04:06]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:04:06]line СНО: Общий режим [13:04:06]line Чек 172 22.10.2024 13:04 [13:04:06]line Смена: 535 ФФД: 1.0 [13:04:06]line ЗНМ: 0300000091 [13:04:06]line РНМ: 0000000000091685 [13:04:06]line Версия ККМ: 001 [13:04:06]line ФМ: 0000000000871839 [13:04:06]line ФД: 228208 [13:04:06]line ФПД: 139526140975533 [13:04:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130408&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228208&fm=139526140975533&tin=02508201610067®Number=0000000000091685&sum=50000 [13:04:06]OFD Sender: Processing packet 228208 [packets to send 38, broken 37] [13:04:06]ProducePacketName [13:04:06]name=ofd_packets/00228208 [13:04:06]OFD Sender: To server: pG, [13:04:06]CommunicateWithHost lk.salyk.kg:30040 [13:04:06]ConnectInit lk.salyk.kg [13:04:06]written 0, free lines is 4095 [13:04:06]Connected sock=10 [13:04:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 C1 E9 07 01 30 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 C8 A2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 70 7B 03 00 35 04 06 00 7E E5 F6 11 D9 AD EA 45 AC 16 BD 71 6E DA [13:04:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 17 9C 47 00 C8 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 70 7B 03 00 F4 03 04 00 C1 4D 17 67 B6 04 01 00 00 0B F9 18 3C E5 83 92 D8 [13:04:07]CommunicateWithHost err = 0 [13:04:07]CheckOFDResponse [13:04:07]1017 (14) - 77093643461234 [13:04:07]1041 (16) - 0000000000871839 [13:04:07]1040 (4) - 228208 [13:04:07]1012 (4) - 22.10.2024 07:01 [13:04:07]1206 (1) - 0 [13:04:07]OFD Sender: Remove packet 228208 [13:04:07]ProducePacketName [13:04:07]name=ofd_packets/00228208 [13:04:07]NVStorageDeleteData [13:04:07]Write to MH i2c: 01 00 00 A0 34 D4 [13:04:07]Write i2c OK [13:04:07]MH_I2C_Read... [13:04:07]Read from MH i2c: 01 [13:04:07]MH_I2C_Read... [13:04:07]Read from MH i2c: 01 07 00 [13:04:07]MH_I2C_Read... [13:04:07]Read from MH i2c: 01 07 00 A0 34 00 00 00 00 00 BA 0C A1 [13:04:07]RasterBufferAndPrint [13:04:07]line [13:04:07]line [13:04:07]line [13:04:07]line [13:04:07]line [13:04:07]written 0, free lines is 3263 [13:04:07]MH_Cut [13:04:07]Write to MH i2c: D1 01 00 A7 34 01 AD [13:04:07]Write i2c OK [13:04:07]MH_I2C_Read... [13:04:07]Read from MH i2c: D1 [13:04:07]MH_I2C_Read... [13:04:07]Read from MH i2c: D1 01 00 [13:04:07]MH_I2C_Read... [13:04:07]Read from MH i2c: D1 01 00 A7 34 00 AC [13:04:07]Write to MH i2c: 01 00 00 A8 34 DC [13:04:07]Write i2c OK [13:04:07]MH_I2C_Read... [13:04:07]OFD Sender: No OFD packet to send [13:04:08]*** Cut start [13:04:08]*** Partial cut [13:04:08]*** CUTSNS_PIN = 1 [13:04:08]*** CUTSNS_PIN = 0 [13:04:08]*** Brake cut motor [13:04:08]Read from MH i2c: 01 [13:04:08]MH_I2C_Read... [13:04:08]*** Stop cut motor [13:04:08]*** Cut end [13:04:08]Read from MH i2c: 01 07 00 [13:04:08]MH_I2C_Read... [13:04:08]Read from MH i2c: 01 07 00 A8 34 00 00 00 00 00 FF 0F F1 [13:04:08]process_action close_receipt done [13:04:08]requested_data is exist [13:04:08]produce_requested_data [13:04:08]requested_item fm.sn is exist - process it [13:04:08]wFMCommunicate request_size=4 [13:04:08]MH_SAM_APDU [13:04:08]CAPDU: 80 11 00 00 [13:04:08]Write to MH i2c: E2 08 00 A9 34 80 11 00 00 00 00 00 00 57 [13:04:08]Write i2c OK [13:04:08]MH_I2C_Read... [13:04:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:08]Read from MH i2c: E2 [13:04:08]MH_I2C_Read... [13:04:08]Read from MH i2c: E2 17 00 [13:04:08]MH_I2C_Read... [13:04:08]Read from MH i2c: E2 17 00 A9 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AE [13:04:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:04:08]wFMCommunicate OK [13:04:08]requested_item fd.num is exist - process it [13:04:08]SAM_PROTO_GetFieldsCounters [13:04:08]wFMCommunicate request_size=4 [13:04:08]MH_SAM_APDU [13:04:08]CAPDU: 80 13 00 00 [13:04:08]Write to MH i2c: E2 08 00 AA 34 80 13 00 00 00 00 00 00 5A [13:04:08]Write i2c OK [13:04:08]MH_I2C_Read... [13:04:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:08]Read from MH i2c: E2 [13:04:08]MH_I2C_Read... [13:04:08]Read from MH i2c: E2 62 00 [13:04:08]MH_I2C_Read... [13:04:08]Read from MH i2c: E2 62 00 AA 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 70 7B 03 00 0E 04 04 00 17 02 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 8E [13:04:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 70 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:04:08]wFMCommunicate OK [13:04:08]SAM_PROTO_GetFieldsCounters done [13:04:08]requested_item shift.num is exist - process it [13:04:08]requested_item shift.opened is exist - process it [13:04:08]req_shift_opened [13:04:08]FM_GetShiftState [13:04:08]SAM_PROTO_GetShiftState [13:04:08]wFMCommunicate request_size=4 [13:04:08]MH_SAM_APDU [13:04:08]CAPDU: 80 13 01 00 [13:04:08]Write to MH i2c: E2 08 00 AB 34 80 13 01 00 00 00 00 00 5C [13:04:08]Write i2c OK [13:04:08]MH_I2C_Read... [13:04:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:08]Read from MH i2c: E2 [13:04:08]MH_I2C_Read... [13:04:08]Read from MH i2c: E2 0E 00 [13:04:08]MH_I2C_Read... [13:04:08]Read from MH i2c: E2 0E 00 AB 34 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 23 [13:04:08]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:04:08]wFMCommunicate OK [13:04:08]SAM_PROTO_GetShiftState done [13:04:08]FM_GetShiftState done [13:04:08]req_shift_opened done [13:04:08]requested_item shift.open_date is exist - process it [13:04:08]req_shift_open_date [13:04:08]req_shift_open_date done [13:04:08]produce_requested_data done [13:04:08]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228208,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:04:08]process_action_free close_receipt [13:04:08]json_value_free [13:04:08]json_value_free done [13:04:08]process_json_proto returns [13:04:08]Send response to host [13:04:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228208,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:04:08]free response buf [13:04:08]execute_script done [13:04:08]execute_script returns [13:04:08]free content buf [13:04:08]Sock 9.Close socket [13:04:08]Sock 9.Thread stoped [13:04:12]OFD Sender: No OFD packet to send [13:04:17]OFD Sender: No OFD packet to send [13:04:19]accept exits with 7 [13:04:19]New connection [13:04:19]New thread 3066994020 created [13:04:19]Thread 3067137380 joined [13:04:19]Waiting for new connection... [13:04:19] Sock 7.Parse request [13:04:19]Sock 7.Check first char [13:04:19]Sock 7.First char is OK [13:04:19]request: POST /json_proto HTTP/1.0 [13:04:19]Method: POST [13:04:19]URL: /json_proto [13:04:19]Method is POST - this is cgi request [13:04:19]url: /json_proto [13:04:19]query_string will be loaded in cgi processing [13:04:19]execute_cgi json_proto POST (null) [13:04:19]execute_cgi path=json_proto method=POST [13:04:19]POST find Content-Length [13:04:19]Host: 172.17.44.195:8080 [13:04:19]Content-Length: 678 [13:04:19]Content-Type: application/json [13:04:19] [13:04:19]POST finish read [13:04:19]Found Content-Length = 678 [13:04:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "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" ] } } [13:04:19]execute_script... [13: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)1964656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "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" ] } } [13:04:19]POST & json_proto [13:04:19]process_json_proto [13:04:19]json parsed OK: [13:04:19]protocol is kg_v1.0 [13:04:19]action value=close_receipt [13:04:19]process_action close_receipt [13:04:19]cmd_close_receipt [13:04:19]MH_GetDate [13:04:19]Write to MH i2c: F0 00 00 AC 34 CF [13:04:19]Write i2c OK [13:04:19]MH_I2C_Read... [13:04:19]Read from MH i2c: F0 [13:04:19]MH_I2C_Read... [13:04:19]Read from MH i2c: F0 09 00 [13:04:19]MH_I2C_Read... [13:04:19]Read from MH i2c: F0 09 00 AC 34 00 D8 A2 17 67 82 C9 CF 66 50 [13:04:19]GetLastDocTimeStamp 1729602248 [13:04:19]current date 1729602264 [13:04:19]FM_GetShiftState [13:04:19]SAM_PROTO_GetShiftState [13:04:19]wFMCommunicate request_size=4 [13:04:19]MH_SAM_APDU [13:04:19]CAPDU: 80 13 01 00 [13:04:19]Write to MH i2c: E2 08 00 AD 34 80 13 01 00 00 00 00 00 5E [13:04:19]Write i2c OK [13:04:19]MH_I2C_Read... [13:04:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:19]Read from MH i2c: E2 [13:04:19]MH_I2C_Read... [13:04:19]Read from MH i2c: E2 0E 00 [13:04:19]MH_I2C_Read... [13:04:19]Read from MH i2c: E2 0E 00 AD 34 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 25 [13:04:19]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:04:19]wFMCommunicate OK [13:04:19]SAM_PROTO_GetShiftState done [13:04:19]FM_GetShiftState done [13:04:19]opened in 1729555538 [13:04:19]opened+sec_in_day 1729641938 [13:04:19]quantity*price = 30038 [13:04:19]sum+1 = 30039 [13:04:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 173 22.10.2024 13:04 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228209 ФПД: 103984304655734 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130424&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228209&fm=103984304655734&tin=02508201610067®Number=0000000000091685&sum=30000 [13:04:21]StoreToDocumentArchive [13:04:21]shift 535 fd 228209 [13:04:21]save to /storage/0535/doc_00228209 [13:04:21]save last doc name /storage/0535/doc_00228209 to /storage/kkm_last_doc_name [13:04:21]save OK [13:04:21]Clear old archive folders... [13:04:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:04:21]tlvbuf is 00875340 [13:04:21]SAM_PROTO_ClearQueue [13:04:21]wFMCommunicate request_size=4 [13:04:21]MH_SAM_APDU [13:04:21]CAPDU: 80 09 00 00 [13:04:21]Write to MH i2c: E2 08 00 BA 34 80 09 00 00 00 00 00 00 60 [13:04:21]Write i2c OK [13:04:21]MH_I2C_Read... [13:04:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:04:21]Read from MH i2c: E2 [13:04:21]MH_I2C_Read... [13:04:21]Read from MH i2c: E2 03 00 [13:04:21]MH_I2C_Read... [13:04:21]Read from MH i2c: E2 03 00 BA 34 00 90 00 62 [13:04:21]RAPDU: 90 00 [13:04:21]wFMCommunicate OK [13:04:21]SAM_PROTO_ClearQueue done [13:04:21]KKMCreateOFDPacket [13:04:21]OFDProtocolAddRootSTLVToBuf [13:04:21]FM_MakeSignedData [13:04:21]FM_MakeSignedData [13:04:21]SAM_PROTO_SignData [13:04:21]wFMCommunicate request_size=4 [13:04:21]MH_SAM_APDU [13:04:21]CAPDU: 80 0D 01 02 [13:04:21]Write to MH i2c: E2 08 00 BB 34 80 0D 01 02 00 00 00 00 68 [13:04:21]Write i2c OK [13:04:21]MH_I2C_Read... [13:04:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:04:21]Read from MH i2c: E2 [13:04:21]MH_I2C_Read... [13:04:21]Read from MH i2c: E2 03 00 [13:04:21]MH_I2C_Read... [13:04:21]Read from MH i2c: E2 03 00 BB 34 00 90 00 63 [13:04:21]RAPDU: 90 00 [13:04:21]wFMCommunicate OK [13:04:21]wFMCommunicate request_size=255 [13:04:21]MH_SAM_APDU [13:04: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 AD 00 00 00 F4 03 04 00 D8 A2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 71 7B 03 00 35 04 06 00 5E [13:04:21]Write to MH i2c: E2 02 01 BC 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 AD 00 00 00 F4 03 04 00 D8 A2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 71 7B 03 00 35 04 06 00 5E 00 00 FE [13:04:21]Write i2c OK [13:04:21]MH_I2C_Read... [13:04:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:21]Read from MH i2c: E2 [13:04:21]MH_I2C_Read... [13:04:21]Read from MH i2c: E2 03 00 [13:04:21]MH_I2C_Read... [13:04:21]Read from MH i2c: E2 03 00 BC 34 00 90 00 64 [13:04:21]RAPDU: 90 00 [13:04:21]wFMCommunicate OK [13:04:21]wFMCommunicate request_size=10 [13:04:21]MH_SAM_APDU [13:04:21]CAPDU: 80 0D 02 02 05 92 BB 8A 8D 76 [13:04:21]Write to MH i2c: E2 0D 00 BD 34 80 0D 02 02 05 00 92 BB 8A 8D 76 00 00 4F [13:04:21]Write i2c OK [13:04:21]MH_I2C_Read... [13:04:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:21]Read from MH i2c: E2 [13:04:21]MH_I2C_Read... [13:04:21]Read from MH i2c: E2 03 00 [13:04:21]MH_I2C_Read... [13:04:21]Read from MH i2c: E2 03 00 BD 34 00 90 00 65 [13:04:21]RAPDU: 90 00 [13:04:21]wFMCommunicate OK [13:04:21]wFMCommunicate request_size=4 [13:04:21]MH_SAM_APDU [13:04:21]CAPDU: 80 0D 03 02 [13:04:21]Write to MH i2c: E2 08 00 BE 34 80 0D 03 02 00 00 00 00 6D [13:04:21]Write i2c OK [13:04:21]MH_I2C_Read... [13:04:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:04:21]Read from MH i2c: E2 [13:04:21]MH_I2C_Read... [13:04:21]Read from MH i2c: E2 0B 00 [13:04:21]MH_I2C_Read... [13:04:21]Read from MH i2c: E2 0B 00 BE 34 00 2F 03 11 3A 98 9D 4D 4E 90 00 BB [13:04:21]RAPDU: 2F 03 11 3A 98 9D 4D 4E 90 00 [13:04:21]wFMCommunicate OK [13:04:21]SAM_PROTO_SignData done [13:04:21]FM_MakeSignedData done [13:04:21]CreateOFDProtocolMessage [13:04:21]wFMCommunicate request_size=4 [13:04:21]MH_SAM_APDU [13:04:21]CAPDU: 80 11 00 00 [13:04:21]Write to MH i2c: E2 08 00 BF 34 80 11 00 00 00 00 00 00 6D [13:04:21]Write i2c OK [13:04:21]MH_I2C_Read... [13:04:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:21]Read from MH i2c: E2 [13:04:21]MH_I2C_Read... [13:04:21]Read from MH i2c: E2 17 00 [13:04:21]MH_I2C_Read... [13:04:21]Read from MH i2c: E2 17 00 BF 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C4 [13:04:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:04:21]wFMCommunicate OK [13:04:21]CreateOFDProtocolMessage done [13:04:21]OFDSenderStorePacket 228209 [13:04:21]StoreOFDPacket docnum=228209 [13:04:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 0F 48 07 01 A0 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 AD 00 00 00 F4 03 04 00 D8 A2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 71 7B 03 00 35 04 06 00 5E 92 BB 8A 8D 76 2F 03 11 3A 98 9D 4D 4E [13:04:21]CheckFolder [13:04:21]dirname=/storage/ofd_packets [13:04:21]CheckFolder done [13:04:21]ProducePacketName [13:04:21]name=ofd_packets/00228209 [13:04:21]NVStorageSaveData ofd_packets/00228209 [13:04:21]File name is /storage/ofd_packets/00228209 [13:04:21]Write 301 bytes [13:04:21]NVStorageSaveData done [13:04:21]OFDSenderStorePacket done [13:04:21]KKMCreateOFDPacket done [13:04:21]NVStorageSaveData kkm_last_timestamp [13:04:21]File name is /storage/kkm_last_timestamp [13:04:21]Write 4 bytes [13:04:21]NVStorageSaveData done [13:04:21]ExternCall_PrintAddStr [13:04:21]wPrintStart [13:04:21]Write to MH i2c: 01 00 00 C0 34 F4 [13:04:21]Write i2c OK [13:04:21]MH_I2C_Read... [13:04:21]Read from MH i2c: 01 [13:04:21]MH_I2C_Read... [13:04:21]Read from MH i2c: 01 07 00 [13:04:21]MH_I2C_Read... [13:04:21]Read from MH i2c: 01 07 00 C0 34 00 00 00 00 00 FF 0F 09 [13:04:21]RasterBufferAndPrint [13:04:21]line Счет N : (1)1964656 [13:04:21]line ИНН: 02508201610067 [13:04:21]line Контрольно-Кассовый Чек [13:04:21]line ПРОДАЖА [13:04:21]line ТРК (МРК, ГНК) : 33 [13:04:21]line Товар: 2710124130 [13:04:21]line Аи-92-К-5 [13:04:21]line 4.490 * 66.90 [13:04:21]line = 300.38 [13:04:21]line НДС 12% НСП 1% [13:04:21]line > о реализуемом товаре [13:04:21]line ОКРУГЛЕНИЕ: -0.38 [13:04:21]line ИТОГО: 300.00 [13:04:21]line Внесено: 300.00 [13:04:21]line СДАЧА: 0.00 [13:04:21]line НСП 1% : 2.66 [13:04:21]line НДС 12% : 31.90 [13:04:21]line Наличными: 300.00 [13:04:21]line Безнал.: 0.00 [13:04:21]line Место: АЗС № 133 "Партнер Нефть" [13:04:21]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:04:21]line СНО: Общий режим [13:04:21]line Чек 173 22.10.2024 13:04 [13:04:21]line Смена: 535 ФФД: 1.0 [13:04:21]line ЗНМ: 0300000091 [13:04:21]line РНМ: 0000000000091685 [13:04:21]line Версия ККМ: 001 [13:04:21]line ФМ: 0000000000871839 [13:04:21]line ФД: 228209 [13:04:21]line ФПД: 103984304655734 [13:04:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130424&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228209&fm=103984304655734&tin=02508201610067®Number=0000000000091685&sum=30000 [13:04:21]OFD Sender: Processing packet 228209 [packets to send 38, broken 37] [13:04:21]ProducePacketName [13:04:21]name=ofd_packets/00228209 [13:04:21]OFD Sender: To server: pG, [13:04:21]CommunicateWithHost lk.salyk.kg:30040 [13:04:21]ConnectInit lk.salyk.kg [13:04:21]written 0, free lines is 4095 [13:04:22]Connected sock=10 [13:04:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 0F 48 07 01 A0 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 AD 00 00 00 F4 03 04 00 D8 A2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 71 7B 03 00 35 04 06 00 5E 92 BB 8A 8D 76 2F 03 11 3A 98 9D 4D 4E [13:04:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 0A 17 47 00 28 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 71 7B 03 00 F4 03 04 00 D0 4D 17 67 B6 04 01 00 00 11 4F FB 19 5F 9D 89 DC [13:04:22]CommunicateWithHost err = 0 [13:04:22]CheckOFDResponse [13:04:22]1017 (14) - 77093643461234 [13:04:22]1041 (16) - 0000000000871839 [13:04:22]1040 (4) - 228209 [13:04:22]1012 (4) - 22.10.2024 07:01 [13:04:22]1206 (1) - 0 [13:04:22]OFD Sender: Remove packet 228209 [13:04:22]ProducePacketName [13:04:22]name=ofd_packets/00228209 [13:04:22]NVStorageDeleteData [13:04:22]Write to MH i2c: 01 00 00 EA 34 1E [13:04:22]Write i2c OK [13:04:22]MH_I2C_Read... [13:04:22]Read from MH i2c: 01 [13:04:22]MH_I2C_Read... [13:04:22]Read from MH i2c: 01 07 00 [13:04:22]MH_I2C_Read... [13:04:22]Read from MH i2c: 01 07 00 EA 34 00 00 00 00 00 C8 0C F9 [13:04:22]RasterBufferAndPrint [13:04:22]line [13:04:22]line [13:04:22]line [13:04:22]line [13:04:22]line [13:04:22]written 0, free lines is 3276 [13:04:22]MH_Cut [13:04:22]Write to MH i2c: D1 01 00 F1 34 01 F7 [13:04:22]Write i2c OK [13:04:22]MH_I2C_Read... [13:04:22]Read from MH i2c: D1 [13:04:22]MH_I2C_Read... [13:04:22]Read from MH i2c: D1 01 00 [13:04:22]MH_I2C_Read... [13:04:22]Read from MH i2c: D1 01 00 F1 34 00 F6 [13:04:22]Write to MH i2c: 01 00 00 F2 34 26 [13:04:22]Write i2c OK [13:04:22]MH_I2C_Read... [13:04:22]OFD Sender: No OFD packet to send [13:04:23]*** Cut start [13:04:23]*** Partial cut [13:04:23]*** CUTSNS_PIN = 1 [13:04:23]*** CUTSNS_PIN = 0 [13:04:23]*** Brake cut motor [13:04:23]Read from MH i2c: 01 [13:04:23]MH_I2C_Read... [13:04:23]*** Stop cut motor [13:04:23]*** Cut end [13:04:23]Read from MH i2c: 01 07 00 [13:04:23]MH_I2C_Read... [13:04:23]Read from MH i2c: 01 07 00 F2 34 00 00 00 00 00 FF 0F 3B [13:04:23]process_action close_receipt done [13:04:23]requested_data is exist [13:04:23]produce_requested_data [13:04:23]requested_item fm.sn is exist - process it [13:04:23]wFMCommunicate request_size=4 [13:04:23]MH_SAM_APDU [13:04:23]CAPDU: 80 11 00 00 [13:04:23]Write to MH i2c: E2 08 00 F3 34 80 11 00 00 00 00 00 00 A1 [13:04:23]Write i2c OK [13:04:23]MH_I2C_Read... [13:04:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:23]Read from MH i2c: E2 [13:04:23]MH_I2C_Read... [13:04:23]Read from MH i2c: E2 17 00 [13:04:23]MH_I2C_Read... [13:04:23]Read from MH i2c: E2 17 00 F3 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F8 [13:04:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:04:23]wFMCommunicate OK [13:04:23]requested_item fd.num is exist - process it [13:04:23]SAM_PROTO_GetFieldsCounters [13:04:23]wFMCommunicate request_size=4 [13:04:23]MH_SAM_APDU [13:04:23]CAPDU: 80 13 00 00 [13:04:23]Write to MH i2c: E2 08 00 F4 34 80 13 00 00 00 00 00 00 A4 [13:04:23]Write i2c OK [13:04:23]MH_I2C_Read... [13:04:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:24]Read from MH i2c: E2 [13:04:24]MH_I2C_Read... [13:04:24]Read from MH i2c: E2 62 00 [13:04:24]MH_I2C_Read... [13:04:24]Read from MH i2c: E2 62 00 F4 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 71 7B 03 00 0E 04 04 00 17 02 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 DC [13:04:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 71 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:04:24]wFMCommunicate OK [13:04:24]SAM_PROTO_GetFieldsCounters done [13:04:24]requested_item shift.num is exist - process it [13:04:24]requested_item shift.opened is exist - process it [13:04:24]req_shift_opened [13:04:24]FM_GetShiftState [13:04:24]SAM_PROTO_GetShiftState [13:04:24]wFMCommunicate request_size=4 [13:04:24]MH_SAM_APDU [13:04:24]CAPDU: 80 13 01 00 [13:04:24]Write to MH i2c: E2 08 00 F5 34 80 13 01 00 00 00 00 00 A6 [13:04:24]Write i2c OK [13:04:24]MH_I2C_Read... [13:04:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:24]Read from MH i2c: E2 [13:04:24]MH_I2C_Read... [13:04:24]Read from MH i2c: E2 0E 00 [13:04:24]MH_I2C_Read... [13:04:24]Read from MH i2c: E2 0E 00 F5 34 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 6D [13:04:24]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:04:24]wFMCommunicate OK [13:04:24]SAM_PROTO_GetShiftState done [13:04:24]FM_GetShiftState done [13:04:24]req_shift_opened done [13:04:24]requested_item shift.open_date is exist - process it [13:04:24]req_shift_open_date [13:04:24]req_shift_open_date done [13:04:24]produce_requested_data done [13:04:24]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228209,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:04:24]process_action_free close_receipt [13:04:24]json_value_free [13:04:24]json_value_free done [13:04:24]process_json_proto returns [13:04:24]Send response to host [13:04:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228209,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:04:24]free response buf [13:04:24]execute_script done [13:04:24]execute_script returns [13:04:24]free content buf [13:04:24]Sock 7.Close socket [13:04:24]Sock 7.Thread stoped [13:04:27]OFD Sender: No OFD packet to send [13:04:32]OFD Sender: No OFD packet to send [13:04:37]OFD Sender: No OFD packet to send [13:04:42]OFD Sender: No OFD packet to send [13:04:47]OFD Sender: No OFD packet to send [13:04:52]OFD Sender: No OFD packet to send [13:04:57]OFD Sender: No OFD packet to send [13:05:02]OFD Sender: No OFD packet to send [13:05:07]OFD Sender: No OFD packet to send [13:05:12]OFD Sender: No OFD packet to send [13:05:17]OFD Sender: No OFD packet to send [13:05:22]OFD Sender: No OFD packet to send [13:05:27]OFD Sender: No OFD packet to send [13:05:32]OFD Sender: No OFD packet to send [13:05:37]OFD Sender: No OFD packet to send [13:05:42]OFD Sender: No OFD packet to send [13:05:47]OFD Sender: No OFD packet to send [13:05:52]OFD Sender: No OFD packet to send [13:05:57]OFD Sender: No OFD packet to send [13:06:02]OFD Sender: No OFD packet to send [13:06:06]accept exits with 9 [13:06:06]New connection [13:06:06]New thread 3067137380 created [13:06:06]Thread 3066994020 joined [13:06:06]Waiting for new connection... [13:06:06] Sock 9.Parse request [13:06:06]Sock 9.Check first char [13:06:06]Sock 9.First char is OK [13:06:06]request: POST /json_proto HTTP/1.0 [13:06:06]Method: POST [13:06:06]URL: /json_proto [13:06:06]Method is POST - this is cgi request [13:06:06]url: /json_proto [13:06:06]query_string will be loaded in cgi processing [13:06:06]execute_cgi json_proto POST (null) [13:06:06]execute_cgi path=json_proto method=POST [13:06:06]POST find Content-Length [13:06:06]Host: 172.17.44.195:8080 [13:06:06]Content-Length: 678 [13:06:06]Content-Type: application/json [13:06:06] [13:06:06]POST finish read [13:06:06]Found Content-Length = 678 [13:06:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964657", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:06:06]execute_script... [13:06:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964657", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:06:06]POST & json_proto [13:06:06]process_json_proto [13:06:06]json parsed OK: [13:06:06]protocol is kg_v1.0 [13:06:06]action value=close_receipt [13:06:06]process_action close_receipt [13:06:06]cmd_close_receipt [13:06:06]MH_GetDate [13:06:06]Write to MH i2c: F0 00 00 F6 34 19 [13:06:06]Write i2c OK [13:06:06]MH_I2C_Read... [13:06:06]Read from MH i2c: F0 [13:06:06]MH_I2C_Read... [13:06:06]Read from MH i2c: F0 09 00 [13:06:06]MH_I2C_Read... [13:06:06]Read from MH i2c: F0 09 00 F6 34 00 42 A3 17 67 82 C9 CF 66 05 [13:06:06]GetLastDocTimeStamp 1729602264 [13:06:06]current date 1729602370 [13:06:06]FM_GetShiftState [13:06:06]SAM_PROTO_GetShiftState [13:06:06]wFMCommunicate request_size=4 [13:06:06]MH_SAM_APDU [13:06:06]CAPDU: 80 13 01 00 [13:06:06]Write to MH i2c: E2 08 00 F7 34 80 13 01 00 00 00 00 00 A8 [13:06:06]Write i2c OK [13:06:06]MH_I2C_Read... [13:06:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:06]Read from MH i2c: E2 [13:06:06]MH_I2C_Read... [13:06:06]Read from MH i2c: E2 0E 00 [13:06:06]MH_I2C_Read... [13:06:06]Read from MH i2c: E2 0E 00 F7 34 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 6F [13:06:06]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:06:06]wFMCommunicate OK [13:06:06]SAM_PROTO_GetShiftState done [13:06:06]FM_GetShiftState done [13:06:06]opened in 1729555538 [13:06:06]opened+sec_in_day 1729641938 [13:06:06]quantity*price = 50041 [13:06:06]sum+1 = 50042 [13:06:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 174 22.10.2024 13:06 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228210 ФПД: 68643269720757 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130610&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228210&fm=68643269720757&tin=02508201610067®Number=0000000000091685&sum=50000 [13:06:07]StoreToDocumentArchive [13:06:07]shift 535 fd 228210 [13:06:07]save to /storage/0535/doc_00228210 [13:06:07]save last doc name /storage/0535/doc_00228210 to /storage/kkm_last_doc_name [13:06:07]save OK [13:06:07]Clear old archive folders... [13:06:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:06:07]tlvbuf is 00AA0AA0 [13:06:07]SAM_PROTO_ClearQueue [13:06:07]wFMCommunicate request_size=4 [13:06:07]MH_SAM_APDU [13:06:07]CAPDU: 80 09 00 00 [13:06:07]Write to MH i2c: E2 08 00 04 35 80 09 00 00 00 00 00 00 AB [13:06:07]Write i2c OK [13:06:07]MH_I2C_Read... [13:06:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:06:07]Read from MH i2c: E2 [13:06:07]MH_I2C_Read... [13:06:07]Read from MH i2c: E2 03 00 [13:06:07]MH_I2C_Read... [13:06:07]Read from MH i2c: E2 03 00 04 35 00 90 00 AD [13:06:07]RAPDU: 90 00 [13:06:07]wFMCommunicate OK [13:06:07]SAM_PROTO_ClearQueue done [13:06:07]KKMCreateOFDPacket [13:06:07]OFDProtocolAddRootSTLVToBuf [13:06:07]FM_MakeSignedData [13:06:07]FM_MakeSignedData [13:06:07]SAM_PROTO_SignData [13:06:07]wFMCommunicate request_size=4 [13:06:07]MH_SAM_APDU [13:06:07]CAPDU: 80 0D 01 02 [13:06:07]Write to MH i2c: E2 08 00 05 35 80 0D 01 02 00 00 00 00 B3 [13:06:07]Write i2c OK [13:06:07]MH_I2C_Read... [13:06:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:06:07]Read from MH i2c: E2 [13:06:07]MH_I2C_Read... [13:06:07]Read from MH i2c: E2 03 00 [13:06:07]MH_I2C_Read... [13:06:07]Read from MH i2c: E2 03 00 05 35 00 90 00 AE [13:06:07]RAPDU: 90 00 [13:06:07]wFMCommunicate OK [13:06:07]wFMCommunicate request_size=255 [13:06:07]MH_SAM_APDU [13:06: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 42 A3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 72 7B 03 00 35 04 06 00 3E [13:06:07]Write to MH i2c: E2 02 01 06 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 42 A3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 72 7B 03 00 35 04 06 00 3E 00 00 A2 [13:06:07]Write i2c OK [13:06:07]MH_I2C_Read... [13:06:07]OFD Sender: No OFD packet to send [13:06:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:08]Read from MH i2c: E2 [13:06:08]MH_I2C_Read... [13:06:08]Read from MH i2c: E2 03 00 [13:06:08]MH_I2C_Read... [13:06:08]Read from MH i2c: E2 03 00 06 35 00 90 00 AF [13:06:08]RAPDU: 90 00 [13:06:08]wFMCommunicate OK [13:06:08]wFMCommunicate request_size=10 [13:06:08]MH_SAM_APDU [13:06:08]CAPDU: 80 0D 02 02 05 6E 41 B5 3A B5 [13:06:08]Write to MH i2c: E2 0D 00 07 35 80 0D 02 02 05 00 6E 41 B5 3A B5 00 00 13 [13:06:08]Write i2c OK [13:06:08]MH_I2C_Read... [13:06:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:08]Read from MH i2c: E2 [13:06:08]MH_I2C_Read... [13:06:08]Read from MH i2c: E2 03 00 [13:06:08]MH_I2C_Read... [13:06:08]Read from MH i2c: E2 03 00 07 35 00 90 00 B0 [13:06:08]RAPDU: 90 00 [13:06:08]wFMCommunicate OK [13:06:08]wFMCommunicate request_size=4 [13:06:08]MH_SAM_APDU [13:06:08]CAPDU: 80 0D 03 02 [13:06:08]Write to MH i2c: E2 08 00 08 35 80 0D 03 02 00 00 00 00 B8 [13:06:08]Write i2c OK [13:06:08]MH_I2C_Read... [13:06:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:06:08]Read from MH i2c: E2 [13:06:08]MH_I2C_Read... [13:06:08]Read from MH i2c: E2 0B 00 [13:06:08]MH_I2C_Read... [13:06:08]Read from MH i2c: E2 0B 00 08 35 00 9E 59 8B CD 6D B1 A8 87 90 00 55 [13:06:08]RAPDU: 9E 59 8B CD 6D B1 A8 87 90 00 [13:06:08]wFMCommunicate OK [13:06:08]SAM_PROTO_SignData done [13:06:08]FM_MakeSignedData done [13:06:08]CreateOFDProtocolMessage [13:06:08]wFMCommunicate request_size=4 [13:06:08]MH_SAM_APDU [13:06:08]CAPDU: 80 11 00 00 [13:06:08]Write to MH i2c: E2 08 00 09 35 80 11 00 00 00 00 00 00 B8 [13:06:08]Write i2c OK [13:06:08]MH_I2C_Read... [13:06:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:08]Read from MH i2c: E2 [13:06:08]MH_I2C_Read... [13:06:08]Read from MH i2c: E2 17 00 [13:06:08]MH_I2C_Read... [13:06:08]Read from MH i2c: E2 17 00 09 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0F [13:06:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:06:08]wFMCommunicate OK [13:06:08]CreateOFDProtocolMessage done [13:06:08]OFDSenderStorePacket 228210 [13:06:08]StoreOFDPacket docnum=228210 [13:06:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 4F EA 07 01 1E B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 42 A3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 72 7B 03 00 35 04 06 00 3E 6E 41 B5 3A B5 9E 59 8B CD 6D B1 A8 87 [13:06:08]CheckFolder [13:06:08]dirname=/storage/ofd_packets [13:06:08]CheckFolder done [13:06:08]ProducePacketName [13:06:08]name=ofd_packets/00228210 [13:06:08]NVStorageSaveData ofd_packets/00228210 [13:06:08]File name is /storage/ofd_packets/00228210 [13:06:08]Write 301 bytes [13:06:08]NVStorageSaveData done [13:06:08]OFDSenderStorePacket done [13:06:08]KKMCreateOFDPacket done [13:06:08]NVStorageSaveData kkm_last_timestamp [13:06:08]File name is /storage/kkm_last_timestamp [13:06:08]Write 4 bytes [13:06:08]NVStorageSaveData done [13:06:08]ExternCall_PrintAddStr [13:06:08]wPrintStart [13:06:08]Write to MH i2c: 01 00 00 0A 35 3F [13:06:08]Write i2c OK [13:06:08]MH_I2C_Read... [13:06:08]Read from MH i2c: 01 [13:06:08]MH_I2C_Read... [13:06:08]Read from MH i2c: 01 07 00 [13:06:08]MH_I2C_Read... [13:06:08]Read from MH i2c: 01 07 00 0A 35 00 00 00 00 00 FF 0F 54 [13:06:08]RasterBufferAndPrint [13:06:08]line Счет N : (1)1964657 [13:06:08]line ИНН: 02508201610067 [13:06:08]line Контрольно-Кассовый Чек [13:06:08]line ПРОДАЖА [13:06:08]line ТРК (МРК, ГНК) : 53 [13:06:08]line Товар: 2710124130 [13:06:08]line Аи-92-К-5 [13:06:08]line 7.480 * 66.90 [13:06:08]line = 500.41 [13:06:08]line НДС 12% НСП 1% [13:06:08]line > о реализуемом товаре [13:06:08]line ОКРУГЛЕНИЕ: -0.41 [13:06:08]line ИТОГО: 500.00 [13:06:08]line Внесено: 500.00 [13:06:08]line СДАЧА: 0.00 [13:06:08]line НСП 1% : 4.43 [13:06:08]line НДС 12% : 53.14 [13:06:08]line Наличными: 500.00 [13:06:08]line Безнал.: 0.00 [13:06:08]line Место: АЗС № 133 "Партнер Нефть" [13:06:08]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:06:08]line СНО: Общий режим [13:06:08]line Чек 174 22.10.2024 13:06 [13:06:08]line Смена: 535 ФФД: 1.0 [13:06:08]line ЗНМ: 0300000091 [13:06:08]line РНМ: 0000000000091685 [13:06:08]line Версия ККМ: 001 [13:06:08]line ФМ: 0000000000871839 [13:06:08]line ФД: 228210 [13:06:08]line ФПД: 68643269720757 [13:06:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130610&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228210&fm=68643269720757&tin=02508201610067®Number=0000000000091685&sum=50000 [13:06:08]OFD Sender: Processing packet 228210 [packets to send 38, broken 37] [13:06:08]ProducePacketName [13:06:08]name=ofd_packets/00228210 [13:06:08]OFD Sender: To server: pG, [13:06:08]CommunicateWithHost lk.salyk.kg:30040 [13:06:08]ConnectInit lk.salyk.kg [13:06:08]written 0, free lines is 4095 [13:06:08]Connected sock=10 [13:06:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 4F EA 07 01 1E B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 42 A3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 72 7B 03 00 35 04 06 00 3E 6E 41 B5 3A B5 9E 59 8B CD 6D B1 A8 87 [13:06:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 21 C0 47 00 14 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 72 7B 03 00 F4 03 04 00 3B 4E 17 67 B6 04 01 00 00 29 52 4E C5 0C DC 71 C9 [13:06:08]CommunicateWithHost err = 0 [13:06:08]CheckOFDResponse [13:06:08]1017 (14) - 77093643461234 [13:06:08]1041 (16) - 0000000000871839 [13:06:08]1040 (4) - 228210 [13:06:08]1012 (4) - 22.10.2024 07:03 [13:06:08]1206 (1) - 0 [13:06:08]OFD Sender: Remove packet 228210 [13:06:08]ProducePacketName [13:06:08]name=ofd_packets/00228210 [13:06:08]NVStorageDeleteData [13:06:09]Write to MH i2c: 01 00 00 34 35 69 [13:06:09]Write i2c OK [13:06:09]MH_I2C_Read... [13:06:09]Read from MH i2c: 01 [13:06:09]MH_I2C_Read... [13:06:09]Read from MH i2c: 01 07 00 [13:06:09]MH_I2C_Read... [13:06:09]Read from MH i2c: 01 07 00 34 35 00 00 00 00 00 B8 0C 34 [13:06:09]RasterBufferAndPrint [13:06:09]line [13:06:09]line [13:06:09]line [13:06:09]line [13:06:09]line [13:06:09]written 0, free lines is 3262 [13:06:09]MH_Cut [13:06:09]Write to MH i2c: D1 01 00 3B 35 01 42 [13:06:09]Write i2c OK [13:06:09]MH_I2C_Read... [13:06:09]Read from MH i2c: D1 [13:06:09]MH_I2C_Read... [13:06:09]Read from MH i2c: D1 01 00 [13:06:09]MH_I2C_Read... [13:06:09]Read from MH i2c: D1 01 00 3B 35 00 41 [13:06:09]Write to MH i2c: 01 00 00 3C 35 71 [13:06:09]Write i2c OK [13:06:09]MH_I2C_Read... [13:06:09]OFD Sender: No OFD packet to send [13:06:09]*** Cut start [13:06:09]*** Partial cut [13:06:09]*** CUTSNS_PIN = 1 [13:06:09]*** CUTSNS_PIN = 0 [13:06:10]*** Brake cut motor [13:06:10]Read from MH i2c: 01 [13:06:10]*** Stop cut motor [13:06:10]*** Cut end [13:06:10]MH_I2C_Read... [13:06:10]Read from MH i2c: 01 07 00 [13:06:10]MH_I2C_Read... [13:06:10]Read from MH i2c: 01 07 00 3C 35 00 00 00 00 00 FF 0F 86 [13:06:10]process_action close_receipt done [13:06:10]requested_data is exist [13:06:10]produce_requested_data [13:06:10]requested_item fm.sn is exist - process it [13:06:10]wFMCommunicate request_size=4 [13:06:10]MH_SAM_APDU [13:06:10]CAPDU: 80 11 00 00 [13:06:10]Write to MH i2c: E2 08 00 3D 35 80 11 00 00 00 00 00 00 EC [13:06:10]Write i2c OK [13:06:10]MH_I2C_Read... [13:06:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:10]Read from MH i2c: E2 [13:06:10]MH_I2C_Read... [13:06:10]Read from MH i2c: E2 17 00 [13:06:10]MH_I2C_Read... [13:06:10]Read from MH i2c: E2 17 00 3D 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 43 [13:06:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:06:10]wFMCommunicate OK [13:06:10]requested_item fd.num is exist - process it [13:06:10]SAM_PROTO_GetFieldsCounters [13:06:10]wFMCommunicate request_size=4 [13:06:10]MH_SAM_APDU [13:06:10]CAPDU: 80 13 00 00 [13:06:10]Write to MH i2c: E2 08 00 3E 35 80 13 00 00 00 00 00 00 EF [13:06:10]Write i2c OK [13:06:10]MH_I2C_Read... [13:06:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:10]Read from MH i2c: E2 [13:06:10]MH_I2C_Read... [13:06:10]Read from MH i2c: E2 62 00 [13:06:10]MH_I2C_Read... [13:06:10]Read from MH i2c: E2 62 00 3E 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 72 7B 03 00 0E 04 04 00 17 02 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 2B [13:06:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 72 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:06:10]wFMCommunicate OK [13:06:10]SAM_PROTO_GetFieldsCounters done [13:06:10]requested_item shift.num is exist - process it [13:06:10]requested_item shift.opened is exist - process it [13:06:10]req_shift_opened [13:06:10]FM_GetShiftState [13:06:10]SAM_PROTO_GetShiftState [13:06:10]wFMCommunicate request_size=4 [13:06:10]MH_SAM_APDU [13:06:10]CAPDU: 80 13 01 00 [13:06:10]Write to MH i2c: E2 08 00 3F 35 80 13 01 00 00 00 00 00 F1 [13:06:10]Write i2c OK [13:06:10]MH_I2C_Read... [13:06:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:10]Read from MH i2c: E2 [13:06:10]MH_I2C_Read... [13:06:10]Read from MH i2c: E2 0E 00 [13:06:10]MH_I2C_Read... [13:06:10]Read from MH i2c: E2 0E 00 3F 35 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 B8 [13:06:10]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:06:10]wFMCommunicate OK [13:06:10]SAM_PROTO_GetShiftState done [13:06:10]FM_GetShiftState done [13:06:10]req_shift_opened done [13:06:10]requested_item shift.open_date is exist - process it [13:06:10]req_shift_open_date [13:06:10]req_shift_open_date done [13:06:10]produce_requested_data done [13:06:10]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228210,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:06:10]process_action_free close_receipt [13:06:10]json_value_free [13:06:10]json_value_free done [13:06:10]process_json_proto returns [13:06:10]Send response to host [13:06:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228210,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:06:10]free response buf [13:06:10]execute_script done [13:06:10]execute_script returns [13:06:10]free content buf [13:06:10]Sock 9.Close socket [13:06:10]Sock 9.Thread stoped [13:06:14]OFD Sender: No OFD packet to send [13:06:19]OFD Sender: No OFD packet to send [13:06:24]OFD Sender: No OFD packet to send [13:06:29]OFD Sender: No OFD packet to send [13:06:34]OFD Sender: No OFD packet to send [13:06:39]OFD Sender: No OFD packet to send [13:06:44]OFD Sender: No OFD packet to send [13:06:49]OFD Sender: No OFD packet to send [13:06:54]OFD Sender: No OFD packet to send [13:06:59]OFD Sender: No OFD packet to send [13:07:04]OFD Sender: No OFD packet to send [13:07:09]OFD Sender: No OFD packet to send [13:07:14]OFD Sender: No OFD packet to send [13:07:19]OFD Sender: No OFD packet to send [13:07:24]OFD Sender: No OFD packet to send [13:07:29]OFD Sender: No OFD packet to send [13:07:34]OFD Sender: No OFD packet to send [13:07:39]OFD Sender: No OFD packet to send [13:07:44]OFD Sender: No OFD packet to send [13:07:49]OFD Sender: No OFD packet to send [13:07:54]OFD Sender: No OFD packet to send [13:07:59]OFD Sender: No OFD packet to send [13:08:04]OFD Sender: No OFD packet to send [13:08:09]OFD Sender: No OFD packet to send [13:08:14]OFD Sender: No OFD packet to send [13:08:19]OFD Sender: No OFD packet to send [13:08:24]OFD Sender: No OFD packet to send [13:08:29]OFD Sender: No OFD packet to send [13:08:34]OFD Sender: No OFD packet to send [13:08:39]OFD Sender: No OFD packet to send [13:08:44]OFD Sender: No OFD packet to send [13:08:49]OFD Sender: No OFD packet to send [13:08:54]OFD Sender: No OFD packet to send [13:08:59]OFD Sender: No OFD packet to send [13:09:04]OFD Sender: No OFD packet to send [13:09:09]OFD Sender: No OFD packet to send [13:09:10]accept exits with 7 [13:09:10]New connection [13:09:10]New thread 3066994020 created [13:09:10]Thread 3067137380 joined [13:09:10]Waiting for new connection... [13:09:10] Sock 7.Parse request [13:09:10]Sock 7.Check first char [13:09:10]Sock 7.First char is OK [13:09:10]request: POST /json_proto HTTP/1.0 [13:09:10]Method: POST [13:09:10]URL: /json_proto [13:09:10]Method is POST - this is cgi request [13:09:10]url: /json_proto [13:09:10]query_string will be loaded in cgi processing [13:09:10]execute_cgi json_proto POST (null) [13:09:10]execute_cgi path=json_proto method=POST [13:09:10]POST find Content-Length [13:09:10]Host: 172.17.44.195:8080 [13:09:10]Content-Length: 678 [13:09:10]Content-Type: application/json [13:09:10] [13:09:10]POST finish read [13:09:10]Found Content-Length = 678 [13:09:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:09:10]execute_script... [13:09: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)1964658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:09:10]POST & json_proto [13:09:10]process_json_proto [13:09:10]json parsed OK: [13:09:10]protocol is kg_v1.0 [13:09:10]action value=close_receipt [13:09:10]process_action close_receipt [13:09:10]cmd_close_receipt [13:09:10]MH_GetDate [13:09:10]Write to MH i2c: F0 00 00 40 35 64 [13:09:10]Write i2c OK [13:09:10]MH_I2C_Read... [13:09:10]Read from MH i2c: F0 [13:09:10]MH_I2C_Read... [13:09:10]Read from MH i2c: F0 09 00 [13:09:10]MH_I2C_Read... [13:09:10]Read from MH i2c: F0 09 00 40 35 00 FB A3 17 67 82 C9 CF 66 09 [13:09:10]GetLastDocTimeStamp 1729602370 [13:09:10]current date 1729602555 [13:09:10]FM_GetShiftState [13:09:10]SAM_PROTO_GetShiftState [13:09:10]wFMCommunicate request_size=4 [13:09:10]MH_SAM_APDU [13:09:10]CAPDU: 80 13 01 00 [13:09:10]Write to MH i2c: E2 08 00 41 35 80 13 01 00 00 00 00 00 F3 [13:09:10]Write i2c OK [13:09:10]MH_I2C_Read... [13:09:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:10]Read from MH i2c: E2 [13:09:10]MH_I2C_Read... [13:09:10]Read from MH i2c: E2 0E 00 [13:09:10]MH_I2C_Read... [13:09:11]Read from MH i2c: E2 0E 00 41 35 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 BA [13:09:11]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:09:11]wFMCommunicate OK [13:09:11]SAM_PROTO_GetShiftState done [13:09:11]FM_GetShiftState done [13:09:11]opened in 1729555538 [13:09:11]opened+sec_in_day 1729641938 [13:09:11]quantity*price = 50041 [13:09:11]sum+1 = 50042 [13:09:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 175 22.10.2024 13:09 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228211 ФПД: 65961845426844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130915&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228211&fm=65961845426844&tin=02508201610067®Number=0000000000091685&sum=50000 [13:09:12]StoreToDocumentArchive [13:09:12]shift 535 fd 228211 [13:09:12]save to /storage/0535/doc_00228211 [13:09:12]save last doc name /storage/0535/doc_00228211 to /storage/kkm_last_doc_name [13:09:12]save OK [13:09:12]Clear old archive folders... [13:09:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:09:12]tlvbuf is 0086EE10 [13:09:12]SAM_PROTO_ClearQueue [13:09:12]wFMCommunicate request_size=4 [13:09:12]MH_SAM_APDU [13:09:12]CAPDU: 80 09 00 00 [13:09:12]Write to MH i2c: E2 08 00 4E 35 80 09 00 00 00 00 00 00 F5 [13:09:12]Write i2c OK [13:09:12]MH_I2C_Read... [13:09:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:12]Read from MH i2c: E2 [13:09:12]MH_I2C_Read... [13:09:12]Read from MH i2c: E2 03 00 [13:09:12]MH_I2C_Read... [13:09:12]Read from MH i2c: E2 03 00 4E 35 00 90 00 F7 [13:09:12]RAPDU: 90 00 [13:09:12]wFMCommunicate OK [13:09:12]SAM_PROTO_ClearQueue done [13:09:12]KKMCreateOFDPacket [13:09:12]OFDProtocolAddRootSTLVToBuf [13:09:12]FM_MakeSignedData [13:09:12]FM_MakeSignedData [13:09:12]SAM_PROTO_SignData [13:09:12]wFMCommunicate request_size=4 [13:09:12]MH_SAM_APDU [13:09:12]CAPDU: 80 0D 01 02 [13:09:12]Write to MH i2c: E2 08 00 4F 35 80 0D 01 02 00 00 00 00 FD [13:09:12]Write i2c OK [13:09:12]MH_I2C_Read... [13:09:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:12]Read from MH i2c: E2 [13:09:12]MH_I2C_Read... [13:09:12]Read from MH i2c: E2 03 00 [13:09:12]MH_I2C_Read... [13:09:12]Read from MH i2c: E2 03 00 4F 35 00 90 00 F8 [13:09:12]RAPDU: 90 00 [13:09:12]wFMCommunicate OK [13:09:12]wFMCommunicate request_size=255 [13:09:12]MH_SAM_APDU [13:09:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 FB A3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 73 7B 03 00 35 04 06 00 3B [13:09:12]Write to MH i2c: E2 02 01 50 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 FB A3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 73 7B 03 00 35 04 06 00 3B 00 00 A4 [13:09:12]Write i2c OK [13:09:12]MH_I2C_Read... [13:09:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:12]Read from MH i2c: E2 [13:09:12]MH_I2C_Read... [13:09:12]Read from MH i2c: E2 03 00 [13:09:12]MH_I2C_Read... [13:09:12]Read from MH i2c: E2 03 00 50 35 00 90 00 F9 [13:09:12]RAPDU: 90 00 [13:09:12]wFMCommunicate OK [13:09:12]wFMCommunicate request_size=10 [13:09:12]MH_SAM_APDU [13:09:12]CAPDU: 80 0D 02 02 05 FD F0 5D 8A 9C [13:09:12]Write to MH i2c: E2 0D 00 51 35 80 0D 02 02 05 00 FD F0 5D 8A 9C 00 00 7A [13:09:12]Write i2c OK [13:09:12]MH_I2C_Read... [13:09:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:12]Read from MH i2c: E2 [13:09:12]MH_I2C_Read... [13:09:12]Read from MH i2c: E2 03 00 [13:09:12]MH_I2C_Read... [13:09:12]Read from MH i2c: E2 03 00 51 35 00 90 00 FA [13:09:12]RAPDU: 90 00 [13:09:12]wFMCommunicate OK [13:09:12]wFMCommunicate request_size=4 [13:09:12]MH_SAM_APDU [13:09:12]CAPDU: 80 0D 03 02 [13:09:12]Write to MH i2c: E2 08 00 52 35 80 0D 03 02 00 00 00 00 02 [13:09:12]Write i2c OK [13:09:12]MH_I2C_Read... [13:09:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:12]Read from MH i2c: E2 [13:09:12]MH_I2C_Read... [13:09:12]Read from MH i2c: E2 0B 00 [13:09:12]MH_I2C_Read... [13:09:12]Read from MH i2c: E2 0B 00 52 35 00 D8 5F E7 44 89 18 87 AD 90 00 3A [13:09:12]RAPDU: D8 5F E7 44 89 18 87 AD 90 00 [13:09:12]wFMCommunicate OK [13:09:12]SAM_PROTO_SignData done [13:09:12]FM_MakeSignedData done [13:09:12]CreateOFDProtocolMessage [13:09:12]wFMCommunicate request_size=4 [13:09:12]MH_SAM_APDU [13:09:12]CAPDU: 80 11 00 00 [13:09:12]Write to MH i2c: E2 08 00 53 35 80 11 00 00 00 00 00 00 02 [13:09:12]Write i2c OK [13:09:12]MH_I2C_Read... [13:09:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:12]Read from MH i2c: E2 [13:09:12]MH_I2C_Read... [13:09:12]Read from MH i2c: E2 17 00 [13:09:12]MH_I2C_Read... [13:09:12]Read from MH i2c: E2 17 00 53 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 59 [13:09:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:09:12]wFMCommunicate OK [13:09:12]CreateOFDProtocolMessage done [13:09:12]OFDSenderStorePacket 228211 [13:09:12]StoreOFDPacket docnum=228211 [13:09:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 8A 3E 07 01 86 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 FB A3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 73 7B 03 00 35 04 06 00 3B FD F0 5D 8A 9C D8 5F E7 44 89 18 87 AD [13:09:12]CheckFolder [13:09:12]dirname=/storage/ofd_packets [13:09:12]CheckFolder done [13:09:12]ProducePacketName [13:09:12]name=ofd_packets/00228211 [13:09:12]NVStorageSaveData ofd_packets/00228211 [13:09:12]File name is /storage/ofd_packets/00228211 [13:09:12]Write 301 bytes [13:09:12]NVStorageSaveData done [13:09:12]OFDSenderStorePacket done [13:09:12]KKMCreateOFDPacket done [13:09:12]NVStorageSaveData kkm_last_timestamp [13:09:12]File name is /storage/kkm_last_timestamp [13:09:12]Write 4 bytes [13:09:12]NVStorageSaveData done [13:09:12]ExternCall_PrintAddStr [13:09:12]wPrintStart [13:09:12]Write to MH i2c: 01 00 00 54 35 89 [13:09:12]Write i2c OK [13:09:12]MH_I2C_Read... [13:09:12]Read from MH i2c: 01 [13:09:12]MH_I2C_Read... [13:09:12]Read from MH i2c: 01 07 00 [13:09:12]MH_I2C_Read... [13:09:12]Read from MH i2c: 01 07 00 54 35 00 00 00 00 00 FF 0F 9E [13:09:12]RasterBufferAndPrint [13:09:12]line Счет N : (1)1964658 [13:09:12]line ИНН: 02508201610067 [13:09:12]line Контрольно-Кассовый Чек [13:09:12]line ПРОДАЖА [13:09:12]line ТРК (МРК, ГНК) : 33 [13:09:12]line Товар: 2710124130 [13:09:12]line Аи-92-К-5 [13:09:12]line 7.480 * 66.90 [13:09:12]line = 500.41 [13:09:12]line НДС 12% НСП 1% [13:09:12]line > о реализуемом товаре [13:09:12]line ОКРУГЛЕНИЕ: -0.41 [13:09:12]line ИТОГО: 500.00 [13:09:12]line Внесено: 500.00 [13:09:12]line СДАЧА: 0.00 [13:09:12]line НСП 1% : 4.43 [13:09:12]line НДС 12% : 53.14 [13:09:12]line Наличными: 500.00 [13:09:12]line Безнал.: 0.00 [13:09:12]line Место: АЗС № 133 "Партнер Нефть" [13:09:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:09:12]line СНО: Общий режим [13:09:12]line Чек 175 22.10.2024 13:09 [13:09:12]line Смена: 535 ФФД: 1.0 [13:09:12]line ЗНМ: 0300000091 [13:09:12]line РНМ: 0000000000091685 [13:09:12]line Версия ККМ: 001 [13:09:12]line ФМ: 0000000000871839 [13:09:12]line ФД: 228211 [13:09:12]line ФПД: 65961845426844 [13:09:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130915&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228211&fm=65961845426844&tin=02508201610067®Number=0000000000091685&sum=50000 [13:09:12]OFD Sender: Processing packet 228211 [packets to send 38, broken 37] [13:09:12]ProducePacketName [13:09:12]name=ofd_packets/00228211 [13:09:12]OFD Sender: To server: pG, [13:09:12]CommunicateWithHost lk.salyk.kg:30040 [13:09:12]ConnectInit lk.salyk.kg [13:09:12]written 0, free lines is 4095 [13:09:13]Connected sock=10 [13:09:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 8A 3E 07 01 86 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 FB A3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 73 7B 03 00 35 04 06 00 3B FD F0 5D 8A 9C D8 5F E7 44 89 18 87 AD [13:09:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 A1 C1 47 00 28 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 73 7B 03 00 F4 03 04 00 F3 4E 17 67 B6 04 01 00 00 C6 44 D9 4D F5 75 92 D7 [13:09:13]CommunicateWithHost err = 0 [13:09:13]CheckOFDResponse [13:09:13]1017 (14) - 77093643461234 [13:09:13]1041 (16) - 0000000000871839 [13:09:13]1040 (4) - 228211 [13:09:13]1012 (4) - 22.10.2024 07:06 [13:09:13]1206 (1) - 0 [13:09:13]OFD Sender: Remove packet 228211 [13:09:13]ProducePacketName [13:09:13]name=ofd_packets/00228211 [13:09:13]NVStorageDeleteData [13:09:13]Write to MH i2c: 01 00 00 7E 35 B3 [13:09:13]Write i2c OK [13:09:13]MH_I2C_Read... [13:09:13]Read from MH i2c: 01 [13:09:13]MH_I2C_Read... [13:09:13]Read from MH i2c: 01 07 00 [13:09:13]MH_I2C_Read... [13:09:13]Read from MH i2c: 01 07 00 7E 35 00 00 00 00 00 B6 0C 7C [13:09:13]RasterBufferAndPrint [13:09:13]line [13:09:13]line [13:09:13]line [13:09:13]line [13:09:13]line [13:09:13]written 0, free lines is 3258 [13:09:13]MH_Cut [13:09:13]Write to MH i2c: D1 01 00 85 35 01 8C [13:09:13]Write i2c OK [13:09:13]MH_I2C_Read... [13:09:13]Read from MH i2c: D1 [13:09:13]MH_I2C_Read... [13:09:13]Read from MH i2c: D1 01 00 [13:09:13]MH_I2C_Read... [13:09:13]Read from MH i2c: D1 01 00 85 35 00 8B [13:09:13]Write to MH i2c: 01 00 00 86 35 BB [13:09:13]Write i2c OK [13:09:13]MH_I2C_Read... [13:09:13]OFD Sender: No OFD packet to send [13:09:14]*** Cut start [13:09:14]*** Partial cut [13:09:14]*** CUTSNS_PIN = 1 [13:09:14]*** CUTSNS_PIN = 0 [13:09:14]*** Brake cut motor [13:09:14]Read from MH i2c: 01 [13:09:14]MH_I2C_Read... [13:09:14]*** Stop cut motor [13:09:14]*** Cut end [13:09:14]Read from MH i2c: 01 07 00 [13:09:14]MH_I2C_Read... [13:09:14]Read from MH i2c: 01 07 00 86 35 00 00 00 00 00 FF 0F D0 [13:09:14]process_action close_receipt done [13:09:14]requested_data is exist [13:09:14]produce_requested_data [13:09:14]requested_item fm.sn is exist - process it [13:09:14]wFMCommunicate request_size=4 [13:09:14]MH_SAM_APDU [13:09:14]CAPDU: 80 11 00 00 [13:09:14]Write to MH i2c: E2 08 00 87 35 80 11 00 00 00 00 00 00 36 [13:09:14]Write i2c OK [13:09:14]MH_I2C_Read... [13:09:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:14]Read from MH i2c: E2 [13:09:14]MH_I2C_Read... [13:09:14]Read from MH i2c: E2 17 00 [13:09:14]MH_I2C_Read... [13:09:14]Read from MH i2c: E2 17 00 87 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8D [13:09:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:09:14]wFMCommunicate OK [13:09:14]requested_item fd.num is exist - process it [13:09:14]SAM_PROTO_GetFieldsCounters [13:09:14]wFMCommunicate request_size=4 [13:09:14]MH_SAM_APDU [13:09:14]CAPDU: 80 13 00 00 [13:09:14]Write to MH i2c: E2 08 00 88 35 80 13 00 00 00 00 00 00 39 [13:09:14]Write i2c OK [13:09:14]MH_I2C_Read... [13:09:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:15]Read from MH i2c: E2 [13:09:15]MH_I2C_Read... [13:09:15]Read from MH i2c: E2 62 00 [13:09:15]MH_I2C_Read... [13:09:15]Read from MH i2c: E2 62 00 88 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 73 7B 03 00 0E 04 04 00 17 02 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 79 [13:09:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 73 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:09:15]wFMCommunicate OK [13:09:15]SAM_PROTO_GetFieldsCounters done [13:09:15]requested_item shift.num is exist - process it [13:09:15]requested_item shift.opened is exist - process it [13:09:15]req_shift_opened [13:09:15]FM_GetShiftState [13:09:15]SAM_PROTO_GetShiftState [13:09:15]wFMCommunicate request_size=4 [13:09:15]MH_SAM_APDU [13:09:15]CAPDU: 80 13 01 00 [13:09:15]Write to MH i2c: E2 08 00 89 35 80 13 01 00 00 00 00 00 3B [13:09:15]Write i2c OK [13:09:15]MH_I2C_Read... [13:09:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:15]Read from MH i2c: E2 [13:09:15]MH_I2C_Read... [13:09:15]Read from MH i2c: E2 0E 00 [13:09:15]MH_I2C_Read... [13:09:15]Read from MH i2c: E2 0E 00 89 35 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 02 [13:09:15]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:09:15]wFMCommunicate OK [13:09:15]SAM_PROTO_GetShiftState done [13:09:15]FM_GetShiftState done [13:09:15]req_shift_opened done [13:09:15]requested_item shift.open_date is exist - process it [13:09:15]req_shift_open_date [13:09:15]req_shift_open_date done [13:09:15]produce_requested_data done [13:09:15]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228211,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:09:15]process_action_free close_receipt [13:09:15]json_value_free [13:09:15]json_value_free done [13:09:15]process_json_proto returns [13:09:15]Send response to host [13:09:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228211,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:09:15]free response buf [13:09:15]execute_script done [13:09:15]execute_script returns [13:09:15]free content buf [13:09:15]Sock 7.Close socket [13:09:15]Sock 7.Thread stoped [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:53]OFD Sender: No OFD packet to send [13:09:58]OFD Sender: No OFD packet to send [13:10:03]OFD Sender: No OFD packet to send [13:10:08]OFD Sender: No OFD packet to send [13:10:13]OFD Sender: No OFD packet to send [13:10:18]OFD Sender: No OFD packet to send [13:10:23]OFD Sender: No OFD packet to send [13:10:28]OFD Sender: No OFD packet to send [13:10:33]OFD Sender: No OFD packet to send [13:10:38]OFD Sender: No OFD packet to send [13:10:43]OFD Sender: No OFD packet to send [13:10:48]OFD Sender: No OFD packet to send [13:10:53]OFD Sender: No OFD packet to send [13:10:58]OFD Sender: No OFD packet to send [13:11:03]OFD Sender: No OFD packet to send [13:11:04]accept exits with 9 [13:11:04]New connection [13:11:04]New thread 3067137380 created [13:11:04]Thread 3066994020 joined [13:11:04]Waiting for new connection... [13:11:04] Sock 9.Parse request [13:11:04]Sock 9.Check first char [13:11:04]Sock 9.First char is OK [13:11:04]request: POST /json_proto HTTP/1.0 [13:11:04]Method: POST [13:11:04]URL: /json_proto [13:11:04]Method is POST - this is cgi request [13:11:04]url: /json_proto [13:11:04]query_string will be loaded in cgi processing [13:11:04]execute_cgi json_proto POST (null) [13:11:04]execute_cgi path=json_proto method=POST [13:11:04]POST find Content-Length [13:11:04]Host: 172.17.44.195:8080 [13:11:04]Content-Length: 678 [13:11:04]Content-Type: application/json [13:11:04] [13:11:04]POST finish read [13:11:04]Found Content-Length = 678 [13:11:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964659", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:11:04]execute_script... [13:11: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)1964659", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:11:04]POST & json_proto [13:11:04]process_json_proto [13:11:04]json parsed OK: [13:11:04]protocol is kg_v1.0 [13:11:04]action value=close_receipt [13:11:04]process_action close_receipt [13:11:04]cmd_close_receipt [13:11:04]MH_GetDate [13:11:04]Write to MH i2c: F0 00 00 8A 35 AE [13:11:04]Write i2c OK [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: F0 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: F0 09 00 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: F0 09 00 8A 35 00 6C A4 17 67 82 C9 CF 66 C5 [13:11:04]GetLastDocTimeStamp 1729602555 [13:11:04]current date 1729602668 [13:11:04]FM_GetShiftState [13:11:04]SAM_PROTO_GetShiftState [13:11:04]wFMCommunicate request_size=4 [13:11:04]MH_SAM_APDU [13:11:04]CAPDU: 80 13 01 00 [13:11:04]Write to MH i2c: E2 08 00 8B 35 80 13 01 00 00 00 00 00 3D [13:11:04]Write i2c OK [13:11:04]MH_I2C_Read... [13:11:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:04]Read from MH i2c: E2 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: E2 0E 00 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: E2 0E 00 8B 35 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 04 [13:11:04]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:11:04]wFMCommunicate OK [13:11:04]SAM_PROTO_GetShiftState done [13:11:04]FM_GetShiftState done [13:11:04]opened in 1729555538 [13:11:04]opened+sec_in_day 1729641938 [13:11:04]quantity*price = 50041 [13:11:04]sum+1 = 50042 [13:11:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 176 22.10.2024 13:11 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228212 ФПД: 34808449533078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131108&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228212&fm=34808449533078&tin=02508201610067®Number=0000000000091685&sum=50000 [13:11:05]StoreToDocumentArchive [13:11:05]shift 535 fd 228212 [13:11:05]save to /storage/0535/doc_00228212 [13:11:05]save last doc name /storage/0535/doc_00228212 to /storage/kkm_last_doc_name [13:11:05]save OK [13:11:05]Clear old archive folders... [13:11:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:11:05]tlvbuf is 008D83D0 [13:11:05]SAM_PROTO_ClearQueue [13:11:05]wFMCommunicate request_size=4 [13:11:05]MH_SAM_APDU [13:11:05]CAPDU: 80 09 00 00 [13:11:05]Write to MH i2c: E2 08 00 98 35 80 09 00 00 00 00 00 00 3F [13:11:05]Write i2c OK [13:11:05]MH_I2C_Read... [13:11:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:05]Read from MH i2c: E2 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: E2 03 00 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: E2 03 00 98 35 00 90 00 41 [13:11:05]RAPDU: 90 00 [13:11:05]wFMCommunicate OK [13:11:05]SAM_PROTO_ClearQueue done [13:11:05]KKMCreateOFDPacket [13:11:05]OFDProtocolAddRootSTLVToBuf [13:11:05]FM_MakeSignedData [13:11:05]FM_MakeSignedData [13:11:05]SAM_PROTO_SignData [13:11:05]wFMCommunicate request_size=4 [13:11:05]MH_SAM_APDU [13:11:05]CAPDU: 80 0D 01 02 [13:11:05]Write to MH i2c: E2 08 00 99 35 80 0D 01 02 00 00 00 00 47 [13:11:05]Write i2c OK [13:11:05]MH_I2C_Read... [13:11:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:05]Read from MH i2c: E2 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: E2 03 00 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: E2 03 00 99 35 00 90 00 42 [13:11:05]RAPDU: 90 00 [13:11:05]wFMCommunicate OK [13:11:05]wFMCommunicate request_size=255 [13:11:05]MH_SAM_APDU [13:11: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 6C A4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 74 7B 03 00 35 04 06 00 1F [13:11:05]Write to MH i2c: E2 02 01 9A 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 6C A4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 74 7B 03 00 35 04 06 00 1F 00 00 46 [13:11:05]Write i2c OK [13:11:05]MH_I2C_Read... [13:11:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:05]Read from MH i2c: E2 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: E2 03 00 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: E2 03 00 9A 35 00 90 00 43 [13:11:05]RAPDU: 90 00 [13:11:05]wFMCommunicate OK [13:11:05]wFMCommunicate request_size=10 [13:11:05]MH_SAM_APDU [13:11:05]CAPDU: 80 0D 02 02 05 A8 79 45 04 96 [13:11:05]Write to MH i2c: E2 0D 00 9B 35 80 0D 02 02 05 00 A8 79 45 04 96 00 00 54 [13:11:05]Write i2c OK [13:11:05]MH_I2C_Read... [13:11:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:05]Read from MH i2c: E2 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: E2 03 00 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: E2 03 00 9B 35 00 90 00 44 [13:11:05]RAPDU: 90 00 [13:11:05]wFMCommunicate OK [13:11:05]wFMCommunicate request_size=4 [13:11:05]MH_SAM_APDU [13:11:05]CAPDU: 80 0D 03 02 [13:11:05]Write to MH i2c: E2 08 00 9C 35 80 0D 03 02 00 00 00 00 4C [13:11:05]Write i2c OK [13:11:05]MH_I2C_Read... [13:11:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:05]Read from MH i2c: E2 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: E2 0B 00 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: E2 0B 00 9C 35 00 5E 3E 7C F0 FD 4D E8 FA 90 00 81 [13:11:05]RAPDU: 5E 3E 7C F0 FD 4D E8 FA 90 00 [13:11:05]wFMCommunicate OK [13:11:05]SAM_PROTO_SignData done [13:11:05]FM_MakeSignedData done [13:11:05]CreateOFDProtocolMessage [13:11:05]wFMCommunicate request_size=4 [13:11:05]MH_SAM_APDU [13:11:05]CAPDU: 80 11 00 00 [13:11:05]Write to MH i2c: E2 08 00 9D 35 80 11 00 00 00 00 00 00 4C [13:11:05]Write i2c OK [13:11:05]MH_I2C_Read... [13:11:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:05]Read from MH i2c: E2 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: E2 17 00 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: E2 17 00 9D 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A3 [13:11:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:11:05]wFMCommunicate OK [13:11:05]CreateOFDProtocolMessage done [13:11:05]OFDSenderStorePacket 228212 [13:11:05]StoreOFDPacket docnum=228212 [13:11:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 93 A0 07 01 8B 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 6C A4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 74 7B 03 00 35 04 06 00 1F A8 79 45 04 96 5E 3E 7C F0 FD 4D E8 FA [13:11:05]CheckFolder [13:11:05]dirname=/storage/ofd_packets [13:11:05]CheckFolder done [13:11:05]ProducePacketName [13:11:05]name=ofd_packets/00228212 [13:11:05]NVStorageSaveData ofd_packets/00228212 [13:11:05]File name is /storage/ofd_packets/00228212 [13:11:05]Write 301 bytes [13:11:05]NVStorageSaveData done [13:11:05]OFDSenderStorePacket done [13:11:05]KKMCreateOFDPacket done [13:11:05]NVStorageSaveData kkm_last_timestamp [13:11:05]File name is /storage/kkm_last_timestamp [13:11:05]Write 4 bytes [13:11:05]NVStorageSaveData done [13:11:05]ExternCall_PrintAddStr [13:11:05]wPrintStart [13:11:05]Write to MH i2c: 01 00 00 9E 35 D3 [13:11:05]Write i2c OK [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: 01 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: 01 07 00 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: 01 07 00 9E 35 00 00 00 00 00 FF 0F E8 [13:11:05]RasterBufferAndPrint [13:11:05]line Счет N : (1)1964659 [13:11:05]line ИНН: 02508201610067 [13:11:05]line Контрольно-Кассовый Чек [13:11:05]line ПРОДАЖА [13:11:05]line ТРК (МРК, ГНК) : 63 [13:11:05]line Товар: 2710124130 [13:11:05]line Аи-92-К-5 [13:11:05]line 7.480 * 66.90 [13:11:05]line = 500.41 [13:11:05]line НДС 12% НСП 1% [13:11:05]line > о реализуемом товаре [13:11:05]line ОКРУГЛЕНИЕ: -0.41 [13:11:05]line ИТОГО: 500.00 [13:11:05]line Внесено: 500.00 [13:11:05]line СДАЧА: 0.00 [13:11:05]line НСП 1% : 4.43 [13:11:05]line НДС 12% : 53.14 [13:11:05]line Наличными: 500.00 [13:11:05]line Безнал.: 0.00 [13:11:05]line Место: АЗС № 133 "Партнер Нефть" [13:11:05]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:11:05]line СНО: Общий режим [13:11:05]line Чек 176 22.10.2024 13:11 [13:11:05]line Смена: 535 ФФД: 1.0 [13:11:05]line ЗНМ: 0300000091 [13:11:05]line РНМ: 0000000000091685 [13:11:05]line Версия ККМ: 001 [13:11:05]line ФМ: 0000000000871839 [13:11:05]line ФД: 228212 [13:11:05]line ФПД: 34808449533078 [13:11:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131108&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228212&fm=34808449533078&tin=02508201610067®Number=0000000000091685&sum=50000 [13:11:06]OFD Sender: Processing packet 228212 [packets to send 38, broken 37] [13:11:06]ProducePacketName [13:11:06]name=ofd_packets/00228212 [13:11:06]OFD Sender: To server: pG, [13:11:06]CommunicateWithHost lk.salyk.kg:30040 [13:11:06]ConnectInit lk.salyk.kg [13:11:06]written 0, free lines is 4095 [13:11:06]Connected sock=10 [13:11:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 93 A0 07 01 8B 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 6C A4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 74 7B 03 00 35 04 06 00 1F A8 79 45 04 96 5E 3E 7C F0 FD 4D E8 FA [13:11:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 A8 A1 47 00 E8 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 74 7B 03 00 F4 03 04 00 64 4F 17 67 B6 04 01 00 00 EC E6 71 FC 03 B0 41 68 [13:11:06]CommunicateWithHost err = 0 [13:11:06]CheckOFDResponse [13:11:06]1017 (14) - 77093643461234 [13:11:06]1041 (16) - 0000000000871839 [13:11:06]1040 (4) - 228212 [13:11:06]1012 (4) - 22.10.2024 07:08 [13:11:06]1206 (1) - 0 [13:11:06]OFD Sender: Remove packet 228212 [13:11:06]ProducePacketName [13:11:06]name=ofd_packets/00228212 [13:11:06]NVStorageDeleteData [13:11:06]Write to MH i2c: 01 00 00 C8 35 FD [13:11:06]Write i2c OK [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: 01 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: 01 07 00 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: 01 07 00 C8 35 00 00 00 00 00 C2 0C D2 [13:11:06]RasterBufferAndPrint [13:11:06]line [13:11:06]line [13:11:06]line [13:11:06]line [13:11:06]line [13:11:06]written 0, free lines is 3272 [13:11:06]MH_Cut [13:11:06]Write to MH i2c: D1 01 00 CF 35 01 D6 [13:11:06]Write i2c OK [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: D1 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: D1 01 00 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: D1 01 00 CF 35 00 D5 [13:11:06]Write to MH i2c: 01 00 00 D0 35 05 [13:11:06]Write i2c OK [13:11:06]MH_I2C_Read... [13:11:06]OFD Sender: No OFD packet to send [13:11:07]*** Cut start [13:11:07]*** Partial cut [13:11:07]*** CUTSNS_PIN = 1 [13:11:07]*** CUTSNS_PIN = 0 [13:11:07]*** Brake cut motor [13:11:08]Read from MH i2c: 01 [13:11:08]MH_I2C_Read... [13:11:08]*** Stop cut motor [13:11:08]*** Cut end [13:11:08]Read from MH i2c: 01 07 00 [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: 01 07 00 D0 35 00 00 00 00 00 FF 0F 1A [13:11:08]process_action close_receipt done [13:11:08]requested_data is exist [13:11:08]produce_requested_data [13:11:08]requested_item fm.sn is exist - process it [13:11:08]wFMCommunicate request_size=4 [13:11:08]MH_SAM_APDU [13:11:08]CAPDU: 80 11 00 00 [13:11:08]Write to MH i2c: E2 08 00 D1 35 80 11 00 00 00 00 00 00 80 [13:11:08]Write i2c OK [13:11:08]MH_I2C_Read... [13:11:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:08]Read from MH i2c: E2 [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: E2 17 00 [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: E2 17 00 D1 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D7 [13:11:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:11:08]wFMCommunicate OK [13:11:08]requested_item fd.num is exist - process it [13:11:08]SAM_PROTO_GetFieldsCounters [13:11:08]wFMCommunicate request_size=4 [13:11:08]MH_SAM_APDU [13:11:08]CAPDU: 80 13 00 00 [13:11:08]Write to MH i2c: E2 08 00 D2 35 80 13 00 00 00 00 00 00 83 [13:11:08]Write i2c OK [13:11:08]MH_I2C_Read... [13:11:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:08]Read from MH i2c: E2 [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: E2 62 00 [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: E2 62 00 D2 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 74 7B 03 00 0E 04 04 00 17 02 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 C7 [13:11:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 74 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:11:08]wFMCommunicate OK [13:11:08]SAM_PROTO_GetFieldsCounters done [13:11:08]requested_item shift.num is exist - process it [13:11:08]requested_item shift.opened is exist - process it [13:11:08]req_shift_opened [13:11:08]FM_GetShiftState [13:11:08]SAM_PROTO_GetShiftState [13:11:08]wFMCommunicate request_size=4 [13:11:08]MH_SAM_APDU [13:11:08]CAPDU: 80 13 01 00 [13:11:08]Write to MH i2c: E2 08 00 D3 35 80 13 01 00 00 00 00 00 85 [13:11:08]Write i2c OK [13:11:08]MH_I2C_Read... [13:11:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:08]Read from MH i2c: E2 [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: E2 0E 00 [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: E2 0E 00 D3 35 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 4C [13:11:08]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:11:08]wFMCommunicate OK [13:11:08]SAM_PROTO_GetShiftState done [13:11:08]FM_GetShiftState done [13:11:08]req_shift_opened done [13:11:08]requested_item shift.open_date is exist - process it [13:11:08]req_shift_open_date [13:11:08]req_shift_open_date done [13:11:08]produce_requested_data done [13:11:08]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228212,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:11:08]process_action_free close_receipt [13:11:08]json_value_free [13:11:08]json_value_free done [13:11:08]process_json_proto returns [13:11:08]Send response to host [13:11:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228212,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:11:08]free response buf [13:11:08]execute_script done [13:11:08]execute_script returns [13:11:08]free content buf [13:11:08]Sock 9.Close socket [13:11:08]Sock 9.Thread stoped [13:11:11]OFD Sender: No OFD packet to send [13:11:16]OFD Sender: No OFD packet to send [13:11:21]OFD Sender: No OFD packet to send [13:11:26]OFD Sender: No OFD packet to send [13:11:32]OFD Sender: No OFD packet to send [13:11:37]OFD Sender: No OFD packet to send [13:11:42]OFD Sender: No OFD packet to send [13:11:47]OFD Sender: No OFD packet to send [13:11:52]OFD Sender: No OFD packet to send [13:11:57]OFD Sender: No OFD packet to send [13:12:02]OFD Sender: No OFD packet to send [13:12:07]OFD Sender: No OFD packet to send [13:12:12]OFD Sender: No OFD packet to send [13:12:17]OFD Sender: No OFD packet to send [13:12:22]OFD Sender: No OFD packet to send [13:12:27]OFD Sender: No OFD packet to send [13:12:32]OFD Sender: No OFD packet to send [13:12:37]OFD Sender: No OFD packet to send [13:12:42]OFD Sender: No OFD packet to send [13:12:47]OFD Sender: No OFD packet to send [13:12:52]OFD Sender: No OFD packet to send [13:12:57]OFD Sender: No OFD packet to send [13:13:02]OFD Sender: No OFD packet to send [13:13:03]accept exits with 7 [13:13:03]New connection [13:13:03]New thread 3066994020 created [13:13:03]Thread 3067137380 joined [13:13:03]Waiting for new connection... [13:13:03] Sock 7.Parse request [13:13:03]Sock 7.Check first char [13:13:03]Sock 7.First char is OK [13:13:03]request: POST /json_proto HTTP/1.0 [13:13:03]Method: POST [13:13:03]URL: /json_proto [13:13:03]Method is POST - this is cgi request [13:13:03]url: /json_proto [13:13:03]query_string will be loaded in cgi processing [13:13:03]execute_cgi json_proto POST (null) [13:13:03]execute_cgi path=json_proto method=POST [13:13:03]POST find Content-Length [13:13:03]Host: 172.17.44.195:8080 [13:13:03]Content-Length: 673 [13:13:03]Content-Type: application/json [13:13:03] [13:13:03]POST finish read [13:13:03]Found Content-Length = 673 [13:13:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 10.290, "sum" : 400.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:03]execute_script... [13:13: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)1964661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 10.290, "sum" : 400.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:03]POST & json_proto [13:13:03]process_json_proto [13:13:03]json parsed OK: [13:13:03]protocol is kg_v1.0 [13:13:03]action value=close_receipt [13:13:03]process_action close_receipt [13:13:03]cmd_close_receipt [13:13:03]MH_GetDate [13:13:03]Write to MH i2c: F0 00 00 D4 35 F8 [13:13:03]Write i2c OK [13:13:03]MH_I2C_Read... [13:13:03]Read from MH i2c: F0 [13:13:03]MH_I2C_Read... [13:13:03]Read from MH i2c: F0 09 00 [13:13:03]MH_I2C_Read... [13:13:03]Read from MH i2c: F0 09 00 D4 35 00 E3 A4 17 67 82 C9 CF 66 86 [13:13:03]GetLastDocTimeStamp 1729602668 [13:13:03]current date 1729602787 [13:13:03]FM_GetShiftState [13:13:03]SAM_PROTO_GetShiftState [13:13:03]wFMCommunicate request_size=4 [13:13:03]MH_SAM_APDU [13:13:03]CAPDU: 80 13 01 00 [13:13:03]Write to MH i2c: E2 08 00 D5 35 80 13 01 00 00 00 00 00 87 [13:13:03]Write i2c OK [13:13:03]MH_I2C_Read... [13:13:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:03]Read from MH i2c: E2 [13:13:03]MH_I2C_Read... [13:13:03]Read from MH i2c: E2 0E 00 [13:13:03]MH_I2C_Read... [13:13:03]Read from MH i2c: E2 0E 00 D5 35 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 4E [13:13:03]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:13:03]wFMCommunicate OK [13:13:03]SAM_PROTO_GetShiftState done [13:13:03]FM_GetShiftState done [13:13:03]opened in 1729555538 [13:13:03]opened+sec_in_day 1729641938 [13:13:03]quantity*price = 40028 [13:13:03]sum+1 = 40029 [13:13:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.51 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 177 22.10.2024 13:13 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228213 ФПД: 121856030825169 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131307&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228213&fm=121856030825169&tin=02508201610067®Number=0000000000091685&sum=40000 [13:13:04]StoreToDocumentArchive [13:13:04]shift 535 fd 228213 [13:13:04]save to /storage/0535/doc_00228213 [13:13:04]save last doc name /storage/0535/doc_00228213 to /storage/kkm_last_doc_name [13:13:04]save OK [13:13:04]Clear old archive folders... [13:13:04]ProcessDocumentItem done err = 0, tmpTLVsize=245 [13:13:04]tlvbuf is 008D83D0 [13:13:04]SAM_PROTO_ClearQueue [13:13:04]wFMCommunicate request_size=4 [13:13:04]MH_SAM_APDU [13:13:04]CAPDU: 80 09 00 00 [13:13:04]Write to MH i2c: E2 08 00 E2 35 80 09 00 00 00 00 00 00 89 [13:13:04]Write i2c OK [13:13:04]MH_I2C_Read... [13:13:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:04]Read from MH i2c: E2 [13:13:04]MH_I2C_Read... [13:13:04]Read from MH i2c: E2 03 00 [13:13:04]MH_I2C_Read... [13:13:04]Read from MH i2c: E2 03 00 E2 35 00 90 00 8B [13:13:04]RAPDU: 90 00 [13:13:04]wFMCommunicate OK [13:13:04]SAM_PROTO_ClearQueue done [13:13:04]KKMCreateOFDPacket [13:13:04]OFDProtocolAddRootSTLVToBuf [13:13:04]FM_MakeSignedData [13:13:04]FM_MakeSignedData [13:13:04]SAM_PROTO_SignData [13:13:04]wFMCommunicate request_size=4 [13:13:04]MH_SAM_APDU [13:13:04]CAPDU: 80 0D 01 02 [13:13:04]Write to MH i2c: E2 08 00 E3 35 80 0D 01 02 00 00 00 00 91 [13:13:04]Write i2c OK [13:13:04]MH_I2C_Read... [13:13:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:04]Read from MH i2c: E2 [13:13:04]MH_I2C_Read... [13:13:04]Read from MH i2c: E2 03 00 [13:13:04]MH_I2C_Read... [13:13:04]Read from MH i2c: E2 03 00 E3 35 00 90 00 8C [13:13:04]RAPDU: 90 00 [13:13:04]wFMCommunicate OK [13:13:04]wFMCommunicate request_size=254 [13:13:04]MH_SAM_APDU [13:13:04]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5C 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 B1 00 00 00 F4 03 04 00 E3 A4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 75 7B 03 00 35 04 06 00 6E D3 D1 6E 5A D1 [13:13:04]Write to MH i2c: E2 01 01 E4 35 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5C 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 B1 00 00 00 F4 03 04 00 E3 A4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 75 7B 03 00 35 04 06 00 6E D3 D1 6E 5A D1 00 00 0F [13:13:04]Write i2c OK [13:13:04]MH_I2C_Read... [13:13:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:04]Read from MH i2c: E2 [13:13:04]MH_I2C_Read... [13:13:04]Read from MH i2c: E2 03 00 [13:13:04]MH_I2C_Read... [13:13:04]Read from MH i2c: E2 03 00 E4 35 00 90 00 8D [13:13:04]RAPDU: 90 00 [13:13:04]wFMCommunicate OK [13:13:04]wFMCommunicate request_size=4 [13:13:04]MH_SAM_APDU [13:13:04]CAPDU: 80 0D 03 02 [13:13:04]Write to MH i2c: E2 08 00 E5 35 80 0D 03 02 00 00 00 00 95 [13:13:04]Write i2c OK [13:13:04]MH_I2C_Read... [13:13:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:04]Read from MH i2c: E2 [13:13:04]MH_I2C_Read... [13:13:04]Read from MH i2c: E2 0B 00 [13:13:04]MH_I2C_Read... [13:13:04]Read from MH i2c: E2 0B 00 E5 35 00 30 57 64 DA 24 75 60 41 90 00 95 [13:13:04]RAPDU: 30 57 64 DA 24 75 60 41 90 00 [13:13:04]wFMCommunicate OK [13:13:04]SAM_PROTO_SignData done [13:13:04]FM_MakeSignedData done [13:13:04]CreateOFDProtocolMessage [13:13:04]wFMCommunicate request_size=4 [13:13:04]MH_SAM_APDU [13:13:04]CAPDU: 80 11 00 00 [13:13:04]Write to MH i2c: E2 08 00 E6 35 80 11 00 00 00 00 00 00 95 [13:13:04]Write i2c OK [13:13:04]MH_I2C_Read... [13:13:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:05]Read from MH i2c: E2 [13:13:05]MH_I2C_Read... [13:13:05]Read from MH i2c: E2 17 00 [13:13:05]MH_I2C_Read... [13:13:05]Read from MH i2c: E2 17 00 E6 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 EC [13:13:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:13:05]wFMCommunicate OK [13:13:05]CreateOFDProtocolMessage done [13:13:05]OFDSenderStorePacket 228213 [13:13:05]StoreOFDPacket docnum=228213 [13:13:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 30 B1 01 01 5F 4C 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5C 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 B1 00 00 00 F4 03 04 00 E3 A4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 75 7B 03 00 35 04 06 00 6E D3 D1 6E 5A D1 30 57 64 DA 24 75 60 41 [13:13:05]CheckFolder [13:13:05]dirname=/storage/ofd_packets [13:13:05]CheckFolder done [13:13:05]ProducePacketName [13:13:05]name=ofd_packets/00228213 [13:13:05]NVStorageSaveData ofd_packets/00228213 [13:13:05]File name is /storage/ofd_packets/00228213 [13:13:05]Write 295 bytes [13:13:05]NVStorageSaveData done [13:13:05]OFDSenderStorePacket done [13:13:05]KKMCreateOFDPacket done [13:13:05]NVStorageSaveData kkm_last_timestamp [13:13:05]File name is /storage/kkm_last_timestamp [13:13:05]Write 4 bytes [13:13:05]NVStorageSaveData done [13:13:05]ExternCall_PrintAddStr [13:13:05]wPrintStart [13:13:05]Write to MH i2c: 01 00 00 E7 35 1C [13:13:05]Write i2c OK [13:13:05]MH_I2C_Read... [13:13:05]Read from MH i2c: 01 [13:13:05]MH_I2C_Read... [13:13:05]Read from MH i2c: 01 07 00 [13:13:05]MH_I2C_Read... [13:13:05]Read from MH i2c: 01 07 00 E7 35 00 00 00 00 00 FF 0F 31 [13:13:05]RasterBufferAndPrint [13:13:05]line Счет N : (1)1964661 [13:13:05]line ИНН: 02508201610067 [13:13:05]line Контрольно-Кассовый Чек [13:13:05]line ПРОДАЖА [13:13:05]line ТРК (МРК, ГНК) : 71 [13:13:05]line Товар: 2711129700 [13:13:05]line ГАЗ [13:13:05]line 10.290 * 38.90 [13:13:05]line = 400.28 [13:13:05]line НДС 12% НСП 1% [13:13:05]line > о реализуемом товаре [13:13:05]line ОКРУГЛЕНИЕ: -0.28 [13:13:05]line ИТОГО: 400.00 [13:13:05]line Внесено: 400.00 [13:13:05]line СДАЧА: 0.00 [13:13:05]line НСП 1% : 3.54 [13:13:05]line НДС 12% : 42.51 [13:13:05]line Наличными: 400.00 [13:13:05]line Безнал.: 0.00 [13:13:05]line Место: АЗС № 133 "Партнер Нефть" [13:13:05]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:13:05]line СНО: Общий режим [13:13:05]line Чек 177 22.10.2024 13:13 [13:13:05]line Смена: 535 ФФД: 1.0 [13:13:05]line ЗНМ: 0300000091 [13:13:05]line РНМ: 0000000000091685 [13:13:05]line Версия ККМ: 001 [13:13:05]line ФМ: 0000000000871839 [13:13:05]line ФД: 228213 [13:13:05]line ФПД: 121856030825169 [13:13:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131307&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228213&fm=121856030825169&tin=02508201610067®Number=0000000000091685&sum=40000 [13:13:05]OFD Sender: Processing packet 228213 [packets to send 38, broken 37] [13:13:05]ProducePacketName [13:13:05]name=ofd_packets/00228213 [13:13:05]OFD Sender: To server: pG, [13:13:05]CommunicateWithHost lk.salyk.kg:30040 [13:13:05]ConnectInit lk.salyk.kg [13:13:05]written 0, free lines is 4095 [13:13:05]Connected sock=10 [13:13:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 30 B1 01 01 5F 4C 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5C 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 B1 00 00 00 F4 03 04 00 E3 A4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 75 7B 03 00 35 04 06 00 6E D3 D1 6E 5A D1 30 57 64 DA 24 75 60 41 [13:13:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 E8 D7 47 00 AE 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 75 7B 03 00 F4 03 04 00 DB 4F 17 67 B6 04 01 00 00 10 3F 19 8D 51 0D CD 73 [13:13:05]CommunicateWithHost err = 0 [13:13:05]CheckOFDResponse [13:13:05]1017 (14) - 77093643461234 [13:13:05]1041 (16) - 0000000000871839 [13:13:05]1040 (4) - 228213 [13:13:05]1012 (4) - 22.10.2024 07:10 [13:13:05]1206 (1) - 0 [13:13:05]OFD Sender: Remove packet 228213 [13:13:05]ProducePacketName [13:13:05]name=ofd_packets/00228213 [13:13:05]NVStorageDeleteData [13:13:05]Write to MH i2c: 01 00 00 11 36 47 [13:13:05]Write i2c OK [13:13:05]MH_I2C_Read... [13:13:05]Read from MH i2c: 01 [13:13:05]MH_I2C_Read... [13:13:05]Read from MH i2c: 01 07 00 [13:13:05]MH_I2C_Read... [13:13:05]Read from MH i2c: 01 07 00 11 36 00 00 00 00 00 BA 0C 14 [13:13:05]RasterBufferAndPrint [13:13:05]line [13:13:05]line [13:13:05]line [13:13:05]line [13:13:05]line [13:13:05]written 0, free lines is 3263 [13:13:05]MH_Cut [13:13:05]Write to MH i2c: D1 01 00 18 36 01 20 [13:13:05]Write i2c OK [13:13:05]MH_I2C_Read... [13:13:05]Read from MH i2c: D1 [13:13:05]MH_I2C_Read... [13:13:05]Read from MH i2c: D1 01 00 [13:13:05]MH_I2C_Read... [13:13:05]Read from MH i2c: D1 01 00 18 36 00 1F [13:13:05]Write to MH i2c: 01 00 00 19 36 4F [13:13:05]Write i2c OK [13:13:05]MH_I2C_Read... [13:13:06]OFD Sender: No OFD packet to send [13:13:06]*** Cut start [13:13:06]*** Partial cut [13:13:06]*** CUTSNS_PIN = 1 [13:13:06]*** CUTSNS_PIN = 0 [13:13:06]*** Brake cut motor [13:13:07]Read from MH i2c: 01 [13:13:07]MH_I2C_Read... [13:13:07]*** Stop cut motor [13:13:07]*** Cut end [13:13:07]Read from MH i2c: 01 07 00 [13:13:07]MH_I2C_Read... [13:13:07]Read from MH i2c: 01 07 00 19 36 00 00 00 00 00 FF 0F 64 [13:13:07]process_action close_receipt done [13:13:07]requested_data is exist [13:13:07]produce_requested_data [13:13:07]requested_item fm.sn is exist - process it [13:13:07]wFMCommunicate request_size=4 [13:13:07]MH_SAM_APDU [13:13:07]CAPDU: 80 11 00 00 [13:13:07]Write to MH i2c: E2 08 00 1A 36 80 11 00 00 00 00 00 00 CA [13:13:07]Write i2c OK [13:13:07]MH_I2C_Read... [13:13:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:07]Read from MH i2c: E2 [13:13:07]MH_I2C_Read... [13:13:07]Read from MH i2c: E2 17 00 [13:13:07]MH_I2C_Read... [13:13:07]Read from MH i2c: E2 17 00 1A 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 21 [13:13:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:13:07]wFMCommunicate OK [13:13:07]requested_item fd.num is exist - process it [13:13:07]SAM_PROTO_GetFieldsCounters [13:13:07]wFMCommunicate request_size=4 [13:13:07]MH_SAM_APDU [13:13:07]CAPDU: 80 13 00 00 [13:13:07]Write to MH i2c: E2 08 00 1B 36 80 13 00 00 00 00 00 00 CD [13:13:07]Write i2c OK [13:13:07]MH_I2C_Read... [13:13:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:07]Read from MH i2c: E2 [13:13:07]MH_I2C_Read... [13:13:07]Read from MH i2c: E2 62 00 [13:13:07]MH_I2C_Read... [13:13:07]Read from MH i2c: E2 62 00 1B 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 75 7B 03 00 0E 04 04 00 17 02 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 15 [13:13:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 75 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:13:07]wFMCommunicate OK [13:13:07]SAM_PROTO_GetFieldsCounters done [13:13:07]requested_item shift.num is exist - process it [13:13:07]requested_item shift.opened is exist - process it [13:13:07]req_shift_opened [13:13:07]FM_GetShiftState [13:13:07]SAM_PROTO_GetShiftState [13:13:07]wFMCommunicate request_size=4 [13:13:07]MH_SAM_APDU [13:13:07]CAPDU: 80 13 01 00 [13:13:07]Write to MH i2c: E2 08 00 1C 36 80 13 01 00 00 00 00 00 CF [13:13:07]Write i2c OK [13:13:07]MH_I2C_Read... [13:13:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:07]Read from MH i2c: E2 [13:13:07]MH_I2C_Read... [13:13:07]Read from MH i2c: E2 0E 00 [13:13:07]MH_I2C_Read... [13:13:07]Read from MH i2c: E2 0E 00 1C 36 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 96 [13:13:07]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:13:07]wFMCommunicate OK [13:13:07]SAM_PROTO_GetShiftState done [13:13:07]FM_GetShiftState done [13:13:07]req_shift_opened done [13:13:07]requested_item shift.open_date is exist - process it [13:13:07]req_shift_open_date [13:13:07]req_shift_open_date done [13:13:07]produce_requested_data done [13:13:07]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228213,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:13:07]process_action_free close_receipt [13:13:07]json_value_free [13:13:07]json_value_free done [13:13:07]process_json_proto returns [13:13:07]Send response to host [13:13:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228213,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:13:07]free response buf [13:13:07]execute_script done [13:13:07]execute_script returns [13:13:07]free content buf [13:13:07]Sock 7.Close socket [13:13:07]Sock 7.Thread stoped [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:14:59]accept exits with 9 [13:14:59]New connection [13:14:59]New thread 3067137380 created [13:14:59]Thread 3066994020 joined [13:14:59]Waiting for new connection... [13:14:59] Sock 9.Parse request [13:14:59]Sock 9.Check first char [13:14:59]Sock 9.First char is OK [13:14:59]request: POST /json_proto HTTP/1.0 [13:14:59]Method: POST [13:14:59]URL: /json_proto [13:14:59]Method is POST - this is cgi request [13:14:59]url: /json_proto [13:14:59]query_string will be loaded in cgi processing [13:14:59]execute_cgi json_proto POST (null) [13:14:59]execute_cgi path=json_proto method=POST [13:14:59]POST find Content-Length [13:14:59]Host: 172.17.44.195:8080 [13:14:59]Content-Length: 678 [13:14:59]Content-Type: application/json [13:14:59] [13:14:59]POST finish read [13:14:59]Found Content-Length = 678 [13:14:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 1.620, "sum" : 120.20, "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" ] } } [13:14:59]execute_script... [13:14: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)1964663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 1.620, "sum" : 120.20, "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" ] } } [13:14:59]POST & json_proto [13:14:59]process_json_proto [13:14:59]json parsed OK: [13:14:59]protocol is kg_v1.0 [13:14:59]action value=close_receipt [13:14:59]process_action close_receipt [13:14:59]cmd_close_receipt [13:14:59]MH_GetDate [13:14:59]Write to MH i2c: F0 00 00 1D 36 42 [13:14:59]Write i2c OK [13:14:59]MH_I2C_Read... [13:14:59]Read from MH i2c: F0 [13:14:59]MH_I2C_Read... [13:14:59]Read from MH i2c: F0 09 00 [13:14:59]MH_I2C_Read... [13:14:59]Read from MH i2c: F0 09 00 1D 36 00 57 A5 17 67 82 C9 CF 66 45 [13:14:59]GetLastDocTimeStamp 1729602787 [13:14:59]current date 1729602903 [13:14:59]FM_GetShiftState [13:14:59]SAM_PROTO_GetShiftState [13:14:59]wFMCommunicate request_size=4 [13:14:59]MH_SAM_APDU [13:14:59]CAPDU: 80 13 01 00 [13:14:59]Write to MH i2c: E2 08 00 1E 36 80 13 01 00 00 00 00 00 D1 [13:14:59]Write i2c OK [13:14:59]MH_I2C_Read... [13:14:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:59]Read from MH i2c: E2 [13:14:59]MH_I2C_Read... [13:14:59]Read from MH i2c: E2 0E 00 [13:14:59]MH_I2C_Read... [13:14:59]Read from MH i2c: E2 0E 00 1E 36 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 98 [13:14:59]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:14:59]wFMCommunicate OK [13:14:59]SAM_PROTO_GetShiftState done [13:14:59]FM_GetShiftState done [13:14:59]opened in 1729555538 [13:14:59]opened+sec_in_day 1729641938 [13:14:59]quantity*price = 12020 [13:14:59]sum+1 = 12021 [13:14:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 120.00 Внесено: 120.00 СДАЧА: 0.00 НСП 1% : 1.06 НДС 12% : 12.76 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 178 22.10.2024 13:15 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228214 ФПД: 90212148054059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131503&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228214&fm=90212148054059&tin=02508201610067®Number=0000000000091685&sum=12000 [13:15:00]StoreToDocumentArchive [13:15:00]shift 535 fd 228214 [13:15:00]save to /storage/0535/doc_00228214 [13:15:00]save last doc name /storage/0535/doc_00228214 to /storage/kkm_last_doc_name [13:15:00]save OK [13:15:00]Clear old archive folders... [13:15:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:15:00]tlvbuf is 0085AFA0 [13:15:00]SAM_PROTO_ClearQueue [13:15:00]wFMCommunicate request_size=4 [13:15:00]MH_SAM_APDU [13:15:00]CAPDU: 80 09 00 00 [13:15:00]Write to MH i2c: E2 08 00 2B 36 80 09 00 00 00 00 00 00 D3 [13:15:00]Write i2c OK [13:15:00]MH_I2C_Read... [13:15:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:00]Read from MH i2c: E2 [13:15:00]MH_I2C_Read... [13:15:00]Read from MH i2c: E2 03 00 [13:15:00]MH_I2C_Read... [13:15:00]Read from MH i2c: E2 03 00 2B 36 00 90 00 D5 [13:15:00]RAPDU: 90 00 [13:15:00]wFMCommunicate OK [13:15:00]SAM_PROTO_ClearQueue done [13:15:00]KKMCreateOFDPacket [13:15:00]OFDProtocolAddRootSTLVToBuf [13:15:00]FM_MakeSignedData [13:15:00]FM_MakeSignedData [13:15:00]SAM_PROTO_SignData [13:15:00]wFMCommunicate request_size=4 [13:15:00]MH_SAM_APDU [13:15:00]CAPDU: 80 0D 01 02 [13:15:00]Write to MH i2c: E2 08 00 2C 36 80 0D 01 02 00 00 00 00 DB [13:15:00]Write i2c OK [13:15:00]MH_I2C_Read... [13:15:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:00]Read from MH i2c: E2 [13:15:00]MH_I2C_Read... [13:15:00]Read from MH i2c: E2 03 00 [13:15:00]MH_I2C_Read... [13:15:00]Read from MH i2c: E2 03 00 2C 36 00 90 00 D6 [13:15:00]RAPDU: 90 00 [13:15:00]wFMCommunicate OK [13:15:00]wFMCommunicate request_size=255 [13:15:00]MH_SAM_APDU [13:15: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 06 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F4 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 FC 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 B2 00 00 00 F4 03 04 00 57 A5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 76 7B 03 00 35 04 06 00 52 [13:15:00]Write to MH i2c: E2 02 01 2D 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 06 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F4 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 FC 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 B2 00 00 00 F4 03 04 00 57 A5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 76 7B 03 00 35 04 06 00 52 00 00 96 [13:15:00]Write i2c OK [13:15:00]MH_I2C_Read... [13:15:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:01]Read from MH i2c: E2 [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: E2 03 00 [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: E2 03 00 2D 36 00 90 00 D7 [13:15:01]RAPDU: 90 00 [13:15:01]wFMCommunicate OK [13:15:01]wFMCommunicate request_size=10 [13:15:01]MH_SAM_APDU [13:15:01]CAPDU: 80 0D 02 02 05 0C 27 0A 08 2B [13:15:01]Write to MH i2c: E2 0D 00 2E 36 80 0D 02 02 05 00 0C 27 0A 08 2B 00 00 58 [13:15:01]Write i2c OK [13:15:01]MH_I2C_Read... [13:15:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:01]Read from MH i2c: E2 [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: E2 03 00 [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: E2 03 00 2E 36 00 90 00 D8 [13:15:01]RAPDU: 90 00 [13:15:01]wFMCommunicate OK [13:15:01]wFMCommunicate request_size=4 [13:15:01]MH_SAM_APDU [13:15:01]CAPDU: 80 0D 03 02 [13:15:01]Write to MH i2c: E2 08 00 2F 36 80 0D 03 02 00 00 00 00 E0 [13:15:01]Write i2c OK [13:15:01]MH_I2C_Read... [13:15:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:01]Read from MH i2c: E2 [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: E2 0B 00 [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: E2 0B 00 2F 36 00 E4 C6 B9 27 4D E9 94 63 90 00 98 [13:15:01]RAPDU: E4 C6 B9 27 4D E9 94 63 90 00 [13:15:01]wFMCommunicate OK [13:15:01]SAM_PROTO_SignData done [13:15:01]FM_MakeSignedData done [13:15:01]CreateOFDProtocolMessage [13:15:01]wFMCommunicate request_size=4 [13:15:01]MH_SAM_APDU [13:15:01]CAPDU: 80 11 00 00 [13:15:01]Write to MH i2c: E2 08 00 30 36 80 11 00 00 00 00 00 00 E0 [13:15:01]Write i2c OK [13:15:01]MH_I2C_Read... [13:15:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:01]Read from MH i2c: E2 [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: E2 17 00 [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: E2 17 00 30 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 37 [13:15:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:15:01]wFMCommunicate OK [13:15:01]CreateOFDProtocolMessage done [13:15:01]OFDSenderStorePacket 228214 [13:15:01]StoreOFDPacket docnum=228214 [13:15:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 4B D1 07 01 3D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 06 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F4 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 FC 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 B2 00 00 00 F4 03 04 00 57 A5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 76 7B 03 00 35 04 06 00 52 0C 27 0A 08 2B E4 C6 B9 27 4D E9 94 63 [13:15:01]CheckFolder [13:15:01]dirname=/storage/ofd_packets [13:15:01]CheckFolder done [13:15:01]ProducePacketName [13:15:01]name=ofd_packets/00228214 [13:15:01]NVStorageSaveData ofd_packets/00228214 [13:15:01]File name is /storage/ofd_packets/00228214 [13:15:01]Write 301 bytes [13:15:01]NVStorageSaveData done [13:15:01]OFDSenderStorePacket done [13:15:01]KKMCreateOFDPacket done [13:15:01]NVStorageSaveData kkm_last_timestamp [13:15:01]File name is /storage/kkm_last_timestamp [13:15:01]Write 4 bytes [13:15:01]NVStorageSaveData done [13:15:01]ExternCall_PrintAddStr [13:15:01]wPrintStart [13:15:01]Write to MH i2c: 01 00 00 31 36 67 [13:15:01]Write i2c OK [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: 01 [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: 01 07 00 [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: 01 07 00 31 36 00 00 00 00 00 FF 0F 7C [13:15:01]RasterBufferAndPrint [13:15:01]line Счет N : (1)1964663 [13:15:01]line ИНН: 02508201610067 [13:15:01]line Контрольно-Кассовый Чек [13:15:01]line ПРОДАЖА [13:15:01]line ТРК (МРК, ГНК) : 34 [13:15:01]line Товар: 2710124500 [13:15:01]line Аи-95-К-5 [13:15:01]line 1.620 * 74.20 [13:15:01]line = 120.20 [13:15:01]line НДС 12% НСП 1% [13:15:01]line > о реализуемом товаре [13:15:01]line ОКРУГЛЕНИЕ: -0.20 [13:15:01]line ИТОГО: 120.00 [13:15:01]line Внесено: 120.00 [13:15:01]line СДАЧА: 0.00 [13:15:01]line НСП 1% : 1.06 [13:15:01]line НДС 12% : 12.76 [13:15:01]line Наличными: 120.00 [13:15:01]line Безнал.: 0.00 [13:15:01]line Место: АЗС № 133 "Партнер Нефть" [13:15:01]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:15:01]line СНО: Общий режим [13:15:01]line Чек 178 22.10.2024 13:15 [13:15:01]line Смена: 535 ФФД: 1.0 [13:15:01]line ЗНМ: 0300000091 [13:15:01]line РНМ: 0000000000091685 [13:15:01]line Версия ККМ: 001 [13:15:01]line ФМ: 0000000000871839 [13:15:01]line ФД: 228214 [13:15:01]line ФПД: 90212148054059 [13:15:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131503&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228214&fm=90212148054059&tin=02508201610067®Number=0000000000091685&sum=12000 [13:15:01]OFD Sender: Processing packet 228214 [packets to send 38, broken 37] [13:15:01]ProducePacketName [13:15:01]name=ofd_packets/00228214 [13:15:01]OFD Sender: To server: pG, [13:15:01]CommunicateWithHost lk.salyk.kg:30040 [13:15:01]ConnectInit lk.salyk.kg [13:15:01]written 0, free lines is 4095 [13:15:01]Connected sock=10 [13:15:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 4B D1 07 01 3D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 06 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F4 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 FC 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 B2 00 00 00 F4 03 04 00 57 A5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 76 7B 03 00 35 04 06 00 52 0C 27 0A 08 2B E4 C6 B9 27 4D E9 94 63 [13:15:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 F6 2B 47 00 8E F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 76 7B 03 00 F4 03 04 00 4F 50 17 67 B6 04 01 00 00 2E 88 13 DC 88 97 FA E5 [13:15:01]CommunicateWithHost err = 0 [13:15:01]CheckOFDResponse [13:15:01]1017 (14) - 77093643461234 [13:15:01]1041 (16) - 0000000000871839 [13:15:01]1040 (4) - 228214 [13:15:01]1012 (4) - 22.10.2024 07:12 [13:15:01]1206 (1) - 0 [13:15:01]OFD Sender: Remove packet 228214 [13:15:01]ProducePacketName [13:15:01]name=ofd_packets/00228214 [13:15:01]NVStorageDeleteData [13:15:01]Write to MH i2c: 01 00 00 5B 36 91 [13:15:01]Write i2c OK [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: 01 [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: 01 07 00 [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: 01 07 00 5B 36 00 00 00 00 00 B2 0C 56 [13:15:02]RasterBufferAndPrint [13:15:02]line [13:15:02]line [13:15:02]line [13:15:02]line [13:15:02]line [13:15:02]written 0, free lines is 3255 [13:15:02]MH_Cut [13:15:02]Write to MH i2c: D1 01 00 62 36 01 6A [13:15:02]Write i2c OK [13:15:02]MH_I2C_Read... [13:15:02]Read from MH i2c: D1 [13:15:02]MH_I2C_Read... [13:15:02]Read from MH i2c: D1 01 00 [13:15:02]MH_I2C_Read... [13:15:02]Read from MH i2c: D1 01 00 62 36 00 69 [13:15:02]Write to MH i2c: 01 00 00 63 36 99 [13:15:02]Write i2c OK [13:15:02]MH_I2C_Read... [13:15:02]OFD Sender: No OFD packet to send [13:15:02]*** Cut start [13:15:02]*** Partial cut [13:15:02]*** CUTSNS_PIN = 1 [13:15:02]*** CUTSNS_PIN = 0 [13:15:03]*** Brake cut motor [13:15:03]Read from MH i2c: 01 [13:15:03]MH_I2C_Read... [13:15:03]*** Stop cut motor [13:15:03]*** Cut end [13:15:03]Read from MH i2c: 01 07 00 [13:15:03]MH_I2C_Read... [13:15:03]Read from MH i2c: 01 07 00 63 36 00 00 00 00 00 FF 0F AE [13:15:03]process_action close_receipt done [13:15:03]requested_data is exist [13:15:03]produce_requested_data [13:15:03]requested_item fm.sn is exist - process it [13:15:03]wFMCommunicate request_size=4 [13:15:03]MH_SAM_APDU [13:15:03]CAPDU: 80 11 00 00 [13:15:03]Write to MH i2c: E2 08 00 64 36 80 11 00 00 00 00 00 00 14 [13:15:03]Write i2c OK [13:15:03]MH_I2C_Read... [13:15:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:03]Read from MH i2c: E2 [13:15:03]MH_I2C_Read... [13:15:03]Read from MH i2c: E2 17 00 [13:15:03]MH_I2C_Read... [13:15:03]Read from MH i2c: E2 17 00 64 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6B [13:15:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:15:03]wFMCommunicate OK [13:15:03]requested_item fd.num is exist - process it [13:15:03]SAM_PROTO_GetFieldsCounters [13:15:03]wFMCommunicate request_size=4 [13:15:03]MH_SAM_APDU [13:15:03]CAPDU: 80 13 00 00 [13:15:03]Write to MH i2c: E2 08 00 65 36 80 13 00 00 00 00 00 00 17 [13:15:03]Write i2c OK [13:15:03]MH_I2C_Read... [13:15:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:03]Read from MH i2c: E2 [13:15:03]MH_I2C_Read... [13:15:03]Read from MH i2c: E2 62 00 [13:15:03]MH_I2C_Read... [13:15:03]Read from MH i2c: E2 62 00 65 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 76 7B 03 00 0E 04 04 00 17 02 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 63 [13:15:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 76 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:15:03]wFMCommunicate OK [13:15:03]SAM_PROTO_GetFieldsCounters done [13:15:03]requested_item shift.num is exist - process it [13:15:03]requested_item shift.opened is exist - process it [13:15:03]req_shift_opened [13:15:03]FM_GetShiftState [13:15:03]SAM_PROTO_GetShiftState [13:15:03]wFMCommunicate request_size=4 [13:15:03]MH_SAM_APDU [13:15:03]CAPDU: 80 13 01 00 [13:15:03]Write to MH i2c: E2 08 00 66 36 80 13 01 00 00 00 00 00 19 [13:15:03]Write i2c OK [13:15:03]MH_I2C_Read... [13:15:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:03]Read from MH i2c: E2 [13:15:03]MH_I2C_Read... [13:15:03]Read from MH i2c: E2 0E 00 [13:15:03]MH_I2C_Read... [13:15:03]Read from MH i2c: E2 0E 00 66 36 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 E0 [13:15:03]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:15:03]wFMCommunicate OK [13:15:03]SAM_PROTO_GetShiftState done [13:15:03]FM_GetShiftState done [13:15:03]req_shift_opened done [13:15:03]requested_item shift.open_date is exist - process it [13:15:03]req_shift_open_date [13:15:03]req_shift_open_date done [13:15:03]produce_requested_data done [13:15:03]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228214,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:15:03]process_action_free close_receipt [13:15:03]json_value_free [13:15:03]json_value_free done [13:15:03]process_json_proto returns [13:15:03]Send response to host [13:15:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228214,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:15:03]free response buf [13:15:03]execute_script done [13:15:03]execute_script returns [13:15:03]free content buf [13:15:03]Sock 9.Close socket [13:15:03]Sock 9.Thread stoped [13:15:07]OFD Sender: No OFD packet to send [13:15:12]OFD Sender: No OFD packet to send [13:15:17]OFD Sender: No OFD packet to send [13:15:22]OFD Sender: No OFD packet to send [13:15:27]OFD Sender: No OFD packet to send [13:15:32]OFD Sender: No OFD packet to send [13:15:37]OFD Sender: No OFD packet to send [13:15:42]OFD Sender: No OFD packet to send [13:15:47]OFD Sender: No OFD packet to send [13:15:52]OFD Sender: No OFD packet to send [13:15:57]OFD Sender: No OFD packet to send [13:16:02]OFD Sender: No OFD packet to send [13:16:04]accept exits with 7 [13:16:04]New connection [13:16:04]New thread 3066994020 created [13:16:04]Thread 3067137380 joined [13:16:04]Waiting for new connection... [13:16:04] Sock 7.Parse request [13:16:04]Sock 7.Check first char [13:16:04]Sock 7.First char is OK [13:16:04]request: POST /json_proto HTTP/1.0 [13:16:04]Method: POST [13:16:04]URL: /json_proto [13:16:04]Method is POST - this is cgi request [13:16:04]url: /json_proto [13:16:04]query_string will be loaded in cgi processing [13:16:04]execute_cgi json_proto POST (null) [13:16:04]execute_cgi path=json_proto method=POST [13:16:04]POST find Content-Length [13:16:04]Host: 172.17.44.195:8080 [13:16:04]Content-Length: 664 [13:16:04]Content-Type: application/json [13:16:04] [13:16:04]POST finish read [13:16:04]Found Content-Length = 664 [13:16:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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:16:04]execute_script... [13:16:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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:16:04]POST & json_proto [13:16:04]process_json_proto [13:16:04]json parsed OK: [13:16:04]protocol is kg_v1.0 [13:16:04]action value=close_receipt [13:16:04]process_action close_receipt [13:16:04]cmd_close_receipt [13:16:04]MH_GetDate [13:16:04]Write to MH i2c: F0 00 00 67 36 8C [13:16:04]Write i2c OK [13:16:04]MH_I2C_Read... [13:16:04]Read from MH i2c: F0 [13:16:04]MH_I2C_Read... [13:16:04]Read from MH i2c: F0 09 00 [13:16:04]MH_I2C_Read... [13:16:04]Read from MH i2c: F0 09 00 67 36 00 98 A5 17 67 82 C9 CF 66 D0 [13:16:04]GetLastDocTimeStamp 1729602903 [13:16:04]current date 1729602968 [13:16:04]FM_GetShiftState [13:16:04]SAM_PROTO_GetShiftState [13:16:04]wFMCommunicate request_size=4 [13:16:04]MH_SAM_APDU [13:16:04]CAPDU: 80 13 01 00 [13:16:04]Write to MH i2c: E2 08 00 68 36 80 13 01 00 00 00 00 00 1B [13:16:04]Write i2c OK [13:16:04]MH_I2C_Read... [13:16:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:04]Read from MH i2c: E2 [13:16:04]MH_I2C_Read... [13:16:04]Read from MH i2c: E2 0E 00 [13:16:04]MH_I2C_Read... [13:16:04]Read from MH i2c: E2 0E 00 68 36 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 E2 [13:16:04]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:16:04]wFMCommunicate OK [13:16:04]SAM_PROTO_GetShiftState done [13:16:04]FM_GetShiftState done [13:16:04]opened in 1729555538 [13:16:04]opened+sec_in_day 1729641938 [13:16:04]quantity*price = 100000 [13:16:04]sum+1 = 100002 [13:16:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 179 22.10.2024 13:16 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228215 ФПД: 102099402679166 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131609&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228215&fm=102099402679166&tin=02508201610067®Number=0000000000091685&sum=100000 [13:16:05]StoreToDocumentArchive [13:16:05]shift 535 fd 228215 [13:16:05]save to /storage/0535/doc_00228215 [13:16:05]save last doc name /storage/0535/doc_00228215 to /storage/kkm_last_doc_name [13:16:05]save OK [13:16:05]Clear old archive folders... [13:16:05]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:16:05]tlvbuf is 0093A2F0 [13:16:05]SAM_PROTO_ClearQueue [13:16:05]wFMCommunicate request_size=4 [13:16:05]MH_SAM_APDU [13:16:05]CAPDU: 80 09 00 00 [13:16:05]Write to MH i2c: E2 08 00 75 36 80 09 00 00 00 00 00 00 1D [13:16:05]Write i2c OK [13:16:05]MH_I2C_Read... [13:16:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:16:06]Read from MH i2c: E2 [13:16:06]MH_I2C_Read... [13:16:06]Read from MH i2c: E2 03 00 [13:16:06]MH_I2C_Read... [13:16:06]Read from MH i2c: E2 03 00 75 36 00 90 00 1F [13:16:06]RAPDU: 90 00 [13:16:06]wFMCommunicate OK [13:16:06]SAM_PROTO_ClearQueue done [13:16:06]KKMCreateOFDPacket [13:16:06]OFDProtocolAddRootSTLVToBuf [13:16:06]FM_MakeSignedData [13:16:06]FM_MakeSignedData [13:16:06]SAM_PROTO_SignData [13:16:06]wFMCommunicate request_size=4 [13:16:06]MH_SAM_APDU [13:16:06]CAPDU: 80 0D 01 02 [13:16:06]Write to MH i2c: E2 08 00 76 36 80 0D 01 02 00 00 00 00 25 [13:16:06]Write i2c OK [13:16:06]MH_I2C_Read... [13:16:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:16:06]Read from MH i2c: E2 [13:16:06]MH_I2C_Read... [13:16:06]Read from MH i2c: E2 03 00 [13:16:06]MH_I2C_Read... [13:16:06]Read from MH i2c: E2 03 00 76 36 00 90 00 20 [13:16:06]RAPDU: 90 00 [13:16:06]wFMCommunicate OK [13:16:06]wFMCommunicate request_size=253 [13:16:06]MH_SAM_APDU [13:16:06]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 99 A5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 77 7B 03 00 35 04 06 00 5C DB DE A0 E3 7E [13:16:06]Write to MH i2c: E2 00 01 77 36 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 99 A5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 77 7B 03 00 35 04 06 00 5C DB DE A0 E3 7E 00 00 32 [13:16:06]Write i2c OK [13:16:06]MH_I2C_Read... [13:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:06]Read from MH i2c: E2 [13:16:06]MH_I2C_Read... [13:16:06]Read from MH i2c: E2 03 00 [13:16:06]MH_I2C_Read... [13:16:06]Read from MH i2c: E2 03 00 77 36 00 90 00 21 [13:16:06]RAPDU: 90 00 [13:16:06]wFMCommunicate OK [13:16:06]wFMCommunicate request_size=4 [13:16:06]MH_SAM_APDU [13:16:06]CAPDU: 80 0D 03 02 [13:16:06]Write to MH i2c: E2 08 00 78 36 80 0D 03 02 00 00 00 00 29 [13:16:06]Write i2c OK [13:16:06]MH_I2C_Read... [13:16:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:16:06]Read from MH i2c: E2 [13:16:06]MH_I2C_Read... [13:16:06]Read from MH i2c: E2 0B 00 [13:16:06]MH_I2C_Read... [13:16:06]Read from MH i2c: E2 0B 00 78 36 00 91 4B E7 7C 41 D5 DE 30 90 00 8D [13:16:06]RAPDU: 91 4B E7 7C 41 D5 DE 30 90 00 [13:16:06]wFMCommunicate OK [13:16:06]SAM_PROTO_SignData done [13:16:06]FM_MakeSignedData done [13:16:06]CreateOFDProtocolMessage [13:16:06]wFMCommunicate request_size=4 [13:16:06]MH_SAM_APDU [13:16:06]CAPDU: 80 11 00 00 [13:16:06]Write to MH i2c: E2 08 00 79 36 80 11 00 00 00 00 00 00 29 [13:16:06]Write i2c OK [13:16:06]MH_I2C_Read... [13:16:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:06]Read from MH i2c: E2 [13:16:06]MH_I2C_Read... [13:16:06]Read from MH i2c: E2 17 00 [13:16:06]MH_I2C_Read... [13:16:06]Read from MH i2c: E2 17 00 79 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 80 [13:16:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:16:06]wFMCommunicate OK [13:16:06]CreateOFDProtocolMessage done [13:16:06]OFDSenderStorePacket 228215 [13:16:06]StoreOFDPacket docnum=228215 [13:16:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 4E A7 00 01 F2 76 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 99 A5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 77 7B 03 00 35 04 06 00 5C DB DE A0 E3 7E 91 4B E7 7C 41 D5 DE 30 [13:16:06]CheckFolder [13:16:06]dirname=/storage/ofd_packets [13:16:06]CheckFolder done [13:16:06]ProducePacketName [13:16:06]name=ofd_packets/00228215 [13:16:06]NVStorageSaveData ofd_packets/00228215 [13:16:06]File name is /storage/ofd_packets/00228215 [13:16:06]Write 294 bytes [13:16:06]NVStorageSaveData done [13:16:06]OFDSenderStorePacket done [13:16:06]KKMCreateOFDPacket done [13:16:06]NVStorageSaveData kkm_last_timestamp [13:16:06]File name is /storage/kkm_last_timestamp [13:16:06]Write 4 bytes [13:16:06]NVStorageSaveData done [13:16:06]ExternCall_PrintAddStr [13:16:06]wPrintStart [13:16:06]Write to MH i2c: 01 00 00 7A 36 B0 [13:16:06]Write i2c OK [13:16:06]MH_I2C_Read... [13:16:06]Read from MH i2c: 01 [13:16:06]MH_I2C_Read... [13:16:06]Read from MH i2c: 01 07 00 [13:16:06]MH_I2C_Read... [13:16:06]Read from MH i2c: 01 07 00 7A 36 00 00 00 00 00 FF 0F C5 [13:16:06]RasterBufferAndPrint [13:16:06]line Счет N : (1)1964664 [13:16:06]line ИНН: 02508201610067 [13:16:06]line Контрольно-Кассовый Чек [13:16:06]line ПРОДАЖА [13:16:06]line ТРК (МРК, ГНК) : 42 [13:16:06]line Товар: 2710124130 [13:16:06]line SU-92 [13:16:06]line 14.620 * 68.40 [13:16:06]line = 1000.01 [13:16:06]line НДС 12% НСП 1% [13:16:06]line > о реализуемом товаре [13:16:06]line ОКРУГЛЕНИЕ: -0.01 [13:16:06]line ИТОГО: 1000.00 [13:16:06]line Внесено: 1000.00 [13:16:06]line СДАЧА: 0.00 [13:16:06]line НСП 1% : 8.85 [13:16:06]line НДС 12% : 106.20 [13:16:06]line Наличными: 1000.00 [13:16:06]line Безнал.: 0.00 [13:16:06]line Место: АЗС № 133 "Партнер Нефть" [13:16:06]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:16:06]line СНО: Общий режим [13:16:06]line Чек 179 22.10.2024 13:16 [13:16:06]line Смена: 535 ФФД: 1.0 [13:16:06]line ЗНМ: 0300000091 [13:16:06]line РНМ: 0000000000091685 [13:16:06]line Версия ККМ: 001 [13:16:06]line ФМ: 0000000000871839 [13:16:06]line ФД: 228215 [13:16:06]line ФПД: 102099402679166 [13:16:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131609&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228215&fm=102099402679166&tin=02508201610067®Number=0000000000091685&sum=100000 [13:16:06]OFD Sender: Processing packet 228215 [packets to send 38, broken 37] [13:16:06]ProducePacketName [13:16:06]name=ofd_packets/00228215 [13:16:06]OFD Sender: To server: pG, [13:16:06]CommunicateWithHost lk.salyk.kg:30040 [13:16:06]ConnectInit lk.salyk.kg [13:16:06]written 0, free lines is 4095 [13:16:06]Connected sock=10 [13:16:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 4E A7 00 01 F2 76 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 99 A5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 77 7B 03 00 35 04 06 00 5C DB DE A0 E3 7E 91 4B E7 7C 41 D5 DE 30 [13:16:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 7E 82 47 00 90 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 77 7B 03 00 F4 03 04 00 91 50 17 67 B6 04 01 00 00 03 EB 14 08 14 1B 47 42 [13:16:07]CommunicateWithHost err = 0 [13:16:07]CheckOFDResponse [13:16:07]1017 (14) - 77093643461234 [13:16:07]1041 (16) - 0000000000871839 [13:16:07]1040 (4) - 228215 [13:16:07]1012 (4) - 22.10.2024 07:13 [13:16:07]1206 (1) - 0 [13:16:07]OFD Sender: Remove packet 228215 [13:16:07]ProducePacketName [13:16:07]name=ofd_packets/00228215 [13:16:07]NVStorageDeleteData [13:16:07]Write to MH i2c: 01 00 00 A4 36 DA [13:16:07]Write i2c OK [13:16:07]MH_I2C_Read... [13:16:07]Read from MH i2c: 01 [13:16:07]MH_I2C_Read... [13:16:07]Read from MH i2c: 01 07 00 [13:16:07]MH_I2C_Read... [13:16:07]Read from MH i2c: 01 07 00 A4 36 00 00 00 00 00 C8 0C B5 [13:16:07]RasterBufferAndPrint [13:16:07]line [13:16:07]line [13:16:07]line [13:16:07]line [13:16:07]line [13:16:07]written 0, free lines is 3276 [13:16:07]MH_Cut [13:16:07]Write to MH i2c: D1 01 00 AB 36 01 B3 [13:16:07]Write i2c OK [13:16:07]MH_I2C_Read... [13:16:07]Read from MH i2c: D1 [13:16:07]MH_I2C_Read... [13:16:07]Read from MH i2c: D1 01 00 [13:16:07]MH_I2C_Read... [13:16:07]Read from MH i2c: D1 01 00 AB 36 00 B2 [13:16:07]Write to MH i2c: 01 00 00 AC 36 E2 [13:16:07]Write i2c OK [13:16:07]MH_I2C_Read... [13:16:07]OFD Sender: No OFD packet to send [13:16:08]*** Cut start [13:16:08]*** Partial cut [13:16:08]*** CUTSNS_PIN = 1 [13:16:08]*** CUTSNS_PIN = 0 [13:16:08]*** Brake cut motor [13:16:08]Read from MH i2c: 01 [13:16:08]MH_I2C_Read... [13:16:08]*** Stop cut motor [13:16:08]*** Cut end [13:16:08]Read from MH i2c: 01 07 00 [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: 01 07 00 AC 36 00 00 00 00 00 FF 0F F7 [13:16:08]process_action close_receipt done [13:16:08]requested_data is exist [13:16:08]produce_requested_data [13:16:08]requested_item fm.sn is exist - process it [13:16:08]wFMCommunicate request_size=4 [13:16:08]MH_SAM_APDU [13:16:08]CAPDU: 80 11 00 00 [13:16:08]Write to MH i2c: E2 08 00 AD 36 80 11 00 00 00 00 00 00 5D [13:16:08]Write i2c OK [13:16:08]MH_I2C_Read... [13:16:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:08]Read from MH i2c: E2 [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: E2 17 00 [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: E2 17 00 AD 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B4 [13:16:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:16:08]wFMCommunicate OK [13:16:08]requested_item fd.num is exist - process it [13:16:08]SAM_PROTO_GetFieldsCounters [13:16:08]wFMCommunicate request_size=4 [13:16:08]MH_SAM_APDU [13:16:08]CAPDU: 80 13 00 00 [13:16:08]Write to MH i2c: E2 08 00 AE 36 80 13 00 00 00 00 00 00 60 [13:16:08]Write i2c OK [13:16:08]MH_I2C_Read... [13:16:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:16:08]Read from MH i2c: E2 [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: E2 62 00 [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: E2 62 00 AE 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 77 7B 03 00 0E 04 04 00 17 02 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 B0 [13:16:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 77 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:16:08]wFMCommunicate OK [13:16:08]SAM_PROTO_GetFieldsCounters done [13:16:08]requested_item shift.num is exist - process it [13:16:08]requested_item shift.opened is exist - process it [13:16:08]req_shift_opened [13:16:08]FM_GetShiftState [13:16:08]SAM_PROTO_GetShiftState [13:16:08]wFMCommunicate request_size=4 [13:16:08]MH_SAM_APDU [13:16:08]CAPDU: 80 13 01 00 [13:16:08]Write to MH i2c: E2 08 00 AF 36 80 13 01 00 00 00 00 00 62 [13:16:08]Write i2c OK [13:16:08]MH_I2C_Read... [13:16:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:08]Read from MH i2c: E2 [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: E2 0E 00 [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: E2 0E 00 AF 36 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 29 [13:16:08]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:16:08]wFMCommunicate OK [13:16:08]SAM_PROTO_GetShiftState done [13:16:08]FM_GetShiftState done [13:16:08]req_shift_opened done [13:16:08]requested_item shift.open_date is exist - process it [13:16:08]req_shift_open_date [13:16:08]req_shift_open_date done [13:16:08]produce_requested_data done [13:16:08]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228215,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:16:08]process_action_free close_receipt [13:16:08]json_value_free [13:16:08]json_value_free done [13:16:08]process_json_proto returns [13:16:08]Send response to host [13:16:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228215,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:16:08]free response buf [13:16:08]execute_script done [13:16:08]execute_script returns [13:16:08]free content buf [13:16:08]Sock 7.Close socket [13:16:08]Sock 7.Thread stoped [13:16:12]OFD Sender: No OFD packet to send [13:16:17]OFD Sender: No OFD packet to send [13:16:22]OFD Sender: No OFD packet to send [13:16:27]OFD Sender: No OFD packet to send [13:16:32]OFD Sender: No OFD packet to send [13:16:37]OFD Sender: No OFD packet to send [13:16:42]OFD Sender: No OFD packet to send [13:16:47]OFD Sender: No OFD packet to send [13:16:52]OFD Sender: No OFD packet to send [13:16:57]OFD Sender: No OFD packet to send [13:17:02]OFD Sender: No OFD packet to send [13:17:07]OFD Sender: No OFD packet to send [13:17:12]OFD Sender: No OFD packet to send [13:17:17]OFD Sender: No OFD packet to send [13:17:22]OFD Sender: No OFD packet to send [13:17:27]OFD Sender: No OFD packet to send [13:17:32]OFD Sender: No OFD packet to send [13:17:37]OFD Sender: No OFD packet to send [13:17:42]OFD Sender: No OFD packet to send [13:17:47]OFD Sender: No OFD packet to send [13:17:52]OFD Sender: No OFD packet to send [13:17:57]OFD Sender: No OFD packet to send [13:18:02]OFD Sender: No OFD packet to send [13:18:07]OFD Sender: No OFD packet to send [13:18:12]OFD Sender: No OFD packet to send [13:18:17]OFD Sender: No OFD packet to send [13:18:20]accept exits with 9 [13:18:20]New connection [13:18:20]New thread 3067137380 created [13:18:20]Thread 3066994020 joined [13:18:20]Waiting for new connection... [13:18:20] Sock 9.Parse request [13:18:20]Sock 9.Check first char [13:18:20]Sock 9.First char is OK [13:18:20]request: POST /json_proto HTTP/1.0 [13:18:20]Method: POST [13:18:20]URL: /json_proto [13:18:20]Method is POST - this is cgi request [13:18:20]url: /json_proto [13:18:20]query_string will be loaded in cgi processing [13:18:20]execute_cgi json_proto POST (null) [13:18:20]execute_cgi path=json_proto method=POST [13:18:20]POST find Content-Length [13:18:20]Host: 172.17.44.195:8080 [13:18:20]Content-Length: 678 [13:18:20]Content-Type: application/json [13:18:20] [13:18:20]POST finish read [13:18:20]Found Content-Length = 678 [13:18:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:18:20]execute_script... [13: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)1964665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:18:20]POST & json_proto [13:18:20]process_json_proto [13:18:20]json parsed OK: [13:18:20]protocol is kg_v1.0 [13:18:20]action value=close_receipt [13:18:20]process_action close_receipt [13:18:20]cmd_close_receipt [13:18:20]MH_GetDate [13:18:20]Write to MH i2c: F0 00 00 B0 36 D5 [13:18:20]Write i2c OK [13:18:20]MH_I2C_Read... [13:18:20]Read from MH i2c: F0 [13:18:20]MH_I2C_Read... [13:18:20]Read from MH i2c: F0 09 00 [13:18:20]MH_I2C_Read... [13:18:20]Read from MH i2c: F0 09 00 B0 36 00 20 A6 17 67 82 C9 CF 66 A2 [13:18:20]GetLastDocTimeStamp 1729602969 [13:18:20]current date 1729603104 [13:18:20]FM_GetShiftState [13:18:20]SAM_PROTO_GetShiftState [13:18:20]wFMCommunicate request_size=4 [13:18:20]MH_SAM_APDU [13:18:20]CAPDU: 80 13 01 00 [13:18:20]Write to MH i2c: E2 08 00 B1 36 80 13 01 00 00 00 00 00 64 [13:18:20]Write i2c OK [13:18:20]MH_I2C_Read... [13:18:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:20]Read from MH i2c: E2 [13:18:20]MH_I2C_Read... [13:18:20]Read from MH i2c: E2 0E 00 [13:18:20]MH_I2C_Read... [13:18:20]Read from MH i2c: E2 0E 00 B1 36 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 2B [13:18:20]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:18:20]wFMCommunicate OK [13:18:20]SAM_PROTO_GetShiftState done [13:18:20]FM_GetShiftState done [13:18:20]opened in 1729555538 [13:18:20]opened+sec_in_day 1729641938 [13:18:20]quantity*price = 50041 [13:18:20]sum+1 = 50042 [13:18:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 180 22.10.2024 13:18 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228216 ФПД: 133100986269419 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131824&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228216&fm=133100986269419&tin=02508201610067®Number=0000000000091685&sum=50000 [13:18:21]StoreToDocumentArchive [13:18:21]shift 535 fd 228216 [13:18:21]save to /storage/0535/doc_00228216 [13:18:21]save last doc name /storage/0535/doc_00228216 to /storage/kkm_last_doc_name [13:18:21]save OK [13:18:21]Clear old archive folders... [13:18:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:18:21]tlvbuf is 008B1AD0 [13:18:21]SAM_PROTO_ClearQueue [13:18:21]wFMCommunicate request_size=4 [13:18:21]MH_SAM_APDU [13:18:21]CAPDU: 80 09 00 00 [13:18:21]Write to MH i2c: E2 08 00 BE 36 80 09 00 00 00 00 00 00 66 [13:18:21]Write i2c OK [13:18:21]MH_I2C_Read... [13:18:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:18:21]Read from MH i2c: E2 [13:18:21]MH_I2C_Read... [13:18:21]Read from MH i2c: E2 03 00 [13:18:21]MH_I2C_Read... [13:18:21]Read from MH i2c: E2 03 00 BE 36 00 90 00 68 [13:18:21]RAPDU: 90 00 [13:18:21]wFMCommunicate OK [13:18:21]SAM_PROTO_ClearQueue done [13:18:21]KKMCreateOFDPacket [13:18:21]OFDProtocolAddRootSTLVToBuf [13:18:21]FM_MakeSignedData [13:18:21]FM_MakeSignedData [13:18:21]SAM_PROTO_SignData [13:18:21]wFMCommunicate request_size=4 [13:18:21]MH_SAM_APDU [13:18:21]CAPDU: 80 0D 01 02 [13:18:21]Write to MH i2c: E2 08 00 BF 36 80 0D 01 02 00 00 00 00 6E [13:18:21]Write i2c OK [13:18:21]MH_I2C_Read... [13:18:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:18:21]Read from MH i2c: E2 [13:18:21]MH_I2C_Read... [13:18:21]Read from MH i2c: E2 03 00 [13:18:21]MH_I2C_Read... [13:18:21]Read from MH i2c: E2 03 00 BF 36 00 90 00 69 [13:18:21]RAPDU: 90 00 [13:18:21]wFMCommunicate OK [13:18:21]wFMCommunicate request_size=255 [13:18:21]MH_SAM_APDU [13:18: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 20 A6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 78 7B 03 00 35 04 06 00 79 [13:18:21]Write to MH i2c: E2 02 01 C0 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 20 A6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 78 7B 03 00 35 04 06 00 79 00 00 85 [13:18:22]Write i2c OK [13:18:22]MH_I2C_Read... [13:18:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:22]Read from MH i2c: E2 [13:18:22]MH_I2C_Read... [13:18:22]Read from MH i2c: E2 03 00 [13:18:22]MH_I2C_Read... [13:18:22]Read from MH i2c: E2 03 00 C0 36 00 90 00 6A [13:18:22]RAPDU: 90 00 [13:18:22]wFMCommunicate OK [13:18:22]wFMCommunicate request_size=10 [13:18:22]MH_SAM_APDU [13:18:22]CAPDU: 80 0D 02 02 05 0D FD 01 7E EB [13:18:22]Write to MH i2c: E2 0D 00 C1 36 80 0D 02 02 05 00 0D FD 01 7E EB 00 00 EF [13:18:22]Write i2c OK [13:18:22]MH_I2C_Read... [13:18:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:22]Read from MH i2c: E2 [13:18:22]MH_I2C_Read... [13:18:22]Read from MH i2c: E2 03 00 [13:18:22]MH_I2C_Read... [13:18:22]Read from MH i2c: E2 03 00 C1 36 00 90 00 6B [13:18:22]RAPDU: 90 00 [13:18:22]wFMCommunicate OK [13:18:22]wFMCommunicate request_size=4 [13:18:22]MH_SAM_APDU [13:18:22]CAPDU: 80 0D 03 02 [13:18:22]Write to MH i2c: E2 08 00 C2 36 80 0D 03 02 00 00 00 00 73 [13:18:22]Write i2c OK [13:18:22]MH_I2C_Read... [13:18:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:18:22]Read from MH i2c: E2 [13:18:22]MH_I2C_Read... [13:18:22]Read from MH i2c: E2 0B 00 [13:18:22]MH_I2C_Read... [13:18:22]Read from MH i2c: E2 0B 00 C2 36 00 07 75 81 2D 7F A6 EC 8B 90 00 3A [13:18:22]RAPDU: 07 75 81 2D 7F A6 EC 8B 90 00 [13:18:22]wFMCommunicate OK [13:18:22]SAM_PROTO_SignData done [13:18:22]FM_MakeSignedData done [13:18:22]CreateOFDProtocolMessage [13:18:22]wFMCommunicate request_size=4 [13:18:22]MH_SAM_APDU [13:18:22]CAPDU: 80 11 00 00 [13:18:22]Write to MH i2c: E2 08 00 C3 36 80 11 00 00 00 00 00 00 73 [13:18:22]Write i2c OK [13:18:22]MH_I2C_Read... [13:18:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:22]Read from MH i2c: E2 [13:18:22]MH_I2C_Read... [13:18:22]Read from MH i2c: E2 17 00 [13:18:22]MH_I2C_Read... [13:18:22]Read from MH i2c: E2 17 00 C3 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CA [13:18:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:18:22]wFMCommunicate OK [13:18:22]CreateOFDProtocolMessage done [13:18:22]OFDSenderStorePacket 228216 [13:18:22]StoreOFDPacket docnum=228216 [13:18:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 3E 4C 07 01 7E D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 20 A6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 78 7B 03 00 35 04 06 00 79 0D FD 01 7E EB 07 75 81 2D 7F A6 EC 8B [13:18:22]CheckFolder [13:18:22]dirname=/storage/ofd_packets [13:18:22]CheckFolder done [13:18:22]ProducePacketName [13:18:22]name=ofd_packets/00228216 [13:18:22]NVStorageSaveData ofd_packets/00228216 [13:18:22]File name is /storage/ofd_packets/00228216 [13:18:22]Write 301 bytes [13:18:22]NVStorageSaveData done [13:18:22]OFDSenderStorePacket done [13:18:22]KKMCreateOFDPacket done [13:18:22]NVStorageSaveData kkm_last_timestamp [13:18:22]File name is /storage/kkm_last_timestamp [13:18:22]Write 4 bytes [13:18:22]NVStorageSaveData done [13:18:22]ExternCall_PrintAddStr [13:18:22]wPrintStart [13:18:22]Write to MH i2c: 01 00 00 C4 36 FA [13:18:22]Write i2c OK [13:18:22]MH_I2C_Read... [13:18:22]Read from MH i2c: 01 [13:18:22]MH_I2C_Read... [13:18:22]Read from MH i2c: 01 07 00 [13:18:22]MH_I2C_Read... [13:18:22]Read from MH i2c: 01 07 00 C4 36 00 00 00 00 00 FF 0F 0F [13:18:22]RasterBufferAndPrint [13:18:22]line Счет N : (1)1964665 [13:18:22]line ИНН: 02508201610067 [13:18:22]line Контрольно-Кассовый Чек [13:18:22]line ПРОДАЖА [13:18:22]line ТРК (МРК, ГНК) : 33 [13:18:22]line Товар: 2710124130 [13:18:22]line Аи-92-К-5 [13:18:22]line 7.480 * 66.90 [13:18:22]line = 500.41 [13:18:22]line НДС 12% НСП 1% [13:18:22]line > о реализуемом товаре [13:18:22]line ОКРУГЛЕНИЕ: -0.41 [13:18:22]line ИТОГО: 500.00 [13:18:22]line Внесено: 500.00 [13:18:22]line СДАЧА: 0.00 [13:18:22]line НСП 1% : 4.43 [13:18:22]line НДС 12% : 53.14 [13:18:22]line Наличными: 500.00 [13:18:22]line Безнал.: 0.00 [13:18:22]line Место: АЗС № 133 "Партнер Нефть" [13:18:22]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:18:22]line СНО: Общий режим [13:18:22]line Чек 180 22.10.2024 13:18 [13:18:22]line Смена: 535 ФФД: 1.0 [13:18:22]line ЗНМ: 0300000091 [13:18:22]line РНМ: 0000000000091685 [13:18:22]line Версия ККМ: 001 [13:18:22]line ФМ: 0000000000871839 [13:18:22]line ФД: 228216 [13:18:22]line ФПД: 133100986269419 [13:18:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131824&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228216&fm=133100986269419&tin=02508201610067®Number=0000000000091685&sum=50000 [13:18:22]OFD Sender: Processing packet 228216 [packets to send 38, broken 37] [13:18:22]ProducePacketName [13:18:22]name=ofd_packets/00228216 [13:18:22]OFD Sender: To server: pG, [13:18:22]CommunicateWithHost lk.salyk.kg:30040 [13:18:22]ConnectInit lk.salyk.kg [13:18:22]written 0, free lines is 4095 [13:18:22]Connected sock=10 [13:18:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 3E 4C 07 01 7E D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 20 A6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 78 7B 03 00 35 04 06 00 79 0D FD 01 7E EB 07 75 81 2D 7F A6 EC 8B [13:18:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 7A B9 47 00 F0 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 78 7B 03 00 F4 03 04 00 19 51 17 67 B6 04 01 00 00 35 8D 20 FD 4F BF C6 CC [13:18:23]CommunicateWithHost err = 0 [13:18:23]CheckOFDResponse [13:18:23]1017 (14) - 77093643461234 [13:18:23]1041 (16) - 0000000000871839 [13:18:23]1040 (4) - 228216 [13:18:23]1012 (4) - 22.10.2024 07:15 [13:18:23]1206 (1) - 0 [13:18:23]OFD Sender: Remove packet 228216 [13:18:23]ProducePacketName [13:18:23]name=ofd_packets/00228216 [13:18:23]NVStorageDeleteData [13:18:23]Write to MH i2c: 01 00 00 EE 36 24 [13:18:23]Write i2c OK [13:18:23]MH_I2C_Read... [13:18:23]Read from MH i2c: 01 [13:18:23]MH_I2C_Read... [13:18:23]Read from MH i2c: 01 07 00 [13:18:23]MH_I2C_Read... [13:18:23]Read from MH i2c: 01 07 00 EE 36 00 00 00 00 00 BB 0C F2 [13:18:23]RasterBufferAndPrint [13:18:23]line [13:18:23]line [13:18:23]line [13:18:23]line [13:18:23]line [13:18:23]written 0, free lines is 3265 [13:18:23]MH_Cut [13:18:23]Write to MH i2c: D1 01 00 F5 36 01 FD [13:18:23]Write i2c OK [13:18:23]MH_I2C_Read... [13:18:23]Read from MH i2c: D1 [13:18:23]MH_I2C_Read... [13:18:23]Read from MH i2c: D1 01 00 [13:18:23]MH_I2C_Read... [13:18:23]Read from MH i2c: D1 01 00 F5 36 00 FC [13:18:23]Write to MH i2c: 01 00 00 F6 36 2C [13:18:23]Write i2c OK [13:18:23]MH_I2C_Read... [13:18:23]OFD Sender: No OFD packet to send [13:18:24]*** Cut start [13:18:24]*** Partial cut [13:18:24]*** CUTSNS_PIN = 1 [13:18:24]*** CUTSNS_PIN = 0 [13:18:24]*** Brake cut motor [13:18:24]Read from MH i2c: 01 [13:18:24]MH_I2C_Read... [13:18:24]*** Stop cut motor [13:18:24]*** Cut end [13:18:24]Read from MH i2c: 01 07 00 [13:18:24]MH_I2C_Read... [13:18:24]Read from MH i2c: 01 07 00 F6 36 00 00 00 00 00 FF 0F 41 [13:18:24]process_action close_receipt done [13:18:24]requested_data is exist [13:18:24]produce_requested_data [13:18:24]requested_item fm.sn is exist - process it [13:18:24]wFMCommunicate request_size=4 [13:18:24]MH_SAM_APDU [13:18:24]CAPDU: 80 11 00 00 [13:18:24]Write to MH i2c: E2 08 00 F7 36 80 11 00 00 00 00 00 00 A7 [13:18:24]Write i2c OK [13:18:24]MH_I2C_Read... [13:18:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:24]Read from MH i2c: E2 [13:18:24]MH_I2C_Read... [13:18:24]Read from MH i2c: E2 17 00 [13:18:24]MH_I2C_Read... [13:18:24]Read from MH i2c: E2 17 00 F7 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FE [13:18:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:18:24]wFMCommunicate OK [13:18:24]requested_item fd.num is exist - process it [13:18:24]SAM_PROTO_GetFieldsCounters [13:18:24]wFMCommunicate request_size=4 [13:18:24]MH_SAM_APDU [13:18:24]CAPDU: 80 13 00 00 [13:18:24]Write to MH i2c: E2 08 00 F8 36 80 13 00 00 00 00 00 00 AA [13:18:24]Write i2c OK [13:18:24]MH_I2C_Read... [13:18:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:18:24]Read from MH i2c: E2 [13:18:24]MH_I2C_Read... [13:18:24]Read from MH i2c: E2 62 00 [13:18:24]MH_I2C_Read... [13:18:24]Read from MH i2c: E2 62 00 F8 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 78 7B 03 00 0E 04 04 00 17 02 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 FE [13:18:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 78 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:18:24]wFMCommunicate OK [13:18:24]SAM_PROTO_GetFieldsCounters done [13:18:24]requested_item shift.num is exist - process it [13:18:24]requested_item shift.opened is exist - process it [13:18:24]req_shift_opened [13:18:24]FM_GetShiftState [13:18:24]SAM_PROTO_GetShiftState [13:18:24]wFMCommunicate request_size=4 [13:18:24]MH_SAM_APDU [13:18:24]CAPDU: 80 13 01 00 [13:18:24]Write to MH i2c: E2 08 00 F9 36 80 13 01 00 00 00 00 00 AC [13:18:24]Write i2c OK [13:18:24]MH_I2C_Read... [13:18:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:24]Read from MH i2c: E2 [13:18:24]MH_I2C_Read... [13:18:24]Read from MH i2c: E2 0E 00 [13:18:24]MH_I2C_Read... [13:18:24]Read from MH i2c: E2 0E 00 F9 36 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 73 [13:18:24]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:18:24]wFMCommunicate OK [13:18:24]SAM_PROTO_GetShiftState done [13:18:24]FM_GetShiftState done [13:18:24]req_shift_opened done [13:18:24]requested_item shift.open_date is exist - process it [13:18:24]req_shift_open_date [13:18:24]req_shift_open_date done [13:18:24]produce_requested_data done [13:18:24]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228216,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:18:24]process_action_free close_receipt [13:18:24]json_value_free [13:18:24]json_value_free done [13:18:24]process_json_proto returns [13:18:24]Send response to host [13:18:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228216,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:18:24]free response buf [13:18:24]execute_script done [13:18:24]execute_script returns [13:18:24]free content buf [13:18:24]Sock 9.Close socket [13:18:24]Sock 9.Thread stoped [13:18:28]OFD Sender: No OFD packet to send [13:18:33]OFD Sender: No OFD packet to send [13:18:38]OFD Sender: No OFD packet to send [13:18:43]OFD Sender: No OFD packet to send [13:18:48]OFD Sender: No OFD packet to send [13:18:53]OFD Sender: No OFD packet to send [13:18:58]OFD Sender: No OFD packet to send [13:19:03]OFD Sender: No OFD packet to send [13:19:08]OFD Sender: No OFD packet to send [13:19:13]OFD Sender: No OFD packet to send [13:19:18]OFD Sender: No OFD packet to send [13:19:23]OFD Sender: No OFD packet to send [13:19:28]OFD Sender: No OFD packet to send [13:19:33]OFD Sender: No OFD packet to send [13:19:38]OFD Sender: No OFD packet to send [13:19:43]OFD Sender: No OFD packet to send [13:19:48]OFD Sender: No OFD packet to send [13:19:53]OFD Sender: No OFD packet to send [13:19:58]OFD Sender: No OFD packet to send [13:20:03]OFD Sender: No OFD packet to send [13:20:08]OFD Sender: No OFD packet to send [13:20:13]OFD Sender: No OFD packet to send [13:20:18]OFD Sender: No OFD packet to send [13:20:23]OFD Sender: No OFD packet to send [13:20:28]OFD Sender: No OFD packet to send [13:20:33]OFD Sender: No OFD packet to send [13:20:38]OFD Sender: No OFD packet to send [13:20:43]OFD Sender: No OFD packet to send [13:20:48]OFD Sender: No OFD packet to send [13:20:49]accept exits with 7 [13:20:49]New connection [13:20:49]New thread 3066994020 created [13:20:49]Thread 3067137380 joined [13:20:49]Waiting for new connection... [13:20:49] Sock 7.Parse request [13:20:49]Sock 7.Check first char [13:20:49]Sock 7.First char is OK [13:20:49]request: POST /json_proto HTTP/1.0 [13:20:49]Method: POST [13:20:49]URL: /json_proto [13:20:49]Method is POST - this is cgi request [13:20:49]url: /json_proto [13:20:49]query_string will be loaded in cgi processing [13:20:49]execute_cgi json_proto POST (null) [13:20:49]execute_cgi path=json_proto method=POST [13:20:49]POST find Content-Length [13:20:49]Host: 172.17.44.195:8080 [13:20:49]Content-Length: 680 [13:20:49]Content-Type: application/json [13:20:49] [13:20:49]POST finish read [13:20:49]Found Content-Length = 680 [13:20:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964666", "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" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "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" ] } } [13:20:49]execute_script... [13:20: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)1964666", "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" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "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" ] } } [13:20:49]POST & json_proto [13:20:49]process_json_proto [13:20:49]json parsed OK: [13:20:49]protocol is kg_v1.0 [13:20:49]action value=close_receipt [13:20:49]process_action close_receipt [13:20:49]cmd_close_receipt [13:20:49]MH_GetDate [13:20:49]Write to MH i2c: F0 00 00 FA 36 1F [13:20:49]Write i2c OK [13:20:49]MH_I2C_Read... [13:20:49]Read from MH i2c: F0 [13:20:49]MH_I2C_Read... [13:20:49]Read from MH i2c: F0 09 00 [13:20:49]MH_I2C_Read... [13:20:49]Read from MH i2c: F0 09 00 FA 36 00 B5 A6 17 67 82 C9 CF 66 81 [13:20:49]GetLastDocTimeStamp 1729603104 [13:20:49]current date 1729603253 [13:20:49]FM_GetShiftState [13:20:49]SAM_PROTO_GetShiftState [13:20:49]wFMCommunicate request_size=4 [13:20:49]MH_SAM_APDU [13:20:49]CAPDU: 80 13 01 00 [13:20:49]Write to MH i2c: E2 08 00 FB 36 80 13 01 00 00 00 00 00 AE [13:20:49]Write i2c OK [13:20:49]MH_I2C_Read... [13:20:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:49]Read from MH i2c: E2 [13:20:49]MH_I2C_Read... [13:20:49]Read from MH i2c: E2 0E 00 [13:20:49]MH_I2C_Read... [13:20:49]Read from MH i2c: E2 0E 00 FB 36 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 75 [13:20:49]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:20:49]wFMCommunicate OK [13:20:49]SAM_PROTO_GetShiftState done [13:20:49]FM_GetShiftState done [13:20:49]opened in 1729555538 [13:20:49]opened+sec_in_day 1729641938 [13:20:49]quantity*price = 200025 [13:20:49]sum+1 = 200026 [13:20:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 181 22.10.2024 13:20 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228217 ФПД: 219629567721715 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132053&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228217&fm=219629567721715&tin=02508201610067®Number=0000000000091685&sum=200000 [13:20:50]StoreToDocumentArchive [13:20:50]shift 535 fd 228217 [13:20:50]save to /storage/0535/doc_00228217 [13:20:50]save last doc name /storage/0535/doc_00228217 to /storage/kkm_last_doc_name [13:20:50]save OK [13:20:50]Clear old archive folders... [13:20:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:20:50]tlvbuf is 00A74920 [13:20:50]SAM_PROTO_ClearQueue [13:20:50]wFMCommunicate request_size=4 [13:20:50]MH_SAM_APDU [13:20:50]CAPDU: 80 09 00 00 [13:20:50]Write to MH i2c: E2 08 00 08 37 80 09 00 00 00 00 00 00 B1 [13:20:50]Write i2c OK [13:20:50]MH_I2C_Read... [13:20:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:20:50]Read from MH i2c: E2 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: E2 03 00 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: E2 03 00 08 37 00 90 00 B3 [13:20:50]RAPDU: 90 00 [13:20:50]wFMCommunicate OK [13:20:50]SAM_PROTO_ClearQueue done [13:20:50]KKMCreateOFDPacket [13:20:50]OFDProtocolAddRootSTLVToBuf [13:20:50]FM_MakeSignedData [13:20:50]FM_MakeSignedData [13:20:50]SAM_PROTO_SignData [13:20:50]wFMCommunicate request_size=4 [13:20:50]MH_SAM_APDU [13:20:50]CAPDU: 80 0D 01 02 [13:20:50]Write to MH i2c: E2 08 00 09 37 80 0D 01 02 00 00 00 00 B9 [13:20:50]Write i2c OK [13:20:50]MH_I2C_Read... [13:20:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:20:50]Read from MH i2c: E2 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: E2 03 00 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: E2 03 00 09 37 00 90 00 B4 [13:20:50]RAPDU: 90 00 [13:20:50]wFMCommunicate OK [13:20:50]wFMCommunicate request_size=255 [13:20:50]MH_SAM_APDU [13:20:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 B5 00 00 00 F4 03 04 00 B5 A6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 79 7B 03 00 35 04 06 00 C7 C0 7E 5D [13:20:50]Write to MH i2c: E2 02 01 0A 37 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 B5 00 00 00 F4 03 04 00 B5 A6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 79 7B 03 00 35 04 06 00 C7 C0 7E 5D 00 00 34 [13:20:50]Write i2c OK [13:20:50]MH_I2C_Read... [13:20:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:50]Read from MH i2c: E2 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: E2 03 00 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: E2 03 00 0A 37 00 90 00 B5 [13:20:50]RAPDU: 90 00 [13:20:50]wFMCommunicate OK [13:20:50]wFMCommunicate request_size=7 [13:20:50]MH_SAM_APDU [13:20:50]CAPDU: 80 0D 02 02 02 C0 F3 [13:20:50]Write to MH i2c: E2 0A 00 0B 37 80 0D 02 02 02 00 C0 F3 00 00 73 [13:20:50]Write i2c OK [13:20:50]MH_I2C_Read... [13:20:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:50]Read from MH i2c: E2 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: E2 03 00 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: E2 03 00 0B 37 00 90 00 B6 [13:20:50]RAPDU: 90 00 [13:20:50]wFMCommunicate OK [13:20:50]wFMCommunicate request_size=4 [13:20:50]MH_SAM_APDU [13:20:50]CAPDU: 80 0D 03 02 [13:20:50]Write to MH i2c: E2 08 00 0C 37 80 0D 03 02 00 00 00 00 BE [13:20:50]Write i2c OK [13:20:50]MH_I2C_Read... [13:20:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:20:50]Read from MH i2c: E2 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: E2 0B 00 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: E2 0B 00 0C 37 00 51 E8 61 93 56 19 B1 68 90 00 74 [13:20:50]RAPDU: 51 E8 61 93 56 19 B1 68 90 00 [13:20:50]wFMCommunicate OK [13:20:50]SAM_PROTO_SignData done [13:20:50]FM_MakeSignedData done [13:20:50]CreateOFDProtocolMessage [13:20:50]wFMCommunicate request_size=4 [13:20:50]MH_SAM_APDU [13:20:50]CAPDU: 80 11 00 00 [13:20:50]Write to MH i2c: E2 08 00 0D 37 80 11 00 00 00 00 00 00 BE [13:20:51]Write i2c OK [13:20:51]MH_I2C_Read... [13:20:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:51]Read from MH i2c: E2 [13:20:51]MH_I2C_Read... [13:20:51]Read from MH i2c: E2 17 00 [13:20:51]MH_I2C_Read... [13:20:51]Read from MH i2c: E2 17 00 0D 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 15 [13:20:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:20:51]wFMCommunicate OK [13:20:51]CreateOFDProtocolMessage done [13:20:51]OFDSenderStorePacket 228217 [13:20:51]StoreOFDPacket docnum=228217 [13:20:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 DA 4F 04 01 A9 44 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 B5 00 00 00 F4 03 04 00 B5 A6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 79 7B 03 00 35 04 06 00 C7 C0 7E 5D C0 F3 51 E8 61 93 56 19 B1 68 [13:20:51]CheckFolder [13:20:51]dirname=/storage/ofd_packets [13:20:51]CheckFolder done [13:20:51]ProducePacketName [13:20:51]name=ofd_packets/00228217 [13:20:51]NVStorageSaveData ofd_packets/00228217 [13:20:51]File name is /storage/ofd_packets/00228217 [13:20:51]Write 298 bytes [13:20:51]NVStorageSaveData done [13:20:51]OFDSenderStorePacket done [13:20:51]KKMCreateOFDPacket done [13:20:51]NVStorageSaveData kkm_last_timestamp [13:20:51]File name is /storage/kkm_last_timestamp [13:20:51]Write 4 bytes [13:20:51]NVStorageSaveData done [13:20:51]ExternCall_PrintAddStr [13:20:51]wPrintStart [13:20:51]Write to MH i2c: 01 00 00 0E 37 45 [13:20:51]Write i2c OK [13:20:51]MH_I2C_Read... [13:20:51]Read from MH i2c: 01 [13:20:51]MH_I2C_Read... [13:20:51]Read from MH i2c: 01 07 00 [13:20:51]MH_I2C_Read... [13:20:51]Read from MH i2c: 01 07 00 0E 37 00 00 00 00 00 FF 0F 5A [13:20:51]RasterBufferAndPrint [13:20:51]line Счет N : (1)1964666 [13:20:51]line ИНН: 02508201610067 [13:20:51]line Контрольно-Кассовый Чек [13:20:51]line ПРОДАЖА [13:20:51]line ТРК (МРК, ГНК) : 11 [13:20:51]line Товар: 2710194210 [13:20:51]line ДТ-К-5 [13:20:51]line 26.250 * 76.20 [13:20:51]line = 2000.25 [13:20:51]line НДС 12% НСП 1% [13:20:51]line > о реализуемом товаре [13:20:51]line ОКРУГЛЕНИЕ: -0.25 [13:20:51]line ИТОГО: 2000.00 [13:20:51]line Внесено: 2000.00 [13:20:51]line СДАЧА: 0.00 [13:20:51]line НСП 1% : 17.70 [13:20:51]line НДС 12% : 212.42 [13:20:51]line Наличными: 2000.00 [13:20:51]line Безнал.: 0.00 [13:20:51]line Место: АЗС № 133 "Партнер Нефть" [13:20:51]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:20:51]line СНО: Общий режим [13:20:51]line Чек 181 22.10.2024 13:20 [13:20:51]line Смена: 535 ФФД: 1.0 [13:20:51]line ЗНМ: 0300000091 [13:20:51]line РНМ: 0000000000091685 [13:20:51]line Версия ККМ: 001 [13:20:51]line ФМ: 0000000000871839 [13:20:51]line ФД: 228217 [13:20:51]line ФПД: 219629567721715 [13:20:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132053&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228217&fm=219629567721715&tin=02508201610067®Number=0000000000091685&sum=200000 [13:20:51]OFD Sender: Processing packet 228217 [packets to send 38, broken 37] [13:20:51]ProducePacketName [13:20:51]name=ofd_packets/00228217 [13:20:51]OFD Sender: To server: pG, [13:20:51]CommunicateWithHost lk.salyk.kg:30040 [13:20:51]ConnectInit lk.salyk.kg [13:20:51]written 0, free lines is 4095 [13:20:51]Connected sock=10 [13:20:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 DA 4F 04 01 A9 44 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 B5 00 00 00 F4 03 04 00 B5 A6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 79 7B 03 00 35 04 06 00 C7 C0 7E 5D C0 F3 51 E8 61 93 56 19 B1 68 [13:20:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 FA 42 47 00 86 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 38 37 31 38 33 39 10 04 04 00 79 7B 03 00 F4 03 04 00 AD 51 17 67 B6 04 01 00 00 CD 9F DE 8A 4A D1 58 C4 [13:20:51]CommunicateWithHost err = 0 [13:20:51]CheckOFDResponse [13:20:51]1017 (14) - 77093643461234 [13:20:51]1041 (16) - 0000000000871839 [13:20:51]1040 (4) - 228217 [13:20:51]1012 (4) - 22.10.2024 07:18 [13:20:51]1206 (1) - 0 [13:20:51]OFD Sender: Remove packet 228217 [13:20:51]ProducePacketName [13:20:51]name=ofd_packets/00228217 [13:20:51]NVStorageDeleteData [13:20:51]Write to MH i2c: 01 00 00 38 37 6F [13:20:51]Write i2c OK [13:20:51]MH_I2C_Read... [13:20:51]Read from MH i2c: 01 [13:20:51]MH_I2C_Read... [13:20:51]Read from MH i2c: 01 07 00 [13:20:51]MH_I2C_Read... [13:20:51]Read from MH i2c: 01 07 00 38 37 00 00 00 00 00 C7 0C 49 [13:20:51]RasterBufferAndPrint [13:20:51]line [13:20:51]line [13:20:51]line [13:20:51]line [13:20:51]line [13:20:51]written 0, free lines is 3276 [13:20:51]MH_Cut [13:20:51]Write to MH i2c: D1 01 00 3F 37 01 48 [13:20:51]Write i2c OK [13:20:51]MH_I2C_Read... [13:20:51]Read from MH i2c: D1 [13:20:51]MH_I2C_Read... [13:20:51]Read from MH i2c: D1 01 00 [13:20:51]MH_I2C_Read... [13:20:51]Read from MH i2c: D1 01 00 3F 37 00 47 [13:20:51]Write to MH i2c: 01 00 00 40 37 77 [13:20:51]Write i2c OK [13:20:51]MH_I2C_Read... [13:20:52]OFD Sender: No OFD packet to send [13:20:52]*** Cut start [13:20:52]*** Partial cut [13:20:52]*** CUTSNS_PIN = 1 [13:20:52]*** CUTSNS_PIN = 0 [13:20:52]*** Brake cut motor [13:20:53]Read from MH i2c: 01 [13:20:53]MH_I2C_Read... [13:20:53]*** Stop cut motor [13:20:53]*** Cut end [13:20:53]Read from MH i2c: 01 07 00 [13:20:53]MH_I2C_Read... [13:20:53]Read from MH i2c: 01 07 00 40 37 00 00 00 00 00 FF 0F 8C [13:20:53]process_action close_receipt done [13:20:53]requested_data is exist [13:20:53]produce_requested_data [13:20:53]requested_item fm.sn is exist - process it [13:20:53]wFMCommunicate request_size=4 [13:20:53]MH_SAM_APDU [13:20:53]CAPDU: 80 11 00 00 [13:20:53]Write to MH i2c: E2 08 00 41 37 80 11 00 00 00 00 00 00 F2 [13:20:53]Write i2c OK [13:20:53]MH_I2C_Read... [13:20:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:53]Read from MH i2c: E2 [13:20:53]MH_I2C_Read... [13:20:53]Read from MH i2c: E2 17 00 [13:20:53]MH_I2C_Read... [13:20:53]Read from MH i2c: E2 17 00 41 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 49 [13:20:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:20:53]wFMCommunicate OK [13:20:53]requested_item fd.num is exist - process it [13:20:53]SAM_PROTO_GetFieldsCounters [13:20:53]wFMCommunicate request_size=4 [13:20:53]MH_SAM_APDU [13:20:53]CAPDU: 80 13 00 00 [13:20:53]Write to MH i2c: E2 08 00 42 37 80 13 00 00 00 00 00 00 F5 [13:20:53]Write i2c OK [13:20:53]MH_I2C_Read... [13:20:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:20:53]Read from MH i2c: E2 [13:20:53]MH_I2C_Read... [13:20:53]Read from MH i2c: E2 62 00 [13:20:53]MH_I2C_Read... [13:20:53]Read from MH i2c: E2 62 00 42 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 79 7B 03 00 0E 04 04 00 17 02 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 4D [13:20:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 79 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:20:53]wFMCommunicate OK [13:20:53]SAM_PROTO_GetFieldsCounters done [13:20:53]requested_item shift.num is exist - process it [13:20:53]requested_item shift.opened is exist - process it [13:20:53]req_shift_opened [13:20:53]FM_GetShiftState [13:20:53]SAM_PROTO_GetShiftState [13:20:53]wFMCommunicate request_size=4 [13:20:53]MH_SAM_APDU [13:20:53]CAPDU: 80 13 01 00 [13:20:53]Write to MH i2c: E2 08 00 43 37 80 13 01 00 00 00 00 00 F7 [13:20:53]Write i2c OK [13:20:53]MH_I2C_Read... [13:20:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:53]Read from MH i2c: E2 [13:20:53]MH_I2C_Read... [13:20:53]Read from MH i2c: E2 0E 00 [13:20:53]MH_I2C_Read... [13:20:53]Read from MH i2c: E2 0E 00 43 37 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 BE [13:20:53]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:20:53]wFMCommunicate OK [13:20:53]SAM_PROTO_GetShiftState done [13:20:53]FM_GetShiftState done [13:20:53]req_shift_opened done [13:20:53]requested_item shift.open_date is exist - process it [13:20:53]req_shift_open_date [13:20:53]req_shift_open_date done [13:20:53]produce_requested_data done [13:20:53]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228217,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:20:53]process_action_free close_receipt [13:20:53]json_value_free [13:20:53]json_value_free done [13:20:53]process_json_proto returns [13:20:53]Send response to host [13:20:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228217,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:20:53]free response buf [13:20:53]execute_script done [13:20:53]execute_script returns [13:20:53]free content buf [13:20:53]Sock 7.Close socket [13:20:53]Sock 7.Thread stoped [13:20:57]OFD Sender: No OFD packet to send [13:21:02]OFD Sender: No OFD packet to send [13:21:07]OFD Sender: No OFD packet to send [13:21:12]OFD Sender: No OFD packet to send [13:21:17]OFD Sender: No OFD packet to send [13:21:22]OFD Sender: No OFD packet to send [13:21:27]OFD Sender: No OFD packet to send [13:21:32]OFD Sender: No OFD packet to send [13:21:37]OFD Sender: No OFD packet to send [13:21:42]OFD Sender: No OFD packet to send [13:21:47]OFD Sender: No OFD packet to send [13:21:52]OFD Sender: No OFD packet to send [13:21:57]OFD Sender: No OFD packet to send [13:22:02]OFD Sender: No OFD packet to send [13:22:07]OFD Sender: No OFD packet to send [13:22:08]accept exits with 9 [13:22:08]New connection [13:22:08]New thread 3067137380 created [13:22:08]Thread 3066994020 joined [13:22:08]Waiting for new connection... [13:22:08] Sock 9.Parse request [13:22:08]Sock 9.Check first char [13:22:08]Sock 9.First char is OK [13:22:08]request: POST /json_proto HTTP/1.0 [13:22:08]Method: POST [13:22:08]URL: /json_proto [13:22:08]Method is POST - this is cgi request [13:22:08]url: /json_proto [13:22:08]query_string will be loaded in cgi processing [13:22:08]execute_cgi json_proto POST (null) [13:22:08]execute_cgi path=json_proto method=POST [13:22:08]POST find Content-Length [13:22:08]Host: 172.17.44.195:8080 [13:22:08]Content-Length: 659 [13:22:08]Content-Type: application/json [13:22:08] [13:22:08]POST finish read [13:22:08]Found Content-Length = 659 [13:22:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 5.850, "sum" : 400.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:08]execute_script... [13:22: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)1964667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 5.850, "sum" : 400.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:08]POST & json_proto [13:22:08]process_json_proto [13:22:08]json parsed OK: [13:22:08]protocol is kg_v1.0 [13:22:08]action value=close_receipt [13:22:08]process_action close_receipt [13:22:08]cmd_close_receipt [13:22:08]MH_GetDate [13:22:08]Write to MH i2c: F0 00 00 44 37 6A [13:22:08]Write i2c OK [13:22:08]MH_I2C_Read... [13:22:08]Read from MH i2c: F0 [13:22:08]MH_I2C_Read... [13:22:08]Read from MH i2c: F0 09 00 [13:22:08]MH_I2C_Read... [13:22:08]Read from MH i2c: F0 09 00 44 37 00 04 A7 17 67 82 C9 CF 66 1C [13:22:08]GetLastDocTimeStamp 1729603253 [13:22:08]current date 1729603332 [13:22:08]FM_GetShiftState [13:22:08]SAM_PROTO_GetShiftState [13:22:08]wFMCommunicate request_size=4 [13:22:08]MH_SAM_APDU [13:22:08]CAPDU: 80 13 01 00 [13:22:08]Write to MH i2c: E2 08 00 45 37 80 13 01 00 00 00 00 00 F9 [13:22:08]Write i2c OK [13:22:08]MH_I2C_Read... [13:22:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:08]Read from MH i2c: E2 [13:22:08]MH_I2C_Read... [13:22:08]Read from MH i2c: E2 0E 00 [13:22:08]MH_I2C_Read... [13:22:08]Read from MH i2c: E2 0E 00 45 37 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 C0 [13:22:08]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:22:08]wFMCommunicate OK [13:22:08]SAM_PROTO_GetShiftState done [13:22:08]FM_GetShiftState done [13:22:08]opened in 1729555538 [13:22:08]opened+sec_in_day 1729641938 [13:22:08]quantity*price = 40014 [13:22:08]sum+1 = 40015 [13:22:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.49 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 182 22.10.2024 13:22 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228218 ФПД: 77139751585407 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132212&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228218&fm=77139751585407&tin=02508201610067®Number=0000000000091685&sum=40000 [13:22:09]StoreToDocumentArchive [13:22:09]shift 535 fd 228218 [13:22:09]save to /storage/0535/doc_00228218 [13:22:09]save last doc name /storage/0535/doc_00228218 to /storage/kkm_last_doc_name [13:22:09]save OK [13:22:09]Clear old archive folders... [13:22:09]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:22:09]tlvbuf is 0093CB50 [13:22:09]SAM_PROTO_ClearQueue [13:22:09]wFMCommunicate request_size=4 [13:22:09]MH_SAM_APDU [13:22:09]CAPDU: 80 09 00 00 [13:22:09]Write to MH i2c: E2 08 00 52 37 80 09 00 00 00 00 00 00 FB [13:22:09]Write i2c OK [13:22:09]MH_I2C_Read... [13:22:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:09]Read from MH i2c: E2 [13:22:09]MH_I2C_Read... [13:22:09]Read from MH i2c: E2 03 00 [13:22:09]MH_I2C_Read... [13:22:09]Read from MH i2c: E2 03 00 52 37 00 90 00 FD [13:22:09]RAPDU: 90 00 [13:22:09]wFMCommunicate OK [13:22:09]SAM_PROTO_ClearQueue done [13:22:09]KKMCreateOFDPacket [13:22:09]OFDProtocolAddRootSTLVToBuf [13:22:09]FM_MakeSignedData [13:22:09]FM_MakeSignedData [13:22:09]SAM_PROTO_SignData [13:22:09]wFMCommunicate request_size=4 [13:22:09]MH_SAM_APDU [13:22:09]CAPDU: 80 0D 01 02 [13:22:09]Write to MH i2c: E2 08 00 53 37 80 0D 01 02 00 00 00 00 03 [13:22:09]Write i2c OK [13:22:09]MH_I2C_Read... [13:22:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:09]Read from MH i2c: E2 [13:22:09]MH_I2C_Read... [13:22:09]Read from MH i2c: E2 03 00 [13:22:09]MH_I2C_Read... [13:22:09]Read from MH i2c: E2 03 00 53 37 00 90 00 FE [13:22:09]RAPDU: 90 00 [13:22:09]wFMCommunicate OK [13:22:09]wFMCommunicate request_size=253 [13:22:09]MH_SAM_APDU [13:22:09]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 B6 00 00 00 F4 03 04 00 04 A7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7A 7B 03 00 35 04 06 00 46 28 7F 7D C6 7F [13:22:09]Write to MH i2c: E2 00 01 54 37 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 B6 00 00 00 F4 03 04 00 04 A7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7A 7B 03 00 35 04 06 00 46 28 7F 7D C6 7F 00 00 D2 [13:22:09]Write i2c OK [13:22:09]MH_I2C_Read... [13:22:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:09]Read from MH i2c: E2 [13:22:09]MH_I2C_Read... [13:22:09]Read from MH i2c: E2 03 00 [13:22:09]MH_I2C_Read... [13:22:09]Read from MH i2c: E2 03 00 54 37 00 90 00 FF [13:22:09]RAPDU: 90 00 [13:22:09]wFMCommunicate OK [13:22:09]wFMCommunicate request_size=4 [13:22:09]MH_SAM_APDU [13:22:09]CAPDU: 80 0D 03 02 [13:22:09]Write to MH i2c: E2 08 00 55 37 80 0D 03 02 00 00 00 00 07 [13:22:09]Write i2c OK [13:22:09]MH_I2C_Read... [13:22:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:09]Read from MH i2c: E2 [13:22:09]MH_I2C_Read... [13:22:09]Read from MH i2c: E2 0B 00 [13:22:09]MH_I2C_Read... [13:22:09]Read from MH i2c: E2 0B 00 55 37 00 98 F2 D2 A2 A5 99 B9 37 90 00 34 [13:22:09]RAPDU: 98 F2 D2 A2 A5 99 B9 37 90 00 [13:22:09]wFMCommunicate OK [13:22:09]SAM_PROTO_SignData done [13:22:09]FM_MakeSignedData done [13:22:09]CreateOFDProtocolMessage [13:22:09]wFMCommunicate request_size=4 [13:22:09]MH_SAM_APDU [13:22:09]CAPDU: 80 11 00 00 [13:22:09]Write to MH i2c: E2 08 00 56 37 80 11 00 00 00 00 00 00 07 [13:22:09]Write i2c OK [13:22:09]MH_I2C_Read... [13:22:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:09]Read from MH i2c: E2 [13:22:09]MH_I2C_Read... [13:22:09]Read from MH i2c: E2 17 00 [13:22:09]MH_I2C_Read... [13:22:09]Read from MH i2c: E2 17 00 56 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5E [13:22:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:22:09]wFMCommunicate OK [13:22:09]CreateOFDProtocolMessage done [13:22:09]OFDSenderStorePacket 228218 [13:22:09]StoreOFDPacket docnum=228218 [13:22:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 21 D3 00 01 4F 8E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 B6 00 00 00 F4 03 04 00 04 A7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7A 7B 03 00 35 04 06 00 46 28 7F 7D C6 7F 98 F2 D2 A2 A5 99 B9 37 [13:22:09]CheckFolder [13:22:09]dirname=/storage/ofd_packets [13:22:09]CheckFolder done [13:22:09]ProducePacketName [13:22:09]name=ofd_packets/00228218 [13:22:09]NVStorageSaveData ofd_packets/00228218 [13:22:09]File name is /storage/ofd_packets/00228218 [13:22:09]Write 294 bytes [13:22:09]NVStorageSaveData done [13:22:09]OFDSenderStorePacket done [13:22:09]KKMCreateOFDPacket done [13:22:09]NVStorageSaveData kkm_last_timestamp [13:22:09]File name is /storage/kkm_last_timestamp [13:22:09]Write 4 bytes [13:22:09]NVStorageSaveData done [13:22:09]ExternCall_PrintAddStr [13:22:09]wPrintStart [13:22:09]Write to MH i2c: 01 00 00 57 37 8E [13:22:09]Write i2c OK [13:22:09]MH_I2C_Read... [13:22:09]Read from MH i2c: 01 [13:22:09]MH_I2C_Read... [13:22:09]Read from MH i2c: 01 07 00 [13:22:09]MH_I2C_Read... [13:22:09]Read from MH i2c: 01 07 00 57 37 00 00 00 00 00 FF 0F A3 [13:22:09]RasterBufferAndPrint [13:22:09]line Счет N : (1)1964667 [13:22:09]line ИНН: 02508201610067 [13:22:09]line Контрольно-Кассовый Чек [13:22:09]line ПРОДАЖА [13:22:09]line ТРК (МРК, ГНК) : 52 [13:22:09]line Товар: 2710124130 [13:22:09]line SU-92 [13:22:09]line 5.850 * 68.40 [13:22:09]line = 400.14 [13:22:09]line НДС 12% НСП 1% [13:22:09]line > о реализуемом товаре [13:22:09]line ОКРУГЛЕНИЕ: -0.14 [13:22:09]line ИТОГО: 400.00 [13:22:09]line Внесено: 400.00 [13:22:09]line СДАЧА: 0.00 [13:22:09]line НСП 1% : 3.54 [13:22:09]line НДС 12% : 42.49 [13:22:09]line Наличными: 400.00 [13:22:09]line Безнал.: 0.00 [13:22:09]line Место: АЗС № 133 "Партнер Нефть" [13:22:09]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:22:09]line СНО: Общий режим [13:22:09]line Чек 182 22.10.2024 13:22 [13:22:09]line Смена: 535 ФФД: 1.0 [13:22:09]line ЗНМ: 0300000091 [13:22:09]line РНМ: 0000000000091685 [13:22:09]line Версия ККМ: 001 [13:22:09]line ФМ: 0000000000871839 [13:22:09]line ФД: 228218 [13:22:09]line ФПД: 77139751585407 [13:22:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132212&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228218&fm=77139751585407&tin=02508201610067®Number=0000000000091685&sum=40000 [13:22:10]OFD Sender: Processing packet 228218 [packets to send 38, broken 37] [13:22:10]ProducePacketName [13:22:10]name=ofd_packets/00228218 [13:22:10]OFD Sender: To server: pG, [13:22:10]CommunicateWithHost lk.salyk.kg:30040 [13:22:10]ConnectInit lk.salyk.kg [13:22:10]written 0, free lines is 4095 [13:22:10]Connected sock=10 [13:22:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 21 D3 00 01 4F 8E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 B6 00 00 00 F4 03 04 00 04 A7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7A 7B 03 00 35 04 06 00 46 28 7F 7D C6 7F 98 F2 D2 A2 A5 99 B9 37 [13:22:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 34 02 47 00 7D 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7A 7B 03 00 F4 03 04 00 FC 51 17 67 B6 04 01 00 00 56 33 7F 9C DD 68 C2 F2 [13:22:10]CommunicateWithHost err = 0 [13:22:10]CheckOFDResponse [13:22:10]1017 (14) - 77093643461234 [13:22:10]1041 (16) - 0000000000871839 [13:22:10]1040 (4) - 228218 [13:22:10]1012 (4) - 22.10.2024 07:19 [13:22:10]1206 (1) - 0 [13:22:10]OFD Sender: Remove packet 228218 [13:22:10]ProducePacketName [13:22:10]name=ofd_packets/00228218 [13:22:10]NVStorageDeleteData [13:22:10]Write to MH i2c: 01 00 00 81 37 B8 [13:22:10]Write i2c OK [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: 01 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: 01 07 00 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: 01 07 00 81 37 00 00 00 00 00 C8 0C 93 [13:22:10]RasterBufferAndPrint [13:22:10]line [13:22:10]line [13:22:10]line [13:22:10]line [13:22:10]line [13:22:10]written 0, free lines is 3277 [13:22:10]MH_Cut [13:22:10]Write to MH i2c: D1 01 00 88 37 01 91 [13:22:10]Write i2c OK [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: D1 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: D1 01 00 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: D1 01 00 88 37 00 90 [13:22:10]Write to MH i2c: 01 00 00 89 37 C0 [13:22:10]Write i2c OK [13:22:10]MH_I2C_Read... [13:22:11]OFD Sender: No OFD packet to send [13:22:11]*** Cut start [13:22:11]*** Partial cut [13:22:11]*** CUTSNS_PIN = 1 [13:22:11]*** CUTSNS_PIN = 0 [13:22:11]*** Brake cut motor [13:22:12]Read from MH i2c: 01 [13:22:12]MH_I2C_Read... [13:22:12]*** Stop cut motor [13:22:12]*** Cut end [13:22:12]Read from MH i2c: 01 07 00 [13:22:12]MH_I2C_Read... [13:22:12]Read from MH i2c: 01 07 00 89 37 00 00 00 00 00 FF 0F D5 [13:22:12]process_action close_receipt done [13:22:12]requested_data is exist [13:22:12]produce_requested_data [13:22:12]requested_item fm.sn is exist - process it [13:22:12]wFMCommunicate request_size=4 [13:22:12]MH_SAM_APDU [13:22:12]CAPDU: 80 11 00 00 [13:22:12]Write to MH i2c: E2 08 00 8A 37 80 11 00 00 00 00 00 00 3B [13:22:12]Write i2c OK [13:22:12]MH_I2C_Read... [13:22:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:12]Read from MH i2c: E2 [13:22:12]MH_I2C_Read... [13:22:12]Read from MH i2c: E2 17 00 [13:22:12]MH_I2C_Read... [13:22:12]Read from MH i2c: E2 17 00 8A 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 92 [13:22:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:22:12]wFMCommunicate OK [13:22:12]requested_item fd.num is exist - process it [13:22:12]SAM_PROTO_GetFieldsCounters [13:22:12]wFMCommunicate request_size=4 [13:22:12]MH_SAM_APDU [13:22:12]CAPDU: 80 13 00 00 [13:22:12]Write to MH i2c: E2 08 00 8B 37 80 13 00 00 00 00 00 00 3E [13:22:12]Write i2c OK [13:22:12]MH_I2C_Read... [13:22:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:12]Read from MH i2c: E2 [13:22:12]MH_I2C_Read... [13:22:12]Read from MH i2c: E2 62 00 [13:22:12]MH_I2C_Read... [13:22:12]Read from MH i2c: E2 62 00 8B 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7A 7B 03 00 0E 04 04 00 17 02 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 9A [13:22:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7A 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:22:12]wFMCommunicate OK [13:22:12]SAM_PROTO_GetFieldsCounters done [13:22:12]requested_item shift.num is exist - process it [13:22:12]requested_item shift.opened is exist - process it [13:22:12]req_shift_opened [13:22:12]FM_GetShiftState [13:22:12]SAM_PROTO_GetShiftState [13:22:12]wFMCommunicate request_size=4 [13:22:12]MH_SAM_APDU [13:22:12]CAPDU: 80 13 01 00 [13:22:12]Write to MH i2c: E2 08 00 8C 37 80 13 01 00 00 00 00 00 40 [13:22:12]Write i2c OK [13:22:12]MH_I2C_Read... [13:22:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:12]Read from MH i2c: E2 [13:22:12]MH_I2C_Read... [13:22:12]Read from MH i2c: E2 0E 00 [13:22:12]MH_I2C_Read... [13:22:12]Read from MH i2c: E2 0E 00 8C 37 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 07 [13:22:12]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:22:12]wFMCommunicate OK [13:22:12]SAM_PROTO_GetShiftState done [13:22:12]FM_GetShiftState done [13:22:12]req_shift_opened done [13:22:12]requested_item shift.open_date is exist - process it [13:22:12]req_shift_open_date [13:22:12]req_shift_open_date done [13:22:12]produce_requested_data done [13:22:12]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228218,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:22:12]process_action_free close_receipt [13:22:12]json_value_free [13:22:12]json_value_free done [13:22:12]process_json_proto returns [13:22:12]Send response to host [13:22:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228218,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:22:12]free response buf [13:22:12]execute_script done [13:22:12]execute_script returns [13:22:12]free content buf [13:22:12]Sock 9.Close socket [13:22:12]Sock 9.Thread stoped [13:22:16]OFD Sender: No OFD packet to send [13:22:21]OFD Sender: No OFD packet to send [13:22:26]OFD Sender: No OFD packet to send [13:22:31]OFD Sender: No OFD packet to send [13:22:36]OFD Sender: No OFD packet to send [13:22:41]OFD Sender: No OFD packet to send [13:22:46]OFD Sender: No OFD packet to send [13:22:51]OFD Sender: No OFD packet to send [13:22:56]OFD Sender: No OFD packet to send [13:23:01]OFD Sender: No OFD packet to send [13:23:06]OFD Sender: No OFD packet to send [13:23:11]OFD Sender: No OFD packet to send [13:23:16]OFD Sender: No OFD packet to send [13:23:21]OFD Sender: No OFD packet to send [13:23:26]OFD Sender: No OFD packet to send [13:23:31]OFD Sender: No OFD packet to send [13:23:36]OFD Sender: No OFD packet to send [13:23:41]OFD Sender: No OFD packet to send [13:23:46]OFD Sender: No OFD packet to send [13:23:51]OFD Sender: No OFD packet to send [13:23:56]OFD Sender: No OFD packet to send [13:24:01]OFD Sender: No OFD packet to send [13:24:02]accept exits with 7 [13:24:02]New connection [13:24:02]New thread 3066994020 created [13:24:02]Thread 3067137380 joined [13:24:02]Waiting for new connection... [13:24:02] Sock 7.Parse request [13:24:02]Sock 7.Check first char [13:24:02]Sock 7.First char is OK [13:24:02]request: POST /json_proto HTTP/1.0 [13:24:02]Method: POST [13:24:02]URL: /json_proto [13:24:02]Method is POST - this is cgi request [13:24:02]url: /json_proto [13:24:02]query_string will be loaded in cgi processing [13:24:02]execute_cgi json_proto POST (null) [13:24:02]execute_cgi path=json_proto method=POST [13:24:02]POST find Content-Length [13:24:02]Host: 172.17.44.195:8080 [13:24:02]Content-Length: 680 [13:24:02]Content-Type: application/json [13:24:02] [13:24:02]POST finish read [13:24:02]Found Content-Length = 680 [13:24:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964668", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:02]execute_script... [13:24: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)1964668", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:02]POST & json_proto [13:24:02]process_json_proto [13:24:02]json parsed OK: [13:24:02]protocol is kg_v1.0 [13:24:02]action value=close_receipt [13:24:02]process_action close_receipt [13:24:02]cmd_close_receipt [13:24:02]MH_GetDate [13:24:02]Write to MH i2c: F0 00 00 8D 37 B3 [13:24:02]Write i2c OK [13:24:02]MH_I2C_Read... [13:24:02]Read from MH i2c: F0 [13:24:02]MH_I2C_Read... [13:24:02]Read from MH i2c: F0 09 00 [13:24:02]MH_I2C_Read... [13:24:02]Read from MH i2c: F0 09 00 8D 37 00 76 A7 17 67 82 C9 CF 66 D7 [13:24:02]GetLastDocTimeStamp 1729603332 [13:24:02]current date 1729603446 [13:24:02]FM_GetShiftState [13:24:02]SAM_PROTO_GetShiftState [13:24:02]wFMCommunicate request_size=4 [13:24:02]MH_SAM_APDU [13:24:02]CAPDU: 80 13 01 00 [13:24:02]Write to MH i2c: E2 08 00 8E 37 80 13 01 00 00 00 00 00 42 [13:24:02]Write i2c OK [13:24:02]MH_I2C_Read... [13:24:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:02]Read from MH i2c: E2 [13:24:02]MH_I2C_Read... [13:24:02]Read from MH i2c: E2 0E 00 [13:24:02]MH_I2C_Read... [13:24:02]Read from MH i2c: E2 0E 00 8E 37 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 09 [13:24:02]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:24:02]wFMCommunicate OK [13:24:02]SAM_PROTO_GetShiftState done [13:24:02]FM_GetShiftState done [13:24:02]opened in 1729555538 [13:24:02]opened+sec_in_day 1729641938 [13:24:02]quantity*price = 100050 [13:24:02]sum+1 = 100052 [13:24:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 183 22.10.2024 13:24 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228219 ФПД: 133091479559465 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132406&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228219&fm=133091479559465&tin=02508201610067®Number=0000000000091685&sum=100000 [13:24:03]StoreToDocumentArchive [13:24:03]shift 535 fd 228219 [13:24:03]save to /storage/0535/doc_00228219 [13:24:03]save last doc name /storage/0535/doc_00228219 to /storage/kkm_last_doc_name [13:24:03]save OK [13:24:03]Clear old archive folders... [13:24:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:24:03]tlvbuf is 0092DA80 [13:24:03]SAM_PROTO_ClearQueue [13:24:03]wFMCommunicate request_size=4 [13:24:03]MH_SAM_APDU [13:24:03]CAPDU: 80 09 00 00 [13:24:03]Write to MH i2c: E2 08 00 9B 37 80 09 00 00 00 00 00 00 44 [13:24:03]Write i2c OK [13:24:03]MH_I2C_Read... [13:24:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:03]Read from MH i2c: E2 [13:24:03]MH_I2C_Read... [13:24:03]Read from MH i2c: E2 03 00 [13:24:03]MH_I2C_Read... [13:24:03]Read from MH i2c: E2 03 00 9B 37 00 90 00 46 [13:24:03]RAPDU: 90 00 [13:24:03]wFMCommunicate OK [13:24:03]SAM_PROTO_ClearQueue done [13:24:03]KKMCreateOFDPacket [13:24:03]OFDProtocolAddRootSTLVToBuf [13:24:03]FM_MakeSignedData [13:24:03]FM_MakeSignedData [13:24:03]SAM_PROTO_SignData [13:24:03]wFMCommunicate request_size=4 [13:24:03]MH_SAM_APDU [13:24:03]CAPDU: 80 0D 01 02 [13:24:03]Write to MH i2c: E2 08 00 9C 37 80 0D 01 02 00 00 00 00 4C [13:24:03]Write i2c OK [13:24:03]MH_I2C_Read... [13:24:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:03]Read from MH i2c: E2 [13:24:03]MH_I2C_Read... [13:24:03]Read from MH i2c: E2 03 00 [13:24:03]MH_I2C_Read... [13:24:03]Read from MH i2c: E2 03 00 9C 37 00 90 00 47 [13:24:03]RAPDU: 90 00 [13:24:03]wFMCommunicate OK [13:24:03]wFMCommunicate request_size=255 [13:24:03]MH_SAM_APDU [13:24: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 B7 00 00 00 F4 03 04 00 76 A7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7B 7B 03 00 35 04 06 00 79 0B C6 5C [13:24:03]Write to MH i2c: E2 02 01 9D 37 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 B7 00 00 00 F4 03 04 00 76 A7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7B 7B 03 00 35 04 06 00 79 0B C6 5C 00 00 E3 [13:24:03]Write i2c OK [13:24:03]MH_I2C_Read... [13:24:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:03]Read from MH i2c: E2 [13:24:03]MH_I2C_Read... [13:24:03]Read from MH i2c: E2 03 00 [13:24:03]MH_I2C_Read... [13:24:03]Read from MH i2c: E2 03 00 9D 37 00 90 00 48 [13:24:03]RAPDU: 90 00 [13:24:03]wFMCommunicate OK [13:24:03]wFMCommunicate request_size=7 [13:24:03]MH_SAM_APDU [13:24:03]CAPDU: 80 0D 02 02 02 9D 29 [13:24:03]Write to MH i2c: E2 0A 00 9E 37 80 0D 02 02 02 00 9D 29 00 00 19 [13:24:03]Write i2c OK [13:24:03]MH_I2C_Read... [13:24:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:03]Read from MH i2c: E2 [13:24:03]MH_I2C_Read... [13:24:03]Read from MH i2c: E2 03 00 [13:24:03]MH_I2C_Read... [13:24:03]Read from MH i2c: E2 03 00 9E 37 00 90 00 49 [13:24:03]RAPDU: 90 00 [13:24:03]wFMCommunicate OK [13:24:03]wFMCommunicate request_size=4 [13:24:03]MH_SAM_APDU [13:24:03]CAPDU: 80 0D 03 02 [13:24:03]Write to MH i2c: E2 08 00 9F 37 80 0D 03 02 00 00 00 00 51 [13:24:03]Write i2c OK [13:24:03]MH_I2C_Read... [13:24:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:03]Read from MH i2c: E2 [13:24:03]MH_I2C_Read... [13:24:03]Read from MH i2c: E2 0B 00 [13:24:03]MH_I2C_Read... [13:24:03]Read from MH i2c: E2 0B 00 9F 37 00 0E D0 07 25 A4 F2 9F E1 90 00 72 [13:24:03]RAPDU: 0E D0 07 25 A4 F2 9F E1 90 00 [13:24:03]wFMCommunicate OK [13:24:03]SAM_PROTO_SignData done [13:24:03]FM_MakeSignedData done [13:24:03]CreateOFDProtocolMessage [13:24:03]wFMCommunicate request_size=4 [13:24:03]MH_SAM_APDU [13:24:03]CAPDU: 80 11 00 00 [13:24:03]Write to MH i2c: E2 08 00 A0 37 80 11 00 00 00 00 00 00 51 [13:24:03]Write i2c OK [13:24:03]MH_I2C_Read... [13:24:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:03]Read from MH i2c: E2 [13:24:03]MH_I2C_Read... [13:24:03]Read from MH i2c: E2 17 00 [13:24:03]MH_I2C_Read... [13:24:03]Read from MH i2c: E2 17 00 A0 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A8 [13:24:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:24:03]wFMCommunicate OK [13:24:03]CreateOFDProtocolMessage done [13:24:03]OFDSenderStorePacket 228219 [13:24:03]StoreOFDPacket docnum=228219 [13:24:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 CA 8D 04 01 74 B3 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 B7 00 00 00 F4 03 04 00 76 A7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7B 7B 03 00 35 04 06 00 79 0B C6 5C 9D 29 0E D0 07 25 A4 F2 9F E1 [13:24:03]CheckFolder [13:24:03]dirname=/storage/ofd_packets [13:24:03]CheckFolder done [13:24:03]ProducePacketName [13:24:03]name=ofd_packets/00228219 [13:24:03]NVStorageSaveData ofd_packets/00228219 [13:24:03]File name is /storage/ofd_packets/00228219 [13:24:03]Write 298 bytes [13:24:03]NVStorageSaveData done [13:24:03]OFDSenderStorePacket done [13:24:03]KKMCreateOFDPacket done [13:24:03]NVStorageSaveData kkm_last_timestamp [13:24:03]File name is /storage/kkm_last_timestamp [13:24:03]Write 4 bytes [13:24:03]NVStorageSaveData done [13:24:03]ExternCall_PrintAddStr [13:24:03]wPrintStart [13:24:03]Write to MH i2c: 01 00 00 A1 37 D8 [13:24:03]Write i2c OK [13:24:03]MH_I2C_Read... [13:24:03]Read from MH i2c: 01 [13:24:03]MH_I2C_Read... [13:24:03]Read from MH i2c: 01 07 00 [13:24:03]MH_I2C_Read... [13:24:03]Read from MH i2c: 01 07 00 A1 37 00 00 00 00 00 FF 0F ED [13:24:03]RasterBufferAndPrint [13:24:03]line Счет N : (1)1964668 [13:24:03]line ИНН: 02508201610067 [13:24:03]line Контрольно-Кассовый Чек [13:24:03]line ПРОДАЖА [13:24:03]line ТРК (МРК, ГНК) : 11 [13:24:03]line Товар: 2710194210 [13:24:03]line ДТ-К-5 [13:24:03]line 13.130 * 76.20 [13:24:03]line = 1000.51 [13:24:03]line НДС 12% НСП 1% [13:24:03]line > о реализуемом товаре [13:24:03]line ОКРУГЛЕНИЕ: -0.51 [13:24:03]line ИТОГО: 1000.00 [13:24:03]line Внесено: 1000.00 [13:24:03]line СДАЧА: 0.00 [13:24:03]line НСП 1% : 8.85 [13:24:03]line НДС 12% : 106.25 [13:24:03]line Наличными: 1000.00 [13:24:03]line Безнал.: 0.00 [13:24:03]line Место: АЗС № 133 "Партнер Нефть" [13:24:03]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:24:03]line СНО: Общий режим [13:24:03]line Чек 183 22.10.2024 13:24 [13:24:03]line Смена: 535 ФФД: 1.0 [13:24:03]line ЗНМ: 0300000091 [13:24:03]line РНМ: 0000000000091685 [13:24:03]line Версия ККМ: 001 [13:24:03]line ФМ: 0000000000871839 [13:24:03]line ФД: 228219 [13:24:03]line ФПД: 133091479559465 [13:24:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132406&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228219&fm=133091479559465&tin=02508201610067®Number=0000000000091685&sum=100000 [13:24:04]OFD Sender: Processing packet 228219 [packets to send 38, broken 37] [13:24:04]ProducePacketName [13:24:04]name=ofd_packets/00228219 [13:24:04]OFD Sender: To server: pG, [13:24:04]CommunicateWithHost lk.salyk.kg:30040 [13:24:04]ConnectInit lk.salyk.kg [13:24:04]written 0, free lines is 4095 [13:24:04]Connected sock=10 [13:24:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 CA 8D 04 01 74 B3 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 B7 00 00 00 F4 03 04 00 76 A7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7B 7B 03 00 35 04 06 00 79 0B C6 5C 9D 29 0E D0 07 25 A4 F2 9F E1 [13:24:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 34 0E 47 00 20 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7B 7B 03 00 F4 03 04 00 6E 52 17 67 B6 04 01 00 00 B5 8B D1 0B 6D 60 B3 E2 [13:24:04]CommunicateWithHost err = 0 [13:24:04]CheckOFDResponse [13:24:04]1017 (14) - 77093643461234 [13:24:04]1041 (16) - 0000000000871839 [13:24:04]1040 (4) - 228219 [13:24:04]1012 (4) - 22.10.2024 07:21 [13:24:04]1206 (1) - 0 [13:24:04]OFD Sender: Remove packet 228219 [13:24:04]ProducePacketName [13:24:04]name=ofd_packets/00228219 [13:24:04]NVStorageDeleteData [13:24:04]Write to MH i2c: 01 00 00 CB 37 02 [13:24:04]Write i2c OK [13:24:04]MH_I2C_Read... [13:24:04]Read from MH i2c: 01 [13:24:04]MH_I2C_Read... [13:24:04]Read from MH i2c: 01 07 00 [13:24:04]MH_I2C_Read... [13:24:04]Read from MH i2c: 01 07 00 CB 37 00 00 00 00 00 C4 0C D9 [13:24:04]RasterBufferAndPrint [13:24:04]line [13:24:04]line [13:24:04]line [13:24:04]line [13:24:04]line [13:24:04]written 0, free lines is 3272 [13:24:04]MH_Cut [13:24:04]Write to MH i2c: D1 01 00 D2 37 01 DB [13:24:04]Write i2c OK [13:24:04]MH_I2C_Read... [13:24:04]Read from MH i2c: D1 [13:24:04]MH_I2C_Read... [13:24:04]Read from MH i2c: D1 01 00 [13:24:04]MH_I2C_Read... [13:24:04]Read from MH i2c: D1 01 00 D2 37 00 DA [13:24:04]Write to MH i2c: 01 00 00 D3 37 0A [13:24:04]Write i2c OK [13:24:04]MH_I2C_Read... [13:24:05]OFD Sender: No OFD packet to send [13:24:05]*** Cut start [13:24:05]*** Partial cut [13:24:05]*** CUTSNS_PIN = 1 [13:24:05]*** CUTSNS_PIN = 0 [13:24:05]*** Brake cut motor [13:24:06]Read from MH i2c: 01 [13:24:06]MH_I2C_Read... [13:24:06]*** Stop cut motor [13:24:06]*** Cut end [13:24:06]Read from MH i2c: 01 07 00 [13:24:06]MH_I2C_Read... [13:24:06]Read from MH i2c: 01 07 00 D3 37 00 00 00 00 00 FF 0F 1F [13:24:06]process_action close_receipt done [13:24:06]requested_data is exist [13:24:06]produce_requested_data [13:24:06]requested_item fm.sn is exist - process it [13:24:06]wFMCommunicate request_size=4 [13:24:06]MH_SAM_APDU [13:24:06]CAPDU: 80 11 00 00 [13:24:06]Write to MH i2c: E2 08 00 D4 37 80 11 00 00 00 00 00 00 85 [13:24:06]Write i2c OK [13:24:06]MH_I2C_Read... [13:24:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:06]Read from MH i2c: E2 [13:24:06]MH_I2C_Read... [13:24:06]Read from MH i2c: E2 17 00 [13:24:06]MH_I2C_Read... [13:24:06]Read from MH i2c: E2 17 00 D4 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DC [13:24:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:24:06]wFMCommunicate OK [13:24:06]requested_item fd.num is exist - process it [13:24:06]SAM_PROTO_GetFieldsCounters [13:24:06]wFMCommunicate request_size=4 [13:24:06]MH_SAM_APDU [13:24:06]CAPDU: 80 13 00 00 [13:24:06]Write to MH i2c: E2 08 00 D5 37 80 13 00 00 00 00 00 00 88 [13:24:06]Write i2c OK [13:24:06]MH_I2C_Read... [13:24:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:06]Read from MH i2c: E2 [13:24:06]MH_I2C_Read... [13:24:06]Read from MH i2c: E2 62 00 [13:24:06]MH_I2C_Read... [13:24:06]Read from MH i2c: E2 62 00 D5 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7B 7B 03 00 0E 04 04 00 17 02 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 E8 [13:24:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7B 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:24:06]wFMCommunicate OK [13:24:06]SAM_PROTO_GetFieldsCounters done [13:24:06]requested_item shift.num is exist - process it [13:24:06]requested_item shift.opened is exist - process it [13:24:06]req_shift_opened [13:24:06]FM_GetShiftState [13:24:06]SAM_PROTO_GetShiftState [13:24:06]wFMCommunicate request_size=4 [13:24:06]MH_SAM_APDU [13:24:06]CAPDU: 80 13 01 00 [13:24:06]Write to MH i2c: E2 08 00 D6 37 80 13 01 00 00 00 00 00 8A [13:24:06]Write i2c OK [13:24:06]MH_I2C_Read... [13:24:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:06]Read from MH i2c: E2 [13:24:06]MH_I2C_Read... [13:24:06]Read from MH i2c: E2 0E 00 [13:24:06]MH_I2C_Read... [13:24:06]Read from MH i2c: E2 0E 00 D6 37 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 51 [13:24:06]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:24:06]wFMCommunicate OK [13:24:06]SAM_PROTO_GetShiftState done [13:24:06]FM_GetShiftState done [13:24:06]req_shift_opened done [13:24:06]requested_item shift.open_date is exist - process it [13:24:06]req_shift_open_date [13:24:06]req_shift_open_date done [13:24:06]produce_requested_data done [13:24:06]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228219,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:24:06]process_action_free close_receipt [13:24:06]json_value_free [13:24:06]json_value_free done [13:24:06]process_json_proto returns [13:24:06]Send response to host [13:24:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228219,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:24:06]free response buf [13:24:06]execute_script done [13:24:06]execute_script returns [13:24:06]free content buf [13:24:06]Sock 7.Close socket [13:24:06]Sock 7.Thread stoped [13:24:10]OFD Sender: No OFD packet to send [13:24:15]OFD Sender: No OFD packet to send [13:24:20]OFD Sender: No OFD packet to send [13:24:25]OFD Sender: No OFD packet to send [13:24:30]OFD Sender: No OFD packet to send [13:24:35]OFD Sender: No OFD packet to send [13:24:40]OFD Sender: No OFD packet to send [13:24:45]OFD Sender: No OFD packet to send [13:24:50]OFD Sender: No OFD packet to send [13:24:55]OFD Sender: No OFD packet to send [13:25:00]OFD Sender: No OFD packet to send [13:25:05]OFD Sender: No OFD packet to send [13:25:10]OFD Sender: No OFD packet to send [13:25:15]OFD Sender: No OFD packet to send [13:25:20]OFD Sender: No OFD packet to send [13:25:25]OFD Sender: No OFD packet to send [13:25:30]OFD Sender: No OFD packet to send [13:25:35]OFD Sender: No OFD packet to send [13:25:40]OFD Sender: No OFD packet to send [13:25:44]accept exits with 9 [13:25:44]New connection [13:25:44]New thread 3067137380 created [13:25:44]Thread 3066994020 joined [13:25:44]Waiting for new connection... [13:25:44] Sock 9.Parse request [13:25:44]Sock 9.Check first char [13:25:44]Sock 9.First char is OK [13:25:44]request: POST /json_proto HTTP/1.0 [13:25:44]Method: POST [13:25:44]URL: /json_proto [13:25:44]Method is POST - this is cgi request [13:25:44]url: /json_proto [13:25:44]query_string will be loaded in cgi processing [13:25:44]execute_cgi json_proto POST (null) [13:25:44]execute_cgi path=json_proto method=POST [13:25:44]POST find Content-Length [13:25:44]Host: 172.17.44.195:8080 [13:25:44]Content-Length: 664 [13:25:44]Content-Type: application/json [13:25:44] [13:25:44]POST finish read [13:25:44]Found Content-Length = 664 [13:25:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.02, "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" ] } } [13:25:44]execute_script... [13:25: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)1964669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.02, "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" ] } } [13:25:44]POST & json_proto [13:25:44]process_json_proto [13:25:44]json parsed OK: [13:25:44]protocol is kg_v1.0 [13:25:44]action value=close_receipt [13:25:44]process_action close_receipt [13:25:44]cmd_close_receipt [13:25:44]MH_GetDate [13:25:44]Write to MH i2c: F0 00 00 D7 37 FD [13:25:44]Write i2c OK [13:25:44]MH_I2C_Read... [13:25:44]Read from MH i2c: F0 [13:25:44]MH_I2C_Read... [13:25:44]Read from MH i2c: F0 09 00 [13:25:44]MH_I2C_Read... [13:25:44]Read from MH i2c: F0 09 00 D7 37 00 DC A7 17 67 82 C9 CF 66 87 [13:25:44]GetLastDocTimeStamp 1729603446 [13:25:44]current date 1729603548 [13:25:44]FM_GetShiftState [13:25:44]SAM_PROTO_GetShiftState [13:25:44]wFMCommunicate request_size=4 [13:25:44]MH_SAM_APDU [13:25:44]CAPDU: 80 13 01 00 [13:25:44]Write to MH i2c: E2 08 00 D8 37 80 13 01 00 00 00 00 00 8C [13:25:44]Write i2c OK [13:25:44]MH_I2C_Read... [13:25:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:44]Read from MH i2c: E2 [13:25:44]MH_I2C_Read... [13:25:44]Read from MH i2c: E2 0E 00 [13:25:44]MH_I2C_Read... [13:25:44]Read from MH i2c: E2 0E 00 D8 37 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 53 [13:25:44]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:25:44]wFMCommunicate OK [13:25:44]SAM_PROTO_GetShiftState done [13:25:44]FM_GetShiftState done [13:25:44]opened in 1729555538 [13:25:44]opened+sec_in_day 1729641938 [13:25:44]quantity*price = 200001 [13:25:44]sum+1 = 200003 [13:25:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.39 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 184 22.10.2024 13:25 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228220 ФПД: 59160080942600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132548&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228220&fm=59160080942600&tin=02508201610067®Number=0000000000091685&sum=200000 [13:25:45]StoreToDocumentArchive [13:25:45]shift 535 fd 228220 [13:25:45]save to /storage/0535/doc_00228220 [13:25:45]save last doc name /storage/0535/doc_00228220 to /storage/kkm_last_doc_name [13:25:45]save OK [13:25:45]Clear old archive folders... [13:25:45]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:25:45]tlvbuf is 0085D5E0 [13:25:45]SAM_PROTO_ClearQueue [13:25:45]wFMCommunicate request_size=4 [13:25:45]MH_SAM_APDU [13:25:45]CAPDU: 80 09 00 00 [13:25:45]Write to MH i2c: E2 08 00 E5 37 80 09 00 00 00 00 00 00 8E [13:25:45]Write i2c OK [13:25:45]MH_I2C_Read... [13:25:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:25:45]Read from MH i2c: E2 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: E2 03 00 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: E2 03 00 E5 37 00 90 00 90 [13:25:45]RAPDU: 90 00 [13:25:45]wFMCommunicate OK [13:25:45]SAM_PROTO_ClearQueue done [13:25:45]KKMCreateOFDPacket [13:25:45]OFDProtocolAddRootSTLVToBuf [13:25:45]FM_MakeSignedData [13:25:45]FM_MakeSignedData [13:25:45]SAM_PROTO_SignData [13:25:45]wFMCommunicate request_size=4 [13:25:45]MH_SAM_APDU [13:25:45]CAPDU: 80 0D 01 02 [13:25:45]Write to MH i2c: E2 08 00 E6 37 80 0D 01 02 00 00 00 00 96 [13:25:45]Write i2c OK [13:25:45]MH_I2C_Read... [13:25:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:25:45]Read from MH i2c: E2 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: E2 03 00 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: E2 03 00 E6 37 00 90 00 91 [13:25:45]RAPDU: 90 00 [13:25:45]wFMCommunicate OK [13:25:45]wFMCommunicate request_size=253 [13:25:45]MH_SAM_APDU [13:25:45]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 B8 00 00 00 F4 03 04 00 DC A7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7C 7B 03 00 35 04 06 00 35 CE 47 9C 06 08 [13:25:45]Write to MH i2c: E2 00 01 E7 37 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 B8 00 00 00 F4 03 04 00 DC A7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7C 7B 03 00 35 04 06 00 35 CE 47 9C 06 08 00 00 BD [13:25:45]Write i2c OK [13:25:45]MH_I2C_Read... [13:25:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:45]Read from MH i2c: E2 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: E2 03 00 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: E2 03 00 E7 37 00 90 00 92 [13:25:45]RAPDU: 90 00 [13:25:45]wFMCommunicate OK [13:25:45]wFMCommunicate request_size=4 [13:25:45]MH_SAM_APDU [13:25:45]CAPDU: 80 0D 03 02 [13:25:45]Write to MH i2c: E2 08 00 E8 37 80 0D 03 02 00 00 00 00 9A [13:25:45]Write i2c OK [13:25:45]MH_I2C_Read... [13:25:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:25:45]Read from MH i2c: E2 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: E2 0B 00 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: E2 0B 00 E8 37 00 11 0E 08 2B 1E B8 3C C8 90 00 C7 [13:25:45]RAPDU: 11 0E 08 2B 1E B8 3C C8 90 00 [13:25:45]wFMCommunicate OK [13:25:45]SAM_PROTO_SignData done [13:25:45]FM_MakeSignedData done [13:25:45]CreateOFDProtocolMessage [13:25:45]wFMCommunicate request_size=4 [13:25:45]MH_SAM_APDU [13:25:45]CAPDU: 80 11 00 00 [13:25:45]Write to MH i2c: E2 08 00 E9 37 80 11 00 00 00 00 00 00 9A [13:25:45]Write i2c OK [13:25:45]MH_I2C_Read... [13:25:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:45]Read from MH i2c: E2 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: E2 17 00 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: E2 17 00 E9 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F1 [13:25:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:25:45]wFMCommunicate OK [13:25:45]CreateOFDProtocolMessage done [13:25:45]OFDSenderStorePacket 228220 [13:25:45]StoreOFDPacket docnum=228220 [13:25:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 9E 72 00 01 8F 81 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 B8 00 00 00 F4 03 04 00 DC A7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7C 7B 03 00 35 04 06 00 35 CE 47 9C 06 08 11 0E 08 2B 1E B8 3C C8 [13:25:45]CheckFolder [13:25:45]dirname=/storage/ofd_packets [13:25:45]CheckFolder done [13:25:45]ProducePacketName [13:25:45]name=ofd_packets/00228220 [13:25:45]NVStorageSaveData ofd_packets/00228220 [13:25:45]File name is /storage/ofd_packets/00228220 [13:25:45]Write 294 bytes [13:25:45]NVStorageSaveData done [13:25:45]OFDSenderStorePacket done [13:25:45]KKMCreateOFDPacket done [13:25:45]NVStorageSaveData kkm_last_timestamp [13:25:45]File name is /storage/kkm_last_timestamp [13:25:45]Write 4 bytes [13:25:45]NVStorageSaveData done [13:25:45]ExternCall_PrintAddStr [13:25:45]wPrintStart [13:25:45]Write to MH i2c: 01 00 00 EA 37 21 [13:25:45]Write i2c OK [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: 01 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: 01 07 00 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: 01 07 00 EA 37 00 00 00 00 00 FF 0F 36 [13:25:45]RasterBufferAndPrint [13:25:45]line Счет N : (1)1964669 [13:25:45]line ИНН: 02508201610067 [13:25:45]line Контрольно-Кассовый Чек [13:25:45]line ПРОДАЖА [13:25:45]line ТРК (МРК, ГНК) : 52 [13:25:45]line Товар: 2710124130 [13:25:45]line SU-92 [13:25:45]line 29.240 * 68.40 [13:25:45]line = 2000.02 [13:25:45]line НДС 12% НСП 1% [13:25:45]line > о реализуемом товаре [13:25:45]line ОКРУГЛЕНИЕ: -0.02 [13:25:45]line ИТОГО: 2000.00 [13:25:45]line Внесено: 2000.00 [13:25:45]line СДАЧА: 0.00 [13:25:45]line НСП 1% : 17.70 [13:25:45]line НДС 12% : 212.39 [13:25:45]line Наличными: 2000.00 [13:25:45]line Безнал.: 0.00 [13:25:45]line Место: АЗС № 133 "Партнер Нефть" [13:25:45]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:25:45]line СНО: Общий режим [13:25:45]line Чек 184 22.10.2024 13:25 [13:25:45]line Смена: 535 ФФД: 1.0 [13:25:45]line ЗНМ: 0300000091 [13:25:45]line РНМ: 0000000000091685 [13:25:45]line Версия ККМ: 001 [13:25:45]line ФМ: 0000000000871839 [13:25:45]line ФД: 228220 [13:25:45]line ФПД: 59160080942600 [13:25:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132548&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228220&fm=59160080942600&tin=02508201610067®Number=0000000000091685&sum=200000 [13:25:46]OFD Sender: Processing packet 228220 [packets to send 38, broken 37] [13:25:46]ProducePacketName [13:25:46]name=ofd_packets/00228220 [13:25:46]OFD Sender: To server: pG, [13:25:46]CommunicateWithHost lk.salyk.kg:30040 [13:25:46]ConnectInit lk.salyk.kg [13:25:46]written 0, free lines is 4095 [13:25:46]Connected sock=10 [13:25:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 9E 72 00 01 8F 81 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 B8 00 00 00 F4 03 04 00 DC A7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7C 7B 03 00 35 04 06 00 35 CE 47 9C 06 08 11 0E 08 2B 1E B8 3C C8 [13:25:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 5A EE 47 00 56 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7C 7B 03 00 F4 03 04 00 D4 52 17 67 B6 04 01 00 00 6A D7 46 69 A5 6C EE E2 [13:25:46]CommunicateWithHost err = 0 [13:25:46]CheckOFDResponse [13:25:46]1017 (14) - 77093643461234 [13:25:46]1041 (16) - 0000000000871839 [13:25:46]1040 (4) - 228220 [13:25:46]1012 (4) - 22.10.2024 07:23 [13:25:46]1206 (1) - 0 [13:25:46]OFD Sender: Remove packet 228220 [13:25:46]ProducePacketName [13:25:46]name=ofd_packets/00228220 [13:25:46]NVStorageDeleteData [13:25:46]Write to MH i2c: 01 00 00 14 38 4C [13:25:46]Write i2c OK [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: 01 [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: 01 07 00 [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: 01 07 00 14 38 00 00 00 00 00 C8 0C 27 [13:25:46]RasterBufferAndPrint [13:25:46]line [13:25:46]line [13:25:46]line [13:25:46]line [13:25:46]line [13:25:46]written 0, free lines is 3276 [13:25:46]MH_Cut [13:25:46]Write to MH i2c: D1 01 00 1B 38 01 25 [13:25:46]Write i2c OK [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: D1 [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: D1 01 00 [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: D1 01 00 1B 38 00 24 [13:25:46]Write to MH i2c: 01 00 00 1C 38 54 [13:25:46]Write i2c OK [13:25:46]MH_I2C_Read... [13:25:46]OFD Sender: No OFD packet to send [13:25:47]*** Cut start [13:25:47]*** Partial cut [13:25:47]*** CUTSNS_PIN = 1 [13:25:47]*** CUTSNS_PIN = 0 [13:25:47]*** Brake cut motor [13:25:48]Read from MH i2c: 01 [13:25:48]MH_I2C_Read... [13:25:48]*** Stop cut motor [13:25:48]*** Cut end [13:25:48]Read from MH i2c: 01 07 00 [13:25:48]MH_I2C_Read... [13:25:48]Read from MH i2c: 01 07 00 1C 38 00 00 00 00 00 FF 0F 69 [13:25:48]process_action close_receipt done [13:25:48]requested_data is exist [13:25:48]produce_requested_data [13:25:48]requested_item fm.sn is exist - process it [13:25:48]wFMCommunicate request_size=4 [13:25:48]MH_SAM_APDU [13:25:48]CAPDU: 80 11 00 00 [13:25:48]Write to MH i2c: E2 08 00 1D 38 80 11 00 00 00 00 00 00 CF [13:25:48]Write i2c OK [13:25:48]MH_I2C_Read... [13:25:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:48]Read from MH i2c: E2 [13:25:48]MH_I2C_Read... [13:25:48]Read from MH i2c: E2 17 00 [13:25:48]MH_I2C_Read... [13:25:48]Read from MH i2c: E2 17 00 1D 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 26 [13:25:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:25:48]wFMCommunicate OK [13:25:48]requested_item fd.num is exist - process it [13:25:48]SAM_PROTO_GetFieldsCounters [13:25:48]wFMCommunicate request_size=4 [13:25:48]MH_SAM_APDU [13:25:48]CAPDU: 80 13 00 00 [13:25:48]Write to MH i2c: E2 08 00 1E 38 80 13 00 00 00 00 00 00 D2 [13:25:48]Write i2c OK [13:25:48]MH_I2C_Read... [13:25:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:48]Read from MH i2c: E2 [13:25:48]MH_I2C_Read... [13:25:48]Read from MH i2c: E2 62 00 [13:25:48]MH_I2C_Read... [13:25:48]Read from MH i2c: E2 62 00 1E 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7C 7B 03 00 0E 04 04 00 17 02 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 36 [13:25:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7C 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:25:48]wFMCommunicate OK [13:25:48]SAM_PROTO_GetFieldsCounters done [13:25:48]requested_item shift.num is exist - process it [13:25:48]requested_item shift.opened is exist - process it [13:25:48]req_shift_opened [13:25:48]FM_GetShiftState [13:25:48]SAM_PROTO_GetShiftState [13:25:48]wFMCommunicate request_size=4 [13:25:48]MH_SAM_APDU [13:25:48]CAPDU: 80 13 01 00 [13:25:48]Write to MH i2c: E2 08 00 1F 38 80 13 01 00 00 00 00 00 D4 [13:25:48]Write i2c OK [13:25:48]MH_I2C_Read... [13:25:48]Read from MH i2c: E2 [13:25:48]MH_I2C_Read... [13:25:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:48]Read from MH i2c: E2 0E 00 [13:25:48]MH_I2C_Read... [13:25:48]Read from MH i2c: E2 0E 00 1F 38 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 9B [13:25:48]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:25:48]wFMCommunicate OK [13:25:48]SAM_PROTO_GetShiftState done [13:25:48]FM_GetShiftState done [13:25:48]req_shift_opened done [13:25:48]requested_item shift.open_date is exist - process it [13:25:48]req_shift_open_date [13:25:48]req_shift_open_date done [13:25:48]produce_requested_data done [13:25:48]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228220,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:25:48]process_action_free close_receipt [13:25:48]json_value_free [13:25:48]json_value_free done [13:25:48]process_json_proto returns [13:25:48]Send response to host [13:25:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228220,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:25:48]free response buf [13:25:48]execute_script done [13:25:48]execute_script returns [13:25:48]free content buf [13:25:48]Sock 9.Close socket [13:25:48]Sock 9.Thread stoped [13:25:51]OFD Sender: No OFD packet to send [13:25:56]OFD Sender: No OFD packet to send [13:26:01]OFD Sender: No OFD packet to send [13:26:06]OFD Sender: No OFD packet to send [13:26:11]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:30]accept exits with 7 [13:26:30]New connection [13:26:30]New thread 3066994020 created [13:26:30]Thread 3067137380 joined [13:26:30]Waiting for new connection... [13:26:30] Sock 7.Parse request [13:26:30]Sock 7.Check first char [13:26:30]Sock 7.First char is OK [13:26:30]request: POST /json_proto HTTP/1.0 [13:26:30]Method: POST [13:26:30]URL: /json_proto [13:26:30]Method is POST - this is cgi request [13:26:30]url: /json_proto [13:26:30]query_string will be loaded in cgi processing [13:26:30]execute_cgi json_proto POST (null) [13:26:30]execute_cgi path=json_proto method=POST [13:26:30]POST find Content-Length [13:26:30]Host: 172.17.44.195:8080 [13:26:30]Content-Length: 678 [13:26:30]Content-Type: application/json [13:26:30] [13:26:30]POST finish read [13:26:30]Found Content-Length = 678 [13:26:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:30]execute_script... [13:26: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)1964670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:30]POST & json_proto [13:26:30]process_json_proto [13:26:30]json parsed OK: [13:26:30]protocol is kg_v1.0 [13:26:30]action value=close_receipt [13:26:30]process_action close_receipt [13:26:30]cmd_close_receipt [13:26:30]MH_GetDate [13:26:30]Write to MH i2c: F0 00 00 20 38 47 [13:26:30]Write i2c OK [13:26:30]MH_I2C_Read... [13:26:30]Read from MH i2c: F0 [13:26:30]MH_I2C_Read... [13:26:30]Read from MH i2c: F0 09 00 [13:26:30]MH_I2C_Read... [13:26:30]Read from MH i2c: F0 09 00 20 38 00 0B A8 17 67 82 C9 CF 66 01 [13:26:30]GetLastDocTimeStamp 1729603548 [13:26:30]current date 1729603595 [13:26:30]FM_GetShiftState [13:26:30]SAM_PROTO_GetShiftState [13:26:30]wFMCommunicate request_size=4 [13:26:30]MH_SAM_APDU [13:26:30]CAPDU: 80 13 01 00 [13:26:30]Write to MH i2c: E2 08 00 21 38 80 13 01 00 00 00 00 00 D6 [13:26:30]Write i2c OK [13:26:30]MH_I2C_Read... [13:26:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:31]Read from MH i2c: E2 [13:26:31]MH_I2C_Read... [13:26:31]Read from MH i2c: E2 0E 00 [13:26:31]MH_I2C_Read... [13:26:31]Read from MH i2c: E2 0E 00 21 38 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 9D [13:26:31]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:26:31]wFMCommunicate OK [13:26:31]SAM_PROTO_GetShiftState done [13:26:31]FM_GetShiftState done [13:26:31]opened in 1729555538 [13:26:31]opened+sec_in_day 1729641938 [13:26:31]quantity*price = 60027 [13:26:31]sum+1 = 60029 [13:26:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 185 22.10.2024 13:26 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228221 ФПД: 222415792714263 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132635&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228221&fm=222415792714263&tin=02508201610067®Number=0000000000091685&sum=60000 [13:26:32]StoreToDocumentArchive [13:26:32]shift 535 fd 228221 [13:26:32]save to /storage/0535/doc_00228221 [13:26:32]save last doc name /storage/0535/doc_00228221 to /storage/kkm_last_doc_name [13:26:32]save OK [13:26:32]Clear old archive folders... [13:26:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:26:32]tlvbuf is 008B1A90 [13:26:32]SAM_PROTO_ClearQueue [13:26:32]wFMCommunicate request_size=4 [13:26:32]MH_SAM_APDU [13:26:32]CAPDU: 80 09 00 00 [13:26:32]Write to MH i2c: E2 08 00 2E 38 80 09 00 00 00 00 00 00 D8 [13:26:32]Write i2c OK [13:26:32]MH_I2C_Read... [13:26:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:32]Read from MH i2c: E2 [13:26:32]MH_I2C_Read... [13:26:32]Read from MH i2c: E2 03 00 [13:26:32]MH_I2C_Read... [13:26:32]Read from MH i2c: E2 03 00 2E 38 00 90 00 DA [13:26:32]RAPDU: 90 00 [13:26:32]wFMCommunicate OK [13:26:32]SAM_PROTO_ClearQueue done [13:26:32]KKMCreateOFDPacket [13:26:32]OFDProtocolAddRootSTLVToBuf [13:26:32]FM_MakeSignedData [13:26:32]FM_MakeSignedData [13:26:32]SAM_PROTO_SignData [13:26:32]wFMCommunicate request_size=4 [13:26:32]MH_SAM_APDU [13:26:32]CAPDU: 80 0D 01 02 [13:26:32]Write to MH i2c: E2 08 00 2F 38 80 0D 01 02 00 00 00 00 E0 [13:26:32]Write i2c OK [13:26:32]MH_I2C_Read... [13:26:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:32]Read from MH i2c: E2 [13:26:32]MH_I2C_Read... [13:26:32]Read from MH i2c: E2 03 00 [13:26:32]MH_I2C_Read... [13:26:32]Read from MH i2c: E2 03 00 2F 38 00 90 00 DB [13:26:32]RAPDU: 90 00 [13:26:32]wFMCommunicate OK [13:26:32]wFMCommunicate request_size=255 [13:26:32]MH_SAM_APDU [13:26: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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 B9 00 00 00 F4 03 04 00 0B A8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7D 7B 03 00 35 04 06 00 CA [13:26:32]Write to MH i2c: E2 02 01 30 38 80 0D 02 02 FA 00 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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 B9 00 00 00 F4 03 04 00 0B A8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7D 7B 03 00 35 04 06 00 CA 00 00 9D [13:26:32]Write i2c OK [13:26:32]MH_I2C_Read... [13:26:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:32]Read from MH i2c: E2 [13:26:32]MH_I2C_Read... [13:26:32]Read from MH i2c: E2 03 00 [13:26:32]MH_I2C_Read... [13:26:32]Read from MH i2c: E2 03 00 30 38 00 90 00 DC [13:26:32]RAPDU: 90 00 [13:26:32]wFMCommunicate OK [13:26:32]wFMCommunicate request_size=10 [13:26:32]MH_SAM_APDU [13:26:32]CAPDU: 80 0D 02 02 05 49 36 51 32 17 [13:26:32]Write to MH i2c: E2 0D 00 31 38 80 0D 02 02 05 00 49 36 51 32 17 00 00 06 [13:26:32]Write i2c OK [13:26:32]MH_I2C_Read... [13:26:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:32]Read from MH i2c: E2 [13:26:32]MH_I2C_Read... [13:26:32]Read from MH i2c: E2 03 00 [13:26:32]MH_I2C_Read... [13:26:32]Read from MH i2c: E2 03 00 31 38 00 90 00 DD [13:26:32]RAPDU: 90 00 [13:26:32]wFMCommunicate OK [13:26:32]wFMCommunicate request_size=4 [13:26:32]MH_SAM_APDU [13:26:32]CAPDU: 80 0D 03 02 [13:26:32]Write to MH i2c: E2 08 00 32 38 80 0D 03 02 00 00 00 00 E5 [13:26:32]Write i2c OK [13:26:32]MH_I2C_Read... [13:26:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:32]Read from MH i2c: E2 [13:26:32]MH_I2C_Read... [13:26:32]Read from MH i2c: E2 0B 00 [13:26:32]MH_I2C_Read... [13:26:32]Read from MH i2c: E2 0B 00 32 38 00 B6 E9 97 0D 64 E4 D4 9A 90 00 DF [13:26:32]RAPDU: B6 E9 97 0D 64 E4 D4 9A 90 00 [13:26:32]wFMCommunicate OK [13:26:32]SAM_PROTO_SignData done [13:26:32]FM_MakeSignedData done [13:26:32]CreateOFDProtocolMessage [13:26:32]wFMCommunicate request_size=4 [13:26:32]MH_SAM_APDU [13:26:32]CAPDU: 80 11 00 00 [13:26:32]Write to MH i2c: E2 08 00 33 38 80 11 00 00 00 00 00 00 E5 [13:26:32]Write i2c OK [13:26:32]MH_I2C_Read... [13:26:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:32]Read from MH i2c: E2 [13:26:32]MH_I2C_Read... [13:26:32]Read from MH i2c: E2 17 00 [13:26:32]MH_I2C_Read... [13:26:32]Read from MH i2c: E2 17 00 33 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 3C [13:26:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:26:32]wFMCommunicate OK [13:26:32]CreateOFDProtocolMessage done [13:26:32]OFDSenderStorePacket 228221 [13:26:32]StoreOFDPacket docnum=228221 [13:26:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D2 FC 07 01 85 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 B9 00 00 00 F4 03 04 00 0B A8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7D 7B 03 00 35 04 06 00 CA 49 36 51 32 17 B6 E9 97 0D 64 E4 D4 9A [13:26:32]CheckFolder [13:26:32]dirname=/storage/ofd_packets [13:26:32]CheckFolder done [13:26:32]ProducePacketName [13:26:32]name=ofd_packets/00228221 [13:26:32]NVStorageSaveData ofd_packets/00228221 [13:26:32]File name is /storage/ofd_packets/00228221 [13:26:32]Write 301 bytes [13:26:32]NVStorageSaveData done [13:26:32]OFDSenderStorePacket done [13:26:32]KKMCreateOFDPacket done [13:26:32]NVStorageSaveData kkm_last_timestamp [13:26:32]File name is /storage/kkm_last_timestamp [13:26:32]Write 4 bytes [13:26:32]NVStorageSaveData done [13:26:32]ExternCall_PrintAddStr [13:26:32]wPrintStart [13:26:32]Write to MH i2c: 01 00 00 34 38 6C [13:26:32]Write i2c OK [13:26:32]MH_I2C_Read... [13:26:32]Read from MH i2c: 01 [13:26:32]MH_I2C_Read... [13:26:32]Read from MH i2c: 01 07 00 [13:26:32]MH_I2C_Read... [13:26:32]Read from MH i2c: 01 07 00 34 38 00 00 00 00 00 FF 0F 81 [13:26:32]RasterBufferAndPrint [13:26:32]line Счет N : (1)1964670 [13:26:32]line ИНН: 02508201610067 [13:26:32]line Контрольно-Кассовый Чек [13:26:32]line ПРОДАЖА [13:26:32]line ТРК (МРК, ГНК) : 34 [13:26:32]line Товар: 2710124500 [13:26:32]line Аи-95-К-5 [13:26:32]line 8.090 * 74.20 [13:26:32]line = 600.28 [13:26:32]line НДС 12% НСП 1% [13:26:32]line > о реализуемом товаре [13:26:32]line ОКРУГЛЕНИЕ: -0.28 [13:26:32]line ИТОГО: 600.00 [13:26:32]line Внесено: 600.00 [13:26:32]line СДАЧА: 0.00 [13:26:32]line НСП 1% : 5.31 [13:26:32]line НДС 12% : 63.75 [13:26:32]line Наличными: 600.00 [13:26:32]line Безнал.: 0.00 [13:26:32]line Место: АЗС № 133 "Партнер Нефть" [13:26:32]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:26:32]line СНО: Общий режим [13:26:32]line Чек 185 22.10.2024 13:26 [13:26:32]line Смена: 535 ФФД: 1.0 [13:26:32]line ЗНМ: 0300000091 [13:26:32]line РНМ: 0000000000091685 [13:26:32]line Версия ККМ: 001 [13:26:32]line ФМ: 0000000000871839 [13:26:32]line ФД: 228221 [13:26:32]line ФПД: 222415792714263 [13:26:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132635&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228221&fm=222415792714263&tin=02508201610067®Number=0000000000091685&sum=60000 [13:26:32]written 0, free lines is 4095 [13:26:32]OFD Sender: Processing packet 228221 [packets to send 38, broken 37] [13:26:32]ProducePacketName [13:26:32]name=ofd_packets/00228221 [13:26:32]OFD Sender: To server: pG, [13:26:32]CommunicateWithHost lk.salyk.kg:30040 [13:26:32]ConnectInit lk.salyk.kg [13:26:32]Connected sock=11 [13:26:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D2 FC 07 01 85 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 B9 00 00 00 F4 03 04 00 0B A8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7D 7B 03 00 35 04 06 00 CA 49 36 51 32 17 B6 E9 97 0D 64 E4 D4 9A [13:26:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 BD E1 47 00 06 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7D 7B 03 00 F4 03 04 00 03 53 17 67 B6 04 01 00 00 C8 F1 87 C1 44 77 10 4C [13:26:32]CommunicateWithHost err = 0 [13:26:32]CheckOFDResponse [13:26:32]1017 (14) - 77093643461234 [13:26:32]1041 (16) - 0000000000871839 [13:26:32]1040 (4) - 228221 [13:26:32]1012 (4) - 22.10.2024 07:23 [13:26:32]1206 (1) - 0 [13:26:32]OFD Sender: Remove packet 228221 [13:26:32]ProducePacketName [13:26:32]name=ofd_packets/00228221 [13:26:32]NVStorageDeleteData [13:26:33]Write to MH i2c: 01 00 00 5E 38 96 [13:26:33]Write i2c OK [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: 01 [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: 01 07 00 [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: 01 07 00 5E 38 00 00 00 00 00 C4 0C 6D [13:26:33]RasterBufferAndPrint [13:26:33]line [13:26:33]line [13:26:33]line [13:26:33]line [13:26:33]line [13:26:33]written 0, free lines is 3272 [13:26:33]MH_Cut [13:26:33]Write to MH i2c: D1 01 00 65 38 01 6F [13:26:33]Write i2c OK [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: D1 [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: D1 01 00 [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: D1 01 00 65 38 00 6E [13:26:33]Write to MH i2c: 01 00 00 66 38 9E [13:26:33]Write i2c OK [13:26:33]MH_I2C_Read... [13:26:33]OFD Sender: No OFD packet to send [13:26:33]*** Cut start [13:26:33]*** Partial cut [13:26:33]*** CUTSNS_PIN = 1 [13:26:34]*** CUTSNS_PIN = 0 [13:26:34]*** Brake cut motor [13:26:34]Read from MH i2c: 01 [13:26:34]MH_I2C_Read... [13:26:34]*** Stop cut motor [13:26:34]*** Cut end [13:26:34]Read from MH i2c: 01 07 00 [13:26:34]MH_I2C_Read... [13:26:34]Read from MH i2c: 01 07 00 66 38 00 00 00 00 00 FF 0F B3 [13:26:34]process_action close_receipt done [13:26:34]requested_data is exist [13:26:34]produce_requested_data [13:26:34]requested_item fm.sn is exist - process it [13:26:34]wFMCommunicate request_size=4 [13:26:34]MH_SAM_APDU [13:26:34]CAPDU: 80 11 00 00 [13:26:34]Write to MH i2c: E2 08 00 67 38 80 11 00 00 00 00 00 00 19 [13:26:34]Write i2c OK [13:26:34]MH_I2C_Read... [13:26:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:34]Read from MH i2c: E2 [13:26:34]MH_I2C_Read... [13:26:34]Read from MH i2c: E2 17 00 [13:26:34]MH_I2C_Read... [13:26:34]Read from MH i2c: E2 17 00 67 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 70 [13:26:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:26:34]wFMCommunicate OK [13:26:34]requested_item fd.num is exist - process it [13:26:34]SAM_PROTO_GetFieldsCounters [13:26:34]wFMCommunicate request_size=4 [13:26:34]MH_SAM_APDU [13:26:34]CAPDU: 80 13 00 00 [13:26:34]Write to MH i2c: E2 08 00 68 38 80 13 00 00 00 00 00 00 1C [13:26:34]Write i2c OK [13:26:34]MH_I2C_Read... [13:26:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:34]Read from MH i2c: E2 [13:26:34]MH_I2C_Read... [13:26:34]Read from MH i2c: E2 62 00 [13:26:34]MH_I2C_Read... [13:26:34]Read from MH i2c: E2 62 00 68 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7D 7B 03 00 0E 04 04 00 17 02 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 84 [13:26:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7D 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:26:34]wFMCommunicate OK [13:26:34]SAM_PROTO_GetFieldsCounters done [13:26:34]requested_item shift.num is exist - process it [13:26:34]requested_item shift.opened is exist - process it [13:26:34]req_shift_opened [13:26:34]FM_GetShiftState [13:26:34]SAM_PROTO_GetShiftState [13:26:34]wFMCommunicate request_size=4 [13:26:34]MH_SAM_APDU [13:26:34]CAPDU: 80 13 01 00 [13:26:34]Write to MH i2c: E2 08 00 69 38 80 13 01 00 00 00 00 00 1E [13:26:34]Write i2c OK [13:26:34]MH_I2C_Read... [13:26:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:34]Read from MH i2c: E2 [13:26:34]MH_I2C_Read... [13:26:34]Read from MH i2c: E2 0E 00 [13:26:34]MH_I2C_Read... [13:26:34]Read from MH i2c: E2 0E 00 69 38 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 E5 [13:26:34]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:26:34]wFMCommunicate OK [13:26:34]SAM_PROTO_GetShiftState done [13:26:34]FM_GetShiftState done [13:26:34]req_shift_opened done [13:26:34]requested_item shift.open_date is exist - process it [13:26:34]req_shift_open_date [13:26:34]req_shift_open_date done [13:26:34]produce_requested_data done [13:26:34]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228221,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:26:34]process_action_free close_receipt [13:26:34]json_value_free [13:26:34]json_value_free done [13:26:34]process_json_proto returns [13:26:34]Send response to host [13:26:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228221,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:26:34]free response buf [13:26:34]execute_script done [13:26:34]execute_script returns [13:26:34]free content buf [13:26:34]Sock 7.Close socket [13:26:34]Sock 7.Thread stoped [13:26:38]OFD Sender: No OFD packet to send [13:26:43]OFD Sender: No OFD packet to send [13:26:48]OFD Sender: No OFD packet to send [13:26:53]OFD Sender: No OFD packet to send [13:26:58]OFD Sender: No OFD packet to send [13:27:03]OFD Sender: No OFD packet to send [13:27:08]OFD Sender: No OFD packet to send [13:27:13]OFD Sender: No OFD packet to send [13:27:18]OFD Sender: No OFD packet to send [13:27:23]OFD Sender: No OFD packet to send [13:27:28]OFD Sender: No OFD packet to send [13:27:33]OFD Sender: No OFD packet to send [13:27:38]OFD Sender: No OFD packet to send [13:27:43]OFD Sender: No OFD packet to send [13:27:48]OFD Sender: No OFD packet to send [13:27:53]OFD Sender: No OFD packet to send [13:27:58]OFD Sender: No OFD packet to send [13:28:00]accept exits with 9 [13:28:00]New connection [13:28:00]New thread 3067137380 created [13:28:00]Thread 3066994020 joined [13:28:00]Waiting for new connection... [13:28:00] Sock 9.Parse request [13:28:00]Sock 9.Check first char [13:28:00]Sock 9.First char is OK [13:28:00]request: POST /json_proto HTTP/1.0 [13:28:00]Method: POST [13:28:00]URL: /json_proto [13:28:00]Method is POST - this is cgi request [13:28:00]url: /json_proto [13:28:00]query_string will be loaded in cgi processing [13:28:00]execute_cgi json_proto POST (null) [13:28:00]execute_cgi path=json_proto method=POST [13:28:00]POST find Content-Length [13:28:00]Host: 172.17.44.195:8080 [13:28:00]Content-Length: 680 [13:28:00]Content-Type: application/json [13:28:00] [13:28:00]POST finish read [13:28:00]Found Content-Length = 680 [13:28:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964671", "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" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [13:28:00]execute_script... [13:28: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)1964671", "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" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [13:28:00]POST & json_proto [13:28:00]process_json_proto [13:28:00]json parsed OK: [13:28:00]protocol is kg_v1.0 [13:28:00]action value=close_receipt [13:28:00]process_action close_receipt [13:28:00]cmd_close_receipt [13:28:00]MH_GetDate [13:28:00]Write to MH i2c: F0 00 00 6A 38 91 [13:28:00]Write i2c OK [13:28:00]MH_I2C_Read... [13:28:00]Read from MH i2c: F0 [13:28:00]MH_I2C_Read... [13:28:00]Read from MH i2c: F0 09 00 [13:28:00]MH_I2C_Read... [13:28:00]Read from MH i2c: F0 09 00 6A 38 00 64 A8 17 67 82 C9 CF 66 A4 [13:28:00]GetLastDocTimeStamp 1729603595 [13:28:00]current date 1729603684 [13:28:00]FM_GetShiftState [13:28:00]SAM_PROTO_GetShiftState [13:28:00]wFMCommunicate request_size=4 [13:28:00]MH_SAM_APDU [13:28:00]CAPDU: 80 13 01 00 [13:28:00]Write to MH i2c: E2 08 00 6B 38 80 13 01 00 00 00 00 00 20 [13:28:00]Write i2c OK [13:28:00]MH_I2C_Read... [13:28:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:00]Read from MH i2c: E2 [13:28:00]MH_I2C_Read... [13:28:00]Read from MH i2c: E2 0E 00 [13:28:00]MH_I2C_Read... [13:28:00]Read from MH i2c: E2 0E 00 6B 38 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 E7 [13:28:00]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:28:00]wFMCommunicate OK [13:28:00]SAM_PROTO_GetShiftState done [13:28:00]FM_GetShiftState done [13:28:00]opened in 1729555538 [13:28:00]opened+sec_in_day 1729641938 [13:28:00]quantity*price = 150037 [13:28:00]sum+1 = 150039 [13:28:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 186 22.10.2024 13:28 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228222 ФПД: 215185518733972 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132804&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228222&fm=215185518733972&tin=02508201610067®Number=0000000000091685&sum=150000 [13:28:01]StoreToDocumentArchive [13:28:01]shift 535 fd 228222 [13:28:01]save to /storage/0535/doc_00228222 [13:28:01]save last doc name /storage/0535/doc_00228222 to /storage/kkm_last_doc_name [13:28:01]save OK [13:28:01]Clear old archive folders... [13:28:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:28:01]tlvbuf is 00895670 [13:28:01]SAM_PROTO_ClearQueue [13:28:01]wFMCommunicate request_size=4 [13:28:01]MH_SAM_APDU [13:28:01]CAPDU: 80 09 00 00 [13:28:01]Write to MH i2c: E2 08 00 78 38 80 09 00 00 00 00 00 00 22 [13:28:01]Write i2c OK [13:28:01]MH_I2C_Read... [13:28:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:28:01]Read from MH i2c: E2 [13:28:01]MH_I2C_Read... [13:28:01]Read from MH i2c: E2 03 00 [13:28:01]MH_I2C_Read... [13:28:01]Read from MH i2c: E2 03 00 78 38 00 90 00 24 [13:28:01]RAPDU: 90 00 [13:28:01]wFMCommunicate OK [13:28:01]SAM_PROTO_ClearQueue done [13:28:01]KKMCreateOFDPacket [13:28:01]OFDProtocolAddRootSTLVToBuf [13:28:01]FM_MakeSignedData [13:28:01]FM_MakeSignedData [13:28:01]SAM_PROTO_SignData [13:28:01]wFMCommunicate request_size=4 [13:28:01]MH_SAM_APDU [13:28:01]CAPDU: 80 0D 01 02 [13:28:01]Write to MH i2c: E2 08 00 79 38 80 0D 01 02 00 00 00 00 2A [13:28:01]Write i2c OK [13:28:01]MH_I2C_Read... [13:28:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:28:01]Read from MH i2c: E2 [13:28:01]MH_I2C_Read... [13:28:01]Read from MH i2c: E2 03 00 [13:28:01]MH_I2C_Read... [13:28:01]Read from MH i2c: E2 03 00 79 38 00 90 00 25 [13:28:01]RAPDU: 90 00 [13:28:01]wFMCommunicate OK [13:28:01]wFMCommunicate request_size=255 [13:28:01]MH_SAM_APDU [13:28:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 BA 00 00 00 F4 03 04 00 64 A8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7E 7B 03 00 35 04 06 00 C3 B5 C8 67 [13:28:01]Write to MH i2c: E2 02 01 7A 38 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 BA 00 00 00 F4 03 04 00 64 A8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7E 7B 03 00 35 04 06 00 C3 B5 C8 67 00 00 2E [13:28:01]Write i2c OK [13:28:01]MH_I2C_Read... [13:28:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:01]Read from MH i2c: E2 [13:28:01]MH_I2C_Read... [13:28:01]Read from MH i2c: E2 03 00 [13:28:01]MH_I2C_Read... [13:28:01]Read from MH i2c: E2 03 00 7A 38 00 90 00 26 [13:28:01]RAPDU: 90 00 [13:28:01]wFMCommunicate OK [13:28:01]wFMCommunicate request_size=7 [13:28:01]MH_SAM_APDU [13:28:01]CAPDU: 80 0D 02 02 02 AA 94 [13:28:01]Write to MH i2c: E2 0A 00 7B 38 80 0D 02 02 02 00 AA 94 00 00 6F [13:28:01]Write i2c OK [13:28:01]MH_I2C_Read... [13:28:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:01]Read from MH i2c: E2 [13:28:01]MH_I2C_Read... [13:28:01]Read from MH i2c: E2 03 00 [13:28:01]MH_I2C_Read... [13:28:01]Read from MH i2c: E2 03 00 7B 38 00 90 00 27 [13:28:01]RAPDU: 90 00 [13:28:01]wFMCommunicate OK [13:28:02]wFMCommunicate request_size=4 [13:28:02]MH_SAM_APDU [13:28:02]CAPDU: 80 0D 03 02 [13:28:02]Write to MH i2c: E2 08 00 7C 38 80 0D 03 02 00 00 00 00 2F [13:28:02]Write i2c OK [13:28:02]MH_I2C_Read... [13:28:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:28:02]Read from MH i2c: E2 [13:28:02]MH_I2C_Read... [13:28:02]Read from MH i2c: E2 0B 00 [13:28:02]MH_I2C_Read... [13:28:02]Read from MH i2c: E2 0B 00 7C 38 00 63 81 4B 79 19 79 B7 6E 90 00 8F [13:28:02]RAPDU: 63 81 4B 79 19 79 B7 6E 90 00 [13:28:02]wFMCommunicate OK [13:28:02]SAM_PROTO_SignData done [13:28:02]FM_MakeSignedData done [13:28:02]CreateOFDProtocolMessage [13:28:02]wFMCommunicate request_size=4 [13:28:02]MH_SAM_APDU [13:28:02]CAPDU: 80 11 00 00 [13:28:02]Write to MH i2c: E2 08 00 7D 38 80 11 00 00 00 00 00 00 2F [13:28:02]Write i2c OK [13:28:02]MH_I2C_Read... [13:28:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:02]Read from MH i2c: E2 [13:28:02]MH_I2C_Read... [13:28:02]Read from MH i2c: E2 17 00 [13:28:02]MH_I2C_Read... [13:28:02]Read from MH i2c: E2 17 00 7D 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 86 [13:28:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:28:02]wFMCommunicate OK [13:28:02]CreateOFDProtocolMessage done [13:28:02]OFDSenderStorePacket 228222 [13:28:02]StoreOFDPacket docnum=228222 [13:28:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 51 E0 04 01 3E 95 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 BA 00 00 00 F4 03 04 00 64 A8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7E 7B 03 00 35 04 06 00 C3 B5 C8 67 AA 94 63 81 4B 79 19 79 B7 6E [13:28:02]CheckFolder [13:28:02]dirname=/storage/ofd_packets [13:28:02]CheckFolder done [13:28:02]ProducePacketName [13:28:02]name=ofd_packets/00228222 [13:28:02]NVStorageSaveData ofd_packets/00228222 [13:28:02]File name is /storage/ofd_packets/00228222 [13:28:02]Write 298 bytes [13:28:02]NVStorageSaveData done [13:28:02]OFDSenderStorePacket done [13:28:02]KKMCreateOFDPacket done [13:28:02]NVStorageSaveData kkm_last_timestamp [13:28:02]File name is /storage/kkm_last_timestamp [13:28:02]Write 4 bytes [13:28:02]NVStorageSaveData done [13:28:02]ExternCall_PrintAddStr [13:28:02]wPrintStart [13:28:02]Write to MH i2c: 01 00 00 7E 38 B6 [13:28:02]Write i2c OK [13:28:02]MH_I2C_Read... [13:28:02]Read from MH i2c: 01 [13:28:02]MH_I2C_Read... [13:28:02]Read from MH i2c: 01 07 00 [13:28:02]MH_I2C_Read... [13:28:02]Read from MH i2c: 01 07 00 7E 38 00 00 00 00 00 FF 0F CB [13:28:02]RasterBufferAndPrint [13:28:02]line Счет N : (1)1964671 [13:28:02]line ИНН: 02508201610067 [13:28:02]line Контрольно-Кассовый Чек [13:28:02]line ПРОДАЖА [13:28:02]line ТРК (МРК, ГНК) : 61 [13:28:02]line Товар: 2710194210 [13:28:02]line ДТ-К-5 [13:28:02]line 19.690 * 76.20 [13:28:02]line = 1500.38 [13:28:02]line НДС 12% НСП 1% [13:28:02]line > о реализуемом товаре [13:28:02]line ОКРУГЛЕНИЕ: -0.38 [13:28:02]line ИТОГО: 1500.00 [13:28:02]line Внесено: 1500.00 [13:28:02]line СДАЧА: 0.00 [13:28:02]line НСП 1% : 13.28 [13:28:02]line НДС 12% : 159.33 [13:28:02]line Наличными: 1500.00 [13:28:02]line Безнал.: 0.00 [13:28:02]line Место: АЗС № 133 "Партнер Нефть" [13:28:02]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:28:02]line СНО: Общий режим [13:28:02]line Чек 186 22.10.2024 13:28 [13:28:02]line Смена: 535 ФФД: 1.0 [13:28:02]line ЗНМ: 0300000091 [13:28:02]line РНМ: 0000000000091685 [13:28:02]line Версия ККМ: 001 [13:28:02]line ФМ: 0000000000871839 [13:28:02]line ФД: 228222 [13:28:02]line ФПД: 215185518733972 [13:28:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132804&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228222&fm=215185518733972&tin=02508201610067®Number=0000000000091685&sum=150000 [13:28:02]OFD Sender: Processing packet 228222 [packets to send 38, broken 37] [13:28:02]ProducePacketName [13:28:02]name=ofd_packets/00228222 [13:28:02]OFD Sender: To server: pG, [13:28:02]CommunicateWithHost lk.salyk.kg:30040 [13:28:02]ConnectInit lk.salyk.kg [13:28:02]written 0, free lines is 4095 [13:28:02]Connected sock=11 [13:28:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 51 E0 04 01 3E 95 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 BA 00 00 00 F4 03 04 00 64 A8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7E 7B 03 00 35 04 06 00 C3 B5 C8 67 AA 94 63 81 4B 79 19 79 B7 6E [13:28:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 A4 5D 47 00 F8 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7E 7B 03 00 F4 03 04 00 5C 53 17 67 B6 04 01 00 00 F5 52 AD 16 7B AD 13 F6 [13:28:02]CommunicateWithHost err = 0 [13:28:02]CheckOFDResponse [13:28:02]1017 (14) - 77093643461234 [13:28:02]1041 (16) - 0000000000871839 [13:28:02]1040 (4) - 228222 [13:28:02]1012 (4) - 22.10.2024 07:25 [13:28:02]1206 (1) - 0 [13:28:02]OFD Sender: Remove packet 228222 [13:28:02]ProducePacketName [13:28:02]name=ofd_packets/00228222 [13:28:02]NVStorageDeleteData [13:28:02]Write to MH i2c: 01 00 00 A8 38 E0 [13:28:02]Write i2c OK [13:28:02]MH_I2C_Read... [13:28:02]Read from MH i2c: 01 [13:28:02]MH_I2C_Read... [13:28:02]Read from MH i2c: 01 07 00 [13:28:02]MH_I2C_Read... [13:28:02]Read from MH i2c: 01 07 00 A8 38 00 00 00 00 00 BA 0C AD [13:28:02]RasterBufferAndPrint [13:28:02]line [13:28:02]line [13:28:02]line [13:28:02]line [13:28:02]line [13:28:02]written 0, free lines is 3263 [13:28:02]MH_Cut [13:28:02]Write to MH i2c: D1 01 00 AF 38 01 B9 [13:28:02]Write i2c OK [13:28:02]MH_I2C_Read... [13:28:02]Read from MH i2c: D1 [13:28:02]MH_I2C_Read... [13:28:02]Read from MH i2c: D1 01 00 [13:28:02]MH_I2C_Read... [13:28:02]Read from MH i2c: D1 01 00 AF 38 00 B8 [13:28:02]Write to MH i2c: 01 00 00 B0 38 E8 [13:28:02]Write i2c OK [13:28:02]MH_I2C_Read... [13:28:03]OFD Sender: No OFD packet to send [13:28:03]*** Cut start [13:28:03]*** Partial cut [13:28:03]*** CUTSNS_PIN = 1 [13:28:03]*** CUTSNS_PIN = 0 [13:28:04]*** Brake cut motor [13:28:04]Read from MH i2c: 01 [13:28:04]MH_I2C_Read... [13:28:04]*** Stop cut motor [13:28:04]*** Cut end [13:28:04]Read from MH i2c: 01 07 00 [13:28:04]MH_I2C_Read... [13:28:04]Read from MH i2c: 01 07 00 B0 38 00 00 00 00 00 FF 0F FD [13:28:04]process_action close_receipt done [13:28:04]requested_data is exist [13:28:04]produce_requested_data [13:28:04]requested_item fm.sn is exist - process it [13:28:04]wFMCommunicate request_size=4 [13:28:04]MH_SAM_APDU [13:28:04]CAPDU: 80 11 00 00 [13:28:04]Write to MH i2c: E2 08 00 B1 38 80 11 00 00 00 00 00 00 63 [13:28:04]Write i2c OK [13:28:04]MH_I2C_Read... [13:28:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:04]Read from MH i2c: E2 [13:28:04]MH_I2C_Read... [13:28:04]Read from MH i2c: E2 17 00 [13:28:04]MH_I2C_Read... [13:28:04]Read from MH i2c: E2 17 00 B1 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BA [13:28:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:28:04]wFMCommunicate OK [13:28:04]requested_item fd.num is exist - process it [13:28:04]SAM_PROTO_GetFieldsCounters [13:28:04]wFMCommunicate request_size=4 [13:28:04]MH_SAM_APDU [13:28:04]CAPDU: 80 13 00 00 [13:28:04]Write to MH i2c: E2 08 00 B2 38 80 13 00 00 00 00 00 00 66 [13:28:04]Write i2c OK [13:28:04]MH_I2C_Read... [13:28:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:28:04]Read from MH i2c: E2 [13:28:04]MH_I2C_Read... [13:28:04]Read from MH i2c: E2 62 00 [13:28:04]MH_I2C_Read... [13:28:04]Read from MH i2c: E2 62 00 B2 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7E 7B 03 00 0E 04 04 00 17 02 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 D2 [13:28:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7E 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:28:04]wFMCommunicate OK [13:28:04]SAM_PROTO_GetFieldsCounters done [13:28:04]requested_item shift.num is exist - process it [13:28:04]requested_item shift.opened is exist - process it [13:28:04]req_shift_opened [13:28:04]FM_GetShiftState [13:28:04]SAM_PROTO_GetShiftState [13:28:04]wFMCommunicate request_size=4 [13:28:04]MH_SAM_APDU [13:28:04]CAPDU: 80 13 01 00 [13:28:04]Write to MH i2c: E2 08 00 B3 38 80 13 01 00 00 00 00 00 68 [13:28:04]Write i2c OK [13:28:04]MH_I2C_Read... [13:28:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:04]Read from MH i2c: E2 [13:28:04]MH_I2C_Read... [13:28:04]Read from MH i2c: E2 0E 00 [13:28:04]MH_I2C_Read... [13:28:04]Read from MH i2c: E2 0E 00 B3 38 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 2F [13:28:04]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:28:04]wFMCommunicate OK [13:28:04]SAM_PROTO_GetShiftState done [13:28:04]FM_GetShiftState done [13:28:04]req_shift_opened done [13:28:04]requested_item shift.open_date is exist - process it [13:28:04]req_shift_open_date [13:28:04]req_shift_open_date done [13:28:04]produce_requested_data done [13:28:04]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228222,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:28:04]process_action_free close_receipt [13:28:04]json_value_free [13:28:04]json_value_free done [13:28:04]process_json_proto returns [13:28:04]Send response to host [13:28:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228222,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:28:04]free response buf [13:28:04]execute_script done [13:28:04]execute_script returns [13:28:04]free content buf [13:28:04]Sock 9.Close socket [13:28:04]Sock 9.Thread stoped [13:28:08]OFD Sender: No OFD packet to send [13:28:13]OFD Sender: No OFD packet to send [13:28:18]OFD Sender: No OFD packet to send [13:28:23]OFD Sender: No OFD packet to send [13:28:28]OFD Sender: No OFD packet to send [13:28:33]OFD Sender: No OFD packet to send [13:28:38]OFD Sender: No OFD packet to send [13:28:43]OFD Sender: No OFD packet to send [13:28:48]OFD Sender: No OFD packet to send [13:28:53]OFD Sender: No OFD packet to send [13:28:58]OFD Sender: No OFD packet to send [13:29:03]OFD Sender: No OFD packet to send [13:29:08]OFD Sender: No OFD packet to send [13:29:13]accept exits with 7 [13:29:13]New connection [13:29:13]New thread 3066994020 created [13:29:13]Thread 3067137380 joined [13:29:13]Waiting for new connection... [13:29:13] Sock 7.Parse request [13:29:13]Sock 7.Check first char [13:29:13]Sock 7.First char is OK [13:29:13]request: POST /json_proto HTTP/1.0 [13:29:13]Method: POST [13:29:13]URL: /json_proto [13:29:13]Method is POST - this is cgi request [13:29:13]url: /json_proto [13:29:13]query_string will be loaded in cgi processing [13:29:13]execute_cgi json_proto POST (null) [13:29:13]execute_cgi path=json_proto method=POST [13:29:13]POST find Content-Length [13:29:13]Host: 172.17.44.195:8080 [13:29:13]Content-Length: 678 [13:29:13]Content-Type: application/json [13:29:13] [13:29:13]POST finish read [13:29:13]Found Content-Length = 678 [13:29:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:29:13]execute_script... [13:29: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)1964672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:29:13]POST & json_proto [13:29:13]process_json_proto [13:29:13]json parsed OK: [13:29:13]protocol is kg_v1.0 [13:29:13]action value=close_receipt [13:29:13]process_action close_receipt [13:29:13]cmd_close_receipt [13:29:13]MH_GetDate [13:29:13]Write to MH i2c: F0 00 00 B4 38 DB [13:29:13]Write i2c OK [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: F0 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: F0 09 00 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: F0 09 00 B4 38 00 AD A8 17 67 82 C9 CF 66 37 [13:29:13]GetLastDocTimeStamp 1729603684 [13:29:13]current date 1729603757 [13:29:13]FM_GetShiftState [13:29:13]SAM_PROTO_GetShiftState [13:29:13]wFMCommunicate request_size=4 [13:29:13]MH_SAM_APDU [13:29:13]CAPDU: 80 13 01 00 [13:29:13]Write to MH i2c: E2 08 00 B5 38 80 13 01 00 00 00 00 00 6A [13:29:13]Write i2c OK [13:29:13]MH_I2C_Read... [13:29:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:13]Read from MH i2c: E2 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: E2 0E 00 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: E2 0E 00 B5 38 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 31 [13:29:13]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:29:13]wFMCommunicate OK [13:29:13]SAM_PROTO_GetShiftState done [13:29:13]FM_GetShiftState done [13:29:13]opened in 1729555538 [13:29:13]opened+sec_in_day 1729641938 [13:29:13]quantity*price = 50041 [13:29:13]sum+1 = 50042 [13:29:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 187 22.10.2024 13:29 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228223 ФПД: 80337480344313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132917&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228223&fm=80337480344313&tin=02508201610067®Number=0000000000091685&sum=50000 [13:29:14]StoreToDocumentArchive [13:29:14]shift 535 fd 228223 [13:29:14]save to /storage/0535/doc_00228223 [13:29:14]save last doc name /storage/0535/doc_00228223 to /storage/kkm_last_doc_name [13:29:14]save OK [13:29:14]Clear old archive folders... [13:29:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:29:14]tlvbuf is 0093A180 [13:29:14]SAM_PROTO_ClearQueue [13:29:14]wFMCommunicate request_size=4 [13:29:14]MH_SAM_APDU [13:29:14]CAPDU: 80 09 00 00 [13:29:14]Write to MH i2c: E2 08 00 C2 38 80 09 00 00 00 00 00 00 6C [13:29:14]Write i2c OK [13:29:14]MH_I2C_Read... [13:29:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:14]Read from MH i2c: E2 [13:29:14]MH_I2C_Read... [13:29:14]Read from MH i2c: E2 03 00 [13:29:14]MH_I2C_Read... [13:29:14]Read from MH i2c: E2 03 00 C2 38 00 90 00 6E [13:29:14]RAPDU: 90 00 [13:29:14]wFMCommunicate OK [13:29:14]SAM_PROTO_ClearQueue done [13:29:14]KKMCreateOFDPacket [13:29:14]OFDProtocolAddRootSTLVToBuf [13:29:14]FM_MakeSignedData [13:29:14]FM_MakeSignedData [13:29:14]SAM_PROTO_SignData [13:29:14]wFMCommunicate request_size=4 [13:29:14]MH_SAM_APDU [13:29:14]CAPDU: 80 0D 01 02 [13:29:14]Write to MH i2c: E2 08 00 C3 38 80 0D 01 02 00 00 00 00 74 [13:29:14]Write i2c OK [13:29:14]MH_I2C_Read... [13:29:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:14]Read from MH i2c: E2 [13:29:14]MH_I2C_Read... [13:29:14]Read from MH i2c: E2 03 00 [13:29:14]MH_I2C_Read... [13:29:14]Read from MH i2c: E2 03 00 C3 38 00 90 00 6F [13:29:14]RAPDU: 90 00 [13:29:14]wFMCommunicate OK [13:29:14]wFMCommunicate request_size=255 [13:29:14]MH_SAM_APDU [13:29:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AD A8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7F 7B 03 00 35 04 06 00 49 [13:29:14]Write to MH i2c: E2 02 01 C4 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AD A8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7F 7B 03 00 35 04 06 00 49 00 00 F8 [13:29:14]Write i2c OK [13:29:14]MH_I2C_Read... [13:29:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:14]Read from MH i2c: E2 [13:29:14]MH_I2C_Read... [13:29:14]Read from MH i2c: E2 03 00 [13:29:14]MH_I2C_Read... [13:29:14]Read from MH i2c: E2 03 00 C4 38 00 90 00 70 [13:29:14]RAPDU: 90 00 [13:29:14]wFMCommunicate OK [13:29:14]wFMCommunicate request_size=10 [13:29:14]MH_SAM_APDU [13:29:14]CAPDU: 80 0D 02 02 05 11 06 FA 62 F9 [13:29:14]Write to MH i2c: E2 0D 00 C5 38 80 0D 02 02 05 00 11 06 FA 62 F9 00 00 ED [13:29:14]Write i2c OK [13:29:14]MH_I2C_Read... [13:29:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:14]Read from MH i2c: E2 [13:29:14]MH_I2C_Read... [13:29:14]Read from MH i2c: E2 03 00 [13:29:14]MH_I2C_Read... [13:29:14]Read from MH i2c: E2 03 00 C5 38 00 90 00 71 [13:29:14]RAPDU: 90 00 [13:29:14]wFMCommunicate OK [13:29:14]wFMCommunicate request_size=4 [13:29:14]MH_SAM_APDU [13:29:14]CAPDU: 80 0D 03 02 [13:29:14]Write to MH i2c: E2 08 00 C6 38 80 0D 03 02 00 00 00 00 79 [13:29:14]Write i2c OK [13:29:14]MH_I2C_Read... [13:29:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:14]Read from MH i2c: E2 [13:29:14]MH_I2C_Read... [13:29:14]Read from MH i2c: E2 0B 00 [13:29:14]MH_I2C_Read... [13:29:14]Read from MH i2c: E2 0B 00 C6 38 00 41 0C F1 3B 90 A7 BF 2A 90 00 13 [13:29:14]RAPDU: 41 0C F1 3B 90 A7 BF 2A 90 00 [13:29:14]wFMCommunicate OK [13:29:14]SAM_PROTO_SignData done [13:29:14]FM_MakeSignedData done [13:29:14]CreateOFDProtocolMessage [13:29:14]wFMCommunicate request_size=4 [13:29:14]MH_SAM_APDU [13:29:14]CAPDU: 80 11 00 00 [13:29:14]Write to MH i2c: E2 08 00 C7 38 80 11 00 00 00 00 00 00 79 [13:29:14]Write i2c OK [13:29:14]MH_I2C_Read... [13:29:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:14]Read from MH i2c: E2 [13:29:14]MH_I2C_Read... [13:29:14]Read from MH i2c: E2 17 00 [13:29:14]MH_I2C_Read... [13:29:14]Read from MH i2c: E2 17 00 C7 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D0 [13:29:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:29:14]wFMCommunicate OK [13:29:14]CreateOFDProtocolMessage done [13:29:14]OFDSenderStorePacket 228223 [13:29:14]StoreOFDPacket docnum=228223 [13:29:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D7 66 07 01 E6 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AD A8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7F 7B 03 00 35 04 06 00 49 11 06 FA 62 F9 41 0C F1 3B 90 A7 BF 2A [13:29:14]CheckFolder [13:29:14]dirname=/storage/ofd_packets [13:29:14]CheckFolder done [13:29:14]ProducePacketName [13:29:14]name=ofd_packets/00228223 [13:29:14]NVStorageSaveData ofd_packets/00228223 [13:29:14]File name is /storage/ofd_packets/00228223 [13:29:14]Write 301 bytes [13:29:14]NVStorageSaveData done [13:29:14]OFDSenderStorePacket done [13:29:14]KKMCreateOFDPacket done [13:29:14]NVStorageSaveData kkm_last_timestamp [13:29:14]File name is /storage/kkm_last_timestamp [13:29:14]Write 4 bytes [13:29:14]NVStorageSaveData done [13:29:14]ExternCall_PrintAddStr [13:29:14]wPrintStart [13:29:14]Write to MH i2c: 01 00 00 C8 38 00 [13:29:14]Write i2c OK [13:29:14]MH_I2C_Read... [13:29:14]Read from MH i2c: 01 [13:29:14]MH_I2C_Read... [13:29:14]Read from MH i2c: 01 07 00 [13:29:14]MH_I2C_Read... [13:29:14]Read from MH i2c: 01 07 00 C8 38 00 00 00 00 00 FF 0F 15 [13:29:14]RasterBufferAndPrint [13:29:14]line Счет N : (1)1964672 [13:29:14]line ИНН: 02508201610067 [13:29:14]line Контрольно-Кассовый Чек [13:29:14]line ПРОДАЖА [13:29:14]line ТРК (МРК, ГНК) : 33 [13:29:14]line Товар: 2710124130 [13:29:14]line Аи-92-К-5 [13:29:14]line 7.480 * 66.90 [13:29:14]line = 500.41 [13:29:14]line НДС 12% НСП 1% [13:29:14]line > о реализуемом товаре [13:29:14]line ОКРУГЛЕНИЕ: -0.41 [13:29:14]line ИТОГО: 500.00 [13:29:14]line Внесено: 500.00 [13:29:14]line СДАЧА: 0.00 [13:29:14]line НСП 1% : 4.43 [13:29:14]line НДС 12% : 53.14 [13:29:14]line Наличными: 500.00 [13:29:14]line Безнал.: 0.00 [13:29:14]line Место: АЗС № 133 "Партнер Нефть" [13:29:14]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:29:14]line СНО: Общий режим [13:29:14]line Чек 187 22.10.2024 13:29 [13:29:14]line Смена: 535 ФФД: 1.0 [13:29:14]line ЗНМ: 0300000091 [13:29:14]line РНМ: 0000000000091685 [13:29:14]line Версия ККМ: 001 [13:29:14]line ФМ: 0000000000871839 [13:29:14]line ФД: 228223 [13:29:14]line ФПД: 80337480344313 [13:29:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132917&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228223&fm=80337480344313&tin=02508201610067®Number=0000000000091685&sum=50000 [13:29:15]written 0, free lines is 4095 [13:29:15]OFD Sender: Processing packet 228223 [packets to send 38, broken 37] [13:29:15]ProducePacketName [13:29:15]name=ofd_packets/00228223 [13:29:15]OFD Sender: To server: pG, [13:29:15]CommunicateWithHost lk.salyk.kg:30040 [13:29:15]ConnectInit lk.salyk.kg [13:29:15]Connected sock=10 [13:29:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D7 66 07 01 E6 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AD A8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7F 7B 03 00 35 04 06 00 49 11 06 FA 62 F9 41 0C F1 3B 90 A7 BF 2A [13:29:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 E6 DF 47 00 EA 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7F 7B 03 00 F4 03 04 00 A5 53 17 67 B6 04 01 00 00 31 6B 7D 8B 9A A8 FA D2 [13:29:15]CommunicateWithHost err = 0 [13:29:15]CheckOFDResponse [13:29:15]1017 (14) - 77093643461234 [13:29:15]1041 (16) - 0000000000871839 [13:29:15]1040 (4) - 228223 [13:29:15]1012 (4) - 22.10.2024 07:26 [13:29:15]1206 (1) - 0 [13:29:15]OFD Sender: Remove packet 228223 [13:29:15]ProducePacketName [13:29:15]name=ofd_packets/00228223 [13:29:15]NVStorageDeleteData [13:29:15]Write to MH i2c: 01 00 00 F2 38 2A [13:29:15]Write i2c OK [13:29:15]MH_I2C_Read... [13:29:15]Read from MH i2c: 01 [13:29:15]MH_I2C_Read... [13:29:15]Read from MH i2c: 01 07 00 [13:29:15]MH_I2C_Read... [13:29:15]Read from MH i2c: 01 07 00 F2 38 00 00 00 00 00 BE 0C FB [13:29:15]RasterBufferAndPrint [13:29:15]line [13:29:15]line [13:29:15]line [13:29:15]line [13:29:15]line [13:29:15]written 0, free lines is 3267 [13:29:15]MH_Cut [13:29:15]Write to MH i2c: D1 01 00 F9 38 01 03 [13:29:15]Write i2c OK [13:29:15]MH_I2C_Read... [13:29:15]Read from MH i2c: D1 [13:29:15]MH_I2C_Read... [13:29:15]Read from MH i2c: D1 01 00 [13:29:15]MH_I2C_Read... [13:29:15]Read from MH i2c: D1 01 00 F9 38 00 02 [13:29:15]Write to MH i2c: 01 00 00 FA 38 32 [13:29:15]Write i2c OK [13:29:15]MH_I2C_Read... [13:29:15]OFD Sender: No OFD packet to send [13:29:16]*** Cut start [13:29:16]*** Partial cut [13:29:16]*** CUTSNS_PIN = 1 [13:29:16]*** CUTSNS_PIN = 0 [13:29:16]*** Brake cut motor [13:29:17]Read from MH i2c: 01 [13:29:17]MH_I2C_Read... [13:29:17]*** Stop cut motor [13:29:17]*** Cut end [13:29:17]Read from MH i2c: 01 07 00 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: 01 07 00 FA 38 00 00 00 00 00 FF 0F 47 [13:29:17]process_action close_receipt done [13:29:17]requested_data is exist [13:29:17]produce_requested_data [13:29:17]requested_item fm.sn is exist - process it [13:29:17]wFMCommunicate request_size=4 [13:29:17]MH_SAM_APDU [13:29:17]CAPDU: 80 11 00 00 [13:29:17]Write to MH i2c: E2 08 00 FB 38 80 11 00 00 00 00 00 00 AD [13:29:17]Write i2c OK [13:29:17]MH_I2C_Read... [13:29:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:17]Read from MH i2c: E2 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: E2 17 00 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: E2 17 00 FB 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 04 [13:29:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:29:17]wFMCommunicate OK [13:29:17]requested_item fd.num is exist - process it [13:29:17]SAM_PROTO_GetFieldsCounters [13:29:17]wFMCommunicate request_size=4 [13:29:17]MH_SAM_APDU [13:29:17]CAPDU: 80 13 00 00 [13:29:17]Write to MH i2c: E2 08 00 FC 38 80 13 00 00 00 00 00 00 B0 [13:29:17]Write i2c OK [13:29:17]MH_I2C_Read... [13:29:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:17]Read from MH i2c: E2 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: E2 62 00 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: E2 62 00 FC 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7F 7B 03 00 0E 04 04 00 17 02 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 20 [13:29:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7F 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:29:17]wFMCommunicate OK [13:29:17]SAM_PROTO_GetFieldsCounters done [13:29:17]requested_item shift.num is exist - process it [13:29:17]requested_item shift.opened is exist - process it [13:29:17]req_shift_opened [13:29:17]FM_GetShiftState [13:29:17]SAM_PROTO_GetShiftState [13:29:17]wFMCommunicate request_size=4 [13:29:17]MH_SAM_APDU [13:29:17]CAPDU: 80 13 01 00 [13:29:17]Write to MH i2c: E2 08 00 FD 38 80 13 01 00 00 00 00 00 B2 [13:29:17]Write i2c OK [13:29:17]MH_I2C_Read... [13:29:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:17]Read from MH i2c: E2 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: E2 0E 00 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: E2 0E 00 FD 38 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 79 [13:29:17]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:29:17]wFMCommunicate OK [13:29:17]SAM_PROTO_GetShiftState done [13:29:17]FM_GetShiftState done [13:29:17]req_shift_opened done [13:29:17]requested_item shift.open_date is exist - process it [13:29:17]req_shift_open_date [13:29:17]req_shift_open_date done [13:29:17]produce_requested_data done [13:29:17]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228223,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:29:17]process_action_free close_receipt [13:29:17]json_value_free [13:29:17]json_value_free done [13:29:17]process_json_proto returns [13:29:17]Send response to host [13:29:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228223,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:29:17]free response buf [13:29:17]execute_script done [13:29:17]execute_script returns [13:29:17]free content buf [13:29:17]Sock 7.Close socket [13:29:17]Sock 7.Thread stoped [13:29:20]OFD Sender: No OFD packet to send [13:29:25]OFD Sender: No OFD packet to send [13:29:30]OFD Sender: No OFD packet to send [13:29:35]OFD Sender: No OFD packet to send [13:29:40]OFD Sender: No OFD packet to send [13:29:45]OFD Sender: No OFD packet to send [13:29:50]OFD Sender: No OFD packet to send [13:29:55]OFD Sender: No OFD packet to send [13:30:00]OFD Sender: No OFD packet to send [13:30:05]OFD Sender: No OFD packet to send [13:30:10]OFD Sender: No OFD packet to send [13:30:15]OFD Sender: No OFD packet to send [13:30:20]OFD Sender: No OFD packet to send [13:30: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:21]OFD Sender: No OFD packet to send [13:32:26]OFD Sender: No OFD packet to send [13:32:31]OFD Sender: No OFD packet to send [13:32:36]OFD Sender: No OFD packet to send [13:32:41]OFD Sender: No OFD packet to send [13:32:46]OFD Sender: No OFD packet to send [13:32:51]OFD Sender: No OFD packet to send [13:32:56]OFD Sender: No OFD packet to send [13:33:01]OFD Sender: No OFD packet to send [13:33:06]OFD Sender: No OFD packet to send [13:33:11]OFD Sender: No OFD packet to send [13:33:16]OFD Sender: No OFD packet to send [13:33:21]OFD Sender: No OFD packet to send [13:33:26]OFD Sender: No OFD packet to send [13:33:31]OFD Sender: No OFD packet to send [13:33:36]OFD Sender: No OFD packet to send [13:33:41]OFD Sender: No OFD packet to send [13:33:46]OFD Sender: No OFD packet to send [13:33:51]OFD Sender: No OFD packet to send [13:33:56]OFD Sender: No OFD packet to send [13:34:01]OFD Sender: No OFD packet to send [13:34:06]OFD Sender: No OFD packet to send [13:34:11]OFD Sender: No OFD packet to send [13:34:16]OFD Sender: No OFD packet to send [13:34:21]OFD Sender: No OFD packet to send [13:34:26]OFD Sender: No OFD packet to send [13:34:31]OFD Sender: No OFD packet to send [13:34:36]OFD Sender: No OFD packet to send [13:34:41]OFD Sender: No OFD packet to send [13:34:46]OFD Sender: No OFD packet to send [13:34:51]OFD Sender: No OFD packet to send [13:34:54]accept exits with 9 [13:34:54]New connection [13:34:54]New thread 3067137380 created [13:34:54]Thread 3066994020 joined [13:34:54]Waiting for new connection... [13:34:54] Sock 9.Parse request [13:34:54]Sock 9.Check first char [13:34:54]Sock 9.First char is OK [13:34:54]request: POST /json_proto HTTP/1.0 [13:34:54]Method: POST [13:34:54]URL: /json_proto [13:34:54]Method is POST - this is cgi request [13:34:54]url: /json_proto [13:34:54]query_string will be loaded in cgi processing [13:34:54]execute_cgi json_proto POST (null) [13:34:54]execute_cgi path=json_proto method=POST [13:34:54]POST find Content-Length [13:34:54]Host: 172.17.44.195:8080 [13:34:54]Content-Length: 801 [13:34:54]Content-Type: application/json [13:34:54] [13:34:54]POST finish read [13:34:54]Found Content-Length = 801 [13:34:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4194350", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:54]execute_script... [13:34: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)1964678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4194350", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:54]POST & json_proto [13:34:54]process_json_proto [13:34:54]json parsed OK: [13:34:54]protocol is kg_v1.0 [13:34:54]action value=close_receipt [13:34:54]process_action close_receipt [13:34:54]cmd_close_receipt [13:34:54]MH_GetDate [13:34:54]Write to MH i2c: F0 00 00 FE 38 25 [13:34:54]Write i2c OK [13:34:54]MH_I2C_Read... [13:34:54]Read from MH i2c: F0 [13:34:54]MH_I2C_Read... [13:34:54]Read from MH i2c: F0 09 00 [13:34:54]MH_I2C_Read... [13:34:54]Read from MH i2c: F0 09 00 FE 38 00 02 AA 17 67 82 C9 CF 66 D8 [13:34:54]GetLastDocTimeStamp 1729603757 [13:34:54]current date 1729604098 [13:34:54]FM_GetShiftState [13:34:54]SAM_PROTO_GetShiftState [13:34:54]wFMCommunicate request_size=4 [13:34:54]MH_SAM_APDU [13:34:54]CAPDU: 80 13 01 00 [13:34:54]Write to MH i2c: E2 08 00 FF 38 80 13 01 00 00 00 00 00 B4 [13:34:54]Write i2c OK [13:34:54]MH_I2C_Read... [13:34:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:54]Read from MH i2c: E2 [13:34:54]MH_I2C_Read... [13:34:54]Read from MH i2c: E2 0E 00 [13:34:54]MH_I2C_Read... [13:34:54]Read from MH i2c: E2 0E 00 FF 38 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 7B [13:34:54]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:34:54]wFMCommunicate OK [13:34:54]SAM_PROTO_GetShiftState done [13:34:54]FM_GetShiftState done [13:34:54]opened in 1729555538 [13:34:54]opened+sec_in_day 1729641938 [13:34:54]quantity*price = 0 [13:34:54]sum+1 = 1 [13:34:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 188 22.10.2024 13:34 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливные Талоны 4194350 ФМ: 0000000000871839 ФД: 228224 ФПД: 56344334632000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133458&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228224&fm=56344334632000&tin=02508201610067®Number=0000000000091685&sum=0 [13:34:55]StoreToDocumentArchive [13:34:55]shift 535 fd 228224 [13:34:55]save to /storage/0535/doc_00228224 [13:34:55]save last doc name /storage/0535/doc_00228224 to /storage/kkm_last_doc_name [13:34:55]save OK [13:34:55]Clear old archive folders... [13:34:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:34:55]tlvbuf is 0088CD40 [13:34:55]SAM_PROTO_ClearQueue [13:34:55]wFMCommunicate request_size=4 [13:34:55]MH_SAM_APDU [13:34:55]CAPDU: 80 09 00 00 [13:34:55]Write to MH i2c: E2 08 00 0C 39 80 09 00 00 00 00 00 00 B7 [13:34:55]Write i2c OK [13:34:55]MH_I2C_Read... [13:34:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:34:55]Read from MH i2c: E2 [13:34:55]MH_I2C_Read... [13:34:55]Read from MH i2c: E2 03 00 [13:34:55]MH_I2C_Read... [13:34:55]Read from MH i2c: E2 03 00 0C 39 00 90 00 B9 [13:34:55]RAPDU: 90 00 [13:34:55]wFMCommunicate OK [13:34:55]SAM_PROTO_ClearQueue done [13:34:55]KKMCreateOFDPacket [13:34:55]OFDProtocolAddRootSTLVToBuf [13:34:55]FM_MakeSignedData [13:34:55]FM_MakeSignedData [13:34:55]SAM_PROTO_SignData [13:34:55]wFMCommunicate request_size=4 [13:34:55]MH_SAM_APDU [13:34:55]CAPDU: 80 0D 01 02 [13:34:55]Write to MH i2c: E2 08 00 0D 39 80 0D 01 02 00 00 00 00 BF [13:34:55]Write i2c OK [13:34:55]MH_I2C_Read... [13:34:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:34:55]Read from MH i2c: E2 [13:34:55]MH_I2C_Read... [13:34:55]Read from MH i2c: E2 03 00 [13:34:55]MH_I2C_Read... [13:34:55]Read from MH i2c: E2 03 00 0D 39 00 90 00 BA [13:34:55]RAPDU: 90 00 [13:34:55]wFMCommunicate OK [13:34:55]wFMCommunicate request_size=255 [13:34:55]MH_SAM_APDU [13:34: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 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 02 AA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 80 7B 03 00 35 04 06 00 33 [13:34:55]Write to MH i2c: E2 02 01 0E 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 02 AA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 80 7B 03 00 35 04 06 00 33 00 00 A6 [13:34:56]Write i2c OK [13:34:56]MH_I2C_Read... [13:34:56]OFD Sender: No OFD packet to send [13:34:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:56]Read from MH i2c: E2 [13:34:56]MH_I2C_Read... [13:34:56]Read from MH i2c: E2 03 00 [13:34:56]MH_I2C_Read... [13:34:56]Read from MH i2c: E2 03 00 0E 39 00 90 00 BB [13:34:56]RAPDU: 90 00 [13:34:56]wFMCommunicate OK [13:34:56]wFMCommunicate request_size=10 [13:34:56]MH_SAM_APDU [13:34:56]CAPDU: 80 0D 02 02 05 3E B0 0D 04 40 [13:34:56]Write to MH i2c: E2 0D 00 0F 39 80 0D 02 02 05 00 3E B0 0D 04 40 00 00 0B [13:34:56]Write i2c OK [13:34:56]MH_I2C_Read... [13:34:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:56]Read from MH i2c: E2 [13:34:56]MH_I2C_Read... [13:34:56]Read from MH i2c: E2 03 00 [13:34:56]MH_I2C_Read... [13:34:56]Read from MH i2c: E2 03 00 0F 39 00 90 00 BC [13:34:56]RAPDU: 90 00 [13:34:56]wFMCommunicate OK [13:34:56]wFMCommunicate request_size=4 [13:34:56]MH_SAM_APDU [13:34:56]CAPDU: 80 0D 03 02 [13:34:56]Write to MH i2c: E2 08 00 10 39 80 0D 03 02 00 00 00 00 C4 [13:34:56]Write i2c OK [13:34:56]MH_I2C_Read... [13:34:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:34:56]Read from MH i2c: E2 [13:34:56]MH_I2C_Read... [13:34:56]Read from MH i2c: E2 0B 00 [13:34:56]MH_I2C_Read... [13:34:56]Read from MH i2c: E2 0B 00 10 39 00 51 2A C7 A4 19 9C D3 A8 90 00 DB [13:34:56]RAPDU: 51 2A C7 A4 19 9C D3 A8 90 00 [13:34:56]wFMCommunicate OK [13:34:56]SAM_PROTO_SignData done [13:34:56]FM_MakeSignedData done [13:34:56]CreateOFDProtocolMessage [13:34:56]wFMCommunicate request_size=4 [13:34:56]MH_SAM_APDU [13:34:56]CAPDU: 80 11 00 00 [13:34:56]Write to MH i2c: E2 08 00 11 39 80 11 00 00 00 00 00 00 C4 [13:34:56]Write i2c OK [13:34:56]MH_I2C_Read... [13:34:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:56]Read from MH i2c: E2 [13:34:56]MH_I2C_Read... [13:34:56]Read from MH i2c: E2 17 00 [13:34:56]MH_I2C_Read... [13:34:56]Read from MH i2c: E2 17 00 11 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1B [13:34:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:34:56]wFMCommunicate OK [13:34:56]CreateOFDProtocolMessage done [13:34:56]OFDSenderStorePacket 228224 [13:34:56]StoreOFDPacket docnum=228224 [13:34:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 FC A9 07 01 56 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 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 02 AA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 80 7B 03 00 35 04 06 00 33 3E B0 0D 04 40 51 2A C7 A4 19 9C D3 A8 [13:34:56]CheckFolder [13:34:56]dirname=/storage/ofd_packets [13:34:56]CheckFolder done [13:34:56]ProducePacketName [13:34:56]name=ofd_packets/00228224 [13:34:56]NVStorageSaveData ofd_packets/00228224 [13:34:56]File name is /storage/ofd_packets/00228224 [13:34:56]Write 301 bytes [13:34:56]NVStorageSaveData done [13:34:56]OFDSenderStorePacket done [13:34:56]KKMCreateOFDPacket done [13:34:56]NVStorageSaveData kkm_last_timestamp [13:34:56]File name is /storage/kkm_last_timestamp [13:34:56]Write 4 bytes [13:34:56]NVStorageSaveData done [13:34:56]ExternCall_PrintAddStr [13:34:56]wPrintStart [13:34:56]Write to MH i2c: 01 00 00 12 39 4B [13:34:56]Write i2c OK [13:34:56]MH_I2C_Read... [13:34:56]Read from MH i2c: 01 [13:34:56]MH_I2C_Read... [13:34:56]Read from MH i2c: 01 07 00 [13:34:56]MH_I2C_Read... [13:34:56]Read from MH i2c: 01 07 00 12 39 00 00 00 00 00 FF 0F 60 [13:34:56]RasterBufferAndPrint [13:34:56]line Счет N : (1)1964678 [13:34:56]line ИНН: 02508201610067 [13:34:56]line Контрольно-Кассовый Чек [13:34:56]line ПРОДАЖА [13:34:56]line ТРК (МРК, ГНК) : 33 [13:34:56]line Товар: 2710124130 [13:34:56]line Аи-92-К-5 [13:34:56]line 30.000 * 0.00 [13:34:56]line = 0.00 [13:34:56]line НДС 12% НСП 1% [13:34:56]line > о реализуемом товаре [13:34:56]line ИТОГО: 0.00 [13:34:56]line НСП 1% : 0.00 [13:34:56]line НДС 12% : 0.00 [13:34:56]line Наличными: 0.00 [13:34:56]line Безнал.: 0.00 [13:34:56]line Место: АЗС № 133 "Партнер Нефть" [13:34:56]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:34:56]line СНО: Общий режим [13:34:56]line Чек 188 22.10.2024 13:34 [13:34:56]line Смена: 535 ФФД: 1.0 [13:34:56]line ЗНМ: 0300000091 [13:34:56]line РНМ: 0000000000091685 [13:34:56]line Версия ККМ: 001 [13:34:56]line Талоны: Топливные Талоны [13:34:56]line 4194350 [13:34:56]line ФМ: 0000000000871839 [13:34:56]line ФД: 228224 [13:34:56]line ФПД: 56344334632000 [13:34:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133458&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228224&fm=56344334632000&tin=02508201610067®Number=0000000000091685&sum=0 [13:34:56]written 0, free lines is 4095 [13:34:56]OFD Sender: Processing packet 228224 [packets to send 38, broken 37] [13:34:56]ProducePacketName [13:34:56]name=ofd_packets/00228224 [13:34:56]OFD Sender: To server: pG, [13:34:56]CommunicateWithHost lk.salyk.kg:30040 [13:34:56]ConnectInit lk.salyk.kg [13:34:56]Connected sock=10 [13:34:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 FC A9 07 01 56 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 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 02 AA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 80 7B 03 00 35 04 06 00 33 3E B0 0D 04 40 51 2A C7 A4 19 9C D3 A8 [13:34:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 62 E6 47 00 42 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 80 7B 03 00 F4 03 04 00 FB 54 17 67 B6 04 01 00 00 6F A4 DC 54 F5 7C 34 A1 [13:34:57]CommunicateWithHost err = 0 [13:34:57]CheckOFDResponse [13:34:57]1017 (14) - 77093643461234 [13:34:57]1041 (16) - 0000000000871839 [13:34:57]1040 (4) - 228224 [13:34:57]1012 (4) - 22.10.2024 07:32 [13:34:57]1206 (1) - 0 [13:34:57]OFD Sender: Remove packet 228224 [13:34:57]ProducePacketName [13:34:57]name=ofd_packets/00228224 [13:34:57]NVStorageDeleteData [13:34:57]Write to MH i2c: 01 00 00 3B 39 74 [13:34:57]Write i2c OK [13:34:57]MH_I2C_Read... [13:34:57]Read from MH i2c: 01 [13:34:57]MH_I2C_Read... [13:34:57]Read from MH i2c: 01 07 00 [13:34:57]MH_I2C_Read... [13:34:57]Read from MH i2c: 01 07 00 3B 39 00 00 00 00 00 CB 0C 52 [13:34:57]RasterBufferAndPrint [13:34:57]line [13:34:57]line [13:34:57]line [13:34:57]line [13:34:57]line [13:34:57]written 0, free lines is 3281 [13:34:57]MH_Cut [13:34:57]Write to MH i2c: D1 01 00 42 39 01 4D [13:34:57]Write i2c OK [13:34:57]MH_I2C_Read... [13:34:57]Read from MH i2c: D1 [13:34:57]MH_I2C_Read... [13:34:57]Read from MH i2c: D1 01 00 [13:34:57]MH_I2C_Read... [13:34:57]Read from MH i2c: D1 01 00 42 39 00 4C [13:34:57]Write to MH i2c: 01 00 00 43 39 7C [13:34:57]Write i2c OK [13:34:57]MH_I2C_Read... [13:34:57]OFD Sender: No OFD packet to send [13:34:58]*** Cut start [13:34:58]*** Partial cut [13:34:58]*** CUTSNS_PIN = 1 [13:34:58]*** CUTSNS_PIN = 0 [13:34:58]*** Brake cut motor [13:34:58]Read from MH i2c: 01 [13:34:58]MH_I2C_Read... [13:34:58]*** Stop cut motor [13:34:58]*** Cut end [13:34:58]Read from MH i2c: 01 07 00 [13:34:58]MH_I2C_Read... [13:34:58]Read from MH i2c: 01 07 00 43 39 00 00 00 00 00 FF 0F 91 [13:34:58]process_action close_receipt done [13:34:58]requested_data is exist [13:34:58]produce_requested_data [13:34:58]requested_item fm.sn is exist - process it [13:34:58]wFMCommunicate request_size=4 [13:34:58]MH_SAM_APDU [13:34:58]CAPDU: 80 11 00 00 [13:34:58]Write to MH i2c: E2 08 00 44 39 80 11 00 00 00 00 00 00 F7 [13:34:58]Write i2c OK [13:34:58]MH_I2C_Read... [13:34:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:58]Read from MH i2c: E2 [13:34:58]MH_I2C_Read... [13:34:58]Read from MH i2c: E2 17 00 [13:34:58]MH_I2C_Read... [13:34:58]Read from MH i2c: E2 17 00 44 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4E [13:34:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:34:58]wFMCommunicate OK [13:34:58]requested_item fd.num is exist - process it [13:34:58]SAM_PROTO_GetFieldsCounters [13:34:58]wFMCommunicate request_size=4 [13:34:58]MH_SAM_APDU [13:34:58]CAPDU: 80 13 00 00 [13:34:58]Write to MH i2c: E2 08 00 45 39 80 13 00 00 00 00 00 00 FA [13:34:58]Write i2c OK [13:34:58]MH_I2C_Read... [13:34:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:34:58]Read from MH i2c: E2 [13:34:58]MH_I2C_Read... [13:34:58]Read from MH i2c: E2 62 00 [13:34:58]MH_I2C_Read... [13:34:58]Read from MH i2c: E2 62 00 45 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 80 7B 03 00 0E 04 04 00 17 02 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 6E [13:34:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 80 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:34:58]wFMCommunicate OK [13:34:58]SAM_PROTO_GetFieldsCounters done [13:34:58]requested_item shift.num is exist - process it [13:34:58]requested_item shift.opened is exist - process it [13:34:58]req_shift_opened [13:34:58]FM_GetShiftState [13:34:58]SAM_PROTO_GetShiftState [13:34:58]wFMCommunicate request_size=4 [13:34:58]MH_SAM_APDU [13:34:58]CAPDU: 80 13 01 00 [13:34:58]Write to MH i2c: E2 08 00 46 39 80 13 01 00 00 00 00 00 FC [13:34:58]Write i2c OK [13:34:58]MH_I2C_Read... [13:34:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:58]Read from MH i2c: E2 [13:34:58]MH_I2C_Read... [13:34:58]Read from MH i2c: E2 0E 00 [13:34:58]MH_I2C_Read... [13:34:58]Read from MH i2c: E2 0E 00 46 39 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 C3 [13:34:58]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:34:58]wFMCommunicate OK [13:34:58]SAM_PROTO_GetShiftState done [13:34:58]FM_GetShiftState done [13:34:58]req_shift_opened done [13:34:58]requested_item shift.open_date is exist - process it [13:34:58]req_shift_open_date [13:34:58]req_shift_open_date done [13:34:58]produce_requested_data done [13:34:58]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228224,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:34:58]process_action_free close_receipt [13:34:58]json_value_free [13:34:58]json_value_free done [13:34:58]process_json_proto returns [13:34:58]Send response to host [13:34:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228224,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:34:58]free response buf [13:34:58]execute_script done [13:34:58]execute_script returns [13:34:58]free content buf [13:34:58]Sock 9.Close socket [13:34:58]Sock 9.Thread stoped [13:35:02]OFD Sender: No OFD packet to send [13:35:07]OFD Sender: No OFD packet to send [13:35:12]OFD Sender: No OFD packet to send [13:35:17]OFD Sender: No OFD packet to send [13:35:22]OFD Sender: No OFD packet to send [13:35:27]OFD Sender: No OFD packet to send [13:35:32]OFD Sender: No OFD packet to send [13:35:37]OFD Sender: No OFD packet to send [13:35:42]OFD Sender: No OFD packet to send [13:35:47]OFD Sender: No OFD packet to send [13:35:52]OFD Sender: No OFD packet to send [13:35:57]OFD Sender: No OFD packet to send [13:36:02]OFD Sender: No OFD packet to send [13:36:07]OFD Sender: No OFD packet to send [13:36:12]OFD Sender: No OFD packet to send [13:36:17]OFD Sender: No OFD packet to send [13:36:22]OFD Sender: No OFD packet to send [13:36:27]OFD Sender: No OFD packet to send [13:36:32]OFD Sender: No OFD packet to send [13:36:37]OFD Sender: No OFD packet to send [13:36:42]OFD Sender: No OFD packet to send [13:36:46]accept exits with 7 [13:36:46]New connection [13:36:46]New thread 3066994020 created [13:36:46]Thread 3067137380 joined [13:36:46]Waiting for new connection... [13:36:46] Sock 7.Parse request [13:36:46]Sock 7.Check first char [13:36:46]Sock 7.First char is OK [13:36:46]request: POST /json_proto HTTP/1.0 [13:36:46]Method: POST [13:36:46]URL: /json_proto [13:36:46]Method is POST - this is cgi request [13:36:46]url: /json_proto [13:36:46]query_string will be loaded in cgi processing [13:36:46]execute_cgi json_proto POST (null) [13:36:46]execute_cgi path=json_proto method=POST [13:36:46]POST find Content-Length [13:36:46]Host: 172.17.44.195:8080 [13:36:46]Content-Length: 678 [13:36:46]Content-Type: application/json [13:36:46] [13:36:46]POST finish read [13:36:46]Found Content-Length = 678 [13:36:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964681", "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" : 66.90, "quantity" : 4.040, "sum" : 270.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:46]execute_script... [13:36: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)1964681", "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" : 66.90, "quantity" : 4.040, "sum" : 270.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:46]POST & json_proto [13:36:46]process_json_proto [13:36:46]json parsed OK: [13:36:46]protocol is kg_v1.0 [13:36:46]action value=close_receipt [13:36:46]process_action close_receipt [13:36:46]cmd_close_receipt [13:36:46]MH_GetDate [13:36:46]Write to MH i2c: F0 00 00 47 39 6F [13:36:46]Write i2c OK [13:36:46]MH_I2C_Read... [13:36:46]Read from MH i2c: F0 [13:36:46]MH_I2C_Read... [13:36:46]Read from MH i2c: F0 09 00 [13:36:46]MH_I2C_Read... [13:36:46]Read from MH i2c: F0 09 00 47 39 00 72 AA 17 67 82 C9 CF 66 92 [13:36:46]GetLastDocTimeStamp 1729604098 [13:36:46]current date 1729604210 [13:36:46]FM_GetShiftState [13:36:46]SAM_PROTO_GetShiftState [13:36:46]wFMCommunicate request_size=4 [13:36:46]MH_SAM_APDU [13:36:46]CAPDU: 80 13 01 00 [13:36:46]Write to MH i2c: E2 08 00 48 39 80 13 01 00 00 00 00 00 FE [13:36:46]Write i2c OK [13:36:46]MH_I2C_Read... [13:36:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:46]Read from MH i2c: E2 [13:36:46]MH_I2C_Read... [13:36:46]Read from MH i2c: E2 0E 00 [13:36:46]MH_I2C_Read... [13:36:46]Read from MH i2c: E2 0E 00 48 39 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 C5 [13:36:46]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:36:46]wFMCommunicate OK [13:36:46]SAM_PROTO_GetShiftState done [13:36:46]FM_GetShiftState done [13:36:46]opened in 1729555538 [13:36:46]opened+sec_in_day 1729641938 [13:36:46]quantity*price = 27027 [13:36:46]sum+1 = 27029 [13:36:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 270.00 Внесено: 270.00 СДАЧА: 0.00 НСП 1% : 2.39 НДС 12% : 28.70 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 189 22.10.2024 13:36 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228225 ФПД: 47012306699519 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133650&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228225&fm=47012306699519&tin=02508201610067®Number=0000000000091685&sum=27000 [13:36:47]StoreToDocumentArchive [13:36:47]shift 535 fd 228225 [13:36:47]save to /storage/0535/doc_00228225 [13:36:47]save last doc name /storage/0535/doc_00228225 to /storage/kkm_last_doc_name [13:36:47]save OK [13:36:47]Clear old archive folders... [13:36:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:36:47]tlvbuf is 00929EC0 [13:36:47]SAM_PROTO_ClearQueue [13:36:47]wFMCommunicate request_size=4 [13:36:47]MH_SAM_APDU [13:36:47]CAPDU: 80 09 00 00 [13:36:47]Write to MH i2c: E2 08 00 55 39 80 09 00 00 00 00 00 00 00 [13:36:47]Write i2c OK [13:36:47]MH_I2C_Read... [13:36:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:36:47]Read from MH i2c: E2 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: E2 03 00 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: E2 03 00 55 39 00 90 00 02 [13:36:47]RAPDU: 90 00 [13:36:47]wFMCommunicate OK [13:36:47]SAM_PROTO_ClearQueue done [13:36:47]KKMCreateOFDPacket [13:36:47]OFDProtocolAddRootSTLVToBuf [13:36:47]FM_MakeSignedData [13:36:47]FM_MakeSignedData [13:36:47]SAM_PROTO_SignData [13:36:47]wFMCommunicate request_size=4 [13:36:47]MH_SAM_APDU [13:36:47]CAPDU: 80 0D 01 02 [13:36:47]Write to MH i2c: E2 08 00 56 39 80 0D 01 02 00 00 00 00 08 [13:36:47]Write i2c OK [13:36:47]MH_I2C_Read... [13:36:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:36:47]Read from MH i2c: E2 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: E2 03 00 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: E2 03 00 56 39 00 90 00 03 [13:36:47]RAPDU: 90 00 [13:36:47]wFMCommunicate OK [13:36:47]wFMCommunicate request_size=255 [13:36:47]MH_SAM_APDU [13:36: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 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 72 AA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 81 7B 03 00 35 04 06 00 2A [13:36:47]Write to MH i2c: E2 02 01 57 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 72 AA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 81 7B 03 00 35 04 06 00 2A 00 00 B5 [13:36:47]Write i2c OK [13:36:47]MH_I2C_Read... [13:36:47]OFD Sender: No OFD packet to send [13:36:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:47]Read from MH i2c: E2 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: E2 03 00 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: E2 03 00 57 39 00 90 00 04 [13:36:47]RAPDU: 90 00 [13:36:47]wFMCommunicate OK [13:36:47]wFMCommunicate request_size=10 [13:36:47]MH_SAM_APDU [13:36:47]CAPDU: 80 0D 02 02 05 C1 E7 D7 44 FF [13:36:47]Write to MH i2c: E2 0D 00 58 39 80 0D 02 02 05 00 C1 E7 D7 44 FF 00 00 D7 [13:36:47]Write i2c OK [13:36:47]MH_I2C_Read... [13:36:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:47]Read from MH i2c: E2 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: E2 03 00 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: E2 03 00 58 39 00 90 00 05 [13:36:47]RAPDU: 90 00 [13:36:47]wFMCommunicate OK [13:36:47]wFMCommunicate request_size=4 [13:36:47]MH_SAM_APDU [13:36:47]CAPDU: 80 0D 03 02 [13:36:47]Write to MH i2c: E2 08 00 59 39 80 0D 03 02 00 00 00 00 0D [13:36:47]Write i2c OK [13:36:47]MH_I2C_Read... [13:36:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:36:47]Read from MH i2c: E2 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: E2 0B 00 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: E2 0B 00 59 39 00 97 1C C6 92 EE 6C 76 E7 90 00 D0 [13:36:47]RAPDU: 97 1C C6 92 EE 6C 76 E7 90 00 [13:36:47]wFMCommunicate OK [13:36:47]SAM_PROTO_SignData done [13:36:47]FM_MakeSignedData done [13:36:47]CreateOFDProtocolMessage [13:36:47]wFMCommunicate request_size=4 [13:36:47]MH_SAM_APDU [13:36:47]CAPDU: 80 11 00 00 [13:36:47]Write to MH i2c: E2 08 00 5A 39 80 11 00 00 00 00 00 00 0D [13:36:47]Write i2c OK [13:36:47]MH_I2C_Read... [13:36:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:47]Read from MH i2c: E2 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: E2 17 00 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: E2 17 00 5A 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 64 [13:36:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:36:47]wFMCommunicate OK [13:36:47]CreateOFDProtocolMessage done [13:36:47]OFDSenderStorePacket 228225 [13:36:47]StoreOFDPacket docnum=228225 [13:36:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 8F B0 07 01 19 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 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 72 AA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 81 7B 03 00 35 04 06 00 2A C1 E7 D7 44 FF 97 1C C6 92 EE 6C 76 E7 [13:36:47]CheckFolder [13:36:47]dirname=/storage/ofd_packets [13:36:47]CheckFolder done [13:36:47]ProducePacketName [13:36:47]name=ofd_packets/00228225 [13:36:47]NVStorageSaveData ofd_packets/00228225 [13:36:47]File name is /storage/ofd_packets/00228225 [13:36:47]Write 301 bytes [13:36:47]NVStorageSaveData done [13:36:47]OFDSenderStorePacket done [13:36:47]KKMCreateOFDPacket done [13:36:47]NVStorageSaveData kkm_last_timestamp [13:36:47]File name is /storage/kkm_last_timestamp [13:36:47]Write 4 bytes [13:36:47]NVStorageSaveData done [13:36:47]ExternCall_PrintAddStr [13:36:47]wPrintStart [13:36:47]Write to MH i2c: 01 00 00 5B 39 94 [13:36:47]Write i2c OK [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: 01 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: 01 07 00 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: 01 07 00 5B 39 00 00 00 00 00 FF 0F A9 [13:36:47]RasterBufferAndPrint [13:36:47]line Счет N : (1)1964681 [13:36:47]line ИНН: 02508201610067 [13:36:47]line Контрольно-Кассовый Чек [13:36:47]line ПРОДАЖА [13:36:47]line ТРК (МРК, ГНК) : 63 [13:36:47]line Товар: 2710124130 [13:36:47]line Аи-92-К-5 [13:36:47]line 4.040 * 66.90 [13:36:47]line = 270.28 [13:36:47]line НДС 12% НСП 1% [13:36:47]line > о реализуемом товаре [13:36:47]line ОКРУГЛЕНИЕ: -0.28 [13:36:47]line ИТОГО: 270.00 [13:36:47]line Внесено: 270.00 [13:36:47]line СДАЧА: 0.00 [13:36:47]line НСП 1% : 2.39 [13:36:47]line НДС 12% : 28.70 [13:36:47]line Наличными: 270.00 [13:36:47]line Безнал.: 0.00 [13:36:47]line Место: АЗС № 133 "Партнер Нефть" [13:36:47]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:36:47]line СНО: Общий режим [13:36:47]line Чек 189 22.10.2024 13:36 [13:36:47]line Смена: 535 ФФД: 1.0 [13:36:47]line ЗНМ: 0300000091 [13:36:47]line РНМ: 0000000000091685 [13:36:47]line Версия ККМ: 001 [13:36:47]line ФМ: 0000000000871839 [13:36:47]line ФД: 228225 [13:36:47]line ФПД: 47012306699519 [13:36:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133650&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228225&fm=47012306699519&tin=02508201610067®Number=0000000000091685&sum=27000 [13:36:48]OFD Sender: Processing packet 228225 [packets to send 38, broken 37] [13:36:48]ProducePacketName [13:36:48]name=ofd_packets/00228225 [13:36:48]OFD Sender: To server: pG, [13:36:48]CommunicateWithHost lk.salyk.kg:30040 [13:36:48]ConnectInit lk.salyk.kg [13:36:48]written 0, free lines is 4095 [13:36:48]Connected sock=10 [13:36:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 8F B0 07 01 19 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 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 72 AA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 81 7B 03 00 35 04 06 00 2A C1 E7 D7 44 FF 97 1C C6 92 EE 6C 76 E7 [13:36:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 BB A0 47 00 AE B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 81 7B 03 00 F4 03 04 00 6A 55 17 67 B6 04 01 00 00 9B D0 C2 F0 CD 40 9B FF [13:36:48]CommunicateWithHost err = 0 [13:36:48]CheckOFDResponse [13:36:48]1017 (14) - 77093643461234 [13:36:48]1041 (16) - 0000000000871839 [13:36:48]1040 (4) - 228225 [13:36:48]1012 (4) - 22.10.2024 07:34 [13:36:48]1206 (1) - 0 [13:36:48]OFD Sender: Remove packet 228225 [13:36:48]ProducePacketName [13:36:48]name=ofd_packets/00228225 [13:36:48]NVStorageDeleteData [13:36:48]Write to MH i2c: 01 00 00 85 39 BE [13:36:48]Write i2c OK [13:36:48]MH_I2C_Read... [13:36:48]Read from MH i2c: 01 [13:36:48]MH_I2C_Read... [13:36:48]Read from MH i2c: 01 07 00 [13:36:48]MH_I2C_Read... [13:36:48]Read from MH i2c: 01 07 00 85 39 00 00 00 00 00 C5 0C 96 [13:36:48]RasterBufferAndPrint [13:36:48]line [13:36:48]line [13:36:48]line [13:36:48]line [13:36:48]line [13:36:48]written 0, free lines is 3273 [13:36:48]MH_Cut [13:36:48]Write to MH i2c: D1 01 00 8C 39 01 97 [13:36:48]Write i2c OK [13:36:48]MH_I2C_Read... [13:36:48]Read from MH i2c: D1 [13:36:48]MH_I2C_Read... [13:36:48]Read from MH i2c: D1 01 00 [13:36:48]MH_I2C_Read... [13:36:48]Read from MH i2c: D1 01 00 8C 39 00 96 [13:36:48]Write to MH i2c: 01 00 00 8D 39 C6 [13:36:48]Write i2c OK [13:36:48]MH_I2C_Read... [13:36:49]OFD Sender: No OFD packet to send [13:36:49]*** Cut start [13:36:49]*** Partial cut [13:36:49]*** CUTSNS_PIN = 1 [13:36:49]*** CUTSNS_PIN = 0 [13:36:49]*** Brake cut motor [13:36:50]Read from MH i2c: 01 [13:36:50]MH_I2C_Read... [13:36:50]*** Stop cut motor [13:36:50]*** Cut end [13:36:50]Read from MH i2c: 01 07 00 [13:36:50]MH_I2C_Read... [13:36:50]Read from MH i2c: 01 07 00 8D 39 00 00 00 00 00 FF 0F DB [13:36:50]process_action close_receipt done [13:36:50]requested_data is exist [13:36:50]produce_requested_data [13:36:50]requested_item fm.sn is exist - process it [13:36:50]wFMCommunicate request_size=4 [13:36:50]MH_SAM_APDU [13:36:50]CAPDU: 80 11 00 00 [13:36:50]Write to MH i2c: E2 08 00 8E 39 80 11 00 00 00 00 00 00 41 [13:36:50]Write i2c OK [13:36:50]MH_I2C_Read... [13:36:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:50]Read from MH i2c: E2 [13:36:50]MH_I2C_Read... [13:36:50]Read from MH i2c: E2 17 00 [13:36:50]MH_I2C_Read... [13:36:50]Read from MH i2c: E2 17 00 8E 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 98 [13:36:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:36:50]wFMCommunicate OK [13:36:50]requested_item fd.num is exist - process it [13:36:50]SAM_PROTO_GetFieldsCounters [13:36:50]wFMCommunicate request_size=4 [13:36:50]MH_SAM_APDU [13:36:50]CAPDU: 80 13 00 00 [13:36:50]Write to MH i2c: E2 08 00 8F 39 80 13 00 00 00 00 00 00 44 [13:36:50]Write i2c OK [13:36:50]MH_I2C_Read... [13:36:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:50]Read from MH i2c: E2 [13:36:50]MH_I2C_Read... [13:36:50]Read from MH i2c: E2 62 00 [13:36:50]MH_I2C_Read... [13:36:50]Read from MH i2c: E2 62 00 8F 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 81 7B 03 00 0E 04 04 00 17 02 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 BC [13:36:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 81 7B 03 00 0E 04 04 00 17 02 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 [13:36:50]wFMCommunicate OK [13:36:50]SAM_PROTO_GetFieldsCounters done [13:36:50]requested_item shift.num is exist - process it [13:36:50]requested_item shift.opened is exist - process it [13:36:50]req_shift_opened [13:36:50]FM_GetShiftState [13:36:50]SAM_PROTO_GetShiftState [13:36:50]wFMCommunicate request_size=4 [13:36:50]MH_SAM_APDU [13:36:50]CAPDU: 80 13 01 00 [13:36:50]Write to MH i2c: E2 08 00 90 39 80 13 01 00 00 00 00 00 46 [13:36:50]Write i2c OK [13:36:50]MH_I2C_Read... [13:36:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:50]Read from MH i2c: E2 [13:36:50]MH_I2C_Read... [13:36:50]Read from MH i2c: E2 0E 00 [13:36:50]MH_I2C_Read... [13:36:50]Read from MH i2c: E2 0E 00 90 39 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 0D [13:36:50]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:36:50]wFMCommunicate OK [13:36:50]SAM_PROTO_GetShiftState done [13:36:50]FM_GetShiftState done [13:36:50]req_shift_opened done [13:36:50]requested_item shift.open_date is exist - process it [13:36:50]req_shift_open_date [13:36:50]req_shift_open_date done [13:36:50]produce_requested_data done [13:36:50]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228225,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:36:50]process_action_free close_receipt [13:36:50]json_value_free [13:36:50]json_value_free done [13:36:50]process_json_proto returns [13:36:50]Send response to host [13:36:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228225,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:36:50]free response buf [13:36:50]execute_script done [13:36:50]execute_script returns [13:36:50]free content buf [13:36:50]Sock 7.Close socket [13:36:50]Sock 7.Thread stoped [13:36:54]OFD Sender: No OFD packet to send [13:36:59]OFD Sender: No OFD packet to send [13:37:04]OFD Sender: No OFD packet to send [13:37:09]OFD Sender: No OFD packet to send [13:37:14]OFD Sender: No OFD packet to send [13:37:19]OFD Sender: No OFD packet to send [13:37:22]accept exits with 9 [13:37:22]New connection [13:37:22]New thread 3067137380 created [13:37:22]Thread 3066994020 joined [13:37:22]Waiting for new connection... [13:37:22] Sock 9.Parse request [13:37:22]Sock 9.Check first char [13:37:22]Sock 9.First char is OK [13:37:22]request: POST /json_proto HTTP/1.0 [13:37:22]Method: POST [13:37:22]URL: /json_proto [13:37:22]Method is POST - this is cgi request [13:37:22]url: /json_proto [13:37:22]query_string will be loaded in cgi processing [13:37:22]execute_cgi json_proto POST (null) [13:37:22]execute_cgi path=json_proto method=POST [13:37:22]POST find Content-Length [13:37:22]Host: 172.17.44.195:8080 [13:37:22]Content-Length: 790 [13:37:22]Content-Type: application/json [13:37:22] [13:37:22]POST finish read [13:37:22]Found Content-Length = 790 [13:37:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964682", "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" : 0.00, "quantity" : 13.130, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53957", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:22]execute_script... [13:37: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)1964682", "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" : 0.00, "quantity" : 13.130, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53957", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:22]POST & json_proto [13:37:22]process_json_proto [13:37:22]json parsed OK: [13:37:22]protocol is kg_v1.0 [13:37:22]action value=close_receipt [13:37:22]process_action close_receipt [13:37:22]cmd_close_receipt [13:37:22]MH_GetDate [13:37:22]Write to MH i2c: F0 00 00 91 39 B9 [13:37:22]Write i2c OK [13:37:22]MH_I2C_Read... [13:37:22]Read from MH i2c: F0 [13:37:22]MH_I2C_Read... [13:37:22]Read from MH i2c: F0 09 00 [13:37:22]MH_I2C_Read... [13:37:22]Read from MH i2c: F0 09 00 91 39 00 97 AA 17 67 82 C9 CF 66 01 [13:37:22]GetLastDocTimeStamp 1729604210 [13:37:22]current date 1729604247 [13:37:22]FM_GetShiftState [13:37:22]SAM_PROTO_GetShiftState [13:37:22]wFMCommunicate request_size=4 [13:37:22]MH_SAM_APDU [13:37:22]CAPDU: 80 13 01 00 [13:37:22]Write to MH i2c: E2 08 00 92 39 80 13 01 00 00 00 00 00 48 [13:37:22]Write i2c OK [13:37:22]MH_I2C_Read... [13:37:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:23]Read from MH i2c: E2 [13:37:23]MH_I2C_Read... [13:37:23]Read from MH i2c: E2 0E 00 [13:37:23]MH_I2C_Read... [13:37:23]Read from MH i2c: E2 0E 00 92 39 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 0F [13:37:23]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:37:23]wFMCommunicate OK [13:37:23]SAM_PROTO_GetShiftState done [13:37:23]FM_GetShiftState done [13:37:23]opened in 1729555538 [13:37:23]opened+sec_in_day 1729641938 [13:37:23]quantity*price = 0 [13:37:23]sum+1 = 1 [13:37:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 190 22.10.2024 13:37 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливная Карта 53957 ФМ: 0000000000871839 ФД: 228226 ФПД: 80249111394591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133727&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228226&fm=80249111394591&tin=02508201610067®Number=0000000000091685&sum=0 [13:37:24]StoreToDocumentArchive [13:37:24]shift 535 fd 228226 [13:37:24]save to /storage/0535/doc_00228226 [13:37:24]save last doc name /storage/0535/doc_00228226 to /storage/kkm_last_doc_name [13:37:24]save OK [13:37:24]Clear old archive folders... [13:37:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:37:24]tlvbuf is 008E5040 [13:37:24]SAM_PROTO_ClearQueue [13:37:24]wFMCommunicate request_size=4 [13:37:24]MH_SAM_APDU [13:37:24]CAPDU: 80 09 00 00 [13:37:24]Write to MH i2c: E2 08 00 9F 39 80 09 00 00 00 00 00 00 4A [13:37:24]Write i2c OK [13:37:24]MH_I2C_Read... [13:37:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:37:24]Read from MH i2c: E2 [13:37:24]MH_I2C_Read... [13:37:24]Read from MH i2c: E2 03 00 [13:37:24]MH_I2C_Read... [13:37:24]Read from MH i2c: E2 03 00 9F 39 00 90 00 4C [13:37:24]RAPDU: 90 00 [13:37:24]wFMCommunicate OK [13:37:24]SAM_PROTO_ClearQueue done [13:37:24]KKMCreateOFDPacket [13:37:24]OFDProtocolAddRootSTLVToBuf [13:37:24]FM_MakeSignedData [13:37:24]FM_MakeSignedData [13:37:24]SAM_PROTO_SignData [13:37:24]wFMCommunicate request_size=4 [13:37:24]MH_SAM_APDU [13:37:24]CAPDU: 80 0D 01 02 [13:37:24]Write to MH i2c: E2 08 00 A0 39 80 0D 01 02 00 00 00 00 52 [13:37:24]Write i2c OK [13:37:24]MH_I2C_Read... [13:37:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:37:24]Read from MH i2c: E2 [13:37:24]MH_I2C_Read... [13:37:24]Read from MH i2c: E2 03 00 [13:37:24]MH_I2C_Read... [13:37:24]Read from MH i2c: E2 03 00 A0 39 00 90 00 4D [13:37:24]RAPDU: 90 00 [13:37:24]wFMCommunicate OK [13:37:24]wFMCommunicate request_size=255 [13:37:24]MH_SAM_APDU [13:37: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 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 97 AA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 82 7B 03 00 35 04 06 00 48 FC 73 C7 [13:37:24]Write to MH i2c: E2 02 01 A1 39 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 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 97 AA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 82 7B 03 00 35 04 06 00 48 FC 73 C7 00 00 48 [13:37:24]Write i2c OK [13:37:24]MH_I2C_Read... [13:37:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:24]Read from MH i2c: E2 [13:37:24]MH_I2C_Read... [13:37:24]Read from MH i2c: E2 03 00 [13:37:24]MH_I2C_Read... [13:37:24]Read from MH i2c: E2 03 00 A1 39 00 90 00 4E [13:37:24]RAPDU: 90 00 [13:37:24]wFMCommunicate OK [13:37:24]wFMCommunicate request_size=7 [13:37:24]MH_SAM_APDU [13:37:24]CAPDU: 80 0D 02 02 02 39 1F [13:37:24]Write to MH i2c: E2 0A 00 A2 39 80 0D 02 02 02 00 39 1F 00 00 B1 [13:37:24]Write i2c OK [13:37:24]MH_I2C_Read... [13:37:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:24]Read from MH i2c: E2 [13:37:24]MH_I2C_Read... [13:37:24]Read from MH i2c: E2 03 00 [13:37:24]MH_I2C_Read... [13:37:24]Read from MH i2c: E2 03 00 A2 39 00 90 00 4F [13:37:24]RAPDU: 90 00 [13:37:24]wFMCommunicate OK [13:37:24]wFMCommunicate request_size=4 [13:37:24]MH_SAM_APDU [13:37:24]CAPDU: 80 0D 03 02 [13:37:24]Write to MH i2c: E2 08 00 A3 39 80 0D 03 02 00 00 00 00 57 [13:37:24]Write i2c OK [13:37:24]MH_I2C_Read... [13:37:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:37:24]Read from MH i2c: E2 [13:37:24]MH_I2C_Read... [13:37:24]Read from MH i2c: E2 0B 00 [13:37:24]MH_I2C_Read... [13:37:24]Read from MH i2c: E2 0B 00 A3 39 00 B3 F5 E5 E2 6C DB 5C 00 90 00 6A [13:37:24]RAPDU: B3 F5 E5 E2 6C DB 5C 00 90 00 [13:37:24]wFMCommunicate OK [13:37:24]SAM_PROTO_SignData done [13:37:24]FM_MakeSignedData done [13:37:24]CreateOFDProtocolMessage [13:37:24]wFMCommunicate request_size=4 [13:37:24]MH_SAM_APDU [13:37:24]CAPDU: 80 11 00 00 [13:37:24]Write to MH i2c: E2 08 00 A4 39 80 11 00 00 00 00 00 00 57 [13:37:24]Write i2c OK [13:37:24]MH_I2C_Read... [13:37:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:24]Read from MH i2c: E2 [13:37:24]MH_I2C_Read... [13:37:24]Read from MH i2c: E2 17 00 [13:37:24]MH_I2C_Read... [13:37:24]Read from MH i2c: E2 17 00 A4 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AE [13:37:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:37:24]wFMCommunicate OK [13:37:24]CreateOFDProtocolMessage done [13:37:24]OFDSenderStorePacket 228226 [13:37:24]StoreOFDPacket docnum=228226 [13:37:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 0B 4F 04 01 0A B6 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 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 97 AA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 82 7B 03 00 35 04 06 00 48 FC 73 C7 39 1F B3 F5 E5 E2 6C DB 5C 00 [13:37:24]CheckFolder [13:37:24]dirname=/storage/ofd_packets [13:37:24]CheckFolder done [13:37:24]ProducePacketName [13:37:24]name=ofd_packets/00228226 [13:37:24]NVStorageSaveData ofd_packets/00228226 [13:37:24]File name is /storage/ofd_packets/00228226 [13:37:24]Write 298 bytes [13:37:24]NVStorageSaveData done [13:37:24]OFDSenderStorePacket done [13:37:24]KKMCreateOFDPacket done [13:37:24]NVStorageSaveData kkm_last_timestamp [13:37:24]File name is /storage/kkm_last_timestamp [13:37:24]Write 4 bytes [13:37:24]NVStorageSaveData done [13:37:24]ExternCall_PrintAddStr [13:37:24]wPrintStart [13:37:24]Write to MH i2c: 01 00 00 A5 39 DE [13:37:24]Write i2c OK [13:37:24]MH_I2C_Read... [13:37:24]Read from MH i2c: 01 [13:37:24]MH_I2C_Read... [13:37:24]Read from MH i2c: 01 07 00 [13:37:24]MH_I2C_Read... [13:37:24]Read from MH i2c: 01 07 00 A5 39 00 00 00 00 00 FF 0F F3 [13:37:24]RasterBufferAndPrint [13:37:24]line Счет N : (1)1964682 [13:37:24]line ИНН: 02508201610067 [13:37:24]line Контрольно-Кассовый Чек [13:37:24]line ПРОДАЖА [13:37:24]line ТРК (МРК, ГНК) : 51 [13:37:24]line Товар: 2710194210 [13:37:24]line ДТ-К-5 [13:37:24]line 13.130 * 0.00 [13:37:24]line = 0.00 [13:37:24]line НДС 12% НСП 1% [13:37:24]line > о реализуемом товаре [13:37:24]line ИТОГО: 0.00 [13:37:24]line НСП 1% : 0.00 [13:37:24]line НДС 12% : 0.00 [13:37:24]line Наличными: 0.00 [13:37:24]line Безнал.: 0.00 [13:37:24]line Место: АЗС № 133 "Партнер Нефть" [13:37:24]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:37:24]line СНО: Общий режим [13:37:24]line Чек 190 22.10.2024 13:37 [13:37:24]line Смена: 535 ФФД: 1.0 [13:37:24]line ЗНМ: 0300000091 [13:37:24]line РНМ: 0000000000091685 [13:37:24]line Версия ККМ: 001 [13:37:24]line Талоны: Топливная Карта [13:37:24]line 53957 [13:37:24]line ФМ: 0000000000871839 [13:37:24]line ФД: 228226 [13:37:24]line ФПД: 80249111394591 [13:37:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133727&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228226&fm=80249111394591&tin=02508201610067®Number=0000000000091685&sum=0 [13:37:24]OFD Sender: Processing packet 228226 [packets to send 38, broken 37] [13:37:24]ProducePacketName [13:37:24]name=ofd_packets/00228226 [13:37:24]OFD Sender: To server: pG, [13:37:24]CommunicateWithHost lk.salyk.kg:30040 [13:37:24]ConnectInit lk.salyk.kg [13:37:24]written 0, free lines is 4095 [13:37:25]Connected sock=10 [13:37:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 0B 4F 04 01 0A B6 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 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 97 AA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 82 7B 03 00 35 04 06 00 48 FC 73 C7 39 1F B3 F5 E5 E2 6C DB 5C 00 [13:37:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 A7 A8 47 00 9C F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 82 7B 03 00 F4 03 04 00 8F 55 17 67 B6 04 01 00 00 37 C2 29 63 7E 74 6A 24 [13:37:25]CommunicateWithHost err = 0 [13:37:25]CheckOFDResponse [13:37:25]1017 (14) - 77093643461234 [13:37:25]1041 (16) - 0000000000871839 [13:37:25]1040 (4) - 228226 [13:37:25]1012 (4) - 22.10.2024 07:34 [13:37:25]1206 (1) - 0 [13:37:25]OFD Sender: Remove packet 228226 [13:37:25]ProducePacketName [13:37:25]name=ofd_packets/00228226 [13:37:25]NVStorageDeleteData [13:37:25]Write to MH i2c: 01 00 00 CE 39 07 [13:37:25]Write i2c OK [13:37:25]MH_I2C_Read... [13:37:25]Read from MH i2c: 01 [13:37:25]MH_I2C_Read... [13:37:25]Read from MH i2c: 01 07 00 [13:37:25]MH_I2C_Read... [13:37:25]Read from MH i2c: 01 07 00 CE 39 00 00 00 00 00 CA 0C E4 [13:37:25]RasterBufferAndPrint [13:37:25]line [13:37:25]line [13:37:25]line [13:37:25]line [13:37:25]line [13:37:25]written 0, free lines is 3281 [13:37:25]MH_Cut [13:37:25]Write to MH i2c: D1 01 00 D5 39 01 E0 [13:37:25]Write i2c OK [13:37:25]MH_I2C_Read... [13:37:25]Read from MH i2c: D1 [13:37:25]MH_I2C_Read... [13:37:25]Read from MH i2c: D1 01 00 [13:37:25]MH_I2C_Read... [13:37:25]Read from MH i2c: D1 01 00 D5 39 00 DF [13:37:25]Write to MH i2c: 01 00 00 D6 39 0F [13:37:25]Write i2c OK [13:37:25]MH_I2C_Read... [13:37:25]OFD Sender: No OFD packet to send [13:37:26]*** Cut start [13:37:26]*** Partial cut [13:37:26]*** CUTSNS_PIN = 1 [13:37:26]*** CUTSNS_PIN = 0 [13:37:26]*** Brake cut motor [13:37:26]Read from MH i2c: 01 [13:37:26]MH_I2C_Read... [13:37:26]*** Stop cut motor [13:37:26]*** Cut end [13:37:26]Read from MH i2c: 01 07 00 [13:37:26]MH_I2C_Read... [13:37:26]Read from MH i2c: 01 07 00 D6 39 00 00 00 00 00 FF 0F 24 [13:37:26]process_action close_receipt done [13:37:26]requested_data is exist [13:37:26]produce_requested_data [13:37:26]requested_item fm.sn is exist - process it [13:37:26]wFMCommunicate request_size=4 [13:37:26]MH_SAM_APDU [13:37:26]CAPDU: 80 11 00 00 [13:37:26]Write to MH i2c: E2 08 00 D7 39 80 11 00 00 00 00 00 00 8A [13:37:26]Write i2c OK [13:37:26]MH_I2C_Read... [13:37:26]Read from MH i2c: E2 [13:37:26]MH_I2C_Read... [13:37:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:26]Read from MH i2c: E2 17 00 [13:37:26]MH_I2C_Read... [13:37:26]Read from MH i2c: E2 17 00 D7 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E1 [13:37:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:37:26]wFMCommunicate OK [13:37:26]requested_item fd.num is exist - process it [13:37:26]SAM_PROTO_GetFieldsCounters [13:37:26]wFMCommunicate request_size=4 [13:37:26]MH_SAM_APDU [13:37:26]CAPDU: 80 13 00 00 [13:37:26]Write to MH i2c: E2 08 00 D8 39 80 13 00 00 00 00 00 00 8D [13:37:26]Write i2c OK [13:37:26]MH_I2C_Read... [13:37:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:37:27]Read from MH i2c: E2 [13:37:27]MH_I2C_Read... [13:37:27]Read from MH i2c: E2 62 00 [13:37:27]MH_I2C_Read... [13:37:27]Read from MH i2c: E2 62 00 D8 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 82 7B 03 00 0E 04 04 00 17 02 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 09 [13:37:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 82 7B 03 00 0E 04 04 00 17 02 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 [13:37:27]wFMCommunicate OK [13:37:27]SAM_PROTO_GetFieldsCounters done [13:37:27]requested_item shift.num is exist - process it [13:37:27]requested_item shift.opened is exist - process it [13:37:27]req_shift_opened [13:37:27]FM_GetShiftState [13:37:27]SAM_PROTO_GetShiftState [13:37:27]wFMCommunicate request_size=4 [13:37:27]MH_SAM_APDU [13:37:27]CAPDU: 80 13 01 00 [13:37:27]Write to MH i2c: E2 08 00 D9 39 80 13 01 00 00 00 00 00 8F [13:37:27]Write i2c OK [13:37:27]MH_I2C_Read... [13:37:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:27]Read from MH i2c: E2 [13:37:27]MH_I2C_Read... [13:37:27]Read from MH i2c: E2 0E 00 [13:37:27]MH_I2C_Read... [13:37:27]Read from MH i2c: E2 0E 00 D9 39 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 56 [13:37:27]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:37:27]wFMCommunicate OK [13:37:27]SAM_PROTO_GetShiftState done [13:37:27]FM_GetShiftState done [13:37:27]req_shift_opened done [13:37:27]requested_item shift.open_date is exist - process it [13:37:27]req_shift_open_date [13:37:27]req_shift_open_date done [13:37:27]produce_requested_data done [13:37:27]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228226,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:37:27]process_action_free close_receipt [13:37:27]json_value_free [13:37:27]json_value_free done [13:37:27]process_json_proto returns [13:37:27]Send response to host [13:37:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228226,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:37:27]free response buf [13:37:27]execute_script done [13:37:27]execute_script returns [13:37:27]free content buf [13:37:27]Sock 9.Close socket [13:37:27]Sock 9.Thread stoped [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:04]accept exits with 7 [13:38:04]New connection [13:38:04]New thread 3066994020 created [13:38:04]Thread 3067137380 joined [13:38:04]Waiting for new connection... [13:38:04] Sock 7.Parse request [13:38:04]Sock 7.Check first char [13:38:04]Sock 7.First char is OK [13:38:04]request: POST /json_proto HTTP/1.0 [13:38:04]Method: POST [13:38:04]URL: /json_proto [13:38:04]Method is POST - this is cgi request [13:38:04]url: /json_proto [13:38:04]query_string will be loaded in cgi processing [13:38:04]execute_cgi json_proto POST (null) [13:38:04]execute_cgi path=json_proto method=POST [13:38:04]POST find Content-Length [13:38:04]Host: 172.17.44.195:8080 [13:38:04]Content-Length: 790 [13:38:04]Content-Type: application/json [13:38:04] [13:38:04]POST finish read [13:38:04]Found Content-Length = 790 [13:38:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 17.310, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53608", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:04]execute_script... [13: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)1964680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 17.310, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53608", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:04]POST & json_proto [13:38:04]process_json_proto [13:38:04]json parsed OK: [13:38:04]protocol is kg_v1.0 [13:38:04]action value=close_receipt [13:38:04]process_action close_receipt [13:38:04]cmd_close_receipt [13:38:04]MH_GetDate [13:38:04]Write to MH i2c: F0 00 00 DA 39 02 [13:38:04]Write i2c OK [13:38:04]MH_I2C_Read... [13:38:04]Read from MH i2c: F0 [13:38:04]MH_I2C_Read... [13:38:04]Read from MH i2c: F0 09 00 [13:38:04]MH_I2C_Read... [13:38:04]Read from MH i2c: F0 09 00 DA 39 00 C0 AA 17 67 82 C9 CF 66 73 [13:38:04]GetLastDocTimeStamp 1729604247 [13:38:04]current date 1729604288 [13:38:04]FM_GetShiftState [13:38:04]SAM_PROTO_GetShiftState [13:38:04]wFMCommunicate request_size=4 [13:38:04]MH_SAM_APDU [13:38:04]CAPDU: 80 13 01 00 [13:38:04]Write to MH i2c: E2 08 00 DB 39 80 13 01 00 00 00 00 00 91 [13:38:04]Write i2c OK [13:38:04]MH_I2C_Read... [13:38:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:04]Read from MH i2c: E2 [13:38:04]MH_I2C_Read... [13:38:04]Read from MH i2c: E2 0E 00 [13:38:04]MH_I2C_Read... [13:38:04]Read from MH i2c: E2 0E 00 DB 39 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 58 [13:38:04]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:38:04]wFMCommunicate OK [13:38:04]SAM_PROTO_GetShiftState done [13:38:04]FM_GetShiftState done [13:38:04]opened in 1729555538 [13:38:04]opened+sec_in_day 1729641938 [13:38:04]quantity*price = 0 [13:38:04]sum+1 = 1 [13:38:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 191 22.10.2024 13:38 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливная Карта 53608 ФМ: 0000000000871839 ФД: 228227 ФПД: 42010210838551 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133808&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228227&fm=42010210838551&tin=02508201610067®Number=0000000000091685&sum=0 [13:38:05]StoreToDocumentArchive [13:38:05]shift 535 fd 228227 [13:38:05]save to /storage/0535/doc_00228227 [13:38:05]save last doc name /storage/0535/doc_00228227 to /storage/kkm_last_doc_name [13:38:05]save OK [13:38:05]Clear old archive folders... [13:38:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:38:05]tlvbuf is 00875320 [13:38:05]SAM_PROTO_ClearQueue [13:38:05]wFMCommunicate request_size=4 [13:38:05]MH_SAM_APDU [13:38:05]CAPDU: 80 09 00 00 [13:38:05]Write to MH i2c: E2 08 00 E8 39 80 09 00 00 00 00 00 00 93 [13:38:05]Write i2c OK [13:38:05]MH_I2C_Read... [13:38:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:38:05]Read from MH i2c: E2 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 03 00 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 03 00 E8 39 00 90 00 95 [13:38:05]RAPDU: 90 00 [13:38:05]wFMCommunicate OK [13:38:05]SAM_PROTO_ClearQueue done [13:38:05]KKMCreateOFDPacket [13:38:05]OFDProtocolAddRootSTLVToBuf [13:38:05]FM_MakeSignedData [13:38:05]FM_MakeSignedData [13:38:05]SAM_PROTO_SignData [13:38:05]wFMCommunicate request_size=4 [13:38:05]MH_SAM_APDU [13:38:05]CAPDU: 80 0D 01 02 [13:38:05]Write to MH i2c: E2 08 00 E9 39 80 0D 01 02 00 00 00 00 9B [13:38:05]Write i2c OK [13:38:05]MH_I2C_Read... [13:38:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:38:05]Read from MH i2c: E2 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 03 00 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 03 00 E9 39 00 90 00 96 [13:38:05]RAPDU: 90 00 [13:38:05]wFMCommunicate OK [13:38:05]wFMCommunicate request_size=255 [13:38:05]MH_SAM_APDU [13:38:05]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 9E 43 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 C0 AA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 83 7B 03 00 35 04 06 00 26 35 43 B1 [13:38:05]Write to MH i2c: E2 02 01 EA 39 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 9E 43 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 C0 AA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 83 7B 03 00 35 04 06 00 26 35 43 B1 00 00 F1 [13:38:05]Write i2c OK [13:38:05]MH_I2C_Read... [13:38:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:05]Read from MH i2c: E2 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 03 00 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 03 00 EA 39 00 90 00 97 [13:38:05]RAPDU: 90 00 [13:38:05]wFMCommunicate OK [13:38:05]wFMCommunicate request_size=7 [13:38:05]MH_SAM_APDU [13:38:05]CAPDU: 80 0D 02 02 02 A8 17 [13:38:05]Write to MH i2c: E2 0A 00 EB 39 80 0D 02 02 02 00 A8 17 00 00 61 [13:38:05]Write i2c OK [13:38:05]MH_I2C_Read... [13:38:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:05]Read from MH i2c: E2 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 03 00 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 03 00 EB 39 00 90 00 98 [13:38:05]RAPDU: 90 00 [13:38:05]wFMCommunicate OK [13:38:05]wFMCommunicate request_size=4 [13:38:05]MH_SAM_APDU [13:38:05]CAPDU: 80 0D 03 02 [13:38:05]Write to MH i2c: E2 08 00 EC 39 80 0D 03 02 00 00 00 00 A0 [13:38:05]Write i2c OK [13:38:05]MH_I2C_Read... [13:38:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:38:05]Read from MH i2c: E2 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 0B 00 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 0B 00 EC 39 00 67 BD 38 BB F9 5B 82 DC 90 00 6A [13:38:05]RAPDU: 67 BD 38 BB F9 5B 82 DC 90 00 [13:38:05]wFMCommunicate OK [13:38:05]SAM_PROTO_SignData done [13:38:05]FM_MakeSignedData done [13:38:05]CreateOFDProtocolMessage [13:38:05]wFMCommunicate request_size=4 [13:38:05]MH_SAM_APDU [13:38:05]CAPDU: 80 11 00 00 [13:38:05]Write to MH i2c: E2 08 00 ED 39 80 11 00 00 00 00 00 00 A0 [13:38:05]Write i2c OK [13:38:05]MH_I2C_Read... [13:38:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:05]Read from MH i2c: E2 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 17 00 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 17 00 ED 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F7 [13:38:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:38:05]wFMCommunicate OK [13:38:05]CreateOFDProtocolMessage done [13:38:05]OFDSenderStorePacket 228227 [13:38:05]StoreOFDPacket docnum=228227 [13:38:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 57 8F 04 01 D4 9B 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 9E 43 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 C0 AA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 83 7B 03 00 35 04 06 00 26 35 43 B1 A8 17 67 BD 38 BB F9 5B 82 DC [13:38:05]CheckFolder [13:38:05]dirname=/storage/ofd_packets [13:38:05]CheckFolder done [13:38:05]ProducePacketName [13:38:05]name=ofd_packets/00228227 [13:38:05]NVStorageSaveData ofd_packets/00228227 [13:38:05]File name is /storage/ofd_packets/00228227 [13:38:05]Write 298 bytes [13:38:05]NVStorageSaveData done [13:38:05]OFDSenderStorePacket done [13:38:05]KKMCreateOFDPacket done [13:38:05]NVStorageSaveData kkm_last_timestamp [13:38:05]File name is /storage/kkm_last_timestamp [13:38:05]Write 4 bytes [13:38:05]NVStorageSaveData done [13:38:05]ExternCall_PrintAddStr [13:38:05]wPrintStart [13:38:05]Write to MH i2c: 01 00 00 EE 39 27 [13:38:05]Write i2c OK [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: 01 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: 01 07 00 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: 01 07 00 EE 39 00 00 00 00 00 FF 0F 3C [13:38:05]RasterBufferAndPrint [13:38:05]line Счет N : (1)1964680 [13:38:05]line ИНН: 02508201610067 [13:38:05]line Контрольно-Кассовый Чек [13:38:05]line ПРОДАЖА [13:38:05]line ТРК (МРК, ГНК) : 31 [13:38:05]line Товар: 2710194210 [13:38:05]line ДТ-К-5 [13:38:05]line 17.310 * 0.00 [13:38:05]line = 0.00 [13:38:05]line НДС 12% НСП 1% [13:38:05]line > о реализуемом товаре [13:38:05]line ИТОГО: 0.00 [13:38:05]line НСП 1% : 0.00 [13:38:05]line НДС 12% : 0.00 [13:38:05]line Наличными: 0.00 [13:38:05]line Безнал.: 0.00 [13:38:05]line Место: АЗС № 133 "Партнер Нефть" [13:38:05]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:38:05]line СНО: Общий режим [13:38:05]line Чек 191 22.10.2024 13:38 [13:38:05]line Смена: 535 ФФД: 1.0 [13:38:05]line ЗНМ: 0300000091 [13:38:05]line РНМ: 0000000000091685 [13:38:05]line Версия ККМ: 001 [13:38:05]line Талоны: Топливная Карта [13:38:05]line 53608 [13:38:05]line ФМ: 0000000000871839 [13:38:05]line ФД: 228227 [13:38:05]line ФПД: 42010210838551 [13:38:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133808&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228227&fm=42010210838551&tin=02508201610067®Number=0000000000091685&sum=0 [13:38:06]OFD Sender: Processing packet 228227 [packets to send 38, broken 37] [13:38:06]ProducePacketName [13:38:06]name=ofd_packets/00228227 [13:38:06]OFD Sender: To server: pG, [13:38:06]CommunicateWithHost lk.salyk.kg:30040 [13:38:06]ConnectInit lk.salyk.kg [13:38:06]written 0, free lines is 4095 [13:38:06]Connected sock=9 [13:38:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 57 8F 04 01 D4 9B 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 9E 43 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 C0 AA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 83 7B 03 00 35 04 06 00 26 35 43 B1 A8 17 67 BD 38 BB F9 5B 82 DC [13:38:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 26 45 47 00 03 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 83 7B 03 00 F4 03 04 00 B8 55 17 67 B6 04 01 00 00 3E 32 BE FE 8C 0C CC BB [13:38:06]CommunicateWithHost err = 0 [13:38:06]CheckOFDResponse [13:38:06]1017 (14) - 77093643461234 [13:38:06]1041 (16) - 0000000000871839 [13:38:06]1040 (4) - 228227 [13:38:06]1012 (4) - 22.10.2024 07:35 [13:38:06]1206 (1) - 0 [13:38:06]OFD Sender: Remove packet 228227 [13:38:06]ProducePacketName [13:38:06]name=ofd_packets/00228227 [13:38:06]NVStorageDeleteData [13:38:06]Write to MH i2c: 01 00 00 17 3A 51 [13:38:06]Write i2c OK [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: 01 [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: 01 07 00 [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: 01 07 00 17 3A 00 00 00 00 00 CF 0C 33 [13:38:06]RasterBufferAndPrint [13:38:06]line [13:38:06]line [13:38:06]line [13:38:06]line [13:38:06]line [13:38:06]written 0, free lines is 3285 [13:38:06]MH_Cut [13:38:06]Write to MH i2c: D1 01 00 1E 3A 01 2A [13:38:06]Write i2c OK [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: D1 [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: D1 01 00 [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: D1 01 00 1E 3A 00 29 [13:38:06]Write to MH i2c: 01 00 00 1F 3A 59 [13:38:06]Write i2c OK [13:38:06]MH_I2C_Read... [13:38:07]OFD Sender: No OFD packet to send [13:38:07]*** Cut start [13:38:07]*** Partial cut [13:38:07]*** CUTSNS_PIN = 1 [13:38:07]*** CUTSNS_PIN = 0 [13:38:07]*** Brake cut motor [13:38:08]Read from MH i2c: 01 [13:38:08]MH_I2C_Read... [13:38:08]*** Stop cut motor [13:38:08]*** Cut end [13:38:08]Read from MH i2c: 01 07 00 [13:38:08]MH_I2C_Read... [13:38:08]Read from MH i2c: 01 07 00 1F 3A 00 00 00 00 00 FF 0F 6E [13:38:08]process_action close_receipt done [13:38:08]requested_data is exist [13:38:08]produce_requested_data [13:38:08]requested_item fm.sn is exist - process it [13:38:08]wFMCommunicate request_size=4 [13:38:08]MH_SAM_APDU [13:38:08]CAPDU: 80 11 00 00 [13:38:08]Write to MH i2c: E2 08 00 20 3A 80 11 00 00 00 00 00 00 D4 [13:38:08]Write i2c OK [13:38:08]MH_I2C_Read... [13:38:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:08]Read from MH i2c: E2 [13:38:08]MH_I2C_Read... [13:38:08]Read from MH i2c: E2 17 00 [13:38:08]MH_I2C_Read... [13:38:08]Read from MH i2c: E2 17 00 20 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2B [13:38:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:38:08]wFMCommunicate OK [13:38:08]requested_item fd.num is exist - process it [13:38:08]SAM_PROTO_GetFieldsCounters [13:38:08]wFMCommunicate request_size=4 [13:38:08]MH_SAM_APDU [13:38:08]CAPDU: 80 13 00 00 [13:38:08]Write to MH i2c: E2 08 00 21 3A 80 13 00 00 00 00 00 00 D7 [13:38:08]Write i2c OK [13:38:08]MH_I2C_Read... [13:38:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:08]Read from MH i2c: E2 [13:38:08]MH_I2C_Read... [13:38:08]Read from MH i2c: E2 62 00 [13:38:08]MH_I2C_Read... [13:38:08]Read from MH i2c: E2 62 00 21 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 83 7B 03 00 0E 04 04 00 17 02 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 57 [13:38:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 83 7B 03 00 0E 04 04 00 17 02 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 [13:38:08]wFMCommunicate OK [13:38:08]SAM_PROTO_GetFieldsCounters done [13:38:08]requested_item shift.num is exist - process it [13:38:08]requested_item shift.opened is exist - process it [13:38:08]req_shift_opened [13:38:08]FM_GetShiftState [13:38:08]SAM_PROTO_GetShiftState [13:38:08]wFMCommunicate request_size=4 [13:38:08]MH_SAM_APDU [13:38:08]CAPDU: 80 13 01 00 [13:38:08]Write to MH i2c: E2 08 00 22 3A 80 13 01 00 00 00 00 00 D9 [13:38:08]Write i2c OK [13:38:08]MH_I2C_Read... [13:38:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:08]Read from MH i2c: E2 [13:38:08]MH_I2C_Read... [13:38:08]Read from MH i2c: E2 0E 00 [13:38:08]MH_I2C_Read... [13:38:08]Read from MH i2c: E2 0E 00 22 3A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 A0 [13:38:08]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:38:08]wFMCommunicate OK [13:38:08]SAM_PROTO_GetShiftState done [13:38:08]FM_GetShiftState done [13:38:08]req_shift_opened done [13:38:08]requested_item shift.open_date is exist - process it [13:38:08]req_shift_open_date [13:38:08]req_shift_open_date done [13:38:08]produce_requested_data done [13:38:08]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228227,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:38:08]process_action_free close_receipt [13:38:08]json_value_free [13:38:08]json_value_free done [13:38:08]process_json_proto returns [13:38:08]Send response to host [13:38:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228227,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:38:08]free response buf [13:38:08]execute_script done [13:38:08]execute_script returns [13:38:08]free content buf [13:38:08]Sock 7.Close socket [13:38:08]Sock 7.Thread stoped [13:38:12]OFD Sender: No OFD packet to send [13:38:17]OFD Sender: No OFD packet to send [13:38:22]OFD Sender: No OFD packet to send [13:38:27]OFD Sender: No OFD packet to send [13:38:32]OFD Sender: No OFD packet to send [13:38:37]OFD Sender: No OFD packet to send [13:38:42]OFD Sender: No OFD packet to send [13:38:47]OFD Sender: No OFD packet to send [13:38:52]OFD Sender: No OFD packet to send [13:38:57]OFD Sender: No OFD packet to send [13:39:02]OFD Sender: No OFD packet to send [13:39:07]OFD Sender: No OFD packet to send [13:39:12]OFD Sender: No OFD packet to send [13:39:17]OFD Sender: No OFD packet to send [13:39:22]OFD Sender: No OFD packet to send [13:39:27]OFD Sender: No OFD packet to send [13:39:32]OFD Sender: No OFD packet to send [13:39:37]OFD Sender: No OFD packet to send [13:39:42]OFD Sender: No OFD packet to send [13:39:47]OFD Sender: No OFD packet to send [13:39:52]OFD Sender: No OFD packet to send [13:39:57]OFD Sender: No OFD packet to send [13:40:02]OFD Sender: No OFD packet to send [13:40:07]OFD Sender: No OFD packet to send [13:40:12]OFD Sender: No OFD packet to send [13:40:17]OFD Sender: No OFD packet to send [13:40:18]accept exits with 10 [13:40:18]New connection [13:40:18]New thread 3067137380 created [13:40:18]Thread 3066994020 joined [13:40:18]Waiting for new connection... [13:40:18] Sock 10.Parse request [13:40:18]Sock 10.Check first char [13:40:18]Sock 10.First char is OK [13:40:18]request: POST /json_proto HTTP/1.0 [13:40:18]Method: POST [13:40:18]URL: /json_proto [13:40:18]Method is POST - this is cgi request [13:40:18]url: /json_proto [13:40:18]query_string will be loaded in cgi processing [13:40:18]execute_cgi json_proto POST (null) [13:40:18]execute_cgi path=json_proto method=POST [13:40:18]POST find Content-Length [13:40:18]Host: 172.17.44.195:8080 [13:40:18]Content-Length: 789 [13:40:18]Content-Type: application/json [13:40:18] [13:40:18]POST finish read [13:40:18]Found Content-Length = 789 [13:40:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964683", "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" : 0.00, "quantity" : 4.370, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53957", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:18]execute_script... [13:40: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)1964683", "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" : 0.00, "quantity" : 4.370, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53957", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:18]POST & json_proto [13:40:18]process_json_proto [13:40:18]json parsed OK: [13:40:18]protocol is kg_v1.0 [13:40:18]action value=close_receipt [13:40:18]process_action close_receipt [13:40:18]cmd_close_receipt [13:40:18]MH_GetDate [13:40:18]Write to MH i2c: F0 00 00 23 3A 4C [13:40:18]Write i2c OK [13:40:18]MH_I2C_Read... [13:40:18]Read from MH i2c: F0 [13:40:18]MH_I2C_Read... [13:40:18]Read from MH i2c: F0 09 00 [13:40:18]MH_I2C_Read... [13:40:18]Read from MH i2c: F0 09 00 23 3A 00 46 AB 17 67 82 C9 CF 66 44 [13:40:18]GetLastDocTimeStamp 1729604288 [13:40:18]current date 1729604422 [13:40:18]FM_GetShiftState [13:40:18]SAM_PROTO_GetShiftState [13:40:18]wFMCommunicate request_size=4 [13:40:18]MH_SAM_APDU [13:40:18]CAPDU: 80 13 01 00 [13:40:18]Write to MH i2c: E2 08 00 24 3A 80 13 01 00 00 00 00 00 DB [13:40:18]Write i2c OK [13:40:18]MH_I2C_Read... [13:40:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:18]Read from MH i2c: E2 [13:40:18]MH_I2C_Read... [13:40:18]Read from MH i2c: E2 0E 00 [13:40:18]MH_I2C_Read... [13:40:18]Read from MH i2c: E2 0E 00 24 3A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 A2 [13:40:18]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:40:18]wFMCommunicate OK [13:40:18]SAM_PROTO_GetShiftState done [13:40:18]FM_GetShiftState done [13:40:18]opened in 1729555538 [13:40:18]opened+sec_in_day 1729641938 [13:40:18]quantity*price = 0 [13:40:18]sum+1 = 1 [13:40:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 192 22.10.2024 13:40 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливная Карта 53957 ФМ: 0000000000871839 ФД: 228228 ФПД: 95669327058994 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134022&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228228&fm=95669327058994&tin=02508201610067®Number=0000000000091685&sum=0 [13:40:19]StoreToDocumentArchive [13:40:19]shift 535 fd 228228 [13:40:19]save to /storage/0535/doc_00228228 [13:40:19]save last doc name /storage/0535/doc_00228228 to /storage/kkm_last_doc_name [13:40:19]save OK [13:40:19]Clear old archive folders... [13:40:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:40:19]tlvbuf is 0092DA80 [13:40:19]SAM_PROTO_ClearQueue [13:40:19]wFMCommunicate request_size=4 [13:40:19]MH_SAM_APDU [13:40:19]CAPDU: 80 09 00 00 [13:40:19]Write to MH i2c: E2 08 00 31 3A 80 09 00 00 00 00 00 00 DD [13:40:19]Write i2c OK [13:40:19]MH_I2C_Read... [13:40:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:40:19]Read from MH i2c: E2 [13:40:19]MH_I2C_Read... [13:40:19]Read from MH i2c: E2 03 00 [13:40:19]MH_I2C_Read... [13:40:19]Read from MH i2c: E2 03 00 31 3A 00 90 00 DF [13:40:19]RAPDU: 90 00 [13:40:19]wFMCommunicate OK [13:40:19]SAM_PROTO_ClearQueue done [13:40:19]KKMCreateOFDPacket [13:40:19]OFDProtocolAddRootSTLVToBuf [13:40:19]FM_MakeSignedData [13:40:19]FM_MakeSignedData [13:40:19]SAM_PROTO_SignData [13:40:19]wFMCommunicate request_size=4 [13:40:19]MH_SAM_APDU [13:40:19]CAPDU: 80 0D 01 02 [13:40:19]Write to MH i2c: E2 08 00 32 3A 80 0D 01 02 00 00 00 00 E5 [13:40:19]Write i2c OK [13:40:19]MH_I2C_Read... [13:40:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:40:19]Read from MH i2c: E2 [13:40:19]MH_I2C_Read... [13:40:19]Read from MH i2c: E2 03 00 [13:40:19]MH_I2C_Read... [13:40:19]Read from MH i2c: E2 03 00 32 3A 00 90 00 E0 [13:40:19]RAPDU: 90 00 [13:40:19]wFMCommunicate OK [13:40:19]wFMCommunicate request_size=255 [13:40:19]MH_SAM_APDU [13:40: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 12 11 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 46 AB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 84 7B 03 00 35 04 06 00 57 02 C0 41 [13:40:19]Write to MH i2c: E2 02 01 33 3A 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 12 11 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 46 AB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 84 7B 03 00 35 04 06 00 57 02 C0 41 00 00 11 [13:40:19]Write i2c OK [13:40:19]MH_I2C_Read... [13:40:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:19]Read from MH i2c: E2 [13:40:19]MH_I2C_Read... [13:40:19]Read from MH i2c: E2 03 00 [13:40:19]MH_I2C_Read... [13:40:19]Read from MH i2c: E2 03 00 33 3A 00 90 00 E1 [13:40:19]RAPDU: 90 00 [13:40:19]wFMCommunicate OK [13:40:19]wFMCommunicate request_size=7 [13:40:19]MH_SAM_APDU [13:40:19]CAPDU: 80 0D 02 02 02 58 32 [13:40:19]Write to MH i2c: E2 0A 00 34 3A 80 0D 02 02 02 00 58 32 00 00 76 [13:40:19]Write i2c OK [13:40:19]MH_I2C_Read... [13:40:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:19]Read from MH i2c: E2 [13:40:19]MH_I2C_Read... [13:40:19]Read from MH i2c: E2 03 00 [13:40:19]MH_I2C_Read... [13:40:19]Read from MH i2c: E2 03 00 34 3A 00 90 00 E2 [13:40:19]RAPDU: 90 00 [13:40:19]wFMCommunicate OK [13:40:19]wFMCommunicate request_size=4 [13:40:19]MH_SAM_APDU [13:40:19]CAPDU: 80 0D 03 02 [13:40:19]Write to MH i2c: E2 08 00 35 3A 80 0D 03 02 00 00 00 00 EA [13:40:19]Write i2c OK [13:40:19]MH_I2C_Read... [13:40:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:40:19]Read from MH i2c: E2 [13:40:19]MH_I2C_Read... [13:40:19]Read from MH i2c: E2 0B 00 [13:40:19]MH_I2C_Read... [13:40:19]Read from MH i2c: E2 0B 00 35 3A 00 31 90 4C 91 DE C2 4F 91 90 00 09 [13:40:19]RAPDU: 31 90 4C 91 DE C2 4F 91 90 00 [13:40:19]wFMCommunicate OK [13:40:19]SAM_PROTO_SignData done [13:40:19]FM_MakeSignedData done [13:40:19]CreateOFDProtocolMessage [13:40:19]wFMCommunicate request_size=4 [13:40:19]MH_SAM_APDU [13:40:19]CAPDU: 80 11 00 00 [13:40:19]Write to MH i2c: E2 08 00 36 3A 80 11 00 00 00 00 00 00 EA [13:40:19]Write i2c OK [13:40:19]MH_I2C_Read... [13:40:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:19]Read from MH i2c: E2 [13:40:19]MH_I2C_Read... [13:40:19]Read from MH i2c: E2 17 00 [13:40:19]MH_I2C_Read... [13:40:19]Read from MH i2c: E2 17 00 36 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 41 [13:40:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:40:19]wFMCommunicate OK [13:40:19]CreateOFDProtocolMessage done [13:40:19]OFDSenderStorePacket 228228 [13:40:19]StoreOFDPacket docnum=228228 [13:40:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 FD BF 04 01 5D 32 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 12 11 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 46 AB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 84 7B 03 00 35 04 06 00 57 02 C0 41 58 32 31 90 4C 91 DE C2 4F 91 [13:40:19]CheckFolder [13:40:19]dirname=/storage/ofd_packets [13:40:19]CheckFolder done [13:40:19]ProducePacketName [13:40:19]name=ofd_packets/00228228 [13:40:19]NVStorageSaveData ofd_packets/00228228 [13:40:19]File name is /storage/ofd_packets/00228228 [13:40:19]Write 298 bytes [13:40:19]NVStorageSaveData done [13:40:19]OFDSenderStorePacket done [13:40:19]KKMCreateOFDPacket done [13:40:19]NVStorageSaveData kkm_last_timestamp [13:40:19]File name is /storage/kkm_last_timestamp [13:40:19]Write 4 bytes [13:40:19]NVStorageSaveData done [13:40:19]ExternCall_PrintAddStr [13:40:19]wPrintStart [13:40:19]Write to MH i2c: 01 00 00 37 3A 71 [13:40:19]Write i2c OK [13:40:19]MH_I2C_Read... [13:40:19]Read from MH i2c: 01 [13:40:19]MH_I2C_Read... [13:40:19]Read from MH i2c: 01 07 00 [13:40:19]MH_I2C_Read... [13:40:19]Read from MH i2c: 01 07 00 37 3A 00 00 00 00 00 FF 0F 86 [13:40:19]RasterBufferAndPrint [13:40:19]line Счет N : (1)1964683 [13:40:19]line ИНН: 02508201610067 [13:40:19]line Контрольно-Кассовый Чек [13:40:19]line ПРОДАЖА [13:40:19]line ТРК (МРК, ГНК) : 21 [13:40:19]line Товар: 2710194210 [13:40:19]line ДТ-К-5 [13:40:19]line 4.370 * 0.00 [13:40:19]line = 0.00 [13:40:19]line НДС 12% НСП 1% [13:40:19]line > о реализуемом товаре [13:40:19]line ИТОГО: 0.00 [13:40:19]line НСП 1% : 0.00 [13:40:19]line НДС 12% : 0.00 [13:40:19]line Наличными: 0.00 [13:40:19]line Безнал.: 0.00 [13:40:19]line Место: АЗС № 133 "Партнер Нефть" [13:40:19]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:40:19]line СНО: Общий режим [13:40:19]line Чек 192 22.10.2024 13:40 [13:40:19]line Смена: 535 ФФД: 1.0 [13:40:19]line ЗНМ: 0300000091 [13:40:19]line РНМ: 0000000000091685 [13:40:19]line Версия ККМ: 001 [13:40:19]line Талоны: Топливная Карта [13:40:19]line 53957 [13:40:19]line ФМ: 0000000000871839 [13:40:19]line ФД: 228228 [13:40:19]line ФПД: 95669327058994 [13:40:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134022&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228228&fm=95669327058994&tin=02508201610067®Number=0000000000091685&sum=0 [13:40:20]OFD Sender: Processing packet 228228 [packets to send 38, broken 37] [13:40:20]ProducePacketName [13:40:20]name=ofd_packets/00228228 [13:40:20]OFD Sender: To server: pG, [13:40:20]CommunicateWithHost lk.salyk.kg:30040 [13:40:20]ConnectInit lk.salyk.kg [13:40:20]written 0, free lines is 4095 [13:40:20]Connected sock=9 [13:40:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 FD BF 04 01 5D 32 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 12 11 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 46 AB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 84 7B 03 00 35 04 06 00 57 02 C0 41 58 32 31 90 4C 91 DE C2 4F 91 [13:40:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 87 1D 47 00 46 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 84 7B 03 00 F4 03 04 00 3E 56 17 67 B6 04 01 00 00 AB DB D9 8D 51 11 FC 1B [13:40:20]CommunicateWithHost err = 0 [13:40:20]CheckOFDResponse [13:40:20]1017 (14) - 77093643461234 [13:40:20]1041 (16) - 0000000000871839 [13:40:20]1040 (4) - 228228 [13:40:20]1012 (4) - 22.10.2024 07:37 [13:40:20]1206 (1) - 0 [13:40:20]OFD Sender: Remove packet 228228 [13:40:20]ProducePacketName [13:40:20]name=ofd_packets/00228228 [13:40:20]NVStorageDeleteData [13:40:20]Write to MH i2c: 01 00 00 60 3A 9A [13:40:20]Write i2c OK [13:40:20]MH_I2C_Read... [13:40:20]Read from MH i2c: 01 [13:40:20]MH_I2C_Read... [13:40:20]Read from MH i2c: 01 07 00 [13:40:20]MH_I2C_Read... [13:40:20]Read from MH i2c: 01 07 00 60 3A 00 00 00 00 00 D0 0C 7D [13:40:20]RasterBufferAndPrint [13:40:20]line [13:40:20]line [13:40:20]line [13:40:20]line [13:40:20]line [13:40:20]written 0, free lines is 3286 [13:40:20]MH_Cut [13:40:20]Write to MH i2c: D1 01 00 67 3A 01 73 [13:40:20]Write i2c OK [13:40:20]MH_I2C_Read... [13:40:20]Read from MH i2c: D1 [13:40:20]MH_I2C_Read... [13:40:20]Read from MH i2c: D1 01 00 [13:40:20]MH_I2C_Read... [13:40:20]Read from MH i2c: D1 01 00 67 3A 00 72 [13:40:20]Write to MH i2c: 01 00 00 68 3A A2 [13:40:20]Write i2c OK [13:40:20]MH_I2C_Read... [13:40:20]OFD Sender: No OFD packet to send [13:40:21]*** Cut start [13:40:21]*** Partial cut [13:40:21]*** CUTSNS_PIN = 1 [13:40:21]*** CUTSNS_PIN = 0 [13:40:21]*** Brake cut motor [13:40:21]Read from MH i2c: 01 [13:40:21]MH_I2C_Read... [13:40:21]*** Stop cut motor [13:40:21]*** Cut end [13:40:21]Read from MH i2c: 01 07 00 [13:40:21]MH_I2C_Read... [13:40:21]Read from MH i2c: 01 07 00 68 3A 00 00 00 00 00 FF 0F B7 [13:40:21]process_action close_receipt done [13:40:21]requested_data is exist [13:40:21]produce_requested_data [13:40:21]requested_item fm.sn is exist - process it [13:40:21]wFMCommunicate request_size=4 [13:40:21]MH_SAM_APDU [13:40:21]CAPDU: 80 11 00 00 [13:40:21]Write to MH i2c: E2 08 00 69 3A 80 11 00 00 00 00 00 00 1D [13:40:21]Write i2c OK [13:40:21]MH_I2C_Read... [13:40:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:22]Read from MH i2c: E2 [13:40:22]MH_I2C_Read... [13:40:22]Read from MH i2c: E2 17 00 [13:40:22]MH_I2C_Read... [13:40:22]Read from MH i2c: E2 17 00 69 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 74 [13:40:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:40:22]wFMCommunicate OK [13:40:22]requested_item fd.num is exist - process it [13:40:22]SAM_PROTO_GetFieldsCounters [13:40:22]wFMCommunicate request_size=4 [13:40:22]MH_SAM_APDU [13:40:22]CAPDU: 80 13 00 00 [13:40:22]Write to MH i2c: E2 08 00 6A 3A 80 13 00 00 00 00 00 00 20 [13:40:22]Write i2c OK [13:40:22]MH_I2C_Read... [13:40:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:40:22]Read from MH i2c: E2 [13:40:22]MH_I2C_Read... [13:40:22]Read from MH i2c: E2 62 00 [13:40:22]MH_I2C_Read... [13:40:22]Read from MH i2c: E2 62 00 6A 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 84 7B 03 00 0E 04 04 00 17 02 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 A4 [13:40:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 84 7B 03 00 0E 04 04 00 17 02 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 [13:40:22]wFMCommunicate OK [13:40:22]SAM_PROTO_GetFieldsCounters done [13:40:22]requested_item shift.num is exist - process it [13:40:22]requested_item shift.opened is exist - process it [13:40:22]req_shift_opened [13:40:22]FM_GetShiftState [13:40:22]SAM_PROTO_GetShiftState [13:40:22]wFMCommunicate request_size=4 [13:40:22]MH_SAM_APDU [13:40:22]CAPDU: 80 13 01 00 [13:40:22]Write to MH i2c: E2 08 00 6B 3A 80 13 01 00 00 00 00 00 22 [13:40:22]Write i2c OK [13:40:22]MH_I2C_Read... [13:40:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:22]Read from MH i2c: E2 [13:40:22]MH_I2C_Read... [13:40:22]Read from MH i2c: E2 0E 00 [13:40:22]MH_I2C_Read... [13:40:22]Read from MH i2c: E2 0E 00 6B 3A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 E9 [13:40:22]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:40:22]wFMCommunicate OK [13:40:22]SAM_PROTO_GetShiftState done [13:40:22]FM_GetShiftState done [13:40:22]req_shift_opened done [13:40:22]requested_item shift.open_date is exist - process it [13:40:22]req_shift_open_date [13:40:22]req_shift_open_date done [13:40:22]produce_requested_data done [13:40:22]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228228,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:40:22]process_action_free close_receipt [13:40:22]json_value_free [13:40:22]json_value_free done [13:40:22]process_json_proto returns [13:40:22]Send response to host [13:40:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228228,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:40:22]free response buf [13:40:22]execute_script done [13:40:22]execute_script returns [13:40:22]free content buf [13:40:22]Sock 10.Close socket [13:40:22]Sock 10.Thread stoped [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]accept exits with 7 [13:41:00]New connection [13:41:00]New thread 3066994020 created [13:41:00]Thread 3067137380 joined [13:41:00]Waiting for new connection... [13:41:00] Sock 7.Parse request [13:41:00]Sock 7.Check first char [13:41:00]Sock 7.First char is OK [13:41:00]request: POST /json_proto HTTP/1.0 [13:41:00]Method: POST [13:41:00]URL: /json_proto [13:41:00]Method is POST - this is cgi request [13:41:00]url: /json_proto [13:41:00]query_string will be loaded in cgi processing [13:41:00]execute_cgi json_proto POST (null) [13:41:00]execute_cgi path=json_proto method=POST [13:41:00]POST find Content-Length [13:41:00]Host: 172.17.44.195:8080 [13:41:00]Content-Length: 675 [13:41:00]Content-Type: application/json [13:41:00] [13:41:00]POST finish read [13:41:00]Found Content-Length = 675 [13:41:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964685", "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" : 76.20, "quantity" : 8.800, "sum" : 670.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:00]execute_script... [13:41: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)1964685", "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" : 76.20, "quantity" : 8.800, "sum" : 670.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:00]POST & json_proto [13:41:00]process_json_proto [13:41:00]json parsed OK: [13:41:00]protocol is kg_v1.0 [13:41:00]action value=close_receipt [13:41:00]process_action close_receipt [13:41:00]cmd_close_receipt [13:41:00]MH_GetDate [13:41:00]Write to MH i2c: F0 00 00 6C 3A 95 [13:41:00]Write i2c OK [13:41:00]MH_I2C_Read... [13:41:00]Read from MH i2c: F0 [13:41:00]MH_I2C_Read... [13:41:00]Read from MH i2c: F0 09 00 [13:41:00]MH_I2C_Read... [13:41:00]Read from MH i2c: F0 09 00 6C 3A 00 70 AB 17 67 82 C9 CF 66 B7 [13:41:00]GetLastDocTimeStamp 1729604422 [13:41:00]current date 1729604464 [13:41:00]FM_GetShiftState [13:41:00]SAM_PROTO_GetShiftState [13:41:00]wFMCommunicate request_size=4 [13:41:00]MH_SAM_APDU [13:41:00]CAPDU: 80 13 01 00 [13:41:00]Write to MH i2c: E2 08 00 6D 3A 80 13 01 00 00 00 00 00 24 [13:41:00]Write i2c OK [13:41:00]MH_I2C_Read... [13:41:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:00]Read from MH i2c: E2 [13:41:00]MH_I2C_Read... [13:41:00]Read from MH i2c: E2 0E 00 [13:41:00]MH_I2C_Read... [13:41:00]Read from MH i2c: E2 0E 00 6D 3A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 EB [13:41:00]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:41:00]wFMCommunicate OK [13:41:00]SAM_PROTO_GetShiftState done [13:41:00]FM_GetShiftState done [13:41:00]opened in 1729555538 [13:41:00]opened+sec_in_day 1729641938 [13:41:00]quantity*price = 67056 [13:41:00]sum+1 = 67057 [13:41:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.21 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 193 22.10.2024 13:41 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228229 ФПД: 214056962445366 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134104&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228229&fm=214056962445366&tin=02508201610067®Number=0000000000091685&sum=67000 [13:41:01]StoreToDocumentArchive [13:41:01]shift 535 fd 228229 [13:41:01]save to /storage/0535/doc_00228229 [13:41:01]save last doc name /storage/0535/doc_00228229 to /storage/kkm_last_doc_name [13:41:01]save OK [13:41:01]Clear old archive folders... [13:41:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:41:01]tlvbuf is 008D85C0 [13:41:01]SAM_PROTO_ClearQueue [13:41:01]wFMCommunicate request_size=4 [13:41:01]MH_SAM_APDU [13:41:01]CAPDU: 80 09 00 00 [13:41:01]Write to MH i2c: E2 08 00 7A 3A 80 09 00 00 00 00 00 00 26 [13:41:01]Write i2c OK [13:41:01]MH_I2C_Read... [13:41:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:01]Read from MH i2c: E2 [13:41:01]MH_I2C_Read... [13:41:01]Read from MH i2c: E2 03 00 [13:41:01]MH_I2C_Read... [13:41:01]Read from MH i2c: E2 03 00 7A 3A 00 90 00 28 [13:41:01]RAPDU: 90 00 [13:41:01]wFMCommunicate OK [13:41:01]SAM_PROTO_ClearQueue done [13:41:01]KKMCreateOFDPacket [13:41:01]OFDProtocolAddRootSTLVToBuf [13:41:01]FM_MakeSignedData [13:41:01]FM_MakeSignedData [13:41:01]SAM_PROTO_SignData [13:41:01]wFMCommunicate request_size=4 [13:41:01]MH_SAM_APDU [13:41:01]CAPDU: 80 0D 01 02 [13:41:01]Write to MH i2c: E2 08 00 7B 3A 80 0D 01 02 00 00 00 00 2E [13:41:01]Write i2c OK [13:41:01]MH_I2C_Read... [13:41:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:01]Read from MH i2c: E2 [13:41:01]MH_I2C_Read... [13:41:01]Read from MH i2c: E2 03 00 [13:41:01]MH_I2C_Read... [13:41:01]Read from MH i2c: E2 03 00 7B 3A 00 90 00 29 [13:41:01]RAPDU: 90 00 [13:41:01]wFMCommunicate OK [13:41:01]wFMCommunicate request_size=255 [13:41:01]MH_SAM_APDU [13:41:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 22 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F0 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 70 AB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 85 7B 03 00 35 04 06 00 C2 AF 05 35 [13:41:01]Write to MH i2c: E2 02 01 7C 3A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 22 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F0 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 70 AB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 85 7B 03 00 35 04 06 00 C2 AF 05 35 00 00 C8 [13:41:01]Write i2c OK [13:41:01]MH_I2C_Read... [13:41:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:01]Read from MH i2c: E2 [13:41:01]MH_I2C_Read... [13:41:01]Read from MH i2c: E2 03 00 [13:41:01]MH_I2C_Read... [13:41:01]Read from MH i2c: E2 03 00 7C 3A 00 90 00 2A [13:41:01]RAPDU: 90 00 [13:41:01]wFMCommunicate OK [13:41:01]wFMCommunicate request_size=7 [13:41:01]MH_SAM_APDU [13:41:01]CAPDU: 80 0D 02 02 02 50 36 [13:41:01]Write to MH i2c: E2 0A 00 7D 3A 80 0D 02 02 02 00 50 36 00 00 BB [13:41:01]Write i2c OK [13:41:01]MH_I2C_Read... [13:41:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:01]Read from MH i2c: E2 [13:41:01]MH_I2C_Read... [13:41:01]Read from MH i2c: E2 03 00 [13:41:01]MH_I2C_Read... [13:41:01]Read from MH i2c: E2 03 00 7D 3A 00 90 00 2B [13:41:01]RAPDU: 90 00 [13:41:01]wFMCommunicate OK [13:41:01]wFMCommunicate request_size=4 [13:41:01]MH_SAM_APDU [13:41:01]CAPDU: 80 0D 03 02 [13:41:01]Write to MH i2c: E2 08 00 7E 3A 80 0D 03 02 00 00 00 00 33 [13:41:01]Write i2c OK [13:41:01]MH_I2C_Read... [13:41:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:01]Read from MH i2c: E2 [13:41:01]MH_I2C_Read... [13:41:01]Read from MH i2c: E2 0B 00 [13:41:01]MH_I2C_Read... [13:41:01]Read from MH i2c: E2 0B 00 7E 3A 00 01 13 F3 8A 01 EB 61 11 90 00 23 [13:41:01]RAPDU: 01 13 F3 8A 01 EB 61 11 90 00 [13:41:01]wFMCommunicate OK [13:41:01]SAM_PROTO_SignData done [13:41:01]FM_MakeSignedData done [13:41:01]CreateOFDProtocolMessage [13:41:01]wFMCommunicate request_size=4 [13:41:01]MH_SAM_APDU [13:41:01]CAPDU: 80 11 00 00 [13:41:01]Write to MH i2c: E2 08 00 7F 3A 80 11 00 00 00 00 00 00 33 [13:41:01]Write i2c OK [13:41:01]MH_I2C_Read... [13:41:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:01]Read from MH i2c: E2 [13:41:01]MH_I2C_Read... [13:41:01]Read from MH i2c: E2 17 00 [13:41:01]MH_I2C_Read... [13:41:01]Read from MH i2c: E2 17 00 7F 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8A [13:41:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:41:01]wFMCommunicate OK [13:41:01]CreateOFDProtocolMessage done [13:41:01]OFDSenderStorePacket 228229 [13:41:01]StoreOFDPacket docnum=228229 [13:41:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 37 85 04 01 FB AD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 22 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F0 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 70 AB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 85 7B 03 00 35 04 06 00 C2 AF 05 35 50 36 01 13 F3 8A 01 EB 61 11 [13:41:01]CheckFolder [13:41:01]dirname=/storage/ofd_packets [13:41:01]CheckFolder done [13:41:01]ProducePacketName [13:41:01]name=ofd_packets/00228229 [13:41:01]NVStorageSaveData ofd_packets/00228229 [13:41:01]File name is /storage/ofd_packets/00228229 [13:41:01]Write 298 bytes [13:41:01]NVStorageSaveData done [13:41:01]OFDSenderStorePacket done [13:41:01]KKMCreateOFDPacket done [13:41:01]NVStorageSaveData kkm_last_timestamp [13:41:01]File name is /storage/kkm_last_timestamp [13:41:01]Write 4 bytes [13:41:01]NVStorageSaveData done [13:41:01]ExternCall_PrintAddStr [13:41:01]wPrintStart [13:41:01]Write to MH i2c: 01 00 00 80 3A BA [13:41:01]Write i2c OK [13:41:01]MH_I2C_Read... [13:41:01]Read from MH i2c: 01 [13:41:01]MH_I2C_Read... [13:41:01]Read from MH i2c: 01 07 00 [13:41:01]MH_I2C_Read... [13:41:01]Read from MH i2c: 01 07 00 80 3A 00 00 00 00 00 FF 0F CF [13:41:01]RasterBufferAndPrint [13:41:01]line Счет N : (1)1964685 [13:41:01]line ИНН: 02508201610067 [13:41:01]line Контрольно-Кассовый Чек [13:41:01]line ПРОДАЖА [13:41:01]line ТРК (МРК, ГНК) : 21 [13:41:01]line Товар: 2710194210 [13:41:01]line ДТ-К-5 [13:41:01]line 8.800 * 76.20 [13:41:01]line = 670.56 [13:41:01]line НДС 12% НСП 1% [13:41:01]line > о реализуемом товаре [13:41:01]line ОКРУГЛЕНИЕ: -0.56 [13:41:01]line ИТОГО: 670.00 [13:41:01]line Внесено: 670.00 [13:41:01]line СДАЧА: 0.00 [13:41:01]line НСП 1% : 5.93 [13:41:01]line НДС 12% : 71.21 [13:41:01]line Наличными: 670.00 [13:41:01]line Безнал.: 0.00 [13:41:01]line Место: АЗС № 133 "Партнер Нефть" [13:41:01]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:41:01]line СНО: Общий режим [13:41:01]line Чек 193 22.10.2024 13:41 [13:41:01]line Смена: 535 ФФД: 1.0 [13:41:01]line ЗНМ: 0300000091 [13:41:01]line РНМ: 0000000000091685 [13:41:01]line Версия ККМ: 001 [13:41:01]line ФМ: 0000000000871839 [13:41:01]line ФД: 228229 [13:41:01]line ФПД: 214056962445366 [13:41:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134104&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228229&fm=214056962445366&tin=02508201610067®Number=0000000000091685&sum=67000 [13:41:02]OFD Sender: Processing packet 228229 [packets to send 38, broken 37] [13:41:02]ProducePacketName [13:41:02]name=ofd_packets/00228229 [13:41:02]OFD Sender: To server: pG, [13:41:02]CommunicateWithHost lk.salyk.kg:30040 [13:41:02]ConnectInit lk.salyk.kg [13:41:02]written 0, free lines is 4095 [13:41:02]Connected sock=10 [13:41:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 37 85 04 01 FB AD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 22 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F0 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 70 AB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 85 7B 03 00 35 04 06 00 C2 AF 05 35 50 36 01 13 F3 8A 01 EB 61 11 [13:41:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 D1 C9 47 00 70 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 85 7B 03 00 F4 03 04 00 68 56 17 67 B6 04 01 00 00 AE 58 57 A0 8D AD E7 D2 [13:41:02]CommunicateWithHost err = 0 [13:41:02]CheckOFDResponse [13:41:02]1017 (14) - 77093643461234 [13:41:02]1041 (16) - 0000000000871839 [13:41:02]1040 (4) - 228229 [13:41:02]1012 (4) - 22.10.2024 07:38 [13:41:02]1206 (1) - 0 [13:41:02]OFD Sender: Remove packet 228229 [13:41:02]ProducePacketName [13:41:02]name=ofd_packets/00228229 [13:41:02]NVStorageDeleteData [13:41:02]Write to MH i2c: 01 00 00 AA 3A E4 [13:41:02]Write i2c OK [13:41:02]MH_I2C_Read... [13:41:02]Read from MH i2c: 01 [13:41:02]MH_I2C_Read... [13:41:02]Read from MH i2c: 01 07 00 [13:41:02]MH_I2C_Read... [13:41:02]Read from MH i2c: 01 07 00 AA 3A 00 00 00 00 00 C4 0C BB [13:41:02]RasterBufferAndPrint [13:41:02]line [13:41:02]line [13:41:02]line [13:41:02]line [13:41:02]line [13:41:02]written 0, free lines is 3272 [13:41:02]MH_Cut [13:41:02]Write to MH i2c: D1 01 00 B1 3A 01 BD [13:41:02]Write i2c OK [13:41:02]MH_I2C_Read... [13:41:02]Read from MH i2c: D1 [13:41:02]MH_I2C_Read... [13:41:02]Read from MH i2c: D1 01 00 [13:41:02]MH_I2C_Read... [13:41:02]Read from MH i2c: D1 01 00 B1 3A 00 BC [13:41:02]Write to MH i2c: 01 00 00 B2 3A EC [13:41:02]Write i2c OK [13:41:02]MH_I2C_Read... [13:41:03]OFD Sender: No OFD packet to send [13:41:03]*** Cut start [13:41:03]*** Partial cut [13:41:03]*** CUTSNS_PIN = 1 [13:41:03]*** CUTSNS_PIN = 0 [13:41:03]*** Brake cut motor [13:41:04]Read from MH i2c: 01 [13:41:04]MH_I2C_Read... [13:41:04]*** Stop cut motor [13:41:04]*** Cut end [13:41:04]Read from MH i2c: 01 07 00 [13:41:04]MH_I2C_Read... [13:41:04]Read from MH i2c: 01 07 00 B2 3A 00 00 00 00 00 FF 0F 01 [13:41:04]process_action close_receipt done [13:41:04]requested_data is exist [13:41:04]produce_requested_data [13:41:04]requested_item fm.sn is exist - process it [13:41:04]wFMCommunicate request_size=4 [13:41:04]MH_SAM_APDU [13:41:04]CAPDU: 80 11 00 00 [13:41:04]Write to MH i2c: E2 08 00 B3 3A 80 11 00 00 00 00 00 00 67 [13:41:04]Write i2c OK [13:41:04]MH_I2C_Read... [13:41:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:04]Read from MH i2c: E2 [13:41:04]MH_I2C_Read... [13:41:04]Read from MH i2c: E2 17 00 [13:41:04]MH_I2C_Read... [13:41:04]Read from MH i2c: E2 17 00 B3 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BE [13:41:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:41:04]wFMCommunicate OK [13:41:04]requested_item fd.num is exist - process it [13:41:04]SAM_PROTO_GetFieldsCounters [13:41:04]wFMCommunicate request_size=4 [13:41:04]MH_SAM_APDU [13:41:04]CAPDU: 80 13 00 00 [13:41:04]Write to MH i2c: E2 08 00 B4 3A 80 13 00 00 00 00 00 00 6A [13:41:04]Write i2c OK [13:41:04]MH_I2C_Read... [13:41:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:04]Read from MH i2c: E2 [13:41:04]MH_I2C_Read... [13:41:04]Read from MH i2c: E2 62 00 [13:41:04]MH_I2C_Read... [13:41:04]Read from MH i2c: E2 62 00 B4 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 85 7B 03 00 0E 04 04 00 17 02 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 F2 [13:41:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 85 7B 03 00 0E 04 04 00 17 02 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 [13:41:04]wFMCommunicate OK [13:41:04]SAM_PROTO_GetFieldsCounters done [13:41:04]requested_item shift.num is exist - process it [13:41:04]requested_item shift.opened is exist - process it [13:41:04]req_shift_opened [13:41:04]FM_GetShiftState [13:41:04]SAM_PROTO_GetShiftState [13:41:04]wFMCommunicate request_size=4 [13:41:04]MH_SAM_APDU [13:41:04]CAPDU: 80 13 01 00 [13:41:04]Write to MH i2c: E2 08 00 B5 3A 80 13 01 00 00 00 00 00 6C [13:41:04]Write i2c OK [13:41:04]MH_I2C_Read... [13:41:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:04]Read from MH i2c: E2 [13:41:04]MH_I2C_Read... [13:41:04]Read from MH i2c: E2 0E 00 [13:41:04]MH_I2C_Read... [13:41:04]Read from MH i2c: E2 0E 00 B5 3A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 33 [13:41:04]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:41:04]wFMCommunicate OK [13:41:04]SAM_PROTO_GetShiftState done [13:41:04]FM_GetShiftState done [13:41:04]req_shift_opened done [13:41:04]requested_item shift.open_date is exist - process it [13:41:04]req_shift_open_date [13:41:04]req_shift_open_date done [13:41:04]produce_requested_data done [13:41:04]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228229,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:41:04]process_action_free close_receipt [13:41:04]json_value_free [13:41:04]json_value_free done [13:41:04]process_json_proto returns [13:41:04]Send response to host [13:41:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228229,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:41:04]free response buf [13:41:04]execute_script done [13:41:04]execute_script returns [13:41:04]free content buf [13:41:04]Sock 7.Close socket [13:41:04]Sock 7.Thread stoped [13:41:08]OFD Sender: No OFD packet to send [13:41:13]OFD Sender: No OFD packet to send [13:41:18]OFD Sender: No OFD packet to send [13:41:22]accept exits with 9 [13:41:22]New connection [13:41:22]New thread 3067137380 created [13:41:22]Thread 3066994020 joined [13:41:22]Waiting for new connection... [13:41:22] Sock 9.Parse request [13:41:22]Sock 9.Check first char [13:41:22]Sock 9.First char is OK [13:41:22]request: POST /json_proto HTTP/1.0 [13:41:22]Method: POST [13:41:22]URL: /json_proto [13:41:22]Method is POST - this is cgi request [13:41:22]url: /json_proto [13:41:22]query_string will be loaded in cgi processing [13:41:22]execute_cgi json_proto POST (null) [13:41:22]execute_cgi path=json_proto method=POST [13:41:22]POST find Content-Length [13:41:22]Host: 172.17.44.195:8080 [13:41:22]Content-Length: 844 [13:41:22]Content-Type: application/json [13:41:22] [13:41:22]POST finish read [13:41:22]Found Content-Length = 844 [13:41:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:22]execute_script... [13:41: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)1964684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:22]POST & json_proto [13:41:22]process_json_proto [13:41:22]json parsed OK: [13:41:22]protocol is kg_v1.0 [13:41:22]action value=close_receipt [13:41:22]process_action close_receipt [13:41:22]cmd_close_receipt [13:41:22]MH_GetDate [13:41:22]Write to MH i2c: F0 00 00 B6 3A DF [13:41:22]Write i2c OK [13:41:22]MH_I2C_Read... [13:41:22]Read from MH i2c: F0 [13:41:22]MH_I2C_Read... [13:41:22]Read from MH i2c: F0 09 00 [13:41:22]MH_I2C_Read... [13:41:22]Read from MH i2c: F0 09 00 B6 3A 00 86 AB 17 67 82 C9 CF 66 17 [13:41:22]GetLastDocTimeStamp 1729604464 [13:41:22]current date 1729604486 [13:41:22]FM_GetShiftState [13:41:22]SAM_PROTO_GetShiftState [13:41:22]wFMCommunicate request_size=4 [13:41:22]MH_SAM_APDU [13:41:22]CAPDU: 80 13 01 00 [13:41:22]Write to MH i2c: E2 08 00 B7 3A 80 13 01 00 00 00 00 00 6E [13:41:22]Write i2c OK [13:41:22]MH_I2C_Read... [13:41:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:22]Read from MH i2c: E2 [13:41:22]MH_I2C_Read... [13:41:22]Read from MH i2c: E2 0E 00 [13:41:22]MH_I2C_Read... [13:41:22]Read from MH i2c: E2 0E 00 B7 3A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 35 [13:41:22]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:41:22]wFMCommunicate OK [13:41:22]SAM_PROTO_GetShiftState done [13:41:22]FM_GetShiftState done [13:41:22]opened in 1729555538 [13:41:22]opened+sec_in_day 1729641938 [13:41:22]quantity*price = 100015 [13:41:22]sum+1 = 100017 [13:41:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 194 22.10.2024 13:41 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000871839 ФД: 228230 ФПД: 162328739121270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134127&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228230&fm=162328739121270&tin=02508201610067®Number=0000000000091685&sum=100016 [13:41:23]StoreToDocumentArchive [13:41:23]shift 535 fd 228230 [13:41:23]save to /storage/0535/doc_00228230 [13:41:23]save last doc name /storage/0535/doc_00228230 to /storage/kkm_last_doc_name [13:41:23]save OK [13:41:23]Clear old archive folders... [13:41:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:41:23]tlvbuf is B6F852E0 [13:41:23]SAM_PROTO_ClearQueue [13:41:23]wFMCommunicate request_size=4 [13:41:23]MH_SAM_APDU [13:41:23]CAPDU: 80 09 00 00 [13:41:23]Write to MH i2c: E2 08 00 C4 3A 80 09 00 00 00 00 00 00 70 [13:41:23]Write i2c OK [13:41:23]MH_I2C_Read... [13:41:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:23]Read from MH i2c: E2 [13:41:23]MH_I2C_Read... [13:41:23]Read from MH i2c: E2 03 00 [13:41:23]MH_I2C_Read... [13:41:23]Read from MH i2c: E2 03 00 C4 3A 00 90 00 72 [13:41:23]RAPDU: 90 00 [13:41:23]wFMCommunicate OK [13:41:23]SAM_PROTO_ClearQueue done [13:41:23]KKMCreateOFDPacket [13:41:23]OFDProtocolAddRootSTLVToBuf [13:41:23]FM_MakeSignedData [13:41:23]FM_MakeSignedData [13:41:23]SAM_PROTO_SignData [13:41:23]wFMCommunicate request_size=4 [13:41:23]MH_SAM_APDU [13:41:23]CAPDU: 80 0D 01 02 [13:41:23]Write to MH i2c: E2 08 00 C5 3A 80 0D 01 02 00 00 00 00 78 [13:41:23]Write i2c OK [13:41:23]MH_I2C_Read... [13:41:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:24]Read from MH i2c: E2 [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: E2 03 00 [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: E2 03 00 C5 3A 00 90 00 73 [13:41:24]RAPDU: 90 00 [13:41:24]wFMCommunicate OK [13:41:24]wFMCommunicate request_size=255 [13:41:24]MH_SAM_APDU [13:41:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 C2 00 00 00 F4 03 04 00 87 AB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 86 7B 03 00 35 04 06 00 93 [13:41:24]Write to MH i2c: E2 02 01 C6 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 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 C2 00 00 00 F4 03 04 00 87 AB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 86 7B 03 00 35 04 06 00 93 00 00 4B [13:41:24]Write i2c OK [13:41:24]MH_I2C_Read... [13:41:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:24]Read from MH i2c: E2 [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: E2 03 00 [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: E2 03 00 C6 3A 00 90 00 74 [13:41:24]RAPDU: 90 00 [13:41:24]wFMCommunicate OK [13:41:24]wFMCommunicate request_size=10 [13:41:24]MH_SAM_APDU [13:41:24]CAPDU: 80 0D 02 02 05 A3 1A D5 08 76 [13:41:24]Write to MH i2c: E2 0D 00 C7 3A 80 0D 02 02 05 00 A3 1A D5 08 76 00 00 95 [13:41:24]Write i2c OK [13:41:24]MH_I2C_Read... [13:41:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:24]Read from MH i2c: E2 [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: E2 03 00 [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: E2 03 00 C7 3A 00 90 00 75 [13:41:24]RAPDU: 90 00 [13:41:24]wFMCommunicate OK [13:41:24]wFMCommunicate request_size=4 [13:41:24]MH_SAM_APDU [13:41:24]CAPDU: 80 0D 03 02 [13:41:24]Write to MH i2c: E2 08 00 C8 3A 80 0D 03 02 00 00 00 00 7D [13:41:24]Write i2c OK [13:41:24]MH_I2C_Read... [13:41:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:24]Read from MH i2c: E2 [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: E2 0B 00 [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: E2 0B 00 C8 3A 00 B5 FA 81 CB 1D 3B 8A 67 90 00 C2 [13:41:24]RAPDU: B5 FA 81 CB 1D 3B 8A 67 90 00 [13:41:24]wFMCommunicate OK [13:41:24]SAM_PROTO_SignData done [13:41:24]FM_MakeSignedData done [13:41:24]CreateOFDProtocolMessage [13:41:24]wFMCommunicate request_size=4 [13:41:24]MH_SAM_APDU [13:41:24]CAPDU: 80 11 00 00 [13:41:24]Write to MH i2c: E2 08 00 C9 3A 80 11 00 00 00 00 00 00 7D [13:41:24]Write i2c OK [13:41:24]MH_I2C_Read... [13:41:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:24]Read from MH i2c: E2 [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: E2 17 00 [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: E2 17 00 C9 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D4 [13:41:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:41:24]wFMCommunicate OK [13:41:24]CreateOFDProtocolMessage done [13:41:24]OFDSenderStorePacket 228230 [13:41:24]StoreOFDPacket docnum=228230 [13:41:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 05 3C 07 01 15 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 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 C2 00 00 00 F4 03 04 00 87 AB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 86 7B 03 00 35 04 06 00 93 A3 1A D5 08 76 B5 FA 81 CB 1D 3B 8A 67 [13:41:24]CheckFolder [13:41:24]dirname=/storage/ofd_packets [13:41:24]CheckFolder done [13:41:24]ProducePacketName [13:41:24]name=ofd_packets/00228230 [13:41:24]NVStorageSaveData ofd_packets/00228230 [13:41:24]File name is /storage/ofd_packets/00228230 [13:41:24]Write 301 bytes [13:41:24]NVStorageSaveData done [13:41:24]OFDSenderStorePacket done [13:41:24]KKMCreateOFDPacket done [13:41:24]NVStorageSaveData kkm_last_timestamp [13:41:24]File name is /storage/kkm_last_timestamp [13:41:24]Write 4 bytes [13:41:24]NVStorageSaveData done [13:41:24]ExternCall_PrintAddStr [13:41:24]wPrintStart [13:41:24]Write to MH i2c: 01 00 00 CA 3A 04 [13:41:24]Write i2c OK [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: 01 [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: 01 07 00 [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: 01 07 00 CA 3A 00 00 00 00 00 FF 0F 19 [13:41:24]RasterBufferAndPrint [13:41:24]line Счет N : (1)1964684 [13:41:24]line ИНН: 02508201610067 [13:41:24]line Контрольно-Кассовый Чек [13:41:24]line ПРОДАЖА [13:41:24]line ТРК (МРК, ГНК) : 43 [13:41:24]line Товар: 2710124130 [13:41:24]line Аи-92-К-5 [13:41:24]line 14.950 * 66.90 [13:41:24]line = 1000.16 [13:41:24]line НДС 12% НСП 1% [13:41:24]line > о реализуемом товаре [13:41:24]line ИТОГО: 1000.16 [13:41:24]line НСП 1% : 8.85 [13:41:24]line НДС 12% : 106.21 [13:41:24]line Наличными: 0.00 [13:41:24]line Безнал.: 1000.16 [13:41:24]line Место: АЗС № 133 "Партнер Нефть" [13:41:24]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:41:24]line СНО: Общий режим [13:41:24]line Чек 194 22.10.2024 13:41 [13:41:24]line Смена: 535 ФФД: 1.0 [13:41:24]line ЗНМ: 0300000091 [13:41:24]line РНМ: 0000000000091685 [13:41:24]line Версия ККМ: 001 [13:41:24]line Платежная система: АКБ Кыргызстан [13:41:24]line ФМ: 0000000000871839 [13:41:24]line ФД: 228230 [13:41:24]line ФПД: 162328739121270 [13:41:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134127&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228230&fm=162328739121270&tin=02508201610067®Number=0000000000091685&sum=100016 [13:41:24]OFD Sender: Processing packet 228230 [packets to send 38, broken 37] [13:41:24]ProducePacketName [13:41:24]name=ofd_packets/00228230 [13:41:24]OFD Sender: To server: pG, [13:41:24]CommunicateWithHost lk.salyk.kg:30040 [13:41:24]ConnectInit lk.salyk.kg [13:41:24]written 0, free lines is 4095 [13:41:24]Connected sock=10 [13:41:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 05 3C 07 01 15 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 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 C2 00 00 00 F4 03 04 00 87 AB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 86 7B 03 00 35 04 06 00 93 A3 1A D5 08 76 B5 FA 81 CB 1D 3B 8A 67 [13:41:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 74 47 47 00 A3 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 86 7B 03 00 F4 03 04 00 7F 56 17 67 B6 04 01 00 00 96 22 61 E4 CA 39 98 D7 [13:41:25]CommunicateWithHost err = 0 [13:41:25]CheckOFDResponse [13:41:25]1017 (14) - 77093643461234 [13:41:25]1041 (16) - 0000000000871839 [13:41:25]1040 (4) - 228230 [13:41:25]1012 (4) - 22.10.2024 07:38 [13:41:25]1206 (1) - 0 [13:41:25]OFD Sender: Remove packet 228230 [13:41:25]ProducePacketName [13:41:25]name=ofd_packets/00228230 [13:41:25]NVStorageDeleteData [13:41:25]Write to MH i2c: 01 00 00 F3 3A 2D [13:41:25]Write i2c OK [13:41:25]MH_I2C_Read... [13:41:25]Read from MH i2c: 01 [13:41:25]MH_I2C_Read... [13:41:25]Read from MH i2c: 01 07 00 [13:41:25]MH_I2C_Read... [13:41:25]Read from MH i2c: 01 07 00 F3 3A 00 00 00 00 00 DD 0C 1D [13:41:25]RasterBufferAndPrint [13:41:25]line [13:41:25]line [13:41:25]line [13:41:25]line [13:41:25]line [13:41:25]written 0, free lines is 3299 [13:41:25]MH_Cut [13:41:25]Write to MH i2c: D1 01 00 FA 3A 01 06 [13:41:25]Write i2c OK [13:41:25]MH_I2C_Read... [13:41:25]Read from MH i2c: D1 [13:41:25]MH_I2C_Read... [13:41:25]Read from MH i2c: D1 01 00 [13:41:25]MH_I2C_Read... [13:41:25]Read from MH i2c: D1 01 00 FA 3A 00 05 [13:41:25]Write to MH i2c: 01 00 00 FB 3A 35 [13:41:25]Write i2c OK [13:41:25]MH_I2C_Read... [13:41:25]OFD Sender: No OFD packet to send [13:41:26]*** Cut start [13:41:26]*** Partial cut [13:41:26]*** CUTSNS_PIN = 1 [13:41:26]*** CUTSNS_PIN = 0 [13:41:26]*** Brake cut motor [13:41:26]Read from MH i2c: 01 [13:41:26]MH_I2C_Read... [13:41:26]*** Stop cut motor [13:41:26]*** Cut end [13:41:26]Read from MH i2c: 01 07 00 [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: 01 07 00 FB 3A 00 00 00 00 00 FF 0F 4A [13:41:26]process_action close_receipt done [13:41:26]requested_data is exist [13:41:26]produce_requested_data [13:41:26]requested_item fm.sn is exist - process it [13:41:26]wFMCommunicate request_size=4 [13:41:26]MH_SAM_APDU [13:41:26]CAPDU: 80 11 00 00 [13:41:26]Write to MH i2c: E2 08 00 FC 3A 80 11 00 00 00 00 00 00 B0 [13:41:26]Write i2c OK [13:41:26]MH_I2C_Read... [13:41:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:26]Read from MH i2c: E2 [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: E2 17 00 [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: E2 17 00 FC 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 07 [13:41:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:41:26]wFMCommunicate OK [13:41:26]requested_item fd.num is exist - process it [13:41:26]SAM_PROTO_GetFieldsCounters [13:41:26]wFMCommunicate request_size=4 [13:41:26]MH_SAM_APDU [13:41:26]CAPDU: 80 13 00 00 [13:41:26]Write to MH i2c: E2 08 00 FD 3A 80 13 00 00 00 00 00 00 B3 [13:41:26]Write i2c OK [13:41:26]MH_I2C_Read... [13:41:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:26]Read from MH i2c: E2 [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: E2 62 00 [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: E2 62 00 FD 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 86 7B 03 00 0E 04 04 00 17 02 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 3F [13:41:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 86 7B 03 00 0E 04 04 00 17 02 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 [13:41:26]wFMCommunicate OK [13:41:26]SAM_PROTO_GetFieldsCounters done [13:41:26]requested_item shift.num is exist - process it [13:41:26]requested_item shift.opened is exist - process it [13:41:26]req_shift_opened [13:41:26]FM_GetShiftState [13:41:26]SAM_PROTO_GetShiftState [13:41:26]wFMCommunicate request_size=4 [13:41:26]MH_SAM_APDU [13:41:26]CAPDU: 80 13 01 00 [13:41:26]Write to MH i2c: E2 08 00 FE 3A 80 13 01 00 00 00 00 00 B5 [13:41:26]Write i2c OK [13:41:26]MH_I2C_Read... [13:41:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:26]Read from MH i2c: E2 [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: E2 0E 00 [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: E2 0E 00 FE 3A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 7C [13:41:26]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:41:26]wFMCommunicate OK [13:41:26]SAM_PROTO_GetShiftState done [13:41:26]FM_GetShiftState done [13:41:26]req_shift_opened done [13:41:26]requested_item shift.open_date is exist - process it [13:41:26]req_shift_open_date [13:41:26]req_shift_open_date done [13:41:26]produce_requested_data done [13:41:26]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228230,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:41:26]process_action_free close_receipt [13:41:26]json_value_free [13:41:26]json_value_free done [13:41:26]process_json_proto returns [13:41:26]Send response to host [13:41:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228230,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:41:26]free response buf [13:41:26]execute_script done [13:41:26]execute_script returns [13:41:26]free content buf [13:41:26]Sock 9.Close socket [13:41:26]Sock 9.Thread stoped [13:41:30]OFD Sender: No OFD packet to send [13:41:35]OFD Sender: No OFD packet to send [13:41:38]accept exits with 7 [13:41:38]New connection [13:41:38]New thread 3066994020 created [13:41:38]Thread 3067137380 joined [13:41:38]Waiting for new connection... [13:41:38] Sock 7.Parse request [13:41:38]Sock 7.Check first char [13:41:38]Sock 7.First char is OK [13:41:38]request: POST /json_proto HTTP/1.0 [13:41:38]Method: POST [13:41:38]URL: /json_proto [13:41:38]Method is POST - this is cgi request [13:41:38]url: /json_proto [13:41:38]query_string will be loaded in cgi processing [13:41:38]execute_cgi json_proto POST (null) [13:41:38]execute_cgi path=json_proto method=POST [13:41:38]POST find Content-Length [13:41:38]Host: 172.17.44.195:8080 [13:41:38]Content-Length: 659 [13:41:38]Content-Type: application/json [13:41:38] [13:41:38]POST finish read [13:41:38]Found Content-Length = 659 [13:41:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 4.390, "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:41:38]execute_script... [13:41: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)1964686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 4.390, "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:41:38]POST & json_proto [13:41:38]process_json_proto [13:41:38]json parsed OK: [13:41:38]protocol is kg_v1.0 [13:41:38]action value=close_receipt [13:41:38]process_action close_receipt [13:41:38]cmd_close_receipt [13:41:38]MH_GetDate [13:41:38]Write to MH i2c: F0 00 00 FF 3A 28 [13:41:38]Write i2c OK [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: F0 [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: F0 09 00 [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: F0 09 00 FF 3A 00 97 AB 17 67 82 C9 CF 66 71 [13:41:38]GetLastDocTimeStamp 1729604487 [13:41:38]current date 1729604503 [13:41:38]FM_GetShiftState [13:41:38]SAM_PROTO_GetShiftState [13:41:38]wFMCommunicate request_size=4 [13:41:38]MH_SAM_APDU [13:41:38]CAPDU: 80 13 01 00 [13:41:38]Write to MH i2c: E2 08 00 00 3B 80 13 01 00 00 00 00 00 B8 [13:41:38]Write i2c OK [13:41:38]MH_I2C_Read... [13:41:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:38]Read from MH i2c: E2 [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: E2 0E 00 [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: E2 0E 00 00 3B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 7F [13:41:38]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:41:38]wFMCommunicate OK [13:41:38]SAM_PROTO_GetShiftState done [13:41:38]FM_GetShiftState done [13:41:38]opened in 1729555538 [13:41:38]opened+sec_in_day 1729641938 [13:41:38]quantity*price = 30027 [13:41:38]sum+1 = 30029 [13:41:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 195 22.10.2024 13:41 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228231 ФПД: 116987125690142 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134143&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228231&fm=116987125690142&tin=02508201610067®Number=0000000000091685&sum=30000 [13:41:40]StoreToDocumentArchive [13:41:40]shift 535 fd 228231 [13:41:40]save to /storage/0535/doc_00228231 [13:41:40]save last doc name /storage/0535/doc_00228231 to /storage/kkm_last_doc_name [13:41:40]save OK [13:41:40]Clear old archive folders... [13:41:40]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:41:40]tlvbuf is 008AF030 [13:41:40]SAM_PROTO_ClearQueue [13:41:40]wFMCommunicate request_size=4 [13:41:40]MH_SAM_APDU [13:41:40]CAPDU: 80 09 00 00 [13:41:40]Write to MH i2c: E2 08 00 0D 3B 80 09 00 00 00 00 00 00 BA [13:41:40]Write i2c OK [13:41:40]MH_I2C_Read... [13:41:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:40]Read from MH i2c: E2 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 03 00 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 03 00 0D 3B 00 90 00 BC [13:41:40]RAPDU: 90 00 [13:41:40]wFMCommunicate OK [13:41:40]SAM_PROTO_ClearQueue done [13:41:40]KKMCreateOFDPacket [13:41:40]OFDProtocolAddRootSTLVToBuf [13:41:40]FM_MakeSignedData [13:41:40]FM_MakeSignedData [13:41:40]SAM_PROTO_SignData [13:41:40]wFMCommunicate request_size=4 [13:41:40]MH_SAM_APDU [13:41:40]CAPDU: 80 0D 01 02 [13:41:40]Write to MH i2c: E2 08 00 0E 3B 80 0D 01 02 00 00 00 00 C2 [13:41:40]Write i2c OK [13:41:40]MH_I2C_Read... [13:41:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:40]Read from MH i2c: E2 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 03 00 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 03 00 0E 3B 00 90 00 BD [13:41:40]RAPDU: 90 00 [13:41:40]wFMCommunicate OK [13:41:40]wFMCommunicate request_size=253 [13:41:40]MH_SAM_APDU [13:41:40]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 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 97 AB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 87 7B 03 00 35 04 06 00 6A 66 30 11 EF 1E [13:41:40]Write to MH i2c: E2 00 01 0F 3B 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 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 97 AB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 87 7B 03 00 35 04 06 00 6A 66 30 11 EF 1E 00 00 E1 [13:41:40]Write i2c OK [13:41:40]MH_I2C_Read... [13:41:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:40]Read from MH i2c: E2 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 03 00 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 03 00 0F 3B 00 90 00 BE [13:41:40]RAPDU: 90 00 [13:41:40]wFMCommunicate OK [13:41:40]wFMCommunicate request_size=4 [13:41:40]MH_SAM_APDU [13:41:40]CAPDU: 80 0D 03 02 [13:41:40]Write to MH i2c: E2 08 00 10 3B 80 0D 03 02 00 00 00 00 C6 [13:41:40]Write i2c OK [13:41:40]MH_I2C_Read... [13:41:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:40]Read from MH i2c: E2 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 0B 00 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 0B 00 10 3B 00 38 FF DF 7E 74 EE 65 58 90 00 7A [13:41:40]RAPDU: 38 FF DF 7E 74 EE 65 58 90 00 [13:41:40]wFMCommunicate OK [13:41:40]SAM_PROTO_SignData done [13:41:40]FM_MakeSignedData done [13:41:40]CreateOFDProtocolMessage [13:41:40]wFMCommunicate request_size=4 [13:41:40]MH_SAM_APDU [13:41:40]CAPDU: 80 11 00 00 [13:41:40]Write to MH i2c: E2 08 00 11 3B 80 11 00 00 00 00 00 00 C6 [13:41:40]Write i2c OK [13:41:40]MH_I2C_Read... [13:41:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:40]Read from MH i2c: E2 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 17 00 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 17 00 11 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1D [13:41:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:41:40]wFMCommunicate OK [13:41:40]CreateOFDProtocolMessage done [13:41:40]OFDSenderStorePacket 228231 [13:41:40]StoreOFDPacket docnum=228231 [13:41:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 07 6A 00 01 7A EB 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 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 97 AB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 87 7B 03 00 35 04 06 00 6A 66 30 11 EF 1E 38 FF DF 7E 74 EE 65 58 [13:41:40]CheckFolder [13:41:40]dirname=/storage/ofd_packets [13:41:40]CheckFolder done [13:41:40]ProducePacketName [13:41:40]name=ofd_packets/00228231 [13:41:40]NVStorageSaveData ofd_packets/00228231 [13:41:40]File name is /storage/ofd_packets/00228231 [13:41:40]Write 294 bytes [13:41:40]NVStorageSaveData done [13:41:40]OFDSenderStorePacket done [13:41:40]KKMCreateOFDPacket done [13:41:40]NVStorageSaveData kkm_last_timestamp [13:41:40]File name is /storage/kkm_last_timestamp [13:41:40]Write 4 bytes [13:41:40]NVStorageSaveData done [13:41:40]ExternCall_PrintAddStr [13:41:40]wPrintStart [13:41:40]Write to MH i2c: 01 00 00 12 3B 4D [13:41:40]Write i2c OK [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: 01 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: 01 07 00 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: 01 07 00 12 3B 00 00 00 00 00 FF 0F 62 [13:41:40]RasterBufferAndPrint [13:41:40]line Счет N : (1)1964686 [13:41:40]line ИНН: 02508201610067 [13:41:40]line Контрольно-Кассовый Чек [13:41:40]line ПРОДАЖА [13:41:40]line ТРК (МРК, ГНК) : 32 [13:41:40]line Товар: 2710124130 [13:41:40]line SU-92 [13:41:40]line 4.390 * 68.40 [13:41:40]line = 300.28 [13:41:40]line НДС 12% НСП 1% [13:41:40]line > о реализуемом товаре [13:41:40]line ОКРУГЛЕНИЕ: -0.28 [13:41:40]line ИТОГО: 300.00 [13:41:40]line Внесено: 300.00 [13:41:40]line СДАЧА: 0.00 [13:41:40]line НСП 1% : 2.66 [13:41:40]line НДС 12% : 31.89 [13:41:40]line Наличными: 300.00 [13:41:40]line Безнал.: 0.00 [13:41:40]line Место: АЗС № 133 "Партнер Нефть" [13:41:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:41:40]line СНО: Общий режим [13:41:40]line Чек 195 22.10.2024 13:41 [13:41:40]line Смена: 535 ФФД: 1.0 [13:41:40]line ЗНМ: 0300000091 [13:41:40]line РНМ: 0000000000091685 [13:41:40]line Версия ККМ: 001 [13:41:40]line ФМ: 0000000000871839 [13:41:40]line ФД: 228231 [13:41:40]line ФПД: 116987125690142 [13:41:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134143&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228231&fm=116987125690142&tin=02508201610067®Number=0000000000091685&sum=30000 [13:41:40]OFD Sender: Processing packet 228231 [packets to send 38, broken 37] [13:41:40]ProducePacketName [13:41:40]name=ofd_packets/00228231 [13:41:40]OFD Sender: To server: pG, [13:41:40]CommunicateWithHost lk.salyk.kg:30040 [13:41:40]ConnectInit lk.salyk.kg [13:41:40]written 0, free lines is 4095 [13:41:40]Connected sock=10 [13:41:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 07 6A 00 01 7A EB 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 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 97 AB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 87 7B 03 00 35 04 06 00 6A 66 30 11 EF 1E 38 FF DF 7E 74 EE 65 58 [13:41:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 93 A9 47 00 1E 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 87 7B 03 00 F4 03 04 00 8F 56 17 67 B6 04 01 00 00 1A 81 73 EC B9 16 A5 7E [13:41:41]CommunicateWithHost err = 0 [13:41:41]CheckOFDResponse [13:41:41]1017 (14) - 77093643461234 [13:41:41]1041 (16) - 0000000000871839 [13:41:41]1040 (4) - 228231 [13:41:41]1012 (4) - 22.10.2024 07:38 [13:41:41]1206 (1) - 0 [13:41:41]OFD Sender: Remove packet 228231 [13:41:41]ProducePacketName [13:41:41]name=ofd_packets/00228231 [13:41:41]NVStorageDeleteData [13:41:41]Write to MH i2c: 01 00 00 3C 3B 77 [13:41:41]Write i2c OK [13:41:41]MH_I2C_Read... [13:41:41]Read from MH i2c: 01 [13:41:41]MH_I2C_Read... [13:41:41]Read from MH i2c: 01 07 00 [13:41:41]MH_I2C_Read... [13:41:41]Read from MH i2c: 01 07 00 3C 3B 00 00 00 00 00 C8 0C 52 [13:41:41]RasterBufferAndPrint [13:41:41]line [13:41:41]line [13:41:41]line [13:41:41]line [13:41:41]line [13:41:41]written 0, free lines is 3278 [13:41:41]MH_Cut [13:41:41]Write to MH i2c: D1 01 00 43 3B 01 50 [13:41:41]Write i2c OK [13:41:41]MH_I2C_Read... [13:41:41]Read from MH i2c: D1 [13:41:41]MH_I2C_Read... [13:41:41]Read from MH i2c: D1 01 00 [13:41:41]MH_I2C_Read... [13:41:41]Read from MH i2c: D1 01 00 43 3B 00 4F [13:41:41]Write to MH i2c: 01 00 00 44 3B 7F [13:41:41]Write i2c OK [13:41:41]MH_I2C_Read... [13:41:41]OFD Sender: No OFD packet to send [13:41:42]*** Cut start [13:41:42]*** Partial cut [13:41:42]*** CUTSNS_PIN = 1 [13:41:42]*** CUTSNS_PIN = 0 [13:41:42]*** Brake cut motor [13:41:42]Read from MH i2c: 01 [13:41:42]MH_I2C_Read... [13:41:42]*** Stop cut motor [13:41:42]*** Cut end [13:41:42]Read from MH i2c: 01 07 00 [13:41:42]MH_I2C_Read... [13:41:42]Read from MH i2c: 01 07 00 44 3B 00 00 00 00 00 FF 0F 94 [13:41:42]process_action close_receipt done [13:41:42]requested_data is exist [13:41:42]produce_requested_data [13:41:42]requested_item fm.sn is exist - process it [13:41:42]wFMCommunicate request_size=4 [13:41:42]MH_SAM_APDU [13:41:42]CAPDU: 80 11 00 00 [13:41:42]Write to MH i2c: E2 08 00 45 3B 80 11 00 00 00 00 00 00 FA [13:41:42]Write i2c OK [13:41:42]MH_I2C_Read... [13:41:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:42]Read from MH i2c: E2 [13:41:42]MH_I2C_Read... [13:41:42]Read from MH i2c: E2 17 00 [13:41:42]MH_I2C_Read... [13:41:42]Read from MH i2c: E2 17 00 45 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 51 [13:41:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:41:42]wFMCommunicate OK [13:41:42]requested_item fd.num is exist - process it [13:41:42]SAM_PROTO_GetFieldsCounters [13:41:42]wFMCommunicate request_size=4 [13:41:42]MH_SAM_APDU [13:41:42]CAPDU: 80 13 00 00 [13:41:42]Write to MH i2c: E2 08 00 46 3B 80 13 00 00 00 00 00 00 FD [13:41:42]Write i2c OK [13:41:42]MH_I2C_Read... [13:41:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:42]Read from MH i2c: E2 [13:41:42]MH_I2C_Read... [13:41:42]Read from MH i2c: E2 62 00 [13:41:42]MH_I2C_Read... [13:41:42]Read from MH i2c: E2 62 00 46 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 87 7B 03 00 0E 04 04 00 17 02 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 8D [13:41:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 87 7B 03 00 0E 04 04 00 17 02 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 [13:41:43]wFMCommunicate OK [13:41:43]SAM_PROTO_GetFieldsCounters done [13:41:43]requested_item shift.num is exist - process it [13:41:43]requested_item shift.opened is exist - process it [13:41:43]req_shift_opened [13:41:43]FM_GetShiftState [13:41:43]SAM_PROTO_GetShiftState [13:41:43]wFMCommunicate request_size=4 [13:41:43]MH_SAM_APDU [13:41:43]CAPDU: 80 13 01 00 [13:41:43]Write to MH i2c: E2 08 00 47 3B 80 13 01 00 00 00 00 00 FF [13:41:43]Write i2c OK [13:41:43]MH_I2C_Read... [13:41:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:43]Read from MH i2c: E2 [13:41:43]MH_I2C_Read... [13:41:43]Read from MH i2c: E2 0E 00 [13:41:43]MH_I2C_Read... [13:41:43]Read from MH i2c: E2 0E 00 47 3B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 C6 [13:41:43]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:41:43]wFMCommunicate OK [13:41:43]SAM_PROTO_GetShiftState done [13:41:43]FM_GetShiftState done [13:41:43]req_shift_opened done [13:41:43]requested_item shift.open_date is exist - process it [13:41:43]req_shift_open_date [13:41:43]req_shift_open_date done [13:41:43]produce_requested_data done [13:41:43]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228231,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:41:43]process_action_free close_receipt [13:41:43]json_value_free [13:41:43]json_value_free done [13:41:43]process_json_proto returns [13:41:43]Send response to host [13:41:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228231,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:41:43]free response buf [13:41:43]execute_script done [13:41:43]execute_script returns [13:41:43]free content buf [13:41:43]Sock 7.Close socket [13:41:43]Sock 7.Thread stoped [13:41:46]OFD Sender: No OFD packet to send [13:41:51]OFD Sender: No OFD packet to send [13:41:56]OFD Sender: No OFD packet to send [13:42:01]OFD Sender: No OFD packet to send [13:42:06]OFD Sender: No OFD packet to send [13:42:11]OFD Sender: No OFD packet to send [13:42:16]OFD Sender: No OFD packet to send [13:42:21]OFD Sender: No OFD packet to send [13:42:26]OFD Sender: No OFD packet to send [13:42:29]accept exits with 9 [13:42:29]New connection [13:42:29]New thread 3067137380 created [13:42:29]Thread 3066994020 joined [13:42:29]Waiting for new connection... [13:42:29] Sock 9.Parse request [13:42:29]Sock 9.Check first char [13:42:29]Sock 9.First char is OK [13:42:29]request: POST /json_proto HTTP/1.0 [13:42:29]Method: POST [13:42:29]URL: /json_proto [13:42:29]Method is POST - this is cgi request [13:42:29]url: /json_proto [13:42:29]query_string will be loaded in cgi processing [13:42:29]execute_cgi json_proto POST (null) [13:42:29]execute_cgi path=json_proto method=POST [13:42:29]POST find Content-Length [13:42:29]Host: 172.17.44.195:8080 [13:42:29]Content-Length: 664 [13:42:29]Content-Type: application/json [13:42:29] [13:42:29]POST finish read [13:42:29]Found Content-Length = 664 [13:42:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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:42:29]execute_script... [13:42: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)1964690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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:42:29]POST & json_proto [13:42:29]process_json_proto [13:42:29]json parsed OK: [13:42:29]protocol is kg_v1.0 [13:42:29]action value=close_receipt [13:42:29]process_action close_receipt [13:42:29]cmd_close_receipt [13:42:29]MH_GetDate [13:42:29]Write to MH i2c: F0 00 00 48 3B 72 [13:42:29]Write i2c OK [13:42:29]MH_I2C_Read... [13:42:29]Read from MH i2c: F0 [13:42:29]MH_I2C_Read... [13:42:29]Read from MH i2c: F0 09 00 [13:42:29]MH_I2C_Read... [13:42:29]Read from MH i2c: F0 09 00 48 3B 00 C9 AB 17 67 82 C9 CF 66 ED [13:42:29]GetLastDocTimeStamp 1729604503 [13:42:29]current date 1729604553 [13:42:29]FM_GetShiftState [13:42:29]SAM_PROTO_GetShiftState [13:42:29]wFMCommunicate request_size=4 [13:42:29]MH_SAM_APDU [13:42:29]CAPDU: 80 13 01 00 [13:42:29]Write to MH i2c: E2 08 00 49 3B 80 13 01 00 00 00 00 00 01 [13:42:29]Write i2c OK [13:42:29]MH_I2C_Read... [13:42:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:29]Read from MH i2c: E2 [13:42:29]MH_I2C_Read... [13:42:29]Read from MH i2c: E2 0E 00 [13:42:29]MH_I2C_Read... [13:42:29]Read from MH i2c: E2 0E 00 49 3B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 C8 [13:42:29]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:42:29]wFMCommunicate OK [13:42:29]SAM_PROTO_GetShiftState done [13:42:29]FM_GetShiftState done [13:42:29]opened in 1729555538 [13:42:29]opened+sec_in_day 1729641938 [13:42:29]quantity*price = 100000 [13:42:29]sum+1 = 100002 [13:42:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 196 22.10.2024 13:42 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228232 ФПД: 103816779216644 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134234&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228232&fm=103816779216644&tin=02508201610067®Number=0000000000091685&sum=100000 [13:42:30]StoreToDocumentArchive [13:42:30]shift 535 fd 228232 [13:42:30]save to /storage/0535/doc_00228232 [13:42:30]save last doc name /storage/0535/doc_00228232 to /storage/kkm_last_doc_name [13:42:30]save OK [13:42:30]Clear old archive folders... [13:42:30]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:42:30]tlvbuf is 00895C70 [13:42:30]SAM_PROTO_ClearQueue [13:42:30]wFMCommunicate request_size=4 [13:42:30]MH_SAM_APDU [13:42:30]CAPDU: 80 09 00 00 [13:42:30]Write to MH i2c: E2 08 00 56 3B 80 09 00 00 00 00 00 00 03 [13:42:30]Write i2c OK [13:42:30]MH_I2C_Read... [13:42:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:42:30]Read from MH i2c: E2 [13:42:30]MH_I2C_Read... [13:42:30]Read from MH i2c: E2 03 00 [13:42:30]MH_I2C_Read... [13:42:30]Read from MH i2c: E2 03 00 56 3B 00 90 00 05 [13:42:30]RAPDU: 90 00 [13:42:30]wFMCommunicate OK [13:42:30]SAM_PROTO_ClearQueue done [13:42:30]KKMCreateOFDPacket [13:42:30]OFDProtocolAddRootSTLVToBuf [13:42:30]FM_MakeSignedData [13:42:30]FM_MakeSignedData [13:42:30]SAM_PROTO_SignData [13:42:30]wFMCommunicate request_size=4 [13:42:30]MH_SAM_APDU [13:42:30]CAPDU: 80 0D 01 02 [13:42:30]Write to MH i2c: E2 08 00 57 3B 80 0D 01 02 00 00 00 00 0B [13:42:30]Write i2c OK [13:42:30]MH_I2C_Read... [13:42:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:42:30]Read from MH i2c: E2 [13:42:30]MH_I2C_Read... [13:42:30]Read from MH i2c: E2 03 00 [13:42:30]MH_I2C_Read... [13:42:30]Read from MH i2c: E2 03 00 57 3B 00 90 00 06 [13:42:30]RAPDU: 90 00 [13:42:30]wFMCommunicate OK [13:42:30]wFMCommunicate request_size=253 [13:42:30]MH_SAM_APDU [13:42:30]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 CA AB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 88 7B 03 00 35 04 06 00 5E 6B BA 3F 37 04 [13:42:31]Write to MH i2c: E2 00 01 58 3B 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 CA AB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 88 7B 03 00 35 04 06 00 5E 6B BA 3F 37 04 00 00 58 [13:42:31]Write i2c OK [13:42:31]MH_I2C_Read... [13:42:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:31]Read from MH i2c: E2 [13:42:31]MH_I2C_Read... [13:42:31]Read from MH i2c: E2 03 00 [13:42:31]MH_I2C_Read... [13:42:31]Read from MH i2c: E2 03 00 58 3B 00 90 00 07 [13:42:31]RAPDU: 90 00 [13:42:31]wFMCommunicate OK [13:42:31]wFMCommunicate request_size=4 [13:42:31]MH_SAM_APDU [13:42:31]CAPDU: 80 0D 03 02 [13:42:31]Write to MH i2c: E2 08 00 59 3B 80 0D 03 02 00 00 00 00 0F [13:42:31]Write i2c OK [13:42:31]MH_I2C_Read... [13:42:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:42:31]Read from MH i2c: E2 [13:42:31]MH_I2C_Read... [13:42:31]Read from MH i2c: E2 0B 00 [13:42:31]MH_I2C_Read... [13:42:31]Read from MH i2c: E2 0B 00 59 3B 00 89 2A 51 06 AC B2 8F 3A 90 00 41 [13:42:31]RAPDU: 89 2A 51 06 AC B2 8F 3A 90 00 [13:42:31]wFMCommunicate OK [13:42:31]SAM_PROTO_SignData done [13:42:31]FM_MakeSignedData done [13:42:31]CreateOFDProtocolMessage [13:42:31]wFMCommunicate request_size=4 [13:42:31]MH_SAM_APDU [13:42:31]CAPDU: 80 11 00 00 [13:42:31]Write to MH i2c: E2 08 00 5A 3B 80 11 00 00 00 00 00 00 0F [13:42:31]Write i2c OK [13:42:31]MH_I2C_Read... [13:42:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:31]Read from MH i2c: E2 [13:42:31]MH_I2C_Read... [13:42:31]Read from MH i2c: E2 17 00 [13:42:31]MH_I2C_Read... [13:42:31]Read from MH i2c: E2 17 00 5A 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 66 [13:42:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:42:31]wFMCommunicate OK [13:42:31]CreateOFDProtocolMessage done [13:42:31]OFDSenderStorePacket 228232 [13:42:31]StoreOFDPacket docnum=228232 [13:42:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 D5 84 00 01 41 D4 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 CA AB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 88 7B 03 00 35 04 06 00 5E 6B BA 3F 37 04 89 2A 51 06 AC B2 8F 3A [13:42:31]CheckFolder [13:42:31]dirname=/storage/ofd_packets [13:42:31]CheckFolder done [13:42:31]ProducePacketName [13:42:31]name=ofd_packets/00228232 [13:42:31]NVStorageSaveData ofd_packets/00228232 [13:42:31]File name is /storage/ofd_packets/00228232 [13:42:31]Write 294 bytes [13:42:31]NVStorageSaveData done [13:42:31]OFDSenderStorePacket done [13:42:31]KKMCreateOFDPacket done [13:42:31]NVStorageSaveData kkm_last_timestamp [13:42:31]File name is /storage/kkm_last_timestamp [13:42:31]Write 4 bytes [13:42:31]NVStorageSaveData done [13:42:31]ExternCall_PrintAddStr [13:42:31]wPrintStart [13:42:31]Write to MH i2c: 01 00 00 5B 3B 96 [13:42:31]Write i2c OK [13:42:31]MH_I2C_Read... [13:42:31]Read from MH i2c: 01 [13:42:31]MH_I2C_Read... [13:42:31]Read from MH i2c: 01 07 00 [13:42:31]MH_I2C_Read... [13:42:31]Read from MH i2c: 01 07 00 5B 3B 00 00 00 00 00 FF 0F AB [13:42:31]RasterBufferAndPrint [13:42:31]line Счет N : (1)1964690 [13:42:31]line ИНН: 02508201610067 [13:42:31]line Контрольно-Кассовый Чек [13:42:31]line ПРОДАЖА [13:42:31]line ТРК (МРК, ГНК) : 52 [13:42:31]line Товар: 2710124130 [13:42:31]line SU-92 [13:42:31]line 14.620 * 68.40 [13:42:31]line = 1000.01 [13:42:31]line НДС 12% НСП 1% [13:42:31]line > о реализуемом товаре [13:42:31]line ОКРУГЛЕНИЕ: -0.01 [13:42:31]line ИТОГО: 1000.00 [13:42:31]line Внесено: 1000.00 [13:42:31]line СДАЧА: 0.00 [13:42:31]line НСП 1% : 8.85 [13:42:31]line НДС 12% : 106.20 [13:42:31]line Наличными: 1000.00 [13:42:31]line Безнал.: 0.00 [13:42:31]line Место: АЗС № 133 "Партнер Нефть" [13:42:31]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:42:31]line СНО: Общий режим [13:42:31]line Чек 196 22.10.2024 13:42 [13:42:31]line Смена: 535 ФФД: 1.0 [13:42:31]line ЗНМ: 0300000091 [13:42:31]line РНМ: 0000000000091685 [13:42:31]line Версия ККМ: 001 [13:42:31]line ФМ: 0000000000871839 [13:42:31]line ФД: 228232 [13:42:31]line ФПД: 103816779216644 [13:42:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134234&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228232&fm=103816779216644&tin=02508201610067®Number=0000000000091685&sum=100000 [13:42:31]OFD Sender: Processing packet 228232 [packets to send 38, broken 37] [13:42:31]ProducePacketName [13:42:31]name=ofd_packets/00228232 [13:42:31]OFD Sender: To server: pG, [13:42:31]CommunicateWithHost lk.salyk.kg:30040 [13:42:31]ConnectInit lk.salyk.kg [13:42:31]written 0, free lines is 4095 [13:42:31]Connected sock=10 [13:42:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 D5 84 00 01 41 D4 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 CA AB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 88 7B 03 00 35 04 06 00 5E 6B BA 3F 37 04 89 2A 51 06 AC B2 8F 3A [13:42:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 C8 61 47 00 C6 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 88 7B 03 00 F4 03 04 00 C2 56 17 67 B6 04 01 00 00 E4 5E CC C6 3C C1 EE FE [13:42:32]CommunicateWithHost err = 0 [13:42:32]CheckOFDResponse [13:42:32]1017 (14) - 77093643461234 [13:42:32]1041 (16) - 0000000000871839 [13:42:32]1040 (4) - 228232 [13:42:32]1012 (4) - 22.10.2024 07:39 [13:42:32]1206 (1) - 0 [13:42:32]OFD Sender: Remove packet 228232 [13:42:32]ProducePacketName [13:42:32]name=ofd_packets/00228232 [13:42:32]NVStorageDeleteData [13:42:32]Write to MH i2c: 01 00 00 85 3B C0 [13:42:32]Write i2c OK [13:42:32]MH_I2C_Read... [13:42:32]Read from MH i2c: 01 [13:42:32]MH_I2C_Read... [13:42:32]Read from MH i2c: 01 07 00 [13:42:32]MH_I2C_Read... [13:42:32]Read from MH i2c: 01 07 00 85 3B 00 00 00 00 00 C5 0C 98 [13:42:32]RasterBufferAndPrint [13:42:32]line [13:42:32]line [13:42:32]line [13:42:32]line [13:42:32]line [13:42:32]written 0, free lines is 3275 [13:42:32]MH_Cut [13:42:32]Write to MH i2c: D1 01 00 8C 3B 01 99 [13:42:32]Write i2c OK [13:42:32]MH_I2C_Read... [13:42:32]Read from MH i2c: D1 [13:42:32]MH_I2C_Read... [13:42:32]Read from MH i2c: D1 01 00 [13:42:32]MH_I2C_Read... [13:42:32]Read from MH i2c: D1 01 00 8C 3B 00 98 [13:42:32]Write to MH i2c: 01 00 00 8D 3B C8 [13:42:32]Write i2c OK [13:42:32]MH_I2C_Read... [13:42:32]OFD Sender: No OFD packet to send [13:42:32]*** Cut start [13:42:32]*** Partial cut [13:42:32]*** CUTSNS_PIN = 1 [13:42:33]*** CUTSNS_PIN = 0 [13:42:33]*** Brake cut motor [13:42:33]Read from MH i2c: 01 [13:42:33]MH_I2C_Read... [13:42:33]*** Stop cut motor [13:42:33]*** Cut end [13:42:33]Read from MH i2c: 01 07 00 [13:42:33]MH_I2C_Read... [13:42:33]Read from MH i2c: 01 07 00 8D 3B 00 00 00 00 00 FF 0F DD [13:42:33]process_action close_receipt done [13:42:33]requested_data is exist [13:42:33]produce_requested_data [13:42:33]requested_item fm.sn is exist - process it [13:42:33]wFMCommunicate request_size=4 [13:42:33]MH_SAM_APDU [13:42:33]CAPDU: 80 11 00 00 [13:42:33]Write to MH i2c: E2 08 00 8E 3B 80 11 00 00 00 00 00 00 43 [13:42:33]Write i2c OK [13:42:33]MH_I2C_Read... [13:42:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:33]Read from MH i2c: E2 [13:42:33]MH_I2C_Read... [13:42:33]Read from MH i2c: E2 17 00 [13:42:33]MH_I2C_Read... [13:42:33]Read from MH i2c: E2 17 00 8E 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9A [13:42:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:42:33]wFMCommunicate OK [13:42:33]requested_item fd.num is exist - process it [13:42:33]SAM_PROTO_GetFieldsCounters [13:42:33]wFMCommunicate request_size=4 [13:42:33]MH_SAM_APDU [13:42:33]CAPDU: 80 13 00 00 [13:42:33]Write to MH i2c: E2 08 00 8F 3B 80 13 00 00 00 00 00 00 46 [13:42:33]Write i2c OK [13:42:33]MH_I2C_Read... [13:42:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:42:33]Read from MH i2c: E2 [13:42:33]MH_I2C_Read... [13:42:33]Read from MH i2c: E2 62 00 [13:42:33]MH_I2C_Read... [13:42:33]Read from MH i2c: E2 62 00 8F 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 88 7B 03 00 0E 04 04 00 17 02 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 DA [13:42:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 88 7B 03 00 0E 04 04 00 17 02 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 [13:42:33]wFMCommunicate OK [13:42:33]SAM_PROTO_GetFieldsCounters done [13:42:33]requested_item shift.num is exist - process it [13:42:33]requested_item shift.opened is exist - process it [13:42:33]req_shift_opened [13:42:33]FM_GetShiftState [13:42:33]SAM_PROTO_GetShiftState [13:42:33]wFMCommunicate request_size=4 [13:42:33]MH_SAM_APDU [13:42:33]CAPDU: 80 13 01 00 [13:42:33]Write to MH i2c: E2 08 00 90 3B 80 13 01 00 00 00 00 00 48 [13:42:33]Write i2c OK [13:42:33]MH_I2C_Read... [13:42:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:33]Read from MH i2c: E2 [13:42:33]MH_I2C_Read... [13:42:33]Read from MH i2c: E2 0E 00 [13:42:33]MH_I2C_Read... [13:42:33]Read from MH i2c: E2 0E 00 90 3B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 0F [13:42:33]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:42:33]wFMCommunicate OK [13:42:33]SAM_PROTO_GetShiftState done [13:42:33]FM_GetShiftState done [13:42:33]req_shift_opened done [13:42:33]requested_item shift.open_date is exist - process it [13:42:33]req_shift_open_date [13:42:33]req_shift_open_date done [13:42:33]produce_requested_data done [13:42:33]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228232,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:42:33]process_action_free close_receipt [13:42:33]json_value_free [13:42:33]json_value_free done [13:42:33]process_json_proto returns [13:42:33]Send response to host [13:42:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228232,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:42:33]free response buf [13:42:33]execute_script done [13:42:33]execute_script returns [13:42:33]free content buf [13:42:33]Sock 9.Close socket [13:42:33]Sock 9.Thread stoped [13:42:37]OFD Sender: No OFD packet to send [13:42:40]accept exits with 7 [13:42:40]New connection [13:42:40]New thread 3066994020 created [13:42:40]Thread 3067137380 joined [13:42:40]Waiting for new connection... [13:42:40] Sock 7.Parse request [13:42:40]Sock 7.Check first char [13:42:40]Sock 7.First char is OK [13:42:40]request: POST /json_proto HTTP/1.0 [13:42:40]Method: POST [13:42:40]URL: /json_proto [13:42:40]Method is POST - this is cgi request [13:42:40]url: /json_proto [13:42:40]query_string will be loaded in cgi processing [13:42:40]execute_cgi json_proto POST (null) [13:42:40]execute_cgi path=json_proto method=POST [13:42:40]POST find Content-Length [13:42:40]Host: 172.17.44.195:8080 [13:42:40]Content-Length: 678 [13:42:40]Content-Type: application/json [13:42:40] [13:42:40]POST finish read [13:42:40]Found Content-Length = 678 [13:42:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964689", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:40]execute_script... [13:42:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964689", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:40]POST & json_proto [13:42:40]process_json_proto [13:42:40]json parsed OK: [13:42:40]protocol is kg_v1.0 [13:42:40]action value=close_receipt [13:42:40]process_action close_receipt [13:42:40]cmd_close_receipt [13:42:40]MH_GetDate [13:42:40]Write to MH i2c: F0 00 00 91 3B BB [13:42:40]Write i2c OK [13:42:40]MH_I2C_Read... [13:42:40]Read from MH i2c: F0 [13:42:40]MH_I2C_Read... [13:42:40]Read from MH i2c: F0 09 00 [13:42:40]MH_I2C_Read... [13:42:40]Read from MH i2c: F0 09 00 91 3B 00 D4 AB 17 67 82 C9 CF 66 41 [13:42:40]GetLastDocTimeStamp 1729604554 [13:42:40]current date 1729604564 [13:42:40]FM_GetShiftState [13:42:40]SAM_PROTO_GetShiftState [13:42:40]wFMCommunicate request_size=4 [13:42:40]MH_SAM_APDU [13:42:40]CAPDU: 80 13 01 00 [13:42:40]Write to MH i2c: E2 08 00 92 3B 80 13 01 00 00 00 00 00 4A [13:42:40]Write i2c OK [13:42:40]MH_I2C_Read... [13:42:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:40]Read from MH i2c: E2 [13:42:40]MH_I2C_Read... [13:42:40]Read from MH i2c: E2 0E 00 [13:42:40]MH_I2C_Read... [13:42:40]Read from MH i2c: E2 0E 00 92 3B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 11 [13:42:40]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:42:40]wFMCommunicate OK [13:42:40]SAM_PROTO_GetShiftState done [13:42:40]FM_GetShiftState done [13:42:40]opened in 1729555538 [13:42:40]opened+sec_in_day 1729641938 [13:42:40]quantity*price = 50041 [13:42:40]sum+1 = 50042 [13:42:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 197 22.10.2024 13:42 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228233 ФПД: 17404506655005 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134244&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228233&fm=17404506655005&tin=02508201610067®Number=0000000000091685&sum=50000 [13:42:41]StoreToDocumentArchive [13:42:41]shift 535 fd 228233 [13:42:41]save to /storage/0535/doc_00228233 [13:42:41]save last doc name /storage/0535/doc_00228233 to /storage/kkm_last_doc_name [13:42:41]save OK [13:42:41]Clear old archive folders... [13:42:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:42:41]tlvbuf is 0092A230 [13:42:41]SAM_PROTO_ClearQueue [13:42:41]wFMCommunicate request_size=4 [13:42:41]MH_SAM_APDU [13:42:41]CAPDU: 80 09 00 00 [13:42:41]Write to MH i2c: E2 08 00 9F 3B 80 09 00 00 00 00 00 00 4C [13:42:41]Write i2c OK [13:42:41]MH_I2C_Read... [13:42:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:42:41]Read from MH i2c: E2 [13:42:41]MH_I2C_Read... [13:42:41]Read from MH i2c: E2 03 00 [13:42:41]MH_I2C_Read... [13:42:41]Read from MH i2c: E2 03 00 9F 3B 00 90 00 4E [13:42:41]RAPDU: 90 00 [13:42:41]wFMCommunicate OK [13:42:41]SAM_PROTO_ClearQueue done [13:42:41]KKMCreateOFDPacket [13:42:41]OFDProtocolAddRootSTLVToBuf [13:42:41]FM_MakeSignedData [13:42:41]FM_MakeSignedData [13:42:41]SAM_PROTO_SignData [13:42:41]wFMCommunicate request_size=4 [13:42:41]MH_SAM_APDU [13:42:41]CAPDU: 80 0D 01 02 [13:42:41]Write to MH i2c: E2 08 00 A0 3B 80 0D 01 02 00 00 00 00 54 [13:42:41]Write i2c OK [13:42:41]MH_I2C_Read... [13:42:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:42:41]Read from MH i2c: E2 [13:42:41]MH_I2C_Read... [13:42:41]Read from MH i2c: E2 03 00 [13:42:41]MH_I2C_Read... [13:42:41]Read from MH i2c: E2 03 00 A0 3B 00 90 00 4F [13:42:41]RAPDU: 90 00 [13:42:41]wFMCommunicate OK [13:42:41]wFMCommunicate request_size=255 [13:42:41]MH_SAM_APDU [13:42: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D4 AB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 89 7B 03 00 35 04 06 00 0F [13:42:41]Write to MH i2c: E2 02 01 A1 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D4 AB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 89 7B 03 00 35 04 06 00 0F 00 00 DC [13:42:41]Write i2c OK [13:42:41]MH_I2C_Read... [13:42:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:41]Read from MH i2c: E2 [13:42:41]MH_I2C_Read... [13:42:41]Read from MH i2c: E2 03 00 [13:42:41]MH_I2C_Read... [13:42:41]Read from MH i2c: E2 03 00 A1 3B 00 90 00 50 [13:42:41]RAPDU: 90 00 [13:42:41]wFMCommunicate OK [13:42:41]wFMCommunicate request_size=10 [13:42:41]MH_SAM_APDU [13:42:41]CAPDU: 80 0D 02 02 05 D4 4D 6F C9 1D [13:42:41]Write to MH i2c: E2 0D 00 A2 3B 80 0D 02 02 05 00 D4 4D 6F C9 1D 00 00 D7 [13:42:41]Write i2c OK [13:42:41]MH_I2C_Read... [13:42:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:41]Read from MH i2c: E2 [13:42:41]MH_I2C_Read... [13:42:41]Read from MH i2c: E2 03 00 [13:42:41]MH_I2C_Read... [13:42:41]Read from MH i2c: E2 03 00 A2 3B 00 90 00 51 [13:42:41]RAPDU: 90 00 [13:42:41]wFMCommunicate OK [13:42:41]wFMCommunicate request_size=4 [13:42:41]MH_SAM_APDU [13:42:41]CAPDU: 80 0D 03 02 [13:42:41]Write to MH i2c: E2 08 00 A3 3B 80 0D 03 02 00 00 00 00 59 [13:42:41]Write i2c OK [13:42:41]MH_I2C_Read... [13:42:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:42:41]Read from MH i2c: E2 [13:42:41]MH_I2C_Read... [13:42:41]Read from MH i2c: E2 0B 00 [13:42:41]MH_I2C_Read... [13:42:41]Read from MH i2c: E2 0B 00 A3 3B 00 DF 05 17 23 42 D6 F1 D1 90 00 52 [13:42:41]RAPDU: DF 05 17 23 42 D6 F1 D1 90 00 [13:42:41]wFMCommunicate OK [13:42:41]SAM_PROTO_SignData done [13:42:41]FM_MakeSignedData done [13:42:41]CreateOFDProtocolMessage [13:42:41]wFMCommunicate request_size=4 [13:42:41]MH_SAM_APDU [13:42:41]CAPDU: 80 11 00 00 [13:42:41]Write to MH i2c: E2 08 00 A4 3B 80 11 00 00 00 00 00 00 59 [13:42:41]Write i2c OK [13:42:41]MH_I2C_Read... [13:42:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:41]Read from MH i2c: E2 [13:42:41]MH_I2C_Read... [13:42:41]Read from MH i2c: E2 17 00 [13:42:41]MH_I2C_Read... [13:42:41]Read from MH i2c: E2 17 00 A4 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B0 [13:42:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:42:41]wFMCommunicate OK [13:42:41]CreateOFDProtocolMessage done [13:42:41]OFDSenderStorePacket 228233 [13:42:41]StoreOFDPacket docnum=228233 [13:42:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 02 A1 07 01 8B 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D4 AB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 89 7B 03 00 35 04 06 00 0F D4 4D 6F C9 1D DF 05 17 23 42 D6 F1 D1 [13:42:41]CheckFolder [13:42:41]dirname=/storage/ofd_packets [13:42:41]CheckFolder done [13:42:41]ProducePacketName [13:42:41]name=ofd_packets/00228233 [13:42:41]NVStorageSaveData ofd_packets/00228233 [13:42:41]File name is /storage/ofd_packets/00228233 [13:42:41]Write 301 bytes [13:42:41]NVStorageSaveData done [13:42:41]OFDSenderStorePacket done [13:42:41]KKMCreateOFDPacket done [13:42:41]NVStorageSaveData kkm_last_timestamp [13:42:41]File name is /storage/kkm_last_timestamp [13:42:41]Write 4 bytes [13:42:41]NVStorageSaveData done [13:42:41]ExternCall_PrintAddStr [13:42:41]wPrintStart [13:42:41]Write to MH i2c: 01 00 00 A5 3B E0 [13:42:41]Write i2c OK [13:42:41]MH_I2C_Read... [13:42:41]Read from MH i2c: 01 [13:42:41]MH_I2C_Read... [13:42:41]Read from MH i2c: 01 07 00 [13:42:41]MH_I2C_Read... [13:42:41]Read from MH i2c: 01 07 00 A5 3B 00 00 00 00 00 FF 0F F5 [13:42:41]RasterBufferAndPrint [13:42:41]line Счет N : (1)1964689 [13:42:41]line ИНН: 02508201610067 [13:42:41]line Контрольно-Кассовый Чек [13:42:41]line ПРОДАЖА [13:42:41]line ТРК (МРК, ГНК) : 63 [13:42:41]line Товар: 2710124130 [13:42:41]line Аи-92-К-5 [13:42:41]line 7.480 * 66.90 [13:42:41]line = 500.41 [13:42:41]line НДС 12% НСП 1% [13:42:41]line > о реализуемом товаре [13:42:41]line ОКРУГЛЕНИЕ: -0.41 [13:42:41]line ИТОГО: 500.00 [13:42:41]line Внесено: 500.00 [13:42:41]line СДАЧА: 0.00 [13:42:41]line НСП 1% : 4.43 [13:42:41]line НДС 12% : 53.14 [13:42:41]line Наличными: 500.00 [13:42:41]line Безнал.: 0.00 [13:42:41]line Место: АЗС № 133 "Партнер Нефть" [13:42:41]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:42:41]line СНО: Общий режим [13:42:41]line Чек 197 22.10.2024 13:42 [13:42:41]line Смена: 535 ФФД: 1.0 [13:42:41]line ЗНМ: 0300000091 [13:42:41]line РНМ: 0000000000091685 [13:42:41]line Версия ККМ: 001 [13:42:41]line ФМ: 0000000000871839 [13:42:41]line ФД: 228233 [13:42:41]line ФПД: 17404506655005 [13:42:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134244&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228233&fm=17404506655005&tin=02508201610067®Number=0000000000091685&sum=50000 [13:42:41]written 0, free lines is 4095 [13:42:41]OFD Sender: Processing packet 228233 [packets to send 38, broken 37] [13:42:41]ProducePacketName [13:42:41]name=ofd_packets/00228233 [13:42:41]OFD Sender: To server: pG, [13:42:41]CommunicateWithHost lk.salyk.kg:30040 [13:42:41]ConnectInit lk.salyk.kg [13:42:42]Connected sock=10 [13:42:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 02 A1 07 01 8B 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D4 AB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 89 7B 03 00 35 04 06 00 0F D4 4D 6F C9 1D DF 05 17 23 42 D6 F1 D1 [13:42:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 CE BA 47 00 FC 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 89 7B 03 00 F4 03 04 00 CC 56 17 67 B6 04 01 00 00 BB 77 77 4C 45 C8 21 DB [13:42:42]CommunicateWithHost err = 0 [13:42:42]CheckOFDResponse [13:42:42]1017 (14) - 77093643461234 [13:42:42]1041 (16) - 0000000000871839 [13:42:42]1040 (4) - 228233 [13:42:42]1012 (4) - 22.10.2024 07:39 [13:42:42]1206 (1) - 0 [13:42:42]OFD Sender: Remove packet 228233 [13:42:42]ProducePacketName [13:42:42]name=ofd_packets/00228233 [13:42:42]NVStorageDeleteData [13:42:42]Write to MH i2c: 01 00 00 CF 3B 0A [13:42:42]Write i2c OK [13:42:42]MH_I2C_Read... [13:42:42]Read from MH i2c: 01 [13:42:42]MH_I2C_Read... [13:42:42]Read from MH i2c: 01 07 00 [13:42:42]MH_I2C_Read... [13:42:42]Read from MH i2c: 01 07 00 CF 3B 00 00 00 00 00 CD 0C EA [13:42:42]RasterBufferAndPrint [13:42:42]line [13:42:42]line [13:42:42]line [13:42:42]line [13:42:42]line [13:42:42]written 0, free lines is 3286 [13:42:42]MH_Cut [13:42:42]Write to MH i2c: D1 01 00 D6 3B 01 E3 [13:42:42]Write i2c OK [13:42:42]MH_I2C_Read... [13:42:42]Read from MH i2c: D1 [13:42:42]MH_I2C_Read... [13:42:42]Read from MH i2c: D1 01 00 [13:42:42]MH_I2C_Read... [13:42:42]Read from MH i2c: D1 01 00 D6 3B 00 E2 [13:42:42]Write to MH i2c: 01 00 00 D7 3B 12 [13:42:42]Write i2c OK [13:42:42]MH_I2C_Read... [13:42:42]OFD Sender: No OFD packet to send [13:42:43]*** Cut start [13:42:43]*** Partial cut [13:42:43]*** CUTSNS_PIN = 1 [13:42:43]*** CUTSNS_PIN = 0 [13:42:43]*** Brake cut motor [13:42:43]Read from MH i2c: 01 [13:42:43]MH_I2C_Read... [13:42:43]*** Stop cut motor [13:42:43]*** Cut end [13:42:43]Read from MH i2c: 01 07 00 [13:42:43]MH_I2C_Read... [13:42:43]Read from MH i2c: 01 07 00 D7 3B 00 00 00 00 00 FF 0F 27 [13:42:43]process_action close_receipt done [13:42:43]requested_data is exist [13:42:43]produce_requested_data [13:42:43]requested_item fm.sn is exist - process it [13:42:43]wFMCommunicate request_size=4 [13:42:43]MH_SAM_APDU [13:42:43]CAPDU: 80 11 00 00 [13:42:43]Write to MH i2c: E2 08 00 D8 3B 80 11 00 00 00 00 00 00 8D [13:42:43]Write i2c OK [13:42:43]MH_I2C_Read... [13:42:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:43]Read from MH i2c: E2 [13:42:43]MH_I2C_Read... [13:42:43]Read from MH i2c: E2 17 00 [13:42:43]MH_I2C_Read... [13:42:43]Read from MH i2c: E2 17 00 D8 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E4 [13:42:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:42:43]wFMCommunicate OK [13:42:43]requested_item fd.num is exist - process it [13:42:43]SAM_PROTO_GetFieldsCounters [13:42:43]wFMCommunicate request_size=4 [13:42:43]MH_SAM_APDU [13:42:43]CAPDU: 80 13 00 00 [13:42:43]Write to MH i2c: E2 08 00 D9 3B 80 13 00 00 00 00 00 00 90 [13:42:43]Write i2c OK [13:42:43]MH_I2C_Read... [13:42:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:42:44]Read from MH i2c: E2 [13:42:44]MH_I2C_Read... [13:42:44]Read from MH i2c: E2 62 00 [13:42:44]MH_I2C_Read... [13:42:44]Read from MH i2c: E2 62 00 D9 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 89 7B 03 00 0E 04 04 00 17 02 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 28 [13:42:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 89 7B 03 00 0E 04 04 00 17 02 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 [13:42:44]wFMCommunicate OK [13:42:44]SAM_PROTO_GetFieldsCounters done [13:42:44]requested_item shift.num is exist - process it [13:42:44]requested_item shift.opened is exist - process it [13:42:44]req_shift_opened [13:42:44]FM_GetShiftState [13:42:44]SAM_PROTO_GetShiftState [13:42:44]wFMCommunicate request_size=4 [13:42:44]MH_SAM_APDU [13:42:44]CAPDU: 80 13 01 00 [13:42:44]Write to MH i2c: E2 08 00 DA 3B 80 13 01 00 00 00 00 00 92 [13:42:44]Write i2c OK [13:42:44]MH_I2C_Read... [13:42:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:44]Read from MH i2c: E2 [13:42:44]MH_I2C_Read... [13:42:44]Read from MH i2c: E2 0E 00 [13:42:44]MH_I2C_Read... [13:42:44]Read from MH i2c: E2 0E 00 DA 3B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 59 [13:42:44]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:42:44]wFMCommunicate OK [13:42:44]SAM_PROTO_GetShiftState done [13:42:44]FM_GetShiftState done [13:42:44]req_shift_opened done [13:42:44]requested_item shift.open_date is exist - process it [13:42:44]req_shift_open_date [13:42:44]req_shift_open_date done [13:42:44]produce_requested_data done [13:42:44]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228233,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:42:44]process_action_free close_receipt [13:42:44]json_value_free [13:42:44]json_value_free done [13:42:44]process_json_proto returns [13:42:44]Send response to host [13:42:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228233,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:42:44]free response buf [13:42:44]execute_script done [13:42:44]execute_script returns [13:42:44]free content buf [13:42:44]Sock 7.Close socket [13:42:44]Sock 7.Thread stoped [13:42:47]OFD Sender: No OFD packet to send [13:42:52]OFD Sender: No OFD packet to send [13:42:57]OFD Sender: No OFD packet to send [13:43:02]OFD Sender: No OFD packet to send [13:43:07]OFD Sender: No OFD packet to send [13:43:12]OFD Sender: No OFD packet to send [13:43:17]OFD Sender: No OFD packet to send [13:43:22]OFD Sender: No OFD packet to send [13:43:27]OFD Sender: No OFD packet to send [13:43:32]OFD Sender: No OFD packet to send [13:43:37]OFD Sender: No OFD packet to send [13:43:42]accept exits with 9 [13:43:42]New connection [13:43:42]New thread 3067137380 created [13:43:42]Thread 3066994020 joined [13:43:42]Waiting for new connection... [13:43:42] Sock 9.Parse request [13:43:42]Sock 9.Check first char [13:43:42]Sock 9.First char is OK [13:43:42]request: POST /json_proto HTTP/1.0 [13:43:42]Method: POST [13:43:42]URL: /json_proto [13:43:42]Method is POST - this is cgi request [13:43:42]url: /json_proto [13:43:42]query_string will be loaded in cgi processing [13:43:42]execute_cgi json_proto POST (null) [13:43:42]execute_cgi path=json_proto method=POST [13:43:42]POST find Content-Length [13:43:42]Host: 172.17.44.195:8080 [13:43:42]Content-Length: 798 [13:43:42]Content-Type: application/json [13:43:42] [13:43:42]POST finish read [13:43:42]Found Content-Length = 798 [13:43:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964691", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4690464", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:42]execute_script... [13:43:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964691", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4690464", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:42]POST & json_proto [13:43:42]process_json_proto [13:43:42]json parsed OK: [13:43:42]protocol is kg_v1.0 [13:43:42]action value=close_receipt [13:43:42]process_action close_receipt [13:43:42]cmd_close_receipt [13:43:42]MH_GetDate [13:43:42]Write to MH i2c: F0 00 00 DB 3B 05 [13:43:42]Write i2c OK [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: F0 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: F0 09 00 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: F0 09 00 DB 3B 00 12 AC 17 67 82 C9 CF 66 CA [13:43:42]GetLastDocTimeStamp 1729604564 [13:43:42]current date 1729604626 [13:43:42]FM_GetShiftState [13:43:42]SAM_PROTO_GetShiftState [13:43:42]wFMCommunicate request_size=4 [13:43:42]MH_SAM_APDU [13:43:42]CAPDU: 80 13 01 00 [13:43:42]Write to MH i2c: E2 08 00 DC 3B 80 13 01 00 00 00 00 00 94 [13:43:42]Write i2c OK [13:43:42]MH_I2C_Read... [13:43:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:42]Read from MH i2c: E2 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: E2 0E 00 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: E2 0E 00 DC 3B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 5B [13:43:42]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:43:42]wFMCommunicate OK [13:43:42]SAM_PROTO_GetShiftState done [13:43:42]FM_GetShiftState done [13:43:42]opened in 1729555538 [13:43:42]opened+sec_in_day 1729641938 [13:43:42]quantity*price = 0 [13:43:42]sum+1 = 1 [13:43:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 198 22.10.2024 13:43 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливные Талоны 4690464 ФМ: 0000000000871839 ФД: 228234 ФПД: 262910679046604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134346&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228234&fm=262910679046604&tin=02508201610067®Number=0000000000091685&sum=0 [13:43:43]StoreToDocumentArchive [13:43:43]shift 535 fd 228234 [13:43:43]save to /storage/0535/doc_00228234 [13:43:43]save last doc name /storage/0535/doc_00228234 to /storage/kkm_last_doc_name [13:43:43]save OK [13:43:43]Clear old archive folders... [13:43:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:43:43]tlvbuf is 008EB950 [13:43:43]SAM_PROTO_ClearQueue [13:43:43]wFMCommunicate request_size=4 [13:43:43]MH_SAM_APDU [13:43:43]CAPDU: 80 09 00 00 [13:43:43]Write to MH i2c: E2 08 00 E9 3B 80 09 00 00 00 00 00 00 96 [13:43:43]Write i2c OK [13:43:43]MH_I2C_Read... [13:43:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:43:43]Read from MH i2c: E2 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: E2 03 00 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: E2 03 00 E9 3B 00 90 00 98 [13:43:43]RAPDU: 90 00 [13:43:43]wFMCommunicate OK [13:43:43]SAM_PROTO_ClearQueue done [13:43:43]KKMCreateOFDPacket [13:43:43]OFDProtocolAddRootSTLVToBuf [13:43:43]FM_MakeSignedData [13:43:43]FM_MakeSignedData [13:43:43]SAM_PROTO_SignData [13:43:43]wFMCommunicate request_size=4 [13:43:43]MH_SAM_APDU [13:43:43]CAPDU: 80 0D 01 02 [13:43:43]Write to MH i2c: E2 08 00 EA 3B 80 0D 01 02 00 00 00 00 9E [13:43:43]Write i2c OK [13:43:43]MH_I2C_Read... [13:43:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:43:43]Read from MH i2c: E2 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: E2 03 00 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: E2 03 00 EA 3B 00 90 00 99 [13:43:43]RAPDU: 90 00 [13:43:43]wFMCommunicate OK [13:43:43]wFMCommunicate request_size=255 [13:43:43]MH_SAM_APDU [13:43: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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 12 AC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8A 7B 03 00 35 04 06 00 EF 1D A9 A1 [13:43:43]Write to MH i2c: E2 02 01 EB 3B 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 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 12 AC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8A 7B 03 00 35 04 06 00 EF 1D A9 A1 00 00 EA [13:43:43]Write i2c OK [13:43:43]MH_I2C_Read... [13:43:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:44]Read from MH i2c: E2 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: E2 03 00 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: E2 03 00 EB 3B 00 90 00 9A [13:43:44]RAPDU: 90 00 [13:43:44]wFMCommunicate OK [13:43:44]wFMCommunicate request_size=7 [13:43:44]MH_SAM_APDU [13:43:44]CAPDU: 80 0D 02 02 02 D9 CC [13:43:44]Write to MH i2c: E2 0A 00 EC 3B 80 0D 02 02 02 00 D9 CC 00 00 4A [13:43:44]Write i2c OK [13:43:44]MH_I2C_Read... [13:43:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:44]Read from MH i2c: E2 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: E2 03 00 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: E2 03 00 EC 3B 00 90 00 9B [13:43:44]RAPDU: 90 00 [13:43:44]wFMCommunicate OK [13:43:44]wFMCommunicate request_size=4 [13:43:44]MH_SAM_APDU [13:43:44]CAPDU: 80 0D 03 02 [13:43:44]Write to MH i2c: E2 08 00 ED 3B 80 0D 03 02 00 00 00 00 A3 [13:43:44]Write i2c OK [13:43:44]MH_I2C_Read... [13:43:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:43:44]Read from MH i2c: E2 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: E2 0B 00 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: E2 0B 00 ED 3B 00 63 8B DD 9E A7 F6 A5 2C 90 00 7B [13:43:44]RAPDU: 63 8B DD 9E A7 F6 A5 2C 90 00 [13:43:44]wFMCommunicate OK [13:43:44]SAM_PROTO_SignData done [13:43:44]FM_MakeSignedData done [13:43:44]CreateOFDProtocolMessage [13:43:44]wFMCommunicate request_size=4 [13:43:44]MH_SAM_APDU [13:43:44]CAPDU: 80 11 00 00 [13:43:44]Write to MH i2c: E2 08 00 EE 3B 80 11 00 00 00 00 00 00 A3 [13:43:44]Write i2c OK [13:43:44]MH_I2C_Read... [13:43:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:44]Read from MH i2c: E2 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: E2 17 00 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: E2 17 00 EE 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FA [13:43:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:43:44]wFMCommunicate OK [13:43:44]CreateOFDProtocolMessage done [13:43:44]OFDSenderStorePacket 228234 [13:43:44]StoreOFDPacket docnum=228234 [13:43:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 A5 21 04 01 E8 E7 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 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 12 AC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8A 7B 03 00 35 04 06 00 EF 1D A9 A1 D9 CC 63 8B DD 9E A7 F6 A5 2C [13:43:44]CheckFolder [13:43:44]dirname=/storage/ofd_packets [13:43:44]CheckFolder done [13:43:44]ProducePacketName [13:43:44]name=ofd_packets/00228234 [13:43:44]NVStorageSaveData ofd_packets/00228234 [13:43:44]File name is /storage/ofd_packets/00228234 [13:43:44]Write 298 bytes [13:43:44]NVStorageSaveData done [13:43:44]OFDSenderStorePacket done [13:43:44]KKMCreateOFDPacket done [13:43:44]NVStorageSaveData kkm_last_timestamp [13:43:44]File name is /storage/kkm_last_timestamp [13:43:44]Write 4 bytes [13:43:44]NVStorageSaveData done [13:43:44]ExternCall_PrintAddStr [13:43:44]wPrintStart [13:43:44]Write to MH i2c: 01 00 00 EF 3B 2A [13:43:44]Write i2c OK [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: 01 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: 01 07 00 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: 01 07 00 EF 3B 00 00 00 00 00 FF 0F 3F [13:43:44]RasterBufferAndPrint [13:43:44]line Счет N : (1)1964691 [13:43:44]line ИНН: 02508201610067 [13:43:44]line Контрольно-Кассовый Чек [13:43:44]line ПРОДАЖА [13:43:44]line ТРК (МРК, ГНК) : 51 [13:43:44]line Товар: 2710194210 [13:43:44]line ДТ-К-5 [13:43:44]line 20.000 * 0.00 [13:43:44]line = 0.00 [13:43:44]line НДС 12% НСП 1% [13:43:44]line > о реализуемом товаре [13:43:44]line ИТОГО: 0.00 [13:43:44]line НСП 1% : 0.00 [13:43:44]line НДС 12% : 0.00 [13:43:44]line Наличными: 0.00 [13:43:44]line Безнал.: 0.00 [13:43:44]line Место: АЗС № 133 "Партнер Нефть" [13:43:44]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:43:44]line СНО: Общий режим [13:43:44]line Чек 198 22.10.2024 13:43 [13:43:44]line Смена: 535 ФФД: 1.0 [13:43:44]line ЗНМ: 0300000091 [13:43:44]line РНМ: 0000000000091685 [13:43:44]line Версия ККМ: 001 [13:43:44]line Талоны: Топливные Талоны [13:43:44]line 4690464 [13:43:44]line ФМ: 0000000000871839 [13:43:44]line ФД: 228234 [13:43:44]line ФПД: 262910679046604 [13:43:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134346&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228234&fm=262910679046604&tin=02508201610067®Number=0000000000091685&sum=0 [13:43:44]OFD Sender: Processing packet 228234 [packets to send 38, broken 37] [13:43:44]ProducePacketName [13:43:44]name=ofd_packets/00228234 [13:43:44]OFD Sender: To server: pG, [13:43:44]CommunicateWithHost lk.salyk.kg:30040 [13:43:44]ConnectInit lk.salyk.kg [13:43:44]written 0, free lines is 4095 [13:43:44]Connected sock=10 [13:43:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 A5 21 04 01 E8 E7 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 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 12 AC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8A 7B 03 00 35 04 06 00 EF 1D A9 A1 D9 CC 63 8B DD 9E A7 F6 A5 2C [13:43:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 37 31 47 00 07 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8A 7B 03 00 F4 03 04 00 0B 57 17 67 B6 04 01 00 00 F6 95 9C 91 71 86 CB 48 [13:43:44]CommunicateWithHost err = 0 [13:43:44]CheckOFDResponse [13:43:44]1017 (14) - 77093643461234 [13:43:44]1041 (16) - 0000000000871839 [13:43:44]1040 (4) - 228234 [13:43:44]1012 (4) - 22.10.2024 07:40 [13:43:44]1206 (1) - 0 [13:43:44]OFD Sender: Remove packet 228234 [13:43:44]ProducePacketName [13:43:44]name=ofd_packets/00228234 [13:43:44]NVStorageDeleteData [13:43:45]Write to MH i2c: 01 00 00 18 3C 54 [13:43:45]Write i2c OK [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: 01 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: 01 07 00 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: 01 07 00 18 3C 00 00 00 00 00 E7 0C 4E [13:43:45]RasterBufferAndPrint [13:43:45]line [13:43:45]line [13:43:45]line [13:43:45]line [13:43:45]line [13:43:45]written 0, free lines is 3310 [13:43:45]MH_Cut [13:43:45]Write to MH i2c: D1 01 00 1F 3C 01 2D [13:43:45]Write i2c OK [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: D1 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: D1 01 00 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: D1 01 00 1F 3C 00 2C [13:43:45]Write to MH i2c: 01 00 00 20 3C 5C [13:43:45]Write i2c OK [13:43:45]MH_I2C_Read... [13:43:45]OFD Sender: No OFD packet to send [13:43:45]*** Cut start [13:43:45]*** Partial cut [13:43:45]*** CUTSNS_PIN = 1 [13:43:45]*** CUTSNS_PIN = 0 [13:43:46]*** Brake cut motor [13:43:46]Read from MH i2c: 01 [13:43:46]MH_I2C_Read... [13:43:46]*** Stop cut motor [13:43:46]*** Cut end [13:43:46]Read from MH i2c: 01 07 00 [13:43:46]MH_I2C_Read... [13:43:46]Read from MH i2c: 01 07 00 20 3C 00 00 00 00 00 FF 0F 71 [13:43:46]process_action close_receipt done [13:43:46]requested_data is exist [13:43:46]produce_requested_data [13:43:46]requested_item fm.sn is exist - process it [13:43:46]wFMCommunicate request_size=4 [13:43:46]MH_SAM_APDU [13:43:46]CAPDU: 80 11 00 00 [13:43:46]Write to MH i2c: E2 08 00 21 3C 80 11 00 00 00 00 00 00 D7 [13:43:46]Write i2c OK [13:43:46]MH_I2C_Read... [13:43:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:46]Read from MH i2c: E2 [13:43:46]MH_I2C_Read... [13:43:46]Read from MH i2c: E2 17 00 [13:43:46]MH_I2C_Read... [13:43:46]Read from MH i2c: E2 17 00 21 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2E [13:43:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:43:46]wFMCommunicate OK [13:43:46]requested_item fd.num is exist - process it [13:43:46]SAM_PROTO_GetFieldsCounters [13:43:46]wFMCommunicate request_size=4 [13:43:46]MH_SAM_APDU [13:43:46]CAPDU: 80 13 00 00 [13:43:46]Write to MH i2c: E2 08 00 22 3C 80 13 00 00 00 00 00 00 DA [13:43:46]Write i2c OK [13:43:46]MH_I2C_Read... [13:43:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:46]Read from MH i2c: E2 [13:43:46]MH_I2C_Read... [13:43:46]Read from MH i2c: E2 62 00 [13:43:46]MH_I2C_Read... [13:43:46]Read from MH i2c: E2 62 00 22 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8A 7B 03 00 0E 04 04 00 17 02 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 76 [13:43:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8A 7B 03 00 0E 04 04 00 17 02 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 [13:43:46]wFMCommunicate OK [13:43:46]SAM_PROTO_GetFieldsCounters done [13:43:46]requested_item shift.num is exist - process it [13:43:46]requested_item shift.opened is exist - process it [13:43:46]req_shift_opened [13:43:46]FM_GetShiftState [13:43:46]SAM_PROTO_GetShiftState [13:43:46]wFMCommunicate request_size=4 [13:43:46]MH_SAM_APDU [13:43:46]CAPDU: 80 13 01 00 [13:43:46]Write to MH i2c: E2 08 00 23 3C 80 13 01 00 00 00 00 00 DC [13:43:46]Write i2c OK [13:43:46]MH_I2C_Read... [13:43:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:46]Read from MH i2c: E2 [13:43:46]MH_I2C_Read... [13:43:46]Read from MH i2c: E2 0E 00 [13:43:46]MH_I2C_Read... [13:43:46]Read from MH i2c: E2 0E 00 23 3C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 A3 [13:43:46]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:43:46]wFMCommunicate OK [13:43:46]SAM_PROTO_GetShiftState done [13:43:46]FM_GetShiftState done [13:43:46]req_shift_opened done [13:43:46]requested_item shift.open_date is exist - process it [13:43:46]req_shift_open_date [13:43:46]req_shift_open_date done [13:43:46]produce_requested_data done [13:43:46]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228234,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:43:46]process_action_free close_receipt [13:43:46]json_value_free [13:43:46]json_value_free done [13:43:46]process_json_proto returns [13:43:46]Send response to host [13:43:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228234,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:43:46]free response buf [13:43:46]execute_script done [13:43:46]execute_script returns [13:43:46]free content buf [13:43:46]Sock 9.Close socket [13:43:46]Sock 9.Thread stoped [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:06]accept exits with 7 [13:45:06]New connection [13:45:06]New thread 3066994020 created [13:45:06]Thread 3067137380 joined [13:45:06]Waiting for new connection... [13:45:06] Sock 7.Parse request [13:45:06]Sock 7.Check first char [13:45:06]Sock 7.First char is OK [13:45:06]request: POST /json_proto HTTP/1.0 [13:45:06]Method: POST [13:45:06]URL: /json_proto [13:45:06]Method is POST - this is cgi request [13:45:06]url: /json_proto [13:45:06]query_string will be loaded in cgi processing [13:45:06]execute_cgi json_proto POST (null) [13:45:06]execute_cgi path=json_proto method=POST [13:45:06]POST find Content-Length [13:45:06]Host: 172.17.44.195:8080 [13:45:06]Content-Length: 841 [13:45:06]Content-Type: application/json [13:45:06] [13:45:06]POST finish read [13:45:06]Found Content-Length = 841 [13:45:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:06]execute_script... [13:45:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:06]POST & json_proto [13:45:06]process_json_proto [13:45:06]json parsed OK: [13:45:06]protocol is kg_v1.0 [13:45:06]action value=close_receipt [13:45:06]process_action close_receipt [13:45:06]cmd_close_receipt [13:45:06]MH_GetDate [13:45:06]Write to MH i2c: F0 00 00 24 3C 4F [13:45:06]Write i2c OK [13:45:06]MH_I2C_Read... [13:45:06]Read from MH i2c: F0 [13:45:06]MH_I2C_Read... [13:45:06]Read from MH i2c: F0 09 00 [13:45:06]MH_I2C_Read... [13:45:06]Read from MH i2c: F0 09 00 24 3C 00 66 AC 17 67 82 C9 CF 66 68 [13:45:06]GetLastDocTimeStamp 1729604626 [13:45:06]current date 1729604710 [13:45:06]FM_GetShiftState [13:45:06]SAM_PROTO_GetShiftState [13:45:06]wFMCommunicate request_size=4 [13:45:06]MH_SAM_APDU [13:45:06]CAPDU: 80 13 01 00 [13:45:06]Write to MH i2c: E2 08 00 25 3C 80 13 01 00 00 00 00 00 DE [13:45:06]Write i2c OK [13:45:06]MH_I2C_Read... [13:45:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:06]Read from MH i2c: E2 [13:45:06]MH_I2C_Read... [13:45:06]Read from MH i2c: E2 0E 00 [13:45:06]MH_I2C_Read... [13:45:06]Read from MH i2c: E2 0E 00 25 3C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 A5 [13:45:06]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:45:06]wFMCommunicate OK [13:45:06]SAM_PROTO_GetShiftState done [13:45:06]FM_GetShiftState done [13:45:06]opened in 1729555538 [13:45:06]opened+sec_in_day 1729641938 [13:45:06]quantity*price = 50041 [13:45:06]sum+1 = 50042 [13:45:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 199 22.10.2024 13:45 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000871839 ФД: 228235 ФПД: 116747788153749 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134510&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228235&fm=116747788153749&tin=02508201610067®Number=0000000000091685&sum=50041 [13:45:07]StoreToDocumentArchive [13:45:07]shift 535 fd 228235 [13:45:07]save to /storage/0535/doc_00228235 [13:45:07]save last doc name /storage/0535/doc_00228235 to /storage/kkm_last_doc_name [13:45:07]save OK [13:45:07]Clear old archive folders... [13:45:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:45:07]tlvbuf is B6F85CA0 [13:45:07]SAM_PROTO_ClearQueue [13:45:07]wFMCommunicate request_size=4 [13:45:07]MH_SAM_APDU [13:45:07]CAPDU: 80 09 00 00 [13:45:07]Write to MH i2c: E2 08 00 32 3C 80 09 00 00 00 00 00 00 E0 [13:45:07]Write i2c OK [13:45:07]MH_I2C_Read... [13:45:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:07]Read from MH i2c: E2 [13:45:07]MH_I2C_Read... [13:45:07]Read from MH i2c: E2 03 00 [13:45:07]MH_I2C_Read... [13:45:07]Read from MH i2c: E2 03 00 32 3C 00 90 00 E2 [13:45:07]RAPDU: 90 00 [13:45:07]wFMCommunicate OK [13:45:07]SAM_PROTO_ClearQueue done [13:45:07]KKMCreateOFDPacket [13:45:07]OFDProtocolAddRootSTLVToBuf [13:45:07]FM_MakeSignedData [13:45:07]FM_MakeSignedData [13:45:07]SAM_PROTO_SignData [13:45:07]wFMCommunicate request_size=4 [13:45:07]MH_SAM_APDU [13:45:07]CAPDU: 80 0D 01 02 [13:45:07]Write to MH i2c: E2 08 00 33 3C 80 0D 01 02 00 00 00 00 E8 [13:45:07]Write i2c OK [13:45:07]MH_I2C_Read... [13:45:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:07]Read from MH i2c: E2 [13:45:07]MH_I2C_Read... [13:45:07]Read from MH i2c: E2 03 00 [13:45:07]MH_I2C_Read... [13:45:07]Read from MH i2c: E2 03 00 33 3C 00 90 00 E3 [13:45:07]RAPDU: 90 00 [13:45:07]wFMCommunicate OK [13:45:07]wFMCommunicate request_size=255 [13:45:07]MH_SAM_APDU [13:45: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 66 AC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8B 7B 03 00 35 04 06 00 6A [13:45:07]Write to MH i2c: E2 02 01 34 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 66 AC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8B 7B 03 00 35 04 06 00 6A 00 00 B4 [13:45:07]Write i2c OK [13:45:07]MH_I2C_Read... [13:45:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:07]Read from MH i2c: E2 [13:45:07]MH_I2C_Read... [13:45:07]Read from MH i2c: E2 03 00 [13:45:07]MH_I2C_Read... [13:45:07]Read from MH i2c: E2 03 00 34 3C 00 90 00 E4 [13:45:07]RAPDU: 90 00 [13:45:07]wFMCommunicate OK [13:45:07]wFMCommunicate request_size=10 [13:45:07]MH_SAM_APDU [13:45:07]CAPDU: 80 0D 02 02 05 2E 76 70 F3 95 [13:45:07]Write to MH i2c: E2 0D 00 35 3C 80 0D 02 02 05 00 2E 76 70 F3 95 00 00 91 [13:45:07]Write i2c OK [13:45:07]MH_I2C_Read... [13:45:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:07]Read from MH i2c: E2 [13:45:07]MH_I2C_Read... [13:45:07]Read from MH i2c: E2 03 00 [13:45:07]MH_I2C_Read... [13:45:07]Read from MH i2c: E2 03 00 35 3C 00 90 00 E5 [13:45:07]RAPDU: 90 00 [13:45:07]wFMCommunicate OK [13:45:07]wFMCommunicate request_size=4 [13:45:07]MH_SAM_APDU [13:45:07]CAPDU: 80 0D 03 02 [13:45:07]Write to MH i2c: E2 08 00 36 3C 80 0D 03 02 00 00 00 00 ED [13:45:07]Write i2c OK [13:45:07]MH_I2C_Read... [13:45:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:07]Read from MH i2c: E2 [13:45:07]MH_I2C_Read... [13:45:07]Read from MH i2c: E2 0B 00 [13:45:07]MH_I2C_Read... [13:45:07]Read from MH i2c: E2 0B 00 36 3C 00 85 97 4B 5B 55 45 23 E4 90 00 51 [13:45:07]RAPDU: 85 97 4B 5B 55 45 23 E4 90 00 [13:45:07]wFMCommunicate OK [13:45:07]SAM_PROTO_SignData done [13:45:07]FM_MakeSignedData done [13:45:07]CreateOFDProtocolMessage [13:45:07]wFMCommunicate request_size=4 [13:45:07]MH_SAM_APDU [13:45:07]CAPDU: 80 11 00 00 [13:45:07]Write to MH i2c: E2 08 00 37 3C 80 11 00 00 00 00 00 00 ED [13:45:07]Write i2c OK [13:45:07]MH_I2C_Read... [13:45:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:07]Read from MH i2c: E2 [13:45:07]MH_I2C_Read... [13:45:07]Read from MH i2c: E2 17 00 [13:45:07]MH_I2C_Read... [13:45:07]Read from MH i2c: E2 17 00 37 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 44 [13:45:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:45:07]wFMCommunicate OK [13:45:07]CreateOFDProtocolMessage done [13:45:07]OFDSenderStorePacket 228235 [13:45:07]StoreOFDPacket docnum=228235 [13:45:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 E6 9B 07 01 8E E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 66 AC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8B 7B 03 00 35 04 06 00 6A 2E 76 70 F3 95 85 97 4B 5B 55 45 23 E4 [13:45:07]CheckFolder [13:45:07]dirname=/storage/ofd_packets [13:45:07]CheckFolder done [13:45:07]ProducePacketName [13:45:07]name=ofd_packets/00228235 [13:45:07]NVStorageSaveData ofd_packets/00228235 [13:45:07]File name is /storage/ofd_packets/00228235 [13:45:07]Write 301 bytes [13:45:07]NVStorageSaveData done [13:45:07]OFDSenderStorePacket done [13:45:07]KKMCreateOFDPacket done [13:45:07]NVStorageSaveData kkm_last_timestamp [13:45:07]File name is /storage/kkm_last_timestamp [13:45:07]Write 4 bytes [13:45:07]NVStorageSaveData done [13:45:07]ExternCall_PrintAddStr [13:45:07]wPrintStart [13:45:07]Write to MH i2c: 01 00 00 38 3C 74 [13:45:07]Write i2c OK [13:45:07]MH_I2C_Read... [13:45:07]Read from MH i2c: 01 [13:45:07]MH_I2C_Read... [13:45:07]Read from MH i2c: 01 07 00 [13:45:07]MH_I2C_Read... [13:45:07]Read from MH i2c: 01 07 00 38 3C 00 00 00 00 00 FF 0F 89 [13:45:07]RasterBufferAndPrint [13:45:07]line Счет N : (1)1964693 [13:45:07]line ИНН: 02508201610067 [13:45:07]line Контрольно-Кассовый Чек [13:45:07]line ПРОДАЖА [13:45:07]line ТРК (МРК, ГНК) : 33 [13:45:07]line Товар: 2710124130 [13:45:07]line Аи-92-К-5 [13:45:07]line 7.480 * 66.90 [13:45:07]line = 500.41 [13:45:07]line НДС 12% НСП 1% [13:45:07]line > о реализуемом товаре [13:45:07]line ИТОГО: 500.41 [13:45:07]line НСП 1% : 4.43 [13:45:07]line НДС 12% : 53.14 [13:45:07]line Наличными: 0.00 [13:45:07]line Безнал.: 500.41 [13:45:07]line Место: АЗС № 133 "Партнер Нефть" [13:45:07]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:45:07]line СНО: Общий режим [13:45:07]line Чек 199 22.10.2024 13:45 [13:45:07]line Смена: 535 ФФД: 1.0 [13:45:07]line ЗНМ: 0300000091 [13:45:07]line РНМ: 0000000000091685 [13:45:07]line Версия ККМ: 001 [13:45:07]line Платежная система: АКБ Кыргызстан [13:45:07]line ФМ: 0000000000871839 [13:45:07]line ФД: 228235 [13:45:07]line ФПД: 116747788153749 [13:45:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134510&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228235&fm=116747788153749&tin=02508201610067®Number=0000000000091685&sum=50041 [13:45:07]OFD Sender: Processing packet 228235 [packets to send 38, broken 37] [13:45:07]ProducePacketName [13:45:07]name=ofd_packets/00228235 [13:45:07]OFD Sender: To server: pG, [13:45:07]CommunicateWithHost lk.salyk.kg:30040 [13:45:07]ConnectInit lk.salyk.kg [13:45:07]written 0, free lines is 4095 [13:45:08]Connected sock=9 [13:45:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 E6 9B 07 01 8E E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 66 AC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8B 7B 03 00 35 04 06 00 6A 2E 76 70 F3 95 85 97 4B 5B 55 45 23 E4 [13:45:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 26 B3 47 00 52 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8B 7B 03 00 F4 03 04 00 5E 57 17 67 B6 04 01 00 00 B4 5A 8E A3 F8 EA 85 07 [13:45:08]CommunicateWithHost err = 0 [13:45:08]CheckOFDResponse [13:45:08]1017 (14) - 77093643461234 [13:45:08]1041 (16) - 0000000000871839 [13:45:08]1040 (4) - 228235 [13:45:08]1012 (4) - 22.10.2024 07:42 [13:45:08]1206 (1) - 0 [13:45:08]OFD Sender: Remove packet 228235 [13:45:08]ProducePacketName [13:45:08]name=ofd_packets/00228235 [13:45:08]NVStorageDeleteData [13:45:08]Write to MH i2c: 01 00 00 61 3C 9D [13:45:08]Write i2c OK [13:45:08]MH_I2C_Read... [13:45:08]Read from MH i2c: 01 [13:45:08]MH_I2C_Read... [13:45:08]Read from MH i2c: 01 07 00 [13:45:08]MH_I2C_Read... [13:45:08]Read from MH i2c: 01 07 00 61 3C 00 00 00 00 00 E9 0C 99 [13:45:08]RasterBufferAndPrint [13:45:08]line [13:45:08]line [13:45:08]line [13:45:08]line [13:45:08]line [13:45:08]written 0, free lines is 3312 [13:45:08]MH_Cut [13:45:08]Write to MH i2c: D1 01 00 68 3C 01 76 [13:45:08]Write i2c OK [13:45:08]MH_I2C_Read... [13:45:08]Read from MH i2c: D1 [13:45:08]MH_I2C_Read... [13:45:08]Read from MH i2c: D1 01 00 [13:45:08]MH_I2C_Read... [13:45:08]Read from MH i2c: D1 01 00 68 3C 00 75 [13:45:08]Write to MH i2c: 01 00 00 69 3C A5 [13:45:08]Write i2c OK [13:45:08]MH_I2C_Read... [13:45:08]OFD Sender: No OFD packet to send [13:45:09]*** Cut start [13:45:09]*** Partial cut [13:45:09]*** CUTSNS_PIN = 1 [13:45:09]*** CUTSNS_PIN = 0 [13:45:09]*** Brake cut motor [13:45:09]Read from MH i2c: 01 [13:45:09]MH_I2C_Read... [13:45:09]*** Stop cut motor [13:45:09]*** Cut end [13:45:09]Read from MH i2c: 01 07 00 [13:45:09]MH_I2C_Read... [13:45:09]Read from MH i2c: 01 07 00 69 3C 00 00 00 00 00 FF 0F BA [13:45:09]process_action close_receipt done [13:45:09]requested_data is exist [13:45:09]produce_requested_data [13:45:09]requested_item fm.sn is exist - process it [13:45:09]wFMCommunicate request_size=4 [13:45:09]MH_SAM_APDU [13:45:09]CAPDU: 80 11 00 00 [13:45:09]Write to MH i2c: E2 08 00 6A 3C 80 11 00 00 00 00 00 00 20 [13:45:09]Write i2c OK [13:45:09]MH_I2C_Read... [13:45:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:09]Read from MH i2c: E2 [13:45:09]MH_I2C_Read... [13:45:09]Read from MH i2c: E2 17 00 [13:45:09]MH_I2C_Read... [13:45:09]Read from MH i2c: E2 17 00 6A 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 77 [13:45:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:45:09]wFMCommunicate OK [13:45:09]requested_item fd.num is exist - process it [13:45:09]SAM_PROTO_GetFieldsCounters [13:45:09]wFMCommunicate request_size=4 [13:45:09]MH_SAM_APDU [13:45:09]CAPDU: 80 13 00 00 [13:45:09]Write to MH i2c: E2 08 00 6B 3C 80 13 00 00 00 00 00 00 23 [13:45:09]Write i2c OK [13:45:09]MH_I2C_Read... [13:45:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:10]Read from MH i2c: E2 [13:45:10]MH_I2C_Read... [13:45:10]Read from MH i2c: E2 62 00 [13:45:10]MH_I2C_Read... [13:45:10]Read from MH i2c: E2 62 00 6B 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8B 7B 03 00 0E 04 04 00 17 02 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 C3 [13:45:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8B 7B 03 00 0E 04 04 00 17 02 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 [13:45:10]wFMCommunicate OK [13:45:10]SAM_PROTO_GetFieldsCounters done [13:45:10]requested_item shift.num is exist - process it [13:45:10]requested_item shift.opened is exist - process it [13:45:10]req_shift_opened [13:45:10]FM_GetShiftState [13:45:10]SAM_PROTO_GetShiftState [13:45:10]wFMCommunicate request_size=4 [13:45:10]MH_SAM_APDU [13:45:10]CAPDU: 80 13 01 00 [13:45:10]Write to MH i2c: E2 08 00 6C 3C 80 13 01 00 00 00 00 00 25 [13:45:10]Write i2c OK [13:45:10]MH_I2C_Read... [13:45:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:10]Read from MH i2c: E2 [13:45:10]MH_I2C_Read... [13:45:10]Read from MH i2c: E2 0E 00 [13:45:10]MH_I2C_Read... [13:45:10]Read from MH i2c: E2 0E 00 6C 3C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 EC [13:45:10]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:45:10]wFMCommunicate OK [13:45:10]SAM_PROTO_GetShiftState done [13:45:10]FM_GetShiftState done [13:45:10]req_shift_opened done [13:45:10]requested_item shift.open_date is exist - process it [13:45:10]req_shift_open_date [13:45:10]req_shift_open_date done [13:45:10]produce_requested_data done [13:45:10]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228235,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:45:10]process_action_free close_receipt [13:45:10]json_value_free [13:45:10]json_value_free done [13:45:10]process_json_proto returns [13:45:10]Send response to host [13:45:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228235,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:45:10]free response buf [13:45:10]execute_script done [13:45:10]execute_script returns [13:45:10]free content buf [13:45:10]Sock 7.Close socket [13:45:10]Sock 7.Thread stoped [13:45:13]OFD Sender: No OFD packet to send [13:45:18]OFD Sender: No OFD packet to send [13:45:21]accept exits with 10 [13:45:21]New connection [13:45:21]New thread 3067137380 created [13:45:21]Thread 3066994020 joined [13:45:21]Waiting for new connection... [13:45:21] Sock 10.Parse request [13:45:21]Sock 10.Check first char [13:45:21]Sock 10.First char is OK [13:45:21]request: POST /json_proto HTTP/1.0 [13:45:21]Method: POST [13:45:21]URL: /json_proto [13:45:21]Method is POST - this is cgi request [13:45:21]url: /json_proto [13:45:21]query_string will be loaded in cgi processing [13:45:21]execute_cgi json_proto POST (null) [13:45:21]execute_cgi path=json_proto method=POST [13:45:21]POST find Content-Length [13:45:21]Host: 172.17.44.195:8080 [13:45:21]Content-Length: 664 [13:45:21]Content-Type: application/json [13:45:21] [13:45:21]POST finish read [13:45:21]Found Content-Length = 664 [13:45:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 17.550, "sum" : 1200.42, "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" ] } } [13:45:21]execute_script... [13:45: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)1964692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 17.550, "sum" : 1200.42, "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" ] } } [13:45:21]POST & json_proto [13:45:21]process_json_proto [13:45:21]json parsed OK: [13:45:21]protocol is kg_v1.0 [13:45:21]action value=close_receipt [13:45:21]process_action close_receipt [13:45:21]cmd_close_receipt [13:45:21]MH_GetDate [13:45:21]Write to MH i2c: F0 00 00 6D 3C 98 [13:45:21]Write i2c OK [13:45:21]MH_I2C_Read... [13:45:21]Read from MH i2c: F0 [13:45:21]MH_I2C_Read... [13:45:21]Read from MH i2c: F0 09 00 [13:45:21]MH_I2C_Read... [13:45:21]Read from MH i2c: F0 09 00 6D 3C 00 75 AC 17 67 82 C9 CF 66 C0 [13:45:21]GetLastDocTimeStamp 1729604710 [13:45:21]current date 1729604725 [13:45:21]FM_GetShiftState [13:45:21]SAM_PROTO_GetShiftState [13:45:21]wFMCommunicate request_size=4 [13:45:21]MH_SAM_APDU [13:45:21]CAPDU: 80 13 01 00 [13:45:21]Write to MH i2c: E2 08 00 6E 3C 80 13 01 00 00 00 00 00 27 [13:45:21]Write i2c OK [13:45:21]MH_I2C_Read... [13:45:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:21]Read from MH i2c: E2 [13:45:21]MH_I2C_Read... [13:45:21]Read from MH i2c: E2 0E 00 [13:45:21]MH_I2C_Read... [13:45:21]Read from MH i2c: E2 0E 00 6E 3C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 EE [13:45:21]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:45:21]wFMCommunicate OK [13:45:21]SAM_PROTO_GetShiftState done [13:45:21]FM_GetShiftState done [13:45:21]opened in 1729555538 [13:45:21]opened+sec_in_day 1729641938 [13:45:21]quantity*price = 120042 [13:45:21]sum+1 = 120043 [13:45:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 200 22.10.2024 13:45 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228236 ФПД: 141413109710988 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134525&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228236&fm=141413109710988&tin=02508201610067®Number=0000000000091685&sum=120000 [13:45:22]StoreToDocumentArchive [13:45:22]shift 535 fd 228236 [13:45:22]save to /storage/0535/doc_00228236 [13:45:22]save last doc name /storage/0535/doc_00228236 to /storage/kkm_last_doc_name [13:45:22]save OK [13:45:22]Clear old archive folders... [13:45:22]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:45:22]tlvbuf is 0092DA80 [13:45:22]SAM_PROTO_ClearQueue [13:45:22]wFMCommunicate request_size=4 [13:45:22]MH_SAM_APDU [13:45:22]CAPDU: 80 09 00 00 [13:45:22]Write to MH i2c: E2 08 00 7B 3C 80 09 00 00 00 00 00 00 29 [13:45:22]Write i2c OK [13:45:22]MH_I2C_Read... [13:45:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:22]Read from MH i2c: E2 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 03 00 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 03 00 7B 3C 00 90 00 2B [13:45:22]RAPDU: 90 00 [13:45:22]wFMCommunicate OK [13:45:22]SAM_PROTO_ClearQueue done [13:45:22]KKMCreateOFDPacket [13:45:22]OFDProtocolAddRootSTLVToBuf [13:45:22]FM_MakeSignedData [13:45:22]FM_MakeSignedData [13:45:22]SAM_PROTO_SignData [13:45:22]wFMCommunicate request_size=4 [13:45:22]MH_SAM_APDU [13:45:22]CAPDU: 80 0D 01 02 [13:45:22]Write to MH i2c: E2 08 00 7C 3C 80 0D 01 02 00 00 00 00 31 [13:45:22]Write i2c OK [13:45:22]MH_I2C_Read... [13:45:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:22]Read from MH i2c: E2 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 03 00 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 03 00 7C 3C 00 90 00 2C [13:45:22]RAPDU: 90 00 [13:45:22]wFMCommunicate OK [13:45:22]wFMCommunicate request_size=253 [13:45:22]MH_SAM_APDU [13:45:22]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 44 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 EA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 75 AC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8C 7B 03 00 35 04 06 00 80 9D 4E 2B C0 8C [13:45:22]Write to MH i2c: E2 00 01 7D 3C 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 44 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 EA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 75 AC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8C 7B 03 00 35 04 06 00 80 9D 4E 2B C0 8C 00 00 11 [13:45:22]Write i2c OK [13:45:22]MH_I2C_Read... [13:45:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:22]Read from MH i2c: E2 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 03 00 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 03 00 7D 3C 00 90 00 2D [13:45:22]RAPDU: 90 00 [13:45:22]wFMCommunicate OK [13:45:22]wFMCommunicate request_size=4 [13:45:22]MH_SAM_APDU [13:45:22]CAPDU: 80 0D 03 02 [13:45:22]Write to MH i2c: E2 08 00 7E 3C 80 0D 03 02 00 00 00 00 35 [13:45:22]Write i2c OK [13:45:22]MH_I2C_Read... [13:45:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:22]Read from MH i2c: E2 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 0B 00 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 0B 00 7E 3C 00 8C 4D CE 7F E9 19 B3 6A 90 00 7B [13:45:22]RAPDU: 8C 4D CE 7F E9 19 B3 6A 90 00 [13:45:22]wFMCommunicate OK [13:45:22]SAM_PROTO_SignData done [13:45:22]FM_MakeSignedData done [13:45:22]CreateOFDProtocolMessage [13:45:22]wFMCommunicate request_size=4 [13:45:22]MH_SAM_APDU [13:45:22]CAPDU: 80 11 00 00 [13:45:22]Write to MH i2c: E2 08 00 7F 3C 80 11 00 00 00 00 00 00 35 [13:45:22]Write i2c OK [13:45:22]MH_I2C_Read... [13:45:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:22]Read from MH i2c: E2 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 17 00 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 17 00 7F 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8C [13:45:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:45:22]wFMCommunicate OK [13:45:22]CreateOFDProtocolMessage done [13:45:22]OFDSenderStorePacket 228236 [13:45:22]StoreOFDPacket docnum=228236 [13:45:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 BA 4B 00 01 36 73 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 44 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 EA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 75 AC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8C 7B 03 00 35 04 06 00 80 9D 4E 2B C0 8C 8C 4D CE 7F E9 19 B3 6A [13:45:22]CheckFolder [13:45:22]dirname=/storage/ofd_packets [13:45:22]CheckFolder done [13:45:22]ProducePacketName [13:45:22]name=ofd_packets/00228236 [13:45:22]NVStorageSaveData ofd_packets/00228236 [13:45:22]File name is /storage/ofd_packets/00228236 [13:45:22]Write 294 bytes [13:45:22]NVStorageSaveData done [13:45:22]OFDSenderStorePacket done [13:45:22]KKMCreateOFDPacket done [13:45:22]NVStorageSaveData kkm_last_timestamp [13:45:22]File name is /storage/kkm_last_timestamp [13:45:22]Write 4 bytes [13:45:22]NVStorageSaveData done [13:45:22]ExternCall_PrintAddStr [13:45:22]wPrintStart [13:45:22]Write to MH i2c: 01 00 00 80 3C BC [13:45:22]Write i2c OK [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: 01 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: 01 07 00 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: 01 07 00 80 3C 00 00 00 00 00 FF 0F D1 [13:45:22]RasterBufferAndPrint [13:45:22]line Счет N : (1)1964692 [13:45:22]line ИНН: 02508201610067 [13:45:22]line Контрольно-Кассовый Чек [13:45:22]line ПРОДАЖА [13:45:22]line ТРК (МРК, ГНК) : 42 [13:45:22]line Товар: 2710124130 [13:45:22]line SU-92 [13:45:22]line 17.550 * 68.40 [13:45:22]line = 1200.42 [13:45:22]line НДС 12% НСП 1% [13:45:22]line > о реализуемом товаре [13:45:22]line ОКРУГЛЕНИЕ: -0.42 [13:45:22]line ИТОГО: 1200.00 [13:45:22]line Внесено: 1200.00 [13:45:22]line СДАЧА: 0.00 [13:45:22]line НСП 1% : 10.62 [13:45:22]line НДС 12% : 127.48 [13:45:22]line Наличными: 1200.00 [13:45:22]line Безнал.: 0.00 [13:45:22]line Место: АЗС № 133 "Партнер Нефть" [13:45:22]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:45:22]line СНО: Общий режим [13:45:22]line Чек 200 22.10.2024 13:45 [13:45:22]line Смена: 535 ФФД: 1.0 [13:45:22]line ЗНМ: 0300000091 [13:45:22]line РНМ: 0000000000091685 [13:45:22]line Версия ККМ: 001 [13:45:22]line ФМ: 0000000000871839 [13:45:22]line ФД: 228236 [13:45:22]line ФПД: 141413109710988 [13:45:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134525&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228236&fm=141413109710988&tin=02508201610067®Number=0000000000091685&sum=120000 [13:45:23]OFD Sender: Processing packet 228236 [packets to send 38, broken 37] [13:45:23]ProducePacketName [13:45:23]name=ofd_packets/00228236 [13:45:23]OFD Sender: To server: pG, [13:45:23]CommunicateWithHost lk.salyk.kg:30040 [13:45:23]ConnectInit lk.salyk.kg [13:45:23]written 0, free lines is 4095 [13:45:23]Connected sock=9 [13:45:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 BA 4B 00 01 36 73 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 44 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 EA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 75 AC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8C 7B 03 00 35 04 06 00 80 9D 4E 2B C0 8C 8C 4D CE 7F E9 19 B3 6A [13:45:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 DF D9 47 00 21 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8C 7B 03 00 F4 03 04 00 6D 57 17 67 B6 04 01 00 00 5D DB A4 E3 E4 AD 15 BE [13:45:23]CommunicateWithHost err = 0 [13:45:23]CheckOFDResponse [13:45:23]1017 (14) - 77093643461234 [13:45:23]1041 (16) - 0000000000871839 [13:45:23]1040 (4) - 228236 [13:45:23]1012 (4) - 22.10.2024 07:42 [13:45:23]1206 (1) - 0 [13:45:23]OFD Sender: Remove packet 228236 [13:45:23]ProducePacketName [13:45:23]name=ofd_packets/00228236 [13:45:23]NVStorageDeleteData [13:45:23]Write to MH i2c: 01 00 00 AA 3C E6 [13:45:23]Write i2c OK [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: 01 [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: 01 07 00 [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: 01 07 00 AA 3C 00 00 00 00 00 BE 0C B7 [13:45:23]RasterBufferAndPrint [13:45:23]line [13:45:23]line [13:45:23]line [13:45:23]line [13:45:23]line [13:45:23]written 0, free lines is 3267 [13:45:23]MH_Cut [13:45:23]Write to MH i2c: D1 01 00 B1 3C 01 BF [13:45:23]Write i2c OK [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: D1 [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: D1 01 00 [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: D1 01 00 B1 3C 00 BE [13:45:23]Write to MH i2c: 01 00 00 B2 3C EE [13:45:23]Write i2c OK [13:45:23]MH_I2C_Read... [13:45:24]OFD Sender: No OFD packet to send [13:45:24]*** Cut start [13:45:24]*** Partial cut [13:45:24]*** CUTSNS_PIN = 1 [13:45:24]*** CUTSNS_PIN = 0 [13:45:24]*** Brake cut motor [13:45:25]Read from MH i2c: 01 [13:45:25]MH_I2C_Read... [13:45:25]*** Stop cut motor [13:45:25]*** Cut end [13:45:25]Read from MH i2c: 01 07 00 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: 01 07 00 B2 3C 00 00 00 00 00 FF 0F 03 [13:45:25]process_action close_receipt done [13:45:25]requested_data is exist [13:45:25]produce_requested_data [13:45:25]requested_item fm.sn is exist - process it [13:45:25]wFMCommunicate request_size=4 [13:45:25]MH_SAM_APDU [13:45:25]CAPDU: 80 11 00 00 [13:45:25]Write to MH i2c: E2 08 00 B3 3C 80 11 00 00 00 00 00 00 69 [13:45:25]Write i2c OK [13:45:25]MH_I2C_Read... [13:45:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:25]Read from MH i2c: E2 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: E2 17 00 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: E2 17 00 B3 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C0 [13:45:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:45:25]wFMCommunicate OK [13:45:25]requested_item fd.num is exist - process it [13:45:25]SAM_PROTO_GetFieldsCounters [13:45:25]wFMCommunicate request_size=4 [13:45:25]MH_SAM_APDU [13:45:25]CAPDU: 80 13 00 00 [13:45:25]Write to MH i2c: E2 08 00 B4 3C 80 13 00 00 00 00 00 00 6C [13:45:25]Write i2c OK [13:45:25]MH_I2C_Read... [13:45:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:25]Read from MH i2c: E2 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: E2 62 00 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: E2 62 00 B4 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8C 7B 03 00 0E 04 04 00 17 02 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 10 [13:45:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8C 7B 03 00 0E 04 04 00 17 02 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 [13:45:25]wFMCommunicate OK [13:45:25]SAM_PROTO_GetFieldsCounters done [13:45:25]requested_item shift.num is exist - process it [13:45:25]requested_item shift.opened is exist - process it [13:45:25]req_shift_opened [13:45:25]FM_GetShiftState [13:45:25]SAM_PROTO_GetShiftState [13:45:25]wFMCommunicate request_size=4 [13:45:25]MH_SAM_APDU [13:45:25]CAPDU: 80 13 01 00 [13:45:25]Write to MH i2c: E2 08 00 B5 3C 80 13 01 00 00 00 00 00 6E [13:45:25]Write i2c OK [13:45:25]MH_I2C_Read... [13:45:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:25]Read from MH i2c: E2 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: E2 0E 00 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: E2 0E 00 B5 3C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 35 [13:45:25]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:45:25]wFMCommunicate OK [13:45:25]SAM_PROTO_GetShiftState done [13:45:25]FM_GetShiftState done [13:45:25]req_shift_opened done [13:45:25]requested_item shift.open_date is exist - process it [13:45:25]req_shift_open_date [13:45:25]req_shift_open_date done [13:45:25]produce_requested_data done [13:45:25]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228236,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:45:25]process_action_free close_receipt [13:45:25]json_value_free [13:45:25]json_value_free done [13:45:25]process_json_proto returns [13:45:25]Send response to host [13:45:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228236,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:45:25]free response buf [13:45:25]execute_script done [13:45:25]execute_script returns [13:45:25]free content buf [13:45:25]Sock 10.Close socket [13:45:25]Sock 10.Thread stoped [13:45:29]OFD Sender: No OFD packet to send [13:45:34]OFD Sender: No OFD packet to send [13:45:39]OFD Sender: No OFD packet to send [13:45:44]OFD Sender: No OFD packet to send [13:45:49]OFD Sender: No OFD packet to send [13:45:54]OFD Sender: No OFD packet to send [13:45:59]OFD Sender: No OFD packet to send [13:46:04]OFD Sender: No OFD packet to send [13:46:09]OFD Sender: No OFD packet to send [13:46:14]OFD Sender: No OFD packet to send [13:46:19]OFD Sender: No OFD packet to send [13:46:24]OFD Sender: No OFD packet to send [13:46:29]OFD Sender: No OFD packet to send [13:46:34]OFD Sender: No OFD packet to send [13:46:39]OFD Sender: No OFD packet to send [13:46:44]OFD Sender: No OFD packet to send [13:46:49]OFD Sender: No OFD packet to send [13:46:54]OFD Sender: No OFD packet to send [13:46:59]OFD Sender: No OFD packet to send [13:47:04]OFD Sender: No OFD packet to send [13:47:09]OFD Sender: No OFD packet to send [13:47:14]OFD Sender: No OFD packet to send [13:47:19]OFD Sender: No OFD packet to send [13:47:24]OFD Sender: No OFD packet to send [13:47:29]OFD Sender: No OFD packet to send [13:47:34]OFD Sender: No OFD packet to send [13:47:39]OFD Sender: No OFD packet to send [13:47:44]OFD Sender: No OFD packet to send [13:47:49]OFD Sender: No OFD packet to send [13:47:54]OFD Sender: No OFD packet to send [13:47:59]OFD Sender: No OFD packet to send [13:48:04]OFD Sender: No OFD packet to send [13:48:09]OFD Sender: No OFD packet to send [13:48:14]OFD Sender: No OFD packet to send [13:48:19]OFD Sender: No OFD packet to send [13:48:24]OFD Sender: No OFD packet to send [13:48:29]OFD Sender: No OFD packet to send [13:48:34]OFD Sender: No OFD packet to send [13:48:39]OFD Sender: No OFD packet to send [13:48:41]accept exits with 7 [13:48:41]New connection [13:48:41]New thread 3066994020 created [13:48:41]Thread 3067137380 joined [13:48:41]Waiting for new connection... [13:48:41] Sock 7.Parse request [13:48:41]Sock 7.Check first char [13:48:41]Sock 7.First char is OK [13:48:41]request: POST /json_proto HTTP/1.0 [13:48:41]Method: POST [13:48:41]URL: /json_proto [13:48:41]Method is POST - this is cgi request [13:48:41]url: /json_proto [13:48:41]query_string will be loaded in cgi processing [13:48:41]execute_cgi json_proto POST (null) [13:48:41]execute_cgi path=json_proto method=POST [13:48:41]POST find Content-Length [13:48:41]Host: 172.17.44.195:8080 [13:48:41]Content-Length: 678 [13:48:41]Content-Type: application/json [13:48:41] [13:48:41]POST finish read [13:48:41]Found Content-Length = 678 [13:48:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964696", "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" : 66.90, "quantity" : 6.730, "sum" : 450.24, "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" ] } } [13:48:41]execute_script... [13:48: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)1964696", "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" : 66.90, "quantity" : 6.730, "sum" : 450.24, "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" ] } } [13:48:41]POST & json_proto [13:48:41]process_json_proto [13:48:41]json parsed OK: [13:48:41]protocol is kg_v1.0 [13:48:41]action value=close_receipt [13:48:41]process_action close_receipt [13:48:41]cmd_close_receipt [13:48:41]MH_GetDate [13:48:41]Write to MH i2c: F0 00 00 B6 3C E1 [13:48:41]Write i2c OK [13:48:41]MH_I2C_Read... [13:48:41]Read from MH i2c: F0 [13:48:41]MH_I2C_Read... [13:48:41]Read from MH i2c: F0 09 00 [13:48:41]MH_I2C_Read... [13:48:41]Read from MH i2c: F0 09 00 B6 3C 00 3E AD 17 67 82 C9 CF 66 D3 [13:48:41]GetLastDocTimeStamp 1729604725 [13:48:41]current date 1729604926 [13:48:41]FM_GetShiftState [13:48:41]SAM_PROTO_GetShiftState [13:48:41]wFMCommunicate request_size=4 [13:48:41]MH_SAM_APDU [13:48:41]CAPDU: 80 13 01 00 [13:48:41]Write to MH i2c: E2 08 00 B7 3C 80 13 01 00 00 00 00 00 70 [13:48:41]Write i2c OK [13:48:41]MH_I2C_Read... [13:48:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:41]Read from MH i2c: E2 [13:48:41]MH_I2C_Read... [13:48:41]Read from MH i2c: E2 0E 00 [13:48:41]MH_I2C_Read... [13:48:41]Read from MH i2c: E2 0E 00 B7 3C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 37 [13:48:41]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:48:41]wFMCommunicate OK [13:48:41]SAM_PROTO_GetShiftState done [13:48:41]FM_GetShiftState done [13:48:41]opened in 1729555538 [13:48:41]opened+sec_in_day 1729641938 [13:48:41]quantity*price = 45023 [13:48:41]sum+1 = 45025 [13:48:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 201 22.10.2024 13:48 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228237 ФПД: 74671362757593 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134846&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228237&fm=74671362757593&tin=02508201610067®Number=0000000000091685&sum=45000 [13:48:42]StoreToDocumentArchive [13:48:42]shift 535 fd 228237 [13:48:42]save to /storage/0535/doc_00228237 [13:48:42]save last doc name /storage/0535/doc_00228237 to /storage/kkm_last_doc_name [13:48:42]save OK [13:48:42]Clear old archive folders... [13:48:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:48:42]tlvbuf is 00A7C180 [13:48:42]SAM_PROTO_ClearQueue [13:48:42]wFMCommunicate request_size=4 [13:48:42]MH_SAM_APDU [13:48:42]CAPDU: 80 09 00 00 [13:48:42]Write to MH i2c: E2 08 00 C4 3C 80 09 00 00 00 00 00 00 72 [13:48:42]Write i2c OK [13:48:42]MH_I2C_Read... [13:48:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:48:43]Read from MH i2c: E2 [13:48:43]MH_I2C_Read... [13:48:43]Read from MH i2c: E2 03 00 [13:48:43]MH_I2C_Read... [13:48:43]Read from MH i2c: E2 03 00 C4 3C 00 90 00 74 [13:48:43]RAPDU: 90 00 [13:48:43]wFMCommunicate OK [13:48:43]SAM_PROTO_ClearQueue done [13:48:43]KKMCreateOFDPacket [13:48:43]OFDProtocolAddRootSTLVToBuf [13:48:43]FM_MakeSignedData [13:48:43]FM_MakeSignedData [13:48:43]SAM_PROTO_SignData [13:48:43]wFMCommunicate request_size=4 [13:48:43]MH_SAM_APDU [13:48:43]CAPDU: 80 0D 01 02 [13:48:43]Write to MH i2c: E2 08 00 C5 3C 80 0D 01 02 00 00 00 00 7A [13:48:43]Write i2c OK [13:48:43]MH_I2C_Read... [13:48:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:48:43]Read from MH i2c: E2 [13:48:43]MH_I2C_Read... [13:48:43]Read from MH i2c: E2 03 00 [13:48:43]MH_I2C_Read... [13:48:43]Read from MH i2c: E2 03 00 C5 3C 00 90 00 75 [13:48:43]RAPDU: 90 00 [13:48:43]wFMCommunicate OK [13:48:43]wFMCommunicate request_size=255 [13:48:43]MH_SAM_APDU [13:48: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 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 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 AD 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 C9 00 00 00 F4 03 04 00 3E AD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8D 7B 03 00 35 04 06 00 43 [13:48:43]Write to MH i2c: E2 02 01 C6 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 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 AD 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 C9 00 00 00 F4 03 04 00 3E AD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8D 7B 03 00 35 04 06 00 43 00 00 90 [13:48:43]Write i2c OK [13:48:43]MH_I2C_Read... [13:48:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:43]Read from MH i2c: E2 [13:48:43]MH_I2C_Read... [13:48:43]Read from MH i2c: E2 03 00 [13:48:43]MH_I2C_Read... [13:48:43]Read from MH i2c: E2 03 00 C6 3C 00 90 00 76 [13:48:43]RAPDU: 90 00 [13:48:43]wFMCommunicate OK [13:48:43]wFMCommunicate request_size=10 [13:48:43]MH_SAM_APDU [13:48:43]CAPDU: 80 0D 02 02 05 E9 C8 0D 53 D9 [13:48:43]Write to MH i2c: E2 0D 00 C7 3C 80 0D 02 02 05 00 E9 C8 0D 53 D9 00 00 71 [13:48:43]Write i2c OK [13:48:43]MH_I2C_Read... [13:48:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:43]Read from MH i2c: E2 [13:48:43]MH_I2C_Read... [13:48:43]Read from MH i2c: E2 03 00 [13:48:43]MH_I2C_Read... [13:48:43]Read from MH i2c: E2 03 00 C7 3C 00 90 00 77 [13:48:43]RAPDU: 90 00 [13:48:43]wFMCommunicate OK [13:48:43]wFMCommunicate request_size=4 [13:48:43]MH_SAM_APDU [13:48:43]CAPDU: 80 0D 03 02 [13:48:43]Write to MH i2c: E2 08 00 C8 3C 80 0D 03 02 00 00 00 00 7F [13:48:43]Write i2c OK [13:48:43]MH_I2C_Read... [13:48:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:48:43]Read from MH i2c: E2 [13:48:43]MH_I2C_Read... [13:48:43]Read from MH i2c: E2 0B 00 [13:48:43]MH_I2C_Read... [13:48:43]Read from MH i2c: E2 0B 00 C8 3C 00 A1 E6 30 D7 77 9D 82 99 90 00 3D [13:48:43]RAPDU: A1 E6 30 D7 77 9D 82 99 90 00 [13:48:43]wFMCommunicate OK [13:48:43]SAM_PROTO_SignData done [13:48:43]FM_MakeSignedData done [13:48:43]CreateOFDProtocolMessage [13:48:43]wFMCommunicate request_size=4 [13:48:43]MH_SAM_APDU [13:48:43]CAPDU: 80 11 00 00 [13:48:43]Write to MH i2c: E2 08 00 C9 3C 80 11 00 00 00 00 00 00 7F [13:48:43]Write i2c OK [13:48:43]MH_I2C_Read... [13:48:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:43]Read from MH i2c: E2 [13:48:43]MH_I2C_Read... [13:48:43]Read from MH i2c: E2 17 00 [13:48:43]MH_I2C_Read... [13:48:43]Read from MH i2c: E2 17 00 C9 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D6 [13:48:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:48:43]wFMCommunicate OK [13:48:43]CreateOFDProtocolMessage done [13:48:43]OFDSenderStorePacket 228237 [13:48:43]StoreOFDPacket docnum=228237 [13:48:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 5C 05 07 01 03 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 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 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 AD 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 C9 00 00 00 F4 03 04 00 3E AD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8D 7B 03 00 35 04 06 00 43 E9 C8 0D 53 D9 A1 E6 30 D7 77 9D 82 99 [13:48:43]CheckFolder [13:48:43]dirname=/storage/ofd_packets [13:48:43]CheckFolder done [13:48:43]ProducePacketName [13:48:43]name=ofd_packets/00228237 [13:48:43]NVStorageSaveData ofd_packets/00228237 [13:48:43]File name is /storage/ofd_packets/00228237 [13:48:43]Write 301 bytes [13:48:43]NVStorageSaveData done [13:48:43]OFDSenderStorePacket done [13:48:43]KKMCreateOFDPacket done [13:48:43]NVStorageSaveData kkm_last_timestamp [13:48:43]File name is /storage/kkm_last_timestamp [13:48:43]Write 4 bytes [13:48:43]NVStorageSaveData done [13:48:43]ExternCall_PrintAddStr [13:48:43]wPrintStart [13:48:43]Write to MH i2c: 01 00 00 CA 3C 06 [13:48:43]Write i2c OK [13:48:43]MH_I2C_Read... [13:48:43]Read from MH i2c: 01 [13:48:43]MH_I2C_Read... [13:48:43]Read from MH i2c: 01 07 00 [13:48:43]MH_I2C_Read... [13:48:43]Read from MH i2c: 01 07 00 CA 3C 00 00 00 00 00 FF 0F 1B [13:48:43]RasterBufferAndPrint [13:48:43]line Счет N : (1)1964696 [13:48:43]line ИНН: 02508201610067 [13:48:43]line Контрольно-Кассовый Чек [13:48:43]line ПРОДАЖА [13:48:43]line ТРК (МРК, ГНК) : 53 [13:48:43]line Товар: 2710124130 [13:48:43]line Аи-92-К-5 [13:48:43]line 6.730 * 66.90 [13:48:43]line = 450.24 [13:48:43]line НДС 12% НСП 1% [13:48:43]line > о реализуемом товаре [13:48:43]line ОКРУГЛЕНИЕ: -0.24 [13:48:43]line ИТОГО: 450.00 [13:48:43]line Внесено: 450.00 [13:48:43]line СДАЧА: 0.00 [13:48:43]line НСП 1% : 3.98 [13:48:43]line НДС 12% : 47.81 [13:48:43]line Наличными: 450.00 [13:48:43]line Безнал.: 0.00 [13:48:43]line Место: АЗС № 133 "Партнер Нефть" [13:48:43]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:48:43]line СНО: Общий режим [13:48:43]line Чек 201 22.10.2024 13:48 [13:48:43]line Смена: 535 ФФД: 1.0 [13:48:43]line ЗНМ: 0300000091 [13:48:43]line РНМ: 0000000000091685 [13:48:43]line Версия ККМ: 001 [13:48:43]line ФМ: 0000000000871839 [13:48:43]line ФД: 228237 [13:48:43]line ФПД: 74671362757593 [13:48:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134846&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228237&fm=74671362757593&tin=02508201610067®Number=0000000000091685&sum=45000 [13:48:43]OFD Sender: Processing packet 228237 [packets to send 38, broken 37] [13:48:43]ProducePacketName [13:48:43]name=ofd_packets/00228237 [13:48:43]OFD Sender: To server: pG, [13:48:43]CommunicateWithHost lk.salyk.kg:30040 [13:48:43]ConnectInit lk.salyk.kg [13:48:43]written 0, free lines is 4095 [13:48:43]Connected sock=10 [13:48:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 5C 05 07 01 03 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 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 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 AD 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 C9 00 00 00 F4 03 04 00 3E AD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8D 7B 03 00 35 04 06 00 43 E9 C8 0D 53 D9 A1 E6 30 D7 77 9D 82 99 [13:48:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 18 B2 47 00 09 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8D 7B 03 00 F4 03 04 00 36 58 17 67 B6 04 01 00 00 07 AC CC 38 36 9B 5C EE [13:48:44]CommunicateWithHost err = 0 [13:48:44]CheckOFDResponse [13:48:44]1017 (14) - 77093643461234 [13:48:44]1041 (16) - 0000000000871839 [13:48:44]1040 (4) - 228237 [13:48:44]1012 (4) - 22.10.2024 07:45 [13:48:44]1206 (1) - 0 [13:48:44]OFD Sender: Remove packet 228237 [13:48:44]ProducePacketName [13:48:44]name=ofd_packets/00228237 [13:48:44]NVStorageDeleteData [13:48:44]Write to MH i2c: 01 00 00 F4 3C 30 [13:48:44]Write i2c OK [13:48:44]MH_I2C_Read... [13:48:44]Read from MH i2c: 01 [13:48:44]MH_I2C_Read... [13:48:44]Read from MH i2c: 01 07 00 [13:48:44]MH_I2C_Read... [13:48:44]Read from MH i2c: 01 07 00 F4 3C 00 00 00 00 00 C6 0C 09 [13:48:44]RasterBufferAndPrint [13:48:44]line [13:48:44]line [13:48:44]line [13:48:44]line [13:48:44]line [13:48:44]written 0, free lines is 3274 [13:48:44]MH_Cut [13:48:44]Write to MH i2c: D1 01 00 FB 3C 01 09 [13:48:44]Write i2c OK [13:48:44]MH_I2C_Read... [13:48:44]Read from MH i2c: D1 [13:48:44]MH_I2C_Read... [13:48:44]Read from MH i2c: D1 01 00 [13:48:44]MH_I2C_Read... [13:48:44]Read from MH i2c: D1 01 00 FB 3C 00 08 [13:48:44]Write to MH i2c: 01 00 00 FC 3C 38 [13:48:44]Write i2c OK [13:48:44]MH_I2C_Read... [13:48:44]OFD Sender: No OFD packet to send [13:48:45]*** Cut start [13:48:45]*** Partial cut [13:48:45]*** CUTSNS_PIN = 1 [13:48:45]*** CUTSNS_PIN = 0 [13:48:45]*** Brake cut motor [13:48:45]Read from MH i2c: 01 [13:48:45]MH_I2C_Read... [13:48:45]*** Stop cut motor [13:48:45]*** Cut end [13:48:45]Read from MH i2c: 01 07 00 [13:48:45]MH_I2C_Read... [13:48:45]Read from MH i2c: 01 07 00 FC 3C 00 00 00 00 00 FF 0F 4D [13:48:45]process_action close_receipt done [13:48:45]requested_data is exist [13:48:45]produce_requested_data [13:48:45]requested_item fm.sn is exist - process it [13:48:45]wFMCommunicate request_size=4 [13:48:45]MH_SAM_APDU [13:48:45]CAPDU: 80 11 00 00 [13:48:45]Write to MH i2c: E2 08 00 FD 3C 80 11 00 00 00 00 00 00 B3 [13:48:45]Write i2c OK [13:48:45]MH_I2C_Read... [13:48:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:45]Read from MH i2c: E2 [13:48:45]MH_I2C_Read... [13:48:45]Read from MH i2c: E2 17 00 [13:48:45]MH_I2C_Read... [13:48:45]Read from MH i2c: E2 17 00 FD 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0A [13:48:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:48:45]wFMCommunicate OK [13:48:45]requested_item fd.num is exist - process it [13:48:45]SAM_PROTO_GetFieldsCounters [13:48:45]wFMCommunicate request_size=4 [13:48:45]MH_SAM_APDU [13:48:45]CAPDU: 80 13 00 00 [13:48:45]Write to MH i2c: E2 08 00 FE 3C 80 13 00 00 00 00 00 00 B6 [13:48:45]Write i2c OK [13:48:45]MH_I2C_Read... [13:48:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:48:45]Read from MH i2c: E2 [13:48:45]MH_I2C_Read... [13:48:45]Read from MH i2c: E2 62 00 [13:48:45]MH_I2C_Read... [13:48:45]Read from MH i2c: E2 62 00 FE 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8D 7B 03 00 0E 04 04 00 17 02 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 5E [13:48:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8D 7B 03 00 0E 04 04 00 17 02 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 [13:48:45]wFMCommunicate OK [13:48:45]SAM_PROTO_GetFieldsCounters done [13:48:45]requested_item shift.num is exist - process it [13:48:45]requested_item shift.opened is exist - process it [13:48:45]req_shift_opened [13:48:45]FM_GetShiftState [13:48:45]SAM_PROTO_GetShiftState [13:48:45]wFMCommunicate request_size=4 [13:48:45]MH_SAM_APDU [13:48:45]CAPDU: 80 13 01 00 [13:48:45]Write to MH i2c: E2 08 00 FF 3C 80 13 01 00 00 00 00 00 B8 [13:48:45]Write i2c OK [13:48:45]MH_I2C_Read... [13:48:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:46]Read from MH i2c: E2 [13:48:46]MH_I2C_Read... [13:48:46]Read from MH i2c: E2 0E 00 [13:48:46]MH_I2C_Read... [13:48:46]Read from MH i2c: E2 0E 00 FF 3C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 7F [13:48:46]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:48:46]wFMCommunicate OK [13:48:46]SAM_PROTO_GetShiftState done [13:48:46]FM_GetShiftState done [13:48:46]req_shift_opened done [13:48:46]requested_item shift.open_date is exist - process it [13:48:46]req_shift_open_date [13:48:46]req_shift_open_date done [13:48:46]produce_requested_data done [13:48:46]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228237,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:48:46]process_action_free close_receipt [13:48:46]json_value_free [13:48:46]json_value_free done [13:48:46]process_json_proto returns [13:48:46]Send response to host [13:48:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228237,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:48:46]free response buf [13:48:46]execute_script done [13:48:46]execute_script returns [13:48:46]free content buf [13:48:46]Sock 7.Close socket [13:48:46]Sock 7.Thread stoped [13:48:46]accept exits with 9 [13:48:46]New connection [13:48:46]New thread 3067137380 created [13:48:46]Thread 3066994020 joined [13:48:46]Waiting for new connection... [13:48:46] Sock 9.Parse request [13:48:46]Sock 9.Check first char [13:48:46]Sock 9.First char is OK [13:48:46]request: POST /json_proto HTTP/1.0 [13:48:46]Method: POST [13:48:46]URL: /json_proto [13:48:46]Method is POST - this is cgi request [13:48:46]url: /json_proto [13:48:46]query_string will be loaded in cgi processing [13:48:46]execute_cgi json_proto POST (null) [13:48:46]execute_cgi path=json_proto method=POST [13:48:46]POST find Content-Length [13:48:46]Host: 172.17.44.195:8080 [13:48:46]Content-Length: 679 [13:48:46]Content-Type: application/json [13:48:46] [13:48:46]POST finish read [13:48:46]Found Content-Length = 679 [13:48:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964694", "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" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:48:46]execute_script... [13:48:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964694", "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" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:48:46]POST & json_proto [13:48:46]process_json_proto [13:48:46]json parsed OK: [13:48:46]protocol is kg_v1.0 [13:48:46]action value=close_receipt [13:48:46]process_action close_receipt [13:48:46]cmd_close_receipt [13:48:46]MH_GetDate [13:48:46]Write to MH i2c: F0 00 00 00 3D 2C [13:48:46]Write i2c OK [13:48:46]MH_I2C_Read... [13:48:46]Read from MH i2c: F0 [13:48:46]MH_I2C_Read... [13:48:46]Read from MH i2c: F0 09 00 [13:48:46]MH_I2C_Read... [13:48:46]Read from MH i2c: F0 09 00 00 3D 00 42 AD 17 67 82 C9 CF 66 22 [13:48:46]GetLastDocTimeStamp 1729604926 [13:48:46]current date 1729604930 [13:48:46]FM_GetShiftState [13:48:46]SAM_PROTO_GetShiftState [13:48:46]wFMCommunicate request_size=4 [13:48:46]MH_SAM_APDU [13:48:46]CAPDU: 80 13 01 00 [13:48:46]Write to MH i2c: E2 08 00 01 3D 80 13 01 00 00 00 00 00 BB [13:48:46]Write i2c OK [13:48:46]MH_I2C_Read... [13:48:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:46]Read from MH i2c: E2 [13:48:46]MH_I2C_Read... [13:48:46]Read from MH i2c: E2 0E 00 [13:48:46]MH_I2C_Read... [13:48:46]Read from MH i2c: E2 0E 00 01 3D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 82 [13:48:46]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:48:46]wFMCommunicate OK [13:48:46]SAM_PROTO_GetShiftState done [13:48:46]FM_GetShiftState done [13:48:46]opened in 1729555538 [13:48:46]opened+sec_in_day 1729641938 [13:48:46]quantity*price = 70044 [13:48:46]sum+1 = 70045 [13:48:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 202 22.10.2024 13:48 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228238 ФПД: 122067395581923 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134850&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228238&fm=122067395581923&tin=02508201610067®Number=0000000000091685&sum=70000 [13:48:48]StoreToDocumentArchive [13:48:48]shift 535 fd 228238 [13:48:48]save to /storage/0535/doc_00228238 [13:48:48]save last doc name /storage/0535/doc_00228238 to /storage/kkm_last_doc_name [13:48:48]save OK [13:48:48]Clear old archive folders... [13:48:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:48:48]tlvbuf is 008A3440 [13:48:48]SAM_PROTO_ClearQueue [13:48:48]wFMCommunicate request_size=4 [13:48:48]MH_SAM_APDU [13:48:48]CAPDU: 80 09 00 00 [13:48:48]Write to MH i2c: E2 08 00 0E 3D 80 09 00 00 00 00 00 00 BD [13:48:48]Write i2c OK [13:48:48]MH_I2C_Read... [13:48:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:48:48]Read from MH i2c: E2 [13:48:48]MH_I2C_Read... [13:48:48]Read from MH i2c: E2 03 00 [13:48:48]MH_I2C_Read... [13:48:48]Read from MH i2c: E2 03 00 0E 3D 00 90 00 BF [13:48:48]RAPDU: 90 00 [13:48:48]wFMCommunicate OK [13:48:48]SAM_PROTO_ClearQueue done [13:48:48]KKMCreateOFDPacket [13:48:48]OFDProtocolAddRootSTLVToBuf [13:48:48]FM_MakeSignedData [13:48:48]FM_MakeSignedData [13:48:48]SAM_PROTO_SignData [13:48:48]wFMCommunicate request_size=4 [13:48:48]MH_SAM_APDU [13:48:48]CAPDU: 80 0D 01 02 [13:48:48]Write to MH i2c: E2 08 00 0F 3D 80 0D 01 02 00 00 00 00 C5 [13:48:48]Write i2c OK [13:48:48]MH_I2C_Read... [13:48:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:48:48]Read from MH i2c: E2 [13:48:48]MH_I2C_Read... [13:48:48]Read from MH i2c: E2 03 00 [13:48:48]MH_I2C_Read... [13:48:48]Read from MH i2c: E2 03 00 0F 3D 00 90 00 C0 [13:48:48]RAPDU: 90 00 [13:48:48]wFMCommunicate OK [13:48:48]wFMCommunicate request_size=255 [13:48:48]MH_SAM_APDU [13:48:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 CA 00 00 00 F4 03 04 00 42 AD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8E 7B 03 00 35 04 06 00 6F [13:48:48]Write to MH i2c: E2 02 01 10 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 CA 00 00 00 F4 03 04 00 42 AD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8E 7B 03 00 35 04 06 00 6F 00 00 37 [13:48:48]Write i2c OK [13:48:48]MH_I2C_Read... [13:48:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:48]Read from MH i2c: E2 [13:48:48]MH_I2C_Read... [13:48:48]Read from MH i2c: E2 03 00 [13:48:48]MH_I2C_Read... [13:48:48]Read from MH i2c: E2 03 00 10 3D 00 90 00 C1 [13:48:48]RAPDU: 90 00 [13:48:48]wFMCommunicate OK [13:48:48]wFMCommunicate request_size=10 [13:48:48]MH_SAM_APDU [13:48:48]CAPDU: 80 0D 02 02 05 05 07 C0 97 E3 [13:48:48]Write to MH i2c: E2 0D 00 11 3D 80 0D 02 02 05 00 05 07 C0 97 E3 00 00 18 [13:48:48]Write i2c OK [13:48:48]MH_I2C_Read... [13:48:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:48]Read from MH i2c: E2 [13:48:48]MH_I2C_Read... [13:48:48]Read from MH i2c: E2 03 00 [13:48:48]MH_I2C_Read... [13:48:48]Read from MH i2c: E2 03 00 11 3D 00 90 00 C2 [13:48:48]RAPDU: 90 00 [13:48:48]wFMCommunicate OK [13:48:48]wFMCommunicate request_size=4 [13:48:48]MH_SAM_APDU [13:48:48]CAPDU: 80 0D 03 02 [13:48:48]Write to MH i2c: E2 08 00 12 3D 80 0D 03 02 00 00 00 00 CA [13:48:48]Write i2c OK [13:48:48]MH_I2C_Read... [13:48:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:48:48]Read from MH i2c: E2 [13:48:48]MH_I2C_Read... [13:48:48]Read from MH i2c: E2 0B 00 [13:48:48]MH_I2C_Read... [13:48:48]Read from MH i2c: E2 0B 00 12 3D 00 AE F2 18 A8 00 52 90 DF 90 00 EC [13:48:48]RAPDU: AE F2 18 A8 00 52 90 DF 90 00 [13:48:48]wFMCommunicate OK [13:48:48]SAM_PROTO_SignData done [13:48:48]FM_MakeSignedData done [13:48:48]CreateOFDProtocolMessage [13:48:48]wFMCommunicate request_size=4 [13:48:48]MH_SAM_APDU [13:48:48]CAPDU: 80 11 00 00 [13:48:48]Write to MH i2c: E2 08 00 13 3D 80 11 00 00 00 00 00 00 CA [13:48:48]Write i2c OK [13:48:48]MH_I2C_Read... [13:48:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:48]Read from MH i2c: E2 [13:48:48]MH_I2C_Read... [13:48:48]Read from MH i2c: E2 17 00 [13:48:48]MH_I2C_Read... [13:48:48]Read from MH i2c: E2 17 00 13 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 21 [13:48:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:48:48]wFMCommunicate OK [13:48:48]CreateOFDProtocolMessage done [13:48:48]OFDSenderStorePacket 228238 [13:48:48]StoreOFDPacket docnum=228238 [13:48:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 51 89 07 01 45 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 CA 00 00 00 F4 03 04 00 42 AD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8E 7B 03 00 35 04 06 00 6F 05 07 C0 97 E3 AE F2 18 A8 00 52 90 DF [13:48:48]CheckFolder [13:48:48]dirname=/storage/ofd_packets [13:48:48]CheckFolder done [13:48:48]ProducePacketName [13:48:48]name=ofd_packets/00228238 [13:48:48]NVStorageSaveData ofd_packets/00228238 [13:48:48]File name is /storage/ofd_packets/00228238 [13:48:48]Write 301 bytes [13:48:48]NVStorageSaveData done [13:48:48]OFDSenderStorePacket done [13:48:48]KKMCreateOFDPacket done [13:48:48]NVStorageSaveData kkm_last_timestamp [13:48:48]File name is /storage/kkm_last_timestamp [13:48:48]Write 4 bytes [13:48:48]NVStorageSaveData done [13:48:48]ExternCall_PrintAddStr [13:48:48]wPrintStart [13:48:48]Write to MH i2c: 01 00 00 14 3D 51 [13:48:48]Write i2c OK [13:48:48]MH_I2C_Read... [13:48:48]Read from MH i2c: 01 [13:48:48]MH_I2C_Read... [13:48:48]Read from MH i2c: 01 07 00 [13:48:48]MH_I2C_Read... [13:48:48]Read from MH i2c: 01 07 00 14 3D 00 00 00 00 00 FF 0F 66 [13:48:48]RasterBufferAndPrint [13:48:48]line Счет N : (1)1964694 [13:48:48]line ИНН: 02508201610067 [13:48:48]line Контрольно-Кассовый Чек [13:48:48]line ПРОДАЖА [13:48:48]line ТРК (МРК, ГНК) : 63 [13:48:48]line Товар: 2710124130 [13:48:48]line Аи-92-К-5 [13:48:48]line 10.470 * 66.90 [13:48:48]line = 700.44 [13:48:48]line НДС 12% НСП 1% [13:48:48]line > о реализуемом товаре [13:48:48]line ОКРУГЛЕНИЕ: -0.44 [13:48:48]line ИТОГО: 700.00 [13:48:48]line Внесено: 700.00 [13:48:48]line СДАЧА: 0.00 [13:48:48]line НСП 1% : 6.20 [13:48:48]line НДС 12% : 74.38 [13:48:48]line Наличными: 700.00 [13:48:48]line Безнал.: 0.00 [13:48:48]line Место: АЗС № 133 "Партнер Нефть" [13:48:48]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:48:48]line СНО: Общий режим [13:48:48]line Чек 202 22.10.2024 13:48 [13:48:48]line Смена: 535 ФФД: 1.0 [13:48:48]line ЗНМ: 0300000091 [13:48:48]line РНМ: 0000000000091685 [13:48:48]line Версия ККМ: 001 [13:48:48]line ФМ: 0000000000871839 [13:48:48]line ФД: 228238 [13:48:48]line ФПД: 122067395581923 [13:48:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134850&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228238&fm=122067395581923&tin=02508201610067®Number=0000000000091685&sum=70000 [13:48:48]OFD Sender: Processing packet 228238 [packets to send 38, broken 37] [13:48:48]ProducePacketName [13:48:48]name=ofd_packets/00228238 [13:48:48]OFD Sender: To server: pG, [13:48:48]CommunicateWithHost lk.salyk.kg:30040 [13:48:48]ConnectInit lk.salyk.kg [13:48:48]written 0, free lines is 4095 [13:48:49]Connected sock=10 [13:48:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 51 89 07 01 45 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 CA 00 00 00 F4 03 04 00 42 AD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8E 7B 03 00 35 04 06 00 6F 05 07 C0 97 E3 AE F2 18 A8 00 52 90 DF [13:48:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 64 98 47 00 4A 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8E 7B 03 00 F4 03 04 00 3B 58 17 67 B6 04 01 00 00 45 9E 8F 33 31 2E EA F4 [13:48:49]CommunicateWithHost err = 0 [13:48:49]CheckOFDResponse [13:48:49]1017 (14) - 77093643461234 [13:48:49]1041 (16) - 0000000000871839 [13:48:49]1040 (4) - 228238 [13:48:49]1012 (4) - 22.10.2024 07:46 [13:48:49]1206 (1) - 0 [13:48:49]OFD Sender: Remove packet 228238 [13:48:49]ProducePacketName [13:48:49]name=ofd_packets/00228238 [13:48:49]NVStorageDeleteData [13:48:49]Write to MH i2c: 01 00 00 3E 3D 7B [13:48:49]Write i2c OK [13:48:49]MH_I2C_Read... [13:48:49]Read from MH i2c: 01 [13:48:49]MH_I2C_Read... [13:48:49]Read from MH i2c: 01 07 00 [13:48:49]MH_I2C_Read... [13:48:49]Read from MH i2c: 01 07 00 3E 3D 00 00 00 00 00 CB 0C 59 [13:48:49]RasterBufferAndPrint [13:48:49]line [13:48:49]line [13:48:49]line [13:48:49]line [13:48:49]line [13:48:49]written 0, free lines is 3285 [13:48:49]MH_Cut [13:48:49]Write to MH i2c: D1 01 00 45 3D 01 54 [13:48:49]Write i2c OK [13:48:49]MH_I2C_Read... [13:48:49]Read from MH i2c: D1 [13:48:49]MH_I2C_Read... [13:48:49]Read from MH i2c: D1 01 00 [13:48:49]MH_I2C_Read... [13:48:49]Read from MH i2c: D1 01 00 45 3D 00 53 [13:48:49]Write to MH i2c: 01 00 00 46 3D 83 [13:48:49]Write i2c OK [13:48:49]MH_I2C_Read... [13:48:49]OFD Sender: No OFD packet to send [13:48:50]*** Cut start [13:48:50]*** Partial cut [13:48:50]*** CUTSNS_PIN = 1 [13:48:50]*** CUTSNS_PIN = 0 [13:48:50]*** Brake cut motor [13:48:50]Read from MH i2c: 01 [13:48:50]MH_I2C_Read... [13:48:50]*** Stop cut motor [13:48:50]*** Cut end [13:48:50]Read from MH i2c: 01 07 00 [13:48:50]MH_I2C_Read... [13:48:50]Read from MH i2c: 01 07 00 46 3D 00 00 00 00 00 FF 0F 98 [13:48:50]process_action close_receipt done [13:48:50]requested_data is exist [13:48:50]produce_requested_data [13:48:50]requested_item fm.sn is exist - process it [13:48:50]wFMCommunicate request_size=4 [13:48:50]MH_SAM_APDU [13:48:50]CAPDU: 80 11 00 00 [13:48:50]Write to MH i2c: E2 08 00 47 3D 80 11 00 00 00 00 00 00 FE [13:48:50]Write i2c OK [13:48:50]MH_I2C_Read... [13:48:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:50]Read from MH i2c: E2 [13:48:50]MH_I2C_Read... [13:48:50]Read from MH i2c: E2 17 00 [13:48:50]MH_I2C_Read... [13:48:50]Read from MH i2c: E2 17 00 47 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 55 [13:48:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:48:50]wFMCommunicate OK [13:48:50]requested_item fd.num is exist - process it [13:48:50]SAM_PROTO_GetFieldsCounters [13:48:50]wFMCommunicate request_size=4 [13:48:50]MH_SAM_APDU [13:48:50]CAPDU: 80 13 00 00 [13:48:50]Write to MH i2c: E2 08 00 48 3D 80 13 00 00 00 00 00 00 01 [13:48:50]Write i2c OK [13:48:50]MH_I2C_Read... [13:48:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:48:51]Read from MH i2c: E2 [13:48:51]MH_I2C_Read... [13:48:51]Read from MH i2c: E2 62 00 [13:48:51]MH_I2C_Read... [13:48:51]Read from MH i2c: E2 62 00 48 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8E 7B 03 00 0E 04 04 00 17 02 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 AD [13:48:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8E 7B 03 00 0E 04 04 00 17 02 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 [13:48:51]wFMCommunicate OK [13:48:51]SAM_PROTO_GetFieldsCounters done [13:48:51]requested_item shift.num is exist - process it [13:48:51]requested_item shift.opened is exist - process it [13:48:51]req_shift_opened [13:48:51]FM_GetShiftState [13:48:51]SAM_PROTO_GetShiftState [13:48:51]wFMCommunicate request_size=4 [13:48:51]MH_SAM_APDU [13:48:51]CAPDU: 80 13 01 00 [13:48:51]Write to MH i2c: E2 08 00 49 3D 80 13 01 00 00 00 00 00 03 [13:48:51]Write i2c OK [13:48:51]MH_I2C_Read... [13:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:51]Read from MH i2c: E2 [13:48:51]MH_I2C_Read... [13:48:51]Read from MH i2c: E2 0E 00 [13:48:51]MH_I2C_Read... [13:48:51]Read from MH i2c: E2 0E 00 49 3D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 CA [13:48:51]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:48:51]wFMCommunicate OK [13:48:51]SAM_PROTO_GetShiftState done [13:48:51]FM_GetShiftState done [13:48:51]req_shift_opened done [13:48:51]requested_item shift.open_date is exist - process it [13:48:51]req_shift_open_date [13:48:51]req_shift_open_date done [13:48:51]produce_requested_data done [13:48:51]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228238,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:48:51]process_action_free close_receipt [13:48:51]json_value_free [13:48:51]json_value_free done [13:48:51]process_json_proto returns [13:48:51]Send response to host [13:48:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228238,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:48:51]free response buf [13:48:51]execute_script done [13:48:51]execute_script returns [13:48:51]free content buf [13:48:51]Sock 9.Close socket [13:48:51]Sock 9.Thread stoped [13:48:51]accept exits with 7 [13:48:51]New connection [13:48:51]New thread 3066994020 created [13:48:51]Thread 3067137380 joined [13:48:51]Waiting for new connection... [13:48:51] Sock 7.Parse request [13:48:51]Sock 7.Check first char [13:48:51]Sock 7.First char is OK [13:48:51]request: POST /json_proto HTTP/1.0 [13:48:51]Method: POST [13:48:51]URL: /json_proto [13:48:51]Method is POST - this is cgi request [13:48:51]url: /json_proto [13:48:51]query_string will be loaded in cgi processing [13:48:51]execute_cgi json_proto POST (null) [13:48:51]execute_cgi path=json_proto method=POST [13:48:51]POST find Content-Length [13:48:51]Host: 172.17.44.195:8080 [13:48:51]Content-Length: 664 [13:48:51]Content-Type: application/json [13:48:51] [13:48:51]POST finish read [13:48:51]Found Content-Length = 664 [13:48:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.02, "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" ] } } [13:48:51]execute_script... [13:48: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)1964695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.02, "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" ] } } [13:48:51]POST & json_proto [13:48:51]process_json_proto [13:48:51]json parsed OK: [13:48:51]protocol is kg_v1.0 [13:48:51]action value=close_receipt [13:48:51]process_action close_receipt [13:48:51]cmd_close_receipt [13:48:51]MH_GetDate [13:48:51]Write to MH i2c: F0 00 00 4A 3D 76 [13:48:51]Write i2c OK [13:48:51]MH_I2C_Read... [13:48:51]Read from MH i2c: F0 [13:48:51]MH_I2C_Read... [13:48:51]Read from MH i2c: F0 09 00 [13:48:51]MH_I2C_Read... [13:48:51]Read from MH i2c: F0 09 00 4A 3D 00 47 AD 17 67 82 C9 CF 66 71 [13:48:51]GetLastDocTimeStamp 1729604930 [13:48:51]current date 1729604935 [13:48:51]FM_GetShiftState [13:48:51]SAM_PROTO_GetShiftState [13:48:51]wFMCommunicate request_size=4 [13:48:51]MH_SAM_APDU [13:48:51]CAPDU: 80 13 01 00 [13:48:51]Write to MH i2c: E2 08 00 4B 3D 80 13 01 00 00 00 00 00 05 [13:48:51]Write i2c OK [13:48:51]MH_I2C_Read... [13:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:51]Read from MH i2c: E2 [13:48:51]MH_I2C_Read... [13:48:51]Read from MH i2c: E2 0E 00 [13:48:51]MH_I2C_Read... [13:48:51]Read from MH i2c: E2 0E 00 4B 3D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 CC [13:48:51]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:48:51]wFMCommunicate OK [13:48:51]SAM_PROTO_GetShiftState done [13:48:51]FM_GetShiftState done [13:48:51]opened in 1729555538 [13:48:51]opened+sec_in_day 1729641938 [13:48:51]quantity*price = 200001 [13:48:51]sum+1 = 200003 [13:48:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.39 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 203 22.10.2024 13:48 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228239 ФПД: 58364364109684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134855&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228239&fm=58364364109684&tin=02508201610067®Number=0000000000091685&sum=200000 [13:48:52]StoreToDocumentArchive [13:48:52]shift 535 fd 228239 [13:48:52]save to /storage/0535/doc_00228239 [13:48:52]save last doc name /storage/0535/doc_00228239 to /storage/kkm_last_doc_name [13:48:52]save OK [13:48:52]Clear old archive folders... [13:48:52]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:48:52]tlvbuf is 0099F160 [13:48:52]SAM_PROTO_ClearQueue [13:48:52]wFMCommunicate request_size=4 [13:48:52]MH_SAM_APDU [13:48:52]CAPDU: 80 09 00 00 [13:48:52]Write to MH i2c: E2 08 00 58 3D 80 09 00 00 00 00 00 00 07 [13:48:52]Write i2c OK [13:48:52]MH_I2C_Read... [13:48:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:48:52]Read from MH i2c: E2 [13:48:52]MH_I2C_Read... [13:48:52]Read from MH i2c: E2 03 00 [13:48:52]MH_I2C_Read... [13:48:52]Read from MH i2c: E2 03 00 58 3D 00 90 00 09 [13:48:52]RAPDU: 90 00 [13:48:52]wFMCommunicate OK [13:48:52]SAM_PROTO_ClearQueue done [13:48:52]KKMCreateOFDPacket [13:48:52]OFDProtocolAddRootSTLVToBuf [13:48:52]FM_MakeSignedData [13:48:52]FM_MakeSignedData [13:48:52]SAM_PROTO_SignData [13:48:52]wFMCommunicate request_size=4 [13:48:52]MH_SAM_APDU [13:48:52]CAPDU: 80 0D 01 02 [13:48:52]Write to MH i2c: E2 08 00 59 3D 80 0D 01 02 00 00 00 00 0F [13:48:52]Write i2c OK [13:48:52]MH_I2C_Read... [13:48:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:48:52]Read from MH i2c: E2 [13:48:52]MH_I2C_Read... [13:48:52]Read from MH i2c: E2 03 00 [13:48:52]MH_I2C_Read... [13:48:52]Read from MH i2c: E2 03 00 59 3D 00 90 00 0A [13:48:52]RAPDU: 90 00 [13:48:52]wFMCommunicate OK [13:48:52]wFMCommunicate request_size=253 [13:48:52]MH_SAM_APDU [13:48:52]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 CB 00 00 00 F4 03 04 00 47 AD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8F 7B 03 00 35 04 06 00 35 15 03 30 B7 74 [13:48:52]Write to MH i2c: E2 00 01 5A 3D 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 CB 00 00 00 F4 03 04 00 47 AD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8F 7B 03 00 35 04 06 00 35 15 03 30 B7 74 00 00 81 [13:48:52]Write i2c OK [13:48:52]MH_I2C_Read... [13:48:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:53]Read from MH i2c: E2 [13:48:53]MH_I2C_Read... [13:48:53]Read from MH i2c: E2 03 00 [13:48:53]MH_I2C_Read... [13:48:53]Read from MH i2c: E2 03 00 5A 3D 00 90 00 0B [13:48:53]RAPDU: 90 00 [13:48:53]wFMCommunicate OK [13:48:53]wFMCommunicate request_size=4 [13:48:53]MH_SAM_APDU [13:48:53]CAPDU: 80 0D 03 02 [13:48:53]Write to MH i2c: E2 08 00 5B 3D 80 0D 03 02 00 00 00 00 13 [13:48:53]Write i2c OK [13:48:53]MH_I2C_Read... [13:48:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:48:53]Read from MH i2c: E2 [13:48:53]MH_I2C_Read... [13:48:53]Read from MH i2c: E2 0B 00 [13:48:53]MH_I2C_Read... [13:48:53]Read from MH i2c: E2 0B 00 5B 3D 00 8A 94 DA 6B 76 68 38 BD 90 00 4A [13:48:53]RAPDU: 8A 94 DA 6B 76 68 38 BD 90 00 [13:48:53]wFMCommunicate OK [13:48:53]SAM_PROTO_SignData done [13:48:53]FM_MakeSignedData done [13:48:53]CreateOFDProtocolMessage [13:48:53]wFMCommunicate request_size=4 [13:48:53]MH_SAM_APDU [13:48:53]CAPDU: 80 11 00 00 [13:48:53]Write to MH i2c: E2 08 00 5C 3D 80 11 00 00 00 00 00 00 13 [13:48:53]Write i2c OK [13:48:53]MH_I2C_Read... [13:48:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:53]Read from MH i2c: E2 [13:48:53]MH_I2C_Read... [13:48:53]Read from MH i2c: E2 17 00 [13:48:53]MH_I2C_Read... [13:48:53]Read from MH i2c: E2 17 00 5C 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6A [13:48:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:48:53]wFMCommunicate OK [13:48:53]CreateOFDProtocolMessage done [13:48:53]OFDSenderStorePacket 228239 [13:48:53]StoreOFDPacket docnum=228239 [13:48:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 51 C5 00 01 A9 12 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 CB 00 00 00 F4 03 04 00 47 AD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8F 7B 03 00 35 04 06 00 35 15 03 30 B7 74 8A 94 DA 6B 76 68 38 BD [13:48:53]CheckFolder [13:48:53]dirname=/storage/ofd_packets [13:48:53]CheckFolder done [13:48:53]ProducePacketName [13:48:53]name=ofd_packets/00228239 [13:48:53]NVStorageSaveData ofd_packets/00228239 [13:48:53]File name is /storage/ofd_packets/00228239 [13:48:53]Write 294 bytes [13:48:53]NVStorageSaveData done [13:48:53]OFDSenderStorePacket done [13:48:53]KKMCreateOFDPacket done [13:48:53]NVStorageSaveData kkm_last_timestamp [13:48:53]File name is /storage/kkm_last_timestamp [13:48:53]Write 4 bytes [13:48:53]NVStorageSaveData done [13:48:53]ExternCall_PrintAddStr [13:48:53]wPrintStart [13:48:53]Write to MH i2c: 01 00 00 5D 3D 9A [13:48:53]Write i2c OK [13:48:53]MH_I2C_Read... [13:48:53]Read from MH i2c: 01 [13:48:53]MH_I2C_Read... [13:48:53]Read from MH i2c: 01 07 00 [13:48:53]MH_I2C_Read... [13:48:53]Read from MH i2c: 01 07 00 5D 3D 00 00 00 00 00 FF 0F AF [13:48:53]RasterBufferAndPrint [13:48:53]line Счет N : (1)1964695 [13:48:53]line ИНН: 02508201610067 [13:48:53]line Контрольно-Кассовый Чек [13:48:53]line ПРОДАЖА [13:48:53]line ТРК (МРК, ГНК) : 32 [13:48:53]line Товар: 2710124130 [13:48:53]line SU-92 [13:48:53]line 29.240 * 68.40 [13:48:53]line = 2000.02 [13:48:53]line НДС 12% НСП 1% [13:48:53]line > о реализуемом товаре [13:48:53]line ОКРУГЛЕНИЕ: -0.02 [13:48:53]line ИТОГО: 2000.00 [13:48:53]line Внесено: 2000.00 [13:48:53]line СДАЧА: 0.00 [13:48:53]line НСП 1% : 17.70 [13:48:53]line НДС 12% : 212.39 [13:48:53]line Наличными: 2000.00 [13:48:53]line Безнал.: 0.00 [13:48:53]line Место: АЗС № 133 "Партнер Нефть" [13:48:53]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:48:53]line СНО: Общий режим [13:48:53]line Чек 203 22.10.2024 13:48 [13:48:53]line Смена: 535 ФФД: 1.0 [13:48:53]line ЗНМ: 0300000091 [13:48:53]line РНМ: 0000000000091685 [13:48:53]line Версия ККМ: 001 [13:48:53]line ФМ: 0000000000871839 [13:48:53]line ФД: 228239 [13:48:53]line ФПД: 58364364109684 [13:48:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134855&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228239&fm=58364364109684&tin=02508201610067®Number=0000000000091685&sum=200000 [13:48:53]OFD Sender: Processing packet 228239 [packets to send 38, broken 37] [13:48:53]ProducePacketName [13:48:53]name=ofd_packets/00228239 [13:48:53]OFD Sender: To server: pG, [13:48:53]CommunicateWithHost lk.salyk.kg:30040 [13:48:53]ConnectInit lk.salyk.kg [13:48:53]written 0, free lines is 4095 [13:48:53]Connected sock=10 [13:48:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 51 C5 00 01 A9 12 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 CB 00 00 00 F4 03 04 00 47 AD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8F 7B 03 00 35 04 06 00 35 15 03 30 B7 74 8A 94 DA 6B 76 68 38 BD [13:48:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 C6 F0 47 00 81 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8F 7B 03 00 F4 03 04 00 40 58 17 67 B6 04 01 00 00 3C 7D 8A 18 FD 5E 48 5C [13:48:53]CommunicateWithHost err = 0 [13:48:53]CheckOFDResponse [13:48:53]1017 (14) - 77093643461234 [13:48:53]1041 (16) - 0000000000871839 [13:48:53]1040 (4) - 228239 [13:48:53]1012 (4) - 22.10.2024 07:46 [13:48:53]1206 (1) - 0 [13:48:53]OFD Sender: Remove packet 228239 [13:48:53]ProducePacketName [13:48:53]name=ofd_packets/00228239 [13:48:53]NVStorageDeleteData [13:48:54]Write to MH i2c: 01 00 00 87 3D C4 [13:48:54]Write i2c OK [13:48:54]MH_I2C_Read... [13:48:54]Read from MH i2c: 01 [13:48:54]MH_I2C_Read... [13:48:54]Read from MH i2c: 01 07 00 [13:48:54]MH_I2C_Read... [13:48:54]Read from MH i2c: 01 07 00 87 3D 00 00 00 00 00 D8 0C AF [13:48:54]RasterBufferAndPrint [13:48:54]line [13:48:54]line [13:48:54]line [13:48:54]line [13:48:54]line [13:48:54]written 0, free lines is 3304 [13:48:54]MH_Cut [13:48:54]Write to MH i2c: D1 01 00 8E 3D 01 9D [13:48:54]Write i2c OK [13:48:54]MH_I2C_Read... [13:48:54]Read from MH i2c: D1 [13:48:54]MH_I2C_Read... [13:48:54]Read from MH i2c: D1 01 00 [13:48:54]MH_I2C_Read... [13:48:54]Read from MH i2c: D1 01 00 8E 3D 00 9C [13:48:54]Write to MH i2c: 01 00 00 8F 3D CC [13:48:54]Write i2c OK [13:48:54]MH_I2C_Read... [13:48:54]OFD Sender: No OFD packet to send [13:48:54]*** Cut start [13:48:54]*** Partial cut [13:48:54]*** CUTSNS_PIN = 1 [13:48:54]*** CUTSNS_PIN = 0 [13:48:55]*** Brake cut motor [13:48:55]Read from MH i2c: 01 [13:48:55]MH_I2C_Read... [13:48:55]*** Stop cut motor [13:48:55]*** Cut end [13:48:55]Read from MH i2c: 01 07 00 [13:48:55]MH_I2C_Read... [13:48:55]Read from MH i2c: 01 07 00 8F 3D 00 00 00 00 00 FF 0F E1 [13:48:55]process_action close_receipt done [13:48:55]requested_data is exist [13:48:55]produce_requested_data [13:48:55]requested_item fm.sn is exist - process it [13:48:55]wFMCommunicate request_size=4 [13:48:55]MH_SAM_APDU [13:48:55]CAPDU: 80 11 00 00 [13:48:55]Write to MH i2c: E2 08 00 90 3D 80 11 00 00 00 00 00 00 47 [13:48:55]Write i2c OK [13:48:55]MH_I2C_Read... [13:48:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:55]Read from MH i2c: E2 [13:48:55]MH_I2C_Read... [13:48:55]Read from MH i2c: E2 17 00 [13:48:55]MH_I2C_Read... [13:48:55]Read from MH i2c: E2 17 00 90 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9E [13:48:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:48:55]wFMCommunicate OK [13:48:55]requested_item fd.num is exist - process it [13:48:55]SAM_PROTO_GetFieldsCounters [13:48:55]wFMCommunicate request_size=4 [13:48:55]MH_SAM_APDU [13:48:55]CAPDU: 80 13 00 00 [13:48:55]Write to MH i2c: E2 08 00 91 3D 80 13 00 00 00 00 00 00 4A [13:48:55]Write i2c OK [13:48:55]MH_I2C_Read... [13:48:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:48:55]Read from MH i2c: E2 [13:48:55]MH_I2C_Read... [13:48:55]Read from MH i2c: E2 62 00 [13:48:55]MH_I2C_Read... [13:48:55]Read from MH i2c: E2 62 00 91 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8F 7B 03 00 0E 04 04 00 17 02 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 FA [13:48:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8F 7B 03 00 0E 04 04 00 17 02 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 [13:48:55]wFMCommunicate OK [13:48:55]SAM_PROTO_GetFieldsCounters done [13:48:55]requested_item shift.num is exist - process it [13:48:55]requested_item shift.opened is exist - process it [13:48:55]req_shift_opened [13:48:55]FM_GetShiftState [13:48:55]SAM_PROTO_GetShiftState [13:48:55]wFMCommunicate request_size=4 [13:48:55]MH_SAM_APDU [13:48:55]CAPDU: 80 13 01 00 [13:48:55]Write to MH i2c: E2 08 00 92 3D 80 13 01 00 00 00 00 00 4C [13:48:55]Write i2c OK [13:48:55]MH_I2C_Read... [13:48:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:55]Read from MH i2c: E2 [13:48:55]MH_I2C_Read... [13:48:55]Read from MH i2c: E2 0E 00 [13:48:55]MH_I2C_Read... [13:48:55]Read from MH i2c: E2 0E 00 92 3D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 13 [13:48:55]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:48:55]wFMCommunicate OK [13:48:55]SAM_PROTO_GetShiftState done [13:48:55]FM_GetShiftState done [13:48:55]req_shift_opened done [13:48:55]requested_item shift.open_date is exist - process it [13:48:55]req_shift_open_date [13:48:55]req_shift_open_date done [13:48:55]produce_requested_data done [13:48:55]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228239,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:48:55]process_action_free close_receipt [13:48:55]json_value_free [13:48:55]json_value_free done [13:48:55]process_json_proto returns [13:48:55]Send response to host [13:48:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228239,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:48:55]free response buf [13:48:55]execute_script done [13:48:55]execute_script returns [13:48:55]free content buf [13:48:55]Sock 7.Close socket [13:48:55]Sock 7.Thread stoped [13:48:59]OFD Sender: No OFD packet to send [13:49:04]OFD Sender: No OFD packet to send [13:49:09]OFD Sender: No OFD packet to send [13:49:14]OFD Sender: No OFD packet to send [13:49:19]OFD Sender: No OFD packet to send [13:49:24]OFD Sender: No OFD packet to send [13:49:29]OFD Sender: No OFD packet to send [13:49:34]OFD Sender: No OFD packet to send [13:49:39]OFD Sender: No OFD packet to send [13:49:44]OFD Sender: No OFD packet to send [13:49:46]accept exits with 9 [13:49:46]New connection [13:49:46]New thread 3067137380 created [13:49:46]Thread 3066994020 joined [13:49:46]Waiting for new connection... [13:49:46] Sock 9.Parse request [13:49:46]Sock 9.Check first char [13:49:46]Sock 9.First char is OK [13:49:46]request: POST /json_proto HTTP/1.0 [13:49:46]Method: POST [13:49:46]URL: /json_proto [13:49:46]Method is POST - this is cgi request [13:49:46]url: /json_proto [13:49:46]query_string will be loaded in cgi processing [13:49:46]execute_cgi json_proto POST (null) [13:49:46]execute_cgi path=json_proto method=POST [13:49:46]POST find Content-Length [13:49:46]Host: 172.17.44.195:8080 [13:49:46]Content-Length: 660 [13:49:46]Content-Type: application/json [13:49:46] [13:49:46]POST finish read [13:49:46]Found Content-Length = 660 [13:49:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.970, "sum" : 750.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:46]execute_script... [13:49:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.970, "sum" : 750.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:46]POST & json_proto [13:49:46]process_json_proto [13:49:46]json parsed OK: [13:49:46]protocol is kg_v1.0 [13:49:46]action value=close_receipt [13:49:46]process_action close_receipt [13:49:46]cmd_close_receipt [13:49:46]MH_GetDate [13:49:46]Write to MH i2c: F0 00 00 93 3D BF [13:49:46]Write i2c OK [13:49:46]MH_I2C_Read... [13:49:46]Read from MH i2c: F0 [13:49:46]MH_I2C_Read... [13:49:46]Read from MH i2c: F0 09 00 [13:49:46]MH_I2C_Read... [13:49:46]Read from MH i2c: F0 09 00 93 3D 00 7E AD 17 67 82 C9 CF 66 F1 [13:49:46]GetLastDocTimeStamp 1729604935 [13:49:46]current date 1729604990 [13:49:46]FM_GetShiftState [13:49:46]SAM_PROTO_GetShiftState [13:49:46]wFMCommunicate request_size=4 [13:49:46]MH_SAM_APDU [13:49:46]CAPDU: 80 13 01 00 [13:49:46]Write to MH i2c: E2 08 00 94 3D 80 13 01 00 00 00 00 00 4E [13:49:46]Write i2c OK [13:49:46]MH_I2C_Read... [13:49:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:46]Read from MH i2c: E2 [13:49:46]MH_I2C_Read... [13:49:46]Read from MH i2c: E2 0E 00 [13:49:46]MH_I2C_Read... [13:49:46]Read from MH i2c: E2 0E 00 94 3D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 15 [13:49:46]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:49:46]wFMCommunicate OK [13:49:46]SAM_PROTO_GetShiftState done [13:49:46]FM_GetShiftState done [13:49:46]opened in 1729555538 [13:49:46]opened+sec_in_day 1729641938 [13:49:46]quantity*price = 75034 [13:49:46]sum+1 = 75036 [13:49:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.68 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 204 22.10.2024 13:49 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228240 ФПД: 111057738071286 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134950&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228240&fm=111057738071286&tin=02508201610067®Number=0000000000091685&sum=75000 [13:49:47]StoreToDocumentArchive [13:49:47]shift 535 fd 228240 [13:49:47]save to /storage/0535/doc_00228240 [13:49:47]save last doc name /storage/0535/doc_00228240 to /storage/kkm_last_doc_name [13:49:47]save OK [13:49:47]Clear old archive folders... [13:49:47]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:49:47]tlvbuf is 008E5120 [13:49:47]SAM_PROTO_ClearQueue [13:49:47]wFMCommunicate request_size=4 [13:49:47]MH_SAM_APDU [13:49:47]CAPDU: 80 09 00 00 [13:49:47]Write to MH i2c: E2 08 00 A1 3D 80 09 00 00 00 00 00 00 50 [13:49:47]Write i2c OK [13:49:47]MH_I2C_Read... [13:49:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:49:47]Read from MH i2c: E2 [13:49:47]MH_I2C_Read... [13:49:47]Read from MH i2c: E2 03 00 [13:49:47]MH_I2C_Read... [13:49:47]Read from MH i2c: E2 03 00 A1 3D 00 90 00 52 [13:49:47]RAPDU: 90 00 [13:49:47]wFMCommunicate OK [13:49:47]SAM_PROTO_ClearQueue done [13:49:47]KKMCreateOFDPacket [13:49:47]OFDProtocolAddRootSTLVToBuf [13:49:47]FM_MakeSignedData [13:49:47]FM_MakeSignedData [13:49:47]SAM_PROTO_SignData [13:49:47]wFMCommunicate request_size=4 [13:49:47]MH_SAM_APDU [13:49:47]CAPDU: 80 0D 01 02 [13:49:47]Write to MH i2c: E2 08 00 A2 3D 80 0D 01 02 00 00 00 00 58 [13:49:47]Write i2c OK [13:49:47]MH_I2C_Read... [13:49:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:49:47]Read from MH i2c: E2 [13:49:47]MH_I2C_Read... [13:49:47]Read from MH i2c: E2 03 00 [13:49:47]MH_I2C_Read... [13:49:47]Read from MH i2c: E2 03 00 A2 3D 00 90 00 53 [13:49:47]RAPDU: 90 00 [13:49:47]wFMCommunicate OK [13:49:47]wFMCommunicate request_size=253 [13:49:47]MH_SAM_APDU [13:49:47]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 2A 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 1B 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 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 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 7E AD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 90 7B 03 00 35 04 06 00 65 01 A5 06 FC F6 [13:49:47]Write to MH i2c: E2 00 01 A3 3D 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 2A 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 1B 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 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 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 7E AD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 90 7B 03 00 35 04 06 00 65 01 A5 06 FC F6 00 00 E1 [13:49:47]Write i2c OK [13:49:47]MH_I2C_Read... [13:49:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:47]Read from MH i2c: E2 [13:49:47]MH_I2C_Read... [13:49:47]Read from MH i2c: E2 03 00 [13:49:47]MH_I2C_Read... [13:49:47]Read from MH i2c: E2 03 00 A3 3D 00 90 00 54 [13:49:47]RAPDU: 90 00 [13:49:47]wFMCommunicate OK [13:49:47]wFMCommunicate request_size=4 [13:49:47]MH_SAM_APDU [13:49:47]CAPDU: 80 0D 03 02 [13:49:47]Write to MH i2c: E2 08 00 A4 3D 80 0D 03 02 00 00 00 00 5C [13:49:47]Write i2c OK [13:49:47]MH_I2C_Read... [13:49:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:49:47]Read from MH i2c: E2 [13:49:47]MH_I2C_Read... [13:49:47]Read from MH i2c: E2 0B 00 [13:49:47]MH_I2C_Read... [13:49:47]Read from MH i2c: E2 0B 00 A4 3D 00 FE 00 C4 3B A2 BA 13 38 90 00 01 [13:49:47]RAPDU: FE 00 C4 3B A2 BA 13 38 90 00 [13:49:47]wFMCommunicate OK [13:49:47]SAM_PROTO_SignData done [13:49:47]FM_MakeSignedData done [13:49:47]CreateOFDProtocolMessage [13:49:47]wFMCommunicate request_size=4 [13:49:47]MH_SAM_APDU [13:49:47]CAPDU: 80 11 00 00 [13:49:47]Write to MH i2c: E2 08 00 A5 3D 80 11 00 00 00 00 00 00 5C [13:49:47]Write i2c OK [13:49:47]MH_I2C_Read... [13:49:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:47]Read from MH i2c: E2 [13:49:47]MH_I2C_Read... [13:49:47]Read from MH i2c: E2 17 00 [13:49:47]MH_I2C_Read... [13:49:47]Read from MH i2c: E2 17 00 A5 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B3 [13:49:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:49:47]wFMCommunicate OK [13:49:47]CreateOFDProtocolMessage done [13:49:47]OFDSenderStorePacket 228240 [13:49:47]StoreOFDPacket docnum=228240 [13:49:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 B9 69 00 01 02 33 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 2A 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 1B 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 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 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 7E AD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 90 7B 03 00 35 04 06 00 65 01 A5 06 FC F6 FE 00 C4 3B A2 BA 13 38 [13:49:47]CheckFolder [13:49:47]dirname=/storage/ofd_packets [13:49:47]CheckFolder done [13:49:47]ProducePacketName [13:49:47]name=ofd_packets/00228240 [13:49:47]NVStorageSaveData ofd_packets/00228240 [13:49:47]File name is /storage/ofd_packets/00228240 [13:49:47]Write 294 bytes [13:49:47]NVStorageSaveData done [13:49:47]OFDSenderStorePacket done [13:49:47]KKMCreateOFDPacket done [13:49:47]NVStorageSaveData kkm_last_timestamp [13:49:47]File name is /storage/kkm_last_timestamp [13:49:47]Write 4 bytes [13:49:47]NVStorageSaveData done [13:49:47]ExternCall_PrintAddStr [13:49:47]wPrintStart [13:49:47]Write to MH i2c: 01 00 00 A6 3D E3 [13:49:47]Write i2c OK [13:49:47]MH_I2C_Read... [13:49:47]Read from MH i2c: 01 [13:49:47]MH_I2C_Read... [13:49:47]Read from MH i2c: 01 07 00 [13:49:47]MH_I2C_Read... [13:49:47]Read from MH i2c: 01 07 00 A6 3D 00 00 00 00 00 FF 0F F8 [13:49:47]RasterBufferAndPrint [13:49:47]line Счет N : (1)1964697 [13:49:47]line ИНН: 02508201610067 [13:49:47]line Контрольно-Кассовый Чек [13:49:47]line ПРОДАЖА [13:49:47]line ТРК (МРК, ГНК) : 42 [13:49:47]line Товар: 2710124130 [13:49:47]line SU-92 [13:49:47]line 10.970 * 68.40 [13:49:47]line = 750.35 [13:49:47]line НДС 12% НСП 1% [13:49:47]line > о реализуемом товаре [13:49:47]line ОКРУГЛЕНИЕ: -0.35 [13:49:47]line ИТОГО: 750.00 [13:49:47]line Внесено: 750.00 [13:49:47]line СДАЧА: 0.00 [13:49:47]line НСП 1% : 6.64 [13:49:47]line НДС 12% : 79.68 [13:49:47]line Наличными: 750.00 [13:49:47]line Безнал.: 0.00 [13:49:47]line Место: АЗС № 133 "Партнер Нефть" [13:49:47]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:49:47]line СНО: Общий режим [13:49:47]line Чек 204 22.10.2024 13:49 [13:49:47]line Смена: 535 ФФД: 1.0 [13:49:47]line ЗНМ: 0300000091 [13:49:47]line РНМ: 0000000000091685 [13:49:47]line Версия ККМ: 001 [13:49:47]line ФМ: 0000000000871839 [13:49:47]line ФД: 228240 [13:49:47]line ФПД: 111057738071286 [13:49:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134950&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228240&fm=111057738071286&tin=02508201610067®Number=0000000000091685&sum=75000 [13:49:48]OFD Sender: Processing packet 228240 [packets to send 38, broken 37] [13:49:48]ProducePacketName [13:49:48]name=ofd_packets/00228240 [13:49:48]OFD Sender: To server: pG, [13:49:48]CommunicateWithHost lk.salyk.kg:30040 [13:49:48]ConnectInit lk.salyk.kg [13:49:48]written 0, free lines is 4095 [13:49:48]Connected sock=7 [13:49:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 B9 69 00 01 02 33 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 2A 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 1B 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 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 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 7E AD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 90 7B 03 00 35 04 06 00 65 01 A5 06 FC F6 FE 00 C4 3B A2 BA 13 38 [13:49:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 FB 54 47 00 0A 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 90 7B 03 00 F4 03 04 00 76 58 17 67 B6 04 01 00 00 F4 21 66 52 62 2F F0 10 [13:49:48]CommunicateWithHost err = 0 [13:49:48]CheckOFDResponse [13:49:48]1017 (14) - 77093643461234 [13:49:48]1041 (16) - 0000000000871839 [13:49:48]1040 (4) - 228240 [13:49:48]1012 (4) - 22.10.2024 07:47 [13:49:48]1206 (1) - 0 [13:49:48]OFD Sender: Remove packet 228240 [13:49:48]ProducePacketName [13:49:48]name=ofd_packets/00228240 [13:49:48]NVStorageDeleteData [13:49:48]Write to MH i2c: 01 00 00 D0 3D 0D [13:49:48]Write i2c OK [13:49:48]MH_I2C_Read... [13:49:48]Read from MH i2c: 01 [13:49:48]MH_I2C_Read... [13:49:48]Read from MH i2c: 01 07 00 [13:49:48]MH_I2C_Read... [13:49:48]Read from MH i2c: 01 07 00 D0 3D 00 00 00 00 00 C2 0C E2 [13:49:48]RasterBufferAndPrint [13:49:48]line [13:49:48]line [13:49:48]line [13:49:48]line [13:49:48]line [13:49:48]written 0, free lines is 3270 [13:49:48]MH_Cut [13:49:48]Write to MH i2c: D1 01 00 D7 3D 01 E6 [13:49:48]Write i2c OK [13:49:48]MH_I2C_Read... [13:49:48]Read from MH i2c: D1 [13:49:48]MH_I2C_Read... [13:49:48]Read from MH i2c: D1 01 00 [13:49:48]MH_I2C_Read... [13:49:48]Read from MH i2c: D1 01 00 D7 3D 00 E5 [13:49:48]Write to MH i2c: 01 00 00 D8 3D 15 [13:49:48]Write i2c OK [13:49:48]MH_I2C_Read... [13:49:48]OFD Sender: No OFD packet to send [13:49:49]*** Cut start [13:49:49]*** Partial cut [13:49:49]*** CUTSNS_PIN = 1 [13:49:49]*** CUTSNS_PIN = 0 [13:49:49]*** Brake cut motor [13:49:49]Read from MH i2c: 01 [13:49:49]MH_I2C_Read... [13:49:49]*** Stop cut motor [13:49:49]*** Cut end [13:49:49]Read from MH i2c: 01 07 00 [13:49:49]MH_I2C_Read... [13:49:49]Read from MH i2c: 01 07 00 D8 3D 00 00 00 00 00 FF 0F 2A [13:49:49]process_action close_receipt done [13:49:49]requested_data is exist [13:49:49]produce_requested_data [13:49:49]requested_item fm.sn is exist - process it [13:49:49]wFMCommunicate request_size=4 [13:49:49]MH_SAM_APDU [13:49:49]CAPDU: 80 11 00 00 [13:49:49]Write to MH i2c: E2 08 00 D9 3D 80 11 00 00 00 00 00 00 90 [13:49:49]Write i2c OK [13:49:49]MH_I2C_Read... [13:49:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:50]Read from MH i2c: E2 [13:49:50]MH_I2C_Read... [13:49:50]Read from MH i2c: E2 17 00 [13:49:50]MH_I2C_Read... [13:49:50]Read from MH i2c: E2 17 00 D9 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E7 [13:49:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:49:50]wFMCommunicate OK [13:49:50]requested_item fd.num is exist - process it [13:49:50]SAM_PROTO_GetFieldsCounters [13:49:50]wFMCommunicate request_size=4 [13:49:50]MH_SAM_APDU [13:49:50]CAPDU: 80 13 00 00 [13:49:50]Write to MH i2c: E2 08 00 DA 3D 80 13 00 00 00 00 00 00 93 [13:49:50]Write i2c OK [13:49:50]MH_I2C_Read... [13:49:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:49:50]Read from MH i2c: E2 [13:49:50]MH_I2C_Read... [13:49:50]Read from MH i2c: E2 62 00 [13:49:50]MH_I2C_Read... [13:49:50]Read from MH i2c: E2 62 00 DA 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 90 7B 03 00 0E 04 04 00 17 02 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 47 [13:49:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 90 7B 03 00 0E 04 04 00 17 02 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 [13:49:50]wFMCommunicate OK [13:49:50]SAM_PROTO_GetFieldsCounters done [13:49:50]requested_item shift.num is exist - process it [13:49:50]requested_item shift.opened is exist - process it [13:49:50]req_shift_opened [13:49:50]FM_GetShiftState [13:49:50]SAM_PROTO_GetShiftState [13:49:50]wFMCommunicate request_size=4 [13:49:50]MH_SAM_APDU [13:49:50]CAPDU: 80 13 01 00 [13:49:50]Write to MH i2c: E2 08 00 DB 3D 80 13 01 00 00 00 00 00 95 [13:49:50]Write i2c OK [13:49:50]MH_I2C_Read... [13:49:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:50]Read from MH i2c: E2 [13:49:50]MH_I2C_Read... [13:49:50]Read from MH i2c: E2 0E 00 [13:49:50]MH_I2C_Read... [13:49:50]Read from MH i2c: E2 0E 00 DB 3D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 5C [13:49:50]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:49:50]wFMCommunicate OK [13:49:50]SAM_PROTO_GetShiftState done [13:49:50]FM_GetShiftState done [13:49:50]req_shift_opened done [13:49:50]requested_item shift.open_date is exist - process it [13:49:50]req_shift_open_date [13:49:50]req_shift_open_date done [13:49:50]produce_requested_data done [13:49:50]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228240,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:49:50]process_action_free close_receipt [13:49:50]json_value_free [13:49:50]json_value_free done [13:49:50]process_json_proto returns [13:49:50]Send response to host [13:49:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228240,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:49:50]free response buf [13:49:50]execute_script done [13:49:50]execute_script returns [13:49:50]free content buf [13:49:50]Sock 9.Close socket [13:49:50]Sock 9.Thread stoped [13:49:53]OFD Sender: No OFD packet to send [13:49:58]OFD Sender: No OFD packet to send [13:50:03]OFD Sender: No OFD packet to send [13:50:08]OFD Sender: No OFD packet to send [13:50:13]OFD Sender: No OFD packet to send [13:50:18]OFD Sender: No OFD packet to send [13:50:23]OFD Sender: No OFD packet to send [13:50:28]OFD Sender: No OFD packet to send [13:50:33]OFD Sender: No OFD packet to send [13:50:38]OFD Sender: No OFD packet to send [13:50:43]OFD Sender: No OFD packet to send [13:50:48]OFD Sender: No OFD packet to send [13:50:53]OFD Sender: No OFD packet to send [13:50:58]OFD Sender: No OFD packet to send [13:51:03]OFD Sender: No OFD packet to send [13:51:08]OFD Sender: No OFD packet to send [13:51:13]OFD Sender: No OFD packet to send [13:51:18]OFD Sender: No OFD packet to send [13:51:23]OFD Sender: No OFD packet to send [13:51:28]OFD Sender: No OFD packet to send [13:51:33]OFD Sender: No OFD packet to send [13:51:38]OFD Sender: No OFD packet to send [13:51:43]OFD Sender: No OFD packet to send [13:51:48]OFD Sender: No OFD packet to send [13:51:53]OFD Sender: No OFD packet to send [13:51:58]OFD Sender: No OFD packet to send [13:52:02]accept exits with 10 [13:52:02]New connection [13:52:02]New thread 3066994020 created [13:52:02]Thread 3067137380 joined [13:52:02]Waiting for new connection... [13:52:02] Sock 10.Parse request [13:52:02]Sock 10.Check first char [13:52:02]Sock 10.First char is OK [13:52:02]request: POST /json_proto HTTP/1.0 [13:52:02]Method: POST [13:52:02]URL: /json_proto [13:52:02]Method is POST - this is cgi request [13:52:02]url: /json_proto [13:52:02]query_string will be loaded in cgi processing [13:52:02]execute_cgi json_proto POST (null) [13:52:02]execute_cgi path=json_proto method=POST [13:52:02]POST find Content-Length [13:52:02]Host: 172.17.44.195:8080 [13:52:02]Content-Length: 801 [13:52:02]Content-Type: application/json [13:52:02] [13:52:02]POST finish read [13:52:02]Found Content-Length = 801 [13:52:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964698", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4219611", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:52:02]execute_script... [13:52: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)1964698", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4219611", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:52:02]POST & json_proto [13:52:02]process_json_proto [13:52:02]json parsed OK: [13:52:02]protocol is kg_v1.0 [13:52:02]action value=close_receipt [13:52:02]process_action close_receipt [13:52:02]cmd_close_receipt [13:52:02]MH_GetDate [13:52:02]Write to MH i2c: F0 00 00 DC 3D 08 [13:52:02]Write i2c OK [13:52:02]MH_I2C_Read... [13:52:02]Read from MH i2c: F0 [13:52:02]MH_I2C_Read... [13:52:02]Read from MH i2c: F0 09 00 [13:52:02]MH_I2C_Read... [13:52:02]Read from MH i2c: F0 09 00 DC 3D 00 06 AE 17 67 82 C9 CF 66 C3 [13:52:02]GetLastDocTimeStamp 1729604990 [13:52:02]current date 1729605126 [13:52:02]FM_GetShiftState [13:52:02]SAM_PROTO_GetShiftState [13:52:02]wFMCommunicate request_size=4 [13:52:02]MH_SAM_APDU [13:52:02]CAPDU: 80 13 01 00 [13:52:02]Write to MH i2c: E2 08 00 DD 3D 80 13 01 00 00 00 00 00 97 [13:52:02]Write i2c OK [13:52:02]MH_I2C_Read... [13:52:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:02]Read from MH i2c: E2 [13:52:02]MH_I2C_Read... [13:52:02]Read from MH i2c: E2 0E 00 [13:52:02]MH_I2C_Read... [13:52:02]Read from MH i2c: E2 0E 00 DD 3D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 5E [13:52:02]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:52:02]wFMCommunicate OK [13:52:02]SAM_PROTO_GetShiftState done [13:52:02]FM_GetShiftState done [13:52:02]opened in 1729555538 [13:52:02]opened+sec_in_day 1729641938 [13:52:02]quantity*price = 0 [13:52:02]sum+1 = 1 [13:52:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 205 22.10.2024 13:52 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливные Талоны 4219611 ФМ: 0000000000871839 ФД: 228241 ФПД: 162374265777885 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135206&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228241&fm=162374265777885&tin=02508201610067®Number=0000000000091685&sum=0 [13:52:03]StoreToDocumentArchive [13:52:03]shift 535 fd 228241 [13:52:03]save to /storage/0535/doc_00228241 [13:52:03]save last doc name /storage/0535/doc_00228241 to /storage/kkm_last_doc_name [13:52:03]save OK [13:52:03]Clear old archive folders... [13:52:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:52:03]tlvbuf is 0094F0D0 [13:52:03]SAM_PROTO_ClearQueue [13:52:03]wFMCommunicate request_size=4 [13:52:03]MH_SAM_APDU [13:52:03]CAPDU: 80 09 00 00 [13:52:03]Write to MH i2c: E2 08 00 EA 3D 80 09 00 00 00 00 00 00 99 [13:52:03]Write i2c OK [13:52:03]MH_I2C_Read... [13:52:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:52:03]Read from MH i2c: E2 [13:52:03]MH_I2C_Read... [13:52:03]Read from MH i2c: E2 03 00 [13:52:03]MH_I2C_Read... [13:52:03]Read from MH i2c: E2 03 00 EA 3D 00 90 00 9B [13:52:03]RAPDU: 90 00 [13:52:03]wFMCommunicate OK [13:52:03]SAM_PROTO_ClearQueue done [13:52:03]KKMCreateOFDPacket [13:52:03]OFDProtocolAddRootSTLVToBuf [13:52:03]FM_MakeSignedData [13:52:03]FM_MakeSignedData [13:52:03]SAM_PROTO_SignData [13:52:03]wFMCommunicate request_size=4 [13:52:03]MH_SAM_APDU [13:52:03]CAPDU: 80 0D 01 02 [13:52:03]Write to MH i2c: E2 08 00 EB 3D 80 0D 01 02 00 00 00 00 A1 [13:52:03]Write i2c OK [13:52:03]MH_I2C_Read... [13:52:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:52:03]Read from MH i2c: E2 [13:52:03]MH_I2C_Read... [13:52:03]Read from MH i2c: E2 03 00 [13:52:03]MH_I2C_Read... [13:52:03]Read from MH i2c: E2 03 00 EB 3D 00 90 00 9C [13:52:03]RAPDU: 90 00 [13:52:03]wFMCommunicate OK [13:52:03]wFMCommunicate request_size=255 [13:52:03]MH_SAM_APDU [13:52: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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 06 AE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 91 7B 03 00 35 04 06 00 93 [13:52:03]Write to MH i2c: E2 02 01 EC 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 06 AE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 91 7B 03 00 35 04 06 00 93 00 00 DB [13:52:03]Write i2c OK [13:52:03]MH_I2C_Read... [13:52:04]OFD Sender: No OFD packet to send [13:52:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:04]Read from MH i2c: E2 [13:52:04]MH_I2C_Read... [13:52:04]Read from MH i2c: E2 03 00 [13:52:04]MH_I2C_Read... [13:52:04]Read from MH i2c: E2 03 00 EC 3D 00 90 00 9D [13:52:04]RAPDU: 90 00 [13:52:04]wFMCommunicate OK [13:52:04]wFMCommunicate request_size=10 [13:52:04]MH_SAM_APDU [13:52:04]CAPDU: 80 0D 02 02 05 AD B4 6E AE DD [13:52:04]Write to MH i2c: E2 0D 00 ED 3D 80 0D 02 02 05 00 AD B4 6E AE DD 00 00 08 [13:52:04]Write i2c OK [13:52:04]MH_I2C_Read... [13:52:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:04]Read from MH i2c: E2 [13:52:04]MH_I2C_Read... [13:52:04]Read from MH i2c: E2 03 00 [13:52:04]MH_I2C_Read... [13:52:04]Read from MH i2c: E2 03 00 ED 3D 00 90 00 9E [13:52:04]RAPDU: 90 00 [13:52:04]wFMCommunicate OK [13:52:04]wFMCommunicate request_size=4 [13:52:04]MH_SAM_APDU [13:52:04]CAPDU: 80 0D 03 02 [13:52:04]Write to MH i2c: E2 08 00 EE 3D 80 0D 03 02 00 00 00 00 A6 [13:52:04]Write i2c OK [13:52:04]MH_I2C_Read... [13:52:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:52:04]Read from MH i2c: E2 [13:52:04]MH_I2C_Read... [13:52:04]Read from MH i2c: E2 0B 00 [13:52:04]MH_I2C_Read... [13:52:04]Read from MH i2c: E2 0B 00 EE 3D 00 5A 8A D9 D5 BD 32 C3 15 90 00 00 [13:52:04]RAPDU: 5A 8A D9 D5 BD 32 C3 15 90 00 [13:52:04]wFMCommunicate OK [13:52:04]SAM_PROTO_SignData done [13:52:04]FM_MakeSignedData done [13:52:04]CreateOFDProtocolMessage [13:52:04]wFMCommunicate request_size=4 [13:52:04]MH_SAM_APDU [13:52:04]CAPDU: 80 11 00 00 [13:52:04]Write to MH i2c: E2 08 00 EF 3D 80 11 00 00 00 00 00 00 A6 [13:52:04]Write i2c OK [13:52:04]MH_I2C_Read... [13:52:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:04]Read from MH i2c: E2 [13:52:04]MH_I2C_Read... [13:52:04]Read from MH i2c: E2 17 00 [13:52:04]MH_I2C_Read... [13:52:04]Read from MH i2c: E2 17 00 EF 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FD [13:52:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:52:04]wFMCommunicate OK [13:52:04]CreateOFDProtocolMessage done [13:52:04]OFDSenderStorePacket 228241 [13:52:04]StoreOFDPacket docnum=228241 [13:52:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 30 DB 07 01 75 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 06 AE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 91 7B 03 00 35 04 06 00 93 AD B4 6E AE DD 5A 8A D9 D5 BD 32 C3 15 [13:52:04]CheckFolder [13:52:04]dirname=/storage/ofd_packets [13:52:04]CheckFolder done [13:52:04]ProducePacketName [13:52:04]name=ofd_packets/00228241 [13:52:04]NVStorageSaveData ofd_packets/00228241 [13:52:04]File name is /storage/ofd_packets/00228241 [13:52:04]Write 301 bytes [13:52:04]NVStorageSaveData done [13:52:04]OFDSenderStorePacket done [13:52:04]KKMCreateOFDPacket done [13:52:04]NVStorageSaveData kkm_last_timestamp [13:52:04]File name is /storage/kkm_last_timestamp [13:52:04]Write 4 bytes [13:52:04]NVStorageSaveData done [13:52:04]ExternCall_PrintAddStr [13:52:04]wPrintStart [13:52:04]Write to MH i2c: 01 00 00 F0 3D 2D [13:52:04]Write i2c OK [13:52:04]MH_I2C_Read... [13:52:04]Read from MH i2c: 01 [13:52:04]MH_I2C_Read... [13:52:04]Read from MH i2c: 01 07 00 [13:52:04]MH_I2C_Read... [13:52:04]Read from MH i2c: 01 07 00 F0 3D 00 00 00 00 00 FF 0F 42 [13:52:04]RasterBufferAndPrint [13:52:04]line Счет N : (1)1964698 [13:52:04]line ИНН: 02508201610067 [13:52:04]line Контрольно-Кассовый Чек [13:52:04]line ПРОДАЖА [13:52:04]line ТРК (МРК, ГНК) : 63 [13:52:04]line Товар: 2710124130 [13:52:04]line Аи-92-К-5 [13:52:04]line 20.000 * 0.00 [13:52:04]line = 0.00 [13:52:04]line НДС 12% НСП 1% [13:52:04]line > о реализуемом товаре [13:52:04]line ИТОГО: 0.00 [13:52:04]line НСП 1% : 0.00 [13:52:04]line НДС 12% : 0.00 [13:52:04]line Наличными: 0.00 [13:52:04]line Безнал.: 0.00 [13:52:04]line Место: АЗС № 133 "Партнер Нефть" [13:52:04]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:52:04]line СНО: Общий режим [13:52:04]line Чек 205 22.10.2024 13:52 [13:52:04]line Смена: 535 ФФД: 1.0 [13:52:04]line ЗНМ: 0300000091 [13:52:04]line РНМ: 0000000000091685 [13:52:04]line Версия ККМ: 001 [13:52:04]line Талоны: Топливные Талоны [13:52:04]line 4219611 [13:52:04]line ФМ: 0000000000871839 [13:52:04]line ФД: 228241 [13:52:04]line ФПД: 162374265777885 [13:52:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135206&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228241&fm=162374265777885&tin=02508201610067®Number=0000000000091685&sum=0 [13:52:04]written 0, free lines is 4095 [13:52:04]OFD Sender: Processing packet 228241 [packets to send 38, broken 37] [13:52:04]ProducePacketName [13:52:04]name=ofd_packets/00228241 [13:52:04]OFD Sender: To server: pG, [13:52:04]CommunicateWithHost lk.salyk.kg:30040 [13:52:04]ConnectInit lk.salyk.kg [13:52:04]Connected sock=9 [13:52:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 30 DB 07 01 75 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 06 AE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 91 7B 03 00 35 04 06 00 93 AD B4 6E AE DD 5A 8A D9 D5 BD 32 C3 15 [13:52:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 6E 15 47 00 BD 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 38 37 31 38 33 39 10 04 04 00 91 7B 03 00 F4 03 04 00 FF 58 17 67 B6 04 01 00 00 79 4E 7E A2 0D E6 1C A1 [13:52:04]CommunicateWithHost err = 0 [13:52:04]CheckOFDResponse [13:52:04]1017 (14) - 77093643461234 [13:52:04]1041 (16) - 0000000000871839 [13:52:04]1040 (4) - 228241 [13:52:04]1012 (4) - 22.10.2024 07:49 [13:52:04]1206 (1) - 0 [13:52:04]OFD Sender: Remove packet 228241 [13:52:04]ProducePacketName [13:52:04]name=ofd_packets/00228241 [13:52:04]NVStorageDeleteData [13:52:05]Write to MH i2c: 01 00 00 19 3E 57 [13:52:05]Write i2c OK [13:52:05]MH_I2C_Read... [13:52:05]Read from MH i2c: 01 [13:52:05]MH_I2C_Read... [13:52:05]Read from MH i2c: 01 07 00 [13:52:05]MH_I2C_Read... [13:52:05]Read from MH i2c: 01 07 00 19 3E 00 00 00 00 00 DD 0C 47 [13:52:05]RasterBufferAndPrint [13:52:05]line [13:52:05]line [13:52:05]line [13:52:05]line [13:52:05]line [13:52:05]written 0, free lines is 3300 [13:52:05]MH_Cut [13:52:05]Write to MH i2c: D1 01 00 20 3E 01 30 [13:52:05]Write i2c OK [13:52:05]MH_I2C_Read... [13:52:05]Read from MH i2c: D1 [13:52:05]MH_I2C_Read... [13:52:05]Read from MH i2c: D1 01 00 [13:52:05]MH_I2C_Read... [13:52:05]Read from MH i2c: D1 01 00 20 3E 00 2F [13:52:05]Write to MH i2c: 01 00 00 21 3E 5F [13:52:05]Write i2c OK [13:52:05]MH_I2C_Read... [13:52:05]OFD Sender: No OFD packet to send [13:52:05]*** Cut start [13:52:05]*** Partial cut [13:52:05]*** CUTSNS_PIN = 1 [13:52:05]*** CUTSNS_PIN = 0 [13:52:06]*** Brake cut motor [13:52:06]Read from MH i2c: 01 [13:52:06]MH_I2C_Read... [13:52:06]*** Stop cut motor [13:52:06]*** Cut end [13:52:06]Read from MH i2c: 01 07 00 [13:52:06]MH_I2C_Read... [13:52:06]Read from MH i2c: 01 07 00 21 3E 00 00 00 00 00 FF 0F 74 [13:52:06]process_action close_receipt done [13:52:06]requested_data is exist [13:52:06]produce_requested_data [13:52:06]requested_item fm.sn is exist - process it [13:52:06]wFMCommunicate request_size=4 [13:52:06]MH_SAM_APDU [13:52:06]CAPDU: 80 11 00 00 [13:52:06]Write to MH i2c: E2 08 00 22 3E 80 11 00 00 00 00 00 00 DA [13:52:06]Write i2c OK [13:52:06]MH_I2C_Read... [13:52:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:06]Read from MH i2c: E2 [13:52:06]MH_I2C_Read... [13:52:06]Read from MH i2c: E2 17 00 [13:52:06]MH_I2C_Read... [13:52:06]Read from MH i2c: E2 17 00 22 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 31 [13:52:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:52:06]wFMCommunicate OK [13:52:06]requested_item fd.num is exist - process it [13:52:06]SAM_PROTO_GetFieldsCounters [13:52:06]wFMCommunicate request_size=4 [13:52:06]MH_SAM_APDU [13:52:06]CAPDU: 80 13 00 00 [13:52:06]Write to MH i2c: E2 08 00 23 3E 80 13 00 00 00 00 00 00 DD [13:52:06]Write i2c OK [13:52:06]MH_I2C_Read... [13:52:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:52:06]Read from MH i2c: E2 [13:52:06]MH_I2C_Read... [13:52:06]Read from MH i2c: E2 62 00 [13:52:06]MH_I2C_Read... [13:52:06]Read from MH i2c: E2 62 00 23 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 91 7B 03 00 0E 04 04 00 17 02 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 95 [13:52:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 91 7B 03 00 0E 04 04 00 17 02 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 [13:52:06]wFMCommunicate OK [13:52:06]SAM_PROTO_GetFieldsCounters done [13:52:06]requested_item shift.num is exist - process it [13:52:06]requested_item shift.opened is exist - process it [13:52:06]req_shift_opened [13:52:06]FM_GetShiftState [13:52:06]SAM_PROTO_GetShiftState [13:52:06]wFMCommunicate request_size=4 [13:52:06]MH_SAM_APDU [13:52:06]CAPDU: 80 13 01 00 [13:52:06]Write to MH i2c: E2 08 00 24 3E 80 13 01 00 00 00 00 00 DF [13:52:06]Write i2c OK [13:52:06]MH_I2C_Read... [13:52:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:06]Read from MH i2c: E2 [13:52:06]MH_I2C_Read... [13:52:06]Read from MH i2c: E2 0E 00 [13:52:06]MH_I2C_Read... [13:52:06]Read from MH i2c: E2 0E 00 24 3E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 A6 [13:52:06]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:52:06]wFMCommunicate OK [13:52:06]SAM_PROTO_GetShiftState done [13:52:06]FM_GetShiftState done [13:52:06]req_shift_opened done [13:52:06]requested_item shift.open_date is exist - process it [13:52:06]req_shift_open_date [13:52:06]req_shift_open_date done [13:52:06]produce_requested_data done [13:52:06]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228241,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:52:06]process_action_free close_receipt [13:52:06]json_value_free [13:52:06]json_value_free done [13:52:06]process_json_proto returns [13:52:06]Send response to host [13:52:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228241,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:52:06]free response buf [13:52:06]execute_script done [13:52:06]execute_script returns [13:52:06]free content buf [13:52:06]Sock 10.Close socket [13:52:06]Sock 10.Thread stoped [13:52:10]OFD Sender: No OFD packet to send [13:52:15]OFD Sender: No OFD packet to send [13:52:20]OFD Sender: No OFD packet to send [13:52:25]OFD Sender: No OFD packet to send [13:52:30]OFD Sender: No OFD packet to send [13:52:35]OFD Sender: No OFD packet to send [13:52:40]OFD Sender: No OFD packet to send [13:52:45]OFD Sender: No OFD packet to send [13:52:48]accept exits with 7 [13:52:48]New connection [13:52:48]New thread 3067137380 created [13:52:48]Thread 3066994020 joined [13:52:48]Waiting for new connection... [13:52:48] Sock 7.Parse request [13:52:48]Sock 7.Check first char [13:52:48]Sock 7.First char is OK [13:52:48]request: POST /json_proto HTTP/1.0 [13:52:48]Method: POST [13:52:48]URL: /json_proto [13:52:48]Method is POST - this is cgi request [13:52:48]url: /json_proto [13:52:48]query_string will be loaded in cgi processing [13:52:48]execute_cgi json_proto POST (null) [13:52:48]execute_cgi path=json_proto method=POST [13:52:48]POST find Content-Length [13:52:48]Host: 172.17.44.195:8080 [13:52:48]Content-Length: 678 [13:52:48]Content-Type: application/json [13:52:48] [13:52:48]POST finish read [13:52:48]Found Content-Length = 678 [13:52:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:52:48]execute_script... [13:52: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)1964699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:52:48]POST & json_proto [13:52:48]process_json_proto [13:52:48]json parsed OK: [13:52:48]protocol is kg_v1.0 [13:52:48]action value=close_receipt [13:52:48]process_action close_receipt [13:52:48]cmd_close_receipt [13:52:48]MH_GetDate [13:52:48]Write to MH i2c: F0 00 00 25 3E 52 [13:52:48]Write i2c OK [13:52:48]MH_I2C_Read... [13:52:48]Read from MH i2c: F0 [13:52:48]MH_I2C_Read... [13:52:48]Read from MH i2c: F0 09 00 [13:52:48]MH_I2C_Read... [13:52:48]Read from MH i2c: F0 09 00 25 3E 00 35 AE 17 67 82 C9 CF 66 3C [13:52:48]GetLastDocTimeStamp 1729605126 [13:52:48]current date 1729605173 [13:52:48]FM_GetShiftState [13:52:48]SAM_PROTO_GetShiftState [13:52:48]wFMCommunicate request_size=4 [13:52:48]MH_SAM_APDU [13:52:48]CAPDU: 80 13 01 00 [13:52:48]Write to MH i2c: E2 08 00 26 3E 80 13 01 00 00 00 00 00 E1 [13:52:48]Write i2c OK [13:52:48]MH_I2C_Read... [13:52:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:48]Read from MH i2c: E2 [13:52:48]MH_I2C_Read... [13:52:48]Read from MH i2c: E2 0E 00 [13:52:48]MH_I2C_Read... [13:52:48]Read from MH i2c: E2 0E 00 26 3E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 A8 [13:52:48]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:52:48]wFMCommunicate OK [13:52:48]SAM_PROTO_GetShiftState done [13:52:48]FM_GetShiftState done [13:52:48]opened in 1729555538 [13:52:48]opened+sec_in_day 1729641938 [13:52:48]quantity*price = 50041 [13:52:48]sum+1 = 50042 [13:52:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 206 22.10.2024 13:52 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228242 ФПД: 265890877937012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135253&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228242&fm=265890877937012&tin=02508201610067®Number=0000000000091685&sum=50000 [13:52:49]StoreToDocumentArchive [13:52:49]shift 535 fd 228242 [13:52:49]save to /storage/0535/doc_00228242 [13:52:49]save last doc name /storage/0535/doc_00228242 to /storage/kkm_last_doc_name [13:52:49]save OK [13:52:49]Clear old archive folders... [13:52:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:52:49]tlvbuf is 00929D50 [13:52:49]SAM_PROTO_ClearQueue [13:52:49]wFMCommunicate request_size=4 [13:52:49]MH_SAM_APDU [13:52:49]CAPDU: 80 09 00 00 [13:52:49]Write to MH i2c: E2 08 00 33 3E 80 09 00 00 00 00 00 00 E3 [13:52:49]Write i2c OK [13:52:49]MH_I2C_Read... [13:52:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:52:49]Read from MH i2c: E2 [13:52:49]MH_I2C_Read... [13:52:49]Read from MH i2c: E2 03 00 [13:52:49]MH_I2C_Read... [13:52:49]Read from MH i2c: E2 03 00 33 3E 00 90 00 E5 [13:52:49]RAPDU: 90 00 [13:52:49]wFMCommunicate OK [13:52:49]SAM_PROTO_ClearQueue done [13:52:49]KKMCreateOFDPacket [13:52:49]OFDProtocolAddRootSTLVToBuf [13:52:49]FM_MakeSignedData [13:52:49]FM_MakeSignedData [13:52:49]SAM_PROTO_SignData [13:52:49]wFMCommunicate request_size=4 [13:52:49]MH_SAM_APDU [13:52:49]CAPDU: 80 0D 01 02 [13:52:49]Write to MH i2c: E2 08 00 34 3E 80 0D 01 02 00 00 00 00 EB [13:52:49]Write i2c OK [13:52:49]MH_I2C_Read... [13:52:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:52:50]Read from MH i2c: E2 [13:52:50]MH_I2C_Read... [13:52:50]Read from MH i2c: E2 03 00 [13:52:50]MH_I2C_Read... [13:52:50]Read from MH i2c: E2 03 00 34 3E 00 90 00 E6 [13:52:50]RAPDU: 90 00 [13:52:50]wFMCommunicate OK [13:52:50]wFMCommunicate request_size=255 [13:52:50]MH_SAM_APDU [13:52: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 35 AE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 92 7B 03 00 35 04 06 00 F1 [13:52:50]Write to MH i2c: E2 02 01 35 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 35 AE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 92 7B 03 00 35 04 06 00 F1 00 00 CB [13:52:50]Write i2c OK [13:52:50]MH_I2C_Read... [13:52:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:50]Read from MH i2c: E2 [13:52:50]MH_I2C_Read... [13:52:50]Read from MH i2c: E2 03 00 [13:52:50]MH_I2C_Read... [13:52:50]Read from MH i2c: E2 03 00 35 3E 00 90 00 E7 [13:52:50]RAPDU: 90 00 [13:52:50]wFMCommunicate OK [13:52:50]wFMCommunicate request_size=10 [13:52:50]MH_SAM_APDU [13:52:50]CAPDU: 80 0D 02 02 05 D3 8B 54 15 74 [13:52:50]Write to MH i2c: E2 0D 00 36 3E 80 0D 02 02 05 00 D3 8B 54 15 74 00 00 33 [13:52:50]Write i2c OK [13:52:50]MH_I2C_Read... [13:52:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:50]Read from MH i2c: E2 [13:52:50]MH_I2C_Read... [13:52:50]Read from MH i2c: E2 03 00 [13:52:50]MH_I2C_Read... [13:52:50]Read from MH i2c: E2 03 00 36 3E 00 90 00 E8 [13:52:50]RAPDU: 90 00 [13:52:50]wFMCommunicate OK [13:52:50]wFMCommunicate request_size=4 [13:52:50]MH_SAM_APDU [13:52:50]CAPDU: 80 0D 03 02 [13:52:50]Write to MH i2c: E2 08 00 37 3E 80 0D 03 02 00 00 00 00 F0 [13:52:50]Write i2c OK [13:52:50]MH_I2C_Read... [13:52:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:52:50]Read from MH i2c: E2 [13:52:50]MH_I2C_Read... [13:52:50]Read from MH i2c: E2 0B 00 [13:52:50]MH_I2C_Read... [13:52:50]Read from MH i2c: E2 0B 00 37 3E 00 C9 B1 A2 72 CB B1 5A 23 90 00 78 [13:52:50]RAPDU: C9 B1 A2 72 CB B1 5A 23 90 00 [13:52:50]wFMCommunicate OK [13:52:50]SAM_PROTO_SignData done [13:52:50]FM_MakeSignedData done [13:52:50]CreateOFDProtocolMessage [13:52:50]wFMCommunicate request_size=4 [13:52:50]MH_SAM_APDU [13:52:50]CAPDU: 80 11 00 00 [13:52:50]Write to MH i2c: E2 08 00 38 3E 80 11 00 00 00 00 00 00 F0 [13:52:50]Write i2c OK [13:52:50]MH_I2C_Read... [13:52:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:50]Read from MH i2c: E2 [13:52:50]MH_I2C_Read... [13:52:50]Read from MH i2c: E2 17 00 [13:52:50]MH_I2C_Read... [13:52:50]Read from MH i2c: E2 17 00 38 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 47 [13:52:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:52:50]wFMCommunicate OK [13:52:50]CreateOFDProtocolMessage done [13:52:50]OFDSenderStorePacket 228242 [13:52:50]StoreOFDPacket docnum=228242 [13:52:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 88 90 07 01 F0 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 35 AE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 92 7B 03 00 35 04 06 00 F1 D3 8B 54 15 74 C9 B1 A2 72 CB B1 5A 23 [13:52:50]CheckFolder [13:52:50]dirname=/storage/ofd_packets [13:52:50]CheckFolder done [13:52:50]ProducePacketName [13:52:50]name=ofd_packets/00228242 [13:52:50]NVStorageSaveData ofd_packets/00228242 [13:52:50]File name is /storage/ofd_packets/00228242 [13:52:50]Write 301 bytes [13:52:50]NVStorageSaveData done [13:52:50]OFDSenderStorePacket done [13:52:50]KKMCreateOFDPacket done [13:52:50]NVStorageSaveData kkm_last_timestamp [13:52:50]File name is /storage/kkm_last_timestamp [13:52:50]Write 4 bytes [13:52:50]NVStorageSaveData done [13:52:50]ExternCall_PrintAddStr [13:52:50]wPrintStart [13:52:50]Write to MH i2c: 01 00 00 39 3E 77 [13:52:50]Write i2c OK [13:52:50]MH_I2C_Read... [13:52:50]Read from MH i2c: 01 [13:52:50]MH_I2C_Read... [13:52:50]Read from MH i2c: 01 07 00 [13:52:50]MH_I2C_Read... [13:52:50]Read from MH i2c: 01 07 00 39 3E 00 00 00 00 00 FF 0F 8C [13:52:50]RasterBufferAndPrint [13:52:50]line Счет N : (1)1964699 [13:52:50]line ИНН: 02508201610067 [13:52:50]line Контрольно-Кассовый Чек [13:52:50]line ПРОДАЖА [13:52:50]line ТРК (МРК, ГНК) : 43 [13:52:50]line Товар: 2710124130 [13:52:50]line Аи-92-К-5 [13:52:50]line 7.480 * 66.90 [13:52:50]line = 500.41 [13:52:50]line НДС 12% НСП 1% [13:52:50]line > о реализуемом товаре [13:52:50]line ОКРУГЛЕНИЕ: -0.41 [13:52:50]line ИТОГО: 500.00 [13:52:50]line Внесено: 500.00 [13:52:50]line СДАЧА: 0.00 [13:52:50]line НСП 1% : 4.43 [13:52:50]line НДС 12% : 53.14 [13:52:50]line Наличными: 500.00 [13:52:50]line Безнал.: 0.00 [13:52:50]line Место: АЗС № 133 "Партнер Нефть" [13:52:50]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:52:50]line СНО: Общий режим [13:52:50]line Чек 206 22.10.2024 13:52 [13:52:50]line Смена: 535 ФФД: 1.0 [13:52:50]line ЗНМ: 0300000091 [13:52:50]line РНМ: 0000000000091685 [13:52:50]line Версия ККМ: 001 [13:52:50]line ФМ: 0000000000871839 [13:52:50]line ФД: 228242 [13:52:50]line ФПД: 265890877937012 [13:52:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135253&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228242&fm=265890877937012&tin=02508201610067®Number=0000000000091685&sum=50000 [13:52:50]written 0, free lines is 4095 [13:52:50]OFD Sender: Processing packet 228242 [packets to send 38, broken 37] [13:52:50]ProducePacketName [13:52:50]name=ofd_packets/00228242 [13:52:50]OFD Sender: To server: pG, [13:52:50]CommunicateWithHost lk.salyk.kg:30040 [13:52:50]ConnectInit lk.salyk.kg [13:52:50]Connected sock=11 [13:52:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 88 90 07 01 F0 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 35 AE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 92 7B 03 00 35 04 06 00 F1 D3 8B 54 15 74 C9 B1 A2 72 CB B1 5A 23 [13:52:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 92 01 47 00 07 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 92 7B 03 00 F4 03 04 00 2D 59 17 67 B6 04 01 00 00 B9 86 9C 0D 46 F4 A7 5E [13:52:51]CommunicateWithHost err = 0 [13:52:51]CheckOFDResponse [13:52:51]1017 (14) - 77093643461234 [13:52:51]1041 (16) - 0000000000871839 [13:52:51]1040 (4) - 228242 [13:52:51]1012 (4) - 22.10.2024 07:50 [13:52:51]1206 (1) - 0 [13:52:51]OFD Sender: Remove packet 228242 [13:52:51]ProducePacketName [13:52:51]name=ofd_packets/00228242 [13:52:51]NVStorageDeleteData [13:52:51]Write to MH i2c: 01 00 00 63 3E A1 [13:52:51]Write i2c OK [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: 01 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: 01 07 00 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: 01 07 00 63 3E 00 00 00 00 00 C2 0C 76 [13:52:51]RasterBufferAndPrint [13:52:51]line [13:52:51]line [13:52:51]line [13:52:51]line [13:52:51]line [13:52:51]written 0, free lines is 3270 [13:52:51]MH_Cut [13:52:51]Write to MH i2c: D1 01 00 6A 3E 01 7A [13:52:51]Write i2c OK [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: D1 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: D1 01 00 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: D1 01 00 6A 3E 00 79 [13:52:51]Write to MH i2c: 01 00 00 6B 3E A9 [13:52:51]Write i2c OK [13:52:51]MH_I2C_Read... [13:52:51]OFD Sender: No OFD packet to send [13:52:52]*** Cut start [13:52:52]*** Partial cut [13:52:52]*** CUTSNS_PIN = 1 [13:52:52]*** CUTSNS_PIN = 0 [13:52:52]*** Brake cut motor [13:52:52]Read from MH i2c: 01 [13:52:52]MH_I2C_Read... [13:52:52]*** Stop cut motor [13:52:52]*** Cut end [13:52:52]Read from MH i2c: 01 07 00 [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: 01 07 00 6B 3E 00 00 00 00 00 FF 0F BE [13:52:52]process_action close_receipt done [13:52:52]requested_data is exist [13:52:52]produce_requested_data [13:52:52]requested_item fm.sn is exist - process it [13:52:52]wFMCommunicate request_size=4 [13:52:52]MH_SAM_APDU [13:52:52]CAPDU: 80 11 00 00 [13:52:52]Write to MH i2c: E2 08 00 6C 3E 80 11 00 00 00 00 00 00 24 [13:52:52]Write i2c OK [13:52:52]MH_I2C_Read... [13:52:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:52]Read from MH i2c: E2 [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: E2 17 00 [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: E2 17 00 6C 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7B [13:52:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:52:52]wFMCommunicate OK [13:52:52]requested_item fd.num is exist - process it [13:52:52]SAM_PROTO_GetFieldsCounters [13:52:52]wFMCommunicate request_size=4 [13:52:52]MH_SAM_APDU [13:52:52]CAPDU: 80 13 00 00 [13:52:52]Write to MH i2c: E2 08 00 6D 3E 80 13 00 00 00 00 00 00 27 [13:52:52]Write i2c OK [13:52:52]MH_I2C_Read... [13:52:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:52:52]Read from MH i2c: E2 [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: E2 62 00 [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: E2 62 00 6D 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 92 7B 03 00 0E 04 04 00 17 02 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 E3 [13:52:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 92 7B 03 00 0E 04 04 00 17 02 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 [13:52:52]wFMCommunicate OK [13:52:52]SAM_PROTO_GetFieldsCounters done [13:52:52]requested_item shift.num is exist - process it [13:52:52]requested_item shift.opened is exist - process it [13:52:52]req_shift_opened [13:52:52]FM_GetShiftState [13:52:52]SAM_PROTO_GetShiftState [13:52:52]wFMCommunicate request_size=4 [13:52:52]MH_SAM_APDU [13:52:52]CAPDU: 80 13 01 00 [13:52:52]Write to MH i2c: E2 08 00 6E 3E 80 13 01 00 00 00 00 00 29 [13:52:52]Write i2c OK [13:52:52]MH_I2C_Read... [13:52:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:52]Read from MH i2c: E2 [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: E2 0E 00 [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: E2 0E 00 6E 3E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 F0 [13:52:52]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:52:52]wFMCommunicate OK [13:52:52]SAM_PROTO_GetShiftState done [13:52:52]FM_GetShiftState done [13:52:52]req_shift_opened done [13:52:52]requested_item shift.open_date is exist - process it [13:52:52]req_shift_open_date [13:52:52]req_shift_open_date done [13:52:52]produce_requested_data done [13:52:52]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228242,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:52:52]process_action_free close_receipt [13:52:52]json_value_free [13:52:52]json_value_free done [13:52:52]process_json_proto returns [13:52:52]Send response to host [13:52:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228242,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:52:52]free response buf [13:52:52]execute_script done [13:52:52]execute_script returns [13:52:52]free content buf [13:52:52]Sock 7.Close socket [13:52:52]Sock 7.Thread stoped [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:49]accept exits with 9 [13:53:49]New connection [13:53:49]New thread 3066994020 created [13:53:49]Thread 3067137380 joined [13:53:49]Waiting for new connection... [13:53:49] Sock 9.Parse request [13:53:49]Sock 9.Check first char [13:53:49]Sock 9.First char is OK [13:53:49]request: POST /json_proto HTTP/1.0 [13:53:49]Method: POST [13:53:49]URL: /json_proto [13:53:49]Method is POST - this is cgi request [13:53:49]url: /json_proto [13:53:49]query_string will be loaded in cgi processing [13:53:49]execute_cgi json_proto POST (null) [13:53:49]execute_cgi path=json_proto method=POST [13:53:49]POST find Content-Length [13:53:49]Host: 172.17.44.195:8080 [13:53:49]Content-Length: 683 [13:53:49]Content-Type: application/json [13:53:49] [13:53:49]POST finish read [13:53:49]Found Content-Length = 683 [13:53:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.620, "sum" : 1010.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1010.00, "total" : 1010.00, "payments": [ { "type": 0, "sum" : 1010.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:49]execute_script... [13:53: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)1964700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.620, "sum" : 1010.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1010.00, "total" : 1010.00, "payments": [ { "type": 0, "sum" : 1010.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:49]POST & json_proto [13:53:49]process_json_proto [13:53:49]json parsed OK: [13:53:49]protocol is kg_v1.0 [13:53:49]action value=close_receipt [13:53:49]process_action close_receipt [13:53:49]cmd_close_receipt [13:53:49]MH_GetDate [13:53:49]Write to MH i2c: F0 00 00 6F 3E 9C [13:53:49]Write i2c OK [13:53:49]MH_I2C_Read... [13:53:49]Read from MH i2c: F0 [13:53:49]MH_I2C_Read... [13:53:49]Read from MH i2c: F0 09 00 [13:53:49]MH_I2C_Read... [13:53:49]Read from MH i2c: F0 09 00 6F 3E 00 71 AE 17 67 82 C9 CF 66 C2 [13:53:49]GetLastDocTimeStamp 1729605173 [13:53:49]current date 1729605233 [13:53:49]FM_GetShiftState [13:53:49]SAM_PROTO_GetShiftState [13:53:49]wFMCommunicate request_size=4 [13:53:49]MH_SAM_APDU [13:53:49]CAPDU: 80 13 01 00 [13:53:49]Write to MH i2c: E2 08 00 70 3E 80 13 01 00 00 00 00 00 2B [13:53:49]Write i2c OK [13:53:49]MH_I2C_Read... [13:53:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:49]Read from MH i2c: E2 [13:53:49]MH_I2C_Read... [13:53:49]Read from MH i2c: E2 0E 00 [13:53:49]MH_I2C_Read... [13:53:49]Read from MH i2c: E2 0E 00 70 3E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 F2 [13:53:49]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:53:49]wFMCommunicate OK [13:53:49]SAM_PROTO_GetShiftState done [13:53:49]FM_GetShiftState done [13:53:49]opened in 1729555538 [13:53:49]opened+sec_in_day 1729641938 [13:53:49]quantity*price = 101060 [13:53:49]sum+1 = 101061 [13:53:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 1010.00 Внесено: 1010.00 СДАЧА: 0.00 НСП 1% : 8.94 НДС 12% : 107.32 Наличными: 1010.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 207 22.10.2024 13:53 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228243 ФПД: 69535016874076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135353&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228243&fm=69535016874076&tin=02508201610067®Number=0000000000091685&sum=101000 [13:53:50]StoreToDocumentArchive [13:53:50]shift 535 fd 228243 [13:53:50]save to /storage/0535/doc_00228243 [13:53:50]save last doc name /storage/0535/doc_00228243 to /storage/kkm_last_doc_name [13:53:50]save OK [13:53:50]Clear old archive folders... [13:53:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:53:50]tlvbuf is 00A8B6A0 [13:53:50]SAM_PROTO_ClearQueue [13:53:50]wFMCommunicate request_size=4 [13:53:50]MH_SAM_APDU [13:53:50]CAPDU: 80 09 00 00 [13:53:50]Write to MH i2c: E2 08 00 7D 3E 80 09 00 00 00 00 00 00 2D [13:53:50]Write i2c OK [13:53:50]MH_I2C_Read... [13:53:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:50]Read from MH i2c: E2 [13:53:50]MH_I2C_Read... [13:53:50]Read from MH i2c: E2 03 00 [13:53:50]MH_I2C_Read... [13:53:50]Read from MH i2c: E2 03 00 7D 3E 00 90 00 2F [13:53:50]RAPDU: 90 00 [13:53:50]wFMCommunicate OK [13:53:50]SAM_PROTO_ClearQueue done [13:53:50]KKMCreateOFDPacket [13:53:50]OFDProtocolAddRootSTLVToBuf [13:53:50]FM_MakeSignedData [13:53:50]FM_MakeSignedData [13:53:50]SAM_PROTO_SignData [13:53:50]wFMCommunicate request_size=4 [13:53:50]MH_SAM_APDU [13:53:50]CAPDU: 80 0D 01 02 [13:53:50]Write to MH i2c: E2 08 00 7E 3E 80 0D 01 02 00 00 00 00 35 [13:53:50]Write i2c OK [13:53:50]MH_I2C_Read... [13:53:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:50]Read from MH i2c: E2 [13:53:50]MH_I2C_Read... [13:53:50]Read from MH i2c: E2 03 00 [13:53:50]MH_I2C_Read... [13:53:50]Read from MH i2c: E2 03 00 7E 3E 00 90 00 30 [13:53:50]RAPDU: 90 00 [13:53:50]wFMCommunicate OK [13:53:50]wFMCommunicate request_size=255 [13:53:50]MH_SAM_APDU [13:53: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 34 35 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C4 8A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 8A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 29 00 00 00 00 07 04 06 00 88 8A 01 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 71 AE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 93 7B 03 00 35 04 06 00 3F [13:53:50]Write to MH i2c: E2 02 01 7F 3E 80 0D 02 02 FA 00 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 34 35 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C4 8A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 8A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 29 00 00 00 00 07 04 06 00 88 8A 01 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 71 AE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 93 7B 03 00 35 04 06 00 3F 00 00 AC [13:53:50]Write i2c OK [13:53:50]MH_I2C_Read... [13:53:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:51]Read from MH i2c: E2 [13:53:51]MH_I2C_Read... [13:53:51]Read from MH i2c: E2 03 00 [13:53:51]MH_I2C_Read... [13:53:51]Read from MH i2c: E2 03 00 7F 3E 00 90 00 31 [13:53:51]RAPDU: 90 00 [13:53:51]wFMCommunicate OK [13:53:51]wFMCommunicate request_size=10 [13:53:51]MH_SAM_APDU [13:53:51]CAPDU: 80 0D 02 02 05 3D E1 FA F0 5C [13:53:51]Write to MH i2c: E2 0D 00 80 3E 80 0D 02 02 05 00 3D E1 FA F0 5C 00 00 A6 [13:53:51]Write i2c OK [13:53:51]MH_I2C_Read... [13:53:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:51]Read from MH i2c: E2 [13:53:51]MH_I2C_Read... [13:53:51]Read from MH i2c: E2 03 00 [13:53:51]MH_I2C_Read... [13:53:51]Read from MH i2c: E2 03 00 80 3E 00 90 00 32 [13:53:51]RAPDU: 90 00 [13:53:51]wFMCommunicate OK [13:53:51]wFMCommunicate request_size=4 [13:53:51]MH_SAM_APDU [13:53:51]CAPDU: 80 0D 03 02 [13:53:51]Write to MH i2c: E2 08 00 81 3E 80 0D 03 02 00 00 00 00 3A [13:53:51]Write i2c OK [13:53:51]MH_I2C_Read... [13:53:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:53:51]Read from MH i2c: E2 [13:53:51]MH_I2C_Read... [13:53:51]Read from MH i2c: E2 0B 00 [13:53:51]MH_I2C_Read... [13:53:51]Read from MH i2c: E2 0B 00 81 3E 00 1A 68 3A 3B D2 97 5B 23 90 00 19 [13:53:51]RAPDU: 1A 68 3A 3B D2 97 5B 23 90 00 [13:53:51]wFMCommunicate OK [13:53:51]SAM_PROTO_SignData done [13:53:51]FM_MakeSignedData done [13:53:51]CreateOFDProtocolMessage [13:53:51]wFMCommunicate request_size=4 [13:53:51]MH_SAM_APDU [13:53:51]CAPDU: 80 11 00 00 [13:53:51]Write to MH i2c: E2 08 00 82 3E 80 11 00 00 00 00 00 00 3A [13:53:51]Write i2c OK [13:53:51]MH_I2C_Read... [13:53:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:51]Read from MH i2c: E2 [13:53:51]MH_I2C_Read... [13:53:51]Read from MH i2c: E2 17 00 [13:53:51]MH_I2C_Read... [13:53:51]Read from MH i2c: E2 17 00 82 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 91 [13:53:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:53:51]wFMCommunicate OK [13:53:51]CreateOFDProtocolMessage done [13:53:51]OFDSenderStorePacket 228243 [13:53:51]StoreOFDPacket docnum=228243 [13:53:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 38 EF 07 01 E2 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 35 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C4 8A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 8A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 29 00 00 00 00 07 04 06 00 88 8A 01 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 71 AE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 93 7B 03 00 35 04 06 00 3F 3D E1 FA F0 5C 1A 68 3A 3B D2 97 5B 23 [13:53:51]CheckFolder [13:53:51]dirname=/storage/ofd_packets [13:53:51]CheckFolder done [13:53:51]ProducePacketName [13:53:51]name=ofd_packets/00228243 [13:53:51]NVStorageSaveData ofd_packets/00228243 [13:53:51]File name is /storage/ofd_packets/00228243 [13:53:51]Write 301 bytes [13:53:51]NVStorageSaveData done [13:53:51]OFDSenderStorePacket done [13:53:51]KKMCreateOFDPacket done [13:53:51]NVStorageSaveData kkm_last_timestamp [13:53:51]File name is /storage/kkm_last_timestamp [13:53:51]Write 4 bytes [13:53:51]NVStorageSaveData done [13:53:51]ExternCall_PrintAddStr [13:53:51]wPrintStart [13:53:51]Write to MH i2c: 01 00 00 83 3E C1 [13:53:51]Write i2c OK [13:53:51]MH_I2C_Read... [13:53:51]Read from MH i2c: 01 [13:53:51]MH_I2C_Read... [13:53:51]Read from MH i2c: 01 07 00 [13:53:51]MH_I2C_Read... [13:53:51]Read from MH i2c: 01 07 00 83 3E 00 00 00 00 00 FF 0F D6 [13:53:51]RasterBufferAndPrint [13:53:51]line Счет N : (1)1964700 [13:53:51]line ИНН: 02508201610067 [13:53:51]line Контрольно-Кассовый Чек [13:53:51]line ПРОДАЖА [13:53:51]line ТРК (МРК, ГНК) : 54 [13:53:51]line Товар: 2710124500 [13:53:51]line Аи-95-К-5 [13:53:51]line 13.620 * 74.20 [13:53:51]line = 1010.60 [13:53:51]line НДС 12% НСП 1% [13:53:51]line > о реализуемом товаре [13:53:51]line ОКРУГЛЕНИЕ: -0.60 [13:53:51]line ИТОГО: 1010.00 [13:53:51]line Внесено: 1010.00 [13:53:51]line СДАЧА: 0.00 [13:53:51]line НСП 1% : 8.94 [13:53:51]line НДС 12% : 107.32 [13:53:51]line Наличными: 1010.00 [13:53:51]line Безнал.: 0.00 [13:53:51]line Место: АЗС № 133 "Партнер Нефть" [13:53:51]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:53:51]line СНО: Общий режим [13:53:51]line Чек 207 22.10.2024 13:53 [13:53:51]line Смена: 535 ФФД: 1.0 [13:53:51]line ЗНМ: 0300000091 [13:53:51]line РНМ: 0000000000091685 [13:53:51]line Версия ККМ: 001 [13:53:51]line ФМ: 0000000000871839 [13:53:51]line ФД: 228243 [13:53:51]line ФПД: 69535016874076 [13:53:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135353&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228243&fm=69535016874076&tin=02508201610067®Number=0000000000091685&sum=101000 [13:53:51]OFD Sender: Processing packet 228243 [packets to send 38, broken 37] [13:53:51]ProducePacketName [13:53:51]name=ofd_packets/00228243 [13:53:51]OFD Sender: To server: pG, [13:53:51]CommunicateWithHost lk.salyk.kg:30040 [13:53:51]ConnectInit lk.salyk.kg [13:53:51]written 0, free lines is 4095 [13:53:51]Connected sock=10 [13:53:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 38 EF 07 01 E2 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 35 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C4 8A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 8A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 29 00 00 00 00 07 04 06 00 88 8A 01 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 71 AE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 93 7B 03 00 35 04 06 00 3F 3D E1 FA F0 5C 1A 68 3A 3B D2 97 5B 23 [13:53:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 E2 C3 47 00 5A 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 93 7B 03 00 F4 03 04 00 6A 59 17 67 B6 04 01 00 00 99 E4 E5 45 C2 59 23 C6 [13:53:51]CommunicateWithHost err = 0 [13:53:51]CheckOFDResponse [13:53:51]1017 (14) - 77093643461234 [13:53:51]1041 (16) - 0000000000871839 [13:53:51]1040 (4) - 228243 [13:53:51]1012 (4) - 22.10.2024 07:51 [13:53:51]1206 (1) - 0 [13:53:51]OFD Sender: Remove packet 228243 [13:53:51]ProducePacketName [13:53:51]name=ofd_packets/00228243 [13:53:51]NVStorageDeleteData [13:53:52]Write to MH i2c: 01 00 00 AD 3E EB [13:53:52]Write i2c OK [13:53:52]MH_I2C_Read... [13:53:52]Read from MH i2c: 01 [13:53:52]MH_I2C_Read... [13:53:52]Read from MH i2c: 01 07 00 [13:53:52]MH_I2C_Read... [13:53:52]Read from MH i2c: 01 07 00 AD 3E 00 00 00 00 00 C7 0C C5 [13:53:52]RasterBufferAndPrint [13:53:52]line [13:53:52]line [13:53:52]line [13:53:52]line [13:53:52]line [13:53:52]written 0, free lines is 3276 [13:53:52]MH_Cut [13:53:52]Write to MH i2c: D1 01 00 B4 3E 01 C4 [13:53:52]Write i2c OK [13:53:52]MH_I2C_Read... [13:53:52]Read from MH i2c: D1 [13:53:52]MH_I2C_Read... [13:53:52]Read from MH i2c: D1 01 00 [13:53:52]MH_I2C_Read... [13:53:52]Read from MH i2c: D1 01 00 B4 3E 00 C3 [13:53:52]Write to MH i2c: 01 00 00 B5 3E F3 [13:53:52]Write i2c OK [13:53:52]MH_I2C_Read... [13:53:52]OFD Sender: No OFD packet to send [13:53:52]*** Cut start [13:53:52]*** Partial cut [13:53:52]*** CUTSNS_PIN = 1 [13:53:53]*** CUTSNS_PIN = 0 [13:53:53]*** Brake cut motor [13:53:53]Read from MH i2c: 01 [13:53:53]MH_I2C_Read... [13:53:53]*** Stop cut motor [13:53:53]*** Cut end [13:53:53]Read from MH i2c: 01 07 00 [13:53:53]MH_I2C_Read... [13:53:53]Read from MH i2c: 01 07 00 B5 3E 00 00 00 00 00 FF 0F 08 [13:53:53]process_action close_receipt done [13:53:53]requested_data is exist [13:53:53]produce_requested_data [13:53:53]requested_item fm.sn is exist - process it [13:53:53]wFMCommunicate request_size=4 [13:53:53]MH_SAM_APDU [13:53:53]CAPDU: 80 11 00 00 [13:53:53]Write to MH i2c: E2 08 00 B6 3E 80 11 00 00 00 00 00 00 6E [13:53:53]Write i2c OK [13:53:53]MH_I2C_Read... [13:53:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:53]Read from MH i2c: E2 [13:53:53]MH_I2C_Read... [13:53:53]Read from MH i2c: E2 17 00 [13:53:53]MH_I2C_Read... [13:53:53]Read from MH i2c: E2 17 00 B6 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C5 [13:53:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:53:53]wFMCommunicate OK [13:53:53]requested_item fd.num is exist - process it [13:53:53]SAM_PROTO_GetFieldsCounters [13:53:53]wFMCommunicate request_size=4 [13:53:53]MH_SAM_APDU [13:53:53]CAPDU: 80 13 00 00 [13:53:53]Write to MH i2c: E2 08 00 B7 3E 80 13 00 00 00 00 00 00 71 [13:53:53]Write i2c OK [13:53:53]MH_I2C_Read... [13:53:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:53:53]Read from MH i2c: E2 [13:53:53]MH_I2C_Read... [13:53:53]Read from MH i2c: E2 62 00 [13:53:53]MH_I2C_Read... [13:53:53]Read from MH i2c: E2 62 00 B7 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 93 7B 03 00 0E 04 04 00 17 02 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 31 [13:53:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 93 7B 03 00 0E 04 04 00 17 02 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 [13:53:53]wFMCommunicate OK [13:53:53]SAM_PROTO_GetFieldsCounters done [13:53:53]requested_item shift.num is exist - process it [13:53:53]requested_item shift.opened is exist - process it [13:53:53]req_shift_opened [13:53:53]FM_GetShiftState [13:53:53]SAM_PROTO_GetShiftState [13:53:53]wFMCommunicate request_size=4 [13:53:53]MH_SAM_APDU [13:53:53]CAPDU: 80 13 01 00 [13:53:53]Write to MH i2c: E2 08 00 B8 3E 80 13 01 00 00 00 00 00 73 [13:53:53]Write i2c OK [13:53:53]MH_I2C_Read... [13:53:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:53]Read from MH i2c: E2 [13:53:53]MH_I2C_Read... [13:53:53]Read from MH i2c: E2 0E 00 [13:53:53]MH_I2C_Read... [13:53:53]Read from MH i2c: E2 0E 00 B8 3E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 3A [13:53:53]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:53:53]wFMCommunicate OK [13:53:53]SAM_PROTO_GetShiftState done [13:53:53]FM_GetShiftState done [13:53:53]req_shift_opened done [13:53:53]requested_item shift.open_date is exist - process it [13:53:53]req_shift_open_date [13:53:53]req_shift_open_date done [13:53:53]produce_requested_data done [13:53:53]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228243,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:53:53]process_action_free close_receipt [13:53:53]json_value_free [13:53:53]json_value_free done [13:53:53]process_json_proto returns [13:53:53]Send response to host [13:53:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228243,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:53:53]free response buf [13:53:53]execute_script done [13:53:53]execute_script returns [13:53:53]free content buf [13:53:53]Sock 9.Close socket [13:53:53]Sock 9.Thread stoped [13:53:57]OFD Sender: No OFD packet to send [13:54:02]OFD Sender: No OFD packet to send [13:54:06]accept exits with 7 [13:54:06]New connection [13:54:06]New thread 3067137380 created [13:54:06]Thread 3066994020 joined [13:54:06]Waiting for new connection... [13:54:06] Sock 7.Parse request [13:54:06]Sock 7.Check first char [13:54:06]Sock 7.First char is OK [13:54:06]request: POST /json_proto HTTP/1.0 [13:54:06]Method: POST [13:54:06]URL: /json_proto [13:54:06]Method is POST - this is cgi request [13:54:06]url: /json_proto [13:54:06]query_string will be loaded in cgi processing [13:54:06]execute_cgi json_proto POST (null) [13:54:06]execute_cgi path=json_proto method=POST [13:54:06]POST find Content-Length [13:54:06]Host: 172.17.44.195:8080 [13:54:06]Content-Length: 675 [13:54:06]Content-Type: application/json [13:54:06] [13:54:06]POST finish read [13:54:06]Found Content-Length = 675 [13:54:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964701", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:54:06]execute_script... [13:54: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)1964701", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:54:06]POST & json_proto [13:54:06]process_json_proto [13:54:06]json parsed OK: [13:54:06]protocol is kg_v1.0 [13:54:06]action value=close_receipt [13:54:06]process_action close_receipt [13:54:06]cmd_close_receipt [13:54:06]MH_GetDate [13:54:06]Write to MH i2c: F0 00 00 B9 3E E6 [13:54:06]Write i2c OK [13:54:06]MH_I2C_Read... [13:54:06]Read from MH i2c: F0 [13:54:06]MH_I2C_Read... [13:54:06]Read from MH i2c: F0 09 00 [13:54:06]MH_I2C_Read... [13:54:06]Read from MH i2c: F0 09 00 B9 3E 00 83 AE 17 67 82 C9 CF 66 1E [13:54:06]GetLastDocTimeStamp 1729605233 [13:54:06]current date 1729605251 [13:54:06]FM_GetShiftState [13:54:06]SAM_PROTO_GetShiftState [13:54:06]wFMCommunicate request_size=4 [13:54:06]MH_SAM_APDU [13:54:06]CAPDU: 80 13 01 00 [13:54:06]Write to MH i2c: E2 08 00 BA 3E 80 13 01 00 00 00 00 00 75 [13:54:06]Write i2c OK [13:54:06]MH_I2C_Read... [13:54:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:06]Read from MH i2c: E2 [13:54:06]MH_I2C_Read... [13:54:06]Read from MH i2c: E2 0E 00 [13:54:06]MH_I2C_Read... [13:54:06]Read from MH i2c: E2 0E 00 BA 3E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 3C [13:54:06]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:54:06]wFMCommunicate OK [13:54:06]SAM_PROTO_GetShiftState done [13:54:06]FM_GetShiftState done [13:54:06]opened in 1729555538 [13:54:06]opened+sec_in_day 1729641938 [13:54:06]quantity*price = 50063 [13:54:06]sum+1 = 50064 [13:54:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 208 22.10.2024 13:54 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228244 ФПД: 256422012816751 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135411&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228244&fm=256422012816751&tin=02508201610067®Number=0000000000091685&sum=50000 [13:54:08]StoreToDocumentArchive [13:54:08]shift 535 fd 228244 [13:54:08]save to /storage/0535/doc_00228244 [13:54:08]save last doc name /storage/0535/doc_00228244 to /storage/kkm_last_doc_name [13:54:08]save OK [13:54:08]Clear old archive folders... [13:54:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:54:08]tlvbuf is 008EB840 [13:54:08]SAM_PROTO_ClearQueue [13:54:08]wFMCommunicate request_size=4 [13:54:08]MH_SAM_APDU [13:54:08]CAPDU: 80 09 00 00 [13:54:08]Write to MH i2c: E2 08 00 C7 3E 80 09 00 00 00 00 00 00 77 [13:54:08]Write i2c OK [13:54:08]MH_I2C_Read... [13:54:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:54:08]Read from MH i2c: E2 [13:54:08]MH_I2C_Read... [13:54:08]Read from MH i2c: E2 03 00 [13:54:08]MH_I2C_Read... [13:54:08]Read from MH i2c: E2 03 00 C7 3E 00 90 00 79 [13:54:08]RAPDU: 90 00 [13:54:08]wFMCommunicate OK [13:54:08]SAM_PROTO_ClearQueue done [13:54:08]KKMCreateOFDPacket [13:54:08]OFDProtocolAddRootSTLVToBuf [13:54:08]FM_MakeSignedData [13:54:08]FM_MakeSignedData [13:54:08]SAM_PROTO_SignData [13:54:08]wFMCommunicate request_size=4 [13:54:08]MH_SAM_APDU [13:54:08]CAPDU: 80 0D 01 02 [13:54:08]Write to MH i2c: E2 08 00 C8 3E 80 0D 01 02 00 00 00 00 7F [13:54:08]Write i2c OK [13:54:08]MH_I2C_Read... [13:54:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:54:08]Read from MH i2c: E2 [13:54:08]MH_I2C_Read... [13:54:08]Read from MH i2c: E2 03 00 [13:54:08]MH_I2C_Read... [13:54:08]Read from MH i2c: E2 03 00 C8 3E 00 90 00 7A [13:54:08]RAPDU: 90 00 [13:54:08]wFMCommunicate OK [13:54:08]wFMCommunicate request_size=255 [13:54:08]MH_SAM_APDU [13:54:08]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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 83 AE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 94 7B 03 00 35 04 06 00 E9 36 E6 FC [13:54:08]Write to MH i2c: E2 02 01 C9 3E 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 83 AE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 94 7B 03 00 35 04 06 00 E9 36 E6 FC 00 00 3F [13:54:08]Write i2c OK [13:54:08]MH_I2C_Read... [13:54:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:08]Read from MH i2c: E2 [13:54:08]MH_I2C_Read... [13:54:08]Read from MH i2c: E2 03 00 [13:54:08]MH_I2C_Read... [13:54:08]Read from MH i2c: E2 03 00 C9 3E 00 90 00 7B [13:54:08]RAPDU: 90 00 [13:54:08]wFMCommunicate OK [13:54:08]wFMCommunicate request_size=7 [13:54:08]MH_SAM_APDU [13:54:08]CAPDU: 80 0D 02 02 02 8D 6F [13:54:08]Write to MH i2c: E2 0A 00 CA 3E 80 0D 02 02 02 00 8D 6F 00 00 82 [13:54:08]Write i2c OK [13:54:08]MH_I2C_Read... [13:54:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:08]Read from MH i2c: E2 [13:54:08]MH_I2C_Read... [13:54:08]Read from MH i2c: E2 03 00 [13:54:08]MH_I2C_Read... [13:54:08]Read from MH i2c: E2 03 00 CA 3E 00 90 00 7C [13:54:08]RAPDU: 90 00 [13:54:08]wFMCommunicate OK [13:54:08]wFMCommunicate request_size=4 [13:54:08]MH_SAM_APDU [13:54:08]CAPDU: 80 0D 03 02 [13:54:08]Write to MH i2c: E2 08 00 CB 3E 80 0D 03 02 00 00 00 00 84 [13:54:08]Write i2c OK [13:54:08]MH_I2C_Read... [13:54:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:54:08]Read from MH i2c: E2 [13:54:08]MH_I2C_Read... [13:54:08]Read from MH i2c: E2 0B 00 [13:54:08]MH_I2C_Read... [13:54:08]Read from MH i2c: E2 0B 00 CB 3E 00 23 CF 17 A3 AE 47 A1 75 90 00 3C [13:54:08]RAPDU: 23 CF 17 A3 AE 47 A1 75 90 00 [13:54:08]wFMCommunicate OK [13:54:08]SAM_PROTO_SignData done [13:54:08]FM_MakeSignedData done [13:54:08]CreateOFDProtocolMessage [13:54:08]wFMCommunicate request_size=4 [13:54:08]MH_SAM_APDU [13:54:08]CAPDU: 80 11 00 00 [13:54:08]Write to MH i2c: E2 08 00 CC 3E 80 11 00 00 00 00 00 00 84 [13:54:08]Write i2c OK [13:54:08]MH_I2C_Read... [13:54:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:08]Read from MH i2c: E2 [13:54:08]MH_I2C_Read... [13:54:08]Read from MH i2c: E2 17 00 [13:54:08]MH_I2C_Read... [13:54:08]Read from MH i2c: E2 17 00 CC 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DB [13:54:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:54:08]wFMCommunicate OK [13:54:08]CreateOFDProtocolMessage done [13:54:08]OFDSenderStorePacket 228244 [13:54:08]StoreOFDPacket docnum=228244 [13:54:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 09 3A 04 01 24 40 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 83 AE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 94 7B 03 00 35 04 06 00 E9 36 E6 FC 8D 6F 23 CF 17 A3 AE 47 A1 75 [13:54:08]CheckFolder [13:54:08]dirname=/storage/ofd_packets [13:54:08]CheckFolder done [13:54:08]ProducePacketName [13:54:08]name=ofd_packets/00228244 [13:54:08]NVStorageSaveData ofd_packets/00228244 [13:54:08]File name is /storage/ofd_packets/00228244 [13:54:08]Write 298 bytes [13:54:08]NVStorageSaveData done [13:54:08]OFDSenderStorePacket done [13:54:08]KKMCreateOFDPacket done [13:54:08]NVStorageSaveData kkm_last_timestamp [13:54:08]File name is /storage/kkm_last_timestamp [13:54:08]Write 4 bytes [13:54:08]NVStorageSaveData done [13:54:08]ExternCall_PrintAddStr [13:54:08]wPrintStart [13:54:08]Write to MH i2c: 01 00 00 CD 3E 0B [13:54:08]Write i2c OK [13:54:08]MH_I2C_Read... [13:54:08]Read from MH i2c: 01 [13:54:08]MH_I2C_Read... [13:54:08]Read from MH i2c: 01 07 00 [13:54:08]MH_I2C_Read... [13:54:08]Read from MH i2c: 01 07 00 CD 3E 00 00 00 00 00 FF 0F 20 [13:54:08]RasterBufferAndPrint [13:54:08]line Счет N : (1)1964701 [13:54:08]line ИНН: 02508201610067 [13:54:08]line Контрольно-Кассовый Чек [13:54:08]line ПРОДАЖА [13:54:08]line ТРК (МРК, ГНК) : 11 [13:54:08]line Товар: 2710194210 [13:54:08]line ДТ-К-5 [13:54:08]line 6.570 * 76.20 [13:54:08]line = 500.63 [13:54:08]line НДС 12% НСП 1% [13:54:08]line > о реализуемом товаре [13:54:08]line ОКРУГЛЕНИЕ: -0.63 [13:54:08]line ИТОГО: 500.00 [13:54:08]line Внесено: 500.00 [13:54:08]line СДАЧА: 0.00 [13:54:08]line НСП 1% : 4.43 [13:54:08]line НДС 12% : 53.16 [13:54:08]line Наличными: 500.00 [13:54:08]line Безнал.: 0.00 [13:54:08]line Место: АЗС № 133 "Партнер Нефть" [13:54:08]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:54:08]line СНО: Общий режим [13:54:08]line Чек 208 22.10.2024 13:54 [13:54:08]line Смена: 535 ФФД: 1.0 [13:54:08]line ЗНМ: 0300000091 [13:54:08]line РНМ: 0000000000091685 [13:54:08]line Версия ККМ: 001 [13:54:08]line ФМ: 0000000000871839 [13:54:08]line ФД: 228244 [13:54:08]line ФПД: 256422012816751 [13:54:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135411&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228244&fm=256422012816751&tin=02508201610067®Number=0000000000091685&sum=50000 [13:54:08]OFD Sender: Processing packet 228244 [packets to send 38, broken 37] [13:54:08]ProducePacketName [13:54:08]name=ofd_packets/00228244 [13:54:08]OFD Sender: To server: pG, [13:54:08]CommunicateWithHost lk.salyk.kg:30040 [13:54:08]ConnectInit lk.salyk.kg [13:54:08]written 0, free lines is 4095 [13:54:09]Connected sock=10 [13:54:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 09 3A 04 01 24 40 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 83 AE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 94 7B 03 00 35 04 06 00 E9 36 E6 FC 8D 6F 23 CF 17 A3 AE 47 A1 75 [13:54:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 EE 03 47 00 1E 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 94 7B 03 00 F4 03 04 00 7B 59 17 67 B6 04 01 00 00 6A DB CA A4 34 EE C9 08 [13:54:09]CommunicateWithHost err = 0 [13:54:09]CheckOFDResponse [13:54:09]1017 (14) - 77093643461234 [13:54:09]1041 (16) - 0000000000871839 [13:54:09]1040 (4) - 228244 [13:54:09]1012 (4) - 22.10.2024 07:51 [13:54:09]1206 (1) - 0 [13:54:09]OFD Sender: Remove packet 228244 [13:54:09]ProducePacketName [13:54:09]name=ofd_packets/00228244 [13:54:09]NVStorageDeleteData [13:54:09]Write to MH i2c: 01 00 00 F7 3E 35 [13:54:09]Write i2c OK [13:54:09]MH_I2C_Read... [13:54:09]Read from MH i2c: 01 [13:54:09]MH_I2C_Read... [13:54:09]Read from MH i2c: 01 07 00 [13:54:09]MH_I2C_Read... [13:54:09]Read from MH i2c: 01 07 00 F7 3E 00 00 00 00 00 C8 0C 10 [13:54:09]RasterBufferAndPrint [13:54:09]line [13:54:09]line [13:54:09]line [13:54:09]line [13:54:09]line [13:54:09]written 0, free lines is 3278 [13:54:09]MH_Cut [13:54:09]Write to MH i2c: D1 01 00 FE 3E 01 0E [13:54:09]Write i2c OK [13:54:09]MH_I2C_Read... [13:54:09]Read from MH i2c: D1 [13:54:09]MH_I2C_Read... [13:54:09]Read from MH i2c: D1 01 00 [13:54:09]MH_I2C_Read... [13:54:09]Read from MH i2c: D1 01 00 FE 3E 00 0D [13:54:09]Write to MH i2c: 01 00 00 FF 3E 3D [13:54:09]Write i2c OK [13:54:09]MH_I2C_Read... [13:54:09]OFD Sender: No OFD packet to send [13:54:10]*** Cut start [13:54:10]*** Partial cut [13:54:10]*** CUTSNS_PIN = 1 [13:54:10]*** CUTSNS_PIN = 0 [13:54:10]*** Brake cut motor [13:54:10]Read from MH i2c: 01 [13:54:10]MH_I2C_Read... [13:54:10]*** Stop cut motor [13:54:10]*** Cut end [13:54:10]Read from MH i2c: 01 07 00 [13:54:10]MH_I2C_Read... [13:54:10]Read from MH i2c: 01 07 00 FF 3E 00 00 00 00 00 FF 0F 52 [13:54:10]process_action close_receipt done [13:54:10]requested_data is exist [13:54:10]produce_requested_data [13:54:10]requested_item fm.sn is exist - process it [13:54:10]wFMCommunicate request_size=4 [13:54:10]MH_SAM_APDU [13:54:10]CAPDU: 80 11 00 00 [13:54:10]Write to MH i2c: E2 08 00 00 3F 80 11 00 00 00 00 00 00 B9 [13:54:10]Write i2c OK [13:54:10]MH_I2C_Read... [13:54:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:10]Read from MH i2c: E2 [13:54:10]MH_I2C_Read... [13:54:10]Read from MH i2c: E2 17 00 [13:54:10]MH_I2C_Read... [13:54:10]Read from MH i2c: E2 17 00 00 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 10 [13:54:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:54:10]wFMCommunicate OK [13:54:10]requested_item fd.num is exist - process it [13:54:10]SAM_PROTO_GetFieldsCounters [13:54:10]wFMCommunicate request_size=4 [13:54:10]MH_SAM_APDU [13:54:10]CAPDU: 80 13 00 00 [13:54:10]Write to MH i2c: E2 08 00 01 3F 80 13 00 00 00 00 00 00 BC [13:54:10]Write i2c OK [13:54:10]MH_I2C_Read... [13:54:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:54:11]Read from MH i2c: E2 [13:54:11]MH_I2C_Read... [13:54:11]Read from MH i2c: E2 62 00 [13:54:11]MH_I2C_Read... [13:54:11]Read from MH i2c: E2 62 00 01 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 94 7B 03 00 0E 04 04 00 17 02 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 80 [13:54:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 94 7B 03 00 0E 04 04 00 17 02 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 [13:54:11]wFMCommunicate OK [13:54:11]SAM_PROTO_GetFieldsCounters done [13:54:11]requested_item shift.num is exist - process it [13:54:11]requested_item shift.opened is exist - process it [13:54:11]req_shift_opened [13:54:11]FM_GetShiftState [13:54:11]SAM_PROTO_GetShiftState [13:54:11]wFMCommunicate request_size=4 [13:54:11]MH_SAM_APDU [13:54:11]CAPDU: 80 13 01 00 [13:54:11]Write to MH i2c: E2 08 00 02 3F 80 13 01 00 00 00 00 00 BE [13:54:11]Write i2c OK [13:54:11]MH_I2C_Read... [13:54:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:11]Read from MH i2c: E2 [13:54:11]MH_I2C_Read... [13:54:11]Read from MH i2c: E2 0E 00 [13:54:11]MH_I2C_Read... [13:54:11]Read from MH i2c: E2 0E 00 02 3F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 85 [13:54:11]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:54:11]wFMCommunicate OK [13:54:11]SAM_PROTO_GetShiftState done [13:54:11]FM_GetShiftState done [13:54:11]req_shift_opened done [13:54:11]requested_item shift.open_date is exist - process it [13:54:11]req_shift_open_date [13:54:11]req_shift_open_date done [13:54:11]produce_requested_data done [13:54:11]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228244,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:54:11]process_action_free close_receipt [13:54:11]json_value_free [13:54:11]json_value_free done [13:54:11]process_json_proto returns [13:54:11]Send response to host [13:54:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228244,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:54:11]free response buf [13:54:11]execute_script done [13:54:11]execute_script returns [13:54:11]free content buf [13:54:11]Sock 7.Close socket [13:54:11]Sock 7.Thread stoped [13:54:14]OFD Sender: No OFD packet to send [13:54:19]OFD Sender: No OFD packet to send [13:54:24]OFD Sender: No OFD packet to send [13:54:29]OFD Sender: No OFD packet to send [13:54:34]OFD Sender: No OFD packet to send [13:54:39]OFD Sender: No OFD packet to send [13:54:44]OFD Sender: No OFD packet to send [13:54:47]accept exits with 9 [13:54:47]New connection [13:54:47]New thread 3066994020 created [13:54:47]Thread 3067137380 joined [13:54:47]Waiting for new connection... [13:54:47] Sock 9.Parse request [13:54:47]Sock 9.Check first char [13:54:47]Sock 9.First char is OK [13:54:47]request: POST /json_proto HTTP/1.0 [13:54:47]Method: POST [13:54:47]URL: /json_proto [13:54:47]Method is POST - this is cgi request [13:54:47]url: /json_proto [13:54:47]query_string will be loaded in cgi processing [13:54:47]execute_cgi json_proto POST (null) [13:54:47]execute_cgi path=json_proto method=POST [13:54:47]POST find Content-Length [13:54:47]Host: 172.17.44.195:8080 [13:54:47]Content-Length: 679 [13:54:47]Content-Type: application/json [13:54:47] [13:54:47]POST finish read [13:54:47]Found Content-Length = 679 [13:54:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:47]execute_script... [13:54: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)1964702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:47]POST & json_proto [13:54:47]process_json_proto [13:54:47]json parsed OK: [13:54:47]protocol is kg_v1.0 [13:54:47]action value=close_receipt [13:54:47]process_action close_receipt [13:54:47]cmd_close_receipt [13:54:47]MH_GetDate [13:54:47]Write to MH i2c: F0 00 00 03 3F 31 [13:54:47]Write i2c OK [13:54:47]MH_I2C_Read... [13:54:47]Read from MH i2c: F0 [13:54:47]MH_I2C_Read... [13:54:47]Read from MH i2c: F0 09 00 [13:54:47]MH_I2C_Read... [13:54:47]Read from MH i2c: F0 09 00 03 3F 00 AB AE 17 67 82 C9 CF 66 91 [13:54:47]GetLastDocTimeStamp 1729605251 [13:54:47]current date 1729605291 [13:54:47]FM_GetShiftState [13:54:47]SAM_PROTO_GetShiftState [13:54:47]wFMCommunicate request_size=4 [13:54:47]MH_SAM_APDU [13:54:47]CAPDU: 80 13 01 00 [13:54:47]Write to MH i2c: E2 08 00 04 3F 80 13 01 00 00 00 00 00 C0 [13:54:47]Write i2c OK [13:54:47]MH_I2C_Read... [13:54:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:47]Read from MH i2c: E2 [13:54:47]MH_I2C_Read... [13:54:47]Read from MH i2c: E2 0E 00 [13:54:47]MH_I2C_Read... [13:54:47]Read from MH i2c: E2 0E 00 04 3F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 87 [13:54:47]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:54:47]wFMCommunicate OK [13:54:47]SAM_PROTO_GetShiftState done [13:54:47]FM_GetShiftState done [13:54:47]opened in 1729555538 [13:54:47]opened+sec_in_day 1729641938 [13:54:47]quantity*price = 70044 [13:54:47]sum+1 = 70045 [13:54:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 209 22.10.2024 13:54 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228245 ФПД: 160277871563714 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135451&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228245&fm=160277871563714&tin=02508201610067®Number=0000000000091685&sum=70000 [13:54:48]StoreToDocumentArchive [13:54:48]shift 535 fd 228245 [13:54:48]save to /storage/0535/doc_00228245 [13:54:48]save last doc name /storage/0535/doc_00228245 to /storage/kkm_last_doc_name [13:54:48]save OK [13:54:48]Clear old archive folders... [13:54:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:54:48]tlvbuf is 00A7C050 [13:54:48]SAM_PROTO_ClearQueue [13:54:48]wFMCommunicate request_size=4 [13:54:48]MH_SAM_APDU [13:54:48]CAPDU: 80 09 00 00 [13:54:48]Write to MH i2c: E2 08 00 11 3F 80 09 00 00 00 00 00 00 C2 [13:54:48]Write i2c OK [13:54:48]MH_I2C_Read... [13:54:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:54:48]Read from MH i2c: E2 [13:54:48]MH_I2C_Read... [13:54:48]Read from MH i2c: E2 03 00 [13:54:48]MH_I2C_Read... [13:54:48]Read from MH i2c: E2 03 00 11 3F 00 90 00 C4 [13:54:48]RAPDU: 90 00 [13:54:48]wFMCommunicate OK [13:54:48]SAM_PROTO_ClearQueue done [13:54:48]KKMCreateOFDPacket [13:54:48]OFDProtocolAddRootSTLVToBuf [13:54:48]FM_MakeSignedData [13:54:48]FM_MakeSignedData [13:54:48]SAM_PROTO_SignData [13:54:48]wFMCommunicate request_size=4 [13:54:48]MH_SAM_APDU [13:54:48]CAPDU: 80 0D 01 02 [13:54:48]Write to MH i2c: E2 08 00 12 3F 80 0D 01 02 00 00 00 00 CA [13:54:48]Write i2c OK [13:54:48]MH_I2C_Read... [13:54:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:54:48]Read from MH i2c: E2 [13:54:48]MH_I2C_Read... [13:54:48]Read from MH i2c: E2 03 00 [13:54:48]MH_I2C_Read... [13:54:48]Read from MH i2c: E2 03 00 12 3F 00 90 00 C5 [13:54:48]RAPDU: 90 00 [13:54:48]wFMCommunicate OK [13:54:48]wFMCommunicate request_size=255 [13:54:48]MH_SAM_APDU [13:54: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 D1 00 00 00 F4 03 04 00 AB AE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 95 7B 03 00 35 04 06 00 91 [13:54:48]Write to MH i2c: E2 02 01 13 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 D1 00 00 00 F4 03 04 00 AB AE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 95 7B 03 00 35 04 06 00 91 00 00 D6 [13:54:48]Write i2c OK [13:54:48]MH_I2C_Read... [13:54:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:48]Read from MH i2c: E2 [13:54:48]MH_I2C_Read... [13:54:48]Read from MH i2c: E2 03 00 [13:54:48]MH_I2C_Read... [13:54:48]Read from MH i2c: E2 03 00 13 3F 00 90 00 C6 [13:54:48]RAPDU: 90 00 [13:54:48]wFMCommunicate OK [13:54:48]wFMCommunicate request_size=10 [13:54:48]MH_SAM_APDU [13:54:48]CAPDU: 80 0D 02 02 05 C5 99 99 93 C2 [13:54:48]Write to MH i2c: E2 0D 00 14 3F 80 0D 02 02 05 00 C5 99 99 93 C2 00 00 23 [13:54:48]Write i2c OK [13:54:48]MH_I2C_Read... [13:54:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:49]Read from MH i2c: E2 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: E2 03 00 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: E2 03 00 14 3F 00 90 00 C7 [13:54:49]RAPDU: 90 00 [13:54:49]wFMCommunicate OK [13:54:49]wFMCommunicate request_size=4 [13:54:49]MH_SAM_APDU [13:54:49]CAPDU: 80 0D 03 02 [13:54:49]Write to MH i2c: E2 08 00 15 3F 80 0D 03 02 00 00 00 00 CF [13:54:49]Write i2c OK [13:54:49]MH_I2C_Read... [13:54:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:54:49]Read from MH i2c: E2 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: E2 0B 00 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: E2 0B 00 15 3F 00 C5 1E 56 92 1B F9 AC 09 90 00 64 [13:54:49]RAPDU: C5 1E 56 92 1B F9 AC 09 90 00 [13:54:49]wFMCommunicate OK [13:54:49]SAM_PROTO_SignData done [13:54:49]FM_MakeSignedData done [13:54:49]CreateOFDProtocolMessage [13:54:49]wFMCommunicate request_size=4 [13:54:49]MH_SAM_APDU [13:54:49]CAPDU: 80 11 00 00 [13:54:49]Write to MH i2c: E2 08 00 16 3F 80 11 00 00 00 00 00 00 CF [13:54:49]Write i2c OK [13:54:49]MH_I2C_Read... [13:54:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:49]Read from MH i2c: E2 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: E2 17 00 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: E2 17 00 16 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 26 [13:54:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:54:49]wFMCommunicate OK [13:54:49]CreateOFDProtocolMessage done [13:54:49]OFDSenderStorePacket 228245 [13:54:49]StoreOFDPacket docnum=228245 [13:54:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 C9 36 07 01 D1 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 D1 00 00 00 F4 03 04 00 AB AE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 95 7B 03 00 35 04 06 00 91 C5 99 99 93 C2 C5 1E 56 92 1B F9 AC 09 [13:54:49]CheckFolder [13:54:49]dirname=/storage/ofd_packets [13:54:49]CheckFolder done [13:54:49]ProducePacketName [13:54:49]name=ofd_packets/00228245 [13:54:49]NVStorageSaveData ofd_packets/00228245 [13:54:49]File name is /storage/ofd_packets/00228245 [13:54:49]Write 301 bytes [13:54:49]NVStorageSaveData done [13:54:49]OFDSenderStorePacket done [13:54:49]KKMCreateOFDPacket done [13:54:49]NVStorageSaveData kkm_last_timestamp [13:54:49]File name is /storage/kkm_last_timestamp [13:54:49]Write 4 bytes [13:54:49]NVStorageSaveData done [13:54:49]ExternCall_PrintAddStr [13:54:49]wPrintStart [13:54:49]Write to MH i2c: 01 00 00 17 3F 56 [13:54:49]Write i2c OK [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: 01 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: 01 07 00 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: 01 07 00 17 3F 00 00 00 00 00 FF 0F 6B [13:54:49]RasterBufferAndPrint [13:54:49]line Счет N : (1)1964702 [13:54:49]line ИНН: 02508201610067 [13:54:49]line Контрольно-Кассовый Чек [13:54:49]line ПРОДАЖА [13:54:49]line ТРК (МРК, ГНК) : 33 [13:54:49]line Товар: 2710124130 [13:54:49]line Аи-92-К-5 [13:54:49]line 10.470 * 66.90 [13:54:49]line = 700.44 [13:54:49]line НДС 12% НСП 1% [13:54:49]line > о реализуемом товаре [13:54:49]line ОКРУГЛЕНИЕ: -0.44 [13:54:49]line ИТОГО: 700.00 [13:54:49]line Внесено: 700.00 [13:54:49]line СДАЧА: 0.00 [13:54:49]line НСП 1% : 6.20 [13:54:49]line НДС 12% : 74.38 [13:54:49]line Наличными: 700.00 [13:54:49]line Безнал.: 0.00 [13:54:49]line Место: АЗС № 133 "Партнер Нефть" [13:54:49]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:54:49]line СНО: Общий режим [13:54:49]line Чек 209 22.10.2024 13:54 [13:54:49]line Смена: 535 ФФД: 1.0 [13:54:49]line ЗНМ: 0300000091 [13:54:49]line РНМ: 0000000000091685 [13:54:49]line Версия ККМ: 001 [13:54:49]line ФМ: 0000000000871839 [13:54:49]line ФД: 228245 [13:54:49]line ФПД: 160277871563714 [13:54:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135451&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228245&fm=160277871563714&tin=02508201610067®Number=0000000000091685&sum=70000 [13:54:49]written 0, free lines is 4095 [13:54:49]OFD Sender: Processing packet 228245 [packets to send 38, broken 37] [13:54:49]ProducePacketName [13:54:49]name=ofd_packets/00228245 [13:54:49]OFD Sender: To server: pG, [13:54:49]CommunicateWithHost lk.salyk.kg:30040 [13:54:49]ConnectInit lk.salyk.kg [13:54:49]Connected sock=10 [13:54:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 C9 36 07 01 D1 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 D1 00 00 00 F4 03 04 00 AB AE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 95 7B 03 00 35 04 06 00 91 C5 99 99 93 C2 C5 1E 56 92 1B F9 AC 09 [13:54:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 C4 7F 47 00 89 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 38 37 31 38 33 39 10 04 04 00 95 7B 03 00 F4 03 04 00 A3 59 17 67 B6 04 01 00 00 F9 A3 D6 0D 56 BF 27 B7 [13:54:49]CommunicateWithHost err = 0 [13:54:49]CheckOFDResponse [13:54:49]1017 (14) - 77093643461234 [13:54:49]1041 (16) - 0000000000871839 [13:54:49]1040 (4) - 228245 [13:54:49]1012 (4) - 22.10.2024 07:52 [13:54:49]1206 (1) - 0 [13:54:49]OFD Sender: Remove packet 228245 [13:54:49]ProducePacketName [13:54:49]name=ofd_packets/00228245 [13:54:49]NVStorageDeleteData [13:54:49]Write to MH i2c: 01 00 00 41 3F 80 [13:54:49]Write i2c OK [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: 01 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: 01 07 00 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: 01 07 00 41 3F 00 00 00 00 00 BA 0C 4D [13:54:49]RasterBufferAndPrint [13:54:49]line [13:54:49]line [13:54:49]line [13:54:49]line [13:54:49]line [13:54:49]written 0, free lines is 3264 [13:54:49]MH_Cut [13:54:49]Write to MH i2c: D1 01 00 48 3F 01 59 [13:54:49]Write i2c OK [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: D1 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: D1 01 00 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: D1 01 00 48 3F 00 58 [13:54:49]Write to MH i2c: 01 00 00 49 3F 88 [13:54:49]Write i2c OK [13:54:49]MH_I2C_Read... [13:54:50]OFD Sender: No OFD packet to send [13:54:50]*** Cut start [13:54:50]*** Partial cut [13:54:50]*** CUTSNS_PIN = 1 [13:54:50]*** CUTSNS_PIN = 0 [13:54:50]*** Brake cut motor [13:54:51]Read from MH i2c: 01 [13:54:51]MH_I2C_Read... [13:54:51]*** Stop cut motor [13:54:51]*** Cut end [13:54:51]Read from MH i2c: 01 07 00 [13:54:51]MH_I2C_Read... [13:54:51]Read from MH i2c: 01 07 00 49 3F 00 00 00 00 00 FF 0F 9D [13:54:51]process_action close_receipt done [13:54:51]requested_data is exist [13:54:51]produce_requested_data [13:54:51]requested_item fm.sn is exist - process it [13:54:51]wFMCommunicate request_size=4 [13:54:51]MH_SAM_APDU [13:54:51]CAPDU: 80 11 00 00 [13:54:51]Write to MH i2c: E2 08 00 4A 3F 80 11 00 00 00 00 00 00 03 [13:54:51]Write i2c OK [13:54:51]MH_I2C_Read... [13:54:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:51]Read from MH i2c: E2 [13:54:51]MH_I2C_Read... [13:54:51]Read from MH i2c: E2 17 00 [13:54:51]MH_I2C_Read... [13:54:51]Read from MH i2c: E2 17 00 4A 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5A [13:54:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:54:51]wFMCommunicate OK [13:54:51]requested_item fd.num is exist - process it [13:54:51]SAM_PROTO_GetFieldsCounters [13:54:51]wFMCommunicate request_size=4 [13:54:51]MH_SAM_APDU [13:54:51]CAPDU: 80 13 00 00 [13:54:51]Write to MH i2c: E2 08 00 4B 3F 80 13 00 00 00 00 00 00 06 [13:54:51]Write i2c OK [13:54:51]MH_I2C_Read... [13:54:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:54:51]Read from MH i2c: E2 [13:54:51]MH_I2C_Read... [13:54:51]Read from MH i2c: E2 62 00 [13:54:51]MH_I2C_Read... [13:54:51]Read from MH i2c: E2 62 00 4B 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 95 7B 03 00 0E 04 04 00 17 02 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 CE [13:54:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 95 7B 03 00 0E 04 04 00 17 02 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 [13:54:51]wFMCommunicate OK [13:54:51]SAM_PROTO_GetFieldsCounters done [13:54:51]requested_item shift.num is exist - process it [13:54:51]requested_item shift.opened is exist - process it [13:54:51]req_shift_opened [13:54:51]FM_GetShiftState [13:54:51]SAM_PROTO_GetShiftState [13:54:51]wFMCommunicate request_size=4 [13:54:51]MH_SAM_APDU [13:54:51]CAPDU: 80 13 01 00 [13:54:51]Write to MH i2c: E2 08 00 4C 3F 80 13 01 00 00 00 00 00 08 [13:54:51]Write i2c OK [13:54:51]MH_I2C_Read... [13:54:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:51]Read from MH i2c: E2 [13:54:51]MH_I2C_Read... [13:54:51]Read from MH i2c: E2 0E 00 [13:54:51]MH_I2C_Read... [13:54:51]Read from MH i2c: E2 0E 00 4C 3F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 CF [13:54:51]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:54:51]wFMCommunicate OK [13:54:51]SAM_PROTO_GetShiftState done [13:54:51]FM_GetShiftState done [13:54:51]req_shift_opened done [13:54:51]requested_item shift.open_date is exist - process it [13:54:51]req_shift_open_date [13:54:51]req_shift_open_date done [13:54:51]produce_requested_data done [13:54:51]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228245,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:54:51]process_action_free close_receipt [13:54:51]json_value_free [13:54:51]json_value_free done [13:54:51]process_json_proto returns [13:54:51]Send response to host [13:54:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228245,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:54:51]free response buf [13:54:51]execute_script done [13:54:51]execute_script returns [13:54:51]free content buf [13:54:51]Sock 9.Close socket [13:54:51]Sock 9.Thread stoped [13:54:55]OFD Sender: No OFD packet to send [13:55:00]OFD Sender: No OFD packet to send [13:55:05]OFD Sender: No OFD packet to send [13:55:10]OFD Sender: No OFD packet to send [13:55:15]OFD Sender: No OFD packet to send [13:55:20]OFD Sender: No OFD packet to send [13:55:25]OFD Sender: No OFD packet to send [13:55:30]OFD Sender: No OFD packet to send [13:55:35]OFD Sender: No OFD packet to send [13:55:40]OFD Sender: No OFD packet to send [13:55:45]OFD Sender: No OFD packet to send [13:55:50]OFD Sender: No OFD packet to send [13:55:55]OFD Sender: No OFD packet to send [13:56:00]OFD Sender: No OFD packet to send [13:56:05]OFD Sender: No OFD packet to send [13:56:10]OFD Sender: No OFD packet to send [13:56:15]OFD Sender: No OFD packet to send [13:56:20]OFD Sender: No OFD packet to send [13:56:25]OFD Sender: No OFD packet to send [13:56:30]OFD Sender: No OFD packet to send [13:56:35]OFD Sender: No OFD packet to send [13:56:40]OFD Sender: No OFD packet to send [13:56:45]OFD Sender: No OFD packet to send [13:56:50]OFD Sender: No OFD packet to send [13:56:55]OFD Sender: No OFD packet to send [13:57:00]OFD Sender: No OFD packet to send [13:57:05]OFD Sender: No OFD packet to send [13:57:10]OFD Sender: No OFD packet to send [13:57:15]OFD Sender: No OFD packet to send [13:57:20]OFD Sender: No OFD packet to send [13:57:25]OFD Sender: No OFD packet to send [13:57:30]OFD Sender: No OFD packet to send [13:57:35]OFD Sender: No OFD packet to send [13:57:40]OFD Sender: No OFD packet to send [13:57:45]OFD Sender: No OFD packet to send [13:57:50]OFD Sender: No OFD packet to send [13:57:55]OFD Sender: No OFD packet to send [13:58:00]OFD Sender: No OFD packet to send [13:58:05]OFD Sender: No OFD packet to send [13:58:05]accept exits with 7 [13:58:05]New connection [13:58:05]New thread 3067137380 created [13:58:05]Thread 3066994020 joined [13:58:05]Waiting for new connection... [13:58:05] Sock 7.Parse request [13:58:05]Sock 7.Check first char [13:58:05]Sock 7.First char is OK [13:58:05]request: POST /json_proto HTTP/1.0 [13:58:05]Method: POST [13:58:05]URL: /json_proto [13:58:05]Method is POST - this is cgi request [13:58:05]url: /json_proto [13:58:05]query_string will be loaded in cgi processing [13:58:05]execute_cgi json_proto POST (null) [13:58:05]execute_cgi path=json_proto method=POST [13:58:05]POST find Content-Length [13:58:05]Host: 172.17.44.195:8080 [13:58:05]Content-Length: 680 [13:58:05]Content-Type: application/json [13:58:05] [13:58:05]POST finish read [13:58:05]Found Content-Length = 680 [13:58:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964704", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:05]execute_script... [13:58: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)1964704", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:05]POST & json_proto [13:58:05]process_json_proto [13:58:05]json parsed OK: [13:58:05]protocol is kg_v1.0 [13:58:05]action value=close_receipt [13:58:05]process_action close_receipt [13:58:05]cmd_close_receipt [13:58:05]MH_GetDate [13:58:05]Write to MH i2c: F0 00 00 4D 3F 7B [13:58:05]Write i2c OK [13:58:05]MH_I2C_Read... [13:58:05]Read from MH i2c: F0 [13:58:05]MH_I2C_Read... [13:58:05]Read from MH i2c: F0 09 00 [13:58:05]MH_I2C_Read... [13:58:05]Read from MH i2c: F0 09 00 4D 3F 00 72 AF 17 67 82 C9 CF 66 A3 [13:58:05]GetLastDocTimeStamp 1729605291 [13:58:05]current date 1729605490 [13:58:05]FM_GetShiftState [13:58:05]SAM_PROTO_GetShiftState [13:58:05]wFMCommunicate request_size=4 [13:58:05]MH_SAM_APDU [13:58:05]CAPDU: 80 13 01 00 [13:58:05]Write to MH i2c: E2 08 00 4E 3F 80 13 01 00 00 00 00 00 0A [13:58:05]Write i2c OK [13:58:05]MH_I2C_Read... [13:58:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:05]Read from MH i2c: E2 [13:58:05]MH_I2C_Read... [13:58:05]Read from MH i2c: E2 0E 00 [13:58:05]MH_I2C_Read... [13:58:05]Read from MH i2c: E2 0E 00 4E 3F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 D1 [13:58:05]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:58:05]wFMCommunicate OK [13:58:05]SAM_PROTO_GetShiftState done [13:58:05]FM_GetShiftState done [13:58:05]opened in 1729555538 [13:58:05]opened+sec_in_day 1729641938 [13:58:05]quantity*price = 100050 [13:58:05]sum+1 = 100052 [13:58:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 210 22.10.2024 13:58 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228246 ФПД: 144622554263365 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135810&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228246&fm=144622554263365&tin=02508201610067®Number=0000000000091685&sum=100000 [13:58:06]StoreToDocumentArchive [13:58:06]shift 535 fd 228246 [13:58:06]save to /storage/0535/doc_00228246 [13:58:06]save last doc name /storage/0535/doc_00228246 to /storage/kkm_last_doc_name [13:58:06]save OK [13:58:06]Clear old archive folders... [13:58:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:58:07]tlvbuf is 0092E730 [13:58:07]SAM_PROTO_ClearQueue [13:58:07]wFMCommunicate request_size=4 [13:58:07]MH_SAM_APDU [13:58:07]CAPDU: 80 09 00 00 [13:58:07]Write to MH i2c: E2 08 00 5B 3F 80 09 00 00 00 00 00 00 0C [13:58:07]Write i2c OK [13:58:07]MH_I2C_Read... [13:58:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:07]Read from MH i2c: E2 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 03 00 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 03 00 5B 3F 00 90 00 0E [13:58:07]RAPDU: 90 00 [13:58:07]wFMCommunicate OK [13:58:07]SAM_PROTO_ClearQueue done [13:58:07]KKMCreateOFDPacket [13:58:07]OFDProtocolAddRootSTLVToBuf [13:58:07]FM_MakeSignedData [13:58:07]FM_MakeSignedData [13:58:07]SAM_PROTO_SignData [13:58:07]wFMCommunicate request_size=4 [13:58:07]MH_SAM_APDU [13:58:07]CAPDU: 80 0D 01 02 [13:58:07]Write to MH i2c: E2 08 00 5C 3F 80 0D 01 02 00 00 00 00 14 [13:58:07]Write i2c OK [13:58:07]MH_I2C_Read... [13:58:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:07]Read from MH i2c: E2 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 03 00 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 03 00 5C 3F 00 90 00 0F [13:58:07]RAPDU: 90 00 [13:58:07]wFMCommunicate OK [13:58:07]wFMCommunicate request_size=255 [13:58:07]MH_SAM_APDU [13:58: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 D2 00 00 00 F4 03 04 00 72 AF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 96 7B 03 00 35 04 06 00 83 88 8F F9 [13:58:07]Write to MH i2c: E2 02 01 5D 3F 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 D2 00 00 00 F4 03 04 00 72 AF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 96 7B 03 00 35 04 06 00 83 88 8F F9 00 00 D2 [13:58:07]Write i2c OK [13:58:07]MH_I2C_Read... [13:58:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:07]Read from MH i2c: E2 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 03 00 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 03 00 5D 3F 00 90 00 10 [13:58:07]RAPDU: 90 00 [13:58:07]wFMCommunicate OK [13:58:07]wFMCommunicate request_size=7 [13:58:07]MH_SAM_APDU [13:58:07]CAPDU: 80 0D 02 02 02 2F 45 [13:58:07]Write to MH i2c: E2 0A 00 5E 3F 80 0D 02 02 02 00 2F 45 00 00 8F [13:58:07]Write i2c OK [13:58:07]MH_I2C_Read... [13:58:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:07]Read from MH i2c: E2 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 03 00 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 03 00 5E 3F 00 90 00 11 [13:58:07]RAPDU: 90 00 [13:58:07]wFMCommunicate OK [13:58:07]wFMCommunicate request_size=4 [13:58:07]MH_SAM_APDU [13:58:07]CAPDU: 80 0D 03 02 [13:58:07]Write to MH i2c: E2 08 00 5F 3F 80 0D 03 02 00 00 00 00 19 [13:58:07]Write i2c OK [13:58:07]MH_I2C_Read... [13:58:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:07]Read from MH i2c: E2 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 0B 00 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 0B 00 5F 3F 00 83 D6 0D C5 AF 36 1B 90 90 00 D5 [13:58:07]RAPDU: 83 D6 0D C5 AF 36 1B 90 90 00 [13:58:07]wFMCommunicate OK [13:58:07]SAM_PROTO_SignData done [13:58:07]FM_MakeSignedData done [13:58:07]CreateOFDProtocolMessage [13:58:07]wFMCommunicate request_size=4 [13:58:07]MH_SAM_APDU [13:58:07]CAPDU: 80 11 00 00 [13:58:07]Write to MH i2c: E2 08 00 60 3F 80 11 00 00 00 00 00 00 19 [13:58:07]Write i2c OK [13:58:07]MH_I2C_Read... [13:58:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:07]Read from MH i2c: E2 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 17 00 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 17 00 60 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 70 [13:58:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:58:07]wFMCommunicate OK [13:58:07]CreateOFDProtocolMessage done [13:58:07]OFDSenderStorePacket 228246 [13:58:07]StoreOFDPacket docnum=228246 [13:58:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 86 70 04 01 26 BA 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 D2 00 00 00 F4 03 04 00 72 AF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 96 7B 03 00 35 04 06 00 83 88 8F F9 2F 45 83 D6 0D C5 AF 36 1B 90 [13:58:07]CheckFolder [13:58:07]dirname=/storage/ofd_packets [13:58:07]CheckFolder done [13:58:07]ProducePacketName [13:58:07]name=ofd_packets/00228246 [13:58:07]NVStorageSaveData ofd_packets/00228246 [13:58:07]File name is /storage/ofd_packets/00228246 [13:58:07]Write 298 bytes [13:58:07]NVStorageSaveData done [13:58:07]OFDSenderStorePacket done [13:58:07]KKMCreateOFDPacket done [13:58:07]NVStorageSaveData kkm_last_timestamp [13:58:07]File name is /storage/kkm_last_timestamp [13:58:07]Write 4 bytes [13:58:07]NVStorageSaveData done [13:58:07]ExternCall_PrintAddStr [13:58:07]wPrintStart [13:58:07]Write to MH i2c: 01 00 00 61 3F A0 [13:58:07]Write i2c OK [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: 01 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: 01 07 00 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: 01 07 00 61 3F 00 00 00 00 00 FF 0F B5 [13:58:07]RasterBufferAndPrint [13:58:07]line Счет N : (1)1964704 [13:58:07]line ИНН: 02508201610067 [13:58:07]line Контрольно-Кассовый Чек [13:58:07]line ПРОДАЖА [13:58:07]line ТРК (МРК, ГНК) : 21 [13:58:07]line Товар: 2710194210 [13:58:07]line ДТ-К-5 [13:58:07]line 13.130 * 76.20 [13:58:07]line = 1000.51 [13:58:07]line НДС 12% НСП 1% [13:58:07]line > о реализуемом товаре [13:58:07]line ОКРУГЛЕНИЕ: -0.51 [13:58:07]line ИТОГО: 1000.00 [13:58:07]line Внесено: 1000.00 [13:58:07]line СДАЧА: 0.00 [13:58:07]line НСП 1% : 8.85 [13:58:07]line НДС 12% : 106.25 [13:58:07]line Наличными: 1000.00 [13:58:07]line Безнал.: 0.00 [13:58:07]line Место: АЗС № 133 "Партнер Нефть" [13:58:07]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:58:07]line СНО: Общий режим [13:58:07]line Чек 210 22.10.2024 13:58 [13:58:07]line Смена: 535 ФФД: 1.0 [13:58:07]line ЗНМ: 0300000091 [13:58:07]line РНМ: 0000000000091685 [13:58:07]line Версия ККМ: 001 [13:58:07]line ФМ: 0000000000871839 [13:58:07]line ФД: 228246 [13:58:07]line ФПД: 144622554263365 [13:58:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135810&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228246&fm=144622554263365&tin=02508201610067®Number=0000000000091685&sum=100000 [13:58:07]OFD Sender: Processing packet 228246 [packets to send 38, broken 37] [13:58:07]ProducePacketName [13:58:07]name=ofd_packets/00228246 [13:58:07]OFD Sender: To server: pG, [13:58:07]CommunicateWithHost lk.salyk.kg:30040 [13:58:07]ConnectInit lk.salyk.kg [13:58:07]written 0, free lines is 4095 [13:58:07]Connected sock=10 [13:58:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 86 70 04 01 26 BA 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 D2 00 00 00 F4 03 04 00 72 AF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 96 7B 03 00 35 04 06 00 83 88 8F F9 2F 45 83 D6 0D C5 AF 36 1B 90 [13:58:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 97 34 47 00 B8 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 96 7B 03 00 F4 03 04 00 6A 5A 17 67 B6 04 01 00 00 44 EE 4F 1B 31 72 19 07 [13:58:08]CommunicateWithHost err = 0 [13:58:08]CheckOFDResponse [13:58:08]1017 (14) - 77093643461234 [13:58:08]1041 (16) - 0000000000871839 [13:58:08]1040 (4) - 228246 [13:58:08]1012 (4) - 22.10.2024 07:55 [13:58:08]1206 (1) - 0 [13:58:08]OFD Sender: Remove packet 228246 [13:58:08]ProducePacketName [13:58:08]name=ofd_packets/00228246 [13:58:08]NVStorageDeleteData [13:58:08]Write to MH i2c: 01 00 00 8B 3F CA [13:58:08]Write i2c OK [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: 01 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: 01 07 00 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: 01 07 00 8B 3F 00 00 00 00 00 C2 0C 9F [13:58:08]RasterBufferAndPrint [13:58:08]line [13:58:08]line [13:58:08]line [13:58:08]line [13:58:08]line [13:58:08]written 0, free lines is 3271 [13:58:08]MH_Cut [13:58:08]Write to MH i2c: D1 01 00 92 3F 01 A3 [13:58:08]Write i2c OK [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: D1 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: D1 01 00 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: D1 01 00 92 3F 00 A2 [13:58:08]Write to MH i2c: 01 00 00 93 3F D2 [13:58:08]Write i2c OK [13:58:08]MH_I2C_Read... [13:58:08]OFD Sender: No OFD packet to send [13:58:09]*** Cut start [13:58:09]*** Partial cut [13:58:09]*** CUTSNS_PIN = 1 [13:58:09]*** CUTSNS_PIN = 0 [13:58:09]*** Brake cut motor [13:58:09]Read from MH i2c: 01 [13:58:09]MH_I2C_Read... [13:58:09]*** Stop cut motor [13:58:09]*** Cut end [13:58:09]Read from MH i2c: 01 07 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: 01 07 00 93 3F 00 00 00 00 00 FF 0F E7 [13:58:09]process_action close_receipt done [13:58:09]requested_data is exist [13:58:09]produce_requested_data [13:58:09]requested_item fm.sn is exist - process it [13:58:09]wFMCommunicate request_size=4 [13:58:09]MH_SAM_APDU [13:58:09]CAPDU: 80 11 00 00 [13:58:09]Write to MH i2c: E2 08 00 94 3F 80 11 00 00 00 00 00 00 4D [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:09]Read from MH i2c: E2 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 17 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 17 00 94 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A4 [13:58:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:58:09]wFMCommunicate OK [13:58:09]requested_item fd.num is exist - process it [13:58:09]SAM_PROTO_GetFieldsCounters [13:58:09]wFMCommunicate request_size=4 [13:58:09]MH_SAM_APDU [13:58:09]CAPDU: 80 13 00 00 [13:58:09]Write to MH i2c: E2 08 00 95 3F 80 13 00 00 00 00 00 00 50 [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:09]Read from MH i2c: E2 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 62 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 62 00 95 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 96 7B 03 00 0E 04 04 00 17 02 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 1C [13:58:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 96 7B 03 00 0E 04 04 00 17 02 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 [13:58:09]wFMCommunicate OK [13:58:09]SAM_PROTO_GetFieldsCounters done [13:58:09]requested_item shift.num is exist - process it [13:58:09]requested_item shift.opened is exist - process it [13:58:09]req_shift_opened [13:58:09]FM_GetShiftState [13:58:09]SAM_PROTO_GetShiftState [13:58:09]wFMCommunicate request_size=4 [13:58:09]MH_SAM_APDU [13:58:09]CAPDU: 80 13 01 00 [13:58:09]Write to MH i2c: E2 08 00 96 3F 80 13 01 00 00 00 00 00 52 [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:10]Read from MH i2c: E2 [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: E2 0E 00 [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: E2 0E 00 96 3F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 19 [13:58:10]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:58:10]wFMCommunicate OK [13:58:10]SAM_PROTO_GetShiftState done [13:58:10]FM_GetShiftState done [13:58:10]req_shift_opened done [13:58:10]requested_item shift.open_date is exist - process it [13:58:10]req_shift_open_date [13:58:10]req_shift_open_date done [13:58:10]produce_requested_data done [13:58:10]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228246,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:58:10]process_action_free close_receipt [13:58:10]json_value_free [13:58:10]json_value_free done [13:58:10]process_json_proto returns [13:58:10]Send response to host [13:58:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228246,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:58:10]free response buf [13:58:10]execute_script done [13:58:10]execute_script returns [13:58:10]free content buf [13:58:10]Sock 7.Close socket [13:58:10]Sock 7.Thread stoped [13:58:13]OFD Sender: No OFD packet to send [13:58:18]OFD Sender: No OFD packet to send [13:58:23]OFD Sender: No OFD packet to send [13:58:28]OFD Sender: No OFD packet to send [13:58:31]accept exits with 9 [13:58:31]New connection [13:58:31]New thread 3066994020 created [13:58:31]Thread 3067137380 joined [13:58:31]Waiting for new connection... [13:58:31] Sock 9.Parse request [13:58:31]Sock 9.Check first char [13:58:31]Sock 9.First char is OK [13:58:31]request: POST /json_proto HTTP/1.0 [13:58:31]Method: POST [13:58:31]URL: /json_proto [13:58:31]Method is POST - this is cgi request [13:58:31]url: /json_proto [13:58:31]query_string will be loaded in cgi processing [13:58:31]execute_cgi json_proto POST (null) [13:58:31]execute_cgi path=json_proto method=POST [13:58:31]POST find Content-Length [13:58:31]Host: 172.17.44.195:8080 [13:58:31]Content-Length: 801 [13:58:31]Content-Type: application/json [13:58:31] [13:58:31]POST finish read [13:58:31]Found Content-Length = 801 [13:58:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4220446", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:31]execute_script... [13: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)1964706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4220446", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:31]POST & json_proto [13:58:31]process_json_proto [13:58:31]json parsed OK: [13:58:31]protocol is kg_v1.0 [13:58:31]action value=close_receipt [13:58:31]process_action close_receipt [13:58:31]cmd_close_receipt [13:58:31]MH_GetDate [13:58:31]Write to MH i2c: F0 00 00 97 3F C5 [13:58:31]Write i2c OK [13:58:31]MH_I2C_Read... [13:58:31]Read from MH i2c: F0 [13:58:31]MH_I2C_Read... [13:58:31]Read from MH i2c: F0 09 00 [13:58:31]MH_I2C_Read... [13:58:31]Read from MH i2c: F0 09 00 97 3F 00 8C AF 17 67 82 C9 CF 66 07 [13:58:31]GetLastDocTimeStamp 1729605490 [13:58:31]current date 1729605516 [13:58:31]FM_GetShiftState [13:58:31]SAM_PROTO_GetShiftState [13:58:31]wFMCommunicate request_size=4 [13:58:31]MH_SAM_APDU [13:58:31]CAPDU: 80 13 01 00 [13:58:31]Write to MH i2c: E2 08 00 98 3F 80 13 01 00 00 00 00 00 54 [13:58:31]Write i2c OK [13:58:31]MH_I2C_Read... [13:58:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:31]Read from MH i2c: E2 [13:58:31]MH_I2C_Read... [13:58:31]Read from MH i2c: E2 0E 00 [13:58:31]MH_I2C_Read... [13:58:31]Read from MH i2c: E2 0E 00 98 3F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 1B [13:58:31]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:58:31]wFMCommunicate OK [13:58:31]SAM_PROTO_GetShiftState done [13:58:31]FM_GetShiftState done [13:58:31]opened in 1729555538 [13:58:31]opened+sec_in_day 1729641938 [13:58:31]quantity*price = 0 [13:58:31]sum+1 = 1 [13:58:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 211 22.10.2024 13:58 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливные Талоны 4220446 ФМ: 0000000000871839 ФД: 228247 ФПД: 257075919120635 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135836&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228247&fm=257075919120635&tin=02508201610067®Number=0000000000091685&sum=0 [13:58:33]StoreToDocumentArchive [13:58:33]shift 535 fd 228247 [13:58:33]save to /storage/0535/doc_00228247 [13:58:33]save last doc name /storage/0535/doc_00228247 to /storage/kkm_last_doc_name [13:58:33]save OK [13:58:33]Clear old archive folders... [13:58:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:58:33]tlvbuf is 008CA280 [13:58:33]SAM_PROTO_ClearQueue [13:58:33]wFMCommunicate request_size=4 [13:58:33]MH_SAM_APDU [13:58:33]CAPDU: 80 09 00 00 [13:58:33]Write to MH i2c: E2 08 00 A5 3F 80 09 00 00 00 00 00 00 56 [13:58:33]Write i2c OK [13:58:33]MH_I2C_Read... [13:58:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:33]Read from MH i2c: E2 [13:58:33]MH_I2C_Read... [13:58:33]Read from MH i2c: E2 03 00 [13:58:33]MH_I2C_Read... [13:58:33]Read from MH i2c: E2 03 00 A5 3F 00 90 00 58 [13:58:33]RAPDU: 90 00 [13:58:33]wFMCommunicate OK [13:58:33]SAM_PROTO_ClearQueue done [13:58:33]KKMCreateOFDPacket [13:58:33]OFDProtocolAddRootSTLVToBuf [13:58:33]FM_MakeSignedData [13:58:33]FM_MakeSignedData [13:58:33]SAM_PROTO_SignData [13:58:33]wFMCommunicate request_size=4 [13:58:33]MH_SAM_APDU [13:58:33]CAPDU: 80 0D 01 02 [13:58:33]Write to MH i2c: E2 08 00 A6 3F 80 0D 01 02 00 00 00 00 5E [13:58:33]Write i2c OK [13:58:33]MH_I2C_Read... [13:58:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:33]Read from MH i2c: E2 [13:58:33]MH_I2C_Read... [13:58:33]Read from MH i2c: E2 03 00 [13:58:33]MH_I2C_Read... [13:58:33]Read from MH i2c: E2 03 00 A6 3F 00 90 00 59 [13:58:33]RAPDU: 90 00 [13:58:33]wFMCommunicate OK [13:58:33]wFMCommunicate request_size=255 [13:58:33]MH_SAM_APDU [13:58:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 8C AF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 97 7B 03 00 35 04 06 00 E9 [13:58:33]Write to MH i2c: E2 02 01 A7 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 8C AF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 97 7B 03 00 35 04 06 00 E9 00 00 4A [13:58:33]Write i2c OK [13:58:33]MH_I2C_Read... [13:58:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:33]Read from MH i2c: E2 [13:58:33]MH_I2C_Read... [13:58:33]Read from MH i2c: E2 03 00 [13:58:33]MH_I2C_Read... [13:58:33]Read from MH i2c: E2 03 00 A7 3F 00 90 00 5A [13:58:33]RAPDU: 90 00 [13:58:33]wFMCommunicate OK [13:58:33]wFMCommunicate request_size=10 [13:58:33]MH_SAM_APDU [13:58:33]CAPDU: 80 0D 02 02 05 CF 26 D6 E8 FB [13:58:33]Write to MH i2c: E2 0D 00 A8 3F 80 0D 02 02 05 00 CF 26 D6 E8 FB 00 00 19 [13:58:33]Write i2c OK [13:58:33]MH_I2C_Read... [13:58:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:33]Read from MH i2c: E2 [13:58:33]MH_I2C_Read... [13:58:33]Read from MH i2c: E2 03 00 [13:58:33]MH_I2C_Read... [13:58:33]Read from MH i2c: E2 03 00 A8 3F 00 90 00 5B [13:58:33]RAPDU: 90 00 [13:58:33]wFMCommunicate OK [13:58:33]wFMCommunicate request_size=4 [13:58:33]MH_SAM_APDU [13:58:33]CAPDU: 80 0D 03 02 [13:58:33]Write to MH i2c: E2 08 00 A9 3F 80 0D 03 02 00 00 00 00 63 [13:58:33]Write i2c OK [13:58:33]MH_I2C_Read... [13:58:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:33]Read from MH i2c: E2 [13:58:33]MH_I2C_Read... [13:58:33]Read from MH i2c: E2 0B 00 [13:58:33]MH_I2C_Read... [13:58:33]Read from MH i2c: E2 0B 00 A9 3F 00 F5 63 87 EE F0 2A AA 5A 90 00 4F [13:58:33]RAPDU: F5 63 87 EE F0 2A AA 5A 90 00 [13:58:33]wFMCommunicate OK [13:58:33]SAM_PROTO_SignData done [13:58:33]FM_MakeSignedData done [13:58:33]CreateOFDProtocolMessage [13:58:33]wFMCommunicate request_size=4 [13:58:33]MH_SAM_APDU [13:58:33]CAPDU: 80 11 00 00 [13:58:33]Write to MH i2c: E2 08 00 AA 3F 80 11 00 00 00 00 00 00 63 [13:58:33]Write i2c OK [13:58:33]MH_I2C_Read... [13:58:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:33]Read from MH i2c: E2 [13:58:33]MH_I2C_Read... [13:58:33]Read from MH i2c: E2 17 00 [13:58:33]MH_I2C_Read... [13:58:33]Read from MH i2c: E2 17 00 AA 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BA [13:58:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:58:33]wFMCommunicate OK [13:58:33]CreateOFDProtocolMessage done [13:58:33]OFDSenderStorePacket 228247 [13:58:33]StoreOFDPacket docnum=228247 [13:58:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 9F 24 07 01 81 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 8C AF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 97 7B 03 00 35 04 06 00 E9 CF 26 D6 E8 FB F5 63 87 EE F0 2A AA 5A [13:58:33]CheckFolder [13:58:33]dirname=/storage/ofd_packets [13:58:33]CheckFolder done [13:58:33]ProducePacketName [13:58:33]name=ofd_packets/00228247 [13:58:33]NVStorageSaveData ofd_packets/00228247 [13:58:33]File name is /storage/ofd_packets/00228247 [13:58:33]Write 301 bytes [13:58:33]NVStorageSaveData done [13:58:33]OFDSenderStorePacket done [13:58:33]KKMCreateOFDPacket done [13:58:33]NVStorageSaveData kkm_last_timestamp [13:58:33]File name is /storage/kkm_last_timestamp [13:58:33]Write 4 bytes [13:58:33]NVStorageSaveData done [13:58:33]ExternCall_PrintAddStr [13:58:33]wPrintStart [13:58:33]Write to MH i2c: 01 00 00 AB 3F EA [13:58:33]Write i2c OK [13:58:33]MH_I2C_Read... [13:58:33]Read from MH i2c: 01 [13:58:33]MH_I2C_Read... [13:58:33]Read from MH i2c: 01 07 00 [13:58:33]MH_I2C_Read... [13:58:33]Read from MH i2c: 01 07 00 AB 3F 00 00 00 00 00 FF 0F FF [13:58:33]RasterBufferAndPrint [13:58:33]line Счет N : (1)1964706 [13:58:33]line ИНН: 02508201610067 [13:58:33]line Контрольно-Кассовый Чек [13:58:33]line ПРОДАЖА [13:58:33]line ТРК (МРК, ГНК) : 43 [13:58:33]line Товар: 2710124130 [13:58:33]line Аи-92-К-5 [13:58:33]line 10.000 * 0.00 [13:58:33]line = 0.00 [13:58:33]line НДС 12% НСП 1% [13:58:33]line > о реализуемом товаре [13:58:33]line ИТОГО: 0.00 [13:58:33]line НСП 1% : 0.00 [13:58:33]line НДС 12% : 0.00 [13:58:33]line Наличными: 0.00 [13:58:33]line Безнал.: 0.00 [13:58:33]line Место: АЗС № 133 "Партнер Нефть" [13:58:33]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:58:33]line СНО: Общий режим [13:58:33]line Чек 211 22.10.2024 13:58 [13:58:33]line Смена: 535 ФФД: 1.0 [13:58:33]line ЗНМ: 0300000091 [13:58:33]line РНМ: 0000000000091685 [13:58:33]line Версия ККМ: 001 [13:58:33]line Талоны: Топливные Талоны [13:58:33]line 4220446 [13:58:33]line ФМ: 0000000000871839 [13:58:33]line ФД: 228247 [13:58:33]line ФПД: 257075919120635 [13:58:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135836&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228247&fm=257075919120635&tin=02508201610067®Number=0000000000091685&sum=0 [13:58:33]written 0, free lines is 4095 [13:58:33]OFD Sender: Processing packet 228247 [packets to send 38, broken 37] [13:58:33]ProducePacketName [13:58:33]name=ofd_packets/00228247 [13:58:33]OFD Sender: To server: pG, [13:58:33]CommunicateWithHost lk.salyk.kg:30040 [13:58:33]ConnectInit lk.salyk.kg [13:58:34]Write to MH i2c: 01 00 00 D4 3F 13 [13:58:34]Write i2c OK [13:58:34]MH_I2C_Read... [13:58:34]Connected sock=10 [13:58:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 9F 24 07 01 81 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 8C AF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 97 7B 03 00 35 04 06 00 E9 CF 26 D6 E8 FB F5 63 87 EE F0 2A AA 5A [13:58:34]Read from MH i2c: 01 [13:58:34]MH_I2C_Read... [13:58:34]Read from MH i2c: 01 07 00 [13:58:34]MH_I2C_Read... [13:58:34]Read from MH i2c: 01 07 00 D4 3F 00 00 00 00 00 DE 0C 04 [13:58:34]RasterBufferAndPrint [13:58:34]line [13:58:34]line [13:58:34]line [13:58:34]line [13:58:34]line [13:58:34]written 0, free lines is 3348 [13:58:34]MH_Cut [13:58:34]Write to MH i2c: D1 01 00 DB 3F 01 EC [13:58:34]Write i2c OK [13:58:34]MH_I2C_Read... [13:58:34]Read from MH i2c: D1 [13:58:34]MH_I2C_Read... [13:58:34]Read from MH i2c: D1 01 00 [13:58:34]MH_I2C_Read... [13:58:34]Read from MH i2c: D1 01 00 DB 3F 00 EB [13:58:34]Write to MH i2c: 01 00 00 DC 3F 1B [13:58:34]Write i2c OK [13:58:34]MH_I2C_Read... [13:58:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 47 EB 47 00 6C 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 97 7B 03 00 F4 03 04 00 84 5A 17 67 B6 04 01 00 00 FE C3 B1 1F B0 2E 74 C8 [13:58:34]CommunicateWithHost err = 0 [13:58:34]CheckOFDResponse [13:58:34]1017 (14) - 77093643461234 [13:58:34]1041 (16) - 0000000000871839 [13:58:34]1040 (4) - 228247 [13:58:34]1012 (4) - 22.10.2024 07:55 [13:58:34]1206 (1) - 0 [13:58:34]OFD Sender: Remove packet 228247 [13:58:34]ProducePacketName [13:58:34]name=ofd_packets/00228247 [13:58:34]NVStorageDeleteData [13:58:34]OFD Sender: No OFD packet to send [13:58:34]*** Cut start [13:58:34]*** Partial cut [13:58:34]*** CUTSNS_PIN = 1 [13:58:34]*** CUTSNS_PIN = 0 [13:58:35]*** Brake cut motor [13:58:35]Read from MH i2c: 01 [13:58:35]MH_I2C_Read... [13:58:35]*** Stop cut motor [13:58:35]*** Cut end [13:58:35]Read from MH i2c: 01 07 00 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: 01 07 00 DC 3F 00 00 00 00 00 FF 0F 30 [13:58:35]process_action close_receipt done [13:58:35]requested_data is exist [13:58:35]produce_requested_data [13:58:35]requested_item fm.sn is exist - process it [13:58:35]wFMCommunicate request_size=4 [13:58:35]MH_SAM_APDU [13:58:35]CAPDU: 80 11 00 00 [13:58:35]Write to MH i2c: E2 08 00 DD 3F 80 11 00 00 00 00 00 00 96 [13:58:35]Write i2c OK [13:58:35]MH_I2C_Read... [13:58:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:35]Read from MH i2c: E2 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: E2 17 00 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: E2 17 00 DD 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 ED [13:58:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:58:35]wFMCommunicate OK [13:58:35]requested_item fd.num is exist - process it [13:58:35]SAM_PROTO_GetFieldsCounters [13:58:35]wFMCommunicate request_size=4 [13:58:35]MH_SAM_APDU [13:58:35]CAPDU: 80 13 00 00 [13:58:35]Write to MH i2c: E2 08 00 DE 3F 80 13 00 00 00 00 00 00 99 [13:58:35]Write i2c OK [13:58:35]MH_I2C_Read... [13:58:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:35]Read from MH i2c: E2 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: E2 62 00 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: E2 62 00 DE 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 97 7B 03 00 0E 04 04 00 17 02 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 69 [13:58:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 97 7B 03 00 0E 04 04 00 17 02 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 [13:58:35]wFMCommunicate OK [13:58:35]SAM_PROTO_GetFieldsCounters done [13:58:35]requested_item shift.num is exist - process it [13:58:35]requested_item shift.opened is exist - process it [13:58:35]req_shift_opened [13:58:35]FM_GetShiftState [13:58:35]SAM_PROTO_GetShiftState [13:58:35]wFMCommunicate request_size=4 [13:58:35]MH_SAM_APDU [13:58:35]CAPDU: 80 13 01 00 [13:58:35]Write to MH i2c: E2 08 00 DF 3F 80 13 01 00 00 00 00 00 9B [13:58:35]Write i2c OK [13:58:35]MH_I2C_Read... [13:58:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:35]Read from MH i2c: E2 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: E2 0E 00 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: E2 0E 00 DF 3F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 62 [13:58:35]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [13:58:35]wFMCommunicate OK [13:58:35]SAM_PROTO_GetShiftState done [13:58:35]FM_GetShiftState done [13:58:35]req_shift_opened done [13:58:35]requested_item shift.open_date is exist - process it [13:58:35]req_shift_open_date [13:58:35]req_shift_open_date done [13:58:35]produce_requested_data done [13:58:35]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228247,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [13:58:35]process_action_free close_receipt [13:58:35]json_value_free [13:58:35]json_value_free done [13:58:35]process_json_proto returns [13:58:35]Send response to host [13:58:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228247,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [13:58:35]free response buf [13:58:35]execute_script done [13:58:35]execute_script returns [13:58:35]free content buf [13:58:35]Sock 9.Close socket [13:58:35]Sock 9.Thread stoped [13:58:39]OFD Sender: No OFD packet to send [13:58:44]OFD Sender: No OFD packet to send [13:58:49]OFD Sender: No OFD packet to send [13:58:54]OFD Sender: No OFD packet to send [13:58:59]OFD Sender: No OFD packet to send [13:59:04]OFD Sender: No OFD packet to send [13:59:09]OFD Sender: No OFD packet to send [13:59:14]OFD Sender: No OFD packet to send [13:59:19]OFD Sender: No OFD packet to send [13:59:24]OFD Sender: No OFD packet to send [13:59:29]OFD Sender: No OFD packet to send [13:59:34]OFD Sender: No OFD packet to send [13:59:39]OFD Sender: No OFD packet to send [13:59:44]OFD Sender: No OFD packet to send [13:59:49]OFD Sender: No OFD packet to send [13:59:54]OFD Sender: No OFD packet to send [13:59:59]OFD Sender: No OFD packet to send [14:00:04]OFD Sender: No OFD packet to send [14:00:09]OFD Sender: No OFD packet to send [14:00:14]OFD Sender: No OFD packet to send [14:00:19]OFD Sender: No OFD packet to send [14:00:24]OFD Sender: No OFD packet to send [14:00:29]OFD Sender: No OFD packet to send [14:00:34]OFD Sender: No OFD packet to send [14:00:39]OFD Sender: No OFD packet to send [14:00:44]OFD Sender: No OFD packet to send [14:00:49]OFD Sender: No OFD packet to send [14:00:54]OFD Sender: No OFD packet to send [14:00:59]OFD Sender: No OFD packet to send [14:01:04]OFD Sender: No OFD packet to send [14:01:09]OFD Sender: No OFD packet to send [14:01:14]OFD Sender: No OFD packet to send [14:01:19]OFD Sender: No OFD packet to send [14:01:24]OFD Sender: No OFD packet to send [14:01:29]OFD Sender: No OFD packet to send [14:01:34]OFD Sender: No OFD packet to send [14:01:39]OFD Sender: No OFD packet to send [14:01:44]OFD Sender: No OFD packet to send [14:01:49]OFD Sender: No OFD packet to send [14:01:54]OFD Sender: No OFD packet to send [14:01:59]OFD Sender: No OFD packet to send [14:02:04]OFD Sender: No OFD packet to send [14:02:09]OFD Sender: No OFD packet to send [14:02:14]OFD Sender: No OFD packet to send [14:02:19]accept exits with 7 [14:02:19]New connection [14:02:19]New thread 3067137380 created [14:02:19]Thread 3066994020 joined [14:02:19]Waiting for new connection... [14:02:19] Sock 7.Parse request [14:02:19]Sock 7.Check first char [14:02:19]Sock 7.First char is OK [14:02:19]request: POST /json_proto HTTP/1.0 [14:02:19]Method: POST [14:02:19]URL: /json_proto [14:02:19]Method is POST - this is cgi request [14:02:19]url: /json_proto [14:02:19]query_string will be loaded in cgi processing [14:02:19]execute_cgi json_proto POST (null) [14:02:19]execute_cgi path=json_proto method=POST [14:02:19]POST find Content-Length [14:02:19]Host: 172.17.44.195:8080 [14:02:19]Content-Length: 678 [14:02:19]Content-Type: application/json [14:02:19] [14:02:19]POST finish read [14:02:19]Found Content-Length = 678 [14:02:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964708", "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" : 66.90, "quantity" : 5.980, "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" ] } } [14:02:19]execute_script... [14:02: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)1964708", "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" : 66.90, "quantity" : 5.980, "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" ] } } [14:02:19]POST & json_proto [14:02:19]process_json_proto [14:02:19]json parsed OK: [14:02:19]protocol is kg_v1.0 [14:02:19]action value=close_receipt [14:02:19]process_action close_receipt [14:02:19]cmd_close_receipt [14:02:19]MH_GetDate [14:02:19]Write to MH i2c: F0 00 00 E0 3F 0E [14:02:19]Write i2c OK [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: F0 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: F0 09 00 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: F0 09 00 E0 3F 00 70 B0 17 67 82 C9 CF 66 35 [14:02:19]GetLastDocTimeStamp 1729605516 [14:02:19]current date 1729605744 [14:02:19]FM_GetShiftState [14:02:19]SAM_PROTO_GetShiftState [14:02:19]wFMCommunicate request_size=4 [14:02:19]MH_SAM_APDU [14:02:19]CAPDU: 80 13 01 00 [14:02:19]Write to MH i2c: E2 08 00 E1 3F 80 13 01 00 00 00 00 00 9D [14:02:19]Write i2c OK [14:02:19]MH_I2C_Read... [14:02:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:19]Read from MH i2c: E2 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: E2 0E 00 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: E2 0E 00 E1 3F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 64 [14:02:19]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:02:19]wFMCommunicate OK [14:02:19]SAM_PROTO_GetShiftState done [14:02:19]FM_GetShiftState done [14:02:19]opened in 1729555538 [14:02:19]opened+sec_in_day 1729641938 [14:02:19]quantity*price = 40006 [14:02:19]sum+1 = 40007 [14:02:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 212 22.10.2024 14:02 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228248 ФПД: 176508590271141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T140224&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228248&fm=176508590271141&tin=02508201610067®Number=0000000000091685&sum=40000 [14:02:21]StoreToDocumentArchive [14:02:21]shift 535 fd 228248 [14:02:21]save to /storage/0535/doc_00228248 [14:02:21]save last doc name /storage/0535/doc_00228248 to /storage/kkm_last_doc_name [14:02:21]save OK [14:02:21]Clear old archive folders... [14:02:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:02:21]tlvbuf is 008FF9C0 [14:02:21]SAM_PROTO_ClearQueue [14:02:21]wFMCommunicate request_size=4 [14:02:21]MH_SAM_APDU [14:02:21]CAPDU: 80 09 00 00 [14:02:21]Write to MH i2c: E2 08 00 EE 3F 80 09 00 00 00 00 00 00 9F [14:02:21]Write i2c OK [14:02:21]MH_I2C_Read... [14:02:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:21]Read from MH i2c: E2 [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: E2 03 00 [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: E2 03 00 EE 3F 00 90 00 A1 [14:02:21]RAPDU: 90 00 [14:02:21]wFMCommunicate OK [14:02:21]SAM_PROTO_ClearQueue done [14:02:21]KKMCreateOFDPacket [14:02:21]OFDProtocolAddRootSTLVToBuf [14:02:21]FM_MakeSignedData [14:02:21]FM_MakeSignedData [14:02:21]SAM_PROTO_SignData [14:02:21]wFMCommunicate request_size=4 [14:02:21]MH_SAM_APDU [14:02:21]CAPDU: 80 0D 01 02 [14:02:21]Write to MH i2c: E2 08 00 EF 3F 80 0D 01 02 00 00 00 00 A7 [14:02:21]Write i2c OK [14:02:21]MH_I2C_Read... [14:02:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:21]Read from MH i2c: E2 [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: E2 03 00 [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: E2 03 00 EF 3F 00 90 00 A2 [14:02:21]RAPDU: 90 00 [14:02:21]wFMCommunicate OK [14:02:21]wFMCommunicate request_size=255 [14:02:21]MH_SAM_APDU [14:02: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 D4 00 00 00 F4 03 04 00 70 B0 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 98 7B 03 00 35 04 06 00 A0 [14:02:21]Write to MH i2c: E2 02 01 F0 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 22 1A 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 D4 00 00 00 F4 03 04 00 70 B0 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 98 7B 03 00 35 04 06 00 A0 00 00 4E [14:02:21]Write i2c OK [14:02:21]MH_I2C_Read... [14:02:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:21]Read from MH i2c: E2 [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: E2 03 00 [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: E2 03 00 F0 3F 00 90 00 A3 [14:02:21]RAPDU: 90 00 [14:02:21]wFMCommunicate OK [14:02:21]wFMCommunicate request_size=10 [14:02:21]MH_SAM_APDU [14:02:21]CAPDU: 80 0D 02 02 05 88 9B D2 AA A5 [14:02:21]Write to MH i2c: E2 0D 00 F1 3F 80 0D 02 02 05 00 88 9B D2 AA A5 00 00 F8 [14:02:21]Write i2c OK [14:02:21]MH_I2C_Read... [14:02:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:21]Read from MH i2c: E2 [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: E2 03 00 [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: E2 03 00 F1 3F 00 90 00 A4 [14:02:21]RAPDU: 90 00 [14:02:21]wFMCommunicate OK [14:02:21]wFMCommunicate request_size=4 [14:02:21]MH_SAM_APDU [14:02:21]CAPDU: 80 0D 03 02 [14:02:21]Write to MH i2c: E2 08 00 F2 3F 80 0D 03 02 00 00 00 00 AC [14:02:21]Write i2c OK [14:02:21]MH_I2C_Read... [14:02:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:21]Read from MH i2c: E2 [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: E2 0B 00 [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: E2 0B 00 F2 3F 00 23 4C EC D8 5C 19 43 BF 90 00 57 [14:02:21]RAPDU: 23 4C EC D8 5C 19 43 BF 90 00 [14:02:21]wFMCommunicate OK [14:02:21]SAM_PROTO_SignData done [14:02:21]FM_MakeSignedData done [14:02:21]CreateOFDProtocolMessage [14:02:21]wFMCommunicate request_size=4 [14:02:21]MH_SAM_APDU [14:02:21]CAPDU: 80 11 00 00 [14:02:21]Write to MH i2c: E2 08 00 F3 3F 80 11 00 00 00 00 00 00 AC [14:02:21]Write i2c OK [14:02:21]MH_I2C_Read... [14:02:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:21]Read from MH i2c: E2 [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: E2 17 00 [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: E2 17 00 F3 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 03 [14:02:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:02:21]wFMCommunicate OK [14:02:21]CreateOFDProtocolMessage done [14:02:21]OFDSenderStorePacket 228248 [14:02:21]StoreOFDPacket docnum=228248 [14:02:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 51 9B 07 01 02 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 22 1A 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 D4 00 00 00 F4 03 04 00 70 B0 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 98 7B 03 00 35 04 06 00 A0 88 9B D2 AA A5 23 4C EC D8 5C 19 43 BF [14:02:21]CheckFolder [14:02:21]dirname=/storage/ofd_packets [14:02:21]CheckFolder done [14:02:21]ProducePacketName [14:02:21]name=ofd_packets/00228248 [14:02:21]NVStorageSaveData ofd_packets/00228248 [14:02:21]File name is /storage/ofd_packets/00228248 [14:02:21]Write 301 bytes [14:02:21]NVStorageSaveData done [14:02:21]OFDSenderStorePacket done [14:02:21]KKMCreateOFDPacket done [14:02:21]NVStorageSaveData kkm_last_timestamp [14:02:21]File name is /storage/kkm_last_timestamp [14:02:21]Write 4 bytes [14:02:21]NVStorageSaveData done [14:02:21]ExternCall_PrintAddStr [14:02:21]wPrintStart [14:02:21]Write to MH i2c: 01 00 00 F4 3F 33 [14:02:21]Write i2c OK [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: 01 [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: 01 07 00 [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: 01 07 00 F4 3F 00 00 00 00 00 FF 0F 48 [14:02:21]RasterBufferAndPrint [14:02:21]line Счет N : (1)1964708 [14:02:21]line ИНН: 02508201610067 [14:02:21]line Контрольно-Кассовый Чек [14:02:21]line ПРОДАЖА [14:02:21]line ТРК (МРК, ГНК) : 53 [14:02:21]line Товар: 2710124130 [14:02:21]line Аи-92-К-5 [14:02:21]line 5.980 * 66.90 [14:02:21]line = 400.06 [14:02:21]line НДС 12% НСП 1% [14:02:21]line > о реализуемом товаре [14:02:21]line ОКРУГЛЕНИЕ: -0.06 [14:02:21]line ИТОГО: 400.00 [14:02:21]line Внесено: 400.00 [14:02:21]line СДАЧА: 0.00 [14:02:21]line НСП 1% : 3.54 [14:02:21]line НДС 12% : 42.48 [14:02:21]line Наличными: 400.00 [14:02:21]line Безнал.: 0.00 [14:02:21]line Место: АЗС № 133 "Партнер Нефть" [14:02:21]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [14:02:21]line СНО: Общий режим [14:02:21]line Чек 212 22.10.2024 14:02 [14:02:21]line Смена: 535 ФФД: 1.0 [14:02:21]line ЗНМ: 0300000091 [14:02:21]line РНМ: 0000000000091685 [14:02:21]line Версия ККМ: 001 [14:02:21]line ФМ: 0000000000871839 [14:02:21]line ФД: 228248 [14:02:21]line ФПД: 176508590271141 [14:02:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T140224&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228248&fm=176508590271141&tin=02508201610067®Number=0000000000091685&sum=40000 [14:02:21]OFD Sender: Processing packet 228248 [packets to send 38, broken 37] [14:02:21]ProducePacketName [14:02:21]name=ofd_packets/00228248 [14:02:21]OFD Sender: To server: pG, [14:02:21]CommunicateWithHost lk.salyk.kg:30040 [14:02:21]ConnectInit lk.salyk.kg [14:02:21]written 0, free lines is 4095 [14:02:22]Connected sock=10 [14:02:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 51 9B 07 01 02 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 22 1A 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 D4 00 00 00 F4 03 04 00 70 B0 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 98 7B 03 00 35 04 06 00 A0 88 9B D2 AA A5 23 4C EC D8 5C 19 43 BF [14:02:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 62 04 47 00 78 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 98 7B 03 00 F4 03 04 00 68 5B 17 67 B6 04 01 00 00 D7 68 2B B6 5F 5D 5E CF [14:02:22]CommunicateWithHost err = 0 [14:02:22]CheckOFDResponse [14:02:22]1017 (14) - 77093643461234 [14:02:22]1041 (16) - 0000000000871839 [14:02:22]1040 (4) - 228248 [14:02:22]1012 (4) - 22.10.2024 07:59 [14:02:22]1206 (1) - 0 [14:02:22]OFD Sender: Remove packet 228248 [14:02:22]ProducePacketName [14:02:22]name=ofd_packets/00228248 [14:02:22]NVStorageDeleteData [14:02:22]Write to MH i2c: 01 00 00 1E 40 5E [14:02:22]Write i2c OK [14:02:22]MH_I2C_Read... [14:02:22]Read from MH i2c: 01 [14:02:22]MH_I2C_Read... [14:02:22]Read from MH i2c: 01 07 00 [14:02:22]MH_I2C_Read... [14:02:22]Read from MH i2c: 01 07 00 1E 40 00 00 00 00 00 C2 0C 33 [14:02:22]RasterBufferAndPrint [14:02:22]line [14:02:22]line [14:02:22]line [14:02:22]line [14:02:22]line [14:02:22]written 0, free lines is 3271 [14:02:22]MH_Cut [14:02:22]Write to MH i2c: D1 01 00 25 40 01 37 [14:02:22]Write i2c OK [14:02:22]MH_I2C_Read... [14:02:22]Read from MH i2c: D1 [14:02:22]MH_I2C_Read... [14:02:22]Read from MH i2c: D1 01 00 [14:02:22]MH_I2C_Read... [14:02:22]Read from MH i2c: D1 01 00 25 40 00 36 [14:02:22]Write to MH i2c: 01 00 00 26 40 66 [14:02:22]Write i2c OK [14:02:22]MH_I2C_Read... [14:02:22]OFD Sender: No OFD packet to send [14:02:23]*** Cut start [14:02:23]*** Partial cut [14:02:23]*** CUTSNS_PIN = 1 [14:02:23]*** CUTSNS_PIN = 0 [14:02:23]*** Brake cut motor [14:02:23]Read from MH i2c: 01 [14:02:23]MH_I2C_Read... [14:02:23]*** Stop cut motor [14:02:23]*** Cut end [14:02:23]Read from MH i2c: 01 07 00 [14:02:23]MH_I2C_Read... [14:02:23]Read from MH i2c: 01 07 00 26 40 00 00 00 00 00 FF 0F 7B [14:02:23]process_action close_receipt done [14:02:23]requested_data is exist [14:02:23]produce_requested_data [14:02:23]requested_item fm.sn is exist - process it [14:02:23]wFMCommunicate request_size=4 [14:02:23]MH_SAM_APDU [14:02:23]CAPDU: 80 11 00 00 [14:02:23]Write to MH i2c: E2 08 00 27 40 80 11 00 00 00 00 00 00 E1 [14:02:23]Write i2c OK [14:02:23]MH_I2C_Read... [14:02:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:23]Read from MH i2c: E2 [14:02:23]MH_I2C_Read... [14:02:23]Read from MH i2c: E2 17 00 [14:02:23]MH_I2C_Read... [14:02:23]Read from MH i2c: E2 17 00 27 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 38 [14:02:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:02:23]wFMCommunicate OK [14:02:23]requested_item fd.num is exist - process it [14:02:23]SAM_PROTO_GetFieldsCounters [14:02:23]wFMCommunicate request_size=4 [14:02:23]MH_SAM_APDU [14:02:23]CAPDU: 80 13 00 00 [14:02:23]Write to MH i2c: E2 08 00 28 40 80 13 00 00 00 00 00 00 E4 [14:02:23]Write i2c OK [14:02:23]MH_I2C_Read... [14:02:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:24]Read from MH i2c: E2 [14:02:24]MH_I2C_Read... [14:02:24]Read from MH i2c: E2 62 00 [14:02:24]MH_I2C_Read... [14:02:24]Read from MH i2c: E2 62 00 28 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 98 7B 03 00 0E 04 04 00 17 02 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 B8 [14:02:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 98 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:02:24]wFMCommunicate OK [14:02:24]SAM_PROTO_GetFieldsCounters done [14:02:24]requested_item shift.num is exist - process it [14:02:24]requested_item shift.opened is exist - process it [14:02:24]req_shift_opened [14:02:24]FM_GetShiftState [14:02:24]SAM_PROTO_GetShiftState [14:02:24]wFMCommunicate request_size=4 [14:02:24]MH_SAM_APDU [14:02:24]CAPDU: 80 13 01 00 [14:02:24]Write to MH i2c: E2 08 00 29 40 80 13 01 00 00 00 00 00 E6 [14:02:24]Write i2c OK [14:02:24]MH_I2C_Read... [14:02:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:24]Read from MH i2c: E2 [14:02:24]MH_I2C_Read... [14:02:24]Read from MH i2c: E2 0E 00 [14:02:24]MH_I2C_Read... [14:02:24]Read from MH i2c: E2 0E 00 29 40 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 AD [14:02:24]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:02:24]wFMCommunicate OK [14:02:24]SAM_PROTO_GetShiftState done [14:02:24]FM_GetShiftState done [14:02:24]req_shift_opened done [14:02:24]requested_item shift.open_date is exist - process it [14:02:24]req_shift_open_date [14:02:24]req_shift_open_date done [14:02:24]produce_requested_data done [14:02:24]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228248,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [14:02:24]process_action_free close_receipt [14:02:24]json_value_free [14:02:24]json_value_free done [14:02:24]process_json_proto returns [14:02:24]Send response to host [14:02:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228248,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [14:02:24]free response buf [14:02:24]execute_script done [14:02:24]execute_script returns [14:02:24]free content buf [14:02:24]Sock 7.Close socket [14:02:24]Sock 7.Thread stoped [14:02:26]accept exits with 9 [14:02:26]New connection [14:02:26]New thread 3066994020 created [14:02:26]Thread 3067137380 joined [14:02:26]Waiting for new connection... [14:02:26] Sock 9.Parse request [14:02:26]Sock 9.Check first char [14:02:26]Sock 9.First char is OK [14:02:26]request: POST /json_proto HTTP/1.0 [14:02:26]Method: POST [14:02:26]URL: /json_proto [14:02:26]Method is POST - this is cgi request [14:02:26]url: /json_proto [14:02:26]query_string will be loaded in cgi processing [14:02:26]execute_cgi json_proto POST (null) [14:02:26]execute_cgi path=json_proto method=POST [14:02:26]POST find Content-Length [14:02:26]Host: 172.17.44.195:8080 [14:02:26]Content-Length: 683 [14:02:26]Content-Type: application/json [14:02:26] [14:02:26]POST finish read [14:02:26]Found Content-Length = 683 [14:02:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964709", "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" : 66.90, "quantity" : 14.950, "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" ] } } [14:02:26]execute_script... [14:02:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964709", "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" : 66.90, "quantity" : 14.950, "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" ] } } [14:02:26]POST & json_proto [14:02:26]process_json_proto [14:02:26]json parsed OK: [14:02:26]protocol is kg_v1.0 [14:02:26]action value=close_receipt [14:02:26]process_action close_receipt [14:02:26]cmd_close_receipt [14:02:26]MH_GetDate [14:02:26]Write to MH i2c: F0 00 00 2A 40 59 [14:02:26]Write i2c OK [14:02:26]MH_I2C_Read... [14:02:26]Read from MH i2c: F0 [14:02:26]MH_I2C_Read... [14:02:26]Read from MH i2c: F0 09 00 [14:02:26]MH_I2C_Read... [14:02:26]Read from MH i2c: F0 09 00 2A 40 00 76 B0 17 67 82 C9 CF 66 86 [14:02:26]GetLastDocTimeStamp 1729605744 [14:02:26]current date 1729605750 [14:02:26]FM_GetShiftState [14:02:26]SAM_PROTO_GetShiftState [14:02:26]wFMCommunicate request_size=4 [14:02:26]MH_SAM_APDU [14:02:26]CAPDU: 80 13 01 00 [14:02:26]Write to MH i2c: E2 08 00 2B 40 80 13 01 00 00 00 00 00 E8 [14:02:26]Write i2c OK [14:02:26]MH_I2C_Read... [14:02:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:26]Read from MH i2c: E2 [14:02:26]MH_I2C_Read... [14:02:26]Read from MH i2c: E2 0E 00 [14:02:26]MH_I2C_Read... [14:02:26]Read from MH i2c: E2 0E 00 2B 40 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 AF [14:02:26]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:02:26]wFMCommunicate OK [14:02:26]SAM_PROTO_GetShiftState done [14:02:26]FM_GetShiftState done [14:02:26]opened in 1729555538 [14:02:26]opened+sec_in_day 1729641938 [14:02:26]quantity*price = 100015 [14:02:26]sum+1 = 100017 [14:02:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 213 22.10.2024 14:02 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228249 ФПД: 46393305281114 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T140230&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228249&fm=46393305281114&tin=02508201610067®Number=0000000000091685&sum=100000 [14:02:27]StoreToDocumentArchive [14:02:27]shift 535 fd 228249 [14:02:27]save to /storage/0535/doc_00228249 [14:02:27]save last doc name /storage/0535/doc_00228249 to /storage/kkm_last_doc_name [14:02:27]save OK [14:02:27]Clear old archive folders... [14:02:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:02:27]tlvbuf is 00A64C00 [14:02:27]SAM_PROTO_ClearQueue [14:02:27]wFMCommunicate request_size=4 [14:02:27]MH_SAM_APDU [14:02:27]CAPDU: 80 09 00 00 [14:02:27]Write to MH i2c: E2 08 00 38 40 80 09 00 00 00 00 00 00 EA [14:02:27]Write i2c OK [14:02:27]MH_I2C_Read... [14:02:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:27]Read from MH i2c: E2 [14:02:27]MH_I2C_Read... [14:02:27]Read from MH i2c: E2 03 00 [14:02:27]MH_I2C_Read... [14:02:27]Read from MH i2c: E2 03 00 38 40 00 90 00 EC [14:02:27]RAPDU: 90 00 [14:02:27]wFMCommunicate OK [14:02:27]SAM_PROTO_ClearQueue done [14:02:27]KKMCreateOFDPacket [14:02:27]OFDProtocolAddRootSTLVToBuf [14:02:27]FM_MakeSignedData [14:02:27]FM_MakeSignedData [14:02:27]SAM_PROTO_SignData [14:02:27]wFMCommunicate request_size=4 [14:02:27]MH_SAM_APDU [14:02:27]CAPDU: 80 0D 01 02 [14:02:27]Write to MH i2c: E2 08 00 39 40 80 0D 01 02 00 00 00 00 F2 [14:02:27]Write i2c OK [14:02:27]MH_I2C_Read... [14:02:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:27]Read from MH i2c: E2 [14:02:27]MH_I2C_Read... [14:02:27]Read from MH i2c: E2 03 00 [14:02:27]MH_I2C_Read... [14:02:27]Read from MH i2c: E2 03 00 39 40 00 90 00 ED [14:02:27]RAPDU: 90 00 [14:02:27]wFMCommunicate OK [14:02:27]wFMCommunicate request_size=255 [14:02:27]MH_SAM_APDU [14:02: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 D5 00 00 00 F4 03 04 00 76 B0 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 99 7B 03 00 35 04 06 00 2A [14:02:27]Write to MH i2c: E2 02 01 3A 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 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 D5 00 00 00 F4 03 04 00 76 B0 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 99 7B 03 00 35 04 06 00 2A 00 00 56 [14:02:27]Write i2c OK [14:02:27]MH_I2C_Read... [14:02:27]OFD Sender: No OFD packet to send [14:02:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:27]Read from MH i2c: E2 [14:02:27]MH_I2C_Read... [14:02:27]Read from MH i2c: E2 03 00 [14:02:27]MH_I2C_Read... [14:02:27]Read from MH i2c: E2 03 00 3A 40 00 90 00 EE [14:02:27]RAPDU: 90 00 [14:02:27]wFMCommunicate OK [14:02:27]wFMCommunicate request_size=10 [14:02:27]MH_SAM_APDU [14:02:27]CAPDU: 80 0D 02 02 05 31 C8 7B 32 5A [14:02:27]Write to MH i2c: E2 0D 00 3B 40 80 0D 02 02 05 00 31 C8 7B 32 5A 00 00 FF [14:02:27]Write i2c OK [14:02:27]MH_I2C_Read... [14:02:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:28]Read from MH i2c: E2 [14:02:28]MH_I2C_Read... [14:02:28]Read from MH i2c: E2 03 00 [14:02:28]MH_I2C_Read... [14:02:28]Read from MH i2c: E2 03 00 3B 40 00 90 00 EF [14:02:28]RAPDU: 90 00 [14:02:28]wFMCommunicate OK [14:02:28]wFMCommunicate request_size=4 [14:02:28]MH_SAM_APDU [14:02:28]CAPDU: 80 0D 03 02 [14:02:28]Write to MH i2c: E2 08 00 3C 40 80 0D 03 02 00 00 00 00 F7 [14:02:28]Write i2c OK [14:02:28]MH_I2C_Read... [14:02:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:28]Read from MH i2c: E2 [14:02:28]MH_I2C_Read... [14:02:28]Read from MH i2c: E2 0B 00 [14:02:28]MH_I2C_Read... [14:02:28]Read from MH i2c: E2 0B 00 3C 40 00 D7 88 17 48 42 29 17 D6 90 00 0E [14:02:28]RAPDU: D7 88 17 48 42 29 17 D6 90 00 [14:02:28]wFMCommunicate OK [14:02:28]SAM_PROTO_SignData done [14:02:28]FM_MakeSignedData done [14:02:28]CreateOFDProtocolMessage [14:02:28]wFMCommunicate request_size=4 [14:02:28]MH_SAM_APDU [14:02:28]CAPDU: 80 11 00 00 [14:02:28]Write to MH i2c: E2 08 00 3D 40 80 11 00 00 00 00 00 00 F7 [14:02:28]Write i2c OK [14:02:28]MH_I2C_Read... [14:02:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:28]Read from MH i2c: E2 [14:02:28]MH_I2C_Read... [14:02:28]Read from MH i2c: E2 17 00 [14:02:28]MH_I2C_Read... [14:02:28]Read from MH i2c: E2 17 00 3D 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4E [14:02:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:02:28]wFMCommunicate OK [14:02:28]CreateOFDProtocolMessage done [14:02:28]OFDSenderStorePacket 228249 [14:02:28]StoreOFDPacket docnum=228249 [14:02:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 2B A6 07 01 B9 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 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 D5 00 00 00 F4 03 04 00 76 B0 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 99 7B 03 00 35 04 06 00 2A 31 C8 7B 32 5A D7 88 17 48 42 29 17 D6 [14:02:28]CheckFolder [14:02:28]dirname=/storage/ofd_packets [14:02:28]CheckFolder done [14:02:28]ProducePacketName [14:02:28]name=ofd_packets/00228249 [14:02:28]NVStorageSaveData ofd_packets/00228249 [14:02:28]File name is /storage/ofd_packets/00228249 [14:02:28]Write 301 bytes [14:02:28]NVStorageSaveData done [14:02:28]OFDSenderStorePacket done [14:02:28]KKMCreateOFDPacket done [14:02:28]NVStorageSaveData kkm_last_timestamp [14:02:28]File name is /storage/kkm_last_timestamp [14:02:28]Write 4 bytes [14:02:28]NVStorageSaveData done [14:02:28]ExternCall_PrintAddStr [14:02:28]wPrintStart [14:02:28]Write to MH i2c: 01 00 00 3E 40 7E [14:02:28]Write i2c OK [14:02:28]MH_I2C_Read... [14:02:28]Read from MH i2c: 01 [14:02:28]MH_I2C_Read... [14:02:28]Read from MH i2c: 01 07 00 [14:02:28]MH_I2C_Read... [14:02:28]Read from MH i2c: 01 07 00 3E 40 00 00 00 00 00 FF 0F 93 [14:02:28]RasterBufferAndPrint [14:02:28]line Счет N : (1)1964709 [14:02:28]line ИНН: 02508201610067 [14:02:28]line Контрольно-Кассовый Чек [14:02:28]line ПРОДАЖА [14:02:28]line ТРК (МРК, ГНК) : 63 [14:02:28]line Товар: 2710124130 [14:02:28]line Аи-92-К-5 [14:02:28]line 14.950 * 66.90 [14:02:28]line = 1000.16 [14:02:28]line НДС 12% НСП 1% [14:02:28]line > о реализуемом товаре [14:02:28]line ОКРУГЛЕНИЕ: -0.16 [14:02:28]line ИТОГО: 1000.00 [14:02:28]line Внесено: 1000.00 [14:02:28]line СДАЧА: 0.00 [14:02:28]line НСП 1% : 8.85 [14:02:28]line НДС 12% : 106.21 [14:02:28]line Наличными: 1000.00 [14:02:28]line Безнал.: 0.00 [14:02:28]line Место: АЗС № 133 "Партнер Нефть" [14:02:28]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [14:02:28]line СНО: Общий режим [14:02:28]line Чек 213 22.10.2024 14:02 [14:02:28]line Смена: 535 ФФД: 1.0 [14:02:28]line ЗНМ: 0300000091 [14:02:28]line РНМ: 0000000000091685 [14:02:28]line Версия ККМ: 001 [14:02:28]line ФМ: 0000000000871839 [14:02:28]line ФД: 228249 [14:02:28]line ФПД: 46393305281114 [14:02:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T140230&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228249&fm=46393305281114&tin=02508201610067®Number=0000000000091685&sum=100000 [14:02:28]written 0, free lines is 4095 [14:02:28]OFD Sender: Processing packet 228249 [packets to send 38, broken 37] [14:02:28]ProducePacketName [14:02:28]name=ofd_packets/00228249 [14:02:28]OFD Sender: To server: pG, [14:02:28]CommunicateWithHost lk.salyk.kg:30040 [14:02:28]ConnectInit lk.salyk.kg [14:02:28]Connected sock=10 [14:02:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 2B A6 07 01 B9 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 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 D5 00 00 00 F4 03 04 00 76 B0 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 99 7B 03 00 35 04 06 00 2A 31 C8 7B 32 5A D7 88 17 48 42 29 17 D6 [14:02:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 FF A5 47 00 4C 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 99 7B 03 00 F4 03 04 00 6E 5B 17 67 B6 04 01 00 00 1E DE 29 34 C7 47 60 32 [14:02:28]CommunicateWithHost err = 0 [14:02:28]CheckOFDResponse [14:02:28]1017 (14) - 77093643461234 [14:02:28]1041 (16) - 0000000000871839 [14:02:28]1040 (4) - 228249 [14:02:28]1012 (4) - 22.10.2024 07:59 [14:02:28]1206 (1) - 0 [14:02:28]OFD Sender: Remove packet 228249 [14:02:28]ProducePacketName [14:02:28]name=ofd_packets/00228249 [14:02:28]NVStorageDeleteData [14:02:28]Write to MH i2c: 01 00 00 68 40 A8 [14:02:28]Write i2c OK [14:02:28]MH_I2C_Read... [14:02:28]Read from MH i2c: 01 [14:02:28]MH_I2C_Read... [14:02:28]Read from MH i2c: 01 07 00 [14:02:28]MH_I2C_Read... [14:02:28]Read from MH i2c: 01 07 00 68 40 00 00 00 00 00 C8 0C 83 [14:02:28]RasterBufferAndPrint [14:02:28]line [14:02:28]line [14:02:28]line [14:02:28]line [14:02:28]line [14:02:28]written 0, free lines is 3281 [14:02:28]MH_Cut [14:02:28]Write to MH i2c: D1 01 00 6F 40 01 81 [14:02:28]Write i2c OK [14:02:28]MH_I2C_Read... [14:02:28]Read from MH i2c: D1 [14:02:28]MH_I2C_Read... [14:02:28]Read from MH i2c: D1 01 00 [14:02:28]MH_I2C_Read... [14:02:28]Read from MH i2c: D1 01 00 6F 40 00 80 [14:02:28]Write to MH i2c: 01 00 00 70 40 B0 [14:02:28]Write i2c OK [14:02:28]MH_I2C_Read... [14:02:28]OFD Sender: No OFD packet to send [14:02:29]*** Cut start [14:02:29]*** Partial cut [14:02:29]*** CUTSNS_PIN = 1 [14:02:29]*** CUTSNS_PIN = 0 [14:02:29]*** Brake cut motor [14:02:30]Read from MH i2c: 01 [14:02:30]MH_I2C_Read... [14:02:30]*** Stop cut motor [14:02:30]*** Cut end [14:02:30]Read from MH i2c: 01 07 00 [14:02:30]MH_I2C_Read... [14:02:30]Read from MH i2c: 01 07 00 70 40 00 00 00 00 00 FF 0F C5 [14:02:30]process_action close_receipt done [14:02:30]requested_data is exist [14:02:30]produce_requested_data [14:02:30]requested_item fm.sn is exist - process it [14:02:30]wFMCommunicate request_size=4 [14:02:30]MH_SAM_APDU [14:02:30]CAPDU: 80 11 00 00 [14:02:30]Write to MH i2c: E2 08 00 71 40 80 11 00 00 00 00 00 00 2B [14:02:30]Write i2c OK [14:02:30]MH_I2C_Read... [14:02:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:30]Read from MH i2c: E2 [14:02:30]MH_I2C_Read... [14:02:30]Read from MH i2c: E2 17 00 [14:02:30]MH_I2C_Read... [14:02:30]Read from MH i2c: E2 17 00 71 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 82 [14:02:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:02:30]wFMCommunicate OK [14:02:30]requested_item fd.num is exist - process it [14:02:30]SAM_PROTO_GetFieldsCounters [14:02:30]wFMCommunicate request_size=4 [14:02:30]MH_SAM_APDU [14:02:30]CAPDU: 80 13 00 00 [14:02:30]Write to MH i2c: E2 08 00 72 40 80 13 00 00 00 00 00 00 2E [14:02:30]Write i2c OK [14:02:30]MH_I2C_Read... [14:02:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:30]Read from MH i2c: E2 [14:02:30]MH_I2C_Read... [14:02:30]Read from MH i2c: E2 62 00 [14:02:30]MH_I2C_Read... [14:02:30]Read from MH i2c: E2 62 00 72 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 99 7B 03 00 0E 04 04 00 17 02 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 06 [14:02:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 99 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:02:30]wFMCommunicate OK [14:02:30]SAM_PROTO_GetFieldsCounters done [14:02:30]requested_item shift.num is exist - process it [14:02:30]requested_item shift.opened is exist - process it [14:02:30]req_shift_opened [14:02:30]FM_GetShiftState [14:02:30]SAM_PROTO_GetShiftState [14:02:30]wFMCommunicate request_size=4 [14:02:30]MH_SAM_APDU [14:02:30]CAPDU: 80 13 01 00 [14:02:30]Write to MH i2c: E2 08 00 73 40 80 13 01 00 00 00 00 00 30 [14:02:30]Write i2c OK [14:02:30]MH_I2C_Read... [14:02:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:30]Read from MH i2c: E2 [14:02:30]MH_I2C_Read... [14:02:30]Read from MH i2c: E2 0E 00 [14:02:30]MH_I2C_Read... [14:02:30]Read from MH i2c: E2 0E 00 73 40 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 F7 [14:02:30]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:02:30]wFMCommunicate OK [14:02:30]SAM_PROTO_GetShiftState done [14:02:30]FM_GetShiftState done [14:02:30]req_shift_opened done [14:02:30]requested_item shift.open_date is exist - process it [14:02:30]req_shift_open_date [14:02:30]req_shift_open_date done [14:02:30]produce_requested_data done [14:02:30]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228249,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [14:02:30]process_action_free close_receipt [14:02:30]json_value_free [14:02:30]json_value_free done [14:02:30]process_json_proto returns [14:02:30]Send response to host [14:02:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228249,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [14:02:30]free response buf [14:02:30]execute_script done [14:02:30]execute_script returns [14:02:30]free content buf [14:02:30]Sock 9.Close socket [14:02:30]Sock 9.Thread stoped [14:02:33]OFD Sender: No OFD packet to send [14:02:39]OFD Sender: No OFD packet to send [14:02:44]OFD Sender: No OFD packet to send [14:02:49]OFD Sender: No OFD packet to send [14:02:54]OFD Sender: No OFD packet to send [14:02:59]OFD Sender: No OFD packet to send [14:03:04]OFD Sender: No OFD packet to send [14:03:09]OFD Sender: No OFD packet to send [14:03:14]OFD Sender: No OFD packet to send [14:03:19]OFD Sender: No OFD packet to send [14:03:24]OFD Sender: No OFD packet to send [14:03:29]OFD Sender: No OFD packet to send [14:03:34]OFD Sender: No OFD packet to send [14:03:39]OFD Sender: No OFD packet to send [14:03:44]OFD Sender: No OFD packet to send [14:03:49]OFD Sender: No OFD packet to send [14:03:54]OFD Sender: No OFD packet to send [14:03:59]OFD Sender: No OFD packet to send [14:04:04]OFD Sender: No OFD packet to send [14:04:09]OFD Sender: No OFD packet to send [14:04:14]OFD Sender: No OFD packet to send [14:04:19]OFD Sender: No OFD packet to send [14:04:24]OFD Sender: No OFD packet to send [14:04:29]OFD Sender: No OFD packet to send [14:04:34]OFD Sender: No OFD packet to send [14:04:39]OFD Sender: No OFD packet to send [14:04:44]OFD Sender: No OFD packet to send [14:04:49]OFD Sender: No OFD packet to send [14:04:54]OFD Sender: No OFD packet to send [14:04:59]OFD Sender: No OFD packet to send [14:05:04]OFD Sender: No OFD packet to send [14:05:09]OFD Sender: No OFD packet to send [14:05:14]OFD Sender: No OFD packet to send [14:05:19]OFD Sender: No OFD packet to send [14:05:24]OFD Sender: No OFD packet to send [14:05:29]OFD Sender: No OFD packet to send [14:05:34]OFD Sender: No OFD packet to send [14:05:39]OFD Sender: No OFD packet to send [14:05:44]OFD Sender: No OFD packet to send [14:05:49]OFD Sender: No OFD packet to send [14:05:54]OFD Sender: No OFD packet to send [14:05:59]OFD Sender: No OFD packet to send [14:06:04]OFD Sender: No OFD packet to send [14:06:09]OFD Sender: No OFD packet to send [14:06:14]OFD Sender: No OFD packet to send [14:06:19]OFD Sender: No OFD packet to send [14:06:24]OFD Sender: No OFD packet to send [14:06:29]OFD Sender: No OFD packet to send [14:06:34]OFD Sender: No OFD packet to send [14:06:39]OFD Sender: No OFD packet to send [14:06:44]OFD Sender: No OFD packet to send [14:06:49]OFD Sender: No OFD packet to send [14:06:54]OFD Sender: No OFD packet to send [14:06:59]OFD Sender: No OFD packet to send [14:07:04]OFD Sender: No OFD packet to send [14:07:09]OFD Sender: No OFD packet to send [14:07:14]OFD Sender: No OFD packet to send [14:07:19]OFD Sender: No OFD packet to send [14:07:24]OFD Sender: No OFD packet to send [14:07:29]OFD Sender: No OFD packet to send [14:07:34]OFD Sender: No OFD packet to send [14:07:39]OFD Sender: No OFD packet to send [14:07:44]OFD Sender: No OFD packet to send [14:07:49]OFD Sender: No OFD packet to send [14:07:54]OFD Sender: No OFD packet to send [14:07:59]OFD Sender: No OFD packet to send [14:08:04]OFD Sender: No OFD packet to send [14:08:09]OFD Sender: No OFD packet to send [14:08:14]OFD Sender: No OFD packet to send [14:08:19]OFD Sender: No OFD packet to send [14:08:24]OFD Sender: No OFD packet to send [14:08:29]OFD Sender: No OFD packet to send [14:08:34]OFD Sender: No OFD packet to send [14:08:39]OFD Sender: No OFD packet to send [14:08:44]OFD Sender: No OFD packet to send [14:08:49]OFD Sender: No OFD packet to send [14:08:54]OFD Sender: No OFD packet to send [14:08:59]OFD Sender: No OFD packet to send [14:09:04]OFD Sender: No OFD packet to send [14:09:09]OFD Sender: No OFD packet to send [14:09:14]OFD Sender: No OFD packet to send [14:09:19]OFD Sender: No OFD packet to send [14:09:24]OFD Sender: No OFD packet to send [14:09:29]OFD Sender: No OFD packet to send [14:09:34]OFD Sender: No OFD packet to send [14:09:39]OFD Sender: No OFD packet to send [14:09:44]OFD Sender: No OFD packet to send [14:09:49]OFD Sender: No OFD packet to send [14:09:54]OFD Sender: No OFD packet to send [14:09:59]OFD Sender: No OFD packet to send [14:10:04]OFD Sender: No OFD packet to send [14:10:09]OFD Sender: No OFD packet to send [14:10:14]OFD Sender: No OFD packet to send [14:10:19]OFD Sender: No OFD packet to send [14:10:24]OFD Sender: No OFD packet to send [14:10:29]OFD Sender: No OFD packet to send [14:10:34]OFD Sender: No OFD packet to send [14:10:39]OFD Sender: No OFD packet to send [14:10:44]OFD Sender: No OFD packet to send [14:10:49]OFD Sender: No OFD packet to send [14:10:54]OFD Sender: No OFD packet to send [14:10:59]OFD Sender: No OFD packet to send [14:11:04]OFD Sender: No OFD packet to send [14:11:09]OFD Sender: No OFD packet to send [14:11:14]OFD Sender: No OFD packet to send [14:11:19]OFD Sender: No OFD packet to send [14:11:24]OFD Sender: No OFD packet to send [14:11:29]OFD Sender: No OFD packet to send [14:11:34]OFD Sender: No OFD packet to send [14:11:39]OFD Sender: No OFD packet to send [14:11:44]OFD Sender: No OFD packet to send [14:11:49]OFD Sender: No OFD packet to send [14:11:54]OFD Sender: No OFD packet to send [14:11:59]OFD Sender: No OFD packet to send [14:12:04]OFD Sender: No OFD packet to send [14:12:09]OFD Sender: No OFD packet to send [14:12:14]OFD Sender: No OFD packet to send [14:12:19]OFD Sender: No OFD packet to send [14:12:24]OFD Sender: No OFD packet to send [14:12:29]OFD Sender: No OFD packet to send [14:12:34]OFD Sender: No OFD packet to send [14:12:39]OFD Sender: No OFD packet to send [14:12:44]OFD Sender: No OFD packet to send [14:12:49]OFD Sender: No OFD packet to send [14:12:54]OFD Sender: No OFD packet to send [14:12:59]OFD Sender: No OFD packet to send [14:13:04]OFD Sender: No OFD packet to send [14:13:09]OFD Sender: No OFD packet to send [14:13:14]OFD Sender: No OFD packet to send [14:13:19]OFD Sender: No OFD packet to send [14:13:24]OFD Sender: No OFD packet to send [14:13:29]OFD Sender: No OFD packet to send [14:13:34]OFD Sender: No OFD packet to send [14:13:39]OFD Sender: No OFD packet to send [14:13:44]OFD Sender: No OFD packet to send [14:13:49]OFD Sender: No OFD packet to send [14:13:54]OFD Sender: No OFD packet to send [14:13:59]OFD Sender: No OFD packet to send [14:14:04]OFD Sender: No OFD packet to send [14:14:09]OFD Sender: No OFD packet to send [14:14:14]OFD Sender: No OFD packet to send [14:14:19]OFD Sender: No OFD packet to send [14:14:24]OFD Sender: No OFD packet to send [14:14:29]OFD Sender: No OFD packet to send [14:14:34]OFD Sender: No OFD packet to send [14:14:39]OFD Sender: No OFD packet to send [14:14:44]OFD Sender: No OFD packet to send [14:14:49]OFD Sender: No OFD packet to send [14:14:54]OFD Sender: No OFD packet to send [14:14:59]OFD Sender: No OFD packet to send [14:15:04]OFD Sender: No OFD packet to send [14:15:09]OFD Sender: No OFD packet to send [14:15:14]OFD Sender: No OFD packet to send [14:15:19]OFD Sender: No OFD packet to send [14:15:24]OFD Sender: No OFD packet to send [14:15:29]OFD Sender: No OFD packet to send [14:15:34]OFD Sender: No OFD packet to send [14:15:39]OFD Sender: No OFD packet to send [14:15:44]OFD Sender: No OFD packet to send [14:15:49]OFD Sender: No OFD packet to send [14:15:54]OFD Sender: No OFD packet to send [14:15:59]OFD Sender: No OFD packet to send [14:16:04]OFD Sender: No OFD packet to send [14:16:09]OFD Sender: No OFD packet to send [14:16:14]OFD Sender: No OFD packet to send [14:16:19]OFD Sender: No OFD packet to send [14:16:24]OFD Sender: No OFD packet to send [14:16:29]OFD Sender: No OFD packet to send [14:16:34]OFD Sender: No OFD packet to send [14:16:39]OFD Sender: No OFD packet to send [14:16:44]OFD Sender: No OFD packet to send [14:16:49]OFD Sender: No OFD packet to send [14:16:54]OFD Sender: No OFD packet to send [14:16:59]OFD Sender: No OFD packet to send [14:17:04]OFD Sender: No OFD packet to send [14:17:09]OFD Sender: No OFD packet to send [14:17:14]OFD Sender: No OFD packet to send [14:17:19]OFD Sender: No OFD packet to send [14:17:24]OFD Sender: No OFD packet to send [14:17:29]OFD Sender: No OFD packet to send [14:17:34]OFD Sender: No OFD packet to send [14:17:39]OFD Sender: No OFD packet to send [14:17:44]OFD Sender: No OFD packet to send [14:17:49]OFD Sender: No OFD packet to send [14:17:54]OFD Sender: No OFD packet to send [14:17:59]OFD Sender: No OFD packet to send [14:18:04]OFD Sender: No OFD packet to send [14:18:09]OFD Sender: No OFD packet to send [14:18:14]OFD Sender: No OFD packet to send [14:18:19]OFD Sender: No OFD packet to send [14:18:24]OFD Sender: No OFD packet to send [14:18:29]OFD Sender: No OFD packet to send [14:18:34]OFD Sender: No OFD packet to send [14:18:39]OFD Sender: No OFD packet to send [14:18:44]OFD Sender: No OFD packet to send [14:18:49]OFD Sender: No OFD packet to send [14:18:54]OFD Sender: No OFD packet to send [14:18:59]OFD Sender: No OFD packet to send [14:19:04]OFD Sender: No OFD packet to send [14:19:09]OFD Sender: No OFD packet to send [14:19:14]OFD Sender: No OFD packet to send [14:19:19]OFD Sender: No OFD packet to send [14:19:24]OFD Sender: No OFD packet to send [14:19:29]OFD Sender: No OFD packet to send [14:19:34]OFD Sender: No OFD packet to send [14:19:39]OFD Sender: No OFD packet to send [14:19:44]OFD Sender: No OFD packet to send [14:19:49]OFD Sender: No OFD packet to send [14:19:54]OFD Sender: No OFD packet to send [14:19:59]OFD Sender: No OFD packet to send [14:20:04]OFD Sender: No OFD packet to send [14:20:09]OFD Sender: No OFD packet to send [14:20:14]OFD Sender: No OFD packet to send [14:20:19]OFD Sender: No OFD packet to send [14:20:24]OFD Sender: No OFD packet to send [14:20:29]OFD Sender: No OFD packet to send [14:20:34]OFD Sender: No OFD packet to send [14:20:39]OFD Sender: No OFD packet to send [14:20:44]OFD Sender: No OFD packet to send [14:20:49]OFD Sender: No OFD packet to send [14:20:54]OFD Sender: No OFD packet to send [14:20:59]OFD Sender: No OFD packet to send [14:21:04]OFD Sender: No OFD packet to send [14:21:09]OFD Sender: No OFD packet to send [14:21:14]OFD Sender: No OFD packet to send [14:21:19]OFD Sender: No OFD packet to send [14:21:24]OFD Sender: No OFD packet to send [14:21:29]OFD Sender: No OFD packet to send [14:21:34]OFD Sender: No OFD packet to send [14:21:40]OFD Sender: No OFD packet to send [14:21:45]OFD Sender: No OFD packet to send [14:21:50]OFD Sender: No OFD packet to send [14:21:55]OFD Sender: No OFD packet to send [14:22:00]OFD Sender: No OFD packet to send [14:22:05]OFD Sender: No OFD packet to send [14:22:10]OFD Sender: No OFD packet to send [14:22:15]OFD Sender: No OFD packet to send [14:22:20]OFD Sender: No OFD packet to send [14:22:25]OFD Sender: No OFD packet to send [14:22:30]OFD Sender: No OFD packet to send [14:22:35]OFD Sender: No OFD packet to send [14:22:40]OFD Sender: No OFD packet to send [14:22:45]OFD Sender: No OFD packet to send [14:22:50]OFD Sender: No OFD packet to send [14:22:55]OFD Sender: No OFD packet to send [14:23:00]OFD Sender: No OFD packet to send [14:23:05]OFD Sender: No OFD packet to send [14:23:10]OFD Sender: No OFD packet to send [14:23:15]OFD Sender: No OFD packet to send [14:23:20]OFD Sender: No OFD packet to send [14:23:25]OFD Sender: No OFD packet to send [14:23:30]OFD Sender: No OFD packet to send [14:23:35]OFD Sender: No OFD packet to send [14:23:40]OFD Sender: No OFD packet to send [14:23:45]OFD Sender: No OFD packet to send [14:23:50]OFD Sender: No OFD packet to send [14:23:55]OFD Sender: No OFD packet to send [14:24:00]OFD Sender: No OFD packet to send [14:24:05]OFD Sender: No OFD packet to send [14:24: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:36]accept exits with 7 [14:24:36]New connection [14:24:36]New thread 3067137380 created [14:24:36]Thread 3066994020 joined [14:24:36]Waiting for new connection... [14:24:36] Sock 7.Parse request [14:24:36]Sock 7.Check first char [14:24:36]Sock 7.First char is OK [14:24:36]request: POST /json_proto HTTP/1.0 [14:24:36]Method: POST [14:24:36]URL: /json_proto [14:24:36]Method is POST - this is cgi request [14:24:36]url: /json_proto [14:24:36]query_string will be loaded in cgi processing [14:24:36]execute_cgi json_proto POST (null) [14:24:36]execute_cgi path=json_proto method=POST [14:24:36]POST find Content-Length [14:24:36]Host: 172.17.44.195:8080 [14:24:36]Content-Length: 659 [14:24:36]Content-Type: application/json [14:24:36] [14:24:36]POST finish read [14:24:36]Found Content-Length = 659 [14:24:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 4.390, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:36]execute_script... [14:24:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 4.390, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:36]POST & json_proto [14:24:36]process_json_proto [14:24:36]json parsed OK: [14:24:36]protocol is kg_v1.0 [14:24:36]action value=close_receipt [14:24:36]process_action close_receipt [14:24:36]cmd_close_receipt [14:24:36]MH_GetDate [14:24:36]Write to MH i2c: F0 00 00 74 40 A3 [14:24:36]Write i2c OK [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: F0 [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: F0 09 00 [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: F0 09 00 74 40 00 A9 B5 17 67 82 C9 CF 66 08 [14:24:36]GetLastDocTimeStamp 1729605750 [14:24:36]current date 1729607081 [14:24:36]FM_GetShiftState [14:24:36]SAM_PROTO_GetShiftState [14:24:36]wFMCommunicate request_size=4 [14:24:36]MH_SAM_APDU [14:24:36]CAPDU: 80 13 01 00 [14:24:36]Write to MH i2c: E2 08 00 75 40 80 13 01 00 00 00 00 00 32 [14:24:36]Write i2c OK [14:24:36]MH_I2C_Read... [14:24:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:36]Read from MH i2c: E2 [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: E2 0E 00 [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: E2 0E 00 75 40 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 F9 [14:24:36]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:24:36]wFMCommunicate OK [14:24:36]SAM_PROTO_GetShiftState done [14:24:36]FM_GetShiftState done [14:24:36]opened in 1729555538 [14:24:36]opened+sec_in_day 1729641938 [14:24:36]quantity*price = 30027 [14:24:36]sum+1 = 30029 [14:24:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 214 22.10.2024 14:24 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228250 ФПД: 209857777856962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T142441&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228250&fm=209857777856962&tin=02508201610067®Number=0000000000091685&sum=30000 [14:24:38]StoreToDocumentArchive [14:24:38]shift 535 fd 228250 [14:24:38]save to /storage/0535/doc_00228250 [14:24:38]save last doc name /storage/0535/doc_00228250 to /storage/kkm_last_doc_name [14:24:38]save OK [14:24:38]Clear old archive folders... [14:24:38]ProcessDocumentItem done err = 0, tmpTLVsize=244 [14:24:38]tlvbuf is 00A8B210 [14:24:38]SAM_PROTO_ClearQueue [14:24:38]wFMCommunicate request_size=4 [14:24:38]MH_SAM_APDU [14:24:38]CAPDU: 80 09 00 00 [14:24:38]Write to MH i2c: E2 08 00 82 40 80 09 00 00 00 00 00 00 34 [14:24:38]Write i2c OK [14:24:38]MH_I2C_Read... [14:24:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:38]Read from MH i2c: E2 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 03 00 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 03 00 82 40 00 90 00 36 [14:24:38]RAPDU: 90 00 [14:24:38]wFMCommunicate OK [14:24:38]SAM_PROTO_ClearQueue done [14:24:38]KKMCreateOFDPacket [14:24:38]OFDProtocolAddRootSTLVToBuf [14:24:38]FM_MakeSignedData [14:24:38]FM_MakeSignedData [14:24:38]SAM_PROTO_SignData [14:24:38]wFMCommunicate request_size=4 [14:24:38]MH_SAM_APDU [14:24:38]CAPDU: 80 0D 01 02 [14:24:38]Write to MH i2c: E2 08 00 83 40 80 0D 01 02 00 00 00 00 3C [14:24:38]Write i2c OK [14:24:38]MH_I2C_Read... [14:24:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:38]Read from MH i2c: E2 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 03 00 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 03 00 83 40 00 90 00 37 [14:24:38]RAPDU: 90 00 [14:24:38]wFMCommunicate OK [14:24:38]wFMCommunicate request_size=253 [14:24:38]MH_SAM_APDU [14:24:38]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 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 D6 00 00 00 F4 03 04 00 A9 B5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9A 7B 03 00 35 04 06 00 BE DD 52 4D 71 C2 [14:24:38]Write to MH i2c: E2 00 01 84 40 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 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 D6 00 00 00 F4 03 04 00 A9 B5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9A 7B 03 00 35 04 06 00 BE DD 52 4D 71 C2 00 00 EC [14:24:38]Write i2c OK [14:24:38]MH_I2C_Read... [14:24:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:38]Read from MH i2c: E2 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 03 00 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 03 00 84 40 00 90 00 38 [14:24:38]RAPDU: 90 00 [14:24:38]wFMCommunicate OK [14:24:38]wFMCommunicate request_size=4 [14:24:38]MH_SAM_APDU [14:24:38]CAPDU: 80 0D 03 02 [14:24:38]Write to MH i2c: E2 08 00 85 40 80 0D 03 02 00 00 00 00 40 [14:24:38]Write i2c OK [14:24:38]MH_I2C_Read... [14:24:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:38]Read from MH i2c: E2 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 0B 00 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 0B 00 85 40 00 AE D7 67 5B 7C FB D5 77 90 00 4B [14:24:38]RAPDU: AE D7 67 5B 7C FB D5 77 90 00 [14:24:38]wFMCommunicate OK [14:24:38]SAM_PROTO_SignData done [14:24:38]FM_MakeSignedData done [14:24:38]CreateOFDProtocolMessage [14:24:38]wFMCommunicate request_size=4 [14:24:38]MH_SAM_APDU [14:24:38]CAPDU: 80 11 00 00 [14:24:38]Write to MH i2c: E2 08 00 86 40 80 11 00 00 00 00 00 00 40 [14:24:38]Write i2c OK [14:24:38]MH_I2C_Read... [14:24:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:38]Read from MH i2c: E2 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 17 00 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 17 00 86 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 97 [14:24:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:24:38]wFMCommunicate OK [14:24:38]CreateOFDProtocolMessage done [14:24:38]OFDSenderStorePacket 228250 [14:24:38]StoreOFDPacket docnum=228250 [14:24:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 6A 4C 00 01 C7 EE 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 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 D6 00 00 00 F4 03 04 00 A9 B5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9A 7B 03 00 35 04 06 00 BE DD 52 4D 71 C2 AE D7 67 5B 7C FB D5 77 [14:24:38]CheckFolder [14:24:38]dirname=/storage/ofd_packets [14:24:38]CheckFolder done [14:24:38]ProducePacketName [14:24:38]name=ofd_packets/00228250 [14:24:38]NVStorageSaveData ofd_packets/00228250 [14:24:38]File name is /storage/ofd_packets/00228250 [14:24:38]Write 294 bytes [14:24:38]NVStorageSaveData done [14:24:38]OFDSenderStorePacket done [14:24:38]KKMCreateOFDPacket done [14:24:38]NVStorageSaveData kkm_last_timestamp [14:24:38]File name is /storage/kkm_last_timestamp [14:24:38]Write 4 bytes [14:24:38]NVStorageSaveData done [14:24:38]ExternCall_PrintAddStr [14:24:38]wPrintStart [14:24:38]Write to MH i2c: 01 00 00 87 40 C7 [14:24:38]Write i2c OK [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: 01 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: 01 07 00 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: 01 07 00 87 40 00 00 00 00 00 FF 0F DC [14:24:38]RasterBufferAndPrint [14:24:38]line Счет N : (1)1964726 [14:24:38]line ИНН: 02508201610067 [14:24:38]line Контрольно-Кассовый Чек [14:24:38]line ПРОДАЖА [14:24:38]line ТРК (МРК, ГНК) : 52 [14:24:38]line Товар: 2710124130 [14:24:38]line SU-92 [14:24:38]line 4.390 * 68.40 [14:24:38]line = 300.28 [14:24:38]line НДС 12% НСП 1% [14:24:38]line > о реализуемом товаре [14:24:38]line ОКРУГЛЕНИЕ: -0.28 [14:24:38]line ИТОГО: 300.00 [14:24:38]line Внесено: 300.00 [14:24:38]line СДАЧА: 0.00 [14:24:38]line НСП 1% : 2.66 [14:24:38]line НДС 12% : 31.89 [14:24:38]line Наличными: 300.00 [14:24:38]line Безнал.: 0.00 [14:24:38]line Место: АЗС № 133 "Партнер Нефть" [14:24:38]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [14:24:38]line СНО: Общий режим [14:24:38]line Чек 214 22.10.2024 14:24 [14:24:38]line Смена: 535 ФФД: 1.0 [14:24:38]line ЗНМ: 0300000091 [14:24:38]line РНМ: 0000000000091685 [14:24:38]line Версия ККМ: 001 [14:24:38]line ФМ: 0000000000871839 [14:24:38]line ФД: 228250 [14:24:38]line ФПД: 209857777856962 [14:24:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T142441&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228250&fm=209857777856962&tin=02508201610067®Number=0000000000091685&sum=30000 [14:24:38]OFD Sender: Processing packet 228250 [packets to send 38, broken 37] [14:24:38]ProducePacketName [14:24:38]name=ofd_packets/00228250 [14:24:38]OFD Sender: To server: pG, [14:24:38]CommunicateWithHost lk.salyk.kg:30040 [14:24:38]ConnectInit lk.salyk.kg [14:24:38]written 0, free lines is 4095 [14:24:38]Connected sock=10 [14:24:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 6A 4C 00 01 C7 EE 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 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 D6 00 00 00 F4 03 04 00 A9 B5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9A 7B 03 00 35 04 06 00 BE DD 52 4D 71 C2 AE D7 67 5B 7C FB D5 77 [14:24:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 2D A6 47 00 D0 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9A 7B 03 00 F4 03 04 00 A1 60 17 67 B6 04 01 00 00 D3 8E A4 E6 44 C5 19 C6 [14:24:39]CommunicateWithHost err = 0 [14:24:39]CheckOFDResponse [14:24:39]1017 (14) - 77093643461234 [14:24:39]1041 (16) - 0000000000871839 [14:24:39]1040 (4) - 228250 [14:24:39]1012 (4) - 22.10.2024 08:21 [14:24:39]1206 (1) - 0 [14:24:39]OFD Sender: Remove packet 228250 [14:24:39]ProducePacketName [14:24:39]name=ofd_packets/00228250 [14:24:39]NVStorageDeleteData [14:24:39]Write to MH i2c: 01 00 00 B1 40 F1 [14:24:39]Write i2c OK [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: 01 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: 01 07 00 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: 01 07 00 B1 40 00 00 00 00 00 C3 0C C7 [14:24:39]RasterBufferAndPrint [14:24:39]line [14:24:39]line [14:24:39]line [14:24:39]line [14:24:39]line [14:24:39]written 0, free lines is 3273 [14:24:39]MH_Cut [14:24:39]Write to MH i2c: D1 01 00 B8 40 01 CA [14:24:39]Write i2c OK [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: D1 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: D1 01 00 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: D1 01 00 B8 40 00 C9 [14:24:39]Write to MH i2c: 01 00 00 B9 40 F9 [14:24:39]Write i2c OK [14:24:39]MH_I2C_Read... [14:24:39]OFD Sender: No OFD packet to send [14:24:40]*** Cut start [14:24:40]*** Partial cut [14:24:40]*** CUTSNS_PIN = 1 [14:24:40]*** CUTSNS_PIN = 0 [14:24:40]*** Brake cut motor [14:24:40]Read from MH i2c: 01 [14:24:40]MH_I2C_Read... [14:24:40]*** Stop cut motor [14:24:40]*** Cut end [14:24:40]Read from MH i2c: 01 07 00 [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: 01 07 00 B9 40 00 00 00 00 00 FF 0F 0E [14:24:40]process_action close_receipt done [14:24:40]requested_data is exist [14:24:40]produce_requested_data [14:24:40]requested_item fm.sn is exist - process it [14:24:40]wFMCommunicate request_size=4 [14:24:40]MH_SAM_APDU [14:24:40]CAPDU: 80 11 00 00 [14:24:40]Write to MH i2c: E2 08 00 BA 40 80 11 00 00 00 00 00 00 74 [14:24:40]Write i2c OK [14:24:40]MH_I2C_Read... [14:24:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:40]Read from MH i2c: E2 [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: E2 17 00 [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: E2 17 00 BA 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CB [14:24:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:24:40]wFMCommunicate OK [14:24:40]requested_item fd.num is exist - process it [14:24:40]SAM_PROTO_GetFieldsCounters [14:24:40]wFMCommunicate request_size=4 [14:24:40]MH_SAM_APDU [14:24:40]CAPDU: 80 13 00 00 [14:24:40]Write to MH i2c: E2 08 00 BB 40 80 13 00 00 00 00 00 00 77 [14:24:40]Write i2c OK [14:24:40]MH_I2C_Read... [14:24:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:40]Read from MH i2c: E2 [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: E2 62 00 [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: E2 62 00 BB 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9A 7B 03 00 0E 04 04 00 17 02 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 53 [14:24:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9A 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:24:40]wFMCommunicate OK [14:24:40]SAM_PROTO_GetFieldsCounters done [14:24:40]requested_item shift.num is exist - process it [14:24:40]requested_item shift.opened is exist - process it [14:24:40]req_shift_opened [14:24:40]FM_GetShiftState [14:24:40]SAM_PROTO_GetShiftState [14:24:40]wFMCommunicate request_size=4 [14:24:40]MH_SAM_APDU [14:24:40]CAPDU: 80 13 01 00 [14:24:40]Write to MH i2c: E2 08 00 BC 40 80 13 01 00 00 00 00 00 79 [14:24:40]Write i2c OK [14:24:40]MH_I2C_Read... [14:24:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:41]Read from MH i2c: E2 [14:24:41]MH_I2C_Read... [14:24:41]Read from MH i2c: E2 0E 00 [14:24:41]MH_I2C_Read... [14:24:41]Read from MH i2c: E2 0E 00 BC 40 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 40 [14:24:41]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:24:41]wFMCommunicate OK [14:24:41]SAM_PROTO_GetShiftState done [14:24:41]FM_GetShiftState done [14:24:41]req_shift_opened done [14:24:41]requested_item shift.open_date is exist - process it [14:24:41]req_shift_open_date [14:24:41]req_shift_open_date done [14:24:41]produce_requested_data done [14:24:41]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228250,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [14:24:41]process_action_free close_receipt [14:24:41]json_value_free [14:24:41]json_value_free done [14:24:41]process_json_proto returns [14:24:41]Send response to host [14:24:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228250,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [14:24:41]free response buf [14:24:41]execute_script done [14:24:41]execute_script returns [14:24:41]free content buf [14:24:41]Sock 7.Close socket [14:24:41]Sock 7.Thread stoped [14:24:44]OFD Sender: No OFD packet to send [14:24:49]OFD Sender: No OFD packet to send [14:24:54]OFD Sender: No OFD packet to send [14:24:59]OFD Sender: No OFD packet to send [14:25:04]OFD Sender: No OFD packet to send [14:25:09]OFD Sender: No OFD packet to send [14:25:14]OFD Sender: No OFD packet to send [14:25:19]OFD Sender: No OFD packet to send [14:25:24]OFD Sender: No OFD packet to send [14:25:29]OFD Sender: No OFD packet to send [14:25:34]OFD Sender: No OFD packet to send [14:25:39]OFD Sender: No OFD packet to send [14:25:44]OFD Sender: No OFD packet to send [14:25:49]OFD Sender: No OFD packet to send [14:25:54]OFD Sender: No OFD packet to send [14:25:59]OFD Sender: No OFD packet to send [14:26:04]OFD Sender: No OFD packet to send [14:26:09]OFD Sender: No OFD packet to send [14:26:14]OFD Sender: No OFD packet to send [14:26:19]OFD Sender: No OFD packet to send [14:26:24]OFD Sender: No OFD packet to send [14:26:29]OFD Sender: No OFD packet to send [14:26:34]OFD Sender: No OFD packet to send [14:26:39]OFD Sender: No OFD packet to send [14:26:44]OFD Sender: No OFD packet to send [14:26:49]OFD Sender: No OFD packet to send [14:26:54]OFD Sender: No OFD packet to send [14:26:59]OFD Sender: No OFD packet to send [14:27:04]OFD Sender: No OFD packet to send [14:27:09]OFD Sender: No OFD packet to send [14:27:14]OFD Sender: No OFD packet to send [14:27:19]OFD Sender: No OFD packet to send [14:27:24]OFD Sender: No OFD packet to send [14:27:29]OFD Sender: No OFD packet to send [14:27:34]OFD Sender: No OFD packet to send [14:27:39]OFD Sender: No OFD packet to send [14:27:44]OFD Sender: No OFD packet to send [14:27:49]OFD Sender: No OFD packet to send [14:27:54]OFD Sender: No OFD packet to send [14:27:59]OFD Sender: No OFD packet to send [14:28:04]OFD Sender: No OFD packet to send [14:28:09]OFD Sender: No OFD packet to send [14:28:14]OFD Sender: No OFD packet to send [14:28:19]OFD Sender: No OFD packet to send [14:28:24]OFD Sender: No OFD packet to send [14:28:29]OFD Sender: No OFD packet to send [14:28:34]OFD Sender: No OFD packet to send [14:28:39]OFD Sender: No OFD packet to send [14:28:44]OFD Sender: No OFD packet to send [14:28:49]OFD Sender: No OFD packet to send [14:28:54]OFD Sender: No OFD packet to send [14:28:59]OFD Sender: No OFD packet to send [14:29:04]OFD Sender: No OFD packet to send [14:29:09]OFD Sender: No OFD packet to send [14:29:14]OFD Sender: No OFD packet to send [14:29:19]OFD Sender: No OFD packet to send [14:29:24]OFD Sender: No OFD packet to send [14:29:29]OFD Sender: No OFD packet to send [14:29:34]OFD Sender: No OFD packet to send [14:29:39]OFD Sender: No OFD packet to send [14:29:44]OFD Sender: No OFD packet to send [14:29:49]OFD Sender: No OFD packet to send [14:29:54]OFD Sender: No OFD packet to send [14:29:59]OFD Sender: No OFD packet to send [14:30:04]OFD Sender: No OFD packet to send [14:30:09]OFD Sender: No OFD packet to send [14:30:14]OFD Sender: No OFD packet to send [14:30:19]OFD Sender: No OFD packet to send [14:30:24]OFD Sender: No OFD packet to send [14:30:29]OFD Sender: No OFD packet to send [14:30:34]OFD Sender: No OFD packet to send [14:30:39]OFD Sender: No OFD packet to send [14:30:44]OFD Sender: No OFD packet to send [14:30:49]OFD Sender: No OFD packet to send [14:30:49]accept exits with 9 [14:30:49]New connection [14:30:49]New thread 3066994020 created [14:30:49]Thread 3067137380 joined [14:30:49]Waiting for new connection... [14:30:49] Sock 9.Parse request [14:30:49]Sock 9.Check first char [14:30:49]Sock 9.First char is OK [14:30:49]request: POST /json_proto HTTP/1.0 [14:30:49]Method: POST [14:30:49]URL: /json_proto [14:30:49]Method is POST - this is cgi request [14:30:49]url: /json_proto [14:30:49]query_string will be loaded in cgi processing [14:30:49]execute_cgi json_proto POST (null) [14:30:49]execute_cgi path=json_proto method=POST [14:30:49]POST find Content-Length [14:30:49]Host: 172.17.44.195:8080 [14:30:49]Content-Length: 677 [14:30:49]Content-Type: application/json [14:30:49] [14:30:49]POST finish read [14:30:49]Found Content-Length = 677 [14:30:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 44.990, "sum" : 1750.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1750.00, "total" : 1750.00, "payments": [ { "type": 0, "sum" : 1750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:49]execute_script... [14:30: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)1964727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 44.990, "sum" : 1750.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1750.00, "total" : 1750.00, "payments": [ { "type": 0, "sum" : 1750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:49]POST & json_proto [14:30:49]process_json_proto [14:30:49]json parsed OK: [14:30:49]protocol is kg_v1.0 [14:30:49]action value=close_receipt [14:30:49]process_action close_receipt [14:30:49]cmd_close_receipt [14:30:49]MH_GetDate [14:30:49]Write to MH i2c: F0 00 00 BD 40 EC [14:30:49]Write i2c OK [14:30:49]MH_I2C_Read... [14:30:49]Read from MH i2c: F0 [14:30:49]MH_I2C_Read... [14:30:49]Read from MH i2c: F0 09 00 [14:30:49]MH_I2C_Read... [14:30:49]Read from MH i2c: F0 09 00 BD 40 00 1E B7 17 67 82 C9 CF 66 C8 [14:30:49]GetLastDocTimeStamp 1729607081 [14:30:49]current date 1729607454 [14:30:49]FM_GetShiftState [14:30:49]SAM_PROTO_GetShiftState [14:30:49]wFMCommunicate request_size=4 [14:30:49]MH_SAM_APDU [14:30:49]CAPDU: 80 13 01 00 [14:30:49]Write to MH i2c: E2 08 00 BE 40 80 13 01 00 00 00 00 00 7B [14:30:49]Write i2c OK [14:30:49]MH_I2C_Read... [14:30:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:50]Read from MH i2c: E2 [14:30:50]MH_I2C_Read... [14:30:50]Read from MH i2c: E2 0E 00 [14:30:50]MH_I2C_Read... [14:30:50]Read from MH i2c: E2 0E 00 BE 40 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 42 [14:30:50]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:30:50]wFMCommunicate OK [14:30:50]SAM_PROTO_GetShiftState done [14:30:50]FM_GetShiftState done [14:30:50]opened in 1729555538 [14:30:50]opened+sec_in_day 1729641938 [14:30:50]quantity*price = 175011 [14:30:50]sum+1 = 175012 [14:30:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1750.00 Внесено: 1750.00 СДАЧА: 0.00 НСП 1% : 15.49 НДС 12% : 185.85 Наличными: 1750.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 215 22.10.2024 14:30 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228251 ФПД: 117732449214892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143054&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228251&fm=117732449214892&tin=02508201610067®Number=0000000000091685&sum=175000 [14:30:51]StoreToDocumentArchive [14:30:51]shift 535 fd 228251 [14:30:51]save to /storage/0535/doc_00228251 [14:30:51]save last doc name /storage/0535/doc_00228251 to /storage/kkm_last_doc_name [14:30:51]save OK [14:30:51]Clear old archive folders... [14:30:51]ProcessDocumentItem done err = 0, tmpTLVsize=245 [14:30:51]tlvbuf is 00A7C3F0 [14:30:51]SAM_PROTO_ClearQueue [14:30:51]wFMCommunicate request_size=4 [14:30:51]MH_SAM_APDU [14:30:51]CAPDU: 80 09 00 00 [14:30:51]Write to MH i2c: E2 08 00 CB 40 80 09 00 00 00 00 00 00 7D [14:30:51]Write i2c OK [14:30:51]MH_I2C_Read... [14:30:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:51]Read from MH i2c: E2 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: E2 03 00 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: E2 03 00 CB 40 00 90 00 7F [14:30:51]RAPDU: 90 00 [14:30:51]wFMCommunicate OK [14:30:51]SAM_PROTO_ClearQueue done [14:30:51]KKMCreateOFDPacket [14:30:51]OFDProtocolAddRootSTLVToBuf [14:30:51]FM_MakeSignedData [14:30:51]FM_MakeSignedData [14:30:51]SAM_PROTO_SignData [14:30:51]wFMCommunicate request_size=4 [14:30:51]MH_SAM_APDU [14:30:51]CAPDU: 80 0D 01 02 [14:30:51]Write to MH i2c: E2 08 00 CC 40 80 0D 01 02 00 00 00 00 85 [14:30:51]Write i2c OK [14:30:51]MH_I2C_Read... [14:30:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:51]Read from MH i2c: E2 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: E2 03 00 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: E2 03 00 CC 40 00 90 00 80 [14:30:51]RAPDU: 90 00 [14:30:51]wFMCommunicate OK [14:30:51]wFMCommunicate request_size=254 [14:30:51]MH_SAM_APDU [14:30:51]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 BE AF 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 A3 AB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 AB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 48 00 00 00 00 07 04 06 00 98 AB 02 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 1E B7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9B 7B 03 00 35 04 06 00 6B 13 B8 D0 61 AC [14:30:51]Write to MH i2c: E2 01 01 CD 40 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 BE AF 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 A3 AB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 AB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 48 00 00 00 00 07 04 06 00 98 AB 02 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 1E B7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9B 7B 03 00 35 04 06 00 6B 13 B8 D0 61 AC 00 00 28 [14:30:51]Write i2c OK [14:30:51]MH_I2C_Read... [14:30:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:51]Read from MH i2c: E2 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: E2 03 00 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: E2 03 00 CD 40 00 90 00 81 [14:30:51]RAPDU: 90 00 [14:30:51]wFMCommunicate OK [14:30:51]wFMCommunicate request_size=4 [14:30:51]MH_SAM_APDU [14:30:51]CAPDU: 80 0D 03 02 [14:30:51]Write to MH i2c: E2 08 00 CE 40 80 0D 03 02 00 00 00 00 89 [14:30:51]Write i2c OK [14:30:51]MH_I2C_Read... [14:30:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:51]Read from MH i2c: E2 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: E2 0B 00 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: E2 0B 00 CE 40 00 83 C9 BF 36 8B DF 9B 84 90 00 54 [14:30:51]RAPDU: 83 C9 BF 36 8B DF 9B 84 90 00 [14:30:51]wFMCommunicate OK [14:30:51]SAM_PROTO_SignData done [14:30:51]FM_MakeSignedData done [14:30:51]CreateOFDProtocolMessage [14:30:51]wFMCommunicate request_size=4 [14:30:51]MH_SAM_APDU [14:30:51]CAPDU: 80 11 00 00 [14:30:51]Write to MH i2c: E2 08 00 CF 40 80 11 00 00 00 00 00 00 89 [14:30:51]Write i2c OK [14:30:51]MH_I2C_Read... [14:30:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:51]Read from MH i2c: E2 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: E2 17 00 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: E2 17 00 CF 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E0 [14:30:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:30:51]wFMCommunicate OK [14:30:51]CreateOFDProtocolMessage done [14:30:51]OFDSenderStorePacket 228251 [14:30:51]StoreOFDPacket docnum=228251 [14:30:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 86 32 01 01 DB E7 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 BE AF 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 A3 AB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 AB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 48 00 00 00 00 07 04 06 00 98 AB 02 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 1E B7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9B 7B 03 00 35 04 06 00 6B 13 B8 D0 61 AC 83 C9 BF 36 8B DF 9B 84 [14:30:51]CheckFolder [14:30:51]dirname=/storage/ofd_packets [14:30:51]CheckFolder done [14:30:51]ProducePacketName [14:30:51]name=ofd_packets/00228251 [14:30:51]NVStorageSaveData ofd_packets/00228251 [14:30:51]File name is /storage/ofd_packets/00228251 [14:30:51]Write 295 bytes [14:30:51]NVStorageSaveData done [14:30:51]OFDSenderStorePacket done [14:30:51]KKMCreateOFDPacket done [14:30:51]NVStorageSaveData kkm_last_timestamp [14:30:51]File name is /storage/kkm_last_timestamp [14:30:51]Write 4 bytes [14:30:51]NVStorageSaveData done [14:30:51]ExternCall_PrintAddStr [14:30:51]wPrintStart [14:30:51]Write to MH i2c: 01 00 00 D0 40 10 [14:30:51]Write i2c OK [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: 01 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: 01 07 00 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: 01 07 00 D0 40 00 00 00 00 00 FF 0F 25 [14:30:51]RasterBufferAndPrint [14:30:51]line Счет N : (1)1964727 [14:30:51]line ИНН: 02508201610067 [14:30:51]line Контрольно-Кассовый Чек [14:30:51]line ПРОДАЖА [14:30:51]line ТРК (МРК, ГНК) : 71 [14:30:51]line Товар: 2711129700 [14:30:51]line ГАЗ [14:30:51]line 44.990 * 38.90 [14:30:51]line = 1750.11 [14:30:51]line НДС 12% НСП 1% [14:30:51]line > о реализуемом товаре [14:30:51]line ОКРУГЛЕНИЕ: -0.11 [14:30:51]line ИТОГО: 1750.00 [14:30:51]line Внесено: 1750.00 [14:30:51]line СДАЧА: 0.00 [14:30:51]line НСП 1% : 15.49 [14:30:51]line НДС 12% : 185.85 [14:30:51]line Наличными: 1750.00 [14:30:51]line Безнал.: 0.00 [14:30:51]line Место: АЗС № 133 "Партнер Нефть" [14:30:51]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [14:30:51]line СНО: Общий режим [14:30:51]line Чек 215 22.10.2024 14:30 [14:30:51]line Смена: 535 ФФД: 1.0 [14:30:51]line ЗНМ: 0300000091 [14:30:51]line РНМ: 0000000000091685 [14:30:51]line Версия ККМ: 001 [14:30:51]line ФМ: 0000000000871839 [14:30:51]line ФД: 228251 [14:30:51]line ФПД: 117732449214892 [14:30:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143054&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228251&fm=117732449214892&tin=02508201610067®Number=0000000000091685&sum=175000 [14:30:51]OFD Sender: Processing packet 228251 [packets to send 38, broken 37] [14:30:51]ProducePacketName [14:30:51]name=ofd_packets/00228251 [14:30:51]OFD Sender: To server: pG, [14:30:51]CommunicateWithHost lk.salyk.kg:30040 [14:30:51]ConnectInit lk.salyk.kg [14:30:51]written 0, free lines is 4095 [14:30:52]Connected sock=10 [14:30:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 86 32 01 01 DB E7 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 BE AF 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 A3 AB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 AB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 48 00 00 00 00 07 04 06 00 98 AB 02 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 1E B7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9B 7B 03 00 35 04 06 00 6B 13 B8 D0 61 AC 83 C9 BF 36 8B DF 9B 84 [14:30:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 3B BA 47 00 50 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9B 7B 03 00 F4 03 04 00 16 62 17 67 B6 04 01 00 00 74 31 42 CA 36 9F 89 89 [14:30:52]CommunicateWithHost err = 0 [14:30:52]CheckOFDResponse [14:30:52]1017 (14) - 77093643461234 [14:30:52]1041 (16) - 0000000000871839 [14:30:52]1040 (4) - 228251 [14:30:52]1012 (4) - 22.10.2024 08:28 [14:30:52]1206 (1) - 0 [14:30:52]OFD Sender: Remove packet 228251 [14:30:52]ProducePacketName [14:30:52]name=ofd_packets/00228251 [14:30:52]NVStorageDeleteData [14:30:52]Write to MH i2c: 01 00 00 FA 40 3A [14:30:52]Write i2c OK [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: 01 [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: 01 07 00 [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: 01 07 00 FA 40 00 00 00 00 00 BC 0C 09 [14:30:52]RasterBufferAndPrint [14:30:52]line [14:30:52]line [14:30:52]line [14:30:52]line [14:30:52]line [14:30:52]written 0, free lines is 3266 [14:30:52]MH_Cut [14:30:52]Write to MH i2c: D1 01 00 01 41 01 14 [14:30:52]Write i2c OK [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: D1 [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: D1 01 00 [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: D1 01 00 01 41 00 13 [14:30:52]Write to MH i2c: 01 00 00 02 41 43 [14:30:52]Write i2c OK [14:30:52]MH_I2C_Read... [14:30:52]OFD Sender: No OFD packet to send [14:30:53]*** Cut start [14:30:53]*** Partial cut [14:30:53]*** CUTSNS_PIN = 1 [14:30:53]*** CUTSNS_PIN = 0 [14:30:53]*** Brake cut motor [14:30:53]Read from MH i2c: 01 [14:30:53]MH_I2C_Read... [14:30:53]*** Stop cut motor [14:30:53]*** Cut end [14:30:53]Read from MH i2c: 01 07 00 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: 01 07 00 02 41 00 00 00 00 00 FF 0F 58 [14:30:53]process_action close_receipt done [14:30:53]requested_data is exist [14:30:53]produce_requested_data [14:30:53]requested_item fm.sn is exist - process it [14:30:53]wFMCommunicate request_size=4 [14:30:53]MH_SAM_APDU [14:30:53]CAPDU: 80 11 00 00 [14:30:53]Write to MH i2c: E2 08 00 03 41 80 11 00 00 00 00 00 00 BE [14:30:53]Write i2c OK [14:30:53]MH_I2C_Read... [14:30:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:53]Read from MH i2c: E2 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 17 00 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 17 00 03 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 15 [14:30:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:30:53]wFMCommunicate OK [14:30:53]requested_item fd.num is exist - process it [14:30:53]SAM_PROTO_GetFieldsCounters [14:30:53]wFMCommunicate request_size=4 [14:30:53]MH_SAM_APDU [14:30:53]CAPDU: 80 13 00 00 [14:30:53]Write to MH i2c: E2 08 00 04 41 80 13 00 00 00 00 00 00 C1 [14:30:53]Write i2c OK [14:30:53]MH_I2C_Read... [14:30:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:54]Read from MH i2c: E2 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: E2 62 00 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: E2 62 00 04 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9B 7B 03 00 0E 04 04 00 17 02 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 A1 [14:30:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9B 7B 03 00 0E 04 04 00 17 02 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 [14:30:54]wFMCommunicate OK [14:30:54]SAM_PROTO_GetFieldsCounters done [14:30:54]requested_item shift.num is exist - process it [14:30:54]requested_item shift.opened is exist - process it [14:30:54]req_shift_opened [14:30:54]FM_GetShiftState [14:30:54]SAM_PROTO_GetShiftState [14:30:54]wFMCommunicate request_size=4 [14:30:54]MH_SAM_APDU [14:30:54]CAPDU: 80 13 01 00 [14:30:54]Write to MH i2c: E2 08 00 05 41 80 13 01 00 00 00 00 00 C3 [14:30:54]Write i2c OK [14:30:54]MH_I2C_Read... [14:30:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:54]Read from MH i2c: E2 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: E2 0E 00 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: E2 0E 00 05 41 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 8A [14:30:54]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:30:54]wFMCommunicate OK [14:30:54]SAM_PROTO_GetShiftState done [14:30:54]FM_GetShiftState done [14:30:54]req_shift_opened done [14:30:54]requested_item shift.open_date is exist - process it [14:30:54]req_shift_open_date [14:30:54]req_shift_open_date done [14:30:54]produce_requested_data done [14:30:54]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228251,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [14:30:54]process_action_free close_receipt [14:30:54]json_value_free [14:30:54]json_value_free done [14:30:54]process_json_proto returns [14:30:54]Send response to host [14:30:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228251,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [14:30:54]free response buf [14:30:54]execute_script done [14:30:54]execute_script returns [14:30:54]free content buf [14:30:54]Sock 9.Close socket [14:30:54]Sock 9.Thread stoped [14:30:57]OFD Sender: No OFD packet to send [14:31:02]OFD Sender: No OFD packet to send [14:31:07]OFD Sender: No OFD packet to send [14:31:12]OFD Sender: No OFD packet to send [14:31:17]OFD Sender: No OFD packet to send [14:31:22]OFD Sender: No OFD packet to send [14:31:27]OFD Sender: No OFD packet to send [14:31:32]OFD Sender: No OFD packet to send [14:31:37]OFD Sender: No OFD packet to send [14:31:42]OFD Sender: No OFD packet to send [14:31:47]OFD Sender: No OFD packet to send [14:31:52]OFD Sender: No OFD packet to send [14:31:57]OFD Sender: No OFD packet to send [14:32:02]OFD Sender: No OFD packet to send [14:32:07]OFD Sender: No OFD packet to send [14:32:12]OFD Sender: No OFD packet to send [14:32:17]OFD Sender: No OFD packet to send [14:32:22]OFD Sender: No OFD packet to send [14:32:27]OFD Sender: No OFD packet to send [14:32:32]OFD Sender: No OFD packet to send [14:32:37]OFD Sender: No OFD packet to send [14:32:42]OFD Sender: No OFD packet to send [14:32:47]OFD Sender: No OFD packet to send [14:32:52]OFD Sender: No OFD packet to send [14:32:57]OFD Sender: No OFD packet to send [14:33:02]OFD Sender: No OFD packet to send [14:33:07]OFD Sender: No OFD packet to send [14:33:12]OFD Sender: No OFD packet to send [14:33:17]OFD Sender: No OFD packet to send [14:33:22]OFD Sender: No OFD packet to send [14:33:27]OFD Sender: No OFD packet to send [14:33:32]OFD Sender: No OFD packet to send [14:33:37]OFD Sender: No OFD packet to send [14:33:42]OFD Sender: No OFD packet to send [14:33:47]OFD Sender: No OFD packet to send [14:33:52]OFD Sender: No OFD packet to send [14:33:57]OFD Sender: No OFD packet to send [14:34:02]OFD Sender: No OFD packet to send [14:34:07]OFD Sender: No OFD packet to send [14:34:12]OFD Sender: No OFD packet to send [14:34:17]OFD Sender: No OFD packet to send [14:34:22]OFD Sender: No OFD packet to send [14:34:27]OFD Sender: No OFD packet to send [14:34:32]OFD Sender: No OFD packet to send [14:34:35]accept exits with 7 [14:34:35]New connection [14:34:35]New thread 3067137380 created [14:34:35]Thread 3066994020 joined [14:34:35]Waiting for new connection... [14:34:35] Sock 7.Parse request [14:34:35]Sock 7.Check first char [14:34:35]Sock 7.First char is OK [14:34:35]request: POST /json_proto HTTP/1.0 [14:34:35]Method: POST [14:34:35]URL: /json_proto [14:34:35]Method is POST - this is cgi request [14:34:35]url: /json_proto [14:34:35]query_string will be loaded in cgi processing [14:34:35]execute_cgi json_proto POST (null) [14:34:35]execute_cgi path=json_proto method=POST [14:34:35]POST find Content-Length [14:34:35]Host: 172.17.44.195:8080 [14:34:35]Content-Length: 679 [14:34:35]Content-Type: application/json [14:34:35] [14:34:35]POST finish read [14:34:35]Found Content-Length = 679 [14:34:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "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" ] } } [14:34:35]execute_script... [14:34: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)1964729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "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" ] } } [14:34:35]POST & json_proto [14:34:35]process_json_proto [14:34:35]json parsed OK: [14:34:35]protocol is kg_v1.0 [14:34:35]action value=close_receipt [14:34:35]process_action close_receipt [14:34:35]cmd_close_receipt [14:34:35]MH_GetDate [14:34:35]Write to MH i2c: F0 00 00 06 41 36 [14:34:35]Write i2c OK [14:34:35]MH_I2C_Read... [14:34:35]Read from MH i2c: F0 [14:34:35]MH_I2C_Read... [14:34:35]Read from MH i2c: F0 09 00 [14:34:35]MH_I2C_Read... [14:34:35]Read from MH i2c: F0 09 00 06 41 00 00 B8 17 67 82 C9 CF 66 F5 [14:34:35]GetLastDocTimeStamp 1729607454 [14:34:35]current date 1729607680 [14:34:35]FM_GetShiftState [14:34:35]SAM_PROTO_GetShiftState [14:34:35]wFMCommunicate request_size=4 [14:34:35]MH_SAM_APDU [14:34:35]CAPDU: 80 13 01 00 [14:34:35]Write to MH i2c: E2 08 00 07 41 80 13 01 00 00 00 00 00 C5 [14:34:35]Write i2c OK [14:34:35]MH_I2C_Read... [14:34:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:35]Read from MH i2c: E2 [14:34:35]MH_I2C_Read... [14:34:35]Read from MH i2c: E2 0E 00 [14:34:35]MH_I2C_Read... [14:34:35]Read from MH i2c: E2 0E 00 07 41 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 8C [14:34:35]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:34:35]wFMCommunicate OK [14:34:35]SAM_PROTO_GetShiftState done [14:34:35]FM_GetShiftState done [14:34:35]opened in 1729555538 [14:34:35]opened+sec_in_day 1729641938 [14:34:35]quantity*price = 80061 [14:34:35]sum+1 = 80063 [14:34:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 216 22.10.2024 14:34 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228252 ФПД: 216863515758352 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143440&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228252&fm=216863515758352&tin=02508201610067®Number=0000000000091685&sum=80000 [14:34:37]StoreToDocumentArchive [14:34:37]shift 535 fd 228252 [14:34:37]save to /storage/0535/doc_00228252 [14:34:37]save last doc name /storage/0535/doc_00228252 to /storage/kkm_last_doc_name [14:34:37]save OK [14:34:37]Clear old archive folders... [14:34:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:34:37]tlvbuf is 00A7BD50 [14:34:37]SAM_PROTO_ClearQueue [14:34:37]wFMCommunicate request_size=4 [14:34:37]MH_SAM_APDU [14:34:37]CAPDU: 80 09 00 00 [14:34:37]Write to MH i2c: E2 08 00 14 41 80 09 00 00 00 00 00 00 C7 [14:34:37]Write i2c OK [14:34:37]MH_I2C_Read... [14:34:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:34:37]Read from MH i2c: E2 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: E2 03 00 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: E2 03 00 14 41 00 90 00 C9 [14:34:37]RAPDU: 90 00 [14:34:37]wFMCommunicate OK [14:34:37]SAM_PROTO_ClearQueue done [14:34:37]KKMCreateOFDPacket [14:34:37]OFDProtocolAddRootSTLVToBuf [14:34:37]FM_MakeSignedData [14:34:37]FM_MakeSignedData [14:34:37]SAM_PROTO_SignData [14:34:37]wFMCommunicate request_size=4 [14:34:37]MH_SAM_APDU [14:34:37]CAPDU: 80 0D 01 02 [14:34:37]Write to MH i2c: E2 08 00 15 41 80 0D 01 02 00 00 00 00 CF [14:34:37]Write i2c OK [14:34:37]MH_I2C_Read... [14:34:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:34:37]Read from MH i2c: E2 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: E2 03 00 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: E2 03 00 15 41 00 90 00 CA [14:34:37]RAPDU: 90 00 [14:34:37]wFMCommunicate OK [14:34:37]wFMCommunicate request_size=255 [14:34:37]MH_SAM_APDU [14:34:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 00 B8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9C 7B 03 00 35 04 06 00 C5 [14:34:37]Write to MH i2c: E2 02 01 16 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 00 B8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9C 7B 03 00 35 04 06 00 C5 00 00 D9 [14:34:37]Write i2c OK [14:34:37]MH_I2C_Read... [14:34:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:37]Read from MH i2c: E2 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: E2 03 00 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: E2 03 00 16 41 00 90 00 CB [14:34:37]RAPDU: 90 00 [14:34:37]wFMCommunicate OK [14:34:37]wFMCommunicate request_size=10 [14:34:37]MH_SAM_APDU [14:34:37]CAPDU: 80 0D 02 02 05 3C 78 D2 4F 10 [14:34:37]Write to MH i2c: E2 0D 00 17 41 80 0D 02 02 05 00 3C 78 D2 4F 10 00 00 C1 [14:34:37]Write i2c OK [14:34:37]MH_I2C_Read... [14:34:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:37]Read from MH i2c: E2 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: E2 03 00 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: E2 03 00 17 41 00 90 00 CC [14:34:37]RAPDU: 90 00 [14:34:37]wFMCommunicate OK [14:34:37]wFMCommunicate request_size=4 [14:34:37]MH_SAM_APDU [14:34:37]CAPDU: 80 0D 03 02 [14:34:37]Write to MH i2c: E2 08 00 18 41 80 0D 03 02 00 00 00 00 D4 [14:34:37]Write i2c OK [14:34:37]MH_I2C_Read... [14:34:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:34:37]Read from MH i2c: E2 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: E2 0B 00 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: E2 0B 00 18 41 00 45 4C 50 48 72 AE 26 ED 90 00 31 [14:34:37]RAPDU: 45 4C 50 48 72 AE 26 ED 90 00 [14:34:37]wFMCommunicate OK [14:34:37]SAM_PROTO_SignData done [14:34:37]FM_MakeSignedData done [14:34:37]CreateOFDProtocolMessage [14:34:37]wFMCommunicate request_size=4 [14:34:37]MH_SAM_APDU [14:34:37]CAPDU: 80 11 00 00 [14:34:37]Write to MH i2c: E2 08 00 19 41 80 11 00 00 00 00 00 00 D4 [14:34:37]Write i2c OK [14:34:37]MH_I2C_Read... [14:34:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:37]Read from MH i2c: E2 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: E2 17 00 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: E2 17 00 19 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2B [14:34:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:34:37]wFMCommunicate OK [14:34:37]CreateOFDProtocolMessage done [14:34:37]OFDSenderStorePacket 228252 [14:34:37]StoreOFDPacket docnum=228252 [14:34:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 28 CF 07 01 7B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 00 B8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9C 7B 03 00 35 04 06 00 C5 3C 78 D2 4F 10 45 4C 50 48 72 AE 26 ED [14:34:37]CheckFolder [14:34:37]dirname=/storage/ofd_packets [14:34:37]CheckFolder done [14:34:37]ProducePacketName [14:34:37]name=ofd_packets/00228252 [14:34:37]NVStorageSaveData ofd_packets/00228252 [14:34:37]File name is /storage/ofd_packets/00228252 [14:34:37]Write 301 bytes [14:34:37]NVStorageSaveData done [14:34:37]OFDSenderStorePacket done [14:34:37]KKMCreateOFDPacket done [14:34:37]NVStorageSaveData kkm_last_timestamp [14:34:37]File name is /storage/kkm_last_timestamp [14:34:37]Write 4 bytes [14:34:37]NVStorageSaveData done [14:34:37]ExternCall_PrintAddStr [14:34:37]wPrintStart [14:34:37]Write to MH i2c: 01 00 00 1A 41 5B [14:34:37]Write i2c OK [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: 01 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: 01 07 00 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: 01 07 00 1A 41 00 00 00 00 00 FF 0F 70 [14:34:37]RasterBufferAndPrint [14:34:37]line Счет N : (1)1964729 [14:34:37]line ИНН: 02508201610067 [14:34:37]line Контрольно-Кассовый Чек [14:34:37]line ПРОДАЖА [14:34:37]line ТРК (МРК, ГНК) : 44 [14:34:37]line Товар: 2710124500 [14:34:37]line Аи-95-К-5 [14:34:37]line 10.790 * 74.20 [14:34:37]line = 800.62 [14:34:37]line НДС 12% НСП 1% [14:34:37]line > о реализуемом товаре [14:34:37]line ОКРУГЛЕНИЕ: -0.62 [14:34:37]line ИТОГО: 800.00 [14:34:37]line Внесено: 800.00 [14:34:37]line СДАЧА: 0.00 [14:34:37]line НСП 1% : 7.08 [14:34:37]line НДС 12% : 85.02 [14:34:37]line Наличными: 800.00 [14:34:37]line Безнал.: 0.00 [14:34:37]line Место: АЗС № 133 "Партнер Нефть" [14:34:37]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [14:34:37]line СНО: Общий режим [14:34:37]line Чек 216 22.10.2024 14:34 [14:34:37]line Смена: 535 ФФД: 1.0 [14:34:37]line ЗНМ: 0300000091 [14:34:37]line РНМ: 0000000000091685 [14:34:37]line Версия ККМ: 001 [14:34:37]line ФМ: 0000000000871839 [14:34:37]line ФД: 228252 [14:34:37]line ФПД: 216863515758352 [14:34:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143440&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228252&fm=216863515758352&tin=02508201610067®Number=0000000000091685&sum=80000 [14:34:37]OFD Sender: Processing packet 228252 [packets to send 38, broken 37] [14:34:37]ProducePacketName [14:34:37]name=ofd_packets/00228252 [14:34:37]OFD Sender: To server: pG, [14:34:37]CommunicateWithHost lk.salyk.kg:30040 [14:34:37]ConnectInit lk.salyk.kg [14:34:37]written 0, free lines is 4095 [14:34:38]Connected sock=10 [14:34:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 28 CF 07 01 7B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 00 B8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9C 7B 03 00 35 04 06 00 C5 3C 78 D2 4F 10 45 4C 50 48 72 AE 26 ED [14:34:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 1E 0A 47 00 3C A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9C 7B 03 00 F4 03 04 00 F8 62 17 67 B6 04 01 00 00 67 BA AE 23 31 3E E8 15 [14:34:38]CommunicateWithHost err = 0 [14:34:38]CheckOFDResponse [14:34:38]1017 (14) - 77093643461234 [14:34:38]1041 (16) - 0000000000871839 [14:34:38]1040 (4) - 228252 [14:34:38]1012 (4) - 22.10.2024 08:31 [14:34:38]1206 (1) - 0 [14:34:38]OFD Sender: Remove packet 228252 [14:34:38]ProducePacketName [14:34:38]name=ofd_packets/00228252 [14:34:38]NVStorageDeleteData [14:34:38]Write to MH i2c: 01 00 00 44 41 85 [14:34:38]Write i2c OK [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: 01 [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: 01 07 00 [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: 01 07 00 44 41 00 00 00 00 00 C4 0C 5C [14:34:38]RasterBufferAndPrint [14:34:38]line [14:34:38]line [14:34:38]line [14:34:38]line [14:34:38]line [14:34:38]written 0, free lines is 3274 [14:34:38]MH_Cut [14:34:38]Write to MH i2c: D1 01 00 4B 41 01 5E [14:34:38]Write i2c OK [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: D1 [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: D1 01 00 [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: D1 01 00 4B 41 00 5D [14:34:38]Write to MH i2c: 01 00 00 4C 41 8D [14:34:38]Write i2c OK [14:34:38]MH_I2C_Read... [14:34:38]OFD Sender: No OFD packet to send [14:34:39]*** Cut start [14:34:39]*** Partial cut [14:34:39]*** CUTSNS_PIN = 1 [14:34:39]*** CUTSNS_PIN = 0 [14:34:39]*** Brake cut motor [14:34:39]Read from MH i2c: 01 [14:34:39]MH_I2C_Read... [14:34:39]*** Stop cut motor [14:34:39]*** Cut end [14:34:39]Read from MH i2c: 01 07 00 [14:34:39]MH_I2C_Read... [14:34:39]Read from MH i2c: 01 07 00 4C 41 00 00 00 00 00 FF 0F A2 [14:34:39]process_action close_receipt done [14:34:39]requested_data is exist [14:34:39]produce_requested_data [14:34:39]requested_item fm.sn is exist - process it [14:34:39]wFMCommunicate request_size=4 [14:34:39]MH_SAM_APDU [14:34:39]CAPDU: 80 11 00 00 [14:34:39]Write to MH i2c: E2 08 00 4D 41 80 11 00 00 00 00 00 00 08 [14:34:39]Write i2c OK [14:34:39]MH_I2C_Read... [14:34:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:39]Read from MH i2c: E2 [14:34:39]MH_I2C_Read... [14:34:39]Read from MH i2c: E2 17 00 [14:34:39]MH_I2C_Read... [14:34:39]Read from MH i2c: E2 17 00 4D 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5F [14:34:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:34:39]wFMCommunicate OK [14:34:39]requested_item fd.num is exist - process it [14:34:39]SAM_PROTO_GetFieldsCounters [14:34:39]wFMCommunicate request_size=4 [14:34:39]MH_SAM_APDU [14:34:39]CAPDU: 80 13 00 00 [14:34:39]Write to MH i2c: E2 08 00 4E 41 80 13 00 00 00 00 00 00 0B [14:34:39]Write i2c OK [14:34:39]MH_I2C_Read... [14:34:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:34:40]Read from MH i2c: E2 [14:34:40]MH_I2C_Read... [14:34:40]Read from MH i2c: E2 62 00 [14:34:40]MH_I2C_Read... [14:34:40]Read from MH i2c: E2 62 00 4E 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9C 7B 03 00 0E 04 04 00 17 02 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 EF [14:34:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9C 7B 03 00 0E 04 04 00 17 02 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 [14:34:40]wFMCommunicate OK [14:34:40]SAM_PROTO_GetFieldsCounters done [14:34:40]requested_item shift.num is exist - process it [14:34:40]requested_item shift.opened is exist - process it [14:34:40]req_shift_opened [14:34:40]FM_GetShiftState [14:34:40]SAM_PROTO_GetShiftState [14:34:40]wFMCommunicate request_size=4 [14:34:40]MH_SAM_APDU [14:34:40]CAPDU: 80 13 01 00 [14:34:40]Write to MH i2c: E2 08 00 4F 41 80 13 01 00 00 00 00 00 0D [14:34:40]Write i2c OK [14:34:40]MH_I2C_Read... [14:34:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:40]Read from MH i2c: E2 [14:34:40]MH_I2C_Read... [14:34:40]Read from MH i2c: E2 0E 00 [14:34:40]MH_I2C_Read... [14:34:40]Read from MH i2c: E2 0E 00 4F 41 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 D4 [14:34:40]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:34:40]wFMCommunicate OK [14:34:40]SAM_PROTO_GetShiftState done [14:34:40]FM_GetShiftState done [14:34:40]req_shift_opened done [14:34:40]requested_item shift.open_date is exist - process it [14:34:40]req_shift_open_date [14:34:40]req_shift_open_date done [14:34:40]produce_requested_data done [14:34:40]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228252,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [14:34:40]process_action_free close_receipt [14:34:40]json_value_free [14:34:40]json_value_free done [14:34:40]process_json_proto returns [14:34:40]Send response to host [14:34:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228252,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [14:34:40]free response buf [14:34:40]execute_script done [14:34:40]execute_script returns [14:34:40]free content buf [14:34:40]Sock 7.Close socket [14:34:40]Sock 7.Thread stoped [14:34:43]OFD Sender: No OFD packet to send [14:34:48]OFD Sender: No OFD packet to send [14:34:53]OFD Sender: No OFD packet to send [14:34:58]OFD Sender: No OFD packet to send [14:35:03]OFD Sender: No OFD packet to send [14:35:08]OFD Sender: No OFD packet to send [14:35:13]OFD Sender: No OFD packet to send [14:35:18]OFD Sender: No OFD packet to send [14:35:23]OFD Sender: No OFD packet to send [14:35:28]OFD Sender: No OFD packet to send [14:35:32]accept exits with 9 [14:35:32]New connection [14:35:32]New thread 3066994020 created [14:35:32]Thread 3067137380 joined [14:35:32]Waiting for new connection... [14:35:32] Sock 9.Parse request [14:35:32]Sock 9.Check first char [14:35:32]Sock 9.First char is OK [14:35:32]request: POST /json_proto HTTP/1.0 [14:35:32]Method: POST [14:35:32]URL: /json_proto [14:35:32]Method is POST - this is cgi request [14:35:32]url: /json_proto [14:35:32]query_string will be loaded in cgi processing [14:35:32]execute_cgi json_proto POST (null) [14:35:32]execute_cgi path=json_proto method=POST [14:35:32]POST find Content-Length [14:35:32]Host: 172.17.44.195:8080 [14:35:32]Content-Length: 674 [14:35:32]Content-Type: application/json [14:35:32] [14:35:32]POST finish read [14:35:32]Found Content-Length = 674 [14:35:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 22.550, "sum" : 877.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 877.00, "payments": [ { "type": 0, "sum" : 877.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:32]execute_script... [14:35: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)1964728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 22.550, "sum" : 877.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 877.00, "payments": [ { "type": 0, "sum" : 877.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:32]POST & json_proto [14:35:32]process_json_proto [14:35:32]json parsed OK: [14:35:32]protocol is kg_v1.0 [14:35:32]action value=close_receipt [14:35:32]process_action close_receipt [14:35:32]cmd_close_receipt [14:35:32]MH_GetDate [14:35:32]Write to MH i2c: F0 00 00 50 41 80 [14:35:32]Write i2c OK [14:35:32]MH_I2C_Read... [14:35:32]Read from MH i2c: F0 [14:35:32]MH_I2C_Read... [14:35:32]Read from MH i2c: F0 09 00 [14:35:32]MH_I2C_Read... [14:35:32]Read from MH i2c: F0 09 00 50 41 00 39 B8 17 67 82 C9 CF 66 78 [14:35:32]GetLastDocTimeStamp 1729607680 [14:35:32]current date 1729607737 [14:35:32]FM_GetShiftState [14:35:32]SAM_PROTO_GetShiftState [14:35:32]wFMCommunicate request_size=4 [14:35:32]MH_SAM_APDU [14:35:32]CAPDU: 80 13 01 00 [14:35:32]Write to MH i2c: E2 08 00 51 41 80 13 01 00 00 00 00 00 0F [14:35:32]Write i2c OK [14:35:32]MH_I2C_Read... [14:35:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:32]Read from MH i2c: E2 [14:35:32]MH_I2C_Read... [14:35:32]Read from MH i2c: E2 0E 00 [14:35:32]MH_I2C_Read... [14:35:32]Read from MH i2c: E2 0E 00 51 41 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 D6 [14:35:32]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:35:32]wFMCommunicate OK [14:35:32]SAM_PROTO_GetShiftState done [14:35:32]FM_GetShiftState done [14:35:32]opened in 1729555538 [14:35:32]opened+sec_in_day 1729641938 [14:35:32]quantity*price = 87719 [14:35:32]sum+1 = 87721 [14:35:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 877.00 Внесено: 1000.00 СДАЧА: 123.00 НСП 1% : 7.76 НДС 12% : 93.15 Наличными: 877.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 217 22.10.2024 14:35 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228253 ФПД: 22189683622435 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143537&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228253&fm=22189683622435&tin=02508201610067®Number=0000000000091685&sum=87700 [14:35:33]StoreToDocumentArchive [14:35:33]shift 535 fd 228253 [14:35:33]save to /storage/0535/doc_00228253 [14:35:33]save last doc name /storage/0535/doc_00228253 to /storage/kkm_last_doc_name [14:35:33]save OK [14:35:33]Clear old archive folders... [14:35:33]ProcessDocumentItem done err = 0, tmpTLVsize=245 [14:35:33]tlvbuf is 00A85770 [14:35:33]SAM_PROTO_ClearQueue [14:35:33]wFMCommunicate request_size=4 [14:35:33]MH_SAM_APDU [14:35:33]CAPDU: 80 09 00 00 [14:35:33]Write to MH i2c: E2 08 00 5E 41 80 09 00 00 00 00 00 00 11 [14:35:33]Write i2c OK [14:35:33]MH_I2C_Read... [14:35:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:33]Read from MH i2c: E2 [14:35:33]MH_I2C_Read... [14:35:33]Read from MH i2c: E2 03 00 [14:35:33]MH_I2C_Read... [14:35:33]Read from MH i2c: E2 03 00 5E 41 00 90 00 13 [14:35:33]RAPDU: 90 00 [14:35:33]wFMCommunicate OK [14:35:33]SAM_PROTO_ClearQueue done [14:35:33]KKMCreateOFDPacket [14:35:33]OFDProtocolAddRootSTLVToBuf [14:35:33]FM_MakeSignedData [14:35:33]FM_MakeSignedData [14:35:33]SAM_PROTO_SignData [14:35:33]wFMCommunicate request_size=4 [14:35:33]MH_SAM_APDU [14:35:33]CAPDU: 80 0D 01 02 [14:35:33]Write to MH i2c: E2 08 00 5F 41 80 0D 01 02 00 00 00 00 19 [14:35:33]Write i2c OK [14:35:33]MH_I2C_Read... [14:35:33]OFD Sender: No OFD packet to send [14:35:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:33]Read from MH i2c: E2 [14:35:33]MH_I2C_Read... [14:35:33]Read from MH i2c: E2 03 00 [14:35:33]MH_I2C_Read... [14:35:33]Read from MH i2c: E2 03 00 5F 41 00 90 00 14 [14:35:33]RAPDU: 90 00 [14:35:33]wFMCommunicate OK [14:35:33]wFMCommunicate request_size=254 [14:35:33]MH_SAM_APDU [14:35:33]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 16 58 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 A8 56 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 56 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 24 00 00 00 00 07 04 06 00 94 56 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 39 B8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9D 7B 03 00 35 04 06 00 14 2E 70 35 C2 23 [14:35:33]Write to MH i2c: E2 01 01 60 41 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 16 58 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 A8 56 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 56 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 24 00 00 00 00 07 04 06 00 94 56 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 39 B8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9D 7B 03 00 35 04 06 00 14 2E 70 35 C2 23 00 00 2F [14:35:33]Write i2c OK [14:35:33]MH_I2C_Read... [14:35:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:34]Read from MH i2c: E2 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: E2 03 00 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: E2 03 00 60 41 00 90 00 15 [14:35:34]RAPDU: 90 00 [14:35:34]wFMCommunicate OK [14:35:34]wFMCommunicate request_size=4 [14:35:34]MH_SAM_APDU [14:35:34]CAPDU: 80 0D 03 02 [14:35:34]Write to MH i2c: E2 08 00 61 41 80 0D 03 02 00 00 00 00 1D [14:35:34]Write i2c OK [14:35:34]MH_I2C_Read... [14:35:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:34]Read from MH i2c: E2 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: E2 0B 00 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: E2 0B 00 61 41 00 30 B5 63 29 3D A5 37 67 90 00 0F [14:35:34]RAPDU: 30 B5 63 29 3D A5 37 67 90 00 [14:35:34]wFMCommunicate OK [14:35:34]SAM_PROTO_SignData done [14:35:34]FM_MakeSignedData done [14:35:34]CreateOFDProtocolMessage [14:35:34]wFMCommunicate request_size=4 [14:35:34]MH_SAM_APDU [14:35:34]CAPDU: 80 11 00 00 [14:35:34]Write to MH i2c: E2 08 00 62 41 80 11 00 00 00 00 00 00 1D [14:35:34]Write i2c OK [14:35:34]MH_I2C_Read... [14:35:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:34]Read from MH i2c: E2 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: E2 17 00 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: E2 17 00 62 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 74 [14:35:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:35:34]wFMCommunicate OK [14:35:34]CreateOFDProtocolMessage done [14:35:34]OFDSenderStorePacket 228253 [14:35:34]StoreOFDPacket docnum=228253 [14:35:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 7C 16 01 01 C8 3C 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 16 58 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 A8 56 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 56 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 24 00 00 00 00 07 04 06 00 94 56 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 39 B8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9D 7B 03 00 35 04 06 00 14 2E 70 35 C2 23 30 B5 63 29 3D A5 37 67 [14:35:34]CheckFolder [14:35:34]dirname=/storage/ofd_packets [14:35:34]CheckFolder done [14:35:34]ProducePacketName [14:35:34]name=ofd_packets/00228253 [14:35:34]NVStorageSaveData ofd_packets/00228253 [14:35:34]File name is /storage/ofd_packets/00228253 [14:35:34]Write 295 bytes [14:35:34]NVStorageSaveData done [14:35:34]OFDSenderStorePacket done [14:35:34]KKMCreateOFDPacket done [14:35:34]NVStorageSaveData kkm_last_timestamp [14:35:34]File name is /storage/kkm_last_timestamp [14:35:34]OFD Sender: Processing packet 228253 [packets to send 38, broken 37] [14:35:34]ProducePacketName [14:35:34]name=ofd_packets/00228253 [14:35:34]OFD Sender: To server: pG, [14:35:34]CommunicateWithHost lk.salyk.kg:30040 [14:35:34]ConnectInit lk.salyk.kg [14:35:34]Write 4 bytes [14:35:34]NVStorageSaveData done [14:35:34]ExternCall_PrintAddStr [14:35:34]wPrintStart [14:35:34]Write to MH i2c: 01 00 00 63 41 A4 [14:35:34]Write i2c OK [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: 01 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: 01 07 00 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: 01 07 00 63 41 00 00 00 00 00 FF 0F B9 [14:35:34]RasterBufferAndPrint [14:35:34]line Счет N : (1)1964728 [14:35:34]line ИНН: 02508201610067 [14:35:34]line Контрольно-Кассовый Чек [14:35:34]line ПРОДАЖА [14:35:34]line ТРК (МРК, ГНК) : 71 [14:35:34]line Товар: 2711129700 [14:35:34]line ГАЗ [14:35:34]line 22.550 * 38.90 [14:35:34]line = 877.20 [14:35:34]line НДС 12% НСП 1% [14:35:34]line > о реализуемом товаре [14:35:34]line ОКРУГЛЕНИЕ: -0.20 [14:35:34]line ИТОГО: 877.00 [14:35:34]line Внесено: 1000.00 [14:35:34]line СДАЧА: 123.00 [14:35:34]line НСП 1% : 7.76 [14:35:34]line НДС 12% : 93.15 [14:35:34]line Наличными: 877.00 [14:35:34]line Безнал.: 0.00 [14:35:34]line Место: АЗС № 133 "Партнер Нефть" [14:35:34]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [14:35:34]line СНО: Общий режим [14:35:34]line Чек 217 22.10.2024 14:35 [14:35:34]line Смена: 535 ФФД: 1.0 [14:35:34]line ЗНМ: 0300000091 [14:35:34]line РНМ: 0000000000091685 [14:35:34]line Версия ККМ: 001 [14:35:34]line ФМ: 0000000000871839 [14:35:34]line ФД: 228253 [14:35:34]line ФПД: 22189683622435 [14:35:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143537&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228253&fm=22189683622435&tin=02508201610067®Number=0000000000091685&sum=87700 [14:35:34]Connected sock=11 [14:35:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 7C 16 01 01 C8 3C 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 16 58 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 A8 56 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 56 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 24 00 00 00 00 07 04 06 00 94 56 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 39 B8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9D 7B 03 00 35 04 06 00 14 2E 70 35 C2 23 30 B5 63 29 3D A5 37 67 [14:35:34]written 0, free lines is 4095 [14:35:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 82 A6 47 00 65 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9D 7B 03 00 F4 03 04 00 31 63 17 67 B6 04 01 00 00 D1 8C EF 62 16 0C 63 DD [14:35:34]CommunicateWithHost err = 0 [14:35:34]CheckOFDResponse [14:35:34]1017 (14) - 77093643461234 [14:35:34]1041 (16) - 0000000000871839 [14:35:34]1040 (4) - 228253 [14:35:34]1012 (4) - 22.10.2024 08:32 [14:35:34]1206 (1) - 0 [14:35:34]OFD Sender: Remove packet 228253 [14:35:34]ProducePacketName [14:35:34]name=ofd_packets/00228253 [14:35:34]NVStorageDeleteData [14:35:35]Write to MH i2c: 01 00 00 8D 41 CE [14:35:35]Write i2c OK [14:35:35]MH_I2C_Read... [14:35:35]Read from MH i2c: 01 [14:35:35]MH_I2C_Read... [14:35:35]Read from MH i2c: 01 07 00 [14:35:35]MH_I2C_Read... [14:35:35]Read from MH i2c: 01 07 00 8D 41 00 00 00 00 00 C3 0C A4 [14:35:35]RasterBufferAndPrint [14:35:35]line [14:35:35]line [14:35:35]line [14:35:35]line [14:35:35]line [14:35:35]written 0, free lines is 3271 [14:35:35]MH_Cut [14:35:35]Write to MH i2c: D1 01 00 94 41 01 A7 [14:35:35]Write i2c OK [14:35:35]MH_I2C_Read... [14:35:35]Read from MH i2c: D1 [14:35:35]MH_I2C_Read... [14:35:35]Read from MH i2c: D1 01 00 [14:35:35]MH_I2C_Read... [14:35:35]Read from MH i2c: D1 01 00 94 41 00 A6 [14:35:35]Write to MH i2c: 01 00 00 95 41 D6 [14:35:35]Write i2c OK [14:35:35]MH_I2C_Read... [14:35:35]OFD Sender: No OFD packet to send [14:35:35]*** Cut start [14:35:35]*** Partial cut [14:35:35]*** CUTSNS_PIN = 1 [14:35:35]*** CUTSNS_PIN = 0 [14:35:36]*** Brake cut motor [14:35:36]Read from MH i2c: 01 [14:35:36]MH_I2C_Read... [14:35:36]*** Stop cut motor [14:35:36]*** Cut end [14:35:36]Read from MH i2c: 01 07 00 [14:35:36]MH_I2C_Read... [14:35:36]Read from MH i2c: 01 07 00 95 41 00 00 00 00 00 FF 0F EB [14:35:36]process_action close_receipt done [14:35:36]requested_data is exist [14:35:36]produce_requested_data [14:35:36]requested_item fm.sn is exist - process it [14:35:36]wFMCommunicate request_size=4 [14:35:36]MH_SAM_APDU [14:35:36]CAPDU: 80 11 00 00 [14:35:36]Write to MH i2c: E2 08 00 96 41 80 11 00 00 00 00 00 00 51 [14:35:36]Write i2c OK [14:35:36]MH_I2C_Read... [14:35:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:36]Read from MH i2c: E2 [14:35:36]MH_I2C_Read... [14:35:36]Read from MH i2c: E2 17 00 [14:35:36]MH_I2C_Read... [14:35:36]Read from MH i2c: E2 17 00 96 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A8 [14:35:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:35:36]wFMCommunicate OK [14:35:36]requested_item fd.num is exist - process it [14:35:36]SAM_PROTO_GetFieldsCounters [14:35:36]wFMCommunicate request_size=4 [14:35:36]MH_SAM_APDU [14:35:36]CAPDU: 80 13 00 00 [14:35:36]Write to MH i2c: E2 08 00 97 41 80 13 00 00 00 00 00 00 54 [14:35:36]Write i2c OK [14:35:36]MH_I2C_Read... [14:35:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:36]Read from MH i2c: E2 [14:35:36]MH_I2C_Read... [14:35:36]Read from MH i2c: E2 62 00 [14:35:36]MH_I2C_Read... [14:35:36]Read from MH i2c: E2 62 00 97 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9D 7B 03 00 0E 04 04 00 17 02 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 3C [14:35:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9D 7B 03 00 0E 04 04 00 17 02 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 [14:35:36]wFMCommunicate OK [14:35:36]SAM_PROTO_GetFieldsCounters done [14:35:36]requested_item shift.num is exist - process it [14:35:36]requested_item shift.opened is exist - process it [14:35:36]req_shift_opened [14:35:36]FM_GetShiftState [14:35:36]SAM_PROTO_GetShiftState [14:35:36]wFMCommunicate request_size=4 [14:35:36]MH_SAM_APDU [14:35:36]CAPDU: 80 13 01 00 [14:35:36]Write to MH i2c: E2 08 00 98 41 80 13 01 00 00 00 00 00 56 [14:35:36]Write i2c OK [14:35:36]MH_I2C_Read... [14:35:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:36]Read from MH i2c: E2 [14:35:36]MH_I2C_Read... [14:35:36]Read from MH i2c: E2 0E 00 [14:35:36]MH_I2C_Read... [14:35:36]Read from MH i2c: E2 0E 00 98 41 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 1D [14:35:36]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:35:36]wFMCommunicate OK [14:35:36]SAM_PROTO_GetShiftState done [14:35:36]FM_GetShiftState done [14:35:36]req_shift_opened done [14:35:36]requested_item shift.open_date is exist - process it [14:35:36]req_shift_open_date [14:35:36]req_shift_open_date done [14:35:36]produce_requested_data done [14:35:36]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228253,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [14:35:36]process_action_free close_receipt [14:35:36]json_value_free [14:35:36]json_value_free done [14:35:36]process_json_proto returns [14:35:36]Send response to host [14:35:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228253,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [14:35:36]free response buf [14:35:36]execute_script done [14:35:36]execute_script returns [14:35:36]free content buf [14:35:36]Sock 9.Close socket [14:35:36]Sock 9.Thread stoped [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:40]accept exits with 7 [14:36:40]New connection [14:36:40]New thread 3067137380 created [14:36:40]Thread 3066994020 joined [14:36:40]Waiting for new connection... [14:36:40] Sock 7.Parse request [14:36:40]Sock 7.Check first char [14:36:40]Sock 7.First char is OK [14:36:40]request: POST /json_proto HTTP/1.0 [14:36:40]Method: POST [14:36:40]URL: /json_proto [14:36:40]Method is POST - this is cgi request [14:36:40]url: /json_proto [14:36:40]query_string will be loaded in cgi processing [14:36:40]execute_cgi json_proto POST (null) [14:36:40]execute_cgi path=json_proto method=POST [14:36:40]POST find Content-Length [14:36:40]Host: 172.17.44.195:8080 [14:36:40]Content-Length: 683 [14:36:40]Content-Type: application/json [14:36:40] [14:36:40]POST finish read [14:36:40]Found Content-Length = 683 [14:36:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964731", "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" : 66.90, "quantity" : 15.030, "sum" : 1005.51, "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" ] } } [14:36:40]execute_script... [14:36: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)1964731", "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" : 66.90, "quantity" : 15.030, "sum" : 1005.51, "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" ] } } [14:36:40]POST & json_proto [14:36:40]process_json_proto [14:36:40]json parsed OK: [14:36:40]protocol is kg_v1.0 [14:36:40]action value=close_receipt [14:36:40]process_action close_receipt [14:36:40]cmd_close_receipt [14:36:40]MH_GetDate [14:36:40]Write to MH i2c: F0 00 00 99 41 C9 [14:36:40]Write i2c OK [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: F0 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: F0 09 00 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: F0 09 00 99 41 00 7C B8 17 67 82 C9 CF 66 04 [14:36:40]GetLastDocTimeStamp 1729607737 [14:36:40]current date 1729607804 [14:36:40]FM_GetShiftState [14:36:40]SAM_PROTO_GetShiftState [14:36:40]wFMCommunicate request_size=4 [14:36:40]MH_SAM_APDU [14:36:40]CAPDU: 80 13 01 00 [14:36:40]Write to MH i2c: E2 08 00 9A 41 80 13 01 00 00 00 00 00 58 [14:36:40]Write i2c OK [14:36:40]MH_I2C_Read... [14:36:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:40]Read from MH i2c: E2 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: E2 0E 00 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: E2 0E 00 9A 41 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 1F [14:36:40]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:36:40]wFMCommunicate OK [14:36:40]SAM_PROTO_GetShiftState done [14:36:40]FM_GetShiftState done [14:36:40]opened in 1729555538 [14:36:40]opened+sec_in_day 1729641938 [14:36:40]quantity*price = 100550 [14:36:40]sum+1 = 100552 [14:36:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1005.00 Внесено: 1005.00 СДАЧА: 0.00 НСП 1% : 8.90 НДС 12% : 106.78 Наличными: 1005.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 218 22.10.2024 14:36 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228254 ФПД: 240057234148802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143644&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228254&fm=240057234148802&tin=02508201610067®Number=0000000000091685&sum=100500 [14:36:41]StoreToDocumentArchive [14:36:41]shift 535 fd 228254 [14:36:41]save to /storage/0535/doc_00228254 [14:36:41]save last doc name /storage/0535/doc_00228254 to /storage/kkm_last_doc_name [14:36:41]save OK [14:36:41]Clear old archive folders... [14:36:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:36:41]tlvbuf is 0087CE80 [14:36:41]SAM_PROTO_ClearQueue [14:36:41]wFMCommunicate request_size=4 [14:36:41]MH_SAM_APDU [14:36:41]CAPDU: 80 09 00 00 [14:36:41]Write to MH i2c: E2 08 00 A7 41 80 09 00 00 00 00 00 00 5A [14:36:41]Write i2c OK [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 [14:36:41]MH_I2C_Read... [14:36:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:41]Read from MH i2c: E2 03 00 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 03 00 A7 41 00 90 00 5C [14:36:41]RAPDU: 90 00 [14:36:41]wFMCommunicate OK [14:36:41]SAM_PROTO_ClearQueue done [14:36:41]KKMCreateOFDPacket [14:36:41]OFDProtocolAddRootSTLVToBuf [14:36:41]FM_MakeSignedData [14:36:41]FM_MakeSignedData [14:36:41]SAM_PROTO_SignData [14:36:41]wFMCommunicate request_size=4 [14:36:41]MH_SAM_APDU [14:36:41]CAPDU: 80 0D 01 02 [14:36:41]Write to MH i2c: E2 08 00 A8 41 80 0D 01 02 00 00 00 00 62 [14:36:41]Write i2c OK [14:36:41]MH_I2C_Read... [14:36:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:41]Read from MH i2c: E2 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 03 00 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 03 00 A8 41 00 90 00 5D [14:36:41]RAPDU: 90 00 [14:36:41]wFMCommunicate OK [14:36:41]wFMCommunicate request_size=255 [14:36:41]MH_SAM_APDU [14:36: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 B6 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 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 B6 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 DA 00 00 00 F4 03 04 00 7C B8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9E 7B 03 00 35 04 06 00 DA [14:36:41]Write to MH i2c: E2 02 01 A9 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 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 B6 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 DA 00 00 00 F4 03 04 00 7C B8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9E 7B 03 00 35 04 06 00 DA 00 00 21 [14:36:41]Write i2c OK [14:36:41]MH_I2C_Read... [14:36:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:41]Read from MH i2c: E2 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 03 00 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 03 00 A9 41 00 90 00 5E [14:36:41]RAPDU: 90 00 [14:36:41]wFMCommunicate OK [14:36:41]wFMCommunicate request_size=10 [14:36:41]MH_SAM_APDU [14:36:41]CAPDU: 80 0D 02 02 05 54 AE 2A CD C2 [14:36:41]Write to MH i2c: E2 0D 00 AA 41 80 0D 02 02 05 00 54 AE 2A CD C2 00 00 2A [14:36:41]Write i2c OK [14:36:41]MH_I2C_Read... [14:36:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:42]Read from MH i2c: E2 [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: E2 03 00 [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: E2 03 00 AA 41 00 90 00 5F [14:36:42]RAPDU: 90 00 [14:36:42]wFMCommunicate OK [14:36:42]wFMCommunicate request_size=4 [14:36:42]MH_SAM_APDU [14:36:42]CAPDU: 80 0D 03 02 [14:36:42]Write to MH i2c: E2 08 00 AB 41 80 0D 03 02 00 00 00 00 67 [14:36:42]Write i2c OK [14:36:42]MH_I2C_Read... [14:36:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:42]Read from MH i2c: E2 [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: E2 0B 00 [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: E2 0B 00 AB 41 00 42 18 95 53 4A 85 7E 20 90 00 17 [14:36:42]RAPDU: 42 18 95 53 4A 85 7E 20 90 00 [14:36:42]wFMCommunicate OK [14:36:42]SAM_PROTO_SignData done [14:36:42]FM_MakeSignedData done [14:36:42]CreateOFDProtocolMessage [14:36:42]wFMCommunicate request_size=4 [14:36:42]MH_SAM_APDU [14:36:42]CAPDU: 80 11 00 00 [14:36:42]Write to MH i2c: E2 08 00 AC 41 80 11 00 00 00 00 00 00 67 [14:36:42]Write i2c OK [14:36:42]MH_I2C_Read... [14:36:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:42]Read from MH i2c: E2 [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: E2 17 00 [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: E2 17 00 AC 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BE [14:36:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:36:42]wFMCommunicate OK [14:36:42]CreateOFDProtocolMessage done [14:36:42]OFDSenderStorePacket 228254 [14:36:42]StoreOFDPacket docnum=228254 [14:36:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 3D 04 07 01 97 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 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 B6 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 DA 00 00 00 F4 03 04 00 7C B8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9E 7B 03 00 35 04 06 00 DA 54 AE 2A CD C2 42 18 95 53 4A 85 7E 20 [14:36:42]CheckFolder [14:36:42]dirname=/storage/ofd_packets [14:36:42]CheckFolder done [14:36:42]ProducePacketName [14:36:42]name=ofd_packets/00228254 [14:36:42]NVStorageSaveData ofd_packets/00228254 [14:36:42]File name is /storage/ofd_packets/00228254 [14:36:42]Write 301 bytes [14:36:42]NVStorageSaveData done [14:36:42]OFDSenderStorePacket done [14:36:42]KKMCreateOFDPacket done [14:36:42]NVStorageSaveData kkm_last_timestamp [14:36:42]File name is /storage/kkm_last_timestamp [14:36:42]Write 4 bytes [14:36:42]NVStorageSaveData done [14:36:42]ExternCall_PrintAddStr [14:36:42]wPrintStart [14:36:42]Write to MH i2c: 01 00 00 AD 41 EE [14:36:42]Write i2c OK [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: 01 [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: 01 07 00 [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: 01 07 00 AD 41 00 00 00 00 00 FF 0F 03 [14:36:42]RasterBufferAndPrint [14:36:42]line Счет N : (1)1964731 [14:36:42]line ИНН: 02508201610067 [14:36:42]line Контрольно-Кассовый Чек [14:36:42]line ПРОДАЖА [14:36:42]line ТРК (МРК, ГНК) : 53 [14:36:42]line Товар: 2710124130 [14:36:42]line Аи-92-К-5 [14:36:42]line 15.030 * 66.90 [14:36:42]line = 1005.51 [14:36:42]line НДС 12% НСП 1% [14:36:42]line > о реализуемом товаре [14:36:42]line ОКРУГЛЕНИЕ: -0.51 [14:36:42]line ИТОГО: 1005.00 [14:36:42]line Внесено: 1005.00 [14:36:42]line СДАЧА: 0.00 [14:36:42]line НСП 1% : 8.90 [14:36:42]line НДС 12% : 106.78 [14:36:42]line Наличными: 1005.00 [14:36:42]line Безнал.: 0.00 [14:36:42]line Место: АЗС № 133 "Партнер Нефть" [14:36:42]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [14:36:42]line СНО: Общий режим [14:36:42]line Чек 218 22.10.2024 14:36 [14:36:42]line Смена: 535 ФФД: 1.0 [14:36:42]line ЗНМ: 0300000091 [14:36:42]line РНМ: 0000000000091685 [14:36:42]line Версия ККМ: 001 [14:36:42]line ФМ: 0000000000871839 [14:36:42]line ФД: 228254 [14:36:42]line ФПД: 240057234148802 [14:36:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143644&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228254&fm=240057234148802&tin=02508201610067®Number=0000000000091685&sum=100500 [14:36:42]OFD Sender: Processing packet 228254 [packets to send 38, broken 37] [14:36:42]ProducePacketName [14:36:42]name=ofd_packets/00228254 [14:36:42]OFD Sender: To server: pG, [14:36:42]CommunicateWithHost lk.salyk.kg:30040 [14:36:42]ConnectInit lk.salyk.kg [14:36:42]written 0, free lines is 4095 [14:36:42]Connected sock=10 [14:36:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 3D 04 07 01 97 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 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 B6 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 DA 00 00 00 F4 03 04 00 7C B8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9E 7B 03 00 35 04 06 00 DA 54 AE 2A CD C2 42 18 95 53 4A 85 7E 20 [14:36:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 31 B5 47 00 66 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9E 7B 03 00 F4 03 04 00 75 63 17 67 B6 04 01 00 00 89 49 54 C5 BB 16 78 A0 [14:36:42]CommunicateWithHost err = 0 [14:36:42]CheckOFDResponse [14:36:42]1017 (14) - 77093643461234 [14:36:42]1041 (16) - 0000000000871839 [14:36:42]1040 (4) - 228254 [14:36:42]1012 (4) - 22.10.2024 08:33 [14:36:42]1206 (1) - 0 [14:36:42]OFD Sender: Remove packet 228254 [14:36:42]ProducePacketName [14:36:42]name=ofd_packets/00228254 [14:36:42]NVStorageDeleteData [14:36:42]Write to MH i2c: 01 00 00 D7 41 18 [14:36:42]Write i2c OK [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: 01 [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: 01 07 00 [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: 01 07 00 D7 41 00 00 00 00 00 C3 0C EE [14:36:42]RasterBufferAndPrint [14:36:42]line [14:36:42]line [14:36:42]line [14:36:42]line [14:36:42]line [14:36:42]written 0, free lines is 3271 [14:36:42]MH_Cut [14:36:42]Write to MH i2c: D1 01 00 DE 41 01 F1 [14:36:42]Write i2c OK [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: D1 [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: D1 01 00 [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: D1 01 00 DE 41 00 F0 [14:36:42]Write to MH i2c: 01 00 00 DF 41 20 [14:36:42]Write i2c OK [14:36:42]MH_I2C_Read... [14:36:43]OFD Sender: No OFD packet to send [14:36:43]*** Cut start [14:36:43]*** Partial cut [14:36:43]*** CUTSNS_PIN = 1 [14:36:43]*** CUTSNS_PIN = 0 [14:36:44]*** Brake cut motor [14:36:44]Read from MH i2c: 01 [14:36:44]MH_I2C_Read... [14:36:44]*** Stop cut motor [14:36:44]*** Cut end [14:36:44]Read from MH i2c: 01 07 00 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: 01 07 00 DF 41 00 00 00 00 00 FF 0F 35 [14:36:44]process_action close_receipt done [14:36:44]requested_data is exist [14:36:44]produce_requested_data [14:36:44]requested_item fm.sn is exist - process it [14:36:44]wFMCommunicate request_size=4 [14:36:44]MH_SAM_APDU [14:36:44]CAPDU: 80 11 00 00 [14:36:44]Write to MH i2c: E2 08 00 E0 41 80 11 00 00 00 00 00 00 9B [14:36:44]Write i2c OK [14:36:44]MH_I2C_Read... [14:36:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:44]Read from MH i2c: E2 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: E2 17 00 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: E2 17 00 E0 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F2 [14:36:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:36:44]wFMCommunicate OK [14:36:44]requested_item fd.num is exist - process it [14:36:44]SAM_PROTO_GetFieldsCounters [14:36:44]wFMCommunicate request_size=4 [14:36:44]MH_SAM_APDU [14:36:44]CAPDU: 80 13 00 00 [14:36:44]Write to MH i2c: E2 08 00 E1 41 80 13 00 00 00 00 00 00 9E [14:36:44]Write i2c OK [14:36:44]MH_I2C_Read... [14:36:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:44]Read from MH i2c: E2 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: E2 62 00 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: E2 62 00 E1 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9E 7B 03 00 0E 04 04 00 17 02 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 8A [14:36:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9E 7B 03 00 0E 04 04 00 17 02 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 [14:36:44]wFMCommunicate OK [14:36:44]SAM_PROTO_GetFieldsCounters done [14:36:44]requested_item shift.num is exist - process it [14:36:44]requested_item shift.opened is exist - process it [14:36:44]req_shift_opened [14:36:44]FM_GetShiftState [14:36:44]SAM_PROTO_GetShiftState [14:36:44]wFMCommunicate request_size=4 [14:36:44]MH_SAM_APDU [14:36:44]CAPDU: 80 13 01 00 [14:36:44]Write to MH i2c: E2 08 00 E2 41 80 13 01 00 00 00 00 00 A0 [14:36:44]Write i2c OK [14:36:44]MH_I2C_Read... [14:36:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:44]Read from MH i2c: E2 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: E2 0E 00 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: E2 0E 00 E2 41 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 67 [14:36:44]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:36:44]wFMCommunicate OK [14:36:44]SAM_PROTO_GetShiftState done [14:36:44]FM_GetShiftState done [14:36:44]req_shift_opened done [14:36:44]requested_item shift.open_date is exist - process it [14:36:44]req_shift_open_date [14:36:44]req_shift_open_date done [14:36:44]produce_requested_data done [14:36:44]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228254,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [14:36:44]process_action_free close_receipt [14:36:44]json_value_free [14:36:44]json_value_free done [14:36:44]process_json_proto returns [14:36:44]Send response to host [14:36:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228254,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [14:36:44]free response buf [14:36:44]execute_script done [14:36:44]execute_script returns [14:36:44]free content buf [14:36:44]Sock 7.Close socket [14:36:44]Sock 7.Thread stoped [14:36:48]OFD Sender: No OFD packet to send [14:36:53]OFD Sender: No OFD packet to send [14:36:58]OFD Sender: No OFD packet to send [14:37:03]OFD Sender: No OFD packet to send [14:37:08]OFD Sender: No OFD packet to send [14:37:10]accept exits with 9 [14:37:10]New connection [14:37:10]New thread 3066994020 created [14:37:10]Thread 3067137380 joined [14:37:10]Waiting for new connection... [14:37:10] Sock 9.Parse request [14:37:10]Sock 9.Check first char [14:37:10]Sock 9.First char is OK [14:37:10]request: POST /json_proto HTTP/1.0 [14:37:10]Method: POST [14:37:10]URL: /json_proto [14:37:10]Method is POST - this is cgi request [14:37:10]url: /json_proto [14:37:10]query_string will be loaded in cgi processing [14:37:10]execute_cgi json_proto POST (null) [14:37:10]execute_cgi path=json_proto method=POST [14:37:10]POST find Content-Length [14:37:10]Host: 172.17.44.195:8080 [14:37:10]Content-Length: 673 [14:37:10]Content-Type: application/json [14:37:10] [14:37:10]POST finish read [14:37:10]Found Content-Length = 673 [14:37:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 10.290, "sum" : 400.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:10]execute_script... [14:37: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)1964732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 10.290, "sum" : 400.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:10]POST & json_proto [14:37:10]process_json_proto [14:37:10]json parsed OK: [14:37:10]protocol is kg_v1.0 [14:37:10]action value=close_receipt [14:37:10]process_action close_receipt [14:37:10]cmd_close_receipt [14:37:10]MH_GetDate [14:37:10]Write to MH i2c: F0 00 00 E3 41 13 [14:37:10]Write i2c OK [14:37:10]MH_I2C_Read... [14:37:10]Read from MH i2c: F0 [14:37:10]MH_I2C_Read... [14:37:10]Read from MH i2c: F0 09 00 [14:37:10]MH_I2C_Read... [14:37:10]Read from MH i2c: F0 09 00 E3 41 00 9A B8 17 67 82 C9 CF 66 6C [14:37:10]GetLastDocTimeStamp 1729607804 [14:37:10]current date 1729607834 [14:37:10]FM_GetShiftState [14:37:10]SAM_PROTO_GetShiftState [14:37:10]wFMCommunicate request_size=4 [14:37:10]MH_SAM_APDU [14:37:10]CAPDU: 80 13 01 00 [14:37:10]Write to MH i2c: E2 08 00 E4 41 80 13 01 00 00 00 00 00 A2 [14:37:10]Write i2c OK [14:37:10]MH_I2C_Read... [14:37:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:10]Read from MH i2c: E2 [14:37:10]MH_I2C_Read... [14:37:10]Read from MH i2c: E2 0E 00 [14:37:10]MH_I2C_Read... [14:37:10]Read from MH i2c: E2 0E 00 E4 41 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 69 [14:37:10]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:37:10]wFMCommunicate OK [14:37:10]SAM_PROTO_GetShiftState done [14:37:10]FM_GetShiftState done [14:37:10]opened in 1729555538 [14:37:10]opened+sec_in_day 1729641938 [14:37:10]quantity*price = 40028 [14:37:10]sum+1 = 40029 [14:37:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.51 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 219 22.10.2024 14:37 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228255 ФПД: 147996904447208 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143714&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228255&fm=147996904447208&tin=02508201610067®Number=0000000000091685&sum=40000 [14:37:11]StoreToDocumentArchive [14:37:11]shift 535 fd 228255 [14:37:11]save to /storage/0535/doc_00228255 [14:37:11]save last doc name /storage/0535/doc_00228255 to /storage/kkm_last_doc_name [14:37:11]save OK [14:37:11]Clear old archive folders... [14:37:11]ProcessDocumentItem done err = 0, tmpTLVsize=245 [14:37:11]tlvbuf is 0085B2E0 [14:37:11]SAM_PROTO_ClearQueue [14:37:11]wFMCommunicate request_size=4 [14:37:11]MH_SAM_APDU [14:37:11]CAPDU: 80 09 00 00 [14:37:11]Write to MH i2c: E2 08 00 F1 41 80 09 00 00 00 00 00 00 A4 [14:37:11]Write i2c OK [14:37:11]MH_I2C_Read... [14:37:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:11]Read from MH i2c: E2 [14:37:11]MH_I2C_Read... [14:37:11]Read from MH i2c: E2 03 00 [14:37:11]MH_I2C_Read... [14:37:11]Read from MH i2c: E2 03 00 F1 41 00 90 00 A6 [14:37:11]RAPDU: 90 00 [14:37:11]wFMCommunicate OK [14:37:11]SAM_PROTO_ClearQueue done [14:37:11]KKMCreateOFDPacket [14:37:11]OFDProtocolAddRootSTLVToBuf [14:37:11]FM_MakeSignedData [14:37:11]FM_MakeSignedData [14:37:11]SAM_PROTO_SignData [14:37:11]wFMCommunicate request_size=4 [14:37:11]MH_SAM_APDU [14:37:11]CAPDU: 80 0D 01 02 [14:37:11]Write to MH i2c: E2 08 00 F2 41 80 0D 01 02 00 00 00 00 AC [14:37:11]Write i2c OK [14:37:11]MH_I2C_Read... [14:37:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:11]Read from MH i2c: E2 [14:37:11]MH_I2C_Read... [14:37:11]Read from MH i2c: E2 03 00 [14:37:11]MH_I2C_Read... [14:37:11]Read from MH i2c: E2 03 00 F2 41 00 90 00 A7 [14:37:11]RAPDU: 90 00 [14:37:11]wFMCommunicate OK [14:37:11]wFMCommunicate request_size=254 [14:37:11]MH_SAM_APDU [14:37:11]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5C 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 DB 00 00 00 F4 03 04 00 9A B8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9F 7B 03 00 35 04 06 00 86 9A 36 EA DC E8 [14:37:11]Write to MH i2c: E2 01 01 F3 41 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5C 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 DB 00 00 00 F4 03 04 00 9A B8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9F 7B 03 00 35 04 06 00 86 9A 36 EA DC E8 00 00 A2 [14:37:11]Write i2c OK [14:37:11]MH_I2C_Read... [14:37:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:11]Read from MH i2c: E2 [14:37:11]MH_I2C_Read... [14:37:11]Read from MH i2c: E2 03 00 [14:37:11]MH_I2C_Read... [14:37:11]Read from MH i2c: E2 03 00 F3 41 00 90 00 A8 [14:37:11]RAPDU: 90 00 [14:37:11]wFMCommunicate OK [14:37:11]wFMCommunicate request_size=4 [14:37:11]MH_SAM_APDU [14:37:11]CAPDU: 80 0D 03 02 [14:37:11]Write to MH i2c: E2 08 00 F4 41 80 0D 03 02 00 00 00 00 B0 [14:37:11]Write i2c OK [14:37:11]MH_I2C_Read... [14:37:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:12]Read from MH i2c: E2 [14:37:12]MH_I2C_Read... [14:37:12]Read from MH i2c: E2 0B 00 [14:37:12]MH_I2C_Read... [14:37:12]Read from MH i2c: E2 0B 00 F4 41 00 28 C0 EA 85 1C E1 83 F2 90 00 7A [14:37:12]RAPDU: 28 C0 EA 85 1C E1 83 F2 90 00 [14:37:12]wFMCommunicate OK [14:37:12]SAM_PROTO_SignData done [14:37:12]FM_MakeSignedData done [14:37:12]CreateOFDProtocolMessage [14:37:12]wFMCommunicate request_size=4 [14:37:12]MH_SAM_APDU [14:37:12]CAPDU: 80 11 00 00 [14:37:12]Write to MH i2c: E2 08 00 F5 41 80 11 00 00 00 00 00 00 B0 [14:37:12]Write i2c OK [14:37:12]MH_I2C_Read... [14:37:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:12]Read from MH i2c: E2 [14:37:12]MH_I2C_Read... [14:37:12]Read from MH i2c: E2 17 00 [14:37:12]MH_I2C_Read... [14:37:12]Read from MH i2c: E2 17 00 F5 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 07 [14:37:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:37:12]wFMCommunicate OK [14:37:12]CreateOFDProtocolMessage done [14:37:12]OFDSenderStorePacket 228255 [14:37:12]StoreOFDPacket docnum=228255 [14:37:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 1E 53 01 01 92 14 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5C 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 DB 00 00 00 F4 03 04 00 9A B8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9F 7B 03 00 35 04 06 00 86 9A 36 EA DC E8 28 C0 EA 85 1C E1 83 F2 [14:37:12]CheckFolder [14:37:12]dirname=/storage/ofd_packets [14:37:12]CheckFolder done [14:37:12]ProducePacketName [14:37:12]name=ofd_packets/00228255 [14:37:12]NVStorageSaveData ofd_packets/00228255 [14:37:12]File name is /storage/ofd_packets/00228255 [14:37:12]Write 295 bytes [14:37:12]NVStorageSaveData done [14:37:12]OFDSenderStorePacket done [14:37:12]KKMCreateOFDPacket done [14:37:12]NVStorageSaveData kkm_last_timestamp [14:37:12]File name is /storage/kkm_last_timestamp [14:37:12]Write 4 bytes [14:37:12]NVStorageSaveData done [14:37:12]ExternCall_PrintAddStr [14:37:12]wPrintStart [14:37:12]Write to MH i2c: 01 00 00 F6 41 37 [14:37:12]Write i2c OK [14:37:12]MH_I2C_Read... [14:37:12]Read from MH i2c: 01 [14:37:12]MH_I2C_Read... [14:37:12]Read from MH i2c: 01 07 00 [14:37:12]MH_I2C_Read... [14:37:12]Read from MH i2c: 01 07 00 F6 41 00 00 00 00 00 FF 0F 4C [14:37:12]RasterBufferAndPrint [14:37:12]line Счет N : (1)1964732 [14:37:12]line ИНН: 02508201610067 [14:37:12]line Контрольно-Кассовый Чек [14:37:12]line ПРОДАЖА [14:37:12]line ТРК (МРК, ГНК) : 71 [14:37:12]line Товар: 2711129700 [14:37:12]line ГАЗ [14:37:12]line 10.290 * 38.90 [14:37:12]line = 400.28 [14:37:12]line НДС 12% НСП 1% [14:37:12]line > о реализуемом товаре [14:37:12]line ОКРУГЛЕНИЕ: -0.28 [14:37:12]line ИТОГО: 400.00 [14:37:12]line Внесено: 400.00 [14:37:12]line СДАЧА: 0.00 [14:37:12]line НСП 1% : 3.54 [14:37:12]line НДС 12% : 42.51 [14:37:12]line Наличными: 400.00 [14:37:12]line Безнал.: 0.00 [14:37:12]line Место: АЗС № 133 "Партнер Нефть" [14:37:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [14:37:12]line СНО: Общий режим [14:37:12]line Чек 219 22.10.2024 14:37 [14:37:12]line Смена: 535 ФФД: 1.0 [14:37:12]line ЗНМ: 0300000091 [14:37:12]line РНМ: 0000000000091685 [14:37:12]line Версия ККМ: 001 [14:37:12]line ФМ: 0000000000871839 [14:37:12]line ФД: 228255 [14:37:12]line ФПД: 147996904447208 [14:37:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143714&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228255&fm=147996904447208&tin=02508201610067®Number=0000000000091685&sum=40000 [14:37:12]OFD Sender: Processing packet 228255 [packets to send 38, broken 37] [14:37:12]ProducePacketName [14:37:12]name=ofd_packets/00228255 [14:37:12]OFD Sender: To server: pG, [14:37:12]CommunicateWithHost lk.salyk.kg:30040 [14:37:12]ConnectInit lk.salyk.kg [14:37:12]written 0, free lines is 4095 [14:37:12]Connected sock=10 [14:37:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 1E 53 01 01 92 14 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5C 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 DB 00 00 00 F4 03 04 00 9A B8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9F 7B 03 00 35 04 06 00 86 9A 36 EA DC E8 28 C0 EA 85 1C E1 83 F2 [14:37:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 C0 33 47 00 CB 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9F 7B 03 00 F4 03 04 00 92 63 17 67 B6 04 01 00 00 C9 3F 0F EC BA B2 66 0D [14:37:12]CommunicateWithHost err = 0 [14:37:12]CheckOFDResponse [14:37:12]1017 (14) - 77093643461234 [14:37:12]1041 (16) - 0000000000871839 [14:37:12]1040 (4) - 228255 [14:37:12]1012 (4) - 22.10.2024 08:34 [14:37:12]1206 (1) - 0 [14:37:12]OFD Sender: Remove packet 228255 [14:37:12]ProducePacketName [14:37:12]name=ofd_packets/00228255 [14:37:12]NVStorageDeleteData [14:37:12]Write to MH i2c: 01 00 00 20 42 62 [14:37:12]Write i2c OK [14:37:12]MH_I2C_Read... [14:37:12]Read from MH i2c: 01 [14:37:12]MH_I2C_Read... [14:37:12]Read from MH i2c: 01 07 00 [14:37:12]MH_I2C_Read... [14:37:12]Read from MH i2c: 01 07 00 20 42 00 00 00 00 00 C9 0C 3E [14:37:12]RasterBufferAndPrint [14:37:12]line [14:37:12]line [14:37:12]line [14:37:12]line [14:37:12]line [14:37:12]written 0, free lines is 3279 [14:37:12]MH_Cut [14:37:12]Write to MH i2c: D1 01 00 27 42 01 3B [14:37:12]Write i2c OK [14:37:12]MH_I2C_Read... [14:37:12]Read from MH i2c: D1 [14:37:12]MH_I2C_Read... [14:37:12]Read from MH i2c: D1 01 00 [14:37:12]MH_I2C_Read... [14:37:12]Read from MH i2c: D1 01 00 27 42 00 3A [14:37:12]Write to MH i2c: 01 00 00 28 42 6A [14:37:12]Write i2c OK [14:37:12]MH_I2C_Read... [14:37:13]OFD Sender: No OFD packet to send [14:37:13]*** Cut start [14:37:13]*** Partial cut [14:37:13]*** CUTSNS_PIN = 1 [14:37:13]*** CUTSNS_PIN = 0 [14:37:14]*** Brake cut motor [14:37:14]Read from MH i2c: 01 [14:37:14]MH_I2C_Read... [14:37:14]*** Stop cut motor [14:37:14]*** Cut end [14:37:14]Read from MH i2c: 01 07 00 [14:37:14]MH_I2C_Read... [14:37:14]Read from MH i2c: 01 07 00 28 42 00 00 00 00 00 FF 0F 7F [14:37:14]process_action close_receipt done [14:37:14]requested_data is exist [14:37:14]produce_requested_data [14:37:14]requested_item fm.sn is exist - process it [14:37:14]wFMCommunicate request_size=4 [14:37:14]MH_SAM_APDU [14:37:14]CAPDU: 80 11 00 00 [14:37:14]Write to MH i2c: E2 08 00 29 42 80 11 00 00 00 00 00 00 E5 [14:37:14]Write i2c OK [14:37:14]MH_I2C_Read... [14:37:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:14]Read from MH i2c: E2 [14:37:14]MH_I2C_Read... [14:37:14]Read from MH i2c: E2 17 00 [14:37:14]MH_I2C_Read... [14:37:14]Read from MH i2c: E2 17 00 29 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 3C [14:37:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:37:14]wFMCommunicate OK [14:37:14]requested_item fd.num is exist - process it [14:37:14]SAM_PROTO_GetFieldsCounters [14:37:14]wFMCommunicate request_size=4 [14:37:14]MH_SAM_APDU [14:37:14]CAPDU: 80 13 00 00 [14:37:14]Write to MH i2c: E2 08 00 2A 42 80 13 00 00 00 00 00 00 E8 [14:37:14]Write i2c OK [14:37:14]MH_I2C_Read... [14:37:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:14]Read from MH i2c: E2 [14:37:14]MH_I2C_Read... [14:37:14]Read from MH i2c: E2 62 00 [14:37:14]MH_I2C_Read... [14:37:14]Read from MH i2c: E2 62 00 2A 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9F 7B 03 00 0E 04 04 00 17 02 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 D8 [14:37:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9F 7B 03 00 0E 04 04 00 17 02 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 [14:37:14]wFMCommunicate OK [14:37:14]SAM_PROTO_GetFieldsCounters done [14:37:14]requested_item shift.num is exist - process it [14:37:14]requested_item shift.opened is exist - process it [14:37:14]req_shift_opened [14:37:14]FM_GetShiftState [14:37:14]SAM_PROTO_GetShiftState [14:37:14]wFMCommunicate request_size=4 [14:37:14]MH_SAM_APDU [14:37:14]CAPDU: 80 13 01 00 [14:37:14]Write to MH i2c: E2 08 00 2B 42 80 13 01 00 00 00 00 00 EA [14:37:14]Write i2c OK [14:37:14]MH_I2C_Read... [14:37:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:14]Read from MH i2c: E2 [14:37:14]MH_I2C_Read... [14:37:14]Read from MH i2c: E2 0E 00 [14:37:14]MH_I2C_Read... [14:37:14]Read from MH i2c: E2 0E 00 2B 42 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 B1 [14:37:14]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:37:14]wFMCommunicate OK [14:37:14]SAM_PROTO_GetShiftState done [14:37:14]FM_GetShiftState done [14:37:14]req_shift_opened done [14:37:14]requested_item shift.open_date is exist - process it [14:37:14]req_shift_open_date [14:37:14]req_shift_open_date done [14:37:14]produce_requested_data done [14:37:14]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228255,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [14:37:14]process_action_free close_receipt [14:37:14]json_value_free [14:37:14]json_value_free done [14:37:14]process_json_proto returns [14:37:14]Send response to host [14:37:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228255,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [14:37:14]free response buf [14:37:14]execute_script done [14:37:14]execute_script returns [14:37:14]free content buf [14:37:14]Sock 9.Close socket [14:37:14]Sock 9.Thread stoped [14:37:18]OFD Sender: No OFD packet to send [14:37:23]OFD Sender: No OFD packet to send [14:37:28]OFD Sender: No OFD packet to send [14:37:29]accept exits with 7 [14:37:29]New connection [14:37:29]New thread 3067137380 created [14:37:29]Thread 3066994020 joined [14:37:29]Waiting for new connection... [14:37:29] Sock 7.Parse request [14:37:29]Sock 7.Check first char [14:37:29]Sock 7.First char is OK [14:37:29]request: POST /json_proto HTTP/1.0 [14:37:29]Method: POST [14:37:29]URL: /json_proto [14:37:29]Method is POST - this is cgi request [14:37:29]url: /json_proto [14:37:29]query_string will be loaded in cgi processing [14:37:29]execute_cgi json_proto POST (null) [14:37:29]execute_cgi path=json_proto method=POST [14:37:29]POST find Content-Length [14:37:29]Host: 172.17.44.195:8080 [14:37:29]Content-Length: 679 [14:37:29]Content-Type: application/json [14:37:29] [14:37:29]POST finish read [14:37:29]Found Content-Length = 679 [14:37:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 12.130, "sum" : 900.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:29]execute_script... [14:37: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)1964734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 12.130, "sum" : 900.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:29]POST & json_proto [14:37:29]process_json_proto [14:37:29]json parsed OK: [14:37:29]protocol is kg_v1.0 [14:37:29]action value=close_receipt [14:37:29]process_action close_receipt [14:37:29]cmd_close_receipt [14:37:29]MH_GetDate [14:37:29]Write to MH i2c: F0 00 00 2C 42 5D [14:37:29]Write i2c OK [14:37:29]MH_I2C_Read... [14:37:29]Read from MH i2c: F0 [14:37:29]MH_I2C_Read... [14:37:29]Read from MH i2c: F0 09 00 [14:37:29]MH_I2C_Read... [14:37:29]Read from MH i2c: F0 09 00 2C 42 00 AE B8 17 67 82 C9 CF 66 CA [14:37:29]GetLastDocTimeStamp 1729607834 [14:37:29]current date 1729607854 [14:37:29]FM_GetShiftState [14:37:29]SAM_PROTO_GetShiftState [14:37:29]wFMCommunicate request_size=4 [14:37:29]MH_SAM_APDU [14:37:29]CAPDU: 80 13 01 00 [14:37:29]Write to MH i2c: E2 08 00 2D 42 80 13 01 00 00 00 00 00 EC [14:37:29]Write i2c OK [14:37:29]MH_I2C_Read... [14:37:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:29]Read from MH i2c: E2 [14:37:29]MH_I2C_Read... [14:37:29]Read from MH i2c: E2 0E 00 [14:37:29]MH_I2C_Read... [14:37:29]Read from MH i2c: E2 0E 00 2D 42 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 B3 [14:37:29]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:37:29]wFMCommunicate OK [14:37:29]SAM_PROTO_GetShiftState done [14:37:29]FM_GetShiftState done [14:37:29]opened in 1729555538 [14:37:29]opened+sec_in_day 1729641938 [14:37:29]quantity*price = 90004 [14:37:29]sum+1 = 90006 [14:37:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.96 НДС 12% : 95.58 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 220 22.10.2024 14:37 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228256 ФПД: 264948408715019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143734&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228256&fm=264948408715019&tin=02508201610067®Number=0000000000091685&sum=90000 [14:37:30]StoreToDocumentArchive [14:37:30]shift 535 fd 228256 [14:37:30]save to /storage/0535/doc_00228256 [14:37:30]save last doc name /storage/0535/doc_00228256 to /storage/kkm_last_doc_name [14:37:30]save OK [14:37:30]Clear old archive folders... [14:37:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:37:30]tlvbuf is 008E7280 [14:37:30]SAM_PROTO_ClearQueue [14:37:30]wFMCommunicate request_size=4 [14:37:30]MH_SAM_APDU [14:37:30]CAPDU: 80 09 00 00 [14:37:30]Write to MH i2c: E2 08 00 3A 42 80 09 00 00 00 00 00 00 EE [14:37:30]Write i2c OK [14:37:30]MH_I2C_Read... [14:37:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:30]Read from MH i2c: E2 [14:37:30]MH_I2C_Read... [14:37:30]Read from MH i2c: E2 03 00 [14:37:30]MH_I2C_Read... [14:37:30]Read from MH i2c: E2 03 00 3A 42 00 90 00 F0 [14:37:30]RAPDU: 90 00 [14:37:30]wFMCommunicate OK [14:37:30]SAM_PROTO_ClearQueue done [14:37:30]KKMCreateOFDPacket [14:37:30]OFDProtocolAddRootSTLVToBuf [14:37:30]FM_MakeSignedData [14:37:30]FM_MakeSignedData [14:37:30]SAM_PROTO_SignData [14:37:30]wFMCommunicate request_size=4 [14:37:30]MH_SAM_APDU [14:37:30]CAPDU: 80 0D 01 02 [14:37:30]Write to MH i2c: E2 08 00 3B 42 80 0D 01 02 00 00 00 00 F6 [14:37:31]Write i2c OK [14:37:31]MH_I2C_Read... [14:37:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:31]Read from MH i2c: E2 [14:37:31]MH_I2C_Read... [14:37:31]Read from MH i2c: E2 03 00 [14:37:31]MH_I2C_Read... [14:37:31]Read from MH i2c: E2 03 00 3B 42 00 90 00 F1 [14:37:31]RAPDU: 90 00 [14:37:31]wFMCommunicate OK [14:37:31]wFMCommunicate request_size=255 [14:37:31]MH_SAM_APDU [14:37:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 AE B8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A0 7B 03 00 35 04 06 00 F0 [14:37:31]Write to MH i2c: E2 02 01 3C 42 80 0D 02 02 FA 00 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 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 AE B8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A0 7B 03 00 35 04 06 00 F0 00 00 0B [14:37:31]Write i2c OK [14:37:31]MH_I2C_Read... [14:37:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:31]Read from MH i2c: E2 [14:37:31]MH_I2C_Read... [14:37:31]Read from MH i2c: E2 03 00 [14:37:31]MH_I2C_Read... [14:37:31]Read from MH i2c: E2 03 00 3C 42 00 90 00 F2 [14:37:31]RAPDU: 90 00 [14:37:31]wFMCommunicate OK [14:37:31]wFMCommunicate request_size=10 [14:37:31]MH_SAM_APDU [14:37:31]CAPDU: 80 0D 02 02 05 F8 1B C9 07 0B [14:37:31]Write to MH i2c: E2 0D 00 3D 42 80 0D 02 02 05 00 F8 1B C9 07 0B 00 00 F1 [14:37:31]Write i2c OK [14:37:31]MH_I2C_Read... [14:37:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:31]Read from MH i2c: E2 [14:37:31]MH_I2C_Read... [14:37:31]Read from MH i2c: E2 03 00 [14:37:31]MH_I2C_Read... [14:37:31]Read from MH i2c: E2 03 00 3D 42 00 90 00 F3 [14:37:31]RAPDU: 90 00 [14:37:31]wFMCommunicate OK [14:37:31]wFMCommunicate request_size=4 [14:37:31]MH_SAM_APDU [14:37:31]CAPDU: 80 0D 03 02 [14:37:31]Write to MH i2c: E2 08 00 3E 42 80 0D 03 02 00 00 00 00 FB [14:37:31]Write i2c OK [14:37:31]MH_I2C_Read... [14:37:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:31]Read from MH i2c: E2 [14:37:31]MH_I2C_Read... [14:37:31]Read from MH i2c: E2 0B 00 [14:37:31]MH_I2C_Read... [14:37:31]Read from MH i2c: E2 0B 00 3E 42 00 54 6F DD ED 58 1E 03 70 90 00 72 [14:37:31]RAPDU: 54 6F DD ED 58 1E 03 70 90 00 [14:37:31]wFMCommunicate OK [14:37:31]SAM_PROTO_SignData done [14:37:31]FM_MakeSignedData done [14:37:31]CreateOFDProtocolMessage [14:37:31]wFMCommunicate request_size=4 [14:37:31]MH_SAM_APDU [14:37:31]CAPDU: 80 11 00 00 [14:37:31]Write to MH i2c: E2 08 00 3F 42 80 11 00 00 00 00 00 00 FB [14:37:31]Write i2c OK [14:37:31]MH_I2C_Read... [14:37:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:31]Read from MH i2c: E2 [14:37:31]MH_I2C_Read... [14:37:31]Read from MH i2c: E2 17 00 [14:37:31]MH_I2C_Read... [14:37:31]Read from MH i2c: E2 17 00 3F 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 52 [14:37:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:37:31]wFMCommunicate OK [14:37:31]CreateOFDProtocolMessage done [14:37:31]OFDSenderStorePacket 228256 [14:37:31]StoreOFDPacket docnum=228256 [14:37:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 CD B6 07 01 3E 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 AE B8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A0 7B 03 00 35 04 06 00 F0 F8 1B C9 07 0B 54 6F DD ED 58 1E 03 70 [14:37:31]CheckFolder [14:37:31]dirname=/storage/ofd_packets [14:37:31]CheckFolder done [14:37:31]ProducePacketName [14:37:31]name=ofd_packets/00228256 [14:37:31]NVStorageSaveData ofd_packets/00228256 [14:37:31]File name is /storage/ofd_packets/00228256 [14:37:31]Write 301 bytes [14:37:31]NVStorageSaveData done [14:37:31]OFDSenderStorePacket done [14:37:31]KKMCreateOFDPacket done [14:37:31]NVStorageSaveData kkm_last_timestamp [14:37:31]File name is /storage/kkm_last_timestamp [14:37:31]Write 4 bytes [14:37:31]NVStorageSaveData done [14:37:31]ExternCall_PrintAddStr [14:37:31]wPrintStart [14:37:31]Write to MH i2c: 01 00 00 40 42 82 [14:37:31]Write i2c OK [14:37:31]MH_I2C_Read... [14:37:31]Read from MH i2c: 01 [14:37:31]MH_I2C_Read... [14:37:31]Read from MH i2c: 01 07 00 [14:37:31]MH_I2C_Read... [14:37:31]Read from MH i2c: 01 07 00 40 42 00 00 00 00 00 FF 0F 97 [14:37:31]RasterBufferAndPrint [14:37:31]line Счет N : (1)1964734 [14:37:31]line ИНН: 02508201610067 [14:37:31]line Контрольно-Кассовый Чек [14:37:31]line ПРОДАЖА [14:37:31]line ТРК (МРК, ГНК) : 64 [14:37:31]line Товар: 2710124500 [14:37:31]line Аи-95-К-5 [14:37:31]line 12.130 * 74.20 [14:37:31]line = 900.05 [14:37:31]line НДС 12% НСП 1% [14:37:31]line > о реализуемом товаре [14:37:31]line ОКРУГЛЕНИЕ: -0.05 [14:37:31]line ИТОГО: 900.00 [14:37:31]line Внесено: 900.00 [14:37:31]line СДАЧА: 0.00 [14:37:31]line НСП 1% : 7.96 [14:37:31]line НДС 12% : 95.58 [14:37:31]line Наличными: 900.00 [14:37:31]line Безнал.: 0.00 [14:37:31]line Место: АЗС № 133 "Партнер Нефть" [14:37:31]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [14:37:31]line СНО: Общий режим [14:37:31]line Чек 220 22.10.2024 14:37 [14:37:31]line Смена: 535 ФФД: 1.0 [14:37:31]line ЗНМ: 0300000091 [14:37:31]line РНМ: 0000000000091685 [14:37:31]line Версия ККМ: 001 [14:37:31]line ФМ: 0000000000871839 [14:37:31]line ФД: 228256 [14:37:31]line ФПД: 264948408715019 [14:37:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143734&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228256&fm=264948408715019&tin=02508201610067®Number=0000000000091685&sum=90000 [14:37:31]written 0, free lines is 4095 [14:37:31]OFD Sender: Processing packet 228256 [packets to send 38, broken 37] [14:37:31]ProducePacketName [14:37:31]name=ofd_packets/00228256 [14:37:31]OFD Sender: To server: pG, [14:37:31]CommunicateWithHost lk.salyk.kg:30040 [14:37:31]ConnectInit lk.salyk.kg [14:37:31]Connected sock=10 [14:37:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 CD B6 07 01 3E 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 AE B8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A0 7B 03 00 35 04 06 00 F0 F8 1B C9 07 0B 54 6F DD ED 58 1E 03 70 [14:37:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 56 84 47 00 CF 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 38 37 31 38 33 39 10 04 04 00 A0 7B 03 00 F4 03 04 00 A6 63 17 67 B6 04 01 00 00 2A B3 99 88 29 0C FA B0 [14:37:32]CommunicateWithHost err = 0 [14:37:32]CheckOFDResponse [14:37:32]1017 (14) - 77093643461234 [14:37:32]1041 (16) - 0000000000871839 [14:37:32]1040 (4) - 228256 [14:37:32]1012 (4) - 22.10.2024 08:34 [14:37:32]1206 (1) - 0 [14:37:32]OFD Sender: Remove packet 228256 [14:37:32]ProducePacketName [14:37:32]name=ofd_packets/00228256 [14:37:32]NVStorageDeleteData [14:37:32]Write to MH i2c: 01 00 00 6A 42 AC [14:37:32]Write i2c OK [14:37:32]MH_I2C_Read... [14:37:32]Read from MH i2c: 01 [14:37:32]MH_I2C_Read... [14:37:32]Read from MH i2c: 01 07 00 [14:37:32]MH_I2C_Read... [14:37:32]Read from MH i2c: 01 07 00 6A 42 00 00 00 00 00 C2 0C 81 [14:37:32]RasterBufferAndPrint [14:37:32]line [14:37:32]line [14:37:32]line [14:37:32]line [14:37:32]line [14:37:32]written 0, free lines is 3272 [14:37:32]MH_Cut [14:37:32]Write to MH i2c: D1 01 00 71 42 01 85 [14:37:32]Write i2c OK [14:37:32]MH_I2C_Read... [14:37:32]Read from MH i2c: D1 [14:37:32]MH_I2C_Read... [14:37:32]Read from MH i2c: D1 01 00 [14:37:32]MH_I2C_Read... [14:37:32]Read from MH i2c: D1 01 00 71 42 00 84 [14:37:32]Write to MH i2c: 01 00 00 72 42 B4 [14:37:32]Write i2c OK [14:37:32]MH_I2C_Read... [14:37:32]OFD Sender: No OFD packet to send [14:37:33]*** Cut start [14:37:33]*** Partial cut [14:37:33]*** CUTSNS_PIN = 1 [14:37:33]*** CUTSNS_PIN = 0 [14:37:33]*** Brake cut motor [14:37:33]Read from MH i2c: 01 [14:37:33]MH_I2C_Read... [14:37:33]*** Stop cut motor [14:37:33]*** Cut end [14:37:33]Read from MH i2c: 01 07 00 [14:37:33]MH_I2C_Read... [14:37:33]Read from MH i2c: 01 07 00 72 42 00 00 00 00 00 FF 0F C9 [14:37:33]process_action close_receipt done [14:37:33]requested_data is exist [14:37:33]produce_requested_data [14:37:33]requested_item fm.sn is exist - process it [14:37:33]wFMCommunicate request_size=4 [14:37:33]MH_SAM_APDU [14:37:33]CAPDU: 80 11 00 00 [14:37:33]Write to MH i2c: E2 08 00 73 42 80 11 00 00 00 00 00 00 2F [14:37:33]Write i2c OK [14:37:33]MH_I2C_Read... [14:37:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:33]Read from MH i2c: E2 [14:37:33]MH_I2C_Read... [14:37:33]Read from MH i2c: E2 17 00 [14:37:33]MH_I2C_Read... [14:37:33]Read from MH i2c: E2 17 00 73 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 86 [14:37:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:37:33]wFMCommunicate OK [14:37:33]requested_item fd.num is exist - process it [14:37:33]SAM_PROTO_GetFieldsCounters [14:37:33]wFMCommunicate request_size=4 [14:37:33]MH_SAM_APDU [14:37:33]CAPDU: 80 13 00 00 [14:37:33]Write to MH i2c: E2 08 00 74 42 80 13 00 00 00 00 00 00 32 [14:37:33]Write i2c OK [14:37:33]MH_I2C_Read... [14:37:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:33]Read from MH i2c: E2 [14:37:33]MH_I2C_Read... [14:37:33]Read from MH i2c: E2 62 00 [14:37:33]MH_I2C_Read... [14:37:33]Read from MH i2c: E2 62 00 74 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A0 7B 03 00 0E 04 04 00 17 02 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 26 [14:37:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A0 7B 03 00 0E 04 04 00 17 02 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 [14:37:33]wFMCommunicate OK [14:37:33]SAM_PROTO_GetFieldsCounters done [14:37:33]requested_item shift.num is exist - process it [14:37:33]requested_item shift.opened is exist - process it [14:37:33]req_shift_opened [14:37:33]FM_GetShiftState [14:37:33]SAM_PROTO_GetShiftState [14:37:33]wFMCommunicate request_size=4 [14:37:33]MH_SAM_APDU [14:37:33]CAPDU: 80 13 01 00 [14:37:33]Write to MH i2c: E2 08 00 75 42 80 13 01 00 00 00 00 00 34 [14:37:33]Write i2c OK [14:37:33]MH_I2C_Read... [14:37:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:33]Read from MH i2c: E2 [14:37:33]MH_I2C_Read... [14:37:33]Read from MH i2c: E2 0E 00 [14:37:33]MH_I2C_Read... [14:37:33]Read from MH i2c: E2 0E 00 75 42 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 FB [14:37:33]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:37:33]wFMCommunicate OK [14:37:33]SAM_PROTO_GetShiftState done [14:37:33]FM_GetShiftState done [14:37:33]req_shift_opened done [14:37:33]requested_item shift.open_date is exist - process it [14:37:33]req_shift_open_date [14:37:33]req_shift_open_date done [14:37:33]produce_requested_data done [14:37:33]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228256,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [14:37:33]process_action_free close_receipt [14:37:33]json_value_free [14:37:33]json_value_free done [14:37:33]process_json_proto returns [14:37:33]Send response to host [14:37:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228256,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [14:37:33]free response buf [14:37:33]execute_script done [14:37:33]execute_script returns [14:37:33]free content buf [14:37:33]Sock 7.Close socket [14:37:33]Sock 7.Thread stoped [14:37:37]OFD Sender: No OFD packet to send [14:37:42]OFD Sender: No OFD packet to send [14:37:44]accept exits with 9 [14:37:44]New connection [14:37:44]New thread 3066994020 created [14:37:44]Thread 3067137380 joined [14:37:44]Waiting for new connection... [14:37:44] Sock 9.Parse request [14:37:44]Sock 9.Check first char [14:37:44]Sock 9.First char is OK [14:37:44]request: POST /json_proto HTTP/1.0 [14:37:44]Method: POST [14:37:44]URL: /json_proto [14:37:44]Method is POST - this is cgi request [14:37:44]url: /json_proto [14:37:44]query_string will be loaded in cgi processing [14:37:44]execute_cgi json_proto POST (null) [14:37:44]execute_cgi path=json_proto method=POST [14:37:44]POST find Content-Length [14:37:44]Host: 172.17.44.195:8080 [14:37:44]Content-Length: 664 [14:37:44]Content-Type: application/json [14:37:44] [14:37:44]POST finish read [14:37:44]Found Content-Length = 664 [14:37:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 15.940, "sum" : 1090.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1090.00, "total" : 1090.00, "payments": [ { "type": 0, "sum" : 1090.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:44]execute_script... [14:37:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 15.940, "sum" : 1090.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1090.00, "total" : 1090.00, "payments": [ { "type": 0, "sum" : 1090.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:44]POST & json_proto [14:37:44]process_json_proto [14:37:44]json parsed OK: [14:37:44]protocol is kg_v1.0 [14:37:44]action value=close_receipt [14:37:44]process_action close_receipt [14:37:44]cmd_close_receipt [14:37:44]MH_GetDate [14:37:44]Write to MH i2c: F0 00 00 76 42 A7 [14:37:44]Write i2c OK [14:37:44]MH_I2C_Read... [14:37:44]Read from MH i2c: F0 [14:37:44]MH_I2C_Read... [14:37:44]Read from MH i2c: F0 09 00 [14:37:44]MH_I2C_Read... [14:37:44]Read from MH i2c: F0 09 00 76 42 00 BD B8 17 67 82 C9 CF 66 23 [14:37:44]GetLastDocTimeStamp 1729607854 [14:37:44]current date 1729607869 [14:37:44]FM_GetShiftState [14:37:44]SAM_PROTO_GetShiftState [14:37:44]wFMCommunicate request_size=4 [14:37:44]MH_SAM_APDU [14:37:44]CAPDU: 80 13 01 00 [14:37:44]Write to MH i2c: E2 08 00 77 42 80 13 01 00 00 00 00 00 36 [14:37:44]Write i2c OK [14:37:44]MH_I2C_Read... [14:37:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:44]Read from MH i2c: E2 [14:37:44]MH_I2C_Read... [14:37:44]Read from MH i2c: E2 0E 00 [14:37:44]MH_I2C_Read... [14:37:44]Read from MH i2c: E2 0E 00 77 42 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 FD [14:37:44]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:37:44]wFMCommunicate OK [14:37:44]SAM_PROTO_GetShiftState done [14:37:44]FM_GetShiftState done [14:37:44]opened in 1729555538 [14:37:44]opened+sec_in_day 1729641938 [14:37:44]quantity*price = 109029 [14:37:44]sum+1 = 109031 [14:37:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1090.00 Внесено: 1090.00 СДАЧА: 0.00 НСП 1% : 9.65 НДС 12% : 115.78 Наличными: 1090.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 221 22.10.2024 14:37 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228257 ФПД: 19113961423586 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143749&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228257&fm=19113961423586&tin=02508201610067®Number=0000000000091685&sum=109000 [14:37:45]StoreToDocumentArchive [14:37:45]shift 535 fd 228257 [14:37:45]save to /storage/0535/doc_00228257 [14:37:45]save last doc name /storage/0535/doc_00228257 to /storage/kkm_last_doc_name [14:37:45]save OK [14:37:45]Clear old archive folders... [14:37:45]ProcessDocumentItem done err = 0, tmpTLVsize=244 [14:37:45]tlvbuf is 008E74B0 [14:37:45]SAM_PROTO_ClearQueue [14:37:45]wFMCommunicate request_size=4 [14:37:45]MH_SAM_APDU [14:37:45]CAPDU: 80 09 00 00 [14:37:45]Write to MH i2c: E2 08 00 84 42 80 09 00 00 00 00 00 00 38 [14:37:45]Write i2c OK [14:37:45]MH_I2C_Read... [14:37:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:45]Read from MH i2c: E2 [14:37:45]MH_I2C_Read... [14:37:45]Read from MH i2c: E2 03 00 [14:37:45]MH_I2C_Read... [14:37:45]Read from MH i2c: E2 03 00 84 42 00 90 00 3A [14:37:45]RAPDU: 90 00 [14:37:45]wFMCommunicate OK [14:37:45]SAM_PROTO_ClearQueue done [14:37:45]KKMCreateOFDPacket [14:37:45]OFDProtocolAddRootSTLVToBuf [14:37:45]FM_MakeSignedData [14:37:45]FM_MakeSignedData [14:37:45]SAM_PROTO_SignData [14:37:45]wFMCommunicate request_size=4 [14:37:45]MH_SAM_APDU [14:37:45]CAPDU: 80 0D 01 02 [14:37:45]Write to MH i2c: E2 08 00 85 42 80 0D 01 02 00 00 00 00 40 [14:37:45]Write i2c OK [14:37:45]MH_I2C_Read... [14:37:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:45]Read from MH i2c: E2 [14:37:45]MH_I2C_Read... [14:37:45]Read from MH i2c: E2 03 00 [14:37:45]MH_I2C_Read... [14:37:45]Read from MH i2c: E2 03 00 85 42 00 90 00 3B [14:37:45]RAPDU: 90 00 [14:37:45]wFMCommunicate OK [14:37:45]wFMCommunicate request_size=253 [14:37:45]MH_SAM_APDU [14:37:45]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 44 3E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E6 A9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 A9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 2D 00 00 00 00 07 04 06 00 C8 A9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 BD B8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A1 7B 03 00 35 04 06 00 11 62 50 E1 82 E2 [14:37:45]Write to MH i2c: E2 00 01 86 42 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 44 3E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E6 A9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 A9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 2D 00 00 00 00 07 04 06 00 C8 A9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 BD B8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A1 7B 03 00 35 04 06 00 11 62 50 E1 82 E2 00 00 07 [14:37:45]Write i2c OK [14:37:45]MH_I2C_Read... [14:37:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:46]Read from MH i2c: E2 [14:37:46]MH_I2C_Read... [14:37:46]Read from MH i2c: E2 03 00 [14:37:46]MH_I2C_Read... [14:37:46]Read from MH i2c: E2 03 00 86 42 00 90 00 3C [14:37:46]RAPDU: 90 00 [14:37:46]wFMCommunicate OK [14:37:46]wFMCommunicate request_size=4 [14:37:46]MH_SAM_APDU [14:37:46]CAPDU: 80 0D 03 02 [14:37:46]Write to MH i2c: E2 08 00 87 42 80 0D 03 02 00 00 00 00 44 [14:37:46]Write i2c OK [14:37:46]MH_I2C_Read... [14:37:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:46]Read from MH i2c: E2 [14:37:46]MH_I2C_Read... [14:37:46]Read from MH i2c: E2 0B 00 [14:37:46]MH_I2C_Read... [14:37:46]Read from MH i2c: E2 0B 00 87 42 00 28 09 B6 3B E6 FF E4 5A 90 00 8A [14:37:46]RAPDU: 28 09 B6 3B E6 FF E4 5A 90 00 [14:37:46]wFMCommunicate OK [14:37:46]SAM_PROTO_SignData done [14:37:46]FM_MakeSignedData done [14:37:46]CreateOFDProtocolMessage [14:37:46]wFMCommunicate request_size=4 [14:37:46]MH_SAM_APDU [14:37:46]CAPDU: 80 11 00 00 [14:37:46]Write to MH i2c: E2 08 00 88 42 80 11 00 00 00 00 00 00 44 [14:37:46]Write i2c OK [14:37:46]MH_I2C_Read... [14:37:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:46]Read from MH i2c: E2 [14:37:46]MH_I2C_Read... [14:37:46]Read from MH i2c: E2 17 00 [14:37:46]MH_I2C_Read... [14:37:46]Read from MH i2c: E2 17 00 88 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9B [14:37:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:37:46]wFMCommunicate OK [14:37:46]CreateOFDProtocolMessage done [14:37:46]OFDSenderStorePacket 228257 [14:37:46]StoreOFDPacket docnum=228257 [14:37:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 84 A8 00 01 2E 53 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 44 3E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E6 A9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 A9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 2D 00 00 00 00 07 04 06 00 C8 A9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 BD B8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A1 7B 03 00 35 04 06 00 11 62 50 E1 82 E2 28 09 B6 3B E6 FF E4 5A [14:37:46]CheckFolder [14:37:46]dirname=/storage/ofd_packets [14:37:46]CheckFolder done [14:37:46]ProducePacketName [14:37:46]name=ofd_packets/00228257 [14:37:46]NVStorageSaveData ofd_packets/00228257 [14:37:46]File name is /storage/ofd_packets/00228257 [14:37:46]Write 294 bytes [14:37:46]NVStorageSaveData done [14:37:46]OFDSenderStorePacket done [14:37:46]KKMCreateOFDPacket done [14:37:46]NVStorageSaveData kkm_last_timestamp [14:37:46]File name is /storage/kkm_last_timestamp [14:37:46]Write 4 bytes [14:37:46]NVStorageSaveData done [14:37:46]ExternCall_PrintAddStr [14:37:46]wPrintStart [14:37:46]Write to MH i2c: 01 00 00 89 42 CB [14:37:46]Write i2c OK [14:37:46]MH_I2C_Read... [14:37:46]Read from MH i2c: 01 [14:37:46]MH_I2C_Read... [14:37:46]Read from MH i2c: 01 07 00 [14:37:46]MH_I2C_Read... [14:37:46]Read from MH i2c: 01 07 00 89 42 00 00 00 00 00 FF 0F E0 [14:37:46]RasterBufferAndPrint [14:37:46]line Счет N : (1)1964733 [14:37:46]line ИНН: 02508201610067 [14:37:46]line Контрольно-Кассовый Чек [14:37:46]line ПРОДАЖА [14:37:46]line ТРК (МРК, ГНК) : 32 [14:37:46]line Товар: 2710124130 [14:37:46]line SU-92 [14:37:46]line 15.940 * 68.40 [14:37:46]line = 1090.30 [14:37:46]line НДС 12% НСП 1% [14:37:46]line > о реализуемом товаре [14:37:46]line ОКРУГЛЕНИЕ: -0.30 [14:37:46]line ИТОГО: 1090.00 [14:37:46]line Внесено: 1090.00 [14:37:46]line СДАЧА: 0.00 [14:37:46]line НСП 1% : 9.65 [14:37:46]line НДС 12% : 115.78 [14:37:46]line Наличными: 1090.00 [14:37:46]line Безнал.: 0.00 [14:37:46]line Место: АЗС № 133 "Партнер Нефть" [14:37:46]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [14:37:46]line СНО: Общий режим [14:37:46]line Чек 221 22.10.2024 14:37 [14:37:46]line Смена: 535 ФФД: 1.0 [14:37:46]line ЗНМ: 0300000091 [14:37:46]line РНМ: 0000000000091685 [14:37:46]line Версия ККМ: 001 [14:37:46]line ФМ: 0000000000871839 [14:37:46]line ФД: 228257 [14:37:46]line ФПД: 19113961423586 [14:37:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143749&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228257&fm=19113961423586&tin=02508201610067®Number=0000000000091685&sum=109000 [14:37:46]OFD Sender: Processing packet 228257 [packets to send 38, broken 37] [14:37:46]ProducePacketName [14:37:46]name=ofd_packets/00228257 [14:37:46]OFD Sender: To server: pG, [14:37:46]CommunicateWithHost lk.salyk.kg:30040 [14:37:46]ConnectInit lk.salyk.kg [14:37:46]written 0, free lines is 4095 [14:37:46]Connected sock=10 [14:37:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 84 A8 00 01 2E 53 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 44 3E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E6 A9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 A9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 2D 00 00 00 00 07 04 06 00 C8 A9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 BD B8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A1 7B 03 00 35 04 06 00 11 62 50 E1 82 E2 28 09 B6 3B E6 FF E4 5A [14:37:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 60 11 47 00 C1 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A1 7B 03 00 F4 03 04 00 B5 63 17 67 B6 04 01 00 00 38 24 50 DE 5C FC 88 68 [14:37:46]CommunicateWithHost err = 0 [14:37:46]CheckOFDResponse [14:37:46]1017 (14) - 77093643461234 [14:37:46]1041 (16) - 0000000000871839 [14:37:46]1040 (4) - 228257 [14:37:46]1012 (4) - 22.10.2024 08:35 [14:37:46]1206 (1) - 0 [14:37:46]OFD Sender: Remove packet 228257 [14:37:46]ProducePacketName [14:37:46]name=ofd_packets/00228257 [14:37:46]NVStorageDeleteData [14:37:47]Write to MH i2c: 01 00 00 B3 42 F5 [14:37:47]Write i2c OK [14:37:47]MH_I2C_Read... [14:37:47]Read from MH i2c: 01 [14:37:47]MH_I2C_Read... [14:37:47]Read from MH i2c: 01 07 00 [14:37:47]MH_I2C_Read... [14:37:47]Read from MH i2c: 01 07 00 B3 42 00 00 00 00 00 C2 0C CA [14:37:47]RasterBufferAndPrint [14:37:47]line [14:37:47]line [14:37:47]line [14:37:47]line [14:37:47]line [14:37:47]written 0, free lines is 3272 [14:37:47]MH_Cut [14:37:47]Write to MH i2c: D1 01 00 BA 42 01 CE [14:37:47]Write i2c OK [14:37:47]MH_I2C_Read... [14:37:47]Read from MH i2c: D1 [14:37:47]MH_I2C_Read... [14:37:47]Read from MH i2c: D1 01 00 [14:37:47]MH_I2C_Read... [14:37:47]Read from MH i2c: D1 01 00 BA 42 00 CD [14:37:47]Write to MH i2c: 01 00 00 BB 42 FD [14:37:47]Write i2c OK [14:37:47]MH_I2C_Read... [14:37:47]OFD Sender: No OFD packet to send [14:37:47]*** Cut start [14:37:47]*** Partial cut [14:37:47]*** CUTSNS_PIN = 1 [14:37:48]*** CUTSNS_PIN = 0 [14:37:48]*** Brake cut motor [14:37:48]Read from MH i2c: 01 [14:37:48]MH_I2C_Read... [14:37:48]*** Stop cut motor [14:37:48]*** Cut end [14:37:48]Read from MH i2c: 01 07 00 [14:37:48]MH_I2C_Read... [14:37:48]Read from MH i2c: 01 07 00 BB 42 00 00 00 00 00 FF 0F 12 [14:37:48]process_action close_receipt done [14:37:48]requested_data is exist [14:37:48]produce_requested_data [14:37:48]requested_item fm.sn is exist - process it [14:37:48]wFMCommunicate request_size=4 [14:37:48]MH_SAM_APDU [14:37:48]CAPDU: 80 11 00 00 [14:37:48]Write to MH i2c: E2 08 00 BC 42 80 11 00 00 00 00 00 00 78 [14:37:48]Write i2c OK [14:37:48]MH_I2C_Read... [14:37:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:48]Read from MH i2c: E2 [14:37:48]MH_I2C_Read... [14:37:48]Read from MH i2c: E2 17 00 [14:37:48]MH_I2C_Read... [14:37:48]Read from MH i2c: E2 17 00 BC 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CF [14:37:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:37:48]wFMCommunicate OK [14:37:48]requested_item fd.num is exist - process it [14:37:48]SAM_PROTO_GetFieldsCounters [14:37:48]wFMCommunicate request_size=4 [14:37:48]MH_SAM_APDU [14:37:48]CAPDU: 80 13 00 00 [14:37:48]Write to MH i2c: E2 08 00 BD 42 80 13 00 00 00 00 00 00 7B [14:37:48]Write i2c OK [14:37:48]MH_I2C_Read... [14:37:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:48]Read from MH i2c: E2 [14:37:48]MH_I2C_Read... [14:37:48]Read from MH i2c: E2 62 00 [14:37:48]MH_I2C_Read... [14:37:48]Read from MH i2c: E2 62 00 BD 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A1 7B 03 00 0E 04 04 00 17 02 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 73 [14:37:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A1 7B 03 00 0E 04 04 00 17 02 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 [14:37:48]wFMCommunicate OK [14:37:48]SAM_PROTO_GetFieldsCounters done [14:37:48]requested_item shift.num is exist - process it [14:37:48]requested_item shift.opened is exist - process it [14:37:48]req_shift_opened [14:37:48]FM_GetShiftState [14:37:48]SAM_PROTO_GetShiftState [14:37:48]wFMCommunicate request_size=4 [14:37:48]MH_SAM_APDU [14:37:48]CAPDU: 80 13 01 00 [14:37:48]Write to MH i2c: E2 08 00 BE 42 80 13 01 00 00 00 00 00 7D [14:37:48]Write i2c OK [14:37:48]MH_I2C_Read... [14:37:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:48]Read from MH i2c: E2 [14:37:48]MH_I2C_Read... [14:37:48]Read from MH i2c: E2 0E 00 [14:37:48]MH_I2C_Read... [14:37:48]Read from MH i2c: E2 0E 00 BE 42 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 44 [14:37:48]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:37:48]wFMCommunicate OK [14:37:48]SAM_PROTO_GetShiftState done [14:37:48]FM_GetShiftState done [14:37:48]req_shift_opened done [14:37:48]requested_item shift.open_date is exist - process it [14:37:48]req_shift_open_date [14:37:48]req_shift_open_date done [14:37:48]produce_requested_data done [14:37:48]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228257,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [14:37:48]process_action_free close_receipt [14:37:48]json_value_free [14:37:48]json_value_free done [14:37:48]process_json_proto returns [14:37:48]Send response to host [14:37:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228257,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [14:37:48]free response buf [14:37:48]execute_script done [14:37:48]execute_script returns [14:37:48]free content buf [14:37:48]Sock 9.Close socket [14:37:48]Sock 9.Thread stoped [14:37:52]OFD Sender: No OFD packet to send [14:37:57]OFD Sender: No OFD packet to send [14:38:02]OFD Sender: No OFD packet to send [14:38:07]OFD Sender: No OFD packet to send [14:38:12]OFD Sender: No OFD packet to send [14:38:17]OFD Sender: No OFD packet to send [14:38:22]OFD Sender: No OFD packet to send [14:38:27]OFD Sender: No OFD packet to send [14:38:32]OFD Sender: No OFD packet to send [14:38:37]OFD Sender: No OFD packet to send [14:38:42]OFD Sender: No OFD packet to send [14:38:47]OFD Sender: No OFD packet to send [14:38:52]OFD Sender: No OFD packet to send [14:38:52]accept exits with 7 [14:38:52]New connection [14:38:52]New thread 3067137380 created [14:38:52]Thread 3066994020 joined [14:38:52]Waiting for new connection... [14:38:52] Sock 7.Parse request [14:38:52]Sock 7.Check first char [14:38:52]Sock 7.First char is OK [14:38:52]request: POST /json_proto HTTP/1.0 [14:38:52]Method: POST [14:38:52]URL: /json_proto [14:38:52]Method is POST - this is cgi request [14:38:52]url: /json_proto [14:38:52]query_string will be loaded in cgi processing [14:38:52]execute_cgi json_proto POST (null) [14:38:52]execute_cgi path=json_proto method=POST [14:38:52]POST find Content-Length [14:38:52]Host: 172.17.44.195:8080 [14:38:52]Content-Length: 678 [14:38:52]Content-Type: application/json [14:38:52] [14:38:52]POST finish read [14:38:52]Found Content-Length = 678 [14:38:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:52]execute_script... [14:38: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)1964735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:52]POST & json_proto [14:38:52]process_json_proto [14:38:52]json parsed OK: [14:38:52]protocol is kg_v1.0 [14:38:52]action value=close_receipt [14:38:52]process_action close_receipt [14:38:52]cmd_close_receipt [14:38:52]MH_GetDate [14:38:52]Write to MH i2c: F0 00 00 BF 42 F0 [14:38:52]Write i2c OK [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: F0 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: F0 09 00 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: F0 09 00 BF 42 00 01 B9 17 67 82 C9 CF 66 B1 [14:38:52]GetLastDocTimeStamp 1729607869 [14:38:52]current date 1729607937 [14:38:52]FM_GetShiftState [14:38:52]SAM_PROTO_GetShiftState [14:38:52]wFMCommunicate request_size=4 [14:38:52]MH_SAM_APDU [14:38:52]CAPDU: 80 13 01 00 [14:38:52]Write to MH i2c: E2 08 00 C0 42 80 13 01 00 00 00 00 00 7F [14:38:52]Write i2c OK [14:38:52]MH_I2C_Read... [14:38:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:52]Read from MH i2c: E2 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: E2 0E 00 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: E2 0E 00 C0 42 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 46 [14:38:52]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:38:52]wFMCommunicate OK [14:38:52]SAM_PROTO_GetShiftState done [14:38:52]FM_GetShiftState done [14:38:52]opened in 1729555538 [14:38:52]opened+sec_in_day 1729641938 [14:38:52]quantity*price = 60027 [14:38:52]sum+1 = 60029 [14:38:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 222 22.10.2024 14:38 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228258 ФПД: 73457698497224 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143857&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228258&fm=73457698497224&tin=02508201610067®Number=0000000000091685&sum=60000 [14:38:53]StoreToDocumentArchive [14:38:53]shift 535 fd 228258 [14:38:53]save to /storage/0535/doc_00228258 [14:38:53]save last doc name /storage/0535/doc_00228258 to /storage/kkm_last_doc_name [14:38:53]save OK [14:38:53]Clear old archive folders... [14:38:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:38:53]tlvbuf is 00A81A20 [14:38:53]SAM_PROTO_ClearQueue [14:38:53]wFMCommunicate request_size=4 [14:38:53]MH_SAM_APDU [14:38:53]CAPDU: 80 09 00 00 [14:38:53]Write to MH i2c: E2 08 00 CD 42 80 09 00 00 00 00 00 00 81 [14:38:53]Write i2c OK [14:38:53]MH_I2C_Read... [14:38:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:53]Read from MH i2c: E2 [14:38:53]MH_I2C_Read... [14:38:53]Read from MH i2c: E2 03 00 [14:38:53]MH_I2C_Read... [14:38:53]Read from MH i2c: E2 03 00 CD 42 00 90 00 83 [14:38:53]RAPDU: 90 00 [14:38:53]wFMCommunicate OK [14:38:53]SAM_PROTO_ClearQueue done [14:38:53]KKMCreateOFDPacket [14:38:53]OFDProtocolAddRootSTLVToBuf [14:38:53]FM_MakeSignedData [14:38:53]FM_MakeSignedData [14:38:53]SAM_PROTO_SignData [14:38:53]wFMCommunicate request_size=4 [14:38:53]MH_SAM_APDU [14:38:53]CAPDU: 80 0D 01 02 [14:38:53]Write to MH i2c: E2 08 00 CE 42 80 0D 01 02 00 00 00 00 89 [14:38:53]Write i2c OK [14:38:53]MH_I2C_Read... [14:38:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:53]Read from MH i2c: E2 [14:38:53]MH_I2C_Read... [14:38:53]Read from MH i2c: E2 03 00 [14:38:53]MH_I2C_Read... [14:38:53]Read from MH i2c: E2 03 00 CE 42 00 90 00 84 [14:38:53]RAPDU: 90 00 [14:38:53]wFMCommunicate OK [14:38:53]wFMCommunicate request_size=255 [14:38:53]MH_SAM_APDU [14:38: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 DE 00 00 00 F4 03 04 00 01 B9 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A2 7B 03 00 35 04 06 00 42 [14:38:53]Write to MH i2c: E2 02 01 CF 42 80 0D 02 02 FA 00 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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 DE 00 00 00 F4 03 04 00 01 B9 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A2 7B 03 00 35 04 06 00 42 00 00 0F [14:38:53]Write i2c OK [14:38:53]MH_I2C_Read... [14:38:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:54]Read from MH i2c: E2 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 03 00 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 03 00 CF 42 00 90 00 85 [14:38:54]RAPDU: 90 00 [14:38:54]wFMCommunicate OK [14:38:54]wFMCommunicate request_size=10 [14:38:54]MH_SAM_APDU [14:38:54]CAPDU: 80 0D 02 02 05 CF 34 06 62 C8 [14:38:54]Write to MH i2c: E2 0D 00 D0 42 80 0D 02 02 05 00 CF 34 06 62 C8 00 00 C9 [14:38:54]Write i2c OK [14:38:54]MH_I2C_Read... [14:38:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:54]Read from MH i2c: E2 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 03 00 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 03 00 D0 42 00 90 00 86 [14:38:54]RAPDU: 90 00 [14:38:54]wFMCommunicate OK [14:38:54]wFMCommunicate request_size=4 [14:38:54]MH_SAM_APDU [14:38:54]CAPDU: 80 0D 03 02 [14:38:54]Write to MH i2c: E2 08 00 D1 42 80 0D 03 02 00 00 00 00 8E [14:38:54]Write i2c OK [14:38:54]MH_I2C_Read... [14:38:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:54]Read from MH i2c: E2 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 0B 00 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 0B 00 D1 42 00 32 72 4E EC 19 E9 ED C4 90 00 20 [14:38:54]RAPDU: 32 72 4E EC 19 E9 ED C4 90 00 [14:38:54]wFMCommunicate OK [14:38:54]SAM_PROTO_SignData done [14:38:54]FM_MakeSignedData done [14:38:54]CreateOFDProtocolMessage [14:38:54]wFMCommunicate request_size=4 [14:38:54]MH_SAM_APDU [14:38:54]CAPDU: 80 11 00 00 [14:38:54]Write to MH i2c: E2 08 00 D2 42 80 11 00 00 00 00 00 00 8E [14:38:54]Write i2c OK [14:38:54]MH_I2C_Read... [14:38:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:54]Read from MH i2c: E2 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 17 00 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 17 00 D2 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E5 [14:38:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:38:54]wFMCommunicate OK [14:38:54]CreateOFDProtocolMessage done [14:38:54]OFDSenderStorePacket 228258 [14:38:54]StoreOFDPacket docnum=228258 [14:38:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 00 11 07 01 69 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 DE 00 00 00 F4 03 04 00 01 B9 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A2 7B 03 00 35 04 06 00 42 CF 34 06 62 C8 32 72 4E EC 19 E9 ED C4 [14:38:54]CheckFolder [14:38:54]dirname=/storage/ofd_packets [14:38:54]CheckFolder done [14:38:54]ProducePacketName [14:38:54]name=ofd_packets/00228258 [14:38:54]NVStorageSaveData ofd_packets/00228258 [14:38:54]File name is /storage/ofd_packets/00228258 [14:38:54]Write 301 bytes [14:38:54]NVStorageSaveData done [14:38:54]OFDSenderStorePacket done [14:38:54]KKMCreateOFDPacket done [14:38:54]NVStorageSaveData kkm_last_timestamp [14:38:54]File name is /storage/kkm_last_timestamp [14:38:54]Write 4 bytes [14:38:54]NVStorageSaveData done [14:38:54]ExternCall_PrintAddStr [14:38:54]wPrintStart [14:38:54]Write to MH i2c: 01 00 00 D3 42 15 [14:38:54]Write i2c OK [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: 01 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: 01 07 00 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: 01 07 00 D3 42 00 00 00 00 00 FF 0F 2A [14:38:54]RasterBufferAndPrint [14:38:54]line Счет N : (1)1964735 [14:38:54]line ИНН: 02508201610067 [14:38:54]line Контрольно-Кассовый Чек [14:38:54]line ПРОДАЖА [14:38:54]line ТРК (МРК, ГНК) : 44 [14:38:54]line Товар: 2710124500 [14:38:54]line Аи-95-К-5 [14:38:54]line 8.090 * 74.20 [14:38:54]line = 600.28 [14:38:54]line НДС 12% НСП 1% [14:38:54]line > о реализуемом товаре [14:38:54]line ОКРУГЛЕНИЕ: -0.28 [14:38:54]line ИТОГО: 600.00 [14:38:54]line Внесено: 600.00 [14:38:54]line СДАЧА: 0.00 [14:38:54]line НСП 1% : 5.31 [14:38:54]line НДС 12% : 63.75 [14:38:54]line Наличными: 600.00 [14:38:54]line Безнал.: 0.00 [14:38:54]line Место: АЗС № 133 "Партнер Нефть" [14:38:54]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [14:38:54]line СНО: Общий режим [14:38:54]line Чек 222 22.10.2024 14:38 [14:38:54]line Смена: 535 ФФД: 1.0 [14:38:54]line ЗНМ: 0300000091 [14:38:54]line РНМ: 0000000000091685 [14:38:54]line Версия ККМ: 001 [14:38:54]line ФМ: 0000000000871839 [14:38:54]line ФД: 228258 [14:38:54]line ФПД: 73457698497224 [14:38:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143857&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228258&fm=73457698497224&tin=02508201610067®Number=0000000000091685&sum=60000 [14:38:54]OFD Sender: Processing packet 228258 [packets to send 38, broken 37] [14:38:54]ProducePacketName [14:38:54]name=ofd_packets/00228258 [14:38:54]OFD Sender: To server: pG, [14:38:54]CommunicateWithHost lk.salyk.kg:30040 [14:38:54]ConnectInit lk.salyk.kg [14:38:54]written 0, free lines is 4095 [14:38:54]Connected sock=10 [14:38:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 00 11 07 01 69 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 DE 00 00 00 F4 03 04 00 01 B9 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A2 7B 03 00 35 04 06 00 42 CF 34 06 62 C8 32 72 4E EC 19 E9 ED C4 [14:38:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 DD 06 47 00 9D 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 38 37 31 38 33 39 10 04 04 00 A2 7B 03 00 F4 03 04 00 F9 63 17 67 B6 04 01 00 00 5B DF 52 D8 76 78 67 3D [14:38:55]CommunicateWithHost err = 0 [14:38:55]CheckOFDResponse [14:38:55]1017 (14) - 77093643461234 [14:38:55]1041 (16) - 0000000000871839 [14:38:55]1040 (4) - 228258 [14:38:55]1012 (4) - 22.10.2024 08:36 [14:38:55]1206 (1) - 0 [14:38:55]OFD Sender: Remove packet 228258 [14:38:55]ProducePacketName [14:38:55]name=ofd_packets/00228258 [14:38:55]NVStorageDeleteData [14:38:55]Write to MH i2c: 01 00 00 FD 42 3F [14:38:55]Write i2c OK [14:38:55]MH_I2C_Read... [14:38:55]Read from MH i2c: 01 [14:38:55]MH_I2C_Read... [14:38:55]Read from MH i2c: 01 07 00 [14:38:55]MH_I2C_Read... [14:38:55]Read from MH i2c: 01 07 00 FD 42 00 00 00 00 00 C2 0C 14 [14:38:55]RasterBufferAndPrint [14:38:55]line [14:38:55]line [14:38:55]line [14:38:55]line [14:38:55]line [14:38:55]written 0, free lines is 3272 [14:38:55]MH_Cut [14:38:55]Write to MH i2c: D1 01 00 04 43 01 19 [14:38:55]Write i2c OK [14:38:55]MH_I2C_Read... [14:38:55]Read from MH i2c: D1 [14:38:55]MH_I2C_Read... [14:38:55]Read from MH i2c: D1 01 00 [14:38:55]MH_I2C_Read... [14:38:55]Read from MH i2c: D1 01 00 04 43 00 18 [14:38:55]Write to MH i2c: 01 00 00 05 43 48 [14:38:55]Write i2c OK [14:38:55]MH_I2C_Read... [14:38:55]OFD Sender: No OFD packet to send [14:38:56]*** Cut start [14:38:56]*** Partial cut [14:38:56]*** CUTSNS_PIN = 1 [14:38:56]*** CUTSNS_PIN = 0 [14:38:56]*** Brake cut motor [14:38:56]Read from MH i2c: 01 [14:38:56]MH_I2C_Read... [14:38:56]*** Stop cut motor [14:38:56]*** Cut end [14:38:56]Read from MH i2c: 01 07 00 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: 01 07 00 05 43 00 00 00 00 00 FF 0F 5D [14:38:56]process_action close_receipt done [14:38:56]requested_data is exist [14:38:56]produce_requested_data [14:38:56]requested_item fm.sn is exist - process it [14:38:56]wFMCommunicate request_size=4 [14:38:56]MH_SAM_APDU [14:38:56]CAPDU: 80 11 00 00 [14:38:56]Write to MH i2c: E2 08 00 06 43 80 11 00 00 00 00 00 00 C3 [14:38:56]Write i2c OK [14:38:56]MH_I2C_Read... [14:38:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:56]Read from MH i2c: E2 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: E2 17 00 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: E2 17 00 06 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1A [14:38:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:38:56]wFMCommunicate OK [14:38:56]requested_item fd.num is exist - process it [14:38:56]SAM_PROTO_GetFieldsCounters [14:38:56]wFMCommunicate request_size=4 [14:38:56]MH_SAM_APDU [14:38:56]CAPDU: 80 13 00 00 [14:38:56]Write to MH i2c: E2 08 00 07 43 80 13 00 00 00 00 00 00 C6 [14:38:56]Write i2c OK [14:38:56]MH_I2C_Read... [14:38:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:56]Read from MH i2c: E2 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: E2 62 00 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: E2 62 00 07 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A2 7B 03 00 0E 04 04 00 17 02 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 C2 [14:38:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A2 7B 03 00 0E 04 04 00 17 02 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 [14:38:56]wFMCommunicate OK [14:38:56]SAM_PROTO_GetFieldsCounters done [14:38:56]requested_item shift.num is exist - process it [14:38:56]requested_item shift.opened is exist - process it [14:38:56]req_shift_opened [14:38:56]FM_GetShiftState [14:38:56]SAM_PROTO_GetShiftState [14:38:56]wFMCommunicate request_size=4 [14:38:56]MH_SAM_APDU [14:38:56]CAPDU: 80 13 01 00 [14:38:56]Write to MH i2c: E2 08 00 08 43 80 13 01 00 00 00 00 00 C8 [14:38:56]Write i2c OK [14:38:56]MH_I2C_Read... [14:38:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:56]Read from MH i2c: E2 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: E2 0E 00 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: E2 0E 00 08 43 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 8F [14:38:56]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:38:56]wFMCommunicate OK [14:38:56]SAM_PROTO_GetShiftState done [14:38:56]FM_GetShiftState done [14:38:56]req_shift_opened done [14:38:56]requested_item shift.open_date is exist - process it [14:38:56]req_shift_open_date [14:38:56]req_shift_open_date done [14:38:56]produce_requested_data done [14:38:56]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228258,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [14:38:56]process_action_free close_receipt [14:38:56]json_value_free [14:38:56]json_value_free done [14:38:56]process_json_proto returns [14:38:56]Send response to host [14:38:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228258,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [14:38:56]free response buf [14:38:56]execute_script done [14:38:56]execute_script returns [14:38:56]free content buf [14:38:56]Sock 7.Close socket [14:38:56]Sock 7.Thread stoped [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:40]OFD Sender: No OFD packet to send [14:40:45]OFD Sender: No OFD packet to send [14:40:50]OFD Sender: No OFD packet to send [14:40:55]OFD Sender: No OFD packet to send [14:41:00]OFD Sender: No OFD packet to send [14:41:05]OFD Sender: No OFD packet to send [14:41:10]OFD Sender: No OFD packet to send [14:41:15]OFD Sender: No OFD packet to send [14:41:20]OFD Sender: No OFD packet to send [14:41:25]OFD Sender: No OFD packet to send [14:41:30]OFD Sender: No OFD packet to send [14:41:35]OFD Sender: No OFD packet to send [14:41:40]OFD Sender: No OFD packet to send [14:41:45]OFD Sender: No OFD packet to send [14:41:50]OFD Sender: No OFD packet to send [14:41:55]OFD Sender: No OFD packet to send [14:42:00]OFD Sender: No OFD packet to send [14:42:00]accept exits with 9 [14:42:00]New connection [14:42:00]New thread 3066994020 created [14:42:00]Thread 3067137380 joined [14:42:00]Waiting for new connection... [14:42:00] Sock 9.Parse request [14:42:00]Sock 9.Check first char [14:42:00]Sock 9.First char is OK [14:42:00]request: POST /json_proto HTTP/1.0 [14:42:00]Method: POST [14:42:00]URL: /json_proto [14:42:00]Method is POST - this is cgi request [14:42:00]url: /json_proto [14:42:00]query_string will be loaded in cgi processing [14:42:00]execute_cgi json_proto POST (null) [14:42:00]execute_cgi path=json_proto method=POST [14:42:00]POST find Content-Length [14:42:00]Host: 172.17.44.195:8080 [14:42:00]Content-Length: 678 [14:42:00]Content-Type: application/json [14:42:00] [14:42:00]POST finish read [14:42:00]Found Content-Length = 678 [14:42:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:00]execute_script... [14:42: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)1964736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:00]POST & json_proto [14:42:00]process_json_proto [14:42:00]json parsed OK: [14:42:00]protocol is kg_v1.0 [14:42:00]action value=close_receipt [14:42:00]process_action close_receipt [14:42:00]cmd_close_receipt [14:42:00]MH_GetDate [14:42:00]Write to MH i2c: F0 00 00 09 43 3B [14:42:00]Write i2c OK [14:42:00]MH_I2C_Read... [14:42:00]Read from MH i2c: F0 [14:42:00]MH_I2C_Read... [14:42:00]Read from MH i2c: F0 09 00 [14:42:00]MH_I2C_Read... [14:42:00]Read from MH i2c: F0 09 00 09 43 00 BD B9 17 67 82 C9 CF 66 B8 [14:42:00]GetLastDocTimeStamp 1729607937 [14:42:00]current date 1729608125 [14:42:00]FM_GetShiftState [14:42:00]SAM_PROTO_GetShiftState [14:42:00]wFMCommunicate request_size=4 [14:42:00]MH_SAM_APDU [14:42:00]CAPDU: 80 13 01 00 [14:42:00]Write to MH i2c: E2 08 00 0A 43 80 13 01 00 00 00 00 00 CA [14:42:00]Write i2c OK [14:42:00]MH_I2C_Read... [14:42:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:00]Read from MH i2c: E2 [14:42:00]MH_I2C_Read... [14:42:00]Read from MH i2c: E2 0E 00 [14:42:00]MH_I2C_Read... [14:42:00]Read from MH i2c: E2 0E 00 0A 43 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 91 [14:42:00]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:42:00]wFMCommunicate OK [14:42:00]SAM_PROTO_GetShiftState done [14:42:00]FM_GetShiftState done [14:42:00]opened in 1729555538 [14:42:00]opened+sec_in_day 1729641938 [14:42:00]quantity*price = 50041 [14:42:00]sum+1 = 50042 [14:42:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 223 22.10.2024 14:42 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228259 ФПД: 75646618564723 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144205&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228259&fm=75646618564723&tin=02508201610067®Number=0000000000091685&sum=50000 [14:42:02]StoreToDocumentArchive [14:42:02]shift 535 fd 228259 [14:42:02]save to /storage/0535/doc_00228259 [14:42:02]save last doc name /storage/0535/doc_00228259 to /storage/kkm_last_doc_name [14:42:02]save OK [14:42:02]Clear old archive folders... [14:42:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:42:02]tlvbuf is 008E5480 [14:42:02]SAM_PROTO_ClearQueue [14:42:02]wFMCommunicate request_size=4 [14:42:02]MH_SAM_APDU [14:42:02]CAPDU: 80 09 00 00 [14:42:02]Write to MH i2c: E2 08 00 17 43 80 09 00 00 00 00 00 00 CC [14:42:02]Write i2c OK [14:42:02]MH_I2C_Read... [14:42:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:02]Read from MH i2c: E2 [14:42:02]MH_I2C_Read... [14:42:02]Read from MH i2c: E2 03 00 [14:42:02]MH_I2C_Read... [14:42:02]Read from MH i2c: E2 03 00 17 43 00 90 00 CE [14:42:02]RAPDU: 90 00 [14:42:02]wFMCommunicate OK [14:42:02]SAM_PROTO_ClearQueue done [14:42:02]KKMCreateOFDPacket [14:42:02]OFDProtocolAddRootSTLVToBuf [14:42:02]FM_MakeSignedData [14:42:02]FM_MakeSignedData [14:42:02]SAM_PROTO_SignData [14:42:02]wFMCommunicate request_size=4 [14:42:02]MH_SAM_APDU [14:42:02]CAPDU: 80 0D 01 02 [14:42:02]Write to MH i2c: E2 08 00 18 43 80 0D 01 02 00 00 00 00 D4 [14:42:02]Write i2c OK [14:42:02]MH_I2C_Read... [14:42:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:02]Read from MH i2c: E2 [14:42:02]MH_I2C_Read... [14:42:02]Read from MH i2c: E2 03 00 [14:42:02]MH_I2C_Read... [14:42:02]Read from MH i2c: E2 03 00 18 43 00 90 00 CF [14:42:02]RAPDU: 90 00 [14:42:02]wFMCommunicate OK [14:42:02]wFMCommunicate request_size=255 [14:42:02]MH_SAM_APDU [14:42: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 BD B9 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A3 7B 03 00 35 04 06 00 44 [14:42:02]Write to MH i2c: E2 02 01 19 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 BD B9 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A3 7B 03 00 35 04 06 00 44 00 00 BC [14:42:02]Write i2c OK [14:42:02]MH_I2C_Read... [14:42:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:02]Read from MH i2c: E2 [14:42:02]MH_I2C_Read... [14:42:02]Read from MH i2c: E2 03 00 [14:42:02]MH_I2C_Read... [14:42:02]Read from MH i2c: E2 03 00 19 43 00 90 00 D0 [14:42:02]RAPDU: 90 00 [14:42:02]wFMCommunicate OK [14:42:02]wFMCommunicate request_size=10 [14:42:02]MH_SAM_APDU [14:42:02]CAPDU: 80 0D 02 02 05 CC D9 D3 F8 73 [14:42:02]Write to MH i2c: E2 0D 00 1A 43 80 0D 02 02 05 00 CC D9 D3 F8 73 00 00 C4 [14:42:02]Write i2c OK [14:42:02]MH_I2C_Read... [14:42:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:02]Read from MH i2c: E2 [14:42:02]MH_I2C_Read... [14:42:02]Read from MH i2c: E2 03 00 [14:42:02]MH_I2C_Read... [14:42:02]Read from MH i2c: E2 03 00 1A 43 00 90 00 D1 [14:42:02]RAPDU: 90 00 [14:42:02]wFMCommunicate OK [14:42:02]wFMCommunicate request_size=4 [14:42:02]MH_SAM_APDU [14:42:02]CAPDU: 80 0D 03 02 [14:42:02]Write to MH i2c: E2 08 00 1B 43 80 0D 03 02 00 00 00 00 D9 [14:42:02]Write i2c OK [14:42:02]MH_I2C_Read... [14:42:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:02]Read from MH i2c: E2 [14:42:02]MH_I2C_Read... [14:42:02]Read from MH i2c: E2 0B 00 [14:42:02]MH_I2C_Read... [14:42:02]Read from MH i2c: E2 0B 00 1B 43 00 A6 18 A8 2B B9 83 9F 1E 90 00 64 [14:42:02]RAPDU: A6 18 A8 2B B9 83 9F 1E 90 00 [14:42:02]wFMCommunicate OK [14:42:02]SAM_PROTO_SignData done [14:42:02]FM_MakeSignedData done [14:42:02]CreateOFDProtocolMessage [14:42:02]wFMCommunicate request_size=4 [14:42:02]MH_SAM_APDU [14:42:02]CAPDU: 80 11 00 00 [14:42:02]Write to MH i2c: E2 08 00 1C 43 80 11 00 00 00 00 00 00 D9 [14:42:02]Write i2c OK [14:42:02]MH_I2C_Read... [14:42:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:02]Read from MH i2c: E2 [14:42:02]MH_I2C_Read... [14:42:02]Read from MH i2c: E2 17 00 [14:42:02]MH_I2C_Read... [14:42:02]Read from MH i2c: E2 17 00 1C 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 30 [14:42:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:42:02]wFMCommunicate OK [14:42:02]CreateOFDProtocolMessage done [14:42:02]OFDSenderStorePacket 228259 [14:42:02]StoreOFDPacket docnum=228259 [14:42:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 E4 9C 07 01 73 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 BD B9 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A3 7B 03 00 35 04 06 00 44 CC D9 D3 F8 73 A6 18 A8 2B B9 83 9F 1E [14:42:02]CheckFolder [14:42:02]dirname=/storage/ofd_packets [14:42:02]CheckFolder done [14:42:02]ProducePacketName [14:42:02]name=ofd_packets/00228259 [14:42:02]NVStorageSaveData ofd_packets/00228259 [14:42:02]File name is /storage/ofd_packets/00228259 [14:42:02]Write 301 bytes [14:42:02]NVStorageSaveData done [14:42:02]OFDSenderStorePacket done [14:42:02]KKMCreateOFDPacket done [14:42:02]NVStorageSaveData kkm_last_timestamp [14:42:02]File name is /storage/kkm_last_timestamp [14:42:02]Write 4 bytes [14:42:02]NVStorageSaveData done [14:42:02]ExternCall_PrintAddStr [14:42:02]wPrintStart [14:42:02]Write to MH i2c: 01 00 00 1D 43 60 [14:42:02]Write i2c OK [14:42:02]MH_I2C_Read... [14:42:02]Read from MH i2c: 01 [14:42:02]MH_I2C_Read... [14:42:02]Read from MH i2c: 01 07 00 [14:42:02]MH_I2C_Read... [14:42:02]Read from MH i2c: 01 07 00 1D 43 00 00 00 00 00 FF 0F 75 [14:42:02]RasterBufferAndPrint [14:42:02]line Счет N : (1)1964736 [14:42:02]line ИНН: 02508201610067 [14:42:02]line Контрольно-Кассовый Чек [14:42:02]line ПРОДАЖА [14:42:02]line ТРК (МРК, ГНК) : 43 [14:42:02]line Товар: 2710124130 [14:42:02]line Аи-92-К-5 [14:42:02]line 7.480 * 66.90 [14:42:02]line = 500.41 [14:42:02]line НДС 12% НСП 1% [14:42:02]line > о реализуемом товаре [14:42:02]line ОКРУГЛЕНИЕ: -0.41 [14:42:02]line ИТОГО: 500.00 [14:42:02]line Внесено: 500.00 [14:42:02]line СДАЧА: 0.00 [14:42:02]line НСП 1% : 4.43 [14:42:02]line НДС 12% : 53.14 [14:42:02]line Наличными: 500.00 [14:42:02]line Безнал.: 0.00 [14:42:02]line Место: АЗС № 133 "Партнер Нефть" [14:42:02]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [14:42:02]line СНО: Общий режим [14:42:02]line Чек 223 22.10.2024 14:42 [14:42:02]line Смена: 535 ФФД: 1.0 [14:42:02]line ЗНМ: 0300000091 [14:42:02]line РНМ: 0000000000091685 [14:42:02]line Версия ККМ: 001 [14:42:02]line ФМ: 0000000000871839 [14:42:02]line ФД: 228259 [14:42:02]line ФПД: 75646618564723 [14:42:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144205&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228259&fm=75646618564723&tin=02508201610067®Number=0000000000091685&sum=50000 [14:42:02]OFD Sender: Processing packet 228259 [packets to send 38, broken 37] [14:42:02]ProducePacketName [14:42:02]name=ofd_packets/00228259 [14:42:02]OFD Sender: To server: pG, [14:42:02]CommunicateWithHost lk.salyk.kg:30040 [14:42:02]ConnectInit lk.salyk.kg [14:42:02]written 0, free lines is 4095 [14:42:02]Connected sock=10 [14:42:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 E4 9C 07 01 73 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 BD B9 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A3 7B 03 00 35 04 06 00 44 CC D9 D3 F8 73 A6 18 A8 2B B9 83 9F 1E [14:42:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 3F 78 47 00 AD 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A3 7B 03 00 F4 03 04 00 B5 64 17 67 B6 04 01 00 00 34 AD 63 EE 79 77 66 2A [14:42:03]CommunicateWithHost err = 0 [14:42:03]CheckOFDResponse [14:42:03]1017 (14) - 77093643461234 [14:42:03]1041 (16) - 0000000000871839 [14:42:03]1040 (4) - 228259 [14:42:03]1012 (4) - 22.10.2024 08:39 [14:42:03]1206 (1) - 0 [14:42:03]OFD Sender: Remove packet 228259 [14:42:03]ProducePacketName [14:42:03]name=ofd_packets/00228259 [14:42:03]NVStorageDeleteData [14:42:03]Write to MH i2c: 01 00 00 47 43 8A [14:42:03]Write i2c OK [14:42:03]MH_I2C_Read... [14:42:03]Read from MH i2c: 01 [14:42:03]MH_I2C_Read... [14:42:03]Read from MH i2c: 01 07 00 [14:42:03]MH_I2C_Read... [14:42:03]Read from MH i2c: 01 07 00 47 43 00 00 00 00 00 C2 0C 5F [14:42:03]RasterBufferAndPrint [14:42:03]line [14:42:03]line [14:42:03]line [14:42:03]line [14:42:03]line [14:42:03]written 0, free lines is 3270 [14:42:03]MH_Cut [14:42:03]Write to MH i2c: D1 01 00 4E 43 01 63 [14:42:03]Write i2c OK [14:42:03]MH_I2C_Read... [14:42:03]Read from MH i2c: D1 [14:42:03]MH_I2C_Read... [14:42:03]Read from MH i2c: D1 01 00 [14:42:03]MH_I2C_Read... [14:42:03]Read from MH i2c: D1 01 00 4E 43 00 62 [14:42:03]Write to MH i2c: 01 00 00 4F 43 92 [14:42:03]Write i2c OK [14:42:03]MH_I2C_Read... [14:42:03]OFD Sender: No OFD packet to send [14:42:04]*** Cut start [14:42:04]*** Partial cut [14:42:04]*** CUTSNS_PIN = 1 [14:42:04]*** CUTSNS_PIN = 0 [14:42:04]*** Brake cut motor [14:42:04]Read from MH i2c: 01 [14:42:04]MH_I2C_Read... [14:42:04]*** Stop cut motor [14:42:04]*** Cut end [14:42:04]Read from MH i2c: 01 07 00 [14:42:04]MH_I2C_Read... [14:42:04]Read from MH i2c: 01 07 00 4F 43 00 00 00 00 00 FF 0F A7 [14:42:04]process_action close_receipt done [14:42:04]requested_data is exist [14:42:04]produce_requested_data [14:42:04]requested_item fm.sn is exist - process it [14:42:04]wFMCommunicate request_size=4 [14:42:04]MH_SAM_APDU [14:42:04]CAPDU: 80 11 00 00 [14:42:04]Write to MH i2c: E2 08 00 50 43 80 11 00 00 00 00 00 00 0D [14:42:04]Write i2c OK [14:42:04]MH_I2C_Read... [14:42:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:04]Read from MH i2c: E2 [14:42:04]MH_I2C_Read... [14:42:04]Read from MH i2c: E2 17 00 [14:42:04]MH_I2C_Read... [14:42:04]Read from MH i2c: E2 17 00 50 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 64 [14:42:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:42:04]wFMCommunicate OK [14:42:04]requested_item fd.num is exist - process it [14:42:04]SAM_PROTO_GetFieldsCounters [14:42:04]wFMCommunicate request_size=4 [14:42:04]MH_SAM_APDU [14:42:04]CAPDU: 80 13 00 00 [14:42:04]Write to MH i2c: E2 08 00 51 43 80 13 00 00 00 00 00 00 10 [14:42:04]Write i2c OK [14:42:04]MH_I2C_Read... [14:42:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:05]Read from MH i2c: E2 [14:42:05]MH_I2C_Read... [14:42:05]Read from MH i2c: E2 62 00 [14:42:05]MH_I2C_Read... [14:42:05]Read from MH i2c: E2 62 00 51 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A3 7B 03 00 0E 04 04 00 17 02 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 10 [14:42:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A3 7B 03 00 0E 04 04 00 17 02 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 [14:42:05]wFMCommunicate OK [14:42:05]SAM_PROTO_GetFieldsCounters done [14:42:05]requested_item shift.num is exist - process it [14:42:05]requested_item shift.opened is exist - process it [14:42:05]req_shift_opened [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 52 43 80 13 01 00 00 00 00 00 12 [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 52 43 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 D9 [14:42:05]RAPDU: 09 00 01 52 EC 16 67 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]req_shift_opened done [14:42:05]requested_item shift.open_date is exist - process it [14:42:05]req_shift_open_date [14:42:05]req_shift_open_date done [14:42:05]produce_requested_data done [14:42:05]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228259,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [14:42:05]process_action_free close_receipt [14:42:05]json_value_free [14:42:05]json_value_free done [14:42:05]process_json_proto returns [14:42:05]Send response to host [14:42:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228259,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [14:42:05]free response buf [14:42:05]execute_script done [14:42:05]execute_script returns [14:42:05]free content buf [14:42:05]Sock 9.Close socket [14:42:05]Sock 9.Thread stoped [14:42:08]OFD Sender: No OFD packet to send [14:42:13]OFD Sender: No OFD packet to send [14:42:18]OFD Sender: No OFD packet to send [14:42:23]OFD Sender: No OFD packet to send [14:42:28]OFD Sender: No OFD packet to send [14:42:29]accept exits with 7 [14:42:29]New connection [14:42:29]New thread 3067137380 created [14:42:29]Thread 3066994020 joined [14:42:29]Waiting for new connection... [14:42:29] Sock 7.Parse request [14:42:29]Sock 7.Check first char [14:42:29]Sock 7.First char is OK [14:42:29]request: POST /json_proto HTTP/1.0 [14:42:29]Method: POST [14:42:29]URL: /json_proto [14:42:29]Method is POST - this is cgi request [14:42:29]url: /json_proto [14:42:29]query_string will be loaded in cgi processing [14:42:29]execute_cgi json_proto POST (null) [14:42:29]execute_cgi path=json_proto method=POST [14:42:29]POST find Content-Length [14:42:29]Host: 172.17.44.195:8080 [14:42:29]Content-Length: 675 [14:42:29]Content-Type: application/json [14:42:29] [14:42:29]POST finish read [14:42:29]Found Content-Length = 675 [14:42:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:29]execute_script... [14:42: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)1964737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:29]POST & json_proto [14:42:29]process_json_proto [14:42:29]json parsed OK: [14:42:29]protocol is kg_v1.0 [14:42:29]action value=close_receipt [14:42:29]process_action close_receipt [14:42:29]cmd_close_receipt [14:42:29]MH_GetDate [14:42:29]Write to MH i2c: F0 00 00 53 43 85 [14:42:29]Write i2c OK [14:42:29]MH_I2C_Read... [14:42:29]Read from MH i2c: F0 [14:42:29]MH_I2C_Read... [14:42:29]Read from MH i2c: F0 09 00 [14:42:29]MH_I2C_Read... [14:42:29]Read from MH i2c: F0 09 00 53 43 00 D9 B9 17 67 82 C9 CF 66 1E [14:42:29]GetLastDocTimeStamp 1729608125 [14:42:29]current date 1729608153 [14:42:29]FM_GetShiftState [14:42:29]SAM_PROTO_GetShiftState [14:42:29]wFMCommunicate request_size=4 [14:42:29]MH_SAM_APDU [14:42:29]CAPDU: 80 13 01 00 [14:42:29]Write to MH i2c: E2 08 00 54 43 80 13 01 00 00 00 00 00 14 [14:42:29]Write i2c OK [14:42:29]MH_I2C_Read... [14:42:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:29]Read from MH i2c: E2 [14:42:29]MH_I2C_Read... [14:42:29]Read from MH i2c: E2 0E 00 [14:42:29]MH_I2C_Read... [14:42:29]Read from MH i2c: E2 0E 00 54 43 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 DB [14:42:29]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:42:29]wFMCommunicate OK [14:42:29]SAM_PROTO_GetShiftState done [14:42:29]FM_GetShiftState done [14:42:29]opened in 1729555538 [14:42:29]opened+sec_in_day 1729641938 [14:42:29]quantity*price = 30022 [14:42:29]sum+1 = 30024 [14:42:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 224 22.10.2024 14:42 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228260 ФПД: 130003463615702 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144233&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228260&fm=130003463615702&tin=02508201610067®Number=0000000000091685&sum=30000 [14:42:30]StoreToDocumentArchive [14:42:30]shift 535 fd 228260 [14:42:30]save to /storage/0535/doc_00228260 [14:42:30]save last doc name /storage/0535/doc_00228260 to /storage/kkm_last_doc_name [14:42:30]save OK [14:42:30]Clear old archive folders... [14:42:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:42:30]tlvbuf is 00A857F0 [14:42:30]SAM_PROTO_ClearQueue [14:42:30]wFMCommunicate request_size=4 [14:42:30]MH_SAM_APDU [14:42:30]CAPDU: 80 09 00 00 [14:42:30]Write to MH i2c: E2 08 00 61 43 80 09 00 00 00 00 00 00 16 [14:42:30]Write i2c OK [14:42:30]MH_I2C_Read... [14:42:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:30]Read from MH i2c: E2 [14:42:30]MH_I2C_Read... [14:42:30]Read from MH i2c: E2 03 00 [14:42:30]MH_I2C_Read... [14:42:30]Read from MH i2c: E2 03 00 61 43 00 90 00 18 [14:42:30]RAPDU: 90 00 [14:42:30]wFMCommunicate OK [14:42:30]SAM_PROTO_ClearQueue done [14:42:30]KKMCreateOFDPacket [14:42:30]OFDProtocolAddRootSTLVToBuf [14:42:30]FM_MakeSignedData [14:42:30]FM_MakeSignedData [14:42:30]SAM_PROTO_SignData [14:42:30]wFMCommunicate request_size=4 [14:42:30]MH_SAM_APDU [14:42:30]CAPDU: 80 0D 01 02 [14:42:30]Write to MH i2c: E2 08 00 62 43 80 0D 01 02 00 00 00 00 1E [14:42:30]Write i2c OK [14:42:30]MH_I2C_Read... [14:42:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:30]Read from MH i2c: E2 [14:42:30]MH_I2C_Read... [14:42:30]Read from MH i2c: E2 03 00 [14:42:30]MH_I2C_Read... [14:42:30]Read from MH i2c: E2 03 00 62 43 00 90 00 19 [14:42:30]RAPDU: 90 00 [14:42:30]wFMCommunicate OK [14:42:30]wFMCommunicate request_size=255 [14:42:30]MH_SAM_APDU [14:42: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 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 E0 00 00 00 F4 03 04 00 D9 B9 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A4 7B 03 00 35 04 06 00 76 3C CA 44 [14:42:30]Write to MH i2c: E2 02 01 63 43 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 E0 00 00 00 F4 03 04 00 D9 B9 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A4 7B 03 00 35 04 06 00 76 3C CA 44 00 00 53 [14:42:30]Write i2c OK [14:42:30]MH_I2C_Read... [14:42:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:30]Read from MH i2c: E2 [14:42:30]MH_I2C_Read... [14:42:30]Read from MH i2c: E2 03 00 [14:42:30]MH_I2C_Read... [14:42:30]Read from MH i2c: E2 03 00 63 43 00 90 00 1A [14:42:30]RAPDU: 90 00 [14:42:30]wFMCommunicate OK [14:42:30]wFMCommunicate request_size=7 [14:42:30]MH_SAM_APDU [14:42:30]CAPDU: 80 0D 02 02 02 B4 D6 [14:42:30]Write to MH i2c: E2 0A 00 64 43 80 0D 02 02 02 00 B4 D6 00 00 AF [14:42:30]Write i2c OK [14:42:30]MH_I2C_Read... [14:42:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:30]Read from MH i2c: E2 [14:42:30]MH_I2C_Read... [14:42:30]Read from MH i2c: E2 03 00 [14:42:30]MH_I2C_Read... [14:42:30]Read from MH i2c: E2 03 00 64 43 00 90 00 1B [14:42:30]RAPDU: 90 00 [14:42:30]wFMCommunicate OK [14:42:30]wFMCommunicate request_size=4 [14:42:30]MH_SAM_APDU [14:42:30]CAPDU: 80 0D 03 02 [14:42:30]Write to MH i2c: E2 08 00 65 43 80 0D 03 02 00 00 00 00 23 [14:42:30]Write i2c OK [14:42:30]MH_I2C_Read... [14:42:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:30]Read from MH i2c: E2 [14:42:30]MH_I2C_Read... [14:42:30]Read from MH i2c: E2 0B 00 [14:42:30]MH_I2C_Read... [14:42:30]Read from MH i2c: E2 0B 00 65 43 00 6C 1C D8 DE EA 87 32 7A 90 00 7F [14:42:30]RAPDU: 6C 1C D8 DE EA 87 32 7A 90 00 [14:42:30]wFMCommunicate OK [14:42:30]SAM_PROTO_SignData done [14:42:30]FM_MakeSignedData done [14:42:30]CreateOFDProtocolMessage [14:42:30]wFMCommunicate request_size=4 [14:42:30]MH_SAM_APDU [14:42:30]CAPDU: 80 11 00 00 [14:42:30]Write to MH i2c: E2 08 00 66 43 80 11 00 00 00 00 00 00 23 [14:42:30]Write i2c OK [14:42:30]MH_I2C_Read... [14:42:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:30]Read from MH i2c: E2 [14:42:30]MH_I2C_Read... [14:42:30]Read from MH i2c: E2 17 00 [14:42:30]MH_I2C_Read... [14:42:30]Read from MH i2c: E2 17 00 66 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7A [14:42:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:42:30]wFMCommunicate OK [14:42:30]CreateOFDProtocolMessage done [14:42:30]OFDSenderStorePacket 228260 [14:42:30]StoreOFDPacket docnum=228260 [14:42:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 E2 4D 04 01 09 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 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 E0 00 00 00 F4 03 04 00 D9 B9 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A4 7B 03 00 35 04 06 00 76 3C CA 44 B4 D6 6C 1C D8 DE EA 87 32 7A [14:42:30]CheckFolder [14:42:30]dirname=/storage/ofd_packets [14:42:30]CheckFolder done [14:42:30]ProducePacketName [14:42:30]name=ofd_packets/00228260 [14:42:30]NVStorageSaveData ofd_packets/00228260 [14:42:30]File name is /storage/ofd_packets/00228260 [14:42:30]Write 298 bytes [14:42:30]NVStorageSaveData done [14:42:30]OFDSenderStorePacket done [14:42:30]KKMCreateOFDPacket done [14:42:30]NVStorageSaveData kkm_last_timestamp [14:42:30]File name is /storage/kkm_last_timestamp [14:42:30]Write 4 bytes [14:42:30]NVStorageSaveData done [14:42:30]ExternCall_PrintAddStr [14:42:30]wPrintStart [14:42:30]Write to MH i2c: 01 00 00 67 43 AA [14:42:30]Write i2c OK [14:42:30]MH_I2C_Read... [14:42:30]Read from MH i2c: 01 [14:42:30]MH_I2C_Read... [14:42:30]Read from MH i2c: 01 07 00 [14:42:30]MH_I2C_Read... [14:42:30]Read from MH i2c: 01 07 00 67 43 00 00 00 00 00 FF 0F BF [14:42:30]RasterBufferAndPrint [14:42:30]line Счет N : (1)1964737 [14:42:30]line ИНН: 02508201610067 [14:42:30]line Контрольно-Кассовый Чек [14:42:30]line ПРОДАЖА [14:42:30]line ТРК (МРК, ГНК) : 31 [14:42:30]line Товар: 2710194210 [14:42:30]line ДТ-К-5 [14:42:30]line 3.940 * 76.20 [14:42:30]line = 300.23 [14:42:30]line НДС 12% НСП 1% [14:42:30]line > о реализуемом товаре [14:42:30]line ОКРУГЛЕНИЕ: -0.23 [14:42:30]line ИТОГО: 300.00 [14:42:30]line Внесено: 300.00 [14:42:30]line СДАЧА: 0.00 [14:42:30]line НСП 1% : 2.66 [14:42:30]line НДС 12% : 31.88 [14:42:30]line Наличными: 300.00 [14:42:30]line Безнал.: 0.00 [14:42:30]line Место: АЗС № 133 "Партнер Нефть" [14:42:30]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [14:42:30]line СНО: Общий режим [14:42:30]line Чек 224 22.10.2024 14:42 [14:42:30]line Смена: 535 ФФД: 1.0 [14:42:30]line ЗНМ: 0300000091 [14:42:30]line РНМ: 0000000000091685 [14:42:30]line Версия ККМ: 001 [14:42:30]line ФМ: 0000000000871839 [14:42:30]line ФД: 228260 [14:42:30]line ФПД: 130003463615702 [14:42:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144233&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228260&fm=130003463615702&tin=02508201610067®Number=0000000000091685&sum=30000 [14:42:31]OFD Sender: Processing packet 228260 [packets to send 38, broken 37] [14:42:31]ProducePacketName [14:42:31]name=ofd_packets/00228260 [14:42:31]OFD Sender: To server: pG, [14:42:31]CommunicateWithHost lk.salyk.kg:30040 [14:42:31]ConnectInit lk.salyk.kg [14:42:31]written 0, free lines is 4095 [14:42:31]Connected sock=10 [14:42:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 E2 4D 04 01 09 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 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 E0 00 00 00 F4 03 04 00 D9 B9 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A4 7B 03 00 35 04 06 00 76 3C CA 44 B4 D6 6C 1C D8 DE EA 87 32 7A [14:42:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 41 24 47 00 1E 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A4 7B 03 00 F4 03 04 00 D1 64 17 67 B6 04 01 00 00 55 87 25 38 88 07 62 4C [14:42:31]CommunicateWithHost err = 0 [14:42:31]CheckOFDResponse [14:42:31]1017 (14) - 77093643461234 [14:42:31]1041 (16) - 0000000000871839 [14:42:31]1040 (4) - 228260 [14:42:31]1012 (4) - 22.10.2024 08:39 [14:42:31]1206 (1) - 0 [14:42:31]OFD Sender: Remove packet 228260 [14:42:31]ProducePacketName [14:42:31]name=ofd_packets/00228260 [14:42:31]NVStorageDeleteData [14:42:31]Write to MH i2c: 01 00 00 91 43 D4 [14:42:31]Write i2c OK [14:42:31]MH_I2C_Read... [14:42:31]Read from MH i2c: 01 [14:42:31]MH_I2C_Read... [14:42:31]Read from MH i2c: 01 07 00 [14:42:31]MH_I2C_Read... [14:42:31]Read from MH i2c: 01 07 00 91 43 00 00 00 00 00 C1 0C A8 [14:42:31]RasterBufferAndPrint [14:42:31]line [14:42:31]line [14:42:31]line [14:42:31]line [14:42:31]line [14:42:31]written 0, free lines is 3269 [14:42:31]MH_Cut [14:42:31]Write to MH i2c: D1 01 00 98 43 01 AD [14:42:31]Write i2c OK [14:42:31]MH_I2C_Read... [14:42:31]Read from MH i2c: D1 [14:42:31]MH_I2C_Read... [14:42:31]Read from MH i2c: D1 01 00 [14:42:31]MH_I2C_Read... [14:42:31]Read from MH i2c: D1 01 00 98 43 00 AC [14:42:31]Write to MH i2c: 01 00 00 99 43 DC [14:42:31]Write i2c OK [14:42:31]MH_I2C_Read... [14:42:32]OFD Sender: No OFD packet to send [14:42:32]*** Cut start [14:42:32]*** Partial cut [14:42:32]*** CUTSNS_PIN = 1 [14:42:32]*** CUTSNS_PIN = 0 [14:42:32]*** Brake cut motor [14:42:33]Read from MH i2c: 01 [14:42:33]MH_I2C_Read... [14:42:33]*** Stop cut motor [14:42:33]*** Cut end [14:42:33]Read from MH i2c: 01 07 00 [14:42:33]MH_I2C_Read... [14:42:33]Read from MH i2c: 01 07 00 99 43 00 00 00 00 00 FF 0F F1 [14:42:33]process_action close_receipt done [14:42:33]requested_data is exist [14:42:33]produce_requested_data [14:42:33]requested_item fm.sn is exist - process it [14:42:33]wFMCommunicate request_size=4 [14:42:33]MH_SAM_APDU [14:42:33]CAPDU: 80 11 00 00 [14:42:33]Write to MH i2c: E2 08 00 9A 43 80 11 00 00 00 00 00 00 57 [14:42:33]Write i2c OK [14:42:33]MH_I2C_Read... [14:42:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:33]Read from MH i2c: E2 [14:42:33]MH_I2C_Read... [14:42:33]Read from MH i2c: E2 17 00 [14:42:33]MH_I2C_Read... [14:42:33]Read from MH i2c: E2 17 00 9A 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AE [14:42:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:42:33]wFMCommunicate OK [14:42:33]requested_item fd.num is exist - process it [14:42:33]SAM_PROTO_GetFieldsCounters [14:42:33]wFMCommunicate request_size=4 [14:42:33]MH_SAM_APDU [14:42:33]CAPDU: 80 13 00 00 [14:42:33]Write to MH i2c: E2 08 00 9B 43 80 13 00 00 00 00 00 00 5A [14:42:33]Write i2c OK [14:42:33]MH_I2C_Read... [14:42:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:33]Read from MH i2c: E2 [14:42:33]MH_I2C_Read... [14:42:33]Read from MH i2c: E2 62 00 [14:42:33]MH_I2C_Read... [14:42:33]Read from MH i2c: E2 62 00 9B 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A4 7B 03 00 0E 04 04 00 17 02 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 5E [14:42:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A4 7B 03 00 0E 04 04 00 17 02 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 [14:42:33]wFMCommunicate OK [14:42:33]SAM_PROTO_GetFieldsCounters done [14:42:33]requested_item shift.num is exist - process it [14:42:33]requested_item shift.opened is exist - process it [14:42:33]req_shift_opened [14:42:33]FM_GetShiftState [14:42:33]SAM_PROTO_GetShiftState [14:42:33]wFMCommunicate request_size=4 [14:42:33]MH_SAM_APDU [14:42:33]CAPDU: 80 13 01 00 [14:42:33]Write to MH i2c: E2 08 00 9C 43 80 13 01 00 00 00 00 00 5C [14:42:33]Write i2c OK [14:42:33]MH_I2C_Read... [14:42:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:33]Read from MH i2c: E2 [14:42:33]MH_I2C_Read... [14:42:33]Read from MH i2c: E2 0E 00 [14:42:33]MH_I2C_Read... [14:42:33]Read from MH i2c: E2 0E 00 9C 43 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 23 [14:42:33]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:42:33]wFMCommunicate OK [14:42:33]SAM_PROTO_GetShiftState done [14:42:33]FM_GetShiftState done [14:42:33]req_shift_opened done [14:42:33]requested_item shift.open_date is exist - process it [14:42:33]req_shift_open_date [14:42:33]req_shift_open_date done [14:42:33]produce_requested_data done [14:42:33]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228260,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [14:42:33]process_action_free close_receipt [14:42:33]json_value_free [14:42:33]json_value_free done [14:42:33]process_json_proto returns [14:42:33]Send response to host [14:42:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228260,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [14:42:33]free response buf [14:42:33]execute_script done [14:42:33]execute_script returns [14:42:33]free content buf [14:42:33]Sock 7.Close socket [14:42:33]Sock 7.Thread stoped [14:42:37]OFD Sender: No OFD packet to send [14:42:42]OFD Sender: No OFD packet to send [14:42:47]OFD Sender: No OFD packet to send [14:42:52]OFD Sender: No OFD packet to send [14:42:57]OFD Sender: No OFD packet to send [14:43:02]OFD Sender: No OFD packet to send [14:43:07]OFD Sender: No OFD packet to send [14:43:12]OFD Sender: No OFD packet to send [14:43:17]OFD Sender: No OFD packet to send [14:43:22]OFD Sender: No OFD packet to send [14:43:27]OFD Sender: No OFD packet to send [14:43:32]OFD Sender: No OFD packet to send [14:43:37]OFD Sender: No OFD packet to send [14:43:42]OFD Sender: No OFD packet to send [14:43:47]OFD Sender: No OFD packet to send [14:43:52]OFD Sender: No OFD packet to send [14:43:57]OFD Sender: No OFD packet to send [14:44:02]OFD Sender: No OFD packet to send [14:44:07]OFD Sender: No OFD packet to send [14:44:12]OFD Sender: No OFD packet to send [14:44:17]OFD Sender: No OFD packet to send [14:44:22]OFD Sender: No OFD packet to send [14:44:27]OFD Sender: No OFD packet to send [14:44:32]OFD Sender: No OFD packet to send [14:44:37]OFD Sender: No OFD packet to send [14:44:42]OFD Sender: No OFD packet to send [14:44:47]OFD Sender: No OFD packet to send [14:44:52]OFD Sender: No OFD packet to send [14:44:57]OFD Sender: No OFD packet to send [14:45:02]OFD Sender: No OFD packet to send [14:45:07]OFD Sender: No OFD packet to send [14:45:12]OFD Sender: No OFD packet to send [14:45:17]OFD Sender: No OFD packet to send [14:45:22]OFD Sender: No OFD packet to send [14:45:27]OFD Sender: No OFD packet to send [14:45:32]OFD Sender: No OFD packet to send [14:45:37]OFD Sender: No OFD packet to send [14:45:42]OFD Sender: No OFD packet to send [14:45:47]OFD Sender: No OFD packet to send [14:45:52]OFD Sender: No OFD packet to send [14:45:57]OFD Sender: No OFD packet to send [14:46:02]OFD Sender: No OFD packet to send [14:46:07]OFD Sender: No OFD packet to send [14:46:12]OFD Sender: No OFD packet to send [14:46:17]OFD Sender: No OFD packet to send [14:46:18]accept exits with 9 [14:46:18]New connection [14:46:18]New thread 3066994020 created [14:46:18]Thread 3067137380 joined [14:46:18]Waiting for new connection... [14:46:18] Sock 9.Parse request [14:46:18]Sock 9.Check first char [14:46:18]Sock 9.First char is OK [14:46:18]request: POST /json_proto HTTP/1.0 [14:46:18]Method: POST [14:46:18]URL: /json_proto [14:46:18]Method is POST - this is cgi request [14:46:18]url: /json_proto [14:46:18]query_string will be loaded in cgi processing [14:46:18]execute_cgi json_proto POST (null) [14:46:18]execute_cgi path=json_proto method=POST [14:46:18]POST find Content-Length [14:46:18]Host: 172.17.44.195:8080 [14:46:18]Content-Length: 678 [14:46:18]Content-Type: application/json [14:46:18] [14:46:18]POST finish read [14:46:18]Found Content-Length = 678 [14:46:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:18]execute_script... [14:46: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)1964738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:18]POST & json_proto [14:46:18]process_json_proto [14:46:18]json parsed OK: [14:46:18]protocol is kg_v1.0 [14:46:18]action value=close_receipt [14:46:18]process_action close_receipt [14:46:18]cmd_close_receipt [14:46:18]MH_GetDate [14:46:18]Write to MH i2c: F0 00 00 9D 43 CF [14:46:18]Write i2c OK [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: F0 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: F0 09 00 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: F0 09 00 9D 43 00 BE BA 17 67 82 C9 CF 66 4E [14:46:18]GetLastDocTimeStamp 1729608153 [14:46:18]current date 1729608382 [14:46:18]FM_GetShiftState [14:46:18]SAM_PROTO_GetShiftState [14:46:18]wFMCommunicate request_size=4 [14:46:18]MH_SAM_APDU [14:46:18]CAPDU: 80 13 01 00 [14:46:18]Write to MH i2c: E2 08 00 9E 43 80 13 01 00 00 00 00 00 5E [14:46:18]Write i2c OK [14:46:18]MH_I2C_Read... [14:46:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:18]Read from MH i2c: E2 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: E2 0E 00 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: E2 0E 00 9E 43 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 25 [14:46:18]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:46:18]wFMCommunicate OK [14:46:18]SAM_PROTO_GetShiftState done [14:46:18]FM_GetShiftState done [14:46:18]opened in 1729555538 [14:46:18]opened+sec_in_day 1729641938 [14:46:18]quantity*price = 60027 [14:46:18]sum+1 = 60029 [14:46:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 225 22.10.2024 14:46 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228261 ФПД: 190036657791544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144623&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228261&fm=190036657791544&tin=02508201610067®Number=0000000000091685&sum=60000 [14:46:19]StoreToDocumentArchive [14:46:19]shift 535 fd 228261 [14:46:19]save to /storage/0535/doc_00228261 [14:46:19]save last doc name /storage/0535/doc_00228261 to /storage/kkm_last_doc_name [14:46:19]save OK [14:46:19]Clear old archive folders... [14:46:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:46:19]tlvbuf is 008C29A0 [14:46:19]SAM_PROTO_ClearQueue [14:46:19]wFMCommunicate request_size=4 [14:46:19]MH_SAM_APDU [14:46:19]CAPDU: 80 09 00 00 [14:46:19]Write to MH i2c: E2 08 00 AB 43 80 09 00 00 00 00 00 00 60 [14:46:19]Write i2c OK [14:46:19]MH_I2C_Read... [14:46:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:19]Read from MH i2c: E2 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 03 00 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 03 00 AB 43 00 90 00 62 [14:46:19]RAPDU: 90 00 [14:46:19]wFMCommunicate OK [14:46:19]SAM_PROTO_ClearQueue done [14:46:19]KKMCreateOFDPacket [14:46:19]OFDProtocolAddRootSTLVToBuf [14:46:19]FM_MakeSignedData [14:46:19]FM_MakeSignedData [14:46:19]SAM_PROTO_SignData [14:46:19]wFMCommunicate request_size=4 [14:46:19]MH_SAM_APDU [14:46:19]CAPDU: 80 0D 01 02 [14:46:19]Write to MH i2c: E2 08 00 AC 43 80 0D 01 02 00 00 00 00 68 [14:46:19]Write i2c OK [14:46:19]MH_I2C_Read... [14:46:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:19]Read from MH i2c: E2 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 03 00 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 03 00 AC 43 00 90 00 63 [14:46:19]RAPDU: 90 00 [14:46:19]wFMCommunicate OK [14:46:19]wFMCommunicate request_size=255 [14:46:19]MH_SAM_APDU [14:46: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E1 00 00 00 F4 03 04 00 BF BA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A5 7B 03 00 35 04 06 00 AC [14:46:19]Write to MH i2c: E2 02 01 AD 43 80 0D 02 02 FA 00 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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E1 00 00 00 F4 03 04 00 BF BA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A5 7B 03 00 35 04 06 00 AC 00 00 1D [14:46:19]Write i2c OK [14:46:19]MH_I2C_Read... [14:46:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:20]Read from MH i2c: E2 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: E2 03 00 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: E2 03 00 AD 43 00 90 00 64 [14:46:20]RAPDU: 90 00 [14:46:20]wFMCommunicate OK [14:46:20]wFMCommunicate request_size=10 [14:46:20]MH_SAM_APDU [14:46:20]CAPDU: 80 0D 02 02 05 D6 5B 7B 62 38 [14:46:20]Write to MH i2c: E2 0D 00 AE 43 80 0D 02 02 05 00 D6 5B 7B 62 38 00 00 BB [14:46:20]Write i2c OK [14:46:20]MH_I2C_Read... [14:46:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:20]Read from MH i2c: E2 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: E2 03 00 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: E2 03 00 AE 43 00 90 00 65 [14:46:20]RAPDU: 90 00 [14:46:20]wFMCommunicate OK [14:46:20]wFMCommunicate request_size=4 [14:46:20]MH_SAM_APDU [14:46:20]CAPDU: 80 0D 03 02 [14:46:20]Write to MH i2c: E2 08 00 AF 43 80 0D 03 02 00 00 00 00 6D [14:46:20]Write i2c OK [14:46:20]MH_I2C_Read... [14:46:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:20]Read from MH i2c: E2 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: E2 0B 00 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: E2 0B 00 AF 43 00 B4 BF B5 22 41 A7 0D FB 90 00 A8 [14:46:20]RAPDU: B4 BF B5 22 41 A7 0D FB 90 00 [14:46:20]wFMCommunicate OK [14:46:20]SAM_PROTO_SignData done [14:46:20]FM_MakeSignedData done [14:46:20]CreateOFDProtocolMessage [14:46:20]wFMCommunicate request_size=4 [14:46:20]MH_SAM_APDU [14:46:20]CAPDU: 80 11 00 00 [14:46:20]Write to MH i2c: E2 08 00 B0 43 80 11 00 00 00 00 00 00 6D [14:46:20]Write i2c OK [14:46:20]MH_I2C_Read... [14:46:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:20]Read from MH i2c: E2 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: E2 17 00 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: E2 17 00 B0 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C4 [14:46:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:46:20]wFMCommunicate OK [14:46:20]CreateOFDProtocolMessage done [14:46:20]OFDSenderStorePacket 228261 [14:46:20]StoreOFDPacket docnum=228261 [14:46:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 09 F5 07 01 A8 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E1 00 00 00 F4 03 04 00 BF BA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A5 7B 03 00 35 04 06 00 AC D6 5B 7B 62 38 B4 BF B5 22 41 A7 0D FB [14:46:20]CheckFolder [14:46:20]dirname=/storage/ofd_packets [14:46:20]CheckFolder done [14:46:20]ProducePacketName [14:46:20]name=ofd_packets/00228261 [14:46:20]NVStorageSaveData ofd_packets/00228261 [14:46:20]File name is /storage/ofd_packets/00228261 [14:46:20]Write 301 bytes [14:46:20]NVStorageSaveData done [14:46:20]OFDSenderStorePacket done [14:46:20]KKMCreateOFDPacket done [14:46:20]NVStorageSaveData kkm_last_timestamp [14:46:20]File name is /storage/kkm_last_timestamp [14:46:20]Write 4 bytes [14:46:20]NVStorageSaveData done [14:46:20]ExternCall_PrintAddStr [14:46:20]wPrintStart [14:46:20]Write to MH i2c: 01 00 00 B1 43 F4 [14:46:20]Write i2c OK [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: 01 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: 01 07 00 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: 01 07 00 B1 43 00 00 00 00 00 FF 0F 09 [14:46:20]RasterBufferAndPrint [14:46:20]line Счет N : (1)1964738 [14:46:20]line ИНН: 02508201610067 [14:46:20]line Контрольно-Кассовый Чек [14:46:20]line ПРОДАЖА [14:46:20]line ТРК (МРК, ГНК) : 44 [14:46:20]line Товар: 2710124500 [14:46:20]line Аи-95-К-5 [14:46:20]line 8.090 * 74.20 [14:46:20]line = 600.28 [14:46:20]line НДС 12% НСП 1% [14:46:20]line > о реализуемом товаре [14:46:20]line ОКРУГЛЕНИЕ: -0.28 [14:46:20]line ИТОГО: 600.00 [14:46:20]line Внесено: 600.00 [14:46:20]line СДАЧА: 0.00 [14:46:20]line НСП 1% : 5.31 [14:46:20]line НДС 12% : 63.75 [14:46:20]line Наличными: 600.00 [14:46:20]line Безнал.: 0.00 [14:46:20]line Место: АЗС № 133 "Партнер Нефть" [14:46:20]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [14:46:20]line СНО: Общий режим [14:46:20]line Чек 225 22.10.2024 14:46 [14:46:20]line Смена: 535 ФФД: 1.0 [14:46:20]line ЗНМ: 0300000091 [14:46:20]line РНМ: 0000000000091685 [14:46:20]line Версия ККМ: 001 [14:46:20]line ФМ: 0000000000871839 [14:46:20]line ФД: 228261 [14:46:20]line ФПД: 190036657791544 [14:46:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144623&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228261&fm=190036657791544&tin=02508201610067®Number=0000000000091685&sum=60000 [14:46:20]written 0, free lines is 4095 [14:46:20]OFD Sender: Processing packet 228261 [packets to send 38, broken 37] [14:46:20]ProducePacketName [14:46:20]name=ofd_packets/00228261 [14:46:20]OFD Sender: To server: pG, [14:46:20]CommunicateWithHost lk.salyk.kg:30040 [14:46:20]ConnectInit lk.salyk.kg [14:46:20]Connected sock=10 [14:46:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 09 F5 07 01 A8 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E1 00 00 00 F4 03 04 00 BF BA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A5 7B 03 00 35 04 06 00 AC D6 5B 7B 62 38 B4 BF B5 22 41 A7 0D FB [14:46:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 B7 30 47 00 3B 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A5 7B 03 00 F4 03 04 00 B6 65 17 67 B6 04 01 00 00 D5 11 67 F5 4F DD 2B 4D [14:46:20]CommunicateWithHost err = 0 [14:46:20]CheckOFDResponse [14:46:20]1017 (14) - 77093643461234 [14:46:20]1041 (16) - 0000000000871839 [14:46:20]1040 (4) - 228261 [14:46:20]1012 (4) - 22.10.2024 08:43 [14:46:20]1206 (1) - 0 [14:46:20]OFD Sender: Remove packet 228261 [14:46:20]ProducePacketName [14:46:20]name=ofd_packets/00228261 [14:46:20]NVStorageDeleteData [14:46:20]Write to MH i2c: 01 00 00 DB 43 1E [14:46:20]Write i2c OK [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: 01 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: 01 07 00 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: 01 07 00 DB 43 00 00 00 00 00 C5 0C F6 [14:46:20]RasterBufferAndPrint [14:46:20]line [14:46:20]line [14:46:20]line [14:46:20]line [14:46:20]line [14:46:20]written 0, free lines is 3275 [14:46:20]MH_Cut [14:46:20]Write to MH i2c: D1 01 00 E2 43 01 F7 [14:46:20]Write i2c OK [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: D1 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: D1 01 00 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: D1 01 00 E2 43 00 F6 [14:46:20]Write to MH i2c: 01 00 00 E3 43 26 [14:46:20]Write i2c OK [14:46:20]MH_I2C_Read... [14:46:21]OFD Sender: No OFD packet to send [14:46:21]*** Cut start [14:46:21]*** Partial cut [14:46:21]*** CUTSNS_PIN = 1 [14:46:21]*** CUTSNS_PIN = 0 [14:46:21]*** Brake cut motor [14:46:22]Read from MH i2c: 01 [14:46:22]MH_I2C_Read... [14:46:22]*** Stop cut motor [14:46:22]*** Cut end [14:46:22]Read from MH i2c: 01 07 00 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: 01 07 00 E3 43 00 00 00 00 00 FF 0F 3B [14:46:22]process_action close_receipt done [14:46:22]requested_data is exist [14:46:22]produce_requested_data [14:46:22]requested_item fm.sn is exist - process it [14:46:22]wFMCommunicate request_size=4 [14:46:22]MH_SAM_APDU [14:46:22]CAPDU: 80 11 00 00 [14:46:22]Write to MH i2c: E2 08 00 E4 43 80 11 00 00 00 00 00 00 A1 [14:46:22]Write i2c OK [14:46:22]MH_I2C_Read... [14:46:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:22]Read from MH i2c: E2 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: E2 17 00 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: E2 17 00 E4 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F8 [14:46:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:46:22]wFMCommunicate OK [14:46:22]requested_item fd.num is exist - process it [14:46:22]SAM_PROTO_GetFieldsCounters [14:46:22]wFMCommunicate request_size=4 [14:46:22]MH_SAM_APDU [14:46:22]CAPDU: 80 13 00 00 [14:46:22]Write to MH i2c: E2 08 00 E5 43 80 13 00 00 00 00 00 00 A4 [14:46:22]Write i2c OK [14:46:22]MH_I2C_Read... [14:46:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:22]Read from MH i2c: E2 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: E2 62 00 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: E2 62 00 E5 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A5 7B 03 00 0E 04 04 00 17 02 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 AC [14:46:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A5 7B 03 00 0E 04 04 00 17 02 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 [14:46:22]wFMCommunicate OK [14:46:22]SAM_PROTO_GetFieldsCounters done [14:46:22]requested_item shift.num is exist - process it [14:46:22]requested_item shift.opened is exist - process it [14:46:22]req_shift_opened [14:46:22]FM_GetShiftState [14:46:22]SAM_PROTO_GetShiftState [14:46:22]wFMCommunicate request_size=4 [14:46:22]MH_SAM_APDU [14:46:22]CAPDU: 80 13 01 00 [14:46:22]Write to MH i2c: E2 08 00 E6 43 80 13 01 00 00 00 00 00 A6 [14:46:22]Write i2c OK [14:46:22]MH_I2C_Read... [14:46:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:22]Read from MH i2c: E2 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: E2 0E 00 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: E2 0E 00 E6 43 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 6D [14:46:22]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:46:22]wFMCommunicate OK [14:46:22]SAM_PROTO_GetShiftState done [14:46:22]FM_GetShiftState done [14:46:22]req_shift_opened done [14:46:22]requested_item shift.open_date is exist - process it [14:46:22]req_shift_open_date [14:46:22]req_shift_open_date done [14:46:22]produce_requested_data done [14:46:22]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228261,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [14:46:22]process_action_free close_receipt [14:46:22]json_value_free [14:46:22]json_value_free done [14:46:22]process_json_proto returns [14:46:22]Send response to host [14:46:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228261,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [14:46:22]free response buf [14:46:22]execute_script done [14:46:22]execute_script returns [14:46:22]free content buf [14:46:22]Sock 9.Close socket [14:46:22]Sock 9.Thread stoped [14:46:26]OFD Sender: No OFD packet to send [14:46:31]OFD Sender: No OFD packet to send [14:46:36]OFD Sender: No OFD packet to send [14:46:41]OFD Sender: No OFD packet to send [14:46:41]accept exits with 7 [14:46:41]New connection [14:46:41]New thread 3067137380 created [14:46:41]Thread 3066994020 joined [14:46:41]Waiting for new connection... [14:46:41] Sock 7.Parse request [14:46:41]Sock 7.Check first char [14:46:41]Sock 7.First char is OK [14:46:41]request: POST /json_proto HTTP/1.0 [14:46:41]Method: POST [14:46:41]URL: /json_proto [14:46:41]Method is POST - this is cgi request [14:46:41]url: /json_proto [14:46:41]query_string will be loaded in cgi processing [14:46:41]execute_cgi json_proto POST (null) [14:46:41]execute_cgi path=json_proto method=POST [14:46:41]POST find Content-Length [14:46:41]Host: 172.17.44.195:8080 [14:46:41]Content-Length: 678 [14:46:41]Content-Type: application/json [14:46:41] [14:46:41]POST finish read [14:46:41]Found Content-Length = 678 [14:46:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "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" ] } } [14:46:41]execute_script... [14:46: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)1964739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "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" ] } } [14:46:41]POST & json_proto [14:46:41]process_json_proto [14:46:41]json parsed OK: [14:46:41]protocol is kg_v1.0 [14:46:41]action value=close_receipt [14:46:41]process_action close_receipt [14:46:41]cmd_close_receipt [14:46:41]MH_GetDate [14:46:41]Write to MH i2c: F0 00 00 E7 43 19 [14:46:41]Write i2c OK [14:46:41]MH_I2C_Read... [14:46:41]Read from MH i2c: F0 [14:46:41]MH_I2C_Read... [14:46:41]Read from MH i2c: F0 09 00 [14:46:41]MH_I2C_Read... [14:46:41]Read from MH i2c: F0 09 00 E7 43 00 D6 BA 17 67 82 C9 CF 66 B0 [14:46:41]GetLastDocTimeStamp 1729608383 [14:46:41]current date 1729608406 [14:46:41]FM_GetShiftState [14:46:41]SAM_PROTO_GetShiftState [14:46:41]wFMCommunicate request_size=4 [14:46:41]MH_SAM_APDU [14:46:41]CAPDU: 80 13 01 00 [14:46:41]Write to MH i2c: E2 08 00 E8 43 80 13 01 00 00 00 00 00 A8 [14:46:41]Write i2c OK [14:46:41]MH_I2C_Read... [14:46:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:41]Read from MH i2c: E2 [14:46:41]MH_I2C_Read... [14:46:41]Read from MH i2c: E2 0E 00 [14:46:41]MH_I2C_Read... [14:46:41]Read from MH i2c: E2 0E 00 E8 43 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 6F [14:46:41]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:46:41]wFMCommunicate OK [14:46:41]SAM_PROTO_GetShiftState done [14:46:41]FM_GetShiftState done [14:46:41]opened in 1729555538 [14:46:41]opened+sec_in_day 1729641938 [14:46:41]quantity*price = 30038 [14:46:41]sum+1 = 30039 [14:46:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 226 22.10.2024 14:46 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228262 ФПД: 65786058799284 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144646&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228262&fm=65786058799284&tin=02508201610067®Number=0000000000091685&sum=30000 [14:46:42]StoreToDocumentArchive [14:46:42]shift 535 fd 228262 [14:46:42]save to /storage/0535/doc_00228262 [14:46:42]save last doc name /storage/0535/doc_00228262 to /storage/kkm_last_doc_name [14:46:42]save OK [14:46:42]Clear old archive folders... [14:46:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:46:42]tlvbuf is 009738C0 [14:46:42]SAM_PROTO_ClearQueue [14:46:42]wFMCommunicate request_size=4 [14:46:42]MH_SAM_APDU [14:46:42]CAPDU: 80 09 00 00 [14:46:42]Write to MH i2c: E2 08 00 F5 43 80 09 00 00 00 00 00 00 AA [14:46:42]Write i2c OK [14:46:42]MH_I2C_Read... [14:46:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:43]Read from MH i2c: E2 [14:46:43]MH_I2C_Read... [14:46:43]Read from MH i2c: E2 03 00 [14:46:43]MH_I2C_Read... [14:46:43]Read from MH i2c: E2 03 00 F5 43 00 90 00 AC [14:46:43]RAPDU: 90 00 [14:46:43]wFMCommunicate OK [14:46:43]SAM_PROTO_ClearQueue done [14:46:43]KKMCreateOFDPacket [14:46:43]OFDProtocolAddRootSTLVToBuf [14:46:43]FM_MakeSignedData [14:46:43]FM_MakeSignedData [14:46:43]SAM_PROTO_SignData [14:46:43]wFMCommunicate request_size=4 [14:46:43]MH_SAM_APDU [14:46:43]CAPDU: 80 0D 01 02 [14:46:43]Write to MH i2c: E2 08 00 F6 43 80 0D 01 02 00 00 00 00 B2 [14:46:43]Write i2c OK [14:46:43]MH_I2C_Read... [14:46:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:43]Read from MH i2c: E2 [14:46:43]MH_I2C_Read... [14:46:43]Read from MH i2c: E2 03 00 [14:46:43]MH_I2C_Read... [14:46:43]Read from MH i2c: E2 03 00 F6 43 00 90 00 AD [14:46:43]RAPDU: 90 00 [14:46:43]wFMCommunicate OK [14:46:43]wFMCommunicate request_size=255 [14:46:43]MH_SAM_APDU [14:46:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 E2 00 00 00 F4 03 04 00 D6 BA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A6 7B 03 00 35 04 06 00 3B [14:46:43]Write to MH i2c: E2 02 01 F7 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 11 00 00 00 00 00 37 04 06 00 22 1A 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 E2 00 00 00 F4 03 04 00 D6 BA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A6 7B 03 00 35 04 06 00 3B 00 00 A5 [14:46:43]Write i2c OK [14:46:43]MH_I2C_Read... [14:46:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:43]Read from MH i2c: E2 [14:46:43]MH_I2C_Read... [14:46:43]Read from MH i2c: E2 03 00 [14:46:43]MH_I2C_Read... [14:46:43]Read from MH i2c: E2 03 00 F7 43 00 90 00 AE [14:46:43]RAPDU: 90 00 [14:46:43]wFMCommunicate OK [14:46:43]wFMCommunicate request_size=10 [14:46:43]MH_SAM_APDU [14:46:43]CAPDU: 80 0D 02 02 05 D5 02 AA 78 B4 [14:46:43]Write to MH i2c: E2 0D 00 F8 43 80 0D 02 02 05 00 D5 02 AA 78 B4 00 00 6C [14:46:43]Write i2c OK [14:46:43]MH_I2C_Read... [14:46:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:43]Read from MH i2c: E2 [14:46:43]MH_I2C_Read... [14:46:43]Read from MH i2c: E2 03 00 [14:46:43]MH_I2C_Read... [14:46:43]Read from MH i2c: E2 03 00 F8 43 00 90 00 AF [14:46:43]RAPDU: 90 00 [14:46:43]wFMCommunicate OK [14:46:43]wFMCommunicate request_size=4 [14:46:43]MH_SAM_APDU [14:46:43]CAPDU: 80 0D 03 02 [14:46:43]Write to MH i2c: E2 08 00 F9 43 80 0D 03 02 00 00 00 00 B7 [14:46:43]Write i2c OK [14:46:43]MH_I2C_Read... [14:46:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:43]Read from MH i2c: E2 [14:46:43]MH_I2C_Read... [14:46:43]Read from MH i2c: E2 0B 00 [14:46:43]MH_I2C_Read... [14:46:43]Read from MH i2c: E2 0B 00 F9 43 00 86 53 08 6E A0 74 51 C1 90 00 2D [14:46:43]RAPDU: 86 53 08 6E A0 74 51 C1 90 00 [14:46:43]wFMCommunicate OK [14:46:43]SAM_PROTO_SignData done [14:46:43]FM_MakeSignedData done [14:46:43]CreateOFDProtocolMessage [14:46:43]wFMCommunicate request_size=4 [14:46:43]MH_SAM_APDU [14:46:43]CAPDU: 80 11 00 00 [14:46:43]Write to MH i2c: E2 08 00 FA 43 80 11 00 00 00 00 00 00 B7 [14:46:43]Write i2c OK [14:46:43]MH_I2C_Read... [14:46:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:43]Read from MH i2c: E2 [14:46:43]MH_I2C_Read... [14:46:43]Read from MH i2c: E2 17 00 [14:46:43]MH_I2C_Read... [14:46:43]Read from MH i2c: E2 17 00 FA 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0E [14:46:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:46:43]wFMCommunicate OK [14:46:43]CreateOFDProtocolMessage done [14:46:43]OFDSenderStorePacket 228262 [14:46:43]StoreOFDPacket docnum=228262 [14:46:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A4 F8 07 01 C4 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 E2 00 00 00 F4 03 04 00 D6 BA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A6 7B 03 00 35 04 06 00 3B D5 02 AA 78 B4 86 53 08 6E A0 74 51 C1 [14:46:43]CheckFolder [14:46:43]dirname=/storage/ofd_packets [14:46:43]CheckFolder done [14:46:43]ProducePacketName [14:46:43]name=ofd_packets/00228262 [14:46:43]NVStorageSaveData ofd_packets/00228262 [14:46:43]File name is /storage/ofd_packets/00228262 [14:46:43]Write 301 bytes [14:46:43]NVStorageSaveData done [14:46:43]OFDSenderStorePacket done [14:46:43]KKMCreateOFDPacket done [14:46:43]NVStorageSaveData kkm_last_timestamp [14:46:43]File name is /storage/kkm_last_timestamp [14:46:43]Write 4 bytes [14:46:43]NVStorageSaveData done [14:46:43]ExternCall_PrintAddStr [14:46:43]wPrintStart [14:46:43]Write to MH i2c: 01 00 00 FB 43 3E [14:46:43]Write i2c OK [14:46:43]MH_I2C_Read... [14:46:43]Read from MH i2c: 01 [14:46:43]MH_I2C_Read... [14:46:43]Read from MH i2c: 01 07 00 [14:46:43]MH_I2C_Read... [14:46:43]Read from MH i2c: 01 07 00 FB 43 00 00 00 00 00 FF 0F 53 [14:46:43]RasterBufferAndPrint [14:46:43]line Счет N : (1)1964739 [14:46:43]line ИНН: 02508201610067 [14:46:43]line Контрольно-Кассовый Чек [14:46:43]line ПРОДАЖА [14:46:43]line ТРК (МРК, ГНК) : 33 [14:46:43]line Товар: 2710124130 [14:46:43]line Аи-92-К-5 [14:46:43]line 4.490 * 66.90 [14:46:43]line = 300.38 [14:46:43]line НДС 12% НСП 1% [14:46:43]line > о реализуемом товаре [14:46:43]line ОКРУГЛЕНИЕ: -0.38 [14:46:43]line ИТОГО: 300.00 [14:46:43]line Внесено: 300.00 [14:46:43]line СДАЧА: 0.00 [14:46:43]line НСП 1% : 2.66 [14:46:43]line НДС 12% : 31.90 [14:46:43]line Наличными: 300.00 [14:46:43]line Безнал.: 0.00 [14:46:43]line Место: АЗС № 133 "Партнер Нефть" [14:46:43]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [14:46:43]line СНО: Общий режим [14:46:43]line Чек 226 22.10.2024 14:46 [14:46:43]line Смена: 535 ФФД: 1.0 [14:46:43]line ЗНМ: 0300000091 [14:46:43]line РНМ: 0000000000091685 [14:46:43]line Версия ККМ: 001 [14:46:43]line ФМ: 0000000000871839 [14:46:43]line ФД: 228262 [14:46:43]line ФПД: 65786058799284 [14:46:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144646&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228262&fm=65786058799284&tin=02508201610067®Number=0000000000091685&sum=30000 [14:46:43]written 0, free lines is 4095 [14:46:43]OFD Sender: Processing packet 228262 [packets to send 38, broken 37] [14:46:43]ProducePacketName [14:46:43]name=ofd_packets/00228262 [14:46:43]OFD Sender: To server: pG, [14:46:43]CommunicateWithHost lk.salyk.kg:30040 [14:46:43]ConnectInit lk.salyk.kg [14:46:43]Connected sock=10 [14:46:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A4 F8 07 01 C4 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 E2 00 00 00 F4 03 04 00 D6 BA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A6 7B 03 00 35 04 06 00 3B D5 02 AA 78 B4 86 53 08 6E A0 74 51 C1 [14:46:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 E4 5F 47 00 2E 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 38 37 31 38 33 39 10 04 04 00 A6 7B 03 00 F4 03 04 00 CE 65 17 67 B6 04 01 00 00 B1 A8 A6 64 05 8D 48 32 [14:46:44]CommunicateWithHost err = 0 [14:46:44]CheckOFDResponse [14:46:44]1017 (14) - 77093643461234 [14:46:44]1041 (16) - 0000000000871839 [14:46:44]1040 (4) - 228262 [14:46:44]1012 (4) - 22.10.2024 08:43 [14:46:44]1206 (1) - 0 [14:46:44]OFD Sender: Remove packet 228262 [14:46:44]ProducePacketName [14:46:44]name=ofd_packets/00228262 [14:46:44]NVStorageDeleteData [14:46:44]Write to MH i2c: 01 00 00 25 44 69 [14:46:44]Write i2c OK [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: 01 [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: 01 07 00 [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: 01 07 00 25 44 00 00 00 00 00 C3 0C 3F [14:46:44]RasterBufferAndPrint [14:46:44]line [14:46:44]line [14:46:44]line [14:46:44]line [14:46:44]line [14:46:44]written 0, free lines is 3271 [14:46:44]MH_Cut [14:46:44]Write to MH i2c: D1 01 00 2C 44 01 42 [14:46:44]Write i2c OK [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: D1 [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: D1 01 00 [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: D1 01 00 2C 44 00 41 [14:46:44]Write to MH i2c: 01 00 00 2D 44 71 [14:46:44]Write i2c OK [14:46:44]MH_I2C_Read... [14:46:44]OFD Sender: No OFD packet to send [14:46:45]*** Cut start [14:46:45]*** Partial cut [14:46:45]*** CUTSNS_PIN = 1 [14:46:45]*** CUTSNS_PIN = 0 [14:46:45]*** Brake cut motor [14:46:45]Read from MH i2c: 01 [14:46:45]MH_I2C_Read... [14:46:45]*** Stop cut motor [14:46:45]*** Cut end [14:46:45]Read from MH i2c: 01 07 00 [14:46:45]MH_I2C_Read... [14:46:45]Read from MH i2c: 01 07 00 2D 44 00 00 00 00 00 FF 0F 86 [14:46:45]process_action close_receipt done [14:46:45]requested_data is exist [14:46:45]produce_requested_data [14:46:45]requested_item fm.sn is exist - process it [14:46:45]wFMCommunicate request_size=4 [14:46:45]MH_SAM_APDU [14:46:45]CAPDU: 80 11 00 00 [14:46:45]Write to MH i2c: E2 08 00 2E 44 80 11 00 00 00 00 00 00 EC [14:46:45]Write i2c OK [14:46:45]MH_I2C_Read... [14:46:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:45]Read from MH i2c: E2 [14:46:45]MH_I2C_Read... [14:46:45]Read from MH i2c: E2 17 00 [14:46:45]MH_I2C_Read... [14:46:45]Read from MH i2c: E2 17 00 2E 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 43 [14:46:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:46:45]wFMCommunicate OK [14:46:45]requested_item fd.num is exist - process it [14:46:45]SAM_PROTO_GetFieldsCounters [14:46:45]wFMCommunicate request_size=4 [14:46:45]MH_SAM_APDU [14:46:45]CAPDU: 80 13 00 00 [14:46:45]Write to MH i2c: E2 08 00 2F 44 80 13 00 00 00 00 00 00 EF [14:46:45]Write i2c OK [14:46:45]MH_I2C_Read... [14:46:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:45]Read from MH i2c: E2 [14:46:45]MH_I2C_Read... [14:46:45]Read from MH i2c: E2 62 00 [14:46:45]MH_I2C_Read... [14:46:45]Read from MH i2c: E2 62 00 2F 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A6 7B 03 00 0E 04 04 00 17 02 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 FB [14:46:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A6 7B 03 00 0E 04 04 00 17 02 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 [14:46:45]wFMCommunicate OK [14:46:45]SAM_PROTO_GetFieldsCounters done [14:46:45]requested_item shift.num is exist - process it [14:46:45]requested_item shift.opened is exist - process it [14:46:45]req_shift_opened [14:46:45]FM_GetShiftState [14:46:45]SAM_PROTO_GetShiftState [14:46:45]wFMCommunicate request_size=4 [14:46:45]MH_SAM_APDU [14:46:45]CAPDU: 80 13 01 00 [14:46:45]Write to MH i2c: E2 08 00 30 44 80 13 01 00 00 00 00 00 F1 [14:46:45]Write i2c OK [14:46:45]MH_I2C_Read... [14:46:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:45]Read from MH i2c: E2 [14:46:45]MH_I2C_Read... [14:46:45]Read from MH i2c: E2 0E 00 [14:46:45]MH_I2C_Read... [14:46:45]Read from MH i2c: E2 0E 00 30 44 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 B8 [14:46:45]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:46:45]wFMCommunicate OK [14:46:45]SAM_PROTO_GetShiftState done [14:46:45]FM_GetShiftState done [14:46:45]req_shift_opened done [14:46:45]requested_item shift.open_date is exist - process it [14:46:45]req_shift_open_date [14:46:45]req_shift_open_date done [14:46:45]produce_requested_data done [14:46:45]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228262,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [14:46:45]process_action_free close_receipt [14:46:45]json_value_free [14:46:45]json_value_free done [14:46:45]process_json_proto returns [14:46:45]Send response to host [14:46:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228262,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [14:46:45]free response buf [14:46:45]execute_script done [14:46:46]execute_script returns [14:46:46]free content buf [14:46:46]Sock 7.Close socket [14:46:46]Sock 7.Thread stoped [14:46:49]OFD Sender: No OFD packet to send [14:46:52]accept exits with 9 [14:46:52]New connection [14:46:52]New thread 3066994020 created [14:46:52]Thread 3067137380 joined [14:46:52]Waiting for new connection... [14:46:52] Sock 9.Parse request [14:46:52]Sock 9.Check first char [14:46:52]Sock 9.First char is OK [14:46:52]request: POST /json_proto HTTP/1.0 [14:46:52]Method: POST [14:46:52]URL: /json_proto [14:46:52]Method is POST - this is cgi request [14:46:52]url: /json_proto [14:46:52]query_string will be loaded in cgi processing [14:46:52]execute_cgi json_proto POST (null) [14:46:52]execute_cgi path=json_proto method=POST [14:46:52]POST find Content-Length [14:46:52]Host: 172.17.44.195:8080 [14:46:52]Content-Length: 621 [14:46:52]Content-Type: application/json [14:46:52] [14:46:52]POST finish read [14:46:52]Found Content-Length = 621 [14:46:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:52]execute_script... [14:46: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)1964740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:52]POST & json_proto [14:46:52]process_json_proto [14:46:52]json parsed OK: [14:46:52]protocol is kg_v1.0 [14:46:52]action value=close_receipt [14:46:52]process_action close_receipt [14:46:52]cmd_close_receipt [14:46:52]MH_GetDate [14:46:52]Write to MH i2c: F0 00 00 31 44 64 [14:46:52]Write i2c OK [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: F0 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: F0 09 00 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: F0 09 00 31 44 00 E1 BA 17 67 82 C9 CF 66 06 [14:46:52]GetLastDocTimeStamp 1729608406 [14:46:52]current date 1729608417 [14:46:52]FM_GetShiftState [14:46:52]SAM_PROTO_GetShiftState [14:46:52]wFMCommunicate request_size=4 [14:46:52]MH_SAM_APDU [14:46:52]CAPDU: 80 13 01 00 [14:46:52]Write to MH i2c: E2 08 00 32 44 80 13 01 00 00 00 00 00 F3 [14:46:52]Write i2c OK [14:46:52]MH_I2C_Read... [14:46:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:52]Read from MH i2c: E2 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 0E 00 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 0E 00 32 44 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 BA [14:46:52]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:46:52]wFMCommunicate OK [14:46:52]SAM_PROTO_GetShiftState done [14:46:52]FM_GetShiftState done [14:46:52]opened in 1729555538 [14:46:52]opened+sec_in_day 1729641938 [14:46:52]quantity*price = 50000 [14:46:52]sum+1 = 50001 [14:46:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 227 22.10.2024 14:46 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228263 ФПД: 28983178454819 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144657&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228263&fm=28983178454819&tin=02508201610067®Number=0000000000091685&sum=50000 [14:46:53]StoreToDocumentArchive [14:46:53]shift 535 fd 228263 [14:46:53]save to /storage/0535/doc_00228263 [14:46:53]save last doc name /storage/0535/doc_00228263 to /storage/kkm_last_doc_name [14:46:53]save OK [14:46:53]Clear old archive folders... [14:46:53]ProcessDocumentItem done err = 0, tmpTLVsize=244 [14:46:53]tlvbuf is 008BD5B0 [14:46:53]SAM_PROTO_ClearQueue [14:46:53]wFMCommunicate request_size=4 [14:46:53]MH_SAM_APDU [14:46:53]CAPDU: 80 09 00 00 [14:46:53]Write to MH i2c: E2 08 00 3F 44 80 09 00 00 00 00 00 00 F5 [14:46:53]Write i2c OK [14:46:53]MH_I2C_Read... [14:46:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:53]Read from MH i2c: E2 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: E2 03 00 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: E2 03 00 3F 44 00 90 00 F7 [14:46:53]RAPDU: 90 00 [14:46:53]wFMCommunicate OK [14:46:53]SAM_PROTO_ClearQueue done [14:46:53]KKMCreateOFDPacket [14:46:53]OFDProtocolAddRootSTLVToBuf [14:46:53]FM_MakeSignedData [14:46:53]FM_MakeSignedData [14:46:53]SAM_PROTO_SignData [14:46:53]wFMCommunicate request_size=4 [14:46:53]MH_SAM_APDU [14:46:53]CAPDU: 80 0D 01 02 [14:46:53]Write to MH i2c: E2 08 00 40 44 80 0D 01 02 00 00 00 00 FD [14:46:53]Write i2c OK [14:46:53]MH_I2C_Read... [14:46:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:53]Read from MH i2c: E2 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: E2 03 00 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: E2 03 00 40 44 00 90 00 F8 [14:46:53]RAPDU: 90 00 [14:46:53]wFMCommunicate OK [14:46:53]wFMCommunicate request_size=253 [14:46:53]MH_SAM_APDU [14:46:53]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 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 E1 BA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A7 7B 03 00 35 04 06 00 1A 5C 2C 0E 67 23 [14:46:53]Write to MH i2c: E2 00 01 41 44 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 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 E1 BA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A7 7B 03 00 35 04 06 00 1A 5C 2C 0E 67 23 00 00 73 [14:46:53]Write i2c OK [14:46:53]MH_I2C_Read... [14:46:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:54]Read from MH i2c: E2 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: E2 03 00 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: E2 03 00 41 44 00 90 00 F9 [14:46:54]RAPDU: 90 00 [14:46:54]wFMCommunicate OK [14:46:54]wFMCommunicate request_size=4 [14:46:54]MH_SAM_APDU [14:46:54]CAPDU: 80 0D 03 02 [14:46:54]Write to MH i2c: E2 08 00 42 44 80 0D 03 02 00 00 00 00 01 [14:46:54]Write i2c OK [14:46:54]MH_I2C_Read... [14:46:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:54]Read from MH i2c: E2 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: E2 0B 00 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: E2 0B 00 42 44 00 69 08 0D CB 7C 4C 77 BF 90 00 49 [14:46:54]RAPDU: 69 08 0D CB 7C 4C 77 BF 90 00 [14:46:54]wFMCommunicate OK [14:46:54]SAM_PROTO_SignData done [14:46:54]FM_MakeSignedData done [14:46:54]CreateOFDProtocolMessage [14:46:54]wFMCommunicate request_size=4 [14:46:54]MH_SAM_APDU [14:46:54]CAPDU: 80 11 00 00 [14:46:54]Write to MH i2c: E2 08 00 43 44 80 11 00 00 00 00 00 00 01 [14:46:54]Write i2c OK [14:46:54]MH_I2C_Read... [14:46:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:54]Read from MH i2c: E2 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: E2 17 00 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: E2 17 00 43 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 58 [14:46:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:46:54]wFMCommunicate OK [14:46:54]CreateOFDProtocolMessage done [14:46:54]OFDSenderStorePacket 228263 [14:46:54]StoreOFDPacket docnum=228263 [14:46:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 CA 61 00 01 9D AA 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 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 E1 BA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A7 7B 03 00 35 04 06 00 1A 5C 2C 0E 67 23 69 08 0D CB 7C 4C 77 BF [14:46:54]CheckFolder [14:46:54]dirname=/storage/ofd_packets [14:46:54]CheckFolder done [14:46:54]ProducePacketName [14:46:54]name=ofd_packets/00228263 [14:46:54]NVStorageSaveData ofd_packets/00228263 [14:46:54]File name is /storage/ofd_packets/00228263 [14:46:54]Write 294 bytes [14:46:54]NVStorageSaveData done [14:46:54]OFDSenderStorePacket done [14:46:54]KKMCreateOFDPacket done [14:46:54]NVStorageSaveData kkm_last_timestamp [14:46:54]File name is /storage/kkm_last_timestamp [14:46:54]Write 4 bytes [14:46:54]NVStorageSaveData done [14:46:54]ExternCall_PrintAddStr [14:46:54]wPrintStart [14:46:54]Write to MH i2c: 01 00 00 44 44 88 [14:46:54]Write i2c OK [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: 01 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: 01 07 00 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: 01 07 00 44 44 00 00 00 00 00 FF 0F 9D [14:46:54]RasterBufferAndPrint [14:46:54]line Счет N : (1)1964740 [14:46:54]line ИНН: 02508201610067 [14:46:54]line Контрольно-Кассовый Чек [14:46:54]line ПРОДАЖА [14:46:54]line ТРК (МРК, ГНК) : 62 [14:46:54]line Товар: 2710124130 [14:46:54]line SU-92 [14:46:54]line 7.310 * 68.40 [14:46:54]line = 500.00 [14:46:54]line НДС 12% НСП 1% [14:46:54]line > о реализуемом товаре [14:46:54]line ИТОГО: 500.00 [14:46:54]line НСП 1% : 4.42 [14:46:54]line НДС 12% : 53.10 [14:46:54]line Наличными: 500.00 [14:46:54]line Безнал.: 0.00 [14:46:54]line Место: АЗС № 133 "Партнер Нефть" [14:46:54]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [14:46:54]line СНО: Общий режим [14:46:54]line Чек 227 22.10.2024 14:46 [14:46:54]line Смена: 535 ФФД: 1.0 [14:46:54]line ЗНМ: 0300000091 [14:46:54]line РНМ: 0000000000091685 [14:46:54]line Версия ККМ: 001 [14:46:54]line ФМ: 0000000000871839 [14:46:54]line ФД: 228263 [14:46:54]line ФПД: 28983178454819 [14:46:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144657&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228263&fm=28983178454819&tin=02508201610067®Number=0000000000091685&sum=50000 [14:46:54]written 0, free lines is 4095 [14:46:54]OFD Sender: Processing packet 228263 [packets to send 38, broken 37] [14:46:54]ProducePacketName [14:46:54]name=ofd_packets/00228263 [14:46:54]OFD Sender: To server: pG, [14:46:54]CommunicateWithHost lk.salyk.kg:30040 [14:46:54]ConnectInit lk.salyk.kg [14:46:54]Connected sock=10 [14:46:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 CA 61 00 01 9D AA 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 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 E1 BA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A7 7B 03 00 35 04 06 00 1A 5C 2C 0E 67 23 69 08 0D CB 7C 4C 77 BF [14:46:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 4A D0 47 00 71 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 38 37 31 38 33 39 10 04 04 00 A7 7B 03 00 F4 03 04 00 D8 65 17 67 B6 04 01 00 00 66 34 C2 4F 40 DF 32 37 [14:46:54]CommunicateWithHost err = 0 [14:46:54]CheckOFDResponse [14:46:54]1017 (14) - 77093643461234 [14:46:54]1041 (16) - 0000000000871839 [14:46:54]1040 (4) - 228263 [14:46:54]1012 (4) - 22.10.2024 08:44 [14:46:54]1206 (1) - 0 [14:46:54]OFD Sender: Remove packet 228263 [14:46:54]ProducePacketName [14:46:54]name=ofd_packets/00228263 [14:46:54]NVStorageDeleteData [14:46:54]Write to MH i2c: 01 00 00 6B 44 AF [14:46:54]Write i2c OK [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: 01 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: 01 07 00 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: 01 07 00 6B 44 00 00 00 00 00 FF 0C C1 [14:46:54]RasterBufferAndPrint [14:46:54]line [14:46:54]line [14:46:54]line [14:46:54]line [14:46:54]line [14:46:54]written 0, free lines is 3333 [14:46:54]MH_Cut [14:46:54]Write to MH i2c: D1 01 00 72 44 01 88 [14:46:54]Write i2c OK [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: D1 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: D1 01 00 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: D1 01 00 72 44 00 87 [14:46:54]Write to MH i2c: 01 00 00 73 44 B7 [14:46:54]Write i2c OK [14:46:54]MH_I2C_Read... [14:46:55]OFD Sender: No OFD packet to send [14:46:55]*** Cut start [14:46:55]*** Partial cut [14:46:55]*** CUTSNS_PIN = 1 [14:46:55]*** CUTSNS_PIN = 0 [14:46:55]*** Brake cut motor [14:46:55]Read from MH i2c: 01 [14:46:56]MH_I2C_Read... [14:46:56]*** Stop cut motor [14:46:56]*** Cut end [14:46:56]Read from MH i2c: 01 07 00 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: 01 07 00 73 44 00 00 00 00 00 FF 0F CC [14:46:56]process_action close_receipt done [14:46:56]requested_data is exist [14:46:56]produce_requested_data [14:46:56]requested_item fm.sn is exist - process it [14:46:56]wFMCommunicate request_size=4 [14:46:56]MH_SAM_APDU [14:46:56]CAPDU: 80 11 00 00 [14:46:56]Write to MH i2c: E2 08 00 74 44 80 11 00 00 00 00 00 00 32 [14:46:56]Write i2c OK [14:46:56]MH_I2C_Read... [14:46:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:56]Read from MH i2c: E2 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: E2 17 00 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: E2 17 00 74 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 89 [14:46:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:46:56]wFMCommunicate OK [14:46:56]requested_item fd.num is exist - process it [14:46:56]SAM_PROTO_GetFieldsCounters [14:46:56]wFMCommunicate request_size=4 [14:46:56]MH_SAM_APDU [14:46:56]CAPDU: 80 13 00 00 [14:46:56]Write to MH i2c: E2 08 00 75 44 80 13 00 00 00 00 00 00 35 [14:46:56]Write i2c OK [14:46:56]MH_I2C_Read... [14:46:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:56]Read from MH i2c: E2 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: E2 62 00 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: E2 62 00 75 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A7 7B 03 00 0E 04 04 00 17 02 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 45 [14:46:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A7 7B 03 00 0E 04 04 00 17 02 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 [14:46:56]wFMCommunicate OK [14:46:56]SAM_PROTO_GetFieldsCounters done [14:46:56]requested_item shift.num is exist - process it [14:46:56]requested_item shift.opened is exist - process it [14:46:56]req_shift_opened [14:46:56]FM_GetShiftState [14:46:56]SAM_PROTO_GetShiftState [14:46:56]wFMCommunicate request_size=4 [14:46:56]MH_SAM_APDU [14:46:56]CAPDU: 80 13 01 00 [14:46:56]Write to MH i2c: E2 08 00 76 44 80 13 01 00 00 00 00 00 37 [14:46:56]Write i2c OK [14:46:56]MH_I2C_Read... [14:46:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:56]Read from MH i2c: E2 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: E2 0E 00 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: E2 0E 00 76 44 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 FE [14:46:56]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:46:56]wFMCommunicate OK [14:46:56]SAM_PROTO_GetShiftState done [14:46:56]FM_GetShiftState done [14:46:56]req_shift_opened done [14:46:56]requested_item shift.open_date is exist - process it [14:46:56]req_shift_open_date [14:46:56]req_shift_open_date done [14:46:56]produce_requested_data done [14:46:56]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228263,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [14:46:56]process_action_free close_receipt [14:46:56]json_value_free [14:46:56]json_value_free done [14:46:56]process_json_proto returns [14:46:56]Send response to host [14:46:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228263,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [14:46:56]free response buf [14:46:56]execute_script done [14:46:56]execute_script returns [14:46:56]free content buf [14:46:56]Sock 9.Close socket [14:46:56]Sock 9.Thread stoped [14:47:00]OFD Sender: No OFD packet to send [14:47:05]OFD Sender: No OFD packet to send [14:47:10]OFD Sender: No OFD packet to send [14:47:15]OFD Sender: No OFD packet to send [14:47:20]OFD Sender: No OFD packet to send [14:47:25]OFD Sender: No OFD packet to send [14:47:30]OFD Sender: No OFD packet to send [14:47:35]OFD Sender: No OFD packet to send [14:47:40]OFD Sender: No OFD packet to send [14:47:45]OFD Sender: No OFD packet to send [14:47:50]OFD Sender: No OFD packet to send [14:47:55]OFD Sender: No OFD packet to send [14:48:00]OFD Sender: No OFD packet to send [14:48:05]OFD Sender: No OFD packet to send [14:48:10]OFD Sender: No OFD packet to send [14:48:15]OFD Sender: No OFD packet to send [14:48:20]OFD Sender: No OFD packet to send [14:48:24]accept exits with 7 [14:48:24]New connection [14:48:24]New thread 3067137380 created [14:48:24]Thread 3066994020 joined [14:48:24]Waiting for new connection... [14:48:24] Sock 7.Parse request [14:48:24]Sock 7.Check first char [14:48:24]Sock 7.First char is OK [14:48:24]request: POST /json_proto HTTP/1.0 [14:48:24]Method: POST [14:48:24]URL: /json_proto [14:48:24]Method is POST - this is cgi request [14:48:24]url: /json_proto [14:48:24]query_string will be loaded in cgi processing [14:48:24]execute_cgi json_proto POST (null) [14:48:24]execute_cgi path=json_proto method=POST [14:48:24]POST find Content-Length [14:48:24]Host: 172.17.44.195:8080 [14:48:24]Content-Length: 675 [14:48:24]Content-Type: application/json [14:48:24] [14:48:24]POST finish read [14:48:24]Found Content-Length = 675 [14:48:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:24]execute_script... [14:48: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)1964741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:24]POST & json_proto [14:48:24]process_json_proto [14:48:24]json parsed OK: [14:48:24]protocol is kg_v1.0 [14:48:24]action value=close_receipt [14:48:24]process_action close_receipt [14:48:24]cmd_close_receipt [14:48:24]MH_GetDate [14:48:24]Write to MH i2c: F0 00 00 77 44 AA [14:48:24]Write i2c OK [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: F0 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: F0 09 00 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: F0 09 00 77 44 00 3C BB 17 67 82 C9 CF 66 A8 [14:48:24]GetLastDocTimeStamp 1729608417 [14:48:24]current date 1729608508 [14:48:24]FM_GetShiftState [14:48:24]SAM_PROTO_GetShiftState [14:48:24]wFMCommunicate request_size=4 [14:48:24]MH_SAM_APDU [14:48:24]CAPDU: 80 13 01 00 [14:48:24]Write to MH i2c: E2 08 00 78 44 80 13 01 00 00 00 00 00 39 [14:48:24]Write i2c OK [14:48:24]MH_I2C_Read... [14:48:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:24]Read from MH i2c: E2 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: E2 0E 00 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: E2 0E 00 78 44 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 00 [14:48:24]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:48:24]wFMCommunicate OK [14:48:24]SAM_PROTO_GetShiftState done [14:48:24]FM_GetShiftState done [14:48:24]opened in 1729555538 [14:48:24]opened+sec_in_day 1729641938 [14:48:24]quantity*price = 50063 [14:48:24]sum+1 = 50064 [14:48:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 228 22.10.2024 14:48 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228264 ФПД: 256228849683896 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144828&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228264&fm=256228849683896&tin=02508201610067®Number=0000000000091685&sum=50000 [14:48:25]StoreToDocumentArchive [14:48:25]shift 535 fd 228264 [14:48:25]save to /storage/0535/doc_00228264 [14:48:25]save last doc name /storage/0535/doc_00228264 to /storage/kkm_last_doc_name [14:48:25]save OK [14:48:25]Clear old archive folders... [14:48:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:48:25]tlvbuf is B6F077E0 [14:48:25]SAM_PROTO_ClearQueue [14:48:25]wFMCommunicate request_size=4 [14:48:25]MH_SAM_APDU [14:48:25]CAPDU: 80 09 00 00 [14:48:25]Write to MH i2c: E2 08 00 85 44 80 09 00 00 00 00 00 00 3B [14:48:25]Write i2c OK [14:48:25]MH_I2C_Read... [14:48:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:48:25]Read from MH i2c: E2 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: E2 03 00 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: E2 03 00 85 44 00 90 00 3D [14:48:25]RAPDU: 90 00 [14:48:25]wFMCommunicate OK [14:48:25]SAM_PROTO_ClearQueue done [14:48:25]KKMCreateOFDPacket [14:48:25]OFDProtocolAddRootSTLVToBuf [14:48:25]FM_MakeSignedData [14:48:25]FM_MakeSignedData [14:48:25]SAM_PROTO_SignData [14:48:25]wFMCommunicate request_size=4 [14:48:25]MH_SAM_APDU [14:48:25]CAPDU: 80 0D 01 02 [14:48:25]Write to MH i2c: E2 08 00 86 44 80 0D 01 02 00 00 00 00 43 [14:48:25]Write i2c OK [14:48:25]MH_I2C_Read... [14:48:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:48:25]Read from MH i2c: E2 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: E2 03 00 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: E2 03 00 86 44 00 90 00 3E [14:48:25]RAPDU: 90 00 [14:48:25]wFMCommunicate OK [14:48:25]wFMCommunicate request_size=255 [14:48:25]MH_SAM_APDU [14:48:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 3C BB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A8 7B 03 00 35 04 06 00 E9 09 ED 91 [14:48:25]Write to MH i2c: E2 02 01 87 44 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 3C BB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A8 7B 03 00 35 04 06 00 E9 09 ED 91 00 00 60 [14:48:25]Write i2c OK [14:48:25]MH_I2C_Read... [14:48:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:25]Read from MH i2c: E2 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: E2 03 00 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: E2 03 00 87 44 00 90 00 3F [14:48:25]RAPDU: 90 00 [14:48:25]wFMCommunicate OK [14:48:25]wFMCommunicate request_size=7 [14:48:25]MH_SAM_APDU [14:48:25]CAPDU: 80 0D 02 02 02 0D B8 [14:48:25]Write to MH i2c: E2 0A 00 88 44 80 0D 02 02 02 00 0D B8 00 00 0F [14:48:25]Write i2c OK [14:48:25]MH_I2C_Read... [14:48:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:25]Read from MH i2c: E2 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: E2 03 00 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: E2 03 00 88 44 00 90 00 40 [14:48:25]RAPDU: 90 00 [14:48:25]wFMCommunicate OK [14:48:25]wFMCommunicate request_size=4 [14:48:25]MH_SAM_APDU [14:48:25]CAPDU: 80 0D 03 02 [14:48:25]Write to MH i2c: E2 08 00 89 44 80 0D 03 02 00 00 00 00 48 [14:48:25]Write i2c OK [14:48:25]MH_I2C_Read... [14:48:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:48:25]Read from MH i2c: E2 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: E2 0B 00 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: E2 0B 00 89 44 00 EC 14 32 02 35 7B C2 A3 90 00 92 [14:48:25]RAPDU: EC 14 32 02 35 7B C2 A3 90 00 [14:48:25]wFMCommunicate OK [14:48:25]SAM_PROTO_SignData done [14:48:25]FM_MakeSignedData done [14:48:25]CreateOFDProtocolMessage [14:48:25]wFMCommunicate request_size=4 [14:48:25]MH_SAM_APDU [14:48:25]CAPDU: 80 11 00 00 [14:48:25]Write to MH i2c: E2 08 00 8A 44 80 11 00 00 00 00 00 00 48 [14:48:25]Write i2c OK [14:48:25]MH_I2C_Read... [14:48:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:25]Read from MH i2c: E2 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: E2 17 00 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: E2 17 00 8A 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9F [14:48:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:48:25]wFMCommunicate OK [14:48:25]CreateOFDProtocolMessage done [14:48:25]OFDSenderStorePacket 228264 [14:48:25]StoreOFDPacket docnum=228264 [14:48:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 7C 29 04 01 6F 3E 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 3C BB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A8 7B 03 00 35 04 06 00 E9 09 ED 91 0D B8 EC 14 32 02 35 7B C2 A3 [14:48:25]CheckFolder [14:48:25]dirname=/storage/ofd_packets [14:48:25]CheckFolder done [14:48:25]ProducePacketName [14:48:25]name=ofd_packets/00228264 [14:48:25]NVStorageSaveData ofd_packets/00228264 [14:48:25]File name is /storage/ofd_packets/00228264 [14:48:25]Write 298 bytes [14:48:25]NVStorageSaveData done [14:48:25]OFDSenderStorePacket done [14:48:25]KKMCreateOFDPacket done [14:48:25]NVStorageSaveData kkm_last_timestamp [14:48:25]File name is /storage/kkm_last_timestamp [14:48:25]Write 4 bytes [14:48:25]NVStorageSaveData done [14:48:25]ExternCall_PrintAddStr [14:48:25]wPrintStart [14:48:25]Write to MH i2c: 01 00 00 8B 44 CF [14:48:25]Write i2c OK [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: 01 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: 01 07 00 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: 01 07 00 8B 44 00 00 00 00 00 FF 0F E4 [14:48:25]RasterBufferAndPrint [14:48:25]line Счет N : (1)1964741 [14:48:25]line ИНН: 02508201610067 [14:48:25]line Контрольно-Кассовый Чек [14:48:25]line ПРОДАЖА [14:48:25]line ТРК (МРК, ГНК) : 41 [14:48:25]line Товар: 2710194210 [14:48:25]line ДТ-К-5 [14:48:25]line 6.570 * 76.20 [14:48:25]line = 500.63 [14:48:25]line НДС 12% НСП 1% [14:48:25]line > о реализуемом товаре [14:48:25]line ОКРУГЛЕНИЕ: -0.63 [14:48:25]line ИТОГО: 500.00 [14:48:25]line Внесено: 500.00 [14:48:25]line СДАЧА: 0.00 [14:48:25]line НСП 1% : 4.43 [14:48:25]line НДС 12% : 53.16 [14:48:25]line Наличными: 500.00 [14:48:25]line Безнал.: 0.00 [14:48:25]line Место: АЗС № 133 "Партнер Нефть" [14:48:25]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [14:48:25]line СНО: Общий режим [14:48:25]line Чек 228 22.10.2024 14:48 [14:48:25]line Смена: 535 ФФД: 1.0 [14:48:25]line ЗНМ: 0300000091 [14:48:25]line РНМ: 0000000000091685 [14:48:25]line Версия ККМ: 001 [14:48:25]line ФМ: 0000000000871839 [14:48:25]line ФД: 228264 [14:48:25]line ФПД: 256228849683896 [14:48:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144828&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228264&fm=256228849683896&tin=02508201610067®Number=0000000000091685&sum=50000 [14:48:25]written 0, free lines is 4095 [14:48:26]OFD Sender: Processing packet 228264 [packets to send 38, broken 37] [14:48:26]ProducePacketName [14:48:26]name=ofd_packets/00228264 [14:48:26]OFD Sender: To server: pG, [14:48:26]CommunicateWithHost lk.salyk.kg:30040 [14:48:26]ConnectInit lk.salyk.kg [14:48:26]Connected sock=10 [14:48:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 7C 29 04 01 6F 3E 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 3C BB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A8 7B 03 00 35 04 06 00 E9 09 ED 91 0D B8 EC 14 32 02 35 7B C2 A3 [14:48:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 BC F8 47 00 65 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A8 7B 03 00 F4 03 04 00 34 66 17 67 B6 04 01 00 00 85 42 F2 65 CC 45 41 9B [14:48:26]CommunicateWithHost err = 0 [14:48:26]CheckOFDResponse [14:48:26]1017 (14) - 77093643461234 [14:48:26]1041 (16) - 0000000000871839 [14:48:26]1040 (4) - 228264 [14:48:26]1012 (4) - 22.10.2024 08:45 [14:48:26]1206 (1) - 0 [14:48:26]OFD Sender: Remove packet 228264 [14:48:26]ProducePacketName [14:48:26]name=ofd_packets/00228264 [14:48:26]NVStorageDeleteData [14:48:26]Write to MH i2c: 01 00 00 B5 44 F9 [14:48:26]Write i2c OK [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: 01 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: 01 07 00 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: 01 07 00 B5 44 00 00 00 00 00 C7 0C D3 [14:48:26]RasterBufferAndPrint [14:48:26]line [14:48:26]line [14:48:26]line [14:48:26]line [14:48:26]line [14:48:26]written 0, free lines is 3277 [14:48:26]MH_Cut [14:48:26]Write to MH i2c: D1 01 00 BC 44 01 D2 [14:48:26]Write i2c OK [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: D1 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: D1 01 00 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: D1 01 00 BC 44 00 D1 [14:48:26]Write to MH i2c: 01 00 00 BD 44 01 [14:48:26]Write i2c OK [14:48:26]MH_I2C_Read... [14:48:26]OFD Sender: No OFD packet to send [14:48:27]*** Cut start [14:48:27]*** Partial cut [14:48:27]*** CUTSNS_PIN = 1 [14:48:27]*** CUTSNS_PIN = 0 [14:48:27]*** Brake cut motor [14:48:27]Read from MH i2c: 01 [14:48:27]MH_I2C_Read... [14:48:27]*** Stop cut motor [14:48:27]*** Cut end [14:48:27]Read from MH i2c: 01 07 00 [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: 01 07 00 BD 44 00 00 00 00 00 FF 0F 16 [14:48:27]process_action close_receipt done [14:48:27]requested_data is exist [14:48:27]produce_requested_data [14:48:27]requested_item fm.sn is exist - process it [14:48:27]wFMCommunicate request_size=4 [14:48:27]MH_SAM_APDU [14:48:27]CAPDU: 80 11 00 00 [14:48:27]Write to MH i2c: E2 08 00 BE 44 80 11 00 00 00 00 00 00 7C [14:48:27]Write i2c OK [14:48:27]MH_I2C_Read... [14:48:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:27]Read from MH i2c: E2 [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: E2 17 00 [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: E2 17 00 BE 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D3 [14:48:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:48:27]wFMCommunicate OK [14:48:27]requested_item fd.num is exist - process it [14:48:27]SAM_PROTO_GetFieldsCounters [14:48:27]wFMCommunicate request_size=4 [14:48:27]MH_SAM_APDU [14:48:27]CAPDU: 80 13 00 00 [14:48:27]Write to MH i2c: E2 08 00 BF 44 80 13 00 00 00 00 00 00 7F [14:48:27]Write i2c OK [14:48:27]MH_I2C_Read... [14:48:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:28]Read from MH i2c: E2 [14:48:28]MH_I2C_Read... [14:48:28]Read from MH i2c: E2 62 00 [14:48:28]MH_I2C_Read... [14:48:28]Read from MH i2c: E2 62 00 BF 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A8 7B 03 00 0E 04 04 00 17 02 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 93 [14:48:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A8 7B 03 00 0E 04 04 00 17 02 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 [14:48:28]wFMCommunicate OK [14:48:28]SAM_PROTO_GetFieldsCounters done [14:48:28]requested_item shift.num is exist - process it [14:48:28]requested_item shift.opened is exist - process it [14:48:28]req_shift_opened [14:48:28]FM_GetShiftState [14:48:28]SAM_PROTO_GetShiftState [14:48:28]wFMCommunicate request_size=4 [14:48:28]MH_SAM_APDU [14:48:28]CAPDU: 80 13 01 00 [14:48:28]Write to MH i2c: E2 08 00 C0 44 80 13 01 00 00 00 00 00 81 [14:48:28]Write i2c OK [14:48:28]MH_I2C_Read... [14:48:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:28]Read from MH i2c: E2 [14:48:28]MH_I2C_Read... [14:48:28]Read from MH i2c: E2 0E 00 [14:48:28]MH_I2C_Read... [14:48:28]Read from MH i2c: E2 0E 00 C0 44 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 48 [14:48:28]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:48:28]wFMCommunicate OK [14:48:28]SAM_PROTO_GetShiftState done [14:48:28]FM_GetShiftState done [14:48:28]req_shift_opened done [14:48:28]requested_item shift.open_date is exist - process it [14:48:28]req_shift_open_date [14:48:28]req_shift_open_date done [14:48:28]produce_requested_data done [14:48:28]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228264,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [14:48:28]process_action_free close_receipt [14:48:28]json_value_free [14:48:28]json_value_free done [14:48:28]process_json_proto returns [14:48:28]Send response to host [14:48:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228264,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [14:48:28]free response buf [14:48:28]execute_script done [14:48:28]execute_script returns [14:48:28]free content buf [14:48:28]Sock 7.Close socket [14:48:28]Sock 7.Thread stoped [14:48:31]OFD Sender: No OFD packet to send [14:48:36]OFD Sender: No OFD packet to send [14:48:41]OFD Sender: No OFD packet to send [14:48:46]OFD Sender: No OFD packet to send [14:48:51]OFD Sender: No OFD packet to send [14:48:56]OFD Sender: No OFD packet to send [14:49:01]OFD Sender: No OFD packet to send [14:49:06]OFD Sender: No OFD packet to send [14:49:11]OFD Sender: No OFD packet to send [14:49:16]OFD Sender: No OFD packet to send [14:49:21]OFD Sender: No OFD packet to send [14:49:26]OFD Sender: No OFD packet to send [14:49:31]OFD Sender: No OFD packet to send [14:49:35]accept exits with 9 [14:49:35]New connection [14:49:35]New thread 3066994020 created [14:49:35]Thread 3067137380 joined [14:49:35]Waiting for new connection... [14:49:35] Sock 9.Parse request [14:49:35]Sock 9.Check first char [14:49:35]Sock 9.First char is OK [14:49:35]request: POST /json_proto HTTP/1.0 [14:49:35]Method: POST [14:49:35]URL: /json_proto [14:49:35]Method is POST - this is cgi request [14:49:35]url: /json_proto [14:49:35]query_string will be loaded in cgi processing [14:49:35]execute_cgi json_proto POST (null) [14:49:35]execute_cgi path=json_proto method=POST [14:49:35]POST find Content-Length [14:49:35]Host: 172.17.44.195:8080 [14:49:35]Content-Length: 678 [14:49:35]Content-Type: application/json [14:49:35] [14:49:35]POST finish read [14:49:35]Found Content-Length = 678 [14:49:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964742", "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" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:35]execute_script... [14: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)1964742", "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" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:35]POST & json_proto [14:49:35]process_json_proto [14:49:35]json parsed OK: [14:49:35]protocol is kg_v1.0 [14:49:35]action value=close_receipt [14:49:35]process_action close_receipt [14:49:35]cmd_close_receipt [14:49:35]MH_GetDate [14:49:35]Write to MH i2c: F0 00 00 C1 44 F4 [14:49:35]Write i2c OK [14:49:35]MH_I2C_Read... [14:49:35]Read from MH i2c: F0 [14:49:35]MH_I2C_Read... [14:49:35]Read from MH i2c: F0 09 00 [14:49:35]MH_I2C_Read... [14:49:35]Read from MH i2c: F0 09 00 C1 44 00 83 BB 17 67 82 C9 CF 66 39 [14:49:35]GetLastDocTimeStamp 1729608508 [14:49:35]current date 1729608579 [14:49:35]FM_GetShiftState [14:49:35]SAM_PROTO_GetShiftState [14:49:35]wFMCommunicate request_size=4 [14:49:35]MH_SAM_APDU [14:49:35]CAPDU: 80 13 01 00 [14:49:35]Write to MH i2c: E2 08 00 C2 44 80 13 01 00 00 00 00 00 83 [14:49:35]Write i2c OK [14:49:35]MH_I2C_Read... [14:49:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:35]Read from MH i2c: E2 [14:49:35]MH_I2C_Read... [14:49:35]Read from MH i2c: E2 0E 00 [14:49:35]MH_I2C_Read... [14:49:35]Read from MH i2c: E2 0E 00 C2 44 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 4A [14:49:35]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:49:35]wFMCommunicate OK [14:49:35]SAM_PROTO_GetShiftState done [14:49:35]FM_GetShiftState done [14:49:35]opened in 1729555538 [14:49:35]opened+sec_in_day 1729641938 [14:49:35]quantity*price = 60009 [14:49:35]sum+1 = 60010 [14:49:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 229 22.10.2024 14:49 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228265 ФПД: 274631239300200 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144939&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228265&fm=274631239300200&tin=02508201610067®Number=0000000000091685&sum=60000 [14:49:36]StoreToDocumentArchive [14:49:36]shift 535 fd 228265 [14:49:36]save to /storage/0535/doc_00228265 [14:49:36]save last doc name /storage/0535/doc_00228265 to /storage/kkm_last_doc_name [14:49:36]save OK [14:49:36]Clear old archive folders... [14:49:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:49:36]tlvbuf is 008E4E70 [14:49:36]SAM_PROTO_ClearQueue [14:49:36]wFMCommunicate request_size=4 [14:49:36]MH_SAM_APDU [14:49:36]CAPDU: 80 09 00 00 [14:49:36]Write to MH i2c: E2 08 00 CF 44 80 09 00 00 00 00 00 00 85 [14:49:36]Write i2c OK [14:49:36]MH_I2C_Read... [14:49:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:36]Read from MH i2c: E2 [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: E2 03 00 [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: E2 03 00 CF 44 00 90 00 87 [14:49:36]RAPDU: 90 00 [14:49:36]wFMCommunicate OK [14:49:36]SAM_PROTO_ClearQueue done [14:49:36]KKMCreateOFDPacket [14:49:36]OFDProtocolAddRootSTLVToBuf [14:49:36]FM_MakeSignedData [14:49:36]FM_MakeSignedData [14:49:36]SAM_PROTO_SignData [14:49:36]wFMCommunicate request_size=4 [14:49:36]MH_SAM_APDU [14:49:36]CAPDU: 80 0D 01 02 [14:49:36]Write to MH i2c: E2 08 00 D0 44 80 0D 01 02 00 00 00 00 8D [14:49:36]Write i2c OK [14:49:36]MH_I2C_Read... [14:49:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:36]Read from MH i2c: E2 [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: E2 03 00 [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: E2 03 00 D0 44 00 90 00 88 [14:49:36]RAPDU: 90 00 [14:49:36]wFMCommunicate OK [14:49:36]wFMCommunicate request_size=255 [14:49:36]MH_SAM_APDU [14: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 00 00 00 F4 03 04 00 83 BB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A9 7B 03 00 35 04 06 00 F9 [14:49:36]Write to MH i2c: E2 02 01 D1 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 00 00 00 F4 03 04 00 83 BB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A9 7B 03 00 35 04 06 00 F9 00 00 DB [14:49:36]Write i2c OK [14:49:36]MH_I2C_Read... [14:49:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:36]Read from MH i2c: E2 [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: E2 03 00 [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: E2 03 00 D1 44 00 90 00 89 [14:49:36]RAPDU: 90 00 [14:49:36]wFMCommunicate OK [14:49:36]wFMCommunicate request_size=10 [14:49:36]MH_SAM_APDU [14:49:36]CAPDU: 80 0D 02 02 05 C6 91 76 74 68 [14:49:36]Write to MH i2c: E2 0D 00 D2 44 80 0D 02 02 05 00 C6 91 76 74 68 00 00 43 [14:49:36]Write i2c OK [14:49:36]MH_I2C_Read... [14:49:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:36]Read from MH i2c: E2 [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: E2 03 00 [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: E2 03 00 D2 44 00 90 00 8A [14:49:36]RAPDU: 90 00 [14:49:36]wFMCommunicate OK [14:49:36]wFMCommunicate request_size=4 [14:49:36]MH_SAM_APDU [14:49:36]CAPDU: 80 0D 03 02 [14:49:36]Write to MH i2c: E2 08 00 D3 44 80 0D 03 02 00 00 00 00 92 [14:49:36]Write i2c OK [14:49:36]MH_I2C_Read... [14:49:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:36]Read from MH i2c: E2 [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: E2 0B 00 [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: E2 0B 00 D3 44 00 D2 D8 51 04 A8 0D A3 DD 90 00 C7 [14:49:36]RAPDU: D2 D8 51 04 A8 0D A3 DD 90 00 [14:49:36]wFMCommunicate OK [14:49:36]SAM_PROTO_SignData done [14:49:36]FM_MakeSignedData done [14:49:36]CreateOFDProtocolMessage [14:49:36]wFMCommunicate request_size=4 [14:49:36]MH_SAM_APDU [14:49:36]CAPDU: 80 11 00 00 [14:49:36]Write to MH i2c: E2 08 00 D4 44 80 11 00 00 00 00 00 00 92 [14:49:36]Write i2c OK [14:49:36]MH_I2C_Read... [14:49:36]OFD Sender: No OFD packet to send [14:49:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:36]Read from MH i2c: E2 [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: E2 17 00 [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: E2 17 00 D4 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E9 [14:49:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:49:36]wFMCommunicate OK [14:49:36]CreateOFDProtocolMessage done [14:49:36]OFDSenderStorePacket 228265 [14:49:36]StoreOFDPacket docnum=228265 [14:49:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 DA DA 07 01 D2 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 00 00 00 F4 03 04 00 83 BB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A9 7B 03 00 35 04 06 00 F9 C6 91 76 74 68 D2 D8 51 04 A8 0D A3 DD [14:49:36]CheckFolder [14:49:36]dirname=/storage/ofd_packets [14:49:36]CheckFolder done [14:49:36]ProducePacketName [14:49:36]name=ofd_packets/00228265 [14:49:36]NVStorageSaveData ofd_packets/00228265 [14:49:36]File name is /storage/ofd_packets/00228265 [14:49:36]Write 301 bytes [14:49:36]NVStorageSaveData done [14:49:36]OFDSenderStorePacket done [14:49:36]KKMCreateOFDPacket done [14:49:36]NVStorageSaveData kkm_last_timestamp [14:49:36]File name is /storage/kkm_last_timestamp [14:49:36]Write 4 bytes [14:49:36]NVStorageSaveData done [14:49:36]ExternCall_PrintAddStr [14:49:36]wPrintStart [14:49:36]Write to MH i2c: 01 00 00 D5 44 19 [14:49:36]Write i2c OK [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: 01 [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: 01 07 00 [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: 01 07 00 D5 44 00 00 00 00 00 FF 0F 2E [14:49:36]RasterBufferAndPrint [14:49:36]line Счет N : (1)1964742 [14:49:36]line ИНН: 02508201610067 [14:49:36]line Контрольно-Кассовый Чек [14:49:36]line ПРОДАЖА [14:49:36]line ТРК (МРК, ГНК) : 53 [14:49:36]line Товар: 2710124130 [14:49:36]line Аи-92-К-5 [14:49:36]line 8.970 * 66.90 [14:49:36]line = 600.09 [14:49:36]line НДС 12% НСП 1% [14:49:36]line > о реализуемом товаре [14:49:36]line ОКРУГЛЕНИЕ: -0.09 [14:49:36]line ИТОГО: 600.00 [14:49:36]line Внесено: 600.00 [14:49:36]line СДАЧА: 0.00 [14:49:36]line НСП 1% : 5.31 [14:49:36]line НДС 12% : 63.73 [14:49:36]line Наличными: 600.00 [14:49:36]line Безнал.: 0.00 [14:49:36]line Место: АЗС № 133 "Партнер Нефть" [14:49:36]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [14:49:36]line СНО: Общий режим [14:49:36]line Чек 229 22.10.2024 14:49 [14:49:36]line Смена: 535 ФФД: 1.0 [14:49:36]line ЗНМ: 0300000091 [14:49:36]line РНМ: 0000000000091685 [14:49:36]line Версия ККМ: 001 [14:49:36]line ФМ: 0000000000871839 [14:49:36]line ФД: 228265 [14:49:36]line ФПД: 274631239300200 [14:49:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144939&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228265&fm=274631239300200&tin=02508201610067®Number=0000000000091685&sum=60000 [14:49:37]OFD Sender: Processing packet 228265 [packets to send 38, broken 37] [14:49:37]ProducePacketName [14:49:37]name=ofd_packets/00228265 [14:49:37]OFD Sender: To server: pG, [14:49:37]CommunicateWithHost lk.salyk.kg:30040 [14:49:37]ConnectInit lk.salyk.kg [14:49:37]written 0, free lines is 4095 [14:49:37]Connected sock=11 [14:49:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 DA DA 07 01 D2 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 00 00 00 F4 03 04 00 83 BB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A9 7B 03 00 35 04 06 00 F9 C6 91 76 74 68 D2 D8 51 04 A8 0D A3 DD [14:49:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 44 55 47 00 7E 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A9 7B 03 00 F4 03 04 00 7B 66 17 67 B6 04 01 00 00 9F 6C 71 96 88 5B 78 DA [14:49:37]CommunicateWithHost err = 0 [14:49:37]CheckOFDResponse [14:49:37]1017 (14) - 77093643461234 [14:49:37]1041 (16) - 0000000000871839 [14:49:37]1040 (4) - 228265 [14:49:37]1012 (4) - 22.10.2024 08:46 [14:49:37]1206 (1) - 0 [14:49:37]OFD Sender: Remove packet 228265 [14:49:37]ProducePacketName [14:49:37]name=ofd_packets/00228265 [14:49:37]NVStorageDeleteData [14:49:37]Write to MH i2c: 01 00 00 FF 44 43 [14:49:37]Write i2c OK [14:49:37]MH_I2C_Read... [14:49:37]Read from MH i2c: 01 [14:49:37]MH_I2C_Read... [14:49:37]Read from MH i2c: 01 07 00 [14:49:37]MH_I2C_Read... [14:49:37]Read from MH i2c: 01 07 00 FF 44 00 00 00 00 00 D0 0C 26 [14:49:37]RasterBufferAndPrint [14:49:37]line [14:49:37]line [14:49:37]line [14:49:37]line [14:49:37]line [14:49:37]written 0, free lines is 3285 [14:49:37]MH_Cut [14:49:37]Write to MH i2c: D1 01 00 06 45 01 1D [14:49:37]Write i2c OK [14:49:37]MH_I2C_Read... [14:49:37]Read from MH i2c: D1 [14:49:37]MH_I2C_Read... [14:49:37]Read from MH i2c: D1 01 00 [14:49:37]MH_I2C_Read... [14:49:37]Read from MH i2c: D1 01 00 06 45 00 1C [14:49:37]Write to MH i2c: 01 00 00 07 45 4C [14:49:37]Write i2c OK [14:49:37]MH_I2C_Read... [14:49:38]OFD Sender: No OFD packet to send [14:49:38]*** Cut start [14:49:38]*** Partial cut [14:49:38]*** CUTSNS_PIN = 1 [14:49:38]*** CUTSNS_PIN = 0 [14:49:38]*** Brake cut motor [14:49:39]Read from MH i2c: 01 [14:49:39]MH_I2C_Read... [14:49:39]*** Stop cut motor [14:49:39]*** Cut end [14:49:39]Read from MH i2c: 01 07 00 [14:49:39]MH_I2C_Read... [14:49:39]Read from MH i2c: 01 07 00 07 45 00 00 00 00 00 FF 0F 61 [14:49:39]process_action close_receipt done [14:49:39]requested_data is exist [14:49:39]produce_requested_data [14:49:39]requested_item fm.sn is exist - process it [14:49:39]wFMCommunicate request_size=4 [14:49:39]MH_SAM_APDU [14:49:39]CAPDU: 80 11 00 00 [14:49:39]Write to MH i2c: E2 08 00 08 45 80 11 00 00 00 00 00 00 C7 [14:49:39]Write i2c OK [14:49:39]MH_I2C_Read... [14:49:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:39]Read from MH i2c: E2 [14:49:39]MH_I2C_Read... [14:49:39]Read from MH i2c: E2 17 00 [14:49:39]MH_I2C_Read... [14:49:39]Read from MH i2c: E2 17 00 08 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1E [14:49:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:49:39]wFMCommunicate OK [14:49:39]requested_item fd.num is exist - process it [14:49:39]SAM_PROTO_GetFieldsCounters [14:49:39]wFMCommunicate request_size=4 [14:49:39]MH_SAM_APDU [14:49:39]CAPDU: 80 13 00 00 [14:49:39]Write to MH i2c: E2 08 00 09 45 80 13 00 00 00 00 00 00 CA [14:49:39]Write i2c OK [14:49:39]MH_I2C_Read... [14:49:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:39]Read from MH i2c: E2 [14:49:39]MH_I2C_Read... [14:49:39]Read from MH i2c: E2 62 00 [14:49:39]MH_I2C_Read... [14:49:39]Read from MH i2c: E2 62 00 09 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A9 7B 03 00 0E 04 04 00 17 02 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 E2 [14:49:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A9 7B 03 00 0E 04 04 00 17 02 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 [14:49:39]wFMCommunicate OK [14:49:39]SAM_PROTO_GetFieldsCounters done [14:49:39]requested_item shift.num is exist - process it [14:49:39]requested_item shift.opened is exist - process it [14:49:39]req_shift_opened [14:49:39]FM_GetShiftState [14:49:39]SAM_PROTO_GetShiftState [14:49:39]wFMCommunicate request_size=4 [14:49:39]MH_SAM_APDU [14:49:39]CAPDU: 80 13 01 00 [14:49:39]Write to MH i2c: E2 08 00 0A 45 80 13 01 00 00 00 00 00 CC [14:49:39]Write i2c OK [14:49:39]MH_I2C_Read... [14:49:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:39]Read from MH i2c: E2 [14:49:39]MH_I2C_Read... [14:49:39]Read from MH i2c: E2 0E 00 [14:49:39]MH_I2C_Read... [14:49:39]Read from MH i2c: E2 0E 00 0A 45 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 93 [14:49:39]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:49:39]wFMCommunicate OK [14:49:39]SAM_PROTO_GetShiftState done [14:49:39]FM_GetShiftState done [14:49:39]req_shift_opened done [14:49:39]requested_item shift.open_date is exist - process it [14:49:39]req_shift_open_date [14:49:39]req_shift_open_date done [14:49:39]produce_requested_data done [14:49:39]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228265,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [14:49:39]process_action_free close_receipt [14:49:39]json_value_free [14:49:39]json_value_free done [14:49:39]process_json_proto returns [14:49:39]Send response to host [14:49:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228265,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [14:49:39]free response buf [14:49:39]execute_script done [14:49:39]execute_script returns [14:49:39]free content buf [14:49:39]Sock 9.Close socket [14:49:39]Sock 9.Thread stoped [14:49:43]OFD Sender: No OFD packet to send [14:49:48]OFD Sender: No OFD packet to send [14:49:53]OFD Sender: No OFD packet to send [14:49:58]OFD Sender: No OFD packet to send [14:50:03]OFD Sender: No OFD packet to send [14:50:08]OFD Sender: No OFD packet to send [14:50:11]accept exits with 7 [14:50:11]New connection [14:50:11]New thread 3067137380 created [14:50:11]Thread 3066994020 joined [14:50:11]Waiting for new connection... [14:50:11] Sock 7.Parse request [14:50:11]Sock 7.Check first char [14:50:11]Sock 7.First char is OK [14:50:11]request: POST /json_proto HTTP/1.0 [14:50:11]Method: POST [14:50:11]URL: /json_proto [14:50:11]Method is POST - this is cgi request [14:50:11]url: /json_proto [14:50:11]query_string will be loaded in cgi processing [14:50:11]execute_cgi json_proto POST (null) [14:50:11]execute_cgi path=json_proto method=POST [14:50:11]POST find Content-Length [14:50:11]Host: 172.17.44.195:8080 [14:50:11]Content-Length: 678 [14:50:11]Content-Type: application/json [14:50:11] [14:50:11]POST finish read [14:50:11]Found Content-Length = 678 [14:50:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.580, "sum" : 239.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 239.00, "total" : 239.00, "payments": [ { "type": 0, "sum" : 239.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:11]execute_script... [14:50: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)1964743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.580, "sum" : 239.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 239.00, "total" : 239.00, "payments": [ { "type": 0, "sum" : 239.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:11]POST & json_proto [14:50:11]process_json_proto [14:50:11]json parsed OK: [14:50:11]protocol is kg_v1.0 [14:50:11]action value=close_receipt [14:50:11]process_action close_receipt [14:50:11]cmd_close_receipt [14:50:11]MH_GetDate [14:50:11]Write to MH i2c: F0 00 00 0B 45 3F [14:50:11]Write i2c OK [14:50:11]MH_I2C_Read... [14:50:11]Read from MH i2c: F0 [14:50:11]MH_I2C_Read... [14:50:11]Read from MH i2c: F0 09 00 [14:50:11]MH_I2C_Read... [14:50:11]Read from MH i2c: F0 09 00 0B 45 00 A7 BB 17 67 82 C9 CF 66 A8 [14:50:11]GetLastDocTimeStamp 1729608579 [14:50:11]current date 1729608615 [14:50:11]FM_GetShiftState [14:50:11]SAM_PROTO_GetShiftState [14:50:11]wFMCommunicate request_size=4 [14:50:11]MH_SAM_APDU [14:50:11]CAPDU: 80 13 01 00 [14:50:11]Write to MH i2c: E2 08 00 0C 45 80 13 01 00 00 00 00 00 CE [14:50:11]Write i2c OK [14:50:11]MH_I2C_Read... [14:50:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:11]Read from MH i2c: E2 [14:50:11]MH_I2C_Read... [14:50:11]Read from MH i2c: E2 0E 00 [14:50:11]MH_I2C_Read... [14:50:11]Read from MH i2c: E2 0E 00 0C 45 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 95 [14:50:11]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:50:11]wFMCommunicate OK [14:50:11]SAM_PROTO_GetShiftState done [14:50:11]FM_GetShiftState done [14:50:11]opened in 1729555538 [14:50:11]opened+sec_in_day 1729641938 [14:50:11]quantity*price = 23950 [14:50:11]sum+1 = 23951 [14:50:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 239.00 Внесено: 239.00 СДАЧА: 0.00 НСП 1% : 2.12 НДС 12% : 25.43 Наличными: 239.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 230 22.10.2024 14:50 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228266 ФПД: 127626347556349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145015&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228266&fm=127626347556349&tin=02508201610067®Number=0000000000091685&sum=23900 [14:50:12]StoreToDocumentArchive [14:50:12]shift 535 fd 228266 [14:50:12]save to /storage/0535/doc_00228266 [14:50:12]save last doc name /storage/0535/doc_00228266 to /storage/kkm_last_doc_name [14:50:12]save OK [14:50:12]Clear old archive folders... [14:50:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:50:12]tlvbuf is 00A8B3E0 [14:50:12]SAM_PROTO_ClearQueue [14:50:12]wFMCommunicate request_size=4 [14:50:12]MH_SAM_APDU [14:50:12]CAPDU: 80 09 00 00 [14:50:12]Write to MH i2c: E2 08 00 19 45 80 09 00 00 00 00 00 00 D0 [14:50:12]Write i2c OK [14:50:12]MH_I2C_Read... [14:50:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:50:12]Read from MH i2c: E2 [14:50:12]MH_I2C_Read... [14:50:12]Read from MH i2c: E2 03 00 [14:50:12]MH_I2C_Read... [14:50:12]Read from MH i2c: E2 03 00 19 45 00 90 00 D2 [14:50:12]RAPDU: 90 00 [14:50:12]wFMCommunicate OK [14:50:12]SAM_PROTO_ClearQueue done [14:50:12]KKMCreateOFDPacket [14:50:12]OFDProtocolAddRootSTLVToBuf [14:50:12]FM_MakeSignedData [14:50:12]FM_MakeSignedData [14:50:12]SAM_PROTO_SignData [14:50:12]wFMCommunicate request_size=4 [14:50:12]MH_SAM_APDU [14:50:12]CAPDU: 80 0D 01 02 [14:50:12]Write to MH i2c: E2 08 00 1A 45 80 0D 01 02 00 00 00 00 D8 [14:50:12]Write i2c OK [14:50:12]MH_I2C_Read... [14:50:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:50:12]Read from MH i2c: E2 [14:50:12]MH_I2C_Read... [14:50:12]Read from MH i2c: E2 03 00 [14:50:12]MH_I2C_Read... [14:50:12]Read from MH i2c: E2 03 00 1A 45 00 90 00 D3 [14:50:12]RAPDU: 90 00 [14:50:12]wFMCommunicate OK [14:50:12]wFMCommunicate request_size=255 [14:50:12]MH_SAM_APDU [14:50: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 FC 0D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 A7 BB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AA 7B 03 00 35 04 06 00 74 [14:50:12]Write to MH i2c: E2 02 01 1B 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 0D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 A7 BB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AA 7B 03 00 35 04 06 00 74 00 00 D3 [14:50:12]Write i2c OK [14:50:12]MH_I2C_Read... [14:50:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:12]Read from MH i2c: E2 [14:50:12]MH_I2C_Read... [14:50:12]Read from MH i2c: E2 03 00 [14:50:12]MH_I2C_Read... [14:50:12]Read from MH i2c: E2 03 00 1B 45 00 90 00 D4 [14:50:12]RAPDU: 90 00 [14:50:12]wFMCommunicate OK [14:50:12]wFMCommunicate request_size=10 [14:50:12]MH_SAM_APDU [14:50:12]CAPDU: 80 0D 02 02 05 13 53 1C 2D FD [14:50:12]Write to MH i2c: E2 0D 00 1C 45 80 0D 02 02 05 00 13 53 1C 2D FD 00 00 91 [14:50:12]Write i2c OK [14:50:12]MH_I2C_Read... [14:50:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:12]Read from MH i2c: E2 [14:50:12]MH_I2C_Read... [14:50:12]Read from MH i2c: E2 03 00 [14:50:12]MH_I2C_Read... [14:50:12]Read from MH i2c: E2 03 00 1C 45 00 90 00 D5 [14:50:12]RAPDU: 90 00 [14:50:12]wFMCommunicate OK [14:50:12]wFMCommunicate request_size=4 [14:50:12]MH_SAM_APDU [14:50:12]CAPDU: 80 0D 03 02 [14:50:12]Write to MH i2c: E2 08 00 1D 45 80 0D 03 02 00 00 00 00 DD [14:50:12]Write i2c OK [14:50:12]MH_I2C_Read... [14:50:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:50:12]Read from MH i2c: E2 [14:50:12]MH_I2C_Read... [14:50:12]Read from MH i2c: E2 0B 00 [14:50:12]MH_I2C_Read... [14:50:12]Read from MH i2c: E2 0B 00 1D 45 00 E6 C9 F5 8C 7E 23 F1 40 90 00 E0 [14:50:12]RAPDU: E6 C9 F5 8C 7E 23 F1 40 90 00 [14:50:12]wFMCommunicate OK [14:50:12]SAM_PROTO_SignData done [14:50:12]FM_MakeSignedData done [14:50:12]CreateOFDProtocolMessage [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 1E 45 80 11 00 00 00 00 00 00 DD [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 1E 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 34 [14:50:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:50:12]wFMCommunicate OK [14:50:12]CreateOFDProtocolMessage done [14:50:12]OFDSenderStorePacket 228266 [14:50:12]StoreOFDPacket docnum=228266 [14:50:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 14 87 07 01 51 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 0D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 A7 BB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AA 7B 03 00 35 04 06 00 74 13 53 1C 2D FD E6 C9 F5 8C 7E 23 F1 40 [14:50:12]CheckFolder [14:50:12]dirname=/storage/ofd_packets [14:50:12]CheckFolder done [14:50:12]ProducePacketName [14:50:12]name=ofd_packets/00228266 [14:50:12]NVStorageSaveData ofd_packets/00228266 [14:50:12]File name is /storage/ofd_packets/00228266 [14:50:12]Write 301 bytes [14:50:12]NVStorageSaveData done [14:50:12]OFDSenderStorePacket done [14:50:12]KKMCreateOFDPacket done [14:50:12]NVStorageSaveData kkm_last_timestamp [14:50:12]File name is /storage/kkm_last_timestamp [14:50:12]Write 4 bytes [14:50:12]NVStorageSaveData done [14:50:12]ExternCall_PrintAddStr [14:50:12]wPrintStart [14:50:12]Write to MH i2c: 01 00 00 1F 45 64 [14:50:12]Write i2c OK [14:50:12]MH_I2C_Read... [14:50:12]Read from MH i2c: 01 [14:50:12]MH_I2C_Read... [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 1F 45 00 00 00 00 00 FF 0F 79 [14:50:12]RasterBufferAndPrint [14:50:12]line Счет N : (1)1964743 [14:50:12]line ИНН: 02508201610067 [14:50:12]line Контрольно-Кассовый Чек [14:50:12]line ПРОДАЖА [14:50:12]line ТРК (МРК, ГНК) : 33 [14:50:12]line Товар: 2710124130 [14:50:12]line Аи-92-К-5 [14:50:12]line 3.580 * 66.90 [14:50:12]line = 239.50 [14:50:12]line НДС 12% НСП 1% [14:50:12]line > о реализуемом товаре [14:50:12]line ОКРУГЛЕНИЕ: -0.50 [14:50:12]line ИТОГО: 239.00 [14:50:12]line Внесено: 239.00 [14:50:12]line СДАЧА: 0.00 [14:50:12]line НСП 1% : 2.12 [14:50:12]line НДС 12% : 25.43 [14:50:12]line Наличными: 239.00 [14:50:12]line Безнал.: 0.00 [14:50:12]line Место: АЗС № 133 "Партнер Нефть" [14:50:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [14:50:12]line СНО: Общий режим [14:50:12]line Чек 230 22.10.2024 14:50 [14:50:12]line Смена: 535 ФФД: 1.0 [14:50:12]line ЗНМ: 0300000091 [14:50:12]line РНМ: 0000000000091685 [14:50:12]line Версия ККМ: 001 [14:50:12]line ФМ: 0000000000871839 [14:50:12]line ФД: 228266 [14:50:12]line ФПД: 127626347556349 [14:50:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145015&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228266&fm=127626347556349&tin=02508201610067®Number=0000000000091685&sum=23900 [14:50:13]written 0, free lines is 4095 [14:50:13]OFD Sender: Processing packet 228266 [packets to send 38, broken 37] [14:50:13]ProducePacketName [14:50:13]name=ofd_packets/00228266 [14:50:13]OFD Sender: To server: pG, [14:50:13]CommunicateWithHost lk.salyk.kg:30040 [14:50:13]ConnectInit lk.salyk.kg [14:50:13]Connected sock=10 [14:50:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 14 87 07 01 51 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 0D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 A7 BB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AA 7B 03 00 35 04 06 00 74 13 53 1C 2D FD E6 C9 F5 8C 7E 23 F1 40 [14:50:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 D7 21 47 00 B7 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AA 7B 03 00 F4 03 04 00 9F 66 17 67 B6 04 01 00 00 CD 21 11 A1 8A A5 39 EA [14:50:13]CommunicateWithHost err = 0 [14:50:13]CheckOFDResponse [14:50:13]1017 (14) - 77093643461234 [14:50:13]1041 (16) - 0000000000871839 [14:50:13]1040 (4) - 228266 [14:50:13]1012 (4) - 22.10.2024 08:47 [14:50:13]1206 (1) - 0 [14:50:13]OFD Sender: Remove packet 228266 [14:50:13]ProducePacketName [14:50:13]name=ofd_packets/00228266 [14:50:13]NVStorageDeleteData [14:50:13]Write to MH i2c: 01 00 00 49 45 8E [14:50:13]Write i2c OK [14:50:13]MH_I2C_Read... [14:50:13]Read from MH i2c: 01 [14:50:13]MH_I2C_Read... [14:50:13]Read from MH i2c: 01 07 00 [14:50:13]MH_I2C_Read... [14:50:13]Read from MH i2c: 01 07 00 49 45 00 00 00 00 00 CF 0C 70 [14:50:13]RasterBufferAndPrint [14:50:13]line [14:50:13]line [14:50:13]line [14:50:13]line [14:50:13]line [14:50:13]written 0, free lines is 3284 [14:50:13]MH_Cut [14:50:13]Write to MH i2c: D1 01 00 50 45 01 67 [14:50:13]Write i2c OK [14:50:13]MH_I2C_Read... [14:50:13]Read from MH i2c: D1 [14:50:13]MH_I2C_Read... [14:50:13]Read from MH i2c: D1 01 00 [14:50:13]MH_I2C_Read... [14:50:13]Read from MH i2c: D1 01 00 50 45 00 66 [14:50:13]Write to MH i2c: 01 00 00 51 45 96 [14:50:13]Write i2c OK [14:50:13]MH_I2C_Read... [14:50:14]OFD Sender: No OFD packet to send [14:50:14]*** Cut start [14:50:14]*** Partial cut [14:50:14]*** CUTSNS_PIN = 1 [14:50:14]*** CUTSNS_PIN = 0 [14:50:14]*** Brake cut motor [14:50:15]Read from MH i2c: 01 [14:50:15]MH_I2C_Read... [14:50:15]*** Stop cut motor [14:50:15]*** Cut end [14:50:15]Read from MH i2c: 01 07 00 [14:50:15]MH_I2C_Read... [14:50:15]Read from MH i2c: 01 07 00 51 45 00 00 00 00 00 FF 0F AB [14:50:15]process_action close_receipt done [14:50:15]requested_data is exist [14:50:15]produce_requested_data [14:50:15]requested_item fm.sn is exist - process it [14:50:15]wFMCommunicate request_size=4 [14:50:15]MH_SAM_APDU [14:50:15]CAPDU: 80 11 00 00 [14:50:15]Write to MH i2c: E2 08 00 52 45 80 11 00 00 00 00 00 00 11 [14:50:15]Write i2c OK [14:50:15]MH_I2C_Read... [14:50:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:15]Read from MH i2c: E2 [14:50:15]MH_I2C_Read... [14:50:15]Read from MH i2c: E2 17 00 [14:50:15]MH_I2C_Read... [14:50:15]Read from MH i2c: E2 17 00 52 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 68 [14:50:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:50:15]wFMCommunicate OK [14:50:15]requested_item fd.num is exist - process it [14:50:15]SAM_PROTO_GetFieldsCounters [14:50:15]wFMCommunicate request_size=4 [14:50:15]MH_SAM_APDU [14:50:15]CAPDU: 80 13 00 00 [14:50:15]Write to MH i2c: E2 08 00 53 45 80 13 00 00 00 00 00 00 14 [14:50:15]Write i2c OK [14:50:15]MH_I2C_Read... [14:50:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:50:15]Read from MH i2c: E2 [14:50:15]MH_I2C_Read... [14:50:15]Read from MH i2c: E2 62 00 [14:50:15]MH_I2C_Read... [14:50:15]Read from MH i2c: E2 62 00 53 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 AA 7B 03 00 0E 04 04 00 17 02 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 30 [14:50:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 AA 7B 03 00 0E 04 04 00 17 02 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 [14:50:15]wFMCommunicate OK [14:50:15]SAM_PROTO_GetFieldsCounters done [14:50:15]requested_item shift.num is exist - process it [14:50:15]requested_item shift.opened is exist - process it [14:50:15]req_shift_opened [14:50:15]FM_GetShiftState [14:50:15]SAM_PROTO_GetShiftState [14:50:15]wFMCommunicate request_size=4 [14:50:15]MH_SAM_APDU [14:50:15]CAPDU: 80 13 01 00 [14:50:15]Write to MH i2c: E2 08 00 54 45 80 13 01 00 00 00 00 00 16 [14:50:15]Write i2c OK [14:50:15]MH_I2C_Read... [14:50:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:15]Read from MH i2c: E2 [14:50:15]MH_I2C_Read... [14:50:15]Read from MH i2c: E2 0E 00 [14:50:15]MH_I2C_Read... [14:50:15]Read from MH i2c: E2 0E 00 54 45 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 DD [14:50:15]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:50:15]wFMCommunicate OK [14:50:15]SAM_PROTO_GetShiftState done [14:50:15]FM_GetShiftState done [14:50:15]req_shift_opened done [14:50:15]requested_item shift.open_date is exist - process it [14:50:15]req_shift_open_date [14:50:15]req_shift_open_date done [14:50:15]produce_requested_data done [14:50:15]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228266,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [14:50:15]process_action_free close_receipt [14:50:15]json_value_free [14:50:15]json_value_free done [14:50:15]process_json_proto returns [14:50:15]Send response to host [14:50:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228266,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [14:50:15]free response buf [14:50:15]execute_script done [14:50:15]execute_script returns [14:50:15]free content buf [14:50:15]Sock 7.Close socket [14:50:15]Sock 7.Thread stoped [14:50:19]OFD Sender: No OFD packet to send [14:50:24]OFD Sender: No OFD packet to send [14:50:29]OFD Sender: No OFD packet to send [14:50:34]OFD Sender: No OFD packet to send [14:50:39]OFD Sender: No OFD packet to send [14:50:44]OFD Sender: No OFD packet to send [14:50:49]OFD Sender: No OFD packet to send [14:50:54]OFD Sender: No OFD packet to send [14:50:59]OFD Sender: No OFD packet to send [14:51:04]OFD Sender: No OFD packet to send [14:51:09]OFD Sender: No OFD packet to send [14:51:14]OFD Sender: No OFD packet to send [14:51:19]OFD Sender: No OFD packet to send [14:51:24]OFD Sender: No OFD packet to send [14:51:29]OFD Sender: No OFD packet to send [14:51:34]OFD Sender: No OFD packet to send [14:51:39]OFD Sender: No OFD packet to send [14:51:44]OFD Sender: No OFD packet to send [14:51:49]OFD Sender: No OFD packet to send [14:51:53]accept exits with 9 [14:51:53]New connection [14:51:53]New thread 3066994020 created [14:51:53]Thread 3067137380 joined [14:51:53]Waiting for new connection... [14:51:53] Sock 9.Parse request [14:51:53]Sock 9.Check first char [14:51:53]Sock 9.First char is OK [14:51:53]request: POST /json_proto HTTP/1.0 [14:51:53]Method: POST [14:51:53]URL: /json_proto [14:51:53]Method is POST - this is cgi request [14:51:53]url: /json_proto [14:51:53]query_string will be loaded in cgi processing [14:51:53]execute_cgi json_proto POST (null) [14:51:53]execute_cgi path=json_proto method=POST [14:51:53]POST find Content-Length [14:51:53]Host: 172.17.44.195:8080 [14:51:53]Content-Length: 660 [14:51:53]Content-Type: application/json [14:51:53] [14:51:53]POST finish read [14:51:53]Found Content-Length = 660 [14:51:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "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" ] } } [14:51:53]execute_script... [14:51: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)1964744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "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" ] } } [14:51:53]POST & json_proto [14:51:53]process_json_proto [14:51:53]json parsed OK: [14:51:53]protocol is kg_v1.0 [14:51:53]action value=close_receipt [14:51:53]process_action close_receipt [14:51:53]cmd_close_receipt [14:51:53]MH_GetDate [14:51:53]Write to MH i2c: F0 00 00 55 45 89 [14:51:53]Write i2c OK [14:51:53]MH_I2C_Read... [14:51:53]Read from MH i2c: F0 [14:51:53]MH_I2C_Read... [14:51:53]Read from MH i2c: F0 09 00 [14:51:53]MH_I2C_Read... [14:51:53]Read from MH i2c: F0 09 00 55 45 00 0E BC 17 67 82 C9 CF 66 5A [14:51:53]GetLastDocTimeStamp 1729608615 [14:51:53]current date 1729608718 [14:51:53]FM_GetShiftState [14:51:53]SAM_PROTO_GetShiftState [14:51:53]wFMCommunicate request_size=4 [14:51:53]MH_SAM_APDU [14:51:53]CAPDU: 80 13 01 00 [14:51:53]Write to MH i2c: E2 08 00 56 45 80 13 01 00 00 00 00 00 18 [14:51:53]Write i2c OK [14:51:53]MH_I2C_Read... [14:51:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:53]Read from MH i2c: E2 [14:51:53]MH_I2C_Read... [14:51:53]Read from MH i2c: E2 0E 00 [14:51:53]MH_I2C_Read... [14:51:53]Read from MH i2c: E2 0E 00 56 45 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 DF [14:51:53]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:51:53]wFMCommunicate OK [14:51:53]SAM_PROTO_GetShiftState done [14:51:53]FM_GetShiftState done [14:51:53]opened in 1729555538 [14:51:53]opened+sec_in_day 1729641938 [14:51:53]quantity*price = 70041 [14:51:53]sum+1 = 70043 [14:51:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 231 22.10.2024 14:51 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228267 ФПД: 133287099653897 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145158&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228267&fm=133287099653897&tin=02508201610067®Number=0000000000091685&sum=70000 [14:51:54]StoreToDocumentArchive [14:51:54]shift 535 fd 228267 [14:51:54]save to /storage/0535/doc_00228267 [14:51:54]save last doc name /storage/0535/doc_00228267 to /storage/kkm_last_doc_name [14:51:54]save OK [14:51:54]Clear old archive folders... [14:51:55]ProcessDocumentItem done err = 0, tmpTLVsize=244 [14:51:55]tlvbuf is 008B2070 [14:51:55]SAM_PROTO_ClearQueue [14:51:55]wFMCommunicate request_size=4 [14:51:55]MH_SAM_APDU [14:51:55]CAPDU: 80 09 00 00 [14:51:55]Write to MH i2c: E2 08 00 63 45 80 09 00 00 00 00 00 00 1A [14:51:55]Write i2c OK [14:51:55]MH_I2C_Read... [14:51:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:51:55]Read from MH i2c: E2 [14:51:55]MH_I2C_Read... [14:51:55]Read from MH i2c: E2 03 00 [14:51:55]MH_I2C_Read... [14:51:55]Read from MH i2c: E2 03 00 63 45 00 90 00 1C [14:51:55]RAPDU: 90 00 [14:51:55]wFMCommunicate OK [14:51:55]SAM_PROTO_ClearQueue done [14:51:55]KKMCreateOFDPacket [14:51:55]OFDProtocolAddRootSTLVToBuf [14:51:55]FM_MakeSignedData [14:51:55]FM_MakeSignedData [14:51:55]SAM_PROTO_SignData [14:51:55]wFMCommunicate request_size=4 [14:51:55]MH_SAM_APDU [14:51:55]CAPDU: 80 0D 01 02 [14:51:55]Write to MH i2c: E2 08 00 64 45 80 0D 01 02 00 00 00 00 22 [14:51:55]Write i2c OK [14:51:55]MH_I2C_Read... [14:51:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:51:55]Read from MH i2c: E2 [14:51:55]MH_I2C_Read... [14:51:55]Read from MH i2c: E2 03 00 [14:51:55]MH_I2C_Read... [14:51:55]Read from MH i2c: E2 03 00 64 45 00 90 00 1D [14:51:55]RAPDU: 90 00 [14:51:55]wFMCommunicate OK [14:51:55]wFMCommunicate request_size=253 [14:51:55]MH_SAM_APDU [14:51:55]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 E7 00 00 00 F4 03 04 00 0E BC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AB 7B 03 00 35 04 06 00 79 39 52 3A 5F 09 [14:51:55]Write to MH i2c: E2 00 01 65 45 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 E7 00 00 00 F4 03 04 00 0E BC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AB 7B 03 00 35 04 06 00 79 39 52 3A 5F 09 00 00 3C [14:51:55]Write i2c OK [14:51:55]MH_I2C_Read... [14:51:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:55]Read from MH i2c: E2 [14:51:55]MH_I2C_Read... [14:51:55]Read from MH i2c: E2 03 00 [14:51:55]MH_I2C_Read... [14:51:55]Read from MH i2c: E2 03 00 65 45 00 90 00 1E [14:51:55]RAPDU: 90 00 [14:51:55]wFMCommunicate OK [14:51:55]wFMCommunicate request_size=4 [14:51:55]MH_SAM_APDU [14:51:55]CAPDU: 80 0D 03 02 [14:51:55]Write to MH i2c: E2 08 00 66 45 80 0D 03 02 00 00 00 00 26 [14:51:55]Write i2c OK [14:51:55]MH_I2C_Read... [14:51:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:51:55]Read from MH i2c: E2 [14:51:55]MH_I2C_Read... [14:51:55]Read from MH i2c: E2 0B 00 [14:51:55]MH_I2C_Read... [14:51:55]Read from MH i2c: E2 0B 00 66 45 00 17 62 93 44 58 2E 70 8E 90 00 FB [14:51:55]RAPDU: 17 62 93 44 58 2E 70 8E 90 00 [14:51:55]wFMCommunicate OK [14:51:55]SAM_PROTO_SignData done [14:51:55]FM_MakeSignedData done [14:51:55]CreateOFDProtocolMessage [14:51:55]wFMCommunicate request_size=4 [14:51:55]MH_SAM_APDU [14:51:55]CAPDU: 80 11 00 00 [14:51:55]Write to MH i2c: E2 08 00 67 45 80 11 00 00 00 00 00 00 26 [14:51:55]Write i2c OK [14:51:55]MH_I2C_Read... [14:51:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:55]Read from MH i2c: E2 [14:51:55]MH_I2C_Read... [14:51:55]Read from MH i2c: E2 17 00 [14:51:55]MH_I2C_Read... [14:51:55]Read from MH i2c: E2 17 00 67 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7D [14:51:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:51:55]wFMCommunicate OK [14:51:55]CreateOFDProtocolMessage done [14:51:55]OFDSenderStorePacket 228267 [14:51:55]StoreOFDPacket docnum=228267 [14:51:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 72 C4 00 01 66 C1 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 E7 00 00 00 F4 03 04 00 0E BC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AB 7B 03 00 35 04 06 00 79 39 52 3A 5F 09 17 62 93 44 58 2E 70 8E [14:51:55]CheckFolder [14:51:55]dirname=/storage/ofd_packets [14:51:55]CheckFolder done [14:51:55]ProducePacketName [14:51:55]name=ofd_packets/00228267 [14:51:55]NVStorageSaveData ofd_packets/00228267 [14:51:55]File name is /storage/ofd_packets/00228267 [14:51:55]Write 294 bytes [14:51:55]NVStorageSaveData done [14:51:55]OFDSenderStorePacket done [14:51:55]KKMCreateOFDPacket done [14:51:55]NVStorageSaveData kkm_last_timestamp [14:51:55]File name is /storage/kkm_last_timestamp [14:51:55]Write 4 bytes [14:51:55]NVStorageSaveData done [14:51:55]ExternCall_PrintAddStr [14:51:55]wPrintStart [14:51:55]Write to MH i2c: 01 00 00 68 45 AD [14:51:55]Write i2c OK [14:51:55]MH_I2C_Read... [14:51:55]Read from MH i2c: 01 [14:51:55]MH_I2C_Read... [14:51:55]Read from MH i2c: 01 07 00 [14:51:55]MH_I2C_Read... [14:51:55]Read from MH i2c: 01 07 00 68 45 00 00 00 00 00 FF 0F C2 [14:51:55]RasterBufferAndPrint [14:51:55]line Счет N : (1)1964744 [14:51:55]line ИНН: 02508201610067 [14:51:55]line Контрольно-Кассовый Чек [14:51:55]line ПРОДАЖА [14:51:55]line ТРК (МРК, ГНК) : 42 [14:51:55]line Товар: 2710124130 [14:51:55]line SU-92 [14:51:55]line 10.240 * 68.40 [14:51:55]line = 700.42 [14:51:55]line НДС 12% НСП 1% [14:51:55]line > о реализуемом товаре [14:51:55]line ОКРУГЛЕНИЕ: -0.42 [14:51:55]line ИТОГО: 700.00 [14:51:55]line Внесено: 700.00 [14:51:55]line СДАЧА: 0.00 [14:51:55]line НСП 1% : 6.20 [14:51:55]line НДС 12% : 74.38 [14:51:55]line Наличными: 700.00 [14:51:55]line Безнал.: 0.00 [14:51:55]line Место: АЗС № 133 "Партнер Нефть" [14:51:55]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [14:51:55]line СНО: Общий режим [14:51:55]line Чек 231 22.10.2024 14:51 [14:51:55]line Смена: 535 ФФД: 1.0 [14:51:55]line ЗНМ: 0300000091 [14:51:55]line РНМ: 0000000000091685 [14:51:55]line Версия ККМ: 001 [14:51:55]line ФМ: 0000000000871839 [14:51:55]line ФД: 228267 [14:51:55]line ФПД: 133287099653897 [14:51:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145158&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228267&fm=133287099653897&tin=02508201610067®Number=0000000000091685&sum=70000 [14:51:55]OFD Sender: Processing packet 228267 [packets to send 38, broken 37] [14:51:55]ProducePacketName [14:51:55]name=ofd_packets/00228267 [14:51:55]OFD Sender: To server: pG, [14:51:55]CommunicateWithHost lk.salyk.kg:30040 [14:51:55]ConnectInit lk.salyk.kg [14:51:55]written 0, free lines is 4095 [14:51:55]Connected sock=10 [14:51:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 72 C4 00 01 66 C1 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 E7 00 00 00 F4 03 04 00 0E BC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AB 7B 03 00 35 04 06 00 79 39 52 3A 5F 09 17 62 93 44 58 2E 70 8E [14:51:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 4B B1 47 00 DF 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AB 7B 03 00 F4 03 04 00 06 67 17 67 B6 04 01 00 00 F4 11 2B 02 B0 56 97 F9 [14:51:56]CommunicateWithHost err = 0 [14:51:56]CheckOFDResponse [14:51:56]1017 (14) - 77093643461234 [14:51:56]1041 (16) - 0000000000871839 [14:51:56]1040 (4) - 228267 [14:51:56]1012 (4) - 22.10.2024 08:49 [14:51:56]1206 (1) - 0 [14:51:56]OFD Sender: Remove packet 228267 [14:51:56]ProducePacketName [14:51:56]name=ofd_packets/00228267 [14:51:56]NVStorageDeleteData [14:51:56]Write to MH i2c: 01 00 00 92 45 D7 [14:51:56]Write i2c OK [14:51:56]MH_I2C_Read... [14:51:56]Read from MH i2c: 01 [14:51:56]MH_I2C_Read... [14:51:56]Read from MH i2c: 01 07 00 [14:51:56]MH_I2C_Read... [14:51:56]Read from MH i2c: 01 07 00 92 45 00 00 00 00 00 C0 0C AA [14:51:56]RasterBufferAndPrint [14:51:56]line [14:51:56]line [14:51:56]line [14:51:56]line [14:51:56]line [14:51:56]written 0, free lines is 3268 [14:51:56]MH_Cut [14:51:56]Write to MH i2c: D1 01 00 99 45 01 B0 [14:51:56]Write i2c OK [14:51:56]MH_I2C_Read... [14:51:56]Read from MH i2c: D1 [14:51:56]MH_I2C_Read... [14:51:56]Read from MH i2c: D1 01 00 [14:51:56]MH_I2C_Read... [14:51:56]Read from MH i2c: D1 01 00 99 45 00 AF [14:51:56]Write to MH i2c: 01 00 00 9A 45 DF [14:51:56]Write i2c OK [14:51:56]MH_I2C_Read... [14:51:56]OFD Sender: No OFD packet to send [14:51:57]*** Cut start [14:51:57]*** Partial cut [14:51:57]*** CUTSNS_PIN = 1 [14:51:57]*** CUTSNS_PIN = 0 [14:51:57]*** Brake cut motor [14:51:57]Read from MH i2c: 01 [14:51:57]MH_I2C_Read... [14:51:57]*** Stop cut motor [14:51:57]*** Cut end [14:51:57]Read from MH i2c: 01 07 00 [14:51:57]MH_I2C_Read... [14:51:57]Read from MH i2c: 01 07 00 9A 45 00 00 00 00 00 FF 0F F4 [14:51:57]process_action close_receipt done [14:51:57]requested_data is exist [14:51:57]produce_requested_data [14:51:57]requested_item fm.sn is exist - process it [14:51:57]wFMCommunicate request_size=4 [14:51:57]MH_SAM_APDU [14:51:57]CAPDU: 80 11 00 00 [14:51:57]Write to MH i2c: E2 08 00 9B 45 80 11 00 00 00 00 00 00 5A [14:51:57]Write i2c OK [14:51:57]MH_I2C_Read... [14:51:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:57]Read from MH i2c: E2 [14:51:57]MH_I2C_Read... [14:51:57]Read from MH i2c: E2 17 00 [14:51:57]MH_I2C_Read... [14:51:57]Read from MH i2c: E2 17 00 9B 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B1 [14:51:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:51:57]wFMCommunicate OK [14:51:57]requested_item fd.num is exist - process it [14:51:57]SAM_PROTO_GetFieldsCounters [14:51:57]wFMCommunicate request_size=4 [14:51:57]MH_SAM_APDU [14:51:57]CAPDU: 80 13 00 00 [14:51:57]Write to MH i2c: E2 08 00 9C 45 80 13 00 00 00 00 00 00 5D [14:51:57]Write i2c OK [14:51:57]MH_I2C_Read... [14:51:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:57]Read from MH i2c: E2 [14:51:57]MH_I2C_Read... [14:51:57]Read from MH i2c: E2 62 00 [14:51:57]MH_I2C_Read... [14:51:57]Read from MH i2c: E2 62 00 9C 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 AB 7B 03 00 0E 04 04 00 17 02 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 7D [14:51:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 AB 7B 03 00 0E 04 04 00 17 02 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 [14:51:57]wFMCommunicate OK [14:51:57]SAM_PROTO_GetFieldsCounters done [14:51:57]requested_item shift.num is exist - process it [14:51:57]requested_item shift.opened is exist - process it [14:51:57]req_shift_opened [14:51:57]FM_GetShiftState [14:51:57]SAM_PROTO_GetShiftState [14:51:57]wFMCommunicate request_size=4 [14:51:57]MH_SAM_APDU [14:51:57]CAPDU: 80 13 01 00 [14:51:57]Write to MH i2c: E2 08 00 9D 45 80 13 01 00 00 00 00 00 5F [14:51:57]Write i2c OK [14:51:57]MH_I2C_Read... [14:51:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:57]Read from MH i2c: E2 [14:51:57]MH_I2C_Read... [14:51:57]Read from MH i2c: E2 0E 00 [14:51:57]MH_I2C_Read... [14:51:57]Read from MH i2c: E2 0E 00 9D 45 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 26 [14:51:57]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:51:57]wFMCommunicate OK [14:51:57]SAM_PROTO_GetShiftState done [14:51:57]FM_GetShiftState done [14:51:57]req_shift_opened done [14:51:57]requested_item shift.open_date is exist - process it [14:51:57]req_shift_open_date [14:51:57]req_shift_open_date done [14:51:57]produce_requested_data done [14:51:57]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228267,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [14:51:57]process_action_free close_receipt [14:51:57]json_value_free [14:51:57]json_value_free done [14:51:57]process_json_proto returns [14:51:57]Send response to host [14:51:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228267,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [14:51:57]free response buf [14:51:57]execute_script done [14:51:57]execute_script returns [14:51:57]free content buf [14:51:57]Sock 9.Close socket [14:51:57]Sock 9.Thread stoped [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]accept exits with 7 [14:53:06]New connection [14:53:06]New thread 3067137380 created [14:53:06]Thread 3066994020 joined [14:53:06]Waiting for new connection... [14:53:06] Sock 7.Parse request [14:53:06]Sock 7.Check first char [14:53:06]Sock 7.First char is OK [14:53:06]request: POST /json_proto HTTP/1.0 [14:53:06]Method: POST [14:53:06]URL: /json_proto [14:53:06]Method is POST - this is cgi request [14:53:06]url: /json_proto [14:53:06]query_string will be loaded in cgi processing [14:53:06]execute_cgi json_proto POST (null) [14:53:06]execute_cgi path=json_proto method=POST [14:53:06]POST find Content-Length [14:53:06]Host: 172.17.44.195:8080 [14:53:06]Content-Length: 680 [14:53:06]Content-Type: application/json [14:53:06] [14:53:06]POST finish read [14:53:06]Found Content-Length = 680 [14:53:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964746", "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" : 76.20, "quantity" : 13.130, "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:53:06]execute_script... [14:53: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)1964746", "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" : 76.20, "quantity" : 13.130, "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:53:06]POST & json_proto [14:53:06]process_json_proto [14:53:06]json parsed OK: [14:53:06]protocol is kg_v1.0 [14:53:06]action value=close_receipt [14:53:06]process_action close_receipt [14:53:06]cmd_close_receipt [14:53:06]MH_GetDate [14:53:06]Write to MH i2c: F0 00 00 9E 45 D2 [14:53:06]Write i2c OK [14:53:06]MH_I2C_Read... [14:53:06]Read from MH i2c: F0 [14:53:06]MH_I2C_Read... [14:53:06]Read from MH i2c: F0 09 00 [14:53:06]MH_I2C_Read... [14:53:06]Read from MH i2c: F0 09 00 9E 45 00 56 BC 17 67 82 C9 CF 66 EB [14:53:06]GetLastDocTimeStamp 1729608718 [14:53:06]current date 1729608790 [14:53:06]FM_GetShiftState [14:53:06]SAM_PROTO_GetShiftState [14:53:06]wFMCommunicate request_size=4 [14:53:06]MH_SAM_APDU [14:53:06]CAPDU: 80 13 01 00 [14:53:06]Write to MH i2c: E2 08 00 9F 45 80 13 01 00 00 00 00 00 61 [14:53:06]Write i2c OK [14:53:06]MH_I2C_Read... [14:53:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:06]Read from MH i2c: E2 [14:53:06]MH_I2C_Read... [14:53:06]Read from MH i2c: E2 0E 00 [14:53:06]MH_I2C_Read... [14:53:06]Read from MH i2c: E2 0E 00 9F 45 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 28 [14:53:06]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:53:06]wFMCommunicate OK [14:53:06]SAM_PROTO_GetShiftState done [14:53:06]FM_GetShiftState done [14:53:06]opened in 1729555538 [14:53:06]opened+sec_in_day 1729641938 [14:53:06]quantity*price = 100050 [14:53:06]sum+1 = 100052 [14:53:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 232 22.10.2024 14:53 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228268 ФПД: 26450922207634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145311&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228268&fm=26450922207634&tin=02508201610067®Number=0000000000091685&sum=100000 [14:53:07]StoreToDocumentArchive [14:53:07]shift 535 fd 228268 [14:53:07]save to /storage/0535/doc_00228268 [14:53:07]save last doc name /storage/0535/doc_00228268 to /storage/kkm_last_doc_name [14:53:07]save OK [14:53:07]Clear old archive folders... [14:53:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:53:07]tlvbuf is 009BBC60 [14:53:07]SAM_PROTO_ClearQueue [14:53:07]wFMCommunicate request_size=4 [14:53:07]MH_SAM_APDU [14:53:07]CAPDU: 80 09 00 00 [14:53:07]Write to MH i2c: E2 08 00 AC 45 80 09 00 00 00 00 00 00 63 [14:53:07]Write i2c OK [14:53:07]MH_I2C_Read... [14:53:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:07]Read from MH i2c: E2 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: E2 03 00 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: E2 03 00 AC 45 00 90 00 65 [14:53:07]RAPDU: 90 00 [14:53:07]wFMCommunicate OK [14:53:07]SAM_PROTO_ClearQueue done [14:53:07]KKMCreateOFDPacket [14:53:07]OFDProtocolAddRootSTLVToBuf [14:53:07]FM_MakeSignedData [14:53:07]FM_MakeSignedData [14:53:07]SAM_PROTO_SignData [14:53:07]wFMCommunicate request_size=4 [14:53:07]MH_SAM_APDU [14:53:07]CAPDU: 80 0D 01 02 [14:53:07]Write to MH i2c: E2 08 00 AD 45 80 0D 01 02 00 00 00 00 6B [14:53:07]Write i2c OK [14:53:07]MH_I2C_Read... [14:53:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:07]Read from MH i2c: E2 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: E2 03 00 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: E2 03 00 AD 45 00 90 00 66 [14:53:07]RAPDU: 90 00 [14:53:07]wFMCommunicate OK [14:53:07]wFMCommunicate request_size=255 [14:53:07]MH_SAM_APDU [14:53: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 E8 00 00 00 F4 03 04 00 57 BC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AC 7B 03 00 35 04 06 00 18 0E 95 D2 [14:53:07]Write to MH i2c: E2 02 01 AE 45 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 E8 00 00 00 F4 03 04 00 57 BC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AC 7B 03 00 35 04 06 00 18 0E 95 D2 00 00 41 [14:53:07]Write i2c OK [14:53:07]MH_I2C_Read... [14:53:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:08]Read from MH i2c: E2 [14:53:08]MH_I2C_Read... [14:53:08]Read from MH i2c: E2 03 00 [14:53:08]MH_I2C_Read... [14:53:08]Read from MH i2c: E2 03 00 AE 45 00 90 00 67 [14:53:08]RAPDU: 90 00 [14:53:08]wFMCommunicate OK [14:53:08]wFMCommunicate request_size=7 [14:53:08]MH_SAM_APDU [14:53:08]CAPDU: 80 0D 02 02 02 79 92 [14:53:08]Write to MH i2c: E2 0A 00 AF 45 80 0D 02 02 02 00 79 92 00 00 7D [14:53:08]Write i2c OK [14:53:08]MH_I2C_Read... [14:53:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:08]Read from MH i2c: E2 [14:53:08]MH_I2C_Read... [14:53:08]Read from MH i2c: E2 03 00 [14:53:08]MH_I2C_Read... [14:53:08]Read from MH i2c: E2 03 00 AF 45 00 90 00 68 [14:53:08]RAPDU: 90 00 [14:53:08]wFMCommunicate OK [14:53:08]wFMCommunicate request_size=4 [14:53:08]MH_SAM_APDU [14:53:08]CAPDU: 80 0D 03 02 [14:53:08]Write to MH i2c: E2 08 00 B0 45 80 0D 03 02 00 00 00 00 70 [14:53:08]Write i2c OK [14:53:08]MH_I2C_Read... [14:53:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:08]Read from MH i2c: E2 [14:53:08]MH_I2C_Read... [14:53:08]Read from MH i2c: E2 0B 00 [14:53:08]MH_I2C_Read... [14:53:08]Read from MH i2c: E2 0B 00 B0 45 00 71 BF CB 36 25 17 95 06 90 00 79 [14:53:08]RAPDU: 71 BF CB 36 25 17 95 06 90 00 [14:53:08]wFMCommunicate OK [14:53:08]SAM_PROTO_SignData done [14:53:08]FM_MakeSignedData done [14:53:08]CreateOFDProtocolMessage [14:53:08]wFMCommunicate request_size=4 [14:53:08]MH_SAM_APDU [14:53:08]CAPDU: 80 11 00 00 [14:53:08]Write to MH i2c: E2 08 00 B1 45 80 11 00 00 00 00 00 00 70 [14:53:08]Write i2c OK [14:53:08]MH_I2C_Read... [14:53:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:08]Read from MH i2c: E2 [14:53:08]MH_I2C_Read... [14:53:08]Read from MH i2c: E2 17 00 [14:53:08]MH_I2C_Read... [14:53:08]Read from MH i2c: E2 17 00 B1 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C7 [14:53:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:53:08]wFMCommunicate OK [14:53:08]CreateOFDProtocolMessage done [14:53:08]OFDSenderStorePacket 228268 [14:53:08]StoreOFDPacket docnum=228268 [14:53:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 0D 9B 04 01 1E 6B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 E8 00 00 00 F4 03 04 00 57 BC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AC 7B 03 00 35 04 06 00 18 0E 95 D2 79 92 71 BF CB 36 25 17 95 06 [14:53:08]CheckFolder [14:53:08]dirname=/storage/ofd_packets [14:53:08]CheckFolder done [14:53:08]ProducePacketName [14:53:08]name=ofd_packets/00228268 [14:53:08]NVStorageSaveData ofd_packets/00228268 [14:53:08]File name is /storage/ofd_packets/00228268 [14:53:08]Write 298 bytes [14:53:08]NVStorageSaveData done [14:53:08]OFDSenderStorePacket done [14:53:08]KKMCreateOFDPacket done [14:53:08]NVStorageSaveData kkm_last_timestamp [14:53:08]File name is /storage/kkm_last_timestamp [14:53:08]Write 4 bytes [14:53:08]NVStorageSaveData done [14:53:08]ExternCall_PrintAddStr [14:53:08]wPrintStart [14:53:08]Write to MH i2c: 01 00 00 B2 45 F7 [14:53:08]Write i2c OK [14:53:08]MH_I2C_Read... [14:53:08]Read from MH i2c: 01 [14:53:08]MH_I2C_Read... [14:53:08]Read from MH i2c: 01 07 00 [14:53:08]MH_I2C_Read... [14:53:08]Read from MH i2c: 01 07 00 B2 45 00 00 00 00 00 FF 0F 0C [14:53:08]RasterBufferAndPrint [14:53:08]line Счет N : (1)1964746 [14:53:08]line ИНН: 02508201610067 [14:53:08]line Контрольно-Кассовый Чек [14:53:08]line ПРОДАЖА [14:53:08]line ТРК (МРК, ГНК) : 21 [14:53:08]line Товар: 2710194210 [14:53:08]line ДТ-К-5 [14:53:08]line 13.130 * 76.20 [14:53:08]line = 1000.51 [14:53:08]line НДС 12% НСП 1% [14:53:08]line > о реализуемом товаре [14:53:08]line ОКРУГЛЕНИЕ: -0.51 [14:53:08]line ИТОГО: 1000.00 [14:53:08]line Внесено: 1000.00 [14:53:08]line СДАЧА: 0.00 [14:53:08]line НСП 1% : 8.85 [14:53:08]line НДС 12% : 106.25 [14:53:08]line Наличными: 1000.00 [14:53:08]line Безнал.: 0.00 [14:53:08]line Место: АЗС № 133 "Партнер Нефть" [14:53:08]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [14:53:08]line СНО: Общий режим [14:53:08]line Чек 232 22.10.2024 14:53 [14:53:08]line Смена: 535 ФФД: 1.0 [14:53:08]line ЗНМ: 0300000091 [14:53:08]line РНМ: 0000000000091685 [14:53:08]line Версия ККМ: 001 [14:53:08]line ФМ: 0000000000871839 [14:53:08]line ФД: 228268 [14:53:08]line ФПД: 26450922207634 [14:53:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145311&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228268&fm=26450922207634&tin=02508201610067®Number=0000000000091685&sum=100000 [14:53:08]OFD Sender: Processing packet 228268 [packets to send 38, broken 37] [14:53:08]ProducePacketName [14:53:08]name=ofd_packets/00228268 [14:53:08]OFD Sender: To server: pG, [14:53:08]CommunicateWithHost lk.salyk.kg:30040 [14:53:08]ConnectInit lk.salyk.kg [14:53:08]written 0, free lines is 4095 [14:53:08]Connected sock=11 [14:53:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 0D 9B 04 01 1E 6B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 E8 00 00 00 F4 03 04 00 57 BC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AC 7B 03 00 35 04 06 00 18 0E 95 D2 79 92 71 BF CB 36 25 17 95 06 [14:53:09]Write to MH i2c: 01 00 00 DC 45 21 [14:53:09]Write i2c OK [14:53:09]MH_I2C_Read... [14:53:09]Read from MH i2c: 01 [14:53:09]MH_I2C_Read... [14:53:09]Read from MH i2c: 01 07 00 [14:53:09]MH_I2C_Read... [14:53:09]Read from MH i2c: 01 07 00 DC 45 00 00 00 00 00 C1 0C F5 [14:53:09]RasterBufferAndPrint [14:53:09]line [14:53:09]line [14:53:09]line [14:53:09]line [14:53:09]line [14:53:09]written 0, free lines is 3269 [14:53:09]MH_Cut [14:53:09]Write to MH i2c: D1 01 00 E3 45 01 FA [14:53:09]Write i2c OK [14:53:09]MH_I2C_Read... [14:53:09]Read from MH i2c: D1 [14:53:09]MH_I2C_Read... [14:53:09]Read from MH i2c: D1 01 00 [14:53:09]MH_I2C_Read... [14:53:09]Read from MH i2c: D1 01 00 E3 45 00 F9 [14:53:09]Write to MH i2c: 01 00 00 E4 45 29 [14:53:09]Write i2c OK [14:53:09]MH_I2C_Read... [14:53:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 67 9B 47 00 7F C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AC 7B 03 00 F4 03 04 00 4F 67 17 67 B6 04 01 00 00 BF B5 22 6E 85 18 45 C7 [14:53:09]CommunicateWithHost err = 0 [14:53:09]CheckOFDResponse [14:53:09]1017 (14) - 77093643461234 [14:53:09]1041 (16) - 0000000000871839 [14:53:09]1040 (4) - 228268 [14:53:09]1012 (4) - 22.10.2024 08:50 [14:53:09]1206 (1) - 0 [14:53:09]OFD Sender: Remove packet 228268 [14:53:09]ProducePacketName [14:53:09]name=ofd_packets/00228268 [14:53:09]NVStorageDeleteData [14:53:09]OFD Sender: No OFD packet to send [14:53:09]*** Cut start [14:53:09]*** Partial cut [14:53:09]*** CUTSNS_PIN = 1 [14:53:09]*** CUTSNS_PIN = 0 [14:53:10]*** Brake cut motor [14:53:10]Read from MH i2c: 01 [14:53:10]MH_I2C_Read... [14:53:10]*** Stop cut motor [14:53:10]*** Cut end [14:53:10]Read from MH i2c: 01 07 00 [14:53:10]MH_I2C_Read... [14:53:10]Read from MH i2c: 01 07 00 E4 45 00 00 00 00 00 FF 0F 3E [14:53:10]process_action close_receipt done [14:53:10]requested_data is exist [14:53:10]produce_requested_data [14:53:10]requested_item fm.sn is exist - process it [14:53:10]wFMCommunicate request_size=4 [14:53:10]MH_SAM_APDU [14:53:10]CAPDU: 80 11 00 00 [14:53:10]Write to MH i2c: E2 08 00 E5 45 80 11 00 00 00 00 00 00 A4 [14:53:10]Write i2c OK [14:53:10]MH_I2C_Read... [14:53:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:10]Read from MH i2c: E2 [14:53:10]MH_I2C_Read... [14:53:10]Read from MH i2c: E2 17 00 [14:53:10]MH_I2C_Read... [14:53:10]Read from MH i2c: E2 17 00 E5 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FB [14:53:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:53:10]wFMCommunicate OK [14:53:10]requested_item fd.num is exist - process it [14:53:10]SAM_PROTO_GetFieldsCounters [14:53:10]wFMCommunicate request_size=4 [14:53:10]MH_SAM_APDU [14:53:10]CAPDU: 80 13 00 00 [14:53:10]Write to MH i2c: E2 08 00 E6 45 80 13 00 00 00 00 00 00 A7 [14:53:10]Write i2c OK [14:53:10]MH_I2C_Read... [14:53:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:10]Read from MH i2c: E2 [14:53:10]MH_I2C_Read... [14:53:10]Read from MH i2c: E2 62 00 [14:53:10]MH_I2C_Read... [14:53:10]Read from MH i2c: E2 62 00 E6 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 AC 7B 03 00 0E 04 04 00 17 02 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 CB [14:53:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 AC 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:53:10]wFMCommunicate OK [14:53:10]SAM_PROTO_GetFieldsCounters done [14:53:10]requested_item shift.num is exist - process it [14:53:10]requested_item shift.opened is exist - process it [14:53:10]req_shift_opened [14:53:10]FM_GetShiftState [14:53:10]SAM_PROTO_GetShiftState [14:53:10]wFMCommunicate request_size=4 [14:53:10]MH_SAM_APDU [14:53:10]CAPDU: 80 13 01 00 [14:53:10]Write to MH i2c: E2 08 00 E7 45 80 13 01 00 00 00 00 00 A9 [14:53:10]Write i2c OK [14:53:10]MH_I2C_Read... [14:53:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:10]Read from MH i2c: E2 [14:53:10]MH_I2C_Read... [14:53:10]Read from MH i2c: E2 0E 00 [14:53:10]MH_I2C_Read... [14:53:10]Read from MH i2c: E2 0E 00 E7 45 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 70 [14:53:10]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:53:10]wFMCommunicate OK [14:53:10]SAM_PROTO_GetShiftState done [14:53:10]FM_GetShiftState done [14:53:10]req_shift_opened done [14:53:10]requested_item shift.open_date is exist - process it [14:53:10]req_shift_open_date [14:53:10]req_shift_open_date done [14:53:10]produce_requested_data done [14:53:10]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228268,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [14:53:10]process_action_free close_receipt [14:53:10]json_value_free [14:53:10]json_value_free done [14:53:10]process_json_proto returns [14:53:10]Send response to host [14:53:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228268,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [14:53:10]free response buf [14:53:10]execute_script done [14:53:10]execute_script returns [14:53:10]free content buf [14:53:10]Sock 7.Close socket [14:53:10]Sock 7.Thread stoped [14:53:14]OFD Sender: No OFD packet to send [14:53:19]OFD Sender: No OFD packet to send [14:53:20]accept exits with 9 [14:53:20]New connection [14:53:20]New thread 3066994020 created [14:53:20]Thread 3067137380 joined [14:53:20]Waiting for new connection... [14:53:20] Sock 9.Parse request [14:53:20]Sock 9.Check first char [14:53:20]Sock 9.First char is OK [14:53:20]request: POST /json_proto HTTP/1.0 [14:53:20]Method: POST [14:53:20]URL: /json_proto [14:53:20]Method is POST - this is cgi request [14:53:20]url: /json_proto [14:53:20]query_string will be loaded in cgi processing [14:53:20]execute_cgi json_proto POST (null) [14:53:20]execute_cgi path=json_proto method=POST [14:53:20]POST find Content-Length [14:53:20]Host: 172.17.44.195:8080 [14:53:20]Content-Length: 680 [14:53:20]Content-Type: application/json [14:53:20] [14:53:20]POST finish read [14:53:20]Found Content-Length = 680 [14:53:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964745", "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" : 76.20, "quantity" : 13.130, "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:53:20]execute_script... [14:53: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)1964745", "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" : 76.20, "quantity" : 13.130, "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:53:20]POST & json_proto [14:53:20]process_json_proto [14:53:20]json parsed OK: [14:53:20]protocol is kg_v1.0 [14:53:20]action value=close_receipt [14:53:20]process_action close_receipt [14:53:20]cmd_close_receipt [14:53:20]MH_GetDate [14:53:20]Write to MH i2c: F0 00 00 E8 45 1C [14:53:20]Write i2c OK [14:53:20]MH_I2C_Read... [14:53:20]Read from MH i2c: F0 [14:53:20]MH_I2C_Read... [14:53:20]Read from MH i2c: F0 09 00 [14:53:20]MH_I2C_Read... [14:53:20]Read from MH i2c: F0 09 00 E8 45 00 65 BC 17 67 82 C9 CF 66 44 [14:53:20]GetLastDocTimeStamp 1729608791 [14:53:20]current date 1729608805 [14:53:20]FM_GetShiftState [14:53:20]SAM_PROTO_GetShiftState [14:53:20]wFMCommunicate request_size=4 [14:53:20]MH_SAM_APDU [14:53:20]CAPDU: 80 13 01 00 [14:53:20]Write to MH i2c: E2 08 00 E9 45 80 13 01 00 00 00 00 00 AB [14:53:20]Write i2c OK [14:53:20]MH_I2C_Read... [14:53:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:20]Read from MH i2c: E2 [14:53:20]MH_I2C_Read... [14:53:20]Read from MH i2c: E2 0E 00 [14:53:20]MH_I2C_Read... [14:53:20]Read from MH i2c: E2 0E 00 E9 45 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 72 [14:53:20]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:53:20]wFMCommunicate OK [14:53:20]SAM_PROTO_GetShiftState done [14:53:20]FM_GetShiftState done [14:53:20]opened in 1729555538 [14:53:20]opened+sec_in_day 1729641938 [14:53:20]quantity*price = 100050 [14:53:20]sum+1 = 100052 [14:53:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 233 22.10.2024 14:53 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228269 ФПД: 190233904289315 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145325&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228269&fm=190233904289315&tin=02508201610067®Number=0000000000091685&sum=100000 [14:53:21]StoreToDocumentArchive [14:53:21]shift 535 fd 228269 [14:53:21]save to /storage/0535/doc_00228269 [14:53:21]save last doc name /storage/0535/doc_00228269 to /storage/kkm_last_doc_name [14:53:21]save OK [14:53:21]Clear old archive folders... [14:53:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:53:21]tlvbuf is 0088C840 [14:53:21]SAM_PROTO_ClearQueue [14:53:21]wFMCommunicate request_size=4 [14:53:21]MH_SAM_APDU [14:53:21]CAPDU: 80 09 00 00 [14:53:21]Write to MH i2c: E2 08 00 F6 45 80 09 00 00 00 00 00 00 AD [14:53:21]Write i2c OK [14:53:21]MH_I2C_Read... [14:53:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:21]Read from MH i2c: E2 [14:53:21]MH_I2C_Read... [14:53:21]Read from MH i2c: E2 03 00 [14:53:21]MH_I2C_Read... [14:53:21]Read from MH i2c: E2 03 00 F6 45 00 90 00 AF [14:53:21]RAPDU: 90 00 [14:53:21]wFMCommunicate OK [14:53:21]SAM_PROTO_ClearQueue done [14:53:21]KKMCreateOFDPacket [14:53:21]OFDProtocolAddRootSTLVToBuf [14:53:21]FM_MakeSignedData [14:53:21]FM_MakeSignedData [14:53:21]SAM_PROTO_SignData [14:53:21]wFMCommunicate request_size=4 [14:53:21]MH_SAM_APDU [14:53:21]CAPDU: 80 0D 01 02 [14:53:21]Write to MH i2c: E2 08 00 F7 45 80 0D 01 02 00 00 00 00 B5 [14:53:21]Write i2c OK [14:53:21]MH_I2C_Read... [14:53:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:22]Read from MH i2c: E2 [14:53:22]MH_I2C_Read... [14:53:22]Read from MH i2c: E2 03 00 [14:53:22]MH_I2C_Read... [14:53:22]Read from MH i2c: E2 03 00 F7 45 00 90 00 B0 [14:53:22]RAPDU: 90 00 [14:53:22]wFMCommunicate OK [14:53:22]wFMCommunicate request_size=255 [14:53:22]MH_SAM_APDU [14:53: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 E9 00 00 00 F4 03 04 00 65 BC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AD 7B 03 00 35 04 06 00 AD 04 48 4A [14:53:22]Write to MH i2c: E2 02 01 F8 45 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 E9 00 00 00 F4 03 04 00 65 BC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AD 7B 03 00 35 04 06 00 AD 04 48 4A 00 00 51 [14:53:22]Write i2c OK [14:53:22]MH_I2C_Read... [14:53:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:22]Read from MH i2c: E2 [14:53:22]MH_I2C_Read... [14:53:22]Read from MH i2c: E2 03 00 [14:53:22]MH_I2C_Read... [14:53:22]Read from MH i2c: E2 03 00 F8 45 00 90 00 B1 [14:53:22]RAPDU: 90 00 [14:53:22]wFMCommunicate OK [14:53:22]wFMCommunicate request_size=7 [14:53:22]MH_SAM_APDU [14:53:22]CAPDU: 80 0D 02 02 02 16 23 [14:53:22]Write to MH i2c: E2 0A 00 F9 45 80 0D 02 02 02 00 16 23 00 00 F5 [14:53:22]Write i2c OK [14:53:22]MH_I2C_Read... [14:53:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:22]Read from MH i2c: E2 [14:53:22]MH_I2C_Read... [14:53:22]Read from MH i2c: E2 03 00 [14:53:22]MH_I2C_Read... [14:53:22]Read from MH i2c: E2 03 00 F9 45 00 90 00 B2 [14:53:22]RAPDU: 90 00 [14:53:22]wFMCommunicate OK [14:53:22]wFMCommunicate request_size=4 [14:53:22]MH_SAM_APDU [14:53:22]CAPDU: 80 0D 03 02 [14:53:22]Write to MH i2c: E2 08 00 FA 45 80 0D 03 02 00 00 00 00 BA [14:53:22]Write i2c OK [14:53:22]MH_I2C_Read... [14:53:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:22]Read from MH i2c: E2 [14:53:22]MH_I2C_Read... [14:53:22]Read from MH i2c: E2 0B 00 [14:53:22]MH_I2C_Read... [14:53:22]Read from MH i2c: E2 0B 00 FA 45 00 3B 64 9E 17 EB 93 F1 A8 90 00 26 [14:53:22]RAPDU: 3B 64 9E 17 EB 93 F1 A8 90 00 [14:53:22]wFMCommunicate OK [14:53:22]SAM_PROTO_SignData done [14:53:22]FM_MakeSignedData done [14:53:22]CreateOFDProtocolMessage [14:53:22]wFMCommunicate request_size=4 [14:53:22]MH_SAM_APDU [14:53:22]CAPDU: 80 11 00 00 [14:53:22]Write to MH i2c: E2 08 00 FB 45 80 11 00 00 00 00 00 00 BA [14:53:22]Write i2c OK [14:53:22]MH_I2C_Read... [14:53:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:22]Read from MH i2c: E2 [14:53:22]MH_I2C_Read... [14:53:22]Read from MH i2c: E2 17 00 [14:53:22]MH_I2C_Read... [14:53:22]Read from MH i2c: E2 17 00 FB 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 11 [14:53:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:53:22]wFMCommunicate OK [14:53:22]CreateOFDProtocolMessage done [14:53:22]OFDSenderStorePacket 228269 [14:53:22]StoreOFDPacket docnum=228269 [14:53:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 FB 15 04 01 3C F6 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 E9 00 00 00 F4 03 04 00 65 BC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AD 7B 03 00 35 04 06 00 AD 04 48 4A 16 23 3B 64 9E 17 EB 93 F1 A8 [14:53:22]CheckFolder [14:53:22]dirname=/storage/ofd_packets [14:53:22]CheckFolder done [14:53:22]ProducePacketName [14:53:22]name=ofd_packets/00228269 [14:53:22]NVStorageSaveData ofd_packets/00228269 [14:53:22]File name is /storage/ofd_packets/00228269 [14:53:22]Write 298 bytes [14:53:22]NVStorageSaveData done [14:53:22]OFDSenderStorePacket done [14:53:22]KKMCreateOFDPacket done [14:53:22]NVStorageSaveData kkm_last_timestamp [14:53:22]File name is /storage/kkm_last_timestamp [14:53:22]Write 4 bytes [14:53:22]NVStorageSaveData done [14:53:22]ExternCall_PrintAddStr [14:53:22]wPrintStart [14:53:22]Write to MH i2c: 01 00 00 FC 45 41 [14:53:22]Write i2c OK [14:53:22]MH_I2C_Read... [14:53:22]Read from MH i2c: 01 [14:53:22]MH_I2C_Read... [14:53:22]Read from MH i2c: 01 07 00 [14:53:22]MH_I2C_Read... [14:53:22]Read from MH i2c: 01 07 00 FC 45 00 00 00 00 00 FF 0F 56 [14:53:22]RasterBufferAndPrint [14:53:22]line Счет N : (1)1964745 [14:53:22]line ИНН: 02508201610067 [14:53:22]line Контрольно-Кассовый Чек [14:53:22]line ПРОДАЖА [14:53:22]line ТРК (МРК, ГНК) : 11 [14:53:22]line Товар: 2710194210 [14:53:22]line ДТ-К-5 [14:53:22]line 13.130 * 76.20 [14:53:22]line = 1000.51 [14:53:22]line НДС 12% НСП 1% [14:53:22]line > о реализуемом товаре [14:53:22]line ОКРУГЛЕНИЕ: -0.51 [14:53:22]line ИТОГО: 1000.00 [14:53:22]line Внесено: 1000.00 [14:53:22]line СДАЧА: 0.00 [14:53:22]line НСП 1% : 8.85 [14:53:22]line НДС 12% : 106.25 [14:53:22]line Наличными: 1000.00 [14:53:22]line Безнал.: 0.00 [14:53:22]line Место: АЗС № 133 "Партнер Нефть" [14:53:22]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [14:53:22]line СНО: Общий режим [14:53:22]line Чек 233 22.10.2024 14:53 [14:53:22]line Смена: 535 ФФД: 1.0 [14:53:22]line ЗНМ: 0300000091 [14:53:22]line РНМ: 0000000000091685 [14:53:22]line Версия ККМ: 001 [14:53:22]line ФМ: 0000000000871839 [14:53:22]line ФД: 228269 [14:53:22]line ФПД: 190233904289315 [14:53:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145325&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228269&fm=190233904289315&tin=02508201610067®Number=0000000000091685&sum=100000 [14:53:22]OFD Sender: Processing packet 228269 [packets to send 38, broken 37] [14:53:22]ProducePacketName [14:53:22]name=ofd_packets/00228269 [14:53:22]OFD Sender: To server: pG, [14:53:22]CommunicateWithHost lk.salyk.kg:30040 [14:53:22]ConnectInit lk.salyk.kg [14:53:22]written 0, free lines is 4095 [14:53:22]Connected sock=10 [14:53:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 FB 15 04 01 3C F6 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 E9 00 00 00 F4 03 04 00 65 BC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AD 7B 03 00 35 04 06 00 AD 04 48 4A 16 23 3B 64 9E 17 EB 93 F1 A8 [14:53:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 CB F7 47 00 8E D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AD 7B 03 00 F4 03 04 00 5D 67 17 67 B6 04 01 00 00 E8 AD 8F 9F D0 3D 63 41 [14:53:23]CommunicateWithHost err = 0 [14:53:23]CheckOFDResponse [14:53:23]1017 (14) - 77093643461234 [14:53:23]1041 (16) - 0000000000871839 [14:53:23]1040 (4) - 228269 [14:53:23]1012 (4) - 22.10.2024 08:50 [14:53:23]1206 (1) - 0 [14:53:23]OFD Sender: Remove packet 228269 [14:53:23]ProducePacketName [14:53:23]name=ofd_packets/00228269 [14:53:23]NVStorageDeleteData [14:53:23]Write to MH i2c: 01 00 00 26 46 6C [14:53:23]Write i2c OK [14:53:23]MH_I2C_Read... [14:53:23]Read from MH i2c: 01 [14:53:23]MH_I2C_Read... [14:53:23]Read from MH i2c: 01 07 00 [14:53:23]MH_I2C_Read... [14:53:23]Read from MH i2c: 01 07 00 26 46 00 00 00 00 00 C9 0C 48 [14:53:23]RasterBufferAndPrint [14:53:23]line [14:53:23]line [14:53:23]line [14:53:23]line [14:53:23]line [14:53:23]written 0, free lines is 3278 [14:53:23]MH_Cut [14:53:23]Write to MH i2c: D1 01 00 2D 46 01 45 [14:53:23]Write i2c OK [14:53:23]MH_I2C_Read... [14:53:23]Read from MH i2c: D1 [14:53:23]MH_I2C_Read... [14:53:23]Read from MH i2c: D1 01 00 [14:53:23]MH_I2C_Read... [14:53:23]Read from MH i2c: D1 01 00 2D 46 00 44 [14:53:23]Write to MH i2c: 01 00 00 2E 46 74 [14:53:23]Write i2c OK [14:53:23]MH_I2C_Read... [14:53:23]OFD Sender: No OFD packet to send [14:53:24]*** Cut start [14:53:24]*** Partial cut [14:53:24]*** CUTSNS_PIN = 1 [14:53:24]*** CUTSNS_PIN = 0 [14:53:24]*** Brake cut motor [14:53:24]Read from MH i2c: 01 [14:53:24]MH_I2C_Read... [14:53:24]*** Stop cut motor [14:53:24]*** Cut end [14:53:24]Read from MH i2c: 01 07 00 [14:53:24]MH_I2C_Read... [14:53:24]Read from MH i2c: 01 07 00 2E 46 00 00 00 00 00 FF 0F 89 [14:53:24]process_action close_receipt done [14:53:24]requested_data is exist [14:53:24]produce_requested_data [14:53:24]requested_item fm.sn is exist - process it [14:53:24]wFMCommunicate request_size=4 [14:53:24]MH_SAM_APDU [14:53:24]CAPDU: 80 11 00 00 [14:53:24]Write to MH i2c: E2 08 00 2F 46 80 11 00 00 00 00 00 00 EF [14:53:24]Write i2c OK [14:53:24]MH_I2C_Read... [14:53:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:24]Read from MH i2c: E2 [14:53:24]MH_I2C_Read... [14:53:24]Read from MH i2c: E2 17 00 [14:53:24]MH_I2C_Read... [14:53:24]Read from MH i2c: E2 17 00 2F 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 46 [14:53:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:53:24]wFMCommunicate OK [14:53:24]requested_item fd.num is exist - process it [14:53:24]SAM_PROTO_GetFieldsCounters [14:53:24]wFMCommunicate request_size=4 [14:53:24]MH_SAM_APDU [14:53:24]CAPDU: 80 13 00 00 [14:53:24]Write to MH i2c: E2 08 00 30 46 80 13 00 00 00 00 00 00 F2 [14:53:24]Write i2c OK [14:53:24]MH_I2C_Read... [14:53:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:24]Read from MH i2c: E2 [14:53:24]MH_I2C_Read... [14:53:24]Read from MH i2c: E2 62 00 [14:53:24]MH_I2C_Read... [14:53:24]Read from MH i2c: E2 62 00 30 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 AD 7B 03 00 0E 04 04 00 17 02 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 1A [14:53:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 AD 7B 03 00 0E 04 04 00 17 02 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 [14:53:24]wFMCommunicate OK [14:53:24]SAM_PROTO_GetFieldsCounters done [14:53:24]requested_item shift.num is exist - process it [14:53:24]requested_item shift.opened is exist - process it [14:53:24]req_shift_opened [14:53:24]FM_GetShiftState [14:53:24]SAM_PROTO_GetShiftState [14:53:24]wFMCommunicate request_size=4 [14:53:24]MH_SAM_APDU [14:53:24]CAPDU: 80 13 01 00 [14:53:24]Write to MH i2c: E2 08 00 31 46 80 13 01 00 00 00 00 00 F4 [14:53:24]Write i2c OK [14:53:24]MH_I2C_Read... [14:53:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:24]Read from MH i2c: E2 [14:53:24]MH_I2C_Read... [14:53:24]Read from MH i2c: E2 0E 00 [14:53:24]MH_I2C_Read... [14:53:24]Read from MH i2c: E2 0E 00 31 46 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 BB [14:53:24]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:53:24]wFMCommunicate OK [14:53:24]SAM_PROTO_GetShiftState done [14:53:24]FM_GetShiftState done [14:53:24]req_shift_opened done [14:53:24]requested_item shift.open_date is exist - process it [14:53:24]req_shift_open_date [14:53:24]req_shift_open_date done [14:53:24]produce_requested_data done [14:53:24]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228269,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [14:53:24]process_action_free close_receipt [14:53:24]json_value_free [14:53:24]json_value_free done [14:53:24]process_json_proto returns [14:53:24]Send response to host [14:53:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228269,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [14:53:24]free response buf [14:53:24]execute_script done [14:53:24]execute_script returns [14:53:24]free content buf [14:53:24]Sock 9.Close socket [14:53:24]Sock 9.Thread stoped [14:53:28]OFD Sender: No OFD packet to send [14:53:33]OFD Sender: No OFD packet to send [14:53:38]OFD Sender: No OFD packet to send [14:53:43]OFD Sender: No OFD packet to send [14:53:48]OFD Sender: No OFD packet to send [14:53:53]OFD Sender: No OFD packet to send [14:53:58]OFD Sender: No OFD packet to send [14:54:03]OFD Sender: No OFD packet to send [14:54:07]accept exits with 7 [14:54:07]New connection [14:54:07]New thread 3067137380 created [14:54:07]Thread 3066994020 joined [14:54:07]Waiting for new connection... [14:54:07] Sock 7.Parse request [14:54:07]Sock 7.Check first char [14:54:07]Sock 7.First char is OK [14:54:07]request: POST /json_proto HTTP/1.0 [14:54:07]Method: POST [14:54:07]URL: /json_proto [14:54:07]Method is POST - this is cgi request [14:54:07]url: /json_proto [14:54:07]query_string will be loaded in cgi processing [14:54:07]execute_cgi json_proto POST (null) [14:54:07]execute_cgi path=json_proto method=POST [14:54:07]POST find Content-Length [14:54:07]Host: 172.17.44.195:8080 [14:54:07]Content-Length: 675 [14:54:07]Content-Type: application/json [14:54:07] [14:54:07]POST finish read [14:54:07]Found Content-Length = 675 [14:54:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:07]execute_script... [14:54:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:07]POST & json_proto [14:54:07]process_json_proto [14:54:07]json parsed OK: [14:54:07]protocol is kg_v1.0 [14:54:07]action value=close_receipt [14:54:07]process_action close_receipt [14:54:07]cmd_close_receipt [14:54:07]MH_GetDate [14:54:07]Write to MH i2c: F0 00 00 32 46 67 [14:54:07]Write i2c OK [14:54:07]MH_I2C_Read... [14:54:07]Read from MH i2c: F0 [14:54:07]MH_I2C_Read... [14:54:07]Read from MH i2c: F0 09 00 [14:54:07]MH_I2C_Read... [14:54:07]Read from MH i2c: F0 09 00 32 46 00 94 BC 17 67 82 C9 CF 66 BE [14:54:07]GetLastDocTimeStamp 1729608805 [14:54:07]current date 1729608852 [14:54:07]FM_GetShiftState [14:54:07]SAM_PROTO_GetShiftState [14:54:07]wFMCommunicate request_size=4 [14:54:07]MH_SAM_APDU [14:54:07]CAPDU: 80 13 01 00 [14:54:07]Write to MH i2c: E2 08 00 33 46 80 13 01 00 00 00 00 00 F6 [14:54:07]Write i2c OK [14:54:07]MH_I2C_Read... [14:54:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:07]Read from MH i2c: E2 [14:54:07]MH_I2C_Read... [14:54:07]Read from MH i2c: E2 0E 00 [14:54:07]MH_I2C_Read... [14:54:07]Read from MH i2c: E2 0E 00 33 46 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 BD [14:54:07]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:54:07]wFMCommunicate OK [14:54:07]SAM_PROTO_GetShiftState done [14:54:07]FM_GetShiftState done [14:54:07]opened in 1729555538 [14:54:07]opened+sec_in_day 1729641938 [14:54:07]quantity*price = 50063 [14:54:07]sum+1 = 50064 [14:54:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 234 22.10.2024 14:54 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228270 ФПД: 186014426634618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145412&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228270&fm=186014426634618&tin=02508201610067®Number=0000000000091685&sum=50000 [14:54:08]StoreToDocumentArchive [14:54:08]shift 535 fd 228270 [14:54:08]save to /storage/0535/doc_00228270 [14:54:08]save last doc name /storage/0535/doc_00228270 to /storage/kkm_last_doc_name [14:54:08]OFD Sender: No OFD packet to send [14:54:08]save OK [14:54:08]Clear old archive folders... [14:54:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:54:08]tlvbuf is B6DD53B0 [14:54:08]SAM_PROTO_ClearQueue [14:54:08]wFMCommunicate request_size=4 [14:54:08]MH_SAM_APDU [14:54:08]CAPDU: 80 09 00 00 [14:54:08]Write to MH i2c: E2 08 00 40 46 80 09 00 00 00 00 00 00 F8 [14:54:08]Write i2c OK [14:54:08]MH_I2C_Read... [14:54:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:08]Read from MH i2c: E2 [14:54:08]MH_I2C_Read... [14:54:08]Read from MH i2c: E2 03 00 [14:54:08]MH_I2C_Read... [14:54:08]Read from MH i2c: E2 03 00 40 46 00 90 00 FA [14:54:08]RAPDU: 90 00 [14:54:08]wFMCommunicate OK [14:54:08]SAM_PROTO_ClearQueue done [14:54:08]KKMCreateOFDPacket [14:54:08]OFDProtocolAddRootSTLVToBuf [14:54:08]FM_MakeSignedData [14:54:08]FM_MakeSignedData [14:54:08]SAM_PROTO_SignData [14:54:08]wFMCommunicate request_size=4 [14:54:08]MH_SAM_APDU [14:54:08]CAPDU: 80 0D 01 02 [14:54:08]Write to MH i2c: E2 08 00 41 46 80 0D 01 02 00 00 00 00 00 [14:54:08]Write i2c OK [14:54:08]MH_I2C_Read... [14:54:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:08]Read from MH i2c: E2 [14:54:08]MH_I2C_Read... [14:54:08]Read from MH i2c: E2 03 00 [14:54:08]MH_I2C_Read... [14:54:08]Read from MH i2c: E2 03 00 41 46 00 90 00 FB [14:54:08]RAPDU: 90 00 [14:54:08]wFMCommunicate OK [14:54:08]wFMCommunicate request_size=255 [14:54:08]MH_SAM_APDU [14:54:08]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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 94 BC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AE 7B 03 00 35 04 06 00 A9 2D DB D2 [14:54:08]Write to MH i2c: E2 02 01 42 46 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 94 BC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AE 7B 03 00 35 04 06 00 A9 2D DB D2 00 00 95 [14:54:08]Write i2c OK [14:54:08]MH_I2C_Read... [14:54:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:09]Read from MH i2c: E2 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: E2 03 00 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: E2 03 00 42 46 00 90 00 FC [14:54:09]RAPDU: 90 00 [14:54:09]wFMCommunicate OK [14:54:09]wFMCommunicate request_size=7 [14:54:09]MH_SAM_APDU [14:54:09]CAPDU: 80 0D 02 02 02 99 7A [14:54:09]Write to MH i2c: E2 0A 00 43 46 80 0D 02 02 02 00 99 7A 00 00 1A [14:54:09]Write i2c OK [14:54:09]MH_I2C_Read... [14:54:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:09]Read from MH i2c: E2 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: E2 03 00 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: E2 03 00 43 46 00 90 00 FD [14:54:09]RAPDU: 90 00 [14:54:09]wFMCommunicate OK [14:54:09]wFMCommunicate request_size=4 [14:54:09]MH_SAM_APDU [14:54:09]CAPDU: 80 0D 03 02 [14:54:09]Write to MH i2c: E2 08 00 44 46 80 0D 03 02 00 00 00 00 05 [14:54:09]Write i2c OK [14:54:09]MH_I2C_Read... [14:54:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:09]Read from MH i2c: E2 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: E2 0B 00 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: E2 0B 00 44 46 00 AC C4 C1 3C 88 D4 BB F7 90 00 81 [14:54:09]RAPDU: AC C4 C1 3C 88 D4 BB F7 90 00 [14:54:09]wFMCommunicate OK [14:54:09]SAM_PROTO_SignData done [14:54:09]FM_MakeSignedData done [14:54:09]CreateOFDProtocolMessage [14:54:09]wFMCommunicate request_size=4 [14:54:09]MH_SAM_APDU [14:54:09]CAPDU: 80 11 00 00 [14:54:09]Write to MH i2c: E2 08 00 45 46 80 11 00 00 00 00 00 00 05 [14:54:09]Write i2c OK [14:54:09]MH_I2C_Read... [14:54:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:09]Read from MH i2c: E2 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: E2 17 00 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: E2 17 00 45 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5C [14:54:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:54:09]wFMCommunicate OK [14:54:09]CreateOFDProtocolMessage done [14:54:09]OFDSenderStorePacket 228270 [14:54:09]StoreOFDPacket docnum=228270 [14:54:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 0E 29 04 01 74 49 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 94 BC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AE 7B 03 00 35 04 06 00 A9 2D DB D2 99 7A AC C4 C1 3C 88 D4 BB F7 [14:54:09]CheckFolder [14:54:09]dirname=/storage/ofd_packets [14:54:09]CheckFolder done [14:54:09]ProducePacketName [14:54:09]name=ofd_packets/00228270 [14:54:09]NVStorageSaveData ofd_packets/00228270 [14:54:09]File name is /storage/ofd_packets/00228270 [14:54:09]Write 298 bytes [14:54:09]NVStorageSaveData done [14:54:09]OFDSenderStorePacket done [14:54:09]KKMCreateOFDPacket done [14:54:09]NVStorageSaveData kkm_last_timestamp [14:54:09]File name is /storage/kkm_last_timestamp [14:54:09]Write 4 bytes [14:54:09]NVStorageSaveData done [14:54:09]ExternCall_PrintAddStr [14:54:09]wPrintStart [14:54:09]Write to MH i2c: 01 00 00 46 46 8C [14:54:09]Write i2c OK [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: 01 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: 01 07 00 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: 01 07 00 46 46 00 00 00 00 00 FF 0F A1 [14:54:09]RasterBufferAndPrint [14:54:09]line Счет N : (1)1964748 [14:54:09]line ИНН: 02508201610067 [14:54:09]line Контрольно-Кассовый Чек [14:54:09]line ПРОДАЖА [14:54:09]line ТРК (МРК, ГНК) : 31 [14:54:09]line Товар: 2710194210 [14:54:09]line ДТ-К-5 [14:54:09]line 6.570 * 76.20 [14:54:09]line = 500.63 [14:54:09]line НДС 12% НСП 1% [14:54:09]line > о реализуемом товаре [14:54:09]line ОКРУГЛЕНИЕ: -0.63 [14:54:09]line ИТОГО: 500.00 [14:54:09]line Внесено: 500.00 [14:54:09]line СДАЧА: 0.00 [14:54:09]line НСП 1% : 4.43 [14:54:09]line НДС 12% : 53.16 [14:54:09]line Наличными: 500.00 [14:54:09]line Безнал.: 0.00 [14:54:09]line Место: АЗС № 133 "Партнер Нефть" [14:54:09]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [14:54:09]line СНО: Общий режим [14:54:09]line Чек 234 22.10.2024 14:54 [14:54:09]line Смена: 535 ФФД: 1.0 [14:54:09]line ЗНМ: 0300000091 [14:54:09]line РНМ: 0000000000091685 [14:54:09]line Версия ККМ: 001 [14:54:09]line ФМ: 0000000000871839 [14:54:09]line ФД: 228270 [14:54:09]line ФПД: 186014426634618 [14:54:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145412&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228270&fm=186014426634618&tin=02508201610067®Number=0000000000091685&sum=50000 [14:54:09]written 0, free lines is 4095 [14:54:09]OFD Sender: Processing packet 228270 [packets to send 38, broken 37] [14:54:09]ProducePacketName [14:54:09]name=ofd_packets/00228270 [14:54:09]OFD Sender: To server: pG, [14:54:09]CommunicateWithHost lk.salyk.kg:30040 [14:54:09]ConnectInit lk.salyk.kg [14:54:09]Connected sock=10 [14:54:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 0E 29 04 01 74 49 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 94 BC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AE 7B 03 00 35 04 06 00 A9 2D DB D2 99 7A AC C4 C1 3C 88 D4 BB F7 [14:54:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 AE 8C 47 00 83 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 38 37 31 38 33 39 10 04 04 00 AE 7B 03 00 F4 03 04 00 8B 67 17 67 B6 04 01 00 00 E9 74 E7 53 FC 94 C1 AA [14:54:09]CommunicateWithHost err = 0 [14:54:09]CheckOFDResponse [14:54:09]1017 (14) - 77093643461234 [14:54:09]1041 (16) - 0000000000871839 [14:54:09]1040 (4) - 228270 [14:54:09]1012 (4) - 22.10.2024 08:51 [14:54:09]1206 (1) - 0 [14:54:09]OFD Sender: Remove packet 228270 [14:54:09]ProducePacketName [14:54:09]name=ofd_packets/00228270 [14:54:09]NVStorageDeleteData [14:54:09]Write to MH i2c: 01 00 00 70 46 B6 [14:54:09]Write i2c OK [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: 01 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: 01 07 00 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: 01 07 00 70 46 00 00 00 00 00 C4 0C 8D [14:54:09]RasterBufferAndPrint [14:54:09]line [14:54:09]line [14:54:09]line [14:54:09]line [14:54:09]line [14:54:09]written 0, free lines is 3274 [14:54:09]MH_Cut [14:54:09]Write to MH i2c: D1 01 00 77 46 01 8F [14:54:09]Write i2c OK [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: D1 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: D1 01 00 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: D1 01 00 77 46 00 8E [14:54:09]Write to MH i2c: 01 00 00 78 46 BE [14:54:09]Write i2c OK [14:54:09]MH_I2C_Read... [14:54:10]OFD Sender: No OFD packet to send [14:54:10]*** Cut start [14:54:10]*** Partial cut [14:54:10]*** CUTSNS_PIN = 1 [14:54:10]*** CUTSNS_PIN = 0 [14:54:10]*** Brake cut motor [14:54:11]Read from MH i2c: 01 [14:54:11]MH_I2C_Read... [14:54:11]*** Stop cut motor [14:54:11]*** Cut end [14:54:11]Read from MH i2c: 01 07 00 [14:54:11]MH_I2C_Read... [14:54:11]Read from MH i2c: 01 07 00 78 46 00 00 00 00 00 FF 0F D3 [14:54:11]process_action close_receipt done [14:54:11]requested_data is exist [14:54:11]produce_requested_data [14:54:11]requested_item fm.sn is exist - process it [14:54:11]wFMCommunicate request_size=4 [14:54:11]MH_SAM_APDU [14:54:11]CAPDU: 80 11 00 00 [14:54:11]Write to MH i2c: E2 08 00 79 46 80 11 00 00 00 00 00 00 39 [14:54:11]Write i2c OK [14:54:11]MH_I2C_Read... [14:54:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:11]Read from MH i2c: E2 [14:54:11]MH_I2C_Read... [14:54:11]Read from MH i2c: E2 17 00 [14:54:11]MH_I2C_Read... [14:54:11]Read from MH i2c: E2 17 00 79 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 90 [14:54:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:54:11]wFMCommunicate OK [14:54:11]requested_item fd.num is exist - process it [14:54:11]SAM_PROTO_GetFieldsCounters [14:54:11]wFMCommunicate request_size=4 [14:54:11]MH_SAM_APDU [14:54:11]CAPDU: 80 13 00 00 [14:54:11]Write to MH i2c: E2 08 00 7A 46 80 13 00 00 00 00 00 00 3C [14:54:11]Write i2c OK [14:54:11]MH_I2C_Read... [14:54:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:11]Read from MH i2c: E2 [14:54:11]MH_I2C_Read... [14:54:11]Read from MH i2c: E2 62 00 [14:54:11]MH_I2C_Read... [14:54:11]Read from MH i2c: E2 62 00 7A 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 AE 7B 03 00 0E 04 04 00 17 02 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 68 [14:54:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 AE 7B 03 00 0E 04 04 00 17 02 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 [14:54:11]wFMCommunicate OK [14:54:11]SAM_PROTO_GetFieldsCounters done [14:54:11]requested_item shift.num is exist - process it [14:54:11]requested_item shift.opened is exist - process it [14:54:11]req_shift_opened [14:54:11]FM_GetShiftState [14:54:11]SAM_PROTO_GetShiftState [14:54:11]wFMCommunicate request_size=4 [14:54:11]MH_SAM_APDU [14:54:11]CAPDU: 80 13 01 00 [14:54:11]Write to MH i2c: E2 08 00 7B 46 80 13 01 00 00 00 00 00 3E [14:54:11]Write i2c OK [14:54:11]MH_I2C_Read... [14:54:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:11]Read from MH i2c: E2 [14:54:11]MH_I2C_Read... [14:54:11]Read from MH i2c: E2 0E 00 [14:54:11]MH_I2C_Read... [14:54:11]Read from MH i2c: E2 0E 00 7B 46 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 05 [14:54:11]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:54:11]wFMCommunicate OK [14:54:11]SAM_PROTO_GetShiftState done [14:54:11]FM_GetShiftState done [14:54:11]req_shift_opened done [14:54:11]requested_item shift.open_date is exist - process it [14:54:11]req_shift_open_date [14:54:11]req_shift_open_date done [14:54:11]produce_requested_data done [14:54:11]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228270,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [14:54:11]process_action_free close_receipt [14:54:11]json_value_free [14:54:11]json_value_free done [14:54:11]process_json_proto returns [14:54:11]Send response to host [14:54:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228270,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [14:54:11]free response buf [14:54:11]execute_script done [14:54:11]execute_script returns [14:54:11]free content buf [14:54:11]Sock 7.Close socket [14:54:11]Sock 7.Thread stoped [14:54:15]OFD Sender: No OFD packet to send [14:54:20]OFD Sender: No OFD packet to send [14:54:25]OFD Sender: No OFD packet to send [14:54:30]OFD Sender: No OFD packet to send [14:54:35]OFD Sender: No OFD packet to send [14:54:40]OFD Sender: No OFD packet to send [14:54:45]OFD Sender: No OFD packet to send [14:54:50]OFD Sender: No OFD packet to send [14:54:55]OFD Sender: No OFD packet to send [14:55:00]OFD Sender: No OFD packet to send [14:55:05]OFD Sender: No OFD packet to send [14:55:10]OFD Sender: No OFD packet to send [14:55:15]OFD Sender: No OFD packet to send [14:55:20]OFD Sender: No OFD packet to send [14:55:22]accept exits with 9 [14:55:22]New connection [14:55:22]New thread 3066994020 created [14:55:22]Thread 3067137380 joined [14:55:22]Waiting for new connection... [14:55:22] Sock 9.Parse request [14:55:22]Sock 9.Check first char [14:55:22]Sock 9.First char is OK [14:55:22]request: POST /json_proto HTTP/1.0 [14:55:22]Method: POST [14:55:22]URL: /json_proto [14:55:22]Method is POST - this is cgi request [14:55:22]url: /json_proto [14:55:22]query_string will be loaded in cgi processing [14:55:22]execute_cgi json_proto POST (null) [14:55:22]execute_cgi path=json_proto method=POST [14:55:22]POST find Content-Length [14:55:22]Host: 172.17.44.195:8080 [14:55:22]Content-Length: 673 [14:55:22]Content-Type: application/json [14:55:22] [14:55:22]POST finish read [14:55:22]Found Content-Length = 673 [14:55:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 18.000, "sum" : 700.20, "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" ] } } [14:55:22]execute_script... [14:55: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)1964747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 18.000, "sum" : 700.20, "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" ] } } [14:55:22]POST & json_proto [14:55:22]process_json_proto [14:55:22]json parsed OK: [14:55:22]protocol is kg_v1.0 [14:55:22]action value=close_receipt [14:55:22]process_action close_receipt [14:55:22]cmd_close_receipt [14:55:22]MH_GetDate [14:55:22]Write to MH i2c: F0 00 00 7C 46 B1 [14:55:22]Write i2c OK [14:55:22]MH_I2C_Read... [14:55:22]Read from MH i2c: F0 [14:55:22]MH_I2C_Read... [14:55:22]Read from MH i2c: F0 09 00 [14:55:22]MH_I2C_Read... [14:55:22]Read from MH i2c: F0 09 00 7C 46 00 DF BC 17 67 82 C9 CF 66 53 [14:55:22]GetLastDocTimeStamp 1729608852 [14:55:22]current date 1729608927 [14:55:22]FM_GetShiftState [14:55:22]SAM_PROTO_GetShiftState [14:55:22]wFMCommunicate request_size=4 [14:55:22]MH_SAM_APDU [14:55:22]CAPDU: 80 13 01 00 [14:55:22]Write to MH i2c: E2 08 00 7D 46 80 13 01 00 00 00 00 00 40 [14:55:22]Write i2c OK [14:55:22]MH_I2C_Read... [14:55:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:22]Read from MH i2c: E2 [14:55:22]MH_I2C_Read... [14:55:22]Read from MH i2c: E2 0E 00 [14:55:22]MH_I2C_Read... [14:55:22]Read from MH i2c: E2 0E 00 7D 46 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 07 [14:55:22]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:55:22]wFMCommunicate OK [14:55:22]SAM_PROTO_GetShiftState done [14:55:22]FM_GetShiftState done [14:55:22]opened in 1729555538 [14:55:22]opened+sec_in_day 1729641938 [14:55:22]quantity*price = 70020 [14:55:22]sum+1 = 70021 [14:55:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 235 22.10.2024 14:55 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228271 ФПД: 77050935880070 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145527&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228271&fm=77050935880070&tin=02508201610067®Number=0000000000091685&sum=70000 [14:55:23]StoreToDocumentArchive [14:55:23]shift 535 fd 228271 [14:55:23]save to /storage/0535/doc_00228271 [14:55:23]save last doc name /storage/0535/doc_00228271 to /storage/kkm_last_doc_name [14:55:23]save OK [14:55:23]Clear old archive folders... [14:55:23]ProcessDocumentItem done err = 0, tmpTLVsize=245 [14:55:23]tlvbuf is B6F857E0 [14:55:23]SAM_PROTO_ClearQueue [14:55:23]wFMCommunicate request_size=4 [14:55:23]MH_SAM_APDU [14:55:23]CAPDU: 80 09 00 00 [14:55:23]Write to MH i2c: E2 08 00 8A 46 80 09 00 00 00 00 00 00 42 [14:55:23]Write i2c OK [14:55:23]MH_I2C_Read... [14:55:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:23]Read from MH i2c: E2 [14:55:23]MH_I2C_Read... [14:55:23]Read from MH i2c: E2 03 00 [14:55:23]MH_I2C_Read... [14:55:23]Read from MH i2c: E2 03 00 8A 46 00 90 00 44 [14:55:23]RAPDU: 90 00 [14:55:23]wFMCommunicate OK [14:55:23]SAM_PROTO_ClearQueue done [14:55:23]KKMCreateOFDPacket [14:55:23]OFDProtocolAddRootSTLVToBuf [14:55:23]FM_MakeSignedData [14:55:23]FM_MakeSignedData [14:55:23]SAM_PROTO_SignData [14:55:23]wFMCommunicate request_size=4 [14:55:23]MH_SAM_APDU [14:55:23]CAPDU: 80 0D 01 02 [14:55:23]Write to MH i2c: E2 08 00 8B 46 80 0D 01 02 00 00 00 00 4A [14:55:23]Write i2c OK [14:55:23]MH_I2C_Read... [14:55:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:24]Read from MH i2c: E2 [14:55:24]MH_I2C_Read... [14:55:24]Read from MH i2c: E2 03 00 [14:55:24]MH_I2C_Read... [14:55:24]Read from MH i2c: E2 03 00 8B 46 00 90 00 45 [14:55:24]RAPDU: 90 00 [14:55:24]wFMCommunicate OK [14:55:24]wFMCommunicate request_size=254 [14:55:24]MH_SAM_APDU [14:55:24]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 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 EB 00 00 00 F4 03 04 00 DF BC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AF 7B 03 00 35 04 06 00 46 13 D1 A9 A9 86 [14:55:24]Write to MH i2c: E2 01 01 8C 46 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 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 EB 00 00 00 F4 03 04 00 DF BC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AF 7B 03 00 35 04 06 00 46 13 D1 A9 A9 86 00 00 56 [14:55:24]Write i2c OK [14:55:24]MH_I2C_Read... [14:55:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:24]Read from MH i2c: E2 [14:55:24]MH_I2C_Read... [14:55:24]Read from MH i2c: E2 03 00 [14:55:24]MH_I2C_Read... [14:55:24]Read from MH i2c: E2 03 00 8C 46 00 90 00 46 [14:55:24]RAPDU: 90 00 [14:55:24]wFMCommunicate OK [14:55:24]wFMCommunicate request_size=4 [14:55:24]MH_SAM_APDU [14:55:24]CAPDU: 80 0D 03 02 [14:55:24]Write to MH i2c: E2 08 00 8D 46 80 0D 03 02 00 00 00 00 4E [14:55:24]Write i2c OK [14:55:24]MH_I2C_Read... [14:55:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:24]Read from MH i2c: E2 [14:55:24]MH_I2C_Read... [14:55:24]Read from MH i2c: E2 0B 00 [14:55:24]MH_I2C_Read... [14:55:24]Read from MH i2c: E2 0B 00 8D 46 00 DA 58 AB 5B D1 10 B9 63 90 00 84 [14:55:24]RAPDU: DA 58 AB 5B D1 10 B9 63 90 00 [14:55:24]wFMCommunicate OK [14:55:24]SAM_PROTO_SignData done [14:55:24]FM_MakeSignedData done [14:55:24]CreateOFDProtocolMessage [14:55:24]wFMCommunicate request_size=4 [14:55:24]MH_SAM_APDU [14:55:24]CAPDU: 80 11 00 00 [14:55:24]Write to MH i2c: E2 08 00 8E 46 80 11 00 00 00 00 00 00 4E [14:55:24]Write i2c OK [14:55:24]MH_I2C_Read... [14:55:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:24]Read from MH i2c: E2 [14:55:24]MH_I2C_Read... [14:55:24]Read from MH i2c: E2 17 00 [14:55:24]MH_I2C_Read... [14:55:24]Read from MH i2c: E2 17 00 8E 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A5 [14:55:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:55:24]wFMCommunicate OK [14:55:24]CreateOFDProtocolMessage done [14:55:24]OFDSenderStorePacket 228271 [14:55:24]StoreOFDPacket docnum=228271 [14:55:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 21 4B 01 01 EC FE 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 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 EB 00 00 00 F4 03 04 00 DF BC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AF 7B 03 00 35 04 06 00 46 13 D1 A9 A9 86 DA 58 AB 5B D1 10 B9 63 [14:55:24]CheckFolder [14:55:24]dirname=/storage/ofd_packets [14:55:24]CheckFolder done [14:55:24]ProducePacketName [14:55:24]name=ofd_packets/00228271 [14:55:24]NVStorageSaveData ofd_packets/00228271 [14:55:24]File name is /storage/ofd_packets/00228271 [14:55:24]Write 295 bytes [14:55:24]NVStorageSaveData done [14:55:24]OFDSenderStorePacket done [14:55:24]KKMCreateOFDPacket done [14:55:24]NVStorageSaveData kkm_last_timestamp [14:55:24]File name is /storage/kkm_last_timestamp [14:55:24]Write 4 bytes [14:55:24]NVStorageSaveData done [14:55:24]ExternCall_PrintAddStr [14:55:24]wPrintStart [14:55:24]Write to MH i2c: 01 00 00 8F 46 D5 [14:55:24]Write i2c OK [14:55:24]MH_I2C_Read... [14:55:24]Read from MH i2c: 01 [14:55:24]MH_I2C_Read... [14:55:24]Read from MH i2c: 01 07 00 [14:55:24]MH_I2C_Read... [14:55:24]Read from MH i2c: 01 07 00 8F 46 00 00 00 00 00 FF 0F EA [14:55:24]RasterBufferAndPrint [14:55:24]line Счет N : (1)1964747 [14:55:24]line ИНН: 02508201610067 [14:55:24]line Контрольно-Кассовый Чек [14:55:24]line ПРОДАЖА [14:55:24]line ТРК (МРК, ГНК) : 71 [14:55:24]line Товар: 2711129700 [14:55:24]line ГАЗ [14:55:24]line 18.000 * 38.90 [14:55:24]line = 700.20 [14:55:24]line НДС 12% НСП 1% [14:55:24]line > о реализуемом товаре [14:55:24]line ОКРУГЛЕНИЕ: -0.20 [14:55:24]line ИТОГО: 700.00 [14:55:24]line Внесено: 700.00 [14:55:24]line СДАЧА: 0.00 [14:55:24]line НСП 1% : 6.20 [14:55:24]line НДС 12% : 74.36 [14:55:24]line Наличными: 700.00 [14:55:24]line Безнал.: 0.00 [14:55:24]line Место: АЗС № 133 "Партнер Нефть" [14:55:24]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [14:55:24]line СНО: Общий режим [14:55:24]line Чек 235 22.10.2024 14:55 [14:55:24]line Смена: 535 ФФД: 1.0 [14:55:24]line ЗНМ: 0300000091 [14:55:24]line РНМ: 0000000000091685 [14:55:24]line Версия ККМ: 001 [14:55:24]line ФМ: 0000000000871839 [14:55:24]line ФД: 228271 [14:55:24]line ФПД: 77050935880070 [14:55:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145527&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228271&fm=77050935880070&tin=02508201610067®Number=0000000000091685&sum=70000 [14:55:24]written 0, free lines is 4095 [14:55:24]OFD Sender: Processing packet 228271 [packets to send 38, broken 37] [14:55:24]ProducePacketName [14:55:24]name=ofd_packets/00228271 [14:55:24]OFD Sender: To server: pG, [14:55:24]CommunicateWithHost lk.salyk.kg:30040 [14:55:24]ConnectInit lk.salyk.kg [14:55:24]Connected sock=10 [14:55:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 21 4B 01 01 EC FE 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 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 EB 00 00 00 F4 03 04 00 DF BC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AF 7B 03 00 35 04 06 00 46 13 D1 A9 A9 86 DA 58 AB 5B D1 10 B9 63 [14:55:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 DD 6A 47 00 3B 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AF 7B 03 00 F4 03 04 00 D7 67 17 67 B6 04 01 00 00 FD 10 DC 01 F0 33 E3 32 [14:55:24]CommunicateWithHost err = 0 [14:55:24]CheckOFDResponse [14:55:24]1017 (14) - 77093643461234 [14:55:24]1041 (16) - 0000000000871839 [14:55:24]1040 (4) - 228271 [14:55:24]1012 (4) - 22.10.2024 08:52 [14:55:24]1206 (1) - 0 [14:55:24]OFD Sender: Remove packet 228271 [14:55:24]ProducePacketName [14:55:24]name=ofd_packets/00228271 [14:55:24]NVStorageDeleteData [14:55:24]Write to MH i2c: 01 00 00 B9 46 FF [14:55:24]Write i2c OK [14:55:24]MH_I2C_Read... [14:55:24]Read from MH i2c: 01 [14:55:24]MH_I2C_Read... [14:55:24]Read from MH i2c: 01 07 00 [14:55:24]MH_I2C_Read... [14:55:24]Read from MH i2c: 01 07 00 B9 46 00 00 00 00 00 BB 0C CD [14:55:24]RasterBufferAndPrint [14:55:24]line [14:55:24]line [14:55:24]line [14:55:24]line [14:55:24]line [14:55:24]written 0, free lines is 3265 [14:55:24]MH_Cut [14:55:24]Write to MH i2c: D1 01 00 C0 46 01 D8 [14:55:24]Write i2c OK [14:55:24]MH_I2C_Read... [14:55:24]Read from MH i2c: D1 [14:55:24]MH_I2C_Read... [14:55:24]Read from MH i2c: D1 01 00 [14:55:24]MH_I2C_Read... [14:55:24]Read from MH i2c: D1 01 00 C0 46 00 D7 [14:55:24]Write to MH i2c: 01 00 00 C1 46 07 [14:55:24]Write i2c OK [14:55:24]MH_I2C_Read... [14:55:25]OFD Sender: No OFD packet to send [14:55:25]*** Cut start [14:55:25]*** Partial cut [14:55:25]*** CUTSNS_PIN = 1 [14:55:25]*** CUTSNS_PIN = 0 [14:55:25]*** Brake cut motor [14:55:26]Read from MH i2c: 01 [14:55:26]MH_I2C_Read... [14:55:26]*** Stop cut motor [14:55:26]*** Cut end [14:55:26]Read from MH i2c: 01 07 00 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: 01 07 00 C1 46 00 00 00 00 00 FF 0F 1C [14:55:26]process_action close_receipt done [14:55:26]requested_data is exist [14:55:26]produce_requested_data [14:55:26]requested_item fm.sn is exist - process it [14:55:26]wFMCommunicate request_size=4 [14:55:26]MH_SAM_APDU [14:55:26]CAPDU: 80 11 00 00 [14:55:26]Write to MH i2c: E2 08 00 C2 46 80 11 00 00 00 00 00 00 82 [14:55:26]Write i2c OK [14:55:26]MH_I2C_Read... [14:55:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:26]Read from MH i2c: E2 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: E2 17 00 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: E2 17 00 C2 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D9 [14:55:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:55:26]wFMCommunicate OK [14:55:26]requested_item fd.num is exist - process it [14:55:26]SAM_PROTO_GetFieldsCounters [14:55:26]wFMCommunicate request_size=4 [14:55:26]MH_SAM_APDU [14:55:26]CAPDU: 80 13 00 00 [14:55:26]Write to MH i2c: E2 08 00 C3 46 80 13 00 00 00 00 00 00 85 [14:55:26]Write i2c OK [14:55:26]MH_I2C_Read... [14:55:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:26]Read from MH i2c: E2 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: E2 62 00 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: E2 62 00 C3 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 AF 7B 03 00 0E 04 04 00 17 02 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 B5 [14:55:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 AF 7B 03 00 0E 04 04 00 17 02 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 [14:55:26]wFMCommunicate OK [14:55:26]SAM_PROTO_GetFieldsCounters done [14:55:26]requested_item shift.num is exist - process it [14:55:26]requested_item shift.opened is exist - process it [14:55:26]req_shift_opened [14:55:26]FM_GetShiftState [14:55:26]SAM_PROTO_GetShiftState [14:55:26]wFMCommunicate request_size=4 [14:55:26]MH_SAM_APDU [14:55:26]CAPDU: 80 13 01 00 [14:55:26]Write to MH i2c: E2 08 00 C4 46 80 13 01 00 00 00 00 00 87 [14:55:26]Write i2c OK [14:55:26]MH_I2C_Read... [14:55:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:26]Read from MH i2c: E2 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: E2 0E 00 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: E2 0E 00 C4 46 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 4E [14:55:26]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:55:26]wFMCommunicate OK [14:55:26]SAM_PROTO_GetShiftState done [14:55:26]FM_GetShiftState done [14:55:26]req_shift_opened done [14:55:26]requested_item shift.open_date is exist - process it [14:55:26]req_shift_open_date [14:55:26]req_shift_open_date done [14:55:26]produce_requested_data done [14:55:26]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228271,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [14:55:26]process_action_free close_receipt [14:55:26]json_value_free [14:55:26]json_value_free done [14:55:26]process_json_proto returns [14:55:26]Send response to host [14:55:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228271,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [14:55:26]free response buf [14:55:26]execute_script done [14:55:26]execute_script returns [14:55:26]free content buf [14:55:26]Sock 9.Close socket [14:55:26]Sock 9.Thread stoped [14:55:30]OFD Sender: No OFD packet to send [14:55:35]OFD Sender: No OFD packet to send [14:55:40]OFD Sender: No OFD packet to send [14:55:45]OFD Sender: No OFD packet to send [14:55:50]OFD Sender: No OFD packet to send [14:55:55]OFD Sender: No OFD packet to send [14:56:00]OFD Sender: No OFD packet to send [14:56:05]OFD Sender: No OFD packet to send [14:56:10]OFD Sender: No OFD packet to send [14:56:15]OFD Sender: No OFD packet to send [14:56:20]OFD Sender: No OFD packet to send [14:56:25]OFD Sender: No OFD packet to send [14:56:30]OFD Sender: No OFD packet to send [14:56:35]OFD Sender: No OFD packet to send [14:56:40]OFD Sender: No OFD packet to send [14:56:45]OFD Sender: No OFD packet to send [14:56:50]OFD Sender: No OFD packet to send [14:56:55]OFD Sender: No OFD packet to send [14:57:00]OFD Sender: No OFD packet to send [14:57:05]OFD Sender: No OFD packet to send [14:57:10]OFD Sender: No OFD packet to send [14:57:15]OFD Sender: No OFD packet to send [14:57:20]OFD Sender: No OFD packet to send [14:57:25]OFD Sender: No OFD packet to send [14:57:30]OFD Sender: No OFD packet to send [14:57:35]OFD Sender: No OFD packet to send [14:57:40]OFD Sender: No OFD packet to send [14:57:45]OFD Sender: No OFD packet to send [14:57:50]OFD Sender: No OFD packet to send [14:57:55]OFD Sender: No OFD packet to send [14:58:00]OFD Sender: No OFD packet to send [14:58:05]OFD Sender: No OFD packet to send [14:58:10]OFD Sender: No OFD packet to send [14:58:15]OFD Sender: No OFD packet to send [14:58:20]OFD Sender: No OFD packet to send [14:58:25]OFD Sender: No OFD packet to send [14:58:30]OFD Sender: No OFD packet to send [14:58:35]OFD Sender: No OFD packet to send [14:58:40]OFD Sender: No OFD packet to send [14:58:45]OFD Sender: No OFD packet to send [14:58:50]OFD Sender: No OFD packet to send [14:58:55]OFD Sender: No OFD packet to send [14:59:00]OFD Sender: No OFD packet to send [14:59:05]OFD Sender: No OFD packet to send [14:59:10]OFD Sender: No OFD packet to send [14:59:15]OFD Sender: No OFD packet to send [14:59:20]OFD Sender: No OFD packet to send [14:59:25]OFD Sender: No OFD packet to send [14:59:30]OFD Sender: No OFD packet to send [14:59:35]OFD Sender: No OFD packet to send [14:59:36]accept exits with 7 [14:59:36]New connection [14:59:36]New thread 3067137380 created [14:59:36]Thread 3066994020 joined [14:59:36]Waiting for new connection... [14:59:36] Sock 7.Parse request [14:59:36]Sock 7.Check first char [14:59:36]Sock 7.First char is OK [14:59:36]request: POST /json_proto HTTP/1.0 [14:59:36]Method: POST [14:59:36]URL: /json_proto [14:59:36]Method is POST - this is cgi request [14:59:36]url: /json_proto [14:59:36]query_string will be loaded in cgi processing [14:59:36]execute_cgi json_proto POST (null) [14:59:36]execute_cgi path=json_proto method=POST [14:59:36]POST find Content-Length [14:59:36]Host: 172.17.44.195:8080 [14:59:36]Content-Length: 680 [14:59:36]Content-Type: application/json [14:59:36] [14:59:36]POST finish read [14:59:36]Found Content-Length = 680 [14:59:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964749", "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" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [14:59:36]execute_script... [14:59:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964749", "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" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [14:59:36]POST & json_proto [14:59:36]process_json_proto [14:59:36]json parsed OK: [14:59:36]protocol is kg_v1.0 [14:59:36]action value=close_receipt [14:59:36]process_action close_receipt [14:59:36]cmd_close_receipt [14:59:36]MH_GetDate [14:59:36]Write to MH i2c: F0 00 00 C5 46 FA [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: F0 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: F0 09 00 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: F0 09 00 C5 46 00 DC BD 17 67 82 C9 CF 66 9A [14:59:36]GetLastDocTimeStamp 1729608927 [14:59:36]current date 1729609180 [14:59:36]FM_GetShiftState [14:59:36]SAM_PROTO_GetShiftState [14:59:36]wFMCommunicate request_size=4 [14:59:36]MH_SAM_APDU [14:59:36]CAPDU: 80 13 01 00 [14:59:36]Write to MH i2c: E2 08 00 C6 46 80 13 01 00 00 00 00 00 89 [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:36]Read from MH i2c: E2 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 0E 00 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 0E 00 C6 46 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 50 [14:59:36]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:59:36]wFMCommunicate OK [14:59:36]SAM_PROTO_GetShiftState done [14:59:36]FM_GetShiftState done [14:59:36]opened in 1729555538 [14:59:36]opened+sec_in_day 1729641938 [14:59:36]quantity*price = 150037 [14:59:36]sum+1 = 150039 [14:59:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 236 22.10.2024 14:59 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228272 ФПД: 127306052987732 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145941&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228272&fm=127306052987732&tin=02508201610067®Number=0000000000091685&sum=150000 [14:59:37]StoreToDocumentArchive [14:59:37]shift 535 fd 228272 [14:59:37]save to /storage/0535/doc_00228272 [14:59:37]save last doc name /storage/0535/doc_00228272 to /storage/kkm_last_doc_name [14:59:37]save OK [14:59:37]Clear old archive folders... [14:59:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:59:37]tlvbuf is 008E74B0 [14:59:37]SAM_PROTO_ClearQueue [14:59:37]wFMCommunicate request_size=4 [14:59:37]MH_SAM_APDU [14:59:37]CAPDU: 80 09 00 00 [14:59:37]Write to MH i2c: E2 08 00 D3 46 80 09 00 00 00 00 00 00 8B [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:37]Read from MH i2c: E2 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 03 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 03 00 D3 46 00 90 00 8D [14:59:37]RAPDU: 90 00 [14:59:37]wFMCommunicate OK [14:59:37]SAM_PROTO_ClearQueue done [14:59:37]KKMCreateOFDPacket [14:59:37]OFDProtocolAddRootSTLVToBuf [14:59:37]FM_MakeSignedData [14:59:37]FM_MakeSignedData [14:59:37]SAM_PROTO_SignData [14:59:37]wFMCommunicate request_size=4 [14:59:37]MH_SAM_APDU [14:59:37]CAPDU: 80 0D 01 02 [14:59:37]Write to MH i2c: E2 08 00 D4 46 80 0D 01 02 00 00 00 00 93 [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:37]Read from MH i2c: E2 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 03 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 03 00 D4 46 00 90 00 8E [14:59:37]RAPDU: 90 00 [14:59:37]wFMCommunicate OK [14:59:37]wFMCommunicate request_size=255 [14:59:37]MH_SAM_APDU [14:59:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 EC 00 00 00 F4 03 04 00 DD BD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B0 7B 03 00 35 04 06 00 73 C8 C0 10 [14:59:37]Write to MH i2c: E2 02 01 D5 46 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 EC 00 00 00 F4 03 04 00 DD BD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B0 7B 03 00 35 04 06 00 73 C8 C0 10 00 00 ED [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:37]Read from MH i2c: E2 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 03 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 03 00 D5 46 00 90 00 8F [14:59:37]RAPDU: 90 00 [14:59:37]wFMCommunicate OK [14:59:37]wFMCommunicate request_size=7 [14:59:37]MH_SAM_APDU [14:59:37]CAPDU: 80 0D 02 02 02 EB 54 [14:59:37]Write to MH i2c: E2 0A 00 D6 46 80 0D 02 02 02 00 EB 54 00 00 D9 [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:37]Read from MH i2c: E2 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 03 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 03 00 D6 46 00 90 00 90 [14:59:37]RAPDU: 90 00 [14:59:37]wFMCommunicate OK [14:59:37]wFMCommunicate request_size=4 [14:59:37]MH_SAM_APDU [14:59:37]CAPDU: 80 0D 03 02 [14:59:37]Write to MH i2c: E2 08 00 D7 46 80 0D 03 02 00 00 00 00 98 [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:38]Read from MH i2c: E2 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: E2 0B 00 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: E2 0B 00 D7 46 00 BE 83 6C 9A 2D 7C D3 F4 90 00 50 [14:59:38]RAPDU: BE 83 6C 9A 2D 7C D3 F4 90 00 [14:59:38]wFMCommunicate OK [14:59:38]SAM_PROTO_SignData done [14:59:38]FM_MakeSignedData done [14:59:38]CreateOFDProtocolMessage [14:59:38]wFMCommunicate request_size=4 [14:59:38]MH_SAM_APDU [14:59:38]CAPDU: 80 11 00 00 [14:59:38]Write to MH i2c: E2 08 00 D8 46 80 11 00 00 00 00 00 00 98 [14:59:38]Write i2c OK [14:59:38]MH_I2C_Read... [14:59:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:38]Read from MH i2c: E2 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: E2 17 00 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: E2 17 00 D8 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 EF [14:59:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:59:38]wFMCommunicate OK [14:59:38]CreateOFDProtocolMessage done [14:59:38]OFDSenderStorePacket 228272 [14:59:38]StoreOFDPacket docnum=228272 [14:59:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 CE 85 04 01 6F 17 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 EC 00 00 00 F4 03 04 00 DD BD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B0 7B 03 00 35 04 06 00 73 C8 C0 10 EB 54 BE 83 6C 9A 2D 7C D3 F4 [14:59:38]CheckFolder [14:59:38]dirname=/storage/ofd_packets [14:59:38]CheckFolder done [14:59:38]ProducePacketName [14:59:38]name=ofd_packets/00228272 [14:59:38]NVStorageSaveData ofd_packets/00228272 [14:59:38]File name is /storage/ofd_packets/00228272 [14:59:38]Write 298 bytes [14:59:38]NVStorageSaveData done [14:59:38]OFDSenderStorePacket done [14:59:38]KKMCreateOFDPacket done [14:59:38]NVStorageSaveData kkm_last_timestamp [14:59:38]File name is /storage/kkm_last_timestamp [14:59:38]Write 4 bytes [14:59:38]NVStorageSaveData done [14:59:38]ExternCall_PrintAddStr [14:59:38]wPrintStart [14:59:38]Write to MH i2c: 01 00 00 D9 46 1F [14:59:38]Write i2c OK [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: 01 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: 01 07 00 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: 01 07 00 D9 46 00 00 00 00 00 FF 0F 34 [14:59:38]RasterBufferAndPrint [14:59:38]line Счет N : (1)1964749 [14:59:38]line ИНН: 02508201610067 [14:59:38]line Контрольно-Кассовый Чек [14:59:38]line ПРОДАЖА [14:59:38]line ТРК (МРК, ГНК) : 11 [14:59:38]line Товар: 2710194210 [14:59:38]line ДТ-К-5 [14:59:38]line 19.690 * 76.20 [14:59:38]line = 1500.38 [14:59:38]line НДС 12% НСП 1% [14:59:38]line > о реализуемом товаре [14:59:38]line ОКРУГЛЕНИЕ: -0.38 [14:59:38]line ИТОГО: 1500.00 [14:59:38]line Внесено: 1500.00 [14:59:38]line СДАЧА: 0.00 [14:59:38]line НСП 1% : 13.28 [14:59:38]line НДС 12% : 159.33 [14:59:38]line Наличными: 1500.00 [14:59:38]line Безнал.: 0.00 [14:59:38]line Место: АЗС № 133 "Партнер Нефть" [14:59:38]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [14:59:38]line СНО: Общий режим [14:59:38]line Чек 236 22.10.2024 14:59 [14:59:38]line Смена: 535 ФФД: 1.0 [14:59:38]line ЗНМ: 0300000091 [14:59:38]line РНМ: 0000000000091685 [14:59:38]line Версия ККМ: 001 [14:59:38]line ФМ: 0000000000871839 [14:59:38]line ФД: 228272 [14:59:38]line ФПД: 127306052987732 [14:59:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145941&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228272&fm=127306052987732&tin=02508201610067®Number=0000000000091685&sum=150000 [14:59:38]OFD Sender: Processing packet 228272 [packets to send 38, broken 37] [14:59:38]ProducePacketName [14:59:38]name=ofd_packets/00228272 [14:59:38]OFD Sender: To server: pG, [14:59:38]CommunicateWithHost lk.salyk.kg:30040 [14:59:38]ConnectInit lk.salyk.kg [14:59:38]written 0, free lines is 4095 [14:59:38]Connected sock=10 [14:59:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 CE 85 04 01 6F 17 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 EC 00 00 00 F4 03 04 00 DD BD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B0 7B 03 00 35 04 06 00 73 C8 C0 10 EB 54 BE 83 6C 9A 2D 7C D3 F4 [14:59:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 9D 5B 47 00 10 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 38 37 31 38 33 39 10 04 04 00 B0 7B 03 00 F4 03 04 00 D5 68 17 67 B6 04 01 00 00 4B 9A 69 A6 EC EE A6 F5 [14:59:38]CommunicateWithHost err = 0 [14:59:38]CheckOFDResponse [14:59:38]1017 (14) - 77093643461234 [14:59:38]1041 (16) - 0000000000871839 [14:59:38]1040 (4) - 228272 [14:59:38]1012 (4) - 22.10.2024 08:56 [14:59:38]1206 (1) - 0 [14:59:38]OFD Sender: Remove packet 228272 [14:59:38]ProducePacketName [14:59:38]name=ofd_packets/00228272 [14:59:38]NVStorageDeleteData [14:59:38]Write to MH i2c: 01 00 00 03 47 4A [14:59:38]Write i2c OK [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: 01 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: 01 07 00 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: 01 07 00 03 47 00 00 00 00 00 C5 0C 22 [14:59:38]RasterBufferAndPrint [14:59:38]line [14:59:38]line [14:59:38]line [14:59:38]line [14:59:38]line [14:59:38]written 0, free lines is 3275 [14:59:38]MH_Cut [14:59:38]Write to MH i2c: D1 01 00 0A 47 01 23 [14:59:38]Write i2c OK [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: D1 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: D1 01 00 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: D1 01 00 0A 47 00 22 [14:59:38]Write to MH i2c: 01 00 00 0B 47 52 [14:59:38]Write i2c OK [14:59:38]MH_I2C_Read... [14:59:39]OFD Sender: No OFD packet to send [14:59:39]*** Cut start [14:59:39]*** Partial cut [14:59:39]*** CUTSNS_PIN = 1 [14:59:39]*** CUTSNS_PIN = 0 [14:59:40]*** Brake cut motor [14:59:40]Read from MH i2c: 01 [14:59:40]MH_I2C_Read... [14:59:40]*** Stop cut motor [14:59:40]*** Cut end [14:59:40]Read from MH i2c: 01 07 00 [14:59:40]MH_I2C_Read... [14:59:40]Read from MH i2c: 01 07 00 0B 47 00 00 00 00 00 FF 0F 67 [14:59:40]process_action close_receipt done [14:59:40]requested_data is exist [14:59:40]produce_requested_data [14:59:40]requested_item fm.sn is exist - process it [14:59:40]wFMCommunicate request_size=4 [14:59:40]MH_SAM_APDU [14:59:40]CAPDU: 80 11 00 00 [14:59:40]Write to MH i2c: E2 08 00 0C 47 80 11 00 00 00 00 00 00 CD [14:59:40]Write i2c OK [14:59:40]MH_I2C_Read... [14:59:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:40]Read from MH i2c: E2 [14:59:40]MH_I2C_Read... [14:59:40]Read from MH i2c: E2 17 00 [14:59:40]MH_I2C_Read... [14:59:40]Read from MH i2c: E2 17 00 0C 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 24 [14:59:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:59:40]wFMCommunicate OK [14:59:40]requested_item fd.num is exist - process it [14:59:40]SAM_PROTO_GetFieldsCounters [14:59:40]wFMCommunicate request_size=4 [14:59:40]MH_SAM_APDU [14:59:40]CAPDU: 80 13 00 00 [14:59:40]Write to MH i2c: E2 08 00 0D 47 80 13 00 00 00 00 00 00 D0 [14:59:40]Write i2c OK [14:59:40]MH_I2C_Read... [14:59:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:40]Read from MH i2c: E2 [14:59:40]MH_I2C_Read... [14:59:40]Read from MH i2c: E2 62 00 [14:59:40]MH_I2C_Read... [14:59:40]Read from MH i2c: E2 62 00 0D 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B0 7B 03 00 0E 04 04 00 17 02 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 04 [14:59:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B0 7B 03 00 0E 04 04 00 17 02 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 [14:59:40]wFMCommunicate OK [14:59:40]SAM_PROTO_GetFieldsCounters done [14:59:40]requested_item shift.num is exist - process it [14:59:40]requested_item shift.opened is exist - process it [14:59:40]req_shift_opened [14:59:40]FM_GetShiftState [14:59:40]SAM_PROTO_GetShiftState [14:59:40]wFMCommunicate request_size=4 [14:59:40]MH_SAM_APDU [14:59:40]CAPDU: 80 13 01 00 [14:59:40]Write to MH i2c: E2 08 00 0E 47 80 13 01 00 00 00 00 00 D2 [14:59:40]Write i2c OK [14:59:40]MH_I2C_Read... [14:59:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:40]Read from MH i2c: E2 [14:59:40]MH_I2C_Read... [14:59:40]Read from MH i2c: E2 0E 00 [14:59:40]MH_I2C_Read... [14:59:40]Read from MH i2c: E2 0E 00 0E 47 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 99 [14:59:40]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:59:40]wFMCommunicate OK [14:59:40]SAM_PROTO_GetShiftState done [14:59:40]FM_GetShiftState done [14:59:40]req_shift_opened done [14:59:40]requested_item shift.open_date is exist - process it [14:59:40]req_shift_open_date [14:59:40]req_shift_open_date done [14:59:40]produce_requested_data done [14:59:40]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228272,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [14:59:40]process_action_free close_receipt [14:59:40]json_value_free [14:59:40]json_value_free done [14:59:40]process_json_proto returns [14:59:40]Send response to host [14:59:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228272,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [14:59:40]free response buf [14:59:40]execute_script done [14:59:40]execute_script returns [14:59:40]free content buf [14:59:40]Sock 7.Close socket [14:59:40]Sock 7.Thread stoped [14:59:44]OFD Sender: No OFD packet to send [14:59:49]OFD Sender: No OFD packet to send [14:59:54]OFD Sender: No OFD packet to send [14:59:59]accept exits with 9 [14:59:59]New connection [14:59:59]New thread 3066994020 created [14:59:59]Thread 3067137380 joined [14:59:59]Waiting for new connection... [14:59:59] Sock 9.Parse request [14:59:59]Sock 9.Check first char [14:59:59]Sock 9.First char is OK [14:59:59]request: POST /json_proto HTTP/1.0 [14:59:59]Method: POST [14:59:59]URL: /json_proto [14:59:59]Method is POST - this is cgi request [14:59:59]url: /json_proto [14:59:59]query_string will be loaded in cgi processing [14:59:59]execute_cgi json_proto POST (null) [14:59:59]execute_cgi path=json_proto method=POST [14:59:59]POST find Content-Length [14:59:59]Host: 172.17.44.195:8080 [14:59:59]Content-Length: 659 [14:59:59]Content-Type: application/json [14:59:59] [14:59:59]POST finish read [14:59:59]Found Content-Length = 659 [14:59:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 3.810, "sum" : 260.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:59]execute_script... [14:59: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)1964750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 3.810, "sum" : 260.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:59]POST & json_proto [14:59:59]process_json_proto [14:59:59]json parsed OK: [14:59:59]protocol is kg_v1.0 [14:59:59]action value=close_receipt [14:59:59]process_action close_receipt [14:59:59]cmd_close_receipt [14:59:59]MH_GetDate [14:59:59]Write to MH i2c: F0 00 00 0F 47 45 [14:59:59]Write i2c OK [14:59:59]MH_I2C_Read... [14:59:59]Read from MH i2c: F0 [14:59:59]MH_I2C_Read... [14:59:59]Read from MH i2c: F0 09 00 [14:59:59]MH_I2C_Read... [14:59:59]Read from MH i2c: F0 09 00 0F 47 00 F3 BD 17 67 82 C9 CF 66 FC [14:59:59]GetLastDocTimeStamp 1729609181 [14:59:59]current date 1729609203 [14:59:59]FM_GetShiftState [14:59:59]SAM_PROTO_GetShiftState [14:59:59]wFMCommunicate request_size=4 [14:59:59]MH_SAM_APDU [14:59:59]CAPDU: 80 13 01 00 [14:59:59]Write to MH i2c: E2 08 00 10 47 80 13 01 00 00 00 00 00 D4 [14:59:59]Write i2c OK [14:59:59]MH_I2C_Read... [14:59:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:59]Read from MH i2c: E2 [14:59:59]MH_I2C_Read... [14:59:59]Read from MH i2c: E2 0E 00 [14:59:59]MH_I2C_Read... [14:59:59]Read from MH i2c: E2 0E 00 10 47 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 9B [14:59:59]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [14:59:59]wFMCommunicate OK [14:59:59]SAM_PROTO_GetShiftState done [14:59:59]FM_GetShiftState done [14:59:59]opened in 1729555538 [14:59:59]opened+sec_in_day 1729641938 [14:59:59]quantity*price = 26060 [14:59:59]sum+1 = 26061 [14:59:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 260.00 Внесено: 260.00 СДАЧА: 0.00 НСП 1% : 2.31 НДС 12% : 27.67 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 237 22.10.2024 15:00 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228273 ФПД: 54920405352768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T150003&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228273&fm=54920405352768&tin=02508201610067®Number=0000000000091685&sum=26000 [15:00:00]StoreToDocumentArchive [15:00:00]shift 535 fd 228273 [15:00:00]save to /storage/0535/doc_00228273 [15:00:00]save last doc name /storage/0535/doc_00228273 to /storage/kkm_last_doc_name [15:00:00]save OK [15:00:00]Clear old archive folders... [15:00:00]ProcessDocumentItem done err = 0, tmpTLVsize=244 [15:00:00]tlvbuf is 008AB840 [15:00:00]SAM_PROTO_ClearQueue [15:00:00]wFMCommunicate request_size=4 [15:00:00]MH_SAM_APDU [15:00:00]CAPDU: 80 09 00 00 [15:00:00]Write to MH i2c: E2 08 00 1D 47 80 09 00 00 00 00 00 00 D6 [15:00:00]Write i2c OK [15:00:00]MH_I2C_Read... [15:00:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:00:00]Read from MH i2c: E2 [15:00:00]MH_I2C_Read... [15:00:00]Read from MH i2c: E2 03 00 [15:00:00]MH_I2C_Read... [15:00:00]Read from MH i2c: E2 03 00 1D 47 00 90 00 D8 [15:00:00]RAPDU: 90 00 [15:00:00]wFMCommunicate OK [15:00:00]SAM_PROTO_ClearQueue done [15:00:00]KKMCreateOFDPacket [15:00:00]OFDProtocolAddRootSTLVToBuf [15:00:00]FM_MakeSignedData [15:00:00]FM_MakeSignedData [15:00:00]SAM_PROTO_SignData [15:00:00]wFMCommunicate request_size=4 [15:00:00]MH_SAM_APDU [15:00:00]CAPDU: 80 0D 01 02 [15:00:00]Write to MH i2c: E2 08 00 1E 47 80 0D 01 02 00 00 00 00 DE [15:00:00]Write i2c OK [15:00:00]MH_I2C_Read... [15:00:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:00:00]Read from MH i2c: E2 [15:00:00]MH_I2C_Read... [15:00:00]Read from MH i2c: E2 03 00 [15:00:00]MH_I2C_Read... [15:00:00]Read from MH i2c: E2 03 00 1E 47 00 90 00 D9 [15:00:00]RAPDU: 90 00 [15:00:00]wFMCommunicate OK [15:00:00]wFMCommunicate request_size=253 [15:00:00]MH_SAM_APDU [15:00:00]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 E2 0E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 CC 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 F3 BD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B1 7B 03 00 35 04 06 00 31 F3 27 40 81 40 [15:00:00]Write to MH i2c: E2 00 01 1F 47 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 E2 0E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 CC 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 F3 BD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B1 7B 03 00 35 04 06 00 31 F3 27 40 81 40 00 00 EA [15:00:00]Write i2c OK [15:00:00]MH_I2C_Read... [15:00:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:00]Read from MH i2c: E2 [15:00:00]MH_I2C_Read... [15:00:00]Read from MH i2c: E2 03 00 [15:00:00]MH_I2C_Read... [15:00:00]Read from MH i2c: E2 03 00 1F 47 00 90 00 DA [15:00:00]RAPDU: 90 00 [15:00:00]wFMCommunicate OK [15:00:00]wFMCommunicate request_size=4 [15:00:00]MH_SAM_APDU [15:00:00]CAPDU: 80 0D 03 02 [15:00:00]Write to MH i2c: E2 08 00 20 47 80 0D 03 02 00 00 00 00 E2 [15:00:00]Write i2c OK [15:00:00]MH_I2C_Read... [15:00:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:00:00]Read from MH i2c: E2 [15:00:00]MH_I2C_Read... [15:00:00]Read from MH i2c: E2 0B 00 [15:00:00]MH_I2C_Read... [15:00:00]Read from MH i2c: E2 0B 00 20 47 00 2D 6F 33 CB 56 48 8C 6B 90 00 12 [15:00:00]RAPDU: 2D 6F 33 CB 56 48 8C 6B 90 00 [15:00:00]wFMCommunicate OK [15:00:00]SAM_PROTO_SignData done [15:00:00]FM_MakeSignedData done [15:00:00]CreateOFDProtocolMessage [15:00:00]wFMCommunicate request_size=4 [15:00:00]MH_SAM_APDU [15:00:00]CAPDU: 80 11 00 00 [15:00:00]Write to MH i2c: E2 08 00 21 47 80 11 00 00 00 00 00 00 E2 [15:00:00]Write i2c OK [15:00:00]MH_I2C_Read... [15:00:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:00]Read from MH i2c: E2 [15:00:00]MH_I2C_Read... [15:00:00]Read from MH i2c: E2 17 00 [15:00:00]MH_I2C_Read... [15:00:00]Read from MH i2c: E2 17 00 21 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 39 [15:00:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:00:00]wFMCommunicate OK [15:00:00]CreateOFDProtocolMessage done [15:00:00]OFDSenderStorePacket 228273 [15:00:00]StoreOFDPacket docnum=228273 [15:00:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 D1 16 00 01 D6 0F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 E2 0E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 CC 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 F3 BD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B1 7B 03 00 35 04 06 00 31 F3 27 40 81 40 2D 6F 33 CB 56 48 8C 6B [15:00:00]CheckFolder [15:00:00]dirname=/storage/ofd_packets [15:00:00]CheckFolder done [15:00:00]ProducePacketName [15:00:00]name=ofd_packets/00228273 [15:00:00]NVStorageSaveData ofd_packets/00228273 [15:00:00]File name is /storage/ofd_packets/00228273 [15:00:00]Write 294 bytes [15:00:00]NVStorageSaveData done [15:00:00]OFDSenderStorePacket done [15:00:00]KKMCreateOFDPacket done [15:00:00]NVStorageSaveData kkm_last_timestamp [15:00:00]File name is /storage/kkm_last_timestamp [15:00:00]Write 4 bytes [15:00:00]NVStorageSaveData done [15:00:00]ExternCall_PrintAddStr [15:00:00]wPrintStart [15:00:00]Write to MH i2c: 01 00 00 22 47 69 [15:00:00]Write i2c OK [15:00:00]MH_I2C_Read... [15:00:00]Read from MH i2c: 01 [15:00:00]MH_I2C_Read... [15:00:00]Read from MH i2c: 01 07 00 [15:00:00]MH_I2C_Read... [15:00:00]Read from MH i2c: 01 07 00 22 47 00 00 00 00 00 FF 0F 7E [15:00:00]RasterBufferAndPrint [15:00:00]line Счет N : (1)1964750 [15:00:00]line ИНН: 02508201610067 [15:00:00]line Контрольно-Кассовый Чек [15:00:00]line ПРОДАЖА [15:00:00]line ТРК (МРК, ГНК) : 32 [15:00:00]line Товар: 2710124130 [15:00:00]line SU-92 [15:00:00]line 3.810 * 68.40 [15:00:00]line = 260.60 [15:00:00]line НДС 12% НСП 1% [15:00:00]line > о реализуемом товаре [15:00:00]line ОКРУГЛЕНИЕ: -0.60 [15:00:00]line ИТОГО: 260.00 [15:00:00]line Внесено: 260.00 [15:00:00]line СДАЧА: 0.00 [15:00:00]line НСП 1% : 2.31 [15:00:00]line НДС 12% : 27.67 [15:00:00]line Наличными: 260.00 [15:00:00]line Безнал.: 0.00 [15:00:00]line Место: АЗС № 133 "Партнер Нефть" [15:00:00]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:00:00]line СНО: Общий режим [15:00:00]line Чек 237 22.10.2024 15:00 [15:00:00]line Смена: 535 ФФД: 1.0 [15:00:00]line ЗНМ: 0300000091 [15:00:00]line РНМ: 0000000000091685 [15:00:00]line Версия ККМ: 001 [15:00:00]line ФМ: 0000000000871839 [15:00:00]line ФД: 228273 [15:00:00]line ФПД: 54920405352768 [15:00:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T150003&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228273&fm=54920405352768&tin=02508201610067®Number=0000000000091685&sum=26000 [15:00:01]OFD Sender: Processing packet 228273 [packets to send 38, broken 37] [15:00:01]ProducePacketName [15:00:01]name=ofd_packets/00228273 [15:00:01]OFD Sender: To server: pG, [15:00:01]CommunicateWithHost lk.salyk.kg:30040 [15:00:01]ConnectInit lk.salyk.kg [15:00:01]written 0, free lines is 4095 [15:00:01]Connected sock=10 [15:00:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 D1 16 00 01 D6 0F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 E2 0E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 CC 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 F3 BD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B1 7B 03 00 35 04 06 00 31 F3 27 40 81 40 2D 6F 33 CB 56 48 8C 6B [15:00:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 00 F5 47 00 AE 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B1 7B 03 00 F4 03 04 00 EB 68 17 67 B6 04 01 00 00 4D 7A C7 E2 8A D6 80 85 [15:00:01]CommunicateWithHost err = 0 [15:00:01]CheckOFDResponse [15:00:01]1017 (14) - 77093643461234 [15:00:01]1041 (16) - 0000000000871839 [15:00:01]1040 (4) - 228273 [15:00:01]1012 (4) - 22.10.2024 08:57 [15:00:01]1206 (1) - 0 [15:00:01]OFD Sender: Remove packet 228273 [15:00:01]ProducePacketName [15:00:01]name=ofd_packets/00228273 [15:00:01]NVStorageDeleteData [15:00:01]Write to MH i2c: 01 00 00 4C 47 93 [15:00:01]Write i2c OK [15:00:01]MH_I2C_Read... [15:00:01]Read from MH i2c: 01 [15:00:01]MH_I2C_Read... [15:00:01]Read from MH i2c: 01 07 00 [15:00:01]MH_I2C_Read... [15:00:01]Read from MH i2c: 01 07 00 4C 47 00 00 00 00 00 C0 0C 66 [15:00:01]RasterBufferAndPrint [15:00:01]line [15:00:01]line [15:00:01]line [15:00:01]line [15:00:01]line [15:00:01]written 0, free lines is 3268 [15:00:01]MH_Cut [15:00:01]Write to MH i2c: D1 01 00 53 47 01 6C [15:00:01]Write i2c OK [15:00:01]MH_I2C_Read... [15:00:01]Read from MH i2c: D1 [15:00:01]MH_I2C_Read... [15:00:01]Read from MH i2c: D1 01 00 [15:00:01]MH_I2C_Read... [15:00:01]Read from MH i2c: D1 01 00 53 47 00 6B [15:00:01]Write to MH i2c: 01 00 00 54 47 9B [15:00:01]Write i2c OK [15:00:01]MH_I2C_Read... [15:00:01]OFD Sender: No OFD packet to send [15:00:02]*** Cut start [15:00:02]*** Partial cut [15:00:02]*** CUTSNS_PIN = 1 [15:00:02]*** CUTSNS_PIN = 0 [15:00:02]*** Brake cut motor [15:00:02]Read from MH i2c: 01 [15:00:02]MH_I2C_Read... [15:00:02]*** Stop cut motor [15:00:02]*** Cut end [15:00:02]Read from MH i2c: 01 07 00 [15:00:02]MH_I2C_Read... [15:00:02]Read from MH i2c: 01 07 00 54 47 00 00 00 00 00 FF 0F B0 [15:00:02]process_action close_receipt done [15:00:02]requested_data is exist [15:00:02]produce_requested_data [15:00:02]requested_item fm.sn is exist - process it [15:00:02]wFMCommunicate request_size=4 [15:00:02]MH_SAM_APDU [15:00:02]CAPDU: 80 11 00 00 [15:00:02]Write to MH i2c: E2 08 00 55 47 80 11 00 00 00 00 00 00 16 [15:00:03]Write i2c OK [15:00:03]MH_I2C_Read... [15:00:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:03]Read from MH i2c: E2 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 17 00 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 17 00 55 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6D [15:00:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:00:03]wFMCommunicate OK [15:00:03]requested_item fd.num is exist - process it [15:00:03]SAM_PROTO_GetFieldsCounters [15:00:03]wFMCommunicate request_size=4 [15:00:03]MH_SAM_APDU [15:00:03]CAPDU: 80 13 00 00 [15:00:03]Write to MH i2c: E2 08 00 56 47 80 13 00 00 00 00 00 00 19 [15:00:03]Write i2c OK [15:00:03]MH_I2C_Read... [15:00:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:00:03]Read from MH i2c: E2 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 62 00 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 62 00 56 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B1 7B 03 00 0E 04 04 00 17 02 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 51 [15:00:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B1 7B 03 00 0E 04 04 00 17 02 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 [15:00:03]wFMCommunicate OK [15:00:03]SAM_PROTO_GetFieldsCounters done [15:00:03]requested_item shift.num is exist - process it [15:00:03]requested_item shift.opened is exist - process it [15:00:03]req_shift_opened [15:00:03]FM_GetShiftState [15:00:03]SAM_PROTO_GetShiftState [15:00:03]wFMCommunicate request_size=4 [15:00:03]MH_SAM_APDU [15:00:03]CAPDU: 80 13 01 00 [15:00:03]Write to MH i2c: E2 08 00 57 47 80 13 01 00 00 00 00 00 1B [15:00:03]Write i2c OK [15:00:03]MH_I2C_Read... [15:00:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:03]Read from MH i2c: E2 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 0E 00 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 0E 00 57 47 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 E2 [15:00:03]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:00:03]wFMCommunicate OK [15:00:03]SAM_PROTO_GetShiftState done [15:00:03]FM_GetShiftState done [15:00:03]req_shift_opened done [15:00:03]requested_item shift.open_date is exist - process it [15:00:03]req_shift_open_date [15:00:03]req_shift_open_date done [15:00:03]produce_requested_data done [15:00:03]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228273,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:00:03]process_action_free close_receipt [15:00:03]json_value_free [15:00:03]json_value_free done [15:00:03]process_json_proto returns [15:00:03]Send response to host [15:00:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228273,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:00:03]free response buf [15:00:03]execute_script done [15:00:03]execute_script returns [15:00:03]free content buf [15:00:03]Sock 9.Close socket [15:00:03]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [15:01:21]OFD Sender: No OFD packet to send [15:01:26]OFD Sender: No OFD packet to send [15:01:31]OFD Sender: No OFD packet to send [15:01:36]OFD Sender: No OFD packet to send [15:01:41]OFD Sender: No OFD packet to send [15:01:46]OFD Sender: No OFD packet to send [15:01:52]OFD Sender: No OFD packet to send [15:01:57]OFD Sender: No OFD packet to send [15:02:02]OFD Sender: No OFD packet to send [15:02:07]OFD Sender: No OFD packet to send [15:02:12]OFD Sender: No OFD packet to send [15:02:17]OFD Sender: No OFD packet to send [15:02:22]OFD Sender: No OFD packet to send [15:02:27]OFD Sender: No OFD packet to send [15:02:28]accept exits with 7 [15:02:28]New connection [15:02:28]New thread 3067137380 created [15:02:28]Thread 3066994020 joined [15:02:28]Waiting for new connection... [15:02:28] Sock 7.Parse request [15:02:28]Sock 7.Check first char [15:02:28]Sock 7.First char is OK [15:02:28]request: POST /json_proto HTTP/1.0 [15:02:28]Method: POST [15:02:28]URL: /json_proto [15:02:28]Method is POST - this is cgi request [15:02:28]url: /json_proto [15:02:28]query_string will be loaded in cgi processing [15:02:28]execute_cgi json_proto POST (null) [15:02:28]execute_cgi path=json_proto method=POST [15:02:28]POST find Content-Length [15:02:28]Host: 172.17.44.195:8080 [15:02:28]Content-Length: 678 [15:02:28]Content-Type: application/json [15:02:28] [15:02:28]POST finish read [15:02:28]Found Content-Length = 678 [15:02:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "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" ] } } [15:02:28]execute_script... [15:02: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)1964751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "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" ] } } [15:02:28]POST & json_proto [15:02:28]process_json_proto [15:02:28]json parsed OK: [15:02:28]protocol is kg_v1.0 [15:02:28]action value=close_receipt [15:02:28]process_action close_receipt [15:02:28]cmd_close_receipt [15:02:28]MH_GetDate [15:02:28]Write to MH i2c: F0 00 00 58 47 8E [15:02:28]Write i2c OK [15:02:28]MH_I2C_Read... [15:02:28]Read from MH i2c: F0 [15:02:28]MH_I2C_Read... [15:02:28]Read from MH i2c: F0 09 00 [15:02:28]MH_I2C_Read... [15:02:28]Read from MH i2c: F0 09 00 58 47 00 89 BE 17 67 82 C9 CF 66 DC [15:02:28]GetLastDocTimeStamp 1729609203 [15:02:28]current date 1729609353 [15:02:28]FM_GetShiftState [15:02:28]SAM_PROTO_GetShiftState [15:02:28]wFMCommunicate request_size=4 [15:02:28]MH_SAM_APDU [15:02:28]CAPDU: 80 13 01 00 [15:02:28]Write to MH i2c: E2 08 00 59 47 80 13 01 00 00 00 00 00 1D [15:02:28]Write i2c OK [15:02:28]MH_I2C_Read... [15:02:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:28]Read from MH i2c: E2 [15:02:28]MH_I2C_Read... [15:02:28]Read from MH i2c: E2 0E 00 [15:02:28]MH_I2C_Read... [15:02:28]Read from MH i2c: E2 0E 00 59 47 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 E4 [15:02:28]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:02:28]wFMCommunicate OK [15:02:28]SAM_PROTO_GetShiftState done [15:02:28]FM_GetShiftState done [15:02:28]opened in 1729555538 [15:02:28]opened+sec_in_day 1729641938 [15:02:28]quantity*price = 40006 [15:02:28]sum+1 = 40007 [15:02:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 238 22.10.2024 15:02 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228274 ФПД: 110826920250459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T150233&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228274&fm=110826920250459&tin=02508201610067®Number=0000000000091685&sum=40000 [15:02:29]StoreToDocumentArchive [15:02:29]shift 535 fd 228274 [15:02:29]save to /storage/0535/doc_00228274 [15:02:29]save last doc name /storage/0535/doc_00228274 to /storage/kkm_last_doc_name [15:02:29]save OK [15:02:29]Clear old archive folders... [15:02:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:02:29]tlvbuf is 008E7530 [15:02:29]SAM_PROTO_ClearQueue [15:02:29]wFMCommunicate request_size=4 [15:02:29]MH_SAM_APDU [15:02:29]CAPDU: 80 09 00 00 [15:02:29]Write to MH i2c: E2 08 00 66 47 80 09 00 00 00 00 00 00 1F [15:02:29]Write i2c OK [15:02:29]MH_I2C_Read... [15:02:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:02:29]Read from MH i2c: E2 [15:02:29]MH_I2C_Read... [15:02:29]Read from MH i2c: E2 03 00 [15:02:29]MH_I2C_Read... [15:02:29]Read from MH i2c: E2 03 00 66 47 00 90 00 21 [15:02:29]RAPDU: 90 00 [15:02:29]wFMCommunicate OK [15:02:29]SAM_PROTO_ClearQueue done [15:02:29]KKMCreateOFDPacket [15:02:29]OFDProtocolAddRootSTLVToBuf [15:02:29]FM_MakeSignedData [15:02:29]FM_MakeSignedData [15:02:29]SAM_PROTO_SignData [15:02:29]wFMCommunicate request_size=4 [15:02:29]MH_SAM_APDU [15:02:29]CAPDU: 80 0D 01 02 [15:02:29]Write to MH i2c: E2 08 00 67 47 80 0D 01 02 00 00 00 00 27 [15:02:29]Write i2c OK [15:02:29]MH_I2C_Read... [15:02:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:02:29]Read from MH i2c: E2 [15:02:29]MH_I2C_Read... [15:02:29]Read from MH i2c: E2 03 00 [15:02:29]MH_I2C_Read... [15:02:29]Read from MH i2c: E2 03 00 67 47 00 90 00 22 [15:02:29]RAPDU: 90 00 [15:02:29]wFMCommunicate OK [15:02:29]wFMCommunicate request_size=255 [15:02:29]MH_SAM_APDU [15:02: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 EE 00 00 00 F4 03 04 00 89 BE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B2 7B 03 00 35 04 06 00 64 [15:02:29]Write to MH i2c: E2 02 01 68 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 22 1A 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 EE 00 00 00 F4 03 04 00 89 BE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B2 7B 03 00 35 04 06 00 64 00 00 ED [15:02:29]Write i2c OK [15:02:29]MH_I2C_Read... [15:02:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:30]Read from MH i2c: E2 [15:02:30]MH_I2C_Read... [15:02:30]Read from MH i2c: E2 03 00 [15:02:30]MH_I2C_Read... [15:02:30]Read from MH i2c: E2 03 00 68 47 00 90 00 23 [15:02:30]RAPDU: 90 00 [15:02:30]wFMCommunicate OK [15:02:30]wFMCommunicate request_size=10 [15:02:30]MH_SAM_APDU [15:02:30]CAPDU: 80 0D 02 02 05 CB E7 36 8C 5B [15:02:30]Write to MH i2c: E2 0D 00 69 47 80 0D 02 02 05 00 CB E7 36 8C 5B 00 00 03 [15:02:30]Write i2c OK [15:02:30]MH_I2C_Read... [15:02:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:30]Read from MH i2c: E2 [15:02:30]MH_I2C_Read... [15:02:30]Read from MH i2c: E2 03 00 [15:02:30]MH_I2C_Read... [15:02:30]Read from MH i2c: E2 03 00 69 47 00 90 00 24 [15:02:30]RAPDU: 90 00 [15:02:30]wFMCommunicate OK [15:02:30]wFMCommunicate request_size=4 [15:02:30]MH_SAM_APDU [15:02:30]CAPDU: 80 0D 03 02 [15:02:30]Write to MH i2c: E2 08 00 6A 47 80 0D 03 02 00 00 00 00 2C [15:02:30]Write i2c OK [15:02:30]MH_I2C_Read... [15:02:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:02:30]Read from MH i2c: E2 [15:02:30]MH_I2C_Read... [15:02:30]Read from MH i2c: E2 0B 00 [15:02:30]MH_I2C_Read... [15:02:30]Read from MH i2c: E2 0B 00 6A 47 00 1D 89 6B 5C 82 A7 FA 0E 90 00 CB [15:02:30]RAPDU: 1D 89 6B 5C 82 A7 FA 0E 90 00 [15:02:30]wFMCommunicate OK [15:02:30]SAM_PROTO_SignData done [15:02:30]FM_MakeSignedData done [15:02:30]CreateOFDProtocolMessage [15:02:30]wFMCommunicate request_size=4 [15:02:30]MH_SAM_APDU [15:02:30]CAPDU: 80 11 00 00 [15:02:30]Write to MH i2c: E2 08 00 6B 47 80 11 00 00 00 00 00 00 2C [15:02:30]Write i2c OK [15:02:30]MH_I2C_Read... [15:02:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:30]Read from MH i2c: E2 [15:02:30]MH_I2C_Read... [15:02:30]Read from MH i2c: E2 17 00 [15:02:30]MH_I2C_Read... [15:02:30]Read from MH i2c: E2 17 00 6B 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 83 [15:02:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:02:30]wFMCommunicate OK [15:02:30]CreateOFDProtocolMessage done [15:02:30]OFDSenderStorePacket 228274 [15:02:30]StoreOFDPacket docnum=228274 [15:02:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 C6 50 07 01 20 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 EE 00 00 00 F4 03 04 00 89 BE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B2 7B 03 00 35 04 06 00 64 CB E7 36 8C 5B 1D 89 6B 5C 82 A7 FA 0E [15:02:30]CheckFolder [15:02:30]dirname=/storage/ofd_packets [15:02:30]CheckFolder done [15:02:30]ProducePacketName [15:02:30]name=ofd_packets/00228274 [15:02:30]NVStorageSaveData ofd_packets/00228274 [15:02:30]File name is /storage/ofd_packets/00228274 [15:02:30]Write 301 bytes [15:02:30]NVStorageSaveData done [15:02:30]OFDSenderStorePacket done [15:02:30]KKMCreateOFDPacket done [15:02:30]NVStorageSaveData kkm_last_timestamp [15:02:30]File name is /storage/kkm_last_timestamp [15:02:30]Write 4 bytes [15:02:30]NVStorageSaveData done [15:02:30]ExternCall_PrintAddStr [15:02:30]wPrintStart [15:02:30]Write to MH i2c: 01 00 00 6C 47 B3 [15:02:30]Write i2c OK [15:02:30]MH_I2C_Read... [15:02:30]Read from MH i2c: 01 [15:02:30]MH_I2C_Read... [15:02:30]Read from MH i2c: 01 07 00 [15:02:30]MH_I2C_Read... [15:02:30]Read from MH i2c: 01 07 00 6C 47 00 00 00 00 00 FF 0F C8 [15:02:30]RasterBufferAndPrint [15:02:30]line Счет N : (1)1964751 [15:02:30]line ИНН: 02508201610067 [15:02:30]line Контрольно-Кассовый Чек [15:02:30]line ПРОДАЖА [15:02:30]line ТРК (МРК, ГНК) : 33 [15:02:30]line Товар: 2710124130 [15:02:30]line Аи-92-К-5 [15:02:30]line 5.980 * 66.90 [15:02:30]line = 400.06 [15:02:30]line НДС 12% НСП 1% [15:02:30]line > о реализуемом товаре [15:02:30]line ОКРУГЛЕНИЕ: -0.06 [15:02:30]line ИТОГО: 400.00 [15:02:30]line Внесено: 400.00 [15:02:30]line СДАЧА: 0.00 [15:02:30]line НСП 1% : 3.54 [15:02:30]line НДС 12% : 42.48 [15:02:30]line Наличными: 400.00 [15:02:30]line Безнал.: 0.00 [15:02:30]line Место: АЗС № 133 "Партнер Нефть" [15:02:30]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:02:30]line СНО: Общий режим [15:02:30]line Чек 238 22.10.2024 15:02 [15:02:30]line Смена: 535 ФФД: 1.0 [15:02:30]line ЗНМ: 0300000091 [15:02:30]line РНМ: 0000000000091685 [15:02:30]line Версия ККМ: 001 [15:02:30]line ФМ: 0000000000871839 [15:02:30]line ФД: 228274 [15:02:30]line ФПД: 110826920250459 [15:02:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T150233&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228274&fm=110826920250459&tin=02508201610067®Number=0000000000091685&sum=40000 [15:02:30]written 0, free lines is 4095 [15:02:30]OFD Sender: Processing packet 228274 [packets to send 38, broken 37] [15:02:30]ProducePacketName [15:02:30]name=ofd_packets/00228274 [15:02:30]OFD Sender: To server: pG, [15:02:30]CommunicateWithHost lk.salyk.kg:30040 [15:02:30]ConnectInit lk.salyk.kg [15:02:30]Connected sock=10 [15:02:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 C6 50 07 01 20 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 EE 00 00 00 F4 03 04 00 89 BE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B2 7B 03 00 35 04 06 00 64 CB E7 36 8C 5B 1D 89 6B 5C 82 A7 FA 0E [15:02:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 BE 9A 47 00 B8 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B2 7B 03 00 F4 03 04 00 81 69 17 67 B6 04 01 00 00 51 EC 4F 9A 87 05 D1 BB [15:02:30]CommunicateWithHost err = 0 [15:02:30]CheckOFDResponse [15:02:30]1017 (14) - 77093643461234 [15:02:30]1041 (16) - 0000000000871839 [15:02:30]1040 (4) - 228274 [15:02:30]1012 (4) - 22.10.2024 08:59 [15:02:30]1206 (1) - 0 [15:02:30]OFD Sender: Remove packet 228274 [15:02:30]ProducePacketName [15:02:30]name=ofd_packets/00228274 [15:02:30]NVStorageDeleteData [15:02:31]Write to MH i2c: 01 00 00 96 47 DD [15:02:31]Write i2c OK [15:02:31]MH_I2C_Read... [15:02:31]Read from MH i2c: 01 [15:02:31]MH_I2C_Read... [15:02:31]Read from MH i2c: 01 07 00 [15:02:31]MH_I2C_Read... [15:02:31]Read from MH i2c: 01 07 00 96 47 00 00 00 00 00 C0 0C B0 [15:02:31]RasterBufferAndPrint [15:02:31]line [15:02:31]line [15:02:31]line [15:02:31]line [15:02:31]line [15:02:31]written 0, free lines is 3269 [15:02:31]MH_Cut [15:02:31]Write to MH i2c: D1 01 00 9D 47 01 B6 [15:02:31]Write i2c OK [15:02:31]MH_I2C_Read... [15:02:31]Read from MH i2c: D1 [15:02:31]MH_I2C_Read... [15:02:31]Read from MH i2c: D1 01 00 [15:02:31]MH_I2C_Read... [15:02:31]Read from MH i2c: D1 01 00 9D 47 00 B5 [15:02:31]Write to MH i2c: 01 00 00 9E 47 E5 [15:02:31]Write i2c OK [15:02:31]MH_I2C_Read... [15:02:31]OFD Sender: No OFD packet to send [15:02:31]*** Cut start [15:02:31]*** Partial cut [15:02:31]*** CUTSNS_PIN = 1 [15:02:32]*** CUTSNS_PIN = 0 [15:02:32]*** Brake cut motor [15:02:32]Read from MH i2c: 01 [15:02:32]MH_I2C_Read... [15:02:32]*** Stop cut motor [15:02:32]*** Cut end [15:02:32]Read from MH i2c: 01 07 00 [15:02:32]MH_I2C_Read... [15:02:32]Read from MH i2c: 01 07 00 9E 47 00 00 00 00 00 FF 0F FA [15:02:32]process_action close_receipt done [15:02:32]requested_data is exist [15:02:32]produce_requested_data [15:02:32]requested_item fm.sn is exist - process it [15:02:32]wFMCommunicate request_size=4 [15:02:32]MH_SAM_APDU [15:02:32]CAPDU: 80 11 00 00 [15:02:32]Write to MH i2c: E2 08 00 9F 47 80 11 00 00 00 00 00 00 60 [15:02:32]Write i2c OK [15:02:32]MH_I2C_Read... [15:02:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:32]Read from MH i2c: E2 [15:02:32]MH_I2C_Read... [15:02:32]Read from MH i2c: E2 17 00 [15:02:32]MH_I2C_Read... [15:02:32]Read from MH i2c: E2 17 00 9F 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B7 [15:02:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:02:32]wFMCommunicate OK [15:02:32]requested_item fd.num is exist - process it [15:02:32]SAM_PROTO_GetFieldsCounters [15:02:32]wFMCommunicate request_size=4 [15:02:32]MH_SAM_APDU [15:02:32]CAPDU: 80 13 00 00 [15:02:32]Write to MH i2c: E2 08 00 A0 47 80 13 00 00 00 00 00 00 63 [15:02:32]Write i2c OK [15:02:32]MH_I2C_Read... [15:02:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:02:32]Read from MH i2c: E2 [15:02:32]MH_I2C_Read... [15:02:32]Read from MH i2c: E2 62 00 [15:02:32]MH_I2C_Read... [15:02:32]Read from MH i2c: E2 62 00 A0 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B2 7B 03 00 0E 04 04 00 17 02 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 9F [15:02:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B2 7B 03 00 0E 04 04 00 17 02 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 [15:02:32]wFMCommunicate OK [15:02:32]SAM_PROTO_GetFieldsCounters done [15:02:32]requested_item shift.num is exist - process it [15:02:32]requested_item shift.opened is exist - process it [15:02:32]req_shift_opened [15:02:32]FM_GetShiftState [15:02:32]SAM_PROTO_GetShiftState [15:02:32]wFMCommunicate request_size=4 [15:02:32]MH_SAM_APDU [15:02:32]CAPDU: 80 13 01 00 [15:02:32]Write to MH i2c: E2 08 00 A1 47 80 13 01 00 00 00 00 00 65 [15:02:32]Write i2c OK [15:02:32]MH_I2C_Read... [15:02:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:32]Read from MH i2c: E2 [15:02:32]MH_I2C_Read... [15:02:32]Read from MH i2c: E2 0E 00 [15:02:32]MH_I2C_Read... [15:02:32]Read from MH i2c: E2 0E 00 A1 47 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 2C [15:02:32]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:02:32]wFMCommunicate OK [15:02:32]SAM_PROTO_GetShiftState done [15:02:32]FM_GetShiftState done [15:02:32]req_shift_opened done [15:02:32]requested_item shift.open_date is exist - process it [15:02:32]req_shift_open_date [15:02:32]req_shift_open_date done [15:02:32]produce_requested_data done [15:02:32]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228274,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:02:32]process_action_free close_receipt [15:02:32]json_value_free [15:02:32]json_value_free done [15:02:32]process_json_proto returns [15:02:32]Send response to host [15:02:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228274,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:02:32]free response buf [15:02:32]execute_script done [15:02:32]execute_script returns [15:02:32]free content buf [15:02:32]Sock 7.Close socket [15:02:32]Sock 7.Thread stoped [15:02:36]OFD Sender: No OFD packet to send [15:02:41]OFD Sender: No OFD packet to send [15:02:46]OFD Sender: No OFD packet to send [15:02:51]OFD Sender: No OFD packet to send [15:02:56]OFD Sender: No OFD packet to send [15:03:01]OFD Sender: No OFD packet to send [15:03:06]OFD Sender: No OFD packet to send [15:03:11]OFD Sender: No OFD packet to send [15:03:16]OFD Sender: No OFD packet to send [15:03:21]OFD Sender: No OFD packet to send [15:03:26]OFD Sender: No OFD packet to send [15:03:31]OFD Sender: No OFD packet to send [15:03:36]OFD Sender: No OFD packet to send [15:03:41]OFD Sender: No OFD packet to send [15:03:46]OFD Sender: No OFD packet to send [15:03:51]accept exits with 9 [15:03:51]New connection [15:03:51]New thread 3066994020 created [15:03:51]Thread 3067137380 joined [15:03:51]Waiting for new connection... [15:03:51] Sock 9.Parse request [15:03:51]Sock 9.Check first char [15:03:51]Sock 9.First char is OK [15:03:51]request: POST /json_proto HTTP/1.0 [15:03:51]Method: POST [15:03:51]URL: /json_proto [15:03:51]Method is POST - this is cgi request [15:03:51]url: /json_proto [15:03:51]query_string will be loaded in cgi processing [15:03:51]execute_cgi json_proto POST (null) [15:03:51]execute_cgi path=json_proto method=POST [15:03:51]POST find Content-Length [15:03:51]Host: 172.17.44.195:8080 [15:03:51]Content-Length: 678 [15:03:51]Content-Type: application/json [15:03:51] [15:03:51]POST finish read [15:03:51]Found Content-Length = 678 [15:03:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "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" ] } } [15:03:51]execute_script... [15:03:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "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" ] } } [15:03:51]POST & json_proto [15:03:51]process_json_proto [15:03:51]json parsed OK: [15:03:51]protocol is kg_v1.0 [15:03:51]action value=close_receipt [15:03:51]process_action close_receipt [15:03:51]cmd_close_receipt [15:03:51]MH_GetDate [15:03:51]Write to MH i2c: F0 00 00 A2 47 D8 [15:03:51]Write i2c OK [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: F0 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: F0 09 00 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: F0 09 00 A2 47 00 DB BE 17 67 82 C9 CF 66 78 [15:03:51]GetLastDocTimeStamp 1729609353 [15:03:51]current date 1729609435 [15:03:51]FM_GetShiftState [15:03:51]SAM_PROTO_GetShiftState [15:03:51]wFMCommunicate request_size=4 [15:03:51]MH_SAM_APDU [15:03:51]CAPDU: 80 13 01 00 [15:03:51]Write to MH i2c: E2 08 00 A3 47 80 13 01 00 00 00 00 00 67 [15:03:51]Write i2c OK [15:03:51]MH_I2C_Read... [15:03:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:51]Read from MH i2c: E2 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: E2 0E 00 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: E2 0E 00 A3 47 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 2E [15:03:51]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:03:51]wFMCommunicate OK [15:03:51]SAM_PROTO_GetShiftState done [15:03:51]FM_GetShiftState done [15:03:51]opened in 1729555538 [15:03:51]opened+sec_in_day 1729641938 [15:03:51]quantity*price = 40006 [15:03:51]sum+1 = 40007 [15:03:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 239 22.10.2024 15:03 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228275 ФПД: 250038919589536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T150355&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228275&fm=250038919589536&tin=02508201610067®Number=0000000000091685&sum=40000 [15:03:52]StoreToDocumentArchive [15:03:52]shift 535 fd 228275 [15:03:52]save to /storage/0535/doc_00228275 [15:03:52]save last doc name /storage/0535/doc_00228275 to /storage/kkm_last_doc_name [15:03:52]save OK [15:03:52]Clear old archive folders... [15:03:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:03:52]tlvbuf is 0092A000 [15:03:52]SAM_PROTO_ClearQueue [15:03:52]wFMCommunicate request_size=4 [15:03:52]MH_SAM_APDU [15:03:52]CAPDU: 80 09 00 00 [15:03:52]Write to MH i2c: E2 08 00 B0 47 80 09 00 00 00 00 00 00 69 [15:03:52]Write i2c OK [15:03:52]MH_I2C_Read... [15:03:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:52]Read from MH i2c: E2 [15:03:52]MH_I2C_Read... [15:03:52]Read from MH i2c: E2 03 00 [15:03:52]MH_I2C_Read... [15:03:52]Read from MH i2c: E2 03 00 B0 47 00 90 00 6B [15:03:52]RAPDU: 90 00 [15:03:52]wFMCommunicate OK [15:03:52]SAM_PROTO_ClearQueue done [15:03:52]KKMCreateOFDPacket [15:03:52]OFDProtocolAddRootSTLVToBuf [15:03:52]FM_MakeSignedData [15:03:52]FM_MakeSignedData [15:03:52]SAM_PROTO_SignData [15:03:52]wFMCommunicate request_size=4 [15:03:52]MH_SAM_APDU [15:03:52]CAPDU: 80 0D 01 02 [15:03:52]Write to MH i2c: E2 08 00 B1 47 80 0D 01 02 00 00 00 00 71 [15:03:52]Write i2c OK [15:03:52]MH_I2C_Read... [15:03:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:52]Read from MH i2c: E2 [15:03:52]MH_I2C_Read... [15:03:52]Read from MH i2c: E2 03 00 [15:03:52]MH_I2C_Read... [15:03:52]Read from MH i2c: E2 03 00 B1 47 00 90 00 6C [15:03:52]RAPDU: 90 00 [15:03:52]wFMCommunicate OK [15:03:52]wFMCommunicate request_size=255 [15:03:52]MH_SAM_APDU [15:03:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 EF 00 00 00 F4 03 04 00 DB BE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B3 7B 03 00 35 04 06 00 E3 [15:03:52]Write to MH i2c: E2 02 01 B2 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 22 1A 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 EF 00 00 00 F4 03 04 00 DB BE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B3 7B 03 00 35 04 06 00 E3 00 00 0A [15:03:52]Write i2c OK [15:03:52]MH_I2C_Read... [15:03:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:52]Read from MH i2c: E2 [15:03:52]MH_I2C_Read... [15:03:52]Read from MH i2c: E2 03 00 [15:03:52]MH_I2C_Read... [15:03:52]Read from MH i2c: E2 03 00 B2 47 00 90 00 6D [15:03:52]RAPDU: 90 00 [15:03:52]wFMCommunicate OK [15:03:52]wFMCommunicate request_size=10 [15:03:52]MH_SAM_APDU [15:03:52]CAPDU: 80 0D 02 02 05 68 B8 FB 6E A0 [15:03:52]Write to MH i2c: E2 0D 00 B3 47 80 0D 02 02 05 00 68 B8 FB 6E A0 00 00 A7 [15:03:52]Write i2c OK [15:03:52]MH_I2C_Read... [15:03:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:52]Read from MH i2c: E2 [15:03:52]MH_I2C_Read... [15:03:52]Read from MH i2c: E2 03 00 [15:03:52]MH_I2C_Read... [15:03:52]Read from MH i2c: E2 03 00 B3 47 00 90 00 6E [15:03:52]RAPDU: 90 00 [15:03:52]wFMCommunicate OK [15:03:52]wFMCommunicate request_size=4 [15:03:52]MH_SAM_APDU [15:03:52]CAPDU: 80 0D 03 02 [15:03:52]Write to MH i2c: E2 08 00 B4 47 80 0D 03 02 00 00 00 00 76 [15:03:52]Write i2c OK [15:03:52]MH_I2C_Read... [15:03:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:52]Read from MH i2c: E2 [15:03:52]MH_I2C_Read... [15:03:52]Read from MH i2c: E2 0B 00 [15:03:52]MH_I2C_Read... [15:03:52]Read from MH i2c: E2 0B 00 B4 47 00 DF 21 73 5A DA E2 A2 25 90 00 C7 [15:03:52]RAPDU: DF 21 73 5A DA E2 A2 25 90 00 [15:03:52]wFMCommunicate OK [15:03:52]SAM_PROTO_SignData done [15:03:52]FM_MakeSignedData done [15:03:52]CreateOFDProtocolMessage [15:03:52]wFMCommunicate request_size=4 [15:03:52]MH_SAM_APDU [15:03:52]CAPDU: 80 11 00 00 [15:03:52]Write to MH i2c: E2 08 00 B5 47 80 11 00 00 00 00 00 00 76 [15:03:52]Write i2c OK [15:03:52]MH_I2C_Read... [15:03:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:52]Read from MH i2c: E2 [15:03:52]MH_I2C_Read... [15:03:52]Read from MH i2c: E2 17 00 [15:03:52]MH_I2C_Read... [15:03:52]Read from MH i2c: E2 17 00 B5 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CD [15:03:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:03:52]wFMCommunicate OK [15:03:52]CreateOFDProtocolMessage done [15:03:52]OFDSenderStorePacket 228275 [15:03:52]StoreOFDPacket docnum=228275 [15:03:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 C8 1F 07 01 31 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 EF 00 00 00 F4 03 04 00 DB BE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B3 7B 03 00 35 04 06 00 E3 68 B8 FB 6E A0 DF 21 73 5A DA E2 A2 25 [15:03:52]CheckFolder [15:03:52]dirname=/storage/ofd_packets [15:03:52]CheckFolder done [15:03:52]ProducePacketName [15:03:52]name=ofd_packets/00228275 [15:03:52]NVStorageSaveData ofd_packets/00228275 [15:03:52]File name is /storage/ofd_packets/00228275 [15:03:52]Write 301 bytes [15:03:52]NVStorageSaveData done [15:03:52]OFDSenderStorePacket done [15:03:52]KKMCreateOFDPacket done [15:03:52]NVStorageSaveData kkm_last_timestamp [15:03:52]File name is /storage/kkm_last_timestamp [15:03:52]Write 4 bytes [15:03:52]NVStorageSaveData done [15:03:52]ExternCall_PrintAddStr [15:03:52]wPrintStart [15:03:52]Write to MH i2c: 01 00 00 B6 47 FD [15:03:52]Write i2c OK [15:03:52]MH_I2C_Read... [15:03:52]Read from MH i2c: 01 [15:03:52]MH_I2C_Read... [15:03:52]Read from MH i2c: 01 07 00 [15:03:52]MH_I2C_Read... [15:03:52]Read from MH i2c: 01 07 00 B6 47 00 00 00 00 00 FF 0F 12 [15:03:52]RasterBufferAndPrint [15:03:52]line Счет N : (1)1964752 [15:03:52]line ИНН: 02508201610067 [15:03:52]line Контрольно-Кассовый Чек [15:03:52]line ПРОДАЖА [15:03:52]line ТРК (МРК, ГНК) : 43 [15:03:52]line Товар: 2710124130 [15:03:52]line Аи-92-К-5 [15:03:52]line 5.980 * 66.90 [15:03:52]line = 400.06 [15:03:52]line НДС 12% НСП 1% [15:03:52]line > о реализуемом товаре [15:03:52]line ОКРУГЛЕНИЕ: -0.06 [15:03:52]line ИТОГО: 400.00 [15:03:52]line Внесено: 400.00 [15:03:52]line СДАЧА: 0.00 [15:03:52]line НСП 1% : 3.54 [15:03:52]line НДС 12% : 42.48 [15:03:52]line Наличными: 400.00 [15:03:52]line Безнал.: 0.00 [15:03:52]line Место: АЗС № 133 "Партнер Нефть" [15:03:52]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:03:52]line СНО: Общий режим [15:03:52]line Чек 239 22.10.2024 15:03 [15:03:52]line Смена: 535 ФФД: 1.0 [15:03:52]line ЗНМ: 0300000091 [15:03:52]line РНМ: 0000000000091685 [15:03:52]line Версия ККМ: 001 [15:03:52]line ФМ: 0000000000871839 [15:03:52]line ФД: 228275 [15:03:52]line ФПД: 250038919589536 [15:03:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T150355&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228275&fm=250038919589536&tin=02508201610067®Number=0000000000091685&sum=40000 [15:03:52]written 0, free lines is 4095 [15:03:52]OFD Sender: Processing packet 228275 [packets to send 38, broken 37] [15:03:52]ProducePacketName [15:03:52]name=ofd_packets/00228275 [15:03:52]OFD Sender: To server: pG, [15:03:52]CommunicateWithHost lk.salyk.kg:30040 [15:03:52]ConnectInit lk.salyk.kg [15:03:52]Connected sock=10 [15:03:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 C8 1F 07 01 31 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 EF 00 00 00 F4 03 04 00 DB BE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B3 7B 03 00 35 04 06 00 E3 68 B8 FB 6E A0 DF 21 73 5A DA E2 A2 25 [15:03:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 1D 0A 47 00 DE E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B3 7B 03 00 F4 03 04 00 D3 69 17 67 B6 04 01 00 00 9E C6 CB CD 44 9D 3F FD [15:03:53]CommunicateWithHost err = 0 [15:03:53]CheckOFDResponse [15:03:53]1017 (14) - 77093643461234 [15:03:53]1041 (16) - 0000000000871839 [15:03:53]1040 (4) - 228275 [15:03:53]1012 (4) - 22.10.2024 09:01 [15:03:53]1206 (1) - 0 [15:03:53]OFD Sender: Remove packet 228275 [15:03:53]ProducePacketName [15:03:53]name=ofd_packets/00228275 [15:03:53]NVStorageDeleteData [15:03:53]Write to MH i2c: 01 00 00 E0 47 27 [15:03:53]Write i2c OK [15:03:53]MH_I2C_Read... [15:03:53]Read from MH i2c: 01 [15:03:53]MH_I2C_Read... [15:03:53]Read from MH i2c: 01 07 00 [15:03:53]MH_I2C_Read... [15:03:53]Read from MH i2c: 01 07 00 E0 47 00 00 00 00 00 BF 0C F9 [15:03:53]RasterBufferAndPrint [15:03:53]line [15:03:53]line [15:03:53]line [15:03:53]line [15:03:53]line [15:03:53]written 0, free lines is 3269 [15:03:53]MH_Cut [15:03:53]Write to MH i2c: D1 01 00 E7 47 01 00 [15:03:53]Write i2c OK [15:03:53]MH_I2C_Read... [15:03:53]Read from MH i2c: D1 [15:03:53]MH_I2C_Read... [15:03:53]Read from MH i2c: D1 01 00 [15:03:53]MH_I2C_Read... [15:03:53]Read from MH i2c: D1 01 00 E7 47 00 FF [15:03:53]Write to MH i2c: 01 00 00 E8 47 2F [15:03:53]Write i2c OK [15:03:53]MH_I2C_Read... [15:03:53]OFD Sender: No OFD packet to send [15:03:54]*** Cut start [15:03:54]*** Partial cut [15:03:54]*** CUTSNS_PIN = 1 [15:03:54]*** CUTSNS_PIN = 0 [15:03:54]*** Brake cut motor [15:03:54]Read from MH i2c: 01 [15:03:54]MH_I2C_Read... [15:03:54]*** Stop cut motor [15:03:54]*** Cut end [15:03:54]Read from MH i2c: 01 07 00 [15:03:54]MH_I2C_Read... [15:03:54]Read from MH i2c: 01 07 00 E8 47 00 00 00 00 00 FF 0F 44 [15:03:54]process_action close_receipt done [15:03:54]requested_data is exist [15:03:54]produce_requested_data [15:03:54]requested_item fm.sn is exist - process it [15:03:54]wFMCommunicate request_size=4 [15:03:54]MH_SAM_APDU [15:03:54]CAPDU: 80 11 00 00 [15:03:54]Write to MH i2c: E2 08 00 E9 47 80 11 00 00 00 00 00 00 AA [15:03:54]Write i2c OK [15:03:54]MH_I2C_Read... [15:03:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:54]Read from MH i2c: E2 [15:03:54]MH_I2C_Read... [15:03:54]Read from MH i2c: E2 17 00 [15:03:54]MH_I2C_Read... [15:03:54]Read from MH i2c: E2 17 00 E9 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 01 [15:03:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:03:54]wFMCommunicate OK [15:03:54]requested_item fd.num is exist - process it [15:03:54]SAM_PROTO_GetFieldsCounters [15:03:54]wFMCommunicate request_size=4 [15:03:54]MH_SAM_APDU [15:03:54]CAPDU: 80 13 00 00 [15:03:54]Write to MH i2c: E2 08 00 EA 47 80 13 00 00 00 00 00 00 AD [15:03:54]Write i2c OK [15:03:54]MH_I2C_Read... [15:03:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:54]Read from MH i2c: E2 [15:03:54]MH_I2C_Read... [15:03:54]Read from MH i2c: E2 62 00 [15:03:54]MH_I2C_Read... [15:03:54]Read from MH i2c: E2 62 00 EA 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B3 7B 03 00 0E 04 04 00 17 02 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 ED [15:03:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B3 7B 03 00 0E 04 04 00 17 02 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 [15:03:54]wFMCommunicate OK [15:03:54]SAM_PROTO_GetFieldsCounters done [15:03:54]requested_item shift.num is exist - process it [15:03:54]requested_item shift.opened is exist - process it [15:03:54]req_shift_opened [15:03:54]FM_GetShiftState [15:03:54]SAM_PROTO_GetShiftState [15:03:54]wFMCommunicate request_size=4 [15:03:54]MH_SAM_APDU [15:03:54]CAPDU: 80 13 01 00 [15:03:54]Write to MH i2c: E2 08 00 EB 47 80 13 01 00 00 00 00 00 AF [15:03:54]Write i2c OK [15:03:54]MH_I2C_Read... [15:03:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:55]Read from MH i2c: E2 [15:03:55]MH_I2C_Read... [15:03:55]Read from MH i2c: E2 0E 00 [15:03:55]MH_I2C_Read... [15:03:55]Read from MH i2c: E2 0E 00 EB 47 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 76 [15:03:55]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:03:55]wFMCommunicate OK [15:03:55]SAM_PROTO_GetShiftState done [15:03:55]FM_GetShiftState done [15:03:55]req_shift_opened done [15:03:55]requested_item shift.open_date is exist - process it [15:03:55]req_shift_open_date [15:03:55]req_shift_open_date done [15:03:55]produce_requested_data done [15:03:55]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228275,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:03:55]process_action_free close_receipt [15:03:55]json_value_free [15:03:55]json_value_free done [15:03:55]process_json_proto returns [15:03:55]Send response to host [15:03:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228275,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:03:55]free response buf [15:03:55]execute_script done [15:03:55]execute_script returns [15:03:55]free content buf [15:03:55]Sock 9.Close socket [15:03:55]Sock 9.Thread stoped [15:03:58]OFD Sender: No OFD packet to send [15:04:03]OFD Sender: No OFD packet to send [15:04:08]OFD Sender: No OFD packet to send [15:04:13]OFD Sender: No OFD packet to send [15:04:18]OFD Sender: No OFD packet to send [15:04:23]OFD Sender: No OFD packet to send [15:04:28]OFD Sender: No OFD packet to send [15:04:33]OFD Sender: No OFD packet to send [15:04:38]OFD Sender: No OFD packet to send [15:04:41]accept exits with 7 [15:04:41]New connection [15:04:41]New thread 3067137380 created [15:04:41]Thread 3066994020 joined [15:04:41]Waiting for new connection... [15:04:41] Sock 7.Parse request [15:04:41]Sock 7.Check first char [15:04:41]Sock 7.First char is OK [15:04:41]request: POST /json_proto HTTP/1.0 [15:04:41]Method: POST [15:04:41]URL: /json_proto [15:04:41]Method is POST - this is cgi request [15:04:41]url: /json_proto [15:04:41]query_string will be loaded in cgi processing [15:04:41]execute_cgi json_proto POST (null) [15:04:41]execute_cgi path=json_proto method=POST [15:04:41]POST find Content-Length [15:04:41]Host: 172.17.44.195:8080 [15:04:41]Content-Length: 675 [15:04:41]Content-Type: application/json [15:04:41] [15:04:41]POST finish read [15:04:41]Found Content-Length = 675 [15:04:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964753", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:04:41]execute_script... [15:04: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)1964753", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:04:41]POST & json_proto [15:04:41]process_json_proto [15:04:41]json parsed OK: [15:04:41]protocol is kg_v1.0 [15:04:41]action value=close_receipt [15:04:41]process_action close_receipt [15:04:41]cmd_close_receipt [15:04:41]MH_GetDate [15:04:41]Write to MH i2c: F0 00 00 EC 47 22 [15:04:41]Write i2c OK [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: F0 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: F0 09 00 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: F0 09 00 EC 47 00 0D BF 17 67 82 C9 CF 66 F5 [15:04:41]GetLastDocTimeStamp 1729609435 [15:04:41]current date 1729609485 [15:04:41]FM_GetShiftState [15:04:41]SAM_PROTO_GetShiftState [15:04:41]wFMCommunicate request_size=4 [15:04:41]MH_SAM_APDU [15:04:41]CAPDU: 80 13 01 00 [15:04:41]Write to MH i2c: E2 08 00 ED 47 80 13 01 00 00 00 00 00 B1 [15:04:41]Write i2c OK [15:04:41]MH_I2C_Read... [15:04:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:41]Read from MH i2c: E2 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: E2 0E 00 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: E2 0E 00 ED 47 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 78 [15:04:41]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:04:41]wFMCommunicate OK [15:04:41]SAM_PROTO_GetShiftState done [15:04:41]FM_GetShiftState done [15:04:41]opened in 1729555538 [15:04:41]opened+sec_in_day 1729641938 [15:04:41]quantity*price = 50063 [15:04:41]sum+1 = 50064 [15:04:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 240 22.10.2024 15:04 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228276 ФПД: 217182313652266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T150445&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228276&fm=217182313652266&tin=02508201610067®Number=0000000000091685&sum=50000 [15:04:42]StoreToDocumentArchive [15:04:42]shift 535 fd 228276 [15:04:42]save to /storage/0535/doc_00228276 [15:04:42]save last doc name /storage/0535/doc_00228276 to /storage/kkm_last_doc_name [15:04:42]save OK [15:04:42]Clear old archive folders... [15:04:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:04:42]tlvbuf is 0094F210 [15:04:42]SAM_PROTO_ClearQueue [15:04:42]wFMCommunicate request_size=4 [15:04:42]MH_SAM_APDU [15:04:42]CAPDU: 80 09 00 00 [15:04:42]Write to MH i2c: E2 08 00 FA 47 80 09 00 00 00 00 00 00 B3 [15:04:42]Write i2c OK [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: E2 [15:04:42]MH_I2C_Read... [15:04:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:04:42]Read from MH i2c: E2 03 00 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: E2 03 00 FA 47 00 90 00 B5 [15:04:42]RAPDU: 90 00 [15:04:42]wFMCommunicate OK [15:04:42]SAM_PROTO_ClearQueue done [15:04:42]KKMCreateOFDPacket [15:04:42]OFDProtocolAddRootSTLVToBuf [15:04:42]FM_MakeSignedData [15:04:42]FM_MakeSignedData [15:04:42]SAM_PROTO_SignData [15:04:42]wFMCommunicate request_size=4 [15:04:42]MH_SAM_APDU [15:04:42]CAPDU: 80 0D 01 02 [15:04:42]Write to MH i2c: E2 08 00 FB 47 80 0D 01 02 00 00 00 00 BB [15:04:42]Write i2c OK [15:04:42]MH_I2C_Read... [15:04:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:04:42]Read from MH i2c: E2 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: E2 03 00 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: E2 03 00 FB 47 00 90 00 B6 [15:04:42]RAPDU: 90 00 [15:04:42]wFMCommunicate OK [15:04:42]wFMCommunicate request_size=255 [15:04:42]MH_SAM_APDU [15:04:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 0D BF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B4 7B 03 00 35 04 06 00 C5 86 B2 A8 [15:04:42]Write to MH i2c: E2 02 01 FC 47 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 0D BF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B4 7B 03 00 35 04 06 00 C5 86 B2 A8 00 00 FA [15:04:42]Write i2c OK [15:04:42]MH_I2C_Read... [15:04:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:42]Read from MH i2c: E2 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: E2 03 00 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: E2 03 00 FC 47 00 90 00 B7 [15:04:42]RAPDU: 90 00 [15:04:42]wFMCommunicate OK [15:04:42]wFMCommunicate request_size=7 [15:04:42]MH_SAM_APDU [15:04:42]CAPDU: 80 0D 02 02 02 20 2A [15:04:42]Write to MH i2c: E2 0A 00 FD 47 80 0D 02 02 02 00 20 2A 00 00 0C [15:04:42]Write i2c OK [15:04:42]MH_I2C_Read... [15:04:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:42]Read from MH i2c: E2 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: E2 03 00 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: E2 03 00 FD 47 00 90 00 B8 [15:04:42]RAPDU: 90 00 [15:04:42]wFMCommunicate OK [15:04:42]wFMCommunicate request_size=4 [15:04:42]MH_SAM_APDU [15:04:42]CAPDU: 80 0D 03 02 [15:04:42]Write to MH i2c: E2 08 00 FE 47 80 0D 03 02 00 00 00 00 C0 [15:04:42]Write i2c OK [15:04:42]MH_I2C_Read... [15:04:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:04:42]Read from MH i2c: E2 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: E2 0B 00 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: E2 0B 00 FE 47 00 7F 51 C6 39 1E 84 C3 2B 90 00 20 [15:04:42]RAPDU: 7F 51 C6 39 1E 84 C3 2B 90 00 [15:04:42]wFMCommunicate OK [15:04:42]SAM_PROTO_SignData done [15:04:42]FM_MakeSignedData done [15:04:42]CreateOFDProtocolMessage [15:04:42]wFMCommunicate request_size=4 [15:04:42]MH_SAM_APDU [15:04:42]CAPDU: 80 11 00 00 [15:04:42]Write to MH i2c: E2 08 00 FF 47 80 11 00 00 00 00 00 00 C0 [15:04:42]Write i2c OK [15:04:42]MH_I2C_Read... [15:04:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:42]Read from MH i2c: E2 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: E2 17 00 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: E2 17 00 FF 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 17 [15:04:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:04:42]wFMCommunicate OK [15:04:42]CreateOFDProtocolMessage done [15:04:42]OFDSenderStorePacket 228276 [15:04:42]StoreOFDPacket docnum=228276 [15:04:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 9B 9E 04 01 F2 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 0D BF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B4 7B 03 00 35 04 06 00 C5 86 B2 A8 20 2A 7F 51 C6 39 1E 84 C3 2B [15:04:42]CheckFolder [15:04:42]dirname=/storage/ofd_packets [15:04:42]CheckFolder done [15:04:42]ProducePacketName [15:04:42]name=ofd_packets/00228276 [15:04:42]NVStorageSaveData ofd_packets/00228276 [15:04:42]File name is /storage/ofd_packets/00228276 [15:04:42]Write 298 bytes [15:04:42]NVStorageSaveData done [15:04:42]OFDSenderStorePacket done [15:04:42]KKMCreateOFDPacket done [15:04:42]NVStorageSaveData kkm_last_timestamp [15:04:42]File name is /storage/kkm_last_timestamp [15:04:42]Write 4 bytes [15:04:42]NVStorageSaveData done [15:04:42]ExternCall_PrintAddStr [15:04:42]wPrintStart [15:04:42]Write to MH i2c: 01 00 00 00 48 48 [15:04:42]Write i2c OK [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: 01 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: 01 07 00 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: 01 07 00 00 48 00 00 00 00 00 FF 0F 5D [15:04:42]RasterBufferAndPrint [15:04:42]line Счет N : (1)1964753 [15:04:42]line ИНН: 02508201610067 [15:04:42]line Контрольно-Кассовый Чек [15:04:42]line ПРОДАЖА [15:04:42]line ТРК (МРК, ГНК) : 61 [15:04:42]line Товар: 2710194210 [15:04:42]line ДТ-К-5 [15:04:42]line 6.570 * 76.20 [15:04:42]line = 500.63 [15:04:42]line НДС 12% НСП 1% [15:04:42]line > о реализуемом товаре [15:04:42]line ОКРУГЛЕНИЕ: -0.63 [15:04:42]line ИТОГО: 500.00 [15:04:42]line Внесено: 500.00 [15:04:42]line СДАЧА: 0.00 [15:04:42]line НСП 1% : 4.43 [15:04:42]line НДС 12% : 53.16 [15:04:42]line Наличными: 500.00 [15:04:42]line Безнал.: 0.00 [15:04:42]line Место: АЗС № 133 "Партнер Нефть" [15:04:42]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:04:42]line СНО: Общий режим [15:04:42]line Чек 240 22.10.2024 15:04 [15:04:42]line Смена: 535 ФФД: 1.0 [15:04:42]line ЗНМ: 0300000091 [15:04:42]line РНМ: 0000000000091685 [15:04:42]line Версия ККМ: 001 [15:04:42]line ФМ: 0000000000871839 [15:04:42]line ФД: 228276 [15:04:42]line ФПД: 217182313652266 [15:04:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T150445&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228276&fm=217182313652266&tin=02508201610067®Number=0000000000091685&sum=50000 [15:04:43]OFD Sender: Processing packet 228276 [packets to send 38, broken 37] [15:04:43]ProducePacketName [15:04:43]name=ofd_packets/00228276 [15:04:43]OFD Sender: To server: pG, [15:04:43]CommunicateWithHost lk.salyk.kg:30040 [15:04:43]ConnectInit lk.salyk.kg [15:04:43]written 0, free lines is 4095 [15:04:43]Connected sock=10 [15:04:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 9B 9E 04 01 F2 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 0D BF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B4 7B 03 00 35 04 06 00 C5 86 B2 A8 20 2A 7F 51 C6 39 1E 84 C3 2B [15:04:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 58 DF 47 00 8D E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B4 7B 03 00 F4 03 04 00 05 6A 17 67 B6 04 01 00 00 87 5B B0 F9 8D A8 1A 71 [15:04:43]CommunicateWithHost err = 0 [15:04:43]CheckOFDResponse [15:04:43]1017 (14) - 77093643461234 [15:04:43]1041 (16) - 0000000000871839 [15:04:43]1040 (4) - 228276 [15:04:43]1012 (4) - 22.10.2024 09:01 [15:04:43]1206 (1) - 0 [15:04:43]OFD Sender: Remove packet 228276 [15:04:43]ProducePacketName [15:04:43]name=ofd_packets/00228276 [15:04:43]NVStorageDeleteData [15:04:43]Write to MH i2c: 01 00 00 2A 48 72 [15:04:43]Write i2c OK [15:04:43]MH_I2C_Read... [15:04:43]Read from MH i2c: 01 [15:04:43]MH_I2C_Read... [15:04:43]Read from MH i2c: 01 07 00 [15:04:43]MH_I2C_Read... [15:04:43]Read from MH i2c: 01 07 00 2A 48 00 00 00 00 00 BF 0C 44 [15:04:43]RasterBufferAndPrint [15:04:43]line [15:04:43]line [15:04:43]line [15:04:43]line [15:04:43]line [15:04:43]written 0, free lines is 3269 [15:04:43]MH_Cut [15:04:43]Write to MH i2c: D1 01 00 31 48 01 4B [15:04:43]Write i2c OK [15:04:43]MH_I2C_Read... [15:04:43]Read from MH i2c: D1 [15:04:43]MH_I2C_Read... [15:04:43]Read from MH i2c: D1 01 00 [15:04:43]MH_I2C_Read... [15:04:43]Read from MH i2c: D1 01 00 31 48 00 4A [15:04:43]Write to MH i2c: 01 00 00 32 48 7A [15:04:43]Write i2c OK [15:04:43]MH_I2C_Read... [15:04:43]OFD Sender: No OFD packet to send [15:04:44]*** Cut start [15:04:44]*** Partial cut [15:04:44]*** CUTSNS_PIN = 1 [15:04:44]*** CUTSNS_PIN = 0 [15:04:44]*** Brake cut motor [15:04:45]Read from MH i2c: 01 [15:04:45]MH_I2C_Read... [15:04:45]*** Stop cut motor [15:04:45]*** Cut end [15:04:45]Read from MH i2c: 01 07 00 [15:04:45]MH_I2C_Read... [15:04:45]Read from MH i2c: 01 07 00 32 48 00 00 00 00 00 FF 0F 8F [15:04:45]process_action close_receipt done [15:04:45]requested_data is exist [15:04:45]produce_requested_data [15:04:45]requested_item fm.sn is exist - process it [15:04:45]wFMCommunicate request_size=4 [15:04:45]MH_SAM_APDU [15:04:45]CAPDU: 80 11 00 00 [15:04:45]Write to MH i2c: E2 08 00 33 48 80 11 00 00 00 00 00 00 F5 [15:04:45]Write i2c OK [15:04:45]MH_I2C_Read... [15:04:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:45]Read from MH i2c: E2 [15:04:45]MH_I2C_Read... [15:04:45]Read from MH i2c: E2 17 00 [15:04:45]MH_I2C_Read... [15:04:45]Read from MH i2c: E2 17 00 33 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4C [15:04:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:04:45]wFMCommunicate OK [15:04:45]requested_item fd.num is exist - process it [15:04:45]SAM_PROTO_GetFieldsCounters [15:04:45]wFMCommunicate request_size=4 [15:04:45]MH_SAM_APDU [15:04:45]CAPDU: 80 13 00 00 [15:04:45]Write to MH i2c: E2 08 00 34 48 80 13 00 00 00 00 00 00 F8 [15:04:45]Write i2c OK [15:04:45]MH_I2C_Read... [15:04:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:45]Read from MH i2c: E2 [15:04:45]MH_I2C_Read... [15:04:45]Read from MH i2c: E2 62 00 [15:04:45]MH_I2C_Read... [15:04:45]Read from MH i2c: E2 62 00 34 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B4 7B 03 00 0E 04 04 00 17 02 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 3C [15:04:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B4 7B 03 00 0E 04 04 00 17 02 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 [15:04:45]wFMCommunicate OK [15:04:45]SAM_PROTO_GetFieldsCounters done [15:04:45]requested_item shift.num is exist - process it [15:04:45]requested_item shift.opened is exist - process it [15:04:45]req_shift_opened [15:04:45]FM_GetShiftState [15:04:45]SAM_PROTO_GetShiftState [15:04:45]wFMCommunicate request_size=4 [15:04:45]MH_SAM_APDU [15:04:45]CAPDU: 80 13 01 00 [15:04:45]Write to MH i2c: E2 08 00 35 48 80 13 01 00 00 00 00 00 FA [15:04:45]Write i2c OK [15:04:45]MH_I2C_Read... [15:04:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:45]Read from MH i2c: E2 [15:04:45]MH_I2C_Read... [15:04:45]Read from MH i2c: E2 0E 00 [15:04:45]MH_I2C_Read... [15:04:45]Read from MH i2c: E2 0E 00 35 48 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 C1 [15:04:45]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:04:45]wFMCommunicate OK [15:04:45]SAM_PROTO_GetShiftState done [15:04:45]FM_GetShiftState done [15:04:45]req_shift_opened done [15:04:45]requested_item shift.open_date is exist - process it [15:04:45]req_shift_open_date [15:04:45]req_shift_open_date done [15:04:45]produce_requested_data done [15:04:45]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228276,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:04:45]process_action_free close_receipt [15:04:45]json_value_free [15:04:45]json_value_free done [15:04:45]process_json_proto returns [15:04:45]Send response to host [15:04:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228276,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:04:45]free response buf [15:04:45]execute_script done [15:04:45]execute_script returns [15:04:45]free content buf [15:04:45]Sock 7.Close socket [15:04:45]Sock 7.Thread stoped [15:04:48]OFD Sender: No OFD packet to send [15:04:50]accept exits with 9 [15:04:50]New connection [15:04:50]New thread 3066994020 created [15:04:50]Thread 3067137380 joined [15:04:50]Waiting for new connection... [15:04:50] Sock 9.Parse request [15:04:50]Sock 9.Check first char [15:04:50]Sock 9.First char is OK [15:04:50]request: POST /json_proto HTTP/1.0 [15:04:50]Method: POST [15:04:50]URL: /json_proto [15:04:50]Method is POST - this is cgi request [15:04:50]url: /json_proto [15:04:50]query_string will be loaded in cgi processing [15:04:50]execute_cgi json_proto POST (null) [15:04:50]execute_cgi path=json_proto method=POST [15:04:50]POST find Content-Length [15:04:50]Host: 172.17.44.195:8080 [15:04:50]Content-Length: 675 [15:04:50]Content-Type: application/json [15:04:50] [15:04:50]POST finish read [15:04:50]Found Content-Length = 675 [15:04:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964754", "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" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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:04:50]execute_script... [15:04: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)1964754", "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" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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:04:50]POST & json_proto [15:04:50]process_json_proto [15:04:50]json parsed OK: [15:04:50]protocol is kg_v1.0 [15:04:50]action value=close_receipt [15:04:50]process_action close_receipt [15:04:50]cmd_close_receipt [15:04:50]MH_GetDate [15:04:50]Write to MH i2c: F0 00 00 36 48 6D [15:04:50]Write i2c OK [15:04:50]MH_I2C_Read... [15:04:50]Read from MH i2c: F0 [15:04:50]MH_I2C_Read... [15:04:50]Read from MH i2c: F0 09 00 [15:04:50]MH_I2C_Read... [15:04:50]Read from MH i2c: F0 09 00 36 48 00 17 BF 17 67 82 C9 CF 66 4A [15:04:50]GetLastDocTimeStamp 1729609485 [15:04:50]current date 1729609495 [15:04:50]FM_GetShiftState [15:04:50]SAM_PROTO_GetShiftState [15:04:50]wFMCommunicate request_size=4 [15:04:50]MH_SAM_APDU [15:04:50]CAPDU: 80 13 01 00 [15:04:50]Write to MH i2c: E2 08 00 37 48 80 13 01 00 00 00 00 00 FC [15:04:50]Write i2c OK [15:04:50]MH_I2C_Read... [15:04:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:51]Read from MH i2c: E2 [15:04:51]MH_I2C_Read... [15:04:51]Read from MH i2c: E2 0E 00 [15:04:51]MH_I2C_Read... [15:04:51]Read from MH i2c: E2 0E 00 37 48 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 C3 [15:04:51]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:04:51]wFMCommunicate OK [15:04:51]SAM_PROTO_GetShiftState done [15:04:51]FM_GetShiftState done [15:04:51]opened in 1729555538 [15:04:51]opened+sec_in_day 1729641938 [15:04:51]quantity*price = 60045 [15:04:51]sum+1 = 60047 [15:04:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 241 22.10.2024 15:04 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228277 ФПД: 216379334018940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T150455&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228277&fm=216379334018940&tin=02508201610067®Number=0000000000091685&sum=60000 [15:04:52]StoreToDocumentArchive [15:04:52]shift 535 fd 228277 [15:04:52]save to /storage/0535/doc_00228277 [15:04:52]save last doc name /storage/0535/doc_00228277 to /storage/kkm_last_doc_name [15:04:52]save OK [15:04:52]Clear old archive folders... [15:04:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:04:52]tlvbuf is B6F074A0 [15:04:52]SAM_PROTO_ClearQueue [15:04:52]wFMCommunicate request_size=4 [15:04:52]MH_SAM_APDU [15:04:52]CAPDU: 80 09 00 00 [15:04:52]Write to MH i2c: E2 08 00 44 48 80 09 00 00 00 00 00 00 FE [15:04:52]Write i2c OK [15:04:52]MH_I2C_Read... [15:04:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:04:52]Read from MH i2c: E2 [15:04:52]MH_I2C_Read... [15:04:52]Read from MH i2c: E2 03 00 [15:04:52]MH_I2C_Read... [15:04:52]Read from MH i2c: E2 03 00 44 48 00 90 00 00 [15:04:52]RAPDU: 90 00 [15:04:52]wFMCommunicate OK [15:04:52]SAM_PROTO_ClearQueue done [15:04:52]KKMCreateOFDPacket [15:04:52]OFDProtocolAddRootSTLVToBuf [15:04:52]FM_MakeSignedData [15:04:52]FM_MakeSignedData [15:04:52]SAM_PROTO_SignData [15:04:52]wFMCommunicate request_size=4 [15:04:52]MH_SAM_APDU [15:04:52]CAPDU: 80 0D 01 02 [15:04:52]Write to MH i2c: E2 08 00 45 48 80 0D 01 02 00 00 00 00 06 [15:04:52]Write i2c OK [15:04:52]MH_I2C_Read... [15:04:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:04:52]Read from MH i2c: E2 [15:04:52]MH_I2C_Read... [15:04:52]Read from MH i2c: E2 03 00 [15:04:52]MH_I2C_Read... [15:04:52]Read from MH i2c: E2 03 00 45 48 00 90 00 01 [15:04:52]RAPDU: 90 00 [15:04:52]wFMCommunicate OK [15:04:52]wFMCommunicate request_size=255 [15:04:52]MH_SAM_APDU [15:04: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 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 F1 00 00 00 F4 03 04 00 17 BF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B5 7B 03 00 35 04 06 00 C4 CB BD 57 [15:04:52]Write to MH i2c: E2 02 01 46 48 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 F1 00 00 00 F4 03 04 00 17 BF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B5 7B 03 00 35 04 06 00 C4 CB BD 57 00 00 88 [15:04:52]Write i2c OK [15:04:52]MH_I2C_Read... [15:04:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:52]Read from MH i2c: E2 [15:04:52]MH_I2C_Read... [15:04:52]Read from MH i2c: E2 03 00 [15:04:52]MH_I2C_Read... [15:04:52]Read from MH i2c: E2 03 00 46 48 00 90 00 02 [15:04:52]RAPDU: 90 00 [15:04:52]wFMCommunicate OK [15:04:52]wFMCommunicate request_size=7 [15:04:52]MH_SAM_APDU [15:04:52]CAPDU: 80 0D 02 02 02 47 7C [15:04:52]Write to MH i2c: E2 0A 00 47 48 80 0D 02 02 02 00 47 7C 00 00 D0 [15:04:52]Write i2c OK [15:04:52]MH_I2C_Read... [15:04:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:52]Read from MH i2c: E2 [15:04:52]MH_I2C_Read... [15:04:52]Read from MH i2c: E2 03 00 [15:04:52]MH_I2C_Read... [15:04:52]Read from MH i2c: E2 03 00 47 48 00 90 00 03 [15:04:52]RAPDU: 90 00 [15:04:52]wFMCommunicate OK [15:04:52]wFMCommunicate request_size=4 [15:04:52]MH_SAM_APDU [15:04:52]CAPDU: 80 0D 03 02 [15:04:52]Write to MH i2c: E2 08 00 48 48 80 0D 03 02 00 00 00 00 0B [15:04:52]Write i2c OK [15:04:52]MH_I2C_Read... [15:04:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:04:52]Read from MH i2c: E2 [15:04:52]MH_I2C_Read... [15:04:52]Read from MH i2c: E2 0B 00 [15:04:52]MH_I2C_Read... [15:04:52]Read from MH i2c: E2 0B 00 48 48 00 B6 36 F3 AD 54 43 49 BE 90 00 36 [15:04:52]RAPDU: B6 36 F3 AD 54 43 49 BE 90 00 [15:04:52]wFMCommunicate OK [15:04:52]SAM_PROTO_SignData done [15:04:52]FM_MakeSignedData done [15:04:52]CreateOFDProtocolMessage [15:04:52]wFMCommunicate request_size=4 [15:04:52]MH_SAM_APDU [15:04:52]CAPDU: 80 11 00 00 [15:04:52]Write to MH i2c: E2 08 00 49 48 80 11 00 00 00 00 00 00 0B [15:04:52]Write i2c OK [15:04:52]MH_I2C_Read... [15:04:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:52]Read from MH i2c: E2 [15:04:52]MH_I2C_Read... [15:04:52]Read from MH i2c: E2 17 00 [15:04:52]MH_I2C_Read... [15:04:52]Read from MH i2c: E2 17 00 49 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 62 [15:04:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:04:52]wFMCommunicate OK [15:04:52]CreateOFDProtocolMessage done [15:04:52]OFDSenderStorePacket 228277 [15:04:52]StoreOFDPacket docnum=228277 [15:04:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 2D 53 04 01 82 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 F1 00 00 00 F4 03 04 00 17 BF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B5 7B 03 00 35 04 06 00 C4 CB BD 57 47 7C B6 36 F3 AD 54 43 49 BE [15:04:52]CheckFolder [15:04:52]dirname=/storage/ofd_packets [15:04:52]CheckFolder done [15:04:52]ProducePacketName [15:04:52]name=ofd_packets/00228277 [15:04:52]NVStorageSaveData ofd_packets/00228277 [15:04:52]File name is /storage/ofd_packets/00228277 [15:04:52]Write 298 bytes [15:04:52]NVStorageSaveData done [15:04:52]OFDSenderStorePacket done [15:04:52]KKMCreateOFDPacket done [15:04:52]NVStorageSaveData kkm_last_timestamp [15:04:52]File name is /storage/kkm_last_timestamp [15:04:52]Write 4 bytes [15:04:52]NVStorageSaveData done [15:04:52]ExternCall_PrintAddStr [15:04:52]wPrintStart [15:04:52]Write to MH i2c: 01 00 00 4A 48 92 [15:04:52]Write i2c OK [15:04:52]MH_I2C_Read... [15:04:52]Read from MH i2c: 01 [15:04:52]MH_I2C_Read... [15:04:52]Read from MH i2c: 01 07 00 [15:04:52]MH_I2C_Read... [15:04:52]Read from MH i2c: 01 07 00 4A 48 00 00 00 00 00 FF 0F A7 [15:04:52]RasterBufferAndPrint [15:04:52]line Счет N : (1)1964754 [15:04:52]line ИНН: 02508201610067 [15:04:52]line Контрольно-Кассовый Чек [15:04:52]line ПРОДАЖА [15:04:52]line ТРК (МРК, ГНК) : 51 [15:04:52]line Товар: 2710194210 [15:04:52]line ДТ-К-5 [15:04:52]line 7.880 * 76.20 [15:04:52]line = 600.46 [15:04:52]line НДС 12% НСП 1% [15:04:52]line > о реализуемом товаре [15:04:52]line ОКРУГЛЕНИЕ: -0.46 [15:04:52]line ИТОГО: 600.00 [15:04:52]line Внесено: 600.00 [15:04:52]line СДАЧА: 0.00 [15:04:52]line НСП 1% : 5.31 [15:04:52]line НДС 12% : 63.77 [15:04:52]line Наличными: 600.00 [15:04:52]line Безнал.: 0.00 [15:04:52]line Место: АЗС № 133 "Партнер Нефть" [15:04:52]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:04:52]line СНО: Общий режим [15:04:52]line Чек 241 22.10.2024 15:04 [15:04:52]line Смена: 535 ФФД: 1.0 [15:04:52]OFD Sender: Processing packet 228277 [packets to send 38, broken 37] [15:04:52]ProducePacketName [15:04:52]name=ofd_packets/00228277 [15:04:52]OFD Sender: To server: pG, [15:04:52]CommunicateWithHost lk.salyk.kg:30040 [15:04:52]ConnectInit lk.salyk.kg [15:04:52]line ЗНМ: 0300000091 [15:04:52]line РНМ: 0000000000091685 [15:04:52]line Версия ККМ: 001 [15:04:52]line ФМ: 0000000000871839 [15:04:52]line ФД: 228277 [15:04:52]line ФПД: 216379334018940 [15:04:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T150455&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228277&fm=216379334018940&tin=02508201610067®Number=0000000000091685&sum=60000 [15:04:52]written 0, free lines is 4095 [15:04:52]Connected sock=10 [15:04:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 2D 53 04 01 82 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 F1 00 00 00 F4 03 04 00 17 BF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B5 7B 03 00 35 04 06 00 C4 CB BD 57 47 7C B6 36 F3 AD 54 43 49 BE [15:04:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 A4 49 47 00 F6 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B5 7B 03 00 F4 03 04 00 0F 6A 17 67 B6 04 01 00 00 7A 68 4F 4D 4A 39 E4 CE [15:04:53]CommunicateWithHost err = 0 [15:04:53]CheckOFDResponse [15:04:53]1017 (14) - 77093643461234 [15:04:53]1041 (16) - 0000000000871839 [15:04:53]1040 (4) - 228277 [15:04:53]1012 (4) - 22.10.2024 09:02 [15:04:53]1206 (1) - 0 [15:04:53]OFD Sender: Remove packet 228277 [15:04:53]ProducePacketName [15:04:53]name=ofd_packets/00228277 [15:04:53]NVStorageDeleteData [15:04:53]Write to MH i2c: 01 00 00 74 48 BC [15:04:53]Write i2c OK [15:04:53]MH_I2C_Read... [15:04:53]Read from MH i2c: 01 [15:04:53]MH_I2C_Read... [15:04:53]Read from MH i2c: 01 07 00 [15:04:53]MH_I2C_Read... [15:04:53]Read from MH i2c: 01 07 00 74 48 00 00 00 00 00 CC 0C 9B [15:04:53]RasterBufferAndPrint [15:04:53]line [15:04:53]line [15:04:53]line [15:04:53]line [15:04:53]line [15:04:53]written 0, free lines is 3286 [15:04:53]MH_Cut [15:04:53]Write to MH i2c: D1 01 00 7B 48 01 95 [15:04:53]Write i2c OK [15:04:53]MH_I2C_Read... [15:04:53]Read from MH i2c: D1 [15:04:53]MH_I2C_Read... [15:04:53]Read from MH i2c: D1 01 00 [15:04:53]MH_I2C_Read... [15:04:53]Read from MH i2c: D1 01 00 7B 48 00 94 [15:04:53]Write to MH i2c: 01 00 00 7C 48 C4 [15:04:53]Write i2c OK [15:04:53]MH_I2C_Read... [15:04:53]OFD Sender: No OFD packet to send [15:04:54]*** Cut start [15:04:54]*** Partial cut [15:04:54]*** CUTSNS_PIN = 1 [15:04:54]*** CUTSNS_PIN = 0 [15:04:54]*** Brake cut motor [15:04:54]Read from MH i2c: 01 [15:04:54]MH_I2C_Read... [15:04:54]*** Stop cut motor [15:04:54]*** Cut end [15:04:54]Read from MH i2c: 01 07 00 [15:04:54]MH_I2C_Read... [15:04:54]Read from MH i2c: 01 07 00 7C 48 00 00 00 00 00 FF 0F D9 [15:04:54]process_action close_receipt done [15:04:54]requested_data is exist [15:04:54]produce_requested_data [15:04:54]requested_item fm.sn is exist - process it [15:04:54]wFMCommunicate request_size=4 [15:04:54]MH_SAM_APDU [15:04:54]CAPDU: 80 11 00 00 [15:04:54]Write to MH i2c: E2 08 00 7D 48 80 11 00 00 00 00 00 00 3F [15:04:54]Write i2c OK [15:04:54]MH_I2C_Read... [15:04:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:54]Read from MH i2c: E2 [15:04:54]MH_I2C_Read... [15:04:54]Read from MH i2c: E2 17 00 [15:04:54]MH_I2C_Read... [15:04:54]Read from MH i2c: E2 17 00 7D 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 96 [15:04:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:04:54]wFMCommunicate OK [15:04:54]requested_item fd.num is exist - process it [15:04:54]SAM_PROTO_GetFieldsCounters [15:04:54]wFMCommunicate request_size=4 [15:04:54]MH_SAM_APDU [15:04:54]CAPDU: 80 13 00 00 [15:04:54]Write to MH i2c: E2 08 00 7E 48 80 13 00 00 00 00 00 00 42 [15:04:54]Write i2c OK [15:04:54]MH_I2C_Read... [15:04:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:54]Read from MH i2c: E2 [15:04:54]MH_I2C_Read... [15:04:54]Read from MH i2c: E2 62 00 [15:04:54]MH_I2C_Read... [15:04:54]Read from MH i2c: E2 62 00 7E 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B5 7B 03 00 0E 04 04 00 17 02 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 8A [15:04:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B5 7B 03 00 0E 04 04 00 17 02 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 [15:04:54]wFMCommunicate OK [15:04:54]SAM_PROTO_GetFieldsCounters done [15:04:54]requested_item shift.num is exist - process it [15:04:54]requested_item shift.opened is exist - process it [15:04:54]req_shift_opened [15:04:54]FM_GetShiftState [15:04:54]SAM_PROTO_GetShiftState [15:04:54]wFMCommunicate request_size=4 [15:04:54]MH_SAM_APDU [15:04:54]CAPDU: 80 13 01 00 [15:04:54]Write to MH i2c: E2 08 00 7F 48 80 13 01 00 00 00 00 00 44 [15:04:54]Write i2c OK [15:04:54]MH_I2C_Read... [15:04:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:54]Read from MH i2c: E2 [15:04:54]MH_I2C_Read... [15:04:54]Read from MH i2c: E2 0E 00 [15:04:54]MH_I2C_Read... [15:04:54]Read from MH i2c: E2 0E 00 7F 48 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 0B [15:04:54]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:04:54]wFMCommunicate OK [15:04:54]SAM_PROTO_GetShiftState done [15:04:54]FM_GetShiftState done [15:04:54]req_shift_opened done [15:04:54]requested_item shift.open_date is exist - process it [15:04:54]req_shift_open_date [15:04:54]req_shift_open_date done [15:04:54]produce_requested_data done [15:04:54]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228277,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:04:54]process_action_free close_receipt [15:04:54]json_value_free [15:04:54]json_value_free done [15:04:54]process_json_proto returns [15:04:54]Send response to host [15:04:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228277,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:04:54]free response buf [15:04:54]execute_script done [15:04:54]execute_script returns [15:04:54]free content buf [15:04:54]Sock 9.Close socket [15:04:54]Sock 9.Thread stoped [15:04:58]OFD Sender: No OFD packet to send [15:05:03]OFD Sender: No OFD packet to send [15:05:08]OFD Sender: No OFD packet to send [15:05:13]OFD Sender: No OFD packet to send [15:05:18]OFD Sender: No OFD packet to send [15:05:23]OFD Sender: No OFD packet to send [15:05:28]OFD Sender: No OFD packet to send [15:05:33]OFD Sender: No OFD packet to send [15:05:38]OFD Sender: No OFD packet to send [15:05:43]accept exits with 7 [15:05:43]New connection [15:05:43]New thread 3067137380 created [15:05:43]Thread 3066994020 joined [15:05:43]Waiting for new connection... [15:05:43] Sock 7.Parse request [15:05:43]Sock 7.Check first char [15:05:43]Sock 7.First char is OK [15:05:43]request: POST /json_proto HTTP/1.0 [15:05:43]Method: POST [15:05:43]URL: /json_proto [15:05:43]Method is POST - this is cgi request [15:05:43]url: /json_proto [15:05:43]query_string will be loaded in cgi processing [15:05:43]execute_cgi json_proto POST (null) [15:05:43]execute_cgi path=json_proto method=POST [15:05:43]POST find Content-Length [15:05:43]Host: 172.17.44.195:8080 [15:05:43]Content-Length: 678 [15:05:43]Content-Type: application/json [15:05:43] [15:05:43]POST finish read [15:05:43]Found Content-Length = 678 [15:05:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964755", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:05:43]execute_script... [15:05:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964755", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:05:43]POST & json_proto [15:05:43]process_json_proto [15:05:43]json parsed OK: [15:05:43]protocol is kg_v1.0 [15:05:43]action value=close_receipt [15:05:43]process_action close_receipt [15:05:43]cmd_close_receipt [15:05:43]MH_GetDate [15:05:43]Write to MH i2c: F0 00 00 80 48 B7 [15:05:43]Write i2c OK [15:05:43]MH_I2C_Read... [15:05:43]Read from MH i2c: F0 [15:05:43]MH_I2C_Read... [15:05:43]Read from MH i2c: F0 09 00 [15:05:43]MH_I2C_Read... [15:05:43]Read from MH i2c: F0 09 00 80 48 00 4B BF 17 67 82 C9 CF 66 C8 [15:05:43]GetLastDocTimeStamp 1729609495 [15:05:43]current date 1729609547 [15:05:43]FM_GetShiftState [15:05:43]SAM_PROTO_GetShiftState [15:05:43]wFMCommunicate request_size=4 [15:05:43]MH_SAM_APDU [15:05:43]CAPDU: 80 13 01 00 [15:05:43]Write to MH i2c: E2 08 00 81 48 80 13 01 00 00 00 00 00 46 [15:05:43]Write i2c OK [15:05:43]MH_I2C_Read... [15:05:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:43]Read from MH i2c: E2 [15:05:43]MH_I2C_Read... [15:05:43]Read from MH i2c: E2 0E 00 [15:05:43]MH_I2C_Read... [15:05:43]Read from MH i2c: E2 0E 00 81 48 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 0D [15:05:43]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:05:43]wFMCommunicate OK [15:05:43]SAM_PROTO_GetShiftState done [15:05:43]FM_GetShiftState done [15:05:43]opened in 1729555538 [15:05:43]opened+sec_in_day 1729641938 [15:05:43]quantity*price = 50041 [15:05:43]sum+1 = 50042 [15:05:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 242 22.10.2024 15:05 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228278 ФПД: 150479953248616 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T150547&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228278&fm=150479953248616&tin=02508201610067®Number=0000000000091685&sum=50000 [15:05:44]StoreToDocumentArchive [15:05:44]shift 535 fd 228278 [15:05:44]save to /storage/0535/doc_00228278 [15:05:44]save last doc name /storage/0535/doc_00228278 to /storage/kkm_last_doc_name [15:05:44]save OK [15:05:44]Clear old archive folders... [15:05:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:05:44]tlvbuf is 009848E0 [15:05:44]SAM_PROTO_ClearQueue [15:05:44]wFMCommunicate request_size=4 [15:05:44]MH_SAM_APDU [15:05:44]CAPDU: 80 09 00 00 [15:05:44]Write to MH i2c: E2 08 00 8E 48 80 09 00 00 00 00 00 00 48 [15:05:44]Write i2c OK [15:05:44]MH_I2C_Read... [15:05:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:44]Read from MH i2c: E2 [15:05:44]MH_I2C_Read... [15:05:44]Read from MH i2c: E2 03 00 [15:05:44]MH_I2C_Read... [15:05:44]Read from MH i2c: E2 03 00 8E 48 00 90 00 4A [15:05:44]RAPDU: 90 00 [15:05:44]wFMCommunicate OK [15:05:44]SAM_PROTO_ClearQueue done [15:05:44]KKMCreateOFDPacket [15:05:44]OFDProtocolAddRootSTLVToBuf [15:05:44]FM_MakeSignedData [15:05:44]FM_MakeSignedData [15:05:44]SAM_PROTO_SignData [15:05:44]wFMCommunicate request_size=4 [15:05:44]MH_SAM_APDU [15:05:44]CAPDU: 80 0D 01 02 [15:05:44]Write to MH i2c: E2 08 00 8F 48 80 0D 01 02 00 00 00 00 50 [15:05:44]Write i2c OK [15:05:44]MH_I2C_Read... [15:05:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:44]Read from MH i2c: E2 [15:05:44]MH_I2C_Read... [15:05:44]Read from MH i2c: E2 03 00 [15:05:44]MH_I2C_Read... [15:05:44]Read from MH i2c: E2 03 00 8F 48 00 90 00 4B [15:05:44]RAPDU: 90 00 [15:05:44]wFMCommunicate OK [15:05:44]wFMCommunicate request_size=255 [15:05:44]MH_SAM_APDU [15:05: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 4B BF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B6 7B 03 00 35 04 06 00 88 [15:05:44]Write to MH i2c: E2 02 01 90 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 4B BF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B6 7B 03 00 35 04 06 00 88 00 00 36 [15:05:44]Write i2c OK [15:05:44]MH_I2C_Read... [15:05:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:44]Read from MH i2c: E2 [15:05:44]MH_I2C_Read... [15:05:44]Read from MH i2c: E2 03 00 [15:05:44]MH_I2C_Read... [15:05:44]Read from MH i2c: E2 03 00 90 48 00 90 00 4C [15:05:44]RAPDU: 90 00 [15:05:44]wFMCommunicate OK [15:05:44]wFMCommunicate request_size=10 [15:05:44]MH_SAM_APDU [15:05:44]CAPDU: 80 0D 02 02 05 DC 58 28 C1 68 [15:05:44]Write to MH i2c: E2 0D 00 91 48 80 0D 02 02 05 00 DC 58 28 C1 68 00 00 E2 [15:05:44]Write i2c OK [15:05:44]MH_I2C_Read... [15:05:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:44]Read from MH i2c: E2 [15:05:44]MH_I2C_Read... [15:05:44]Read from MH i2c: E2 03 00 [15:05:44]MH_I2C_Read... [15:05:44]Read from MH i2c: E2 03 00 91 48 00 90 00 4D [15:05:44]RAPDU: 90 00 [15:05:44]wFMCommunicate OK [15:05:44]wFMCommunicate request_size=4 [15:05:44]MH_SAM_APDU [15:05:44]CAPDU: 80 0D 03 02 [15:05:44]Write to MH i2c: E2 08 00 92 48 80 0D 03 02 00 00 00 00 55 [15:05:44]Write i2c OK [15:05:44]MH_I2C_Read... [15:05:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:44]Read from MH i2c: E2 [15:05:44]MH_I2C_Read... [15:05:44]Read from MH i2c: E2 0B 00 [15:05:44]MH_I2C_Read... [15:05:44]Read from MH i2c: E2 0B 00 92 48 00 A9 FC CA CE BC 8B FA E4 90 00 B8 [15:05:44]RAPDU: A9 FC CA CE BC 8B FA E4 90 00 [15:05:44]wFMCommunicate OK [15:05:44]SAM_PROTO_SignData done [15:05:44]FM_MakeSignedData done [15:05:44]CreateOFDProtocolMessage [15:05:44]wFMCommunicate request_size=4 [15:05:44]MH_SAM_APDU [15:05:44]CAPDU: 80 11 00 00 [15:05:44]Write to MH i2c: E2 08 00 93 48 80 11 00 00 00 00 00 00 55 [15:05:44]Write i2c OK [15:05:44]MH_I2C_Read... [15:05:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:44]Read from MH i2c: E2 [15:05:44]MH_I2C_Read... [15:05:44]Read from MH i2c: E2 17 00 [15:05:44]MH_I2C_Read... [15:05:44]Read from MH i2c: E2 17 00 93 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AC [15:05:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:05:44]wFMCommunicate OK [15:05:44]CreateOFDProtocolMessage done [15:05:44]OFDSenderStorePacket 228278 [15:05:44]StoreOFDPacket docnum=228278 [15:05:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B0 1F 07 01 EA 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 4B BF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B6 7B 03 00 35 04 06 00 88 DC 58 28 C1 68 A9 FC CA CE BC 8B FA E4 [15:05:44]CheckFolder [15:05:44]dirname=/storage/ofd_packets [15:05:44]CheckFolder done [15:05:44]ProducePacketName [15:05:44]name=ofd_packets/00228278 [15:05:44]NVStorageSaveData ofd_packets/00228278 [15:05:44]File name is /storage/ofd_packets/00228278 [15:05:44]Write 301 bytes [15:05:44]NVStorageSaveData done [15:05:44]OFDSenderStorePacket done [15:05:44]KKMCreateOFDPacket done [15:05:44]NVStorageSaveData kkm_last_timestamp [15:05:44]File name is /storage/kkm_last_timestamp [15:05:44]Write 4 bytes [15:05:44]NVStorageSaveData done [15:05:44]ExternCall_PrintAddStr [15:05:44]wPrintStart [15:05:44]Write to MH i2c: 01 00 00 94 48 DC [15:05:44]Write i2c OK [15:05:44]MH_I2C_Read... [15:05:44]Read from MH i2c: 01 [15:05:44]MH_I2C_Read... [15:05:44]Read from MH i2c: 01 07 00 [15:05:44]MH_I2C_Read... [15:05:44]Read from MH i2c: 01 07 00 94 48 00 00 00 00 00 FF 0F F1 [15:05:44]RasterBufferAndPrint [15:05:44]line Счет N : (1)1964755 [15:05:44]line ИНН: 02508201610067 [15:05:44]line Контрольно-Кассовый Чек [15:05:44]line ПРОДАЖА [15:05:44]line ТРК (МРК, ГНК) : 63 [15:05:44]line Товар: 2710124130 [15:05:44]line Аи-92-К-5 [15:05:44]line 7.480 * 66.90 [15:05:44]line = 500.41 [15:05:44]line НДС 12% НСП 1% [15:05:44]line > о реализуемом товаре [15:05:44]line ОКРУГЛЕНИЕ: -0.41 [15:05:44]line ИТОГО: 500.00 [15:05:44]line Внесено: 500.00 [15:05:44]line СДАЧА: 0.00 [15:05:44]line НСП 1% : 4.43 [15:05:44]line НДС 12% : 53.14 [15:05:44]line Наличными: 500.00 [15:05:44]line Безнал.: 0.00 [15:05:44]line Место: АЗС № 133 "Партнер Нефть" [15:05:44]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:05:44]line СНО: Общий режим [15:05:44]line Чек 242 22.10.2024 15:05 [15:05:44]line Смена: 535 ФФД: 1.0 [15:05:44]line ЗНМ: 0300000091 [15:05:44]line РНМ: 0000000000091685 [15:05:44]line Версия ККМ: 001 [15:05:44]line ФМ: 0000000000871839 [15:05:44]line ФД: 228278 [15:05:44]line ФПД: 150479953248616 [15:05:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T150547&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228278&fm=150479953248616&tin=02508201610067®Number=0000000000091685&sum=50000 [15:05:45]OFD Sender: Processing packet 228278 [packets to send 38, broken 37] [15:05:45]ProducePacketName [15:05:45]name=ofd_packets/00228278 [15:05:45]OFD Sender: To server: pG, [15:05:45]CommunicateWithHost lk.salyk.kg:30040 [15:05:45]ConnectInit lk.salyk.kg [15:05:45]written 0, free lines is 4095 [15:05:45]Connected sock=10 [15:05:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B0 1F 07 01 EA 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 4B BF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B6 7B 03 00 35 04 06 00 88 DC 58 28 C1 68 A9 FC CA CE BC 8B FA E4 [15:05:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 86 91 47 00 1E ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B6 7B 03 00 F4 03 04 00 43 6A 17 67 B6 04 01 00 00 00 F5 8B F1 61 55 62 56 [15:05:45]CommunicateWithHost err = 0 [15:05:45]CheckOFDResponse [15:05:45]1017 (14) - 77093643461234 [15:05:45]1041 (16) - 0000000000871839 [15:05:45]1040 (4) - 228278 [15:05:45]1012 (4) - 22.10.2024 09:02 [15:05:45]1206 (1) - 0 [15:05:45]OFD Sender: Remove packet 228278 [15:05:45]ProducePacketName [15:05:45]name=ofd_packets/00228278 [15:05:45]NVStorageDeleteData [15:05:45]Write to MH i2c: 01 00 00 BE 48 06 [15:05:45]Write i2c OK [15:05:45]MH_I2C_Read... [15:05:45]Read from MH i2c: 01 [15:05:45]MH_I2C_Read... [15:05:45]Read from MH i2c: 01 07 00 [15:05:45]MH_I2C_Read... [15:05:45]Read from MH i2c: 01 07 00 BE 48 00 00 00 00 00 BD 0C D6 [15:05:45]RasterBufferAndPrint [15:05:45]line [15:05:45]line [15:05:45]line [15:05:45]line [15:05:45]line [15:05:45]written 0, free lines is 3266 [15:05:45]MH_Cut [15:05:45]Write to MH i2c: D1 01 00 C5 48 01 DF [15:05:45]Write i2c OK [15:05:45]MH_I2C_Read... [15:05:45]Read from MH i2c: D1 [15:05:45]MH_I2C_Read... [15:05:45]Read from MH i2c: D1 01 00 [15:05:45]MH_I2C_Read... [15:05:45]Read from MH i2c: D1 01 00 C5 48 00 DE [15:05:45]Write to MH i2c: 01 00 00 C6 48 0E [15:05:45]Write i2c OK [15:05:45]MH_I2C_Read... [15:05:45]OFD Sender: No OFD packet to send [15:05:46]*** Cut start [15:05:46]*** Partial cut [15:05:46]*** CUTSNS_PIN = 1 [15:05:46]*** CUTSNS_PIN = 0 [15:05:46]*** Brake cut motor [15:05:46]Read from MH i2c: 01 [15:05:46]MH_I2C_Read... [15:05:46]*** Stop cut motor [15:05:46]*** Cut end [15:05:46]Read from MH i2c: 01 07 00 [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: 01 07 00 C6 48 00 00 00 00 00 FF 0F 23 [15:05:46]process_action close_receipt done [15:05:46]requested_data is exist [15:05:46]produce_requested_data [15:05:46]requested_item fm.sn is exist - process it [15:05:46]wFMCommunicate request_size=4 [15:05:46]MH_SAM_APDU [15:05:46]CAPDU: 80 11 00 00 [15:05:46]Write to MH i2c: E2 08 00 C7 48 80 11 00 00 00 00 00 00 89 [15:05:47]Write i2c OK [15:05:47]MH_I2C_Read... [15:05:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:47]Read from MH i2c: E2 [15:05:47]MH_I2C_Read... [15:05:47]Read from MH i2c: E2 17 00 [15:05:47]MH_I2C_Read... [15:05:47]Read from MH i2c: E2 17 00 C7 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E0 [15:05:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:05:47]wFMCommunicate OK [15:05:47]requested_item fd.num is exist - process it [15:05:47]SAM_PROTO_GetFieldsCounters [15:05:47]wFMCommunicate request_size=4 [15:05:47]MH_SAM_APDU [15:05:47]CAPDU: 80 13 00 00 [15:05:47]Write to MH i2c: E2 08 00 C8 48 80 13 00 00 00 00 00 00 8C [15:05:47]Write i2c OK [15:05:47]MH_I2C_Read... [15:05:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:47]Read from MH i2c: E2 [15:05:47]MH_I2C_Read... [15:05:47]Read from MH i2c: E2 62 00 [15:05:47]MH_I2C_Read... [15:05:47]Read from MH i2c: E2 62 00 C8 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B6 7B 03 00 0E 04 04 00 17 02 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 D8 [15:05:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B6 7B 03 00 0E 04 04 00 17 02 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 [15:05:47]wFMCommunicate OK [15:05:47]SAM_PROTO_GetFieldsCounters done [15:05:47]requested_item shift.num is exist - process it [15:05:47]requested_item shift.opened is exist - process it [15:05:47]req_shift_opened [15:05:47]FM_GetShiftState [15:05:47]SAM_PROTO_GetShiftState [15:05:47]wFMCommunicate request_size=4 [15:05:47]MH_SAM_APDU [15:05:47]CAPDU: 80 13 01 00 [15:05:47]Write to MH i2c: E2 08 00 C9 48 80 13 01 00 00 00 00 00 8E [15:05:47]Write i2c OK [15:05:47]MH_I2C_Read... [15:05:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:47]Read from MH i2c: E2 [15:05:47]MH_I2C_Read... [15:05:47]Read from MH i2c: E2 0E 00 [15:05:47]MH_I2C_Read... [15:05:47]Read from MH i2c: E2 0E 00 C9 48 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 55 [15:05:47]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:05:47]wFMCommunicate OK [15:05:47]SAM_PROTO_GetShiftState done [15:05:47]FM_GetShiftState done [15:05:47]req_shift_opened done [15:05:47]requested_item shift.open_date is exist - process it [15:05:47]req_shift_open_date [15:05:47]req_shift_open_date done [15:05:47]produce_requested_data done [15:05:47]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228278,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:05:47]process_action_free close_receipt [15:05:47]json_value_free [15:05:47]json_value_free done [15:05:47]process_json_proto returns [15:05:47]Send response to host [15:05:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228278,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:05:47]free response buf [15:05:47]execute_script done [15:05:47]execute_script returns [15:05:47]free content buf [15:05:47]Sock 7.Close socket [15:05:47]Sock 7.Thread stoped [15:05:50]OFD Sender: No OFD packet to send [15:05:55]OFD Sender: No OFD packet to send [15:06:00]OFD Sender: No OFD packet to send [15:06:05]OFD Sender: No OFD packet to send [15:06:10]OFD Sender: No OFD packet to send [15:06:15]OFD Sender: No OFD packet to send [15:06:20]OFD Sender: No OFD packet to send [15:06:25]OFD Sender: No OFD packet to send [15:06:30]OFD Sender: No OFD packet to send [15:06:35]OFD Sender: No OFD packet to send [15:06:40]OFD Sender: No OFD packet to send [15:06:45]OFD Sender: No OFD packet to send [15:06:50]OFD Sender: No OFD packet to send [15:06:55]OFD Sender: No OFD packet to send [15:07:00]OFD Sender: No OFD packet to send [15:07:05]OFD Sender: No OFD packet to send [15:07:10]OFD Sender: No OFD packet to send [15:07:15]OFD Sender: No OFD packet to send [15:07:20]OFD Sender: No OFD packet to send [15:07:25]OFD Sender: No OFD packet to send [15:07:30]OFD Sender: No OFD packet to send [15:07:33]accept exits with 9 [15:07:33]New connection [15:07:33]New thread 3066994020 created [15:07:33]Thread 3067137380 joined [15:07:33]Waiting for new connection... [15:07:33] Sock 9.Parse request [15:07:33]Sock 9.Check first char [15:07:33]Sock 9.First char is OK [15:07:33]request: POST /json_proto HTTP/1.0 [15:07:33]Method: POST [15:07:33]URL: /json_proto [15:07:33]Method is POST - this is cgi request [15:07:33]url: /json_proto [15:07:33]query_string will be loaded in cgi processing [15:07:33]execute_cgi json_proto POST (null) [15:07:33]execute_cgi path=json_proto method=POST [15:07:33]POST find Content-Length [15:07:33]Host: 172.17.44.195:8080 [15:07:33]Content-Length: 678 [15:07:33]Content-Type: application/json [15:07:33] [15:07:33]POST finish read [15:07:33]Found Content-Length = 678 [15:07:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:33]execute_script... [15: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)1964756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:33]POST & json_proto [15:07:33]process_json_proto [15:07:33]json parsed OK: [15:07:33]protocol is kg_v1.0 [15:07:33]action value=close_receipt [15:07:33]process_action close_receipt [15:07:33]cmd_close_receipt [15:07:33]MH_GetDate [15:07:33]Write to MH i2c: F0 00 00 CA 48 01 [15:07:33]Write i2c OK [15:07:33]MH_I2C_Read... [15:07:33]Read from MH i2c: F0 [15:07:33]MH_I2C_Read... [15:07:33]Read from MH i2c: F0 09 00 [15:07:33]MH_I2C_Read... [15:07:33]Read from MH i2c: F0 09 00 CA 48 00 BA BF 17 67 82 C9 CF 66 81 [15:07:33]GetLastDocTimeStamp 1729609547 [15:07:33]current date 1729609658 [15:07:33]FM_GetShiftState [15:07:33]SAM_PROTO_GetShiftState [15:07:33]wFMCommunicate request_size=4 [15:07:33]MH_SAM_APDU [15:07:33]CAPDU: 80 13 01 00 [15:07:33]Write to MH i2c: E2 08 00 CB 48 80 13 01 00 00 00 00 00 90 [15:07:33]Write i2c OK [15:07:33]MH_I2C_Read... [15:07:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:33]Read from MH i2c: E2 [15:07:33]MH_I2C_Read... [15:07:33]Read from MH i2c: E2 0E 00 [15:07:33]MH_I2C_Read... [15:07:33]Read from MH i2c: E2 0E 00 CB 48 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 57 [15:07:33]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:07:33]wFMCommunicate OK [15:07:33]SAM_PROTO_GetShiftState done [15:07:33]FM_GetShiftState done [15:07:33]opened in 1729555538 [15:07:33]opened+sec_in_day 1729641938 [15:07:33]quantity*price = 50041 [15:07:33]sum+1 = 50042 [15:07:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 243 22.10.2024 15:07 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228279 ФПД: 92865868354730 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T150738&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228279&fm=92865868354730&tin=02508201610067®Number=0000000000091685&sum=50000 [15:07:34]StoreToDocumentArchive [15:07:34]shift 535 fd 228279 [15:07:34]save to /storage/0535/doc_00228279 [15:07:34]save last doc name /storage/0535/doc_00228279 to /storage/kkm_last_doc_name [15:07:34]save OK [15:07:34]Clear old archive folders... [15:07:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:07:34]tlvbuf is 0093CC20 [15:07:34]SAM_PROTO_ClearQueue [15:07:34]wFMCommunicate request_size=4 [15:07:34]MH_SAM_APDU [15:07:34]CAPDU: 80 09 00 00 [15:07:34]Write to MH i2c: E2 08 00 D8 48 80 09 00 00 00 00 00 00 92 [15:07:34]Write i2c OK [15:07:34]MH_I2C_Read... [15:07:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:07:34]Read from MH i2c: E2 [15:07:34]MH_I2C_Read... [15:07:34]Read from MH i2c: E2 03 00 [15:07:34]MH_I2C_Read... [15:07:34]Read from MH i2c: E2 03 00 D8 48 00 90 00 94 [15:07:34]RAPDU: 90 00 [15:07:34]wFMCommunicate OK [15:07:34]SAM_PROTO_ClearQueue done [15:07:34]KKMCreateOFDPacket [15:07:34]OFDProtocolAddRootSTLVToBuf [15:07:34]FM_MakeSignedData [15:07:34]FM_MakeSignedData [15:07:34]SAM_PROTO_SignData [15:07:34]wFMCommunicate request_size=4 [15:07:34]MH_SAM_APDU [15:07:34]CAPDU: 80 0D 01 02 [15:07:34]Write to MH i2c: E2 08 00 D9 48 80 0D 01 02 00 00 00 00 9A [15:07:34]Write i2c OK [15:07:34]MH_I2C_Read... [15:07:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:07:34]Read from MH i2c: E2 [15:07:34]MH_I2C_Read... [15:07:34]Read from MH i2c: E2 03 00 [15:07:34]MH_I2C_Read... [15:07:34]Read from MH i2c: E2 03 00 D9 48 00 90 00 95 [15:07:34]RAPDU: 90 00 [15:07:34]wFMCommunicate OK [15:07:34]wFMCommunicate request_size=255 [15:07:34]MH_SAM_APDU [15:07: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 BA BF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B7 7B 03 00 35 04 06 00 54 [15:07:34]Write to MH i2c: E2 02 01 DA 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 BA BF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B7 7B 03 00 35 04 06 00 54 00 00 BD [15:07:34]Write i2c OK [15:07:34]MH_I2C_Read... [15:07:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:35]Read from MH i2c: E2 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: E2 03 00 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: E2 03 00 DA 48 00 90 00 96 [15:07:35]RAPDU: 90 00 [15:07:35]wFMCommunicate OK [15:07:35]wFMCommunicate request_size=10 [15:07:35]MH_SAM_APDU [15:07:35]CAPDU: 80 0D 02 02 05 76 05 18 54 AA [15:07:35]Write to MH i2c: E2 0D 00 DB 48 80 0D 02 02 05 00 76 05 18 54 AA 00 00 38 [15:07:35]Write i2c OK [15:07:35]MH_I2C_Read... [15:07:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:35]Read from MH i2c: E2 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: E2 03 00 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: E2 03 00 DB 48 00 90 00 97 [15:07:35]RAPDU: 90 00 [15:07:35]wFMCommunicate OK [15:07:35]wFMCommunicate request_size=4 [15:07:35]MH_SAM_APDU [15:07:35]CAPDU: 80 0D 03 02 [15:07:35]Write to MH i2c: E2 08 00 DC 48 80 0D 03 02 00 00 00 00 9F [15:07:35]Write i2c OK [15:07:35]MH_I2C_Read... [15:07:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:07:35]Read from MH i2c: E2 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: E2 0B 00 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: E2 0B 00 DC 48 00 5B 4B 7F 03 FE 06 BB 98 90 00 1F [15:07:35]RAPDU: 5B 4B 7F 03 FE 06 BB 98 90 00 [15:07:35]wFMCommunicate OK [15:07:35]SAM_PROTO_SignData done [15:07:35]FM_MakeSignedData done [15:07:35]CreateOFDProtocolMessage [15:07:35]wFMCommunicate request_size=4 [15:07:35]MH_SAM_APDU [15:07:35]CAPDU: 80 11 00 00 [15:07:35]Write to MH i2c: E2 08 00 DD 48 80 11 00 00 00 00 00 00 9F [15:07:35]Write i2c OK [15:07:35]MH_I2C_Read... [15:07:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:35]Read from MH i2c: E2 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: E2 17 00 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: E2 17 00 DD 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F6 [15:07:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:07:35]wFMCommunicate OK [15:07:35]CreateOFDProtocolMessage done [15:07:35]OFDSenderStorePacket 228279 [15:07:35]StoreOFDPacket docnum=228279 [15:07:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 58 57 07 01 9E 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 BA BF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B7 7B 03 00 35 04 06 00 54 76 05 18 54 AA 5B 4B 7F 03 FE 06 BB 98 [15:07:35]CheckFolder [15:07:35]dirname=/storage/ofd_packets [15:07:35]CheckFolder done [15:07:35]ProducePacketName [15:07:35]name=ofd_packets/00228279 [15:07:35]NVStorageSaveData ofd_packets/00228279 [15:07:35]File name is /storage/ofd_packets/00228279 [15:07:35]Write 301 bytes [15:07:35]NVStorageSaveData done [15:07:35]OFDSenderStorePacket done [15:07:35]KKMCreateOFDPacket done [15:07:35]NVStorageSaveData kkm_last_timestamp [15:07:35]File name is /storage/kkm_last_timestamp [15:07:35]Write 4 bytes [15:07:35]NVStorageSaveData done [15:07:35]ExternCall_PrintAddStr [15:07:35]wPrintStart [15:07:35]Write to MH i2c: 01 00 00 DE 48 26 [15:07:35]Write i2c OK [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: 01 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: 01 07 00 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: 01 07 00 DE 48 00 00 00 00 00 FF 0F 3B [15:07:35]RasterBufferAndPrint [15:07:35]line Счет N : (1)1964756 [15:07:35]line ИНН: 02508201610067 [15:07:35]line Контрольно-Кассовый Чек [15:07:35]line ПРОДАЖА [15:07:35]line ТРК (МРК, ГНК) : 43 [15:07:35]line Товар: 2710124130 [15:07:35]line Аи-92-К-5 [15:07:35]line 7.480 * 66.90 [15:07:35]line = 500.41 [15:07:35]line НДС 12% НСП 1% [15:07:35]line > о реализуемом товаре [15:07:35]line ОКРУГЛЕНИЕ: -0.41 [15:07:35]line ИТОГО: 500.00 [15:07:35]line Внесено: 500.00 [15:07:35]line СДАЧА: 0.00 [15:07:35]line НСП 1% : 4.43 [15:07:35]line НДС 12% : 53.14 [15:07:35]line Наличными: 500.00 [15:07:35]line Безнал.: 0.00 [15:07:35]line Место: АЗС № 133 "Партнер Нефть" [15:07:35]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:07:35]line СНО: Общий режим [15:07:35]line Чек 243 22.10.2024 15:07 [15:07:35]line Смена: 535 ФФД: 1.0 [15:07:35]line ЗНМ: 0300000091 [15:07:35]line РНМ: 0000000000091685 [15:07:35]line Версия ККМ: 001 [15:07:35]line ФМ: 0000000000871839 [15:07:35]line ФД: 228279 [15:07:35]line ФПД: 92865868354730 [15:07:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T150738&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228279&fm=92865868354730&tin=02508201610067®Number=0000000000091685&sum=50000 [15:07:35]OFD Sender: Processing packet 228279 [packets to send 38, broken 37] [15:07:35]ProducePacketName [15:07:35]name=ofd_packets/00228279 [15:07:35]OFD Sender: To server: pG, [15:07:35]CommunicateWithHost lk.salyk.kg:30040 [15:07:35]ConnectInit lk.salyk.kg [15:07:35]written 0, free lines is 4095 [15:07:35]Connected sock=10 [15:07:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 58 57 07 01 9E 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 BA BF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B7 7B 03 00 35 04 06 00 54 76 05 18 54 AA 5B 4B 7F 03 FE 06 BB 98 [15:07:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 7E 77 47 00 50 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B7 7B 03 00 F4 03 04 00 B2 6A 17 67 B6 04 01 00 00 77 91 9F D4 D6 DB FC 4D [15:07:35]CommunicateWithHost err = 0 [15:07:35]CheckOFDResponse [15:07:35]1017 (14) - 77093643461234 [15:07:35]1041 (16) - 0000000000871839 [15:07:35]1040 (4) - 228279 [15:07:35]1012 (4) - 22.10.2024 09:04 [15:07:35]1206 (1) - 0 [15:07:35]OFD Sender: Remove packet 228279 [15:07:35]ProducePacketName [15:07:35]name=ofd_packets/00228279 [15:07:35]NVStorageDeleteData [15:07:35]Write to MH i2c: 01 00 00 08 49 51 [15:07:35]Write i2c OK [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: 01 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: 01 07 00 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: 01 07 00 08 49 00 00 00 00 00 C1 0C 25 [15:07:35]RasterBufferAndPrint [15:07:35]line [15:07:35]line [15:07:35]line [15:07:35]line [15:07:35]line [15:07:35]written 0, free lines is 3269 [15:07:35]MH_Cut [15:07:35]Write to MH i2c: D1 01 00 0F 49 01 2A [15:07:35]Write i2c OK [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: D1 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: D1 01 00 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: D1 01 00 0F 49 00 29 [15:07:35]Write to MH i2c: 01 00 00 10 49 59 [15:07:35]Write i2c OK [15:07:35]MH_I2C_Read... [15:07:36]OFD Sender: No OFD packet to send [15:07:36]*** Cut start [15:07:36]*** Partial cut [15:07:36]*** CUTSNS_PIN = 1 [15:07:36]*** CUTSNS_PIN = 0 [15:07:37]*** Brake cut motor [15:07:37]Read from MH i2c: 01 [15:07:37]MH_I2C_Read... [15:07:37]*** Stop cut motor [15:07:37]*** Cut end [15:07:37]Read from MH i2c: 01 07 00 [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: 01 07 00 10 49 00 00 00 00 00 FF 0F 6E [15:07:37]process_action close_receipt done [15:07:37]requested_data is exist [15:07:37]produce_requested_data [15:07:37]requested_item fm.sn is exist - process it [15:07:37]wFMCommunicate request_size=4 [15:07:37]MH_SAM_APDU [15:07:37]CAPDU: 80 11 00 00 [15:07:37]Write to MH i2c: E2 08 00 11 49 80 11 00 00 00 00 00 00 D4 [15:07:37]Write i2c OK [15:07:37]MH_I2C_Read... [15:07:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:37]Read from MH i2c: E2 [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: E2 17 00 [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: E2 17 00 11 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2B [15:07:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:07:37]wFMCommunicate OK [15:07:37]requested_item fd.num is exist - process it [15:07:37]SAM_PROTO_GetFieldsCounters [15:07:37]wFMCommunicate request_size=4 [15:07:37]MH_SAM_APDU [15:07:37]CAPDU: 80 13 00 00 [15:07:37]Write to MH i2c: E2 08 00 12 49 80 13 00 00 00 00 00 00 D7 [15:07:37]Write i2c OK [15:07:37]MH_I2C_Read... [15:07:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:37]Read from MH i2c: E2 [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: E2 62 00 [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: E2 62 00 12 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B7 7B 03 00 0E 04 04 00 17 02 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 27 [15:07:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B7 7B 03 00 0E 04 04 00 17 02 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 [15:07:37]wFMCommunicate OK [15:07:37]SAM_PROTO_GetFieldsCounters done [15:07:37]requested_item shift.num is exist - process it [15:07:37]requested_item shift.opened is exist - process it [15:07:37]req_shift_opened [15:07:37]FM_GetShiftState [15:07:37]SAM_PROTO_GetShiftState [15:07:37]wFMCommunicate request_size=4 [15:07:37]MH_SAM_APDU [15:07:37]CAPDU: 80 13 01 00 [15:07:37]Write to MH i2c: E2 08 00 13 49 80 13 01 00 00 00 00 00 D9 [15:07:37]Write i2c OK [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: E2 [15:07:37]MH_I2C_Read... [15:07:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:37]Read from MH i2c: E2 0E 00 [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: E2 0E 00 13 49 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 A0 [15:07:37]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:07:37]wFMCommunicate OK [15:07:37]SAM_PROTO_GetShiftState done [15:07:37]FM_GetShiftState done [15:07:37]req_shift_opened done [15:07:37]requested_item shift.open_date is exist - process it [15:07:37]req_shift_open_date [15:07:37]req_shift_open_date done [15:07:37]produce_requested_data done [15:07:37]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228279,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:07:37]process_action_free close_receipt [15:07:37]json_value_free [15:07:37]json_value_free done [15:07:37]process_json_proto returns [15:07:37]Send response to host [15:07:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228279,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:07:37]free response buf [15:07:37]execute_script done [15:07:37]execute_script returns [15:07:37]free content buf [15:07:37]Sock 9.Close socket [15:07:37]Sock 9.Thread stoped [15:07:41]OFD Sender: No OFD packet to send [15:07:46]OFD Sender: No OFD packet to send [15:07:51]OFD Sender: No OFD packet to send [15:07:56]OFD Sender: No OFD packet to send [15:08:01]OFD Sender: No OFD packet to send [15:08:06]OFD Sender: No OFD packet to send [15:08:11]OFD Sender: No OFD packet to send [15:08:16]OFD Sender: No OFD packet to send [15:08:21]OFD Sender: No OFD packet to send [15:08:26]OFD Sender: No OFD packet to send [15:08:31]OFD Sender: No OFD packet to send [15:08:36]OFD Sender: No OFD packet to send [15:08:41]OFD Sender: No OFD packet to send [15:08:46]OFD Sender: No OFD packet to send [15:08:51]OFD Sender: No OFD packet to send [15:08:56]OFD Sender: No OFD packet to send [15:09:01]OFD Sender: No OFD packet to send [15:09:06]OFD Sender: No OFD packet to send [15:09:11]OFD Sender: No OFD packet to send [15:09:16]OFD Sender: No OFD packet to send [15:09:21]OFD Sender: No OFD packet to send [15:09:26]OFD Sender: No OFD packet to send [15:09:31]OFD Sender: No OFD packet to send [15:09:36]OFD Sender: No OFD packet to send [15:09:41]OFD Sender: No OFD packet to send [15:09:46]OFD Sender: No OFD packet to send [15:09:51]OFD Sender: No OFD packet to send [15:09:56]OFD Sender: No OFD packet to send [15:10:01]OFD Sender: No OFD packet to send [15:10:06]OFD Sender: No OFD packet to send [15:10:11]OFD Sender: No OFD packet to send [15:10:16]OFD Sender: No OFD packet to send [15:10:21]OFD Sender: No OFD packet to send [15:10:26]OFD Sender: No OFD packet to send [15:10:31]OFD Sender: No OFD packet to send [15:10:36]OFD Sender: No OFD packet to send [15:10:41]OFD Sender: No OFD packet to send [15:10:46]OFD Sender: No OFD packet to send [15:10:51]OFD Sender: No OFD packet to send [15:10:56]OFD Sender: No OFD packet to send [15:11:01]OFD Sender: No OFD packet to send [15:11:06]OFD Sender: No OFD packet to send [15:11:11]OFD Sender: No OFD packet to send [15:11:16]OFD Sender: No OFD packet to send [15:11:21]OFD Sender: No OFD packet to send [15:11:26]OFD Sender: No OFD packet to send [15:11:31]OFD Sender: No OFD packet to send [15:11:36]OFD Sender: No OFD packet to send [15:11:41]OFD Sender: No OFD packet to send [15:11:46]OFD Sender: No OFD packet to send [15:11:51]OFD Sender: No OFD packet to send [15:11:56]OFD Sender: No OFD packet to send [15:12:01]OFD Sender: No OFD packet to send [15:12:06]OFD Sender: No OFD packet to send [15:12:11]OFD Sender: No OFD packet to send [15:12:16]OFD Sender: No OFD packet to send [15:12:21]OFD Sender: No OFD packet to send [15:12:26]OFD Sender: No OFD packet to send [15:12:31]OFD Sender: No OFD packet to send [15:12:36]OFD Sender: No OFD packet to send [15:12:41]OFD Sender: No OFD packet to send [15:12:46]OFD Sender: No OFD packet to send [15:12:51]OFD Sender: No OFD packet to send [15:12:56]OFD Sender: No OFD packet to send [15:13:01]OFD Sender: No OFD packet to send [15:13:06]OFD Sender: No OFD packet to send [15:13:11]OFD Sender: No OFD packet to send [15:13:16]OFD Sender: No OFD packet to send [15:13:21]OFD Sender: No OFD packet to send [15:13:26]OFD Sender: No OFD packet to send [15:13:31]OFD Sender: No OFD packet to send [15:13:36]OFD Sender: No OFD packet to send [15:13:41]OFD Sender: No OFD packet to send [15:13:46]OFD Sender: No OFD packet to send [15:13:51]OFD Sender: No OFD packet to send [15:13:56]OFD Sender: No OFD packet to send [15:14:01]OFD Sender: No OFD packet to send [15:14:06]OFD Sender: No OFD packet to send [15:14:11]OFD Sender: No OFD packet to send [15:14:16]OFD Sender: No OFD packet to send [15:14:21]OFD Sender: No OFD packet to send [15:14:26]OFD Sender: No OFD packet to send [15:14:31]accept exits with 7 [15:14:31]New connection [15:14:31]New thread 3067137380 created [15:14:31]Thread 3066994020 joined [15:14:31]Waiting for new connection... [15:14:31] Sock 7.Parse request [15:14:31]Sock 7.Check first char [15:14:31]Sock 7.First char is OK [15:14:31]request: POST /json_proto HTTP/1.0 [15:14:31]Method: POST [15:14:31]URL: /json_proto [15:14:31]Method is POST - this is cgi request [15:14:31]url: /json_proto [15:14:31]query_string will be loaded in cgi processing [15:14:31]execute_cgi json_proto POST (null) [15:14:31]execute_cgi path=json_proto method=POST [15:14:31]POST find Content-Length [15:14:31]Host: 172.17.44.195:8080 [15:14:31]Content-Length: 680 [15:14:31]Content-Type: application/json [15:14:31] [15:14:31]POST finish read [15:14:31]Found Content-Length = 680 [15:14:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "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" ] } } [15:14:31]execute_script... [15: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)1964757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "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" ] } } [15:14:31]POST & json_proto [15:14:31]process_json_proto [15:14:31]json parsed OK: [15:14:31]protocol is kg_v1.0 [15:14:31]action value=close_receipt [15:14:31]process_action close_receipt [15:14:31]cmd_close_receipt [15:14:31]MH_GetDate [15:14:31]Write to MH i2c: F0 00 00 14 49 4C [15:14:31]Write i2c OK [15:14:31]MH_I2C_Read... [15:14:31]Read from MH i2c: F0 [15:14:31]MH_I2C_Read... [15:14:31]Read from MH i2c: F0 09 00 [15:14:31]MH_I2C_Read... [15:14:31]Read from MH i2c: F0 09 00 14 49 00 5B C1 17 67 82 C9 CF 66 6F [15:14:31]GetLastDocTimeStamp 1729609658 [15:14:31]current date 1729610075 [15:14:31]FM_GetShiftState [15:14:31]SAM_PROTO_GetShiftState [15:14:31]wFMCommunicate request_size=4 [15:14:31]MH_SAM_APDU [15:14:31]CAPDU: 80 13 01 00 [15:14:31]Write to MH i2c: E2 08 00 15 49 80 13 01 00 00 00 00 00 DB [15:14:31]Write i2c OK [15:14:31]MH_I2C_Read... [15:14:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:31]Read from MH i2c: E2 [15:14:31]MH_I2C_Read... [15:14:31]Read from MH i2c: E2 0E 00 [15:14:31]MH_I2C_Read... [15:14:31]Read from MH i2c: E2 0E 00 15 49 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 A2 [15:14:31]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:14:31]wFMCommunicate OK [15:14:31]SAM_PROTO_GetShiftState done [15:14:31]FM_GetShiftState done [15:14:31]opened in 1729555538 [15:14:31]opened+sec_in_day 1729641938 [15:14:31]quantity*price = 250012 [15:14:31]sum+1 = 250013 [15:14:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 244 22.10.2024 15:14 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228280 ФПД: 71111219946473 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151435&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228280&fm=71111219946473&tin=02508201610067®Number=0000000000091685&sum=250000 [15:14:32]StoreToDocumentArchive [15:14:32]shift 535 fd 228280 [15:14:32]save to /storage/0535/doc_00228280 [15:14:32]save last doc name /storage/0535/doc_00228280 to /storage/kkm_last_doc_name [15:14:32]save OK [15:14:32]Clear old archive folders... [15:14:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:14:32]tlvbuf is 008AF950 [15:14:32]SAM_PROTO_ClearQueue [15:14:32]wFMCommunicate request_size=4 [15:14:32]MH_SAM_APDU [15:14:32]CAPDU: 80 09 00 00 [15:14:32]Write to MH i2c: E2 08 00 22 49 80 09 00 00 00 00 00 00 DD [15:14:32]Write i2c OK [15:14:32]MH_I2C_Read... [15:14:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:32]Read from MH i2c: E2 [15:14:32]MH_I2C_Read... [15:14:32]Read from MH i2c: E2 03 00 [15:14:32]MH_I2C_Read... [15:14:32]Read from MH i2c: E2 03 00 22 49 00 90 00 DF [15:14:32]RAPDU: 90 00 [15:14:32]wFMCommunicate OK [15:14:32]SAM_PROTO_ClearQueue done [15:14:32]KKMCreateOFDPacket [15:14:32]OFDProtocolAddRootSTLVToBuf [15:14:32]FM_MakeSignedData [15:14:32]FM_MakeSignedData [15:14:32]SAM_PROTO_SignData [15:14:32]wFMCommunicate request_size=4 [15:14:32]MH_SAM_APDU [15:14:32]CAPDU: 80 0D 01 02 [15:14:32]Write to MH i2c: E2 08 00 23 49 80 0D 01 02 00 00 00 00 E5 [15:14:32]Write i2c OK [15:14:32]MH_I2C_Read... [15:14:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:32]Read from MH i2c: E2 [15:14:32]MH_I2C_Read... [15:14:32]Read from MH i2c: E2 03 00 [15:14:32]MH_I2C_Read... [15:14:32]Read from MH i2c: E2 03 00 23 49 00 90 00 E0 [15:14:32]RAPDU: 90 00 [15:14:32]wFMCommunicate OK [15:14:32]wFMCommunicate request_size=255 [15:14:32]MH_SAM_APDU [15:14: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 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 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 F4 00 00 00 F4 03 04 00 5B C1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B8 7B 03 00 35 04 06 00 40 AC DF 01 [15:14:32]Write to MH i2c: E2 02 01 24 49 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 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 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 F4 00 00 00 F4 03 04 00 5B C1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B8 7B 03 00 35 04 06 00 40 AC DF 01 00 00 7C [15:14:32]Write i2c OK [15:14:32]MH_I2C_Read... [15:14:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:32]Read from MH i2c: E2 [15:14:32]MH_I2C_Read... [15:14:32]Read from MH i2c: E2 03 00 [15:14:32]MH_I2C_Read... [15:14:32]Read from MH i2c: E2 03 00 24 49 00 90 00 E1 [15:14:32]RAPDU: 90 00 [15:14:32]wFMCommunicate OK [15:14:32]wFMCommunicate request_size=7 [15:14:32]MH_SAM_APDU [15:14:32]CAPDU: 80 0D 02 02 02 23 E9 [15:14:32]Write to MH i2c: E2 0A 00 25 49 80 0D 02 02 02 00 23 E9 00 00 F8 [15:14:32]Write i2c OK [15:14:32]MH_I2C_Read... [15:14:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:32]Read from MH i2c: E2 [15:14:32]MH_I2C_Read... [15:14:32]Read from MH i2c: E2 03 00 [15:14:32]MH_I2C_Read... [15:14:32]Read from MH i2c: E2 03 00 25 49 00 90 00 E2 [15:14:32]RAPDU: 90 00 [15:14:32]wFMCommunicate OK [15:14:32]wFMCommunicate request_size=4 [15:14:32]MH_SAM_APDU [15:14:32]CAPDU: 80 0D 03 02 [15:14:32]Write to MH i2c: E2 08 00 26 49 80 0D 03 02 00 00 00 00 EA [15:14:32]Write i2c OK [15:14:32]MH_I2C_Read... [15:14:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:32]Read from MH i2c: E2 [15:14:32]MH_I2C_Read... [15:14:32]Read from MH i2c: E2 0B 00 [15:14:32]MH_I2C_Read... [15:14:32]Read from MH i2c: E2 0B 00 26 49 00 AA 3A 52 FD 63 7B A0 B4 90 00 50 [15:14:32]RAPDU: AA 3A 52 FD 63 7B A0 B4 90 00 [15:14:32]wFMCommunicate OK [15:14:32]SAM_PROTO_SignData done [15:14:32]FM_MakeSignedData done [15:14:32]CreateOFDProtocolMessage [15:14:32]wFMCommunicate request_size=4 [15:14:32]MH_SAM_APDU [15:14:32]CAPDU: 80 11 00 00 [15:14:32]Write to MH i2c: E2 08 00 27 49 80 11 00 00 00 00 00 00 EA [15:14:32]Write i2c OK [15:14:32]MH_I2C_Read... [15:14:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:33]Read from MH i2c: E2 [15:14:33]MH_I2C_Read... [15:14:33]Read from MH i2c: E2 17 00 [15:14:33]MH_I2C_Read... [15:14:33]Read from MH i2c: E2 17 00 27 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 41 [15:14:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:14:33]wFMCommunicate OK [15:14:33]CreateOFDProtocolMessage done [15:14:33]OFDSenderStorePacket 228280 [15:14:33]StoreOFDPacket docnum=228280 [15:14:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 E8 4B 04 01 72 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 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 F4 00 00 00 F4 03 04 00 5B C1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B8 7B 03 00 35 04 06 00 40 AC DF 01 23 E9 AA 3A 52 FD 63 7B A0 B4 [15:14:33]CheckFolder [15:14:33]dirname=/storage/ofd_packets [15:14:33]CheckFolder done [15:14:33]ProducePacketName [15:14:33]name=ofd_packets/00228280 [15:14:33]NVStorageSaveData ofd_packets/00228280 [15:14:33]File name is /storage/ofd_packets/00228280 [15:14:33]Write 298 bytes [15:14:33]NVStorageSaveData done [15:14:33]OFDSenderStorePacket done [15:14:33]KKMCreateOFDPacket done [15:14:33]NVStorageSaveData kkm_last_timestamp [15:14:33]File name is /storage/kkm_last_timestamp [15:14:33]Write 4 bytes [15:14:33]NVStorageSaveData done [15:14:33]ExternCall_PrintAddStr [15:14:33]wPrintStart [15:14:33]Write to MH i2c: 01 00 00 28 49 71 [15:14:33]Write i2c OK [15:14:33]MH_I2C_Read... [15:14:33]Read from MH i2c: 01 [15:14:33]MH_I2C_Read... [15:14:33]Read from MH i2c: 01 07 00 [15:14:33]MH_I2C_Read... [15:14:33]Read from MH i2c: 01 07 00 28 49 00 00 00 00 00 FF 0F 86 [15:14:33]RasterBufferAndPrint [15:14:33]line Счет N : (1)1964757 [15:14:33]line ИНН: 02508201610067 [15:14:33]line Контрольно-Кассовый Чек [15:14:33]line ПРОДАЖА [15:14:33]line ТРК (МРК, ГНК) : 31 [15:14:33]line Товар: 2710194210 [15:14:33]line ДТ-К-5 [15:14:33]line 32.810 * 76.20 [15:14:33]line = 2500.12 [15:14:33]line НДС 12% НСП 1% [15:14:33]line > о реализуемом товаре [15:14:33]line ОКРУГЛЕНИЕ: -0.12 [15:14:33]line ИТОГО: 2500.00 [15:14:33]line Внесено: 2500.00 [15:14:33]line СДАЧА: 0.00 [15:14:33]line НСП 1% : 22.12 [15:14:33]line НДС 12% : 265.50 [15:14:33]line Наличными: 2500.00 [15:14:33]line Безнал.: 0.00 [15:14:33]line Место: АЗС № 133 "Партнер Нефть" [15:14:33]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:14:33]line СНО: Общий режим [15:14:33]line Чек 244 22.10.2024 15:14 [15:14:33]line Смена: 535 ФФД: 1.0 [15:14:33]line ЗНМ: 0300000091 [15:14:33]line РНМ: 0000000000091685 [15:14:33]line Версия ККМ: 001 [15:14:33]line ФМ: 0000000000871839 [15:14:33]line ФД: 228280 [15:14:33]line ФПД: 71111219946473 [15:14:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151435&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228280&fm=71111219946473&tin=02508201610067®Number=0000000000091685&sum=250000 [15:14:33]written 0, free lines is 4095 [15:14:33]OFD Sender: Processing packet 228280 [packets to send 38, broken 37] [15:14:33]ProducePacketName [15:14:33]name=ofd_packets/00228280 [15:14:33]OFD Sender: To server: pG, [15:14:33]CommunicateWithHost lk.salyk.kg:30040 [15:14:33]ConnectInit lk.salyk.kg [15:14:33]Connected sock=9 [15:14:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 E8 4B 04 01 72 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 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 F4 00 00 00 F4 03 04 00 5B C1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B8 7B 03 00 35 04 06 00 40 AC DF 01 23 E9 AA 3A 52 FD 63 7B A0 B4 [15:14:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 8B 14 47 00 D0 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B8 7B 03 00 F4 03 04 00 53 6C 17 67 B6 04 01 00 00 C5 E0 67 FA 79 4A 60 96 [15:14:33]CommunicateWithHost err = 0 [15:14:33]CheckOFDResponse [15:14:33]1017 (14) - 77093643461234 [15:14:33]1041 (16) - 0000000000871839 [15:14:33]1040 (4) - 228280 [15:14:33]1012 (4) - 22.10.2024 09:11 [15:14:33]1206 (1) - 0 [15:14:33]OFD Sender: Remove packet 228280 [15:14:33]ProducePacketName [15:14:33]name=ofd_packets/00228280 [15:14:33]NVStorageDeleteData [15:14:33]Write to MH i2c: 01 00 00 52 49 9B [15:14:33]Write i2c OK [15:14:33]MH_I2C_Read... [15:14:33]Read from MH i2c: 01 [15:14:33]MH_I2C_Read... [15:14:33]Read from MH i2c: 01 07 00 [15:14:33]MH_I2C_Read... [15:14:33]Read from MH i2c: 01 07 00 52 49 00 00 00 00 00 C1 0C 6F [15:14:33]RasterBufferAndPrint [15:14:33]line [15:14:33]line [15:14:33]line [15:14:33]line [15:14:33]line [15:14:33]written 0, free lines is 3270 [15:14:33]MH_Cut [15:14:33]Write to MH i2c: D1 01 00 59 49 01 74 [15:14:33]Write i2c OK [15:14:33]MH_I2C_Read... [15:14:33]Read from MH i2c: D1 [15:14:33]MH_I2C_Read... [15:14:33]Read from MH i2c: D1 01 00 [15:14:33]MH_I2C_Read... [15:14:33]Read from MH i2c: D1 01 00 59 49 00 73 [15:14:33]Write to MH i2c: 01 00 00 5A 49 A3 [15:14:33]Write i2c OK [15:14:33]MH_I2C_Read... [15:14:33]OFD Sender: No OFD packet to send [15:14:34]*** Cut start [15:14:34]*** Partial cut [15:14:34]*** CUTSNS_PIN = 1 [15:14:34]*** CUTSNS_PIN = 0 [15:14:34]*** Brake cut motor [15:14:34]Read from MH i2c: 01 [15:14:35]MH_I2C_Read... [15:14:35]*** Stop cut motor [15:14:35]*** Cut end [15:14:35]Read from MH i2c: 01 07 00 [15:14:35]MH_I2C_Read... [15:14:35]Read from MH i2c: 01 07 00 5A 49 00 00 00 00 00 FF 0F B8 [15:14:35]process_action close_receipt done [15:14:35]requested_data is exist [15:14:35]produce_requested_data [15:14:35]requested_item fm.sn is exist - process it [15:14:35]wFMCommunicate request_size=4 [15:14:35]MH_SAM_APDU [15:14:35]CAPDU: 80 11 00 00 [15:14:35]Write to MH i2c: E2 08 00 5B 49 80 11 00 00 00 00 00 00 1E [15:14:35]Write i2c OK [15:14:35]MH_I2C_Read... [15:14:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:35]Read from MH i2c: E2 [15:14:35]MH_I2C_Read... [15:14:35]Read from MH i2c: E2 17 00 [15:14:35]MH_I2C_Read... [15:14:35]Read from MH i2c: E2 17 00 5B 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 75 [15:14:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:14:35]wFMCommunicate OK [15:14:35]requested_item fd.num is exist - process it [15:14:35]SAM_PROTO_GetFieldsCounters [15:14:35]wFMCommunicate request_size=4 [15:14:35]MH_SAM_APDU [15:14:35]CAPDU: 80 13 00 00 [15:14:35]Write to MH i2c: E2 08 00 5C 49 80 13 00 00 00 00 00 00 21 [15:14:35]Write i2c OK [15:14:35]MH_I2C_Read... [15:14:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:35]Read from MH i2c: E2 [15:14:35]MH_I2C_Read... [15:14:35]Read from MH i2c: E2 62 00 [15:14:35]MH_I2C_Read... [15:14:35]Read from MH i2c: E2 62 00 5C 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B8 7B 03 00 0E 04 04 00 17 02 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 75 [15:14:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B8 7B 03 00 0E 04 04 00 17 02 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 [15:14:35]wFMCommunicate OK [15:14:35]SAM_PROTO_GetFieldsCounters done [15:14:35]requested_item shift.num is exist - process it [15:14:35]requested_item shift.opened is exist - process it [15:14:35]req_shift_opened [15:14:35]FM_GetShiftState [15:14:35]SAM_PROTO_GetShiftState [15:14:35]wFMCommunicate request_size=4 [15:14:35]MH_SAM_APDU [15:14:35]CAPDU: 80 13 01 00 [15:14:35]Write to MH i2c: E2 08 00 5D 49 80 13 01 00 00 00 00 00 23 [15:14:35]Write i2c OK [15:14:35]MH_I2C_Read... [15:14:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:35]Read from MH i2c: E2 [15:14:35]MH_I2C_Read... [15:14:35]Read from MH i2c: E2 0E 00 [15:14:35]MH_I2C_Read... [15:14:35]Read from MH i2c: E2 0E 00 5D 49 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 EA [15:14:35]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:14:35]wFMCommunicate OK [15:14:35]SAM_PROTO_GetShiftState done [15:14:35]FM_GetShiftState done [15:14:35]req_shift_opened done [15:14:35]requested_item shift.open_date is exist - process it [15:14:35]req_shift_open_date [15:14:35]req_shift_open_date done [15:14:35]produce_requested_data done [15:14:35]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228280,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:14:35]process_action_free close_receipt [15:14:35]json_value_free [15:14:35]json_value_free done [15:14:35]process_json_proto returns [15:14:35]Send response to host [15:14:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228280,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:14:35]free response buf [15:14:35]execute_script done [15:14:35]execute_script returns [15:14:35]free content buf [15:14:35]Sock 7.Close socket [15:14:35]Sock 7.Thread stoped [15:14:38]OFD Sender: No OFD packet to send [15:14:43]OFD Sender: No OFD packet to send [15:14:48]OFD Sender: No OFD packet to send [15:14:53]OFD Sender: No OFD packet to send [15:14:58]OFD Sender: No OFD packet to send [15:15:03]accept exits with 10 [15:15:03]New connection [15:15:03]New thread 3066994020 created [15:15:03]Thread 3067137380 joined [15:15:03]Waiting for new connection... [15:15:03] Sock 10.Parse request [15:15:03]Sock 10.Check first char [15:15:03]Sock 10.First char is OK [15:15:03]request: POST /json_proto HTTP/1.0 [15:15:03]Method: POST [15:15:03]URL: /json_proto [15:15:03]Method is POST - this is cgi request [15:15:03]url: /json_proto [15:15:03]query_string will be loaded in cgi processing [15:15:03]execute_cgi json_proto POST (null) [15:15:03]execute_cgi path=json_proto method=POST [15:15:03]POST find Content-Length [15:15:03]Host: 172.17.44.195:8080 [15:15:03]Content-Length: 678 [15:15:03]Content-Type: application/json [15:15:03] [15:15:03]POST finish read [15:15:03]Found Content-Length = 678 [15:15:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964758", "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" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [15:15:03]execute_script... [15:15: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)1964758", "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" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [15:15:03]POST & json_proto [15:15:03]process_json_proto [15:15:03]json parsed OK: [15:15:03]protocol is kg_v1.0 [15:15:03]action value=close_receipt [15:15:03]process_action close_receipt [15:15:03]cmd_close_receipt [15:15:03]MH_GetDate [15:15:03]Write to MH i2c: F0 00 00 5E 49 96 [15:15:03]Write i2c OK [15:15:03]MH_I2C_Read... [15:15:03]Read from MH i2c: F0 [15:15:03]MH_I2C_Read... [15:15:03]Read from MH i2c: F0 09 00 [15:15:03]MH_I2C_Read... [15:15:03]Read from MH i2c: F0 09 00 5E 49 00 7C C1 17 67 82 C9 CF 66 DA [15:15:03]GetLastDocTimeStamp 1729610075 [15:15:03]current date 1729610108 [15:15:03]FM_GetShiftState [15:15:03]SAM_PROTO_GetShiftState [15:15:03]wFMCommunicate request_size=4 [15:15:03]MH_SAM_APDU [15:15:03]CAPDU: 80 13 01 00 [15:15:03]Write to MH i2c: E2 08 00 5F 49 80 13 01 00 00 00 00 00 25 [15:15:03]Write i2c OK [15:15:03]MH_I2C_Read... [15:15:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:03]Read from MH i2c: E2 [15:15:03]MH_I2C_Read... [15:15:03]Read from MH i2c: E2 0E 00 [15:15:03]MH_I2C_Read... [15:15:03]Read from MH i2c: E2 0E 00 5F 49 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 EC [15:15:03]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:15:03]wFMCommunicate OK [15:15:03]SAM_PROTO_GetShiftState done [15:15:03]FM_GetShiftState done [15:15:03]opened in 1729555538 [15:15:03]opened+sec_in_day 1729641938 [15:15:03]quantity*price = 20003 [15:15:03]sum+1 = 20004 [15:15:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 245 22.10.2024 15:15 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228281 ФПД: 58389925114054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151508&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228281&fm=58389925114054&tin=02508201610067®Number=0000000000091685&sum=20000 [15:15:04]StoreToDocumentArchive [15:15:04]shift 535 fd 228281 [15:15:04]save to /storage/0535/doc_00228281 [15:15:04]save last doc name /storage/0535/doc_00228281 to /storage/kkm_last_doc_name [15:15:04]save OK [15:15:04]Clear old archive folders... [15:15:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:15:04]tlvbuf is 00A816F0 [15:15:04]SAM_PROTO_ClearQueue [15:15:04]wFMCommunicate request_size=4 [15:15:04]MH_SAM_APDU [15:15:04]CAPDU: 80 09 00 00 [15:15:04]Write to MH i2c: E2 08 00 6C 49 80 09 00 00 00 00 00 00 27 [15:15:04]Write i2c OK [15:15:04]MH_I2C_Read... [15:15:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:04]Read from MH i2c: E2 [15:15:04]MH_I2C_Read... [15:15:04]Read from MH i2c: E2 03 00 [15:15:04]MH_I2C_Read... [15:15:04]Read from MH i2c: E2 03 00 6C 49 00 90 00 29 [15:15:04]RAPDU: 90 00 [15:15:04]wFMCommunicate OK [15:15:04]SAM_PROTO_ClearQueue done [15:15:04]KKMCreateOFDPacket [15:15:04]OFDProtocolAddRootSTLVToBuf [15:15:04]FM_MakeSignedData [15:15:04]FM_MakeSignedData [15:15:04]SAM_PROTO_SignData [15:15:04]wFMCommunicate request_size=4 [15:15:04]MH_SAM_APDU [15:15:04]CAPDU: 80 0D 01 02 [15:15:04]Write to MH i2c: E2 08 00 6D 49 80 0D 01 02 00 00 00 00 2F [15:15:04]Write i2c OK [15:15:04]MH_I2C_Read... [15:15:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:04]Read from MH i2c: E2 [15:15:04]MH_I2C_Read... [15:15:04]Read from MH i2c: E2 03 00 [15:15:04]MH_I2C_Read... [15:15:04]Read from MH i2c: E2 03 00 6D 49 00 90 00 2A [15:15:04]RAPDU: 90 00 [15:15:04]wFMCommunicate OK [15:15:04]wFMCommunicate request_size=255 [15:15:04]MH_SAM_APDU [15:15: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 7C C1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B9 7B 03 00 35 04 06 00 35 [15:15:04]Write to MH i2c: E2 02 01 6E 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 7C C1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B9 7B 03 00 35 04 06 00 35 00 00 BD [15:15:04]Write i2c OK [15:15:04]MH_I2C_Read... [15:15:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:05]Read from MH i2c: E2 [15:15:05]MH_I2C_Read... [15:15:05]Read from MH i2c: E2 03 00 [15:15:05]MH_I2C_Read... [15:15:05]Read from MH i2c: E2 03 00 6E 49 00 90 00 2B [15:15:05]RAPDU: 90 00 [15:15:05]wFMCommunicate OK [15:15:05]wFMCommunicate request_size=10 [15:15:05]MH_SAM_APDU [15:15:05]CAPDU: 80 0D 02 02 05 1A F6 BE B0 C6 [15:15:05]Write to MH i2c: E2 0D 00 6F 49 80 0D 02 02 05 00 1A F6 BE B0 C6 00 00 80 [15:15:05]Write i2c OK [15:15:05]MH_I2C_Read... [15:15:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:05]Read from MH i2c: E2 [15:15:05]MH_I2C_Read... [15:15:05]Read from MH i2c: E2 03 00 [15:15:05]MH_I2C_Read... [15:15:05]Read from MH i2c: E2 03 00 6F 49 00 90 00 2C [15:15:05]RAPDU: 90 00 [15:15:05]wFMCommunicate OK [15:15:05]wFMCommunicate request_size=4 [15:15:05]MH_SAM_APDU [15:15:05]CAPDU: 80 0D 03 02 [15:15:05]Write to MH i2c: E2 08 00 70 49 80 0D 03 02 00 00 00 00 34 [15:15:05]Write i2c OK [15:15:05]MH_I2C_Read... [15:15:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:05]Read from MH i2c: E2 [15:15:05]MH_I2C_Read... [15:15:05]Read from MH i2c: E2 0B 00 [15:15:05]MH_I2C_Read... [15:15:05]Read from MH i2c: E2 0B 00 70 49 00 70 DD F8 BB 02 80 F2 F1 90 00 9A [15:15:05]RAPDU: 70 DD F8 BB 02 80 F2 F1 90 00 [15:15:05]wFMCommunicate OK [15:15:05]SAM_PROTO_SignData done [15:15:05]FM_MakeSignedData done [15:15:05]CreateOFDProtocolMessage [15:15:05]wFMCommunicate request_size=4 [15:15:05]MH_SAM_APDU [15:15:05]CAPDU: 80 11 00 00 [15:15:05]Write to MH i2c: E2 08 00 71 49 80 11 00 00 00 00 00 00 34 [15:15:05]Write i2c OK [15:15:05]MH_I2C_Read... [15:15:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:05]Read from MH i2c: E2 [15:15:05]MH_I2C_Read... [15:15:05]Read from MH i2c: E2 17 00 [15:15:05]MH_I2C_Read... [15:15:05]Read from MH i2c: E2 17 00 71 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8B [15:15:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:15:05]wFMCommunicate OK [15:15:05]CreateOFDProtocolMessage done [15:15:05]OFDSenderStorePacket 228281 [15:15:05]StoreOFDPacket docnum=228281 [15:15:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 2C F1 07 01 FD 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 7C C1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B9 7B 03 00 35 04 06 00 35 1A F6 BE B0 C6 70 DD F8 BB 02 80 F2 F1 [15:15:05]CheckFolder [15:15:05]dirname=/storage/ofd_packets [15:15:05]CheckFolder done [15:15:05]ProducePacketName [15:15:05]name=ofd_packets/00228281 [15:15:05]NVStorageSaveData ofd_packets/00228281 [15:15:05]File name is /storage/ofd_packets/00228281 [15:15:05]Write 301 bytes [15:15:05]NVStorageSaveData done [15:15:05]OFDSenderStorePacket done [15:15:05]KKMCreateOFDPacket done [15:15:05]NVStorageSaveData kkm_last_timestamp [15:15:05]File name is /storage/kkm_last_timestamp [15:15:05]Write 4 bytes [15:15:05]NVStorageSaveData done [15:15:05]ExternCall_PrintAddStr [15:15:05]wPrintStart [15:15:05]Write to MH i2c: 01 00 00 72 49 BB [15:15:05]Write i2c OK [15:15:05]MH_I2C_Read... [15:15:05]Read from MH i2c: 01 [15:15:05]MH_I2C_Read... [15:15:05]Read from MH i2c: 01 07 00 [15:15:05]MH_I2C_Read... [15:15:05]Read from MH i2c: 01 07 00 72 49 00 00 00 00 00 FF 0F D0 [15:15:05]RasterBufferAndPrint [15:15:05]line Счет N : (1)1964758 [15:15:05]line ИНН: 02508201610067 [15:15:05]line Контрольно-Кассовый Чек [15:15:05]line ПРОДАЖА [15:15:05]line ТРК (МРК, ГНК) : 53 [15:15:05]line Товар: 2710124130 [15:15:05]line Аи-92-К-5 [15:15:05]line 2.990 * 66.90 [15:15:05]line = 200.03 [15:15:05]line НДС 12% НСП 1% [15:15:05]line > о реализуемом товаре [15:15:05]line ОКРУГЛЕНИЕ: -0.03 [15:15:05]line ИТОГО: 200.00 [15:15:05]line Внесено: 200.00 [15:15:05]line СДАЧА: 0.00 [15:15:05]line НСП 1% : 1.77 [15:15:05]line НДС 12% : 21.24 [15:15:05]line Наличными: 200.00 [15:15:05]line Безнал.: 0.00 [15:15:05]line Место: АЗС № 133 "Партнер Нефть" [15:15:05]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:15:05]line СНО: Общий режим [15:15:05]line Чек 245 22.10.2024 15:15 [15:15:05]line Смена: 535 ФФД: 1.0 [15:15:05]line ЗНМ: 0300000091 [15:15:05]line РНМ: 0000000000091685 [15:15:05]line Версия ККМ: 001 [15:15:05]line ФМ: 0000000000871839 [15:15:05]line ФД: 228281 [15:15:05]line ФПД: 58389925114054 [15:15:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151508&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228281&fm=58389925114054&tin=02508201610067®Number=0000000000091685&sum=20000 [15:15:05]written 0, free lines is 4095 [15:15:05]OFD Sender: Processing packet 228281 [packets to send 38, broken 37] [15:15:05]ProducePacketName [15:15:05]name=ofd_packets/00228281 [15:15:05]OFD Sender: To server: pG, [15:15:05]CommunicateWithHost lk.salyk.kg:30040 [15:15:05]ConnectInit lk.salyk.kg [15:15:05]Connected sock=9 [15:15:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 2C F1 07 01 FD 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 7C C1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B9 7B 03 00 35 04 06 00 35 1A F6 BE B0 C6 70 DD F8 BB 02 80 F2 F1 [15:15:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 1D B7 47 00 F9 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B9 7B 03 00 F4 03 04 00 74 6C 17 67 B6 04 01 00 00 67 DA 07 59 E3 0F B8 E5 [15:15:06]CommunicateWithHost err = 0 [15:15:06]CheckOFDResponse [15:15:06]1017 (14) - 77093643461234 [15:15:06]1041 (16) - 0000000000871839 [15:15:06]1040 (4) - 228281 [15:15:06]1012 (4) - 22.10.2024 09:12 [15:15:06]1206 (1) - 0 [15:15:06]OFD Sender: Remove packet 228281 [15:15:06]ProducePacketName [15:15:06]name=ofd_packets/00228281 [15:15:06]NVStorageDeleteData [15:15:06]Write to MH i2c: 01 00 00 9C 49 E5 [15:15:06]Write i2c OK [15:15:06]MH_I2C_Read... [15:15:06]Read from MH i2c: 01 [15:15:06]MH_I2C_Read... [15:15:06]Read from MH i2c: 01 07 00 [15:15:06]MH_I2C_Read... [15:15:06]Read from MH i2c: 01 07 00 9C 49 00 00 00 00 00 C3 0C BB [15:15:06]RasterBufferAndPrint [15:15:06]line [15:15:06]line [15:15:06]line [15:15:06]line [15:15:06]line [15:15:06]written 0, free lines is 3272 [15:15:06]MH_Cut [15:15:06]Write to MH i2c: D1 01 00 A3 49 01 BE [15:15:06]Write i2c OK [15:15:06]MH_I2C_Read... [15:15:06]Read from MH i2c: D1 [15:15:06]MH_I2C_Read... [15:15:06]Read from MH i2c: D1 01 00 [15:15:06]MH_I2C_Read... [15:15:06]Read from MH i2c: D1 01 00 A3 49 00 BD [15:15:06]Write to MH i2c: 01 00 00 A4 49 ED [15:15:06]Write i2c OK [15:15:06]MH_I2C_Read... [15:15:06]OFD Sender: No OFD packet to send [15:15:07]*** Cut start [15:15:07]*** Partial cut [15:15:07]*** CUTSNS_PIN = 1 [15:15:07]*** CUTSNS_PIN = 0 [15:15:07]*** Brake cut motor [15:15:07]Read from MH i2c: 01 [15:15:07]MH_I2C_Read... [15:15:07]*** Stop cut motor [15:15:07]*** Cut end [15:15:07]Read from MH i2c: 01 07 00 [15:15:07]MH_I2C_Read... [15:15:07]Read from MH i2c: 01 07 00 A4 49 00 00 00 00 00 FF 0F 02 [15:15:07]process_action close_receipt done [15:15:07]requested_data is exist [15:15:07]produce_requested_data [15:15:07]requested_item fm.sn is exist - process it [15:15:07]wFMCommunicate request_size=4 [15:15:07]MH_SAM_APDU [15:15:07]CAPDU: 80 11 00 00 [15:15:07]Write to MH i2c: E2 08 00 A5 49 80 11 00 00 00 00 00 00 68 [15:15:07]Write i2c OK [15:15:07]MH_I2C_Read... [15:15:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:07]Read from MH i2c: E2 [15:15:07]MH_I2C_Read... [15:15:07]Read from MH i2c: E2 17 00 [15:15:07]MH_I2C_Read... [15:15:07]Read from MH i2c: E2 17 00 A5 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BF [15:15:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:15:07]wFMCommunicate OK [15:15:07]requested_item fd.num is exist - process it [15:15:07]SAM_PROTO_GetFieldsCounters [15:15:07]wFMCommunicate request_size=4 [15:15:07]MH_SAM_APDU [15:15:07]CAPDU: 80 13 00 00 [15:15:07]Write to MH i2c: E2 08 00 A6 49 80 13 00 00 00 00 00 00 6B [15:15:07]Write i2c OK [15:15:07]MH_I2C_Read... [15:15:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:07]Read from MH i2c: E2 [15:15:07]MH_I2C_Read... [15:15:07]Read from MH i2c: E2 62 00 [15:15:07]MH_I2C_Read... [15:15:07]Read from MH i2c: E2 62 00 A6 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B9 7B 03 00 0E 04 04 00 17 02 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 C3 [15:15:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B9 7B 03 00 0E 04 04 00 17 02 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 [15:15:07]wFMCommunicate OK [15:15:07]SAM_PROTO_GetFieldsCounters done [15:15:07]requested_item shift.num is exist - process it [15:15:07]requested_item shift.opened is exist - process it [15:15:07]req_shift_opened [15:15:07]FM_GetShiftState [15:15:07]SAM_PROTO_GetShiftState [15:15:07]wFMCommunicate request_size=4 [15:15:07]MH_SAM_APDU [15:15:07]CAPDU: 80 13 01 00 [15:15:07]Write to MH i2c: E2 08 00 A7 49 80 13 01 00 00 00 00 00 6D [15:15:07]Write i2c OK [15:15:07]MH_I2C_Read... [15:15:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:07]Read from MH i2c: E2 [15:15:07]MH_I2C_Read... [15:15:07]Read from MH i2c: E2 0E 00 [15:15:07]MH_I2C_Read... [15:15:07]Read from MH i2c: E2 0E 00 A7 49 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 34 [15:15:07]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:15:07]wFMCommunicate OK [15:15:07]SAM_PROTO_GetShiftState done [15:15:07]FM_GetShiftState done [15:15:07]req_shift_opened done [15:15:07]requested_item shift.open_date is exist - process it [15:15:07]req_shift_open_date [15:15:07]req_shift_open_date done [15:15:07]produce_requested_data done [15:15:07]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228281,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:15:07]process_action_free close_receipt [15:15:07]json_value_free [15:15:07]json_value_free done [15:15:07]process_json_proto returns [15:15:07]Send response to host [15:15:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228281,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:15:07]free response buf [15:15:07]execute_script done [15:15:07]execute_script returns [15:15:07]free content buf [15:15:07]Sock 10.Close socket [15:15:07]Sock 10.Thread stoped [15:15:11]OFD Sender: No OFD packet to send [15:15:16]OFD Sender: No OFD packet to send [15:15:21]OFD Sender: No OFD packet to send [15:15:26]OFD Sender: No OFD packet to send [15:15:31]OFD Sender: No OFD packet to send [15:15:36]OFD Sender: No OFD packet to send [15:15:41]OFD Sender: No OFD packet to send [15:15:46]OFD Sender: No OFD packet to send [15:15:50]accept exits with 7 [15:15:50]New connection [15:15:50]New thread 3067137380 created [15:15:50]Thread 3066994020 joined [15:15:50]Waiting for new connection... [15:15:50] Sock 7.Parse request [15:15:50]Sock 7.Check first char [15:15:50]Sock 7.First char is OK [15:15:50]request: POST /json_proto HTTP/1.0 [15:15:50]Method: POST [15:15:50]URL: /json_proto [15:15:50]Method is POST - this is cgi request [15:15:50]url: /json_proto [15:15:50]query_string will be loaded in cgi processing [15:15:50]execute_cgi json_proto POST (null) [15:15:50]execute_cgi path=json_proto method=POST [15:15:50]POST find Content-Length [15:15:50]Host: 172.17.44.195:8080 [15:15:50]Content-Length: 680 [15:15:50]Content-Type: application/json [15:15:50] [15:15:50]POST finish read [15:15:50]Found Content-Length = 680 [15:15:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 17.070, "sum" : 1300.73, "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" ] } } [15:15:50]execute_script... [15:15: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)1964759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 17.070, "sum" : 1300.73, "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" ] } } [15:15:50]POST & json_proto [15:15:50]process_json_proto [15:15:50]json parsed OK: [15:15:50]protocol is kg_v1.0 [15:15:50]action value=close_receipt [15:15:50]process_action close_receipt [15:15:50]cmd_close_receipt [15:15:50]MH_GetDate [15:15:50]Write to MH i2c: F0 00 00 A8 49 E0 [15:15:50]Write i2c OK [15:15:50]MH_I2C_Read... [15:15:50]Read from MH i2c: F0 [15:15:50]MH_I2C_Read... [15:15:50]Read from MH i2c: F0 09 00 [15:15:50]MH_I2C_Read... [15:15:50]Read from MH i2c: F0 09 00 A8 49 00 AB C1 17 67 82 C9 CF 66 53 [15:15:50]GetLastDocTimeStamp 1729610108 [15:15:50]current date 1729610155 [15:15:50]FM_GetShiftState [15:15:50]SAM_PROTO_GetShiftState [15:15:50]wFMCommunicate request_size=4 [15:15:50]MH_SAM_APDU [15:15:50]CAPDU: 80 13 01 00 [15:15:50]Write to MH i2c: E2 08 00 A9 49 80 13 01 00 00 00 00 00 6F [15:15:50]Write i2c OK [15:15:50]MH_I2C_Read... [15:15:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:50]Read from MH i2c: E2 [15:15:50]MH_I2C_Read... [15:15:50]Read from MH i2c: E2 0E 00 [15:15:50]MH_I2C_Read... [15:15:50]Read from MH i2c: E2 0E 00 A9 49 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 36 [15:15:50]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:15:50]wFMCommunicate OK [15:15:50]SAM_PROTO_GetShiftState done [15:15:50]FM_GetShiftState done [15:15:50]opened in 1729555538 [15:15:50]opened+sec_in_day 1729641938 [15:15:50]quantity*price = 130073 [15:15:50]sum+1 = 130074 [15:15:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.13 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 246 22.10.2024 15:15 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228282 ФПД: 153091401540643 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151555&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228282&fm=153091401540643&tin=02508201610067®Number=0000000000091685&sum=130000 [15:15:52]StoreToDocumentArchive [15:15:52]shift 535 fd 228282 [15:15:52]save to /storage/0535/doc_00228282 [15:15:52]save last doc name /storage/0535/doc_00228282 to /storage/kkm_last_doc_name [15:15:52]save OK [15:15:52]Clear old archive folders... [15:15:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:15:52]tlvbuf is 0093A640 [15:15:52]SAM_PROTO_ClearQueue [15:15:52]wFMCommunicate request_size=4 [15:15:52]MH_SAM_APDU [15:15:52]CAPDU: 80 09 00 00 [15:15:52]Write to MH i2c: E2 08 00 B6 49 80 09 00 00 00 00 00 00 71 [15:15:52]Write i2c OK [15:15:52]MH_I2C_Read... [15:15:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:52]Read from MH i2c: E2 [15:15:52]MH_I2C_Read... [15:15:52]Read from MH i2c: E2 03 00 [15:15:52]MH_I2C_Read... [15:15:52]Read from MH i2c: E2 03 00 B6 49 00 90 00 73 [15:15:52]RAPDU: 90 00 [15:15:52]wFMCommunicate OK [15:15:52]SAM_PROTO_ClearQueue done [15:15:52]KKMCreateOFDPacket [15:15:52]OFDProtocolAddRootSTLVToBuf [15:15:52]FM_MakeSignedData [15:15:52]FM_MakeSignedData [15:15:52]SAM_PROTO_SignData [15:15:52]wFMCommunicate request_size=4 [15:15:52]MH_SAM_APDU [15:15:52]CAPDU: 80 0D 01 02 [15:15:52]Write to MH i2c: E2 08 00 B7 49 80 0D 01 02 00 00 00 00 79 [15:15:52]Write i2c OK [15:15:52]MH_I2C_Read... [15:15:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:52]Read from MH i2c: E2 [15:15:52]MH_I2C_Read... [15:15:52]Read from MH i2c: E2 03 00 [15:15:52]MH_I2C_Read... [15:15:52]Read from MH i2c: E2 03 00 B7 49 00 90 00 74 [15:15:52]RAPDU: 90 00 [15:15:52]wFMCommunicate OK [15:15:52]wFMCommunicate request_size=255 [15:15:52]MH_SAM_APDU [15:15: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 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 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 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 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 F6 00 00 00 F4 03 04 00 AB C1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BA 7B 03 00 35 04 06 00 8B 3C 5E 9B [15:15:52]Write to MH i2c: E2 02 01 B8 49 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 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 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 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 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 F6 00 00 00 F4 03 04 00 AB C1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BA 7B 03 00 35 04 06 00 8B 3C 5E 9B 00 00 FB [15:15:52]Write i2c OK [15:15:52]MH_I2C_Read... [15:15:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:52]Read from MH i2c: E2 [15:15:52]MH_I2C_Read... [15:15:52]Read from MH i2c: E2 03 00 [15:15:52]MH_I2C_Read... [15:15:52]Read from MH i2c: E2 03 00 B8 49 00 90 00 75 [15:15:52]RAPDU: 90 00 [15:15:52]wFMCommunicate OK [15:15:52]wFMCommunicate request_size=7 [15:15:52]MH_SAM_APDU [15:15:52]CAPDU: 80 0D 02 02 02 64 23 [15:15:52]Write to MH i2c: E2 0A 00 B9 49 80 0D 02 02 02 00 64 23 00 00 07 [15:15:52]Write i2c OK [15:15:52]MH_I2C_Read... [15:15:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:52]Read from MH i2c: E2 [15:15:52]MH_I2C_Read... [15:15:52]Read from MH i2c: E2 03 00 [15:15:52]MH_I2C_Read... [15:15:52]Read from MH i2c: E2 03 00 B9 49 00 90 00 76 [15:15:52]RAPDU: 90 00 [15:15:52]wFMCommunicate OK [15:15:52]wFMCommunicate request_size=4 [15:15:52]MH_SAM_APDU [15:15:52]CAPDU: 80 0D 03 02 [15:15:52]Write to MH i2c: E2 08 00 BA 49 80 0D 03 02 00 00 00 00 7E [15:15:52]Write i2c OK [15:15:52]MH_I2C_Read... [15:15:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:52]Read from MH i2c: E2 [15:15:52]MH_I2C_Read... [15:15:52]Read from MH i2c: E2 0B 00 [15:15:52]MH_I2C_Read... [15:15:52]Read from MH i2c: E2 0B 00 BA 49 00 48 52 7E D3 19 06 4D A5 90 00 7B [15:15:52]RAPDU: 48 52 7E D3 19 06 4D A5 90 00 [15:15:52]wFMCommunicate OK [15:15:52]SAM_PROTO_SignData done [15:15:52]FM_MakeSignedData done [15:15:52]CreateOFDProtocolMessage [15:15:52]wFMCommunicate request_size=4 [15:15:52]MH_SAM_APDU [15:15:52]CAPDU: 80 11 00 00 [15:15:52]Write to MH i2c: E2 08 00 BB 49 80 11 00 00 00 00 00 00 7E [15:15:52]Write i2c OK [15:15:52]MH_I2C_Read... [15:15:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:52]Read from MH i2c: E2 [15:15:52]MH_I2C_Read... [15:15:52]Read from MH i2c: E2 17 00 [15:15:52]MH_I2C_Read... [15:15:52]Read from MH i2c: E2 17 00 BB 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D5 [15:15:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:15:52]wFMCommunicate OK [15:15:52]CreateOFDProtocolMessage done [15:15:52]OFDSenderStorePacket 228282 [15:15:52]StoreOFDPacket docnum=228282 [15:15:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 D6 1F 04 01 DF 04 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 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 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 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 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 F6 00 00 00 F4 03 04 00 AB C1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BA 7B 03 00 35 04 06 00 8B 3C 5E 9B 64 23 48 52 7E D3 19 06 4D A5 [15:15:52]CheckFolder [15:15:52]dirname=/storage/ofd_packets [15:15:52]CheckFolder done [15:15:52]ProducePacketName [15:15:52]name=ofd_packets/00228282 [15:15:52]NVStorageSaveData ofd_packets/00228282 [15:15:52]File name is /storage/ofd_packets/00228282 [15:15:52]Write 298 bytes [15:15:52]NVStorageSaveData done [15:15:52]OFDSenderStorePacket done [15:15:52]KKMCreateOFDPacket done [15:15:52]NVStorageSaveData kkm_last_timestamp [15:15:52]File name is /storage/kkm_last_timestamp [15:15:52]Write 4 bytes [15:15:52]NVStorageSaveData done [15:15:52]ExternCall_PrintAddStr [15:15:52]wPrintStart [15:15:52]Write to MH i2c: 01 00 00 BC 49 05 [15:15:52]Write i2c OK [15:15:52]MH_I2C_Read... [15:15:52]Read from MH i2c: 01 [15:15:52]MH_I2C_Read... [15:15:52]Read from MH i2c: 01 07 00 [15:15:52]MH_I2C_Read... [15:15:52]Read from MH i2c: 01 07 00 BC 49 00 00 00 00 00 FF 0F 1A [15:15:52]RasterBufferAndPrint [15:15:52]line Счет N : (1)1964759 [15:15:52]line ИНН: 02508201610067 [15:15:52]line Контрольно-Кассовый Чек [15:15:52]line ПРОДАЖА [15:15:52]line ТРК (МРК, ГНК) : 41 [15:15:52]line Товар: 2710194210 [15:15:52]line ДТ-К-5 [15:15:52]line 17.070 * 76.20 [15:15:52]line = 1300.73 [15:15:52]line НДС 12% НСП 1% [15:15:52]line > о реализуемом товаре [15:15:52]line ОКРУГЛЕНИЕ: -0.73 [15:15:52]line ИТОГО: 1300.00 [15:15:52]line Внесено: 1300.00 [15:15:52]line СДАЧА: 0.00 [15:15:52]line НСП 1% : 11.51 [15:15:52]line НДС 12% : 138.13 [15:15:52]line Наличными: 1300.00 [15:15:52]line Безнал.: 0.00 [15:15:52]line Место: АЗС № 133 "Партнер Нефть" [15:15:52]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:15:52]line СНО: Общий режим [15:15:52]line Чек 246 22.10.2024 15:15 [15:15:52]line Смена: 535 ФФД: 1.0 [15:15:52]line ЗНМ: 0300000091 [15:15:52]line РНМ: 0000000000091685 [15:15:52]line Версия ККМ: 001 [15:15:52]line ФМ: 0000000000871839 [15:15:52]line ФД: 228282 [15:15:52]line ФПД: 153091401540643 [15:15:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151555&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228282&fm=153091401540643&tin=02508201610067®Number=0000000000091685&sum=130000 [15:15:52]OFD Sender: Processing packet 228282 [packets to send 38, broken 37] [15:15:52]ProducePacketName [15:15:52]name=ofd_packets/00228282 [15:15:52]OFD Sender: To server: pG, [15:15:52]CommunicateWithHost lk.salyk.kg:30040 [15:15:52]ConnectInit lk.salyk.kg [15:15:52]written 0, free lines is 4095 [15:15:53]Connected sock=10 [15:15:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 D6 1F 04 01 DF 04 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 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 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 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 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 F6 00 00 00 F4 03 04 00 AB C1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BA 7B 03 00 35 04 06 00 8B 3C 5E 9B 64 23 48 52 7E D3 19 06 4D A5 [15:15:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 F0 36 47 00 AA B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BA 7B 03 00 F4 03 04 00 A3 6C 17 67 B6 04 01 00 00 B5 29 87 05 C5 05 9D 8A [15:15:53]CommunicateWithHost err = 0 [15:15:53]CheckOFDResponse [15:15:53]1017 (14) - 77093643461234 [15:15:53]1041 (16) - 0000000000871839 [15:15:53]1040 (4) - 228282 [15:15:53]1012 (4) - 22.10.2024 09:13 [15:15:53]1206 (1) - 0 [15:15:53]OFD Sender: Remove packet 228282 [15:15:53]ProducePacketName [15:15:53]name=ofd_packets/00228282 [15:15:53]NVStorageDeleteData [15:15:53]Write to MH i2c: 01 00 00 E6 49 2F [15:15:53]Write i2c OK [15:15:53]MH_I2C_Read... [15:15:53]Read from MH i2c: 01 [15:15:53]MH_I2C_Read... [15:15:53]Read from MH i2c: 01 07 00 [15:15:53]MH_I2C_Read... [15:15:53]Read from MH i2c: 01 07 00 E6 49 00 00 00 00 00 C1 0C 03 [15:15:53]RasterBufferAndPrint [15:15:53]line [15:15:53]line [15:15:53]line [15:15:53]line [15:15:53]line [15:15:53]written 0, free lines is 3269 [15:15:53]MH_Cut [15:15:53]Write to MH i2c: D1 01 00 ED 49 01 08 [15:15:53]Write i2c OK [15:15:53]MH_I2C_Read... [15:15:53]Read from MH i2c: D1 [15:15:53]MH_I2C_Read... [15:15:53]Read from MH i2c: D1 01 00 [15:15:53]MH_I2C_Read... [15:15:53]Read from MH i2c: D1 01 00 ED 49 00 07 [15:15:53]Write to MH i2c: 01 00 00 EE 49 37 [15:15:53]Write i2c OK [15:15:53]MH_I2C_Read... [15:15:53]OFD Sender: No OFD packet to send [15:15:54]*** Cut start [15:15:54]*** Partial cut [15:15:54]*** CUTSNS_PIN = 1 [15:15:54]*** CUTSNS_PIN = 0 [15:15:54]*** Brake cut motor [15:15:54]Read from MH i2c: 01 [15:15:54]MH_I2C_Read... [15:15:54]*** Stop cut motor [15:15:54]*** Cut end [15:15:54]Read from MH i2c: 01 07 00 [15:15:54]MH_I2C_Read... [15:15:54]Read from MH i2c: 01 07 00 EE 49 00 00 00 00 00 FF 0F 4C [15:15:54]process_action close_receipt done [15:15:54]requested_data is exist [15:15:54]produce_requested_data [15:15:54]requested_item fm.sn is exist - process it [15:15:54]wFMCommunicate request_size=4 [15:15:54]MH_SAM_APDU [15:15:54]CAPDU: 80 11 00 00 [15:15:54]Write to MH i2c: E2 08 00 EF 49 80 11 00 00 00 00 00 00 B2 [15:15:54]Write i2c OK [15:15:54]MH_I2C_Read... [15:15:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:54]Read from MH i2c: E2 [15:15:54]MH_I2C_Read... [15:15:54]Read from MH i2c: E2 17 00 [15:15:54]MH_I2C_Read... [15:15:54]Read from MH i2c: E2 17 00 EF 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 09 [15:15:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:15:54]wFMCommunicate OK [15:15:54]requested_item fd.num is exist - process it [15:15:54]SAM_PROTO_GetFieldsCounters [15:15:54]wFMCommunicate request_size=4 [15:15:54]MH_SAM_APDU [15:15:54]CAPDU: 80 13 00 00 [15:15:54]Write to MH i2c: E2 08 00 F0 49 80 13 00 00 00 00 00 00 B5 [15:15:54]Write i2c OK [15:15:54]MH_I2C_Read... [15:15:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:55]Read from MH i2c: E2 [15:15:55]MH_I2C_Read... [15:15:55]Read from MH i2c: E2 62 00 [15:15:55]MH_I2C_Read... [15:15:55]Read from MH i2c: E2 62 00 F0 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 BA 7B 03 00 0E 04 04 00 17 02 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 11 [15:15:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 BA 7B 03 00 0E 04 04 00 17 02 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 [15:15:55]wFMCommunicate OK [15:15:55]SAM_PROTO_GetFieldsCounters done [15:15:55]requested_item shift.num is exist - process it [15:15:55]requested_item shift.opened is exist - process it [15:15:55]req_shift_opened [15:15:55]FM_GetShiftState [15:15:55]SAM_PROTO_GetShiftState [15:15:55]wFMCommunicate request_size=4 [15:15:55]MH_SAM_APDU [15:15:55]CAPDU: 80 13 01 00 [15:15:55]Write to MH i2c: E2 08 00 F1 49 80 13 01 00 00 00 00 00 B7 [15:15:55]Write i2c OK [15:15:55]MH_I2C_Read... [15:15:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:55]Read from MH i2c: E2 [15:15:55]MH_I2C_Read... [15:15:55]Read from MH i2c: E2 0E 00 [15:15:55]MH_I2C_Read... [15:15:55]Read from MH i2c: E2 0E 00 F1 49 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 7E [15:15:55]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:15:55]wFMCommunicate OK [15:15:55]SAM_PROTO_GetShiftState done [15:15:55]FM_GetShiftState done [15:15:55]req_shift_opened done [15:15:55]requested_item shift.open_date is exist - process it [15:15:55]req_shift_open_date [15:15:55]req_shift_open_date done [15:15:55]produce_requested_data done [15:15:55]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228282,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:15:55]process_action_free close_receipt [15:15:55]json_value_free [15:15:55]json_value_free done [15:15:55]process_json_proto returns [15:15:55]Send response to host [15:15:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228282,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:15:55]free response buf [15:15:55]execute_script done [15:15:55]execute_script returns [15:15:55]free content buf [15:15:55]Sock 7.Close socket [15:15:55]Sock 7.Thread stoped [15:15:58]OFD Sender: No OFD packet to send [15:16:03]OFD Sender: No OFD packet to send [15:16:08]OFD Sender: No OFD packet to send [15:16:13]OFD Sender: No OFD packet to send [15:16:18]OFD Sender: No OFD packet to send [15:16:23]OFD Sender: No OFD packet to send [15:16:28]OFD Sender: No OFD packet to send [15:16:33]OFD Sender: No OFD packet to send [15:16:38]OFD Sender: No OFD packet to send [15:16:43]OFD Sender: No OFD packet to send [15:16:48]OFD Sender: No OFD packet to send [15:16:53]OFD Sender: No OFD packet to send [15:16:58]OFD Sender: No OFD packet to send [15:17:03]OFD Sender: No OFD packet to send [15:17:08]OFD Sender: No OFD packet to send [15:17:13]OFD Sender: No OFD packet to send [15:17:18]OFD Sender: No OFD packet to send [15:17:23]OFD Sender: No OFD packet to send [15:17:28]OFD Sender: No OFD packet to send [15:17:33]OFD Sender: No OFD packet to send [15:17:38]OFD Sender: No OFD packet to send [15:17:43]OFD Sender: No OFD packet to send [15:17:48]OFD Sender: No OFD packet to send [15:17:53]OFD Sender: No OFD packet to send [15:17:58]OFD Sender: No OFD packet to send [15:18:03]OFD Sender: No OFD packet to send [15:18:08]OFD Sender: No OFD packet to send [15:18:13]OFD Sender: No OFD packet to send [15:18:18]OFD Sender: No OFD packet to send [15:18:23]OFD Sender: No OFD packet to send [15:18:28]OFD Sender: No OFD packet to send [15:18:29]accept exits with 9 [15:18:29]New connection [15:18:29]New thread 3066994020 created [15:18:29]Thread 3067137380 joined [15:18:29]Waiting for new connection... [15:18:29] Sock 9.Parse request [15:18:29]Sock 9.Check first char [15:18:29]Sock 9.First char is OK [15:18:29]request: POST /json_proto HTTP/1.0 [15:18:29]Method: POST [15:18:29]URL: /json_proto [15:18:29]Method is POST - this is cgi request [15:18:29]url: /json_proto [15:18:29]query_string will be loaded in cgi processing [15:18:29]execute_cgi json_proto POST (null) [15:18:29]execute_cgi path=json_proto method=POST [15:18:29]POST find Content-Length [15:18:29]Host: 172.17.44.195:8080 [15:18:29]Content-Length: 752 [15:18:29]Content-Type: application/json [15:18:29] [15:18:29]POST finish read [15:18:29]Found Content-Length = 752 [15:18:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 13.130, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30093357", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:29]execute_script... [15:18:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 13.130, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30093357", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:29]POST & json_proto [15:18:29]process_json_proto [15:18:29]json parsed OK: [15:18:29]protocol is kg_v1.0 [15:18:29]action value=close_receipt [15:18:29]process_action close_receipt [15:18:29]cmd_close_receipt [15:18:29]MH_GetDate [15:18:29]Write to MH i2c: F0 00 00 F2 49 2A [15:18:29]Write i2c OK [15:18:29]MH_I2C_Read... [15:18:29]Read from MH i2c: F0 [15:18:29]MH_I2C_Read... [15:18:29]Read from MH i2c: F0 09 00 [15:18:29]MH_I2C_Read... [15:18:29]Read from MH i2c: F0 09 00 F2 49 00 4A C2 17 67 82 C9 CF 66 3D [15:18:29]GetLastDocTimeStamp 1729610155 [15:18:29]current date 1729610314 [15:18:29]FM_GetShiftState [15:18:29]SAM_PROTO_GetShiftState [15:18:29]wFMCommunicate request_size=4 [15:18:29]MH_SAM_APDU [15:18:29]CAPDU: 80 13 01 00 [15:18:29]Write to MH i2c: E2 08 00 F3 49 80 13 01 00 00 00 00 00 B9 [15:18:29]Write i2c OK [15:18:29]MH_I2C_Read... [15:18:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:29]Read from MH i2c: E2 [15:18:29]MH_I2C_Read... [15:18:29]Read from MH i2c: E2 0E 00 [15:18:29]MH_I2C_Read... [15:18:29]Read from MH i2c: E2 0E 00 F3 49 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 80 [15:18:29]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:18:29]wFMCommunicate OK [15:18:29]SAM_PROTO_GetShiftState done [15:18:29]FM_GetShiftState done [15:18:29]opened in 1729555538 [15:18:29]opened+sec_in_day 1729641938 [15:18:29]quantity*price = 0 [15:18:29]sum+1 = 1 [15:18:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 247 22.10.2024 15:18 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: ТК ГПНА Online 30093357 ФМ: 0000000000871839 ФД: 228283 ФПД: 134194474701147 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151834&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228283&fm=134194474701147&tin=02508201610067®Number=0000000000091685&sum=0 [15:18:31]StoreToDocumentArchive [15:18:31]shift 535 fd 228283 [15:18:31]save to /storage/0535/doc_00228283 [15:18:31]save last doc name /storage/0535/doc_00228283 to /storage/kkm_last_doc_name [15:18:31]save OK [15:18:31]Clear old archive folders... [15:18:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:18:31]tlvbuf is 008EB2B0 [15:18:31]SAM_PROTO_ClearQueue [15:18:31]wFMCommunicate request_size=4 [15:18:31]MH_SAM_APDU [15:18:31]CAPDU: 80 09 00 00 [15:18:31]Write to MH i2c: E2 08 00 00 4A 80 09 00 00 00 00 00 00 BC [15:18:31]Write i2c OK [15:18:31]MH_I2C_Read... [15:18:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:18:31]Read from MH i2c: E2 [15:18:31]MH_I2C_Read... [15:18:31]Read from MH i2c: E2 03 00 [15:18:31]MH_I2C_Read... [15:18:31]Read from MH i2c: E2 03 00 00 4A 00 90 00 BE [15:18:31]RAPDU: 90 00 [15:18:31]wFMCommunicate OK [15:18:31]SAM_PROTO_ClearQueue done [15:18:31]KKMCreateOFDPacket [15:18:31]OFDProtocolAddRootSTLVToBuf [15:18:31]FM_MakeSignedData [15:18:31]FM_MakeSignedData [15:18:31]SAM_PROTO_SignData [15:18:31]wFMCommunicate request_size=4 [15:18:31]MH_SAM_APDU [15:18:31]CAPDU: 80 0D 01 02 [15:18:31]Write to MH i2c: E2 08 00 01 4A 80 0D 01 02 00 00 00 00 C4 [15:18:31]Write i2c OK [15:18:31]MH_I2C_Read... [15:18:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:18:31]Read from MH i2c: E2 [15:18:31]MH_I2C_Read... [15:18:31]Read from MH i2c: E2 03 00 [15:18:31]MH_I2C_Read... [15:18:31]Read from MH i2c: E2 03 00 01 4A 00 90 00 BF [15:18:31]RAPDU: 90 00 [15:18:31]wFMCommunicate OK [15:18:31]wFMCommunicate request_size=255 [15:18:31]MH_SAM_APDU [15:18:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 4A C2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BB 7B 03 00 35 04 06 00 7A 0C 95 FE [15:18:31]Write to MH i2c: E2 02 01 02 4A 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 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 4A C2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BB 7B 03 00 35 04 06 00 7A 0C 95 FE 00 00 92 [15:18:31]Write i2c OK [15:18:31]MH_I2C_Read... [15:18:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:31]Read from MH i2c: E2 [15:18:31]MH_I2C_Read... [15:18:31]Read from MH i2c: E2 03 00 [15:18:31]MH_I2C_Read... [15:18:31]Read from MH i2c: E2 03 00 02 4A 00 90 00 C0 [15:18:31]RAPDU: 90 00 [15:18:31]wFMCommunicate OK [15:18:31]wFMCommunicate request_size=7 [15:18:31]MH_SAM_APDU [15:18:31]CAPDU: 80 0D 02 02 02 D1 5B [15:18:31]Write to MH i2c: E2 0A 00 03 4A 80 0D 02 02 02 00 D1 5B 00 00 F7 [15:18:31]Write i2c OK [15:18:31]MH_I2C_Read... [15:18:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:31]Read from MH i2c: E2 [15:18:31]MH_I2C_Read... [15:18:31]Read from MH i2c: E2 03 00 [15:18:31]MH_I2C_Read... [15:18:31]Read from MH i2c: E2 03 00 03 4A 00 90 00 C1 [15:18:31]RAPDU: 90 00 [15:18:31]wFMCommunicate OK [15:18:31]wFMCommunicate request_size=4 [15:18:31]MH_SAM_APDU [15:18:31]CAPDU: 80 0D 03 02 [15:18:31]Write to MH i2c: E2 08 00 04 4A 80 0D 03 02 00 00 00 00 C9 [15:18:31]Write i2c OK [15:18:31]MH_I2C_Read... [15:18:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:18:31]Read from MH i2c: E2 [15:18:31]MH_I2C_Read... [15:18:31]Read from MH i2c: E2 0B 00 [15:18:31]MH_I2C_Read... [15:18:31]Read from MH i2c: E2 0B 00 04 4A 00 58 18 5D DC 0C B4 69 6B 90 00 07 [15:18:31]RAPDU: 58 18 5D DC 0C B4 69 6B 90 00 [15:18:31]wFMCommunicate OK [15:18:31]SAM_PROTO_SignData done [15:18:31]FM_MakeSignedData done [15:18:31]CreateOFDProtocolMessage [15:18:31]wFMCommunicate request_size=4 [15:18:31]MH_SAM_APDU [15:18:31]CAPDU: 80 11 00 00 [15:18:31]Write to MH i2c: E2 08 00 05 4A 80 11 00 00 00 00 00 00 C9 [15:18:31]Write i2c OK [15:18:31]MH_I2C_Read... [15:18:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:31]Read from MH i2c: E2 [15:18:31]MH_I2C_Read... [15:18:31]Read from MH i2c: E2 17 00 [15:18:31]MH_I2C_Read... [15:18:31]Read from MH i2c: E2 17 00 05 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 20 [15:18:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:18:31]wFMCommunicate OK [15:18:31]CreateOFDProtocolMessage done [15:18:31]OFDSenderStorePacket 228283 [15:18:31]StoreOFDPacket docnum=228283 [15:18:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 6F F5 04 01 7B 16 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 4A C2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BB 7B 03 00 35 04 06 00 7A 0C 95 FE D1 5B 58 18 5D DC 0C B4 69 6B [15:18:31]CheckFolder [15:18:31]dirname=/storage/ofd_packets [15:18:31]CheckFolder done [15:18:31]ProducePacketName [15:18:31]name=ofd_packets/00228283 [15:18:31]NVStorageSaveData ofd_packets/00228283 [15:18:31]File name is /storage/ofd_packets/00228283 [15:18:31]Write 298 bytes [15:18:31]NVStorageSaveData done [15:18:31]OFDSenderStorePacket done [15:18:31]KKMCreateOFDPacket done [15:18:31]NVStorageSaveData kkm_last_timestamp [15:18:31]File name is /storage/kkm_last_timestamp [15:18:31]Write 4 bytes [15:18:31]NVStorageSaveData done [15:18:31]ExternCall_PrintAddStr [15:18:31]wPrintStart [15:18:31]Write to MH i2c: 01 00 00 06 4A 50 [15:18:31]Write i2c OK [15:18:31]MH_I2C_Read... [15:18:31]Read from MH i2c: 01 [15:18:31]MH_I2C_Read... [15:18:31]Read from MH i2c: 01 07 00 [15:18:31]MH_I2C_Read... [15:18:31]Read from MH i2c: 01 07 00 06 4A 00 00 00 00 00 FF 0F 65 [15:18:31]RasterBufferAndPrint [15:18:31]line Счет N : (1)1964760 [15:18:31]line ИНН: 02508201610067 [15:18:31]line Контрольно-Кассовый Чек [15:18:31]line ПРОДАЖА [15:18:31]line ТРК (МРК, ГНК) : 31 [15:18:31]line Товар: 2710194210 [15:18:31]line ДТ-К-5 [15:18:31]line 13.130 * 0.00 [15:18:31]line = 0.00 [15:18:31]line НДС 12% НСП 1% [15:18:31]line > о реализуемом товаре [15:18:31]line ИТОГО: 0.00 [15:18:31]line НСП 1% : 0.00 [15:18:31]line НДС 12% : 0.00 [15:18:31]line Наличными: 0.00 [15:18:31]line Безнал.: 0.00 [15:18:31]line Место: АЗС № 133 "Партнер Нефть" [15:18:31]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:18:31]line СНО: Общий режим [15:18:31]line Чек 247 22.10.2024 15:18 [15:18:31]line Смена: 535 ФФД: 1.0 [15:18:31]line ЗНМ: 0300000091 [15:18:31]line РНМ: 0000000000091685 [15:18:31]line Версия ККМ: 001 [15:18:31]line Талоны: ТК ГПНА Online [15:18:31]line 30093357 [15:18:31]line ФМ: 0000000000871839 [15:18:31]line ФД: 228283 [15:18:31]line ФПД: 134194474701147 [15:18:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151834&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228283&fm=134194474701147&tin=02508201610067®Number=0000000000091685&sum=0 [15:18:31]OFD Sender: Processing packet 228283 [packets to send 38, broken 37] [15:18:31]ProducePacketName [15:18:31]name=ofd_packets/00228283 [15:18:31]OFD Sender: To server: pG, [15:18:31]CommunicateWithHost lk.salyk.kg:30040 [15:18:31]ConnectInit lk.salyk.kg [15:18:31]written 0, free lines is 4095 [15:18:32]Connected sock=10 [15:18:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 6F F5 04 01 7B 16 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 4A C2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BB 7B 03 00 35 04 06 00 7A 0C 95 FE D1 5B 58 18 5D DC 0C B4 69 6B [15:18:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 C2 AB 47 00 7F 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 38 37 31 38 33 39 10 04 04 00 BB 7B 03 00 F4 03 04 00 42 6D 17 67 B6 04 01 00 00 4A 5F AE 03 96 C1 DC 64 [15:18:32]CommunicateWithHost err = 0 [15:18:32]CheckOFDResponse [15:18:32]1017 (14) - 77093643461234 [15:18:32]1041 (16) - 0000000000871839 [15:18:32]1040 (4) - 228283 [15:18:32]1012 (4) - 22.10.2024 09:15 [15:18:32]1206 (1) - 0 [15:18:32]OFD Sender: Remove packet 228283 [15:18:32]ProducePacketName [15:18:32]name=ofd_packets/00228283 [15:18:32]NVStorageDeleteData [15:18:32]Write to MH i2c: 01 00 00 2F 4A 79 [15:18:32]Write i2c OK [15:18:32]MH_I2C_Read... [15:18:32]Read from MH i2c: 01 [15:18:32]MH_I2C_Read... [15:18:32]Read from MH i2c: 01 07 00 [15:18:32]MH_I2C_Read... [15:18:32]Read from MH i2c: 01 07 00 2F 4A 00 00 00 00 00 D3 0C 5F [15:18:32]RasterBufferAndPrint [15:18:32]line [15:18:32]line [15:18:32]line [15:18:32]line [15:18:32]line [15:18:32]written 0, free lines is 3287 [15:18:32]MH_Cut [15:18:32]Write to MH i2c: D1 01 00 36 4A 01 52 [15:18:32]Write i2c OK [15:18:32]MH_I2C_Read... [15:18:32]Read from MH i2c: D1 [15:18:32]MH_I2C_Read... [15:18:32]Read from MH i2c: D1 01 00 [15:18:32]MH_I2C_Read... [15:18:32]Read from MH i2c: D1 01 00 36 4A 00 51 [15:18:32]Write to MH i2c: 01 00 00 37 4A 81 [15:18:32]Write i2c OK [15:18:32]MH_I2C_Read... [15:18:32]OFD Sender: No OFD packet to send [15:18:33]*** Cut start [15:18:33]*** Partial cut [15:18:33]*** CUTSNS_PIN = 1 [15:18:33]*** CUTSNS_PIN = 0 [15:18:33]*** Brake cut motor [15:18:33]Read from MH i2c: 01 [15:18:33]MH_I2C_Read... [15:18:33]*** Stop cut motor [15:18:33]*** Cut end [15:18:33]Read from MH i2c: 01 07 00 [15:18:33]MH_I2C_Read... [15:18:33]Read from MH i2c: 01 07 00 37 4A 00 00 00 00 00 FF 0F 96 [15:18:33]process_action close_receipt done [15:18:33]requested_data is exist [15:18:33]produce_requested_data [15:18:33]requested_item fm.sn is exist - process it [15:18:33]wFMCommunicate request_size=4 [15:18:33]MH_SAM_APDU [15:18:33]CAPDU: 80 11 00 00 [15:18:33]Write to MH i2c: E2 08 00 38 4A 80 11 00 00 00 00 00 00 FC [15:18:33]Write i2c OK [15:18:33]MH_I2C_Read... [15:18:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:33]Read from MH i2c: E2 [15:18:33]MH_I2C_Read... [15:18:33]Read from MH i2c: E2 17 00 [15:18:33]MH_I2C_Read... [15:18:33]Read from MH i2c: E2 17 00 38 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 53 [15:18:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:18:33]wFMCommunicate OK [15:18:33]requested_item fd.num is exist - process it [15:18:33]SAM_PROTO_GetFieldsCounters [15:18:33]wFMCommunicate request_size=4 [15:18:33]MH_SAM_APDU [15:18:33]CAPDU: 80 13 00 00 [15:18:33]Write to MH i2c: E2 08 00 39 4A 80 13 00 00 00 00 00 00 FF [15:18:33]Write i2c OK [15:18:33]MH_I2C_Read... [15:18:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:18:34]Read from MH i2c: E2 [15:18:34]MH_I2C_Read... [15:18:34]Read from MH i2c: E2 62 00 [15:18:34]MH_I2C_Read... [15:18:34]Read from MH i2c: E2 62 00 39 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 BB 7B 03 00 0E 04 04 00 17 02 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 5F [15:18:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 BB 7B 03 00 0E 04 04 00 17 02 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 [15:18:34]wFMCommunicate OK [15:18:34]SAM_PROTO_GetFieldsCounters done [15:18:34]requested_item shift.num is exist - process it [15:18:34]requested_item shift.opened is exist - process it [15:18:34]req_shift_opened [15:18:34]FM_GetShiftState [15:18:34]SAM_PROTO_GetShiftState [15:18:34]wFMCommunicate request_size=4 [15:18:34]MH_SAM_APDU [15:18:34]CAPDU: 80 13 01 00 [15:18:34]Write to MH i2c: E2 08 00 3A 4A 80 13 01 00 00 00 00 00 01 [15:18:34]Write i2c OK [15:18:34]MH_I2C_Read... [15:18:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:34]Read from MH i2c: E2 [15:18:34]MH_I2C_Read... [15:18:34]Read from MH i2c: E2 0E 00 [15:18:34]MH_I2C_Read... [15:18:34]Read from MH i2c: E2 0E 00 3A 4A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 C8 [15:18:34]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:18:34]wFMCommunicate OK [15:18:34]SAM_PROTO_GetShiftState done [15:18:34]FM_GetShiftState done [15:18:34]req_shift_opened done [15:18:34]requested_item shift.open_date is exist - process it [15:18:34]req_shift_open_date [15:18:34]req_shift_open_date done [15:18:34]produce_requested_data done [15:18:34]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228283,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:18:34]process_action_free close_receipt [15:18:34]json_value_free [15:18:34]json_value_free done [15:18:34]process_json_proto returns [15:18:34]Send response to host [15:18:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228283,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:18:34]free response buf [15:18:34]execute_script done [15:18:34]execute_script returns [15:18:34]free content buf [15:18:34]Sock 9.Close socket [15:18:34]Sock 9.Thread stoped [15:18:37]OFD Sender: No OFD packet to send [15:18:42]OFD Sender: No OFD packet to send [15:18:47]OFD Sender: No OFD packet to send [15:18:52]OFD Sender: No OFD packet to send [15:18:57]OFD Sender: No OFD packet to send [15:19:02]OFD Sender: No OFD packet to send [15:19:07]OFD Sender: No OFD packet to send [15:19:12]OFD Sender: No OFD packet to send [15:19:17]OFD Sender: No OFD packet to send [15:19:22]OFD Sender: No OFD packet to send [15:19:27]OFD Sender: No OFD packet to send [15:19:32]OFD Sender: No OFD packet to send [15:19:37]OFD Sender: No OFD packet to send [15:19:42]OFD Sender: No OFD packet to send [15:19:47]OFD Sender: No OFD packet to send [15:19:52]OFD Sender: No OFD packet to send [15:19:57]OFD Sender: No OFD packet to send [15:20:02]OFD Sender: No OFD packet to send [15:20:07]OFD Sender: No OFD packet to send [15:20:12]OFD Sender: No OFD packet to send [15:20:17]OFD Sender: No OFD packet to send [15:20:22]OFD Sender: No OFD packet to send [15:20:27]OFD Sender: No OFD packet to send [15:20:32]OFD Sender: No OFD packet to send [15:20:37]OFD Sender: No OFD packet to send [15:20:42]OFD Sender: No OFD packet to send [15:20:47]OFD Sender: No OFD packet to send [15:20:52]OFD Sender: No OFD packet to send [15:20:57]OFD Sender: No OFD packet to send [15:21:02]OFD Sender: No OFD packet to send [15:21:07]OFD Sender: No OFD packet to send [15:21:12]OFD Sender: No OFD packet to send [15:21:14]accept exits with 7 [15:21:14]New connection [15:21:14]New thread 3067137380 created [15:21:14]Thread 3066994020 joined [15:21:14]Waiting for new connection... [15:21:14] Sock 7.Parse request [15:21:14]Sock 7.Check first char [15:21:14]Sock 7.First char is OK [15:21:14]request: POST /json_proto HTTP/1.0 [15:21:14]Method: POST [15:21:14]URL: /json_proto [15:21:14]Method is POST - this is cgi request [15:21:14]url: /json_proto [15:21:14]query_string will be loaded in cgi processing [15:21:14]execute_cgi json_proto POST (null) [15:21:14]execute_cgi path=json_proto method=POST [15:21:14]POST find Content-Length [15:21:14]Host: 172.17.44.195:8080 [15:21:14]Content-Length: 770 [15:21:14]Content-Type: application/json [15:21:14] [15:21:14]POST finish read [15:21:14]Found Content-Length = 770 [15:21:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.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: Mbank", "payments": [ { "type": 1, "sum" : 1200.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:14]execute_script... [15:21: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)1964761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.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: Mbank", "payments": [ { "type": 1, "sum" : 1200.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:14]POST & json_proto [15:21:14]process_json_proto [15:21:14]json parsed OK: [15:21:14]protocol is kg_v1.0 [15:21:14]action value=close_receipt [15:21:14]process_action close_receipt [15:21:14]cmd_close_receipt [15:21:14]MH_GetDate [15:21:14]Write to MH i2c: F0 00 00 3B 4A 74 [15:21:14]Write i2c OK [15:21:14]MH_I2C_Read... [15:21:14]Read from MH i2c: F0 [15:21:14]MH_I2C_Read... [15:21:14]Read from MH i2c: F0 09 00 [15:21:14]MH_I2C_Read... [15:21:14]Read from MH i2c: F0 09 00 3B 4A 00 EF C2 17 67 82 C9 CF 66 2C [15:21:14]GetLastDocTimeStamp 1729610314 [15:21:14]current date 1729610479 [15:21:14]FM_GetShiftState [15:21:14]SAM_PROTO_GetShiftState [15:21:14]wFMCommunicate request_size=4 [15:21:14]MH_SAM_APDU [15:21:14]CAPDU: 80 13 01 00 [15:21:14]Write to MH i2c: E2 08 00 3C 4A 80 13 01 00 00 00 00 00 03 [15:21:14]Write i2c OK [15:21:14]MH_I2C_Read... [15:21:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:14]Read from MH i2c: E2 [15:21:14]MH_I2C_Read... [15:21:14]Read from MH i2c: E2 0E 00 [15:21:14]MH_I2C_Read... [15:21:14]Read from MH i2c: E2 0E 00 3C 4A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 CA [15:21:14]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:21:14]wFMCommunicate OK [15:21:14]SAM_PROTO_GetShiftState done [15:21:14]FM_GetShiftState done [15:21:14]opened in 1729555538 [15:21:14]opened+sec_in_day 1729641938 [15:21:14]quantity*price = 120055 [15:21:14]sum+1 = 120057 [15:21:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.56 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 0.00 Безнал.: 1200.56 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 248 22.10.2024 15:21 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 228284 ФПД: 202100585489198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152119&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228284&fm=202100585489198&tin=02508201610067®Number=0000000000091685&sum=120056 [15:21:16]StoreToDocumentArchive [15:21:16]shift 535 fd 228284 [15:21:16]save to /storage/0535/doc_00228284 [15:21:16]save last doc name /storage/0535/doc_00228284 to /storage/kkm_last_doc_name [15:21:16]save OK [15:21:16]Clear old archive folders... [15:21:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:21:16]tlvbuf is 00973A20 [15:21:16]SAM_PROTO_ClearQueue [15:21:16]wFMCommunicate request_size=4 [15:21:16]MH_SAM_APDU [15:21:16]CAPDU: 80 09 00 00 [15:21:16]Write to MH i2c: E2 08 00 49 4A 80 09 00 00 00 00 00 00 05 [15:21:16]Write i2c OK [15:21:16]MH_I2C_Read... [15:21:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:16]Read from MH i2c: E2 [15:21:16]MH_I2C_Read... [15:21:16]Read from MH i2c: E2 03 00 [15:21:16]MH_I2C_Read... [15:21:16]Read from MH i2c: E2 03 00 49 4A 00 90 00 07 [15:21:16]RAPDU: 90 00 [15:21:16]wFMCommunicate OK [15:21:16]SAM_PROTO_ClearQueue done [15:21:16]KKMCreateOFDPacket [15:21:16]OFDProtocolAddRootSTLVToBuf [15:21:16]FM_MakeSignedData [15:21:16]FM_MakeSignedData [15:21:16]SAM_PROTO_SignData [15:21:16]wFMCommunicate request_size=4 [15:21:16]MH_SAM_APDU [15:21:16]CAPDU: 80 0D 01 02 [15:21:16]Write to MH i2c: E2 08 00 4A 4A 80 0D 01 02 00 00 00 00 0D [15:21:16]Write i2c OK [15:21:16]MH_I2C_Read... [15:21:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:16]Read from MH i2c: E2 [15:21:16]MH_I2C_Read... [15:21:16]Read from MH i2c: E2 03 00 [15:21:16]MH_I2C_Read... [15:21:16]Read from MH i2c: E2 03 00 4A 4A 00 90 00 08 [15:21:16]RAPDU: 90 00 [15:21:16]wFMCommunicate OK [15:21:16]wFMCommunicate request_size=255 [15:21:16]MH_SAM_APDU [15:21: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 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 CD 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 EF C2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BC 7B 03 00 35 04 06 00 B7 [15:21:16]Write to MH i2c: E2 02 01 4B 4A 80 0D 02 02 FA 00 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 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 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 CD 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 EF C2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BC 7B 03 00 35 04 06 00 B7 00 00 6E [15:21:16]Write i2c OK [15:21:16]MH_I2C_Read... [15:21:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:16]Read from MH i2c: E2 [15:21:16]MH_I2C_Read... [15:21:16]Read from MH i2c: E2 03 00 [15:21:16]MH_I2C_Read... [15:21:16]Read from MH i2c: E2 03 00 4B 4A 00 90 00 09 [15:21:16]RAPDU: 90 00 [15:21:16]wFMCommunicate OK [15:21:16]wFMCommunicate request_size=10 [15:21:16]MH_SAM_APDU [15:21:16]CAPDU: 80 0D 02 02 05 CF 35 9B 63 2E [15:21:16]Write to MH i2c: E2 0D 00 4C 4A 80 0D 02 02 05 00 CF 35 9B 63 2E 00 00 4A [15:21:16]Write i2c OK [15:21:16]MH_I2C_Read... [15:21:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:16]Read from MH i2c: E2 [15:21:16]MH_I2C_Read... [15:21:16]Read from MH i2c: E2 03 00 [15:21:16]MH_I2C_Read... [15:21:16]Read from MH i2c: E2 03 00 4C 4A 00 90 00 0A [15:21:16]RAPDU: 90 00 [15:21:16]wFMCommunicate OK [15:21:16]wFMCommunicate request_size=4 [15:21:16]MH_SAM_APDU [15:21:16]CAPDU: 80 0D 03 02 [15:21:16]Write to MH i2c: E2 08 00 4D 4A 80 0D 03 02 00 00 00 00 12 [15:21:16]Write i2c OK [15:21:16]MH_I2C_Read... [15:21:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:16]Read from MH i2c: E2 [15:21:16]MH_I2C_Read... [15:21:16]Read from MH i2c: E2 0B 00 [15:21:16]MH_I2C_Read... [15:21:16]Read from MH i2c: E2 0B 00 4D 4A 00 7F 6F 3E 6D 19 37 0C 91 90 00 99 [15:21:16]RAPDU: 7F 6F 3E 6D 19 37 0C 91 90 00 [15:21:16]wFMCommunicate OK [15:21:16]SAM_PROTO_SignData done [15:21:16]FM_MakeSignedData done [15:21:16]CreateOFDProtocolMessage [15:21:16]wFMCommunicate request_size=4 [15:21:16]MH_SAM_APDU [15:21:16]CAPDU: 80 11 00 00 [15:21:16]Write to MH i2c: E2 08 00 4E 4A 80 11 00 00 00 00 00 00 12 [15:21:16]Write i2c OK [15:21:16]MH_I2C_Read... [15:21:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:16]Read from MH i2c: E2 [15:21:16]MH_I2C_Read... [15:21:16]Read from MH i2c: E2 17 00 [15:21:16]MH_I2C_Read... [15:21:16]Read from MH i2c: E2 17 00 4E 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 69 [15:21:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:21:16]wFMCommunicate OK [15:21:16]CreateOFDProtocolMessage done [15:21:16]OFDSenderStorePacket 228284 [15:21:16]StoreOFDPacket docnum=228284 [15:21:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 BB 6F 07 01 C0 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 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 CD 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 EF C2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BC 7B 03 00 35 04 06 00 B7 CF 35 9B 63 2E 7F 6F 3E 6D 19 37 0C 91 [15:21:16]CheckFolder [15:21:16]dirname=/storage/ofd_packets [15:21:16]CheckFolder done [15:21:16]ProducePacketName [15:21:16]name=ofd_packets/00228284 [15:21:16]NVStorageSaveData ofd_packets/00228284 [15:21:16]File name is /storage/ofd_packets/00228284 [15:21:16]Write 301 bytes [15:21:16]NVStorageSaveData done [15:21:16]OFDSenderStorePacket done [15:21:16]KKMCreateOFDPacket done [15:21:16]NVStorageSaveData kkm_last_timestamp [15:21:16]File name is /storage/kkm_last_timestamp [15:21:16]OFD Sender: Processing packet 228284 [packets to send 38, broken 37] [15:21:16]ProducePacketName [15:21:16]name=ofd_packets/00228284 [15:21:16]OFD Sender: To server: pG, [15:21:16]CommunicateWithHost lk.salyk.kg:30040 [15:21:16]ConnectInit lk.salyk.kg [15:21:16]Write 4 bytes [15:21:16]NVStorageSaveData done [15:21:16]ExternCall_PrintAddStr [15:21:16]wPrintStart [15:21:16]Write to MH i2c: 01 00 00 4F 4A 99 [15:21:16]Write i2c OK [15:21:16]MH_I2C_Read... [15:21:16]Read from MH i2c: 01 [15:21:16]MH_I2C_Read... [15:21:16]Read from MH i2c: 01 07 00 [15:21:16]MH_I2C_Read... [15:21:16]Read from MH i2c: 01 07 00 4F 4A 00 00 00 00 00 FF 0F AE [15:21:16]RasterBufferAndPrint [15:21:16]line Счет N : (1)1964761 [15:21:16]line ИНН: 02508201610067 [15:21:16]line Контрольно-Кассовый Чек [15:21:16]line ПРОДАЖА [15:21:16]line ТРК (МРК, ГНК) : 44 [15:21:16]line Товар: 2710124500 [15:21:16]line Аи-95-К-5 [15:21:16]line 16.180 * 74.20 [15:21:16]line = 1200.56 [15:21:16]line НДС 12% НСП 1% [15:21:16]line > о реализуемом товаре [15:21:16]line ИТОГО: 1200.56 [15:21:16]line НСП 1% : 10.62 [15:21:16]line НДС 12% : 127.49 [15:21:16]line Наличными: 0.00 [15:21:16]line Безнал.: 1200.56 [15:21:16]line Место: АЗС № 133 "Партнер Нефть" [15:21:16]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:21:16]line СНО: Общий режим [15:21:16]line Чек 248 22.10.2024 15:21 [15:21:16]line Смена: 535 ФФД: 1.0 [15:21:16]line ЗНМ: 0300000091 [15:21:16]line РНМ: 0000000000091685 [15:21:16]line Версия ККМ: 001 [15:21:16]line Платежная система: Mbank [15:21:16]line ФМ: 0000000000871839 [15:21:16]line ФД: 228284 [15:21:16]line ФПД: 202100585489198 [15:21:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152119&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228284&fm=202100585489198&tin=02508201610067®Number=0000000000091685&sum=120056 [15:21:16]Connected sock=11 [15:21:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 BB 6F 07 01 C0 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 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 CD 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 EF C2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BC 7B 03 00 35 04 06 00 B7 CF 35 9B 63 2E 7F 6F 3E 6D 19 37 0C 91 [15:21:16]written 0, free lines is 4095 [15:21:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 F2 A2 47 00 05 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BC 7B 03 00 F4 03 04 00 E7 6D 17 67 B6 04 01 00 00 CC DE D5 21 45 15 5C 7A [15:21:17]CommunicateWithHost err = 0 [15:21:17]CheckOFDResponse [15:21:17]1017 (14) - 77093643461234 [15:21:17]1041 (16) - 0000000000871839 [15:21:17]1040 (4) - 228284 [15:21:17]1012 (4) - 22.10.2024 09:18 [15:21:17]1206 (1) - 0 [15:21:17]OFD Sender: Remove packet 228284 [15:21:17]ProducePacketName [15:21:17]name=ofd_packets/00228284 [15:21:17]NVStorageDeleteData [15:21:17]Write to MH i2c: 01 00 00 77 4A C1 [15:21:17]Write i2c OK [15:21:17]MH_I2C_Read... [15:21:17]Read from MH i2c: 01 [15:21:17]MH_I2C_Read... [15:21:17]Read from MH i2c: 01 07 00 [15:21:17]MH_I2C_Read... [15:21:17]Read from MH i2c: 01 07 00 77 4A 00 00 00 00 00 E4 0C B8 [15:21:17]RasterBufferAndPrint [15:21:17]line [15:21:17]line [15:21:17]line [15:21:17]line [15:21:17]line [15:21:17]written 0, free lines is 3305 [15:21:17]MH_Cut [15:21:17]Write to MH i2c: D1 01 00 7E 4A 01 9A [15:21:17]Write i2c OK [15:21:17]MH_I2C_Read... [15:21:17]Read from MH i2c: D1 [15:21:17]MH_I2C_Read... [15:21:17]Read from MH i2c: D1 01 00 [15:21:17]MH_I2C_Read... [15:21:17]Read from MH i2c: D1 01 00 7E 4A 00 99 [15:21:17]Write to MH i2c: 01 00 00 7F 4A C9 [15:21:17]Write i2c OK [15:21:17]MH_I2C_Read... [15:21:17]OFD Sender: No OFD packet to send [15:21:18]*** Cut start [15:21:18]*** Partial cut [15:21:18]*** CUTSNS_PIN = 1 [15:21:18]*** CUTSNS_PIN = 0 [15:21:18]*** Brake cut motor [15:21:18]Read from MH i2c: 01 [15:21:18]MH_I2C_Read... [15:21:18]*** Stop cut motor [15:21:18]*** Cut end [15:21:18]Read from MH i2c: 01 07 00 [15:21:18]MH_I2C_Read... [15:21:18]Read from MH i2c: 01 07 00 7F 4A 00 00 00 00 00 FF 0F DE [15:21:18]process_action close_receipt done [15:21:18]requested_data is exist [15:21:18]produce_requested_data [15:21:18]requested_item fm.sn is exist - process it [15:21:18]wFMCommunicate request_size=4 [15:21:18]MH_SAM_APDU [15:21:18]CAPDU: 80 11 00 00 [15:21:18]Write to MH i2c: E2 08 00 80 4A 80 11 00 00 00 00 00 00 44 [15:21:18]Write i2c OK [15:21:18]MH_I2C_Read... [15:21:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:18]Read from MH i2c: E2 [15:21:18]MH_I2C_Read... [15:21:18]Read from MH i2c: E2 17 00 [15:21:18]MH_I2C_Read... [15:21:18]Read from MH i2c: E2 17 00 80 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9B [15:21:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:21:18]wFMCommunicate OK [15:21:18]requested_item fd.num is exist - process it [15:21:18]SAM_PROTO_GetFieldsCounters [15:21:18]wFMCommunicate request_size=4 [15:21:18]MH_SAM_APDU [15:21:18]CAPDU: 80 13 00 00 [15:21:18]Write to MH i2c: E2 08 00 81 4A 80 13 00 00 00 00 00 00 47 [15:21:18]Write i2c OK [15:21:18]MH_I2C_Read... [15:21:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:19]Read from MH i2c: E2 [15:21:19]MH_I2C_Read... [15:21:19]Read from MH i2c: E2 62 00 [15:21:19]MH_I2C_Read... [15:21:19]Read from MH i2c: E2 62 00 81 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 BC 7B 03 00 0E 04 04 00 17 02 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 AB [15:21:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 BC 7B 03 00 0E 04 04 00 17 02 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 [15:21:19]wFMCommunicate OK [15:21:19]SAM_PROTO_GetFieldsCounters done [15:21:19]requested_item shift.num is exist - process it [15:21:19]requested_item shift.opened is exist - process it [15:21:19]req_shift_opened [15:21:19]FM_GetShiftState [15:21:19]SAM_PROTO_GetShiftState [15:21:19]wFMCommunicate request_size=4 [15:21:19]MH_SAM_APDU [15:21:19]CAPDU: 80 13 01 00 [15:21:19]Write to MH i2c: E2 08 00 82 4A 80 13 01 00 00 00 00 00 49 [15:21:19]Write i2c OK [15:21:19]MH_I2C_Read... [15:21:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:19]Read from MH i2c: E2 [15:21:19]MH_I2C_Read... [15:21:19]Read from MH i2c: E2 0E 00 [15:21:19]MH_I2C_Read... [15:21:19]Read from MH i2c: E2 0E 00 82 4A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 10 [15:21:19]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:21:19]wFMCommunicate OK [15:21:19]SAM_PROTO_GetShiftState done [15:21:19]FM_GetShiftState done [15:21:19]req_shift_opened done [15:21:19]requested_item shift.open_date is exist - process it [15:21:19]req_shift_open_date [15:21:19]req_shift_open_date done [15:21:19]produce_requested_data done [15:21:19]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228284,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:21:19]process_action_free close_receipt [15:21:19]json_value_free [15:21:19]json_value_free done [15:21:19]process_json_proto returns [15:21:19]Send response to host [15:21:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228284,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:21:19]free response buf [15:21:19]execute_script done [15:21:19]execute_script returns [15:21:19]free content buf [15:21:19]Sock 7.Close socket [15:21:19]Sock 7.Thread stoped [15:21:22]OFD Sender: No OFD packet to send [15:21:27]OFD Sender: No OFD packet to send [15:21:32]OFD Sender: No OFD packet to send [15:21:37]OFD Sender: No OFD packet to send [15:21:42]OFD Sender: No OFD packet to send [15:21:47]OFD Sender: No OFD packet to send [15:21:52]OFD Sender: No OFD packet to send [15:21:57]OFD Sender: No OFD packet to send [15:22:02]OFD Sender: No OFD packet to send [15:22:07]OFD Sender: No OFD packet to send [15:22:12]OFD Sender: No OFD packet to send [15:22:17]OFD Sender: No OFD packet to send [15:22:22]OFD Sender: No OFD packet to send [15:22:27]OFD Sender: No OFD packet to send [15:22:32]OFD Sender: No OFD packet to send [15:22:37]OFD Sender: No OFD packet to send [15:22:42]OFD Sender: No OFD packet to send [15:22:47]OFD Sender: No OFD packet to send [15:22:52]OFD Sender: No OFD packet to send [15:22:57]OFD Sender: No OFD packet to send [15:23:02]OFD Sender: No OFD packet to send [15:23:07]OFD Sender: No OFD packet to send [15:23:12]OFD Sender: No OFD packet to send [15:23:17]OFD Sender: No OFD packet to send [15:23:20]accept exits with 9 [15:23:20]New connection [15:23:20]New thread 3066994020 created [15:23:20]Thread 3067137380 joined [15:23:20]Waiting for new connection... [15:23:20] Sock 9.Parse request [15:23:20]Sock 9.Check first char [15:23:20]Sock 9.First char is OK [15:23:20]request: POST /json_proto HTTP/1.0 [15:23:20]Method: POST [15:23:20]URL: /json_proto [15:23:20]Method is POST - this is cgi request [15:23:20]url: /json_proto [15:23:20]query_string will be loaded in cgi processing [15:23:20]execute_cgi json_proto POST (null) [15:23:20]execute_cgi path=json_proto method=POST [15:23:20]POST find Content-Length [15:23:20]Host: 172.17.44.195:8080 [15:23:20]Content-Length: 621 [15:23:20]Content-Type: application/json [15:23:20] [15:23:20]POST finish read [15:23:20]Found Content-Length = 621 [15:23:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:20]execute_script... [15:23: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)1964762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:20]POST & json_proto [15:23:20]process_json_proto [15:23:20]json parsed OK: [15:23:20]protocol is kg_v1.0 [15:23:20]action value=close_receipt [15:23:20]process_action close_receipt [15:23:20]cmd_close_receipt [15:23:20]MH_GetDate [15:23:20]Write to MH i2c: F0 00 00 83 4A BC [15:23:20]Write i2c OK [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: F0 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: F0 09 00 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: F0 09 00 83 4A 00 6D C3 17 67 82 C9 CF 66 F3 [15:23:20]GetLastDocTimeStamp 1729610479 [15:23:20]current date 1729610605 [15:23:20]FM_GetShiftState [15:23:20]SAM_PROTO_GetShiftState [15:23:20]wFMCommunicate request_size=4 [15:23:20]MH_SAM_APDU [15:23:20]CAPDU: 80 13 01 00 [15:23:20]Write to MH i2c: E2 08 00 84 4A 80 13 01 00 00 00 00 00 4B [15:23:20]Write i2c OK [15:23:20]MH_I2C_Read... [15:23:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:20]Read from MH i2c: E2 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: E2 0E 00 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: E2 0E 00 84 4A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 12 [15:23:20]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:23:20]wFMCommunicate OK [15:23:20]SAM_PROTO_GetShiftState done [15:23:20]FM_GetShiftState done [15:23:20]opened in 1729555538 [15:23:20]opened+sec_in_day 1729641938 [15:23:20]quantity*price = 50000 [15:23:20]sum+1 = 50001 [15:23:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 249 22.10.2024 15:23 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228285 ФПД: 272651311608654 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152325&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228285&fm=272651311608654&tin=02508201610067®Number=0000000000091685&sum=50000 [15:23:22]StoreToDocumentArchive [15:23:22]shift 535 fd 228285 [15:23:22]save to /storage/0535/doc_00228285 [15:23:22]save last doc name /storage/0535/doc_00228285 to /storage/kkm_last_doc_name [15:23:22]save OK [15:23:22]Clear old archive folders... [15:23:22]ProcessDocumentItem done err = 0, tmpTLVsize=244 [15:23:22]tlvbuf is 008CA1F0 [15:23:22]SAM_PROTO_ClearQueue [15:23:22]wFMCommunicate request_size=4 [15:23:22]MH_SAM_APDU [15:23:22]CAPDU: 80 09 00 00 [15:23:22]Write to MH i2c: E2 08 00 91 4A 80 09 00 00 00 00 00 00 4D [15:23:22]Write i2c OK [15:23:22]MH_I2C_Read... [15:23:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:22]Read from MH i2c: E2 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 03 00 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 03 00 91 4A 00 90 00 4F [15:23:22]RAPDU: 90 00 [15:23:22]wFMCommunicate OK [15:23:22]SAM_PROTO_ClearQueue done [15:23:22]KKMCreateOFDPacket [15:23:22]OFDProtocolAddRootSTLVToBuf [15:23:22]FM_MakeSignedData [15:23:22]FM_MakeSignedData [15:23:22]SAM_PROTO_SignData [15:23:22]wFMCommunicate request_size=4 [15:23:22]MH_SAM_APDU [15:23:22]CAPDU: 80 0D 01 02 [15:23:22]Write to MH i2c: E2 08 00 92 4A 80 0D 01 02 00 00 00 00 55 [15:23:22]Write i2c OK [15:23:22]MH_I2C_Read... [15:23:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:22]Read from MH i2c: E2 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 03 00 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 03 00 92 4A 00 90 00 50 [15:23:22]RAPDU: 90 00 [15:23:22]wFMCommunicate OK [15:23:22]wFMCommunicate request_size=253 [15:23:22]MH_SAM_APDU [15:23:22]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 6D C3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BD 7B 03 00 35 04 06 00 F7 F9 94 93 73 4E [15:23:22]Write to MH i2c: E2 00 01 93 4A 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 6D C3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BD 7B 03 00 35 04 06 00 F7 F9 94 93 73 4E 00 00 2A [15:23:22]Write i2c OK [15:23:22]MH_I2C_Read... [15:23:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:22]Read from MH i2c: E2 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 03 00 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 03 00 93 4A 00 90 00 51 [15:23:22]RAPDU: 90 00 [15:23:22]wFMCommunicate OK [15:23:22]wFMCommunicate request_size=4 [15:23:22]MH_SAM_APDU [15:23:22]CAPDU: 80 0D 03 02 [15:23:22]Write to MH i2c: E2 08 00 94 4A 80 0D 03 02 00 00 00 00 59 [15:23:22]Write i2c OK [15:23:22]MH_I2C_Read... [15:23:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:22]Read from MH i2c: E2 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 0B 00 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 0B 00 94 4A 00 EA 8C DB 4B A6 98 A8 03 90 00 DF [15:23:22]RAPDU: EA 8C DB 4B A6 98 A8 03 90 00 [15:23:22]wFMCommunicate OK [15:23:22]SAM_PROTO_SignData done [15:23:22]FM_MakeSignedData done [15:23:22]CreateOFDProtocolMessage [15:23:22]wFMCommunicate request_size=4 [15:23:22]MH_SAM_APDU [15:23:22]CAPDU: 80 11 00 00 [15:23:22]Write to MH i2c: E2 08 00 95 4A 80 11 00 00 00 00 00 00 59 [15:23:22]Write i2c OK [15:23:22]MH_I2C_Read... [15:23:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:22]Read from MH i2c: E2 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 17 00 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 17 00 95 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B0 [15:23:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:23:22]wFMCommunicate OK [15:23:22]CreateOFDProtocolMessage done [15:23:22]OFDSenderStorePacket 228285 [15:23:22]StoreOFDPacket docnum=228285 [15:23:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 88 E5 00 01 91 D7 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 6D C3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BD 7B 03 00 35 04 06 00 F7 F9 94 93 73 4E EA 8C DB 4B A6 98 A8 03 [15:23:22]CheckFolder [15:23:22]dirname=/storage/ofd_packets [15:23:22]CheckFolder done [15:23:22]ProducePacketName [15:23:22]name=ofd_packets/00228285 [15:23:22]NVStorageSaveData ofd_packets/00228285 [15:23:22]File name is /storage/ofd_packets/00228285 [15:23:22]Write 294 bytes [15:23:22]NVStorageSaveData done [15:23:22]OFDSenderStorePacket done [15:23:22]KKMCreateOFDPacket done [15:23:22]NVStorageSaveData kkm_last_timestamp [15:23:22]File name is /storage/kkm_last_timestamp [15:23:22]Write 4 bytes [15:23:22]NVStorageSaveData done [15:23:22]ExternCall_PrintAddStr [15:23:22]wPrintStart [15:23:22]Write to MH i2c: 01 00 00 96 4A E0 [15:23:22]Write i2c OK [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: 01 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: 01 07 00 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: 01 07 00 96 4A 00 00 00 00 00 FF 0F F5 [15:23:22]RasterBufferAndPrint [15:23:22]line Счет N : (1)1964762 [15:23:22]line ИНН: 02508201610067 [15:23:22]line Контрольно-Кассовый Чек [15:23:22]line ПРОДАЖА [15:23:22]line ТРК (МРК, ГНК) : 42 [15:23:22]line Товар: 2710124130 [15:23:22]line SU-92 [15:23:22]line 7.310 * 68.40 [15:23:22]line = 500.00 [15:23:22]line НДС 12% НСП 1% [15:23:22]line > о реализуемом товаре [15:23:22]line ИТОГО: 500.00 [15:23:22]line НСП 1% : 4.42 [15:23:22]line НДС 12% : 53.10 [15:23:22]line Наличными: 500.00 [15:23:22]line Безнал.: 0.00 [15:23:22]line Место: АЗС № 133 "Партнер Нефть" [15:23:22]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:23:22]line СНО: Общий режим [15:23:22]line Чек 249 22.10.2024 15:23 [15:23:22]line Смена: 535 ФФД: 1.0 [15:23:22]line ЗНМ: 0300000091 [15:23:22]line РНМ: 0000000000091685 [15:23:22]line Версия ККМ: 001 [15:23:22]line ФМ: 0000000000871839 [15:23:22]line ФД: 228285 [15:23:22]line ФПД: 272651311608654 [15:23:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152325&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228285&fm=272651311608654&tin=02508201610067®Number=0000000000091685&sum=50000 [15:23:22]OFD Sender: Processing packet 228285 [packets to send 38, broken 37] [15:23:22]ProducePacketName [15:23:22]name=ofd_packets/00228285 [15:23:22]OFD Sender: To server: pG, [15:23:22]CommunicateWithHost lk.salyk.kg:30040 [15:23:22]ConnectInit lk.salyk.kg [15:23:22]written 0, free lines is 4095 [15:23:22]Connected sock=10 [15:23:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 88 E5 00 01 91 D7 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 6D C3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BD 7B 03 00 35 04 06 00 F7 F9 94 93 73 4E EA 8C DB 4B A6 98 A8 03 [15:23:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 C9 8E 47 00 91 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BD 7B 03 00 F4 03 04 00 65 6E 17 67 B6 04 01 00 00 AA 01 E1 EA BC EA 73 03 [15:23:23]CommunicateWithHost err = 0 [15:23:23]CheckOFDResponse [15:23:23]1017 (14) - 77093643461234 [15:23:23]1041 (16) - 0000000000871839 [15:23:23]1040 (4) - 228285 [15:23:23]1012 (4) - 22.10.2024 09:20 [15:23:23]1206 (1) - 0 [15:23:23]OFD Sender: Remove packet 228285 [15:23:23]ProducePacketName [15:23:23]name=ofd_packets/00228285 [15:23:23]NVStorageDeleteData [15:23:23]Write to MH i2c: 01 00 00 BD 4A 07 [15:23:23]Write i2c OK [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: 01 [15:23:23]MH_I2C_Read... [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 BD 4A 00 00 00 00 00 EF 0C 09 [15:23:23]RasterBufferAndPrint [15:23:23]line [15:23:23]line [15:23:23]line [15:23:23]line [15:23:23]line [15:23:23]written 0, free lines is 3316 [15:23:23]MH_Cut [15:23:23]Write to MH i2c: D1 01 00 C4 4A 01 E0 [15:23:23]Write i2c OK [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: D1 [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: D1 01 00 [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: D1 01 00 C4 4A 00 DF [15:23:23]Write to MH i2c: 01 00 00 C5 4A 0F [15:23:23]Write i2c OK [15:23:23]MH_I2C_Read... [15:23:23]OFD Sender: No OFD packet to send [15:23:24]*** Cut start [15:23:24]*** Partial cut [15:23:24]*** CUTSNS_PIN = 1 [15:23:24]*** CUTSNS_PIN = 0 [15:23:24]*** Brake cut motor [15:23:24]Read from MH i2c: 01 [15:23:24]MH_I2C_Read... [15:23:24]*** Stop cut motor [15:23:24]*** Cut end [15:23:24]Read from MH i2c: 01 07 00 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: 01 07 00 C5 4A 00 00 00 00 00 FF 0F 24 [15:23:24]process_action close_receipt done [15:23:24]requested_data is exist [15:23:24]produce_requested_data [15:23:24]requested_item fm.sn is exist - process it [15:23:24]wFMCommunicate request_size=4 [15:23:24]MH_SAM_APDU [15:23:24]CAPDU: 80 11 00 00 [15:23:24]Write to MH i2c: E2 08 00 C6 4A 80 11 00 00 00 00 00 00 8A [15:23:24]Write i2c OK [15:23:24]MH_I2C_Read... [15:23:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:24]Read from MH i2c: E2 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 17 00 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 17 00 C6 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E1 [15:23:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:23:24]wFMCommunicate OK [15:23:24]requested_item fd.num is exist - process it [15:23:24]SAM_PROTO_GetFieldsCounters [15:23:24]wFMCommunicate request_size=4 [15:23:24]MH_SAM_APDU [15:23:24]CAPDU: 80 13 00 00 [15:23:24]Write to MH i2c: E2 08 00 C7 4A 80 13 00 00 00 00 00 00 8D [15:23:24]Write i2c OK [15:23:24]MH_I2C_Read... [15:23:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:24]Read from MH i2c: E2 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 62 00 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 62 00 C7 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 BD 7B 03 00 0E 04 04 00 17 02 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 F5 [15:23:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 BD 7B 03 00 0E 04 04 00 17 02 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 [15:23:24]wFMCommunicate OK [15:23:24]SAM_PROTO_GetFieldsCounters done [15:23:24]requested_item shift.num is exist - process it [15:23:24]requested_item shift.opened is exist - process it [15:23:24]req_shift_opened [15:23:24]FM_GetShiftState [15:23:24]SAM_PROTO_GetShiftState [15:23:24]wFMCommunicate request_size=4 [15:23:24]MH_SAM_APDU [15:23:24]CAPDU: 80 13 01 00 [15:23:24]Write to MH i2c: E2 08 00 C8 4A 80 13 01 00 00 00 00 00 8F [15:23:24]Write i2c OK [15:23:24]MH_I2C_Read... [15:23:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:25]Read from MH i2c: E2 [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: E2 0E 00 [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: E2 0E 00 C8 4A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 56 [15:23:25]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:23:25]wFMCommunicate OK [15:23:25]SAM_PROTO_GetShiftState done [15:23:25]FM_GetShiftState done [15:23:25]req_shift_opened done [15:23:25]requested_item shift.open_date is exist - process it [15:23:25]req_shift_open_date [15:23:25]req_shift_open_date done [15:23:25]produce_requested_data done [15:23:25]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228285,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:23:25]process_action_free close_receipt [15:23:25]json_value_free [15:23:25]json_value_free done [15:23:25]process_json_proto returns [15:23:25]Send response to host [15:23:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228285,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:23:25]free response buf [15:23:25]execute_script done [15:23:25]execute_script returns [15:23:25]free content buf [15:23:25]Sock 9.Close socket [15:23:25]Sock 9.Thread stoped [15:23:28]OFD Sender: No OFD packet to send [15:23:33]OFD Sender: No OFD packet to send [15:23:38]OFD Sender: No OFD packet to send [15:23:42]accept exits with 7 [15:23:42]New connection [15:23:42]New thread 3067137380 created [15:23:42]Thread 3066994020 joined [15:23:42]Waiting for new connection... [15:23:42] Sock 7.Parse request [15:23:42]Sock 7.Check first char [15:23:42]Sock 7.First char is OK [15:23:42]request: POST /json_proto HTTP/1.0 [15:23:42]Method: POST [15:23:42]URL: /json_proto [15:23:42]Method is POST - this is cgi request [15:23:42]url: /json_proto [15:23:42]query_string will be loaded in cgi processing [15:23:42]execute_cgi json_proto POST (null) [15:23:42]execute_cgi path=json_proto method=POST [15:23:42]POST find Content-Length [15:23:42]Host: 172.17.44.195:8080 [15:23:42]Content-Length: 621 [15:23:42]Content-Type: application/json [15:23:42] [15:23:42]POST finish read [15:23:42]Found Content-Length = 621 [15:23:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:42]execute_script... [15:23: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)1964763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:42]POST & json_proto [15:23:42]process_json_proto [15:23:42]json parsed OK: [15:23:42]protocol is kg_v1.0 [15:23:42]action value=close_receipt [15:23:42]process_action close_receipt [15:23:42]cmd_close_receipt [15:23:42]MH_GetDate [15:23:42]Write to MH i2c: F0 00 00 C9 4A 02 [15:23:42]Write i2c OK [15:23:42]MH_I2C_Read... [15:23:42]Read from MH i2c: F0 [15:23:42]MH_I2C_Read... [15:23:42]Read from MH i2c: F0 09 00 [15:23:42]MH_I2C_Read... [15:23:42]Read from MH i2c: F0 09 00 C9 4A 00 83 C3 17 67 82 C9 CF 66 4F [15:23:42]GetLastDocTimeStamp 1729610605 [15:23:42]current date 1729610627 [15:23:42]FM_GetShiftState [15:23:42]SAM_PROTO_GetShiftState [15:23:42]wFMCommunicate request_size=4 [15:23:42]MH_SAM_APDU [15:23:42]CAPDU: 80 13 01 00 [15:23:42]Write to MH i2c: E2 08 00 CA 4A 80 13 01 00 00 00 00 00 91 [15:23:42]Write i2c OK [15:23:42]MH_I2C_Read... [15:23:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:42]Read from MH i2c: E2 [15:23:42]MH_I2C_Read... [15:23:42]Read from MH i2c: E2 0E 00 [15:23:42]MH_I2C_Read... [15:23:42]Read from MH i2c: E2 0E 00 CA 4A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 58 [15:23:42]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:23:42]wFMCommunicate OK [15:23:42]SAM_PROTO_GetShiftState done [15:23:42]FM_GetShiftState done [15:23:42]opened in 1729555538 [15:23:42]opened+sec_in_day 1729641938 [15:23:42]quantity*price = 50000 [15:23:42]sum+1 = 50001 [15:23:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 250 22.10.2024 15:23 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228286 ФПД: 113645804420842 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152347&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228286&fm=113645804420842&tin=02508201610067®Number=0000000000091685&sum=50000 [15:23:43]StoreToDocumentArchive [15:23:43]shift 535 fd 228286 [15:23:43]save to /storage/0535/doc_00228286 [15:23:43]save last doc name /storage/0535/doc_00228286 to /storage/kkm_last_doc_name [15:23:43]save OK [15:23:43]Clear old archive folders... [15:23:43]ProcessDocumentItem done err = 0, tmpTLVsize=244 [15:23:43]tlvbuf is 0088C2F0 [15:23:43]SAM_PROTO_ClearQueue [15:23:43]wFMCommunicate request_size=4 [15:23:43]MH_SAM_APDU [15:23:43]CAPDU: 80 09 00 00 [15:23:43]Write to MH i2c: E2 08 00 D7 4A 80 09 00 00 00 00 00 00 93 [15:23:43]Write i2c OK [15:23:43]MH_I2C_Read... [15:23:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:43]Read from MH i2c: E2 [15:23:43]MH_I2C_Read... [15:23:43]Read from MH i2c: E2 03 00 [15:23:43]MH_I2C_Read... [15:23:43]Read from MH i2c: E2 03 00 D7 4A 00 90 00 95 [15:23:43]RAPDU: 90 00 [15:23:43]wFMCommunicate OK [15:23:43]SAM_PROTO_ClearQueue done [15:23:43]KKMCreateOFDPacket [15:23:43]OFDProtocolAddRootSTLVToBuf [15:23:43]FM_MakeSignedData [15:23:43]FM_MakeSignedData [15:23:43]SAM_PROTO_SignData [15:23:43]wFMCommunicate request_size=4 [15:23:43]MH_SAM_APDU [15:23:43]CAPDU: 80 0D 01 02 [15:23:43]Write to MH i2c: E2 08 00 D8 4A 80 0D 01 02 00 00 00 00 9B [15:23:43]Write i2c OK [15:23:43]MH_I2C_Read... [15:23:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:44]Read from MH i2c: E2 [15:23:44]MH_I2C_Read... [15:23:44]Read from MH i2c: E2 03 00 [15:23:44]MH_I2C_Read... [15:23:44]Read from MH i2c: E2 03 00 D8 4A 00 90 00 96 [15:23:44]RAPDU: 90 00 [15:23:44]wFMCommunicate OK [15:23:44]wFMCommunicate request_size=253 [15:23:44]MH_SAM_APDU [15:23:44]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 83 C3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BE 7B 03 00 35 04 06 00 67 5C 39 CD 7E EA [15:23:44]Write to MH i2c: E2 00 01 D9 4A 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 83 C3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BE 7B 03 00 35 04 06 00 67 5C 39 CD 7E EA 00 00 E1 [15:23:44]Write i2c OK [15:23:44]MH_I2C_Read... [15:23:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:44]Read from MH i2c: E2 [15:23:44]MH_I2C_Read... [15:23:44]Read from MH i2c: E2 03 00 [15:23:44]MH_I2C_Read... [15:23:44]Read from MH i2c: E2 03 00 D9 4A 00 90 00 97 [15:23:44]RAPDU: 90 00 [15:23:44]wFMCommunicate OK [15:23:44]wFMCommunicate request_size=4 [15:23:44]MH_SAM_APDU [15:23:44]CAPDU: 80 0D 03 02 [15:23:44]Write to MH i2c: E2 08 00 DA 4A 80 0D 03 02 00 00 00 00 9F [15:23:44]Write i2c OK [15:23:44]MH_I2C_Read... [15:23:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:44]Read from MH i2c: E2 [15:23:44]MH_I2C_Read... [15:23:44]Read from MH i2c: E2 0B 00 [15:23:44]MH_I2C_Read... [15:23:44]Read from MH i2c: E2 0B 00 DA 4A 00 FB F1 A1 AD B3 1A 54 DF 90 00 DA [15:23:44]RAPDU: FB F1 A1 AD B3 1A 54 DF 90 00 [15:23:44]wFMCommunicate OK [15:23:44]SAM_PROTO_SignData done [15:23:44]FM_MakeSignedData done [15:23:44]CreateOFDProtocolMessage [15:23:44]wFMCommunicate request_size=4 [15:23:44]MH_SAM_APDU [15:23:44]CAPDU: 80 11 00 00 [15:23:44]Write to MH i2c: E2 08 00 DB 4A 80 11 00 00 00 00 00 00 9F [15:23:44]Write i2c OK [15:23:44]MH_I2C_Read... [15:23:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:44]Read from MH i2c: E2 [15:23:44]MH_I2C_Read... [15:23:44]Read from MH i2c: E2 17 00 [15:23:44]MH_I2C_Read... [15:23:44]Read from MH i2c: E2 17 00 DB 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F6 [15:23:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:23:44]wFMCommunicate OK [15:23:44]CreateOFDProtocolMessage done [15:23:44]OFDSenderStorePacket 228286 [15:23:44]StoreOFDPacket docnum=228286 [15:23:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 E8 13 00 01 D1 51 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 83 C3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BE 7B 03 00 35 04 06 00 67 5C 39 CD 7E EA FB F1 A1 AD B3 1A 54 DF [15:23:44]CheckFolder [15:23:44]dirname=/storage/ofd_packets [15:23:44]CheckFolder done [15:23:44]ProducePacketName [15:23:44]name=ofd_packets/00228286 [15:23:44]NVStorageSaveData ofd_packets/00228286 [15:23:44]File name is /storage/ofd_packets/00228286 [15:23:44]Write 294 bytes [15:23:44]NVStorageSaveData done [15:23:44]OFDSenderStorePacket done [15:23:44]KKMCreateOFDPacket done [15:23:44]NVStorageSaveData kkm_last_timestamp [15:23:44]File name is /storage/kkm_last_timestamp [15:23:44]Write 4 bytes [15:23:44]NVStorageSaveData done [15:23:44]ExternCall_PrintAddStr [15:23:44]wPrintStart [15:23:44]Write to MH i2c: 01 00 00 DC 4A 26 [15:23:44]Write i2c OK [15:23:44]MH_I2C_Read... [15:23:44]Read from MH i2c: 01 [15:23:44]MH_I2C_Read... [15:23:44]Read from MH i2c: 01 07 00 [15:23:44]MH_I2C_Read... [15:23:44]Read from MH i2c: 01 07 00 DC 4A 00 00 00 00 00 FF 0F 3B [15:23:44]RasterBufferAndPrint [15:23:44]line Счет N : (1)1964763 [15:23:44]line ИНН: 02508201610067 [15:23:44]line Контрольно-Кассовый Чек [15:23:44]line ПРОДАЖА [15:23:44]line ТРК (МРК, ГНК) : 62 [15:23:44]line Товар: 2710124130 [15:23:44]line SU-92 [15:23:44]line 7.310 * 68.40 [15:23:44]line = 500.00 [15:23:44]line НДС 12% НСП 1% [15:23:44]line > о реализуемом товаре [15:23:44]line ИТОГО: 500.00 [15:23:44]line НСП 1% : 4.42 [15:23:44]line НДС 12% : 53.10 [15:23:44]line Наличными: 500.00 [15:23:44]line Безнал.: 0.00 [15:23:44]line Место: АЗС № 133 "Партнер Нефть" [15:23:44]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:23:44]line СНО: Общий режим [15:23:44]line Чек 250 22.10.2024 15:23 [15:23:44]line Смена: 535 ФФД: 1.0 [15:23:44]line ЗНМ: 0300000091 [15:23:44]line РНМ: 0000000000091685 [15:23:44]line Версия ККМ: 001 [15:23:44]line ФМ: 0000000000871839 [15:23:44]line ФД: 228286 [15:23:44]line ФПД: 113645804420842 [15:23:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152347&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228286&fm=113645804420842&tin=02508201610067®Number=0000000000091685&sum=50000 [15:23:44]written 0, free lines is 4095 [15:23:44]OFD Sender: Processing packet 228286 [packets to send 38, broken 37] [15:23:44]ProducePacketName [15:23:44]name=ofd_packets/00228286 [15:23:44]OFD Sender: To server: pG, [15:23:44]CommunicateWithHost lk.salyk.kg:30040 [15:23:44]ConnectInit lk.salyk.kg [15:23:44]Connected sock=10 [15:23:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 E8 13 00 01 D1 51 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 83 C3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BE 7B 03 00 35 04 06 00 67 5C 39 CD 7E EA FB F1 A1 AD B3 1A 54 DF [15:23:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 A5 81 47 00 14 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BE 7B 03 00 F4 03 04 00 7B 6E 17 67 B6 04 01 00 00 14 94 1D C0 45 66 F7 DB [15:23:44]CommunicateWithHost err = 0 [15:23:44]CheckOFDResponse [15:23:44]1017 (14) - 77093643461234 [15:23:44]1041 (16) - 0000000000871839 [15:23:44]1040 (4) - 228286 [15:23:44]1012 (4) - 22.10.2024 09:20 [15:23:44]1206 (1) - 0 [15:23:44]OFD Sender: Remove packet 228286 [15:23:44]ProducePacketName [15:23:44]name=ofd_packets/00228286 [15:23:44]NVStorageDeleteData [15:23:44]Write to MH i2c: 01 00 00 03 4B 4E [15:23:44]Write i2c OK [15:23:44]MH_I2C_Read... [15:23:44]Read from MH i2c: 01 [15:23:44]MH_I2C_Read... [15:23:44]Read from MH i2c: 01 07 00 [15:23:44]MH_I2C_Read... [15:23:44]Read from MH i2c: 01 07 00 03 4B 00 00 00 00 00 00 0D 62 [15:23:44]RasterBufferAndPrint [15:23:44]line [15:23:44]line [15:23:44]line [15:23:44]line [15:23:44]line [15:23:44]written 0, free lines is 3334 [15:23:44]MH_Cut [15:23:44]Write to MH i2c: D1 01 00 0A 4B 01 27 [15:23:44]Write i2c OK [15:23:44]MH_I2C_Read... [15:23:44]Read from MH i2c: D1 [15:23:44]MH_I2C_Read... [15:23:44]Read from MH i2c: D1 01 00 [15:23:44]MH_I2C_Read... [15:23:44]Read from MH i2c: D1 01 00 0A 4B 00 26 [15:23:44]Write to MH i2c: 01 00 00 0B 4B 56 [15:23:44]Write i2c OK [15:23:44]MH_I2C_Read... [15:23:45]OFD Sender: No OFD packet to send [15:23:45]*** Cut start [15:23:45]*** Partial cut [15:23:45]*** CUTSNS_PIN = 1 [15:23:45]*** CUTSNS_PIN = 0 [15:23:45]*** Brake cut motor [15:23:46]Read from MH i2c: 01 [15:23:46]MH_I2C_Read... [15:23:46]*** Stop cut motor [15:23:46]*** Cut end [15:23:46]Read from MH i2c: 01 07 00 [15:23:46]MH_I2C_Read... [15:23:46]Read from MH i2c: 01 07 00 0B 4B 00 00 00 00 00 FF 0F 6B [15:23:46]process_action close_receipt done [15:23:46]requested_data is exist [15:23:46]produce_requested_data [15:23:46]requested_item fm.sn is exist - process it [15:23:46]wFMCommunicate request_size=4 [15:23:46]MH_SAM_APDU [15:23:46]CAPDU: 80 11 00 00 [15:23:46]Write to MH i2c: E2 08 00 0C 4B 80 11 00 00 00 00 00 00 D1 [15:23:46]Write i2c OK [15:23:46]MH_I2C_Read... [15:23:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:46]Read from MH i2c: E2 [15:23:46]MH_I2C_Read... [15:23:46]Read from MH i2c: E2 17 00 [15:23:46]MH_I2C_Read... [15:23:46]Read from MH i2c: E2 17 00 0C 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 28 [15:23:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:23:46]wFMCommunicate OK [15:23:46]requested_item fd.num is exist - process it [15:23:46]SAM_PROTO_GetFieldsCounters [15:23:46]wFMCommunicate request_size=4 [15:23:46]MH_SAM_APDU [15:23:46]CAPDU: 80 13 00 00 [15:23:46]Write to MH i2c: E2 08 00 0D 4B 80 13 00 00 00 00 00 00 D4 [15:23:46]Write i2c OK [15:23:46]MH_I2C_Read... [15:23:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:46]Read from MH i2c: E2 [15:23:46]MH_I2C_Read... [15:23:46]Read from MH i2c: E2 62 00 [15:23:46]MH_I2C_Read... [15:23:46]Read from MH i2c: E2 62 00 0D 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 BE 7B 03 00 0E 04 04 00 17 02 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 40 [15:23:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 BE 7B 03 00 0E 04 04 00 17 02 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 [15:23:46]wFMCommunicate OK [15:23:46]SAM_PROTO_GetFieldsCounters done [15:23:46]requested_item shift.num is exist - process it [15:23:46]requested_item shift.opened is exist - process it [15:23:46]req_shift_opened [15:23:46]FM_GetShiftState [15:23:46]SAM_PROTO_GetShiftState [15:23:46]wFMCommunicate request_size=4 [15:23:46]MH_SAM_APDU [15:23:46]CAPDU: 80 13 01 00 [15:23:46]Write to MH i2c: E2 08 00 0E 4B 80 13 01 00 00 00 00 00 D6 [15:23:46]Write i2c OK [15:23:46]MH_I2C_Read... [15:23:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:46]Read from MH i2c: E2 [15:23:46]MH_I2C_Read... [15:23:46]Read from MH i2c: E2 0E 00 [15:23:46]MH_I2C_Read... [15:23:46]Read from MH i2c: E2 0E 00 0E 4B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 9D [15:23:46]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:23:46]wFMCommunicate OK [15:23:46]SAM_PROTO_GetShiftState done [15:23:46]FM_GetShiftState done [15:23:46]req_shift_opened done [15:23:46]requested_item shift.open_date is exist - process it [15:23:46]req_shift_open_date [15:23:46]req_shift_open_date done [15:23:46]produce_requested_data done [15:23:46]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228286,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:23:46]process_action_free close_receipt [15:23:46]json_value_free [15:23:46]json_value_free done [15:23:46]process_json_proto returns [15:23:46]Send response to host [15:23:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228286,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:23:46]free response buf [15:23:46]execute_script done [15:23:46]execute_script returns [15:23:46]free content buf [15:23:46]Sock 7.Close socket [15:23:46]Sock 7.Thread stoped [15:23:50]OFD Sender: No OFD packet to send [15:23:55]OFD Sender: No OFD packet to send [15:24:00]OFD Sender: No OFD packet to send [15:24:05]OFD Sender: No OFD packet to send [15:24:10]OFD Sender: No OFD packet to send [15:24:15]OFD Sender: No OFD packet to send [15:24:20]OFD Sender: No OFD packet to send [15:24:25]OFD Sender: No OFD packet to send [15:24:30]OFD Sender: No OFD packet to send [15:24:35]OFD Sender: No OFD packet to send [15:24:40]OFD Sender: No OFD packet to send [15:24:45]OFD Sender: No OFD packet to send [15:24:50]OFD Sender: No OFD packet to send [15:24:55]OFD Sender: No OFD packet to send [15:25:00]OFD Sender: No OFD packet to send [15:25:05]OFD Sender: No OFD packet to send [15:25:10]OFD Sender: No OFD packet to send [15:25:13]accept exits with 9 [15:25:13]New connection [15:25:13]New thread 3066994020 created [15:25:13]Thread 3067137380 joined [15:25:13]Waiting for new connection... [15:25:13] Sock 9.Parse request [15:25:13]Sock 9.Check first char [15:25:13]Sock 9.First char is OK [15:25:13]request: POST /json_proto HTTP/1.0 [15:25:13]Method: POST [15:25:13]URL: /json_proto [15:25:13]Method is POST - this is cgi request [15:25:13]url: /json_proto [15:25:13]query_string will be loaded in cgi processing [15:25:13]execute_cgi json_proto POST (null) [15:25:13]execute_cgi path=json_proto method=POST [15:25:13]POST find Content-Length [15:25:13]Host: 172.17.44.195:8080 [15:25:13]Content-Length: 678 [15:25:13]Content-Type: application/json [15:25:13] [15:25:13]POST finish read [15:25:13]Found Content-Length = 678 [15:25:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:13]execute_script... [15:25: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)1964765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:13]POST & json_proto [15:25:13]process_json_proto [15:25:13]json parsed OK: [15:25:13]protocol is kg_v1.0 [15:25:13]action value=close_receipt [15:25:13]process_action close_receipt [15:25:13]cmd_close_receipt [15:25:13]MH_GetDate [15:25:13]Write to MH i2c: F0 00 00 0F 4B 49 [15:25:13]Write i2c OK [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: F0 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: F0 09 00 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: F0 09 00 0F 4B 00 DE C3 17 67 82 C9 CF 66 F1 [15:25:13]GetLastDocTimeStamp 1729610627 [15:25:13]current date 1729610718 [15:25:13]FM_GetShiftState [15:25:13]SAM_PROTO_GetShiftState [15:25:13]wFMCommunicate request_size=4 [15:25:13]MH_SAM_APDU [15:25:13]CAPDU: 80 13 01 00 [15:25:13]Write to MH i2c: E2 08 00 10 4B 80 13 01 00 00 00 00 00 D8 [15:25:13]Write i2c OK [15:25:13]MH_I2C_Read... [15:25:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:13]Read from MH i2c: E2 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: E2 0E 00 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: E2 0E 00 10 4B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 9F [15:25:13]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:25:13]wFMCommunicate OK [15:25:13]SAM_PROTO_GetShiftState done [15:25:13]FM_GetShiftState done [15:25:13]opened in 1729555538 [15:25:13]opened+sec_in_day 1729641938 [15:25:13]quantity*price = 50010 [15:25:13]sum+1 = 50012 [15:25:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 251 22.10.2024 15:25 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228287 ФПД: 128876646247042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152518&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228287&fm=128876646247042&tin=02508201610067®Number=0000000000091685&sum=50000 [15:25:15]StoreToDocumentArchive [15:25:15]shift 535 fd 228287 [15:25:15]save to /storage/0535/doc_00228287 [15:25:15]save last doc name /storage/0535/doc_00228287 to /storage/kkm_last_doc_name [15:25:15]save OK [15:25:15]Clear old archive folders... [15:25:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:25:15]tlvbuf is 009BC0C0 [15:25:15]SAM_PROTO_ClearQueue [15:25:15]wFMCommunicate request_size=4 [15:25:15]MH_SAM_APDU [15:25:15]CAPDU: 80 09 00 00 [15:25:15]Write to MH i2c: E2 08 00 1D 4B 80 09 00 00 00 00 00 00 DA [15:25:15]Write i2c OK [15:25:15]MH_I2C_Read... [15:25:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:15]Read from MH i2c: E2 [15:25:15]MH_I2C_Read... [15:25:15]Read from MH i2c: E2 03 00 [15:25:15]MH_I2C_Read... [15:25:15]Read from MH i2c: E2 03 00 1D 4B 00 90 00 DC [15:25:15]RAPDU: 90 00 [15:25:15]wFMCommunicate OK [15:25:15]SAM_PROTO_ClearQueue done [15:25:15]KKMCreateOFDPacket [15:25:15]OFDProtocolAddRootSTLVToBuf [15:25:15]FM_MakeSignedData [15:25:15]FM_MakeSignedData [15:25:15]SAM_PROTO_SignData [15:25:15]wFMCommunicate request_size=4 [15:25:15]MH_SAM_APDU [15:25:15]CAPDU: 80 0D 01 02 [15:25:15]Write to MH i2c: E2 08 00 1E 4B 80 0D 01 02 00 00 00 00 E2 [15:25:15]Write i2c OK [15:25:15]MH_I2C_Read... [15:25:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:15]Read from MH i2c: E2 [15:25:15]MH_I2C_Read... [15:25:15]Read from MH i2c: E2 03 00 [15:25:15]MH_I2C_Read... [15:25:15]Read from MH i2c: E2 03 00 1E 4B 00 90 00 DD [15:25:15]RAPDU: 90 00 [15:25:15]wFMCommunicate OK [15:25:15]wFMCommunicate request_size=255 [15:25:15]MH_SAM_APDU [15:25: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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 DE C3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BF 7B 03 00 35 04 06 00 75 [15:25:15]Write to MH i2c: E2 02 01 1F 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 DE C3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BF 7B 03 00 35 04 06 00 75 00 00 36 [15:25:15]Write i2c OK [15:25:15]MH_I2C_Read... [15:25:15]OFD Sender: No OFD packet to send [15:25:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:15]Read from MH i2c: E2 [15:25:15]MH_I2C_Read... [15:25:15]Read from MH i2c: E2 03 00 [15:25:15]MH_I2C_Read... [15:25:15]Read from MH i2c: E2 03 00 1F 4B 00 90 00 DE [15:25:15]RAPDU: 90 00 [15:25:15]wFMCommunicate OK [15:25:15]wFMCommunicate request_size=10 [15:25:15]MH_SAM_APDU [15:25:15]CAPDU: 80 0D 02 02 05 36 6E B8 2A 82 [15:25:15]Write to MH i2c: E2 0D 00 20 4B 80 0D 02 02 05 00 36 6E B8 2A 82 00 00 F7 [15:25:15]Write i2c OK [15:25:15]MH_I2C_Read... [15:25:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:15]Read from MH i2c: E2 [15:25:15]MH_I2C_Read... [15:25:15]Read from MH i2c: E2 03 00 [15:25:15]MH_I2C_Read... [15:25:15]Read from MH i2c: E2 03 00 20 4B 00 90 00 DF [15:25:15]RAPDU: 90 00 [15:25:15]wFMCommunicate OK [15:25:15]wFMCommunicate request_size=4 [15:25:15]MH_SAM_APDU [15:25:15]CAPDU: 80 0D 03 02 [15:25:15]Write to MH i2c: E2 08 00 21 4B 80 0D 03 02 00 00 00 00 E7 [15:25:15]Write i2c OK [15:25:15]MH_I2C_Read... [15:25:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:15]Read from MH i2c: E2 [15:25:15]MH_I2C_Read... [15:25:15]Read from MH i2c: E2 0B 00 [15:25:15]MH_I2C_Read... [15:25:15]Read from MH i2c: E2 0B 00 21 4B 00 2B 3E F6 E7 0C F2 A4 F5 90 00 C5 [15:25:15]RAPDU: 2B 3E F6 E7 0C F2 A4 F5 90 00 [15:25:15]wFMCommunicate OK [15:25:15]SAM_PROTO_SignData done [15:25:15]FM_MakeSignedData done [15:25:15]CreateOFDProtocolMessage [15:25:15]wFMCommunicate request_size=4 [15:25:15]MH_SAM_APDU [15:25:15]CAPDU: 80 11 00 00 [15:25:15]Write to MH i2c: E2 08 00 22 4B 80 11 00 00 00 00 00 00 E7 [15:25:15]Write i2c OK [15:25:15]MH_I2C_Read... [15:25:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:15]Read from MH i2c: E2 [15:25:15]MH_I2C_Read... [15:25:15]Read from MH i2c: E2 17 00 [15:25:15]MH_I2C_Read... [15:25:15]Read from MH i2c: E2 17 00 22 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 3E [15:25:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:25:15]wFMCommunicate OK [15:25:15]CreateOFDProtocolMessage done [15:25:15]OFDSenderStorePacket 228287 [15:25:15]StoreOFDPacket docnum=228287 [15:25:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 3B 29 07 01 10 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 DE C3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BF 7B 03 00 35 04 06 00 75 36 6E B8 2A 82 2B 3E F6 E7 0C F2 A4 F5 [15:25:15]CheckFolder [15:25:15]dirname=/storage/ofd_packets [15:25:15]CheckFolder done [15:25:15]ProducePacketName [15:25:15]name=ofd_packets/00228287 [15:25:15]NVStorageSaveData ofd_packets/00228287 [15:25:15]File name is /storage/ofd_packets/00228287 [15:25:15]Write 301 bytes [15:25:15]NVStorageSaveData done [15:25:15]OFDSenderStorePacket done [15:25:15]KKMCreateOFDPacket done [15:25:15]NVStorageSaveData kkm_last_timestamp [15:25:15]File name is /storage/kkm_last_timestamp [15:25:15]Write 4 bytes [15:25:15]NVStorageSaveData done [15:25:15]ExternCall_PrintAddStr [15:25:15]wPrintStart [15:25:15]Write to MH i2c: 01 00 00 23 4B 6E [15:25:15]Write i2c OK [15:25:15]MH_I2C_Read... [15:25:15]Read from MH i2c: 01 [15:25:15]MH_I2C_Read... [15:25:15]Read from MH i2c: 01 07 00 [15:25:15]MH_I2C_Read... [15:25:15]Read from MH i2c: 01 07 00 23 4B 00 00 00 00 00 FF 0F 83 [15:25:15]RasterBufferAndPrint [15:25:15]line Счет N : (1)1964765 [15:25:15]line ИНН: 02508201610067 [15:25:15]line Контрольно-Кассовый Чек [15:25:15]line ПРОДАЖА [15:25:15]line ТРК (МРК, ГНК) : 54 [15:25:15]line Товар: 2710124500 [15:25:15]line Аи-95-К-5 [15:25:15]line 6.740 * 74.20 [15:25:15]line = 500.11 [15:25:15]line НДС 12% НСП 1% [15:25:15]line > о реализуемом товаре [15:25:15]line ОКРУГЛЕНИЕ: -0.11 [15:25:15]line ИТОГО: 500.00 [15:25:15]line Внесено: 500.00 [15:25:15]line СДАЧА: 0.00 [15:25:15]line НСП 1% : 4.43 [15:25:15]line НДС 12% : 53.11 [15:25:15]line Наличными: 500.00 [15:25:15]line Безнал.: 0.00 [15:25:15]line Место: АЗС № 133 "Партнер Нефть" [15:25:15]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:25:15]line СНО: Общий режим [15:25:15]line Чек 251 22.10.2024 15:25 [15:25:15]line Смена: 535 ФФД: 1.0 [15:25:15]line ЗНМ: 0300000091 [15:25:15]line РНМ: 0000000000091685 [15:25:15]line Версия ККМ: 001 [15:25:15]line ФМ: 0000000000871839 [15:25:15]line ФД: 228287 [15:25:15]line ФПД: 128876646247042 [15:25:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152518&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228287&fm=128876646247042&tin=02508201610067®Number=0000000000091685&sum=50000 [15:25:15]OFD Sender: Processing packet 228287 [packets to send 38, broken 37] [15:25:15]ProducePacketName [15:25:15]name=ofd_packets/00228287 [15:25:15]OFD Sender: To server: pG, [15:25:15]CommunicateWithHost lk.salyk.kg:30040 [15:25:15]ConnectInit lk.salyk.kg [15:25:15]written 0, free lines is 4095 [15:25:16]Connected sock=10 [15:25:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 3B 29 07 01 10 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 DE C3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BF 7B 03 00 35 04 06 00 75 36 6E B8 2A 82 2B 3E F6 E7 0C F2 A4 F5 [15:25:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 F9 A0 47 00 3B 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BF 7B 03 00 F4 03 04 00 D6 6E 17 67 B6 04 01 00 00 89 E0 6D 9A 55 26 55 B6 [15:25:16]CommunicateWithHost err = 0 [15:25:16]CheckOFDResponse [15:25:16]1017 (14) - 77093643461234 [15:25:16]1041 (16) - 0000000000871839 [15:25:16]1040 (4) - 228287 [15:25:16]1012 (4) - 22.10.2024 09:22 [15:25:16]1206 (1) - 0 [15:25:16]OFD Sender: Remove packet 228287 [15:25:16]ProducePacketName [15:25:16]name=ofd_packets/00228287 [15:25:16]NVStorageDeleteData [15:25:16]Write to MH i2c: 01 00 00 4D 4B 98 [15:25:16]Write i2c OK [15:25:16]MH_I2C_Read... [15:25:16]Read from MH i2c: 01 [15:25:16]MH_I2C_Read... [15:25:16]Read from MH i2c: 01 07 00 [15:25:16]MH_I2C_Read... [15:25:16]Read from MH i2c: 01 07 00 4D 4B 00 00 00 00 00 B2 0C 5D [15:25:16]RasterBufferAndPrint [15:25:16]line [15:25:16]line [15:25:16]line [15:25:16]line [15:25:16]line [15:25:16]written 0, free lines is 3254 [15:25:16]MH_Cut [15:25:16]Write to MH i2c: D1 01 00 54 4B 01 71 [15:25:16]Write i2c OK [15:25:16]MH_I2C_Read... [15:25:16]Read from MH i2c: D1 [15:25:16]MH_I2C_Read... [15:25:16]Read from MH i2c: D1 01 00 [15:25:16]MH_I2C_Read... [15:25:16]Read from MH i2c: D1 01 00 54 4B 00 70 [15:25:16]Write to MH i2c: 01 00 00 55 4B A0 [15:25:16]Write i2c OK [15:25:16]MH_I2C_Read... [15:25:16]OFD Sender: No OFD packet to send [15:25:17]*** Cut start [15:25:17]*** Partial cut [15:25:17]*** CUTSNS_PIN = 1 [15:25:17]*** CUTSNS_PIN = 0 [15:25:17]*** Brake cut motor [15:25:17]Read from MH i2c: 01 [15:25:17]MH_I2C_Read... [15:25:17]*** Stop cut motor [15:25:17]*** Cut end [15:25:17]Read from MH i2c: 01 07 00 [15:25:17]MH_I2C_Read... [15:25:17]Read from MH i2c: 01 07 00 55 4B 00 00 00 00 00 FF 0F B5 [15:25:17]process_action close_receipt done [15:25:17]requested_data is exist [15:25:17]produce_requested_data [15:25:17]requested_item fm.sn is exist - process it [15:25:17]wFMCommunicate request_size=4 [15:25:17]MH_SAM_APDU [15:25:17]CAPDU: 80 11 00 00 [15:25:17]Write to MH i2c: E2 08 00 56 4B 80 11 00 00 00 00 00 00 1B [15:25:17]Write i2c OK [15:25:17]MH_I2C_Read... [15:25:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:17]Read from MH i2c: E2 [15:25:17]MH_I2C_Read... [15:25:17]Read from MH i2c: E2 17 00 [15:25:17]MH_I2C_Read... [15:25:17]Read from MH i2c: E2 17 00 56 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 72 [15:25:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:25:17]wFMCommunicate OK [15:25:17]requested_item fd.num is exist - process it [15:25:17]SAM_PROTO_GetFieldsCounters [15:25:17]wFMCommunicate request_size=4 [15:25:17]MH_SAM_APDU [15:25:17]CAPDU: 80 13 00 00 [15:25:17]Write to MH i2c: E2 08 00 57 4B 80 13 00 00 00 00 00 00 1E [15:25:17]Write i2c OK [15:25:17]MH_I2C_Read... [15:25:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:18]Read from MH i2c: E2 [15:25:18]MH_I2C_Read... [15:25:18]Read from MH i2c: E2 62 00 [15:25:18]MH_I2C_Read... [15:25:18]Read from MH i2c: E2 62 00 57 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 BF 7B 03 00 0E 04 04 00 17 02 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 8E [15:25:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 BF 7B 03 00 0E 04 04 00 17 02 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 [15:25:18]wFMCommunicate OK [15:25:18]SAM_PROTO_GetFieldsCounters done [15:25:18]requested_item shift.num is exist - process it [15:25:18]requested_item shift.opened is exist - process it [15:25:18]req_shift_opened [15:25:18]FM_GetShiftState [15:25:18]SAM_PROTO_GetShiftState [15:25:18]wFMCommunicate request_size=4 [15:25:18]MH_SAM_APDU [15:25:18]CAPDU: 80 13 01 00 [15:25:18]Write to MH i2c: E2 08 00 58 4B 80 13 01 00 00 00 00 00 20 [15:25:18]Write i2c OK [15:25:18]MH_I2C_Read... [15:25:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:18]Read from MH i2c: E2 [15:25:18]MH_I2C_Read... [15:25:18]Read from MH i2c: E2 0E 00 [15:25:18]MH_I2C_Read... [15:25:18]Read from MH i2c: E2 0E 00 58 4B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 E7 [15:25:18]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:25:18]wFMCommunicate OK [15:25:18]SAM_PROTO_GetShiftState done [15:25:18]FM_GetShiftState done [15:25:18]req_shift_opened done [15:25:18]requested_item shift.open_date is exist - process it [15:25:18]req_shift_open_date [15:25:18]req_shift_open_date done [15:25:18]produce_requested_data done [15:25:18]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228287,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:25:18]process_action_free close_receipt [15:25:18]json_value_free [15:25:18]json_value_free done [15:25:18]process_json_proto returns [15:25:18]Send response to host [15:25:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228287,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:25:18]free response buf [15:25:18]execute_script done [15:25:18]execute_script returns [15:25:18]free content buf [15:25:18]Sock 9.Close socket [15:25:18]Sock 9.Thread stoped [15:25:21]OFD Sender: No OFD packet to send [15:25:26]OFD Sender: No OFD packet to send [15:25:31]OFD Sender: No OFD packet to send [15:25:36]OFD Sender: No OFD packet to send [15:25:41]OFD Sender: No OFD packet to send [15:25:46]OFD Sender: No OFD packet to send [15:25:47]accept exits with 7 [15:25:47]New connection [15:25:47]New thread 3067137380 created [15:25:47]Thread 3066994020 joined [15:25:47]Waiting for new connection... [15:25:47] Sock 7.Parse request [15:25:47]Sock 7.Check first char [15:25:47]Sock 7.First char is OK [15:25:47]request: POST /json_proto HTTP/1.0 [15:25:47]Method: POST [15:25:47]URL: /json_proto [15:25:47]Method is POST - this is cgi request [15:25:47]url: /json_proto [15:25:47]query_string will be loaded in cgi processing [15:25:47]execute_cgi json_proto POST (null) [15:25:47]execute_cgi path=json_proto method=POST [15:25:47]POST find Content-Length [15:25:47]Host: 172.17.44.195:8080 [15:25:47]Content-Length: 679 [15:25:47]Content-Type: application/json [15:25:47] [15:25:47]POST finish read [15:25:47]Found Content-Length = 679 [15:25:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "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" ] } } [15:25:47]execute_script... [15:25:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "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" ] } } [15:25:47]POST & json_proto [15:25:47]process_json_proto [15:25:47]json parsed OK: [15:25:47]protocol is kg_v1.0 [15:25:47]action value=close_receipt [15:25:47]process_action close_receipt [15:25:47]cmd_close_receipt [15:25:47]MH_GetDate [15:25:47]Write to MH i2c: F0 00 00 59 4B 93 [15:25:47]Write i2c OK [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: F0 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: F0 09 00 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: F0 09 00 59 4B 00 00 C4 17 67 82 C9 CF 66 5E [15:25:47]GetLastDocTimeStamp 1729610718 [15:25:47]current date 1729610752 [15:25:47]FM_GetShiftState [15:25:47]SAM_PROTO_GetShiftState [15:25:47]wFMCommunicate request_size=4 [15:25:47]MH_SAM_APDU [15:25:47]CAPDU: 80 13 01 00 [15:25:47]Write to MH i2c: E2 08 00 5A 4B 80 13 01 00 00 00 00 00 22 [15:25:47]Write i2c OK [15:25:47]MH_I2C_Read... [15:25:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:47]Read from MH i2c: E2 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: E2 0E 00 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: E2 0E 00 5A 4B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 E9 [15:25:47]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:25:47]wFMCommunicate OK [15:25:47]SAM_PROTO_GetShiftState done [15:25:47]FM_GetShiftState done [15:25:47]opened in 1729555538 [15:25:47]opened+sec_in_day 1729641938 [15:25:47]quantity*price = 80012 [15:25:47]sum+1 = 80013 [15:25:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 252 22.10.2024 15:25 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228288 ФПД: 79226303665139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152552&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228288&fm=79226303665139&tin=02508201610067®Number=0000000000091685&sum=80000 [15:25:48]StoreToDocumentArchive [15:25:48]shift 535 fd 228288 [15:25:48]save to /storage/0535/doc_00228288 [15:25:48]save last doc name /storage/0535/doc_00228288 to /storage/kkm_last_doc_name [15:25:48]save OK [15:25:48]Clear old archive folders... [15:25:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:25:48]tlvbuf is 00A7C310 [15:25:48]SAM_PROTO_ClearQueue [15:25:48]wFMCommunicate request_size=4 [15:25:48]MH_SAM_APDU [15:25:48]CAPDU: 80 09 00 00 [15:25:48]Write to MH i2c: E2 08 00 67 4B 80 09 00 00 00 00 00 00 24 [15:25:48]Write i2c OK [15:25:48]MH_I2C_Read... [15:25:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:48]Read from MH i2c: E2 [15:25:48]MH_I2C_Read... [15:25:48]Read from MH i2c: E2 03 00 [15:25:48]MH_I2C_Read... [15:25:48]Read from MH i2c: E2 03 00 67 4B 00 90 00 26 [15:25:48]RAPDU: 90 00 [15:25:48]wFMCommunicate OK [15:25:48]SAM_PROTO_ClearQueue done [15:25:48]KKMCreateOFDPacket [15:25:48]OFDProtocolAddRootSTLVToBuf [15:25:48]FM_MakeSignedData [15:25:48]FM_MakeSignedData [15:25:48]SAM_PROTO_SignData [15:25:48]wFMCommunicate request_size=4 [15:25:48]MH_SAM_APDU [15:25:48]CAPDU: 80 0D 01 02 [15:25:48]Write to MH i2c: E2 08 00 68 4B 80 0D 01 02 00 00 00 00 2C [15:25:48]Write i2c OK [15:25:48]MH_I2C_Read... [15:25:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:48]Read from MH i2c: E2 [15:25:48]MH_I2C_Read... [15:25:48]Read from MH i2c: E2 03 00 [15:25:48]MH_I2C_Read... [15:25:48]Read from MH i2c: E2 03 00 68 4B 00 90 00 27 [15:25:48]RAPDU: 90 00 [15:25:48]wFMCommunicate OK [15:25:48]wFMCommunicate request_size=255 [15:25:48]MH_SAM_APDU [15:25: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 00 C4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C0 7B 03 00 35 04 06 00 48 [15:25:48]Write to MH i2c: E2 02 01 69 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 00 C4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C0 7B 03 00 35 04 06 00 48 00 00 8C [15:25:48]Write i2c OK [15:25:48]MH_I2C_Read... [15:25:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:49]Read from MH i2c: E2 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: E2 03 00 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: E2 03 00 69 4B 00 90 00 28 [15:25:49]RAPDU: 90 00 [15:25:49]wFMCommunicate OK [15:25:49]wFMCommunicate request_size=10 [15:25:49]MH_SAM_APDU [15:25:49]CAPDU: 80 0D 02 02 05 0E 4F AF D3 F3 [15:25:49]Write to MH i2c: E2 0D 00 6A 4B 80 0D 02 02 05 00 0E 4F AF D3 F3 00 00 0B [15:25:49]Write i2c OK [15:25:49]MH_I2C_Read... [15:25:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:49]Read from MH i2c: E2 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: E2 03 00 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: E2 03 00 6A 4B 00 90 00 29 [15:25:49]RAPDU: 90 00 [15:25:49]wFMCommunicate OK [15:25:49]wFMCommunicate request_size=4 [15:25:49]MH_SAM_APDU [15:25:49]CAPDU: 80 0D 03 02 [15:25:49]Write to MH i2c: E2 08 00 6B 4B 80 0D 03 02 00 00 00 00 31 [15:25:49]Write i2c OK [15:25:49]MH_I2C_Read... [15:25:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:49]Read from MH i2c: E2 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: E2 0B 00 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: E2 0B 00 6B 4B 00 8C C2 7E AA B3 1D 71 91 90 00 7A [15:25:49]RAPDU: 8C C2 7E AA B3 1D 71 91 90 00 [15:25:49]wFMCommunicate OK [15:25:49]SAM_PROTO_SignData done [15:25:49]FM_MakeSignedData done [15:25:49]CreateOFDProtocolMessage [15:25:49]wFMCommunicate request_size=4 [15:25:49]MH_SAM_APDU [15:25:49]CAPDU: 80 11 00 00 [15:25:49]Write to MH i2c: E2 08 00 6C 4B 80 11 00 00 00 00 00 00 31 [15:25:49]Write i2c OK [15:25:49]MH_I2C_Read... [15:25:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:49]Read from MH i2c: E2 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: E2 17 00 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: E2 17 00 6C 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 88 [15:25:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:25:49]wFMCommunicate OK [15:25:49]CreateOFDProtocolMessage done [15:25:49]OFDSenderStorePacket 228288 [15:25:49]StoreOFDPacket docnum=228288 [15:25:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B1 96 07 01 F7 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 00 C4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C0 7B 03 00 35 04 06 00 48 0E 4F AF D3 F3 8C C2 7E AA B3 1D 71 91 [15:25:49]CheckFolder [15:25:49]dirname=/storage/ofd_packets [15:25:49]CheckFolder done [15:25:49]ProducePacketName [15:25:49]name=ofd_packets/00228288 [15:25:49]NVStorageSaveData ofd_packets/00228288 [15:25:49]File name is /storage/ofd_packets/00228288 [15:25:49]Write 301 bytes [15:25:49]NVStorageSaveData done [15:25:49]OFDSenderStorePacket done [15:25:49]KKMCreateOFDPacket done [15:25:49]NVStorageSaveData kkm_last_timestamp [15:25:49]File name is /storage/kkm_last_timestamp [15:25:49]Write 4 bytes [15:25:49]NVStorageSaveData done [15:25:49]ExternCall_PrintAddStr [15:25:49]wPrintStart [15:25:49]Write to MH i2c: 01 00 00 6D 4B B8 [15:25:49]Write i2c OK [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: 01 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: 01 07 00 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: 01 07 00 6D 4B 00 00 00 00 00 FF 0F CD [15:25:49]RasterBufferAndPrint [15:25:49]line Счет N : (1)1964764 [15:25:49]line ИНН: 02508201610067 [15:25:49]line Контрольно-Кассовый Чек [15:25:49]line ПРОДАЖА [15:25:49]line ТРК (МРК, ГНК) : 33 [15:25:49]line Товар: 2710124130 [15:25:49]line Аи-92-К-5 [15:25:49]line 11.960 * 66.90 [15:25:49]line = 800.12 [15:25:49]line НДС 12% НСП 1% [15:25:49]line > о реализуемом товаре [15:25:49]line ОКРУГЛЕНИЕ: -0.12 [15:25:49]line ИТОГО: 800.00 [15:25:49]line Внесено: 800.00 [15:25:49]line СДАЧА: 0.00 [15:25:49]line НСП 1% : 7.08 [15:25:49]line НДС 12% : 84.97 [15:25:49]line Наличными: 800.00 [15:25:49]line Безнал.: 0.00 [15:25:49]line Место: АЗС № 133 "Партнер Нефть" [15:25:49]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:25:49]line СНО: Общий режим [15:25:49]line Чек 252 22.10.2024 15:25 [15:25:49]line Смена: 535 ФФД: 1.0 [15:25:49]line ЗНМ: 0300000091 [15:25:49]line РНМ: 0000000000091685 [15:25:49]line Версия ККМ: 001 [15:25:49]line ФМ: 0000000000871839 [15:25:49]line ФД: 228288 [15:25:49]line ФПД: 79226303665139 [15:25:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152552&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228288&fm=79226303665139&tin=02508201610067®Number=0000000000091685&sum=80000 [15:25:49]OFD Sender: Processing packet 228288 [packets to send 38, broken 37] [15:25:49]ProducePacketName [15:25:49]name=ofd_packets/00228288 [15:25:49]OFD Sender: To server: pG, [15:25:49]CommunicateWithHost lk.salyk.kg:30040 [15:25:49]ConnectInit lk.salyk.kg [15:25:49]written 0, free lines is 4095 [15:25:49]Connected sock=10 [15:25:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B1 96 07 01 F7 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 00 C4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C0 7B 03 00 35 04 06 00 48 0E 4F AF D3 F3 8C C2 7E AA B3 1D 71 91 [15:25:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 AC 33 47 00 82 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C0 7B 03 00 F4 03 04 00 F8 6E 17 67 B6 04 01 00 00 D9 F1 47 3F 51 35 06 00 [15:25:49]CommunicateWithHost err = 0 [15:25:49]CheckOFDResponse [15:25:49]1017 (14) - 77093643461234 [15:25:49]1041 (16) - 0000000000871839 [15:25:49]1040 (4) - 228288 [15:25:49]1012 (4) - 22.10.2024 09:23 [15:25:49]1206 (1) - 0 [15:25:49]OFD Sender: Remove packet 228288 [15:25:49]ProducePacketName [15:25:49]name=ofd_packets/00228288 [15:25:49]NVStorageDeleteData [15:25:49]Write to MH i2c: 01 00 00 97 4B E2 [15:25:49]Write i2c OK [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: 01 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: 01 07 00 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: 01 07 00 97 4B 00 00 00 00 00 B9 0C AE [15:25:49]RasterBufferAndPrint [15:25:49]line [15:25:49]line [15:25:49]line [15:25:49]line [15:25:49]line [15:25:49]written 0, free lines is 3263 [15:25:49]MH_Cut [15:25:49]Write to MH i2c: D1 01 00 9E 4B 01 BB [15:25:49]Write i2c OK [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: D1 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: D1 01 00 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: D1 01 00 9E 4B 00 BA [15:25:49]Write to MH i2c: 01 00 00 9F 4B EA [15:25:49]Write i2c OK [15:25:49]MH_I2C_Read... [15:25:50]OFD Sender: No OFD packet to send [15:25:50]*** Cut start [15:25:50]*** Partial cut [15:25:50]*** CUTSNS_PIN = 1 [15:25:50]*** CUTSNS_PIN = 0 [15:25:51]*** Brake cut motor [15:25:51]Read from MH i2c: 01 [15:25:51]MH_I2C_Read... [15:25:51]*** Stop cut motor [15:25:51]*** Cut end [15:25:51]Read from MH i2c: 01 07 00 [15:25:51]MH_I2C_Read... [15:25:51]Read from MH i2c: 01 07 00 9F 4B 00 00 00 00 00 FF 0F FF [15:25:51]process_action close_receipt done [15:25:51]requested_data is exist [15:25:51]produce_requested_data [15:25:51]requested_item fm.sn is exist - process it [15:25:51]wFMCommunicate request_size=4 [15:25:51]MH_SAM_APDU [15:25:51]CAPDU: 80 11 00 00 [15:25:51]Write to MH i2c: E2 08 00 A0 4B 80 11 00 00 00 00 00 00 65 [15:25:51]Write i2c OK [15:25:51]MH_I2C_Read... [15:25:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:51]Read from MH i2c: E2 [15:25:51]MH_I2C_Read... [15:25:51]Read from MH i2c: E2 17 00 [15:25:51]MH_I2C_Read... [15:25:51]Read from MH i2c: E2 17 00 A0 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BC [15:25:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:25:51]wFMCommunicate OK [15:25:51]requested_item fd.num is exist - process it [15:25:51]SAM_PROTO_GetFieldsCounters [15:25:51]wFMCommunicate request_size=4 [15:25:51]MH_SAM_APDU [15:25:51]CAPDU: 80 13 00 00 [15:25:51]Write to MH i2c: E2 08 00 A1 4B 80 13 00 00 00 00 00 00 68 [15:25:51]Write i2c OK [15:25:51]MH_I2C_Read... [15:25:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:51]Read from MH i2c: E2 [15:25:51]MH_I2C_Read... [15:25:51]Read from MH i2c: E2 62 00 [15:25:51]MH_I2C_Read... [15:25:51]Read from MH i2c: E2 62 00 A1 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C0 7B 03 00 0E 04 04 00 17 02 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 DC [15:25:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C0 7B 03 00 0E 04 04 00 17 02 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 [15:25:51]wFMCommunicate OK [15:25:51]SAM_PROTO_GetFieldsCounters done [15:25:51]requested_item shift.num is exist - process it [15:25:51]requested_item shift.opened is exist - process it [15:25:51]req_shift_opened [15:25:51]FM_GetShiftState [15:25:51]SAM_PROTO_GetShiftState [15:25:51]wFMCommunicate request_size=4 [15:25:51]MH_SAM_APDU [15:25:51]CAPDU: 80 13 01 00 [15:25:51]Write to MH i2c: E2 08 00 A2 4B 80 13 01 00 00 00 00 00 6A [15:25:51]Write i2c OK [15:25:51]MH_I2C_Read... [15:25:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:51]Read from MH i2c: E2 [15:25:51]MH_I2C_Read... [15:25:51]Read from MH i2c: E2 0E 00 [15:25:51]MH_I2C_Read... [15:25:51]Read from MH i2c: E2 0E 00 A2 4B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 31 [15:25:51]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:25:51]wFMCommunicate OK [15:25:51]SAM_PROTO_GetShiftState done [15:25:51]FM_GetShiftState done [15:25:51]req_shift_opened done [15:25:51]requested_item shift.open_date is exist - process it [15:25:51]req_shift_open_date [15:25:51]req_shift_open_date done [15:25:51]produce_requested_data done [15:25:51]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228288,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:25:51]process_action_free close_receipt [15:25:51]json_value_free [15:25:51]json_value_free done [15:25:51]process_json_proto returns [15:25:51]Send response to host [15:25:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228288,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:25:51]free response buf [15:25:51]execute_script done [15:25:51]execute_script returns [15:25:51]free content buf [15:25:51]Sock 7.Close socket [15:25:51]Sock 7.Thread stoped [15:25:55]OFD Sender: No OFD packet to send [15:25:56]accept exits with 9 [15:25:56]New connection [15:25:56]New thread 3066994020 created [15:25:56]Thread 3067137380 joined [15:25:56]Waiting for new connection... [15:25:56] Sock 9.Parse request [15:25:56]Sock 9.Check first char [15:25:56]Sock 9.First char is OK [15:25:56]request: POST /json_proto HTTP/1.0 [15:25:56]Method: POST [15:25:56]URL: /json_proto [15:25:56]Method is POST - this is cgi request [15:25:56]url: /json_proto [15:25:56]query_string will be loaded in cgi processing [15:25:56]execute_cgi json_proto POST (null) [15:25:56]execute_cgi path=json_proto method=POST [15:25:56]POST find Content-Length [15:25:56]Host: 172.17.44.195:8080 [15:25:56]Content-Length: 752 [15:25:56]Content-Type: application/json [15:25:56] [15:25:56]POST finish read [15:25:56]Found Content-Length = 752 [15:25:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964766", "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" : 0.00, "quantity" : 23.630, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30093357", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:56]execute_script... [15:25: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)1964766", "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" : 0.00, "quantity" : 23.630, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30093357", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:56]POST & json_proto [15:25:56]process_json_proto [15:25:56]json parsed OK: [15:25:56]protocol is kg_v1.0 [15:25:56]action value=close_receipt [15:25:56]process_action close_receipt [15:25:56]cmd_close_receipt [15:25:56]MH_GetDate [15:25:56]Write to MH i2c: F0 00 00 A3 4B DD [15:25:56]Write i2c OK [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: F0 [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: F0 09 00 [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: F0 09 00 A3 4B 00 09 C4 17 67 82 C9 CF 66 B1 [15:25:56]GetLastDocTimeStamp 1729610752 [15:25:56]current date 1729610761 [15:25:56]FM_GetShiftState [15:25:56]SAM_PROTO_GetShiftState [15:25:56]wFMCommunicate request_size=4 [15:25:56]MH_SAM_APDU [15:25:56]CAPDU: 80 13 01 00 [15:25:56]Write to MH i2c: E2 08 00 A4 4B 80 13 01 00 00 00 00 00 6C [15:25:56]Write i2c OK [15:25:56]MH_I2C_Read... [15:25:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:56]Read from MH i2c: E2 [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: E2 0E 00 [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: E2 0E 00 A4 4B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 33 [15:25:56]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:25:56]wFMCommunicate OK [15:25:56]SAM_PROTO_GetShiftState done [15:25:56]FM_GetShiftState done [15:25:56]opened in 1729555538 [15:25:56]opened+sec_in_day 1729641938 [15:25:56]quantity*price = 0 [15:25:56]sum+1 = 1 [15:25:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 253 22.10.2024 15:26 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: ТК ГПНА Online 30093357 ФМ: 0000000000871839 ФД: 228289 ФПД: 186610935772432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152601&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228289&fm=186610935772432&tin=02508201610067®Number=0000000000091685&sum=0 [15:25:57]StoreToDocumentArchive [15:25:57]shift 535 fd 228289 [15:25:57]save to /storage/0535/doc_00228289 [15:25:57]save last doc name /storage/0535/doc_00228289 to /storage/kkm_last_doc_name [15:25:57]save OK [15:25:57]Clear old archive folders... [15:25:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:25:57]tlvbuf is B6F07640 [15:25:57]SAM_PROTO_ClearQueue [15:25:57]wFMCommunicate request_size=4 [15:25:57]MH_SAM_APDU [15:25:57]CAPDU: 80 09 00 00 [15:25:57]Write to MH i2c: E2 08 00 B1 4B 80 09 00 00 00 00 00 00 6E [15:25:57]Write i2c OK [15:25:57]MH_I2C_Read... [15:25:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:57]Read from MH i2c: E2 [15:25:57]MH_I2C_Read... [15:25:57]Read from MH i2c: E2 03 00 [15:25:57]MH_I2C_Read... [15:25:57]Read from MH i2c: E2 03 00 B1 4B 00 90 00 70 [15:25:57]RAPDU: 90 00 [15:25:57]wFMCommunicate OK [15:25:57]SAM_PROTO_ClearQueue done [15:25:57]KKMCreateOFDPacket [15:25:57]OFDProtocolAddRootSTLVToBuf [15:25:57]FM_MakeSignedData [15:25:57]FM_MakeSignedData [15:25:57]SAM_PROTO_SignData [15:25:57]wFMCommunicate request_size=4 [15:25:57]MH_SAM_APDU [15:25:57]CAPDU: 80 0D 01 02 [15:25:57]Write to MH i2c: E2 08 00 B2 4B 80 0D 01 02 00 00 00 00 76 [15:25:57]Write i2c OK [15:25:57]MH_I2C_Read... [15:25:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:57]Read from MH i2c: E2 [15:25:57]MH_I2C_Read... [15:25:57]Read from MH i2c: E2 03 00 [15:25:57]MH_I2C_Read... [15:25:57]Read from MH i2c: E2 03 00 B2 4B 00 90 00 71 [15:25:57]RAPDU: 90 00 [15:25:57]wFMCommunicate OK [15:25:57]wFMCommunicate request_size=255 [15:25:57]MH_SAM_APDU [15:25: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 4E 5C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 09 C4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C1 7B 03 00 35 04 06 00 A9 B8 BE 89 [15:25:57]Write to MH i2c: E2 02 01 B3 4B 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 4E 5C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 09 C4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C1 7B 03 00 35 04 06 00 A9 B8 BE 89 00 00 CD [15:25:57]Write i2c OK [15:25:57]MH_I2C_Read... [15:25:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:58]Read from MH i2c: E2 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: E2 03 00 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: E2 03 00 B3 4B 00 90 00 72 [15:25:58]RAPDU: 90 00 [15:25:58]wFMCommunicate OK [15:25:58]wFMCommunicate request_size=7 [15:25:58]MH_SAM_APDU [15:25:58]CAPDU: 80 0D 02 02 02 B5 10 [15:25:58]Write to MH i2c: E2 0A 00 B4 4B 80 0D 02 02 02 00 B5 10 00 00 42 [15:25:58]Write i2c OK [15:25:58]MH_I2C_Read... [15:25:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:58]Read from MH i2c: E2 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: E2 03 00 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: E2 03 00 B4 4B 00 90 00 73 [15:25:58]RAPDU: 90 00 [15:25:58]wFMCommunicate OK [15:25:58]wFMCommunicate request_size=4 [15:25:58]MH_SAM_APDU [15:25:58]CAPDU: 80 0D 03 02 [15:25:58]Write to MH i2c: E2 08 00 B5 4B 80 0D 03 02 00 00 00 00 7B [15:25:58]Write i2c OK [15:25:58]MH_I2C_Read... [15:25:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:58]Read from MH i2c: E2 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: E2 0B 00 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: E2 0B 00 B5 4B 00 94 B0 EE F0 49 5B 36 BA 90 00 32 [15:25:58]RAPDU: 94 B0 EE F0 49 5B 36 BA 90 00 [15:25:58]wFMCommunicate OK [15:25:58]SAM_PROTO_SignData done [15:25:58]FM_MakeSignedData done [15:25:58]CreateOFDProtocolMessage [15:25:58]wFMCommunicate request_size=4 [15:25:58]MH_SAM_APDU [15:25:58]CAPDU: 80 11 00 00 [15:25:58]Write to MH i2c: E2 08 00 B6 4B 80 11 00 00 00 00 00 00 7B [15:25:58]Write i2c OK [15:25:58]MH_I2C_Read... [15:25:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:58]Read from MH i2c: E2 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: E2 17 00 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: E2 17 00 B6 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D2 [15:25:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:25:58]wFMCommunicate OK [15:25:58]CreateOFDProtocolMessage done [15:25:58]OFDSenderStorePacket 228289 [15:25:58]StoreOFDPacket docnum=228289 [15:25:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 2C 46 04 01 10 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 4E 5C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 09 C4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C1 7B 03 00 35 04 06 00 A9 B8 BE 89 B5 10 94 B0 EE F0 49 5B 36 BA [15:25:58]CheckFolder [15:25:58]dirname=/storage/ofd_packets [15:25:58]CheckFolder done [15:25:58]ProducePacketName [15:25:58]name=ofd_packets/00228289 [15:25:58]NVStorageSaveData ofd_packets/00228289 [15:25:58]File name is /storage/ofd_packets/00228289 [15:25:58]Write 298 bytes [15:25:58]NVStorageSaveData done [15:25:58]OFDSenderStorePacket done [15:25:58]KKMCreateOFDPacket done [15:25:58]NVStorageSaveData kkm_last_timestamp [15:25:58]File name is /storage/kkm_last_timestamp [15:25:58]Write 4 bytes [15:25:58]NVStorageSaveData done [15:25:58]ExternCall_PrintAddStr [15:25:58]wPrintStart [15:25:58]Write to MH i2c: 01 00 00 B7 4B 02 [15:25:58]Write i2c OK [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: 01 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: 01 07 00 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: 01 07 00 B7 4B 00 00 00 00 00 FF 0F 17 [15:25:58]RasterBufferAndPrint [15:25:58]line Счет N : (1)1964766 [15:25:58]line ИНН: 02508201610067 [15:25:58]line Контрольно-Кассовый Чек [15:25:58]line ПРОДАЖА [15:25:58]line ТРК (МРК, ГНК) : 11 [15:25:58]line Товар: 2710194210 [15:25:58]line ДТ-К-5 [15:25:58]line 23.630 * 0.00 [15:25:58]line = 0.00 [15:25:58]line НДС 12% НСП 1% [15:25:58]line > о реализуемом товаре [15:25:58]line ИТОГО: 0.00 [15:25:58]line НСП 1% : 0.00 [15:25:58]line НДС 12% : 0.00 [15:25:58]line Наличными: 0.00 [15:25:58]line Безнал.: 0.00 [15:25:58]line Место: АЗС № 133 "Партнер Нефть" [15:25:58]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:25:58]line СНО: Общий режим [15:25:58]line Чек 253 22.10.2024 15:26 [15:25:58]line Смена: 535 ФФД: 1.0 [15:25:58]line ЗНМ: 0300000091 [15:25:58]line РНМ: 0000000000091685 [15:25:58]line Версия ККМ: 001 [15:25:58]line Талоны: ТК ГПНА Online [15:25:58]line 30093357 [15:25:58]line ФМ: 0000000000871839 [15:25:58]line ФД: 228289 [15:25:58]line ФПД: 186610935772432 [15:25:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152601&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228289&fm=186610935772432&tin=02508201610067®Number=0000000000091685&sum=0 [15:25:58]written 0, free lines is 4095 [15:25:58]OFD Sender: Processing packet 228289 [packets to send 38, broken 37] [15:25:58]ProducePacketName [15:25:58]name=ofd_packets/00228289 [15:25:58]OFD Sender: To server: pG, [15:25:58]CommunicateWithHost lk.salyk.kg:30040 [15:25:58]ConnectInit lk.salyk.kg [15:25:58]Connected sock=10 [15:25:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 2C 46 04 01 10 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 4E 5C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 09 C4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C1 7B 03 00 35 04 06 00 A9 B8 BE 89 B5 10 94 B0 EE F0 49 5B 36 BA [15:25:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 32 89 47 00 B5 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C1 7B 03 00 F4 03 04 00 01 6F 17 67 B6 04 01 00 00 F3 16 FF 4D 7D CB D6 4E [15:25:58]CommunicateWithHost err = 0 [15:25:58]CheckOFDResponse [15:25:58]1017 (14) - 77093643461234 [15:25:58]1041 (16) - 0000000000871839 [15:25:58]1040 (4) - 228289 [15:25:58]1012 (4) - 22.10.2024 09:23 [15:25:58]1206 (1) - 0 [15:25:58]OFD Sender: Remove packet 228289 [15:25:58]ProducePacketName [15:25:58]name=ofd_packets/00228289 [15:25:58]NVStorageDeleteData [15:25:58]Write to MH i2c: 01 00 00 E0 4B 2B [15:25:58]Write i2c OK [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: 01 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: 01 07 00 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: 01 07 00 E0 4B 00 00 00 00 00 D4 0C 12 [15:25:58]RasterBufferAndPrint [15:25:58]line [15:25:58]line [15:25:58]line [15:25:58]line [15:25:58]line [15:25:58]written 0, free lines is 3293 [15:25:58]MH_Cut [15:25:58]Write to MH i2c: D1 01 00 E7 4B 01 04 [15:25:58]Write i2c OK [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: D1 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: D1 01 00 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: D1 01 00 E7 4B 00 03 [15:25:58]Write to MH i2c: 01 00 00 E8 4B 33 [15:25:58]Write i2c OK [15:25:58]MH_I2C_Read... [15:25:59]OFD Sender: No OFD packet to send [15:25:59]*** Cut start [15:25:59]*** Partial cut [15:25:59]*** CUTSNS_PIN = 1 [15:25:59]*** CUTSNS_PIN = 0 [15:25:59]*** Brake cut motor [15:26:00]Read from MH i2c: 01 [15:26:00]MH_I2C_Read... [15:26:00]*** Stop cut motor [15:26:00]*** Cut end [15:26:00]Read from MH i2c: 01 07 00 [15:26:00]MH_I2C_Read... [15:26:00]Read from MH i2c: 01 07 00 E8 4B 00 00 00 00 00 FF 0F 48 [15:26:00]process_action close_receipt done [15:26:00]requested_data is exist [15:26:00]produce_requested_data [15:26:00]requested_item fm.sn is exist - process it [15:26:00]wFMCommunicate request_size=4 [15:26:00]MH_SAM_APDU [15:26:00]CAPDU: 80 11 00 00 [15:26:00]Write to MH i2c: E2 08 00 E9 4B 80 11 00 00 00 00 00 00 AE [15:26:00]Write i2c OK [15:26:00]MH_I2C_Read... [15:26:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:00]Read from MH i2c: E2 [15:26:00]MH_I2C_Read... [15:26:00]Read from MH i2c: E2 17 00 [15:26:00]MH_I2C_Read... [15:26:00]Read from MH i2c: E2 17 00 E9 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 05 [15:26:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:26:00]wFMCommunicate OK [15:26:00]requested_item fd.num is exist - process it [15:26:00]SAM_PROTO_GetFieldsCounters [15:26:00]wFMCommunicate request_size=4 [15:26:00]MH_SAM_APDU [15:26:00]CAPDU: 80 13 00 00 [15:26:00]Write to MH i2c: E2 08 00 EA 4B 80 13 00 00 00 00 00 00 B1 [15:26:00]Write i2c OK [15:26:00]MH_I2C_Read... [15:26:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:00]Read from MH i2c: E2 [15:26:00]MH_I2C_Read... [15:26:00]Read from MH i2c: E2 62 00 [15:26:00]MH_I2C_Read... [15:26:00]Read from MH i2c: E2 62 00 EA 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C1 7B 03 00 0E 04 04 00 17 02 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 29 [15:26:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C1 7B 03 00 0E 04 04 00 17 02 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 [15:26:00]wFMCommunicate OK [15:26:00]SAM_PROTO_GetFieldsCounters done [15:26:00]requested_item shift.num is exist - process it [15:26:00]requested_item shift.opened is exist - process it [15:26:00]req_shift_opened [15:26:00]FM_GetShiftState [15:26:00]SAM_PROTO_GetShiftState [15:26:00]wFMCommunicate request_size=4 [15:26:00]MH_SAM_APDU [15:26:00]CAPDU: 80 13 01 00 [15:26:00]Write to MH i2c: E2 08 00 EB 4B 80 13 01 00 00 00 00 00 B3 [15:26:00]Write i2c OK [15:26:00]MH_I2C_Read... [15:26:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:00]Read from MH i2c: E2 [15:26:00]MH_I2C_Read... [15:26:00]Read from MH i2c: E2 0E 00 [15:26:00]MH_I2C_Read... [15:26:00]Read from MH i2c: E2 0E 00 EB 4B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 7A [15:26:00]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:26:00]wFMCommunicate OK [15:26:00]SAM_PROTO_GetShiftState done [15:26:00]FM_GetShiftState done [15:26:00]req_shift_opened done [15:26:00]requested_item shift.open_date is exist - process it [15:26:00]req_shift_open_date [15:26:00]req_shift_open_date done [15:26:00]produce_requested_data done [15:26:00]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228289,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:26:00]process_action_free close_receipt [15:26:00]json_value_free [15:26:00]json_value_free done [15:26:00]process_json_proto returns [15:26:00]Send response to host [15:26:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228289,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:26:00]free response buf [15:26:00]execute_script done [15:26:00]execute_script returns [15:26:00]free content buf [15:26:00]Sock 9.Close socket [15:26:00]Sock 9.Thread stoped [15:26:04]OFD Sender: No OFD packet to send [15:26:09]OFD Sender: No OFD packet to send [15:26:14]OFD Sender: No OFD packet to send [15:26:19]OFD Sender: No OFD packet to send [15:26:24]OFD Sender: No OFD packet to send [15:26:27]accept exits with 7 [15:26:27]New connection [15:26:27]New thread 3067137380 created [15:26:27]Thread 3066994020 joined [15:26:27]Waiting for new connection... [15:26:27] Sock 7.Parse request [15:26:27]Sock 7.Check first char [15:26:27]Sock 7.First char is OK [15:26:27]request: POST /json_proto HTTP/1.0 [15:26:27]Method: POST [15:26:27]URL: /json_proto [15:26:27]Method is POST - this is cgi request [15:26:27]url: /json_proto [15:26:27]query_string will be loaded in cgi processing [15:26:27]execute_cgi json_proto POST (null) [15:26:27]execute_cgi path=json_proto method=POST [15:26:27]POST find Content-Length [15:26:27]Host: 172.17.44.195:8080 [15:26:27]Content-Length: 678 [15:26:27]Content-Type: application/json [15:26:27] [15:26:27]POST finish read [15:26:27]Found Content-Length = 678 [15:26:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "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" ] } } [15:26:27]execute_script... [15:26: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)1964767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "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" ] } } [15:26:27]POST & json_proto [15:26:27]process_json_proto [15:26:27]json parsed OK: [15:26:27]protocol is kg_v1.0 [15:26:27]action value=close_receipt [15:26:27]process_action close_receipt [15:26:27]cmd_close_receipt [15:26:27]MH_GetDate [15:26:27]Write to MH i2c: F0 00 00 EC 4B 26 [15:26:27]Write i2c OK [15:26:27]MH_I2C_Read... [15:26:27]Read from MH i2c: F0 [15:26:27]MH_I2C_Read... [15:26:27]Read from MH i2c: F0 09 00 [15:26:27]MH_I2C_Read... [15:26:27]Read from MH i2c: F0 09 00 EC 4B 00 27 C4 17 67 82 C9 CF 66 18 [15:26:27]GetLastDocTimeStamp 1729610761 [15:26:27]current date 1729610791 [15:26:27]FM_GetShiftState [15:26:27]SAM_PROTO_GetShiftState [15:26:27]wFMCommunicate request_size=4 [15:26:27]MH_SAM_APDU [15:26:27]CAPDU: 80 13 01 00 [15:26:27]Write to MH i2c: E2 08 00 ED 4B 80 13 01 00 00 00 00 00 B5 [15:26:27]Write i2c OK [15:26:27]MH_I2C_Read... [15:26:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:27]Read from MH i2c: E2 [15:26:27]MH_I2C_Read... [15:26:27]Read from MH i2c: E2 0E 00 [15:26:27]MH_I2C_Read... [15:26:27]Read from MH i2c: E2 0E 00 ED 4B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 7C [15:26:27]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:26:27]wFMCommunicate OK [15:26:27]SAM_PROTO_GetShiftState done [15:26:27]FM_GetShiftState done [15:26:27]opened in 1729555538 [15:26:27]opened+sec_in_day 1729641938 [15:26:27]quantity*price = 30038 [15:26:27]sum+1 = 30039 [15:26:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 254 22.10.2024 15:26 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228290 ФПД: 100124030940184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152631&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228290&fm=100124030940184&tin=02508201610067®Number=0000000000091685&sum=30000 [15:26:28]StoreToDocumentArchive [15:26:28]shift 535 fd 228290 [15:26:28]save to /storage/0535/doc_00228290 [15:26:28]save last doc name /storage/0535/doc_00228290 to /storage/kkm_last_doc_name [15:26:28]save OK [15:26:28]Clear old archive folders... [15:26:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:26:28]tlvbuf is 008E6FD0 [15:26:28]SAM_PROTO_ClearQueue [15:26:28]wFMCommunicate request_size=4 [15:26:28]MH_SAM_APDU [15:26:28]CAPDU: 80 09 00 00 [15:26:28]Write to MH i2c: E2 08 00 FA 4B 80 09 00 00 00 00 00 00 B7 [15:26:28]Write i2c OK [15:26:28]MH_I2C_Read... [15:26:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:28]Read from MH i2c: E2 [15:26:28]MH_I2C_Read... [15:26:28]Read from MH i2c: E2 03 00 [15:26:28]MH_I2C_Read... [15:26:28]Read from MH i2c: E2 03 00 FA 4B 00 90 00 B9 [15:26:28]RAPDU: 90 00 [15:26:28]wFMCommunicate OK [15:26:28]SAM_PROTO_ClearQueue done [15:26:28]KKMCreateOFDPacket [15:26:28]OFDProtocolAddRootSTLVToBuf [15:26:28]FM_MakeSignedData [15:26:28]FM_MakeSignedData [15:26:28]SAM_PROTO_SignData [15:26:28]wFMCommunicate request_size=4 [15:26:28]MH_SAM_APDU [15:26:28]CAPDU: 80 0D 01 02 [15:26:28]Write to MH i2c: E2 08 00 FB 4B 80 0D 01 02 00 00 00 00 BF [15:26:28]Write i2c OK [15:26:28]MH_I2C_Read... [15:26:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:28]Read from MH i2c: E2 [15:26:28]MH_I2C_Read... [15:26:28]Read from MH i2c: E2 03 00 [15:26:28]MH_I2C_Read... [15:26:28]Read from MH i2c: E2 03 00 FB 4B 00 90 00 BA [15:26:28]RAPDU: 90 00 [15:26:28]wFMCommunicate OK [15:26:28]wFMCommunicate request_size=255 [15:26:28]MH_SAM_APDU [15:26: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 FE 00 00 00 F4 03 04 00 27 C4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C2 7B 03 00 35 04 06 00 5B [15:26:28]Write to MH i2c: E2 02 01 FC 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 11 00 00 00 00 00 37 04 06 00 22 1A 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 FE 00 00 00 F4 03 04 00 27 C4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C2 7B 03 00 35 04 06 00 5B 00 00 65 [15:26:28]Write i2c OK [15:26:28]MH_I2C_Read... [15:26:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:28]Read from MH i2c: E2 [15:26:28]MH_I2C_Read... [15:26:28]Read from MH i2c: E2 03 00 [15:26:28]MH_I2C_Read... [15:26:28]Read from MH i2c: E2 03 00 FC 4B 00 90 00 BB [15:26:28]RAPDU: 90 00 [15:26:28]wFMCommunicate OK [15:26:28]wFMCommunicate request_size=10 [15:26:28]MH_SAM_APDU [15:26:28]CAPDU: 80 0D 02 02 05 0F F1 4C 34 18 [15:26:28]Write to MH i2c: E2 0D 00 FD 4B 80 0D 02 02 05 00 0F F1 4C 34 18 00 00 64 [15:26:28]Write i2c OK [15:26:28]MH_I2C_Read... [15:26:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:28]Read from MH i2c: E2 [15:26:28]MH_I2C_Read... [15:26:28]Read from MH i2c: E2 03 00 [15:26:28]MH_I2C_Read... [15:26:28]Read from MH i2c: E2 03 00 FD 4B 00 90 00 BC [15:26:28]RAPDU: 90 00 [15:26:28]wFMCommunicate OK [15:26:28]wFMCommunicate request_size=4 [15:26:28]MH_SAM_APDU [15:26:28]CAPDU: 80 0D 03 02 [15:26:28]Write to MH i2c: E2 08 00 FE 4B 80 0D 03 02 00 00 00 00 C4 [15:26:28]Write i2c OK [15:26:28]MH_I2C_Read... [15:26:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:28]Read from MH i2c: E2 [15:26:28]MH_I2C_Read... [15:26:28]Read from MH i2c: E2 0B 00 [15:26:28]MH_I2C_Read... [15:26:28]Read from MH i2c: E2 0B 00 FE 4B 00 00 CC F8 49 5A 6A BA 23 90 00 73 [15:26:28]RAPDU: 00 CC F8 49 5A 6A BA 23 90 00 [15:26:28]wFMCommunicate OK [15:26:28]SAM_PROTO_SignData done [15:26:28]FM_MakeSignedData done [15:26:28]CreateOFDProtocolMessage [15:26:28]wFMCommunicate request_size=4 [15:26:28]MH_SAM_APDU [15:26:28]CAPDU: 80 11 00 00 [15:26:28]Write to MH i2c: E2 08 00 FF 4B 80 11 00 00 00 00 00 00 C4 [15:26:28]Write i2c OK [15:26:28]MH_I2C_Read... [15:26:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:28]Read from MH i2c: E2 [15:26:28]MH_I2C_Read... [15:26:28]Read from MH i2c: E2 17 00 [15:26:28]MH_I2C_Read... [15:26:28]Read from MH i2c: E2 17 00 FF 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1B [15:26:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:26:28]wFMCommunicate OK [15:26:28]CreateOFDProtocolMessage done [15:26:28]OFDSenderStorePacket 228290 [15:26:28]StoreOFDPacket docnum=228290 [15:26:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D7 00 07 01 12 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 FE 00 00 00 F4 03 04 00 27 C4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C2 7B 03 00 35 04 06 00 5B 0F F1 4C 34 18 00 CC F8 49 5A 6A BA 23 [15:26:28]CheckFolder [15:26:28]dirname=/storage/ofd_packets [15:26:28]CheckFolder done [15:26:28]ProducePacketName [15:26:28]name=ofd_packets/00228290 [15:26:28]NVStorageSaveData ofd_packets/00228290 [15:26:28]File name is /storage/ofd_packets/00228290 [15:26:28]Write 301 bytes [15:26:28]NVStorageSaveData done [15:26:28]OFDSenderStorePacket done [15:26:28]KKMCreateOFDPacket done [15:26:28]NVStorageSaveData kkm_last_timestamp [15:26:28]File name is /storage/kkm_last_timestamp [15:26:28]Write 4 bytes [15:26:28]NVStorageSaveData done [15:26:28]ExternCall_PrintAddStr [15:26:28]wPrintStart [15:26:28]Write to MH i2c: 01 00 00 00 4C 4C [15:26:28]Write i2c OK [15:26:28]MH_I2C_Read... [15:26:28]Read from MH i2c: 01 [15:26:28]MH_I2C_Read... [15:26:28]Read from MH i2c: 01 07 00 [15:26:28]MH_I2C_Read... [15:26:28]Read from MH i2c: 01 07 00 00 4C 00 00 00 00 00 FF 0F 61 [15:26:28]RasterBufferAndPrint [15:26:28]line Счет N : (1)1964767 [15:26:28]line ИНН: 02508201610067 [15:26:28]line Контрольно-Кассовый Чек [15:26:28]line ПРОДАЖА [15:26:28]line ТРК (МРК, ГНК) : 43 [15:26:28]line Товар: 2710124130 [15:26:28]line Аи-92-К-5 [15:26:28]line 4.490 * 66.90 [15:26:28]line = 300.38 [15:26:28]line НДС 12% НСП 1% [15:26:28]line > о реализуемом товаре [15:26:28]line ОКРУГЛЕНИЕ: -0.38 [15:26:28]line ИТОГО: 300.00 [15:26:28]line Внесено: 300.00 [15:26:28]line СДАЧА: 0.00 [15:26:28]line НСП 1% : 2.66 [15:26:28]line НДС 12% : 31.90 [15:26:28]line Наличными: 300.00 [15:26:28]line Безнал.: 0.00 [15:26:28]line Место: АЗС № 133 "Партнер Нефть" [15:26:28]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:26:28]line СНО: Общий режим [15:26:28]line Чек 254 22.10.2024 15:26 [15:26:28]line Смена: 535 ФФД: 1.0 [15:26:28]line ЗНМ: 0300000091 [15:26:28]line РНМ: 0000000000091685 [15:26:28]line Версия ККМ: 001 [15:26:28]line ФМ: 0000000000871839 [15:26:28]line ФД: 228290 [15:26:28]line ФПД: 100124030940184 [15:26:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152631&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228290&fm=100124030940184&tin=02508201610067®Number=0000000000091685&sum=30000 [15:26:29]written 0, free lines is 4095 [15:26:29]OFD Sender: Processing packet 228290 [packets to send 38, broken 37] [15:26:29]ProducePacketName [15:26:29]name=ofd_packets/00228290 [15:26:29]OFD Sender: To server: pG, [15:26:29]CommunicateWithHost lk.salyk.kg:30040 [15:26:29]ConnectInit lk.salyk.kg [15:26:29]Connected sock=11 [15:26:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D7 00 07 01 12 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 FE 00 00 00 F4 03 04 00 27 C4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C2 7B 03 00 35 04 06 00 5B 0F F1 4C 34 18 00 CC F8 49 5A 6A BA 23 [15:26:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 D7 09 47 00 88 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C2 7B 03 00 F4 03 04 00 1F 6F 17 67 B6 04 01 00 00 BA 9F 5E E2 E7 92 69 F8 [15:26:29]CommunicateWithHost err = 0 [15:26:29]CheckOFDResponse [15:26:29]1017 (14) - 77093643461234 [15:26:29]1041 (16) - 0000000000871839 [15:26:29]1040 (4) - 228290 [15:26:29]1012 (4) - 22.10.2024 09:23 [15:26:29]1206 (1) - 0 [15:26:29]OFD Sender: Remove packet 228290 [15:26:29]ProducePacketName [15:26:29]name=ofd_packets/00228290 [15:26:29]NVStorageDeleteData [15:26:29]Write to MH i2c: 01 00 00 2A 4C 76 [15:26:29]Write i2c OK [15:26:29]MH_I2C_Read... [15:26:29]Read from MH i2c: 01 [15:26:29]MH_I2C_Read... [15:26:29]Read from MH i2c: 01 07 00 [15:26:29]MH_I2C_Read... [15:26:29]Read from MH i2c: 01 07 00 2A 4C 00 00 00 00 00 BB 0C 44 [15:26:29]RasterBufferAndPrint [15:26:29]line [15:26:29]line [15:26:29]line [15:26:29]line [15:26:29]line [15:26:29]written 0, free lines is 3265 [15:26:29]MH_Cut [15:26:29]Write to MH i2c: D1 01 00 31 4C 01 4F [15:26:29]Write i2c OK [15:26:29]MH_I2C_Read... [15:26:29]Read from MH i2c: D1 [15:26:29]MH_I2C_Read... [15:26:29]Read from MH i2c: D1 01 00 [15:26:29]MH_I2C_Read... [15:26:29]Read from MH i2c: D1 01 00 31 4C 00 4E [15:26:29]Write to MH i2c: 01 00 00 32 4C 7E [15:26:29]Write i2c OK [15:26:29]MH_I2C_Read... [15:26:30]OFD Sender: No OFD packet to send [15:26:30]*** Cut start [15:26:30]*** Partial cut [15:26:30]*** CUTSNS_PIN = 1 [15:26:30]*** CUTSNS_PIN = 0 [15:26:30]*** Brake cut motor [15:26:31]Read from MH i2c: 01 [15:26:31]MH_I2C_Read... [15:26:31]*** Stop cut motor [15:26:31]*** Cut end [15:26:31]Read from MH i2c: 01 07 00 [15:26:31]MH_I2C_Read... [15:26:31]Read from MH i2c: 01 07 00 32 4C 00 00 00 00 00 FF 0F 93 [15:26:31]process_action close_receipt done [15:26:31]requested_data is exist [15:26:31]produce_requested_data [15:26:31]requested_item fm.sn is exist - process it [15:26:31]wFMCommunicate request_size=4 [15:26:31]MH_SAM_APDU [15:26:31]CAPDU: 80 11 00 00 [15:26:31]Write to MH i2c: E2 08 00 33 4C 80 11 00 00 00 00 00 00 F9 [15:26:31]Write i2c OK [15:26:31]MH_I2C_Read... [15:26:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:31]Read from MH i2c: E2 [15:26:31]MH_I2C_Read... [15:26:31]Read from MH i2c: E2 17 00 [15:26:31]MH_I2C_Read... [15:26:31]Read from MH i2c: E2 17 00 33 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 50 [15:26:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:26:31]wFMCommunicate OK [15:26:31]requested_item fd.num is exist - process it [15:26:31]SAM_PROTO_GetFieldsCounters [15:26:31]wFMCommunicate request_size=4 [15:26:31]MH_SAM_APDU [15:26:31]CAPDU: 80 13 00 00 [15:26:31]Write to MH i2c: E2 08 00 34 4C 80 13 00 00 00 00 00 00 FC [15:26:31]Write i2c OK [15:26:31]MH_I2C_Read... [15:26:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:31]Read from MH i2c: E2 [15:26:31]MH_I2C_Read... [15:26:31]Read from MH i2c: E2 62 00 [15:26:31]MH_I2C_Read... [15:26:31]Read from MH i2c: E2 62 00 34 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C2 7B 03 00 0E 04 04 00 17 02 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 78 [15:26:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C2 7B 03 00 0E 04 04 00 17 02 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 [15:26:31]wFMCommunicate OK [15:26:31]SAM_PROTO_GetFieldsCounters done [15:26:31]requested_item shift.num is exist - process it [15:26:31]requested_item shift.opened is exist - process it [15:26:31]req_shift_opened [15:26:31]FM_GetShiftState [15:26:31]SAM_PROTO_GetShiftState [15:26:31]wFMCommunicate request_size=4 [15:26:31]MH_SAM_APDU [15:26:31]CAPDU: 80 13 01 00 [15:26:31]Write to MH i2c: E2 08 00 35 4C 80 13 01 00 00 00 00 00 FE [15:26:31]Write i2c OK [15:26:31]MH_I2C_Read... [15:26:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:31]Read from MH i2c: E2 [15:26:31]MH_I2C_Read... [15:26:31]Read from MH i2c: E2 0E 00 [15:26:31]MH_I2C_Read... [15:26:31]Read from MH i2c: E2 0E 00 35 4C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 C5 [15:26:31]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:26:31]wFMCommunicate OK [15:26:31]SAM_PROTO_GetShiftState done [15:26:31]FM_GetShiftState done [15:26:31]req_shift_opened done [15:26:31]requested_item shift.open_date is exist - process it [15:26:31]req_shift_open_date [15:26:31]req_shift_open_date done [15:26:31]produce_requested_data done [15:26:31]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228290,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:26:31]process_action_free close_receipt [15:26:31]json_value_free [15:26:31]json_value_free done [15:26:31]process_json_proto returns [15:26:31]Send response to host [15:26:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228290,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:26:31]free response buf [15:26:31]execute_script done [15:26:31]execute_script returns [15:26:31]free content buf [15:26:31]Sock 7.Close socket [15:26:31]Sock 7.Thread stoped [15:26:35]OFD Sender: No OFD packet to send [15:26:40]OFD Sender: No OFD packet to send [15:26:45]OFD Sender: No OFD packet to send [15:26:50]OFD Sender: No OFD packet to send [15:26:55]OFD Sender: No OFD packet to send [15:27:00]OFD Sender: No OFD packet to send [15:27:05]OFD Sender: No OFD packet to send [15:27:10]OFD Sender: No OFD packet to send [15:27:15]OFD Sender: No OFD packet to send [15:27:20]OFD Sender: No OFD packet to send [15:27:25]OFD Sender: No OFD packet to send [15:27:30]OFD Sender: No OFD packet to send [15:27:35]OFD Sender: No OFD packet to send [15:27:40]OFD Sender: No OFD packet to send [15:27:45]OFD Sender: No OFD packet to send [15:27:50]OFD Sender: No OFD packet to send [15:27:55]OFD Sender: No OFD packet to send [15:28:00]OFD Sender: No OFD packet to send [15:28:05]OFD Sender: No OFD packet to send [15:28:10]OFD Sender: No OFD packet to send [15:28:15]OFD Sender: No OFD packet to send [15:28:20]OFD Sender: No OFD packet to send [15:28:25]OFD Sender: No OFD packet to send [15:28:30]OFD Sender: No OFD packet to send [15:28:35]OFD Sender: No OFD packet to send [15:28:40]OFD Sender: No OFD packet to send [15:28:45]OFD Sender: No OFD packet to send [15:28:50]OFD Sender: No OFD packet to send [15:28:55]OFD Sender: No OFD packet to send [15:29:00]OFD Sender: No OFD packet to send [15:29:05]OFD Sender: No OFD packet to send [15:29:10]OFD Sender: No OFD packet to send [15:29:15]OFD Sender: No OFD packet to send [15:29:20]OFD Sender: No OFD packet to send [15:29:25]OFD Sender: No OFD packet to send [15:29:30]OFD Sender: No OFD packet to send [15:29:35]OFD Sender: No OFD packet to send [15:29:40]OFD Sender: No OFD packet to send [15:29:45]OFD Sender: No OFD packet to send [15:29:50]OFD Sender: No OFD packet to send [15:29:55]OFD Sender: No OFD packet to send [15:30:00]OFD Sender: No OFD packet to send [15:30:05]OFD Sender: No OFD packet to send [15:30:10]OFD Sender: No OFD packet to send [15:30:15]OFD Sender: No OFD packet to send [15:30:20]OFD Sender: No OFD packet to send [15:30:25]OFD Sender: No OFD packet to send [15:30:30]OFD Sender: No OFD packet to send [15:30:35]OFD Sender: No OFD packet to send [15:30:40]OFD Sender: No OFD packet to send [15:30:45]OFD Sender: No OFD packet to send [15:30:50]OFD Sender: No OFD packet to send [15:30:55]OFD Sender: No OFD packet to send [15:31:00]OFD Sender: No OFD packet to send [15:31:01]accept exits with 9 [15:31:01]New connection [15:31:01]New thread 3066994020 created [15:31:01]Thread 3067137380 joined [15:31:01]Waiting for new connection... [15:31:01] Sock 9.Parse request [15:31:01]Sock 9.Check first char [15:31:01]Sock 9.First char is OK [15:31:01]request: POST /json_proto HTTP/1.0 [15:31:01]Method: POST [15:31:01]URL: /json_proto [15:31:01]Method is POST - this is cgi request [15:31:01]url: /json_proto [15:31:01]query_string will be loaded in cgi processing [15:31:01]execute_cgi json_proto POST (null) [15:31:01]execute_cgi path=json_proto method=POST [15:31:01]POST find Content-Length [15:31:01]Host: 172.17.44.195:8080 [15:31:01]Content-Length: 621 [15:31:01]Content-Type: application/json [15:31:01] [15:31:01]POST finish read [15:31:01]Found Content-Length = 621 [15:31:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:01]execute_script... [15:31: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)1964768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:01]POST & json_proto [15:31:01]process_json_proto [15:31:01]json parsed OK: [15:31:01]protocol is kg_v1.0 [15:31:01]action value=close_receipt [15:31:01]process_action close_receipt [15:31:01]cmd_close_receipt [15:31:01]MH_GetDate [15:31:01]Write to MH i2c: F0 00 00 36 4C 71 [15:31:01]Write i2c OK [15:31:01]MH_I2C_Read... [15:31:01]Read from MH i2c: F0 [15:31:01]MH_I2C_Read... [15:31:01]Read from MH i2c: F0 09 00 [15:31:01]MH_I2C_Read... [15:31:01]Read from MH i2c: F0 09 00 36 4C 00 3A C5 17 67 82 C9 CF 66 77 [15:31:01]GetLastDocTimeStamp 1729610791 [15:31:01]current date 1729611066 [15:31:01]FM_GetShiftState [15:31:01]SAM_PROTO_GetShiftState [15:31:01]wFMCommunicate request_size=4 [15:31:01]MH_SAM_APDU [15:31:01]CAPDU: 80 13 01 00 [15:31:01]Write to MH i2c: E2 08 00 37 4C 80 13 01 00 00 00 00 00 00 [15:31:01]Write i2c OK [15:31:01]MH_I2C_Read... [15:31:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:01]Read from MH i2c: E2 [15:31:01]MH_I2C_Read... [15:31:01]Read from MH i2c: E2 0E 00 [15:31:01]MH_I2C_Read... [15:31:01]Read from MH i2c: E2 0E 00 37 4C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 C7 [15:31:01]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:31:01]wFMCommunicate OK [15:31:01]SAM_PROTO_GetShiftState done [15:31:01]FM_GetShiftState done [15:31:01]opened in 1729555538 [15:31:01]opened+sec_in_day 1729641938 [15:31:01]quantity*price = 50000 [15:31:01]sum+1 = 50001 [15:31:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 255 22.10.2024 15:31 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228291 ФПД: 89158340623625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153106&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228291&fm=89158340623625&tin=02508201610067®Number=0000000000091685&sum=50000 [15:31:02]StoreToDocumentArchive [15:31:02]shift 535 fd 228291 [15:31:02]save to /storage/0535/doc_00228291 [15:31:02]save last doc name /storage/0535/doc_00228291 to /storage/kkm_last_doc_name [15:31:02]save OK [15:31:02]Clear old archive folders... [15:31:02]ProcessDocumentItem done err = 0, tmpTLVsize=244 [15:31:02]tlvbuf is 009BBD70 [15:31:02]SAM_PROTO_ClearQueue [15:31:02]wFMCommunicate request_size=4 [15:31:02]MH_SAM_APDU [15:31:02]CAPDU: 80 09 00 00 [15:31:02]Write to MH i2c: E2 08 00 44 4C 80 09 00 00 00 00 00 00 02 [15:31:02]Write i2c OK [15:31:02]MH_I2C_Read... [15:31:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:31:02]Read from MH i2c: E2 [15:31:02]MH_I2C_Read... [15:31:02]Read from MH i2c: E2 03 00 [15:31:02]MH_I2C_Read... [15:31:02]Read from MH i2c: E2 03 00 44 4C 00 90 00 04 [15:31:02]RAPDU: 90 00 [15:31:02]wFMCommunicate OK [15:31:02]SAM_PROTO_ClearQueue done [15:31:02]KKMCreateOFDPacket [15:31:02]OFDProtocolAddRootSTLVToBuf [15:31:02]FM_MakeSignedData [15:31:02]FM_MakeSignedData [15:31:02]SAM_PROTO_SignData [15:31:02]wFMCommunicate request_size=4 [15:31:02]MH_SAM_APDU [15:31:02]CAPDU: 80 0D 01 02 [15:31:02]Write to MH i2c: E2 08 00 45 4C 80 0D 01 02 00 00 00 00 0A [15:31:02]Write i2c OK [15:31:02]MH_I2C_Read... [15:31:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:31:03]Read from MH i2c: E2 [15:31:03]MH_I2C_Read... [15:31:03]Read from MH i2c: E2 03 00 [15:31:03]MH_I2C_Read... [15:31:03]Read from MH i2c: E2 03 00 45 4C 00 90 00 05 [15:31:03]RAPDU: 90 00 [15:31:03]wFMCommunicate OK [15:31:03]wFMCommunicate request_size=253 [15:31:03]MH_SAM_APDU [15:31:03]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 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 3A C5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C3 7B 03 00 35 04 06 00 51 16 CB 38 BD 09 [15:31:03]Write to MH i2c: E2 00 01 46 4C 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 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 3A C5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C3 7B 03 00 35 04 06 00 51 16 CB 38 BD 09 00 00 12 [15:31:03]Write i2c OK [15:31:03]MH_I2C_Read... [15:31:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:03]Read from MH i2c: E2 [15:31:03]MH_I2C_Read... [15:31:03]Read from MH i2c: E2 03 00 [15:31:03]MH_I2C_Read... [15:31:03]Read from MH i2c: E2 03 00 46 4C 00 90 00 06 [15:31:03]RAPDU: 90 00 [15:31:03]wFMCommunicate OK [15:31:03]wFMCommunicate request_size=4 [15:31:03]MH_SAM_APDU [15:31:03]CAPDU: 80 0D 03 02 [15:31:03]Write to MH i2c: E2 08 00 47 4C 80 0D 03 02 00 00 00 00 0E [15:31:03]Write i2c OK [15:31:03]MH_I2C_Read... [15:31:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:31:03]Read from MH i2c: E2 [15:31:03]MH_I2C_Read... [15:31:03]Read from MH i2c: E2 0B 00 [15:31:03]MH_I2C_Read... [15:31:03]Read from MH i2c: E2 0B 00 47 4C 00 37 5F 60 EB CD FC 34 AA 90 00 97 [15:31:03]RAPDU: 37 5F 60 EB CD FC 34 AA 90 00 [15:31:03]wFMCommunicate OK [15:31:03]SAM_PROTO_SignData done [15:31:03]FM_MakeSignedData done [15:31:03]CreateOFDProtocolMessage [15:31:03]wFMCommunicate request_size=4 [15:31:03]MH_SAM_APDU [15:31:03]CAPDU: 80 11 00 00 [15:31:03]Write to MH i2c: E2 08 00 48 4C 80 11 00 00 00 00 00 00 0E [15:31:03]Write i2c OK [15:31:03]MH_I2C_Read... [15:31:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:03]Read from MH i2c: E2 [15:31:03]MH_I2C_Read... [15:31:03]Read from MH i2c: E2 17 00 [15:31:03]MH_I2C_Read... [15:31:03]Read from MH i2c: E2 17 00 48 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 65 [15:31:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:31:03]wFMCommunicate OK [15:31:03]CreateOFDProtocolMessage done [15:31:03]OFDSenderStorePacket 228291 [15:31:03]StoreOFDPacket docnum=228291 [15:31:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 B8 5D 00 01 E1 41 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 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 3A C5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C3 7B 03 00 35 04 06 00 51 16 CB 38 BD 09 37 5F 60 EB CD FC 34 AA [15:31:03]CheckFolder [15:31:03]dirname=/storage/ofd_packets [15:31:03]CheckFolder done [15:31:03]ProducePacketName [15:31:03]name=ofd_packets/00228291 [15:31:03]NVStorageSaveData ofd_packets/00228291 [15:31:03]File name is /storage/ofd_packets/00228291 [15:31:03]Write 294 bytes [15:31:03]NVStorageSaveData done [15:31:03]OFDSenderStorePacket done [15:31:03]KKMCreateOFDPacket done [15:31:03]NVStorageSaveData kkm_last_timestamp [15:31:03]File name is /storage/kkm_last_timestamp [15:31:03]Write 4 bytes [15:31:03]NVStorageSaveData done [15:31:03]ExternCall_PrintAddStr [15:31:03]wPrintStart [15:31:03]Write to MH i2c: 01 00 00 49 4C 95 [15:31:03]Write i2c OK [15:31:03]MH_I2C_Read... [15:31:03]Read from MH i2c: 01 [15:31:03]MH_I2C_Read... [15:31:03]Read from MH i2c: 01 07 00 [15:31:03]MH_I2C_Read... [15:31:03]Read from MH i2c: 01 07 00 49 4C 00 00 00 00 00 FF 0F AA [15:31:03]RasterBufferAndPrint [15:31:03]line Счет N : (1)1964768 [15:31:03]line ИНН: 02508201610067 [15:31:03]line Контрольно-Кассовый Чек [15:31:03]line ПРОДАЖА [15:31:03]line ТРК (МРК, ГНК) : 32 [15:31:03]line Товар: 2710124130 [15:31:03]line SU-92 [15:31:03]line 7.310 * 68.40 [15:31:03]line = 500.00 [15:31:03]line НДС 12% НСП 1% [15:31:03]line > о реализуемом товаре [15:31:03]line ИТОГО: 500.00 [15:31:03]line НСП 1% : 4.42 [15:31:03]line НДС 12% : 53.10 [15:31:03]line Наличными: 500.00 [15:31:03]line Безнал.: 0.00 [15:31:03]line Место: АЗС № 133 "Партнер Нефть" [15:31:03]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:31:03]line СНО: Общий режим [15:31:03]line Чек 255 22.10.2024 15:31 [15:31:03]line Смена: 535 ФФД: 1.0 [15:31:03]line ЗНМ: 0300000091 [15:31:03]line РНМ: 0000000000091685 [15:31:03]line Версия ККМ: 001 [15:31:03]line ФМ: 0000000000871839 [15:31:03]line ФД: 228291 [15:31:03]line ФПД: 89158340623625 [15:31:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153106&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228291&fm=89158340623625&tin=02508201610067®Number=0000000000091685&sum=50000 [15:31:03]OFD Sender: Processing packet 228291 [packets to send 38, broken 37] [15:31:03]ProducePacketName [15:31:03]name=ofd_packets/00228291 [15:31:03]OFD Sender: To server: pG, [15:31:03]CommunicateWithHost lk.salyk.kg:30040 [15:31:03]ConnectInit lk.salyk.kg [15:31:03]written 0, free lines is 4095 [15:31:03]Connected sock=11 [15:31:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 B8 5D 00 01 E1 41 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 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 3A C5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C3 7B 03 00 35 04 06 00 51 16 CB 38 BD 09 37 5F 60 EB CD FC 34 AA [15:31:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 EC 51 47 00 E9 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C3 7B 03 00 F4 03 04 00 32 70 17 67 B6 04 01 00 00 11 C2 71 54 95 BA D5 B0 [15:31:04]CommunicateWithHost err = 0 [15:31:04]CheckOFDResponse [15:31:04]1017 (14) - 77093643461234 [15:31:04]1041 (16) - 0000000000871839 [15:31:04]1040 (4) - 228291 [15:31:04]1012 (4) - 22.10.2024 09:28 [15:31:04]1206 (1) - 0 [15:31:04]OFD Sender: Remove packet 228291 [15:31:04]ProducePacketName [15:31:04]name=ofd_packets/00228291 [15:31:04]NVStorageDeleteData [15:31:04]Write to MH i2c: 01 00 00 70 4C BC [15:31:04]Write i2c OK [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: 01 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: 01 07 00 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: 01 07 00 70 4C 00 00 00 00 00 EE 0C BD [15:31:04]RasterBufferAndPrint [15:31:04]line [15:31:04]line [15:31:04]line [15:31:04]line [15:31:04]line [15:31:04]written 0, free lines is 3313 [15:31:04]MH_Cut [15:31:04]Write to MH i2c: D1 01 00 77 4C 01 95 [15:31:04]Write i2c OK [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: D1 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: D1 01 00 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: D1 01 00 77 4C 00 94 [15:31:04]Write to MH i2c: 01 00 00 78 4C C4 [15:31:04]Write i2c OK [15:31:04]MH_I2C_Read... [15:31:04]OFD Sender: No OFD packet to send [15:31:05]*** Cut start [15:31:05]*** Partial cut [15:31:05]*** CUTSNS_PIN = 1 [15:31:05]*** CUTSNS_PIN = 0 [15:31:05]*** Brake cut motor [15:31:05]Read from MH i2c: 01 [15:31:05]MH_I2C_Read... [15:31:05]*** Stop cut motor [15:31:05]*** Cut end [15:31:05]Read from MH i2c: 01 07 00 [15:31:05]MH_I2C_Read... [15:31:05]Read from MH i2c: 01 07 00 78 4C 00 00 00 00 00 FF 0F D9 [15:31:05]process_action close_receipt done [15:31:05]requested_data is exist [15:31:05]produce_requested_data [15:31:05]requested_item fm.sn is exist - process it [15:31:05]wFMCommunicate request_size=4 [15:31:05]MH_SAM_APDU [15:31:05]CAPDU: 80 11 00 00 [15:31:05]Write to MH i2c: E2 08 00 79 4C 80 11 00 00 00 00 00 00 3F [15:31:05]Write i2c OK [15:31:05]MH_I2C_Read... [15:31:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:05]Read from MH i2c: E2 [15:31:05]MH_I2C_Read... [15:31:05]Read from MH i2c: E2 17 00 [15:31:05]MH_I2C_Read... [15:31:05]Read from MH i2c: E2 17 00 79 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 96 [15:31:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:31:05]wFMCommunicate OK [15:31:05]requested_item fd.num is exist - process it [15:31:05]SAM_PROTO_GetFieldsCounters [15:31:05]wFMCommunicate request_size=4 [15:31:05]MH_SAM_APDU [15:31:05]CAPDU: 80 13 00 00 [15:31:05]Write to MH i2c: E2 08 00 7A 4C 80 13 00 00 00 00 00 00 42 [15:31:05]Write i2c OK [15:31:05]MH_I2C_Read... [15:31:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:31:05]Read from MH i2c: E2 [15:31:05]MH_I2C_Read... [15:31:05]Read from MH i2c: E2 62 00 [15:31:05]MH_I2C_Read... [15:31:05]Read from MH i2c: E2 62 00 7A 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C3 7B 03 00 0E 04 04 00 17 02 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 C3 [15:31:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C3 7B 03 00 0E 04 04 00 17 02 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 [15:31:05]wFMCommunicate OK [15:31:05]SAM_PROTO_GetFieldsCounters done [15:31:05]requested_item shift.num is exist - process it [15:31:05]requested_item shift.opened is exist - process it [15:31:05]req_shift_opened [15:31:05]FM_GetShiftState [15:31:05]SAM_PROTO_GetShiftState [15:31:05]wFMCommunicate request_size=4 [15:31:05]MH_SAM_APDU [15:31:05]CAPDU: 80 13 01 00 [15:31:05]Write to MH i2c: E2 08 00 7B 4C 80 13 01 00 00 00 00 00 44 [15:31:05]Write i2c OK [15:31:05]MH_I2C_Read... [15:31:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:05]Read from MH i2c: E2 [15:31:05]MH_I2C_Read... [15:31:05]Read from MH i2c: E2 0E 00 [15:31:05]MH_I2C_Read... [15:31:05]Read from MH i2c: E2 0E 00 7B 4C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 0B [15:31:05]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:31:05]wFMCommunicate OK [15:31:05]SAM_PROTO_GetShiftState done [15:31:05]FM_GetShiftState done [15:31:05]req_shift_opened done [15:31:05]requested_item shift.open_date is exist - process it [15:31:05]req_shift_open_date [15:31:05]req_shift_open_date done [15:31:05]produce_requested_data done [15:31:05]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228291,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:31:05]process_action_free close_receipt [15:31:05]json_value_free [15:31:05]json_value_free done [15:31:05]process_json_proto returns [15:31:05]Send response to host [15:31:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228291,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:31:05]free response buf [15:31:05]execute_script done [15:31:05]execute_script returns [15:31:05]free content buf [15:31:05]Sock 9.Close socket [15:31:05]Sock 9.Thread stoped [15:31:09]OFD Sender: No OFD packet to send [15:31:14]OFD Sender: No OFD packet to send [15:31:19]OFD Sender: No OFD packet to send [15:31:24]OFD Sender: No OFD packet to send [15:31:29]OFD Sender: No OFD packet to send [15:31:34]OFD Sender: No OFD packet to send [15:31:39]OFD Sender: No OFD packet to send [15:31:44]OFD Sender: No OFD packet to send [15:31:49]OFD Sender: No OFD packet to send [15:31:54]OFD Sender: No OFD packet to send [15:31:59]OFD Sender: No OFD packet to send [15:32:04]OFD Sender: No OFD packet to send [15:32:09]OFD Sender: No OFD packet to send [15:32:14]OFD Sender: No OFD packet to send [15:32:19]OFD Sender: No OFD packet to send [15:32:24]OFD Sender: No OFD packet to send [15:32:29]OFD Sender: No OFD packet to send [15:32:34]OFD Sender: No OFD packet to send [15:32:39]OFD Sender: No OFD packet to send [15:32:44]OFD Sender: No OFD packet to send [15:32:49]OFD Sender: No OFD packet to send [15:32:54]OFD Sender: No OFD packet to send [15:32:59]OFD Sender: No OFD packet to send [15:33:04]OFD Sender: No OFD packet to send [15:33:09]OFD Sender: No OFD packet to send [15:33:14]OFD Sender: No OFD packet to send [15:33:19]OFD Sender: No OFD packet to send [15:33:24]OFD Sender: No OFD packet to send [15:33:29]OFD Sender: No OFD packet to send [15:33:34]OFD Sender: No OFD packet to send [15:33:39]OFD Sender: No OFD packet to send [15:33:44]OFD Sender: No OFD packet to send [15:33:49]OFD Sender: No OFD packet to send [15:33:54]OFD Sender: No OFD packet to send [15:33:59]OFD Sender: No OFD packet to send [15:34:04]OFD Sender: No OFD packet to send [15:34:09]OFD Sender: No OFD packet to send [15:34:14]OFD Sender: No OFD packet to send [15:34:18]accept exits with 7 [15:34:18]New connection [15:34:18]New thread 3067137380 created [15:34:18]Thread 3066994020 joined [15:34:18]Waiting for new connection... [15:34:18] Sock 7.Parse request [15:34:18]Sock 7.Check first char [15:34:18]Sock 7.First char is OK [15:34:18]request: POST /json_proto HTTP/1.0 [15:34:18]Method: POST [15:34:18]URL: /json_proto [15:34:18]Method is POST - this is cgi request [15:34:18]url: /json_proto [15:34:18]query_string will be loaded in cgi processing [15:34:18]execute_cgi json_proto POST (null) [15:34:18]execute_cgi path=json_proto method=POST [15:34:18]POST find Content-Length [15:34:18]Host: 172.17.44.195:8080 [15:34:18]Content-Length: 680 [15:34:18]Content-Type: application/json [15:34:18] [15:34:18]POST finish read [15:34:18]Found Content-Length = 680 [15:34:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:18]execute_script... [15:34:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:18]POST & json_proto [15:34:18]process_json_proto [15:34:18]json parsed OK: [15:34:18]protocol is kg_v1.0 [15:34:18]action value=close_receipt [15:34:18]process_action close_receipt [15:34:18]cmd_close_receipt [15:34:18]MH_GetDate [15:34:18]Write to MH i2c: F0 00 00 7C 4C B7 [15:34:18]Write i2c OK [15:34:18]MH_I2C_Read... [15:34:18]Read from MH i2c: F0 [15:34:18]MH_I2C_Read... [15:34:18]Read from MH i2c: F0 09 00 [15:34:18]MH_I2C_Read... [15:34:18]Read from MH i2c: F0 09 00 7C 4C 00 FE C5 17 67 82 C9 CF 66 81 [15:34:18]GetLastDocTimeStamp 1729611066 [15:34:18]current date 1729611262 [15:34:18]FM_GetShiftState [15:34:18]SAM_PROTO_GetShiftState [15:34:18]wFMCommunicate request_size=4 [15:34:18]MH_SAM_APDU [15:34:18]CAPDU: 80 13 01 00 [15:34:18]Write to MH i2c: E2 08 00 7D 4C 80 13 01 00 00 00 00 00 46 [15:34:18]Write i2c OK [15:34:18]MH_I2C_Read... [15:34:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:18]Read from MH i2c: E2 [15:34:18]MH_I2C_Read... [15:34:18]Read from MH i2c: E2 0E 00 [15:34:18]MH_I2C_Read... [15:34:18]Read from MH i2c: E2 0E 00 7D 4C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 0D [15:34:18]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:34:18]wFMCommunicate OK [15:34:18]SAM_PROTO_GetShiftState done [15:34:18]FM_GetShiftState done [15:34:18]opened in 1729555538 [15:34:18]opened+sec_in_day 1729641938 [15:34:18]quantity*price = 100050 [15:34:18]sum+1 = 100052 [15:34:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 256 22.10.2024 15:34 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228292 ФПД: 271054836310581 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153422&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228292&fm=271054836310581&tin=02508201610067®Number=0000000000091685&sum=100000 [15:34:19]StoreToDocumentArchive [15:34:19]shift 535 fd 228292 [15:34:19]save to /storage/0535/doc_00228292 [15:34:19]save last doc name /storage/0535/doc_00228292 to /storage/kkm_last_doc_name [15:34:19]save OK [15:34:19]Clear old archive folders... [15:34:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:34:19]tlvbuf is 0086EE60 [15:34:19]SAM_PROTO_ClearQueue [15:34:19]wFMCommunicate request_size=4 [15:34:19]MH_SAM_APDU [15:34:19]CAPDU: 80 09 00 00 [15:34:19]Write to MH i2c: E2 08 00 8A 4C 80 09 00 00 00 00 00 00 48 [15:34:19]Write i2c OK [15:34:19]MH_I2C_Read... [15:34:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:19]Read from MH i2c: E2 [15:34:19]MH_I2C_Read... [15:34:19]Read from MH i2c: E2 03 00 [15:34:19]MH_I2C_Read... [15:34:19]Read from MH i2c: E2 03 00 8A 4C 00 90 00 4A [15:34:19]RAPDU: 90 00 [15:34:19]wFMCommunicate OK [15:34:19]SAM_PROTO_ClearQueue done [15:34:19]KKMCreateOFDPacket [15:34:19]OFDProtocolAddRootSTLVToBuf [15:34:19]FM_MakeSignedData [15:34:19]FM_MakeSignedData [15:34:19]SAM_PROTO_SignData [15:34:19]wFMCommunicate request_size=4 [15:34:19]MH_SAM_APDU [15:34:19]CAPDU: 80 0D 01 02 [15:34:19]Write to MH i2c: E2 08 00 8B 4C 80 0D 01 02 00 00 00 00 50 [15:34:19]Write i2c OK [15:34:19]MH_I2C_Read... [15:34:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:19]Read from MH i2c: E2 [15:34:19]MH_I2C_Read... [15:34:19]Read from MH i2c: E2 03 00 [15:34:19]MH_I2C_Read... [15:34:19]Read from MH i2c: E2 03 00 8B 4C 00 90 00 4B [15:34:19]RAPDU: 90 00 [15:34:19]wFMCommunicate OK [15:34:19]wFMCommunicate request_size=255 [15:34:19]MH_SAM_APDU [15:34: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 FE C5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C4 7B 03 00 35 04 06 00 F6 85 DF 3B [15:34:19]Write to MH i2c: E2 02 01 8C 4C 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 FE C5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C4 7B 03 00 35 04 06 00 F6 85 DF 3B 00 00 0F [15:34:19]Write i2c OK [15:34:19]MH_I2C_Read... [15:34:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:19]Read from MH i2c: E2 [15:34:19]MH_I2C_Read... [15:34:19]Read from MH i2c: E2 03 00 [15:34:19]MH_I2C_Read... [15:34:19]Read from MH i2c: E2 03 00 8C 4C 00 90 00 4C [15:34:19]RAPDU: 90 00 [15:34:19]wFMCommunicate OK [15:34:19]wFMCommunicate request_size=7 [15:34:19]MH_SAM_APDU [15:34:19]CAPDU: 80 0D 02 02 02 A2 35 [15:34:19]Write to MH i2c: E2 0A 00 8D 4C 80 0D 02 02 02 00 A2 35 00 00 2E [15:34:19]Write i2c OK [15:34:19]MH_I2C_Read... [15:34:19]OFD Sender: No OFD packet to send [15:34:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:19]Read from MH i2c: E2 [15:34:19]MH_I2C_Read... [15:34:19]Read from MH i2c: E2 03 00 [15:34:19]MH_I2C_Read... [15:34:19]Read from MH i2c: E2 03 00 8D 4C 00 90 00 4D [15:34:19]RAPDU: 90 00 [15:34:19]wFMCommunicate OK [15:34:19]wFMCommunicate request_size=4 [15:34:19]MH_SAM_APDU [15:34:19]CAPDU: 80 0D 03 02 [15:34:19]Write to MH i2c: E2 08 00 8E 4C 80 0D 03 02 00 00 00 00 55 [15:34:19]Write i2c OK [15:34:19]MH_I2C_Read... [15:34:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:19]Read from MH i2c: E2 [15:34:19]MH_I2C_Read... [15:34:19]Read from MH i2c: E2 0B 00 [15:34:19]MH_I2C_Read... [15:34:19]Read from MH i2c: E2 0B 00 8E 4C 00 19 E6 72 07 48 E1 44 D8 90 00 13 [15:34:19]RAPDU: 19 E6 72 07 48 E1 44 D8 90 00 [15:34:19]wFMCommunicate OK [15:34:19]SAM_PROTO_SignData done [15:34:19]FM_MakeSignedData done [15:34:19]CreateOFDProtocolMessage [15:34:19]wFMCommunicate request_size=4 [15:34:19]MH_SAM_APDU [15:34:19]CAPDU: 80 11 00 00 [15:34:19]Write to MH i2c: E2 08 00 8F 4C 80 11 00 00 00 00 00 00 55 [15:34:19]Write i2c OK [15:34:19]MH_I2C_Read... [15:34:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:19]Read from MH i2c: E2 [15:34:19]MH_I2C_Read... [15:34:19]Read from MH i2c: E2 17 00 [15:34:19]MH_I2C_Read... [15:34:19]Read from MH i2c: E2 17 00 8F 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AC [15:34:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:34:19]wFMCommunicate OK [15:34:19]CreateOFDProtocolMessage done [15:34:19]OFDSenderStorePacket 228292 [15:34:19]StoreOFDPacket docnum=228292 [15:34:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 3A 3C 04 01 73 65 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 FE C5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C4 7B 03 00 35 04 06 00 F6 85 DF 3B A2 35 19 E6 72 07 48 E1 44 D8 [15:34:19]CheckFolder [15:34:19]dirname=/storage/ofd_packets [15:34:19]CheckFolder done [15:34:19]ProducePacketName [15:34:19]name=ofd_packets/00228292 [15:34:19]NVStorageSaveData ofd_packets/00228292 [15:34:19]File name is /storage/ofd_packets/00228292 [15:34:19]Write 298 bytes [15:34:19]NVStorageSaveData done [15:34:19]OFDSenderStorePacket done [15:34:19]KKMCreateOFDPacket done [15:34:19]NVStorageSaveData kkm_last_timestamp [15:34:19]File name is /storage/kkm_last_timestamp [15:34:19]Write 4 bytes [15:34:19]NVStorageSaveData done [15:34:19]ExternCall_PrintAddStr [15:34:19]wPrintStart [15:34:19]Write to MH i2c: 01 00 00 90 4C DC [15:34:19]Write i2c OK [15:34:19]MH_I2C_Read... [15:34:19]Read from MH i2c: 01 [15:34:19]MH_I2C_Read... [15:34:19]Read from MH i2c: 01 07 00 [15:34:19]MH_I2C_Read... [15:34:19]Read from MH i2c: 01 07 00 90 4C 00 00 00 00 00 FF 0F F1 [15:34:19]RasterBufferAndPrint [15:34:19]line Счет N : (1)1964770 [15:34:19]line ИНН: 02508201610067 [15:34:19]line Контрольно-Кассовый Чек [15:34:19]line ПРОДАЖА [15:34:19]line ТРК (МРК, ГНК) : 31 [15:34:19]line Товар: 2710194210 [15:34:19]line ДТ-К-5 [15:34:19]line 13.130 * 76.20 [15:34:19]line = 1000.51 [15:34:19]line НДС 12% НСП 1% [15:34:19]line > о реализуемом товаре [15:34:19]line ОКРУГЛЕНИЕ: -0.51 [15:34:19]line ИТОГО: 1000.00 [15:34:19]line Внесено: 1000.00 [15:34:19]line СДАЧА: 0.00 [15:34:19]line НСП 1% : 8.85 [15:34:19]line НДС 12% : 106.25 [15:34:19]line Наличными: 1000.00 [15:34:19]line Безнал.: 0.00 [15:34:19]line Место: АЗС № 133 "Партнер Нефть" [15:34:19]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:34:19]line СНО: Общий режим [15:34:19]line Чек 256 22.10.2024 15:34 [15:34:19]line Смена: 535 ФФД: 1.0 [15:34:19]line ЗНМ: 0300000091 [15:34:19]line РНМ: 0000000000091685 [15:34:19]line Версия ККМ: 001 [15:34:19]line ФМ: 0000000000871839 [15:34:19]line ФД: 228292 [15:34:19]line ФПД: 271054836310581 [15:34:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153422&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228292&fm=271054836310581&tin=02508201610067®Number=0000000000091685&sum=100000 [15:34:20]OFD Sender: Processing packet 228292 [packets to send 38, broken 37] [15:34:20]ProducePacketName [15:34:20]name=ofd_packets/00228292 [15:34:20]OFD Sender: To server: pG, [15:34:20]CommunicateWithHost lk.salyk.kg:30040 [15:34:20]ConnectInit lk.salyk.kg [15:34:20]written 0, free lines is 4095 [15:34:20]Connected sock=10 [15:34:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 3A 3C 04 01 73 65 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 FE C5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C4 7B 03 00 35 04 06 00 F6 85 DF 3B A2 35 19 E6 72 07 48 E1 44 D8 [15:34:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 4F 1C 47 00 53 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C4 7B 03 00 F4 03 04 00 F6 70 17 67 B6 04 01 00 00 25 64 34 74 BE 66 97 7B [15:34:20]CommunicateWithHost err = 0 [15:34:20]CheckOFDResponse [15:34:20]1017 (14) - 77093643461234 [15:34:20]1041 (16) - 0000000000871839 [15:34:20]1040 (4) - 228292 [15:34:20]1012 (4) - 22.10.2024 09:31 [15:34:20]1206 (1) - 0 [15:34:20]OFD Sender: Remove packet 228292 [15:34:20]ProducePacketName [15:34:20]name=ofd_packets/00228292 [15:34:20]NVStorageDeleteData [15:34:20]Write to MH i2c: 01 00 00 BA 4C 06 [15:34:20]Write i2c OK [15:34:20]MH_I2C_Read... [15:34:20]Read from MH i2c: 01 [15:34:20]MH_I2C_Read... [15:34:20]Read from MH i2c: 01 07 00 [15:34:20]MH_I2C_Read... [15:34:20]Read from MH i2c: 01 07 00 BA 4C 00 00 00 00 00 B7 0C D0 [15:34:20]RasterBufferAndPrint [15:34:20]line [15:34:20]line [15:34:20]line [15:34:20]line [15:34:20]line [15:34:20]written 0, free lines is 3259 [15:34:20]MH_Cut [15:34:20]Write to MH i2c: D1 01 00 C1 4C 01 DF [15:34:20]Write i2c OK [15:34:20]MH_I2C_Read... [15:34:20]Read from MH i2c: D1 [15:34:20]MH_I2C_Read... [15:34:20]Read from MH i2c: D1 01 00 [15:34:20]MH_I2C_Read... [15:34:20]Read from MH i2c: D1 01 00 C1 4C 00 DE [15:34:20]Write to MH i2c: 01 00 00 C2 4C 0E [15:34:20]Write i2c OK [15:34:20]MH_I2C_Read... [15:34:21]OFD Sender: No OFD packet to send [15:34:21]*** Cut start [15:34:21]*** Partial cut [15:34:21]*** CUTSNS_PIN = 1 [15:34:21]*** CUTSNS_PIN = 0 [15:34:21]*** Brake cut motor [15:34:22]Read from MH i2c: 01 [15:34:22]MH_I2C_Read... [15:34:22]*** Stop cut motor [15:34:22]*** Cut end [15:34:22]Read from MH i2c: 01 07 00 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: 01 07 00 C2 4C 00 00 00 00 00 FF 0F 23 [15:34:22]process_action close_receipt done [15:34:22]requested_data is exist [15:34:22]produce_requested_data [15:34:22]requested_item fm.sn is exist - process it [15:34:22]wFMCommunicate request_size=4 [15:34:22]MH_SAM_APDU [15:34:22]CAPDU: 80 11 00 00 [15:34:22]Write to MH i2c: E2 08 00 C3 4C 80 11 00 00 00 00 00 00 89 [15:34:22]Write i2c OK [15:34:22]MH_I2C_Read... [15:34:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:22]Read from MH i2c: E2 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: E2 17 00 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: E2 17 00 C3 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E0 [15:34:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:34:22]wFMCommunicate OK [15:34:22]requested_item fd.num is exist - process it [15:34:22]SAM_PROTO_GetFieldsCounters [15:34:22]wFMCommunicate request_size=4 [15:34:22]MH_SAM_APDU [15:34:22]CAPDU: 80 13 00 00 [15:34:22]Write to MH i2c: E2 08 00 C4 4C 80 13 00 00 00 00 00 00 8C [15:34:22]Write i2c OK [15:34:22]MH_I2C_Read... [15:34:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:22]Read from MH i2c: E2 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: E2 62 00 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: E2 62 00 C4 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C4 7B 03 00 0E 04 04 00 17 02 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 [15:34:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C4 7B 03 00 0E 04 04 00 17 02 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 [15:34:22]wFMCommunicate OK [15:34:22]SAM_PROTO_GetFieldsCounters done [15:34:22]requested_item shift.num is exist - process it [15:34:22]requested_item shift.opened is exist - process it [15:34:22]req_shift_opened [15:34:22]FM_GetShiftState [15:34:22]SAM_PROTO_GetShiftState [15:34:22]wFMCommunicate request_size=4 [15:34:22]MH_SAM_APDU [15:34:22]CAPDU: 80 13 01 00 [15:34:22]Write to MH i2c: E2 08 00 C5 4C 80 13 01 00 00 00 00 00 8E [15:34:22]Write i2c OK [15:34:22]MH_I2C_Read... [15:34:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:22]Read from MH i2c: E2 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: E2 0E 00 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: E2 0E 00 C5 4C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 55 [15:34:22]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:34:22]wFMCommunicate OK [15:34:22]SAM_PROTO_GetShiftState done [15:34:22]FM_GetShiftState done [15:34:22]req_shift_opened done [15:34:22]requested_item shift.open_date is exist - process it [15:34:22]req_shift_open_date [15:34:22]req_shift_open_date done [15:34:22]produce_requested_data done [15:34:22]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228292,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:34:22]process_action_free close_receipt [15:34:22]json_value_free [15:34:22]json_value_free done [15:34:22]process_json_proto returns [15:34:22]Send response to host [15:34:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228292,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:34:22]free response buf [15:34:22]execute_script done [15:34:22]execute_script returns [15:34:22]free content buf [15:34:22]Sock 7.Close socket [15:34:22]Sock 7.Thread stoped [15:34:26]OFD Sender: No OFD packet to send [15:34:31]OFD Sender: No OFD packet to send [15:34:36]OFD Sender: No OFD packet to send [15:34:41]OFD Sender: No OFD packet to send [15:34:46]OFD Sender: No OFD packet to send [15:34:51]OFD Sender: No OFD packet to send [15:34:56]OFD Sender: No OFD packet to send [15:35:01]OFD Sender: No OFD packet to send [15:35:06]OFD Sender: No OFD packet to send [15:35:11]OFD Sender: No OFD packet to send [15:35:16]OFD Sender: No OFD packet to send [15:35:21]OFD Sender: No OFD packet to send [15:35:26]OFD Sender: No OFD packet to send [15:35:31]OFD Sender: No OFD packet to send [15:35:36]OFD Sender: No OFD packet to send [15:35:41]OFD Sender: No OFD packet to send [15:35:46]OFD Sender: No OFD packet to send [15:35:51]OFD Sender: No OFD packet to send [15:35:56]OFD Sender: No OFD packet to send [15:36:01]OFD Sender: No OFD packet to send [15:36:06]OFD Sender: No OFD packet to send [15:36:11]OFD Sender: No OFD packet to send [15:36:16]OFD Sender: No OFD packet to send [15:36:21]OFD Sender: No OFD packet to send [15:36:26]OFD Sender: No OFD packet to send [15:36:31]OFD Sender: No OFD packet to send [15:36:36]OFD Sender: No OFD packet to send [15:36:41]OFD Sender: No OFD packet to send [15:36:46]OFD Sender: No OFD packet to send [15:36:51]OFD Sender: No OFD packet to send [15:36:56]OFD Sender: No OFD packet to send [15:37:01]OFD Sender: No OFD packet to send [15:37:06]OFD Sender: No OFD packet to send [15:37:11]OFD Sender: No OFD packet to send [15:37:12]accept exits with 9 [15:37:12]New connection [15:37:12]New thread 3066994020 created [15:37:12]Thread 3067137380 joined [15:37:12]Waiting for new connection... [15:37:12] Sock 9.Parse request [15:37:12]Sock 9.Check first char [15:37:12]Sock 9.First char is OK [15:37:12]request: POST /json_proto HTTP/1.0 [15:37:12]Method: POST [15:37:12]URL: /json_proto [15:37:12]Method is POST - this is cgi request [15:37:12]url: /json_proto [15:37:12]query_string will be loaded in cgi processing [15:37:12]execute_cgi json_proto POST (null) [15:37:12]execute_cgi path=json_proto method=POST [15:37:12]POST find Content-Length [15:37:12]Host: 172.17.44.195:8080 [15:37:12]Content-Length: 825 [15:37:12]Content-Type: application/json [15:37:12] [15:37:12]POST finish read [15:37:12]Found Content-Length = 825 [15:37:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 17.550, "sum" : 1200.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" : 1200.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:12]execute_script... [15:37:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 17.550, "sum" : 1200.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" : 1200.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:12]POST & json_proto [15:37:12]process_json_proto [15:37:12]json parsed OK: [15:37:12]protocol is kg_v1.0 [15:37:12]action value=close_receipt [15:37:12]process_action close_receipt [15:37:12]cmd_close_receipt [15:37:12]MH_GetDate [15:37:12]Write to MH i2c: F0 00 00 C6 4C 01 [15:37:12]Write i2c OK [15:37:12]MH_I2C_Read... [15:37:12]Read from MH i2c: F0 [15:37:12]MH_I2C_Read... [15:37:12]Read from MH i2c: F0 09 00 [15:37:12]MH_I2C_Read... [15:37:12]Read from MH i2c: F0 09 00 C6 4C 00 AD C6 17 67 82 C9 CF 66 7B [15:37:12]GetLastDocTimeStamp 1729611262 [15:37:12]current date 1729611437 [15:37:12]FM_GetShiftState [15:37:12]SAM_PROTO_GetShiftState [15:37:12]wFMCommunicate request_size=4 [15:37:12]MH_SAM_APDU [15:37:12]CAPDU: 80 13 01 00 [15:37:12]Write to MH i2c: E2 08 00 C7 4C 80 13 01 00 00 00 00 00 90 [15:37:12]Write i2c OK [15:37:12]MH_I2C_Read... [15:37:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:12]Read from MH i2c: E2 [15:37:12]MH_I2C_Read... [15:37:12]Read from MH i2c: E2 0E 00 [15:37:12]MH_I2C_Read... [15:37:12]Read from MH i2c: E2 0E 00 C7 4C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 57 [15:37:12]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:37:12]wFMCommunicate OK [15:37:12]SAM_PROTO_GetShiftState done [15:37:12]FM_GetShiftState done [15:37:12]opened in 1729555538 [15:37:12]opened+sec_in_day 1729641938 [15:37:12]quantity*price = 120042 [15:37:12]sum+1 = 120043 [15:37:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.42 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 0.00 Безнал.: 1200.42 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 257 22.10.2024 15:37 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000871839 ФД: 228293 ФПД: 205318190825214 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153717&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228293&fm=205318190825214&tin=02508201610067®Number=0000000000091685&sum=120042 [15:37:13]StoreToDocumentArchive [15:37:13]shift 535 fd 228293 [15:37:13]save to /storage/0535/doc_00228293 [15:37:13]save last doc name /storage/0535/doc_00228293 to /storage/kkm_last_doc_name [15:37:13]save OK [15:37:13]Clear old archive folders... [15:37:13]ProcessDocumentItem done err = 0, tmpTLVsize=244 [15:37:13]tlvbuf is 00875440 [15:37:13]SAM_PROTO_ClearQueue [15:37:13]wFMCommunicate request_size=4 [15:37:13]MH_SAM_APDU [15:37:13]CAPDU: 80 09 00 00 [15:37:13]Write to MH i2c: E2 08 00 D4 4C 80 09 00 00 00 00 00 00 92 [15:37:13]Write i2c OK [15:37:13]MH_I2C_Read... [15:37:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:13]Read from MH i2c: E2 [15:37:13]MH_I2C_Read... [15:37:13]Read from MH i2c: E2 03 00 [15:37:13]MH_I2C_Read... [15:37:13]Read from MH i2c: E2 03 00 D4 4C 00 90 00 94 [15:37:13]RAPDU: 90 00 [15:37:13]wFMCommunicate OK [15:37:13]SAM_PROTO_ClearQueue done [15:37:13]KKMCreateOFDPacket [15:37:13]OFDProtocolAddRootSTLVToBuf [15:37:13]FM_MakeSignedData [15:37:13]FM_MakeSignedData [15:37:13]SAM_PROTO_SignData [15:37:13]wFMCommunicate request_size=4 [15:37:13]MH_SAM_APDU [15:37:13]CAPDU: 80 0D 01 02 [15:37:13]Write to MH i2c: E2 08 00 D5 4C 80 0D 01 02 00 00 00 00 9A [15:37:13]Write i2c OK [15:37:13]MH_I2C_Read... [15:37:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:13]Read from MH i2c: E2 [15:37:13]MH_I2C_Read... [15:37:13]Read from MH i2c: E2 03 00 [15:37:13]MH_I2C_Read... [15:37:13]Read from MH i2c: E2 03 00 D5 4C 00 90 00 95 [15:37:13]RAPDU: 90 00 [15:37:13]wFMCommunicate OK [15:37:13]wFMCommunicate request_size=253 [15:37:13]MH_SAM_APDU [15:37:13]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 44 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 EA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 AD C6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C5 7B 03 00 35 04 06 00 BA BC 5D D4 7E FE [15:37:13]Write to MH i2c: E2 00 01 D6 4C 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 44 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 EA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 AD C6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C5 7B 03 00 35 04 06 00 BA BC 5D D4 7E FE 00 00 D4 [15:37:13]Write i2c OK [15:37:13]MH_I2C_Read... [15:37:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:13]Read from MH i2c: E2 [15:37:13]MH_I2C_Read... [15:37:13]Read from MH i2c: E2 03 00 [15:37:13]MH_I2C_Read... [15:37:13]Read from MH i2c: E2 03 00 D6 4C 00 90 00 96 [15:37:13]RAPDU: 90 00 [15:37:13]wFMCommunicate OK [15:37:13]wFMCommunicate request_size=4 [15:37:13]MH_SAM_APDU [15:37:13]CAPDU: 80 0D 03 02 [15:37:13]Write to MH i2c: E2 08 00 D7 4C 80 0D 03 02 00 00 00 00 9E [15:37:13]Write i2c OK [15:37:13]MH_I2C_Read... [15:37:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:14]Read from MH i2c: E2 [15:37:14]MH_I2C_Read... [15:37:14]Read from MH i2c: E2 0B 00 [15:37:14]MH_I2C_Read... [15:37:14]Read from MH i2c: E2 0B 00 D7 4C 00 AE 8B 57 29 DB B5 33 BE 90 00 D9 [15:37:14]RAPDU: AE 8B 57 29 DB B5 33 BE 90 00 [15:37:14]wFMCommunicate OK [15:37:14]SAM_PROTO_SignData done [15:37:14]FM_MakeSignedData done [15:37:14]CreateOFDProtocolMessage [15:37:14]wFMCommunicate request_size=4 [15:37:14]MH_SAM_APDU [15:37:14]CAPDU: 80 11 00 00 [15:37:14]Write to MH i2c: E2 08 00 D8 4C 80 11 00 00 00 00 00 00 9E [15:37:14]Write i2c OK [15:37:14]MH_I2C_Read... [15:37:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:14]Read from MH i2c: E2 [15:37:14]MH_I2C_Read... [15:37:14]Read from MH i2c: E2 17 00 [15:37:14]MH_I2C_Read... [15:37:14]Read from MH i2c: E2 17 00 D8 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F5 [15:37:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:37:14]wFMCommunicate OK [15:37:14]CreateOFDProtocolMessage done [15:37:14]OFDSenderStorePacket 228293 [15:37:14]StoreOFDPacket docnum=228293 [15:37:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 48 38 00 01 51 32 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 44 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 EA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 AD C6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C5 7B 03 00 35 04 06 00 BA BC 5D D4 7E FE AE 8B 57 29 DB B5 33 BE [15:37:14]CheckFolder [15:37:14]dirname=/storage/ofd_packets [15:37:14]CheckFolder done [15:37:14]ProducePacketName [15:37:14]name=ofd_packets/00228293 [15:37:14]NVStorageSaveData ofd_packets/00228293 [15:37:14]File name is /storage/ofd_packets/00228293 [15:37:14]Write 294 bytes [15:37:14]NVStorageSaveData done [15:37:14]OFDSenderStorePacket done [15:37:14]KKMCreateOFDPacket done [15:37:14]NVStorageSaveData kkm_last_timestamp [15:37:14]File name is /storage/kkm_last_timestamp [15:37:14]Write 4 bytes [15:37:14]NVStorageSaveData done [15:37:14]ExternCall_PrintAddStr [15:37:14]wPrintStart [15:37:14]Write to MH i2c: 01 00 00 D9 4C 25 [15:37:14]Write i2c OK [15:37:14]MH_I2C_Read... [15:37:14]Read from MH i2c: 01 [15:37:14]MH_I2C_Read... [15:37:14]Read from MH i2c: 01 07 00 [15:37:14]MH_I2C_Read... [15:37:14]Read from MH i2c: 01 07 00 D9 4C 00 00 00 00 00 FF 0F 3A [15:37:14]RasterBufferAndPrint [15:37:14]line Счет N : (1)1964771 [15:37:14]line ИНН: 02508201610067 [15:37:14]line Контрольно-Кассовый Чек [15:37:14]line ПРОДАЖА [15:37:14]line ТРК (МРК, ГНК) : 42 [15:37:14]line Товар: 2710124130 [15:37:14]line SU-92 [15:37:14]line 17.550 * 68.40 [15:37:14]line = 1200.42 [15:37:14]line НДС 12% НСП 1% [15:37:14]line > о реализуемом товаре [15:37:14]line ИТОГО: 1200.42 [15:37:14]line НСП 1% : 10.62 [15:37:14]line НДС 12% : 127.48 [15:37:14]line Наличными: 0.00 [15:37:14]line Безнал.: 1200.42 [15:37:14]line Место: АЗС № 133 "Партнер Нефть" [15:37:14]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:37:14]line СНО: Общий режим [15:37:14]line Чек 257 22.10.2024 15:37 [15:37:14]line Смена: 535 ФФД: 1.0 [15:37:14]line ЗНМ: 0300000091 [15:37:14]line РНМ: 0000000000091685 [15:37:14]line Версия ККМ: 001 [15:37:14]line Платежная система: АКБ Кыргызстан [15:37:14]line ФМ: 0000000000871839 [15:37:14]line ФД: 228293 [15:37:14]line ФПД: 205318190825214 [15:37:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153717&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228293&fm=205318190825214&tin=02508201610067®Number=0000000000091685&sum=120042 [15:37:14]written 0, free lines is 4095 [15:37:14]OFD Sender: Processing packet 228293 [packets to send 38, broken 37] [15:37:14]ProducePacketName [15:37:14]name=ofd_packets/00228293 [15:37:14]OFD Sender: To server: pG, [15:37:14]CommunicateWithHost lk.salyk.kg:30040 [15:37:14]ConnectInit lk.salyk.kg [15:37:14]Connected sock=10 [15:37:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 48 38 00 01 51 32 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 44 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 EA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 AD C6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C5 7B 03 00 35 04 06 00 BA BC 5D D4 7E FE AE 8B 57 29 DB B5 33 BE [15:37:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 C0 5F 47 00 4E 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C5 7B 03 00 F4 03 04 00 A4 71 17 67 B6 04 01 00 00 C2 FD 9A 85 E9 55 9C 0A [15:37:14]CommunicateWithHost err = 0 [15:37:14]CheckOFDResponse [15:37:14]1017 (14) - 77093643461234 [15:37:14]1041 (16) - 0000000000871839 [15:37:14]1040 (4) - 228293 [15:37:14]1012 (4) - 22.10.2024 09:34 [15:37:14]1206 (1) - 0 [15:37:14]OFD Sender: Remove packet 228293 [15:37:14]ProducePacketName [15:37:14]name=ofd_packets/00228293 [15:37:14]NVStorageDeleteData [15:37:14]Write to MH i2c: 01 00 00 02 4D 4F [15:37:14]Write i2c OK [15:37:14]MH_I2C_Read... [15:37:14]Read from MH i2c: 01 [15:37:14]MH_I2C_Read... [15:37:14]Read from MH i2c: 01 07 00 [15:37:14]MH_I2C_Read... [15:37:14]Read from MH i2c: 01 07 00 02 4D 00 00 00 00 00 CD 0C 2F [15:37:14]RasterBufferAndPrint [15:37:14]line [15:37:14]line [15:37:14]line [15:37:14]line [15:37:14]line [15:37:14]written 0, free lines is 3281 [15:37:14]MH_Cut [15:37:14]Write to MH i2c: D1 01 00 09 4D 01 28 [15:37:14]Write i2c OK [15:37:14]MH_I2C_Read... [15:37:14]Read from MH i2c: D1 [15:37:14]MH_I2C_Read... [15:37:14]Read from MH i2c: D1 01 00 [15:37:14]MH_I2C_Read... [15:37:14]Read from MH i2c: D1 01 00 09 4D 00 27 [15:37:14]Write to MH i2c: 01 00 00 0A 4D 57 [15:37:14]Write i2c OK [15:37:14]MH_I2C_Read... [15:37:14]OFD Sender: No OFD packet to send [15:37:15]*** Cut start [15:37:15]*** Partial cut [15:37:15]*** CUTSNS_PIN = 1 [15:37:15]*** CUTSNS_PIN = 0 [15:37:15]*** Brake cut motor [15:37:16]Read from MH i2c: 01 [15:37:16]MH_I2C_Read... [15:37:16]*** Stop cut motor [15:37:16]*** Cut end [15:37:16]Read from MH i2c: 01 07 00 [15:37:16]MH_I2C_Read... [15:37:16]Read from MH i2c: 01 07 00 0A 4D 00 00 00 00 00 FF 0F 6C [15:37:16]process_action close_receipt done [15:37:16]requested_data is exist [15:37:16]produce_requested_data [15:37:16]requested_item fm.sn is exist - process it [15:37:16]wFMCommunicate request_size=4 [15:37:16]MH_SAM_APDU [15:37:16]CAPDU: 80 11 00 00 [15:37:16]Write to MH i2c: E2 08 00 0B 4D 80 11 00 00 00 00 00 00 D2 [15:37:16]Write i2c OK [15:37:16]MH_I2C_Read... [15:37:16]Read from MH i2c: E2 [15:37:16]MH_I2C_Read... [15:37:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:16]Read from MH i2c: E2 17 00 [15:37:16]MH_I2C_Read... [15:37:16]Read from MH i2c: E2 17 00 0B 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 29 [15:37:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:37:16]wFMCommunicate OK [15:37:16]requested_item fd.num is exist - process it [15:37:16]SAM_PROTO_GetFieldsCounters [15:37:16]wFMCommunicate request_size=4 [15:37:16]MH_SAM_APDU [15:37:16]CAPDU: 80 13 00 00 [15:37:16]Write to MH i2c: E2 08 00 0C 4D 80 13 00 00 00 00 00 00 D5 [15:37:16]Write i2c OK [15:37:16]MH_I2C_Read... [15:37:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:16]Read from MH i2c: E2 [15:37:16]MH_I2C_Read... [15:37:16]Read from MH i2c: E2 62 00 [15:37:16]MH_I2C_Read... [15:37:16]Read from MH i2c: E2 62 00 0C 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C5 7B 03 00 0E 04 04 00 17 02 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 60 [15:37:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C5 7B 03 00 0E 04 04 00 17 02 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 [15:37:16]wFMCommunicate OK [15:37:16]SAM_PROTO_GetFieldsCounters done [15:37:16]requested_item shift.num is exist - process it [15:37:16]requested_item shift.opened is exist - process it [15:37:16]req_shift_opened [15:37:16]FM_GetShiftState [15:37:16]SAM_PROTO_GetShiftState [15:37:16]wFMCommunicate request_size=4 [15:37:16]MH_SAM_APDU [15:37:16]CAPDU: 80 13 01 00 [15:37:16]Write to MH i2c: E2 08 00 0D 4D 80 13 01 00 00 00 00 00 D7 [15:37:16]Write i2c OK [15:37:16]MH_I2C_Read... [15:37:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:16]Read from MH i2c: E2 [15:37:16]MH_I2C_Read... [15:37:16]Read from MH i2c: E2 0E 00 [15:37:16]MH_I2C_Read... [15:37:16]Read from MH i2c: E2 0E 00 0D 4D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 9E [15:37:16]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:37:16]wFMCommunicate OK [15:37:16]SAM_PROTO_GetShiftState done [15:37:16]FM_GetShiftState done [15:37:16]req_shift_opened done [15:37:16]requested_item shift.open_date is exist - process it [15:37:16]req_shift_open_date [15:37:16]req_shift_open_date done [15:37:16]produce_requested_data done [15:37:16]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228293,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:37:16]process_action_free close_receipt [15:37:16]json_value_free [15:37:16]json_value_free done [15:37:16]process_json_proto returns [15:37:16]Send response to host [15:37:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228293,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:37:16]free response buf [15:37:16]execute_script done [15:37:16]execute_script returns [15:37:16]free content buf [15:37:16]Sock 9.Close socket [15:37:16]Sock 9.Thread stoped [15:37:19]OFD Sender: No OFD packet to send [15:37:24]OFD Sender: No OFD packet to send [15:37:29]OFD Sender: No OFD packet to send [15:37:34]OFD Sender: No OFD packet to send [15:37:39]OFD Sender: No OFD packet to send [15:37:44]OFD Sender: No OFD packet to send [15:37:45]accept exits with 7 [15:37:45]New connection [15:37:45]New thread 3067137380 created [15:37:45]Thread 3066994020 joined [15:37:45]Waiting for new connection... [15:37:45] Sock 7.Parse request [15:37:45]Sock 7.Check first char [15:37:45]Sock 7.First char is OK [15:37:45]request: POST /json_proto HTTP/1.0 [15:37:45]Method: POST [15:37:45]URL: /json_proto [15:37:45]Method is POST - this is cgi request [15:37:45]url: /json_proto [15:37:45]query_string will be loaded in cgi processing [15:37:45]execute_cgi json_proto POST (null) [15:37:45]execute_cgi path=json_proto method=POST [15:37:45]POST find Content-Length [15:37:45]Host: 172.17.44.195:8080 [15:37:45]Content-Length: 678 [15:37:45]Content-Type: application/json [15:37:45] [15:37:45]POST finish read [15:37:45]Found Content-Length = 678 [15:37:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964774", "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" : 66.90, "quantity" : 1.500, "sum" : 100.35, "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" ] } } [15:37:45]execute_script... [15:37: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)1964774", "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" : 66.90, "quantity" : 1.500, "sum" : 100.35, "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" ] } } [15:37:45]POST & json_proto [15:37:45]process_json_proto [15:37:45]json parsed OK: [15:37:45]protocol is kg_v1.0 [15:37:45]action value=close_receipt [15:37:45]process_action close_receipt [15:37:45]cmd_close_receipt [15:37:45]MH_GetDate [15:37:45]Write to MH i2c: F0 00 00 0E 4D 4A [15:37:45]Write i2c OK [15:37:45]MH_I2C_Read... [15:37:45]Read from MH i2c: F0 [15:37:45]MH_I2C_Read... [15:37:45]Read from MH i2c: F0 09 00 [15:37:45]MH_I2C_Read... [15:37:45]Read from MH i2c: F0 09 00 0E 4D 00 CD C6 17 67 82 C9 CF 66 E4 [15:37:45]GetLastDocTimeStamp 1729611437 [15:37:45]current date 1729611469 [15:37:45]FM_GetShiftState [15:37:45]SAM_PROTO_GetShiftState [15:37:45]wFMCommunicate request_size=4 [15:37:45]MH_SAM_APDU [15:37:45]CAPDU: 80 13 01 00 [15:37:45]Write to MH i2c: E2 08 00 0F 4D 80 13 01 00 00 00 00 00 D9 [15:37:45]Write i2c OK [15:37:45]MH_I2C_Read... [15:37:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:45]Read from MH i2c: E2 [15:37:45]MH_I2C_Read... [15:37:45]Read from MH i2c: E2 0E 00 [15:37:45]MH_I2C_Read... [15:37:45]Read from MH i2c: E2 0E 00 0F 4D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 A0 [15:37:45]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:37:45]wFMCommunicate OK [15:37:45]SAM_PROTO_GetShiftState done [15:37:45]FM_GetShiftState done [15:37:45]opened in 1729555538 [15:37:45]opened+sec_in_day 1729641938 [15:37:45]quantity*price = 10035 [15:37:45]sum+1 = 10036 [15:37:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 258 22.10.2024 15:37 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228294 ФПД: 122489294262167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153749&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228294&fm=122489294262167&tin=02508201610067®Number=0000000000091685&sum=10000 [15:37:46]StoreToDocumentArchive [15:37:46]shift 535 fd 228294 [15:37:46]save to /storage/0535/doc_00228294 [15:37:46]save last doc name /storage/0535/doc_00228294 to /storage/kkm_last_doc_name [15:37:46]save OK [15:37:46]Clear old archive folders... [15:37:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:37:46]tlvbuf is 008E7610 [15:37:46]SAM_PROTO_ClearQueue [15:37:46]wFMCommunicate request_size=4 [15:37:46]MH_SAM_APDU [15:37:46]CAPDU: 80 09 00 00 [15:37:46]Write to MH i2c: E2 08 00 1C 4D 80 09 00 00 00 00 00 00 DB [15:37:46]Write i2c OK [15:37:46]MH_I2C_Read... [15:37:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:46]Read from MH i2c: E2 [15:37:46]MH_I2C_Read... [15:37:46]Read from MH i2c: E2 03 00 [15:37:46]MH_I2C_Read... [15:37:46]Read from MH i2c: E2 03 00 1C 4D 00 90 00 DD [15:37:46]RAPDU: 90 00 [15:37:46]wFMCommunicate OK [15:37:46]SAM_PROTO_ClearQueue done [15:37:46]KKMCreateOFDPacket [15:37:46]OFDProtocolAddRootSTLVToBuf [15:37:46]FM_MakeSignedData [15:37:46]FM_MakeSignedData [15:37:46]SAM_PROTO_SignData [15:37:46]wFMCommunicate request_size=4 [15:37:46]MH_SAM_APDU [15:37:46]CAPDU: 80 0D 01 02 [15:37:46]Write to MH i2c: E2 08 00 1D 4D 80 0D 01 02 00 00 00 00 E3 [15:37:46]Write i2c OK [15:37:46]MH_I2C_Read... [15:37:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:46]Read from MH i2c: E2 [15:37:46]MH_I2C_Read... [15:37:46]Read from MH i2c: E2 03 00 [15:37:46]MH_I2C_Read... [15:37:46]Read from MH i2c: E2 03 00 1D 4D 00 90 00 DE [15:37:46]RAPDU: 90 00 [15:37:46]wFMCommunicate OK [15:37:46]wFMCommunicate request_size=255 [15:37:46]MH_SAM_APDU [15:37: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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 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 2A 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 02 01 00 00 F4 03 04 00 CD C6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C6 7B 03 00 35 04 06 00 6F [15:37:46]Write to MH i2c: E2 02 01 1E 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 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 2A 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 02 01 00 00 F4 03 04 00 CD C6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C6 7B 03 00 35 04 06 00 6F 00 00 41 [15:37:46]Write i2c OK [15:37:46]MH_I2C_Read... [15:37:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:46]Read from MH i2c: E2 [15:37:46]MH_I2C_Read... [15:37:46]Read from MH i2c: E2 03 00 [15:37:46]MH_I2C_Read... [15:37:46]Read from MH i2c: E2 03 00 1E 4D 00 90 00 DF [15:37:46]RAPDU: 90 00 [15:37:46]wFMCommunicate OK [15:37:46]wFMCommunicate request_size=10 [15:37:46]MH_SAM_APDU [15:37:46]CAPDU: 80 0D 02 02 05 67 42 DF 8F 97 [15:37:46]Write to MH i2c: E2 0D 00 1F 4D 80 0D 02 02 05 00 67 42 DF 8F 97 00 00 9E [15:37:46]Write i2c OK [15:37:46]MH_I2C_Read... [15:37:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:46]Read from MH i2c: E2 [15:37:46]MH_I2C_Read... [15:37:46]Read from MH i2c: E2 03 00 [15:37:46]MH_I2C_Read... [15:37:46]Read from MH i2c: E2 03 00 1F 4D 00 90 00 E0 [15:37:46]RAPDU: 90 00 [15:37:46]wFMCommunicate OK [15:37:46]wFMCommunicate request_size=4 [15:37:46]MH_SAM_APDU [15:37:46]CAPDU: 80 0D 03 02 [15:37:46]Write to MH i2c: E2 08 00 20 4D 80 0D 03 02 00 00 00 00 E8 [15:37:46]Write i2c OK [15:37:46]MH_I2C_Read... [15:37:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:46]Read from MH i2c: E2 [15:37:46]MH_I2C_Read... [15:37:46]Read from MH i2c: E2 0B 00 [15:37:46]MH_I2C_Read... [15:37:46]Read from MH i2c: E2 0B 00 20 4D 00 C4 46 6E D9 1C DA CF 65 90 00 64 [15:37:46]RAPDU: C4 46 6E D9 1C DA CF 65 90 00 [15:37:46]wFMCommunicate OK [15:37:46]SAM_PROTO_SignData done [15:37:46]FM_MakeSignedData done [15:37:46]CreateOFDProtocolMessage [15:37:46]wFMCommunicate request_size=4 [15:37:46]MH_SAM_APDU [15:37:46]CAPDU: 80 11 00 00 [15:37:46]Write to MH i2c: E2 08 00 21 4D 80 11 00 00 00 00 00 00 E8 [15:37:46]Write i2c OK [15:37:46]MH_I2C_Read... [15:37:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:46]Read from MH i2c: E2 [15:37:46]MH_I2C_Read... [15:37:46]Read from MH i2c: E2 17 00 [15:37:46]MH_I2C_Read... [15:37:46]Read from MH i2c: E2 17 00 21 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 3F [15:37:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:37:46]wFMCommunicate OK [15:37:46]CreateOFDProtocolMessage done [15:37:46]OFDSenderStorePacket 228294 [15:37:46]StoreOFDPacket docnum=228294 [15:37:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 2A D6 07 01 95 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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 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 2A 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 02 01 00 00 F4 03 04 00 CD C6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C6 7B 03 00 35 04 06 00 6F 67 42 DF 8F 97 C4 46 6E D9 1C DA CF 65 [15:37:46]CheckFolder [15:37:46]dirname=/storage/ofd_packets [15:37:46]CheckFolder done [15:37:46]ProducePacketName [15:37:46]name=ofd_packets/00228294 [15:37:46]NVStorageSaveData ofd_packets/00228294 [15:37:46]File name is /storage/ofd_packets/00228294 [15:37:46]Write 301 bytes [15:37:46]NVStorageSaveData done [15:37:46]OFDSenderStorePacket done [15:37:46]KKMCreateOFDPacket done [15:37:46]NVStorageSaveData kkm_last_timestamp [15:37:46]File name is /storage/kkm_last_timestamp [15:37:46]Write 4 bytes [15:37:46]NVStorageSaveData done [15:37:46]OFD Sender: Processing packet 228294 [packets to send 38, broken 37] [15:37:46]ProducePacketName [15:37:46]name=ofd_packets/00228294 [15:37:46]OFD Sender: To server: pG, [15:37:46]CommunicateWithHost lk.salyk.kg:30040 [15:37:46]ConnectInit lk.salyk.kg [15:37:46]ExternCall_PrintAddStr [15:37:46]wPrintStart [15:37:46]Write to MH i2c: 01 00 00 22 4D 6F [15:37:46]Write i2c OK [15:37:46]MH_I2C_Read... [15:37:46]Read from MH i2c: 01 [15:37:46]MH_I2C_Read... [15:37:46]Read from MH i2c: 01 07 00 [15:37:46]MH_I2C_Read... [15:37:46]Read from MH i2c: 01 07 00 22 4D 00 00 00 00 00 FF 0F 84 [15:37:46]RasterBufferAndPrint [15:37:46]line Счет N : (1)1964774 [15:37:46]line ИНН: 02508201610067 [15:37:46]line Контрольно-Кассовый Чек [15:37:46]line ПРОДАЖА [15:37:46]line ТРК (МРК, ГНК) : 53 [15:37:46]line Товар: 2710124130 [15:37:46]line Аи-92-К-5 [15:37:46]line 1.500 * 66.90 [15:37:46]line = 100.35 [15:37:46]line НДС 12% НСП 1% [15:37:46]line > о реализуемом товаре [15:37:46]line ОКРУГЛЕНИЕ: -0.35 [15:37:46]line ИТОГО: 100.00 [15:37:46]line Внесено: 100.00 [15:37:46]line СДАЧА: 0.00 [15:37:46]line НСП 1% : 0.89 [15:37:46]line НДС 12% : 10.66 [15:37:46]line Наличными: 100.00 [15:37:46]line Безнал.: 0.00 [15:37:46]line Место: АЗС № 133 "Партнер Нефть" [15:37:46]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:37:46]line СНО: Общий режим [15:37:46]line Чек 258 22.10.2024 15:37 [15:37:46]line Смена: 535 ФФД: 1.0 [15:37:46]line ЗНМ: 0300000091 [15:37:46]line РНМ: 0000000000091685 [15:37:46]line Версия ККМ: 001 [15:37:46]line ФМ: 0000000000871839 [15:37:46]line ФД: 228294 [15:37:46]line ФПД: 122489294262167 [15:37:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153749&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228294&fm=122489294262167&tin=02508201610067®Number=0000000000091685&sum=10000 [15:37:47]Connected sock=11 [15:37:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 2A D6 07 01 95 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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 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 2A 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 02 01 00 00 F4 03 04 00 CD C6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C6 7B 03 00 35 04 06 00 6F 67 42 DF 8F 97 C4 46 6E D9 1C DA CF 65 [15:37:47]written 0, free lines is 4095 [15:37:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 8C 86 47 00 3D 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C6 7B 03 00 F4 03 04 00 C5 71 17 67 B6 04 01 00 00 95 E9 D3 88 EE 8F FA 3F [15:37:47]CommunicateWithHost err = 0 [15:37:47]CheckOFDResponse [15:37:47]1017 (14) - 77093643461234 [15:37:47]1041 (16) - 0000000000871839 [15:37:47]1040 (4) - 228294 [15:37:47]1012 (4) - 22.10.2024 09:35 [15:37:47]1206 (1) - 0 [15:37:47]OFD Sender: Remove packet 228294 [15:37:47]ProducePacketName [15:37:47]name=ofd_packets/00228294 [15:37:47]NVStorageDeleteData [15:37:47]Write to MH i2c: 01 00 00 4C 4D 99 [15:37:47]Write i2c OK [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: 01 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: 01 07 00 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: 01 07 00 4C 4D 00 00 00 00 00 B7 0C 63 [15:37:47]RasterBufferAndPrint [15:37:47]line [15:37:47]line [15:37:47]line [15:37:47]line [15:37:47]line [15:37:47]written 0, free lines is 3259 [15:37:47]MH_Cut [15:37:47]Write to MH i2c: D1 01 00 53 4D 01 72 [15:37:47]Write i2c OK [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: D1 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: D1 01 00 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: D1 01 00 53 4D 00 71 [15:37:47]Write to MH i2c: 01 00 00 54 4D A1 [15:37:47]Write i2c OK [15:37:47]MH_I2C_Read... [15:37:47]OFD Sender: No OFD packet to send [15:37:48]*** Cut start [15:37:48]*** Partial cut [15:37:48]*** CUTSNS_PIN = 1 [15:37:48]*** CUTSNS_PIN = 0 [15:37:48]*** Brake cut motor [15:37:49]Read from MH i2c: 01 [15:37:49]MH_I2C_Read... [15:37:49]*** Stop cut motor [15:37:49]*** Cut end [15:37:49]Read from MH i2c: 01 07 00 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: 01 07 00 54 4D 00 00 00 00 00 FF 0F B6 [15:37:49]process_action close_receipt done [15:37:49]requested_data is exist [15:37:49]produce_requested_data [15:37:49]requested_item fm.sn is exist - process it [15:37:49]wFMCommunicate request_size=4 [15:37:49]MH_SAM_APDU [15:37:49]CAPDU: 80 11 00 00 [15:37:49]Write to MH i2c: E2 08 00 55 4D 80 11 00 00 00 00 00 00 1C [15:37:49]Write i2c OK [15:37:49]MH_I2C_Read... [15:37:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:49]Read from MH i2c: E2 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: E2 17 00 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: E2 17 00 55 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 73 [15:37:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:37:49]wFMCommunicate OK [15:37:49]requested_item fd.num is exist - process it [15:37:49]SAM_PROTO_GetFieldsCounters [15:37:49]wFMCommunicate request_size=4 [15:37:49]MH_SAM_APDU [15:37:49]CAPDU: 80 13 00 00 [15:37:49]Write to MH i2c: E2 08 00 56 4D 80 13 00 00 00 00 00 00 1F [15:37:49]Write i2c OK [15:37:49]MH_I2C_Read... [15:37:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:49]Read from MH i2c: E2 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: E2 62 00 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: E2 62 00 56 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C6 7B 03 00 0E 04 04 00 17 02 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 AE [15:37:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C6 7B 03 00 0E 04 04 00 17 02 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 [15:37:49]wFMCommunicate OK [15:37:49]SAM_PROTO_GetFieldsCounters done [15:37:49]requested_item shift.num is exist - process it [15:37:49]requested_item shift.opened is exist - process it [15:37:49]req_shift_opened [15:37:49]FM_GetShiftState [15:37:49]SAM_PROTO_GetShiftState [15:37:49]wFMCommunicate request_size=4 [15:37:49]MH_SAM_APDU [15:37:49]CAPDU: 80 13 01 00 [15:37:49]Write to MH i2c: E2 08 00 57 4D 80 13 01 00 00 00 00 00 21 [15:37:49]Write i2c OK [15:37:49]MH_I2C_Read... [15:37:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:49]Read from MH i2c: E2 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: E2 0E 00 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: E2 0E 00 57 4D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 E8 [15:37:49]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:37:49]wFMCommunicate OK [15:37:49]SAM_PROTO_GetShiftState done [15:37:49]FM_GetShiftState done [15:37:49]req_shift_opened done [15:37:49]requested_item shift.open_date is exist - process it [15:37:49]req_shift_open_date [15:37:49]req_shift_open_date done [15:37:49]produce_requested_data done [15:37:49]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228294,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:37:49]process_action_free close_receipt [15:37:49]json_value_free [15:37:49]json_value_free done [15:37:49]process_json_proto returns [15:37:49]Send response to host [15:37:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228294,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:37:49]free response buf [15:37:49]execute_script done [15:37:49]execute_script returns [15:37:49]free content buf [15:37:49]Sock 7.Close socket [15:37:49]Sock 7.Thread stoped [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:14]accept exits with 9 [15:38:14]New connection [15:38:14]New thread 3066994020 created [15:38:14]Thread 3067137380 joined [15:38:14]Waiting for new connection... [15:38:14] Sock 9.Parse request [15:38:14]Sock 9.Check first char [15:38:14]Sock 9.First char is OK [15:38:14]request: POST /json_proto HTTP/1.0 [15:38:14]Method: POST [15:38:14]URL: /json_proto [15:38:14]Method is POST - this is cgi request [15:38:14]url: /json_proto [15:38:14]query_string will be loaded in cgi processing [15:38:14]execute_cgi json_proto POST (null) [15:38:14]execute_cgi path=json_proto method=POST [15:38:14]POST find Content-Length [15:38:14]Host: 172.17.44.195:8080 [15:38:14]Content-Length: 683 [15:38:14]Content-Type: application/json [15:38:14] [15:38:14]POST finish read [15:38:14]Found Content-Length = 683 [15:38:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:14]execute_script... [15:38:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:14]POST & json_proto [15:38:14]process_json_proto [15:38:14]json parsed OK: [15:38:14]protocol is kg_v1.0 [15:38:14]action value=close_receipt [15:38:14]process_action close_receipt [15:38:14]cmd_close_receipt [15:38:14]MH_GetDate [15:38:14]Write to MH i2c: F0 00 00 58 4D 94 [15:38:14]Write i2c OK [15:38:14]MH_I2C_Read... [15:38:14]Read from MH i2c: F0 [15:38:14]MH_I2C_Read... [15:38:14]Read from MH i2c: F0 09 00 [15:38:14]MH_I2C_Read... [15:38:14]Read from MH i2c: F0 09 00 58 4D 00 EB C6 17 67 82 C9 CF 66 4C [15:38:14]GetLastDocTimeStamp 1729611469 [15:38:14]current date 1729611499 [15:38:14]FM_GetShiftState [15:38:14]SAM_PROTO_GetShiftState [15:38:14]wFMCommunicate request_size=4 [15:38:14]MH_SAM_APDU [15:38:14]CAPDU: 80 13 01 00 [15:38:14]Write to MH i2c: E2 08 00 59 4D 80 13 01 00 00 00 00 00 23 [15:38:14]Write i2c OK [15:38:14]MH_I2C_Read... [15:38:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:14]Read from MH i2c: E2 [15:38:14]MH_I2C_Read... [15:38:14]Read from MH i2c: E2 0E 00 [15:38:14]MH_I2C_Read... [15:38:14]Read from MH i2c: E2 0E 00 59 4D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 EA [15:38:14]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:38:14]wFMCommunicate OK [15:38:14]SAM_PROTO_GetShiftState done [15:38:14]FM_GetShiftState done [15:38:14]opened in 1729555538 [15:38:14]opened+sec_in_day 1729641938 [15:38:14]quantity*price = 100021 [15:38:14]sum+1 = 100023 [15:38:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 259 22.10.2024 15:38 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228295 ФПД: 57485703631579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153819&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228295&fm=57485703631579&tin=02508201610067®Number=0000000000091685&sum=100000 [15:38:15]StoreToDocumentArchive [15:38:15]shift 535 fd 228295 [15:38:15]save to /storage/0535/doc_00228295 [15:38:15]save last doc name /storage/0535/doc_00228295 to /storage/kkm_last_doc_name [15:38:15]save OK [15:38:15]Clear old archive folders... [15:38:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:38:15]tlvbuf is 0098E140 [15:38:15]SAM_PROTO_ClearQueue [15:38:15]wFMCommunicate request_size=4 [15:38:15]MH_SAM_APDU [15:38:15]CAPDU: 80 09 00 00 [15:38:15]Write to MH i2c: E2 08 00 66 4D 80 09 00 00 00 00 00 00 25 [15:38:15]Write i2c OK [15:38:15]MH_I2C_Read... [15:38:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:38:15]Read from MH i2c: E2 [15:38:15]MH_I2C_Read... [15:38:15]Read from MH i2c: E2 03 00 [15:38:15]MH_I2C_Read... [15:38:15]Read from MH i2c: E2 03 00 66 4D 00 90 00 27 [15:38:15]RAPDU: 90 00 [15:38:15]wFMCommunicate OK [15:38:15]SAM_PROTO_ClearQueue done [15:38:15]KKMCreateOFDPacket [15:38:15]OFDProtocolAddRootSTLVToBuf [15:38:15]FM_MakeSignedData [15:38:15]FM_MakeSignedData [15:38:15]SAM_PROTO_SignData [15:38:15]wFMCommunicate request_size=4 [15:38:15]MH_SAM_APDU [15:38:15]CAPDU: 80 0D 01 02 [15:38:15]Write to MH i2c: E2 08 00 67 4D 80 0D 01 02 00 00 00 00 2D [15:38:15]Write i2c OK [15:38:15]MH_I2C_Read... [15:38:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:38:15]Read from MH i2c: E2 [15:38:15]MH_I2C_Read... [15:38:15]Read from MH i2c: E2 03 00 [15:38:15]MH_I2C_Read... [15:38:15]Read from MH i2c: E2 03 00 67 4D 00 90 00 28 [15:38:15]RAPDU: 90 00 [15:38:15]wFMCommunicate OK [15:38:15]wFMCommunicate request_size=255 [15:38:15]MH_SAM_APDU [15:38: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 EB C6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C7 7B 03 00 35 04 06 00 34 [15:38:15]Write to MH i2c: E2 02 01 68 4D 80 0D 02 02 FA 00 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 EB C6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C7 7B 03 00 35 04 06 00 34 00 00 A6 [15:38:15]Write i2c OK [15:38:15]MH_I2C_Read... [15:38:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:15]Read from MH i2c: E2 [15:38:15]MH_I2C_Read... [15:38:15]Read from MH i2c: E2 03 00 [15:38:15]MH_I2C_Read... [15:38:15]Read from MH i2c: E2 03 00 68 4D 00 90 00 29 [15:38:15]RAPDU: 90 00 [15:38:15]wFMCommunicate OK [15:38:15]wFMCommunicate request_size=10 [15:38:15]MH_SAM_APDU [15:38:15]CAPDU: 80 0D 02 02 05 48 6E F1 D2 DB [15:38:15]Write to MH i2c: E2 0D 00 69 4D 80 0D 02 02 05 00 48 6E F1 D2 DB 00 00 8E [15:38:15]Write i2c OK [15:38:15]MH_I2C_Read... [15:38:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:15]Read from MH i2c: E2 [15:38:15]MH_I2C_Read... [15:38:15]Read from MH i2c: E2 03 00 [15:38:15]MH_I2C_Read... [15:38:15]Read from MH i2c: E2 03 00 69 4D 00 90 00 2A [15:38:15]RAPDU: 90 00 [15:38:15]wFMCommunicate OK [15:38:15]wFMCommunicate request_size=4 [15:38:15]MH_SAM_APDU [15:38:15]CAPDU: 80 0D 03 02 [15:38:15]Write to MH i2c: E2 08 00 6A 4D 80 0D 03 02 00 00 00 00 32 [15:38:15]Write i2c OK [15:38:15]MH_I2C_Read... [15:38:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:38:16]Read from MH i2c: E2 [15:38:16]MH_I2C_Read... [15:38:16]Read from MH i2c: E2 0B 00 [15:38:16]MH_I2C_Read... [15:38:16]Read from MH i2c: E2 0B 00 6A 4D 00 CF 18 FB 87 53 79 64 77 90 00 43 [15:38:16]RAPDU: CF 18 FB 87 53 79 64 77 90 00 [15:38:16]wFMCommunicate OK [15:38:16]SAM_PROTO_SignData done [15:38:16]FM_MakeSignedData done [15:38:16]CreateOFDProtocolMessage [15:38:16]wFMCommunicate request_size=4 [15:38:16]MH_SAM_APDU [15:38:16]CAPDU: 80 11 00 00 [15:38:16]Write to MH i2c: E2 08 00 6B 4D 80 11 00 00 00 00 00 00 32 [15:38:16]Write i2c OK [15:38:16]MH_I2C_Read... [15:38:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:16]Read from MH i2c: E2 [15:38:16]MH_I2C_Read... [15:38:16]Read from MH i2c: E2 17 00 [15:38:16]MH_I2C_Read... [15:38:16]Read from MH i2c: E2 17 00 6B 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 89 [15:38:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:38:16]wFMCommunicate OK [15:38:16]CreateOFDProtocolMessage done [15:38:16]OFDSenderStorePacket 228295 [15:38:16]StoreOFDPacket docnum=228295 [15:38:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 54 C7 07 01 EF E0 5A 03 01 00 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 EB C6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C7 7B 03 00 35 04 06 00 34 48 6E F1 D2 DB CF 18 FB 87 53 79 64 77 [15:38:16]CheckFolder [15:38:16]dirname=/storage/ofd_packets [15:38:16]CheckFolder done [15:38:16]ProducePacketName [15:38:16]name=ofd_packets/00228295 [15:38:16]NVStorageSaveData ofd_packets/00228295 [15:38:16]File name is /storage/ofd_packets/00228295 [15:38:16]Write 301 bytes [15:38:16]NVStorageSaveData done [15:38:16]OFDSenderStorePacket done [15:38:16]KKMCreateOFDPacket done [15:38:16]NVStorageSaveData kkm_last_timestamp [15:38:16]File name is /storage/kkm_last_timestamp [15:38:16]Write 4 bytes [15:38:16]NVStorageSaveData done [15:38:16]ExternCall_PrintAddStr [15:38:16]wPrintStart [15:38:16]Write to MH i2c: 01 00 00 6C 4D B9 [15:38:16]Write i2c OK [15:38:16]MH_I2C_Read... [15:38:16]Read from MH i2c: 01 [15:38:16]MH_I2C_Read... [15:38:16]Read from MH i2c: 01 07 00 [15:38:16]MH_I2C_Read... [15:38:16]Read from MH i2c: 01 07 00 6C 4D 00 00 00 00 00 FF 0F CE [15:38:16]RasterBufferAndPrint [15:38:16]line Счет N : (1)1964773 [15:38:16]line ИНН: 02508201610067 [15:38:16]line Контрольно-Кассовый Чек [15:38:16]line ПРОДАЖА [15:38:16]line ТРК (МРК, ГНК) : 34 [15:38:16]line Товар: 2710124500 [15:38:16]line Аи-95-К-5 [15:38:16]line 13.480 * 74.20 [15:38:16]line = 1000.22 [15:38:16]line НДС 12% НСП 1% [15:38:16]line > о реализуемом товаре [15:38:16]line ОКРУГЛЕНИЕ: -0.22 [15:38:16]line ИТОГО: 1000.00 [15:38:16]line Внесено: 1000.00 [15:38:16]line СДАЧА: 0.00 [15:38:16]line НСП 1% : 8.85 [15:38:16]line НДС 12% : 106.22 [15:38:16]line Наличными: 1000.00 [15:38:16]line Безнал.: 0.00 [15:38:16]line Место: АЗС № 133 "Партнер Нефть" [15:38:16]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:38:16]line СНО: Общий режим [15:38:16]line Чек 259 22.10.2024 15:38 [15:38:16]line Смена: 535 ФФД: 1.0 [15:38:16]line ЗНМ: 0300000091 [15:38:16]line РНМ: 0000000000091685 [15:38:16]line Версия ККМ: 001 [15:38:16]line ФМ: 0000000000871839 [15:38:16]line ФД: 228295 [15:38:16]line ФПД: 57485703631579 [15:38:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153819&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228295&fm=57485703631579&tin=02508201610067®Number=0000000000091685&sum=100000 [15:38:16]OFD Sender: Processing packet 228295 [packets to send 38, broken 37] [15:38:16]ProducePacketName [15:38:16]name=ofd_packets/00228295 [15:38:16]OFD Sender: To server: pG, [15:38:16]CommunicateWithHost lk.salyk.kg:30040 [15:38:16]ConnectInit lk.salyk.kg [15:38:16]written 0, free lines is 4095 [15:38:16]Connected sock=10 [15:38:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 54 C7 07 01 EF E0 5A 03 01 00 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 EB C6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C7 7B 03 00 35 04 06 00 34 48 6E F1 D2 DB CF 18 FB 87 53 79 64 77 [15:38:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 F2 1C 47 00 D6 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C7 7B 03 00 F4 03 04 00 E3 71 17 67 B6 04 01 00 00 5C 94 8A 66 58 F0 2E 1F [15:38:16]CommunicateWithHost err = 0 [15:38:16]CheckOFDResponse [15:38:16]1017 (14) - 77093643461234 [15:38:16]1041 (16) - 0000000000871839 [15:38:16]1040 (4) - 228295 [15:38:16]1012 (4) - 22.10.2024 09:35 [15:38:16]1206 (1) - 0 [15:38:16]OFD Sender: Remove packet 228295 [15:38:16]ProducePacketName [15:38:16]name=ofd_packets/00228295 [15:38:16]NVStorageDeleteData [15:38:16]Write to MH i2c: 01 00 00 96 4D E3 [15:38:16]Write i2c OK [15:38:16]MH_I2C_Read... [15:38:16]Read from MH i2c: 01 [15:38:16]MH_I2C_Read... [15:38:16]Read from MH i2c: 01 07 00 [15:38:16]MH_I2C_Read... [15:38:16]Read from MH i2c: 01 07 00 96 4D 00 00 00 00 00 B3 0C A9 [15:38:16]RasterBufferAndPrint [15:38:16]line [15:38:16]line [15:38:16]line [15:38:16]line [15:38:16]line [15:38:16]written 0, free lines is 3255 [15:38:16]MH_Cut [15:38:16]Write to MH i2c: D1 01 00 9D 4D 01 BC [15:38:16]Write i2c OK [15:38:16]MH_I2C_Read... [15:38:16]Read from MH i2c: D1 [15:38:16]MH_I2C_Read... [15:38:16]Read from MH i2c: D1 01 00 [15:38:16]MH_I2C_Read... [15:38:16]Read from MH i2c: D1 01 00 9D 4D 00 BB [15:38:16]Write to MH i2c: 01 00 00 9E 4D EB [15:38:16]Write i2c OK [15:38:16]MH_I2C_Read... [15:38:17]OFD Sender: No OFD packet to send [15:38:17]*** Cut start [15:38:17]*** Partial cut [15:38:17]*** CUTSNS_PIN = 1 [15:38:17]*** CUTSNS_PIN = 0 [15:38:18]*** Brake cut motor [15:38:18]Read from MH i2c: 01 [15:38:18]MH_I2C_Read... [15:38:18]*** Stop cut motor [15:38:18]*** Cut end [15:38:18]Read from MH i2c: 01 07 00 [15:38:18]MH_I2C_Read... [15:38:18]Read from MH i2c: 01 07 00 9E 4D 00 00 00 00 00 FF 0F 00 [15:38:18]process_action close_receipt done [15:38:18]requested_data is exist [15:38:18]produce_requested_data [15:38:18]requested_item fm.sn is exist - process it [15:38:18]wFMCommunicate request_size=4 [15:38:18]MH_SAM_APDU [15:38:18]CAPDU: 80 11 00 00 [15:38:18]Write to MH i2c: E2 08 00 9F 4D 80 11 00 00 00 00 00 00 66 [15:38:18]Write i2c OK [15:38:18]MH_I2C_Read... [15:38:18]Read from MH i2c: E2 [15:38:18]MH_I2C_Read... [15:38:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:18]Read from MH i2c: E2 17 00 [15:38:18]MH_I2C_Read... [15:38:18]Read from MH i2c: E2 17 00 9F 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BD [15:38:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:38:18]wFMCommunicate OK [15:38:18]requested_item fd.num is exist - process it [15:38:18]SAM_PROTO_GetFieldsCounters [15:38:18]wFMCommunicate request_size=4 [15:38:18]MH_SAM_APDU [15:38:18]CAPDU: 80 13 00 00 [15:38:18]Write to MH i2c: E2 08 00 A0 4D 80 13 00 00 00 00 00 00 69 [15:38:18]Write i2c OK [15:38:18]MH_I2C_Read... [15:38:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:38:18]Read from MH i2c: E2 [15:38:18]MH_I2C_Read... [15:38:18]Read from MH i2c: E2 62 00 [15:38:18]MH_I2C_Read... [15:38:18]Read from MH i2c: E2 62 00 A0 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C7 7B 03 00 0E 04 04 00 17 02 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 FC [15:38:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C7 7B 03 00 0E 04 04 00 17 02 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 [15:38:18]wFMCommunicate OK [15:38:18]SAM_PROTO_GetFieldsCounters done [15:38:18]requested_item shift.num is exist - process it [15:38:18]requested_item shift.opened is exist - process it [15:38:18]req_shift_opened [15:38:18]FM_GetShiftState [15:38:18]SAM_PROTO_GetShiftState [15:38:18]wFMCommunicate request_size=4 [15:38:18]MH_SAM_APDU [15:38:18]CAPDU: 80 13 01 00 [15:38:18]Write to MH i2c: E2 08 00 A1 4D 80 13 01 00 00 00 00 00 6B [15:38:18]Write i2c OK [15:38:18]MH_I2C_Read... [15:38:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:18]Read from MH i2c: E2 [15:38:18]MH_I2C_Read... [15:38:18]Read from MH i2c: E2 0E 00 [15:38:18]MH_I2C_Read... [15:38:18]Read from MH i2c: E2 0E 00 A1 4D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 32 [15:38:18]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:38:18]wFMCommunicate OK [15:38:18]SAM_PROTO_GetShiftState done [15:38:18]FM_GetShiftState done [15:38:18]req_shift_opened done [15:38:18]requested_item shift.open_date is exist - process it [15:38:18]req_shift_open_date [15:38:18]req_shift_open_date done [15:38:18]produce_requested_data done [15:38:18]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228295,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:38:18]process_action_free close_receipt [15:38:18]json_value_free [15:38:18]json_value_free done [15:38:18]process_json_proto returns [15:38:18]Send response to host [15:38:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228295,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:38:18]free response buf [15:38:18]execute_script done [15:38:18]execute_script returns [15:38:18]free content buf [15:38:18]Sock 9.Close socket [15:38:18]Sock 9.Thread stoped [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:46]accept exits with 7 [15:38:46]New connection [15:38:46]New thread 3067137380 created [15:38:46]Thread 3066994020 joined [15:38:46]Waiting for new connection... [15:38:46] Sock 7.Parse request [15:38:46]Sock 7.Check first char [15:38:46]Sock 7.First char is OK [15:38:46]request: POST /json_proto HTTP/1.0 [15:38:46]Method: POST [15:38:46]URL: /json_proto [15:38:46]Method is POST - this is cgi request [15:38:46]url: /json_proto [15:38:46]query_string will be loaded in cgi processing [15:38:46]execute_cgi json_proto POST (null) [15:38:46]execute_cgi path=json_proto method=POST [15:38:46]POST find Content-Length [15:38:46]Host: 172.17.44.195:8080 [15:38:46]Content-Length: 683 [15:38:46]Content-Type: application/json [15:38:46] [15:38:46]POST finish read [15:38:46]Found Content-Length = 683 [15:38:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:46]execute_script... [15:38: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)1964775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:46]POST & json_proto [15:38:46]process_json_proto [15:38:46]json parsed OK: [15:38:46]protocol is kg_v1.0 [15:38:46]action value=close_receipt [15:38:46]process_action close_receipt [15:38:46]cmd_close_receipt [15:38:46]MH_GetDate [15:38:46]Write to MH i2c: F0 00 00 A2 4D DE [15:38:46]Write i2c OK [15:38:46]MH_I2C_Read... [15:38:46]Read from MH i2c: F0 [15:38:46]MH_I2C_Read... [15:38:46]Read from MH i2c: F0 09 00 [15:38:46]MH_I2C_Read... [15:38:46]Read from MH i2c: F0 09 00 A2 4D 00 0A C7 17 67 82 C9 CF 66 B6 [15:38:46]GetLastDocTimeStamp 1729611499 [15:38:46]current date 1729611530 [15:38:46]FM_GetShiftState [15:38:46]SAM_PROTO_GetShiftState [15:38:46]wFMCommunicate request_size=4 [15:38:46]MH_SAM_APDU [15:38:46]CAPDU: 80 13 01 00 [15:38:46]Write to MH i2c: E2 08 00 A3 4D 80 13 01 00 00 00 00 00 6D [15:38:46]Write i2c OK [15:38:46]MH_I2C_Read... [15:38:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:46]Read from MH i2c: E2 [15:38:46]MH_I2C_Read... [15:38:46]Read from MH i2c: E2 0E 00 [15:38:46]MH_I2C_Read... [15:38:46]Read from MH i2c: E2 0E 00 A3 4D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 34 [15:38:46]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:38:46]wFMCommunicate OK [15:38:46]SAM_PROTO_GetShiftState done [15:38:46]FM_GetShiftState done [15:38:46]opened in 1729555538 [15:38:46]opened+sec_in_day 1729641938 [15:38:46]quantity*price = 150032 [15:38:46]sum+1 = 150033 [15:38:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 260 22.10.2024 15:38 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228296 ФПД: 26491223985835 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153851&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228296&fm=26491223985835&tin=02508201610067®Number=0000000000091685&sum=150000 [15:38:47]StoreToDocumentArchive [15:38:47]shift 535 fd 228296 [15:38:47]save to /storage/0535/doc_00228296 [15:38:47]save last doc name /storage/0535/doc_00228296 to /storage/kkm_last_doc_name [15:38:47]save OK [15:38:47]Clear old archive folders... [15:38:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:38:47]tlvbuf is 0085B9D0 [15:38:47]SAM_PROTO_ClearQueue [15:38:47]wFMCommunicate request_size=4 [15:38:47]MH_SAM_APDU [15:38:47]CAPDU: 80 09 00 00 [15:38:47]Write to MH i2c: E2 08 00 B0 4D 80 09 00 00 00 00 00 00 6F [15:38:47]Write i2c OK [15:38:47]MH_I2C_Read... [15:38:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:38:47]Read from MH i2c: E2 [15:38:47]MH_I2C_Read... [15:38:47]Read from MH i2c: E2 03 00 [15:38:47]MH_I2C_Read... [15:38:47]Read from MH i2c: E2 03 00 B0 4D 00 90 00 71 [15:38:47]RAPDU: 90 00 [15:38:47]wFMCommunicate OK [15:38:47]SAM_PROTO_ClearQueue done [15:38:47]KKMCreateOFDPacket [15:38:47]OFDProtocolAddRootSTLVToBuf [15:38:47]FM_MakeSignedData [15:38:47]FM_MakeSignedData [15:38:47]SAM_PROTO_SignData [15:38:47]wFMCommunicate request_size=4 [15:38:47]MH_SAM_APDU [15:38:47]CAPDU: 80 0D 01 02 [15:38:47]Write to MH i2c: E2 08 00 B1 4D 80 0D 01 02 00 00 00 00 77 [15:38:47]Write i2c OK [15:38:47]MH_I2C_Read... [15:38:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:38:47]Read from MH i2c: E2 [15:38:47]MH_I2C_Read... [15:38:47]Read from MH i2c: E2 03 00 [15:38:47]MH_I2C_Read... [15:38:47]Read from MH i2c: E2 03 00 B1 4D 00 90 00 72 [15:38:47]RAPDU: 90 00 [15:38:47]wFMCommunicate OK [15:38:47]wFMCommunicate request_size=255 [15:38:47]MH_SAM_APDU [15:38: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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 3D 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 04 01 00 00 F4 03 04 00 0B C7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C8 7B 03 00 35 04 06 00 18 [15:38:47]Write to MH i2c: E2 02 01 B2 4D 80 0D 02 02 FA 00 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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 3D 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 04 01 00 00 F4 03 04 00 0B C7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C8 7B 03 00 35 04 06 00 18 00 00 3D [15:38:47]Write i2c OK [15:38:47]MH_I2C_Read... [15:38:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:47]Read from MH i2c: E2 [15:38:47]MH_I2C_Read... [15:38:47]Read from MH i2c: E2 03 00 [15:38:47]MH_I2C_Read... [15:38:47]Read from MH i2c: E2 03 00 B2 4D 00 90 00 73 [15:38:47]RAPDU: 90 00 [15:38:47]wFMCommunicate OK [15:38:47]wFMCommunicate request_size=10 [15:38:47]MH_SAM_APDU [15:38:47]CAPDU: 80 0D 02 02 05 17 F7 FE CE AB [15:38:47]Write to MH i2c: E2 0D 00 B3 4D 80 0D 02 02 05 00 17 F7 FE CE AB 00 00 09 [15:38:47]Write i2c OK [15:38:47]MH_I2C_Read... [15:38:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:47]Read from MH i2c: E2 [15:38:47]MH_I2C_Read... [15:38:47]Read from MH i2c: E2 03 00 [15:38:47]MH_I2C_Read... [15:38:47]Read from MH i2c: E2 03 00 B3 4D 00 90 00 74 [15:38:47]RAPDU: 90 00 [15:38:47]wFMCommunicate OK [15:38:47]wFMCommunicate request_size=4 [15:38:47]MH_SAM_APDU [15:38:47]CAPDU: 80 0D 03 02 [15:38:47]Write to MH i2c: E2 08 00 B4 4D 80 0D 03 02 00 00 00 00 7C [15:38:47]Write i2c OK [15:38:47]MH_I2C_Read... [15:38:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:38:47]Read from MH i2c: E2 [15:38:47]MH_I2C_Read... [15:38:47]Read from MH i2c: E2 0B 00 [15:38:47]MH_I2C_Read... [15:38:47]Read from MH i2c: E2 0B 00 B4 4D 00 DE 44 78 95 C0 20 7B 4B 90 00 52 [15:38:47]RAPDU: DE 44 78 95 C0 20 7B 4B 90 00 [15:38:47]wFMCommunicate OK [15:38:47]SAM_PROTO_SignData done [15:38:47]FM_MakeSignedData done [15:38:47]CreateOFDProtocolMessage [15:38:47]wFMCommunicate request_size=4 [15:38:47]MH_SAM_APDU [15:38:47]CAPDU: 80 11 00 00 [15:38:47]Write to MH i2c: E2 08 00 B5 4D 80 11 00 00 00 00 00 00 7C [15:38:47]Write i2c OK [15:38:47]MH_I2C_Read... [15:38:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:47]Read from MH i2c: E2 [15:38:47]MH_I2C_Read... [15:38:47]Read from MH i2c: E2 17 00 [15:38:47]MH_I2C_Read... [15:38:47]Read from MH i2c: E2 17 00 B5 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D3 [15:38:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:38:48]wFMCommunicate OK [15:38:48]CreateOFDProtocolMessage done [15:38:48]OFDSenderStorePacket 228296 [15:38:48]StoreOFDPacket docnum=228296 [15:38:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A8 85 07 01 78 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 3D 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 04 01 00 00 F4 03 04 00 0B C7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C8 7B 03 00 35 04 06 00 18 17 F7 FE CE AB DE 44 78 95 C0 20 7B 4B [15:38:48]CheckFolder [15:38:48]dirname=/storage/ofd_packets [15:38:48]CheckFolder done [15:38:48]ProducePacketName [15:38:48]name=ofd_packets/00228296 [15:38:48]NVStorageSaveData ofd_packets/00228296 [15:38:48]File name is /storage/ofd_packets/00228296 [15:38:48]Write 301 bytes [15:38:48]NVStorageSaveData done [15:38:48]OFDSenderStorePacket done [15:38:48]KKMCreateOFDPacket done [15:38:48]NVStorageSaveData kkm_last_timestamp [15:38:48]File name is /storage/kkm_last_timestamp [15:38:48]Write 4 bytes [15:38:48]NVStorageSaveData done [15:38:48]ExternCall_PrintAddStr [15:38:48]wPrintStart [15:38:48]Write to MH i2c: 01 00 00 B6 4D 03 [15:38:48]Write i2c OK [15:38:48]MH_I2C_Read... [15:38:48]Read from MH i2c: 01 [15:38:48]MH_I2C_Read... [15:38:48]Read from MH i2c: 01 07 00 [15:38:48]MH_I2C_Read... [15:38:48]Read from MH i2c: 01 07 00 B6 4D 00 00 00 00 00 FF 0F 18 [15:38:48]RasterBufferAndPrint [15:38:48]line Счет N : (1)1964775 [15:38:48]line ИНН: 02508201610067 [15:38:48]line Контрольно-Кассовый Чек [15:38:48]line ПРОДАЖА [15:38:48]line ТРК (МРК, ГНК) : 64 [15:38:48]line Товар: 2710124500 [15:38:48]line Аи-95-К-5 [15:38:48]line 20.220 * 74.20 [15:38:48]line = 1500.32 [15:38:48]line НДС 12% НСП 1% [15:38:48]line > о реализуемом товаре [15:38:48]line ОКРУГЛЕНИЕ: -0.32 [15:38:48]line ИТОГО: 1500.00 [15:38:48]line Внесено: 1500.00 [15:38:48]line СДАЧА: 0.00 [15:38:48]line НСП 1% : 13.28 [15:38:48]line НДС 12% : 159.33 [15:38:48]line Наличными: 1500.00 [15:38:48]line Безнал.: 0.00 [15:38:48]line Место: АЗС № 133 "Партнер Нефть" [15:38:48]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:38:48]line СНО: Общий режим [15:38:48]line Чек 260 22.10.2024 15:38 [15:38:48]line Смена: 535 ФФД: 1.0 [15:38:48]line ЗНМ: 0300000091 [15:38:48]line РНМ: 0000000000091685 [15:38:48]line Версия ККМ: 001 [15:38:48]line ФМ: 0000000000871839 [15:38:48]line ФД: 228296 [15:38:48]line ФПД: 26491223985835 [15:38:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153851&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228296&fm=26491223985835&tin=02508201610067®Number=0000000000091685&sum=150000 [15:38:48]written 0, free lines is 4095 [15:38:48]OFD Sender: Processing packet 228296 [packets to send 38, broken 37] [15:38:48]ProducePacketName [15:38:48]name=ofd_packets/00228296 [15:38:48]OFD Sender: To server: pG, [15:38:48]CommunicateWithHost lk.salyk.kg:30040 [15:38:48]ConnectInit lk.salyk.kg [15:38:48]Connected sock=10 [15:38:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A8 85 07 01 78 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 3D 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 04 01 00 00 F4 03 04 00 0B C7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C8 7B 03 00 35 04 06 00 18 17 F7 FE CE AB DE 44 78 95 C0 20 7B 4B [15:38:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 63 4D 47 00 CA 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C8 7B 03 00 F4 03 04 00 02 72 17 67 B6 04 01 00 00 47 62 FB 09 3B 63 A9 1A [15:38:48]CommunicateWithHost err = 0 [15:38:48]CheckOFDResponse [15:38:48]1017 (14) - 77093643461234 [15:38:48]1041 (16) - 0000000000871839 [15:38:48]1040 (4) - 228296 [15:38:48]1012 (4) - 22.10.2024 09:36 [15:38:48]1206 (1) - 0 [15:38:48]OFD Sender: Remove packet 228296 [15:38:48]ProducePacketName [15:38:48]name=ofd_packets/00228296 [15:38:48]NVStorageDeleteData [15:38:48]Write to MH i2c: 01 00 00 E0 4D 2D [15:38:48]Write i2c OK [15:38:48]MH_I2C_Read... [15:38:48]Read from MH i2c: 01 [15:38:48]MH_I2C_Read... [15:38:48]Read from MH i2c: 01 07 00 [15:38:48]MH_I2C_Read... [15:38:48]Read from MH i2c: 01 07 00 E0 4D 00 00 00 00 00 BF 0C FF [15:38:48]RasterBufferAndPrint [15:38:48]line [15:38:48]line [15:38:48]line [15:38:48]line [15:38:48]line [15:38:48]written 0, free lines is 3269 [15:38:48]MH_Cut [15:38:48]Write to MH i2c: D1 01 00 E7 4D 01 06 [15:38:48]Write i2c OK [15:38:48]MH_I2C_Read... [15:38:48]Read from MH i2c: D1 [15:38:48]MH_I2C_Read... [15:38:48]Read from MH i2c: D1 01 00 [15:38:48]MH_I2C_Read... [15:38:48]Read from MH i2c: D1 01 00 E7 4D 00 05 [15:38:48]Write to MH i2c: 01 00 00 E8 4D 35 [15:38:48]Write i2c OK [15:38:48]MH_I2C_Read... [15:38:48]OFD Sender: No OFD packet to send [15:38:49]*** Cut start [15:38:49]*** Partial cut [15:38:49]*** CUTSNS_PIN = 1 [15:38:49]*** CUTSNS_PIN = 0 [15:38:49]*** Brake cut motor [15:38:49]Read from MH i2c: 01 [15:38:49]MH_I2C_Read... [15:38:49]*** Stop cut motor [15:38:49]*** Cut end [15:38:49]Read from MH i2c: 01 07 00 [15:38:49]MH_I2C_Read... [15:38:49]Read from MH i2c: 01 07 00 E8 4D 00 00 00 00 00 FF 0F 4A [15:38:49]process_action close_receipt done [15:38:49]requested_data is exist [15:38:49]produce_requested_data [15:38:49]requested_item fm.sn is exist - process it [15:38:49]wFMCommunicate request_size=4 [15:38:49]MH_SAM_APDU [15:38:49]CAPDU: 80 11 00 00 [15:38:49]Write to MH i2c: E2 08 00 E9 4D 80 11 00 00 00 00 00 00 B0 [15:38:49]Write i2c OK [15:38:49]MH_I2C_Read... [15:38:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:50]Read from MH i2c: E2 [15:38:50]MH_I2C_Read... [15:38:50]Read from MH i2c: E2 17 00 [15:38:50]MH_I2C_Read... [15:38:50]Read from MH i2c: E2 17 00 E9 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 07 [15:38:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:38:50]wFMCommunicate OK [15:38:50]requested_item fd.num is exist - process it [15:38:50]SAM_PROTO_GetFieldsCounters [15:38:50]wFMCommunicate request_size=4 [15:38:50]MH_SAM_APDU [15:38:50]CAPDU: 80 13 00 00 [15:38:50]Write to MH i2c: E2 08 00 EA 4D 80 13 00 00 00 00 00 00 B3 [15:38:50]Write i2c OK [15:38:50]MH_I2C_Read... [15:38:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:38:50]Read from MH i2c: E2 [15:38:50]MH_I2C_Read... [15:38:50]Read from MH i2c: E2 62 00 [15:38:50]MH_I2C_Read... [15:38:50]Read from MH i2c: E2 62 00 EA 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C8 7B 03 00 0E 04 04 00 17 02 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 4A [15:38:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C8 7B 03 00 0E 04 04 00 17 02 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 [15:38:50]wFMCommunicate OK [15:38:50]SAM_PROTO_GetFieldsCounters done [15:38:50]requested_item shift.num is exist - process it [15:38:50]requested_item shift.opened is exist - process it [15:38:50]req_shift_opened [15:38:50]FM_GetShiftState [15:38:50]SAM_PROTO_GetShiftState [15:38:50]wFMCommunicate request_size=4 [15:38:50]MH_SAM_APDU [15:38:50]CAPDU: 80 13 01 00 [15:38:50]Write to MH i2c: E2 08 00 EB 4D 80 13 01 00 00 00 00 00 B5 [15:38:50]Write i2c OK [15:38:50]MH_I2C_Read... [15:38:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:50]Read from MH i2c: E2 [15:38:50]MH_I2C_Read... [15:38:50]Read from MH i2c: E2 0E 00 [15:38:50]MH_I2C_Read... [15:38:50]Read from MH i2c: E2 0E 00 EB 4D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 7C [15:38:50]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:38:50]wFMCommunicate OK [15:38:50]SAM_PROTO_GetShiftState done [15:38:50]FM_GetShiftState done [15:38:50]req_shift_opened done [15:38:50]requested_item shift.open_date is exist - process it [15:38:50]req_shift_open_date [15:38:50]req_shift_open_date done [15:38:50]produce_requested_data done [15:38:50]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228296,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:38:50]process_action_free close_receipt [15:38:50]json_value_free [15:38:50]json_value_free done [15:38:50]process_json_proto returns [15:38:50]Send response to host [15:38:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228296,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:38:50]free response buf [15:38:50]execute_script done [15:38:50]execute_script returns [15:38:50]free content buf [15:38:50]Sock 7.Close socket [15:38:50]Sock 7.Thread stoped [15:38:50]accept exits with 9 [15:38:50]New connection [15:38:50]New thread 3066994020 created [15:38:50]Thread 3067137380 joined [15:38:50]Waiting for new connection... [15:38:50] Sock 9.Parse request [15:38:50]Sock 9.Check first char [15:38:50]Sock 9.First char is OK [15:38:50]request: POST /json_proto HTTP/1.0 [15:38:50]Method: POST [15:38:50]URL: /json_proto [15:38:50]Method is POST - this is cgi request [15:38:50]url: /json_proto [15:38:50]query_string will be loaded in cgi processing [15:38:50]execute_cgi json_proto POST (null) [15:38:50]execute_cgi path=json_proto method=POST [15:38:50]POST find Content-Length [15:38:50]Host: 172.17.44.195:8080 [15:38:50]Content-Length: 675 [15:38:50]Content-Type: application/json [15:38:50] [15:38:50]POST finish read [15:38:50]Found Content-Length = 675 [15:38:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964776", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:38:50]execute_script... [15:38: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)1964776", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:38:50]POST & json_proto [15:38:50]process_json_proto [15:38:50]json parsed OK: [15:38:50]protocol is kg_v1.0 [15:38:50]action value=close_receipt [15:38:50]process_action close_receipt [15:38:50]cmd_close_receipt [15:38:50]MH_GetDate [15:38:50]Write to MH i2c: F0 00 00 EC 4D 28 [15:38:50]Write i2c OK [15:38:50]MH_I2C_Read... [15:38:50]Read from MH i2c: F0 [15:38:50]MH_I2C_Read... [15:38:50]Read from MH i2c: F0 09 00 [15:38:50]MH_I2C_Read... [15:38:50]Read from MH i2c: F0 09 00 EC 4D 00 0F C7 17 67 82 C9 CF 66 05 [15:38:50]GetLastDocTimeStamp 1729611531 [15:38:50]current date 1729611535 [15:38:50]FM_GetShiftState [15:38:50]SAM_PROTO_GetShiftState [15:38:50]wFMCommunicate request_size=4 [15:38:50]MH_SAM_APDU [15:38:50]CAPDU: 80 13 01 00 [15:38:50]Write to MH i2c: E2 08 00 ED 4D 80 13 01 00 00 00 00 00 B7 [15:38:50]Write i2c OK [15:38:50]MH_I2C_Read... [15:38:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:50]Read from MH i2c: E2 [15:38:50]MH_I2C_Read... [15:38:50]Read from MH i2c: E2 0E 00 [15:38:50]MH_I2C_Read... [15:38:50]Read from MH i2c: E2 0E 00 ED 4D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 7E [15:38:50]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:38:50]wFMCommunicate OK [15:38:50]SAM_PROTO_GetShiftState done [15:38:50]FM_GetShiftState done [15:38:50]opened in 1729555538 [15:38:50]opened+sec_in_day 1729641938 [15:38:50]quantity*price = 50063 [15:38:50]sum+1 = 50064 [15:38:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 261 22.10.2024 15:38 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228297 ФПД: 258286800725761 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153855&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228297&fm=258286800725761&tin=02508201610067®Number=0000000000091685&sum=50000 [15:38:51]StoreToDocumentArchive [15:38:51]shift 535 fd 228297 [15:38:51]save to /storage/0535/doc_00228297 [15:38:51]save last doc name /storage/0535/doc_00228297 to /storage/kkm_last_doc_name [15:38:51]save OK [15:38:51]Clear old archive folders... [15:38:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:38:51]tlvbuf is 009B7590 [15:38:51]SAM_PROTO_ClearQueue [15:38:51]wFMCommunicate request_size=4 [15:38:51]MH_SAM_APDU [15:38:51]CAPDU: 80 09 00 00 [15:38:51]Write to MH i2c: E2 08 00 FA 4D 80 09 00 00 00 00 00 00 B9 [15:38:51]Write i2c OK [15:38:51]MH_I2C_Read... [15:38:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:38:51]Read from MH i2c: E2 [15:38:51]MH_I2C_Read... [15:38:51]Read from MH i2c: E2 03 00 [15:38:51]MH_I2C_Read... [15:38:51]Read from MH i2c: E2 03 00 FA 4D 00 90 00 BB [15:38:51]RAPDU: 90 00 [15:38:51]wFMCommunicate OK [15:38:51]SAM_PROTO_ClearQueue done [15:38:51]KKMCreateOFDPacket [15:38:51]OFDProtocolAddRootSTLVToBuf [15:38:51]FM_MakeSignedData [15:38:51]FM_MakeSignedData [15:38:51]SAM_PROTO_SignData [15:38:51]wFMCommunicate request_size=4 [15:38:51]MH_SAM_APDU [15:38:51]CAPDU: 80 0D 01 02 [15:38:51]Write to MH i2c: E2 08 00 FB 4D 80 0D 01 02 00 00 00 00 C1 [15:38:51]Write i2c OK [15:38:51]MH_I2C_Read... [15:38:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:38:51]Read from MH i2c: E2 [15:38:51]MH_I2C_Read... [15:38:51]Read from MH i2c: E2 03 00 [15:38:51]MH_I2C_Read... [15:38:51]Read from MH i2c: E2 03 00 FB 4D 00 90 00 BC [15:38:51]RAPDU: 90 00 [15:38:51]wFMCommunicate OK [15:38:51]wFMCommunicate request_size=255 [15:38:51]MH_SAM_APDU [15:38:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 0F C7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C9 7B 03 00 35 04 06 00 EA E9 15 01 [15:38:51]Write to MH i2c: E2 02 01 FC 4D 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 0F C7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C9 7B 03 00 35 04 06 00 EA E9 15 01 00 00 79 [15:38:51]Write i2c OK [15:38:51]MH_I2C_Read... [15:38:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:52]Read from MH i2c: E2 [15:38:52]MH_I2C_Read... [15:38:52]Read from MH i2c: E2 03 00 [15:38:52]MH_I2C_Read... [15:38:52]Read from MH i2c: E2 03 00 FC 4D 00 90 00 BD [15:38:52]RAPDU: 90 00 [15:38:52]wFMCommunicate OK [15:38:52]wFMCommunicate request_size=7 [15:38:52]MH_SAM_APDU [15:38:52]CAPDU: 80 0D 02 02 02 E7 01 [15:38:52]Write to MH i2c: E2 0A 00 FD 4D 80 0D 02 02 02 00 E7 01 00 00 B0 [15:38:52]Write i2c OK [15:38:52]MH_I2C_Read... [15:38:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:52]Read from MH i2c: E2 [15:38:52]MH_I2C_Read... [15:38:52]Read from MH i2c: E2 03 00 [15:38:52]MH_I2C_Read... [15:38:52]Read from MH i2c: E2 03 00 FD 4D 00 90 00 BE [15:38:52]RAPDU: 90 00 [15:38:52]wFMCommunicate OK [15:38:52]wFMCommunicate request_size=4 [15:38:52]MH_SAM_APDU [15:38:52]CAPDU: 80 0D 03 02 [15:38:52]Write to MH i2c: E2 08 00 FE 4D 80 0D 03 02 00 00 00 00 C6 [15:38:52]Write i2c OK [15:38:52]MH_I2C_Read... [15:38:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:38:52]Read from MH i2c: E2 [15:38:52]MH_I2C_Read... [15:38:52]Read from MH i2c: E2 0B 00 [15:38:52]MH_I2C_Read... [15:38:52]Read from MH i2c: E2 0B 00 FE 4D 00 40 5C 55 E1 37 77 5C CD 90 00 70 [15:38:52]RAPDU: 40 5C 55 E1 37 77 5C CD 90 00 [15:38:52]wFMCommunicate OK [15:38:52]SAM_PROTO_SignData done [15:38:52]FM_MakeSignedData done [15:38:52]CreateOFDProtocolMessage [15:38:52]wFMCommunicate request_size=4 [15:38:52]MH_SAM_APDU [15:38:52]CAPDU: 80 11 00 00 [15:38:52]Write to MH i2c: E2 08 00 FF 4D 80 11 00 00 00 00 00 00 C6 [15:38:52]Write i2c OK [15:38:52]MH_I2C_Read... [15:38:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:52]Read from MH i2c: E2 [15:38:52]MH_I2C_Read... [15:38:52]Read from MH i2c: E2 17 00 [15:38:52]MH_I2C_Read... [15:38:52]Read from MH i2c: E2 17 00 FF 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1D [15:38:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:38:52]wFMCommunicate OK [15:38:52]CreateOFDProtocolMessage done [15:38:52]OFDSenderStorePacket 228297 [15:38:52]StoreOFDPacket docnum=228297 [15:38:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 B9 0E 04 01 41 DF 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 0F C7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C9 7B 03 00 35 04 06 00 EA E9 15 01 E7 01 40 5C 55 E1 37 77 5C CD [15:38:52]CheckFolder [15:38:52]dirname=/storage/ofd_packets [15:38:52]CheckFolder done [15:38:52]ProducePacketName [15:38:52]name=ofd_packets/00228297 [15:38:52]NVStorageSaveData ofd_packets/00228297 [15:38:52]File name is /storage/ofd_packets/00228297 [15:38:52]Write 298 bytes [15:38:52]NVStorageSaveData done [15:38:52]OFDSenderStorePacket done [15:38:52]KKMCreateOFDPacket done [15:38:52]NVStorageSaveData kkm_last_timestamp [15:38:52]File name is /storage/kkm_last_timestamp [15:38:52]Write 4 bytes [15:38:52]NVStorageSaveData done [15:38:52]ExternCall_PrintAddStr [15:38:52]wPrintStart [15:38:52]Write to MH i2c: 01 00 00 00 4E 4E [15:38:52]Write i2c OK [15:38:52]MH_I2C_Read... [15:38:52]Read from MH i2c: 01 [15:38:52]MH_I2C_Read... [15:38:52]Read from MH i2c: 01 07 00 [15:38:52]MH_I2C_Read... [15:38:52]Read from MH i2c: 01 07 00 00 4E 00 00 00 00 00 FF 0F 63 [15:38:52]RasterBufferAndPrint [15:38:52]line Счет N : (1)1964776 [15:38:52]line ИНН: 02508201610067 [15:38:52]line Контрольно-Кассовый Чек [15:38:52]line ПРОДАЖА [15:38:52]line ТРК (МРК, ГНК) : 11 [15:38:52]line Товар: 2710194210 [15:38:52]line ДТ-К-5 [15:38:52]line 6.570 * 76.20 [15:38:52]line = 500.63 [15:38:52]line НДС 12% НСП 1% [15:38:52]line > о реализуемом товаре [15:38:52]line ОКРУГЛЕНИЕ: -0.63 [15:38:52]line ИТОГО: 500.00 [15:38:52]line Внесено: 500.00 [15:38:52]line СДАЧА: 0.00 [15:38:52]line НСП 1% : 4.43 [15:38:52]line НДС 12% : 53.16 [15:38:52]line Наличными: 500.00 [15:38:52]line Безнал.: 0.00 [15:38:52]line Место: АЗС № 133 "Партнер Нефть" [15:38:52]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:38:52]line СНО: Общий режим [15:38:52]line Чек 261 22.10.2024 15:38 [15:38:52]line Смена: 535 ФФД: 1.0 [15:38:52]line ЗНМ: 0300000091 [15:38:52]line РНМ: 0000000000091685 [15:38:52]line Версия ККМ: 001 [15:38:52]line ФМ: 0000000000871839 [15:38:52]line ФД: 228297 [15:38:53]line ФПД: 258286800725761 [15:38:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153855&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228297&fm=258286800725761&tin=02508201610067®Number=0000000000091685&sum=50000 [15:38:53]OFD Sender: Processing packet 228297 [packets to send 38, broken 37] [15:38:53]ProducePacketName [15:38:53]name=ofd_packets/00228297 [15:38:53]written 0, free lines is 4095 [15:38:53]OFD Sender: To server: pG, [15:38:53]CommunicateWithHost lk.salyk.kg:30040 [15:38:53]ConnectInit lk.salyk.kg [15:38:53]Connected sock=10 [15:38:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 B9 0E 04 01 41 DF 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 0F C7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C9 7B 03 00 35 04 06 00 EA E9 15 01 E7 01 40 5C 55 E1 37 77 5C CD [15:38:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 AA 84 47 00 58 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C9 7B 03 00 F4 03 04 00 07 72 17 67 B6 04 01 00 00 D5 2A D5 1E BF 10 F6 DD [15:38:53]CommunicateWithHost err = 0 [15:38:53]CheckOFDResponse [15:38:53]1017 (14) - 77093643461234 [15:38:53]1041 (16) - 0000000000871839 [15:38:53]1040 (4) - 228297 [15:38:53]1012 (4) - 22.10.2024 09:36 [15:38:53]1206 (1) - 0 [15:38:53]OFD Sender: Remove packet 228297 [15:38:53]ProducePacketName [15:38:53]name=ofd_packets/00228297 [15:38:53]NVStorageDeleteData [15:38:53]Write to MH i2c: 01 00 00 2A 4E 78 [15:38:53]Write i2c OK [15:38:53]MH_I2C_Read... [15:38:53]Read from MH i2c: 01 [15:38:53]MH_I2C_Read... [15:38:53]Read from MH i2c: 01 07 00 [15:38:53]MH_I2C_Read... [15:38:53]Read from MH i2c: 01 07 00 2A 4E 00 00 00 00 00 C9 0C 54 [15:38:53]RasterBufferAndPrint [15:38:53]line [15:38:53]line [15:38:53]line [15:38:53]line [15:38:53]line [15:38:53]written 0, free lines is 3287 [15:38:53]MH_Cut [15:38:53]Write to MH i2c: D1 01 00 31 4E 01 51 [15:38:53]Write i2c OK [15:38:53]MH_I2C_Read... [15:38:53]Read from MH i2c: D1 [15:38:53]MH_I2C_Read... [15:38:53]Read from MH i2c: D1 01 00 [15:38:53]MH_I2C_Read... [15:38:53]Read from MH i2c: D1 01 00 31 4E 00 50 [15:38:53]Write to MH i2c: 01 00 00 32 4E 80 [15:38:53]Write i2c OK [15:38:53]MH_I2C_Read... [15:38:53]OFD Sender: No OFD packet to send [15:38:54]*** Cut start [15:38:54]*** Partial cut [15:38:54]*** CUTSNS_PIN = 1 [15:38:54]*** CUTSNS_PIN = 0 [15:38:54]*** Brake cut motor [15:38:54]Read from MH i2c: 01 *** Stop cut motor [15:38:54] [15:38:54]*** Cut end [15:38:54]MH_I2C_Read... [15:38:54]Read from MH i2c: 01 07 00 [15:38:54]MH_I2C_Read... [15:38:54]Read from MH i2c: 01 07 00 32 4E 00 00 00 00 00 FF 0F 95 [15:38:54]process_action close_receipt done [15:38:54]requested_data is exist [15:38:54]produce_requested_data [15:38:54]requested_item fm.sn is exist - process it [15:38:54]wFMCommunicate request_size=4 [15:38:54]MH_SAM_APDU [15:38:54]CAPDU: 80 11 00 00 [15:38:54]Write to MH i2c: E2 08 00 33 4E 80 11 00 00 00 00 00 00 FB [15:38:54]Write i2c OK [15:38:54]MH_I2C_Read... [15:38:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:54]Read from MH i2c: E2 [15:38:54]MH_I2C_Read... [15:38:54]Read from MH i2c: E2 17 00 [15:38:54]MH_I2C_Read... [15:38:54]Read from MH i2c: E2 17 00 33 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 52 [15:38:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:38:54]wFMCommunicate OK [15:38:54]requested_item fd.num is exist - process it [15:38:54]SAM_PROTO_GetFieldsCounters [15:38:54]wFMCommunicate request_size=4 [15:38:54]MH_SAM_APDU [15:38:54]CAPDU: 80 13 00 00 [15:38:54]Write to MH i2c: E2 08 00 34 4E 80 13 00 00 00 00 00 00 FE [15:38:54]Write i2c OK [15:38:54]MH_I2C_Read... [15:38:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:38:55]Read from MH i2c: E2 [15:38:55]MH_I2C_Read... [15:38:55]Read from MH i2c: E2 62 00 [15:38:55]MH_I2C_Read... [15:38:55]Read from MH i2c: E2 62 00 34 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C9 7B 03 00 0E 04 04 00 17 02 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 99 [15:38:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C9 7B 03 00 0E 04 04 00 17 02 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 [15:38:55]wFMCommunicate OK [15:38:55]SAM_PROTO_GetFieldsCounters done [15:38:55]requested_item shift.num is exist - process it [15:38:55]requested_item shift.opened is exist - process it [15:38:55]req_shift_opened [15:38:55]FM_GetShiftState [15:38:55]SAM_PROTO_GetShiftState [15:38:55]wFMCommunicate request_size=4 [15:38:55]MH_SAM_APDU [15:38:55]CAPDU: 80 13 01 00 [15:38:55]Write to MH i2c: E2 08 00 35 4E 80 13 01 00 00 00 00 00 00 [15:38:55]Write i2c OK [15:38:55]MH_I2C_Read... [15:38:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:55]Read from MH i2c: E2 [15:38:55]MH_I2C_Read... [15:38:55]Read from MH i2c: E2 0E 00 [15:38:55]MH_I2C_Read... [15:38:55]Read from MH i2c: E2 0E 00 35 4E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 C7 [15:38:55]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:38:55]wFMCommunicate OK [15:38:55]SAM_PROTO_GetShiftState done [15:38:55]FM_GetShiftState done [15:38:55]req_shift_opened done [15:38:55]requested_item shift.open_date is exist - process it [15:38:55]req_shift_open_date [15:38:55]req_shift_open_date done [15:38:55]produce_requested_data done [15:38:55]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228297,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:38:55]process_action_free close_receipt [15:38:55]json_value_free [15:38:55]json_value_free done [15:38:55]process_json_proto returns [15:38:55]Send response to host [15:38:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228297,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:38:55]free response buf [15:38:55]execute_script done [15:38:55]execute_script returns [15:38:55]free content buf [15:38:55]Sock 9.Close socket [15:38:55]Sock 9.Thread stoped [15:38:58]OFD Sender: No OFD packet to send [15:39:03]OFD Sender: No OFD packet to send [15:39:08]OFD Sender: No OFD packet to send [15:39:13]OFD Sender: No OFD packet to send [15:39:18]OFD Sender: No OFD packet to send [15:39:23]OFD Sender: No OFD packet to send [15:39:28]OFD Sender: No OFD packet to send [15:39:33]OFD Sender: No OFD packet to send [15:39:38]OFD Sender: No OFD packet to send [15:39:43]OFD Sender: No OFD packet to send [15:39:48]OFD Sender: No OFD packet to send [15:39:53]OFD Sender: No OFD packet to send [15:39:58]OFD Sender: No OFD packet to send [15:39:59]accept exits with 7 [15:39:59]New connection [15:39:59]New thread 3067137380 created [15:39:59]Thread 3066994020 joined [15:39:59]Waiting for new connection... [15:39:59] Sock 7.Parse request [15:39:59]Sock 7.Check first char [15:39:59]Sock 7.First char is OK [15:39:59]request: POST /json_proto HTTP/1.0 [15:39:59]Method: POST [15:39:59]URL: /json_proto [15:39:59]Method is POST - this is cgi request [15:39:59]url: /json_proto [15:39:59]query_string will be loaded in cgi processing [15:39:59]execute_cgi json_proto POST (null) [15:39:59]execute_cgi path=json_proto method=POST [15:39:59]POST find Content-Length [15:39:59]Host: 172.17.44.195:8080 [15:39:59]Content-Length: 678 [15:39:59]Content-Type: application/json [15:39:59] [15:39:59]POST finish read [15:39:59]Found Content-Length = 678 [15:39:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964777", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "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" ] } } [15:39:59]execute_script... [15:39:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964777", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "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" ] } } [15:39:59]POST & json_proto [15:39:59]process_json_proto [15:39:59]json parsed OK: [15:39:59]protocol is kg_v1.0 [15:39:59]action value=close_receipt [15:39:59]process_action close_receipt [15:39:59]cmd_close_receipt [15:39:59]MH_GetDate [15:39:59]Write to MH i2c: F0 00 00 36 4E 73 [15:39:59]Write i2c OK [15:39:59]MH_I2C_Read... [15:39:59]Read from MH i2c: F0 [15:39:59]MH_I2C_Read... [15:39:59]Read from MH i2c: F0 09 00 [15:39:59]MH_I2C_Read... [15:39:59]Read from MH i2c: F0 09 00 36 4E 00 53 C7 17 67 82 C9 CF 66 94 [15:39:59]GetLastDocTimeStamp 1729611535 [15:39:59]current date 1729611603 [15:39:59]FM_GetShiftState [15:39:59]SAM_PROTO_GetShiftState [15:39:59]wFMCommunicate request_size=4 [15:39:59]MH_SAM_APDU [15:39:59]CAPDU: 80 13 01 00 [15:39:59]Write to MH i2c: E2 08 00 37 4E 80 13 01 00 00 00 00 00 02 [15:39:59]Write i2c OK [15:39:59]MH_I2C_Read... [15:39:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:59]Read from MH i2c: E2 [15:39:59]MH_I2C_Read... [15:39:59]Read from MH i2c: E2 0E 00 [15:39:59]MH_I2C_Read... [15:39:59]Read from MH i2c: E2 0E 00 37 4E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 C9 [15:39:59]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:39:59]wFMCommunicate OK [15:39:59]SAM_PROTO_GetShiftState done [15:39:59]FM_GetShiftState done [15:39:59]opened in 1729555538 [15:39:59]opened+sec_in_day 1729641938 [15:39:59]quantity*price = 30038 [15:39:59]sum+1 = 30039 [15:39:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 262 22.10.2024 15:40 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228298 ФПД: 102849336914493 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154003&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228298&fm=102849336914493&tin=02508201610067®Number=0000000000091685&sum=30000 [15:40:00]StoreToDocumentArchive [15:40:00]shift 535 fd 228298 [15:40:00]save to /storage/0535/doc_00228298 [15:40:00]save last doc name /storage/0535/doc_00228298 to /storage/kkm_last_doc_name [15:40:00]save OK [15:40:00]Clear old archive folders... [15:40:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:40:00]tlvbuf is 008D8F70 [15:40:00]SAM_PROTO_ClearQueue [15:40:00]wFMCommunicate request_size=4 [15:40:00]MH_SAM_APDU [15:40:00]CAPDU: 80 09 00 00 [15:40:00]Write to MH i2c: E2 08 00 44 4E 80 09 00 00 00 00 00 00 04 [15:40:00]Write i2c OK [15:40:00]MH_I2C_Read... [15:40:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:00]Read from MH i2c: E2 [15:40:00]MH_I2C_Read... [15:40:00]Read from MH i2c: E2 03 00 [15:40:00]MH_I2C_Read... [15:40:00]Read from MH i2c: E2 03 00 44 4E 00 90 00 06 [15:40:00]RAPDU: 90 00 [15:40:00]wFMCommunicate OK [15:40:00]SAM_PROTO_ClearQueue done [15:40:00]KKMCreateOFDPacket [15:40:00]OFDProtocolAddRootSTLVToBuf [15:40:00]FM_MakeSignedData [15:40:00]FM_MakeSignedData [15:40:00]SAM_PROTO_SignData [15:40:00]wFMCommunicate request_size=4 [15:40:00]MH_SAM_APDU [15:40:00]CAPDU: 80 0D 01 02 [15:40:00]Write to MH i2c: E2 08 00 45 4E 80 0D 01 02 00 00 00 00 0C [15:40:00]Write i2c OK [15:40:00]MH_I2C_Read... [15:40:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:00]Read from MH i2c: E2 [15:40:00]MH_I2C_Read... [15:40:00]Read from MH i2c: E2 03 00 [15:40:00]MH_I2C_Read... [15:40:00]Read from MH i2c: E2 03 00 45 4E 00 90 00 07 [15:40:00]RAPDU: 90 00 [15:40:00]wFMCommunicate OK [15:40:00]wFMCommunicate request_size=255 [15:40:00]MH_SAM_APDU [15:40: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 06 01 00 00 F4 03 04 00 53 C7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CA 7B 03 00 35 04 06 00 5D [15:40:00]Write to MH i2c: E2 02 01 46 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 11 00 00 00 00 00 37 04 06 00 22 1A 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 06 01 00 00 F4 03 04 00 53 C7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CA 7B 03 00 35 04 06 00 5D 00 00 F4 [15:40:00]Write i2c OK [15:40:00]MH_I2C_Read... [15:40:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:00]Read from MH i2c: E2 [15:40:00]MH_I2C_Read... [15:40:00]Read from MH i2c: E2 03 00 [15:40:00]MH_I2C_Read... [15:40:00]Read from MH i2c: E2 03 00 46 4E 00 90 00 08 [15:40:00]RAPDU: 90 00 [15:40:00]wFMCommunicate OK [15:40:00]wFMCommunicate request_size=10 [15:40:00]MH_SAM_APDU [15:40:00]CAPDU: 80 0D 02 02 05 8A 7A 31 32 3D [15:40:00]Write to MH i2c: E2 0D 00 47 4E 80 0D 02 02 05 00 8A 7A 31 32 3D 00 00 BD [15:40:00]Write i2c OK [15:40:00]MH_I2C_Read... [15:40:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:00]Read from MH i2c: E2 [15:40:00]MH_I2C_Read... [15:40:00]Read from MH i2c: E2 03 00 [15:40:00]MH_I2C_Read... [15:40:00]Read from MH i2c: E2 03 00 47 4E 00 90 00 09 [15:40:00]RAPDU: 90 00 [15:40:00]wFMCommunicate OK [15:40:00]wFMCommunicate request_size=4 [15:40:00]MH_SAM_APDU [15:40:00]CAPDU: 80 0D 03 02 [15:40:00]Write to MH i2c: E2 08 00 48 4E 80 0D 03 02 00 00 00 00 11 [15:40:00]Write i2c OK [15:40:00]MH_I2C_Read... [15:40:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:00]Read from MH i2c: E2 [15:40:00]MH_I2C_Read... [15:40:00]Read from MH i2c: E2 0B 00 [15:40:00]MH_I2C_Read... [15:40:00]Read from MH i2c: E2 0B 00 48 4E 00 BA 68 15 18 EF A4 85 01 90 00 7A [15:40:00]RAPDU: BA 68 15 18 EF A4 85 01 90 00 [15:40:00]wFMCommunicate OK [15:40:00]SAM_PROTO_SignData done [15:40:00]FM_MakeSignedData done [15:40:00]CreateOFDProtocolMessage [15:40:00]wFMCommunicate request_size=4 [15:40:00]MH_SAM_APDU [15:40:00]CAPDU: 80 11 00 00 [15:40:00]Write to MH i2c: E2 08 00 49 4E 80 11 00 00 00 00 00 00 11 [15:40:00]Write i2c OK [15:40:00]MH_I2C_Read... [15:40:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:00]Read from MH i2c: E2 [15:40:00]MH_I2C_Read... [15:40:00]Read from MH i2c: E2 17 00 [15:40:00]MH_I2C_Read... [15:40:00]Read from MH i2c: E2 17 00 49 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 68 [15:40:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:40:00]wFMCommunicate OK [15:40:00]CreateOFDProtocolMessage done [15:40:00]OFDSenderStorePacket 228298 [15:40:00]StoreOFDPacket docnum=228298 [15:40:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 8E 39 07 01 04 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 06 01 00 00 F4 03 04 00 53 C7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CA 7B 03 00 35 04 06 00 5D 8A 7A 31 32 3D BA 68 15 18 EF A4 85 01 [15:40:00]CheckFolder [15:40:00]dirname=/storage/ofd_packets [15:40:00]CheckFolder done [15:40:00]ProducePacketName [15:40:00]name=ofd_packets/00228298 [15:40:00]NVStorageSaveData ofd_packets/00228298 [15:40:00]File name is /storage/ofd_packets/00228298 [15:40:00]Write 301 bytes [15:40:00]NVStorageSaveData done [15:40:00]OFDSenderStorePacket done [15:40:00]KKMCreateOFDPacket done [15:40:00]NVStorageSaveData kkm_last_timestamp [15:40:00]File name is /storage/kkm_last_timestamp [15:40:00]Write 4 bytes [15:40:00]NVStorageSaveData done [15:40:00]ExternCall_PrintAddStr [15:40:00]wPrintStart [15:40:00]Write to MH i2c: 01 00 00 4A 4E 98 [15:40:00]Write i2c OK [15:40:00]MH_I2C_Read... [15:40:00]Read from MH i2c: 01 [15:40:00]MH_I2C_Read... [15:40:00]Read from MH i2c: 01 07 00 [15:40:00]MH_I2C_Read... [15:40:00]Read from MH i2c: 01 07 00 4A 4E 00 00 00 00 00 FF 0F AD [15:40:00]RasterBufferAndPrint [15:40:00]line Счет N : (1)1964777 [15:40:00]line ИНН: 02508201610067 [15:40:00]line Контрольно-Кассовый Чек [15:40:00]line ПРОДАЖА [15:40:00]line ТРК (МРК, ГНК) : 43 [15:40:00]line Товар: 2710124130 [15:40:00]line Аи-92-К-5 [15:40:00]line 4.490 * 66.90 [15:40:00]line = 300.38 [15:40:00]line НДС 12% НСП 1% [15:40:00]line > о реализуемом товаре [15:40:00]line ОКРУГЛЕНИЕ: -0.38 [15:40:00]line ИТОГО: 300.00 [15:40:00]line Внесено: 300.00 [15:40:00]line СДАЧА: 0.00 [15:40:00]line НСП 1% : 2.66 [15:40:00]line НДС 12% : 31.90 [15:40:00]line Наличными: 300.00 [15:40:00]line Безнал.: 0.00 [15:40:00]line Место: АЗС № 133 "Партнер Нефть" [15:40:00]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:40:00]line СНО: Общий режим [15:40:00]line Чек 262 22.10.2024 15:40 [15:40:00]line Смена: 535 ФФД: 1.0 [15:40:00]line ЗНМ: 0300000091 [15:40:00]line РНМ: 0000000000091685 [15:40:00]line Версия ККМ: 001 [15:40:00]line ФМ: 0000000000871839 [15:40:00]line ФД: 228298 [15:40:00]line ФПД: 102849336914493 [15:40:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154003&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228298&fm=102849336914493&tin=02508201610067®Number=0000000000091685&sum=30000 [15:40:01]OFD Sender: Processing packet 228298 [packets to send 38, broken 37] [15:40:01]ProducePacketName [15:40:01]name=ofd_packets/00228298 [15:40:01]OFD Sender: To server: pG, [15:40:01]CommunicateWithHost lk.salyk.kg:30040 [15:40:01]ConnectInit lk.salyk.kg [15:40:01]written 0, free lines is 4095 [15:40:01]Connected sock=10 [15:40:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 8E 39 07 01 04 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 06 01 00 00 F4 03 04 00 53 C7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CA 7B 03 00 35 04 06 00 5D 8A 7A 31 32 3D BA 68 15 18 EF A4 85 01 [15:40:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 B3 07 47 00 25 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CA 7B 03 00 F4 03 04 00 4B 72 17 67 B6 04 01 00 00 FC F3 C2 5D 4F EC B5 BB [15:40:01]CommunicateWithHost err = 0 [15:40:01]CheckOFDResponse [15:40:01]1017 (14) - 77093643461234 [15:40:01]1041 (16) - 0000000000871839 [15:40:01]1040 (4) - 228298 [15:40:01]1012 (4) - 22.10.2024 09:37 [15:40:01]1206 (1) - 0 [15:40:01]OFD Sender: Remove packet 228298 [15:40:01]ProducePacketName [15:40:01]name=ofd_packets/00228298 [15:40:01]NVStorageDeleteData [15:40:01]Write to MH i2c: 01 00 00 74 4E C2 [15:40:01]Write i2c OK [15:40:01]MH_I2C_Read... [15:40:01]Read from MH i2c: 01 [15:40:01]MH_I2C_Read... [15:40:01]Read from MH i2c: 01 07 00 [15:40:01]MH_I2C_Read... [15:40:01]Read from MH i2c: 01 07 00 74 4E 00 00 00 00 00 C3 0C 98 [15:40:01]RasterBufferAndPrint [15:40:01]line [15:40:01]line [15:40:01]line [15:40:01]line [15:40:01]line [15:40:01]written 0, free lines is 3273 [15:40:01]MH_Cut [15:40:01]Write to MH i2c: D1 01 00 7B 4E 01 9B [15:40:01]Write i2c OK [15:40:01]MH_I2C_Read... [15:40:01]Read from MH i2c: D1 [15:40:01]MH_I2C_Read... [15:40:01]Read from MH i2c: D1 01 00 [15:40:01]MH_I2C_Read... [15:40:01]Read from MH i2c: D1 01 00 7B 4E 00 9A [15:40:01]Write to MH i2c: 01 00 00 7C 4E CA [15:40:01]Write i2c OK [15:40:01]MH_I2C_Read... [15:40:02]OFD Sender: No OFD packet to send [15:40:02]*** Cut start [15:40:02]*** Partial cut [15:40:02]*** CUTSNS_PIN = 1 [15:40:02]*** CUTSNS_PIN = 0 [15:40:02]*** Brake cut motor [15:40:03]Read from MH i2c: 01 [15:40:03]MH_I2C_Read... [15:40:03]*** Stop cut motor [15:40:03]*** Cut end [15:40:03]Read from MH i2c: 01 07 00 [15:40:03]MH_I2C_Read... [15:40:03]Read from MH i2c: 01 07 00 7C 4E 00 00 00 00 00 FF 0F DF [15:40:03]process_action close_receipt done [15:40:03]requested_data is exist [15:40:03]produce_requested_data [15:40:03]requested_item fm.sn is exist - process it [15:40:03]wFMCommunicate request_size=4 [15:40:03]MH_SAM_APDU [15:40:03]CAPDU: 80 11 00 00 [15:40:03]Write to MH i2c: E2 08 00 7D 4E 80 11 00 00 00 00 00 00 45 [15:40:03]Write i2c OK [15:40:03]MH_I2C_Read... [15:40:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:03]Read from MH i2c: E2 [15:40:03]MH_I2C_Read... [15:40:03]Read from MH i2c: E2 17 00 [15:40:03]MH_I2C_Read... [15:40:03]Read from MH i2c: E2 17 00 7D 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9C [15:40:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:40:03]wFMCommunicate OK [15:40:03]requested_item fd.num is exist - process it [15:40:03]SAM_PROTO_GetFieldsCounters [15:40:03]wFMCommunicate request_size=4 [15:40:03]MH_SAM_APDU [15:40:03]CAPDU: 80 13 00 00 [15:40:03]Write to MH i2c: E2 08 00 7E 4E 80 13 00 00 00 00 00 00 48 [15:40:03]Write i2c OK [15:40:03]MH_I2C_Read... [15:40:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:03]Read from MH i2c: E2 [15:40:03]MH_I2C_Read... [15:40:03]Read from MH i2c: E2 62 00 [15:40:03]MH_I2C_Read... [15:40:03]Read from MH i2c: E2 62 00 7E 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 CA 7B 03 00 0E 04 04 00 17 02 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 E7 [15:40:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 CA 7B 03 00 0E 04 04 00 17 02 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 [15:40:03]wFMCommunicate OK [15:40:03]SAM_PROTO_GetFieldsCounters done [15:40:03]requested_item shift.num is exist - process it [15:40:03]requested_item shift.opened is exist - process it [15:40:03]req_shift_opened [15:40:03]FM_GetShiftState [15:40:03]SAM_PROTO_GetShiftState [15:40:03]wFMCommunicate request_size=4 [15:40:03]MH_SAM_APDU [15:40:03]CAPDU: 80 13 01 00 [15:40:03]Write to MH i2c: E2 08 00 7F 4E 80 13 01 00 00 00 00 00 4A [15:40:03]Write i2c OK [15:40:03]MH_I2C_Read... [15:40:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:03]Read from MH i2c: E2 [15:40:03]MH_I2C_Read... [15:40:03]Read from MH i2c: E2 0E 00 [15:40:03]MH_I2C_Read... [15:40:03]Read from MH i2c: E2 0E 00 7F 4E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 11 [15:40:03]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:40:03]wFMCommunicate OK [15:40:03]SAM_PROTO_GetShiftState done [15:40:03]FM_GetShiftState done [15:40:03]req_shift_opened done [15:40:03]requested_item shift.open_date is exist - process it [15:40:03]req_shift_open_date [15:40:03]req_shift_open_date done [15:40:03]produce_requested_data done [15:40:03]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228298,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:40:03]process_action_free close_receipt [15:40:03]json_value_free [15:40:03]json_value_free done [15:40:03]process_json_proto returns [15:40:03]Send response to host [15:40:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228298,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:40:03]free response buf [15:40:03]execute_script done [15:40:03]execute_script returns [15:40:03]free content buf [15:40:03]Sock 7.Close socket [15:40:03]Sock 7.Thread stoped [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:13]accept exits with 9 [15:41:13]New connection [15:41:13]New thread 3066994020 created [15:41:13]Thread 3067137380 joined [15:41:13]Waiting for new connection... [15:41:13] Sock 9.Parse request [15:41:13]Sock 9.Check first char [15:41:13]Sock 9.First char is OK [15:41:13]request: POST /json_proto HTTP/1.0 [15:41:13]Method: POST [15:41:13]URL: /json_proto [15:41:13]Method is POST - this is cgi request [15:41:13]url: /json_proto [15:41:13]query_string will be loaded in cgi processing [15:41:13]execute_cgi json_proto POST (null) [15:41:13]execute_cgi path=json_proto method=POST [15:41:13]POST find Content-Length [15:41:13]Host: 172.17.44.195:8080 [15:41:13]Content-Length: 752 [15:41:13]Content-Type: application/json [15:41:13] [15:41:13]POST finish read [15:41:13]Found Content-Length = 752 [15:41:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964772", "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" : 0.00, "quantity" : 74.810, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30093357", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:13]execute_script... [15:41: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)1964772", "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" : 0.00, "quantity" : 74.810, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30093357", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:13]POST & json_proto [15:41:13]process_json_proto [15:41:13]json parsed OK: [15:41:13]protocol is kg_v1.0 [15:41:13]action value=close_receipt [15:41:13]process_action close_receipt [15:41:13]cmd_close_receipt [15:41:13]MH_GetDate [15:41:13]Write to MH i2c: F0 00 00 80 4E BD [15:41:13]Write i2c OK [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: F0 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: F0 09 00 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: F0 09 00 80 4E 00 9D C7 17 67 82 C9 CF 66 28 [15:41:13]GetLastDocTimeStamp 1729611603 [15:41:13]current date 1729611677 [15:41:13]FM_GetShiftState [15:41:13]SAM_PROTO_GetShiftState [15:41:13]wFMCommunicate request_size=4 [15:41:13]MH_SAM_APDU [15:41:13]CAPDU: 80 13 01 00 [15:41:13]Write to MH i2c: E2 08 00 81 4E 80 13 01 00 00 00 00 00 4C [15:41:13]Write i2c OK [15:41:13]MH_I2C_Read... [15:41:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:13]Read from MH i2c: E2 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: E2 0E 00 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: E2 0E 00 81 4E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 13 [15:41:13]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:41:13]wFMCommunicate OK [15:41:13]SAM_PROTO_GetShiftState done [15:41:13]FM_GetShiftState done [15:41:13]opened in 1729555538 [15:41:13]opened+sec_in_day 1729641938 [15:41:13]quantity*price = 0 [15:41:13]sum+1 = 1 [15:41:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 263 22.10.2024 15:41 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: ТК ГПНА Online 30093357 ФМ: 0000000000871839 ФД: 228299 ФПД: 6873803046464 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154117&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228299&fm=6873803046464&tin=02508201610067®Number=0000000000091685&sum=0 [15:41:14]StoreToDocumentArchive [15:41:14]shift 535 fd 228299 [15:41:14]save to /storage/0535/doc_00228299 [15:41:14]save last doc name /storage/0535/doc_00228299 to /storage/kkm_last_doc_name [15:41:14]save OK [15:41:14]Clear old archive folders... [15:41:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:41:14]tlvbuf is 00929B80 [15:41:14]SAM_PROTO_ClearQueue [15:41:14]wFMCommunicate request_size=4 [15:41:14]MH_SAM_APDU [15:41:14]CAPDU: 80 09 00 00 [15:41:14]Write to MH i2c: E2 08 00 8E 4E 80 09 00 00 00 00 00 00 4E [15:41:14]Write i2c OK [15:41:14]MH_I2C_Read... [15:41:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:14]Read from MH i2c: E2 [15:41:14]MH_I2C_Read... [15:41:14]Read from MH i2c: E2 03 00 [15:41:14]MH_I2C_Read... [15:41:14]Read from MH i2c: E2 03 00 8E 4E 00 90 00 50 [15:41:14]RAPDU: 90 00 [15:41:14]wFMCommunicate OK [15:41:14]SAM_PROTO_ClearQueue done [15:41:14]KKMCreateOFDPacket [15:41:14]OFDProtocolAddRootSTLVToBuf [15:41:14]FM_MakeSignedData [15:41:14]FM_MakeSignedData [15:41:14]SAM_PROTO_SignData [15:41:14]wFMCommunicate request_size=4 [15:41:14]MH_SAM_APDU [15:41:14]CAPDU: 80 0D 01 02 [15:41:14]Write to MH i2c: E2 08 00 8F 4E 80 0D 01 02 00 00 00 00 56 [15:41:14]Write i2c OK [15:41:14]MH_I2C_Read... [15:41:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:14]Read from MH i2c: E2 [15:41:14]MH_I2C_Read... [15:41:14]Read from MH i2c: E2 03 00 [15:41:14]MH_I2C_Read... [15:41:14]Read from MH i2c: E2 03 00 8F 4E 00 90 00 51 [15:41:14]RAPDU: 90 00 [15:41:14]wFMCommunicate OK [15:41:14]wFMCommunicate request_size=255 [15:41:14]MH_SAM_APDU [15:41: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 3A 24 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 9D C7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CB 7B 03 00 35 04 06 00 06 40 6E 96 [15:41:14]Write to MH i2c: E2 02 01 90 4E 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 3A 24 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 9D C7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CB 7B 03 00 35 04 06 00 06 40 6E 96 00 00 B0 [15:41:14]Write i2c OK [15:41:14]MH_I2C_Read... [15:41:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:14]Read from MH i2c: E2 [15:41:14]MH_I2C_Read... [15:41:14]Read from MH i2c: E2 03 00 [15:41:14]MH_I2C_Read... [15:41:14]Read from MH i2c: E2 03 00 90 4E 00 90 00 52 [15:41:14]RAPDU: 90 00 [15:41:14]wFMCommunicate OK [15:41:14]wFMCommunicate request_size=7 [15:41:14]MH_SAM_APDU [15:41:14]CAPDU: 80 0D 02 02 02 BE 40 [15:41:14]Write to MH i2c: E2 0A 00 91 4E 80 0D 02 02 02 00 BE 40 00 00 5B [15:41:14]Write i2c OK [15:41:14]MH_I2C_Read... [15:41:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:14]Read from MH i2c: E2 [15:41:14]MH_I2C_Read... [15:41:14]Read from MH i2c: E2 03 00 [15:41:14]MH_I2C_Read... [15:41:14]Read from MH i2c: E2 03 00 91 4E 00 90 00 53 [15:41:14]RAPDU: 90 00 [15:41:14]wFMCommunicate OK [15:41:14]wFMCommunicate request_size=4 [15:41:14]MH_SAM_APDU [15:41:14]CAPDU: 80 0D 03 02 [15:41:14]Write to MH i2c: E2 08 00 92 4E 80 0D 03 02 00 00 00 00 5B [15:41:14]Write i2c OK [15:41:14]MH_I2C_Read... [15:41:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:14]Read from MH i2c: E2 [15:41:14]MH_I2C_Read... [15:41:14]Read from MH i2c: E2 0B 00 [15:41:14]MH_I2C_Read... [15:41:14]Read from MH i2c: E2 0B 00 92 4E 00 CA D1 3F 12 F7 69 81 E5 90 00 0E [15:41:14]RAPDU: CA D1 3F 12 F7 69 81 E5 90 00 [15:41:14]wFMCommunicate OK [15:41:14]SAM_PROTO_SignData done [15:41:14]FM_MakeSignedData done [15:41:14]CreateOFDProtocolMessage [15:41:14]wFMCommunicate request_size=4 [15:41:14]MH_SAM_APDU [15:41:14]CAPDU: 80 11 00 00 [15:41:14]Write to MH i2c: E2 08 00 93 4E 80 11 00 00 00 00 00 00 5B [15:41:14]Write i2c OK [15:41:14]MH_I2C_Read... [15:41:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:14]Read from MH i2c: E2 [15:41:14]MH_I2C_Read... [15:41:14]Read from MH i2c: E2 17 00 [15:41:14]MH_I2C_Read... [15:41:14]Read from MH i2c: E2 17 00 93 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B2 [15:41:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:41:14]wFMCommunicate OK [15:41:14]CreateOFDProtocolMessage done [15:41:14]OFDSenderStorePacket 228299 [15:41:14]StoreOFDPacket docnum=228299 [15:41:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 5B A2 04 01 6C 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 3A 24 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 9D C7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CB 7B 03 00 35 04 06 00 06 40 6E 96 BE 40 CA D1 3F 12 F7 69 81 E5 [15:41:14]CheckFolder [15:41:14]dirname=/storage/ofd_packets [15:41:14]CheckFolder done [15:41:14]ProducePacketName [15:41:14]name=ofd_packets/00228299 [15:41:14]NVStorageSaveData ofd_packets/00228299 [15:41:14]File name is /storage/ofd_packets/00228299 [15:41:14]Write 298 bytes [15:41:14]NVStorageSaveData done [15:41:14]OFDSenderStorePacket done [15:41:14]KKMCreateOFDPacket done [15:41:14]NVStorageSaveData kkm_last_timestamp [15:41:14]File name is /storage/kkm_last_timestamp [15:41:14]Write 4 bytes [15:41:14]NVStorageSaveData done [15:41:14]ExternCall_PrintAddStr [15:41:14]wPrintStart [15:41:14]Write to MH i2c: 01 00 00 94 4E E2 [15:41:14]Write i2c OK [15:41:14]MH_I2C_Read... [15:41:14]Read from MH i2c: 01 [15:41:14]MH_I2C_Read... [15:41:14]Read from MH i2c: 01 07 00 [15:41:14]MH_I2C_Read... [15:41:14]Read from MH i2c: 01 07 00 94 4E 00 00 00 00 00 FF 0F F7 [15:41:14]RasterBufferAndPrint [15:41:14]line Счет N : (1)1964772 [15:41:14]line ИНН: 02508201610067 [15:41:14]line Контрольно-Кассовый Чек [15:41:14]line ПРОДАЖА [15:41:14]line ТРК (МРК, ГНК) : 21 [15:41:14]line Товар: 2710194210 [15:41:14]line ДТ-К-5 [15:41:14]line 74.810 * 0.00 [15:41:14]line = 0.00 [15:41:14]line НДС 12% НСП 1% [15:41:14]line > о реализуемом товаре [15:41:14]line ИТОГО: 0.00 [15:41:14]line НСП 1% : 0.00 [15:41:14]line НДС 12% : 0.00 [15:41:14]line Наличными: 0.00 [15:41:14]line Безнал.: 0.00 [15:41:14]line Место: АЗС № 133 "Партнер Нефть" [15:41:14]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:41:14]line СНО: Общий режим [15:41:14]line Чек 263 22.10.2024 15:41 [15:41:14]line Смена: 535 ФФД: 1.0 [15:41:14]line ЗНМ: 0300000091 [15:41:14]line РНМ: 0000000000091685 [15:41:14]line Версия ККМ: 001 [15:41:14]line Талоны: ТК ГПНА Online [15:41:14]line 30093357 [15:41:14]line ФМ: 0000000000871839 [15:41:14]line ФД: 228299 [15:41:14]line ФПД: 6873803046464 [15:41:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154117&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228299&fm=6873803046464&tin=02508201610067®Number=0000000000091685&sum=0 [15:41:15]OFD Sender: Processing packet 228299 [packets to send 38, broken 37] [15:41:15]ProducePacketName [15:41:15]name=ofd_packets/00228299 [15:41:15]OFD Sender: To server: pG, [15:41:15]CommunicateWithHost lk.salyk.kg:30040 [15:41:15]ConnectInit lk.salyk.kg [15:41:15]written 0, free lines is 4095 [15:41:15]Connected sock=10 [15:41:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 5B A2 04 01 6C 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 3A 24 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 9D C7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CB 7B 03 00 35 04 06 00 06 40 6E 96 BE 40 CA D1 3F 12 F7 69 81 E5 [15:41:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 0B D3 47 00 97 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CB 7B 03 00 F4 03 04 00 95 72 17 67 B6 04 01 00 00 D2 0F D5 35 3E F0 42 48 [15:41:15]CommunicateWithHost err = 0 [15:41:15]CheckOFDResponse [15:41:15]1017 (14) - 77093643461234 [15:41:15]1041 (16) - 0000000000871839 [15:41:15]1040 (4) - 228299 [15:41:15]1012 (4) - 22.10.2024 09:38 [15:41:15]1206 (1) - 0 [15:41:15]OFD Sender: Remove packet 228299 [15:41:15]ProducePacketName [15:41:15]name=ofd_packets/00228299 [15:41:15]NVStorageDeleteData [15:41:15]Write to MH i2c: 01 00 00 BD 4E 0B [15:41:15]Write i2c OK [15:41:15]MH_I2C_Read... [15:41:15]Read from MH i2c: 01 [15:41:15]MH_I2C_Read... [15:41:15]Read from MH i2c: 01 07 00 [15:41:15]MH_I2C_Read... [15:41:15]Read from MH i2c: 01 07 00 BD 4E 00 00 00 00 00 CF 0C ED [15:41:15]RasterBufferAndPrint [15:41:15]line [15:41:15]line [15:41:15]line [15:41:15]line [15:41:15]line [15:41:15]written 0, free lines is 3285 [15:41:15]MH_Cut [15:41:15]Write to MH i2c: D1 01 00 C4 4E 01 E4 [15:41:15]Write i2c OK [15:41:15]MH_I2C_Read... [15:41:15]Read from MH i2c: D1 [15:41:15]MH_I2C_Read... [15:41:15]Read from MH i2c: D1 01 00 [15:41:15]MH_I2C_Read... [15:41:15]Read from MH i2c: D1 01 00 C4 4E 00 E3 [15:41:15]Write to MH i2c: 01 00 00 C5 4E 13 [15:41:15]Write i2c OK [15:41:15]MH_I2C_Read... [15:41:15]OFD Sender: No OFD packet to send [15:41:16]*** Cut start [15:41:16]*** Partial cut [15:41:16]*** CUTSNS_PIN = 1 [15:41:16]*** CUTSNS_PIN = 0 [15:41:16]*** Brake cut motor [15:41:16]Read from MH i2c: 01 [15:41:16]MH_I2C_Read... [15:41:16]*** Stop cut motor [15:41:16]*** Cut end [15:41:16]Read from MH i2c: 01 07 00 [15:41:16]MH_I2C_Read... [15:41:16]Read from MH i2c: 01 07 00 C5 4E 00 00 00 00 00 FF 0F 28 [15:41:16]process_action close_receipt done [15:41:16]requested_data is exist [15:41:16]produce_requested_data [15:41:16]requested_item fm.sn is exist - process it [15:41:16]wFMCommunicate request_size=4 [15:41:16]MH_SAM_APDU [15:41:16]CAPDU: 80 11 00 00 [15:41:16]Write to MH i2c: E2 08 00 C6 4E 80 11 00 00 00 00 00 00 8E [15:41:16]Write i2c OK [15:41:16]MH_I2C_Read... [15:41:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:17]Read from MH i2c: E2 [15:41:17]MH_I2C_Read... [15:41:17]Read from MH i2c: E2 17 00 [15:41:17]MH_I2C_Read... [15:41:17]Read from MH i2c: E2 17 00 C6 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E5 [15:41:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:41:17]wFMCommunicate OK [15:41:17]requested_item fd.num is exist - process it [15:41:17]SAM_PROTO_GetFieldsCounters [15:41:17]wFMCommunicate request_size=4 [15:41:17]MH_SAM_APDU [15:41:17]CAPDU: 80 13 00 00 [15:41:17]Write to MH i2c: E2 08 00 C7 4E 80 13 00 00 00 00 00 00 91 [15:41:17]Write i2c OK [15:41:17]MH_I2C_Read... [15:41:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:17]Read from MH i2c: E2 [15:41:17]MH_I2C_Read... [15:41:17]Read from MH i2c: E2 62 00 [15:41:17]MH_I2C_Read... [15:41:17]Read from MH i2c: E2 62 00 C7 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 CB 7B 03 00 0E 04 04 00 17 02 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 34 [15:41:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 CB 7B 03 00 0E 04 04 00 17 02 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 [15:41:17]wFMCommunicate OK [15:41:17]SAM_PROTO_GetFieldsCounters done [15:41:17]requested_item shift.num is exist - process it [15:41:17]requested_item shift.opened is exist - process it [15:41:17]req_shift_opened [15:41:17]FM_GetShiftState [15:41:17]SAM_PROTO_GetShiftState [15:41:17]wFMCommunicate request_size=4 [15:41:17]MH_SAM_APDU [15:41:17]CAPDU: 80 13 01 00 [15:41:17]Write to MH i2c: E2 08 00 C8 4E 80 13 01 00 00 00 00 00 93 [15:41:17]Write i2c OK [15:41:17]MH_I2C_Read... [15:41:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:17]Read from MH i2c: E2 [15:41:17]MH_I2C_Read... [15:41:17]Read from MH i2c: E2 0E 00 [15:41:17]MH_I2C_Read... [15:41:17]Read from MH i2c: E2 0E 00 C8 4E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 5A [15:41:17]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:41:17]wFMCommunicate OK [15:41:17]SAM_PROTO_GetShiftState done [15:41:17]FM_GetShiftState done [15:41:17]req_shift_opened done [15:41:17]requested_item shift.open_date is exist - process it [15:41:17]req_shift_open_date [15:41:17]req_shift_open_date done [15:41:17]produce_requested_data done [15:41:17]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228299,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:41:17]process_action_free close_receipt [15:41:17]json_value_free [15:41:17]json_value_free done [15:41:17]process_json_proto returns [15:41:17]Send response to host [15:41:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228299,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:41:17]free response buf [15:41:17]execute_script done [15:41:17]execute_script returns [15:41:17]free content buf [15:41:17]Sock 9.Close socket [15:41:17]Sock 9.Thread stoped [15:41:20]OFD Sender: No OFD packet to send [15:41:25]OFD Sender: No OFD packet to send [15:41:30]OFD Sender: No OFD packet to send [15:41:35]OFD Sender: No OFD packet to send [15:41:40]OFD Sender: No OFD packet to send [15:41:45]OFD Sender: No OFD packet to send [15:41:50]OFD Sender: No OFD packet to send [15:41:55]OFD Sender: No OFD packet to send [15:42:00]OFD Sender: No OFD packet to send [15:42:05]OFD Sender: No OFD packet to send [15:42:10]OFD Sender: No OFD packet to send [15:42:15]OFD Sender: No OFD packet to send [15:42:20]OFD Sender: No OFD packet to send [15:42:25]OFD Sender: No OFD packet to send [15:42:30]OFD Sender: No OFD packet to send [15:42:35]OFD Sender: No OFD packet to send [15:42:40]OFD Sender: No OFD packet to send [15:42:45]OFD Sender: No OFD packet to send [15:42:47]accept exits with 7 [15:42:47]New connection [15:42:47]New thread 3067137380 created [15:42:47]Thread 3066994020 joined [15:42:47]Waiting for new connection... [15:42:47] Sock 7.Parse request [15:42:47]Sock 7.Check first char [15:42:47]Sock 7.First char is OK [15:42:47]request: POST /json_proto HTTP/1.0 [15:42:47]Method: POST [15:42:47]URL: /json_proto [15:42:47]Method is POST - this is cgi request [15:42:47]url: /json_proto [15:42:47]query_string will be loaded in cgi processing [15:42:47]execute_cgi json_proto POST (null) [15:42:47]execute_cgi path=json_proto method=POST [15:42:47]POST find Content-Length [15:42:47]Host: 172.17.44.195:8080 [15:42:47]Content-Length: 683 [15:42:47]Content-Type: application/json [15:42:47] [15:42:47]POST finish read [15:42:47]Found Content-Length = 683 [15:42:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 16.850, "sum" : 1250.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1250.00, "total" : 1250.00, "payments": [ { "type": 0, "sum" : 1250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:47]execute_script... [15:42: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)1964779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 16.850, "sum" : 1250.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1250.00, "total" : 1250.00, "payments": [ { "type": 0, "sum" : 1250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:47]POST & json_proto [15:42:47]process_json_proto [15:42:47]json parsed OK: [15:42:47]protocol is kg_v1.0 [15:42:47]action value=close_receipt [15:42:47]process_action close_receipt [15:42:47]cmd_close_receipt [15:42:47]MH_GetDate [15:42:47]Write to MH i2c: F0 00 00 C9 4E 06 [15:42:47]Write i2c OK [15:42:47]MH_I2C_Read... [15:42:47]Read from MH i2c: F0 [15:42:47]MH_I2C_Read... [15:42:47]Read from MH i2c: F0 09 00 [15:42:47]MH_I2C_Read... [15:42:47]Read from MH i2c: F0 09 00 C9 4E 00 FC C7 17 67 82 C9 CF 66 D0 [15:42:47]GetLastDocTimeStamp 1729611677 [15:42:47]current date 1729611772 [15:42:47]FM_GetShiftState [15:42:47]SAM_PROTO_GetShiftState [15:42:47]wFMCommunicate request_size=4 [15:42:47]MH_SAM_APDU [15:42:47]CAPDU: 80 13 01 00 [15:42:47]Write to MH i2c: E2 08 00 CA 4E 80 13 01 00 00 00 00 00 95 [15:42:47]Write i2c OK [15:42:47]MH_I2C_Read... [15:42:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:48]Read from MH i2c: E2 [15:42:48]MH_I2C_Read... [15:42:48]Read from MH i2c: E2 0E 00 [15:42:48]MH_I2C_Read... [15:42:48]Read from MH i2c: E2 0E 00 CA 4E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 5C [15:42:48]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:42:48]wFMCommunicate OK [15:42:48]SAM_PROTO_GetShiftState done [15:42:48]FM_GetShiftState done [15:42:48]opened in 1729555538 [15:42:48]opened+sec_in_day 1729641938 [15:42:48]quantity*price = 125027 [15:42:48]sum+1 = 125028 [15:42:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1250.00 Внесено: 1250.00 СДАЧА: 0.00 НСП 1% : 11.06 НДС 12% : 132.77 Наличными: 1250.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 264 22.10.2024 15:42 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228300 ФПД: 257421449501408 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154252&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228300&fm=257421449501408&tin=02508201610067®Number=0000000000091685&sum=125000 [15:42:49]StoreToDocumentArchive [15:42:49]shift 535 fd 228300 [15:42:49]save to /storage/0535/doc_00228300 [15:42:49]save last doc name /storage/0535/doc_00228300 to /storage/kkm_last_doc_name [15:42:49]save OK [15:42:49]Clear old archive folders... [15:42:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:42:49]tlvbuf is 009BC010 [15:42:49]SAM_PROTO_ClearQueue [15:42:49]wFMCommunicate request_size=4 [15:42:49]MH_SAM_APDU [15:42:49]CAPDU: 80 09 00 00 [15:42:49]Write to MH i2c: E2 08 00 D7 4E 80 09 00 00 00 00 00 00 97 [15:42:49]Write i2c OK [15:42:49]MH_I2C_Read... [15:42:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:49]Read from MH i2c: E2 [15:42:49]MH_I2C_Read... [15:42:49]Read from MH i2c: E2 03 00 [15:42:49]MH_I2C_Read... [15:42:49]Read from MH i2c: E2 03 00 D7 4E 00 90 00 99 [15:42:49]RAPDU: 90 00 [15:42:49]wFMCommunicate OK [15:42:49]SAM_PROTO_ClearQueue done [15:42:49]KKMCreateOFDPacket [15:42:49]OFDProtocolAddRootSTLVToBuf [15:42:49]FM_MakeSignedData [15:42:49]FM_MakeSignedData [15:42:49]SAM_PROTO_SignData [15:42:49]wFMCommunicate request_size=4 [15:42:49]MH_SAM_APDU [15:42:49]CAPDU: 80 0D 01 02 [15:42:49]Write to MH i2c: E2 08 00 D8 4E 80 0D 01 02 00 00 00 00 9F [15:42:49]Write i2c OK [15:42:49]MH_I2C_Read... [15:42:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:49]Read from MH i2c: E2 [15:42:49]MH_I2C_Read... [15:42:49]Read from MH i2c: E2 03 00 [15:42:49]MH_I2C_Read... [15:42:49]Read from MH i2c: E2 03 00 D8 4E 00 90 00 9A [15:42:49]RAPDU: 90 00 [15:42:49]wFMCommunicate OK [15:42:49]wFMCommunicate request_size=255 [15:42:49]MH_SAM_APDU [15:42: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 D2 41 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 E8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 33 00 00 00 00 07 04 06 00 48 E8 01 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 FC C7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CC 7B 03 00 35 04 06 00 EA [15:42:49]Write to MH i2c: E2 02 01 D9 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 41 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 E8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 33 00 00 00 00 07 04 06 00 48 E8 01 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 FC C7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CC 7B 03 00 35 04 06 00 EA 00 00 8B [15:42:49]Write i2c OK [15:42:49]MH_I2C_Read... [15:42:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:49]Read from MH i2c: E2 [15:42:49]MH_I2C_Read... [15:42:49]Read from MH i2c: E2 03 00 [15:42:49]MH_I2C_Read... [15:42:49]Read from MH i2c: E2 03 00 D9 4E 00 90 00 9B [15:42:49]RAPDU: 90 00 [15:42:49]wFMCommunicate OK [15:42:49]wFMCommunicate request_size=10 [15:42:49]MH_SAM_APDU [15:42:49]CAPDU: 80 0D 02 02 05 1F 9A 0E 1A E0 [15:42:49]Write to MH i2c: E2 0D 00 DA 4E 80 0D 02 02 05 00 1F 9A 0E 1A E0 00 00 6D [15:42:49]Write i2c OK [15:42:49]MH_I2C_Read... [15:42:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:49]Read from MH i2c: E2 [15:42:49]MH_I2C_Read... [15:42:49]Read from MH i2c: E2 03 00 [15:42:49]MH_I2C_Read... [15:42:49]Read from MH i2c: E2 03 00 DA 4E 00 90 00 9C [15:42:49]RAPDU: 90 00 [15:42:49]wFMCommunicate OK [15:42:49]wFMCommunicate request_size=4 [15:42:49]MH_SAM_APDU [15:42:49]CAPDU: 80 0D 03 02 [15:42:49]Write to MH i2c: E2 08 00 DB 4E 80 0D 03 02 00 00 00 00 A4 [15:42:49]Write i2c OK [15:42:49]MH_I2C_Read... [15:42:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:49]Read from MH i2c: E2 [15:42:49]MH_I2C_Read... [15:42:49]Read from MH i2c: E2 0B 00 [15:42:49]MH_I2C_Read... [15:42:49]Read from MH i2c: E2 0B 00 DB 4E 00 B9 08 71 D6 AE 43 CC EB 90 00 55 [15:42:49]RAPDU: B9 08 71 D6 AE 43 CC EB 90 00 [15:42:49]wFMCommunicate OK [15:42:49]SAM_PROTO_SignData done [15:42:49]FM_MakeSignedData done [15:42:49]CreateOFDProtocolMessage [15:42:49]wFMCommunicate request_size=4 [15:42:49]MH_SAM_APDU [15:42:49]CAPDU: 80 11 00 00 [15:42:49]Write to MH i2c: E2 08 00 DC 4E 80 11 00 00 00 00 00 00 A4 [15:42:49]Write i2c OK [15:42:49]MH_I2C_Read... [15:42:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:49]Read from MH i2c: E2 [15:42:49]MH_I2C_Read... [15:42:49]Read from MH i2c: E2 17 00 [15:42:49]MH_I2C_Read... [15:42:49]Read from MH i2c: E2 17 00 DC 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FB [15:42:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:42:49]wFMCommunicate OK [15:42:49]CreateOFDProtocolMessage done [15:42:49]OFDSenderStorePacket 228300 [15:42:49]StoreOFDPacket docnum=228300 [15:42:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 6D C2 07 01 F6 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 D2 41 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 E8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 33 00 00 00 00 07 04 06 00 48 E8 01 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 FC C7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CC 7B 03 00 35 04 06 00 EA 1F 9A 0E 1A E0 B9 08 71 D6 AE 43 CC EB [15:42:49]CheckFolder [15:42:49]dirname=/storage/ofd_packets [15:42:49]CheckFolder done [15:42:49]ProducePacketName [15:42:49]name=ofd_packets/00228300 [15:42:49]NVStorageSaveData ofd_packets/00228300 [15:42:49]File name is /storage/ofd_packets/00228300 [15:42:49]Write 301 bytes [15:42:49]NVStorageSaveData done [15:42:49]OFDSenderStorePacket done [15:42:49]KKMCreateOFDPacket done [15:42:49]NVStorageSaveData kkm_last_timestamp [15:42:49]File name is /storage/kkm_last_timestamp [15:42:49]Write 4 bytes [15:42:49]NVStorageSaveData done [15:42:49]ExternCall_PrintAddStr [15:42:49]wPrintStart [15:42:49]Write to MH i2c: 01 00 00 DD 4E 2B [15:42:49]Write i2c OK [15:42:49]MH_I2C_Read... [15:42:49]Read from MH i2c: 01 [15:42:49]MH_I2C_Read... [15:42:49]Read from MH i2c: 01 07 00 [15:42:49]MH_I2C_Read... [15:42:49]Read from MH i2c: 01 07 00 DD 4E 00 00 00 00 00 FF 0F 40 [15:42:49]RasterBufferAndPrint [15:42:49]line Счет N : (1)1964779 [15:42:49]line ИНН: 02508201610067 [15:42:49]line Контрольно-Кассовый Чек [15:42:49]line ПРОДАЖА [15:42:49]line ТРК (МРК, ГНК) : 34 [15:42:49]line Товар: 2710124500 [15:42:49]line Аи-95-К-5 [15:42:49]line 16.850 * 74.20 [15:42:49]line = 1250.27 [15:42:49]line НДС 12% НСП 1% [15:42:49]line > о реализуемом товаре [15:42:49]line ОКРУГЛЕНИЕ: -0.27 [15:42:49]line ИТОГО: 1250.00 [15:42:49]line Внесено: 1250.00 [15:42:49]line СДАЧА: 0.00 [15:42:49]line НСП 1% : 11.06 [15:42:49]line НДС 12% : 132.77 [15:42:49]line Наличными: 1250.00 [15:42:49]line Безнал.: 0.00 [15:42:49]line Место: АЗС № 133 "Партнер Нефть" [15:42:49]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:42:49]line СНО: Общий режим [15:42:49]line Чек 264 22.10.2024 15:42 [15:42:49]line Смена: 535 ФФД: 1.0 [15:42:49]line ЗНМ: 0300000091 [15:42:49]line РНМ: 0000000000091685 [15:42:49]line Версия ККМ: 001 [15:42:49]line ФМ: 0000000000871839 [15:42:49]line ФД: 228300 [15:42:49]line ФПД: 257421449501408 [15:42:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154252&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228300&fm=257421449501408&tin=02508201610067®Number=0000000000091685&sum=125000 [15:42:50]written 0, free lines is 4095 [15:42:50]OFD Sender: Processing packet 228300 [packets to send 38, broken 37] [15:42:50]ProducePacketName [15:42:50]name=ofd_packets/00228300 [15:42:50]OFD Sender: To server: pG, [15:42:50]CommunicateWithHost lk.salyk.kg:30040 [15:42:50]ConnectInit lk.salyk.kg [15:42:50]Connected sock=10 [15:42:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 6D C2 07 01 F6 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 D2 41 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 E8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 33 00 00 00 00 07 04 06 00 48 E8 01 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 FC C7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CC 7B 03 00 35 04 06 00 EA 1F 9A 0E 1A E0 B9 08 71 D6 AE 43 CC EB [15:42:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 D6 2F 47 00 0D 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CC 7B 03 00 F4 03 04 00 F4 72 17 67 B6 04 01 00 00 21 14 B5 58 9A AE 75 25 [15:42:50]CommunicateWithHost err = 0 [15:42:50]CheckOFDResponse [15:42:50]1017 (14) - 77093643461234 [15:42:50]1041 (16) - 0000000000871839 [15:42:50]1040 (4) - 228300 [15:42:50]1012 (4) - 22.10.2024 09:40 [15:42:50]1206 (1) - 0 [15:42:50]OFD Sender: Remove packet 228300 [15:42:50]ProducePacketName [15:42:50]name=ofd_packets/00228300 [15:42:50]NVStorageDeleteData [15:42:50]Write to MH i2c: 01 00 00 07 4F 56 [15:42:50]Write i2c OK [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: 01 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: 01 07 00 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: 01 07 00 07 4F 00 00 00 00 00 C0 0C 29 [15:42:50]RasterBufferAndPrint [15:42:50]line [15:42:50]line [15:42:50]line [15:42:50]line [15:42:50]line [15:42:50]written 0, free lines is 3269 [15:42:50]MH_Cut [15:42:50]Write to MH i2c: D1 01 00 0E 4F 01 2F [15:42:50]Write i2c OK [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: D1 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: D1 01 00 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: D1 01 00 0E 4F 00 2E [15:42:50]Write to MH i2c: 01 00 00 0F 4F 5E [15:42:50]Write i2c OK [15:42:50]MH_I2C_Read... [15:42:50]OFD Sender: No OFD packet to send [15:42:51]*** Cut start [15:42:51]*** Partial cut [15:42:51]*** CUTSNS_PIN = 1 [15:42:51]*** CUTSNS_PIN = 0 [15:42:51]*** Brake cut motor [15:42:51]Read from MH i2c: 01 [15:42:51]MH_I2C_Read... [15:42:51]*** Stop cut motor [15:42:51]*** Cut end [15:42:51]Read from MH i2c: 01 07 00 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: 01 07 00 0F 4F 00 00 00 00 00 FF 0F 73 [15:42:51]process_action close_receipt done [15:42:51]requested_data is exist [15:42:51]produce_requested_data [15:42:51]requested_item fm.sn is exist - process it [15:42:51]wFMCommunicate request_size=4 [15:42:51]MH_SAM_APDU [15:42:51]CAPDU: 80 11 00 00 [15:42:51]Write to MH i2c: E2 08 00 10 4F 80 11 00 00 00 00 00 00 D9 [15:42:51]Write i2c OK [15:42:51]MH_I2C_Read... [15:42:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:52]Read from MH i2c: E2 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: E2 17 00 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: E2 17 00 10 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 30 [15:42:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:42:52]wFMCommunicate OK [15:42:52]requested_item fd.num is exist - process it [15:42:52]SAM_PROTO_GetFieldsCounters [15:42:52]wFMCommunicate request_size=4 [15:42:52]MH_SAM_APDU [15:42:52]CAPDU: 80 13 00 00 [15:42:52]Write to MH i2c: E2 08 00 11 4F 80 13 00 00 00 00 00 00 DC [15:42:52]Write i2c OK [15:42:52]MH_I2C_Read... [15:42:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:52]Read from MH i2c: E2 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: E2 62 00 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: E2 62 00 11 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 CC 7B 03 00 0E 04 04 00 17 02 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 83 [15:42:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 CC 7B 03 00 0E 04 04 00 17 02 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 [15:42:52]wFMCommunicate OK [15:42:52]SAM_PROTO_GetFieldsCounters done [15:42:52]requested_item shift.num is exist - process it [15:42:52]requested_item shift.opened is exist - process it [15:42:52]req_shift_opened [15:42:52]FM_GetShiftState [15:42:52]SAM_PROTO_GetShiftState [15:42:52]wFMCommunicate request_size=4 [15:42:52]MH_SAM_APDU [15:42:52]CAPDU: 80 13 01 00 [15:42:52]Write to MH i2c: E2 08 00 12 4F 80 13 01 00 00 00 00 00 DE [15:42:52]Write i2c OK [15:42:52]MH_I2C_Read... [15:42:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:52]Read from MH i2c: E2 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: E2 0E 00 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: E2 0E 00 12 4F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 A5 [15:42:52]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:42:52]wFMCommunicate OK [15:42:52]SAM_PROTO_GetShiftState done [15:42:52]FM_GetShiftState done [15:42:52]req_shift_opened done [15:42:52]requested_item shift.open_date is exist - process it [15:42:52]req_shift_open_date [15:42:52]req_shift_open_date done [15:42:52]produce_requested_data done [15:42:52]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228300,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:42:52]process_action_free close_receipt [15:42:52]json_value_free [15:42:52]json_value_free done [15:42:52]process_json_proto returns [15:42:52]Send response to host [15:42:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228300,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:42:52]free response buf [15:42:52]execute_script done [15:42:52]execute_script returns [15:42:52]free content buf [15:42:52]Sock 7.Close socket [15:42:52]Sock 7.Thread stoped [15:42:55]OFD Sender: No OFD packet to send [15:43:00]OFD Sender: No OFD packet to send [15:43:05]OFD Sender: No OFD packet to send [15:43:08]accept exits with 9 [15:43:08]New connection [15:43:08]New thread 3066994020 created [15:43:08]Thread 3067137380 joined [15:43:08]Waiting for new connection... [15:43:08] Sock 9.Parse request [15:43:08]Sock 9.Check first char [15:43:08]Sock 9.First char is OK [15:43:08]request: POST /json_proto HTTP/1.0 [15:43:08]Method: POST [15:43:08]URL: /json_proto [15:43:08]Method is POST - this is cgi request [15:43:08]url: /json_proto [15:43:08]query_string will be loaded in cgi processing [15:43:08]execute_cgi json_proto POST (null) [15:43:08]execute_cgi path=json_proto method=POST [15:43:08]POST find Content-Length [15:43:08]Host: 172.17.44.195:8080 [15:43:08]Content-Length: 678 [15:43:08]Content-Type: application/json [15:43:08] [15:43:08]POST finish read [15:43:08]Found Content-Length = 678 [15:43:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:43:08]execute_script... [15:43: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)1964780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:43:08]POST & json_proto [15:43:08]process_json_proto [15:43:08]json parsed OK: [15:43:08]protocol is kg_v1.0 [15:43:08]action value=close_receipt [15:43:08]process_action close_receipt [15:43:08]cmd_close_receipt [15:43:08]MH_GetDate [15:43:08]Write to MH i2c: F0 00 00 13 4F 51 [15:43:08]Write i2c OK [15:43:08]MH_I2C_Read... [15:43:08]Read from MH i2c: F0 [15:43:08]MH_I2C_Read... [15:43:08]Read from MH i2c: F0 09 00 [15:43:08]MH_I2C_Read... [15:43:08]Read from MH i2c: F0 09 00 13 4F 00 10 C8 17 67 82 C9 CF 66 30 [15:43:08]GetLastDocTimeStamp 1729611772 [15:43:08]current date 1729611792 [15:43:08]FM_GetShiftState [15:43:08]SAM_PROTO_GetShiftState [15:43:08]wFMCommunicate request_size=4 [15:43:08]MH_SAM_APDU [15:43:08]CAPDU: 80 13 01 00 [15:43:08]Write to MH i2c: E2 08 00 14 4F 80 13 01 00 00 00 00 00 E0 [15:43:08]Write i2c OK [15:43:08]MH_I2C_Read... [15:43:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:08]Read from MH i2c: E2 [15:43:08]MH_I2C_Read... [15:43:08]Read from MH i2c: E2 0E 00 [15:43:08]MH_I2C_Read... [15:43:08]Read from MH i2c: E2 0E 00 14 4F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 A7 [15:43:08]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:43:08]wFMCommunicate OK [15:43:08]SAM_PROTO_GetShiftState done [15:43:08]FM_GetShiftState done [15:43:08]opened in 1729555538 [15:43:08]opened+sec_in_day 1729641938 [15:43:08]quantity*price = 50041 [15:43:08]sum+1 = 50042 [15:43:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 265 22.10.2024 15:43 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228301 ФПД: 199086023183536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154312&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228301&fm=199086023183536&tin=02508201610067®Number=0000000000091685&sum=50000 [15:43:09]StoreToDocumentArchive [15:43:09]shift 535 fd 228301 [15:43:09]save to /storage/0535/doc_00228301 [15:43:09]save last doc name /storage/0535/doc_00228301 to /storage/kkm_last_doc_name [15:43:09]save OK [15:43:09]Clear old archive folders... [15:43:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:43:09]tlvbuf is 008B18C0 [15:43:09]SAM_PROTO_ClearQueue [15:43:09]wFMCommunicate request_size=4 [15:43:09]MH_SAM_APDU [15:43:09]CAPDU: 80 09 00 00 [15:43:09]Write to MH i2c: E2 08 00 21 4F 80 09 00 00 00 00 00 00 E2 [15:43:09]Write i2c OK [15:43:09]MH_I2C_Read... [15:43:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:43:09]Read from MH i2c: E2 [15:43:09]MH_I2C_Read... [15:43:09]Read from MH i2c: E2 03 00 [15:43:09]MH_I2C_Read... [15:43:09]Read from MH i2c: E2 03 00 21 4F 00 90 00 E4 [15:43:09]RAPDU: 90 00 [15:43:09]wFMCommunicate OK [15:43:09]SAM_PROTO_ClearQueue done [15:43:09]KKMCreateOFDPacket [15:43:09]OFDProtocolAddRootSTLVToBuf [15:43:09]FM_MakeSignedData [15:43:09]FM_MakeSignedData [15:43:09]SAM_PROTO_SignData [15:43:09]wFMCommunicate request_size=4 [15:43:09]MH_SAM_APDU [15:43:09]CAPDU: 80 0D 01 02 [15:43:09]Write to MH i2c: E2 08 00 22 4F 80 0D 01 02 00 00 00 00 EA [15:43:09]Write i2c OK [15:43:09]MH_I2C_Read... [15:43:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:43:09]Read from MH i2c: E2 [15:43:09]MH_I2C_Read... [15:43:09]Read from MH i2c: E2 03 00 [15:43:09]MH_I2C_Read... [15:43:09]Read from MH i2c: E2 03 00 22 4F 00 90 00 E5 [15:43:09]RAPDU: 90 00 [15:43:09]wFMCommunicate OK [15:43:09]wFMCommunicate request_size=255 [15:43:09]MH_SAM_APDU [15:43: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 10 C8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CD 7B 03 00 35 04 06 00 B5 [15:43:09]Write to MH i2c: E2 02 01 23 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 10 C8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CD 7B 03 00 35 04 06 00 B5 00 00 FA [15:43:09]Write i2c OK [15:43:09]MH_I2C_Read... [15:43:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:09]Read from MH i2c: E2 [15:43:09]MH_I2C_Read... [15:43:09]Read from MH i2c: E2 03 00 [15:43:09]MH_I2C_Read... [15:43:09]Read from MH i2c: E2 03 00 23 4F 00 90 00 E6 [15:43:09]RAPDU: 90 00 [15:43:09]wFMCommunicate OK [15:43:09]wFMCommunicate request_size=10 [15:43:09]MH_SAM_APDU [15:43:09]CAPDU: 80 0D 02 02 05 11 53 B1 0C B0 [15:43:09]Write to MH i2c: E2 0D 00 24 4F 80 0D 02 02 05 00 11 53 B1 0C B0 00 00 C8 [15:43:09]Write i2c OK [15:43:09]MH_I2C_Read... [15:43:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:09]Read from MH i2c: E2 [15:43:09]MH_I2C_Read... [15:43:09]Read from MH i2c: E2 03 00 [15:43:09]MH_I2C_Read... [15:43:09]Read from MH i2c: E2 03 00 24 4F 00 90 00 E7 [15:43:09]RAPDU: 90 00 [15:43:09]wFMCommunicate OK [15:43:09]wFMCommunicate request_size=4 [15:43:09]MH_SAM_APDU [15:43:09]CAPDU: 80 0D 03 02 [15:43:09]Write to MH i2c: E2 08 00 25 4F 80 0D 03 02 00 00 00 00 EF [15:43:09]Write i2c OK [15:43:09]MH_I2C_Read... [15:43:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:43:09]Read from MH i2c: E2 [15:43:09]MH_I2C_Read... [15:43:09]Read from MH i2c: E2 0B 00 [15:43:09]MH_I2C_Read... [15:43:09]Read from MH i2c: E2 0B 00 25 4F 00 12 66 D8 4A 7D 3A 8F 9D 90 00 6D [15:43:09]RAPDU: 12 66 D8 4A 7D 3A 8F 9D 90 00 [15:43:09]wFMCommunicate OK [15:43:09]SAM_PROTO_SignData done [15:43:09]FM_MakeSignedData done [15:43:09]CreateOFDProtocolMessage [15:43:09]wFMCommunicate request_size=4 [15:43:09]MH_SAM_APDU [15:43:09]CAPDU: 80 11 00 00 [15:43:09]Write to MH i2c: E2 08 00 26 4F 80 11 00 00 00 00 00 00 EF [15:43:09]Write i2c OK [15:43:09]MH_I2C_Read... [15:43:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:09]Read from MH i2c: E2 [15:43:09]MH_I2C_Read... [15:43:09]Read from MH i2c: E2 17 00 [15:43:09]MH_I2C_Read... [15:43:09]Read from MH i2c: E2 17 00 26 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 46 [15:43:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:43:09]wFMCommunicate OK [15:43:09]CreateOFDProtocolMessage done [15:43:09]OFDSenderStorePacket 228301 [15:43:09]StoreOFDPacket docnum=228301 [15:43:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D0 EF 07 01 84 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 10 C8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CD 7B 03 00 35 04 06 00 B5 11 53 B1 0C B0 12 66 D8 4A 7D 3A 8F 9D [15:43:09]CheckFolder [15:43:09]dirname=/storage/ofd_packets [15:43:09]CheckFolder done [15:43:09]ProducePacketName [15:43:09]name=ofd_packets/00228301 [15:43:09]NVStorageSaveData ofd_packets/00228301 [15:43:09]File name is /storage/ofd_packets/00228301 [15:43:09]Write 301 bytes [15:43:09]NVStorageSaveData done [15:43:09]OFDSenderStorePacket done [15:43:09]KKMCreateOFDPacket done [15:43:09]NVStorageSaveData kkm_last_timestamp [15:43:09]File name is /storage/kkm_last_timestamp [15:43:09]Write 4 bytes [15:43:09]NVStorageSaveData done [15:43:09]ExternCall_PrintAddStr [15:43:09]wPrintStart [15:43:09]Write to MH i2c: 01 00 00 27 4F 76 [15:43:09]Write i2c OK [15:43:09]MH_I2C_Read... [15:43:09]Read from MH i2c: 01 [15:43:09]MH_I2C_Read... [15:43:09]Read from MH i2c: 01 07 00 [15:43:09]MH_I2C_Read... [15:43:09]Read from MH i2c: 01 07 00 27 4F 00 00 00 00 00 FF 0F 8B [15:43:09]RasterBufferAndPrint [15:43:09]line Счет N : (1)1964780 [15:43:09]line ИНН: 02508201610067 [15:43:09]line Контрольно-Кассовый Чек [15:43:09]line ПРОДАЖА [15:43:09]line ТРК (МРК, ГНК) : 43 [15:43:09]line Товар: 2710124130 [15:43:09]line Аи-92-К-5 [15:43:09]line 7.480 * 66.90 [15:43:09]line = 500.41 [15:43:09]line НДС 12% НСП 1% [15:43:09]line > о реализуемом товаре [15:43:09]line ОКРУГЛЕНИЕ: -0.41 [15:43:09]line ИТОГО: 500.00 [15:43:09]line Внесено: 500.00 [15:43:09]line СДАЧА: 0.00 [15:43:09]line НСП 1% : 4.43 [15:43:09]line НДС 12% : 53.14 [15:43:09]line Наличными: 500.00 [15:43:09]line Безнал.: 0.00 [15:43:09]line Место: АЗС № 133 "Партнер Нефть" [15:43:09]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:43:09]line СНО: Общий режим [15:43:09]line Чек 265 22.10.2024 15:43 [15:43:09]line Смена: 535 ФФД: 1.0 [15:43:09]line ЗНМ: 0300000091 [15:43:09]line РНМ: 0000000000091685 [15:43:09]line Версия ККМ: 001 [15:43:09]line ФМ: 0000000000871839 [15:43:09]line ФД: 228301 [15:43:09]line ФПД: 199086023183536 [15:43:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154312&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228301&fm=199086023183536&tin=02508201610067®Number=0000000000091685&sum=50000 [15:43:10]written 0, free lines is 4095 [15:43:10]OFD Sender: Processing packet 228301 [packets to send 38, broken 37] [15:43:10]ProducePacketName [15:43:10]name=ofd_packets/00228301 [15:43:10]OFD Sender: To server: pG, [15:43:10]CommunicateWithHost lk.salyk.kg:30040 [15:43:10]ConnectInit lk.salyk.kg [15:43:10]Connected sock=10 [15:43:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D0 EF 07 01 84 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 10 C8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CD 7B 03 00 35 04 06 00 B5 11 53 B1 0C B0 12 66 D8 4A 7D 3A 8F 9D [15:43:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 B3 10 47 00 FC AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CD 7B 03 00 F4 03 04 00 08 73 17 67 B6 04 01 00 00 73 00 26 59 8E 3E 40 D9 [15:43:10]CommunicateWithHost err = 0 [15:43:10]CheckOFDResponse [15:43:10]1017 (14) - 77093643461234 [15:43:10]1041 (16) - 0000000000871839 [15:43:10]1040 (4) - 228301 [15:43:10]1012 (4) - 22.10.2024 09:40 [15:43:10]1206 (1) - 0 [15:43:10]OFD Sender: Remove packet 228301 [15:43:10]ProducePacketName [15:43:10]name=ofd_packets/00228301 [15:43:10]NVStorageDeleteData [15:43:10]Write to MH i2c: 01 00 00 51 4F A0 [15:43:10]Write i2c OK [15:43:10]MH_I2C_Read... [15:43:10]Read from MH i2c: 01 [15:43:10]MH_I2C_Read... [15:43:10]Read from MH i2c: 01 07 00 [15:43:10]MH_I2C_Read... [15:43:10]Read from MH i2c: 01 07 00 51 4F 00 00 00 00 00 B6 0C 69 [15:43:10]RasterBufferAndPrint [15:43:10]line [15:43:10]line [15:43:10]line [15:43:10]line [15:43:10]line [15:43:10]written 0, free lines is 3259 [15:43:10]MH_Cut [15:43:10]Write to MH i2c: D1 01 00 58 4F 01 79 [15:43:10]Write i2c OK [15:43:10]MH_I2C_Read... [15:43:10]Read from MH i2c: D1 [15:43:10]MH_I2C_Read... [15:43:10]Read from MH i2c: D1 01 00 [15:43:10]MH_I2C_Read... [15:43:10]Read from MH i2c: D1 01 00 58 4F 00 78 [15:43:10]Write to MH i2c: 01 00 00 59 4F A8 [15:43:10]Write i2c OK [15:43:10]MH_I2C_Read... [15:43:10]OFD Sender: No OFD packet to send [15:43:11]*** Cut start [15:43:11]*** Partial cut [15:43:11]*** CUTSNS_PIN = 1 [15:43:11]*** CUTSNS_PIN = 0 [15:43:11]*** Brake cut motor [15:43:12]Read from MH i2c: 01 [15:43:12]MH_I2C_Read... [15:43:12]*** Stop cut motor [15:43:12]*** Cut end [15:43:12]Read from MH i2c: 01 07 00 [15:43:12]MH_I2C_Read... [15:43:12]Read from MH i2c: 01 07 00 59 4F 00 00 00 00 00 FF 0F BD [15:43:12]process_action close_receipt done [15:43:12]requested_data is exist [15:43:12]produce_requested_data [15:43:12]requested_item fm.sn is exist - process it [15:43:12]wFMCommunicate request_size=4 [15:43:12]MH_SAM_APDU [15:43:12]CAPDU: 80 11 00 00 [15:43:12]Write to MH i2c: E2 08 00 5A 4F 80 11 00 00 00 00 00 00 23 [15:43:12]Write i2c OK [15:43:12]MH_I2C_Read... [15:43:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:12]Read from MH i2c: E2 [15:43:12]MH_I2C_Read... [15:43:12]Read from MH i2c: E2 17 00 [15:43:12]MH_I2C_Read... [15:43:12]Read from MH i2c: E2 17 00 5A 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7A [15:43:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:43:12]wFMCommunicate OK [15:43:12]requested_item fd.num is exist - process it [15:43:12]SAM_PROTO_GetFieldsCounters [15:43:12]wFMCommunicate request_size=4 [15:43:12]MH_SAM_APDU [15:43:12]CAPDU: 80 13 00 00 [15:43:12]Write to MH i2c: E2 08 00 5B 4F 80 13 00 00 00 00 00 00 26 [15:43:12]Write i2c OK [15:43:12]MH_I2C_Read... [15:43:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:12]Read from MH i2c: E2 [15:43:12]MH_I2C_Read... [15:43:12]Read from MH i2c: E2 62 00 [15:43:12]MH_I2C_Read... [15:43:12]Read from MH i2c: E2 62 00 5B 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 CD 7B 03 00 0E 04 04 00 17 02 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 D1 [15:43:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 CD 7B 03 00 0E 04 04 00 17 02 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 [15:43:12]wFMCommunicate OK [15:43:12]SAM_PROTO_GetFieldsCounters done [15:43:12]requested_item shift.num is exist - process it [15:43:12]requested_item shift.opened is exist - process it [15:43:12]req_shift_opened [15:43:12]FM_GetShiftState [15:43:12]SAM_PROTO_GetShiftState [15:43:12]wFMCommunicate request_size=4 [15:43:12]MH_SAM_APDU [15:43:12]CAPDU: 80 13 01 00 [15:43:12]Write to MH i2c: E2 08 00 5C 4F 80 13 01 00 00 00 00 00 28 [15:43:12]Write i2c OK [15:43:12]MH_I2C_Read... [15:43:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:12]Read from MH i2c: E2 [15:43:12]MH_I2C_Read... [15:43:12]Read from MH i2c: E2 0E 00 [15:43:12]MH_I2C_Read... [15:43:12]Read from MH i2c: E2 0E 00 5C 4F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 EF [15:43:12]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:43:12]wFMCommunicate OK [15:43:12]SAM_PROTO_GetShiftState done [15:43:12]FM_GetShiftState done [15:43:12]req_shift_opened done [15:43:12]requested_item shift.open_date is exist - process it [15:43:12]req_shift_open_date [15:43:12]req_shift_open_date done [15:43:12]produce_requested_data done [15:43:12]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228301,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:43:12]process_action_free close_receipt [15:43:12]json_value_free [15:43:12]json_value_free done [15:43:12]process_json_proto returns [15:43:12]Send response to host [15:43:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228301,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:43:12]free response buf [15:43:12]execute_script done [15:43:12]execute_script returns [15:43:12]free content buf [15:43:12]Sock 9.Close socket [15:43:12]Sock 9.Thread stoped [15:43:16]OFD Sender: No OFD packet to send [15:43:21]OFD Sender: No OFD packet to send [15:43:26]OFD Sender: No OFD packet to send [15:43:31]OFD Sender: No OFD packet to send [15:43:36]OFD Sender: No OFD packet to send [15:43:41]OFD Sender: No OFD packet to send [15:43:46]OFD Sender: No OFD packet to send [15:43:51]OFD Sender: No OFD packet to send [15:43:56]OFD Sender: No OFD packet to send [15:44:01]OFD Sender: No OFD packet to send [15:44:04]accept exits with 7 [15:44:04]New connection [15:44:04]New thread 3067137380 created [15:44:04]Thread 3066994020 joined [15:44:04]Waiting for new connection... [15:44:04] Sock 7.Parse request [15:44:04]Sock 7.Check first char [15:44:04]Sock 7.First char is OK [15:44:04]request: POST /json_proto HTTP/1.0 [15:44:04]Method: POST [15:44:04]URL: /json_proto [15:44:04]Method is POST - this is cgi request [15:44:04]url: /json_proto [15:44:04]query_string will be loaded in cgi processing [15:44:04]execute_cgi json_proto POST (null) [15:44:04]execute_cgi path=json_proto method=POST [15:44:04]POST find Content-Length [15:44:04]Host: 172.17.44.195:8080 [15:44:04]Content-Length: 770 [15:44:04]Content-Type: application/json [15:44:04] [15:44:04]POST finish read [15:44:04]Found Content-Length = 770 [15:44:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 18.870, "sum" : 1400.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: Mbank", "payments": [ { "type": 1, "sum" : 1400.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:04]execute_script... [15:44: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)1964781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 18.870, "sum" : 1400.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: Mbank", "payments": [ { "type": 1, "sum" : 1400.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:04]POST & json_proto [15:44:04]process_json_proto [15:44:04]json parsed OK: [15:44:04]protocol is kg_v1.0 [15:44:04]action value=close_receipt [15:44:04]process_action close_receipt [15:44:04]cmd_close_receipt [15:44:04]MH_GetDate [15:44:04]Write to MH i2c: F0 00 00 5D 4F 9B [15:44:04]Write i2c OK [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: F0 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: F0 09 00 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: F0 09 00 5D 4F 00 48 C8 17 67 82 C9 CF 66 B2 [15:44:04]GetLastDocTimeStamp 1729611792 [15:44:04]current date 1729611848 [15:44:04]FM_GetShiftState [15:44:04]SAM_PROTO_GetShiftState [15:44:04]wFMCommunicate request_size=4 [15:44:04]MH_SAM_APDU [15:44:04]CAPDU: 80 13 01 00 [15:44:04]Write to MH i2c: E2 08 00 5E 4F 80 13 01 00 00 00 00 00 2A [15:44:04]Write i2c OK [15:44:04]MH_I2C_Read... [15:44:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:04]Read from MH i2c: E2 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: E2 0E 00 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: E2 0E 00 5E 4F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 F1 [15:44:04]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:44:04]wFMCommunicate OK [15:44:04]SAM_PROTO_GetShiftState done [15:44:04]FM_GetShiftState done [15:44:04]opened in 1729555538 [15:44:04]opened+sec_in_day 1729641938 [15:44:04]quantity*price = 140015 [15:44:04]sum+1 = 140016 [15:44:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1400.15 НСП 1% : 12.39 НДС 12% : 148.69 Наличными: 0.00 Безнал.: 1400.15 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 266 22.10.2024 15:44 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 228302 ФПД: 118907995242468 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154408&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228302&fm=118907995242468&tin=02508201610067®Number=0000000000091685&sum=140015 [15:44:05]StoreToDocumentArchive [15:44:05]shift 535 fd 228302 [15:44:05]save to /storage/0535/doc_00228302 [15:44:05]save last doc name /storage/0535/doc_00228302 to /storage/kkm_last_doc_name [15:44:05]save OK [15:44:05]Clear old archive folders... [15:44:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:44:05]tlvbuf is 0087F1B0 [15:44:05]SAM_PROTO_ClearQueue [15:44:05]wFMCommunicate request_size=4 [15:44:05]MH_SAM_APDU [15:44:05]CAPDU: 80 09 00 00 [15:44:05]Write to MH i2c: E2 08 00 6B 4F 80 09 00 00 00 00 00 00 2C [15:44:05]Write i2c OK [15:44:05]MH_I2C_Read... [15:44:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:05]Read from MH i2c: E2 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 03 00 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 03 00 6B 4F 00 90 00 2E [15:44:05]RAPDU: 90 00 [15:44:05]wFMCommunicate OK [15:44:05]SAM_PROTO_ClearQueue done [15:44:05]KKMCreateOFDPacket [15:44:05]OFDProtocolAddRootSTLVToBuf [15:44:05]FM_MakeSignedData [15:44:05]FM_MakeSignedData [15:44:05]SAM_PROTO_SignData [15:44:05]wFMCommunicate request_size=4 [15:44:05]MH_SAM_APDU [15:44:05]CAPDU: 80 0D 01 02 [15:44:05]Write to MH i2c: E2 08 00 6C 4F 80 0D 01 02 00 00 00 00 34 [15:44:05]Write i2c OK [15:44:05]MH_I2C_Read... [15:44:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:05]Read from MH i2c: E2 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 03 00 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 03 00 6C 4F 00 90 00 2F [15:44:05]RAPDU: 90 00 [15:44:05]wFMCommunicate OK [15:44:05]wFMCommunicate request_size=255 [15:44:05]MH_SAM_APDU [15:44: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 B6 49 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EF 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 00 00 00 00 00 00 39 04 06 00 EF 22 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 48 C8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CE 7B 03 00 35 04 06 00 6C [15:44:05]Write to MH i2c: E2 02 01 6D 4F 80 0D 02 02 FA 00 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 B6 49 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EF 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 00 00 00 00 00 00 39 04 06 00 EF 22 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 48 C8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CE 7B 03 00 35 04 06 00 6C 00 00 2E [15:44:05]Write i2c OK [15:44:05]MH_I2C_Read... [15:44:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:05]Read from MH i2c: E2 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 03 00 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 03 00 6D 4F 00 90 00 30 [15:44:05]RAPDU: 90 00 [15:44:05]wFMCommunicate OK [15:44:05]wFMCommunicate request_size=10 [15:44:05]MH_SAM_APDU [15:44:05]CAPDU: 80 0D 02 02 05 25 6C D1 3F E4 [15:44:05]Write to MH i2c: E2 0D 00 6E 4F 80 0D 02 02 05 00 25 6C D1 3F E4 00 00 C6 [15:44:05]Write i2c OK [15:44:05]MH_I2C_Read... [15:44:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:05]Read from MH i2c: E2 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 03 00 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 03 00 6E 4F 00 90 00 31 [15:44:05]RAPDU: 90 00 [15:44:05]wFMCommunicate OK [15:44:05]wFMCommunicate request_size=4 [15:44:05]MH_SAM_APDU [15:44:05]CAPDU: 80 0D 03 02 [15:44:05]Write to MH i2c: E2 08 00 6F 4F 80 0D 03 02 00 00 00 00 39 [15:44:05]Write i2c OK [15:44:05]MH_I2C_Read... [15:44:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:05]Read from MH i2c: E2 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 0B 00 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 0B 00 6F 4F 00 7E E6 44 C3 8D F3 5C 4B 90 00 CC [15:44:05]RAPDU: 7E E6 44 C3 8D F3 5C 4B 90 00 [15:44:05]wFMCommunicate OK [15:44:05]SAM_PROTO_SignData done [15:44:05]FM_MakeSignedData done [15:44:05]CreateOFDProtocolMessage [15:44:05]wFMCommunicate request_size=4 [15:44:05]MH_SAM_APDU [15:44:05]CAPDU: 80 11 00 00 [15:44:05]Write to MH i2c: E2 08 00 70 4F 80 11 00 00 00 00 00 00 39 [15:44:05]Write i2c OK [15:44:05]MH_I2C_Read... [15:44:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:05]Read from MH i2c: E2 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 17 00 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 17 00 70 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 90 [15:44:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:44:05]wFMCommunicate OK [15:44:05]CreateOFDProtocolMessage done [15:44:05]OFDSenderStorePacket 228302 [15:44:05]StoreOFDPacket docnum=228302 [15:44:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 C5 84 07 01 95 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 B6 49 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EF 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 00 00 00 00 00 00 39 04 06 00 EF 22 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 48 C8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CE 7B 03 00 35 04 06 00 6C 25 6C D1 3F E4 7E E6 44 C3 8D F3 5C 4B [15:44:05]CheckFolder [15:44:05]dirname=/storage/ofd_packets [15:44:05]CheckFolder done [15:44:05]ProducePacketName [15:44:05]name=ofd_packets/00228302 [15:44:05]NVStorageSaveData ofd_packets/00228302 [15:44:05]File name is /storage/ofd_packets/00228302 [15:44:05]Write 301 bytes [15:44:05]NVStorageSaveData done [15:44:05]OFDSenderStorePacket done [15:44:05]KKMCreateOFDPacket done [15:44:05]NVStorageSaveData kkm_last_timestamp [15:44:05]File name is /storage/kkm_last_timestamp [15:44:05]Write 4 bytes [15:44:05]NVStorageSaveData done [15:44:05]ExternCall_PrintAddStr [15:44:05]wPrintStart [15:44:05]Write to MH i2c: 01 00 00 71 4F C0 [15:44:05]Write i2c OK [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: 01 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: 01 07 00 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: 01 07 00 71 4F 00 00 00 00 00 FF 0F D5 [15:44:05]RasterBufferAndPrint [15:44:05]line Счет N : (1)1964781 [15:44:05]line ИНН: 02508201610067 [15:44:05]line Контрольно-Кассовый Чек [15:44:05]line ПРОДАЖА [15:44:05]line ТРК (МРК, ГНК) : 64 [15:44:05]line Товар: 2710124500 [15:44:05]line Аи-95-К-5 [15:44:05]line 18.870 * 74.20 [15:44:05]line = 1400.15 [15:44:05]line НДС 12% НСП 1% [15:44:05]line > о реализуемом товаре [15:44:05]line ИТОГО: 1400.15 [15:44:05]line НСП 1% : 12.39 [15:44:05]line НДС 12% : 148.69 [15:44:05]line Наличными: 0.00 [15:44:05]line Безнал.: 1400.15 [15:44:05]line Место: АЗС № 133 "Партнер Нефть" [15:44:05]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:44:05]line СНО: Общий режим [15:44:05]line Чек 266 22.10.2024 15:44 [15:44:05]line Смена: 535 ФФД: 1.0 [15:44:05]line ЗНМ: 0300000091 [15:44:05]line РНМ: 0000000000091685 [15:44:05]line Версия ККМ: 001 [15:44:05]line Платежная система: Mbank [15:44:05]line ФМ: 0000000000871839 [15:44:05]line ФД: 228302 [15:44:05]line ФПД: 118907995242468 [15:44:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154408&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228302&fm=118907995242468&tin=02508201610067®Number=0000000000091685&sum=140015 [15:44:06]OFD Sender: Processing packet 228302 [packets to send 38, broken 37] [15:44:06]ProducePacketName [15:44:06]name=ofd_packets/00228302 [15:44:06]OFD Sender: To server: pG, [15:44:06]CommunicateWithHost lk.salyk.kg:30040 [15:44:06]ConnectInit lk.salyk.kg [15:44:06]written 0, free lines is 4095 [15:44:06]Connected sock=10 [15:44:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 C5 84 07 01 95 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 B6 49 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EF 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 00 00 00 00 00 00 39 04 06 00 EF 22 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 48 C8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CE 7B 03 00 35 04 06 00 6C 25 6C D1 3F E4 7E E6 44 C3 8D F3 5C 4B [15:44:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 6D 7A 47 00 2E D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CE 7B 03 00 F4 03 04 00 40 73 17 67 B6 04 01 00 00 26 6B 67 4D 47 7E E2 C3 [15:44:06]CommunicateWithHost err = 0 [15:44:06]CheckOFDResponse [15:44:06]1017 (14) - 77093643461234 [15:44:06]1041 (16) - 0000000000871839 [15:44:06]1040 (4) - 228302 [15:44:06]1012 (4) - 22.10.2024 09:41 [15:44:06]1206 (1) - 0 [15:44:06]OFD Sender: Remove packet 228302 [15:44:06]ProducePacketName [15:44:06]name=ofd_packets/00228302 [15:44:06]NVStorageDeleteData [15:44:06]Write to MH i2c: 01 00 00 99 4F E8 [15:44:06]Write i2c OK [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: 01 [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: 01 07 00 [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: 01 07 00 99 4F 00 00 00 00 00 DE 0C D9 [15:44:06]RasterBufferAndPrint [15:44:06]line [15:44:06]line [15:44:06]line [15:44:06]line [15:44:06]line [15:44:06]written 0, free lines is 3298 [15:44:06]MH_Cut [15:44:06]Write to MH i2c: D1 01 00 A0 4F 01 C1 [15:44:06]Write i2c OK [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: D1 [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: D1 01 00 [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: D1 01 00 A0 4F 00 C0 [15:44:06]Write to MH i2c: 01 00 00 A1 4F F0 [15:44:06]Write i2c OK [15:44:06]MH_I2C_Read... [15:44:07]OFD Sender: No OFD packet to send [15:44:07]*** Cut start [15:44:07]*** Partial cut [15:44:07]*** CUTSNS_PIN = 1 [15:44:07]*** CUTSNS_PIN = 0 [15:44:07]*** Brake cut motor [15:44:08]Read from MH i2c: 01 [15:44:08]MH_I2C_Read... [15:44:08]*** Stop cut motor [15:44:08]*** Cut end [15:44:08]Read from MH i2c: 01 07 00 [15:44:08]MH_I2C_Read... [15:44:08]Read from MH i2c: 01 07 00 A1 4F 00 00 00 00 00 FF 0F 05 [15:44:08]process_action close_receipt done [15:44:08]requested_data is exist [15:44:08]produce_requested_data [15:44:08]requested_item fm.sn is exist - process it [15:44:08]wFMCommunicate request_size=4 [15:44:08]MH_SAM_APDU [15:44:08]CAPDU: 80 11 00 00 [15:44:08]Write to MH i2c: E2 08 00 A2 4F 80 11 00 00 00 00 00 00 6B [15:44:08]Write i2c OK [15:44:08]MH_I2C_Read... [15:44:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:08]Read from MH i2c: E2 [15:44:08]MH_I2C_Read... [15:44:08]Read from MH i2c: E2 17 00 [15:44:08]MH_I2C_Read... [15:44:08]Read from MH i2c: E2 17 00 A2 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C2 [15:44:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:44:08]wFMCommunicate OK [15:44:08]requested_item fd.num is exist - process it [15:44:08]SAM_PROTO_GetFieldsCounters [15:44:08]wFMCommunicate request_size=4 [15:44:08]MH_SAM_APDU [15:44:08]CAPDU: 80 13 00 00 [15:44:08]Write to MH i2c: E2 08 00 A3 4F 80 13 00 00 00 00 00 00 6E [15:44:08]Write i2c OK [15:44:08]MH_I2C_Read... [15:44:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:08]Read from MH i2c: E2 [15:44:08]MH_I2C_Read... [15:44:08]Read from MH i2c: E2 62 00 [15:44:08]MH_I2C_Read... [15:44:08]Read from MH i2c: E2 62 00 A3 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 CE 7B 03 00 0E 04 04 00 17 02 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 1D [15:44:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 CE 7B 03 00 0E 04 04 00 17 02 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 [15:44:08]wFMCommunicate OK [15:44:08]SAM_PROTO_GetFieldsCounters done [15:44:08]requested_item shift.num is exist - process it [15:44:08]requested_item shift.opened is exist - process it [15:44:08]req_shift_opened [15:44:08]FM_GetShiftState [15:44:08]SAM_PROTO_GetShiftState [15:44:08]wFMCommunicate request_size=4 [15:44:08]MH_SAM_APDU [15:44:08]CAPDU: 80 13 01 00 [15:44:08]Write to MH i2c: E2 08 00 A4 4F 80 13 01 00 00 00 00 00 70 [15:44:08]Write i2c OK [15:44:08]MH_I2C_Read... [15:44:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:08]Read from MH i2c: E2 [15:44:08]MH_I2C_Read... [15:44:08]Read from MH i2c: E2 0E 00 [15:44:08]MH_I2C_Read... [15:44:08]Read from MH i2c: E2 0E 00 A4 4F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 37 [15:44:08]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:44:08]wFMCommunicate OK [15:44:08]SAM_PROTO_GetShiftState done [15:44:08]FM_GetShiftState done [15:44:08]req_shift_opened done [15:44:08]requested_item shift.open_date is exist - process it [15:44:08]req_shift_open_date [15:44:08]req_shift_open_date done [15:44:08]produce_requested_data done [15:44:08]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228302,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:44:08]process_action_free close_receipt [15:44:08]json_value_free [15:44:08]json_value_free done [15:44:08]process_json_proto returns [15:44:08]Send response to host [15:44:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228302,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:44:08]free response buf [15:44:08]execute_script done [15:44:08]execute_script returns [15:44:08]free content buf [15:44:08]Sock 7.Close socket [15:44:08]Sock 7.Thread stoped [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:01]accept exits with 9 [15:45:01]New connection [15:45:01]New thread 3066994020 created [15:45:01]Thread 3067137380 joined [15:45:01]Waiting for new connection... [15:45:01] Sock 9.Parse request [15:45:01]Sock 9.Check first char [15:45:01]Sock 9.First char is OK [15:45:01]request: POST /json_proto HTTP/1.0 [15:45:01]Method: POST [15:45:01]URL: /json_proto [15:45:01]Method is POST - this is cgi request [15:45:01]url: /json_proto [15:45:01]query_string will be loaded in cgi processing [15:45:01]execute_cgi json_proto POST (null) [15:45:01]execute_cgi path=json_proto method=POST [15:45:01]POST find Content-Length [15:45:01]Host: 172.17.44.195:8080 [15:45:01]Content-Length: 675 [15:45:01]Content-Type: application/json [15:45:01] [15:45:01]POST finish read [15:45:01]Found Content-Length = 675 [15:45:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964782", "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" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:01]execute_script... [15:45: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)1964782", "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" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:01]POST & json_proto [15:45:01]process_json_proto [15:45:01]json parsed OK: [15:45:01]protocol is kg_v1.0 [15:45:01]action value=close_receipt [15:45:01]process_action close_receipt [15:45:01]cmd_close_receipt [15:45:01]MH_GetDate [15:45:01]Write to MH i2c: F0 00 00 A5 4F E3 [15:45:01]Write i2c OK [15:45:01]MH_I2C_Read... [15:45:01]Read from MH i2c: F0 [15:45:01]MH_I2C_Read... [15:45:01]Read from MH i2c: F0 09 00 [15:45:01]MH_I2C_Read... [15:45:01]Read from MH i2c: F0 09 00 A5 4F 00 81 C8 17 67 82 C9 CF 66 33 [15:45:01]GetLastDocTimeStamp 1729611848 [15:45:01]current date 1729611905 [15:45:01]FM_GetShiftState [15:45:01]SAM_PROTO_GetShiftState [15:45:01]wFMCommunicate request_size=4 [15:45:01]MH_SAM_APDU [15:45:01]CAPDU: 80 13 01 00 [15:45:01]Write to MH i2c: E2 08 00 A6 4F 80 13 01 00 00 00 00 00 72 [15:45:01]Write i2c OK [15:45:01]MH_I2C_Read... [15:45:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:01]Read from MH i2c: E2 [15:45:01]MH_I2C_Read... [15:45:01]Read from MH i2c: E2 0E 00 [15:45:01]MH_I2C_Read... [15:45:01]Read from MH i2c: E2 0E 00 A6 4F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 39 [15:45:01]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:45:01]wFMCommunicate OK [15:45:01]SAM_PROTO_GetShiftState done [15:45:01]FM_GetShiftState done [15:45:01]opened in 1729555538 [15:45:01]opened+sec_in_day 1729641938 [15:45:01]quantity*price = 40005 [15:45:01]sum+1 = 40006 [15:45:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 267 22.10.2024 15:45 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228303 ФПД: 44364515562077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154505&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228303&fm=44364515562077&tin=02508201610067®Number=0000000000091685&sum=40000 [15:45:02]StoreToDocumentArchive [15:45:02]shift 535 fd 228303 [15:45:02]save to /storage/0535/doc_00228303 [15:45:02]save last doc name /storage/0535/doc_00228303 to /storage/kkm_last_doc_name [15:45:02]save OK [15:45:02]Clear old archive folders... [15:45:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:45:02]tlvbuf is 008EBBF0 [15:45:02]SAM_PROTO_ClearQueue [15:45:02]wFMCommunicate request_size=4 [15:45:02]MH_SAM_APDU [15:45:02]CAPDU: 80 09 00 00 [15:45:02]Write to MH i2c: E2 08 00 B3 4F 80 09 00 00 00 00 00 00 74 [15:45:02]Write i2c OK [15:45:02]MH_I2C_Read... [15:45:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:02]Read from MH i2c: E2 [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: E2 03 00 [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: E2 03 00 B3 4F 00 90 00 76 [15:45:02]RAPDU: 90 00 [15:45:02]wFMCommunicate OK [15:45:02]SAM_PROTO_ClearQueue done [15:45:02]KKMCreateOFDPacket [15:45:02]OFDProtocolAddRootSTLVToBuf [15:45:02]FM_MakeSignedData [15:45:02]FM_MakeSignedData [15:45:02]SAM_PROTO_SignData [15:45:02]wFMCommunicate request_size=4 [15:45:02]MH_SAM_APDU [15:45:02]CAPDU: 80 0D 01 02 [15:45:02]Write to MH i2c: E2 08 00 B4 4F 80 0D 01 02 00 00 00 00 7C [15:45:02]Write i2c OK [15:45:02]MH_I2C_Read... [15:45:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:02]Read from MH i2c: E2 [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: E2 03 00 [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: E2 03 00 B4 4F 00 90 00 77 [15:45:02]RAPDU: 90 00 [15:45:02]wFMCommunicate OK [15:45:02]wFMCommunicate request_size=255 [15:45:02]MH_SAM_APDU [15:45: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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 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 0B 01 00 00 F4 03 04 00 81 C8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CF 7B 03 00 35 04 06 00 28 59 6B 30 [15:45:02]Write to MH i2c: E2 02 01 B5 4F 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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 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 0B 01 00 00 F4 03 04 00 81 C8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CF 7B 03 00 35 04 06 00 28 59 6B 30 00 00 51 [15:45:02]Write i2c OK [15:45:02]MH_I2C_Read... [15:45:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:02]Read from MH i2c: E2 [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: E2 03 00 [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: E2 03 00 B5 4F 00 90 00 78 [15:45:02]RAPDU: 90 00 [15:45:02]wFMCommunicate OK [15:45:02]wFMCommunicate request_size=7 [15:45:02]MH_SAM_APDU [15:45:02]CAPDU: 80 0D 02 02 02 D2 5D [15:45:02]Write to MH i2c: E2 0A 00 B6 4F 80 0D 02 02 02 00 D2 5D 00 00 B2 [15:45:02]Write i2c OK [15:45:02]MH_I2C_Read... [15:45:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:02]Read from MH i2c: E2 [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: E2 03 00 [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: E2 03 00 B6 4F 00 90 00 79 [15:45:02]RAPDU: 90 00 [15:45:02]wFMCommunicate OK [15:45:02]wFMCommunicate request_size=4 [15:45:02]MH_SAM_APDU [15:45:02]CAPDU: 80 0D 03 02 [15:45:02]Write to MH i2c: E2 08 00 B7 4F 80 0D 03 02 00 00 00 00 81 [15:45:02]Write i2c OK [15:45:02]MH_I2C_Read... [15:45:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:02]Read from MH i2c: E2 [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: E2 0B 00 [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: E2 0B 00 B7 4F 00 32 C7 DB 24 D6 79 C2 CC 90 00 57 [15:45:02]RAPDU: 32 C7 DB 24 D6 79 C2 CC 90 00 [15:45:02]wFMCommunicate OK [15:45:02]SAM_PROTO_SignData done [15:45:02]FM_MakeSignedData done [15:45:02]CreateOFDProtocolMessage [15:45:02]wFMCommunicate request_size=4 [15:45:02]MH_SAM_APDU [15:45:02]CAPDU: 80 11 00 00 [15:45:02]Write to MH i2c: E2 08 00 B8 4F 80 11 00 00 00 00 00 00 81 [15:45:02]Write i2c OK [15:45:02]MH_I2C_Read... [15:45:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:02]Read from MH i2c: E2 [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: E2 17 00 [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: E2 17 00 B8 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D8 [15:45:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:45:02]wFMCommunicate OK [15:45:02]CreateOFDProtocolMessage done [15:45:02]OFDSenderStorePacket 228303 [15:45:02]StoreOFDPacket docnum=228303 [15:45:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 54 15 04 01 3D 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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 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 0B 01 00 00 F4 03 04 00 81 C8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CF 7B 03 00 35 04 06 00 28 59 6B 30 D2 5D 32 C7 DB 24 D6 79 C2 CC [15:45:02]CheckFolder [15:45:02]dirname=/storage/ofd_packets [15:45:02]CheckFolder done [15:45:02]ProducePacketName [15:45:02]name=ofd_packets/00228303 [15:45:02]NVStorageSaveData ofd_packets/00228303 [15:45:02]File name is /storage/ofd_packets/00228303 [15:45:02]Write 298 bytes [15:45:02]NVStorageSaveData done [15:45:02]OFDSenderStorePacket done [15:45:02]KKMCreateOFDPacket done [15:45:02]NVStorageSaveData kkm_last_timestamp [15:45:02]File name is /storage/kkm_last_timestamp [15:45:02]Write 4 bytes [15:45:02]NVStorageSaveData done [15:45:02]ExternCall_PrintAddStr [15:45:02]wPrintStart [15:45:02]Write to MH i2c: 01 00 00 B9 4F 08 [15:45:02]Write i2c OK [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: 01 [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: 01 07 00 [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: 01 07 00 B9 4F 00 00 00 00 00 FF 0F 1D [15:45:02]RasterBufferAndPrint [15:45:02]line Счет N : (1)1964782 [15:45:02]line ИНН: 02508201610067 [15:45:02]line Контрольно-Кассовый Чек [15:45:02]line ПРОДАЖА [15:45:02]line ТРК (МРК, ГНК) : 11 [15:45:02]line Товар: 2710194210 [15:45:02]line ДТ-К-5 [15:45:02]line 5.250 * 76.20 [15:45:02]line = 400.05 [15:45:02]line НДС 12% НСП 1% [15:45:02]line > о реализуемом товаре [15:45:02]line ОКРУГЛЕНИЕ: -0.05 [15:45:02]line ИТОГО: 400.00 [15:45:02]line Внесено: 400.00 [15:45:02]line СДАЧА: 0.00 [15:45:02]line НСП 1% : 3.54 [15:45:02]line НДС 12% : 42.48 [15:45:02]line Наличными: 400.00 [15:45:02]line Безнал.: 0.00 [15:45:02]line Место: АЗС № 133 "Партнер Нефть" [15:45:02]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:45:02]line СНО: Общий режим [15:45:02]line Чек 267 22.10.2024 15:45 [15:45:02]line Смена: 535 ФФД: 1.0 [15:45:02]line ЗНМ: 0300000091 [15:45:02]line РНМ: 0000000000091685 [15:45:02]line Версия ККМ: 001 [15:45:02]line ФМ: 0000000000871839 [15:45:02]line ФД: 228303 [15:45:02]line ФПД: 44364515562077 [15:45:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154505&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228303&fm=44364515562077&tin=02508201610067®Number=0000000000091685&sum=40000 [15:45:03]OFD Sender: Processing packet 228303 [packets to send 38, broken 37] [15:45:03]ProducePacketName [15:45:03]name=ofd_packets/00228303 [15:45:03]OFD Sender: To server: pG, [15:45:03]CommunicateWithHost lk.salyk.kg:30040 [15:45:03]ConnectInit lk.salyk.kg [15:45:03]written 0, free lines is 4095 [15:45:03]Connected sock=10 [15:45:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 54 15 04 01 3D 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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 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 0B 01 00 00 F4 03 04 00 81 C8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CF 7B 03 00 35 04 06 00 28 59 6B 30 D2 5D 32 C7 DB 24 D6 79 C2 CC [15:45:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 6D 62 47 00 7D 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CF 7B 03 00 F4 03 04 00 79 73 17 67 B6 04 01 00 00 8F 7F 69 32 A2 B4 82 6D [15:45:03]CommunicateWithHost err = 0 [15:45:03]CheckOFDResponse [15:45:03]1017 (14) - 77093643461234 [15:45:03]1041 (16) - 0000000000871839 [15:45:03]1040 (4) - 228303 [15:45:03]1012 (4) - 22.10.2024 09:42 [15:45:03]1206 (1) - 0 [15:45:03]OFD Sender: Remove packet 228303 [15:45:03]ProducePacketName [15:45:03]name=ofd_packets/00228303 [15:45:03]NVStorageDeleteData [15:45:03]Write to MH i2c: 01 00 00 E3 4F 32 [15:45:03]Write i2c OK [15:45:03]MH_I2C_Read... [15:45:03]Read from MH i2c: 01 [15:45:03]MH_I2C_Read... [15:45:03]Read from MH i2c: 01 07 00 [15:45:03]MH_I2C_Read... [15:45:03]Read from MH i2c: 01 07 00 E3 4F 00 00 00 00 00 AE 0C F3 [15:45:03]RasterBufferAndPrint [15:45:03]line [15:45:03]line [15:45:03]line [15:45:03]line [15:45:03]line [15:45:03]written 0, free lines is 3249 [15:45:03]MH_Cut [15:45:03]Write to MH i2c: D1 01 00 EA 4F 01 0B [15:45:03]Write i2c OK [15:45:03]MH_I2C_Read... [15:45:03]Read from MH i2c: D1 [15:45:03]MH_I2C_Read... [15:45:03]Read from MH i2c: D1 01 00 [15:45:03]MH_I2C_Read... [15:45:03]Read from MH i2c: D1 01 00 EA 4F 00 0A [15:45:03]Write to MH i2c: 01 00 00 EB 4F 3A [15:45:03]Write i2c OK [15:45:03]MH_I2C_Read... [15:45:03]OFD Sender: No OFD packet to send [15:45:04]*** Cut start [15:45:04]*** Partial cut [15:45:04]*** CUTSNS_PIN = 1 [15:45:04]*** CUTSNS_PIN = 0 [15:45:04]*** Brake cut motor [15:45:05]Read from MH i2c: 01 [15:45:05]MH_I2C_Read... [15:45:05]*** Stop cut motor [15:45:05]*** Cut end [15:45:05]Read from MH i2c: 01 07 00 [15:45:05]MH_I2C_Read... [15:45:05]Read from MH i2c: 01 07 00 EB 4F 00 00 00 00 00 FF 0F 4F [15:45:05]process_action close_receipt done [15:45:05]requested_data is exist [15:45:05]produce_requested_data [15:45:05]requested_item fm.sn is exist - process it [15:45:05]wFMCommunicate request_size=4 [15:45:05]MH_SAM_APDU [15:45:05]CAPDU: 80 11 00 00 [15:45:05]Write to MH i2c: E2 08 00 EC 4F 80 11 00 00 00 00 00 00 B5 [15:45:05]Write i2c OK [15:45:05]MH_I2C_Read... [15:45:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:05]Read from MH i2c: E2 [15:45:05]MH_I2C_Read... [15:45:05]Read from MH i2c: E2 17 00 [15:45:05]MH_I2C_Read... [15:45:05]Read from MH i2c: E2 17 00 EC 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0C [15:45:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:45:05]wFMCommunicate OK [15:45:05]requested_item fd.num is exist - process it [15:45:05]SAM_PROTO_GetFieldsCounters [15:45:05]wFMCommunicate request_size=4 [15:45:05]MH_SAM_APDU [15:45:05]CAPDU: 80 13 00 00 [15:45:05]Write to MH i2c: E2 08 00 ED 4F 80 13 00 00 00 00 00 00 B8 [15:45:05]Write i2c OK [15:45:05]MH_I2C_Read... [15:45:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:45:05]Read from MH i2c: E2 [15:45:05]MH_I2C_Read... [15:45:05]Read from MH i2c: E2 62 00 [15:45:05]MH_I2C_Read... [15:45:05]Read from MH i2c: E2 62 00 ED 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 CF 7B 03 00 0E 04 04 00 17 02 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 6B [15:45:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 CF 7B 03 00 0E 04 04 00 17 02 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 [15:45:05]wFMCommunicate OK [15:45:05]SAM_PROTO_GetFieldsCounters done [15:45:05]requested_item shift.num is exist - process it [15:45:05]requested_item shift.opened is exist - process it [15:45:05]req_shift_opened [15:45:05]FM_GetShiftState [15:45:05]SAM_PROTO_GetShiftState [15:45:05]wFMCommunicate request_size=4 [15:45:05]MH_SAM_APDU [15:45:05]CAPDU: 80 13 01 00 [15:45:05]Write to MH i2c: E2 08 00 EE 4F 80 13 01 00 00 00 00 00 BA [15:45:05]Write i2c OK [15:45:05]MH_I2C_Read... [15:45:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:05]Read from MH i2c: E2 [15:45:05]MH_I2C_Read... [15:45:05]Read from MH i2c: E2 0E 00 [15:45:05]MH_I2C_Read... [15:45:05]Read from MH i2c: E2 0E 00 EE 4F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 81 [15:45:05]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:45:05]wFMCommunicate OK [15:45:05]SAM_PROTO_GetShiftState done [15:45:05]FM_GetShiftState done [15:45:05]req_shift_opened done [15:45:05]requested_item shift.open_date is exist - process it [15:45:05]req_shift_open_date [15:45:05]req_shift_open_date done [15:45:05]produce_requested_data done [15:45:05]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228303,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:45:05]process_action_free close_receipt [15:45:05]json_value_free [15:45:05]json_value_free done [15:45:05]process_json_proto returns [15:45:05]Send response to host [15:45:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228303,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:45:05]free response buf [15:45:05]execute_script done [15:45:05]execute_script returns [15:45:05]free content buf [15:45:05]Sock 9.Close socket [15:45:05]Sock 9.Thread stoped [15:45:08]OFD Sender: No OFD packet to send [15:45:13]OFD Sender: No OFD packet to send [15:45:18]OFD Sender: No OFD packet to send [15:45:23]OFD Sender: No OFD packet to send [15:45:28]OFD Sender: No OFD packet to send [15:45:33]OFD Sender: No OFD packet to send [15:45:38]OFD Sender: No OFD packet to send [15:45:43]OFD Sender: No OFD packet to send [15:45:48]OFD Sender: No OFD packet to send [15:45:53]OFD Sender: No OFD packet to send [15:45:58]OFD Sender: No OFD packet to send [15:46:03]OFD Sender: No OFD packet to send [15:46:07]accept exits with 7 [15:46:07]New connection [15:46:07]New thread 3067137380 created [15:46:07]Thread 3066994020 joined [15:46:07]Waiting for new connection... [15:46:07] Sock 7.Parse request [15:46:07]Sock 7.Check first char [15:46:07]Sock 7.First char is OK [15:46:07]request: POST /json_proto HTTP/1.0 [15:46:07]Method: POST [15:46:07]URL: /json_proto [15:46:07]Method is POST - this is cgi request [15:46:07]url: /json_proto [15:46:07]query_string will be loaded in cgi processing [15:46:07]execute_cgi json_proto POST (null) [15:46:07]execute_cgi path=json_proto method=POST [15:46:07]POST find Content-Length [15:46:07]Host: 172.17.44.195:8080 [15:46:07]Content-Length: 675 [15:46:07]Content-Type: application/json [15:46:07] [15:46:07]POST finish read [15:46:07]Found Content-Length = 675 [15:46:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:46:07]execute_script... [15:46: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)1964783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:46:07]POST & json_proto [15:46:07]process_json_proto [15:46:07]json parsed OK: [15:46:07]protocol is kg_v1.0 [15:46:07]action value=close_receipt [15:46:07]process_action close_receipt [15:46:07]cmd_close_receipt [15:46:07]MH_GetDate [15:46:07]Write to MH i2c: F0 00 00 EF 4F 2D [15:46:07]Write i2c OK [15:46:07]MH_I2C_Read... [15:46:07]Read from MH i2c: F0 [15:46:07]MH_I2C_Read... [15:46:07]Read from MH i2c: F0 09 00 [15:46:07]MH_I2C_Read... [15:46:07]Read from MH i2c: F0 09 00 EF 4F 00 C4 C8 17 67 82 C9 CF 66 C0 [15:46:07]GetLastDocTimeStamp 1729611905 [15:46:07]current date 1729611972 [15:46:07]FM_GetShiftState [15:46:07]SAM_PROTO_GetShiftState [15:46:07]wFMCommunicate request_size=4 [15:46:07]MH_SAM_APDU [15:46:07]CAPDU: 80 13 01 00 [15:46:07]Write to MH i2c: E2 08 00 F0 4F 80 13 01 00 00 00 00 00 BC [15:46:07]Write i2c OK [15:46:07]MH_I2C_Read... [15:46:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:07]Read from MH i2c: E2 [15:46:07]MH_I2C_Read... [15:46:07]Read from MH i2c: E2 0E 00 [15:46:07]MH_I2C_Read... [15:46:07]Read from MH i2c: E2 0E 00 F0 4F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 83 [15:46:07]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:46:07]wFMCommunicate OK [15:46:07]SAM_PROTO_GetShiftState done [15:46:07]FM_GetShiftState done [15:46:07]opened in 1729555538 [15:46:07]opened+sec_in_day 1729641938 [15:46:07]quantity*price = 50063 [15:46:07]sum+1 = 50064 [15:46:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 268 22.10.2024 15:46 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228304 ФПД: 239183460266728 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154612&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228304&fm=239183460266728&tin=02508201610067®Number=0000000000091685&sum=50000 [15:46:08]StoreToDocumentArchive [15:46:08]shift 535 fd 228304 [15:46:08]save to /storage/0535/doc_00228304 [15:46:08]save last doc name /storage/0535/doc_00228304 to /storage/kkm_last_doc_name [15:46:08]save OK [15:46:08]Clear old archive folders... [15:46:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:46:08]tlvbuf is 008D8FE0 [15:46:08]SAM_PROTO_ClearQueue [15:46:08]wFMCommunicate request_size=4 [15:46:08]MH_SAM_APDU [15:46:08]CAPDU: 80 09 00 00 [15:46:08]Write to MH i2c: E2 08 00 FD 4F 80 09 00 00 00 00 00 00 BE [15:46:08]Write i2c OK [15:46:08]MH_I2C_Read... [15:46:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:46:08]Read from MH i2c: E2 [15:46:08]MH_I2C_Read... [15:46:08]Read from MH i2c: E2 03 00 [15:46:08]MH_I2C_Read... [15:46:08]Read from MH i2c: E2 03 00 FD 4F 00 90 00 C0 [15:46:08]RAPDU: 90 00 [15:46:08]wFMCommunicate OK [15:46:08]SAM_PROTO_ClearQueue done [15:46:08]KKMCreateOFDPacket [15:46:08]OFDProtocolAddRootSTLVToBuf [15:46:08]FM_MakeSignedData [15:46:08]FM_MakeSignedData [15:46:08]SAM_PROTO_SignData [15:46:08]wFMCommunicate request_size=4 [15:46:08]MH_SAM_APDU [15:46:08]CAPDU: 80 0D 01 02 [15:46:08]Write to MH i2c: E2 08 00 FE 4F 80 0D 01 02 00 00 00 00 C6 [15:46:08]Write i2c OK [15:46:08]MH_I2C_Read... [15:46:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:46:08]Read from MH i2c: E2 [15:46:08]MH_I2C_Read... [15:46:08]Read from MH i2c: E2 03 00 [15:46:08]MH_I2C_Read... [15:46:08]Read from MH i2c: E2 03 00 FE 4F 00 90 00 C1 [15:46:08]RAPDU: 90 00 [15:46:08]wFMCommunicate OK [15:46:08]wFMCommunicate request_size=255 [15:46:08]MH_SAM_APDU [15:46:08]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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 C4 C8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D0 7B 03 00 35 04 06 00 D9 89 3D 2F [15:46:08]Write to MH i2c: E2 02 01 FF 4F 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 C4 C8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D0 7B 03 00 35 04 06 00 D9 89 3D 2F 00 00 27 [15:46:08]Write i2c OK [15:46:08]MH_I2C_Read... [15:46:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:08]Read from MH i2c: E2 [15:46:08]MH_I2C_Read... [15:46:08]Read from MH i2c: E2 03 00 [15:46:08]MH_I2C_Read... [15:46:08]Read from MH i2c: E2 03 00 FF 4F 00 90 00 C2 [15:46:08]RAPDU: 90 00 [15:46:08]wFMCommunicate OK [15:46:08]wFMCommunicate request_size=7 [15:46:08]MH_SAM_APDU [15:46:08]CAPDU: 80 0D 02 02 02 72 E8 [15:46:08]Write to MH i2c: E2 0A 00 00 50 80 0D 02 02 02 00 72 E8 00 00 28 [15:46:08]Write i2c OK [15:46:08]MH_I2C_Read... [15:46:09]OFD Sender: No OFD packet to send [15:46:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:09]Read from MH i2c: E2 [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: E2 03 00 [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: E2 03 00 00 50 00 90 00 C4 [15:46:09]RAPDU: 90 00 [15:46:09]wFMCommunicate OK [15:46:09]wFMCommunicate request_size=4 [15:46:09]MH_SAM_APDU [15:46:09]CAPDU: 80 0D 03 02 [15:46:09]Write to MH i2c: E2 08 00 01 50 80 0D 03 02 00 00 00 00 CC [15:46:09]Write i2c OK [15:46:09]MH_I2C_Read... [15:46:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:46:09]Read from MH i2c: E2 [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: E2 0B 00 [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: E2 0B 00 01 50 00 1C 61 02 69 78 D2 08 C3 90 00 CA [15:46:09]RAPDU: 1C 61 02 69 78 D2 08 C3 90 00 [15:46:09]wFMCommunicate OK [15:46:09]SAM_PROTO_SignData done [15:46:09]FM_MakeSignedData done [15:46:09]CreateOFDProtocolMessage [15:46:09]wFMCommunicate request_size=4 [15:46:09]MH_SAM_APDU [15:46:09]CAPDU: 80 11 00 00 [15:46:09]Write to MH i2c: E2 08 00 02 50 80 11 00 00 00 00 00 00 CC [15:46:09]Write i2c OK [15:46:09]MH_I2C_Read... [15:46:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:09]Read from MH i2c: E2 [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: E2 17 00 [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: E2 17 00 02 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 23 [15:46:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:46:09]wFMCommunicate OK [15:46:09]CreateOFDProtocolMessage done [15:46:09]OFDSenderStorePacket 228304 [15:46:09]StoreOFDPacket docnum=228304 [15:46:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 DF 38 04 01 B3 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 C4 C8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D0 7B 03 00 35 04 06 00 D9 89 3D 2F 72 E8 1C 61 02 69 78 D2 08 C3 [15:46:09]CheckFolder [15:46:09]dirname=/storage/ofd_packets [15:46:09]CheckFolder done [15:46:09]ProducePacketName [15:46:09]name=ofd_packets/00228304 [15:46:09]NVStorageSaveData ofd_packets/00228304 [15:46:09]File name is /storage/ofd_packets/00228304 [15:46:09]Write 298 bytes [15:46:09]NVStorageSaveData done [15:46:09]OFDSenderStorePacket done [15:46:09]KKMCreateOFDPacket done [15:46:09]NVStorageSaveData kkm_last_timestamp [15:46:09]File name is /storage/kkm_last_timestamp [15:46:09]Write 4 bytes [15:46:09]NVStorageSaveData done [15:46:09]ExternCall_PrintAddStr [15:46:09]wPrintStart [15:46:09]Write to MH i2c: 01 00 00 03 50 53 [15:46:09]Write i2c OK [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: 01 [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: 01 07 00 [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: 01 07 00 03 50 00 00 00 00 00 FF 0F 68 [15:46:09]RasterBufferAndPrint [15:46:09]line Счет N : (1)1964783 [15:46:09]line ИНН: 02508201610067 [15:46:09]line Контрольно-Кассовый Чек [15:46:09]line ПРОДАЖА [15:46:09]line ТРК (МРК, ГНК) : 31 [15:46:09]line Товар: 2710194210 [15:46:09]line ДТ-К-5 [15:46:09]line 6.570 * 76.20 [15:46:09]line = 500.63 [15:46:09]line НДС 12% НСП 1% [15:46:09]line > о реализуемом товаре [15:46:09]line ОКРУГЛЕНИЕ: -0.63 [15:46:09]line ИТОГО: 500.00 [15:46:09]line Внесено: 500.00 [15:46:09]line СДАЧА: 0.00 [15:46:09]line НСП 1% : 4.43 [15:46:09]line НДС 12% : 53.16 [15:46:09]line Наличными: 500.00 [15:46:09]line Безнал.: 0.00 [15:46:09]line Место: АЗС № 133 "Партнер Нефть" [15:46:09]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:46:09]line СНО: Общий режим [15:46:09]line Чек 268 22.10.2024 15:46 [15:46:09]line Смена: 535 ФФД: 1.0 [15:46:09]line ЗНМ: 0300000091 [15:46:09]line РНМ: 0000000000091685 [15:46:09]line Версия ККМ: 001 [15:46:09]line ФМ: 0000000000871839 [15:46:09]line ФД: 228304 [15:46:09]line ФПД: 239183460266728 [15:46:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154612&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228304&fm=239183460266728&tin=02508201610067®Number=0000000000091685&sum=50000 [15:46:09]OFD Sender: Processing packet 228304 [packets to send 38, broken 37] [15:46:09]ProducePacketName [15:46:09]name=ofd_packets/00228304 [15:46:09]OFD Sender: To server: pG, [15:46:09]CommunicateWithHost lk.salyk.kg:30040 [15:46:09]ConnectInit lk.salyk.kg [15:46:09]written 0, free lines is 4095 [15:46:09]Connected sock=10 [15:46:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 DF 38 04 01 B3 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 C4 C8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D0 7B 03 00 35 04 06 00 D9 89 3D 2F 72 E8 1C 61 02 69 78 D2 08 C3 [15:46:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 09 3C 47 00 64 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D0 7B 03 00 F4 03 04 00 BC 73 17 67 B6 04 01 00 00 26 9D A2 5B C8 E9 2C 7D [15:46:09]CommunicateWithHost err = 0 [15:46:09]CheckOFDResponse [15:46:09]1017 (14) - 77093643461234 [15:46:09]1041 (16) - 0000000000871839 [15:46:09]1040 (4) - 228304 [15:46:09]1012 (4) - 22.10.2024 09:43 [15:46:09]1206 (1) - 0 [15:46:09]OFD Sender: Remove packet 228304 [15:46:09]ProducePacketName [15:46:09]name=ofd_packets/00228304 [15:46:09]NVStorageDeleteData [15:46:09]Write to MH i2c: 01 00 00 2D 50 7D [15:46:09]Write i2c OK [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: 01 [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: 01 07 00 [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: 01 07 00 2D 50 00 00 00 00 00 B9 0C 49 [15:46:09]RasterBufferAndPrint [15:46:09]line [15:46:09]line [15:46:09]line [15:46:09]line [15:46:09]line [15:46:09]written 0, free lines is 3263 [15:46:09]MH_Cut [15:46:09]Write to MH i2c: D1 01 00 34 50 01 56 [15:46:09]Write i2c OK [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: D1 [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: D1 01 00 [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: D1 01 00 34 50 00 55 [15:46:09]Write to MH i2c: 01 00 00 35 50 85 [15:46:09]Write i2c OK [15:46:09]MH_I2C_Read... [15:46:10]OFD Sender: No OFD packet to send [15:46:10]*** Cut start [15:46:10]*** Partial cut [15:46:10]*** CUTSNS_PIN = 1 [15:46:10]*** CUTSNS_PIN = 0 [15:46:11]*** Brake cut motor [15:46:11]Read from MH i2c: 01 [15:46:11]MH_I2C_Read... [15:46:11]*** Stop cut motor [15:46:11]*** Cut end [15:46:11]Read from MH i2c: 01 07 00 [15:46:11]MH_I2C_Read... [15:46:11]Read from MH i2c: 01 07 00 35 50 00 00 00 00 00 FF 0F 9A [15:46:11]process_action close_receipt done [15:46:11]requested_data is exist [15:46:11]produce_requested_data [15:46:11]requested_item fm.sn is exist - process it [15:46:11]wFMCommunicate request_size=4 [15:46:11]MH_SAM_APDU [15:46:11]CAPDU: 80 11 00 00 [15:46:11]Write to MH i2c: E2 08 00 36 50 80 11 00 00 00 00 00 00 00 [15:46:11]Write i2c OK [15:46:11]MH_I2C_Read... [15:46:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:11]Read from MH i2c: E2 [15:46:11]MH_I2C_Read... [15:46:11]Read from MH i2c: E2 17 00 [15:46:11]MH_I2C_Read... [15:46:11]Read from MH i2c: E2 17 00 36 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 57 [15:46:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:46:11]wFMCommunicate OK [15:46:11]requested_item fd.num is exist - process it [15:46:11]SAM_PROTO_GetFieldsCounters [15:46:11]wFMCommunicate request_size=4 [15:46:11]MH_SAM_APDU [15:46:11]CAPDU: 80 13 00 00 [15:46:11]Write to MH i2c: E2 08 00 37 50 80 13 00 00 00 00 00 00 03 [15:46:11]Write i2c OK [15:46:11]MH_I2C_Read... [15:46:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:11]Read from MH i2c: E2 [15:46:11]MH_I2C_Read... [15:46:11]Read from MH i2c: E2 62 00 [15:46:11]MH_I2C_Read... [15:46:11]Read from MH i2c: E2 62 00 37 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D0 7B 03 00 0E 04 04 00 17 02 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 BA [15:46:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D0 7B 03 00 0E 04 04 00 17 02 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 [15:46:11]wFMCommunicate OK [15:46:11]SAM_PROTO_GetFieldsCounters done [15:46:11]requested_item shift.num is exist - process it [15:46:11]requested_item shift.opened is exist - process it [15:46:11]req_shift_opened [15:46:11]FM_GetShiftState [15:46:11]SAM_PROTO_GetShiftState [15:46:11]wFMCommunicate request_size=4 [15:46:11]MH_SAM_APDU [15:46:11]CAPDU: 80 13 01 00 [15:46:11]Write to MH i2c: E2 08 00 38 50 80 13 01 00 00 00 00 00 05 [15:46:11]Write i2c OK [15:46:11]MH_I2C_Read... [15:46:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:11]Read from MH i2c: E2 [15:46:11]MH_I2C_Read... [15:46:11]Read from MH i2c: E2 0E 00 [15:46:11]MH_I2C_Read... [15:46:11]Read from MH i2c: E2 0E 00 38 50 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 CC [15:46:11]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:46:11]wFMCommunicate OK [15:46:11]SAM_PROTO_GetShiftState done [15:46:11]FM_GetShiftState done [15:46:11]req_shift_opened done [15:46:11]requested_item shift.open_date is exist - process it [15:46:11]req_shift_open_date [15:46:11]req_shift_open_date done [15:46:11]produce_requested_data done [15:46:11]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228304,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:46:11]process_action_free close_receipt [15:46:11]json_value_free [15:46:11]json_value_free done [15:46:11]process_json_proto returns [15:46:11]Send response to host [15:46:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228304,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:46:11]free response buf [15:46:11]execute_script done [15:46:11]execute_script returns [15:46:11]free content buf [15:46:11]Sock 7.Close socket [15:46:11]Sock 7.Thread stoped [15:46:15]OFD Sender: No OFD packet to send [15:46:20]OFD Sender: No OFD packet to send [15:46:25]OFD Sender: No OFD packet to send [15:46:30]OFD Sender: No OFD packet to send [15:46:35]OFD Sender: No OFD packet to send [15:46:40]OFD Sender: No OFD packet to send [15:46:45]OFD Sender: No OFD packet to send [15:46:50]OFD Sender: No OFD packet to send [15:46:55]OFD Sender: No OFD packet to send [15:47:00]OFD Sender: No OFD packet to send [15:47:05]OFD Sender: No OFD packet to send [15:47:10]OFD Sender: No OFD packet to send [15:47:15]OFD Sender: No OFD packet to send [15:47:20]OFD Sender: No OFD packet to send [15:47:25]OFD Sender: No OFD packet to send [15:47:30]OFD Sender: No OFD packet to send [15:47:35]OFD Sender: No OFD packet to send [15:47:40]OFD Sender: No OFD packet to send [15:47:45]OFD Sender: No OFD packet to send [15:47:50]OFD Sender: No OFD packet to send [15:47:55]OFD Sender: No OFD packet to send [15:48:00]OFD Sender: No OFD packet to send [15:48:05]OFD Sender: No OFD packet to send [15:48:10]OFD Sender: No OFD packet to send [15:48:15]OFD Sender: No OFD packet to send [15:48:20]OFD Sender: No OFD packet to send [15:48:25]OFD Sender: No OFD packet to send [15:48:30]OFD Sender: No OFD packet to send [15:48:35]OFD Sender: No OFD packet to send [15:48:40]OFD Sender: No OFD packet to send [15:48:45]OFD Sender: No OFD packet to send [15:48:50]OFD Sender: No OFD packet to send [15:48:55]OFD Sender: No OFD packet to send [15:49:00]OFD Sender: No OFD packet to send [15:49:05]OFD Sender: No OFD packet to send [15:49:10]accept exits with 9 [15:49:10]New connection [15:49:10]New thread 3066994020 created [15:49:10]Thread 3067137380 joined [15:49:10]Waiting for new connection... [15:49:10] Sock 9.Parse request [15:49:10]Sock 9.Check first char [15:49:10]Sock 9.First char is OK [15:49:10]request: POST /json_proto HTTP/1.0 [15:49:10]Method: POST [15:49:10]URL: /json_proto [15:49:10]Method is POST - this is cgi request [15:49:10]url: /json_proto [15:49:10]query_string will be loaded in cgi processing [15:49:10]execute_cgi json_proto POST (null) [15:49:10]execute_cgi path=json_proto method=POST [15:49:10]POST find Content-Length [15:49:10]Host: 172.17.44.195:8080 [15:49:10]Content-Length: 678 [15:49:10]Content-Type: application/json [15:49:10] [15:49:10]POST finish read [15:49:10]Found Content-Length = 678 [15:49:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [15:49:10]execute_script... [15:49: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)1964784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [15:49:10]POST & json_proto [15:49:10]process_json_proto [15:49:10]json parsed OK: [15:49:10]protocol is kg_v1.0 [15:49:10]action value=close_receipt [15:49:10]process_action close_receipt [15:49:10]cmd_close_receipt [15:49:10]MH_GetDate [15:49:10]Write to MH i2c: F0 00 00 39 50 78 [15:49:10]Write i2c OK [15:49:10]MH_I2C_Read... [15:49:10]Read from MH i2c: F0 [15:49:10]MH_I2C_Read... [15:49:10]Read from MH i2c: F0 09 00 [15:49:10]MH_I2C_Read... [15:49:10]Read from MH i2c: F0 09 00 39 50 00 7A C9 17 67 82 C9 CF 66 C2 [15:49:10]GetLastDocTimeStamp 1729611972 [15:49:10]current date 1729612154 [15:49:10]FM_GetShiftState [15:49:10]SAM_PROTO_GetShiftState [15:49:10]wFMCommunicate request_size=4 [15:49:10]MH_SAM_APDU [15:49:10]CAPDU: 80 13 01 00 [15:49:10]Write to MH i2c: E2 08 00 3A 50 80 13 01 00 00 00 00 00 07 [15:49:10]Write i2c OK [15:49:10]MH_I2C_Read... [15:49:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:10]Read from MH i2c: E2 [15:49:10]MH_I2C_Read... [15:49:10]Read from MH i2c: E2 0E 00 [15:49:10]MH_I2C_Read... [15:49:10]Read from MH i2c: E2 0E 00 3A 50 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 CE [15:49:10]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:49:10]wFMCommunicate OK [15:49:10]SAM_PROTO_GetShiftState done [15:49:10]FM_GetShiftState done [15:49:10]opened in 1729555538 [15:49:10]opened+sec_in_day 1729641938 [15:49:10]quantity*price = 20003 [15:49:10]sum+1 = 20004 [15:49:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 269 22.10.2024 15:49 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228305 ФПД: 127995697948834 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154914&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228305&fm=127995697948834&tin=02508201610067®Number=0000000000091685&sum=20000 [15:49:11]StoreToDocumentArchive [15:49:11]shift 535 fd 228305 [15:49:11]save to /storage/0535/doc_00228305 [15:49:11]save last doc name /storage/0535/doc_00228305 to /storage/kkm_last_doc_name [15:49:11]save OK [15:49:11]Clear old archive folders... [15:49:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:49:11]tlvbuf is 008D8910 [15:49:11]SAM_PROTO_ClearQueue [15:49:11]wFMCommunicate request_size=4 [15:49:11]MH_SAM_APDU [15:49:11]CAPDU: 80 09 00 00 [15:49:11]Write to MH i2c: E2 08 00 47 50 80 09 00 00 00 00 00 00 09 [15:49:11]Write i2c OK [15:49:11]MH_I2C_Read... [15:49:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:49:11]Read from MH i2c: E2 [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: E2 03 00 [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: E2 03 00 47 50 00 90 00 0B [15:49:11]RAPDU: 90 00 [15:49:11]wFMCommunicate OK [15:49:11]SAM_PROTO_ClearQueue done [15:49:11]KKMCreateOFDPacket [15:49:11]OFDProtocolAddRootSTLVToBuf [15:49:11]FM_MakeSignedData [15:49:11]FM_MakeSignedData [15:49:11]SAM_PROTO_SignData [15:49:11]wFMCommunicate request_size=4 [15:49:11]MH_SAM_APDU [15:49:11]CAPDU: 80 0D 01 02 [15:49:11]Write to MH i2c: E2 08 00 48 50 80 0D 01 02 00 00 00 00 11 [15:49:11]Write i2c OK [15:49:11]MH_I2C_Read... [15:49:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:49:11]Read from MH i2c: E2 [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: E2 03 00 [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: E2 03 00 48 50 00 90 00 0C [15:49:11]RAPDU: 90 00 [15:49:11]wFMCommunicate OK [15:49:11]wFMCommunicate request_size=255 [15:49:11]MH_SAM_APDU [15:49: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 7A C9 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D1 7B 03 00 35 04 06 00 74 [15:49:11]Write to MH i2c: E2 02 01 49 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 7A C9 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D1 7B 03 00 35 04 06 00 74 00 00 15 [15:49:11]Write i2c OK [15:49:11]MH_I2C_Read... [15:49:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:11]Read from MH i2c: E2 [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: E2 03 00 [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: E2 03 00 49 50 00 90 00 0D [15:49:11]RAPDU: 90 00 [15:49:11]wFMCommunicate OK [15:49:11]wFMCommunicate request_size=10 [15:49:11]MH_SAM_APDU [15:49:11]CAPDU: 80 0D 02 02 05 69 52 1B E8 A2 [15:49:11]Write to MH i2c: E2 0D 00 4A 50 80 0D 02 02 05 00 69 52 1B E8 A2 00 00 7E [15:49:11]Write i2c OK [15:49:11]MH_I2C_Read... [15:49:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:11]Read from MH i2c: E2 [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: E2 03 00 [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: E2 03 00 4A 50 00 90 00 0E [15:49:11]RAPDU: 90 00 [15:49:11]wFMCommunicate OK [15:49:11]wFMCommunicate request_size=4 [15:49:11]MH_SAM_APDU [15:49:11]CAPDU: 80 0D 03 02 [15:49:11]Write to MH i2c: E2 08 00 4B 50 80 0D 03 02 00 00 00 00 16 [15:49:11]Write i2c OK [15:49:11]MH_I2C_Read... [15:49:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:49:11]Read from MH i2c: E2 [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: E2 0B 00 [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: E2 0B 00 4B 50 00 22 7A 33 2D 6B 67 68 F0 90 00 3D [15:49:11]RAPDU: 22 7A 33 2D 6B 67 68 F0 90 00 [15:49:11]wFMCommunicate OK [15:49:11]SAM_PROTO_SignData done [15:49:11]FM_MakeSignedData done [15:49:11]CreateOFDProtocolMessage [15:49:11]wFMCommunicate request_size=4 [15:49:11]MH_SAM_APDU [15:49:11]CAPDU: 80 11 00 00 [15:49:11]Write to MH i2c: E2 08 00 4C 50 80 11 00 00 00 00 00 00 16 [15:49:11]Write i2c OK [15:49:11]MH_I2C_Read... [15:49:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:11]Read from MH i2c: E2 [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: E2 17 00 [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: E2 17 00 4C 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6D [15:49:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:49:11]wFMCommunicate OK [15:49:11]CreateOFDProtocolMessage done [15:49:11]OFDSenderStorePacket 228305 [15:49:11]StoreOFDPacket docnum=228305 [15:49:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 62 A8 07 01 53 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 7A C9 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D1 7B 03 00 35 04 06 00 74 69 52 1B E8 A2 22 7A 33 2D 6B 67 68 F0 [15:49:11]CheckFolder [15:49:11]dirname=/storage/ofd_packets [15:49:11]CheckFolder done [15:49:11]ProducePacketName [15:49:11]name=ofd_packets/00228305 [15:49:11]NVStorageSaveData ofd_packets/00228305 [15:49:11]File name is /storage/ofd_packets/00228305 [15:49:11]Write 301 bytes [15:49:11]NVStorageSaveData done [15:49:11]OFDSenderStorePacket done [15:49:11]KKMCreateOFDPacket done [15:49:11]NVStorageSaveData kkm_last_timestamp [15:49:11]File name is /storage/kkm_last_timestamp [15:49:11]Write 4 bytes [15:49:11]NVStorageSaveData done [15:49:11]ExternCall_PrintAddStr [15:49:11]wPrintStart [15:49:11]Write to MH i2c: 01 00 00 4D 50 9D [15:49:11]Write i2c OK [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: 01 [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: 01 07 00 [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: 01 07 00 4D 50 00 00 00 00 00 FF 0F B2 [15:49:11]RasterBufferAndPrint [15:49:11]line Счет N : (1)1964784 [15:49:11]line ИНН: 02508201610067 [15:49:11]line Контрольно-Кассовый Чек [15:49:11]line ПРОДАЖА [15:49:11]line ТРК (МРК, ГНК) : 43 [15:49:11]line Товар: 2710124130 [15:49:11]line Аи-92-К-5 [15:49:11]line 2.990 * 66.90 [15:49:11]line = 200.03 [15:49:11]line НДС 12% НСП 1% [15:49:11]line > о реализуемом товаре [15:49:11]line ОКРУГЛЕНИЕ: -0.03 [15:49:11]line ИТОГО: 200.00 [15:49:11]line Внесено: 200.00 [15:49:11]line СДАЧА: 0.00 [15:49:11]line НСП 1% : 1.77 [15:49:11]line НДС 12% : 21.24 [15:49:11]line Наличными: 200.00 [15:49:11]line Безнал.: 0.00 [15:49:11]line Место: АЗС № 133 "Партнер Нефть" [15:49:11]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:49:11]line СНО: Общий режим [15:49:11]line Чек 269 22.10.2024 15:49 [15:49:11]line Смена: 535 ФФД: 1.0 [15:49:11]line ЗНМ: 0300000091 [15:49:11]line РНМ: 0000000000091685 [15:49:11]line Версия ККМ: 001 [15:49:11]line ФМ: 0000000000871839 [15:49:11]line ФД: 228305 [15:49:11]line ФПД: 127995697948834 [15:49:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154914&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228305&fm=127995697948834&tin=02508201610067®Number=0000000000091685&sum=20000 [15:49:11]written 0, free lines is 4095 [15:49:11]OFD Sender: Processing packet 228305 [packets to send 38, broken 37] [15:49:11]ProducePacketName [15:49:11]name=ofd_packets/00228305 [15:49:11]OFD Sender: To server: pG, [15:49:11]CommunicateWithHost lk.salyk.kg:30040 [15:49:11]ConnectInit lk.salyk.kg [15:49:11]Connected sock=11 [15:49:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 62 A8 07 01 53 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 7A C9 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D1 7B 03 00 35 04 06 00 74 69 52 1B E8 A2 22 7A 33 2D 6B 67 68 F0 [15:49:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 66 B2 47 00 15 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D1 7B 03 00 F4 03 04 00 72 74 17 67 B6 04 01 00 00 E3 22 CA 4E F0 6E BB A3 [15:49:12]CommunicateWithHost err = 0 [15:49:12]CheckOFDResponse [15:49:12]1017 (14) - 77093643461234 [15:49:12]1041 (16) - 0000000000871839 [15:49:12]1040 (4) - 228305 [15:49:12]1012 (4) - 22.10.2024 09:46 [15:49:12]1206 (1) - 0 [15:49:12]OFD Sender: Remove packet 228305 [15:49:12]ProducePacketName [15:49:12]name=ofd_packets/00228305 [15:49:12]NVStorageDeleteData [15:49:12]Write to MH i2c: 01 00 00 77 50 C7 [15:49:12]Write i2c OK [15:49:12]MH_I2C_Read... [15:49:12]Read from MH i2c: 01 [15:49:12]MH_I2C_Read... [15:49:12]Read from MH i2c: 01 07 00 [15:49:12]MH_I2C_Read... [15:49:12]Read from MH i2c: 01 07 00 77 50 00 00 00 00 00 B0 0C 8A [15:49:12]RasterBufferAndPrint [15:49:12]line [15:49:12]line [15:49:12]line [15:49:12]line [15:49:12]line [15:49:12]written 0, free lines is 3253 [15:49:12]MH_Cut [15:49:12]Write to MH i2c: D1 01 00 7E 50 01 A0 [15:49:12]Write i2c OK [15:49:12]MH_I2C_Read... [15:49:12]Read from MH i2c: D1 [15:49:12]MH_I2C_Read... [15:49:12]Read from MH i2c: D1 01 00 [15:49:12]MH_I2C_Read... [15:49:12]Read from MH i2c: D1 01 00 7E 50 00 9F [15:49:12]Write to MH i2c: 01 00 00 7F 50 CF [15:49:12]Write i2c OK [15:49:12]MH_I2C_Read... [15:49:12]OFD Sender: No OFD packet to send [15:49:13]*** Cut start [15:49:13]*** Partial cut [15:49:13]*** CUTSNS_PIN = 1 [15:49:13]*** CUTSNS_PIN = 0 [15:49:13]*** Brake cut motor [15:49:13]Read from MH i2c: 01 [15:49:13]MH_I2C_Read... [15:49:13]*** Stop cut motor [15:49:13]*** Cut end [15:49:13]Read from MH i2c: 01 07 00 [15:49:13]MH_I2C_Read... [15:49:13]Read from MH i2c: 01 07 00 7F 50 00 00 00 00 00 FF 0F E4 [15:49:13]process_action close_receipt done [15:49:13]requested_data is exist [15:49:13]produce_requested_data [15:49:13]requested_item fm.sn is exist - process it [15:49:13]wFMCommunicate request_size=4 [15:49:13]MH_SAM_APDU [15:49:13]CAPDU: 80 11 00 00 [15:49:13]Write to MH i2c: E2 08 00 80 50 80 11 00 00 00 00 00 00 4A [15:49:13]Write i2c OK [15:49:13]MH_I2C_Read... [15:49:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:13]Read from MH i2c: E2 [15:49:13]MH_I2C_Read... [15:49:13]Read from MH i2c: E2 17 00 [15:49:13]MH_I2C_Read... [15:49:13]Read from MH i2c: E2 17 00 80 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A1 [15:49:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:49:13]wFMCommunicate OK [15:49:13]requested_item fd.num is exist - process it [15:49:13]SAM_PROTO_GetFieldsCounters [15:49:13]wFMCommunicate request_size=4 [15:49:13]MH_SAM_APDU [15:49:13]CAPDU: 80 13 00 00 [15:49:13]Write to MH i2c: E2 08 00 81 50 80 13 00 00 00 00 00 00 4D [15:49:13]Write i2c OK [15:49:13]MH_I2C_Read... [15:49:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49:14]Read from MH i2c: E2 [15:49:14]MH_I2C_Read... [15:49:14]Read from MH i2c: E2 62 00 [15:49:14]MH_I2C_Read... [15:49:14]Read from MH i2c: E2 62 00 81 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D1 7B 03 00 0E 04 04 00 17 02 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 08 [15:49:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D1 7B 03 00 0E 04 04 00 17 02 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 [15:49:14]wFMCommunicate OK [15:49:14]SAM_PROTO_GetFieldsCounters done [15:49:14]requested_item shift.num is exist - process it [15:49:14]requested_item shift.opened is exist - process it [15:49:14]req_shift_opened [15:49:14]FM_GetShiftState [15:49:14]SAM_PROTO_GetShiftState [15:49:14]wFMCommunicate request_size=4 [15:49:14]MH_SAM_APDU [15:49:14]CAPDU: 80 13 01 00 [15:49:14]Write to MH i2c: E2 08 00 82 50 80 13 01 00 00 00 00 00 4F [15:49:14]Write i2c OK [15:49:14]MH_I2C_Read... [15:49:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:14]Read from MH i2c: E2 [15:49:14]MH_I2C_Read... [15:49:14]Read from MH i2c: E2 0E 00 [15:49:14]MH_I2C_Read... [15:49:14]Read from MH i2c: E2 0E 00 82 50 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 16 [15:49:14]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:49:14]wFMCommunicate OK [15:49:14]SAM_PROTO_GetShiftState done [15:49:14]FM_GetShiftState done [15:49:14]req_shift_opened done [15:49:14]requested_item shift.open_date is exist - process it [15:49:14]req_shift_open_date [15:49:14]req_shift_open_date done [15:49:14]produce_requested_data done [15:49:14]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228305,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:49:14]process_action_free close_receipt [15:49:14]json_value_free [15:49:14]json_value_free done [15:49:14]process_json_proto returns [15:49:14]Send response to host [15:49:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228305,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:49:14]free response buf [15:49:14]execute_script done [15:49:14]execute_script returns [15:49:14]free content buf [15:49:14]Sock 9.Close socket [15:49:14]Sock 9.Thread stoped [15:49:17]OFD Sender: No OFD packet to send [15:49:22]OFD Sender: No OFD packet to send [15:49:27]OFD Sender: No OFD packet to send [15:49:32]OFD Sender: No OFD packet to send [15:49:37]OFD Sender: No OFD packet to send [15:49:42]OFD Sender: No OFD packet to send [15:49:47]OFD Sender: No OFD packet to send [15:49:52]OFD Sender: No OFD packet to send [15:49:57]OFD Sender: No OFD packet to send [15:50:02]OFD Sender: No OFD packet to send [15:50:07]OFD Sender: No OFD packet to send [15:50:12]OFD Sender: No OFD packet to send [15:50:17]OFD Sender: No OFD packet to send [15:50:22]OFD Sender: No OFD packet to send [15:50:27]OFD Sender: No OFD packet to send [15:50:32]OFD Sender: No OFD packet to send [15:50:37]OFD Sender: No OFD packet to send [15:50:42]OFD Sender: No OFD packet to send [15:50:47]OFD Sender: No OFD packet to send [15:50:52]OFD Sender: No OFD packet to send [15:50:54]accept exits with 7 [15:50:54]New connection [15:50:54]New thread 3067137380 created [15:50:54]Thread 3066994020 joined [15:50:54]Waiting for new connection... [15:50:54] Sock 7.Parse request [15:50:54]Sock 7.Check first char [15:50:54]Sock 7.First char is OK [15:50:54]request: POST /json_proto HTTP/1.0 [15:50:54]Method: POST [15:50:54]URL: /json_proto [15:50:54]Method is POST - this is cgi request [15:50:54]url: /json_proto [15:50:54]query_string will be loaded in cgi processing [15:50:54]execute_cgi json_proto POST (null) [15:50:54]execute_cgi path=json_proto method=POST [15:50:54]POST find Content-Length [15:50:54]Host: 172.17.44.195:8080 [15:50:54]Content-Length: 664 [15:50:54]Content-Type: application/json [15:50:54] [15:50:54]POST finish read [15:50:54]Found Content-Length = 664 [15:50:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 20.470, "sum" : 1400.15, "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" ] } } [15:50:54]execute_script... [15: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)1964785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 20.470, "sum" : 1400.15, "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" ] } } [15:50:54]POST & json_proto [15:50:54]process_json_proto [15:50:54]json parsed OK: [15:50:54]protocol is kg_v1.0 [15:50:54]action value=close_receipt [15:50:54]process_action close_receipt [15:50:54]cmd_close_receipt [15:50:54]MH_GetDate [15:50:54]Write to MH i2c: F0 00 00 83 50 C2 [15:50:54]Write i2c OK [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: F0 [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: F0 09 00 [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: F0 09 00 83 50 00 E3 C9 17 67 82 C9 CF 66 75 [15:50:54]GetLastDocTimeStamp 1729612154 [15:50:54]current date 1729612259 [15:50:54]FM_GetShiftState [15:50:54]SAM_PROTO_GetShiftState [15:50:54]wFMCommunicate request_size=4 [15:50:54]MH_SAM_APDU [15:50:54]CAPDU: 80 13 01 00 [15:50:54]Write to MH i2c: E2 08 00 84 50 80 13 01 00 00 00 00 00 51 [15:50:54]Write i2c OK [15:50:54]MH_I2C_Read... [15:50:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:54]Read from MH i2c: E2 [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: E2 0E 00 [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: E2 0E 00 84 50 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 18 [15:50:54]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:50:54]wFMCommunicate OK [15:50:54]SAM_PROTO_GetShiftState done [15:50:54]FM_GetShiftState done [15:50:54]opened in 1729555538 [15:50:54]opened+sec_in_day 1729641938 [15:50:54]quantity*price = 140014 [15:50:54]sum+1 = 140016 [15:50:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.69 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 270 22.10.2024 15:50 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228306 ФПД: 236911116542878 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155059&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228306&fm=236911116542878&tin=02508201610067®Number=0000000000091685&sum=140000 [15:50:55]StoreToDocumentArchive [15:50:55]shift 535 fd 228306 [15:50:55]save to /storage/0535/doc_00228306 [15:50:55]save last doc name /storage/0535/doc_00228306 to /storage/kkm_last_doc_name [15:50:55]save OK [15:50:55]Clear old archive folders... [15:50:55]ProcessDocumentItem done err = 0, tmpTLVsize=244 [15:50:55]tlvbuf is 008D1520 [15:50:55]SAM_PROTO_ClearQueue [15:50:55]wFMCommunicate request_size=4 [15:50:55]MH_SAM_APDU [15:50:55]CAPDU: 80 09 00 00 [15:50:55]Write to MH i2c: E2 08 00 91 50 80 09 00 00 00 00 00 00 53 [15:50:55]Write i2c OK [15:50:55]MH_I2C_Read... [15:50:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:50:55]Read from MH i2c: E2 [15:50:55]MH_I2C_Read... [15:50:55]Read from MH i2c: E2 03 00 [15:50:55]MH_I2C_Read... [15:50:55]Read from MH i2c: E2 03 00 91 50 00 90 00 55 [15:50:55]RAPDU: 90 00 [15:50:55]wFMCommunicate OK [15:50:55]SAM_PROTO_ClearQueue done [15:50:55]KKMCreateOFDPacket [15:50:55]OFDProtocolAddRootSTLVToBuf [15:50:55]FM_MakeSignedData [15:50:55]FM_MakeSignedData [15:50:55]SAM_PROTO_SignData [15:50:55]wFMCommunicate request_size=4 [15:50:55]MH_SAM_APDU [15:50:55]CAPDU: 80 0D 01 02 [15:50:55]Write to MH i2c: E2 08 00 92 50 80 0D 01 02 00 00 00 00 5B [15:50:55]Write i2c OK [15:50:55]MH_I2C_Read... [15:50:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:50:55]Read from MH i2c: E2 [15:50:55]MH_I2C_Read... [15:50:55]Read from MH i2c: E2 03 00 [15:50:55]MH_I2C_Read... [15:50:55]Read from MH i2c: E2 03 00 92 50 00 90 00 56 [15:50:55]RAPDU: 90 00 [15:50:55]wFMCommunicate OK [15:50:55]wFMCommunicate request_size=253 [15:50:55]MH_SAM_APDU [15:50:55]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 F6 4F 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 EF 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 0E 01 00 00 F4 03 04 00 E3 C9 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D2 7B 03 00 35 04 06 00 D7 78 2A F1 E3 9E [15:50:55]Write to MH i2c: E2 00 01 93 50 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 F6 4F 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 EF 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 0E 01 00 00 F4 03 04 00 E3 C9 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D2 7B 03 00 35 04 06 00 D7 78 2A F1 E3 9E 00 00 04 [15:50:55]Write i2c OK [15:50:55]MH_I2C_Read... [15:50:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:56]Read from MH i2c: E2 [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: E2 03 00 [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: E2 03 00 93 50 00 90 00 57 [15:50:56]RAPDU: 90 00 [15:50:56]wFMCommunicate OK [15:50:56]wFMCommunicate request_size=4 [15:50:56]MH_SAM_APDU [15:50:56]CAPDU: 80 0D 03 02 [15:50:56]Write to MH i2c: E2 08 00 94 50 80 0D 03 02 00 00 00 00 5F [15:50:56]Write i2c OK [15:50:56]MH_I2C_Read... [15:50:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:50:56]Read from MH i2c: E2 [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: E2 0B 00 [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: E2 0B 00 94 50 00 22 71 94 C2 D5 90 24 3A 90 00 0C [15:50:56]RAPDU: 22 71 94 C2 D5 90 24 3A 90 00 [15:50:56]wFMCommunicate OK [15:50:56]SAM_PROTO_SignData done [15:50:56]FM_MakeSignedData done [15:50:56]CreateOFDProtocolMessage [15:50:56]wFMCommunicate request_size=4 [15:50:56]MH_SAM_APDU [15:50:56]CAPDU: 80 11 00 00 [15:50:56]Write to MH i2c: E2 08 00 95 50 80 11 00 00 00 00 00 00 5F [15:50:56]Write i2c OK [15:50:56]MH_I2C_Read... [15:50:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:56]Read from MH i2c: E2 [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: E2 17 00 [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: E2 17 00 95 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B6 [15:50:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:50:56]wFMCommunicate OK [15:50:56]CreateOFDProtocolMessage done [15:50:56]OFDSenderStorePacket 228306 [15:50:56]StoreOFDPacket docnum=228306 [15:50:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 55 23 00 01 41 76 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 F6 4F 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 EF 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 0E 01 00 00 F4 03 04 00 E3 C9 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D2 7B 03 00 35 04 06 00 D7 78 2A F1 E3 9E 22 71 94 C2 D5 90 24 3A [15:50:56]CheckFolder [15:50:56]dirname=/storage/ofd_packets [15:50:56]CheckFolder done [15:50:56]ProducePacketName [15:50:56]name=ofd_packets/00228306 [15:50:56]NVStorageSaveData ofd_packets/00228306 [15:50:56]File name is /storage/ofd_packets/00228306 [15:50:56]Write 294 bytes [15:50:56]NVStorageSaveData done [15:50:56]OFDSenderStorePacket done [15:50:56]KKMCreateOFDPacket done [15:50:56]NVStorageSaveData kkm_last_timestamp [15:50:56]File name is /storage/kkm_last_timestamp [15:50:56]Write 4 bytes [15:50:56]NVStorageSaveData done [15:50:56]ExternCall_PrintAddStr [15:50:56]wPrintStart [15:50:56]Write to MH i2c: 01 00 00 96 50 E6 [15:50:56]Write i2c OK [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: 01 [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: 01 07 00 [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: 01 07 00 96 50 00 00 00 00 00 FF 0F FB [15:50:56]RasterBufferAndPrint [15:50:56]line Счет N : (1)1964785 [15:50:56]line ИНН: 02508201610067 [15:50:56]line Контрольно-Кассовый Чек [15:50:56]line ПРОДАЖА [15:50:56]line ТРК (МРК, ГНК) : 32 [15:50:56]line Товар: 2710124130 [15:50:56]line SU-92 [15:50:56]line 20.470 * 68.40 [15:50:56]line = 1400.15 [15:50:56]line НДС 12% НСП 1% [15:50:56]line > о реализуемом товаре [15:50:56]line ОКРУГЛЕНИЕ: -0.15 [15:50:56]line ИТОГО: 1400.00 [15:50:56]line Внесено: 1400.00 [15:50:56]line СДАЧА: 0.00 [15:50:56]line НСП 1% : 12.39 [15:50:56]line НДС 12% : 148.69 [15:50:56]line Наличными: 1400.00 [15:50:56]line Безнал.: 0.00 [15:50:56]line Место: АЗС № 133 "Партнер Нефть" [15:50:56]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:50:56]line СНО: Общий режим [15:50:56]line Чек 270 22.10.2024 15:50 [15:50:56]line Смена: 535 ФФД: 1.0 [15:50:56]line ЗНМ: 0300000091 [15:50:56]line РНМ: 0000000000091685 [15:50:56]line Версия ККМ: 001 [15:50:56]line ФМ: 0000000000871839 [15:50:56]line ФД: 228306 [15:50:56]line ФПД: 236911116542878 [15:50:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155059&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228306&fm=236911116542878&tin=02508201610067®Number=0000000000091685&sum=140000 [15:50:56]OFD Sender: Processing packet 228306 [packets to send 38, broken 37] [15:50:56]ProducePacketName [15:50:56]name=ofd_packets/00228306 [15:50:56]OFD Sender: To server: pG, [15:50:56]CommunicateWithHost lk.salyk.kg:30040 [15:50:56]ConnectInit lk.salyk.kg [15:50:56]written 0, free lines is 4095 [15:50:56]Connected sock=10 [15:50:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 55 23 00 01 41 76 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 F6 4F 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 EF 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 0E 01 00 00 F4 03 04 00 E3 C9 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D2 7B 03 00 35 04 06 00 D7 78 2A F1 E3 9E 22 71 94 C2 D5 90 24 3A [15:50:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 77 28 47 00 30 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 38 37 31 38 33 39 10 04 04 00 D2 7B 03 00 F4 03 04 00 DB 74 17 67 B6 04 01 00 00 CC 75 A0 14 7B 28 5C 7F [15:50:56]CommunicateWithHost err = 0 [15:50:56]CheckOFDResponse [15:50:56]1017 (14) - 77093643461234 [15:50:56]1041 (16) - 0000000000871839 [15:50:56]1040 (4) - 228306 [15:50:56]1012 (4) - 22.10.2024 09:48 [15:50:56]1206 (1) - 0 [15:50:56]OFD Sender: Remove packet 228306 [15:50:56]ProducePacketName [15:50:56]name=ofd_packets/00228306 [15:50:56]NVStorageDeleteData [15:50:56]Write to MH i2c: 01 00 00 C0 50 10 [15:50:56]Write i2c OK [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: 01 [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: 01 07 00 [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: 01 07 00 C0 50 00 00 00 00 00 B2 0C D5 [15:50:56]RasterBufferAndPrint [15:50:56]line [15:50:56]line [15:50:56]line [15:50:56]line [15:50:56]line [15:50:56]written 0, free lines is 3256 [15:50:56]MH_Cut [15:50:56]Write to MH i2c: D1 01 00 C7 50 01 E9 [15:50:56]Write i2c OK [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: D1 [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: D1 01 00 [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: D1 01 00 C7 50 00 E8 [15:50:56]Write to MH i2c: 01 00 00 C8 50 18 [15:50:56]Write i2c OK [15:50:56]MH_I2C_Read... [15:50:57]OFD Sender: No OFD packet to send [15:50:57]*** Cut start [15:50:57]*** Partial cut [15:50:57]*** CUTSNS_PIN = 1 [15:50:57]*** CUTSNS_PIN = 0 [15:50:58]*** Brake cut motor [15:50:58]Read from MH i2c: 01 [15:50:58]MH_I2C_Read... [15:50:58]*** Stop cut motor [15:50:58]*** Cut end [15:50:58]Read from MH i2c: 01 07 00 [15:50:58]MH_I2C_Read... [15:50:58]Read from MH i2c: 01 07 00 C8 50 00 00 00 00 00 FF 0F 2D [15:50:58]process_action close_receipt done [15:50:58]requested_data is exist [15:50:58]produce_requested_data [15:50:58]requested_item fm.sn is exist - process it [15:50:58]wFMCommunicate request_size=4 [15:50:58]MH_SAM_APDU [15:50:58]CAPDU: 80 11 00 00 [15:50:58]Write to MH i2c: E2 08 00 C9 50 80 11 00 00 00 00 00 00 93 [15:50:58]Write i2c OK [15:50:58]MH_I2C_Read... [15:50:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:58]Read from MH i2c: E2 [15:50:58]MH_I2C_Read... [15:50:58]Read from MH i2c: E2 17 00 [15:50:58]MH_I2C_Read... [15:50:58]Read from MH i2c: E2 17 00 C9 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 EA [15:50:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:50:58]wFMCommunicate OK [15:50:58]requested_item fd.num is exist - process it [15:50:58]SAM_PROTO_GetFieldsCounters [15:50:58]wFMCommunicate request_size=4 [15:50:58]MH_SAM_APDU [15:50:58]CAPDU: 80 13 00 00 [15:50:58]Write to MH i2c: E2 08 00 CA 50 80 13 00 00 00 00 00 00 96 [15:50:58]Write i2c OK [15:50:58]MH_I2C_Read... [15:50:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:50:58]Read from MH i2c: E2 [15:50:58]MH_I2C_Read... [15:50:58]Read from MH i2c: E2 62 00 [15:50:58]MH_I2C_Read... [15:50:58]Read from MH i2c: E2 62 00 CA 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D2 7B 03 00 0E 04 04 00 17 02 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 55 [15:50:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D2 7B 03 00 0E 04 04 00 17 02 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 [15:50:58]wFMCommunicate OK [15:50:58]SAM_PROTO_GetFieldsCounters done [15:50:58]requested_item shift.num is exist - process it [15:50:58]requested_item shift.opened is exist - process it [15:50:58]req_shift_opened [15:50:58]FM_GetShiftState [15:50:58]SAM_PROTO_GetShiftState [15:50:58]wFMCommunicate request_size=4 [15:50:58]MH_SAM_APDU [15:50:58]CAPDU: 80 13 01 00 [15:50:58]Write to MH i2c: E2 08 00 CB 50 80 13 01 00 00 00 00 00 98 [15:50:58]Write i2c OK [15:50:58]MH_I2C_Read... [15:50:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:58]Read from MH i2c: E2 [15:50:58]MH_I2C_Read... [15:50:58]Read from MH i2c: E2 0E 00 [15:50:58]MH_I2C_Read... [15:50:58]Read from MH i2c: E2 0E 00 CB 50 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 5F [15:50:58]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:50:58]wFMCommunicate OK [15:50:58]SAM_PROTO_GetShiftState done [15:50:58]FM_GetShiftState done [15:50:58]req_shift_opened done [15:50:58]requested_item shift.open_date is exist - process it [15:50:58]req_shift_open_date [15:50:58]req_shift_open_date done [15:50:58]produce_requested_data done [15:50:58]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228306,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:50:58]process_action_free close_receipt [15:50:58]json_value_free [15:50:58]json_value_free done [15:50:58]process_json_proto returns [15:50:58]Send response to host [15:50:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228306,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:50:58]free response buf [15:50:58]execute_script done [15:50:58]execute_script returns [15:50:58]free content buf [15:50:58]Sock 7.Close socket [15:50:58]Sock 7.Thread stoped [15:51:02]OFD Sender: No OFD packet to send [15:51:07]OFD Sender: No OFD packet to send [15:51:12]OFD Sender: No OFD packet to send [15:51:17]OFD Sender: No OFD packet to send [15:51:22]OFD Sender: No OFD packet to send [15:51:27]OFD Sender: No OFD packet to send [15:51:32]OFD Sender: No OFD packet to send [15:51:37]OFD Sender: No OFD packet to send [15:51:42]OFD Sender: No OFD packet to send [15:51:47]OFD Sender: No OFD packet to send [15:51:52]OFD Sender: No OFD packet to send [15:51:57]OFD Sender: No OFD packet to send [15:52:02]OFD Sender: No OFD packet to send [15:52:07]OFD Sender: No OFD packet to send [15:52:12]OFD Sender: No OFD packet to send [15:52:17]OFD Sender: No OFD packet to send [15:52:22]OFD Sender: No OFD packet to send [15:52:27]OFD Sender: No OFD packet to send [15:52:32]OFD Sender: No OFD packet to send [15:52:37]OFD Sender: No OFD packet to send [15:52:42]OFD Sender: No OFD packet to send [15:52:47]OFD Sender: No OFD packet to send [15:52:52]OFD Sender: No OFD packet to send [15:52:57]OFD Sender: No OFD packet to send [15:53:02]OFD Sender: No OFD packet to send [15:53:04]accept exits with 9 [15:53:04]New connection [15:53:04]New thread 3066994020 created [15:53:04]Thread 3067137380 joined [15:53:04]Waiting for new connection... [15:53:04] Sock 9.Parse request [15:53:04]Sock 9.Check first char [15:53:04]Sock 9.First char is OK [15:53:04]request: POST /json_proto HTTP/1.0 [15:53:04]Method: POST [15:53:04]URL: /json_proto [15:53:04]Method is POST - this is cgi request [15:53:04]url: /json_proto [15:53:04]query_string will be loaded in cgi processing [15:53:04]execute_cgi json_proto POST (null) [15:53:04]execute_cgi path=json_proto method=POST [15:53:04]POST find Content-Length [15:53:04]Host: 172.17.44.195:8080 [15:53:04]Content-Length: 677 [15:53:04]Content-Type: application/json [15:53:04] [15:53:04]POST finish read [15:53:04]Found Content-Length = 677 [15:53:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:53:04]execute_script... [15:53: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)1964786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:53:04]POST & json_proto [15:53:04]process_json_proto [15:53:04]json parsed OK: [15:53:04]protocol is kg_v1.0 [15:53:04]action value=close_receipt [15:53:04]process_action close_receipt [15:53:04]cmd_close_receipt [15:53:04]MH_GetDate [15:53:04]Write to MH i2c: F0 00 00 CC 50 0B [15:53:04]Write i2c OK [15:53:04]MH_I2C_Read... [15:53:04]Read from MH i2c: F0 [15:53:04]MH_I2C_Read... [15:53:04]Read from MH i2c: F0 09 00 [15:53:04]MH_I2C_Read... [15:53:04]Read from MH i2c: F0 09 00 CC 50 00 65 CA 17 67 82 C9 CF 66 41 [15:53:04]GetLastDocTimeStamp 1729612259 [15:53:04]current date 1729612389 [15:53:04]FM_GetShiftState [15:53:04]SAM_PROTO_GetShiftState [15:53:04]wFMCommunicate request_size=4 [15:53:04]MH_SAM_APDU [15:53:04]CAPDU: 80 13 01 00 [15:53:04]Write to MH i2c: E2 08 00 CD 50 80 13 01 00 00 00 00 00 9A [15:53:04]Write i2c OK [15:53:04]MH_I2C_Read... [15:53:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:04]Read from MH i2c: E2 [15:53:04]MH_I2C_Read... [15:53:04]Read from MH i2c: E2 0E 00 [15:53:04]MH_I2C_Read... [15:53:04]Read from MH i2c: E2 0E 00 CD 50 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 61 [15:53:04]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:53:04]wFMCommunicate OK [15:53:04]SAM_PROTO_GetShiftState done [15:53:04]FM_GetShiftState done [15:53:04]opened in 1729555538 [15:53:04]opened+sec_in_day 1729641938 [15:53:04]quantity*price = 100011 [15:53:04]sum+1 = 100013 [15:53:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 271 22.10.2024 15:53 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228307 ФПД: 91451834277931 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155309&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228307&fm=91451834277931&tin=02508201610067®Number=0000000000091685&sum=100000 [15:53:05]StoreToDocumentArchive [15:53:05]shift 535 fd 228307 [15:53:05]save to /storage/0535/doc_00228307 [15:53:05]save last doc name /storage/0535/doc_00228307 to /storage/kkm_last_doc_name [15:53:05]save OK [15:53:05]Clear old archive folders... [15:53:05]ProcessDocumentItem done err = 0, tmpTLVsize=245 [15:53:05]tlvbuf is B6F07960 [15:53:05]SAM_PROTO_ClearQueue [15:53:05]wFMCommunicate request_size=4 [15:53:05]MH_SAM_APDU [15:53:05]CAPDU: 80 09 00 00 [15:53:05]Write to MH i2c: E2 08 00 DA 50 80 09 00 00 00 00 00 00 9C [15:53:05]Write i2c OK [15:53:05]MH_I2C_Read... [15:53:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:53:05]Read from MH i2c: E2 [15:53:05]MH_I2C_Read... [15:53:05]Read from MH i2c: E2 03 00 [15:53:05]MH_I2C_Read... [15:53:05]Read from MH i2c: E2 03 00 DA 50 00 90 00 9E [15:53:05]RAPDU: 90 00 [15:53:05]wFMCommunicate OK [15:53:05]SAM_PROTO_ClearQueue done [15:53:05]KKMCreateOFDPacket [15:53:05]OFDProtocolAddRootSTLVToBuf [15:53:05]FM_MakeSignedData [15:53:05]FM_MakeSignedData [15:53:05]SAM_PROTO_SignData [15:53:05]wFMCommunicate request_size=4 [15:53:05]MH_SAM_APDU [15:53:05]CAPDU: 80 0D 01 02 [15:53:05]Write to MH i2c: E2 08 00 DB 50 80 0D 01 02 00 00 00 00 A4 [15:53:05]Write i2c OK [15:53:05]MH_I2C_Read... [15:53:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:53:05]Read from MH i2c: E2 [15:53:05]MH_I2C_Read... [15:53:05]Read from MH i2c: E2 03 00 [15:53:05]MH_I2C_Read... [15:53:05]Read from MH i2c: E2 03 00 DB 50 00 90 00 9F [15:53:05]RAPDU: 90 00 [15:53:05]wFMCommunicate OK [15:53:05]wFMCommunicate request_size=254 [15:53:05]MH_SAM_APDU [15:53:05]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 0F 01 00 00 F4 03 04 00 65 CA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D3 7B 03 00 35 04 06 00 53 2C CA 18 A0 2B [15:53:05]Write to MH i2c: E2 01 01 DC 50 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 0F 01 00 00 F4 03 04 00 65 CA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D3 7B 03 00 35 04 06 00 53 2C CA 18 A0 2B 00 00 61 [15:53:05]Write i2c OK [15:53:05]MH_I2C_Read... [15:53:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:06]Read from MH i2c: E2 [15:53:06]MH_I2C_Read... [15:53:06]Read from MH i2c: E2 03 00 [15:53:06]MH_I2C_Read... [15:53:06]Read from MH i2c: E2 03 00 DC 50 00 90 00 A0 [15:53:06]RAPDU: 90 00 [15:53:06]wFMCommunicate OK [15:53:06]wFMCommunicate request_size=4 [15:53:06]MH_SAM_APDU [15:53:06]CAPDU: 80 0D 03 02 [15:53:06]Write to MH i2c: E2 08 00 DD 50 80 0D 03 02 00 00 00 00 A8 [15:53:06]Write i2c OK [15:53:06]MH_I2C_Read... [15:53:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:53:06]Read from MH i2c: E2 [15:53:06]MH_I2C_Read... [15:53:06]Read from MH i2c: E2 0B 00 [15:53:06]MH_I2C_Read... [15:53:06]Read from MH i2c: E2 0B 00 DD 50 00 EA B9 A5 3F 6B 1A 24 16 90 00 EF [15:53:06]RAPDU: EA B9 A5 3F 6B 1A 24 16 90 00 [15:53:06]wFMCommunicate OK [15:53:06]SAM_PROTO_SignData done [15:53:06]FM_MakeSignedData done [15:53:06]CreateOFDProtocolMessage [15:53:06]wFMCommunicate request_size=4 [15:53:06]MH_SAM_APDU [15:53:06]CAPDU: 80 11 00 00 [15:53:06]Write to MH i2c: E2 08 00 DE 50 80 11 00 00 00 00 00 00 A8 [15:53:06]Write i2c OK [15:53:06]MH_I2C_Read... [15:53:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:06]Read from MH i2c: E2 [15:53:06]MH_I2C_Read... [15:53:06]Read from MH i2c: E2 17 00 [15:53:06]MH_I2C_Read... [15:53:06]Read from MH i2c: E2 17 00 DE 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FF [15:53:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:53:06]wFMCommunicate OK [15:53:06]CreateOFDProtocolMessage done [15:53:06]OFDSenderStorePacket 228307 [15:53:06]StoreOFDPacket docnum=228307 [15:53:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 9B 46 01 01 BC 83 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 0F 01 00 00 F4 03 04 00 65 CA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D3 7B 03 00 35 04 06 00 53 2C CA 18 A0 2B EA B9 A5 3F 6B 1A 24 16 [15:53:06]CheckFolder [15:53:06]dirname=/storage/ofd_packets [15:53:06]CheckFolder done [15:53:06]ProducePacketName [15:53:06]name=ofd_packets/00228307 [15:53:06]NVStorageSaveData ofd_packets/00228307 [15:53:06]File name is /storage/ofd_packets/00228307 [15:53:06]Write 295 bytes [15:53:06]NVStorageSaveData done [15:53:06]OFDSenderStorePacket done [15:53:06]KKMCreateOFDPacket done [15:53:06]NVStorageSaveData kkm_last_timestamp [15:53:06]File name is /storage/kkm_last_timestamp [15:53:06]Write 4 bytes [15:53:06]NVStorageSaveData done [15:53:06]ExternCall_PrintAddStr [15:53:06]wPrintStart [15:53:06]Write to MH i2c: 01 00 00 DF 50 2F [15:53:06]Write i2c OK [15:53:06]MH_I2C_Read... [15:53:06]Read from MH i2c: 01 [15:53:06]MH_I2C_Read... [15:53:06]Read from MH i2c: 01 07 00 [15:53:06]MH_I2C_Read... [15:53:06]Read from MH i2c: 01 07 00 DF 50 00 00 00 00 00 FF 0F 44 [15:53:06]RasterBufferAndPrint [15:53:06]line Счет N : (1)1964786 [15:53:06]line ИНН: 02508201610067 [15:53:06]line Контрольно-Кассовый Чек [15:53:06]line ПРОДАЖА [15:53:06]line ТРК (МРК, ГНК) : 71 [15:53:06]line Товар: 2711129700 [15:53:06]line ГАЗ [15:53:06]line 25.710 * 38.90 [15:53:06]line = 1000.12 [15:53:06]line НДС 12% НСП 1% [15:53:06]line > о реализуемом товаре [15:53:06]line ОКРУГЛЕНИЕ: -0.12 [15:53:06]line ИТОГО: 1000.00 [15:53:06]line Внесено: 1000.00 [15:53:06]line СДАЧА: 0.00 [15:53:06]line НСП 1% : 8.85 [15:53:06]line НДС 12% : 106.21 [15:53:06]line Наличными: 1000.00 [15:53:06]line Безнал.: 0.00 [15:53:06]line Место: АЗС № 133 "Партнер Нефть" [15:53:06]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:53:06]line СНО: Общий режим [15:53:06]line Чек 271 22.10.2024 15:53 [15:53:06]line Смена: 535 ФФД: 1.0 [15:53:06]line ЗНМ: 0300000091 [15:53:06]line РНМ: 0000000000091685 [15:53:06]line Версия ККМ: 001 [15:53:06]line ФМ: 0000000000871839 [15:53:06]line ФД: 228307 [15:53:06]line ФПД: 91451834277931 [15:53:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155309&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228307&fm=91451834277931&tin=02508201610067®Number=0000000000091685&sum=100000 [15:53:06]OFD Sender: Processing packet 228307 [packets to send 38, broken 37] [15:53:06]ProducePacketName [15:53:06]name=ofd_packets/00228307 [15:53:06]OFD Sender: To server: pG, [15:53:06]CommunicateWithHost lk.salyk.kg:30040 [15:53:06]ConnectInit lk.salyk.kg [15:53:06]written 0, free lines is 4095 [15:53:06]Connected sock=10 [15:53:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 9B 46 01 01 BC 83 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 0F 01 00 00 F4 03 04 00 65 CA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D3 7B 03 00 35 04 06 00 53 2C CA 18 A0 2B EA B9 A5 3F 6B 1A 24 16 [15:53:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 26 75 47 00 29 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D3 7B 03 00 F4 03 04 00 5D 75 17 67 B6 04 01 00 00 B3 61 EB A0 CB 39 91 06 [15:53:06]CommunicateWithHost err = 0 [15:53:06]CheckOFDResponse [15:53:06]1017 (14) - 77093643461234 [15:53:06]1041 (16) - 0000000000871839 [15:53:06]1040 (4) - 228307 [15:53:06]1012 (4) - 22.10.2024 09:50 [15:53:06]1206 (1) - 0 [15:53:06]OFD Sender: Remove packet 228307 [15:53:06]ProducePacketName [15:53:06]name=ofd_packets/00228307 [15:53:06]NVStorageDeleteData [15:53:07]Write to MH i2c: 01 00 00 09 51 5A [15:53:07]Write i2c OK [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: 01 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: 01 07 00 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: 01 07 00 09 51 00 00 00 00 00 B2 0C 1F [15:53:07]RasterBufferAndPrint [15:53:07]line [15:53:07]line [15:53:07]line [15:53:07]line [15:53:07]line [15:53:07]written 0, free lines is 3256 [15:53:07]MH_Cut [15:53:07]Write to MH i2c: D1 01 00 10 51 01 33 [15:53:07]Write i2c OK [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: D1 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: D1 01 00 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: D1 01 00 10 51 00 32 [15:53:07]Write to MH i2c: 01 00 00 11 51 62 [15:53:07]Write i2c OK [15:53:07]MH_I2C_Read... [15:53:07]OFD Sender: No OFD packet to send [15:53:08]*** Cut start [15:53:08]*** Partial cut [15:53:08]*** CUTSNS_PIN = 1 [15:53:08]*** CUTSNS_PIN = 0 [15:53:08]*** Brake cut motor [15:53:08]Read from MH i2c: 01 [15:53:08]MH_I2C_Read... [15:53:08]*** Stop cut motor [15:53:08]*** Cut end [15:53:08]Read from MH i2c: 01 07 00 [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: 01 07 00 11 51 00 00 00 00 00 FF 0F 77 [15:53:08]process_action close_receipt done [15:53:08]requested_data is exist [15:53:08]produce_requested_data [15:53:08]requested_item fm.sn is exist - process it [15:53:08]wFMCommunicate request_size=4 [15:53:08]MH_SAM_APDU [15:53:08]CAPDU: 80 11 00 00 [15:53:08]Write to MH i2c: E2 08 00 12 51 80 11 00 00 00 00 00 00 DD [15:53:08]Write i2c OK [15:53:08]MH_I2C_Read... [15:53:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:08]Read from MH i2c: E2 [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: E2 17 00 [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: E2 17 00 12 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 34 [15:53:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:53:08]wFMCommunicate OK [15:53:08]requested_item fd.num is exist - process it [15:53:08]SAM_PROTO_GetFieldsCounters [15:53:08]wFMCommunicate request_size=4 [15:53:08]MH_SAM_APDU [15:53:08]CAPDU: 80 13 00 00 [15:53:08]Write to MH i2c: E2 08 00 13 51 80 13 00 00 00 00 00 00 E0 [15:53:08]Write i2c OK [15:53:08]MH_I2C_Read... [15:53:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:53:08]Read from MH i2c: E2 [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: E2 62 00 [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: E2 62 00 13 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D3 7B 03 00 0E 04 04 00 17 02 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 A3 [15:53:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D3 7B 03 00 0E 04 04 00 17 02 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 [15:53:08]wFMCommunicate OK [15:53:08]SAM_PROTO_GetFieldsCounters done [15:53:08]requested_item shift.num is exist - process it [15:53:08]requested_item shift.opened is exist - process it [15:53:08]req_shift_opened [15:53:08]FM_GetShiftState [15:53:08]SAM_PROTO_GetShiftState [15:53:08]wFMCommunicate request_size=4 [15:53:08]MH_SAM_APDU [15:53:08]CAPDU: 80 13 01 00 [15:53:08]Write to MH i2c: E2 08 00 14 51 80 13 01 00 00 00 00 00 E2 [15:53:08]Write i2c OK [15:53:08]MH_I2C_Read... [15:53:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:08]Read from MH i2c: E2 [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: E2 0E 00 [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: E2 0E 00 14 51 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 A9 [15:53:08]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:53:08]wFMCommunicate OK [15:53:08]SAM_PROTO_GetShiftState done [15:53:08]FM_GetShiftState done [15:53:08]req_shift_opened done [15:53:08]requested_item shift.open_date is exist - process it [15:53:08]req_shift_open_date [15:53:08]req_shift_open_date done [15:53:08]produce_requested_data done [15:53:08]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228307,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:53:08]process_action_free close_receipt [15:53:08]json_value_free [15:53:08]json_value_free done [15:53:08]process_json_proto returns [15:53:08]Send response to host [15:53:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228307,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:53:08]free response buf [15:53:08]execute_script done [15:53:08]execute_script returns [15:53:08]free content buf [15:53:08]Sock 9.Close socket [15:53:08]Sock 9.Thread stoped [15:53:12]OFD Sender: No OFD packet to send [15:53:17]OFD Sender: No OFD packet to send [15:53:22]OFD Sender: No OFD packet to send [15:53:27]OFD Sender: No OFD packet to send [15:53:32]OFD Sender: No OFD packet to send [15:53:37]OFD Sender: No OFD packet to send [15:53:42]OFD Sender: No OFD packet to send [15:53:47]OFD Sender: No OFD packet to send [15:53:52]OFD Sender: No OFD packet to send [15:53:57]OFD Sender: No OFD packet to send [15:54:02]OFD Sender: No OFD packet to send [15:54:07]OFD Sender: No OFD packet to send [15:54:12]OFD Sender: No OFD packet to send [15:54:17]OFD Sender: No OFD packet to send [15:54:22]OFD Sender: No OFD packet to send [15:54:27]OFD Sender: No OFD packet to send [15:54:32]OFD Sender: No OFD packet to send [15:54:37]OFD Sender: No OFD packet to send [15:54:42]OFD Sender: No OFD packet to send [15:54:47]OFD Sender: No OFD packet to send [15:54:52]OFD Sender: No OFD packet to send [15:54:57]OFD Sender: No OFD packet to send [15:55:02]OFD Sender: No OFD packet to send [15:55:07]OFD Sender: No OFD packet to send [15:55:12]OFD Sender: No OFD packet to send [15:55:17]OFD Sender: No OFD packet to send [15:55:22]OFD Sender: No OFD packet to send [15:55:27]OFD Sender: No OFD packet to send [15:55:32]OFD Sender: No OFD packet to send [15:55:37]OFD Sender: No OFD packet to send [15:55:42]OFD Sender: No OFD packet to send [15:55:47]OFD Sender: No OFD packet to send [15:55:52]OFD Sender: No OFD packet to send [15:55:57]OFD Sender: No OFD packet to send [15:56:02]OFD Sender: No OFD packet to send [15:56:07]OFD Sender: No OFD packet to send [15:56:12]OFD Sender: No OFD packet to send [15:56:17]OFD Sender: No OFD packet to send [15:56:22]OFD Sender: No OFD packet to send [15:56:27]OFD Sender: No OFD packet to send [15:56:32]OFD Sender: No OFD packet to send [15:56:37]OFD Sender: No OFD packet to send [15:56:42]OFD Sender: No OFD packet to send [15:56:47]OFD Sender: No OFD packet to send [15:56:52]OFD Sender: No OFD packet to send [15:56:57]OFD Sender: No OFD packet to send [15:57:02]OFD Sender: No OFD packet to send [15:57:07]OFD Sender: No OFD packet to send [15:57:08]accept exits with 7 [15:57:08]New connection [15:57:08]New thread 3067137380 created [15:57:08]Thread 3066994020 joined [15:57:08]Waiting for new connection... [15:57:08] Sock 7.Parse request [15:57:08]Sock 7.Check first char [15:57:08]Sock 7.First char is OK [15:57:08]request: POST /json_proto HTTP/1.0 [15:57:08]Method: POST [15:57:08]URL: /json_proto [15:57:08]Method is POST - this is cgi request [15:57:08]url: /json_proto [15:57:08]query_string will be loaded in cgi processing [15:57:08]execute_cgi json_proto POST (null) [15:57:08]execute_cgi path=json_proto method=POST [15:57:08]POST find Content-Length [15:57:08]Host: 172.17.44.195:8080 [15:57:08]Content-Length: 678 [15:57:08]Content-Type: application/json [15:57:08] [15:57:08]POST finish read [15:57:08]Found Content-Length = 678 [15:57:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964789", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:57:08]execute_script... [15:57: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)1964789", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:57:08]POST & json_proto [15:57:08]process_json_proto [15:57:08]json parsed OK: [15:57:08]protocol is kg_v1.0 [15:57:08]action value=close_receipt [15:57:08]process_action close_receipt [15:57:08]cmd_close_receipt [15:57:08]MH_GetDate [15:57:08]Write to MH i2c: F0 00 00 15 51 55 [15:57:08]Write i2c OK [15:57:08]MH_I2C_Read... [15:57:08]Read from MH i2c: F0 [15:57:08]MH_I2C_Read... [15:57:08]Read from MH i2c: F0 09 00 [15:57:08]MH_I2C_Read... [15:57:08]Read from MH i2c: F0 09 00 15 51 00 59 CB 17 67 82 C9 CF 66 80 [15:57:08]GetLastDocTimeStamp 1729612389 [15:57:08]current date 1729612633 [15:57:08]FM_GetShiftState [15:57:08]SAM_PROTO_GetShiftState [15:57:08]wFMCommunicate request_size=4 [15:57:08]MH_SAM_APDU [15:57:08]CAPDU: 80 13 01 00 [15:57:08]Write to MH i2c: E2 08 00 16 51 80 13 01 00 00 00 00 00 E4 [15:57:08]Write i2c OK [15:57:08]MH_I2C_Read... [15:57:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:08]Read from MH i2c: E2 [15:57:08]MH_I2C_Read... [15:57:08]Read from MH i2c: E2 0E 00 [15:57:08]MH_I2C_Read... [15:57:08]Read from MH i2c: E2 0E 00 16 51 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 AB [15:57:08]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:57:08]wFMCommunicate OK [15:57:08]SAM_PROTO_GetShiftState done [15:57:08]FM_GetShiftState done [15:57:08]opened in 1729555538 [15:57:08]opened+sec_in_day 1729641938 [15:57:08]quantity*price = 50041 [15:57:08]sum+1 = 50042 [15:57:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 272 22.10.2024 15:57 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228308 ФПД: 277923713810368 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155713&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228308&fm=277923713810368&tin=02508201610067®Number=0000000000091685&sum=50000 [15:57:09]StoreToDocumentArchive [15:57:09]shift 535 fd 228308 [15:57:09]save to /storage/0535/doc_00228308 [15:57:09]save last doc name /storage/0535/doc_00228308 to /storage/kkm_last_doc_name [15:57:09]save OK [15:57:09]Clear old archive folders... [15:57:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:57:09]tlvbuf is 008E4E40 [15:57:09]SAM_PROTO_ClearQueue [15:57:09]wFMCommunicate request_size=4 [15:57:09]MH_SAM_APDU [15:57:09]CAPDU: 80 09 00 00 [15:57:09]Write to MH i2c: E2 08 00 23 51 80 09 00 00 00 00 00 00 E6 [15:57:09]Write i2c OK [15:57:09]MH_I2C_Read... [15:57:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:09]Read from MH i2c: E2 [15:57:09]MH_I2C_Read... [15:57:09]Read from MH i2c: E2 03 00 [15:57:09]MH_I2C_Read... [15:57:09]Read from MH i2c: E2 03 00 23 51 00 90 00 E8 [15:57:09]RAPDU: 90 00 [15:57:09]wFMCommunicate OK [15:57:09]SAM_PROTO_ClearQueue done [15:57:09]KKMCreateOFDPacket [15:57:09]OFDProtocolAddRootSTLVToBuf [15:57:09]FM_MakeSignedData [15:57:09]FM_MakeSignedData [15:57:09]SAM_PROTO_SignData [15:57:09]wFMCommunicate request_size=4 [15:57:09]MH_SAM_APDU [15:57:09]CAPDU: 80 0D 01 02 [15:57:09]Write to MH i2c: E2 08 00 24 51 80 0D 01 02 00 00 00 00 EE [15:57:09]Write i2c OK [15:57:09]MH_I2C_Read... [15:57:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:09]Read from MH i2c: E2 [15:57:09]MH_I2C_Read... [15:57:09]Read from MH i2c: E2 03 00 [15:57:09]MH_I2C_Read... [15:57:09]Read from MH i2c: E2 03 00 24 51 00 90 00 E9 [15:57:09]RAPDU: 90 00 [15:57:09]wFMCommunicate OK [15:57:09]wFMCommunicate request_size=255 [15:57:09]MH_SAM_APDU [15:57: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 59 CB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D4 7B 03 00 35 04 06 00 FC [15:57:09]Write to MH i2c: E2 02 01 25 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 59 CB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D4 7B 03 00 35 04 06 00 FC 00 00 9F [15:57:09]Write i2c OK [15:57:09]MH_I2C_Read... [15:57:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:10]Read from MH i2c: E2 [15:57:10]MH_I2C_Read... [15:57:10]Read from MH i2c: E2 03 00 [15:57:10]MH_I2C_Read... [15:57:10]Read from MH i2c: E2 03 00 25 51 00 90 00 EA [15:57:10]RAPDU: 90 00 [15:57:10]wFMCommunicate OK [15:57:10]wFMCommunicate request_size=10 [15:57:10]MH_SAM_APDU [15:57:10]CAPDU: 80 0D 02 02 05 C5 28 3C 7F C0 [15:57:10]Write to MH i2c: E2 0D 00 26 51 80 0D 02 02 05 00 C5 28 3C 7F C0 00 00 63 [15:57:10]Write i2c OK [15:57:10]MH_I2C_Read... [15:57:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:10]Read from MH i2c: E2 [15:57:10]MH_I2C_Read... [15:57:10]Read from MH i2c: E2 03 00 [15:57:10]MH_I2C_Read... [15:57:10]Read from MH i2c: E2 03 00 26 51 00 90 00 EB [15:57:10]RAPDU: 90 00 [15:57:10]wFMCommunicate OK [15:57:10]wFMCommunicate request_size=4 [15:57:10]MH_SAM_APDU [15:57:10]CAPDU: 80 0D 03 02 [15:57:10]Write to MH i2c: E2 08 00 27 51 80 0D 03 02 00 00 00 00 F3 [15:57:10]Write i2c OK [15:57:10]MH_I2C_Read... [15:57:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:10]Read from MH i2c: E2 [15:57:10]MH_I2C_Read... [15:57:10]Read from MH i2c: E2 0B 00 [15:57:10]MH_I2C_Read... [15:57:10]Read from MH i2c: E2 0B 00 27 51 00 3B 40 EC D4 07 31 FF 87 90 00 ED [15:57:10]RAPDU: 3B 40 EC D4 07 31 FF 87 90 00 [15:57:10]wFMCommunicate OK [15:57:10]SAM_PROTO_SignData done [15:57:10]FM_MakeSignedData done [15:57:10]CreateOFDProtocolMessage [15:57:10]wFMCommunicate request_size=4 [15:57:10]MH_SAM_APDU [15:57:10]CAPDU: 80 11 00 00 [15:57:10]Write to MH i2c: E2 08 00 28 51 80 11 00 00 00 00 00 00 F3 [15:57:10]Write i2c OK [15:57:10]MH_I2C_Read... [15:57:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:10]Read from MH i2c: E2 [15:57:10]MH_I2C_Read... [15:57:10]Read from MH i2c: E2 17 00 [15:57:10]MH_I2C_Read... [15:57:10]Read from MH i2c: E2 17 00 28 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4A [15:57:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:57:10]wFMCommunicate OK [15:57:10]CreateOFDProtocolMessage done [15:57:10]OFDSenderStorePacket 228308 [15:57:10]StoreOFDPacket docnum=228308 [15:57:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 0D 16 07 01 91 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 59 CB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D4 7B 03 00 35 04 06 00 FC C5 28 3C 7F C0 3B 40 EC D4 07 31 FF 87 [15:57:10]CheckFolder [15:57:10]dirname=/storage/ofd_packets [15:57:10]CheckFolder done [15:57:10]ProducePacketName [15:57:10]name=ofd_packets/00228308 [15:57:10]NVStorageSaveData ofd_packets/00228308 [15:57:10]File name is /storage/ofd_packets/00228308 [15:57:10]Write 301 bytes [15:57:10]NVStorageSaveData done [15:57:10]OFDSenderStorePacket done [15:57:10]KKMCreateOFDPacket done [15:57:10]NVStorageSaveData kkm_last_timestamp [15:57:10]File name is /storage/kkm_last_timestamp [15:57:10]Write 4 bytes [15:57:10]NVStorageSaveData done [15:57:10]ExternCall_PrintAddStr [15:57:10]wPrintStart [15:57:10]Write to MH i2c: 01 00 00 29 51 7A [15:57:10]Write i2c OK [15:57:10]MH_I2C_Read... [15:57:10]Read from MH i2c: 01 [15:57:10]MH_I2C_Read... [15:57:10]Read from MH i2c: 01 07 00 [15:57:10]MH_I2C_Read... [15:57:10]Read from MH i2c: 01 07 00 29 51 00 00 00 00 00 FF 0F 8F [15:57:10]RasterBufferAndPrint [15:57:10]line Счет N : (1)1964789 [15:57:10]line ИНН: 02508201610067 [15:57:10]line Контрольно-Кассовый Чек [15:57:10]line ПРОДАЖА [15:57:10]line ТРК (МРК, ГНК) : 63 [15:57:10]line Товар: 2710124130 [15:57:10]line Аи-92-К-5 [15:57:10]line 7.480 * 66.90 [15:57:10]line = 500.41 [15:57:10]line НДС 12% НСП 1% [15:57:10]line > о реализуемом товаре [15:57:10]line ОКРУГЛЕНИЕ: -0.41 [15:57:10]line ИТОГО: 500.00 [15:57:10]line Внесено: 500.00 [15:57:10]line СДАЧА: 0.00 [15:57:10]line НСП 1% : 4.43 [15:57:10]line НДС 12% : 53.14 [15:57:10]line Наличными: 500.00 [15:57:10]line Безнал.: 0.00 [15:57:10]line Место: АЗС № 133 "Партнер Нефть" [15:57:10]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:57:10]line СНО: Общий режим [15:57:10]line Чек 272 22.10.2024 15:57 [15:57:10]line Смена: 535 ФФД: 1.0 [15:57:10]line ЗНМ: 0300000091 [15:57:10]line РНМ: 0000000000091685 [15:57:10]line Версия ККМ: 001 [15:57:10]line ФМ: 0000000000871839 [15:57:10]line ФД: 228308 [15:57:10]line ФПД: 277923713810368 [15:57:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155713&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228308&fm=277923713810368&tin=02508201610067®Number=0000000000091685&sum=50000 [15:57:10]OFD Sender: Processing packet 228308 [packets to send 38, broken 37] [15:57:10]ProducePacketName [15:57:10]name=ofd_packets/00228308 [15:57:10]OFD Sender: To server: pG, [15:57:10]CommunicateWithHost lk.salyk.kg:30040 [15:57:10]ConnectInit lk.salyk.kg [15:57:10]written 0, free lines is 4095 [15:57:10]Connected sock=10 [15:57:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 0D 16 07 01 91 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 59 CB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D4 7B 03 00 35 04 06 00 FC C5 28 3C 7F C0 3B 40 EC D4 07 31 FF 87 [15:57:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 0F C3 47 00 59 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D4 7B 03 00 F4 03 04 00 51 76 17 67 B6 04 01 00 00 B0 7E B4 DB 84 D7 8B 1C [15:57:10]CommunicateWithHost err = 0 [15:57:10]CheckOFDResponse [15:57:10]1017 (14) - 77093643461234 [15:57:10]1041 (16) - 0000000000871839 [15:57:10]1040 (4) - 228308 [15:57:10]1012 (4) - 22.10.2024 09:54 [15:57:10]1206 (1) - 0 [15:57:10]OFD Sender: Remove packet 228308 [15:57:10]ProducePacketName [15:57:10]name=ofd_packets/00228308 [15:57:10]NVStorageDeleteData [15:57:10]Write to MH i2c: 01 00 00 53 51 A4 [15:57:10]Write i2c OK [15:57:10]MH_I2C_Read... [15:57:10]Read from MH i2c: 01 [15:57:10]MH_I2C_Read... [15:57:10]Read from MH i2c: 01 07 00 [15:57:10]MH_I2C_Read... [15:57:10]Read from MH i2c: 01 07 00 53 51 00 00 00 00 00 BF 0C 76 [15:57:10]RasterBufferAndPrint [15:57:10]line [15:57:10]line [15:57:10]line [15:57:10]line [15:57:10]line [15:57:10]written 0, free lines is 3267 [15:57:10]MH_Cut [15:57:10]Write to MH i2c: D1 01 00 5A 51 01 7D [15:57:10]Write i2c OK [15:57:10]MH_I2C_Read... [15:57:10]Read from MH i2c: D1 [15:57:10]MH_I2C_Read... [15:57:10]Read from MH i2c: D1 01 00 [15:57:10]MH_I2C_Read... [15:57:10]Read from MH i2c: D1 01 00 5A 51 00 7C [15:57:10]Write to MH i2c: 01 00 00 5B 51 AC [15:57:10]Write i2c OK [15:57:10]MH_I2C_Read... [15:57:11]OFD Sender: No OFD packet to send [15:57:11]*** Cut start [15:57:11]*** Partial cut [15:57:11]*** CUTSNS_PIN = 1 [15:57:11]*** CUTSNS_PIN = 0 [15:57:12]*** Brake cut motor [15:57:12]Read from MH i2c: 01 [15:57:12]MH_I2C_Read... [15:57:12]*** Stop cut motor [15:57:12]*** Cut end [15:57:12]Read from MH i2c: 01 07 00 [15:57:12]MH_I2C_Read... [15:57:12]Read from MH i2c: 01 07 00 5B 51 00 00 00 00 00 FF 0F C1 [15:57:12]process_action close_receipt done [15:57:12]requested_data is exist [15:57:12]produce_requested_data [15:57:12]requested_item fm.sn is exist - process it [15:57:12]wFMCommunicate request_size=4 [15:57:12]MH_SAM_APDU [15:57:12]CAPDU: 80 11 00 00 [15:57:12]Write to MH i2c: E2 08 00 5C 51 80 11 00 00 00 00 00 00 27 [15:57:12]Write i2c OK [15:57:12]MH_I2C_Read... [15:57:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:12]Read from MH i2c: E2 [15:57:12]MH_I2C_Read... [15:57:12]Read from MH i2c: E2 17 00 [15:57:12]MH_I2C_Read... [15:57:12]Read from MH i2c: E2 17 00 5C 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7E [15:57:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:57:12]wFMCommunicate OK [15:57:12]requested_item fd.num is exist - process it [15:57:12]SAM_PROTO_GetFieldsCounters [15:57:12]wFMCommunicate request_size=4 [15:57:12]MH_SAM_APDU [15:57:12]CAPDU: 80 13 00 00 [15:57:12]Write to MH i2c: E2 08 00 5D 51 80 13 00 00 00 00 00 00 2A [15:57:12]Write i2c OK [15:57:12]MH_I2C_Read... [15:57:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:12]Read from MH i2c: E2 [15:57:12]MH_I2C_Read... [15:57:12]Read from MH i2c: E2 62 00 [15:57:12]MH_I2C_Read... [15:57:12]Read from MH i2c: E2 62 00 5D 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D4 7B 03 00 0E 04 04 00 17 02 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 F1 [15:57:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D4 7B 03 00 0E 04 04 00 17 02 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 [15:57:12]wFMCommunicate OK [15:57:12]SAM_PROTO_GetFieldsCounters done [15:57:12]requested_item shift.num is exist - process it [15:57:12]requested_item shift.opened is exist - process it [15:57:12]req_shift_opened [15:57:12]FM_GetShiftState [15:57:12]SAM_PROTO_GetShiftState [15:57:12]wFMCommunicate request_size=4 [15:57:12]MH_SAM_APDU [15:57:12]CAPDU: 80 13 01 00 [15:57:12]Write to MH i2c: E2 08 00 5E 51 80 13 01 00 00 00 00 00 2C [15:57:12]Write i2c OK [15:57:12]MH_I2C_Read... [15:57:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:12]Read from MH i2c: E2 [15:57:12]MH_I2C_Read... [15:57:12]Read from MH i2c: E2 0E 00 [15:57:12]MH_I2C_Read... [15:57:12]Read from MH i2c: E2 0E 00 5E 51 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 F3 [15:57:12]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:57:12]wFMCommunicate OK [15:57:12]SAM_PROTO_GetShiftState done [15:57:12]FM_GetShiftState done [15:57:12]req_shift_opened done [15:57:12]requested_item shift.open_date is exist - process it [15:57:12]req_shift_open_date [15:57:12]req_shift_open_date done [15:57:12]produce_requested_data done [15:57:12]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228308,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:57:12]process_action_free close_receipt [15:57:12]json_value_free [15:57:12]json_value_free done [15:57:12]process_json_proto returns [15:57:12]Send response to host [15:57:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228308,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:57:12]free response buf [15:57:12]execute_script done [15:57:12]execute_script returns [15:57:12]free content buf [15:57:12]Sock 7.Close socket [15:57:12]Sock 7.Thread stoped [15:57:16]OFD Sender: No OFD packet to send [15:57:21]OFD Sender: No OFD packet to send [15:57:26]OFD Sender: No OFD packet to send [15:57:31]OFD Sender: No OFD packet to send [15:57:36]OFD Sender: No OFD packet to send [15:57:41]OFD Sender: No OFD packet to send [15:57:46]OFD Sender: No OFD packet to send [15:57:51]OFD Sender: No OFD packet to send [15:57:56]OFD Sender: No OFD packet to send [15:58:01]accept exits with 9 [15:58:01]New connection [15:58:01]New thread 3066994020 created [15:58:01]Thread 3067137380 joined [15:58:01]Waiting for new connection... [15:58:01] Sock 9.Parse request [15:58:01]Sock 9.Check first char [15:58:01]Sock 9.First char is OK [15:58:01]request: POST /json_proto HTTP/1.0 [15:58:01]Method: POST [15:58:01]URL: /json_proto [15:58:01]Method is POST - this is cgi request [15:58:01]url: /json_proto [15:58:01]query_string will be loaded in cgi processing [15:58:01]execute_cgi json_proto POST (null) [15:58:01]execute_cgi path=json_proto method=POST [15:58:01]POST find Content-Length [15:58:01]Host: 172.17.44.195:8080 [15:58:01]Content-Length: 679 [15:58:01]Content-Type: application/json [15:58:01] [15:58:01]POST finish read [15:58:01]Found Content-Length = 679 [15:58:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "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" ] } } [15:58:01]execute_script... [15: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)1964790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "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" ] } } [15:58:01]POST & json_proto [15:58:01]process_json_proto [15:58:01]json parsed OK: [15:58:01]protocol is kg_v1.0 [15:58:01]action value=close_receipt [15:58:01]process_action close_receipt [15:58:01]cmd_close_receipt [15:58:01]MH_GetDate [15:58:01]Write to MH i2c: F0 00 00 5F 51 9F [15:58:01]Write i2c OK [15:58:01]MH_I2C_Read... [15:58:01]Read from MH i2c: F0 [15:58:01]MH_I2C_Read... [15:58:01]Read from MH i2c: F0 09 00 [15:58:01]MH_I2C_Read... [15:58:01]Read from MH i2c: F0 09 00 5F 51 00 8D CB 17 67 82 C9 CF 66 FE [15:58:01]GetLastDocTimeStamp 1729612633 [15:58:01]current date 1729612685 [15:58:01]FM_GetShiftState [15:58:01]SAM_PROTO_GetShiftState [15:58:01]wFMCommunicate request_size=4 [15:58:01]MH_SAM_APDU [15:58:01]CAPDU: 80 13 01 00 [15:58:01]Write to MH i2c: E2 08 00 60 51 80 13 01 00 00 00 00 00 2E [15:58:01]Write i2c OK [15:58:01]MH_I2C_Read... [15:58:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:01]Read from MH i2c: E2 [15:58:01]MH_I2C_Read... [15:58:01]Read from MH i2c: E2 0E 00 [15:58:01]MH_I2C_Read... [15:58:01]Read from MH i2c: E2 0E 00 60 51 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 F5 [15:58:01]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:58:01]wFMCommunicate OK [15:58:01]SAM_PROTO_GetShiftState done [15:58:01]FM_GetShiftState done [15:58:01]opened in 1729555538 [15:58:01]opened+sec_in_day 1729641938 [15:58:01]quantity*price = 80061 [15:58:01]sum+1 = 80063 [15:58:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 273 22.10.2024 15:58 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228309 ФПД: 150938512969308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155805&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228309&fm=150938512969308&tin=02508201610067®Number=0000000000091685&sum=80000 [15:58:02]StoreToDocumentArchive [15:58:02]shift 535 fd 228309 [15:58:02]save to /storage/0535/doc_00228309 [15:58:02]save last doc name /storage/0535/doc_00228309 to /storage/kkm_last_doc_name [15:58:02]save OK [15:58:02]Clear old archive folders... [15:58:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:58:02]tlvbuf is 0093CAF0 [15:58:02]SAM_PROTO_ClearQueue [15:58:02]wFMCommunicate request_size=4 [15:58:02]MH_SAM_APDU [15:58:02]CAPDU: 80 09 00 00 [15:58:02]Write to MH i2c: E2 08 00 6D 51 80 09 00 00 00 00 00 00 30 [15:58:02]Write i2c OK [15:58:02]MH_I2C_Read... [15:58:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:58:02]Read from MH i2c: E2 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 03 00 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 03 00 6D 51 00 90 00 32 [15:58:02]RAPDU: 90 00 [15:58:02]wFMCommunicate OK [15:58:02]SAM_PROTO_ClearQueue done [15:58:02]KKMCreateOFDPacket [15:58:02]OFDProtocolAddRootSTLVToBuf [15:58:02]FM_MakeSignedData [15:58:02]FM_MakeSignedData [15:58:02]SAM_PROTO_SignData [15:58:02]wFMCommunicate request_size=4 [15:58:02]MH_SAM_APDU [15:58:02]CAPDU: 80 0D 01 02 [15:58:02]Write to MH i2c: E2 08 00 6E 51 80 0D 01 02 00 00 00 00 38 [15:58:02]Write i2c OK [15:58:02]MH_I2C_Read... [15:58:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:58:02]Read from MH i2c: E2 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 03 00 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 03 00 6E 51 00 90 00 33 [15:58:02]RAPDU: 90 00 [15:58:02]wFMCommunicate OK [15:58:02]wFMCommunicate request_size=255 [15:58:02]MH_SAM_APDU [15:58: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 8D CB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D5 7B 03 00 35 04 06 00 89 [15:58:02]Write to MH i2c: E2 02 01 6F 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 8D CB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D5 7B 03 00 35 04 06 00 89 00 00 19 [15:58:02]Write i2c OK [15:58:02]MH_I2C_Read... [15:58:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:02]Read from MH i2c: E2 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 03 00 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 03 00 6F 51 00 90 00 34 [15:58:02]RAPDU: 90 00 [15:58:02]wFMCommunicate OK [15:58:02]wFMCommunicate request_size=10 [15:58:02]MH_SAM_APDU [15:58:02]CAPDU: 80 0D 02 02 05 47 1C 72 CE 5C [15:58:02]Write to MH i2c: E2 0D 00 70 51 80 0D 02 02 05 00 47 1C 72 CE 5C 00 00 44 [15:58:02]Write i2c OK [15:58:02]MH_I2C_Read... [15:58:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:02]Read from MH i2c: E2 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 03 00 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 03 00 70 51 00 90 00 35 [15:58:02]RAPDU: 90 00 [15:58:02]wFMCommunicate OK [15:58:02]wFMCommunicate request_size=4 [15:58:02]MH_SAM_APDU [15:58:02]CAPDU: 80 0D 03 02 [15:58:02]Write to MH i2c: E2 08 00 71 51 80 0D 03 02 00 00 00 00 3D [15:58:02]Write i2c OK [15:58:02]MH_I2C_Read... [15:58:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:58:02]Read from MH i2c: E2 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 0B 00 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 0B 00 71 51 00 D3 0F 4D 7D 94 D8 C7 40 90 00 5D [15:58:02]RAPDU: D3 0F 4D 7D 94 D8 C7 40 90 00 [15:58:02]wFMCommunicate OK [15:58:02]SAM_PROTO_SignData done [15:58:02]FM_MakeSignedData done [15:58:02]CreateOFDProtocolMessage [15:58:02]wFMCommunicate request_size=4 [15:58:02]MH_SAM_APDU [15:58:02]CAPDU: 80 11 00 00 [15:58:02]Write to MH i2c: E2 08 00 72 51 80 11 00 00 00 00 00 00 3D [15:58:02]Write i2c OK [15:58:02]MH_I2C_Read... [15:58:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:02]Read from MH i2c: E2 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 17 00 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 17 00 72 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 94 [15:58:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:58:02]wFMCommunicate OK [15:58:02]CreateOFDProtocolMessage done [15:58:02]OFDSenderStorePacket 228309 [15:58:02]StoreOFDPacket docnum=228309 [15:58:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 00 E2 07 01 B7 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 8D CB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D5 7B 03 00 35 04 06 00 89 47 1C 72 CE 5C D3 0F 4D 7D 94 D8 C7 40 [15:58:02]CheckFolder [15:58:02]dirname=/storage/ofd_packets [15:58:02]CheckFolder done [15:58:02]ProducePacketName [15:58:02]name=ofd_packets/00228309 [15:58:02]NVStorageSaveData ofd_packets/00228309 [15:58:02]File name is /storage/ofd_packets/00228309 [15:58:02]Write 301 bytes [15:58:02]NVStorageSaveData done [15:58:02]OFDSenderStorePacket done [15:58:02]KKMCreateOFDPacket done [15:58:02]NVStorageSaveData kkm_last_timestamp [15:58:02]File name is /storage/kkm_last_timestamp [15:58:02]Write 4 bytes [15:58:02]NVStorageSaveData done [15:58:02]ExternCall_PrintAddStr [15:58:02]wPrintStart [15:58:02]Write to MH i2c: 01 00 00 73 51 C4 [15:58:02]Write i2c OK [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: 01 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: 01 07 00 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: 01 07 00 73 51 00 00 00 00 00 FF 0F D9 [15:58:02]RasterBufferAndPrint [15:58:02]line Счет N : (1)1964790 [15:58:02]line ИНН: 02508201610067 [15:58:02]line Контрольно-Кассовый Чек [15:58:02]line ПРОДАЖА [15:58:02]line ТРК (МРК, ГНК) : 34 [15:58:02]line Товар: 2710124500 [15:58:02]line Аи-95-К-5 [15:58:02]line 10.790 * 74.20 [15:58:02]line = 800.62 [15:58:02]line НДС 12% НСП 1% [15:58:02]line > о реализуемом товаре [15:58:02]line ОКРУГЛЕНИЕ: -0.62 [15:58:02]line ИТОГО: 800.00 [15:58:02]line Внесено: 800.00 [15:58:02]line СДАЧА: 0.00 [15:58:02]line НСП 1% : 7.08 [15:58:02]line НДС 12% : 85.02 [15:58:02]line Наличными: 800.00 [15:58:02]line Безнал.: 0.00 [15:58:02]line Место: АЗС № 133 "Партнер Нефть" [15:58:02]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:58:02]line СНО: Общий режим [15:58:02]line Чек 273 22.10.2024 15:58 [15:58:02]line Смена: 535 ФФД: 1.0 [15:58:02]line ЗНМ: 0300000091 [15:58:02]line РНМ: 0000000000091685 [15:58:02]line Версия ККМ: 001 [15:58:02]line ФМ: 0000000000871839 [15:58:02]line ФД: 228309 [15:58:02]line ФПД: 150938512969308 [15:58:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155805&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228309&fm=150938512969308&tin=02508201610067®Number=0000000000091685&sum=80000 [15:58:03]OFD Sender: Processing packet 228309 [packets to send 38, broken 37] [15:58:03]ProducePacketName [15:58:03]name=ofd_packets/00228309 [15:58:03]OFD Sender: To server: pG, [15:58:03]CommunicateWithHost lk.salyk.kg:30040 [15:58:03]ConnectInit lk.salyk.kg [15:58:03]written 0, free lines is 4095 [15:58:03]Connected sock=10 [15:58:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 00 E2 07 01 B7 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 8D CB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D5 7B 03 00 35 04 06 00 89 47 1C 72 CE 5C D3 0F 4D 7D 94 D8 C7 40 [15:58:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 48 77 47 00 23 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D5 7B 03 00 F4 03 04 00 85 76 17 67 B6 04 01 00 00 E2 67 0C 85 E3 25 6F C0 [15:58:03]CommunicateWithHost err = 0 [15:58:03]CheckOFDResponse [15:58:03]1017 (14) - 77093643461234 [15:58:03]1041 (16) - 0000000000871839 [15:58:03]1040 (4) - 228309 [15:58:03]1012 (4) - 22.10.2024 09:55 [15:58:03]1206 (1) - 0 [15:58:03]OFD Sender: Remove packet 228309 [15:58:03]ProducePacketName [15:58:03]name=ofd_packets/00228309 [15:58:03]NVStorageDeleteData [15:58:03]Write to MH i2c: 01 00 00 9D 51 EE [15:58:03]Write i2c OK [15:58:03]MH_I2C_Read... [15:58:03]Read from MH i2c: 01 [15:58:03]MH_I2C_Read... [15:58:03]Read from MH i2c: 01 07 00 [15:58:03]MH_I2C_Read... [15:58:03]Read from MH i2c: 01 07 00 9D 51 00 00 00 00 00 B7 0C B8 [15:58:03]RasterBufferAndPrint [15:58:03]line [15:58:03]line [15:58:03]line [15:58:03]line [15:58:03]line [15:58:03]written 0, free lines is 3259 [15:58:03]MH_Cut [15:58:03]Write to MH i2c: D1 01 00 A4 51 01 C7 [15:58:03]Write i2c OK [15:58:03]MH_I2C_Read... [15:58:03]Read from MH i2c: D1 [15:58:03]MH_I2C_Read... [15:58:03]Read from MH i2c: D1 01 00 [15:58:03]MH_I2C_Read... [15:58:03]Read from MH i2c: D1 01 00 A4 51 00 C6 [15:58:03]Write to MH i2c: 01 00 00 A5 51 F6 [15:58:03]Write i2c OK [15:58:03]MH_I2C_Read... [15:58:04]OFD Sender: No OFD packet to send [15:58:04]*** Cut start [15:58:04]*** Partial cut [15:58:04]*** CUTSNS_PIN = 1 [15:58:04]*** CUTSNS_PIN = 0 [15:58:04]*** Brake cut motor [15:58:05]Read from MH i2c: 01 [15:58:05]MH_I2C_Read... [15:58:05]*** Stop cut motor [15:58:05]*** Cut end [15:58:05]Read from MH i2c: 01 07 00 [15:58:05]MH_I2C_Read... [15:58:05]Read from MH i2c: 01 07 00 A5 51 00 00 00 00 00 FF 0F 0B [15:58:05]process_action close_receipt done [15:58:05]requested_data is exist [15:58:05]produce_requested_data [15:58:05]requested_item fm.sn is exist - process it [15:58:05]wFMCommunicate request_size=4 [15:58:05]MH_SAM_APDU [15:58:05]CAPDU: 80 11 00 00 [15:58:05]Write to MH i2c: E2 08 00 A6 51 80 11 00 00 00 00 00 00 71 [15:58:05]Write i2c OK [15:58:05]MH_I2C_Read... [15:58:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:05]Read from MH i2c: E2 [15:58:05]MH_I2C_Read... [15:58:05]Read from MH i2c: E2 17 00 [15:58:05]MH_I2C_Read... [15:58:05]Read from MH i2c: E2 17 00 A6 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C8 [15:58:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:58:05]wFMCommunicate OK [15:58:05]requested_item fd.num is exist - process it [15:58:05]SAM_PROTO_GetFieldsCounters [15:58:05]wFMCommunicate request_size=4 [15:58:05]MH_SAM_APDU [15:58:05]CAPDU: 80 13 00 00 [15:58:05]Write to MH i2c: E2 08 00 A7 51 80 13 00 00 00 00 00 00 74 [15:58:05]Write i2c OK [15:58:05]MH_I2C_Read... [15:58:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:05]Read from MH i2c: E2 [15:58:05]MH_I2C_Read... [15:58:05]Read from MH i2c: E2 62 00 [15:58:05]MH_I2C_Read... [15:58:05]Read from MH i2c: E2 62 00 A7 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D5 7B 03 00 0E 04 04 00 17 02 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 3F [15:58:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D5 7B 03 00 0E 04 04 00 17 02 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 [15:58:05]wFMCommunicate OK [15:58:05]SAM_PROTO_GetFieldsCounters done [15:58:05]requested_item shift.num is exist - process it [15:58:05]requested_item shift.opened is exist - process it [15:58:05]req_shift_opened [15:58:05]FM_GetShiftState [15:58:05]SAM_PROTO_GetShiftState [15:58:05]wFMCommunicate request_size=4 [15:58:05]MH_SAM_APDU [15:58:05]CAPDU: 80 13 01 00 [15:58:05]Write to MH i2c: E2 08 00 A8 51 80 13 01 00 00 00 00 00 76 [15:58:05]Write i2c OK [15:58:05]MH_I2C_Read... [15:58:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:05]Read from MH i2c: E2 [15:58:05]MH_I2C_Read... [15:58:05]Read from MH i2c: E2 0E 00 [15:58:05]MH_I2C_Read... [15:58:05]Read from MH i2c: E2 0E 00 A8 51 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 3D [15:58:05]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [15:58:05]wFMCommunicate OK [15:58:05]SAM_PROTO_GetShiftState done [15:58:05]FM_GetShiftState done [15:58:05]req_shift_opened done [15:58:05]requested_item shift.open_date is exist - process it [15:58:05]req_shift_open_date [15:58:05]req_shift_open_date done [15:58:05]produce_requested_data done [15:58:05]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228309,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [15:58:05]process_action_free close_receipt [15:58:05]json_value_free [15:58:05]json_value_free done [15:58:05]process_json_proto returns [15:58:05]Send response to host [15:58:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228309,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [15:58:05]free response buf [15:58:05]execute_script done [15:58:05]execute_script returns [15:58:05]free content buf [15:58:05]Sock 9.Close socket [15:58:05]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [15:58:59]OFD Sender: No OFD packet to send [15:59:04]OFD Sender: No OFD packet to send [15:59:09]OFD Sender: No OFD packet to send [15:59:14]OFD Sender: No OFD packet to send [15:59:19]OFD Sender: No OFD packet to send [15:59:24]OFD Sender: No OFD packet to send [15:59:29]OFD Sender: No OFD packet to send [15:59:34]OFD Sender: No OFD packet to send [15:59:39]OFD Sender: No OFD packet to send [15:59:44]OFD Sender: No OFD packet to send [15:59:49]OFD Sender: No OFD packet to send [15:59:54]OFD Sender: No OFD packet to send [15:59:59]OFD Sender: No OFD packet to send [16:00:04]OFD Sender: No OFD packet to send [16:00:09]OFD Sender: No OFD packet to send [16:00:14]OFD Sender: No OFD packet to send [16:00:19]OFD Sender: No OFD packet to send [16:00:24]OFD Sender: No OFD packet to send [16:00:29]OFD Sender: No OFD packet to send [16:00:34]OFD Sender: No OFD packet to send [16:00:39]OFD Sender: No OFD packet to send [16:00:44]OFD Sender: No OFD packet to send [16:00:49]OFD Sender: No OFD packet to send [16:00:54]OFD Sender: No OFD packet to send [16:00:59]OFD Sender: No OFD packet to send [16:01:04]OFD Sender: No OFD packet to send [16:01:09]OFD Sender: No OFD packet to send [16:01:14]OFD Sender: No OFD packet to send [16:01:15]accept exits with 7 [16:01:15]New connection [16:01:15]New thread 3067137380 created [16:01:15]Thread 3066994020 joined [16:01:15]Waiting for new connection... [16:01:15] Sock 7.Parse request [16:01:15]Sock 7.Check first char [16:01:15]Sock 7.First char is OK [16:01:15]request: POST /json_proto HTTP/1.0 [16:01:15]Method: POST [16:01:15]URL: /json_proto [16:01:15]Method is POST - this is cgi request [16:01:15]url: /json_proto [16:01:15]query_string will be loaded in cgi processing [16:01:15]execute_cgi json_proto POST (null) [16:01:15]execute_cgi path=json_proto method=POST [16:01:15]POST find Content-Length [16:01:15]Host: 172.17.44.195:8080 [16:01:15]Content-Length: 683 [16:01:15]Content-Type: application/json [16:01:15] [16:01:15]POST finish read [16:01:15]Found Content-Length = 683 [16:01:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 22.920, "sum" : 1700.66, "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" ] } } [16:01:15]execute_script... [16:01:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 22.920, "sum" : 1700.66, "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" ] } } [16:01:15]POST & json_proto [16:01:15]process_json_proto [16:01:15]json parsed OK: [16:01:15]protocol is kg_v1.0 [16:01:15]action value=close_receipt [16:01:15]process_action close_receipt [16:01:15]cmd_close_receipt [16:01:15]MH_GetDate [16:01:15]Write to MH i2c: F0 00 00 A9 51 E9 [16:01:15]Write i2c OK [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: F0 [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: F0 09 00 [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: F0 09 00 A9 51 00 50 CC 17 67 82 C9 CF 66 0C [16:01:15]GetLastDocTimeStamp 1729612685 [16:01:15]current date 1729612880 [16:01:15]FM_GetShiftState [16:01:15]SAM_PROTO_GetShiftState [16:01:15]wFMCommunicate request_size=4 [16:01:15]MH_SAM_APDU [16:01:15]CAPDU: 80 13 01 00 [16:01:15]Write to MH i2c: E2 08 00 AA 51 80 13 01 00 00 00 00 00 78 [16:01:15]Write i2c OK [16:01:15]MH_I2C_Read... [16:01:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:15]Read from MH i2c: E2 [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: E2 0E 00 [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: E2 0E 00 AA 51 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 3F [16:01:15]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [16:01:15]wFMCommunicate OK [16:01:15]SAM_PROTO_GetShiftState done [16:01:15]FM_GetShiftState done [16:01:15]opened in 1729555538 [16:01:15]opened+sec_in_day 1729641938 [16:01:15]quantity*price = 170066 [16:01:15]sum+1 = 170067 [16:01:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.05 НДС 12% : 180.60 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 274 22.10.2024 16:01 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228310 ФПД: 190401184811412 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T160120&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228310&fm=190401184811412&tin=02508201610067®Number=0000000000091685&sum=170000 [16:01:16]StoreToDocumentArchive [16:01:16]shift 535 fd 228310 [16:01:16]save to /storage/0535/doc_00228310 [16:01:16]save last doc name /storage/0535/doc_00228310 to /storage/kkm_last_doc_name [16:01:16]save OK [16:01:16]Clear old archive folders... [16:01:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:01:16]tlvbuf is 008EB6B0 [16:01:16]SAM_PROTO_ClearQueue [16:01:16]wFMCommunicate request_size=4 [16:01:16]MH_SAM_APDU [16:01:16]CAPDU: 80 09 00 00 [16:01:16]Write to MH i2c: E2 08 00 B7 51 80 09 00 00 00 00 00 00 7A [16:01:16]Write i2c OK [16:01:16]MH_I2C_Read... [16:01:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:01:16]Read from MH i2c: E2 [16:01:16]MH_I2C_Read... [16:01:16]Read from MH i2c: E2 03 00 [16:01:16]MH_I2C_Read... [16:01:16]Read from MH i2c: E2 03 00 B7 51 00 90 00 7C [16:01:16]RAPDU: 90 00 [16:01:16]wFMCommunicate OK [16:01:16]SAM_PROTO_ClearQueue done [16:01:16]KKMCreateOFDPacket [16:01:16]OFDProtocolAddRootSTLVToBuf [16:01:16]FM_MakeSignedData [16:01:16]FM_MakeSignedData [16:01:16]SAM_PROTO_SignData [16:01:16]wFMCommunicate request_size=4 [16:01:16]MH_SAM_APDU [16:01:16]CAPDU: 80 0D 01 02 [16:01:16]Write to MH i2c: E2 08 00 B8 51 80 0D 01 02 00 00 00 00 82 [16:01:16]Write i2c OK [16:01:16]MH_I2C_Read... [16:01:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:01:16]Read from MH i2c: E2 [16:01:16]MH_I2C_Read... [16:01:16]Read from MH i2c: E2 03 00 [16:01:16]MH_I2C_Read... [16:01:16]Read from MH i2c: E2 03 00 B8 51 00 90 00 7D [16:01:16]RAPDU: 90 00 [16:01:16]wFMCommunicate OK [16:01:16]wFMCommunicate request_size=255 [16:01:16]MH_SAM_APDU [16:01: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 50 CC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D6 7B 03 00 35 04 06 00 AD [16:01:16]Write to MH i2c: E2 02 01 B9 51 80 0D 02 02 FA 00 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 88 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 50 CC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D6 7B 03 00 35 04 06 00 AD 00 00 50 [16:01:16]Write i2c OK [16:01:16]MH_I2C_Read... [16:01:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:17]Read from MH i2c: E2 [16:01:17]MH_I2C_Read... [16:01:17]Read from MH i2c: E2 03 00 [16:01:17]MH_I2C_Read... [16:01:17]Read from MH i2c: E2 03 00 B9 51 00 90 00 7E [16:01:17]RAPDU: 90 00 [16:01:17]wFMCommunicate OK [16:01:17]wFMCommunicate request_size=10 [16:01:17]MH_SAM_APDU [16:01:17]CAPDU: 80 0D 02 02 05 2B 3A FC 49 94 [16:01:17]Write to MH i2c: E2 0D 00 BA 51 80 0D 02 02 05 00 2B 3A FC 49 94 00 00 CD [16:01:17]Write i2c OK [16:01:17]MH_I2C_Read... [16:01:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:17]Read from MH i2c: E2 [16:01:17]MH_I2C_Read... [16:01:17]Read from MH i2c: E2 03 00 [16:01:17]MH_I2C_Read... [16:01:17]Read from MH i2c: E2 03 00 BA 51 00 90 00 7F [16:01:17]RAPDU: 90 00 [16:01:17]wFMCommunicate OK [16:01:17]wFMCommunicate request_size=4 [16:01:17]MH_SAM_APDU [16:01:17]CAPDU: 80 0D 03 02 [16:01:17]Write to MH i2c: E2 08 00 BB 51 80 0D 03 02 00 00 00 00 87 [16:01:17]Write i2c OK [16:01:17]MH_I2C_Read... [16:01:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:01:17]Read from MH i2c: E2 [16:01:17]MH_I2C_Read... [16:01:17]Read from MH i2c: E2 0B 00 [16:01:17]MH_I2C_Read... [16:01:17]Read from MH i2c: E2 0B 00 BB 51 00 55 47 9C 96 EE F8 64 44 90 00 E4 [16:01:17]RAPDU: 55 47 9C 96 EE F8 64 44 90 00 [16:01:17]wFMCommunicate OK [16:01:17]SAM_PROTO_SignData done [16:01:17]FM_MakeSignedData done [16:01:17]CreateOFDProtocolMessage [16:01:17]wFMCommunicate request_size=4 [16:01:17]MH_SAM_APDU [16:01:17]CAPDU: 80 11 00 00 [16:01:17]Write to MH i2c: E2 08 00 BC 51 80 11 00 00 00 00 00 00 87 [16:01:17]Write i2c OK [16:01:17]MH_I2C_Read... [16:01:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:17]Read from MH i2c: E2 [16:01:17]MH_I2C_Read... [16:01:17]Read from MH i2c: E2 17 00 [16:01:17]MH_I2C_Read... [16:01:17]Read from MH i2c: E2 17 00 BC 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DE [16:01:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:01:17]wFMCommunicate OK [16:01:17]CreateOFDProtocolMessage done [16:01:17]OFDSenderStorePacket 228310 [16:01:17]StoreOFDPacket docnum=228310 [16:01:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 68 DA 07 01 5D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 50 CC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D6 7B 03 00 35 04 06 00 AD 2B 3A FC 49 94 55 47 9C 96 EE F8 64 44 [16:01:17]CheckFolder [16:01:17]dirname=/storage/ofd_packets [16:01:17]CheckFolder done [16:01:17]ProducePacketName [16:01:17]name=ofd_packets/00228310 [16:01:17]NVStorageSaveData ofd_packets/00228310 [16:01:17]File name is /storage/ofd_packets/00228310 [16:01:17]Write 301 bytes [16:01:17]NVStorageSaveData done [16:01:17]OFDSenderStorePacket done [16:01:17]KKMCreateOFDPacket done [16:01:17]NVStorageSaveData kkm_last_timestamp [16:01:17]File name is /storage/kkm_last_timestamp [16:01:17]Write 4 bytes [16:01:17]NVStorageSaveData done [16:01:17]ExternCall_PrintAddStr [16:01:17]wPrintStart [16:01:17]Write to MH i2c: 01 00 00 BD 51 0E [16:01:17]Write i2c OK [16:01:17]MH_I2C_Read... [16:01:17]Read from MH i2c: 01 [16:01:17]MH_I2C_Read... [16:01:17]Read from MH i2c: 01 07 00 [16:01:17]MH_I2C_Read... [16:01:17]Read from MH i2c: 01 07 00 BD 51 00 00 00 00 00 FF 0F 23 [16:01:17]RasterBufferAndPrint [16:01:17]line Счет N : (1)1964791 [16:01:17]line ИНН: 02508201610067 [16:01:17]line Контрольно-Кассовый Чек [16:01:17]line ПРОДАЖА [16:01:17]line ТРК (МРК, ГНК) : 34 [16:01:17]line Товар: 2710124500 [16:01:17]line Аи-95-К-5 [16:01:17]line 22.920 * 74.20 [16:01:17]line = 1700.66 [16:01:17]line НДС 12% НСП 1% [16:01:17]line > о реализуемом товаре [16:01:17]line ОКРУГЛЕНИЕ: -0.66 [16:01:17]line ИТОГО: 1700.00 [16:01:17]line Внесено: 1700.00 [16:01:17]line СДАЧА: 0.00 [16:01:17]line НСП 1% : 15.05 [16:01:17]line НДС 12% : 180.60 [16:01:17]line Наличными: 1700.00 [16:01:17]line Безнал.: 0.00 [16:01:17]line Место: АЗС № 133 "Партнер Нефть" [16:01:17]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [16:01:17]line СНО: Общий режим [16:01:17]line Чек 274 22.10.2024 16:01 [16:01:17]line Смена: 535 ФФД: 1.0 [16:01:17]line ЗНМ: 0300000091 [16:01:17]line РНМ: 0000000000091685 [16:01:17]line Версия ККМ: 001 [16:01:17]line ФМ: 0000000000871839 [16:01:17]line ФД: 228310 [16:01:17]line ФПД: 190401184811412 [16:01:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T160120&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228310&fm=190401184811412&tin=02508201610067®Number=0000000000091685&sum=170000 [16:01:17]OFD Sender: Processing packet 228310 [packets to send 38, broken 37] [16:01:17]ProducePacketName [16:01:17]name=ofd_packets/00228310 [16:01:17]OFD Sender: To server: pG, [16:01:17]CommunicateWithHost lk.salyk.kg:30040 [16:01:17]ConnectInit lk.salyk.kg [16:01:17]written 0, free lines is 4095 [16:01:17]Connected sock=10 [16:01:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 68 DA 07 01 5D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 50 CC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D6 7B 03 00 35 04 06 00 AD 2B 3A FC 49 94 55 47 9C 96 EE F8 64 44 [16:01:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 6A E8 47 00 E0 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 38 37 31 38 33 39 10 04 04 00 D6 7B 03 00 F4 03 04 00 48 77 17 67 B6 04 01 00 00 EF DE F0 61 E0 49 C1 C3 [16:01:17]CommunicateWithHost err = 0 [16:01:17]CheckOFDResponse [16:01:17]1017 (14) - 77093643461234 [16:01:17]1041 (16) - 0000000000871839 [16:01:17]1040 (4) - 228310 [16:01:17]1012 (4) - 22.10.2024 09:58 [16:01:17]1206 (1) - 0 [16:01:17]OFD Sender: Remove packet 228310 [16:01:17]ProducePacketName [16:01:17]name=ofd_packets/00228310 [16:01:17]NVStorageDeleteData [16:01:18]Write to MH i2c: 01 00 00 E7 51 38 [16:01:18]Write i2c OK [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: 01 [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: 01 07 00 [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: 01 07 00 E7 51 00 00 00 00 00 AA 0C F5 [16:01:18]RasterBufferAndPrint [16:01:18]line [16:01:18]line [16:01:18]line [16:01:18]line [16:01:18]line [16:01:18]written 0, free lines is 3247 [16:01:18]MH_Cut [16:01:18]Write to MH i2c: D1 01 00 EE 51 01 11 [16:01:18]Write i2c OK [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: D1 [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: D1 01 00 [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: D1 01 00 EE 51 00 10 [16:01:18]Write to MH i2c: 01 00 00 EF 51 40 [16:01:18]Write i2c OK [16:01:18]MH_I2C_Read... [16:01:18]OFD Sender: No OFD packet to send [16:01:18]*** Cut start [16:01:18]*** Partial cut [16:01:18]*** CUTSNS_PIN = 1 [16:01:18]*** CUTSNS_PIN = 0 [16:01:19]*** Brake cut motor [16:01:19]Read from MH i2c: 01 [16:01:19]MH_I2C_Read... [16:01:19]*** Stop cut motor [16:01:19]*** Cut end [16:01:19]Read from MH i2c: 01 07 00 [16:01:19]MH_I2C_Read... [16:01:19]Read from MH i2c: 01 07 00 EF 51 00 00 00 00 00 FF 0F 55 [16:01:19]process_action close_receipt done [16:01:19]requested_data is exist [16:01:19]produce_requested_data [16:01:19]requested_item fm.sn is exist - process it [16:01:19]wFMCommunicate request_size=4 [16:01:19]MH_SAM_APDU [16:01:19]CAPDU: 80 11 00 00 [16:01:19]Write to MH i2c: E2 08 00 F0 51 80 11 00 00 00 00 00 00 BB [16:01:19]Write i2c OK [16:01:19]MH_I2C_Read... [16:01:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:19]Read from MH i2c: E2 [16:01:19]MH_I2C_Read... [16:01:19]Read from MH i2c: E2 17 00 [16:01:19]MH_I2C_Read... [16:01:19]Read from MH i2c: E2 17 00 F0 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 12 [16:01:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:01:19]wFMCommunicate OK [16:01:19]requested_item fd.num is exist - process it [16:01:19]SAM_PROTO_GetFieldsCounters [16:01:19]wFMCommunicate request_size=4 [16:01:19]MH_SAM_APDU [16:01:19]CAPDU: 80 13 00 00 [16:01:19]Write to MH i2c: E2 08 00 F1 51 80 13 00 00 00 00 00 00 BE [16:01:19]Write i2c OK [16:01:19]MH_I2C_Read... [16:01:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:19]Read from MH i2c: E2 [16:01:19]MH_I2C_Read... [16:01:19]Read from MH i2c: E2 62 00 [16:01:19]MH_I2C_Read... [16:01:19]Read from MH i2c: E2 62 00 F1 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D6 7B 03 00 0E 04 04 00 17 02 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 8D [16:01:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D6 7B 03 00 0E 04 04 00 17 02 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 [16:01:19]wFMCommunicate OK [16:01:19]SAM_PROTO_GetFieldsCounters done [16:01:19]requested_item shift.num is exist - process it [16:01:19]requested_item shift.opened is exist - process it [16:01:19]req_shift_opened [16:01:19]FM_GetShiftState [16:01:19]SAM_PROTO_GetShiftState [16:01:19]wFMCommunicate request_size=4 [16:01:19]MH_SAM_APDU [16:01:19]CAPDU: 80 13 01 00 [16:01:19]Write to MH i2c: E2 08 00 F2 51 80 13 01 00 00 00 00 00 C0 [16:01:19]Write i2c OK [16:01:19]MH_I2C_Read... [16:01:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:19]Read from MH i2c: E2 [16:01:19]MH_I2C_Read... [16:01:19]Read from MH i2c: E2 0E 00 [16:01:19]MH_I2C_Read... [16:01:19]Read from MH i2c: E2 0E 00 F2 51 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 87 [16:01:19]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [16:01:19]wFMCommunicate OK [16:01:19]SAM_PROTO_GetShiftState done [16:01:19]FM_GetShiftState done [16:01:19]req_shift_opened done [16:01:19]requested_item shift.open_date is exist - process it [16:01:19]req_shift_open_date [16:01:19]req_shift_open_date done [16:01:19]produce_requested_data done [16:01:19]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228310,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [16:01:19]process_action_free close_receipt [16:01:19]json_value_free [16:01:19]json_value_free done [16:01:19]process_json_proto returns [16:01:19]Send response to host [16:01:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228310,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [16:01:19]free response buf [16:01:19]execute_script done [16:01:19]execute_script returns [16:01:19]free content buf [16:01:19]Sock 7.Close socket [16:01:19]Sock 7.Thread stoped [16:01:20]accept exits with 9 [16:01:20]New connection [16:01:20]New thread 3066994020 created [16:01:20]Thread 3067137380 joined [16:01:20]Waiting for new connection... [16:01:20] Sock 9.Parse request [16:01:20]Sock 9.Check first char [16:01:20]Sock 9.First char is OK [16:01:20]request: POST /json_proto HTTP/1.0 [16:01:20]Method: POST [16:01:20]URL: /json_proto [16:01:20]Method is POST - this is cgi request [16:01:20]url: /json_proto [16:01:20]query_string will be loaded in cgi processing [16:01:20]execute_cgi json_proto POST (null) [16:01:20]execute_cgi path=json_proto method=POST [16:01:20]POST find Content-Length [16:01:20]Host: 172.17.44.195:8080 [16:01:20]Content-Length: 675 [16:01:20]Content-Type: application/json [16:01:20] [16:01:20]POST finish read [16:01:20]Found Content-Length = 675 [16:01:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964792", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:01:20]execute_script... [16:01: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)1964792", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:01:20]POST & json_proto [16:01:20]process_json_proto [16:01:20]json parsed OK: [16:01:20]protocol is kg_v1.0 [16:01:20]action value=close_receipt [16:01:20]process_action close_receipt [16:01:20]cmd_close_receipt [16:01:20]MH_GetDate [16:01:20]Write to MH i2c: F0 00 00 F3 51 33 [16:01:20]Write i2c OK [16:01:20]MH_I2C_Read... [16:01:20]Read from MH i2c: F0 [16:01:20]MH_I2C_Read... [16:01:20]Read from MH i2c: F0 09 00 [16:01:20]MH_I2C_Read... [16:01:20]Read from MH i2c: F0 09 00 F3 51 00 55 CC 17 67 82 C9 CF 66 5B [16:01:20]GetLastDocTimeStamp 1729612880 [16:01:20]current date 1729612885 [16:01:20]FM_GetShiftState [16:01:20]SAM_PROTO_GetShiftState [16:01:20]wFMCommunicate request_size=4 [16:01:20]MH_SAM_APDU [16:01:20]CAPDU: 80 13 01 00 [16:01:20]Write to MH i2c: E2 08 00 F4 51 80 13 01 00 00 00 00 00 C2 [16:01:20]Write i2c OK [16:01:20]MH_I2C_Read... [16:01:20]Read from MH i2c: E2 [16:01:20]MH_I2C_Read... [16:01:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:20]Read from MH i2c: E2 0E 00 [16:01:20]MH_I2C_Read... [16:01:20]Read from MH i2c: E2 0E 00 F4 51 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 89 [16:01:20]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [16:01:20]wFMCommunicate OK [16:01:20]SAM_PROTO_GetShiftState done [16:01:20]FM_GetShiftState done [16:01:20]opened in 1729555538 [16:01:20]opened+sec_in_day 1729641938 [16:01:20]quantity*price = 50063 [16:01:20]sum+1 = 50064 [16:01:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 275 22.10.2024 16:01 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228311 ФПД: 9226289068248 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T160125&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228311&fm=9226289068248&tin=02508201610067®Number=0000000000091685&sum=50000 [16:01:21]StoreToDocumentArchive [16:01:21]shift 535 fd 228311 [16:01:21]save to /storage/0535/doc_00228311 [16:01:21]save last doc name /storage/0535/doc_00228311 to /storage/kkm_last_doc_name [16:01:21]save OK [16:01:21]Clear old archive folders... [16:01:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:01:21]tlvbuf is 00907290 [16:01:21]SAM_PROTO_ClearQueue [16:01:21]wFMCommunicate request_size=4 [16:01:21]MH_SAM_APDU [16:01:21]CAPDU: 80 09 00 00 [16:01:21]Write to MH i2c: E2 08 00 01 52 80 09 00 00 00 00 00 00 C5 [16:01:21]Write i2c OK [16:01:21]MH_I2C_Read... [16:01:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:01:21]Read from MH i2c: E2 [16:01:21]MH_I2C_Read... [16:01:21]Read from MH i2c: E2 03 00 [16:01:21]MH_I2C_Read... [16:01:21]Read from MH i2c: E2 03 00 01 52 00 90 00 C7 [16:01:21]RAPDU: 90 00 [16:01:21]wFMCommunicate OK [16:01:21]SAM_PROTO_ClearQueue done [16:01:21]KKMCreateOFDPacket [16:01:21]OFDProtocolAddRootSTLVToBuf [16:01:21]FM_MakeSignedData [16:01:21]FM_MakeSignedData [16:01:21]SAM_PROTO_SignData [16:01:21]wFMCommunicate request_size=4 [16:01:21]MH_SAM_APDU [16:01:21]CAPDU: 80 0D 01 02 [16:01:21]Write to MH i2c: E2 08 00 02 52 80 0D 01 02 00 00 00 00 CD [16:01:21]Write i2c OK [16:01:21]MH_I2C_Read... [16:01:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:01:21]Read from MH i2c: E2 [16:01:21]MH_I2C_Read... [16:01:21]Read from MH i2c: E2 03 00 [16:01:21]MH_I2C_Read... [16:01:21]Read from MH i2c: E2 03 00 02 52 00 90 00 C8 [16:01:21]RAPDU: 90 00 [16:01:21]wFMCommunicate OK [16:01:21]wFMCommunicate request_size=255 [16:01:21]MH_SAM_APDU [16:01: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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 55 CC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D7 7B 03 00 35 04 06 00 08 64 29 AE [16:01:21]Write to MH i2c: E2 02 01 03 52 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 55 CC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D7 7B 03 00 35 04 06 00 08 64 29 AE 00 00 46 [16:01:21]Write i2c OK [16:01:21]MH_I2C_Read... [16:01:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:22]Read from MH i2c: E2 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: E2 03 00 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: E2 03 00 03 52 00 90 00 C9 [16:01:22]RAPDU: 90 00 [16:01:22]wFMCommunicate OK [16:01:22]wFMCommunicate request_size=7 [16:01:22]MH_SAM_APDU [16:01:22]CAPDU: 80 0D 02 02 02 B8 D8 [16:01:22]Write to MH i2c: E2 0A 00 04 52 80 0D 02 02 02 00 B8 D8 00 00 64 [16:01:22]Write i2c OK [16:01:22]MH_I2C_Read... [16:01:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:22]Read from MH i2c: E2 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: E2 03 00 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: E2 03 00 04 52 00 90 00 CA [16:01:22]RAPDU: 90 00 [16:01:22]wFMCommunicate OK [16:01:22]wFMCommunicate request_size=4 [16:01:22]MH_SAM_APDU [16:01:22]CAPDU: 80 0D 03 02 [16:01:22]Write to MH i2c: E2 08 00 05 52 80 0D 03 02 00 00 00 00 D2 [16:01:22]Write i2c OK [16:01:22]MH_I2C_Read... [16:01:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:01:22]Read from MH i2c: E2 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: E2 0B 00 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: E2 0B 00 05 52 00 F6 34 E5 CE 02 E6 95 4C 90 00 79 [16:01:22]RAPDU: F6 34 E5 CE 02 E6 95 4C 90 00 [16:01:22]wFMCommunicate OK [16:01:22]SAM_PROTO_SignData done [16:01:22]FM_MakeSignedData done [16:01:22]CreateOFDProtocolMessage [16:01:22]wFMCommunicate request_size=4 [16:01:22]MH_SAM_APDU [16:01:22]CAPDU: 80 11 00 00 [16:01:22]Write to MH i2c: E2 08 00 06 52 80 11 00 00 00 00 00 00 D2 [16:01:22]Write i2c OK [16:01:22]MH_I2C_Read... [16:01:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:22]Read from MH i2c: E2 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: E2 17 00 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: E2 17 00 06 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 29 [16:01:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:01:22]wFMCommunicate OK [16:01:22]CreateOFDProtocolMessage done [16:01:22]OFDSenderStorePacket 228311 [16:01:22]StoreOFDPacket docnum=228311 [16:01:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 88 06 04 01 CF 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 55 CC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D7 7B 03 00 35 04 06 00 08 64 29 AE B8 D8 F6 34 E5 CE 02 E6 95 4C [16:01:22]CheckFolder [16:01:22]dirname=/storage/ofd_packets [16:01:22]CheckFolder done [16:01:22]ProducePacketName [16:01:22]name=ofd_packets/00228311 [16:01:22]NVStorageSaveData ofd_packets/00228311 [16:01:22]File name is /storage/ofd_packets/00228311 [16:01:22]Write 298 bytes [16:01:22]NVStorageSaveData done [16:01:22]OFDSenderStorePacket done [16:01:22]KKMCreateOFDPacket done [16:01:22]NVStorageSaveData kkm_last_timestamp [16:01:22]File name is /storage/kkm_last_timestamp [16:01:22]Write 4 bytes [16:01:22]NVStorageSaveData done [16:01:22]ExternCall_PrintAddStr [16:01:22]wPrintStart [16:01:22]Write to MH i2c: 01 00 00 07 52 59 [16:01:22]Write i2c OK [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: 01 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: 01 07 00 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: 01 07 00 07 52 00 00 00 00 00 FF 0F 6E [16:01:22]RasterBufferAndPrint [16:01:22]line Счет N : (1)1964792 [16:01:22]line ИНН: 02508201610067 [16:01:22]line Контрольно-Кассовый Чек [16:01:22]line ПРОДАЖА [16:01:22]line ТРК (МРК, ГНК) : 51 [16:01:22]line Товар: 2710194210 [16:01:22]line ДТ-К-5 [16:01:22]line 6.570 * 76.20 [16:01:22]line = 500.63 [16:01:22]line НДС 12% НСП 1% [16:01:22]line > о реализуемом товаре [16:01:22]line ОКРУГЛЕНИЕ: -0.63 [16:01:22]line ИТОГО: 500.00 [16:01:22]line Внесено: 500.00 [16:01:22]line СДАЧА: 0.00 [16:01:22]line НСП 1% : 4.43 [16:01:22]line НДС 12% : 53.16 [16:01:22]line Наличными: 500.00 [16:01:22]line Безнал.: 0.00 [16:01:22]line Место: АЗС № 133 "Партнер Нефть" [16:01:22]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [16:01:22]line СНО: Общий режим [16:01:22]line Чек 275 22.10.2024 16:01 [16:01:22]line Смена: 535 ФФД: 1.0 [16:01:22]line ЗНМ: 0300000091 [16:01:22]line РНМ: 0000000000091685 [16:01:22]line Версия ККМ: 001 [16:01:22]line ФМ: 0000000000871839 [16:01:22]line ФД: 228311 [16:01:22]line ФПД: 9226289068248 [16:01:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T160125&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228311&fm=9226289068248&tin=02508201610067®Number=0000000000091685&sum=50000 [16:01:22]written 0, free lines is 4095 [16:01:22]OFD Sender: Processing packet 228311 [packets to send 38, broken 37] [16:01:22]ProducePacketName [16:01:22]name=ofd_packets/00228311 [16:01:22]OFD Sender: To server: pG, [16:01:22]CommunicateWithHost lk.salyk.kg:30040 [16:01:22]ConnectInit lk.salyk.kg [16:01:22]Connected sock=7 [16:01:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 88 06 04 01 CF 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 55 CC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D7 7B 03 00 35 04 06 00 08 64 29 AE B8 D8 F6 34 E5 CE 02 E6 95 4C [16:01:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 E0 E5 47 00 1E 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D7 7B 03 00 F4 03 04 00 4D 77 17 67 B6 04 01 00 00 3C C5 C7 7B 7D 02 03 AB [16:01:22]CommunicateWithHost err = 0 [16:01:22]CheckOFDResponse [16:01:22]1017 (14) - 77093643461234 [16:01:22]1041 (16) - 0000000000871839 [16:01:22]1040 (4) - 228311 [16:01:22]1012 (4) - 22.10.2024 09:58 [16:01:22]1206 (1) - 0 [16:01:22]OFD Sender: Remove packet 228311 [16:01:22]ProducePacketName [16:01:22]name=ofd_packets/00228311 [16:01:22]NVStorageDeleteData [16:01:23]Write to MH i2c: 01 00 00 31 52 83 [16:01:23]Write i2c OK [16:01:23]MH_I2C_Read... [16:01:23]Read from MH i2c: 01 [16:01:23]MH_I2C_Read... [16:01:23]Read from MH i2c: 01 07 00 [16:01:23]MH_I2C_Read... [16:01:23]Read from MH i2c: 01 07 00 31 52 00 00 00 00 00 C1 0C 57 [16:01:23]RasterBufferAndPrint [16:01:23]line [16:01:23]line [16:01:23]line [16:01:23]line [16:01:23]line [16:01:23]written 0, free lines is 3277 [16:01:23]MH_Cut [16:01:23]Write to MH i2c: D1 01 00 38 52 01 5C [16:01:23]Write i2c OK [16:01:23]MH_I2C_Read... [16:01:23]Read from MH i2c: D1 [16:01:23]MH_I2C_Read... [16:01:23]Read from MH i2c: D1 01 00 [16:01:23]MH_I2C_Read... [16:01:23]Read from MH i2c: D1 01 00 38 52 00 5B [16:01:23]Write to MH i2c: 01 00 00 39 52 8B [16:01:23]Write i2c OK [16:01:23]MH_I2C_Read... [16:01:23]OFD Sender: No OFD packet to send [16:01:23]*** Cut start [16:01:23]*** Partial cut [16:01:23]*** CUTSNS_PIN = 1 [16:01:23]*** CUTSNS_PIN = 0 [16:01:24]*** Brake cut motor [16:01:24]Read from MH i2c: 01 [16:01:24]MH_I2C_Read... [16:01:24]*** Stop cut motor [16:01:24]*** Cut end [16:01:24]Read from MH i2c: 01 07 00 [16:01:24]MH_I2C_Read... [16:01:24]Read from MH i2c: 01 07 00 39 52 00 00 00 00 00 FF 0F A0 [16:01:24]process_action close_receipt done [16:01:24]requested_data is exist [16:01:24]produce_requested_data [16:01:24]requested_item fm.sn is exist - process it [16:01:24]wFMCommunicate request_size=4 [16:01:24]MH_SAM_APDU [16:01:24]CAPDU: 80 11 00 00 [16:01:24]Write to MH i2c: E2 08 00 3A 52 80 11 00 00 00 00 00 00 06 [16:01:24]Write i2c OK [16:01:24]MH_I2C_Read... [16:01:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:24]Read from MH i2c: E2 [16:01:24]MH_I2C_Read... [16:01:24]Read from MH i2c: E2 17 00 [16:01:24]MH_I2C_Read... [16:01:24]Read from MH i2c: E2 17 00 3A 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5D [16:01:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:01:24]wFMCommunicate OK [16:01:24]requested_item fd.num is exist - process it [16:01:24]SAM_PROTO_GetFieldsCounters [16:01:24]wFMCommunicate request_size=4 [16:01:24]MH_SAM_APDU [16:01:24]CAPDU: 80 13 00 00 [16:01:24]Write to MH i2c: E2 08 00 3B 52 80 13 00 00 00 00 00 00 09 [16:01:24]Write i2c OK [16:01:24]MH_I2C_Read... [16:01:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:24]Read from MH i2c: E2 [16:01:24]MH_I2C_Read... [16:01:24]Read from MH i2c: E2 62 00 [16:01:24]MH_I2C_Read... [16:01:24]Read from MH i2c: E2 62 00 3B 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D7 7B 03 00 0E 04 04 00 17 02 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 DC [16:01:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D7 7B 03 00 0E 04 04 00 17 02 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 [16:01:24]wFMCommunicate OK [16:01:24]SAM_PROTO_GetFieldsCounters done [16:01:24]requested_item shift.num is exist - process it [16:01:24]requested_item shift.opened is exist - process it [16:01:24]req_shift_opened [16:01:24]FM_GetShiftState [16:01:24]SAM_PROTO_GetShiftState [16:01:24]wFMCommunicate request_size=4 [16:01:24]MH_SAM_APDU [16:01:24]CAPDU: 80 13 01 00 [16:01:24]Write to MH i2c: E2 08 00 3C 52 80 13 01 00 00 00 00 00 0B [16:01:24]Write i2c OK [16:01:24]MH_I2C_Read... [16:01:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:24]Read from MH i2c: E2 [16:01:24]MH_I2C_Read... [16:01:24]Read from MH i2c: E2 0E 00 [16:01:24]MH_I2C_Read... [16:01:24]Read from MH i2c: E2 0E 00 3C 52 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 D2 [16:01:24]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [16:01:24]wFMCommunicate OK [16:01:24]SAM_PROTO_GetShiftState done [16:01:24]FM_GetShiftState done [16:01:24]req_shift_opened done [16:01:24]requested_item shift.open_date is exist - process it [16:01:24]req_shift_open_date [16:01:24]req_shift_open_date done [16:01:24]produce_requested_data done [16:01:24]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228311,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [16:01:24]process_action_free close_receipt [16:01:24]json_value_free [16:01:24]json_value_free done [16:01:24]process_json_proto returns [16:01:24]Send response to host [16:01:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228311,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [16:01:24]free response buf [16:01:24]execute_script done [16:01:24]execute_script returns [16:01:24]free content buf [16:01:24]Sock 9.Close socket [16:01:24]Sock 9.Thread stoped [16:01:28]OFD Sender: No OFD packet to send [16:01:33]OFD Sender: No OFD packet to send [16:01:38]OFD Sender: No OFD packet to send [16:01:43]OFD Sender: No OFD packet to send [16:01:48]OFD Sender: No OFD packet to send [16:01:53]OFD Sender: No OFD packet to send [16:01:58]OFD Sender: No OFD packet to send [16:02:03]OFD Sender: No OFD packet to send [16:02:08]OFD Sender: No OFD packet to send [16:02:13]OFD Sender: No OFD packet to send [16:02:18]OFD Sender: No OFD packet to send [16:02:23]OFD Sender: No OFD packet to send [16:02:28]OFD Sender: No OFD packet to send [16:02:33]OFD Sender: No OFD packet to send [16:02:38]OFD Sender: No OFD packet to send [16:02:43]OFD Sender: No OFD packet to send [16:02:48]OFD Sender: No OFD packet to send [16:02:53]OFD Sender: No OFD packet to send 03 00 [16:31:53]MH_I2C_Read... [16:31:53]Read from MH i2c: E2 03 00 29 57 00 90 00 F4 [16:31:53]RAPDU: 90 00 [16:31:53]wFMCommunicate OK [16:31:53]wFMCommunicate request_size=15 [16:31:53]MH_SAM_APDU [16:31:53]CAPDU: 80 15 02 00 0A 07 04 06 00 00 00 00 00 00 00 [16:31:53]Write to MH i2c: E2 12 00 2A 57 80 15 02 00 0A 00 07 04 06 00 00 00 00 00 00 00 00 00 26 [16:31:53]Write i2c OK [16:31:53]MH_I2C_Read... [16:31:53]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [16:31:53]Read from MH i2c: E2 [16:31:53]MH_I2C_Read... [16:31:53]Read from MH i2c: E2 03 00 [16:31:53]MH_I2C_Read... [16:31:53]Read from MH i2c: E2 03 00 2A 57 00 90 00 F5 [16:31:53]RAPDU: 90 00 [16:31:53]wFMCommunicate OK [16:31:53]wFMCommunicate request_size=15 [16:31:53]MH_SAM_APDU [16:31:53]CAPDU: 80 15 02 00 0A 39 04 06 00 00 00 00 00 00 00 [16:31:53]Write to MH i2c: E2 12 00 2B 57 80 15 02 00 0A 00 39 04 06 00 00 00 00 00 00 00 00 00 59 [16:31:53]Write i2c OK [16:31:53]MH_I2C_Read... [16:31:53]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [16:31:53]Read from MH i2c: E2 [16:31:53]MH_I2C_Read... [16:31:53]Read from MH i2c: E2 03 00 [16:31:53]MH_I2C_Read... [16:31:53]Read from MH i2c: E2 03 00 2B 57 00 90 00 F6 [16:31:53]RAPDU: 90 00 [16:31:53]wFMCommunicate OK [16:31:53]wFMCommunicate request_size=11 [16:31:53]MH_SAM_APDU [16:31:53]CAPDU: 80 15 02 00 06 1F 04 02 00 01 00 [16:31:53]Write to MH i2c: E2 0E 00 2C 57 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 35 [16:31:53]Write i2c OK [16:31:53]MH_I2C_Read... [16:31:53]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [16:31:53]Read from MH i2c: E2 [16:31:53]MH_I2C_Read... [16:31:53]Read from MH i2c: E2 03 00 [16:31:53]MH_I2C_Read... [16:31:53]Read from MH i2c: E2 03 00 2C 57 00 90 00 F7 [16:31:53]RAPDU: 90 00 [16:31:53]wFMCommunicate OK [16:31:53]wFMCommunicate request_size=13 [16:31:53]MH_SAM_APDU [16:31:53]CAPDU: 80 15 02 00 08 F4 03 04 00 7C D3 17 67 [16:31:53]Write to MH i2c: E2 10 00 2D 57 80 15 02 00 08 00 F4 03 04 00 7C D3 17 67 00 00 DC [16:31:53]Write i2c OK [16:31:53]MH_I2C_Read... [16:31:53]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [16:31:53]Read from MH i2c: E2 [16:31:53]MH_I2C_Read... [16:31:53]Read from MH i2c: E2 03 00 [16:31:53]MH_I2C_Read... [16:31:53]Read from MH i2c: E2 03 00 2D 57 00 90 00 F8 [16:31:53]RAPDU: 90 00 [16:31:53]wFMCommunicate OK [16:31:53]wFMCommunicate request_size=25 [16:31:53]MH_SAM_APDU [16:31:53]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 [16:31:53]Write to MH i2c: E2 1C 00 2E 57 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 OFD Sender: No OFD packet to send [16:31:53]30 30 30 30 30 39 31 36 38 35 00 00 6B [16:31:54]Write i2c OK [16:31:54]MH_I2C_Read... [16:31:54]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [16:31:54]Read from MH i2c: E2 [16:31:54]MH_I2C_Read... [16:31:54]Read from MH i2c: E2 03 00 [16:31:54]MH_I2C_Read... [16:31:54]Read from MH i2c: E2 03 00 2E 57 00 90 00 F9 [16:31:54]RAPDU: 90 00 [16:31:54]wFMCommunicate OK [16:31:54]wFMCommunicate request_size=4 [16:31:54]MH_SAM_APDU [16:31:54]CAPDU: 80 15 03 00 [16:31:54]Write to MH i2c: E2 08 00 2F 57 80 15 03 00 00 00 00 00 07 [16:31:54]Write i2c OK [16:31:54]MH_I2C_Read... [16:31:54]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [16:31:54]Read from MH i2c: E2 [16:31:54]MH_I2C_Read... [16:31:54]Read from MH i2c: E2 40 00 [16:31:54]MH_I2C_Read... [16:31:54]Read from MH i2c: E2 40 00 2F 57 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E9 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 25 01 00 00 35 04 06 00 EB 0E 02 99 1A D4 90 00 29 [16:31:54]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E9 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 25 01 00 00 35 04 06 00 EB 0E 02 99 1A D4 90 00 [16:31:54]wFMCommunicate OK [16:31:54]SAM_PROTO_ProcessDocument answer len = 59 [16:31:54]SAM_PROTO_ProcessDocument done [16:31:54]SetTLVBufToDocument [16:31:54]Processing tag 1209 (04B9) [16:31:54]Malloc new data [16:31:54]Processing tag 1041 (0411) [16:31:54]Processing tag 1040 (0410) [16:31:54]Malloc new data [16:31:54]Processing tag 1038 (040E) [16:31:54]Malloc new data [16:31:54]Processing tag 1042 (0412) [16:31:54]Malloc new data [16:31:54]Processing tag 1077 (0435) [16:31:54]Malloc new data [16:31:54]SetTLVBufToDocument err=0 [16:31:54]KKMLoadAndSignReceiptData store KKM data [16:31:54]KKMLoadAndSignReceiptData err=0 [16:31:54]wFMCommunicate request_size=4 [16:31:54]MH_SAM_APDU [16:31:54]CAPDU: 80 11 00 00 [16:31:54]Write to MH i2c: E2 08 00 30 57 80 11 00 00 00 00 00 00 01 [16:31:54]Write i2c OK [16:31:54]MH_I2C_Read... [16:31:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:54]Read from MH i2c: E2 [16:31:54]MH_I2C_Read... [16:31:54]Read from MH i2c: E2 17 00 [16:31:54]MH_I2C_Read... [16:31:54]Read from MH i2c: E2 17 00 30 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 58 [16:31:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:31:54]wFMCommunicate OK [16:31:54]Счет N : (1)1964819 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 21 Товар: 2710194210 ДТ-К-5 104.990 * 0.00 = 0.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 293 22.10.2024 16:31 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: ТК ГПНА Online 30093357 ФМ: 0000000000871839 ФД: 228329 ФПД: 258445405657812 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T163156&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228329&fm=258445405657812&tin=02508201610067®Number=0000000000091685&sum=0 [16:31:54]StoreToDocumentArchive [16:31:54]shift 535 fd 228329 [16:31:54]save to /storage/0535/doc_00228329 [16:31:54]save last doc name /storage/0535/doc_00228329 to /storage/kkm_last_doc_name [16:31:54]save OK [16:31:54]Clear old archive folders... [16:31:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:31:55]tlvbuf is 00C939D0 [16:31:55]SAM_PROTO_ClearQueue [16:31:55]wFMCommunicate request_size=4 [16:31:55]MH_SAM_APDU [16:31:55]CAPDU: 80 09 00 00 [16:31:55]Write to MH i2c: E2 08 00 31 57 80 09 00 00 00 00 00 00 FA [16:31:55]Write i2c OK [16:31:55]MH_I2C_Read... [16:31:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:31:55]Read from MH i2c: E2 [16:31:55]MH_I2C_Read... [16:31:55]Read from MH i2c: E2 03 00 [16:31:55]MH_I2C_Read... [16:31:55]Read from MH i2c: E2 03 00 31 57 00 90 00 FC [16:31:55]RAPDU: 90 00 [16:31:55]wFMCommunicate OK [16:31:55]SAM_PROTO_ClearQueue done [16:31:55]KKMCreateOFDPacket [16:31:55]OFDProtocolAddRootSTLVToBuf [16:31:55]FM_MakeSignedData [16:31:55]FM_MakeSignedData [16:31:55]SAM_PROTO_SignData [16:31:55]wFMCommunicate request_size=4 [16:31:55]MH_SAM_APDU [16:31:55]CAPDU: 80 0D 01 02 [16:31:55]Write to MH i2c: E2 08 00 32 57 80 0D 01 02 00 00 00 00 02 [16:31:55]Write i2c OK [16:31:55]MH_I2C_Read... [16:31:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:31:55]Read from MH i2c: E2 [16:31:55]MH_I2C_Read... [16:31:55]Read from MH i2c: E2 03 00 [16:31:55]MH_I2C_Read... [16:31:55]Read from MH i2c: E2 03 00 32 57 00 90 00 FD [16:31:55]RAPDU: 90 00 [16:31:55]wFMCommunicate OK [16:31:55]wFMCommunicate request_size=255 [16:31:55]MH_SAM_APDU [16:31:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 7C D3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E9 7B 03 00 35 04 06 00 EB 0E 02 99 [16:31:55]Write to MH i2c: E2 02 01 33 57 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 1E 9A 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 7C D3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E9 7B 03 00 35 04 06 00 EB 0E 02 99 00 00 27 [16:31:56]Write i2c OK [16:31:56]MH_I2C_Read... [16:31:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:56]Read from MH i2c: E2 [16:31:56]MH_I2C_Read... [16:31:56]Read from MH i2c: E2 03 00 [16:31:56]MH_I2C_Read... [16:31:56]Read from MH i2c: E2 03 00 33 57 00 90 00 FE [16:31:56]RAPDU: 90 00 [16:31:56]wFMCommunicate OK [16:31:56]wFMCommunicate request_size=7 [16:31:56]MH_SAM_APDU [16:31:56]CAPDU: 80 0D 02 02 02 1A D4 [16:31:56]Write to MH i2c: E2 0A 00 34 57 80 0D 02 02 02 00 1A D4 00 00 F7 [16:31:56]Write i2c OK [16:31:56]MH_I2C_Read... [16:31:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:56]Read from MH i2c: E2 [16:31:56]MH_I2C_Read... [16:31:56]Read from MH i2c: E2 03 00 [16:31:56]MH_I2C_Read... [16:31:56]Read from MH i2c: E2 03 00 34 57 00 90 00 FF [16:31:56]RAPDU: 90 00 [16:31:56]wFMCommunicate OK [16:31:56]wFMCommunicate request_size=4 [16:31:56]MH_SAM_APDU [16:31:56]CAPDU: 80 0D 03 02 [16:31:56]Write to MH i2c: E2 08 00 35 57 80 0D 03 02 00 00 00 00 07 [16:31:56]Write i2c OK [16:31:56]MH_I2C_Read... [16:31:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:31:56]Read from MH i2c: E2 [16:31:57]MH_I2C_Read... [16:31:57]Read from MH i2c: E2 0B 00 [16:31:57]MH_I2C_Read... [16:31:57]Read from MH i2c: E2 0B 00 35 57 00 CB 9D 31 1D CD 3E 41 DD 90 00 E7 [16:31:57]RAPDU: CB 9D 31 1D CD 3E 41 DD 90 00 [16:31:57]wFMCommunicate OK [16:31:57]SAM_PROTO_SignData done [16:31:57]FM_MakeSignedData done [16:31:57]CreateOFDProtocolMessage [16:31:57]wFMCommunicate request_size=4 [16:31:57]MH_SAM_APDU [16:31:57]CAPDU: 80 11 00 00 [16:31:57]Write to MH i2c: E2 08 00 36 57 80 11 00 00 00 00 00 00 07 [16:31:57]Write i2c OK [16:31:57]MH_I2C_Read... [16:31:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:57]Read from MH i2c: E2 [16:31:57]MH_I2C_Read... [16:31:57]Read from MH i2c: E2 17 00 [16:31:57]MH_I2C_Read... [16:31:57]Read from MH i2c: E2 17 00 36 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5E [16:31:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:31:57]wFMCommunicate OK [16:31:57]CreateOFDProtocolMessage done [16:31:57]OFDSenderStorePacket 228329 [16:31:57]StoreOFDPacket docnum=228329 [16:31:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 DE 90 04 01 23 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 1E 9A 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 7C D3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E9 7B 03 00 35 04 06 00 EB 0E 02 99 1A D4 CB 9D 31 1D CD 3E 41 DD [16:31:57]CheckFolder [16:31:57]dirname=/storage/ofd_packets [16:31:57]CheckFolder done [16:31:57]ProducePacketName [16:31:57]name=ofd_packets/00228329 [16:31:57]NVStorageSaveData ofd_packets/00228329 [16:31:57]File name is /storage/ofd_packets/00228329 [16:31:57]Write 298 bytes [16:31:57]NVStorageSaveData done [16:31:57]OFDSenderStorePacket done [16:31:57]KKMCreateOFDPacket done [16:31:57]NVStorageSaveData kkm_last_timestamp [16:31:57]File name is /storage/kkm_last_timestamp [16:31:57]Write 4 bytes [16:31:57]NVStorageSaveData done [16:31:57]ExternCall_PrintAddStr [16:31:57]wPrintStart [16:31:57]Write to MH i2c: 01 00 00 37 57 8E [16:31:57]Write i2c OK [16:31:57]MH_I2C_Read... [16:31:57]Read from MH i2c: 01 [16:31:57]MH_I2C_Read... [16:31:57]OFD Sender: Processing packet 228329 [packets to send 38, broken 37] [16:31:57]ProducePacketName [16:31:57]name=ofd_packets/00228329 [16:31:57]OFD Sender: To server: pG, [16:31:57]CommunicateWithHost lk.salyk.kg:30040 [16:31:57]ConnectInit lk.salyk.kg [16:31:57]Read from MH i2c: 01 07 00 [16:31:57]MH_I2C_Read... [16:31:57]Read from MH i2c: 01 07 00 37 57 00 00 00 00 00 FF 0F A3 [16:31:57]RasterBufferAndPrint [16:31:57]line Счет N : (1)1964819 [16:31:57]line ИНН: 02508201610067 [16:31:57]line Контрольно-Кассовый Чек [16:31:57]line ПРОДАЖА [16:31:57]line ТРК (МРК, ГНК) : 21 [16:31:57]line Товар: 2710194210 [16:31:57]line ДТ-К-5 [16:31:57]line 104.990 * 0.00 [16:31:57]line = 0.00 [16:31:57]line НДС 12% НСП 1% [16:31:57]line > о реализуемом товаре [16:31:57]line ИТОГО: 0.00 [16:31:57]line НСП 1% : 0.00 [16:31:57]line НДС 12% : 0.00 [16:31:57]line Наличными: 0.00 [16:31:57]line Безнал.: 0.00 [16:31:57]line Место: АЗС № 133 "Партнер Нефть" [16:31:57]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [16:31:57]line СНО: Общий режим [16:31:57]Connected sock=11 [16:31:57]line Чек 293 22.10.2024 16:31 [16:31:57]Data to sent: line Смена: 535 ФФД: 1.0 [16:31:57]87 95 line ЗНМ: 0300000091 [16:31:57]F6 line РНМ: 0000000000091685 [16:31:57]70 line Версия ККМ: 001 [16:31:57]47 line Талоны: ТК ГПНА Online [16:31:57]line 30093357 [16:31:57]line ФМ: 0000000000871839 [16:31:57]line ФД: 228329 [16:31:57]line ФПД: 258445405657812 [16:31:57]2C line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T163156&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228329&fm=258445405657812&tin=02508201610067®Number=0000000000091685&sum=0 [16:31:57]01 00 30 30 30 30 written 0, free lines is 4095 [16:31:57]30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 DE 90 04 01 23 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 1E 9A 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 7C D3 17 67 Write to MH i2c: 0E 01 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 00 39 00 31 36 38 35 11 04 60 10 57 00 B7 30 [16:31:58]30 Write i2c OK [16:31:58]30 30 30 30 30 30 MH_I2C_Read... [16:31:58]30 Read from MH i2c: 30 01 38 [16:31:58]37 MH_I2C_Read... [16:31:58]31 Read from MH i2c: 38 01 33 39 10 04 04 00 07 E9 00 7B [16:31:58]03 MH_I2C_Read... [16:31:58]00 35 04 06 00 EB 0E 02 99 1A D4 CB 9D 31 1D CD 3E 41 DD [16:31:58]Read from MH i2c: 01 07 00 60 57 00 00 00 00 00 96 0D 61 [16:31:58]RasterBufferAndPrint [16:31:58]line [16:31:58]line [16:31:58]line [16:31:58]line [16:31:58]line [16:31:58]written 0, free lines is 3746 [16:31:58]MH_Cut [16:31:58]Write to MH i2c: D1 01 00 67 57 01 90 [16:31:58]Write i2c OK [16:31:58]MH_I2C_Read... [16:31:58]Read from MH i2c: D1 [16:31:58]MH_I2C_Read... [16:31:58]Read from MH i2c: D1 01 00 [16:31:58]MH_I2C_Read... [16:31:58]Read from MH i2c: D1 01 00 67 57 00 8F [16:31:58]Write to MH i2c: 01 00 00 68 57 BF [16:31:58]Write i2c OK [16:31:58]MH_I2C_Read... [16:31:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 D6 B9 47 00 E1 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E9 7B 03 00 F4 03 04 00 78 7E 17 67 B6 04 01 00 00 F2 BF C2 02 89 22 C9 FF [16:31:58]CommunicateWithHost err = 0 [16:31:58]CheckOFDResponse [16:31:58]1017 (14) - 77093643461234 [16:31:58]1041 (16) - 0000000000871839 [16:31:58]1040 (4) - 228329 [16:31:58]1012 (4) - 22.10.2024 10:29 [16:31:58]1206 (1) - 0 [16:31:58]OFD Sender: Remove packet 228329 [16:31:58]ProducePacketName [16:31:58]name=ofd_packets/00228329 [16:31:58]NVStorageDeleteData [16:31:58]*** Cut start [16:31:58]*** Partial cut [16:31:58]*** CUTSNS_PIN = 1 [16:31:58]*** CUTSNS_PIN = 0 [16:31:59]*** Brake cut motor [16:31:59]OFD Sender: No OFD packet to send [16:31:59]Read from MH i2c: 01 [16:31:59]MH_I2C_Read... [16:31:59]*** Stop cut motor [16:31:59]*** Cut end [16:31:59]Read from MH i2c: 01 07 00 [16:31:59]MH_I2C_Read... [16:31:59]Read from MH i2c: 01 07 00 68 57 00 00 00 00 00 FF 0F D4 [16:31:59]process_action close_receipt done [16:31:59]requested_data is exist [16:31:59]produce_requested_data [16:31:59]requested_item fm.sn is exist - process it [16:31:59]wFMCommunicate request_size=4 [16:31:59]MH_SAM_APDU [16:31:59]CAPDU: 80 11 00 00 [16:31:59]Write to MH i2c: E2 08 00 69 57 80 11 00 00 00 00 00 00 3A [16:31:59]Write i2c OK [16:31:59]MH_I2C_Read... [16:31:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:59]Read from MH i2c: E2 [16:31:59]MH_I2C_Read... [16:31:59]Read from MH i2c: E2 17 00 [16:31:59]MH_I2C_Read... [16:31:59]Read from MH i2c: E2 17 00 69 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 91 [16:31:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:31:59]wFMCommunicate OK [16:31:59]requested_item fd.num is exist - process it [16:31:59]SAM_PROTO_GetFieldsCounters [16:31:59]wFMCommunicate request_size=4 [16:31:59]MH_SAM_APDU [16:31:59]CAPDU: 80 13 00 00 [16:31:59]Write to MH i2c: E2 08 00 6A 57 80 13 00 00 00 00 00 00 3D [16:31:59]Write i2c OK [16:31:59]MH_I2C_Read... [16:32:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:32:00]Read from MH i2c: E2 [16:32:00]MH_I2C_Read... [16:32:00]Read from MH i2c: E2 62 00 [16:32:00]MH_I2C_Read... [16:32:00]Read from MH i2c: E2 62 00 6A 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E9 7B 03 00 0E 04 04 00 17 02 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 58 [16:32:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E9 7B 03 00 0E 04 04 00 17 02 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 [16:32:00]wFMCommunicate OK [16:32:00]SAM_PROTO_GetFieldsCounters done [16:32:00]requested_item shift.num is exist - process it [16:32:00]requested_item shift.opened is exist - process it [16:32:00]req_shift_opened [16:32:00]FM_GetShiftState [16:32:00]SAM_PROTO_GetShiftState [16:32:00]wFMCommunicate request_size=4 [16:32:00]MH_SAM_APDU [16:32:00]CAPDU: 80 13 01 00 [16:32:00]Write to MH i2c: E2 08 00 6B 57 80 13 01 00 00 00 00 00 3F [16:32:00]Write i2c OK [16:32:00]MH_I2C_Read... [16:32:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:00]Read from MH i2c: E2 [16:32:00]MH_I2C_Read... [16:32:00]Read from MH i2c: E2 0E 00 [16:32:00]MH_I2C_Read... [16:32:00]Read from MH i2c: E2 0E 00 6B 57 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 06 [16:32:00]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [16:32:00]wFMCommunicate OK [16:32:00]SAM_PROTO_GetShiftState done [16:32:00]FM_GetShiftState done [16:32:00]req_shift_opened done [16:32:00]requested_item shift.open_date is exist - process it [16:32:00]req_shift_open_date [16:32:00]req_shift_open_date done [16:32:00]produce_requested_data done [16:32:00]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228329,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [16:32:00]process_action_free close_receipt [16:32:00]json_value_free [16:32:00]json_value_free done [16:32:00]process_json_proto returns [16:32:00]Send response to host [16:32:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228329,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [16:32:00]free response buf [16:32:00]execute_script done [16:32:00]execute_script returns [16:32:00]free content buf [16:32:00]Sock 9.Close socket [16:32:00]Sock 9.Thread stoped [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:39]OFD Sender: No OFD packet to send [16:32:44]OFD Sender: No OFD packet to send [16:32:49]OFD Sender: No OFD packet to send [16:32:50]ConnectInit Can't connect to host [16:32:54]OFD Sender: No OFD packet to send [16:32:59]OFD Sender: No OFD packet to send [16:33:04]OFD Sender: No OFD packet to send [16:33:09]OFD Sender: No OFD packet to send [16:33:14]OFD Sender: No OFD packet to send [16:33:19]OFD Sender: No OFD packet to send [16:33:24]OFD Sender: No OFD packet to send [16:33:29]OFD Sender: No OFD packet to send [16:33:34]OFD Sender: No OFD packet to send [16:33:36]accept exits with 10 [16:33:36]New connection [16:33:36]New thread 3067137380 created [16:33:36]Thread 3066994020 joined [16:33:36]Waiting for new connection... [16:33:36] Sock 10.Parse request [16:33:36]Sock 10.Check first char [16:33:36]Sock 10.First char is OK [16:33:36]request: POST /json_proto HTTP/1.0 [16:33:36]Method: POST [16:33:36]URL: /json_proto [16:33:36]Method is POST - this is cgi request [16:33:36]url: /json_proto [16:33:36]query_string will be loaded in cgi processing [16:33:36]execute_cgi json_proto POST (null) [16:33:36]execute_cgi path=json_proto method=POST [16:33:36]POST find Content-Length [16:33:36]Host: 172.17.44.195:8080 [16:33:36]Content-Length: 664 [16:33:36]Content-Type: application/json [16:33:36] [16:33:36]POST finish read [16:33:36]Found Content-Length = 664 [16:33:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:36]execute_script... [16:33: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)1964825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:36]POST & json_proto [16:33:36]process_json_proto [16:33:36]json parsed OK: [16:33:36]protocol is kg_v1.0 [16:33:36]action value=close_receipt [16:33:36]process_action close_receipt [16:33:36]cmd_close_receipt [16:33:36]MH_GetDate [16:33:36]Write to MH i2c: F0 00 00 6C 57 B2 [16:33:36]Write i2c OK [16:33:36]MH_I2C_Read... [16:33:36]Read from MH i2c: F0 [16:33:36]MH_I2C_Read... [16:33:36]Read from MH i2c: F0 09 00 [16:33:36]MH_I2C_Read... [16:33:36]Read from MH i2c: F0 09 00 6C 57 00 E5 D3 17 67 82 C9 CF 66 71 [16:33:36]GetLastDocTimeStamp 1729614716 [16:33:36]current date 1729614821 [16:33:36]FM_GetShiftState [16:33:36]SAM_PROTO_GetShiftState [16:33:36]wFMCommunicate request_size=4 [16:33:36]MH_SAM_APDU [16:33:36]CAPDU: 80 13 01 00 [16:33:36]Write to MH i2c: E2 08 00 6D 57 80 13 01 00 00 00 00 00 41 [16:33:36]Write i2c OK [16:33:36]MH_I2C_Read... [16:33:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:36]Read from MH i2c: E2 [16:33:36]MH_I2C_Read... [16:33:36]Read from MH i2c: E2 0E 00 [16:33:36]MH_I2C_Read... [16:33:36]Read from MH i2c: E2 0E 00 6D 57 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 08 [16:33:36]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [16:33:37]wFMCommunicate OK [16:33:37]SAM_PROTO_GetShiftState done [16:33:37]FM_GetShiftState done [16:33:37]opened in 1729555538 [16:33:37]opened+sec_in_day 1729641938 [16:33:37]quantity*price = 200001 [16:33:37]sum+1 = 200003 [16:33:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.39 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 294 22.10.2024 16:33 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228330 ФПД: 104421051838072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T163341&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228330&fm=104421051838072&tin=02508201610067®Number=0000000000091685&sum=200000 [16:33:40]StoreToDocumentArchive [16:33:40]shift 535 fd 228330 [16:33:40]save to /storage/0535/doc_00228330 [16:33:40]save last doc name /storage/0535/doc_00228330 to /storage/kkm_last_doc_name [16:33:40]save OK [16:33:40]Clear old archive folders... [16:33:40]ProcessDocumentItem done err = 0, tmpTLVsize=244 [16:33:40]tlvbuf is 00CAD690 [16:33:40]SAM_PROTO_ClearQueue [16:33:40]wFMCommunicate request_size=4 [16:33:40]MH_SAM_APDU [16:33:40]CAPDU: 80 09 00 00 [16:33:40]Write to MH i2c: E2 08 00 7A 57 80 09 00 00 00 00 00 00 43 [16:33:40]Write i2c OK [16:33:40]MH_I2C_Read... [16:33:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:33:40]Read from MH i2c: E2 [16:33:40]MH_I2C_Read... [16:33:40]Read from MH i2c: E2 03 00 [16:33:40]MH_I2C_Read... [16:33:40]Read from MH i2c: E2 03 00 7A 57 00 90 00 45 [16:33:40]RAPDU: 90 00 [16:33:40]wFMCommunicate OK [16:33:40]SAM_PROTO_ClearQueue done [16:33:40]KKMCreateOFDPacket [16:33:40]OFDProtocolAddRootSTLVToBuf [16:33:40]FM_MakeSignedData [16:33:40]FM_MakeSignedData [16:33:40]SAM_PROTO_SignData [16:33:40]wFMCommunicate request_size=4 [16:33:40]MH_SAM_APDU [16:33:40]CAPDU: 80 0D 01 02 [16:33:40]Write to MH i2c: E2 08 00 7B 57 80 0D 01 02 00 00 00 00 4B [16:33:40]Write i2c OK [16:33:40]MH_I2C_Read... [16:33:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:33:40]Read from MH i2c: E2 [16:33:40]MH_I2C_Read... [16:33:40]Read from MH i2c: E2 03 00 [16:33:40]MH_I2C_Read... [16:33:40]Read from MH i2c: E2 03 00 7B 57 00 90 00 46 [16:33:40]RAPDU: 90 00 [16:33:40]wFMCommunicate OK [16:33:40]wFMCommunicate request_size=253 [16:33:40]MH_SAM_APDU [16:33:40]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 26 01 00 00 F4 03 04 00 E5 D3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EA 7B 03 00 35 04 06 00 5E F8 6B B3 AE 78 [16:33:41]Write to MH i2c: E2 00 01 7C 57 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 26 01 00 00 F4 03 04 00 E5 D3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EA 7B 03 00 35 04 06 00 5E F8 6B B3 AE 78 00 00 2A [16:33:41]Write i2c OK [16:33:41]MH_I2C_Read... [16:33:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:41]Read from MH i2c: E2 [16:33:41]MH_I2C_Read... [16:33:41]Read from MH i2c: E2 03 00 [16:33:41]MH_I2C_Read... [16:33:41]Read from MH i2c: E2 03 00 7C 57 00 90 00 47 [16:33:41]RAPDU: 90 00 [16:33:41]wFMCommunicate OK [16:33:41]wFMCommunicate request_size=4 [16:33:41]MH_SAM_APDU [16:33:41]CAPDU: 80 0D 03 02 [16:33:42]Write to MH i2c: E2 08 00 7D 57 80 0D 03 02 00 00 00 00 4F [16:33:42]Write i2c OK [16:33:42]MH_I2C_Read... [16:33:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:33:42]Read from MH i2c: E2 [16:33:42]MH_I2C_Read... [16:33:42]Read from MH i2c: E2 0B 00 [16:33:42]MH_I2C_Read... [16:33:42]Read from MH i2c: E2 0B 00 7D 57 00 BB 6E E2 61 34 9A 50 4B 90 00 25 [16:33:42]RAPDU: BB 6E E2 61 34 9A 50 4B 90 00 [16:33:42]wFMCommunicate OK [16:33:42]SAM_PROTO_SignData done [16:33:42]FM_MakeSignedData done [16:33:42]CreateOFDProtocolMessage [16:33:42]wFMCommunicate request_size=4 [16:33:42]MH_SAM_APDU [16:33:42]CAPDU: 80 11 00 00 [16:33:42]Write to MH i2c: E2 08 00 7E 57 80 11 00 00 00 00 00 00 4F [16:33:42]Write i2c OK [16:33:42]MH_I2C_Read... [16:33:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:42]Read from MH i2c: E2 [16:33:42]MH_I2C_Read... [16:33:42]Read from MH i2c: E2 17 00 [16:33:42]MH_I2C_Read... [16:33:42]Read from MH i2c: E2 17 00 7E 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A6 [16:33:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:33:42]wFMCommunicate OK [16:33:42]CreateOFDProtocolMessage done [16:33:42]OFDSenderStorePacket 228330 [16:33:42]StoreOFDPacket docnum=228330 [16:33:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 39 5B 00 01 21 88 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 26 01 00 00 F4 03 04 00 E5 D3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EA 7B 03 00 35 04 06 00 5E F8 6B B3 AE 78 BB 6E E2 61 34 9A 50 4B [16:33:42]CheckFolder [16:33:42]dirname=/storage/ofd_packets [16:33:42]CheckFolder done [16:33:42]ProducePacketName [16:33:42]name=ofd_packets/00228330 [16:33:42]NVStorageSaveData ofd_packets/00228330 [16:33:42]File name is /storage/ofd_packets/00228330 [16:33:42]Write 294 bytes [16:33:42]NVStorageSaveData done [16:33:42]OFDSenderStorePacket done [16:33:42]KKMCreateOFDPacket done [16:33:42]NVStorageSaveData kkm_last_timestamp [16:33:42]File name is /storage/kkm_last_timestamp [16:33:42]Write 4 bytes [16:33:42]NVStorageSaveData done [16:33:42]ExternCall_PrintAddStr [16:33:42]wPrintStart [16:33:42]Write to MH i2c: 01 00 00 7F 57 D6 [16:33:42]OFD Sender: Processing packet 228330 [packets to send 38, broken 37] [16:33:42]ProducePacketName [16:33:42]name=ofd_packets/00228330 [16:33:42]Write i2c OK [16:33:42]OFD Sender: To server: pG, [16:33:42]MH_I2C_Read... [16:33:42]CommunicateWithHost lk.salyk.kg:30040 [16:33:42]Read from MH i2c: ConnectInit lk.salyk.kg [16:33:42]01 [16:33:42]MH_I2C_Read... [16:33:42]Read from MH i2c: 01 07 00 [16:33:42]MH_I2C_Read... [16:33:42]Read from MH i2c: 01 07 00 7F 57 00 00 00 00 00 FF 0F EB [16:33:42]RasterBufferAndPrint [16:33:42]line Счет N : (1)1964825 [16:33:42]line ИНН: 02508201610067 [16:33:42]line Контрольно-Кассовый Чек [16:33:42]line ПРОДАЖА [16:33:42]line ТРК (МРК, ГНК) : 52 [16:33:42]line Товар: 2710124130 [16:33:42]line SU-92 [16:33:42]line 29.240 * 68.40 [16:33:42]line = 2000.02 [16:33:42]line НДС 12% НСП 1% [16:33:42]line > о реализуемом товаре [16:33:42]line ОКРУГЛЕНИЕ: -0.02 [16:33:42]line ИТОГО: 2000.00 [16:33:42]line Внесено: 2000.00 [16:33:42]line СДАЧА: 0.00 [16:33:42]Connected sock=11 [16:33:42]line НСП 1% : 17.70 [16:33:42]Data to sent: line НДС 12% : 212.39 [16:33:42]87 line Наличными: 2000.00 [16:33:42]line Безнал.: 0.00 [16:33:42]line Место: АЗС № 133 "Партнер Нефть" [16:33:42]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [16:33:42]line СНО: Общий режим [16:33:42]95 line Чек 294 22.10.2024 16:33 [16:33:42]F6 line Смена: 535 ФФД: 1.0 [16:33:42]70 line ЗНМ: 0300000091 [16:33:42]47 line РНМ: 0000000000091685 [16:33:42]2C line Версия ККМ: 001 [16:33:42]01 line ФМ: 0000000000871839 [16:33:42]00 30 line ФД: 228330 [16:33:42]30 line ФПД: 104421051838072 [16:33:42]30 line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T163341&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228330&fm=104421051838072&tin=02508201610067®Number=0000000000091685&sum=200000 [16:33:42]30 30 30 30 written 0, free lines is 4095 [16:33:42]30 30 30 38 37 31 38 33 39 08 01 00 00 39 5B 00 01 21 88 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 26 01 00 00 F4 03 04 00 E5 D3 17 67 0E 04 04 00 17 02 00 00 Write to MH i2c: B9 01 04 01 00 01 0D 04 00 10 00 00 30 30 30 30 30 A9 30 57 30 00 30 [16:33:43]30 30 30 39 Write i2c OK [16:33:43]31 MH_I2C_Read... [16:33:43]36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EA 7B 03 00 35 04 06 00 5E F8 6B B3 AE 78 BB 6E E2 61 34 9A 50 4B [16:33:43]Read from MH i2c: 01 [16:33:43]MH_I2C_Read... [16:33:43]Read from MH i2c: 01 07 00 [16:33:43]MH_I2C_Read... [16:33:43]Read from MH i2c: 01 07 00 A9 57 00 00 00 00 00 07 0D 1B [16:33:43]RasterBufferAndPrint [16:33:43]line [16:33:43]line [16:33:43]line [16:33:43]line [16:33:43]line [16:33:43]written 0, free lines is 3708 [16:33:43]MH_Cut [16:33:43]Write to MH i2c: D1 01 00 B0 57 01 D9 [16:33:43]Write i2c OK [16:33:43]MH_I2C_Read... [16:33:43]Read from MH i2c: D1 [16:33:43]MH_I2C_Read... [16:33:43]Read from MH i2c: D1 01 00 [16:33:43]MH_I2C_Read... [16:33:43]Read from MH i2c: D1 01 00 B0 57 00 D8 [16:33:43]Write to MH i2c: 01 00 00 B1 57 08 [16:33:43]Received data: 87 95 F6 70 47 2C Write i2c OK [16:33:43]01 MH_I2C_Read... [16:33:43]00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 E9 08 47 00 95 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EA 7B 03 00 F4 03 04 00 E2 7E 17 67 B6 04 01 00 00 B2 7F FE 23 C9 F2 5A 39 [16:33:43]CommunicateWithHost err = 0 [16:33:43]CheckOFDResponse [16:33:43]1017 (14) - 77093643461234 [16:33:43]1041 (16) - 0000000000871839 [16:33:43]1040 (4) - 228330 [16:33:43]1012 (4) - 22.10.2024 10:30 [16:33:43]1206 (1) - 0 [16:33:43]OFD Sender: Remove packet 228330 [16:33:43]ProducePacketName [16:33:43]name=ofd_packets/00228330 [16:33:43]NVStorageDeleteData [16:33:44]*** Cut start [16:33:44]*** Partial cut [16:33:44]*** CUTSNS_PIN = 1 [16:33:44]*** CUTSNS_PIN = 0 [16:33:44]*** Brake cut motor [16:33:44]OFD Sender: No OFD packet to send [16:33:44]Read from MH i2c: 01 [16:33:44]MH_I2C_Read... [16:33:44]*** Stop cut motor [16:33:44]*** Cut end [16:33:44]Read from MH i2c: 01 07 00 [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: 01 07 00 B1 57 00 00 00 00 00 FF 0F 1D [16:33:44]process_action close_receipt done [16:33:44]requested_data is exist [16:33:44]produce_requested_data [16:33:44]requested_item fm.sn is exist - process it [16:33:44]wFMCommunicate request_size=4 [16:33:44]MH_SAM_APDU [16:33:44]CAPDU: 80 11 00 00 [16:33:44]Write to MH i2c: E2 08 00 B2 57 80 11 00 00 00 00 00 00 83 [16:33:44]Write i2c OK [16:33:44]MH_I2C_Read... [16:33:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:44]Read from MH i2c: E2 [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: E2 17 00 [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: E2 17 00 B2 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DA [16:33:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:33:45]wFMCommunicate OK [16:33:45]requested_item fd.num is exist - process it [16:33:45]SAM_PROTO_GetFieldsCounters [16:33:45]wFMCommunicate request_size=4 [16:33:45]MH_SAM_APDU [16:33:45]CAPDU: 80 13 00 00 [16:33:45]Write to MH i2c: E2 08 00 B3 57 80 13 00 00 00 00 00 00 86 [16:33:45]Write i2c OK [16:33:45]MH_I2C_Read... [16:33:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:33:45]Read from MH i2c: E2 [16:33:45]MH_I2C_Read... [16:33:45]Read from MH i2c: E2 62 00 [16:33:45]MH_I2C_Read... [16:33:45]Read from MH i2c: E2 62 00 B3 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EA 7B 03 00 0E 04 04 00 17 02 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 A5 [16:33:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EA 7B 03 00 0E 04 04 00 17 02 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 [16:33:45]wFMCommunicate OK [16:33:45]SAM_PROTO_GetFieldsCounters done [16:33:45]requested_item shift.num is exist - process it [16:33:45]requested_item shift.opened is exist - process it [16:33:45]req_shift_opened [16:33:45]FM_GetShiftState [16:33:45]SAM_PROTO_GetShiftState [16:33:45]wFMCommunicate request_size=4 [16:33:45]MH_SAM_APDU [16:33:45]CAPDU: 80 13 01 00 [16:33:45]Write to MH i2c: E2 08 00 B4 57 80 13 01 00 00 00 00 00 88 [16:33:45]Write i2c OK [16:33:45]MH_I2C_Read... [16:33:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:45]Read from MH i2c: E2 [16:33:45]MH_I2C_Read... [16:33:45]Read from MH i2c: E2 0E 00 [16:33:45]MH_I2C_Read... [16:33:45]Read from MH i2c: E2 0E 00 B4 57 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 4F [16:33:45]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [16:33:45]wFMCommunicate OK [16:33:45]SAM_PROTO_GetShiftState done [16:33:45]FM_GetShiftState done [16:33:45]req_shift_opened done [16:33:45]requested_item shift.open_date is exist - process it [16:33:45]req_shift_open_date [16:33:45]req_shift_open_date done [16:33:45]produce_requested_data done [16:33:45]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228330,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [16:33:45]process_action_free close_receipt [16:33:45]json_value_free [16:33:45]json_value_free done [16:33:45]process_json_proto returns [16:33:45]Send response to host [16:33:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228330,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [16:33:45]free response buf [16:33:45]execute_script done [16:33:45]execute_script returns [16:33:45]free content buf [16:33:45]Sock 10.Close socket [16:33:45]Sock 10.Thread stoped [16:33:49]OFD Sender: No OFD packet to send [16:33:54]OFD Sender: No OFD packet to send [16:33:59]OFD Sender: No OFD packet to send [16:34:04]OFD Sender: No OFD packet to send [16:34:09]OFD Sender: No OFD packet to send [16:34:14]OFD Sender: No OFD packet to send [16:34:19]OFD Sender: No OFD packet to send [16:34:24]OFD Sender: No OFD packet to send [16:34:29]OFD Sender: No OFD packet to send [16:34:34]OFD Sender: No OFD packet to send [16:34:39]OFD Sender: No OFD packet to send [16:34:44]OFD Sender: No OFD packet to send [16:34:49]OFD Sender: No OFD packet to send [16:34:54]OFD Sender: No OFD packet to send [16:34:59]OFD Sender: No OFD packet to send [16:35:04]OFD Sender: No OFD packet to send [16:35:08]ConnectInit Can't connect to host [16:35:09]OFD Sender: No OFD packet to send [16:35:11]accept exits with 9 [16:35:11]New connection [16:35:11]New thread 3066994020 created [16:35:11]Thread 3067137380 joined [16:35:11]Waiting for new connection... [16:35:11] Sock 9.Parse request [16:35:11]Sock 9.Check first char [16:35:11]Sock 9.First char is OK [16:35:11]request: POST /json_proto HTTP/1.0 [16:35:11]Method: POST [16:35:11]URL: /json_proto [16:35:11]Method is POST - this is cgi request [16:35:11]url: /json_proto [16:35:11]query_string will be loaded in cgi processing [16:35:11]execute_cgi json_proto POST (null) [16:35:11]execute_cgi path=json_proto method=POST [16:35:11]POST find Content-Length [16:35:11]Host: 172.17.44.195:8080 [16:35:11]Content-Length: 678 [16:35:11]Content-Type: application/json [16:35:11] [16:35:11]POST finish read [16:35:11]Found Content-Length = 678 [16:35:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:11]execute_script... [16:35: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)1964826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:11]POST & json_proto [16:35:11]process_json_proto [16:35:11]json parsed OK: [16:35:11]protocol is kg_v1.0 [16:35:11]action value=close_receipt [16:35:11]process_action close_receipt [16:35:11]cmd_close_receipt [16:35:11]MH_GetDate [16:35:11]Write to MH i2c: F0 00 00 B5 57 FB [16:35:11]Write i2c OK [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: F0 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: F0 09 00 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: F0 09 00 B5 57 00 44 D4 17 67 82 C9 CF 66 1A [16:35:11]GetLastDocTimeStamp 1729614821 [16:35:11]current date 1729614916 [16:35:11]FM_GetShiftState [16:35:11]SAM_PROTO_GetShiftState [16:35:11]wFMCommunicate request_size=4 [16:35:11]MH_SAM_APDU [16:35:11]CAPDU: 80 13 01 00 [16:35:12]Write to MH i2c: E2 08 00 B6 57 80 13 01 00 00 00 00 00 8A [16:35:12]Write i2c OK [16:35:12]MH_I2C_Read... [16:35:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:12]Read from MH i2c: E2 [16:35:12]MH_I2C_Read... [16:35:12]Read from MH i2c: E2 0E 00 [16:35:12]MH_I2C_Read... [16:35:12]Read from MH i2c: E2 0E 00 B6 57 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 51 [16:35:12]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [16:35:12]wFMCommunicate OK [16:35:12]SAM_PROTO_GetShiftState done [16:35:12]FM_GetShiftState done [16:35:12]opened in 1729555538 [16:35:12]opened+sec_in_day 1729641938 [16:35:12]quantity*price = 50010 [16:35:12]sum+1 = 50012 [16:35:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 295 22.10.2024 16:35 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228331 ФПД: 215637200109295 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T163517&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228331&fm=215637200109295&tin=02508201610067®Number=0000000000091685&sum=50000 [16:35:15]StoreToDocumentArchive [16:35:15]shift 535 fd 228331 [16:35:15]save to /storage/0535/doc_00228331 [16:35:15]save last doc name /storage/0535/doc_00228331 to /storage/kkm_last_doc_name [16:35:15]save OK [16:35:15]Clear old archive folders... [16:35:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:35:15]tlvbuf is 00A3EED0 [16:35:15]SAM_PROTO_ClearQueue [16:35:15]wFMCommunicate request_size=4 [16:35:15]MH_SAM_APDU [16:35:15]CAPDU: 80 09 00 00 [16:35:15]Write to MH i2c: E2 08 00 C3 57 80 09 00 00 00 00 00 00 8C [16:35:15]Write i2c OK [16:35:15]MH_I2C_Read... [16:35:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:35:15]Read from MH i2c: E2 [16:35:15]MH_I2C_Read... [16:35:15]Read from MH i2c: E2 03 00 [16:35:15]MH_I2C_Read... [16:35:15]Read from MH i2c: E2 03 00 C3 57 00 90 00 8E [16:35:15]RAPDU: 90 00 [16:35:15]wFMCommunicate OK [16:35:15]SAM_PROTO_ClearQueue done [16:35:15]KKMCreateOFDPacket [16:35:15]OFDProtocolAddRootSTLVToBuf [16:35:15]FM_MakeSignedData [16:35:15]FM_MakeSignedData [16:35:15]SAM_PROTO_SignData [16:35:15]wFMCommunicate request_size=4 [16:35:15]MH_SAM_APDU [16:35:15]CAPDU: 80 0D 01 02 [16:35:15]Write to MH i2c: E2 08 00 C4 57 80 0D 01 02 00 00 00 00 94 [16:35:15]Write i2c OK [16:35:15]MH_I2C_Read... [16:35:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:35:15]Read from MH i2c: E2 [16:35:15]MH_I2C_Read... [16:35:15]Read from MH i2c: E2 03 00 [16:35:15]MH_I2C_Read... [16:35:15]Read from MH i2c: E2 03 00 C4 57 00 90 00 8F [16:35:15]RAPDU: 90 00 [16:35:15]wFMCommunicate OK [16:35:15]wFMCommunicate request_size=255 [16:35:15]MH_SAM_APDU [16:35: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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 45 D4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EB 7B 03 00 35 04 06 00 C4 [16:35:16]Write to MH i2c: E2 02 01 C5 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 45 D4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EB 7B 03 00 35 04 06 00 C4 00 00 08 [16:35:16]Write i2c OK [16:35:16]MH_I2C_Read... [16:35:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:17]Read from MH i2c: E2 [16:35:17]MH_I2C_Read... [16:35:17]Read from MH i2c: E2 03 00 [16:35:17]MH_I2C_Read... [16:35:17]Read from MH i2c: E2 03 00 C5 57 00 90 00 90 [16:35:17]RAPDU: 90 00 [16:35:17]wFMCommunicate OK [16:35:17]wFMCommunicate request_size=10 [16:35:17]MH_SAM_APDU [16:35:17]CAPDU: 80 0D 02 02 05 1E F2 B6 7E EF [16:35:17]Write to MH i2c: E2 0D 00 C6 57 80 0D 02 02 05 00 1E F2 B6 7E EF 00 00 D4 [16:35:17]Write i2c OK [16:35:17]MH_I2C_Read... [16:35:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:17]Read from MH i2c: E2 [16:35:17]MH_I2C_Read... [16:35:17]Read from MH i2c: E2 03 00 [16:35:17]MH_I2C_Read... [16:35:17]Read from MH i2c: E2 03 00 C6 57 00 90 00 91 [16:35:17]RAPDU: 90 00 [16:35:17]wFMCommunicate OK [16:35:17]wFMCommunicate request_size=4 [16:35:17]MH_SAM_APDU [16:35:17]CAPDU: 80 0D 03 02 [16:35:17]Write to MH i2c: E2 08 00 C7 57 80 0D 03 02 00 00 00 00 99 [16:35:17]Write i2c OK [16:35:17]MH_I2C_Read... [16:35:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:35:17]Read from MH i2c: E2 [16:35:17]MH_I2C_Read... [16:35:17]Read from MH i2c: E2 0B 00 [16:35:17]MH_I2C_Read... [16:35:17]Read from MH i2c: E2 0B 00 C7 57 00 3E D6 5E F0 BC A4 BD 97 90 00 B0 [16:35:17]RAPDU: 3E D6 5E F0 BC A4 BD 97 90 00 [16:35:17]wFMCommunicate OK [16:35:17]SAM_PROTO_SignData done [16:35:17]FM_MakeSignedData done [16:35:17]CreateOFDProtocolMessage [16:35:17]wFMCommunicate request_size=4 [16:35:17]MH_SAM_APDU [16:35:17]CAPDU: 80 11 00 00 [16:35:17]Write to MH i2c: E2 08 00 C8 57 80 11 00 00 00 00 00 00 99 [16:35:17]Write i2c OK [16:35:17]MH_I2C_Read... [16:35:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:17]Read from MH i2c: E2 [16:35:17]MH_I2C_Read... [16:35:17]Read from MH i2c: E2 17 00 [16:35:17]MH_I2C_Read... [16:35:17]Read from MH i2c: E2 17 00 C8 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F0 [16:35:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:35:17]wFMCommunicate OK [16:35:17]CreateOFDProtocolMessage done [16:35:17]OFDSenderStorePacket 228331 [16:35:17]StoreOFDPacket docnum=228331 [16:35:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D4 D7 07 01 B9 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 45 D4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EB 7B 03 00 35 04 06 00 C4 1E F2 B6 7E EF 3E D6 5E F0 BC A4 BD 97 [16:35:17]CheckFolder [16:35:17]dirname=/storage/ofd_packets [16:35:17]CheckFolder done [16:35:17]ProducePacketName [16:35:17]name=ofd_packets/00228331 [16:35:17]NVStorageSaveData ofd_packets/00228331 [16:35:17]File name is /storage/ofd_packets/00228331 [16:35:17]Write 301 bytes [16:35:17]NVStorageSaveData done [16:35:17]OFDSenderStorePacket done [16:35:17]KKMCreateOFDPacket done [16:35:17]NVStorageSaveData kkm_last_timestamp [16:35:17]File name is /storage/kkm_last_timestamp [16:35:17]Write 4 bytes [16:35:17]NVStorageSaveData done [16:35:17]ExternCall_PrintAddStr [16:35:17]wPrintStart [16:35:17]Write to MH i2c: 01 00 00 C9 57 20 [16:35:17]Write i2c OK [16:35:17]MH_I2C_Read... [16:35:18]Read from MH i2c: 01 [16:35:18]MH_I2C_Read... [16:35:18]Read from MH i2c: 01 07 00 [16:35:18]MH_I2C_Read... [16:35:18]Read from MH i2c: 01 07 00 C9 57 00 00 00 00 00 FF 0F 35 [16:35:18]RasterBufferAndPrint [16:35:18]line Счет N : (1)1964826 [16:35:18]line ИНН: 02508201610067 [16:35:18]line Контрольно-Кассовый Чек [16:35:18]line ПРОДАЖА [16:35:18]line ТРК (МРК, ГНК) : 44 [16:35:18]line Товар: 2710124500 [16:35:18]line Аи-95-К-5 [16:35:18]line 6.740 * 74.20 [16:35:18]line = 500.11 [16:35:18]line НДС 12% НСП 1% [16:35:18]line > о реализуемом товаре [16:35:18]line ОКРУГЛЕНИЕ: -0.11 [16:35:18]line ИТОГО: 500.00 [16:35:18]line Внесено: 500.00 [16:35:18]line СДАЧА: 0.00 [16:35:18]line НСП 1% : 4.43 [16:35:18]line НДС 12% : 53.11 [16:35:18]line Наличными: 500.00 [16:35:18]line Безнал.: 0.00 [16:35:18]line Место: АЗС № 133 "Партнер Нефть" [16:35:18]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [16:35:18]line СНО: Общий режим [16:35:18]line Чек 295 22.10.2024 16:35 [16:35:18]line Смена: 535 ФФД: 1.0 [16:35:18]line ЗНМ: 0300000091 [16:35:18]line РНМ: 0000000000091685 [16:35:18]line Версия ККМ: 001 [16:35:18]line ФМ: 0000000000871839 [16:35:18]line ФД: 228331 [16:35:18]line ФПД: 215637200109295 [16:35:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T163517&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228331&fm=215637200109295&tin=02508201610067®Number=0000000000091685&sum=50000 [16:35:18]OFD Sender: Processing packet 228331 [packets to send 38, broken 37] [16:35:18]ProducePacketName [16:35:18]name=ofd_packets/00228331 [16:35:18]OFD Sender: To server: pG, [16:35:18]CommunicateWithHost lk.salyk.kg:30040 [16:35:18]ConnectInit lk.salyk.kg [16:35:18]written 0, free lines is 4095 [16:35:18]Connected sock=11 [16:35:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D4 D7 07 01 B9 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 Write to MH i2c: C3 01 00 00 00 00 39 00 04 00 06 F3 00 57 00 4A 00 [16:35:18]00 Write i2c OK [16:35:18]00 MH_I2C_Read... [16:35:18]00 00 1F 04 02 00 01 Read from MH i2c: 00 01 12 04 04 00 27 01 [16:35:18]00 MH_I2C_Read... [16:35:19]00 F4 03 04 00 Read from MH i2c: 45 01 D4 07 17 00 67 [16:35:19]0E MH_I2C_Read... [16:35:19]04 04 00 17 02 00 Read from MH i2c: 00 01 B9 07 04 00 01 F3 00 57 01 00 0D 00 04 00 10 00 30 30 30 00 30 00 30 E1 30 0D 30 3F 30 [16:35:19]30 RasterBufferAndPrint [16:35:19]30 line [16:35:19]30 line [16:35:19]39 31 36 38 35 line [16:35:19]11 line [16:35:19]04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EB 7B 03 00 35 04 06 00 C4 1E line [16:35:19]F2 B6 7E EF 3E written 0, free lines is 4052 [16:35:19]D6 5E F0 BC A4 MH_Cut [16:35:19]BD Write to MH i2c: 97 D1 [16:35:19]01 00 FA 57 01 23 [16:35:19]Write i2c OK [16:35:19]MH_I2C_Read... [16:35:19]Read from MH i2c: D1 [16:35:19]MH_I2C_Read... [16:35:19]Read from MH i2c: D1 01 00 [16:35:19]MH_I2C_Read... [16:35:19]Read from MH i2c: D1 01 00 FA 57 00 22 [16:35:19]Write to MH i2c: 01 00 00 FB 57 52 [16:35:19]Write i2c OK [16:35:19]MH_I2C_Read... [16:35:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 *** Cut start [16:35:19]30 30 38 *** Partial cut [16:35:19]37 31 38 *** CUTSNS_PIN = 1 [16:35:19]33 39 4F *** CUTSNS_PIN = 0 [16:35:19]00 00 00 AB 43 47 00 76 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 *** Brake cut motor [16:35:19]04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EB 7B 03 00 F4 03 04 00 42 7F 17 67 B6 04 01 00 00 77 A9 02 F6 DA C3 F1 CB [16:35:20]CommunicateWithHost err = 0 [16:35:20]CheckOFDResponse [16:35:20]1017 (14) - 77093643461234 [16:35:20]1041 (16) - 0000000000871839 [16:35:20]1040 (4) - 228331 [16:35:20]1012 (4) - 22.10.2024 10:32 [16:35:20]1206 (1) - 0 [16:35:20]*** Stop cut motor [16:35:20]OFD Sender: Remove packet 228331 [16:35:20]*** Cut end [16:35:20]ProducePacketName [16:35:20]name=ofd_packets/00228331 [16:35:20]NVStorageDeleteData [16:35:20]Read from MH i2c: 01 [16:35:20]MH_I2C_Read... [16:35:20]Read from MH i2c: 01 07 00 [16:35:20]MH_I2C_Read... [16:35:20]Read from MH i2c: 01 07 00 FB 57 00 00 00 00 00 FF 0F 67 [16:35:20]process_action close_receipt done [16:35:20]requested_data is exist [16:35:20]produce_requested_data [16:35:20]requested_item fm.sn is exist - process it [16:35:20]wFMCommunicate request_size=4 [16:35:20]MH_SAM_APDU [16:35:20]CAPDU: 80 11 00 00 [16:35:20]Write to MH i2c: E2 08 00 FC 57 80 11 00 00 00 00 00 00 CD [16:35:20]Write i2c OK [16:35:20]MH_I2C_Read... [16:35:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:20]Read from MH i2c: E2 [16:35:20]MH_I2C_Read... [16:35:20]Read from MH i2c: E2 17 00 [16:35:20]MH_I2C_Read... [16:35:20]Read from MH i2c: E2 17 00 FC 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 24 [16:35:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:35:20]wFMCommunicate OK [16:35:20]requested_item fd.num is exist - process it [16:35:20]SAM_PROTO_GetFieldsCounters [16:35:20]wFMCommunicate request_size=4 [16:35:20]MH_SAM_APDU [16:35:20]CAPDU: 80 13 00 00 [16:35:20]Write to MH i2c: E2 08 00 FD 57 80 13 00 00 00 00 00 00 D0 [16:35:20]Write i2c OK [16:35:20]MH_I2C_Read... [16:35:20]OFD Sender: No OFD packet to send [16:35:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:20]Read from MH i2c: E2 [16:35:20]MH_I2C_Read... [16:35:20]Read from MH i2c: E2 62 00 [16:35:20]MH_I2C_Read... [16:35:20]Read from MH i2c: E2 62 00 FD 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EB 7B 03 00 0E 04 04 00 17 02 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 F3 [16:35:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EB 7B 03 00 0E 04 04 00 17 02 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 [16:35:21]wFMCommunicate OK [16:35:21]SAM_PROTO_GetFieldsCounters done [16:35:21]requested_item shift.num is exist - process it [16:35:21]requested_item shift.opened is exist - process it [16:35:21]req_shift_opened [16:35:21]FM_GetShiftState [16:35:21]SAM_PROTO_GetShiftState [16:35:21]wFMCommunicate request_size=4 [16:35:21]MH_SAM_APDU [16:35:21]CAPDU: 80 13 01 00 [16:35:21]Write to MH i2c: E2 08 00 FE 57 80 13 01 00 00 00 00 00 D2 [16:35:21]Write i2c OK [16:35:21]MH_I2C_Read... [16:35:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:21]Read from MH i2c: E2 [16:35:21]MH_I2C_Read... [16:35:21]Read from MH i2c: E2 0E 00 [16:35:21]MH_I2C_Read... [16:35:21]Read from MH i2c: E2 0E 00 FE 57 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 99 [16:35:21]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [16:35:21]wFMCommunicate OK [16:35:21]SAM_PROTO_GetShiftState done [16:35:21]FM_GetShiftState done [16:35:21]req_shift_opened done [16:35:21]requested_item shift.open_date is exist - process it [16:35:21]req_shift_open_date [16:35:21]req_shift_open_date done [16:35:21]produce_requested_data done [16:35:21]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228331,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [16:35:21]process_action_free close_receipt [16:35:21]json_value_free [16:35:21]json_value_free done [16:35:21]process_json_proto returns [16:35:21]Send response to host [16:35:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228331,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [16:35:21]free response buf [16:35:21]execute_script done [16:35:21]execute_script returns [16:35:21]free content buf [16:35:21]Sock 9.Close socket [16:35:21]Sock 9.Thread stoped [16:35:25]OFD Sender: No OFD packet to send [16:35:30]OFD Sender: No OFD packet to send [16:35:35]OFD Sender: No OFD packet to send [16:35:40]OFD Sender: No OFD packet to send [16:35:45]OFD Sender: No OFD packet to send [16:35:50]OFD Sender: No OFD packet to send [16:35:55]OFD Sender: No OFD packet to send [16:36:00]OFD Sender: No OFD packet to send [16:36:05]OFD Sender: No OFD packet to send [16:36:10]OFD Sender: No OFD packet to send [16:36:15]OFD Sender: No OFD packet to send [16:36:20]OFD Sender: No OFD packet to send [16:36:25]OFD Sender: No OFD packet to send [16:36:30]OFD Sender: No OFD packet to send [16:36:35]OFD Sender: No OFD packet to send [16:36:40]OFD Sender: No OFD packet to send [16:36:45]OFD Sender: No OFD packet to send [16:36:50]OFD Sender: No OFD packet to send [16:36:55]OFD Sender: No OFD packet to send [16:37:00]OFD Sender: No OFD packet to send [16:37:05]OFD Sender: No OFD packet to send [16:37:10]OFD Sender: No OFD packet to send [16:37:15]OFD Sender: No OFD packet to send [16:37:20]OFD Sender: No OFD packet to send [16:37:25]OFD Sender: No OFD packet to send [16:37:26]ConnectInit Can't connect to host [16:37:30]OFD Sender: No OFD packet to send [16:37:33]accept exits with 7 [16:37:33]New connection [16:37:33]New thread 3067137380 created [16:37:33]Thread 3066994020 joined [16:37:33]Waiting for new connection... [16:37:33] Sock 7.Parse request [16:37:33]Sock 7.Check first char [16:37:33]Sock 7.First char is OK [16:37:33]request: POST /json_proto HTTP/1.0 [16:37:33]Method: POST [16:37:33]URL: /json_proto [16:37:33]Method is POST - this is cgi request [16:37:33]url: /json_proto [16:37:33]query_string will be loaded in cgi processing [16:37:33]execute_cgi json_proto POST (null) [16:37:33]execute_cgi path=json_proto method=POST [16:37:33]POST find Content-Length [16:37:33]Host: 172.17.44.195:8080 [16:37:33]Content-Length: 678 [16:37:33]Content-Type: application/json [16:37:33] [16:37:33]POST finish read [16:37:33]Found Content-Length = 678 [16:37:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "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:37:33]execute_script... [16:37: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)1964828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "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:37:33]POST & json_proto [16:37:33]process_json_proto [16:37:33]json parsed OK: [16:37:33]protocol is kg_v1.0 [16:37:33]action value=close_receipt [16:37:33]process_action close_receipt [16:37:33]cmd_close_receipt [16:37:33]MH_GetDate [16:37:33]Write to MH i2c: F0 00 00 FF 57 45 [16:37:33]Write i2c OK [16:37:33]MH_I2C_Read... [16:37:33]Read from MH i2c: F0 [16:37:33]MH_I2C_Read... [16:37:33]Read from MH i2c: F0 09 00 [16:37:33]MH_I2C_Read... [16:37:33]Read from MH i2c: F0 09 00 FF 57 00 D2 D4 17 67 82 C9 CF 66 F2 [16:37:33]GetLastDocTimeStamp 1729614917 [16:37:33]current date 1729615058 [16:37:33]FM_GetShiftState [16:37:33]SAM_PROTO_GetShiftState [16:37:33]wFMCommunicate request_size=4 [16:37:33]MH_SAM_APDU [16:37:33]CAPDU: 80 13 01 00 [16:37:33]Write to MH i2c: E2 08 00 00 58 80 13 01 00 00 00 00 00 D5 [16:37:33]Write i2c OK [16:37:33]MH_I2C_Read... [16:37:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:33]Read from MH i2c: E2 [16:37:33]MH_I2C_Read... [16:37:33]Read from MH i2c: E2 0E 00 [16:37:33]MH_I2C_Read... [16:37:33]Read from MH i2c: E2 0E 00 00 58 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 9C [16:37:33]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [16:37:34]wFMCommunicate OK [16:37:34]SAM_PROTO_GetShiftState done [16:37:34]FM_GetShiftState done [16:37:34]opened in 1729555538 [16:37:34]opened+sec_in_day 1729641938 [16:37:34]quantity*price = 25020 [16:37:34]sum+1 = 25022 [16:37:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 296 22.10.2024 16:37 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228332 ФПД: 142756191447973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T163739&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228332&fm=142756191447973&tin=02508201610067®Number=0000000000091685&sum=25000 [16:37:37]StoreToDocumentArchive [16:37:37]shift 535 fd 228332 [16:37:37]save to /storage/0535/doc_00228332 [16:37:37]save last doc name /storage/0535/doc_00228332 to /storage/kkm_last_doc_name [16:37:37]save OK [16:37:37]Clear old archive folders... [16:37:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:37:37]tlvbuf is 00CDD8D0 [16:37:37]SAM_PROTO_ClearQueue [16:37:37]wFMCommunicate request_size=4 [16:37:37]MH_SAM_APDU [16:37:37]CAPDU: 80 09 00 00 [16:37:37]Write to MH i2c: E2 08 00 0D 58 80 09 00 00 00 00 00 00 D7 [16:37:37]Write i2c OK [16:37:37]MH_I2C_Read... [16:37:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:37]Read from MH i2c: E2 [16:37:37]MH_I2C_Read... [16:37:37]Read from MH i2c: E2 03 00 [16:37:37]MH_I2C_Read... [16:37:37]Read from MH i2c: E2 03 00 0D 58 00 90 00 D9 [16:37:37]RAPDU: 90 00 [16:37:37]wFMCommunicate OK [16:37:37]SAM_PROTO_ClearQueue done [16:37:37]KKMCreateOFDPacket [16:37:37]OFDProtocolAddRootSTLVToBuf [16:37:37]FM_MakeSignedData [16:37:37]FM_MakeSignedData [16:37:37]SAM_PROTO_SignData [16:37:37]wFMCommunicate request_size=4 [16:37:37]MH_SAM_APDU [16:37:37]CAPDU: 80 0D 01 02 [16:37:37]Write to MH i2c: E2 08 00 0E 58 80 0D 01 02 00 00 00 00 DF [16:37:37]Write i2c OK [16:37:37]MH_I2C_Read... [16:37:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:37]Read from MH i2c: E2 [16:37:37]MH_I2C_Read... [16:37:37]Read from MH i2c: E2 03 00 [16:37:37]MH_I2C_Read... [16:37:37]Read from MH i2c: E2 03 00 0E 58 00 90 00 DA [16:37:37]RAPDU: 90 00 [16:37:37]wFMCommunicate OK [16:37:37]wFMCommunicate request_size=255 [16:37:37]MH_SAM_APDU [16:37:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 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 61 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 28 01 00 00 F4 03 04 00 D3 D4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EC 7B 03 00 35 04 06 00 81 [16:37:38]Write to MH i2c: E2 02 01 0F 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 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 61 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 28 01 00 00 F4 03 04 00 D3 D4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EC 7B 03 00 35 04 06 00 81 00 00 A1 [16:37:38]Write i2c OK [16:37:38]MH_I2C_Read... [16:37:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:39]Read from MH i2c: E2 [16:37:39]MH_I2C_Read... [16:37:39]Read from MH i2c: E2 03 00 [16:37:39]MH_I2C_Read... [16:37:39]Read from MH i2c: E2 03 00 0F 58 00 90 00 DB [16:37:39]RAPDU: 90 00 [16:37:39]wFMCommunicate OK [16:37:39]wFMCommunicate request_size=10 [16:37:39]MH_SAM_APDU [16:37:39]CAPDU: 80 0D 02 02 05 D6 04 14 AB A5 [16:37:39]Write to MH i2c: E2 0D 00 10 58 80 0D 02 02 05 00 D6 04 14 AB A5 00 00 2A [16:37:39]Write i2c OK [16:37:39]MH_I2C_Read... [16:37:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:39]Read from MH i2c: E2 [16:37:39]MH_I2C_Read... [16:37:39]Read from MH i2c: E2 03 00 [16:37:39]MH_I2C_Read... [16:37:39]Read from MH i2c: E2 03 00 10 58 00 90 00 DC [16:37:39]RAPDU: 90 00 [16:37:39]wFMCommunicate OK [16:37:39]wFMCommunicate request_size=4 [16:37:39]MH_SAM_APDU [16:37:39]CAPDU: 80 0D 03 02 [16:37:39]Write to MH i2c: E2 08 00 11 58 80 0D 03 02 00 00 00 00 E4 [16:37:39]Write i2c OK [16:37:39]MH_I2C_Read... [16:37:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:39]Read from MH i2c: E2 [16:37:39]MH_I2C_Read... [16:37:39]Read from MH i2c: E2 0B 00 [16:37:39]MH_I2C_Read... [16:37:39]Read from MH i2c: E2 0B 00 11 58 00 37 AE 44 EF 32 8B AB E7 90 00 4C [16:37:39]RAPDU: 37 AE 44 EF 32 8B AB E7 90 00 [16:37:39]wFMCommunicate OK [16:37:39]SAM_PROTO_SignData done [16:37:39]FM_MakeSignedData done [16:37:39]CreateOFDProtocolMessage [16:37:39]wFMCommunicate request_size=4 [16:37:39]MH_SAM_APDU [16:37:39]CAPDU: 80 11 00 00 [16:37:39]Write to MH i2c: E2 08 00 12 58 80 11 00 00 00 00 00 00 E4 [16:37:39]Write i2c OK [16:37:39]MH_I2C_Read... [16:37:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:39]Read from MH i2c: E2 [16:37:39]MH_I2C_Read... [16:37:39]Read from MH i2c: E2 17 00 [16:37:39]MH_I2C_Read... [16:37:39]Read from MH i2c: E2 17 00 12 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 3B [16:37:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:37:39]wFMCommunicate OK [16:37:39]CreateOFDProtocolMessage done [16:37:39]OFDSenderStorePacket 228332 [16:37:39]StoreOFDPacket docnum=228332 [16:37:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 8C 8A 07 01 F8 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 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 61 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 28 01 00 00 F4 03 04 00 D3 D4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EC 7B 03 00 35 04 06 00 81 D6 04 14 AB A5 37 AE 44 EF 32 8B AB E7 [16:37:39]CheckFolder [16:37:39]dirname=/storage/ofd_packets [16:37:39]CheckFolder done [16:37:40]ProducePacketName [16:37:40]name=ofd_packets/00228332 [16:37:40]NVStorageSaveData ofd_packets/00228332 [16:37:40]File name is /storage/ofd_packets/00228332 [16:37:40]Write 301 bytes [16:37:40]NVStorageSaveData done [16:37:40]OFDSenderStorePacket done [16:37:40]KKMCreateOFDPacket done [16:37:40]NVStorageSaveData kkm_last_timestamp [16:37:40]File name is /storage/kkm_last_timestamp [16:37:40]Write 4 bytes [16:37:40]NVStorageSaveData done [16:37:40]ExternCall_PrintAddStr [16:37:40]wPrintStart [16:37:40]Write to MH i2c: 01 00 00 13 OFD Sender: Processing packet 228332 [packets to send 38, broken 37] [16:37:40]58 ProducePacketName [16:37:40]6B name=ofd_packets/00228332 [16:37:40] [16:37:40]OFD Sender: To server: pG, [16:37:40]Write i2c OK [16:37:40]CommunicateWithHost lk.salyk.kg:30040 [16:37:40]MH_I2C_Read... [16:37:40]ConnectInit lk.salyk.kg [16:37:40]Read from MH i2c: 01 [16:37:40]MH_I2C_Read... [16:37:40]Read from MH i2c: 01 07 00 [16:37:40]MH_I2C_Read... [16:37:40]Read from MH i2c: 01 07 00 13 58 00 00 00 00 00 FF 0F 80 [16:37:40]RasterBufferAndPrint [16:37:40]line Счет N : (1)1964828 [16:37:40]line ИНН: 02508201610067 [16:37:40]line Контрольно-Кассовый Чек [16:37:40]line ПРОДАЖА [16:37:40]line ТРК (МРК, ГНК) : 33 [16:37:40]line Товар: 2710124130 [16:37:40]line Аи-92-К-5 [16:37:40]line 3.740 * 66.90 [16:37:40]line = 250.21 [16:37:40]line НДС 12% НСП 1% [16:37:40]line > о реализуемом товаре [16:37:40]line ОКРУГЛЕНИЕ: -0.21 [16:37:40]line ИТОГО: 250.00 [16:37:40]line Внесено: 250.00 [16:37:40]line СДАЧА: 0.00 [16:37:40]line НСП 1% : 2.21 [16:37:40]line НДС 12% : 26.57 [16:37:40]line Наличными: 250.00 [16:37:40]line Безнал.: 0.00 [16:37:40]line Место: АЗС № 133 "Партнер Нефть" [16:37:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [16:37:40]line СНО: Общий режим [16:37:40]line Чек 296 22.10.2024 16:37 [16:37:40]line Смена: 535 ФФД: 1.0 [16:37:40]line ЗНМ: 0300000091 [16:37:40]line РНМ: 0000000000091685 [16:37:40]line Версия ККМ: 001 [16:37:40]Connected sock=11 [16:37:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 line ФМ: 0000000000871839 [16:37:40]30 line ФД: 228332 [16:37:40]30 line ФПД: 142756191447973 [16:37:40]38 line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T163739&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228332&fm=142756191447973&tin=02508201610067®Number=0000000000091685&sum=25000 [16:37:40]37 31 38 33 39 0F 01 00 00 8C 8A 07 01 F8 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A written 0, free lines is 4095 [16:37:40]00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 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 61 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 28 01 00 00 F4 03 04 00 D3 D4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 Write to MH i2c: 30 01 30 30 30 30 30 00 39 00 31 36 38 35 11 3D 04 58 10 00 95 30 [16:37:41]30 30 30 30 30 Write i2c OK [16:37:41]30 MH_I2C_Read... [16:37:41]30 30 30 38 37 31 38 33 39 10 04 04 00 EC 7B 03 00 35 04 06 00 81 D6 04 14 AB A5 37 AE 44 EF 32 8B AB E7 [16:37:41]Read from MH i2c: 01 [16:37:41]MH_I2C_Read... [16:37:41]Read from MH i2c: 01 07 00 [16:37:41]MH_I2C_Read... [16:37:41]Read from MH i2c: 01 07 00 3D 58 00 00 00 00 00 FF 0C A7 [16:37:41]RasterBufferAndPrint [16:37:41]line [16:37:41]line [16:37:41]line [16:37:41]line [16:37:41]line [16:37:41]written 0, free lines is 3649 [16:37:41]MH_Cut [16:37:41]Write to MH i2c: D1 01 00 44 58 01 6E [16:37:41]Write i2c OK [16:37:41]MH_I2C_Read... [16:37:41]Read from MH i2c: D1 [16:37:41]MH_I2C_Read... [16:37:41]Read from MH i2c: D1 01 00 [16:37:41]MH_I2C_Read... [16:37:41]Read from MH i2c: D1 01 00 44 58 00 6D [16:37:41]Write to MH i2c: 01 00 00 45 58 9D [16:37:41]Received data: 87 95 F6 70 47 2C 01 Write i2c OK [16:37:41]00 MH_I2C_Read... [16:37:41]30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 3E A4 47 00 41 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EC 7B 03 00 F4 03 04 00 CF 7F 17 67 B6 04 01 00 00 A1 B1 79 14 C5 0B 2B 50 [16:37:41]CommunicateWithHost err = 0 [16:37:41]CheckOFDResponse [16:37:41]1017 (14) - 77093643461234 [16:37:41]1041 (16) - 0000000000871839 [16:37:41]1040 (4) - 228332 [16:37:41]*** Cut start [16:37:41]1012 (4) - 22.10.2024 10:34 [16:37:41]1206 (1) - 0 [16:37:41]OFD Sender: Remove packet 228332 [16:37:41]*** Partial cut [16:37:41]ProducePacketName [16:37:41]*** CUTSNS_PIN = 1 [16:37:41]name=ofd_packets/00228332 [16:37:41]NVStorageDeleteData [16:37:41]*** CUTSNS_PIN = 0 [16:37:42]*** Brake cut motor [16:37:42]OFD Sender: No OFD packet to send [16:37:42]Read from MH i2c: 01 [16:37:42]MH_I2C_Read... [16:37:42]*** Stop cut motor [16:37:42]*** Cut end [16:37:42]Read from MH i2c: 01 07 00 [16:37:42]MH_I2C_Read... [16:37:42]Read from MH i2c: 01 07 00 45 58 00 00 00 00 00 FF 0F B2 [16:37:42]process_action close_receipt done [16:37:42]requested_data is exist [16:37:42]produce_requested_data [16:37:42]requested_item fm.sn is exist - process it [16:37:42]wFMCommunicate request_size=4 [16:37:42]MH_SAM_APDU [16:37:42]CAPDU: 80 11 00 00 [16:37:42]Write to MH i2c: E2 08 00 46 58 80 11 00 00 00 00 00 00 18 [16:37:42]Write i2c OK [16:37:42]MH_I2C_Read... [16:37:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:42]Read from MH i2c: E2 [16:37:42]MH_I2C_Read... [16:37:42]Read from MH i2c: E2 17 00 [16:37:42]MH_I2C_Read... [16:37:42]Read from MH i2c: E2 17 00 46 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6F [16:37:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:37:42]wFMCommunicate OK [16:37:42]requested_item fd.num is exist - process it [16:37:42]SAM_PROTO_GetFieldsCounters [16:37:42]wFMCommunicate request_size=4 [16:37:42]MH_SAM_APDU [16:37:42]CAPDU: 80 13 00 00 [16:37:42]Write to MH i2c: E2 08 00 47 58 80 13 00 00 00 00 00 00 1B [16:37:42]Write i2c OK [16:37:42]MH_I2C_Read... [16:37:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:43]Read from MH i2c: E2 [16:37:43]MH_I2C_Read... [16:37:43]Read from MH i2c: E2 62 00 [16:37:43]MH_I2C_Read... [16:37:43]Read from MH i2c: E2 62 00 47 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EC 7B 03 00 0E 04 04 00 17 02 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 42 [16:37:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EC 7B 03 00 0E 04 04 00 17 02 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 [16:37:43]wFMCommunicate OK [16:37:43]SAM_PROTO_GetFieldsCounters done [16:37:43]requested_item shift.num is exist - process it [16:37:43]requested_item shift.opened is exist - process it [16:37:43]req_shift_opened [16:37:43]FM_GetShiftState [16:37:43]SAM_PROTO_GetShiftState [16:37:43]wFMCommunicate request_size=4 [16:37:43]MH_SAM_APDU [16:37:43]CAPDU: 80 13 01 00 [16:37:43]Write to MH i2c: E2 08 00 48 58 80 13 01 00 00 00 00 00 1D [16:37:43]Write i2c OK [16:37:43]MH_I2C_Read... [16:37:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:43]Read from MH i2c: E2 [16:37:43]MH_I2C_Read... [16:37:43]Read from MH i2c: E2 0E 00 [16:37:43]MH_I2C_Read... [16:37:43]Read from MH i2c: E2 0E 00 48 58 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 E4 [16:37:43]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [16:37:43]wFMCommunicate OK [16:37:43]SAM_PROTO_GetShiftState done [16:37:43]FM_GetShiftState done [16:37:43]req_shift_opened done [16:37:43]requested_item shift.open_date is exist - process it [16:37:43]req_shift_open_date [16:37:43]req_shift_open_date done [16:37:43]produce_requested_data done [16:37:43]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228332,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [16:37:43]process_action_free close_receipt [16:37:43]json_value_free [16:37:43]json_value_free done [16:37:43]process_json_proto returns [16:37:43]Send response to host [16:37:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228332,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [16:37:43]free response buf [16:37:43]execute_script done [16:37:43]execute_script returns [16:37:43]free content buf [16:37:43]Sock 7.Close socket [16:37:43]Sock 7.Thread stoped [16:37:47]OFD Sender: No OFD packet to send [16:37:52]accept exits with 10 [16:37:52]New connection [16:37:52]New thread 3066994020 created [16:37:52]Thread 3067137380 joined [16:37:52]Waiting for new connection... [16:37:52] Sock 10.Parse request [16:37:52]Sock 10.Check first char [16:37:52]Sock 10.First char is OK [16:37:52]request: POST /json_proto HTTP/1.0 [16:37:52]Method: POST [16:37:52]URL: /json_proto [16:37:52]Method is POST - this is cgi request [16:37:52]url: /json_proto [16:37:52]query_string will be loaded in cgi processing [16:37:52]execute_cgi json_proto POST (null) [16:37:52]execute_cgi path=json_proto method=POST [16:37:52]POST find Content-Length [16:37:52]Host: 172.17.44.195:8080 [16:37:52]Content-Length: 683 [16:37:52]Content-Type: application/json [16:37:52] [16:37:52]POST finish read [16:37:52]Found Content-Length = 683 [16:37:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:52]execute_script... [16:37: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)1964827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:52]POST & json_proto [16:37:52]process_json_proto [16:37:52]json parsed OK: [16:37:52]protocol is kg_v1.0 [16:37:52]action value=close_receipt [16:37:52]process_action close_receipt [16:37:52]cmd_close_receipt [16:37:52]MH_GetDate [16:37:52]Write to MH i2c: F0 00 00 49 58 90 [16:37:52]Write i2c OK [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: F0 [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: F0 09 00 [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: F0 09 00 49 58 00 E5 D4 17 67 82 C9 CF 66 50 [16:37:52]GetLastDocTimeStamp 1729615059 [16:37:52]current date 1729615077 [16:37:52]FM_GetShiftState [16:37:52]SAM_PROTO_GetShiftState [16:37:52]wFMCommunicate request_size=4 [16:37:52]MH_SAM_APDU [16:37:52]CAPDU: 80 13 01 00 [16:37:52]Write to MH i2c: E2 08 00 4A 58 80 13 01 00 00 00 00 00 1F [16:37:52]Write i2c OK [16:37:52]MH_I2C_Read... [16:37:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:52]Read from MH i2c: E2 [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: E2 0E 00 [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: E2 0E 00 4A 58 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 E6 [16:37:52]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [16:37:52]wFMCommunicate OK [16:37:52]SAM_PROTO_GetShiftState done [16:37:52]FM_GetShiftState done [16:37:52]opened in 1729555538 [16:37:52]opened+sec_in_day 1729641938 [16:37:52]quantity*price = 100021 [16:37:52]sum+1 = 100023 [16:37:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 297 22.10.2024 16:37 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228333 ФПД: 109667782513266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T163757&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228333&fm=109667782513266&tin=02508201610067®Number=0000000000091685&sum=100000 [16:37:56]StoreToDocumentArchive [16:37:56]shift 535 fd 228333 [16:37:56]save to /storage/0535/doc_00228333 [16:37:56]save last doc name /storage/0535/doc_00228333 to /storage/kkm_last_doc_name [16:37:56]save OK [16:37:56]Clear old archive folders... [16:37:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:37:56]tlvbuf is 00D02BF0 [16:37:56]SAM_PROTO_ClearQueue [16:37:56]wFMCommunicate request_size=4 [16:37:56]MH_SAM_APDU [16:37:56]CAPDU: 80 09 00 00 [16:37:56]Write to MH i2c: E2 08 00 57 58 80 09 00 00 00 00 00 00 21 [16:37:56]Write i2c OK [16:37:56]MH_I2C_Read... [16:37:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:56]Read from MH i2c: E2 [16:37:56]MH_I2C_Read... [16:37:56]Read from MH i2c: E2 03 00 [16:37:56]MH_I2C_Read... [16:37:56]Read from MH i2c: E2 03 00 57 58 00 90 00 23 [16:37:56]RAPDU: 90 00 [16:37:56]wFMCommunicate OK [16:37:56]SAM_PROTO_ClearQueue done [16:37:56]KKMCreateOFDPacket [16:37:56]OFDProtocolAddRootSTLVToBuf [16:37:56]FM_MakeSignedData [16:37:56]FM_MakeSignedData [16:37:56]SAM_PROTO_SignData [16:37:56]wFMCommunicate request_size=4 [16:37:56]MH_SAM_APDU [16:37:56]CAPDU: 80 0D 01 02 [16:37:56]Write to MH i2c: E2 08 00 58 58 80 0D 01 02 00 00 00 00 29 [16:37:56]Write i2c OK [16:37:56]MH_I2C_Read... [16:37:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:56]Read from MH i2c: E2 [16:37:56]MH_I2C_Read... [16:37:56]Read from MH i2c: E2 03 00 [16:37:56]MH_I2C_Read... [16:37:56]Read from MH i2c: E2 03 00 58 58 00 90 00 24 [16:37:56]RAPDU: 90 00 [16:37:56]wFMCommunicate OK [16:37:56]wFMCommunicate request_size=255 [16:37:56]MH_SAM_APDU [16:37:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 E5 D4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 ED 7B 03 00 35 04 06 00 63 [16:37:57]Write to MH i2c: E2 02 01 59 58 80 0D 02 02 FA 00 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 E5 D4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 ED 7B 03 00 35 04 06 00 63 OFD Sender: No OFD packet to send [16:37:57]00 00 25 [16:37:57]Write i2c OK [16:37:57]MH_I2C_Read... [16:37:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:58]Read from MH i2c: E2 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: E2 03 00 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: E2 03 00 59 58 00 90 00 25 [16:37:58]RAPDU: 90 00 [16:37:58]wFMCommunicate OK [16:37:58]wFMCommunicate request_size=10 [16:37:58]MH_SAM_APDU [16:37:58]CAPDU: 80 0D 02 02 05 BE 05 38 52 72 [16:37:58]Write to MH i2c: E2 0D 00 5A 58 80 0D 02 02 05 00 BE 05 38 52 72 00 00 F5 [16:37:58]Write i2c OK [16:37:58]MH_I2C_Read... [16:37:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:58]Read from MH i2c: E2 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: E2 03 00 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: E2 03 00 5A 58 00 90 00 26 [16:37:58]RAPDU: 90 00 [16:37:58]wFMCommunicate OK [16:37:58]wFMCommunicate request_size=4 [16:37:58]MH_SAM_APDU [16:37:58]CAPDU: 80 0D 03 02 [16:37:58]Write to MH i2c: E2 08 00 5B 58 80 0D 03 02 00 00 00 00 2E [16:37:58]Write i2c OK [16:37:58]MH_I2C_Read... [16:37:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:58]Read from MH i2c: E2 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: E2 0B 00 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: E2 0B 00 5B 58 00 D4 2F 3A 3F C7 D0 A2 60 90 00 44 [16:37:58]RAPDU: D4 2F 3A 3F C7 D0 A2 60 90 00 [16:37:58]wFMCommunicate OK [16:37:58]SAM_PROTO_SignData done [16:37:58]FM_MakeSignedData done [16:37:58]CreateOFDProtocolMessage [16:37:58]wFMCommunicate request_size=4 [16:37:58]MH_SAM_APDU [16:37:58]CAPDU: 80 11 00 00 [16:37:58]Write to MH i2c: E2 08 00 5C 58 80 11 00 00 00 00 00 00 2E [16:37:58]Write i2c OK [16:37:58]MH_I2C_Read... [16:37:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:58]Read from MH i2c: E2 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: E2 17 00 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: E2 17 00 5C 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 85 [16:37:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:37:58]wFMCommunicate OK [16:37:58]CreateOFDProtocolMessage done [16:37:58]OFDSenderStorePacket 228333 [16:37:58]StoreOFDPacket docnum=228333 [16:37:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 ED 5C 07 01 BB 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 E5 D4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 ED 7B 03 00 35 04 06 00 63 BE 05 38 52 72 D4 2F 3A 3F C7 D0 A2 60 [16:37:58]CheckFolder [16:37:58]dirname=/storage/ofd_packets [16:37:58]CheckFolder done [16:37:58]ProducePacketName [16:37:58]name=ofd_packets/00228333 [16:37:58]NVStorageSaveData ofd_packets/00228333 [16:37:58]File name is /storage/ofd_packets/00228333 [16:37:58]Write 301 bytes [16:37:58]NVStorageSaveData done [16:37:58]OFDSenderStorePacket done [16:37:58]KKMCreateOFDPacket done [16:37:58]NVStorageSaveData kkm_last_timestamp [16:37:58]File name is /storage/kkm_last_timestamp [16:37:58]Write 4 bytes [16:37:58]NVStorageSaveData done [16:37:58]ExternCall_PrintAddStr [16:37:58]wPrintStart [16:37:58]Write to MH i2c: 01 00 00 5D 58 B5 [16:37:58]OFD Sender: Processing packet 228333 [packets to send 38, broken 37] [16:37:58]ProducePacketName [16:37:58]name=ofd_packets/00228333 [16:37:59]OFD Sender: To server: pG, [16:37:59]CommunicateWithHost lk.salyk.kg:30040 [16:37:59]ConnectInit lk.salyk.kg [16:37:59]Write i2c OK [16:37:59]MH_I2C_Read... [16:37:59]Read from MH i2c: 01 [16:37:59]MH_I2C_Read... [16:37:59]Read from MH i2c: 01 07 00 [16:37:59]MH_I2C_Read... [16:37:59]Read from MH i2c: 01 07 00 5D 58 00 00 00 00 00 FF 0F CA [16:37:59]RasterBufferAndPrint [16:37:59]line Счет N : (1)1964827 [16:37:59]line ИНН: 02508201610067 [16:37:59]line Контрольно-Кассовый Чек [16:37:59]line ПРОДАЖА [16:37:59]line ТРК (МРК, ГНК) : 64 [16:37:59]line Товар: 2710124500 [16:37:59]line Аи-95-К-5 [16:37:59]line 13.480 * 74.20 [16:37:59]line = 1000.22 [16:37:59]line НДС 12% НСП 1% [16:37:59]line > о реализуемом товаре [16:37:59]line ОКРУГЛЕНИЕ: -0.22 [16:37:59]line ИТОГО: 1000.00 [16:37:59]line Внесено: 1000.00 [16:37:59]line СДАЧА: 0.00 [16:37:59]line НСП 1% : 8.85 [16:37:59]line НДС 12% : 106.22 [16:37:59]line Наличными: 1000.00 [16:37:59]line Безнал.: 0.00 [16:37:59]line Место: АЗС № 133 "Партнер Нефть" [16:37:59]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [16:37:59]line СНО: Общий режим [16:37:59]line Чек 297 22.10.2024 16:37 [16:37:59]line Смена: 535 ФФД: 1.0 [16:37:59]line ЗНМ: 0300000091 [16:37:59]line РНМ: 0000000000091685 [16:37:59]line Версия ККМ: 001 [16:37:59]line ФМ: 0000000000871839 [16:37:59]line ФД: 228333 [16:37:59]line ФПД: 109667782513266 [16:37:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T163757&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228333&fm=109667782513266&tin=02508201610067®Number=0000000000091685&sum=100000 [16:37:59]Connected sock=11 [16:37:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F written 0, free lines is 4095 [16:37:59]01 00 00 ED 5C 07 01 BB 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F Write to MH i2c: 04 01 02 00 00 00 01 87 00 58 12 DF 04 [16:37:59]04 Write i2c OK [16:37:59]00 MH_I2C_Read... [16:37:59]29 Read from MH i2c: 01 01 00 [16:37:59]00 MH_I2C_Read... [16:37:59]F4 Read from MH i2c: 03 01 04 07 00 00 E5 [16:38:00]D4 17 67 0E 04 MH_I2C_Read... [16:38:00]04 Read from MH i2c: 00 17 02 00 00 01 B9 07 04 01 00 01 0D 00 04 87 10 00 30 30 30 58 30 00 30 30 30 30 30 00 30 00 30 39 31 36 38 00 35 00 1F 0D 12 [16:38:00]11 RasterBufferAndPrint [16:38:00]04 line [16:38:00]line [16:38:00]line [16:38:00]line [16:38:00]line [16:38:00]10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 ED 7B 03 00 35 04 06 00 63 BE 05 38 52 72 D4 2F 3A 3F C7 D0 written 0, free lines is 3675 [16:38:00]A2 60 [16:38:00]MH_Cut [16:38:00]Write to MH i2c: D1 01 00 8E 58 01 B8 [16:38:00]Write i2c OK [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: D1 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: D1 01 00 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: D1 01 00 8E 58 00 B7 [16:38:00]Write to MH i2c: 01 00 00 8F 58 E7 [16:38:00]Write i2c OK [16:38:00]MH_I2C_Read... [16:38:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 9C *** Cut start [16:38:00]E7 *** Partial cut [16:38:00]47 00 *** CUTSNS_PIN = 1 [16:38:00]41 46 A5 *** CUTSNS_PIN = 0 [16:38:00]07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 *** Brake cut motor [16:38:00]30 30 30 30 38 37 31 38 33 39 10 04 04 00 ED 7B 03 00 F4 03 04 00 E3 7F 17 67 B6 04 01 00 00 8A 40 9D 0C DA DB 1D 41 [16:38:01]CommunicateWithHost err = 0 [16:38:01]CheckOFDResponse [16:38:01]1017 (14) - 77093643461234 [16:38:01]1041 (16) - 0000000000871839 [16:38:01]1040 (4) - 228333 [16:38:01]1012 (4) - 22.10.2024 10:35 [16:38:01]1206 (1) - 0 [16:38:01]OFD Sender: Remove packet 228333 [16:38:01]ProducePacketName [16:38:01]name=ofd_packets/00228333 [16:38:01]NVStorageDeleteData [16:38:01]*** Stop cut motor [16:38:01]Read from MH i2c: 01 [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: *** Cut end [16:38:01]01 07 00 [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: 01 07 00 8F 58 00 00 00 00 00 FF 0F FC [16:38:01]process_action close_receipt done [16:38:01]requested_data is exist [16:38:01]produce_requested_data [16:38:01]requested_item fm.sn is exist - process it [16:38:01]wFMCommunicate request_size=4 [16:38:01]MH_SAM_APDU [16:38:01]CAPDU: 80 11 00 00 [16:38:01]Write to MH i2c: E2 08 00 90 58 80 11 00 00 00 00 00 00 62 [16:38:01]Write i2c OK [16:38:01]MH_I2C_Read... [16:38:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:01]Read from MH i2c: E2 [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: E2 17 00 [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: E2 17 00 90 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B9 [16:38:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:38:01]wFMCommunicate OK [16:38:01]requested_item fd.num is exist - process it [16:38:01]SAM_PROTO_GetFieldsCounters [16:38:01]wFMCommunicate request_size=4 [16:38:01]MH_SAM_APDU [16:38:01]CAPDU: 80 13 00 00 [16:38:01]Write to MH i2c: E2 08 00 91 58 80 13 00 00 00 00 00 00 65 [16:38:01]Write i2c OK [16:38:01]MH_I2C_Read... [16:38:01]OFD Sender: No OFD packet to send [16:38:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:01]Read from MH i2c: E2 [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: E2 62 00 [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: E2 62 00 91 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 ED 7B 03 00 0E 04 04 00 17 02 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 90 [16:38:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 ED 7B 03 00 0E 04 04 00 17 02 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 [16:38:02]wFMCommunicate OK [16:38:02]SAM_PROTO_GetFieldsCounters done [16:38:02]requested_item shift.num is exist - process it [16:38:02]requested_item shift.opened is exist - process it [16:38:02]req_shift_opened [16:38:02]FM_GetShiftState [16:38:02]SAM_PROTO_GetShiftState [16:38:02]wFMCommunicate request_size=4 [16:38:02]MH_SAM_APDU [16:38:02]CAPDU: 80 13 01 00 [16:38:02]Write to MH i2c: E2 08 00 92 58 80 13 01 00 00 00 00 00 67 [16:38:02]Write i2c OK [16:38:02]MH_I2C_Read... [16:38:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:02]Read from MH i2c: E2 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: E2 0E 00 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: E2 0E 00 92 58 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 2E [16:38:02]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [16:38:02]wFMCommunicate OK [16:38:02]SAM_PROTO_GetShiftState done [16:38:02]FM_GetShiftState done [16:38:02]req_shift_opened done [16:38:02]requested_item shift.open_date is exist - process it [16:38:02]req_shift_open_date [16:38:02]req_shift_open_date done [16:38:02]produce_requested_data done [16:38:02]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228333,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [16:38:02]process_action_free close_receipt [16:38:02]json_value_free [16:38:02]json_value_free done [16:38:02]process_json_proto returns [16:38:02]Send response to host [16:38:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228333,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [16:38:02]free response buf [16:38:02]execute_script done [16:38:02]execute_script returns [16:38:02]free content buf [16:38:02]Sock 10.Close socket [16:38:02]Sock 10.Thread stoped [16:38:06]OFD Sender: No OFD packet to send [16:38:11]OFD Sender: No OFD packet to send [16:38:16]OFD Sender: No OFD packet to send [16:38:21]OFD Sender: No OFD packet to send [16:38:26]OFD Sender: No OFD packet to send [16:38:31]OFD Sender: No OFD packet to send [16:38:36]OFD Sender: No OFD packet to send [16:38:41]OFD Sender: No OFD packet to send [16:38:46]OFD Sender: No OFD packet to send [16:38:51]OFD Sender: No OFD packet to send [16:38:56]OFD Sender: No OFD packet to send [16:39:01]OFD Sender: No OFD packet to send [16:39:06]OFD Sender: No OFD packet to send [16:39:11]OFD Sender: No OFD packet to send [16:39:16]OFD Sender: No OFD packet to send [16:39:21]OFD Sender: No OFD packet to send [16:39:26]OFD Sender: No OFD packet to send [16:39:31]OFD Sender: No OFD packet to send [16:39:36]OFD Sender: No OFD packet to send [16:39:41]OFD Sender: No OFD packet to send [16:39:45]ConnectInit Can't connect to host [16:39:46]OFD Sender: No OFD packet to send [16:39:51]OFD Sender: No OFD packet to send [16:39:56]OFD Sender: No OFD packet to send [16:39:59]accept exits with 7 [16:39:59]New connection [16:39:59]New thread 3067137380 created [16:39:59]Thread 3066994020 joined [16:39:59]Waiting for new connection... [16:39:59] Sock 7.Parse request [16:39:59]Sock 7.Check first char [16:39:59]Sock 7.First char is OK [16:39:59]request: POST /json_proto HTTP/1.0 [16:39:59]Method: POST [16:39:59]URL: /json_proto [16:39:59]Method is POST - this is cgi request [16:39:59]url: /json_proto [16:39:59]query_string will be loaded in cgi processing [16:39:59]execute_cgi json_proto POST (null) [16:39:59]execute_cgi path=json_proto method=POST [16:39:59]POST find Content-Length [16:39:59]Host: 172.17.44.195:8080 [16:39:59]Content-Length: 678 [16:39:59]Content-Type: application/json [16:39:59] [16:39:59]POST finish read [16:39:59]Found Content-Length = 678 [16:39:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964832", "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" : 66.90, "quantity" : 5.980, "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" ] } } [16:39:59]execute_script... [16:39:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964832", "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" : 66.90, "quantity" : 5.980, "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" ] } } [16:39:59]POST & json_proto [16:39:59]process_json_proto [16:39:59]json parsed OK: [16:39:59]protocol is kg_v1.0 [16:39:59]action value=close_receipt [16:39:59]process_action close_receipt [16:39:59]cmd_close_receipt [16:39:59]MH_GetDate [16:39:59]Write to MH i2c: F0 00 00 93 58 DA [16:39:59]Write i2c OK [16:39:59]MH_I2C_Read... [16:39:59]Read from MH i2c: F0 [16:39:59]MH_I2C_Read... [16:40:00]Read from MH i2c: F0 09 00 [16:40:00]MH_I2C_Read... [16:40:00]Read from MH i2c: F0 09 00 93 58 00 64 D5 17 67 82 C9 CF 66 1A [16:40:00]GetLastDocTimeStamp 1729615077 [16:40:00]current date 1729615204 [16:40:00]FM_GetShiftState [16:40:00]SAM_PROTO_GetShiftState [16:40:00]wFMCommunicate request_size=4 [16:40:00]MH_SAM_APDU [16:40:00]CAPDU: 80 13 01 00 [16:40:00]Write to MH i2c: E2 08 00 94 58 80 13 01 00 00 00 00 00 69 [16:40:00]Write i2c OK [16:40:00]MH_I2C_Read... [16:40:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:00]Read from MH i2c: E2 [16:40:00]MH_I2C_Read... [16:40:00]Read from MH i2c: E2 0E 00 [16:40:00]MH_I2C_Read... [16:40:00]Read from MH i2c: E2 0E 00 94 58 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 30 [16:40:00]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [16:40:00]wFMCommunicate OK [16:40:00]SAM_PROTO_GetShiftState done [16:40:00]FM_GetShiftState done [16:40:00]opened in 1729555538 [16:40:00]opened+sec_in_day 1729641938 [16:40:00]quantity*price = 40006 [16:40:00]sum+1 = 40007 [16:40:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 298 22.10.2024 16:40 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228334 ФПД: 276785835319019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T164005&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228334&fm=276785835319019&tin=02508201610067®Number=0000000000091685&sum=40000 [16:40:03]StoreToDocumentArchive [16:40:03]shift 535 fd 228334 [16:40:03]save to /storage/0535/doc_00228334 [16:40:03]save last doc name /storage/0535/doc_00228334 to /storage/kkm_last_doc_name [16:40:03]save OK [16:40:03]Clear old archive folders... [16:40:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:40:03]tlvbuf is 00D04770 [16:40:03]SAM_PROTO_ClearQueue [16:40:03]wFMCommunicate request_size=4 [16:40:03]MH_SAM_APDU [16:40:03]CAPDU: 80 09 00 00 [16:40:03]Write to MH i2c: E2 08 00 A1 58 80 09 00 00 00 00 00 00 6B [16:40:03]Write i2c OK [16:40:03]MH_I2C_Read... [16:40:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:40:04]Read from MH i2c: E2 [16:40:04]MH_I2C_Read... [16:40:04]Read from MH i2c: E2 03 00 [16:40:04]MH_I2C_Read... [16:40:04]Read from MH i2c: E2 03 00 A1 58 00 90 00 6D [16:40:04]RAPDU: 90 00 [16:40:04]wFMCommunicate OK [16:40:04]SAM_PROTO_ClearQueue done [16:40:04]KKMCreateOFDPacket [16:40:04]OFDProtocolAddRootSTLVToBuf [16:40:04]FM_MakeSignedData [16:40:04]FM_MakeSignedData [16:40:04]SAM_PROTO_SignData [16:40:04]wFMCommunicate request_size=4 [16:40:04]MH_SAM_APDU [16:40:04]CAPDU: 80 0D 01 02 [16:40:04]Write to MH i2c: E2 08 00 A2 58 80 0D 01 02 00 00 00 00 73 [16:40:04]Write i2c OK [16:40:04]MH_I2C_Read... [16:40:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:40:04]Read from MH i2c: E2 [16:40:04]MH_I2C_Read... [16:40:04]Read from MH i2c: E2 03 00 [16:40:04]MH_I2C_Read... [16:40:04]Read from MH i2c: E2 03 00 A2 58 00 90 00 6E [16:40:04]RAPDU: 90 00 [16:40:04]wFMCommunicate OK [16:40:04]wFMCommunicate request_size=255 [16:40:04]MH_SAM_APDU [16:40: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 2A 01 00 00 F4 03 04 00 65 D5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EE 7B 03 00 35 04 06 00 FB [16:40:04]Write to MH i2c: E2 02 01 A3 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 22 1A 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 2A 01 00 00 F4 03 04 00 65 D5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EE 7B 03 00 35 04 06 00 FB 00 00 3C [16:40:05]Write i2c OK [16:40:05]MH_I2C_Read... [16:40:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:05]Read from MH i2c: E2 [16:40:05]MH_I2C_Read... [16:40:05]Read from MH i2c: E2 03 00 [16:40:05]MH_I2C_Read... [16:40:05]Read from MH i2c: E2 03 00 A3 58 00 90 00 6F [16:40:05]RAPDU: 90 00 [16:40:05]wFMCommunicate OK [16:40:05]wFMCommunicate request_size=10 [16:40:05]MH_SAM_APDU [16:40:05]CAPDU: 80 0D 02 02 05 BC 39 64 9E EB [16:40:06]Write to MH i2c: E2 0D 00 A4 58 80 0D 02 02 05 00 BC 39 64 9E EB 00 00 62 [16:40:06]Write i2c OK [16:40:06]MH_I2C_Read... [16:40:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:06]Read from MH i2c: E2 [16:40:06]MH_I2C_Read... [16:40:06]Read from MH i2c: E2 03 00 [16:40:06]MH_I2C_Read... [16:40:06]Read from MH i2c: E2 03 00 A4 58 00 90 00 70 [16:40:06]RAPDU: 90 00 [16:40:06]wFMCommunicate OK [16:40:06]wFMCommunicate request_size=4 [16:40:06]MH_SAM_APDU [16:40:06]CAPDU: 80 0D 03 02 [16:40:06]Write to MH i2c: E2 08 00 A5 58 80 0D 03 02 00 00 00 00 78 [16:40:06]Write i2c OK [16:40:06]MH_I2C_Read... [16:40:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:40:06]Read from MH i2c: E2 [16:40:06]MH_I2C_Read... [16:40:06]Read from MH i2c: E2 0B 00 [16:40:06]MH_I2C_Read... [16:40:06]Read from MH i2c: E2 0B 00 A5 58 00 D7 DE 74 E1 A4 34 7D 87 90 00 5F [16:40:06]RAPDU: D7 DE 74 E1 A4 34 7D 87 90 00 [16:40:06]wFMCommunicate OK [16:40:06]SAM_PROTO_SignData done [16:40:06]FM_MakeSignedData done [16:40:06]CreateOFDProtocolMessage [16:40:06]wFMCommunicate request_size=4 [16:40:06]MH_SAM_APDU [16:40:06]CAPDU: 80 11 00 00 [16:40:06]Write to MH i2c: E2 08 00 A6 58 80 11 00 00 00 00 00 00 78 [16:40:06]Write i2c OK [16:40:06]MH_I2C_Read... [16:40:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:06]Read from MH i2c: E2 [16:40:06]MH_I2C_Read... [16:40:06]Read from MH i2c: E2 17 00 [16:40:06]MH_I2C_Read... [16:40:06]Read from MH i2c: E2 17 00 A6 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CF [16:40:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:40:06]wFMCommunicate OK [16:40:06]CreateOFDProtocolMessage done [16:40:06]OFDSenderStorePacket 228334 [16:40:06]StoreOFDPacket docnum=228334 [16:40:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D5 D6 07 01 04 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 2A 01 00 00 F4 03 04 00 65 D5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EE 7B 03 00 35 04 06 00 FB BC 39 64 9E EB D7 DE 74 E1 A4 34 7D 87 [16:40:06]CheckFolder [16:40:06]dirname=/storage/ofd_packets [16:40:06]CheckFolder done [16:40:06]ProducePacketName [16:40:06]name=ofd_packets/00228334 [16:40:06]NVStorageSaveData ofd_packets/00228334 [16:40:06]File name is /storage/ofd_packets/00228334 [16:40:06]Write 301 bytes [16:40:06]NVStorageSaveData done [16:40:06]OFDSenderStorePacket done [16:40:06]KKMCreateOFDPacket done [16:40:06]NVStorageSaveData kkm_last_timestamp [16:40:06]File name is /storage/kkm_last_timestamp [16:40:06]Write 4 bytes [16:40:06]NVStorageSaveData done [16:40:06]ExternCall_PrintAddStr [16:40:06]wPrintStart [16:40:06]Write to MH i2c: 01 00 00 A7 58 FF [16:40:06]Write i2c OK [16:40:06]MH_I2C_Read... [16:40:06]Read from MH i2c: 01 [16:40:06]MH_I2C_Read... [16:40:06]Read from MH i2c: 01 07 00 [16:40:06]MH_I2C_Read... [16:40:06]Read from MH i2c: 01 07 00 A7 58 00 00 00 00 00 FF 0F 14 [16:40:06]RasterBufferAndPrint [16:40:06]line Счет N : (1)1964832 [16:40:06]line ИНН: 02508201610067 [16:40:06]line Контрольно-Кассовый Чек [16:40:06]line ПРОДАЖА [16:40:06]line ТРК (МРК, ГНК) : 63 [16:40:06]line Товар: 2710124130 [16:40:06]line Аи-92-К-5 [16:40:06]line 5.980 * 66.90 [16:40:06]line = 400.06 [16:40:06]line НДС 12% НСП 1% [16:40:06]line > о реализуемом товаре [16:40:06]line ОКРУГЛЕНИЕ: -0.06 [16:40:06]OFD Sender: Processing packet 228334 [packets to send 38, broken 37] [16:40:06]ProducePacketName [16:40:06]name=ofd_packets/00228334 [16:40:07]OFD Sender: To server: pG, [16:40:07]line ИТОГО: 400.00 [16:40:07]CommunicateWithHost lk.salyk.kg:30040 [16:40:07]line Внесено: 400.00 [16:40:07]ConnectInit lk.salyk.kg [16:40:07]line СДАЧА: 0.00 [16:40:07]line НСП 1% : 3.54 [16:40:07]line НДС 12% : 42.48 [16:40:07]line Наличными: 400.00 [16:40:07]line Безнал.: 0.00 [16:40:07]line Место: АЗС № 133 "Партнер Нефть" [16:40:07]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [16:40:07]line СНО: Общий режим [16:40:07]line Чек 298 22.10.2024 16:40 [16:40:07]line Смена: 535 ФФД: 1.0 [16:40:07]line ЗНМ: 0300000091 [16:40:07]line РНМ: 0000000000091685 [16:40:07]line Версия ККМ: 001 [16:40:07]line ФМ: 0000000000871839 [16:40:07]line ФД: 228334 [16:40:07]line ФПД: 276785835319019 [16:40:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T164005&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228334&fm=276785835319019&tin=02508201610067®Number=0000000000091685&sum=40000 [16:40:07]written 0, free lines is 4095 [16:40:07]Connected sock=11 [16:40:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D5 D6 07 01 04 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 Write to MH i2c: 00 01 EB 03 26 00 EF 00 03 00 0F 00 F6 03 01 D1 00 58 01 29 F7 [16:40:07]03 Write i2c OK [16:40:07]06 MH_I2C_Read... [16:40:07]Read from MH i2c: 00 01 [16:40:07]62 MH_I2C_Read... [16:40:07]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 Read from MH i2c: 00 01 12 07 04 00 04 [16:40:08]00 MH_I2C_Read... [16:40:08]2A 01 00 Read from MH i2c: 00 01 F4 07 03 00 04 D1 00 58 65 00 D5 00 00 00 00 B1 0D EE [16:40:08]RasterBufferAndPrint [16:40:08]line [16:40:08]line [16:40:08]line [16:40:08]line [16:40:08]line [16:40:08]17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D written 0, free lines is 4074 [16:40:08]04 10 00 30 30 MH_Cut [16:40:08]30 Write to MH i2c: 30 D1 30 01 30 30 30 30 30 00 30 D8 39 31 36 38 35 58 11 01 04 02 10 [16:40:08]00 Write i2c OK [16:40:08]30 MH_I2C_Read... [16:40:08]30 Read from MH i2c: 30 D1 30 [16:40:08]30 MH_I2C_Read... [16:40:08]30 Read from MH i2c: 30 30 30 30 38 D1 37 01 31 00 38 [16:40:08]33 MH_I2C_Read... [16:40:08]39 10 Read from MH i2c: 04 D1 04 00 EE 7B 03 00 35 04 06 00 FB BC 39 64 9E EB 01 D7 *** Cut start [16:40:08]DE 00 74 *** Partial cut [16:40:08]*** CUTSNS_PIN = 1 [16:40:08]*** CUTSNS_PIN = 0 [16:40:08]E1 D8 58 00 01 A4 [16:40:08]34 Write to MH i2c: 01 00 00 D9 7D 58 87 31 [16:40:08] [16:40:08]Write i2c OK [16:40:08]MH_I2C_Read... [16:40:08]*** Brake cut motor [16:40:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 E6 0D 47 00 BC 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 38 37 31 38 33 39 10 04 04 00 EE 7B *** Stop cut motor [16:40:09]03 00 F4 *** Cut end [16:40:09]03 04 00 63 80 17 67 B6 04 01 00 00 FD F7 Read from MH i2c: A5 01 A9 85 8A FF [16:40:09]DE MH_I2C_Read... [16:40:09] [16:40:09]CommunicateWithHost err = 0 [16:40:09]CheckOFDResponse [16:40:09]1017 (14) - 77093643461234 [16:40:09]1041 (16) - 0000000000871839 [16:40:09]Read from MH i2c: 1040 (4) - 228334 [16:40:09]01 1012 (4) - 22.10.2024 10:37 [16:40:09]07 1206 (1) - 0 [16:40:09]OFD Sender: Remove packet 228334 [16:40:09]ProducePacketName [16:40:09]name=ofd_packets/00228334 [16:40:09]NVStorageDeleteData [16:40:09]00 [16:40:09]MH_I2C_Read... [16:40:09]Read from MH i2c: 01 07 00 D9 58 00 00 00 00 00 FF 0F 46 [16:40:09]process_action close_receipt done [16:40:09]requested_data is exist [16:40:09]produce_requested_data [16:40:09]requested_item fm.sn is exist - process it [16:40:09]wFMCommunicate request_size=4 [16:40:09]MH_SAM_APDU [16:40:09]CAPDU: 80 11 00 00 [16:40:09]Write to MH i2c: E2 08 00 DA 58 80 11 00 00 00 00 00 00 AC [16:40:09]Write i2c OK [16:40:09]MH_I2C_Read... [16:40:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:09]Read from MH i2c: E2 [16:40:09]MH_I2C_Read... [16:40:09]Read from MH i2c: E2 17 00 [16:40:09]MH_I2C_Read... [16:40:09]Read from MH i2c: E2 17 00 DA 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 03 [16:40:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:40:10]wFMCommunicate OK [16:40:10]requested_item fd.num is exist - process it [16:40:10]SAM_PROTO_GetFieldsCounters [16:40:10]wFMCommunicate request_size=4 [16:40:10]MH_SAM_APDU [16:40:10]CAPDU: 80 13 00 00 [16:40:10]Write to MH i2c: E2 08 00 DB 58 80 13 00 00 00 00 00 00 AF [16:40:10]Write i2c OK [16:40:10]MH_I2C_Read... [16:40:10]OFD Sender: No OFD packet to send [16:40:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:10]Read from MH i2c: E2 [16:40:10]MH_I2C_Read... [16:40:10]Read from MH i2c: E2 62 00 [16:40:10]MH_I2C_Read... [16:40:10]Read from MH i2c: E2 62 00 DB 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EE 7B 03 00 0E 04 04 00 17 02 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 DE [16:40:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EE 7B 03 00 0E 04 04 00 17 02 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 [16:40:10]wFMCommunicate OK [16:40:10]SAM_PROTO_GetFieldsCounters done [16:40:10]requested_item shift.num is exist - process it [16:40:10]requested_item shift.opened is exist - process it [16:40:10]req_shift_opened [16:40:10]FM_GetShiftState [16:40:10]SAM_PROTO_GetShiftState [16:40:10]wFMCommunicate request_size=4 [16:40:10]MH_SAM_APDU [16:40:10]CAPDU: 80 13 01 00 [16:40:10]Write to MH i2c: E2 08 00 DC 58 80 13 01 00 00 00 00 00 B1 [16:40:10]Write i2c OK [16:40:10]MH_I2C_Read... [16:40:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:10]Read from MH i2c: E2 [16:40:10]MH_I2C_Read... [16:40:10]Read from MH i2c: E2 0E 00 [16:40:10]MH_I2C_Read... [16:40:10]Read from MH i2c: E2 0E 00 DC 58 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 78 [16:40:11]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [16:40:11]wFMCommunicate OK [16:40:11]SAM_PROTO_GetShiftState done [16:40:11]FM_GetShiftState done [16:40:11]req_shift_opened done [16:40:11]requested_item shift.open_date is exist - process it [16:40:11]req_shift_open_date [16:40:11]req_shift_open_date done [16:40:11]produce_requested_data done [16:40:11]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228334,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [16:40:11]process_action_free close_receipt [16:40:11]json_value_free [16:40:11]json_value_free done [16:40:11]process_json_proto returns [16:40:11]Send response to host [16:40:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228334,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [16:40:11]free response buf [16:40:11]execute_script done [16:40:11]execute_script returns [16:40:11]free content buf [16:40:11]Sock 7.Close socket [16:40:11]Sock 7.Thread stoped [16:40:15]OFD Sender: No OFD packet to send [16:40:20]OFD Sender: No OFD packet to send [16:40:25]OFD Sender: No OFD packet to send [16:40:30]OFD Sender: No OFD packet to send [16:40:35]OFD Sender: No OFD packet to send [16:40:40]OFD Sender: No OFD packet to send [16:40:45]OFD Sender: No OFD packet to send [16:40:46]accept exits with 10 [16:40:46]New connection [16:40:46]New thread 3066994020 created [16:40:46]Thread 3067137380 joined [16:40:46]Waiting for new connection... [16:40:46] Sock 10.Parse request [16:40:46]Sock 10.Check first char [16:40:46]Sock 10.First char is OK [16:40:46]request: POST /json_proto HTTP/1.0 [16:40:46]Method: POST [16:40:46]URL: /json_proto [16:40:46]Method is POST - this is cgi request [16:40:46]url: /json_proto [16:40:46]query_string will be loaded in cgi processing [16:40:46]execute_cgi json_proto POST (null) [16:40:46]execute_cgi path=json_proto method=POST [16:40:46]POST find Content-Length [16:40:46]Host: 172.17.44.195:8080 [16:40:46]Content-Length: 679 [16:40:46]Content-Type: application/json [16:40:46] [16:40:46]POST finish read [16:40:46]Found Content-Length = 679 [16:40:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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:40:46]execute_script... [16:40: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)1964833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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:40:46]POST & json_proto [16:40:46]process_json_proto [16:40:46]json parsed OK: [16:40:46]protocol is kg_v1.0 [16:40:46]action value=close_receipt [16:40:46]process_action close_receipt [16:40:46]cmd_close_receipt [16:40:46]MH_GetDate [16:40:46]Write to MH i2c: F0 00 00 DD 58 24 [16:40:46]Write i2c OK [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: F0 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: F0 09 00 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: F0 09 00 DD 58 00 93 D5 17 67 82 C9 CF 66 93 [16:40:46]GetLastDocTimeStamp 1729615205 [16:40:46]current date 1729615251 [16:40:46]FM_GetShiftState [16:40:46]SAM_PROTO_GetShiftState [16:40:46]wFMCommunicate request_size=4 [16:40:46]MH_SAM_APDU [16:40:46]CAPDU: 80 13 01 00 [16:40:46]Write to MH i2c: E2 08 00 DE 58 80 13 01 00 00 00 00 00 B3 [16:40:46]Write i2c OK [16:40:46]MH_I2C_Read... [16:40:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:46]Read from MH i2c: E2 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: E2 0E 00 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: E2 0E 00 DE 58 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 7A [16:40:46]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [16:40:46]wFMCommunicate OK [16:40:46]SAM_PROTO_GetShiftState done [16:40:46]FM_GetShiftState done [16:40:46]opened in 1729555538 [16:40:46]opened+sec_in_day 1729641938 [16:40:46]quantity*price = 70044 [16:40:46]sum+1 = 70045 [16:40:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 299 22.10.2024 16:40 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228335 ФПД: 263676166882274 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T164051&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228335&fm=263676166882274&tin=02508201610067®Number=0000000000091685&sum=70000 [16:40:50]StoreToDocumentArchive [16:40:50]shift 535 fd 228335 [16:40:50]save to /storage/0535/doc_00228335 [16:40:50]save last doc name /storage/0535/doc_00228335 to /storage/kkm_last_doc_name [16:40:50]save OK [16:40:50]Clear old archive folders... [16:40:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:40:50]tlvbuf is 00D5F880 [16:40:50]SAM_PROTO_ClearQueue [16:40:50]wFMCommunicate request_size=4 [16:40:50]MH_SAM_APDU [16:40:50]CAPDU: 80 09 00 00 [16:40:50]Write to MH i2c: E2 08 00 EB 58 80 09 00 00 00 00 00 00 B5 [16:40:50]Write i2c OK [16:40:50]MH_I2C_Read... [16:40:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:40:50]Read from MH i2c: E2 [16:40:50]MH_I2C_Read... [16:40:50]Read from MH i2c: E2 03 00 [16:40:50]MH_I2C_Read... [16:40:50]Read from MH i2c: E2 03 00 EB 58 00 90 00 B7 [16:40:50]RAPDU: 90 00 [16:40:50]wFMCommunicate OK [16:40:50]SAM_PROTO_ClearQueue done [16:40:50]KKMCreateOFDPacket [16:40:50]OFDProtocolAddRootSTLVToBuf [16:40:50]FM_MakeSignedData [16:40:50]FM_MakeSignedData [16:40:50]SAM_PROTO_SignData [16:40:50]wFMCommunicate request_size=4 [16:40:50]MH_SAM_APDU [16:40:50]CAPDU: 80 0D 01 02 [16:40:50]Write to MH i2c: E2 08 00 EC 58 80 0D 01 02 00 00 00 00 BD [16:40:50]Write i2c OK [16:40:50]MH_I2C_Read... [16:40:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:40:50]Read from MH i2c: E2 [16:40:50]MH_I2C_Read... [16:40:50]Read from MH i2c: E2 03 00 [16:40:50]MH_I2C_Read... [16:40:50]Read from MH i2c: E2 03 00 EC 58 00 90 00 B8 [16:40:50]RAPDU: 90 00 [16:40:50]wFMCommunicate OK [16:40:50]wFMCommunicate request_size=255 [16:40:50]MH_SAM_APDU [16:40: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 2B 01 00 00 F4 03 04 00 93 D5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EF 7B 03 00 35 04 06 00 EF [16:40:51]Write to MH i2c: E2 02 01 ED 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 2B 01 00 00 F4 03 04 00 93 D5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EF 7B 03 00 35 04 06 00 EF 00 00 EB [16:40:52]Write i2c OK [16:40:52]MH_I2C_Read... [16:40:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:52]Read from MH i2c: E2 [16:40:52]MH_I2C_Read... [16:40:52]Read from MH i2c: E2 03 00 [16:40:52]MH_I2C_Read... [16:40:52]Read from MH i2c: E2 03 00 ED 58 00 90 00 B9 [16:40:52]RAPDU: 90 00 [16:40:52]wFMCommunicate OK [16:40:52]wFMCommunicate request_size=10 [16:40:52]MH_SAM_APDU [16:40:52]CAPDU: 80 0D 02 02 05 CF E4 43 43 E2 [16:40:52]Write to MH i2c: E2 0D 00 EE 58 80 0D 02 02 05 00 CF E4 43 43 E2 00 00 E5 [16:40:52]Write i2c OK [16:40:52]MH_I2C_Read... [16:40:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:52]Read from MH i2c: E2 [16:40:52]MH_I2C_Read... [16:40:52]Read from MH i2c: E2 03 00 [16:40:52]MH_I2C_Read... [16:40:52]Read from MH i2c: E2 03 00 EE 58 00 90 00 BA [16:40:52]RAPDU: 90 00 [16:40:52]wFMCommunicate OK [16:40:52]wFMCommunicate request_size=4 [16:40:52]MH_SAM_APDU [16:40:52]CAPDU: 80 0D 03 02 [16:40:52]Write to MH i2c: E2 08 00 EF 58 80 0D 03 02 00 00 00 00 C2 [16:40:52]Write i2c OK [16:40:52]MH_I2C_Read... [16:40:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:40:53]Read from MH i2c: E2 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: E2 0B 00 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: E2 0B 00 EF 58 00 70 06 9B B0 5F 5E CA 47 90 00 52 [16:40:53]RAPDU: 70 06 9B B0 5F 5E CA 47 90 00 [16:40:53]wFMCommunicate OK [16:40:53]SAM_PROTO_SignData done [16:40:53]FM_MakeSignedData done [16:40:53]CreateOFDProtocolMessage [16:40:53]wFMCommunicate request_size=4 [16:40:53]MH_SAM_APDU [16:40:53]CAPDU: 80 11 00 00 [16:40:53]Write to MH i2c: E2 08 00 F0 58 80 11 00 00 00 00 00 00 C2 [16:40:53]Write i2c OK [16:40:53]MH_I2C_Read... [16:40:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:53]Read from MH i2c: E2 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: E2 17 00 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: E2 17 00 F0 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 19 [16:40:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:40:53]wFMCommunicate OK [16:40:53]CreateOFDProtocolMessage done [16:40:53]OFDSenderStorePacket 228335 [16:40:53]StoreOFDPacket docnum=228335 [16:40:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 FE C1 07 01 29 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 2B 01 00 00 F4 03 04 00 93 D5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EF 7B 03 00 35 04 06 00 EF CF E4 43 43 E2 70 06 9B B0 5F 5E CA 47 [16:40:53]CheckFolder [16:40:53]dirname=/storage/ofd_packets [16:40:53]CheckFolder done [16:40:53]ProducePacketName [16:40:53]name=ofd_packets/00228335 [16:40:53]NVStorageSaveData ofd_packets/00228335 [16:40:53]File name is /storage/ofd_packets/00228335 [16:40:53]Write 301 bytes [16:40:53]NVStorageSaveData done [16:40:53]OFDSenderStorePacket done [16:40:53]KKMCreateOFDPacket done [16:40:53]NVStorageSaveData kkm_last_timestamp [16:40:53]File name is /storage/kkm_last_timestamp [16:40:53]Write 4 bytes [16:40:53]NVStorageSaveData done [16:40:53]ExternCall_PrintAddStr [16:40:53]wPrintStart [16:40:53]Write to MH i2c: 01 00 00 F1 58 49 [16:40:53]Write i2c OK [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: 01 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: 01 07 00 [16:40:53]MH_I2C_Read... [16:40:53]OFD Sender: Processing packet 228335 [packets to send 38, broken 37] [16:40:53]ProducePacketName [16:40:53]name=ofd_packets/00228335 [16:40:53]OFD Sender: To server: pG, [16:40:53]CommunicateWithHost lk.salyk.kg:30040 [16:40:53]ConnectInit lk.salyk.kg [16:40:53]Read from MH i2c: 01 07 00 F1 58 00 00 00 00 00 FF 0F 5E [16:40:53]RasterBufferAndPrint [16:40:53]line Счет N : (1)1964833 [16:40:53]line ИНН: 02508201610067 [16:40:53]line Контрольно-Кассовый Чек [16:40:53]line ПРОДАЖА [16:40:53]line ТРК (МРК, ГНК) : 33 [16:40:53]line Товар: 2710124130 [16:40:53]line Аи-92-К-5 [16:40:53]line 10.470 * 66.90 [16:40:53]line = 700.44 [16:40:53]line НДС 12% НСП 1% [16:40:53]line > о реализуемом товаре [16:40:53]line ОКРУГЛЕНИЕ: -0.44 [16:40:53]line ИТОГО: 700.00 [16:40:53]line Внесено: 700.00 [16:40:53]line СДАЧА: 0.00 [16:40:53]line НСП 1% : 6.20 [16:40:53]line НДС 12% : 74.38 [16:40:53]line Наличными: 700.00 [16:40:53]line Безнал.: 0.00 [16:40:53]line Место: АЗС № 133 "Партнер Нефть" [16:40:53]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [16:40:53]line СНО: Общий режим [16:40:53]line Чек 299 22.10.2024 16:40 [16:40:53]line Смена: 535 ФФД: 1.0 [16:40:53]line ЗНМ: 0300000091 [16:40:53]line РНМ: 0000000000091685 [16:40:53]line Версия ККМ: 001 [16:40:53]line ФМ: 0000000000871839 [16:40:53]line ФД: 228335 [16:40:53]line ФПД: 263676166882274 [16:40:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T164051&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228335&fm=263676166882274&tin=02508201610067®Number=0000000000091685&sum=70000 [16:40:53]Connected sock=11 [16:40:53]written 0, free lines is 4095 [16:40:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 FE C1 07 01 29 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC Write to MH i2c: 03 06 00 70 11 01 01 00 00 00 00 EB 03 00 26 1B 00 59 EF 74 03 [16:40:54]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 0E 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 Write i2c OK [16:40:54]02 MH_I2C_Read... [16:40:54]00 01 Read from MH i2c: 00 01 12 [16:40:54]04 MH_I2C_Read... [16:40:54]04 00 2B 01 00 Read from MH i2c: 00 01 F4 03 04 00 07 93 00 D5 17 67 0E 04 [16:40:54]04 MH_I2C_Read... [16:40:54]00 Read from MH i2c: 17 01 02 07 00 00 00 1B B9 04 01 00 01 59 0D 00 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 00 30 00 30 00 30 30 30 30 38 00 37 17 31 38 33 39 0D 10 9F 04 04 00 EF 7B [16:40:55]03 RasterBufferAndPrint [16:40:55]00 line [16:40:55]35 line [16:40:55]04 line [16:40:55]06 line [16:40:55]00 line [16:40:55]EF CF E4 written 0, free lines is 4095 [16:40:55]43 43 E2 70 06 MH_Cut [16:40:55]Write to MH i2c: D1 01 00 9B 22 B0 59 5F 5E 01 4D [16:40:55]CA 47 [16:40:55]Write i2c OK [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: D1 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: D1 01 00 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: D1 01 00 22 59 00 4C [16:40:55]Write to MH i2c: 01 00 00 23 59 7C [16:40:55]Write i2c OK [16:40:55]MH_I2C_Read... [16:40:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 *** Cut start [16:40:55]37 31 38 33 39 4F 00 00 00 1A E0 47 00 DD DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 *** Partial cut [16:40:55]39 *** CUTSNS_PIN = 1 [16:40:55]33 *** CUTSNS_PIN = 0 [16:40:55]36 34 33 34 *** Brake cut motor [16:40:55]36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EF 7B 03 00 F4 03 04 00 91 80 17 67 B6 04 01 00 00 3E 61 32 FD 28 C1 18 BD [16:40:55]CommunicateWithHost err = 0 [16:40:55]CheckOFDResponse [16:40:56]1017 (14) - 77093643461234 [16:40:56]1041 (16) - 0000000000871839 [16:40:56]1040 (4) - 228335 [16:40:56]1012 (4) - 22.10.2024 10:38 [16:40:56]1206 (1) - 0 [16:40:56]OFD Sender: Remove packet 228335 [16:40:56]ProducePacketName [16:40:56]name=ofd_packets/00228335 [16:40:56]NVStorageDeleteData [16:40:56]Read from MH i2c: *** Stop cut motor [16:40:56]01 *** Cut end [16:40:56] [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: 01 07 00 [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: 01 07 00 23 59 00 00 00 00 00 FF 0F 91 [16:40:56]process_action close_receipt done [16:40:56]requested_data is exist [16:40:56]produce_requested_data [16:40:56]requested_item fm.sn is exist - process it [16:40:56]wFMCommunicate request_size=4 [16:40:56]MH_SAM_APDU [16:40:56]CAPDU: 80 11 00 00 [16:40:56]Write to MH i2c: E2 08 00 24 59 80 11 00 00 00 00 00 00 F7 [16:40:56]Write i2c OK [16:40:56]MH_I2C_Read... [16:40:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:56]Read from MH i2c: E2 [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: E2 17 00 [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: E2 17 00 24 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4E [16:40:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:40:56]wFMCommunicate OK [16:40:56]requested_item fd.num is exist - process it [16:40:56]SAM_PROTO_GetFieldsCounters [16:40:56]wFMCommunicate request_size=4 [16:40:56]MH_SAM_APDU [16:40:56]CAPDU: 80 13 00 00 [16:40:56]Write to MH i2c: E2 08 00 25 59 80 13 00 00 00 00 00 00 FA [16:40:56]OFD Sender: No OFD packet to send [16:40:56]Write i2c OK [16:40:56]MH_I2C_Read... [16:40:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:56]Read from MH i2c: E2 [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: E2 62 00 [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: E2 62 00 25 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EF 7B 03 00 0E 04 04 00 17 02 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 2D [16:40:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EF 7B 03 00 0E 04 04 00 17 02 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 [16:40:57]wFMCommunicate OK [16:40:57]SAM_PROTO_GetFieldsCounters done [16:40:57]requested_item shift.num is exist - process it [16:40:57]requested_item shift.opened is exist - process it [16:40:57]req_shift_opened [16:40:57]FM_GetShiftState [16:40:57]SAM_PROTO_GetShiftState [16:40:57]wFMCommunicate request_size=4 [16:40:57]MH_SAM_APDU [16:40:57]CAPDU: 80 13 01 00 [16:40:57]Write to MH i2c: E2 08 00 26 59 80 13 01 00 00 00 00 00 FC [16:40:57]Write i2c OK [16:40:57]MH_I2C_Read... [16:40:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:57]Read from MH i2c: E2 [16:40:57]MH_I2C_Read... [16:40:57]Read from MH i2c: E2 0E 00 [16:40:57]MH_I2C_Read... [16:40:57]Read from MH i2c: E2 0E 00 26 59 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 C3 [16:40:57]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [16:40:57]wFMCommunicate OK [16:40:57]SAM_PROTO_GetShiftState done [16:40:57]FM_GetShiftState done [16:40:57]req_shift_opened done [16:40:57]requested_item shift.open_date is exist - process it [16:40:57]req_shift_open_date [16:40:57]req_shift_open_date done [16:40:57]produce_requested_data done [16:40:57]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228335,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [16:40:57]process_action_free close_receipt [16:40:57]json_value_free [16:40:57]json_value_free done [16:40:57]process_json_proto returns [16:40:57]Send response to host [16:40:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228335,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [16:40:57]free response buf [16:40:57]execute_script done [16:40:57]execute_script returns [16:40:57]free content buf [16:40:57]Sock 10.Close socket [16:40:57]Sock 10.Thread stoped [16:41:01]OFD Sender: No OFD packet to send [16:41:06]OFD Sender: No OFD packet to send [16:41:11]OFD Sender: No OFD packet to send [16:41:16]OFD Sender: No OFD packet to send [16:41:21]OFD Sender: No OFD packet to send [16:41:26]OFD Sender: No OFD packet to send [16:41:31]OFD Sender: No OFD packet to send [16:41:36]OFD Sender: No OFD packet to send [16:41:41]OFD Sender: No OFD packet to send [16:41:46]OFD Sender: No OFD packet to send [16:41:51]OFD Sender: No OFD packet to send [16:41:56]OFD Sender: No OFD packet to send [16:42:01]OFD Sender: No OFD packet to send [16:42:03]ConnectInit Can't connect to host [16:42:06]OFD Sender: No OFD packet to send [16:42:11]OFD Sender: No OFD packet to send [16:42:16]OFD Sender: No OFD packet to send [16:42:21]OFD Sender: No OFD packet to send [16:42:26]OFD Sender: No OFD packet to send [16:42:31]OFD Sender: No OFD packet to send [16:42:36]OFD Sender: No OFD packet to send [16:42:41]OFD Sender: No OFD packet to send [16:42:46]OFD Sender: No OFD packet to send [16:42:47]accept exits with 7 [16:42:47]New connection [16:42:47]New thread 3067137380 created [16:42:47]Thread 3066994020 joined [16:42:47]Waiting for new connection... [16:42:47] Sock 7.Parse request [16:42:47]Sock 7.Check first char [16:42:47]Sock 7.First char is OK [16:42:47]request: POST /json_proto HTTP/1.0 [16:42:47]Method: POST [16:42:47]URL: /json_proto [16:42:47]Method is POST - this is cgi request [16:42:47]url: /json_proto [16:42:47]query_string will be loaded in cgi processing [16:42:47]execute_cgi json_proto POST (null) [16:42:47]execute_cgi path=json_proto method=POST [16:42:47]POST find Content-Length [16:42:47]Host: 172.17.44.195:8080 [16:42:47]Content-Length: 678 [16:42:47]Content-Type: application/json [16:42:47] [16:42:47]POST finish read [16:42:47]Found Content-Length = 678 [16:42:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964834", "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" : 66.90, "quantity" : 5.190, "sum" : 347.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 347.00, "total" : 347.00, "payments": [ { "type": 0, "sum" : 347.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:47]execute_script... [16:42: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)1964834", "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" : 66.90, "quantity" : 5.190, "sum" : 347.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 347.00, "total" : 347.00, "payments": [ { "type": 0, "sum" : 347.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:47]POST & json_proto [16:42:47]process_json_proto [16:42:47]json parsed OK: [16:42:47]protocol is kg_v1.0 [16:42:47]action value=close_receipt [16:42:47]process_action close_receipt [16:42:47]cmd_close_receipt [16:42:47]MH_GetDate [16:42:47]Write to MH i2c: F0 00 00 27 59 6F [16:42:47]Write i2c OK [16:42:47]MH_I2C_Read... [16:42:47]Read from MH i2c: F0 [16:42:47]MH_I2C_Read... [16:42:47]Read from MH i2c: F0 09 00 [16:42:47]MH_I2C_Read... [16:42:47]Read from MH i2c: F0 09 00 27 59 00 0C D6 17 67 82 C9 CF 66 58 [16:42:47]GetLastDocTimeStamp 1729615251 [16:42:47]current date 1729615372 [16:42:47]FM_GetShiftState [16:42:47]SAM_PROTO_GetShiftState [16:42:47]wFMCommunicate request_size=4 [16:42:47]MH_SAM_APDU [16:42:47]CAPDU: 80 13 01 00 [16:42:47]Write to MH i2c: E2 08 00 28 59 80 13 01 00 00 00 00 00 FE [16:42:47]Write i2c OK [16:42:47]MH_I2C_Read... [16:42:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:47]Read from MH i2c: E2 [16:42:47]MH_I2C_Read... [16:42:47]Read from MH i2c: E2 0E 00 [16:42:47]MH_I2C_Read... [16:42:47]Read from MH i2c: E2 0E 00 28 59 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 C5 [16:42:47]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [16:42:48]wFMCommunicate OK [16:42:48]SAM_PROTO_GetShiftState done [16:42:48]FM_GetShiftState done [16:42:48]opened in 1729555538 [16:42:48]opened+sec_in_day 1729641938 [16:42:48]quantity*price = 34721 [16:42:48]sum+1 = 34722 [16:42:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 347.00 Внесено: 347.00 СДАЧА: 0.00 НСП 1% : 3.07 НДС 12% : 36.87 Наличными: 347.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 300 22.10.2024 16:42 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228336 ФПД: 203729121919575 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T164253&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228336&fm=203729121919575&tin=02508201610067®Number=0000000000091685&sum=34700 [16:42:51]StoreToDocumentArchive [16:42:51]shift 535 fd 228336 [16:42:51]save to /storage/0535/doc_00228336 [16:42:51]save last doc name /storage/0535/doc_00228336 to /storage/kkm_last_doc_name [16:42:51]OFD Sender: No OFD packet to send [16:42:51]save OK [16:42:51]Clear old archive folders... [16:42:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:42:52]tlvbuf is 00D6D560 [16:42:52]SAM_PROTO_ClearQueue [16:42:52]wFMCommunicate request_size=4 [16:42:52]MH_SAM_APDU [16:42:52]CAPDU: 80 09 00 00 [16:42:52]Write to MH i2c: E2 08 00 35 59 80 09 00 00 00 00 00 00 00 [16:42:52]Write i2c OK [16:42:52]MH_I2C_Read... [16:42:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:42:52]Read from MH i2c: E2 [16:42:52]MH_I2C_Read... [16:42:52]Read from MH i2c: E2 03 00 [16:42:52]MH_I2C_Read... [16:42:52]Read from MH i2c: E2 03 00 35 59 00 90 00 02 [16:42:52]RAPDU: 90 00 [16:42:52]wFMCommunicate OK [16:42:52]SAM_PROTO_ClearQueue done [16:42:52]KKMCreateOFDPacket [16:42:52]OFDProtocolAddRootSTLVToBuf [16:42:52]FM_MakeSignedData [16:42:52]FM_MakeSignedData [16:42:52]SAM_PROTO_SignData [16:42:52]wFMCommunicate request_size=4 [16:42:52]MH_SAM_APDU [16:42:52]CAPDU: 80 0D 01 02 [16:42:52]Write to MH i2c: E2 08 00 36 59 80 0D 01 02 00 00 00 00 08 [16:42:52]Write i2c OK [16:42:52]MH_I2C_Read... [16:42:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:42:52]Read from MH i2c: E2 [16:42:52]MH_I2C_Read... [16:42:52]Read from MH i2c: E2 03 00 [16:42:52]MH_I2C_Read... [16:42:52]Read from MH i2c: E2 03 00 36 59 00 90 00 03 [16:42:52]RAPDU: 90 00 [16:42:52]wFMCommunicate OK [16:42:52]wFMCommunicate request_size=255 [16:42:52]MH_SAM_APDU [16:42: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 46 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A1 87 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 87 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 0E 00 00 00 00 07 04 06 00 8C 87 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 0D D6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F0 7B 03 00 35 04 06 00 B9 [16:42:53]Write to MH i2c: E2 02 01 37 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A1 87 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 87 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 0E 00 00 00 00 07 04 06 00 8C 87 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 0D D6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F0 7B 03 00 35 04 06 00 B9 00 00 75 [16:42:53]Write i2c OK [16:42:53]MH_I2C_Read... [16:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:54]Read from MH i2c: E2 [16:42:54]MH_I2C_Read... [16:42:54]Read from MH i2c: E2 03 00 [16:42:54]MH_I2C_Read... [16:42:54]Read from MH i2c: E2 03 00 37 59 00 90 00 04 [16:42:54]RAPDU: 90 00 [16:42:54]wFMCommunicate OK [16:42:54]wFMCommunicate request_size=10 [16:42:54]MH_SAM_APDU [16:42:54]CAPDU: 80 0D 02 02 05 4A 61 F1 42 57 [16:42:54]Write to MH i2c: E2 0D 00 38 59 80 0D 02 02 05 00 4A 61 F1 42 57 00 00 4A [16:42:54]Write i2c OK [16:42:54]MH_I2C_Read... [16:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:54]Read from MH i2c: E2 [16:42:54]MH_I2C_Read... [16:42:54]Read from MH i2c: E2 03 00 [16:42:54]MH_I2C_Read... [16:42:54]Read from MH i2c: E2 03 00 38 59 00 90 00 05 [16:42:54]RAPDU: 90 00 [16:42:54]wFMCommunicate OK [16:42:54]wFMCommunicate request_size=4 [16:42:54]MH_SAM_APDU [16:42:54]CAPDU: 80 0D 03 02 [16:42:54]Write to MH i2c: E2 08 00 39 59 80 0D 03 02 00 00 00 00 0D [16:42:54]Write i2c OK [16:42:54]MH_I2C_Read... [16:42:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:42:54]Read from MH i2c: E2 [16:42:54]MH_I2C_Read... [16:42:54]Read from MH i2c: E2 0B 00 [16:42:54]MH_I2C_Read... [16:42:54]Read from MH i2c: E2 0B 00 39 59 00 AF B3 16 5D AD A5 1A 44 90 00 93 [16:42:54]RAPDU: AF B3 16 5D AD A5 1A 44 90 00 [16:42:54]wFMCommunicate OK [16:42:54]SAM_PROTO_SignData done [16:42:54]FM_MakeSignedData done [16:42:54]CreateOFDProtocolMessage [16:42:54]wFMCommunicate request_size=4 [16:42:54]MH_SAM_APDU [16:42:54]CAPDU: 80 11 00 00 [16:42:54]Write to MH i2c: E2 08 00 3A 59 80 11 00 00 00 00 00 00 0D [16:42:54]Write i2c OK [16:42:54]MH_I2C_Read... [16:42:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:54]Read from MH i2c: E2 [16:42:54]MH_I2C_Read... [16:42:54]Read from MH i2c: E2 17 00 [16:42:54]MH_I2C_Read... [16:42:54]Read from MH i2c: E2 17 00 3A 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 64 [16:42:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:42:55]wFMCommunicate OK [16:42:55]CreateOFDProtocolMessage done [16:42:55]OFDSenderStorePacket 228336 [16:42:55]StoreOFDPacket docnum=228336 [16:42:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 5B 67 07 01 17 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A1 87 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 87 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 0E 00 00 00 00 07 04 06 00 8C 87 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 0D D6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F0 7B 03 00 35 04 06 00 B9 4A 61 F1 42 57 AF B3 16 5D AD A5 1A 44 [16:42:55]CheckFolder [16:42:55]dirname=/storage/ofd_packets [16:42:55]CheckFolder done [16:42:55]ProducePacketName [16:42:55]name=ofd_packets/00228336 [16:42:55]NVStorageSaveData ofd_packets/00228336 [16:42:55]File name is /storage/ofd_packets/00228336 [16:42:55]Write 301 bytes [16:42:55]NVStorageSaveData done [16:42:55]OFDSenderStorePacket done [16:42:55]KKMCreateOFDPacket done [16:42:55]NVStorageSaveData kkm_last_timestamp [16:42:55]File name is /storage/kkm_last_timestamp [16:42:55]Write 4 bytes [16:42:55]NVStorageSaveData done [16:42:55]ExternCall_PrintAddStr [16:42:55]wPrintStart [16:42:55]Write to MH i2c: 01 00 00 3B 59 94 [16:42:55]OFD Sender: Processing packet 228336 [packets to send 38, broken 37] [16:42:55]ProducePacketName [16:42:55]name=ofd_packets/00228336 [16:42:55]OFD Sender: To server: pG, [16:42:55]CommunicateWithHost lk.salyk.kg:30040 [16:42:55]ConnectInit lk.salyk.kg [16:42:55]Write i2c OK [16:42:55]MH_I2C_Read... [16:42:55]Read from MH i2c: 01 [16:42:55]MH_I2C_Read... [16:42:55]Read from MH i2c: 01 07 00 [16:42:55]MH_I2C_Read... [16:42:55]Read from MH i2c: 01 07 00 3B 59 00 00 00 00 00 FF 0F A9 [16:42:55]RasterBufferAndPrint [16:42:55]line Счет N : (1)1964834 [16:42:55]line ИНН: 02508201610067 [16:42:55]line Контрольно-Кассовый Чек [16:42:55]line ПРОДАЖА [16:42:55]line ТРК (МРК, ГНК) : 53 [16:42:55]line Товар: 2710124130 [16:42:55]line Аи-92-К-5 [16:42:55]line 5.190 * 66.90 [16:42:55]line = 347.21 [16:42:55]line НДС 12% НСП 1% [16:42:55]line > о реализуемом товаре [16:42:55]line ОКРУГЛЕНИЕ: -0.21 [16:42:55]line ИТОГО: 347.00 [16:42:55]line Внесено: 347.00 [16:42:55]Connected sock=11 [16:42:55]line СДАЧА: 0.00 [16:42:55]Data to sent: line НСП 1% : 3.07 [16:42:55]87 line НДС 12% : 36.87 [16:42:55]95 F6 line Наличными: 347.00 [16:42:55]70 line Безнал.: 0.00 [16:42:55]47 line Место: АЗС № 133 "Партнер Нефть" [16:42:55]2C line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [16:42:55]01 line СНО: Общий режим [16:42:55]line Чек 300 22.10.2024 16:42 [16:42:55]line Смена: 535 ФФД: 1.0 [16:42:55]line ЗНМ: 0300000091 [16:42:55]00 line РНМ: 0000000000091685 [16:42:55]30 line Версия ККМ: 001 [16:42:55]line ФМ: 0000000000871839 [16:42:55]line ФД: 228336 [16:42:55]line ФПД: 203729121919575 [16:42:55]30 line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T164253&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228336&fm=203729121919575&tin=02508201610067®Number=0000000000091685&sum=34700 [16:42:55]30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 5B 67 07 01 17 C9 5A 03 01 00 03 00 FB 00 1E 04 written 0, free lines is 4095 [16:42:55]01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A1 87 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 87 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 0E 00 00 00 00 07 04 06 00 8C 87 00 00 00 00 39 Write to MH i2c: 04 01 06 00 00 00 00 65 00 00 00 00 00 59 1F BE 04 [16:42:56]02 00 01 00 12 Write i2c OK [16:42:56]04 MH_I2C_Read... [16:42:56]04 Read from MH i2c: 00 01 [16:42:56]2C MH_I2C_Read... [16:42:56]01 Read from MH i2c: 00 01 07 00 [16:42:56]MH_I2C_Read... [16:42:56]00 F4 03 04 00 0D D6 17 67 0E 04 04 00 17 Read from MH i2c: 02 01 00 07 00 00 B9 65 04 01 00 01 0D 59 04 00 10 00 00 00 30 30 30 00 30 00 30 30 30 30 EC 30 0D 30 30 39 31 BE 36 [16:42:56]38 35 11 04 RasterBufferAndPrint [16:42:56]10 line [16:42:56]00 line [16:42:56]30 line [16:42:56]30 line [16:42:56]30 30 30 30 30 30 30 30 38 37 31 line [16:42:56]38 33 39 written 0, free lines is 4070 [16:42:56]10 04 04 00 F0 MH_Cut [16:42:56]7B Write to MH i2c: 03 00 35 04 D1 06 01 00 B9 4A 61 00 F1 6C 42 57 AF B3 59 16 01 5D AD A5 1A 97 44 [16:42:56] [16:42:56]Write i2c OK [16:42:56]MH_I2C_Read... [16:42:56]Read from MH i2c: D1 [16:42:56]MH_I2C_Read... [16:42:56]Read from MH i2c: D1 01 00 [16:42:57]MH_I2C_Read... [16:42:57]Read from MH i2c: D1 01 00 6C 59 00 96 [16:42:57]Write to MH i2c: 01 00 00 6D 59 C6 [16:42:57]Write i2c OK [16:42:57]MH_I2C_Read... [16:42:57]*** Cut start [16:42:57]*** Partial cut [16:42:57]*** CUTSNS_PIN = 1 [16:42:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 AA 59 47 *** CUTSNS_PIN = 0 [16:42:57]00 84 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 *** Brake cut motor [16:42:57]33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F0 7B 03 00 F4 03 04 00 0B 81 17 67 B6 04 01 00 00 7B 46 FD 0A EF 98 D1 E4 [16:42:57]CommunicateWithHost err = 0 [16:42:57]CheckOFDResponse [16:42:57]1017 (14) - 77093643461234 [16:42:57]1041 (16) - 0000000000871839 [16:42:57]1040 (4) - 228336 [16:42:57]1012 (4) - 22.10.2024 10:40 [16:42:57]1206 (1) - 0 [16:42:57]OFD Sender: Remove packet 228336 [16:42:57]ProducePacketName [16:42:57]name=ofd_packets/00228336 [16:42:57]NVStorageDeleteData [16:42:57]Read from MH i2c: 01 [16:42:57]MH_I2C_Read... [16:42:57]*** Stop cut motor [16:42:57]*** Cut end [16:42:57]Read from MH i2c: 01 07 00 [16:42:57]MH_I2C_Read... [16:42:57]Read from MH i2c: 01 07 00 6D 59 00 00 00 00 00 FF 0F DB [16:42:57]process_action close_receipt done [16:42:57]requested_data is exist [16:42:57]produce_requested_data [16:42:57]requested_item fm.sn is exist - process it [16:42:57]wFMCommunicate request_size=4 [16:42:57]MH_SAM_APDU [16:42:57]CAPDU: 80 11 00 00 [16:42:57]Write to MH i2c: E2 08 00 6E 59 80 11 00 00 00 00 00 00 41 [16:42:57]Write i2c OK [16:42:57]MH_I2C_Read... [16:42:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:57]Read from MH i2c: E2 [16:42:57]MH_I2C_Read... [16:42:57]Read from MH i2c: E2 17 00 [16:42:57]MH_I2C_Read... [16:42:57]Read from MH i2c: E2 17 00 6E 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 98 [16:42:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:42:58]wFMCommunicate OK [16:42:58]requested_item fd.num is exist - process it [16:42:58]SAM_PROTO_GetFieldsCounters [16:42:58]wFMCommunicate request_size=4 [16:42:58]MH_SAM_APDU [16:42:58]CAPDU: 80 13 00 00 [16:42:58]Write to MH i2c: E2 08 00 6F 59 80 OFD Sender: No OFD packet to send [16:42:58]13 00 00 00 00 00 00 44 [16:42:58]Write i2c OK [16:42:58]MH_I2C_Read... [16:42:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:42:58]Read from MH i2c: E2 [16:42:58]MH_I2C_Read... [16:42:58]Read from MH i2c: E2 62 00 [16:42:58]MH_I2C_Read... [16:42:58]Read from MH i2c: E2 62 00 6F 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F0 7B 03 00 0E 04 04 00 17 02 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 7B [16:42:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F0 7B 03 00 0E 04 04 00 17 02 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 [16:42:59]wFMCommunicate OK [16:42:59]SAM_PROTO_GetFieldsCounters done [16:42:59]requested_item shift.num is exist - process it [16:42:59]requested_item shift.opened is exist - process it [16:42:59]req_shift_opened [16:42:59]FM_GetShiftState [16:42:59]SAM_PROTO_GetShiftState [16:42:59]wFMCommunicate request_size=4 [16:42:59]MH_SAM_APDU [16:42:59]CAPDU: 80 13 01 00 [16:42:59]Write to MH i2c: E2 08 00 70 59 80 13 01 00 00 00 00 00 46 [16:42:59]Write i2c OK [16:42:59]MH_I2C_Read... [16:42:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:59]Read from MH i2c: E2 [16:42:59]MH_I2C_Read... [16:42:59]Read from MH i2c: E2 0E 00 [16:42:59]MH_I2C_Read... [16:42:59]Read from MH i2c: E2 0E 00 70 59 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 0D [16:42:59]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [16:42:59]wFMCommunicate OK [16:42:59]SAM_PROTO_GetShiftState done [16:42:59]FM_GetShiftState done [16:42:59]req_shift_opened done [16:42:59]requested_item shift.open_date is exist - process it [16:42:59]req_shift_open_date [16:42:59]req_shift_open_date done [16:42:59]produce_requested_data done [16:42:59]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228336,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [16:42:59]process_action_free close_receipt [16:42:59]json_value_free [16:42:59]json_value_free done [16:42:59]process_json_proto returns [16:42:59]Send response to host [16:42:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228336,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [16:42:59]free response buf [16:42:59]execute_script done [16:42:59]execute_script returns [16:42:59]free content buf [16:42:59]Sock 7.Close socket [16:42:59]Sock 7.Thread stoped [16:43:03]OFD Sender: No OFD packet to send [16:43:08]OFD Sender: No OFD packet to send [16:43:13]OFD Sender: No OFD packet to send [16:43:18]OFD Sender: No OFD packet to send [16:43:23]OFD Sender: No OFD packet to send [16:43:28]OFD Sender: No OFD packet to send [16:43:33]OFD Sender: No OFD packet to send [16:43:38]OFD Sender: No OFD packet to send [16:43:43]OFD Sender: No OFD packet to send [16:43:48]OFD Sender: No OFD packet to send [16:43:50]accept exits with 10 [16:43:50]New connection [16:43:50]New thread 3066994020 created [16:43:50]Thread 3067137380 joined [16:43:50]Waiting for new connection... [16:43:50] Sock 10.Parse request [16:43:50]Sock 10.Check first char [16:43:50]Sock 10.First char is OK [16:43:50]request: POST /json_proto HTTP/1.0 [16:43:50]Method: POST [16:43:50]URL: /json_proto [16:43:50]Method is POST - this is cgi request [16:43:50]url: /json_proto [16:43:50]query_string will be loaded in cgi processing [16:43:51]execute_cgi json_proto POST (null) [16:43:51]execute_cgi path=json_proto method=POST [16:43:51]POST find Content-Length [16:43:51]Host: 172.17.44.195:8080 [16:43:51]Content-Length: 683 [16:43:51]Content-Type: application/json [16:43:51] [16:43:51]POST finish read [16:43:51]Found Content-Length = 683 [16:43:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "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" ] } } [16:43:51]execute_script... [16:43: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)1964835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "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" ] } } [16:43:51]POST & json_proto [16:43:51]process_json_proto [16:43:51]json parsed OK: [16:43:51]protocol is kg_v1.0 [16:43:51]action value=close_receipt [16:43:51]process_action close_receipt [16:43:51]cmd_close_receipt [16:43:51]MH_GetDate [16:43:51]Write to MH i2c: F0 00 00 71 59 B9 [16:43:51]Write i2c OK [16:43:51]MH_I2C_Read... [16:43:51]Read from MH i2c: F0 [16:43:51]MH_I2C_Read... [16:43:51]Read from MH i2c: F0 09 00 [16:43:51]MH_I2C_Read... [16:43:51]Read from MH i2c: F0 09 00 71 59 00 4C D6 17 67 82 C9 CF 66 E2 [16:43:51]GetLastDocTimeStamp 1729615373 [16:43:51]current date 1729615436 [16:43:51]FM_GetShiftState [16:43:51]SAM_PROTO_GetShiftState [16:43:51]wFMCommunicate request_size=4 [16:43:51]MH_SAM_APDU [16:43:51]CAPDU: 80 13 01 00 [16:43:51]Write to MH i2c: E2 08 00 72 59 80 13 01 00 00 00 00 00 48 [16:43:51]Write i2c OK [16:43:51]MH_I2C_Read... [16:43:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:51]Read from MH i2c: E2 [16:43:51]MH_I2C_Read... [16:43:51]Read from MH i2c: E2 0E 00 [16:43:51]MH_I2C_Read... [16:43:51]Read from MH i2c: E2 0E 00 72 59 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 0F [16:43:51]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [16:43:51]wFMCommunicate OK [16:43:51]SAM_PROTO_GetShiftState done [16:43:51]FM_GetShiftState done [16:43:51]opened in 1729555538 [16:43:51]opened+sec_in_day 1729641938 [16:43:51]quantity*price = 100015 [16:43:51]sum+1 = 100017 [16:43:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 301 22.10.2024 16:43 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228337 ФПД: 263907338691289 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T164356&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228337&fm=263907338691289&tin=02508201610067®Number=0000000000091685&sum=100000 [16:43:55]StoreToDocumentArchive [16:43:55]shift 535 fd 228337 [16:43:55]save to /storage/0535/doc_00228337 [16:43:55]save last doc name /storage/0535/doc_00228337 to /storage/kkm_last_doc_name [16:43:55]save OK [16:43:55]Clear old archive folders... [16:43:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:43:55]tlvbuf is 00DC5D90 [16:43:55]SAM_PROTO_ClearQueue [16:43:55]wFMCommunicate request_size=4 [16:43:55]MH_SAM_APDU [16:43:55]CAPDU: 80 09 00 00 [16:43:55]Write to MH i2c: E2 08 00 7F 59 80 09 00 00 00 00 00 00 4A [16:43:55]Write i2c OK [16:43:55]MH_I2C_Read... [16:43:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:43:55]Read from MH i2c: E2 [16:43:55]MH_I2C_Read... [16:43:55]Read from MH i2c: E2 03 00 [16:43:55]MH_I2C_Read... [16:43:55]Read from MH i2c: E2 03 00 7F 59 00 90 00 4C [16:43:55]RAPDU: 90 00 [16:43:55]wFMCommunicate OK [16:43:55]SAM_PROTO_ClearQueue done [16:43:55]KKMCreateOFDPacket [16:43:55]OFDProtocolAddRootSTLVToBuf [16:43:55]FM_MakeSignedData [16:43:55]FM_MakeSignedData [16:43:55]SAM_PROTO_SignData [16:43:55]wFMCommunicate request_size=4 [16:43:55]MH_SAM_APDU [16:43:55]CAPDU: 80 0D 01 02 [16:43:55]Write to MH i2c: E2 08 00 80 59 80 0D 01 02 00 00 00 00 52 [16:43:55]Write i2c OK [16:43:55]MH_I2C_Read... [16:43:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:43:55]Read from MH i2c: E2 [16:43:55]MH_I2C_Read... [16:43:55]Read from MH i2c: E2 03 00 [16:43:55]MH_I2C_Read... [16:43:55]Read from MH i2c: E2 03 00 80 59 00 90 00 4D [16:43:55]RAPDU: 90 00 [16:43:55]wFMCommunicate OK [16:43:55]wFMCommunicate request_size=255 [16:43:55]MH_SAM_APDU [16:43:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 2D 01 00 00 F4 03 04 00 4C D6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F1 7B 03 00 35 04 06 00 F0 [16:43:56]Write to MH i2c: E2 02 01 81 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 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 2D 01 00 00 F4 03 04 00 4C D6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F1 7B 03 00 35 04 06 00 F0 00 00 29 [16:43:57]Write i2c OK [16:43:57]MH_I2C_Read... [16:43:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:57]Read from MH i2c: E2 [16:43:57]MH_I2C_Read... [16:43:57]Read from MH i2c: E2 03 00 [16:43:57]MH_I2C_Read... [16:43:57]Read from MH i2c: E2 03 00 81 59 00 90 00 4E [16:43:57]RAPDU: 90 00 [16:43:57]wFMCommunicate OK [16:43:57]wFMCommunicate request_size=10 [16:43:57]MH_SAM_APDU [16:43:57]CAPDU: 80 0D 02 02 05 05 B7 2D 22 D9 [16:43:57]Write to MH i2c: E2 0D 00 82 59 80 0D 02 02 05 00 05 B7 2D 22 D9 00 00 43 [16:43:57]Write i2c OK [16:43:57]MH_I2C_Read... [16:43:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:58]Read from MH i2c: E2 [16:43:58]MH_I2C_Read... [16:43:58]Read from MH i2c: E2 03 00 [16:43:58]MH_I2C_Read... [16:43:58]Read from MH i2c: E2 03 00 82 59 00 90 00 4F [16:43:58]RAPDU: 90 00 [16:43:58]wFMCommunicate OK [16:43:58]wFMCommunicate request_size=4 [16:43:58]MH_SAM_APDU [16:43:58]CAPDU: 80 0D 03 02 [16:43:58]Write to MH i2c: E2 08 00 83 59 80 0D 03 02 00 00 00 00 57 [16:43:58]Write i2c OK [16:43:58]MH_I2C_Read... [16:43:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:43:58]Read from MH i2c: E2 [16:43:58]MH_I2C_Read... [16:43:58]Read from MH i2c: E2 0B 00 [16:43:58]MH_I2C_Read... [16:43:58]Read from MH i2c: E2 0B 00 83 59 00 09 53 81 44 69 94 F5 E4 90 00 4F [16:43:58]RAPDU: 09 53 81 44 69 94 F5 E4 90 00 [16:43:58]wFMCommunicate OK [16:43:58]SAM_PROTO_SignData done [16:43:58]FM_MakeSignedData done [16:43:58]CreateOFDProtocolMessage [16:43:58]wFMCommunicate request_size=4 [16:43:58]MH_SAM_APDU [16:43:58]CAPDU: 80 11 00 00 [16:43:58]Write to MH i2c: E2 08 00 84 59 80 11 00 00 00 00 00 00 57 [16:43:58]OFD Sender: No OFD packet to send [16:43:58]Write i2c OK [16:43:58]MH_I2C_Read... [16:43:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:58]Read from MH i2c: E2 [16:43:58]MH_I2C_Read... [16:43:58]Read from MH i2c: E2 17 00 [16:43:58]MH_I2C_Read... [16:43:58]Read from MH i2c: E2 17 00 84 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AE [16:43:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:43:58]wFMCommunicate OK [16:43:58]CreateOFDProtocolMessage done [16:43:58]OFDSenderStorePacket 228337 [16:43:58]StoreOFDPacket docnum=228337 [16:43:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 7F 37 07 01 E0 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 2D 01 00 00 F4 03 04 00 4C D6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F1 7B 03 00 35 04 06 00 F0 05 B7 2D 22 D9 09 53 81 44 69 94 F5 E4 [16:43:58]CheckFolder [16:43:58]dirname=/storage/ofd_packets [16:43:58]CheckFolder done [16:43:58]ProducePacketName [16:43:58]name=ofd_packets/00228337 [16:43:58]NVStorageSaveData ofd_packets/00228337 [16:43:58]File name is /storage/ofd_packets/00228337 [16:43:58]Write 301 bytes [16:43:58]NVStorageSaveData done [16:43:58]OFDSenderStorePacket done [16:43:58]KKMCreateOFDPacket done [16:43:58]NVStorageSaveData kkm_last_timestamp [16:43:58]File name is /storage/kkm_last_timestamp [16:43:58]Write 4 bytes [16:43:58]NVStorageSaveData done [16:43:58]ExternCall_PrintAddStr [16:43:58]wPrintStart [16:43:58]Write to MH i2c: OFD Sender: Processing packet 228337 [packets to send 38, broken 37] [16:43:58]01 ProducePacketName [16:43:58]00 name=ofd_packets/00228337 [16:43:58]00 OFD Sender: To server: pG, [16:43:58]85 59 DE [16:43:58]CommunicateWithHost lk.salyk.kg:30040 [16:43:58]Write i2c OK [16:43:58]ConnectInit lk.salyk.kg [16:43:58]MH_I2C_Read... [16:43:58]Read from MH i2c: 01 [16:43:58]MH_I2C_Read... [16:43:58]Read from MH i2c: 01 07 00 [16:43:58]MH_I2C_Read... [16:43:58]Read from MH i2c: 01 07 00 85 59 00 00 00 00 00 FF 0F F3 [16:43:58]RasterBufferAndPrint [16:43:58]line Счет N : (1)1964835 [16:43:58]Connected sock=11 [16:43:58]line ИНН: 02508201610067 [16:43:58]Data to sent: line Контрольно-Кассовый Чек [16:43:58]line ПРОДАЖА [16:43:58]line ТРК (МРК, ГНК) : 43 [16:43:58]line Товар: 2710124130 [16:43:58]87 line Аи-92-К-5 [16:43:58]95 line 14.950 * 66.90 [16:43:58]F6 line = 1000.16 [16:43:58]line НДС 12% НСП 1% [16:43:58]line > о реализуемом товаре [16:43:58]line ОКРУГЛЕНИЕ: -0.16 [16:43:58]line ИТОГО: 1000.00 [16:43:58]70 line Внесено: 1000.00 [16:43:59]47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 7F 37 07 01 E0 B6 line СДАЧА: 0.00 [16:43:59]5A line НСП 1% : 8.85 [16:43:59]03 line НДС 12% : 106.21 [16:43:59]01 line Наличными: 1000.00 [16:43:59]00 line Безнал.: 0.00 [16:43:59]03 00 FB 00 line Место: АЗС № 133 "Партнер Нефть" [16:43:59]1E line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [16:43:59]04 line СНО: Общий режим [16:43:59]01 line Чек 301 22.10.2024 16:43 [16:43:59]00 line Смена: 535 ФФД: 1.0 [16:43:59]01 23 04 4D line ЗНМ: 0300000091 [16:43:59]00 line РНМ: 0000000000091685 [16:43:59]8A line Версия ККМ: 001 [16:43:59]04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 line ФМ: 0000000000871839 [16:43:59]2D line ФД: 228337 [16:43:59]line ФПД: 263907338691289 [16:43:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T164356&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228337&fm=263907338691289&tin=02508201610067®Number=0000000000091685&sum=100000 [16:43:59]39 written 0, free lines is 4095 [16:43:59]32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 2D 01 00 00 F4 03 04 00 4C D6 17 67 0E 04 04 Write to MH i2c: 00 01 17 00 02 00 00 00 B9 04 01 AF 00 59 01 08 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 [16:44:00]04 00 Write i2c OK [16:44:00]F1 MH_I2C_Read... [16:44:00]7B 03 00 35 Read from MH i2c: 04 01 06 00 F0 05 B7 [16:44:00]2D MH_I2C_Read... [16:44:00]22 D9 09 Read from MH i2c: 53 01 81 44 69 94 07 F5 00 E4 [16:44:00]MH_I2C_Read... [16:44:00] [16:44:00]Read from MH i2c: 01 07 00 AF 59 00 00 00 00 00 3E 0E 5B [16:44:00]RasterBufferAndPrint [16:44:00]line [16:44:00]line [16:44:00]line [16:44:00]line [16:44:00]line [16:44:00]written 0, free lines is 3879 [16:44:00]MH_Cut [16:44:00]Write to MH i2c: D1 01 00 B6 59 01 E1 [16:44:00]Write i2c OK [16:44:00]MH_I2C_Read... [16:44:00]Read from MH i2c: D1 [16:44:00]MH_I2C_Read... [16:44:00]Read from MH i2c: D1 01 00 [16:44:00]MH_I2C_Read... [16:44:00]Received data: 87 95 F6 70 47 2C 01 Read from MH i2c: 00 D1 01 00 B6 30 59 30 00 E0 [16:44:00]Write to MH i2c: 30 01 30 00 00 B7 59 10 [16:44:00]30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 7E 8D 47 *** Cut start [16:44:00]00 5C *** Partial cut [16:44:00]55 A5 07 *** CUTSNS_PIN = 1 [16:44:00]Write i2c OK [16:44:00]*** CUTSNS_PIN = 0 [16:44:00]MH_I2C_Read... [16:44:00]01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F1 7B 03 *** Brake cut motor [16:44:01]00 F4 03 04 00 4B 81 17 67 B6 04 01 00 00 D0 DA B1 A8 50 8E B8 DA [16:44:01]CommunicateWithHost err = 0 [16:44:01]CheckOFDResponse [16:44:01]1017 (14) - 77093643461234 [16:44:01]1041 (16) - 0000000000871839 [16:44:01]1040 (4) - 228337 [16:44:01]1012 (4) - 22.10.2024 10:41 [16:44:01]1206 (1) - 0 [16:44:01]OFD Sender: Remove packet 228337 [16:44:01]ProducePacketName [16:44:01]name=ofd_packets/00228337 [16:44:01]NVStorageDeleteData [16:44:01]Read from MH i2c: *** Stop cut motor [16:44:01]01 *** Cut end [16:44:01] [16:44:01]MH_I2C_Read... [16:44:01]Read from MH i2c: 01 07 00 [16:44:01]MH_I2C_Read... [16:44:01]Read from MH i2c: 01 07 00 B7 59 00 00 00 00 00 FF 0F 25 [16:44:01]process_action close_receipt done [16:44:01]requested_data is exist [16:44:01]produce_requested_data [16:44:01]requested_item fm.sn is exist - process it [16:44:01]wFMCommunicate request_size=4 [16:44:01]MH_SAM_APDU [16:44:01]CAPDU: 80 11 00 00 [16:44:01]Write to MH i2c: E2 08 00 B8 59 80 11 00 00 00 00 00 00 8B [16:44:01]Write i2c OK [16:44:01]MH_I2C_Read... [16:44:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:01]Read from MH i2c: E2 [16:44:01]MH_I2C_Read... [16:44:01]Read from MH i2c: E2 17 00 [16:44:01]MH_I2C_Read... [16:44:01]Read from MH i2c: E2 17 00 B8 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E2 [16:44:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:44:01]wFMCommunicate OK [16:44:01]requested_item fd.num is exist - process it [16:44:01]SAM_PROTO_GetFieldsCounters [16:44:01]wFMCommunicate request_size=4 [16:44:01]OFD Sender: No OFD packet to send [16:44:01]MH_SAM_APDU [16:44:01]CAPDU: 80 13 00 00 [16:44:02]Write to MH i2c: E2 08 00 B9 59 80 13 00 00 00 00 00 00 8E [16:44:02]Write i2c OK [16:44:02]MH_I2C_Read... [16:44:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:02]Read from MH i2c: E2 [16:44:02]MH_I2C_Read... [16:44:02]Read from MH i2c: E2 62 00 [16:44:02]MH_I2C_Read... [16:44:02]Read from MH i2c: E2 62 00 B9 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F1 7B 03 00 0E 04 04 00 17 02 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 C9 [16:44:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F1 7B 03 00 0E 04 04 00 17 02 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 [16:44:02]wFMCommunicate OK [16:44:02]SAM_PROTO_GetFieldsCounters done [16:44:02]requested_item shift.num is exist - process it [16:44:02]requested_item shift.opened is exist - process it [16:44:02]req_shift_opened [16:44:02]FM_GetShiftState [16:44:02]SAM_PROTO_GetShiftState [16:44:02]wFMCommunicate request_size=4 [16:44:02]MH_SAM_APDU [16:44:02]CAPDU: 80 13 01 00 [16:44:02]Write to MH i2c: E2 08 00 BA 59 80 13 01 00 00 00 00 00 90 [16:44:02]Write i2c OK [16:44:02]MH_I2C_Read... [16:44:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:02]Read from MH i2c: E2 [16:44:03]MH_I2C_Read... [16:44:03]Read from MH i2c: E2 0E 00 [16:44:03]MH_I2C_Read... [16:44:03]Read from MH i2c: E2 0E 00 BA 59 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 57 [16:44:03]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [16:44:03]wFMCommunicate OK [16:44:03]SAM_PROTO_GetShiftState done [16:44:03]FM_GetShiftState done [16:44:03]req_shift_opened done [16:44:03]requested_item shift.open_date is exist - process it [16:44:03]req_shift_open_date [16:44:03]req_shift_open_date done [16:44:03]produce_requested_data done [16:44:03]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228337,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [16:44:03]process_action_free close_receipt [16:44:03]json_value_free [16:44:03]json_value_free done [16:44:03]process_json_proto returns [16:44:03]Send response to host [16:44:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228337,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [16:44:03]free response buf [16:44:03]execute_script done [16:44:03]execute_script returns [16:44:03]free content buf [16:44:03]Sock 10.Close socket [16:44:03]Sock 10.Thread stoped [16:44:06]OFD Sender: No OFD packet to send [16:44:12]OFD Sender: No OFD packet to send [16:44:17]OFD Sender: No OFD packet to send [16:44:21]ConnectInit Can't connect to host [16:44:22]OFD Sender: No OFD packet to send [16:44:27]OFD Sender: No OFD packet to send [16:44:32]OFD Sender: No OFD packet to send [16:44:35]accept exits with 7 [16:44:35]New connection [16:44:35]New thread 3067137380 created [16:44:35]Thread 3066994020 joined [16:44:35]Waiting for new connection... [16:44:35] Sock 7.Parse request [16:44:35]Sock 7.Check first char [16:44:35]Sock 7.First char is OK [16:44:35]request: POST /json_proto HTTP/1.0 [16:44:35]Method: POST [16:44:35]URL: /json_proto [16:44:35]Method is POST - this is cgi request [16:44:35]url: /json_proto [16:44:35]query_string will be loaded in cgi processing [16:44:35]execute_cgi json_proto POST (null) [16:44:35]execute_cgi path=json_proto method=POST [16:44:35]POST find Content-Length [16:44:35]Host: 172.17.44.195:8080 [16:44:35]Content-Length: 683 [16:44:35]Content-Type: application/json [16:44:35] [16:44:35]POST finish read [16:44:35]Found Content-Length = 683 [16:44:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "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" ] } } [16:44:35]execute_script... [16:44:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "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" ] } } [16:44:35]POST & json_proto [16:44:35]process_json_proto [16:44:35]json parsed OK: [16:44:35]protocol is kg_v1.0 [16:44:35]action value=close_receipt [16:44:35]process_action close_receipt [16:44:35]cmd_close_receipt [16:44:35]MH_GetDate [16:44:35]Write to MH i2c: F0 00 00 BB 59 03 [16:44:36]Write i2c OK [16:44:36]MH_I2C_Read... [16:44:36]Read from MH i2c: F0 [16:44:36]MH_I2C_Read... [16:44:36]Read from MH i2c: F0 09 00 [16:44:36]MH_I2C_Read... [16:44:36]Read from MH i2c: F0 09 00 BB 59 00 78 D6 17 67 82 C9 CF 66 58 [16:44:36]GetLastDocTimeStamp 1729615436 [16:44:36]current date 1729615480 [16:44:36]FM_GetShiftState [16:44:36]SAM_PROTO_GetShiftState [16:44:36]wFMCommunicate request_size=4 [16:44:36]MH_SAM_APDU [16:44:36]CAPDU: 80 13 01 00 [16:44:36]Write to MH i2c: E2 08 00 BC 59 80 13 01 00 00 00 00 00 92 [16:44:36]Write i2c OK [16:44:36]MH_I2C_Read... [16:44:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:36]Read from MH i2c: E2 [16:44:36]MH_I2C_Read... [16:44:36]Read from MH i2c: E2 0E 00 [16:44:36]MH_I2C_Read... [16:44:36]Read from MH i2c: E2 0E 00 BC 59 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 59 [16:44:36]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [16:44:36]wFMCommunicate OK [16:44:36]SAM_PROTO_GetShiftState done [16:44:36]FM_GetShiftState done [16:44:36]opened in 1729555538 [16:44:36]opened+sec_in_day 1729641938 [16:44:36]quantity*price = 250054 [16:44:36]sum+1 = 250055 [16:44:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 302 22.10.2024 16:44 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228338 ФПД: 93144932159216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T164441&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228338&fm=93144932159216&tin=02508201610067®Number=0000000000091685&sum=250000 [16:44:40]StoreToDocumentArchive [16:44:40]shift 535 fd 228338 [16:44:40]save to /storage/0535/doc_00228338 [16:44:40]save last doc name /storage/0535/doc_00228338 to /storage/kkm_last_doc_name [16:44:40]save OK [16:44:40]Clear old archive folders... [16:44:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:44:40]tlvbuf is 00DDA740 [16:44:40]SAM_PROTO_ClearQueue [16:44:40]wFMCommunicate request_size=4 [16:44:40]MH_SAM_APDU [16:44:40]CAPDU: 80 09 00 00 [16:44:40]Write to MH i2c: E2 08 00 C9 59 80 09 00 00 00 00 00 00 94 [16:44:40]Write i2c OK [16:44:40]MH_I2C_Read... [16:44:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:44:40]Read from MH i2c: E2 [16:44:40]MH_I2C_Read... [16:44:40]Read from MH i2c: E2 03 00 [16:44:40]MH_I2C_Read... [16:44:40]Read from MH i2c: E2 03 00 C9 59 00 90 00 96 [16:44:40]RAPDU: 90 00 [16:44:40]wFMCommunicate OK [16:44:40]SAM_PROTO_ClearQueue done [16:44:40]KKMCreateOFDPacket [16:44:40]OFDProtocolAddRootSTLVToBuf [16:44:40]FM_MakeSignedData [16:44:40]FM_MakeSignedData [16:44:40]SAM_PROTO_SignData [16:44:40]wFMCommunicate request_size=4 [16:44:40]MH_SAM_APDU [16:44:40]CAPDU: 80 0D 01 02 [16:44:40]Write to MH i2c: E2 08 00 CA 59 80 0D 01 02 00 00 00 00 9C [16:44:40]Write i2c OK [16:44:40]MH_I2C_Read... [16:44:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:44:40]Read from MH i2c: E2 [16:44:40]MH_I2C_Read... [16:44:40]Read from MH i2c: E2 03 00 [16:44:40]MH_I2C_Read... [16:44:40]Read from MH i2c: E2 03 00 CA 59 00 90 00 97 [16:44:40]RAPDU: 90 00 [16:44:40]wFMCommunicate OK [16:44:40]wFMCommunicate request_size=255 [16:44:40]MH_SAM_APDU [16: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 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 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 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 BA 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 2E 01 00 00 F4 03 04 00 79 D6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F2 7B 03 00 35 04 06 00 54 [16:44:41]Write to MH i2c: E2 02 01 CB 59 80 0D 02 02 FA 00 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 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 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 BA 67 00 00 00 00 07 OFD Sender: No OFD packet to send [16:44:42]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 2E 01 00 00 F4 03 04 00 79 D6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F2 7B 03 00 35 04 06 00 54 00 00 F7 [16:44:42]Write i2c OK [16:44:42]MH_I2C_Read... [16:44:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:43]Read from MH i2c: E2 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: E2 03 00 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: E2 03 00 CB 59 00 90 00 98 [16:44:43]RAPDU: 90 00 [16:44:43]wFMCommunicate OK [16:44:43]wFMCommunicate request_size=10 [16:44:43]MH_SAM_APDU [16:44:43]CAPDU: 80 0D 02 02 05 B6 FE 98 0E F0 [16:44:43]Write to MH i2c: E2 0D 00 CC 59 80 0D 02 02 05 00 B6 FE 98 0E F0 00 00 F3 [16:44:43]Write i2c OK [16:44:43]MH_I2C_Read... [16:44:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:43]Read from MH i2c: E2 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: E2 03 00 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: E2 03 00 CC 59 00 90 00 99 [16:44:43]RAPDU: 90 00 [16:44:43]wFMCommunicate OK [16:44:43]wFMCommunicate request_size=4 [16:44:43]MH_SAM_APDU [16:44:43]CAPDU: 80 0D 03 02 [16:44:43]Write to MH i2c: E2 08 00 CD 59 80 0D 03 02 00 00 00 00 A1 [16:44:43]Write i2c OK [16:44:43]MH_I2C_Read... [16:44:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:44:43]Read from MH i2c: E2 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: E2 0B 00 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: E2 0B 00 CD 59 00 8C 11 B6 C7 B1 75 CC 92 90 00 40 [16:44:43]RAPDU: 8C 11 B6 C7 B1 75 CC 92 90 00 [16:44:43]wFMCommunicate OK [16:44:43]SAM_PROTO_SignData done [16:44:43]FM_MakeSignedData done [16:44:43]CreateOFDProtocolMessage [16:44:43]wFMCommunicate request_size=4 [16:44:43]MH_SAM_APDU [16:44:43]CAPDU: 80 11 00 00 [16:44:43]Write to MH i2c: E2 08 00 CE 59 80 11 00 00 00 00 00 00 A1 [16:44:43]Write i2c OK [16:44:43]MH_I2C_Read... [16:44:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:43]Read from MH i2c: E2 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: E2 17 00 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: E2 17 00 CE 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F8 [16:44:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:44:43]wFMCommunicate OK [16:44:43]CreateOFDProtocolMessage done [16:44:43]OFDSenderStorePacket 228338 [16:44:43]StoreOFDPacket docnum=228338 [16:44:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 7E AC 07 01 BA 24 5A 03 01 00 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 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 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 BA 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 2E 01 00 00 F4 03 04 00 79 D6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F2 7B 03 00 35 04 06 00 54 B6 FE 98 0E F0 8C 11 B6 C7 B1 75 CC 92 [16:44:43]CheckFolder [16:44:43]dirname=/storage/ofd_packets [16:44:43]CheckFolder done [16:44:43]ProducePacketName [16:44:43]name=ofd_packets/00228338 [16:44:43]NVStorageSaveData ofd_packets/00228338 [16:44:43]File name is /storage/ofd_packets/00228338 [16:44:43]Write 301 bytes [16:44:43]NVStorageSaveData done [16:44:43]OFDSenderStorePacket done [16:44:43]KKMCreateOFDPacket done [16:44:43]NVStorageSaveData kkm_last_timestamp [16:44:43]File name is /storage/kkm_last_timestamp [16:44:44]Write 4 bytes [16:44:44]NVStorageSaveData done [16:44:44]ExternCall_PrintAddStr [16:44:44]wPrintStart [16:44:44]Write to MH i2c: 01 00 00 CF 59 28 [16:44:44]OFD Sender: Processing packet 228338 [packets to send 38, broken 37] [16:44:44]ProducePacketName [16:44:44]name=ofd_packets/00228338 [16:44:44]OFD Sender: To server: pG, [16:44:44]CommunicateWithHost lk.salyk.kg:30040 [16:44:44]ConnectInit lk.salyk.kg [16:44:44]Write i2c OK [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: 01 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: 01 07 00 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: 01 07 00 CF 59 00 00 00 00 00 FF 0F 3D [16:44:44]RasterBufferAndPrint [16:44:44]line Счет N : (1)1964836 [16:44:44]line ИНН: 02508201610067 [16:44:44]line Контрольно-Кассовый Чек [16:44:44]line ПРОДАЖА [16:44:44]line ТРК (МРК, ГНК) : 34 [16:44:44]line Товар: 2710124500 [16:44:44]line Аи-95-К-5 [16:44:44]line 33.700 * 74.20 [16:44:44]line = 2500.54 [16:44:44]line НДС 12% НСП 1% [16:44:44]line > о реализуемом товаре [16:44:44]line ОКРУГЛЕНИЕ: -0.54 [16:44:44]line ИТОГО: 2500.00 [16:44:44]line Внесено: 2500.00 [16:44:44]line СДАЧА: 0.00 [16:44:44]line НСП 1% : 22.13 [16:44:44]line НДС 12% : 265.54 [16:44:44]line Наличными: 2500.00 [16:44:44]line Безнал.: 0.00 [16:44:44]line Место: АЗС № 133 "Партнер Нефть" [16:44:44]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [16:44:44]line СНО: Общий режим [16:44:44]line Чек 302 22.10.2024 16:44 [16:44:44]line Смена: 535 ФФД: 1.0 [16:44:44]line ЗНМ: 0300000091 [16:44:44]line РНМ: 0000000000091685 [16:44:44]Connected sock=11 [16:44:44]line Версия ККМ: 001 [16:44:44]Data to sent: line ФМ: 0000000000871839 [16:44:44]87 line ФД: 228338 [16:44:44]line ФПД: 93144932159216 [16:44:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T164441&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228338&fm=93144932159216&tin=02508201610067®Number=0000000000091685&sum=250000 [16:44:44]95 F6 written 0, free lines is 4095 [16:44:44]70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 7E AC 07 01 BA 24 5A 03 01 00 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 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 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 Write to MH i2c: 00 01 01 F7 03 06 00 00 00 A5 F9 08 00 00 00 59 00 52 EE 03 0F 00 [16:44:44]F2 03 01 Write i2c OK [16:44:44]00 01 MH_I2C_Read... [16:44:44]F3 03 06 00 BA Read from MH i2c: 67 01 00 [16:44:44]00 00 00 MH_I2C_Read... [16:44:45]07 Read from MH i2c: 04 06 01 00 90 D0 03 07 00 00 00 [16:44:45]00 MH_I2C_Read... [16:44:45]39 04 Read from MH i2c: 06 01 00 07 00 00 F9 59 00 00 00 00 00 2D 0D 93 [16:44:45]RasterBufferAndPrint [16:44:45]line [16:44:45]line [16:44:45]line [16:44:45]line [16:44:45]line [16:44:45]00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 written 0, free lines is 3734 [16:44:45]03 04 00 79 D6 17 MH_Cut [16:44:45]67 Write to MH i2c: 0E D1 04 04 00 17 01 02 00 00 00 B9 04 00 01 5A 01 2C [16:44:45]00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 Write i2c OK [16:44:45]30 MH_I2C_Read... [16:44:45]30 Read from MH i2c: 30 D1 30 [16:44:45]30 30 30 30 MH_I2C_Read... [16:44:45]38 *** Cut start [16:44:45]37 *** Partial cut [16:44:45]31 38 33 39 10 Read from MH i2c: 04 D1 04 00 F2 01 *** CUTSNS_PIN = 1 [16:44:45]00 *** CUTSNS_PIN = 0 [16:44:45] [16:44:45]7B MH_I2C_Read... [16:44:45]03 Read from MH i2c: 00 35 04 06 00 54 B6 FE 98 0E F0 8C 11 B6 C7 B1 75 CC 92 [16:44:45]D1 01 00 00 5A 00 2B [16:44:46]Write to MH i2c: 01 00 00 *** Brake cut motor [16:44:46]01 5A 5B [16:44:46]Write i2c OK [16:44:46]MH_I2C_Read... [16:44:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 5E E9 47 00 62 EB A5 07 01 00 07 00 *** Stop cut motor [16:44:46]3B *** Cut end [16:44:46]Read from MH i2c: 01 [16:44:46]MH_I2C_Read... [16:44:46]00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 Read from MH i2c: 36 01 31 07 32 00 33 [16:44:46]34 11 04 10 MH_I2C_Read... [16:44:46]00 Read from MH i2c: 30 01 30 30 30 30 07 30 00 30 30 30 30 01 38 5A 37 00 31 38 33 39 00 10 00 04 00 04 00 00 FF F2 0F 7B 70 [16:44:46]process_action close_receipt done [16:44:46]requested_data is exist [16:44:46]03 produce_requested_data [16:44:46]00 requested_item fm.sn is exist - process it [16:44:46]wFMCommunicate request_size=4 [16:44:46]F4 MH_SAM_APDU [16:44:46]CAPDU: 80 11 03 00 04 00 [16:44:46]00 Write to MH i2c: E2 08 00 78 02 5A 80 81 11 17 00 00 00 00 00 00 D6 [16:44:46]67 B6 04 01 00 00 C8 D6 F9 92 1D *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:46]D2 Write i2c OK [16:44:46]MH_I2C_Read... [16:44:46]D5 AE [16:44:46]CommunicateWithHost err = 0 [16:44:46]CheckOFDResponse [16:44:46]1017 (14) - 77093643461234 [16:44:46]1041 (16) - 0000000000871839 [16:44:46]1040 (4) - 228338 [16:44:46]1012 (4) - 22.10.2024 10:42 [16:44:46]1206 (1) - 0 [16:44:46]OFD Sender: Remove packet 228338 [16:44:46]ProducePacketName [16:44:47]name=ofd_packets/00228338 [16:44:47]NVStorageDeleteData [16:44:47]Read from MH i2c: E2 [16:44:47]MH_I2C_Read... [16:44:47]Read from MH i2c: E2 17 00 [16:44:47]MH_I2C_Read... [16:44:47]Read from MH i2c: E2 17 00 02 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2D [16:44:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:44:47]wFMCommunicate OK [16:44:47]requested_item fd.num is exist - process it [16:44:47]SAM_PROTO_GetFieldsCounters [16:44:47]wFMCommunicate request_size=4 [16:44:47]MH_SAM_APDU [16:44:47]CAPDU: 80 13 00 00 [16:44:47]Write to MH i2c: E2 08 00 03 5A 80 13 00 00 00 00 00 00 D9 [16:44:47]Write i2c OK [16:44:47]MH_I2C_Read... [16:44:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:47]Read from MH i2c: E2 [16:44:47]MH_I2C_Read... [16:44:47]Read from MH i2c: E2 62 00 [16:44:47]MH_I2C_Read... [16:44:47]Read from MH i2c: E2 62 00 03 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F2 7B 03 00 0E 04 04 OFD Sender: No OFD packet to send [16:44:47]00 17 02 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 18 [16:44:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F2 7B 03 00 0E 04 04 00 17 02 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 [16:44:48]wFMCommunicate OK [16:44:48]SAM_PROTO_GetFieldsCounters done [16:44:48]requested_item shift.num is exist - process it [16:44:48]requested_item shift.opened is exist - process it [16:44:48]req_shift_opened [16:44:48]FM_GetShiftState [16:44:48]SAM_PROTO_GetShiftState [16:44:48]wFMCommunicate request_size=4 [16:44:48]MH_SAM_APDU [16:44:48]CAPDU: 80 13 01 00 [16:44:48]Write to MH i2c: E2 08 00 04 5A 80 13 01 00 00 00 00 00 DB [16:44:48]Write i2c OK [16:44:48]MH_I2C_Read... [16:44:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:48]Read from MH i2c: E2 [16:44:48]MH_I2C_Read... [16:44:48]Read from MH i2c: E2 0E 00 [16:44:48]MH_I2C_Read... [16:44:48]Read from MH i2c: E2 0E 00 04 5A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 A2 [16:44:48]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [16:44:48]wFMCommunicate OK [16:44:48]SAM_PROTO_GetShiftState done [16:44:48]FM_GetShiftState done [16:44:48]req_shift_opened done [16:44:48]requested_item shift.open_date is exist - process it [16:44:48]req_shift_open_date [16:44:48]req_shift_open_date done [16:44:48]produce_requested_data done [16:44:48]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228338,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [16:44:48]process_action_free close_receipt [16:44:48]json_value_free [16:44:48]json_value_free done [16:44:48]process_json_proto returns [16:44:48]Send response to host [16:44:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228338,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [16:44:48]free response buf [16:44:48]execute_script done [16:44:48]execute_script returns [16:44:48]free content buf [16:44:48]Sock 7.Close socket [16:44:48]Sock 7.Thread stoped [16:44:52]OFD Sender: No OFD packet to send [16:44:57]OFD Sender: No OFD packet to send [16:45:02]OFD Sender: No OFD packet to send [16:45:07]OFD Sender: No OFD packet to send [16:45:12]OFD Sender: No OFD packet to send [16:45:17]OFD Sender: No OFD packet to send [16:45:22]OFD Sender: No OFD packet to send [16:45:27]OFD Sender: No OFD packet to send [16:45:32]OFD Sender: No OFD packet to send [16:45:37]OFD Sender: No OFD packet to send [16:45:42]OFD Sender: No OFD packet to send [16:45:47]OFD Sender: No OFD packet to send [16:45:52]OFD Sender: No OFD packet to send [16:45:57]OFD Sender: No OFD packet to send [16:46:02]OFD Sender: No OFD packet to send [16:46:07]OFD Sender: No OFD packet to send [16:46:12]OFD Sender: No OFD packet to send [16:46:17]OFD Sender: No OFD packet to send [16:46:22]OFD Sender: No OFD packet to send [16:46:27]OFD Sender: No OFD packet to send [16:46:33]OFD Sender: No OFD packet to send [16:46:38]OFD Sender: No OFD packet to send [16:46:39]ConnectInit Can't connect to host [16:46:43]OFD Sender: No OFD packet to send [16:46:48]OFD Sender: No OFD packet to send [16:46:53]OFD Sender: No OFD packet to send [16:46:58]OFD Sender: No OFD packet to send [16:47:03]OFD Sender: No OFD packet to send [16:47:08]OFD Sender: No OFD packet to send [16:47:13]OFD Sender: No OFD packet to send [16:47:18]OFD Sender: No OFD packet to send [16:47:23]OFD Sender: No OFD packet to send [16:47:28]OFD Sender: No OFD packet to send [16:47:33]OFD Sender: No OFD packet to send [16:47:38]OFD Sender: No OFD packet to send [16:47:43]OFD Sender: No OFD packet to send [16:47:48]OFD Sender: No OFD packet to send [16:47:53]OFD Sender: No OFD packet to send [16:47:58]OFD Sender: No OFD packet to send [16:48:03]OFD Sender: No OFD packet to send [16:48:08]OFD Sender: No OFD packet to send [16:48:13]OFD Sender: No OFD packet to send [16:48:18]OFD Sender: No OFD packet to send [16:48:23]OFD Sender: No OFD packet to send [16:48:28]OFD Sender: No OFD packet to send [16:48:33]OFD Sender: No OFD packet to send [16:48:38]OFD Sender: No OFD packet to send [16:48:43]OFD Sender: No OFD packet to send [16:48:48]OFD Sender: No OFD packet to send [16:48:53]OFD Sender: No OFD packet to send [16:48:57]ConnectInit Can't connect to host [16:48:58]OFD Sender: No OFD packet to send [16:49:03]OFD Sender: No OFD packet to send [16:49:08]OFD Sender: No OFD packet to send [16:49:13]OFD Sender: No OFD packet to send [16:49:18]OFD Sender: No OFD packet to send [16:49:23]OFD Sender: No OFD packet to send [16:49:28]OFD Sender: No OFD packet to send [16:49:33]OFD Sender: No OFD packet to send [16:49:38]OFD Sender: No OFD packet to send [16:49:43]OFD Sender: No OFD packet to send [16:49:48]OFD Sender: No OFD packet to send [16:49:53]OFD Sender: No OFD packet to send [16:49:58]OFD Sender: No OFD packet to send [16:50:03]OFD Sender: No OFD packet to send [16:50:08]OFD Sender: No OFD packet to send [16:50:13]OFD Sender: No OFD packet to send [16:50:18]OFD Sender: No OFD packet to send [16:50:23]OFD Sender: No OFD packet to send [16:50:28]OFD Sender: No OFD packet to send [16:50:33]OFD Sender: No OFD packet to send [16:50:38]accept exits with 10 [16:50:38]New connection [16:50:38]New thread 3066994020 created [16:50:38]Thread 3067137380 joined [16:50:38]Waiting for new connection... [16:50:38] Sock 10.Parse request [16:50:38]Sock 10.Check first char [16:50:38]Sock 10.First char is OK [16:50:38]request: POST /json_proto HTTP/1.0 [16:50:38]Method: POST [16:50:38]URL: /json_proto [16:50:38]Method is POST - this is cgi request [16:50:38]url: /json_proto [16:50:38]query_string will be loaded in cgi processing [16:50:38]execute_cgi json_proto POST (null) [16:50:38]execute_cgi path=json_proto method=POST [16:50:38]POST find Content-Length [16:50:38]Host: 172.17.44.195:8080 [16:50:38]Content-Length: 678 [16:50:38]Content-Type: application/json [16:50:38] [16:50:38]POST finish read [16:50:38]Found Content-Length = 678 [16:50:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:50:38]execute_script... [16:50: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)1964838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:50:38]POST & json_proto [16:50:38]process_json_proto [16:50:38]json parsed OK: [16:50:38]protocol is kg_v1.0 [16:50:38]action value=close_receipt [16:50:38]process_action close_receipt [16:50:38]cmd_close_receipt [16:50:38]MH_GetDate [16:50:38]Write to MH i2c: F0 00 00 05 5A 4E [16:50:38]Write i2c OK [16:50:38]MH_I2C_Read... [16:50:38]Read from MH i2c: F0 [16:50:38]MH_I2C_Read... [16:50:38]Read from MH i2c: F0 09 00 [16:50:38]MH_I2C_Read... [16:50:38]Read from MH i2c: F0 09 00 05 5A 00 E3 D7 17 67 82 C9 CF 66 0F [16:50:38]GetLastDocTimeStamp 1729615481 [16:50:38]current date 1729615843 [16:50:38]FM_GetShiftState [16:50:38]SAM_PROTO_GetShiftState [16:50:38]wFMCommunicate request_size=4 [16:50:38]MH_SAM_APDU [16:50:38]CAPDU: 80 13 01 00 [16:50:38]Write to MH i2c: E2 08 00 06 5A 80 13 01 00 00 00 00 00 DD [16:50:38]OFD Sender: No OFD packet to send [16:50:38]Write i2c OK [16:50:38]MH_I2C_Read... [16:50:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:38]Read from MH i2c: E2 [16:50:38]MH_I2C_Read... [16:50:38]Read from MH i2c: E2 0E 00 [16:50:38]MH_I2C_Read... [16:50:38]Read from MH i2c: E2 0E 00 06 5A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 A4 [16:50:38]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [16:50:38]wFMCommunicate OK [16:50:38]SAM_PROTO_GetShiftState done [16:50:38]FM_GetShiftState done [16:50:38]opened in 1729555538 [16:50:38]opened+sec_in_day 1729641938 [16:50:38]quantity*price = 50041 [16:50:38]sum+1 = 50042 [16:50:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 303 22.10.2024 16:50 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228339 ФПД: 194076509109577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T165043&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228339&fm=194076509109577&tin=02508201610067®Number=0000000000091685&sum=50000 [16:50:42]StoreToDocumentArchive [16:50:42]shift 535 fd 228339 [16:50:42]save to /storage/0535/doc_00228339 [16:50:42]save last doc name /storage/0535/doc_00228339 to /storage/kkm_last_doc_name [16:50:42]save OK [16:50:42]Clear old archive folders... [16:50:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:50:42]tlvbuf is 00ADAC40 [16:50:42]SAM_PROTO_ClearQueue [16:50:42]wFMCommunicate request_size=4 [16:50:42]MH_SAM_APDU [16:50:42]CAPDU: 80 09 00 00 [16:50:42]Write to MH i2c: E2 08 00 13 5A 80 09 00 00 00 00 00 00 DF [16:50:42]Write i2c OK [16:50:42]MH_I2C_Read... [16:50:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:42]Read from MH i2c: E2 [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: E2 03 00 [16:50:43]MH_I2C_Read... [16:50:43]Read from MH i2c: E2 03 00 13 5A 00 90 00 E1 [16:50:43]RAPDU: 90 00 [16:50:43]wFMCommunicate OK [16:50:43]SAM_PROTO_ClearQueue done [16:50:43]KKMCreateOFDPacket [16:50:43]OFDProtocolAddRootSTLVToBuf [16:50:43]FM_MakeSignedData [16:50:43]FM_MakeSignedData [16:50:43]SAM_PROTO_SignData [16:50:43]wFMCommunicate request_size=4 [16:50:43]MH_SAM_APDU [16:50:43]CAPDU: 80 0D 01 02 [16:50:43]Write to MH i2c: E2 08 00 14 5A 80 0D 01 02 00 00 00 00 E7 [16:50:43]Write i2c OK [16:50:43]MH_I2C_Read... [16:50:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:43]Read from MH i2c: E2 [16:50:43]MH_I2C_Read... [16:50:43]Read from MH i2c: E2 03 00 [16:50:43]MH_I2C_Read... [16:50:43]Read from MH i2c: E2 03 00 14 5A 00 90 00 E2 [16:50:43]RAPDU: 90 00 [16:50:43]wFMCommunicate OK [16:50:43]wFMCommunicate request_size=255 [16:50:43]MH_SAM_APDU [16:50: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 OFD Sender: No OFD packet to send [16:50:43]79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 E3 D7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F3 7B 03 00 35 04 06 00 B0 [16:50:44]Write to MH i2c: E2 02 01 15 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 E3 D7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F3 7B 03 00 35 04 06 00 B0 00 00 20 [16:50:45]Write i2c OK [16:50:45]MH_I2C_Read... [16:50:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:45]Read from MH i2c: E2 [16:50:45]MH_I2C_Read... [16:50:45]Read from MH i2c: E2 03 00 [16:50:45]MH_I2C_Read... [16:50:45]Read from MH i2c: E2 03 00 15 5A 00 90 00 E3 [16:50:45]RAPDU: 90 00 [16:50:45]wFMCommunicate OK [16:50:45]wFMCommunicate request_size=10 [16:50:45]MH_SAM_APDU [16:50:45]CAPDU: 80 0D 02 02 05 82 F5 62 7D 49 [16:50:45]Write to MH i2c: E2 0D 00 16 5A 80 0D 02 02 05 00 82 F5 62 7D 49 00 00 93 [16:50:45]Write i2c OK [16:50:45]MH_I2C_Read... [16:50:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:45]Read from MH i2c: E2 [16:50:45]MH_I2C_Read... [16:50:45]Read from MH i2c: E2 03 00 [16:50:45]MH_I2C_Read... [16:50:45]Read from MH i2c: E2 03 00 16 5A 00 90 00 E4 [16:50:45]RAPDU: 90 00 [16:50:45]wFMCommunicate OK [16:50:45]wFMCommunicate request_size=4 [16:50:45]MH_SAM_APDU [16:50:45]CAPDU: 80 0D 03 02 [16:50:45]Write to MH i2c: E2 08 00 17 5A 80 0D 03 02 00 00 00 00 EC [16:50:45]Write i2c OK [16:50:45]MH_I2C_Read... [16:50:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:45]Read from MH i2c: E2 [16:50:45]MH_I2C_Read... [16:50:45]Read from MH i2c: E2 0B 00 [16:50:45]MH_I2C_Read... [16:50:45]Read from MH i2c: E2 0B 00 17 5A 00 7D FA 0D 5C A6 10 64 A5 90 00 8C [16:50:45]RAPDU: 7D FA 0D 5C A6 10 64 A5 90 00 [16:50:45]wFMCommunicate OK [16:50:45]SAM_PROTO_SignData done [16:50:45]FM_MakeSignedData done [16:50:45]CreateOFDProtocolMessage [16:50:45]wFMCommunicate request_size=4 [16:50:45]MH_SAM_APDU [16:50:45]CAPDU: 80 11 00 00 [16:50:45]Write to MH i2c: E2 08 00 18 5A 80 11 00 00 00 00 00 00 EC [16:50:45]Write i2c OK [16:50:45]MH_I2C_Read... [16:50:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:46]Read from MH i2c: E2 [16:50:46]MH_I2C_Read... [16:50:46]Read from MH i2c: E2 17 00 [16:50:46]MH_I2C_Read... [16:50:46]Read from MH i2c: E2 17 00 18 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 43 [16:50:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:50:46]wFMCommunicate OK [16:50:46]CreateOFDProtocolMessage done [16:50:46]OFDSenderStorePacket 228339 [16:50:46]StoreOFDPacket docnum=228339 [16:50:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D4 CC 07 01 0F 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 E3 D7 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F3 7B 03 00 35 04 06 00 B0 82 F5 62 7D 49 7D FA 0D 5C A6 10 64 A5 [16:50:46]CheckFolder [16:50:46]dirname=/storage/ofd_packets [16:50:46]CheckFolder done [16:50:46]ProducePacketName [16:50:46]name=ofd_packets/00228339 [16:50:46]NVStorageSaveData ofd_packets/00228339 [16:50:46]File name is /storage/ofd_packets/00228339 [16:50:46]Write 301 bytes [16:50:46]NVStorageSaveData done [16:50:46]OFDSenderStorePacket done [16:50:46]KKMCreateOFDPacket done [16:50:46]NVStorageSaveData kkm_last_timestamp [16:50:46]File name is /storage/kkm_last_timestamp [16:50:46]Write 4 bytes [16:50:46]NVStorageSaveData done [16:50:46]ExternCall_PrintAddStr [16:50:46]wPrintStart [16:50:46]Write to MH i2c: 01 00 00 19 5A 73 [16:50:46]OFD Sender: Processing packet 228339 [packets to send 38, broken 37] [16:50:46]ProducePacketName [16:50:46]name=ofd_packets/00228339 [16:50:46]OFD Sender: To server: pG, [16:50:46]CommunicateWithHost lk.salyk.kg:30040 [16:50:46]ConnectInit lk.salyk.kg [16:50:46]Write i2c OK [16:50:46]MH_I2C_Read... [16:50:46]Read from MH i2c: 01 [16:50:46]MH_I2C_Read... [16:50:46]Read from MH i2c: 01 07 00 [16:50:46]MH_I2C_Read... [16:50:46]Read from MH i2c: 01 07 00 19 5A 00 00 00 00 00 FF 0F 88 [16:50:46]RasterBufferAndPrint [16:50:46]line Счет N : (1)1964838 [16:50:46]line ИНН: 02508201610067 [16:50:46]line Контрольно-Кассовый Чек [16:50:46]line ПРОДАЖА [16:50:46]line ТРК (МРК, ГНК) : 43 [16:50:46]line Товар: 2710124130 [16:50:46]line Аи-92-К-5 [16:50:46]line 7.480 * 66.90 [16:50:46]line = 500.41 [16:50:46]line НДС 12% НСП 1% [16:50:46]Connected sock=11 [16:50:46]line > о реализуемом товаре [16:50:46]Data to sent: line ОКРУГЛЕНИЕ: -0.41 [16:50:46]87 line ИТОГО: 500.00 [16:50:46]line Внесено: 500.00 [16:50:46]line СДАЧА: 0.00 [16:50:46]line НСП 1% : 4.43 [16:50:46]95 line НДС 12% : 53.14 [16:50:46]F6 line Наличными: 500.00 [16:50:46]70 line Безнал.: 0.00 [16:50:46]line Место: АЗС № 133 "Партнер Нефть" [16:50:46]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [16:50:46]line СНО: Общий режим [16:50:46]47 line Чек 303 22.10.2024 16:50 [16:50:46]2C line Смена: 535 ФФД: 1.0 [16:50:46]01 line ЗНМ: 0300000091 [16:50:46]line РНМ: 0000000000091685 [16:50:46]line Версия ККМ: 001 [16:50:46]line ФМ: 0000000000871839 [16:50:46]00 line ФД: 228339 [16:50:46]30 line ФПД: 194076509109577 [16:50:46]30 line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T165043&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228339&fm=194076509109577&tin=02508201610067®Number=0000000000091685&sum=50000 [16:50:46]30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 written 0, free lines is 4095 [16:50:46]00 00 D4 CC 07 01 0F 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 Write to MH i2c: F6 01 00 00 43 03 5A 01 9D 00 [16:50:47]01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 Write i2c OK [16:50:47]00 MH_I2C_Read... [16:50:47]00 Read from MH i2c: 07 04 06 00 01 50 [16:50:47]C3 MH_I2C_Read... [16:50:47]00 00 00 00 Read from MH i2c: 39 01 04 07 06 00 00 [16:50:47]00 00 00 00 MH_I2C_Read... [16:50:47]00 00 1F 04 02 Read from MH i2c: 00 01 01 07 00 12 04 04 00 00 43 2F 5A 01 00 00 00 00 00 6C 0D 00 1D 00 F4 03 04 [16:50:47]00 RasterBufferAndPrint [16:50:47]E3 line [16:50:47]D7 17 67 0E line [16:50:47]04 line [16:50:47]04 00 17 02 line [16:50:47]00 line [16:50:47]00 written 0, free lines is 4042 [16:50:47]B9 04 01 00 01 0D 04 MH_Cut [16:50:47]10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F3 Write to MH i2c: 7B D1 03 01 00 35 04 06 00 00 4A B0 5A 82 F5 62 7D 01 49 76 7D FA 0D 5C [16:50:48]A6 Write i2c OK [16:50:48]*** Cut start [16:50:48]MH_I2C_Read... [16:50:48]*** Partial cut [16:50:48]Read from MH i2c: *** CUTSNS_PIN = 1 [16:50:48]D1 *** CUTSNS_PIN = 0 [16:50:48] [16:50:48]MH_I2C_Read... [16:50:48]10 64 A5 [16:50:48]Read from MH i2c: D1 01 00 [16:50:48]MH_I2C_Read... [16:50:48]Read from MH i2c: D1 01 00 4A 5A 00 75 [16:50:48]Write to MH i2c: 01 00 00 4B 5A A5 [16:50:48]Write i2c OK [16:50:48]MH_I2C_Read... [16:50:48]Received data: 87 95 F6 *** Brake cut motor [16:50:48]70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 EA 4C 47 00 EE 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 Read from MH i2c: 30 01 [16:50:48]MH_I2C_Read... [16:50:48]Read from MH i2c: *** Stop cut motor [16:50:48]01 *** Cut end [16:50:48]30 38 07 37 00 31 38 33 39 [16:50:49]10 MH_I2C_Read... [16:50:49]04 Read from MH i2c: 04 00 F3 7B 01 03 07 00 F4 03 04 00 E3 82 17 67 B6 04 01 00 00 B4 69 67 00 5C 4B 70 5A BB 36 11 [16:50:49]00 CommunicateWithHost err = 0 [16:50:49]00 CheckOFDResponse [16:50:49]00 1017 (14) - 77093643461234 [16:50:49]1041 (16) - 0000000000871839 [16:50:49]1040 (4) - 228339 [16:50:49]1012 (4) - 22.10.2024 10:48 [16:50:49]1206 (1) - 0 [16:50:49]OFD Sender: Remove packet 228339 [16:50:49]ProducePacketName [16:50:49]00 name=ofd_packets/00228339 [16:50:49]00 NVStorageDeleteData [16:50:49]FF 0F BA [16:50:49]process_action close_receipt done [16:50:49]requested_data is exist [16:50:49]produce_requested_data [16:50:49]requested_item fm.sn is exist - process it [16:50:49]wFMCommunicate request_size=4 [16:50:49]MH_SAM_APDU [16:50:49]CAPDU: 80 11 00 00 [16:50:49]Write to MH i2c: E2 08 00 4C 5A 80 11 00 00 00 00 00 00 20 [16:50:49]Write i2c OK [16:50:49]MH_I2C_Read... [16:50:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:49]Read from MH i2c: E2 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: E2 17 00 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: E2 17 00 4C 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 77 [16:50:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:50:49]wFMCommunicate OK [16:50:49]requested_item fd.num is exist - process it [16:50:49]SAM_PROTO_GetFieldsCounters [16:50:49]wFMCommunicate request_size=4 [16:50:49]MH_SAM_APDU [16:50:49]CAPDU: 80 13 00 00 [16:50:49]Write to MH i2c: E2 08 00 4D 5A 80 13 00 00 00 00 00 00 23 [16:50:49]Write i2c OK [16:50:49]MH_I2C_Read... [16:50:49]OFD Sender: No OFD packet to send [16:50:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:49]Read from MH i2c: E2 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: E2 62 00 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: E2 62 00 4D 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F3 7B 03 00 0E 04 04 00 17 02 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 66 [16:50:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F3 7B 03 00 0E 04 04 00 17 02 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 [16:50:50]wFMCommunicate OK [16:50:50]SAM_PROTO_GetFieldsCounters done [16:50:50]requested_item shift.num is exist - process it [16:50:50]requested_item shift.opened is exist - process it [16:50:50]req_shift_opened [16:50:50]FM_GetShiftState [16:50:50]SAM_PROTO_GetShiftState [16:50:50]wFMCommunicate request_size=4 [16:50:50]MH_SAM_APDU [16:50:50]CAPDU: 80 13 01 00 [16:50:50]Write to MH i2c: E2 08 00 4E 5A 80 13 01 00 00 00 00 00 25 [16:50:50]Write i2c OK [16:50:50]MH_I2C_Read... [16:50:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:50]Read from MH i2c: E2 [16:50:50]MH_I2C_Read... [16:50:50]Read from MH i2c: E2 0E 00 [16:50:50]MH_I2C_Read... [16:50:50]Read from MH i2c: E2 0E 00 4E 5A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 EC [16:50:50]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [16:50:50]wFMCommunicate OK [16:50:50]SAM_PROTO_GetShiftState done [16:50:50]FM_GetShiftState done [16:50:50]req_shift_opened done [16:50:50]requested_item shift.open_date is exist - process it [16:50:50]req_shift_open_date [16:50:50]req_shift_open_date done [16:50:50]produce_requested_data done [16:50:50]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228339,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [16:50:50]process_action_free close_receipt [16:50:50]json_value_free [16:50:50]json_value_free done [16:50:50]process_json_proto returns [16:50:50]Send response to host [16:50:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228339,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [16:50:50]free response buf [16:50:50]execute_script done [16:50:50]execute_script returns [16:50:50]free content buf [16:50:50]Sock 10.Close socket [16:50:50]Sock 10.Thread stoped [16:50:54]OFD Sender: No OFD packet to send [16:50:59]OFD Sender: No OFD packet to send [16:51:04]OFD Sender: No OFD packet to send [16:51:09]OFD Sender: No OFD packet to send [16:51:14]OFD Sender: No OFD packet to send [16:51:16]ConnectInit Can't connect to host [16:51:19]OFD Sender: No OFD packet to send [16:51:24]OFD Sender: No OFD packet to send [16:51:29]OFD Sender: No OFD packet to send [16:51:34]OFD Sender: No OFD packet to send [16:51:39]OFD Sender: No OFD packet to send [16:51:44]OFD Sender: No OFD packet to send [16:51:49]OFD Sender: No OFD packet to send [16:51:54]OFD Sender: No OFD packet to send [16:51:59]OFD Sender: No OFD packet to send [16:52:04]OFD Sender: No OFD packet to send [16:52:09]OFD Sender: No OFD packet to send [16:52:14]OFD Sender: No OFD packet to send [16:52:19]OFD Sender: No OFD packet to send [16:52:24]OFD Sender: No OFD packet to send [16:52:29]OFD Sender: No OFD packet to send [16:52:34]OFD Sender: No OFD packet to send [16:52:39]OFD Sender: No OFD packet to send [16:52:44]OFD Sender: No OFD packet to send [16:52:49]OFD Sender: No OFD packet to send [16:52:54]OFD Sender: No OFD packet to send [16:52:59]OFD Sender: No OFD packet to send [16:53:04]OFD Sender: No OFD packet to send [16:53:09]OFD Sender: No OFD packet to send [16:53:14]OFD Sender: No OFD packet to send [16:53:19]OFD Sender: No OFD packet to send [16:53:23]accept exits with 9 [16:53:23]New connection [16:53:23]New thread 3067137380 created [16:53:23]Thread 3066994020 joined [16:53:23]Waiting for new connection... [16:53:23] Sock 9.Parse request [16:53:23]Sock 9.Check first char [16:53:23]Sock 9.First char is OK [16:53:23]request: POST /json_proto HTTP/1.0 [16:53:23]Method: POST [16:53:23]URL: /json_proto [16:53:23]Method is POST - this is cgi request [16:53:23]url: /json_proto [16:53:23]query_string will be loaded in cgi processing [16:53:23]execute_cgi json_proto POST (null) [16:53:23]execute_cgi path=json_proto method=POST [16:53:23]POST find Content-Length [16:53:23]Host: 172.17.44.195:8080 [16:53:23]Content-Length: 678 [16:53:23]Content-Type: application/json [16:53:23] [16:53:23]POST finish read [16:53:23]Found Content-Length = 678 [16:53:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.690, "sum" : 380.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:23]execute_script... [16:53:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.690, "sum" : 380.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:23]POST & json_proto [16:53:23]process_json_proto [16:53:23]json parsed OK: [16:53:23]protocol is kg_v1.0 [16:53:23]action value=close_receipt [16:53:23]process_action close_receipt [16:53:23]cmd_close_receipt [16:53:23]MH_GetDate [16:53:23]Write to MH i2c: F0 00 00 4F 5A 98 [16:53:23]Write i2c OK [16:53:23]MH_I2C_Read... [16:53:23]Read from MH i2c: F0 [16:53:23]MH_I2C_Read... [16:53:23]Read from MH i2c: F0 09 00 [16:53:23]MH_I2C_Read... [16:53:23]Read from MH i2c: F0 09 00 4F 5A 00 88 D8 17 67 82 C9 CF 66 FF [16:53:24]GetLastDocTimeStamp 1729615843 [16:53:24]current date 1729616008 [16:53:24]FM_GetShiftState [16:53:24]SAM_PROTO_GetShiftState [16:53:24]wFMCommunicate request_size=4 [16:53:24]MH_SAM_APDU [16:53:24]CAPDU: 80 13 01 00 [16:53:24]Write to MH i2c: E2 08 00 50 5A 80 13 01 00 00 00 00 00 27 [16:53:24]Write i2c OK [16:53:24]MH_I2C_Read... [16:53:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:24]Read from MH i2c: E2 [16:53:24]MH_I2C_Read... [16:53:24]Read from MH i2c: E2 0E 00 [16:53:24]MH_I2C_Read... [16:53:24]Read from MH i2c: E2 0E 00 50 5A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 EE [16:53:24]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [16:53:24]wFMCommunicate OK [16:53:24]SAM_PROTO_GetShiftState done [16:53:24]FM_GetShiftState done [16:53:24]opened in 1729555538 [16:53:24]opened+sec_in_day 1729641938 [16:53:24]quantity*price = 38066 [16:53:24]sum+1 = 38067 [16:53:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 380.00 Внесено: 380.00 СДАЧА: 0.00 НСП 1% : 3.37 НДС 12% : 40.42 Наличными: 380.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 304 22.10.2024 16:53 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228340 ФПД: 275307062612697 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T165329&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228340&fm=275307062612697&tin=02508201610067®Number=0000000000091685&sum=38000 [16:53:28]StoreToDocumentArchive [16:53:28]shift 535 fd 228340 [16:53:28]save to /storage/0535/doc_00228340 [16:53:28]save last doc name /storage/0535/doc_00228340 to /storage/kkm_last_doc_name [16:53:28]save OK [16:53:28]Clear old archive folders... [16:53:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:53:28]tlvbuf is 00AE4970 [16:53:28]SAM_PROTO_ClearQueue [16:53:28]wFMCommunicate request_size=4 [16:53:28]MH_SAM_APDU [16:53:28]CAPDU: 80 09 00 00 [16:53:28]Write to MH i2c: E2 08 00 5D 5A 80 09 00 00 00 00 00 00 29 [16:53:28]Write i2c OK [16:53:28]MH_I2C_Read... [16:53:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:53:28]Read from MH i2c: E2 [16:53:28]MH_I2C_Read... [16:53:28]Read from MH i2c: E2 03 00 [16:53:28]MH_I2C_Read... [16:53:28]Read from MH i2c: E2 03 00 5D 5A 00 90 00 2B [16:53:28]RAPDU: 90 00 [16:53:28]wFMCommunicate OK [16:53:28]SAM_PROTO_ClearQueue done [16:53:28]KKMCreateOFDPacket [16:53:28]OFDProtocolAddRootSTLVToBuf [16:53:28]FM_MakeSignedData [16:53:28]FM_MakeSignedData [16:53:28]SAM_PROTO_SignData [16:53:28]wFMCommunicate request_size=4 [16:53:28]MH_SAM_APDU [16:53:28]CAPDU: 80 0D 01 02 [16:53:28]Write to MH i2c: E2 08 00 5E 5A 80 0D 01 02 00 00 00 00 31 [16:53:28]Write i2c OK [16:53:28]MH_I2C_Read... [16:53:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:53:28]Read from MH i2c: E2 [16:53:28]MH_I2C_Read... [16:53:28]Read from MH i2c: E2 03 00 [16:53:28]MH_I2C_Read... [16:53:28]Read from MH i2c: E2 03 00 5E 5A 00 90 00 2C [16:53:29]RAPDU: 90 00 [16:53:29]wFMCommunicate OK [16:53:29]wFMCommunicate request_size=255 [16:53:29]MH_SAM_APDU [16:53: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 3A 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B2 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 0F 00 00 00 00 07 04 06 00 70 94 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 01 00 00 F4 03 04 00 89 D8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F4 7B 03 00 35 04 06 00 FA [16:53:29]Write to MH i2c: E2 02 01 5F 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF OFD Sender: No OFD packet to send [16:53:30]03 08 00 03 3A 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B2 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 0F 00 00 00 00 07 04 06 00 70 94 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 01 00 00 F4 03 04 00 89 D8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F4 7B 03 00 35 04 06 00 FA 00 00 DD [16:53:30]Write i2c OK [16:53:30]MH_I2C_Read... [16:53:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:31]Read from MH i2c: E2 [16:53:31]MH_I2C_Read... [16:53:31]Read from MH i2c: E2 03 00 [16:53:31]MH_I2C_Read... [16:53:31]Read from MH i2c: E2 03 00 5F 5A 00 90 00 2D [16:53:31]RAPDU: 90 00 [16:53:31]wFMCommunicate OK [16:53:31]wFMCommunicate request_size=10 [16:53:31]MH_SAM_APDU [16:53:31]CAPDU: 80 0D 02 02 05 63 EB AB D2 D9 [16:53:31]Write to MH i2c: E2 0D 00 60 5A 80 0D 02 02 05 00 63 EB AB D2 D9 00 00 E2 [16:53:31]Write i2c OK [16:53:31]MH_I2C_Read... [16:53:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:31]Read from MH i2c: E2 [16:53:31]MH_I2C_Read... [16:53:31]Read from MH i2c: E2 03 00 [16:53:31]MH_I2C_Read... [16:53:31]Read from MH i2c: E2 03 00 60 5A 00 90 00 2E [16:53:31]RAPDU: 90 00 [16:53:31]wFMCommunicate OK [16:53:31]wFMCommunicate request_size=4 [16:53:31]MH_SAM_APDU [16:53:31]CAPDU: 80 0D 03 02 [16:53:31]Write to MH i2c: E2 08 00 61 5A 80 0D 03 02 00 00 00 00 36 [16:53:31]Write i2c OK [16:53:31]MH_I2C_Read... [16:53:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:53:31]Read from MH i2c: E2 [16:53:31]MH_I2C_Read... [16:53:31]Read from MH i2c: E2 0B 00 [16:53:31]MH_I2C_Read... [16:53:31]Read from MH i2c: E2 0B 00 61 5A 00 42 F8 81 8C DC 6C 9C 1F 90 00 81 [16:53:31]RAPDU: 42 F8 81 8C DC 6C 9C 1F 90 00 [16:53:31]wFMCommunicate OK [16:53:31]SAM_PROTO_SignData done [16:53:31]FM_MakeSignedData done [16:53:31]CreateOFDProtocolMessage [16:53:31]wFMCommunicate request_size=4 [16:53:31]MH_SAM_APDU [16:53:31]CAPDU: 80 11 00 00 [16:53:31]Write to MH i2c: E2 08 00 62 5A 80 11 00 00 00 00 00 00 36 [16:53:31]Write i2c OK [16:53:31]MH_I2C_Read... [16:53:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:31]Read from MH i2c: E2 [16:53:31]MH_I2C_Read... [16:53:31]Read from MH i2c: E2 17 00 [16:53:31]MH_I2C_Read... [16:53:31]Read from MH i2c: E2 17 00 62 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8D [16:53:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:53:32]wFMCommunicate OK [16:53:32]CreateOFDProtocolMessage done [16:53:32]OFDSenderStorePacket 228340 [16:53:32]StoreOFDPacket docnum=228340 [16:53:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 23 AE 07 01 8F 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 3A 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B2 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 0F 00 00 00 00 07 04 06 00 70 94 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 01 00 00 F4 03 04 00 89 D8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F4 7B 03 00 35 04 06 00 FA 63 EB AB D2 D9 42 F8 81 8C DC 6C 9C 1F [16:53:32]CheckFolder [16:53:32]dirname=/storage/ofd_packets [16:53:32]CheckFolder done [16:53:32]ProducePacketName [16:53:32]name=ofd_packets/00228340 [16:53:32]NVStorageSaveData ofd_packets/00228340 [16:53:32]File name is /storage/ofd_packets/00228340 [16:53:32]Write 301 bytes [16:53:32]NVStorageSaveData done [16:53:32]OFDSenderStorePacket done [16:53:32]KKMCreateOFDPacket done [16:53:32]NVStorageSaveData kkm_last_timestamp [16:53:32]File name is /storage/kkm_last_timestamp [16:53:32]Write 4 bytes [16:53:32]NVStorageSaveData done [16:53:32]ExternCall_PrintAddStr [16:53:32]wPrintStart [16:53:32]Write to MH i2c: 01 00 00 63 5A BD [16:53:32]OFD Sender: Processing packet 228340 [packets to send 38, broken 37] [16:53:32]ProducePacketName [16:53:32]name=ofd_packets/00228340 [16:53:32]OFD Sender: To server: pG, [16:53:32]CommunicateWithHost lk.salyk.kg:30040 [16:53:32]ConnectInit lk.salyk.kg [16:53:32]Write i2c OK [16:53:32]MH_I2C_Read... [16:53:32]Read from MH i2c: 01 [16:53:32]MH_I2C_Read... [16:53:32]Read from MH i2c: 01 07 00 [16:53:32]MH_I2C_Read... [16:53:32]Read from MH i2c: 01 07 00 63 5A 00 00 00 00 00 FF 0F D2 Connected sock=11 [16:53:32] [16:53:32]Data to sent: RasterBufferAndPrint [16:53:32]87 line Счет N : (1)1964840 [16:53:32]line ИНН: 02508201610067 [16:53:32]line Контрольно-Кассовый Чек [16:53:32]line ПРОДАЖА [16:53:32]95 line ТРК (МРК, ГНК) : 43 [16:53:32]F6 line Товар: 2710124130 [16:53:32]70 line Аи-92-К-5 [16:53:32]line 5.690 * 66.90 [16:53:32]line = 380.66 [16:53:32]line НДС 12% НСП 1% [16:53:32]47 line > о реализуемом товаре [16:53:32]2C line ОКРУГЛЕНИЕ: -0.66 [16:53:32]01 00 line ИТОГО: 380.00 [16:53:32]30 line Внесено: 380.00 [16:53:32]line СДАЧА: 0.00 [16:53:32]line НСП 1% : 3.37 [16:53:32]line НДС 12% : 40.42 [16:53:32]30 line Наличными: 380.00 [16:53:32]30 line Безнал.: 0.00 [16:53:32]30 line Место: АЗС № 133 "Партнер Нефть" [16:53:32]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [16:53:32]line СНО: Общий режим [16:53:32]line Чек 304 22.10.2024 16:53 [16:53:32]30 line Смена: 535 ФФД: 1.0 [16:53:32]30 line ЗНМ: 0300000091 [16:53:32]30 line РНМ: 0000000000091685 [16:53:32]line Версия ККМ: 001 [16:53:32]line ФМ: 0000000000871839 [16:53:32]30 line ФД: 228340 [16:53:32]30 30 38 37 31 38 33 39 0F 01 00 00 23 AE 07 01 8F line ФПД: 275307062612697 [16:53:32]2A line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T165329&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228340&fm=275307062612697&tin=02508201610067®Number=0000000000091685&sum=38000 [16:53:32]5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 written 0, free lines is 4095 [16:53:32]32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B2 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 0F Write to MH i2c: 00 01 00 00 00 00 00 07 04 06 00 8D 70 5A E7 [16:53:33]94 00 00 00 Write i2c OK [16:53:33]00 MH_I2C_Read... [16:53:33]39 04 06 Read from MH i2c: 00 01 00 [16:53:33]00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 89 D8 17 67 0E 04 04 00 17 MH_I2C_Read... [16:53:33]02 00 Read from MH i2c: 00 01 B9 07 04 01 00 01 00 0D [16:53:33]MH_I2C_Read... [16:53:33]04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 Read from MH i2c: 31 01 36 07 38 35 11 04 00 10 8D 00 5A 30 30 30 30 00 30 00 30 00 30 30 30 30 00 38 00 B5 0D B0 [16:53:34]RasterBufferAndPrint [16:53:34]line [16:53:34]line [16:53:34]line [16:53:34]line [16:53:34]line [16:53:34]37 31 38 33 39 written 0, free lines is 4095 [16:53:34]10 04 04 00 F4 7B 03 MH_Cut [16:53:34]00 Write to MH i2c: 35 04 06 00 D1 FA 01 63 00 EB AB D2 D9 94 42 5A F8 81 8C DC 01 6C C0 9C [16:53:34]1F [16:53:34]Write i2c OK [16:53:34]MH_I2C_Read... [16:53:34]Read from MH i2c: D1 [16:53:34]MH_I2C_Read... [16:53:34]Read from MH i2c: D1 01 00 [16:53:34]MH_I2C_Read... [16:53:34]Read from MH i2c: D1 01 00 94 5A 00 BF [16:53:34]Write to MH i2c: 01 00 00 95 5A EF [16:53:34]Write i2c OK [16:53:34]MH_I2C_Read... [16:53:34]*** Cut start [16:53:34]*** Partial cut [16:53:34]*** CUTSNS_PIN = 1 [16:53:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 ConnectInit Can't connect to host [16:53:34]*** CUTSNS_PIN = 0 [16:53:34]38 33 39 4F 00 00 00 29 23 47 00 40 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 *** Brake cut motor [16:53:34]11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F4 7B 03 00 F4 03 04 00 88 83 17 67 B6 04 01 00 00 9E 63 0C 04 9E 2D 06 40 [16:53:34]CommunicateWithHost err = 0 [16:53:35]CheckOFDResponse [16:53:35]1017 (14) - 77093643461234 [16:53:35]1041 (16) - 0000000000871839 [16:53:35]1040 (4) - 228340 [16:53:35]1012 (4) - 22.10.2024 10:50 [16:53:35]1206 (1) - 0 [16:53:35]Read from MH i2c: OFD Sender: Remove packet 228340 [16:53:35]01 ProducePacketName [16:53:35]*** Stop cut motor [16:53:35]name=ofd_packets/00228340 [16:53:35]*** Cut end [16:53:35]NVStorageDeleteData [16:53:35] [16:53:35]MH_I2C_Read... [16:53:35]Read from MH i2c: 01 07 00 [16:53:35]MH_I2C_Read... [16:53:35]Read from MH i2c: 01 07 00 95 5A 00 00 00 00 00 FF 0F 04 [16:53:35]process_action close_receipt done [16:53:35]requested_data is exist [16:53:35]produce_requested_data [16:53:35]requested_item fm.sn is exist - process it [16:53:35]wFMCommunicate request_size=4 [16:53:35]MH_SAM_APDU [16:53:35]CAPDU: 80 11 00 00 [16:53:35]Write to MH i2c: E2 08 00 96 5A 80 11 00 00 00 00 00 00 6A [16:53:35]Write i2c OK [16:53:35]MH_I2C_Read... [16:53:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:35]Read from MH i2c: E2 [16:53:35]MH_I2C_Read... [16:53:35]Read from MH i2c: E2 17 00 [16:53:35]MH_I2C_Read... [16:53:35]Read from MH i2c: E2 17 00 96 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C1 [16:53:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:53:35]wFMCommunicate OK [16:53:35]requested_item fd.num is exist - process it [16:53:35]SAM_PROTO_GetFieldsCounters [16:53:35]wFMCommunicate request_size=4 [16:53:35]MH_SAM_APDU [16:53:35]CAPDU: 80 13 00 00 [16:53:35]Write to MH i2c: E2 08 00 97 5A 80 13 00 00 00 00 00 00 6D [16:53:35]OFD Sender: No OFD packet to send [16:53:35]Write i2c OK [16:53:35]MH_I2C_Read... [16:53:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:53:35]Read from MH i2c: E2 [16:53:35]MH_I2C_Read... [16:53:35]Read from MH i2c: E2 62 00 [16:53:35]MH_I2C_Read... [16:53:35]Read from MH i2c: E2 62 00 97 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F4 7B 03 00 0E 04 04 00 17 02 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 B4 [16:53:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F4 7B 03 00 0E 04 04 00 17 02 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 [16:53:36]wFMCommunicate OK [16:53:36]SAM_PROTO_GetFieldsCounters done [16:53:36]requested_item shift.num is exist - process it [16:53:36]requested_item shift.opened is exist - process it [16:53:36]req_shift_opened [16:53:36]FM_GetShiftState [16:53:36]SAM_PROTO_GetShiftState [16:53:36]wFMCommunicate request_size=4 [16:53:36]MH_SAM_APDU [16:53:36]CAPDU: 80 13 01 00 [16:53:36]Write to MH i2c: E2 08 00 98 5A 80 13 01 00 00 00 00 00 6F [16:53:36]Write i2c OK [16:53:36]MH_I2C_Read... [16:53:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:36]Read from MH i2c: E2 [16:53:36]MH_I2C_Read... [16:53:36]Read from MH i2c: E2 0E 00 [16:53:36]MH_I2C_Read... [16:53:36]Read from MH i2c: E2 0E 00 98 5A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 36 [16:53:36]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [16:53:36]wFMCommunicate OK [16:53:36]SAM_PROTO_GetShiftState done [16:53:36]FM_GetShiftState done [16:53:36]req_shift_opened done [16:53:36]requested_item shift.open_date is exist - process it [16:53:36]req_shift_open_date [16:53:36]req_shift_open_date done [16:53:36]produce_requested_data done [16:53:36]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228340,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [16:53:36]process_action_free close_receipt [16:53:36]json_value_free [16:53:36]json_value_free done [16:53:36]process_json_proto returns [16:53:36]Send response to host [16:53:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228340,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [16:53:36]free response buf [16:53:36]execute_script done [16:53:36]execute_script returns [16:53:36]free content buf [16:53:36]Sock 9.Close socket [16:53:36]Sock 9.Thread stoped [16:53:40]OFD Sender: No OFD packet to send [16:53:45]OFD Sender: No OFD packet to send [16:53:50]OFD Sender: No OFD packet to send [16:53:55]OFD Sender: No OFD packet to send [16:54:00]OFD Sender: No OFD packet to send [16:54:05]OFD Sender: No OFD packet to send [16:54:10]OFD Sender: No OFD packet to send [16:54:15]OFD Sender: No OFD packet to send [16:54:20]OFD Sender: No OFD packet to send [16:54:25]OFD Sender: No OFD packet to send [16:54:30]OFD Sender: No OFD packet to send [16:54:35]OFD Sender: No OFD packet to send [16:54:40]OFD Sender: No OFD packet to send [16:54:45]OFD Sender: No OFD packet to send [16:54:50]OFD Sender: No OFD packet to send [16:54:55]OFD Sender: No OFD packet to send [16:55:00]OFD Sender: No OFD packet to send [16:55:02]accept exits with 10 [16:55:02]New connection [16:55:02]New thread 3066994020 created [16:55:02]Thread 3067137380 joined [16:55:02]Waiting for new connection... [16:55:02] Sock 10.Parse request [16:55:02]Sock 10.Check first char [16:55:02]Sock 10.First char is OK [16:55:02]request: POST /json_proto HTTP/1.0 [16:55:02]Method: POST [16:55:02]URL: /json_proto [16:55:02]Method is POST - this is cgi request [16:55:02]url: /json_proto [16:55:02]query_string will be loaded in cgi processing [16:55:02]execute_cgi json_proto POST (null) [16:55:02]execute_cgi path=json_proto method=POST [16:55:02]POST find Content-Length [16:55:02]Host: 172.17.44.195:8080 [16:55:02]Content-Length: 660 [16:55:02]Content-Type: application/json [16:55:02] [16:55:02]POST finish read [16:55:02]Found Content-Length = 660 [16:55:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 11.700, "sum" : 800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:02]execute_script... [16:55:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 11.700, "sum" : 800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:02]POST & json_proto [16:55:02]process_json_proto [16:55:02]json parsed OK: [16:55:02]protocol is kg_v1.0 [16:55:02]action value=close_receipt [16:55:02]process_action close_receipt [16:55:02]cmd_close_receipt [16:55:02]MH_GetDate [16:55:02]Write to MH i2c: F0 00 00 99 5A E2 [16:55:02]Write i2c OK [16:55:02]MH_I2C_Read... [16:55:02]Read from MH i2c: F0 [16:55:02]MH_I2C_Read... [16:55:02]Read from MH i2c: F0 09 00 [16:55:02]MH_I2C_Read... [16:55:02]Read from MH i2c: F0 09 00 99 5A 00 EB D8 17 67 82 C9 CF 66 AC [16:55:02]GetLastDocTimeStamp 1729616009 [16:55:02]current date 1729616107 [16:55:02]FM_GetShiftState [16:55:02]SAM_PROTO_GetShiftState [16:55:02]wFMCommunicate request_size=4 [16:55:02]MH_SAM_APDU [16:55:02]CAPDU: 80 13 01 00 [16:55:02]Write to MH i2c: E2 08 00 9A 5A 80 13 01 00 00 00 00 00 71 [16:55:02]Write i2c OK [16:55:02]MH_I2C_Read... [16:55:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:02]Read from MH i2c: E2 [16:55:02]MH_I2C_Read... [16:55:02]Read from MH i2c: E2 0E 00 [16:55:02]MH_I2C_Read... [16:55:02]Read from MH i2c: E2 0E 00 9A 5A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 38 [16:55:02]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [16:55:02]wFMCommunicate OK [16:55:02]SAM_PROTO_GetShiftState done [16:55:02]FM_GetShiftState done [16:55:02]opened in 1729555538 [16:55:02]opened+sec_in_day 1729641938 [16:55:02]quantity*price = 80028 [16:55:02]sum+1 = 80029 [16:55:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 305 22.10.2024 16:55 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228341 ФПД: 221159633158724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T165507&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228341&fm=221159633158724&tin=02508201610067®Number=0000000000091685&sum=80000 [16:55:06]StoreToDocumentArchive [16:55:06]shift 535 fd 228341 [16:55:06]save to /storage/0535/doc_00228341 [16:55:06]save last doc name /storage/0535/doc_00228341 to /storage/kkm_last_doc_name [16:55:06]save OK [16:55:06]Clear old archive folders... [16:55:07]ProcessDocumentItem done err = 0, tmpTLVsize=244 [16:55:07]tlvbuf is 00E3D060 [16:55:07]SAM_PROTO_ClearQueue [16:55:07]wFMCommunicate request_size=4 [16:55:07]MH_SAM_APDU [16:55:07]CAPDU: 80 09 00 00 [16:55:07]Write to MH i2c: E2 08 00 A7 5A 80 09 00 00 00 00 00 00 73 [16:55:07]Write i2c OK [16:55:07]MH_I2C_Read... [16:55:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:07]Read from MH i2c: E2 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: E2 03 00 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: E2 03 00 A7 5A 00 90 00 75 [16:55:07]RAPDU: 90 00 [16:55:07]wFMCommunicate OK [16:55:07]SAM_PROTO_ClearQueue done [16:55:07]KKMCreateOFDPacket [16:55:07]OFDProtocolAddRootSTLVToBuf [16:55:07]FM_MakeSignedData [16:55:07]FM_MakeSignedData [16:55:07]SAM_PROTO_SignData [16:55:07]wFMCommunicate request_size=4 [16:55:07]MH_SAM_APDU [16:55:07]CAPDU: 80 0D 01 02 [16:55:07]Write to MH i2c: E2 08 00 A8 5A 80 0D 01 02 00 00 00 00 7B [16:55:07]Write i2c OK [16:55:07]MH_I2C_Read... [16:55:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:07]Read from MH i2c: E2 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: E2 03 00 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: E2 03 00 A8 5A 00 90 00 76 [16:55:07]RAPDU: 90 00 [16:55:07]wFMCommunicate OK [16:55:07]wFMCommunicate request_size=253 [16:55:07]MH_SAM_APDU [16:55:07]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 EB D8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F5 7B 03 00 35 04 06 00 C9 24 BD 5F 82 44 [16:55:08]Write to MH i2c: E2 00 01 A9 5A 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 EB D8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F5 7B 03 00 35 04 06 00 C9 24 BD 5F 82 44 00 00 1C [16:55:09]Write i2c OK [16:55:09]MH_I2C_Read... [16:55:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:09]Read from MH i2c: E2 [16:55:09]MH_I2C_Read... [16:55:09]Read from MH i2c: E2 03 00 [16:55:09]MH_I2C_Read... [16:55:09]Read from MH i2c: E2 03 00 A9 5A 00 90 00 77 [16:55:09]RAPDU: 90 00 [16:55:09]wFMCommunicate OK [16:55:09]wFMCommunicate request_size=4 [16:55:09]MH_SAM_APDU [16:55:09]CAPDU: 80 0D 03 02 [16:55:09]Write to MH i2c: E2 08 00 AA 5A 80 0D 03 02 00 00 00 00 7F [16:55:09]Write i2c OK [16:55:09]MH_I2C_Read... [16:55:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:09]Read from MH i2c: E2 [16:55:09]MH_I2C_Read... [16:55:09]Read from MH i2c: E2 0B 00 [16:55:09]MH_I2C_Read... [16:55:09]Read from MH i2c: E2 0B 00 AA 5A 00 CD 5C 88 30 ED 26 70 D1 90 00 B5 [16:55:09]RAPDU: CD 5C 88 30 ED 26 70 D1 90 00 [16:55:09]wFMCommunicate OK [16:55:09]SAM_PROTO_SignData done [16:55:09]FM_MakeSignedData done [16:55:09]CreateOFDProtocolMessage [16:55:09]wFMCommunicate request_size=4 [16:55:09]MH_SAM_APDU [16:55:09]CAPDU: 80 11 00 00 [16:55:09]Write to MH i2c: E2 08 00 AB 5A 80 11 00 00 00 00 00 00 7F [16:55:09]Write i2c OK [16:55:09]MH_I2C_Read... [16:55:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:09]Read from MH i2c: E2 [16:55:09]MH_I2C_Read... [16:55:09]Read from MH i2c: E2 17 00 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: E2 17 00 AB 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D6 [16:55:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:55:10]wFMCommunicate OK [16:55:10]CreateOFDProtocolMessage done [16:55:10]OFDSenderStorePacket 228341 [16:55:10]StoreOFDPacket docnum=228341 [16:55:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 8F 21 00 01 4D F3 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 EB D8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F5 7B 03 00 35 04 06 00 C9 24 BD 5F 82 44 CD 5C 88 30 ED 26 70 D1 [16:55:10]CheckFolder [16:55:10]dirname=/storage/ofd_packets [16:55:10]CheckFolder done [16:55:10]ProducePacketName [16:55:10]name=ofd_packets/00228341 [16:55:10]NVStorageSaveData ofd_packets/00228341 [16:55:10]File name is /storage/ofd_packets/00228341 [16:55:10]Write 294 bytes [16:55:10]NVStorageSaveData done [16:55:10]OFDSenderStorePacket done [16:55:10]KKMCreateOFDPacket done [16:55:10]NVStorageSaveData kkm_last_timestamp [16:55:10]File name is /storage/kkm_last_timestamp [16:55:10]Write 4 bytes [16:55:10]NVStorageSaveData done [16:55:10]ExternCall_PrintAddStr [16:55:10]wPrintStart [16:55:10]Write to MH i2c: 01 00 00 AC 5A 06 OFD Sender: Processing packet 228341 [packets to send 38, broken 37] [16:55:10] [16:55:10]ProducePacketName [16:55:10]Write i2c OK [16:55:10]name=ofd_packets/00228341 [16:55:10]MH_I2C_Read... [16:55:10]OFD Sender: To server: pG, [16:55:10]Read from MH i2c: CommunicateWithHost lk.salyk.kg:30040 [16:55:10]ConnectInit lk.salyk.kg [16:55:10]01 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: 01 07 00 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: 01 07 00 AC 5A 00 00 00 00 00 FF 0F 1B [16:55:10]RasterBufferAndPrint [16:55:10]line Счет N : (1)1964841 [16:55:10]line ИНН: 02508201610067 [16:55:10]line Контрольно-Кассовый Чек [16:55:10]line ПРОДАЖА [16:55:10]line ТРК (МРК, ГНК) : 32 [16:55:10]line Товар: 2710124130 [16:55:10]line SU-92 [16:55:10]line 11.700 * 68.40 [16:55:10]line = 800.28 [16:55:10]line НДС 12% НСП 1% [16:55:10]line > о реализуемом товаре [16:55:10]line ОКРУГЛЕНИЕ: -0.28 [16:55:10]line ИТОГО: 800.00 [16:55:10]line Внесено: 800.00 [16:55:10]line СДАЧА: 0.00 [16:55:10]line НСП 1% : 7.08 [16:55:10]line НДС 12% : 84.98 [16:55:10]line Наличными: 800.00 [16:55:10]line Безнал.: 0.00 [16:55:10]line Место: АЗС № 133 "Партнер Нефть" [16:55:10]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [16:55:10]line СНО: Общий режим [16:55:10]line Чек 305 22.10.2024 16:55 [16:55:10]line Смена: 535 ФФД: 1.0 [16:55:10]line ЗНМ: 0300000091 [16:55:10]line РНМ: 0000000000091685 [16:55:10]line Версия ККМ: 001 [16:55:10]line ФМ: 0000000000871839 [16:55:10]line ФД: 228341 [16:55:10]line ФПД: 221159633158724 [16:55:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T165507&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228341&fm=221159633158724&tin=02508201610067®Number=0000000000091685&sum=80000 [16:55:10]Connected sock=11 [16:55:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 8F 21 written 0, free lines is 4095 [16:55:10]00 01 4D F3 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 Write to MH i2c: 01 01 F3 00 03 06 00 32 00 21 D6 00 5A 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 30 31 [16:55:11]01 00 00 Write i2c OK [16:55:11]F4 MH_I2C_Read... [16:55:11]03 Read from MH i2c: 04 00 EB D8 01 17 [16:55:11]67 MH_I2C_Read... [16:55:11]0E 04 04 00 Read from MH i2c: 17 01 02 07 00 00 B9 04 00 01 [16:55:11]00 MH_I2C_Read... [16:55:11]01 0D 04 10 Read from MH i2c: 00 01 30 07 00 D6 5A 30 00 30 00 30 00 00 00 27 30 0E 30 6C 30 [16:55:11]RasterBufferAndPrint [16:55:11]line [16:55:11]line [16:55:11]30 line [16:55:11]30 30 30 39 31 36 38 35 11 line [16:55:11]04 line [16:55:12]10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 written 0, free lines is 4050 [16:55:12]04 00 F5 7B MH_Cut [16:55:12]03 Write to MH i2c: D1 01 00 00 DD 35 04 06 00 5A C9 01 24 09 BD 5F 82 44 [16:55:12]CD Write i2c OK [16:55:12]5C MH_I2C_Read... [16:55:12]88 30 ED Read from MH i2c: 26 D1 [16:55:12]MH_I2C_Read... [16:55:12]70 D1 [16:55:12]Read from MH i2c: D1 01 00 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: D1 01 00 DD 5A 00 08 [16:55:12]Write to MH i2c: 01 00 00 DE 5A 38 [16:55:12]Write i2c OK [16:55:12]MH_I2C_Read... [16:55:12]*** Cut start [16:55:12]*** Partial cut [16:55:12]*** CUTSNS_PIN = 1 [16:55:12]*** CUTSNS_PIN = 0 [16:55:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 E4 B2 47 00 D8 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 *** Brake cut motor [16:55:12]10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F5 7B 03 00 F4 03 04 00 EA 83 17 67 *** Stop cut motor [16:55:13]B6 *** Cut end [16:55:13]Read from MH i2c: 01 [16:55:13]MH_I2C_Read... [16:55:13]04 01 00 00 BD 65 33 E4 04 00 F5 AA Read from MH i2c: [16:55:13]01 CommunicateWithHost err = 0 [16:55:13]07 CheckOFDResponse [16:55:13]1017 (14) - 77093643461234 [16:55:13]1041 (16) - 0000000000871839 [16:55:13]00 [16:55:13]1040 (4) - 228341 [16:55:13]1012 (4) - 22.10.2024 10:52 [16:55:13]1206 (1) - 0 [16:55:13]OFD Sender: Remove packet 228341 [16:55:13]MH_I2C_Read... [16:55:13]ProducePacketName [16:55:13]Read from MH i2c: 01 name=ofd_packets/00228341 [16:55:13]07 NVStorageDeleteData [16:55:13]00 DE 5A 00 00 00 00 00 FF 0F 4D [16:55:13]process_action close_receipt done [16:55:13]requested_data is exist [16:55:13]produce_requested_data [16:55:13]requested_item fm.sn is exist - process it [16:55:13]wFMCommunicate request_size=4 [16:55:13]MH_SAM_APDU [16:55:13]CAPDU: 80 11 00 00 [16:55:13]Write to MH i2c: E2 08 00 DF 5A 80 11 00 00 00 00 00 00 B3 [16:55:13]Write i2c OK [16:55:13]MH_I2C_Read... [16:55:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:13]Read from MH i2c: E2 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: E2 17 00 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: E2 17 00 DF 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0A [16:55:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:55:13]wFMCommunicate OK [16:55:13]requested_item fd.num is exist - process it [16:55:13]SAM_PROTO_GetFieldsCounters [16:55:13]wFMCommunicate request_size=4 [16:55:13]MH_SAM_APDU [16:55:13]CAPDU: 80 13 00 00 [16:55:13]Write to MH i2c: E2 08 00 E0 5A 80 13 00 00 00 00 00 00 B6 [16:55:13]Write i2c OK [16:55:13]OFD Sender: No OFD packet to send [16:55:13]MH_I2C_Read... [16:55:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:13]Read from MH i2c: E2 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: E2 62 00 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: E2 62 00 E0 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F5 7B 03 00 0E 04 04 00 17 02 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 01 [16:55:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F5 7B 03 00 0E 04 04 00 17 02 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 [16:55:14]wFMCommunicate OK [16:55:14]SAM_PROTO_GetFieldsCounters done [16:55:14]requested_item shift.num is exist - process it [16:55:14]requested_item shift.opened is exist - process it [16:55:14]req_shift_opened [16:55:14]FM_GetShiftState [16:55:14]SAM_PROTO_GetShiftState [16:55:14]wFMCommunicate request_size=4 [16:55:14]MH_SAM_APDU [16:55:14]CAPDU: 80 13 01 00 [16:55:14]Write to MH i2c: E2 08 00 E1 5A 80 13 01 00 00 00 00 00 B8 [16:55:14]Write i2c OK [16:55:14]MH_I2C_Read... [16:55:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:14]Read from MH i2c: E2 [16:55:14]MH_I2C_Read... [16:55:14]Read from MH i2c: E2 0E 00 [16:55:14]MH_I2C_Read... [16:55:14]Read from MH i2c: E2 0E 00 E1 5A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 7F [16:55:14]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [16:55:15]wFMCommunicate OK [16:55:15]SAM_PROTO_GetShiftState done [16:55:15]FM_GetShiftState done [16:55:15]req_shift_opened done [16:55:15]requested_item shift.open_date is exist - process it [16:55:15]req_shift_open_date [16:55:15]req_shift_open_date done [16:55:15]produce_requested_data done [16:55:15]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228341,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [16:55:15]process_action_free close_receipt [16:55:15]json_value_free [16:55:15]json_value_free done [16:55:15]process_json_proto returns [16:55:15]Send response to host [16:55:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228341,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [16:55:15]free response buf [16:55:15]execute_script done [16:55:15]execute_script returns [16:55:15]free content buf [16:55:15]Sock 10.Close socket [16:55:15]Sock 10.Thread stoped [16:55:18]OFD Sender: No OFD packet to send [16:55:23]OFD Sender: No OFD packet to send [16:55:28]OFD Sender: No OFD packet to send [16:55:33]OFD Sender: No OFD packet to send [16:55:38]OFD Sender: No OFD packet to send [16:55:43]OFD Sender: No OFD packet to send [16:55:48]OFD Sender: No OFD packet to send [16:55:52]ConnectInit Can't connect to host [16:55:53]OFD Sender: No OFD packet to send [16:55:58]OFD Sender: No OFD packet to send [16:56:03]OFD Sender: No OFD packet to send [16:56:08]OFD Sender: No OFD packet to send [16:56:13]OFD Sender: No OFD packet to send [16:56:18]OFD Sender: No OFD packet to send [16:56:23]OFD Sender: No OFD packet to send [16:56:28]OFD Sender: No OFD packet to send [16:56:33]OFD Sender: No OFD packet to send [16:56:38]OFD Sender: No OFD packet to send [16:56:43]OFD Sender: No OFD packet to send [16:56:48]OFD Sender: No OFD packet to send [16:56:53]OFD Sender: No OFD packet to send [16:56:58]OFD Sender: No OFD packet to send [16:57:03]OFD Sender: No OFD packet to send [16:57:08]OFD Sender: No OFD packet to send [16:57:13]OFD Sender: No OFD packet to send [16:57:19]OFD Sender: No OFD packet to send [16:57:24]OFD Sender: No OFD packet to send [16:57:29]OFD Sender: No OFD packet to send [16:57:34]OFD Sender: No OFD packet to send [16:57:39]OFD Sender: No OFD packet to send [16:57:44]OFD Sender: No OFD packet to send [16:57:49]OFD Sender: No OFD packet to send [16:57:54]OFD Sender: No OFD packet to send [16:57:59]OFD Sender: No OFD packet to send [16:58:03]accept exits with 9 [16:58:03]New connection [16:58:03]New thread 3067137380 created [16:58:03]Thread 3066994020 joined [16:58:03]Waiting for new connection... [16:58:03] Sock 9.Parse request [16:58:03]Sock 9.Check first char [16:58:03]Sock 9.First char is OK [16:58:03]request: POST /json_proto HTTP/1.0 [16:58:03]Method: POST [16:58:03]URL: /json_proto [16:58:03]Method is POST - this is cgi request [16:58:03]url: /json_proto [16:58:03]query_string will be loaded in cgi processing [16:58:03]execute_cgi json_proto POST (null) [16:58:03]execute_cgi path=json_proto method=POST [16:58:03]POST find Content-Length [16:58:03]Host: 172.17.44.195:8080 [16:58:03]Content-Length: 678 [16:58:03]Content-Type: application/json [16:58:03] [16:58:03]POST finish read [16:58:03]Found Content-Length = 678 [16:58:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 2.700, "sum" : 200.34, "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" ] } } [16:58:03]execute_script... [16:58:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 2.700, "sum" : 200.34, "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" ] } } [16:58:03]POST & json_proto [16:58:03]process_json_proto [16:58:03]json parsed OK: [16:58:03]protocol is kg_v1.0 [16:58:03]action value=close_receipt [16:58:03]process_action close_receipt [16:58:03]cmd_close_receipt [16:58:03]MH_GetDate [16:58:03]Write to MH i2c: F0 00 00 E2 5A 2B [16:58:03]Write i2c OK [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: F0 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: F0 09 00 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: F0 09 00 E2 5A 00 A0 D9 17 67 82 C9 CF 66 AB [16:58:03]GetLastDocTimeStamp 1729616107 [16:58:03]current date 1729616288 [16:58:03]FM_GetShiftState [16:58:03]SAM_PROTO_GetShiftState [16:58:03]wFMCommunicate request_size=4 [16:58:03]MH_SAM_APDU [16:58:03]CAPDU: 80 13 01 00 [16:58:03]Write to MH i2c: E2 08 00 E3 5A 80 13 01 00 00 00 00 00 BA [16:58:03]Write i2c OK [16:58:03]MH_I2C_Read... [16:58:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:03]Read from MH i2c: E2 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: E2 0E 00 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: E2 0E 00 E3 5A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 81 [16:58:03]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [16:58:04]wFMCommunicate OK [16:58:04]SAM_PROTO_GetShiftState done [16:58:04]FM_GetShiftState done [16:58:04]opened in 1729555538 [16:58:04]opened+sec_in_day 1729641938 [16:58:04]quantity*price = 20034 [16:58:04]sum+1 = 20035 [16:58:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 306 22.10.2024 16:58 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228342 ФПД: 121193503859975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T165809&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228342&fm=121193503859975&tin=02508201610067®Number=0000000000091685&sum=20000 [16:58:08]StoreToDocumentArchive [16:58:08]shift 535 fd 228342 [16:58:08]save to /storage/0535/doc_00228342 [16:58:08]save last doc name /storage/0535/doc_00228342 to /storage/kkm_last_doc_name [16:58:08]save OK [16:58:08]Clear old archive folders... [16:58:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:58:08]tlvbuf is 00E1ACE0 [16:58:08]SAM_PROTO_ClearQueue [16:58:08]wFMCommunicate request_size=4 [16:58:08]MH_SAM_APDU [16:58:08]CAPDU: 80 09 00 00 [16:58:08]Write to MH i2c: E2 08 00 F0 5A 80 09 00 00 00 00 00 00 BC [16:58:08]Write i2c OK [16:58:08]MH_I2C_Read... [16:58:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:58:08]Read from MH i2c: E2 [16:58:08]MH_I2C_Read... [16:58:08]Read from MH i2c: E2 03 00 [16:58:08]MH_I2C_Read... [16:58:08]Read from MH i2c: E2 03 00 F0 5A 00 90 00 BE [16:58:08]RAPDU: 90 00 [16:58:08]wFMCommunicate OK [16:58:08]SAM_PROTO_ClearQueue done [16:58:08]KKMCreateOFDPacket [16:58:08]OFDProtocolAddRootSTLVToBuf [16:58:08]FM_MakeSignedData [16:58:08]FM_MakeSignedData [16:58:08]SAM_PROTO_SignData [16:58:08]wFMCommunicate request_size=4 [16:58:08]MH_SAM_APDU [16:58:08]CAPDU: 80 0D 01 02 [16:58:08]Write to MH i2c: E2 08 00 F1 5A 80 0D 01 02 00 00 00 00 C4 [16:58:08]Write i2c OK [16:58:08]MH_I2C_Read... [16:58:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:58:08]Read from MH i2c: E2 [16:58:08]MH_I2C_Read... [16:58:08]Read from MH i2c: E2 03 00 [16:58:09]MH_I2C_Read... [16:58:09]Read from MH i2c: E2 03 00 F1 5A 00 90 00 BF [16:58:09]RAPDU: 90 00 [16:58:09]wFMCommunicate OK [16:58:09]wFMCommunicate request_size=255 [16:58:09]MH_SAM_APDU [16:58: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 OFD Sender: No OFD packet to send [16:58:09]2D 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 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 4F 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 32 01 00 00 F4 03 04 00 A1 D9 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F6 7B 03 00 35 04 06 00 6E [16:58:10]Write to MH i2c: E2 02 01 F2 5A 80 0D 02 02 FA 00 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 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 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 4F 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 32 01 00 00 F4 03 04 00 A1 D9 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F6 7B 03 00 35 04 06 00 ConnectInit Can't connect to host [16:58:11]6E 00 00 22 [16:58:11]Write i2c OK [16:58:11]MH_I2C_Read... [16:58:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:11]Read from MH i2c: E2 [16:58:11]MH_I2C_Read... [16:58:11]Read from MH i2c: E2 03 00 [16:58:11]MH_I2C_Read... [16:58:11]Read from MH i2c: E2 03 00 F2 5A 00 90 00 C0 [16:58:11]RAPDU: 90 00 [16:58:11]wFMCommunicate OK [16:58:11]wFMCommunicate request_size=10 [16:58:11]MH_SAM_APDU [16:58:11]CAPDU: 80 0D 02 02 05 39 8F BF 25 07 [16:58:11]Write to MH i2c: E2 0D 00 F3 5A 80 0D 02 02 05 00 39 8F BF 25 07 00 00 84 [16:58:11]Write i2c OK [16:58:11]MH_I2C_Read... [16:58:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:11]Read from MH i2c: E2 [16:58:11]MH_I2C_Read... [16:58:11]Read from MH i2c: E2 03 00 [16:58:11]MH_I2C_Read... [16:58:11]Read from MH i2c: E2 03 00 F3 5A 00 90 00 C1 [16:58:11]RAPDU: 90 00 [16:58:11]wFMCommunicate OK [16:58:11]wFMCommunicate request_size=4 [16:58:11]MH_SAM_APDU [16:58:11]CAPDU: 80 0D 03 02 [16:58:11]Write to MH i2c: E2 08 00 F4 5A 80 0D 03 02 00 00 00 00 C9 [16:58:11]Write i2c OK [16:58:11]MH_I2C_Read... [16:58:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:58:11]Read from MH i2c: E2 [16:58:11]MH_I2C_Read... [16:58:11]Read from MH i2c: E2 0B 00 [16:58:11]MH_I2C_Read... [16:58:11]Read from MH i2c: E2 0B 00 F4 5A 00 CC A1 FC EB 22 0B 4F EE 90 00 88 [16:58:11]RAPDU: CC A1 FC EB 22 0B 4F EE 90 00 [16:58:11]wFMCommunicate OK [16:58:11]SAM_PROTO_SignData done [16:58:11]FM_MakeSignedData done [16:58:11]CreateOFDProtocolMessage [16:58:11]wFMCommunicate request_size=4 [16:58:11]MH_SAM_APDU [16:58:11]CAPDU: 80 11 00 00 [16:58:11]Write to MH i2c: E2 08 00 F5 5A 80 11 00 00 00 00 00 00 C9 [16:58:12]Write i2c OK [16:58:12]MH_I2C_Read... [16:58:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:12]Read from MH i2c: E2 [16:58:12]MH_I2C_Read... [16:58:12]Read from MH i2c: E2 17 00 [16:58:12]MH_I2C_Read... [16:58:12]Read from MH i2c: E2 17 00 F5 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 20 [16:58:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:58:12]wFMCommunicate OK [16:58:12]CreateOFDProtocolMessage done [16:58:12]OFDSenderStorePacket 228342 [16:58:12]StoreOFDPacket docnum=228342 [16:58:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 4B D4 07 01 98 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 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 4F 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 32 01 00 00 F4 03 04 00 A1 D9 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F6 7B 03 00 35 04 06 00 6E 39 8F BF 25 07 CC A1 FC EB 22 0B 4F EE [16:58:12]CheckFolder [16:58:12]dirname=/storage/ofd_packets [16:58:12]CheckFolder done [16:58:12]ProducePacketName [16:58:12]name=ofd_packets/00228342 [16:58:12]NVStorageSaveData ofd_packets/00228342 [16:58:12]File name is /storage/ofd_packets/00228342 [16:58:12]Write 301 bytes [16:58:12]NVStorageSaveData done [16:58:12]OFDSenderStorePacket done [16:58:12]KKMCreateOFDPacket done [16:58:12]NVStorageSaveData kkm_last_timestamp [16:58:12]File name is /storage/kkm_last_timestamp [16:58:12]Write 4 bytes [16:58:12]NVStorageSaveData done [16:58:12]ExternCall_PrintAddStr [16:58:12]wPrintStart [16:58:12]Write to MH i2c: 01 00 00 F6 5A 50 [16:58:12]Write i2c OK [16:58:12]MH_I2C_Read... [16:58:12]Read from MH i2c: 01 [16:58:12]MH_I2C_Read... [16:58:12]Read from MH i2c: 01 07 00 [16:58:12]MH_I2C_Read... [16:58:12]OFD Sender: Processing packet 228342 [packets to send 38, broken 37] [16:58:12]ProducePacketName [16:58:12]name=ofd_packets/00228342 [16:58:12]OFD Sender: To server: pG, [16:58:12]CommunicateWithHost lk.salyk.kg:30040 [16:58:12]ConnectInit lk.salyk.kg [16:58:12]Read from MH i2c: 01 07 00 F6 5A 00 00 00 00 00 FF 0F 65 [16:58:12]RasterBufferAndPrint [16:58:12]line Счет N : (1)1964843 [16:58:12]line ИНН: 02508201610067 [16:58:12]line Контрольно-Кассовый Чек [16:58:12]line ПРОДАЖА [16:58:12]line ТРК (МРК, ГНК) : 34 [16:58:12]line Товар: 2710124500 [16:58:12]line Аи-95-К-5 [16:58:12]line 2.700 * 74.20 [16:58:12]line = 200.34 [16:58:12]line НДС 12% НСП 1% [16:58:12]line > о реализуемом товаре [16:58:12]line ОКРУГЛЕНИЕ: -0.34 [16:58:12]line ИТОГО: 200.00 [16:58:12]line Внесено: 200.00 [16:58:12]line СДАЧА: 0.00 [16:58:12]line НСП 1% : 1.77 [16:58:12]line НДС 12% : 21.27 [16:58:12]Connected sock=7 [16:58:12]line Наличными: 200.00 [16:58:12]Data to sent: line Безнал.: 0.00 [16:58:12]87 line Место: АЗС № 133 "Партнер Нефть" [16:58:12]95 line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [16:58:12]line СНО: Общий режим [16:58:12]line Чек 306 22.10.2024 16:58 [16:58:12]line Смена: 535 ФФД: 1.0 [16:58:12]F6 line ЗНМ: 0300000091 [16:58:12]70 47 line РНМ: 0000000000091685 [16:58:12]2C line Версия ККМ: 001 [16:58:12]01 line ФМ: 0000000000871839 [16:58:12]line ФД: 228342 [16:58:12]line ФПД: 121193503859975 [16:58:12]00 line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T165809&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228342&fm=121193503859975&tin=02508201610067®Number=0000000000091685&sum=20000 [16:58:12]30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F written 0, free lines is 4095 [16:58:12]01 00 00 4B D4 07 01 98 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 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 Write to MH i2c: F7 01 03 00 06 00 00 20 B1 00 00 00 5B 00 7B 00 [16:58:13]EE 03 0F 00 Write i2c OK [16:58:13]F2 MH_I2C_Read... [16:58:13]03 01 Read from MH i2c: 00 01 01 [16:58:13]F3 03 06 00 MH_I2C_Read... [16:58:13]4F Read from MH i2c: 08 01 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 07 00 00 00 00 00 00 [16:58:13]00 MH_I2C_Read... [16:58:13]1F 04 02 00 Read from MH i2c: 01 01 00 07 12 04 04 00 00 20 32 5B 01 00 00 F4 00 03 00 00 04 00 00 00 27 A1 0D D9 17 67 B6 0E [16:58:13]04 RasterBufferAndPrint [16:58:13]line [16:58:13]line [16:58:13]04 line [16:58:13]00 line [16:58:13]17 line [16:58:13]02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 written 0, free lines is 3938 [16:58:14]30 39 31 36 38 MH_Cut [16:58:14]35 Write to MH i2c: 11 D1 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F6 7B 03 00 35 04 06 00 6E 01 39 00 8F 27 BF 25 07 CC 5B A1 01 FC 54 EB [16:58:14]22 Write i2c OK [16:58:14]*** Cut start [16:58:14]MH_I2C_Read... [16:58:14]*** Partial cut [16:58:14]*** CUTSNS_PIN = 1 [16:58:14]0B Read from MH i2c: 4F D1 *** CUTSNS_PIN = 0 [16:58:14] [16:58:14]MH_I2C_Read... [16:58:14]EE [16:58:14]Read from MH i2c: D1 01 00 [16:58:14]MH_I2C_Read... [16:58:14]Read from MH i2c: D1 01 00 27 5B 00 53 [16:58:14]Write to MH i2c: 01 00 00 28 5B 83 [16:58:14]Write i2c OK [16:58:14]MH_I2C_Read... [16:58:14]Received data: 87 95 *** Brake cut motor [16:58:14]F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 B1 B8 47 00 24 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 Read from MH i2c: 30 01 *** Stop cut motor [16:58:15] [16:58:15]*** Cut end [16:58:15]MH_I2C_Read... [16:58:15]30 Read from MH i2c: 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F6 7B 03 00 F4 03 04 00 A1 84 17 67 B6 04 01 01 00 07 00 [16:58:15]MH_I2C_Read... [16:58:15]00 Read from MH i2c: 24 C1 2B 01 29 07 4A 00 82 62 D1 [16:58:15]28 CommunicateWithHost err = 0 [16:58:15]5B CheckOFDResponse [16:58:15]00 1017 (14) - 77093643461234 [16:58:15]1041 (16) - 0000000000871839 [16:58:15]1040 (4) - 228342 [16:58:15]00 1012 (4) - 22.10.2024 10:55 [16:58:15]00 1206 (1) - 0 [16:58:15]00 OFD Sender: Remove packet 228342 [16:58:15]ProducePacketName [16:58:15]name=ofd_packets/00228342 [16:58:15]NVStorageDeleteData [16:58:15]00 FF 0F 98 [16:58:15]process_action close_receipt done [16:58:15]requested_data is exist [16:58:15]produce_requested_data [16:58:15]requested_item fm.sn is exist - process it [16:58:15]wFMCommunicate request_size=4 [16:58:15]MH_SAM_APDU [16:58:15]CAPDU: 80 11 00 00 [16:58:15]Write to MH i2c: E2 08 00 29 5B 80 11 00 00 00 00 00 00 FE [16:58:15]Write i2c OK [16:58:15]MH_I2C_Read... [16:58:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:15]Read from MH i2c: E2 [16:58:15]MH_I2C_Read... [16:58:15]Read from MH i2c: E2 17 00 [16:58:15]MH_I2C_Read... [16:58:15]Read from MH i2c: E2 17 00 29 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 55 [16:58:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:58:15]wFMCommunicate OK [16:58:15]requested_item fd.num is exist - process it [16:58:15]SAM_PROTO_GetFieldsCounters [16:58:15]wFMCommunicate request_size=4 [16:58:15]MH_SAM_APDU [16:58:15]CAPDU: 80 13 00 00 [16:58:15]Write to MH i2c: E2 08 00 2A 5B 80 13 00 00 00 00 00 00 01 [16:58:15]Write i2c OK [16:58:15]MH_I2C_Read... [16:58:15]OFD Sender: No OFD packet to send [16:58:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:58:16]Read from MH i2c: E2 [16:58:16]MH_I2C_Read... [16:58:16]Read from MH i2c: E2 62 00 [16:58:16]MH_I2C_Read... [16:58:16]Read from MH i2c: E2 62 00 2A 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F6 7B 03 00 0E 04 04 00 17 02 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 50 [16:58:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F6 7B 03 00 0E 04 04 00 17 02 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 [16:58:16]wFMCommunicate OK [16:58:16]SAM_PROTO_GetFieldsCounters done [16:58:16]requested_item shift.num is exist - process it [16:58:16]requested_item shift.opened is exist - process it [16:58:16]req_shift_opened [16:58:16]FM_GetShiftState [16:58:16]SAM_PROTO_GetShiftState [16:58:16]wFMCommunicate request_size=4 [16:58:16]MH_SAM_APDU [16:58:16]CAPDU: 80 13 01 00 [16:58:16]Write to MH i2c: E2 08 00 2B 5B 80 13 01 00 00 00 00 00 03 [16:58:16]Write i2c OK [16:58:16]MH_I2C_Read... [16:58:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:16]Read from MH i2c: E2 [16:58:16]MH_I2C_Read... [16:58:16]Read from MH i2c: E2 0E 00 [16:58:16]MH_I2C_Read... [16:58:17]Read from MH i2c: E2 0E 00 2B 5B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 CA [16:58:17]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [16:58:17]wFMCommunicate OK [16:58:17]SAM_PROTO_GetShiftState done [16:58:17]FM_GetShiftState done [16:58:17]req_shift_opened done [16:58:17]requested_item shift.open_date is exist - process it [16:58:17]req_shift_open_date [16:58:17]req_shift_open_date done [16:58:17]produce_requested_data done [16:58:17]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228342,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [16:58:17]process_action_free close_receipt [16:58:17]json_value_free [16:58:17]json_value_free done [16:58:17]process_json_proto returns [16:58:17]Send response to host [16:58:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228342,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [16:58:17]free response buf [16:58:17]execute_script done [16:58:17]execute_script returns [16:58:17]free content buf [16:58:17]Sock 9.Close socket [16:58:17]Sock 9.Thread stoped [16:58:20]OFD Sender: No OFD packet to send [16:58:25]OFD Sender: No OFD packet to send [16:58:30]OFD Sender: No OFD packet to send [16:58:35]OFD Sender: No OFD packet to send [16:58:40]OFD Sender: No OFD packet to send [16:58:45]OFD Sender: No OFD packet to send [16:58:51]OFD Sender: No OFD packet to send [16:58:56]OFD Sender: No OFD packet to send [16:59:01]OFD Sender: No OFD packet to send [16:59:06]OFD Sender: No OFD packet to send [16:59:11]OFD Sender: No OFD packet to send [16:59:16]OFD Sender: No OFD packet to send [16:59:21]OFD Sender: No OFD packet to send [16:59:26]OFD Sender: No OFD packet to send [16:59:31]OFD Sender: No OFD packet to send [16:59:36]OFD Sender: No OFD packet to send [16:59:41]OFD Sender: No OFD packet to send [16:59:46]OFD Sender: No OFD packet to send [16:59:51]OFD Sender: No OFD packet to send [16:59:56]OFD Sender: No OFD packet to send [17:00:01]OFD Sender: No OFD packet to send [17:00:06]OFD Sender: No OFD packet to send [17:00:11]OFD Sender: No OFD packet to send [17:00:16]OFD Sender: No OFD packet to send [17:00:21]OFD Sender: No OFD packet to send [17:00:26]OFD Sender: No OFD packet to send [17:00:29]ConnectInit Can't connect to host [17:00:31]OFD Sender: No OFD packet to send [17:00:36]OFD Sender: No OFD packet to send [17:00:41]OFD Sender: No OFD packet to send [17:00:46]OFD Sender: No OFD packet to send [17:00:51]OFD Sender: No OFD packet to send [17:00:56]OFD Sender: No OFD packet to send [17:00:56]accept exits with 10 [17:00:56]New connection [17:00:56]New thread 3066994020 created [17:00:56]Thread 3067137380 joined [17:00:56]Waiting for new connection... [17:00:56] Sock 10.Parse request [17:00:56]Sock 10.Check first char [17:00:56]Sock 10.First char is OK [17:00:56]request: POST /json_proto HTTP/1.0 [17:00:56]Method: POST [17:00:56]URL: /json_proto [17:00:56]Method is POST - this is cgi request [17:00:56]url: /json_proto [17:00:56]query_string will be loaded in cgi processing [17:00:56]execute_cgi json_proto POST (null) [17:00:56]execute_cgi path=json_proto method=POST [17:00:56]POST find Content-Length [17:00:56]Host: 172.17.44.195:8080 [17:00:56]Content-Length: 680 [17:00:56]Content-Type: application/json [17:00:56] [17:00:56]POST finish read [17:00:56]Found Content-Length = 680 [17:00:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964844", "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" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:00:56]execute_script... [17:00: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)1964844", "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" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:00:56]POST & json_proto [17:00:56]process_json_proto [17:00:56]json parsed OK: [17:00:56]protocol is kg_v1.0 [17:00:56]action value=close_receipt [17:00:56]process_action close_receipt [17:00:56]cmd_close_receipt [17:00:56]MH_GetDate [17:00:56]Write to MH i2c: F0 00 00 2C 5B 76 [17:00:56]Write i2c OK [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: F0 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: F0 09 00 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: F0 09 00 2C 5B 00 4D DA 17 67 82 C9 CF 66 A4 [17:00:56]GetLastDocTimeStamp 1729616289 [17:00:56]current date 1729616461 [17:00:56]FM_GetShiftState [17:00:56]SAM_PROTO_GetShiftState [17:00:56]wFMCommunicate request_size=4 [17:00:56]MH_SAM_APDU [17:00:56]CAPDU: 80 13 01 00 [17:00:56]Write to MH i2c: E2 08 00 2D 5B 80 13 01 00 00 00 00 00 05 [17:00:57]Write i2c OK [17:00:57]MH_I2C_Read... [17:00:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:57]Read from MH i2c: E2 [17:00:57]MH_I2C_Read... [17:00:57]Read from MH i2c: E2 0E 00 [17:00:57]MH_I2C_Read... [17:00:57]Read from MH i2c: E2 0E 00 2D 5B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 CC [17:00:57]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:00:57]wFMCommunicate OK [17:00:57]SAM_PROTO_GetShiftState done [17:00:57]FM_GetShiftState done [17:00:57]opened in 1729555538 [17:00:57]opened+sec_in_day 1729641938 [17:00:57]quantity*price = 200025 [17:00:57]sum+1 = 200026 [17:00:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 307 22.10.2024 17:01 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228343 ФПД: 108944849548255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170102&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228343&fm=108944849548255&tin=02508201610067®Number=0000000000091685&sum=200000 [17:01:01]StoreToDocumentArchive [17:01:01]shift 535 fd 228343 [17:01:01]save to /storage/0535/doc_00228343 [17:01:01]save last doc name /storage/0535/doc_00228343 to /storage/kkm_last_doc_name [17:01:01]save OK [17:01:01]Clear old archive folders... [17:01:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:01:01]tlvbuf is 00B09190 [17:01:01]SAM_PROTO_ClearQueue [17:01:01]wFMCommunicate request_size=4 [17:01:01]MH_SAM_APDU [17:01:01]CAPDU: 80 09 00 00 [17:01:01]Write to MH i2c: E2 08 00 3A 5B 80 09 00 00 00 00 00 00 07 [17:01:01]Write i2c OK [17:01:01]MH_I2C_Read... [17:01:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:01:02]Read from MH i2c: E2 [17:01:02]MH_I2C_Read... [17:01:02]Read from MH i2c: E2 03 00 [17:01:02]MH_I2C_Read... [17:01:02]Read from MH i2c: E2 03 00 3A 5B 00 90 00 09 [17:01:02]RAPDU: 90 00 [17:01:02]wFMCommunicate OK [17:01:02]SAM_PROTO_ClearQueue done [17:01:02]KKMCreateOFDPacket [17:01:02]OFDProtocolAddRootSTLVToBuf [17:01:02]FM_MakeSignedData [17:01:02]FM_MakeSignedData [17:01:02]SAM_PROTO_SignData [17:01:02]wFMCommunicate request_size=4 [17:01:02]MH_SAM_APDU [17:01:02]CAPDU: 80 0D 01 02 [17:01:02]Write to MH i2c: E2 08 00 3B 5B 80 0D 01 02 00 00 00 00 0F [17:01:02]Write i2c OK [17:01:02]MH_I2C_Read... [17:01:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:01:02]Read from MH i2c: E2 [17:01:02]MH_I2C_Read... [17:01:02]Read from MH i2c: E2 03 00 [17:01:02]MH_I2C_Read... [17:01:02]Read from MH i2c: E2 03 00 3B 5B 00 90 00 0A [17:01:02]RAPDU: 90 00 [17:01:02]wFMCommunicate OK [17:01:02]wFMCommunicate request_size=255 [17:01:02]MH_SAM_APDU [17:01: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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 33 01 00 00 F4 03 04 00 4E DA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F7 7B 03 00 35 04 06 00 63 15 B3 0E [17:01:03]Write to MH i2c: E2 02 01 3C 5B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 33 01 00 00 F4 03 04 00 4E DA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F7 7B 03 00 35 04 06 00 63 15 B3 0E 00 00 2B [17:01:04]Write i2c OK [17:01:04]MH_I2C_Read... [17:01:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:04]Read from MH i2c: E2 [17:01:04]MH_I2C_Read... [17:01:04]Read from MH i2c: E2 03 00 [17:01:04]MH_I2C_Read... [17:01:04]Read from MH i2c: E2 03 00 3C 5B 00 90 00 0B [17:01:04]RAPDU: 90 00 [17:01:04]wFMCommunicate OK [17:01:04]wFMCommunicate request_size=7 [17:01:04]MH_SAM_APDU [17:01:04]CAPDU: 80 0D 02 02 02 B3 DF [17:01:04]Write to MH i2c: E2 0A 00 3D 5B 80 0D 02 02 02 00 B3 DF 00 00 A8 [17:01:04]Write i2c OK [17:01:04]MH_I2C_Read... [17:01:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:04]Read from MH i2c: E2 [17:01:04]MH_I2C_Read... [17:01:04]Read from MH i2c: E2 03 00 [17:01:04]MH_I2C_Read... [17:01:04]Read from MH i2c: E2 03 00 3D 5B 00 90 00 0C [17:01:04]RAPDU: 90 00 [17:01:04]wFMCommunicate OK [17:01:04]wFMCommunicate request_size=4 [17:01:04]MH_SAM_APDU [17:01:04]CAPDU: 80 0D 03 02 [17:01:04]Write to MH i2c: E2 08 00 3E 5B 80 0D 03 02 00 00 00 00 14 [17:01:04]Write i2c OK [17:01:04]MH_I2C_Read... [17:01:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:01:04]Read from MH i2c: E2 [17:01:04]MH_I2C_Read... [17:01:04]Read from MH i2c: E2 0B 00 [17:01:04]MH_I2C_Read... [17:01:04]Read from MH i2c: E2 0B 00 3E 5B 00 D3 7E 12 F4 25 F5 F1 D1 90 00 48 [17:01:05]RAPDU: D3 7E 12 F4 25 F5 F1 D1 90 00 [17:01:05]wFMCommunicate OK [17:01:05]SAM_PROTO_SignData done [17:01:05]FM_MakeSignedData done [17:01:05]CreateOFDProtocolMessage [17:01:05]wFMCommunicate request_size=4 [17:01:05]MH_SAM_APDU [17:01:05]CAPDU: 80 11 00 00 [17:01:05]Write to MH i2c: E2 08 00 3F 5B 80 11 00 00 00 00 00 00 14 [17:01:05]Write i2c OK [17:01:05]MH_I2C_Read... [17:01:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:05]Read from MH i2c: E2 [17:01:05]MH_I2C_Read... [17:01:05]Read from MH i2c: E2 17 00 [17:01:05]MH_I2C_Read... [17:01:05]Read from MH i2c: E2 17 00 3F 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6B [17:01:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:01:05]wFMCommunicate OK [17:01:05]CreateOFDProtocolMessage done [17:01:05]OFDSenderStorePacket 228343 [17:01:05]StoreOFDPacket docnum=228343 [17:01:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 87 59 04 01 92 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 33 01 00 00 F4 03 04 00 4E DA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F7 7B 03 00 35 04 06 00 63 15 B3 0E B3 DF D3 7E 12 F4 25 F5 F1 D1 [17:01:05]CheckFolder [17:01:05]dirname=/storage/ofd_packets [17:01:05]CheckFolder done [17:01:05]ProducePacketName [17:01:05]name=ofd_packets/00228343 [17:01:05]NVStorageSaveData ofd_packets/00228343 [17:01:05]File name is /storage/ofd_packets/00228343 [17:01:05]Write 298 bytes [17:01:05]NVStorageSaveData done [17:01:05]OFDSenderStorePacket done [17:01:05]KKMCreateOFDPacket done [17:01:05]NVStorageSaveData kkm_last_timestamp [17:01:05]File name is /storage/kkm_last_timestamp [17:01:05]Write 4 bytes [17:01:05]NVStorageSaveData done [17:01:05]ExternCall_PrintAddStr [17:01:05]wPrintStart [17:01:05]Write to MH i2c: 01 00 00 40 5B 9B [17:01:05]Write i2c OK [17:01:05]MH_I2C_Read... [17:01:05]Read from MH i2c: 01 [17:01:05]MH_I2C_Read... [17:01:05]Read from MH i2c: 01 07 00 [17:01:05]MH_I2C_Read... [17:01:05]OFD Sender: Processing packet 228343 [packets to send 38, broken 37] [17:01:05]ProducePacketName [17:01:05]name=ofd_packets/00228343 [17:01:05]OFD Sender: To server: pG, [17:01:05]CommunicateWithHost lk.salyk.kg:30040 [17:01:05]ConnectInit lk.salyk.kg [17:01:05]Read from MH i2c: 01 07 00 40 5B 00 00 00 00 00 FF 0F B0 [17:01:05]RasterBufferAndPrint [17:01:05]line Счет N : (1)1964844 [17:01:05]line ИНН: 02508201610067 [17:01:05]line Контрольно-Кассовый Чек [17:01:05]line ПРОДАЖА [17:01:05]line ТРК (МРК, ГНК) : 11 [17:01:05]line Товар: 2710194210 [17:01:05]line ДТ-К-5 [17:01:05]line 26.250 * 76.20 [17:01:05]line = 2000.25 [17:01:05]line НДС 12% НСП 1% [17:01:05]line > о реализуемом товаре [17:01:05]line ОКРУГЛЕНИЕ: -0.25 [17:01:05]line ИТОГО: 2000.00 [17:01:05]line Внесено: 2000.00 [17:01:05]line СДАЧА: 0.00 [17:01:05]line НСП 1% : 17.70 [17:01:05]line НДС 12% : 212.42 [17:01:05]line Наличными: 2000.00 [17:01:05]line Безнал.: 0.00 [17:01:05]line Место: АЗС № 133 "Партнер Нефть" [17:01:05]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:01:05]line СНО: Общий режим [17:01:05]line Чек 307 22.10.2024 17:01 [17:01:05]line Смена: 535 ФФД: 1.0 [17:01:05]line ЗНМ: 0300000091 [17:01:05]line РНМ: 0000000000091685 [17:01:05]line Версия ККМ: 001 [17:01:05]line ФМ: 0000000000871839 [17:01:05]line ФД: 228343 [17:01:05]line ФПД: 108944849548255 [17:01:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170102&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228343&fm=108944849548255&tin=02508201610067®Number=0000000000091685&sum=200000 [17:01:05]Connected sock=11 [17:01:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 written 0, free lines is 4095 [17:01:06]38 33 39 0C 01 00 00 87 59 04 01 92 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 Write to MH i2c: 00 01 01 F7 03 06 00 00 EA 06 00 00 00 6A 00 5B 00 EE 03 0F C5 00 [17:01:06]F2 03 Write i2c OK [17:01:06]01 MH_I2C_Read... [17:01:06]00 Read from MH i2c: 01 F3 03 06 01 00 [17:01:06]FA MH_I2C_Read... [17:01:06]52 Read from MH i2c: 00 00 00 00 01 07 07 04 00 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 33 01 00 00 [17:01:07]F4 03 04 00 MH_I2C_Read... [17:01:07]4E DA Read from MH i2c: 17 01 67 07 0E 04 04 00 6A 00 17 02 00 5B 00 00 B9 00 04 01 00 01 00 0D 04 10 00 00 30 00 30 39 30 30 30 30 30 30 30 0D 30 12 30 [17:01:07]39 RasterBufferAndPrint [17:01:07]line [17:01:07]line [17:01:07]line [17:01:07]31 line [17:01:07]36 line [17:01:07]38 35 11 written 0, free lines is 4071 [17:01:07]04 10 00 30 30 30 30 MH_Cut [17:01:07]30 30 30 30 Write to MH i2c: 30 D1 30 01 38 37 31 38 00 33 39 10 04 71 04 5B 00 01 F7 7B 03 00 9E 35 [17:01:07]04 06 00 Write i2c OK [17:01:07]63 15 B3 0E MH_I2C_Read... [17:01:07]B3 DF D3 7E 12 Read from MH i2c: F4 D1 25 [17:01:07]F5 MH_I2C_Read... [17:01:07]F1 D1 [17:01:07]*** Cut start [17:01:07]Read from MH i2c: *** Partial cut [17:01:07]*** CUTSNS_PIN = 1 [17:01:07]D1 01 00 [17:01:07]MH_I2C_Read... [17:01:07]Read from MH i2c: D1 01 00 71 5B 00 9D [17:01:07]Write to MH i2c: *** CUTSNS_PIN = 0 [17:01:07]01 00 00 72 5B CD [17:01:07]Write i2c OK [17:01:07]MH_I2C_Read... [17:01:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 *** Brake cut motor [17:01:07]00 00 28 22 47 00 36 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F7 7B 03 00 *** Stop cut motor [17:01:08]Read from MH i2c: *** Cut end [17:01:08]F4 03 04 00 4E 85 17 67 01 B6 [17:01:08]04 MH_I2C_Read... [17:01:08]01 00 00 04 Read from MH i2c: 35 D0 26 F5 01 84 07 41 00 [17:01:08]MH_I2C_Read... [17:01:08]36 [17:01:08]CommunicateWithHost err = 0 [17:01:08]CheckOFDResponse [17:01:08]1017 (14) - 77093643461234 [17:01:08]1041 (16) - 0000000000871839 [17:01:08]1040 (4) - 228343 [17:01:08]1012 (4) - 22.10.2024 10:58 [17:01:08]1206 (1) - 0 [17:01:08]OFD Sender: Remove packet 228343 [17:01:08]ProducePacketName [17:01:08]name=ofd_packets/00228343 [17:01:08]NVStorageDeleteData [17:01:08]Read from MH i2c: 01 07 00 72 5B 00 00 00 00 00 FF 0F E2 [17:01:08]process_action close_receipt done [17:01:08]requested_data is exist [17:01:08]produce_requested_data [17:01:08]requested_item fm.sn is exist - process it [17:01:08]wFMCommunicate request_size=4 [17:01:08]MH_SAM_APDU [17:01:08]CAPDU: 80 11 00 00 [17:01:08]Write to MH i2c: E2 08 00 73 5B 80 11 00 00 00 00 00 00 48 [17:01:08]Write i2c OK [17:01:08]MH_I2C_Read... [17:01:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:08]Read from MH i2c: E2 [17:01:08]MH_I2C_Read... [17:01:08]Read from MH i2c: E2 17 00 [17:01:08]MH_I2C_Read... [17:01:08]Read from MH i2c: E2 17 00 73 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9F [17:01:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:01:08]wFMCommunicate OK [17:01:08]requested_item fd.num is exist - process it [17:01:08]SAM_PROTO_GetFieldsCounters [17:01:08]wFMCommunicate request_size=4 [17:01:08]MH_SAM_APDU [17:01:08]CAPDU: 80 13 00 00 [17:01:08]Write to MH i2c: E2 08 00 74 5B 80 13 00 00 00 00 00 00 4B [17:01:08]OFD Sender: No OFD packet to send [17:01:09]Write i2c OK [17:01:09]MH_I2C_Read... [17:01:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:01:09]Read from MH i2c: E2 [17:01:09]MH_I2C_Read... [17:01:09]Read from MH i2c: E2 62 00 [17:01:09]MH_I2C_Read... [17:01:09]Read from MH i2c: E2 62 00 74 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F7 7B 03 00 0E 04 04 00 17 02 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 9E [17:01:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F7 7B 03 00 0E 04 04 00 17 02 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 [17:01:09]wFMCommunicate OK [17:01:09]SAM_PROTO_GetFieldsCounters done [17:01:09]requested_item shift.num is exist - process it [17:01:09]requested_item shift.opened is exist - process it [17:01:09]req_shift_opened [17:01:09]FM_GetShiftState [17:01:09]SAM_PROTO_GetShiftState [17:01:09]wFMCommunicate request_size=4 [17:01:09]MH_SAM_APDU [17:01:09]CAPDU: 80 13 01 00 [17:01:09]Write to MH i2c: E2 08 00 75 5B 80 13 01 00 00 00 00 00 4D [17:01:10]Write i2c OK [17:01:10]MH_I2C_Read... [17:01:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:10]Read from MH i2c: E2 [17:01:10]MH_I2C_Read... [17:01:10]Read from MH i2c: E2 0E 00 [17:01:10]MH_I2C_Read... [17:01:10]Read from MH i2c: E2 0E 00 75 5B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 14 [17:01:10]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:01:10]wFMCommunicate OK [17:01:10]SAM_PROTO_GetShiftState done [17:01:10]FM_GetShiftState done [17:01:10]req_shift_opened done [17:01:10]requested_item shift.open_date is exist - process it [17:01:10]req_shift_open_date [17:01:10]req_shift_open_date done [17:01:10]produce_requested_data done [17:01:10]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228343,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [17:01:10]process_action_free close_receipt [17:01:10]json_value_free [17:01:10]json_value_free done [17:01:10]process_json_proto returns [17:01:10]Send response to host [17:01:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228343,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [17:01:10]free response buf [17:01:10]execute_script done [17:01:10]execute_script returns [17:01:10]free content buf [17:01:10]Sock 10.Close socket [17:01:10]Sock 10.Thread stoped [17:01:14]OFD Sender: No OFD packet to send [17:01:19]OFD Sender: No OFD packet to send [17:01:24]OFD Sender: No OFD packet to send [17:01:29]OFD Sender: No OFD packet to send [17:01:34]OFD Sender: No OFD packet to send [17:01:39]OFD Sender: No OFD packet to send [17:01:44]OFD Sender: No OFD packet to send [17:01:49]OFD Sender: No OFD packet to send [17:01:54]OFD Sender: No OFD packet to send [17:01:59]OFD Sender: No OFD packet to send [17:02:04]OFD Sender: No OFD packet to send [17:02:09]OFD Sender: No OFD packet to send [17:02:14]OFD Sender: No OFD packet to send [17:02:19]OFD Sender: No OFD packet to send [17:02:24]OFD Sender: No OFD packet to send [17:02:29]OFD Sender: No OFD packet to send [17:02:34]OFD Sender: No OFD packet to send [17:02:39]OFD Sender: No OFD packet to send [17:02:44]OFD Sender: No OFD packet to send [17:02:47]ConnectInit Can't connect to host [17:02:49]OFD Sender: No OFD packet to send [17:02:54]OFD Sender: No OFD packet to send [17:02:59]OFD Sender: No OFD packet to send [17:03:00]accept exits with 9 [17:03:00]New connection [17:03:00]New thread 3067137380 created [17:03:00]Thread 3066994020 joined [17:03:00]Waiting for new connection... [17:03:00] Sock 9.Parse request [17:03:00]Sock 9.Check first char [17:03:00]Sock 9.First char is OK [17:03:00]request: POST /json_proto HTTP/1.0 [17:03:00]Method: POST [17:03:00]URL: /json_proto [17:03:00]Method is POST - this is cgi request [17:03:00]url: /json_proto [17:03:00]query_string will be loaded in cgi processing [17:03:00]execute_cgi json_proto POST (null) [17:03:00]execute_cgi path=json_proto method=POST [17:03:00]POST find Content-Length [17:03:00]Host: 172.17.44.195:8080 [17:03:00]Content-Length: 678 [17:03:00]Content-Type: application/json [17:03:00] [17:03:00]POST finish read [17:03:00]Found Content-Length = 678 [17:03:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:00]execute_script... [17:03: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)1964845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:00]POST & json_proto [17:03:00]process_json_proto [17:03:00]json parsed OK: [17:03:00]protocol is kg_v1.0 [17:03:00]action value=close_receipt [17:03:00]process_action close_receipt [17:03:00]cmd_close_receipt [17:03:00]MH_GetDate [17:03:00]Write to MH i2c: F0 00 00 76 5B C0 [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: F0 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: F0 09 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: F0 09 00 76 5B 00 CA DA 17 67 82 C9 CF 66 6B [17:03:01]GetLastDocTimeStamp 1729616462 [17:03:01]current date 1729616586 [17:03:01]FM_GetShiftState [17:03:01]SAM_PROTO_GetShiftState [17:03:01]wFMCommunicate request_size=4 [17:03:01]MH_SAM_APDU [17:03:01]CAPDU: 80 13 01 00 [17:03:01]Write to MH i2c: E2 08 00 77 5B 80 13 01 00 00 00 00 00 4F [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:01]Read from MH i2c: E2 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 0E 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 0E 00 77 5B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 16 [17:03:01]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:03:01]wFMCommunicate OK [17:03:01]SAM_PROTO_GetShiftState done [17:03:01]FM_GetShiftState done [17:03:01]opened in 1729555538 [17:03:01]opened+sec_in_day 1729641938 [17:03:01]quantity*price = 30038 [17:03:01]sum+1 = 30039 [17:03:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 308 22.10.2024 17:03 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228344 ФПД: 13523893315908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170306&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228344&fm=13523893315908&tin=02508201610067®Number=0000000000091685&sum=30000 [17:03:06]StoreToDocumentArchive [17:03:06]shift 535 fd 228344 [17:03:06]save to /storage/0535/doc_00228344 [17:03:06]save last doc name /storage/0535/doc_00228344 to /storage/kkm_last_doc_name [17:03:06]save OK [17:03:06]Clear old archive folders... [17:03:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:03:06]tlvbuf is 00E81AF0 [17:03:06]SAM_PROTO_ClearQueue [17:03:06]wFMCommunicate request_size=4 [17:03:06]MH_SAM_APDU [17:03:06]CAPDU: 80 09 00 00 [17:03:06]Write to MH i2c: E2 08 00 84 5B 80 09 00 00 00 00 00 00 51 [17:03:06]Write i2c OK [17:03:06]MH_I2C_Read... [17:03:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:06]Read from MH i2c: E2 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: E2 03 00 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: E2 03 00 84 5B 00 90 00 53 [17:03:06]RAPDU: 90 00 [17:03:06]wFMCommunicate OK [17:03:06]SAM_PROTO_ClearQueue done [17:03:06]KKMCreateOFDPacket [17:03:06]OFDProtocolAddRootSTLVToBuf [17:03:06]FM_MakeSignedData [17:03:06]FM_MakeSignedData [17:03:06]SAM_PROTO_SignData [17:03:06]wFMCommunicate request_size=4 [17:03:06]MH_SAM_APDU [17:03:06]CAPDU: 80 0D 01 02 [17:03:06]Write to MH i2c: E2 08 00 85 5B 80 0D 01 02 00 00 00 00 59 [17:03:06]Write i2c OK [17:03:06]MH_I2C_Read... [17:03:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:06]Read from MH i2c: E2 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: E2 03 00 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: E2 03 00 85 5B 00 90 00 54 [17:03:06]RAPDU: 90 00 [17:03:06]wFMCommunicate OK [17:03:06]wFMCommunicate request_size=255 [17:03:06]MH_SAM_APDU [17:03: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 34 01 00 00 F4 03 04 00 CA DA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F8 7B 03 00 35 04 06 00 0C [17:03:07]Write to MH i2c: E2 02 01 86 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 11 00 00 00 00 00 37 04 06 00 22 1A 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 34 01 00 00 F4 03 04 00 CA DA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F8 7B 03 00 35 04 06 00 0C 00 00 D6 [17:03:08]Write i2c OK [17:03:08]MH_I2C_Read... [17:03:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:08]Read from MH i2c: E2 [17:03:08]MH_I2C_Read... [17:03:08]Read from MH i2c: E2 03 00 [17:03:08]MH_I2C_Read... [17:03:08]Read from MH i2c: E2 03 00 86 5B 00 90 00 55 [17:03:08]RAPDU: 90 00 [17:03:08]wFMCommunicate OK [17:03:08]wFMCommunicate request_size=10 [17:03:08]MH_SAM_APDU [17:03:08]CAPDU: 80 0D 02 02 05 4C C6 DB 69 44 [17:03:08]Write to MH i2c: E2 0D 00 87 5B 80 0D 02 02 05 00 4C C6 DB 69 44 00 00 00 [17:03:09]Write i2c OK [17:03:09]MH_I2C_Read... [17:03:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:09]Read from MH i2c: E2 [17:03:09]MH_I2C_Read... [17:03:09]Read from MH i2c: E2 03 00 [17:03:09]MH_I2C_Read... [17:03:09]Read from MH i2c: E2 03 00 87 5B 00 90 00 56 [17:03:09]RAPDU: 90 00 [17:03:09]wFMCommunicate OK [17:03:09]wFMCommunicate request_size=4 [17:03:09]MH_SAM_APDU [17:03:09]CAPDU: 80 0D 03 02 [17:03:09]Write to MH i2c: E2 08 00 88 5B 80 0D 03 02 00 00 00 00 5E [17:03:09]OFD Sender: No OFD packet to send [17:03:09]Write i2c OK [17:03:09]MH_I2C_Read... [17:03:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:09]Read from MH i2c: E2 [17:03:09]MH_I2C_Read... [17:03:09]Read from MH i2c: E2 0B 00 [17:03:09]MH_I2C_Read... [17:03:09]Read from MH i2c: E2 0B 00 88 5B 00 38 E9 18 C2 38 BB 6B 56 90 00 0E [17:03:09]RAPDU: 38 E9 18 C2 38 BB 6B 56 90 00 [17:03:09]wFMCommunicate OK [17:03:09]SAM_PROTO_SignData done [17:03:09]FM_MakeSignedData done [17:03:09]CreateOFDProtocolMessage [17:03:09]wFMCommunicate request_size=4 [17:03:09]MH_SAM_APDU [17:03:09]CAPDU: 80 11 00 00 [17:03:09]Write to MH i2c: E2 08 00 89 5B 80 11 00 00 00 00 00 00 5E [17:03:09]Write i2c OK [17:03:09]MH_I2C_Read... [17:03:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:09]Read from MH i2c: E2 [17:03:09]MH_I2C_Read... [17:03:09]Read from MH i2c: E2 17 00 [17:03:09]MH_I2C_Read... [17:03:09]Read from MH i2c: E2 17 00 89 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B5 [17:03:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:03:09]wFMCommunicate OK [17:03:09]CreateOFDProtocolMessage done [17:03:09]OFDSenderStorePacket 228344 [17:03:09]StoreOFDPacket docnum=228344 [17:03:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B6 E6 07 01 A4 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 34 01 00 00 F4 03 04 00 CA DA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F8 7B 03 00 35 04 06 00 0C 4C C6 DB 69 44 38 E9 18 C2 38 BB 6B 56 [17:03:09]CheckFolder [17:03:09]dirname=/storage/ofd_packets [17:03:09]CheckFolder done [17:03:09]ProducePacketName [17:03:09]name=ofd_packets/00228344 [17:03:09]NVStorageSaveData ofd_packets/00228344 [17:03:09]File name is /storage/ofd_packets/00228344 [17:03:09]Write 301 bytes [17:03:09]NVStorageSaveData done [17:03:09]OFDSenderStorePacket done [17:03:09]KKMCreateOFDPacket done [17:03:10]NVStorageSaveData kkm_last_timestamp [17:03:10]File name is /storage/kkm_last_timestamp [17:03:10]Write 4 bytes [17:03:10]NVStorageSaveData done [17:03:10]ExternCall_PrintAddStr [17:03:10]wPrintStart [17:03:10]Write to MH i2c: 01 00 00 8A 5B E5 [17:03:10]OFD Sender: Processing packet 228344 [packets to send 38, broken 37] [17:03:10]ProducePacketName [17:03:10]name=ofd_packets/00228344 [17:03:10]OFD Sender: To server: pG, [17:03:10]CommunicateWithHost lk.salyk.kg:30040 [17:03:10]ConnectInit lk.salyk.kg [17:03:10]Write i2c OK [17:03:10]MH_I2C_Read... [17:03:10]Read from MH i2c: 01 [17:03:10]MH_I2C_Read... [17:03:10]Read from MH i2c: 01 07 00 [17:03:10]MH_I2C_Read... [17:03:10]Read from MH i2c: 01 07 00 8A 5B 00 00 00 00 00 FF Connected sock=11 [17:03:10]0F Data to sent: FA 87 [17:03:10]RasterBufferAndPrint [17:03:10]line Счет N : (1)1964845 [17:03:10]line ИНН: 02508201610067 [17:03:10]95 line Контрольно-Кассовый Чек [17:03:10]line ПРОДАЖА [17:03:10]line ТРК (МРК, ГНК) : 43 [17:03:10]line Товар: 2710124130 [17:03:10]F6 line Аи-92-К-5 [17:03:10]70 line 4.490 * 66.90 [17:03:10]47 line = 300.38 [17:03:10]2C line НДС 12% НСП 1% [17:03:10]line > о реализуемом товаре [17:03:10]line ОКРУГЛЕНИЕ: -0.38 [17:03:10]line ИТОГО: 300.00 [17:03:10]01 line Внесено: 300.00 [17:03:10]line СДАЧА: 0.00 [17:03:10]line НСП 1% : 2.66 [17:03:10]line НДС 12% : 31.90 [17:03:10]00 line Наличными: 300.00 [17:03:10]line Безнал.: 0.00 [17:03:10]line Место: АЗС № 133 "Партнер Нефть" [17:03:10]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:03:10]30 line СНО: Общий режим [17:03:10]30 line Чек 308 22.10.2024 17:03 [17:03:10]30 line Смена: 535 ФФД: 1.0 [17:03:10]30 30 line ЗНМ: 0300000091 [17:03:10]30 line РНМ: 0000000000091685 [17:03:10]line Версия ККМ: 001 [17:03:10]line ФМ: 0000000000871839 [17:03:10]30 line ФД: 228344 [17:03:10]30 line ФПД: 13523893315908 [17:03:10]30 line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170306&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228344&fm=13523893315908&tin=02508201610067®Number=0000000000091685&sum=30000 [17:03:10]30 38 37 31 38 33 39 0F 01 00 00 B6 E6 07 01 A4 F5 5A 03 01 written 0, free lines is 4095 [17:03:10]00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 11 00 00 00 00 00 37 04 06 00 22 1A 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 Write to MH i2c: 01 00 01 F7 03 06 00 0A 01 00 00 00 01 00 00 EE 00 03 0F 00 B4 F2 5B 03 0F 01 00 01 F3 [17:03:11]03 Write i2c OK [17:03:11]06 MH_I2C_Read... [17:03:11]Read from MH i2c: 01 [17:03:11]00 MH_I2C_Read... [17:03:11]76 Read from MH i2c: 0C 01 07 00 [17:03:11]MH_I2C_Read... [17:03:11]00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 Read from MH i2c: 00 01 00 07 00 B4 5B 00 00 1F 00 04 00 02 00 00 0E 0E 00 32 01 [17:03:11]00 RasterBufferAndPrint [17:03:11]12 line [17:03:11]line [17:03:11]line [17:03:11]line [17:03:11]line [17:03:11]04 04 00 34 01 00 00 F4 03 04 00 CA DA 17 67 0E written 0, free lines is 4064 [17:03:11]04 04 00 17 02 MH_Cut [17:03:11]00 00 B9 04 Write to MH i2c: 01 D1 01 00 BB 5B 01 E8 [17:03:11]00 01 0D 04 10 00 30 Write i2c OK [17:03:12]MH_I2C_Read... [17:03:12]Read from MH i2c: D1 [17:03:12]30 MH_I2C_Read... [17:03:12]30 Read from MH i2c: 30 D1 01 00 [17:03:12]MH_I2C_Read... [17:03:12]30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 *** Cut start [17:03:12]Read from MH i2c: *** Partial cut [17:03:12]38 37 *** CUTSNS_PIN = 1 [17:03:12]31 38 *** CUTSNS_PIN = 0 [17:03:12]D1 01 00 BB 33 5B 39 00 10 E7 [17:03:12]Write to MH i2c: 01 04 00 00 BC 5B 04 17 00 F8 7B 03 00 35 *** Brake cut motor [17:03:12] [17:03:12]04 06 00 0C 4C C6 DB 69 44 38 E9 18 C2 38 BB 6B 56 [17:03:12]Write i2c OK [17:03:12]MH_I2C_Read... [17:03:12]Read from MH i2c: *** Stop cut motor [17:03:12]01 *** Cut end [17:03:12] [17:03:12]MH_I2C_Read... [17:03:12]Read from MH i2c: 01 07 00 [17:03:12]MH_I2C_Read... [17:03:12]Read from MH i2c: 01 07 00 BC 5B 00 00 00 00 00 FF 0F 2C [17:03:12]process_action close_receipt done [17:03:12]requested_data is exist [17:03:12]produce_requested_data [17:03:12]requested_item fm.sn is exist - process it [17:03:12]wFMCommunicate request_size=4 [17:03:12]MH_SAM_APDU [17:03:12]CAPDU: 80 11 00 00 [17:03:13]Write to MH i2c: E2 08 00 BD 5B 80 11 00 00 Received data: 00 87 95 F6 00 70 00 47 00 2C 01 00 30 92 30 [17:03:13]30 30 Write i2c OK [17:03:13]30 MH_I2C_Read... [17:03:13]30 30 30 30 Read from MH i2c: 30 E2 38 [17:03:13]37 MH_I2C_Read... [17:03:13]31 Read from MH i2c: 38 E2 33 17 39 00 4F [17:03:13]00 MH_I2C_Read... [17:03:13]00 Read from MH i2c: 00 E2 3F 17 A5 00 *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:13]BD 47 00 71 44 5B A5 07 01 00 00 07 11 00 04 3B 00 F9 10 00 03 0E 00 37 30 37 30 39 33 30 36 30 34 30 33 34 36 30 31 30 32 30 33 34 11 30 04 30 10 30 00 38 30 37 30 31 38 33 39 30 90 00 E9 [17:03:13]30 RAPDU: 30 11 30 04 30 10 30 30 30 00 38 30 37 30 31 38 33 39 30 10 04 04 00 30 F8 30 7B 30 03 00 F4 03 04 00 30 CB 30 85 30 30 38 37 17 31 67 38 B6 33 04 39 90 00 [17:03:14]01 wFMCommunicate OK [17:03:14]requested_item fd.num is exist - process it [17:03:14]SAM_PROTO_GetFieldsCounters [17:03:14]wFMCommunicate request_size=4 [17:03:14]00 MH_SAM_APDU [17:03:14]00 CAPDU: F4 80 AE 13 00 00 [17:03:14]89 Write to MH i2c: 8F 8D E2 13 08 8D 00 F8 [17:03:14]CommunicateWithHost err = 0 [17:03:14]CheckOFDResponse [17:03:14]BE 1017 (14) - 77093643461234 [17:03:14]1041 (16) - 0000000000871839 [17:03:14]1040 (4) - 228344 [17:03:14]1012 (4) - 22.10.2024 11:00 [17:03:14]5B 1206 (1) - 0 [17:03:14]80 13 00 00 OFD Sender: Remove packet 228344 [17:03:14]00 ProducePacketName [17:03:14]00 name=ofd_packets/00228344 [17:03:14]00 00 95 NVStorageDeleteData [17:03:14] [17:03:14]Write i2c OK [17:03:14]MH_I2C_Read... [17:03:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:14]Read from MH i2c: E2 [17:03:14]MH_I2C_Read... [17:03:14]Read from MH i2c: E2 62 00 [17:03:14]MH_I2C_Read... [17:03:14]Read from MH i2c: E2 62 00 BE 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F8 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 OFD Sender: No OFD packet to send [17:03:14]04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 EC [17:03:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F8 7B 03 00 0E 04 04 00 17 02 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 [17:03:15]wFMCommunicate OK [17:03:15]SAM_PROTO_GetFieldsCounters done [17:03:15]requested_item shift.num is exist - process it [17:03:15]requested_item shift.opened is exist - process it [17:03:15]req_shift_opened [17:03:15]FM_GetShiftState [17:03:15]SAM_PROTO_GetShiftState [17:03:15]wFMCommunicate request_size=4 [17:03:15]MH_SAM_APDU [17:03:15]CAPDU: 80 13 01 00 [17:03:15]Write to MH i2c: E2 08 00 BF 5B 80 13 01 00 00 00 00 00 97 [17:03:15]Write i2c OK [17:03:15]MH_I2C_Read... [17:03:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:15]Read from MH i2c: E2 [17:03:15]MH_I2C_Read... [17:03:15]Read from MH i2c: E2 0E 00 [17:03:15]MH_I2C_Read... [17:03:15]Read from MH i2c: E2 0E 00 BF 5B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 5E [17:03:15]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:03:15]wFMCommunicate OK [17:03:15]SAM_PROTO_GetShiftState done [17:03:15]FM_GetShiftState done [17:03:15]req_shift_opened done [17:03:15]requested_item shift.open_date is exist - process it [17:03:15]req_shift_open_date [17:03:15]req_shift_open_date done [17:03:15]produce_requested_data done [17:03:15]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228344,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [17:03:15]process_action_free close_receipt [17:03:15]json_value_free [17:03:15]json_value_free done [17:03:15]process_json_proto returns [17:03:15]Send response to host [17:03:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228344,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [17:03:15]free response buf [17:03:15]execute_script done [17:03:15]execute_script returns [17:03:15]free content buf [17:03:15]Sock 9.Close socket [17:03:15]Sock 9.Thread stoped [17:03:15]accept exits with 10 [17:03:15]New connection [17:03:15]New thread 3066994020 created [17:03:15]Thread 3067137380 joined [17:03:15]Waiting for new connection... [17:03:15] Sock 10.Parse request [17:03:15]Sock 10.Check first char [17:03:15]Sock 10.First char is OK [17:03:15]request: POST /json_proto HTTP/1.0 [17:03:15]Method: POST [17:03:15]URL: /json_proto [17:03:15]Method is POST - this is cgi request [17:03:15]url: /json_proto [17:03:15]query_string will be loaded in cgi processing [17:03:15]execute_cgi json_proto POST (null) [17:03:15]execute_cgi path=json_proto method=POST [17:03:15]POST find Content-Length [17:03:15]Host: 172.17.44.195:8080 [17:03:15]Content-Length: 678 [17:03:15]Content-Type: application/json [17:03:15] [17:03:15]POST finish read [17:03:15]Found Content-Length = 678 [17:03:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964846", "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" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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:03:16]execute_script... [17:03: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)1964846", "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" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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:03:16]POST & json_proto [17:03:16]process_json_proto [17:03:16]json parsed OK: [17:03:16]protocol is kg_v1.0 [17:03:16]action value=close_receipt [17:03:16]process_action close_receipt [17:03:16]cmd_close_receipt [17:03:16]MH_GetDate [17:03:16]Write to MH i2c: F0 00 00 C0 5B 0A [17:03:16]Write i2c OK [17:03:16]MH_I2C_Read... [17:03:16]Read from MH i2c: F0 [17:03:16]MH_I2C_Read... [17:03:16]Read from MH i2c: F0 09 00 [17:03:16]MH_I2C_Read... [17:03:16]Read from MH i2c: F0 09 00 C0 5B 00 D9 DA 17 67 82 C9 CF 66 C4 [17:03:16]GetLastDocTimeStamp 1729616586 [17:03:16]current date 1729616601 [17:03:16]FM_GetShiftState [17:03:16]SAM_PROTO_GetShiftState [17:03:16]wFMCommunicate request_size=4 [17:03:16]MH_SAM_APDU [17:03:16]CAPDU: 80 13 01 00 [17:03:16]Write to MH i2c: E2 08 00 C1 5B 80 13 01 00 00 00 00 00 99 [17:03:16]Write i2c OK [17:03:16]MH_I2C_Read... [17:03:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:16]Read from MH i2c: E2 [17:03:16]MH_I2C_Read... [17:03:16]Read from MH i2c: E2 0E 00 [17:03:16]MH_I2C_Read... [17:03:16]Read from MH i2c: E2 0E 00 C1 5B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 60 [17:03:16]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:03:16]wFMCommunicate OK [17:03:16]SAM_PROTO_GetShiftState done [17:03:16]FM_GetShiftState done [17:03:16]opened in 1729555538 [17:03:16]opened+sec_in_day 1729641938 [17:03:16]quantity*price = 60009 [17:03:16]sum+1 = 60010 [17:03:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 309 22.10.2024 17:03 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228345 ФПД: 231158142863446 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170321&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228345&fm=231158142863446&tin=02508201610067®Number=0000000000091685&sum=60000 [17:03:21]StoreToDocumentArchive [17:03:21]shift 535 fd 228345 [17:03:21]save to /storage/0535/doc_00228345 [17:03:21]save last doc name /storage/0535/doc_00228345 to /storage/kkm_last_doc_name [17:03:21]save OK [17:03:21]Clear old archive folders... [17:03:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:03:21]tlvbuf is 00E9EB50 [17:03:21]SAM_PROTO_ClearQueue [17:03:21]wFMCommunicate request_size=4 [17:03:21]MH_SAM_APDU [17:03:21]CAPDU: 80 09 00 00 [17:03:21]Write to MH i2c: E2 08 00 CE 5B 80 09 00 00 00 00 00 00 9B [17:03:21]Write i2c OK [17:03:21]MH_I2C_Read... [17:03:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:21]Read from MH i2c: E2 [17:03:21]MH_I2C_Read... [17:03:21]Read from MH i2c: E2 03 00 [17:03:21]MH_I2C_Read... [17:03:21]Read from MH i2c: E2 03 00 CE 5B 00 90 00 9D [17:03:21]RAPDU: 90 00 [17:03:21]wFMCommunicate OK [17:03:21]SAM_PROTO_ClearQueue done [17:03:21]KKMCreateOFDPacket [17:03:21]OFDProtocolAddRootSTLVToBuf [17:03:21]FM_MakeSignedData [17:03:21]FM_MakeSignedData [17:03:21]SAM_PROTO_SignData [17:03:21]wFMCommunicate request_size=4 [17:03:21]MH_SAM_APDU [17:03:21]CAPDU: 80 0D 01 02 [17:03:21]Write to MH i2c: E2 08 00 CF 5B 80 0D 01 02 00 00 00 00 A3 [17:03:22]Write i2c OK [17:03:22]MH_I2C_Read... [17:03:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:22]Read from MH i2c: E2 [17:03:22]MH_I2C_Read... [17:03:22]Read from MH i2c: E2 03 00 [17:03:22]MH_I2C_Read... [17:03:22]Read from MH i2c: E2 03 00 CF 5B 00 90 00 9E [17:03:22]RAPDU: 90 00 [17:03:22]wFMCommunicate OK [17:03:22]wFMCommunicate request_size=255 [17:03:22]MH_SAM_APDU [17:03: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 35 01 00 00 F4 03 04 00 D9 DA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F9 7B 03 00 35 04 06 00 D2 [17:03:23]Write to MH i2c: E2 02 01 D0 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 35 01 00 00 F4 03 04 00 D9 DA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F9 7B 03 00 35 04 06 00 D2 00 00 E0 [17:03:24]Write i2c OK [17:03:24]MH_I2C_Read... [17:03:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:24]Read from MH i2c: E2 [17:03:24]MH_I2C_Read... [17:03:24]Read from MH i2c: E2 03 00 [17:03:24]MH_I2C_Read... [17:03:24]Read from MH i2c: E2 03 00 D0 5B 00 90 00 9F [17:03:24]RAPDU: 90 00 [17:03:24]wFMCommunicate OK [17:03:24]wFMCommunicate request_size=10 [17:03:24]MH_SAM_APDU [17:03:24]CAPDU: 80 0D 02 02 05 3C B2 FE 08 56 [17:03:24]Write to MH i2c: E2 0D 00 D1 5B 80 0D 02 02 05 00 3C B2 FE 08 56 00 00 FA [17:03:24]Write i2c OK [17:03:24]MH_I2C_Read... [17:03:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:24]Read from MH i2c: E2 [17:03:24]MH_I2C_Read... [17:03:24]Read from MH i2c: E2 03 00 [17:03:24]MH_I2C_Read... [17:03:24]Read from MH i2c: E2 03 00 D1 5B 00 90 00 A0 [17:03:24]RAPDU: 90 00 [17:03:24]wFMCommunicate OK [17:03:24]wFMCommunicate request_size=4 [17:03:24]MH_SAM_APDU [17:03:24]CAPDU: 80 0D 03 02 [17:03:24]Write to MH i2c: OFD Sender: No OFD packet to send [17:03:24]E2 08 00 D2 5B 80 0D 03 02 00 00 00 00 A8 [17:03:24]Write i2c OK [17:03:24]MH_I2C_Read... [17:03:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:25]Read from MH i2c: E2 [17:03:25]MH_I2C_Read... [17:03:25]Read from MH i2c: E2 0B 00 [17:03:25]MH_I2C_Read... [17:03:25]Read from MH i2c: E2 0B 00 D2 5B 00 A0 93 61 65 B0 73 56 CB 90 00 E6 [17:03:25]RAPDU: A0 93 61 65 B0 73 56 CB 90 00 [17:03:25]wFMCommunicate OK [17:03:25]SAM_PROTO_SignData done [17:03:25]FM_MakeSignedData done [17:03:25]CreateOFDProtocolMessage [17:03:25]wFMCommunicate request_size=4 [17:03:25]MH_SAM_APDU [17:03:25]CAPDU: 80 11 00 00 [17:03:25]Write to MH i2c: E2 08 00 D3 5B 80 11 00 00 00 00 00 00 A8 [17:03:25]Write i2c OK [17:03:25]MH_I2C_Read... [17:03:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:25]Read from MH i2c: E2 [17:03:25]MH_I2C_Read... [17:03:25]Read from MH i2c: E2 17 00 [17:03:25]MH_I2C_Read... [17:03:25]Read from MH i2c: E2 17 00 D3 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FF [17:03:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:03:25]wFMCommunicate OK [17:03:25]CreateOFDProtocolMessage done [17:03:25]OFDSenderStorePacket 228345 [17:03:25]StoreOFDPacket docnum=228345 [17:03:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B5 01 07 01 7D 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 35 01 00 00 F4 03 04 00 D9 DA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F9 7B 03 00 35 04 06 00 D2 3C B2 FE 08 56 A0 93 61 65 B0 73 56 CB [17:03:25]CheckFolder [17:03:25]dirname=/storage/ofd_packets [17:03:25]CheckFolder done [17:03:25]ProducePacketName [17:03:25]name=ofd_packets/00228345 [17:03:25]NVStorageSaveData ofd_packets/00228345 [17:03:25]File name is /storage/ofd_packets/00228345 [17:03:25]Write 301 bytes [17:03:25]NVStorageSaveData done [17:03:25]OFDSenderStorePacket done [17:03:25]KKMCreateOFDPacket done [17:03:25]NVStorageSaveData kkm_last_timestamp [17:03:25]File name is /storage/kkm_last_timestamp [17:03:25]Write 4 bytes [17:03:25]NVStorageSaveData done [17:03:25]ExternCall_PrintAddStr [17:03:25]wPrintStart [17:03:25]Write to MH i2c: 01 00 00 D4 5B 2F [17:03:25]Write i2c OK [17:03:25]MH_I2C_Read... [17:03:25]Read from MH i2c: 01 [17:03:25]MH_I2C_Read... [17:03:25]OFD Sender: Processing packet 228345 [packets to send 38, broken 37] [17:03:25]ProducePacketName [17:03:25]name=ofd_packets/00228345 [17:03:25]OFD Sender: To server: pG, [17:03:25]CommunicateWithHost lk.salyk.kg:30040 [17:03:25]ConnectInit lk.salyk.kg [17:03:25]Read from MH i2c: 01 07 00 [17:03:25]MH_I2C_Read... [17:03:25]Read from MH i2c: 01 07 00 D4 5B 00 00 00 00 00 FF 0F 44 [17:03:25]RasterBufferAndPrint [17:03:25]line Счет N : (1)1964846 [17:03:25]line ИНН: 02508201610067 [17:03:25]line Контрольно-Кассовый Чек [17:03:25]line ПРОДАЖА [17:03:25]line ТРК (МРК, ГНК) : 63 [17:03:25]line Товар: 2710124130 [17:03:25]line Аи-92-К-5 [17:03:25]line 8.970 * 66.90 [17:03:25]line = 600.09 [17:03:25]line НДС 12% НСП 1% [17:03:25]Connected sock=11 [17:03:25]line > о реализуемом товаре [17:03:25]line ОКРУГЛЕНИЕ: -0.09 [17:03:25]line ИТОГО: 600.00 [17:03:25]line Внесено: 600.00 [17:03:25]Data to sent: line СДАЧА: 0.00 [17:03:25]line НСП 1% : 5.31 [17:03:25]line НДС 12% : 63.73 [17:03:25]line Наличными: 600.00 [17:03:25]87 line Безнал.: 0.00 [17:03:26]line Место: АЗС № 133 "Партнер Нефть" [17:03:26]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:03:26]line СНО: Общий режим [17:03:26]95 line Чек 309 22.10.2024 17:03 [17:03:26]line Смена: 535 ФФД: 1.0 [17:03:26]line ЗНМ: 0300000091 [17:03:26]line РНМ: 0000000000091685 [17:03:26]F6 line Версия ККМ: 001 [17:03:26]line ФМ: 0000000000871839 [17:03:26]line ФД: 228345 [17:03:26]line ФПД: 231158142863446 [17:03:26]70 line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170321&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228345&fm=231158142863446&tin=02508201610067®Number=0000000000091685&sum=60000 [17:03:26]47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B5 01 written 0, free lines is 4095 [17:03:26]07 01 7D 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 Write to MH i2c: 01 00 01 FC 01 03 06 00 00 60 EA 00 00 00 00 00 FE EB 5B 03 26 00 EF 59 03 [17:03:26]0F 00 Write i2c OK [17:03:26]F6 MH_I2C_Read... [17:03:26]03 01 Read from MH i2c: 00 01 [17:03:26]MH_I2C_Read... [17:03:26]01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 Read from MH i2c: 00 01 07 00 [17:03:27]MH_I2C_Read... [17:03:27]01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 Read from MH i2c: 04 01 06 07 00 00 00 00 00 FE 00 5B 00 00 00 1F 04 00 02 00 00 00 00 59 0D C6 [17:03:27]RasterBufferAndPrint [17:03:27]line [17:03:27]line [17:03:27]line [17:03:27]line [17:03:27]line [17:03:27]01 00 12 04 04 00 35 01 00 00 F4 03 04 00 D9 DA 17 67 0E 04 04 written 0, free lines is 4095 [17:03:27]00 17 02 00 MH_Cut [17:03:27]00 Write to MH i2c: D1 01 00 B9 05 04 5C 01 00 01 0D 01 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 33 30 [17:03:27]30 30 30 30 Write i2c OK [17:03:27]30 MH_I2C_Read... [17:03:27]30 30 30 38 37 31 38 33 39 *** Cut start [17:03:28]10 Read from MH i2c: D1 04 [17:03:28]MH_I2C_Read... [17:03:28]04 *** Partial cut [17:03:28]00 Read from MH i2c: D1 F9 *** CUTSNS_PIN = 1 [17:03:28]7B 01 00 [17:03:28]03 *** CUTSNS_PIN = 0 [17:03:28]00 *** Brake cut motor [17:03:28]35 MH_I2C_Read... [17:03:28]04 06 00 D2 3C B2 FE 08 56 A0 93 61 65 Read from MH i2c: B0 D1 73 01 00 05 5C 56 00 32 [17:03:28]Write to MH i2c: 01 00 00 06 5C 62 [17:03:28]CB [17:03:28]Write i2c OK [17:03:28]MH_I2C_Read... [17:03:28]Read from MH i2c: 01 [17:03:28]MH_I2C_Read... [17:03:28]*** Stop cut motor [17:03:28]*** Cut end [17:03:28]Read from MH i2c: 01 07 00 [17:03:28]MH_I2C_Read... [17:03:28]Read from MH i2c: 01 07 00 06 5C 00 00 00 00 00 FF 0F 77 [17:03:28]process_action close_receipt done [17:03:28]requested_data is exist [17:03:28]produce_requested_data [17:03:28]requested_item fm.sn is exist - process it [17:03:28]wFMCommunicate request_size=4 [17:03:28]MH_SAM_APDU [17:03:28]Received data: CAPDU: 80 11 00 87 00 95 [17:03:28]F6 Write to MH i2c: 70 E2 08 00 07 47 5C 80 11 00 2C 00 00 00 00 01 00 00 DD 30 [17:03:28]30 Write i2c OK [17:03:28]30 MH_I2C_Read... [17:03:28]30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 74 BD 47 00 8C 96 A5 07 01 00 07 00 3B 00 F9 Read from MH i2c: 03 E2 *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:29]0E 00 [17:03:29]37 37 30 39 MH_I2C_Read... [17:03:29]33 Read from MH i2c: 36 E2 34 17 33 34 36 31 32 33 00 34 [17:03:29]11 MH_I2C_Read... [17:03:29]04 10 00 Read from MH i2c: 30 E2 30 17 30 30 30 00 30 07 30 5C 30 30 30 38 37 31 38 33 39 10 04 04 00 00 11 04 10 F9 00 7B 30 03 30 00 30 30 30 30 30 30 30 F4 30 38 03 37 31 38 04 33 00 39 90 00 DB 34 85 17 67 [17:03:29]B6 RAPDU: 04 11 01 00 00 04 1A 10 3D 00 53 30 30 30 30 A5 30 30 30 30 D1 30 30 30 38 2A 37 50 31 [17:03:29]38 CommunicateWithHost err = 0 [17:03:29]33 CheckOFDResponse [17:03:29]1017 (14) - 77093643461234 [17:03:29]1041 (16) - 0000000000871839 [17:03:29]1040 (4) - 228345 [17:03:29]39 1012 (4) - 22.10.2024 11:00 [17:03:29]1206 (1) - 0 [17:03:29]OFD Sender: Remove packet 228345 [17:03:29]ProducePacketName [17:03:29]90 name=ofd_packets/00228345 [17:03:29]NVStorageDeleteData [17:03:29]00 [17:03:29]wFMCommunicate OK [17:03:29]requested_item fd.num is exist - process it [17:03:29]SAM_PROTO_GetFieldsCounters [17:03:29]wFMCommunicate request_size=4 [17:03:29]MH_SAM_APDU [17:03:29]CAPDU: 80 13 00 00 [17:03:29]Write to MH i2c: E2 08 00 08 5C 80 13 00 00 00 00 00 00 E0 [17:03:30]Write i2c OK [17:03:30]MH_I2C_Read... [17:03:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:30]Read from MH i2c: E2 [17:03:30]MH_I2C_Read... [17:03:30]Read from MH i2c: E2 62 00 [17:03:30]MH_I2C_Read... [17:03:30]Read from MH i2c: E2 62 00 08 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F9 7B 03 00 0E 04 04 00 17 02 OFD Sender: No OFD packet to send [17:03:30]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 3B [17:03:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F9 7B 03 00 0E 04 04 00 17 02 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 [17:03:31]wFMCommunicate OK [17:03:31]SAM_PROTO_GetFieldsCounters done [17:03:31]requested_item shift.num is exist - process it [17:03:31]requested_item shift.opened is exist - process it [17:03:31]req_shift_opened [17:03:31]FM_GetShiftState [17:03:31]SAM_PROTO_GetShiftState [17:03:31]wFMCommunicate request_size=4 [17:03:31]MH_SAM_APDU [17:03:31]CAPDU: 80 13 01 00 [17:03:31]Write to MH i2c: E2 08 00 09 5C 80 13 01 00 00 00 00 00 E2 [17:03:31]Write i2c OK [17:03:31]MH_I2C_Read... [17:03:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:31]Read from MH i2c: E2 [17:03:31]MH_I2C_Read... [17:03:31]Read from MH i2c: E2 0E 00 [17:03:31]MH_I2C_Read... [17:03:31]Read from MH i2c: E2 0E 00 09 5C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 A9 [17:03:31]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:03:31]wFMCommunicate OK [17:03:31]SAM_PROTO_GetShiftState done [17:03:31]FM_GetShiftState done [17:03:31]req_shift_opened done [17:03:31]requested_item shift.open_date is exist - process it [17:03:31]req_shift_open_date [17:03:31]req_shift_open_date done [17:03:31]produce_requested_data done [17:03:31]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228345,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [17:03:31]process_action_free close_receipt [17:03:31]json_value_free [17:03:31]json_value_free done [17:03:31]process_json_proto returns [17:03:31]Send response to host [17:03:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228345,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [17:03:31]free response buf [17:03:31]execute_script done [17:03:31]execute_script returns [17:03:31]free content buf [17:03:31]Sock 10.Close socket [17:03:31]Sock 10.Thread stoped [17:03:35]OFD Sender: No OFD packet to send [17:03:40]OFD Sender: No OFD packet to send [17:03:45]OFD Sender: No OFD packet to send [17:03:50]OFD Sender: No OFD packet to send [17:03:55]OFD Sender: No OFD packet to send [17:03:57]ConnectInit Can't connect to host [17:04:00]OFD Sender: No OFD packet to send [17:04:02]ConnectInit Can't connect to host [17:04:05]OFD Sender: No OFD packet to send [17:04:07]ConnectInit Can't connect to host [17:04:10]OFD Sender: No OFD packet to send [17:04:12]ConnectInit Can't connect to host [17:04:15]OFD Sender: No OFD packet to send [17:04:17]ConnectInit Can't connect to host [17:04:20]OFD Sender: No OFD packet to send [17:04:22]ConnectInit Can't connect to host [17:04:25]OFD Sender: No OFD packet to send [17:04:27]ConnectInit Can't connect to host [17:04:30]OFD Sender: No OFD packet to send [17:04:32]ConnectInit Can't connect to host [17:04:35]OFD Sender: No OFD packet to send [17:04:37]ConnectInit Can't connect to host [17:04:40]OFD Sender: No OFD packet to send [17:04:42]ConnectInit Can't connect to host [17:04:45]OFD Sender: No OFD packet to send [17:04:47]ConnectInit Can't connect to host [17:04:50]OFD Sender: No OFD packet to send [17:04:52]ConnectInit Can't connect to host [17:04:55]OFD Sender: No OFD packet to send [17:04:58]ConnectInit Can't connect to host [17:05:00]OFD Sender: No OFD packet to send [17:05:03]ConnectInit Can't connect to host [17:05:05]OFD Sender: No OFD packet to send [17:05:08]ConnectInit Can't connect to host [17:05:08]accept exits with 9 [17:05:08]New connection [17:05:08]New thread 3067137380 created [17:05:08]Thread 3066994020 joined [17:05:08] Sock 9.Parse request [17:05:08]Waiting for new connection... [17:05:08]Sock 9.Check first char [17:05:08]Sock 9.First char is OK [17:05:08]request: POST /json_proto HTTP/1.0 [17:05:08]Method: POST [17:05:08]URL: /json_proto [17:05:08]Method is POST - this is cgi request [17:05:08]url: /json_proto [17:05:08]query_string will be loaded in cgi processing [17:05:08]execute_cgi json_proto POST (null) [17:05:08]execute_cgi path=json_proto method=POST [17:05:08]POST find Content-Length [17:05:08]Host: 172.17.44.195:8080 [17:05:08]Content-Length: 683 [17:05:08]Content-Type: application/json [17:05:08] [17:05:08]POST finish read [17:05:08]Found Content-Length = 683 [17:05:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964847", "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" : 66.90, "quantity" : 20.930, "sum" : 1400.22, "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" ] } } [17:05:08]execute_script... [17:05:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964847", "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" : 66.90, "quantity" : 20.930, "sum" : 1400.22, "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" ] } } [17:05:08]POST & json_proto [17:05:08]process_json_proto [17:05:08]json parsed OK: [17:05:08]protocol is kg_v1.0 [17:05:08]action value=close_receipt [17:05:08]process_action close_receipt [17:05:08]cmd_close_receipt [17:05:08]MH_GetDate [17:05:08]Write to MH i2c: F0 00 00 0A 5C 55 [17:05:08]Write i2c OK [17:05:08]MH_I2C_Read... [17:05:08]Read from MH i2c: F0 [17:05:08]MH_I2C_Read... [17:05:08]Read from MH i2c: F0 09 00 [17:05:08]MH_I2C_Read... [17:05:08]Read from MH i2c: F0 09 00 0A 5C 00 49 DB 17 67 82 C9 CF 66 80 [17:05:08]GetLastDocTimeStamp 1729616601 [17:05:08]current date 1729616713 [17:05:08]FM_GetShiftState [17:05:08]SAM_PROTO_GetShiftState [17:05:08]wFMCommunicate request_size=4 [17:05:08]MH_SAM_APDU [17:05:08]CAPDU: 80 13 01 00 [17:05:08]Write to MH i2c: E2 08 00 0B 5C 80 13 01 00 00 00 00 00 E4 [17:05:09]Write i2c OK [17:05:09]MH_I2C_Read... [17:05:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:09]Read from MH i2c: E2 [17:05:09]MH_I2C_Read... [17:05:09]Read from MH i2c: E2 0E 00 [17:05:09]MH_I2C_Read... [17:05:09]Read from MH i2c: E2 0E 00 0B 5C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 AB [17:05:09]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:05:09]wFMCommunicate OK [17:05:09]SAM_PROTO_GetShiftState done [17:05:09]FM_GetShiftState done [17:05:09]opened in 1729555538 [17:05:09]opened+sec_in_day 1729641938 [17:05:09]quantity*price = 140021 [17:05:09]sum+1 = 140023 [17:05:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.70 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 310 22.10.2024 17:05 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228346 ФПД: 246125936287834 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170514&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228346&fm=246125936287834&tin=02508201610067®Number=0000000000091685&sum=140000 [17:05:13]StoreToDocumentArchive [17:05:13]shift 535 fd 228346 [17:05:13]save to /storage/0535/doc_00228346 [17:05:13]save last doc name /storage/0535/doc_00228346 to /storage/kkm_last_doc_name [17:05:13]save OK [17:05:13]Clear old archive folders... [17:05:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:05:13]tlvbuf is 00A0D1C0 [17:05:13]SAM_PROTO_ClearQueue [17:05:13]wFMCommunicate request_size=4 [17:05:13]MH_SAM_APDU [17:05:13]CAPDU: 80 09 00 00 [17:05:13]Write to MH i2c: E2 08 00 18 5C 80 09 00 00 00 00 00 00 E6 [17:05:13]Write i2c OK [17:05:13]MH_I2C_Read... [17:05:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:05:13]Read from MH i2c: E2 [17:05:13]MH_I2C_Read... [17:05:13]Read from MH i2c: E2 03 00 [17:05:13]MH_I2C_Read... [17:05:13]Read from MH i2c: E2 03 00 18 5C 00 90 00 E8 [17:05:13]RAPDU: 90 00 [17:05:13]wFMCommunicate OK [17:05:13]SAM_PROTO_ClearQueue done [17:05:13]KKMCreateOFDPacket [17:05:13]OFDProtocolAddRootSTLVToBuf [17:05:13]FM_MakeSignedData [17:05:13]FM_MakeSignedData [17:05:13]SAM_PROTO_SignData [17:05:13]wFMCommunicate request_size=4 [17:05:13]MH_SAM_APDU [17:05:13]CAPDU: 80 0D 01 02 [17:05:13]Write to MH i2c: E2 08 00 19 5C 80 0D 01 02 00 00 00 00 EE [17:05:13]Write i2c OK [17:05:13]MH_I2C_Read... [17:05:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:05:13]Read from MH i2c: E2 [17:05:13]MH_I2C_Read... [17:05:13]Read from MH i2c: E2 03 00 [17:05:13]MH_I2C_Read... [17:05:13]Read from MH i2c: E2 03 00 19 5C 00 90 00 E9 [17:05:13]RAPDU: 90 00 [17:05:13]wFMCommunicate OK [17:05:13]wFMCommunicate request_size=255 [17:05:13]MH_SAM_APDU [17:05:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 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 16 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 36 01 00 00 F4 03 04 00 4A DB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FA 7B 03 00 35 04 06 00 DF [17:05:14]Write to MH i2c: E2 02 01 1A 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 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 16 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 36 01 00 00 F4 03 04 00 4A DB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FA 7B 03 00 35 04 06 00 DF 00 00 E6 [17:05:15]Write i2c OK [17:05:15]MH_I2C_Read... [17:05:15]OFD Sender: No OFD packet to send [17:05:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:15]Read from MH i2c: E2 [17:05:15]MH_I2C_Read... [17:05:15]Read from MH i2c: E2 03 00 [17:05:15]MH_I2C_Read... [17:05:15]Read from MH i2c: E2 03 00 1A 5C 00 90 00 EA [17:05:16]RAPDU: 90 00 [17:05:16]wFMCommunicate OK [17:05:16]wFMCommunicate request_size=10 [17:05:16]MH_SAM_APDU [17:05:16]CAPDU: 80 0D 02 02 05 D9 A9 00 A0 5A [17:05:16]Write to MH i2c: E2 0D 00 1B 5C 80 0D 02 02 05 00 D9 A9 00 A0 5A 00 00 77 [17:05:16]Write i2c OK [17:05:16]MH_I2C_Read... [17:05:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:16]Read from MH i2c: E2 [17:05:16]MH_I2C_Read... [17:05:16]Read from MH i2c: E2 03 00 [17:05:16]MH_I2C_Read... [17:05:16]Read from MH i2c: E2 03 00 1B 5C 00 90 00 EB [17:05:16]RAPDU: 90 00 [17:05:16]wFMCommunicate OK [17:05:16]wFMCommunicate request_size=4 [17:05:16]MH_SAM_APDU [17:05:16]CAPDU: 80 0D 03 02 [17:05:16]Write to MH i2c: E2 08 00 1C 5C 80 0D 03 02 00 00 00 00 F3 [17:05:16]Write i2c OK [17:05:16]MH_I2C_Read... [17:05:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:05:16]Read from MH i2c: E2 [17:05:16]MH_I2C_Read... [17:05:16]Read from MH i2c: E2 0B 00 [17:05:16]MH_I2C_Read... [17:05:16]Read from MH i2c: E2 0B 00 1C 5C 00 C7 ED 58 80 D3 C3 D0 01 90 00 E7 [17:05:16]RAPDU: C7 ED 58 80 D3 C3 D0 01 90 00 [17:05:16]wFMCommunicate OK [17:05:16]SAM_PROTO_SignData done [17:05:16]FM_MakeSignedData done [17:05:16]CreateOFDProtocolMessage [17:05:16]wFMCommunicate request_size=4 [17:05:16]MH_SAM_APDU [17:05:16]CAPDU: 80 11 00 00 [17:05:16]Write to MH i2c: E2 08 00 1D 5C 80 11 00 00 00 00 00 00 F3 [17:05:16]Write i2c OK [17:05:16]MH_I2C_Read... [17:05:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:16]Read from MH i2c: E2 [17:05:16]MH_I2C_Read... [17:05:16]Read from MH i2c: E2 17 00 [17:05:16]MH_I2C_Read... [17:05:16]Read from MH i2c: E2 17 00 1D 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4A [17:05:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:05:16]wFMCommunicate OK [17:05:16]CreateOFDProtocolMessage done [17:05:16]OFDSenderStorePacket 228346 [17:05:16]StoreOFDPacket docnum=228346 [17:05:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 C7 4A 07 01 2B 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 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 16 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 36 01 00 00 F4 03 04 00 4A DB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FA 7B 03 00 35 04 06 00 DF D9 A9 00 A0 5A C7 ED 58 80 D3 C3 D0 01 [17:05:16]CheckFolder [17:05:16]dirname=/storage/ofd_packets [17:05:16]CheckFolder done [17:05:16]ProducePacketName [17:05:16]name=ofd_packets/00228346 [17:05:16]NVStorageSaveData ofd_packets/00228346 [17:05:16]File name is /storage/ofd_packets/00228346 [17:05:16]Write 301 bytes [17:05:16]NVStorageSaveData done [17:05:16]OFDSenderStorePacket done [17:05:16]KKMCreateOFDPacket done [17:05:16]NVStorageSaveData kkm_last_timestamp [17:05:16]File name is /storage/kkm_last_timestamp [17:05:16]Write 4 bytes [17:05:16]NVStorageSaveData done [17:05:16]ExternCall_PrintAddStr [17:05:16]wPrintStart [17:05:16]Write to MH i2c: 01 00 00 1E 5C 7A [17:05:16]Write i2c OK [17:05:16]MH_I2C_Read... [17:05:16]Read from MH i2c: 01 [17:05:17]MH_I2C_Read... [17:05:17]Read from MH i2c: 01 07 00 [17:05:17]MH_I2C_Read... [17:05:17]OFD Sender: Processing packet 228346 [packets to send 38, broken 37] [17:05:17]ProducePacketName [17:05:17]name=ofd_packets/00228346 [17:05:17]OFD Sender: To server: pG, [17:05:17]CommunicateWithHost lk.salyk.kg:30040 [17:05:17]ConnectInit lk.salyk.kg [17:05:17]Read from MH i2c: 01 07 00 1E 5C 00 00 00 00 00 FF 0F 8F [17:05:17]RasterBufferAndPrint [17:05:17]line Счет N : (1)1964847 [17:05:17]line ИНН: 02508201610067 [17:05:17]line Контрольно-Кассовый Чек [17:05:17]line ПРОДАЖА [17:05:17]line ТРК (МРК, ГНК) : 53 [17:05:17]line Товар: 2710124130 [17:05:17]line Аи-92-К-5 [17:05:17]line 20.930 * 66.90 [17:05:17]line = 1400.22 [17:05:17]line НДС 12% НСП 1% [17:05:17]Connected sock=10 [17:05:17]line > о реализуемом товаре [17:05:17]Data to sent: line ОКРУГЛЕНИЕ: -0.22 [17:05:17]87 95 F6 70 line ИТОГО: 1400.00 [17:05:17]47 line Внесено: 1400.00 [17:05:17]2C line СДАЧА: 0.00 [17:05:17]01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 C7 4A 07 01 2B 78 5A line НСП 1% : 12.39 [17:05:17]03 line НДС 12% : 148.70 [17:05:17]01 line Наличными: 1400.00 [17:05:17]line Безнал.: 0.00 [17:05:17]line Место: АЗС № 133 "Партнер Нефть" [17:05:17]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:05:17]00 line СНО: Общий режим [17:05:17]03 line Чек 310 22.10.2024 17:05 [17:05:17]00 line Смена: 535 ФФД: 1.0 [17:05:17]line ЗНМ: 0300000091 [17:05:17]line РНМ: 0000000000091685 [17:05:17]line Версия ККМ: 001 [17:05:17]FB line ФМ: 0000000000871839 [17:05:17]00 line ФД: 228346 [17:05:17]1E line ФПД: 246125936287834 [17:05:17]04 01 00 01 line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170514&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228346&fm=246125936287834&tin=02508201610067®Number=0000000000091685&sum=140000 [17:05:17]23 04 4D 00 8A written 0, free lines is 4095 [17:05:17]04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 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 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 Write to MH i2c: 00 39 04 06 01 00 00 00 00 00 00 00 00 48 00 5C 1F 04 02 00 A4 01 [17:05:18]00 Write i2c OK [17:05:18]12 04 04 00 MH_I2C_Read... [17:05:18]36 Read from MH i2c: 01 01 00 00 F4 03 04 00 4A [17:05:18]DB MH_I2C_Read... [17:05:18]17 Read from MH i2c: 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FA 7B 03 00 35 04 06 00 DF D9 A9 00 A0 5A C7 ED 58 80 D3 C3 D0 01 [17:05:18]01 07 00 [17:05:18]MH_I2C_Read... [17:05:18]Read from MH i2c: 01 07 00 48 5C 00 00 00 00 00 34 0D EC [17:05:18]RasterBufferAndPrint [17:05:18]line [17:05:18]line [17:05:18]ConnectInit Can't connect to host [17:05:18]line [17:05:18]line [17:05:18]line [17:05:18]written 0, free lines is 4095 [17:05:18]MH_Cut [17:05:18]Write to MH i2c: D1 01 00 4F 5C 01 7D Received data: [17:05:18]87 Write i2c OK [17:05:18]95 MH_I2C_Read... [17:05:18]Read from MH i2c: D1 [17:05:18]F6 MH_I2C_Read... [17:05:18]70 Read from MH i2c: 47 D1 2C 01 01 00 [17:05:18]MH_I2C_Read... [17:05:18]Read from MH i2c: 00 D1 30 01 30 00 4F 5C 00 30 7C 30 [17:05:19]30 Write to MH i2c: 01 00 00 30 50 30 5C 30 AC 30 30 38 37 31 38 33 39 4F [17:05:19]*** Cut start [17:05:19]Write i2c OK [17:05:19]*** Partial cut [17:05:19]MH_I2C_Read... [17:05:19]00 00 00 2D 99 47 00 70 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 *** CUTSNS_PIN = 1 [17:05:19]34 *** CUTSNS_PIN = 0 [17:05:19]33 34 36 31 32 33 34 11 *** Brake cut motor [17:05:19]04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FA 7B 03 00 F4 03 04 00 49 86 17 67 B6 04 01 00 00 7F FE 6F 7D B8 2B BC 8E [17:05:19]CommunicateWithHost err = 0 [17:05:19]CheckOFDResponse [17:05:19]1017 (14) - 77093643461234 [17:05:19]1041 (16) - 0000000000871839 [17:05:19]1040 (4) - 228346 [17:05:19]1012 (4) - 22.10.2024 11:02 [17:05:19]1206 (1) - 0 [17:05:19]OFD Sender: Remove packet 228346 [17:05:19]ProducePacketName [17:05:19]name=ofd_packets/00228346 [17:05:19]NVStorageDeleteData [17:05:19]Read from MH i2c: *** Stop cut motor [17:05:19]01 *** Cut end [17:05:19] [17:05:19]MH_I2C_Read... [17:05:19]Read from MH i2c: 01 07 00 [17:05:19]MH_I2C_Read... [17:05:19]Read from MH i2c: 01 07 00 50 5C 00 00 00 00 00 FF 0F C1 [17:05:19]process_action close_receipt done [17:05:19]requested_data is exist [17:05:19]produce_requested_data [17:05:19]requested_item fm.sn is exist - process it [17:05:19]wFMCommunicate request_size=4 [17:05:19]MH_SAM_APDU [17:05:19]CAPDU: 80 11 00 00 [17:05:19]Write to MH i2c: E2 08 00 51 5C 80 11 00 00 00 00 00 00 27 [17:05:19]Write i2c OK [17:05:19]MH_I2C_Read... [17:05:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:19]Read from MH i2c: E2 [17:05:19]MH_I2C_Read... [17:05:19]Read from MH i2c: E2 17 00 [17:05:19]MH_I2C_Read... [17:05:19]Read from MH i2c: E2 17 00 51 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7E [17:05:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:05:20]wFMCommunicate OK [17:05:20]requested_item fd.num is exist - process it [17:05:20]SAM_PROTO_GetFieldsCounters [17:05:20]wFMCommunicate request_size=4 [17:05:20]MH_SAM_APDU [17:05:20]CAPDU: 80 13 00 00 [17:05:20]Write to MH i2c: E2 08 OFD Sender: No OFD packet to send [17:05:20]00 52 5C 80 13 00 00 00 00 00 00 2A [17:05:20]Write i2c OK [17:05:20]MH_I2C_Read... [17:05:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:05:20]Read from MH i2c: E2 [17:05:20]MH_I2C_Read... [17:05:20]Read from MH i2c: E2 62 00 [17:05:20]MH_I2C_Read... [17:05:20]Read from MH i2c: E2 62 00 52 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FA 7B 03 00 0E 04 04 00 17 02 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 89 [17:05:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FA 7B 03 00 0E 04 04 00 17 02 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 [17:05:21]wFMCommunicate OK [17:05:21]SAM_PROTO_GetFieldsCounters done [17:05:21]requested_item shift.num is exist - process it [17:05:21]requested_item shift.opened is exist - process it [17:05:21]req_shift_opened [17:05:21]FM_GetShiftState [17:05:21]SAM_PROTO_GetShiftState [17:05:21]wFMCommunicate request_size=4 [17:05:21]MH_SAM_APDU [17:05:21]CAPDU: 80 13 01 00 [17:05:21]Write to MH i2c: E2 08 00 53 5C 80 13 01 00 00 00 00 00 2C [17:05:21]Write i2c OK [17:05:21]MH_I2C_Read... [17:05:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:21]Read from MH i2c: E2 [17:05:21]MH_I2C_Read... [17:05:21]Read from MH i2c: E2 0E 00 [17:05:21]MH_I2C_Read... [17:05:21]Read from MH i2c: E2 0E 00 53 5C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 F3 [17:05:21]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:05:21]wFMCommunicate OK [17:05:21]SAM_PROTO_GetShiftState done [17:05:21]FM_GetShiftState done [17:05:21]req_shift_opened done [17:05:21]requested_item shift.open_date is exist - process it [17:05:21]req_shift_open_date [17:05:21]req_shift_open_date done [17:05:21]produce_requested_data done [17:05:21]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228346,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [17:05:21]process_action_free close_receipt [17:05:21]json_value_free [17:05:21]json_value_free done [17:05:21]process_json_proto returns [17:05:21]Send response to host [17:05:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228346,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [17:05:21]free response buf [17:05:21]execute_script done [17:05:21]execute_script returns [17:05:21]free content buf [17:05:21]Sock 9.Close socket [17:05:21]Sock 9.Thread stoped [17:05:23]ConnectInit Can't connect to host [17:05:25]OFD Sender: No OFD packet to send [17:05:28]ConnectInit Can't connect to host [17:05:30]OFD Sender: No OFD packet to send [17:05:33]ConnectInit Can't connect to host [17:05:35]OFD Sender: No OFD packet to send [17:05:39]ConnectInit Can't connect to host [17:05:40]OFD Sender: No OFD packet to send [17:05:44]ConnectInit Can't connect to host [17:05:45]OFD Sender: No OFD packet to send [17:05:49]ConnectInit Can't connect to host [17:05:50]OFD Sender: No OFD packet to send [17:05:54]ConnectInit Can't connect to host [17:05:55]OFD Sender: No OFD packet to send [17:05:59]ConnectInit Can't connect to host [17:06:00]OFD Sender: No OFD packet to send [17:06:04]ConnectInit Can't connect to host [17:06:05]OFD Sender: No OFD packet to send [17:06:09]ConnectInit Can't connect to host [17:06:10]OFD Sender: No OFD packet to send [17:06:10]accept exits with 7 [17:06:10]New connection [17:06:10]New thread 3066994020 created [17:06:10]Thread 3067137380 joined [17:06:10]Waiting for new connection... [17:06:10] Sock 7.Parse request [17:06:10]Sock 7.Check first char [17:06:10]Sock 7.First char is OK [17:06:10]request: POST /json_proto HTTP/1.0 [17:06:10]Method: POST [17:06:10]URL: /json_proto [17:06:10]Method is POST - this is cgi request [17:06:10]url: /json_proto [17:06:10]query_string will be loaded in cgi processing [17:06:10]execute_cgi json_proto POST (null) [17:06:10]execute_cgi path=json_proto method=POST [17:06:10]POST find Content-Length [17:06:10]Host: 172.17.44.195:8080 [17:06:10]Content-Length: 678 [17:06:10]Content-Type: application/json [17:06:10] [17:06:10]POST finish read [17:06:10]Found Content-Length = 678 [17:06:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:06:10]execute_script... [17:06: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)1964848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:06:10]POST & json_proto [17:06:10]process_json_proto [17:06:10]json parsed OK: [17:06:10]protocol is kg_v1.0 [17:06:10]action value=close_receipt [17:06:10]process_action close_receipt [17:06:10]cmd_close_receipt [17:06:10]MH_GetDate [17:06:10]Write to MH i2c: F0 00 00 54 5C 9F [17:06:10]Write i2c OK [17:06:10]MH_I2C_Read... [17:06:10]Read from MH i2c: F0 [17:06:10]MH_I2C_Read... [17:06:10]Read from MH i2c: F0 09 00 [17:06:10]MH_I2C_Read... [17:06:10]Read from MH i2c: F0 09 00 54 5C 00 87 DB 17 67 82 C9 CF 66 08 [17:06:10]GetLastDocTimeStamp 1729616714 [17:06:10]current date 1729616775 [17:06:10]FM_GetShiftState [17:06:10]SAM_PROTO_GetShiftState [17:06:10]wFMCommunicate request_size=4 [17:06:10]MH_SAM_APDU [17:06:10]CAPDU: 80 13 01 00 [17:06:10]Write to MH i2c: E2 08 00 55 5C 80 13 01 00 00 00 00 00 2E [17:06:10]Write i2c OK [17:06:10]MH_I2C_Read... [17:06:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:10]Read from MH i2c: E2 [17:06:10]MH_I2C_Read... [17:06:10]Read from MH i2c: E2 0E 00 [17:06:10]MH_I2C_Read... [17:06:10]Read from MH i2c: E2 0E 00 55 5C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 F5 [17:06:10]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:06:10]wFMCommunicate OK [17:06:10]SAM_PROTO_GetShiftState done [17:06:10]FM_GetShiftState done [17:06:10]opened in 1729555538 [17:06:10]opened+sec_in_day 1729641938 [17:06:10]quantity*price = 50041 [17:06:10]sum+1 = 50042 [17:06:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 311 22.10.2024 17:06 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228347 ФПД: 230373010290388 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170615&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228347&fm=230373010290388&tin=02508201610067®Number=0000000000091685&sum=50000 [17:06:14]StoreToDocumentArchive [17:06:14]shift 535 fd 228347 [17:06:14]save to /storage/0535/doc_00228347 [17:06:14]save last doc name /storage/0535/doc_00228347 to /storage/kkm_last_doc_name [17:06:14]save OK [17:06:14]Clear old archive folders... [17:06:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:06:14]tlvbuf is 00C67E70 [17:06:14]SAM_PROTO_ClearQueue [17:06:14]wFMCommunicate request_size=4 [17:06:14]MH_SAM_APDU [17:06:14]CAPDU: 80 09 00 00 [17:06:14]Write to MH i2c: E2 08 00 62 5C 80 09 00 00 00 00 00 00 30 [17:06:14]Write i2c OK [17:06:14]MH_I2C_Read... [17:06:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:14]Read from MH i2c: E2 [17:06:14]MH_I2C_Read... [17:06:14]Read from MH i2c: E2 03 00 [17:06:14]MH_I2C_Read... [17:06:14]Read from MH i2c: E2 03 00 62 5C 00 90 00 32 [17:06:14]RAPDU: 90 00 [17:06:15]wFMCommunicate OK [17:06:15]SAM_PROTO_ClearQueue done [17:06:15]KKMCreateOFDPacket [17:06:15]OFDProtocolAddRootSTLVToBuf [17:06:15]FM_MakeSignedData [17:06:15]FM_MakeSignedData [17:06:15]SAM_PROTO_SignData [17:06:15]wFMCommunicate request_size=4 [17:06:15]MH_SAM_APDU [17:06:15]CAPDU: 80 0D 01 02 [17:06:15]Write to MH i2c: E2 08 00 63 5C 80 0D 01 02 00 00 00 00 38 [17:06:15]Write i2c OK [17:06:15]MH_I2C_Read... [17:06:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:15]Read from MH i2c: E2 [17:06:15]MH_I2C_Read... [17:06:15]Read from MH i2c: E2 03 00 [17:06:15]MH_I2C_Read... [17:06:15]Read from MH i2c: E2 03 00 63 5C 00 90 00 33 [17:06:15]RAPDU: 90 00 [17:06:15]wFMCommunicate OK [17:06:15]wFMCommunicate request_size=255 [17:06:15]MH_SAM_APDU [17:06: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 OFD Sender: No OFD packet to send [17:06:15]9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 87 DB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FB 7B 03 00 35 04 06 00 D1 [17:06:15]Write to MH i2c: E2 02 01 64 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 87 DB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FB 7B 03 00 35 04 06 00 D1 00 00 4A [17:06:16]Write i2c OK [17:06:16]MH_I2C_Read... [17:06:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:16]Read from MH i2c: E2 [17:06:17]MH_I2C_Read... [17:06:17]Read from MH i2c: E2 03 00 [17:06:17]MH_I2C_Read... [17:06:17]Read from MH i2c: E2 03 00 64 5C 00 90 00 34 [17:06:17]RAPDU: 90 00 [17:06:17]wFMCommunicate OK [17:06:17]wFMCommunicate request_size=10 [17:06:17]MH_SAM_APDU [17:06:17]CAPDU: 80 0D 02 02 05 85 E5 71 B6 D4 [17:06:17]Write to MH i2c: E2 0D 00 65 5C 80 0D 02 02 05 00 85 E5 71 B6 D4 00 00 AA [17:06:17]Write i2c OK [17:06:17]MH_I2C_Read... [17:06:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:17]Read from MH i2c: E2 [17:06:17]MH_I2C_Read... [17:06:17]Read from MH i2c: E2 03 00 [17:06:17]MH_I2C_Read... [17:06:17]Read from MH i2c: E2 03 00 65 5C 00 90 00 35 [17:06:17]RAPDU: 90 00 [17:06:17]wFMCommunicate OK [17:06:17]wFMCommunicate request_size=4 [17:06:17]MH_SAM_APDU [17:06:17]CAPDU: 80 0D 03 02 [17:06:17]Write to MH i2c: E2 08 00 66 5C 80 0D 03 02 00 00 00 00 3D [17:06:17]Write i2c OK [17:06:17]MH_I2C_Read... [17:06:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:06:17]Read from MH i2c: E2 [17:06:17]MH_I2C_Read... [17:06:17]Read from MH i2c: E2 0B 00 [17:06:17]MH_I2C_Read... [17:06:17]Read from MH i2c: E2 0B 00 66 5C 00 C4 60 C1 08 ED A0 F0 2D 90 00 D5 [17:06:17]RAPDU: C4 60 C1 08 ED A0 F0 2D 90 00 [17:06:17]wFMCommunicate OK [17:06:17]SAM_PROTO_SignData done [17:06:17]FM_MakeSignedData done [17:06:17]CreateOFDProtocolMessage [17:06:17]wFMCommunicate request_size=4 [17:06:17]MH_SAM_APDU [17:06:17]CAPDU: 80 11 00 00 [17:06:17]Write to MH i2c: E2 08 00 67 5C 80 11 00 00 00 00 00 00 3D [17:06:17]Write i2c OK [17:06:17]MH_I2C_Read... [17:06:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:17]Read from MH i2c: E2 [17:06:17]MH_I2C_Read... [17:06:17]Read from MH i2c: E2 17 00 [17:06:17]MH_I2C_Read... [17:06:17]Read from MH i2c: E2 17 00 67 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 94 [17:06:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:06:17]wFMCommunicate OK [17:06:17]CreateOFDProtocolMessage done [17:06:17]OFDSenderStorePacket 228347 [17:06:17]StoreOFDPacket docnum=228347 [17:06:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 F7 16 07 01 84 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 87 DB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FB 7B 03 00 35 04 06 00 D1 85 E5 71 B6 D4 C4 60 C1 08 ED A0 F0 2D [17:06:17]CheckFolder [17:06:17]dirname=/storage/ofd_packets [17:06:17]CheckFolder done [17:06:17]ProducePacketName [17:06:17]name=ofd_packets/00228347 [17:06:17]NVStorageSaveData ofd_packets/00228347 [17:06:17]File name is /storage/ofd_packets/00228347 [17:06:17]Write 301 bytes [17:06:17]NVStorageSaveData done [17:06:17]OFDSenderStorePacket done [17:06:17]KKMCreateOFDPacket done [17:06:17]NVStorageSaveData kkm_last_timestamp [17:06:17]File name is /storage/kkm_last_timestamp [17:06:17]Write 4 bytes [17:06:17]NVStorageSaveData done [17:06:17]ExternCall_PrintAddStr [17:06:17]wPrintStart [17:06:17]Write to MH i2c: 01 00 00 68 5C C4 [17:06:17]OFD Sender: Processing packet 228347 [packets to send 38, broken 37] [17:06:18]ProducePacketName [17:06:18]name=ofd_packets/00228347 [17:06:18]OFD Sender: To server: pG, [17:06:18]CommunicateWithHost lk.salyk.kg:30040 [17:06:18]ConnectInit lk.salyk.kg [17:06:18]Write i2c OK [17:06:18]MH_I2C_Read... [17:06:18]Read from MH i2c: 01 [17:06:18]MH_I2C_Read... [17:06:18]Read from MH i2c: 01 07 00 [17:06:18]MH_I2C_Read... [17:06:18]Read from MH i2c: 01 07 00 68 5C 00 00 00 00 00 FF 0F D9 [17:06:18]RasterBufferAndPrint [17:06:18]line Счет N : (1)1964848 [17:06:18]line ИНН: 02508201610067 [17:06:18]line Контрольно-Кассовый Чек [17:06:18]line ПРОДАЖА [17:06:18]line ТРК (МРК, ГНК) : 43 [17:06:18]line Товар: 2710124130 [17:06:18]line Аи-92-К-5 [17:06:18]line 7.480 * 66.90 [17:06:18]line = 500.41 [17:06:18]line НДС 12% НСП 1% [17:06:18]line > о реализуемом товаре [17:06:18]line ОКРУГЛЕНИЕ: -0.41 [17:06:18]Connected sock=10 [17:06:18]line ИТОГО: 500.00 [17:06:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 line Внесено: 500.00 [17:06:18]37 line СДАЧА: 0.00 [17:06:18]line НСП 1% : 4.43 [17:06:18]line НДС 12% : 53.14 [17:06:18]line Наличными: 500.00 [17:06:18]line Безнал.: 0.00 [17:06:18]31 line Место: АЗС № 133 "Партнер Нефть" [17:06:18]38 line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:06:18]33 line СНО: Общий режим [17:06:18]line Чек 311 22.10.2024 17:06 [17:06:18]line Смена: 535 ФФД: 1.0 [17:06:18]line ЗНМ: 0300000091 [17:06:18]line РНМ: 0000000000091685 [17:06:18]39 line Версия ККМ: 001 [17:06:18]0F line ФМ: 0000000000871839 [17:06:18]01 line ФД: 228347 [17:06:18]line ФПД: 230373010290388 [17:06:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170615&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228347&fm=230373010290388&tin=02508201610067®Number=0000000000091685&sum=50000 [17:06:18]00 written 0, free lines is 4095 [17:06:18]00 F7 16 07 01 84 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 Write to MH i2c: C3 00 00 00 00 01 39 00 04 00 06 92 00 5C 00 00 00 00 00 EE 00 [17:06:18]1F 04 02 00 Write i2c OK [17:06:18]01 MH_I2C_Read... [17:06:18]00 Read from MH i2c: 12 01 04 [17:06:19]04 MH_I2C_Read... [17:06:19]00 37 01 Read from MH i2c: 00 01 00 F4 03 04 07 00 00 87 DB 17 67 [17:06:19]0E MH_I2C_Read... [17:06:19]04 04 00 17 Read from MH i2c: 02 01 00 07 00 00 B9 92 04 5C 01 00 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 38 00 37 00 00 26 0D 28 31 [17:06:19]38 RasterBufferAndPrint [17:06:19]33 line [17:06:19]39 line [17:06:19]10 line [17:06:19]04 04 00 FB line [17:06:19]7B line [17:06:19]03 00 35 04 written 0, free lines is 3956 [17:06:19]06 00 D1 85 MH_Cut [17:06:19]E5 Write to MH i2c: 71 D1 B6 01 D4 C4 60 C1 08 00 ED 99 A0 5C F0 01 2D C7 [17:06:19] [17:06:19]Write i2c OK [17:06:19]MH_I2C_Read... [17:06:19]Read from MH i2c: D1 [17:06:19]MH_I2C_Read... [17:06:19]Read from MH i2c: D1 01 00 [17:06:19]MH_I2C_Read... [17:06:19]Read from MH i2c: D1 01 00 99 5C 00 C6 [17:06:19]Write to MH i2c: 01 00 00 9A 5C F6 [17:06:19]Write i2c OK [17:06:19]MH_I2C_Read... [17:06:19]ConnectInit Can't connect to host [17:06:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 *** Cut start [17:06:19]30 *** Partial cut [17:06:19]30 38 37 31 *** CUTSNS_PIN = 1 [17:06:19]38 33 *** CUTSNS_PIN = 0 [17:06:20]39 4F 00 *** Brake cut motor [17:06:20]00 00 9F 59 47 00 53 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 *** Stop cut motor [17:06:20]Read from MH i2c: *** Cut end [17:06:20]01 [17:06:20]MH_I2C_Read... [17:06:20]30 30 38 37 31 38 33 39 10 Read from MH i2c: 04 01 04 07 00 00 FB [17:06:20]7B MH_I2C_Read... [17:06:20]03 Read from MH i2c: 00 F4 03 04 00 01 86 07 86 00 17 9A 67 5C B6 04 01 00 00 00 C3 00 00 00 00 FF 0F 0B [17:06:20]process_action close_receipt done [17:06:20]requested_data is exist [17:06:20]produce_requested_data [17:06:20]requested_item fm.sn is exist - process it [17:06:20]wFMCommunicate request_size=4 [17:06:20]MH_SAM_APDU [17:06:20]CAPDU: FF 80 1C 11 3C 00 5E E8 D4 B1 [17:06:20]00 CommunicateWithHost err = 0 [17:06:20] [17:06:20]CheckOFDResponse [17:06:20]Write to MH i2c: 1017 (14) - 77093643461234 [17:06:20]1041 (16) - 0000000000871839 [17:06:20]1040 (4) - 228347 [17:06:20]1012 (4) - 22.10.2024 11:03 [17:06:20]1206 (1) - 0 [17:06:20]E2 OFD Sender: Remove packet 228347 [17:06:20]08 ProducePacketName [17:06:20]00 name=ofd_packets/00228347 [17:06:20]NVStorageDeleteData [17:06:20]9B 5C 80 11 00 00 00 00 00 00 71 [17:06:20]Write i2c OK [17:06:20]MH_I2C_Read... [17:06:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:20]Read from MH i2c: E2 [17:06:20]MH_I2C_Read... [17:06:20]Read from MH i2c: E2 17 00 [17:06:20]MH_I2C_Read... [17:06:20]Read from MH i2c: E2 17 00 9B 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C8 [17:06:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:06:21]wFMCommunicate OK [17:06:21]requested_item fd.num is exist - process it [17:06:21]SAM_PROTO_GetFieldsCounters [17:06:21]wFMCommunicate request_size=4 [17:06:21]MH_SAM_APDU [17:06:21]CAPDU: 80 13 00 00 [17:06:21]Write to MH i2c: E2 08 00 9C 5C 80 13 00 00 00 00 00 00 74 [17:06:21]Write i2c OK [17:06:21]MH_I2C_Read... [17:06:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:21]Read from MH i2c: E2 [17:06:21]MH_I2C_Read... [17:06:21]Read from MH i2c: OFD Sender: No OFD packet to send [17:06:21]E2 62 00 [17:06:21]MH_I2C_Read... [17:06:21]Read from MH i2c: E2 62 00 9C 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FB 7B 03 00 0E 04 04 00 17 02 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 D7 [17:06:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FB 7B 03 00 0E 04 04 00 17 02 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 [17:06:21]wFMCommunicate OK [17:06:21]SAM_PROTO_GetFieldsCounters done [17:06:21]requested_item shift.num is exist - process it [17:06:21]requested_item shift.opened is exist - process it [17:06:21]req_shift_opened [17:06:21]FM_GetShiftState [17:06:21]SAM_PROTO_GetShiftState [17:06:21]wFMCommunicate request_size=4 [17:06:21]MH_SAM_APDU [17:06:21]CAPDU: 80 13 01 00 [17:06:21]Write to MH i2c: E2 08 00 9D 5C 80 13 01 00 00 00 00 00 76 [17:06:21]Write i2c OK [17:06:21]MH_I2C_Read... [17:06:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:22]Read from MH i2c: E2 [17:06:22]MH_I2C_Read... [17:06:22]Read from MH i2c: E2 0E 00 [17:06:22]MH_I2C_Read... [17:06:22]Read from MH i2c: E2 0E 00 9D 5C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 3D [17:06:22]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:06:22]wFMCommunicate OK [17:06:22]SAM_PROTO_GetShiftState done [17:06:22]FM_GetShiftState done [17:06:22]req_shift_opened done [17:06:22]requested_item shift.open_date is exist - process it [17:06:22]req_shift_open_date [17:06:22]req_shift_open_date done [17:06:22]produce_requested_data done [17:06:22]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228347,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [17:06:22]process_action_free close_receipt [17:06:22]json_value_free [17:06:22]json_value_free done [17:06:22]process_json_proto returns [17:06:22]Send response to host [17:06:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228347,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [17:06:22]free response buf [17:06:22]execute_script done [17:06:22]execute_script returns [17:06:22]free content buf [17:06:22]Sock 7.Close socket [17:06:22]Sock 7.Thread stoped [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:18]accept exits with 9 [17:07:18]New connection [17:07:18]New thread 3067137380 created [17:07:18]Thread 3066994020 joined [17:07:18]Waiting for new connection... [17:07:18] Sock 9.Parse request [17:07:18]Sock 9.Check first char [17:07:18]Sock 9.First char is OK [17:07:18]request: POST /json_proto HTTP/1.0 [17:07:18]Method: POST [17:07:18]URL: /json_proto [17:07:18]Method is POST - this is cgi request [17:07:18]url: /json_proto [17:07:18]query_string will be loaded in cgi processing [17:07:18]execute_cgi json_proto POST (null) [17:07:18]execute_cgi path=json_proto method=POST [17:07:18]POST find Content-Length [17:07:18]Host: 172.17.44.195:8080 [17:07:18]Content-Length: 660 [17:07:18]Content-Type: application/json [17:07:18] [17:07:18]POST finish read [17:07:18]Found Content-Length = 660 [17:07:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "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" ] } } [17:07:18]execute_script... [17:07: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)1964850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "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" ] } } [17:07:18]POST & json_proto [17:07:18]process_json_proto [17:07:18]json parsed OK: [17:07:18]protocol is kg_v1.0 [17:07:18]action value=close_receipt [17:07:18]process_action close_receipt [17:07:18]cmd_close_receipt [17:07:18]MH_GetDate [17:07:18]Write to MH i2c: F0 00 00 9E 5C E9 [17:07:18]Write i2c OK [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: F0 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: F0 09 00 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: F0 09 00 9E 5C 00 CB DB 17 67 82 C9 CF 66 96 [17:07:18]GetLastDocTimeStamp 1729616775 [17:07:18]current date 1729616843 [17:07:18]FM_GetShiftState [17:07:18]SAM_PROTO_GetShiftState [17:07:18]wFMCommunicate request_size=4 [17:07:18]MH_SAM_APDU [17:07:18]CAPDU: 80 13 01 00 [17:07:18]Write to MH i2c: E2 08 00 9F 5C 80 13 01 00 00 00 00 00 78 [17:07:18]Write i2c OK [17:07:18]MH_I2C_Read... [17:07:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:18]Read from MH i2c: E2 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: E2 0E 00 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: E2 0E 00 9F 5C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 3F [17:07:18]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:07:18]wFMCommunicate OK [17:07:18]SAM_PROTO_GetShiftState done [17:07:18]FM_GetShiftState done [17:07:18]opened in 1729555538 [17:07:18]opened+sec_in_day 1729641938 [17:07:18]quantity*price = 70041 [17:07:18]sum+1 = 70043 [17:07:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 312 22.10.2024 17:07 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228348 ФПД: 15767005413226 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170723&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228348&fm=15767005413226&tin=02508201610067®Number=0000000000091685&sum=70000 [17:07:21]StoreToDocumentArchive [17:07:21]shift 535 fd 228348 [17:07:21]save to /storage/0535/doc_00228348 [17:07:21]save last doc name /storage/0535/doc_00228348 to /storage/kkm_last_doc_name [17:07:21]save OK [17:07:21]Clear old archive folders... [17:07:21]ProcessDocumentItem done err = 0, tmpTLVsize=244 [17:07:21]tlvbuf is 00CDE030 [17:07:21]SAM_PROTO_ClearQueue [17:07:21]wFMCommunicate request_size=4 [17:07:21]MH_SAM_APDU [17:07:21]CAPDU: 80 09 00 00 [17:07:21]Write to MH i2c: E2 08 00 AC 5C 80 09 00 00 00 00 00 00 7A [17:07:22]Write i2c OK [17:07:22]MH_I2C_Read... [17:07:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:22]Read from MH i2c: E2 [17:07:22]MH_I2C_Read... [17:07:22]Read from MH i2c: E2 03 00 [17:07:22]MH_I2C_Read... [17:07:22]Read from MH i2c: E2 03 00 AC 5C 00 90 00 7C [17:07:22]RAPDU: 90 00 [17:07:22]wFMCommunicate OK [17:07:22]SAM_PROTO_ClearQueue done [17:07:22]KKMCreateOFDPacket [17:07:22]OFDProtocolAddRootSTLVToBuf [17:07:22]FM_MakeSignedData [17:07:22]FM_MakeSignedData [17:07:22]SAM_PROTO_SignData [17:07:22]wFMCommunicate request_size=4 [17:07:22]MH_SAM_APDU [17:07:22]CAPDU: 80 0D 01 02 [17:07:22]Write to MH i2c: E2 08 00 AD 5C 80 0D 01 02 00 00 00 00 82 [17:07:22]Write i2c OK [17:07:22]MH_I2C_Read... [17:07:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:22]Read from MH i2c: E2 [17:07:22]MH_I2C_Read... [17:07:22]Read from MH i2c: E2 03 00 [17:07:22]MH_I2C_Read... [17:07:22]Read from MH i2c: E2 03 00 AD 5C 00 90 00 7D [17:07:22]RAPDU: 90 00 [17:07:22]wFMCommunicate OK [17:07:22]wFMCommunicate request_size=253 [17:07:22]MH_SAM_APDU [17:07:22]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 CB DB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FC 7B 03 00 35 04 06 00 0E 57 0A C1 BF 6A [17:07:22]Write to MH i2c: E2 00 01 AE 5C 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 CB DB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FC 7B 03 00 35 04 06 00 0E 57 0A C1 BF 6A 00 00 CE [17:07:23]Write i2c OK [17:07:23]MH_I2C_Read... [17:07:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:23]Read from MH i2c: E2 [17:07:23]MH_I2C_Read... [17:07:23]Read from MH i2c: E2 03 00 [17:07:23]MH_I2C_Read... [17:07:23]Read from MH i2c: E2 03 00 AE 5C 00 90 00 7E [17:07:23]RAPDU: 90 00 [17:07:23]wFMCommunicate OK [17:07:23]wFMCommunicate request_size=4 [17:07:23]MH_SAM_APDU [17:07:23]CAPDU: 80 0D 03 02 [17:07:23]Write to MH i2c: E2 08 00 AF 5C 80 0D 03 02 00 00 00 00 86 [17:07:23]Write i2c OK [17:07:23]MH_I2C_Read... [17:07:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:24]Read from MH i2c: E2 [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: E2 0B 00 [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: E2 0B 00 AF 5C 00 22 E7 6C FD 02 56 9C D8 90 00 C5 [17:07:24]RAPDU: 22 E7 6C FD 02 56 9C D8 90 00 [17:07:24]wFMCommunicate OK [17:07:24]SAM_PROTO_SignData done [17:07:24]FM_MakeSignedData done [17:07:24]CreateOFDProtocolMessage [17:07:24]wFMCommunicate request_size=4 [17:07:24]MH_SAM_APDU [17:07:24]CAPDU: 80 11 00 00 [17:07:24]Write to MH i2c: E2 08 00 B0 5C 80 11 00 00 00 00 00 00 86 [17:07:24]Write i2c OK [17:07:24]MH_I2C_Read... [17:07:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:24]Read from MH i2c: E2 [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: E2 17 00 [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: E2 17 00 B0 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DD [17:07:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:07:24]wFMCommunicate OK [17:07:24]CreateOFDProtocolMessage done [17:07:24]OFDSenderStorePacket 228348 [17:07:24]StoreOFDPacket docnum=228348 [17:07:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 F1 06 00 01 32 79 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 CB DB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FC 7B 03 00 35 04 06 00 0E 57 0A C1 BF 6A 22 E7 6C FD 02 56 9C D8 [17:07:24]CheckFolder [17:07:24]dirname=/storage/ofd_packets [17:07:24]CheckFolder done [17:07:24]ProducePacketName [17:07:24]name=ofd_packets/00228348 [17:07:24]NVStorageSaveData ofd_packets/00228348 [17:07:24]File name is /storage/ofd_packets/00228348 [17:07:24]Write 294 bytes [17:07:24]NVStorageSaveData done [17:07:24]OFDSenderStorePacket done [17:07:24]KKMCreateOFDPacket done [17:07:24]NVStorageSaveData kkm_last_timestamp [17:07:24]File name is /storage/kkm_last_timestamp [17:07:24]Write 4 bytes [17:07:24]NVStorageSaveData done [17:07:24]ExternCall_PrintAddStr [17:07:24]wPrintStart [17:07:24]Write to MH i2c: 01 00 00 B1 5C 0D [17:07:24]OFD Sender: Processing packet 228348 [packets to send 38, broken 37] [17:07:24]ProducePacketName [17:07:24]name=ofd_packets/00228348 [17:07:24]OFD Sender: To server: pG, [17:07:24]CommunicateWithHost lk.salyk.kg:30040 [17:07:24]ConnectInit lk.salyk.kg [17:07:24]Write i2c OK [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: 01 [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: 01 07 00 [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: 01 07 00 B1 5C 00 00 00 00 00 FF 0F 22 [17:07:24]RasterBufferAndPrint [17:07:24]line Счет N : (1)1964850 [17:07:24]line ИНН: 02508201610067 11 [17:07:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:07:27]wFMCommunicate OK [17:07:27]requested_item fd.num is exist - process it [17:07:27]SAM_PROTO_GetFieldsCounters [17:07:27]wFMCommunicate request_size=4 [17:07:27]MH_SAM_APDU [17:07:27]CAPDU: 80 13 00 00 [17:07:27]Write to MH i2c: E2 08 00 E5 5C 80 13 00 00 00 00 00 00 BD [17:07:27]Write i2c OK [17:07:27]MH_I2C_Read... [17:07:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:27]Read from MH i2c: E2 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: E2 62 00 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: E2 62 00 E5 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FC 7B 03 00 0E 04 04 00 17 02 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 24 [17:07:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FC 7B 03 00 0E 04 04 00 17 02 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 [17:07:27]wFMCommunicate OK [17:07:27]SAM_PROTO_GetFieldsCounters done [17:07:27]requested_item shift.num is exist - process it [17:07:27]requested_item shift.opened is exist - process it [17:07:27]req_shift_opened [17:07:27]FM_GetShiftState [17:07:27]SAM_PROTO_GetShiftState [17:07:27]wFMCommunicate request_size=4 [17:07:27]MH_SAM_APDU [17:07:27]CAPDU: 80 13 01 00 [17:07:27]Write to MH i2c: E2 08 00 E6 5C 80 13 01 00 00 00 00 00 BF [17:07:27]Write i2c OK [17:07:27]MH_I2C_Read... [17:07:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:27]Read from MH i2c: E2 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: E2 0E 00 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: E2 0E 00 E6 5C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 86 [17:07:27]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:07:27]wFMCommunicate OK [17:07:27]SAM_PROTO_GetShiftState done [17:07:28]FM_GetShiftState done [17:07:28]req_shift_opened done [17:07:28]requested_item shift.open_date is exist - process it [17:07:28]req_shift_open_date [17:07:28]req_shift_open_date done [17:07:28]produce_requested_data done [17:07:28]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228348,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [17:07:28]process_action_free close_receipt [17:07:28]json_value_free [17:07:28]json_value_free done [17:07:28]process_json_proto returns [17:07:28]Send response to host [17:07:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228348,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [17:07:28]free response buf [17:07:28]execute_script done [17:07:28]execute_script returns [17:07:28]free content buf [17:07:28]Sock 9.Close socket [17:07:28]Sock 9.Thread stoped [17:07:28]accept exits with 7 [17:07:28]New connection [17:07:28]New thread 3066994020 created [17:07:28]Thread 3067137380 joined [17:07:28]Waiting for new connection... [17:07:28] Sock 7.Parse request [17:07:28]Sock 7.Check first char [17:07:28]Sock 7.First char is OK [17:07:28]request: POST /json_proto HTTP/1.0 [17:07:28]Method: POST [17:07:28]URL: /json_proto [17:07:28]Method is POST - this is cgi request [17:07:28]url: /json_proto [17:07:28]query_string will be loaded in cgi processing [17:07:28]execute_cgi json_proto POST (null) [17:07:28]execute_cgi path=json_proto method=POST [17:07:28]POST find Content-Length [17:07:28]Host: 172.17.44.195:8080 [17:07:28]Content-Length: 683 [17:07:28]Content-Type: application/json [17:07:28] [17:07:28]POST finish read [17:07:28]Found Content-Length = 683 [17:07:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:28]execute_script... [17:07: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)1964849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:28]POST & json_proto [17:07:28]process_json_proto [17:07:28]json parsed OK: [17:07:28]protocol is kg_v1.0 [17:07:28]action value=close_receipt [17:07:28]process_action close_receipt [17:07:28]cmd_close_receipt [17:07:28]MH_GetDate [17:07:28]Write to MH i2c: F0 00 00 E7 5C 32 [17:07:28]Write i2c OK [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: F0 [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: F0 09 00 [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: F0 09 00 E7 5C 00 D5 DB 17 67 82 C9 CF 66 E9 [17:07:28]GetLastDocTimeStamp 1729616843 [17:07:28]current date 1729616853 [17:07:28]FM_GetShiftState [17:07:28]SAM_PROTO_GetShiftState [17:07:28]wFMCommunicate request_size=4 [17:07:28]MH_SAM_APDU [17:07:28]CAPDU: 80 13 01 00 [17:07:28]Write to MH i2c: E2 08 00 E8 5C 80 13 01 00 00 00 00 00 C1 [17:07:28]Write i2c OK [17:07:28]MH_I2C_Read... [17:07:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:28]Read from MH i2c: E2 [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: E2 0E 00 [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: E2 0E 00 E8 5C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 88 [17:07:28]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:07:28]wFMCommunicate OK [17:07:28]SAM_PROTO_GetShiftState done [17:07:28]FM_GetShiftState done [17:07:28]opened in 1729555538 [17:07:28]opened+sec_in_day 1729641938 [17:07:28]quantity*price = 200043 [17:07:28]sum+1 = 200044 [17:07:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 313 22.10.2024 17:07 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228349 ФПД: 143915444403415 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170733&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228349&fm=143915444403415&tin=02508201610067®Number=0000000000091685&sum=200000 [17:07:32]StoreToDocumentArchive [17:07:32]shift 535 fd 228349 [17:07:32]save to /storage/0535/doc_00228349 [17:07:32]save last doc name /storage/0535/doc_00228349 to /storage/kkm_last_doc_name [17:07:32]save OK [17:07:32]Clear old archive folders... [17:07:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:07:32]tlvbuf is 00D13D70 [17:07:32]SAM_PROTO_ClearQueue [17:07:32]wFMCommunicate request_size=4 [17:07:32]MH_SAM_APDU [17:07:32]CAPDU: 80 09 00 00 [17:07:32]Write to MH i2c: E2 08 00 F5 5C 80 09 00 00 00 00 00 00 C3 [17:07:32]Write i2c OK [17:07:32]MH_I2C_Read... [17:07:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:32]Read from MH i2c: E2 [17:07:32]MH_I2C_Read... [17:07:32]Read from MH i2c: E2 03 00 [17:07:32]MH_I2C_Read... [17:07:32]Read from MH i2c: E2 03 00 F5 5C 00 90 00 C5 [17:07:32]RAPDU: 90 00 [17:07:32]wFMCommunicate OK [17:07:32]SAM_PROTO_ClearQueue done [17:07:32]KKMCreateOFDPacket [17:07:32]OFDProtocolAddRootSTLVToBuf [17:07:32]FM_MakeSignedData [17:07:32]FM_MakeSignedData [17:07:32]SAM_PROTO_SignData [17:07:32]wFMCommunicate request_size=4 [17:07:32]MH_SAM_APDU [17:07:32]CAPDU: 80 0D 01 02 [17:07:32]Write to MH i2c: E2 08 00 F6 5C 80 0D 01 02 00 00 00 00 CB [17:07:32]Write i2c OK [17:07:32]MH_I2C_Read... [17:07:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:32]Read from MH i2c: E2 [17:07:32]MH_I2C_Read... [17:07:32]Read from MH i2c: E2 03 00 [17:07:32]MH_I2C_Read... [17:07:32]Read from MH i2c: E2 03 00 F6 5C 00 90 00 C6 [17:07:32]RAPDU: 90 00 [17:07:32]wFMCommunicate OK [17:07:32]wFMCommunicate request_size=255 [17:07:32]MH_SAM_APDU [17:07: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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 39 01 00 00 F4 03 04 00 D5 DB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FD 7B 03 00 35 04 06 00 82 [17:07:33]Write to MH i2c: E2 02 01 F7 5C 80 0D 02 02 FA 00 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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 39 01 00 00 F4 03 04 00 D5 DB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FD 7B 03 00 35 04 06 00 82 00 00 88 [17:07:34]Write i2c OK [17:07:34]MH_I2C_Read... [17:07:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:34]Read from MH i2c: E2 [17:07:34]MH_I2C_Read... [17:07:34]Read from MH i2c: E2 03 00 [17:07:34]MH_I2C_Read... [17:07:34]Read from MH i2c: E2 03 00 F7 5C 00 90 00 C7 [17:07:34]RAPDU: 90 00 [17:07:34]wFMCommunicate OK [17:07:34]wFMCommunicate request_size=10 [17:07:34]MH_SAM_APDU [17:07:34]CAPDU: 80 0D 02 02 05 E3 EC F0 FC D7 [17:07:34]Write to MH i2c: E2 0D 00 F8 5C 80 0D 02 02 05 00 E3 EC F0 FC D7 00 00 6A [17:07:34]Write i2c OK [17:07:34]MH_I2C_Read... [17:07:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:34]Read from MH i2c: E2 [17:07:34]MH_I2C_Read... [17:07:34]Read from MH i2c: E2 03 00 [17:07:34]MH_I2C_Read... [17:07:34]Read from MH i2c: E2 03 00 F8 5C 00 90 00 C8 [17:07:34]RAPDU: 90 00 [17:07:34]wFMCommunicate OK [17:07:34]wFMCommunicate request_size=4 [17:07:34]MH_SAM_APDU [17:07:34]CAPDU: 80 0D 03 02 [17:07:34]Write to MH i2c: E2 08 00 F9 5C 80 0D 03 02 00 00 00 00 D0 [17:07:34]Write i2c OK [17:07:34]MH_I2C_Read... [17:07:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:34]Read from MH i2c: E2 [17:07:34]MH_I2C_Read... [17:07:34]Read from MH i2c: E2 0B 00 [17:07:34]MH_I2C_Read... [17:07:34]Read from MH i2c: E2 0B 00 F9 5C 00 30 88 56 65 19 A4 AE 3B 90 00 EA [17:07:34]RAPDU: 30 88 56 65 19 A4 AE 3B 90 00 [17:07:34]wFMCommunicate OK [17:07:34]SAM_PROTO_SignData done [17:07:34]FM_MakeSignedData done [17:07:34]CreateOFDProtocolMessage [17:07:34]wFMCommunicate request_size=4 [17:07:34]MH_SAM_APDU [17:07:34]CAPDU: 80 11 00 00 [17:07:34]Write to MH i2c: E2 08 00 FA 5C 80 11 00 00 00 00 00 00 D0 [17:07:35]Write i2c OK [17:07:35]MH_I2C_Read... [17:07:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:35]Read from MH i2c: E2 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 17 00 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 17 00 FA 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 27 [17:07:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:07:35]wFMCommunicate OK [17:07:35]CreateOFDProtocolMessage done [17:07:35]OFDSenderStorePacket 228349 [17:07:35]StoreOFDPacket docnum=228349 [17:07:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 4B 5A 07 01 04 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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 39 01 00 00 F4 03 04 00 D5 DB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FD 7B 03 00 35 04 06 00 82 E3 EC F0 FC D7 30 88 56 65 19 A4 AE 3B [17:07:35]CheckFolder [17:07:35]dirname=/storage/ofd_packets [17:07:35]CheckFolder done [17:07:35]ProducePacketName [17:07:35]name=ofd_packets/00228349 [17:07:35]NVStorageSaveData ofd_packets/00228349 [17:07:35]File name is /storage/ofd_packets/00228349 [17:07:35]Write 301 bytes [17:07:35]NVStorageSaveData done [17:07:35]OFDSenderStorePacket done [17:07:35]KKMCreateOFDPacket done [17:07:35]NVStorageSaveData kkm_last_timestamp [17:07:35]File name is /storage/kkm_last_timestamp [17:07:35]Write 4 bytes [17:07:35]NVStorageSaveData done [17:07:35]ExternCall_PrintAddStr [17:07:35]wPrintStart [17:07:35]Write to MH i2c: 01 00 00 FB 5C 57 [17:07:35]Write i2c OK [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: 01 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: 01 07 00 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: 01 07 00 FB 5C 00 00 00 00 00 FF 0F 6C [17:07:35]RasterBufferAndPrint [17:07:35]line Счет N : (1)1964849 [17:07:35]line ИНН: 02508201610067 [17:07:35]line Контрольно-Кассовый Чек [17:07:35]line ПРОДАЖА [17:07:35]line ТРК (МРК, ГНК) : 34 [17:07:35]line Товар: 2710124500 [17:07:35]line Аи-95-К-5 [17:07:35]line 26.960 * 74.20 [17:07:35]line = 2000.43 [17:07:35]line НДС 12% НСП 1% [17:07:35]line > о реализуемом товаре [17:07:35]line ОКРУГЛЕНИЕ: -0.43 [17:07:35]line ИТОГО: 2000.00 [17:07:35]line Внесено: 2000.00 [17:07:35]line СДАЧА: 0.00 [17:07:35]line НСП 1% : 17.70 [17:07:35]line НДС 12% : 212.43 [17:07:35]line Наличными: 2000.00 [17:07:35]line Безнал.: 0.00 [17:07:35]line Место: АЗС № 133 "Партнер Нефть" [17:07:35]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:07:35]line СНО: Общий режим [17:07:35]line Чек 313 22.10.2024 17:07 [17:07:35]line Смена: 535 ФФД: 1.0 [17:07:35]line ЗНМ: 0300000091 [17:07:35]line РНМ: 0000000000091685 [17:07:35]line Версия ККМ: 001 [17:07:35]line ФМ: 0000000000871839 [17:07:35]line ФД: 228349 [17:07:35]line ФПД: 143915444403415 [17:07:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170733&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228349&fm=143915444403415&tin=02508201610067®Number=0000000000091685&sum=200000 [17:07:35]written 0, free lines is 4095 [17:07:35]Write to MH i2c: 01 00 00 25 5D 82 [17:07:35]Write i2c OK [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: 01 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: 01 07 00 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: 01 07 00 25 5D 00 00 00 00 00 C3 0C 58 [17:07:36]RasterBufferAndPrint [17:07:36]line [17:07:36]line [17:07:36]line [17:07:36]line [17:07:36]line [17:07:36]written 0, free lines is 3380 [17:07:36]MH_Cut [17:07:36]Write to MH i2c: D1 01 00 2C 5D 01 5B [17:07:36]Write i2c OK [17:07:36]MH_I2C_Read... [17:07:36]Read from MH i2c: D1 [17:07:36]MH_I2C_Read... [17:07:36]Read from MH i2c: D1 01 00 [17:07:36]MH_I2C_Read... [17:07:36]Read from MH i2c: D1 01 00 2C 5D 00 5A [17:07:36]Write to MH i2c: 01 00 00 2D 5D 8A [17:07:36]Write i2c OK [17:07:36]MH_I2C_Read... [17:07:36]*** Cut start [17:07:36]*** Partial cut [17:07:36]*** CUTSNS_PIN = 1 [17:07:36]*** CUTSNS_PIN = 0 [17:07:37]*** Brake cut motor [17:07:37]Read from MH i2c: 01 [17:07:37]MH_I2C_Read... [17:07:37]*** Stop cut motor [17:07:37]*** Cut end [17:07:37]Read from MH i2c: 01 07 00 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: 01 07 00 2D 5D 00 00 00 00 00 FF 0F 9F [17:07:37]process_action close_receipt done [17:07:37]requested_data is exist [17:07:37]produce_requested_data [17:07:37]requested_item fm.sn is exist - process it [17:07:37]wFMCommunicate request_size=4 [17:07:37]MH_SAM_APDU [17:07:37]CAPDU: 80 11 00 00 [17:07:37]Write to MH i2c: E2 08 00 2E 5D 80 11 00 00 00 00 00 00 05 [17:07:37]Write i2c OK [17:07:37]MH_I2C_Read... [17:07:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:37]Read from MH i2c: E2 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: E2 17 00 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: E2 17 00 2E 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5C [17:07:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:07:37]wFMCommunicate OK [17:07:37]requested_item fd.num is exist - process it [17:07:37]SAM_PROTO_GetFieldsCounters [17:07:37]wFMCommunicate request_size=4 [17:07:37]MH_SAM_APDU [17:07:37]CAPDU: 80 13 00 00 [17:07:37]Write to MH i2c: E2 08 00 2F 5D 80 13 00 00 00 00 00 00 08 [17:07:37]Write i2c OK [17:07:37]MH_I2C_Read... [17:07:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:38]Read from MH i2c: E2 [17:07:38]MH_I2C_Read... [17:07:38]Read from MH i2c: E2 62 00 [17:07:38]MH_I2C_Read... [17:07:38]Read from MH i2c: E2 62 00 2F 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FD 7B 03 00 0E 04 04 00 17 02 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 73 [17:07:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FD 7B 03 00 0E 04 04 00 17 02 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 [17:07:38]wFMCommunicate OK [17:07:38]SAM_PROTO_GetFieldsCounters done [17:07:38]requested_item shift.num is exist - process it [17:07:38]requested_item shift.opened is exist - process it [17:07:38]req_shift_opened [17:07:38]FM_GetShiftState [17:07:38]SAM_PROTO_GetShiftState [17:07:38]wFMCommunicate request_size=4 [17:07:38]MH_SAM_APDU [17:07:38]CAPDU: 80 13 01 00 [17:07:38]Write to MH i2c: E2 08 00 30 5D 80 13 01 00 00 00 00 00 0A [17:07:38]Write i2c OK [17:07:38]MH_I2C_Read... [17:07:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:38]Read from MH i2c: E2 [17:07:38]MH_I2C_Read... [17:07:38]Read from MH i2c: E2 0E 00 [17:07:38]MH_I2C_Read... [17:07:38]Read from MH i2c: E2 0E 00 30 5D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 D1 [17:07:38]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:07:38]wFMCommunicate OK [17:07:38]SAM_PROTO_GetShiftState done [17:07:38]FM_GetShiftState done [17:07:38]req_shift_opened done [17:07:38]requested_item shift.open_date is exist - process it [17:07:38]req_shift_open_date [17:07:38]req_shift_open_date done [17:07:38]produce_requested_data done [17:07:38]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228349,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [17:07:38]process_action_free close_receipt [17:07:38]json_value_free [17:07:38]json_value_free done [17:07:38]process_json_proto returns [17:07:38]Send response to host [17:07:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228349,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [17:07:38]free response buf [17:07:38]execute_script done [17:07:38]execute_script returns [17:07:38]free content buf [17:07:38]Sock 7.Close socket [17:07:38]Sock 7.Thread stoped [17:07:48]accept exits with 9 [17:07:48]New connection [17:07:48]New thread 3067137380 created [17:07:48]Thread 3066994020 joined [17:07:48]Waiting for new connection... [17:07:48] Sock 9.Parse request [17:07:48]Sock 9.Check first char [17:07:48]Sock 9.First char is OK [17:07:48]request: POST /json_proto HTTP/1.0 [17:07:48]Method: POST [17:07:48]URL: /json_proto [17:07:48]Method is POST - this is cgi request [17:07:48]url: /json_proto [17:07:48]query_string will be loaded in cgi processing [17:07:48]execute_cgi json_proto POST (null) [17:07:48]execute_cgi path=json_proto method=POST [17:07:48]POST find Content-Length [17:07:48]Host: 172.17.44.195:8080 [17:07:48]Content-Length: 678 [17:07:48]Content-Type: application/json [17:07:48] [17:07:48]POST finish read [17:07:48]Found Content-Length = 678 [17:07:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964851", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:07:48]execute_script... [17:07: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)1964851", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:07:48]POST & json_proto [17:07:48]process_json_proto [17:07:48]json parsed OK: [17:07:48]protocol is kg_v1.0 [17:07:48]action value=close_receipt [17:07:48]process_action close_receipt [17:07:48]cmd_close_receipt [17:07:48]MH_GetDate [17:07:48]Write to MH i2c: F0 00 00 31 5D 7D [17:07:48]Write i2c OK [17:07:48]MH_I2C_Read... [17:07:48]Read from MH i2c: F0 [17:07:48]MH_I2C_Read... [17:07:48]Read from MH i2c: F0 09 00 [17:07:48]MH_I2C_Read... [17:07:48]Read from MH i2c: F0 09 00 31 5D 00 E9 DB 17 67 82 C9 CF 66 48 [17:07:48]GetLastDocTimeStamp 1729616853 [17:07:48]current date 1729616873 [17:07:48]FM_GetShiftState [17:07:48]SAM_PROTO_GetShiftState [17:07:48]wFMCommunicate request_size=4 [17:07:48]MH_SAM_APDU [17:07:48]CAPDU: 80 13 01 00 [17:07:48]Write to MH i2c: E2 08 00 32 5D 80 13 01 00 00 00 00 00 0C [17:07:48]Write i2c OK [17:07:48]MH_I2C_Read... [17:07:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:48]Read from MH i2c: E2 [17:07:48]MH_I2C_Read... [17:07:48]Read from MH i2c: E2 0E 00 [17:07:48]MH_I2C_Read... [17:07:48]Read from MH i2c: E2 0E 00 32 5D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 D3 [17:07:49]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:07:49]wFMCommunicate OK [17:07:49]SAM_PROTO_GetShiftState done [17:07:49]FM_GetShiftState done [17:07:49]opened in 1729555538 [17:07:49]opened+sec_in_day 1729641938 [17:07:49]quantity*price = 50041 [17:07:49]sum+1 = 50042 [17:07:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 314 22.10.2024 17:07 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228350 ФПД: 37006731494988 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170754&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228350&fm=37006731494988&tin=02508201610067®Number=0000000000091685&sum=50000 [17:07:52]StoreToDocumentArchive [17:07:52]shift 535 fd 228350 [17:07:52]save to /storage/0535/doc_00228350 [17:07:52]save last doc name /storage/0535/doc_00228350 to /storage/kkm_last_doc_name [17:07:52]save OK [17:07:52]Clear old archive folders... [17:07:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:07:52]tlvbuf is 00D22600 [17:07:52]SAM_PROTO_ClearQueue [17:07:52]wFMCommunicate request_size=4 [17:07:52]MH_SAM_APDU [17:07:52]CAPDU: 80 09 00 00 [17:07:52]Write to MH i2c: E2 08 00 3F 5D 80 09 00 00 00 00 00 00 0E [17:07:52]Write i2c OK [17:07:52]MH_I2C_Read... [17:07:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:52]Read from MH i2c: E2 [17:07:52]MH_I2C_Read... [17:07:52]Read from MH i2c: E2 03 00 [17:07:52]MH_I2C_Read... [17:07:52]Read from MH i2c: E2 03 00 3F 5D 00 90 00 10 [17:07:52]RAPDU: 90 00 [17:07:52]wFMCommunicate OK [17:07:52]SAM_PROTO_ClearQueue done [17:07:52]KKMCreateOFDPacket [17:07:52]OFDProtocolAddRootSTLVToBuf [17:07:52]FM_MakeSignedData [17:07:52]FM_MakeSignedData [17:07:52]SAM_PROTO_SignData [17:07:52]wFMCommunicate request_size=4 [17:07:52]MH_SAM_APDU [17:07:52]CAPDU: 80 0D 01 02 [17:07:52]Write to MH i2c: E2 08 00 40 5D 80 0D 01 02 00 00 00 00 16 [17:07:52]Write i2c OK [17:07:52]MH_I2C_Read... [17:07:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:52]Read from MH i2c: E2 [17:07:52]MH_I2C_Read... [17:07:52]Read from MH i2c: E2 03 00 [17:07:52]MH_I2C_Read... [17:07:52]Read from MH i2c: E2 03 00 40 5D 00 90 00 11 [17:07:52]RAPDU: 90 00 [17:07:52]wFMCommunicate OK [17:07:52]wFMCommunicate request_size=255 [17:07:52]MH_SAM_APDU [17:07:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 EA DB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FE 7B 03 00 35 04 06 00 21 [17:07:53]Write to MH i2c: E2 02 01 41 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 EA DB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FE 7B 03 00 35 04 06 00 21 00 00 E1 [17:07:54]Write i2c OK [17:07:54]MH_I2C_Read... [17:07:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:54]Read from MH i2c: E2 [17:07:54]MH_I2C_Read... [17:07:54]Read from MH i2c: E2 03 00 [17:07:54]MH_I2C_Read... [17:07:54]Read from MH i2c: E2 03 00 41 5D 00 90 00 12 [17:07:54]RAPDU: 90 00 [17:07:54]wFMCommunicate OK [17:07:54]wFMCommunicate request_size=10 [17:07:54]MH_SAM_APDU [17:07:54]CAPDU: 80 0D 02 02 05 A8 4D 15 C6 4C [17:07:54]Write to MH i2c: E2 0D 00 42 5D 80 0D 02 02 05 00 A8 4D 15 C6 4C 00 00 3F [17:07:54]Write i2c OK [17:07:54]MH_I2C_Read... [17:07:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:54]Read from MH i2c: E2 [17:07:54]MH_I2C_Read... [17:07:54]Read from MH i2c: E2 03 00 [17:07:54]MH_I2C_Read... [17:07:54]Read from MH i2c: E2 03 00 42 5D 00 90 00 13 [17:07:54]RAPDU: 90 00 [17:07:54]wFMCommunicate OK [17:07:54]wFMCommunicate request_size=4 [17:07:54]MH_SAM_APDU [17:07:54]CAPDU: 80 0D 03 02 [17:07:54]Write to MH i2c: E2 08 00 43 5D 80 0D 03 02 00 00 00 00 1B [17:07:54]Write i2c OK [17:07:54]MH_I2C_Read... [17:07:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:54]Read from MH i2c: E2 [17:07:54]MH_I2C_Read... [17:07:54]Read from MH i2c: E2 0B 00 [17:07:54]MH_I2C_Read... [17:07:54]Read from MH i2c: E2 0B 00 43 5D 00 EF 2C EF 7D EF BF F8 04 90 00 4D [17:07:54]RAPDU: EF 2C EF 7D EF BF F8 04 90 00 [17:07:54]wFMCommunicate OK [17:07:54]SAM_PROTO_SignData done [17:07:54]FM_MakeSignedData done [17:07:54]CreateOFDProtocolMessage [17:07:54]wFMCommunicate request_size=4 [17:07:54]MH_SAM_APDU [17:07:54]CAPDU: 80 11 00 00 [17:07:54]Write to MH i2c: E2 08 00 44 5D 80 11 00 00 00 00 00 00 1B [17:07:55]Write i2c OK [17:07:55]MH_I2C_Read... [17:07:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:55]Read from MH i2c: E2 [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: E2 17 00 [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: E2 17 00 44 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 72 [17:07:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:07:55]wFMCommunicate OK [17:07:55]CreateOFDProtocolMessage done [17:07:55]OFDSenderStorePacket 228350 [17:07:55]StoreOFDPacket docnum=228350 [17:07:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 64 20 07 01 0B 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 EA DB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FE 7B 03 00 35 04 06 00 21 A8 4D 15 C6 4C EF 2C EF 7D EF BF F8 04 [17:07:55]CheckFolder [17:07:55]dirname=/storage/ofd_packets [17:07:55]CheckFolder done [17:07:55]ProducePacketName [17:07:55]name=ofd_packets/00228350 [17:07:55]NVStorageSaveData ofd_packets/00228350 [17:07:55]File name is /storage/ofd_packets/00228350 [17:07:55]Write 301 bytes [17:07:55]NVStorageSaveData done [17:07:55]OFDSenderStorePacket done [17:07:55]KKMCreateOFDPacket done [17:07:55]NVStorageSaveData kkm_last_timestamp [17:07:55]File name is /storage/kkm_last_timestamp [17:07:55]Write 4 bytes [17:07:55]NVStorageSaveData done [17:07:55]ExternCall_PrintAddStr [17:07:55]wPrintStart [17:07:55]Write to MH i2c: 01 00 00 45 5D A2 [17:07:55]Write i2c OK [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: 01 [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: 01 07 00 [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: 01 07 00 45 5D 00 00 00 00 00 FF 0F B7 [17:07:55]RasterBufferAndPrint [17:07:55]line Счет N : (1)1964851 [17:07:55]line ИНН: 02508201610067 [17:07:55]line Контрольно-Кассовый Чек [17:07:55]line ПРОДАЖА [17:07:55]line ТРК (МРК, ГНК) : 63 [17:07:55]line Товар: 2710124130 [17:07:55]line Аи-92-К-5 [17:07:55]line 7.480 * 66.90 [17:07:55]line = 500.41 [17:07:55]line НДС 12% НСП 1% [17:07:55]line > о реализуемом товаре [17:07:55]line ОКРУГЛЕНИЕ: -0.41 [17:07:55]line ИТОГО: 500.00 [17:07:55]line Внесено: 500.00 [17:07:55]line СДАЧА: 0.00 [17:07:55]line НСП 1% : 4.43 [17:07:55]line НДС 12% : 53.14 [17:07:55]line Наличными: 500.00 [17:07:55]line Безнал.: 0.00 [17:07:55]line Место: АЗС № 133 "Партнер Нефть" [17:07:55]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:07:55]line СНО: Общий режим [17:07:55]line Чек 314 22.10.2024 17:07 [17:07:55]line Смена: 535 ФФД: 1.0 [17:07:55]line ЗНМ: 0300000091 [17:07:55]line РНМ: 0000000000091685 [17:07:55]line Версия ККМ: 001 [17:07:55]line ФМ: 0000000000871839 [17:07:55]line ФД: 228350 [17:07:55]line ФПД: 37006731494988 [17:07:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170754&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228350&fm=37006731494988&tin=02508201610067®Number=0000000000091685&sum=50000 [17:07:55]written 0, free lines is 4095 [17:07:55]Write to MH i2c: 01 00 00 6F 5D CC [17:07:55]Write i2c OK [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: 01 [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: 01 07 00 [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: 01 07 00 6F 5D 00 00 00 00 00 C5 0C A4 [17:07:56]RasterBufferAndPrint [17:07:56]line [17:07:56]line [17:07:56]line [17:07:56]line [17:07:56]line [17:07:56]written 0, free lines is 3390 [17:07:56]MH_Cut [17:07:56]Write to MH i2c: D1 01 00 76 5D 01 A5 [17:07:56]Write i2c OK [17:07:56]MH_I2C_Read... [17:07:56]Read from MH i2c: D1 [17:07:56]MH_I2C_Read... [17:07:56]Read from MH i2c: D1 01 00 [17:07:56]MH_I2C_Read... [17:07:56]Read from MH i2c: D1 01 00 76 5D 00 A4 [17:07:56]Write to MH i2c: 01 00 00 77 5D D4 [17:07:56]Write i2c OK [17:07:56]MH_I2C_Read... [17:07:56]*** Cut start [17:07:56]*** Partial cut [17:07:56]*** CUTSNS_PIN = 1 [17:07:56]*** CUTSNS_PIN = 0 [17:07:57]*** Brake cut motor [17:07:57]Read from MH i2c: 01 [17:07:57]MH_I2C_Read... [17:07:57]*** Stop cut motor [17:07:57]*** Cut end [17:07:57]Read from MH i2c: 01 07 00 [17:07:57]MH_I2C_Read... [17:07:57]Read from MH i2c: 01 07 00 77 5D 00 00 00 00 00 FF 0F E9 [17:07:57]process_action close_receipt done [17:07:57]requested_data is exist [17:07:57]produce_requested_data [17:07:57]requested_item fm.sn is exist - process it [17:07:57]wFMCommunicate request_size=4 [17:07:57]MH_SAM_APDU [17:07:57]CAPDU: 80 11 00 00 [17:07:57]Write to MH i2c: E2 08 00 78 5D 80 11 00 00 00 00 00 00 4F [17:07:57]Write i2c OK [17:07:57]MH_I2C_Read... [17:07:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:57]Read from MH i2c: E2 [17:07:57]MH_I2C_Read... [17:07:57]Read from MH i2c: E2 17 00 [17:07:57]MH_I2C_Read... [17:07:57]Read from MH i2c: E2 17 00 78 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A6 [17:07:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:07:57]wFMCommunicate OK [17:07:57]requested_item fd.num is exist - process it [17:07:57]SAM_PROTO_GetFieldsCounters [17:07:57]wFMCommunicate request_size=4 [17:07:57]MH_SAM_APDU [17:07:57]CAPDU: 80 13 00 00 [17:07:57]Write to MH i2c: E2 08 00 79 5D 80 13 00 00 00 00 00 00 52 [17:07:57]Write i2c OK [17:07:57]MH_I2C_Read... [17:07:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:57]Read from MH i2c: E2 [17:07:57]MH_I2C_Read... [17:07:57]Read from MH i2c: E2 62 00 [17:07:57]MH_I2C_Read... [17:07:58]Read from MH i2c: E2 62 00 79 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FE 7B 03 00 0E 04 04 00 17 02 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 C1 [17:07:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FE 7B 03 00 0E 04 04 00 17 02 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 [17:07:58]wFMCommunicate OK [17:07:58]SAM_PROTO_GetFieldsCounters done [17:07:58]requested_item shift.num is exist - process it [17:07:58]requested_item shift.opened is exist - process it [17:07:58]req_shift_opened [17:07:58]FM_GetShiftState [17:07:58]SAM_PROTO_GetShiftState [17:07:58]wFMCommunicate request_size=4 [17:07:58]MH_SAM_APDU [17:07:58]CAPDU: 80 13 01 00 [17:07:58]Write to MH i2c: E2 08 00 7A 5D 80 13 01 00 00 00 00 00 54 [17:07:58]Write i2c OK [17:07:58]MH_I2C_Read... [17:07:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:58]Read from MH i2c: E2 [17:07:58]MH_I2C_Read... [17:07:58]Read from MH i2c: E2 0E 00 [17:07:58]MH_I2C_Read... [17:07:58]Read from MH i2c: E2 0E 00 7A 5D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 1B [17:07:58]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:07:58]wFMCommunicate OK [17:07:58]SAM_PROTO_GetShiftState done [17:07:58]FM_GetShiftState done [17:07:58]req_shift_opened done [17:07:58]requested_item shift.open_date is exist - process it [17:07:58]req_shift_open_date [17:07:58]req_shift_open_date done [17:07:58]produce_requested_data done [17:07:58]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228350,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [17:07:58]process_action_free close_receipt [17:07:58]json_value_free [17:07:58]json_value_free done [17:07:58]process_json_proto returns [17:07:58]Send response to host [17:07:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228350,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [17:07:58]free response buf [17:07:58]execute_script done [17:07:58]execute_script returns [17:07:58]free content buf [17:07:58]Sock 9.Close socket [17:07:58]Sock 9.Thread stoped [17:09:37]ConnectInit Can't connect to host [17:09:37]CommunicateWithHost connect error [17:09:37]CommunicateWithHost err = -1 [17:09:37]OFD Sender: Server communicate error [17:09:37]OFD Sender: Processing packet 228348 [packets to send 40, broken 37] [17:09:37]ProducePacketName [17:09:37]name=ofd_packets/00228348 [17:09:37]OFD Sender: To server: pG, [17:09:37]CommunicateWithHost lk.salyk.kg:30040 [17:09:37]ConnectInit lk.salyk.kg [17:09:37]Connected sock=10 [17:09:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 F1 06 00 01 32 79 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 CB DB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FC 7B 03 00 35 04 06 00 0E 57 0A C1 BF 6A 22 E7 6C FD 02 56 9C D8 [17:09:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 E5 2A 47 00 AD F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FC 7B 03 00 F4 03 04 00 4C 87 17 67 B6 04 01 00 00 41 F9 DE EF 0D 7C B6 EF [17:09:38]CommunicateWithHost err = 0 [17:09:38]CheckOFDResponse [17:09:38]1017 (14) - 77093643461234 [17:09:38]1041 (16) - 0000000000871839 [17:09:38]1040 (4) - 228348 [17:09:38]1012 (4) - 22.10.2024 11:06 [17:09:38]1206 (1) - 0 [17:09:38]OFD Sender: Remove packet 228348 [17:09:38]ProducePacketName [17:09:38]name=ofd_packets/00228348 [17:09:38]NVStorageDeleteData [17:09:38]OFD Sender: Processing packet 228349 [packets to send 39, broken 37] [17:09:38]ProducePacketName [17:09:38]name=ofd_packets/00228349 [17:09:38]OFD Sender: To server: pG, [17:09:38]CommunicateWithHost lk.salyk.kg:30040 [17:09:38]ConnectInit lk.salyk.kg [17:09:38]Connected sock=9 [17:09:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 4B 5A 07 01 04 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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 39 01 00 00 F4 03 04 00 D5 DB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FD 7B 03 00 35 04 06 00 82 E3 EC F0 FC D7 30 88 56 65 19 A4 AE 3B [17:09:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 35 EE 47 00 FD 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 38 37 31 38 33 39 10 04 04 00 FD 7B 03 00 F4 03 04 00 4D 87 17 67 B6 04 01 00 00 F9 3E B0 0D D3 9B 30 8B [17:09:39]CommunicateWithHost err = 0 [17:09:39]CheckOFDResponse [17:09:39]1017 (14) - 77093643461234 [17:09:39]1041 (16) - 0000000000871839 [17:09:39]1040 (4) - 228349 [17:09:39]1012 (4) - 22.10.2024 11:06 [17:09:39]1206 (1) - 0 [17:09:39]OFD Sender: Remove packet 228349 [17:09:39]ProducePacketName [17:09:39]name=ofd_packets/00228349 [17:09:39]NVStorageDeleteData [17:09:40]OFD Sender: Processing packet 228350 [packets to send 38, broken 37] [17:09:40]ProducePacketName [17:09:40]name=ofd_packets/00228350 [17:09:40]OFD Sender: To server: pG, [17:09:40]CommunicateWithHost lk.salyk.kg:30040 [17:09:40]ConnectInit lk.salyk.kg [17:09:40]Connected sock=9 [17:09:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 64 20 07 01 0B 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 EA DB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FE 7B 03 00 35 04 06 00 21 A8 4D 15 C6 4C EF 2C EF 7D EF BF F8 04 [17:09:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 C3 DE 47 00 99 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FE 7B 03 00 F4 03 04 00 4F 87 17 67 B6 04 01 00 00 23 C7 C0 B2 E4 E7 93 A3 [17:09:41]CommunicateWithHost err = 0 [17:09:41]CheckOFDResponse [17:09:41]1017 (14) - 77093643461234 [17:09:41]1041 (16) - 0000000000871839 [17:09:41]1040 (4) - 228350 [17:09:41]1012 (4) - 22.10.2024 11:06 [17:09:41]1206 (1) - 0 [17:09:41]OFD Sender: Remove packet 228350 [17:09:41]ProducePacketName [17:09:41]name=ofd_packets/00228350 [17:09:41]NVStorageDeleteData [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:54]accept exits with 7 [17:09:54]New connection [17:09:54]New thread 3066994020 created [17:09:54]Thread 3067137380 joined [17:09:54]Waiting for new connection... [17:09:54] Sock 7.Parse request [17:09:54]Sock 7.Check first char [17:09:54]Sock 7.First char is OK [17:09:54]request: POST /json_proto HTTP/1.0 [17:09:54]Method: POST [17:09:54]URL: /json_proto [17:09:54]Method is POST - this is cgi request [17:09:54]url: /json_proto [17:09:54]query_string will be loaded in cgi processing [17:09:54]execute_cgi json_proto POST (null) [17:09:54]execute_cgi path=json_proto method=POST [17:09:54]POST find Content-Length [17:09:54]Host: 172.17.44.195:8080 [17:09:54]Content-Length: 621 [17:09:54]Content-Type: application/json [17:09:54] [17:09:54]POST finish read [17:09:54]Found Content-Length = 621 [17:09:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:54]execute_script... [17:09: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)1964854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:54]POST & json_proto [17:09:54]process_json_proto [17:09:54]json parsed OK: [17:09:54]protocol is kg_v1.0 [17:09:54]action value=close_receipt [17:09:54]process_action close_receipt [17:09:54]cmd_close_receipt [17:09:54]MH_GetDate [17:09:54]Write to MH i2c: F0 00 00 7B 5D C7 [17:09:54]Write i2c OK [17:09:54]MH_I2C_Read... [17:09:54]Read from MH i2c: F0 [17:09:54]MH_I2C_Read... [17:09:54]Read from MH i2c: F0 09 00 [17:09:54]MH_I2C_Read... [17:09:54]Read from MH i2c: F0 09 00 7B 5D 00 67 DC 17 67 82 C9 CF 66 11 [17:09:54]GetLastDocTimeStamp 1729616874 [17:09:54]current date 1729616999 [17:09:54]FM_GetShiftState [17:09:54]SAM_PROTO_GetShiftState [17:09:54]wFMCommunicate request_size=4 [17:09:54]MH_SAM_APDU [17:09:54]CAPDU: 80 13 01 00 [17:09:54]Write to MH i2c: E2 08 00 7C 5D 80 13 01 00 00 00 00 00 56 [17:09:54]Write i2c OK [17:09:54]MH_I2C_Read... [17:09:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:54]Read from MH i2c: E2 [17:09:54]MH_I2C_Read... [17:09:54]Read from MH i2c: E2 0E 00 [17:09:54]MH_I2C_Read... [17:09:54]Read from MH i2c: E2 0E 00 7C 5D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 1D [17:09:54]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:09:54]wFMCommunicate OK [17:09:54]SAM_PROTO_GetShiftState done [17:09:54]FM_GetShiftState done [17:09:54]opened in 1729555538 [17:09:54]opened+sec_in_day 1729641938 [17:09:54]quantity*price = 50000 [17:09:54]sum+1 = 50001 [17:09:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 315 22.10.2024 17:09 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228351 ФПД: 144436821680494 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170959&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228351&fm=144436821680494&tin=02508201610067®Number=0000000000091685&sum=50000 [17:09:56]StoreToDocumentArchive [17:09:56]shift 535 fd 228351 [17:09:56]save to /storage/0535/doc_00228351 [17:09:56]save last doc name /storage/0535/doc_00228351 to /storage/kkm_last_doc_name [17:09:56]save OK [17:09:56]Clear old archive folders... [17:09:56]ProcessDocumentItem done err = 0, tmpTLVsize=244 [17:09:56]tlvbuf is 00CBCC40 [17:09:56]SAM_PROTO_ClearQueue [17:09:56]wFMCommunicate request_size=4 [17:09:56]MH_SAM_APDU [17:09:56]CAPDU: 80 09 00 00 [17:09:56]Write to MH i2c: E2 08 00 89 5D 80 09 00 00 00 00 00 00 58 [17:09:56]Write i2c OK [17:09:56]MH_I2C_Read... [17:09:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:56]Read from MH i2c: E2 [17:09:56]MH_I2C_Read... [17:09:56]Read from MH i2c: E2 03 00 [17:09:56]MH_I2C_Read... [17:09:56]Read from MH i2c: E2 03 00 89 5D 00 90 00 5A [17:09:56]RAPDU: 90 00 [17:09:56]wFMCommunicate OK [17:09:56]SAM_PROTO_ClearQueue done [17:09:56]KKMCreateOFDPacket [17:09:56]OFDProtocolAddRootSTLVToBuf [17:09:56]FM_MakeSignedData [17:09:56]FM_MakeSignedData [17:09:56]SAM_PROTO_SignData [17:09:56]wFMCommunicate request_size=4 [17:09:56]MH_SAM_APDU [17:09:56]CAPDU: 80 0D 01 02 [17:09:56]Write to MH i2c: E2 08 00 8A 5D 80 0D 01 02 00 00 00 00 60 [17:09:56]Write i2c OK [17:09:56]MH_I2C_Read... [17:09:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:56]Read from MH i2c: E2 [17:09:56]MH_I2C_Read... [17:09:56]Read from MH i2c: E2 03 00 [17:09:57]MH_I2C_Read... [17:09:57]Read from MH i2c: E2 03 00 8A 5D 00 90 00 5B [17:09:57]RAPDU: 90 00 [17:09:57]wFMCommunicate OK [17:09:57]wFMCommunicate request_size=253 [17:09:57]MH_SAM_APDU [17:09:57]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 67 DC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FF 7B 03 00 35 04 06 00 83 5D 51 72 E1 6E [17:09:57]Write to MH i2c: E2 00 01 8B 5D 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 67 DC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FF 7B 03 00 35 04 06 00 83 5D 51 72 E1 6E 00 00 E7 [17:09:57]Write i2c OK [17:09:57]MH_I2C_Read... [17:09:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:58]Read from MH i2c: E2 [17:09:58]MH_I2C_Read... [17:09:58]Read from MH i2c: E2 03 00 [17:09:58]MH_I2C_Read... [17:09:58]Read from MH i2c: E2 03 00 8B 5D 00 90 00 5C [17:09:58]RAPDU: 90 00 [17:09:58]wFMCommunicate OK [17:09:58]wFMCommunicate request_size=4 [17:09:58]MH_SAM_APDU [17:09:58]CAPDU: 80 0D 03 02 [17:09:58]Write to MH i2c: E2 08 00 8C 5D 80 0D 03 02 00 00 00 00 64 [17:09:58]Write i2c OK [17:09:58]MH_I2C_Read... [17:09:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:58]Read from MH i2c: E2 [17:09:58]MH_I2C_Read... [17:09:58]Read from MH i2c: E2 0B 00 [17:09:58]MH_I2C_Read... [17:09:58]Read from MH i2c: E2 0B 00 8C 5D 00 88 B6 73 29 53 33 01 DF 90 00 A5 [17:09:58]RAPDU: 88 B6 73 29 53 33 01 DF 90 00 [17:09:58]wFMCommunicate OK [17:09:58]SAM_PROTO_SignData done [17:09:58]FM_MakeSignedData done [17:09:58]CreateOFDProtocolMessage [17:09:58]wFMCommunicate request_size=4 [17:09:58]MH_SAM_APDU [17:09:58]CAPDU: 80 11 00 00 [17:09:58]Write to MH i2c: E2 08 00 8D 5D 80 11 00 00 00 00 00 00 64 [17:09:58]Write i2c OK [17:09:58]MH_I2C_Read... [17:09:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:58]Read from MH i2c: E2 [17:09:58]MH_I2C_Read... [17:09:58]Read from MH i2c: E2 17 00 [17:09:58]MH_I2C_Read... [17:09:58]Read from MH i2c: E2 17 00 8D 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BB [17:09:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:09:58]wFMCommunicate OK [17:09:58]CreateOFDProtocolMessage done [17:09:58]OFDSenderStorePacket 228351 [17:09:58]StoreOFDPacket docnum=228351 [17:09:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 BB 5E 00 01 A1 CE 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 67 DC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FF 7B 03 00 35 04 06 00 83 5D 51 72 E1 6E 88 B6 73 29 53 33 01 DF [17:09:58]CheckFolder [17:09:58]dirname=/storage/ofd_packets [17:09:58]CheckFolder done [17:09:58]ProducePacketName [17:09:58]name=ofd_packets/00228351 [17:09:58]NVStorageSaveData ofd_packets/00228351 [17:09:58]File name is /storage/ofd_packets/00228351 [17:09:58]Write 294 bytes [17:09:58]NVStorageSaveData done [17:09:58]OFDSenderStorePacket done [17:09:58]KKMCreateOFDPacket done [17:09:58]NVStorageSaveData kkm_last_timestamp [17:09:58]File name is /storage/kkm_last_timestamp [17:09:58]Write 4 bytes [17:09:58]NVStorageSaveData done [17:09:58]ExternCall_PrintAddStr [17:09:58]wPrintStart [17:09:58]Write to MH i2c: 01 00 00 8E 5D EB [17:09:58]Write i2c OK [17:09:58]MH_I2C_Read... [17:09:58]Read from MH i2c: 01 [17:09:58]MH_I2C_Read... [17:09:58]Read from MH i2c: 01 07 00 [17:09:58]MH_I2C_Read... [17:09:58]Read from MH i2c: 01 07 00 8E 5D 00 00 00 00 00 FF 0F 00 [17:09:58]RasterBufferAndPrint [17:09:58]line Счет N : (1)1964854 [17:09:58]line ИНН: 02508201610067 [17:09:58]line Контрольно-Кассовый Чек [17:09:58]line ПРОДАЖА [17:09:58]line ТРК (МРК, ГНК) : 42 [17:09:58]line Товар: 2710124130 [17:09:58]line SU-92 [17:09:58]line 7.310 * 68.40 [17:09:58]line = 500.00 [17:09:58]line НДС 12% НСП 1% [17:09:58]line > о реализуемом товаре [17:09:58]line ИТОГО: 500.00 [17:09:58]line НСП 1% : 4.42 [17:09:58]line НДС 12% : 53.10 [17:09:58]line Наличными: 500.00 [17:09:58]line Безнал.: 0.00 [17:09:58]line Место: АЗС № 133 "Партнер Нефть" [17:09:58]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:09:58]line СНО: Общий режим [17:09:58]line Чек 315 22.10.2024 17:09 [17:09:58]line Смена: 535 ФФД: 1.0 [17:09:58]line ЗНМ: 0300000091 [17:09:58]line РНМ: 0000000000091685 [17:09:58]line Версия ККМ: 001 [17:09:58]line ФМ: 0000000000871839 [17:09:58]line ФД: 228351 [17:09:58]line ФПД: 144436821680494 [17:09:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170959&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228351&fm=144436821680494&tin=02508201610067®Number=0000000000091685&sum=50000 [17:09:58]OFD Sender: Processing packet 228351 [packets to send 38, broken 37] [17:09:58]ProducePacketName [17:09:58]name=ofd_packets/00228351 [17:09:58]written 0, free lines is 4095 [17:09:58]OFD Sender: To server: pG, [17:09:58]CommunicateWithHost lk.salyk.kg:30040 [17:09:58]ConnectInit lk.salyk.kg [17:09:58]Connected sock=10 [17:09:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 BB 5E 00 01 A1 CE 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 67 DC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 Write to MH i2c: 10 01 00 00 30 30 30 30 30 30 30 30 00 30 B5 30 5D 30 39 31 36 38 35 11 04 12 10 [17:09:59]00 30 30 30 30 30 30 30 30 30 Write i2c OK [17:09:59]30 MH_I2C_Read... [17:09:59]38 37 31 38 33 39 10 04 04 00 FF 7B 03 00 35 04 06 00 83 5D 51 72 E1 6E 88 B6 73 29 53 33 01 DF [17:09:59]Read from MH i2c: 01 [17:09:59]MH_I2C_Read... [17:09:59]Read from MH i2c: 01 07 00 [17:09:59]MH_I2C_Read... [17:09:59]Read from MH i2c: 01 07 00 B5 5D 00 00 00 00 00 B1 0D D7 [17:09:59]RasterBufferAndPrint [17:09:59]line [17:09:59]line [17:09:59]line [17:09:59]line [17:09:59]line [17:09:59]written 0, free lines is 3706 [17:09:59]MH_Cut [17:09:59]Write to MH i2c: D1 01 00 BC 5D 01 EB [17:09:59]Write i2c OK [17:09:59]MH_I2C_Read... [17:09:59]Read from MH i2c: D1 [17:09:59]MH_I2C_Read... [17:09:59]Read from MH i2c: D1 01 00 [17:09:59]MH_I2C_Read... [17:09:59]Read from MH i2c: D1 01 00 BC 5D 00 EA [17:09:59]Write to MH i2c: 01 00 00 BD 5D 1A [17:09:59]Write i2c OK [17:09:59]MH_I2C_Read... [17:09:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 34 AB 47 00 54 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FF 7B 03 00 F4 03 04 00 62 87 17 67 B6 04 01 00 00 8D A4 E0 6A 52 AF 51 F2 [17:09:59]CommunicateWithHost err = 0 [17:09:59]CheckOFDResponse [17:09:59]1017 (14) - 77093643461234 [17:09:59]1041 (16) - 0000000000871839 [17:09:59]1040 (4) - 228351 [17:09:59]1012 (4) - 22.10.2024 11:07 [17:09:59]1206 (1) - 0 [17:09:59]OFD Sender: Remove packet 228351 [17:09:59]ProducePacketName [17:09:59]name=ofd_packets/00228351 [17:09:59]NVStorageDeleteData [17:09:59]*** Cut start [17:09:59]*** Partial cut [17:09:59]*** CUTSNS_PIN = 1 [17:09:59]*** CUTSNS_PIN = 0 [17:10:00]*** Brake cut motor [17:10:00]OFD Sender: No OFD packet to send [17:10:00]Read from MH i2c: 01 [17:10:00]MH_I2C_Read... [17:10:00]*** Stop cut motor [17:10:00]*** Cut end [17:10:00]Read from MH i2c: 01 07 00 [17:10:00]MH_I2C_Read... [17:10:00]Read from MH i2c: 01 07 00 BD 5D 00 00 00 00 00 FF 0F 2F [17:10:00]process_action close_receipt done [17:10:00]requested_data is exist [17:10:00]produce_requested_data [17:10:00]requested_item fm.sn is exist - process it [17:10:00]wFMCommunicate request_size=4 [17:10:00]MH_SAM_APDU [17:10:00]CAPDU: 80 11 00 00 [17:10:00]Write to MH i2c: E2 08 00 BE 5D 80 11 00 00 00 00 00 00 95 [17:10:00]Write i2c OK [17:10:00]MH_I2C_Read... [17:10:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:00]Read from MH i2c: E2 [17:10:00]MH_I2C_Read... [17:10:00]Read from MH i2c: E2 17 00 [17:10:00]MH_I2C_Read... [17:10:00]Read from MH i2c: E2 17 00 BE 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 EC [17:10:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:10:00]wFMCommunicate OK [17:10:00]requested_item fd.num is exist - process it [17:10:00]SAM_PROTO_GetFieldsCounters [17:10:00]wFMCommunicate request_size=4 [17:10:00]MH_SAM_APDU [17:10:00]CAPDU: 80 13 00 00 [17:10:00]Write to MH i2c: E2 08 00 BF 5D 80 13 00 00 00 00 00 00 98 [17:10:00]Write i2c OK [17:10:00]MH_I2C_Read... [17:10:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:00]Read from MH i2c: E2 [17:10:00]MH_I2C_Read... [17:10:00]Read from MH i2c: E2 62 00 [17:10:00]MH_I2C_Read... [17:10:00]Read from MH i2c: E2 62 00 BF 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FF 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 0B [17:10:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FF 7B 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:10:01]wFMCommunicate OK [17:10:01]SAM_PROTO_GetFieldsCounters done [17:10:01]requested_item shift.num is exist - process it [17:10:01]requested_item shift.opened is exist - process it [17:10:01]req_shift_opened [17:10:01]FM_GetShiftState [17:10:01]SAM_PROTO_GetShiftState [17:10:01]wFMCommunicate request_size=4 [17:10:01]MH_SAM_APDU [17:10:01]CAPDU: 80 13 01 00 [17:10:01]Write to MH i2c: E2 08 00 C0 5D 80 13 01 00 00 00 00 00 9A [17:10:01]Write i2c OK [17:10:01]MH_I2C_Read... [17:10:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:01]Read from MH i2c: E2 [17:10:01]MH_I2C_Read... [17:10:01]Read from MH i2c: E2 0E 00 [17:10:01]MH_I2C_Read... [17:10:01]Read from MH i2c: E2 0E 00 C0 5D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 61 [17:10:01]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:10:01]wFMCommunicate OK [17:10:01]SAM_PROTO_GetShiftState done [17:10:01]FM_GetShiftState done [17:10:01]req_shift_opened done [17:10:01]requested_item shift.open_date is exist - process it [17:10:01]req_shift_open_date [17:10:01]req_shift_open_date done [17:10:01]produce_requested_data done [17:10:01]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228351,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [17:10:01]process_action_free close_receipt [17:10:01]json_value_free [17:10:01]json_value_free done [17:10:01]process_json_proto returns [17:10:01]Send response to host [17:10:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228351,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [17:10:01]free response buf [17:10:01]execute_script done [17:10:01]execute_script returns [17:10:01]free content buf [17:10:01]Sock 7.Close socket [17:10:01]Sock 7.Thread stoped [17:10:05]OFD Sender: No OFD packet to send [17:10:07]accept exits with 9 [17:10:07]New connection [17:10:07]New thread 3067137380 created [17:10:07]Thread 3066994020 joined [17:10:07]Waiting for new connection... [17:10:07] Sock 9.Parse request [17:10:07]Sock 9.Check first char [17:10:07]Sock 9.First char is OK [17:10:07]request: POST /json_proto HTTP/1.0 [17:10:07]Method: POST [17:10:07]URL: /json_proto [17:10:07]Method is POST - this is cgi request [17:10:07]url: /json_proto [17:10:07]query_string will be loaded in cgi processing [17:10:07]execute_cgi json_proto POST (null) [17:10:07]execute_cgi path=json_proto method=POST [17:10:07]POST find Content-Length [17:10:07]Host: 172.17.44.195:8080 [17:10:07]Content-Length: 678 [17:10:07]Content-Type: application/json [17:10:07] [17:10:07]POST finish read [17:10:07]Found Content-Length = 678 [17:10:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.070, "sum" : 450.39, "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" ] } } [17:10:07]execute_script... [17:10: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)1964856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.070, "sum" : 450.39, "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" ] } } [17:10:07]POST & json_proto [17:10:07]process_json_proto [17:10:07]json parsed OK: [17:10:07]protocol is kg_v1.0 [17:10:07]action value=close_receipt [17:10:07]process_action close_receipt [17:10:07]cmd_close_receipt [17:10:07]MH_GetDate [17:10:07]Write to MH i2c: F0 00 00 C1 5D 0D [17:10:07]Write i2c OK [17:10:07]MH_I2C_Read... [17:10:07]Read from MH i2c: F0 [17:10:07]MH_I2C_Read... [17:10:07]Read from MH i2c: F0 09 00 [17:10:07]MH_I2C_Read... [17:10:07]Read from MH i2c: F0 09 00 C1 5D 00 75 DC 17 67 82 C9 CF 66 65 [17:10:08]GetLastDocTimeStamp 1729616999 [17:10:08]current date 1729617013 [17:10:08]FM_GetShiftState [17:10:08]SAM_PROTO_GetShiftState [17:10:08]wFMCommunicate request_size=4 [17:10:08]MH_SAM_APDU [17:10:08]CAPDU: 80 13 01 00 [17:10:08]Write to MH i2c: E2 08 00 C2 5D 80 13 01 00 00 00 00 00 9C [17:10:08]Write i2c OK [17:10:08]MH_I2C_Read... [17:10:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:08]Read from MH i2c: E2 [17:10:08]MH_I2C_Read... [17:10:08]Read from MH i2c: E2 0E 00 [17:10:08]MH_I2C_Read... [17:10:08]Read from MH i2c: E2 0E 00 C2 5D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 63 [17:10:08]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:10:08]wFMCommunicate OK [17:10:08]SAM_PROTO_GetShiftState done [17:10:08]FM_GetShiftState done [17:10:08]opened in 1729555538 [17:10:08]opened+sec_in_day 1729641938 [17:10:08]quantity*price = 45039 [17:10:08]sum+1 = 45040 [17:10:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.99 НДС 12% : 47.83 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 316 22.10.2024 17:10 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228352 ФПД: 29574952521004 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171013&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228352&fm=29574952521004&tin=02508201610067®Number=0000000000091685&sum=45000 [17:10:10]StoreToDocumentArchive [17:10:10]shift 535 fd 228352 [17:10:10]save to /storage/0535/doc_00228352 [17:10:10]save last doc name /storage/0535/doc_00228352 to /storage/kkm_last_doc_name [17:10:10]save OK [17:10:10]Clear old archive folders... [17:10:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:10:10]tlvbuf is 00AB9E20 [17:10:10]SAM_PROTO_ClearQueue [17:10:10]wFMCommunicate request_size=4 [17:10:10]MH_SAM_APDU [17:10:10]CAPDU: 80 09 00 00 [17:10:10]Write to MH i2c: E2 08 00 CF 5D 80 09 00 00 00 00 00 00 9E [17:10:10]Write i2c OK [17:10:10]MH_I2C_Read... [17:10:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:10:10]Read from MH i2c: E2 [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: E2 03 00 [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: E2 03 00 CF 5D 00 90 00 A0 [17:10:10]RAPDU: 90 00 [17:10:10]wFMCommunicate OK [17:10:10]SAM_PROTO_ClearQueue done [17:10:10]KKMCreateOFDPacket [17:10:10]OFDProtocolAddRootSTLVToBuf [17:10:10]FM_MakeSignedData [17:10:10]FM_MakeSignedData [17:10:10]SAM_PROTO_SignData [17:10:10]wFMCommunicate request_size=4 [17:10:10]MH_SAM_APDU [17:10:10]CAPDU: 80 0D 01 02 [17:10:10]Write to MH i2c: E2 08 00 D0 5D 80 0D 01 02 00 00 00 00 A6 [17:10:10]Write i2c OK [17:10:10]MH_I2C_Read... [17:10:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:10:10]Read from MH i2c: E2 [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: E2 03 00 [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: E2 03 00 D0 5D 00 90 00 A1 [17:10:10]RAPDU: 90 00 [17:10:10]wFMCommunicate OK [17:10:10]wFMCommunicate request_size=255 [17:10:10]MH_SAM_APDU [17: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF 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 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 75 DC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 00 7C 03 00 35 04 06 00 1A [17:10:11]Write to MH i2c: E2 02 01 D1 5D 80 0D 02 02 FA 00 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 B6 17 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF 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 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 75 DC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 00 7C 03 00 35 04 06 00 1A 00 00 3C [17:10:11]Write i2c OK [17:10:11]MH_I2C_Read... [17:10:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:12]Read from MH i2c: E2 [17:10:12]MH_I2C_Read... [17:10:12]Read from MH i2c: E2 03 00 [17:10:12]MH_I2C_Read... [17:10:12]Read from MH i2c: E2 03 00 D1 5D 00 90 00 A2 [17:10:12]RAPDU: 90 00 [17:10:12]wFMCommunicate OK [17:10:12]wFMCommunicate request_size=10 [17:10:12]MH_SAM_APDU [17:10:12]CAPDU: 80 0D 02 02 05 E5 F4 8A 0D 2C [17:10:12]Write to MH i2c: E2 0D 00 D2 5D 80 0D 02 02 05 00 E5 F4 8A 0D 2C 00 00 4F [17:10:12]Write i2c OK [17:10:12]MH_I2C_Read... [17:10:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:12]Read from MH i2c: E2 [17:10:12]MH_I2C_Read... [17:10:12]Read from MH i2c: E2 03 00 [17:10:12]MH_I2C_Read... [17:10:12]Read from MH i2c: E2 03 00 D2 5D 00 90 00 A3 [17:10:12]RAPDU: 90 00 [17:10:12]wFMCommunicate OK [17:10:12]wFMCommunicate request_size=4 [17:10:12]MH_SAM_APDU [17:10:12]CAPDU: 80 0D 03 02 [17:10:12]Write to MH i2c: E2 08 00 D3 5D 80 0D 03 02 00 00 00 00 AB [17:10:12]Write i2c OK [17:10:12]MH_I2C_Read... [17:10:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:12]Read from MH i2c: E2 [17:10:12]MH_I2C_Read... [17:10:12]Read from MH i2c: E2 0B 00 [17:10:12]MH_I2C_Read... [17:10:12]Read from MH i2c: E2 0B 00 D3 5D 00 36 97 01 A7 B0 2A DC 1D 90 00 F4 [17:10:12]RAPDU: 36 97 01 A7 B0 2A DC 1D 90 00 [17:10:12]wFMCommunicate OK [17:10:12]SAM_PROTO_SignData done [17:10:12]FM_MakeSignedData done [17:10:12]CreateOFDProtocolMessage [17:10:12]wFMCommunicate request_size=4 [17:10:12]MH_SAM_APDU [17:10:12]CAPDU: 80 11 00 00 [17:10:12]Write to MH i2c: E2 08 00 D4 5D 80 11 00 00 00 00 00 00 AB [17:10:12]Write i2c OK [17:10:12]MH_I2C_Read... [17:10:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:12]Read from MH i2c: E2 [17:10:12]MH_I2C_Read... [17:10:12]Read from MH i2c: E2 17 00 [17:10:12]MH_I2C_Read... [17:10:12]Read from MH i2c: E2 17 00 D4 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 02 [17:10:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:10:12]wFMCommunicate OK [17:10:12]CreateOFDProtocolMessage done [17:10:12]OFDSenderStorePacket 228352 [17:10:12]StoreOFDPacket docnum=228352 [17:10:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 0A 78 07 01 D1 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF 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 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 75 DC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 00 7C 03 00 35 04 06 00 1A E5 F4 8A 0D 2C 36 97 01 A7 B0 2A DC 1D [17:10:12]CheckFolder [17:10:12]dirname=/storage/ofd_packets [17:10:12]CheckFolder done [17:10:12]ProducePacketName [17:10:12]name=ofd_packets/00228352 [17:10:12]NVStorageSaveData ofd_packets/00228352 [17:10:12]File name is /storage/ofd_packets/00228352 [17:10:12]Write 301 bytes [17:10:12]NVStorageSaveData done [17:10:12]OFDSenderStorePacket done [17:10:12]KKMCreateOFDPacket done [17:10:12]NVStorageSaveData kkm_last_timestamp [17:10:12]File name is /storage/kkm_last_timestamp [17:10:12]Write 4 bytes [17:10:12]NVStorageSaveData done [17:10:12]ExternCall_PrintAddStr [17:10:12]wPrintStart [17:10:12]Write to MH i2c: 01 00 00 D5 5D 32 [17:10:12]Write i2c OK [17:10:12]MH_I2C_Read... [17:10:12]Read from MH i2c: 01 [17:10:12]MH_I2C_Read... [17:10:12]OFD Sender: Processing packet 228352 [packets to send 38, broken 37] [17:10:12]ProducePacketName [17:10:12]name=ofd_packets/00228352 [17:10:12]OFD Sender: To server: pG, [17:10:12]CommunicateWithHost lk.salyk.kg:30040 [17:10:12]ConnectInit lk.salyk.kg [17:10:12]Read from MH i2c: 01 07 00 [17:10:12]MH_I2C_Read... [17:10:12]Read from MH i2c: 01 07 00 D5 5D 00 00 00 00 00 FF 0F 47 [17:10:12]RasterBufferAndPrint [17:10:12]line Счет N : (1)1964856 [17:10:12]line ИНН: 02508201610067 [17:10:12]line Контрольно-Кассовый Чек [17:10:12]line ПРОДАЖА [17:10:12]line ТРК (МРК, ГНК) : 64 [17:10:12]line Товар: 2710124500 [17:10:12]line Аи-95-К-5 [17:10:12]line 6.070 * 74.20 [17:10:12]line = 450.39 [17:10:12]line НДС 12% НСП 1% [17:10:12]line > о реализуемом товаре [17:10:12]line ОКРУГЛЕНИЕ: -0.39 [17:10:12]line ИТОГО: 450.00 [17:10:12]line Внесено: 450.00 [17:10:12]line СДАЧА: 0.00 [17:10:12]line НСП 1% : 3.99 [17:10:12]line НДС 12% : 47.83 [17:10:12]line Наличными: 450.00 [17:10:12]line Безнал.: 0.00 [17:10:12]line Место: АЗС № 133 "Партнер Нефть" [17:10:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:10:12]line СНО: Общий режим [17:10:12]line Чек 316 22.10.2024 17:10 [17:10:12]line Смена: 535 ФФД: 1.0 [17:10:12]line ЗНМ: 0300000091 [17:10:12]line РНМ: 0000000000091685 [17:10:12]line Версия ККМ: 001 [17:10:12]line ФМ: 0000000000871839 [17:10:12]line ФД: 228352 [17:10:12]line ФПД: 29574952521004 [17:10:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171013&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228352&fm=29574952521004&tin=02508201610067®Number=0000000000091685&sum=45000 [17:10:12]Connected sock=10 [17:10:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 written 0, free lines is 4095 [17:10:12]30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 0A 78 07 01 D1 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF 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 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 75 DC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 00 7C 03 00 35 04 06 00 1A E5 F4 8A 0D 2C 36 97 01 A7 B0 2A DC 1D [17:10:13]Write to MH i2c: 01 00 00 FF 5D 5C [17:10:13]Write i2c OK [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: 01 [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: 01 07 00 [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: 01 07 00 FF 5D 00 00 00 00 00 F4 0D 64 [17:10:13]RasterBufferAndPrint [17:10:13]line [17:10:13]line [17:10:13]line [17:10:13]line [17:10:13]line [17:10:13]written 0, free lines is 3638 [17:10:13]MH_Cut [17:10:13]Write to MH i2c: D1 01 00 06 5E 01 36 [17:10:13]Write i2c OK [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: D1 [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: D1 01 00 [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: D1 01 00 06 5E 00 35 [17:10:13]Write to MH i2c: 01 00 00 07 5E 65 [17:10:13]Write i2c OK [17:10:13]MH_I2C_Read... [17:10:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 D8 63 47 00 D0 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 00 7C 03 00 F4 03 04 00 70 87 17 67 B6 04 01 00 00 *** Cut start [17:10:14]D3 6E CA BA *** Partial cut [17:10:14]8A 00 CB 85 *** CUTSNS_PIN = 1 [17:10:14] [17:10:14]CommunicateWithHost err = 0 [17:10:14]*** CUTSNS_PIN = 0 [17:10:14]CheckOFDResponse [17:10:14]1017 (14) - 77093643461234 [17:10:14]1041 (16) - 0000000000871839 [17:10:14]1040 (4) - 228352 [17:10:14]1012 (4) - 22.10.2024 11:07 [17:10:14]1206 (1) - 0 [17:10:14]OFD Sender: Remove packet 228352 [17:10:14]ProducePacketName [17:10:14]name=ofd_packets/00228352 [17:10:14]NVStorageDeleteData [17:10:14]*** Brake cut motor [17:10:14]OFD Sender: No OFD packet to send [17:10:14]Read from MH i2c: 01 [17:10:14]MH_I2C_Read... [17:10:14]*** Stop cut motor [17:10:14]*** Cut end [17:10:14]Read from MH i2c: 01 07 00 [17:10:14]MH_I2C_Read... [17:10:14]Read from MH i2c: 01 07 00 07 5E 00 00 00 00 00 FF 0F 7A [17:10:14]process_action close_receipt done [17:10:14]requested_data is exist [17:10:14]produce_requested_data [17:10:14]requested_item fm.sn is exist - process it [17:10:14]wFMCommunicate request_size=4 [17:10:14]MH_SAM_APDU [17:10:14]CAPDU: 80 11 00 00 [17:10:14]Write to MH i2c: E2 08 00 08 5E 80 11 00 00 00 00 00 00 E0 [17:10:14]Write i2c OK [17:10:14]MH_I2C_Read... [17:10:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:14]Read from MH i2c: E2 [17:10:14]MH_I2C_Read... [17:10:14]Read from MH i2c: E2 17 00 [17:10:14]MH_I2C_Read... [17:10:14]Read from MH i2c: E2 17 00 08 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 37 [17:10:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:10:14]wFMCommunicate OK [17:10:14]requested_item fd.num is exist - process it [17:10:14]SAM_PROTO_GetFieldsCounters [17:10:14]wFMCommunicate request_size=4 [17:10:14]MH_SAM_APDU [17:10:14]CAPDU: 80 13 00 00 [17:10:15]Write to MH i2c: E2 08 00 09 5E 80 13 00 00 00 00 00 00 E3 [17:10:15]Write i2c OK [17:10:15]MH_I2C_Read... [17:10:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:15]Read from MH i2c: E2 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 62 00 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 62 00 09 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 00 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 5B [17:10:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 00 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:10:15]wFMCommunicate OK [17:10:15]SAM_PROTO_GetFieldsCounters done [17:10:15]requested_item shift.num is exist - process it [17:10:15]requested_item shift.opened is exist - process it [17:10:15]req_shift_opened [17:10:15]FM_GetShiftState [17:10:15]SAM_PROTO_GetShiftState [17:10:15]wFMCommunicate request_size=4 [17:10:15]MH_SAM_APDU [17:10:15]CAPDU: 80 13 01 00 [17:10:15]Write to MH i2c: E2 08 00 0A 5E 80 13 01 00 00 00 00 00 E5 [17:10:15]Write i2c OK [17:10:15]MH_I2C_Read... [17:10:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:15]Read from MH i2c: E2 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 0E 00 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 0E 00 0A 5E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 AC [17:10:15]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:10:15]wFMCommunicate OK [17:10:15]SAM_PROTO_GetShiftState done [17:10:15]FM_GetShiftState done [17:10:15]req_shift_opened done [17:10:15]requested_item shift.open_date is exist - process it [17:10:15]req_shift_open_date [17:10:15]req_shift_open_date done [17:10:15]produce_requested_data done [17:10:15]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228352,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [17:10:15]process_action_free close_receipt [17:10:15]json_value_free [17:10:15]json_value_free done [17:10:15]process_json_proto returns [17:10:15]Send response to host [17:10:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228352,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [17:10:15]free response buf [17:10:15]execute_script done [17:10:15]execute_script returns [17:10:15]free content buf [17:10:15]Sock 9.Close socket [17:10:15]Sock 9.Thread stoped [17:10:19]OFD Sender: No OFD packet to send [17:10:24]OFD Sender: No OFD packet to send [17:10:29]OFD Sender: No OFD packet to send [17:10:34]OFD Sender: No OFD packet to send [17:10:39]OFD Sender: No OFD packet to send [17:10:44]OFD Sender: No OFD packet to send [17:10:49]OFD Sender: No OFD packet to send [17:10:54]OFD Sender: No OFD packet to send [17:10:59]OFD Sender: No OFD packet to send [17:11:04]OFD Sender: No OFD packet to send [17:11:09]OFD Sender: No OFD packet to send [17:11:14]OFD Sender: No OFD packet to send [17:11:19]OFD Sender: No OFD packet to send [17:11:24]OFD Sender: No OFD packet to send [17:11:29]OFD Sender: No OFD packet to send [17:11:34]OFD Sender: No OFD packet to send [17:11:39]OFD Sender: No OFD packet to send [17:11:44]OFD Sender: No OFD packet to send [17:11:48]recv_with_timeout no data received [17:11:49]OFD Sender: No OFD packet to send [17:11:54]OFD Sender: No OFD packet to send [17:11:58]accept exits with 7 [17:11:58]New connection [17:11:58]New thread 3066994020 created [17:11:58]Thread 3067137380 joined [17:11:58]Waiting for new connection... [17:11:58] Sock 7.Parse request [17:11:58]Sock 7.Check first char [17:11:58]Sock 7.First char is OK [17:11:58]request: POST /json_proto HTTP/1.0 [17:11:58]Method: POST [17:11:58]URL: /json_proto [17:11:58]Method is POST - this is cgi request [17:11:58]url: /json_proto [17:11:58]query_string will be loaded in cgi processing [17:11:58]execute_cgi json_proto POST (null) [17:11:58]execute_cgi path=json_proto method=POST [17:11:58]POST find Content-Length [17:11:58]Host: 172.17.44.195:8080 [17:11:58]Content-Length: 799 [17:11:58]Content-Type: application/json [17:11:58] [17:11:58]POST finish read [17:11:58]Found Content-Length = 799 [17:11:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964852", "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" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3979025", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:58]execute_script... [17:11: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)1964852", "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" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3979025", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:58]POST & json_proto [17:11:58]process_json_proto [17:11:58]json parsed OK: [17:11:58]protocol is kg_v1.0 [17:11:58]action value=close_receipt [17:11:58]process_action close_receipt [17:11:58]cmd_close_receipt [17:11:58]MH_GetDate [17:11:58]Write to MH i2c: F0 00 00 0B 5E 58 [17:11:58]Write i2c OK [17:11:58]MH_I2C_Read... [17:11:58]Read from MH i2c: F0 [17:11:58]MH_I2C_Read... [17:11:58]Read from MH i2c: F0 09 00 [17:11:58]MH_I2C_Read... [17:11:58]Read from MH i2c: F0 09 00 0B 5E 00 E3 DC 17 67 82 C9 CF 66 1E [17:11:58]GetLastDocTimeStamp 1729617013 [17:11:58]current date 1729617123 [17:11:58]FM_GetShiftState [17:11:58]SAM_PROTO_GetShiftState [17:11:58]wFMCommunicate request_size=4 [17:11:58]MH_SAM_APDU [17:11:58]CAPDU: 80 13 01 00 [17:11:58]Write to MH i2c: E2 08 00 0C 5E 80 13 01 00 00 00 00 00 E7 [17:11:58]Write i2c OK [17:11:58]MH_I2C_Read... [17:11:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:58]Read from MH i2c: E2 [17:11:58]MH_I2C_Read... [17:11:58]Read from MH i2c: E2 0E 00 [17:11:58]MH_I2C_Read... [17:11:58]Read from MH i2c: E2 0E 00 0C 5E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 AE [17:11:58]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:11:58]wFMCommunicate OK [17:11:58]SAM_PROTO_GetShiftState done [17:11:58]FM_GetShiftState done [17:11:58]opened in 1729555538 [17:11:58]opened+sec_in_day 1729641938 [17:11:58]quantity*price = 0 [17:11:58]sum+1 = 1 [17:11:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 317 22.10.2024 17:12 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливные Талоны 3979025 ФМ: 0000000000871839 ФД: 228353 ФПД: 38457452687777 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171204&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228353&fm=38457452687777&tin=02508201610067®Number=0000000000091685&sum=0 [17:12:00]StoreToDocumentArchive [17:12:00]shift 535 fd 228353 [17:12:00]save to /storage/0535/doc_00228353 [17:12:00]save last doc name /storage/0535/doc_00228353 to /storage/kkm_last_doc_name [17:12:00]save OK [17:12:00]Clear old archive folders... [17:12:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:12:00]tlvbuf is 0087F020 [17:12:00]SAM_PROTO_ClearQueue [17:12:00]wFMCommunicate request_size=4 [17:12:00]MH_SAM_APDU [17:12:00]CAPDU: 80 09 00 00 [17:12:00]Write to MH i2c: E2 08 00 19 5E 80 09 00 00 00 00 00 00 E9 [17:12:00]Write i2c OK [17:12:00]MH_I2C_Read... [17:12:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:12:00]Read from MH i2c: E2 [17:12:00]MH_I2C_Read... [17:12:00]Read from MH i2c: E2 03 00 [17:12:00]MH_I2C_Read... [17:12:00]Read from MH i2c: E2 03 00 19 5E 00 90 00 EB [17:12:00]RAPDU: 90 00 [17:12:00]wFMCommunicate OK [17:12:00]SAM_PROTO_ClearQueue done [17:12:00]KKMCreateOFDPacket [17:12:00]OFDProtocolAddRootSTLVToBuf [17:12:00]FM_MakeSignedData [17:12:00]FM_MakeSignedData [17:12:00]SAM_PROTO_SignData [17:12:00]wFMCommunicate request_size=4 [17:12:00]MH_SAM_APDU [17:12:00]CAPDU: 80 0D 01 02 [17:12:00]Write to MH i2c: E2 08 00 1A 5E 80 0D 01 02 00 00 00 00 F1 [17:12:00]Write i2c OK [17:12:00]MH_I2C_Read... [17:12:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:12:00]Read from MH i2c: E2 [17:12:00]MH_I2C_Read... [17:12:00]Read from MH i2c: E2 03 00 [17:12:00]MH_I2C_Read... [17:12:00]Read from MH i2c: E2 03 00 1A 5E 00 90 00 EC [17:12:00]RAPDU: 90 00 [17:12:00]wFMCommunicate OK [17:12:00]wFMCommunicate request_size=255 [17:12:00]MH_SAM_APDU [17:12:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 E4 DC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 01 7C 03 00 35 04 06 00 22 FA 12 CE [17:12:00]Write to MH i2c: E2 02 01 1B 5E 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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 E4 DC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 01 7C 03 00 35 04 06 00 22 FA 12 CE 00 00 8E [17:12:01]Write i2c OK [17:12:01]MH_I2C_Read... [17:12:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:01]Read from MH i2c: E2 [17:12:01]MH_I2C_Read... [17:12:01]Read from MH i2c: E2 03 00 [17:12:01]MH_I2C_Read... [17:12:01]Read from MH i2c: E2 03 00 1B 5E 00 90 00 ED [17:12:01]RAPDU: 90 00 [17:12:01]wFMCommunicate OK [17:12:01]wFMCommunicate request_size=7 [17:12:01]MH_SAM_APDU [17:12:01]CAPDU: 80 0D 02 02 02 71 A1 [17:12:01]Write to MH i2c: E2 0A 00 1C 5E 80 0D 02 02 02 00 71 A1 00 00 0A [17:12:01]Write i2c OK [17:12:01]MH_I2C_Read... [17:12:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:01]Read from MH i2c: E2 [17:12:01]MH_I2C_Read... [17:12:01]Read from MH i2c: E2 03 00 [17:12:01]MH_I2C_Read... [17:12:01]Read from MH i2c: E2 03 00 1C 5E 00 90 00 EE [17:12:01]RAPDU: 90 00 [17:12:01]wFMCommunicate OK [17:12:01]wFMCommunicate request_size=4 [17:12:01]MH_SAM_APDU [17:12:01]CAPDU: 80 0D 03 02 [17:12:01]Write to MH i2c: E2 08 00 1D 5E 80 0D 03 02 00 00 00 00 F6 [17:12:01]Write i2c OK [17:12:01]MH_I2C_Read... [17:12:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:01]Read from MH i2c: E2 [17:12:01]MH_I2C_Read... [17:12:01]Read from MH i2c: E2 0B 00 [17:12:01]MH_I2C_Read... [17:12:01]Read from MH i2c: E2 0B 00 1D 5E 00 0D CA 81 3B 4B 6F 95 53 90 00 2C [17:12:01]RAPDU: 0D CA 81 3B 4B 6F 95 53 90 00 [17:12:01]wFMCommunicate OK [17:12:01]SAM_PROTO_SignData done [17:12:01]FM_MakeSignedData done [17:12:01]CreateOFDProtocolMessage [17:12:01]wFMCommunicate request_size=4 [17:12:01]MH_SAM_APDU [17:12:01]CAPDU: 80 11 00 00 [17:12:01]Write to MH i2c: E2 08 00 1E 5E 80 11 00 00 00 00 00 00 F6 [17:12:01]Write i2c OK [17:12:01]MH_I2C_Read... [17:12:01]Read from MH i2c: E2 [17:12:01]MH_I2C_Read... [17:12:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:01]Read from MH i2c: E2 17 00 [17:12:01]MH_I2C_Read... [17:12:01]Read from MH i2c: E2 17 00 1E 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4D [17:12:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:12:01]wFMCommunicate OK [17:12:01]CreateOFDProtocolMessage done [17:12:01]OFDSenderStorePacket 228353 [17:12:01]StoreOFDPacket docnum=228353 [17:12:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 B7 2B 04 01 19 69 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 E4 DC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 01 7C 03 00 35 04 06 00 22 FA 12 CE 71 A1 0D CA 81 3B 4B 6F 95 53 [17:12:01]CheckFolder [17:12:01]dirname=/storage/ofd_packets [17:12:01]CheckFolder done [17:12:01]ProducePacketName [17:12:01]name=ofd_packets/00228353 [17:12:01]NVStorageSaveData ofd_packets/00228353 [17:12:01]File name is /storage/ofd_packets/00228353 [17:12:01]Write 298 bytes [17:12:01]NVStorageSaveData done [17:12:01]OFDSenderStorePacket done [17:12:01]KKMCreateOFDPacket done [17:12:01]NVStorageSaveData kkm_last_timestamp [17:12:01]File name is /storage/kkm_last_timestamp [17:12:01]Write 4 bytes [17:12:01]NVStorageSaveData done [17:12:01]ExternCall_PrintAddStr [17:12:01]wPrintStart [17:12:01]Write to MH i2c: 01 00 00 1F 5E 7D [17:12:01]OFD Sender: Processing packet 228353 [packets to send 38, broken 37] [17:12:01]ProducePacketName [17:12:01]name=ofd_packets/00228353 [17:12:01]OFD Sender: To server: pG, [17:12:01]CommunicateWithHost lk.salyk.kg:30040 [17:12:01]ConnectInit lk.salyk.kg [17:12:01]Write i2c OK [17:12:01]MH_I2C_Read... [17:12:01]Read from MH i2c: 01 [17:12:01]MH_I2C_Read... [17:12:01]Read from MH i2c: 01 07 00 [17:12:01]MH_I2C_Read... [17:12:01]Read from MH i2c: 01 07 00 1F 5E 00 00 00 00 00 FF 0F 92 [17:12:01]RasterBufferAndPrint [17:12:01]line Счет N : (1)1964852 [17:12:01]line ИНН: 02508201610067 [17:12:01]line Контрольно-Кассовый Чек [17:12:01]line ПРОДАЖА [17:12:01]line ТРК (МРК, ГНК) : 21 [17:12:01]line Товар: 2710194210 [17:12:01]line ДТ-К-5 [17:12:01]line 100.000 * 0.00 [17:12:01]line = 0.00 [17:12:01]line НДС 12% НСП 1% [17:12:01]line > о реализуемом товаре [17:12:01]line ИТОГО: 0.00 [17:12:01]line НСП 1% : 0.00 [17:12:01]line НДС 12% : 0.00 [17:12:01]line Наличными: 0.00 [17:12:01]line Безнал.: 0.00 [17:12:01]line Место: АЗС № 133 "Партнер Нефть" [17:12:01]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:12:01]line СНО: Общий режим [17:12:01]line Чек 317 22.10.2024 17:12 [17:12:01]line Смена: 535 ФФД: 1.0 [17:12:01]line ЗНМ: 0300000091 [17:12:01]line РНМ: 0000000000091685 [17:12:01]line Версия ККМ: 001 [17:12:01]line Талоны: Топливные Талоны [17:12:01]line 3979025 [17:12:01]line ФМ: 0000000000871839 [17:12:01]line ФД: 228353 [17:12:01]line ФПД: 38457452687777 [17:12:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171204&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228353&fm=38457452687777&tin=02508201610067®Number=0000000000091685&sum=0 [17:12:01]written 0, free lines is 4095 [17:12:01]Connected sock=10 [17:12:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 B7 2B 04 01 19 69 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 E4 DC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 01 7C 03 00 35 04 06 00 22 FA 12 CE 71 A1 0D CA 81 3B 4B 6F 95 53 [17:12:02]Write to MH i2c: 01 00 00 48 5E A6 [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 48 5E 00 00 00 00 00 D0 0C 89 [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 3321 [17:12:02]MH_Cut [17:12:02]Write to MH i2c: D1 01 00 4F 5E 01 7F [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 4F 5E 00 7E [17:12:02]Write to MH i2c: 01 00 00 50 5E AE [17:12:02]Write i2c OK [17:12:02]MH_I2C_Read... [17:12:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 A8 C1 47 00 30 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 01 7C 03 00 F4 03 04 00 DC 87 17 67 B6 04 01 00 00 6C 66 91 94 30 8B FC 22 [17:12:02]CommunicateWithHost err = 0 [17:12:02]CheckOFDResponse [17:12:02]1017 (14) - 77093643461234 [17:12:02]1041 (16) - 0000000000871839 [17:12:02]1040 (4) - 228353 [17:12:02]1012 (4) - 22.10.2024 11:09 [17:12:02]1206 (1) - 0 [17:12:02]OFD Sender: Remove packet 228353 [17:12:02]ProducePacketName [17:12:02]name=ofd_packets/00228353 [17:12:02]NVStorageDeleteData [17:12:02]OFD Sender: No OFD packet to send [17:12:03]*** Cut start [17:12:03]*** Partial cut [17:12:03]*** CUTSNS_PIN = 1 [17:12:03]*** 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]*** Stop cut motor [17:12:03]*** Cut end [17:12:03]Read from MH i2c: 01 07 00 [17:12:03]MH_I2C_Read... [17:12:03]Read from MH i2c: 01 07 00 50 5E 00 00 00 00 00 FF 0F C3 [17:12:03]process_action close_receipt 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 51 5E 80 11 00 00 00 00 00 00 29 [17:12:03]Write i2c OK [17:12:03]MH_I2C_Read... [17:12:03]Read from MH i2c: E2 [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 00 [17:12:03]MH_I2C_Read... [17:12:03]Read from MH i2c: E2 17 00 51 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 80 [17:12:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 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 52 5E 80 13 00 00 00 00 00 00 2C [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 52 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 01 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 A8 [17:12:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 01 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:12:04]wFMCommunicate OK [17:12:04]SAM_PROTO_GetFieldsCounters done [17:12:04]requested_item shift.num is exist - process it [17:12:04]requested_item shift.opened is exist - process it [17:12:04]req_shift_opened [17:12:04]FM_GetShiftState [17:12:04]SAM_PROTO_GetShiftState [17:12:04]wFMCommunicate request_size=4 [17:12:04]MH_SAM_APDU [17:12:04]CAPDU: 80 13 01 00 [17:12:04]Write to MH i2c: E2 08 00 53 5E 80 13 01 00 00 00 00 00 2E [17:12:04]Write i2c OK [17:12:04]MH_I2C_Read... [17:12:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:04]Read from MH i2c: E2 [17:12:04]MH_I2C_Read... [17:12:04]Read from MH i2c: E2 0E 00 [17:12:04]MH_I2C_Read... [17:12:04]Read from MH i2c: E2 0E 00 53 5E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 F5 [17:12:04]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:12:04]wFMCommunicate OK [17:12:04]SAM_PROTO_GetShiftState done [17:12:04]FM_GetShiftState done [17:12:04]req_shift_opened done [17:12:04]requested_item shift.open_date is exist - process it [17:12:04]req_shift_open_date [17:12:04]req_shift_open_date done [17:12:04]produce_requested_data done [17:12:04]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228353,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [17:12:04]process_action_free close_receipt [17:12:04]json_value_free [17:12:04]json_value_free done [17:12:04]process_json_proto returns [17:12:04]Send response to host [17:12:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228353,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [17:12:04]free response buf [17:12:04]execute_script done [17:12:04]execute_script returns [17:12:04]free content buf [17:12:04]Sock 7.Close socket [17:12:04]Sock 7.Thread stoped [17:12:07]OFD Sender: No OFD packet to send [17:12:12]OFD Sender: No OFD packet to send [17:12:18]OFD Sender: No OFD packet to send [17:12:23]OFD Sender: No OFD packet to send [17:12:28]OFD Sender: No OFD packet to send [17:12:33]OFD Sender: No OFD packet to send [17:12:38]OFD Sender: No OFD packet to send [17:12:38]accept exits with 9 [17:12:38]New connection [17:12:38]New thread 3067137380 created [17:12:38]Thread 3066994020 joined [17:12:38]Waiting for new connection... [17:12:38] Sock 9.Parse request [17:12:38]Sock 9.Check first char [17:12:38]Sock 9.First char is OK [17:12:38]request: POST /json_proto HTTP/1.0 [17:12:38]Method: POST [17:12:38]URL: /json_proto [17:12:38]Method is POST - this is cgi request [17:12:38]url: /json_proto [17:12:38]query_string will be loaded in cgi processing [17:12:38]execute_cgi json_proto POST (null) [17:12:38]execute_cgi path=json_proto method=POST [17:12:38]POST find Content-Length [17:12:38]Host: 172.17.44.195:8080 [17:12:38]Content-Length: 675 [17:12:38]Content-Type: application/json [17:12:38] [17:12:38]POST finish read [17:12:38]Found Content-Length = 675 [17:12:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:12:38]execute_script... [17:12:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:12:38]POST & json_proto [17:12:38]process_json_proto [17:12:38]json parsed OK: [17:12:38]protocol is kg_v1.0 [17:12:38]action value=close_receipt [17:12:38]process_action close_receipt [17:12:38]cmd_close_receipt [17:12:38]MH_GetDate [17:12:38]Write to MH i2c: F0 00 00 54 5E A1 [17:12:38]Write i2c OK [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: F0 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: F0 09 00 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: F0 09 00 54 5E 00 0B DD 17 67 82 C9 CF 66 90 [17:12:38]GetLastDocTimeStamp 1729617124 [17:12:38]current date 1729617163 [17:12:38]FM_GetShiftState [17:12:38]SAM_PROTO_GetShiftState [17:12:38]wFMCommunicate request_size=4 [17:12:38]MH_SAM_APDU [17:12:38]CAPDU: 80 13 01 00 [17:12:38]Write to MH i2c: E2 08 00 55 5E 80 13 01 00 00 00 00 00 30 [17:12:38]Write i2c OK [17:12:38]MH_I2C_Read... [17:12:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:38]Read from MH i2c: E2 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: E2 0E 00 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: E2 0E 00 55 5E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 F7 [17:12:38]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:12:38]wFMCommunicate OK [17:12:38]SAM_PROTO_GetShiftState done [17:12:38]FM_GetShiftState done [17:12:38]opened in 1729555538 [17:12:38]opened+sec_in_day 1729641938 [17:12:38]quantity*price = 50063 [17:12:38]sum+1 = 50064 [17:12:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 318 22.10.2024 17:12 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228354 ФПД: 62700182922642 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171243&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228354&fm=62700182922642&tin=02508201610067®Number=0000000000091685&sum=50000 [17:12:39]StoreToDocumentArchive [17:12:39]shift 535 fd 228354 [17:12:39]save to /storage/0535/doc_00228354 [17:12:39]save last doc name /storage/0535/doc_00228354 to /storage/kkm_last_doc_name [17:12:39]save OK [17:12:39]Clear old archive folders... [17:12:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:12:39]tlvbuf is 0093A0A0 [17:12:39]SAM_PROTO_ClearQueue [17:12:39]wFMCommunicate request_size=4 [17:12:39]MH_SAM_APDU [17:12:39]CAPDU: 80 09 00 00 [17:12:39]Write to MH i2c: E2 08 00 62 5E 80 09 00 00 00 00 00 00 32 [17:12:39]Write i2c OK [17:12:39]MH_I2C_Read... [17:12:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:12:39]Read from MH i2c: E2 [17:12:39]MH_I2C_Read... [17:12:39]Read from MH i2c: E2 03 00 [17:12:39]MH_I2C_Read... [17:12:39]Read from MH i2c: E2 03 00 62 5E 00 90 00 34 [17:12:39]RAPDU: 90 00 [17:12:39]wFMCommunicate OK [17:12:39]SAM_PROTO_ClearQueue done [17:12:39]KKMCreateOFDPacket [17:12:39]OFDProtocolAddRootSTLVToBuf [17:12:39]FM_MakeSignedData [17:12:39]FM_MakeSignedData [17:12:39]SAM_PROTO_SignData [17:12:39]wFMCommunicate request_size=4 [17:12:39]MH_SAM_APDU [17:12:39]CAPDU: 80 0D 01 02 [17:12:39]Write to MH i2c: E2 08 00 63 5E 80 0D 01 02 00 00 00 00 3A [17:12:39]Write i2c OK [17:12:39]MH_I2C_Read... [17:12:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:12:39]Read from MH i2c: E2 [17:12:39]MH_I2C_Read... [17:12:39]Read from MH i2c: E2 03 00 [17:12:39]MH_I2C_Read... [17:12:39]Read from MH i2c: E2 03 00 63 5E 00 90 00 35 [17:12:39]RAPDU: 90 00 [17:12:39]wFMCommunicate OK [17:12:39]wFMCommunicate request_size=255 [17:12:39]MH_SAM_APDU [17:12: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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 0B DD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 02 7C 03 00 35 04 06 00 39 06 86 21 [17:12:39]Write to MH i2c: E2 02 01 64 5E 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 0B DD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 02 7C 03 00 35 04 06 00 39 06 86 21 00 00 74 [17:12:39]Write i2c OK [17:12:39]MH_I2C_Read... [17:12:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:40]Read from MH i2c: E2 [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: E2 03 00 [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: E2 03 00 64 5E 00 90 00 36 [17:12:40]RAPDU: 90 00 [17:12:40]wFMCommunicate OK [17:12:40]wFMCommunicate request_size=7 [17:12:40]MH_SAM_APDU [17:12:40]CAPDU: 80 0D 02 02 02 65 92 [17:12:40]Write to MH i2c: E2 0A 00 65 5E 80 0D 02 02 02 00 65 92 00 00 38 [17:12:40]Write i2c OK [17:12:40]MH_I2C_Read... [17:12:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:40]Read from MH i2c: E2 [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: E2 03 00 [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: E2 03 00 65 5E 00 90 00 37 [17:12:40]RAPDU: 90 00 [17:12:40]wFMCommunicate OK [17:12:40]wFMCommunicate request_size=4 [17:12:40]MH_SAM_APDU [17:12:40]CAPDU: 80 0D 03 02 [17:12:40]Write to MH i2c: E2 08 00 66 5E 80 0D 03 02 00 00 00 00 3F [17:12:40]Write i2c OK [17:12:40]MH_I2C_Read... [17:12:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:40]Read from MH i2c: E2 [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: E2 0B 00 [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: E2 0B 00 66 5E 00 0A 3B B9 3F FB 16 25 19 90 00 CC [17:12:40]RAPDU: 0A 3B B9 3F FB 16 25 19 90 00 [17:12:40]wFMCommunicate OK [17:12:40]SAM_PROTO_SignData done [17:12:40]FM_MakeSignedData done [17:12:40]CreateOFDProtocolMessage [17:12:40]wFMCommunicate request_size=4 [17:12:40]MH_SAM_APDU [17:12:40]CAPDU: 80 11 00 00 [17:12:40]Write to MH i2c: E2 08 00 67 5E 80 11 00 00 00 00 00 00 3F [17:12:40]Write i2c OK [17:12:40]MH_I2C_Read... [17:12:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:40]Read from MH i2c: E2 [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: E2 17 00 [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: E2 17 00 67 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 96 [17:12:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:12:40]wFMCommunicate OK [17:12:40]CreateOFDProtocolMessage done [17:12:40]OFDSenderStorePacket 228354 [17:12:40]StoreOFDPacket docnum=228354 [17:12:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 C3 EE 04 01 F4 F4 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 0B DD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 02 7C 03 00 35 04 06 00 39 06 86 21 65 92 0A 3B B9 3F FB 16 25 19 [17:12:40]CheckFolder [17:12:40]dirname=/storage/ofd_packets [17:12:40]CheckFolder done [17:12:40]ProducePacketName [17:12:40]name=ofd_packets/00228354 [17:12:40]NVStorageSaveData ofd_packets/00228354 [17:12:40]File name is /storage/ofd_packets/00228354 [17:12:40]Write 298 bytes [17:12:40]NVStorageSaveData done [17:12:40]OFDSenderStorePacket done [17:12:40]KKMCreateOFDPacket done [17:12:40]NVStorageSaveData kkm_last_timestamp [17:12:40]File name is /storage/kkm_last_timestamp [17:12:40]Write 4 bytes [17:12:40]NVStorageSaveData done [17:12:40]ExternCall_PrintAddStr [17:12:40]wPrintStart [17:12:40]Write to MH i2c: 01 00 00 68 5E C6 [17:12:40]Write i2c OK [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: 01 [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: 01 07 00 [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: 01 07 00 68 5E 00 00 00 00 00 FF 0F DB [17:12:40]RasterBufferAndPrint [17:12:40]line Счет N : (1)1964858 [17:12:40]line ИНН: 02508201610067 [17:12:40]line Контрольно-Кассовый Чек [17:12:40]line ПРОДАЖА [17:12:40]line ТРК (МРК, ГНК) : 41 [17:12:40]line Товар: 2710194210 [17:12:40]line ДТ-К-5 [17:12:40]line 6.570 * 76.20 [17:12:40]line = 500.63 [17:12:40]line НДС 12% НСП 1% [17:12:40]line > о реализуемом товаре [17:12:40]line ОКРУГЛЕНИЕ: -0.63 [17:12:40]line ИТОГО: 500.00 [17:12:40]line Внесено: 500.00 [17:12:40]line СДАЧА: 0.00 [17:12:40]line НСП 1% : 4.43 [17:12:40]line НДС 12% : 53.16 [17:12:40]line Наличными: 500.00 [17:12:40]line Безнал.: 0.00 [17:12:40]line Место: АЗС № 133 "Партнер Нефть" [17:12:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:12:40]line СНО: Общий режим [17:12:40]line Чек 318 22.10.2024 17:12 [17:12:40]line Смена: 535 ФФД: 1.0 [17:12:40]line ЗНМ: 0300000091 [17:12:40]line РНМ: 0000000000091685 [17:12:40]line Версия ККМ: 001 [17:12:40]line ФМ: 0000000000871839 [17:12:40]line ФД: 228354 [17:12:40]line ФПД: 62700182922642 [17:12:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171243&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228354&fm=62700182922642&tin=02508201610067®Number=0000000000091685&sum=50000 [17:12:40]written 0, free lines is 4095 [17:12:40]OFD Sender: Processing packet 228354 [packets to send 38, broken 37] [17:12:40]ProducePacketName [17:12:40]name=ofd_packets/00228354 [17:12:40]OFD Sender: To server: pG, [17:12:40]CommunicateWithHost lk.salyk.kg:30040 [17:12:40]ConnectInit lk.salyk.kg [17:12:40]Connected sock=10 [17:12:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 C3 EE 04 01 F4 F4 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 0B DD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 02 7C 03 00 35 04 06 00 39 06 86 21 65 92 0A 3B B9 3F FB 16 25 19 [17:12:40]Write to MH i2c: 01 00 00 92 5E F0 [17:12:40]Write i2c OK [17:12:40]MH_I2C_Read... [17:12:41]Read from MH i2c: 01 [17:12:41]MH_I2C_Read... [17:12:41]Read from MH i2c: 01 07 00 [17:12:41]MH_I2C_Read... [17:12:41]Read from MH i2c: 01 07 00 92 5E 00 00 00 00 00 C1 0C C4 [17:12:41]RasterBufferAndPrint [17:12:41]line [17:12:41]line [17:12:41]line [17:12:41]line [17:12:41]line [17:12:41]written 0, free lines is 3292 [17:12:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 B5 0D 47 00 D8 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 02 7C 03 00 F4 03 04 00 03 88 17 67 B6 04 01 00 00 7C 9D 20 EB 8A 64 EE 60 [17:12:41]CommunicateWithHost err = 0 [17:12:41]CheckOFDResponse [17:12:41]1017 (14) - 77093643461234 [17:12:41]1041 (16) - 0000000000871839 [17:12:41]1040 (4) - 228354 [17:12:41]1012 (4) - 22.10.2024 11:09 [17:12:41]1206 (1) - 0 [17:12:41]OFD Sender: Remove packet 228354 [17:12:41]ProducePacketName [17:12:41]name=ofd_packets/00228354 [17:12:41]NVStorageDeleteData [17:12:41]MH_Cut [17:12:41]Write to MH i2c: D1 01 00 99 5E 01 C9 [17:12:41]Write i2c OK [17:12:41]MH_I2C_Read... [17:12:41]Read from MH i2c: D1 [17:12:41]MH_I2C_Read... [17:12:41]Read from MH i2c: D1 01 00 [17:12:41]MH_I2C_Read... [17:12:41]Read from MH i2c: D1 01 00 99 5E 00 C8 [17:12:41]Write to MH i2c: 01 00 00 9A 5E F8 [17:12:41]Write i2c OK [17:12:41]MH_I2C_Read... [17:12:41]OFD Sender: No OFD packet to send [17:12:41]*** Cut start [17:12:41]*** Partial cut [17:12:41]*** CUTSNS_PIN = 1 [17:12:41]*** CUTSNS_PIN = 0 [17:12:42]*** Brake cut motor [17:12:42]Read from MH i2c: 01 [17:12:42]MH_I2C_Read... [17:12:42]*** Stop cut motor [17:12:42]*** Cut end [17:12:42]Read from MH i2c: 01 07 00 [17:12:42]MH_I2C_Read... [17:12:42]Read from MH i2c: 01 07 00 9A 5E 00 00 00 00 00 FF 0F 0D [17:12:42]process_action close_receipt done [17:12:42]requested_data is exist [17:12:42]produce_requested_data [17:12:42]requested_item fm.sn is exist - process it [17:12:42]wFMCommunicate request_size=4 [17:12:42]MH_SAM_APDU [17:12:42]CAPDU: 80 11 00 00 [17:12:42]Write to MH i2c: E2 08 00 9B 5E 80 11 00 00 00 00 00 00 73 [17:12:42]Write i2c OK [17:12:42]MH_I2C_Read... [17:12:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:42]Read from MH i2c: E2 [17:12:42]MH_I2C_Read... [17:12:42]Read from MH i2c: E2 17 00 [17:12:42]MH_I2C_Read... [17:12:42]Read from MH i2c: E2 17 00 9B 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CA [17:12:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:12:42]wFMCommunicate OK [17:12:42]requested_item fd.num is exist - process it [17:12:42]SAM_PROTO_GetFieldsCounters [17:12:42]wFMCommunicate request_size=4 [17:12:42]MH_SAM_APDU [17:12:42]CAPDU: 80 13 00 00 [17:12:42]Write to MH i2c: E2 08 00 9C 5E 80 13 00 00 00 00 00 00 76 [17:12:42]Write i2c OK [17:12:42]MH_I2C_Read... [17:12:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:42]Read from MH i2c: E2 [17:12:42]MH_I2C_Read... [17:12:42]Read from MH i2c: E2 62 00 [17:12:42]MH_I2C_Read... [17:12:42]Read from MH i2c: E2 62 00 9C 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 02 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 F6 [17:12:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 02 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:12:42]wFMCommunicate OK [17:12:42]SAM_PROTO_GetFieldsCounters done [17:12:42]requested_item shift.num is exist - process it [17:12:42]requested_item shift.opened is exist - process it [17:12:42]req_shift_opened [17:12:42]FM_GetShiftState [17:12:42]SAM_PROTO_GetShiftState [17:12:42]wFMCommunicate request_size=4 [17:12:42]MH_SAM_APDU [17:12:42]CAPDU: 80 13 01 00 [17:12:42]Write to MH i2c: E2 08 00 9D 5E 80 13 01 00 00 00 00 00 78 [17:12:42]Write i2c OK [17:12:42]MH_I2C_Read... [17:12:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:42]Read from MH i2c: E2 [17:12:42]MH_I2C_Read... [17:12:42]Read from MH i2c: E2 0E 00 [17:12:42]MH_I2C_Read... [17:12:42]Read from MH i2c: E2 0E 00 9D 5E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 3F [17:12:42]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:12:42]wFMCommunicate OK [17:12:42]SAM_PROTO_GetShiftState done [17:12:42]FM_GetShiftState done [17:12:42]req_shift_opened done [17:12:42]requested_item shift.open_date is exist - process it [17:12:42]req_shift_open_date [17:12:42]req_shift_open_date done [17:12:42]produce_requested_data done [17:12:42]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228354,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [17:12:42]process_action_free close_receipt [17:12:42]json_value_free [17:12:42]json_value_free done [17:12:42]process_json_proto returns [17:12:42]Send response to host [17:12:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228354,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [17:12:42]free response buf [17:12:42]execute_script done [17:12:42]execute_script returns [17:12:42]free content buf [17:12:42]Sock 9.Close socket [17:12:42]Sock 9.Thread stoped [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:01]OFD Sender: No OFD packet to send [17:13:06]OFD Sender: No OFD packet to send [17:13:11]OFD Sender: No OFD packet to send [17:13:16]OFD Sender: No OFD packet to send [17:13:21]OFD Sender: No OFD packet to send [17:13:26]OFD Sender: No OFD packet to send [17:13:31]OFD Sender: No OFD packet to send [17:13:36]OFD Sender: No OFD packet to send [17:13:41]OFD Sender: No OFD packet to send [17:13:46]OFD Sender: No OFD packet to send [17:13:49]accept exits with 7 [17:13:49]New connection [17:13:49]New thread 3066994020 created [17:13:49]Thread 3067137380 joined [17:13:49]Waiting for new connection... [17:13:49] Sock 7.Parse request [17:13:49]Sock 7.Check first char [17:13:49]Sock 7.First char is OK [17:13:49]request: POST /json_proto HTTP/1.0 [17:13:49]Method: POST [17:13:49]URL: /json_proto [17:13:49]Method is POST - this is cgi request [17:13:49]url: /json_proto [17:13:49]query_string will be loaded in cgi processing [17:13:49]execute_cgi json_proto POST (null) [17:13:49]execute_cgi path=json_proto method=POST [17:13:49]POST find Content-Length [17:13:49]Host: 172.17.44.195:8080 [17:13:49]Content-Length: 675 [17:13:49]Content-Type: application/json [17:13:49] [17:13:49]POST finish read [17:13:49]Found Content-Length = 675 [17:13:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964859", "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" : 76.20, "quantity" : 9.850, "sum" : 750.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:49]execute_script... [17:13: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)1964859", "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" : 76.20, "quantity" : 9.850, "sum" : 750.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:49]POST & json_proto [17:13:49]process_json_proto [17:13:49]json parsed OK: [17:13:49]protocol is kg_v1.0 [17:13:49]action value=close_receipt [17:13:49]process_action close_receipt [17:13:49]cmd_close_receipt [17:13:49]MH_GetDate [17:13:49]Write to MH i2c: F0 00 00 9E 5E EB [17:13:49]Write i2c OK [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: F0 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: F0 09 00 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: F0 09 00 9E 5E 00 52 DD 17 67 82 C9 CF 66 21 [17:13:49]GetLastDocTimeStamp 1729617163 [17:13:49]current date 1729617234 [17:13:49]FM_GetShiftState [17:13:49]SAM_PROTO_GetShiftState [17:13:49]wFMCommunicate request_size=4 [17:13:49]MH_SAM_APDU [17:13:49]CAPDU: 80 13 01 00 [17:13:49]Write to MH i2c: E2 08 00 9F 5E 80 13 01 00 00 00 00 00 7A [17:13:49]Write i2c OK [17:13:49]MH_I2C_Read... [17:13:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:49]Read from MH i2c: E2 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: E2 0E 00 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: E2 0E 00 9F 5E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 41 [17:13:49]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:13:49]wFMCommunicate OK [17:13:49]SAM_PROTO_GetShiftState done [17:13:49]FM_GetShiftState done [17:13:49]opened in 1729555538 [17:13:49]opened+sec_in_day 1729641938 [17:13:49]quantity*price = 75057 [17:13:49]sum+1 = 75058 [17:13:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.71 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 319 22.10.2024 17:13 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228355 ФПД: 21644268703837 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171354&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228355&fm=21644268703837&tin=02508201610067®Number=0000000000091685&sum=75000 [17:13:50]StoreToDocumentArchive [17:13:50]shift 535 fd 228355 [17:13:50]save to /storage/0535/doc_00228355 [17:13:50]save last doc name /storage/0535/doc_00228355 to /storage/kkm_last_doc_name [17:13:50]save OK [17:13:50]Clear old archive folders... [17:13:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:13:50]tlvbuf is 0093CC20 [17:13:50]SAM_PROTO_ClearQueue [17:13:50]wFMCommunicate request_size=4 [17:13:50]MH_SAM_APDU [17:13:50]CAPDU: 80 09 00 00 [17:13:50]Write to MH i2c: E2 08 00 AC 5E 80 09 00 00 00 00 00 00 7C [17:13:50]Write i2c OK [17:13:50]MH_I2C_Read... [17:13:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:51]Read from MH i2c: E2 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 03 00 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 03 00 AC 5E 00 90 00 7E [17:13:51]RAPDU: 90 00 [17:13:51]wFMCommunicate OK [17:13:51]SAM_PROTO_ClearQueue done [17:13:51]KKMCreateOFDPacket [17:13:51]OFDProtocolAddRootSTLVToBuf [17:13:51]FM_MakeSignedData [17:13:51]FM_MakeSignedData [17:13:51]SAM_PROTO_SignData [17:13:51]wFMCommunicate request_size=4 [17:13:51]MH_SAM_APDU [17:13:51]CAPDU: 80 0D 01 02 [17:13:51]Write to MH i2c: E2 08 00 AD 5E 80 0D 01 02 00 00 00 00 84 [17:13:51]Write i2c OK [17:13:51]MH_I2C_Read... [17:13:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:51]Read from MH i2c: E2 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 03 00 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 03 00 AD 5E 00 90 00 7F [17:13:51]RAPDU: 90 00 [17:13:51]wFMCommunicate OK [17:13:51]wFMCommunicate request_size=255 [17:13:51]MH_SAM_APDU [17:13:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 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 23 1F 00 00 00 00 07 04 06 00 F8 24 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 01 00 00 F4 03 04 00 52 DD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 03 7C 03 00 35 04 06 00 13 AF 72 F2 [17:13:51]Write to MH i2c: E2 02 01 AE 5E 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 7A 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 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 23 1F 00 00 00 00 07 04 06 00 F8 24 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 01 00 00 F4 03 04 00 52 DD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 03 7C 03 00 35 04 06 00 13 AF 72 F2 00 00 85 [17:13:51]Write i2c OK [17:13:51]MH_I2C_Read... [17:13:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:51]Read from MH i2c: E2 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 03 00 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 03 00 AE 5E 00 90 00 80 [17:13:51]RAPDU: 90 00 [17:13:51]wFMCommunicate OK [17:13:51]wFMCommunicate request_size=7 [17:13:51]MH_SAM_APDU [17:13:51]CAPDU: 80 0D 02 02 02 90 5D [17:13:51]Write to MH i2c: E2 0A 00 AF 5E 80 0D 02 02 02 00 90 5D 00 00 78 [17:13:51]Write i2c OK [17:13:51]MH_I2C_Read... [17:13:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:51]Read from MH i2c: E2 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 03 00 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 03 00 AF 5E 00 90 00 81 [17:13:51]RAPDU: 90 00 [17:13:51]wFMCommunicate OK [17:13:51]wFMCommunicate request_size=4 [17:13:51]MH_SAM_APDU [17:13:51]CAPDU: 80 0D 03 02 [17:13:51]Write to MH i2c: E2 08 00 B0 5E 80 0D 03 02 00 00 00 00 89 [17:13:51]Write i2c OK [17:13:51]MH_I2C_Read... [17:13:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:51]Read from MH i2c: E2 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 0B 00 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 0B 00 B0 5E 00 49 67 3E EB 1C AD 35 63 90 00 C4 [17:13:51]RAPDU: 49 67 3E EB 1C AD 35 63 90 00 [17:13:51]wFMCommunicate OK [17:13:51]SAM_PROTO_SignData done [17:13:51]FM_MakeSignedData done [17:13:51]CreateOFDProtocolMessage [17:13:51]wFMCommunicate request_size=4 [17:13:51]MH_SAM_APDU [17:13:51]CAPDU: 80 11 00 00 [17:13:51]Write to MH i2c: E2 08 00 B1 5E 80 11 00 00 00 00 00 00 89 [17:13:51]Write i2c OK [17:13:51]MH_I2C_Read... [17:13:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:51]Read from MH i2c: E2 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 17 00 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 17 00 B1 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E0 [17:13:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:13:51]wFMCommunicate OK [17:13:51]CreateOFDProtocolMessage done [17:13:51]OFDSenderStorePacket 228355 [17:13:51]StoreOFDPacket docnum=228355 [17:13:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 0C 99 04 01 14 BA 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 7A 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 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 23 1F 00 00 00 00 07 04 06 00 F8 24 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 01 00 00 F4 03 04 00 52 DD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 03 7C 03 00 35 04 06 00 13 AF 72 F2 90 5D 49 67 3E EB 1C AD 35 63 [17:13:51]CheckFolder [17:13:51]dirname=/storage/ofd_packets [17:13:51]CheckFolder done [17:13:51]ProducePacketName [17:13:51]name=ofd_packets/00228355 [17:13:51]NVStorageSaveData ofd_packets/00228355 [17:13:51]File name is /storage/ofd_packets/00228355 [17:13:51]Write 298 bytes [17:13:51]NVStorageSaveData done [17:13:51]OFDSenderStorePacket done [17:13:51]KKMCreateOFDPacket done [17:13:51]NVStorageSaveData kkm_last_timestamp [17:13:51]File name is /storage/kkm_last_timestamp [17:13:51]Write 4 bytes [17:13:51]NVStorageSaveData done [17:13:51]ExternCall_PrintAddStr [17:13:51]wPrintStart [17:13:51]Write to MH i2c: 01 00 00 B2 5E 10 [17:13:51]Write i2c OK [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: 01 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: 01 07 00 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: 01 07 00 B2 5E 00 00 00 00 00 FF 0F 25 [17:13:51]RasterBufferAndPrint [17:13:51]line Счет N : (1)1964859 [17:13:51]line ИНН: 02508201610067 [17:13:51]line Контрольно-Кассовый Чек [17:13:51]line ПРОДАЖА [17:13:51]line ТРК (МРК, ГНК) : 61 [17:13:51]line Товар: 2710194210 [17:13:51]line ДТ-К-5 [17:13:51]line 9.850 * 76.20 [17:13:51]line = 750.57 [17:13:51]line НДС 12% НСП 1% [17:13:51]line > о реализуемом товаре [17:13:51]line ОКРУГЛЕНИЕ: -0.57 [17:13:51]line ИТОГО: 750.00 [17:13:51]line Внесено: 750.00 [17:13:51]line СДАЧА: 0.00 [17:13:51]line НСП 1% : 6.64 [17:13:51]line НДС 12% : 79.71 [17:13:51]line Наличными: 750.00 [17:13:51]line Безнал.: 0.00 [17:13:51]line Место: АЗС № 133 "Партнер Нефть" [17:13:51]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:13:51]line СНО: Общий режим [17:13:51]line Чек 319 22.10.2024 17:13 [17:13:51]line Смена: 535 ФФД: 1.0 [17:13:51]line ЗНМ: 0300000091 [17:13:51]line РНМ: 0000000000091685 [17:13:51]line Версия ККМ: 001 [17:13:51]line ФМ: 0000000000871839 [17:13:51]line ФД: 228355 [17:13:51]line ФПД: 21644268703837 [17:13:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171354&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228355&fm=21644268703837&tin=02508201610067®Number=0000000000091685&sum=75000 [17:13:51]OFD Sender: Processing packet 228355 [packets to send 38, broken 37] [17:13:51]ProducePacketName [17:13:51]name=ofd_packets/00228355 [17:13:51]OFD Sender: To server: pG, [17:13:51]CommunicateWithHost lk.salyk.kg:30040 [17:13:51]ConnectInit lk.salyk.kg [17:13:51]written 0, free lines is 4095 [17:13:51]Connected sock=10 [17:13:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 0C 99 04 01 14 BA 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 7A 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 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 23 1F 00 00 00 00 07 04 06 00 F8 24 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 01 00 00 F4 03 04 00 52 DD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 03 7C 03 00 35 04 06 00 13 AF 72 F2 90 5D 49 67 3E EB 1C AD 35 63 [17:13:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 93 C5 47 00 FE C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 03 7C 03 00 F4 03 04 00 4A 88 17 67 B6 04 01 00 00 C1 02 EE A5 02 A4 FC 1F [17:13:52]CommunicateWithHost err = 0 [17:13:52]CheckOFDResponse [17:13:52]1017 (14) - 77093643461234 [17:13:52]1041 (16) - 0000000000871839 [17:13:52]1040 (4) - 228355 [17:13:52]1012 (4) - 22.10.2024 11:11 [17:13:52]1206 (1) - 0 [17:13:52]OFD Sender: Remove packet 228355 [17:13:52]ProducePacketName [17:13:52]name=ofd_packets/00228355 [17:13:52]NVStorageDeleteData [17:13:52]Write to MH i2c: 01 00 00 DC 5E 3A [17:13:52]Write i2c OK [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: 01 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: 01 07 00 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: 01 07 00 DC 5E 00 00 00 00 00 AE 0C FB [17:13:52]RasterBufferAndPrint [17:13:52]line [17:13:52]line [17:13:52]line [17:13:52]line [17:13:52]line [17:13:52]written 0, free lines is 3250 [17:13:52]MH_Cut [17:13:52]Write to MH i2c: D1 01 00 E3 5E 01 13 [17:13:52]Write i2c OK [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: D1 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: D1 01 00 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: D1 01 00 E3 5E 00 12 [17:13:52]Write to MH i2c: 01 00 00 E4 5E 42 [17:13:52]Write i2c OK [17:13:52]MH_I2C_Read... [17:13:52]OFD Sender: No OFD packet to send [17:13:53]*** Cut start [17:13:53]*** Partial cut [17:13:53]*** CUTSNS_PIN = 1 [17:13:53]*** CUTSNS_PIN = 0 [17:13:53]*** Brake cut motor [17:13:53]Read from MH i2c: 01 [17:13:53]MH_I2C_Read... [17:13:53]*** Stop cut motor [17:13:53]*** Cut end [17:13:53]Read from MH i2c: 01 07 00 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: 01 07 00 E4 5E 00 00 00 00 00 FF 0F 57 [17:13:53]process_action close_receipt done [17:13:53]requested_data is exist [17:13:53]produce_requested_data [17:13:53]requested_item fm.sn is exist - process it [17:13:53]wFMCommunicate request_size=4 [17:13:53]MH_SAM_APDU [17:13:53]CAPDU: 80 11 00 00 [17:13:53]Write to MH i2c: E2 08 00 E5 5E 80 11 00 00 00 00 00 00 BD [17:13:53]Write i2c OK [17:13:53]MH_I2C_Read... [17:13:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:53]Read from MH i2c: E2 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: E2 17 00 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: E2 17 00 E5 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 14 [17:13:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:13:53]wFMCommunicate OK [17:13:53]requested_item fd.num is exist - process it [17:13:53]SAM_PROTO_GetFieldsCounters [17:13:53]wFMCommunicate request_size=4 [17:13:53]MH_SAM_APDU [17:13:53]CAPDU: 80 13 00 00 [17:13:53]Write to MH i2c: E2 08 00 E6 5E 80 13 00 00 00 00 00 00 C0 [17:13:53]Write i2c OK [17:13:53]MH_I2C_Read... [17:13:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:54]Read from MH i2c: E2 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 62 00 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 62 00 E6 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 03 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 44 [17:13:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 03 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:13:54]wFMCommunicate OK [17:13:54]SAM_PROTO_GetFieldsCounters done [17:13:54]requested_item shift.num is exist - process it [17:13:54]requested_item shift.opened is exist - process it [17:13:54]req_shift_opened [17:13:54]FM_GetShiftState [17:13:54]SAM_PROTO_GetShiftState [17:13:54]wFMCommunicate request_size=4 [17:13:54]MH_SAM_APDU [17:13:54]CAPDU: 80 13 01 00 [17:13:54]Write to MH i2c: E2 08 00 E7 5E 80 13 01 00 00 00 00 00 C2 [17:13:54]Write i2c OK [17:13:54]MH_I2C_Read... [17:13:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:54]Read from MH i2c: E2 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 0E 00 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 0E 00 E7 5E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 89 [17:13:54]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:13:54]wFMCommunicate OK [17:13:54]SAM_PROTO_GetShiftState done [17:13:54]FM_GetShiftState done [17:13:54]req_shift_opened done [17:13:54]requested_item shift.open_date is exist - process it [17:13:54]req_shift_open_date [17:13:54]req_shift_open_date done [17:13:54]produce_requested_data done [17:13:54]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228355,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [17:13:54]process_action_free close_receipt [17:13:54]json_value_free [17:13:54]json_value_free done [17:13:54]process_json_proto returns [17:13:54]Send response to host [17:13:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228355,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [17:13:54]free response buf [17:13:54]execute_script done [17:13:54]execute_script returns [17:13:54]free content buf [17:13:54]Sock 7.Close socket [17:13:54]Sock 7.Thread stoped [17:13:57]OFD Sender: No OFD packet to send [17:14:02]OFD Sender: No OFD packet to send [17:14:04]accept exits with 9 [17:14:04]New connection [17:14:04]New thread 3067137380 created [17:14:04]Thread 3066994020 joined [17:14:04]Waiting for new connection... [17:14:04] Sock 9.Parse request [17:14:04]Sock 9.Check first char [17:14:04]Sock 9.First char is OK [17:14:04]request: POST /json_proto HTTP/1.0 [17:14:04]Method: POST [17:14:04]URL: /json_proto [17:14:04]Method is POST - this is cgi request [17:14:04]url: /json_proto [17:14:04]query_string will be loaded in cgi processing [17:14:04]execute_cgi json_proto POST (null) [17:14:04]execute_cgi path=json_proto method=POST [17:14:04]POST find Content-Length [17:14:04]Host: 172.17.44.195:8080 [17:14:04]Content-Length: 678 [17:14:04]Content-Type: application/json [17:14:04] [17:14:04]POST finish read [17:14:04]Found Content-Length = 678 [17:14:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964860", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:14:04]execute_script... [17:14: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)1964860", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:14:04]POST & json_proto [17:14:04]process_json_proto [17:14:04]json parsed OK: [17:14:04]protocol is kg_v1.0 [17:14:04]action value=close_receipt [17:14:04]process_action close_receipt [17:14:04]cmd_close_receipt [17:14:04]MH_GetDate [17:14:04]Write to MH i2c: F0 00 00 E8 5E 35 [17:14:04]Write i2c OK [17:14:04]MH_I2C_Read... [17:14:04]Read from MH i2c: F0 [17:14:04]MH_I2C_Read... [17:14:04]Read from MH i2c: F0 09 00 [17:14:04]MH_I2C_Read... [17:14:04]Read from MH i2c: F0 09 00 E8 5E 00 61 DD 17 67 82 C9 CF 66 7A [17:14:04]GetLastDocTimeStamp 1729617234 [17:14:04]current date 1729617249 [17:14:04]FM_GetShiftState [17:14:04]SAM_PROTO_GetShiftState [17:14:04]wFMCommunicate request_size=4 [17:14:04]MH_SAM_APDU [17:14:04]CAPDU: 80 13 01 00 [17:14:04]Write to MH i2c: E2 08 00 E9 5E 80 13 01 00 00 00 00 00 C4 [17:14:04]Write i2c OK [17:14:04]MH_I2C_Read... [17:14:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:04]Read from MH i2c: E2 [17:14:04]MH_I2C_Read... [17:14:04]Read from MH i2c: E2 0E 00 [17:14:04]MH_I2C_Read... [17:14:04]Read from MH i2c: E2 0E 00 E9 5E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 8B [17:14:04]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:14:04]wFMCommunicate OK [17:14:04]SAM_PROTO_GetShiftState done [17:14:04]FM_GetShiftState done [17:14:04]opened in 1729555538 [17:14:04]opened+sec_in_day 1729641938 [17:14:04]quantity*price = 50041 [17:14:04]sum+1 = 50042 [17:14:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 320 22.10.2024 17:14 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228356 ФПД: 143081230402428 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171409&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228356&fm=143081230402428&tin=02508201610067®Number=0000000000091685&sum=50000 [17:14:05]StoreToDocumentArchive [17:14:05]shift 535 fd 228356 [17:14:05]save to /storage/0535/doc_00228356 [17:14:05]save last doc name /storage/0535/doc_00228356 to /storage/kkm_last_doc_name [17:14:05]save OK [17:14:05]Clear old archive folders... [17:14:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:14:05]tlvbuf is 008B1AB0 [17:14:05]SAM_PROTO_ClearQueue [17:14:05]wFMCommunicate request_size=4 [17:14:05]MH_SAM_APDU [17:14:05]CAPDU: 80 09 00 00 [17:14:05]Write to MH i2c: E2 08 00 F6 5E 80 09 00 00 00 00 00 00 C6 [17:14:05]Write i2c OK [17:14:05]MH_I2C_Read... [17:14:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:14:05]Read from MH i2c: E2 [17:14:05]MH_I2C_Read... [17:14:05]Read from MH i2c: E2 03 00 [17:14:05]MH_I2C_Read... [17:14:05]Read from MH i2c: E2 03 00 F6 5E 00 90 00 C8 [17:14:05]RAPDU: 90 00 [17:14:05]wFMCommunicate OK [17:14:05]SAM_PROTO_ClearQueue done [17:14:05]KKMCreateOFDPacket [17:14:05]OFDProtocolAddRootSTLVToBuf [17:14:05]FM_MakeSignedData [17:14:05]FM_MakeSignedData [17:14:05]SAM_PROTO_SignData [17:14:05]wFMCommunicate request_size=4 [17:14:05]MH_SAM_APDU [17:14:05]CAPDU: 80 0D 01 02 [17:14:05]Write to MH i2c: E2 08 00 F7 5E 80 0D 01 02 00 00 00 00 CE [17:14:05]Write i2c OK [17:14:05]MH_I2C_Read... [17:14:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:14:05]Read from MH i2c: E2 [17:14:05]MH_I2C_Read... [17:14:05]Read from MH i2c: E2 03 00 [17:14:05]MH_I2C_Read... [17:14:05]Read from MH i2c: E2 03 00 F7 5E 00 90 00 C9 [17:14:05]RAPDU: 90 00 [17:14:05]wFMCommunicate OK [17:14:05]wFMCommunicate request_size=255 [17:14:05]MH_SAM_APDU [17:14: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 61 DD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 04 7C 03 00 35 04 06 00 82 [17:14:05]Write to MH i2c: E2 02 01 F8 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 61 DD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 04 7C 03 00 35 04 06 00 82 00 00 80 [17:14:05]Write i2c OK [17:14:05]MH_I2C_Read... [17:14:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:05]Read from MH i2c: E2 [17:14:05]MH_I2C_Read... [17:14:05]Read from MH i2c: E2 03 00 [17:14:05]MH_I2C_Read... [17:14:05]Read from MH i2c: E2 03 00 F8 5E 00 90 00 CA [17:14:05]RAPDU: 90 00 [17:14:05]wFMCommunicate OK [17:14:05]wFMCommunicate request_size=10 [17:14:05]MH_SAM_APDU [17:14:05]CAPDU: 80 0D 02 02 05 21 B1 E9 83 7C [17:14:05]Write to MH i2c: E2 0D 00 F9 5E 80 0D 02 02 05 00 21 B1 E9 83 7C 00 00 95 [17:14:05]Write i2c OK [17:14:05]MH_I2C_Read... [17:14:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:05]Read from MH i2c: E2 [17:14:05]MH_I2C_Read... [17:14:05]Read from MH i2c: E2 03 00 [17:14:05]MH_I2C_Read... [17:14:05]Read from MH i2c: E2 03 00 F9 5E 00 90 00 CB [17:14:05]RAPDU: 90 00 [17:14:05]wFMCommunicate OK [17:14:05]wFMCommunicate request_size=4 [17:14:05]MH_SAM_APDU [17:14:05]CAPDU: 80 0D 03 02 [17:14:05]Write to MH i2c: E2 08 00 FA 5E 80 0D 03 02 00 00 00 00 D3 [17:14:05]Write i2c OK [17:14:05]MH_I2C_Read... [17:14:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:14:05]Read from MH i2c: E2 [17:14:05]MH_I2C_Read... [17:14:05]Read from MH i2c: E2 0B 00 [17:14:05]MH_I2C_Read... [17:14:05]Read from MH i2c: E2 0B 00 FA 5E 00 92 D2 A9 85 2C 8F 11 C5 90 00 F7 [17:14:05]RAPDU: 92 D2 A9 85 2C 8F 11 C5 90 00 [17:14:05]wFMCommunicate OK [17:14:05]SAM_PROTO_SignData done [17:14:05]FM_MakeSignedData done [17:14:05]CreateOFDProtocolMessage [17:14:05]wFMCommunicate request_size=4 [17:14:05]MH_SAM_APDU [17:14:05]CAPDU: 80 11 00 00 [17:14:05]Write to MH i2c: E2 08 00 FB 5E 80 11 00 00 00 00 00 00 D3 [17:14:05]Write i2c OK [17:14:05]MH_I2C_Read... [17:14:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:06]Read from MH i2c: E2 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: E2 17 00 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: E2 17 00 FB 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2A [17:14:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:14:06]wFMCommunicate OK [17:14:06]CreateOFDProtocolMessage done [17:14:06]OFDSenderStorePacket 228356 [17:14:06]StoreOFDPacket docnum=228356 [17:14:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 67 98 07 01 A5 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 61 DD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 04 7C 03 00 35 04 06 00 82 21 B1 E9 83 7C 92 D2 A9 85 2C 8F 11 C5 [17:14:06]CheckFolder [17:14:06]dirname=/storage/ofd_packets [17:14:06]CheckFolder done [17:14:06]ProducePacketName [17:14:06]name=ofd_packets/00228356 [17:14:06]NVStorageSaveData ofd_packets/00228356 [17:14:06]File name is /storage/ofd_packets/00228356 [17:14:06]Write 301 bytes [17:14:06]NVStorageSaveData done [17:14:06]OFDSenderStorePacket done [17:14:06]KKMCreateOFDPacket done [17:14:06]NVStorageSaveData kkm_last_timestamp [17:14:06]File name is /storage/kkm_last_timestamp [17:14:06]Write 4 bytes [17:14:06]NVStorageSaveData done [17:14:06]ExternCall_PrintAddStr [17:14:06]wPrintStart [17:14:06]Write to MH i2c: 01 00 00 FC 5E 5A [17:14:06]Write i2c OK [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: 01 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: 01 07 00 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: 01 07 00 FC 5E 00 00 00 00 00 FF 0F 6F [17:14:06]RasterBufferAndPrint [17:14:06]line Счет N : (1)1964860 [17:14:06]line ИНН: 02508201610067 [17:14:06]line Контрольно-Кассовый Чек [17:14:06]line ПРОДАЖА [17:14:06]line ТРК (МРК, ГНК) : 53 [17:14:06]line Товар: 2710124130 [17:14:06]line Аи-92-К-5 [17:14:06]line 7.480 * 66.90 [17:14:06]line = 500.41 [17:14:06]line НДС 12% НСП 1% [17:14:06]line > о реализуемом товаре [17:14:06]line ОКРУГЛЕНИЕ: -0.41 [17:14:06]line ИТОГО: 500.00 [17:14:06]line Внесено: 500.00 [17:14:06]line СДАЧА: 0.00 [17:14:06]line НСП 1% : 4.43 [17:14:06]line НДС 12% : 53.14 [17:14:06]line Наличными: 500.00 [17:14:06]line Безнал.: 0.00 [17:14:06]line Место: АЗС № 133 "Партнер Нефть" [17:14:06]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:14:06]line СНО: Общий режим [17:14:06]line Чек 320 22.10.2024 17:14 [17:14:06]line Смена: 535 ФФД: 1.0 [17:14:06]line ЗНМ: 0300000091 [17:14:06]line РНМ: 0000000000091685 [17:14:06]line Версия ККМ: 001 [17:14:06]line ФМ: 0000000000871839 [17:14:06]line ФД: 228356 [17:14:06]line ФПД: 143081230402428 [17:14:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171409&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228356&fm=143081230402428&tin=02508201610067®Number=0000000000091685&sum=50000 [17:14:06]written 0, free lines is 4095 [17:14:06]OFD Sender: Processing packet 228356 [packets to send 38, broken 37] [17:14:06]ProducePacketName [17:14:06]name=ofd_packets/00228356 [17:14:06]OFD Sender: To server: pG, [17:14:06]CommunicateWithHost lk.salyk.kg:30040 [17:14:06]ConnectInit lk.salyk.kg [17:14:06]Connected sock=10 [17:14:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 67 98 07 01 A5 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 61 DD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 04 7C 03 00 35 04 06 00 82 21 B1 E9 83 7C 92 D2 A9 85 2C 8F 11 C5 [17:14:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 72 D7 47 00 8A B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 04 7C 03 00 F4 03 04 00 59 88 17 67 B6 04 01 00 00 0C 85 5A 73 AD 73 DA 5B [17:14:06]CommunicateWithHost err = 0 [17:14:06]CheckOFDResponse [17:14:06]1017 (14) - 77093643461234 [17:14:06]1041 (16) - 0000000000871839 [17:14:06]1040 (4) - 228356 [17:14:06]1012 (4) - 22.10.2024 11:11 [17:14:06]1206 (1) - 0 [17:14:06]OFD Sender: Remove packet 228356 [17:14:06]ProducePacketName [17:14:06]name=ofd_packets/00228356 [17:14:06]NVStorageDeleteData [17:14:06]Write to MH i2c: 01 00 00 26 5F 85 [17:14:06]Write i2c OK [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: 01 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: 01 07 00 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: 01 07 00 26 5F 00 00 00 00 00 B2 0C 4A [17:14:06]RasterBufferAndPrint [17:14:06]line [17:14:06]line [17:14:06]line [17:14:06]line [17:14:06]line [17:14:06]written 0, free lines is 3256 [17:14:06]MH_Cut [17:14:06]Write to MH i2c: D1 01 00 2D 5F 01 5E [17:14:06]Write i2c OK [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: D1 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: D1 01 00 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: D1 01 00 2D 5F 00 5D [17:14:06]Write to MH i2c: 01 00 00 2E 5F 8D [17:14:06]Write i2c OK [17:14:06]MH_I2C_Read... [17:14:07]OFD Sender: No OFD packet to send [17:14:07]*** Cut start [17:14:07]*** Partial cut [17:14:07]*** CUTSNS_PIN = 1 [17:14:07]*** CUTSNS_PIN = 0 [17:14:07]*** Brake cut motor [17:14:08]Read from MH i2c: 01 [17:14:08]MH_I2C_Read... [17:14:08]*** Stop cut motor [17:14:08]*** Cut end [17:14:08]Read from MH i2c: 01 07 00 [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: 01 07 00 2E 5F 00 00 00 00 00 FF 0F A2 [17:14:08]process_action close_receipt done [17:14:08]requested_data is exist [17:14:08]produce_requested_data [17:14:08]requested_item fm.sn is exist - process it [17:14:08]wFMCommunicate request_size=4 [17:14:08]MH_SAM_APDU [17:14:08]CAPDU: 80 11 00 00 [17:14:08]Write to MH i2c: E2 08 00 2F 5F 80 11 00 00 00 00 00 00 08 [17:14:08]Write i2c OK [17:14:08]MH_I2C_Read... [17:14:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:08]Read from MH i2c: E2 [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: E2 17 00 [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: E2 17 00 2F 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5F [17:14:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:14:08]wFMCommunicate OK [17:14:08]requested_item fd.num is exist - process it [17:14:08]SAM_PROTO_GetFieldsCounters [17:14:08]wFMCommunicate request_size=4 [17:14:08]MH_SAM_APDU [17:14:08]CAPDU: 80 13 00 00 [17:14:08]Write to MH i2c: E2 08 00 30 5F 80 13 00 00 00 00 00 00 0B [17:14:08]Write i2c OK [17:14:08]MH_I2C_Read... [17:14:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:08]Read from MH i2c: E2 [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: E2 62 00 [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: E2 62 00 30 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 04 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 93 [17:14:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 04 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:14:08]wFMCommunicate OK [17:14:08]SAM_PROTO_GetFieldsCounters done [17:14:08]requested_item shift.num is exist - process it [17:14:08]requested_item shift.opened is exist - process it [17:14:08]req_shift_opened [17:14:08]FM_GetShiftState [17:14:08]SAM_PROTO_GetShiftState [17:14:08]wFMCommunicate request_size=4 [17:14:08]MH_SAM_APDU [17:14:08]CAPDU: 80 13 01 00 [17:14:08]Write to MH i2c: E2 08 00 31 5F 80 13 01 00 00 00 00 00 0D [17:14:08]Write i2c OK [17:14:08]MH_I2C_Read... [17:14:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:08]Read from MH i2c: E2 [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: E2 0E 00 [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: E2 0E 00 31 5F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 D4 [17:14:08]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:14:08]wFMCommunicate OK [17:14:08]SAM_PROTO_GetShiftState done [17:14:08]FM_GetShiftState done [17:14:08]req_shift_opened done [17:14:08]requested_item shift.open_date is exist - process it [17:14:08]req_shift_open_date [17:14:08]req_shift_open_date done [17:14:08]produce_requested_data done [17:14:08]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228356,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [17:14:08]process_action_free close_receipt [17:14:08]json_value_free [17:14:08]json_value_free done [17:14:08]process_json_proto returns [17:14:08]Send response to host [17:14:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228356,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [17:14:08]free response buf [17:14:08]execute_script done [17:14:08]execute_script returns [17:14:08]free content buf [17:14:08]Sock 9.Close socket [17:14:08]Sock 9.Thread stoped [17:14:12]OFD Sender: No OFD packet to send [17:14:17]OFD Sender: No OFD packet to send [17:14:22]OFD Sender: No OFD packet to send [17:14:27]OFD Sender: No OFD packet to send [17:14:32]OFD Sender: No OFD packet to send [17:14:37]OFD Sender: No OFD packet to send [17:14:42]OFD Sender: No OFD packet to send [17:14:47]OFD Sender: No OFD packet to send [17:14:49]accept exits with 7 [17:14:49]New connection [17:14:49]New thread 3066994020 created [17:14:49]Thread 3067137380 joined [17:14:49]Waiting for new connection... [17:14:49] Sock 7.Parse request [17:14:49]Sock 7.Check first char [17:14:49]Sock 7.First char is OK [17:14:49]request: POST /json_proto HTTP/1.0 [17:14:49]Method: POST [17:14:49]URL: /json_proto [17:14:49]Method is POST - this is cgi request [17:14:49]url: /json_proto [17:14:49]query_string will be loaded in cgi processing [17:14:49]execute_cgi json_proto POST (null) [17:14:49]execute_cgi path=json_proto method=POST [17:14:49]POST find Content-Length [17:14:49]Host: 172.17.44.195:8080 [17:14:49]Content-Length: 679 [17:14:49]Content-Type: application/json [17:14:49] [17:14:49]POST finish read [17:14:49]Found Content-Length = 679 [17:14:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964862", "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" : 66.90, "quantity" : 11.220, "sum" : 750.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:49]execute_script... [17:14: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)1964862", "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" : 66.90, "quantity" : 11.220, "sum" : 750.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:49]POST & json_proto [17:14:49]process_json_proto [17:14:49]json parsed OK: [17:14:49]protocol is kg_v1.0 [17:14:49]action value=close_receipt [17:14:49]process_action close_receipt [17:14:49]cmd_close_receipt [17:14:49]MH_GetDate [17:14:49]Write to MH i2c: F0 00 00 32 5F 80 [17:14:49]Write i2c OK [17:14:49]MH_I2C_Read... [17:14:49]Read from MH i2c: F0 [17:14:49]MH_I2C_Read... [17:14:49]Read from MH i2c: F0 09 00 [17:14:49]MH_I2C_Read... [17:14:49]Read from MH i2c: F0 09 00 32 5F 00 8E DD 17 67 82 C9 CF 66 F2 [17:14:49]GetLastDocTimeStamp 1729617249 [17:14:49]current date 1729617294 [17:14:49]FM_GetShiftState [17:14:49]SAM_PROTO_GetShiftState [17:14:49]wFMCommunicate request_size=4 [17:14:49]MH_SAM_APDU [17:14:49]CAPDU: 80 13 01 00 [17:14:49]Write to MH i2c: E2 08 00 33 5F 80 13 01 00 00 00 00 00 0F [17:14:49]Write i2c OK [17:14:49]MH_I2C_Read... [17:14:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:49]Read from MH i2c: E2 [17:14:49]MH_I2C_Read... [17:14:49]Read from MH i2c: E2 0E 00 [17:14:49]MH_I2C_Read... [17:14:49]Read from MH i2c: E2 0E 00 33 5F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 D6 [17:14:49]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:14:49]wFMCommunicate OK [17:14:49]SAM_PROTO_GetShiftState done [17:14:49]FM_GetShiftState done [17:14:49]opened in 1729555538 [17:14:49]opened+sec_in_day 1729641938 [17:14:49]quantity*price = 75061 [17:14:49]sum+1 = 75063 [17:14:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.71 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 321 22.10.2024 17:14 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228357 ФПД: 36755321810084 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171454&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228357&fm=36755321810084&tin=02508201610067®Number=0000000000091685&sum=75000 [17:14:50]StoreToDocumentArchive [17:14:50]shift 535 fd 228357 [17:14:50]save to /storage/0535/doc_00228357 [17:14:50]save last doc name /storage/0535/doc_00228357 to /storage/kkm_last_doc_name [17:14:50]save OK [17:14:50]Clear old archive folders... [17:14:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:14:50]tlvbuf is 008D1370 [17:14:50]SAM_PROTO_ClearQueue [17:14:50]wFMCommunicate request_size=4 [17:14:50]MH_SAM_APDU [17:14:50]CAPDU: 80 09 00 00 [17:14:50]Write to MH i2c: E2 08 00 40 5F 80 09 00 00 00 00 00 00 11 [17:14:50]Write i2c OK [17:14:50]MH_I2C_Read... [17:14:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:14:50]Read from MH i2c: E2 [17:14:50]MH_I2C_Read... [17:14:50]Read from MH i2c: E2 03 00 [17:14:50]MH_I2C_Read... [17:14:50]Read from MH i2c: E2 03 00 40 5F 00 90 00 13 [17:14:50]RAPDU: 90 00 [17:14:50]wFMCommunicate OK [17:14:50]SAM_PROTO_ClearQueue done [17:14:50]KKMCreateOFDPacket [17:14:50]OFDProtocolAddRootSTLVToBuf [17:14:50]FM_MakeSignedData [17:14:50]FM_MakeSignedData [17:14:50]SAM_PROTO_SignData [17:14:50]wFMCommunicate request_size=4 [17:14:50]MH_SAM_APDU [17:14:50]CAPDU: 80 0D 01 02 [17:14:50]Write to MH i2c: E2 08 00 41 5F 80 0D 01 02 00 00 00 00 19 [17:14:50]Write i2c OK [17:14:50]MH_I2C_Read... [17:14:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:14:50]Read from MH i2c: E2 [17:14:50]MH_I2C_Read... [17:14:50]Read from MH i2c: E2 03 00 [17:14:50]MH_I2C_Read... [17:14:50]Read from MH i2c: E2 03 00 41 5F 00 90 00 14 [17:14:50]RAPDU: 90 00 [17:14:50]wFMCommunicate OK [17:14:50]wFMCommunicate request_size=255 [17:14:50]MH_SAM_APDU [17:14: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 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 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 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 8E DD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 05 7C 03 00 35 04 06 00 21 [17:14:50]Write to MH i2c: E2 02 01 42 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 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 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 8E DD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 05 7C 03 00 35 04 06 00 21 00 00 C1 [17:14:50]Write i2c OK [17:14:50]MH_I2C_Read... [17:14:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:50]Read from MH i2c: E2 [17:14:50]MH_I2C_Read... [17:14:50]Read from MH i2c: E2 03 00 [17:14:50]MH_I2C_Read... [17:14:50]Read from MH i2c: E2 03 00 42 5F 00 90 00 15 [17:14:50]RAPDU: 90 00 [17:14:50]wFMCommunicate OK [17:14:50]wFMCommunicate request_size=10 [17:14:50]MH_SAM_APDU [17:14:50]CAPDU: 80 0D 02 02 05 6D C3 E6 6C A4 [17:14:50]Write to MH i2c: E2 0D 00 43 5F 80 0D 02 02 05 00 6D C3 E6 6C A4 00 00 4C [17:14:50]Write i2c OK [17:14:50]MH_I2C_Read... [17:14:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:50]Read from MH i2c: E2 [17:14:50]MH_I2C_Read... [17:14:50]Read from MH i2c: E2 03 00 [17:14:50]MH_I2C_Read... [17:14:50]Read from MH i2c: E2 03 00 43 5F 00 90 00 16 [17:14:50]RAPDU: 90 00 [17:14:50]wFMCommunicate OK [17:14:50]wFMCommunicate request_size=4 [17:14:50]MH_SAM_APDU [17:14:50]CAPDU: 80 0D 03 02 [17:14:50]Write to MH i2c: E2 08 00 44 5F 80 0D 03 02 00 00 00 00 1E [17:14:50]Write i2c OK [17:14:50]MH_I2C_Read... [17:14:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:14:50]Read from MH i2c: E2 [17:14:50]MH_I2C_Read... [17:14:50]Read from MH i2c: E2 0B 00 [17:14:50]MH_I2C_Read... [17:14:50]Read from MH i2c: E2 0B 00 44 5F 00 6C 0E ED 03 A2 A2 8E D2 90 00 2D [17:14:50]RAPDU: 6C 0E ED 03 A2 A2 8E D2 90 00 [17:14:50]wFMCommunicate OK [17:14:50]SAM_PROTO_SignData done [17:14:50]FM_MakeSignedData done [17:14:50]CreateOFDProtocolMessage [17:14:50]wFMCommunicate request_size=4 [17:14:50]MH_SAM_APDU [17:14:50]CAPDU: 80 11 00 00 [17:14:50]Write to MH i2c: E2 08 00 45 5F 80 11 00 00 00 00 00 00 1E [17:14:50]Write i2c OK [17:14:50]MH_I2C_Read... [17:14:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:50]Read from MH i2c: E2 [17:14:50]MH_I2C_Read... [17:14:50]Read from MH i2c: E2 17 00 [17:14:50]MH_I2C_Read... [17:14:50]Read from MH i2c: E2 17 00 45 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 75 [17:14:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:14:50]wFMCommunicate OK [17:14:50]CreateOFDProtocolMessage done [17:14:50]OFDSenderStorePacket 228357 [17:14:50]StoreOFDPacket docnum=228357 [17:14:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 9C 47 07 01 2B 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 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 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 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 8E DD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 05 7C 03 00 35 04 06 00 21 6D C3 E6 6C A4 6C 0E ED 03 A2 A2 8E D2 [17:14:50]CheckFolder [17:14:50]dirname=/storage/ofd_packets [17:14:50]CheckFolder done [17:14:50]ProducePacketName [17:14:50]name=ofd_packets/00228357 [17:14:50]NVStorageSaveData ofd_packets/00228357 [17:14:50]File name is /storage/ofd_packets/00228357 [17:14:50]Write 301 bytes [17:14:50]NVStorageSaveData done [17:14:50]OFDSenderStorePacket done [17:14:50]KKMCreateOFDPacket done [17:14:50]NVStorageSaveData kkm_last_timestamp [17:14:50]File name is /storage/kkm_last_timestamp [17:14:50]Write 4 bytes [17:14:50]NVStorageSaveData done [17:14:50]ExternCall_PrintAddStr [17:14:50]wPrintStart [17:14:50]Write to MH i2c: 01 00 00 46 5F A5 [17:14:50]Write i2c OK [17:14:50]MH_I2C_Read... [17:14:50]Read from MH i2c: 01 [17:14:50]MH_I2C_Read... [17:14:50]Read from MH i2c: 01 07 00 [17:14:50]MH_I2C_Read... [17:14:50]Read from MH i2c: 01 07 00 46 5F 00 00 00 00 00 FF 0F BA [17:14:50]RasterBufferAndPrint [17:14:50]line Счет N : (1)1964862 [17:14:50]line ИНН: 02508201610067 [17:14:50]line Контрольно-Кассовый Чек [17:14:50]line ПРОДАЖА [17:14:50]line ТРК (МРК, ГНК) : 63 [17:14:50]line Товар: 2710124130 [17:14:50]line Аи-92-К-5 [17:14:50]line 11.220 * 66.90 [17:14:50]line = 750.62 [17:14:50]line НДС 12% НСП 1% [17:14:50]line > о реализуемом товаре [17:14:50]line ОКРУГЛЕНИЕ: -0.62 [17:14:50]line ИТОГО: 750.00 [17:14:50]line Внесено: 750.00 [17:14:50]line СДАЧА: 0.00 [17:14:50]line НСП 1% : 6.64 [17:14:50]line НДС 12% : 79.71 [17:14:50]line Наличными: 750.00 [17:14:50]line Безнал.: 0.00 [17:14:50]line Место: АЗС № 133 "Партнер Нефть" [17:14:50]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:14:50]line СНО: Общий режим [17:14:50]line Чек 321 22.10.2024 17:14 [17:14:50]line Смена: 535 ФФД: 1.0 [17:14:50]line ЗНМ: 0300000091 [17:14:50]line РНМ: 0000000000091685 [17:14:50]line Версия ККМ: 001 [17:14:50]line ФМ: 0000000000871839 [17:14:50]line ФД: 228357 [17:14:50]line ФПД: 36755321810084 [17:14:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171454&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228357&fm=36755321810084&tin=02508201610067®Number=0000000000091685&sum=75000 [17:14:50]written 0, free lines is 4095 [17:14:51]OFD Sender: Processing packet 228357 [packets to send 38, broken 37] [17:14:51]ProducePacketName [17:14:51]name=ofd_packets/00228357 [17:14:51]OFD Sender: To server: pG, [17:14:51]CommunicateWithHost lk.salyk.kg:30040 [17:14:51]ConnectInit lk.salyk.kg [17:14:51]Connected sock=10 [17:14:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 9C 47 07 01 2B 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 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 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 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 8E DD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 05 7C 03 00 35 04 06 00 21 6D C3 E6 6C A4 6C 0E ED 03 A2 A2 8E D2 [17:14:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 F0 87 47 00 D0 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 05 7C 03 00 F4 03 04 00 85 88 17 67 B6 04 01 00 00 80 A3 AE C3 A4 0F 2C 1B [17:14:51]CommunicateWithHost err = 0 [17:14:51]CheckOFDResponse [17:14:51]1017 (14) - 77093643461234 [17:14:51]1041 (16) - 0000000000871839 [17:14:51]1040 (4) - 228357 [17:14:51]1012 (4) - 22.10.2024 11:12 [17:14:51]1206 (1) - 0 [17:14:51]OFD Sender: Remove packet 228357 [17:14:51]ProducePacketName [17:14:51]name=ofd_packets/00228357 [17:14:51]NVStorageDeleteData [17:14:51]Write to MH i2c: 01 00 00 70 5F CF [17:14:51]Write i2c OK [17:14:51]MH_I2C_Read... [17:14:51]Read from MH i2c: 01 [17:14:51]MH_I2C_Read... [17:14:51]Read from MH i2c: 01 07 00 [17:14:51]MH_I2C_Read... [17:14:51]Read from MH i2c: 01 07 00 70 5F 00 00 00 00 00 B7 0C 99 [17:14:51]RasterBufferAndPrint [17:14:51]line [17:14:51]line [17:14:51]line [17:14:51]line [17:14:51]line [17:14:51]written 0, free lines is 3261 [17:14:51]MH_Cut [17:14:51]Write to MH i2c: D1 01 00 77 5F 01 A8 [17:14:51]Write i2c OK [17:14:51]MH_I2C_Read... [17:14:51]Read from MH i2c: D1 [17:14:51]MH_I2C_Read... [17:14:51]Read from MH i2c: D1 01 00 [17:14:51]MH_I2C_Read... [17:14:51]Read from MH i2c: D1 01 00 77 5F 00 A7 [17:14:51]Write to MH i2c: 01 00 00 78 5F D7 [17:14:51]Write i2c OK [17:14:51]MH_I2C_Read... [17:14:51]OFD Sender: No OFD packet to send [17:14:52]*** Cut start [17:14:52]*** Partial cut [17:14:52]*** CUTSNS_PIN = 1 [17:14:52]*** CUTSNS_PIN = 0 [17:14:52]*** Brake cut motor [17:14:52]Read from MH i2c: 01 [17:14:52]MH_I2C_Read... [17:14:52]*** Stop cut motor [17:14:52]*** Cut end [17:14:52]Read from MH i2c: 01 07 00 [17:14:52]MH_I2C_Read... [17:14:52]Read from MH i2c: 01 07 00 78 5F 00 00 00 00 00 FF 0F EC [17:14:52]process_action close_receipt done [17:14:52]requested_data is exist [17:14:52]produce_requested_data [17:14:52]requested_item fm.sn is exist - process it [17:14:52]wFMCommunicate request_size=4 [17:14:52]MH_SAM_APDU [17:14:52]CAPDU: 80 11 00 00 [17:14:52]Write to MH i2c: E2 08 00 79 5F 80 11 00 00 00 00 00 00 52 [17:14:52]Write i2c OK [17:14:52]MH_I2C_Read... [17:14:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:53]Read from MH i2c: E2 [17:14:53]MH_I2C_Read... [17:14:53]Read from MH i2c: E2 17 00 [17:14:53]MH_I2C_Read... [17:14:53]Read from MH i2c: E2 17 00 79 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A9 [17:14:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:14:53]wFMCommunicate OK [17:14:53]requested_item fd.num is exist - process it [17:14:53]SAM_PROTO_GetFieldsCounters [17:14:53]wFMCommunicate request_size=4 [17:14:53]MH_SAM_APDU [17:14:53]CAPDU: 80 13 00 00 [17:14:53]Write to MH i2c: E2 08 00 7A 5F 80 13 00 00 00 00 00 00 55 [17:14:53]Write i2c OK [17:14:53]MH_I2C_Read... [17:14:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:53]Read from MH i2c: E2 [17:14:53]MH_I2C_Read... [17:14:53]Read from MH i2c: E2 62 00 [17:14:53]MH_I2C_Read... [17:14:53]Read from MH i2c: E2 62 00 7A 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 05 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 E1 [17:14:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 05 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:14:53]wFMCommunicate OK [17:14:53]SAM_PROTO_GetFieldsCounters done [17:14:53]requested_item shift.num is exist - process it [17:14:53]requested_item shift.opened is exist - process it [17:14:53]req_shift_opened [17:14:53]FM_GetShiftState [17:14:53]SAM_PROTO_GetShiftState [17:14:53]wFMCommunicate request_size=4 [17:14:53]MH_SAM_APDU [17:14:53]CAPDU: 80 13 01 00 [17:14:53]Write to MH i2c: E2 08 00 7B 5F 80 13 01 00 00 00 00 00 57 [17:14:53]Write i2c OK [17:14:53]MH_I2C_Read... [17:14:53]Read from MH i2c: E2 [17:14:53]MH_I2C_Read... [17:14:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:53]Read from MH i2c: E2 0E 00 [17:14:53]MH_I2C_Read... [17:14:53]Read from MH i2c: E2 0E 00 7B 5F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 1E [17:14:53]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:14:53]wFMCommunicate OK [17:14:53]SAM_PROTO_GetShiftState done [17:14:53]FM_GetShiftState done [17:14:53]req_shift_opened done [17:14:53]requested_item shift.open_date is exist - process it [17:14:53]req_shift_open_date [17:14:53]req_shift_open_date done [17:14:53]produce_requested_data done [17:14:53]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228357,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [17:14:53]process_action_free close_receipt [17:14:53]json_value_free [17:14:53]json_value_free done [17:14:53]process_json_proto returns [17:14:53]Send response to host [17:14:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228357,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [17:14:53]free response buf [17:14:53]execute_script done [17:14:53]execute_script returns [17:14:53]free content buf [17:14:53]Sock 7.Close socket [17:14:53]Sock 7.Thread stoped [17:14:56]OFD Sender: No OFD packet to send [17:15:01]OFD Sender: No OFD packet to send [17:15:06]OFD Sender: No OFD packet to send [17:15:11]OFD Sender: No OFD packet to send [17:15:16]OFD Sender: No OFD packet to send [17:15:21]OFD Sender: No OFD packet to send [17:15:26]OFD Sender: No OFD packet to send [17:15:31]OFD Sender: No OFD packet to send [17:15:36]OFD Sender: No OFD packet to send [17:15:41]OFD Sender: No OFD packet to send [17:15:46]OFD Sender: No OFD packet to send [17:15:51]OFD Sender: No OFD packet to send [17:15:56]OFD Sender: No OFD packet to send [17:16:01]OFD Sender: No OFD packet to send [17:16:06]OFD Sender: No OFD packet to send [17:16:11]OFD Sender: No OFD packet to send [17:16:16]OFD Sender: No OFD packet to send [17:16:21]OFD Sender: No OFD packet to send [17:16:26]OFD Sender: No OFD packet to send [17:16:31]OFD Sender: No OFD packet to send [17:16:36]OFD Sender: No OFD packet to send [17:16:41]OFD Sender: No OFD packet to send [17:16:46]OFD Sender: No OFD packet to send [17:16:51]OFD Sender: No OFD packet to send [17:16:56]OFD Sender: No OFD packet to send [17:17:01]OFD Sender: No OFD packet to send [17:17:06]OFD Sender: No OFD packet to send [17:17:11]OFD Sender: No OFD packet to send [17:17:16]accept exits with 9 [17:17:16]New connection [17:17:16]New thread 3067137380 created [17:17:16]Thread 3066994020 joined [17:17:16]Waiting for new connection... [17:17:16] Sock 9.Parse request [17:17:16]Sock 9.Check first char [17:17:16]Sock 9.First char is OK [17:17:16]request: POST /json_proto HTTP/1.0 [17:17:16]Method: POST [17:17:16]URL: /json_proto [17:17:16]Method is POST - this is cgi request [17:17:16]url: /json_proto [17:17:16]query_string will be loaded in cgi processing [17:17:16]execute_cgi json_proto POST (null) [17:17:16]execute_cgi path=json_proto method=POST [17:17:16]POST find Content-Length [17:17:16]Host: 172.17.44.195:8080 [17:17:16]Content-Length: 678 [17:17:16]Content-Type: application/json [17:17:16] [17:17:16]POST finish read [17:17:16]Found Content-Length = 678 [17:17:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964863", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:17:16]execute_script... [17: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)1964863", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:17:16]POST & json_proto [17:17:16]process_json_proto [17:17:16]json parsed OK: [17:17:16]protocol is kg_v1.0 [17:17:16]action value=close_receipt [17:17:16]process_action close_receipt [17:17:16]cmd_close_receipt [17:17:16]MH_GetDate [17:17:16]Write to MH i2c: F0 00 00 7C 5F CA [17:17:16]Write i2c OK [17:17:16]MH_I2C_Read... [17:17:16]Read from MH i2c: F0 [17:17:16]MH_I2C_Read... [17:17:16]Read from MH i2c: F0 09 00 [17:17:16]MH_I2C_Read... [17:17:16]Read from MH i2c: F0 09 00 7C 5F 00 21 DE 17 67 82 C9 CF 66 D0 [17:17:16]GetLastDocTimeStamp 1729617294 [17:17:16]current date 1729617441 [17:17:16]FM_GetShiftState [17:17:16]SAM_PROTO_GetShiftState [17:17:16]wFMCommunicate request_size=4 [17:17:16]MH_SAM_APDU [17:17:16]CAPDU: 80 13 01 00 [17:17:16]Write to MH i2c: E2 08 00 7D 5F 80 13 01 00 00 00 00 00 59 [17:17:16]Write i2c OK [17:17:16]MH_I2C_Read... [17:17:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:16]Read from MH i2c: E2 [17:17:16]MH_I2C_Read... [17:17:16]Read from MH i2c: E2 0E 00 [17:17:16]MH_I2C_Read... [17:17:16]Read from MH i2c: E2 0E 00 7D 5F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 20 [17:17:16]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:17:16]wFMCommunicate OK [17:17:16]SAM_PROTO_GetShiftState done [17:17:16]FM_GetShiftState done [17:17:16]opened in 1729555538 [17:17:16]opened+sec_in_day 1729641938 [17:17:16]quantity*price = 50041 [17:17:16]sum+1 = 50042 [17:17:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 322 22.10.2024 17:17 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228358 ФПД: 169197265698089 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171722&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228358&fm=169197265698089&tin=02508201610067®Number=0000000000091685&sum=50000 [17:17:18]StoreToDocumentArchive [17:17:18]shift 535 fd 228358 [17:17:18]save to /storage/0535/doc_00228358 [17:17:18]save last doc name /storage/0535/doc_00228358 to /storage/kkm_last_doc_name [17:17:18]save OK [17:17:18]Clear old archive folders... [17:17:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:17:18]tlvbuf is 00A859B0 [17:17:18]SAM_PROTO_ClearQueue [17:17:18]wFMCommunicate request_size=4 [17:17:18]MH_SAM_APDU [17:17:18]CAPDU: 80 09 00 00 [17:17:18]Write to MH i2c: E2 08 00 8A 5F 80 09 00 00 00 00 00 00 5B [17:17:18]Write i2c OK [17:17:18]MH_I2C_Read... [17:17:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:17:18]Read from MH i2c: E2 [17:17:18]MH_I2C_Read... [17:17:18]Read from MH i2c: E2 03 00 [17:17:18]MH_I2C_Read... [17:17:18]Read from MH i2c: E2 03 00 8A 5F 00 90 00 5D [17:17:18]RAPDU: 90 00 [17:17:18]wFMCommunicate OK [17:17:18]SAM_PROTO_ClearQueue done [17:17:18]KKMCreateOFDPacket [17:17:18]OFDProtocolAddRootSTLVToBuf [17:17:18]FM_MakeSignedData [17:17:18]FM_MakeSignedData [17:17:18]SAM_PROTO_SignData [17:17:18]wFMCommunicate request_size=4 [17:17:18]MH_SAM_APDU [17:17:18]CAPDU: 80 0D 01 02 [17:17:18]Write to MH i2c: E2 08 00 8B 5F 80 0D 01 02 00 00 00 00 63 [17:17:18]Write i2c OK [17:17:18]MH_I2C_Read... [17:17:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:17:18]Read from MH i2c: E2 [17:17:18]MH_I2C_Read... [17:17:18]Read from MH i2c: E2 03 00 [17:17:18]MH_I2C_Read... [17:17:18]Read from MH i2c: E2 03 00 8B 5F 00 90 00 5E [17:17:18]RAPDU: 90 00 [17:17:18]wFMCommunicate OK [17:17:18]wFMCommunicate request_size=255 [17:17:18]MH_SAM_APDU [17:17: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 22 DE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 06 7C 03 00 35 04 06 00 99 [17:17:18]Write to MH i2c: E2 02 01 8C 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 22 DE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 06 7C 03 00 35 04 06 00 99 00 00 F2 [17:17:18]Write i2c OK [17:17:18]MH_I2C_Read... [17:17:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:18]Read from MH i2c: E2 [17:17:18]MH_I2C_Read... [17:17:18]Read from MH i2c: E2 03 00 [17:17:18]MH_I2C_Read... [17:17:18]Read from MH i2c: E2 03 00 8C 5F 00 90 00 5F [17:17:18]RAPDU: 90 00 [17:17:18]wFMCommunicate OK [17:17:18]wFMCommunicate request_size=10 [17:17:18]MH_SAM_APDU [17:17:18]CAPDU: 80 0D 02 02 05 E2 4E EB 3D 29 [17:17:18]Write to MH i2c: E2 0D 00 8D 5F 80 0D 02 02 05 00 E2 4E EB 3D 29 00 00 F1 [17:17:18]Write i2c OK [17:17:18]MH_I2C_Read... [17:17:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:18]Read from MH i2c: E2 [17:17:18]MH_I2C_Read... [17:17:18]Read from MH i2c: E2 03 00 [17:17:18]MH_I2C_Read... [17:17:18]Read from MH i2c: E2 03 00 8D 5F 00 90 00 60 [17:17:18]RAPDU: 90 00 [17:17:18]wFMCommunicate OK [17:17:18]wFMCommunicate request_size=4 [17:17:18]MH_SAM_APDU [17:17:18]CAPDU: 80 0D 03 02 [17:17:18]Write to MH i2c: E2 08 00 8E 5F 80 0D 03 02 00 00 00 00 68 [17:17:18]Write i2c OK [17:17:18]MH_I2C_Read... [17:17:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:17:18]Read from MH i2c: E2 [17:17:18]MH_I2C_Read... [17:17:18]Read from MH i2c: E2 0B 00 [17:17:18]MH_I2C_Read... [17:17:18]Read from MH i2c: E2 0B 00 8E 5F 00 EF 00 B0 F8 8A 85 F1 AA 90 00 AA [17:17:18]RAPDU: EF 00 B0 F8 8A 85 F1 AA 90 00 [17:17:18]wFMCommunicate OK [17:17:18]SAM_PROTO_SignData done [17:17:18]FM_MakeSignedData done [17:17:18]CreateOFDProtocolMessage [17:17:18]wFMCommunicate request_size=4 [17:17:18]MH_SAM_APDU [17:17:18]CAPDU: 80 11 00 00 [17:17:18]Write to MH i2c: E2 08 00 8F 5F 80 11 00 00 00 00 00 00 68 [17:17:18]Write i2c OK [17:17:18]MH_I2C_Read... [17:17:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:18]Read from MH i2c: E2 [17:17:18]MH_I2C_Read... [17:17:18]Read from MH i2c: E2 17 00 [17:17:18]MH_I2C_Read... [17:17:18]Read from MH i2c: E2 17 00 8F 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BF [17:17:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:17:18]wFMCommunicate OK [17:17:18]CreateOFDProtocolMessage done [17:17:18]OFDSenderStorePacket 228358 [17:17:18]StoreOFDPacket docnum=228358 [17:17:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 7F 2C 07 01 D1 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 22 DE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 06 7C 03 00 35 04 06 00 99 E2 4E EB 3D 29 EF 00 B0 F8 8A 85 F1 AA [17:17:18]CheckFolder [17:17:18]dirname=/storage/ofd_packets [17:17:18]CheckFolder done [17:17:18]ProducePacketName [17:17:18]name=ofd_packets/00228358 [17:17:18]NVStorageSaveData ofd_packets/00228358 [17:17:18]File name is /storage/ofd_packets/00228358 [17:17:18]Write 301 bytes [17:17:18]NVStorageSaveData done [17:17:18]OFDSenderStorePacket done [17:17:18]KKMCreateOFDPacket done [17:17:18]NVStorageSaveData kkm_last_timestamp [17:17:18]File name is /storage/kkm_last_timestamp [17:17:18]Write 4 bytes [17:17:18]NVStorageSaveData done [17:17:18]ExternCall_PrintAddStr [17:17:18]wPrintStart [17:17:18]Write to MH i2c: 01 00 00 90 5F EF [17:17:18]Write i2c OK [17:17:18]MH_I2C_Read... [17:17:18]Read from MH i2c: 01 [17:17:18]MH_I2C_Read... [17:17:18]Read from MH i2c: 01 07 00 [17:17:18]MH_I2C_Read... [17:17:18]Read from MH i2c: 01 07 00 90 5F 00 00 00 00 00 FF 0F 04 [17:17:18]RasterBufferAndPrint [17:17:18]line Счет N : (1)1964863 [17:17:18]line ИНН: 02508201610067 [17:17:18]line Контрольно-Кассовый Чек [17:17:18]line ПРОДАЖА [17:17:18]line ТРК (МРК, ГНК) : 53 [17:17:18]line Товар: 2710124130 [17:17:18]line Аи-92-К-5 [17:17:18]line 7.480 * 66.90 [17:17:18]line = 500.41 [17:17:18]line НДС 12% НСП 1% [17:17:18]line > о реализуемом товаре [17:17:18]line ОКРУГЛЕНИЕ: -0.41 [17:17:18]line ИТОГО: 500.00 [17:17:18]line Внесено: 500.00 [17:17:18]line СДАЧА: 0.00 [17:17:18]line НСП 1% : 4.43 [17:17:18]line НДС 12% : 53.14 [17:17:18]line Наличными: 500.00 [17:17:18]line Безнал.: 0.00 [17:17:18]line Место: АЗС № 133 "Партнер Нефть" [17:17:18]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:17:18]line СНО: Общий режим [17:17:18]line Чек 322 22.10.2024 17:17 [17:17:18]line Смена: 535 ФФД: 1.0 [17:17:18]line ЗНМ: 0300000091 [17:17:18]line РНМ: 0000000000091685 [17:17:18]line Версия ККМ: 001 [17:17:18]line ФМ: 0000000000871839 [17:17:18]line ФД: 228358 [17:17:18]line ФПД: 169197265698089 [17:17:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171722&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228358&fm=169197265698089&tin=02508201610067®Number=0000000000091685&sum=50000 [17:17:18]OFD Sender: Processing packet 228358 [packets to send 38, broken 37] [17:17:18]ProducePacketName [17:17:18]name=ofd_packets/00228358 [17:17:18]OFD Sender: To server: pG, [17:17:18]CommunicateWithHost lk.salyk.kg:30040 [17:17:18]ConnectInit lk.salyk.kg [17:17:18]written 0, free lines is 4095 [17:17:19]Connected sock=10 [17:17:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 7F 2C 07 01 D1 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 22 DE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 06 7C 03 00 35 04 06 00 99 E2 4E EB 3D 29 EF 00 B0 F8 8A 85 F1 AA [17:17:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 47 55 47 00 DA AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 06 7C 03 00 F4 03 04 00 19 89 17 67 B6 04 01 00 00 4F 99 EE 4F A5 31 DB 40 [17:17:19]CommunicateWithHost err = 0 [17:17:19]CheckOFDResponse [17:17:19]1017 (14) - 77093643461234 [17:17:19]1041 (16) - 0000000000871839 [17:17:19]1040 (4) - 228358 [17:17:19]1012 (4) - 22.10.2024 11:14 [17:17:19]1206 (1) - 0 [17:17:19]OFD Sender: Remove packet 228358 [17:17:19]ProducePacketName [17:17:19]name=ofd_packets/00228358 [17:17:19]NVStorageDeleteData [17:17:19]Write to MH i2c: 01 00 00 BA 5F 19 [17:17:19]Write i2c OK [17:17:19]MH_I2C_Read... [17:17:19]Read from MH i2c: 01 [17:17:19]MH_I2C_Read... [17:17:19]Read from MH i2c: 01 07 00 [17:17:19]MH_I2C_Read... [17:17:19]Read from MH i2c: 01 07 00 BA 5F 00 00 00 00 00 B8 0C E4 [17:17:19]RasterBufferAndPrint [17:17:19]line [17:17:19]line [17:17:19]line [17:17:19]line [17:17:19]line [17:17:19]written 0, free lines is 3261 [17:17:19]MH_Cut [17:17:19]Write to MH i2c: D1 01 00 C1 5F 01 F2 [17:17:19]Write i2c OK [17:17:19]MH_I2C_Read... [17:17:19]Read from MH i2c: D1 [17:17:19]MH_I2C_Read... [17:17:19]Read from MH i2c: D1 01 00 [17:17:19]MH_I2C_Read... [17:17:19]Read from MH i2c: D1 01 00 C1 5F 00 F1 [17:17:19]Write to MH i2c: 01 00 00 C2 5F 21 [17:17:19]Write i2c OK [17:17:19]MH_I2C_Read... [17:17:19]OFD Sender: No OFD packet to send [17:17:20]*** Cut start [17:17:20]*** Partial cut [17:17:20]*** CUTSNS_PIN = 1 [17:17:20]*** CUTSNS_PIN = 0 [17:17:20]*** Brake cut motor [17:17:20]Read from MH i2c: 01 [17:17:20]MH_I2C_Read... [17:17:20]*** Stop cut motor [17:17:20]*** Cut end [17:17:20]Read from MH i2c: 01 07 00 [17:17:20]MH_I2C_Read... [17:17:20]Read from MH i2c: 01 07 00 C2 5F 00 00 00 00 00 FF 0F 36 [17:17:20]process_action close_receipt done [17:17:20]requested_data is exist [17:17:20]produce_requested_data [17:17:20]requested_item fm.sn is exist - process it [17:17:20]wFMCommunicate request_size=4 [17:17:20]MH_SAM_APDU [17:17:20]CAPDU: 80 11 00 00 [17:17:20]Write to MH i2c: E2 08 00 C3 5F 80 11 00 00 00 00 00 00 9C [17:17:20]Write i2c OK [17:17:20]MH_I2C_Read... [17:17:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:20]Read from MH i2c: E2 [17:17:20]MH_I2C_Read... [17:17:20]Read from MH i2c: E2 17 00 [17:17:20]MH_I2C_Read... [17:17:20]Read from MH i2c: E2 17 00 C3 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F3 [17:17:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:17:20]wFMCommunicate OK [17:17:20]requested_item fd.num is exist - process it [17:17:20]SAM_PROTO_GetFieldsCounters [17:17:20]wFMCommunicate request_size=4 [17:17:20]MH_SAM_APDU [17:17:20]CAPDU: 80 13 00 00 [17:17:20]Write to MH i2c: E2 08 00 C4 5F 80 13 00 00 00 00 00 00 9F [17:17:20]Write i2c OK [17:17:20]MH_I2C_Read... [17:17:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:17:21]Read from MH i2c: E2 [17:17:21]MH_I2C_Read... [17:17:21]Read from MH i2c: E2 62 00 [17:17:21]MH_I2C_Read... [17:17:21]Read from MH i2c: E2 62 00 C4 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 06 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 2F [17:17:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 06 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:17:21]wFMCommunicate OK [17:17:21]SAM_PROTO_GetFieldsCounters done [17:17:21]requested_item shift.num is exist - process it [17:17:21]requested_item shift.opened is exist - process it [17:17:21]req_shift_opened [17:17:21]FM_GetShiftState [17:17:21]SAM_PROTO_GetShiftState [17:17:21]wFMCommunicate request_size=4 [17:17:21]MH_SAM_APDU [17:17:21]CAPDU: 80 13 01 00 [17:17:21]Write to MH i2c: E2 08 00 C5 5F 80 13 01 00 00 00 00 00 A1 [17:17:21]Write i2c OK [17:17:21]MH_I2C_Read... [17:17:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:21]Read from MH i2c: E2 [17:17:21]MH_I2C_Read... [17:17:21]Read from MH i2c: E2 0E 00 [17:17:21]MH_I2C_Read... [17:17:21]Read from MH i2c: E2 0E 00 C5 5F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 68 [17:17:21]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:17:21]wFMCommunicate OK [17:17:21]SAM_PROTO_GetShiftState done [17:17:21]FM_GetShiftState done [17:17:21]req_shift_opened done [17:17:21]requested_item shift.open_date is exist - process it [17:17:21]req_shift_open_date [17:17:21]req_shift_open_date done [17:17:21]produce_requested_data done [17:17:21]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228358,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [17:17:21]process_action_free close_receipt [17:17:21]json_value_free [17:17:21]json_value_free done [17:17:21]process_json_proto returns [17:17:21]Send response to host [17:17:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228358,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [17:17:21]free response buf [17:17:21]execute_script done [17:17:21]execute_script returns [17:17:21]free content buf [17:17:21]Sock 9.Close socket [17:17:21]Sock 9.Thread stoped [17:17:24]OFD Sender: No OFD packet to send [17:17:29]OFD Sender: No OFD packet to send [17:17:34]OFD Sender: No OFD packet to send [17:17:39]OFD Sender: No OFD packet to send [17:17:44]OFD Sender: No OFD packet to send [17:17:49]OFD Sender: No OFD packet to send [17:17:54]OFD Sender: No OFD packet to send [17:17:59]OFD Sender: No OFD packet to send [17:18:04]OFD Sender: No OFD packet to send [17:18:09]OFD Sender: No OFD packet to send [17:18:14]OFD Sender: No OFD packet to send [17:18:19]OFD Sender: No OFD packet to send [17:18:24]OFD Sender: No OFD packet to send [17:18:29]OFD Sender: No OFD packet to send [17:18:34]OFD Sender: No OFD packet to send [17:18:39]OFD Sender: No OFD packet to send [17:18:44]OFD Sender: No OFD packet to send [17:18:49]OFD Sender: No OFD packet to send [17:18:54]OFD Sender: No OFD packet to send [17:18:59]OFD Sender: No OFD packet to send [17:19:01]accept exits with 7 [17:19:01]New connection [17:19:01]New thread 3066994020 created [17:19:01]Thread 3067137380 joined [17:19:01]Waiting for new connection... [17:19:01] Sock 7.Parse request [17:19:01]Sock 7.Check first char [17:19:01]Sock 7.First char is OK [17:19:01]request: POST /json_proto HTTP/1.0 [17:19:01]Method: POST [17:19:01]URL: /json_proto [17:19:01]Method is POST - this is cgi request [17:19:01]url: /json_proto [17:19:01]query_string will be loaded in cgi processing [17:19:01]execute_cgi json_proto POST (null) [17:19:01]execute_cgi path=json_proto method=POST [17:19:01]POST find Content-Length [17:19:01]Host: 172.17.44.195:8080 [17:19:01]Content-Length: 683 [17:19:01]Content-Type: application/json [17:19:01] [17:19:01]POST finish read [17:19:01]Found Content-Length = 683 [17:19:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 25.430, "sum" : 1701.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1701.00, "payments": [ { "type": 0, "sum" : 1701.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:01]execute_script... [17:19: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)1964864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 25.430, "sum" : 1701.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1701.00, "payments": [ { "type": 0, "sum" : 1701.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:01]POST & json_proto [17:19:01]process_json_proto [17:19:01]json parsed OK: [17:19:01]protocol is kg_v1.0 [17:19:01]action value=close_receipt [17:19:01]process_action close_receipt [17:19:01]cmd_close_receipt [17:19:01]MH_GetDate [17:19:01]Write to MH i2c: F0 00 00 C6 5F 14 [17:19:01]Write i2c OK [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: F0 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: F0 09 00 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: F0 09 00 C6 5F 00 8A DE 17 67 82 C9 CF 66 83 [17:19:01]GetLastDocTimeStamp 1729617442 [17:19:01]current date 1729617546 [17:19:01]FM_GetShiftState [17:19:01]SAM_PROTO_GetShiftState [17:19:01]wFMCommunicate request_size=4 [17:19:01]MH_SAM_APDU [17:19:01]CAPDU: 80 13 01 00 [17:19:01]Write to MH i2c: E2 08 00 C7 5F 80 13 01 00 00 00 00 00 A3 [17:19:01]Write i2c OK [17:19:01]MH_I2C_Read... [17:19:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:01]Read from MH i2c: E2 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 0E 00 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 0E 00 C7 5F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 6A [17:19:01]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:19:01]wFMCommunicate OK [17:19:01]SAM_PROTO_GetShiftState done [17:19:01]FM_GetShiftState done [17:19:01]opened in 1729555538 [17:19:01]opened+sec_in_day 1729641938 [17:19:01]quantity*price = 170126 [17:19:01]sum+1 = 170128 [17:19:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1701.00 Внесено: 2000.00 СДАЧА: 299.00 НСП 1% : 15.05 НДС 12% : 180.67 Наличными: 1701.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 323 22.10.2024 17:19 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228359 ФПД: 114340332349137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171906&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228359&fm=114340332349137&tin=02508201610067®Number=0000000000091685&sum=170100 [17:19:02]StoreToDocumentArchive [17:19:02]shift 535 fd 228359 [17:19:02]save to /storage/0535/doc_00228359 [17:19:02]save last doc name /storage/0535/doc_00228359 to /storage/kkm_last_doc_name [17:19:02]save OK [17:19:02]Clear old archive folders... [17:19:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:19:02]tlvbuf is 00A746E0 [17:19:02]SAM_PROTO_ClearQueue [17:19:02]wFMCommunicate request_size=4 [17:19:02]MH_SAM_APDU [17:19:02]CAPDU: 80 09 00 00 [17:19:02]Write to MH i2c: E2 08 00 D4 5F 80 09 00 00 00 00 00 00 A5 [17:19:02]Write i2c OK [17:19:02]MH_I2C_Read... [17:19:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:02]Read from MH i2c: E2 [17:19:02]MH_I2C_Read... [17:19:02]Read from MH i2c: E2 03 00 [17:19:02]MH_I2C_Read... [17:19:02]Read from MH i2c: E2 03 00 D4 5F 00 90 00 A7 [17:19:02]RAPDU: 90 00 [17:19:02]wFMCommunicate OK [17:19:02]SAM_PROTO_ClearQueue done [17:19:02]KKMCreateOFDPacket [17:19:02]OFDProtocolAddRootSTLVToBuf [17:19:02]FM_MakeSignedData [17:19:02]FM_MakeSignedData [17:19:02]SAM_PROTO_SignData [17:19:02]wFMCommunicate request_size=4 [17:19:02]MH_SAM_APDU [17:19:02]CAPDU: 80 0D 01 02 [17:19:02]Write to MH i2c: E2 08 00 D5 5F 80 0D 01 02 00 00 00 00 AD [17:19:02]Write i2c OK [17:19:02]MH_I2C_Read... [17:19:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:02]Read from MH i2c: E2 [17:19:02]MH_I2C_Read... [17:19:02]Read from MH i2c: E2 03 00 [17:19:02]MH_I2C_Read... [17:19:02]Read from MH i2c: E2 03 00 D5 5F 00 90 00 A8 [17:19:02]RAPDU: 90 00 [17:19:02]wFMCommunicate OK [17:19:02]wFMCommunicate request_size=255 [17:19:02]MH_SAM_APDU [17:19: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 56 63 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8F 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 93 46 00 00 00 00 07 04 06 00 74 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 43 01 00 00 F4 03 04 00 8A DE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 07 7C 03 00 35 04 06 00 67 [17:19:02]Write to MH i2c: E2 02 01 D6 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 63 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8F 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 93 46 00 00 00 00 07 04 06 00 74 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 43 01 00 00 F4 03 04 00 8A DE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 07 7C 03 00 35 04 06 00 67 00 00 E8 [17:19:02]Write i2c OK [17:19:02]MH_I2C_Read... [17:19:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:02]Read from MH i2c: E2 [17:19:02]MH_I2C_Read... [17:19:02]Read from MH i2c: E2 03 00 [17:19:02]MH_I2C_Read... [17:19:02]Read from MH i2c: E2 03 00 D6 5F 00 90 00 A9 [17:19:02]RAPDU: 90 00 [17:19:02]wFMCommunicate OK [17:19:02]wFMCommunicate request_size=10 [17:19:02]MH_SAM_APDU [17:19:02]CAPDU: 80 0D 02 02 05 FD EE E4 A6 D1 [17:19:02]Write to MH i2c: E2 0D 00 D7 5F 80 0D 02 02 05 00 FD EE E4 A6 D1 00 00 00 [17:19:02]Write i2c OK [17:19:02]MH_I2C_Read... [17:19:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:03]Read from MH i2c: E2 [17:19:03]MH_I2C_Read... [17:19:03]Read from MH i2c: E2 03 00 [17:19:03]MH_I2C_Read... [17:19:03]Read from MH i2c: E2 03 00 D7 5F 00 90 00 AA [17:19:03]RAPDU: 90 00 [17:19:03]wFMCommunicate OK [17:19:03]wFMCommunicate request_size=4 [17:19:03]MH_SAM_APDU [17:19:03]CAPDU: 80 0D 03 02 [17:19:03]Write to MH i2c: E2 08 00 D8 5F 80 0D 03 02 00 00 00 00 B2 [17:19:03]Write i2c OK [17:19:03]MH_I2C_Read... [17:19:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:03]Read from MH i2c: E2 [17:19:03]MH_I2C_Read... [17:19:03]Read from MH i2c: E2 0B 00 [17:19:03]MH_I2C_Read... [17:19:03]Read from MH i2c: E2 0B 00 D8 5F 00 D2 C1 DD DB B2 A0 B9 73 90 00 7C [17:19:03]RAPDU: D2 C1 DD DB B2 A0 B9 73 90 00 [17:19:03]wFMCommunicate OK [17:19:03]SAM_PROTO_SignData done [17:19:03]FM_MakeSignedData done [17:19:03]CreateOFDProtocolMessage [17:19:03]wFMCommunicate request_size=4 [17:19:03]MH_SAM_APDU [17:19:03]CAPDU: 80 11 00 00 [17:19:03]Write to MH i2c: E2 08 00 D9 5F 80 11 00 00 00 00 00 00 B2 [17:19:03]Write i2c OK [17:19:03]MH_I2C_Read... [17:19:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:03]Read from MH i2c: E2 [17:19:03]MH_I2C_Read... [17:19:03]Read from MH i2c: E2 17 00 [17:19:03]MH_I2C_Read... [17:19:03]Read from MH i2c: E2 17 00 D9 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 09 [17:19:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:19:03]wFMCommunicate OK [17:19:03]CreateOFDProtocolMessage done [17:19:03]OFDSenderStorePacket 228359 [17:19:03]StoreOFDPacket docnum=228359 [17:19:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 75 8C 07 01 AD 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 63 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8F 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 93 46 00 00 00 00 07 04 06 00 74 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 43 01 00 00 F4 03 04 00 8A DE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 07 7C 03 00 35 04 06 00 67 FD EE E4 A6 D1 D2 C1 DD DB B2 A0 B9 73 [17:19:03]CheckFolder [17:19:03]dirname=/storage/ofd_packets [17:19:03]CheckFolder done [17:19:03]ProducePacketName [17:19:03]name=ofd_packets/00228359 [17:19:03]NVStorageSaveData ofd_packets/00228359 [17:19:03]File name is /storage/ofd_packets/00228359 [17:19:03]Write 301 bytes [17:19:03]NVStorageSaveData done [17:19:03]OFDSenderStorePacket done [17:19:03]KKMCreateOFDPacket done [17:19:03]NVStorageSaveData kkm_last_timestamp [17:19:03]File name is /storage/kkm_last_timestamp [17:19:03]Write 4 bytes [17:19:03]NVStorageSaveData done [17:19:03]ExternCall_PrintAddStr [17:19:03]wPrintStart [17:19:03]Write to MH i2c: 01 00 00 DA 5F 39 [17:19:03]Write i2c OK [17:19:03]MH_I2C_Read... [17:19:03]Read from MH i2c: 01 [17:19:03]MH_I2C_Read... [17:19:03]Read from MH i2c: 01 07 00 [17:19:03]MH_I2C_Read... [17:19:03]Read from MH i2c: 01 07 00 DA 5F 00 00 00 00 00 FF 0F 4E [17:19:03]RasterBufferAndPrint [17:19:03]line Счет N : (1)1964864 [17:19:03]line ИНН: 02508201610067 [17:19:03]line Контрольно-Кассовый Чек [17:19:03]line ПРОДАЖА [17:19:03]line ТРК (МРК, ГНК) : 33 [17:19:03]line Товар: 2710124130 [17:19:03]line Аи-92-К-5 [17:19:03]line 25.430 * 66.90 [17:19:03]line = 1701.27 [17:19:03]line НДС 12% НСП 1% [17:19:03]line > о реализуемом товаре [17:19:03]line ОКРУГЛЕНИЕ: -0.27 [17:19:03]line ИТОГО: 1701.00 [17:19:03]line Внесено: 2000.00 [17:19:03]line СДАЧА: 299.00 [17:19:03]line НСП 1% : 15.05 [17:19:03]line НДС 12% : 180.67 [17:19:03]line Наличными: 1701.00 [17:19:03]line Безнал.: 0.00 [17:19:03]line Место: АЗС № 133 "Партнер Нефть" [17:19:03]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:19:03]line СНО: Общий режим [17:19:03]line Чек 323 22.10.2024 17:19 [17:19:03]line Смена: 535 ФФД: 1.0 [17:19:03]line ЗНМ: 0300000091 [17:19:03]line РНМ: 0000000000091685 [17:19:03]line Версия ККМ: 001 [17:19:03]line ФМ: 0000000000871839 [17:19:03]line ФД: 228359 [17:19:03]line ФПД: 114340332349137 [17:19:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171906&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228359&fm=114340332349137&tin=02508201610067®Number=0000000000091685&sum=170100 [17:19:03]OFD Sender: Processing packet 228359 [packets to send 38, broken 37] [17:19:03]ProducePacketName [17:19:03]name=ofd_packets/00228359 [17:19:03]OFD Sender: To server: pG, [17:19:03]CommunicateWithHost lk.salyk.kg:30040 [17:19:03]ConnectInit lk.salyk.kg [17:19:03]written 0, free lines is 4095 [17:19:03]Connected sock=9 [17:19:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 75 8C 07 01 AD 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 63 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8F 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 93 46 00 00 00 00 07 04 06 00 74 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 43 01 00 00 F4 03 04 00 8A DE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 07 7C 03 00 35 04 06 00 67 FD EE E4 A6 D1 D2 C1 DD DB B2 A0 B9 73 [17:19:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 C8 49 47 00 9C 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 07 7C 03 00 F4 03 04 00 82 89 17 67 B6 04 01 00 00 8C CB A0 30 84 F7 2C A4 [17:19:03]CommunicateWithHost err = 0 [17:19:03]CheckOFDResponse [17:19:03]1017 (14) - 77093643461234 [17:19:03]1041 (16) - 0000000000871839 [17:19:03]1040 (4) - 228359 [17:19:03]1012 (4) - 22.10.2024 11:16 [17:19:03]1206 (1) - 0 [17:19:03]OFD Sender: Remove packet 228359 [17:19:03]ProducePacketName [17:19:03]name=ofd_packets/00228359 [17:19:03]NVStorageDeleteData [17:19:03]Write to MH i2c: 01 00 00 04 60 64 [17:19:03]Write i2c OK [17:19:03]MH_I2C_Read... [17:19:03]Read from MH i2c: 01 [17:19:03]MH_I2C_Read... [17:19:03]Read from MH i2c: 01 07 00 [17:19:03]MH_I2C_Read... [17:19:03]Read from MH i2c: 01 07 00 04 60 00 00 00 00 00 B7 0C 2E [17:19:03]RasterBufferAndPrint [17:19:03]line [17:19:03]line [17:19:03]line [17:19:03]line [17:19:03]line [17:19:03]written 0, free lines is 3259 [17:19:03]MH_Cut [17:19:03]Write to MH i2c: D1 01 00 0B 60 01 3D [17:19:03]Write i2c OK [17:19:03]MH_I2C_Read... [17:19:03]Read from MH i2c: D1 [17:19:03]MH_I2C_Read... [17:19:03]Read from MH i2c: D1 01 00 [17:19:03]MH_I2C_Read... [17:19:03]Read from MH i2c: D1 01 00 0B 60 00 3C [17:19:03]Write to MH i2c: 01 00 00 0C 60 6C [17:19:03]Write i2c OK [17:19:03]MH_I2C_Read... [17:19:04]OFD Sender: No OFD packet to send [17:19:04]*** Cut start [17:19:04]*** Partial cut [17:19:04]*** CUTSNS_PIN = 1 [17:19:04]*** CUTSNS_PIN = 0 [17:19:05]*** Brake cut motor [17:19:05]Read from MH i2c: 01 [17:19:05]MH_I2C_Read... [17:19:05]*** Stop cut motor [17:19:05]*** Cut end [17:19:05]Read from MH i2c: 01 07 00 [17:19:05]MH_I2C_Read... [17:19:05]Read from MH i2c: 01 07 00 0C 60 00 00 00 00 00 FF 0F 81 [17:19:05]process_action close_receipt done [17:19:05]requested_data is exist [17:19:05]produce_requested_data [17:19:05]requested_item fm.sn is exist - process it [17:19:05]wFMCommunicate request_size=4 [17:19:05]MH_SAM_APDU [17:19:05]CAPDU: 80 11 00 00 [17:19:05]Write to MH i2c: E2 08 00 0D 60 80 11 00 00 00 00 00 00 E7 [17:19:05]Write i2c OK [17:19:05]MH_I2C_Read... [17:19:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:05]Read from MH i2c: E2 [17:19:05]MH_I2C_Read... [17:19:05]Read from MH i2c: E2 17 00 [17:19:05]MH_I2C_Read... [17:19:05]Read from MH i2c: E2 17 00 0D 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 3E [17:19:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:19:05]wFMCommunicate OK [17:19:05]requested_item fd.num is exist - process it [17:19:05]SAM_PROTO_GetFieldsCounters [17:19:05]wFMCommunicate request_size=4 [17:19:05]MH_SAM_APDU [17:19:05]CAPDU: 80 13 00 00 [17:19:05]Write to MH i2c: E2 08 00 0E 60 80 13 00 00 00 00 00 00 EA [17:19:05]Write i2c OK [17:19:05]MH_I2C_Read... [17:19:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:05]Read from MH i2c: E2 [17:19:05]MH_I2C_Read... [17:19:05]Read from MH i2c: E2 62 00 [17:19:05]MH_I2C_Read... [17:19:05]Read from MH i2c: E2 62 00 0E 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 07 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 7E [17:19:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 07 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:05]wFMCommunicate OK [17:19:05]SAM_PROTO_GetFieldsCounters done [17:19:05]requested_item shift.num is exist - process it [17:19:05]requested_item shift.opened is exist - process it [17:19:05]req_shift_opened [17:19:05]FM_GetShiftState [17:19:05]SAM_PROTO_GetShiftState [17:19:05]wFMCommunicate request_size=4 [17:19:05]MH_SAM_APDU [17:19:05]CAPDU: 80 13 01 00 [17:19:05]Write to MH i2c: E2 08 00 0F 60 80 13 01 00 00 00 00 00 EC [17:19:05]Write i2c OK [17:19:05]MH_I2C_Read... [17:19:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:05]Read from MH i2c: E2 [17:19:05]MH_I2C_Read... [17:19:05]Read from MH i2c: E2 0E 00 [17:19:05]MH_I2C_Read... [17:19:05]Read from MH i2c: E2 0E 00 0F 60 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 B3 [17:19:05]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:19:05]wFMCommunicate OK [17:19:05]SAM_PROTO_GetShiftState done [17:19:05]FM_GetShiftState done [17:19:05]req_shift_opened done [17:19:05]requested_item shift.open_date is exist - process it [17:19:05]req_shift_open_date [17:19:05]req_shift_open_date done [17:19:05]produce_requested_data done [17:19:05]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228359,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [17:19:05]process_action_free close_receipt [17:19:05]json_value_free [17:19:05]json_value_free done [17:19:05]process_json_proto returns [17:19:05]Send response to host [17:19:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228359,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [17:19:05]free response buf [17:19:05]execute_script done [17:19:05]execute_script returns [17:19:05]free content buf [17:19:05]Sock 7.Close socket [17:19:05]Sock 7.Thread stoped [17:19:09]OFD Sender: No OFD packet to send [17:19:14]OFD Sender: No OFD packet to send [17:19:19]OFD Sender: No OFD packet to send [17:19:24]OFD Sender: No OFD packet to send [17:19:29]OFD Sender: No OFD packet to send [17:19:34]OFD Sender: No OFD packet to send [17:19:35]accept exits with 10 [17:19:35]New connection [17:19:35]New thread 3067137380 created [17:19:35]Thread 3066994020 joined [17:19:35]Waiting for new connection... [17:19:35] Sock 10.Parse request [17:19:35]Sock 10.Check first char [17:19:35]Sock 10.First char is OK [17:19:35]request: POST /json_proto HTTP/1.0 [17:19:35]Method: POST [17:19:35]URL: /json_proto [17:19:35]Method is POST - this is cgi request [17:19:35]url: /json_proto [17:19:35]query_string will be loaded in cgi processing [17:19:35]execute_cgi json_proto POST (null) [17:19:35]execute_cgi path=json_proto method=POST [17:19:35]POST find Content-Length [17:19:35]Host: 172.17.44.195:8080 [17:19:35]Content-Length: 767 [17:19:35]Content-Type: application/json [17:19:35] [17:19:35]POST finish read [17:19:35]Found Content-Length = 767 [17:19:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 7.730, "sum" : 573.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: Mbank", "payments": [ { "type": 1, "sum" : 573.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:35]execute_script... [17:19: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)1964865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 7.730, "sum" : 573.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: Mbank", "payments": [ { "type": 1, "sum" : 573.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:35]POST & json_proto [17:19:35]process_json_proto [17:19:35]json parsed OK: [17:19:35]protocol is kg_v1.0 [17:19:35]action value=close_receipt [17:19:35]process_action close_receipt [17:19:35]cmd_close_receipt [17:19:35]MH_GetDate [17:19:35]Write to MH i2c: F0 00 00 10 60 5F [17:19:35]Write i2c OK [17:19:35]MH_I2C_Read... [17:19:35]Read from MH i2c: F0 [17:19:35]MH_I2C_Read... [17:19:35]Read from MH i2c: F0 09 00 [17:19:35]MH_I2C_Read... [17:19:35]Read from MH i2c: F0 09 00 10 60 00 AC DE 17 67 82 C9 CF 66 F0 [17:19:35]GetLastDocTimeStamp 1729617546 [17:19:35]current date 1729617580 [17:19:35]FM_GetShiftState [17:19:35]SAM_PROTO_GetShiftState [17:19:35]wFMCommunicate request_size=4 [17:19:35]MH_SAM_APDU [17:19:35]CAPDU: 80 13 01 00 [17:19:35]Write to MH i2c: E2 08 00 11 60 80 13 01 00 00 00 00 00 EE [17:19:35]Write i2c OK [17:19:35]MH_I2C_Read... [17:19:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:35]Read from MH i2c: E2 [17:19:35]MH_I2C_Read... [17:19:35]Read from MH i2c: E2 0E 00 [17:19:35]MH_I2C_Read... [17:19:35]Read from MH i2c: E2 0E 00 11 60 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 B5 [17:19:35]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:19:35]wFMCommunicate OK [17:19:35]SAM_PROTO_GetShiftState done [17:19:35]FM_GetShiftState done [17:19:35]opened in 1729555538 [17:19:35]opened+sec_in_day 1729641938 [17:19:35]quantity*price = 57356 [17:19:35]sum+1 = 57358 [17:19:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 573.57 НСП 1% : 5.08 НДС 12% : 60.91 Наличными: 0.00 Безнал.: 573.57 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 324 22.10.2024 17:19 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 228360 ФПД: 4452016893905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171940&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228360&fm=4452016893905&tin=02508201610067®Number=0000000000091685&sum=57357 [17:19:36]StoreToDocumentArchive [17:19:36]shift 535 fd 228360 [17:19:36]save to /storage/0535/doc_00228360 [17:19:36]save last doc name /storage/0535/doc_00228360 to /storage/kkm_last_doc_name [17:19:36]save OK [17:19:36]Clear old archive folders... [17:19:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:19:36]tlvbuf is 008EB300 [17:19:36]SAM_PROTO_ClearQueue [17:19:36]wFMCommunicate request_size=4 [17:19:36]MH_SAM_APDU [17:19:36]CAPDU: 80 09 00 00 [17:19:36]Write to MH i2c: E2 08 00 1E 60 80 09 00 00 00 00 00 00 F0 [17:19:36]Write i2c OK [17:19:36]MH_I2C_Read... [17:19:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:36]Read from MH i2c: E2 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: E2 03 00 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: E2 03 00 1E 60 00 90 00 F2 [17:19:36]RAPDU: 90 00 [17:19:36]wFMCommunicate OK [17:19:36]SAM_PROTO_ClearQueue done [17:19:36]KKMCreateOFDPacket [17:19:36]OFDProtocolAddRootSTLVToBuf [17:19:36]FM_MakeSignedData [17:19:36]FM_MakeSignedData [17:19:36]SAM_PROTO_SignData [17:19:36]wFMCommunicate request_size=4 [17:19:36]MH_SAM_APDU [17:19:36]CAPDU: 80 0D 01 02 [17:19:36]Write to MH i2c: E2 08 00 1F 60 80 0D 01 02 00 00 00 00 F8 [17:19:36]Write i2c OK [17:19:36]MH_I2C_Read... [17:19:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:36]Read from MH i2c: E2 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: E2 03 00 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: E2 03 00 1F 60 00 90 00 F3 [17:19:36]RAPDU: 90 00 [17:19:36]wFMCommunicate OK [17:19:36]wFMCommunicate request_size=255 [17:19:36]MH_SAM_APDU [17:19: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 32 1E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 0D E0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0D E0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0D E0 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 AC DE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 08 7C 03 00 35 04 06 00 04 [17:19:36]Write to MH i2c: E2 02 01 20 60 80 0D 02 02 FA 00 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 32 1E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 0D E0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0D E0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0D E0 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 AC DE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 08 7C 03 00 35 04 06 00 04 00 00 0D [17:19:36]Write i2c OK [17:19:36]MH_I2C_Read... [17:19:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:36]Read from MH i2c: E2 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: E2 03 00 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: E2 03 00 20 60 00 90 00 F4 [17:19:36]RAPDU: 90 00 [17:19:36]wFMCommunicate OK [17:19:36]wFMCommunicate request_size=10 [17:19:36]MH_SAM_APDU [17:19:36]CAPDU: 80 0D 02 02 05 0C 90 E2 AF D1 [17:19:36]Write to MH i2c: E2 0D 00 21 60 80 0D 02 02 05 00 0C 90 E2 AF D1 00 00 03 [17:19:36]Write i2c OK [17:19:36]MH_I2C_Read... [17:19:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:36]Read from MH i2c: E2 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: E2 03 00 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: E2 03 00 21 60 00 90 00 F5 [17:19:36]RAPDU: 90 00 [17:19:36]wFMCommunicate OK [17:19:36]wFMCommunicate request_size=4 [17:19:36]MH_SAM_APDU [17:19:36]CAPDU: 80 0D 03 02 [17:19:36]Write to MH i2c: E2 08 00 22 60 80 0D 03 02 00 00 00 00 FD [17:19:36]Write i2c OK [17:19:36]MH_I2C_Read... [17:19:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:36]Read from MH i2c: E2 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: E2 0B 00 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: E2 0B 00 22 60 00 D5 79 78 10 EA AE 85 AD 90 00 9E [17:19:36]RAPDU: D5 79 78 10 EA AE 85 AD 90 00 [17:19:36]wFMCommunicate OK [17:19:36]SAM_PROTO_SignData done [17:19:36]FM_MakeSignedData done [17:19:36]CreateOFDProtocolMessage [17:19:36]wFMCommunicate request_size=4 [17:19:36]MH_SAM_APDU [17:19:36]CAPDU: 80 11 00 00 [17:19:36]Write to MH i2c: E2 08 00 23 60 80 11 00 00 00 00 00 00 FD [17:19:36]Write i2c OK [17:19:36]MH_I2C_Read... [17:19:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:36]Read from MH i2c: E2 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: E2 17 00 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: E2 17 00 23 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 54 [17:19:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:19:36]wFMCommunicate OK [17:19:36]CreateOFDProtocolMessage done [17:19:36]OFDSenderStorePacket 228360 [17:19:36]StoreOFDPacket docnum=228360 [17:19:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 0E A1 07 01 75 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 32 1E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 0D E0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0D E0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0D E0 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 AC DE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 08 7C 03 00 35 04 06 00 04 0C 90 E2 AF D1 D5 79 78 10 EA AE 85 AD [17:19:36]CheckFolder [17:19:36]dirname=/storage/ofd_packets [17:19:36]CheckFolder done [17:19:36]ProducePacketName [17:19:36]name=ofd_packets/00228360 [17:19:36]NVStorageSaveData ofd_packets/00228360 [17:19:36]File name is /storage/ofd_packets/00228360 [17:19:36]Write 301 bytes [17:19:36]NVStorageSaveData done [17:19:36]OFDSenderStorePacket done [17:19:36]KKMCreateOFDPacket done [17:19:36]NVStorageSaveData kkm_last_timestamp [17:19:36]File name is /storage/kkm_last_timestamp [17:19:36]Write 4 bytes [17:19:36]NVStorageSaveData done [17:19:36]ExternCall_PrintAddStr [17:19:36]wPrintStart [17:19:36]Write to MH i2c: 01 00 00 24 60 84 [17:19:36]Write i2c OK [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: 01 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: 01 07 00 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: 01 07 00 24 60 00 00 00 00 00 FF 0F 99 [17:19:36]RasterBufferAndPrint [17:19:36]line Счет N : (1)1964865 [17:19:36]line ИНН: 02508201610067 [17:19:36]line Контрольно-Кассовый Чек [17:19:36]line ПРОДАЖА [17:19:36]line ТРК (МРК, ГНК) : 64 [17:19:36]line Товар: 2710124500 [17:19:36]line Аи-95-К-5 [17:19:36]line 7.730 * 74.20 [17:19:36]line = 573.57 [17:19:36]line НДС 12% НСП 1% [17:19:36]line > о реализуемом товаре [17:19:36]line ИТОГО: 573.57 [17:19:36]line НСП 1% : 5.08 [17:19:36]line НДС 12% : 60.91 [17:19:36]line Наличными: 0.00 [17:19:36]line Безнал.: 573.57 [17:19:36]line Место: АЗС № 133 "Партнер Нефть" [17:19:36]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:19:36]line СНО: Общий режим [17:19:36]line Чек 324 22.10.2024 17:19 [17:19:36]line Смена: 535 ФФД: 1.0 [17:19:36]line ЗНМ: 0300000091 [17:19:36]line РНМ: 0000000000091685 [17:19:36]line Версия ККМ: 001 [17:19:36]line Платежная система: Mbank [17:19:36]line ФМ: 0000000000871839 [17:19:36]line ФД: 228360 [17:19:36]line ФПД: 4452016893905 [17:19:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171940&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228360&fm=4452016893905&tin=02508201610067®Number=0000000000091685&sum=57357 [17:19:36]written 0, free lines is 4095 [17:19:36]OFD Sender: Processing packet 228360 [packets to send 38, broken 37] [17:19:36]ProducePacketName [17:19:36]name=ofd_packets/00228360 [17:19:36]OFD Sender: To server: pG, [17:19:37]CommunicateWithHost lk.salyk.kg:30040 [17:19:37]ConnectInit lk.salyk.kg [17:19:37]Connected sock=9 [17:19:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 0E A1 07 01 75 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 32 1E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 0D E0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0D E0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0D E0 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 AC DE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 08 7C 03 00 35 04 06 00 04 0C 90 E2 AF D1 D5 79 78 10 EA AE 85 AD [17:19:37]Write to MH i2c: 01 00 00 4C 60 AC [17:19:37]Write i2c OK [17:19:37]MH_I2C_Read... [17:19:37]Read from MH i2c: 01 [17:19:37]MH_I2C_Read... [17:19:37]Read from MH i2c: 01 07 00 [17:19:37]MH_I2C_Read... [17:19:37]Read from MH i2c: 01 07 00 4C 60 00 00 00 00 00 E9 0C A8 [17:19:37]RasterBufferAndPrint [17:19:37]line [17:19:37]line [17:19:37]line [17:19:37]line [17:19:37]line [17:19:37]written 0, free lines is 3309 [17:19:37]MH_Cut [17:19:37]Write to MH i2c: D1 01 00 53 60 01 85 [17:19:37]Write i2c OK [17:19:37]MH_I2C_Read... [17:19:37]Read from MH i2c: D1 [17:19:37]MH_I2C_Read... [17:19:37]Read from MH i2c: D1 01 00 [17:19:37]MH_I2C_Read... [17:19:37]Read from MH i2c: D1 01 00 53 60 00 84 [17:19:37]Write to MH i2c: 01 00 00 54 60 B4 [17:19:37]Write i2c OK [17:19:37]MH_I2C_Read... [17:19:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 27 00 47 00 89 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 08 7C 03 00 F4 03 04 00 A4 89 17 67 B6 04 01 00 00 CA 53 00 4B 7D 74 8E DE [17:19:37]CommunicateWithHost err = 0 [17:19:37]CheckOFDResponse [17:19:37]1017 (14) - 77093643461234 [17:19:37]1041 (16) - 0000000000871839 [17:19:37]1040 (4) - 228360 [17:19:37]1012 (4) - 22.10.2024 11:16 [17:19:37]1206 (1) - 0 [17:19:37]OFD Sender: Remove packet 228360 [17:19:37]ProducePacketName [17:19:37]name=ofd_packets/00228360 [17:19:37]NVStorageDeleteData [17:19:38]OFD Sender: No OFD packet to send [17:19:38]*** Cut start [17:19:38]*** Partial cut [17:19:38]*** CUTSNS_PIN = 1 [17:19:38]*** CUTSNS_PIN = 0 [17:19:38]*** Brake cut motor [17:19:38]Read from MH i2c: 01 [17:19:38]MH_I2C_Read... [17:19:38]*** Stop cut motor [17:19:38]*** Cut end [17:19:38]Read from MH i2c: 01 07 00 [17:19:38]MH_I2C_Read... [17:19:38]Read from MH i2c: 01 07 00 54 60 00 00 00 00 00 FF 0F C9 [17:19:38]process_action close_receipt done [17:19:38]requested_data is exist [17:19:38]produce_requested_data [17:19:38]requested_item fm.sn is exist - process it [17:19:38]wFMCommunicate request_size=4 [17:19:38]MH_SAM_APDU [17:19:38]CAPDU: 80 11 00 00 [17:19:38]Write to MH i2c: E2 08 00 55 60 80 11 00 00 00 00 00 00 2F [17:19:38]Write i2c OK [17:19:38]MH_I2C_Read... [17:19:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:38]Read from MH i2c: E2 [17:19:38]MH_I2C_Read... [17:19:38]Read from MH i2c: E2 17 00 [17:19:38]MH_I2C_Read... [17:19:38]Read from MH i2c: E2 17 00 55 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 86 [17:19:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:19:38]wFMCommunicate OK [17:19:38]requested_item fd.num is exist - process it [17:19:38]SAM_PROTO_GetFieldsCounters [17:19:38]wFMCommunicate request_size=4 [17:19:38]MH_SAM_APDU [17:19:38]CAPDU: 80 13 00 00 [17:19:38]Write to MH i2c: E2 08 00 56 60 80 13 00 00 00 00 00 00 32 [17:19:38]Write i2c OK [17:19:38]MH_I2C_Read... [17:19:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:39]Read from MH i2c: E2 [17:19:39]MH_I2C_Read... [17:19:39]Read from MH i2c: E2 62 00 [17:19:39]MH_I2C_Read... [17:19:39]Read from MH i2c: E2 62 00 56 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 08 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 CA [17:19:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 08 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:39]wFMCommunicate OK [17:19:39]SAM_PROTO_GetFieldsCounters done [17:19:39]requested_item shift.num is exist - process it [17:19:39]requested_item shift.opened is exist - process it [17:19:39]req_shift_opened [17:19:39]FM_GetShiftState [17:19:39]SAM_PROTO_GetShiftState [17:19:39]wFMCommunicate request_size=4 [17:19:39]MH_SAM_APDU [17:19:39]CAPDU: 80 13 01 00 [17:19:39]Write to MH i2c: E2 08 00 57 60 80 13 01 00 00 00 00 00 34 [17:19:39]Write i2c OK [17:19:39]MH_I2C_Read... [17:19:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:39]Read from MH i2c: E2 [17:19:39]MH_I2C_Read... [17:19:39]Read from MH i2c: E2 0E 00 [17:19:39]MH_I2C_Read... [17:19:39]Read from MH i2c: E2 0E 00 57 60 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 FB [17:19:39]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:19:39]wFMCommunicate OK [17:19:39]SAM_PROTO_GetShiftState done [17:19:39]FM_GetShiftState done [17:19:39]req_shift_opened done [17:19:39]requested_item shift.open_date is exist - process it [17:19:39]req_shift_open_date [17:19:39]req_shift_open_date done [17:19:39]produce_requested_data done [17:19:39]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228360,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [17:19:39]process_action_free close_receipt [17:19:39]json_value_free [17:19:39]json_value_free done [17:19:39]process_json_proto returns [17:19:39]Send response to host [17:19:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228360,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [17:19:39]free response buf [17:19:39]execute_script done [17:19:39]execute_script returns [17:19:39]free content buf [17:19:39]Sock 10.Close socket [17:19:39]Sock 10.Thread stoped [17:19:43]OFD Sender: No OFD packet to send [17:19:48]OFD Sender: No OFD packet to send [17:19:53]OFD Sender: No OFD packet to send [17:19:58]OFD Sender: No OFD packet to send [17:20:03]OFD Sender: No OFD packet to send [17:20:07]accept exits with 7 [17:20:07]New connection [17:20:07]New thread 3066994020 created [17:20:07]Thread 3067137380 joined [17:20:07]Waiting for new connection... [17:20:07] Sock 7.Parse request [17:20:07]Sock 7.Check first char [17:20:07]Sock 7.First char is OK [17:20:07]request: POST /json_proto HTTP/1.0 [17:20:07]Method: POST [17:20:07]URL: /json_proto [17:20:07]Method is POST - this is cgi request [17:20:07]url: /json_proto [17:20:07]query_string will be loaded in cgi processing [17:20:07]execute_cgi json_proto POST (null) [17:20:07]execute_cgi path=json_proto method=POST [17:20:07]POST find Content-Length [17:20:07]Host: 172.17.44.195:8080 [17:20:07]Content-Length: 664 [17:20:07]Content-Type: application/json [17:20:07] [17:20:07]POST finish read [17:20:07]Found Content-Length = 664 [17:20:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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:20:07]execute_script... [17:20: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)1964866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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:20:07]POST & json_proto [17:20:07]process_json_proto [17:20:07]json parsed OK: [17:20:07]protocol is kg_v1.0 [17:20:07]action value=close_receipt [17:20:07]process_action close_receipt [17:20:07]cmd_close_receipt [17:20:07]MH_GetDate [17:20:07]Write to MH i2c: F0 00 00 58 60 A7 [17:20:07]Write i2c OK [17:20:07]MH_I2C_Read... [17:20:07]Read from MH i2c: F0 [17:20:07]MH_I2C_Read... [17:20:07]Read from MH i2c: F0 09 00 [17:20:07]MH_I2C_Read... [17:20:07]Read from MH i2c: F0 09 00 58 60 00 CC DE 17 67 82 C9 CF 66 58 [17:20:07]GetLastDocTimeStamp 1729617580 [17:20:07]current date 1729617612 [17:20:07]FM_GetShiftState [17:20:07]SAM_PROTO_GetShiftState [17:20:07]wFMCommunicate request_size=4 [17:20:07]MH_SAM_APDU [17:20:07]CAPDU: 80 13 01 00 [17:20:07]Write to MH i2c: E2 08 00 59 60 80 13 01 00 00 00 00 00 36 [17:20:07]Write i2c OK [17:20:07]MH_I2C_Read... [17:20:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:07]Read from MH i2c: E2 [17:20:07]MH_I2C_Read... [17:20:07]Read from MH i2c: E2 0E 00 [17:20:07]MH_I2C_Read... [17:20:07]Read from MH i2c: E2 0E 00 59 60 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 FD [17:20:07]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:20:07]wFMCommunicate OK [17:20:07]SAM_PROTO_GetShiftState done [17:20:07]FM_GetShiftState done [17:20:07]opened in 1729555538 [17:20:07]opened+sec_in_day 1729641938 [17:20:07]quantity*price = 100000 [17:20:07]sum+1 = 100002 [17:20:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 325 22.10.2024 17:20 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228361 ФПД: 104300188672019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172012&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228361&fm=104300188672019&tin=02508201610067®Number=0000000000091685&sum=100000 [17:20:08]StoreToDocumentArchive [17:20:08]shift 535 fd 228361 [17:20:08]save to /storage/0535/doc_00228361 [17:20:08]save last doc name /storage/0535/doc_00228361 to /storage/kkm_last_doc_name [17:20:08]save OK [17:20:08]Clear old archive folders... [17:20:08]ProcessDocumentItem done err = 0, tmpTLVsize=244 [17:20:08]tlvbuf is B6F85830 [17:20:08]SAM_PROTO_ClearQueue [17:20:08]wFMCommunicate request_size=4 [17:20:08]MH_SAM_APDU [17:20:08]CAPDU: 80 09 00 00 [17:20:08]Write to MH i2c: E2 08 00 66 60 80 09 00 00 00 00 00 00 38 [17:20:08]Write i2c OK [17:20:08]MH_I2C_Read... [17:20:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:20:09]Read from MH i2c: E2 [17:20:09]MH_I2C_Read... [17:20:09]Read from MH i2c: E2 03 00 [17:20:09]MH_I2C_Read... [17:20:09]Read from MH i2c: E2 03 00 66 60 00 90 00 3A [17:20:09]RAPDU: 90 00 [17:20:09]wFMCommunicate OK [17:20:09]SAM_PROTO_ClearQueue done [17:20:09]KKMCreateOFDPacket [17:20:09]OFDProtocolAddRootSTLVToBuf [17:20:09]FM_MakeSignedData [17:20:09]FM_MakeSignedData [17:20:09]SAM_PROTO_SignData [17:20:09]wFMCommunicate request_size=4 [17:20:09]MH_SAM_APDU [17:20:09]CAPDU: 80 0D 01 02 [17:20:09]Write to MH i2c: E2 08 00 67 60 80 0D 01 02 00 00 00 00 40 [17:20:09]Write i2c OK [17:20:09]MH_I2C_Read... [17:20:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:20:09]Read from MH i2c: E2 [17:20:09]MH_I2C_Read... [17:20:09]Read from MH i2c: E2 03 00 [17:20:09]MH_I2C_Read... [17:20:09]Read from MH i2c: E2 03 00 67 60 00 90 00 3B [17:20:09]RAPDU: 90 00 [17:20:09]wFMCommunicate OK [17:20:09]wFMCommunicate request_size=253 [17:20:09]MH_SAM_APDU [17:20:09]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 CC DE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 09 7C 03 00 35 04 06 00 5E DC 47 B2 20 13 [17:20:09]Write to MH i2c: E2 00 01 68 60 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 CC DE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 09 7C 03 00 35 04 06 00 5E DC 47 B2 20 13 00 00 2F [17:20:09]Write i2c OK [17:20:09]MH_I2C_Read... [17:20:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:09]Read from MH i2c: E2 [17:20:09]MH_I2C_Read... [17:20:09]Read from MH i2c: E2 03 00 [17:20:09]MH_I2C_Read... [17:20:09]Read from MH i2c: E2 03 00 68 60 00 90 00 3C [17:20:09]RAPDU: 90 00 [17:20:09]wFMCommunicate OK [17:20:09]wFMCommunicate request_size=4 [17:20:09]MH_SAM_APDU [17:20:09]CAPDU: 80 0D 03 02 [17:20:09]Write to MH i2c: E2 08 00 69 60 80 0D 03 02 00 00 00 00 44 [17:20:09]Write i2c OK [17:20:09]MH_I2C_Read... [17:20:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:20:09]Read from MH i2c: E2 [17:20:09]MH_I2C_Read... [17:20:09]Read from MH i2c: E2 0B 00 [17:20:09]MH_I2C_Read... [17:20:09]Read from MH i2c: E2 0B 00 69 60 00 F6 DA AA 08 05 B0 1B B1 90 00 48 [17:20:09]RAPDU: F6 DA AA 08 05 B0 1B B1 90 00 [17:20:09]wFMCommunicate OK [17:20:09]SAM_PROTO_SignData done [17:20:09]FM_MakeSignedData done [17:20:09]CreateOFDProtocolMessage [17:20:09]wFMCommunicate request_size=4 [17:20:09]MH_SAM_APDU [17:20:09]CAPDU: 80 11 00 00 [17:20:09]Write to MH i2c: E2 08 00 6A 60 80 11 00 00 00 00 00 00 44 [17:20:09]Write i2c OK [17:20:09]MH_I2C_Read... [17:20:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:09]Read from MH i2c: E2 [17:20:09]MH_I2C_Read... [17:20:09]Read from MH i2c: E2 17 00 [17:20:09]MH_I2C_Read... [17:20:09]Read from MH i2c: E2 17 00 6A 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9B [17:20:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:20:09]wFMCommunicate OK [17:20:09]CreateOFDProtocolMessage done [17:20:09]OFDSenderStorePacket 228361 [17:20:09]StoreOFDPacket docnum=228361 [17:20:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 40 E4 00 01 01 D1 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 CC DE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 09 7C 03 00 35 04 06 00 5E DC 47 B2 20 13 F6 DA AA 08 05 B0 1B B1 [17:20:09]CheckFolder [17:20:09]dirname=/storage/ofd_packets [17:20:09]CheckFolder done [17:20:09]ProducePacketName [17:20:09]name=ofd_packets/00228361 [17:20:09]NVStorageSaveData ofd_packets/00228361 [17:20:09]File name is /storage/ofd_packets/00228361 [17:20:09]Write 294 bytes [17:20:09]NVStorageSaveData done [17:20:09]OFDSenderStorePacket done [17:20:09]KKMCreateOFDPacket done [17:20:09]NVStorageSaveData kkm_last_timestamp [17:20:09]File name is /storage/kkm_last_timestamp [17:20:09]Write 4 bytes [17:20:09]NVStorageSaveData done [17:20:09]ExternCall_PrintAddStr [17:20:09]wPrintStart [17:20:09]Write to MH i2c: 01 00 00 6B 60 CB [17:20:09]Write i2c OK [17:20:09]MH_I2C_Read... [17:20:09]Read from MH i2c: 01 [17:20:09]MH_I2C_Read... [17:20:09]Read from MH i2c: 01 07 00 [17:20:09]MH_I2C_Read... [17:20:09]Read from MH i2c: 01 07 00 6B 60 00 00 00 00 00 FF 0F E0 [17:20:09]RasterBufferAndPrint [17:20:09]line Счет N : (1)1964866 [17:20:09]line ИНН: 02508201610067 [17:20:09]line Контрольно-Кассовый Чек [17:20:09]line ПРОДАЖА [17:20:09]line ТРК (МРК, ГНК) : 52 [17:20:09]line Товар: 2710124130 [17:20:09]line SU-92 [17:20:09]line 14.620 * 68.40 [17:20:09]line = 1000.01 [17:20:09]line НДС 12% НСП 1% [17:20:09]line > о реализуемом товаре [17:20:09]line ОКРУГЛЕНИЕ: -0.01 [17:20:09]line ИТОГО: 1000.00 [17:20:09]line Внесено: 1000.00 [17:20:09]line СДАЧА: 0.00 [17:20:09]line НСП 1% : 8.85 [17:20:09]line НДС 12% : 106.20 [17:20:09]line Наличными: 1000.00 [17:20:09]line Безнал.: 0.00 [17:20:09]line Место: АЗС № 133 "Партнер Нефть" [17:20:09]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:20:09]line СНО: Общий режим [17:20:09]line Чек 325 22.10.2024 17:20 [17:20:09]line Смена: 535 ФФД: 1.0 [17:20:09]line ЗНМ: 0300000091 [17:20:09]line РНМ: 0000000000091685 [17:20:09]line Версия ККМ: 001 [17:20:09]line ФМ: 0000000000871839 [17:20:09]line ФД: 228361 [17:20:09]line ФПД: 104300188672019 [17:20:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172012&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228361&fm=104300188672019&tin=02508201610067®Number=0000000000091685&sum=100000 [17:20:09]OFD Sender: Processing packet 228361 [packets to send 38, broken 37] [17:20:09]ProducePacketName [17:20:09]name=ofd_packets/00228361 [17:20:09]OFD Sender: To server: pG, [17:20:09]CommunicateWithHost lk.salyk.kg:30040 [17:20:09]ConnectInit lk.salyk.kg [17:20:09]written 0, free lines is 4095 [17:20:10]Write to MH i2c: 01 00 00 95 60 F5 [17:20:10]Write i2c OK [17:20:10]MH_I2C_Read... [17:20:10]Read from MH i2c: 01 [17:20:10]MH_I2C_Read... [17:20:10]Read from MH i2c: 01 07 00 [17:20:10]MH_I2C_Read... [17:20:10]Read from MH i2c: 01 07 00 95 60 00 00 00 00 00 B2 0C BA [17:20:10]RasterBufferAndPrint [17:20:10]line [17:20:10]line [17:20:10]line [17:20:10]line [17:20:10]line [17:20:10]written 0, free lines is 3254 [17:20:10]MH_Cut [17:20:10]Write to MH i2c: D1 01 00 9C 60 01 CE [17:20:10]Write i2c OK [17:20:10]MH_I2C_Read... [17:20:10]Read from MH i2c: D1 [17:20:10]MH_I2C_Read... [17:20:10]Read from MH i2c: D1 01 00 [17:20:10]MH_I2C_Read... [17:20:10]Read from MH i2c: D1 01 00 9C 60 00 CD [17:20:10]Write to MH i2c: 01 00 00 9D 60 FD [17:20:10]Write i2c OK [17:20:10]MH_I2C_Read... [17:20:11]*** Cut start [17:20:11]*** Partial cut [17:20:11]*** CUTSNS_PIN = 1 [17:20:11]*** CUTSNS_PIN = 0 [17:20:11]*** Brake cut motor [17:20:11]Read from MH i2c: 01 [17:20:11]*** Stop cut motor [17:20:11]*** Cut end [17:20:11]MH_I2C_Read... [17:20:11]Read from MH i2c: 01 07 00 [17:20:11]MH_I2C_Read... [17:20:11]Read from MH i2c: 01 07 00 9D 60 00 00 00 00 00 FF 0F 12 [17:20:11]process_action close_receipt done [17:20:11]requested_data is exist [17:20:11]produce_requested_data [17:20:11]requested_item fm.sn is exist - process it [17:20:11]wFMCommunicate request_size=4 [17:20:11]MH_SAM_APDU [17:20:11]CAPDU: 80 11 00 00 [17:20:11]Write to MH i2c: E2 08 00 9E 60 80 11 00 00 00 00 00 00 78 [17:20:11]Write i2c OK [17:20:11]MH_I2C_Read... [17:20:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:11]Read from MH i2c: E2 [17:20:11]MH_I2C_Read... [17:20:11]Read from MH i2c: E2 17 00 [17:20:11]MH_I2C_Read... [17:20:11]Read from MH i2c: E2 17 00 9E 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CF [17:20:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:20:11]wFMCommunicate OK [17:20:11]requested_item fd.num is exist - process it [17:20:11]SAM_PROTO_GetFieldsCounters [17:20:11]wFMCommunicate request_size=4 [17:20:11]MH_SAM_APDU [17:20:11]CAPDU: 80 13 00 00 [17:20:11]Write to MH i2c: E2 08 00 9F 60 80 13 00 00 00 00 00 00 7B [17:20:11]Write i2c OK [17:20:11]MH_I2C_Read... [17:20:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:20:11]Read from MH i2c: E2 [17:20:11]MH_I2C_Read... [17:20:11]Read from MH i2c: E2 62 00 [17:20:11]MH_I2C_Read... [17:20:11]Read from MH i2c: E2 62 00 9F 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 09 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 17 [17:20:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 09 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:20:11]wFMCommunicate OK [17:20:11]SAM_PROTO_GetFieldsCounters done [17:20:11]requested_item shift.num is exist - process it [17:20:11]requested_item shift.opened is exist - process it [17:20:11]req_shift_opened [17:20:11]FM_GetShiftState [17:20:11]SAM_PROTO_GetShiftState [17:20:11]wFMCommunicate request_size=4 [17:20:11]MH_SAM_APDU [17:20:11]CAPDU: 80 13 01 00 [17:20:11]Write to MH i2c: E2 08 00 A0 60 80 13 01 00 00 00 00 00 7D [17:20:11]Write i2c OK [17:20:11]MH_I2C_Read... [17:20:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:11]Read from MH i2c: E2 [17:20:11]MH_I2C_Read... [17:20:11]Read from MH i2c: E2 0E 00 [17:20:11]MH_I2C_Read... [17:20:11]Read from MH i2c: E2 0E 00 A0 60 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 44 [17:20:11]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:20:11]wFMCommunicate OK [17:20:11]SAM_PROTO_GetShiftState done [17:20:11]FM_GetShiftState done [17:20:11]req_shift_opened done [17:20:11]requested_item shift.open_date is exist - process it [17:20:11]req_shift_open_date [17:20:11]req_shift_open_date done [17:20:11]produce_requested_data done [17:20:11]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228361,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [17:20:11]process_action_free close_receipt [17:20:11]json_value_free [17:20:11]json_value_free done [17:20:11]process_json_proto returns [17:20:11]Send response to host [17:20:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228361,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [17:20:11]free response buf [17:20:11]execute_script done [17:20:11]execute_script returns [17:20:11]free content buf [17:20:11]Sock 7.Close socket [17:20:11]Sock 7.Thread stoped [17:22:19]ConnectInit Can't connect to host [17:22:19]CommunicateWithHost connect error [17:22:19]CommunicateWithHost err = -1 [17:22:19]OFD Sender: Server communicate error [17:22:24]OFD Sender: Processing packet 228361 [packets to send 38, broken 37] [17:22:24]ProducePacketName [17:22:24]name=ofd_packets/00228361 [17:22:24]OFD Sender: To server: pG, [17:22:24]CommunicateWithHost lk.salyk.kg:30040 [17:22:24]ConnectInit lk.salyk.kg [17:22:25]Connected sock=7 [17:22:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 40 E4 00 01 01 D1 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 CC DE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 09 7C 03 00 35 04 06 00 5E DC 47 B2 20 13 F6 DA AA 08 05 B0 1B B1 [17:22:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 25 B3 47 00 F6 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 09 7C 03 00 F4 03 04 00 4B 8A 17 67 B6 04 01 00 00 59 03 9F 5D 83 6F 87 DA [17:22:25]CommunicateWithHost err = 0 [17:22:25]CheckOFDResponse [17:22:25]1017 (14) - 77093643461234 [17:22:25]1041 (16) - 0000000000871839 [17:22:25]1040 (4) - 228361 [17:22:25]1012 (4) - 22.10.2024 11:19 [17:22:25]1206 (1) - 0 [17:22:25]OFD Sender: Remove packet 228361 [17:22:25]ProducePacketName [17:22:25]name=ofd_packets/00228361 [17:22:25]NVStorageDeleteData [17:22:25]OFD Sender: No OFD packet to send [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:21]accept exits with 9 [17:23:21]New connection [17:23:21]New thread 3067137380 created [17:23:21]Thread 3066994020 joined [17:23:21]Waiting for new connection... [17:23:21] Sock 9.Parse request [17:23:21]Sock 9.Check first char [17:23:21]Sock 9.First char is OK [17:23:21]request: POST /json_proto HTTP/1.0 [17:23:21]Method: POST [17:23:21]URL: /json_proto [17:23:21]Method is POST - this is cgi request [17:23:21]url: /json_proto [17:23:21]query_string will be loaded in cgi processing [17:23:21]execute_cgi json_proto POST (null) [17:23:21]execute_cgi path=json_proto method=POST [17:23:21]POST find Content-Length [17:23:21]Host: 172.17.44.195:8080 [17:23:21]Content-Length: 767 [17:23:21]Content-Type: application/json [17:23:21] [17:23:21]POST finish read [17:23:21]Found Content-Length = 767 [17:23:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:21]execute_script... [17:23: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)1964868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:21]POST & json_proto [17:23:21]process_json_proto [17:23:21]json parsed OK: [17:23:21]protocol is kg_v1.0 [17:23:21]action value=close_receipt [17:23:21]process_action close_receipt [17:23:21]cmd_close_receipt [17:23:21]MH_GetDate [17:23:21]Write to MH i2c: F0 00 00 A1 60 F0 [17:23:21]Write i2c OK [17:23:21]MH_I2C_Read... [17:23:21]Read from MH i2c: F0 [17:23:21]MH_I2C_Read... [17:23:21]Read from MH i2c: F0 09 00 [17:23:21]MH_I2C_Read... [17:23:21]Read from MH i2c: F0 09 00 A1 60 00 8E DF 17 67 82 C9 CF 66 64 [17:23:21]GetLastDocTimeStamp 1729617612 [17:23:21]current date 1729617806 [17:23:21]FM_GetShiftState [17:23:21]SAM_PROTO_GetShiftState [17:23:21]wFMCommunicate request_size=4 [17:23:21]MH_SAM_APDU [17:23:21]CAPDU: 80 13 01 00 [17:23:21]Write to MH i2c: E2 08 00 A2 60 80 13 01 00 00 00 00 00 7F [17:23:21]Write i2c OK [17:23:21]MH_I2C_Read... [17:23:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:21]Read from MH i2c: E2 [17:23:21]MH_I2C_Read... [17:23:21]Read from MH i2c: E2 0E 00 [17:23:21]MH_I2C_Read... [17:23:21]Read from MH i2c: E2 0E 00 A2 60 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 46 [17:23:21]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:23:21]wFMCommunicate OK [17:23:21]SAM_PROTO_GetShiftState done [17:23:21]FM_GetShiftState done [17:23:21]opened in 1729555538 [17:23:21]opened+sec_in_day 1729641938 [17:23:21]quantity*price = 30038 [17:23:21]sum+1 = 30039 [17:23:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 326 22.10.2024 17:23 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 228362 ФПД: 122198498123137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172326&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228362&fm=122198498123137&tin=02508201610067®Number=0000000000091685&sum=30038 [17:23:22]StoreToDocumentArchive [17:23:22]shift 535 fd 228362 [17:23:22]save to /storage/0535/doc_00228362 [17:23:22]save last doc name /storage/0535/doc_00228362 to /storage/kkm_last_doc_name [17:23:22]save OK [17:23:22]Clear old archive folders... [17:23:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:23:22]tlvbuf is 008D8630 [17:23:22]SAM_PROTO_ClearQueue [17:23:22]wFMCommunicate request_size=4 [17:23:22]MH_SAM_APDU [17:23:22]CAPDU: 80 09 00 00 [17:23:22]Write to MH i2c: E2 08 00 AF 60 80 09 00 00 00 00 00 00 81 [17:23:22]Write i2c OK [17:23:22]MH_I2C_Read... [17:23:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:23:23]Read from MH i2c: E2 [17:23:23]MH_I2C_Read... [17:23:23]Read from MH i2c: E2 03 00 [17:23:23]MH_I2C_Read... [17:23:23]Read from MH i2c: E2 03 00 AF 60 00 90 00 83 [17:23:23]RAPDU: 90 00 [17:23:23]wFMCommunicate OK [17:23:23]SAM_PROTO_ClearQueue done [17:23:23]KKMCreateOFDPacket [17:23:23]OFDProtocolAddRootSTLVToBuf [17:23:23]FM_MakeSignedData [17:23:23]FM_MakeSignedData [17:23:23]SAM_PROTO_SignData [17:23:23]wFMCommunicate request_size=4 [17:23:23]MH_SAM_APDU [17:23:23]CAPDU: 80 0D 01 02 [17:23:23]Write to MH i2c: E2 08 00 B0 60 80 0D 01 02 00 00 00 00 89 [17:23:23]Write i2c OK [17:23:23]MH_I2C_Read... [17:23:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:23:23]Read from MH i2c: E2 [17:23:23]MH_I2C_Read... [17:23:23]Read from MH i2c: E2 03 00 [17:23:23]MH_I2C_Read... [17:23:23]Read from MH i2c: E2 03 00 B0 60 00 90 00 84 [17:23:23]RAPDU: 90 00 [17:23:23]wFMCommunicate OK [17:23:23]wFMCommunicate request_size=255 [17:23:23]MH_SAM_APDU [17:23: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 8E DF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0A 7C 03 00 35 04 06 00 6F [17:23:23]Write to MH i2c: E2 02 01 B1 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 8E DF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0A 7C 03 00 35 04 06 00 6F 00 00 A3 [17:23:23]Write i2c OK [17:23:23]MH_I2C_Read... [17:23:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:23]Read from MH i2c: E2 [17:23:23]MH_I2C_Read... [17:23:23]Read from MH i2c: E2 03 00 [17:23:23]MH_I2C_Read... [17:23:23]Read from MH i2c: E2 03 00 B1 60 00 90 00 85 [17:23:23]RAPDU: 90 00 [17:23:23]wFMCommunicate OK [17:23:23]wFMCommunicate request_size=10 [17:23:23]MH_SAM_APDU [17:23:23]CAPDU: 80 0D 02 02 05 23 8E 12 9D 81 [17:23:23]Write to MH i2c: E2 0D 00 B2 60 80 0D 02 02 05 00 23 8E 12 9D 81 00 00 77 [17:23:23]Write i2c OK [17:23:23]MH_I2C_Read... [17:23:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:23]Read from MH i2c: E2 [17:23:23]MH_I2C_Read... [17:23:23]Read from MH i2c: E2 03 00 [17:23:23]MH_I2C_Read... [17:23:23]Read from MH i2c: E2 03 00 B2 60 00 90 00 86 [17:23:23]RAPDU: 90 00 [17:23:23]wFMCommunicate OK [17:23:23]wFMCommunicate request_size=4 [17:23:23]MH_SAM_APDU [17:23:23]CAPDU: 80 0D 03 02 [17:23:23]Write to MH i2c: E2 08 00 B3 60 80 0D 03 02 00 00 00 00 8E [17:23:23]Write i2c OK [17:23:23]MH_I2C_Read... [17:23:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:23:23]Read from MH i2c: E2 [17:23:23]MH_I2C_Read... [17:23:23]Read from MH i2c: E2 0B 00 [17:23:23]MH_I2C_Read... [17:23:23]Read from MH i2c: E2 0B 00 B3 60 00 A5 10 84 D7 1D B6 DB D9 90 00 26 [17:23:23]RAPDU: A5 10 84 D7 1D B6 DB D9 90 00 [17:23:23]wFMCommunicate OK [17:23:23]SAM_PROTO_SignData done [17:23:23]FM_MakeSignedData done [17:23:23]CreateOFDProtocolMessage [17:23:23]wFMCommunicate request_size=4 [17:23:23]MH_SAM_APDU [17:23:23]CAPDU: 80 11 00 00 [17:23:23]Write to MH i2c: E2 08 00 B4 60 80 11 00 00 00 00 00 00 8E [17:23:23]Write i2c OK [17:23:23]MH_I2C_Read... [17:23:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:23]Read from MH i2c: E2 [17:23:23]MH_I2C_Read... [17:23:23]Read from MH i2c: E2 17 00 [17:23:23]MH_I2C_Read... [17:23:23]Read from MH i2c: E2 17 00 B4 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E5 [17:23:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:23:23]wFMCommunicate OK [17:23:23]CreateOFDProtocolMessage done [17:23:23]OFDSenderStorePacket 228362 [17:23:23]StoreOFDPacket docnum=228362 [17:23:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 8E 06 07 01 3C CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 8E DF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0A 7C 03 00 35 04 06 00 6F 23 8E 12 9D 81 A5 10 84 D7 1D B6 DB D9 [17:23:23]CheckFolder [17:23:23]dirname=/storage/ofd_packets [17:23:23]CheckFolder done [17:23:23]ProducePacketName [17:23:23]name=ofd_packets/00228362 [17:23:23]NVStorageSaveData ofd_packets/00228362 [17:23:23]File name is /storage/ofd_packets/00228362 [17:23:23]Write 301 bytes [17:23:23]NVStorageSaveData done [17:23:23]OFDSenderStorePacket done [17:23:23]KKMCreateOFDPacket done [17:23:23]NVStorageSaveData kkm_last_timestamp [17:23:23]File name is /storage/kkm_last_timestamp [17:23:23]Write 4 bytes [17:23:23]NVStorageSaveData done [17:23:23]ExternCall_PrintAddStr [17:23:23]wPrintStart [17:23:23]Write to MH i2c: 01 00 00 B5 60 15 [17:23:23]Write i2c OK [17:23:23]MH_I2C_Read... [17:23:23]Read from MH i2c: 01 [17:23:23]MH_I2C_Read... [17:23:23]Read from MH i2c: 01 07 00 [17:23:23]MH_I2C_Read... [17:23:23]Read from MH i2c: 01 07 00 B5 60 00 00 00 00 00 FF 0F 2A [17:23:23]RasterBufferAndPrint [17:23:23]line Счет N : (1)1964868 [17:23:23]line ИНН: 02508201610067 [17:23:23]line Контрольно-Кассовый Чек [17:23:23]line ПРОДАЖА [17:23:23]line ТРК (МРК, ГНК) : 33 [17:23:23]line Товар: 2710124130 [17:23:23]line Аи-92-К-5 [17:23:23]line 4.490 * 66.90 [17:23:23]line = 300.38 [17:23:23]line НДС 12% НСП 1% [17:23:23]line > о реализуемом товаре [17:23:23]line ИТОГО: 300.38 [17:23:23]line НСП 1% : 2.66 [17:23:23]line НДС 12% : 31.90 [17:23:23]line Наличными: 0.00 [17:23:23]line Безнал.: 300.38 [17:23:23]line Место: АЗС № 133 "Партнер Нефть" [17:23:23]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:23:23]line СНО: Общий режим [17:23:23]line Чек 326 22.10.2024 17:23 [17:23:23]line Смена: 535 ФФД: 1.0 [17:23:23]line ЗНМ: 0300000091 [17:23:23]line РНМ: 0000000000091685 [17:23:23]line Версия ККМ: 001 [17:23:23]line Платежная система: Mbank [17:23:23]line ФМ: 0000000000871839 [17:23:23]line ФД: 228362 [17:23:23]line ФПД: 122198498123137 [17:23:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172326&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228362&fm=122198498123137&tin=02508201610067®Number=0000000000091685&sum=30038 [17:23:23]written 0, free lines is 4095 [17:23:23]OFD Sender: Processing packet 228362 [packets to send 38, broken 37] [17:23:23]ProducePacketName [17:23:23]name=ofd_packets/00228362 [17:23:23]OFD Sender: To server: pG, [17:23:23]CommunicateWithHost lk.salyk.kg:30040 [17:23:23]ConnectInit lk.salyk.kg [17:23:23]Connected sock=10 [17:23:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 8E 06 07 01 3C CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 8E DF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0A 7C 03 00 35 04 06 00 6F 23 8E 12 9D 81 A5 10 84 D7 1D B6 DB D9 [17:23:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 50 44 47 00 71 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0A 7C 03 00 F4 03 04 00 86 8A 17 67 B6 04 01 00 00 DD 5D 0F 89 14 96 0F C5 [17:23:23]CommunicateWithHost err = 0 [17:23:23]CheckOFDResponse [17:23:23]1017 (14) - 77093643461234 [17:23:23]1041 (16) - 0000000000871839 [17:23:23]1040 (4) - 228362 [17:23:23]1012 (4) - 22.10.2024 11:20 [17:23:23]1206 (1) - 0 [17:23:23]OFD Sender: Remove packet 228362 [17:23:23]ProducePacketName [17:23:23]name=ofd_packets/00228362 [17:23:23]NVStorageDeleteData [17:23:23]Write to MH i2c: 01 00 00 DD 60 3D [17:23:23]Write i2c OK [17:23:23]MH_I2C_Read... [17:23:23]Read from MH i2c: 01 [17:23:23]MH_I2C_Read... [17:23:23]Read from MH i2c: 01 07 00 [17:23:23]MH_I2C_Read... [17:23:23]Read from MH i2c: 01 07 00 DD 60 00 00 00 00 00 E7 0C 37 [17:23:23]RasterBufferAndPrint [17:23:23]line [17:23:23]line [17:23:23]line [17:23:23]line [17:23:23]line [17:23:23]written 0, free lines is 3307 [17:23:23]MH_Cut [17:23:23]Write to MH i2c: D1 01 00 E4 60 01 16 [17:23:24]Write i2c OK [17:23:24]MH_I2C_Read... [17:23:24]Read from MH i2c: D1 [17:23:24]MH_I2C_Read... [17:23:24]Read from MH i2c: D1 01 00 [17:23:24]MH_I2C_Read... [17:23:24]Read from MH i2c: D1 01 00 E4 60 00 15 [17:23:24]Write to MH i2c: 01 00 00 E5 60 45 [17:23:24]Write i2c OK [17:23:24]MH_I2C_Read... [17:23:24]OFD Sender: No OFD packet to send [17:23:24]*** Cut start [17:23:24]*** Partial cut [17:23:24]*** CUTSNS_PIN = 1 [17:23:24]*** CUTSNS_PIN = 0 [17:23:25]*** Brake cut motor [17:23:25]Read from MH i2c: 01 [17:23:25]MH_I2C_Read... [17:23:25]*** Stop cut motor [17:23:25]*** Cut end [17:23:25]Read from MH i2c: 01 07 00 [17:23:25]MH_I2C_Read... [17:23:25]Read from MH i2c: 01 07 00 E5 60 00 00 00 00 00 FF 0F 5A [17:23:25]process_action close_receipt done [17:23:25]requested_data is exist [17:23:25]produce_requested_data [17:23:25]requested_item fm.sn is exist - process it [17:23:25]wFMCommunicate request_size=4 [17:23:25]MH_SAM_APDU [17:23:25]CAPDU: 80 11 00 00 [17:23:25]Write to MH i2c: E2 08 00 E6 60 80 11 00 00 00 00 00 00 C0 [17:23:25]Write i2c OK [17:23:25]MH_I2C_Read... [17:23:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:25]Read from MH i2c: E2 [17:23:25]MH_I2C_Read... [17:23:25]Read from MH i2c: E2 17 00 [17:23:25]MH_I2C_Read... [17:23:25]Read from MH i2c: E2 17 00 E6 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 17 [17:23:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:23:25]wFMCommunicate OK [17:23:25]requested_item fd.num is exist - process it [17:23:25]SAM_PROTO_GetFieldsCounters [17:23:25]wFMCommunicate request_size=4 [17:23:25]MH_SAM_APDU [17:23:25]CAPDU: 80 13 00 00 [17:23:25]Write to MH i2c: E2 08 00 E7 60 80 13 00 00 00 00 00 00 C3 [17:23:25]Write i2c OK [17:23:25]MH_I2C_Read... [17:23:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:23:25]Read from MH i2c: E2 [17:23:25]MH_I2C_Read... [17:23:25]Read from MH i2c: E2 62 00 [17:23:25]MH_I2C_Read... [17:23:25]Read from MH i2c: E2 62 00 E7 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0A 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 63 [17:23:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0A 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:23:25]wFMCommunicate OK [17:23:25]SAM_PROTO_GetFieldsCounters done [17:23:25]requested_item shift.num is exist - process it [17:23:25]requested_item shift.opened is exist - process it [17:23:25]req_shift_opened [17:23:25]FM_GetShiftState [17:23:25]SAM_PROTO_GetShiftState [17:23:25]wFMCommunicate request_size=4 [17:23:25]MH_SAM_APDU [17:23:25]CAPDU: 80 13 01 00 [17:23:25]Write to MH i2c: E2 08 00 E8 60 80 13 01 00 00 00 00 00 C5 [17:23:25]Write i2c OK [17:23:25]MH_I2C_Read... [17:23:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:25]Read from MH i2c: E2 [17:23:25]MH_I2C_Read... [17:23:25]Read from MH i2c: E2 0E 00 [17:23:25]MH_I2C_Read... [17:23:25]Read from MH i2c: E2 0E 00 E8 60 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 8C [17:23:25]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:23:25]wFMCommunicate OK [17:23:25]SAM_PROTO_GetShiftState done [17:23:25]FM_GetShiftState done [17:23:25]req_shift_opened done [17:23:25]requested_item shift.open_date is exist - process it [17:23:25]req_shift_open_date [17:23:25]req_shift_open_date done [17:23:25]produce_requested_data done [17:23:25]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228362,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [17:23:25]process_action_free close_receipt [17:23:25]json_value_free [17:23:25]json_value_free done [17:23:25]process_json_proto returns [17:23:25]Send response to host [17:23:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228362,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [17:23:25]free response buf [17:23:25]execute_script done [17:23:25]execute_script returns [17:23:25]free content buf [17:23:25]Sock 9.Close socket [17:23:25]Sock 9.Thread stoped [17:23:29]OFD Sender: No OFD packet to send [17:23:34]OFD Sender: No OFD packet to send [17:23:39]OFD Sender: No OFD packet to send [17:23:44]OFD Sender: No OFD packet to send [17:23:49]OFD Sender: No OFD packet to send [17:23:54]OFD Sender: No OFD packet to send [17:23:59]OFD Sender: No OFD packet to send [17:24:00]accept exits with 7 [17:24:00]New connection [17:24:00]New thread 3066994020 created [17:24:00]Thread 3067137380 joined [17:24:00]Waiting for new connection... [17:24:00] Sock 7.Parse request [17:24:00]Sock 7.Check first char [17:24:00]Sock 7.First char is OK [17:24:00]request: POST /json_proto HTTP/1.0 [17:24:00]Method: POST [17:24:00]URL: /json_proto [17:24:00]Method is POST - this is cgi request [17:24:00]url: /json_proto [17:24:00]query_string will be loaded in cgi processing [17:24:00]execute_cgi json_proto POST (null) [17:24:00]execute_cgi path=json_proto method=POST [17:24:00]POST find Content-Length [17:24:00]Host: 172.17.44.195:8080 [17:24:00]Content-Length: 660 [17:24:00]Content-Type: application/json [17:24:00] [17:24:00]POST finish read [17:24:00]Found Content-Length = 660 [17:24:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "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" ] } } [17:24:00]execute_script... [17: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)1964869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "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" ] } } [17:24:00]POST & json_proto [17:24:00]process_json_proto [17:24:00]json parsed OK: [17:24:00]protocol is kg_v1.0 [17:24:00]action value=close_receipt [17:24:00]process_action close_receipt [17:24:00]cmd_close_receipt [17:24:00]MH_GetDate [17:24:00]Write to MH i2c: F0 00 00 E9 60 38 [17:24:00]Write i2c OK [17:24:00]MH_I2C_Read... [17:24:00]Read from MH i2c: F0 [17:24:00]MH_I2C_Read... [17:24:00]Read from MH i2c: F0 09 00 [17:24:00]MH_I2C_Read... [17:24:00]Read from MH i2c: F0 09 00 E9 60 00 B5 DF 17 67 82 C9 CF 66 D3 [17:24:00]GetLastDocTimeStamp 1729617806 [17:24:00]current date 1729617845 [17:24:00]FM_GetShiftState [17:24:00]SAM_PROTO_GetShiftState [17:24:00]wFMCommunicate request_size=4 [17:24:00]MH_SAM_APDU [17:24:00]CAPDU: 80 13 01 00 [17:24:00]Write to MH i2c: E2 08 00 EA 60 80 13 01 00 00 00 00 00 C7 [17:24:00]Write i2c OK [17:24:00]MH_I2C_Read... [17:24:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:00]Read from MH i2c: E2 [17:24:00]MH_I2C_Read... [17:24:00]Read from MH i2c: E2 0E 00 [17:24:00]MH_I2C_Read... [17:24:00]Read from MH i2c: E2 0E 00 EA 60 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 8E [17:24:00]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:24:00]wFMCommunicate OK [17:24:00]SAM_PROTO_GetShiftState done [17:24:00]FM_GetShiftState done [17:24:00]opened in 1729555538 [17:24:00]opened+sec_in_day 1729641938 [17:24:00]quantity*price = 70041 [17:24:00]sum+1 = 70043 [17:24:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 327 22.10.2024 17:24 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228363 ФПД: 59783575181520 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172405&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228363&fm=59783575181520&tin=02508201610067®Number=0000000000091685&sum=70000 [17:24:01]StoreToDocumentArchive [17:24:01]shift 535 fd 228363 [17:24:01]save to /storage/0535/doc_00228363 [17:24:01]save last doc name /storage/0535/doc_00228363 to /storage/kkm_last_doc_name [17:24:01]save OK [17:24:01]Clear old archive folders... [17:24:01]ProcessDocumentItem done err = 0, tmpTLVsize=244 [17:24:01]tlvbuf is B6F855D0 [17:24:01]SAM_PROTO_ClearQueue [17:24:01]wFMCommunicate request_size=4 [17:24:01]MH_SAM_APDU [17:24:01]CAPDU: 80 09 00 00 [17:24:01]Write to MH i2c: E2 08 00 F7 60 80 09 00 00 00 00 00 00 C9 [17:24:01]Write i2c OK [17:24:01]MH_I2C_Read... [17:24:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:01]Read from MH i2c: E2 [17:24:01]MH_I2C_Read... [17:24:01]Read from MH i2c: E2 03 00 [17:24:01]MH_I2C_Read... [17:24:01]Read from MH i2c: E2 03 00 F7 60 00 90 00 CB [17:24:01]RAPDU: 90 00 [17:24:01]wFMCommunicate OK [17:24:01]SAM_PROTO_ClearQueue done [17:24:01]KKMCreateOFDPacket [17:24:01]OFDProtocolAddRootSTLVToBuf [17:24:01]FM_MakeSignedData [17:24:01]FM_MakeSignedData [17:24:01]SAM_PROTO_SignData [17:24:01]wFMCommunicate request_size=4 [17:24:01]MH_SAM_APDU [17:24:01]CAPDU: 80 0D 01 02 [17:24:01]Write to MH i2c: E2 08 00 F8 60 80 0D 01 02 00 00 00 00 D1 [17:24:01]Write i2c OK [17:24:01]MH_I2C_Read... [17:24:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:01]Read from MH i2c: E2 [17:24:01]MH_I2C_Read... [17:24:01]Read from MH i2c: E2 03 00 [17:24:01]MH_I2C_Read... [17:24:01]Read from MH i2c: E2 03 00 F8 60 00 90 00 CC [17:24:01]RAPDU: 90 00 [17:24:01]wFMCommunicate OK [17:24:01]wFMCommunicate request_size=253 [17:24:01]MH_SAM_APDU [17:24:01]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 47 01 00 00 F4 03 04 00 B5 DF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0B 7C 03 00 35 04 06 00 36 5F 72 C3 18 D0 [17:24:01]Write to MH i2c: E2 00 01 F9 60 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 47 01 00 00 F4 03 04 00 B5 DF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0B 7C 03 00 35 04 06 00 36 5F 72 C3 18 D0 00 00 83 [17:24:01]Write i2c OK [17:24:01]MH_I2C_Read... [17:24:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:02]Read from MH i2c: E2 [17:24:02]MH_I2C_Read... [17:24:02]Read from MH i2c: E2 03 00 [17:24:02]MH_I2C_Read... [17:24:02]Read from MH i2c: E2 03 00 F9 60 00 90 00 CD [17:24:02]RAPDU: 90 00 [17:24:02]wFMCommunicate OK [17:24:02]wFMCommunicate request_size=4 [17:24:02]MH_SAM_APDU [17:24:02]CAPDU: 80 0D 03 02 [17:24:02]Write to MH i2c: E2 08 00 FA 60 80 0D 03 02 00 00 00 00 D5 [17:24:02]Write i2c OK [17:24:02]MH_I2C_Read... [17:24:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:02]Read from MH i2c: E2 [17:24:02]MH_I2C_Read... [17:24:02]Read from MH i2c: E2 0B 00 [17:24:02]MH_I2C_Read... [17:24:02]Read from MH i2c: E2 0B 00 FA 60 00 B6 D7 79 89 99 DA D3 45 90 00 F0 [17:24:02]RAPDU: B6 D7 79 89 99 DA D3 45 90 00 [17:24:02]wFMCommunicate OK [17:24:02]SAM_PROTO_SignData done [17:24:02]FM_MakeSignedData done [17:24:02]CreateOFDProtocolMessage [17:24:02]wFMCommunicate request_size=4 [17:24:02]MH_SAM_APDU [17:24:02]CAPDU: 80 11 00 00 [17:24:02]Write to MH i2c: E2 08 00 FB 60 80 11 00 00 00 00 00 00 D5 [17:24:02]Write i2c OK [17:24:02]MH_I2C_Read... [17:24:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:02]Read from MH i2c: E2 [17:24:02]MH_I2C_Read... [17:24:02]Read from MH i2c: E2 17 00 [17:24:02]MH_I2C_Read... [17:24:02]Read from MH i2c: E2 17 00 FB 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2C [17:24:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:24:02]wFMCommunicate OK [17:24:02]CreateOFDProtocolMessage done [17:24:02]OFDSenderStorePacket 228363 [17:24:02]StoreOFDPacket docnum=228363 [17:24:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 19 CC 00 01 8D CD 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 47 01 00 00 F4 03 04 00 B5 DF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0B 7C 03 00 35 04 06 00 36 5F 72 C3 18 D0 B6 D7 79 89 99 DA D3 45 [17:24:02]CheckFolder [17:24:02]dirname=/storage/ofd_packets [17:24:02]CheckFolder done [17:24:02]ProducePacketName [17:24:02]name=ofd_packets/00228363 [17:24:02]NVStorageSaveData ofd_packets/00228363 [17:24:02]File name is /storage/ofd_packets/00228363 [17:24:02]Write 294 bytes [17:24:02]NVStorageSaveData done [17:24:02]OFDSenderStorePacket done [17:24:02]KKMCreateOFDPacket done [17:24:02]NVStorageSaveData kkm_last_timestamp [17:24:02]File name is /storage/kkm_last_timestamp [17:24:02]Write 4 bytes [17:24:02]NVStorageSaveData done [17:24:02]ExternCall_PrintAddStr [17:24:02]wPrintStart [17:24:02]Write to MH i2c: 01 00 00 FC 60 5C [17:24:02]Write i2c OK [17:24:02]MH_I2C_Read... [17:24:02]Read from MH i2c: 01 [17:24:02]MH_I2C_Read... [17:24:02]Read from MH i2c: 01 07 00 [17:24:02]MH_I2C_Read... [17:24:02]Read from MH i2c: 01 07 00 FC 60 00 00 00 00 00 FF 0F 71 [17:24:02]RasterBufferAndPrint [17:24:02]line Счет N : (1)1964869 [17:24:02]line ИНН: 02508201610067 [17:24:02]line Контрольно-Кассовый Чек [17:24:02]line ПРОДАЖА [17:24:02]line ТРК (МРК, ГНК) : 62 [17:24:02]line Товар: 2710124130 [17:24:02]line SU-92 [17:24:02]line 10.240 * 68.40 [17:24:02]line = 700.42 [17:24:02]line НДС 12% НСП 1% [17:24:02]line > о реализуемом товаре [17:24:02]line ОКРУГЛЕНИЕ: -0.42 [17:24:02]line ИТОГО: 700.00 [17:24:02]line Внесено: 700.00 [17:24:02]line СДАЧА: 0.00 [17:24:02]line НСП 1% : 6.20 [17:24:02]line НДС 12% : 74.38 [17:24:02]line Наличными: 700.00 [17:24:02]line Безнал.: 0.00 [17:24:02]line Место: АЗС № 133 "Партнер Нефть" [17:24:02]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:24:02]line СНО: Общий режим [17:24:02]line Чек 327 22.10.2024 17:24 [17:24:02]line Смена: 535 ФФД: 1.0 [17:24:02]line ЗНМ: 0300000091 [17:24:02]line РНМ: 0000000000091685 [17:24:02]line Версия ККМ: 001 [17:24:02]line ФМ: 0000000000871839 [17:24:02]line ФД: 228363 [17:24:02]line ФПД: 59783575181520 [17:24:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172405&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228363&fm=59783575181520&tin=02508201610067®Number=0000000000091685&sum=70000 [17:24:02]OFD Sender: Processing packet 228363 [packets to send 38, broken 37] [17:24:02]ProducePacketName [17:24:02]name=ofd_packets/00228363 [17:24:02]OFD Sender: To server: pG, [17:24:02]CommunicateWithHost lk.salyk.kg:30040 [17:24:02]ConnectInit lk.salyk.kg [17:24:02]written 0, free lines is 4095 [17:24:02]Connected sock=10 [17:24:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 19 CC 00 01 8D CD 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 47 01 00 00 F4 03 04 00 B5 DF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0B 7C 03 00 35 04 06 00 36 5F 72 C3 18 D0 B6 D7 79 89 99 DA D3 45 [17:24:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 22 BB 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 38 37 31 38 33 39 10 04 04 00 0B 7C 03 00 F4 03 04 00 AD 8A 17 67 B6 04 01 00 00 F2 4A 98 E8 6D C1 0F FA [17:24:03]CommunicateWithHost err = 0 [17:24:03]CheckOFDResponse [17:24:03]1017 (14) - 77093643461234 [17:24:03]1041 (16) - 0000000000871839 [17:24:03]1040 (4) - 228363 [17:24:03]1012 (4) - 22.10.2024 11:21 [17:24:03]1206 (1) - 0 [17:24:03]OFD Sender: Remove packet 228363 [17:24:03]ProducePacketName [17:24:03]name=ofd_packets/00228363 [17:24:03]NVStorageDeleteData [17:24:03]Write to MH i2c: 01 00 00 26 61 87 [17:24:03]Write i2c OK [17:24:03]MH_I2C_Read... [17:24:03]Read from MH i2c: 01 [17:24:03]MH_I2C_Read... [17:24:03]Read from MH i2c: 01 07 00 [17:24:03]MH_I2C_Read... [17:24:03]Read from MH i2c: 01 07 00 26 61 00 00 00 00 00 B9 0C 53 [17:24:03]RasterBufferAndPrint [17:24:03]line [17:24:03]line [17:24:03]line [17:24:03]line [17:24:03]line [17:24:03]written 0, free lines is 3263 [17:24:03]MH_Cut [17:24:03]Write to MH i2c: D1 01 00 2D 61 01 60 [17:24:03]Write i2c OK [17:24:03]MH_I2C_Read... [17:24:03]Read from MH i2c: D1 [17:24:03]MH_I2C_Read... [17:24:03]Read from MH i2c: D1 01 00 [17:24:03]MH_I2C_Read... [17:24:03]Read from MH i2c: D1 01 00 2D 61 00 5F [17:24:03]Write to MH i2c: 01 00 00 2E 61 8F [17:24:03]Write i2c OK [17:24:03]MH_I2C_Read... [17:24:03]OFD Sender: No OFD packet to send [17:24:04]*** Cut start [17:24:04]*** Partial cut [17:24:04]*** CUTSNS_PIN = 1 [17:24:04]*** CUTSNS_PIN = 0 [17:24:04]*** Brake cut motor [17:24:04]Read from MH i2c: 01 [17:24:04]MH_I2C_Read... [17:24:04]*** Stop cut motor [17:24:04]*** Cut end [17:24:04]Read from MH i2c: 01 07 00 [17:24:04]MH_I2C_Read... [17:24:04]Read from MH i2c: 01 07 00 2E 61 00 00 00 00 00 FF 0F A4 [17:24:04]process_action close_receipt done [17:24:04]requested_data is exist [17:24:04]produce_requested_data [17:24:04]requested_item fm.sn is exist - process it [17:24:04]wFMCommunicate request_size=4 [17:24:04]MH_SAM_APDU [17:24:04]CAPDU: 80 11 00 00 [17:24:04]Write to MH i2c: E2 08 00 2F 61 80 11 00 00 00 00 00 00 0A [17:24:04]Write i2c OK [17:24:04]MH_I2C_Read... [17:24:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:04]Read from MH i2c: E2 [17:24:04]MH_I2C_Read... [17:24:04]Read from MH i2c: E2 17 00 [17:24:04]MH_I2C_Read... [17:24:04]Read from MH i2c: E2 17 00 2F 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 61 [17:24:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:24:04]wFMCommunicate OK [17:24:04]requested_item fd.num is exist - process it [17:24:04]SAM_PROTO_GetFieldsCounters [17:24:04]wFMCommunicate request_size=4 [17:24:04]MH_SAM_APDU [17:24:04]CAPDU: 80 13 00 00 [17:24:04]Write to MH i2c: E2 08 00 30 61 80 13 00 00 00 00 00 00 0D [17:24:04]Write i2c OK [17:24:04]MH_I2C_Read... [17:24:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:04]Read from MH i2c: E2 [17:24:04]MH_I2C_Read... [17:24:04]Read from MH i2c: E2 62 00 [17:24:04]MH_I2C_Read... [17:24:04]Read from MH i2c: E2 62 00 30 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0B 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 B1 [17:24:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0B 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:24:04]wFMCommunicate OK [17:24:04]SAM_PROTO_GetFieldsCounters done [17:24:04]requested_item shift.num is exist - process it [17:24:04]requested_item shift.opened is exist - process it [17:24:04]req_shift_opened [17:24:04]FM_GetShiftState [17:24:04]SAM_PROTO_GetShiftState [17:24:04]wFMCommunicate request_size=4 [17:24:04]MH_SAM_APDU [17:24:04]CAPDU: 80 13 01 00 [17:24:04]Write to MH i2c: E2 08 00 31 61 80 13 01 00 00 00 00 00 0F [17:24:04]Write i2c OK [17:24:04]MH_I2C_Read... [17:24:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:04]Read from MH i2c: E2 [17:24:04]MH_I2C_Read... [17:24:04]Read from MH i2c: E2 0E 00 [17:24:04]MH_I2C_Read... [17:24:04]Read from MH i2c: E2 0E 00 31 61 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 D6 [17:24:04]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:24:04]wFMCommunicate OK [17:24:04]SAM_PROTO_GetShiftState done [17:24:04]FM_GetShiftState done [17:24:04]req_shift_opened done [17:24:04]requested_item shift.open_date is exist - process it [17:24:04]req_shift_open_date [17:24:04]req_shift_open_date done [17:24:04]produce_requested_data done [17:24:04]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228363,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [17:24:04]process_action_free close_receipt [17:24:04]json_value_free [17:24:04]json_value_free done [17:24:04]process_json_proto returns [17:24:04]Send response to host [17:24:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228363,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [17:24:04]free response buf [17:24:04]execute_script done [17:24:04]execute_script returns [17:24:04]free content buf [17:24:04]Sock 7.Close socket [17:24:04]Sock 7.Thread stoped [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:23]accept exits with 9 [17:24:23]New connection [17:24:23]New thread 3067137380 created [17:24:23]Thread 3066994020 joined [17:24:23]Waiting for new connection... [17:24:23] Sock 9.Parse request [17:24:23]Sock 9.Check first char [17:24:23]Sock 9.First char is OK [17:24:23]request: POST /json_proto HTTP/1.0 [17:24:23]Method: POST [17:24:23]URL: /json_proto [17:24:23]Method is POST - this is cgi request [17:24:23]url: /json_proto [17:24:23]query_string will be loaded in cgi processing [17:24:23]execute_cgi json_proto POST (null) [17:24:23]execute_cgi path=json_proto method=POST [17:24:23]POST find Content-Length [17:24:23]Host: 172.17.44.195:8080 [17:24:23]Content-Length: 621 [17:24:23]Content-Type: application/json [17:24:23] [17:24:23]POST finish read [17:24:23]Found Content-Length = 621 [17:24:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:23]execute_script... [17:24:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:23]POST & json_proto [17:24:23]process_json_proto [17:24:23]json parsed OK: [17:24:23]protocol is kg_v1.0 [17:24:23]action value=close_receipt [17:24:23]process_action close_receipt [17:24:23]cmd_close_receipt [17:24:23]MH_GetDate [17:24:23]Write to MH i2c: F0 00 00 32 61 82 [17:24:23]Write i2c OK [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: F0 [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: F0 09 00 [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: F0 09 00 32 61 00 CC DF 17 67 82 C9 CF 66 34 [17:24:23]GetLastDocTimeStamp 1729617845 [17:24:23]current date 1729617868 [17:24:23]FM_GetShiftState [17:24:23]SAM_PROTO_GetShiftState [17:24:23]wFMCommunicate request_size=4 [17:24:23]MH_SAM_APDU [17:24:23]CAPDU: 80 13 01 00 [17:24:23]Write to MH i2c: E2 08 00 33 61 80 13 01 00 00 00 00 00 11 [17:24:23]Write i2c OK [17:24:23]MH_I2C_Read... [17:24:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:23]Read from MH i2c: E2 [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: E2 0E 00 [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: E2 0E 00 33 61 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 D8 [17:24:23]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:24:23]wFMCommunicate OK [17:24:23]SAM_PROTO_GetShiftState done [17:24:23]FM_GetShiftState done [17:24:23]opened in 1729555538 [17:24:23]opened+sec_in_day 1729641938 [17:24:23]quantity*price = 50000 [17:24:23]sum+1 = 50001 [17:24:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 328 22.10.2024 17:24 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228364 ФПД: 269287109348980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172428&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228364&fm=269287109348980&tin=02508201610067®Number=0000000000091685&sum=50000 [17:24:24]StoreToDocumentArchive [17:24:24]shift 535 fd 228364 [17:24:24]save to /storage/0535/doc_00228364 [17:24:24]save last doc name /storage/0535/doc_00228364 to /storage/kkm_last_doc_name [17:24:24]save OK [17:24:24]Clear old archive folders... [17:24:24]ProcessDocumentItem done err = 0, tmpTLVsize=244 [17:24:24]tlvbuf is 0085B000 [17:24:24]SAM_PROTO_ClearQueue [17:24:24]wFMCommunicate request_size=4 [17:24:24]MH_SAM_APDU [17:24:24]CAPDU: 80 09 00 00 [17:24:24]Write to MH i2c: E2 08 00 40 61 80 09 00 00 00 00 00 00 13 [17:24:24]Write i2c OK [17:24:24]MH_I2C_Read... [17:24:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:24]Read from MH i2c: E2 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: E2 03 00 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: E2 03 00 40 61 00 90 00 15 [17:24:24]RAPDU: 90 00 [17:24:24]wFMCommunicate OK [17:24:24]SAM_PROTO_ClearQueue done [17:24:24]KKMCreateOFDPacket [17:24:24]OFDProtocolAddRootSTLVToBuf [17:24:24]FM_MakeSignedData [17:24:24]FM_MakeSignedData [17:24:24]SAM_PROTO_SignData [17:24:24]wFMCommunicate request_size=4 [17:24:24]MH_SAM_APDU [17:24:24]CAPDU: 80 0D 01 02 [17:24:24]Write to MH i2c: E2 08 00 41 61 80 0D 01 02 00 00 00 00 1B [17:24:24]Write i2c OK [17:24:24]MH_I2C_Read... [17:24:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:25]Read from MH i2c: E2 [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: E2 03 00 [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: E2 03 00 41 61 00 90 00 16 [17:24:25]RAPDU: 90 00 [17:24:25]wFMCommunicate OK [17:24:25]wFMCommunicate request_size=253 [17:24:25]MH_SAM_APDU [17:24:25]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 CC DF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0C 7C 03 00 35 04 06 00 F4 EA 4A 7E CE 74 [17:24:25]Write to MH i2c: E2 00 01 42 61 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 CC DF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0C 7C 03 00 35 04 06 00 F4 EA 4A 7E CE 74 00 00 1B [17:24:25]Write i2c OK [17:24:25]MH_I2C_Read... [17:24:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:25]Read from MH i2c: E2 [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: E2 03 00 [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: E2 03 00 42 61 00 90 00 17 [17:24:25]RAPDU: 90 00 [17:24:25]wFMCommunicate OK [17:24:25]wFMCommunicate request_size=4 [17:24:25]MH_SAM_APDU [17:24:25]CAPDU: 80 0D 03 02 [17:24:25]Write to MH i2c: E2 08 00 43 61 80 0D 03 02 00 00 00 00 1F [17:24:25]Write i2c OK [17:24:25]MH_I2C_Read... [17:24:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:25]Read from MH i2c: E2 [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: E2 0B 00 [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: E2 0B 00 43 61 00 A2 F5 8B 9E 4F 8B DF 98 90 00 31 [17:24:25]RAPDU: A2 F5 8B 9E 4F 8B DF 98 90 00 [17:24:25]wFMCommunicate OK [17:24:25]SAM_PROTO_SignData done [17:24:25]FM_MakeSignedData done [17:24:25]CreateOFDProtocolMessage [17:24:25]wFMCommunicate request_size=4 [17:24:25]MH_SAM_APDU [17:24:25]CAPDU: 80 11 00 00 [17:24:25]Write to MH i2c: E2 08 00 44 61 80 11 00 00 00 00 00 00 1F [17:24:25]Write i2c OK [17:24:25]MH_I2C_Read... [17:24:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:25]Read from MH i2c: E2 [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: E2 17 00 [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: E2 17 00 44 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 76 [17:24:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:24:25]wFMCommunicate OK [17:24:25]CreateOFDProtocolMessage done [17:24:25]OFDSenderStorePacket 228364 [17:24:25]StoreOFDPacket docnum=228364 [17:24:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 AB 96 00 01 FB 9C 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 CC DF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0C 7C 03 00 35 04 06 00 F4 EA 4A 7E CE 74 A2 F5 8B 9E 4F 8B DF 98 [17:24:25]CheckFolder [17:24:25]dirname=/storage/ofd_packets [17:24:25]CheckFolder done [17:24:25]ProducePacketName [17:24:25]name=ofd_packets/00228364 [17:24:25]NVStorageSaveData ofd_packets/00228364 [17:24:25]File name is /storage/ofd_packets/00228364 [17:24:25]Write 294 bytes [17:24:25]NVStorageSaveData done [17:24:25]OFDSenderStorePacket done [17:24:25]KKMCreateOFDPacket done [17:24:25]NVStorageSaveData kkm_last_timestamp [17:24:25]File name is /storage/kkm_last_timestamp [17:24:25]Write 4 bytes [17:24:25]NVStorageSaveData done [17:24:25]ExternCall_PrintAddStr [17:24:25]wPrintStart [17:24:25]Write to MH i2c: 01 00 00 45 61 A6 [17:24:25]Write i2c OK [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: 01 [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: 01 07 00 [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: 01 07 00 45 61 00 00 00 00 00 FF 0F BB [17:24:25]RasterBufferAndPrint [17:24:25]line Счет N : (1)1964870 [17:24:25]line ИНН: 02508201610067 [17:24:25]line Контрольно-Кассовый Чек [17:24:25]line ПРОДАЖА [17:24:25]line ТРК (МРК, ГНК) : 52 [17:24:25]line Товар: 2710124130 [17:24:25]line SU-92 [17:24:25]line 7.310 * 68.40 [17:24:25]line = 500.00 [17:24:25]line НДС 12% НСП 1% [17:24:25]line > о реализуемом товаре [17:24:25]line ИТОГО: 500.00 [17:24:25]line НСП 1% : 4.42 [17:24:25]line НДС 12% : 53.10 [17:24:25]line Наличными: 500.00 [17:24:25]line Безнал.: 0.00 [17:24:25]line Место: АЗС № 133 "Партнер Нефть" [17:24:25]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:24:25]line СНО: Общий режим [17:24:25]line Чек 328 22.10.2024 17:24 [17:24:25]line Смена: 535 ФФД: 1.0 [17:24:25]line ЗНМ: 0300000091 [17:24:25]line РНМ: 0000000000091685 [17:24:25]line Версия ККМ: 001 [17:24:25]line ФМ: 0000000000871839 [17:24:25]line ФД: 228364 [17:24:25]line ФПД: 269287109348980 [17:24:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172428&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228364&fm=269287109348980&tin=02508201610067®Number=0000000000091685&sum=50000 [17:24:25]written 0, free lines is 4095 [17:24:25]OFD Sender: Processing packet 228364 [packets to send 38, broken 37] [17:24:25]ProducePacketName [17:24:25]name=ofd_packets/00228364 [17:24:25]OFD Sender: To server: pG, [17:24:25]CommunicateWithHost lk.salyk.kg:30040 [17:24:25]ConnectInit lk.salyk.kg [17:24:25]Write to MH i2c: 01 00 00 6C 61 CD [17:24:25]Write i2c OK [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: 01 [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: 01 07 00 [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: 01 07 00 6C 61 00 00 00 00 00 EC 0C CC [17:24:25]RasterBufferAndPrint [17:24:25]line [17:24:25]line [17:24:25]line [17:24:25]line [17:24:25]line [17:24:25]written 0, free lines is 3313 [17:24:25]Connected sock=10 [17:24:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 AB 96 00 01 FB 9C 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 CC DF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0C 7C 03 00 35 04 06 00 F4 EA 4A 7E CE 74 A2 F5 8B 9E 4F 8B DF 98 [17:24:25]MH_Cut [17:24:25]Write to MH i2c: D1 01 00 73 61 01 A6 [17:24:25]Write i2c OK [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: D1 [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: D1 01 00 [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: D1 01 00 73 61 00 A5 [17:24:25]Write to MH i2c: 01 00 00 74 61 D5 [17:24:25]Write i2c OK [17:24:25]MH_I2C_Read... [17:24:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 45 F1 47 00 19 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0C 7C 03 00 F4 03 04 00 C4 8A 17 67 B6 04 01 00 00 BF 87 52 C9 EE EF D5 82 [17:24:26]CommunicateWithHost err = 0 [17:24:26]CheckOFDResponse [17:24:26]1017 (14) - 77093643461234 [17:24:26]1041 (16) - 0000000000871839 [17:24:26]1040 (4) - 228364 [17:24:26]1012 (4) - 22.10.2024 11:21 [17:24:26]1206 (1) - 0 [17:24:26]OFD Sender: Remove packet 228364 [17:24:26]ProducePacketName [17:24:26]name=ofd_packets/00228364 [17:24:26]NVStorageDeleteData [17:24:26]OFD Sender: No OFD packet to send [17:24:26]*** Cut start [17:24:26]*** Partial cut [17:24:26]*** CUTSNS_PIN = 1 [17:24:26]*** CUTSNS_PIN = 0 [17:24:26]*** Brake cut motor [17:24:27]Read from MH i2c: 01 [17:24:27]MH_I2C_Read... [17:24:27]*** Stop cut motor [17:24:27]*** Cut end [17:24:27]Read from MH i2c: 01 07 00 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: 01 07 00 74 61 00 00 00 00 00 FF 0F EA [17:24:27]process_action close_receipt done [17:24:27]requested_data is exist [17:24:27]produce_requested_data [17:24:27]requested_item fm.sn is exist - process it [17:24:27]wFMCommunicate request_size=4 [17:24:27]MH_SAM_APDU [17:24:27]CAPDU: 80 11 00 00 [17:24:27]Write to MH i2c: E2 08 00 75 61 80 11 00 00 00 00 00 00 50 [17:24:27]Write i2c OK [17:24:27]MH_I2C_Read... [17:24:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:27]Read from MH i2c: E2 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: E2 17 00 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: E2 17 00 75 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A7 [17:24:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:24:27]wFMCommunicate OK [17:24:27]requested_item fd.num is exist - process it [17:24:27]SAM_PROTO_GetFieldsCounters [17:24:27]wFMCommunicate request_size=4 [17:24:27]MH_SAM_APDU [17:24:27]CAPDU: 80 13 00 00 [17:24:27]Write to MH i2c: E2 08 00 76 61 80 13 00 00 00 00 00 00 53 [17:24:27]Write i2c OK [17:24:27]MH_I2C_Read... [17:24:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:27]Read from MH i2c: E2 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: E2 62 00 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: E2 62 00 76 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0C 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 FB [17:24:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0C 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:24:27]wFMCommunicate OK [17:24:27]SAM_PROTO_GetFieldsCounters done [17:24:27]requested_item shift.num is exist - process it [17:24:27]requested_item shift.opened is exist - process it [17:24:27]req_shift_opened [17:24:27]FM_GetShiftState [17:24:27]SAM_PROTO_GetShiftState [17:24:27]wFMCommunicate request_size=4 [17:24:27]MH_SAM_APDU [17:24:27]CAPDU: 80 13 01 00 [17:24:27]Write to MH i2c: E2 08 00 77 61 80 13 01 00 00 00 00 00 55 [17:24:27]Write i2c OK [17:24:27]MH_I2C_Read... [17:24:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:27]Read from MH i2c: E2 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: E2 0E 00 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: E2 0E 00 77 61 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 1C [17:24:27]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:24:27]wFMCommunicate OK [17:24:27]SAM_PROTO_GetShiftState done [17:24:27]FM_GetShiftState done [17:24:27]req_shift_opened done [17:24:27]requested_item shift.open_date is exist - process it [17:24:27]req_shift_open_date [17:24:27]req_shift_open_date done [17:24:27]produce_requested_data done [17:24:27]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228364,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [17:24:27]process_action_free close_receipt [17:24:27]json_value_free [17:24:27]json_value_free done [17:24:27]process_json_proto returns [17:24:27]Send response to host [17:24:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228364,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [17:24:27]free response buf [17:24:27]execute_script done [17:24:27]execute_script returns [17:24:27]free content buf [17:24:27]Sock 9.Close socket [17:24:27]Sock 9.Thread stoped [17:24:31]OFD Sender: No OFD packet to send [17:24:36]OFD Sender: No OFD packet to send [17:24:41]OFD Sender: No OFD packet to send [17:24:46]OFD Sender: No OFD packet to send [17:24:51]OFD Sender: No OFD packet to send [17:24:56]OFD Sender: No OFD packet to send [17:25:01]OFD Sender: No OFD packet to send [17:25:06]OFD Sender: No OFD packet to send [17:25:11]OFD Sender: No OFD packet to send [17:25:16]OFD Sender: No OFD packet to send [17:25:21]OFD Sender: No OFD packet to send [17:25:26]OFD Sender: No OFD packet to send [17:25:31]OFD Sender: No OFD packet to send [17:25:36]OFD Sender: No OFD packet to send [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:26]OFD Sender: No OFD packet to send [17:26:31]OFD Sender: No OFD packet to send [17:26:32]accept exits with 7 [17:26:32]New connection [17:26:32]New thread 3066994020 created [17:26:32]Thread 3067137380 joined [17:26:32]Waiting for new connection... [17:26:32] Sock 7.Parse request [17:26:32]Sock 7.Check first char [17:26:32]Sock 7.First char is OK [17:26:32]request: POST /json_proto HTTP/1.0 [17:26:32]Method: POST [17:26:32]URL: /json_proto [17:26:32]Method is POST - this is cgi request [17:26:32]url: /json_proto [17:26:32]query_string will be loaded in cgi processing [17:26:32]execute_cgi json_proto POST (null) [17:26:32]execute_cgi path=json_proto method=POST [17:26:32]POST find Content-Length [17:26:32]Host: 172.17.44.195:8080 [17:26:32]Content-Length: 660 [17:26:32]Content-Type: application/json [17:26:32] [17:26:32]POST finish read [17:26:32]Found Content-Length = 660 [17:26:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "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" ] } } [17:26:32]execute_script... [17:26: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)1964871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "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" ] } } [17:26:32]POST & json_proto [17:26:32]process_json_proto [17:26:32]json parsed OK: [17:26:32]protocol is kg_v1.0 [17:26:32]action value=close_receipt [17:26:32]process_action close_receipt [17:26:32]cmd_close_receipt [17:26:32]MH_GetDate [17:26:32]Write to MH i2c: F0 00 00 78 61 C8 [17:26:32]Write i2c OK [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: F0 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: F0 09 00 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: F0 09 00 78 61 00 4D E0 17 67 82 C9 CF 66 FC [17:26:32]GetLastDocTimeStamp 1729617868 [17:26:32]current date 1729617997 [17:26:32]FM_GetShiftState [17:26:32]SAM_PROTO_GetShiftState [17:26:32]wFMCommunicate request_size=4 [17:26:32]MH_SAM_APDU [17:26:32]CAPDU: 80 13 01 00 [17:26:32]Write to MH i2c: E2 08 00 79 61 80 13 01 00 00 00 00 00 57 [17:26:32]Write i2c OK [17:26:32]MH_I2C_Read... [17:26:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:32]Read from MH i2c: E2 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: E2 0E 00 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: E2 0E 00 79 61 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 1E [17:26:32]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:26:32]wFMCommunicate OK [17:26:32]SAM_PROTO_GetShiftState done [17:26:32]FM_GetShiftState done [17:26:32]opened in 1729555538 [17:26:32]opened+sec_in_day 1729641938 [17:26:32]quantity*price = 70041 [17:26:32]sum+1 = 70043 [17:26:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 329 22.10.2024 17:26 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228365 ФПД: 156199693541845 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172637&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228365&fm=156199693541845&tin=02508201610067®Number=0000000000091685&sum=70000 [17:26:33]StoreToDocumentArchive [17:26:33]shift 535 fd 228365 [17:26:33]save to /storage/0535/doc_00228365 [17:26:33]save last doc name /storage/0535/doc_00228365 to /storage/kkm_last_doc_name [17:26:33]save OK [17:26:33]Clear old archive folders... [17:26:33]ProcessDocumentItem done err = 0, tmpTLVsize=244 [17:26:33]tlvbuf is 008D1690 [17:26:33]SAM_PROTO_ClearQueue [17:26:33]wFMCommunicate request_size=4 [17:26:33]MH_SAM_APDU [17:26:33]CAPDU: 80 09 00 00 [17:26:33]Write to MH i2c: E2 08 00 86 61 80 09 00 00 00 00 00 00 59 [17:26:33]Write i2c OK [17:26:33]MH_I2C_Read... [17:26:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:33]Read from MH i2c: E2 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: E2 03 00 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: E2 03 00 86 61 00 90 00 5B [17:26:33]RAPDU: 90 00 [17:26:33]wFMCommunicate OK [17:26:33]SAM_PROTO_ClearQueue done [17:26:33]KKMCreateOFDPacket [17:26:33]OFDProtocolAddRootSTLVToBuf [17:26:33]FM_MakeSignedData [17:26:33]FM_MakeSignedData [17:26:33]SAM_PROTO_SignData [17:26:33]wFMCommunicate request_size=4 [17:26:33]MH_SAM_APDU [17:26:33]CAPDU: 80 0D 01 02 [17:26:33]Write to MH i2c: E2 08 00 87 61 80 0D 01 02 00 00 00 00 61 [17:26:33]Write i2c OK [17:26:33]MH_I2C_Read... [17:26:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:33]Read from MH i2c: E2 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: E2 03 00 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: E2 03 00 87 61 00 90 00 5C [17:26:33]RAPDU: 90 00 [17:26:33]wFMCommunicate OK [17:26:33]wFMCommunicate request_size=253 [17:26:33]MH_SAM_APDU [17:26:33]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 49 01 00 00 F4 03 04 00 4D E0 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0D 7C 03 00 35 04 06 00 8E 10 13 3F 61 D5 [17:26:33]Write to MH i2c: E2 00 01 88 61 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 49 01 00 00 F4 03 04 00 4D E0 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0D 7C 03 00 35 04 06 00 8E 10 13 3F 61 D5 00 00 24 [17:26:34]Write i2c OK [17:26:34]MH_I2C_Read... [17:26:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:34]Read from MH i2c: E2 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: E2 03 00 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: E2 03 00 88 61 00 90 00 5D [17:26:34]RAPDU: 90 00 [17:26:34]wFMCommunicate OK [17:26:34]wFMCommunicate request_size=4 [17:26:34]MH_SAM_APDU [17:26:34]CAPDU: 80 0D 03 02 [17:26:34]Write to MH i2c: E2 08 00 89 61 80 0D 03 02 00 00 00 00 65 [17:26:34]Write i2c OK [17:26:34]MH_I2C_Read... [17:26:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:34]Read from MH i2c: E2 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: E2 0B 00 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: E2 0B 00 89 61 00 BF 8B 5F E4 30 43 43 1F 90 00 C8 [17:26:34]RAPDU: BF 8B 5F E4 30 43 43 1F 90 00 [17:26:34]wFMCommunicate OK [17:26:34]SAM_PROTO_SignData done [17:26:34]FM_MakeSignedData done [17:26:34]CreateOFDProtocolMessage [17:26:34]wFMCommunicate request_size=4 [17:26:34]MH_SAM_APDU [17:26:34]CAPDU: 80 11 00 00 [17:26:34]Write to MH i2c: E2 08 00 8A 61 80 11 00 00 00 00 00 00 65 [17:26:34]Write i2c OK [17:26:34]MH_I2C_Read... [17:26:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:34]Read from MH i2c: E2 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: E2 17 00 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: E2 17 00 8A 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BC [17:26:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:26:34]wFMCommunicate OK [17:26:34]CreateOFDProtocolMessage done [17:26:34]OFDSenderStorePacket 228365 [17:26:34]StoreOFDPacket docnum=228365 [17:26:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 94 FA 00 01 05 B8 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 49 01 00 00 F4 03 04 00 4D E0 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0D 7C 03 00 35 04 06 00 8E 10 13 3F 61 D5 BF 8B 5F E4 30 43 43 1F [17:26:34]CheckFolder [17:26:34]dirname=/storage/ofd_packets [17:26:34]CheckFolder done [17:26:34]ProducePacketName [17:26:34]name=ofd_packets/00228365 [17:26:34]NVStorageSaveData ofd_packets/00228365 [17:26:34]File name is /storage/ofd_packets/00228365 [17:26:34]Write 294 bytes [17:26:34]NVStorageSaveData done [17:26:34]OFDSenderStorePacket done [17:26:34]KKMCreateOFDPacket done [17:26:34]NVStorageSaveData kkm_last_timestamp [17:26:34]File name is /storage/kkm_last_timestamp [17:26:34]Write 4 bytes [17:26:34]NVStorageSaveData done [17:26:34]ExternCall_PrintAddStr [17:26:34]wPrintStart [17:26:34]Write to MH i2c: 01 00 00 8B 61 EC [17:26:34]Write i2c OK [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: 01 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: 01 07 00 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: 01 07 00 8B 61 00 00 00 00 00 FF 0F 01 [17:26:34]RasterBufferAndPrint [17:26:34]line Счет N : (1)1964871 [17:26:34]line ИНН: 02508201610067 [17:26:34]line Контрольно-Кассовый Чек [17:26:34]line ПРОДАЖА [17:26:34]line ТРК (МРК, ГНК) : 52 [17:26:34]line Товар: 2710124130 [17:26:34]line SU-92 [17:26:34]line 10.240 * 68.40 [17:26:34]line = 700.42 [17:26:34]line НДС 12% НСП 1% [17:26:34]line > о реализуемом товаре [17:26:34]line ОКРУГЛЕНИЕ: -0.42 [17:26:34]line ИТОГО: 700.00 [17:26:34]line Внесено: 700.00 [17:26:34]line СДАЧА: 0.00 [17:26:34]line НСП 1% : 6.20 [17:26:34]line НДС 12% : 74.38 [17:26:34]line Наличными: 700.00 [17:26:34]line Безнал.: 0.00 [17:26:34]line Место: АЗС № 133 "Партнер Нефть" [17:26:34]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:26:34]line СНО: Общий режим [17:26:34]line Чек 329 22.10.2024 17:26 [17:26:34]line Смена: 535 ФФД: 1.0 [17:26:34]line ЗНМ: 0300000091 [17:26:34]line РНМ: 0000000000091685 [17:26:34]line Версия ККМ: 001 [17:26:34]line ФМ: 0000000000871839 [17:26:34]line ФД: 228365 [17:26:34]line ФПД: 156199693541845 [17:26:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172637&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228365&fm=156199693541845&tin=02508201610067®Number=0000000000091685&sum=70000 [17:26:34]written 0, free lines is 4095 [17:26:34]OFD Sender: Processing packet 228365 [packets to send 38, broken 37] [17:26:34]ProducePacketName [17:26:34]name=ofd_packets/00228365 [17:26:34]OFD Sender: To server: pG, [17:26:34]CommunicateWithHost lk.salyk.kg:30040 [17:26:34]ConnectInit lk.salyk.kg [17:26:34]Connected sock=10 [17:26:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 94 FA 00 01 05 B8 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 49 01 00 00 F4 03 04 00 4D E0 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0D 7C 03 00 35 04 06 00 8E 10 13 3F 61 D5 BF 8B 5F E4 30 43 43 1F [17:26:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 B5 EC 47 00 16 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0D 7C 03 00 F4 03 04 00 45 8B 17 67 B6 04 01 00 00 C4 7D 0C 6F 55 B1 E4 90 [17:26:34]CommunicateWithHost err = 0 [17:26:34]CheckOFDResponse [17:26:34]1017 (14) - 77093643461234 [17:26:34]1041 (16) - 0000000000871839 [17:26:34]1040 (4) - 228365 [17:26:34]1012 (4) - 22.10.2024 11:23 [17:26:34]1206 (1) - 0 [17:26:34]OFD Sender: Remove packet 228365 [17:26:34]ProducePacketName [17:26:34]name=ofd_packets/00228365 [17:26:34]NVStorageDeleteData [17:26:34]Write to MH i2c: 01 00 00 B5 61 16 [17:26:34]Write i2c OK [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: 01 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: 01 07 00 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: 01 07 00 B5 61 00 00 00 00 00 B1 0C DA [17:26:34]RasterBufferAndPrint [17:26:34]line [17:26:34]line [17:26:34]line [17:26:34]line [17:26:34]line [17:26:34]written 0, free lines is 3253 [17:26:34]MH_Cut [17:26:34]Write to MH i2c: D1 01 00 BC 61 01 EF [17:26:34]Write i2c OK [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: D1 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: D1 01 00 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: D1 01 00 BC 61 00 EE [17:26:34]Write to MH i2c: 01 00 00 BD 61 1E [17:26:34]Write i2c OK [17:26:34]MH_I2C_Read... [17:26:35]OFD Sender: No OFD packet to send [17:26:35]*** Cut start [17:26:35]*** Partial cut [17:26:35]*** CUTSNS_PIN = 1 [17:26:35]*** CUTSNS_PIN = 0 [17:26:35]*** Brake cut motor [17:26:36]Read from MH i2c: 01 [17:26:36]MH_I2C_Read... [17:26:36]*** Stop cut motor [17:26:36]*** Cut end [17:26:36]Read from MH i2c: 01 07 00 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: 01 07 00 BD 61 00 00 00 00 00 FF 0F 33 [17:26:36]process_action close_receipt done [17:26:36]requested_data is exist [17:26:36]produce_requested_data [17:26:36]requested_item fm.sn is exist - process it [17:26:36]wFMCommunicate request_size=4 [17:26:36]MH_SAM_APDU [17:26:36]CAPDU: 80 11 00 00 [17:26:36]Write to MH i2c: E2 08 00 BE 61 80 11 00 00 00 00 00 00 99 [17:26:36]Write i2c OK [17:26:36]MH_I2C_Read... [17:26:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:36]Read from MH i2c: E2 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 17 00 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 17 00 BE 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F0 [17:26:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:26:36]wFMCommunicate OK [17:26:36]requested_item fd.num is exist - process it [17:26:36]SAM_PROTO_GetFieldsCounters [17:26:36]wFMCommunicate request_size=4 [17:26:36]MH_SAM_APDU [17:26:36]CAPDU: 80 13 00 00 [17:26:36]Write to MH i2c: E2 08 00 BF 61 80 13 00 00 00 00 00 00 9C [17:26:36]Write i2c OK [17:26:36]MH_I2C_Read... [17:26:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:36]Read from MH i2c: E2 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 62 00 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 62 00 BF 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0D 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 48 [17:26:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0D 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:26:36]wFMCommunicate OK [17:26:36]SAM_PROTO_GetFieldsCounters done [17:26:36]requested_item shift.num is exist - process it [17:26:36]requested_item shift.opened is exist - process it [17:26:36]req_shift_opened [17:26:36]FM_GetShiftState [17:26:36]SAM_PROTO_GetShiftState [17:26:36]wFMCommunicate request_size=4 [17:26:36]MH_SAM_APDU [17:26:36]CAPDU: 80 13 01 00 [17:26:36]Write to MH i2c: E2 08 00 C0 61 80 13 01 00 00 00 00 00 9E [17:26:36]Write i2c OK [17:26:36]MH_I2C_Read... [17:26:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:36]Read from MH i2c: E2 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 0E 00 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 0E 00 C0 61 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 65 [17:26:36]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:26:36]wFMCommunicate OK [17:26:36]SAM_PROTO_GetShiftState done [17:26:36]FM_GetShiftState done [17:26:36]req_shift_opened done [17:26:36]requested_item shift.open_date is exist - process it [17:26:36]req_shift_open_date [17:26:36]req_shift_open_date done [17:26:36]produce_requested_data done [17:26:36]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228365,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [17:26:36]process_action_free close_receipt [17:26:36]json_value_free [17:26:36]json_value_free done [17:26:36]process_json_proto returns [17:26:36]Send response to host [17:26:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228365,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [17:26:36]free response buf [17:26:36]execute_script done [17:26:36]execute_script returns [17:26:36]free content buf [17:26:36]Sock 7.Close socket [17:26:36]Sock 7.Thread stoped [17:26:40]OFD Sender: No OFD packet to send [17:26:45]OFD Sender: No OFD packet to send [17:26:50]OFD Sender: No OFD packet to send [17:26:55]OFD Sender: No OFD packet to send [17:26:57]accept exits with 9 [17:26:57]New connection [17:26:57]New thread 3067137380 created [17:26:57]Thread 3066994020 joined [17:26:57]Waiting for new connection... [17:26:57] Sock 9.Parse request [17:26:57]Sock 9.Check first char [17:26:57]Sock 9.First char is OK [17:26:57]request: POST /json_proto HTTP/1.0 [17:26:57]Method: POST [17:26:57]URL: /json_proto [17:26:57]Method is POST - this is cgi request [17:26:57]url: /json_proto [17:26:57]query_string will be loaded in cgi processing [17:26:57]execute_cgi json_proto POST (null) [17:26:57]execute_cgi path=json_proto method=POST [17:26:57]POST find Content-Length [17:26:57]Host: 172.17.44.195:8080 [17:26:57]Content-Length: 770 [17:26:57]Content-Type: application/json [17:26:57] [17:26:57]POST finish read [17:26:57]Found Content-Length = 770 [17:26:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:57]execute_script... [17:26:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:57]POST & json_proto [17:26:57]process_json_proto [17:26:57]json parsed OK: [17:26:57]protocol is kg_v1.0 [17:26:57]action value=close_receipt [17:26:57]process_action close_receipt [17:26:57]cmd_close_receipt [17:26:57]MH_GetDate [17:26:57]Write to MH i2c: F0 00 00 C1 61 11 [17:26:57]Write i2c OK [17:26:57]MH_I2C_Read... [17:26:57]Read from MH i2c: F0 [17:26:57]MH_I2C_Read... [17:26:57]Read from MH i2c: F0 09 00 [17:26:57]MH_I2C_Read... [17:26:57]Read from MH i2c: F0 09 00 C1 61 00 66 E0 17 67 82 C9 CF 66 5E [17:26:57]GetLastDocTimeStamp 1729617997 [17:26:57]current date 1729618022 [17:26:57]FM_GetShiftState [17:26:57]SAM_PROTO_GetShiftState [17:26:57]wFMCommunicate request_size=4 [17:26:57]MH_SAM_APDU [17:26:57]CAPDU: 80 13 01 00 [17:26:57]Write to MH i2c: E2 08 00 C2 61 80 13 01 00 00 00 00 00 A0 [17:26:57]Write i2c OK [17:26:57]MH_I2C_Read... [17:26:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:57]Read from MH i2c: E2 [17:26:57]MH_I2C_Read... [17:26:57]Read from MH i2c: E2 0E 00 [17:26:57]MH_I2C_Read... [17:26:57]Read from MH i2c: E2 0E 00 C2 61 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 67 [17:26:57]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:26:57]wFMCommunicate OK [17:26:57]SAM_PROTO_GetShiftState done [17:26:57]FM_GetShiftState done [17:26:57]opened in 1729555538 [17:26:57]opened+sec_in_day 1729641938 [17:26:57]quantity*price = 200043 [17:26:57]sum+1 = 200044 [17:26:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 330 22.10.2024 17:27 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 228366 ФПД: 145419465603573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172702&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228366&fm=145419465603573&tin=02508201610067®Number=0000000000091685&sum=200043 [17:26:58]StoreToDocumentArchive [17:26:58]shift 535 fd 228366 [17:26:58]save to /storage/0535/doc_00228366 [17:26:58]save last doc name /storage/0535/doc_00228366 to /storage/kkm_last_doc_name [17:26:58]save OK [17:26:58]Clear old archive folders... [17:26:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:26:58]tlvbuf is 008D8FC0 [17:26:58]SAM_PROTO_ClearQueue [17:26:58]wFMCommunicate request_size=4 [17:26:58]MH_SAM_APDU [17:26:58]CAPDU: 80 09 00 00 [17:26:58]Write to MH i2c: E2 08 00 CF 61 80 09 00 00 00 00 00 00 A2 [17:26:58]Write i2c OK [17:26:58]MH_I2C_Read... [17:26:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:58]Read from MH i2c: E2 [17:26:58]MH_I2C_Read... [17:26:58]Read from MH i2c: E2 03 00 [17:26:58]MH_I2C_Read... [17:26:58]Read from MH i2c: E2 03 00 CF 61 00 90 00 A4 [17:26:58]RAPDU: 90 00 [17:26:58]wFMCommunicate OK [17:26:58]SAM_PROTO_ClearQueue done [17:26:58]KKMCreateOFDPacket [17:26:58]OFDProtocolAddRootSTLVToBuf [17:26:58]FM_MakeSignedData [17:26:58]FM_MakeSignedData [17:26:58]SAM_PROTO_SignData [17:26:58]wFMCommunicate request_size=4 [17:26:58]MH_SAM_APDU [17:26:58]CAPDU: 80 0D 01 02 [17:26:58]Write to MH i2c: E2 08 00 D0 61 80 0D 01 02 00 00 00 00 AA [17:26:58]Write i2c OK [17:26:58]MH_I2C_Read... [17:26:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:58]Read from MH i2c: E2 [17:26:58]MH_I2C_Read... [17:26:58]Read from MH i2c: E2 03 00 [17:26:58]MH_I2C_Read... [17:26:58]Read from MH i2c: E2 03 00 D0 61 00 90 00 A5 [17:26:58]RAPDU: 90 00 [17:26:58]wFMCommunicate OK [17:26:58]wFMCommunicate request_size=255 [17:26:58]MH_SAM_APDU [17:26:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 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 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 66 E0 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0E 7C 03 00 35 04 06 00 84 [17:26:58]Write to MH i2c: E2 02 01 D1 61 80 0D 02 02 FA 00 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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 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 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 66 E0 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0E 7C 03 00 35 04 06 00 84 00 00 78 [17:26:58]Write i2c OK [17:26:58]MH_I2C_Read... [17:26:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:59]Read from MH i2c: E2 [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: E2 03 00 [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: E2 03 00 D1 61 00 90 00 A6 [17:26:59]RAPDU: 90 00 [17:26:59]wFMCommunicate OK [17:26:59]wFMCommunicate request_size=10 [17:26:59]MH_SAM_APDU [17:26:59]CAPDU: 80 0D 02 02 05 42 1B 97 39 F5 [17:26:59]Write to MH i2c: E2 0D 00 D2 61 80 0D 02 02 05 00 42 1B 97 39 F5 00 00 D9 [17:26:59]Write i2c OK [17:26:59]MH_I2C_Read... [17:26:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:59]Read from MH i2c: E2 [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: E2 03 00 [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: E2 03 00 D2 61 00 90 00 A7 [17:26:59]RAPDU: 90 00 [17:26:59]wFMCommunicate OK [17:26:59]wFMCommunicate request_size=4 [17:26:59]MH_SAM_APDU [17:26:59]CAPDU: 80 0D 03 02 [17:26:59]Write to MH i2c: E2 08 00 D3 61 80 0D 03 02 00 00 00 00 AF [17:26:59]Write i2c OK [17:26:59]MH_I2C_Read... [17:26:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:59]Read from MH i2c: E2 [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: E2 0B 00 [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: E2 0B 00 D3 61 00 F2 40 4A 38 1B ED E4 8E 90 00 DE [17:26:59]RAPDU: F2 40 4A 38 1B ED E4 8E 90 00 [17:26:59]wFMCommunicate OK [17:26:59]SAM_PROTO_SignData done [17:26:59]FM_MakeSignedData done [17:26:59]CreateOFDProtocolMessage [17:26:59]wFMCommunicate request_size=4 [17:26:59]MH_SAM_APDU [17:26:59]CAPDU: 80 11 00 00 [17:26:59]Write to MH i2c: E2 08 00 D4 61 80 11 00 00 00 00 00 00 AF [17:26:59]Write i2c OK [17:26:59]MH_I2C_Read... [17:26:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:59]Read from MH i2c: E2 [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: E2 17 00 [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: E2 17 00 D4 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 06 [17:26:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:26:59]wFMCommunicate OK [17:26:59]CreateOFDProtocolMessage done [17:26:59]OFDSenderStorePacket 228366 [17:26:59]StoreOFDPacket docnum=228366 [17:26:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 DF DC 07 01 6A A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 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 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 66 E0 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0E 7C 03 00 35 04 06 00 84 42 1B 97 39 F5 F2 40 4A 38 1B ED E4 8E [17:26:59]CheckFolder [17:26:59]dirname=/storage/ofd_packets [17:26:59]CheckFolder done [17:26:59]ProducePacketName [17:26:59]name=ofd_packets/00228366 [17:26:59]NVStorageSaveData ofd_packets/00228366 [17:26:59]File name is /storage/ofd_packets/00228366 [17:26:59]Write 301 bytes [17:26:59]NVStorageSaveData done [17:26:59]OFDSenderStorePacket done [17:26:59]KKMCreateOFDPacket done [17:26:59]NVStorageSaveData kkm_last_timestamp [17:26:59]File name is /storage/kkm_last_timestamp [17:26:59]Write 4 bytes [17:26:59]NVStorageSaveData done [17:26:59]ExternCall_PrintAddStr [17:26:59]wPrintStart [17:26:59]Write to MH i2c: 01 00 00 D5 61 36 [17:26:59]Write i2c OK [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: 01 [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: 01 07 00 [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: 01 07 00 D5 61 00 00 00 00 00 FF 0F 4B [17:26:59]RasterBufferAndPrint [17:26:59]line Счет N : (1)1964872 [17:26:59]line ИНН: 02508201610067 [17:26:59]line Контрольно-Кассовый Чек [17:26:59]line ПРОДАЖА [17:26:59]line ТРК (МРК, ГНК) : 44 [17:26:59]line Товар: 2710124500 [17:26:59]line Аи-95-К-5 [17:26:59]line 26.960 * 74.20 [17:26:59]line = 2000.43 [17:26:59]line НДС 12% НСП 1% [17:26:59]line > о реализуемом товаре [17:26:59]line ИТОГО: 2000.43 [17:26:59]line НСП 1% : 17.70 [17:26:59]line НДС 12% : 212.43 [17:26:59]line Наличными: 0.00 [17:26:59]line Безнал.: 2000.43 [17:26:59]line Место: АЗС № 133 "Партнер Нефть" [17:26:59]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:26:59]line СНО: Общий режим [17:26:59]line Чек 330 22.10.2024 17:27 [17:26:59]line Смена: 535 ФФД: 1.0 [17:26:59]line ЗНМ: 0300000091 [17:26:59]line РНМ: 0000000000091685 [17:26:59]line Версия ККМ: 001 [17:26:59]line Платежная система: Mbank [17:26:59]line ФМ: 0000000000871839 [17:26:59]line ФД: 228366 [17:26:59]line ФПД: 145419465603573 [17:26:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172702&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228366&fm=145419465603573&tin=02508201610067®Number=0000000000091685&sum=200043 [17:26:59]written 0, free lines is 4095 [17:26:59]OFD Sender: Processing packet 228366 [packets to send 38, broken 37] [17:26:59]ProducePacketName [17:26:59]name=ofd_packets/00228366 [17:26:59]OFD Sender: To server: pG, [17:26:59]CommunicateWithHost lk.salyk.kg:30040 [17:26:59]ConnectInit lk.salyk.kg [17:26:59]Connected sock=10 [17:26:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 DF DC 07 01 6A A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 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 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 66 E0 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0E 7C 03 00 35 04 06 00 84 42 1B 97 39 F5 F2 40 4A 38 1B ED E4 8E [17:26:59]Write to MH i2c: 01 00 00 FD 61 5E [17:26:59]Write i2c OK [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: 01 [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: 01 07 00 [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: 01 07 00 FD 61 00 00 00 00 00 E7 0C 58 [17:26:59]RasterBufferAndPrint [17:26:59]line [17:26:59]line [17:26:59]line [17:26:59]line [17:26:59]line [17:26:59]written 0, free lines is 3308 [17:26:59]MH_Cut [17:26:59]Write to MH i2c: D1 01 00 04 62 01 38 [17:26:59]Write i2c OK [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: D1 [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: D1 01 00 [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: D1 01 00 04 62 00 37 [17:26:59]Write to MH i2c: 01 00 00 05 62 67 [17:26:59]Write i2c OK [17:26:59]MH_I2C_Read... [17:26:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 D1 27 47 00 17 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 38 37 31 38 33 39 10 04 04 00 0E 7C 03 00 F4 03 04 00 5E 8B 17 67 B6 04 01 00 00 76 D6 81 C4 0C 17 87 5C [17:26:59]CommunicateWithHost err = 0 [17:26:59]CheckOFDResponse [17:26:59]1017 (14) - 77093643461234 [17:26:59]1041 (16) - 0000000000871839 [17:26:59]1040 (4) - 228366 [17:26:59]1012 (4) - 22.10.2024 11:24 [17:26:59]1206 (1) - 0 [17:26:59]OFD Sender: Remove packet 228366 [17:26:59]ProducePacketName [17:26:59]name=ofd_packets/00228366 [17:26:59]NVStorageDeleteData [17:27:00]OFD Sender: No OFD packet to send [17:27:00]*** Cut start [17:27:00]*** Partial cut [17:27:00]*** CUTSNS_PIN = 1 [17:27:00]*** CUTSNS_PIN = 0 [17:27:00]*** Brake cut motor [17:27:01]Read from MH i2c: 01 [17:27:01]MH_I2C_Read... [17:27:01]*** Stop cut motor [17:27:01]*** Cut end [17:27:01]Read from MH i2c: 01 07 00 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: 01 07 00 05 62 00 00 00 00 00 FF 0F 7C [17:27:01]process_action close_receipt done [17:27:01]requested_data is exist [17:27:01]produce_requested_data [17:27:01]requested_item fm.sn is exist - process it [17:27:01]wFMCommunicate request_size=4 [17:27:01]MH_SAM_APDU [17:27:01]CAPDU: 80 11 00 00 [17:27:01]Write to MH i2c: E2 08 00 06 62 80 11 00 00 00 00 00 00 E2 [17:27:01]Write i2c OK [17:27:01]MH_I2C_Read... [17:27:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:01]Read from MH i2c: E2 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: E2 17 00 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: E2 17 00 06 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 39 [17:27:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:27:01]wFMCommunicate OK [17:27:01]requested_item fd.num is exist - process it [17:27:01]SAM_PROTO_GetFieldsCounters [17:27:01]wFMCommunicate request_size=4 [17:27:01]MH_SAM_APDU [17:27:01]CAPDU: 80 13 00 00 [17:27:01]Write to MH i2c: E2 08 00 07 62 80 13 00 00 00 00 00 00 E5 [17:27:01]Write i2c OK [17:27:01]MH_I2C_Read... [17:27:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:01]Read from MH i2c: E2 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: E2 62 00 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: E2 62 00 07 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0E 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 95 [17:27:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0E 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:27:01]wFMCommunicate OK [17:27:01]SAM_PROTO_GetFieldsCounters done [17:27:01]requested_item shift.num is exist - process it [17:27:01]requested_item shift.opened is exist - process it [17:27:01]req_shift_opened [17:27:01]FM_GetShiftState [17:27:01]SAM_PROTO_GetShiftState [17:27:01]wFMCommunicate request_size=4 [17:27:01]MH_SAM_APDU [17:27:01]CAPDU: 80 13 01 00 [17:27:01]Write to MH i2c: E2 08 00 08 62 80 13 01 00 00 00 00 00 E7 [17:27:01]Write i2c OK [17:27:01]MH_I2C_Read... [17:27:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:01]Read from MH i2c: E2 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: E2 0E 00 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: E2 0E 00 08 62 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 AE [17:27:01]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:27:01]wFMCommunicate OK [17:27:01]SAM_PROTO_GetShiftState done [17:27:01]FM_GetShiftState done [17:27:01]req_shift_opened done [17:27:01]requested_item shift.open_date is exist - process it [17:27:01]req_shift_open_date [17:27:01]req_shift_open_date done [17:27:01]produce_requested_data done [17:27:01]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228366,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [17:27:01]process_action_free close_receipt [17:27:01]json_value_free [17:27:01]json_value_free done [17:27:01]process_json_proto returns [17:27:01]Send response to host [17:27:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228366,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [17:27:01]free response buf [17:27:01]execute_script done [17:27:01]execute_script returns [17:27:01]free content buf [17:27:01]Sock 9.Close socket [17:27:01]Sock 9.Thread stoped [17:27:03]accept exits with 7 [17:27:03]New connection [17:27:03]New thread 3066994020 created [17:27:03]Thread 3067137380 joined [17:27:03]Waiting for new connection... [17:27:03] Sock 7.Parse request [17:27:03]Sock 7.Check first char [17:27:03]Sock 7.First char is OK [17:27:03]request: POST /json_proto HTTP/1.0 [17:27:03]Method: POST [17:27:03]URL: /json_proto [17:27:03]Method is POST - this is cgi request [17:27:03]url: /json_proto [17:27:03]query_string will be loaded in cgi processing [17:27:03]execute_cgi json_proto POST (null) [17:27:03]execute_cgi path=json_proto method=POST [17:27:03]POST find Content-Length [17:27:03]Host: 172.17.44.195:8080 [17:27:03]Content-Length: 678 [17:27:03]Content-Type: application/json [17:27:03] [17:27:03]POST finish read [17:27:03]Found Content-Length = 678 [17:27:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964873", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:27:03]execute_script... [17:27: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)1964873", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:27:03]POST & json_proto [17:27:03]process_json_proto [17:27:03]json parsed OK: [17:27:03]protocol is kg_v1.0 [17:27:03]action value=close_receipt [17:27:03]process_action close_receipt [17:27:03]cmd_close_receipt [17:27:03]MH_GetDate [17:27:03]Write to MH i2c: F0 00 00 09 62 5A [17:27:03]Write i2c OK [17:27:03]MH_I2C_Read... [17:27:03]Read from MH i2c: F0 [17:27:03]MH_I2C_Read... [17:27:03]Read from MH i2c: F0 09 00 [17:27:03]MH_I2C_Read... [17:27:03]Read from MH i2c: F0 09 00 09 62 00 6D E0 17 67 82 C9 CF 66 AE [17:27:03]GetLastDocTimeStamp 1729618022 [17:27:03]current date 1729618029 [17:27:03]FM_GetShiftState [17:27:03]SAM_PROTO_GetShiftState [17:27:03]wFMCommunicate request_size=4 [17:27:03]MH_SAM_APDU [17:27:03]CAPDU: 80 13 01 00 [17:27:03]Write to MH i2c: E2 08 00 0A 62 80 13 01 00 00 00 00 00 E9 [17:27:03]Write i2c OK [17:27:03]MH_I2C_Read... [17:27:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:04]Read from MH i2c: E2 [17:27:04]MH_I2C_Read... [17:27:04]Read from MH i2c: E2 0E 00 [17:27:04]MH_I2C_Read... [17:27:04]Read from MH i2c: E2 0E 00 0A 62 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 B0 [17:27:04]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:27:04]wFMCommunicate OK [17:27:04]SAM_PROTO_GetShiftState done [17:27:04]FM_GetShiftState done [17:27:04]opened in 1729555538 [17:27:04]opened+sec_in_day 1729641938 [17:27:04]quantity*price = 50041 [17:27:04]sum+1 = 50042 [17:27:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 331 22.10.2024 17:27 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228367 ФПД: 121214827699845 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172709&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228367&fm=121214827699845&tin=02508201610067®Number=0000000000091685&sum=50000 [17:27:05]StoreToDocumentArchive [17:27:05]shift 535 fd 228367 [17:27:05]save to /storage/0535/doc_00228367 [17:27:05]save last doc name /storage/0535/doc_00228367 to /storage/kkm_last_doc_name [17:27:05]save OK [17:27:05]Clear old archive folders... [17:27:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:27:05]tlvbuf is 00AA3E50 [17:27:05]SAM_PROTO_ClearQueue [17:27:05]wFMCommunicate request_size=4 [17:27:05]MH_SAM_APDU [17:27:05]CAPDU: 80 09 00 00 [17:27:05]Write to MH i2c: E2 08 00 17 62 80 09 00 00 00 00 00 00 EB [17:27:05]Write i2c OK [17:27:05]MH_I2C_Read... [17:27:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:05]Read from MH i2c: E2 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: E2 03 00 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: E2 03 00 17 62 00 90 00 ED [17:27:05]RAPDU: 90 00 [17:27:05]wFMCommunicate OK [17:27:05]SAM_PROTO_ClearQueue done [17:27:05]KKMCreateOFDPacket [17:27:05]OFDProtocolAddRootSTLVToBuf [17:27:05]FM_MakeSignedData [17:27:05]FM_MakeSignedData [17:27:05]SAM_PROTO_SignData [17:27:05]wFMCommunicate request_size=4 [17:27:05]MH_SAM_APDU [17:27:05]CAPDU: 80 0D 01 02 [17:27:05]Write to MH i2c: E2 08 00 18 62 80 0D 01 02 00 00 00 00 F3 [17:27:05]Write i2c OK [17:27:05]MH_I2C_Read... [17:27:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:05]Read from MH i2c: E2 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: E2 03 00 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: E2 03 00 18 62 00 90 00 EE [17:27:05]RAPDU: 90 00 [17:27:05]wFMCommunicate OK [17:27:05]wFMCommunicate request_size=255 [17:27:05]MH_SAM_APDU [17:27: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 6D E0 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0F 7C 03 00 35 04 06 00 6E [17:27:05]Write to MH i2c: E2 02 01 19 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 6D E0 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0F 7C 03 00 35 04 06 00 6E 00 00 B6 [17:27:05]Write i2c OK [17:27:05]MH_I2C_Read... [17:27:05]OFD Sender: No OFD packet to send [17:27:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:05]Read from MH i2c: E2 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: E2 03 00 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: E2 03 00 19 62 00 90 00 EF [17:27:05]RAPDU: 90 00 [17:27:05]wFMCommunicate OK [17:27:05]wFMCommunicate request_size=10 [17:27:05]MH_SAM_APDU [17:27:05]CAPDU: 80 0D 02 02 05 3E 86 BF 1E 85 [17:27:05]Write to MH i2c: E2 0D 00 1A 62 80 0D 02 02 05 00 3E 86 BF 1E 85 00 00 26 [17:27:05]Write i2c OK [17:27:05]MH_I2C_Read... [17:27:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:05]Read from MH i2c: E2 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: E2 03 00 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: E2 03 00 1A 62 00 90 00 F0 [17:27:05]RAPDU: 90 00 [17:27:05]wFMCommunicate OK [17:27:05]wFMCommunicate request_size=4 [17:27:05]MH_SAM_APDU [17:27:05]CAPDU: 80 0D 03 02 [17:27:05]Write to MH i2c: E2 08 00 1B 62 80 0D 03 02 00 00 00 00 F8 [17:27:05]Write i2c OK [17:27:05]MH_I2C_Read... [17:27:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:05]Read from MH i2c: E2 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: E2 0B 00 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: E2 0B 00 1B 62 00 32 39 DB C6 C1 70 B3 64 90 00 4D [17:27:05]RAPDU: 32 39 DB C6 C1 70 B3 64 90 00 [17:27:05]wFMCommunicate OK [17:27:05]SAM_PROTO_SignData done [17:27:05]FM_MakeSignedData done [17:27:05]CreateOFDProtocolMessage [17:27:05]wFMCommunicate request_size=4 [17:27:05]MH_SAM_APDU [17:27:05]CAPDU: 80 11 00 00 [17:27:05]Write to MH i2c: E2 08 00 1C 62 80 11 00 00 00 00 00 00 F8 [17:27:05]Write i2c OK [17:27:05]MH_I2C_Read... [17:27:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:05]Read from MH i2c: E2 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: E2 17 00 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: E2 17 00 1C 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4F [17:27:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:27:05]wFMCommunicate OK [17:27:05]CreateOFDProtocolMessage done [17:27:05]OFDSenderStorePacket 228367 [17:27:05]StoreOFDPacket docnum=228367 [17:27:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 6E EC 07 01 EB 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 6D E0 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0F 7C 03 00 35 04 06 00 6E 3E 86 BF 1E 85 32 39 DB C6 C1 70 B3 64 [17:27:05]CheckFolder [17:27:05]dirname=/storage/ofd_packets [17:27:05]CheckFolder done [17:27:05]ProducePacketName [17:27:05]name=ofd_packets/00228367 [17:27:05]NVStorageSaveData ofd_packets/00228367 [17:27:05]File name is /storage/ofd_packets/00228367 [17:27:05]Write 301 bytes [17:27:05]NVStorageSaveData done [17:27:05]OFDSenderStorePacket done [17:27:05]KKMCreateOFDPacket done [17:27:05]NVStorageSaveData kkm_last_timestamp [17:27:05]File name is /storage/kkm_last_timestamp [17:27:05]Write 4 bytes [17:27:05]NVStorageSaveData done [17:27:05]ExternCall_PrintAddStr [17:27:05]wPrintStart [17:27:05]Write to MH i2c: 01 00 00 1D 62 7F [17:27:05]Write i2c OK [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: 01 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: 01 07 00 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: 01 07 00 1D 62 00 00 00 00 00 FF 0F 94 [17:27:05]RasterBufferAndPrint [17:27:05]line Счет N : (1)1964873 [17:27:05]line ИНН: 02508201610067 [17:27:05]line Контрольно-Кассовый Чек [17:27:05]line ПРОДАЖА [17:27:05]line ТРК (МРК, ГНК) : 63 [17:27:05]line Товар: 2710124130 [17:27:05]line Аи-92-К-5 [17:27:05]line 7.480 * 66.90 [17:27:05]line = 500.41 [17:27:05]line НДС 12% НСП 1% [17:27:05]line > о реализуемом товаре [17:27:05]line ОКРУГЛЕНИЕ: -0.41 [17:27:05]line ИТОГО: 500.00 [17:27:05]line Внесено: 500.00 [17:27:05]line СДАЧА: 0.00 [17:27:05]line НСП 1% : 4.43 [17:27:05]line НДС 12% : 53.14 [17:27:05]line Наличными: 500.00 [17:27:05]line Безнал.: 0.00 [17:27:05]line Место: АЗС № 133 "Партнер Нефть" [17:27:05]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:27:05]line СНО: Общий режим [17:27:05]line Чек 331 22.10.2024 17:27 [17:27:05]line Смена: 535 ФФД: 1.0 [17:27:05]line ЗНМ: 0300000091 [17:27:05]line РНМ: 0000000000091685 [17:27:05]line Версия ККМ: 001 [17:27:05]line ФМ: 0000000000871839 [17:27:05]line ФД: 228367 [17:27:05]line ФПД: 121214827699845 [17:27:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172709&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228367&fm=121214827699845&tin=02508201610067®Number=0000000000091685&sum=50000 [17:27:05]written 0, free lines is 4095 [17:27:05]OFD Sender: Processing packet 228367 [packets to send 38, broken 37] [17:27:05]ProducePacketName [17:27:05]name=ofd_packets/00228367 [17:27:05]OFD Sender: To server: pG, [17:27:05]CommunicateWithHost lk.salyk.kg:30040 [17:27:05]ConnectInit lk.salyk.kg [17:27:05]Connected sock=11 [17:27:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 6E EC 07 01 EB 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 6D E0 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0F 7C 03 00 35 04 06 00 6E 3E 86 BF 1E 85 32 39 DB C6 C1 70 B3 64 [17:27:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 8A C8 47 00 7A 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0F 7C 03 00 F4 03 04 00 64 8B 17 67 B6 04 01 00 00 11 D8 B8 BD A1 58 BE E4 [17:27:06]CommunicateWithHost err = 0 [17:27:06]CheckOFDResponse [17:27:06]1017 (14) - 77093643461234 [17:27:06]1041 (16) - 0000000000871839 [17:27:06]1040 (4) - 228367 [17:27:06]1012 (4) - 22.10.2024 11:24 [17:27:06]1206 (1) - 0 [17:27:06]OFD Sender: Remove packet 228367 [17:27:06]ProducePacketName [17:27:06]name=ofd_packets/00228367 [17:27:06]NVStorageDeleteData [17:27:06]Write to MH i2c: 01 00 00 47 62 A9 [17:27:06]Write i2c OK [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: 01 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: 01 07 00 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: 01 07 00 47 62 00 00 00 00 00 C3 0C 7F [17:27:06]RasterBufferAndPrint [17:27:06]line [17:27:06]line [17:27:06]line [17:27:06]line [17:27:06]line [17:27:06]written 0, free lines is 3275 [17:27:06]MH_Cut [17:27:06]Write to MH i2c: D1 01 00 4E 62 01 82 [17:27:06]Write i2c OK [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: D1 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: D1 01 00 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: D1 01 00 4E 62 00 81 [17:27:06]Write to MH i2c: 01 00 00 4F 62 B1 [17:27:06]Write i2c OK [17:27:06]MH_I2C_Read... [17:27:06]OFD Sender: No OFD packet to send [17:27:07]*** Cut start [17:27:07]*** Partial cut [17:27:07]*** CUTSNS_PIN = 1 [17:27:07]*** CUTSNS_PIN = 0 [17:27:07]*** Brake cut motor [17:27:07]Read from MH i2c: 01 [17:27:07]MH_I2C_Read... [17:27:07]*** Stop cut motor [17:27:07]*** Cut end [17:27:07]Read from MH i2c: 01 07 00 [17:27:07]MH_I2C_Read... [17:27:07]Read from MH i2c: 01 07 00 4F 62 00 00 00 00 00 FF 0F C6 [17:27:07]process_action close_receipt done [17:27:07]requested_data is exist [17:27:07]produce_requested_data [17:27:07]requested_item fm.sn is exist - process it [17:27:07]wFMCommunicate request_size=4 [17:27:07]MH_SAM_APDU [17:27:07]CAPDU: 80 11 00 00 [17:27:07]Write to MH i2c: E2 08 00 50 62 80 11 00 00 00 00 00 00 2C [17:27:07]Write i2c OK [17:27:07]MH_I2C_Read... [17:27:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:07]Read from MH i2c: E2 [17:27:07]MH_I2C_Read... [17:27:07]Read from MH i2c: E2 17 00 [17:27:07]MH_I2C_Read... [17:27:07]Read from MH i2c: E2 17 00 50 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 83 [17:27:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:27:07]wFMCommunicate OK [17:27:07]requested_item fd.num is exist - process it [17:27:07]SAM_PROTO_GetFieldsCounters [17:27:07]wFMCommunicate request_size=4 [17:27:07]MH_SAM_APDU [17:27:07]CAPDU: 80 13 00 00 [17:27:07]Write to MH i2c: E2 08 00 51 62 80 13 00 00 00 00 00 00 2F [17:27:07]Write i2c OK [17:27:07]MH_I2C_Read... [17:27:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:07]Read from MH i2c: E2 [17:27:07]MH_I2C_Read... [17:27:07]Read from MH i2c: E2 62 00 [17:27:07]MH_I2C_Read... [17:27:08]Read from MH i2c: E2 62 00 51 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0F 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 E3 [17:27:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0F 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:27:08]wFMCommunicate OK [17:27:08]SAM_PROTO_GetFieldsCounters done [17:27:08]requested_item shift.num is exist - process it [17:27:08]requested_item shift.opened is exist - process it [17:27:08]req_shift_opened [17:27:08]FM_GetShiftState [17:27:08]SAM_PROTO_GetShiftState [17:27:08]wFMCommunicate request_size=4 [17:27:08]MH_SAM_APDU [17:27:08]CAPDU: 80 13 01 00 [17:27:08]Write to MH i2c: E2 08 00 52 62 80 13 01 00 00 00 00 00 31 [17:27:08]Write i2c OK [17:27:08]MH_I2C_Read... [17:27:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:08]Read from MH i2c: E2 [17:27:08]MH_I2C_Read... [17:27:08]Read from MH i2c: E2 0E 00 [17:27:08]MH_I2C_Read... [17:27:08]Read from MH i2c: E2 0E 00 52 62 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 F8 [17:27:08]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:27:08]wFMCommunicate OK [17:27:08]SAM_PROTO_GetShiftState done [17:27:08]FM_GetShiftState done [17:27:08]req_shift_opened done [17:27:08]requested_item shift.open_date is exist - process it [17:27:08]req_shift_open_date [17:27:08]req_shift_open_date done [17:27:08]produce_requested_data done [17:27:08]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228367,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [17:27:08]process_action_free close_receipt [17:27:08]json_value_free [17:27:08]json_value_free done [17:27:08]process_json_proto returns [17:27:08]Send response to host [17:27:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228367,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [17:27:08]free response buf [17:27:08]execute_script done [17:27:08]execute_script returns [17:27:08]free content buf [17:27:08]Sock 7.Close socket [17:27:08]Sock 7.Thread stoped [17:27:11]OFD Sender: No OFD packet to send [17:27:16]OFD Sender: No OFD packet to send [17:27:21]OFD Sender: No OFD packet to send [17:27:26]OFD Sender: No OFD packet to send [17:27:31]OFD Sender: No OFD packet to send [17:27:36]OFD Sender: No OFD packet to send [17:27:41]OFD Sender: No OFD packet to send [17:27:46]OFD Sender: No OFD packet to send [17:27:51]OFD Sender: No OFD packet to send [17:27:56]OFD Sender: No OFD packet to send [17:28:01]OFD Sender: No OFD packet to send [17:28:06]OFD Sender: No OFD packet to send [17:28:11]OFD Sender: No OFD packet to send [17:28:16]OFD Sender: No OFD packet to send [17:28:21]OFD Sender: No OFD packet to send [17:28:26]OFD Sender: No OFD packet to send [17:28:31]OFD Sender: No OFD packet to send [17:28:36]OFD Sender: No OFD packet to send [17:28:41]OFD Sender: No OFD packet to send [17:28:46]OFD Sender: No OFD packet to send [17:28:51]OFD Sender: No OFD packet to send [17:28:56]OFD Sender: No OFD packet to send [17:29:01]OFD Sender: No OFD packet to send [17:29:06]OFD Sender: No OFD packet to send [17:29:11]OFD Sender: No OFD packet to send [17:29:16]OFD Sender: No OFD packet to send [17:29:21]OFD Sender: No OFD packet to send [17:29:26]OFD Sender: No OFD packet to send [17:29:31]OFD Sender: No OFD packet to send [17:29:36]OFD Sender: No OFD packet to send [17:29:41]OFD Sender: No OFD packet to send [17:29:46]OFD Sender: No OFD packet to send [17:29:51]OFD Sender: No OFD packet to send [17:29:56]OFD Sender: No OFD packet to send [17:30:01]OFD Sender: No OFD packet to send [17:30:06]OFD Sender: No OFD packet to send [17:30:11]OFD Sender: No OFD packet to send [17:30:16]OFD Sender: No OFD packet to send [17:30:21]OFD Sender: No OFD packet to send [17:30:26]OFD Sender: No OFD packet to send [17:30:31]OFD Sender: No OFD packet to send [17:30:36]OFD Sender: No OFD packet to send [17:30:41]OFD Sender: No OFD packet to send [17:30:46]OFD Sender: No OFD packet to send [17:30:51]OFD Sender: No OFD packet to send [17:30:56]OFD Sender: No OFD packet to send [17:31:01]OFD Sender: No OFD packet to send [17:31:06]OFD Sender: No OFD packet to send [17:31:11]OFD Sender: No OFD packet to send [17:31:16]OFD Sender: No OFD packet to send [17:31:21]OFD Sender: No OFD packet to send [17:31:26]OFD Sender: No OFD packet to send [17:31:31]OFD Sender: No OFD packet to send [17:31:36]OFD Sender: No OFD packet to send [17:31:41]OFD Sender: No OFD packet to send [17:31:46]OFD Sender: No OFD packet to send [17:31:51]OFD Sender: No OFD packet to send [17:31:53]accept exits with 9 [17:31:53]New connection [17:31:53]New thread 3067137380 created [17:31:53]Thread 3066994020 joined [17:31:53]Waiting for new connection... [17:31:53] Sock 9.Parse request [17:31:53]Sock 9.Check first char [17:31:53]Sock 9.First char is OK [17:31:53]request: POST /json_proto HTTP/1.0 [17:31:53]Method: POST [17:31:53]URL: /json_proto [17:31:53]Method is POST - this is cgi request [17:31:53]url: /json_proto [17:31:53]query_string will be loaded in cgi processing [17:31:53]execute_cgi json_proto POST (null) [17:31:53]execute_cgi path=json_proto method=POST [17:31:53]POST find Content-Length [17:31:53]Host: 172.17.44.195:8080 [17:31:53]Content-Length: 683 [17:31:53]Content-Type: application/json [17:31:53] [17:31:53]POST finish read [17:31:53]Found Content-Length = 683 [17:31:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 55.060, "sum" : 4085.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 4085.00, "payments": [ { "type": 0, "sum" : 4085.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:53]execute_script... [17:31: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)1964874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 55.060, "sum" : 4085.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 4085.00, "payments": [ { "type": 0, "sum" : 4085.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:53]POST & json_proto [17:31:53]process_json_proto [17:31:53]json parsed OK: [17:31:53]protocol is kg_v1.0 [17:31:53]action value=close_receipt [17:31:53]process_action close_receipt [17:31:53]cmd_close_receipt [17:31:53]MH_GetDate [17:31:53]Write to MH i2c: F0 00 00 53 62 A4 [17:31:53]Write i2c OK [17:31:53]MH_I2C_Read... [17:31:53]Read from MH i2c: F0 [17:31:53]MH_I2C_Read... [17:31:53]Read from MH i2c: F0 09 00 [17:31:53]MH_I2C_Read... [17:31:53]Read from MH i2c: F0 09 00 53 62 00 8E E1 17 67 82 C9 CF 66 1A [17:31:53]GetLastDocTimeStamp 1729618029 [17:31:53]current date 1729618318 [17:31:53]FM_GetShiftState [17:31:53]SAM_PROTO_GetShiftState [17:31:53]wFMCommunicate request_size=4 [17:31:53]MH_SAM_APDU [17:31:53]CAPDU: 80 13 01 00 [17:31:53]Write to MH i2c: E2 08 00 54 62 80 13 01 00 00 00 00 00 33 [17:31:53]Write i2c OK [17:31:53]MH_I2C_Read... [17:31:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:53]Read from MH i2c: E2 [17:31:53]MH_I2C_Read... [17:31:53]Read from MH i2c: E2 0E 00 [17:31:53]MH_I2C_Read... [17:31:53]Read from MH i2c: E2 0E 00 54 62 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 FA [17:31:53]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:31:53]wFMCommunicate OK [17:31:53]SAM_PROTO_GetShiftState done [17:31:53]FM_GetShiftState done [17:31:53]opened in 1729555538 [17:31:53]opened+sec_in_day 1729641938 [17:31:53]quantity*price = 408545 [17:31:53]sum+1 = 408546 [17:31:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 4085.00 Внесено: 5000.00 СДАЧА: 915.00 НСП 1% : 36.15 НДС 12% : 433.85 Наличными: 4085.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 332 22.10.2024 17:31 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228368 ФПД: 191356254374946 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T173158&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228368&fm=191356254374946&tin=02508201610067®Number=0000000000091685&sum=408500 [17:31:54]StoreToDocumentArchive [17:31:54]shift 535 fd 228368 [17:31:54]save to /storage/0535/doc_00228368 [17:31:54]save last doc name /storage/0535/doc_00228368 to /storage/kkm_last_doc_name [17:31:54]save OK [17:31:54]Clear old archive folders... [17:31:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:31:54]tlvbuf is 00AA0E70 [17:31:54]SAM_PROTO_ClearQueue [17:31:54]wFMCommunicate request_size=4 [17:31:54]MH_SAM_APDU [17:31:54]CAPDU: 80 09 00 00 [17:31:54]Write to MH i2c: E2 08 00 61 62 80 09 00 00 00 00 00 00 35 [17:31:54]Write i2c OK [17:31:54]MH_I2C_Read... [17:31:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:54]Read from MH i2c: E2 [17:31:54]MH_I2C_Read... [17:31:54]Read from MH i2c: E2 03 00 [17:31:54]MH_I2C_Read... [17:31:54]Read from MH i2c: E2 03 00 61 62 00 90 00 37 [17:31:54]RAPDU: 90 00 [17:31:54]wFMCommunicate OK [17:31:54]SAM_PROTO_ClearQueue done [17:31:54]KKMCreateOFDPacket [17:31:54]OFDProtocolAddRootSTLVToBuf [17:31:54]FM_MakeSignedData [17:31:54]FM_MakeSignedData [17:31:54]SAM_PROTO_SignData [17:31:54]wFMCommunicate request_size=4 [17:31:54]MH_SAM_APDU [17:31:54]CAPDU: 80 0D 01 02 [17:31:54]Write to MH i2c: E2 08 00 62 62 80 0D 01 02 00 00 00 00 3D [17:31:54]Write i2c OK [17:31:54]MH_I2C_Read... [17:31:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:54]Read from MH i2c: E2 [17:31:54]MH_I2C_Read... [17:31:54]Read from MH i2c: E2 03 00 [17:31:54]MH_I2C_Read... [17:31:54]Read from MH i2c: E2 03 00 62 62 00 90 00 38 [17:31:54]RAPDU: 90 00 [17:31:54]wFMCommunicate OK [17:31:54]wFMCommunicate request_size=255 [17:31:54]MH_SAM_APDU [17:31:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 14 D7 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E1 3B 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 3B 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 A9 00 00 00 00 07 04 06 00 B4 3B 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 8E E1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 10 7C 03 00 35 04 06 00 AE [17:31:54]Write to MH i2c: E2 02 01 63 62 80 0D 02 02 FA 00 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 14 D7 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E1 3B 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 3B 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 A9 00 00 00 00 07 04 06 00 B4 3B 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 8E E1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 10 7C 03 00 35 04 06 00 AE 00 00 41 [17:31:54]Write i2c OK [17:31:54]MH_I2C_Read... [17:31:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:55]Read from MH i2c: E2 [17:31:55]MH_I2C_Read... [17:31:55]Read from MH i2c: E2 03 00 [17:31:55]MH_I2C_Read... [17:31:55]Read from MH i2c: E2 03 00 63 62 00 90 00 39 [17:31:55]RAPDU: 90 00 [17:31:55]wFMCommunicate OK [17:31:55]wFMCommunicate request_size=10 [17:31:55]MH_SAM_APDU [17:31:55]CAPDU: 80 0D 02 02 05 09 99 91 4C 22 [17:31:55]Write to MH i2c: E2 0D 00 64 62 80 0D 02 02 05 00 09 99 91 4C 22 00 00 EB [17:31:55]Write i2c OK [17:31:55]MH_I2C_Read... [17:31:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:55]Read from MH i2c: E2 [17:31:55]MH_I2C_Read... [17:31:55]Read from MH i2c: E2 03 00 [17:31:55]MH_I2C_Read... [17:31:55]Read from MH i2c: E2 03 00 64 62 00 90 00 3A [17:31:55]RAPDU: 90 00 [17:31:55]wFMCommunicate OK [17:31:55]wFMCommunicate request_size=4 [17:31:55]MH_SAM_APDU [17:31:55]CAPDU: 80 0D 03 02 [17:31:55]Write to MH i2c: E2 08 00 65 62 80 0D 03 02 00 00 00 00 42 [17:31:55]Write i2c OK [17:31:55]MH_I2C_Read... [17:31:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:55]Read from MH i2c: E2 [17:31:55]MH_I2C_Read... [17:31:55]Read from MH i2c: E2 0B 00 [17:31:55]MH_I2C_Read... [17:31:55]Read from MH i2c: E2 0B 00 65 62 00 9A F8 80 84 8A 67 7D BE 90 00 05 [17:31:55]RAPDU: 9A F8 80 84 8A 67 7D BE 90 00 [17:31:55]wFMCommunicate OK [17:31:55]SAM_PROTO_SignData done [17:31:55]FM_MakeSignedData done [17:31:55]CreateOFDProtocolMessage [17:31:55]wFMCommunicate request_size=4 [17:31:55]MH_SAM_APDU [17:31:55]CAPDU: 80 11 00 00 [17:31:55]Write to MH i2c: E2 08 00 66 62 80 11 00 00 00 00 00 00 42 [17:31:55]Write i2c OK [17:31:55]MH_I2C_Read... [17:31:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:55]Read from MH i2c: E2 [17:31:55]MH_I2C_Read... [17:31:55]Read from MH i2c: E2 17 00 [17:31:55]MH_I2C_Read... [17:31:55]Read from MH i2c: E2 17 00 66 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 99 [17:31:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:31:55]wFMCommunicate OK [17:31:55]CreateOFDProtocolMessage done [17:31:55]OFDSenderStorePacket 228368 [17:31:55]StoreOFDPacket docnum=228368 [17:31:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 4F 4C 07 01 58 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 14 D7 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E1 3B 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 3B 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 A9 00 00 00 00 07 04 06 00 B4 3B 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 8E E1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 10 7C 03 00 35 04 06 00 AE 09 99 91 4C 22 9A F8 80 84 8A 67 7D BE [17:31:55]CheckFolder [17:31:55]dirname=/storage/ofd_packets [17:31:55]CheckFolder done [17:31:55]ProducePacketName [17:31:55]name=ofd_packets/00228368 [17:31:55]NVStorageSaveData ofd_packets/00228368 [17:31:55]File name is /storage/ofd_packets/00228368 [17:31:55]Write 301 bytes [17:31:55]NVStorageSaveData done [17:31:55]OFDSenderStorePacket done [17:31:55]KKMCreateOFDPacket done [17:31:55]NVStorageSaveData kkm_last_timestamp [17:31:55]File name is /storage/kkm_last_timestamp [17:31:55]Write 4 bytes [17:31:55]NVStorageSaveData done [17:31:55]OFD Sender: Processing packet 228368 [packets to send 38, broken 37] [17:31:55]ProducePacketName [17:31:55]name=ofd_packets/00228368 [17:31:55]OFD Sender: To server: pG, [17:31:55]CommunicateWithHost lk.salyk.kg:30040 [17:31:55]ConnectInit lk.salyk.kg [17:31:55]ExternCall_PrintAddStr [17:31:55]wPrintStart [17:31:55]Write to MH i2c: 01 00 00 67 62 C9 [17:31:55]Write i2c OK [17:31:55]MH_I2C_Read... [17:31:55]Read from MH i2c: 01 [17:31:55]MH_I2C_Read... [17:31:55]Read from MH i2c: 01 07 00 [17:31:55]MH_I2C_Read... [17:31:55]Read from MH i2c: 01 07 00 67 62 00 00 00 00 00 FF 0F DE [17:31:55]RasterBufferAndPrint [17:31:55]line Счет N : (1)1964874 [17:31:55]line ИНН: 02508201610067 [17:31:55]line Контрольно-Кассовый Чек [17:31:55]line ПРОДАЖА [17:31:55]line ТРК (МРК, ГНК) : 54 [17:31:55]line Товар: 2710124500 [17:31:55]line Аи-95-К-5 [17:31:55]line 55.060 * 74.20 [17:31:55]line = 4085.45 [17:31:55]line НДС 12% НСП 1% [17:31:55]line > о реализуемом товаре [17:31:55]line ОКРУГЛЕНИЕ: -0.45 [17:31:55]line ИТОГО: 4085.00 [17:31:55]line Внесено: 5000.00 [17:31:55]line СДАЧА: 915.00 [17:31:55]line НСП 1% : 36.15 [17:31:55]line НДС 12% : 433.85 [17:31:55]line Наличными: 4085.00 [17:31:55]line Безнал.: 0.00 [17:31:55]line Место: АЗС № 133 "Партнер Нефть" [17:31:55]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:31:55]line СНО: Общий режим [17:31:55]line Чек 332 22.10.2024 17:31 [17:31:55]line Смена: 535 ФФД: 1.0 [17:31:55]line ЗНМ: 0300000091 [17:31:55]line РНМ: 0000000000091685 [17:31:55]line Версия ККМ: 001 [17:31:55]line ФМ: 0000000000871839 [17:31:55]line ФД: 228368 [17:31:55]line ФПД: 191356254374946 [17:31:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T173158&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228368&fm=191356254374946&tin=02508201610067®Number=0000000000091685&sum=408500 [17:31:55]Connected sock=11 [17:31:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 4F 4C 07 01 58 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 14 D7 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E1 3B 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 3B 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 A9 00 00 00 00 07 04 06 00 B4 3B 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 8E E1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 10 7C 03 00 35 04 06 00 AE 09 99 91 4C 22 9A F8 80 84 8A 67 7D BE [17:31:55]written 0, free lines is 4095 [17:31:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 05 CC 47 00 6F D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 10 7C 03 00 F4 03 04 00 86 8C 17 67 B6 04 01 00 00 D6 87 16 8B 28 2D B6 2A [17:31:55]CommunicateWithHost err = 0 [17:31:55]CheckOFDResponse [17:31:55]1017 (14) - 77093643461234 [17:31:55]1041 (16) - 0000000000871839 [17:31:55]1040 (4) - 228368 [17:31:55]1012 (4) - 22.10.2024 11:29 [17:31:55]1206 (1) - 0 [17:31:55]OFD Sender: Remove packet 228368 [17:31:55]ProducePacketName [17:31:55]name=ofd_packets/00228368 [17:31:55]NVStorageDeleteData [17:31:56]Write to MH i2c: 01 00 00 91 62 F3 [17:31:56]Write i2c OK [17:31:56]MH_I2C_Read... [17:31:56]Read from MH i2c: 01 [17:31:56]MH_I2C_Read... [17:31:56]Read from MH i2c: 01 07 00 [17:31:56]MH_I2C_Read... [17:31:56]Read from MH i2c: 01 07 00 91 62 00 00 00 00 00 B7 0C BD [17:31:56]RasterBufferAndPrint [17:31:56]line [17:31:56]line [17:31:56]line [17:31:56]line [17:31:56]line [17:31:56]written 0, free lines is 3258 [17:31:56]MH_Cut [17:31:56]Write to MH i2c: D1 01 00 98 62 01 CC [17:31:56]Write i2c OK [17:31:56]MH_I2C_Read... [17:31:56]Read from MH i2c: D1 [17:31:56]MH_I2C_Read... [17:31:56]Read from MH i2c: D1 01 00 [17:31:56]MH_I2C_Read... [17:31:56]Read from MH i2c: D1 01 00 98 62 00 CB [17:31:56]Write to MH i2c: 01 00 00 99 62 FB [17:31:56]Write i2c OK [17:31:56]MH_I2C_Read... [17:31:56]OFD Sender: No OFD packet to send [17:31:56]*** Cut start [17:31:56]*** Partial cut [17:31:56]*** CUTSNS_PIN = 1 [17:31:57]*** CUTSNS_PIN = 0 [17:31:57]*** Brake cut motor [17:31:57]Read from MH i2c: 01 [17:31:57]MH_I2C_Read... [17:31:57]*** Stop cut motor [17:31:57]*** Cut end [17:31:57]Read from MH i2c: 01 07 00 [17:31:57]MH_I2C_Read... [17:31:57]Read from MH i2c: 01 07 00 99 62 00 00 00 00 00 FF 0F 10 [17:31:57]process_action close_receipt done [17:31:57]requested_data is exist [17:31:57]produce_requested_data [17:31:57]requested_item fm.sn is exist - process it [17:31:57]wFMCommunicate request_size=4 [17:31:57]MH_SAM_APDU [17:31:57]CAPDU: 80 11 00 00 [17:31:57]Write to MH i2c: E2 08 00 9A 62 80 11 00 00 00 00 00 00 76 [17:31:57]Write i2c OK [17:31:57]MH_I2C_Read... [17:31:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:57]Read from MH i2c: E2 [17:31:57]MH_I2C_Read... [17:31:57]Read from MH i2c: E2 17 00 [17:31:57]MH_I2C_Read... [17:31:57]Read from MH i2c: E2 17 00 9A 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CD [17:31:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:31:57]wFMCommunicate OK [17:31:57]requested_item fd.num is exist - process it [17:31:57]SAM_PROTO_GetFieldsCounters [17:31:57]wFMCommunicate request_size=4 [17:31:57]MH_SAM_APDU [17:31:57]CAPDU: 80 13 00 00 [17:31:57]Write to MH i2c: E2 08 00 9B 62 80 13 00 00 00 00 00 00 79 [17:31:57]Write i2c OK [17:31:57]MH_I2C_Read... [17:31:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:57]Read from MH i2c: E2 [17:31:57]MH_I2C_Read... [17:31:57]Read from MH i2c: E2 62 00 [17:31:57]MH_I2C_Read... [17:31:57]Read from MH i2c: E2 62 00 9B 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 10 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 31 [17:31:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 10 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:31:57]wFMCommunicate OK [17:31:57]SAM_PROTO_GetFieldsCounters done [17:31:57]requested_item shift.num is exist - process it [17:31:57]requested_item shift.opened is exist - process it [17:31:57]req_shift_opened [17:31:57]FM_GetShiftState [17:31:57]SAM_PROTO_GetShiftState [17:31:57]wFMCommunicate request_size=4 [17:31:57]MH_SAM_APDU [17:31:57]CAPDU: 80 13 01 00 [17:31:57]Write to MH i2c: E2 08 00 9C 62 80 13 01 00 00 00 00 00 7B [17:31:57]Write i2c OK [17:31:57]MH_I2C_Read... [17:31:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:57]Read from MH i2c: E2 [17:31:57]MH_I2C_Read... [17:31:57]Read from MH i2c: E2 0E 00 [17:31:57]MH_I2C_Read... [17:31:57]Read from MH i2c: E2 0E 00 9C 62 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 42 [17:31:57]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:31:57]wFMCommunicate OK [17:31:57]SAM_PROTO_GetShiftState done [17:31:57]FM_GetShiftState done [17:31:57]req_shift_opened done [17:31:57]requested_item shift.open_date is exist - process it [17:31:57]req_shift_open_date [17:31:57]req_shift_open_date done [17:31:57]produce_requested_data done [17:31:57]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228368,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [17:31:57]process_action_free close_receipt [17:31:57]json_value_free [17:31:57]json_value_free done [17:31:57]process_json_proto returns [17:31:57]Send response to host [17:31:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228368,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [17:31:57]free response buf [17:31:57]execute_script done [17:31:57]execute_script returns [17:31:57]free content buf [17:31:57]Sock 9.Close socket [17:31:57]Sock 9.Thread stoped [17:32:01]OFD Sender: No OFD packet to send [17:32:06]OFD Sender: No OFD packet to send [17:32:11]OFD Sender: No OFD packet to send [17:32:16]OFD Sender: No OFD packet to send [17:32:21]OFD Sender: No OFD packet to send [17:32:26]OFD Sender: No OFD packet to send [17:32:31]OFD Sender: No OFD packet to send [17:32:36]OFD Sender: No OFD packet to send [17:32:41]OFD Sender: No OFD packet to send [17:32:46]OFD Sender: No OFD packet to send [17:32:51]OFD Sender: No OFD packet to send [17:32:56]OFD Sender: No OFD packet to send [17:33:01]OFD Sender: No OFD packet to send [17:33:06]OFD Sender: No OFD packet to send [17:33:11]OFD Sender: No OFD packet to send [17:33:16]OFD Sender: No OFD packet to send [17:33:21]OFD Sender: No OFD packet to send [17:33:26]OFD Sender: No OFD packet to send [17:33:31]OFD Sender: No OFD packet to send [17:33:36]OFD Sender: No OFD packet to send [17:33:41]OFD Sender: No OFD packet to send [17:33:46]OFD Sender: No OFD packet to send [17:33:51]OFD Sender: No OFD packet to send [17:33:56]OFD Sender: No OFD packet to send [17:34:01]OFD Sender: No OFD packet to send [17:34:06]OFD Sender: No OFD packet to send [17:34:11]OFD Sender: No OFD packet to send [17:34:16]OFD Sender: No OFD packet to send [17:34:21]OFD Sender: No OFD packet to send [17:34:26]OFD Sender: No OFD packet to send [17:34:31]OFD Sender: No OFD packet to send [17:34:36]OFD Sender: No OFD packet to send [17:34:41]OFD Sender: No OFD packet to send [17:34:43]accept exits with 7 [17:34:43]New connection [17:34:43]New thread 3066994020 created [17:34:43]Thread 3067137380 joined [17:34:43]Waiting for new connection... [17:34:43] Sock 7.Parse request [17:34:43]Sock 7.Check first char [17:34:43]Sock 7.First char is OK [17:34:43]request: POST /json_proto HTTP/1.0 [17:34:43]Method: POST [17:34:43]URL: /json_proto [17:34:43]Method is POST - this is cgi request [17:34:43]url: /json_proto [17:34:43]query_string will be loaded in cgi processing [17:34:43]execute_cgi json_proto POST (null) [17:34:43]execute_cgi path=json_proto method=POST [17:34:43]POST find Content-Length [17:34:43]Host: 172.17.44.195:8080 [17:34:43]Content-Length: 678 [17:34:43]Content-Type: application/json [17:34:43] [17:34:43]POST finish read [17:34:43]Found Content-Length = 678 [17:34:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:34:43]execute_script... [17:34:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:34:43]POST & json_proto [17:34:43]process_json_proto [17:34:43]json parsed OK: [17:34:43]protocol is kg_v1.0 [17:34:43]action value=close_receipt [17:34:43]process_action close_receipt [17:34:43]cmd_close_receipt [17:34:43]MH_GetDate [17:34:43]Write to MH i2c: F0 00 00 9D 62 EE [17:34:43]Write i2c OK [17:34:43]MH_I2C_Read... [17:34:43]Read from MH i2c: F0 [17:34:43]MH_I2C_Read... [17:34:43]Read from MH i2c: F0 09 00 [17:34:43]MH_I2C_Read... [17:34:43]Read from MH i2c: F0 09 00 9D 62 00 38 E2 17 67 82 C9 CF 66 0F [17:34:43]GetLastDocTimeStamp 1729618318 [17:34:43]current date 1729618488 [17:34:43]FM_GetShiftState [17:34:43]SAM_PROTO_GetShiftState [17:34:43]wFMCommunicate request_size=4 [17:34:43]MH_SAM_APDU [17:34:43]CAPDU: 80 13 01 00 [17:34:43]Write to MH i2c: E2 08 00 9E 62 80 13 01 00 00 00 00 00 7D [17:34:43]Write i2c OK [17:34:43]MH_I2C_Read... [17:34:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:43]Read from MH i2c: E2 [17:34:43]MH_I2C_Read... [17:34:43]Read from MH i2c: E2 0E 00 [17:34:43]MH_I2C_Read... [17:34:43]Read from MH i2c: E2 0E 00 9E 62 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 44 [17:34:43]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:34:43]wFMCommunicate OK [17:34:43]SAM_PROTO_GetShiftState done [17:34:43]FM_GetShiftState done [17:34:43]opened in 1729555538 [17:34:43]opened+sec_in_day 1729641938 [17:34:43]quantity*price = 50041 [17:34:43]sum+1 = 50042 [17:34:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 333 22.10.2024 17:34 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228369 ФПД: 13835671272747 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T173448&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228369&fm=13835671272747&tin=02508201610067®Number=0000000000091685&sum=50000 [17:34:44]StoreToDocumentArchive [17:34:44]shift 535 fd 228369 [17:34:44]save to /storage/0535/doc_00228369 [17:34:44]save last doc name /storage/0535/doc_00228369 to /storage/kkm_last_doc_name [17:34:44]save OK [17:34:44]Clear old archive folders... [17:34:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:34:44]tlvbuf is 008B1C10 [17:34:44]SAM_PROTO_ClearQueue [17:34:44]wFMCommunicate request_size=4 [17:34:44]MH_SAM_APDU [17:34:44]CAPDU: 80 09 00 00 [17:34:44]Write to MH i2c: E2 08 00 AB 62 80 09 00 00 00 00 00 00 7F [17:34:44]Write i2c OK [17:34:44]MH_I2C_Read... [17:34:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:44]Read from MH i2c: E2 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: E2 03 00 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: E2 03 00 AB 62 00 90 00 81 [17:34:44]RAPDU: 90 00 [17:34:44]wFMCommunicate OK [17:34:44]SAM_PROTO_ClearQueue done [17:34:44]KKMCreateOFDPacket [17:34:44]OFDProtocolAddRootSTLVToBuf [17:34:44]FM_MakeSignedData [17:34:44]FM_MakeSignedData [17:34:44]SAM_PROTO_SignData [17:34:44]wFMCommunicate request_size=4 [17:34:44]MH_SAM_APDU [17:34:44]CAPDU: 80 0D 01 02 [17:34:44]Write to MH i2c: E2 08 00 AC 62 80 0D 01 02 00 00 00 00 87 [17:34:44]Write i2c OK [17:34:44]MH_I2C_Read... [17:34:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:44]Read from MH i2c: E2 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: E2 03 00 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: E2 03 00 AC 62 00 90 00 82 [17:34:44]RAPDU: 90 00 [17:34:44]wFMCommunicate OK [17:34:44]wFMCommunicate request_size=255 [17:34:44]MH_SAM_APDU [17:34: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 38 E2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 11 7C 03 00 35 04 06 00 0C [17:34:44]Write to MH i2c: E2 02 01 AD 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 38 E2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 11 7C 03 00 35 04 06 00 0C 00 00 B9 [17:34:44]Write i2c OK [17:34:44]MH_I2C_Read... [17:34:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:44]Read from MH i2c: E2 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: E2 03 00 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: E2 03 00 AD 62 00 90 00 83 [17:34:44]RAPDU: 90 00 [17:34:44]wFMCommunicate OK [17:34:44]wFMCommunicate request_size=10 [17:34:44]MH_SAM_APDU [17:34:44]CAPDU: 80 0D 02 02 05 95 5E 45 7D 2B [17:34:44]Write to MH i2c: E2 0D 00 AE 62 80 0D 02 02 05 00 95 5E 45 7D 2B 00 00 74 [17:34:44]Write i2c OK [17:34:44]MH_I2C_Read... [17:34:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:44]Read from MH i2c: E2 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: E2 03 00 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: E2 03 00 AE 62 00 90 00 84 [17:34:44]RAPDU: 90 00 [17:34:44]wFMCommunicate OK [17:34:44]wFMCommunicate request_size=4 [17:34:44]MH_SAM_APDU [17:34:44]CAPDU: 80 0D 03 02 [17:34:44]Write to MH i2c: E2 08 00 AF 62 80 0D 03 02 00 00 00 00 8C [17:34:44]Write i2c OK [17:34:44]MH_I2C_Read... [17:34:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:44]Read from MH i2c: E2 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: E2 0B 00 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: E2 0B 00 AF 62 00 87 11 19 6B 60 0E AE 22 90 00 E7 [17:34:44]RAPDU: 87 11 19 6B 60 0E AE 22 90 00 [17:34:44]wFMCommunicate OK [17:34:44]SAM_PROTO_SignData done [17:34:44]FM_MakeSignedData done [17:34:44]CreateOFDProtocolMessage [17:34:44]wFMCommunicate request_size=4 [17:34:44]MH_SAM_APDU [17:34:44]CAPDU: 80 11 00 00 [17:34:44]Write to MH i2c: E2 08 00 B0 62 80 11 00 00 00 00 00 00 8C [17:34:44]Write i2c OK [17:34:44]MH_I2C_Read... [17:34:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:44]Read from MH i2c: E2 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: E2 17 00 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: E2 17 00 B0 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E3 [17:34:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:34:44]wFMCommunicate OK [17:34:44]CreateOFDProtocolMessage done [17:34:44]OFDSenderStorePacket 228369 [17:34:44]StoreOFDPacket docnum=228369 [17:34:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 94 98 07 01 4D 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 38 E2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 11 7C 03 00 35 04 06 00 0C 95 5E 45 7D 2B 87 11 19 6B 60 0E AE 22 [17:34:44]CheckFolder [17:34:44]dirname=/storage/ofd_packets [17:34:44]CheckFolder done [17:34:44]ProducePacketName [17:34:44]name=ofd_packets/00228369 [17:34:44]NVStorageSaveData ofd_packets/00228369 [17:34:44]File name is /storage/ofd_packets/00228369 [17:34:44]Write 301 bytes [17:34:44]NVStorageSaveData done [17:34:44]OFDSenderStorePacket done [17:34:44]KKMCreateOFDPacket done [17:34:44]NVStorageSaveData kkm_last_timestamp [17:34:44]File name is /storage/kkm_last_timestamp [17:34:44]Write 4 bytes [17:34:44]NVStorageSaveData done [17:34:44]ExternCall_PrintAddStr [17:34:44]wPrintStart [17:34:44]Write to MH i2c: 01 00 00 B1 62 13 [17:34:44]Write i2c OK [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: 01 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: 01 07 00 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: 01 07 00 B1 62 00 00 00 00 00 FF 0F 28 [17:34:44]RasterBufferAndPrint [17:34:44]line Счет N : (1)1964876 [17:34:44]line ИНН: 02508201610067 [17:34:44]line Контрольно-Кассовый Чек [17:34:44]line ПРОДАЖА [17:34:44]line ТРК (МРК, ГНК) : 43 [17:34:44]line Товар: 2710124130 [17:34:44]line Аи-92-К-5 [17:34:44]line 7.480 * 66.90 [17:34:44]line = 500.41 [17:34:44]line НДС 12% НСП 1% [17:34:44]line > о реализуемом товаре [17:34:44]line ОКРУГЛЕНИЕ: -0.41 [17:34:44]line ИТОГО: 500.00 [17:34:44]line Внесено: 500.00 [17:34:44]line СДАЧА: 0.00 [17:34:44]line НСП 1% : 4.43 [17:34:44]line НДС 12% : 53.14 [17:34:44]line Наличными: 500.00 [17:34:44]line Безнал.: 0.00 [17:34:44]line Место: АЗС № 133 "Партнер Нефть" [17:34:44]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:34:44]line СНО: Общий режим [17:34:44]line Чек 333 22.10.2024 17:34 [17:34:44]line Смена: 535 ФФД: 1.0 [17:34:44]line ЗНМ: 0300000091 [17:34:44]line РНМ: 0000000000091685 [17:34:44]line Версия ККМ: 001 [17:34:44]line ФМ: 0000000000871839 [17:34:44]line ФД: 228369 [17:34:44]line ФПД: 13835671272747 [17:34:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T173448&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228369&fm=13835671272747&tin=02508201610067®Number=0000000000091685&sum=50000 [17:34:45]written 0, free lines is 4095 [17:34:45]OFD Sender: Processing packet 228369 [packets to send 38, broken 37] [17:34:45]ProducePacketName [17:34:45]name=ofd_packets/00228369 [17:34:45]OFD Sender: To server: pG, [17:34:45]CommunicateWithHost lk.salyk.kg:30040 [17:34:45]ConnectInit lk.salyk.kg [17:34:45]Connected sock=11 [17:34:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 94 98 07 01 4D 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 38 E2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 11 7C 03 00 35 04 06 00 0C 95 5E 45 7D 2B 87 11 19 6B 60 0E AE 22 [17:34:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 7C 6D 47 00 25 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 11 7C 03 00 F4 03 04 00 30 8D 17 67 B6 04 01 00 00 BE F7 3F C7 6B 1E 44 2B [17:34:45]CommunicateWithHost err = 0 [17:34:45]CheckOFDResponse [17:34:45]1017 (14) - 77093643461234 [17:34:45]1041 (16) - 0000000000871839 [17:34:45]1040 (4) - 228369 [17:34:45]1012 (4) - 22.10.2024 11:32 [17:34:45]1206 (1) - 0 [17:34:45]OFD Sender: Remove packet 228369 [17:34:45]ProducePacketName [17:34:45]name=ofd_packets/00228369 [17:34:45]NVStorageDeleteData [17:34:45]Write to MH i2c: 01 00 00 DB 62 3D [17:34:45]Write i2c OK [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: 01 [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: 01 07 00 [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: 01 07 00 DB 62 00 00 00 00 00 AD 0C FD [17:34:45]RasterBufferAndPrint [17:34:45]line [17:34:45]line [17:34:45]line [17:34:45]line [17:34:45]line [17:34:45]written 0, free lines is 3248 [17:34:45]MH_Cut [17:34:45]Write to MH i2c: D1 01 00 E2 62 01 16 [17:34:45]Write i2c OK [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: D1 [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: D1 01 00 [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: D1 01 00 E2 62 00 15 [17:34:45]Write to MH i2c: 01 00 00 E3 62 45 [17:34:45]Write i2c OK [17:34:45]MH_I2C_Read... [17:34:46]OFD Sender: No OFD packet to send [17:34:46]*** Cut start [17:34:46]*** Partial cut [17:34:46]*** CUTSNS_PIN = 1 [17:34:46]*** CUTSNS_PIN = 0 [17:34:46]*** Brake cut motor [17:34:47]Read from MH i2c: 01 [17:34:47]MH_I2C_Read... [17:34:47]*** Stop cut motor [17:34:47]*** Cut end [17:34:47]Read from MH i2c: 01 07 00 [17:34:47]MH_I2C_Read... [17:34:47]Read from MH i2c: 01 07 00 E3 62 00 00 00 00 00 FF 0F 5A [17:34:47]process_action close_receipt done [17:34:47]requested_data is exist [17:34:47]produce_requested_data [17:34:47]requested_item fm.sn is exist - process it [17:34:47]wFMCommunicate request_size=4 [17:34:47]MH_SAM_APDU [17:34:47]CAPDU: 80 11 00 00 [17:34:47]Write to MH i2c: E2 08 00 E4 62 80 11 00 00 00 00 00 00 C0 [17:34:47]Write i2c OK [17:34:47]MH_I2C_Read... [17:34:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:47]Read from MH i2c: E2 [17:34:47]MH_I2C_Read... [17:34:47]Read from MH i2c: E2 17 00 [17:34:47]MH_I2C_Read... [17:34:47]Read from MH i2c: E2 17 00 E4 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 17 [17:34:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:34:47]wFMCommunicate OK [17:34:47]requested_item fd.num is exist - process it [17:34:47]SAM_PROTO_GetFieldsCounters [17:34:47]wFMCommunicate request_size=4 [17:34:47]MH_SAM_APDU [17:34:47]CAPDU: 80 13 00 00 [17:34:47]Write to MH i2c: E2 08 00 E5 62 80 13 00 00 00 00 00 00 C3 [17:34:47]Write i2c OK [17:34:47]MH_I2C_Read... [17:34:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:47]Read from MH i2c: E2 [17:34:47]MH_I2C_Read... [17:34:47]Read from MH i2c: E2 62 00 [17:34:47]MH_I2C_Read... [17:34:47]Read from MH i2c: E2 62 00 E5 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 11 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 7F [17:34:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 11 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:34:47]wFMCommunicate OK [17:34:47]SAM_PROTO_GetFieldsCounters done [17:34:47]requested_item shift.num is exist - process it [17:34:47]requested_item shift.opened is exist - process it [17:34:47]req_shift_opened [17:34:47]FM_GetShiftState [17:34:47]SAM_PROTO_GetShiftState [17:34:47]wFMCommunicate request_size=4 [17:34:47]MH_SAM_APDU [17:34:47]CAPDU: 80 13 01 00 [17:34:47]Write to MH i2c: E2 08 00 E6 62 80 13 01 00 00 00 00 00 C5 [17:34:47]Write i2c OK [17:34:47]MH_I2C_Read... [17:34:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:47]Read from MH i2c: E2 [17:34:47]MH_I2C_Read... [17:34:47]Read from MH i2c: E2 0E 00 [17:34:47]MH_I2C_Read... [17:34:47]Read from MH i2c: E2 0E 00 E6 62 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 8C [17:34:47]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:34:47]wFMCommunicate OK [17:34:47]SAM_PROTO_GetShiftState done [17:34:47]FM_GetShiftState done [17:34:47]req_shift_opened done [17:34:47]requested_item shift.open_date is exist - process it [17:34:47]req_shift_open_date [17:34:47]req_shift_open_date done [17:34:47]produce_requested_data done [17:34:47]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228369,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [17:34:47]process_action_free close_receipt [17:34:47]json_value_free [17:34:47]json_value_free done [17:34:47]process_json_proto returns [17:34:47]Send response to host [17:34:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228369,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [17:34:47]free response buf [17:34:47]execute_script done [17:34:47]execute_script returns [17:34:47]free content buf [17:34:47]Sock 7.Close socket [17:34:47]Sock 7.Thread stoped [17:34:49]accept exits with 9 [17:34:49]New connection [17:34:49]New thread 3067137380 created [17:34:49]Thread 3066994020 joined [17:34:49]Waiting for new connection... [17:34:49] Sock 9.Parse request [17:34:49]Sock 9.Check first char [17:34:49]Sock 9.First char is OK [17:34:49]request: POST /json_proto HTTP/1.0 [17:34:49]Method: POST [17:34:49]URL: /json_proto [17:34:49]Method is POST - this is cgi request [17:34:49]url: /json_proto [17:34:49]query_string will be loaded in cgi processing [17:34:49]execute_cgi json_proto POST (null) [17:34:49]execute_cgi path=json_proto method=POST [17:34:49]POST find Content-Length [17:34:49]Host: 172.17.44.195:8080 [17:34:49]Content-Length: 677 [17:34:49]Content-Type: application/json [17:34:49] [17:34:49]POST finish read [17:34:49]Found Content-Length = 677 [17:34:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 38.570, "sum" : 1500.37, "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:34:49]execute_script... [17:34:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 38.570, "sum" : 1500.37, "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:34:49]POST & json_proto [17:34:49]process_json_proto [17:34:49]json parsed OK: [17:34:49]protocol is kg_v1.0 [17:34:49]action value=close_receipt [17:34:49]process_action close_receipt [17:34:49]cmd_close_receipt [17:34:49]MH_GetDate [17:34:49]Write to MH i2c: F0 00 00 E7 62 38 [17:34:49]Write i2c OK [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: F0 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: F0 09 00 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: F0 09 00 E7 62 00 3E E2 17 67 82 C9 CF 66 5F [17:34:49]GetLastDocTimeStamp 1729618488 [17:34:49]current date 1729618494 [17:34:49]FM_GetShiftState [17:34:49]SAM_PROTO_GetShiftState [17:34:49]wFMCommunicate request_size=4 [17:34:49]MH_SAM_APDU [17:34:49]CAPDU: 80 13 01 00 [17:34:49]Write to MH i2c: E2 08 00 E8 62 80 13 01 00 00 00 00 00 C7 [17:34:49]Write i2c OK [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: E2 [17:34:49]MH_I2C_Read... [17:34:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:49]Read from MH i2c: E2 0E 00 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: E2 0E 00 E8 62 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 8E [17:34:49]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:34:49]wFMCommunicate OK [17:34:49]SAM_PROTO_GetShiftState done [17:34:49]FM_GetShiftState done [17:34:49]opened in 1729555538 [17:34:49]opened+sec_in_day 1729641938 [17:34:49]quantity*price = 150037 [17:34:49]sum+1 = 150038 [17:34:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 334 22.10.2024 17:34 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228370 ФПД: 214954397229591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T173454&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228370&fm=214954397229591&tin=02508201610067®Number=0000000000091685&sum=150000 [17:34:50]StoreToDocumentArchive [17:34:50]shift 535 fd 228370 [17:34:50]save to /storage/0535/doc_00228370 [17:34:50]save last doc name /storage/0535/doc_00228370 to /storage/kkm_last_doc_name [17:34:50]save OK [17:34:50]Clear old archive folders... [17:34:50]ProcessDocumentItem done err = 0, tmpTLVsize=245 [17:34:50]tlvbuf is 009845A0 [17:34:50]SAM_PROTO_ClearQueue [17:34:50]wFMCommunicate request_size=4 [17:34:50]MH_SAM_APDU [17:34:50]CAPDU: 80 09 00 00 [17:34:50]Write to MH i2c: E2 08 00 F5 62 80 09 00 00 00 00 00 00 C9 [17:34:50]Write i2c OK [17:34:50]MH_I2C_Read... [17:34:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:50]Read from MH i2c: E2 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 03 00 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 03 00 F5 62 00 90 00 CB [17:34:50]RAPDU: 90 00 [17:34:50]wFMCommunicate OK [17:34:50]SAM_PROTO_ClearQueue done [17:34:50]KKMCreateOFDPacket [17:34:50]OFDProtocolAddRootSTLVToBuf [17:34:50]FM_MakeSignedData [17:34:50]FM_MakeSignedData [17:34:50]SAM_PROTO_SignData [17:34:50]wFMCommunicate request_size=4 [17:34:50]MH_SAM_APDU [17:34:50]CAPDU: 80 0D 01 02 [17:34:50]Write to MH i2c: E2 08 00 F6 62 80 0D 01 02 00 00 00 00 D1 [17:34:50]Write i2c OK [17:34:50]MH_I2C_Read... [17:34:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:50]Read from MH i2c: E2 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 03 00 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 03 00 F6 62 00 90 00 CC [17:34:50]RAPDU: 90 00 [17:34:50]wFMCommunicate OK [17:34:50]wFMCommunicate request_size=254 [17:34:50]MH_SAM_APDU [17:34:50]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 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 3D 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 4E 01 00 00 F4 03 04 00 3E E2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 12 7C 03 00 35 04 06 00 C3 7F F8 7D 62 17 [17:34:50]Write to MH i2c: E2 01 01 F7 62 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 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 3D 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 4E 01 00 00 F4 03 04 00 3E E2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 12 7C 03 00 35 04 06 00 C3 7F F8 7D 62 17 00 00 58 [17:34:50]Write i2c OK [17:34:50]MH_I2C_Read... [17:34:51]OFD Sender: No OFD packet to send [17:34:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:51]Read from MH i2c: E2 [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: E2 03 00 [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: E2 03 00 F7 62 00 90 00 CD [17:34:51]RAPDU: 90 00 [17:34:51]wFMCommunicate OK [17:34:51]wFMCommunicate request_size=4 [17:34:51]MH_SAM_APDU [17:34:51]CAPDU: 80 0D 03 02 [17:34:51]Write to MH i2c: E2 08 00 F8 62 80 0D 03 02 00 00 00 00 D5 [17:34:51]Write i2c OK [17:34:51]MH_I2C_Read... [17:34:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:51]Read from MH i2c: E2 [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: E2 0B 00 [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: E2 0B 00 F8 62 00 2A 39 74 01 01 89 38 01 90 00 71 [17:34:51]RAPDU: 2A 39 74 01 01 89 38 01 90 00 [17:34:51]wFMCommunicate OK [17:34:51]SAM_PROTO_SignData done [17:34:51]FM_MakeSignedData done [17:34:51]CreateOFDProtocolMessage [17:34:51]wFMCommunicate request_size=4 [17:34:51]MH_SAM_APDU [17:34:51]CAPDU: 80 11 00 00 [17:34:51]Write to MH i2c: E2 08 00 F9 62 80 11 00 00 00 00 00 00 D5 [17:34:51]Write i2c OK [17:34:51]MH_I2C_Read... [17:34:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:51]Read from MH i2c: E2 [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: E2 17 00 [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: E2 17 00 F9 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2C [17:34:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:34:51]wFMCommunicate OK [17:34:51]CreateOFDProtocolMessage done [17:34:51]OFDSenderStorePacket 228370 [17:34:51]StoreOFDPacket docnum=228370 [17:34:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 CB D9 01 01 99 BA 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 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 3D 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 4E 01 00 00 F4 03 04 00 3E E2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 12 7C 03 00 35 04 06 00 C3 7F F8 7D 62 17 2A 39 74 01 01 89 38 01 [17:34:51]CheckFolder [17:34:51]dirname=/storage/ofd_packets [17:34:51]CheckFolder done [17:34:51]ProducePacketName [17:34:51]name=ofd_packets/00228370 [17:34:51]NVStorageSaveData ofd_packets/00228370 [17:34:51]File name is /storage/ofd_packets/00228370 [17:34:51]Write 295 bytes [17:34:51]NVStorageSaveData done [17:34:51]OFDSenderStorePacket done [17:34:51]KKMCreateOFDPacket done [17:34:51]NVStorageSaveData kkm_last_timestamp [17:34:51]File name is /storage/kkm_last_timestamp [17:34:51]Write 4 bytes [17:34:51]NVStorageSaveData done [17:34:51]ExternCall_PrintAddStr [17:34:51]wPrintStart [17:34:51]Write to MH i2c: 01 00 00 FA 62 5C [17:34:51]Write i2c OK [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: 01 [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: 01 07 00 [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: 01 07 00 FA 62 00 00 00 00 00 FF 0F 71 [17:34:51]RasterBufferAndPrint [17:34:51]line Счет N : (1)1964853 [17:34:51]line ИНН: 02508201610067 [17:34:51]line Контрольно-Кассовый Чек [17:34:51]line ПРОДАЖА [17:34:51]line ТРК (МРК, ГНК) : 71 [17:34:51]line Товар: 2711129700 [17:34:51]line ГАЗ [17:34:51]line 38.570 * 38.90 [17:34:51]line = 1500.37 [17:34:51]line НДС 12% НСП 1% [17:34:51]line > о реализуемом товаре [17:34:51]line ОКРУГЛЕНИЕ: -0.37 [17:34:51]line ИТОГО: 1500.00 [17:34:51]line Внесено: 1500.00 [17:34:51]line СДАЧА: 0.00 [17:34:51]line НСП 1% : 13.28 [17:34:51]line НДС 12% : 159.33 [17:34:51]line Наличными: 1500.00 [17:34:51]line Безнал.: 0.00 [17:34:51]line Место: АЗС № 133 "Партнер Нефть" [17:34:51]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:34:51]line СНО: Общий режим [17:34:51]line Чек 334 22.10.2024 17:34 [17:34:51]line Смена: 535 ФФД: 1.0 [17:34:51]line ЗНМ: 0300000091 [17:34:51]line РНМ: 0000000000091685 [17:34:51]line Версия ККМ: 001 [17:34:51]line ФМ: 0000000000871839 [17:34:51]line ФД: 228370 [17:34:51]line ФПД: 214954397229591 [17:34:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T173454&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228370&fm=214954397229591&tin=02508201610067®Number=0000000000091685&sum=150000 [17:34:51]written 0, free lines is 4095 [17:34:51]OFD Sender: Processing packet 228370 [packets to send 38, broken 37] [17:34:51]ProducePacketName [17:34:51]name=ofd_packets/00228370 [17:34:51]OFD Sender: To server: pG, [17:34:51]CommunicateWithHost lk.salyk.kg:30040 [17:34:51]ConnectInit lk.salyk.kg [17:34:51]Connected sock=10 [17:34:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 CB D9 01 01 99 BA 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 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 3D 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 4E 01 00 00 F4 03 04 00 3E E2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 12 7C 03 00 35 04 06 00 C3 7F F8 7D 62 17 2A 39 74 01 01 89 38 01 [17:34:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 C3 53 47 00 B7 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 12 7C 03 00 F4 03 04 00 36 8D 17 67 B6 04 01 00 00 F2 2C 60 A6 1D 1F 9D D9 [17:34:51]CommunicateWithHost err = 0 [17:34:51]CheckOFDResponse [17:34:51]1017 (14) - 77093643461234 [17:34:51]1041 (16) - 0000000000871839 [17:34:51]1040 (4) - 228370 [17:34:51]1012 (4) - 22.10.2024 11:32 [17:34:51]1206 (1) - 0 [17:34:51]OFD Sender: Remove packet 228370 [17:34:51]ProducePacketName [17:34:51]name=ofd_packets/00228370 [17:34:51]NVStorageDeleteData [17:34:51]Write to MH i2c: 01 00 00 24 63 87 [17:34:51]Write i2c OK [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: 01 [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: 01 07 00 [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: 01 07 00 24 63 00 00 00 00 00 C1 0C 5B [17:34:51]RasterBufferAndPrint [17:34:51]line [17:34:51]line [17:34:51]line [17:34:51]line [17:34:51]line [17:34:51]written 0, free lines is 3272 [17:34:51]MH_Cut [17:34:51]Write to MH i2c: D1 01 00 2B 63 01 60 [17:34:51]Write i2c OK [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: D1 [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: D1 01 00 [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: D1 01 00 2B 63 00 5F [17:34:51]Write to MH i2c: 01 00 00 2C 63 8F [17:34:51]Write i2c OK [17:34:51]MH_I2C_Read... [17:34:52]OFD Sender: No OFD packet to send [17:34:52]*** Cut start [17:34:52]*** Partial cut [17:34:52]*** CUTSNS_PIN = 1 [17:34:52]*** CUTSNS_PIN = 0 [17:34:52]*** Brake cut motor [17:34:53]Read from MH i2c: 01 [17:34:53]MH_I2C_Read... [17:34:53]*** Stop cut motor [17:34:53]*** Cut end [17:34:53]Read from MH i2c: 01 07 00 [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: 01 07 00 2C 63 00 00 00 00 00 FF 0F A4 [17:34:53]process_action close_receipt done [17:34:53]requested_data is exist [17:34:53]produce_requested_data [17:34:53]requested_item fm.sn is exist - process it [17:34:53]wFMCommunicate request_size=4 [17:34:53]MH_SAM_APDU [17:34:53]CAPDU: 80 11 00 00 [17:34:53]Write to MH i2c: E2 08 00 2D 63 80 11 00 00 00 00 00 00 0A [17:34:53]Write i2c OK [17:34:53]MH_I2C_Read... [17:34:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:53]Read from MH i2c: E2 [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: E2 17 00 [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: E2 17 00 2D 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 61 [17:34:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:34:53]wFMCommunicate OK [17:34:53]requested_item fd.num is exist - process it [17:34:53]SAM_PROTO_GetFieldsCounters [17:34:53]wFMCommunicate request_size=4 [17:34:53]MH_SAM_APDU [17:34:53]CAPDU: 80 13 00 00 [17:34:53]Write to MH i2c: E2 08 00 2E 63 80 13 00 00 00 00 00 00 0D [17:34:53]Write i2c OK [17:34:53]MH_I2C_Read... [17:34:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:53]Read from MH i2c: E2 [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: E2 62 00 [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: E2 62 00 2E 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 12 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 CD [17:34:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 12 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:34:53]wFMCommunicate OK [17:34:53]SAM_PROTO_GetFieldsCounters done [17:34:53]requested_item shift.num is exist - process it [17:34:53]requested_item shift.opened is exist - process it [17:34:53]req_shift_opened [17:34:53]FM_GetShiftState [17:34:53]SAM_PROTO_GetShiftState [17:34:53]wFMCommunicate request_size=4 [17:34:53]MH_SAM_APDU [17:34:53]CAPDU: 80 13 01 00 [17:34:53]Write to MH i2c: E2 08 00 2F 63 80 13 01 00 00 00 00 00 0F [17:34:53]Write i2c OK [17:34:53]MH_I2C_Read... [17:34:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:53]Read from MH i2c: E2 [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: E2 0E 00 [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: E2 0E 00 2F 63 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 D6 [17:34:53]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:34:53]wFMCommunicate OK [17:34:53]SAM_PROTO_GetShiftState done [17:34:53]FM_GetShiftState done [17:34:53]req_shift_opened done [17:34:53]requested_item shift.open_date is exist - process it [17:34:53]req_shift_open_date [17:34:53]req_shift_open_date done [17:34:53]produce_requested_data done [17:34:53]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228370,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [17:34:53]process_action_free close_receipt [17:34:53]json_value_free [17:34:53]json_value_free done [17:34:53]process_json_proto returns [17:34:53]Send response to host [17:34:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228370,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [17:34:53]free response buf [17:34:53]execute_script done [17:34:53]execute_script returns [17:34:53]free content buf [17:34:53]Sock 9.Close socket [17:34:53]Sock 9.Thread stoped [17:34:57]OFD Sender: No OFD packet to send [17:35:02]OFD Sender: No OFD packet to send [17:35:07]OFD Sender: No OFD packet to send [17:35:09]accept exits with 7 [17:35:09]New connection [17:35:09]New thread 3066994020 created [17:35:09]Thread 3067137380 joined [17:35:09]Waiting for new connection... [17:35:09] Sock 7.Parse request [17:35:09]Sock 7.Check first char [17:35:09]Sock 7.First char is OK [17:35:09]request: POST /json_proto HTTP/1.0 [17:35:09]Method: POST [17:35:09]URL: /json_proto [17:35:09]Method is POST - this is cgi request [17:35:09]url: /json_proto [17:35:09]query_string will be loaded in cgi processing [17:35:09]execute_cgi json_proto POST (null) [17:35:09]execute_cgi path=json_proto method=POST [17:35:09]POST find Content-Length [17:35:09]Host: 172.17.44.195:8080 [17:35:09]Content-Length: 678 [17:35:09]Content-Type: application/json [17:35:09] [17:35:09]POST finish read [17:35:09]Found Content-Length = 678 [17:35:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:35:09]execute_script... [17:35: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)1964875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:35:09]POST & json_proto [17:35:09]process_json_proto [17:35:09]json parsed OK: [17:35:09]protocol is kg_v1.0 [17:35:09]action value=close_receipt [17:35:09]process_action close_receipt [17:35:09]cmd_close_receipt [17:35:09]MH_GetDate [17:35:09]Write to MH i2c: F0 00 00 30 63 82 [17:35:09]Write i2c OK [17:35:09]MH_I2C_Read... [17:35:09]Read from MH i2c: F0 [17:35:09]MH_I2C_Read... [17:35:09]Read from MH i2c: F0 09 00 [17:35:09]MH_I2C_Read... [17:35:09]Read from MH i2c: F0 09 00 30 63 00 52 E2 17 67 82 C9 CF 66 BD [17:35:09]GetLastDocTimeStamp 1729618494 [17:35:09]current date 1729618514 [17:35:09]FM_GetShiftState [17:35:09]SAM_PROTO_GetShiftState [17:35:09]wFMCommunicate request_size=4 [17:35:09]MH_SAM_APDU [17:35:09]CAPDU: 80 13 01 00 [17:35:09]Write to MH i2c: E2 08 00 31 63 80 13 01 00 00 00 00 00 11 [17:35:09]Write i2c OK [17:35:09]MH_I2C_Read... [17:35:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:09]Read from MH i2c: E2 [17:35:09]MH_I2C_Read... [17:35:09]Read from MH i2c: E2 0E 00 [17:35:09]MH_I2C_Read... [17:35:09]Read from MH i2c: E2 0E 00 31 63 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 D8 [17:35:09]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:35:09]wFMCommunicate OK [17:35:09]SAM_PROTO_GetShiftState done [17:35:09]FM_GetShiftState done [17:35:09]opened in 1729555538 [17:35:09]opened+sec_in_day 1729641938 [17:35:09]quantity*price = 50041 [17:35:09]sum+1 = 50042 [17:35:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 335 22.10.2024 17:35 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228371 ФПД: 189000560320056 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T173514&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228371&fm=189000560320056&tin=02508201610067®Number=0000000000091685&sum=50000 [17:35:10]StoreToDocumentArchive [17:35:10]shift 535 fd 228371 [17:35:10]save to /storage/0535/doc_00228371 [17:35:10]save last doc name /storage/0535/doc_00228371 to /storage/kkm_last_doc_name [17:35:10]save OK [17:35:10]Clear old archive folders... [17:35:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:35:10]tlvbuf is 008D1460 [17:35:10]SAM_PROTO_ClearQueue [17:35:10]wFMCommunicate request_size=4 [17:35:10]MH_SAM_APDU [17:35:10]CAPDU: 80 09 00 00 [17:35:10]Write to MH i2c: E2 08 00 3E 63 80 09 00 00 00 00 00 00 13 [17:35:10]Write i2c OK [17:35:10]MH_I2C_Read... [17:35:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:35:10]Read from MH i2c: E2 [17:35:10]MH_I2C_Read... [17:35:10]Read from MH i2c: E2 03 00 [17:35:10]MH_I2C_Read... [17:35:10]Read from MH i2c: E2 03 00 3E 63 00 90 00 15 [17:35:10]RAPDU: 90 00 [17:35:10]wFMCommunicate OK [17:35:10]SAM_PROTO_ClearQueue done [17:35:10]KKMCreateOFDPacket [17:35:10]OFDProtocolAddRootSTLVToBuf [17:35:10]FM_MakeSignedData [17:35:10]FM_MakeSignedData [17:35:10]SAM_PROTO_SignData [17:35:10]wFMCommunicate request_size=4 [17:35:10]MH_SAM_APDU [17:35:10]CAPDU: 80 0D 01 02 [17:35:10]Write to MH i2c: E2 08 00 3F 63 80 0D 01 02 00 00 00 00 1B [17:35:10]Write i2c OK [17:35:10]MH_I2C_Read... [17:35:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:35:10]Read from MH i2c: E2 [17:35:10]MH_I2C_Read... [17:35:10]Read from MH i2c: E2 03 00 [17:35:10]MH_I2C_Read... [17:35:10]Read from MH i2c: E2 03 00 3F 63 00 90 00 16 [17:35:10]RAPDU: 90 00 [17:35:10]wFMCommunicate OK [17:35:10]wFMCommunicate request_size=255 [17:35:10]MH_SAM_APDU [17:35: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 52 E2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 13 7C 03 00 35 04 06 00 AB [17:35:10]Write to MH i2c: E2 02 01 40 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 52 E2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 13 7C 03 00 35 04 06 00 AB 00 00 0A [17:35:10]Write i2c OK [17:35:10]MH_I2C_Read... [17:35:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:10]Read from MH i2c: E2 [17:35:10]MH_I2C_Read... [17:35:10]Read from MH i2c: E2 03 00 [17:35:10]MH_I2C_Read... [17:35:10]Read from MH i2c: E2 03 00 40 63 00 90 00 17 [17:35:10]RAPDU: 90 00 [17:35:10]wFMCommunicate OK [17:35:10]wFMCommunicate request_size=10 [17:35:10]MH_SAM_APDU [17:35:10]CAPDU: 80 0D 02 02 05 E5 1F 42 9E 38 [17:35:10]Write to MH i2c: E2 0D 00 41 63 80 0D 02 02 05 00 E5 1F 42 9E 38 00 00 44 [17:35:10]Write i2c OK [17:35:10]MH_I2C_Read... [17:35:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:10]Read from MH i2c: E2 [17:35:10]MH_I2C_Read... [17:35:10]Read from MH i2c: E2 03 00 [17:35:10]MH_I2C_Read... [17:35:10]Read from MH i2c: E2 03 00 41 63 00 90 00 18 [17:35:10]RAPDU: 90 00 [17:35:10]wFMCommunicate OK [17:35:10]wFMCommunicate request_size=4 [17:35:10]MH_SAM_APDU [17:35:10]CAPDU: 80 0D 03 02 [17:35:10]Write to MH i2c: E2 08 00 42 63 80 0D 03 02 00 00 00 00 20 [17:35:10]Write i2c OK [17:35:10]MH_I2C_Read... [17:35:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:35:10]Read from MH i2c: E2 [17:35:10]MH_I2C_Read... [17:35:10]Read from MH i2c: E2 0B 00 [17:35:10]MH_I2C_Read... [17:35:10]Read from MH i2c: E2 0B 00 42 63 00 3E 02 C8 92 C5 23 98 75 90 00 B0 [17:35:10]RAPDU: 3E 02 C8 92 C5 23 98 75 90 00 [17:35:10]wFMCommunicate OK [17:35:10]SAM_PROTO_SignData done [17:35:10]FM_MakeSignedData done [17:35:10]CreateOFDProtocolMessage [17:35:10]wFMCommunicate request_size=4 [17:35:10]MH_SAM_APDU [17:35:10]CAPDU: 80 11 00 00 [17:35:10]Write to MH i2c: E2 08 00 43 63 80 11 00 00 00 00 00 00 20 [17:35:10]Write i2c OK [17:35:10]MH_I2C_Read... [17:35:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:10]Read from MH i2c: E2 [17:35:10]MH_I2C_Read... [17:35:10]Read from MH i2c: E2 17 00 [17:35:10]MH_I2C_Read... [17:35:10]Read from MH i2c: E2 17 00 43 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 77 [17:35:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:35:10]wFMCommunicate OK [17:35:10]CreateOFDProtocolMessage done [17:35:10]OFDSenderStorePacket 228371 [17:35:10]StoreOFDPacket docnum=228371 [17:35:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A1 6D 07 01 6A 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 52 E2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 13 7C 03 00 35 04 06 00 AB E5 1F 42 9E 38 3E 02 C8 92 C5 23 98 75 [17:35:10]CheckFolder [17:35:10]dirname=/storage/ofd_packets [17:35:10]CheckFolder done [17:35:10]ProducePacketName [17:35:10]name=ofd_packets/00228371 [17:35:10]NVStorageSaveData ofd_packets/00228371 [17:35:10]File name is /storage/ofd_packets/00228371 [17:35:10]Write 301 bytes [17:35:10]NVStorageSaveData done [17:35:10]OFDSenderStorePacket done [17:35:10]KKMCreateOFDPacket done [17:35:10]NVStorageSaveData kkm_last_timestamp [17:35:10]File name is /storage/kkm_last_timestamp [17:35:10]Write 4 bytes [17:35:10]NVStorageSaveData done [17:35:10]ExternCall_PrintAddStr [17:35:10]wPrintStart [17:35:10]Write to MH i2c: 01 00 00 44 63 A7 [17:35:10]Write i2c OK [17:35:10]MH_I2C_Read... [17:35:10]Read from MH i2c: 01 [17:35:10]MH_I2C_Read... [17:35:10]Read from MH i2c: 01 07 00 [17:35:10]MH_I2C_Read... [17:35:10]Read from MH i2c: 01 07 00 44 63 00 00 00 00 00 FF 0F BC [17:35:10]RasterBufferAndPrint [17:35:10]line Счет N : (1)1964875 [17:35:10]line ИНН: 02508201610067 [17:35:10]line Контрольно-Кассовый Чек [17:35:10]line ПРОДАЖА [17:35:10]line ТРК (МРК, ГНК) : 33 [17:35:10]line Товар: 2710124130 [17:35:10]line Аи-92-К-5 [17:35:10]line 7.480 * 66.90 [17:35:10]line = 500.41 [17:35:10]line НДС 12% НСП 1% [17:35:10]line > о реализуемом товаре [17:35:10]line ОКРУГЛЕНИЕ: -0.41 [17:35:10]line ИТОГО: 500.00 [17:35:10]line Внесено: 500.00 [17:35:10]line СДАЧА: 0.00 [17:35:10]line НСП 1% : 4.43 [17:35:10]line НДС 12% : 53.14 [17:35:10]line Наличными: 500.00 [17:35:10]line Безнал.: 0.00 [17:35:10]line Место: АЗС № 133 "Партнер Нефть" [17:35:10]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:35:10]line СНО: Общий режим [17:35:10]line Чек 335 22.10.2024 17:35 [17:35:10]line Смена: 535 ФФД: 1.0 [17:35:10]line ЗНМ: 0300000091 [17:35:10]line РНМ: 0000000000091685 [17:35:10]line Версия ККМ: 001 [17:35:10]line ФМ: 0000000000871839 [17:35:10]line ФД: 228371 [17:35:10]line ФПД: 189000560320056 [17:35:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T173514&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228371&fm=189000560320056&tin=02508201610067®Number=0000000000091685&sum=50000 [17:35:10]written 0, free lines is 4095 [17:35:10]OFD Sender: Processing packet 228371 [packets to send 38, broken 37] [17:35:10]ProducePacketName [17:35:10]name=ofd_packets/00228371 [17:35:10]OFD Sender: To server: pG, [17:35:10]CommunicateWithHost lk.salyk.kg:30040 [17:35:10]ConnectInit lk.salyk.kg [17:35:10]Connected sock=10 [17:35:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A1 6D 07 01 6A 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 52 E2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 13 7C 03 00 35 04 06 00 AB E5 1F 42 9E 38 3E 02 C8 92 C5 23 98 75 [17:35:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 14 39 47 00 3B BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 13 7C 03 00 F4 03 04 00 49 8D 17 67 B6 04 01 00 00 21 75 43 CE 3D 62 0B F2 [17:35:11]CommunicateWithHost err = 0 [17:35:11]CheckOFDResponse [17:35:11]1017 (14) - 77093643461234 [17:35:11]1041 (16) - 0000000000871839 [17:35:11]1040 (4) - 228371 [17:35:11]1012 (4) - 22.10.2024 11:32 [17:35:11]1206 (1) - 0 [17:35:11]OFD Sender: Remove packet 228371 [17:35:11]ProducePacketName [17:35:11]name=ofd_packets/00228371 [17:35:11]NVStorageDeleteData [17:35:11]Write to MH i2c: 01 00 00 6E 63 D1 [17:35:11]Write i2c OK [17:35:11]MH_I2C_Read... [17:35:11]Read from MH i2c: 01 [17:35:11]MH_I2C_Read... [17:35:11]Read from MH i2c: 01 07 00 [17:35:11]MH_I2C_Read... [17:35:11]Read from MH i2c: 01 07 00 6E 63 00 00 00 00 00 B6 0C 9A [17:35:11]RasterBufferAndPrint [17:35:11]line [17:35:11]line [17:35:11]line [17:35:11]line [17:35:11]line [17:35:11]written 0, free lines is 3262 [17:35:11]MH_Cut [17:35:11]Write to MH i2c: D1 01 00 75 63 01 AA [17:35:11]Write i2c OK [17:35:11]MH_I2C_Read... [17:35:11]Read from MH i2c: D1 [17:35:11]MH_I2C_Read... [17:35:11]Read from MH i2c: D1 01 00 [17:35:11]MH_I2C_Read... [17:35:11]Read from MH i2c: D1 01 00 75 63 00 A9 [17:35:11]Write to MH i2c: 01 00 00 76 63 D9 [17:35:11]Write i2c OK [17:35:11]MH_I2C_Read... [17:35:11]OFD Sender: No OFD packet to send [17:35:12]*** Cut start [17:35:12]*** Partial cut [17:35:12]*** CUTSNS_PIN = 1 [17:35:12]*** CUTSNS_PIN = 0 [17:35:12]*** Brake cut motor [17:35:12]Read from MH i2c: 01 [17:35:12]MH_I2C_Read... [17:35:12]*** Stop cut motor [17:35:12]*** Cut end [17:35:12]Read from MH i2c: 01 07 00 [17:35:12]MH_I2C_Read... [17:35:12]Read from MH i2c: 01 07 00 76 63 00 00 00 00 00 FF 0F EE [17:35:12]process_action close_receipt done [17:35:12]requested_data is exist [17:35:12]produce_requested_data [17:35:12]requested_item fm.sn is exist - process it [17:35:12]wFMCommunicate request_size=4 [17:35:12]MH_SAM_APDU [17:35:12]CAPDU: 80 11 00 00 [17:35:12]Write to MH i2c: E2 08 00 77 63 80 11 00 00 00 00 00 00 54 [17:35:12]Write i2c OK [17:35:12]MH_I2C_Read... [17:35:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:12]Read from MH i2c: E2 [17:35:12]MH_I2C_Read... [17:35:12]Read from MH i2c: E2 17 00 [17:35:12]MH_I2C_Read... [17:35:12]Read from MH i2c: E2 17 00 77 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AB [17:35:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:35:12]wFMCommunicate OK [17:35:12]requested_item fd.num is exist - process it [17:35:12]SAM_PROTO_GetFieldsCounters [17:35:12]wFMCommunicate request_size=4 [17:35:12]MH_SAM_APDU [17:35:12]CAPDU: 80 13 00 00 [17:35:12]Write to MH i2c: E2 08 00 78 63 80 13 00 00 00 00 00 00 57 [17:35:12]Write i2c OK [17:35:12]MH_I2C_Read... [17:35:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:35:12]Read from MH i2c: E2 [17:35:12]MH_I2C_Read... [17:35:12]Read from MH i2c: E2 62 00 [17:35:12]MH_I2C_Read... [17:35:12]Read from MH i2c: E2 62 00 78 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 13 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 1B [17:35:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 13 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:35:12]wFMCommunicate OK [17:35:12]SAM_PROTO_GetFieldsCounters done [17:35:12]requested_item shift.num is exist - process it [17:35:12]requested_item shift.opened is exist - process it [17:35:12]req_shift_opened [17:35:12]FM_GetShiftState [17:35:12]SAM_PROTO_GetShiftState [17:35:12]wFMCommunicate request_size=4 [17:35:12]MH_SAM_APDU [17:35:12]CAPDU: 80 13 01 00 [17:35:12]Write to MH i2c: E2 08 00 79 63 80 13 01 00 00 00 00 00 59 [17:35:12]Write i2c OK [17:35:12]MH_I2C_Read... [17:35:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:12]Read from MH i2c: E2 [17:35:12]MH_I2C_Read... [17:35:12]Read from MH i2c: E2 0E 00 [17:35:12]MH_I2C_Read... [17:35:12]Read from MH i2c: E2 0E 00 79 63 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 20 [17:35:12]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:35:12]wFMCommunicate OK [17:35:12]SAM_PROTO_GetShiftState done [17:35:12]FM_GetShiftState done [17:35:12]req_shift_opened done [17:35:12]requested_item shift.open_date is exist - process it [17:35:12]req_shift_open_date [17:35:12]req_shift_open_date done [17:35:12]produce_requested_data done [17:35:12]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228371,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [17:35:12]process_action_free close_receipt [17:35:12]json_value_free [17:35:12]json_value_free done [17:35:12]process_json_proto returns [17:35:12]Send response to host [17:35:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228371,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [17:35:12]free response buf [17:35:12]execute_script done [17:35:12]execute_script returns [17:35:12]free content buf [17:35:12]Sock 7.Close socket [17:35:12]Sock 7.Thread stoped [17:35:16]OFD Sender: No OFD packet to send [17:35:21]OFD Sender: No OFD packet to send [17:35:26]OFD Sender: No OFD packet to send [17:35:31]OFD Sender: No OFD packet to send [17:35:36]OFD Sender: No OFD packet to send [17:35:41]OFD Sender: No OFD packet to send [17:35:46]OFD Sender: No OFD packet to send [17:35:51]OFD Sender: No OFD packet to send [17:35:56]OFD Sender: No OFD packet to send [17:36:01]OFD Sender: No OFD packet to send [17:36:06]OFD Sender: No OFD packet to send [17:36:11]OFD Sender: No OFD packet to send [17:36:16]OFD Sender: No OFD packet to send [17:36:21]OFD Sender: No OFD packet to send [17:36:26]OFD Sender: No OFD packet to send [17:36:31]OFD Sender: No OFD packet to send [17:36:36]OFD Sender: No OFD packet to send [17:36:41]OFD Sender: No OFD packet to send [17:36:46]OFD Sender: No OFD packet to send [17:36:51]OFD Sender: No OFD packet to send [17:36:56]OFD Sender: No OFD packet to send [17:37:01]OFD Sender: No OFD packet to send [17:37:06]OFD Sender: No OFD packet to send [17:37:11]OFD Sender: No OFD packet to send [17:37:16]OFD Sender: No OFD packet to send [17:37:21]OFD Sender: No OFD packet to send [17:37:26]OFD Sender: No OFD packet to send [17:37:31]OFD Sender: No OFD packet to send [17:37:36]OFD Sender: No OFD packet to send [17:37:41]OFD Sender: No OFD packet to send [17:37:46]OFD Sender: No OFD packet to send [17:37:51]OFD Sender: No OFD packet to send [17:37:56]OFD Sender: No OFD packet to send [17:38:01]OFD Sender: No OFD packet to send [17:38:06]OFD Sender: No OFD packet to send [17:38:11]OFD Sender: No OFD packet to send [17:38:16]OFD Sender: No OFD packet to send [17:38:21]OFD Sender: No OFD packet to send [17:38:26]OFD Sender: No OFD packet to send [17:38:31]OFD Sender: No OFD packet to send [17:38:36]OFD Sender: No OFD packet to send [17:38:41]OFD Sender: No OFD packet to send [17:38:46]OFD Sender: No OFD packet to send [17:38:51]OFD Sender: No OFD packet to send [17:38:56]OFD Sender: No OFD packet to send [17:39:01]OFD Sender: No OFD packet to send [17:39:06]OFD Sender: No OFD packet to send [17:39:11]OFD Sender: No OFD packet to send [17:39:16]OFD Sender: No OFD packet to send [17:39:21]OFD Sender: No OFD packet to send [17:39:26]OFD Sender: No OFD packet to send [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:56]OFD Sender: No OFD packet to send [17:41:01]OFD Sender: No OFD packet to send [17:41:06]OFD Sender: No OFD packet to send [17:41:11]OFD Sender: No OFD packet to send [17:41:16]OFD Sender: No OFD packet to send [17:41:21]OFD Sender: No OFD packet to send [17:41:26]OFD Sender: No OFD packet to send [17:41:31]OFD Sender: No OFD packet to send [17:41:34]accept exits with 9 [17:41:34]New connection [17:41:34]New thread 3067137380 created [17:41:34]Thread 3066994020 joined [17:41:34]Waiting for new connection... [17:41:34] Sock 9.Parse request [17:41:34]Sock 9.Check first char [17:41:34]Sock 9.First char is OK [17:41:34]request: POST /json_proto HTTP/1.0 [17:41:34]Method: POST [17:41:34]URL: /json_proto [17:41:34]Method is POST - this is cgi request [17:41:34]url: /json_proto [17:41:34]query_string will be loaded in cgi processing [17:41:34]execute_cgi json_proto POST (null) [17:41:34]execute_cgi path=json_proto method=POST [17:41:34]POST find Content-Length [17:41:34]Host: 172.17.44.195:8080 [17:41:34]Content-Length: 680 [17:41:34]Content-Type: application/json [17:41:34] [17:41:34]POST finish read [17:41:34]Found Content-Length = 680 [17:41:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964884", "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" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:34]execute_script... [17:41: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)1964884", "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" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:34]POST & json_proto [17:41:34]process_json_proto [17:41:34]json parsed OK: [17:41:34]protocol is kg_v1.0 [17:41:34]action value=close_receipt [17:41:34]process_action close_receipt [17:41:34]cmd_close_receipt [17:41:34]MH_GetDate [17:41:34]Write to MH i2c: F0 00 00 7A 63 CC [17:41:34]Write i2c OK [17:41:34]MH_I2C_Read... [17:41:34]Read from MH i2c: F0 [17:41:34]MH_I2C_Read... [17:41:34]Read from MH i2c: F0 09 00 [17:41:34]MH_I2C_Read... [17:41:34]Read from MH i2c: F0 09 00 7A 63 00 D3 E3 17 67 82 C9 CF 66 89 [17:41:34]GetLastDocTimeStamp 1729618514 [17:41:34]current date 1729618899 [17:41:34]FM_GetShiftState [17:41:34]SAM_PROTO_GetShiftState [17:41:34]wFMCommunicate request_size=4 [17:41:34]MH_SAM_APDU [17:41:34]CAPDU: 80 13 01 00 [17:41:34]Write to MH i2c: E2 08 00 7B 63 80 13 01 00 00 00 00 00 5B [17:41:34]Write i2c OK [17:41:34]MH_I2C_Read... [17:41:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:34]Read from MH i2c: E2 [17:41:34]MH_I2C_Read... [17:41:34]Read from MH i2c: E2 0E 00 [17:41:34]MH_I2C_Read... [17:41:34]Read from MH i2c: E2 0E 00 7B 63 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 22 [17:41:34]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:41:34]wFMCommunicate OK [17:41:34]SAM_PROTO_GetShiftState done [17:41:34]FM_GetShiftState done [17:41:34]opened in 1729555538 [17:41:34]opened+sec_in_day 1729641938 [17:41:34]quantity*price = 200025 [17:41:34]sum+1 = 200026 [17:41:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 336 22.10.2024 17:41 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228372 ФПД: 246582987385120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T174139&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228372&fm=246582987385120&tin=02508201610067®Number=0000000000091685&sum=200000 [17:41:35]StoreToDocumentArchive [17:41:35]shift 535 fd 228372 [17:41:35]save to /storage/0535/doc_00228372 [17:41:35]save last doc name /storage/0535/doc_00228372 to /storage/kkm_last_doc_name [17:41:35]save OK [17:41:35]Clear old archive folders... [17:41:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:41:35]tlvbuf is 0088C750 [17:41:35]SAM_PROTO_ClearQueue [17:41:35]wFMCommunicate request_size=4 [17:41:35]MH_SAM_APDU [17:41:35]CAPDU: 80 09 00 00 [17:41:35]Write to MH i2c: E2 08 00 88 63 80 09 00 00 00 00 00 00 5D [17:41:35]Write i2c OK [17:41:35]MH_I2C_Read... [17:41:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:41:35]Read from MH i2c: E2 [17:41:35]MH_I2C_Read... [17:41:35]Read from MH i2c: E2 03 00 [17:41:35]MH_I2C_Read... [17:41:35]Read from MH i2c: E2 03 00 88 63 00 90 00 5F [17:41:35]RAPDU: 90 00 [17:41:35]wFMCommunicate OK [17:41:35]SAM_PROTO_ClearQueue done [17:41:35]KKMCreateOFDPacket [17:41:35]OFDProtocolAddRootSTLVToBuf [17:41:35]FM_MakeSignedData [17:41:35]FM_MakeSignedData [17:41:35]SAM_PROTO_SignData [17:41:35]wFMCommunicate request_size=4 [17:41:35]MH_SAM_APDU [17:41:35]CAPDU: 80 0D 01 02 [17:41:35]Write to MH i2c: E2 08 00 89 63 80 0D 01 02 00 00 00 00 65 [17:41:35]Write i2c OK [17:41:35]MH_I2C_Read... [17:41:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:41:35]Read from MH i2c: E2 [17:41:35]MH_I2C_Read... [17:41:35]Read from MH i2c: E2 03 00 [17:41:35]MH_I2C_Read... [17:41:35]Read from MH i2c: E2 03 00 89 63 00 90 00 60 [17:41:35]RAPDU: 90 00 [17:41:35]wFMCommunicate OK [17:41:35]wFMCommunicate request_size=255 [17:41:35]MH_SAM_APDU [17:41: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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 50 01 00 00 F4 03 04 00 D3 E3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 14 7C 03 00 35 04 06 00 E0 44 13 5E [17:41:35]Write to MH i2c: E2 02 01 8A 63 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 50 01 00 00 F4 03 04 00 D3 E3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 14 7C 03 00 35 04 06 00 E0 44 13 5E 00 00 A6 [17:41:35]Write i2c OK [17:41:35]MH_I2C_Read... [17:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:35]Read from MH i2c: E2 [17:41:35]MH_I2C_Read... [17:41:35]Read from MH i2c: E2 03 00 [17:41:35]MH_I2C_Read... [17:41:35]Read from MH i2c: E2 03 00 8A 63 00 90 00 61 [17:41:35]RAPDU: 90 00 [17:41:35]wFMCommunicate OK [17:41:35]wFMCommunicate request_size=7 [17:41:35]MH_SAM_APDU [17:41:35]CAPDU: 80 0D 02 02 02 E9 20 [17:41:35]Write to MH i2c: E2 0A 00 8B 63 80 0D 02 02 02 00 E9 20 00 00 75 [17:41:35]Write i2c OK [17:41:35]MH_I2C_Read... [17:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:35]Read from MH i2c: E2 [17:41:35]MH_I2C_Read... [17:41:35]Read from MH i2c: E2 03 00 [17:41:35]MH_I2C_Read... [17:41:35]Read from MH i2c: E2 03 00 8B 63 00 90 00 62 [17:41:35]RAPDU: 90 00 [17:41:35]wFMCommunicate OK [17:41:35]wFMCommunicate request_size=4 [17:41:35]MH_SAM_APDU [17:41:35]CAPDU: 80 0D 03 02 [17:41:35]Write to MH i2c: E2 08 00 8C 63 80 0D 03 02 00 00 00 00 6A [17:41:35]Write i2c OK [17:41:35]MH_I2C_Read... [17:41:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:41:35]Read from MH i2c: E2 [17:41:35]MH_I2C_Read... [17:41:35]Read from MH i2c: E2 0B 00 [17:41:35]MH_I2C_Read... [17:41:35]Read from MH i2c: E2 0B 00 8C 63 00 62 C8 33 FC 4F 4B 5E 55 90 00 11 [17:41:35]RAPDU: 62 C8 33 FC 4F 4B 5E 55 90 00 [17:41:35]wFMCommunicate OK [17:41:35]SAM_PROTO_SignData done [17:41:35]FM_MakeSignedData done [17:41:35]CreateOFDProtocolMessage [17:41:35]wFMCommunicate request_size=4 [17:41:35]MH_SAM_APDU [17:41:35]CAPDU: 80 11 00 00 [17:41:35]Write to MH i2c: E2 08 00 8D 63 80 11 00 00 00 00 00 00 6A [17:41:35]Write i2c OK [17:41:35]MH_I2C_Read... [17:41:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:35]Read from MH i2c: E2 [17:41:35]MH_I2C_Read... [17:41:35]Read from MH i2c: E2 17 00 [17:41:35]MH_I2C_Read... [17:41:35]Read from MH i2c: E2 17 00 8D 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C1 [17:41:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:41:35]wFMCommunicate OK [17:41:35]CreateOFDProtocolMessage done [17:41:35]OFDSenderStorePacket 228372 [17:41:35]StoreOFDPacket docnum=228372 [17:41:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 FC 47 04 01 41 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 50 01 00 00 F4 03 04 00 D3 E3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 14 7C 03 00 35 04 06 00 E0 44 13 5E E9 20 62 C8 33 FC 4F 4B 5E 55 [17:41:35]CheckFolder [17:41:35]dirname=/storage/ofd_packets [17:41:35]CheckFolder done [17:41:35]ProducePacketName [17:41:35]name=ofd_packets/00228372 [17:41:35]NVStorageSaveData ofd_packets/00228372 [17:41:35]File name is /storage/ofd_packets/00228372 [17:41:35]Write 298 bytes [17:41:35]NVStorageSaveData done [17:41:35]OFDSenderStorePacket done [17:41:35]KKMCreateOFDPacket done [17:41:35]NVStorageSaveData kkm_last_timestamp [17:41:35]File name is /storage/kkm_last_timestamp [17:41:35]Write 4 bytes [17:41:35]NVStorageSaveData done [17:41:35]ExternCall_PrintAddStr [17:41:35]wPrintStart [17:41:35]Write to MH i2c: 01 00 00 8E 63 F1 [17:41:35]Write i2c OK [17:41:35]MH_I2C_Read... [17:41:35]Read from MH i2c: 01 [17:41:35]MH_I2C_Read... [17:41:35]Read from MH i2c: 01 07 00 [17:41:35]MH_I2C_Read... [17:41:35]Read from MH i2c: 01 07 00 8E 63 00 00 00 00 00 FF 0F 06 [17:41:35]RasterBufferAndPrint [17:41:35]line Счет N : (1)1964884 [17:41:35]line ИНН: 02508201610067 [17:41:35]line Контрольно-Кассовый Чек [17:41:35]line ПРОДАЖА [17:41:35]line ТРК (МРК, ГНК) : 61 [17:41:35]line Товар: 2710194210 [17:41:35]line ДТ-К-5 [17:41:35]line 26.250 * 76.20 [17:41:35]line = 2000.25 [17:41:35]line НДС 12% НСП 1% [17:41:35]line > о реализуемом товаре [17:41:35]line ОКРУГЛЕНИЕ: -0.25 [17:41:35]line ИТОГО: 2000.00 [17:41:35]line Внесено: 2000.00 [17:41:35]line СДАЧА: 0.00 [17:41:35]line НСП 1% : 17.70 [17:41:35]line НДС 12% : 212.42 [17:41:35]line Наличными: 2000.00 [17:41:35]line Безнал.: 0.00 [17:41:35]line Место: АЗС № 133 "Партнер Нефть" [17:41:35]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:41:35]line СНО: Общий режим [17:41:35]line Чек 336 22.10.2024 17:41 [17:41:35]line Смена: 535 ФФД: 1.0 [17:41:35]line ЗНМ: 0300000091 [17:41:35]line РНМ: 0000000000091685 [17:41:35]line Версия ККМ: 001 [17:41:35]line ФМ: 0000000000871839 [17:41:35]line ФД: 228372 [17:41:35]line ФПД: 246582987385120 [17:41:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T174139&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228372&fm=246582987385120&tin=02508201610067®Number=0000000000091685&sum=200000 [17:41:35]written 0, free lines is 4095 [17:41:35]OFD Sender: Processing packet 228372 [packets to send 38, broken 37] [17:41:35]ProducePacketName [17:41:35]name=ofd_packets/00228372 [17:41:35]OFD Sender: To server: pG, [17:41:35]CommunicateWithHost lk.salyk.kg:30040 [17:41:35]ConnectInit lk.salyk.kg [17:41:35]Connected sock=10 [17:41:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 FC 47 04 01 41 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 50 01 00 00 F4 03 04 00 D3 E3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 14 7C 03 00 35 04 06 00 E0 44 13 5E E9 20 62 C8 33 FC 4F 4B 5E 55 [17:41:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 DF BA 47 00 4B AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 14 7C 03 00 F4 03 04 00 CA 8E 17 67 B6 04 01 00 00 C5 AF AA F5 8A 17 98 66 [17:41:36]CommunicateWithHost err = 0 [17:41:36]CheckOFDResponse [17:41:36]1017 (14) - 77093643461234 [17:41:36]1041 (16) - 0000000000871839 [17:41:36]1040 (4) - 228372 [17:41:36]1012 (4) - 22.10.2024 11:38 [17:41:36]1206 (1) - 0 [17:41:36]OFD Sender: Remove packet 228372 [17:41:36]ProducePacketName [17:41:36]name=ofd_packets/00228372 [17:41:36]NVStorageDeleteData [17:41:36]Write to MH i2c: 01 00 00 B8 63 1B [17:41:36]Write i2c OK [17:41:36]MH_I2C_Read... [17:41:36]Read from MH i2c: 01 [17:41:36]MH_I2C_Read... [17:41:36]Read from MH i2c: 01 07 00 [17:41:36]MH_I2C_Read... [17:41:36]Read from MH i2c: 01 07 00 B8 63 00 00 00 00 00 B2 0C E0 [17:41:36]RasterBufferAndPrint [17:41:36]line [17:41:36]line [17:41:36]line [17:41:36]line [17:41:36]line [17:41:36]written 0, free lines is 3255 [17:41:36]MH_Cut [17:41:36]Write to MH i2c: D1 01 00 BF 63 01 F4 [17:41:36]Write i2c OK [17:41:36]MH_I2C_Read... [17:41:36]Read from MH i2c: D1 [17:41:36]MH_I2C_Read... [17:41:36]Read from MH i2c: D1 01 00 [17:41:36]MH_I2C_Read... [17:41:36]Read from MH i2c: D1 01 00 BF 63 00 F3 [17:41:36]Write to MH i2c: 01 00 00 C0 63 23 [17:41:36]Write i2c OK [17:41:36]MH_I2C_Read... [17:41:36]OFD Sender: No OFD packet to send [17:41:37]*** Cut start [17:41:37]*** Partial cut [17:41:37]*** CUTSNS_PIN = 1 [17:41:37]*** CUTSNS_PIN = 0 [17:41:37]*** Brake cut motor [17:41:37]Read from MH i2c: 01 [17:41:37]MH_I2C_Read... [17:41:37]*** Stop cut motor [17:41:37]*** Cut end [17:41:37]Read from MH i2c: 01 07 00 [17:41:37]MH_I2C_Read... [17:41:37]Read from MH i2c: 01 07 00 C0 63 00 00 00 00 00 FF 0F 38 [17:41:37]process_action close_receipt done [17:41:37]requested_data is exist [17:41:37]produce_requested_data [17:41:37]requested_item fm.sn is exist - process it [17:41:37]wFMCommunicate request_size=4 [17:41:37]MH_SAM_APDU [17:41:37]CAPDU: 80 11 00 00 [17:41:37]Write to MH i2c: E2 08 00 C1 63 80 11 00 00 00 00 00 00 9E [17:41:37]Write i2c OK [17:41:37]MH_I2C_Read... [17:41:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:37]Read from MH i2c: E2 [17:41:37]MH_I2C_Read... [17:41:37]Read from MH i2c: E2 17 00 [17:41:37]MH_I2C_Read... [17:41:37]Read from MH i2c: E2 17 00 C1 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F5 [17:41:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:41:37]wFMCommunicate OK [17:41:37]requested_item fd.num is exist - process it [17:41:37]SAM_PROTO_GetFieldsCounters [17:41:37]wFMCommunicate request_size=4 [17:41:37]MH_SAM_APDU [17:41:37]CAPDU: 80 13 00 00 [17:41:37]Write to MH i2c: E2 08 00 C2 63 80 13 00 00 00 00 00 00 A1 [17:41:37]Write i2c OK [17:41:37]MH_I2C_Read... [17:41:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:41:38]Read from MH i2c: E2 [17:41:38]MH_I2C_Read... [17:41:38]Read from MH i2c: E2 62 00 [17:41:38]MH_I2C_Read... [17:41:38]Read from MH i2c: E2 62 00 C2 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 14 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 69 [17:41:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 14 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:41:38]wFMCommunicate OK [17:41:38]SAM_PROTO_GetFieldsCounters done [17:41:38]requested_item shift.num is exist - process it [17:41:38]requested_item shift.opened is exist - process it [17:41:38]req_shift_opened [17:41:38]FM_GetShiftState [17:41:38]SAM_PROTO_GetShiftState [17:41:38]wFMCommunicate request_size=4 [17:41:38]MH_SAM_APDU [17:41:38]CAPDU: 80 13 01 00 [17:41:38]Write to MH i2c: E2 08 00 C3 63 80 13 01 00 00 00 00 00 A3 [17:41:38]Write i2c OK [17:41:38]MH_I2C_Read... [17:41:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:38]Read from MH i2c: E2 [17:41:38]MH_I2C_Read... [17:41:38]Read from MH i2c: E2 0E 00 [17:41:38]MH_I2C_Read... [17:41:38]Read from MH i2c: E2 0E 00 C3 63 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 6A [17:41:38]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:41:38]wFMCommunicate OK [17:41:38]SAM_PROTO_GetShiftState done [17:41:38]FM_GetShiftState done [17:41:38]req_shift_opened done [17:41:38]requested_item shift.open_date is exist - process it [17:41:38]req_shift_open_date [17:41:38]req_shift_open_date done [17:41:38]produce_requested_data done [17:41:38]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228372,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [17:41:38]process_action_free close_receipt [17:41:38]json_value_free [17:41:38]json_value_free done [17:41:38]process_json_proto returns [17:41:38]Send response to host [17:41:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228372,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [17:41:38]free response buf [17:41:38]execute_script done [17:41:38]execute_script returns [17:41:38]free content buf [17:41:38]Sock 9.Close socket [17:41:38]Sock 9.Thread stoped [17:41:41]OFD Sender: No OFD packet to send [17:41:46]OFD Sender: No OFD packet to send [17:41:51]OFD Sender: No OFD packet to send [17:41:56]OFD Sender: No OFD packet to send [17:42:01]OFD Sender: No OFD packet to send [17:42:06]OFD Sender: No OFD packet to send [17:42:11]OFD Sender: No OFD packet to send [17:42:16]OFD Sender: No OFD packet to send [17:42:21]OFD Sender: No OFD packet to send [17:42:26]OFD Sender: No OFD packet to send [17:42:31]OFD Sender: No OFD packet to send [17:42:36]OFD Sender: No OFD packet to send [17:42:41]OFD Sender: No OFD packet to send [17:42:46]OFD Sender: No OFD packet to send [17:42:51]OFD Sender: No OFD packet to send [17:42:56]OFD Sender: No OFD packet to send [17:43:01]OFD Sender: No OFD packet to send [17:43:06]OFD Sender: No OFD packet to send [17:43:11]OFD Sender: No OFD packet to send [17:43:16]OFD Sender: No OFD packet to send [17:43:21]OFD Sender: No OFD packet to send [17:43:26]OFD Sender: No OFD packet to send [17:43:31]OFD Sender: No OFD packet to send [17:43:36]OFD Sender: No OFD packet to send [17:43:41]OFD Sender: No OFD packet to send [17:43:46]OFD Sender: No OFD packet to send [17:43:51]OFD Sender: No OFD packet to send [17:43:56]OFD Sender: No OFD packet to send [17:44:01]OFD Sender: No OFD packet to send [17:44:06]OFD Sender: No OFD packet to send [17:44:11]OFD Sender: No OFD packet to send [17:44:16]OFD Sender: No OFD packet to send [17:44:21]OFD Sender: No OFD packet to send [17:44:26]OFD Sender: No OFD packet to send [17:44:31]OFD Sender: No OFD packet to send [17:44:36]OFD Sender: No OFD packet to send [17:44:41]OFD Sender: No OFD packet to send [17:44:46]OFD Sender: No OFD packet to send [17:44:51]OFD Sender: No OFD packet to send [17:44:56]OFD Sender: No OFD packet to send [17:45:01]OFD Sender: No OFD packet to send [17:45:06]OFD Sender: No OFD packet to send [17:45:11]OFD Sender: No OFD packet to send [17:45:16]OFD Sender: No OFD packet to send [17:45:21]OFD Sender: No OFD packet to send [17:45:26]OFD Sender: No OFD packet to send [17:45:31]OFD Sender: No OFD packet to send [17:45:36]OFD Sender: No OFD packet to send [17:45:41]OFD Sender: No OFD packet to send [17:45:46]OFD Sender: No OFD packet to send [17:45:51]OFD Sender: No OFD packet to send [17:45:56]OFD Sender: No OFD packet to send [17:46:01]OFD Sender: No OFD packet to send [17:46:06]OFD Sender: No OFD packet to send [17:46:11]OFD Sender: No OFD packet to send [17:46:16]OFD Sender: No OFD packet to send [17:46:21]OFD Sender: No OFD packet to send [17:46:26]OFD Sender: No OFD packet to send [17:46:31]OFD Sender: No OFD packet to send [17:46:36]OFD Sender: No OFD packet to send [17:46:41]OFD Sender: No OFD packet to send [17:46:46]OFD Sender: No OFD packet to send [17:46:51]OFD Sender: No OFD packet to send [17:46:56]OFD Sender: No OFD packet to send [17:47:01]OFD Sender: No OFD packet to send [17:47:06]OFD Sender: No OFD packet to send [17:47:11]OFD Sender: No OFD packet to send [17:47:16]OFD Sender: No OFD packet to send [17:47:18]accept exits with 7 [17:47:18]New connection [17:47:18]New thread 3066994020 created [17:47:18]Thread 3067137380 joined [17:47:18]Waiting for new connection... [17:47:18] Sock 7.Parse request [17:47:18]Sock 7.Check first char [17:47:18]Sock 7.First char is OK [17:47:18]request: POST /json_proto HTTP/1.0 [17:47:18]Method: POST [17:47:18]URL: /json_proto [17:47:18]Method is POST - this is cgi request [17:47:18]url: /json_proto [17:47:18]query_string will be loaded in cgi processing [17:47:18]execute_cgi json_proto POST (null) [17:47:18]execute_cgi path=json_proto method=POST [17:47:18]POST find Content-Length [17:47:18]Host: 172.17.44.195:8080 [17:47:18]Content-Length: 752 [17:47:18]Content-Type: application/json [17:47:18] [17:47:18]POST finish read [17:47:18]Found Content-Length = 752 [17:47:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964889", "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" : 0.00, "quantity" : 13.130, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30093357", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:18]execute_script... [17:47: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)1964889", "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" : 0.00, "quantity" : 13.130, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30093357", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:18]POST & json_proto [17:47:18]process_json_proto [17:47:18]json parsed OK: [17:47:18]protocol is kg_v1.0 [17:47:18]action value=close_receipt [17:47:18]process_action close_receipt [17:47:18]cmd_close_receipt [17:47:18]MH_GetDate [17:47:18]Write to MH i2c: F0 00 00 C4 63 16 [17:47:18]Write i2c OK [17:47:18]MH_I2C_Read... [17:47:18]Read from MH i2c: F0 [17:47:18]MH_I2C_Read... [17:47:18]Read from MH i2c: F0 09 00 [17:47:18]MH_I2C_Read... [17:47:18]Read from MH i2c: F0 09 00 C4 63 00 2B E5 17 67 82 C9 CF 66 2D [17:47:18]GetLastDocTimeStamp 1729618899 [17:47:18]current date 1729619243 [17:47:18]FM_GetShiftState [17:47:18]SAM_PROTO_GetShiftState [17:47:18]wFMCommunicate request_size=4 [17:47:18]MH_SAM_APDU [17:47:18]CAPDU: 80 13 01 00 [17:47:18]Write to MH i2c: E2 08 00 C5 63 80 13 01 00 00 00 00 00 A5 [17:47:18]Write i2c OK [17:47:18]MH_I2C_Read... [17:47:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:18]Read from MH i2c: E2 [17:47:18]MH_I2C_Read... [17:47:18]Read from MH i2c: E2 0E 00 [17:47:18]MH_I2C_Read... [17:47:18]Read from MH i2c: E2 0E 00 C5 63 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 6C [17:47:18]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:47:18]wFMCommunicate OK [17:47:18]SAM_PROTO_GetShiftState done [17:47:18]FM_GetShiftState done [17:47:18]opened in 1729555538 [17:47:18]opened+sec_in_day 1729641938 [17:47:18]quantity*price = 0 [17:47:18]sum+1 = 1 [17:47:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 337 22.10.2024 17:47 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: ТК ГПНА Online 30093357 ФМ: 0000000000871839 ФД: 228373 ФПД: 2242811632633 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T174723&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228373&fm=2242811632633&tin=02508201610067®Number=0000000000091685&sum=0 [17:47:19]StoreToDocumentArchive [17:47:19]shift 535 fd 228373 [17:47:19]save to /storage/0535/doc_00228373 [17:47:19]save last doc name /storage/0535/doc_00228373 to /storage/kkm_last_doc_name [17:47:19]save OK [17:47:19]Clear old archive folders... [17:47:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:47:19]tlvbuf is 0098E3E0 [17:47:19]SAM_PROTO_ClearQueue [17:47:19]wFMCommunicate request_size=4 [17:47:19]MH_SAM_APDU [17:47:19]CAPDU: 80 09 00 00 [17:47:19]Write to MH i2c: E2 08 00 D2 63 80 09 00 00 00 00 00 00 A7 [17:47:19]Write i2c OK [17:47:19]MH_I2C_Read... [17:47:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:19]Read from MH i2c: E2 [17:47:19]MH_I2C_Read... [17:47:19]Read from MH i2c: E2 03 00 [17:47:19]MH_I2C_Read... [17:47:19]Read from MH i2c: E2 03 00 D2 63 00 90 00 A9 [17:47:19]RAPDU: 90 00 [17:47:19]wFMCommunicate OK [17:47:19]SAM_PROTO_ClearQueue done [17:47:19]KKMCreateOFDPacket [17:47:19]OFDProtocolAddRootSTLVToBuf [17:47:19]FM_MakeSignedData [17:47:19]FM_MakeSignedData [17:47:19]SAM_PROTO_SignData [17:47:19]wFMCommunicate request_size=4 [17:47:19]MH_SAM_APDU [17:47:19]CAPDU: 80 0D 01 02 [17:47:19]Write to MH i2c: E2 08 00 D3 63 80 0D 01 02 00 00 00 00 AF [17:47:19]Write i2c OK [17:47:19]MH_I2C_Read... [17:47:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:19]Read from MH i2c: E2 [17:47:19]MH_I2C_Read... [17:47:19]Read from MH i2c: E2 03 00 [17:47:19]MH_I2C_Read... [17:47:19]Read from MH i2c: E2 03 00 D3 63 00 90 00 AA [17:47:19]RAPDU: 90 00 [17:47:19]wFMCommunicate OK [17:47:19]wFMCommunicate request_size=255 [17:47:19]MH_SAM_APDU [17:47: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 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 2B E5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 15 7C 03 00 35 04 06 00 02 0A 31 FD [17:47:19]Write to MH i2c: E2 02 01 D4 63 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 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 2B E5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 15 7C 03 00 35 04 06 00 02 0A 31 FD 00 00 58 [17:47:19]Write i2c OK [17:47:19]MH_I2C_Read... [17:47:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:20]Read from MH i2c: E2 [17:47:20]MH_I2C_Read... [17:47:20]Read from MH i2c: E2 03 00 [17:47:20]MH_I2C_Read... [17:47:20]Read from MH i2c: E2 03 00 D4 63 00 90 00 AB [17:47:20]RAPDU: 90 00 [17:47:20]wFMCommunicate OK [17:47:20]wFMCommunicate request_size=7 [17:47:20]MH_SAM_APDU [17:47:20]CAPDU: 80 0D 02 02 02 9B F9 [17:47:20]Write to MH i2c: E2 0A 00 D5 63 80 0D 02 02 02 00 9B F9 00 00 4A [17:47:20]Write i2c OK [17:47:20]MH_I2C_Read... [17:47:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:20]Read from MH i2c: E2 [17:47:20]MH_I2C_Read... [17:47:20]Read from MH i2c: E2 03 00 [17:47:20]MH_I2C_Read... [17:47:20]Read from MH i2c: E2 03 00 D5 63 00 90 00 AC [17:47:20]RAPDU: 90 00 [17:47:20]wFMCommunicate OK [17:47:20]wFMCommunicate request_size=4 [17:47:20]MH_SAM_APDU [17:47:20]CAPDU: 80 0D 03 02 [17:47:20]Write to MH i2c: E2 08 00 D6 63 80 0D 03 02 00 00 00 00 B4 [17:47:20]Write i2c OK [17:47:20]MH_I2C_Read... [17:47:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:20]Read from MH i2c: E2 [17:47:20]MH_I2C_Read... [17:47:20]Read from MH i2c: E2 0B 00 [17:47:20]MH_I2C_Read... [17:47:20]Read from MH i2c: E2 0B 00 D6 63 00 9F 8A 16 3D 30 4A 07 8E 90 00 40 [17:47:20]RAPDU: 9F 8A 16 3D 30 4A 07 8E 90 00 [17:47:20]wFMCommunicate OK [17:47:20]SAM_PROTO_SignData done [17:47:20]FM_MakeSignedData done [17:47:20]CreateOFDProtocolMessage [17:47:20]wFMCommunicate request_size=4 [17:47:20]MH_SAM_APDU [17:47:20]CAPDU: 80 11 00 00 [17:47:20]Write to MH i2c: E2 08 00 D7 63 80 11 00 00 00 00 00 00 B4 [17:47:20]Write i2c OK [17:47:20]MH_I2C_Read... [17:47:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:20]Read from MH i2c: E2 [17:47:20]MH_I2C_Read... [17:47:20]Read from MH i2c: E2 17 00 [17:47:20]MH_I2C_Read... [17:47:20]Read from MH i2c: E2 17 00 D7 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0B [17:47:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:47:20]wFMCommunicate OK [17:47:20]CreateOFDProtocolMessage done [17:47:20]OFDSenderStorePacket 228373 [17:47:20]StoreOFDPacket docnum=228373 [17:47:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 F5 E4 04 01 8B 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 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 2B E5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 15 7C 03 00 35 04 06 00 02 0A 31 FD 9B F9 9F 8A 16 3D 30 4A 07 8E [17:47:20]CheckFolder [17:47:20]dirname=/storage/ofd_packets [17:47:20]CheckFolder done [17:47:20]ProducePacketName [17:47:20]name=ofd_packets/00228373 [17:47:20]NVStorageSaveData ofd_packets/00228373 [17:47:20]File name is /storage/ofd_packets/00228373 [17:47:20]Write 298 bytes [17:47:20]NVStorageSaveData done [17:47:20]OFDSenderStorePacket done [17:47:20]KKMCreateOFDPacket done [17:47:20]NVStorageSaveData kkm_last_timestamp [17:47:20]File name is /storage/kkm_last_timestamp [17:47:20]Write 4 bytes [17:47:20]NVStorageSaveData done [17:47:20]ExternCall_PrintAddStr [17:47:20]wPrintStart [17:47:20]Write to MH i2c: 01 00 00 D8 63 3B [17:47:20]Write i2c OK [17:47:20]MH_I2C_Read... [17:47:20]Read from MH i2c: 01 [17:47:20]MH_I2C_Read... [17:47:20]Read from MH i2c: 01 07 00 [17:47:20]MH_I2C_Read... [17:47:20]Read from MH i2c: 01 07 00 D8 63 00 00 00 00 00 FF 0F 50 [17:47:20]RasterBufferAndPrint [17:47:20]line Счет N : (1)1964889 [17:47:20]line ИНН: 02508201610067 [17:47:20]line Контрольно-Кассовый Чек [17:47:20]line ПРОДАЖА [17:47:20]line ТРК (МРК, ГНК) : 21 [17:47:20]line Товар: 2710194210 [17:47:20]line ДТ-К-5 [17:47:20]line 13.130 * 0.00 [17:47:20]line = 0.00 [17:47:20]line НДС 12% НСП 1% [17:47:20]line > о реализуемом товаре [17:47:20]line ИТОГО: 0.00 [17:47:20]line НСП 1% : 0.00 [17:47:20]line НДС 12% : 0.00 [17:47:20]line Наличными: 0.00 [17:47:20]line Безнал.: 0.00 [17:47:20]line Место: АЗС № 133 "Партнер Нефть" [17:47:20]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:47:20]line СНО: Общий режим [17:47:20]line Чек 337 22.10.2024 17:47 [17:47:20]line Смена: 535 ФФД: 1.0 [17:47:20]line ЗНМ: 0300000091 [17:47:20]line РНМ: 0000000000091685 [17:47:20]line Версия ККМ: 001 [17:47:20]line Талоны: ТК ГПНА Online [17:47:20]line 30093357 [17:47:20]line ФМ: 0000000000871839 [17:47:20]line ФД: 228373 [17:47:20]line ФПД: 2242811632633 [17:47:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T174723&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228373&fm=2242811632633&tin=02508201610067®Number=0000000000091685&sum=0 [17:47:20]OFD Sender: Processing packet 228373 [packets to send 38, broken 37] [17:47:20]ProducePacketName [17:47:20]name=ofd_packets/00228373 [17:47:20]OFD Sender: To server: pG, [17:47:20]CommunicateWithHost lk.salyk.kg:30040 [17:47:20]ConnectInit lk.salyk.kg [17:47:20]written 0, free lines is 4095 [17:47:20]Connected sock=10 [17:47:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 F5 E4 04 01 8B 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 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 2B E5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 15 7C 03 00 35 04 06 00 02 0A 31 FD 9B F9 9F 8A 16 3D 30 4A 07 8E [17:47:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 18 99 47 00 E1 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 15 7C 03 00 F4 03 04 00 23 90 17 67 B6 04 01 00 00 4A 84 7F E7 CC A9 BE 92 [17:47:20]CommunicateWithHost err = 0 [17:47:20]CheckOFDResponse [17:47:20]1017 (14) - 77093643461234 [17:47:20]1041 (16) - 0000000000871839 [17:47:20]1040 (4) - 228373 [17:47:20]1012 (4) - 22.10.2024 11:44 [17:47:20]1206 (1) - 0 [17:47:20]OFD Sender: Remove packet 228373 [17:47:20]ProducePacketName [17:47:20]name=ofd_packets/00228373 [17:47:20]NVStorageDeleteData [17:47:20]Write to MH i2c: 01 00 00 01 64 65 [17:47:20]Write i2c OK [17:47:20]MH_I2C_Read... [17:47:20]Read from MH i2c: 01 [17:47:20]MH_I2C_Read... [17:47:20]Read from MH i2c: 01 07 00 [17:47:20]MH_I2C_Read... [17:47:20]Read from MH i2c: 01 07 00 01 64 00 00 00 00 00 C7 0C 3F [17:47:20]RasterBufferAndPrint [17:47:20]line [17:47:20]line [17:47:20]line [17:47:20]line [17:47:20]line [17:47:20]written 0, free lines is 3276 [17:47:20]MH_Cut [17:47:20]Write to MH i2c: D1 01 00 08 64 01 3E [17:47:20]Write i2c OK [17:47:20]MH_I2C_Read... [17:47:20]Read from MH i2c: D1 [17:47:20]MH_I2C_Read... [17:47:20]Read from MH i2c: D1 01 00 [17:47:20]MH_I2C_Read... [17:47:20]Read from MH i2c: D1 01 00 08 64 00 3D [17:47:20]Write to MH i2c: 01 00 00 09 64 6D [17:47:20]Write i2c OK [17:47:20]MH_I2C_Read... [17:47:21]OFD Sender: No OFD packet to send [17:47:21]*** Cut start [17:47:21]*** Partial cut [17:47:21]*** CUTSNS_PIN = 1 [17:47:21]*** CUTSNS_PIN = 0 [17:47:22]*** Brake cut motor [17:47:22]Read from MH i2c: 01 [17:47:22]MH_I2C_Read... [17:47:22]*** Stop cut motor [17:47:22]*** Cut end [17:47:22]Read from MH i2c: 01 07 00 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: 01 07 00 09 64 00 00 00 00 00 FF 0F 82 [17:47:22]process_action close_receipt done [17:47:22]requested_data is exist [17:47:22]produce_requested_data [17:47:22]requested_item fm.sn is exist - process it [17:47:22]wFMCommunicate request_size=4 [17:47:22]MH_SAM_APDU [17:47:22]CAPDU: 80 11 00 00 [17:47:22]Write to MH i2c: E2 08 00 0A 64 80 11 00 00 00 00 00 00 E8 [17:47:22]Write i2c OK [17:47:22]MH_I2C_Read... [17:47:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:22]Read from MH i2c: E2 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: E2 17 00 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: E2 17 00 0A 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 3F [17:47:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:47:22]wFMCommunicate OK [17:47:22]requested_item fd.num is exist - process it [17:47:22]SAM_PROTO_GetFieldsCounters [17:47:22]wFMCommunicate request_size=4 [17:47:22]MH_SAM_APDU [17:47:22]CAPDU: 80 13 00 00 [17:47:22]Write to MH i2c: E2 08 00 0B 64 80 13 00 00 00 00 00 00 EB [17:47:22]Write i2c OK [17:47:22]MH_I2C_Read... [17:47:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:22]Read from MH i2c: E2 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: E2 62 00 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: E2 62 00 0B 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 15 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 B7 [17:47:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 15 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:47:22]wFMCommunicate OK [17:47:22]SAM_PROTO_GetFieldsCounters done [17:47:22]requested_item shift.num is exist - process it [17:47:22]requested_item shift.opened is exist - process it [17:47:22]req_shift_opened [17:47:22]FM_GetShiftState [17:47:22]SAM_PROTO_GetShiftState [17:47:22]wFMCommunicate request_size=4 [17:47:22]MH_SAM_APDU [17:47:22]CAPDU: 80 13 01 00 [17:47:22]Write to MH i2c: E2 08 00 0C 64 80 13 01 00 00 00 00 00 ED [17:47:22]Write i2c OK [17:47:22]MH_I2C_Read... [17:47:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:22]Read from MH i2c: E2 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: E2 0E 00 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: E2 0E 00 0C 64 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 B4 [17:47:22]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:47:22]wFMCommunicate OK [17:47:22]SAM_PROTO_GetShiftState done [17:47:22]FM_GetShiftState done [17:47:22]req_shift_opened done [17:47:22]requested_item shift.open_date is exist - process it [17:47:22]req_shift_open_date [17:47:22]req_shift_open_date done [17:47:22]produce_requested_data done [17:47:22]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228373,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [17:47:22]process_action_free close_receipt [17:47:22]json_value_free [17:47:22]json_value_free done [17:47:22]process_json_proto returns [17:47:22]Send response to host [17:47:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228373,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [17:47:22]free response buf [17:47:22]execute_script done [17:47:22]execute_script returns [17:47:22]free content buf [17:47:22]Sock 7.Close socket [17:47:22]Sock 7.Thread stoped [17:47:26]OFD Sender: No OFD packet to send [17:47:31]OFD Sender: No OFD packet to send [17:47:36]OFD Sender: No OFD packet to send [17:47:38]accept exits with 9 [17:47:38]New connection [17:47:38]New thread 3067137380 created [17:47:38]Thread 3066994020 joined [17:47:38]Waiting for new connection... [17:47:38] Sock 9.Parse request [17:47:38]Sock 9.Check first char [17:47:38]Sock 9.First char is OK [17:47:38]request: POST /json_proto HTTP/1.0 [17:47:38]Method: POST [17:47:38]URL: /json_proto [17:47:38]Method is POST - this is cgi request [17:47:38]url: /json_proto [17:47:38]query_string will be loaded in cgi processing [17:47:38]execute_cgi json_proto POST (null) [17:47:38]execute_cgi path=json_proto method=POST [17:47:38]POST find Content-Length [17:47:38]Host: 172.17.44.195:8080 [17:47:38]Content-Length: 678 [17:47:38]Content-Type: application/json [17:47:38] [17:47:38]POST finish read [17:47:38]Found Content-Length = 678 [17:47:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "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" ] } } [17:47:38]execute_script... [17:47: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)1964890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "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" ] } } [17:47:38]POST & json_proto [17:47:38]process_json_proto [17:47:38]json parsed OK: [17:47:38]protocol is kg_v1.0 [17:47:38]action value=close_receipt [17:47:38]process_action close_receipt [17:47:38]cmd_close_receipt [17:47:38]MH_GetDate [17:47:38]Write to MH i2c: F0 00 00 0D 64 60 [17:47:38]Write i2c OK [17:47:38]MH_I2C_Read... [17:47:38]Read from MH i2c: F0 [17:47:38]MH_I2C_Read... [17:47:38]Read from MH i2c: F0 09 00 [17:47:38]MH_I2C_Read... [17:47:38]Read from MH i2c: F0 09 00 0D 64 00 40 E5 17 67 82 C9 CF 66 8C [17:47:38]GetLastDocTimeStamp 1729619243 [17:47:38]current date 1729619264 [17:47:38]FM_GetShiftState [17:47:38]SAM_PROTO_GetShiftState [17:47:38]wFMCommunicate request_size=4 [17:47:38]MH_SAM_APDU [17:47:38]CAPDU: 80 13 01 00 [17:47:38]Write to MH i2c: E2 08 00 0E 64 80 13 01 00 00 00 00 00 EF [17:47:38]Write i2c OK [17:47:38]MH_I2C_Read... [17:47:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:38]Read from MH i2c: E2 [17:47:38]MH_I2C_Read... [17:47:38]Read from MH i2c: E2 0E 00 [17:47:38]MH_I2C_Read... [17:47:38]Read from MH i2c: E2 0E 00 0E 64 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 B6 [17:47:38]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:47:38]wFMCommunicate OK [17:47:38]SAM_PROTO_GetShiftState done [17:47:38]FM_GetShiftState done [17:47:38]opened in 1729555538 [17:47:38]opened+sec_in_day 1729641938 [17:47:38]quantity*price = 70044 [17:47:38]sum+1 = 70046 [17:47:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 338 22.10.2024 17:47 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228374 ФПД: 44027850150179 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T174744&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228374&fm=44027850150179&tin=02508201610067®Number=0000000000091685&sum=70000 [17:47:40]StoreToDocumentArchive [17:47:40]shift 535 fd 228374 [17:47:40]save to /storage/0535/doc_00228374 [17:47:40]save last doc name /storage/0535/doc_00228374 to /storage/kkm_last_doc_name [17:47:40]save OK [17:47:40]Clear old archive folders... [17:47:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:47:40]tlvbuf is 00875A10 [17:47:40]SAM_PROTO_ClearQueue [17:47:40]wFMCommunicate request_size=4 [17:47:40]MH_SAM_APDU [17:47:40]CAPDU: 80 09 00 00 [17:47:40]Write to MH i2c: E2 08 00 1B 64 80 09 00 00 00 00 00 00 F1 [17:47:40]Write i2c OK [17:47:40]MH_I2C_Read... [17:47:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:40]Read from MH i2c: E2 [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: E2 03 00 [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: E2 03 00 1B 64 00 90 00 F3 [17:47:40]RAPDU: 90 00 [17:47:40]wFMCommunicate OK [17:47:40]SAM_PROTO_ClearQueue done [17:47:40]KKMCreateOFDPacket [17:47:40]OFDProtocolAddRootSTLVToBuf [17:47:40]FM_MakeSignedData [17:47:40]FM_MakeSignedData [17:47:40]SAM_PROTO_SignData [17:47:40]wFMCommunicate request_size=4 [17:47:40]MH_SAM_APDU [17:47:40]CAPDU: 80 0D 01 02 [17:47:40]Write to MH i2c: E2 08 00 1C 64 80 0D 01 02 00 00 00 00 F9 [17:47:40]Write i2c OK [17:47:40]MH_I2C_Read... [17:47:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:40]Read from MH i2c: E2 [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: E2 03 00 [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: E2 03 00 1C 64 00 90 00 F4 [17:47:40]RAPDU: 90 00 [17:47:40]wFMCommunicate OK [17:47:40]wFMCommunicate request_size=255 [17:47:40]MH_SAM_APDU [17:47: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 0E 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 52 01 00 00 F4 03 04 00 40 E5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 16 7C 03 00 35 04 06 00 28 [17:47:40]Write to MH i2c: E2 02 01 1D 64 80 0D 02 02 FA 00 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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 0E 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 52 01 00 00 F4 03 04 00 40 E5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 16 7C 03 00 35 04 06 00 28 00 00 43 [17:47:40]Write i2c OK [17:47:40]MH_I2C_Read... [17:47:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:40]Read from MH i2c: E2 [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: E2 03 00 [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: E2 03 00 1D 64 00 90 00 F5 [17:47:40]RAPDU: 90 00 [17:47:40]wFMCommunicate OK [17:47:40]wFMCommunicate request_size=10 [17:47:40]MH_SAM_APDU [17:47:40]CAPDU: 80 0D 02 02 05 0B 08 5E 51 23 [17:47:40]Write to MH i2c: E2 0D 00 1E 64 80 0D 02 02 05 00 0B 08 5E 51 23 00 00 EB [17:47:40]Write i2c OK [17:47:40]MH_I2C_Read... [17:47:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:40]Read from MH i2c: E2 [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: E2 03 00 [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: E2 03 00 1E 64 00 90 00 F6 [17:47:40]RAPDU: 90 00 [17:47:40]wFMCommunicate OK [17:47:40]wFMCommunicate request_size=4 [17:47:40]MH_SAM_APDU [17:47:40]CAPDU: 80 0D 03 02 [17:47:40]Write to MH i2c: E2 08 00 1F 64 80 0D 03 02 00 00 00 00 FE [17:47:40]Write i2c OK [17:47:40]MH_I2C_Read... [17:47:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:40]Read from MH i2c: E2 [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: E2 0B 00 [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: E2 0B 00 1F 64 00 D4 E0 E7 5E 4F 3E C5 3A 90 00 84 [17:47:40]RAPDU: D4 E0 E7 5E 4F 3E C5 3A 90 00 [17:47:40]wFMCommunicate OK [17:47:40]SAM_PROTO_SignData done [17:47:40]FM_MakeSignedData done [17:47:40]CreateOFDProtocolMessage [17:47:40]wFMCommunicate request_size=4 [17:47:40]MH_SAM_APDU [17:47:40]CAPDU: 80 11 00 00 [17:47:40]Write to MH i2c: E2 08 00 20 64 80 11 00 00 00 00 00 00 FE [17:47:40]Write i2c OK [17:47:40]MH_I2C_Read... [17:47:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:40]Read from MH i2c: E2 [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: E2 17 00 [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: E2 17 00 20 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 55 [17:47:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:47:40]wFMCommunicate OK [17:47:40]CreateOFDProtocolMessage done [17:47:40]OFDSenderStorePacket 228374 [17:47:40]StoreOFDPacket docnum=228374 [17:47:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 C9 D1 07 01 74 B3 5A 03 01 00 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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 0E 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 52 01 00 00 F4 03 04 00 40 E5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 16 7C 03 00 35 04 06 00 28 0B 08 5E 51 23 D4 E0 E7 5E 4F 3E C5 3A [17:47:40]CheckFolder [17:47:40]dirname=/storage/ofd_packets [17:47:40]CheckFolder done [17:47:40]ProducePacketName [17:47:40]name=ofd_packets/00228374 [17:47:40]NVStorageSaveData ofd_packets/00228374 [17:47:40]File name is /storage/ofd_packets/00228374 [17:47:40]Write 301 bytes [17:47:40]NVStorageSaveData done [17:47:40]OFDSenderStorePacket done [17:47:40]KKMCreateOFDPacket done [17:47:40]NVStorageSaveData kkm_last_timestamp [17:47:40]File name is /storage/kkm_last_timestamp [17:47:40]Write 4 bytes [17:47:40]NVStorageSaveData done [17:47:40]ExternCall_PrintAddStr [17:47:40]wPrintStart [17:47:40]Write to MH i2c: 01 00 00 21 64 85 [17:47:40]Write i2c OK [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: 01 [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: 01 07 00 [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: 01 07 00 21 64 00 00 00 00 00 FF 0F 9A [17:47:40]RasterBufferAndPrint [17:47:40]line Счет N : (1)1964890 [17:47:40]line ИНН: 02508201610067 [17:47:40]line Контрольно-Кассовый Чек [17:47:40]line ПРОДАЖА [17:47:40]line ТРК (МРК, ГНК) : 54 [17:47:40]line Товар: 2710124500 [17:47:40]line Аи-95-К-5 [17:47:40]line 9.440 * 74.20 [17:47:40]line = 700.45 [17:47:40]line НДС 12% НСП 1% [17:47:40]line > о реализуемом товаре [17:47:40]line ОКРУГЛЕНИЕ: -0.45 [17:47:40]line ИТОГО: 700.00 [17:47:40]line Внесено: 700.00 [17:47:40]line СДАЧА: 0.00 [17:47:40]line НСП 1% : 6.20 [17:47:40]line НДС 12% : 74.38 [17:47:40]line Наличными: 700.00 [17:47:40]line Безнал.: 0.00 [17:47:40]line Место: АЗС № 133 "Партнер Нефть" [17:47:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:47:40]line СНО: Общий режим [17:47:40]line Чек 338 22.10.2024 17:47 [17:47:40]line Смена: 535 ФФД: 1.0 [17:47:40]line ЗНМ: 0300000091 [17:47:40]line РНМ: 0000000000091685 [17:47:40]line Версия ККМ: 001 [17:47:40]line ФМ: 0000000000871839 [17:47:40]line ФД: 228374 [17:47:40]line ФПД: 44027850150179 [17:47:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T174744&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228374&fm=44027850150179&tin=02508201610067®Number=0000000000091685&sum=70000 [17:47:40]OFD Sender: Processing packet 228374 [packets to send 38, broken 37] [17:47:40]ProducePacketName [17:47:40]name=ofd_packets/00228374 [17:47:40]OFD Sender: To server: pG, [17:47:40]CommunicateWithHost lk.salyk.kg:30040 [17:47:40]ConnectInit lk.salyk.kg [17:47:40]written 0, free lines is 4095 [17:47:40]Connected sock=10 [17:47:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 C9 D1 07 01 74 B3 5A 03 01 00 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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 0E 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 52 01 00 00 F4 03 04 00 40 E5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 16 7C 03 00 35 04 06 00 28 0B 08 5E 51 23 D4 E0 E7 5E 4F 3E C5 3A [17:47:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 37 62 47 00 64 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 16 7C 03 00 F4 03 04 00 37 90 17 67 B6 04 01 00 00 B7 36 C6 1D B7 1E 05 32 [17:47:41]CommunicateWithHost err = 0 [17:47:41]CheckOFDResponse [17:47:41]1017 (14) - 77093643461234 [17:47:41]1041 (16) - 0000000000871839 [17:47:41]1040 (4) - 228374 [17:47:41]1012 (4) - 22.10.2024 11:44 [17:47:41]1206 (1) - 0 [17:47:41]OFD Sender: Remove packet 228374 [17:47:41]ProducePacketName [17:47:41]name=ofd_packets/00228374 [17:47:41]NVStorageDeleteData [17:47:41]Write to MH i2c: 01 00 00 4B 64 AF [17:47:41]Write i2c OK [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: 01 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: 01 07 00 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: 01 07 00 4B 64 00 00 00 00 00 AB 0C 6D [17:47:41]RasterBufferAndPrint [17:47:41]line [17:47:41]line [17:47:41]line [17:47:41]line [17:47:41]line [17:47:41]written 0, free lines is 3248 [17:47:41]MH_Cut [17:47:41]Write to MH i2c: D1 01 00 52 64 01 88 [17:47:41]Write i2c OK [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: D1 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: D1 01 00 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: D1 01 00 52 64 00 87 [17:47:41]Write to MH i2c: 01 00 00 53 64 B7 [17:47:41]Write i2c OK [17:47:41]MH_I2C_Read... [17:47:41]OFD Sender: No OFD packet to send [17:47:42]*** Cut start [17:47:42]*** Partial cut [17:47:42]*** CUTSNS_PIN = 1 [17:47:42]*** CUTSNS_PIN = 0 [17:47:42]*** Brake cut motor [17:47:42]Read from MH i2c: 01 [17:47:42]MH_I2C_Read... [17:47:42]*** Stop cut motor [17:47:42]*** Cut end [17:47:42]Read from MH i2c: 01 07 00 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: 01 07 00 53 64 00 00 00 00 00 FF 0F CC [17:47:42]process_action close_receipt done [17:47:42]requested_data is exist [17:47:42]produce_requested_data [17:47:42]requested_item fm.sn is exist - process it [17:47:42]wFMCommunicate request_size=4 [17:47:42]MH_SAM_APDU [17:47:42]CAPDU: 80 11 00 00 [17:47:42]Write to MH i2c: E2 08 00 54 64 80 11 00 00 00 00 00 00 32 [17:47:42]Write i2c OK [17:47:42]MH_I2C_Read... [17:47:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:42]Read from MH i2c: E2 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 17 00 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 17 00 54 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 89 [17:47:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:47:42]wFMCommunicate OK [17:47:42]requested_item fd.num is exist - process it [17:47:42]SAM_PROTO_GetFieldsCounters [17:47:42]wFMCommunicate request_size=4 [17:47:42]MH_SAM_APDU [17:47:42]CAPDU: 80 13 00 00 [17:47:42]Write to MH i2c: E2 08 00 55 64 80 13 00 00 00 00 00 00 35 [17:47:42]Write i2c OK [17:47:42]MH_I2C_Read... [17:47:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:43]Read from MH i2c: E2 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 62 00 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 62 00 55 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 16 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 05 [17:47:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 16 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:47:43]wFMCommunicate OK [17:47:43]SAM_PROTO_GetFieldsCounters done [17:47:43]requested_item shift.num is exist - process it [17:47:43]requested_item shift.opened is exist - process it [17:47:43]req_shift_opened [17:47:43]FM_GetShiftState [17:47:43]SAM_PROTO_GetShiftState [17:47:43]wFMCommunicate request_size=4 [17:47:43]MH_SAM_APDU [17:47:43]CAPDU: 80 13 01 00 [17:47:43]Write to MH i2c: E2 08 00 56 64 80 13 01 00 00 00 00 00 37 [17:47:43]Write i2c OK [17:47:43]MH_I2C_Read... [17:47:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:43]Read from MH i2c: E2 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 0E 00 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 0E 00 56 64 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 FE [17:47:43]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [17:47:43]wFMCommunicate OK [17:47:43]SAM_PROTO_GetShiftState done [17:47:43]FM_GetShiftState done [17:47:43]req_shift_opened done [17:47:43]requested_item shift.open_date is exist - process it [17:47:43]req_shift_open_date [17:47:43]req_shift_open_date done [17:47:43]produce_requested_data done [17:47:43]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228374,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [17:47:43]process_action_free close_receipt [17:47:43]json_value_free [17:47:43]json_value_free done [17:47:43]process_json_proto returns [17:47:43]Send response to host [17:47:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228374,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [17:47:43]free response buf [17:47:43]execute_script done [17:47:43]execute_script returns [17:47:43]free content buf [17:47:43]Sock 9.Close socket [17:47:43]Sock 9.Thread stoped [17:47:46]OFD Sender: No OFD packet to send [17:47:51]OFD Sender: No OFD packet to send [17:47:56]OFD Sender: No OFD packet to send [17:48:01]OFD Sender: No OFD packet to send [17:48:06]OFD Sender: No OFD packet to send [17:48:11]OFD Sender: No OFD packet to send [17:48:16]OFD Sender: No OFD packet to send [17:48:21]OFD Sender: No OFD packet to send [17:48:26]OFD Sender: No OFD packet to send [17:48:31]OFD Sender: No OFD packet to send [17:48:36]OFD Sender: No OFD packet to send [17:48:41]OFD Sender: No OFD packet to send [17:48:46]OFD Sender: No OFD packet to send [17:48:51]OFD Sender: No OFD packet to send [17:48:56]OFD Sender: No OFD packet to send [17:49:01]OFD Sender: No OFD packet to send [17:49:06]OFD Sender: No OFD packet to send [17:49:11]OFD Sender: No OFD packet to send [17:49:16]OFD Sender: No OFD packet to send [17:49:21]OFD Sender: No OFD packet to send [17:49:26]OFD Sender: No OFD packet to send [17:49:31]OFD Sender: No OFD packet to send [17:49:36]OFD Sender: No OFD packet to send [17:49:41]OFD Sender: No OFD packet to send [17:49:46]OFD Sender: No OFD packet to send [17:49:51]OFD Sender: No OFD packet to send [17:49:56]OFD Sender: No OFD packet to send [17:50:01]OFD Sender: No OFD packet to send [17:50:06]OFD Sender: No OFD packet to send [17:50:11]OFD Sender: No OFD packet to send [17:50:16]OFD Sender: No OFD packet to send [17:50:21]OFD Sender: No OFD packet to send [17:50:26]OFD Sender: No OFD packet to send [17:50:31]OFD Sender: No OFD packet to send [17:50:36]OFD Sender: No OFD packet to send [17:50:41]OFD Sender: No OFD packet to send [17:50:46]OFD Sender: No OFD packet to send [17:50:51]OFD Sender: No OFD packet to send [17:50:56]OFD Sender: No OFD packet to send [17:51:01]OFD Sender: No OFD packet to send [17:51:06]OFD Sender: No OFD packet to send [17:51:11]OFD Sender: No OFD packet to send [17:51:16]OFD Sender: No OFD packet to send [17:51:21]OFD Sender: No OFD packet to send [17:51:26]OFD Sender: No OFD packet to send [17:51:31]OFD Sender: No OFD packet to send [17:51:36]OFD Sender: No OFD packet to send [17:51:41]OFD Sender: No OFD packet to send [17:51:46]OFD Sender: No OFD packet to send [17:51:51]OFD Sender: No OFD packet to send [17:51:56]OFD Sender: No OFD packet to send [17:52:01]OFD Sender: No OFD packet to send [17:52:06]OFD Sender: No OFD packet to send [17:52:11]OFD Sender: No OFD packet to send [17:52:16]OFD Sender: No OFD packet to send [17:52:21]OFD Sender: No OFD packet to send [17:52:26]OFD Sender: No OFD packet to send [17:52: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:57]OFD Sender: No OFD packet to send [17:53:02]OFD Sender: No OFD packet to send [17:53:07]OFD Sender: No OFD packet to send [17:53:12]OFD Sender: No OFD packet to send [17:53:17]OFD Sender: No OFD packet to send [17:53:22]OFD Sender: No OFD packet to send [17:53:27]OFD Sender: No OFD packet to send [17:53:32]OFD Sender: No OFD packet to send [17:53:37]OFD Sender: No OFD packet to send [17:53:42]OFD Sender: No OFD packet to send [17:53:47]OFD Sender: No OFD packet to send [17:53:52]OFD Sender: No OFD packet to send [17:53:57]OFD Sender: No OFD packet to send [17:54:02]OFD Sender: No OFD packet to send [17:54:07]OFD Sender: No OFD packet to send [17:54:12]OFD Sender: No OFD packet to send [17:54:17]OFD Sender: No OFD packet to send [17:54:22]OFD Sender: No OFD packet to send [17:54:27]OFD Sender: No OFD packet to send [17:54:32]OFD Sender: No OFD packet to send [17:54:37]OFD Sender: No OFD packet to send [17:54:42]OFD Sender: No OFD packet to send [17:54:47]OFD Sender: No OFD packet to send [17:54:52]OFD Sender: No OFD packet to send [17:54:57]OFD Sender: No OFD packet to send [17:55:02]OFD Sender: No OFD packet to send [17:55:07]OFD Sender: No OFD packet to send [17:55:12]OFD Sender: No OFD packet to send [17:55:17]OFD Sender: No OFD packet to send [17:55:22]OFD Sender: No OFD packet to send [17:55:27]OFD Sender: No OFD packet to send [17:55:32]OFD Sender: No OFD packet to send [17:55:37]OFD Sender: No OFD packet to send [17:55:42]OFD Sender: No OFD packet to send [17:55:47]OFD Sender: No OFD packet to send [17:55:52]OFD Sender: No OFD packet to send [17:55:57]OFD Sender: No OFD packet to send [17:56:02]OFD Sender: No OFD packet to send [17:56:07]OFD Sender: No OFD packet to send [17:56:12]OFD Sender: No OFD packet to send [17:56:17]OFD Sender: No OFD packet to send [17:56:22]OFD Sender: No OFD packet to send [17:56:27]OFD Sender: No OFD packet to send [17:56:32]OFD Sender: No OFD packet to send [17:56:37]OFD Sender: No OFD packet to send [17:56:42]OFD Sender: No OFD packet to send [17:56:47]OFD Sender: No OFD packet to send [17:56:52]OFD Sender: No OFD packet to send [17:56:57]OFD Sender: No OFD packet to send [17:57:02]OFD Sender: No OFD packet to send [17:57:07]OFD Sender: No OFD packet to send [17:57:12]OFD Sender: No OFD packet to send [17:57:17]OFD Sender: No OFD packet to send [17:57:22]OFD Sender: No OFD packet to send [17:57:27]OFD Sender: No OFD packet to send [17:57:32]OFD Sender: No OFD packet to send [17:57:37]OFD Sender: No OFD packet to send [17:57:42]OFD Sender: No OFD packet to send [17:57:47]OFD Sender: No OFD packet to send [17:57:52]OFD Sender: No OFD packet to send [17:57:57]OFD Sender: No OFD packet to send [17:58:02]OFD Sender: No OFD packet to send [17:58:07]OFD Sender: No OFD packet to send [17:58:12]OFD Sender: No OFD packet to send [17:58:17]OFD Sender: No OFD packet to send [17:58:22]OFD Sender: No OFD packet to send [17:58:27]OFD Sender: No OFD packet to send [17:58:32]OFD Sender: No OFD packet to send [17:58:37]OFD Sender: No OFD packet to send [17:58:42]OFD Sender: No OFD packet to send [17:58:47]OFD Sender: No OFD packet to send [17:58:52]OFD Sender: No OFD packet to send [17:58:57]OFD Sender: No OFD packet to send [17:59:02]OFD Sender: No OFD packet to send [17:59:07]OFD Sender: No OFD packet to send [17:59:12]OFD Sender: No OFD packet to send [17:59:17]OFD Sender: No OFD packet to send [17:59:22]OFD Sender: No OFD packet to send [17:59:27]OFD Sender: No OFD packet to send [17:59:32]OFD Sender: No OFD packet to send [17:59:37]OFD Sender: No OFD packet to send [17:59:42]OFD Sender: No OFD packet to send [17:59:47]OFD Sender: No OFD packet to send [17:59:52]OFD Sender: No OFD packet to send [17:59:57]OFD Sender: No OFD packet to send [18:00:02]OFD Sender: No OFD packet to send [18:00:07]OFD Sender: No OFD packet to send [18:00:12]OFD Sender: No OFD packet to send [18:00:17]OFD Sender: No OFD packet to send [18:00:22]OFD Sender: No OFD packet to send [18:00:27]OFD Sender: No OFD packet to send [18:00:32]OFD Sender: No OFD packet to send [18:00:37]OFD Sender: No OFD packet to send [18:00:42]OFD Sender: No OFD packet to send [18:00:47]OFD Sender: No OFD packet to send [18:00:52]OFD Sender: No OFD packet to send [18:00:57]OFD Sender: No OFD packet to send [18:01:02]OFD Sender: No OFD packet to send [18:01:07]OFD Sender: No OFD packet to send [18:01:12]OFD Sender: No OFD packet to send [18:01:17]OFD Sender: No OFD packet to send [18:01:22]OFD Sender: No OFD packet to send [18:01:27]OFD Sender: No OFD packet to send [18:01:32]OFD Sender: No OFD packet to send [18:01:37]OFD Sender: No OFD packet to send [18:01:42]OFD Sender: No OFD packet to send [18:01:47]OFD Sender: No OFD packet to send [18:01:52]OFD Sender: No OFD packet to send [18:01:57]OFD Sender: No OFD packet to send [18:02:02]OFD Sender: No OFD packet to send [18:02:07]OFD Sender: No OFD packet to send [18:02:12]OFD Sender: No OFD packet to send [18:02:17]OFD Sender: No OFD packet to send [18:02:22]OFD Sender: No OFD packet to send [18:02:27]OFD Sender: No OFD packet to send [18:02:32]OFD Sender: No OFD packet to send [18:02:37]OFD Sender: No OFD packet to send [18:02:42]OFD Sender: No OFD packet to send [18:02:47]OFD Sender: No OFD packet to send [18:02:52]OFD Sender: No OFD packet to send [18:02:57]OFD Sender: No OFD packet to send [18:03:02]OFD Sender: No OFD packet to send [18:03:07]OFD Sender: No OFD packet to send [18:03:12]OFD Sender: No OFD packet to send [18:03:17]OFD Sender: No OFD packet to send [18:03:22]OFD Sender: No OFD packet to send [18:03:27]OFD Sender: No OFD packet to send [18:03:32]OFD Sender: No OFD packet to send [18:03:37]OFD Sender: No OFD packet to send [18:03:42]OFD Sender: No OFD packet to send [18:03:47]OFD Sender: No OFD packet to send [18:03:52]OFD Sender: No OFD packet to send [18:03:57]OFD Sender: No OFD packet to send [18:04:02]OFD Sender: No OFD packet to send [18:04:07]OFD Sender: No OFD packet to send [18:04:12]OFD Sender: No OFD packet to send [18:04:17]OFD Sender: No OFD packet to send [18:04:22]OFD Sender: No OFD packet to send [18:04:27]OFD Sender: No OFD packet to send [18:04:32]OFD Sender: No OFD packet to send [18:04:37]OFD Sender: No OFD packet to send [18:04:42]OFD Sender: No OFD packet to send [18:04:47]OFD Sender: No OFD packet to send [18:04:52]OFD Sender: No OFD packet to send [18:04:57]OFD Sender: No OFD packet to send [18:05:02]OFD Sender: No OFD packet to send [18:05:07]OFD Sender: No OFD packet to send [18:05:12]OFD Sender: No OFD packet to send [18:05:17]OFD Sender: No OFD packet to send [18:05:22]OFD Sender: No OFD packet to send [18:05:27]OFD Sender: No OFD packet to send [18:05:32]OFD Sender: No OFD packet to send [18:05:37]OFD Sender: No OFD packet to send [18:05:42]OFD Sender: No OFD packet to send [18:05:47]OFD Sender: No OFD packet to send [18:05:52]OFD Sender: No OFD packet to send [18:05:57]OFD Sender: No OFD packet to send [18:06:02]OFD Sender: No OFD packet to send [18:06:07]OFD Sender: No OFD packet to send [18:06:12]OFD Sender: No OFD packet to send [18:06:17]OFD Sender: No OFD packet to send [18:06:22]OFD Sender: No OFD packet to send [18:06:27]OFD Sender: No OFD packet to send [18:06:32]OFD Sender: No OFD packet to send [18:06:37]OFD Sender: No OFD packet to send [18:06:42]OFD Sender: No OFD packet to send [18:06:47]OFD Sender: No OFD packet to send [18:06:52]OFD Sender: No OFD packet to send [18:06:57]OFD Sender: No OFD packet to send [18:07:02]OFD Sender: No OFD packet to send [18:07:07]OFD Sender: No OFD packet to send [18:07:12]OFD Sender: No OFD packet to send [18:07:17]OFD Sender: No OFD packet to send [18:07:22]OFD Sender: No OFD packet to send [18:07:27]OFD Sender: No OFD packet to send [18:07:32]OFD Sender: No OFD packet to send [18:07:37]OFD Sender: No OFD packet to send [18:07:42]OFD Sender: No OFD packet to send [18:07:47]OFD Sender: No OFD packet to send [18:07:52]OFD Sender: No OFD packet to send [18:07:57]OFD Sender: No OFD packet to send [18:08:02]OFD Sender: No OFD packet to send [18:08:07]OFD Sender: No OFD packet to send [18:08:12]OFD Sender: No OFD packet to send [18:08:17]OFD Sender: No OFD packet to send [18:08:22]OFD Sender: No OFD packet to send [18:08:27]OFD Sender: No OFD packet to send [18:08:32]OFD Sender: No OFD packet to send [18:08:37]OFD Sender: No OFD packet to send [18:08:42]OFD Sender: No OFD packet to send [18:08:47]OFD Sender: No OFD packet to send [18:08:52]OFD Sender: No OFD packet to send [18:08:57]OFD Sender: No OFD packet to send [18:09:02]OFD Sender: No OFD packet to send [18:09:07]OFD Sender: No OFD packet to send [18:09:12]OFD Sender: No OFD packet to send [18:09:17]OFD Sender: No OFD packet to send [18:09:22]OFD Sender: No OFD packet to send [18:09:27]OFD Sender: No OFD packet to send [18:09:32]OFD Sender: No OFD packet to send [18:09:37]OFD Sender: No OFD packet to send [18:09:42]OFD Sender: No OFD packet to send [18:09:47]OFD Sender: No OFD packet to send [18:09:52]OFD Sender: No OFD packet to send [18:09:57]OFD Sender: No OFD packet to send [18:10:02]OFD Sender: No OFD packet to send [18:10:07]OFD Sender: No OFD packet to send [18:10:12]OFD Sender: No OFD packet to send [18:10:17]OFD Sender: No OFD packet to send [18:10:22]OFD Sender: No OFD packet to send [18:10:27]OFD Sender: No OFD packet to send [18:10:32]OFD Sender: No OFD packet to send [18:10:37]OFD Sender: No OFD packet to send [18:10:42]OFD Sender: No OFD packet to send [18:10:47]OFD Sender: No OFD packet to send [18:10:52]OFD Sender: No OFD packet to send [18:10:57]OFD Sender: No OFD packet to send [18:11:02]OFD Sender: No OFD packet to send [18:11:07]OFD Sender: No OFD packet to send [18:11:12]OFD Sender: No OFD packet to send [18:11:17]OFD Sender: No OFD packet to send [18:11:22]OFD Sender: No OFD packet to send [18:11:27]OFD Sender: No OFD packet to send [18:11:32]OFD Sender: No OFD packet to send [18:11:37]OFD Sender: No OFD packet to send [18:11:42]OFD Sender: No OFD packet to send [18:11:47]OFD Sender: No OFD packet to send [18:11:52]OFD Sender: No OFD packet to send [18:11:58]OFD Sender: No OFD packet to send [18:12:03]OFD Sender: No OFD packet to send [18:12:08]OFD Sender: No OFD packet to send [18:12:13]OFD Sender: No OFD packet to send [18:12:18]OFD Sender: No OFD packet to send [18:12:23]OFD Sender: No OFD packet to send [18:12:28]OFD Sender: No OFD packet to send [18:12:33]OFD Sender: No OFD packet to send [18:12:38]OFD Sender: No OFD packet to send [18:12:43]OFD Sender: No OFD packet to send [18:12:48]OFD Sender: No OFD packet to send [18:12:53]OFD Sender: No OFD packet to send [18:12:58]OFD Sender: No OFD packet to send [18:13:03]OFD Sender: No OFD packet to send [18:13:08]OFD Sender: No OFD packet to send [18:13:13]OFD Sender: No OFD packet to send [18:13:18]OFD Sender: No OFD packet to send [18:13:23]OFD Sender: No OFD packet to send [18:13:28]OFD Sender: No OFD packet to send [18:13:33]OFD Sender: No OFD packet to send [18:13:38]OFD Sender: No OFD packet to send [18:13:43]OFD Sender: No OFD packet to send [18:13:48]OFD Sender: No OFD packet to send [18:13:53]OFD Sender: No OFD packet to send [18:13:58]OFD Sender: No OFD packet to send [18:14:03]OFD Sender: No OFD packet to send [18:14:08]OFD Sender: No OFD packet to send [18:14:13]OFD Sender: No OFD packet to send [18:14:18]OFD Sender: No OFD packet to send [18:14:23]OFD Sender: No OFD packet to send [18:14:28]OFD Sender: No OFD packet to send [18:14:33]OFD Sender: No OFD packet to send [18:14:38]OFD Sender: No OFD packet to send [18:14:43]OFD Sender: No OFD packet to send [18:14:48]OFD Sender: No OFD packet to send [18:14:53]OFD Sender: No OFD packet to send [18:14:58]OFD Sender: No OFD packet to send [18:15:03]OFD Sender: No OFD packet to send [18:15:08]OFD Sender: No OFD packet to send [18:15:13]OFD Sender: No OFD packet to send [18:15:18]OFD Sender: No OFD packet to send [18:15:23]OFD Sender: No OFD packet to send [18:15:28]OFD Sender: No OFD packet to send [18:15:33]OFD Sender: No OFD packet to send [18:15:38]OFD Sender: No OFD packet to send [18:15:43]OFD Sender: No OFD packet to send [18:15:48]OFD Sender: No OFD packet to send [18:15:53]OFD Sender: No OFD packet to send [18:15:58]OFD Sender: No OFD packet to send [18:16:03]OFD Sender: No OFD packet to send [18:16:08]OFD Sender: No OFD packet to send [18:16:13]OFD Sender: No OFD packet to send [18:16:18]OFD Sender: No OFD packet to send [18:16:23]OFD Sender: No OFD packet to send [18:16:28]OFD Sender: No OFD packet to send [18:16:33]OFD Sender: No OFD packet to send [18:16:38]OFD Sender: No OFD packet to send [18:16:43]OFD Sender: No OFD packet to send [18:16:48]OFD Sender: No OFD packet to send [18:16:53]OFD Sender: No OFD packet to send [18:16:58]OFD Sender: No OFD packet to send [18:17:03]OFD Sender: No OFD packet to send [18:17:08]OFD Sender: No OFD packet to send [18:17:13]OFD Sender: No OFD packet to send [18:17:18]OFD Sender: No OFD packet to send [18:17:23]OFD Sender: No OFD packet to send [18:17:28]OFD Sender: No OFD packet to send [18:17:33]OFD Sender: No OFD packet to send [18:17:38]OFD Sender: No OFD packet to send [18:17:43]OFD Sender: No OFD packet to send [18:17:48]OFD Sender: No OFD packet to send [18:17:53]OFD Sender: No OFD packet to send [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:23]OFD Sender: No OFD packet to send [18:18:28]OFD Sender: No OFD packet to send [18:18:33]OFD Sender: No OFD packet to send [18:18:38]OFD Sender: No OFD packet to send [18:18:43]OFD Sender: No OFD packet to send [18:18:48]OFD Sender: No OFD packet to send [18:18:53]OFD Sender: No OFD packet to send [18:18:58]OFD Sender: No OFD packet to send [18:19:03]OFD Sender: No OFD packet to send [18:19:08]OFD Sender: No OFD packet to send [18:19:13]OFD Sender: No OFD packet to send [18:19:18]OFD Sender: No OFD packet to send [18:19:23]OFD Sender: No OFD packet to send [18:19:28]OFD Sender: No OFD packet to send [18:19:33]OFD Sender: No OFD packet to send [18:19:38]OFD Sender: No OFD packet to send [18:19:43]OFD Sender: No OFD packet to send [18:19:48]OFD Sender: No OFD packet to send [18:19:53]OFD Sender: No OFD packet to send [18:19:58]OFD Sender: No OFD packet to send [18:20:03]OFD Sender: No OFD packet to send [18:20:08]OFD Sender: No OFD packet to send [18:20:13]OFD Sender: No OFD packet to send [18:20:18]OFD Sender: No OFD packet to send [18:20: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:54]accept exits with 7 [18:21:54]New connection [18:21:54]New thread 3066994020 created [18:21:54]Thread 3067137380 joined [18:21:54]Waiting for new connection... [18:21:54] Sock 7.Parse request [18:21:54]Sock 7.Check first char [18:21:54]Sock 7.First char is OK [18:21:54]request: POST /json_proto HTTP/1.0 [18:21:54]Method: POST [18:21:54]URL: /json_proto [18:21:54]Method is POST - this is cgi request [18:21:54]url: /json_proto [18:21:54]query_string will be loaded in cgi processing [18:21:54]execute_cgi json_proto POST (null) [18:21:54]execute_cgi path=json_proto method=POST [18:21:54]POST find Content-Length [18:21:54]Host: 172.17.44.195:8080 [18:21:54]Content-Length: 683 [18:21:54]Content-Type: application/json [18:21:54] [18:21:54]POST finish read [18:21:54]Found Content-Length = 683 [18:21:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:54]execute_script... [18:21: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)1964923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:54]POST & json_proto [18:21:54]process_json_proto [18:21:54]json parsed OK: [18:21:54]protocol is kg_v1.0 [18:21:54]action value=close_receipt [18:21:54]process_action close_receipt [18:21:54]cmd_close_receipt [18:21:54]MH_GetDate [18:21:54]Write to MH i2c: F0 00 00 57 64 AA [18:21:54]Write i2c OK [18:21:54]MH_I2C_Read... [18:21:54]Read from MH i2c: F0 [18:21:54]MH_I2C_Read... [18:21:54]Read from MH i2c: F0 09 00 [18:21:54]MH_I2C_Read... [18:21:54]Read from MH i2c: F0 09 00 57 64 00 48 ED 17 67 82 C9 CF 66 E6 [18:21:54]GetLastDocTimeStamp 1729619264 [18:21:54]current date 1729621320 [18:21:54]FM_GetShiftState [18:21:54]SAM_PROTO_GetShiftState [18:21:54]wFMCommunicate request_size=4 [18:21:54]MH_SAM_APDU [18:21:54]CAPDU: 80 13 01 00 [18:21:54]Write to MH i2c: E2 08 00 58 64 80 13 01 00 00 00 00 00 39 [18:21:54]Write i2c OK [18:21:54]MH_I2C_Read... [18:21:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:54]Read from MH i2c: E2 [18:21:54]MH_I2C_Read... [18:21:54]Read from MH i2c: E2 0E 00 [18:21:54]MH_I2C_Read... [18:21:54]Read from MH i2c: E2 0E 00 58 64 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 00 [18:21:54]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:21:54]wFMCommunicate OK [18:21:54]SAM_PROTO_GetShiftState done [18:21:54]FM_GetShiftState done [18:21:54]opened in 1729555538 [18:21:54]opened+sec_in_day 1729641938 [18:21:54]quantity*price = 100021 [18:21:54]sum+1 = 100023 [18:21:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 339 22.10.2024 18:22 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228375 ФПД: 58892627164980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182200&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228375&fm=58892627164980&tin=02508201610067®Number=0000000000091685&sum=100000 [18:21:55]StoreToDocumentArchive [18:21:55]shift 535 fd 228375 [18:21:55]save to /storage/0535/doc_00228375 [18:21:55]save last doc name /storage/0535/doc_00228375 to /storage/kkm_last_doc_name [18:21:55]save OK [18:21:55]Clear old archive folders... [18:21:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:21:55]tlvbuf is 009848C0 [18:21:55]SAM_PROTO_ClearQueue [18:21:55]wFMCommunicate request_size=4 [18:21:55]MH_SAM_APDU [18:21:55]CAPDU: 80 09 00 00 [18:21:55]Write to MH i2c: E2 08 00 65 64 80 09 00 00 00 00 00 00 3B [18:21:55]Write i2c OK [18:21:55]MH_I2C_Read... [18:21:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:21:55]Read from MH i2c: E2 [18:21:55]MH_I2C_Read... [18:21:55]Read from MH i2c: E2 03 00 [18:21:55]MH_I2C_Read... [18:21:55]Read from MH i2c: E2 03 00 65 64 00 90 00 3D [18:21:55]RAPDU: 90 00 [18:21:55]wFMCommunicate OK [18:21:55]SAM_PROTO_ClearQueue done [18:21:55]KKMCreateOFDPacket [18:21:55]OFDProtocolAddRootSTLVToBuf [18:21:55]FM_MakeSignedData [18:21:55]FM_MakeSignedData [18:21:55]SAM_PROTO_SignData [18:21:55]wFMCommunicate request_size=4 [18:21:55]MH_SAM_APDU [18:21:55]CAPDU: 80 0D 01 02 [18:21:55]Write to MH i2c: E2 08 00 66 64 80 0D 01 02 00 00 00 00 43 [18:21:55]Write i2c OK [18:21:55]MH_I2C_Read... [18:21:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:21:56]Read from MH i2c: E2 [18:21:56]MH_I2C_Read... [18:21:56]Read from MH i2c: E2 03 00 [18:21:56]MH_I2C_Read... [18:21:56]Read from MH i2c: E2 03 00 66 64 00 90 00 3E [18:21:56]RAPDU: 90 00 [18:21:56]wFMCommunicate OK [18:21:56]wFMCommunicate request_size=255 [18:21:56]MH_SAM_APDU [18:21:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 48 ED 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 17 7C 03 00 35 04 06 00 35 [18:21:56]Write to MH i2c: E2 02 01 67 64 80 0D 02 02 FA 00 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 48 ED 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 17 7C 03 00 35 04 06 00 35 00 00 E2 [18:21:56]Write i2c OK [18:21:56]MH_I2C_Read... [18:21:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:56]Read from MH i2c: E2 [18:21:56]MH_I2C_Read... [18:21:56]Read from MH i2c: E2 03 00 [18:21:56]MH_I2C_Read... [18:21:56]Read from MH i2c: E2 03 00 67 64 00 90 00 3F [18:21:56]RAPDU: 90 00 [18:21:56]wFMCommunicate OK [18:21:56]wFMCommunicate request_size=10 [18:21:56]MH_SAM_APDU [18:21:56]CAPDU: 80 0D 02 02 05 90 02 1F 3F 34 [18:21:56]Write to MH i2c: E2 0D 00 68 64 80 0D 02 02 05 00 90 02 1F 3F 34 00 00 74 [18:21:56]Write i2c OK [18:21:56]MH_I2C_Read... [18:21:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:56]Read from MH i2c: E2 [18:21:56]MH_I2C_Read... [18:21:56]Read from MH i2c: E2 03 00 [18:21:56]MH_I2C_Read... [18:21:56]Read from MH i2c: E2 03 00 68 64 00 90 00 40 [18:21:56]RAPDU: 90 00 [18:21:56]wFMCommunicate OK [18:21:56]wFMCommunicate request_size=4 [18:21:56]MH_SAM_APDU [18:21:56]CAPDU: 80 0D 03 02 [18:21:56]Write to MH i2c: E2 08 00 69 64 80 0D 03 02 00 00 00 00 48 [18:21:56]Write i2c OK [18:21:56]MH_I2C_Read... [18:21:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:21:56]Read from MH i2c: E2 [18:21:56]MH_I2C_Read... [18:21:56]Read from MH i2c: E2 0B 00 [18:21:56]MH_I2C_Read... [18:21:56]Read from MH i2c: E2 0B 00 69 64 00 51 60 99 B0 D9 8C B4 5E 90 00 BA [18:21:56]RAPDU: 51 60 99 B0 D9 8C B4 5E 90 00 [18:21:56]wFMCommunicate OK [18:21:56]SAM_PROTO_SignData done [18:21:56]FM_MakeSignedData done [18:21:56]CreateOFDProtocolMessage [18:21:56]wFMCommunicate request_size=4 [18:21:56]MH_SAM_APDU [18:21:56]CAPDU: 80 11 00 00 [18:21:56]Write to MH i2c: E2 08 00 6A 64 80 11 00 00 00 00 00 00 48 [18:21:56]Write i2c OK [18:21:56]MH_I2C_Read... [18:21:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:56]Read from MH i2c: E2 [18:21:56]MH_I2C_Read... [18:21:56]Read from MH i2c: E2 17 00 [18:21:56]MH_I2C_Read... [18:21:56]Read from MH i2c: E2 17 00 6A 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9F [18:21:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:21:56]wFMCommunicate OK [18:21:56]CreateOFDProtocolMessage done [18:21:56]OFDSenderStorePacket 228375 [18:21:56]StoreOFDPacket docnum=228375 [18:21:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 AD 9E 07 01 4A 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 48 ED 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 17 7C 03 00 35 04 06 00 35 90 02 1F 3F 34 51 60 99 B0 D9 8C B4 5E [18:21:56]CheckFolder [18:21:56]dirname=/storage/ofd_packets [18:21:56]CheckFolder done [18:21:56]ProducePacketName [18:21:56]name=ofd_packets/00228375 [18:21:56]NVStorageSaveData ofd_packets/00228375 [18:21:56]File name is /storage/ofd_packets/00228375 [18:21:56]Write 301 bytes [18:21:56]NVStorageSaveData done [18:21:56]OFDSenderStorePacket done [18:21:56]KKMCreateOFDPacket done [18:21:56]NVStorageSaveData kkm_last_timestamp [18:21:56]File name is /storage/kkm_last_timestamp [18:21:56]OFD Sender: Processing packet 228375 [packets to send 38, broken 37] [18:21:56]ProducePacketName [18:21:56]name=ofd_packets/00228375 [18:21:56]OFD Sender: To server: pG, [18:21:56]CommunicateWithHost lk.salyk.kg:30040 [18:21:56]ConnectInit lk.salyk.kg [18:21:56]Write 4 bytes [18:21:56]NVStorageSaveData done [18:21:56]ExternCall_PrintAddStr [18:21:56]wPrintStart [18:21:56]Write to MH i2c: 01 00 00 6B 64 CF [18:21:56]Write i2c OK [18:21:56]MH_I2C_Read... [18:21:56]Read from MH i2c: 01 [18:21:56]MH_I2C_Read... [18:21:56]Read from MH i2c: 01 07 00 [18:21:56]MH_I2C_Read... [18:21:56]Read from MH i2c: 01 07 00 6B 64 00 00 00 00 00 FF 0F E4 [18:21:56]RasterBufferAndPrint [18:21:56]line Счет N : (1)1964923 [18:21:56]line ИНН: 02508201610067 [18:21:56]line Контрольно-Кассовый Чек [18:21:56]line ПРОДАЖА [18:21:56]line ТРК (МРК, ГНК) : 64 [18:21:56]line Товар: 2710124500 [18:21:56]line Аи-95-К-5 [18:21:56]line 13.480 * 74.20 [18:21:56]line = 1000.22 [18:21:56]line НДС 12% НСП 1% [18:21:56]line > о реализуемом товаре [18:21:56]line ОКРУГЛЕНИЕ: -0.22 [18:21:56]line ИТОГО: 1000.00 [18:21:56]line Внесено: 1000.00 [18:21:56]line СДАЧА: 0.00 [18:21:56]line НСП 1% : 8.85 [18:21:56]line НДС 12% : 106.22 [18:21:56]line Наличными: 1000.00 [18:21:56]line Безнал.: 0.00 [18:21:56]line Место: АЗС № 133 "Партнер Нефть" [18:21:56]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:21:56]line СНО: Общий режим [18:21:56]line Чек 339 22.10.2024 18:22 [18:21:56]line Смена: 535 ФФД: 1.0 [18:21:56]line ЗНМ: 0300000091 [18:21:56]line РНМ: 0000000000091685 [18:21:56]line Версия ККМ: 001 [18:21:56]line ФМ: 0000000000871839 [18:21:56]line ФД: 228375 [18:21:56]line ФПД: 58892627164980 [18:21:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182200&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228375&fm=58892627164980&tin=02508201610067®Number=0000000000091685&sum=100000 [18:21:56]Connected sock=11 [18:21:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 AD 9E 07 01 4A 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 48 ED 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 17 7C 03 00 35 04 06 00 35 90 02 1F 3F 34 51 60 99 B0 D9 8C B4 5E [18:21:56]written 0, free lines is 4095 [18:21:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 62 86 47 00 FF 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 17 7C 03 00 F4 03 04 00 3F 98 17 67 B6 04 01 00 00 52 0B CF FD 47 7B F6 23 [18:21:57]CommunicateWithHost err = 0 [18:21:57]CheckOFDResponse [18:21:57]1017 (14) - 77093643461234 [18:21:57]1041 (16) - 0000000000871839 [18:21:57]1040 (4) - 228375 [18:21:57]1012 (4) - 22.10.2024 12:19 [18:21:57]1206 (1) - 0 [18:21:57]OFD Sender: Remove packet 228375 [18:21:57]ProducePacketName [18:21:57]name=ofd_packets/00228375 [18:21:57]NVStorageDeleteData [18:21:57]Write to MH i2c: 01 00 00 95 64 F9 [18:21:57]Write i2c OK [18:21:57]MH_I2C_Read... [18:21:57]Read from MH i2c: 01 [18:21:57]MH_I2C_Read... [18:21:57]Read from MH i2c: 01 07 00 [18:21:57]MH_I2C_Read... [18:21:57]Read from MH i2c: 01 07 00 95 64 00 00 00 00 00 A9 0C B5 [18:21:57]RasterBufferAndPrint [18:21:57]line [18:21:57]line [18:21:57]line [18:21:57]line [18:21:57]line [18:21:57]written 0, free lines is 3246 [18:21:57]MH_Cut [18:21:57]Write to MH i2c: D1 01 00 9C 64 01 D2 [18:21:57]Write i2c OK [18:21:57]MH_I2C_Read... [18:21:57]Read from MH i2c: D1 [18:21:57]MH_I2C_Read... [18:21:57]Read from MH i2c: D1 01 00 [18:21:57]MH_I2C_Read... [18:21:57]Read from MH i2c: D1 01 00 9C 64 00 D1 [18:21:57]Write to MH i2c: 01 00 00 9D 64 01 [18:21:57]Write i2c OK [18:21:57]MH_I2C_Read... [18:21:57]OFD Sender: No OFD packet to send [18:21:58]*** Cut start [18:21:58]*** Partial cut [18:21:58]*** CUTSNS_PIN = 1 [18:21:58]*** CUTSNS_PIN = 0 [18:21:58]*** Brake cut motor [18:21:58]Read from MH i2c: 01 [18:21:58]MH_I2C_Read... [18:21:58]*** Stop cut motor [18:21:58]*** Cut end [18:21:58]Read from MH i2c: 01 07 00 [18:21:58]MH_I2C_Read... [18:21:58]Read from MH i2c: 01 07 00 9D 64 00 00 00 00 00 FF 0F 16 [18:21:58]process_action close_receipt done [18:21:58]requested_data is exist [18:21:58]produce_requested_data [18:21:58]requested_item fm.sn is exist - process it [18:21:58]wFMCommunicate request_size=4 [18:21:58]MH_SAM_APDU [18:21:58]CAPDU: 80 11 00 00 [18:21:58]Write to MH i2c: E2 08 00 9E 64 80 11 00 00 00 00 00 00 7C [18:21:58]Write i2c OK [18:21:58]MH_I2C_Read... [18:21:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:58]Read from MH i2c: E2 [18:21:58]MH_I2C_Read... [18:21:58]Read from MH i2c: E2 17 00 [18:21:58]MH_I2C_Read... [18:21:58]Read from MH i2c: E2 17 00 9E 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D3 [18:21:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:21:58]wFMCommunicate OK [18:21:58]requested_item fd.num is exist - process it [18:21:58]SAM_PROTO_GetFieldsCounters [18:21:58]wFMCommunicate request_size=4 [18:21:58]MH_SAM_APDU [18:21:58]CAPDU: 80 13 00 00 [18:21:58]Write to MH i2c: E2 08 00 9F 64 80 13 00 00 00 00 00 00 7F [18:21:58]Write i2c OK [18:21:58]MH_I2C_Read... [18:21:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:21:59]Read from MH i2c: E2 [18:21:59]MH_I2C_Read... [18:21:59]Read from MH i2c: E2 62 00 [18:21:59]MH_I2C_Read... [18:21:59]Read from MH i2c: E2 62 00 9F 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 17 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 53 [18:21:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 17 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:21:59]wFMCommunicate OK [18:21:59]SAM_PROTO_GetFieldsCounters done [18:21:59]requested_item shift.num is exist - process it [18:21:59]requested_item shift.opened is exist - process it [18:21:59]req_shift_opened [18:21:59]FM_GetShiftState [18:21:59]SAM_PROTO_GetShiftState [18:21:59]wFMCommunicate request_size=4 [18:21:59]MH_SAM_APDU [18:21:59]CAPDU: 80 13 01 00 [18:21:59]Write to MH i2c: E2 08 00 A0 64 80 13 01 00 00 00 00 00 81 [18:21:59]Write i2c OK [18:21:59]MH_I2C_Read... [18:21:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:59]Read from MH i2c: E2 [18:21:59]MH_I2C_Read... [18:21:59]Read from MH i2c: E2 0E 00 [18:21:59]MH_I2C_Read... [18:21:59]Read from MH i2c: E2 0E 00 A0 64 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 48 [18:21:59]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:21:59]wFMCommunicate OK [18:21:59]SAM_PROTO_GetShiftState done [18:21:59]FM_GetShiftState done [18:21:59]req_shift_opened done [18:21:59]requested_item shift.open_date is exist - process it [18:21:59]req_shift_open_date [18:21:59]req_shift_open_date done [18:21:59]produce_requested_data done [18:21:59]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228375,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [18:21:59]process_action_free close_receipt [18:21:59]json_value_free [18:21:59]json_value_free done [18:21:59]process_json_proto returns [18:21:59]Send response to host [18:21:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228375,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [18:21:59]free response buf [18:21:59]execute_script done [18:21:59]execute_script returns [18:21:59]free content buf [18:21:59]Sock 7.Close socket [18:21:59]Sock 7.Thread stoped [18:22:02]OFD Sender: No OFD packet to send [18:22:07]OFD Sender: No OFD packet to send [18:22:12]OFD Sender: No OFD packet to send [18:22:17]OFD Sender: No OFD packet to send [18:22:22]OFD Sender: No OFD packet to send [18:22:27]OFD Sender: No OFD packet to send [18:22:31]accept exits with 9 [18:22:31]New connection [18:22:31]New thread 3067137380 created [18:22:31]Thread 3066994020 joined [18:22:31]Waiting for new connection... [18:22:31] Sock 9.Parse request [18:22:31]Sock 9.Check first char [18:22:31]Sock 9.First char is OK [18:22:31]request: POST /json_proto HTTP/1.0 [18:22:31]Method: POST [18:22:31]URL: /json_proto [18:22:31]Method is POST - this is cgi request [18:22:31]url: /json_proto [18:22:31]query_string will be loaded in cgi processing [18:22:31]execute_cgi json_proto POST (null) [18:22:31]execute_cgi path=json_proto method=POST [18:22:31]POST find Content-Length [18:22:31]Host: 172.17.44.195:8080 [18:22:31]Content-Length: 678 [18:22:31]Content-Type: application/json [18:22:31] [18:22:31]POST finish read [18:22:31]Found Content-Length = 678 [18:22:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:31]execute_script... [18:22:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:31]POST & json_proto [18:22:31]process_json_proto [18:22:31]json parsed OK: [18:22:31]protocol is kg_v1.0 [18:22:31]action value=close_receipt [18:22:31]process_action close_receipt [18:22:31]cmd_close_receipt [18:22:31]MH_GetDate [18:22:31]Write to MH i2c: F0 00 00 A1 64 F4 [18:22:31]Write i2c OK [18:22:31]MH_I2C_Read... [18:22:31]Read from MH i2c: F0 [18:22:31]MH_I2C_Read... [18:22:31]Read from MH i2c: F0 09 00 [18:22:31]MH_I2C_Read... [18:22:31]Read from MH i2c: F0 09 00 A1 64 00 6C ED 17 67 82 C9 CF 66 54 [18:22:31]GetLastDocTimeStamp 1729621320 [18:22:31]current date 1729621356 [18:22:31]FM_GetShiftState [18:22:31]SAM_PROTO_GetShiftState [18:22:31]wFMCommunicate request_size=4 [18:22:31]MH_SAM_APDU [18:22:31]CAPDU: 80 13 01 00 [18:22:31]Write to MH i2c: E2 08 00 A2 64 80 13 01 00 00 00 00 00 83 [18:22:31]Write i2c OK [18:22:31]MH_I2C_Read... [18:22:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:31]Read from MH i2c: E2 [18:22:31]MH_I2C_Read... [18:22:31]Read from MH i2c: E2 0E 00 [18:22:31]MH_I2C_Read... [18:22:31]Read from MH i2c: E2 0E 00 A2 64 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 4A [18:22:31]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:22:31]wFMCommunicate OK [18:22:31]SAM_PROTO_GetShiftState done [18:22:31]FM_GetShiftState done [18:22:31]opened in 1729555538 [18:22:31]opened+sec_in_day 1729641938 [18:22:31]quantity*price = 50010 [18:22:31]sum+1 = 50012 [18:22:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 340 22.10.2024 18:22 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228376 ФПД: 148529060157932 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182236&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228376&fm=148529060157932&tin=02508201610067®Number=0000000000091685&sum=50000 [18:22:32]StoreToDocumentArchive [18:22:32]shift 535 fd 228376 [18:22:32]save to /storage/0535/doc_00228376 [18:22:32]save last doc name /storage/0535/doc_00228376 to /storage/kkm_last_doc_name [18:22:32]save OK [18:22:32]Clear old archive folders... [18:22:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:22:32]tlvbuf is 008B17D0 [18:22:32]SAM_PROTO_ClearQueue [18:22:32]wFMCommunicate request_size=4 [18:22:32]MH_SAM_APDU [18:22:32]CAPDU: 80 09 00 00 [18:22:32]Write to MH i2c: E2 08 00 AF 64 80 09 00 00 00 00 00 00 85 [18:22:32]Write i2c OK [18:22:32]MH_I2C_Read... [18:22:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:22:32]Read from MH i2c: E2 [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: E2 03 00 [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: E2 03 00 AF 64 00 90 00 87 [18:22:32]RAPDU: 90 00 [18:22:32]wFMCommunicate OK [18:22:32]SAM_PROTO_ClearQueue done [18:22:32]KKMCreateOFDPacket [18:22:32]OFDProtocolAddRootSTLVToBuf [18:22:32]FM_MakeSignedData [18:22:32]FM_MakeSignedData [18:22:32]SAM_PROTO_SignData [18:22:32]wFMCommunicate request_size=4 [18:22:32]MH_SAM_APDU [18:22:32]CAPDU: 80 0D 01 02 [18:22:32]Write to MH i2c: E2 08 00 B0 64 80 0D 01 02 00 00 00 00 8D [18:22:32]Write i2c OK [18:22:32]MH_I2C_Read... [18:22:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:22:32]Read from MH i2c: E2 [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: E2 03 00 [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: E2 03 00 B0 64 00 90 00 88 [18:22:32]RAPDU: 90 00 [18:22:32]wFMCommunicate OK [18:22:32]wFMCommunicate request_size=255 [18:22:32]MH_SAM_APDU [18:22: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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 6C ED 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 18 7C 03 00 35 04 06 00 87 [18:22:32]Write to MH i2c: E2 02 01 B1 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 6C ED 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 18 7C 03 00 35 04 06 00 87 00 00 5F [18:22:32]Write i2c OK [18:22:32]MH_I2C_Read... [18:22:32]OFD Sender: No OFD packet to send [18:22:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:32]Read from MH i2c: E2 [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: E2 03 00 [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: E2 03 00 B1 64 00 90 00 89 [18:22:32]RAPDU: 90 00 [18:22:32]wFMCommunicate OK [18:22:32]wFMCommunicate request_size=10 [18:22:32]MH_SAM_APDU [18:22:32]CAPDU: 80 0D 02 02 05 16 1D DE 99 EC [18:22:32]Write to MH i2c: E2 0D 00 B2 64 80 0D 02 02 05 00 16 1D DE 99 EC 00 00 30 [18:22:32]Write i2c OK [18:22:32]MH_I2C_Read... [18:22:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:32]Read from MH i2c: E2 [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: E2 03 00 [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: E2 03 00 B2 64 00 90 00 8A [18:22:32]RAPDU: 90 00 [18:22:32]wFMCommunicate OK [18:22:32]wFMCommunicate request_size=4 [18:22:32]MH_SAM_APDU [18:22:32]CAPDU: 80 0D 03 02 [18:22:32]Write to MH i2c: E2 08 00 B3 64 80 0D 03 02 00 00 00 00 92 [18:22:32]Write i2c OK [18:22:32]MH_I2C_Read... [18:22:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:22:32]Read from MH i2c: E2 [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: E2 0B 00 [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: E2 0B 00 B3 64 00 A0 6C 68 84 09 39 C7 CA 90 00 5E [18:22:32]RAPDU: A0 6C 68 84 09 39 C7 CA 90 00 [18:22:32]wFMCommunicate OK [18:22:32]SAM_PROTO_SignData done [18:22:32]FM_MakeSignedData done [18:22:32]CreateOFDProtocolMessage [18:22:32]wFMCommunicate request_size=4 [18:22:32]MH_SAM_APDU [18:22:32]CAPDU: 80 11 00 00 [18:22:32]Write to MH i2c: E2 08 00 B4 64 80 11 00 00 00 00 00 00 92 [18:22:32]Write i2c OK [18:22:32]MH_I2C_Read... [18:22:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:32]Read from MH i2c: E2 [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: E2 17 00 [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: E2 17 00 B4 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E9 [18:22:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:22:32]wFMCommunicate OK [18:22:32]CreateOFDProtocolMessage done [18:22:32]OFDSenderStorePacket 228376 [18:22:32]StoreOFDPacket docnum=228376 [18:22:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 2C 7A 07 01 C4 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 6C ED 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 18 7C 03 00 35 04 06 00 87 16 1D DE 99 EC A0 6C 68 84 09 39 C7 CA [18:22:32]CheckFolder [18:22:32]dirname=/storage/ofd_packets [18:22:32]CheckFolder done [18:22:32]ProducePacketName [18:22:32]name=ofd_packets/00228376 [18:22:32]NVStorageSaveData ofd_packets/00228376 [18:22:32]File name is /storage/ofd_packets/00228376 [18:22:32]Write 301 bytes [18:22:32]NVStorageSaveData done [18:22:32]OFDSenderStorePacket done [18:22:32]KKMCreateOFDPacket done [18:22:32]NVStorageSaveData kkm_last_timestamp [18:22:32]File name is /storage/kkm_last_timestamp [18:22:32]Write 4 bytes [18:22:32]NVStorageSaveData done [18:22:32]ExternCall_PrintAddStr [18:22:32]wPrintStart [18:22:32]Write to MH i2c: 01 00 00 B5 64 19 [18:22:32]Write i2c OK [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: 01 [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: 01 07 00 [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: 01 07 00 B5 64 00 00 00 00 00 FF 0F 2E [18:22:32]RasterBufferAndPrint [18:22:32]line Счет N : (1)1964924 [18:22:32]line ИНН: 02508201610067 [18:22:32]line Контрольно-Кассовый Чек [18:22:32]line ПРОДАЖА [18:22:32]line ТРК (МРК, ГНК) : 54 [18:22:32]line Товар: 2710124500 [18:22:32]line Аи-95-К-5 [18:22:32]line 6.740 * 74.20 [18:22:32]line = 500.11 [18:22:32]line НДС 12% НСП 1% [18:22:32]line > о реализуемом товаре [18:22:32]line ОКРУГЛЕНИЕ: -0.11 [18:22:32]line ИТОГО: 500.00 [18:22:32]line Внесено: 500.00 [18:22:32]line СДАЧА: 0.00 [18:22:32]line НСП 1% : 4.43 [18:22:32]line НДС 12% : 53.11 [18:22:32]line Наличными: 500.00 [18:22:32]line Безнал.: 0.00 [18:22:32]line Место: АЗС № 133 "Партнер Нефть" [18:22:32]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:22:32]line СНО: Общий режим [18:22:32]line Чек 340 22.10.2024 18:22 [18:22:32]line Смена: 535 ФФД: 1.0 [18:22:32]line ЗНМ: 0300000091 [18:22:32]line РНМ: 0000000000091685 [18:22:32]line Версия ККМ: 001 [18:22:32]line ФМ: 0000000000871839 [18:22:32]line ФД: 228376 [18:22:32]line ФПД: 148529060157932 [18:22:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182236&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228376&fm=148529060157932&tin=02508201610067®Number=0000000000091685&sum=50000 [18:22:33]OFD Sender: Processing packet 228376 [packets to send 38, broken 37] [18:22:33]ProducePacketName [18:22:33]name=ofd_packets/00228376 [18:22:33]OFD Sender: To server: pG, [18:22:33]CommunicateWithHost lk.salyk.kg:30040 [18:22:33]ConnectInit lk.salyk.kg [18:22:33]written 0, free lines is 4095 [18:22:33]Connected sock=10 [18:22:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 2C 7A 07 01 C4 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 6C ED 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 18 7C 03 00 35 04 06 00 87 16 1D DE 99 EC A0 6C 68 84 09 39 C7 CA [18:22:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 74 E1 47 00 23 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 18 7C 03 00 F4 03 04 00 64 98 17 67 B6 04 01 00 00 3B 4A 55 0D B2 EF F1 E5 [18:22:33]CommunicateWithHost err = 0 [18:22:33]CheckOFDResponse [18:22:33]1017 (14) - 77093643461234 [18:22:33]1041 (16) - 0000000000871839 [18:22:33]1040 (4) - 228376 [18:22:33]1012 (4) - 22.10.2024 12:19 [18:22:33]1206 (1) - 0 [18:22:33]OFD Sender: Remove packet 228376 [18:22:33]ProducePacketName [18:22:33]name=ofd_packets/00228376 [18:22:33]NVStorageDeleteData [18:22:33]Write to MH i2c: 01 00 00 DF 64 43 [18:22:33]Write i2c OK [18:22:33]MH_I2C_Read... [18:22:33]Read from MH i2c: 01 [18:22:33]MH_I2C_Read... [18:22:33]Read from MH i2c: 01 07 00 [18:22:33]MH_I2C_Read... [18:22:33]Read from MH i2c: 01 07 00 DF 64 00 00 00 00 00 AF 0C 05 [18:22:33]RasterBufferAndPrint [18:22:33]line [18:22:33]line [18:22:33]line [18:22:33]line [18:22:33]line [18:22:33]written 0, free lines is 3253 [18:22:33]MH_Cut [18:22:33]Write to MH i2c: D1 01 00 E6 64 01 1C [18:22:33]Write i2c OK [18:22:33]MH_I2C_Read... [18:22:33]Read from MH i2c: D1 [18:22:33]MH_I2C_Read... [18:22:33]Read from MH i2c: D1 01 00 [18:22:33]MH_I2C_Read... [18:22:33]Read from MH i2c: D1 01 00 E6 64 00 1B [18:22:33]Write to MH i2c: 01 00 00 E7 64 4B [18:22:33]Write i2c OK [18:22:33]MH_I2C_Read... [18:22:33]OFD Sender: No OFD packet to send [18:22:34]*** Cut start [18:22:34]*** Partial cut [18:22:34]*** CUTSNS_PIN = 1 [18:22:34]*** CUTSNS_PIN = 0 [18:22:34]*** Brake cut motor [18:22:35]Read from MH i2c: 01 [18:22:35]MH_I2C_Read... [18:22:35]*** Stop cut motor [18:22:35]*** Cut end [18:22:35]Read from MH i2c: 01 07 00 [18:22:35]MH_I2C_Read... [18:22:35]Read from MH i2c: 01 07 00 E7 64 00 00 00 00 00 FF 0F 60 [18:22:35]process_action close_receipt done [18:22:35]requested_data is exist [18:22:35]produce_requested_data [18:22:35]requested_item fm.sn is exist - process it [18:22:35]wFMCommunicate request_size=4 [18:22:35]MH_SAM_APDU [18:22:35]CAPDU: 80 11 00 00 [18:22:35]Write to MH i2c: E2 08 00 E8 64 80 11 00 00 00 00 00 00 C6 [18:22:35]Write i2c OK [18:22:35]MH_I2C_Read... [18:22:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:35]Read from MH i2c: E2 [18:22:35]MH_I2C_Read... [18:22:35]Read from MH i2c: E2 17 00 [18:22:35]MH_I2C_Read... [18:22:35]Read from MH i2c: E2 17 00 E8 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1D [18:22:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:22:35]wFMCommunicate OK [18:22:35]requested_item fd.num is exist - process it [18:22:35]SAM_PROTO_GetFieldsCounters [18:22:35]wFMCommunicate request_size=4 [18:22:35]MH_SAM_APDU [18:22:35]CAPDU: 80 13 00 00 [18:22:35]Write to MH i2c: E2 08 00 E9 64 80 13 00 00 00 00 00 00 C9 [18:22:35]Write i2c OK [18:22:35]MH_I2C_Read... [18:22:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:22:35]Read from MH i2c: E2 [18:22:35]MH_I2C_Read... [18:22:35]Read from MH i2c: E2 62 00 [18:22:35]MH_I2C_Read... [18:22:35]Read from MH i2c: E2 62 00 E9 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 18 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 A1 [18:22:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 18 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:22:35]wFMCommunicate OK [18:22:35]SAM_PROTO_GetFieldsCounters done [18:22:35]requested_item shift.num is exist - process it [18:22:35]requested_item shift.opened is exist - process it [18:22:35]req_shift_opened [18:22:35]FM_GetShiftState [18:22:35]SAM_PROTO_GetShiftState [18:22:35]wFMCommunicate request_size=4 [18:22:35]MH_SAM_APDU [18:22:35]CAPDU: 80 13 01 00 [18:22:35]Write to MH i2c: E2 08 00 EA 64 80 13 01 00 00 00 00 00 CB [18:22:35]Write i2c OK [18:22:35]MH_I2C_Read... [18:22:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:35]Read from MH i2c: E2 [18:22:35]MH_I2C_Read... [18:22:35]Read from MH i2c: E2 0E 00 [18:22:35]MH_I2C_Read... [18:22:35]Read from MH i2c: E2 0E 00 EA 64 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 92 [18:22:35]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:22:35]wFMCommunicate OK [18:22:35]SAM_PROTO_GetShiftState done [18:22:35]FM_GetShiftState done [18:22:35]req_shift_opened done [18:22:35]requested_item shift.open_date is exist - process it [18:22:35]req_shift_open_date [18:22:35]req_shift_open_date done [18:22:35]produce_requested_data done [18:22:35]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228376,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [18:22:35]process_action_free close_receipt [18:22:35]json_value_free [18:22:35]json_value_free done [18:22:35]process_json_proto returns [18:22:35]Send response to host [18:22:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228376,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [18:22:35]free response buf [18:22:35]execute_script done [18:22:35]execute_script returns [18:22:35]free content buf [18:22:35]Sock 9.Close socket [18:22:35]Sock 9.Thread stoped [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:19]OFD Sender: No OFD packet to send [18:23:24]OFD Sender: No OFD packet to send [18:23:29]OFD Sender: No OFD packet to send [18:23:34]OFD Sender: No OFD packet to send [18:23:39]OFD Sender: No OFD packet to send [18:23:44]OFD Sender: No OFD packet to send [18:23:49]OFD Sender: No OFD packet to send [18:23:54]OFD Sender: No OFD packet to send [18:23:59]OFD Sender: No OFD packet to send [18:24:04]OFD Sender: No OFD packet to send [18:24:09]OFD Sender: No OFD packet to send [18:24:14]OFD Sender: No OFD packet to send [18:24:19]OFD Sender: No OFD packet to send [18:24:24]OFD Sender: No OFD packet to send [18:24:29]OFD Sender: No OFD packet to send [18:24:34]OFD Sender: No OFD packet to send [18:24:39]OFD Sender: No OFD packet to send [18:24:44]OFD Sender: No OFD packet to send [18:24:49]OFD Sender: No OFD packet to send [18:24:54]OFD Sender: No OFD packet to send [18:24:59]OFD Sender: No OFD packet to send [18:25:04]OFD Sender: No OFD packet to send [18:25:09]OFD Sender: No OFD packet to send [18:25:14]OFD Sender: No OFD packet to send [18:25:19]OFD Sender: No OFD packet to send [18:25:23]accept exits with 7 [18:25:23]New connection [18:25:23]New thread 3066994020 created [18:25:23]Thread 3067137380 joined [18:25:23]Waiting for new connection... [18:25:23] Sock 7.Parse request [18:25:23]Sock 7.Check first char [18:25:23]Sock 7.First char is OK [18:25:23]request: POST /json_proto HTTP/1.0 [18:25:23]Method: POST [18:25:23]URL: /json_proto [18:25:23]Method is POST - this is cgi request [18:25:23]url: /json_proto [18:25:23]query_string will be loaded in cgi processing [18:25:23]execute_cgi json_proto POST (null) [18:25:23]execute_cgi path=json_proto method=POST [18:25:23]POST find Content-Length [18:25:23]Host: 172.17.44.195:8080 [18:25:23]Content-Length: 749 [18:25:23]Content-Type: application/json [18:25:23] [18:25:23]POST finish read [18:25:23]Found Content-Length = 749 [18:25:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.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: Mbank", "payments": [ { "type": 1, "sum" : 700.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:23]execute_script... [18:25: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)1964925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.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: Mbank", "payments": [ { "type": 1, "sum" : 700.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:23]POST & json_proto [18:25:23]process_json_proto [18:25:23]json parsed OK: [18:25:23]protocol is kg_v1.0 [18:25:23]action value=close_receipt [18:25:23]process_action close_receipt [18:25:23]cmd_close_receipt [18:25:23]MH_GetDate [18:25:23]Write to MH i2c: F0 00 00 EB 64 3E [18:25:23]Write i2c OK [18:25:23]MH_I2C_Read... [18:25:23]Read from MH i2c: F0 [18:25:23]MH_I2C_Read... [18:25:23]Read from MH i2c: F0 09 00 [18:25:23]MH_I2C_Read... [18:25:23]Read from MH i2c: F0 09 00 EB 64 00 18 EE 17 67 82 C9 CF 66 4B [18:25:23]GetLastDocTimeStamp 1729621356 [18:25:23]current date 1729621528 [18:25:23]FM_GetShiftState [18:25:23]SAM_PROTO_GetShiftState [18:25:23]wFMCommunicate request_size=4 [18:25:23]MH_SAM_APDU [18:25:23]CAPDU: 80 13 01 00 [18:25:23]Write to MH i2c: E2 08 00 EC 64 80 13 01 00 00 00 00 00 CD [18:25:23]Write i2c OK [18:25:23]MH_I2C_Read... [18:25:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:23]Read from MH i2c: E2 [18:25:23]MH_I2C_Read... [18:25:23]Read from MH i2c: E2 0E 00 [18:25:23]MH_I2C_Read... [18:25:23]Read from MH i2c: E2 0E 00 EC 64 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 94 [18:25:23]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:25:23]wFMCommunicate OK [18:25:23]SAM_PROTO_GetShiftState done [18:25:23]FM_GetShiftState done [18:25:23]opened in 1729555538 [18:25:23]opened+sec_in_day 1729641938 [18:25:23]quantity*price = 70041 [18:25:23]sum+1 = 70043 [18:25:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.42 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.42 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 341 22.10.2024 18:25 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 228377 ФПД: 119005873302916 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182528&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228377&fm=119005873302916&tin=02508201610067®Number=0000000000091685&sum=70042 [18:25:24]StoreToDocumentArchive [18:25:24]shift 535 fd 228377 [18:25:24]save to /storage/0535/doc_00228377 [18:25:24]save last doc name /storage/0535/doc_00228377 to /storage/kkm_last_doc_name [18:25:24]save OK [18:25:24]Clear old archive folders... [18:25:24]ProcessDocumentItem done err = 0, tmpTLVsize=244 [18:25:24]tlvbuf is 008D14D0 [18:25:24]SAM_PROTO_ClearQueue [18:25:24]wFMCommunicate request_size=4 [18:25:24]MH_SAM_APDU [18:25:24]CAPDU: 80 09 00 00 [18:25:24]Write to MH i2c: E2 08 00 F9 64 80 09 00 00 00 00 00 00 CF [18:25:24]Write i2c OK [18:25:24]MH_I2C_Read... [18:25:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:24]Read from MH i2c: E2 [18:25:24]MH_I2C_Read... [18:25:24]Read from MH i2c: E2 03 00 [18:25:24]MH_I2C_Read... [18:25:24]Read from MH i2c: E2 03 00 F9 64 00 90 00 D1 [18:25:24]RAPDU: 90 00 [18:25:24]wFMCommunicate OK [18:25:24]SAM_PROTO_ClearQueue done [18:25:24]KKMCreateOFDPacket [18:25:24]OFDProtocolAddRootSTLVToBuf [18:25:24]FM_MakeSignedData [18:25:24]FM_MakeSignedData [18:25:24]SAM_PROTO_SignData [18:25:24]wFMCommunicate request_size=4 [18:25:24]MH_SAM_APDU [18:25:24]CAPDU: 80 0D 01 02 [18:25:24]Write to MH i2c: E2 08 00 FA 64 80 0D 01 02 00 00 00 00 D7 [18:25:24]Write i2c OK [18:25:24]MH_I2C_Read... [18:25:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:25:24]Read from MH i2c: E2 [18:25:24]MH_I2C_Read... [18:25:24]Read from MH i2c: E2 03 00 [18:25:24]MH_I2C_Read... [18:25:24]Read from MH i2c: E2 03 00 FA 64 00 90 00 D2 [18:25:24]RAPDU: 90 00 [18:25:24]wFMCommunicate OK [18:25:24]wFMCommunicate request_size=253 [18:25:24]MH_SAM_APDU [18:25:24]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 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 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 18 EE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 19 7C 03 00 35 04 06 00 6C 3C 36 CD ED 84 [18:25:24]Write to MH i2c: E2 00 01 FB 64 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 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 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 18 EE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 19 7C 03 00 35 04 06 00 6C 3C 36 CD ED 84 00 00 D5 [18:25:24]Write i2c OK [18:25:24]MH_I2C_Read... [18:25:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:25]Read from MH i2c: E2 [18:25:25]MH_I2C_Read... [18:25:25]Read from MH i2c: E2 03 00 [18:25:25]MH_I2C_Read... [18:25:25]Read from MH i2c: E2 03 00 FB 64 00 90 00 D3 [18:25:25]RAPDU: 90 00 [18:25:25]wFMCommunicate OK [18:25:25]wFMCommunicate request_size=4 [18:25:25]MH_SAM_APDU [18:25:25]CAPDU: 80 0D 03 02 [18:25:25]Write to MH i2c: E2 08 00 FC 64 80 0D 03 02 00 00 00 00 DB [18:25:25]Write i2c OK [18:25:25]MH_I2C_Read... [18:25:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:25:25]Read from MH i2c: E2 [18:25:25]MH_I2C_Read... [18:25:25]Read from MH i2c: E2 0B 00 [18:25:25]MH_I2C_Read... [18:25:25]Read from MH i2c: E2 0B 00 FC 64 00 A6 2C F7 88 AA BC B8 94 90 00 DF [18:25:25]RAPDU: A6 2C F7 88 AA BC B8 94 90 00 [18:25:25]wFMCommunicate OK [18:25:25]SAM_PROTO_SignData done [18:25:25]FM_MakeSignedData done [18:25:25]CreateOFDProtocolMessage [18:25:25]wFMCommunicate request_size=4 [18:25:25]MH_SAM_APDU [18:25:25]CAPDU: 80 11 00 00 [18:25:25]Write to MH i2c: E2 08 00 FD 64 80 11 00 00 00 00 00 00 DB [18:25:25]Write i2c OK [18:25:25]MH_I2C_Read... [18:25:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:25]Read from MH i2c: E2 [18:25:25]MH_I2C_Read... [18:25:25]Read from MH i2c: E2 17 00 [18:25:25]MH_I2C_Read... [18:25:25]Read from MH i2c: E2 17 00 FD 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 32 [18:25:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:25:25]wFMCommunicate OK [18:25:25]CreateOFDProtocolMessage done [18:25:25]OFDSenderStorePacket 228377 [18:25:25]StoreOFDPacket docnum=228377 [18:25:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 11 1A 00 01 2D 15 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 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 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 18 EE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 19 7C 03 00 35 04 06 00 6C 3C 36 CD ED 84 A6 2C F7 88 AA BC B8 94 [18:25:25]CheckFolder [18:25:25]dirname=/storage/ofd_packets [18:25:25]CheckFolder done [18:25:25]ProducePacketName [18:25:25]name=ofd_packets/00228377 [18:25:25]NVStorageSaveData ofd_packets/00228377 [18:25:25]File name is /storage/ofd_packets/00228377 [18:25:25]Write 294 bytes [18:25:25]NVStorageSaveData done [18:25:25]OFDSenderStorePacket done [18:25:25]KKMCreateOFDPacket done [18:25:25]NVStorageSaveData kkm_last_timestamp [18:25:25]File name is /storage/kkm_last_timestamp [18:25:25]Write 4 bytes [18:25:25]NVStorageSaveData done [18:25:25]ExternCall_PrintAddStr [18:25:25]wPrintStart [18:25:25]Write to MH i2c: 01 00 00 FE 64 62 [18:25:25]Write i2c OK [18:25:25]MH_I2C_Read... [18:25:25]Read from MH i2c: 01 [18:25:25]MH_I2C_Read... [18:25:25]Read from MH i2c: 01 07 00 [18:25:25]MH_I2C_Read... [18:25:25]Read from MH i2c: 01 07 00 FE 64 00 00 00 00 00 FF 0F 77 [18:25:25]RasterBufferAndPrint [18:25:25]line Счет N : (1)1964925 [18:25:25]line ИНН: 02508201610067 [18:25:25]line Контрольно-Кассовый Чек [18:25:25]line ПРОДАЖА [18:25:25]line ТРК (МРК, ГНК) : 42 [18:25:25]line Товар: 2710124130 [18:25:25]line SU-92 [18:25:25]line 10.240 * 68.40 [18:25:25]line = 700.42 [18:25:25]line НДС 12% НСП 1% [18:25:25]line > о реализуемом товаре [18:25:25]line ИТОГО: 700.42 [18:25:25]line НСП 1% : 6.20 [18:25:25]line НДС 12% : 74.38 [18:25:25]line Наличными: 0.00 [18:25:25]line Безнал.: 700.42 [18:25:25]line Место: АЗС № 133 "Партнер Нефть" [18:25:25]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:25:25]line СНО: Общий режим [18:25:25]line Чек 341 22.10.2024 18:25 [18:25:25]line Смена: 535 ФФД: 1.0 [18:25:25]line ЗНМ: 0300000091 [18:25:25]line РНМ: 0000000000091685 [18:25:25]line Версия ККМ: 001 [18:25:25]line Платежная система: Mbank [18:25:25]line ФМ: 0000000000871839 [18:25:25]line ФД: 228377 [18:25:25]line ФПД: 119005873302916 [18:25:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182528&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228377&fm=119005873302916&tin=02508201610067®Number=0000000000091685&sum=70042 [18:25:25]OFD Sender: Processing packet 228377 [packets to send 38, broken 37] [18:25:25]ProducePacketName [18:25:25]name=ofd_packets/00228377 [18:25:25]OFD Sender: To server: pG, [18:25:25]CommunicateWithHost lk.salyk.kg:30040 [18:25:25]ConnectInit lk.salyk.kg [18:25:25]written 0, free lines is 4095 [18:25:25]Connected sock=10 [18:25:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 11 1A 00 01 2D 15 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 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 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 18 EE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 19 7C 03 00 35 04 06 00 6C 3C 36 CD ED 84 A6 2C F7 88 AA BC B8 94 [18:25:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 1F 37 47 00 1E 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 38 37 31 38 33 39 10 04 04 00 19 7C 03 00 F4 03 04 00 10 99 17 67 B6 04 01 00 00 B7 0B 73 3A 02 C3 B5 5A [18:25:25]CommunicateWithHost err = 0 [18:25:25]CheckOFDResponse [18:25:25]1017 (14) - 77093643461234 [18:25:25]1041 (16) - 0000000000871839 [18:25:25]1040 (4) - 228377 [18:25:25]1012 (4) - 22.10.2024 12:22 [18:25:25]1206 (1) - 0 [18:25:25]OFD Sender: Remove packet 228377 [18:25:25]ProducePacketName [18:25:25]name=ofd_packets/00228377 [18:25:25]NVStorageDeleteData [18:25:25]Write to MH i2c: 01 00 00 26 65 8B [18:25:25]Write i2c OK [18:25:25]MH_I2C_Read... [18:25:25]Read from MH i2c: 01 [18:25:25]MH_I2C_Read... [18:25:25]Read from MH i2c: 01 07 00 [18:25:25]MH_I2C_Read... [18:25:25]Read from MH i2c: 01 07 00 26 65 00 00 00 00 00 DF 0C 7D [18:25:25]RasterBufferAndPrint [18:25:25]line [18:25:25]line [18:25:25]line [18:25:25]line [18:25:25]line [18:25:25]written 0, free lines is 3300 [18:25:25]MH_Cut [18:25:25]Write to MH i2c: D1 01 00 2D 65 01 64 [18:25:25]Write i2c OK [18:25:25]MH_I2C_Read... [18:25:25]Read from MH i2c: D1 [18:25:25]MH_I2C_Read... [18:25:25]Read from MH i2c: D1 01 00 [18:25:25]MH_I2C_Read... [18:25:25]Read from MH i2c: D1 01 00 2D 65 00 63 [18:25:25]Write to MH i2c: 01 00 00 2E 65 93 [18:25:25]Write i2c OK [18:25:25]MH_I2C_Read... [18:25:26]OFD Sender: No OFD packet to send [18:25:26]*** Cut start [18:25:26]*** Partial cut [18:25:26]*** CUTSNS_PIN = 1 [18:25:26]*** CUTSNS_PIN = 0 [18:25:27]*** Brake cut motor [18:25:27]Read from MH i2c: 01 [18:25:27]MH_I2C_Read... [18:25:27]*** Stop cut motor [18:25:27]*** Cut end [18:25:27]Read from MH i2c: 01 07 00 [18:25:27]MH_I2C_Read... [18:25:27]Read from MH i2c: 01 07 00 2E 65 00 00 00 00 00 FF 0F A8 [18:25:27]process_action close_receipt done [18:25:27]requested_data is exist [18:25:27]produce_requested_data [18:25:27]requested_item fm.sn is exist - process it [18:25:27]wFMCommunicate request_size=4 [18:25:27]MH_SAM_APDU [18:25:27]CAPDU: 80 11 00 00 [18:25:27]Write to MH i2c: E2 08 00 2F 65 80 11 00 00 00 00 00 00 0E [18:25:27]Write i2c OK [18:25:27]MH_I2C_Read... [18:25:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:27]Read from MH i2c: E2 [18:25:27]MH_I2C_Read... [18:25:27]Read from MH i2c: E2 17 00 [18:25:27]MH_I2C_Read... [18:25:27]Read from MH i2c: E2 17 00 2F 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 65 [18:25:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:25:27]wFMCommunicate OK [18:25:27]requested_item fd.num is exist - process it [18:25:27]SAM_PROTO_GetFieldsCounters [18:25:27]wFMCommunicate request_size=4 [18:25:27]MH_SAM_APDU [18:25:27]CAPDU: 80 13 00 00 [18:25:27]Write to MH i2c: E2 08 00 30 65 80 13 00 00 00 00 00 00 11 [18:25:27]Write i2c OK [18:25:27]MH_I2C_Read... [18:25:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:25:27]Read from MH i2c: E2 [18:25:27]MH_I2C_Read... [18:25:27]Read from MH i2c: E2 62 00 [18:25:27]MH_I2C_Read... [18:25:27]Read from MH i2c: E2 62 00 30 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 19 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 ED [18:25:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 19 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:25:27]wFMCommunicate OK [18:25:27]SAM_PROTO_GetFieldsCounters done [18:25:27]requested_item shift.num is exist - process it [18:25:27]requested_item shift.opened is exist - process it [18:25:27]req_shift_opened [18:25:27]FM_GetShiftState [18:25:27]SAM_PROTO_GetShiftState [18:25:27]wFMCommunicate request_size=4 [18:25:27]MH_SAM_APDU [18:25:27]CAPDU: 80 13 01 00 [18:25:27]Write to MH i2c: E2 08 00 31 65 80 13 01 00 00 00 00 00 13 [18:25:27]Write i2c OK [18:25:27]MH_I2C_Read... [18:25:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:27]Read from MH i2c: E2 [18:25:27]MH_I2C_Read... [18:25:27]Read from MH i2c: E2 0E 00 [18:25:27]MH_I2C_Read... [18:25:27]Read from MH i2c: E2 0E 00 31 65 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 DA [18:25:27]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:25:27]wFMCommunicate OK [18:25:27]SAM_PROTO_GetShiftState done [18:25:27]FM_GetShiftState done [18:25:27]req_shift_opened done [18:25:27]requested_item shift.open_date is exist - process it [18:25:27]req_shift_open_date [18:25:27]req_shift_open_date done [18:25:27]produce_requested_data done [18:25:27]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228377,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [18:25:27]process_action_free close_receipt [18:25:27]json_value_free [18:25:27]json_value_free done [18:25:27]process_json_proto returns [18:25:27]Send response to host [18:25:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228377,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [18:25:27]free response buf [18:25:27]execute_script done [18:25:27]execute_script returns [18:25:27]free content buf [18:25:27]Sock 7.Close socket [18:25:27]Sock 7.Thread stoped [18:25:31]OFD Sender: No OFD packet to send [18:25:36]OFD Sender: No OFD packet to send [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:30]accept exits with 9 [18:26:30]New connection [18:26:30]New thread 3067137380 created [18:26:30]Thread 3066994020 joined [18:26:30]Waiting for new connection... [18:26:30] Sock 9.Parse request [18:26:30]Sock 9.Check first char [18:26:30]Sock 9.First char is OK [18:26:30]request: POST /json_proto HTTP/1.0 [18:26:30]Method: POST [18:26:30]URL: /json_proto [18:26:30]Method is POST - this is cgi request [18:26:30]url: /json_proto [18:26:30]query_string will be loaded in cgi processing [18:26:30]execute_cgi json_proto POST (null) [18:26:30]execute_cgi path=json_proto method=POST [18:26:30]POST find Content-Length [18:26:30]Host: 172.17.44.195:8080 [18:26:30]Content-Length: 664 [18:26:30]Content-Type: application/json [18:26:30] [18:26:30]POST finish read [18:26:30]Found Content-Length = 664 [18:26:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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:26:30]execute_script... [18:26: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)1964927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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:26:30]POST & json_proto [18:26:30]process_json_proto [18:26:30]json parsed OK: [18:26:30]protocol is kg_v1.0 [18:26:30]action value=close_receipt [18:26:30]process_action close_receipt [18:26:30]cmd_close_receipt [18:26:30]MH_GetDate [18:26:30]Write to MH i2c: F0 00 00 32 65 86 [18:26:30]Write i2c OK [18:26:30]MH_I2C_Read... [18:26:30]Read from MH i2c: F0 [18:26:30]MH_I2C_Read... [18:26:30]Read from MH i2c: F0 09 00 [18:26:30]MH_I2C_Read... [18:26:30]Read from MH i2c: F0 09 00 32 65 00 5B EE 17 67 82 C9 CF 66 D6 [18:26:30]GetLastDocTimeStamp 1729621528 [18:26:30]current date 1729621595 [18:26:30]FM_GetShiftState [18:26:30]SAM_PROTO_GetShiftState [18:26:30]wFMCommunicate request_size=4 [18:26:30]MH_SAM_APDU [18:26:30]CAPDU: 80 13 01 00 [18:26:30]Write to MH i2c: E2 08 00 33 65 80 13 01 00 00 00 00 00 15 [18:26:30]Write i2c OK [18:26:30]MH_I2C_Read... [18:26:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:30]Read from MH i2c: E2 [18:26:30]MH_I2C_Read... [18:26:30]Read from MH i2c: E2 0E 00 [18:26:30]MH_I2C_Read... [18:26:30]Read from MH i2c: E2 0E 00 33 65 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 DC [18:26:30]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:26:30]wFMCommunicate OK [18:26:30]SAM_PROTO_GetShiftState done [18:26:30]FM_GetShiftState done [18:26:30]opened in 1729555538 [18:26:30]opened+sec_in_day 1729641938 [18:26:30]quantity*price = 100000 [18:26:30]sum+1 = 100002 [18:26:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 342 22.10.2024 18:26 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228378 ФПД: 133677498320351 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182635&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228378&fm=133677498320351&tin=02508201610067®Number=0000000000091685&sum=100000 [18:26:31]StoreToDocumentArchive [18:26:31]shift 535 fd 228378 [18:26:31]save to /storage/0535/doc_00228378 [18:26:31]save last doc name /storage/0535/doc_00228378 to /storage/kkm_last_doc_name [18:26:31]save OK [18:26:31]Clear old archive folders... [18:26:31]ProcessDocumentItem done err = 0, tmpTLVsize=244 [18:26:31]tlvbuf is 00A8B350 [18:26:31]SAM_PROTO_ClearQueue [18:26:31]wFMCommunicate request_size=4 [18:26:31]MH_SAM_APDU [18:26:31]CAPDU: 80 09 00 00 [18:26:31]Write to MH i2c: E2 08 00 40 65 80 09 00 00 00 00 00 00 17 [18:26:31]Write i2c OK [18:26:31]MH_I2C_Read... [18:26:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:26:31]Read from MH i2c: E2 [18:26:31]MH_I2C_Read... [18:26:31]Read from MH i2c: E2 03 00 [18:26:31]MH_I2C_Read... [18:26:31]Read from MH i2c: E2 03 00 40 65 00 90 00 19 [18:26:31]RAPDU: 90 00 [18:26:31]wFMCommunicate OK [18:26:31]SAM_PROTO_ClearQueue done [18:26:31]KKMCreateOFDPacket [18:26:31]OFDProtocolAddRootSTLVToBuf [18:26:31]FM_MakeSignedData [18:26:31]FM_MakeSignedData [18:26:31]SAM_PROTO_SignData [18:26:31]wFMCommunicate request_size=4 [18:26:31]MH_SAM_APDU [18:26:31]CAPDU: 80 0D 01 02 [18:26:31]Write to MH i2c: E2 08 00 41 65 80 0D 01 02 00 00 00 00 1F [18:26:31]Write i2c OK [18:26:31]MH_I2C_Read... [18:26:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:26:31]Read from MH i2c: E2 [18:26:31]MH_I2C_Read... [18:26:31]Read from MH i2c: E2 03 00 [18:26:31]MH_I2C_Read... [18:26:31]Read from MH i2c: E2 03 00 41 65 00 90 00 1A [18:26:31]RAPDU: 90 00 [18:26:31]wFMCommunicate OK [18:26:31]wFMCommunicate request_size=253 [18:26:31]MH_SAM_APDU [18:26:31]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 5B EE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1A 7C 03 00 35 04 06 00 79 94 37 CD 45 DF [18:26:31]Write to MH i2c: E2 00 01 42 65 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 5B EE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1A 7C 03 00 35 04 06 00 79 94 37 CD 45 DF 00 00 9E [18:26:31]Write i2c OK [18:26:31]MH_I2C_Read... [18:26:31]OFD Sender: No OFD packet to send [18:26:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:31]Read from MH i2c: E2 [18:26:31]MH_I2C_Read... [18:26:31]Read from MH i2c: E2 03 00 [18:26:31]MH_I2C_Read... [18:26:31]Read from MH i2c: E2 03 00 42 65 00 90 00 1B [18:26:31]RAPDU: 90 00 [18:26:31]wFMCommunicate OK [18:26:31]wFMCommunicate request_size=4 [18:26:31]MH_SAM_APDU [18:26:31]CAPDU: 80 0D 03 02 [18:26:31]Write to MH i2c: E2 08 00 43 65 80 0D 03 02 00 00 00 00 23 [18:26:31]Write i2c OK [18:26:31]MH_I2C_Read... [18:26:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:26:31]Read from MH i2c: E2 [18:26:31]MH_I2C_Read... [18:26:31]Read from MH i2c: E2 0B 00 [18:26:31]MH_I2C_Read... [18:26:31]Read from MH i2c: E2 0B 00 43 65 00 05 CD AC FB 5B 33 77 C0 90 00 62 [18:26:31]RAPDU: 05 CD AC FB 5B 33 77 C0 90 00 [18:26:31]wFMCommunicate OK [18:26:31]SAM_PROTO_SignData done [18:26:31]FM_MakeSignedData done [18:26:31]CreateOFDProtocolMessage [18:26:31]wFMCommunicate request_size=4 [18:26:31]MH_SAM_APDU [18:26:31]CAPDU: 80 11 00 00 [18:26:31]Write to MH i2c: E2 08 00 44 65 80 11 00 00 00 00 00 00 23 [18:26:31]Write i2c OK [18:26:31]MH_I2C_Read... [18:26:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:31]Read from MH i2c: E2 [18:26:31]MH_I2C_Read... [18:26:31]Read from MH i2c: E2 17 00 [18:26:31]MH_I2C_Read... [18:26:31]Read from MH i2c: E2 17 00 44 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7A [18:26:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:26:31]wFMCommunicate OK [18:26:31]CreateOFDProtocolMessage done [18:26:31]OFDSenderStorePacket 228378 [18:26:31]StoreOFDPacket docnum=228378 [18:26:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 C6 BF 00 01 14 39 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 5B EE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1A 7C 03 00 35 04 06 00 79 94 37 CD 45 DF 05 CD AC FB 5B 33 77 C0 [18:26:31]CheckFolder [18:26:31]dirname=/storage/ofd_packets [18:26:31]CheckFolder done [18:26:31]ProducePacketName [18:26:31]name=ofd_packets/00228378 [18:26:31]NVStorageSaveData ofd_packets/00228378 [18:26:31]File name is /storage/ofd_packets/00228378 [18:26:31]Write 294 bytes [18:26:31]NVStorageSaveData done [18:26:31]OFDSenderStorePacket done [18:26:31]KKMCreateOFDPacket done [18:26:31]NVStorageSaveData kkm_last_timestamp [18:26:31]File name is /storage/kkm_last_timestamp [18:26:31]Write 4 bytes [18:26:31]NVStorageSaveData done [18:26:31]ExternCall_PrintAddStr [18:26:31]wPrintStart [18:26:31]Write to MH i2c: 01 00 00 45 65 AA [18:26:31]Write i2c OK [18:26:31]MH_I2C_Read... [18:26:31]Read from MH i2c: 01 [18:26:31]MH_I2C_Read... [18:26:31]Read from MH i2c: 01 07 00 [18:26:31]MH_I2C_Read... [18:26:31]Read from MH i2c: 01 07 00 45 65 00 00 00 00 00 FF 0F BF [18:26:31]RasterBufferAndPrint [18:26:31]line Счет N : (1)1964927 [18:26:31]line ИНН: 02508201610067 [18:26:31]line Контрольно-Кассовый Чек [18:26:31]line ПРОДАЖА [18:26:31]line ТРК (МРК, ГНК) : 62 [18:26:31]line Товар: 2710124130 [18:26:31]line SU-92 [18:26:31]line 14.620 * 68.40 [18:26:31]line = 1000.01 [18:26:31]line НДС 12% НСП 1% [18:26:31]line > о реализуемом товаре [18:26:31]line ОКРУГЛЕНИЕ: -0.01 [18:26:31]line ИТОГО: 1000.00 [18:26:31]line Внесено: 1000.00 [18:26:31]line СДАЧА: 0.00 [18:26:31]line НСП 1% : 8.85 [18:26:31]line НДС 12% : 106.20 [18:26:31]line Наличными: 1000.00 [18:26:31]line Безнал.: 0.00 [18:26:31]line Место: АЗС № 133 "Партнер Нефть" [18:26:31]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:26:31]line СНО: Общий режим [18:26:31]line Чек 342 22.10.2024 18:26 [18:26:31]line Смена: 535 ФФД: 1.0 [18:26:31]line ЗНМ: 0300000091 [18:26:31]line РНМ: 0000000000091685 [18:26:31]line Версия ККМ: 001 [18:26:31]line ФМ: 0000000000871839 [18:26:31]line ФД: 228378 [18:26:31]line ФПД: 133677498320351 [18:26:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182635&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228378&fm=133677498320351&tin=02508201610067®Number=0000000000091685&sum=100000 [18:26:32]OFD Sender: Processing packet 228378 [packets to send 38, broken 37] [18:26:32]ProducePacketName [18:26:32]name=ofd_packets/00228378 [18:26:32]OFD Sender: To server: pG, [18:26:32]CommunicateWithHost lk.salyk.kg:30040 [18:26:32]ConnectInit lk.salyk.kg [18:26:32]written 0, free lines is 4095 [18:26:32]Connected sock=10 [18:26:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 C6 BF 00 01 14 39 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 5B EE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1A 7C 03 00 35 04 06 00 79 94 37 CD 45 DF 05 CD AC FB 5B 33 77 C0 [18:26:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 5E 13 47 00 4D FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1A 7C 03 00 F4 03 04 00 52 99 17 67 B6 04 01 00 00 C0 62 16 6F 55 2B 41 6B [18:26:32]CommunicateWithHost err = 0 [18:26:32]CheckOFDResponse [18:26:32]1017 (14) - 77093643461234 [18:26:32]1041 (16) - 0000000000871839 [18:26:32]1040 (4) - 228378 [18:26:32]1012 (4) - 22.10.2024 12:23 [18:26:32]1206 (1) - 0 [18:26:32]OFD Sender: Remove packet 228378 [18:26:32]ProducePacketName [18:26:32]name=ofd_packets/00228378 [18:26:32]NVStorageDeleteData [18:26:32]Write to MH i2c: 01 00 00 6F 65 D4 [18:26:32]Write i2c OK [18:26:32]MH_I2C_Read... [18:26:32]Read from MH i2c: 01 [18:26:32]MH_I2C_Read... [18:26:32]Read from MH i2c: 01 07 00 [18:26:32]MH_I2C_Read... [18:26:32]Read from MH i2c: 01 07 00 6F 65 00 00 00 00 00 B2 0C 99 [18:26:32]RasterBufferAndPrint [18:26:32]line [18:26:32]line [18:26:32]line [18:26:32]line [18:26:32]line [18:26:32]written 0, free lines is 3254 [18:26:32]MH_Cut [18:26:32]Write to MH i2c: D1 01 00 76 65 01 AD [18:26:32]Write i2c OK [18:26:32]MH_I2C_Read... [18:26:32]Read from MH i2c: D1 [18:26:32]MH_I2C_Read... [18:26:32]Read from MH i2c: D1 01 00 [18:26:32]MH_I2C_Read... [18:26:32]Read from MH i2c: D1 01 00 76 65 00 AC [18:26:32]Write to MH i2c: 01 00 00 77 65 DC [18:26:32]Write i2c OK [18:26:32]MH_I2C_Read... [18:26:32]OFD Sender: No OFD packet to send [18:26:33]*** Cut start [18:26:33]*** Partial cut [18:26:33]*** CUTSNS_PIN = 1 [18:26:33]*** CUTSNS_PIN = 0 [18:26:33]*** Brake cut motor [18:26:34]Read from MH i2c: 01 [18:26:34]MH_I2C_Read... [18:26:34]*** Stop cut motor [18:26:34]*** Cut end [18:26:34]Read from MH i2c: 01 07 00 [18:26:34]MH_I2C_Read... [18:26:34]Read from MH i2c: 01 07 00 77 65 00 00 00 00 00 FF 0F F1 [18:26:34]process_action close_receipt done [18:26:34]requested_data is exist [18:26:34]produce_requested_data [18:26:34]requested_item fm.sn is exist - process it [18:26:34]wFMCommunicate request_size=4 [18:26:34]MH_SAM_APDU [18:26:34]CAPDU: 80 11 00 00 [18:26:34]Write to MH i2c: E2 08 00 78 65 80 11 00 00 00 00 00 00 57 [18:26:34]Write i2c OK [18:26:34]MH_I2C_Read... [18:26:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:34]Read from MH i2c: E2 [18:26:34]MH_I2C_Read... [18:26:34]Read from MH i2c: E2 17 00 [18:26:34]MH_I2C_Read... [18:26:34]Read from MH i2c: E2 17 00 78 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AE [18:26:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:26:34]wFMCommunicate OK [18:26:34]requested_item fd.num is exist - process it [18:26:34]SAM_PROTO_GetFieldsCounters [18:26:34]wFMCommunicate request_size=4 [18:26:34]MH_SAM_APDU [18:26:34]CAPDU: 80 13 00 00 [18:26:34]Write to MH i2c: E2 08 00 79 65 80 13 00 00 00 00 00 00 5A [18:26:34]Write i2c OK [18:26:34]MH_I2C_Read... [18:26:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:26:34]Read from MH i2c: E2 [18:26:34]MH_I2C_Read... [18:26:34]Read from MH i2c: E2 62 00 [18:26:34]MH_I2C_Read... [18:26:34]Read from MH i2c: E2 62 00 79 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1A 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 3A [18:26:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1A 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:26:34]wFMCommunicate OK [18:26:34]SAM_PROTO_GetFieldsCounters done [18:26:34]requested_item shift.num is exist - process it [18:26:34]requested_item shift.opened is exist - process it [18:26:34]req_shift_opened [18:26:34]FM_GetShiftState [18:26:34]SAM_PROTO_GetShiftState [18:26:34]wFMCommunicate request_size=4 [18:26:34]MH_SAM_APDU [18:26:34]CAPDU: 80 13 01 00 [18:26:34]Write to MH i2c: E2 08 00 7A 65 80 13 01 00 00 00 00 00 5C [18:26:34]Write i2c OK [18:26:34]MH_I2C_Read... [18:26:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:34]Read from MH i2c: E2 [18:26:34]MH_I2C_Read... [18:26:34]Read from MH i2c: E2 0E 00 [18:26:34]MH_I2C_Read... [18:26:34]Read from MH i2c: E2 0E 00 7A 65 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 23 [18:26:34]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:26:34]wFMCommunicate OK [18:26:34]SAM_PROTO_GetShiftState done [18:26:34]FM_GetShiftState done [18:26:34]req_shift_opened done [18:26:34]requested_item shift.open_date is exist - process it [18:26:34]req_shift_open_date [18:26:34]req_shift_open_date done [18:26:34]produce_requested_data done [18:26:34]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228378,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [18:26:34]process_action_free close_receipt [18:26:34]json_value_free [18:26:34]json_value_free done [18:26:34]process_json_proto returns [18:26:34]Send response to host [18:26:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228378,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [18:26:34]free response buf [18:26:34]execute_script done [18:26:34]execute_script returns [18:26:34]free content buf [18:26:34]Sock 9.Close socket [18:26:34]Sock 9.Thread stoped [18:26:37]OFD Sender: No OFD packet to send [18:26:39]accept exits with 7 [18:26:39]New connection [18:26:39]New thread 3066994020 created [18:26:39]Thread 3067137380 joined [18:26:39]Waiting for new connection... [18:26:39] Sock 7.Parse request [18:26:39]Sock 7.Check first char [18:26:39]Sock 7.First char is OK [18:26:39]request: POST /json_proto HTTP/1.0 [18:26:39]Method: POST [18:26:39]URL: /json_proto [18:26:39]Method is POST - this is cgi request [18:26:39]url: /json_proto [18:26:39]query_string will be loaded in cgi processing [18:26:39]execute_cgi json_proto POST (null) [18:26:39]execute_cgi path=json_proto method=POST [18:26:39]POST find Content-Length [18:26:39]Host: 172.17.44.195:8080 [18:26:39]Content-Length: 801 [18:26:39]Content-Type: application/json [18:26:39] [18:26:39]POST finish read [18:26:39]Found Content-Length = 801 [18:26:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964926", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4194348", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:39]execute_script... [18:26: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)1964926", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4194348", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:39]POST & json_proto [18:26:39]process_json_proto [18:26:39]json parsed OK: [18:26:39]protocol is kg_v1.0 [18:26:39]action value=close_receipt [18:26:39]process_action close_receipt [18:26:39]cmd_close_receipt [18:26:39]MH_GetDate [18:26:39]Write to MH i2c: F0 00 00 7B 65 CF [18:26:39]Write i2c OK [18:26:39]MH_I2C_Read... [18:26:39]Read from MH i2c: F0 [18:26:39]MH_I2C_Read... [18:26:39]Read from MH i2c: F0 09 00 [18:26:39]MH_I2C_Read... [18:26:39]Read from MH i2c: F0 09 00 7B 65 00 65 EE 17 67 82 C9 CF 66 29 [18:26:39]GetLastDocTimeStamp 1729621595 [18:26:39]current date 1729621605 [18:26:39]FM_GetShiftState [18:26:39]SAM_PROTO_GetShiftState [18:26:39]wFMCommunicate request_size=4 [18:26:39]MH_SAM_APDU [18:26:39]CAPDU: 80 13 01 00 [18:26:39]Write to MH i2c: E2 08 00 7C 65 80 13 01 00 00 00 00 00 5E [18:26:39]Write i2c OK [18:26:39]MH_I2C_Read... [18:26:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:39]Read from MH i2c: E2 [18:26:39]MH_I2C_Read... [18:26:39]Read from MH i2c: E2 0E 00 [18:26:39]MH_I2C_Read... [18:26:39]Read from MH i2c: E2 0E 00 7C 65 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 25 [18:26:39]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:26:39]wFMCommunicate OK [18:26:39]SAM_PROTO_GetShiftState done [18:26:39]FM_GetShiftState done [18:26:39]opened in 1729555538 [18:26:39]opened+sec_in_day 1729641938 [18:26:39]quantity*price = 0 [18:26:39]sum+1 = 1 [18:26:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 343 22.10.2024 18:26 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливные Талоны 4194348 ФМ: 0000000000871839 ФД: 228379 ФПД: 43474188618475 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182645&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228379&fm=43474188618475&tin=02508201610067®Number=0000000000091685&sum=0 [18:26:40]StoreToDocumentArchive [18:26:40]shift 535 fd 228379 [18:26:40]save to /storage/0535/doc_00228379 [18:26:40]save last doc name /storage/0535/doc_00228379 to /storage/kkm_last_doc_name [18:26:40]save OK [18:26:40]Clear old archive folders... [18:26:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:26:40]tlvbuf is 009F5260 [18:26:40]SAM_PROTO_ClearQueue [18:26:40]wFMCommunicate request_size=4 [18:26:40]MH_SAM_APDU [18:26:40]CAPDU: 80 09 00 00 [18:26:40]Write to MH i2c: E2 08 00 89 65 80 09 00 00 00 00 00 00 60 [18:26:40]Write i2c OK [18:26:40]MH_I2C_Read... [18:26:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:26:40]Read from MH i2c: E2 [18:26:40]MH_I2C_Read... [18:26:40]Read from MH i2c: E2 03 00 [18:26:40]MH_I2C_Read... [18:26:40]Read from MH i2c: E2 03 00 89 65 00 90 00 62 [18:26:40]RAPDU: 90 00 [18:26:40]wFMCommunicate OK [18:26:40]SAM_PROTO_ClearQueue done [18:26:40]KKMCreateOFDPacket [18:26:40]OFDProtocolAddRootSTLVToBuf [18:26:40]FM_MakeSignedData [18:26:40]FM_MakeSignedData [18:26:40]SAM_PROTO_SignData [18:26:40]wFMCommunicate request_size=4 [18:26:40]MH_SAM_APDU [18:26:40]CAPDU: 80 0D 01 02 [18:26:40]Write to MH i2c: E2 08 00 8A 65 80 0D 01 02 00 00 00 00 68 [18:26:40]Write i2c OK [18:26:40]MH_I2C_Read... [18:26:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:26:40]Read from MH i2c: E2 [18:26:40]MH_I2C_Read... [18:26:40]Read from MH i2c: E2 03 00 [18:26:40]MH_I2C_Read... [18:26:40]Read from MH i2c: E2 03 00 8A 65 00 90 00 63 [18:26:40]RAPDU: 90 00 [18:26:40]wFMCommunicate OK [18:26:40]wFMCommunicate request_size=255 [18:26:40]MH_SAM_APDU [18:26: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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 65 EE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1B 7C 03 00 35 04 06 00 27 [18:26:40]Write to MH i2c: E2 02 01 8B 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 65 EE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1B 7C 03 00 35 04 06 00 27 00 00 EB [18:26:41]Write i2c OK [18:26:41]MH_I2C_Read... [18:26:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:41]Read from MH i2c: E2 [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: E2 03 00 [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: E2 03 00 8B 65 00 90 00 64 [18:26:41]RAPDU: 90 00 [18:26:41]wFMCommunicate OK [18:26:41]wFMCommunicate request_size=10 [18:26:41]MH_SAM_APDU [18:26:41]CAPDU: 80 0D 02 02 05 8A 1F 91 CA EB [18:26:41]Write to MH i2c: E2 0D 00 8C 65 80 0D 02 02 05 00 8A 1F 91 CA EB 00 00 64 [18:26:41]Write i2c OK [18:26:41]MH_I2C_Read... [18:26:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:41]Read from MH i2c: E2 [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: E2 03 00 [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: E2 03 00 8C 65 00 90 00 65 [18:26:41]RAPDU: 90 00 [18:26:41]wFMCommunicate OK [18:26:41]wFMCommunicate request_size=4 [18:26:41]MH_SAM_APDU [18:26:41]CAPDU: 80 0D 03 02 [18:26:41]Write to MH i2c: E2 08 00 8D 65 80 0D 03 02 00 00 00 00 6D [18:26:41]Write i2c OK [18:26:41]MH_I2C_Read... [18:26:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:26:41]Read from MH i2c: E2 [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: E2 0B 00 [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: E2 0B 00 8D 65 00 99 EF F1 75 59 35 FC DA 90 00 C0 [18:26:41]RAPDU: 99 EF F1 75 59 35 FC DA 90 00 [18:26:41]wFMCommunicate OK [18:26:41]SAM_PROTO_SignData done [18:26:41]FM_MakeSignedData done [18:26:41]CreateOFDProtocolMessage [18:26:41]wFMCommunicate request_size=4 [18:26:41]MH_SAM_APDU [18:26:41]CAPDU: 80 11 00 00 [18:26:41]Write to MH i2c: E2 08 00 8E 65 80 11 00 00 00 00 00 00 6D [18:26:41]Write i2c OK [18:26:41]MH_I2C_Read... [18:26:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:41]Read from MH i2c: E2 [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: E2 17 00 [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: E2 17 00 8E 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C4 [18:26:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:26:41]wFMCommunicate OK [18:26:41]CreateOFDProtocolMessage done [18:26:41]OFDSenderStorePacket 228379 [18:26:41]StoreOFDPacket docnum=228379 [18:26:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D5 AE 07 01 E3 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 65 EE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1B 7C 03 00 35 04 06 00 27 8A 1F 91 CA EB 99 EF F1 75 59 35 FC DA [18:26:41]CheckFolder [18:26:41]dirname=/storage/ofd_packets [18:26:41]CheckFolder done [18:26:41]ProducePacketName [18:26:41]name=ofd_packets/00228379 [18:26:41]NVStorageSaveData ofd_packets/00228379 [18:26:41]File name is /storage/ofd_packets/00228379 [18:26:41]Write 301 bytes [18:26:41]NVStorageSaveData done [18:26:41]OFDSenderStorePacket done [18:26:41]KKMCreateOFDPacket done [18:26:41]NVStorageSaveData kkm_last_timestamp [18:26:41]File name is /storage/kkm_last_timestamp [18:26:41]Write 4 bytes [18:26:41]NVStorageSaveData done [18:26:41]ExternCall_PrintAddStr [18:26:41]wPrintStart [18:26:41]Write to MH i2c: 01 00 00 8F 65 F4 [18:26:41]Write i2c OK [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: 01 [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: 01 07 00 [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: 01 07 00 8F 65 00 00 00 00 00 FF 0F 09 [18:26:41]RasterBufferAndPrint [18:26:41]line Счет N : (1)1964926 [18:26:41]line ИНН: 02508201610067 [18:26:41]line Контрольно-Кассовый Чек [18:26:41]line ПРОДАЖА [18:26:41]line ТРК (МРК, ГНК) : 53 [18:26:41]line Товар: 2710124130 [18:26:41]line Аи-92-К-5 [18:26:41]line 20.000 * 0.00 [18:26:41]line = 0.00 [18:26:41]line НДС 12% НСП 1% [18:26:41]line > о реализуемом товаре [18:26:41]line ИТОГО: 0.00 [18:26:41]line НСП 1% : 0.00 [18:26:41]line НДС 12% : 0.00 [18:26:41]line Наличными: 0.00 [18:26:41]line Безнал.: 0.00 [18:26:41]line Место: АЗС № 133 "Партнер Нефть" [18:26:41]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:26:41]line СНО: Общий режим [18:26:41]line Чек 343 22.10.2024 18:26 [18:26:41]line Смена: 535 ФФД: 1.0 [18:26:41]line ЗНМ: 0300000091 [18:26:41]line РНМ: 0000000000091685 [18:26:41]line Версия ККМ: 001 [18:26:41]line Талоны: Топливные Талоны [18:26:41]line 4194348 [18:26:41]line ФМ: 0000000000871839 [18:26:41]line ФД: 228379 [18:26:41]line ФПД: 43474188618475 [18:26:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182645&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228379&fm=43474188618475&tin=02508201610067®Number=0000000000091685&sum=0 [18:26:41]written 0, free lines is 4095 [18:26:41]OFD Sender: Processing packet 228379 [packets to send 38, broken 37] [18:26:41]ProducePacketName [18:26:41]name=ofd_packets/00228379 [18:26:41]OFD Sender: To server: pG, [18:26:41]CommunicateWithHost lk.salyk.kg:30040 [18:26:41]ConnectInit lk.salyk.kg [18:26:41]Connected sock=10 [18:26:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D5 AE 07 01 E3 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 65 EE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1B 7C 03 00 35 04 06 00 27 8A 1F 91 CA EB 99 EF F1 75 59 35 FC DA [18:26:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 BD 30 47 00 E2 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1B 7C 03 00 F4 03 04 00 5C 99 17 67 B6 04 01 00 00 F6 75 90 E5 3D F7 FF 92 [18:26:41]CommunicateWithHost err = 0 [18:26:41]CheckOFDResponse [18:26:41]1017 (14) - 77093643461234 [18:26:41]1041 (16) - 0000000000871839 [18:26:41]1040 (4) - 228379 [18:26:41]1012 (4) - 22.10.2024 12:23 [18:26:41]1206 (1) - 0 [18:26:41]OFD Sender: Remove packet 228379 [18:26:41]ProducePacketName [18:26:41]name=ofd_packets/00228379 [18:26:41]NVStorageDeleteData [18:26:41]Write to MH i2c: 01 00 00 B8 65 1D [18:26:41]Write i2c OK [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: 01 [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: 01 07 00 [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: 01 07 00 B8 65 00 00 00 00 00 CB 0C FB [18:26:41]RasterBufferAndPrint [18:26:41]line [18:26:41]line [18:26:41]line [18:26:41]line [18:26:41]line [18:26:41]written 0, free lines is 3283 [18:26:41]MH_Cut [18:26:41]Write to MH i2c: D1 01 00 BF 65 01 F6 [18:26:41]Write i2c OK [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: D1 [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: D1 01 00 [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: D1 01 00 BF 65 00 F5 [18:26:41]Write to MH i2c: 01 00 00 C0 65 25 [18:26:41]Write i2c OK [18:26:41]MH_I2C_Read... [18:26:42]OFD Sender: No OFD packet to send [18:26:42]*** Cut start [18:26:42]*** Partial cut [18:26:42]*** CUTSNS_PIN = 1 [18:26:42]*** CUTSNS_PIN = 0 [18:26:43]*** Brake cut motor [18:26:43]Read from MH i2c: 01 [18:26:43]MH_I2C_Read... [18:26:43]*** Stop cut motor [18:26:43]*** Cut end [18:26:43]Read from MH i2c: 01 07 00 [18:26:43]MH_I2C_Read... [18:26:43]Read from MH i2c: 01 07 00 C0 65 00 00 00 00 00 FF 0F 3A [18:26:43]process_action close_receipt done [18:26:43]requested_data is exist [18:26:43]produce_requested_data [18:26:43]requested_item fm.sn is exist - process it [18:26:43]wFMCommunicate request_size=4 [18:26:43]MH_SAM_APDU [18:26:43]CAPDU: 80 11 00 00 [18:26:43]Write to MH i2c: E2 08 00 C1 65 80 11 00 00 00 00 00 00 A0 [18:26:43]Write i2c OK [18:26:43]MH_I2C_Read... [18:26:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:43]Read from MH i2c: E2 [18:26:43]MH_I2C_Read... [18:26:43]Read from MH i2c: E2 17 00 [18:26:43]MH_I2C_Read... [18:26:43]Read from MH i2c: E2 17 00 C1 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F7 [18:26:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:26:43]wFMCommunicate OK [18:26:43]requested_item fd.num is exist - process it [18:26:43]SAM_PROTO_GetFieldsCounters [18:26:43]wFMCommunicate request_size=4 [18:26:43]MH_SAM_APDU [18:26:43]CAPDU: 80 13 00 00 [18:26:43]Write to MH i2c: E2 08 00 C2 65 80 13 00 00 00 00 00 00 A3 [18:26:43]Write i2c OK [18:26:43]MH_I2C_Read... [18:26:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:26:43]Read from MH i2c: E2 [18:26:43]MH_I2C_Read... [18:26:43]Read from MH i2c: E2 62 00 [18:26:43]MH_I2C_Read... [18:26:43]Read from MH i2c: E2 62 00 C2 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1B 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 87 [18:26:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1B 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:26:43]wFMCommunicate OK [18:26:43]SAM_PROTO_GetFieldsCounters done [18:26:43]requested_item shift.num is exist - process it [18:26:43]requested_item shift.opened is exist - process it [18:26:43]req_shift_opened [18:26:43]FM_GetShiftState [18:26:43]SAM_PROTO_GetShiftState [18:26:43]wFMCommunicate request_size=4 [18:26:43]MH_SAM_APDU [18:26:43]CAPDU: 80 13 01 00 [18:26:43]Write to MH i2c: E2 08 00 C3 65 80 13 01 00 00 00 00 00 A5 [18:26:43]Write i2c OK [18:26:43]MH_I2C_Read... [18:26:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:43]Read from MH i2c: E2 [18:26:43]MH_I2C_Read... [18:26:43]Read from MH i2c: E2 0E 00 [18:26:43]MH_I2C_Read... [18:26:43]Read from MH i2c: E2 0E 00 C3 65 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 6C [18:26:43]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:26:43]wFMCommunicate OK [18:26:43]SAM_PROTO_GetShiftState done [18:26:43]FM_GetShiftState done [18:26:43]req_shift_opened done [18:26:43]requested_item shift.open_date is exist - process it [18:26:43]req_shift_open_date [18:26:43]req_shift_open_date done [18:26:43]produce_requested_data done [18:26:43]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228379,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [18:26:43]process_action_free close_receipt [18:26:43]json_value_free [18:26:43]json_value_free done [18:26:43]process_json_proto returns [18:26:43]Send response to host [18:26:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228379,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [18:26:43]free response buf [18:26:43]execute_script done [18:26:43]execute_script returns [18:26:43]free content buf [18:26:43]Sock 7.Close socket [18:26:43]Sock 7.Thread stoped [18:26:47]OFD Sender: No OFD packet to send [18:26:52]OFD Sender: No OFD packet to send [18:26:57]OFD Sender: No OFD packet to send [18:27:02]OFD Sender: No OFD packet to send [18:27:07]OFD Sender: No OFD packet to send [18:27:12]OFD Sender: No OFD packet to send [18:27:17]OFD Sender: No OFD packet to send [18:27:22]OFD Sender: No OFD packet to send [18:27:26]accept exits with 9 [18:27:26]New connection [18:27:26]New thread 3067137380 created [18:27:26]Thread 3066994020 joined [18:27:26]Waiting for new connection... [18:27:26] Sock 9.Parse request [18:27:26]Sock 9.Check first char [18:27:26]Sock 9.First char is OK [18:27:26]request: POST /json_proto HTTP/1.0 [18:27:26]Method: POST [18:27:26]URL: /json_proto [18:27:26]Method is POST - this is cgi request [18:27:26]url: /json_proto [18:27:26]query_string will be loaded in cgi processing [18:27:26]execute_cgi json_proto POST (null) [18:27:26]execute_cgi path=json_proto method=POST [18:27:26]POST find Content-Length [18:27:26]Host: 172.17.44.195:8080 [18:27:26]Content-Length: 675 [18:27:26]Content-Type: application/json [18:27:26] [18:27:26]POST finish read [18:27:26]Found Content-Length = 675 [18:27:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964928", "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" : 76.20, "quantity" : 9.190, "sum" : 700.28, "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:27:26]execute_script... [18:27:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964928", "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" : 76.20, "quantity" : 9.190, "sum" : 700.28, "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:27:26]POST & json_proto [18:27:26]process_json_proto [18:27:26]json parsed OK: [18:27:26]protocol is kg_v1.0 [18:27:26]action value=close_receipt [18:27:26]process_action close_receipt [18:27:26]cmd_close_receipt [18:27:26]MH_GetDate [18:27:26]Write to MH i2c: F0 00 00 C4 65 18 [18:27:26]Write i2c OK [18:27:26]MH_I2C_Read... [18:27:26]Read from MH i2c: F0 [18:27:26]MH_I2C_Read... [18:27:26]Read from MH i2c: F0 09 00 [18:27:26]MH_I2C_Read... [18:27:26]Read from MH i2c: F0 09 00 C4 65 00 93 EE 17 67 82 C9 CF 66 A0 [18:27:26]GetLastDocTimeStamp 1729621605 [18:27:26]current date 1729621651 [18:27:26]FM_GetShiftState [18:27:26]SAM_PROTO_GetShiftState [18:27:26]wFMCommunicate request_size=4 [18:27:26]MH_SAM_APDU [18:27:26]CAPDU: 80 13 01 00 [18:27:26]Write to MH i2c: E2 08 00 C5 65 80 13 01 00 00 00 00 00 A7 [18:27:26]Write i2c OK [18:27:26]MH_I2C_Read... [18:27:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:26]Read from MH i2c: E2 [18:27:26]MH_I2C_Read... [18:27:26]Read from MH i2c: E2 0E 00 [18:27:26]MH_I2C_Read... [18:27:26]Read from MH i2c: E2 0E 00 C5 65 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 6E [18:27:26]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:27:26]wFMCommunicate OK [18:27:26]SAM_PROTO_GetShiftState done [18:27:26]FM_GetShiftState done [18:27:26]opened in 1729555538 [18:27:26]opened+sec_in_day 1729641938 [18:27:26]quantity*price = 70027 [18:27:26]sum+1 = 70029 [18:27:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 344 22.10.2024 18:27 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228380 ФПД: 90733203538814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182731&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228380&fm=90733203538814&tin=02508201610067®Number=0000000000091685&sum=70000 [18:27:27]StoreToDocumentArchive [18:27:27]shift 535 fd 228380 [18:27:27]save to /storage/0535/doc_00228380 [18:27:27]save last doc name /storage/0535/doc_00228380 to /storage/kkm_last_doc_name [18:27:27]save OK [18:27:27]Clear old archive folders... [18:27:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:27:27]tlvbuf is 008B1F90 [18:27:27]SAM_PROTO_ClearQueue [18:27:27]wFMCommunicate request_size=4 [18:27:27]MH_SAM_APDU [18:27:27]CAPDU: 80 09 00 00 [18:27:27]Write to MH i2c: E2 08 00 D2 65 80 09 00 00 00 00 00 00 A9 [18:27:27]Write i2c OK [18:27:27]MH_I2C_Read... [18:27:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:27]Read from MH i2c: E2 [18:27:27]MH_I2C_Read... [18:27:27]Read from MH i2c: E2 03 00 [18:27:27]MH_I2C_Read... [18:27:27]Read from MH i2c: E2 03 00 D2 65 00 90 00 AB [18:27:27]RAPDU: 90 00 [18:27:27]wFMCommunicate OK [18:27:27]SAM_PROTO_ClearQueue done [18:27:27]KKMCreateOFDPacket [18:27:27]OFDProtocolAddRootSTLVToBuf [18:27:27]FM_MakeSignedData [18:27:27]FM_MakeSignedData [18:27:27]SAM_PROTO_SignData [18:27:27]wFMCommunicate request_size=4 [18:27:27]MH_SAM_APDU [18:27:27]CAPDU: 80 0D 01 02 [18:27:27]Write to MH i2c: E2 08 00 D3 65 80 0D 01 02 00 00 00 00 B1 [18:27:27]Write i2c OK [18:27:27]MH_I2C_Read... [18:27:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:27]Read from MH i2c: E2 [18:27:27]MH_I2C_Read... [18:27:27]Read from MH i2c: E2 03 00 [18:27:27]MH_I2C_Read... [18:27:27]Read from MH i2c: E2 03 00 D3 65 00 90 00 AC [18:27:27]RAPDU: 90 00 [18:27:27]wFMCommunicate OK [18:27:27]wFMCommunicate request_size=255 [18:27:27]MH_SAM_APDU [18:27:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 58 01 00 00 F4 03 04 00 93 EE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1C 7C 03 00 35 04 06 00 52 85 78 5D [18:27:27]Write to MH i2c: E2 02 01 D4 65 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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 58 01 00 00 F4 03 04 00 93 EE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1C 7C 03 00 35 04 06 00 52 85 78 5D 00 00 F2 [18:27:27]Write i2c OK [18:27:27]MH_I2C_Read... [18:27:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:27]Read from MH i2c: E2 [18:27:27]MH_I2C_Read... [18:27:27]Read from MH i2c: E2 03 00 [18:27:27]MH_I2C_Read... [18:27:27]Read from MH i2c: E2 03 00 D4 65 00 90 00 AD [18:27:27]RAPDU: 90 00 [18:27:27]wFMCommunicate OK [18:27:27]wFMCommunicate request_size=7 [18:27:27]MH_SAM_APDU [18:27:27]CAPDU: 80 0D 02 02 02 C3 7E [18:27:27]Write to MH i2c: E2 0A 00 D5 65 80 0D 02 02 02 00 C3 7E 00 00 F9 [18:27:27]Write i2c OK [18:27:27]MH_I2C_Read... [18:27:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:27]Read from MH i2c: E2 [18:27:27]MH_I2C_Read... [18:27:27]Read from MH i2c: E2 03 00 [18:27:27]MH_I2C_Read... [18:27:27]Read from MH i2c: E2 03 00 D5 65 00 90 00 AE [18:27:27]RAPDU: 90 00 [18:27:27]wFMCommunicate OK [18:27:27]wFMCommunicate request_size=4 [18:27:27]MH_SAM_APDU [18:27:27]CAPDU: 80 0D 03 02 [18:27:27]Write to MH i2c: E2 08 00 D6 65 80 0D 03 02 00 00 00 00 B6 [18:27:27]Write i2c OK [18:27:27]MH_I2C_Read... [18:27:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:27]Read from MH i2c: E2 [18:27:27]MH_I2C_Read... [18:27:27]Read from MH i2c: E2 0B 00 [18:27:27]MH_I2C_Read... [18:27:27]Read from MH i2c: E2 0B 00 D6 65 00 32 15 9C BA F5 54 1F 7D 90 00 39 [18:27:27]RAPDU: 32 15 9C BA F5 54 1F 7D 90 00 [18:27:27]wFMCommunicate OK [18:27:27]SAM_PROTO_SignData done [18:27:27]FM_MakeSignedData done [18:27:27]CreateOFDProtocolMessage [18:27:27]wFMCommunicate request_size=4 [18:27:27]MH_SAM_APDU [18:27:27]CAPDU: 80 11 00 00 [18:27:27]Write to MH i2c: E2 08 00 D7 65 80 11 00 00 00 00 00 00 B6 [18:27:27]Write i2c OK [18:27:27]MH_I2C_Read... [18:27:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:28]Read from MH i2c: E2 [18:27:28]MH_I2C_Read... [18:27:28]Read from MH i2c: E2 17 00 [18:27:28]MH_I2C_Read... [18:27:28]Read from MH i2c: E2 17 00 D7 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0D [18:27:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:27:28]wFMCommunicate OK [18:27:28]CreateOFDProtocolMessage done [18:27:28]OFDSenderStorePacket 228380 [18:27:28]StoreOFDPacket docnum=228380 [18:27:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 43 79 04 01 34 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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 58 01 00 00 F4 03 04 00 93 EE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1C 7C 03 00 35 04 06 00 52 85 78 5D C3 7E 32 15 9C BA F5 54 1F 7D [18:27:28]CheckFolder [18:27:28]dirname=/storage/ofd_packets [18:27:28]CheckFolder done [18:27:28]ProducePacketName [18:27:28]name=ofd_packets/00228380 [18:27:28]NVStorageSaveData ofd_packets/00228380 [18:27:28]File name is /storage/ofd_packets/00228380 [18:27:28]Write 298 bytes [18:27:28]NVStorageSaveData done [18:27:28]OFDSenderStorePacket done [18:27:28]KKMCreateOFDPacket done [18:27:28]NVStorageSaveData kkm_last_timestamp [18:27:28]File name is /storage/kkm_last_timestamp [18:27:28]Write 4 bytes [18:27:28]NVStorageSaveData done [18:27:28]ExternCall_PrintAddStr [18:27:28]wPrintStart [18:27:28]Write to MH i2c: 01 00 00 D8 65 3D [18:27:28]Write i2c OK [18:27:28]MH_I2C_Read... [18:27:28]Read from MH i2c: 01 [18:27:28]MH_I2C_Read... [18:27:28]Read from MH i2c: 01 07 00 [18:27:28]MH_I2C_Read... [18:27:28]Read from MH i2c: 01 07 00 D8 65 00 00 00 00 00 FF 0F 52 [18:27:28]RasterBufferAndPrint [18:27:28]line Счет N : (1)1964928 [18:27:28]line ИНН: 02508201610067 [18:27:28]line Контрольно-Кассовый Чек [18:27:28]line ПРОДАЖА [18:27:28]line ТРК (МРК, ГНК) : 21 [18:27:28]line Товар: 2710194210 [18:27:28]line ДТ-К-5 [18:27:28]line 9.190 * 76.20 [18:27:28]line = 700.28 [18:27:28]line НДС 12% НСП 1% [18:27:28]line > о реализуемом товаре [18:27:28]line ОКРУГЛЕНИЕ: -0.28 [18:27:28]line ИТОГО: 700.00 [18:27:28]line Внесено: 700.00 [18:27:28]line СДАЧА: 0.00 [18:27:28]line НСП 1% : 6.20 [18:27:28]line НДС 12% : 74.37 [18:27:28]line Наличными: 700.00 [18:27:28]line Безнал.: 0.00 [18:27:28]line Место: АЗС № 133 "Партнер Нефть" [18:27:28]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:27:28]line СНО: Общий режим [18:27:28]line Чек 344 22.10.2024 18:27 [18:27:28]line Смена: 535 ФФД: 1.0 [18:27:28]line ЗНМ: 0300000091 [18:27:28]line РНМ: 0000000000091685 [18:27:28]line Версия ККМ: 001 [18:27:28]line ФМ: 0000000000871839 [18:27:28]line ФД: 228380 [18:27:28]line ФПД: 90733203538814 [18:27:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182731&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228380&fm=90733203538814&tin=02508201610067®Number=0000000000091685&sum=70000 [18:27:28]OFD Sender: Processing packet 228380 [packets to send 38, broken 37] [18:27:28]ProducePacketName [18:27:28]name=ofd_packets/00228380 [18:27:28]OFD Sender: To server: pG, [18:27:28]CommunicateWithHost lk.salyk.kg:30040 [18:27:28]ConnectInit lk.salyk.kg [18:27:28]written 0, free lines is 4095 [18:27:28]Connected sock=10 [18:27:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 43 79 04 01 34 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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 58 01 00 00 F4 03 04 00 93 EE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1C 7C 03 00 35 04 06 00 52 85 78 5D C3 7E 32 15 9C BA F5 54 1F 7D [18:27:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 3F F6 47 00 31 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1C 7C 03 00 F4 03 04 00 8B 99 17 67 B6 04 01 00 00 EC A2 D8 34 74 3A 33 FE [18:27:28]CommunicateWithHost err = 0 [18:27:28]CheckOFDResponse [18:27:28]1017 (14) - 77093643461234 [18:27:28]1041 (16) - 0000000000871839 [18:27:28]1040 (4) - 228380 [18:27:28]1012 (4) - 22.10.2024 12:24 [18:27:28]1206 (1) - 0 [18:27:28]OFD Sender: Remove packet 228380 [18:27:28]ProducePacketName [18:27:28]name=ofd_packets/00228380 [18:27:28]NVStorageDeleteData [18:27:28]Write to MH i2c: 01 00 00 02 66 68 [18:27:28]Write i2c OK [18:27:28]MH_I2C_Read... [18:27:28]Read from MH i2c: 01 [18:27:28]MH_I2C_Read... [18:27:28]Read from MH i2c: 01 07 00 [18:27:28]MH_I2C_Read... [18:27:28]Read from MH i2c: 01 07 00 02 66 00 00 00 00 00 AF 0C 2A [18:27:28]RasterBufferAndPrint [18:27:28]line [18:27:28]line [18:27:28]line [18:27:28]line [18:27:28]line [18:27:28]written 0, free lines is 3253 [18:27:28]MH_Cut [18:27:28]Write to MH i2c: D1 01 00 09 66 01 41 [18:27:28]Write i2c OK [18:27:28]MH_I2C_Read... [18:27:28]Read from MH i2c: D1 [18:27:28]MH_I2C_Read... [18:27:28]Read from MH i2c: D1 01 00 [18:27:28]MH_I2C_Read... [18:27:28]Read from MH i2c: D1 01 00 09 66 00 40 [18:27:28]Write to MH i2c: 01 00 00 0A 66 70 [18:27:28]Write i2c OK [18:27:28]MH_I2C_Read... [18:27:29]OFD Sender: No OFD packet to send [18:27:29]*** Cut start [18:27:29]*** Partial cut [18:27:29]*** CUTSNS_PIN = 1 [18:27:29]*** CUTSNS_PIN = 0 [18:27:30]*** Brake cut motor [18:27:30]Read from MH i2c: 01 [18:27:30]MH_I2C_Read... [18:27:30]*** Stop cut motor [18:27:30]*** Cut end [18:27:30]Read from MH i2c: 01 07 00 [18:27:30]MH_I2C_Read... [18:27:30]Read from MH i2c: 01 07 00 0A 66 00 00 00 00 00 FF 0F 85 [18:27:30]process_action close_receipt done [18:27:30]requested_data is exist [18:27:30]produce_requested_data [18:27:30]requested_item fm.sn is exist - process it [18:27:30]wFMCommunicate request_size=4 [18:27:30]MH_SAM_APDU [18:27:30]CAPDU: 80 11 00 00 [18:27:30]Write to MH i2c: E2 08 00 0B 66 80 11 00 00 00 00 00 00 EB [18:27:30]Write i2c OK [18:27:30]MH_I2C_Read... [18:27:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:30]Read from MH i2c: E2 [18:27:30]MH_I2C_Read... [18:27:30]Read from MH i2c: E2 17 00 [18:27:30]MH_I2C_Read... [18:27:30]Read from MH i2c: E2 17 00 0B 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 42 [18:27:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:27:30]wFMCommunicate OK [18:27:30]requested_item fd.num is exist - process it [18:27:30]SAM_PROTO_GetFieldsCounters [18:27:30]wFMCommunicate request_size=4 [18:27:30]MH_SAM_APDU [18:27:30]CAPDU: 80 13 00 00 [18:27:30]Write to MH i2c: E2 08 00 0C 66 80 13 00 00 00 00 00 00 EE [18:27:30]Write i2c OK [18:27:30]MH_I2C_Read... [18:27:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:30]Read from MH i2c: E2 [18:27:30]MH_I2C_Read... [18:27:30]Read from MH i2c: E2 62 00 [18:27:30]MH_I2C_Read... [18:27:30]Read from MH i2c: E2 62 00 0C 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1C 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 D6 [18:27:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1C 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:27:30]wFMCommunicate OK [18:27:30]SAM_PROTO_GetFieldsCounters done [18:27:30]requested_item shift.num is exist - process it [18:27:30]requested_item shift.opened is exist - process it [18:27:30]req_shift_opened [18:27:30]FM_GetShiftState [18:27:30]SAM_PROTO_GetShiftState [18:27:30]wFMCommunicate request_size=4 [18:27:30]MH_SAM_APDU [18:27:30]CAPDU: 80 13 01 00 [18:27:30]Write to MH i2c: E2 08 00 0D 66 80 13 01 00 00 00 00 00 F0 [18:27:30]Write i2c OK [18:27:30]MH_I2C_Read... [18:27:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:30]Read from MH i2c: E2 [18:27:30]MH_I2C_Read... [18:27:30]Read from MH i2c: E2 0E 00 [18:27:30]MH_I2C_Read... [18:27:30]Read from MH i2c: E2 0E 00 0D 66 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 B7 [18:27:30]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:27:30]wFMCommunicate OK [18:27:30]SAM_PROTO_GetShiftState done [18:27:30]FM_GetShiftState done [18:27:30]req_shift_opened done [18:27:30]requested_item shift.open_date is exist - process it [18:27:30]req_shift_open_date [18:27:30]req_shift_open_date done [18:27:30]produce_requested_data done [18:27:30]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228380,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [18:27:30]process_action_free close_receipt [18:27:30]json_value_free [18:27:30]json_value_free done [18:27:30]process_json_proto returns [18:27:30]Send response to host [18:27:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228380,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [18:27:30]free response buf [18:27:30]execute_script done [18:27:30]execute_script returns [18:27:30]free content buf [18:27:30]Sock 9.Close socket [18:27:30]Sock 9.Thread stoped [18:27:34]OFD Sender: No OFD packet to send [18:27:39]OFD Sender: No OFD packet to send [18:27:44]OFD Sender: No OFD packet to send [18:27:49]OFD Sender: No OFD packet to send [18:27:54]OFD Sender: No OFD packet to send [18:27:59]OFD Sender: No OFD packet to send [18:28:04]OFD Sender: No OFD packet to send [18:28:09]OFD Sender: No OFD packet to send [18:28:14]OFD Sender: No OFD packet to send [18:28:19]OFD Sender: No OFD packet to send [18:28:24]OFD Sender: No OFD packet to send [18:28:29]OFD Sender: No OFD packet to send [18:28:34]OFD Sender: No OFD packet to send [18:28:39]OFD Sender: No OFD packet to send [18:28:44]OFD Sender: No OFD packet to send [18:28:49]OFD Sender: No OFD packet to send [18:28:54]OFD Sender: No OFD packet to send [18:28:59]OFD Sender: No OFD packet to send [18:29:04]OFD Sender: No OFD packet to send [18:29:09]OFD Sender: No OFD packet to send [18:29:14]OFD Sender: No OFD packet to send [18:29:19]OFD Sender: No OFD packet to send [18:29:24]OFD Sender: No OFD packet to send [18:29:29]OFD Sender: No OFD packet to send [18:29:34]OFD Sender: No OFD packet to send [18:29:39]OFD Sender: No OFD packet to send [18:29:44]OFD Sender: No OFD packet to send [18:29:49]OFD Sender: No OFD packet to send [18:29:53]accept exits with 7 [18:29:53]New connection [18:29:53]New thread 3066994020 created [18:29:53]Thread 3067137380 joined [18:29:53]Waiting for new connection... [18:29:53] Sock 7.Parse request [18:29:53]Sock 7.Check first char [18:29:53]Sock 7.First char is OK [18:29:53]request: POST /json_proto HTTP/1.0 [18:29:53]Method: POST [18:29:53]URL: /json_proto [18:29:53]Method is POST - this is cgi request [18:29:53]url: /json_proto [18:29:53]query_string will be loaded in cgi processing [18:29:53]execute_cgi json_proto POST (null) [18:29:53]execute_cgi path=json_proto method=POST [18:29:53]POST find Content-Length [18:29:53]Host: 172.17.44.195:8080 [18:29:53]Content-Length: 664 [18:29:53]Content-Type: application/json [18:29:53] [18:29:53]POST finish read [18:29:53]Found Content-Length = 664 [18:29:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:53]execute_script... [18:29: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)1964930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:53]POST & json_proto [18:29:53]process_json_proto [18:29:53]json parsed OK: [18:29:53]protocol is kg_v1.0 [18:29:53]action value=close_receipt [18:29:53]process_action close_receipt [18:29:53]cmd_close_receipt [18:29:53]MH_GetDate [18:29:53]Write to MH i2c: F0 00 00 0E 66 63 [18:29:53]Write i2c OK [18:29:53]MH_I2C_Read... [18:29:53]Read from MH i2c: F0 [18:29:53]MH_I2C_Read... [18:29:53]Read from MH i2c: F0 09 00 [18:29:53]MH_I2C_Read... [18:29:53]Read from MH i2c: F0 09 00 0E 66 00 26 EF 17 67 82 C9 CF 66 7F [18:29:53]GetLastDocTimeStamp 1729621651 [18:29:53]current date 1729621798 [18:29:53]FM_GetShiftState [18:29:53]SAM_PROTO_GetShiftState [18:29:53]wFMCommunicate request_size=4 [18:29:53]MH_SAM_APDU [18:29:53]CAPDU: 80 13 01 00 [18:29:53]Write to MH i2c: E2 08 00 0F 66 80 13 01 00 00 00 00 00 F2 [18:29:53]Write i2c OK [18:29:53]MH_I2C_Read... [18:29:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:53]Read from MH i2c: E2 [18:29:53]MH_I2C_Read... [18:29:53]Read from MH i2c: E2 0E 00 [18:29:53]MH_I2C_Read... [18:29:53]Read from MH i2c: E2 0E 00 0F 66 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 B9 [18:29:53]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:29:53]wFMCommunicate OK [18:29:53]SAM_PROTO_GetShiftState done [18:29:53]FM_GetShiftState done [18:29:53]opened in 1729555538 [18:29:53]opened+sec_in_day 1729641938 [18:29:53]quantity*price = 100000 [18:29:53]sum+1 = 100002 [18:29:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 345 22.10.2024 18:29 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228381 ФПД: 31127080668860 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182958&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228381&fm=31127080668860&tin=02508201610067®Number=0000000000091685&sum=100000 [18:29:54]StoreToDocumentArchive [18:29:54]shift 535 fd 228381 [18:29:54]save to /storage/0535/doc_00228381 [18:29:54]save last doc name /storage/0535/doc_00228381 to /storage/kkm_last_doc_name [18:29:54]save OK [18:29:54]Clear old archive folders... [18:29:54]ProcessDocumentItem done err = 0, tmpTLVsize=244 [18:29:54]tlvbuf is 0093C860 [18:29:54]SAM_PROTO_ClearQueue [18:29:54]wFMCommunicate request_size=4 [18:29:54]MH_SAM_APDU [18:29:54]CAPDU: 80 09 00 00 [18:29:54]Write to MH i2c: E2 08 00 1C 66 80 09 00 00 00 00 00 00 F4 [18:29:54]Write i2c OK [18:29:54]MH_I2C_Read... [18:29:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:29:54]Read from MH i2c: E2 [18:29:54]MH_I2C_Read... [18:29:54]Read from MH i2c: E2 03 00 [18:29:54]MH_I2C_Read... [18:29:54]Read from MH i2c: E2 03 00 1C 66 00 90 00 F6 [18:29:54]RAPDU: 90 00 [18:29:54]wFMCommunicate OK [18:29:54]SAM_PROTO_ClearQueue done [18:29:54]KKMCreateOFDPacket [18:29:54]OFDProtocolAddRootSTLVToBuf [18:29:54]FM_MakeSignedData [18:29:54]FM_MakeSignedData [18:29:54]SAM_PROTO_SignData [18:29:54]wFMCommunicate request_size=4 [18:29:54]MH_SAM_APDU [18:29:54]CAPDU: 80 0D 01 02 [18:29:54]Write to MH i2c: E2 08 00 1D 66 80 0D 01 02 00 00 00 00 FC [18:29:54]Write i2c OK [18:29:54]MH_I2C_Read... [18:29:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:29:54]Read from MH i2c: E2 [18:29:54]MH_I2C_Read... [18:29:54]Read from MH i2c: E2 03 00 [18:29:54]MH_I2C_Read... [18:29:54]Read from MH i2c: E2 03 00 1D 66 00 90 00 F7 [18:29:54]RAPDU: 90 00 [18:29:54]wFMCommunicate OK [18:29:54]wFMCommunicate request_size=253 [18:29:54]MH_SAM_APDU [18:29:54]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 26 EF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1D 7C 03 00 35 04 06 00 1C 4F 56 96 0E BC [18:29:54]Write to MH i2c: E2 00 01 1E 66 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 26 EF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1D 7C 03 00 35 04 06 00 1C 4F 56 96 0E BC 00 00 39 [18:29:54]Write i2c OK [18:29:54]MH_I2C_Read... [18:29:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:54]Read from MH i2c: E2 [18:29:54]MH_I2C_Read... [18:29:54]Read from MH i2c: E2 03 00 [18:29:54]MH_I2C_Read... [18:29:54]Read from MH i2c: E2 03 00 1E 66 00 90 00 F8 [18:29:54]RAPDU: 90 00 [18:29:54]wFMCommunicate OK [18:29:54]wFMCommunicate request_size=4 [18:29:54]MH_SAM_APDU [18:29:54]CAPDU: 80 0D 03 02 [18:29:54]Write to MH i2c: E2 08 00 1F 66 80 0D 03 02 00 00 00 00 00 [18:29:54]Write i2c OK [18:29:54]MH_I2C_Read... [18:29:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:29:54]Read from MH i2c: E2 [18:29:54]MH_I2C_Read... [18:29:54]Read from MH i2c: E2 0B 00 [18:29:54]MH_I2C_Read... [18:29:54]Read from MH i2c: E2 0B 00 1F 66 00 4F D1 02 BE 27 5A F3 79 90 00 CE [18:29:54]RAPDU: 4F D1 02 BE 27 5A F3 79 90 00 [18:29:54]wFMCommunicate OK [18:29:54]SAM_PROTO_SignData done [18:29:54]FM_MakeSignedData done [18:29:54]CreateOFDProtocolMessage [18:29:54]wFMCommunicate request_size=4 [18:29:54]MH_SAM_APDU [18:29:54]CAPDU: 80 11 00 00 [18:29:54]Write to MH i2c: E2 08 00 20 66 80 11 00 00 00 00 00 00 00 [18:29:54]Write i2c OK [18:29:54]MH_I2C_Read... [18:29:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:54]Read from MH i2c: E2 [18:29:54]MH_I2C_Read... [18:29:54]Read from MH i2c: E2 17 00 [18:29:54]MH_I2C_Read... [18:29:54]Read from MH i2c: E2 17 00 20 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 57 [18:29:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:29:54]wFMCommunicate OK [18:29:54]CreateOFDProtocolMessage done [18:29:54]OFDSenderStorePacket 228381 [18:29:54]StoreOFDPacket docnum=228381 [18:29:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 6A 89 00 01 82 35 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 26 EF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1D 7C 03 00 35 04 06 00 1C 4F 56 96 0E BC 4F D1 02 BE 27 5A F3 79 [18:29:54]CheckFolder [18:29:54]dirname=/storage/ofd_packets [18:29:54]CheckFolder done [18:29:54]ProducePacketName [18:29:54]name=ofd_packets/00228381 [18:29:54]NVStorageSaveData ofd_packets/00228381 [18:29:54]File name is /storage/ofd_packets/00228381 [18:29:54]Write 294 bytes [18:29:54]NVStorageSaveData done [18:29:54]OFDSenderStorePacket done [18:29:54]KKMCreateOFDPacket done [18:29:54]NVStorageSaveData kkm_last_timestamp [18:29:54]File name is /storage/kkm_last_timestamp [18:29:54]Write 4 bytes [18:29:54]NVStorageSaveData done [18:29:54]ExternCall_PrintAddStr [18:29:54]wPrintStart [18:29:54]Write to MH i2c: 01 00 00 21 66 87 [18:29:54]Write i2c OK [18:29:54]MH_I2C_Read... [18:29:54]Read from MH i2c: 01 [18:29:54]MH_I2C_Read... [18:29:54]Read from MH i2c: 01 07 00 [18:29:54]MH_I2C_Read... [18:29:54]Read from MH i2c: 01 07 00 21 66 00 00 00 00 00 FF 0F 9C [18:29:54]RasterBufferAndPrint [18:29:54]line Счет N : (1)1964930 [18:29:54]line ИНН: 02508201610067 [18:29:54]line Контрольно-Кассовый Чек [18:29:54]line ПРОДАЖА [18:29:54]line ТРК (МРК, ГНК) : 62 [18:29:54]line Товар: 2710124130 [18:29:54]line SU-92 [18:29:54]line 14.620 * 68.40 [18:29:54]line = 1000.01 [18:29:54]line НДС 12% НСП 1% [18:29:54]line > о реализуемом товаре [18:29:54]line ОКРУГЛЕНИЕ: -0.01 [18:29:54]line ИТОГО: 1000.00 [18:29:54]line Внесено: 1000.00 [18:29:54]line СДАЧА: 0.00 [18:29:54]line НСП 1% : 8.85 [18:29:54]line НДС 12% : 106.20 [18:29:54]line Наличными: 1000.00 [18:29:54]line Безнал.: 0.00 [18:29:54]line Место: АЗС № 133 "Партнер Нефть" [18:29:54]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:29:54]line СНО: Общий режим [18:29:54]line Чек 345 22.10.2024 18:29 [18:29:54]line Смена: 535 ФФД: 1.0 [18:29:54]line ЗНМ: 0300000091 [18:29:54]line РНМ: 0000000000091685 [18:29:54]line Версия ККМ: 001 [18:29:54]line ФМ: 0000000000871839 [18:29:54]line ФД: 228381 [18:29:54]line ФПД: 31127080668860 [18:29:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182958&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228381&fm=31127080668860&tin=02508201610067®Number=0000000000091685&sum=100000 [18:29:55]OFD Sender: Processing packet 228381 [packets to send 38, broken 37] [18:29:55]ProducePacketName [18:29:55]name=ofd_packets/00228381 [18:29:55]OFD Sender: To server: pG, [18:29:55]CommunicateWithHost lk.salyk.kg:30040 [18:29:55]ConnectInit lk.salyk.kg [18:29:55]written 0, free lines is 4095 [18:29:55]Connected sock=9 [18:29:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 6A 89 00 01 82 35 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 26 EF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1D 7C 03 00 35 04 06 00 1C 4F 56 96 0E BC 4F D1 02 BE 27 5A F3 79 [18:29:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 7C 02 47 00 31 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 38 37 31 38 33 39 10 04 04 00 1D 7C 03 00 F4 03 04 00 1E 9A 17 67 B6 04 01 00 00 9E 71 7F 26 D2 C1 4F 63 [18:29:55]CommunicateWithHost err = 0 [18:29:55]CheckOFDResponse [18:29:55]1017 (14) - 77093643461234 [18:29:55]1041 (16) - 0000000000871839 [18:29:55]1040 (4) - 228381 [18:29:55]1012 (4) - 22.10.2024 12:27 [18:29:55]1206 (1) - 0 [18:29:55]OFD Sender: Remove packet 228381 [18:29:55]ProducePacketName [18:29:55]name=ofd_packets/00228381 [18:29:55]NVStorageDeleteData [18:29:55]Write to MH i2c: 01 00 00 4B 66 B1 [18:29:55]Write i2c OK [18:29:55]MH_I2C_Read... [18:29:55]Read from MH i2c: 01 [18:29:55]MH_I2C_Read... [18:29:55]Read from MH i2c: 01 07 00 [18:29:55]MH_I2C_Read... [18:29:55]Read from MH i2c: 01 07 00 4B 66 00 00 00 00 00 A3 0C 67 [18:29:55]RasterBufferAndPrint [18:29:55]line [18:29:55]line [18:29:55]line [18:29:55]line [18:29:55]line [18:29:55]written 0, free lines is 3240 [18:29:55]MH_Cut [18:29:55]Write to MH i2c: D1 01 00 52 66 01 8A [18:29:55]Write i2c OK [18:29:55]MH_I2C_Read... [18:29:55]Read from MH i2c: D1 [18:29:55]MH_I2C_Read... [18:29:55]Read from MH i2c: D1 01 00 [18:29:55]MH_I2C_Read... [18:29:55]Read from MH i2c: D1 01 00 52 66 00 89 [18:29:55]Write to MH i2c: 01 00 00 53 66 B9 [18:29:55]Write i2c OK [18:29:55]MH_I2C_Read... [18:29:56]OFD Sender: No OFD packet to send [18:29:56]*** Cut start [18:29:56]*** Partial cut [18:29:56]*** CUTSNS_PIN = 1 [18:29:56]*** CUTSNS_PIN = 0 [18:29:56]*** Brake cut motor [18:29:57]Read from MH i2c: 01 [18:29:57]MH_I2C_Read... [18:29:57]*** Stop cut motor [18:29:57]*** Cut end [18:29:57]Read from MH i2c: 01 07 00 [18:29:57]MH_I2C_Read... [18:29:57]Read from MH i2c: 01 07 00 53 66 00 00 00 00 00 FF 0F CE [18:29:57]process_action close_receipt done [18:29:57]requested_data is exist [18:29:57]produce_requested_data [18:29:57]requested_item fm.sn is exist - process it [18:29:57]wFMCommunicate request_size=4 [18:29:57]MH_SAM_APDU [18:29:57]CAPDU: 80 11 00 00 [18:29:57]Write to MH i2c: E2 08 00 54 66 80 11 00 00 00 00 00 00 34 [18:29:57]Write i2c OK [18:29:57]MH_I2C_Read... [18:29:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:57]Read from MH i2c: E2 [18:29:57]MH_I2C_Read... [18:29:57]Read from MH i2c: E2 17 00 [18:29:57]MH_I2C_Read... [18:29:57]Read from MH i2c: E2 17 00 54 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8B [18:29:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:29:57]wFMCommunicate OK [18:29:57]requested_item fd.num is exist - process it [18:29:57]SAM_PROTO_GetFieldsCounters [18:29:57]wFMCommunicate request_size=4 [18:29:57]MH_SAM_APDU [18:29:57]CAPDU: 80 13 00 00 [18:29:57]Write to MH i2c: E2 08 00 55 66 80 13 00 00 00 00 00 00 37 [18:29:57]Write i2c OK [18:29:57]MH_I2C_Read... [18:29:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:29:57]Read from MH i2c: E2 [18:29:57]MH_I2C_Read... [18:29:57]Read from MH i2c: E2 62 00 [18:29:57]MH_I2C_Read... [18:29:57]Read from MH i2c: E2 62 00 55 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1D 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 23 [18:29:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1D 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:29:57]wFMCommunicate OK [18:29:57]SAM_PROTO_GetFieldsCounters done [18:29:57]requested_item shift.num is exist - process it [18:29:57]requested_item shift.opened is exist - process it [18:29:57]req_shift_opened [18:29:57]FM_GetShiftState [18:29:57]SAM_PROTO_GetShiftState [18:29:57]wFMCommunicate request_size=4 [18:29:57]MH_SAM_APDU [18:29:57]CAPDU: 80 13 01 00 [18:29:57]Write to MH i2c: E2 08 00 56 66 80 13 01 00 00 00 00 00 39 [18:29:57]Write i2c OK [18:29:57]MH_I2C_Read... [18:29:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:57]Read from MH i2c: E2 [18:29:57]MH_I2C_Read... [18:29:57]Read from MH i2c: E2 0E 00 [18:29:57]MH_I2C_Read... [18:29:57]Read from MH i2c: E2 0E 00 56 66 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 00 [18:29:57]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:29:57]wFMCommunicate OK [18:29:57]SAM_PROTO_GetShiftState done [18:29:57]FM_GetShiftState done [18:29:57]req_shift_opened done [18:29:57]requested_item shift.open_date is exist - process it [18:29:57]req_shift_open_date [18:29:57]req_shift_open_date done [18:29:57]produce_requested_data done [18:29:57]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228381,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [18:29:57]process_action_free close_receipt [18:29:57]json_value_free [18:29:57]json_value_free done [18:29:57]process_json_proto returns [18:29:57]Send response to host [18:29:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228381,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [18:29:57]free response buf [18:29:57]execute_script done [18:29:57]execute_script returns [18:29:57]free content buf [18:29:57]Sock 7.Close socket [18:29:57]Sock 7.Thread stoped [18:29:58]accept exits with 10 [18:29:58]New connection [18:29:58]New thread 3067137380 created [18:29:58]Thread 3066994020 joined [18:29:58]Waiting for new connection... [18:29:58] Sock 10.Parse request [18:29:58]Sock 10.Check first char [18:29:58]Sock 10.First char is OK [18:29:58]request: POST /json_proto HTTP/1.0 [18:29:58]Method: POST [18:29:58]URL: /json_proto [18:29:58]Method is POST - this is cgi request [18:29:58]url: /json_proto [18:29:58]query_string will be loaded in cgi processing [18:29:58]execute_cgi json_proto POST (null) [18:29:58]execute_cgi path=json_proto method=POST [18:29:58]POST find Content-Length [18:29:58]Host: 172.17.44.195:8080 [18:29:58]Content-Length: 679 [18:29:58]Content-Type: application/json [18:29:58] [18:29:58]POST finish read [18:29:58]Found Content-Length = 679 [18:29:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "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" ] } } [18:29:58]execute_script... [18:29: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)1964929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "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" ] } } [18:29:58]POST & json_proto [18:29:58]process_json_proto [18:29:58]json parsed OK: [18:29:58]protocol is kg_v1.0 [18:29:58]action value=close_receipt [18:29:58]process_action close_receipt [18:29:58]cmd_close_receipt [18:29:58]MH_GetDate [18:29:58]Write to MH i2c: F0 00 00 57 66 AC [18:29:58]Write i2c OK [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: F0 [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: F0 09 00 [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: F0 09 00 57 66 00 2B EF 17 67 82 C9 CF 66 CD [18:29:58]GetLastDocTimeStamp 1729621798 [18:29:58]current date 1729621803 [18:29:58]FM_GetShiftState [18:29:58]SAM_PROTO_GetShiftState [18:29:58]wFMCommunicate request_size=4 [18:29:58]MH_SAM_APDU [18:29:58]CAPDU: 80 13 01 00 [18:29:58]Write to MH i2c: E2 08 00 58 66 80 13 01 00 00 00 00 00 3B [18:29:58]Write i2c OK [18:29:58]MH_I2C_Read... [18:29:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:58]Read from MH i2c: E2 [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: E2 0E 00 [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: E2 0E 00 58 66 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 02 [18:29:58]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:29:58]wFMCommunicate OK [18:29:58]SAM_PROTO_GetShiftState done [18:29:58]FM_GetShiftState done [18:29:58]opened in 1729555538 [18:29:58]opened+sec_in_day 1729641938 [18:29:58]quantity*price = 80061 [18:29:58]sum+1 = 80063 [18:29:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 346 22.10.2024 18:30 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228382 ФПД: 160155345465987 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183003&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228382&fm=160155345465987&tin=02508201610067®Number=0000000000091685&sum=80000 [18:29:59]StoreToDocumentArchive [18:29:59]shift 535 fd 228382 [18:29:59]save to /storage/0535/doc_00228382 [18:29:59]save last doc name /storage/0535/doc_00228382 to /storage/kkm_last_doc_name [18:29:59]save OK [18:29:59]Clear old archive folders... [18:29:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:29:59]tlvbuf is 00A6CE40 [18:29:59]SAM_PROTO_ClearQueue [18:29:59]wFMCommunicate request_size=4 [18:29:59]MH_SAM_APDU [18:29:59]CAPDU: 80 09 00 00 [18:29:59]Write to MH i2c: E2 08 00 65 66 80 09 00 00 00 00 00 00 3D [18:29:59]Write i2c OK [18:29:59]MH_I2C_Read... [18:29:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:29:59]Read from MH i2c: E2 [18:29:59]MH_I2C_Read... [18:29:59]Read from MH i2c: E2 03 00 [18:29:59]MH_I2C_Read... [18:29:59]Read from MH i2c: E2 03 00 65 66 00 90 00 3F [18:29:59]RAPDU: 90 00 [18:29:59]wFMCommunicate OK [18:29:59]SAM_PROTO_ClearQueue done [18:29:59]KKMCreateOFDPacket [18:29:59]OFDProtocolAddRootSTLVToBuf [18:29:59]FM_MakeSignedData [18:29:59]FM_MakeSignedData [18:29:59]SAM_PROTO_SignData [18:29:59]wFMCommunicate request_size=4 [18:29:59]MH_SAM_APDU [18:29:59]CAPDU: 80 0D 01 02 [18:29:59]Write to MH i2c: E2 08 00 66 66 80 0D 01 02 00 00 00 00 45 [18:29:59]Write i2c OK [18:29:59]MH_I2C_Read... [18:29:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:29:59]Read from MH i2c: E2 [18:29:59]MH_I2C_Read... [18:29:59]Read from MH i2c: E2 03 00 [18:29:59]MH_I2C_Read... [18:29:59]Read from MH i2c: E2 03 00 66 66 00 90 00 40 [18:29:59]RAPDU: 90 00 [18:29:59]wFMCommunicate OK [18:29:59]wFMCommunicate request_size=255 [18:29:59]MH_SAM_APDU [18:29: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 2B EF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1E 7C 03 00 35 04 06 00 91 [18:29:59]Write to MH i2c: E2 02 01 67 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 2B EF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1E 7C 03 00 35 04 06 00 91 00 00 83 [18:29:59]Write i2c OK [18:29:59]MH_I2C_Read... [18:30:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:00]Read from MH i2c: E2 [18:30:00]MH_I2C_Read... [18:30:00]Read from MH i2c: E2 03 00 [18:30:00]MH_I2C_Read... [18:30:00]Read from MH i2c: E2 03 00 67 66 00 90 00 41 [18:30:00]RAPDU: 90 00 [18:30:00]wFMCommunicate OK [18:30:00]wFMCommunicate request_size=10 [18:30:00]MH_SAM_APDU [18:30:00]CAPDU: 80 0D 02 02 05 A9 12 79 B2 83 [18:30:00]Write to MH i2c: E2 0D 00 68 66 80 0D 02 02 05 00 A9 12 79 B2 83 00 00 BB [18:30:00]Write i2c OK [18:30:00]MH_I2C_Read... [18:30:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:00]Read from MH i2c: E2 [18:30:00]MH_I2C_Read... [18:30:00]Read from MH i2c: E2 03 00 [18:30:00]MH_I2C_Read... [18:30:00]Read from MH i2c: E2 03 00 68 66 00 90 00 42 [18:30:00]RAPDU: 90 00 [18:30:00]wFMCommunicate OK [18:30:00]wFMCommunicate request_size=4 [18:30:00]MH_SAM_APDU [18:30:00]CAPDU: 80 0D 03 02 [18:30:00]Write to MH i2c: E2 08 00 69 66 80 0D 03 02 00 00 00 00 4A [18:30:00]Write i2c OK [18:30:00]MH_I2C_Read... [18:30:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:30:00]Read from MH i2c: E2 [18:30:00]MH_I2C_Read... [18:30:00]Read from MH i2c: E2 0B 00 [18:30:00]MH_I2C_Read... [18:30:00]Read from MH i2c: E2 0B 00 69 66 00 7B BA 9E 41 C7 66 B2 4A 90 00 88 [18:30:00]RAPDU: 7B BA 9E 41 C7 66 B2 4A 90 00 [18:30:00]wFMCommunicate OK [18:30:00]SAM_PROTO_SignData done [18:30:00]FM_MakeSignedData done [18:30:00]CreateOFDProtocolMessage [18:30:00]wFMCommunicate request_size=4 [18:30:00]MH_SAM_APDU [18:30:00]CAPDU: 80 11 00 00 [18:30:00]Write to MH i2c: E2 08 00 6A 66 80 11 00 00 00 00 00 00 4A [18:30:00]Write i2c OK [18:30:00]MH_I2C_Read... [18:30:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:00]Read from MH i2c: E2 [18:30:00]MH_I2C_Read... [18:30:00]Read from MH i2c: E2 17 00 [18:30:00]MH_I2C_Read... [18:30:00]Read from MH i2c: E2 17 00 6A 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A1 [18:30:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:30:00]wFMCommunicate OK [18:30:00]CreateOFDProtocolMessage done [18:30:00]OFDSenderStorePacket 228382 [18:30:00]StoreOFDPacket docnum=228382 [18:30:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 5A 44 07 01 9F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 2B EF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1E 7C 03 00 35 04 06 00 91 A9 12 79 B2 83 7B BA 9E 41 C7 66 B2 4A [18:30:00]CheckFolder [18:30:00]dirname=/storage/ofd_packets [18:30:00]CheckFolder done [18:30:00]ProducePacketName [18:30:00]name=ofd_packets/00228382 [18:30:00]NVStorageSaveData ofd_packets/00228382 [18:30:00]File name is /storage/ofd_packets/00228382 [18:30:00]Write 301 bytes [18:30:00]NVStorageSaveData done [18:30:00]OFDSenderStorePacket done [18:30:00]KKMCreateOFDPacket done [18:30:00]NVStorageSaveData kkm_last_timestamp [18:30:00]File name is /storage/kkm_last_timestamp [18:30:00]Write 4 bytes [18:30:00]NVStorageSaveData done [18:30:00]ExternCall_PrintAddStr [18:30:00]wPrintStart [18:30:00]Write to MH i2c: 01 00 00 6B 66 D1 [18:30:00]Write i2c OK [18:30:00]MH_I2C_Read... [18:30:00]Read from MH i2c: 01 [18:30:00]MH_I2C_Read... [18:30:00]Read from MH i2c: 01 07 00 [18:30:00]MH_I2C_Read... [18:30:00]Read from MH i2c: 01 07 00 6B 66 00 00 00 00 00 FF 0F E6 [18:30:00]RasterBufferAndPrint [18:30:00]line Счет N : (1)1964929 [18:30:00]line ИНН: 02508201610067 [18:30:00]line Контрольно-Кассовый Чек [18:30:00]line ПРОДАЖА [18:30:00]line ТРК (МРК, ГНК) : 44 [18:30:00]line Товар: 2710124500 [18:30:00]line Аи-95-К-5 [18:30:00]line 10.790 * 74.20 [18:30:00]line = 800.62 [18:30:00]line НДС 12% НСП 1% [18:30:00]line > о реализуемом товаре [18:30:00]line ОКРУГЛЕНИЕ: -0.62 [18:30:00]line ИТОГО: 800.00 [18:30:00]line Внесено: 800.00 [18:30:00]line СДАЧА: 0.00 [18:30:00]line НСП 1% : 7.08 [18:30:00]line НДС 12% : 85.02 [18:30:00]line Наличными: 800.00 [18:30:00]line Безнал.: 0.00 [18:30:00]line Место: АЗС № 133 "Партнер Нефть" [18:30:00]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:30:00]line СНО: Общий режим [18:30:00]line Чек 346 22.10.2024 18:30 [18:30:00]line Смена: 535 ФФД: 1.0 [18:30:00]line ЗНМ: 0300000091 [18:30:00]line РНМ: 0000000000091685 [18:30:00]line Версия ККМ: 001 [18:30:00]line ФМ: 0000000000871839 [18:30:00]line ФД: 228382 [18:30:00]line ФПД: 160155345465987 [18:30:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183003&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228382&fm=160155345465987&tin=02508201610067®Number=0000000000091685&sum=80000 [18:30:00]written 0, free lines is 4095 [18:30:00]OFD Sender: Processing packet 228382 [packets to send 38, broken 37] [18:30:00]ProducePacketName [18:30:00]name=ofd_packets/00228382 [18:30:00]OFD Sender: To server: pG, [18:30:00]CommunicateWithHost lk.salyk.kg:30040 [18:30:00]ConnectInit lk.salyk.kg [18:30:00]Connected sock=9 [18:30:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 5A 44 07 01 9F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 2B EF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1E 7C 03 00 35 04 06 00 91 A9 12 79 B2 83 7B BA 9E 41 C7 66 B2 4A [18:30:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 CD E5 47 00 03 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1E 7C 03 00 F4 03 04 00 23 9A 17 67 B6 04 01 00 00 11 15 B4 08 9D 9D 10 F0 [18:30:00]CommunicateWithHost err = 0 [18:30:00]CheckOFDResponse [18:30:00]1017 (14) - 77093643461234 [18:30:00]1041 (16) - 0000000000871839 [18:30:00]1040 (4) - 228382 [18:30:00]1012 (4) - 22.10.2024 12:27 [18:30:00]1206 (1) - 0 [18:30:00]OFD Sender: Remove packet 228382 [18:30:00]ProducePacketName [18:30:00]name=ofd_packets/00228382 [18:30:00]NVStorageDeleteData [18:30:00]Write to MH i2c: 01 00 00 95 66 FB [18:30:00]Write i2c OK [18:30:00]MH_I2C_Read... [18:30:00]Read from MH i2c: 01 [18:30:00]MH_I2C_Read... [18:30:00]Read from MH i2c: 01 07 00 [18:30:00]MH_I2C_Read... [18:30:00]Read from MH i2c: 01 07 00 95 66 00 00 00 00 00 BA 0C C8 [18:30:00]RasterBufferAndPrint [18:30:00]line [18:30:00]line [18:30:00]line [18:30:00]line [18:30:00]line [18:30:00]written 0, free lines is 3269 [18:30:00]MH_Cut [18:30:00]Write to MH i2c: D1 01 00 9C 66 01 D4 [18:30:00]Write i2c OK [18:30:00]MH_I2C_Read... [18:30:00]Read from MH i2c: D1 [18:30:00]MH_I2C_Read... [18:30:00]Read from MH i2c: D1 01 00 [18:30:00]MH_I2C_Read... [18:30:00]Read from MH i2c: D1 01 00 9C 66 00 D3 [18:30:00]Write to MH i2c: 01 00 00 9D 66 03 [18:30:00]Write i2c OK [18:30:00]MH_I2C_Read... [18:30:01]OFD Sender: No OFD packet to send [18:30:01]*** Cut start [18:30:01]*** Partial cut [18:30:01]*** CUTSNS_PIN = 1 [18:30:01]*** CUTSNS_PIN = 0 [18:30:01]*** Brake cut motor [18:30:02]Read from MH i2c: 01 [18:30:02]MH_I2C_Read... [18:30:02]*** Stop cut motor [18:30:02]*** Cut end [18:30:02]Read from MH i2c: 01 07 00 [18:30:02]MH_I2C_Read... [18:30:02]Read from MH i2c: 01 07 00 9D 66 00 00 00 00 00 FF 0F 18 [18:30:02]process_action close_receipt done [18:30:02]requested_data is exist [18:30:02]produce_requested_data [18:30:02]requested_item fm.sn is exist - process it [18:30:02]wFMCommunicate request_size=4 [18:30:02]MH_SAM_APDU [18:30:02]CAPDU: 80 11 00 00 [18:30:02]Write to MH i2c: E2 08 00 9E 66 80 11 00 00 00 00 00 00 7E [18:30:02]Write i2c OK [18:30:02]MH_I2C_Read... [18:30:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:02]Read from MH i2c: E2 [18:30:02]MH_I2C_Read... [18:30:02]Read from MH i2c: E2 17 00 [18:30:02]MH_I2C_Read... [18:30:02]Read from MH i2c: E2 17 00 9E 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D5 [18:30:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:30:02]wFMCommunicate OK [18:30:02]requested_item fd.num is exist - process it [18:30:02]SAM_PROTO_GetFieldsCounters [18:30:02]wFMCommunicate request_size=4 [18:30:02]MH_SAM_APDU [18:30:02]CAPDU: 80 13 00 00 [18:30:02]Write to MH i2c: E2 08 00 9F 66 80 13 00 00 00 00 00 00 81 [18:30:02]Write i2c OK [18:30:02]MH_I2C_Read... [18:30:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:30:02]Read from MH i2c: E2 [18:30:02]MH_I2C_Read... [18:30:02]Read from MH i2c: E2 62 00 [18:30:02]MH_I2C_Read... [18:30:02]Read from MH i2c: E2 62 00 9F 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1E 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 71 [18:30:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1E 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:30:02]wFMCommunicate OK [18:30:02]SAM_PROTO_GetFieldsCounters done [18:30:02]requested_item shift.num is exist - process it [18:30:02]requested_item shift.opened is exist - process it [18:30:02]req_shift_opened [18:30:02]FM_GetShiftState [18:30:02]SAM_PROTO_GetShiftState [18:30:02]wFMCommunicate request_size=4 [18:30:02]MH_SAM_APDU [18:30:02]CAPDU: 80 13 01 00 [18:30:02]Write to MH i2c: E2 08 00 A0 66 80 13 01 00 00 00 00 00 83 [18:30:02]Write i2c OK [18:30:02]MH_I2C_Read... [18:30:02]Read from MH i2c: E2 [18:30:02]MH_I2C_Read... [18:30:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:02]Read from MH i2c: E2 0E 00 [18:30:02]MH_I2C_Read... [18:30:02]Read from MH i2c: E2 0E 00 A0 66 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 4A [18:30:02]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:30:02]wFMCommunicate OK [18:30:02]SAM_PROTO_GetShiftState done [18:30:02]FM_GetShiftState done [18:30:02]req_shift_opened done [18:30:02]requested_item shift.open_date is exist - process it [18:30:02]req_shift_open_date [18:30:02]req_shift_open_date done [18:30:02]produce_requested_data done [18:30:02]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228382,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [18:30:02]process_action_free close_receipt [18:30:02]json_value_free [18:30:02]json_value_free done [18:30:02]process_json_proto returns [18:30:02]Send response to host [18:30:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228382,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [18:30:02]free response buf [18:30:02]execute_script done [18:30:02]execute_script returns [18:30:02]free content buf [18:30:02]Sock 10.Close socket [18:30:02]Sock 10.Thread stoped [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:03]accept exits with 7 [18:33:03]New connection [18:33:03]New thread 3066994020 created [18:33:03]Thread 3067137380 joined [18:33:03]Waiting for new connection... [18:33:03] Sock 7.Parse request [18:33:03]Sock 7.Check first char [18:33:03]Sock 7.First char is OK [18:33:03]request: POST /json_proto HTTP/1.0 [18:33:03]Method: POST [18:33:03]URL: /json_proto [18:33:03]Method is POST - this is cgi request [18:33:03]url: /json_proto [18:33:03]query_string will be loaded in cgi processing [18:33:03]execute_cgi json_proto POST (null) [18:33:03]execute_cgi path=json_proto method=POST [18:33:03]POST find Content-Length [18:33:03]Host: 172.17.44.195:8080 [18:33:03]Content-Length: 764 [18:33:03]Content-Type: application/json [18:33:03] [18:33:03]POST finish read [18:33:03]Found Content-Length = 764 [18:33:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964931", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:03]execute_script... [18:33: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)1964931", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:03]POST & json_proto [18:33:03]process_json_proto [18:33:03]json parsed OK: [18:33:03]protocol is kg_v1.0 [18:33:03]action value=close_receipt [18:33:03]process_action close_receipt [18:33:03]cmd_close_receipt [18:33:03]MH_GetDate [18:33:03]Write to MH i2c: F0 00 00 A1 66 F6 [18:33:03]Write i2c OK [18:33:03]MH_I2C_Read... [18:33:03]Read from MH i2c: F0 [18:33:03]MH_I2C_Read... [18:33:03]Read from MH i2c: F0 09 00 [18:33:03]MH_I2C_Read... [18:33:03]Read from MH i2c: F0 09 00 A1 66 00 E5 EF 17 67 82 C9 CF 66 D1 [18:33:03]GetLastDocTimeStamp 1729621803 [18:33:03]current date 1729621989 [18:33:03]FM_GetShiftState [18:33:03]SAM_PROTO_GetShiftState [18:33:03]wFMCommunicate request_size=4 [18:33:03]MH_SAM_APDU [18:33:03]CAPDU: 80 13 01 00 [18:33:03]Write to MH i2c: E2 08 00 A2 66 80 13 01 00 00 00 00 00 85 [18:33:03]Write i2c OK [18:33:03]MH_I2C_Read... [18:33:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:03]Read from MH i2c: E2 [18:33:03]MH_I2C_Read... [18:33:03]Read from MH i2c: E2 0E 00 [18:33:03]MH_I2C_Read... [18:33:03]Read from MH i2c: E2 0E 00 A2 66 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 4C [18:33:03]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:33:03]wFMCommunicate OK [18:33:03]SAM_PROTO_GetShiftState done [18:33:03]FM_GetShiftState done [18:33:03]opened in 1729555538 [18:33:03]opened+sec_in_day 1729641938 [18:33:03]quantity*price = 50063 [18:33:03]sum+1 = 50064 [18:33:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.63 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.63 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 347 22.10.2024 18:33 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 228383 ФПД: 48336569328934 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183309&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228383&fm=48336569328934&tin=02508201610067®Number=0000000000091685&sum=50063 [18:33:04]StoreToDocumentArchive [18:33:04]shift 535 fd 228383 [18:33:04]save to /storage/0535/doc_00228383 [18:33:04]save last doc name /storage/0535/doc_00228383 to /storage/kkm_last_doc_name [18:33:04]save OK [18:33:04]Clear old archive folders... [18:33:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:33:04]tlvbuf is B6DD5540 [18:33:04]SAM_PROTO_ClearQueue [18:33:04]wFMCommunicate request_size=4 [18:33:04]MH_SAM_APDU [18:33:04]CAPDU: 80 09 00 00 [18:33:04]Write to MH i2c: E2 08 00 AF 66 80 09 00 00 00 00 00 00 87 [18:33:04]Write i2c OK [18:33:04]MH_I2C_Read... [18:33:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:33:04]Read from MH i2c: E2 [18:33:04]MH_I2C_Read... [18:33:04]Read from MH i2c: E2 03 00 [18:33:04]MH_I2C_Read... [18:33:04]Read from MH i2c: E2 03 00 AF 66 00 90 00 89 [18:33:04]RAPDU: 90 00 [18:33:04]wFMCommunicate OK [18:33:04]SAM_PROTO_ClearQueue done [18:33:04]KKMCreateOFDPacket [18:33:04]OFDProtocolAddRootSTLVToBuf [18:33:04]FM_MakeSignedData [18:33:04]FM_MakeSignedData [18:33:04]SAM_PROTO_SignData [18:33:04]wFMCommunicate request_size=4 [18:33:04]MH_SAM_APDU [18:33:04]CAPDU: 80 0D 01 02 [18:33:04]Write to MH i2c: E2 08 00 B0 66 80 0D 01 02 00 00 00 00 8F [18:33:04]Write i2c OK [18:33:04]MH_I2C_Read... [18:33:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:05]Read from MH i2c: E2 [18:33:05]MH_I2C_Read... [18:33:05]Read from MH i2c: E2 03 00 [18:33:05]MH_I2C_Read... [18:33:05]Read from MH i2c: E2 03 00 B0 66 00 90 00 8A [18:33:05]RAPDU: 90 00 [18:33:05]wFMCommunicate OK [18:33:05]wFMCommunicate request_size=255 [18:33:05]MH_SAM_APDU [18:33:05]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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 E5 EF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1F 7C 03 00 35 04 06 00 2B F6 3C 0B [18:33:05]Write to MH i2c: E2 02 01 B1 66 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 E5 EF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1F 7C 03 00 35 04 06 00 2B F6 3C 0B 00 00 EF [18:33:05]Write i2c OK [18:33:05]MH_I2C_Read... [18:33:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:05]Read from MH i2c: E2 [18:33:05]MH_I2C_Read... [18:33:05]Read from MH i2c: E2 03 00 [18:33:05]MH_I2C_Read... [18:33:05]Read from MH i2c: E2 03 00 B1 66 00 90 00 8B [18:33:05]RAPDU: 90 00 [18:33:05]wFMCommunicate OK [18:33:05]wFMCommunicate request_size=7 [18:33:05]MH_SAM_APDU [18:33:05]CAPDU: 80 0D 02 02 02 65 26 [18:33:05]Write to MH i2c: E2 0A 00 B2 66 80 0D 02 02 02 00 65 26 00 00 21 [18:33:05]Write i2c OK [18:33:05]MH_I2C_Read... [18:33:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:05]Read from MH i2c: E2 [18:33:05]MH_I2C_Read... [18:33:05]Read from MH i2c: E2 03 00 [18:33:05]MH_I2C_Read... [18:33:05]Read from MH i2c: E2 03 00 B2 66 00 90 00 8C [18:33:05]RAPDU: 90 00 [18:33:05]wFMCommunicate OK [18:33:05]wFMCommunicate request_size=4 [18:33:05]MH_SAM_APDU [18:33:05]CAPDU: 80 0D 03 02 [18:33:05]Write to MH i2c: E2 08 00 B3 66 80 0D 03 02 00 00 00 00 94 [18:33:05]Write i2c OK [18:33:05]MH_I2C_Read... [18:33:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:33:05]Read from MH i2c: E2 [18:33:05]MH_I2C_Read... [18:33:05]Read from MH i2c: E2 0B 00 [18:33:05]MH_I2C_Read... [18:33:05]Read from MH i2c: E2 0B 00 B3 66 00 CC 5B 3B 09 FE F9 76 CC 90 00 39 [18:33:05]RAPDU: CC 5B 3B 09 FE F9 76 CC 90 00 [18:33:05]wFMCommunicate OK [18:33:05]SAM_PROTO_SignData done [18:33:05]FM_MakeSignedData done [18:33:05]CreateOFDProtocolMessage [18:33:05]wFMCommunicate request_size=4 [18:33:05]MH_SAM_APDU [18:33:05]CAPDU: 80 11 00 00 [18:33:05]Write to MH i2c: E2 08 00 B4 66 80 11 00 00 00 00 00 00 94 [18:33:05]Write i2c OK [18:33:05]MH_I2C_Read... [18:33:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:05]Read from MH i2c: E2 [18:33:05]MH_I2C_Read... [18:33:05]Read from MH i2c: E2 17 00 [18:33:05]MH_I2C_Read... [18:33:05]Read from MH i2c: E2 17 00 B4 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 EB [18:33:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:33:05]wFMCommunicate OK [18:33:05]CreateOFDProtocolMessage done [18:33:05]OFDSenderStorePacket 228383 [18:33:05]StoreOFDPacket docnum=228383 [18:33:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 C6 24 04 01 29 F6 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 E5 EF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1F 7C 03 00 35 04 06 00 2B F6 3C 0B 65 26 CC 5B 3B 09 FE F9 76 CC [18:33:05]CheckFolder [18:33:05]dirname=/storage/ofd_packets [18:33:05]CheckFolder done [18:33:05]ProducePacketName [18:33:05]name=ofd_packets/00228383 [18:33:05]NVStorageSaveData ofd_packets/00228383 [18:33:05]File name is /storage/ofd_packets/00228383 [18:33:05]Write 298 bytes [18:33:05]NVStorageSaveData done [18:33:05]OFDSenderStorePacket done [18:33:05]KKMCreateOFDPacket done [18:33:05]NVStorageSaveData kkm_last_timestamp [18:33:05]File name is /storage/kkm_last_timestamp [18:33:05]Write 4 bytes [18:33:05]NVStorageSaveData done [18:33:05]ExternCall_PrintAddStr [18:33:05]wPrintStart [18:33:05]Write to MH i2c: 01 00 00 B5 66 1B [18:33:05]Write i2c OK [18:33:05]MH_I2C_Read... [18:33:05]Read from MH i2c: 01 [18:33:05]MH_I2C_Read... [18:33:05]Read from MH i2c: 01 07 00 [18:33:05]MH_I2C_Read... [18:33:05]Read from MH i2c: 01 07 00 B5 66 00 00 00 00 00 FF 0F 30 [18:33:05]RasterBufferAndPrint [18:33:05]line Счет N : (1)1964931 [18:33:05]line ИНН: 02508201610067 [18:33:05]line Контрольно-Кассовый Чек [18:33:05]line ПРОДАЖА [18:33:05]line ТРК (МРК, ГНК) : 11 [18:33:05]line Товар: 2710194210 [18:33:05]line ДТ-К-5 [18:33:05]line 6.570 * 76.20 [18:33:05]line = 500.63 [18:33:05]line НДС 12% НСП 1% [18:33:05]line > о реализуемом товаре [18:33:05]line ИТОГО: 500.63 [18:33:05]line НСП 1% : 4.43 [18:33:05]line НДС 12% : 53.16 [18:33:05]line Наличными: 0.00 [18:33:05]line Безнал.: 500.63 [18:33:05]line Место: АЗС № 133 "Партнер Нефть" [18:33:05]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:33:05]line СНО: Общий режим [18:33:05]line Чек 347 22.10.2024 18:33 [18:33:05]line Смена: 535 ФФД: 1.0 [18:33:05]line ЗНМ: 0300000091 [18:33:05]line РНМ: 0000000000091685 [18:33:05]line Версия ККМ: 001 [18:33:05]line Платежная система: Mbank [18:33:05]line ФМ: 0000000000871839 [18:33:05]line ФД: 228383 [18:33:05]line ФПД: 48336569328934 [18:33:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183309&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228383&fm=48336569328934&tin=02508201610067®Number=0000000000091685&sum=50063 [18:33:05]OFD Sender: Processing packet 228383 [packets to send 38, broken 37] [18:33:05]ProducePacketName [18:33:05]name=ofd_packets/00228383 [18:33:05]OFD Sender: To server: pG, [18:33:05]CommunicateWithHost lk.salyk.kg:30040 [18:33:05]ConnectInit lk.salyk.kg [18:33:05]written 0, free lines is 4095 [18:33:05]Connected sock=9 [18:33:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 C6 24 04 01 29 F6 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 E5 EF 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1F 7C 03 00 35 04 06 00 2B F6 3C 0B 65 26 CC 5B 3B 09 FE F9 76 CC [18:33:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 9F 2D 47 00 E0 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1F 7C 03 00 F4 03 04 00 DC 9A 17 67 B6 04 01 00 00 44 7E A0 56 3E 71 A4 D7 [18:33:06]CommunicateWithHost err = 0 [18:33:06]CheckOFDResponse [18:33:06]1017 (14) - 77093643461234 [18:33:06]1041 (16) - 0000000000871839 [18:33:06]1040 (4) - 228383 [18:33:06]1012 (4) - 22.10.2024 12:30 [18:33:06]1206 (1) - 0 [18:33:06]OFD Sender: Remove packet 228383 [18:33:06]ProducePacketName [18:33:06]name=ofd_packets/00228383 [18:33:06]NVStorageDeleteData [18:33:06]Write to MH i2c: 01 00 00 DD 66 43 [18:33:06]Write i2c OK [18:33:06]MH_I2C_Read... [18:33:06]Read from MH i2c: 01 [18:33:06]MH_I2C_Read... [18:33:06]Read from MH i2c: 01 07 00 [18:33:06]MH_I2C_Read... [18:33:06]Read from MH i2c: 01 07 00 DD 66 00 00 00 00 00 E3 0C 39 [18:33:06]RasterBufferAndPrint [18:33:06]line [18:33:06]line [18:33:06]line [18:33:06]line [18:33:06]line [18:33:06]written 0, free lines is 3303 [18:33:06]MH_Cut [18:33:06]Write to MH i2c: D1 01 00 E4 66 01 1C [18:33:06]Write i2c OK [18:33:06]MH_I2C_Read... [18:33:06]Read from MH i2c: D1 [18:33:06]MH_I2C_Read... [18:33:06]Read from MH i2c: D1 01 00 [18:33:06]MH_I2C_Read... [18:33:06]Read from MH i2c: D1 01 00 E4 66 00 1B [18:33:06]Write to MH i2c: 01 00 00 E5 66 4B [18:33:06]Write i2c OK [18:33:06]MH_I2C_Read... [18:33:06]OFD Sender: No OFD packet to send [18:33:07]*** Cut start [18:33:07]*** Partial cut [18:33:07]*** CUTSNS_PIN = 1 [18:33:07]*** CUTSNS_PIN = 0 [18:33:07]*** Brake cut motor [18:33:07]Read from MH i2c: 01 [18:33:07]MH_I2C_Read... [18:33:07]*** Stop cut motor [18:33:07]*** Cut end [18:33:07]Read from MH i2c: 01 07 00 [18:33:07]MH_I2C_Read... [18:33:07]Read from MH i2c: 01 07 00 E5 66 00 00 00 00 00 FF 0F 60 [18:33:07]process_action close_receipt done [18:33:07]requested_data is exist [18:33:07]produce_requested_data [18:33:07]requested_item fm.sn is exist - process it [18:33:07]wFMCommunicate request_size=4 [18:33:07]MH_SAM_APDU [18:33:07]CAPDU: 80 11 00 00 [18:33:07]Write to MH i2c: E2 08 00 E6 66 80 11 00 00 00 00 00 00 C6 [18:33:07]Write i2c OK [18:33:07]MH_I2C_Read... [18:33:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:07]Read from MH i2c: E2 [18:33:07]MH_I2C_Read... [18:33:07]Read from MH i2c: E2 17 00 [18:33:07]MH_I2C_Read... [18:33:07]Read from MH i2c: E2 17 00 E6 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1D [18:33:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:33:07]wFMCommunicate OK [18:33:07]requested_item fd.num is exist - process it [18:33:07]SAM_PROTO_GetFieldsCounters [18:33:07]wFMCommunicate request_size=4 [18:33:07]MH_SAM_APDU [18:33:07]CAPDU: 80 13 00 00 [18:33:07]Write to MH i2c: E2 08 00 E7 66 80 13 00 00 00 00 00 00 C9 [18:33:07]Write i2c OK [18:33:07]MH_I2C_Read... [18:33:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:33:07]Read from MH i2c: E2 [18:33:07]MH_I2C_Read... [18:33:07]Read from MH i2c: E2 62 00 [18:33:07]MH_I2C_Read... [18:33:07]Read from MH i2c: E2 62 00 E7 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1F 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 BD [18:33:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1F 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:33:07]wFMCommunicate OK [18:33:07]SAM_PROTO_GetFieldsCounters done [18:33:07]requested_item shift.num is exist - process it [18:33:07]requested_item shift.opened is exist - process it [18:33:07]req_shift_opened [18:33:07]FM_GetShiftState [18:33:07]SAM_PROTO_GetShiftState [18:33:07]wFMCommunicate request_size=4 [18:33:07]MH_SAM_APDU [18:33:07]CAPDU: 80 13 01 00 [18:33:07]Write to MH i2c: E2 08 00 E8 66 80 13 01 00 00 00 00 00 CB [18:33:07]Write i2c OK [18:33:07]MH_I2C_Read... [18:33:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:07]Read from MH i2c: E2 [18:33:07]MH_I2C_Read... [18:33:07]Read from MH i2c: E2 0E 00 [18:33:07]MH_I2C_Read... [18:33:07]Read from MH i2c: E2 0E 00 E8 66 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 92 [18:33:07]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:33:07]wFMCommunicate OK [18:33:07]SAM_PROTO_GetShiftState done [18:33:07]FM_GetShiftState done [18:33:07]req_shift_opened done [18:33:07]requested_item shift.open_date is exist - process it [18:33:07]req_shift_open_date [18:33:07]req_shift_open_date done [18:33:07]produce_requested_data done [18:33:07]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228383,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [18:33:08]process_action_free close_receipt [18:33:08]json_value_free [18:33:08]json_value_free done [18:33:08]process_json_proto returns [18:33:08]Send response to host [18:33:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228383,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [18:33:08]free response buf [18:33:08]execute_script done [18:33:08]execute_script returns [18:33:08]free content buf [18:33:08]Sock 7.Close socket [18:33:08]Sock 7.Thread stoped [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:33]accept exits with 10 [18:33:33]New connection [18:33:33]New thread 3067137380 created [18:33:33]Thread 3066994020 joined [18:33:33]Waiting for new connection... [18:33:33] Sock 10.Parse request [18:33:33]Sock 10.Check first char [18:33:33]Sock 10.First char is OK [18:33:33]request: POST /json_proto HTTP/1.0 [18:33:33]Method: POST [18:33:33]URL: /json_proto [18:33:33]Method is POST - this is cgi request [18:33:33]url: /json_proto [18:33:33]query_string will be loaded in cgi processing [18:33:33]execute_cgi json_proto POST (null) [18:33:33]execute_cgi path=json_proto method=POST [18:33:33]POST find Content-Length [18:33:33]Host: 172.17.44.195:8080 [18:33:33]Content-Length: 621 [18:33:33]Content-Type: application/json [18:33:33] [18:33:33]POST finish read [18:33:33]Found Content-Length = 621 [18:33:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:33]execute_script... [18:33:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:33]POST & json_proto [18:33:33]process_json_proto [18:33:33]json parsed OK: [18:33:33]protocol is kg_v1.0 [18:33:33]action value=close_receipt [18:33:33]process_action close_receipt [18:33:33]cmd_close_receipt [18:33:33]MH_GetDate [18:33:33]Write to MH i2c: F0 00 00 E9 66 3E [18:33:33]Write i2c OK [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: F0 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: F0 09 00 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: F0 09 00 E9 66 00 02 F0 17 67 82 C9 CF 66 37 [18:33:33]GetLastDocTimeStamp 1729621989 [18:33:33]current date 1729622018 [18:33:33]FM_GetShiftState [18:33:33]SAM_PROTO_GetShiftState [18:33:33]wFMCommunicate request_size=4 [18:33:33]MH_SAM_APDU [18:33:33]CAPDU: 80 13 01 00 [18:33:33]Write to MH i2c: E2 08 00 EA 66 80 13 01 00 00 00 00 00 CD [18:33:33]Write i2c OK [18:33:33]MH_I2C_Read... [18:33:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:33]Read from MH i2c: E2 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: E2 0E 00 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: E2 0E 00 EA 66 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 94 [18:33:33]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:33:33]wFMCommunicate OK [18:33:33]SAM_PROTO_GetShiftState done [18:33:33]FM_GetShiftState done [18:33:33]opened in 1729555538 [18:33:33]opened+sec_in_day 1729641938 [18:33:33]quantity*price = 50000 [18:33:33]sum+1 = 50001 [18:33:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 348 22.10.2024 18:33 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228384 ФПД: 195271274356738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183338&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228384&fm=195271274356738&tin=02508201610067®Number=0000000000091685&sum=50000 [18:33:34]StoreToDocumentArchive [18:33:34]shift 535 fd 228384 [18:33:34]save to /storage/0535/doc_00228384 [18:33:34]save last doc name /storage/0535/doc_00228384 to /storage/kkm_last_doc_name [18:33:34]save OK [18:33:34]Clear old archive folders... [18:33:34]ProcessDocumentItem done err = 0, tmpTLVsize=244 [18:33:34]tlvbuf is 0092DA80 [18:33:34]SAM_PROTO_ClearQueue [18:33:34]wFMCommunicate request_size=4 [18:33:34]MH_SAM_APDU [18:33:34]CAPDU: 80 09 00 00 [18:33:34]Write to MH i2c: E2 08 00 F7 66 80 09 00 00 00 00 00 00 CF [18:33:34]Write i2c OK [18:33:34]MH_I2C_Read... [18:33:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:33:34]Read from MH i2c: E2 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 03 00 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 03 00 F7 66 00 90 00 D1 [18:33:34]RAPDU: 90 00 [18:33:34]wFMCommunicate OK [18:33:34]SAM_PROTO_ClearQueue done [18:33:34]KKMCreateOFDPacket [18:33:34]OFDProtocolAddRootSTLVToBuf [18:33:34]FM_MakeSignedData [18:33:34]FM_MakeSignedData [18:33:34]SAM_PROTO_SignData [18:33:34]wFMCommunicate request_size=4 [18:33:34]MH_SAM_APDU [18:33:34]CAPDU: 80 0D 01 02 [18:33:34]Write to MH i2c: E2 08 00 F8 66 80 0D 01 02 00 00 00 00 D7 [18:33:34]Write i2c OK [18:33:34]MH_I2C_Read... [18:33:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:34]Read from MH i2c: E2 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 03 00 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 03 00 F8 66 00 90 00 D2 [18:33:34]RAPDU: 90 00 [18:33:34]wFMCommunicate OK [18:33:34]wFMCommunicate request_size=253 [18:33:34]MH_SAM_APDU [18:33:34]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 02 F0 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 20 7C 03 00 35 04 06 00 B1 99 22 F1 60 02 [18:33:34]Write to MH i2c: E2 00 01 F9 66 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 02 F0 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 20 7C 03 00 35 04 06 00 B1 99 22 F1 60 02 00 00 1D [18:33:34]Write i2c OK [18:33:34]MH_I2C_Read... [18:33:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:34]Read from MH i2c: E2 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 03 00 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 03 00 F9 66 00 90 00 D3 [18:33:34]RAPDU: 90 00 [18:33:34]wFMCommunicate OK [18:33:34]wFMCommunicate request_size=4 [18:33:34]MH_SAM_APDU [18:33:34]CAPDU: 80 0D 03 02 [18:33:34]Write to MH i2c: E2 08 00 FA 66 80 0D 03 02 00 00 00 00 DB [18:33:34]Write i2c OK [18:33:34]MH_I2C_Read... [18:33:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:33:34]Read from MH i2c: E2 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 0B 00 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 0B 00 FA 66 00 56 5F 70 5F 18 AC 9A 50 90 00 0E [18:33:34]RAPDU: 56 5F 70 5F 18 AC 9A 50 90 00 [18:33:34]wFMCommunicate OK [18:33:34]SAM_PROTO_SignData done [18:33:34]FM_MakeSignedData done [18:33:34]CreateOFDProtocolMessage [18:33:34]wFMCommunicate request_size=4 [18:33:34]MH_SAM_APDU [18:33:34]CAPDU: 80 11 00 00 [18:33:34]Write to MH i2c: E2 08 00 FB 66 80 11 00 00 00 00 00 00 DB [18:33:34]Write i2c OK [18:33:34]MH_I2C_Read... [18:33:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:34]Read from MH i2c: E2 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 17 00 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 17 00 FB 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 32 [18:33:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:33:34]wFMCommunicate OK [18:33:34]CreateOFDProtocolMessage done [18:33:34]OFDSenderStorePacket 228384 [18:33:34]StoreOFDPacket docnum=228384 [18:33:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 5A 0E 00 01 08 73 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 02 F0 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 20 7C 03 00 35 04 06 00 B1 99 22 F1 60 02 56 5F 70 5F 18 AC 9A 50 [18:33:34]CheckFolder [18:33:34]dirname=/storage/ofd_packets [18:33:34]CheckFolder done [18:33:34]ProducePacketName [18:33:34]name=ofd_packets/00228384 [18:33:34]NVStorageSaveData ofd_packets/00228384 [18:33:34]File name is /storage/ofd_packets/00228384 [18:33:34]Write 294 bytes [18:33:34]NVStorageSaveData done [18:33:34]OFDSenderStorePacket done [18:33:34]KKMCreateOFDPacket done [18:33:34]NVStorageSaveData kkm_last_timestamp [18:33:34]File name is /storage/kkm_last_timestamp [18:33:34]Write 4 bytes [18:33:34]NVStorageSaveData done [18:33:34]ExternCall_PrintAddStr [18:33:34]wPrintStart [18:33:34]Write to MH i2c: 01 00 00 FC 66 62 [18:33:34]Write i2c OK [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: 01 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: 01 07 00 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: 01 07 00 FC 66 00 00 00 00 00 FF 0F 77 [18:33:34]RasterBufferAndPrint [18:33:34]line Счет N : (1)1964932 [18:33:34]line ИНН: 02508201610067 [18:33:34]line Контрольно-Кассовый Чек [18:33:34]line ПРОДАЖА [18:33:34]line ТРК (МРК, ГНК) : 42 [18:33:34]line Товар: 2710124130 [18:33:34]line SU-92 [18:33:34]line 7.310 * 68.40 [18:33:34]line = 500.00 [18:33:34]line НДС 12% НСП 1% [18:33:34]line > о реализуемом товаре [18:33:34]line ИТОГО: 500.00 [18:33:34]line НСП 1% : 4.42 [18:33:34]line НДС 12% : 53.10 [18:33:34]line Наличными: 500.00 [18:33:34]line Безнал.: 0.00 [18:33:34]line Место: АЗС № 133 "Партнер Нефть" [18:33:34]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:33:34]line СНО: Общий режим [18:33:34]line Чек 348 22.10.2024 18:33 [18:33:34]line Смена: 535 ФФД: 1.0 [18:33:34]line ЗНМ: 0300000091 [18:33:34]line РНМ: 0000000000091685 [18:33:34]line Версия ККМ: 001 [18:33:34]line ФМ: 0000000000871839 [18:33:34]line ФД: 228384 [18:33:34]line ФПД: 195271274356738 [18:33:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183338&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228384&fm=195271274356738&tin=02508201610067®Number=0000000000091685&sum=50000 [18:33:34]OFD Sender: Processing packet 228384 [packets to send 38, broken 37] [18:33:34]ProducePacketName [18:33:34]name=ofd_packets/00228384 [18:33:34]OFD Sender: To server: pG, [18:33:34]CommunicateWithHost lk.salyk.kg:30040 [18:33:34]ConnectInit lk.salyk.kg [18:33:34]written 0, free lines is 4095 [18:33:35]Connected sock=9 [18:33:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 5A 0E 00 01 08 73 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 02 F0 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 20 7C 03 00 35 04 06 00 B1 99 22 F1 60 02 56 5F 70 5F 18 AC 9A 50 [18:33:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 8C 89 47 00 B7 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 38 37 31 38 33 39 10 04 04 00 20 7C 03 00 F4 03 04 00 F9 9A 17 67 B6 04 01 00 00 99 00 9F E6 C1 3F BD 7C [18:33:35]CommunicateWithHost err = 0 [18:33:35]CheckOFDResponse [18:33:35]1017 (14) - 77093643461234 [18:33:35]1041 (16) - 0000000000871839 [18:33:35]1040 (4) - 228384 [18:33:35]1012 (4) - 22.10.2024 12:30 [18:33:35]1206 (1) - 0 [18:33:35]OFD Sender: Remove packet 228384 [18:33:35]ProducePacketName [18:33:35]name=ofd_packets/00228384 [18:33:35]NVStorageDeleteData [18:33:35]Write to MH i2c: 01 00 00 23 67 8A [18:33:35]Write i2c OK [18:33:35]MH_I2C_Read... [18:33:35]Read from MH i2c: 01 [18:33:35]MH_I2C_Read... [18:33:35]Read from MH i2c: 01 07 00 [18:33:35]MH_I2C_Read... [18:33:35]Read from MH i2c: 01 07 00 23 67 00 00 00 00 00 E2 0C 7F [18:33:35]RasterBufferAndPrint [18:33:35]line [18:33:35]line [18:33:35]line [18:33:35]line [18:33:35]line [18:33:35]written 0, free lines is 3302 [18:33:35]MH_Cut [18:33:35]Write to MH i2c: D1 01 00 2A 67 01 63 [18:33:35]Write i2c OK [18:33:35]MH_I2C_Read... [18:33:35]Read from MH i2c: D1 [18:33:35]MH_I2C_Read... [18:33:35]Read from MH i2c: D1 01 00 [18:33:35]MH_I2C_Read... [18:33:35]Read from MH i2c: D1 01 00 2A 67 00 62 [18:33:35]Write to MH i2c: 01 00 00 2B 67 92 [18:33:35]Write i2c OK [18:33:35]MH_I2C_Read... [18:33:35]OFD Sender: No OFD packet to send [18:33:36]*** Cut start [18:33:36]*** Partial cut [18:33:36]*** CUTSNS_PIN = 1 [18:33:36]*** CUTSNS_PIN = 0 [18:33:36]*** Brake cut motor [18:33:36]Read from MH i2c: 01 [18:33:36]MH_I2C_Read... [18:33:36]*** Stop cut motor [18:33:36]*** Cut end [18:33:36]Read from MH i2c: 01 07 00 [18:33:36]MH_I2C_Read... [18:33:36]Read from MH i2c: 01 07 00 2B 67 00 00 00 00 00 FF 0F A7 [18:33:36]process_action close_receipt done [18:33:36]requested_data is exist [18:33:36]produce_requested_data [18:33:36]requested_item fm.sn is exist - process it [18:33:36]wFMCommunicate request_size=4 [18:33:36]MH_SAM_APDU [18:33:36]CAPDU: 80 11 00 00 [18:33:36]Write to MH i2c: E2 08 00 2C 67 80 11 00 00 00 00 00 00 0D [18:33:36]Write i2c OK [18:33:36]MH_I2C_Read... [18:33:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:36]Read from MH i2c: E2 [18:33:36]MH_I2C_Read... [18:33:36]Read from MH i2c: E2 17 00 [18:33:36]MH_I2C_Read... [18:33:36]Read from MH i2c: E2 17 00 2C 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 64 [18:33:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:33:36]wFMCommunicate OK [18:33:36]requested_item fd.num is exist - process it [18:33:36]SAM_PROTO_GetFieldsCounters [18:33:36]wFMCommunicate request_size=4 [18:33:36]MH_SAM_APDU [18:33:36]CAPDU: 80 13 00 00 [18:33:36]Write to MH i2c: E2 08 00 2D 67 80 13 00 00 00 00 00 00 10 [18:33:36]Write i2c OK [18:33:36]MH_I2C_Read... [18:33:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:33:37]Read from MH i2c: E2 [18:33:37]MH_I2C_Read... [18:33:37]Read from MH i2c: E2 62 00 [18:33:37]MH_I2C_Read... [18:33:37]Read from MH i2c: E2 62 00 2D 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 20 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 08 [18:33:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 20 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:33:37]wFMCommunicate OK [18:33:37]SAM_PROTO_GetFieldsCounters done [18:33:37]requested_item shift.num is exist - process it [18:33:37]requested_item shift.opened is exist - process it [18:33:37]req_shift_opened [18:33:37]FM_GetShiftState [18:33:37]SAM_PROTO_GetShiftState [18:33:37]wFMCommunicate request_size=4 [18:33:37]MH_SAM_APDU [18:33:37]CAPDU: 80 13 01 00 [18:33:37]Write to MH i2c: E2 08 00 2E 67 80 13 01 00 00 00 00 00 12 [18:33:37]Write i2c OK [18:33:37]MH_I2C_Read... [18:33:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:37]Read from MH i2c: E2 [18:33:37]MH_I2C_Read... [18:33:37]Read from MH i2c: E2 0E 00 [18:33:37]MH_I2C_Read... [18:33:37]Read from MH i2c: E2 0E 00 2E 67 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 D9 [18:33:37]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:33:37]wFMCommunicate OK [18:33:37]SAM_PROTO_GetShiftState done [18:33:37]FM_GetShiftState done [18:33:37]req_shift_opened done [18:33:37]requested_item shift.open_date is exist - process it [18:33:37]req_shift_open_date [18:33:37]req_shift_open_date done [18:33:37]produce_requested_data done [18:33:37]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228384,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [18:33:37]process_action_free close_receipt [18:33:37]json_value_free [18:33:37]json_value_free done [18:33:37]process_json_proto returns [18:33:37]Send response to host [18:33:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228384,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [18:33:37]free response buf [18:33:37]execute_script done [18:33:37]execute_script returns [18:33:37]free content buf [18:33:37]Sock 10.Close socket [18:33:37]Sock 10.Thread stoped [18:33:40]OFD Sender: No OFD packet to send [18:33:45]OFD Sender: No OFD packet to send [18:33:50]OFD Sender: No OFD packet to send [18:33:55]OFD Sender: No OFD packet to send [18:34:00]OFD Sender: No OFD packet to send [18:34:05]OFD Sender: No OFD packet to send [18:34:10]OFD Sender: No OFD packet to send [18:34:15]OFD Sender: No OFD packet to send [18:34:20]OFD Sender: No OFD packet to send [18:34:25]OFD Sender: No OFD packet to send [18:34:30]OFD Sender: No OFD packet to send [18:34:35]OFD Sender: No OFD packet to send [18:34:40]OFD Sender: No OFD packet to send [18:34:45]OFD Sender: No OFD packet to send [18:34:50]OFD Sender: No OFD packet to send [18:34:55]OFD Sender: No OFD packet to send [18:35:00]OFD Sender: No OFD packet to send [18:35:05]OFD Sender: No OFD packet to send [18:35:10]OFD Sender: No OFD packet to send [18:35:15]OFD Sender: No OFD packet to send [18:35:20]OFD Sender: No OFD packet to send [18:35:25]OFD Sender: No OFD packet to send [18:35:30]OFD Sender: No OFD packet to send [18:35:35]OFD Sender: No OFD packet to send [18:35:40]accept exits with 7 [18:35:40]New connection [18:35:40]New thread 3066994020 created [18:35:40]Thread 3067137380 joined [18:35:40]Waiting for new connection... [18:35:40] Sock 7.Parse request [18:35:40]Sock 7.Check first char [18:35:40]Sock 7.First char is OK [18:35:40]request: POST /json_proto HTTP/1.0 [18:35:40]Method: POST [18:35:40]URL: /json_proto [18:35:40]Method is POST - this is cgi request [18:35:40]url: /json_proto [18:35:40]query_string will be loaded in cgi processing [18:35:40]execute_cgi json_proto POST (null) [18:35:40]execute_cgi path=json_proto method=POST [18:35:40]POST find Content-Length [18:35:40]Host: 172.17.44.195:8080 [18:35:40]Content-Length: 680 [18:35:40]Content-Type: application/json [18:35:40] [18:35:40]POST finish read [18:35:40]Found Content-Length = 680 [18:35:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964933", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:40]execute_script... [18:35: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)1964933", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:40]POST & json_proto [18:35:40]process_json_proto [18:35:40]json parsed OK: [18:35:40]protocol is kg_v1.0 [18:35:40]action value=close_receipt [18:35:40]process_action close_receipt [18:35:40]cmd_close_receipt [18:35:40]MH_GetDate [18:35:40]Write to MH i2c: F0 00 00 2F 67 85 [18:35:40]Write i2c OK [18:35:40]MH_I2C_Read... [18:35:40]Read from MH i2c: F0 [18:35:40]MH_I2C_Read... [18:35:40]Read from MH i2c: F0 09 00 [18:35:40]MH_I2C_Read... [18:35:40]Read from MH i2c: F0 09 00 2F 67 00 82 F0 17 67 82 C9 CF 66 FE [18:35:40]GetLastDocTimeStamp 1729622018 [18:35:40]current date 1729622146 [18:35:40]FM_GetShiftState [18:35:40]SAM_PROTO_GetShiftState [18:35:40]wFMCommunicate request_size=4 [18:35:40]MH_SAM_APDU [18:35:40]CAPDU: 80 13 01 00 [18:35:40]Write to MH i2c: E2 08 00 30 67 80 13 01 00 00 00 00 00 14 [18:35:40]Write i2c OK [18:35:40]MH_I2C_Read... [18:35:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:40]Read from MH i2c: E2 [18:35:40]MH_I2C_Read... [18:35:40]Read from MH i2c: E2 0E 00 [18:35:40]MH_I2C_Read... [18:35:40]Read from MH i2c: E2 0E 00 30 67 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 DB [18:35:40]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:35:40]wFMCommunicate OK [18:35:40]SAM_PROTO_GetShiftState done [18:35:40]FM_GetShiftState done [18:35:40]opened in 1729555538 [18:35:40]opened+sec_in_day 1729641938 [18:35:40]quantity*price = 100050 [18:35:40]sum+1 = 100052 [18:35: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 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 349 22.10.2024 18:35 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228385 ФПД: 192073739735170 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183546&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228385&fm=192073739735170&tin=02508201610067®Number=0000000000091685&sum=100000 [18:35:41]StoreToDocumentArchive [18:35:41]shift 535 fd 228385 [18:35:41]save to /storage/0535/doc_00228385 [18:35:41]save last doc name /storage/0535/doc_00228385 to /storage/kkm_last_doc_name [18:35:41]save OK [18:35:41]Clear old archive folders... [18:35:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:35:41]tlvbuf is 00984A30 [18:35:41]SAM_PROTO_ClearQueue [18:35:41]wFMCommunicate request_size=4 [18:35:41]MH_SAM_APDU [18:35:41]CAPDU: 80 09 00 00 [18:35:41]Write to MH i2c: E2 08 00 3D 67 80 09 00 00 00 00 00 00 16 [18:35:41]Write i2c OK [18:35:41]MH_I2C_Read... [18:35:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:35:42]Read from MH i2c: E2 [18:35:42]MH_I2C_Read... [18:35:42]Read from MH i2c: E2 03 00 [18:35:42]MH_I2C_Read... [18:35:42]Read from MH i2c: E2 03 00 3D 67 00 90 00 18 [18:35:42]RAPDU: 90 00 [18:35:42]wFMCommunicate OK [18:35:42]SAM_PROTO_ClearQueue done [18:35:42]KKMCreateOFDPacket [18:35:42]OFDProtocolAddRootSTLVToBuf [18:35:42]FM_MakeSignedData [18:35:42]FM_MakeSignedData [18:35:42]SAM_PROTO_SignData [18:35:42]wFMCommunicate request_size=4 [18:35:42]MH_SAM_APDU [18:35:42]CAPDU: 80 0D 01 02 [18:35:42]Write to MH i2c: E2 08 00 3E 67 80 0D 01 02 00 00 00 00 1E [18:35:42]Write i2c OK [18:35:42]MH_I2C_Read... [18:35:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:35:42]Read from MH i2c: E2 [18:35:42]MH_I2C_Read... [18:35:42]Read from MH i2c: E2 03 00 [18:35:42]MH_I2C_Read... [18:35:42]Read from MH i2c: E2 03 00 3E 67 00 90 00 19 [18:35:42]RAPDU: 90 00 [18:35:42]wFMCommunicate OK [18:35:42]wFMCommunicate request_size=255 [18:35:42]MH_SAM_APDU [18:35:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 5D 01 00 00 F4 03 04 00 82 F0 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 21 7C 03 00 35 04 06 00 AE B0 A7 07 [18:35:42]Write to MH i2c: E2 02 01 3F 67 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 5D 01 00 00 F4 03 04 00 82 F0 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 21 7C 03 00 35 04 06 00 AE B0 A7 07 00 00 BE [18:35:42]Write i2c OK [18:35:42]MH_I2C_Read... [18:35:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:42]Read from MH i2c: E2 [18:35:42]MH_I2C_Read... [18:35:42]Read from MH i2c: E2 03 00 [18:35:42]MH_I2C_Read... [18:35:42]Read from MH i2c: E2 03 00 3F 67 00 90 00 1A [18:35:42]RAPDU: 90 00 [18:35:42]wFMCommunicate OK [18:35:42]wFMCommunicate request_size=7 [18:35:42]MH_SAM_APDU [18:35:42]CAPDU: 80 0D 02 02 02 10 82 [18:35:42]Write to MH i2c: E2 0A 00 40 67 80 0D 02 02 02 00 10 82 00 00 B7 [18:35:42]Write i2c OK [18:35:42]MH_I2C_Read... [18:35:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:42]Read from MH i2c: E2 [18:35:42]MH_I2C_Read... [18:35:42]Read from MH i2c: E2 03 00 [18:35:42]MH_I2C_Read... [18:35:42]Read from MH i2c: E2 03 00 40 67 00 90 00 1B [18:35:42]RAPDU: 90 00 [18:35:42]wFMCommunicate OK [18:35:42]wFMCommunicate request_size=4 [18:35:42]MH_SAM_APDU [18:35:42]CAPDU: 80 0D 03 02 [18:35:42]Write to MH i2c: E2 08 00 41 67 80 0D 03 02 00 00 00 00 23 [18:35:42]Write i2c OK [18:35:42]MH_I2C_Read... [18:35:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:35:42]Read from MH i2c: E2 [18:35:42]MH_I2C_Read... [18:35:42]Read from MH i2c: E2 0B 00 [18:35:42]MH_I2C_Read... [18:35:42]Read from MH i2c: E2 0B 00 41 67 00 7A 30 1D 39 55 F2 A8 10 90 00 23 [18:35:42]RAPDU: 7A 30 1D 39 55 F2 A8 10 90 00 [18:35:42]wFMCommunicate OK [18:35:42]SAM_PROTO_SignData done [18:35:42]FM_MakeSignedData done [18:35:42]CreateOFDProtocolMessage [18:35:42]wFMCommunicate request_size=4 [18:35:42]MH_SAM_APDU [18:35:42]CAPDU: 80 11 00 00 [18:35:42]Write to MH i2c: E2 08 00 42 67 80 11 00 00 00 00 00 00 23 [18:35:42]Write i2c OK [18:35:42]MH_I2C_Read... [18:35:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:42]Read from MH i2c: E2 [18:35:42]MH_I2C_Read... [18:35:42]Read from MH i2c: E2 17 00 [18:35:42]MH_I2C_Read... [18:35:42]Read from MH i2c: E2 17 00 42 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7A [18:35:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:35:42]wFMCommunicate OK [18:35:42]CreateOFDProtocolMessage done [18:35:42]OFDSenderStorePacket 228385 [18:35:42]StoreOFDPacket docnum=228385 [18:35:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 AD BA 04 01 74 1F 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 5D 01 00 00 F4 03 04 00 82 F0 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 21 7C 03 00 35 04 06 00 AE B0 A7 07 10 82 7A 30 1D 39 55 F2 A8 10 [18:35:42]CheckFolder [18:35:42]dirname=/storage/ofd_packets [18:35:42]CheckFolder done [18:35:42]ProducePacketName [18:35:42]name=ofd_packets/00228385 [18:35:42]NVStorageSaveData ofd_packets/00228385 [18:35:42]File name is /storage/ofd_packets/00228385 [18:35:42]Write 298 bytes [18:35:42]NVStorageSaveData done [18:35:42]OFDSenderStorePacket done [18:35:42]KKMCreateOFDPacket done [18:35:42]NVStorageSaveData kkm_last_timestamp [18:35:42]File name is /storage/kkm_last_timestamp [18:35:42]Write 4 bytes [18:35:42]NVStorageSaveData done [18:35:42]ExternCall_PrintAddStr [18:35:42]wPrintStart [18:35:42]Write to MH i2c: 01 00 00 43 67 AA [18:35:42]Write i2c OK [18:35:42]MH_I2C_Read... [18:35:42]Read from MH i2c: 01 [18:35:42]MH_I2C_Read... [18:35:42]Read from MH i2c: 01 07 00 [18:35:42]MH_I2C_Read... [18:35:42]Read from MH i2c: 01 07 00 43 67 00 00 00 00 00 FF 0F BF [18:35:42]RasterBufferAndPrint [18:35:42]line Счет N : (1)1964933 [18:35:42]line ИНН: 02508201610067 [18:35:42]line Контрольно-Кассовый Чек [18:35:42]line ПРОДАЖА [18:35:42]line ТРК (МРК, ГНК) : 51 [18:35:42]line Товар: 2710194210 [18:35:42]line ДТ-К-5 [18:35:42]line 13.130 * 76.20 [18:35:42]line = 1000.51 [18:35:42]line НДС 12% НСП 1% [18:35:42]line > о реализуемом товаре [18:35:42]line ОКРУГЛЕНИЕ: -0.51 [18:35:42]line ИТОГО: 1000.00 [18:35:42]line Внесено: 1000.00 [18:35:42]line СДАЧА: 0.00 [18:35:42]line НСП 1% : 8.85 [18:35:42]line НДС 12% : 106.25 [18:35:42]line Наличными: 1000.00 [18:35:42]line Безнал.: 0.00 [18:35:42]line Место: АЗС № 133 "Партнер Нефть" [18:35:42]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:35:42]line СНО: Общий режим [18:35:42]line Чек 349 22.10.2024 18:35 [18:35:42]line Смена: 535 ФФД: 1.0 [18:35:42]line ЗНМ: 0300000091 [18:35:42]line РНМ: 0000000000091685 [18:35:42]line Версия ККМ: 001 [18:35:42]line ФМ: 0000000000871839 [18:35:42]line ФД: 228385 [18:35:42]line ФПД: 192073739735170 [18:35:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183546&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228385&fm=192073739735170&tin=02508201610067®Number=0000000000091685&sum=100000 [18:35:42]OFD Sender: Processing packet 228385 [packets to send 38, broken 37] [18:35:42]ProducePacketName [18:35:42]name=ofd_packets/00228385 [18:35:42]OFD Sender: To server: pG, [18:35:42]CommunicateWithHost lk.salyk.kg:30040 [18:35:42]ConnectInit lk.salyk.kg [18:35:42]written 0, free lines is 4095 [18:35:42]Connected sock=10 [18:35:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 AD BA 04 01 74 1F 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 5D 01 00 00 F4 03 04 00 82 F0 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 21 7C 03 00 35 04 06 00 AE B0 A7 07 10 82 7A 30 1D 39 55 F2 A8 10 [18:35:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 95 71 47 00 B5 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 21 7C 03 00 F4 03 04 00 79 9B 17 67 B6 04 01 00 00 3D 22 B7 BB 17 C2 32 85 [18:35:43]CommunicateWithHost err = 0 [18:35:43]CheckOFDResponse [18:35:43]1017 (14) - 77093643461234 [18:35:43]1041 (16) - 0000000000871839 [18:35:43]1040 (4) - 228385 [18:35:43]1012 (4) - 22.10.2024 12:32 [18:35:43]1206 (1) - 0 [18:35:43]OFD Sender: Remove packet 228385 [18:35:43]ProducePacketName [18:35:43]name=ofd_packets/00228385 [18:35:43]NVStorageDeleteData [18:35:43]Write to MH i2c: 01 00 00 6D 67 D4 [18:35:43]Write i2c OK [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: 01 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: 01 07 00 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: 01 07 00 6D 67 00 00 00 00 00 A9 0C 90 [18:35:43]RasterBufferAndPrint [18:35:43]line [18:35:43]line [18:35:43]line [18:35:43]line [18:35:43]line [18:35:43]written 0, free lines is 3245 [18:35:43]MH_Cut [18:35:43]Write to MH i2c: D1 01 00 74 67 01 AD [18:35:43]Write i2c OK [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: D1 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: D1 01 00 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: D1 01 00 74 67 00 AC [18:35:43]Write to MH i2c: 01 00 00 75 67 DC [18:35:43]Write i2c OK [18:35:43]MH_I2C_Read... [18:35:43]OFD Sender: No OFD packet to send [18:35:44]*** Cut start [18:35:44]*** Partial cut [18:35:44]*** CUTSNS_PIN = 1 [18:35:44]*** CUTSNS_PIN = 0 [18:35:44]*** Brake cut motor [18:35:44]Read from MH i2c: 01 [18:35:44]MH_I2C_Read... [18:35:44]*** Stop cut motor [18:35:44]*** Cut end [18:35:44]Read from MH i2c: 01 07 00 [18:35:44]MH_I2C_Read... [18:35:44]Read from MH i2c: 01 07 00 75 67 00 00 00 00 00 FF 0F F1 [18:35:44]process_action close_receipt done [18:35:44]requested_data is exist [18:35:44]produce_requested_data [18:35:44]requested_item fm.sn is exist - process it [18:35:44]wFMCommunicate request_size=4 [18:35:44]MH_SAM_APDU [18:35:44]CAPDU: 80 11 00 00 [18:35:44]Write to MH i2c: E2 08 00 76 67 80 11 00 00 00 00 00 00 57 [18:35:44]Write i2c OK [18:35:44]MH_I2C_Read... [18:35:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:44]Read from MH i2c: E2 [18:35:44]MH_I2C_Read... [18:35:44]Read from MH i2c: E2 17 00 [18:35:44]MH_I2C_Read... [18:35:44]Read from MH i2c: E2 17 00 76 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AE [18:35:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:35:44]wFMCommunicate OK [18:35:44]requested_item fd.num is exist - process it [18:35:44]SAM_PROTO_GetFieldsCounters [18:35:44]wFMCommunicate request_size=4 [18:35:44]MH_SAM_APDU [18:35:44]CAPDU: 80 13 00 00 [18:35:44]Write to MH i2c: E2 08 00 77 67 80 13 00 00 00 00 00 00 5A [18:35:44]Write i2c OK [18:35:44]MH_I2C_Read... [18:35:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:45]Read from MH i2c: E2 [18:35:45]MH_I2C_Read... [18:35:45]Read from MH i2c: E2 62 00 [18:35:45]MH_I2C_Read... [18:35:45]Read from MH i2c: E2 62 00 77 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 21 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 56 [18:35:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 21 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:35:45]wFMCommunicate OK [18:35:45]SAM_PROTO_GetFieldsCounters done [18:35:45]requested_item shift.num is exist - process it [18:35:45]requested_item shift.opened is exist - process it [18:35:45]req_shift_opened [18:35:45]FM_GetShiftState [18:35:45]SAM_PROTO_GetShiftState [18:35:45]wFMCommunicate request_size=4 [18:35:45]MH_SAM_APDU [18:35:45]CAPDU: 80 13 01 00 [18:35:45]Write to MH i2c: E2 08 00 78 67 80 13 01 00 00 00 00 00 5C [18:35:45]Write i2c OK [18:35:45]MH_I2C_Read... [18:35:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:45]Read from MH i2c: E2 [18:35:45]MH_I2C_Read... [18:35:45]Read from MH i2c: E2 0E 00 [18:35:45]MH_I2C_Read... [18:35:45]Read from MH i2c: E2 0E 00 78 67 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 23 [18:35:45]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:35:45]wFMCommunicate OK [18:35:45]SAM_PROTO_GetShiftState done [18:35:45]FM_GetShiftState done [18:35:45]req_shift_opened done [18:35:45]requested_item shift.open_date is exist - process it [18:35:45]req_shift_open_date [18:35:45]req_shift_open_date done [18:35:45]produce_requested_data done [18:35:45]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228385,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [18:35:45]process_action_free close_receipt [18:35:45]json_value_free [18:35:45]json_value_free done [18:35:45]process_json_proto returns [18:35:45]Send response to host [18:35:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228385,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [18:35:45]free response buf [18:35:45]execute_script done [18:35:45]execute_script returns [18:35:45]free content buf [18:35:45]Sock 7.Close socket [18:35:45]Sock 7.Thread stoped [18:35:48]OFD Sender: No OFD packet to send [18:35:53]OFD Sender: No OFD packet to send [18:35:58]OFD Sender: No OFD packet to send [18:36:03]OFD Sender: No OFD packet to send [18:36:08]OFD Sender: No OFD packet to send [18:36:13]OFD Sender: No OFD packet to send [18:36:18]OFD Sender: No OFD packet to send [18:36:23]OFD Sender: No OFD packet to send [18:36:28]OFD Sender: No OFD packet to send [18:36:33]OFD Sender: No OFD packet to send [18:36:38]OFD Sender: No OFD packet to send [18:36:43]OFD Sender: No OFD packet to send [18:36:48]OFD Sender: No OFD packet to send [18:36:53]OFD Sender: No OFD packet to send [18:36:58]OFD Sender: No OFD packet to send [18:37:03]OFD Sender: No OFD packet to send [18:37:08]OFD Sender: No OFD packet to send [18:37:13]OFD Sender: No OFD packet to send [18:37:18]OFD Sender: No OFD packet to send [18:37:23]OFD Sender: No OFD packet to send [18:37:28]OFD Sender: No OFD packet to send [18:37:33]OFD Sender: No OFD packet to send [18:37:38]OFD Sender: No OFD packet to send [18:37:43]OFD Sender: No OFD packet to send [18:37:48]OFD Sender: No OFD packet to send [18:37:53]OFD Sender: No OFD packet to send [18:37:58]OFD Sender: No OFD packet to send [18:38:03]OFD Sender: No OFD packet to send [18:38:08]accept exits with 9 [18:38:08]New connection [18:38:08]New thread 3067137380 created [18:38:08]Thread 3066994020 joined [18:38:08]Waiting for new connection... [18:38:08] Sock 9.Parse request [18:38:08]Sock 9.Check first char [18:38:08]Sock 9.First char is OK [18:38:08]request: POST /json_proto HTTP/1.0 [18:38:08]Method: POST [18:38:08]URL: /json_proto [18:38:08]Method is POST - this is cgi request [18:38:08]url: /json_proto [18:38:08]query_string will be loaded in cgi processing [18:38:08]execute_cgi json_proto POST (null) [18:38:08]execute_cgi path=json_proto method=POST [18:38:08]POST find Content-Length [18:38:08]Host: 172.17.44.195:8080 [18:38:08]Content-Length: 767 [18:38:08]Content-Type: application/json [18:38:08] [18:38:08]POST finish read [18:38:08]Found Content-Length = 767 [18:38:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.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: Mbank", "payments": [ { "type": 1, "sum" : 350.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:08]execute_script... [18:38: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)1964935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.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: Mbank", "payments": [ { "type": 1, "sum" : 350.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:08]POST & json_proto [18:38:08]process_json_proto [18:38:08]json parsed OK: [18:38:08]protocol is kg_v1.0 [18:38:08]action value=close_receipt [18:38:08]process_action close_receipt [18:38:08]cmd_close_receipt [18:38:08]MH_GetDate [18:38:08]Write to MH i2c: F0 00 00 79 67 CF [18:38:08]Write i2c OK [18:38:08]MH_I2C_Read... [18:38:08]Read from MH i2c: F0 [18:38:08]MH_I2C_Read... [18:38:08]Read from MH i2c: F0 09 00 [18:38:08]MH_I2C_Read... [18:38:08]Read from MH i2c: F0 09 00 79 67 00 15 F1 17 67 82 C9 CF 66 DC [18:38:08]GetLastDocTimeStamp 1729622146 [18:38:08]current date 1729622293 [18:38:08]FM_GetShiftState [18:38:08]SAM_PROTO_GetShiftState [18:38:08]wFMCommunicate request_size=4 [18:38:08]MH_SAM_APDU [18:38:08]CAPDU: 80 13 01 00 [18:38:08]Write to MH i2c: E2 08 00 7A 67 80 13 01 00 00 00 00 00 5E [18:38:08]Write i2c OK [18:38:08]MH_I2C_Read... [18:38:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:08]Read from MH i2c: E2 [18:38:08]MH_I2C_Read... [18:38:08]Read from MH i2c: E2 0E 00 [18:38:08]MH_I2C_Read... [18:38:08]Read from MH i2c: E2 0E 00 7A 67 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 25 [18:38:08]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:38:08]wFMCommunicate OK [18:38:08]SAM_PROTO_GetShiftState done [18:38:08]FM_GetShiftState done [18:38:08]opened in 1729555538 [18:38:08]opened+sec_in_day 1729641938 [18:38:08]quantity*price = 35055 [18:38:08]sum+1 = 35057 [18:38:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 350.56 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 0.00 Безнал.: 350.56 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 350 22.10.2024 18:38 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 228386 ФПД: 145280408596792 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183813&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228386&fm=145280408596792&tin=02508201610067®Number=0000000000091685&sum=35056 [18:38:09]StoreToDocumentArchive [18:38:09]shift 535 fd 228386 [18:38:09]save to /storage/0535/doc_00228386 [18:38:09]save last doc name /storage/0535/doc_00228386 to /storage/kkm_last_doc_name [18:38:09]save OK [18:38:09]Clear old archive folders... [18:38:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:38:09]tlvbuf is 00AB5BE0 [18:38:09]SAM_PROTO_ClearQueue [18:38:09]wFMCommunicate request_size=4 [18:38:09]MH_SAM_APDU [18:38:09]CAPDU: 80 09 00 00 [18:38:09]Write to MH i2c: E2 08 00 87 67 80 09 00 00 00 00 00 00 60 [18:38:09]Write i2c OK [18:38:09]MH_I2C_Read... [18:38:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:38:09]Read from MH i2c: E2 [18:38:09]MH_I2C_Read... [18:38:09]Read from MH i2c: E2 03 00 [18:38:09]MH_I2C_Read... [18:38:09]Read from MH i2c: E2 03 00 87 67 00 90 00 62 [18:38:09]RAPDU: 90 00 [18:38:09]wFMCommunicate OK [18:38:09]SAM_PROTO_ClearQueue done [18:38:09]KKMCreateOFDPacket [18:38:09]OFDProtocolAddRootSTLVToBuf [18:38:09]FM_MakeSignedData [18:38:09]FM_MakeSignedData [18:38:09]SAM_PROTO_SignData [18:38:09]wFMCommunicate request_size=4 [18:38:09]MH_SAM_APDU [18:38:09]CAPDU: 80 0D 01 02 [18:38:09]Write to MH i2c: E2 08 00 88 67 80 0D 01 02 00 00 00 00 68 [18:38:09]Write i2c OK [18:38:09]MH_I2C_Read... [18:38:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:38:09]Read from MH i2c: E2 [18:38:09]MH_I2C_Read... [18:38:09]Read from MH i2c: E2 03 00 [18:38:09]MH_I2C_Read... [18:38:09]Read from MH i2c: E2 03 00 88 67 00 90 00 63 [18:38:09]RAPDU: 90 00 [18:38:09]wFMCommunicate OK [18:38:09]wFMCommunicate request_size=255 [18:38:09]MH_SAM_APDU [18:38: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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 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 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 15 F1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 22 7C 03 00 35 04 06 00 84 [18:38:09]Write to MH i2c: E2 02 01 89 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 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 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 15 F1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 22 7C 03 00 35 04 06 00 84 00 00 9B [18:38:09]Write i2c OK [18:38:09]MH_I2C_Read... [18:38:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:09]Read from MH i2c: E2 [18:38:09]MH_I2C_Read... [18:38:09]Read from MH i2c: E2 03 00 [18:38:09]MH_I2C_Read... [18:38:09]Read from MH i2c: E2 03 00 89 67 00 90 00 64 [18:38:09]RAPDU: 90 00 [18:38:09]wFMCommunicate OK [18:38:09]wFMCommunicate request_size=10 [18:38:09]MH_SAM_APDU [18:38:09]CAPDU: 80 0D 02 02 05 21 BB 25 B1 38 [18:38:09]Write to MH i2c: E2 0D 00 8A 67 80 0D 02 02 05 00 21 BB 25 B1 38 00 00 5F [18:38:09]Write i2c OK [18:38:09]MH_I2C_Read... [18:38:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:09]Read from MH i2c: E2 [18:38:09]MH_I2C_Read... [18:38:09]Read from MH i2c: E2 03 00 [18:38:09]MH_I2C_Read... [18:38:09]Read from MH i2c: E2 03 00 8A 67 00 90 00 65 [18:38:09]RAPDU: 90 00 [18:38:09]wFMCommunicate OK [18:38:09]wFMCommunicate request_size=4 [18:38:09]MH_SAM_APDU [18:38:09]CAPDU: 80 0D 03 02 [18:38:09]Write to MH i2c: E2 08 00 8B 67 80 0D 03 02 00 00 00 00 6D [18:38:09]Write i2c OK [18:38:09]MH_I2C_Read... [18:38:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:38:09]Read from MH i2c: E2 [18:38:09]MH_I2C_Read... [18:38:09]Read from MH i2c: E2 0B 00 [18:38:09]MH_I2C_Read... [18:38:09]Read from MH i2c: E2 0B 00 8B 67 00 40 9A 1A 82 0A 15 5C FF 90 00 5E [18:38:09]RAPDU: 40 9A 1A 82 0A 15 5C FF 90 00 [18:38:09]wFMCommunicate OK [18:38:09]SAM_PROTO_SignData done [18:38:09]FM_MakeSignedData done [18:38:09]CreateOFDProtocolMessage [18:38:09]wFMCommunicate request_size=4 [18:38:09]MH_SAM_APDU [18:38:09]CAPDU: 80 11 00 00 [18:38:09]Write to MH i2c: E2 08 00 8C 67 80 11 00 00 00 00 00 00 6D [18:38:09]Write i2c OK [18:38:09]MH_I2C_Read... [18:38:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:09]Read from MH i2c: E2 [18:38:09]MH_I2C_Read... [18:38:09]Read from MH i2c: E2 17 00 [18:38:09]MH_I2C_Read... [18:38:09]Read from MH i2c: E2 17 00 8C 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C4 [18:38:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:38:09]wFMCommunicate OK [18:38:09]CreateOFDProtocolMessage done [18:38:09]OFDSenderStorePacket 228386 [18:38:09]StoreOFDPacket docnum=228386 [18:38:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 EC D5 07 01 21 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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 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 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 15 F1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 22 7C 03 00 35 04 06 00 84 21 BB 25 B1 38 40 9A 1A 82 0A 15 5C FF [18:38:09]CheckFolder [18:38:09]dirname=/storage/ofd_packets [18:38:09]CheckFolder done [18:38:09]ProducePacketName [18:38:09]name=ofd_packets/00228386 [18:38:09]NVStorageSaveData ofd_packets/00228386 [18:38:09]File name is /storage/ofd_packets/00228386 [18:38:09]Write 301 bytes [18:38:09]NVStorageSaveData done [18:38:09]OFDSenderStorePacket done [18:38:09]KKMCreateOFDPacket done [18:38:09]NVStorageSaveData kkm_last_timestamp [18:38:09]File name is /storage/kkm_last_timestamp [18:38:09]Write 4 bytes [18:38:09]NVStorageSaveData done [18:38:09]ExternCall_PrintAddStr [18:38:09]wPrintStart [18:38:09]Write to MH i2c: 01 00 00 8D 67 F4 [18:38:09]Write i2c OK [18:38:09]MH_I2C_Read... [18:38:09]Read from MH i2c: 01 [18:38:09]MH_I2C_Read... [18:38:09]Read from MH i2c: 01 07 00 [18:38:09]MH_I2C_Read... [18:38:09]Read from MH i2c: 01 07 00 8D 67 00 00 00 00 00 FF 0F 09 [18:38:09]RasterBufferAndPrint [18:38:09]line Счет N : (1)1964935 [18:38:09]line ИНН: 02508201610067 [18:38:09]line Контрольно-Кассовый Чек [18:38:09]line ПРОДАЖА [18:38:09]line ТРК (МРК, ГНК) : 33 [18:38:09]line Товар: 2710124130 [18:38:09]line Аи-92-К-5 [18:38:09]line 5.240 * 66.90 [18:38:09]line = 350.56 [18:38:09]line НДС 12% НСП 1% [18:38:09]line > о реализуемом товаре [18:38:09]line ИТОГО: 350.56 [18:38:09]line НСП 1% : 3.10 [18:38:09]line НДС 12% : 37.23 [18:38:09]line Наличными: 0.00 [18:38:09]line Безнал.: 350.56 [18:38:09]line Место: АЗС № 133 "Партнер Нефть" [18:38:09]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:38:09]line СНО: Общий режим [18:38:09]line Чек 350 22.10.2024 18:38 [18:38:09]line Смена: 535 ФФД: 1.0 [18:38:09]line ЗНМ: 0300000091 [18:38:09]line РНМ: 0000000000091685 [18:38:09]line Версия ККМ: 001 [18:38:09]line Платежная система: Mbank [18:38:09]line ФМ: 0000000000871839 [18:38:09]line ФД: 228386 [18:38:09]line ФПД: 145280408596792 [18:38:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183813&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228386&fm=145280408596792&tin=02508201610067®Number=0000000000091685&sum=35056 [18:38:09]written 0, free lines is 4095 [18:38:10]OFD Sender: Processing packet 228386 [packets to send 38, broken 37] [18:38:10]ProducePacketName [18:38:10]name=ofd_packets/00228386 [18:38:10]OFD Sender: To server: pG, [18:38:10]CommunicateWithHost lk.salyk.kg:30040 [18:38:10]ConnectInit lk.salyk.kg [18:38:10]Connected sock=11 [18:38:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 EC D5 07 01 21 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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 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 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 15 F1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 22 7C 03 00 35 04 06 00 84 21 BB 25 B1 38 40 9A 1A 82 0A 15 5C FF [18:38:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 CC 8B 47 00 42 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 38 37 31 38 33 39 10 04 04 00 22 7C 03 00 F4 03 04 00 0C 9C 17 67 B6 04 01 00 00 29 E9 3B 33 48 D8 71 EF [18:38:10]CommunicateWithHost err = 0 [18:38:10]CheckOFDResponse [18:38:10]1017 (14) - 77093643461234 [18:38:10]1041 (16) - 0000000000871839 [18:38:10]1040 (4) - 228386 [18:38:10]1012 (4) - 22.10.2024 12:35 [18:38:10]1206 (1) - 0 [18:38:10]OFD Sender: Remove packet 228386 [18:38:10]ProducePacketName [18:38:10]name=ofd_packets/00228386 [18:38:10]NVStorageDeleteData [18:38:10]Write to MH i2c: 01 00 00 B5 67 1C [18:38:10]Write i2c OK [18:38:10]MH_I2C_Read... [18:38:10]Read from MH i2c: 01 [18:38:10]MH_I2C_Read... [18:38:10]Read from MH i2c: 01 07 00 [18:38:10]MH_I2C_Read... [18:38:10]Read from MH i2c: 01 07 00 B5 67 00 00 00 00 00 D3 0C 02 [18:38:10]RasterBufferAndPrint [18:38:10]line [18:38:10]line [18:38:10]line [18:38:10]line [18:38:10]line [18:38:10]written 0, free lines is 3287 [18:38:10]MH_Cut [18:38:10]Write to MH i2c: D1 01 00 BC 67 01 F5 [18:38:10]Write i2c OK [18:38:10]MH_I2C_Read... [18:38:10]Read from MH i2c: D1 [18:38:10]MH_I2C_Read... [18:38:10]Read from MH i2c: D1 01 00 [18:38:10]MH_I2C_Read... [18:38:10]Read from MH i2c: D1 01 00 BC 67 00 F4 [18:38:10]Write to MH i2c: 01 00 00 BD 67 24 [18:38:10]Write i2c OK [18:38:10]MH_I2C_Read... [18:38:10]OFD Sender: No OFD packet to send [18:38:11]*** Cut start [18:38:11]*** Partial cut [18:38:11]*** CUTSNS_PIN = 1 [18:38:11]*** CUTSNS_PIN = 0 [18:38:11]*** Brake cut motor [18:38:11]Read from MH i2c: 01 [18:38:11]MH_I2C_Read... [18:38:11]*** Stop cut motor [18:38:11]*** Cut end [18:38:11]Read from MH i2c: 01 07 00 [18:38:11]MH_I2C_Read... [18:38:11]Read from MH i2c: 01 07 00 BD 67 00 00 00 00 00 FF 0F 39 [18:38:11]process_action close_receipt done [18:38:11]requested_data is exist [18:38:11]produce_requested_data [18:38:11]requested_item fm.sn is exist - process it [18:38:11]wFMCommunicate request_size=4 [18:38:11]MH_SAM_APDU [18:38:11]CAPDU: 80 11 00 00 [18:38:11]Write to MH i2c: E2 08 00 BE 67 80 11 00 00 00 00 00 00 9F [18:38:11]Write i2c OK [18:38:11]MH_I2C_Read... [18:38:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:11]Read from MH i2c: E2 [18:38:11]MH_I2C_Read... [18:38:11]Read from MH i2c: E2 17 00 [18:38:11]MH_I2C_Read... [18:38:11]Read from MH i2c: E2 17 00 BE 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F6 [18:38:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:38:11]wFMCommunicate OK [18:38:11]requested_item fd.num is exist - process it [18:38:11]SAM_PROTO_GetFieldsCounters [18:38:11]wFMCommunicate request_size=4 [18:38:11]MH_SAM_APDU [18:38:11]CAPDU: 80 13 00 00 [18:38:11]Write to MH i2c: E2 08 00 BF 67 80 13 00 00 00 00 00 00 A2 [18:38:11]Write i2c OK [18:38:11]MH_I2C_Read... [18:38:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:38:12]Read from MH i2c: E2 [18:38:12]MH_I2C_Read... [18:38:12]Read from MH i2c: E2 62 00 [18:38:12]MH_I2C_Read... [18:38:12]Read from MH i2c: E2 62 00 BF 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 22 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 A2 [18:38:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 22 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:38:12]wFMCommunicate OK [18:38:12]SAM_PROTO_GetFieldsCounters done [18:38:12]requested_item shift.num is exist - process it [18:38:12]requested_item shift.opened is exist - process it [18:38:12]req_shift_opened [18:38:12]FM_GetShiftState [18:38:12]SAM_PROTO_GetShiftState [18:38:12]wFMCommunicate request_size=4 [18:38:12]MH_SAM_APDU [18:38:12]CAPDU: 80 13 01 00 [18:38:12]Write to MH i2c: E2 08 00 C0 67 80 13 01 00 00 00 00 00 A4 [18:38:12]Write i2c OK [18:38:12]MH_I2C_Read... [18:38:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:12]Read from MH i2c: E2 [18:38:12]MH_I2C_Read... [18:38:12]Read from MH i2c: E2 0E 00 [18:38:12]MH_I2C_Read... [18:38:12]Read from MH i2c: E2 0E 00 C0 67 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 6B [18:38:12]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:38:12]wFMCommunicate OK [18:38:12]SAM_PROTO_GetShiftState done [18:38:12]FM_GetShiftState done [18:38:12]req_shift_opened done [18:38:12]requested_item shift.open_date is exist - process it [18:38:12]req_shift_open_date [18:38:12]req_shift_open_date done [18:38:12]produce_requested_data done [18:38:12]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228386,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [18:38:12]process_action_free close_receipt [18:38:12]json_value_free [18:38:12]json_value_free done [18:38:12]process_json_proto returns [18:38:12]Send response to host [18:38:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228386,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [18:38:12]free response buf [18:38:12]execute_script done [18:38:12]execute_script returns [18:38:12]free content buf [18:38:12]Sock 9.Close socket [18:38:12]Sock 9.Thread stoped [18:38:15]OFD Sender: No OFD packet to send [18:38:20]OFD Sender: No OFD packet to send [18:38:25]OFD Sender: No OFD packet to send [18:38:30]OFD Sender: No OFD packet to send [18:38:35]OFD Sender: No OFD packet to send [18:38:40]accept exits with 7 [18:38:40]New connection [18:38:40]New thread 3066994020 created [18:38:40]Thread 3067137380 joined [18:38:40]Waiting for new connection... [18:38:40] Sock 7.Parse request [18:38:40]Sock 7.Check first char [18:38:40]Sock 7.First char is OK [18:38:40]request: POST /json_proto HTTP/1.0 [18:38:40]Method: POST [18:38:40]URL: /json_proto [18:38:40]Method is POST - this is cgi request [18:38:40]url: /json_proto [18:38:40]query_string will be loaded in cgi processing [18:38:40]execute_cgi json_proto POST (null) [18:38:40]execute_cgi path=json_proto method=POST [18:38:40]POST find Content-Length [18:38:40]Host: 172.17.44.195:8080 [18:38:40]Content-Length: 673 [18:38:40]Content-Type: application/json [18:38:40] [18:38:40]POST finish read [18:38:40]Found Content-Length = 673 [18:38:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 13.370, "sum" : 520.09, "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" ] } } [18:38:40]execute_script... [18: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)1964934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 13.370, "sum" : 520.09, "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" ] } } [18:38:40]POST & json_proto [18:38:40]process_json_proto [18:38:40]json parsed OK: [18:38:40]protocol is kg_v1.0 [18:38:40]action value=close_receipt [18:38:40]process_action close_receipt [18:38:40]cmd_close_receipt [18:38:40]MH_GetDate [18:38:40]Write to MH i2c: F0 00 00 C1 67 17 [18:38:40]Write i2c OK [18:38:40]MH_I2C_Read... [18:38:40]Read from MH i2c: F0 [18:38:40]MH_I2C_Read... [18:38:40]Read from MH i2c: F0 09 00 [18:38:40]MH_I2C_Read... [18:38:40]Read from MH i2c: F0 09 00 C1 67 00 36 F1 17 67 82 C9 CF 66 45 [18:38:40]GetLastDocTimeStamp 1729622293 [18:38:40]current date 1729622326 [18:38:40]FM_GetShiftState [18:38:40]SAM_PROTO_GetShiftState [18:38:40]wFMCommunicate request_size=4 [18:38:40]MH_SAM_APDU [18:38:40]CAPDU: 80 13 01 00 [18:38:40]Write to MH i2c: E2 08 00 C2 67 80 13 01 00 00 00 00 00 A6 [18:38:40]Write i2c OK [18:38:40]MH_I2C_Read... [18:38:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:40]Read from MH i2c: E2 [18:38:40]MH_I2C_Read... [18:38:40]Read from MH i2c: E2 0E 00 [18:38:40]MH_I2C_Read... [18:38:40]Read from MH i2c: E2 0E 00 C2 67 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 6D [18:38:40]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:38:40]wFMCommunicate OK [18:38:40]SAM_PROTO_GetShiftState done [18:38:40]FM_GetShiftState done [18:38:40]opened in 1729555538 [18:38:40]opened+sec_in_day 1729641938 [18:38:40]quantity*price = 52009 [18:38:40]sum+1 = 52010 [18:38:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 520.00 Внесено: 520.00 СДАЧА: 0.00 НСП 1% : 4.60 НДС 12% : 55.23 Наличными: 520.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 351 22.10.2024 18:38 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228387 ФПД: 86891173766666 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183846&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228387&fm=86891173766666&tin=02508201610067®Number=0000000000091685&sum=52000 [18:38:41]StoreToDocumentArchive [18:38:41]shift 535 fd 228387 [18:38:41]save to /storage/0535/doc_00228387 [18:38:41]save last doc name /storage/0535/doc_00228387 to /storage/kkm_last_doc_name [18:38:41]save OK [18:38:41]Clear old archive folders... [18:38:41]ProcessDocumentItem done err = 0, tmpTLVsize=245 [18:38:41]tlvbuf is 00A742F0 [18:38:41]SAM_PROTO_ClearQueue [18:38:41]wFMCommunicate request_size=4 [18:38:41]MH_SAM_APDU [18:38:41]CAPDU: 80 09 00 00 [18:38:41]Write to MH i2c: E2 08 00 CF 67 80 09 00 00 00 00 00 00 A8 [18:38:41]Write i2c OK [18:38:41]MH_I2C_Read... [18:38:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:38:41]Read from MH i2c: E2 [18:38:41]MH_I2C_Read... [18:38:41]Read from MH i2c: E2 03 00 [18:38:41]MH_I2C_Read... [18:38:41]Read from MH i2c: E2 03 00 CF 67 00 90 00 AA [18:38:41]RAPDU: 90 00 [18:38:41]wFMCommunicate OK [18:38:41]SAM_PROTO_ClearQueue done [18:38:41]KKMCreateOFDPacket [18:38:41]OFDProtocolAddRootSTLVToBuf [18:38:41]FM_MakeSignedData [18:38:41]FM_MakeSignedData [18:38:41]SAM_PROTO_SignData [18:38:41]wFMCommunicate request_size=4 [18:38:41]MH_SAM_APDU [18:38:41]CAPDU: 80 0D 01 02 [18:38:41]Write to MH i2c: E2 08 00 D0 67 80 0D 01 02 00 00 00 00 B0 [18:38:41]Write i2c OK [18:38:41]MH_I2C_Read... [18:38:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:38:42]Read from MH i2c: E2 [18:38:42]MH_I2C_Read... [18:38:42]Read from MH i2c: E2 03 00 [18:38:42]MH_I2C_Read... [18:38:42]Read from MH i2c: E2 03 00 D0 67 00 90 00 AB [18:38:42]RAPDU: 90 00 [18:38:42]wFMCommunicate OK [18:38:42]wFMCommunicate request_size=254 [18:38:42]MH_SAM_APDU [18:38:42]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 3A 34 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 29 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 93 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 5F 01 00 00 F4 03 04 00 36 F1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 23 7C 03 00 35 04 06 00 4F 06 ED 8B E6 0A [18:38:42]Write to MH i2c: E2 01 01 D1 67 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 3A 34 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 29 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 93 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 5F 01 00 00 F4 03 04 00 36 F1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 23 7C 03 00 35 04 06 00 4F 06 ED 8B E6 0A 00 00 D3 [18:38:42]Write i2c OK [18:38:42]MH_I2C_Read... [18:38:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:42]Read from MH i2c: E2 [18:38:42]MH_I2C_Read... [18:38:42]Read from MH i2c: E2 03 00 [18:38:42]MH_I2C_Read... [18:38:42]Read from MH i2c: E2 03 00 D1 67 00 90 00 AC [18:38:42]RAPDU: 90 00 [18:38:42]wFMCommunicate OK [18:38:42]wFMCommunicate request_size=4 [18:38:42]MH_SAM_APDU [18:38:42]CAPDU: 80 0D 03 02 [18:38:42]Write to MH i2c: E2 08 00 D2 67 80 0D 03 02 00 00 00 00 B4 [18:38:42]Write i2c OK [18:38:42]MH_I2C_Read... [18:38:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:38:42]Read from MH i2c: E2 [18:38:42]MH_I2C_Read... [18:38:42]Read from MH i2c: E2 0B 00 [18:38:42]MH_I2C_Read... [18:38:42]Read from MH i2c: E2 0B 00 D2 67 00 57 E3 B7 00 87 E8 CA 85 90 00 64 [18:38:42]RAPDU: 57 E3 B7 00 87 E8 CA 85 90 00 [18:38:42]wFMCommunicate OK [18:38:42]SAM_PROTO_SignData done [18:38:42]FM_MakeSignedData done [18:38:42]CreateOFDProtocolMessage [18:38:42]wFMCommunicate request_size=4 [18:38:42]MH_SAM_APDU [18:38:42]CAPDU: 80 11 00 00 [18:38:42]Write to MH i2c: E2 08 00 D3 67 80 11 00 00 00 00 00 00 B4 [18:38:42]Write i2c OK [18:38:42]MH_I2C_Read... [18:38:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:42]Read from MH i2c: E2 [18:38:42]MH_I2C_Read... [18:38:42]Read from MH i2c: E2 17 00 [18:38:42]MH_I2C_Read... [18:38:42]Read from MH i2c: E2 17 00 D3 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0B [18:38:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:38:42]wFMCommunicate OK [18:38:42]CreateOFDProtocolMessage done [18:38:42]OFDSenderStorePacket 228387 [18:38:42]StoreOFDPacket docnum=228387 [18:38:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 91 DA 01 01 F8 54 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 3A 34 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 29 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 93 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 5F 01 00 00 F4 03 04 00 36 F1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 23 7C 03 00 35 04 06 00 4F 06 ED 8B E6 0A 57 E3 B7 00 87 E8 CA 85 [18:38:42]CheckFolder [18:38:42]dirname=/storage/ofd_packets [18:38:42]CheckFolder done [18:38:42]ProducePacketName [18:38:42]name=ofd_packets/00228387 [18:38:42]NVStorageSaveData ofd_packets/00228387 [18:38:42]File name is /storage/ofd_packets/00228387 [18:38:42]Write 295 bytes [18:38:42]NVStorageSaveData done [18:38:42]OFDSenderStorePacket done [18:38:42]KKMCreateOFDPacket done [18:38:42]NVStorageSaveData kkm_last_timestamp [18:38:42]File name is /storage/kkm_last_timestamp [18:38:42]Write 4 bytes [18:38:42]NVStorageSaveData done [18:38:42]ExternCall_PrintAddStr [18:38:42]wPrintStart [18:38:42]Write to MH i2c: 01 00 00 D4 67 3B [18:38:42]Write i2c OK [18:38:42]MH_I2C_Read... [18:38:42]Read from MH i2c: 01 [18:38:42]MH_I2C_Read... [18:38:42]Read from MH i2c: 01 07 00 [18:38:42]MH_I2C_Read... [18:38:42]Read from MH i2c: 01 07 00 D4 67 00 00 00 00 00 FF 0F 50 [18:38:42]RasterBufferAndPrint [18:38:42]line Счет N : (1)1964934 [18:38:42]line ИНН: 02508201610067 [18:38:42]line Контрольно-Кассовый Чек [18:38:42]line ПРОДАЖА [18:38:42]line ТРК (МРК, ГНК) : 71 [18:38:42]line Товар: 2711129700 [18:38:42]line ГАЗ [18:38:42]line 13.370 * 38.90 [18:38:42]line = 520.09 [18:38:42]line НДС 12% НСП 1% [18:38:42]line > о реализуемом товаре [18:38:42]line ОКРУГЛЕНИЕ: -0.09 [18:38:42]line ИТОГО: 520.00 [18:38:42]line Внесено: 520.00 [18:38:42]line СДАЧА: 0.00 [18:38:42]line НСП 1% : 4.60 [18:38:42]line НДС 12% : 55.23 [18:38:42]line Наличными: 520.00 [18:38:42]line Безнал.: 0.00 [18:38:42]line Место: АЗС № 133 "Партнер Нефть" [18:38:42]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:38:42]line СНО: Общий режим [18:38:42]line Чек 351 22.10.2024 18:38 [18:38:42]line Смена: 535 ФФД: 1.0 [18:38:42]line ЗНМ: 0300000091 [18:38:42]line РНМ: 0000000000091685 [18:38:42]line Версия ККМ: 001 [18:38:42]line ФМ: 0000000000871839 [18:38:42]line ФД: 228387 [18:38:42]line ФПД: 86891173766666 [18:38:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183846&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228387&fm=86891173766666&tin=02508201610067®Number=0000000000091685&sum=52000 [18:38:42]OFD Sender: Processing packet 228387 [packets to send 38, broken 37] [18:38:42]ProducePacketName [18:38:42]name=ofd_packets/00228387 [18:38:42]OFD Sender: To server: pG, [18:38:42]CommunicateWithHost lk.salyk.kg:30040 [18:38:42]ConnectInit lk.salyk.kg [18:38:42]written 0, free lines is 4095 [18:38:42]Connected sock=10 [18:38:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 91 DA 01 01 F8 54 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 3A 34 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 29 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 93 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 5F 01 00 00 F4 03 04 00 36 F1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 23 7C 03 00 35 04 06 00 4F 06 ED 8B E6 0A 57 E3 B7 00 87 E8 CA 85 [18:38:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 8F 2C 47 00 02 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 23 7C 03 00 F4 03 04 00 2D 9C 17 67 B6 04 01 00 00 BE 8E 70 52 AB B2 B6 06 [18:38:43]CommunicateWithHost err = 0 [18:38:43]CheckOFDResponse [18:38:43]1017 (14) - 77093643461234 [18:38:43]1041 (16) - 0000000000871839 [18:38:43]1040 (4) - 228387 [18:38:43]1012 (4) - 22.10.2024 12:35 [18:38:43]1206 (1) - 0 [18:38:43]OFD Sender: Remove packet 228387 [18:38:43]ProducePacketName [18:38:43]name=ofd_packets/00228387 [18:38:43]NVStorageDeleteData [18:38:43]Write to MH i2c: 01 00 00 FE 67 65 [18:38:43]Write i2c OK [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: 01 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: 01 07 00 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: 01 07 00 FE 67 00 00 00 00 00 AA 0C 22 [18:38:43]RasterBufferAndPrint [18:38:43]line [18:38:43]line [18:38:43]line [18:38:43]line [18:38:43]line [18:38:43]written 0, free lines is 3246 [18:38:43]MH_Cut [18:38:43]Write to MH i2c: D1 01 00 05 68 01 3F [18:38:43]Write i2c OK [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: D1 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: D1 01 00 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: D1 01 00 05 68 00 3E [18:38:43]Write to MH i2c: 01 00 00 06 68 6E [18:38:43]Write i2c OK [18:38:43]MH_I2C_Read... [18:38:43]OFD Sender: No OFD packet to send [18:38:44]*** Cut start [18:38:44]*** Partial cut [18:38:44]*** CUTSNS_PIN = 1 [18:38:44]*** CUTSNS_PIN = 0 [18:38:44]*** Brake cut motor [18:38:44]Read from MH i2c: 01 [18:38:44]MH_I2C_Read... [18:38:44]*** Stop cut motor [18:38:44]*** Cut end [18:38:44]Read from MH i2c: 01 07 00 [18:38:44]MH_I2C_Read... [18:38:44]Read from MH i2c: 01 07 00 06 68 00 00 00 00 00 FF 0F 83 [18:38:44]process_action close_receipt done [18:38:44]requested_data is exist [18:38:44]produce_requested_data [18:38:44]requested_item fm.sn is exist - process it [18:38:44]wFMCommunicate request_size=4 [18:38:44]MH_SAM_APDU [18:38:44]CAPDU: 80 11 00 00 [18:38:44]Write to MH i2c: E2 08 00 07 68 80 11 00 00 00 00 00 00 E9 [18:38:44]Write i2c OK [18:38:44]MH_I2C_Read... [18:38:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:44]Read from MH i2c: E2 [18:38:44]MH_I2C_Read... [18:38:44]Read from MH i2c: E2 17 00 [18:38:44]MH_I2C_Read... [18:38:44]Read from MH i2c: E2 17 00 07 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 40 [18:38:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:38:44]wFMCommunicate OK [18:38:44]requested_item fd.num is exist - process it [18:38:44]SAM_PROTO_GetFieldsCounters [18:38:44]wFMCommunicate request_size=4 [18:38:44]MH_SAM_APDU [18:38:44]CAPDU: 80 13 00 00 [18:38:44]Write to MH i2c: E2 08 00 08 68 80 13 00 00 00 00 00 00 EC [18:38:44]Write i2c OK [18:38:44]MH_I2C_Read... [18:38:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:38:44]Read from MH i2c: E2 [18:38:44]MH_I2C_Read... [18:38:44]Read from MH i2c: E2 62 00 [18:38:44]MH_I2C_Read... [18:38:44]Read from MH i2c: E2 62 00 08 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 23 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 F0 [18:38:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 23 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:38:44]wFMCommunicate OK [18:38:44]SAM_PROTO_GetFieldsCounters done [18:38:44]requested_item shift.num is exist - process it [18:38:44]requested_item shift.opened is exist - process it [18:38:44]req_shift_opened [18:38:44]FM_GetShiftState [18:38:44]SAM_PROTO_GetShiftState [18:38:44]wFMCommunicate request_size=4 [18:38:44]MH_SAM_APDU [18:38:44]CAPDU: 80 13 01 00 [18:38:44]Write to MH i2c: E2 08 00 09 68 80 13 01 00 00 00 00 00 EE [18:38:44]Write i2c OK [18:38:44]MH_I2C_Read... [18:38:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:44]Read from MH i2c: E2 [18:38:44]MH_I2C_Read... [18:38:44]Read from MH i2c: E2 0E 00 [18:38:44]MH_I2C_Read... [18:38:44]Read from MH i2c: E2 0E 00 09 68 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 B5 [18:38:44]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:38:44]wFMCommunicate OK [18:38:44]SAM_PROTO_GetShiftState done [18:38:44]FM_GetShiftState done [18:38:44]req_shift_opened done [18:38:44]requested_item shift.open_date is exist - process it [18:38:44]req_shift_open_date [18:38:44]req_shift_open_date done [18:38:44]produce_requested_data done [18:38:44]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228387,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [18:38:44]process_action_free close_receipt [18:38:44]json_value_free [18:38:44]json_value_free done [18:38:44]process_json_proto returns [18:38:44]Send response to host [18:38:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228387,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [18:38:44]free response buf [18:38:44]execute_script done [18:38:44]execute_script returns [18:38:44]free content buf [18:38:44]Sock 7.Close socket [18:38:44]Sock 7.Thread stoped [18:38:48]OFD Sender: No OFD packet to send [18:38:53]OFD Sender: No OFD packet to send [18:38:58]OFD Sender: No OFD packet to send [18:39:03]OFD Sender: No OFD packet to send [18:39:08]OFD Sender: No OFD packet to send [18:39:13]OFD Sender: No OFD packet to send [18:39:18]OFD Sender: No OFD packet to send [18:39:23]OFD Sender: No OFD packet to send [18:39:28]OFD Sender: No OFD packet to send [18:39:33]OFD Sender: No OFD packet to send [18:39:38]OFD Sender: No OFD packet to send [18:39:43]OFD Sender: No OFD packet to send [18:39:48]OFD Sender: No OFD packet to send [18:39:53]OFD Sender: No OFD packet to send [18:39:58]OFD Sender: No OFD packet to send [18:40:03]OFD Sender: No OFD packet to send [18:40:08]OFD Sender: No OFD packet to send [18:40:13]OFD Sender: No OFD packet to send [18:40:18]OFD Sender: No OFD packet to send [18:40:23]OFD Sender: No OFD packet to send [18:40:28]OFD Sender: No OFD packet to send [18:40:33]OFD Sender: No OFD packet to send [18:40:38]OFD Sender: No OFD packet to send [18:40:43]OFD Sender: No OFD packet to send [18:40:48]OFD Sender: No OFD packet to send [18:40:53]OFD Sender: No OFD packet to send [18:40:58]OFD Sender: No OFD packet to send [18:41:03]OFD Sender: No OFD packet to send [18:41:08]OFD Sender: No OFD packet to send [18:41:13]OFD Sender: No OFD packet to send [18:41:18]OFD Sender: No OFD packet to send [18:41:23]OFD Sender: No OFD packet to send [18:41:28]OFD Sender: No OFD packet to send [18:41:33]OFD Sender: No OFD packet to send [18:41:38]OFD Sender: No OFD packet to send [18:41:43]OFD Sender: No OFD packet to send [18:41:47]accept exits with 9 [18:41:47]New connection [18:41:47]New thread 3067137380 created [18:41:47]Thread 3066994020 joined [18:41:47]Waiting for new connection... [18:41:47] Sock 9.Parse request [18:41:47]Sock 9.Check first char [18:41:47]Sock 9.First char is OK [18:41:47]request: POST /json_proto HTTP/1.0 [18:41:47]Method: POST [18:41:47]URL: /json_proto [18:41:47]Method is POST - this is cgi request [18:41:47]url: /json_proto [18:41:47]query_string will be loaded in cgi processing [18:41:47]execute_cgi json_proto POST (null) [18:41:47]execute_cgi path=json_proto method=POST [18:41:47]POST find Content-Length [18:41:47]Host: 172.17.44.195:8080 [18:41:47]Content-Length: 664 [18:41:47]Content-Type: application/json [18:41:47] [18:41:47]POST finish read [18:41:47]Found Content-Length = 664 [18:41:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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:41:47]execute_script... [18:41:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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:41:47]POST & json_proto [18:41:47]process_json_proto [18:41:47]json parsed OK: [18:41:47]protocol is kg_v1.0 [18:41:47]action value=close_receipt [18:41:47]process_action close_receipt [18:41:47]cmd_close_receipt [18:41:47]MH_GetDate [18:41:47]Write to MH i2c: F0 00 00 0A 68 61 [18:41:47]Write i2c OK [18:41:47]MH_I2C_Read... [18:41:47]Read from MH i2c: F0 [18:41:47]MH_I2C_Read... [18:41:47]Read from MH i2c: F0 09 00 [18:41:47]MH_I2C_Read... [18:41:47]Read from MH i2c: F0 09 00 0A 68 00 F1 F1 17 67 82 C9 CF 66 4A [18:41:47]GetLastDocTimeStamp 1729622326 [18:41:47]current date 1729622513 [18:41:47]FM_GetShiftState [18:41:47]SAM_PROTO_GetShiftState [18:41:47]wFMCommunicate request_size=4 [18:41:47]MH_SAM_APDU [18:41:47]CAPDU: 80 13 01 00 [18:41:47]Write to MH i2c: E2 08 00 0B 68 80 13 01 00 00 00 00 00 F0 [18:41:47]Write i2c OK [18:41:47]MH_I2C_Read... [18:41:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:47]Read from MH i2c: E2 [18:41:47]MH_I2C_Read... [18:41:47]Read from MH i2c: E2 0E 00 [18:41:47]MH_I2C_Read... [18:41:47]Read from MH i2c: E2 0E 00 0B 68 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 B7 [18:41:47]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:41:47]wFMCommunicate OK [18:41:47]SAM_PROTO_GetShiftState done [18:41:47]FM_GetShiftState done [18:41:47]opened in 1729555538 [18:41:47]opened+sec_in_day 1729641938 [18:41:47]quantity*price = 100000 [18:41:47]sum+1 = 100002 [18:41:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 352 22.10.2024 18:41 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228388 ФПД: 86744188238810 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184153&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228388&fm=86744188238810&tin=02508201610067®Number=0000000000091685&sum=100000 [18:41:48]StoreToDocumentArchive [18:41:48]shift 535 fd 228388 [18:41:48]save to /storage/0535/doc_00228388 [18:41:48]save last doc name /storage/0535/doc_00228388 to /storage/kkm_last_doc_name [18:41:48]save OK [18:41:48]Clear old archive folders... [18:41:48]ProcessDocumentItem done err = 0, tmpTLVsize=244 [18:41:48]tlvbuf is 00AA0CF0 [18:41:48]SAM_PROTO_ClearQueue [18:41:48]wFMCommunicate request_size=4 [18:41:48]MH_SAM_APDU [18:41:48]CAPDU: 80 09 00 00 [18:41:48]Write to MH i2c: E2 08 00 18 68 80 09 00 00 00 00 00 00 F2 [18:41:48]Write i2c OK [18:41:48]MH_I2C_Read... [18:41:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:41:48]Read from MH i2c: E2 [18:41:48]MH_I2C_Read... [18:41:48]Read from MH i2c: E2 03 00 [18:41:48]MH_I2C_Read... [18:41:48]Read from MH i2c: E2 03 00 18 68 00 90 00 F4 [18:41:48]RAPDU: 90 00 [18:41:48]wFMCommunicate OK [18:41:48]SAM_PROTO_ClearQueue done [18:41:48]KKMCreateOFDPacket [18:41:48]OFDProtocolAddRootSTLVToBuf [18:41:48]FM_MakeSignedData [18:41:48]FM_MakeSignedData [18:41:48]SAM_PROTO_SignData [18:41:48]wFMCommunicate request_size=4 [18:41:48]MH_SAM_APDU [18:41:48]CAPDU: 80 0D 01 02 [18:41:48]Write to MH i2c: E2 08 00 19 68 80 0D 01 02 00 00 00 00 FA [18:41:48]Write i2c OK [18:41:48]MH_I2C_Read... [18:41:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:41:48]Read from MH i2c: E2 [18:41:48]MH_I2C_Read... [18:41:48]Read from MH i2c: E2 03 00 [18:41:48]MH_I2C_Read... [18:41:48]Read from MH i2c: E2 03 00 19 68 00 90 00 F5 [18:41:48]RAPDU: 90 00 [18:41:48]wFMCommunicate OK [18:41:48]wFMCommunicate request_size=253 [18:41:48]MH_SAM_APDU [18:41:48]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 F1 F1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 24 7C 03 00 35 04 06 00 4E E4 B4 86 BB DA [18:41:48]Write to MH i2c: E2 00 01 1A 68 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 F1 F1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 24 7C 03 00 35 04 06 00 4E E4 B4 86 BB DA 00 00 F2 [18:41:48]Write i2c OK [18:41:48]MH_I2C_Read... [18:41:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:49]Read from MH i2c: E2 [18:41:49]MH_I2C_Read... [18:41:49]Read from MH i2c: E2 03 00 [18:41:49]MH_I2C_Read... [18:41:49]Read from MH i2c: E2 03 00 1A 68 00 90 00 F6 [18:41:49]RAPDU: 90 00 [18:41:49]wFMCommunicate OK [18:41:49]wFMCommunicate request_size=4 [18:41:49]MH_SAM_APDU [18:41:49]CAPDU: 80 0D 03 02 [18:41:49]Write to MH i2c: E2 08 00 1B 68 80 0D 03 02 00 00 00 00 FE [18:41:49]Write i2c OK [18:41:49]MH_I2C_Read... [18:41:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:41:49]Read from MH i2c: E2 [18:41:49]MH_I2C_Read... [18:41:49]Read from MH i2c: E2 0B 00 [18:41:49]MH_I2C_Read... [18:41:49]Read from MH i2c: E2 0B 00 1B 68 00 70 C2 D9 9D D0 87 78 5C 90 00 D2 [18:41:49]RAPDU: 70 C2 D9 9D D0 87 78 5C 90 00 [18:41:49]wFMCommunicate OK [18:41:49]SAM_PROTO_SignData done [18:41:49]FM_MakeSignedData done [18:41:49]CreateOFDProtocolMessage [18:41:49]wFMCommunicate request_size=4 [18:41:49]MH_SAM_APDU [18:41:49]CAPDU: 80 11 00 00 [18:41:49]Write to MH i2c: E2 08 00 1C 68 80 11 00 00 00 00 00 00 FE [18:41:49]Write i2c OK [18:41:49]MH_I2C_Read... [18:41:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:49]Read from MH i2c: E2 [18:41:49]MH_I2C_Read... [18:41:49]Read from MH i2c: E2 17 00 [18:41:49]MH_I2C_Read... [18:41:49]Read from MH i2c: E2 17 00 1C 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 55 [18:41:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:41:49]wFMCommunicate OK [18:41:49]CreateOFDProtocolMessage done [18:41:49]OFDSenderStorePacket 228388 [18:41:49]StoreOFDPacket docnum=228388 [18:41:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 0F 49 00 01 37 98 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 F1 F1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 24 7C 03 00 35 04 06 00 4E E4 B4 86 BB DA 70 C2 D9 9D D0 87 78 5C [18:41:49]CheckFolder [18:41:49]dirname=/storage/ofd_packets [18:41:49]CheckFolder done [18:41:49]ProducePacketName [18:41:49]name=ofd_packets/00228388 [18:41:49]NVStorageSaveData ofd_packets/00228388 [18:41:49]File name is /storage/ofd_packets/00228388 [18:41:49]Write 294 bytes [18:41:49]NVStorageSaveData done [18:41:49]OFDSenderStorePacket done [18:41:49]KKMCreateOFDPacket done [18:41:49]NVStorageSaveData kkm_last_timestamp [18:41:49]File name is /storage/kkm_last_timestamp [18:41:49]Write 4 bytes [18:41:49]NVStorageSaveData done [18:41:49]ExternCall_PrintAddStr [18:41:49]wPrintStart [18:41:49]Write to MH i2c: 01 00 00 1D 68 85 [18:41:49]Write i2c OK [18:41:49]MH_I2C_Read... [18:41:49]Read from MH i2c: 01 [18:41:49]MH_I2C_Read... [18:41:49]Read from MH i2c: 01 07 00 [18:41:49]MH_I2C_Read... [18:41:49]Read from MH i2c: 01 07 00 1D 68 00 00 00 00 00 FF 0F 9A [18:41:49]RasterBufferAndPrint [18:41:49]line Счет N : (1)1964939 [18:41:49]line ИНН: 02508201610067 [18:41:49]line Контрольно-Кассовый Чек [18:41:49]line ПРОДАЖА [18:41:49]line ТРК (МРК, ГНК) : 32 [18:41:49]line Товар: 2710124130 [18:41:49]line SU-92 [18:41:49]line 14.620 * 68.40 [18:41:49]line = 1000.01 [18:41:49]line НДС 12% НСП 1% [18:41:49]line > о реализуемом товаре [18:41:49]line ОКРУГЛЕНИЕ: -0.01 [18:41:49]line ИТОГО: 1000.00 [18:41:49]line Внесено: 1000.00 [18:41:49]line СДАЧА: 0.00 [18:41:49]line НСП 1% : 8.85 [18:41:49]line НДС 12% : 106.20 [18:41:49]line Наличными: 1000.00 [18:41:49]line Безнал.: 0.00 [18:41:49]line Место: АЗС № 133 "Партнер Нефть" [18:41:49]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:41:49]line СНО: Общий режим [18:41:49]line Чек 352 22.10.2024 18:41 [18:41:49]line Смена: 535 ФФД: 1.0 [18:41:49]line ЗНМ: 0300000091 [18:41:49]line РНМ: 0000000000091685 [18:41:49]line Версия ККМ: 001 [18:41:49]line ФМ: 0000000000871839 [18:41:49]line ФД: 228388 [18:41:49]line ФПД: 86744188238810 [18:41:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184153&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228388&fm=86744188238810&tin=02508201610067®Number=0000000000091685&sum=100000 [18:41:49]OFD Sender: Processing packet 228388 [packets to send 38, broken 37] [18:41:49]ProducePacketName [18:41:49]name=ofd_packets/00228388 [18:41:49]OFD Sender: To server: pG, [18:41:49]CommunicateWithHost lk.salyk.kg:30040 [18:41:49]ConnectInit lk.salyk.kg [18:41:49]written 0, free lines is 4095 [18:41:49]Connected sock=10 [18:41:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 0F 49 00 01 37 98 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 F1 F1 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 24 7C 03 00 35 04 06 00 4E E4 B4 86 BB DA 70 C2 D9 9D D0 87 78 5C [18:41:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 F8 5B 47 00 62 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 24 7C 03 00 F4 03 04 00 E8 9C 17 67 B6 04 01 00 00 9C 69 78 74 B6 40 D6 0E [18:41:49]CommunicateWithHost err = 0 [18:41:49]CheckOFDResponse [18:41:49]1017 (14) - 77093643461234 [18:41:49]1041 (16) - 0000000000871839 [18:41:49]1040 (4) - 228388 [18:41:49]1012 (4) - 22.10.2024 12:39 [18:41:49]1206 (1) - 0 [18:41:49]OFD Sender: Remove packet 228388 [18:41:49]ProducePacketName [18:41:49]name=ofd_packets/00228388 [18:41:49]NVStorageDeleteData [18:41:50]Write to MH i2c: 01 00 00 47 68 AF [18:41:50]Write i2c OK [18:41:50]MH_I2C_Read... [18:41:50]Read from MH i2c: 01 [18:41:50]MH_I2C_Read... [18:41:50]Read from MH i2c: 01 07 00 [18:41:50]MH_I2C_Read... [18:41:50]Read from MH i2c: 01 07 00 47 68 00 00 00 00 00 A7 0C 69 [18:41:50]RasterBufferAndPrint [18:41:50]line [18:41:50]line [18:41:50]line [18:41:50]line [18:41:50]line [18:41:50]written 0, free lines is 3243 [18:41:50]MH_Cut [18:41:50]Write to MH i2c: D1 01 00 4E 68 01 88 [18:41:50]Write i2c OK [18:41:50]MH_I2C_Read... [18:41:50]Read from MH i2c: D1 [18:41:50]MH_I2C_Read... [18:41:50]Read from MH i2c: D1 01 00 [18:41:50]MH_I2C_Read... [18:41:50]Read from MH i2c: D1 01 00 4E 68 00 87 [18:41:50]Write to MH i2c: 01 00 00 4F 68 B7 [18:41:50]Write i2c OK [18:41:50]MH_I2C_Read... [18:41:50]OFD Sender: No OFD packet to send [18:41:51]*** Cut start [18:41:51]*** Partial cut [18:41:51]*** CUTSNS_PIN = 1 [18:41:51]*** CUTSNS_PIN = 0 [18:41:51]*** Brake cut motor [18:41:51]Read from MH i2c: 01 [18:41:51]MH_I2C_Read... [18:41:51]*** Stop cut motor [18:41:51]*** Cut end [18:41:51]Read from MH i2c: 01 07 00 [18:41:51]MH_I2C_Read... [18:41:51]Read from MH i2c: 01 07 00 4F 68 00 00 00 00 00 FF 0F CC [18:41:51]process_action close_receipt done [18:41:51]requested_data is exist [18:41:51]produce_requested_data [18:41:51]requested_item fm.sn is exist - process it [18:41:51]wFMCommunicate request_size=4 [18:41:51]MH_SAM_APDU [18:41:51]CAPDU: 80 11 00 00 [18:41:51]Write to MH i2c: E2 08 00 50 68 80 11 00 00 00 00 00 00 32 [18:41:51]Write i2c OK [18:41:51]MH_I2C_Read... [18:41:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:51]Read from MH i2c: E2 [18:41:51]MH_I2C_Read... [18:41:51]Read from MH i2c: E2 17 00 [18:41:51]MH_I2C_Read... [18:41:51]Read from MH i2c: E2 17 00 50 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 89 [18:41:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:41:51]wFMCommunicate OK [18:41:51]requested_item fd.num is exist - process it [18:41:51]SAM_PROTO_GetFieldsCounters [18:41:51]wFMCommunicate request_size=4 [18:41:51]MH_SAM_APDU [18:41:51]CAPDU: 80 13 00 00 [18:41:51]Write to MH i2c: E2 08 00 51 68 80 13 00 00 00 00 00 00 35 [18:41:51]Write i2c OK [18:41:51]MH_I2C_Read... [18:41:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:41:51]Read from MH i2c: E2 [18:41:51]MH_I2C_Read... [18:41:51]Read from MH i2c: E2 62 00 [18:41:51]MH_I2C_Read... [18:41:51]Read from MH i2c: E2 62 00 51 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 24 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 3D [18:41:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 24 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:41:51]wFMCommunicate OK [18:41:51]SAM_PROTO_GetFieldsCounters done [18:41:51]requested_item shift.num is exist - process it [18:41:51]requested_item shift.opened is exist - process it [18:41:51]req_shift_opened [18:41:51]FM_GetShiftState [18:41:51]SAM_PROTO_GetShiftState [18:41:51]wFMCommunicate request_size=4 [18:41:51]MH_SAM_APDU [18:41:51]CAPDU: 80 13 01 00 [18:41:51]Write to MH i2c: E2 08 00 52 68 80 13 01 00 00 00 00 00 37 [18:41:51]Write i2c OK [18:41:51]MH_I2C_Read... [18:41:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:51]Read from MH i2c: E2 [18:41:51]MH_I2C_Read... [18:41:51]Read from MH i2c: E2 0E 00 [18:41:51]MH_I2C_Read... [18:41:51]Read from MH i2c: E2 0E 00 52 68 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 FE [18:41:51]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:41:51]wFMCommunicate OK [18:41:51]SAM_PROTO_GetShiftState done [18:41:51]FM_GetShiftState done [18:41:51]req_shift_opened done [18:41:51]requested_item shift.open_date is exist - process it [18:41:51]req_shift_open_date [18:41:51]req_shift_open_date done [18:41:51]produce_requested_data done [18:41:51]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228388,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [18:41:51]process_action_free close_receipt [18:41:51]json_value_free [18:41:51]json_value_free done [18:41:51]process_json_proto returns [18:41:51]Send response to host [18:41:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228388,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [18:41:51]free response buf [18:41:51]execute_script done [18:41:51]execute_script returns [18:41:51]free content buf [18:41:51]Sock 9.Close socket [18:41:51]Sock 9.Thread stoped [18:41:55]OFD Sender: No OFD packet to send [18:42:00]OFD Sender: No OFD packet to send [18:42:05]OFD Sender: No OFD packet to send [18:42:10]OFD Sender: No OFD packet to send [18:42:15]OFD Sender: No OFD packet to send [18:42:20]OFD Sender: No OFD packet to send [18:42:25]OFD Sender: No OFD packet to send [18:42:30]OFD Sender: No OFD packet to send [18:42:35]OFD Sender: No OFD packet to send [18:42:40]OFD Sender: No OFD packet to send [18:42:45]OFD Sender: No OFD packet to send [18:42:50]OFD Sender: No OFD packet to send [18:42:55]OFD Sender: No OFD packet to send [18:43:00]OFD Sender: No OFD packet to send [18:43:01]accept exits with 7 [18:43:01]New connection [18:43:01]New thread 3066994020 created [18:43:01]Thread 3067137380 joined [18:43:01]Waiting for new connection... [18:43:01] Sock 7.Parse request [18:43:01]Sock 7.Check first char [18:43:01]Sock 7.First char is OK [18:43:01]request: POST /json_proto HTTP/1.0 [18:43:01]Method: POST [18:43:01]URL: /json_proto [18:43:01]Method is POST - this is cgi request [18:43:01]url: /json_proto [18:43:01]query_string will be loaded in cgi processing [18:43:01]execute_cgi json_proto POST (null) [18:43:01]execute_cgi path=json_proto method=POST [18:43:01]POST find Content-Length [18:43:01]Host: 172.17.44.195:8080 [18:43:01]Content-Length: 770 [18:43:01]Content-Type: application/json [18:43:01] [18:43:01]POST finish read [18:43:01]Found Content-Length = 770 [18:43:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964940", "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" : 66.90, "quantity" : 44.850, "sum" : 3000.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: Mbank", "payments": [ { "type": 1, "sum" : 3000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:01]execute_script... [18:43: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)1964940", "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" : 66.90, "quantity" : 44.850, "sum" : 3000.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: Mbank", "payments": [ { "type": 1, "sum" : 3000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:01]POST & json_proto [18:43:01]process_json_proto [18:43:01]json parsed OK: [18:43:01]protocol is kg_v1.0 [18:43:01]action value=close_receipt [18:43:01]process_action close_receipt [18:43:01]cmd_close_receipt [18:43:01]MH_GetDate [18:43:01]Write to MH i2c: F0 00 00 53 68 AA [18:43:01]Write i2c OK [18:43:01]MH_I2C_Read... [18:43:01]Read from MH i2c: F0 [18:43:01]MH_I2C_Read... [18:43:01]Read from MH i2c: F0 09 00 [18:43:01]MH_I2C_Read... [18:43:01]Read from MH i2c: F0 09 00 53 68 00 3A F2 17 67 82 C9 CF 66 DD [18:43:01]GetLastDocTimeStamp 1729622513 [18:43:01]current date 1729622586 [18:43:01]FM_GetShiftState [18:43:01]SAM_PROTO_GetShiftState [18:43:01]wFMCommunicate request_size=4 [18:43:01]MH_SAM_APDU [18:43:01]CAPDU: 80 13 01 00 [18:43:01]Write to MH i2c: E2 08 00 54 68 80 13 01 00 00 00 00 00 39 [18:43:01]Write i2c OK [18:43:01]MH_I2C_Read... [18:43:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:01]Read from MH i2c: E2 [18:43:01]MH_I2C_Read... [18:43:01]Read from MH i2c: E2 0E 00 [18:43:01]MH_I2C_Read... [18:43:01]Read from MH i2c: E2 0E 00 54 68 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 00 [18:43:01]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:43:01]wFMCommunicate OK [18:43:01]SAM_PROTO_GetShiftState done [18:43:01]FM_GetShiftState done [18:43:01]opened in 1729555538 [18:43:01]opened+sec_in_day 1729641938 [18:43:01]quantity*price = 300046 [18:43:01]sum+1 = 300048 [18:43:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.47 НСП 1% : 26.55 НДС 12% : 318.63 Наличными: 0.00 Безнал.: 3000.47 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 353 22.10.2024 18:43 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 228389 ФПД: 275596350956889 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184306&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228389&fm=275596350956889&tin=02508201610067®Number=0000000000091685&sum=300047 [18:43:02]StoreToDocumentArchive [18:43:02]shift 535 fd 228389 [18:43:02]save to /storage/0535/doc_00228389 [18:43:02]save last doc name /storage/0535/doc_00228389 to /storage/kkm_last_doc_name [18:43:02]save OK [18:43:02]Clear old archive folders... [18:43:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:43:02]tlvbuf is 00A85670 [18:43:02]SAM_PROTO_ClearQueue [18:43:02]wFMCommunicate request_size=4 [18:43:02]MH_SAM_APDU [18:43:02]CAPDU: 80 09 00 00 [18:43:02]Write to MH i2c: E2 08 00 61 68 80 09 00 00 00 00 00 00 3B [18:43:02]Write i2c OK [18:43:02]MH_I2C_Read... [18:43:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:43:02]Read from MH i2c: E2 [18:43:02]MH_I2C_Read... [18:43:02]Read from MH i2c: E2 03 00 [18:43:02]MH_I2C_Read... [18:43:02]Read from MH i2c: E2 03 00 61 68 00 90 00 3D [18:43:02]RAPDU: 90 00 [18:43:02]wFMCommunicate OK [18:43:02]SAM_PROTO_ClearQueue done [18:43:02]KKMCreateOFDPacket [18:43:02]OFDProtocolAddRootSTLVToBuf [18:43:02]FM_MakeSignedData [18:43:02]FM_MakeSignedData [18:43:02]SAM_PROTO_SignData [18:43:02]wFMCommunicate request_size=4 [18:43:02]MH_SAM_APDU [18:43:02]CAPDU: 80 0D 01 02 [18:43:02]Write to MH i2c: E2 08 00 62 68 80 0D 01 02 00 00 00 00 43 [18:43:02]Write i2c OK [18:43:02]MH_I2C_Read... [18:43:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:43:02]Read from MH i2c: E2 [18:43:02]MH_I2C_Read... [18:43:02]Read from MH i2c: E2 03 00 [18:43:02]MH_I2C_Read... [18:43:02]Read from MH i2c: E2 03 00 62 68 00 90 00 3E [18:43:02]RAPDU: 90 00 [18:43:02]wFMCommunicate OK [18:43:02]wFMCommunicate request_size=255 [18:43:02]MH_SAM_APDU [18:43:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 3A F2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 25 7C 03 00 35 04 06 00 FA [18:43:02]Write to MH i2c: E2 02 01 63 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 3A F2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 25 7C 03 00 35 04 06 00 FA 00 00 86 [18:43:02]Write i2c OK [18:43:02]MH_I2C_Read... [18:43:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:02]Read from MH i2c: E2 [18:43:02]MH_I2C_Read... [18:43:02]Read from MH i2c: E2 03 00 [18:43:02]MH_I2C_Read... [18:43:02]Read from MH i2c: E2 03 00 63 68 00 90 00 3F [18:43:02]RAPDU: 90 00 [18:43:02]wFMCommunicate OK [18:43:02]wFMCommunicate request_size=10 [18:43:02]MH_SAM_APDU [18:43:02]CAPDU: 80 0D 02 02 05 A7 46 99 A5 59 [18:43:02]Write to MH i2c: E2 0D 00 64 68 80 0D 02 02 05 00 A7 46 99 A5 59 00 00 D4 [18:43:02]Write i2c OK [18:43:02]MH_I2C_Read... [18:43:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:02]Read from MH i2c: E2 [18:43:02]MH_I2C_Read... [18:43:02]Read from MH i2c: E2 03 00 [18:43:02]MH_I2C_Read... [18:43:02]Read from MH i2c: E2 03 00 64 68 00 90 00 40 [18:43:02]RAPDU: 90 00 [18:43:02]wFMCommunicate OK [18:43:02]wFMCommunicate request_size=4 [18:43:02]MH_SAM_APDU [18:43:02]CAPDU: 80 0D 03 02 [18:43:02]Write to MH i2c: E2 08 00 65 68 80 0D 03 02 00 00 00 00 48 [18:43:02]Write i2c OK [18:43:02]MH_I2C_Read... [18:43:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:43:02]Read from MH i2c: E2 [18:43:02]MH_I2C_Read... [18:43:02]Read from MH i2c: E2 0B 00 [18:43:02]MH_I2C_Read... [18:43:02]Read from MH i2c: E2 0B 00 65 68 00 A4 7C E1 B2 63 7F 64 B9 90 00 FB [18:43:02]RAPDU: A4 7C E1 B2 63 7F 64 B9 90 00 [18:43:02]wFMCommunicate OK [18:43:02]SAM_PROTO_SignData done [18:43:02]FM_MakeSignedData done [18:43:02]CreateOFDProtocolMessage [18:43:02]wFMCommunicate request_size=4 [18:43:02]MH_SAM_APDU [18:43:02]CAPDU: 80 11 00 00 [18:43:02]Write to MH i2c: E2 08 00 66 68 80 11 00 00 00 00 00 00 48 [18:43:02]Write i2c OK [18:43:02]MH_I2C_Read... [18:43:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:02]Read from MH i2c: E2 [18:43:02]MH_I2C_Read... [18:43:02]Read from MH i2c: E2 17 00 [18:43:02]MH_I2C_Read... [18:43:02]Read from MH i2c: E2 17 00 66 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9F [18:43:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:43:02]wFMCommunicate OK [18:43:02]CreateOFDProtocolMessage done [18:43:02]OFDSenderStorePacket 228389 [18:43:02]StoreOFDPacket docnum=228389 [18:43:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 23 89 07 01 1F 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 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 3A F2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 25 7C 03 00 35 04 06 00 FA A7 46 99 A5 59 A4 7C E1 B2 63 7F 64 B9 [18:43:02]CheckFolder [18:43:02]dirname=/storage/ofd_packets [18:43:02]CheckFolder done [18:43:02]ProducePacketName [18:43:02]name=ofd_packets/00228389 [18:43:02]NVStorageSaveData ofd_packets/00228389 [18:43:02]File name is /storage/ofd_packets/00228389 [18:43:02]Write 301 bytes [18:43:02]NVStorageSaveData done [18:43:02]OFDSenderStorePacket done [18:43:02]KKMCreateOFDPacket done [18:43:02]NVStorageSaveData kkm_last_timestamp [18:43:02]File name is /storage/kkm_last_timestamp [18:43:02]Write 4 bytes [18:43:02]NVStorageSaveData done [18:43:02]ExternCall_PrintAddStr [18:43:02]wPrintStart [18:43:02]Write to MH i2c: 01 00 00 67 68 CF [18:43:02]Write i2c OK [18:43:02]MH_I2C_Read... [18:43:02]Read from MH i2c: 01 [18:43:02]MH_I2C_Read... [18:43:02]Read from MH i2c: 01 07 00 [18:43:02]MH_I2C_Read... [18:43:02]Read from MH i2c: 01 07 00 67 68 00 00 00 00 00 FF 0F E4 [18:43:02]RasterBufferAndPrint [18:43:02]line Счет N : (1)1964940 [18:43:02]line ИНН: 02508201610067 [18:43:02]line Контрольно-Кассовый Чек [18:43:02]line ПРОДАЖА [18:43:02]line ТРК (МРК, ГНК) : 53 [18:43:02]line Товар: 2710124130 [18:43:02]line Аи-92-К-5 [18:43:02]line 44.850 * 66.90 [18:43:02]line = 3000.47 [18:43:02]line НДС 12% НСП 1% [18:43:02]line > о реализуемом товаре [18:43:02]line ИТОГО: 3000.47 [18:43:02]line НСП 1% : 26.55 [18:43:02]line НДС 12% : 318.63 [18:43:02]line Наличными: 0.00 [18:43:02]line Безнал.: 3000.47 [18:43:02]line Место: АЗС № 133 "Партнер Нефть" [18:43:02]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:43:02]line СНО: Общий режим [18:43:02]line Чек 353 22.10.2024 18:43 [18:43:02]line Смена: 535 ФФД: 1.0 [18:43:02]line ЗНМ: 0300000091 [18:43:02]line РНМ: 0000000000091685 [18:43:02]line Версия ККМ: 001 [18:43:02]line Платежная система: Mbank [18:43:02]line ФМ: 0000000000871839 [18:43:02]line ФД: 228389 [18:43:02]line ФПД: 275596350956889 [18:43:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184306&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228389&fm=275596350956889&tin=02508201610067®Number=0000000000091685&sum=300047 [18:43:02]written 0, free lines is 4095 [18:43:02]OFD Sender: Processing packet 228389 [packets to send 38, broken 37] [18:43:02]ProducePacketName [18:43:02]name=ofd_packets/00228389 [18:43:03]OFD Sender: To server: pG, [18:43:03]CommunicateWithHost lk.salyk.kg:30040 [18:43:03]ConnectInit lk.salyk.kg [18:43:03]Connected sock=10 [18:43:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 23 89 07 01 1F 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 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 3A F2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 25 7C 03 00 35 04 06 00 FA A7 46 99 A5 59 A4 7C E1 B2 63 7F 64 B9 [18:43:03]Write to MH i2c: 01 00 00 8F 68 F7 [18:43:03]Write i2c OK [18:43:03]MH_I2C_Read... [18:43:03]Read from MH i2c: 01 [18:43:03]MH_I2C_Read... [18:43:03]Read from MH i2c: 01 07 00 [18:43:03]MH_I2C_Read... [18:43:03]Read from MH i2c: 01 07 00 8F 68 00 00 00 00 00 E5 0C EF [18:43:03]RasterBufferAndPrint [18:43:03]line [18:43:03]line [18:43:03]line [18:43:03]line [18:43:03]line [18:43:03]written 0, free lines is 3306 [18:43:03]MH_Cut [18:43:03]Write to MH i2c: D1 01 00 96 68 01 D0 [18:43:03]Write i2c OK [18:43:03]MH_I2C_Read... [18:43:03]Read from MH i2c: D1 [18:43:03]MH_I2C_Read... [18:43:03]Read from MH i2c: D1 01 00 [18:43:03]MH_I2C_Read... [18:43:03]Read from MH i2c: D1 01 00 96 68 00 CF [18:43:03]Write to MH i2c: 01 00 00 97 68 FF [18:43:03]Write i2c OK [18:43:03]MH_I2C_Read... [18:43:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 88 8D 47 00 31 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 25 7C 03 00 F4 03 04 00 32 9D 17 67 B6 04 01 00 00 AF 2B 3B 5E BC C4 F6 A5 [18:43:03]CommunicateWithHost err = 0 [18:43:03]CheckOFDResponse [18:43:03]1017 (14) - 77093643461234 [18:43:03]1041 (16) - 0000000000871839 [18:43:03]1040 (4) - 228389 [18:43:03]1012 (4) - 22.10.2024 12:40 [18:43:03]1206 (1) - 0 [18:43:03]OFD Sender: Remove packet 228389 [18:43:03]ProducePacketName [18:43:03]name=ofd_packets/00228389 [18:43:03]NVStorageDeleteData [18:43:04]OFD Sender: No OFD packet to send [18:43:04]*** Cut start [18:43:04]*** Partial cut [18:43:04]*** CUTSNS_PIN = 1 [18:43:04]*** CUTSNS_PIN = 0 [18:43:04]*** Brake cut motor [18:43:04]Read from MH i2c: 01 [18:43:04]MH_I2C_Read... [18:43:04]*** Stop cut motor [18:43:04]*** Cut end [18:43:04]Read from MH i2c: 01 07 00 [18:43:04]MH_I2C_Read... [18:43:04]Read from MH i2c: 01 07 00 97 68 00 00 00 00 00 FF 0F 14 [18:43:04]process_action close_receipt done [18:43:04]requested_data is exist [18:43:04]produce_requested_data [18:43:04]requested_item fm.sn is exist - process it [18:43:04]wFMCommunicate request_size=4 [18:43:04]MH_SAM_APDU [18:43:04]CAPDU: 80 11 00 00 [18:43:04]Write to MH i2c: E2 08 00 98 68 80 11 00 00 00 00 00 00 7A [18:43:04]Write i2c OK [18:43:04]MH_I2C_Read... [18:43:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:04]Read from MH i2c: E2 [18:43:04]MH_I2C_Read... [18:43:04]Read from MH i2c: E2 17 00 [18:43:04]MH_I2C_Read... [18:43:04]Read from MH i2c: E2 17 00 98 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D1 [18:43:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:43:04]wFMCommunicate OK [18:43:04]requested_item fd.num is exist - process it [18:43:04]SAM_PROTO_GetFieldsCounters [18:43:04]wFMCommunicate request_size=4 [18:43:04]MH_SAM_APDU [18:43:04]CAPDU: 80 13 00 00 [18:43:04]Write to MH i2c: E2 08 00 99 68 80 13 00 00 00 00 00 00 7D [18:43:04]Write i2c OK [18:43:04]MH_I2C_Read... [18:43:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:43:05]Read from MH i2c: E2 [18:43:05]MH_I2C_Read... [18:43:05]Read from MH i2c: E2 62 00 [18:43:05]MH_I2C_Read... [18:43:05]Read from MH i2c: E2 62 00 99 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 25 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 89 [18:43:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 25 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:43:05]wFMCommunicate OK [18:43:05]SAM_PROTO_GetFieldsCounters done [18:43:05]requested_item shift.num is exist - process it [18:43:05]requested_item shift.opened is exist - process it [18:43:05]req_shift_opened [18:43:05]FM_GetShiftState [18:43:05]SAM_PROTO_GetShiftState [18:43:05]wFMCommunicate request_size=4 [18:43:05]MH_SAM_APDU [18:43:05]CAPDU: 80 13 01 00 [18:43:05]Write to MH i2c: E2 08 00 9A 68 80 13 01 00 00 00 00 00 7F [18:43:05]Write i2c OK [18:43:05]MH_I2C_Read... [18:43:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:05]Read from MH i2c: E2 [18:43:05]MH_I2C_Read... [18:43:05]Read from MH i2c: E2 0E 00 [18:43:05]MH_I2C_Read... [18:43:05]Read from MH i2c: E2 0E 00 9A 68 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 46 [18:43:05]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:43:05]wFMCommunicate OK [18:43:05]SAM_PROTO_GetShiftState done [18:43:05]FM_GetShiftState done [18:43:05]req_shift_opened done [18:43:05]requested_item shift.open_date is exist - process it [18:43:05]req_shift_open_date [18:43:05]req_shift_open_date done [18:43:05]produce_requested_data done [18:43:05]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228389,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [18:43:05]process_action_free close_receipt [18:43:05]json_value_free [18:43:05]json_value_free done [18:43:05]process_json_proto returns [18:43:05]Send response to host [18:43:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228389,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [18:43:05]free response buf [18:43:05]execute_script done [18:43:05]execute_script returns [18:43:05]free content buf [18:43:05]Sock 7.Close socket [18:43:05]Sock 7.Thread stoped [18:43:09]OFD Sender: No OFD packet to send [18:43:14]OFD Sender: No OFD packet to send [18:43:19]OFD Sender: No OFD packet to send [18:43:24]OFD Sender: No OFD packet to send [18:43:29]OFD Sender: No OFD packet to send [18:43:34]OFD Sender: No OFD packet to send [18:43:39]OFD Sender: No OFD packet to send [18:43:44]OFD Sender: No OFD packet to send [18:43:49]OFD Sender: No OFD packet to send [18:43:54]OFD Sender: No OFD packet to send [18:43:59]OFD Sender: No OFD packet to send [18:44:04]OFD Sender: No OFD packet to send [18:44:09]OFD Sender: No OFD packet to send [18:44:14]OFD Sender: No OFD packet to send [18:44:19]OFD Sender: No OFD packet to send [18:44:24]OFD Sender: No OFD packet to send [18:44:29]OFD Sender: No OFD packet to send [18:44:34]OFD Sender: No OFD packet to send [18:44:39]OFD Sender: No OFD packet to send [18:44:41]accept exits with 9 [18:44:41]New connection [18:44:41]New thread 3067137380 created [18:44:41]Thread 3066994020 joined [18:44:41]Waiting for new connection... [18:44:41] Sock 9.Parse request [18:44:41]Sock 9.Check first char [18:44:41]Sock 9.First char is OK [18:44:41]request: POST /json_proto HTTP/1.0 [18:44:41]Method: POST [18:44:41]URL: /json_proto [18:44:41]Method is POST - this is cgi request [18:44:41]url: /json_proto [18:44:41]query_string will be loaded in cgi processing [18:44:41]execute_cgi json_proto POST (null) [18:44:41]execute_cgi path=json_proto method=POST [18:44:41]POST find Content-Length [18:44:41]Host: 172.17.44.195:8080 [18:44:41]Content-Length: 678 [18:44:41]Content-Type: application/json [18:44:41] [18:44:41]POST finish read [18:44:41]Found Content-Length = 678 [18:44:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:44:41]execute_script... [18:44: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)1964941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:44:41]POST & json_proto [18:44:41]process_json_proto [18:44:41]json parsed OK: [18:44:41]protocol is kg_v1.0 [18:44:41]action value=close_receipt [18:44:41]process_action close_receipt [18:44:41]cmd_close_receipt [18:44:41]MH_GetDate [18:44:41]Write to MH i2c: F0 00 00 9B 68 F2 [18:44:41]Write i2c OK [18:44:41]MH_I2C_Read... [18:44:41]Read from MH i2c: F0 [18:44:41]MH_I2C_Read... [18:44:41]Read from MH i2c: F0 09 00 [18:44:41]MH_I2C_Read... [18:44:41]Read from MH i2c: F0 09 00 9B 68 00 9E F2 17 67 82 C9 CF 66 89 [18:44:41]GetLastDocTimeStamp 1729622586 [18:44:41]current date 1729622686 [18:44:41]FM_GetShiftState [18:44:41]SAM_PROTO_GetShiftState [18:44:41]wFMCommunicate request_size=4 [18:44:41]MH_SAM_APDU [18:44:41]CAPDU: 80 13 01 00 [18:44:41]Write to MH i2c: E2 08 00 9C 68 80 13 01 00 00 00 00 00 81 [18:44:41]Write i2c OK [18:44:41]MH_I2C_Read... [18:44:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:41]Read from MH i2c: E2 [18:44:41]MH_I2C_Read... [18:44:41]Read from MH i2c: E2 0E 00 [18:44:41]MH_I2C_Read... [18:44:41]Read from MH i2c: E2 0E 00 9C 68 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 48 [18:44:41]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:44:41]wFMCommunicate OK [18:44:41]SAM_PROTO_GetShiftState done [18:44:41]FM_GetShiftState done [18:44:41]opened in 1729555538 [18:44:41]opened+sec_in_day 1729641938 [18:44:41]quantity*price = 50041 [18:44:41]sum+1 = 50042 [18:44:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 354 22.10.2024 18:44 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228390 ФПД: 102190831504331 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184446&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228390&fm=102190831504331&tin=02508201610067®Number=0000000000091685&sum=50000 [18:44:42]StoreToDocumentArchive [18:44:42]shift 535 fd 228390 [18:44:42]save to /storage/0535/doc_00228390 [18:44:42]save last doc name /storage/0535/doc_00228390 to /storage/kkm_last_doc_name [18:44:42]save OK [18:44:42]Clear old archive folders... [18:44:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:44:42]tlvbuf is 00895A70 [18:44:42]SAM_PROTO_ClearQueue [18:44:42]wFMCommunicate request_size=4 [18:44:42]MH_SAM_APDU [18:44:42]CAPDU: 80 09 00 00 [18:44:42]Write to MH i2c: E2 08 00 A9 68 80 09 00 00 00 00 00 00 83 [18:44:42]Write i2c OK [18:44:42]MH_I2C_Read... [18:44:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:42]Read from MH i2c: E2 [18:44:42]MH_I2C_Read... [18:44:42]Read from MH i2c: E2 03 00 [18:44:42]MH_I2C_Read... [18:44:42]Read from MH i2c: E2 03 00 A9 68 00 90 00 85 [18:44:42]RAPDU: 90 00 [18:44:42]wFMCommunicate OK [18:44:42]SAM_PROTO_ClearQueue done [18:44:42]KKMCreateOFDPacket [18:44:42]OFDProtocolAddRootSTLVToBuf [18:44:42]FM_MakeSignedData [18:44:42]FM_MakeSignedData [18:44:42]SAM_PROTO_SignData [18:44:42]wFMCommunicate request_size=4 [18:44:42]MH_SAM_APDU [18:44:42]CAPDU: 80 0D 01 02 [18:44:42]Write to MH i2c: E2 08 00 AA 68 80 0D 01 02 00 00 00 00 8B [18:44:42]Write i2c OK [18:44:42]MH_I2C_Read... [18:44:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:42]Read from MH i2c: E2 [18:44:42]MH_I2C_Read... [18:44:42]Read from MH i2c: E2 03 00 [18:44:42]MH_I2C_Read... [18:44:42]Read from MH i2c: E2 03 00 AA 68 00 90 00 86 [18:44:42]RAPDU: 90 00 [18:44:42]wFMCommunicate OK [18:44:42]wFMCommunicate request_size=255 [18:44:42]MH_SAM_APDU [18:44: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 9E F2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 26 7C 03 00 35 04 06 00 5C [18:44:42]Write to MH i2c: E2 02 01 AB 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 9E F2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 26 7C 03 00 35 04 06 00 5C 00 00 AD [18:44:42]Write i2c OK [18:44:42]MH_I2C_Read... [18:44:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:42]Read from MH i2c: E2 [18:44:42]MH_I2C_Read... [18:44:42]Read from MH i2c: E2 03 00 [18:44:42]MH_I2C_Read... [18:44:42]Read from MH i2c: E2 03 00 AB 68 00 90 00 87 [18:44:42]RAPDU: 90 00 [18:44:42]wFMCommunicate OK [18:44:42]wFMCommunicate request_size=10 [18:44:42]MH_SAM_APDU [18:44:42]CAPDU: 80 0D 02 02 05 F1 28 36 0B CB [18:44:42]Write to MH i2c: E2 0D 00 AC 68 80 0D 02 02 05 00 F1 28 36 0B CB 00 00 BD [18:44:42]Write i2c OK [18:44:42]MH_I2C_Read... [18:44:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:42]Read from MH i2c: E2 [18:44:42]MH_I2C_Read... [18:44:42]Read from MH i2c: E2 03 00 [18:44:42]MH_I2C_Read... [18:44:42]Read from MH i2c: E2 03 00 AC 68 00 90 00 88 [18:44:42]RAPDU: 90 00 [18:44:42]wFMCommunicate OK [18:44:42]wFMCommunicate request_size=4 [18:44:42]MH_SAM_APDU [18:44:42]CAPDU: 80 0D 03 02 [18:44:42]Write to MH i2c: E2 08 00 AD 68 80 0D 03 02 00 00 00 00 90 [18:44:42]Write i2c OK [18:44:42]MH_I2C_Read... [18:44:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:42]Read from MH i2c: E2 [18:44:42]MH_I2C_Read... [18:44:42]Read from MH i2c: E2 0B 00 [18:44:42]MH_I2C_Read... [18:44:42]Read from MH i2c: E2 0B 00 AD 68 00 0E 26 55 6E FD 75 78 6D 90 00 DF [18:44:42]RAPDU: 0E 26 55 6E FD 75 78 6D 90 00 [18:44:42]wFMCommunicate OK [18:44:42]SAM_PROTO_SignData done [18:44:42]FM_MakeSignedData done [18:44:42]CreateOFDProtocolMessage [18:44:42]wFMCommunicate request_size=4 [18:44:42]MH_SAM_APDU [18:44:42]CAPDU: 80 11 00 00 [18:44:42]Write to MH i2c: E2 08 00 AE 68 80 11 00 00 00 00 00 00 90 [18:44:42]Write i2c OK [18:44:42]MH_I2C_Read... [18:44:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:42]Read from MH i2c: E2 [18:44:42]MH_I2C_Read... [18:44:42]Read from MH i2c: E2 17 00 [18:44:42]MH_I2C_Read... [18:44:42]Read from MH i2c: E2 17 00 AE 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E7 [18:44:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:44:42]wFMCommunicate OK [18:44:42]CreateOFDProtocolMessage done [18:44:42]OFDSenderStorePacket 228390 [18:44:42]StoreOFDPacket docnum=228390 [18:44:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 FA D7 07 01 75 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 9E F2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 26 7C 03 00 35 04 06 00 5C F1 28 36 0B CB 0E 26 55 6E FD 75 78 6D [18:44:42]CheckFolder [18:44:42]dirname=/storage/ofd_packets [18:44:42]CheckFolder done [18:44:42]ProducePacketName [18:44:42]name=ofd_packets/00228390 [18:44:42]NVStorageSaveData ofd_packets/00228390 [18:44:42]File name is /storage/ofd_packets/00228390 [18:44:42]Write 301 bytes [18:44:42]NVStorageSaveData done [18:44:42]OFDSenderStorePacket done [18:44:42]KKMCreateOFDPacket done [18:44:42]NVStorageSaveData kkm_last_timestamp [18:44:42]File name is /storage/kkm_last_timestamp [18:44:42]Write 4 bytes [18:44:42]NVStorageSaveData done [18:44:42]ExternCall_PrintAddStr [18:44:42]wPrintStart [18:44:42]Write to MH i2c: 01 00 00 AF 68 17 [18:44:42]Write i2c OK [18:44:42]MH_I2C_Read... [18:44:42]Read from MH i2c: 01 [18:44:42]MH_I2C_Read... [18:44:42]Read from MH i2c: 01 07 00 [18:44:42]MH_I2C_Read... [18:44:42]Read from MH i2c: 01 07 00 AF 68 00 00 00 00 00 FF 0F 2C [18:44:42]RasterBufferAndPrint [18:44:42]line Счет N : (1)1964941 [18:44:42]line ИНН: 02508201610067 [18:44:42]line Контрольно-Кассовый Чек [18:44:42]line ПРОДАЖА [18:44:42]line ТРК (МРК, ГНК) : 43 [18:44:42]line Товар: 2710124130 [18:44:42]line Аи-92-К-5 [18:44:42]line 7.480 * 66.90 [18:44:42]line = 500.41 [18:44:42]line НДС 12% НСП 1% [18:44:42]line > о реализуемом товаре [18:44:42]line ОКРУГЛЕНИЕ: -0.41 [18:44:42]line ИТОГО: 500.00 [18:44:42]line Внесено: 500.00 [18:44:42]line СДАЧА: 0.00 [18:44:42]line НСП 1% : 4.43 [18:44:42]line НДС 12% : 53.14 [18:44:42]line Наличными: 500.00 [18:44:42]line Безнал.: 0.00 [18:44:42]line Место: АЗС № 133 "Партнер Нефть" [18:44:42]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:44:42]line СНО: Общий режим [18:44:42]line Чек 354 22.10.2024 18:44 [18:44:42]line Смена: 535 ФФД: 1.0 [18:44:42]line ЗНМ: 0300000091 [18:44:42]line РНМ: 0000000000091685 [18:44:42]line Версия ККМ: 001 [18:44:42]line ФМ: 0000000000871839 [18:44:42]line ФД: 228390 [18:44:42]line ФПД: 102190831504331 [18:44:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184446&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228390&fm=102190831504331&tin=02508201610067®Number=0000000000091685&sum=50000 [18:44:43]written 0, free lines is 4095 [18:44:43]OFD Sender: Processing packet 228390 [packets to send 38, broken 37] [18:44:43]ProducePacketName [18:44:43]name=ofd_packets/00228390 [18:44:43]OFD Sender: To server: pG, [18:44:43]CommunicateWithHost lk.salyk.kg:30040 [18:44:43]ConnectInit lk.salyk.kg [18:44:43]Connected sock=10 [18:44:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 FA D7 07 01 75 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 9E F2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 26 7C 03 00 35 04 06 00 5C F1 28 36 0B CB 0E 26 55 6E FD 75 78 6D [18:44:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 7F 6D 47 00 A2 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 26 7C 03 00 F4 03 04 00 96 9D 17 67 B6 04 01 00 00 A7 7E 4C 7F 30 19 E7 7A [18:44:43]CommunicateWithHost err = 0 [18:44:43]CheckOFDResponse [18:44:43]1017 (14) - 77093643461234 [18:44:43]1041 (16) - 0000000000871839 [18:44:43]1040 (4) - 228390 [18:44:43]1012 (4) - 22.10.2024 12:41 [18:44:43]1206 (1) - 0 [18:44:43]OFD Sender: Remove packet 228390 [18:44:43]ProducePacketName [18:44:43]name=ofd_packets/00228390 [18:44:43]NVStorageDeleteData [18:44:43]Write to MH i2c: 01 00 00 D9 68 41 [18:44:43]Write i2c OK [18:44:43]MH_I2C_Read... [18:44:43]Read from MH i2c: 01 [18:44:43]MH_I2C_Read... [18:44:43]Read from MH i2c: 01 07 00 [18:44:43]MH_I2C_Read... [18:44:43]Read from MH i2c: 01 07 00 D9 68 00 00 00 00 00 A5 0C F9 [18:44:43]RasterBufferAndPrint [18:44:43]line [18:44:43]line [18:44:43]line [18:44:43]line [18:44:43]line [18:44:43]written 0, free lines is 3242 [18:44:43]MH_Cut [18:44:43]Write to MH i2c: D1 01 00 E0 68 01 1A [18:44:43]Write i2c OK [18:44:43]MH_I2C_Read... [18:44:43]Read from MH i2c: D1 [18:44:43]MH_I2C_Read... [18:44:43]Read from MH i2c: D1 01 00 [18:44:43]MH_I2C_Read... [18:44:43]Read from MH i2c: D1 01 00 E0 68 00 19 [18:44:43]Write to MH i2c: 01 00 00 E1 68 49 [18:44:43]Write i2c OK [18:44:43]MH_I2C_Read... [18:44:43]OFD Sender: No OFD packet to send [18:44:44]*** Cut start [18:44:44]*** Partial cut [18:44:44]*** CUTSNS_PIN = 1 [18:44:44]*** CUTSNS_PIN = 0 [18:44:44]*** Brake cut motor [18:44:45]Read from MH i2c: 01 [18:44:45]MH_I2C_Read... [18:44:45]*** Stop cut motor [18:44:45]*** Cut end [18:44:45]Read from MH i2c: 01 07 00 [18:44:45]MH_I2C_Read... [18:44:45]Read from MH i2c: 01 07 00 E1 68 00 00 00 00 00 FF 0F 5E [18:44:45]process_action close_receipt done [18:44:45]requested_data is exist [18:44:45]produce_requested_data [18:44:45]requested_item fm.sn is exist - process it [18:44:45]wFMCommunicate request_size=4 [18:44:45]MH_SAM_APDU [18:44:45]CAPDU: 80 11 00 00 [18:44:45]Write to MH i2c: E2 08 00 E2 68 80 11 00 00 00 00 00 00 C4 [18:44:45]Write i2c OK [18:44:45]MH_I2C_Read... [18:44:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:45]Read from MH i2c: E2 [18:44:45]MH_I2C_Read... [18:44:45]Read from MH i2c: E2 17 00 [18:44:45]MH_I2C_Read... [18:44:45]Read from MH i2c: E2 17 00 E2 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1B [18:44:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:44:45]wFMCommunicate OK [18:44:45]requested_item fd.num is exist - process it [18:44:45]SAM_PROTO_GetFieldsCounters [18:44:45]wFMCommunicate request_size=4 [18:44:45]MH_SAM_APDU [18:44:45]CAPDU: 80 13 00 00 [18:44:45]Write to MH i2c: E2 08 00 E3 68 80 13 00 00 00 00 00 00 C7 [18:44:45]Write i2c OK [18:44:45]MH_I2C_Read... [18:44:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:45]Read from MH i2c: E2 [18:44:45]MH_I2C_Read... [18:44:45]Read from MH i2c: E2 62 00 [18:44:45]MH_I2C_Read... [18:44:45]Read from MH i2c: E2 62 00 E3 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 26 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 D7 [18:44:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 26 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:44:45]wFMCommunicate OK [18:44:45]SAM_PROTO_GetFieldsCounters done [18:44:45]requested_item shift.num is exist - process it [18:44:45]requested_item shift.opened is exist - process it [18:44:45]req_shift_opened [18:44:45]FM_GetShiftState [18:44:45]SAM_PROTO_GetShiftState [18:44:45]wFMCommunicate request_size=4 [18:44:45]MH_SAM_APDU [18:44:45]CAPDU: 80 13 01 00 [18:44:45]Write to MH i2c: E2 08 00 E4 68 80 13 01 00 00 00 00 00 C9 [18:44:45]Write i2c OK [18:44:45]MH_I2C_Read... [18:44:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:45]Read from MH i2c: E2 [18:44:45]MH_I2C_Read... [18:44:45]Read from MH i2c: E2 0E 00 [18:44:45]MH_I2C_Read... [18:44:45]Read from MH i2c: E2 0E 00 E4 68 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 90 [18:44:45]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:44:45]wFMCommunicate OK [18:44:45]SAM_PROTO_GetShiftState done [18:44:45]FM_GetShiftState done [18:44:45]req_shift_opened done [18:44:45]requested_item shift.open_date is exist - process it [18:44:45]req_shift_open_date [18:44:45]req_shift_open_date done [18:44:45]produce_requested_data done [18:44:45]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228390,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [18:44:45]process_action_free close_receipt [18:44:45]json_value_free [18:44:45]json_value_free done [18:44:45]process_json_proto returns [18:44:45]Send response to host [18:44:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228390,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [18:44:45]free response buf [18:44:45]execute_script done [18:44:45]execute_script returns [18:44:45]free content buf [18:44:45]Sock 9.Close socket [18:44:45]Sock 9.Thread stoped [18:44:48]OFD Sender: No OFD packet to send [18:44:51]accept exits with 7 [18:44:51]New connection [18:44:51]New thread 3066994020 created [18:44:51]Thread 3067137380 joined [18:44:51]Waiting for new connection... [18:44:51] Sock 7.Parse request [18:44:51]Sock 7.Check first char [18:44:51]Sock 7.First char is OK [18:44:51]request: POST /json_proto HTTP/1.0 [18:44:51]Method: POST [18:44:51]URL: /json_proto [18:44:51]Method is POST - this is cgi request [18:44:51]url: /json_proto [18:44:51]query_string will be loaded in cgi processing [18:44:51]execute_cgi json_proto POST (null) [18:44:51]execute_cgi path=json_proto method=POST [18:44:51]POST find Content-Length [18:44:51]Host: 172.17.44.195:8080 [18:44:51]Content-Length: 678 [18:44:51]Content-Type: application/json [18:44:51] [18:44:51]POST finish read [18:44:51]Found Content-Length = 678 [18:44:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964942", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:44:51]execute_script... [18:44: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)1964942", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:44:51]POST & json_proto [18:44:51]process_json_proto [18:44:51]json parsed OK: [18:44:51]protocol is kg_v1.0 [18:44:51]action value=close_receipt [18:44:51]process_action close_receipt [18:44:51]cmd_close_receipt [18:44:51]MH_GetDate [18:44:51]Write to MH i2c: F0 00 00 E5 68 3C [18:44:51]Write i2c OK [18:44:51]MH_I2C_Read... [18:44:51]Read from MH i2c: F0 [18:44:51]MH_I2C_Read... [18:44:51]Read from MH i2c: F0 09 00 [18:44:51]MH_I2C_Read... [18:44:51]Read from MH i2c: F0 09 00 E5 68 00 A8 F2 17 67 82 C9 CF 66 DD [18:44:51]GetLastDocTimeStamp 1729622686 [18:44:51]current date 1729622696 [18:44:51]FM_GetShiftState [18:44:51]SAM_PROTO_GetShiftState [18:44:51]wFMCommunicate request_size=4 [18:44:51]MH_SAM_APDU [18:44:51]CAPDU: 80 13 01 00 [18:44:51]Write to MH i2c: E2 08 00 E6 68 80 13 01 00 00 00 00 00 CB [18:44:51]Write i2c OK [18:44:51]MH_I2C_Read... [18:44:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:51]Read from MH i2c: E2 [18:44:51]MH_I2C_Read... [18:44:51]Read from MH i2c: E2 0E 00 [18:44:51]MH_I2C_Read... [18:44:51]Read from MH i2c: E2 0E 00 E6 68 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 92 [18:44:51]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:44:51]wFMCommunicate OK [18:44:51]SAM_PROTO_GetShiftState done [18:44:51]FM_GetShiftState done [18:44:51]opened in 1729555538 [18:44:51]opened+sec_in_day 1729641938 [18:44:51]quantity*price = 50041 [18:44:51]sum+1 = 50042 [18:44:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 355 22.10.2024 18:44 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228391 ФПД: 166468721301003 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184456&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228391&fm=166468721301003&tin=02508201610067®Number=0000000000091685&sum=50000 [18:44:52]StoreToDocumentArchive [18:44:52]shift 535 fd 228391 [18:44:52]save to /storage/0535/doc_00228391 [18:44:52]save last doc name /storage/0535/doc_00228391 to /storage/kkm_last_doc_name [18:44:52]save OK [18:44:52]Clear old archive folders... [18:44:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:44:52]tlvbuf is 00984520 [18:44:52]SAM_PROTO_ClearQueue [18:44:52]wFMCommunicate request_size=4 [18:44:52]MH_SAM_APDU [18:44:52]CAPDU: 80 09 00 00 [18:44:52]Write to MH i2c: E2 08 00 F3 68 80 09 00 00 00 00 00 00 CD [18:44:52]Write i2c OK [18:44:52]MH_I2C_Read... [18:44:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:52]Read from MH i2c: E2 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: E2 03 00 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: E2 03 00 F3 68 00 90 00 CF [18:44:52]RAPDU: 90 00 [18:44:52]wFMCommunicate OK [18:44:52]SAM_PROTO_ClearQueue done [18:44:52]KKMCreateOFDPacket [18:44:52]OFDProtocolAddRootSTLVToBuf [18:44:52]FM_MakeSignedData [18:44:52]FM_MakeSignedData [18:44:52]SAM_PROTO_SignData [18:44:52]wFMCommunicate request_size=4 [18:44:52]MH_SAM_APDU [18:44:52]CAPDU: 80 0D 01 02 [18:44:52]Write to MH i2c: E2 08 00 F4 68 80 0D 01 02 00 00 00 00 D5 [18:44:52]Write i2c OK [18:44:52]MH_I2C_Read... [18:44:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:52]Read from MH i2c: E2 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: E2 03 00 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: E2 03 00 F4 68 00 90 00 D0 [18:44:52]RAPDU: 90 00 [18:44:52]wFMCommunicate OK [18:44:52]wFMCommunicate request_size=255 [18:44:52]MH_SAM_APDU [18:44:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 A8 F2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 27 7C 03 00 35 04 06 00 97 [18:44:52]Write to MH i2c: E2 02 01 F5 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 A8 F2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 27 7C 03 00 35 04 06 00 97 00 00 3E [18:44:52]Write i2c OK [18:44:52]MH_I2C_Read... [18:44:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:52]Read from MH i2c: E2 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: E2 03 00 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: E2 03 00 F5 68 00 90 00 D1 [18:44:52]RAPDU: 90 00 [18:44:52]wFMCommunicate OK [18:44:52]wFMCommunicate request_size=10 [18:44:52]MH_SAM_APDU [18:44:52]CAPDU: 80 0D 02 02 05 67 04 FF D6 0B [18:44:52]Write to MH i2c: E2 0D 00 F6 68 80 0D 02 02 05 00 67 04 FF D6 0B 00 00 2D [18:44:52]Write i2c OK [18:44:52]MH_I2C_Read... [18:44:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:52]Read from MH i2c: E2 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: E2 03 00 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: E2 03 00 F6 68 00 90 00 D2 [18:44:52]RAPDU: 90 00 [18:44:53]wFMCommunicate OK [18:44:53]wFMCommunicate request_size=4 [18:44:53]MH_SAM_APDU [18:44:53]CAPDU: 80 0D 03 02 [18:44:53]Write to MH i2c: E2 08 00 F7 68 80 0D 03 02 00 00 00 00 DA [18:44:53]Write i2c OK [18:44:53]MH_I2C_Read... [18:44:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:53]Read from MH i2c: E2 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: E2 0B 00 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: E2 0B 00 F7 68 00 27 8C 59 6B E0 19 BD DB 90 00 E3 [18:44:53]RAPDU: 27 8C 59 6B E0 19 BD DB 90 00 [18:44:53]wFMCommunicate OK [18:44:53]SAM_PROTO_SignData done [18:44:53]FM_MakeSignedData done [18:44:53]CreateOFDProtocolMessage [18:44:53]wFMCommunicate request_size=4 [18:44:53]MH_SAM_APDU [18:44:53]CAPDU: 80 11 00 00 [18:44:53]Write to MH i2c: E2 08 00 F8 68 80 11 00 00 00 00 00 00 DA [18:44:53]Write i2c OK [18:44:53]MH_I2C_Read... [18:44:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:53]Read from MH i2c: E2 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: E2 17 00 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: E2 17 00 F8 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 31 [18:44:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:44:53]wFMCommunicate OK [18:44:53]CreateOFDProtocolMessage done [18:44:53]OFDSenderStorePacket 228391 [18:44:53]StoreOFDPacket docnum=228391 [18:44:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 76 EF 07 01 80 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 A8 F2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 27 7C 03 00 35 04 06 00 97 67 04 FF D6 0B 27 8C 59 6B E0 19 BD DB [18:44:53]CheckFolder [18:44:53]dirname=/storage/ofd_packets [18:44:53]CheckFolder done [18:44:53]ProducePacketName [18:44:53]name=ofd_packets/00228391 [18:44:53]NVStorageSaveData ofd_packets/00228391 [18:44:53]File name is /storage/ofd_packets/00228391 [18:44:53]Write 301 bytes [18:44:53]NVStorageSaveData done [18:44:53]OFDSenderStorePacket done [18:44:53]KKMCreateOFDPacket done [18:44:53]NVStorageSaveData kkm_last_timestamp [18:44:53]File name is /storage/kkm_last_timestamp [18:44:53]Write 4 bytes [18:44:53]NVStorageSaveData done [18:44:53]ExternCall_PrintAddStr [18:44:53]wPrintStart [18:44:53]Write to MH i2c: 01 00 00 F9 68 61 [18:44:53]Write i2c OK [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: 01 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: 01 07 00 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: 01 07 00 F9 68 00 00 00 00 00 FF 0F 76 [18:44:53]RasterBufferAndPrint [18:44:53]line Счет N : (1)1964942 [18:44:53]line ИНН: 02508201610067 [18:44:53]line Контрольно-Кассовый Чек [18:44:53]line ПРОДАЖА [18:44:53]line ТРК (МРК, ГНК) : 53 [18:44:53]line Товар: 2710124130 [18:44:53]line Аи-92-К-5 [18:44:53]line 7.480 * 66.90 [18:44:53]line = 500.41 [18:44:53]line НДС 12% НСП 1% [18:44:53]line > о реализуемом товаре [18:44:53]line ОКРУГЛЕНИЕ: -0.41 [18:44:53]line ИТОГО: 500.00 [18:44:53]line Внесено: 500.00 [18:44:53]line СДАЧА: 0.00 [18:44:53]line НСП 1% : 4.43 [18:44:53]line НДС 12% : 53.14 [18:44:53]line Наличными: 500.00 [18:44:53]line Безнал.: 0.00 [18:44:53]line Место: АЗС № 133 "Партнер Нефть" [18:44:53]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:44:53]line СНО: Общий режим [18:44:53]line Чек 355 22.10.2024 18:44 [18:44:53]line Смена: 535 ФФД: 1.0 [18:44:53]line ЗНМ: 0300000091 [18:44:53]line РНМ: 0000000000091685 [18:44:53]line Версия ККМ: 001 [18:44:53]line ФМ: 0000000000871839 [18:44:53]line ФД: 228391 [18:44:53]line ФПД: 166468721301003 [18:44:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184456&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228391&fm=166468721301003&tin=02508201610067®Number=0000000000091685&sum=50000 [18:44:53]written 0, free lines is 4095 [18:44:53]OFD Sender: Processing packet 228391 [packets to send 38, broken 37] [18:44:53]ProducePacketName [18:44:53]name=ofd_packets/00228391 [18:44:53]OFD Sender: To server: pG, [18:44:53]CommunicateWithHost lk.salyk.kg:30040 [18:44:53]ConnectInit lk.salyk.kg [18:44:53]Connected sock=9 [18:44:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 76 EF 07 01 80 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 A8 F2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 27 7C 03 00 35 04 06 00 97 67 04 FF D6 0B 27 8C 59 6B E0 19 BD DB [18:44:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 B2 1D 47 00 B2 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 27 7C 03 00 F4 03 04 00 A0 9D 17 67 B6 04 01 00 00 D5 BC 53 EE BA 30 BD 42 [18:44:53]CommunicateWithHost err = 0 [18:44:53]CheckOFDResponse [18:44:53]1017 (14) - 77093643461234 [18:44:53]1041 (16) - 0000000000871839 [18:44:53]1040 (4) - 228391 [18:44:53]1012 (4) - 22.10.2024 12:42 [18:44:53]1206 (1) - 0 [18:44:53]OFD Sender: Remove packet 228391 [18:44:53]ProducePacketName [18:44:53]name=ofd_packets/00228391 [18:44:53]NVStorageDeleteData [18:44:53]Write to MH i2c: 01 00 00 23 69 8C [18:44:53]Write i2c OK [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: 01 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: 01 07 00 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: 01 07 00 23 69 00 00 00 00 00 AA 0C 49 [18:44:53]RasterBufferAndPrint [18:44:53]line [18:44:53]line [18:44:53]line [18:44:53]line [18:44:53]line [18:44:53]written 0, free lines is 3249 [18:44:53]MH_Cut [18:44:53]Write to MH i2c: D1 01 00 2A 69 01 65 [18:44:53]Write i2c OK [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: D1 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: D1 01 00 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: D1 01 00 2A 69 00 64 [18:44:53]Write to MH i2c: 01 00 00 2B 69 94 [18:44:53]Write i2c OK [18:44:53]MH_I2C_Read... [18:44:54]OFD Sender: No OFD packet to send [18:44:54]*** Cut start [18:44:54]*** Partial cut [18:44:54]*** CUTSNS_PIN = 1 [18:44:54]*** CUTSNS_PIN = 0 [18:44:54]*** Brake cut motor [18:44:55]Read from MH i2c: 01 [18:44:55]MH_I2C_Read... [18:44:55]*** Stop cut motor [18:44:55]*** Cut end [18:44:55]Read from MH i2c: 01 07 00 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: 01 07 00 2B 69 00 00 00 00 00 FF 0F A9 [18:44:55]process_action close_receipt done [18:44:55]requested_data is exist [18:44:55]produce_requested_data [18:44:55]requested_item fm.sn is exist - process it [18:44:55]wFMCommunicate request_size=4 [18:44:55]MH_SAM_APDU [18:44:55]CAPDU: 80 11 00 00 [18:44:55]Write to MH i2c: E2 08 00 2C 69 80 11 00 00 00 00 00 00 0F [18:44:55]Write i2c OK [18:44:55]MH_I2C_Read... [18:44:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:55]Read from MH i2c: E2 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: E2 17 00 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: E2 17 00 2C 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 66 [18:44:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:44:55]wFMCommunicate OK [18:44:55]requested_item fd.num is exist - process it [18:44:55]SAM_PROTO_GetFieldsCounters [18:44:55]wFMCommunicate request_size=4 [18:44:55]MH_SAM_APDU [18:44:55]CAPDU: 80 13 00 00 [18:44:55]Write to MH i2c: E2 08 00 2D 69 80 13 00 00 00 00 00 00 12 [18:44:55]Write i2c OK [18:44:55]MH_I2C_Read... [18:44:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:55]Read from MH i2c: E2 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: E2 62 00 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: E2 62 00 2D 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 27 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 26 [18:44:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 27 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:44:55]wFMCommunicate OK [18:44:55]SAM_PROTO_GetFieldsCounters done [18:44:55]requested_item shift.num is exist - process it [18:44:55]requested_item shift.opened is exist - process it [18:44:55]req_shift_opened [18:44:55]FM_GetShiftState [18:44:55]SAM_PROTO_GetShiftState [18:44:55]wFMCommunicate request_size=4 [18:44:55]MH_SAM_APDU [18:44:55]CAPDU: 80 13 01 00 [18:44:55]Write to MH i2c: E2 08 00 2E 69 80 13 01 00 00 00 00 00 14 [18:44:55]Write i2c OK [18:44:55]MH_I2C_Read... [18:44:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:55]Read from MH i2c: E2 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: E2 0E 00 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: E2 0E 00 2E 69 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 DB [18:44:55]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:44:55]wFMCommunicate OK [18:44:55]SAM_PROTO_GetShiftState done [18:44:55]FM_GetShiftState done [18:44:55]req_shift_opened done [18:44:55]requested_item shift.open_date is exist - process it [18:44:55]req_shift_open_date [18:44:55]req_shift_open_date done [18:44:55]produce_requested_data done [18:44:55]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228391,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [18:44:55]process_action_free close_receipt [18:44:55]json_value_free [18:44:55]json_value_free done [18:44:55]process_json_proto returns [18:44:55]Send response to host [18:44:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228391,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [18:44:55]free response buf [18:44:55]execute_script done [18:44:55]execute_script returns [18:44:55]free content buf [18:44:55]Sock 7.Close socket [18:44:55]Sock 7.Thread stoped [18:44:59]OFD Sender: No OFD packet to send [18:45:04]OFD Sender: No OFD packet to send [18:45:07]accept exits with 10 [18:45:07]New connection [18:45:07]New thread 3067137380 created [18:45:07]Thread 3066994020 joined [18:45:07]Waiting for new connection... [18:45:07] Sock 10.Parse request [18:45:07]Sock 10.Check first char [18:45:07]Sock 10.First char is OK [18:45:07]request: POST /json_proto HTTP/1.0 [18:45:07]Method: POST [18:45:07]URL: /json_proto [18:45:07]Method is POST - this is cgi request [18:45:07]url: /json_proto [18:45:07]query_string will be loaded in cgi processing [18:45:07]execute_cgi json_proto POST (null) [18:45:07]execute_cgi path=json_proto method=POST [18:45:07]POST find Content-Length [18:45:07]Host: 172.17.44.195:8080 [18:45:07]Content-Length: 678 [18:45:07]Content-Type: application/json [18:45:07] [18:45:07]POST finish read [18:45:07]Found Content-Length = 678 [18:45:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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" ] } } [18:45:07]execute_script... [18:45: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)1964943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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" ] } } [18:45:07]POST & json_proto [18:45:07]process_json_proto [18:45:07]json parsed OK: [18:45:07]protocol is kg_v1.0 [18:45:07]action value=close_receipt [18:45:07]process_action close_receipt [18:45:07]cmd_close_receipt [18:45:07]MH_GetDate [18:45:07]Write to MH i2c: F0 00 00 2F 69 87 [18:45:07]Write i2c OK [18:45:07]MH_I2C_Read... [18:45:07]Read from MH i2c: F0 [18:45:07]MH_I2C_Read... [18:45:07]Read from MH i2c: F0 09 00 [18:45:07]MH_I2C_Read... [18:45:07]Read from MH i2c: F0 09 00 2F 69 00 B9 F2 17 67 82 C9 CF 66 39 [18:45:07]GetLastDocTimeStamp 1729622696 [18:45:07]current date 1729622713 [18:45:07]FM_GetShiftState [18:45:07]SAM_PROTO_GetShiftState [18:45:07]wFMCommunicate request_size=4 [18:45:07]MH_SAM_APDU [18:45:07]CAPDU: 80 13 01 00 [18:45:07]Write to MH i2c: E2 08 00 30 69 80 13 01 00 00 00 00 00 16 [18:45:07]Write i2c OK [18:45:07]MH_I2C_Read... [18:45:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:07]Read from MH i2c: E2 [18:45:07]MH_I2C_Read... [18:45:07]Read from MH i2c: E2 0E 00 [18:45:07]MH_I2C_Read... [18:45:07]Read from MH i2c: E2 0E 00 30 69 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 DD [18:45:07]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:45:07]wFMCommunicate OK [18:45:07]SAM_PROTO_GetShiftState done [18:45:07]FM_GetShiftState done [18:45:07]opened in 1729555538 [18:45:07]opened+sec_in_day 1729641938 [18:45:07]quantity*price = 60009 [18:45:07]sum+1 = 60010 [18:45:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 356 22.10.2024 18:45 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228392 ФПД: 268912700476014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184513&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228392&fm=268912700476014&tin=02508201610067®Number=0000000000091685&sum=60000 [18:45:08]StoreToDocumentArchive [18:45:08]shift 535 fd 228392 [18:45:08]save to /storage/0535/doc_00228392 [18:45:08]save last doc name /storage/0535/doc_00228392 to /storage/kkm_last_doc_name [18:45:08]save OK [18:45:08]Clear old archive folders... [18:45:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:45:08]tlvbuf is 008CA040 [18:45:08]SAM_PROTO_ClearQueue [18:45:08]wFMCommunicate request_size=4 [18:45:08]MH_SAM_APDU [18:45:08]CAPDU: 80 09 00 00 [18:45:08]Write to MH i2c: E2 08 00 3D 69 80 09 00 00 00 00 00 00 18 [18:45:08]Write i2c OK [18:45:08]MH_I2C_Read... [18:45:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:08]Read from MH i2c: E2 [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: E2 03 00 [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: E2 03 00 3D 69 00 90 00 1A [18:45:08]RAPDU: 90 00 [18:45:08]wFMCommunicate OK [18:45:08]SAM_PROTO_ClearQueue done [18:45:08]KKMCreateOFDPacket [18:45:08]OFDProtocolAddRootSTLVToBuf [18:45:08]FM_MakeSignedData [18:45:08]FM_MakeSignedData [18:45:08]SAM_PROTO_SignData [18:45:08]wFMCommunicate request_size=4 [18:45:08]MH_SAM_APDU [18:45:08]CAPDU: 80 0D 01 02 [18:45:08]Write to MH i2c: E2 08 00 3E 69 80 0D 01 02 00 00 00 00 20 [18:45:08]Write i2c OK [18:45:08]MH_I2C_Read... [18:45:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:08]Read from MH i2c: E2 [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: E2 03 00 [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: E2 03 00 3E 69 00 90 00 1B [18:45:08]RAPDU: 90 00 [18:45:08]wFMCommunicate OK [18:45:08]wFMCommunicate request_size=255 [18:45:08]MH_SAM_APDU [18:45: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 64 01 00 00 F4 03 04 00 B9 F2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 28 7C 03 00 35 04 06 00 F4 [18:45:08]Write to MH i2c: E2 02 01 3F 69 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 64 01 00 00 F4 03 04 00 B9 F2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 28 7C 03 00 35 04 06 00 F4 00 00 D6 [18:45:08]Write i2c OK [18:45:08]MH_I2C_Read... [18:45:09]OFD Sender: No OFD packet to send [18:45:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:09]Read from MH i2c: E2 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: E2 03 00 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: E2 03 00 3F 69 00 90 00 1C [18:45:09]RAPDU: 90 00 [18:45:09]wFMCommunicate OK [18:45:09]wFMCommunicate request_size=10 [18:45:09]MH_SAM_APDU [18:45:09]CAPDU: 80 0D 02 02 05 93 1D FC CA 6E [18:45:09]Write to MH i2c: E2 0D 00 40 69 80 0D 02 02 05 00 93 1D FC CA 6E 00 00 11 [18:45:09]Write i2c OK [18:45:09]MH_I2C_Read... [18:45:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:09]Read from MH i2c: E2 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: E2 03 00 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: E2 03 00 40 69 00 90 00 1D [18:45:09]RAPDU: 90 00 [18:45:09]wFMCommunicate OK [18:45:09]wFMCommunicate request_size=4 [18:45:09]MH_SAM_APDU [18:45:09]CAPDU: 80 0D 03 02 [18:45:09]Write to MH i2c: E2 08 00 41 69 80 0D 03 02 00 00 00 00 25 [18:45:09]Write i2c OK [18:45:09]MH_I2C_Read... [18:45:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:09]Read from MH i2c: E2 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: E2 0B 00 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: E2 0B 00 41 69 00 25 1F 26 32 63 8F EE EF 90 00 91 [18:45:09]RAPDU: 25 1F 26 32 63 8F EE EF 90 00 [18:45:09]wFMCommunicate OK [18:45:09]SAM_PROTO_SignData done [18:45:09]FM_MakeSignedData done [18:45:09]CreateOFDProtocolMessage [18:45:09]wFMCommunicate request_size=4 [18:45:09]MH_SAM_APDU [18:45:09]CAPDU: 80 11 00 00 [18:45:09]Write to MH i2c: E2 08 00 42 69 80 11 00 00 00 00 00 00 25 [18:45:09]Write i2c OK [18:45:09]MH_I2C_Read... [18:45:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:09]Read from MH i2c: E2 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: E2 17 00 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: E2 17 00 42 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7C [18:45:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:45:09]wFMCommunicate OK [18:45:09]CreateOFDProtocolMessage done [18:45:09]OFDSenderStorePacket 228392 [18:45:09]StoreOFDPacket docnum=228392 [18:45:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 EE F6 07 01 D5 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 64 01 00 00 F4 03 04 00 B9 F2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 28 7C 03 00 35 04 06 00 F4 93 1D FC CA 6E 25 1F 26 32 63 8F EE EF [18:45:09]CheckFolder [18:45:09]dirname=/storage/ofd_packets [18:45:09]CheckFolder done [18:45:09]ProducePacketName [18:45:09]name=ofd_packets/00228392 [18:45:09]NVStorageSaveData ofd_packets/00228392 [18:45:09]File name is /storage/ofd_packets/00228392 [18:45:09]Write 301 bytes [18:45:09]NVStorageSaveData done [18:45:09]OFDSenderStorePacket done [18:45:09]KKMCreateOFDPacket done [18:45:09]NVStorageSaveData kkm_last_timestamp [18:45:09]File name is /storage/kkm_last_timestamp [18:45:09]Write 4 bytes [18:45:09]NVStorageSaveData done [18:45:09]ExternCall_PrintAddStr [18:45:09]wPrintStart [18:45:09]Write to MH i2c: 01 00 00 43 69 AC [18:45:09]Write i2c OK [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: 01 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: 01 07 00 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: 01 07 00 43 69 00 00 00 00 00 FF 0F C1 [18:45:09]RasterBufferAndPrint [18:45:09]line Счет N : (1)1964943 [18:45:09]line ИНН: 02508201610067 [18:45:09]line Контрольно-Кассовый Чек [18:45:09]line ПРОДАЖА [18:45:09]line ТРК (МРК, ГНК) : 33 [18:45:09]line Товар: 2710124130 [18:45:09]line Аи-92-К-5 [18:45:09]line 8.970 * 66.90 [18:45:09]line = 600.09 [18:45:09]line НДС 12% НСП 1% [18:45:09]line > о реализуемом товаре [18:45:09]line ОКРУГЛЕНИЕ: -0.09 [18:45:09]line ИТОГО: 600.00 [18:45:09]line Внесено: 600.00 [18:45:09]line СДАЧА: 0.00 [18:45:09]line НСП 1% : 5.31 [18:45:09]line НДС 12% : 63.73 [18:45:09]line Наличными: 600.00 [18:45:09]line Безнал.: 0.00 [18:45:09]line Место: АЗС № 133 "Партнер Нефть" [18:45:09]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:45:09]line СНО: Общий режим [18:45:09]line Чек 356 22.10.2024 18:45 [18:45:09]line Смена: 535 ФФД: 1.0 [18:45:09]line ЗНМ: 0300000091 [18:45:09]line РНМ: 0000000000091685 [18:45:09]line Версия ККМ: 001 [18:45:09]line ФМ: 0000000000871839 [18:45:09]line ФД: 228392 [18:45:09]line ФПД: 268912700476014 [18:45:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184513&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228392&fm=268912700476014&tin=02508201610067®Number=0000000000091685&sum=60000 [18:45:09]OFD Sender: Processing packet 228392 [packets to send 38, broken 37] [18:45:09]ProducePacketName [18:45:09]name=ofd_packets/00228392 [18:45:09]OFD Sender: To server: pG, [18:45:09]CommunicateWithHost lk.salyk.kg:30040 [18:45:09]ConnectInit lk.salyk.kg [18:45:09]written 0, free lines is 4095 [18:45:09]Connected sock=9 [18:45:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 EE F6 07 01 D5 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 64 01 00 00 F4 03 04 00 B9 F2 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 28 7C 03 00 35 04 06 00 F4 93 1D FC CA 6E 25 1F 26 32 63 8F EE EF [18:45:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 82 03 47 00 11 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 28 7C 03 00 F4 03 04 00 B0 9D 17 67 B6 04 01 00 00 5A 7A 62 29 6E 25 44 EE [18:45:09]CommunicateWithHost err = 0 [18:45:09]CheckOFDResponse [18:45:09]1017 (14) - 77093643461234 [18:45:09]1041 (16) - 0000000000871839 [18:45:09]1040 (4) - 228392 [18:45:09]1012 (4) - 22.10.2024 12:42 [18:45:09]1206 (1) - 0 [18:45:09]OFD Sender: Remove packet 228392 [18:45:09]ProducePacketName [18:45:09]name=ofd_packets/00228392 [18:45:09]NVStorageDeleteData [18:45:09]Write to MH i2c: 01 00 00 6D 69 D6 [18:45:09]Write i2c OK [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: 01 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: 01 07 00 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: 01 07 00 6D 69 00 00 00 00 00 AD 0C 96 [18:45:09]RasterBufferAndPrint [18:45:09]line [18:45:09]line [18:45:09]line [18:45:09]line [18:45:09]line [18:45:09]written 0, free lines is 3251 [18:45:09]MH_Cut [18:45:09]Write to MH i2c: D1 01 00 74 69 01 AF [18:45:09]Write i2c OK [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: D1 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: D1 01 00 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: D1 01 00 74 69 00 AE [18:45:09]Write to MH i2c: 01 00 00 75 69 DE [18:45:09]Write i2c OK [18:45:09]MH_I2C_Read... [18:45:10]OFD Sender: No OFD packet to send [18:45:10]*** Cut start [18:45:10]*** Partial cut [18:45:10]*** CUTSNS_PIN = 1 [18:45:10]*** CUTSNS_PIN = 0 [18:45:10]*** Brake cut motor [18:45:11]Read from MH i2c: 01 [18:45:11]MH_I2C_Read... [18:45:11]*** Stop cut motor [18:45:11]*** Cut end [18:45:11]Read from MH i2c: 01 07 00 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: 01 07 00 75 69 00 00 00 00 00 FF 0F F3 [18:45:11]process_action close_receipt done [18:45:11]requested_data is exist [18:45:11]produce_requested_data [18:45:11]requested_item fm.sn is exist - process it [18:45:11]wFMCommunicate request_size=4 [18:45:11]MH_SAM_APDU [18:45:11]CAPDU: 80 11 00 00 [18:45:11]Write to MH i2c: E2 08 00 76 69 80 11 00 00 00 00 00 00 59 [18:45:11]Write i2c OK [18:45:11]MH_I2C_Read... [18:45:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:11]Read from MH i2c: E2 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 17 00 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 17 00 76 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B0 [18:45:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:45:11]wFMCommunicate OK [18:45:11]requested_item fd.num is exist - process it [18:45:11]SAM_PROTO_GetFieldsCounters [18:45:11]wFMCommunicate request_size=4 [18:45:11]MH_SAM_APDU [18:45:11]CAPDU: 80 13 00 00 [18:45:11]Write to MH i2c: E2 08 00 77 69 80 13 00 00 00 00 00 00 5C [18:45:11]Write i2c OK [18:45:11]MH_I2C_Read... [18:45:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:11]Read from MH i2c: E2 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 62 00 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 62 00 77 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 28 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 74 [18:45:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 28 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:11]wFMCommunicate OK [18:45:11]SAM_PROTO_GetFieldsCounters done [18:45:11]requested_item shift.num is exist - process it [18:45:11]requested_item shift.opened is exist - process it [18:45:11]req_shift_opened [18:45:11]FM_GetShiftState [18:45:11]SAM_PROTO_GetShiftState [18:45:11]wFMCommunicate request_size=4 [18:45:11]MH_SAM_APDU [18:45:11]CAPDU: 80 13 01 00 [18:45:11]Write to MH i2c: E2 08 00 78 69 80 13 01 00 00 00 00 00 5E [18:45:11]Write i2c OK [18:45:11]MH_I2C_Read... [18:45:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:11]Read from MH i2c: E2 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 0E 00 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 0E 00 78 69 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 25 [18:45:11]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:45:11]wFMCommunicate OK [18:45:11]SAM_PROTO_GetShiftState done [18:45:11]FM_GetShiftState done [18:45:11]req_shift_opened done [18:45:11]requested_item shift.open_date is exist - process it [18:45:11]req_shift_open_date [18:45:11]req_shift_open_date done [18:45:11]produce_requested_data done [18:45:11]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228392,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [18:45:11]process_action_free close_receipt [18:45:11]json_value_free [18:45:11]json_value_free done [18:45:11]process_json_proto returns [18:45:11]Send response to host [18:45:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228392,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [18:45:11]free response buf [18:45:11]execute_script done [18:45:11]execute_script returns [18:45:11]free content buf [18:45:11]Sock 10.Close socket [18:45:11]Sock 10.Thread stoped [18:45:15]OFD Sender: No OFD packet to send [18:45:20]OFD Sender: No OFD packet to send [18:45:25]OFD Sender: No OFD packet to send [18:45:30]OFD Sender: No OFD packet to send [18:45:35]OFD Sender: No OFD packet to send [18:45:40]OFD Sender: No OFD packet to send [18:45:45]OFD Sender: No OFD packet to send [18:45:50]OFD Sender: No OFD packet to send [18:45:55]OFD Sender: No OFD packet to send [18:46:00]OFD Sender: No OFD packet to send [18:46:05]OFD Sender: No OFD packet to send [18:46:10]OFD Sender: No OFD packet to send [18:46:15]OFD Sender: No OFD packet to send [18:46:20]OFD Sender: No OFD packet to send [18:46:25]OFD Sender: No OFD packet to send [18:46:30]OFD Sender: No OFD packet to send [18:46:35]OFD Sender: No OFD packet to send [18:46:40]OFD Sender: No OFD packet to send [18:46:45]OFD Sender: No OFD packet to send [18:46:50]OFD Sender: No OFD packet to send [18:46:52]accept exits with 7 [18:46:52]New connection [18:46:52]New thread 3066994020 created [18:46:52]Thread 3067137380 joined [18:46:52]Waiting for new connection... [18:46:52] Sock 7.Parse request [18:46:52]Sock 7.Check first char [18:46:52]Sock 7.First char is OK [18:46:52]request: POST /json_proto HTTP/1.0 [18:46:52]Method: POST [18:46:52]URL: /json_proto [18:46:52]Method is POST - this is cgi request [18:46:52]url: /json_proto [18:46:52]query_string will be loaded in cgi processing [18:46:52]execute_cgi json_proto POST (null) [18:46:52]execute_cgi path=json_proto method=POST [18:46:52]POST find Content-Length [18:46:52]Host: 172.17.44.195:8080 [18:46:52]Content-Length: 678 [18:46:52]Content-Type: application/json [18:46:52] [18:46:52]POST finish read [18:46:52]Found Content-Length = 678 [18:46:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964944", "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" : 66.90, "quantity" : 4.490, "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" ] } } [18:46:52]execute_script... [18:46: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)1964944", "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" : 66.90, "quantity" : 4.490, "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" ] } } [18:46:52]POST & json_proto [18:46:52]process_json_proto [18:46:52]json parsed OK: [18:46:52]protocol is kg_v1.0 [18:46:52]action value=close_receipt [18:46:52]process_action close_receipt [18:46:52]cmd_close_receipt [18:46:52]MH_GetDate [18:46:52]Write to MH i2c: F0 00 00 79 69 D1 [18:46:52]Write i2c OK [18:46:52]MH_I2C_Read... [18:46:52]Read from MH i2c: F0 [18:46:52]MH_I2C_Read... [18:46:52]Read from MH i2c: F0 09 00 [18:46:52]MH_I2C_Read... [18:46:52]Read from MH i2c: F0 09 00 79 69 00 21 F3 17 67 82 C9 CF 66 EC [18:46:52]GetLastDocTimeStamp 1729622713 [18:46:52]current date 1729622817 [18:46:52]FM_GetShiftState [18:46:52]SAM_PROTO_GetShiftState [18:46:52]wFMCommunicate request_size=4 [18:46:52]MH_SAM_APDU [18:46:52]CAPDU: 80 13 01 00 [18:46:52]Write to MH i2c: E2 08 00 7A 69 80 13 01 00 00 00 00 00 60 [18:46:52]Write i2c OK [18:46:52]MH_I2C_Read... [18:46:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:52]Read from MH i2c: E2 [18:46:52]MH_I2C_Read... [18:46:52]Read from MH i2c: E2 0E 00 [18:46:52]MH_I2C_Read... [18:46:52]Read from MH i2c: E2 0E 00 7A 69 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 27 [18:46:52]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:46:52]wFMCommunicate OK [18:46:52]SAM_PROTO_GetShiftState done [18:46:52]FM_GetShiftState done [18:46:52]opened in 1729555538 [18:46:52]opened+sec_in_day 1729641938 [18:46:52]quantity*price = 30038 [18:46:52]sum+1 = 30039 [18:46:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 357 22.10.2024 18:46 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228393 ФПД: 101685671240600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184657&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228393&fm=101685671240600&tin=02508201610067®Number=0000000000091685&sum=30000 [18:46:53]StoreToDocumentArchive [18:46:53]shift 535 fd 228393 [18:46:53]save to /storage/0535/doc_00228393 [18:46:53]save last doc name /storage/0535/doc_00228393 to /storage/kkm_last_doc_name [18:46:53]save OK [18:46:53]Clear old archive folders... [18:46:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:46:53]tlvbuf is 008A2FE0 [18:46:53]SAM_PROTO_ClearQueue [18:46:53]wFMCommunicate request_size=4 [18:46:53]MH_SAM_APDU [18:46:53]CAPDU: 80 09 00 00 [18:46:53]Write to MH i2c: E2 08 00 87 69 80 09 00 00 00 00 00 00 62 [18:46:53]Write i2c OK [18:46:53]MH_I2C_Read... [18:46:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:53]Read from MH i2c: E2 [18:46:53]MH_I2C_Read... [18:46:53]Read from MH i2c: E2 03 00 [18:46:53]MH_I2C_Read... [18:46:53]Read from MH i2c: E2 03 00 87 69 00 90 00 64 [18:46:53]RAPDU: 90 00 [18:46:53]wFMCommunicate OK [18:46:53]SAM_PROTO_ClearQueue done [18:46:53]KKMCreateOFDPacket [18:46:53]OFDProtocolAddRootSTLVToBuf [18:46:53]FM_MakeSignedData [18:46:53]FM_MakeSignedData [18:46:53]SAM_PROTO_SignData [18:46:53]wFMCommunicate request_size=4 [18:46:53]MH_SAM_APDU [18:46:53]CAPDU: 80 0D 01 02 [18:46:53]Write to MH i2c: E2 08 00 88 69 80 0D 01 02 00 00 00 00 6A [18:46:53]Write i2c OK [18:46:53]MH_I2C_Read... [18:46:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:53]Read from MH i2c: E2 [18:46:53]MH_I2C_Read... [18:46:53]Read from MH i2c: E2 03 00 [18:46:53]MH_I2C_Read... [18:46:53]Read from MH i2c: E2 03 00 88 69 00 90 00 65 [18:46:53]RAPDU: 90 00 [18:46:53]wFMCommunicate OK [18:46:53]wFMCommunicate request_size=255 [18:46:53]MH_SAM_APDU [18:46: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 65 01 00 00 F4 03 04 00 21 F3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 29 7C 03 00 35 04 06 00 5C [18:46:53]Write to MH i2c: E2 02 01 89 69 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 11 00 00 00 00 00 37 04 06 00 22 1A 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 65 01 00 00 F4 03 04 00 21 F3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 29 7C 03 00 35 04 06 00 5C 00 00 0A [18:46:53]Write i2c OK [18:46:53]MH_I2C_Read... [18:46:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:53]Read from MH i2c: E2 [18:46:53]MH_I2C_Read... [18:46:53]Read from MH i2c: E2 03 00 [18:46:53]MH_I2C_Read... [18:46:53]Read from MH i2c: E2 03 00 89 69 00 90 00 66 [18:46:53]RAPDU: 90 00 [18:46:53]wFMCommunicate OK [18:46:53]wFMCommunicate request_size=10 [18:46:53]MH_SAM_APDU [18:46:53]CAPDU: 80 0D 02 02 05 7B 8A 50 23 98 [18:46:53]Write to MH i2c: E2 0D 00 8A 69 80 0D 02 02 05 00 7B 8A 50 23 98 00 00 87 [18:46:53]Write i2c OK [18:46:53]MH_I2C_Read... [18:46:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:53]Read from MH i2c: E2 [18:46:53]MH_I2C_Read... [18:46:53]Read from MH i2c: E2 03 00 [18:46:53]MH_I2C_Read... [18:46:53]Read from MH i2c: E2 03 00 8A 69 00 90 00 67 [18:46:53]RAPDU: 90 00 [18:46:53]wFMCommunicate OK [18:46:53]wFMCommunicate request_size=4 [18:46:53]MH_SAM_APDU [18:46:53]CAPDU: 80 0D 03 02 [18:46:53]Write to MH i2c: E2 08 00 8B 69 80 0D 03 02 00 00 00 00 6F [18:46:53]Write i2c OK [18:46:53]MH_I2C_Read... [18:46:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:53]Read from MH i2c: E2 [18:46:53]MH_I2C_Read... [18:46:53]Read from MH i2c: E2 0B 00 [18:46:53]MH_I2C_Read... [18:46:53]Read from MH i2c: E2 0B 00 8B 69 00 6F DA 81 32 BB B2 01 B6 90 00 90 [18:46:53]RAPDU: 6F DA 81 32 BB B2 01 B6 90 00 [18:46:53]wFMCommunicate OK [18:46:53]SAM_PROTO_SignData done [18:46:53]FM_MakeSignedData done [18:46:53]CreateOFDProtocolMessage [18:46:53]wFMCommunicate request_size=4 [18:46:53]MH_SAM_APDU [18:46:53]CAPDU: 80 11 00 00 [18:46:53]Write to MH i2c: E2 08 00 8C 69 80 11 00 00 00 00 00 00 6F [18:46:53]Write i2c OK [18:46:53]MH_I2C_Read... [18:46:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:53]Read from MH i2c: E2 [18:46:53]MH_I2C_Read... [18:46:53]Read from MH i2c: E2 17 00 [18:46:53]MH_I2C_Read... [18:46:53]Read from MH i2c: E2 17 00 8C 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C6 [18:46:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:46:53]wFMCommunicate OK [18:46:53]CreateOFDProtocolMessage done [18:46:53]OFDSenderStorePacket 228393 [18:46:53]StoreOFDPacket docnum=228393 [18:46:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B5 86 07 01 97 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 65 01 00 00 F4 03 04 00 21 F3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 29 7C 03 00 35 04 06 00 5C 7B 8A 50 23 98 6F DA 81 32 BB B2 01 B6 [18:46:53]CheckFolder [18:46:53]dirname=/storage/ofd_packets [18:46:53]CheckFolder done [18:46:53]ProducePacketName [18:46:53]name=ofd_packets/00228393 [18:46:53]NVStorageSaveData ofd_packets/00228393 [18:46:53]File name is /storage/ofd_packets/00228393 [18:46:53]Write 301 bytes [18:46:53]NVStorageSaveData done [18:46:53]OFDSenderStorePacket done [18:46:53]KKMCreateOFDPacket done [18:46:53]NVStorageSaveData kkm_last_timestamp [18:46:53]File name is /storage/kkm_last_timestamp [18:46:53]Write 4 bytes [18:46:53]NVStorageSaveData done [18:46:53]ExternCall_PrintAddStr [18:46:53]wPrintStart [18:46:53]Write to MH i2c: 01 00 00 8D 69 F6 [18:46:53]Write i2c OK [18:46:53]MH_I2C_Read... [18:46:53]Read from MH i2c: 01 [18:46:53]MH_I2C_Read... [18:46:53]Read from MH i2c: 01 07 00 [18:46:53]MH_I2C_Read... [18:46:53]Read from MH i2c: 01 07 00 8D 69 00 00 00 00 00 FF 0F 0B [18:46:53]RasterBufferAndPrint [18:46:53]line Счет N : (1)1964944 [18:46:53]line ИНН: 02508201610067 [18:46:53]line Контрольно-Кассовый Чек [18:46:53]line ПРОДАЖА [18:46:53]line ТРК (МРК, ГНК) : 63 [18:46:53]line Товар: 2710124130 [18:46:53]line Аи-92-К-5 [18:46:53]line 4.490 * 66.90 [18:46:53]line = 300.38 [18:46:53]line НДС 12% НСП 1% [18:46:53]line > о реализуемом товаре [18:46:53]line ОКРУГЛЕНИЕ: -0.38 [18:46:53]line ИТОГО: 300.00 [18:46:53]line Внесено: 300.00 [18:46:53]line СДАЧА: 0.00 [18:46:53]line НСП 1% : 2.66 [18:46:53]line НДС 12% : 31.90 [18:46:53]line Наличными: 300.00 [18:46:53]line Безнал.: 0.00 [18:46:53]line Место: АЗС № 133 "Партнер Нефть" [18:46:53]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:46:53]line СНО: Общий режим [18:46:53]line Чек 357 22.10.2024 18:46 [18:46:53]line Смена: 535 ФФД: 1.0 [18:46:53]line ЗНМ: 0300000091 [18:46:53]line РНМ: 0000000000091685 [18:46:53]line Версия ККМ: 001 [18:46:53]line ФМ: 0000000000871839 [18:46:53]line ФД: 228393 [18:46:53]line ФПД: 101685671240600 [18:46:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184657&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228393&fm=101685671240600&tin=02508201610067®Number=0000000000091685&sum=30000 [18:46:54]OFD Sender: Processing packet 228393 [packets to send 38, broken 37] [18:46:54]ProducePacketName [18:46:54]name=ofd_packets/00228393 [18:46:54]OFD Sender: To server: pG, [18:46:54]CommunicateWithHost lk.salyk.kg:30040 [18:46:54]ConnectInit lk.salyk.kg [18:46:54]written 0, free lines is 4095 [18:46:54]Connected sock=10 [18:46:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B5 86 07 01 97 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 65 01 00 00 F4 03 04 00 21 F3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 29 7C 03 00 35 04 06 00 5C 7B 8A 50 23 98 6F DA 81 32 BB B2 01 B6 [18:46:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 92 32 47 00 FA CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 29 7C 03 00 F4 03 04 00 19 9E 17 67 B6 04 01 00 00 86 DE A1 1F 79 12 F4 91 [18:46:54]CommunicateWithHost err = 0 [18:46:54]CheckOFDResponse [18:46:54]1017 (14) - 77093643461234 [18:46:54]1041 (16) - 0000000000871839 [18:46:54]1040 (4) - 228393 [18:46:54]1012 (4) - 22.10.2024 12:44 [18:46:54]1206 (1) - 0 [18:46:54]OFD Sender: Remove packet 228393 [18:46:54]ProducePacketName [18:46:54]name=ofd_packets/00228393 [18:46:54]NVStorageDeleteData [18:46:54]Write to MH i2c: 01 00 00 B7 69 20 [18:46:54]Write i2c OK [18:46:54]MH_I2C_Read... [18:46:54]Read from MH i2c: 01 [18:46:54]MH_I2C_Read... [18:46:54]Read from MH i2c: 01 07 00 [18:46:54]MH_I2C_Read... [18:46:54]Read from MH i2c: 01 07 00 B7 69 00 00 00 00 00 AD 0C E0 [18:46:54]RasterBufferAndPrint [18:46:54]line [18:46:54]line [18:46:54]line [18:46:54]line [18:46:54]line [18:46:54]written 0, free lines is 3248 [18:46:54]MH_Cut [18:46:54]Write to MH i2c: D1 01 00 BE 69 01 F9 [18:46:54]Write i2c OK [18:46:54]MH_I2C_Read... [18:46:54]Read from MH i2c: D1 [18:46:54]MH_I2C_Read... [18:46:54]Read from MH i2c: D1 01 00 [18:46:54]MH_I2C_Read... [18:46:54]Read from MH i2c: D1 01 00 BE 69 00 F8 [18:46:54]Write to MH i2c: 01 00 00 BF 69 28 [18:46:54]Write i2c OK [18:46:54]MH_I2C_Read... [18:46:54]OFD Sender: No OFD packet to send [18:46:55]*** Cut start [18:46:55]*** Partial cut [18:46:55]*** CUTSNS_PIN = 1 [18:46:55]*** CUTSNS_PIN = 0 [18:46:55]*** Brake cut motor [18:46:56]Read from MH i2c: 01 [18:46:56]MH_I2C_Read... [18:46:56]*** Stop cut motor [18:46:56]*** Cut end [18:46:56]Read from MH i2c: 01 07 00 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: 01 07 00 BF 69 00 00 00 00 00 FF 0F 3D [18:46:56]process_action close_receipt done [18:46:56]requested_data is exist [18:46:56]produce_requested_data [18:46:56]requested_item fm.sn is exist - process it [18:46:56]wFMCommunicate request_size=4 [18:46:56]MH_SAM_APDU [18:46:56]CAPDU: 80 11 00 00 [18:46:56]Write to MH i2c: E2 08 00 C0 69 80 11 00 00 00 00 00 00 A3 [18:46:56]Write i2c OK [18:46:56]MH_I2C_Read... [18:46:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:56]Read from MH i2c: E2 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: E2 17 00 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: E2 17 00 C0 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FA [18:46:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:46:56]wFMCommunicate OK [18:46:56]requested_item fd.num is exist - process it [18:46:56]SAM_PROTO_GetFieldsCounters [18:46:56]wFMCommunicate request_size=4 [18:46:56]MH_SAM_APDU [18:46:56]CAPDU: 80 13 00 00 [18:46:56]Write to MH i2c: E2 08 00 C1 69 80 13 00 00 00 00 00 00 A6 [18:46:56]Write i2c OK [18:46:56]MH_I2C_Read... [18:46:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:46:56]Read from MH i2c: E2 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: E2 62 00 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: E2 62 00 C1 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 29 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 65 01 00 00 5E 04 04 00 65 01 00 00 57 04 04 00 66 01 00 00 19 04 04 00 00 00 00 00 90 00 C2 [18:46:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 29 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 65 01 00 00 5E 04 04 00 65 01 00 00 57 04 04 00 66 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:46:56]wFMCommunicate OK [18:46:56]SAM_PROTO_GetFieldsCounters done [18:46:56]requested_item shift.num is exist - process it [18:46:56]requested_item shift.opened is exist - process it [18:46:56]req_shift_opened [18:46:56]FM_GetShiftState [18:46:56]SAM_PROTO_GetShiftState [18:46:56]wFMCommunicate request_size=4 [18:46:56]MH_SAM_APDU [18:46:56]CAPDU: 80 13 01 00 [18:46:56]Write to MH i2c: E2 08 00 C2 69 80 13 01 00 00 00 00 00 A8 [18:46:56]Write i2c OK [18:46:56]MH_I2C_Read... [18:46:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:56]Read from MH i2c: E2 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: E2 0E 00 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: E2 0E 00 C2 69 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 6F [18:46:56]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:46:56]wFMCommunicate OK [18:46:56]SAM_PROTO_GetShiftState done [18:46:56]FM_GetShiftState done [18:46:56]req_shift_opened done [18:46:56]requested_item shift.open_date is exist - process it [18:46:56]req_shift_open_date [18:46:56]req_shift_open_date done [18:46:56]produce_requested_data done [18:46:56]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228393,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [18:46:56]process_action_free close_receipt [18:46:56]json_value_free [18:46:56]json_value_free done [18:46:56]process_json_proto returns [18:46:56]Send response to host [18:46:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228393,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [18:46:56]free response buf [18:46:56]execute_script done [18:46:56]execute_script returns [18:46:56]free content buf [18:46:56]Sock 7.Close socket [18:46:56]Sock 7.Thread stoped [18:47:00]OFD Sender: No OFD packet to send [18:47:05]OFD Sender: No OFD packet to send [18:47:05]accept exits with 9 [18:47:05]New connection [18:47:05]New thread 3067137380 created [18:47:05]Thread 3066994020 joined [18:47:05]Waiting for new connection... [18:47:05] Sock 9.Parse request [18:47:05]Sock 9.Check first char [18:47:05]Sock 9.First char is OK [18:47:05]request: POST /json_proto HTTP/1.0 [18:47:05]Method: POST [18:47:05]URL: /json_proto [18:47:05]Method is POST - this is cgi request [18:47:05]url: /json_proto [18:47:05]query_string will be loaded in cgi processing [18:47:05]execute_cgi json_proto POST (null) [18:47:05]execute_cgi path=json_proto method=POST [18:47:05]POST find Content-Length [18:47:05]Host: 172.17.44.195:8080 [18:47:05]Content-Length: 675 [18:47:05]Content-Type: application/json [18:47:05] [18:47:05]POST finish read [18:47:05]Found Content-Length = 675 [18:47:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964947", "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" : 76.20, "quantity" : 5.250, "sum" : 400.05, "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:47:05]execute_script... [18:47: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)1964947", "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" : 76.20, "quantity" : 5.250, "sum" : 400.05, "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:47:05]POST & json_proto [18:47:05]process_json_proto [18:47:05]json parsed OK: [18:47:05]protocol is kg_v1.0 [18:47:05]action value=close_receipt [18:47:05]process_action close_receipt [18:47:05]cmd_close_receipt [18:47:05]MH_GetDate [18:47:05]Write to MH i2c: F0 00 00 C3 69 1B [18:47:05]Write i2c OK [18:47:05]MH_I2C_Read... [18:47:05]Read from MH i2c: F0 [18:47:05]MH_I2C_Read... [18:47:05]Read from MH i2c: F0 09 00 [18:47:05]MH_I2C_Read... [18:47:05]Read from MH i2c: F0 09 00 C3 69 00 2E F3 17 67 82 C9 CF 66 43 [18:47:05]GetLastDocTimeStamp 1729622817 [18:47:05]current date 1729622830 [18:47:05]FM_GetShiftState [18:47:05]SAM_PROTO_GetShiftState [18:47:05]wFMCommunicate request_size=4 [18:47:05]MH_SAM_APDU [18:47:05]CAPDU: 80 13 01 00 [18:47:05]Write to MH i2c: E2 08 00 C4 69 80 13 01 00 00 00 00 00 AA [18:47:05]Write i2c OK [18:47:05]MH_I2C_Read... [18:47:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:05]Read from MH i2c: E2 [18:47:05]MH_I2C_Read... [18:47:05]Read from MH i2c: E2 0E 00 [18:47:05]MH_I2C_Read... [18:47:05]Read from MH i2c: E2 0E 00 C4 69 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 71 [18:47:05]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:47:05]wFMCommunicate OK [18:47:05]SAM_PROTO_GetShiftState done [18:47:05]FM_GetShiftState done [18:47:05]opened in 1729555538 [18:47:05]opened+sec_in_day 1729641938 [18:47:05]quantity*price = 40005 [18:47:05]sum+1 = 40006 [18:47:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 358 22.10.2024 18:47 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228394 ФПД: 187085503766972 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184710&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228394&fm=187085503766972&tin=02508201610067®Number=0000000000091685&sum=40000 [18:47:06]StoreToDocumentArchive [18:47:06]shift 535 fd 228394 [18:47:06]save to /storage/0535/doc_00228394 [18:47:06]save last doc name /storage/0535/doc_00228394 to /storage/kkm_last_doc_name [18:47:06]save OK [18:47:06]Clear old archive folders... [18:47:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:47:06]tlvbuf is 0092E480 [18:47:06]SAM_PROTO_ClearQueue [18:47:06]wFMCommunicate request_size=4 [18:47:06]MH_SAM_APDU [18:47:06]CAPDU: 80 09 00 00 [18:47:06]Write to MH i2c: E2 08 00 D1 69 80 09 00 00 00 00 00 00 AC [18:47:06]Write i2c OK [18:47:06]MH_I2C_Read... [18:47:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:47:06]Read from MH i2c: E2 [18:47:06]MH_I2C_Read... [18:47:06]Read from MH i2c: E2 03 00 [18:47:06]MH_I2C_Read... [18:47:06]Read from MH i2c: E2 03 00 D1 69 00 90 00 AE [18:47:06]RAPDU: 90 00 [18:47:06]wFMCommunicate OK [18:47:06]SAM_PROTO_ClearQueue done [18:47:06]KKMCreateOFDPacket [18:47:06]OFDProtocolAddRootSTLVToBuf [18:47:06]FM_MakeSignedData [18:47:06]FM_MakeSignedData [18:47:06]SAM_PROTO_SignData [18:47:06]wFMCommunicate request_size=4 [18:47:06]MH_SAM_APDU [18:47:06]CAPDU: 80 0D 01 02 [18:47:06]Write to MH i2c: E2 08 00 D2 69 80 0D 01 02 00 00 00 00 B4 [18:47:06]Write i2c OK [18:47:06]MH_I2C_Read... [18:47:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:47:06]Read from MH i2c: E2 [18:47:06]MH_I2C_Read... [18:47:06]Read from MH i2c: E2 03 00 [18:47:06]MH_I2C_Read... [18:47:06]Read from MH i2c: E2 03 00 D2 69 00 90 00 AF [18:47:06]RAPDU: 90 00 [18:47:06]wFMCommunicate OK [18:47:06]wFMCommunicate request_size=255 [18:47:06]MH_SAM_APDU [18: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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 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 66 01 00 00 F4 03 04 00 2E F3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2A 7C 03 00 35 04 06 00 AA 27 3C FE [18:47:06]Write to MH i2c: E2 02 01 D3 69 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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 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 66 01 00 00 F4 03 04 00 2E F3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2A 7C 03 00 35 04 06 00 AA 27 3C FE 00 00 07 [18:47:06]Write i2c OK [18:47:06]MH_I2C_Read... [18:47:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:06]Read from MH i2c: E2 [18:47:06]MH_I2C_Read... [18:47:06]Read from MH i2c: E2 03 00 [18:47:06]MH_I2C_Read... [18:47:06]Read from MH i2c: E2 03 00 D3 69 00 90 00 B0 [18:47:06]RAPDU: 90 00 [18:47:06]wFMCommunicate OK [18:47:06]wFMCommunicate request_size=7 [18:47:06]MH_SAM_APDU [18:47:06]CAPDU: 80 0D 02 02 02 A1 BC [18:47:06]Write to MH i2c: E2 0A 00 D4 69 80 0D 02 02 02 00 A1 BC 00 00 18 [18:47:06]Write i2c OK [18:47:06]MH_I2C_Read... [18:47:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:06]Read from MH i2c: E2 [18:47:06]MH_I2C_Read... [18:47:06]Read from MH i2c: E2 03 00 [18:47:06]MH_I2C_Read... [18:47:06]Read from MH i2c: E2 03 00 D4 69 00 90 00 B1 [18:47:06]RAPDU: 90 00 [18:47:06]wFMCommunicate OK [18:47:06]wFMCommunicate request_size=4 [18:47:06]MH_SAM_APDU [18:47:06]CAPDU: 80 0D 03 02 [18:47:06]Write to MH i2c: E2 08 00 D5 69 80 0D 03 02 00 00 00 00 B9 [18:47:06]Write i2c OK [18:47:06]MH_I2C_Read... [18:47:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:47:06]Read from MH i2c: E2 [18:47:06]MH_I2C_Read... [18:47:06]Read from MH i2c: E2 0B 00 [18:47:06]MH_I2C_Read... [18:47:06]Read from MH i2c: E2 0B 00 D5 69 00 8B C5 53 2F 80 FF 49 DF 90 00 33 [18:47:06]RAPDU: 8B C5 53 2F 80 FF 49 DF 90 00 [18:47:06]wFMCommunicate OK [18:47:06]SAM_PROTO_SignData done [18:47:06]FM_MakeSignedData done [18:47:06]CreateOFDProtocolMessage [18:47:06]wFMCommunicate request_size=4 [18:47:06]MH_SAM_APDU [18:47:06]CAPDU: 80 11 00 00 [18:47:06]Write to MH i2c: E2 08 00 D6 69 80 11 00 00 00 00 00 00 B9 [18:47:06]Write i2c OK [18:47:06]MH_I2C_Read... [18:47:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:07]Read from MH i2c: E2 [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: E2 17 00 [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: E2 17 00 D6 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 10 [18:47:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:47:07]wFMCommunicate OK [18:47:07]CreateOFDProtocolMessage done [18:47:07]OFDSenderStorePacket 228394 [18:47:07]StoreOFDPacket docnum=228394 [18:47:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 0C 09 04 01 54 CD 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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 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 66 01 00 00 F4 03 04 00 2E F3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2A 7C 03 00 35 04 06 00 AA 27 3C FE A1 BC 8B C5 53 2F 80 FF 49 DF [18:47:07]CheckFolder [18:47:07]dirname=/storage/ofd_packets [18:47:07]CheckFolder done [18:47:07]ProducePacketName [18:47:07]name=ofd_packets/00228394 [18:47:07]NVStorageSaveData ofd_packets/00228394 [18:47:07]File name is /storage/ofd_packets/00228394 [18:47:07]Write 298 bytes [18:47:07]NVStorageSaveData done [18:47:07]OFDSenderStorePacket done [18:47:07]KKMCreateOFDPacket done [18:47:07]NVStorageSaveData kkm_last_timestamp [18:47:07]File name is /storage/kkm_last_timestamp [18:47:07]Write 4 bytes [18:47:07]NVStorageSaveData done [18:47:07]ExternCall_PrintAddStr [18:47:07]wPrintStart [18:47:07]Write to MH i2c: 01 00 00 D7 69 40 [18:47:07]Write i2c OK [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: 01 [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: 01 07 00 [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: 01 07 00 D7 69 00 00 00 00 00 FF 0F 55 [18:47:07]RasterBufferAndPrint [18:47:07]line Счет N : (1)1964947 [18:47:07]line ИНН: 02508201610067 [18:47:07]line Контрольно-Кассовый Чек [18:47:07]line ПРОДАЖА [18:47:07]line ТРК (МРК, ГНК) : 51 [18:47:07]line Товар: 2710194210 [18:47:07]line ДТ-К-5 [18:47:07]line 5.250 * 76.20 [18:47:07]line = 400.05 [18:47:07]line НДС 12% НСП 1% [18:47:07]line > о реализуемом товаре [18:47:07]line ОКРУГЛЕНИЕ: -0.05 [18:47:07]line ИТОГО: 400.00 [18:47:07]line Внесено: 400.00 [18:47:07]line СДАЧА: 0.00 [18:47:07]line НСП 1% : 3.54 [18:47:07]line НДС 12% : 42.48 [18:47:07]line Наличными: 400.00 [18:47:07]line Безнал.: 0.00 [18:47:07]line Место: АЗС № 133 "Партнер Нефть" [18:47:07]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:47:07]line СНО: Общий режим [18:47:07]line Чек 358 22.10.2024 18:47 [18:47:07]line Смена: 535 ФФД: 1.0 [18:47:07]line ЗНМ: 0300000091 [18:47:07]line РНМ: 0000000000091685 [18:47:07]line Версия ККМ: 001 [18:47:07]line ФМ: 0000000000871839 [18:47:07]line ФД: 228394 [18:47:07]line ФПД: 187085503766972 [18:47:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184710&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228394&fm=187085503766972&tin=02508201610067®Number=0000000000091685&sum=40000 [18:47:07]OFD Sender: Processing packet 228394 [packets to send 38, broken 37] [18:47:07]ProducePacketName [18:47:07]name=ofd_packets/00228394 [18:47:07]OFD Sender: To server: pG, [18:47:07]CommunicateWithHost lk.salyk.kg:30040 [18:47:07]ConnectInit lk.salyk.kg [18:47:07]written 0, free lines is 4095 [18:47:07]Connected sock=10 [18:47:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 0C 09 04 01 54 CD 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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 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 66 01 00 00 F4 03 04 00 2E F3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2A 7C 03 00 35 04 06 00 AA 27 3C FE A1 BC 8B C5 53 2F 80 FF 49 DF [18:47:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 20 EA 47 00 A9 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2A 7C 03 00 F4 03 04 00 26 9E 17 67 B6 04 01 00 00 9C C6 74 E7 40 0B A8 40 [18:47:07]CommunicateWithHost err = 0 [18:47:07]CheckOFDResponse [18:47:07]1017 (14) - 77093643461234 [18:47:07]1041 (16) - 0000000000871839 [18:47:07]1040 (4) - 228394 [18:47:07]1012 (4) - 22.10.2024 12:44 [18:47:07]1206 (1) - 0 [18:47:07]OFD Sender: Remove packet 228394 [18:47:07]ProducePacketName [18:47:07]name=ofd_packets/00228394 [18:47:07]NVStorageDeleteData [18:47:07]Write to MH i2c: 01 00 00 01 6A 6B [18:47:07]Write i2c OK [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: 01 [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: 01 07 00 [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: 01 07 00 01 6A 00 00 00 00 00 A9 0C 27 [18:47:07]RasterBufferAndPrint [18:47:07]line [18:47:07]line [18:47:07]line [18:47:07]line [18:47:07]line [18:47:07]written 0, free lines is 3246 [18:47:07]MH_Cut [18:47:07]Write to MH i2c: D1 01 00 08 6A 01 44 [18:47:07]Write i2c OK [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: D1 [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: D1 01 00 [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: D1 01 00 08 6A 00 43 [18:47:07]Write to MH i2c: 01 00 00 09 6A 73 [18:47:07]Write i2c OK [18:47:07]MH_I2C_Read... [18:47:08]OFD Sender: No OFD packet to send [18:47:08]*** Cut start [18:47:08]*** Partial cut [18:47:08]*** CUTSNS_PIN = 1 [18:47:08]*** CUTSNS_PIN = 0 [18:47:08]*** Brake cut motor [18:47:09]Read from MH i2c: 01 [18:47:09]MH_I2C_Read... [18:47:09]*** Stop cut motor [18:47:09]*** Cut end [18:47:09]Read from MH i2c: 01 07 00 [18:47:09]MH_I2C_Read... [18:47:09]Read from MH i2c: 01 07 00 09 6A 00 00 00 00 00 FF 0F 88 [18:47:09]process_action close_receipt done [18:47:09]requested_data is exist [18:47:09]produce_requested_data [18:47:09]requested_item fm.sn is exist - process it [18:47:09]wFMCommunicate request_size=4 [18:47:09]MH_SAM_APDU [18:47:09]CAPDU: 80 11 00 00 [18:47:09]Write to MH i2c: E2 08 00 0A 6A 80 11 00 00 00 00 00 00 EE [18:47:09]Write i2c OK [18:47:09]MH_I2C_Read... [18:47:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:09]Read from MH i2c: E2 [18:47:09]MH_I2C_Read... [18:47:09]Read from MH i2c: E2 17 00 [18:47:09]MH_I2C_Read... [18:47:09]Read from MH i2c: E2 17 00 0A 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 45 [18:47:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:47:09]wFMCommunicate OK [18:47:09]requested_item fd.num is exist - process it [18:47:09]SAM_PROTO_GetFieldsCounters [18:47:09]wFMCommunicate request_size=4 [18:47:09]MH_SAM_APDU [18:47:09]CAPDU: 80 13 00 00 [18:47:09]Write to MH i2c: E2 08 00 0B 6A 80 13 00 00 00 00 00 00 F1 [18:47:09]Write i2c OK [18:47:09]MH_I2C_Read... [18:47:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:47:09]Read from MH i2c: E2 [18:47:09]MH_I2C_Read... [18:47:09]Read from MH i2c: E2 62 00 [18:47:09]MH_I2C_Read... [18:47:09]Read from MH i2c: E2 62 00 0B 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2A 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 66 01 00 00 5E 04 04 00 66 01 00 00 57 04 04 00 67 01 00 00 19 04 04 00 00 00 00 00 90 00 11 [18:47:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2A 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 66 01 00 00 5E 04 04 00 66 01 00 00 57 04 04 00 67 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:47:09]wFMCommunicate OK [18:47:09]SAM_PROTO_GetFieldsCounters done [18:47:09]requested_item shift.num is exist - process it [18:47:09]requested_item shift.opened is exist - process it [18:47:09]req_shift_opened [18:47:09]FM_GetShiftState [18:47:09]SAM_PROTO_GetShiftState [18:47:09]wFMCommunicate request_size=4 [18:47:09]MH_SAM_APDU [18:47:09]CAPDU: 80 13 01 00 [18:47:09]Write to MH i2c: E2 08 00 0C 6A 80 13 01 00 00 00 00 00 F3 [18:47:09]Write i2c OK [18:47:09]MH_I2C_Read... [18:47:09]Read from MH i2c: E2 [18:47:09]MH_I2C_Read... [18:47:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:09]Read from MH i2c: E2 0E 00 [18:47:09]MH_I2C_Read... [18:47:09]Read from MH i2c: E2 0E 00 0C 6A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 BA [18:47:09]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:47:09]wFMCommunicate OK [18:47:09]SAM_PROTO_GetShiftState done [18:47:09]FM_GetShiftState done [18:47:09]req_shift_opened done [18:47:09]requested_item shift.open_date is exist - process it [18:47:09]req_shift_open_date [18:47:09]req_shift_open_date done [18:47:09]produce_requested_data done [18:47:09]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228394,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [18:47:09]process_action_free close_receipt [18:47:09]json_value_free [18:47:09]json_value_free done [18:47:09]process_json_proto returns [18:47:09]Send response to host [18:47:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228394,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [18:47:09]free response buf [18:47:09]execute_script done [18:47:09]execute_script returns [18:47:09]free content buf [18:47:09]Sock 9.Close socket [18:47:09]Sock 9.Thread stoped [18:47:13]OFD Sender: No OFD packet to send [18:47:18]OFD Sender: No OFD packet to send [18:47:23]OFD Sender: No OFD packet to send [18:47:28]OFD Sender: No OFD packet to send [18:47:31]accept exits with 7 [18:47:31]New connection [18:47:31]New thread 3066994020 created [18:47:31]Thread 3067137380 joined [18:47:31]Waiting for new connection... [18:47:31] Sock 7.Parse request [18:47:31]Sock 7.Check first char [18:47:31]Sock 7.First char is OK [18:47:31]request: POST /json_proto HTTP/1.0 [18:47:31]Method: POST [18:47:31]URL: /json_proto [18:47:31]Method is POST - this is cgi request [18:47:31]url: /json_proto [18:47:31]query_string will be loaded in cgi processing [18:47:31]execute_cgi json_proto POST (null) [18:47:31]execute_cgi path=json_proto method=POST [18:47:31]POST find Content-Length [18:47:31]Host: 172.17.44.195:8080 [18:47:31]Content-Length: 678 [18:47:31]Content-Type: application/json [18:47:31] [18:47:31]POST finish read [18:47:31]Found Content-Length = 678 [18:47:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "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" ] } } [18:47:31]execute_script... [18:47: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)1964945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "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" ] } } [18:47:31]POST & json_proto [18:47:31]process_json_proto [18:47:31]json parsed OK: [18:47:31]protocol is kg_v1.0 [18:47:31]action value=close_receipt [18:47:31]process_action close_receipt [18:47:31]cmd_close_receipt [18:47:31]MH_GetDate [18:47:31]Write to MH i2c: F0 00 00 0D 6A 66 [18:47:31]Write i2c OK [18:47:31]MH_I2C_Read... [18:47:31]Read from MH i2c: F0 [18:47:31]MH_I2C_Read... [18:47:31]Read from MH i2c: F0 09 00 [18:47:31]MH_I2C_Read... [18:47:31]Read from MH i2c: F0 09 00 0D 6A 00 48 F3 17 67 82 C9 CF 66 A8 [18:47:31]GetLastDocTimeStamp 1729622830 [18:47:31]current date 1729622856 [18:47:31]FM_GetShiftState [18:47:31]SAM_PROTO_GetShiftState [18:47:31]wFMCommunicate request_size=4 [18:47:31]MH_SAM_APDU [18:47:31]CAPDU: 80 13 01 00 [18:47:31]Write to MH i2c: E2 08 00 0E 6A 80 13 01 00 00 00 00 00 F5 [18:47:31]Write i2c OK [18:47:31]MH_I2C_Read... [18:47:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:31]Read from MH i2c: E2 [18:47:31]MH_I2C_Read... [18:47:31]Read from MH i2c: E2 0E 00 [18:47:31]MH_I2C_Read... [18:47:31]Read from MH i2c: E2 0E 00 0E 6A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 BC [18:47:31]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:47:31]wFMCommunicate OK [18:47:31]SAM_PROTO_GetShiftState done [18:47:31]FM_GetShiftState done [18:47:31]opened in 1729555538 [18:47:31]opened+sec_in_day 1729641938 [18:47:31]quantity*price = 40006 [18:47:31]sum+1 = 40007 [18:47:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 359 22.10.2024 18:47 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228395 ФПД: 183199473548006 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184736&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228395&fm=183199473548006&tin=02508201610067®Number=0000000000091685&sum=40000 [18:47:32]StoreToDocumentArchive [18:47:32]shift 535 fd 228395 [18:47:32]save to /storage/0535/doc_00228395 [18:47:32]save last doc name /storage/0535/doc_00228395 to /storage/kkm_last_doc_name [18:47:32]save OK [18:47:32]Clear old archive folders... [18:47:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:47:32]tlvbuf is 008EBC40 [18:47:32]SAM_PROTO_ClearQueue [18:47:32]wFMCommunicate request_size=4 [18:47:32]MH_SAM_APDU [18:47:32]CAPDU: 80 09 00 00 [18:47:32]Write to MH i2c: E2 08 00 1B 6A 80 09 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 09 00 00... Resp OK rsp.len_out = 0! [18:47:32]Read from MH i2c: E2 [18:47:32]MH_I2C_Read... [18:47:32]Read from MH i2c: E2 03 00 [18:47:32]MH_I2C_Read... [18:47:32]Read from MH i2c: E2 03 00 1B 6A 00 90 00 F9 [18:47:32]RAPDU: 90 00 [18:47:32]wFMCommunicate OK [18:47:32]SAM_PROTO_ClearQueue done [18:47:32]KKMCreateOFDPacket [18:47:32]OFDProtocolAddRootSTLVToBuf [18:47:32]FM_MakeSignedData [18:47:32]FM_MakeSignedData [18:47:32]SAM_PROTO_SignData [18:47:32]wFMCommunicate request_size=4 [18:47:32]MH_SAM_APDU [18:47:32]CAPDU: 80 0D 01 02 [18:47:32]Write to MH i2c: E2 08 00 1C 6A 80 0D 01 02 00 00 00 00 FF [18:47:32]Write i2c OK [18:47:32]MH_I2C_Read... [18:47:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:47:32]Read from MH i2c: E2 [18:47:32]MH_I2C_Read... [18:47:32]Read from MH i2c: E2 03 00 [18:47:32]MH_I2C_Read... [18:47:32]Read from MH i2c: E2 03 00 1C 6A 00 90 00 FA [18:47:32]RAPDU: 90 00 [18:47:32]wFMCommunicate OK [18:47:32]wFMCommunicate request_size=255 [18:47:32]MH_SAM_APDU [18:47: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 67 01 00 00 F4 03 04 00 48 F3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2B 7C 03 00 35 04 06 00 A6 [18:47:32]Write to MH i2c: E2 02 01 1D 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 22 1A 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 67 01 00 00 F4 03 04 00 48 F3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2B 7C 03 00 35 04 06 00 A6 00 00 EF [18:47:32]Write i2c OK [18:47:32]MH_I2C_Read... [18:47:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:32]Read from MH i2c: E2 [18:47:32]MH_I2C_Read... [18:47:32]Read from MH i2c: E2 03 00 [18:47:32]MH_I2C_Read... [18:47:32]Read from MH i2c: E2 03 00 1D 6A 00 90 00 FB [18:47:32]RAPDU: 90 00 [18:47:32]wFMCommunicate OK [18:47:32]wFMCommunicate request_size=10 [18:47:32]MH_SAM_APDU [18:47:32]CAPDU: 80 0D 02 02 05 9E 73 8B 3A E6 [18:47:32]Write to MH i2c: E2 0D 00 1E 6A 80 0D 02 02 05 00 9E 73 8B 3A E6 00 00 C8 [18:47:32]Write i2c OK [18:47:32]MH_I2C_Read... [18:47:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:32]Read from MH i2c: E2 [18:47:32]MH_I2C_Read... [18:47:32]Read from MH i2c: E2 03 00 [18:47:32]MH_I2C_Read... [18:47:32]Read from MH i2c: E2 03 00 1E 6A 00 90 00 FC [18:47:32]RAPDU: 90 00 [18:47:32]wFMCommunicate OK [18:47:32]wFMCommunicate request_size=4 [18:47:32]MH_SAM_APDU [18:47:32]CAPDU: 80 0D 03 02 [18:47:32]Write to MH i2c: E2 08 00 1F 6A 80 0D 03 02 00 00 00 00 04 [18:47:32]Write i2c OK [18:47:32]MH_I2C_Read... [18:47:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:47:32]Read from MH i2c: E2 [18:47:32]MH_I2C_Read... [18:47:32]Read from MH i2c: E2 0B 00 [18:47:32]MH_I2C_Read... [18:47:32]Read from MH i2c: E2 0B 00 1F 6A 00 B2 27 6B 38 14 78 8A E7 90 00 7E [18:47:32]RAPDU: B2 27 6B 38 14 78 8A E7 90 00 [18:47:32]wFMCommunicate OK [18:47:32]SAM_PROTO_SignData done [18:47:32]FM_MakeSignedData done [18:47:32]CreateOFDProtocolMessage [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 20 6A 80 11 00 00 00 00 00 00 04 [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 20 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5B [18:47:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:47:32]wFMCommunicate OK [18:47:32]CreateOFDProtocolMessage done [18:47:32]OFDSenderStorePacket 228395 [18:47:32]StoreOFDPacket docnum=228395 [18:47:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 89 C4 07 01 52 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 67 01 00 00 F4 03 04 00 48 F3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2B 7C 03 00 35 04 06 00 A6 9E 73 8B 3A E6 B2 27 6B 38 14 78 8A E7 [18:47:32]CheckFolder [18:47:32]dirname=/storage/ofd_packets [18:47:32]CheckFolder done [18:47:32]ProducePacketName [18:47:32]name=ofd_packets/00228395 [18:47:32]NVStorageSaveData ofd_packets/00228395 [18:47:32]File name is /storage/ofd_packets/00228395 [18:47:32]Write 301 bytes [18:47:32]NVStorageSaveData done [18:47:32]OFDSenderStorePacket done [18:47:32]KKMCreateOFDPacket done [18:47:32]NVStorageSaveData kkm_last_timestamp [18:47:32]File name is /storage/kkm_last_timestamp [18:47:32]Write 4 bytes [18:47:32]NVStorageSaveData done [18:47:32]ExternCall_PrintAddStr [18:47:32]wPrintStart [18:47:32]Write to MH i2c: 01 00 00 21 6A 8B [18:47:32]Write i2c OK [18:47:32]MH_I2C_Read... [18:47:32]Read from MH i2c: 01 [18:47:32]MH_I2C_Read... [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 21 6A 00 00 00 00 00 FF 0F A0 [18:47:32]RasterBufferAndPrint [18:47:32]line Счет N : (1)1964945 [18:47:32]line ИНН: 02508201610067 [18:47:32]line Контрольно-Кассовый Чек [18:47:32]line ПРОДАЖА [18:47:32]line ТРК (МРК, ГНК) : 33 [18:47:32]line Товар: 2710124130 [18:47:32]line Аи-92-К-5 [18:47:32]line 5.980 * 66.90 [18:47:32]line = 400.06 [18:47:32]line НДС 12% НСП 1% [18:47:32]line > о реализуемом товаре [18:47:32]line ОКРУГЛЕНИЕ: -0.06 [18:47:32]line ИТОГО: 400.00 [18:47:32]line Внесено: 400.00 [18:47:32]line СДАЧА: 0.00 [18:47:32]line НСП 1% : 3.54 [18:47:32]line НДС 12% : 42.48 [18:47:32]line Наличными: 400.00 [18:47:32]line Безнал.: 0.00 [18:47:32]line Место: АЗС № 133 "Партнер Нефть" [18:47:32]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:47:32]line СНО: Общий режим [18:47:32]line Чек 359 22.10.2024 18:47 [18:47:32]line Смена: 535 ФФД: 1.0 [18:47:32]line ЗНМ: 0300000091 [18:47:32]line РНМ: 0000000000091685 [18:47:32]line Версия ККМ: 001 [18:47:32]line ФМ: 0000000000871839 [18:47:32]line ФД: 228395 [18:47:32]line ФПД: 183199473548006 [18:47:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184736&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228395&fm=183199473548006&tin=02508201610067®Number=0000000000091685&sum=40000 [18:47:33]OFD Sender: Processing packet 228395 [packets to send 38, broken 37] [18:47:33]ProducePacketName [18:47:33]name=ofd_packets/00228395 [18:47:33]OFD Sender: To server: pG, [18:47:33]CommunicateWithHost lk.salyk.kg:30040 [18:47:33]ConnectInit lk.salyk.kg [18:47:33]written 0, free lines is 4095 [18:47:33]Connected sock=10 [18:47:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 89 C4 07 01 52 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 67 01 00 00 F4 03 04 00 48 F3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2B 7C 03 00 35 04 06 00 A6 9E 73 8B 3A E6 B2 27 6B 38 14 78 8A E7 [18:47:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 32 10 47 00 D3 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2B 7C 03 00 F4 03 04 00 40 9E 17 67 B6 04 01 00 00 AD 39 BF 40 BA 7B CF A5 [18:47:33]CommunicateWithHost err = 0 [18:47:33]CheckOFDResponse [18:47:33]1017 (14) - 77093643461234 [18:47:33]1041 (16) - 0000000000871839 [18:47:33]1040 (4) - 228395 [18:47:33]1012 (4) - 22.10.2024 12:44 [18:47:33]1206 (1) - 0 [18:47:33]OFD Sender: Remove packet 228395 [18:47:33]ProducePacketName [18:47:33]name=ofd_packets/00228395 [18:47:33]NVStorageDeleteData [18:47:33]Write to MH i2c: 01 00 00 4B 6A B5 [18:47:33]Write i2c OK [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: 01 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: 01 07 00 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: 01 07 00 4B 6A 00 00 00 00 00 B7 0C 7F [18:47:33]RasterBufferAndPrint [18:47:33]line [18:47:33]line [18:47:33]line [18:47:33]line [18:47:33]line [18:47:33]written 0, free lines is 3261 [18:47:33]MH_Cut [18:47:33]Write to MH i2c: D1 01 00 52 6A 01 8E [18:47:33]Write i2c OK [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: D1 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: D1 01 00 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: D1 01 00 52 6A 00 8D [18:47:33]Write to MH i2c: 01 00 00 53 6A BD [18:47:33]Write i2c OK [18:47:33]MH_I2C_Read... [18:47:34]OFD Sender: No OFD packet to send [18:47:34]*** Cut start [18:47:34]*** Partial cut [18:47:34]*** CUTSNS_PIN = 1 [18:47:34]*** CUTSNS_PIN = 0 [18:47:34]*** Brake cut motor [18:47:35]Read from MH i2c: 01 [18:47:35]MH_I2C_Read... [18:47:35]*** Stop cut motor [18:47:35]*** Cut end [18:47:35]Read from MH i2c: 01 07 00 [18:47:35]MH_I2C_Read... [18:47:35]Read from MH i2c: 01 07 00 53 6A 00 00 00 00 00 FF 0F D2 [18:47:35]process_action close_receipt done [18:47:35]requested_data is exist [18:47:35]produce_requested_data [18:47:35]requested_item fm.sn is exist - process it [18:47:35]wFMCommunicate request_size=4 [18:47:35]MH_SAM_APDU [18:47:35]CAPDU: 80 11 00 00 [18:47:35]Write to MH i2c: E2 08 00 54 6A 80 11 00 00 00 00 00 00 38 [18:47:35]Write i2c OK [18:47:35]MH_I2C_Read... [18:47:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:35]Read from MH i2c: E2 [18:47:35]MH_I2C_Read... [18:47:35]Read from MH i2c: E2 17 00 [18:47:35]MH_I2C_Read... [18:47:35]Read from MH i2c: E2 17 00 54 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8F [18:47:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:47:35]wFMCommunicate OK [18:47:35]requested_item fd.num is exist - process it [18:47:35]SAM_PROTO_GetFieldsCounters [18:47:35]wFMCommunicate request_size=4 [18:47:35]MH_SAM_APDU [18:47:35]CAPDU: 80 13 00 00 [18:47:35]Write to MH i2c: E2 08 00 55 6A 80 13 00 00 00 00 00 00 3B [18:47:35]Write i2c OK [18:47:35]MH_I2C_Read... [18:47:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:47:35]Read from MH i2c: E2 [18:47:35]MH_I2C_Read... [18:47:35]Read from MH i2c: E2 62 00 [18:47:35]MH_I2C_Read... [18:47:35]Read from MH i2c: E2 62 00 55 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2B 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 5F [18:47:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2B 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:47:35]wFMCommunicate OK [18:47:35]SAM_PROTO_GetFieldsCounters done [18:47:35]requested_item shift.num is exist - process it [18:47:35]requested_item shift.opened is exist - process it [18:47:35]req_shift_opened [18:47:35]FM_GetShiftState [18:47:35]SAM_PROTO_GetShiftState [18:47:35]wFMCommunicate request_size=4 [18:47:35]MH_SAM_APDU [18:47:35]CAPDU: 80 13 01 00 [18:47:35]Write to MH i2c: E2 08 00 56 6A 80 13 01 00 00 00 00 00 3D [18:47:35]Write i2c OK [18:47:35]MH_I2C_Read... [18:47:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:35]Read from MH i2c: E2 [18:47:35]MH_I2C_Read... [18:47:35]Read from MH i2c: E2 0E 00 [18:47:35]MH_I2C_Read... [18:47:35]Read from MH i2c: E2 0E 00 56 6A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 04 [18:47:35]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:47:35]wFMCommunicate OK [18:47:35]SAM_PROTO_GetShiftState done [18:47:35]FM_GetShiftState done [18:47:35]req_shift_opened done [18:47:35]requested_item shift.open_date is exist - process it [18:47:35]req_shift_open_date [18:47:35]req_shift_open_date done [18:47:35]produce_requested_data done [18:47:35]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228395,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [18:47:35]process_action_free close_receipt [18:47:35]json_value_free [18:47:35]json_value_free done [18:47:35]process_json_proto returns [18:47:35]Send response to host [18:47:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228395,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [18:47:35]free response buf [18:47:35]execute_script done [18:47:35]execute_script returns [18:47:35]free content buf [18:47:35]Sock 7.Close socket [18:47:35]Sock 7.Thread stoped [18:47:39]OFD Sender: No OFD packet to send [18:47:44]OFD Sender: No OFD packet to send [18:47:49]OFD Sender: No OFD packet to send [18:47:54]OFD Sender: No OFD packet to send [18:47:59]OFD Sender: No OFD packet to send [18:48:04]OFD Sender: No OFD packet to send [18:48:09]OFD Sender: No OFD packet to send [18:48:14]OFD Sender: No OFD packet to send [18:48:19]OFD Sender: No OFD packet to send [18:48:24]OFD Sender: No OFD packet to send [18:48:29]OFD Sender: No OFD packet to send [18:48:34]OFD Sender: No OFD packet to send [18:48:39]OFD Sender: No OFD packet to send [18:48:44]OFD Sender: No OFD packet to send [18:48:49]OFD Sender: No OFD packet to send [18:48:54]OFD Sender: No OFD packet to send [18:48:59]OFD Sender: No OFD packet to send [18:49:04]OFD Sender: No OFD packet to send [18:49:09]OFD Sender: No OFD packet to send [18:49:14]OFD Sender: No OFD packet to send [18:49:19]OFD Sender: No OFD packet to send [18:49:24]OFD Sender: No OFD packet to send [18:49:29]OFD Sender: No OFD packet to send [18:49:34]OFD Sender: No OFD packet to send [18:49:35]accept exits with 9 [18:49:35]New connection [18:49:35]New thread 3067137380 created [18:49:35]Thread 3066994020 joined [18:49:35]Waiting for new connection... [18:49:35] Sock 9.Parse request [18:49:35]Sock 9.Check first char [18:49:35]Sock 9.First char is OK [18:49:35]request: POST /json_proto HTTP/1.0 [18:49:35]Method: POST [18:49:35]URL: /json_proto [18:49:35]Method is POST - this is cgi request [18:49:35]url: /json_proto [18:49:35]query_string will be loaded in cgi processing [18:49:35]execute_cgi json_proto POST (null) [18:49:35]execute_cgi path=json_proto method=POST [18:49:35]POST find Content-Length [18:49:35]Host: 172.17.44.195:8080 [18:49:35]Content-Length: 680 [18:49:35]Content-Type: application/json [18:49:35] [18:49:35]POST finish read [18:49:35]Found Content-Length = 680 [18:49:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964948", "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" : 76.20, "quantity" : 17.070, "sum" : 1300.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:35]execute_script... [18: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)1964948", "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" : 76.20, "quantity" : 17.070, "sum" : 1300.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:35]POST & json_proto [18:49:35]process_json_proto [18:49:35]json parsed OK: [18:49:35]protocol is kg_v1.0 [18:49:35]action value=close_receipt [18:49:35]process_action close_receipt [18:49:35]cmd_close_receipt [18:49:35]MH_GetDate [18:49:35]Write to MH i2c: F0 00 00 57 6A B0 [18:49:35]Write i2c OK [18:49:35]MH_I2C_Read... [18:49:35]Read from MH i2c: F0 [18:49:35]MH_I2C_Read... [18:49:35]Read from MH i2c: F0 09 00 [18:49:35]MH_I2C_Read... [18:49:35]Read from MH i2c: F0 09 00 57 6A 00 C4 F3 17 67 82 C9 CF 66 6E [18:49:35]GetLastDocTimeStamp 1729622856 [18:49:35]current date 1729622980 [18:49:35]FM_GetShiftState [18:49:35]SAM_PROTO_GetShiftState [18:49:35]wFMCommunicate request_size=4 [18:49:35]MH_SAM_APDU [18:49:35]CAPDU: 80 13 01 00 [18:49:35]Write to MH i2c: E2 08 00 58 6A 80 13 01 00 00 00 00 00 3F [18:49:35]Write i2c OK [18:49:35]MH_I2C_Read... [18:49:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:35]Read from MH i2c: E2 [18:49:35]MH_I2C_Read... [18:49:35]Read from MH i2c: E2 0E 00 [18:49:35]MH_I2C_Read... [18:49:35]Read from MH i2c: E2 0E 00 58 6A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 06 [18:49:35]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:49:35]wFMCommunicate OK [18:49:35]SAM_PROTO_GetShiftState done [18:49:35]FM_GetShiftState done [18:49:35]opened in 1729555538 [18:49:35]opened+sec_in_day 1729641938 [18:49:35]quantity*price = 130073 [18:49:35]sum+1 = 130074 [18:49:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 1300.00 Внесено: 5000.00 СДАЧА: 3700.00 НСП 1% : 11.51 НДС 12% : 138.13 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 360 22.10.2024 18:49 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228396 ФПД: 263658698471171 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184940&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228396&fm=263658698471171&tin=02508201610067®Number=0000000000091685&sum=130000 [18:49:36]StoreToDocumentArchive [18:49:36]shift 535 fd 228396 [18:49:36]save to /storage/0535/doc_00228396 [18:49:36]save last doc name /storage/0535/doc_00228396 to /storage/kkm_last_doc_name [18:49:36]save OK [18:49:36]Clear old archive folders... [18:49:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:49:36]tlvbuf is 0098E180 [18:49:36]SAM_PROTO_ClearQueue [18:49:36]wFMCommunicate request_size=4 [18:49:36]MH_SAM_APDU [18:49:36]CAPDU: 80 09 00 00 [18:49:36]Write to MH i2c: E2 08 00 65 6A 80 09 00 00 00 00 00 00 41 [18:49:36]Write i2c OK [18:49:36]MH_I2C_Read... [18:49:36]Read from MH i2c: E2 [18:49:36]MH_I2C_Read... [18:49:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:49:36]Read from MH i2c: E2 03 00 [18:49:36]MH_I2C_Read... [18:49:36]Read from MH i2c: E2 03 00 65 6A 00 90 00 43 [18:49:36]RAPDU: 90 00 [18:49:36]wFMCommunicate OK [18:49:36]SAM_PROTO_ClearQueue done [18:49:36]KKMCreateOFDPacket [18:49:36]OFDProtocolAddRootSTLVToBuf [18:49:36]FM_MakeSignedData [18:49:36]FM_MakeSignedData [18:49:36]SAM_PROTO_SignData [18:49:36]wFMCommunicate request_size=4 [18:49:36]MH_SAM_APDU [18:49:36]CAPDU: 80 0D 01 02 [18:49:36]Write to MH i2c: E2 08 00 66 6A 80 0D 01 02 00 00 00 00 49 [18:49:36]Write i2c OK [18:49:36]MH_I2C_Read... [18:49:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:49:36]Read from MH i2c: E2 [18:49:36]MH_I2C_Read... [18:49:36]Read from MH i2c: E2 03 00 [18:49:36]MH_I2C_Read... [18:49:36]Read from MH i2c: E2 03 00 66 6A 00 90 00 44 [18:49:36]RAPDU: 90 00 [18:49:36]wFMCommunicate OK [18:49:36]wFMCommunicate request_size=255 [18:49:36]MH_SAM_APDU [18:49:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 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 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 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 68 01 00 00 F4 03 04 00 C4 F3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2C 7C 03 00 35 04 06 00 EF CB D3 10 [18:49:36]Write to MH i2c: E2 02 01 67 6A 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 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 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 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 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 68 01 00 00 F4 03 04 00 C4 F3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2C 7C 03 00 35 04 06 00 EF CB D3 10 00 00 D9 [18:49:36]Write i2c OK [18:49:36]MH_I2C_Read... [18:49:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:36]Read from MH i2c: E2 [18:49:36]MH_I2C_Read... [18:49:36]Read from MH i2c: E2 03 00 [18:49:36]MH_I2C_Read... [18:49:36]Read from MH i2c: E2 03 00 67 6A 00 90 00 45 [18:49:36]RAPDU: 90 00 [18:49:36]wFMCommunicate OK [18:49:36]wFMCommunicate request_size=7 [18:49:36]MH_SAM_APDU [18:49:36]CAPDU: 80 0D 02 02 02 77 03 [18:49:36]Write to MH i2c: E2 0A 00 68 6A 80 0D 02 02 02 00 77 03 00 00 CA [18:49:36]Write i2c OK [18:49:36]MH_I2C_Read... [18:49:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:36]Read from MH i2c: E2 [18:49:36]MH_I2C_Read... [18:49:36]Read from MH i2c: E2 03 00 [18:49:36]MH_I2C_Read... [18:49:36]Read from MH i2c: E2 03 00 68 6A 00 90 00 46 [18:49:36]RAPDU: 90 00 [18:49:36]wFMCommunicate OK [18:49:36]wFMCommunicate request_size=4 [18:49:36]MH_SAM_APDU [18:49:36]CAPDU: 80 0D 03 02 [18:49:36]Write to MH i2c: E2 08 00 69 6A 80 0D 03 02 00 00 00 00 4E [18:49:36]Write i2c OK [18:49:36]MH_I2C_Read... [18:49:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:49:36]Read from MH i2c: E2 [18:49:36]MH_I2C_Read... [18:49:36]Read from MH i2c: E2 0B 00 [18:49:36]MH_I2C_Read... [18:49:36]Read from MH i2c: E2 0B 00 69 6A 00 04 72 3D 9D 33 54 85 B7 90 00 62 [18:49:36]RAPDU: 04 72 3D 9D 33 54 85 B7 90 00 [18:49:36]wFMCommunicate OK [18:49:36]SAM_PROTO_SignData done [18:49:36]FM_MakeSignedData done [18:49:36]CreateOFDProtocolMessage [18:49:36]wFMCommunicate request_size=4 [18:49:36]MH_SAM_APDU [18:49:36]CAPDU: 80 11 00 00 [18:49:36]Write to MH i2c: E2 08 00 6A 6A 80 11 00 00 00 00 00 00 4E [18:49:36]Write i2c OK [18:49:36]MH_I2C_Read... [18:49:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:36]Read from MH i2c: E2 [18:49:36]MH_I2C_Read... [18:49:36]Read from MH i2c: E2 17 00 [18:49:36]MH_I2C_Read... [18:49:36]Read from MH i2c: E2 17 00 6A 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A5 [18:49:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:49:36]wFMCommunicate OK [18:49:36]CreateOFDProtocolMessage done [18:49:36]OFDSenderStorePacket 228396 [18:49:36]StoreOFDPacket docnum=228396 [18:49:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 E0 83 04 01 9A 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 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 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 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 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 68 01 00 00 F4 03 04 00 C4 F3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2C 7C 03 00 35 04 06 00 EF CB D3 10 77 03 04 72 3D 9D 33 54 85 B7 [18:49:36]CheckFolder [18:49:36]dirname=/storage/ofd_packets [18:49:36]CheckFolder done [18:49:36]ProducePacketName [18:49:36]name=ofd_packets/00228396 [18:49:36]NVStorageSaveData ofd_packets/00228396 [18:49:36]File name is /storage/ofd_packets/00228396 [18:49:36]Write 298 bytes [18:49:36]NVStorageSaveData done [18:49:36]OFDSenderStorePacket done [18:49:36]KKMCreateOFDPacket done [18:49:36]NVStorageSaveData kkm_last_timestamp [18:49:36]File name is /storage/kkm_last_timestamp [18:49:36]Write 4 bytes [18:49:36]NVStorageSaveData done [18:49:36]ExternCall_PrintAddStr [18:49:36]wPrintStart [18:49:36]Write to MH i2c: 01 00 00 6B 6A D5 [18:49:36]Write i2c OK [18:49:36]MH_I2C_Read... [18:49:36]Read from MH i2c: 01 [18:49:36]MH_I2C_Read... [18:49:36]Read from MH i2c: 01 07 00 [18:49:36]MH_I2C_Read... [18:49:36]Read from MH i2c: 01 07 00 6B 6A 00 00 00 00 00 FF 0F EA [18:49:36]RasterBufferAndPrint [18:49:36]line Счет N : (1)1964948 [18:49:36]line ИНН: 02508201610067 [18:49:36]line Контрольно-Кассовый Чек [18:49:36]line ПРОДАЖА [18:49:36]line ТРК (МРК, ГНК) : 51 [18:49:36]line Товар: 2710194210 [18:49:36]line ДТ-К-5 [18:49:36]line 17.070 * 76.20 [18:49:36]line = 1300.73 [18:49:36]line НДС 12% НСП 1% [18:49:36]line > о реализуемом товаре [18:49:36]line ОКРУГЛЕНИЕ: -0.73 [18:49:36]line ИТОГО: 1300.00 [18:49:36]line Внесено: 5000.00 [18:49:36]line СДАЧА: 3700.00 [18:49:36]line НСП 1% : 11.51 [18:49:36]line НДС 12% : 138.13 [18:49:36]line Наличными: 1300.00 [18:49:36]line Безнал.: 0.00 [18:49:36]line Место: АЗС № 133 "Партнер Нефть" [18:49:36]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:49:36]line СНО: Общий режим [18:49:36]line Чек 360 22.10.2024 18:49 [18:49:36]line Смена: 535 ФФД: 1.0 [18:49:36]line ЗНМ: 0300000091 [18:49:36]line РНМ: 0000000000091685 [18:49:36]line Версия ККМ: 001 [18:49:36]line ФМ: 0000000000871839 [18:49:36]line ФД: 228396 [18:49:36]line ФПД: 263658698471171 [18:49:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184940&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228396&fm=263658698471171&tin=02508201610067®Number=0000000000091685&sum=130000 [18:49:37]OFD Sender: Processing packet 228396 [packets to send 38, broken 37] [18:49:37]ProducePacketName [18:49:37]name=ofd_packets/00228396 [18:49:37]OFD Sender: To server: pG, [18:49:37]CommunicateWithHost lk.salyk.kg:30040 [18:49:37]ConnectInit lk.salyk.kg [18:49:37]written 0, free lines is 4095 [18:49:37]Connected sock=10 [18:49:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 E0 83 04 01 9A 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 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 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 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 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 68 01 00 00 F4 03 04 00 C4 F3 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2C 7C 03 00 35 04 06 00 EF CB D3 10 77 03 04 72 3D 9D 33 54 85 B7 [18:49:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 2B AC 47 00 0E B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2C 7C 03 00 F4 03 04 00 BC 9E 17 67 B6 04 01 00 00 B2 E5 9D A2 C9 FE 07 20 [18:49:37]CommunicateWithHost err = 0 [18:49:37]CheckOFDResponse [18:49:37]1017 (14) - 77093643461234 [18:49:37]1041 (16) - 0000000000871839 [18:49:37]1040 (4) - 228396 [18:49:37]1012 (4) - 22.10.2024 12:46 [18:49:37]1206 (1) - 0 [18:49:37]OFD Sender: Remove packet 228396 [18:49:37]ProducePacketName [18:49:37]name=ofd_packets/00228396 [18:49:37]NVStorageDeleteData [18:49:37]Write to MH i2c: 01 00 00 95 6A FF [18:49:37]Write i2c OK [18:49:37]MH_I2C_Read... [18:49:37]Read from MH i2c: 01 [18:49:37]MH_I2C_Read... [18:49:37]Read from MH i2c: 01 07 00 [18:49:37]MH_I2C_Read... [18:49:37]Read from MH i2c: 01 07 00 95 6A 00 00 00 00 00 AA 0C BC [18:49:37]RasterBufferAndPrint [18:49:37]line [18:49:37]line [18:49:37]line [18:49:37]line [18:49:37]line [18:49:37]written 0, free lines is 3247 [18:49:37]MH_Cut [18:49:37]Write to MH i2c: D1 01 00 9C 6A 01 D8 [18:49:37]Write i2c OK [18:49:37]MH_I2C_Read... [18:49:37]Read from MH i2c: D1 [18:49:37]MH_I2C_Read... [18:49:37]Read from MH i2c: D1 01 00 [18:49:37]MH_I2C_Read... [18:49:37]Read from MH i2c: D1 01 00 9C 6A 00 D7 [18:49:37]Write to MH i2c: 01 00 00 9D 6A 07 [18:49:37]Write i2c OK [18:49:37]MH_I2C_Read... [18:49:37]OFD Sender: No OFD packet to send [18:49:38]*** Cut start [18:49:38]*** Partial cut [18:49:38]*** CUTSNS_PIN = 1 [18:49:38]*** CUTSNS_PIN = 0 [18:49:38]*** Brake cut motor [18:49:39]Read from MH i2c: 01 [18:49:39]MH_I2C_Read... [18:49:39]*** Stop cut motor [18:49:39]*** Cut end [18:49:39]Read from MH i2c: 01 07 00 [18:49:39]MH_I2C_Read... [18:49:39]Read from MH i2c: 01 07 00 9D 6A 00 00 00 00 00 FF 0F 1C [18:49:39]process_action close_receipt done [18:49:39]requested_data is exist [18:49:39]produce_requested_data [18:49:39]requested_item fm.sn is exist - process it [18:49:39]wFMCommunicate request_size=4 [18:49:39]MH_SAM_APDU [18:49:39]CAPDU: 80 11 00 00 [18:49:39]Write to MH i2c: E2 08 00 9E 6A 80 11 00 00 00 00 00 00 82 [18:49:39]Write i2c OK [18:49:39]MH_I2C_Read... [18:49:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:39]Read from MH i2c: E2 [18:49:39]MH_I2C_Read... [18:49:39]Read from MH i2c: E2 17 00 [18:49:39]MH_I2C_Read... [18:49:39]Read from MH i2c: E2 17 00 9E 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D9 [18:49:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:49:39]wFMCommunicate OK [18:49:39]requested_item fd.num is exist - process it [18:49:39]SAM_PROTO_GetFieldsCounters [18:49:39]wFMCommunicate request_size=4 [18:49:39]MH_SAM_APDU [18:49:39]CAPDU: 80 13 00 00 [18:49:39]Write to MH i2c: E2 08 00 9F 6A 80 13 00 00 00 00 00 00 85 [18:49:39]Write i2c OK [18:49:39]MH_I2C_Read... [18:49:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:49:39]Read from MH i2c: E2 [18:49:39]MH_I2C_Read... [18:49:39]Read from MH i2c: E2 62 00 [18:49:39]MH_I2C_Read... [18:49:39]Read from MH i2c: E2 62 00 9F 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2C 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 68 01 00 00 5E 04 04 00 68 01 00 00 57 04 04 00 69 01 00 00 19 04 04 00 00 00 00 00 90 00 AD [18:49:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2C 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 68 01 00 00 5E 04 04 00 68 01 00 00 57 04 04 00 69 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:49:39]wFMCommunicate OK [18:49:39]SAM_PROTO_GetFieldsCounters done [18:49:39]requested_item shift.num is exist - process it [18:49:39]requested_item shift.opened is exist - process it [18:49:39]req_shift_opened [18:49:39]FM_GetShiftState [18:49:39]SAM_PROTO_GetShiftState [18:49:39]wFMCommunicate request_size=4 [18:49:39]MH_SAM_APDU [18:49:39]CAPDU: 80 13 01 00 [18:49:39]Write to MH i2c: E2 08 00 A0 6A 80 13 01 00 00 00 00 00 87 [18:49:39]Write i2c OK [18:49:39]MH_I2C_Read... [18:49:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:39]Read from MH i2c: E2 [18:49:39]MH_I2C_Read... [18:49:39]Read from MH i2c: E2 0E 00 [18:49:39]MH_I2C_Read... [18:49:39]Read from MH i2c: E2 0E 00 A0 6A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 4E [18:49:39]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:49:39]wFMCommunicate OK [18:49:39]SAM_PROTO_GetShiftState done [18:49:39]FM_GetShiftState done [18:49:39]req_shift_opened done [18:49:39]requested_item shift.open_date is exist - process it [18:49:39]req_shift_open_date [18:49:39]req_shift_open_date done [18:49:39]produce_requested_data done [18:49:39]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228396,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [18:49:39]process_action_free close_receipt [18:49:39]json_value_free [18:49:39]json_value_free done [18:49:39]process_json_proto returns [18:49:39]Send response to host [18:49:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228396,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [18:49:39]free response buf [18:49:39]execute_script done [18:49:39]execute_script returns [18:49:39]free content buf [18:49:39]Sock 9.Close socket [18:49:39]Sock 9.Thread stoped [18:49:42]OFD Sender: No OFD packet to send [18:49:47]OFD Sender: No OFD packet to send [18:49:52]OFD Sender: No OFD packet to send [18:49:57]OFD Sender: No OFD packet to send [18:50:02]OFD Sender: No OFD packet to send [18:50:07]OFD Sender: No OFD packet to send [18:50:12]OFD Sender: No OFD packet to send [18:50:17]OFD Sender: No OFD packet to send [18:50:22]OFD Sender: No OFD packet to send [18:50:27]OFD Sender: No OFD packet to send [18:50:32]OFD Sender: No OFD packet to send [18:50:37]OFD Sender: No OFD packet to send [18:50:42]OFD Sender: No OFD packet to send [18:50:47]OFD Sender: No OFD packet to send [18:50:52]OFD Sender: No OFD packet to send [18:50:57]OFD Sender: No OFD packet to send [18:51:02]OFD Sender: No OFD packet to send [18:51:07]OFD Sender: No OFD packet to send [18:51:12]OFD Sender: No OFD packet to send [18:51:17]OFD Sender: No OFD packet to send [18:51:22]OFD Sender: No OFD packet to send [18:51:27]OFD Sender: No OFD packet to send [18:51:32]OFD Sender: No OFD packet to send [18:51:38]OFD Sender: No OFD packet to send [18:51:43]OFD Sender: No OFD packet to send [18:51:48]OFD Sender: No OFD packet to send [18:51:53]OFD Sender: No OFD packet to send [18:51:58]OFD Sender: No OFD packet to send [18:52:02]accept exits with 7 [18:52:02]New connection [18:52:02]New thread 3066994020 created [18:52:02]Thread 3067137380 joined [18:52:02]Waiting for new connection... [18:52:02] Sock 7.Parse request [18:52:02]Sock 7.Check first char [18:52:02]Sock 7.First char is OK [18:52:02]request: POST /json_proto HTTP/1.0 [18:52:02]Method: POST [18:52:02]URL: /json_proto [18:52:02]Method is POST - this is cgi request [18:52:02]url: /json_proto [18:52:02]query_string will be loaded in cgi processing [18:52:02]execute_cgi json_proto POST (null) [18:52:02]execute_cgi path=json_proto method=POST [18:52:02]POST find Content-Length [18:52:02]Host: 172.17.44.195:8080 [18:52:02]Content-Length: 678 [18:52:02]Content-Type: application/json [18:52:02] [18:52:02]POST finish read [18:52:02]Found Content-Length = 678 [18:52:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [18:52:02]execute_script... [18:52: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)1964949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [18:52:02]POST & json_proto [18:52:02]process_json_proto [18:52:02]json parsed OK: [18:52:02]protocol is kg_v1.0 [18:52:02]action value=close_receipt [18:52:02]process_action close_receipt [18:52:02]cmd_close_receipt [18:52:02]MH_GetDate [18:52:02]Write to MH i2c: F0 00 00 A1 6A FA [18:52:02]Write i2c OK [18:52:02]MH_I2C_Read... [18:52:02]Read from MH i2c: F0 [18:52:02]MH_I2C_Read... [18:52:02]Read from MH i2c: F0 09 00 [18:52:02]MH_I2C_Read... [18:52:02]Read from MH i2c: F0 09 00 A1 6A 00 57 F4 17 67 82 C9 CF 66 4C [18:52:02]GetLastDocTimeStamp 1729622980 [18:52:02]current date 1729623127 [18:52:02]FM_GetShiftState [18:52:02]SAM_PROTO_GetShiftState [18:52:02]wFMCommunicate request_size=4 [18:52:02]MH_SAM_APDU [18:52:02]CAPDU: 80 13 01 00 [18:52:02]Write to MH i2c: E2 08 00 A2 6A 80 13 01 00 00 00 00 00 89 [18:52:02]Write i2c OK [18:52:02]MH_I2C_Read... [18:52:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:02]Read from MH i2c: E2 [18:52:02]MH_I2C_Read... [18:52:02]Read from MH i2c: E2 0E 00 [18:52:02]MH_I2C_Read... [18:52:02]Read from MH i2c: E2 0E 00 A2 6A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 50 [18:52:02]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:52:02]wFMCommunicate OK [18:52:02]SAM_PROTO_GetShiftState done [18:52:02]FM_GetShiftState done [18:52:02]opened in 1729555538 [18:52:02]opened+sec_in_day 1729641938 [18:52:02]quantity*price = 20003 [18:52:02]sum+1 = 20004 [18:52:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 361 22.10.2024 18:52 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228397 ФПД: 240766818192088 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185207&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228397&fm=240766818192088&tin=02508201610067®Number=0000000000091685&sum=20000 [18:52:03]StoreToDocumentArchive [18:52:03]shift 535 fd 228397 [18:52:03]save to /storage/0535/doc_00228397 [18:52:03]save last doc name /storage/0535/doc_00228397 to /storage/kkm_last_doc_name [18:52:03]save OK [18:52:03]Clear old archive folders... [18:52:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:52:03]tlvbuf is 0093C7D0 [18:52:03]SAM_PROTO_ClearQueue [18:52:03]wFMCommunicate request_size=4 [18:52:03]MH_SAM_APDU [18:52:03]CAPDU: 80 09 00 00 [18:52:03]Write to MH i2c: E2 08 00 AF 6A 80 09 00 00 00 00 00 00 8B [18:52:03]Write i2c OK [18:52:03]MH_I2C_Read... [18:52:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:52:03]Read from MH i2c: E2 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 03 00 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 03 00 AF 6A 00 90 00 8D [18:52:03]RAPDU: 90 00 [18:52:03]wFMCommunicate OK [18:52:03]SAM_PROTO_ClearQueue done [18:52:03]KKMCreateOFDPacket [18:52:03]OFDProtocolAddRootSTLVToBuf [18:52:03]FM_MakeSignedData [18:52:03]FM_MakeSignedData [18:52:03]SAM_PROTO_SignData [18:52:03]wFMCommunicate request_size=4 [18:52:03]MH_SAM_APDU [18:52:03]CAPDU: 80 0D 01 02 [18:52:03]Write to MH i2c: E2 08 00 B0 6A 80 0D 01 02 00 00 00 00 93 [18:52:03]Write i2c OK [18:52:03]MH_I2C_Read... [18:52:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:52:03]Read from MH i2c: E2 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 03 00 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 03 00 B0 6A 00 90 00 8E [18:52:03]RAPDU: 90 00 [18:52:03]wFMCommunicate OK [18:52:03]wFMCommunicate request_size=255 [18:52:03]MH_SAM_APDU [18:52: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 57 F4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2D 7C 03 00 35 04 06 00 DA [18:52:03]Write to MH i2c: E2 02 01 B1 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 57 F4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2D 7C 03 00 35 04 06 00 DA 00 00 BE [18:52:03]Write i2c OK [18:52:03]MH_I2C_Read... [18:52:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:03]Read from MH i2c: E2 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 03 00 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 03 00 B1 6A 00 90 00 8F [18:52:03]RAPDU: 90 00 [18:52:03]wFMCommunicate OK [18:52:03]wFMCommunicate request_size=10 [18:52:03]MH_SAM_APDU [18:52:03]CAPDU: 80 0D 02 02 05 F9 E4 AC 0A D8 [18:52:03]Write to MH i2c: E2 0D 00 B2 6A 80 0D 02 02 05 00 F9 E4 AC 0A D8 00 00 0B [18:52:03]Write i2c OK [18:52:03]MH_I2C_Read... [18:52:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:03]Read from MH i2c: E2 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 03 00 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 03 00 B2 6A 00 90 00 90 [18:52:03]RAPDU: 90 00 [18:52:03]wFMCommunicate OK [18:52:03]wFMCommunicate request_size=4 [18:52:03]MH_SAM_APDU [18:52:03]CAPDU: 80 0D 03 02 [18:52:03]Write to MH i2c: E2 08 00 B3 6A 80 0D 03 02 00 00 00 00 98 [18:52:03]Write i2c OK [18:52:03]MH_I2C_Read... [18:52:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:52:03]Read from MH i2c: E2 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 0B 00 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 0B 00 B3 6A 00 80 A8 9A DD 3D 44 46 E5 90 00 E4 [18:52:03]RAPDU: 80 A8 9A DD 3D 44 46 E5 90 00 [18:52:03]wFMCommunicate OK [18:52:03]SAM_PROTO_SignData done [18:52:03]FM_MakeSignedData done [18:52:03]CreateOFDProtocolMessage [18:52:03]wFMCommunicate request_size=4 [18:52:03]MH_SAM_APDU [18:52:03]CAPDU: 80 11 00 00 [18:52:03]Write to MH i2c: E2 08 00 B4 6A 80 11 00 00 00 00 00 00 98 [18:52:03]Write i2c OK [18:52:03]MH_I2C_Read... [18:52:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:03]Read from MH i2c: E2 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 17 00 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 17 00 B4 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 EF [18:52:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:52:03]wFMCommunicate OK [18:52:03]CreateOFDProtocolMessage done [18:52:03]OFDSenderStorePacket 228397 [18:52:03]StoreOFDPacket docnum=228397 [18:52:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 4F 8F 07 01 F4 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 57 F4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2D 7C 03 00 35 04 06 00 DA F9 E4 AC 0A D8 80 A8 9A DD 3D 44 46 E5 [18:52:03]CheckFolder [18:52:03]dirname=/storage/ofd_packets [18:52:03]CheckFolder done [18:52:03]ProducePacketName [18:52:03]name=ofd_packets/00228397 [18:52:03]NVStorageSaveData ofd_packets/00228397 [18:52:03]File name is /storage/ofd_packets/00228397 [18:52:03]Write 301 bytes [18:52:03]NVStorageSaveData done [18:52:03]OFDSenderStorePacket done [18:52:03]KKMCreateOFDPacket done [18:52:03]NVStorageSaveData kkm_last_timestamp [18:52:03]File name is /storage/kkm_last_timestamp [18:52:03]Write 4 bytes [18:52:03]NVStorageSaveData done [18:52:03]OFD Sender: Processing packet 228397 [packets to send 38, broken 37] [18:52:03]ProducePacketName [18:52:03]name=ofd_packets/00228397 [18:52:03]OFD Sender: To server: pG, [18:52:03]CommunicateWithHost lk.salyk.kg:30040 [18:52:03]ConnectInit lk.salyk.kg [18:52:03]ExternCall_PrintAddStr [18:52:03]wPrintStart [18:52:03]Write to MH i2c: 01 00 00 B5 6A 1F [18:52:03]Write i2c OK [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: 01 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: 01 07 00 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: 01 07 00 B5 6A 00 00 00 00 00 FF 0F 34 [18:52:03]RasterBufferAndPrint [18:52:03]line Счет N : (1)1964949 [18:52:03]line ИНН: 02508201610067 [18:52:03]line Контрольно-Кассовый Чек [18:52:03]line ПРОДАЖА [18:52:03]line ТРК (МРК, ГНК) : 33 [18:52:03]line Товар: 2710124130 [18:52:03]line Аи-92-К-5 [18:52:03]line 2.990 * 66.90 [18:52:03]line = 200.03 [18:52:03]line НДС 12% НСП 1% [18:52:03]line > о реализуемом товаре [18:52:03]line ОКРУГЛЕНИЕ: -0.03 [18:52:03]line ИТОГО: 200.00 [18:52:03]line Внесено: 200.00 [18:52:03]line СДАЧА: 0.00 [18:52:03]line НСП 1% : 1.77 [18:52:03]line НДС 12% : 21.24 [18:52:03]line Наличными: 200.00 [18:52:03]line Безнал.: 0.00 [18:52:03]line Место: АЗС № 133 "Партнер Нефть" [18:52:03]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:52:03]line СНО: Общий режим [18:52:03]line Чек 361 22.10.2024 18:52 [18:52:03]line Смена: 535 ФФД: 1.0 [18:52:03]line ЗНМ: 0300000091 [18:52:03]line РНМ: 0000000000091685 [18:52:03]line Версия ККМ: 001 [18:52:03]line ФМ: 0000000000871839 [18:52:03]line ФД: 228397 [18:52:03]line ФПД: 240766818192088 [18:52:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185207&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228397&fm=240766818192088&tin=02508201610067®Number=0000000000091685&sum=20000 [18:52:04]Connected sock=11 [18:52:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 4F 8F 07 01 F4 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 57 F4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2D 7C 03 00 35 04 06 00 DA F9 E4 AC 0A D8 80 A8 9A DD 3D 44 46 E5 [18:52:04]written 0, free lines is 4095 [18:52:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 A6 ED 47 00 16 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2D 7C 03 00 F4 03 04 00 4E 9F 17 67 B6 04 01 00 00 67 38 6E 84 8A B3 FB 03 [18:52:04]CommunicateWithHost err = 0 [18:52:04]CheckOFDResponse [18:52:04]1017 (14) - 77093643461234 [18:52:04]1041 (16) - 0000000000871839 [18:52:04]1040 (4) - 228397 [18:52:04]1012 (4) - 22.10.2024 12:49 [18:52:04]1206 (1) - 0 [18:52:04]OFD Sender: Remove packet 228397 [18:52:04]ProducePacketName [18:52:04]name=ofd_packets/00228397 [18:52:04]NVStorageDeleteData [18:52:04]Write to MH i2c: 01 00 00 DF 6A 49 [18:52:04]Write i2c OK [18:52:04]MH_I2C_Read... [18:52:04]Read from MH i2c: 01 [18:52:04]MH_I2C_Read... [18:52:04]Read from MH i2c: 01 07 00 [18:52:04]MH_I2C_Read... [18:52:04]Read from MH i2c: 01 07 00 DF 6A 00 00 00 00 00 A9 0C 05 [18:52:04]RasterBufferAndPrint [18:52:04]line [18:52:04]line [18:52:04]line [18:52:04]line [18:52:04]line [18:52:04]written 0, free lines is 3246 [18:52:04]MH_Cut [18:52:04]Write to MH i2c: D1 01 00 E6 6A 01 22 [18:52:04]Write i2c OK [18:52:04]MH_I2C_Read... [18:52:04]Read from MH i2c: D1 [18:52:04]MH_I2C_Read... [18:52:04]Read from MH i2c: D1 01 00 [18:52:04]MH_I2C_Read... [18:52:04]Read from MH i2c: D1 01 00 E6 6A 00 21 [18:52:04]Write to MH i2c: 01 00 00 E7 6A 51 [18:52:04]Write i2c OK [18:52:04]MH_I2C_Read... [18:52:04]OFD Sender: No OFD packet to send [18:52:05]*** Cut start [18:52:05]*** Partial cut [18:52:05]*** CUTSNS_PIN = 1 [18:52:05]*** CUTSNS_PIN = 0 [18:52:05]*** Brake cut motor [18:52:06]Read from MH i2c: 01 [18:52:06]MH_I2C_Read... [18:52:06]*** Stop cut motor [18:52:06]*** Cut end [18:52:06]Read from MH i2c: 01 07 00 [18:52:06]MH_I2C_Read... [18:52:06]Read from MH i2c: 01 07 00 E7 6A 00 00 00 00 00 FF 0F 66 [18:52:06]process_action close_receipt done [18:52:06]requested_data is exist [18:52:06]produce_requested_data [18:52:06]requested_item fm.sn is exist - process it [18:52:06]wFMCommunicate request_size=4 [18:52:06]MH_SAM_APDU [18:52:06]CAPDU: 80 11 00 00 [18:52:06]Write to MH i2c: E2 08 00 E8 6A 80 11 00 00 00 00 00 00 CC [18:52:06]Write i2c OK [18:52:06]MH_I2C_Read... [18:52:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:06]Read from MH i2c: E2 [18:52:06]MH_I2C_Read... [18:52:06]Read from MH i2c: E2 17 00 [18:52:06]MH_I2C_Read... [18:52:06]Read from MH i2c: E2 17 00 E8 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 23 [18:52:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:52:06]wFMCommunicate OK [18:52:06]requested_item fd.num is exist - process it [18:52:06]SAM_PROTO_GetFieldsCounters [18:52:06]wFMCommunicate request_size=4 [18:52:06]MH_SAM_APDU [18:52:06]CAPDU: 80 13 00 00 [18:52:06]Write to MH i2c: E2 08 00 E9 6A 80 13 00 00 00 00 00 00 CF [18:52:06]Write i2c OK [18:52:06]MH_I2C_Read... [18:52:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:52:06]Read from MH i2c: E2 [18:52:06]MH_I2C_Read... [18:52:06]Read from MH i2c: E2 62 00 [18:52:06]MH_I2C_Read... [18:52:06]Read from MH i2c: E2 62 00 E9 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2D 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 FB [18:52:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2D 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:52:06]wFMCommunicate OK [18:52:06]SAM_PROTO_GetFieldsCounters done [18:52:06]requested_item shift.num is exist - process it [18:52:06]requested_item shift.opened is exist - process it [18:52:06]req_shift_opened [18:52:06]FM_GetShiftState [18:52:06]SAM_PROTO_GetShiftState [18:52:06]wFMCommunicate request_size=4 [18:52:06]MH_SAM_APDU [18:52:06]CAPDU: 80 13 01 00 [18:52:06]Write to MH i2c: E2 08 00 EA 6A 80 13 01 00 00 00 00 00 D1 [18:52:06]Write i2c OK [18:52:06]MH_I2C_Read... [18:52:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:06]Read from MH i2c: E2 [18:52:06]MH_I2C_Read... [18:52:06]Read from MH i2c: E2 0E 00 [18:52:06]MH_I2C_Read... [18:52:06]Read from MH i2c: E2 0E 00 EA 6A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 98 [18:52:06]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:52:06]wFMCommunicate OK [18:52:06]SAM_PROTO_GetShiftState done [18:52:06]FM_GetShiftState done [18:52:06]req_shift_opened done [18:52:06]requested_item shift.open_date is exist - process it [18:52:06]req_shift_open_date [18:52:06]req_shift_open_date done [18:52:06]produce_requested_data done [18:52:06]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228397,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [18:52:06]process_action_free close_receipt [18:52:06]json_value_free [18:52:06]json_value_free done [18:52:06]process_json_proto returns [18:52:06]Send response to host [18:52:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228397,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [18:52:06]free response buf [18:52:06]execute_script done [18:52:06]execute_script returns [18:52:06]free content buf [18:52:06]Sock 7.Close socket [18:52:06]Sock 7.Thread stoped [18:52:09]OFD Sender: No OFD packet to send [18:52:14]OFD Sender: No OFD packet to send [18:52:19]OFD Sender: No OFD packet to send [18:52:24]OFD Sender: No OFD packet to send [18:52:29]OFD Sender: No OFD packet to send [18:52:34]OFD Sender: No OFD packet to send [18:52:39]OFD Sender: No OFD packet to send [18:52:44]OFD Sender: No OFD packet to send [18:52:49]OFD Sender: No OFD packet to send [18:52:54]OFD Sender: No OFD packet to send [18:52:59]OFD Sender: No OFD packet to send [18:53:04]OFD Sender: No OFD packet to send [18:53:09]OFD Sender: No OFD packet to send [18:53:14]OFD Sender: No OFD packet to send [18:53:19]OFD Sender: No OFD packet to send [18:53:24]OFD Sender: No OFD packet to send [18:53:29]OFD Sender: No OFD packet to send [18:53:34]OFD Sender: No OFD packet to send [18:53:39]OFD Sender: No OFD packet to send [18:53:44]OFD Sender: No OFD packet to send [18:53:49]OFD Sender: No OFD packet to send [18:53:54]OFD Sender: No OFD packet to send [18:53:59]OFD Sender: No OFD packet to send [18:54:04]OFD Sender: No OFD packet to send [18:54:09]OFD Sender: No OFD packet to send [18:54:14]OFD Sender: No OFD packet to send [18:54:19]OFD Sender: No OFD packet to send [18:54:24]OFD Sender: No OFD packet to send [18:54:29]OFD Sender: No OFD packet to send [18:54:34]OFD Sender: No OFD packet to send [18:54:38]accept exits with 9 [18:54:38]New connection [18:54:38]New thread 3067137380 created [18:54:38]Thread 3066994020 joined [18:54:38]Waiting for new connection... [18:54:38] Sock 9.Parse request [18:54:38]Sock 9.Check first char [18:54:38]Sock 9.First char is OK [18:54:38]request: POST /json_proto HTTP/1.0 [18:54:38]Method: POST [18:54:38]URL: /json_proto [18:54:38]Method is POST - this is cgi request [18:54:38]url: /json_proto [18:54:38]query_string will be loaded in cgi processing [18:54:38]execute_cgi json_proto POST (null) [18:54:38]execute_cgi path=json_proto method=POST [18:54:38]POST find Content-Length [18:54:38]Host: 172.17.44.195:8080 [18:54:38]Content-Length: 683 [18:54:38]Content-Type: application/json [18:54:38] [18:54:38]POST finish read [18:54:38]Found Content-Length = 683 [18:54:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "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:54:38]execute_script... [18:54: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)1964950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "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:54:38]POST & json_proto [18:54:38]process_json_proto [18:54:38]json parsed OK: [18:54:38]protocol is kg_v1.0 [18:54:38]action value=close_receipt [18:54:38]process_action close_receipt [18:54:38]cmd_close_receipt [18:54:38]MH_GetDate [18:54:38]Write to MH i2c: F0 00 00 EB 6A 44 [18:54:38]Write i2c OK [18:54:38]MH_I2C_Read... [18:54:38]Read from MH i2c: F0 [18:54:38]MH_I2C_Read... [18:54:38]Read from MH i2c: F0 09 00 [18:54:38]MH_I2C_Read... [18:54:38]Read from MH i2c: F0 09 00 EB 6A 00 F4 F4 17 67 82 C9 CF 66 33 [18:54:38]GetLastDocTimeStamp 1729623127 [18:54:38]current date 1729623284 [18:54:38]FM_GetShiftState [18:54:38]SAM_PROTO_GetShiftState [18:54:38]wFMCommunicate request_size=4 [18:54:38]MH_SAM_APDU [18:54:38]CAPDU: 80 13 01 00 [18:54:38]Write to MH i2c: E2 08 00 EC 6A 80 13 01 00 00 00 00 00 D3 [18:54:38]Write i2c OK [18:54:38]MH_I2C_Read... [18:54:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:38]Read from MH i2c: E2 [18:54:38]MH_I2C_Read... [18:54:38]Read from MH i2c: E2 0E 00 [18:54:38]MH_I2C_Read... [18:54:38]Read from MH i2c: E2 0E 00 EC 6A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 9A [18:54:38]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:54:38]wFMCommunicate OK [18:54:38]SAM_PROTO_GetShiftState done [18:54:38]FM_GetShiftState done [18:54:38]opened in 1729555538 [18:54:38]opened+sec_in_day 1729641938 [18:54:38]quantity*price = 100015 [18:54:38]sum+1 = 100017 [18:54:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 362 22.10.2024 18:54 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228398 ФПД: 94448742541917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185444&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228398&fm=94448742541917&tin=02508201610067®Number=0000000000091685&sum=100000 [18:54:39]StoreToDocumentArchive [18:54:39]shift 535 fd 228398 [18:54:39]save to /storage/0535/doc_00228398 [18:54:39]save last doc name /storage/0535/doc_00228398 to /storage/kkm_last_doc_name [18:54:39]save OK [18:54:39]Clear old archive folders... [18:54:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:54:39]tlvbuf is 0098E160 [18:54:39]SAM_PROTO_ClearQueue [18:54:39]wFMCommunicate request_size=4 [18:54:39]MH_SAM_APDU [18:54:39]CAPDU: 80 09 00 00 [18:54:39]Write to MH i2c: E2 08 00 F9 6A 80 09 00 00 00 00 00 00 D5 [18:54:39]Write i2c OK [18:54:39]MH_I2C_Read... [18:54:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:39]Read from MH i2c: E2 [18:54:39]MH_I2C_Read... [18:54:39]Read from MH i2c: E2 03 00 [18:54:39]MH_I2C_Read... [18:54:39]Read from MH i2c: E2 03 00 F9 6A 00 90 00 D7 [18:54:39]RAPDU: 90 00 [18:54:39]wFMCommunicate OK [18:54:39]SAM_PROTO_ClearQueue done [18:54:39]KKMCreateOFDPacket [18:54:39]OFDProtocolAddRootSTLVToBuf [18:54:39]FM_MakeSignedData [18:54:39]FM_MakeSignedData [18:54:39]SAM_PROTO_SignData [18:54:39]wFMCommunicate request_size=4 [18:54:39]MH_SAM_APDU [18:54:39]CAPDU: 80 0D 01 02 [18:54:39]Write to MH i2c: E2 08 00 FA 6A 80 0D 01 02 00 00 00 00 DD [18:54:39]Write i2c OK [18:54:39]MH_I2C_Read... [18:54:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:39]OFD Sender: No OFD packet to send [18:54:39]Read from MH i2c: E2 [18:54:39]MH_I2C_Read... [18:54:39]Read from MH i2c: E2 03 00 [18:54:39]MH_I2C_Read... [18:54:39]Read from MH i2c: E2 03 00 FA 6A 00 90 00 D8 [18:54:39]RAPDU: 90 00 [18:54:39]wFMCommunicate OK [18:54:39]wFMCommunicate request_size=255 [18:54:39]MH_SAM_APDU [18:54: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 6A 01 00 00 F4 03 04 00 F4 F4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2E 7C 03 00 35 04 06 00 55 [18:54:39]Write to MH i2c: E2 02 01 FB 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 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 6A 01 00 00 F4 03 04 00 F4 F4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2E 7C 03 00 35 04 06 00 55 00 00 5A [18:54:39]Write i2c OK [18:54:39]MH_I2C_Read... [18:54:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:40]Read from MH i2c: E2 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 03 00 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 03 00 FB 6A 00 90 00 D9 [18:54:40]RAPDU: 90 00 [18:54:40]wFMCommunicate OK [18:54:40]wFMCommunicate request_size=10 [18:54:40]MH_SAM_APDU [18:54:40]CAPDU: 80 0D 02 02 05 E6 8F BF AA 5D [18:54:40]Write to MH i2c: E2 0D 00 FC 6A 80 0D 02 02 05 00 E6 8F BF AA 5D 00 00 25 [18:54:40]Write i2c OK [18:54:40]MH_I2C_Read... [18:54:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:40]Read from MH i2c: E2 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 03 00 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 03 00 FC 6A 00 90 00 DA [18:54:40]RAPDU: 90 00 [18:54:40]wFMCommunicate OK [18:54:40]wFMCommunicate request_size=4 [18:54:40]MH_SAM_APDU [18:54:40]CAPDU: 80 0D 03 02 [18:54:40]Write to MH i2c: E2 08 00 FD 6A 80 0D 03 02 00 00 00 00 E2 [18:54:40]Write i2c OK [18:54:40]MH_I2C_Read... [18:54:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:40]Read from MH i2c: E2 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 0B 00 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 0B 00 FD 6A 00 1F 9F 07 A6 49 09 E9 46 90 00 CF [18:54:40]RAPDU: 1F 9F 07 A6 49 09 E9 46 90 00 [18:54:40]wFMCommunicate OK [18:54:40]SAM_PROTO_SignData done [18:54:40]FM_MakeSignedData done [18:54:40]CreateOFDProtocolMessage [18:54:40]wFMCommunicate request_size=4 [18:54:40]MH_SAM_APDU [18:54:40]CAPDU: 80 11 00 00 [18:54:40]Write to MH i2c: E2 08 00 FE 6A 80 11 00 00 00 00 00 00 E2 [18:54:40]Write i2c OK [18:54:40]MH_I2C_Read... [18:54:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:40]Read from MH i2c: E2 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 17 00 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 17 00 FE 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 39 [18:54:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:54:40]wFMCommunicate OK [18:54:40]CreateOFDProtocolMessage done [18:54:40]OFDSenderStorePacket 228398 [18:54:40]StoreOFDPacket docnum=228398 [18:54:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 5F 78 07 01 BA 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 6A 01 00 00 F4 03 04 00 F4 F4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2E 7C 03 00 35 04 06 00 55 E6 8F BF AA 5D 1F 9F 07 A6 49 09 E9 46 [18:54:40]CheckFolder [18:54:40]dirname=/storage/ofd_packets [18:54:40]CheckFolder done [18:54:40]ProducePacketName [18:54:40]name=ofd_packets/00228398 [18:54:40]NVStorageSaveData ofd_packets/00228398 [18:54:40]File name is /storage/ofd_packets/00228398 [18:54:40]Write 301 bytes [18:54:40]NVStorageSaveData done [18:54:40]OFDSenderStorePacket done [18:54:40]KKMCreateOFDPacket done [18:54:40]NVStorageSaveData kkm_last_timestamp [18:54:40]File name is /storage/kkm_last_timestamp [18:54:40]Write 4 bytes [18:54:40]NVStorageSaveData done [18:54:40]ExternCall_PrintAddStr [18:54:40]wPrintStart [18:54:40]Write to MH i2c: 01 00 00 FF 6A 69 [18:54:40]Write i2c OK [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: 01 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: 01 07 00 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: 01 07 00 FF 6A 00 00 00 00 00 FF 0F 7E [18:54:40]RasterBufferAndPrint [18:54:40]line Счет N : (1)1964950 [18:54:40]line ИНН: 02508201610067 [18:54:40]line Контрольно-Кассовый Чек [18:54:40]line ПРОДАЖА [18:54:40]line ТРК (МРК, ГНК) : 33 [18:54:40]line Товар: 2710124130 [18:54:40]line Аи-92-К-5 [18:54:40]line 14.950 * 66.90 [18:54:40]line = 1000.16 [18:54:40]line НДС 12% НСП 1% [18:54:40]line > о реализуемом товаре [18:54:40]line ОКРУГЛЕНИЕ: -0.16 [18:54:40]line ИТОГО: 1000.00 [18:54:40]line Внесено: 1000.00 [18:54:40]line СДАЧА: 0.00 [18:54:40]line НСП 1% : 8.85 [18:54:40]line НДС 12% : 106.21 [18:54:40]line Наличными: 1000.00 [18:54:40]line Безнал.: 0.00 [18:54:40]line Место: АЗС № 133 "Партнер Нефть" [18:54:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:54:40]line СНО: Общий режим [18:54:40]line Чек 362 22.10.2024 18:54 [18:54:40]line Смена: 535 ФФД: 1.0 [18:54:40]line ЗНМ: 0300000091 [18:54:40]line РНМ: 0000000000091685 [18:54:40]line Версия ККМ: 001 [18:54:40]line ФМ: 0000000000871839 [18:54:40]line ФД: 228398 [18:54:40]line ФПД: 94448742541917 [18:54:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185444&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228398&fm=94448742541917&tin=02508201610067®Number=0000000000091685&sum=100000 [18:54:40]OFD Sender: Processing packet 228398 [packets to send 38, broken 37] [18:54:40]ProducePacketName [18:54:40]name=ofd_packets/00228398 [18:54:40]OFD Sender: To server: pG, [18:54:40]CommunicateWithHost lk.salyk.kg:30040 [18:54:40]ConnectInit lk.salyk.kg [18:54:40]written 0, free lines is 4095 [18:54:40]Connected sock=10 [18:54:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 5F 78 07 01 BA 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 6A 01 00 00 F4 03 04 00 F4 F4 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2E 7C 03 00 35 04 06 00 55 E6 8F BF AA 5D 1F 9F 07 A6 49 09 E9 46 [18:54:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 5D C2 47 00 68 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2E 7C 03 00 F4 03 04 00 EB 9F 17 67 B6 04 01 00 00 CF 0E 57 88 A3 4A 70 07 [18:54:41]CommunicateWithHost err = 0 [18:54:41]CheckOFDResponse [18:54:41]1017 (14) - 77093643461234 [18:54:41]1041 (16) - 0000000000871839 [18:54:41]1040 (4) - 228398 [18:54:41]1012 (4) - 22.10.2024 12:51 [18:54:41]1206 (1) - 0 [18:54:41]OFD Sender: Remove packet 228398 [18:54:41]ProducePacketName [18:54:41]name=ofd_packets/00228398 [18:54:41]NVStorageDeleteData [18:54:41]Write to MH i2c: 01 00 00 29 6B 94 [18:54:41]Write i2c OK [18:54:41]MH_I2C_Read... [18:54:41]Read from MH i2c: 01 [18:54:41]MH_I2C_Read... [18:54:41]Read from MH i2c: 01 07 00 [18:54:41]MH_I2C_Read... [18:54:41]Read from MH i2c: 01 07 00 29 6B 00 00 00 00 00 AE 0C 55 [18:54:41]RasterBufferAndPrint [18:54:41]line [18:54:41]line [18:54:41]line [18:54:41]line [18:54:41]line [18:54:41]written 0, free lines is 3250 [18:54:41]MH_Cut [18:54:41]Write to MH i2c: D1 01 00 30 6B 01 6D [18:54:41]Write i2c OK [18:54:41]MH_I2C_Read... [18:54:41]Read from MH i2c: D1 [18:54:41]MH_I2C_Read... [18:54:41]Read from MH i2c: D1 01 00 [18:54:41]MH_I2C_Read... [18:54:41]Read from MH i2c: D1 01 00 30 6B 00 6C [18:54:41]Write to MH i2c: 01 00 00 31 6B 9C [18:54:41]Write i2c OK [18:54:41]MH_I2C_Read... [18:54:41]OFD Sender: No OFD packet to send [18:54:42]*** Cut start [18:54:42]*** Partial cut [18:54:42]*** CUTSNS_PIN = 1 [18:54:42]*** CUTSNS_PIN = 0 [18:54:42]*** Brake cut motor [18:54:42]Read from MH i2c: 01 [18:54:42]MH_I2C_Read... [18:54:42]*** Stop cut motor [18:54:42]*** Cut end [18:54:42]Read from MH i2c: 01 07 00 [18:54:42]MH_I2C_Read... [18:54:42]Read from MH i2c: 01 07 00 31 6B 00 00 00 00 00 FF 0F B1 [18:54:42]process_action close_receipt done [18:54:42]requested_data is exist [18:54:42]produce_requested_data [18:54:42]requested_item fm.sn is exist - process it [18:54:42]wFMCommunicate request_size=4 [18:54:42]MH_SAM_APDU [18:54:42]CAPDU: 80 11 00 00 [18:54:42]Write to MH i2c: E2 08 00 32 6B 80 11 00 00 00 00 00 00 17 [18:54:42]Write i2c OK [18:54:42]MH_I2C_Read... [18:54:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:42]Read from MH i2c: E2 [18:54:42]MH_I2C_Read... [18:54:42]Read from MH i2c: E2 17 00 [18:54:42]MH_I2C_Read... [18:54:42]Read from MH i2c: E2 17 00 32 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6E [18:54:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:54:42]wFMCommunicate OK [18:54:42]requested_item fd.num is exist - process it [18:54:42]SAM_PROTO_GetFieldsCounters [18:54:42]wFMCommunicate request_size=4 [18:54:42]MH_SAM_APDU [18:54:42]CAPDU: 80 13 00 00 [18:54:42]Write to MH i2c: E2 08 00 33 6B 80 13 00 00 00 00 00 00 1A [18:54:42]Write i2c OK [18:54:42]MH_I2C_Read... [18:54:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:42]Read from MH i2c: E2 [18:54:42]MH_I2C_Read... [18:54:42]Read from MH i2c: E2 62 00 [18:54:42]MH_I2C_Read... [18:54:42]Read from MH i2c: E2 62 00 33 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2E 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 6A 01 00 00 5E 04 04 00 6A 01 00 00 57 04 04 00 6B 01 00 00 19 04 04 00 00 00 00 00 90 00 4A [18:54:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2E 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 6A 01 00 00 5E 04 04 00 6A 01 00 00 57 04 04 00 6B 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:54:42]wFMCommunicate OK [18:54:42]SAM_PROTO_GetFieldsCounters done [18:54:42]requested_item shift.num is exist - process it [18:54:42]requested_item shift.opened is exist - process it [18:54:42]req_shift_opened [18:54:42]FM_GetShiftState [18:54:42]SAM_PROTO_GetShiftState [18:54:42]wFMCommunicate request_size=4 [18:54:42]MH_SAM_APDU [18:54:42]CAPDU: 80 13 01 00 [18:54:42]Write to MH i2c: E2 08 00 34 6B 80 13 01 00 00 00 00 00 1C [18:54:42]Write i2c OK [18:54:42]MH_I2C_Read... [18:54:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:42]Read from MH i2c: E2 [18:54:42]MH_I2C_Read... [18:54:42]Read from MH i2c: E2 0E 00 [18:54:42]MH_I2C_Read... [18:54:42]Read from MH i2c: E2 0E 00 34 6B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 E3 [18:54:42]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:54:42]wFMCommunicate OK [18:54:42]SAM_PROTO_GetShiftState done [18:54:42]FM_GetShiftState done [18:54:42]req_shift_opened done [18:54:42]requested_item shift.open_date is exist - process it [18:54:42]req_shift_open_date [18:54:42]req_shift_open_date done [18:54:42]produce_requested_data done [18:54:42]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228398,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [18:54:42]process_action_free close_receipt [18:54:42]json_value_free [18:54:42]json_value_free done [18:54:42]process_json_proto returns [18:54:42]Send response to host [18:54:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228398,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [18:54:42]free response buf [18:54:42]execute_script done [18:54:42]execute_script returns [18:54:42]free content buf [18:54:42]Sock 9.Close socket [18:54:42]Sock 9.Thread stoped [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:54:57]accept exits with 7 [18:54:57]New connection [18:54:57]New thread 3066994020 created [18:54:57]Thread 3067137380 joined [18:54:57]Waiting for new connection... [18:54:57] Sock 7.Parse request [18:54:57]Sock 7.Check first char [18:54:57]Sock 7.First char is OK [18:54:57]request: POST /json_proto HTTP/1.0 [18:54:57]Method: POST [18:54:57]URL: /json_proto [18:54:57]Method is POST - this is cgi request [18:54:57]url: /json_proto [18:54:57]query_string will be loaded in cgi processing [18:54:57]execute_cgi json_proto POST (null) [18:54:57]execute_cgi path=json_proto method=POST [18:54:57]POST find Content-Length [18:54:57]Host: 172.17.44.195:8080 [18:54:57]Content-Length: 678 [18:54:57]Content-Type: application/json [18:54:57] [18:54:57]POST finish read [18:54:57]Found Content-Length = 678 [18:54:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964952", "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" : 66.90, "quantity" : 5.980, "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" ] } } [18:54:57]execute_script... [18: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)1964952", "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" : 66.90, "quantity" : 5.980, "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" ] } } [18:54:57]POST & json_proto [18:54:57]process_json_proto [18:54:57]json parsed OK: [18:54:57]protocol is kg_v1.0 [18:54:57]action value=close_receipt [18:54:57]process_action close_receipt [18:54:57]cmd_close_receipt [18:54:57]MH_GetDate [18:54:57]Write to MH i2c: F0 00 00 35 6B 8F [18:54:57]Write i2c OK [18:54:57]MH_I2C_Read... [18:54:57]Read from MH i2c: F0 [18:54:57]MH_I2C_Read... [18:54:57]Read from MH i2c: F0 09 00 [18:54:57]MH_I2C_Read... [18:54:57]Read from MH i2c: F0 09 00 35 6B 00 07 F5 17 67 82 C9 CF 66 92 [18:54:57]GetLastDocTimeStamp 1729623284 [18:54:57]current date 1729623303 [18:54:57]FM_GetShiftState [18:54:57]SAM_PROTO_GetShiftState [18:54:57]wFMCommunicate request_size=4 [18:54:57]MH_SAM_APDU [18:54:57]CAPDU: 80 13 01 00 [18:54:57]Write to MH i2c: E2 08 00 36 6B 80 13 01 00 00 00 00 00 1E [18:54:57]Write i2c OK [18:54:57]MH_I2C_Read... [18:54:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:57]Read from MH i2c: E2 [18:54:57]MH_I2C_Read... [18:54:57]Read from MH i2c: E2 0E 00 [18:54:57]MH_I2C_Read... [18:54:57]Read from MH i2c: E2 0E 00 36 6B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 E5 [18:54:57]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:54:57]wFMCommunicate OK [18:54:57]SAM_PROTO_GetShiftState done [18:54:57]FM_GetShiftState done [18:54:57]opened in 1729555538 [18:54:57]opened+sec_in_day 1729641938 [18:54:57]quantity*price = 40006 [18:54:57]sum+1 = 40007 [18:54:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 363 22.10.2024 18:55 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228399 ФПД: 262766037729742 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185503&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228399&fm=262766037729742&tin=02508201610067®Number=0000000000091685&sum=40000 [18:54:58]StoreToDocumentArchive [18:54:58]shift 535 fd 228399 [18:54:58]save to /storage/0535/doc_00228399 [18:54:58]save last doc name /storage/0535/doc_00228399 to /storage/kkm_last_doc_name [18:54:58]save OK [18:54:58]Clear old archive folders... [18:54:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:54:58]tlvbuf is 00A85E40 [18:54:58]SAM_PROTO_ClearQueue [18:54:58]wFMCommunicate request_size=4 [18:54:58]MH_SAM_APDU [18:54:58]CAPDU: 80 09 00 00 [18:54:58]Write to MH i2c: E2 08 00 43 6B 80 09 00 00 00 00 00 00 20 [18:54:58]Write i2c OK [18:54:58]MH_I2C_Read... [18:54:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:58]Read from MH i2c: E2 [18:54:58]MH_I2C_Read... [18:54:58]Read from MH i2c: E2 03 00 [18:54:58]MH_I2C_Read... [18:54:58]Read from MH i2c: E2 03 00 43 6B 00 90 00 22 [18:54:58]RAPDU: 90 00 [18:54:58]wFMCommunicate OK [18:54:58]SAM_PROTO_ClearQueue done [18:54:58]KKMCreateOFDPacket [18:54:58]OFDProtocolAddRootSTLVToBuf [18:54:58]FM_MakeSignedData [18:54:58]FM_MakeSignedData [18:54:58]SAM_PROTO_SignData [18:54:58]wFMCommunicate request_size=4 [18:54:58]MH_SAM_APDU [18:54:58]CAPDU: 80 0D 01 02 [18:54:58]Write to MH i2c: E2 08 00 44 6B 80 0D 01 02 00 00 00 00 28 [18:54:58]Write i2c OK [18:54:58]MH_I2C_Read... [18:54:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:58]Read from MH i2c: E2 [18:54:58]MH_I2C_Read... [18:54:58]Read from MH i2c: E2 03 00 [18:54:58]MH_I2C_Read... [18:54:58]Read from MH i2c: E2 03 00 44 6B 00 90 00 23 [18:54:58]RAPDU: 90 00 [18:54:58]wFMCommunicate OK [18:54:58]wFMCommunicate request_size=255 [18:54:58]MH_SAM_APDU [18:54: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 6B 01 00 00 F4 03 04 00 07 F5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2F 7C 03 00 35 04 06 00 EE [18:54:58]Write to MH i2c: E2 02 01 45 6B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 22 1A 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 6B 01 00 00 F4 03 04 00 07 F5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2F 7C 03 00 35 04 06 00 EE 00 00 29 [18:54:58]Write i2c OK [18:54:58]MH_I2C_Read... [18:54:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:59]Read from MH i2c: E2 [18:54:59]MH_I2C_Read... [18:54:59]Read from MH i2c: E2 03 00 [18:54:59]MH_I2C_Read... [18:54:59]Read from MH i2c: E2 03 00 45 6B 00 90 00 24 [18:54:59]RAPDU: 90 00 [18:54:59]wFMCommunicate OK [18:54:59]wFMCommunicate request_size=10 [18:54:59]MH_SAM_APDU [18:54:59]CAPDU: 80 0D 02 02 05 FB FC 56 81 CE [18:54:59]Write to MH i2c: E2 0D 00 46 6B 80 0D 02 02 05 00 FB FC 56 81 CE 00 00 D1 [18:54:59]Write i2c OK [18:54:59]MH_I2C_Read... [18:54:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:59]Read from MH i2c: E2 [18:54:59]MH_I2C_Read... [18:54:59]Read from MH i2c: E2 03 00 [18:54:59]MH_I2C_Read... [18:54:59]Read from MH i2c: E2 03 00 46 6B 00 90 00 25 [18:54:59]RAPDU: 90 00 [18:54:59]wFMCommunicate OK [18:54:59]wFMCommunicate request_size=4 [18:54:59]MH_SAM_APDU [18:54:59]CAPDU: 80 0D 03 02 [18:54:59]Write to MH i2c: E2 08 00 47 6B 80 0D 03 02 00 00 00 00 2D [18:54:59]Write i2c OK [18:54:59]MH_I2C_Read... [18:54:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:59]Read from MH i2c: E2 [18:54:59]MH_I2C_Read... [18:54:59]Read from MH i2c: E2 0B 00 [18:54:59]MH_I2C_Read... [18:54:59]Read from MH i2c: E2 0B 00 47 6B 00 E4 90 A9 2E 1B 23 AF 42 90 00 A8 [18:54:59]RAPDU: E4 90 A9 2E 1B 23 AF 42 90 00 [18:54:59]wFMCommunicate OK [18:54:59]SAM_PROTO_SignData done [18:54:59]FM_MakeSignedData done [18:54:59]CreateOFDProtocolMessage [18:54:59]wFMCommunicate request_size=4 [18:54:59]MH_SAM_APDU [18:54:59]CAPDU: 80 11 00 00 [18:54:59]Write to MH i2c: E2 08 00 48 6B 80 11 00 00 00 00 00 00 2D [18:54:59]Write i2c OK [18:54:59]MH_I2C_Read... [18:54:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:59]Read from MH i2c: E2 [18:54:59]MH_I2C_Read... [18:54:59]Read from MH i2c: E2 17 00 [18:54:59]MH_I2C_Read... [18:54:59]Read from MH i2c: E2 17 00 48 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 84 [18:54:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:54:59]wFMCommunicate OK [18:54:59]CreateOFDProtocolMessage done [18:54:59]OFDSenderStorePacket 228399 [18:54:59]StoreOFDPacket docnum=228399 [18:54:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 F8 E3 07 01 E4 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 6B 01 00 00 F4 03 04 00 07 F5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2F 7C 03 00 35 04 06 00 EE FB FC 56 81 CE E4 90 A9 2E 1B 23 AF 42 [18:54:59]CheckFolder [18:54:59]dirname=/storage/ofd_packets [18:54:59]CheckFolder done [18:54:59]ProducePacketName [18:54:59]name=ofd_packets/00228399 [18:54:59]NVStorageSaveData ofd_packets/00228399 [18:54:59]File name is /storage/ofd_packets/00228399 [18:54:59]Write 301 bytes [18:54:59]NVStorageSaveData done [18:54:59]OFDSenderStorePacket done [18:54:59]KKMCreateOFDPacket done [18:54:59]NVStorageSaveData kkm_last_timestamp [18:54:59]File name is /storage/kkm_last_timestamp [18:54:59]Write 4 bytes [18:54:59]NVStorageSaveData done [18:54:59]ExternCall_PrintAddStr [18:54:59]wPrintStart [18:54:59]Write to MH i2c: 01 00 00 49 6B B4 [18:54:59]Write i2c OK [18:54:59]MH_I2C_Read... [18:54:59]Read from MH i2c: 01 [18:54:59]MH_I2C_Read... [18:54:59]Read from MH i2c: 01 07 00 [18:54:59]MH_I2C_Read... [18:54:59]Read from MH i2c: 01 07 00 49 6B 00 00 00 00 00 FF 0F C9 [18:54:59]RasterBufferAndPrint [18:54:59]line Счет N : (1)1964952 [18:54:59]line ИНН: 02508201610067 [18:54:59]line Контрольно-Кассовый Чек [18:54:59]line ПРОДАЖА [18:54:59]line ТРК (МРК, ГНК) : 63 [18:54:59]line Товар: 2710124130 [18:54:59]line Аи-92-К-5 [18:54:59]line 5.980 * 66.90 [18:54:59]line = 400.06 [18:54:59]line НДС 12% НСП 1% [18:54:59]line > о реализуемом товаре [18:54:59]line ОКРУГЛЕНИЕ: -0.06 [18:54:59]line ИТОГО: 400.00 [18:54:59]line Внесено: 400.00 [18:54:59]line СДАЧА: 0.00 [18:54:59]line НСП 1% : 3.54 [18:54:59]line НДС 12% : 42.48 [18:54:59]line Наличными: 400.00 [18:54:59]line Безнал.: 0.00 [18:54:59]line Место: АЗС № 133 "Партнер Нефть" [18:54:59]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:54:59]line СНО: Общий режим [18:54:59]line Чек 363 22.10.2024 18:55 [18:54:59]line Смена: 535 ФФД: 1.0 [18:54:59]line ЗНМ: 0300000091 [18:54:59]line РНМ: 0000000000091685 [18:54:59]line Версия ККМ: 001 [18:54:59]line ФМ: 0000000000871839 [18:54:59]line ФД: 228399 [18:54:59]line ФПД: 262766037729742 [18:54:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185503&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228399&fm=262766037729742&tin=02508201610067®Number=0000000000091685&sum=40000 [18:54:59]written 0, free lines is 4095 [18:54:59]OFD Sender: Processing packet 228399 [packets to send 38, broken 37] [18:54:59]ProducePacketName [18:54:59]name=ofd_packets/00228399 [18:54:59]OFD Sender: To server: pG, [18:54:59]CommunicateWithHost lk.salyk.kg:30040 [18:54:59]ConnectInit lk.salyk.kg [18:54:59]Connected sock=11 [18:54:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 F8 E3 07 01 E4 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 6B 01 00 00 F4 03 04 00 07 F5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2F 7C 03 00 35 04 06 00 EE FB FC 56 81 CE E4 90 A9 2E 1B 23 AF 42 [18:54:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 6F BE 47 00 35 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 38 37 31 38 33 39 10 04 04 00 2F 7C 03 00 F4 03 04 00 FE 9F 17 67 B6 04 01 00 00 C3 34 0A EB F1 33 46 10 [18:54:59]CommunicateWithHost err = 0 [18:54:59]CheckOFDResponse [18:54:59]1017 (14) - 77093643461234 [18:54:59]1041 (16) - 0000000000871839 [18:54:59]1040 (4) - 228399 [18:54:59]1012 (4) - 22.10.2024 12:52 [18:54:59]1206 (1) - 0 [18:54:59]OFD Sender: Remove packet 228399 [18:54:59]ProducePacketName [18:54:59]name=ofd_packets/00228399 [18:54:59]NVStorageDeleteData [18:54:59]Write to MH i2c: 01 00 00 73 6B DE [18:54:59]Write i2c OK [18:54:59]MH_I2C_Read... [18:54:59]Read from MH i2c: 01 [18:54:59]MH_I2C_Read... [18:54:59]Read from MH i2c: 01 07 00 [18:54:59]MH_I2C_Read... [18:54:59]Read from MH i2c: 01 07 00 73 6B 00 00 00 00 00 B2 0C A3 [18:54:59]RasterBufferAndPrint [18:54:59]line [18:54:59]line [18:54:59]line [18:54:59]line [18:54:59]line [18:54:59]written 0, free lines is 3254 [18:54:59]MH_Cut [18:54:59]Write to MH i2c: D1 01 00 7A 6B 01 B7 [18:54:59]Write i2c OK [18:54:59]MH_I2C_Read... [18:54:59]Read from MH i2c: D1 [18:54:59]MH_I2C_Read... [18:54:59]Read from MH i2c: D1 01 00 [18:54:59]MH_I2C_Read... [18:54:59]Read from MH i2c: D1 01 00 7A 6B 00 B6 [18:54:59]Write to MH i2c: 01 00 00 7B 6B E6 [18:54:59]Write i2c OK [18:54:59]MH_I2C_Read... [18:55:00]OFD Sender: No OFD packet to send [18:55:00]*** Cut start [18:55:00]*** Partial cut [18:55:00]*** CUTSNS_PIN = 1 [18:55:00]*** CUTSNS_PIN = 0 [18:55:00]*** Brake cut motor [18:55:01]Read from MH i2c: 01 [18:55:01]MH_I2C_Read... [18:55:01]*** Stop cut motor [18:55:01]*** Cut end [18:55:01]Read from MH i2c: 01 07 00 [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: 01 07 00 7B 6B 00 00 00 00 00 FF 0F FB [18:55:01]process_action close_receipt done [18:55:01]requested_data is exist [18:55:01]produce_requested_data [18:55:01]requested_item fm.sn is exist - process it [18:55:01]wFMCommunicate request_size=4 [18:55:01]MH_SAM_APDU [18:55:01]CAPDU: 80 11 00 00 [18:55:01]Write to MH i2c: E2 08 00 7C 6B 80 11 00 00 00 00 00 00 61 [18:55:01]Write i2c OK [18:55:01]MH_I2C_Read... [18:55:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:01]Read from MH i2c: E2 [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: E2 17 00 [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: E2 17 00 7C 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B8 [18:55:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:55:01]wFMCommunicate OK [18:55:01]requested_item fd.num is exist - process it [18:55:01]SAM_PROTO_GetFieldsCounters [18:55:01]wFMCommunicate request_size=4 [18:55:01]MH_SAM_APDU [18:55:01]CAPDU: 80 13 00 00 [18:55:01]Write to MH i2c: E2 08 00 7D 6B 80 13 00 00 00 00 00 00 64 [18:55:01]Write i2c OK [18:55:01]MH_I2C_Read... [18:55:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:55:01]Read from MH i2c: E2 [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: E2 62 00 [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: E2 62 00 7D 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2F 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 6B 01 00 00 5E 04 04 00 6B 01 00 00 57 04 04 00 6C 01 00 00 19 04 04 00 00 00 00 00 90 00 98 [18:55:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2F 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 6B 01 00 00 5E 04 04 00 6B 01 00 00 57 04 04 00 6C 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:55:01]wFMCommunicate OK [18:55:01]SAM_PROTO_GetFieldsCounters done [18:55:01]requested_item shift.num is exist - process it [18:55:01]requested_item shift.opened is exist - process it [18:55:01]req_shift_opened [18:55:01]FM_GetShiftState [18:55:01]SAM_PROTO_GetShiftState [18:55:01]wFMCommunicate request_size=4 [18:55:01]MH_SAM_APDU [18:55:01]CAPDU: 80 13 01 00 [18:55:01]Write to MH i2c: E2 08 00 7E 6B 80 13 01 00 00 00 00 00 66 [18:55:01]Write i2c OK [18:55:01]MH_I2C_Read... [18:55:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:01]Read from MH i2c: E2 [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: E2 0E 00 [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: E2 0E 00 7E 6B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 2D [18:55:01]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:55:01]wFMCommunicate OK [18:55:01]SAM_PROTO_GetShiftState done [18:55:01]FM_GetShiftState done [18:55:01]req_shift_opened done [18:55:01]requested_item shift.open_date is exist - process it [18:55:01]req_shift_open_date [18:55:01]req_shift_open_date done [18:55:01]produce_requested_data done [18:55:01]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228399,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [18:55:01]process_action_free close_receipt [18:55:01]json_value_free [18:55:01]json_value_free done [18:55:01]process_json_proto returns [18:55:01]Send response to host [18:55:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228399,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [18:55:01]free response buf [18:55:01]execute_script done [18:55:01]execute_script returns [18:55:01]free content buf [18:55:01]Sock 7.Close socket [18:55:01]Sock 7.Thread stoped [18:55:05]OFD Sender: No OFD packet to send [18:55:10]OFD Sender: No OFD packet to send [18:55:15]OFD Sender: No OFD packet to send [18:55:20]OFD Sender: No OFD packet to send [18:55:25]OFD Sender: No OFD packet to send [18:55:30]OFD Sender: No OFD packet to send [18:55:35]OFD Sender: No OFD packet to send [18:55:40]OFD Sender: No OFD packet to send [18:55:45]OFD Sender: No OFD packet to send [18:55:50]OFD Sender: No OFD packet to send [18:55:55]OFD Sender: No OFD packet to send [18:56:00]OFD Sender: No OFD packet to send [18:56:05]OFD Sender: No OFD packet to send [18:56:10]OFD Sender: No OFD packet to send [18:56:15]OFD Sender: No OFD packet to send [18:56:20]OFD Sender: No OFD packet to send [18:56:25]OFD Sender: No OFD packet to send [18:56:30]OFD Sender: No OFD packet to send [18:56:35]OFD Sender: No OFD packet to send [18:56:40]OFD Sender: No OFD packet to send [18:56:45]OFD Sender: No OFD packet to send [18:56:50]OFD Sender: No OFD packet to send [18:56:55]OFD Sender: No OFD packet to send [18:57:00]OFD Sender: No OFD packet to send [18:57:05]OFD Sender: No OFD packet to send [18:57:10]OFD Sender: No OFD packet to send [18:57:14]accept exits with 9 [18:57:14]New connection [18:57:14]New thread 3067137380 created [18:57:14]Thread 3066994020 joined [18:57:14]Waiting for new connection... [18:57:14] Sock 9.Parse request [18:57:14]Sock 9.Check first char [18:57:14]Sock 9.First char is OK [18:57:14]request: POST /json_proto HTTP/1.0 [18:57:14]Method: POST [18:57:14]URL: /json_proto [18:57:14]Method is POST - this is cgi request [18:57:14]url: /json_proto [18:57:14]query_string will be loaded in cgi processing [18:57:14]execute_cgi json_proto POST (null) [18:57:14]execute_cgi path=json_proto method=POST [18:57:14]POST find Content-Length [18:57:14]Host: 172.17.44.195:8080 [18:57:14]Content-Length: 683 [18:57:14]Content-Type: application/json [18:57:14] [18:57:14]POST finish read [18:57:14]Found Content-Length = 683 [18:57:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [18:57:14]execute_script... [18:57: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)1964953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [18:57:14]POST & json_proto [18:57:14]process_json_proto [18:57:14]json parsed OK: [18:57:14]protocol is kg_v1.0 [18:57:14]action value=close_receipt [18:57:14]process_action close_receipt [18:57:14]cmd_close_receipt [18:57:14]MH_GetDate [18:57:14]Write to MH i2c: F0 00 00 7F 6B D9 [18:57:14]Write i2c OK [18:57:14]MH_I2C_Read... [18:57:14]Read from MH i2c: F0 [18:57:14]MH_I2C_Read... [18:57:14]Read from MH i2c: F0 09 00 [18:57:14]MH_I2C_Read... [18:57:14]Read from MH i2c: F0 09 00 7F 6B 00 90 F5 17 67 82 C9 CF 66 65 [18:57:14]GetLastDocTimeStamp 1729623303 [18:57:14]current date 1729623440 [18:57:14]FM_GetShiftState [18:57:14]SAM_PROTO_GetShiftState [18:57:14]wFMCommunicate request_size=4 [18:57:14]MH_SAM_APDU [18:57:14]CAPDU: 80 13 01 00 [18:57:14]Write to MH i2c: E2 08 00 80 6B 80 13 01 00 00 00 00 00 68 [18:57:14]Write i2c OK [18:57:14]MH_I2C_Read... [18:57:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:14]Read from MH i2c: E2 [18:57:14]MH_I2C_Read... [18:57:14]Read from MH i2c: E2 0E 00 [18:57:14]MH_I2C_Read... [18:57:14]Read from MH i2c: E2 0E 00 80 6B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 2F [18:57:14]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:57:14]wFMCommunicate OK [18:57:14]SAM_PROTO_GetShiftState done [18:57:14]FM_GetShiftState done [18:57:14]opened in 1729555538 [18:57:14]opened+sec_in_day 1729641938 [18:57:14]quantity*price = 150056 [18:57:14]sum+1 = 150058 [18:57:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 364 22.10.2024 18:57 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228400 ФПД: 85322238144301 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185720&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228400&fm=85322238144301&tin=02508201610067®Number=0000000000091685&sum=150000 [18:57:16]StoreToDocumentArchive [18:57:16]shift 535 fd 228400 [18:57:16]save to /storage/0535/doc_00228400 [18:57:16]save last doc name /storage/0535/doc_00228400 to /storage/kkm_last_doc_name [18:57:16]save OK [18:57:16]Clear old archive folders... [18:57:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:57:16]tlvbuf is 00875CC0 [18:57:16]SAM_PROTO_ClearQueue [18:57:16]wFMCommunicate request_size=4 [18:57:16]MH_SAM_APDU [18:57:16]CAPDU: 80 09 00 00 [18:57:16]Write to MH i2c: E2 08 00 8D 6B 80 09 00 00 00 00 00 00 6A [18:57:16]Write i2c OK [18:57:16]MH_I2C_Read... [18:57:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:16]Read from MH i2c: E2 [18:57:16]MH_I2C_Read... [18:57:16]Read from MH i2c: E2 03 00 [18:57:16]MH_I2C_Read... [18:57:16]Read from MH i2c: E2 03 00 8D 6B 00 90 00 6C [18:57:16]RAPDU: 90 00 [18:57:16]wFMCommunicate OK [18:57:16]SAM_PROTO_ClearQueue done [18:57:16]KKMCreateOFDPacket [18:57:16]OFDProtocolAddRootSTLVToBuf [18:57:16]FM_MakeSignedData [18:57:16]FM_MakeSignedData [18:57:16]SAM_PROTO_SignData [18:57:16]wFMCommunicate request_size=4 [18:57:16]MH_SAM_APDU [18:57:16]CAPDU: 80 0D 01 02 [18:57:16]Write to MH i2c: E2 08 00 8E 6B 80 0D 01 02 00 00 00 00 72 [18:57:16]Write i2c OK [18:57:16]MH_I2C_Read... [18:57:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:16]Read from MH i2c: E2 [18:57:16]MH_I2C_Read... [18:57:16]Read from MH i2c: E2 03 00 [18:57:16]MH_I2C_Read... [18:57:16]Read from MH i2c: E2 03 00 8E 6B 00 90 00 6D [18:57:16]RAPDU: 90 00 [18:57:16]wFMCommunicate OK [18:57:16]wFMCommunicate request_size=255 [18:57:16]MH_SAM_APDU [18:57: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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 90 F5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 30 7C 03 00 35 04 06 00 4D [18:57:16]Write to MH i2c: E2 02 01 8F 6B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 90 F5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 30 7C 03 00 35 04 06 00 4D 00 00 D7 [18:57:16]Write i2c OK [18:57:16]MH_I2C_Read... [18:57:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:16]Read from MH i2c: E2 [18:57:16]MH_I2C_Read... [18:57:16]Read from MH i2c: E2 03 00 [18:57:16]MH_I2C_Read... [18:57:16]Read from MH i2c: E2 03 00 8F 6B 00 90 00 6E [18:57:16]RAPDU: 90 00 [18:57:16]wFMCommunicate OK [18:57:16]wFMCommunicate request_size=10 [18:57:16]MH_SAM_APDU [18:57:16]CAPDU: 80 0D 02 02 05 99 A1 B2 2F 2D [18:57:16]Write to MH i2c: E2 0D 00 90 6B 80 0D 02 02 05 00 99 A1 B2 2F 2D 00 00 C7 [18:57:16]Write i2c OK [18:57:16]MH_I2C_Read... [18:57:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:16]Read from MH i2c: E2 [18:57:16]MH_I2C_Read... [18:57:16]Read from MH i2c: E2 03 00 [18:57:16]MH_I2C_Read... [18:57:16]Read from MH i2c: E2 03 00 90 6B 00 90 00 6F [18:57:16]RAPDU: 90 00 [18:57:16]wFMCommunicate OK [18:57:16]wFMCommunicate request_size=4 [18:57:16]MH_SAM_APDU [18:57:16]CAPDU: 80 0D 03 02 [18:57:16]Write to MH i2c: E2 08 00 91 6B 80 0D 03 02 00 00 00 00 77 [18:57:16]Write i2c OK [18:57:16]MH_I2C_Read... [18:57:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:16]Read from MH i2c: E2 [18:57:16]MH_I2C_Read... [18:57:16]Read from MH i2c: E2 0B 00 [18:57:16]MH_I2C_Read... [18:57:16]Read from MH i2c: E2 0B 00 91 6B 00 6E 15 3C BD A7 B1 7F 5C 90 00 27 [18:57:16]RAPDU: 6E 15 3C BD A7 B1 7F 5C 90 00 [18:57:16]wFMCommunicate OK [18:57:16]SAM_PROTO_SignData done [18:57:16]FM_MakeSignedData done [18:57:16]CreateOFDProtocolMessage [18:57:16]wFMCommunicate request_size=4 [18:57:16]MH_SAM_APDU [18:57:16]CAPDU: 80 11 00 00 [18:57:16]Write to MH i2c: E2 08 00 92 6B 80 11 00 00 00 00 00 00 77 [18:57:16]Write i2c OK [18:57:16]MH_I2C_Read... [18:57:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:16]Read from MH i2c: E2 [18:57:16]MH_I2C_Read... [18:57:16]Read from MH i2c: E2 17 00 [18:57:16]MH_I2C_Read... [18:57:16]Read from MH i2c: E2 17 00 92 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CE [18:57:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:57:16]wFMCommunicate OK [18:57:16]CreateOFDProtocolMessage done [18:57:16]OFDSenderStorePacket 228400 [18:57:16]StoreOFDPacket docnum=228400 [18:57:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 7B ED 07 01 5A 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 90 F5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 30 7C 03 00 35 04 06 00 4D 99 A1 B2 2F 2D 6E 15 3C BD A7 B1 7F 5C [18:57:16]CheckFolder [18:57:16]dirname=/storage/ofd_packets [18:57:16]CheckFolder done [18:57:16]ProducePacketName [18:57:16]name=ofd_packets/00228400 [18:57:16]NVStorageSaveData ofd_packets/00228400 [18:57:16]File name is /storage/ofd_packets/00228400 [18:57:16]Write 301 bytes [18:57:16]NVStorageSaveData done [18:57:16]OFDSenderStorePacket done [18:57:16]KKMCreateOFDPacket done [18:57:16]NVStorageSaveData kkm_last_timestamp [18:57:16]File name is /storage/kkm_last_timestamp [18:57:16]Write 4 bytes [18:57:16]NVStorageSaveData done [18:57:16]ExternCall_PrintAddStr [18:57:16]wPrintStart [18:57:16]Write to MH i2c: 01 00 00 93 6B FE [18:57:16]Write i2c OK [18:57:16]MH_I2C_Read... [18:57:16]Read from MH i2c: 01 [18:57:16]MH_I2C_Read... [18:57:16]Read from MH i2c: 01 07 00 [18:57:16]MH_I2C_Read... [18:57:16]Read from MH i2c: 01 07 00 93 6B 00 00 00 00 00 FF 0F 13 [18:57:16]RasterBufferAndPrint [18:57:16]line Счет N : (1)1964953 [18:57:16]line ИНН: 02508201610067 [18:57:16]line Контрольно-Кассовый Чек [18:57:16]line ПРОДАЖА [18:57:16]line ТРК (МРК, ГНК) : 43 [18:57:16]line Товар: 2710124130 [18:57:16]line Аи-92-К-5 [18:57:16]line 22.430 * 66.90 [18:57:16]line = 1500.57 [18:57:16]line НДС 12% НСП 1% [18:57:16]line > о реализуемом товаре [18:57:16]line ОКРУГЛЕНИЕ: -0.57 [18:57:16]line ИТОГО: 1500.00 [18:57:16]line Внесено: 1500.00 [18:57:16]line СДАЧА: 0.00 [18:57:16]line НСП 1% : 13.28 [18:57:16]line НДС 12% : 159.35 [18:57:16]line Наличными: 1500.00 [18:57:16]line Безнал.: 0.00 [18:57:16]line Место: АЗС № 133 "Партнер Нефть" [18:57:16]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:57:16]line СНО: Общий режим [18:57:16]line Чек 364 22.10.2024 18:57 [18:57:16]line Смена: 535 ФФД: 1.0 [18:57:16]line ЗНМ: 0300000091 [18:57:16]line РНМ: 0000000000091685 [18:57:16]line Версия ККМ: 001 [18:57:16]line ФМ: 0000000000871839 [18:57:16]line ФД: 228400 [18:57:16]line ФПД: 85322238144301 [18:57:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185720&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228400&fm=85322238144301&tin=02508201610067®Number=0000000000091685&sum=150000 [18:57:16]written 0, free lines is 4095 [18:57:16]OFD Sender: Processing packet 228400 [packets to send 38, broken 37] [18:57:16]ProducePacketName [18:57:16]name=ofd_packets/00228400 [18:57:16]OFD Sender: To server: pG, [18:57:16]CommunicateWithHost lk.salyk.kg:30040 [18:57:16]ConnectInit lk.salyk.kg [18:57:17]Connected sock=10 [18:57:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 7B ED 07 01 5A 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 90 F5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 30 7C 03 00 35 04 06 00 4D 99 A1 B2 2F 2D 6E 15 3C BD A7 B1 7F 5C [18:57:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 3C BD 47 00 86 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 30 7C 03 00 F4 03 04 00 87 A0 17 67 B6 04 01 00 00 88 3D 97 9F C0 E6 47 26 [18:57:17]CommunicateWithHost err = 0 [18:57:17]CheckOFDResponse [18:57:17]1017 (14) - 77093643461234 [18:57:17]1041 (16) - 0000000000871839 [18:57:17]1040 (4) - 228400 [18:57:17]1012 (4) - 22.10.2024 12:54 [18:57:17]1206 (1) - 0 [18:57:17]OFD Sender: Remove packet 228400 [18:57:17]ProducePacketName [18:57:17]name=ofd_packets/00228400 [18:57:17]NVStorageDeleteData [18:57:17]Write to MH i2c: 01 00 00 BD 6B 28 [18:57:17]Write i2c OK [18:57:17]MH_I2C_Read... [18:57:17]Read from MH i2c: 01 [18:57:17]MH_I2C_Read... [18:57:17]Read from MH i2c: 01 07 00 [18:57:17]MH_I2C_Read... [18:57:17]Read from MH i2c: 01 07 00 BD 6B 00 00 00 00 00 A4 0C DF [18:57:17]RasterBufferAndPrint [18:57:17]line [18:57:17]line [18:57:17]line [18:57:17]line [18:57:17]line [18:57:17]written 0, free lines is 3240 [18:57:17]MH_Cut [18:57:17]Write to MH i2c: D1 01 00 C4 6B 01 01 [18:57:17]Write i2c OK [18:57:17]MH_I2C_Read... [18:57:17]Read from MH i2c: D1 [18:57:17]MH_I2C_Read... [18:57:17]Read from MH i2c: D1 01 00 [18:57:17]MH_I2C_Read... [18:57:17]Read from MH i2c: D1 01 00 C4 6B 00 00 [18:57:17]Write to MH i2c: 01 00 00 C5 6B 30 [18:57:17]Write i2c OK [18:57:17]MH_I2C_Read... [18:57:17]OFD Sender: No OFD packet to send [18:57:18]*** Cut start [18:57:18]*** Partial cut [18:57:18]*** CUTSNS_PIN = 1 [18:57:18]*** CUTSNS_PIN = 0 [18:57:18]*** Brake cut motor [18:57:18]Read from MH i2c: 01 [18:57:18]MH_I2C_Read... [18:57:18]*** Stop cut motor [18:57:18]*** Cut end [18:57:18]Read from MH i2c: 01 07 00 [18:57:18]MH_I2C_Read... [18:57:18]Read from MH i2c: 01 07 00 C5 6B 00 00 00 00 00 FF 0F 45 [18:57:18]process_action close_receipt done [18:57:18]requested_data is exist [18:57:18]produce_requested_data [18:57:18]requested_item fm.sn is exist - process it [18:57:18]wFMCommunicate request_size=4 [18:57:18]MH_SAM_APDU [18:57:18]CAPDU: 80 11 00 00 [18:57:18]Write to MH i2c: E2 08 00 C6 6B 80 11 00 00 00 00 00 00 AB [18:57:18]Write i2c OK [18:57:18]MH_I2C_Read... [18:57:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:19]Read from MH i2c: E2 [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: E2 17 00 [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: E2 17 00 C6 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 02 [18:57:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:57:19]wFMCommunicate OK [18:57:19]requested_item fd.num is exist - process it [18:57:19]SAM_PROTO_GetFieldsCounters [18:57:19]wFMCommunicate request_size=4 [18:57:19]MH_SAM_APDU [18:57:19]CAPDU: 80 13 00 00 [18:57:19]Write to MH i2c: E2 08 00 C7 6B 80 13 00 00 00 00 00 00 AE [18:57:19]Write i2c OK [18:57:19]MH_I2C_Read... [18:57:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:19]Read from MH i2c: E2 [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: E2 62 00 [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: E2 62 00 C7 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 30 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 E6 [18:57:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 30 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:57:19]wFMCommunicate OK [18:57:19]SAM_PROTO_GetFieldsCounters done [18:57:19]requested_item shift.num is exist - process it [18:57:19]requested_item shift.opened is exist - process it [18:57:19]req_shift_opened [18:57:19]FM_GetShiftState [18:57:19]SAM_PROTO_GetShiftState [18:57:19]wFMCommunicate request_size=4 [18:57:19]MH_SAM_APDU [18:57:19]CAPDU: 80 13 01 00 [18:57:19]Write to MH i2c: E2 08 00 C8 6B 80 13 01 00 00 00 00 00 B0 [18:57:19]Write i2c OK [18:57:19]MH_I2C_Read... [18:57:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:19]Read from MH i2c: E2 [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: E2 0E 00 [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: E2 0E 00 C8 6B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 77 [18:57:19]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:57:19]wFMCommunicate OK [18:57:19]SAM_PROTO_GetShiftState done [18:57:19]FM_GetShiftState done [18:57:19]req_shift_opened done [18:57:19]requested_item shift.open_date is exist - process it [18:57:19]req_shift_open_date [18:57:19]req_shift_open_date done [18:57:19]produce_requested_data done [18:57:19]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228400,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [18:57:19]process_action_free close_receipt [18:57:19]json_value_free [18:57:19]json_value_free done [18:57:19]process_json_proto returns [18:57:19]Send response to host [18:57:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228400,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [18:57:19]free response buf [18:57:19]execute_script done [18:57:19]execute_script returns [18:57:19]free content buf [18:57:19]Sock 9.Close socket [18:57:19]Sock 9.Thread stoped [18:57:19]accept exits with 7 [18:57:19]New connection [18:57:19]New thread 3066994020 created [18:57:19]Thread 3067137380 joined [18:57:19]Waiting for new connection... [18:57:19] Sock 7.Parse request [18:57:19]Sock 7.Check first char [18:57:19]Sock 7.First char is OK [18:57:19]request: POST /json_proto HTTP/1.0 [18:57:19]Method: POST [18:57:19]URL: /json_proto [18:57:19]Method is POST - this is cgi request [18:57:19]url: /json_proto [18:57:19]query_string will be loaded in cgi processing [18:57:19]execute_cgi json_proto POST (null) [18:57:19]execute_cgi path=json_proto method=POST [18:57:19]POST find Content-Length [18:57:19]Host: 172.17.44.195:8080 [18:57:19]Content-Length: 768 [18:57:19]Content-Type: application/json [18:57:19] [18:57:19]POST finish read [18:57:19]Found Content-Length = 768 [18:57:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964954", "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" : 66.90, "quantity" : 10.470, "sum" : 700.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: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:19]execute_script... [18:57: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)1964954", "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" : 66.90, "quantity" : 10.470, "sum" : 700.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: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:19]POST & json_proto [18:57:19]process_json_proto [18:57:19]json parsed OK: [18:57:19]protocol is kg_v1.0 [18:57:19]action value=close_receipt [18:57:19]process_action close_receipt [18:57:19]cmd_close_receipt [18:57:19]MH_GetDate [18:57:19]Write to MH i2c: F0 00 00 C9 6B 23 [18:57:19]Write i2c OK [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: F0 [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: F0 09 00 [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: F0 09 00 C9 6B 00 95 F5 17 67 82 C9 CF 66 B4 [18:57:19]GetLastDocTimeStamp 1729623440 [18:57:19]current date 1729623445 [18:57:19]FM_GetShiftState [18:57:19]SAM_PROTO_GetShiftState [18:57:19]wFMCommunicate request_size=4 [18:57:19]MH_SAM_APDU [18:57:19]CAPDU: 80 13 01 00 [18:57:19]Write to MH i2c: E2 08 00 CA 6B 80 13 01 00 00 00 00 00 B2 [18:57:19]Write i2c OK [18:57:19]MH_I2C_Read... [18:57:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:19]Read from MH i2c: E2 [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: E2 0E 00 [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: E2 0E 00 CA 6B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 79 [18:57:19]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:57:19]wFMCommunicate OK [18:57:19]SAM_PROTO_GetShiftState done [18:57:19]FM_GetShiftState done [18:57:19]opened in 1729555538 [18:57:19]opened+sec_in_day 1729641938 [18:57:19]quantity*price = 70044 [18:57:19]sum+1 = 70045 [18:57:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 365 22.10.2024 18:57 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 228401 ФПД: 43685283818882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185725&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228401&fm=43685283818882&tin=02508201610067®Number=0000000000091685&sum=70044 [18:57:21]StoreToDocumentArchive [18:57:21]shift 535 fd 228401 [18:57:21]save to /storage/0535/doc_00228401 [18:57:21]save last doc name /storage/0535/doc_00228401 to /storage/kkm_last_doc_name [18:57:21]save OK [18:57:21]Clear old archive folders... [18:57:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:57:21]tlvbuf is B6EEE0E0 [18:57:21]SAM_PROTO_ClearQueue [18:57:21]wFMCommunicate request_size=4 [18:57:21]MH_SAM_APDU [18:57:21]CAPDU: 80 09 00 00 [18:57:21]Write to MH i2c: E2 08 00 D7 6B 80 09 00 00 00 00 00 00 B4 [18:57:21]Write i2c OK [18:57:21]MH_I2C_Read... [18:57:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:21]Read from MH i2c: E2 [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: E2 03 00 [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: E2 03 00 D7 6B 00 90 00 B6 [18:57:21]RAPDU: 90 00 [18:57:21]wFMCommunicate OK [18:57:21]SAM_PROTO_ClearQueue done [18:57:21]KKMCreateOFDPacket [18:57:21]OFDProtocolAddRootSTLVToBuf [18:57:21]FM_MakeSignedData [18:57:21]FM_MakeSignedData [18:57:21]SAM_PROTO_SignData [18:57:21]wFMCommunicate request_size=4 [18:57:21]MH_SAM_APDU [18:57:21]CAPDU: 80 0D 01 02 [18:57:21]Write to MH i2c: E2 08 00 D8 6B 80 0D 01 02 00 00 00 00 BC [18:57:21]Write i2c OK [18:57:21]MH_I2C_Read... [18:57:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:21]Read from MH i2c: E2 [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: E2 03 00 [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: E2 03 00 D8 6B 00 90 00 B7 [18:57:21]RAPDU: 90 00 [18:57:21]wFMCommunicate OK [18:57:21]wFMCommunicate request_size=255 [18:57:21]MH_SAM_APDU [18:57: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 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 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 95 F5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 31 7C 03 00 35 04 06 00 27 [18:57:21]Write to MH i2c: E2 02 01 D9 6B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 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 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 95 F5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 31 7C 03 00 35 04 06 00 27 00 00 21 [18:57:21]Write i2c OK [18:57:21]MH_I2C_Read... [18:57:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:21]Read from MH i2c: E2 [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: E2 03 00 [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: E2 03 00 D9 6B 00 90 00 B8 [18:57:21]RAPDU: 90 00 [18:57:21]wFMCommunicate OK [18:57:21]wFMCommunicate request_size=10 [18:57:21]MH_SAM_APDU [18:57:21]CAPDU: 80 0D 02 02 05 BB 45 D2 ED 82 [18:57:21]Write to MH i2c: E2 0D 00 DA 6B 80 0D 02 02 05 00 BB 45 D2 ED 82 00 00 0A [18:57:21]Write i2c OK [18:57:21]MH_I2C_Read... [18:57:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:21]Read from MH i2c: E2 [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: E2 03 00 [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: E2 03 00 DA 6B 00 90 00 B9 [18:57:21]RAPDU: 90 00 [18:57:21]wFMCommunicate OK [18:57:21]wFMCommunicate request_size=4 [18:57:21]MH_SAM_APDU [18:57:21]CAPDU: 80 0D 03 02 [18:57:21]Write to MH i2c: E2 08 00 DB 6B 80 0D 03 02 00 00 00 00 C1 [18:57:21]Write i2c OK [18:57:21]MH_I2C_Read... [18:57:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:21]Read from MH i2c: E2 [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: E2 0B 00 [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: E2 0B 00 DB 6B 00 02 F8 58 5B 6A 18 B3 91 90 00 35 [18:57:21]RAPDU: 02 F8 58 5B 6A 18 B3 91 90 00 [18:57:21]wFMCommunicate OK [18:57:21]SAM_PROTO_SignData done [18:57:21]FM_MakeSignedData done [18:57:21]CreateOFDProtocolMessage [18:57:21]wFMCommunicate request_size=4 [18:57:21]MH_SAM_APDU [18:57:21]CAPDU: 80 11 00 00 [18:57:21]Write to MH i2c: E2 08 00 DC 6B 80 11 00 00 00 00 00 00 C1 [18:57:21]Write i2c OK [18:57:21]MH_I2C_Read... [18:57:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:21]Read from MH i2c: E2 [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: E2 17 00 [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: E2 17 00 DC 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 18 [18:57:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:57:21]wFMCommunicate OK [18:57:21]CreateOFDProtocolMessage done [18:57:21]OFDSenderStorePacket 228401 [18:57:21]StoreOFDPacket docnum=228401 [18:57:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 F7 DF 07 01 40 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 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 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 95 F5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 31 7C 03 00 35 04 06 00 27 BB 45 D2 ED 82 02 F8 58 5B 6A 18 B3 91 [18:57:21]CheckFolder [18:57:21]dirname=/storage/ofd_packets [18:57:21]CheckFolder done [18:57:21]ProducePacketName [18:57:21]name=ofd_packets/00228401 [18:57:21]NVStorageSaveData ofd_packets/00228401 [18:57:21]File name is /storage/ofd_packets/00228401 [18:57:21]Write 301 bytes [18:57:21]NVStorageSaveData done [18:57:21]OFDSenderStorePacket done [18:57:21]KKMCreateOFDPacket done [18:57:21]NVStorageSaveData kkm_last_timestamp [18:57:21]File name is /storage/kkm_last_timestamp [18:57:21]Write 4 bytes [18:57:21]NVStorageSaveData done [18:57:21]ExternCall_PrintAddStr [18:57:21]wPrintStart [18:57:21]Write to MH i2c: 01 00 00 DD 6B 48 [18:57:21]Write i2c OK [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: 01 [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: 01 07 00 [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: 01 07 00 DD 6B 00 00 00 00 00 FF 0F 5D [18:57:21]RasterBufferAndPrint [18:57:21]line Счет N : (1)1964954 [18:57:21]line ИНН: 02508201610067 [18:57:21]line Контрольно-Кассовый Чек [18:57:21]line ПРОДАЖА [18:57:21]line ТРК (МРК, ГНК) : 53 [18:57:21]line Товар: 2710124130 [18:57:21]line Аи-92-К-5 [18:57:21]line 10.470 * 66.90 [18:57:21]line = 700.44 [18:57:21]line НДС 12% НСП 1% [18:57:21]line > о реализуемом товаре [18:57:21]line ИТОГО: 700.44 [18:57:21]line НСП 1% : 6.20 [18:57:21]line НДС 12% : 74.38 [18:57:21]line Наличными: 0.00 [18:57:21]line Безнал.: 700.44 [18:57:21]line Место: АЗС № 133 "Партнер Нефть" [18:57:21]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:57:21]line СНО: Общий режим [18:57:21]line Чек 365 22.10.2024 18:57 [18:57:21]line Смена: 535 ФФД: 1.0 [18:57:21]line ЗНМ: 0300000091 [18:57:21]line РНМ: 0000000000091685 [18:57:21]line Версия ККМ: 001 [18:57:21]line Платежная система: Mbank [18:57:21]line ФМ: 0000000000871839 [18:57:21]line ФД: 228401 [18:57:21]line ФПД: 43685283818882 [18:57:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185725&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228401&fm=43685283818882&tin=02508201610067®Number=0000000000091685&sum=70044 [18:57:21]OFD Sender: Processing packet 228401 [packets to send 38, broken 37] [18:57:21]ProducePacketName [18:57:21]name=ofd_packets/00228401 [18:57:22]OFD Sender: To server: pG, [18:57:22]CommunicateWithHost lk.salyk.kg:30040 [18:57:22]ConnectInit lk.salyk.kg [18:57:22]written 0, free lines is 4095 [18:57:22]Connected sock=10 [18:57:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 F7 DF 07 01 40 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 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 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 95 F5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 31 7C 03 00 35 04 06 00 27 BB 45 D2 ED 82 02 F8 58 5B 6A 18 B3 91 [18:57:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 6F C9 47 00 51 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 31 7C 03 00 F4 03 04 00 8D A0 17 67 B6 04 01 00 00 E2 9B 3F BC D9 85 67 7B [18:57:22]CommunicateWithHost err = 0 [18:57:22]CheckOFDResponse [18:57:22]1017 (14) - 77093643461234 [18:57:22]1041 (16) - 0000000000871839 [18:57:22]1040 (4) - 228401 [18:57:22]1012 (4) - 22.10.2024 12:54 [18:57:22]1206 (1) - 0 [18:57:22]OFD Sender: Remove packet 228401 [18:57:22]ProducePacketName [18:57:22]name=ofd_packets/00228401 [18:57:22]NVStorageDeleteData [18:57:22]Write to MH i2c: 01 00 00 05 6C 71 [18:57:22]Write i2c OK [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: 01 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: 01 07 00 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: 01 07 00 05 6C 00 00 00 00 00 E6 0C 6A [18:57:22]RasterBufferAndPrint [18:57:22]line [18:57:22]line [18:57:22]line [18:57:22]line [18:57:22]line [18:57:22]written 0, free lines is 3311 [18:57:22]MH_Cut [18:57:22]Write to MH i2c: D1 01 00 0C 6C 01 4A [18:57:22]Write i2c OK [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: D1 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: D1 01 00 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: D1 01 00 0C 6C 00 49 [18:57:22]Write to MH i2c: 01 00 00 0D 6C 79 [18:57:22]Write i2c OK [18:57:22]MH_I2C_Read... [18:57:22]OFD Sender: No OFD packet to send [18:57:23]*** Cut start [18:57:23]*** Partial cut [18:57:23]*** CUTSNS_PIN = 1 [18:57:23]*** CUTSNS_PIN = 0 [18:57:23]*** Brake cut motor [18:57:23]Read from MH i2c: 01 [18:57:23]MH_I2C_Read... [18:57:23]*** Stop cut motor [18:57:23]*** Cut end [18:57:23]Read from MH i2c: 01 07 00 [18:57:23]MH_I2C_Read... [18:57:23]Read from MH i2c: 01 07 00 0D 6C 00 00 00 00 00 FF 0F 8E [18:57:23]process_action close_receipt done [18:57:23]requested_data is exist [18:57:23]produce_requested_data [18:57:23]requested_item fm.sn is exist - process it [18:57:23]wFMCommunicate request_size=4 [18:57:23]MH_SAM_APDU [18:57:23]CAPDU: 80 11 00 00 [18:57:23]Write to MH i2c: E2 08 00 0E 6C 80 11 00 00 00 00 00 00 F4 [18:57:23]Write i2c OK [18:57:23]MH_I2C_Read... [18:57:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:24]Read from MH i2c: E2 [18:57:24]MH_I2C_Read... [18:57:24]Read from MH i2c: E2 17 00 [18:57:24]MH_I2C_Read... [18:57:24]Read from MH i2c: E2 17 00 0E 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4B [18:57:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:57:24]wFMCommunicate OK [18:57:24]requested_item fd.num is exist - process it [18:57:24]SAM_PROTO_GetFieldsCounters [18:57:24]wFMCommunicate request_size=4 [18:57:24]MH_SAM_APDU [18:57:24]CAPDU: 80 13 00 00 [18:57:24]Write to MH i2c: E2 08 00 0F 6C 80 13 00 00 00 00 00 00 F7 [18:57:24]Write i2c OK [18:57:24]MH_I2C_Read... [18:57:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:24]Read from MH i2c: E2 [18:57:24]MH_I2C_Read... [18:57:24]Read from MH i2c: E2 62 00 [18:57:24]MH_I2C_Read... [18:57:24]Read from MH i2c: E2 62 00 0F 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 31 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 6D 01 00 00 5E 04 04 00 6D 01 00 00 57 04 04 00 6E 01 00 00 19 04 04 00 00 00 00 00 90 00 33 [18:57:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 31 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 6D 01 00 00 5E 04 04 00 6D 01 00 00 57 04 04 00 6E 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:57:24]wFMCommunicate OK [18:57:24]SAM_PROTO_GetFieldsCounters done [18:57:24]requested_item shift.num is exist - process it [18:57:24]requested_item shift.opened is exist - process it [18:57:24]req_shift_opened [18:57:24]FM_GetShiftState [18:57:24]SAM_PROTO_GetShiftState [18:57:24]wFMCommunicate request_size=4 [18:57:24]MH_SAM_APDU [18:57:24]CAPDU: 80 13 01 00 [18:57:24]Write to MH i2c: E2 08 00 10 6C 80 13 01 00 00 00 00 00 F9 [18:57:24]Write i2c OK [18:57:24]MH_I2C_Read... [18:57:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:24]Read from MH i2c: E2 [18:57:24]MH_I2C_Read... [18:57:24]Read from MH i2c: E2 0E 00 [18:57:24]MH_I2C_Read... [18:57:24]Read from MH i2c: E2 0E 00 10 6C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 C0 [18:57:24]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:57:24]wFMCommunicate OK [18:57:24]SAM_PROTO_GetShiftState done [18:57:24]FM_GetShiftState done [18:57:24]req_shift_opened done [18:57:24]requested_item shift.open_date is exist - process it [18:57:24]req_shift_open_date [18:57:24]req_shift_open_date done [18:57:24]produce_requested_data done [18:57:24]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228401,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [18:57:24]process_action_free close_receipt [18:57:24]json_value_free [18:57:24]json_value_free done [18:57:24]process_json_proto returns [18:57:24]Send response to host [18:57:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228401,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [18:57:24]free response buf [18:57:24]execute_script done [18:57:24]execute_script returns [18:57:24]free content buf [18:57:24]Sock 7.Close socket [18:57:24]Sock 7.Thread stoped [18:57:27]OFD Sender: No OFD packet to send [18:57:32]OFD Sender: No OFD packet to send [18:57:34]accept exits with 9 [18:57:34]New connection [18:57:34]New thread 3067137380 created [18:57:34]Thread 3066994020 joined [18:57:34]Waiting for new connection... [18:57:34] Sock 9.Parse request [18:57:34]Sock 9.Check first char [18:57:34]Sock 9.First char is OK [18:57:34]request: POST /json_proto HTTP/1.0 [18:57:34]Method: POST [18:57:34]URL: /json_proto [18:57:34]Method is POST - this is cgi request [18:57:34]url: /json_proto [18:57:34]query_string will be loaded in cgi processing [18:57:34]execute_cgi json_proto POST (null) [18:57:34]execute_cgi path=json_proto method=POST [18:57:34]POST find Content-Length [18:57:34]Host: 172.17.44.195:8080 [18:57:34]Content-Length: 678 [18:57:34]Content-Type: application/json [18:57:34] [18:57:34]POST finish read [18:57:34]Found Content-Length = 678 [18:57:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:34]execute_script... [18:57: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)1964955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:34]POST & json_proto [18:57:34]process_json_proto [18:57:34]json parsed OK: [18:57:34]protocol is kg_v1.0 [18:57:34]action value=close_receipt [18:57:34]process_action close_receipt [18:57:34]cmd_close_receipt [18:57:34]MH_GetDate [18:57:34]Write to MH i2c: F0 00 00 11 6C 6C [18:57:34]Write i2c OK [18:57:34]MH_I2C_Read... [18:57:34]Read from MH i2c: F0 [18:57:34]MH_I2C_Read... [18:57:34]Read from MH i2c: F0 09 00 [18:57:34]MH_I2C_Read... [18:57:34]Read from MH i2c: F0 09 00 11 6C 00 A4 F5 17 67 82 C9 CF 66 0C [18:57:34]GetLastDocTimeStamp 1729623445 [18:57:34]current date 1729623460 [18:57:34]FM_GetShiftState [18:57:34]SAM_PROTO_GetShiftState [18:57:34]wFMCommunicate request_size=4 [18:57:34]MH_SAM_APDU [18:57:34]CAPDU: 80 13 01 00 [18:57:34]Write to MH i2c: E2 08 00 12 6C 80 13 01 00 00 00 00 00 FB [18:57:34]Write i2c OK [18:57:34]MH_I2C_Read... [18:57:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:34]Read from MH i2c: E2 [18:57:34]MH_I2C_Read... [18:57:34]Read from MH i2c: E2 0E 00 [18:57:34]MH_I2C_Read... [18:57:34]Read from MH i2c: E2 0E 00 12 6C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 C2 [18:57:34]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:57:34]wFMCommunicate OK [18:57:34]SAM_PROTO_GetShiftState done [18:57:34]FM_GetShiftState done [18:57:34]opened in 1729555538 [18:57:34]opened+sec_in_day 1729641938 [18:57:34]quantity*price = 50041 [18:57:34]sum+1 = 50042 [18:57:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 366 22.10.2024 18:57 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228402 ФПД: 141671415654801 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185740&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228402&fm=141671415654801&tin=02508201610067®Number=0000000000091685&sum=50000 [18:57:36]StoreToDocumentArchive [18:57:36]shift 535 fd 228402 [18:57:36]save to /storage/0535/doc_00228402 [18:57:36]save last doc name /storage/0535/doc_00228402 to /storage/kkm_last_doc_name [18:57:36]save OK [18:57:36]Clear old archive folders... [18:57:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:57:36]tlvbuf is 00A81420 [18:57:36]SAM_PROTO_ClearQueue [18:57:36]wFMCommunicate request_size=4 [18:57:36]MH_SAM_APDU [18:57:36]CAPDU: 80 09 00 00 [18:57:36]Write to MH i2c: E2 08 00 1F 6C 80 09 00 00 00 00 00 00 FD [18:57:36]Write i2c OK [18:57:36]MH_I2C_Read... [18:57:36]Read from MH i2c: E2 [18:57:36]MH_I2C_Read... [18:57:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:36]Read from MH i2c: E2 03 00 [18:57:36]MH_I2C_Read... [18:57:36]Read from MH i2c: E2 03 00 1F 6C 00 90 00 FF [18:57:36]RAPDU: 90 00 [18:57:36]wFMCommunicate OK [18:57:36]SAM_PROTO_ClearQueue done [18:57:36]KKMCreateOFDPacket [18:57:36]OFDProtocolAddRootSTLVToBuf [18:57:36]FM_MakeSignedData [18:57:36]FM_MakeSignedData [18:57:36]SAM_PROTO_SignData [18:57:36]wFMCommunicate request_size=4 [18:57:36]MH_SAM_APDU [18:57:36]CAPDU: 80 0D 01 02 [18:57:36]Write to MH i2c: E2 08 00 20 6C 80 0D 01 02 00 00 00 00 05 [18:57:36]Write i2c OK [18:57:36]MH_I2C_Read... [18:57:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:36]Read from MH i2c: E2 [18:57:36]MH_I2C_Read... [18:57:36]Read from MH i2c: E2 03 00 [18:57:36]MH_I2C_Read... [18:57:36]Read from MH i2c: E2 03 00 20 6C 00 90 00 00 [18:57:36]RAPDU: 90 00 [18:57:36]wFMCommunicate OK [18:57:36]wFMCommunicate request_size=255 [18:57:36]MH_SAM_APDU [18:57: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 A4 F5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 32 7C 03 00 35 04 06 00 80 [18:57:36]Write to MH i2c: E2 02 01 21 6C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 A4 F5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 32 7C 03 00 35 04 06 00 80 00 00 6C [18:57:36]Write i2c OK [18:57:36]MH_I2C_Read... [18:57:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:36]Read from MH i2c: E2 [18:57:36]MH_I2C_Read... [18:57:36]Read from MH i2c: E2 03 00 [18:57:36]MH_I2C_Read... [18:57:36]Read from MH i2c: E2 03 00 21 6C 00 90 00 01 [18:57:36]RAPDU: 90 00 [18:57:36]wFMCommunicate OK [18:57:36]wFMCommunicate request_size=10 [18:57:36]MH_SAM_APDU [18:57:36]CAPDU: 80 0D 02 02 05 D9 72 67 A9 91 [18:57:36]Write to MH i2c: E2 0D 00 22 6C 80 0D 02 02 05 00 D9 72 67 A9 91 00 00 FE [18:57:36]Write i2c OK [18:57:36]MH_I2C_Read... [18:57:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:36]Read from MH i2c: E2 [18:57:36]MH_I2C_Read... [18:57:36]Read from MH i2c: E2 03 00 [18:57:36]MH_I2C_Read... [18:57:36]Read from MH i2c: E2 03 00 22 6C 00 90 00 02 [18:57:36]RAPDU: 90 00 [18:57:36]wFMCommunicate OK [18:57:36]wFMCommunicate request_size=4 [18:57:36]MH_SAM_APDU [18:57:36]CAPDU: 80 0D 03 02 [18:57:36]Write to MH i2c: E2 08 00 23 6C 80 0D 03 02 00 00 00 00 0A [18:57:36]Write i2c OK [18:57:36]MH_I2C_Read... [18:57:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:36]Read from MH i2c: E2 [18:57:36]MH_I2C_Read... [18:57:36]Read from MH i2c: E2 0B 00 [18:57:36]MH_I2C_Read... [18:57:36]Read from MH i2c: E2 0B 00 23 6C 00 94 4C 8E 93 53 82 67 A4 90 00 EC [18:57:36]RAPDU: 94 4C 8E 93 53 82 67 A4 90 00 [18:57:36]wFMCommunicate OK [18:57:36]SAM_PROTO_SignData done [18:57:36]FM_MakeSignedData done [18:57:36]CreateOFDProtocolMessage [18:57:36]wFMCommunicate request_size=4 [18:57:36]MH_SAM_APDU [18:57:36]CAPDU: 80 11 00 00 [18:57:36]Write to MH i2c: E2 08 00 24 6C 80 11 00 00 00 00 00 00 0A [18:57:36]Write i2c OK [18:57:36]MH_I2C_Read... [18:57:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:36]Read from MH i2c: E2 [18:57:36]MH_I2C_Read... [18:57:36]Read from MH i2c: E2 17 00 [18:57:36]MH_I2C_Read... [18:57:36]Read from MH i2c: E2 17 00 24 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 61 [18:57:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:57:36]wFMCommunicate OK [18:57:36]CreateOFDProtocolMessage done [18:57:36]OFDSenderStorePacket 228402 [18:57:36]StoreOFDPacket docnum=228402 [18:57:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 AF 95 07 01 E3 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 A4 F5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 32 7C 03 00 35 04 06 00 80 D9 72 67 A9 91 94 4C 8E 93 53 82 67 A4 [18:57:36]CheckFolder [18:57:36]dirname=/storage/ofd_packets [18:57:36]CheckFolder done [18:57:36]ProducePacketName [18:57:36]name=ofd_packets/00228402 [18:57:36]NVStorageSaveData ofd_packets/00228402 [18:57:36]File name is /storage/ofd_packets/00228402 [18:57:36]Write 301 bytes [18:57:36]NVStorageSaveData done [18:57:36]OFDSenderStorePacket done [18:57:36]KKMCreateOFDPacket done [18:57:36]NVStorageSaveData kkm_last_timestamp [18:57:36]File name is /storage/kkm_last_timestamp [18:57:36]Write 4 bytes [18:57:36]NVStorageSaveData done [18:57:36]ExternCall_PrintAddStr [18:57:36]wPrintStart [18:57:36]Write to MH i2c: 01 00 00 25 6C 91 [18:57:36]Write i2c OK [18:57:36]MH_I2C_Read... [18:57:36]Read from MH i2c: 01 [18:57:36]MH_I2C_Read... [18:57:36]Read from MH i2c: 01 07 00 [18:57:36]MH_I2C_Read... [18:57:36]Read from MH i2c: 01 07 00 25 6C 00 00 00 00 00 FF 0F A6 [18:57:36]RasterBufferAndPrint [18:57:36]line Счет N : (1)1964955 [18:57:36]line ИНН: 02508201610067 [18:57:36]line Контрольно-Кассовый Чек [18:57:36]line ПРОДАЖА [18:57:36]line ТРК (МРК, ГНК) : 33 [18:57:36]line Товар: 2710124130 [18:57:36]line Аи-92-К-5 [18:57:36]line 7.480 * 66.90 [18:57:36]line = 500.41 [18:57:36]line НДС 12% НСП 1% [18:57:36]line > о реализуемом товаре [18:57:36]line ОКРУГЛЕНИЕ: -0.41 [18:57:36]line ИТОГО: 500.00 [18:57:36]line Внесено: 500.00 [18:57:36]line СДАЧА: 0.00 [18:57:36]line НСП 1% : 4.43 [18:57:36]line НДС 12% : 53.14 [18:57:36]line Наличными: 500.00 [18:57:36]line Безнал.: 0.00 [18:57:36]line Место: АЗС № 133 "Партнер Нефть" [18:57:36]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:57:36]line СНО: Общий режим [18:57:36]line Чек 366 22.10.2024 18:57 [18:57:36]line Смена: 535 ФФД: 1.0 [18:57:36]line ЗНМ: 0300000091 [18:57:36]line РНМ: 0000000000091685 [18:57:36]line Версия ККМ: 001 [18:57:36]line ФМ: 0000000000871839 [18:57:36]line ФД: 228402 [18:57:36]line ФПД: 141671415654801 [18:57:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185740&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228402&fm=141671415654801&tin=02508201610067®Number=0000000000091685&sum=50000 [18:57:36]written 0, free lines is 4095 [18:57:36]OFD Sender: Processing packet 228402 [packets to send 38, broken 37] [18:57:36]ProducePacketName [18:57:36]name=ofd_packets/00228402 [18:57:36]OFD Sender: To server: pG, [18:57:36]CommunicateWithHost lk.salyk.kg:30040 [18:57:36]ConnectInit lk.salyk.kg [18:57:36]Connected sock=10 [18:57:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 AF 95 07 01 E3 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 A4 F5 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 32 7C 03 00 35 04 06 00 80 D9 72 67 A9 91 94 4C 8E 93 53 82 67 A4 [18:57:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 83 4A 47 00 80 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 32 7C 03 00 F4 03 04 00 9B A0 17 67 B6 04 01 00 00 61 87 F9 E8 67 60 8F 6A [18:57:37]CommunicateWithHost err = 0 [18:57:37]CheckOFDResponse [18:57:37]1017 (14) - 77093643461234 [18:57:37]1041 (16) - 0000000000871839 [18:57:37]1040 (4) - 228402 [18:57:37]1012 (4) - 22.10.2024 12:54 [18:57:37]1206 (1) - 0 [18:57:37]OFD Sender: Remove packet 228402 [18:57:37]ProducePacketName [18:57:37]name=ofd_packets/00228402 [18:57:37]NVStorageDeleteData [18:57:37]Write to MH i2c: 01 00 00 4F 6C BB [18:57:37]Write i2c OK [18:57:37]MH_I2C_Read... [18:57:37]Read from MH i2c: 01 [18:57:37]MH_I2C_Read... [18:57:37]Read from MH i2c: 01 07 00 [18:57:37]MH_I2C_Read... [18:57:37]Read from MH i2c: 01 07 00 4F 6C 00 00 00 00 00 B0 0C 7E [18:57:37]RasterBufferAndPrint [18:57:37]line [18:57:37]line [18:57:37]line [18:57:37]line [18:57:37]line [18:57:37]written 0, free lines is 3259 [18:57:37]MH_Cut [18:57:37]Write to MH i2c: D1 01 00 56 6C 01 94 [18:57:37]Write i2c OK [18:57:37]MH_I2C_Read... [18:57:37]Read from MH i2c: D1 [18:57:37]MH_I2C_Read... [18:57:37]Read from MH i2c: D1 01 00 [18:57:37]MH_I2C_Read... [18:57:37]Read from MH i2c: D1 01 00 56 6C 00 93 [18:57:37]Write to MH i2c: 01 00 00 57 6C C3 [18:57:37]Write i2c OK [18:57:37]MH_I2C_Read... [18:57:37]OFD Sender: No OFD packet to send [18:57:38]*** Cut start [18:57:38]*** Partial cut [18:57:38]*** CUTSNS_PIN = 1 [18:57:38]*** CUTSNS_PIN = 0 [18:57:38]*** Brake cut motor [18:57:38]Read from MH i2c: 01 [18:57:38]MH_I2C_Read... [18:57:38]*** Stop cut motor [18:57:38]*** Cut end [18:57:38]Read from MH i2c: 01 07 00 [18:57:38]MH_I2C_Read... [18:57:38]Read from MH i2c: 01 07 00 57 6C 00 00 00 00 00 FF 0F D8 [18:57:38]process_action close_receipt done [18:57:38]requested_data is exist [18:57:38]produce_requested_data [18:57:38]requested_item fm.sn is exist - process it [18:57:38]wFMCommunicate request_size=4 [18:57:38]MH_SAM_APDU [18:57:38]CAPDU: 80 11 00 00 [18:57:38]Write to MH i2c: E2 08 00 58 6C 80 11 00 00 00 00 00 00 3E [18:57:38]Write i2c OK [18:57:38]MH_I2C_Read... [18:57:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:38]Read from MH i2c: E2 [18:57:38]MH_I2C_Read... [18:57:38]Read from MH i2c: E2 17 00 [18:57:38]MH_I2C_Read... [18:57:38]Read from MH i2c: E2 17 00 58 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 95 [18:57:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:57:38]wFMCommunicate OK [18:57:38]requested_item fd.num is exist - process it [18:57:38]SAM_PROTO_GetFieldsCounters [18:57:38]wFMCommunicate request_size=4 [18:57:38]MH_SAM_APDU [18:57:38]CAPDU: 80 13 00 00 [18:57:38]Write to MH i2c: E2 08 00 59 6C 80 13 00 00 00 00 00 00 41 [18:57:38]Write i2c OK [18:57:38]MH_I2C_Read... [18:57:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:38]Read from MH i2c: E2 [18:57:38]MH_I2C_Read... [18:57:38]Read from MH i2c: E2 62 00 [18:57:38]MH_I2C_Read... [18:57:38]Read from MH i2c: E2 62 00 59 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 32 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 6E 01 00 00 5E 04 04 00 6E 01 00 00 57 04 04 00 6F 01 00 00 19 04 04 00 00 00 00 00 90 00 81 [18:57:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 32 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 6E 01 00 00 5E 04 04 00 6E 01 00 00 57 04 04 00 6F 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:57:38]wFMCommunicate OK [18:57:38]SAM_PROTO_GetFieldsCounters done [18:57:38]requested_item shift.num is exist - process it [18:57:38]requested_item shift.opened is exist - process it [18:57:38]req_shift_opened [18:57:38]FM_GetShiftState [18:57:38]SAM_PROTO_GetShiftState [18:57:38]wFMCommunicate request_size=4 [18:57:38]MH_SAM_APDU [18:57:38]CAPDU: 80 13 01 00 [18:57:38]Write to MH i2c: E2 08 00 5A 6C 80 13 01 00 00 00 00 00 43 [18:57:38]Write i2c OK [18:57:38]MH_I2C_Read... [18:57:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:38]Read from MH i2c: E2 [18:57:38]MH_I2C_Read... [18:57:38]Read from MH i2c: E2 0E 00 [18:57:38]MH_I2C_Read... [18:57:38]Read from MH i2c: E2 0E 00 5A 6C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 0A [18:57:38]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:57:38]wFMCommunicate OK [18:57:38]SAM_PROTO_GetShiftState done [18:57:38]FM_GetShiftState done [18:57:38]req_shift_opened done [18:57:38]requested_item shift.open_date is exist - process it [18:57:38]req_shift_open_date [18:57:38]req_shift_open_date done [18:57:38]produce_requested_data done [18:57:38]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228402,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [18:57:38]process_action_free close_receipt [18:57:38]json_value_free [18:57:38]json_value_free done [18:57:38]process_json_proto returns [18:57:38]Send response to host [18:57:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228402,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [18:57:38]free response buf [18:57:38]execute_script done [18:57:38]execute_script returns [18:57:38]free content buf [18:57:38]Sock 9.Close socket [18:57:38]Sock 9.Thread stoped [18:57:42]OFD Sender: No OFD packet to send [18:57:47]OFD Sender: No OFD packet to send [18:57:52]OFD Sender: No OFD packet to send [18:57:57]OFD Sender: No OFD packet to send [18:58:02]OFD Sender: No OFD packet to send [18:58:07]OFD Sender: No OFD packet to send [18:58:12]OFD Sender: No OFD packet to send [18:58:17]OFD Sender: No OFD packet to send [18:58:22]OFD Sender: No OFD packet to send [18:58:27]OFD Sender: No OFD packet to send [18:58:32]OFD Sender: No OFD packet to send [18:58:37]OFD Sender: No OFD packet to send [18:58:42]OFD Sender: No OFD packet to send [18:58:47]OFD Sender: No OFD packet to send [18:58:52]OFD Sender: No OFD packet to send [18:58:57]OFD Sender: No OFD packet to send [18:59:02]OFD Sender: No OFD packet to send [18:59:07]OFD Sender: No OFD packet to send [18:59:12]OFD Sender: No OFD packet to send [18:59:17]OFD Sender: No OFD packet to send [18:59:20]accept exits with 7 [18:59:20]New connection [18:59:20]New thread 3066994020 created [18:59:20]Thread 3067137380 joined [18:59:20]Waiting for new connection... [18:59:20] Sock 7.Parse request [18:59:20]Sock 7.Check first char [18:59:20]Sock 7.First char is OK [18:59:20]request: POST /json_proto HTTP/1.0 [18:59:20]Method: POST [18:59:20]URL: /json_proto [18:59:20]Method is POST - this is cgi request [18:59:20]url: /json_proto [18:59:20]query_string will be loaded in cgi processing [18:59:20]execute_cgi json_proto POST (null) [18:59:20]execute_cgi path=json_proto method=POST [18:59:20]POST find Content-Length [18:59:20]Host: 172.17.44.195:8080 [18:59:20]Content-Length: 678 [18:59:20]Content-Type: application/json [18:59:20] [18:59:20]POST finish read [18:59:20]Found Content-Length = 678 [18:59:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:20]execute_script... [18:59: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)1964956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:20]POST & json_proto [18:59:20]process_json_proto [18:59:20]json parsed OK: [18:59:20]protocol is kg_v1.0 [18:59:20]action value=close_receipt [18:59:20]process_action close_receipt [18:59:20]cmd_close_receipt [18:59:20]MH_GetDate [18:59:20]Write to MH i2c: F0 00 00 5B 6C B6 [18:59:20]Write i2c OK [18:59:20]MH_I2C_Read... [18:59:20]Read from MH i2c: F0 [18:59:20]MH_I2C_Read... [18:59:20]Read from MH i2c: F0 09 00 [18:59:20]MH_I2C_Read... [18:59:20]Read from MH i2c: F0 09 00 5B 6C 00 0E F6 17 67 82 C9 CF 66 C1 [18:59:20]GetLastDocTimeStamp 1729623460 [18:59:20]current date 1729623566 [18:59:20]FM_GetShiftState [18:59:20]SAM_PROTO_GetShiftState [18:59:20]wFMCommunicate request_size=4 [18:59:20]MH_SAM_APDU [18:59:20]CAPDU: 80 13 01 00 [18:59:20]Write to MH i2c: E2 08 00 5C 6C 80 13 01 00 00 00 00 00 45 [18:59:20]Write i2c OK [18:59:20]MH_I2C_Read... [18:59:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:20]Read from MH i2c: E2 [18:59:20]MH_I2C_Read... [18:59:20]Read from MH i2c: E2 0E 00 [18:59:20]MH_I2C_Read... [18:59:20]Read from MH i2c: E2 0E 00 5C 6C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 0C [18:59:20]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:59:20]wFMCommunicate OK [18:59:20]SAM_PROTO_GetShiftState done [18:59:20]FM_GetShiftState done [18:59:20]opened in 1729555538 [18:59:20]opened+sec_in_day 1729641938 [18:59:20]quantity*price = 50010 [18:59:20]sum+1 = 50012 [18:59:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 367 22.10.2024 18:59 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228403 ФПД: 4269225494076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185926&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228403&fm=4269225494076&tin=02508201610067®Number=0000000000091685&sum=50000 [18:59:22]StoreToDocumentArchive [18:59:22]shift 535 fd 228403 [18:59:22]save to /storage/0535/doc_00228403 [18:59:22]save last doc name /storage/0535/doc_00228403 to /storage/kkm_last_doc_name [18:59:22]save OK [18:59:22]Clear old archive folders... [18:59:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:59:22]tlvbuf is 009E7D30 [18:59:22]SAM_PROTO_ClearQueue [18:59:22]wFMCommunicate request_size=4 [18:59:22]MH_SAM_APDU [18:59:22]CAPDU: 80 09 00 00 [18:59:22]Write to MH i2c: E2 08 00 69 6C 80 09 00 00 00 00 00 00 47 [18:59:22]Write i2c OK [18:59:22]MH_I2C_Read... [18:59:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:22]Read from MH i2c: E2 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 03 00 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 03 00 69 6C 00 90 00 49 [18:59:22]RAPDU: 90 00 [18:59:22]wFMCommunicate OK [18:59:22]SAM_PROTO_ClearQueue done [18:59:22]KKMCreateOFDPacket [18:59:22]OFDProtocolAddRootSTLVToBuf [18:59:22]FM_MakeSignedData [18:59:22]FM_MakeSignedData [18:59:22]SAM_PROTO_SignData [18:59:22]wFMCommunicate request_size=4 [18:59:22]MH_SAM_APDU [18:59:22]CAPDU: 80 0D 01 02 [18:59:22]Write to MH i2c: E2 08 00 6A 6C 80 0D 01 02 00 00 00 00 4F [18:59:22]Write i2c OK [18:59:22]MH_I2C_Read... [18:59:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:22]Read from MH i2c: E2 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 03 00 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 03 00 6A 6C 00 90 00 4A [18:59:22]RAPDU: 90 00 [18:59:22]wFMCommunicate OK [18:59:22]wFMCommunicate request_size=255 [18:59:22]MH_SAM_APDU [18:59:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 0E F6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 33 7C 03 00 35 04 06 00 03 [18:59:22]Write to MH i2c: E2 02 01 6B 6C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 0E F6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 33 7C 03 00 35 04 06 00 03 00 00 7E [18:59:22]Write i2c OK [18:59:22]MH_I2C_Read... [18:59:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:22]Read from MH i2c: E2 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 03 00 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 03 00 6B 6C 00 90 00 4B [18:59:22]RAPDU: 90 00 [18:59:22]wFMCommunicate OK [18:59:22]wFMCommunicate request_size=10 [18:59:22]MH_SAM_APDU [18:59:22]CAPDU: 80 0D 02 02 05 E2 01 AB 46 3C [18:59:22]Write to MH i2c: E2 0D 00 6C 6C 80 0D 02 02 05 00 E2 01 AB 46 3C 00 00 6C [18:59:22]Write i2c OK [18:59:22]MH_I2C_Read... [18:59:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:22]Read from MH i2c: E2 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 03 00 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 03 00 6C 6C 00 90 00 4C [18:59:22]RAPDU: 90 00 [18:59:22]wFMCommunicate OK [18:59:22]wFMCommunicate request_size=4 [18:59:22]MH_SAM_APDU [18:59:22]CAPDU: 80 0D 03 02 [18:59:22]Write to MH i2c: E2 08 00 6D 6C 80 0D 03 02 00 00 00 00 54 [18:59:22]Write i2c OK [18:59:22]MH_I2C_Read... [18:59:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:22]Read from MH i2c: E2 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 0B 00 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 0B 00 6D 6C 00 E2 85 5B 37 AE 3D 31 39 90 00 A3 [18:59:22]RAPDU: E2 85 5B 37 AE 3D 31 39 90 00 [18:59:22]wFMCommunicate OK [18:59:22]SAM_PROTO_SignData done [18:59:22]FM_MakeSignedData done [18:59:22]CreateOFDProtocolMessage [18:59:22]wFMCommunicate request_size=4 [18:59:22]MH_SAM_APDU [18:59:22]CAPDU: 80 11 00 00 [18:59:22]Write to MH i2c: E2 08 00 6E 6C 80 11 00 00 00 00 00 00 54 [18:59:22]Write i2c OK [18:59:22]MH_I2C_Read... [18:59:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:22]Read from MH i2c: E2 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 17 00 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 17 00 6E 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AB [18:59:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:59:22]wFMCommunicate OK [18:59:22]CreateOFDProtocolMessage done [18:59:22]OFDSenderStorePacket 228403 [18:59:22]StoreOFDPacket docnum=228403 [18:59:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 97 04 07 01 EA CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 0E F6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 33 7C 03 00 35 04 06 00 03 E2 01 AB 46 3C E2 85 5B 37 AE 3D 31 39 [18:59:22]CheckFolder [18:59:22]dirname=/storage/ofd_packets [18:59:22]CheckFolder done [18:59:22]ProducePacketName [18:59:22]name=ofd_packets/00228403 [18:59:22]NVStorageSaveData ofd_packets/00228403 [18:59:22]File name is /storage/ofd_packets/00228403 [18:59:22]Write 301 bytes [18:59:22]NVStorageSaveData done [18:59:22]OFDSenderStorePacket done [18:59:22]KKMCreateOFDPacket done [18:59:22]NVStorageSaveData kkm_last_timestamp [18:59:22]File name is /storage/kkm_last_timestamp [18:59:22]Write 4 bytes [18:59:22]NVStorageSaveData done [18:59:22]ExternCall_PrintAddStr [18:59:22]wPrintStart [18:59:22]Write to MH i2c: 01 00 00 6F 6C DB [18:59:22]Write i2c OK [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: 01 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: 01 07 00 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: 01 07 00 6F 6C 00 00 00 00 00 FF 0F F0 [18:59:22]RasterBufferAndPrint [18:59:22]line Счет N : (1)1964956 [18:59:22]line ИНН: 02508201610067 [18:59:22]line Контрольно-Кассовый Чек [18:59:22]line ПРОДАЖА [18:59:22]line ТРК (МРК, ГНК) : 54 [18:59:22]line Товар: 2710124500 [18:59:22]line Аи-95-К-5 [18:59:22]line 6.740 * 74.20 [18:59:22]line = 500.11 [18:59:22]line НДС 12% НСП 1% [18:59:22]line > о реализуемом товаре [18:59:22]line ОКРУГЛЕНИЕ: -0.11 [18:59:22]line ИТОГО: 500.00 [18:59:22]line Внесено: 500.00 [18:59:22]line СДАЧА: 0.00 [18:59:22]line НСП 1% : 4.43 [18:59:22]line НДС 12% : 53.11 [18:59:22]line Наличными: 500.00 [18:59:22]line Безнал.: 0.00 [18:59:22]line Место: АЗС № 133 "Партнер Нефть" [18:59:22]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:59:22]line СНО: Общий режим [18:59:22]line Чек 367 22.10.2024 18:59 [18:59:22]line Смена: 535 ФФД: 1.0 [18:59:22]line ЗНМ: 0300000091 [18:59:22]line РНМ: 0000000000091685 [18:59:22]line Версия ККМ: 001 [18:59:22]line ФМ: 0000000000871839 [18:59:22]line ФД: 228403 [18:59:22]line ФПД: 4269225494076 [18:59:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185926&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228403&fm=4269225494076&tin=02508201610067®Number=0000000000091685&sum=50000 [18:59:22]written 0, free lines is 4095 [18:59:22]OFD Sender: Processing packet 228403 [packets to send 38, broken 37] [18:59:22]ProducePacketName [18:59:22]name=ofd_packets/00228403 [18:59:22]OFD Sender: To server: pG, [18:59:22]CommunicateWithHost lk.salyk.kg:30040 [18:59:22]ConnectInit lk.salyk.kg [18:59:23]Connected sock=10 [18:59:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 97 04 07 01 EA CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 0E F6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 33 7C 03 00 35 04 06 00 03 E2 01 AB 46 3C E2 85 5B 37 AE 3D 31 39 [18:59:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 52 45 47 00 C6 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 33 7C 03 00 F4 03 04 00 05 A1 17 67 B6 04 01 00 00 16 BA BF BB 33 2B E8 06 [18:59:23]CommunicateWithHost err = 0 [18:59:23]CheckOFDResponse [18:59:23]1017 (14) - 77093643461234 [18:59:23]1041 (16) - 0000000000871839 [18:59:23]1040 (4) - 228403 [18:59:23]1012 (4) - 22.10.2024 12:56 [18:59:23]1206 (1) - 0 [18:59:23]OFD Sender: Remove packet 228403 [18:59:23]ProducePacketName [18:59:23]name=ofd_packets/00228403 [18:59:23]NVStorageDeleteData [18:59:23]Write to MH i2c: 01 00 00 99 6C 05 [18:59:23]Write i2c OK [18:59:23]MH_I2C_Read... [18:59:23]Read from MH i2c: 01 [18:59:23]MH_I2C_Read... [18:59:23]Read from MH i2c: 01 07 00 [18:59:23]MH_I2C_Read... [18:59:23]Read from MH i2c: 01 07 00 99 6C 00 00 00 00 00 AA 0C C2 [18:59:23]RasterBufferAndPrint [18:59:23]line [18:59:23]line [18:59:23]line [18:59:23]line [18:59:23]line [18:59:23]written 0, free lines is 3248 [18:59:23]MH_Cut [18:59:23]Write to MH i2c: D1 01 00 A0 6C 01 DE [18:59:23]Write i2c OK [18:59:23]MH_I2C_Read... [18:59:23]Read from MH i2c: D1 [18:59:23]MH_I2C_Read... [18:59:23]Read from MH i2c: D1 01 00 [18:59:23]MH_I2C_Read... [18:59:23]Read from MH i2c: D1 01 00 A0 6C 00 DD [18:59:23]Write to MH i2c: 01 00 00 A1 6C 0D [18:59:23]Write i2c OK [18:59:23]MH_I2C_Read... [18:59:23]OFD Sender: No OFD packet to send [18:59:24]*** Cut start [18:59:24]*** Partial cut [18:59:24]*** CUTSNS_PIN = 1 [18:59:24]*** CUTSNS_PIN = 0 [18:59:24]*** Brake cut motor [18:59:24]Read from MH i2c: 01 [18:59:24]MH_I2C_Read... [18:59:24]*** Stop cut motor [18:59:24]*** Cut end [18:59:24]Read from MH i2c: 01 07 00 [18:59:24]MH_I2C_Read... [18:59:24]Read from MH i2c: 01 07 00 A1 6C 00 00 00 00 00 FF 0F 22 [18:59:24]process_action close_receipt done [18:59:24]requested_data is exist [18:59:24]produce_requested_data [18:59:24]requested_item fm.sn is exist - process it [18:59:24]wFMCommunicate request_size=4 [18:59:24]MH_SAM_APDU [18:59:24]CAPDU: 80 11 00 00 [18:59:24]Write to MH i2c: E2 08 00 A2 6C 80 11 00 00 00 00 00 00 88 [18:59:24]Write i2c OK [18:59:24]MH_I2C_Read... [18:59:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:24]Read from MH i2c: E2 [18:59:24]MH_I2C_Read... [18:59:24]Read from MH i2c: E2 17 00 [18:59:24]MH_I2C_Read... [18:59:24]Read from MH i2c: E2 17 00 A2 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DF [18:59:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:59:24]wFMCommunicate OK [18:59:24]requested_item fd.num is exist - process it [18:59:24]SAM_PROTO_GetFieldsCounters [18:59:24]wFMCommunicate request_size=4 [18:59:24]MH_SAM_APDU [18:59:24]CAPDU: 80 13 00 00 [18:59:24]Write to MH i2c: E2 08 00 A3 6C 80 13 00 00 00 00 00 00 8B [18:59:24]Write i2c OK [18:59:24]MH_I2C_Read... [18:59:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:25]Read from MH i2c: E2 [18:59:25]MH_I2C_Read... [18:59:25]Read from MH i2c: E2 62 00 [18:59:25]MH_I2C_Read... [18:59:25]Read from MH i2c: E2 62 00 A3 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 33 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 CF [18:59:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 33 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:59:25]wFMCommunicate OK [18:59:25]SAM_PROTO_GetFieldsCounters done [18:59:25]requested_item shift.num is exist - process it [18:59:25]requested_item shift.opened is exist - process it [18:59:25]req_shift_opened [18:59:25]FM_GetShiftState [18:59:25]SAM_PROTO_GetShiftState [18:59:25]wFMCommunicate request_size=4 [18:59:25]MH_SAM_APDU [18:59:25]CAPDU: 80 13 01 00 [18:59:25]Write to MH i2c: E2 08 00 A4 6C 80 13 01 00 00 00 00 00 8D [18:59:25]Write i2c OK [18:59:25]MH_I2C_Read... [18:59:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:25]Read from MH i2c: E2 [18:59:25]MH_I2C_Read... [18:59:25]Read from MH i2c: E2 0E 00 [18:59:25]MH_I2C_Read... [18:59:25]Read from MH i2c: E2 0E 00 A4 6C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 54 [18:59:25]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:59:25]wFMCommunicate OK [18:59:25]SAM_PROTO_GetShiftState done [18:59:25]FM_GetShiftState done [18:59:25]req_shift_opened done [18:59:25]requested_item shift.open_date is exist - process it [18:59:25]req_shift_open_date [18:59:25]req_shift_open_date done [18:59:25]produce_requested_data done [18:59:25]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228403,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [18:59:25]process_action_free close_receipt [18:59:25]json_value_free [18:59:25]json_value_free done [18:59:25]process_json_proto returns [18:59:25]Send response to host [18:59:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228403,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [18:59:25]free response buf [18:59:25]execute_script done [18:59:25]execute_script returns [18:59:25]free content buf [18:59:25]Sock 7.Close socket [18:59:25]Sock 7.Thread stoped [18:59:28]OFD Sender: No OFD packet to send [18:59:33]accept exits with 9 [18:59:33]New connection [18:59:33]New thread 3067137380 created [18:59:33]Thread 3066994020 joined [18:59:33]Waiting for new connection... [18:59:33] Sock 9.Parse request [18:59:33]Sock 9.Check first char [18:59:33]Sock 9.First char is OK [18:59:33]request: POST /json_proto HTTP/1.0 [18:59:33]Method: POST [18:59:33]URL: /json_proto [18:59:33]Method is POST - this is cgi request [18:59:33]url: /json_proto [18:59:33]query_string will be loaded in cgi processing [18:59:33]execute_cgi json_proto POST (null) [18:59:33]execute_cgi path=json_proto method=POST [18:59:33]POST find Content-Length [18:59:33]Host: 172.17.44.195:8080 [18:59:33]Content-Length: 772 [18:59:33]Content-Type: application/json [18:59:33] [18:59:33]POST finish read [18:59:33]Found Content-Length = 772 [18:59:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964957", "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" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Balance.KG", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:33]execute_script... [18:59: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)1964957", "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" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Balance.KG", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:33]POST & json_proto [18:59:33]process_json_proto [18:59:33]json parsed OK: [18:59:33]protocol is kg_v1.0 [18:59:33]action value=close_receipt [18:59:33]process_action close_receipt [18:59:33]cmd_close_receipt [18:59:33]MH_GetDate [18:59:33]Write to MH i2c: F0 00 00 A5 6C 00 [18:59:33]Write i2c OK [18:59:33]MH_I2C_Read... [18:59:33]Read from MH i2c: F0 [18:59:33]MH_I2C_Read... [18:59:33]Read from MH i2c: F0 09 00 [18:59:33]MH_I2C_Read... [18:59:33]Read from MH i2c: F0 09 00 A5 6C 00 1B F6 17 67 82 C9 CF 66 18 [18:59:33]GetLastDocTimeStamp 1729623566 [18:59:33]current date 1729623579 [18:59:33]FM_GetShiftState [18:59:33]SAM_PROTO_GetShiftState [18:59:33]wFMCommunicate request_size=4 [18:59:33]MH_SAM_APDU [18:59:33]CAPDU: 80 13 01 00 [18:59:33]Write to MH i2c: E2 08 00 A6 6C 80 13 01 00 00 00 00 00 8F [18:59:33]Write i2c OK [18:59:33]MH_I2C_Read... [18:59:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:33]Read from MH i2c: E2 [18:59:33]MH_I2C_Read... [18:59:33]Read from MH i2c: E2 0E 00 [18:59:33]MH_I2C_Read... [18:59:33]Read from MH i2c: E2 0E 00 A6 6C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 56 [18:59:33]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:59:33]wFMCommunicate OK [18:59:33]SAM_PROTO_GetShiftState done [18:59:33]FM_GetShiftState done [18:59:33]opened in 1729555538 [18:59:33]opened+sec_in_day 1729641938 [18:59:33]quantity*price = 40006 [18:59:33]sum+1 = 40007 [18:59:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 368 22.10.2024 18:59 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Balance.KG ФМ: 0000000000871839 ФД: 228404 ФПД: 275616906221197 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185939&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228404&fm=275616906221197&tin=02508201610067®Number=0000000000091685&sum=40006 [18:59:34]StoreToDocumentArchive [18:59:34]shift 535 fd 228404 [18:59:34]save to /storage/0535/doc_00228404 [18:59:34]save last doc name /storage/0535/doc_00228404 to /storage/kkm_last_doc_name [18:59:34]save OK [18:59:34]Clear old archive folders... [18:59:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:59:34]tlvbuf is 00887350 [18:59:34]SAM_PROTO_ClearQueue [18:59:34]wFMCommunicate request_size=4 [18:59:34]MH_SAM_APDU [18:59:34]CAPDU: 80 09 00 00 [18:59:34]Write to MH i2c: E2 08 00 B3 6C 80 09 00 00 00 00 00 00 91 [18:59:34]Write i2c OK [18:59:34]MH_I2C_Read... [18:59:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:34]Read from MH i2c: E2 [18:59:34]MH_I2C_Read... [18:59:34]Read from MH i2c: E2 03 00 [18:59:34]MH_I2C_Read... [18:59:34]Read from MH i2c: E2 03 00 B3 6C 00 90 00 93 [18:59:34]RAPDU: 90 00 [18:59:34]wFMCommunicate OK [18:59:34]SAM_PROTO_ClearQueue done [18:59:34]KKMCreateOFDPacket [18:59:34]OFDProtocolAddRootSTLVToBuf [18:59:34]FM_MakeSignedData [18:59:34]FM_MakeSignedData [18:59:34]SAM_PROTO_SignData [18:59:34]wFMCommunicate request_size=4 [18:59:34]MH_SAM_APDU [18:59:34]CAPDU: 80 0D 01 02 [18:59:34]Write to MH i2c: E2 08 00 B4 6C 80 0D 01 02 00 00 00 00 99 [18:59:34]Write i2c OK [18:59:34]MH_I2C_Read... [18:59:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:34]Read from MH i2c: E2 [18:59:34]MH_I2C_Read... [18:59:34]Read from MH i2c: E2 03 00 [18:59:34]MH_I2C_Read... [18:59:34]Read from MH i2c: E2 03 00 B4 6C 00 90 00 94 [18:59:34]RAPDU: 90 00 [18:59:34]wFMCommunicate OK [18:59:34]wFMCommunicate request_size=255 [18:59:34]MH_SAM_APDU [18:59: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 1B F6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 34 7C 03 00 35 04 06 00 FA [18:59:34]Write to MH i2c: E2 02 01 B5 6C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 22 1A 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 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 1B F6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 34 7C 03 00 35 04 06 00 FA 00 00 D1 [18:59:35]Write i2c OK [18:59:35]MH_I2C_Read... [18:59:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:35]Read from MH i2c: E2 [18:59:35]MH_I2C_Read... [18:59:35]Read from MH i2c: E2 03 00 [18:59:35]MH_I2C_Read... [18:59:35]Read from MH i2c: E2 03 00 B5 6C 00 90 00 95 [18:59:35]RAPDU: 90 00 [18:59:35]wFMCommunicate OK [18:59:35]wFMCommunicate request_size=10 [18:59:35]MH_SAM_APDU [18:59:35]CAPDU: 80 0D 02 02 05 AC 0F CA 16 8D [18:59:35]Write to MH i2c: E2 0D 00 B6 6C 80 0D 02 02 05 00 AC 0F CA 16 8D 00 00 CE [18:59:35]Write i2c OK [18:59:35]MH_I2C_Read... [18:59:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:35]Read from MH i2c: E2 [18:59:35]MH_I2C_Read... [18:59:35]Read from MH i2c: E2 03 00 [18:59:35]MH_I2C_Read... [18:59:35]Read from MH i2c: E2 03 00 B6 6C 00 90 00 96 [18:59:35]RAPDU: 90 00 [18:59:35]wFMCommunicate OK [18:59:35]wFMCommunicate request_size=4 [18:59:35]MH_SAM_APDU [18:59:35]CAPDU: 80 0D 03 02 [18:59:35]Write to MH i2c: E2 08 00 B7 6C 80 0D 03 02 00 00 00 00 9E [18:59:35]Write i2c OK [18:59:35]MH_I2C_Read... [18:59:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:35]Read from MH i2c: E2 [18:59:35]MH_I2C_Read... [18:59:35]Read from MH i2c: E2 0B 00 [18:59:35]MH_I2C_Read... [18:59:35]Read from MH i2c: E2 0B 00 B7 6C 00 6C 45 13 A0 1A D4 EF B9 90 00 99 [18:59:35]RAPDU: 6C 45 13 A0 1A D4 EF B9 90 00 [18:59:35]wFMCommunicate OK [18:59:35]SAM_PROTO_SignData done [18:59:35]FM_MakeSignedData done [18:59:35]CreateOFDProtocolMessage [18:59:35]wFMCommunicate request_size=4 [18:59:35]MH_SAM_APDU [18:59:35]CAPDU: 80 11 00 00 [18:59:35]Write to MH i2c: E2 08 00 B8 6C 80 11 00 00 00 00 00 00 9E [18:59:35]Write i2c OK [18:59:35]MH_I2C_Read... [18:59:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:35]Read from MH i2c: E2 [18:59:35]MH_I2C_Read... [18:59:35]Read from MH i2c: E2 17 00 [18:59:35]MH_I2C_Read... [18:59:35]Read from MH i2c: E2 17 00 B8 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F5 [18:59:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:59:35]wFMCommunicate OK [18:59:35]CreateOFDProtocolMessage done [18:59:35]OFDSenderStorePacket 228404 [18:59:35]StoreOFDPacket docnum=228404 [18:59:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 44 65 07 01 BE 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 1B F6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 34 7C 03 00 35 04 06 00 FA AC 0F CA 16 8D 6C 45 13 A0 1A D4 EF B9 [18:59:35]CheckFolder [18:59:35]dirname=/storage/ofd_packets [18:59:35]CheckFolder done [18:59:35]ProducePacketName [18:59:35]name=ofd_packets/00228404 [18:59:35]NVStorageSaveData ofd_packets/00228404 [18:59:35]File name is /storage/ofd_packets/00228404 [18:59:35]Write 301 bytes [18:59:35]NVStorageSaveData done [18:59:35]OFDSenderStorePacket done [18:59:35]KKMCreateOFDPacket done [18:59:35]NVStorageSaveData kkm_last_timestamp [18:59:35]File name is /storage/kkm_last_timestamp [18:59:35]Write 4 bytes [18:59:35]NVStorageSaveData done [18:59:35]ExternCall_PrintAddStr [18:59:35]wPrintStart [18:59:35]Write to MH i2c: 01 00 00 B9 6C 25 [18:59:35]Write i2c OK [18:59:35]MH_I2C_Read... [18:59:35]Read from MH i2c: 01 [18:59:35]MH_I2C_Read... [18:59:35]Read from MH i2c: 01 07 00 [18:59:35]MH_I2C_Read... [18:59:35]Read from MH i2c: 01 07 00 B9 6C 00 00 00 00 00 FF 0F 3A [18:59:35]RasterBufferAndPrint [18:59:35]line Счет N : (1)1964957 [18:59:35]line ИНН: 02508201610067 [18:59:35]line Контрольно-Кассовый Чек [18:59:35]line ПРОДАЖА [18:59:35]line ТРК (МРК, ГНК) : 63 [18:59:35]line Товар: 2710124130 [18:59:35]line Аи-92-К-5 [18:59:35]line 5.980 * 66.90 [18:59:35]line = 400.06 [18:59:35]line НДС 12% НСП 1% [18:59:35]line > о реализуемом товаре [18:59:35]line ИТОГО: 400.06 [18:59:35]line НСП 1% : 3.54 [18:59:35]line НДС 12% : 42.48 [18:59:35]line Наличными: 0.00 [18:59:35]line Безнал.: 400.06 [18:59:35]line Место: АЗС № 133 "Партнер Нефть" [18:59:35]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:59:35]line СНО: Общий режим [18:59:35]line Чек 368 22.10.2024 18:59 [18:59:35]line Смена: 535 ФФД: 1.0 [18:59:35]line ЗНМ: 0300000091 [18:59:35]line РНМ: 0000000000091685 [18:59:35]line Версия ККМ: 001 [18:59:35]line Платежная система: Balance.KG [18:59:35]line ФМ: 0000000000871839 [18:59:35]line ФД: 228404 [18:59:35]line ФПД: 275616906221197 [18:59:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185939&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228404&fm=275616906221197&tin=02508201610067®Number=0000000000091685&sum=40006 [18:59:35]written 0, free lines is 4095 [18:59:35]OFD Sender: Processing packet 228404 [packets to send 38, broken 37] [18:59:35]ProducePacketName [18:59:35]name=ofd_packets/00228404 [18:59:35]OFD Sender: To server: pG, [18:59:35]CommunicateWithHost lk.salyk.kg:30040 [18:59:35]ConnectInit lk.salyk.kg [18:59:35]Write to MH i2c: 01 00 00 E2 6C 4E [18:59:35]Write i2c OK [18:59:35]MH_I2C_Read... [18:59:35]Read from MH i2c: 01 [18:59:35]MH_I2C_Read... [18:59:35]Read from MH i2c: 01 07 00 [18:59:35]MH_I2C_Read... [18:59:35]Read from MH i2c: 01 07 00 E2 6C 00 00 00 00 00 C6 0C 27 [18:59:35]RasterBufferAndPrint [18:59:35]line [18:59:35]line [18:59:35]line [18:59:35]line [18:59:35]line [18:59:35]written 0, free lines is 3276 [18:59:35]MH_Cut [18:59:35]Write to MH i2c: D1 01 00 E9 6C 01 27 [18:59:35]Write i2c OK [18:59:35]MH_I2C_Read... [18:59:35]Read from MH i2c: D1 [18:59:35]MH_I2C_Read... [18:59:35]Read from MH i2c: D1 01 00 [18:59:35]MH_I2C_Read... [18:59:35]Read from MH i2c: D1 01 00 E9 6C 00 26 [18:59:35]Write to MH i2c: 01 00 00 EA 6C 56 [18:59:35]Write i2c OK [18:59:35]MH_I2C_Read... [18:59:35]Connected sock=10 [18:59:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 44 65 07 01 BE 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 1B F6 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 34 7C 03 00 35 04 06 00 FA AC 0F CA 16 8D 6C 45 13 A0 1A D4 EF B9 [18:59:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 D8 47 47 00 B2 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 34 7C 03 00 F4 03 04 00 12 A1 17 67 B6 04 01 00 00 22 2A DD FF 8D 0A B2 B7 [18:59:36]CommunicateWithHost err = 0 [18:59:36]CheckOFDResponse [18:59:36]1017 (14) - 77093643461234 [18:59:36]1041 (16) - 0000000000871839 [18:59:36]1040 (4) - 228404 [18:59:36]1012 (4) - 22.10.2024 12:56 [18:59:36]1206 (1) - 0 [18:59:36]OFD Sender: Remove packet 228404 [18:59:36]ProducePacketName [18:59:36]name=ofd_packets/00228404 [18:59:36]NVStorageDeleteData [18:59:36]OFD Sender: No OFD packet to send [18:59:36]*** Cut start [18:59:36]*** Partial cut [18:59:36]*** CUTSNS_PIN = 1 [18:59:36]*** CUTSNS_PIN = 0 [18:59:37]*** Brake cut motor [18:59:37]Read from MH i2c: 01 [18:59:37]MH_I2C_Read... [18:59:37]Read from MH i2c: 01 07 00 [18:59:37]MH_I2C_Read... [18:59:37]*** Stop cut motor [18:59:37]Read from MH i2c: 01 07 00 EA 6C 00 00 00 00 00 FF 0F 6B [18:59:37]process_action close_receipt done [18:59:37]requested_data is exist [18:59:37]produce_requested_data [18:59:37]requested_item fm.sn is exist - process it [18:59:37]wFMCommunicate request_size=4 [18:59:37]MH_SAM_APDU [18:59:37]CAPDU: 80 11 00 00 [18:59:37]Write to MH i2c: E2 08 00 EB 6C 80 11 00 00 00 00 00 00 D1 [18:59:37]*** Cut end [18:59:37]Write i2c OK [18:59:37]MH_I2C_Read... [18:59:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:37]Read from MH i2c: E2 [18:59:37]MH_I2C_Read... [18:59:37]Read from MH i2c: E2 17 00 [18:59:37]MH_I2C_Read... [18:59:37]Read from MH i2c: E2 17 00 EB 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 28 [18:59:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:59:37]wFMCommunicate OK [18:59:37]requested_item fd.num is exist - process it [18:59:37]SAM_PROTO_GetFieldsCounters [18:59:37]wFMCommunicate request_size=4 [18:59:37]MH_SAM_APDU [18:59:37]CAPDU: 80 13 00 00 [18:59:37]Write to MH i2c: E2 08 00 EC 6C 80 13 00 00 00 00 00 00 D4 [18:59:37]Write i2c OK [18:59:37]MH_I2C_Read... [18:59:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:37]Read from MH i2c: E2 [18:59:37]MH_I2C_Read... [18:59:37]Read from MH i2c: E2 62 00 [18:59:37]MH_I2C_Read... [18:59:37]Read from MH i2c: E2 62 00 EC 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 34 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 70 01 00 00 5E 04 04 00 70 01 00 00 57 04 04 00 71 01 00 00 19 04 04 00 00 00 00 00 90 00 1C [18:59:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 34 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 70 01 00 00 5E 04 04 00 70 01 00 00 57 04 04 00 71 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:59:37]wFMCommunicate OK [18:59:37]SAM_PROTO_GetFieldsCounters done [18:59:37]requested_item shift.num is exist - process it [18:59:37]requested_item shift.opened is exist - process it [18:59:37]req_shift_opened [18:59:37]FM_GetShiftState [18:59:37]SAM_PROTO_GetShiftState [18:59:37]wFMCommunicate request_size=4 [18:59:37]MH_SAM_APDU [18:59:37]CAPDU: 80 13 01 00 [18:59:37]Write to MH i2c: E2 08 00 ED 6C 80 13 01 00 00 00 00 00 D6 [18:59:37]Write i2c OK [18:59:37]MH_I2C_Read... [18:59:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:37]Read from MH i2c: E2 [18:59:37]MH_I2C_Read... [18:59:37]Read from MH i2c: E2 0E 00 [18:59:37]MH_I2C_Read... [18:59:37]Read from MH i2c: E2 0E 00 ED 6C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 9D [18:59:37]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [18:59:37]wFMCommunicate OK [18:59:37]SAM_PROTO_GetShiftState done [18:59:37]FM_GetShiftState done [18:59:37]req_shift_opened done [18:59:37]requested_item shift.open_date is exist - process it [18:59:37]req_shift_open_date [18:59:37]req_shift_open_date done [18:59:37]produce_requested_data done [18:59:37]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228404,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [18:59:37]process_action_free close_receipt [18:59:37]json_value_free [18:59:37]json_value_free done [18:59:37]process_json_proto returns [18:59:37]Send response to host [18:59:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228404,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [18:59:37]free response buf [18:59:37]execute_script done [18:59:37]execute_script returns [18:59:37]free content buf [18:59:37]Sock 9.Close socket [18:59:37]Sock 9.Thread stoped [18:59:41]OFD Sender: No OFD packet to send [18:59:46]OFD Sender: No OFD packet to send [18:59:51]OFD Sender: No OFD packet to send [18:59:56]OFD Sender: No OFD packet to send [19:00:01]OFD Sender: No OFD packet to send [19:00:06]OFD Sender: No OFD packet to send [19:00:11]OFD Sender: No OFD packet to send [19:00:16]OFD Sender: No OFD packet to send [19:00:21]OFD Sender: No OFD packet to send [19:00:26]OFD Sender: No OFD packet to send [19:00:31]OFD Sender: No OFD packet to send [19:00:36]OFD Sender: No OFD packet to send [19:00:41]OFD Sender: No OFD packet to send [19:00:46]OFD Sender: No OFD packet to send [19:00:51]OFD Sender: No OFD packet to send [19:00:56]OFD Sender: No OFD packet to send [19:01:01]OFD Sender: No OFD packet to send [19:01:06]OFD Sender: No OFD packet to send [19:01:11]OFD Sender: No OFD packet to send [19:01:16]OFD Sender: No OFD packet to send [19:01:21]OFD Sender: No OFD packet to send [19:01:26]OFD Sender: No OFD packet to send [19:01:31]OFD Sender: No OFD packet to send [19:01:36]OFD Sender: No OFD packet to send [19:01:41]OFD Sender: No OFD packet to send [19:01:46]OFD Sender: No OFD packet to send [19:01:51]OFD Sender: No OFD packet to send [19:01:56]OFD Sender: No OFD packet to send [19:02:01]OFD Sender: No OFD packet to send [19:02:06]OFD Sender: No OFD packet to send [19:02:11]OFD Sender: No OFD packet to send [19:02:16]OFD Sender: No OFD packet to send [19:02:21]OFD Sender: No OFD packet to send [19:02:26]OFD Sender: No OFD packet to send [19:02:31]OFD Sender: No OFD packet to send [19:02:36]OFD Sender: No OFD packet to send [19:02:41]OFD Sender: No OFD packet to send [19:02:46]OFD Sender: No OFD packet to send [19:02:51]OFD Sender: No OFD packet to send [19:02:56]OFD Sender: No OFD packet to send [19:03:01]OFD Sender: No OFD packet to send [19:03:06]OFD Sender: No OFD packet to send [19:03:11]OFD Sender: No OFD packet to send [19:03:16]OFD Sender: No OFD packet to send [19:03:21]OFD Sender: No OFD packet to send [19:03:26]OFD Sender: No OFD packet to send [19:03:31]OFD Sender: No OFD packet to send [19:03:36]OFD Sender: No OFD packet to send [19:03:41]OFD Sender: No OFD packet to send [19:03:46]OFD Sender: No OFD packet to send [19:03:51]OFD Sender: No OFD packet to send [19:03:56]OFD Sender: No OFD packet to send [19:04:01]OFD Sender: No OFD packet to send [19:04:06]OFD Sender: No OFD packet to send [19:04:11]OFD Sender: No OFD packet to send [19:04:16]OFD Sender: No OFD packet to send [19:04:21]OFD Sender: No OFD packet to send [19:04:26]OFD Sender: No OFD packet to send [19:04:31]OFD Sender: No OFD packet to send [19:04:36]OFD Sender: No OFD packet to send [19:04:41]OFD Sender: No OFD packet to send [19:04:46]OFD Sender: No OFD packet to send [19:04:51]OFD Sender: No OFD packet to send [19:04:56]OFD Sender: No OFD packet to send [19:05:01]OFD Sender: No OFD packet to send [19:05:06]OFD Sender: No OFD packet to send [19:05:11]OFD Sender: No OFD packet to send [19:05:16]OFD Sender: No OFD packet to send [19:05:21]OFD Sender: No OFD packet to send [19:05:26]OFD Sender: No OFD packet to send [19:05:31]OFD Sender: No OFD packet to send [19:05:36]OFD Sender: No OFD packet to send [19:05:41]OFD Sender: No OFD packet to send [19:05:46]OFD Sender: No OFD packet to send [19:05:51]OFD Sender: No OFD packet to send [19:05:56]OFD Sender: No OFD packet to send [19:06:01]OFD Sender: No OFD packet to send [19:06:06]OFD Sender: No OFD packet to send [19:06:11]OFD Sender: No OFD packet to send [19:06:17]OFD Sender: No OFD packet to send [19:06:22]OFD Sender: No OFD packet to send [19:06:27]OFD Sender: No OFD packet to send [19:06:32]OFD Sender: No OFD packet to send [19:06:37]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:33]accept exits with 7 [19:09:33]New connection [19:09:33]New thread 3066994020 created [19:09:33]Thread 3067137380 joined [19:09:33]Waiting for new connection... [19:09:33] Sock 7.Parse request [19:09:33]Sock 7.Check first char [19:09:33]Sock 7.First char is OK [19:09:33]request: POST /json_proto HTTP/1.0 [19:09:33]Method: POST [19:09:33]URL: /json_proto [19:09:33]Method is POST - this is cgi request [19:09:33]url: /json_proto [19:09:33]query_string will be loaded in cgi processing [19:09:33]execute_cgi json_proto POST (null) [19:09:33]execute_cgi path=json_proto method=POST [19:09:33]POST find Content-Length [19:09:33]Host: 172.17.44.195:8080 [19:09:33]Content-Length: 664 [19:09:33]Content-Type: application/json [19:09:33] [19:09:33]POST finish read [19:09:33]Found Content-Length = 664 [19:09:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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:09:33]execute_script... [19:09: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)1964959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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:09:33]POST & json_proto [19:09:33]process_json_proto [19:09:33]json parsed OK: [19:09:33]protocol is kg_v1.0 [19:09:33]action value=close_receipt [19:09:33]process_action close_receipt [19:09:33]cmd_close_receipt [19:09:33]MH_GetDate [19:09:33]Write to MH i2c: F0 00 00 EE 6C 49 [19:09:33]Write i2c OK [19:09:33]MH_I2C_Read... [19:09:33]Read from MH i2c: F0 [19:09:33]MH_I2C_Read... [19:09:33]Read from MH i2c: F0 09 00 [19:09:33]MH_I2C_Read... [19:09:33]Read from MH i2c: F0 09 00 EE 6C 00 72 F8 17 67 82 C9 CF 66 BA [19:09:33]GetLastDocTimeStamp 1729623579 [19:09:33]current date 1729624178 [19:09:33]FM_GetShiftState [19:09:33]SAM_PROTO_GetShiftState [19:09:33]wFMCommunicate request_size=4 [19:09:33]MH_SAM_APDU [19:09:33]CAPDU: 80 13 01 00 [19:09:33]Write to MH i2c: E2 08 00 EF 6C 80 13 01 00 00 00 00 00 D8 [19:09:33]Write i2c OK [19:09:33]MH_I2C_Read... [19:09:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:33]Read from MH i2c: E2 [19:09:33]MH_I2C_Read... [19:09:33]Read from MH i2c: E2 0E 00 [19:09:33]MH_I2C_Read... [19:09:33]Read from MH i2c: E2 0E 00 EF 6C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 9F [19:09:33]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [19:09:33]wFMCommunicate OK [19:09:33]SAM_PROTO_GetShiftState done [19:09:33]FM_GetShiftState done [19:09:33]opened in 1729555538 [19:09:33]opened+sec_in_day 1729641938 [19:09:33]quantity*price = 100000 [19:09:33]sum+1 = 100002 [19:09:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 369 22.10.2024 19:09 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228405 ФПД: 104712032734224 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T190939&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228405&fm=104712032734224&tin=02508201610067®Number=0000000000091685&sum=100000 [19:09:34]StoreToDocumentArchive [19:09:34]shift 535 fd 228405 [19:09:34]save to /storage/0535/doc_00228405 [19:09:34]save last doc name /storage/0535/doc_00228405 to /storage/kkm_last_doc_name [19:09:34]save OK [19:09:34]Clear old archive folders... [19:09:34]ProcessDocumentItem done err = 0, tmpTLVsize=244 [19:09:34]tlvbuf is 0098E3A0 [19:09:34]SAM_PROTO_ClearQueue [19:09:34]wFMCommunicate request_size=4 [19:09:34]MH_SAM_APDU [19:09:34]CAPDU: 80 09 00 00 [19:09:34]Write to MH i2c: E2 08 00 FC 6C 80 09 00 00 00 00 00 00 DA [19:09:34]Write i2c OK [19:09:34]MH_I2C_Read... [19:09:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:34]Read from MH i2c: E2 [19:09:34]MH_I2C_Read... [19:09:34]Read from MH i2c: E2 03 00 [19:09:34]MH_I2C_Read... [19:09:34]Read from MH i2c: E2 03 00 FC 6C 00 90 00 DC [19:09:34]RAPDU: 90 00 [19:09:34]wFMCommunicate OK [19:09:34]SAM_PROTO_ClearQueue done [19:09:34]KKMCreateOFDPacket [19:09:34]OFDProtocolAddRootSTLVToBuf [19:09:34]FM_MakeSignedData [19:09:34]FM_MakeSignedData [19:09:34]SAM_PROTO_SignData [19:09:34]wFMCommunicate request_size=4 [19:09:34]MH_SAM_APDU [19:09:34]CAPDU: 80 0D 01 02 [19:09:34]Write to MH i2c: E2 08 00 FD 6C 80 0D 01 02 00 00 00 00 E2 [19:09:34]Write i2c OK [19:09:34]MH_I2C_Read... [19:09:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:34]Read from MH i2c: E2 [19:09:34]MH_I2C_Read... [19:09:34]Read from MH i2c: E2 03 00 [19:09:34]MH_I2C_Read... [19:09:34]Read from MH i2c: E2 03 00 FD 6C 00 90 00 DD [19:09:34]RAPDU: 90 00 [19:09:34]wFMCommunicate OK [19:09:34]wFMCommunicate request_size=253 [19:09:34]MH_SAM_APDU [19:09:34]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 73 F8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 35 7C 03 00 35 04 06 00 5F 3C 2B 83 CC 10 [19:09:34]Write to MH i2c: E2 00 01 FE 6C 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 73 F8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 35 7C 03 00 35 04 06 00 5F 3C 2B 83 CC 10 00 00 A9 [19:09:34]Write i2c OK [19:09:34]MH_I2C_Read... [19:09:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:34]Read from MH i2c: E2 [19:09:34]MH_I2C_Read... [19:09:34]Read from MH i2c: E2 03 00 [19:09:34]MH_I2C_Read... [19:09:34]Read from MH i2c: E2 03 00 FE 6C 00 90 00 DE [19:09:34]RAPDU: 90 00 [19:09:34]wFMCommunicate OK [19:09:34]wFMCommunicate request_size=4 [19:09:34]MH_SAM_APDU [19:09:34]CAPDU: 80 0D 03 02 [19:09:34]Write to MH i2c: E2 08 00 FF 6C 80 0D 03 02 00 00 00 00 E6 [19:09:34]Write i2c OK [19:09:34]MH_I2C_Read... [19:09:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:34]Read from MH i2c: E2 [19:09:34]MH_I2C_Read... [19:09:34]Read from MH i2c: E2 0B 00 [19:09:34]MH_I2C_Read... [19:09:34]Read from MH i2c: E2 0B 00 FF 6C 00 A1 00 AF 36 22 07 76 89 90 00 95 [19:09:34]RAPDU: A1 00 AF 36 22 07 76 89 90 00 [19:09:34]wFMCommunicate OK [19:09:34]SAM_PROTO_SignData done [19:09:34]FM_MakeSignedData done [19:09:34]CreateOFDProtocolMessage [19:09:34]wFMCommunicate request_size=4 [19:09:34]MH_SAM_APDU [19:09:34]CAPDU: 80 11 00 00 [19:09:34]Write to MH i2c: E2 08 00 00 6D 80 11 00 00 00 00 00 00 E7 [19:09:34]Write i2c OK [19:09:34]MH_I2C_Read... [19:09:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:34]Read from MH i2c: E2 [19:09:34]MH_I2C_Read... [19:09:34]Read from MH i2c: E2 17 00 [19:09:34]MH_I2C_Read... [19:09:34]Read from MH i2c: E2 17 00 00 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 3E [19:09:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:09:34]wFMCommunicate OK [19:09:34]CreateOFDProtocolMessage done [19:09:34]OFDSenderStorePacket 228405 [19:09:34]StoreOFDPacket docnum=228405 [19:09:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 03 C7 00 01 17 E0 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 73 F8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 35 7C 03 00 35 04 06 00 5F 3C 2B 83 CC 10 A1 00 AF 36 22 07 76 89 [19:09:34]CheckFolder [19:09:34]dirname=/storage/ofd_packets [19:09:34]CheckFolder done [19:09:34]ProducePacketName [19:09:34]name=ofd_packets/00228405 [19:09:34]NVStorageSaveData ofd_packets/00228405 [19:09:34]File name is /storage/ofd_packets/00228405 [19:09:34]Write 294 bytes [19:09:34]NVStorageSaveData done [19:09:34]OFDSenderStorePacket done [19:09:34]KKMCreateOFDPacket done [19:09:34]NVStorageSaveData kkm_last_timestamp [19:09:34]File name is /storage/kkm_last_timestamp [19:09:34]Write 4 bytes [19:09:34]NVStorageSaveData done [19:09:34]ExternCall_PrintAddStr [19:09:34]wPrintStart [19:09:34]Write to MH i2c: 01 00 00 01 6D 6E [19:09:34]Write i2c OK [19:09:34]MH_I2C_Read... [19:09:34]Read from MH i2c: 01 [19:09:34]MH_I2C_Read... [19:09:34]Read from MH i2c: 01 07 00 [19:09:34]MH_I2C_Read... [19:09:34]Read from MH i2c: 01 07 00 01 6D 00 00 00 00 00 FF 0F 83 [19:09:34]RasterBufferAndPrint [19:09:34]line Счет N : (1)1964959 [19:09:34]line ИНН: 02508201610067 [19:09:34]line Контрольно-Кассовый Чек [19:09:34]line ПРОДАЖА [19:09:34]line ТРК (МРК, ГНК) : 42 [19:09:34]line Товар: 2710124130 [19:09:34]line SU-92 [19:09:34]line 14.620 * 68.40 [19:09:34]line = 1000.01 [19:09:34]line НДС 12% НСП 1% [19:09:34]line > о реализуемом товаре [19:09:34]line ОКРУГЛЕНИЕ: -0.01 [19:09:34]line ИТОГО: 1000.00 [19:09:34]line Внесено: 1000.00 [19:09:34]line СДАЧА: 0.00 [19:09:34]line НСП 1% : 8.85 [19:09:34]line НДС 12% : 106.20 [19:09:34]line Наличными: 1000.00 [19:09:34]line Безнал.: 0.00 [19:09:34]line Место: АЗС № 133 "Партнер Нефть" [19:09:34]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:09:34]line СНО: Общий режим [19:09:34]line Чек 369 22.10.2024 19:09 [19:09:34]line Смена: 535 ФФД: 1.0 [19:09:34]line ЗНМ: 0300000091 [19:09:34]line РНМ: 0000000000091685 [19:09:34]line Версия ККМ: 001 [19:09:34]line ФМ: 0000000000871839 [19:09:34]line ФД: 228405 [19:09:34]line ФПД: 104712032734224 [19:09:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T190939&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228405&fm=104712032734224&tin=02508201610067®Number=0000000000091685&sum=100000 [19:09:35]OFD Sender: Processing packet 228405 [packets to send 38, broken 37] [19:09:35]ProducePacketName [19:09:35]name=ofd_packets/00228405 [19:09:35]OFD Sender: To server: pG, [19:09:35]CommunicateWithHost lk.salyk.kg:30040 [19:09:35]ConnectInit lk.salyk.kg [19:09:35]written 0, free lines is 4095 [19:09:35]Connected sock=10 [19:09:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 03 C7 00 01 17 E0 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 73 F8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 35 7C 03 00 35 04 06 00 5F 3C 2B 83 CC 10 A1 00 AF 36 22 07 76 89 [19:09:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 ED F9 47 00 F0 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 35 7C 03 00 F4 03 04 00 6A A3 17 67 B6 04 01 00 00 E0 5C AE D1 0A D0 35 2A [19:09:35]CommunicateWithHost err = 0 [19:09:35]CheckOFDResponse [19:09:35]1017 (14) - 77093643461234 [19:09:35]1041 (16) - 0000000000871839 [19:09:35]1040 (4) - 228405 [19:09:35]1012 (4) - 22.10.2024 13:06 [19:09:35]1206 (1) - 0 [19:09:35]OFD Sender: Remove packet 228405 [19:09:35]ProducePacketName [19:09:35]name=ofd_packets/00228405 [19:09:35]NVStorageDeleteData [19:09:35]Write to MH i2c: 01 00 00 2B 6D 98 [19:09:35]Write i2c OK [19:09:35]MH_I2C_Read... [19:09:35]Read from MH i2c: 01 [19:09:35]MH_I2C_Read... [19:09:35]Read from MH i2c: 01 07 00 [19:09:35]MH_I2C_Read... [19:09:35]Read from MH i2c: 01 07 00 2B 6D 00 00 00 00 00 AE 0C 59 [19:09:35]RasterBufferAndPrint [19:09:35]line [19:09:35]line [19:09:35]line [19:09:35]line [19:09:35]line [19:09:35]written 0, free lines is 3250 [19:09:35]MH_Cut [19:09:35]Write to MH i2c: D1 01 00 32 6D 01 71 [19:09:35]Write i2c OK [19:09:35]MH_I2C_Read... [19:09:35]Read from MH i2c: D1 [19:09:35]MH_I2C_Read... [19:09:35]Read from MH i2c: D1 01 00 [19:09:35]MH_I2C_Read... [19:09:35]Read from MH i2c: D1 01 00 32 6D 00 70 [19:09:35]Write to MH i2c: 01 00 00 33 6D A0 [19:09:35]Write i2c OK [19:09:35]MH_I2C_Read... [19:09:35]OFD Sender: No OFD packet to send [19:09:36]*** Cut start [19:09:36]*** Partial cut [19:09:36]*** CUTSNS_PIN = 1 [19:09:36]*** CUTSNS_PIN = 0 [19:09:36]*** Brake cut motor [19:09:37]Read from MH i2c: 01 [19:09:37]MH_I2C_Read... [19:09:37]*** Stop cut motor [19:09:37]*** Cut end [19:09:37]Read from MH i2c: 01 07 00 [19:09:37]MH_I2C_Read... [19:09:37]Read from MH i2c: 01 07 00 33 6D 00 00 00 00 00 FF 0F B5 [19:09:37]process_action close_receipt done [19:09:37]requested_data is exist [19:09:37]produce_requested_data [19:09:37]requested_item fm.sn is exist - process it [19:09:37]wFMCommunicate request_size=4 [19:09:37]MH_SAM_APDU [19:09:37]CAPDU: 80 11 00 00 [19:09:37]Write to MH i2c: E2 08 00 34 6D 80 11 00 00 00 00 00 00 1B [19:09:37]Write i2c OK [19:09:37]MH_I2C_Read... [19:09:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:37]Read from MH i2c: E2 [19:09:37]MH_I2C_Read... [19:09:37]Read from MH i2c: E2 17 00 [19:09:37]MH_I2C_Read... [19:09:37]Read from MH i2c: E2 17 00 34 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 72 [19:09:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:09:37]wFMCommunicate OK [19:09:37]requested_item fd.num is exist - process it [19:09:37]SAM_PROTO_GetFieldsCounters [19:09:37]wFMCommunicate request_size=4 [19:09:37]MH_SAM_APDU [19:09:37]CAPDU: 80 13 00 00 [19:09:37]Write to MH i2c: E2 08 00 35 6D 80 13 00 00 00 00 00 00 1E [19:09:37]Write i2c OK [19:09:37]MH_I2C_Read... [19:09:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:37]Read from MH i2c: E2 [19:09:37]MH_I2C_Read... [19:09:37]Read from MH i2c: E2 62 00 [19:09:37]MH_I2C_Read... [19:09:37]Read from MH i2c: E2 62 00 35 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 35 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 6A [19:09:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 35 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:09:37]wFMCommunicate OK [19:09:37]SAM_PROTO_GetFieldsCounters done [19:09:37]requested_item shift.num is exist - process it [19:09:37]requested_item shift.opened is exist - process it [19:09:37]req_shift_opened [19:09:37]FM_GetShiftState [19:09:37]SAM_PROTO_GetShiftState [19:09:37]wFMCommunicate request_size=4 [19:09:37]MH_SAM_APDU [19:09:37]CAPDU: 80 13 01 00 [19:09:37]Write to MH i2c: E2 08 00 36 6D 80 13 01 00 00 00 00 00 20 [19:09:37]Write i2c OK [19:09:37]MH_I2C_Read... [19:09:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:37]Read from MH i2c: E2 [19:09:37]MH_I2C_Read... [19:09:37]Read from MH i2c: E2 0E 00 [19:09:37]MH_I2C_Read... [19:09:37]Read from MH i2c: E2 0E 00 36 6D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 E7 [19:09:37]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [19:09:37]wFMCommunicate OK [19:09:37]SAM_PROTO_GetShiftState done [19:09:37]FM_GetShiftState done [19:09:37]req_shift_opened done [19:09:37]requested_item shift.open_date is exist - process it [19:09:37]req_shift_open_date [19:09:37]req_shift_open_date done [19:09:37]produce_requested_data done [19:09:37]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228405,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [19:09:37]process_action_free close_receipt [19:09:37]json_value_free [19:09:37]json_value_free done [19:09:37]process_json_proto returns [19:09:37]Send response to host [19:09:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228405,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [19:09:37]free response buf [19:09:37]execute_script done [19:09:37]execute_script returns [19:09:37]free content buf [19:09:37]Sock 7.Close socket [19:09:37]Sock 7.Thread stoped [19:09:40]OFD Sender: No OFD packet to send [19:09:45]OFD Sender: No OFD packet to send [19:09:50]OFD Sender: No OFD packet to send [19:09:55]OFD Sender: No OFD packet to send [19:10:00]OFD Sender: No OFD packet to send [19:10:05]OFD Sender: No OFD packet to send [19:10:10]OFD Sender: No OFD packet to send [19:10:16]OFD Sender: No OFD packet to send [19:10:21]OFD Sender: No OFD packet to send [19:10:26]OFD Sender: No OFD packet to send [19:10:31]OFD Sender: No OFD packet to send [19:10:36]OFD Sender: No OFD packet to send [19:10:41]OFD Sender: No OFD packet to send [19:10:46]OFD Sender: No OFD packet to send [19:10:51]OFD Sender: No OFD packet to send [19:10:56]OFD Sender: No OFD packet to send [19:11:01]OFD Sender: No OFD packet to send [19:11:06]OFD Sender: No OFD packet to send [19:11:11]OFD Sender: No OFD packet to send [19:11:16]OFD Sender: No OFD packet to send [19:11:21]OFD Sender: No OFD packet to send [19:11:26]OFD Sender: No OFD packet to send [19:11:31]OFD Sender: No OFD packet to send [19:11:36]OFD Sender: No OFD packet to send [19:11:41]OFD Sender: No OFD packet to send [19:11:42]accept exits with 9 [19:11:42]New connection [19:11:42]New thread 3067137380 created [19:11:42]Thread 3066994020 joined [19:11:42]Waiting for new connection... [19:11:42] Sock 9.Parse request [19:11:42]Sock 9.Check first char [19:11:42]Sock 9.First char is OK [19:11:42]request: POST /json_proto HTTP/1.0 [19:11:42]Method: POST [19:11:42]URL: /json_proto [19:11:42]Method is POST - this is cgi request [19:11:42]url: /json_proto [19:11:42]query_string will be loaded in cgi processing [19:11:42]execute_cgi json_proto POST (null) [19:11:42]execute_cgi path=json_proto method=POST [19:11:42]POST find Content-Length [19:11:42]Host: 172.17.44.195:8080 [19:11:42]Content-Length: 621 [19:11:42]Content-Type: application/json [19:11:42] [19:11:42]POST finish read [19:11:42]Found Content-Length = 621 [19:11:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:42]execute_script... [19:11: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)1964961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:42]POST & json_proto [19:11:42]process_json_proto [19:11:42]json parsed OK: [19:11:42]protocol is kg_v1.0 [19:11:42]action value=close_receipt [19:11:42]process_action close_receipt [19:11:42]cmd_close_receipt [19:11:42]MH_GetDate [19:11:42]Write to MH i2c: F0 00 00 37 6D 93 [19:11:42]Write i2c OK [19:11:42]MH_I2C_Read... [19:11:42]Read from MH i2c: F0 [19:11:42]MH_I2C_Read... [19:11:42]Read from MH i2c: F0 09 00 [19:11:42]MH_I2C_Read... [19:11:42]Read from MH i2c: F0 09 00 37 6D 00 F4 F8 17 67 82 C9 CF 66 86 [19:11:42]GetLastDocTimeStamp 1729624179 [19:11:42]current date 1729624308 [19:11:42]FM_GetShiftState [19:11:42]SAM_PROTO_GetShiftState [19:11:42]wFMCommunicate request_size=4 [19:11:42]MH_SAM_APDU [19:11:42]CAPDU: 80 13 01 00 [19:11:42]Write to MH i2c: E2 08 00 38 6D 80 13 01 00 00 00 00 00 22 [19:11:42]Write i2c OK [19:11:42]MH_I2C_Read... [19:11:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:42]Read from MH i2c: E2 [19:11:42]MH_I2C_Read... [19:11:42]Read from MH i2c: E2 0E 00 [19:11:42]MH_I2C_Read... [19:11:42]Read from MH i2c: E2 0E 00 38 6D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 E9 [19:11:42]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [19:11:42]wFMCommunicate OK [19:11:42]SAM_PROTO_GetShiftState done [19:11:42]FM_GetShiftState done [19:11:42]opened in 1729555538 [19:11:42]opened+sec_in_day 1729641938 [19:11:42]quantity*price = 50000 [19:11:42]sum+1 = 50001 [19:11:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 370 22.10.2024 19:11 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228406 ФПД: 244386113611583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191148&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228406&fm=244386113611583&tin=02508201610067®Number=0000000000091685&sum=50000 [19:11:43]StoreToDocumentArchive [19:11:43]shift 535 fd 228406 [19:11:43]save to /storage/0535/doc_00228406 [19:11:43]save last doc name /storage/0535/doc_00228406 to /storage/kkm_last_doc_name [19:11:43]save OK [19:11:43]Clear old archive folders... [19:11:43]ProcessDocumentItem done err = 0, tmpTLVsize=244 [19:11:43]tlvbuf is 0093C820 [19:11:43]SAM_PROTO_ClearQueue [19:11:43]wFMCommunicate request_size=4 [19:11:43]MH_SAM_APDU [19:11:43]CAPDU: 80 09 00 00 [19:11:43]Write to MH i2c: E2 08 00 45 6D 80 09 00 00 00 00 00 00 24 [19:11:43]Write i2c OK [19:11:43]MH_I2C_Read... [19:11:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:11:43]Read from MH i2c: E2 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 03 00 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 03 00 45 6D 00 90 00 26 [19:11:43]RAPDU: 90 00 [19:11:43]wFMCommunicate OK [19:11:43]SAM_PROTO_ClearQueue done [19:11:43]KKMCreateOFDPacket [19:11:43]OFDProtocolAddRootSTLVToBuf [19:11:43]FM_MakeSignedData [19:11:43]FM_MakeSignedData [19:11:43]SAM_PROTO_SignData [19:11:43]wFMCommunicate request_size=4 [19:11:43]MH_SAM_APDU [19:11:43]CAPDU: 80 0D 01 02 [19:11:43]Write to MH i2c: E2 08 00 46 6D 80 0D 01 02 00 00 00 00 2C [19:11:43]Write i2c OK [19:11:43]MH_I2C_Read... [19:11:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:11:44]Read from MH i2c: E2 [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: E2 03 00 [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: E2 03 00 46 6D 00 90 00 27 [19:11:44]RAPDU: 90 00 [19:11:44]wFMCommunicate OK [19:11:44]wFMCommunicate request_size=253 [19:11:44]MH_SAM_APDU [19:11:44]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 F4 F8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 36 7C 03 00 35 04 06 00 DE 44 93 7D 67 3F [19:11:44]Write to MH i2c: E2 00 01 47 6D 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 F4 F8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 36 7C 03 00 35 04 06 00 DE 44 93 7D 67 3F 00 00 B1 [19:11:44]Write i2c OK [19:11:44]MH_I2C_Read... [19:11:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:44]Read from MH i2c: E2 [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: E2 03 00 [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: E2 03 00 47 6D 00 90 00 28 [19:11:44]RAPDU: 90 00 [19:11:44]wFMCommunicate OK [19:11:44]wFMCommunicate request_size=4 [19:11:44]MH_SAM_APDU [19:11:44]CAPDU: 80 0D 03 02 [19:11:44]Write to MH i2c: E2 08 00 48 6D 80 0D 03 02 00 00 00 00 30 [19:11:44]Write i2c OK [19:11:44]MH_I2C_Read... [19:11:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:11:44]Read from MH i2c: E2 [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: E2 0B 00 [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: E2 0B 00 48 6D 00 89 34 88 51 6F F4 7C 9E 90 00 44 [19:11:44]RAPDU: 89 34 88 51 6F F4 7C 9E 90 00 [19:11:44]wFMCommunicate OK [19:11:44]SAM_PROTO_SignData done [19:11:44]FM_MakeSignedData done [19:11:44]CreateOFDProtocolMessage [19:11:44]wFMCommunicate request_size=4 [19:11:44]MH_SAM_APDU [19:11:44]CAPDU: 80 11 00 00 [19:11:44]Write to MH i2c: E2 08 00 49 6D 80 11 00 00 00 00 00 00 30 [19:11:44]Write i2c OK [19:11:44]MH_I2C_Read... [19:11:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:44]Read from MH i2c: E2 [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: E2 17 00 [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: E2 17 00 49 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 87 [19:11:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:11:44]wFMCommunicate OK [19:11:44]CreateOFDProtocolMessage done [19:11:44]OFDSenderStorePacket 228406 [19:11:44]StoreOFDPacket docnum=228406 [19:11:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 CD 88 00 01 1F 5D 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 F4 F8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 36 7C 03 00 35 04 06 00 DE 44 93 7D 67 3F 89 34 88 51 6F F4 7C 9E [19:11:44]CheckFolder [19:11:44]dirname=/storage/ofd_packets [19:11:44]CheckFolder done [19:11:44]ProducePacketName [19:11:44]name=ofd_packets/00228406 [19:11:44]NVStorageSaveData ofd_packets/00228406 [19:11:44]File name is /storage/ofd_packets/00228406 [19:11:44]Write 294 bytes [19:11:44]NVStorageSaveData done [19:11:44]OFDSenderStorePacket done [19:11:44]KKMCreateOFDPacket done [19:11:44]NVStorageSaveData kkm_last_timestamp [19:11:44]File name is /storage/kkm_last_timestamp [19:11:44]Write 4 bytes [19:11:44]NVStorageSaveData done [19:11:44]ExternCall_PrintAddStr [19:11:44]wPrintStart [19:11:44]Write to MH i2c: 01 00 00 4A 6D B7 [19:11:44]Write i2c OK [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: 01 [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: 01 07 00 [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: 01 07 00 4A 6D 00 00 00 00 00 FF 0F CC [19:11:44]RasterBufferAndPrint [19:11:44]line Счет N : (1)1964961 [19:11:44]line ИНН: 02508201610067 [19:11:44]line Контрольно-Кассовый Чек [19:11:44]line ПРОДАЖА [19:11:44]line ТРК (МРК, ГНК) : 62 [19:11:44]line Товар: 2710124130 [19:11:44]line SU-92 [19:11:44]line 7.310 * 68.40 [19:11:44]line = 500.00 [19:11:44]line НДС 12% НСП 1% [19:11:44]line > о реализуемом товаре [19:11:44]line ИТОГО: 500.00 [19:11:44]line НСП 1% : 4.42 [19:11:44]line НДС 12% : 53.10 [19:11:44]line Наличными: 500.00 [19:11:44]line Безнал.: 0.00 [19:11:44]line Место: АЗС № 133 "Партнер Нефть" [19:11:44]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:11:44]line СНО: Общий режим [19:11:44]line Чек 370 22.10.2024 19:11 [19:11:44]line Смена: 535 ФФД: 1.0 [19:11:44]line ЗНМ: 0300000091 [19:11:44]line РНМ: 0000000000091685 [19:11:44]line Версия ККМ: 001 [19:11:44]line ФМ: 0000000000871839 [19:11:44]line ФД: 228406 [19:11:44]line ФПД: 244386113611583 [19:11:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191148&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228406&fm=244386113611583&tin=02508201610067®Number=0000000000091685&sum=50000 [19:11:44]OFD Sender: Processing packet 228406 [packets to send 38, broken 37] [19:11:44]ProducePacketName [19:11:44]name=ofd_packets/00228406 [19:11:44]OFD Sender: To server: pG, [19:11:44]CommunicateWithHost lk.salyk.kg:30040 [19:11:44]ConnectInit lk.salyk.kg [19:11:44]written 0, free lines is 4095 [19:11:44]Connected sock=10 [19:11:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 CD 88 00 01 1F 5D 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 F4 F8 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 36 7C 03 00 35 04 06 00 DE 44 93 7D 67 3F 89 34 88 51 6F F4 7C 9E [19:11:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 C6 7D 47 00 E9 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 36 7C 03 00 F4 03 04 00 EB A3 17 67 B6 04 01 00 00 4A FF D8 D4 64 88 59 36 [19:11:45]CommunicateWithHost err = 0 [19:11:45]CheckOFDResponse [19:11:45]1017 (14) - 77093643461234 [19:11:45]1041 (16) - 0000000000871839 [19:11:45]1040 (4) - 228406 [19:11:45]1012 (4) - 22.10.2024 13:08 [19:11:45]1206 (1) - 0 [19:11:45]OFD Sender: Remove packet 228406 [19:11:45]ProducePacketName [19:11:45]name=ofd_packets/00228406 [19:11:45]NVStorageDeleteData [19:11:45]Write to MH i2c: 01 00 00 71 6D DE [19:11:45]Write i2c OK [19:11:45]MH_I2C_Read... [19:11:45]Read from MH i2c: 01 [19:11:45]MH_I2C_Read... [19:11:45]Read from MH i2c: 01 07 00 [19:11:45]MH_I2C_Read... [19:11:45]Read from MH i2c: 01 07 00 71 6D 00 00 00 00 00 E5 0C D6 [19:11:45]RasterBufferAndPrint [19:11:45]line [19:11:45]line [19:11:45]line [19:11:45]line [19:11:45]line [19:11:45]written 0, free lines is 3305 [19:11:45]MH_Cut [19:11:45]Write to MH i2c: D1 01 00 78 6D 01 B7 [19:11:45]Write i2c OK [19:11:45]MH_I2C_Read... [19:11:45]Read from MH i2c: D1 [19:11:45]MH_I2C_Read... [19:11:45]Read from MH i2c: D1 01 00 [19:11:45]MH_I2C_Read... [19:11:45]Read from MH i2c: D1 01 00 78 6D 00 B6 [19:11:45]Write to MH i2c: 01 00 00 79 6D E6 [19:11:45]Write i2c OK [19:11:45]MH_I2C_Read... [19:11:45]OFD Sender: No OFD packet to send [19:11:46]*** Cut start [19:11:46]*** Partial cut [19:11:46]*** CUTSNS_PIN = 1 [19:11:46]*** CUTSNS_PIN = 0 [19:11:46]*** Brake cut motor [19:11:46]Read from MH i2c: 01 [19:11:46]MH_I2C_Read... [19:11:46]*** Stop cut motor [19:11:46]*** Cut end [19:11:46]Read from MH i2c: 01 07 00 [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: 01 07 00 79 6D 00 00 00 00 00 FF 0F FB [19:11:46]process_action close_receipt done [19:11:46]requested_data is exist [19:11:46]produce_requested_data [19:11:46]requested_item fm.sn is exist - process it [19:11:46]wFMCommunicate request_size=4 [19:11:46]MH_SAM_APDU [19:11:46]CAPDU: 80 11 00 00 [19:11:46]Write to MH i2c: E2 08 00 7A 6D 80 11 00 00 00 00 00 00 61 [19:11:46]Write i2c OK [19:11:46]MH_I2C_Read... [19:11:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:46]Read from MH i2c: E2 [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: E2 17 00 [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: E2 17 00 7A 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B8 [19:11:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:11:46]wFMCommunicate OK [19:11:46]requested_item fd.num is exist - process it [19:11:46]SAM_PROTO_GetFieldsCounters [19:11:46]wFMCommunicate request_size=4 [19:11:46]MH_SAM_APDU [19:11:46]CAPDU: 80 13 00 00 [19:11:46]Write to MH i2c: E2 08 00 7B 6D 80 13 00 00 00 00 00 00 64 [19:11:46]Write i2c OK [19:11:46]MH_I2C_Read... [19:11:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:11:46]Read from MH i2c: E2 [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: E2 62 00 [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: E2 62 00 7B 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 36 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 72 01 00 00 5E 04 04 00 72 01 00 00 57 04 04 00 73 01 00 00 19 04 04 00 00 00 00 00 90 00 B4 [19:11:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 36 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 72 01 00 00 5E 04 04 00 72 01 00 00 57 04 04 00 73 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:11:46]wFMCommunicate OK [19:11:46]SAM_PROTO_GetFieldsCounters done [19:11:46]requested_item shift.num is exist - process it [19:11:46]requested_item shift.opened is exist - process it [19:11:46]req_shift_opened [19:11:46]FM_GetShiftState [19:11:46]SAM_PROTO_GetShiftState [19:11:46]wFMCommunicate request_size=4 [19:11:46]MH_SAM_APDU [19:11:46]CAPDU: 80 13 01 00 [19:11:46]Write to MH i2c: E2 08 00 7C 6D 80 13 01 00 00 00 00 00 66 [19:11:46]Write i2c OK [19:11:46]MH_I2C_Read... [19:11:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:46]Read from MH i2c: E2 [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: E2 0E 00 [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: E2 0E 00 7C 6D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 2D [19:11:46]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [19:11:46]wFMCommunicate OK [19:11:46]SAM_PROTO_GetShiftState done [19:11:46]FM_GetShiftState done [19:11:46]req_shift_opened done [19:11:46]requested_item shift.open_date is exist - process it [19:11:46]req_shift_open_date [19:11:46]req_shift_open_date done [19:11:46]produce_requested_data done [19:11:46]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228406,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [19:11:46]process_action_free close_receipt [19:11:46]json_value_free [19:11:46]json_value_free done [19:11:46]process_json_proto returns [19:11:46]Send response to host [19:11:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228406,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [19:11:46]free response buf [19:11:46]execute_script done [19:11:46]execute_script returns [19:11:46]free content buf [19:11:46]Sock 9.Close socket [19:11:46]Sock 9.Thread stoped [19:11:50]OFD Sender: No OFD packet to send [19:11:55]OFD Sender: No OFD packet to send [19:12:00]OFD Sender: No OFD packet to send [19:12:05]OFD Sender: No OFD packet to send [19:12:10]OFD Sender: No OFD packet to send [19:12:15]OFD Sender: No OFD packet to send [19:12:20]OFD Sender: No OFD packet to send [19:12:25]OFD Sender: No OFD packet to send [19:12:30]OFD Sender: No OFD packet to send [19:12:35]OFD Sender: No OFD packet to send [19:12:40]OFD Sender: No OFD packet to send [19:12:45]OFD Sender: No OFD packet to send [19:12:50]OFD Sender: No OFD packet to send [19:12:55]OFD Sender: No OFD packet to send [19:13:00]OFD Sender: No OFD packet to send [19:13:05]OFD Sender: No OFD packet to send [19:13:10]OFD Sender: No OFD packet to send [19:13:15]OFD Sender: No OFD packet to send [19:13:20]OFD Sender: No OFD packet to send [19:13:25]OFD Sender: No OFD packet to send [19:13:30]OFD Sender: No OFD packet to send [19:13:35]OFD Sender: No OFD packet to send [19:13:40]OFD Sender: No OFD packet to send [19:13:45]OFD Sender: No OFD packet to send [19:13:50]OFD Sender: No OFD packet to send [19:13:55]OFD Sender: No OFD packet to send [19:14:00]OFD Sender: No OFD packet to send [19:14:05]OFD Sender: No OFD packet to send [19:14:10]OFD Sender: No OFD packet to send [19:14:15]OFD Sender: No OFD packet to send [19:14:20]OFD Sender: No OFD packet to send [19:14:25]OFD Sender: No OFD packet to send [19:14:30]OFD Sender: No OFD packet to send [19:14:35]OFD Sender: No OFD packet to send [19:14:40]OFD Sender: No OFD packet to send [19:14:45]OFD Sender: No OFD packet to send [19:14:50]OFD Sender: No OFD packet to send [19:14:55]OFD Sender: No OFD packet to send [19:15:00]OFD Sender: No OFD packet to send [19:15:05]OFD Sender: No OFD packet to send [19:15:08]accept exits with 7 [19:15:08]New connection [19:15:08]New thread 3066994020 created [19:15:08]Thread 3067137380 joined [19:15:08]Waiting for new connection... [19:15:08] Sock 7.Parse request [19:15:08]Sock 7.Check first char [19:15:08]Sock 7.First char is OK [19:15:08]request: POST /json_proto HTTP/1.0 [19:15:08]Method: POST [19:15:08]URL: /json_proto [19:15:08]Method is POST - this is cgi request [19:15:08]url: /json_proto [19:15:08]query_string will be loaded in cgi processing [19:15:08]execute_cgi json_proto POST (null) [19:15:08]execute_cgi path=json_proto method=POST [19:15:08]POST find Content-Length [19:15:08]Host: 172.17.44.195:8080 [19:15:08]Content-Length: 770 [19:15:08]Content-Type: application/json [19:15:08] [19:15:08]POST finish read [19:15:08]Found Content-Length = 770 [19:15:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:08]execute_script... [19:15: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)1964963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:08]POST & json_proto [19:15:08]process_json_proto [19:15:08]json parsed OK: [19:15:08]protocol is kg_v1.0 [19:15:08]action value=close_receipt [19:15:08]process_action close_receipt [19:15:08]cmd_close_receipt [19:15:08]MH_GetDate [19:15:08]Write to MH i2c: F0 00 00 7D 6D D9 [19:15:08]Write i2c OK [19:15:08]MH_I2C_Read... [19:15:08]Read from MH i2c: F0 [19:15:08]MH_I2C_Read... [19:15:08]Read from MH i2c: F0 09 00 [19:15:08]MH_I2C_Read... [19:15:08]Read from MH i2c: F0 09 00 7D 6D 00 C2 F9 17 67 82 C9 CF 66 9B [19:15:08]GetLastDocTimeStamp 1729624308 [19:15:08]current date 1729624514 [19:15:08]FM_GetShiftState [19:15:08]SAM_PROTO_GetShiftState [19:15:08]wFMCommunicate request_size=4 [19:15:08]MH_SAM_APDU [19:15:08]CAPDU: 80 13 01 00 [19:15:08]Write to MH i2c: E2 08 00 7E 6D 80 13 01 00 00 00 00 00 68 [19:15:08]Write i2c OK [19:15:08]MH_I2C_Read... [19:15:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:08]Read from MH i2c: E2 [19:15:08]MH_I2C_Read... [19:15:08]Read from MH i2c: E2 0E 00 [19:15:08]MH_I2C_Read... [19:15:08]Read from MH i2c: E2 0E 00 7E 6D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 2F [19:15:08]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [19:15:08]wFMCommunicate OK [19:15:08]SAM_PROTO_GetShiftState done [19:15:08]FM_GetShiftState done [19:15:08]opened in 1729555538 [19:15:08]opened+sec_in_day 1729641938 [19:15:08]quantity*price = 100015 [19:15:08]sum+1 = 100017 [19:15:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 371 22.10.2024 19:15 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 228407 ФПД: 84866511477142 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191514&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228407&fm=84866511477142&tin=02508201610067®Number=0000000000091685&sum=100016 [19:15:09]StoreToDocumentArchive [19:15:09]shift 535 fd 228407 [19:15:09]save to /storage/0535/doc_00228407 [19:15:09]save last doc name /storage/0535/doc_00228407 to /storage/kkm_last_doc_name [19:15:09]save OK [19:15:09]Clear old archive folders... [19:15:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:15:09]tlvbuf is 009C1590 [19:15:09]SAM_PROTO_ClearQueue [19:15:09]wFMCommunicate request_size=4 [19:15:09]MH_SAM_APDU [19:15:09]CAPDU: 80 09 00 00 [19:15:09]Write to MH i2c: E2 08 00 8B 6D 80 09 00 00 00 00 00 00 6A [19:15:09]Write i2c OK [19:15:09]MH_I2C_Read... [19:15:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:15:09]Read from MH i2c: E2 [19:15:09]MH_I2C_Read... [19:15:09]Read from MH i2c: E2 03 00 [19:15:09]MH_I2C_Read... [19:15:09]Read from MH i2c: E2 03 00 8B 6D 00 90 00 6C [19:15:09]RAPDU: 90 00 [19:15:09]wFMCommunicate OK [19:15:09]SAM_PROTO_ClearQueue done [19:15:09]KKMCreateOFDPacket [19:15:09]OFDProtocolAddRootSTLVToBuf [19:15:09]FM_MakeSignedData [19:15:09]FM_MakeSignedData [19:15:09]SAM_PROTO_SignData [19:15:09]wFMCommunicate request_size=4 [19:15:09]MH_SAM_APDU [19:15:09]CAPDU: 80 0D 01 02 [19:15:09]Write to MH i2c: E2 08 00 8C 6D 80 0D 01 02 00 00 00 00 72 [19:15:09]Write i2c OK [19:15:09]MH_I2C_Read... [19:15:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:15:09]Read from MH i2c: E2 [19:15:09]MH_I2C_Read... [19:15:09]Read from MH i2c: E2 03 00 [19:15:09]MH_I2C_Read... [19:15:09]Read from MH i2c: E2 03 00 8C 6D 00 90 00 6D [19:15:09]RAPDU: 90 00 [19:15:09]wFMCommunicate OK [19:15:09]wFMCommunicate request_size=255 [19:15:09]MH_SAM_APDU [19:15: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 73 01 00 00 F4 03 04 00 C2 F9 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 37 7C 03 00 35 04 06 00 4D [19:15:09]Write to MH i2c: E2 02 01 8D 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 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 73 01 00 00 F4 03 04 00 C2 F9 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 37 7C 03 00 35 04 06 00 4D 00 00 EC [19:15:09]Write i2c OK [19:15:09]MH_I2C_Read... [19:15:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:10]Read from MH i2c: E2 [19:15:10]MH_I2C_Read... [19:15:10]Read from MH i2c: E2 03 00 [19:15:10]MH_I2C_Read... [19:15:10]Read from MH i2c: E2 03 00 8D 6D 00 90 00 6E [19:15:10]RAPDU: 90 00 [19:15:10]wFMCommunicate OK [19:15:10]wFMCommunicate request_size=10 [19:15:10]MH_SAM_APDU [19:15:10]CAPDU: 80 0D 02 02 05 2F 86 45 19 96 [19:15:10]Write to MH i2c: E2 0D 00 8E 6D 80 0D 02 02 05 00 2F 86 45 19 96 00 00 28 [19:15:10]Write i2c OK [19:15:10]MH_I2C_Read... [19:15:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:10]Read from MH i2c: E2 [19:15:10]MH_I2C_Read... [19:15:10]Read from MH i2c: E2 03 00 [19:15:10]MH_I2C_Read... [19:15:10]Read from MH i2c: E2 03 00 8E 6D 00 90 00 6F [19:15:10]RAPDU: 90 00 [19:15:10]wFMCommunicate OK [19:15:10]wFMCommunicate request_size=4 [19:15:10]MH_SAM_APDU [19:15:10]CAPDU: 80 0D 03 02 [19:15:10]Write to MH i2c: E2 08 00 8F 6D 80 0D 03 02 00 00 00 00 77 [19:15:10]Write i2c OK [19:15:10]MH_I2C_Read... [19:15:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:10]Read from MH i2c: E2 [19:15:10]MH_I2C_Read... [19:15:10]Read from MH i2c: E2 0B 00 [19:15:10]MH_I2C_Read... [19:15:10]Read from MH i2c: E2 0B 00 8F 6D 00 A8 6F 97 E2 00 37 C6 CB 90 00 D0 [19:15:10]RAPDU: A8 6F 97 E2 00 37 C6 CB 90 00 [19:15:10]wFMCommunicate OK [19:15:10]SAM_PROTO_SignData done [19:15:10]FM_MakeSignedData done [19:15:10]CreateOFDProtocolMessage [19:15:10]wFMCommunicate request_size=4 [19:15:10]MH_SAM_APDU [19:15:10]CAPDU: 80 11 00 00 [19:15:10]Write to MH i2c: E2 08 00 90 6D 80 11 00 00 00 00 00 00 77 [19:15:10]Write i2c OK [19:15:10]MH_I2C_Read... [19:15:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:10]Read from MH i2c: E2 [19:15:10]MH_I2C_Read... [19:15:10]Read from MH i2c: E2 17 00 [19:15:10]MH_I2C_Read... [19:15:10]Read from MH i2c: E2 17 00 90 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CE [19:15:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:15:10]wFMCommunicate OK [19:15:10]CreateOFDProtocolMessage done [19:15:10]OFDSenderStorePacket 228407 [19:15:10]StoreOFDPacket docnum=228407 [19:15:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 5B 07 07 01 58 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 73 01 00 00 F4 03 04 00 C2 F9 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 37 7C 03 00 35 04 06 00 4D 2F 86 45 19 96 A8 6F 97 E2 00 37 C6 CB [19:15:10]CheckFolder [19:15:10]dirname=/storage/ofd_packets [19:15:10]CheckFolder done [19:15:10]ProducePacketName [19:15:10]name=ofd_packets/00228407 [19:15:10]NVStorageSaveData ofd_packets/00228407 [19:15:10]File name is /storage/ofd_packets/00228407 [19:15:10]Write 301 bytes [19:15:10]NVStorageSaveData done [19:15:10]OFDSenderStorePacket done [19:15:10]KKMCreateOFDPacket done [19:15:10]NVStorageSaveData kkm_last_timestamp [19:15:10]File name is /storage/kkm_last_timestamp [19:15:10]Write 4 bytes [19:15:10]NVStorageSaveData done [19:15:10]ExternCall_PrintAddStr [19:15:10]wPrintStart [19:15:10]Write to MH i2c: 01 00 00 91 6D FE [19:15:10]OFD Sender: Processing packet 228407 [packets to send 38, broken 37] [19:15:10]ProducePacketName [19:15:10]name=ofd_packets/00228407 [19:15:10]OFD Sender: To server: pG, [19:15:10]CommunicateWithHost lk.salyk.kg:30040 [19:15:10]ConnectInit lk.salyk.kg [19:15:10]Write i2c OK [19:15:10]MH_I2C_Read... [19:15:10]Read from MH i2c: 01 [19:15:10]MH_I2C_Read... [19:15:10]Read from MH i2c: 01 07 00 [19:15:10]MH_I2C_Read... [19:15:10]Read from MH i2c: 01 07 00 91 6D 00 00 00 00 00 FF 0F 13 [19:15:10]RasterBufferAndPrint [19:15:10]line Счет N : (1)1964963 [19:15:10]line ИНН: 02508201610067 [19:15:10]line Контрольно-Кассовый Чек [19:15:10]line ПРОДАЖА [19:15:10]line ТРК (МРК, ГНК) : 43 [19:15:10]line Товар: 2710124130 [19:15:10]line Аи-92-К-5 [19:15:10]line 14.950 * 66.90 [19:15:10]line = 1000.16 [19:15:10]line НДС 12% НСП 1% [19:15:10]line > о реализуемом товаре [19:15:10]line ИТОГО: 1000.16 [19:15:10]line НСП 1% : 8.85 [19:15:10]line НДС 12% : 106.21 [19:15:10]line Наличными: 0.00 [19:15:10]line Безнал.: 1000.16 [19:15:10]line Место: АЗС № 133 "Партнер Нефть" [19:15:10]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:15:10]line СНО: Общий режим [19:15:10]line Чек 371 22.10.2024 19:15 [19:15:10]line Смена: 535 ФФД: 1.0 [19:15:10]line ЗНМ: 0300000091 [19:15:10]line РНМ: 0000000000091685 [19:15:10]line Версия ККМ: 001 [19:15:10]line Платежная система: Mbank [19:15:10]line ФМ: 0000000000871839 [19:15:10]line ФД: 228407 [19:15:10]line ФПД: 84866511477142 [19:15:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191514&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228407&fm=84866511477142&tin=02508201610067®Number=0000000000091685&sum=100016 [19:15:10]Connected sock=10 [19:15:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 5B 07 07 01 58 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 73 01 00 00 F4 03 04 00 C2 F9 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 37 7C 03 00 35 04 06 00 4D 2F 86 45 19 96 A8 6F 97 E2 00 37 C6 CB [19:15:10]written 0, free lines is 4095 [19:15:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 66 82 47 00 1C 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 38 37 31 38 33 39 10 04 04 00 37 7C 03 00 F4 03 04 00 B9 A4 17 67 B6 04 01 00 00 B7 C8 AB 05 72 B6 3B 52 [19:15:10]CommunicateWithHost err = 0 [19:15:10]CheckOFDResponse [19:15:10]1017 (14) - 77093643461234 [19:15:10]1041 (16) - 0000000000871839 [19:15:10]1040 (4) - 228407 [19:15:10]1012 (4) - 22.10.2024 13:12 [19:15:10]1206 (1) - 0 [19:15:10]OFD Sender: Remove packet 228407 [19:15:10]ProducePacketName [19:15:10]name=ofd_packets/00228407 [19:15:10]NVStorageDeleteData [19:15:11]Write to MH i2c: 01 00 00 B9 6D 26 [19:15:11]Write i2c OK [19:15:11]MH_I2C_Read... [19:15:11]Read from MH i2c: 01 [19:15:11]MH_I2C_Read... [19:15:11]Read from MH i2c: 01 07 00 [19:15:11]MH_I2C_Read... [19:15:11]Read from MH i2c: 01 07 00 B9 6D 00 00 00 00 00 D8 0C 11 [19:15:11]RasterBufferAndPrint [19:15:11]line [19:15:11]line [19:15:11]line [19:15:11]line [19:15:11]line [19:15:11]written 0, free lines is 3292 [19:15:11]MH_Cut [19:15:11]Write to MH i2c: D1 01 00 C0 6D 01 FF [19:15:11]Write i2c OK [19:15:11]MH_I2C_Read... [19:15:11]Read from MH i2c: D1 [19:15:11]MH_I2C_Read... [19:15:11]Read from MH i2c: D1 01 00 [19:15:11]MH_I2C_Read... [19:15:11]Read from MH i2c: D1 01 00 C0 6D 00 FE [19:15:11]Write to MH i2c: 01 00 00 C1 6D 2E [19:15:11]Write i2c OK [19:15:11]MH_I2C_Read... [19:15:11]OFD Sender: No OFD packet to send [19:15:11]*** Cut start [19:15:11]*** Partial cut [19:15:12]*** CUTSNS_PIN = 1 [19:15:12]*** CUTSNS_PIN = 0 [19:15:12]*** Brake cut motor [19:15:12]Read from MH i2c: 01 [19:15:12]MH_I2C_Read... [19:15:12]*** Stop cut motor [19:15:12]*** Cut end [19:15:12]Read from MH i2c: 01 07 00 [19:15:12]MH_I2C_Read... [19:15:12]Read from MH i2c: 01 07 00 C1 6D 00 00 00 00 00 FF 0F 43 [19:15:12]process_action close_receipt done [19:15:12]requested_data is exist [19:15:12]produce_requested_data [19:15:12]requested_item fm.sn is exist - process it [19:15:12]wFMCommunicate request_size=4 [19:15:12]MH_SAM_APDU [19:15:12]CAPDU: 80 11 00 00 [19:15:12]Write to MH i2c: E2 08 00 C2 6D 80 11 00 00 00 00 00 00 A9 [19:15:12]Write i2c OK [19:15:12]MH_I2C_Read... [19:15:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:12]Read from MH i2c: E2 [19:15:12]MH_I2C_Read... [19:15:12]Read from MH i2c: E2 17 00 [19:15:12]MH_I2C_Read... [19:15:12]Read from MH i2c: E2 17 00 C2 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 00 [19:15:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:15:12]wFMCommunicate OK [19:15:12]requested_item fd.num is exist - process it [19:15:12]SAM_PROTO_GetFieldsCounters [19:15:12]wFMCommunicate request_size=4 [19:15:12]MH_SAM_APDU [19:15:12]CAPDU: 80 13 00 00 [19:15:12]Write to MH i2c: E2 08 00 C3 6D 80 13 00 00 00 00 00 00 AC [19:15:12]Write i2c OK [19:15:12]MH_I2C_Read... [19:15:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:12]Read from MH i2c: E2 [19:15:12]MH_I2C_Read... [19:15:12]Read from MH i2c: E2 62 00 [19:15:12]MH_I2C_Read... [19:15:12]Read from MH i2c: E2 62 00 C3 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 37 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 73 01 00 00 5E 04 04 00 73 01 00 00 57 04 04 00 74 01 00 00 19 04 04 00 00 00 00 00 90 00 00 [19:15:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 37 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 73 01 00 00 5E 04 04 00 73 01 00 00 57 04 04 00 74 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:15:12]wFMCommunicate OK [19:15:12]SAM_PROTO_GetFieldsCounters done [19:15:12]requested_item shift.num is exist - process it [19:15:12]requested_item shift.opened is exist - process it [19:15:12]req_shift_opened [19:15:12]FM_GetShiftState [19:15:12]SAM_PROTO_GetShiftState [19:15:12]wFMCommunicate request_size=4 [19:15:12]MH_SAM_APDU [19:15:12]CAPDU: 80 13 01 00 [19:15:12]Write to MH i2c: E2 08 00 C4 6D 80 13 01 00 00 00 00 00 AE [19:15:12]Write i2c OK [19:15:12]MH_I2C_Read... [19:15:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:12]Read from MH i2c: E2 [19:15:12]MH_I2C_Read... [19:15:12]Read from MH i2c: E2 0E 00 [19:15:12]MH_I2C_Read... [19:15:12]Read from MH i2c: E2 0E 00 C4 6D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 75 [19:15:12]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [19:15:12]wFMCommunicate OK [19:15:12]SAM_PROTO_GetShiftState done [19:15:12]FM_GetShiftState done [19:15:12]req_shift_opened done [19:15:12]requested_item shift.open_date is exist - process it [19:15:12]req_shift_open_date [19:15:12]req_shift_open_date done [19:15:12]produce_requested_data done [19:15:12]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228407,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [19:15:12]process_action_free close_receipt [19:15:12]json_value_free [19:15:12]json_value_free done [19:15:12]process_json_proto returns [19:15:12]Send response to host [19:15:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228407,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [19:15:12]free response buf [19:15:12]execute_script done [19:15:12]execute_script returns [19:15:12]free content buf [19:15:12]Sock 7.Close socket [19:15:12]Sock 7.Thread stoped [19:15:16]OFD Sender: No OFD packet to send [19:15:21]OFD Sender: No OFD packet to send [19:15:26]OFD Sender: No OFD packet to send [19:15:31]OFD Sender: No OFD packet to send [19:15:36]OFD Sender: No OFD packet to send [19:15:41]OFD Sender: No OFD packet to send [19:15:46]OFD Sender: No OFD packet to send [19:15:51]OFD Sender: No OFD packet to send [19:15:56]OFD Sender: No OFD packet to send [19:16:01]OFD Sender: No OFD packet to send [19:16:06]OFD Sender: No OFD packet to send [19:16:11]OFD Sender: No OFD packet to send [19:16:16]OFD Sender: No OFD packet to send [19:16:21]OFD Sender: No OFD packet to send [19:16:26]OFD Sender: No OFD packet to send [19:16:31]OFD Sender: No OFD packet to send [19:16:36]OFD Sender: No OFD packet to send [19:16:41]OFD Sender: No OFD packet to send [19:16:46]OFD Sender: No OFD packet to send [19:16:51]OFD Sender: No OFD packet to send [19:16:56]OFD Sender: No OFD packet to send [19:17:01]OFD Sender: No OFD packet to send [19:17:06]OFD Sender: No OFD packet to send [19:17:11]OFD Sender: No OFD packet to send [19:17:16]OFD Sender: No OFD packet to send [19:17:21]OFD Sender: No OFD packet to send [19:17:26]OFD Sender: No OFD packet to send [19:17:31]OFD Sender: No OFD packet to send [19:17:36]OFD Sender: No OFD packet to send [19:17:41]OFD Sender: No OFD packet to send [19:17:46]OFD Sender: No OFD packet to send [19:17:51]OFD Sender: No OFD packet to send [19:17:56]OFD Sender: No OFD packet to send [19:18:01]OFD Sender: No OFD packet to send [19:18:06]OFD Sender: No OFD packet to send [19:18:11]OFD Sender: No OFD packet to send [19:18:16]OFD Sender: No OFD packet to send [19:18:21]OFD Sender: No OFD packet to send [19:18:26]OFD Sender: No OFD packet to send [19:18:31]OFD Sender: No OFD packet to send [19:18:36]OFD Sender: No OFD packet to send [19:18:41]OFD Sender: No OFD packet to send [19:18:46]OFD Sender: No OFD packet to send [19:18:51]OFD Sender: No OFD packet to send [19:18:56]OFD Sender: No OFD packet to send [19:19:01]OFD Sender: No OFD packet to send [19:19:06]OFD Sender: No OFD packet to send [19:19:11]OFD Sender: No OFD packet to send [19:19:16]OFD Sender: No OFD packet to send [19:19:21]OFD Sender: No OFD packet to send [19:19:26]OFD Sender: No OFD packet to send [19:19:31]OFD Sender: No OFD packet to send [19:19:36]OFD Sender: No OFD packet to send [19:19:41]OFD Sender: No OFD packet to send [19:19:46]OFD Sender: No OFD packet to send [19:19:51]OFD Sender: No OFD packet to send [19:19:56]OFD Sender: No OFD packet to send [19:20:01]OFD Sender: No OFD packet to send [19:20:01]accept exits with 9 [19:20:01]New connection [19:20:01]New thread 3067137380 created [19:20:01]Thread 3066994020 joined [19:20:01]Waiting for new connection... [19:20:01] Sock 9.Parse request [19:20:01]Sock 9.Check first char [19:20:01]Sock 9.First char is OK [19:20:01]request: POST /json_proto HTTP/1.0 [19:20:01]Method: POST [19:20:01]URL: /json_proto [19:20:01]Method is POST - this is cgi request [19:20:01]url: /json_proto [19:20:01]query_string will be loaded in cgi processing [19:20:01]execute_cgi json_proto POST (null) [19:20:01]execute_cgi path=json_proto method=POST [19:20:01]POST find Content-Length [19:20:01]Host: 172.17.44.195:8080 [19:20:01]Content-Length: 678 [19:20:01]Content-Type: application/json [19:20:01] [19:20:01]POST finish read [19:20:01]Found Content-Length = 678 [19:20:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:01]execute_script... [19:20: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)1964969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:01]POST & json_proto [19:20:01]process_json_proto [19:20:01]json parsed OK: [19:20:01]protocol is kg_v1.0 [19:20:01]action value=close_receipt [19:20:01]process_action close_receipt [19:20:01]cmd_close_receipt [19:20:01]MH_GetDate [19:20:01]Write to MH i2c: F0 00 00 C5 6D 21 [19:20:01]Write i2c OK [19:20:01]MH_I2C_Read... [19:20:01]Read from MH i2c: F0 [19:20:01]MH_I2C_Read... [19:20:01]Read from MH i2c: F0 09 00 [19:20:01]MH_I2C_Read... [19:20:01]Read from MH i2c: F0 09 00 C5 6D 00 E7 FA 17 67 82 C9 CF 66 09 [19:20:01]GetLastDocTimeStamp 1729624514 [19:20:01]current date 1729624807 [19:20:01]FM_GetShiftState [19:20:01]SAM_PROTO_GetShiftState [19:20:01]wFMCommunicate request_size=4 [19:20:01]MH_SAM_APDU [19:20:01]CAPDU: 80 13 01 00 [19:20:01]Write to MH i2c: E2 08 00 C6 6D 80 13 01 00 00 00 00 00 B0 [19:20:01]Write i2c OK [19:20:01]MH_I2C_Read... [19:20:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:01]Read from MH i2c: E2 [19:20:01]MH_I2C_Read... [19:20:01]Read from MH i2c: E2 0E 00 [19:20:01]MH_I2C_Read... [19:20:01]Read from MH i2c: E2 0E 00 C6 6D 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 77 [19:20:01]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [19:20:01]wFMCommunicate OK [19:20:01]SAM_PROTO_GetShiftState done [19:20:01]FM_GetShiftState done [19:20:01]opened in 1729555538 [19:20:01]opened+sec_in_day 1729641938 [19:20:01]quantity*price = 60009 [19:20:01]sum+1 = 60010 [19:20:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 372 22.10.2024 19:20 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228408 ФПД: 196691240203406 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192007&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228408&fm=196691240203406&tin=02508201610067®Number=0000000000091685&sum=60000 [19:20:02]StoreToDocumentArchive [19:20:02]shift 535 fd 228408 [19:20:02]save to /storage/0535/doc_00228408 [19:20:02]save last doc name /storage/0535/doc_00228408 to /storage/kkm_last_doc_name [19:20:02]save OK [19:20:02]Clear old archive folders... [19:20:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:20:02]tlvbuf is 0093CD00 [19:20:02]SAM_PROTO_ClearQueue [19:20:02]wFMCommunicate request_size=4 [19:20:02]MH_SAM_APDU [19:20:02]CAPDU: 80 09 00 00 [19:20:02]Write to MH i2c: E2 08 00 D3 6D 80 09 00 00 00 00 00 00 B2 [19:20:02]Write i2c OK [19:20:02]MH_I2C_Read... [19:20:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:20:02]Read from MH i2c: E2 [19:20:02]MH_I2C_Read... [19:20:02]Read from MH i2c: E2 03 00 [19:20:02]MH_I2C_Read... [19:20:02]Read from MH i2c: E2 03 00 D3 6D 00 90 00 B4 [19:20:02]RAPDU: 90 00 [19:20:02]wFMCommunicate OK [19:20:02]SAM_PROTO_ClearQueue done [19:20:02]KKMCreateOFDPacket [19:20:02]OFDProtocolAddRootSTLVToBuf [19:20:02]FM_MakeSignedData [19:20:02]FM_MakeSignedData [19:20:02]SAM_PROTO_SignData [19:20:02]wFMCommunicate request_size=4 [19:20:02]MH_SAM_APDU [19:20:02]CAPDU: 80 0D 01 02 [19:20:02]Write to MH i2c: E2 08 00 D4 6D 80 0D 01 02 00 00 00 00 BA [19:20:02]Write i2c OK [19:20:02]MH_I2C_Read... [19:20:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:20:02]Read from MH i2c: E2 [19:20:02]MH_I2C_Read... [19:20:02]Read from MH i2c: E2 03 00 [19:20:02]MH_I2C_Read... [19:20:02]Read from MH i2c: E2 03 00 D4 6D 00 90 00 B5 [19:20:02]RAPDU: 90 00 [19:20:02]wFMCommunicate OK [19:20:02]wFMCommunicate request_size=255 [19:20:02]MH_SAM_APDU [19:20: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 74 01 00 00 F4 03 04 00 E7 FA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 38 7C 03 00 35 04 06 00 B2 [19:20:02]Write to MH i2c: E2 02 01 D5 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 74 01 00 00 F4 03 04 00 E7 FA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 38 7C 03 00 35 04 06 00 B2 00 00 84 [19:20:02]Write i2c OK [19:20:02]MH_I2C_Read... [19:20:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:03]Read from MH i2c: E2 [19:20:03]MH_I2C_Read... [19:20:03]Read from MH i2c: E2 03 00 [19:20:03]MH_I2C_Read... [19:20:03]Read from MH i2c: E2 03 00 D5 6D 00 90 00 B6 [19:20:03]RAPDU: 90 00 [19:20:03]wFMCommunicate OK [19:20:03]wFMCommunicate request_size=10 [19:20:03]MH_SAM_APDU [19:20:03]CAPDU: 80 0D 02 02 05 E3 BF 80 B4 8E [19:20:03]Write to MH i2c: E2 0D 00 D6 6D 80 0D 02 02 05 00 E3 BF 80 B4 8E 00 00 2B [19:20:03]Write i2c OK [19:20:03]MH_I2C_Read... [19:20:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:03]Read from MH i2c: E2 [19:20:03]MH_I2C_Read... [19:20:03]Read from MH i2c: E2 03 00 [19:20:03]MH_I2C_Read... [19:20:03]Read from MH i2c: E2 03 00 D6 6D 00 90 00 B7 [19:20:03]RAPDU: 90 00 [19:20:03]wFMCommunicate OK [19:20:03]wFMCommunicate request_size=4 [19:20:03]MH_SAM_APDU [19:20:03]CAPDU: 80 0D 03 02 [19:20:03]Write to MH i2c: E2 08 00 D7 6D 80 0D 03 02 00 00 00 00 BF [19:20:03]Write i2c OK [19:20:03]MH_I2C_Read... [19:20:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:20:03]Read from MH i2c: E2 [19:20:03]MH_I2C_Read... [19:20:03]Read from MH i2c: E2 0B 00 [19:20:03]MH_I2C_Read... [19:20:03]Read from MH i2c: E2 0B 00 D7 6D 00 12 6F 6E 62 D9 3B C3 88 90 00 70 [19:20:03]RAPDU: 12 6F 6E 62 D9 3B C3 88 90 00 [19:20:03]wFMCommunicate OK [19:20:03]SAM_PROTO_SignData done [19:20:03]FM_MakeSignedData done [19:20:03]CreateOFDProtocolMessage [19:20:03]wFMCommunicate request_size=4 [19:20:03]MH_SAM_APDU [19:20:03]CAPDU: 80 11 00 00 [19:20:03]Write to MH i2c: E2 08 00 D8 6D 80 11 00 00 00 00 00 00 BF [19:20:03]Write i2c OK [19:20:03]MH_I2C_Read... [19:20:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:03]Read from MH i2c: E2 [19:20:03]MH_I2C_Read... [19:20:03]Read from MH i2c: E2 17 00 [19:20:03]MH_I2C_Read... [19:20:03]Read from MH i2c: E2 17 00 D8 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 16 [19:20:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:20:03]wFMCommunicate OK [19:20:03]CreateOFDProtocolMessage done [19:20:03]OFDSenderStorePacket 228408 [19:20:03]StoreOFDPacket docnum=228408 [19:20:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D1 4E 07 01 43 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 74 01 00 00 F4 03 04 00 E7 FA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 38 7C 03 00 35 04 06 00 B2 E3 BF 80 B4 8E 12 6F 6E 62 D9 3B C3 88 [19:20:03]CheckFolder [19:20:03]dirname=/storage/ofd_packets [19:20:03]CheckFolder done [19:20:03]ProducePacketName [19:20:03]name=ofd_packets/00228408 [19:20:03]NVStorageSaveData ofd_packets/00228408 [19:20:03]File name is /storage/ofd_packets/00228408 [19:20:03]Write 301 bytes [19:20:03]NVStorageSaveData done [19:20:03]OFDSenderStorePacket done [19:20:03]KKMCreateOFDPacket done [19:20:03]NVStorageSaveData kkm_last_timestamp [19:20:03]File name is /storage/kkm_last_timestamp [19:20:03]Write 4 bytes [19:20:03]NVStorageSaveData done [19:20:03]ExternCall_PrintAddStr [19:20:03]wPrintStart [19:20:03]Write to MH i2c: 01 00 00 D9 6D 46 [19:20:03]Write i2c OK [19:20:03]MH_I2C_Read... [19:20:03]Read from MH i2c: 01 [19:20:03]MH_I2C_Read... [19:20:03]Read from MH i2c: 01 07 00 [19:20:03]MH_I2C_Read... [19:20:03]Read from MH i2c: 01 07 00 D9 6D 00 00 00 00 00 FF 0F 5B [19:20:03]RasterBufferAndPrint [19:20:03]line Счет N : (1)1964969 [19:20:03]line ИНН: 02508201610067 [19:20:03]line Контрольно-Кассовый Чек [19:20:03]line ПРОДАЖА [19:20:03]line ТРК (МРК, ГНК) : 33 [19:20:03]line Товар: 2710124130 [19:20:03]line Аи-92-К-5 [19:20:03]line 8.970 * 66.90 [19:20:03]line = 600.09 [19:20:03]line НДС 12% НСП 1% [19:20:03]line > о реализуемом товаре [19:20:03]line ОКРУГЛЕНИЕ: -0.09 [19:20:03]line ИТОГО: 600.00 [19:20:03]line Внесено: 600.00 [19:20:03]line СДАЧА: 0.00 [19:20:03]line НСП 1% : 5.31 [19:20:03]line НДС 12% : 63.73 [19:20:03]line Наличными: 600.00 [19:20:03]line Безнал.: 0.00 [19:20:03]line Место: АЗС № 133 "Партнер Нефть" [19:20:03]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:20:03]line СНО: Общий режим [19:20:03]line Чек 372 22.10.2024 19:20 [19:20:03]line Смена: 535 ФФД: 1.0 [19:20:03]line ЗНМ: 0300000091 [19:20:03]line РНМ: 0000000000091685 [19:20:03]line Версия ККМ: 001 [19:20:03]line ФМ: 0000000000871839 [19:20:03]line ФД: 228408 [19:20:03]line ФПД: 196691240203406 [19:20:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192007&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228408&fm=196691240203406&tin=02508201610067®Number=0000000000091685&sum=60000 [19:20:03]written 0, free lines is 4095 [19:20:03]OFD Sender: Processing packet 228408 [packets to send 38, broken 37] [19:20:03]ProducePacketName [19:20:03]name=ofd_packets/00228408 [19:20:03]OFD Sender: To server: pG, [19:20:03]CommunicateWithHost lk.salyk.kg:30040 [19:20:03]ConnectInit lk.salyk.kg [19:20:03]Connected sock=10 [19:20:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D1 4E 07 01 43 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 74 01 00 00 F4 03 04 00 E7 FA 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 38 7C 03 00 35 04 06 00 B2 E3 BF 80 B4 8E 12 6F 6E 62 D9 3B C3 88 [19:20:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 B5 52 47 00 E6 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 38 7C 03 00 F4 03 04 00 DE A5 17 67 B6 04 01 00 00 D3 91 E6 70 99 FE 71 7B [19:20:04]CommunicateWithHost err = 0 [19:20:04]CheckOFDResponse [19:20:04]1017 (14) - 77093643461234 [19:20:04]1041 (16) - 0000000000871839 [19:20:04]1040 (4) - 228408 [19:20:04]1012 (4) - 22.10.2024 13:17 [19:20:04]1206 (1) - 0 [19:20:04]OFD Sender: Remove packet 228408 [19:20:04]ProducePacketName [19:20:04]name=ofd_packets/00228408 [19:20:04]NVStorageDeleteData [19:20:04]Write to MH i2c: 01 00 00 03 6E 71 [19:20:04]Write i2c OK [19:20:04]MH_I2C_Read... [19:20:04]Read from MH i2c: 01 [19:20:04]MH_I2C_Read... [19:20:04]Read from MH i2c: 01 07 00 [19:20:04]MH_I2C_Read... [19:20:04]Read from MH i2c: 01 07 00 03 6E 00 00 00 00 00 AB 0C 2F [19:20:04]RasterBufferAndPrint [19:20:04]line [19:20:04]line [19:20:04]line [19:20:04]line [19:20:04]line [19:20:04]written 0, free lines is 3248 [19:20:04]MH_Cut [19:20:04]Write to MH i2c: D1 01 00 0A 6E 01 4A [19:20:04]Write i2c OK [19:20:04]MH_I2C_Read... [19:20:04]Read from MH i2c: D1 [19:20:04]MH_I2C_Read... [19:20:04]Read from MH i2c: D1 01 00 [19:20:04]MH_I2C_Read... [19:20:04]Read from MH i2c: D1 01 00 0A 6E 00 49 [19:20:04]Write to MH i2c: 01 00 00 0B 6E 79 [19:20:04]Write i2c OK [19:20:04]MH_I2C_Read... [19:20:04]OFD Sender: No OFD packet to send [19:20:05]*** Cut start [19:20:05]*** Partial cut [19:20:05]*** CUTSNS_PIN = 1 [19:20:05]*** CUTSNS_PIN = 0 [19:20:05]*** Brake cut motor [19:20:05]Read from MH i2c: 01 [19:20:05]MH_I2C_Read... [19:20:05]*** Stop cut motor [19:20:05]*** Cut end [19:20:05]Read from MH i2c: 01 07 00 [19:20:05]MH_I2C_Read... [19:20:05]Read from MH i2c: 01 07 00 0B 6E 00 00 00 00 00 FF 0F 8E [19:20:05]process_action close_receipt done [19:20:05]requested_data is exist [19:20:05]produce_requested_data [19:20:05]requested_item fm.sn is exist - process it [19:20:05]wFMCommunicate request_size=4 [19:20:05]MH_SAM_APDU [19:20:05]CAPDU: 80 11 00 00 [19:20:05]Write to MH i2c: E2 08 00 0C 6E 80 11 00 00 00 00 00 00 F4 [19:20:05]Write i2c OK [19:20:05]MH_I2C_Read... [19:20:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:05]Read from MH i2c: E2 [19:20:05]MH_I2C_Read... [19:20:05]Read from MH i2c: E2 17 00 [19:20:05]MH_I2C_Read... [19:20:05]Read from MH i2c: E2 17 00 0C 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4B [19:20:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:20:05]wFMCommunicate OK [19:20:05]requested_item fd.num is exist - process it [19:20:05]SAM_PROTO_GetFieldsCounters [19:20:05]wFMCommunicate request_size=4 [19:20:05]MH_SAM_APDU [19:20:05]CAPDU: 80 13 00 00 [19:20:05]Write to MH i2c: E2 08 00 0D 6E 80 13 00 00 00 00 00 00 F7 [19:20:05]Write i2c OK [19:20:05]MH_I2C_Read... [19:20:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:20:05]Read from MH i2c: E2 [19:20:05]MH_I2C_Read... [19:20:05]Read from MH i2c: E2 62 00 [19:20:05]MH_I2C_Read... [19:20:05]Read from MH i2c: E2 62 00 0D 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 38 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 74 01 00 00 5E 04 04 00 74 01 00 00 57 04 04 00 75 01 00 00 19 04 04 00 00 00 00 00 90 00 4F [19:20:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 38 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 74 01 00 00 5E 04 04 00 74 01 00 00 57 04 04 00 75 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:20:05]wFMCommunicate OK [19:20:05]SAM_PROTO_GetFieldsCounters done [19:20:05]requested_item shift.num is exist - process it [19:20:05]requested_item shift.opened is exist - process it [19:20:05]req_shift_opened [19:20:05]FM_GetShiftState [19:20:05]SAM_PROTO_GetShiftState [19:20:05]wFMCommunicate request_size=4 [19:20:05]MH_SAM_APDU [19:20:05]CAPDU: 80 13 01 00 [19:20:05]Write to MH i2c: E2 08 00 0E 6E 80 13 01 00 00 00 00 00 F9 [19:20:05]Write i2c OK [19:20:05]MH_I2C_Read... [19:20:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:06]Read from MH i2c: E2 [19:20:06]MH_I2C_Read... [19:20:06]Read from MH i2c: E2 0E 00 [19:20:06]MH_I2C_Read... [19:20:06]Read from MH i2c: E2 0E 00 0E 6E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 C0 [19:20:06]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [19:20:06]wFMCommunicate OK [19:20:06]SAM_PROTO_GetShiftState done [19:20:06]FM_GetShiftState done [19:20:06]req_shift_opened done [19:20:06]requested_item shift.open_date is exist - process it [19:20:06]req_shift_open_date [19:20:06]req_shift_open_date done [19:20:06]produce_requested_data done [19:20:06]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228408,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [19:20:06]process_action_free close_receipt [19:20:06]json_value_free [19:20:06]json_value_free done [19:20:06]process_json_proto returns [19:20:06]Send response to host [19:20:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228408,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [19:20:06]free response buf [19:20:06]execute_script done [19:20:06]execute_script returns [19:20:06]free content buf [19:20:06]Sock 9.Close socket [19:20:06]Sock 9.Thread stoped [19:20:09]OFD Sender: No OFD packet to send [19:20:14]OFD Sender: No OFD packet to send [19:20:19]OFD Sender: No OFD packet to send [19:20:24]OFD Sender: No OFD packet to send [19:20:29]OFD Sender: No OFD packet to send [19:20:29]accept exits with 7 [19:20:29]New connection [19:20:29]New thread 3066994020 created [19:20:29]Thread 3067137380 joined [19:20:29]Waiting for new connection... [19:20:29] Sock 7.Parse request [19:20:29]Sock 7.Check first char [19:20:29]Sock 7.First char is OK [19:20:29]request: POST /json_proto HTTP/1.0 [19:20:29]Method: POST [19:20:29]URL: /json_proto [19:20:29]Method is POST - this is cgi request [19:20:29]url: /json_proto [19:20:29]query_string will be loaded in cgi processing [19:20:29]execute_cgi json_proto POST (null) [19:20:29]execute_cgi path=json_proto method=POST [19:20:29]POST find Content-Length [19:20:29]Host: 172.17.44.195:8080 [19:20:29]Content-Length: 683 [19:20:29]Content-Type: application/json [19:20:29] [19:20:29]POST finish read [19:20:29]Found Content-Length = 683 [19:20:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:29]execute_script... [19:20: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)1964971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:29]POST & json_proto [19:20:29]process_json_proto [19:20:29]json parsed OK: [19:20:29]protocol is kg_v1.0 [19:20:29]action value=close_receipt [19:20:29]process_action close_receipt [19:20:29]cmd_close_receipt [19:20:29]MH_GetDate [19:20:29]Write to MH i2c: F0 00 00 0F 6E 6C [19:20:29]Write i2c OK [19:20:29]MH_I2C_Read... [19:20:29]Read from MH i2c: F0 [19:20:29]MH_I2C_Read... [19:20:29]Read from MH i2c: F0 09 00 [19:20:29]MH_I2C_Read... [19:20:29]Read from MH i2c: F0 09 00 0F 6E 00 03 FB 17 67 82 C9 CF 66 71 [19:20:29]GetLastDocTimeStamp 1729624807 [19:20:29]current date 1729624835 [19:20:29]FM_GetShiftState [19:20:29]SAM_PROTO_GetShiftState [19:20:29]wFMCommunicate request_size=4 [19:20:29]MH_SAM_APDU [19:20:29]CAPDU: 80 13 01 00 [19:20:29]Write to MH i2c: E2 08 00 10 6E 80 13 01 00 00 00 00 00 FB [19:20:29]Write i2c OK [19:20:29]MH_I2C_Read... [19:20:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:29]Read from MH i2c: E2 [19:20:29]MH_I2C_Read... [19:20:29]Read from MH i2c: E2 0E 00 [19:20:29]MH_I2C_Read... [19:20:29]Read from MH i2c: E2 0E 00 10 6E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 C2 [19:20:29]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [19:20:29]wFMCommunicate OK [19:20:29]SAM_PROTO_GetShiftState done [19:20:29]FM_GetShiftState done [19:20:29]opened in 1729555538 [19:20:29]opened+sec_in_day 1729641938 [19:20:29]quantity*price = 100021 [19:20:29]sum+1 = 100023 [19:20:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 373 22.10.2024 19:20 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228409 ФПД: 114392816409812 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192035&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228409&fm=114392816409812&tin=02508201610067®Number=0000000000091685&sum=100000 [19:20:30]StoreToDocumentArchive [19:20:30]shift 535 fd 228409 [19:20:30]save to /storage/0535/doc_00228409 [19:20:30]save last doc name /storage/0535/doc_00228409 to /storage/kkm_last_doc_name [19:20:30]save OK [19:20:30]Clear old archive folders... [19:20:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:20:30]tlvbuf is 00984B70 [19:20:30]SAM_PROTO_ClearQueue [19:20:30]wFMCommunicate request_size=4 [19:20:30]MH_SAM_APDU [19:20:30]CAPDU: 80 09 00 00 [19:20:30]Write to MH i2c: E2 08 00 1D 6E 80 09 00 00 00 00 00 00 FD [19:20:30]Write i2c OK [19:20:30]MH_I2C_Read... [19:20:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:20:30]Read from MH i2c: E2 [19:20:30]MH_I2C_Read... [19:20:30]Read from MH i2c: E2 03 00 [19:20:30]MH_I2C_Read... [19:20:30]Read from MH i2c: E2 03 00 1D 6E 00 90 00 FF [19:20:30]RAPDU: 90 00 [19:20:30]wFMCommunicate OK [19:20:30]SAM_PROTO_ClearQueue done [19:20:30]KKMCreateOFDPacket [19:20:30]OFDProtocolAddRootSTLVToBuf [19:20:30]FM_MakeSignedData [19:20:30]FM_MakeSignedData [19:20:30]SAM_PROTO_SignData [19:20:30]wFMCommunicate request_size=4 [19:20:30]MH_SAM_APDU [19:20:30]CAPDU: 80 0D 01 02 [19:20:30]Write to MH i2c: E2 08 00 1E 6E 80 0D 01 02 00 00 00 00 05 [19:20:30]Write i2c OK [19:20:30]MH_I2C_Read... [19:20:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:20:30]Read from MH i2c: E2 [19:20:30]MH_I2C_Read... [19:20:30]Read from MH i2c: E2 03 00 [19:20:30]MH_I2C_Read... [19:20:30]Read from MH i2c: E2 03 00 1E 6E 00 90 00 00 [19:20:30]RAPDU: 90 00 [19:20:30]wFMCommunicate OK [19:20:30]wFMCommunicate request_size=255 [19:20:30]MH_SAM_APDU [19:20: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 03 FB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 39 7C 03 00 35 04 06 00 68 [19:20:30]Write to MH i2c: E2 02 01 1F 6E 80 0D 02 02 FA 00 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 03 FB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 39 7C 03 00 35 04 06 00 68 00 00 E4 [19:20:30]Write i2c OK [19:20:30]MH_I2C_Read... [19:20:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:31]Read from MH i2c: E2 [19:20:31]MH_I2C_Read... [19:20:31]Read from MH i2c: E2 03 00 [19:20:31]MH_I2C_Read... [19:20:31]Read from MH i2c: E2 03 00 1F 6E 00 90 00 01 [19:20:31]RAPDU: 90 00 [19:20:31]wFMCommunicate OK [19:20:31]wFMCommunicate request_size=10 [19:20:31]MH_SAM_APDU [19:20:31]CAPDU: 80 0D 02 02 05 0A 27 2F DC D4 [19:20:31]Write to MH i2c: E2 0D 00 20 6E 80 0D 02 02 05 00 0A 27 2F DC D4 00 00 22 [19:20:31]Write i2c OK [19:20:31]MH_I2C_Read... [19:20:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:31]Read from MH i2c: E2 [19:20:31]MH_I2C_Read... [19:20:31]Read from MH i2c: E2 03 00 [19:20:31]MH_I2C_Read... [19:20:31]Read from MH i2c: E2 03 00 20 6E 00 90 00 02 [19:20:31]RAPDU: 90 00 [19:20:31]wFMCommunicate OK [19:20:31]wFMCommunicate request_size=4 [19:20:31]MH_SAM_APDU [19:20:31]CAPDU: 80 0D 03 02 [19:20:31]Write to MH i2c: E2 08 00 21 6E 80 0D 03 02 00 00 00 00 0A [19:20:31]Write i2c OK [19:20:31]MH_I2C_Read... [19:20:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:20:31]Read from MH i2c: E2 [19:20:31]MH_I2C_Read... [19:20:31]Read from MH i2c: E2 0B 00 [19:20:31]MH_I2C_Read... [19:20:31]Read from MH i2c: E2 0B 00 21 6E 00 92 78 09 9D CD B7 7E 55 90 00 12 [19:20:31]RAPDU: 92 78 09 9D CD B7 7E 55 90 00 [19:20:31]wFMCommunicate OK [19:20:31]SAM_PROTO_SignData done [19:20:31]FM_MakeSignedData done [19:20:31]CreateOFDProtocolMessage [19:20:31]wFMCommunicate request_size=4 [19:20:31]MH_SAM_APDU [19:20:31]CAPDU: 80 11 00 00 [19:20:31]Write to MH i2c: E2 08 00 22 6E 80 11 00 00 00 00 00 00 0A [19:20:31]Write i2c OK [19:20:31]MH_I2C_Read... [19:20:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:31]Read from MH i2c: E2 [19:20:31]MH_I2C_Read... [19:20:31]Read from MH i2c: E2 17 00 [19:20:31]MH_I2C_Read... [19:20:31]Read from MH i2c: E2 17 00 22 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 61 [19:20:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:20:31]wFMCommunicate OK [19:20:31]CreateOFDProtocolMessage done [19:20:31]OFDSenderStorePacket 228409 [19:20:31]StoreOFDPacket docnum=228409 [19:20:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B7 BD 07 01 CB C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 03 FB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 39 7C 03 00 35 04 06 00 68 0A 27 2F DC D4 92 78 09 9D CD B7 7E 55 [19:20:31]CheckFolder [19:20:31]dirname=/storage/ofd_packets [19:20:31]CheckFolder done [19:20:31]ProducePacketName [19:20:31]name=ofd_packets/00228409 [19:20:31]NVStorageSaveData ofd_packets/00228409 [19:20:31]File name is /storage/ofd_packets/00228409 [19:20:31]Write 301 bytes [19:20:31]NVStorageSaveData done [19:20:31]OFDSenderStorePacket done [19:20:31]KKMCreateOFDPacket done [19:20:31]NVStorageSaveData kkm_last_timestamp [19:20:31]File name is /storage/kkm_last_timestamp [19:20:31]Write 4 bytes [19:20:31]NVStorageSaveData done [19:20:31]ExternCall_PrintAddStr [19:20:31]wPrintStart [19:20:31]Write to MH i2c: 01 00 00 23 6E 91 [19:20:31]Write i2c OK [19:20:31]MH_I2C_Read... [19:20:31]Read from MH i2c: 01 [19:20:31]MH_I2C_Read... [19:20:31]Read from MH i2c: 01 07 00 [19:20:31]MH_I2C_Read... [19:20:31]Read from MH i2c: 01 07 00 23 6E 00 00 00 00 00 FF 0F A6 [19:20:31]RasterBufferAndPrint [19:20:31]line Счет N : (1)1964971 [19:20:31]line ИНН: 02508201610067 [19:20:31]line Контрольно-Кассовый Чек [19:20:31]line ПРОДАЖА [19:20:31]line ТРК (МРК, ГНК) : 44 [19:20:31]line Товар: 2710124500 [19:20:31]line Аи-95-К-5 [19:20:31]line 13.480 * 74.20 [19:20:31]line = 1000.22 [19:20:31]line НДС 12% НСП 1% [19:20:31]line > о реализуемом товаре [19:20:31]line ОКРУГЛЕНИЕ: -0.22 [19:20:31]line ИТОГО: 1000.00 [19:20:31]line Внесено: 1000.00 [19:20:31]line СДАЧА: 0.00 [19:20:31]line НСП 1% : 8.85 [19:20:31]line НДС 12% : 106.22 [19:20:31]line Наличными: 1000.00 [19:20:31]line Безнал.: 0.00 [19:20:31]line Место: АЗС № 133 "Партнер Нефть" [19:20:31]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:20:31]line СНО: Общий режим [19:20:31]line Чек 373 22.10.2024 19:20 [19:20:31]line Смена: 535 ФФД: 1.0 [19:20:31]line ЗНМ: 0300000091 [19:20:31]line РНМ: 0000000000091685 [19:20:31]line Версия ККМ: 001 [19:20:31]line ФМ: 0000000000871839 [19:20:31]line ФД: 228409 [19:20:31]line ФПД: 114392816409812 [19:20:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192035&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228409&fm=114392816409812&tin=02508201610067®Number=0000000000091685&sum=100000 [19:20:31]written 0, free lines is 4095 [19:20:31]OFD Sender: Processing packet 228409 [packets to send 38, broken 37] [19:20:31]ProducePacketName [19:20:31]name=ofd_packets/00228409 [19:20:31]OFD Sender: To server: pG, [19:20:31]CommunicateWithHost lk.salyk.kg:30040 [19:20:31]ConnectInit lk.salyk.kg [19:20:31]Connected sock=10 [19:20:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B7 BD 07 01 CB C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 03 FB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 39 7C 03 00 35 04 06 00 68 0A 27 2F DC D4 92 78 09 9D CD B7 7E 55 [19:20:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 C9 A5 47 00 1C FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 39 7C 03 00 F4 03 04 00 FA A5 17 67 B6 04 01 00 00 9E E6 1C CF EB FD 0F A1 [19:20:31]CommunicateWithHost err = 0 [19:20:31]CheckOFDResponse [19:20:31]1017 (14) - 77093643461234 [19:20:31]1041 (16) - 0000000000871839 [19:20:31]1040 (4) - 228409 [19:20:31]1012 (4) - 22.10.2024 13:17 [19:20:31]1206 (1) - 0 [19:20:31]OFD Sender: Remove packet 228409 [19:20:31]ProducePacketName [19:20:31]name=ofd_packets/00228409 [19:20:31]NVStorageDeleteData [19:20:32]Write to MH i2c: 01 00 00 4D 6E BB [19:20:32]Write i2c OK [19:20:32]MH_I2C_Read... [19:20:32]Read from MH i2c: 01 [19:20:32]MH_I2C_Read... [19:20:32]Read from MH i2c: 01 07 00 [19:20:32]MH_I2C_Read... [19:20:32]Read from MH i2c: 01 07 00 4D 6E 00 00 00 00 00 AD 0C 7B [19:20:32]RasterBufferAndPrint [19:20:32]line [19:20:32]line [19:20:32]line [19:20:32]line [19:20:32]line [19:20:32]written 0, free lines is 3249 [19:20:32]MH_Cut [19:20:32]Write to MH i2c: D1 01 00 54 6E 01 94 [19:20:32]Write i2c OK [19:20:32]MH_I2C_Read... [19:20:32]Read from MH i2c: D1 [19:20:32]MH_I2C_Read... [19:20:32]Read from MH i2c: D1 01 00 [19:20:32]MH_I2C_Read... [19:20:32]Read from MH i2c: D1 01 00 54 6E 00 93 [19:20:32]Write to MH i2c: 01 00 00 55 6E C3 [19:20:32]Write i2c OK [19:20:32]MH_I2C_Read... [19:20:32]OFD Sender: No OFD packet to send [19:20:33]*** Cut start [19:20:33]*** Partial cut [19:20:33]*** CUTSNS_PIN = 1 [19:20:33]*** CUTSNS_PIN = 0 [19:20:33]*** Brake cut motor [19:20:33]Read from MH i2c: 01 [19:20:33]MH_I2C_Read... [19:20:33]*** Stop cut motor [19:20:33]*** Cut end [19:20:33]Read from MH i2c: 01 07 00 [19:20:33]MH_I2C_Read... [19:20:33]Read from MH i2c: 01 07 00 55 6E 00 00 00 00 00 FF 0F D8 [19:20:33]process_action close_receipt done [19:20:33]requested_data is exist [19:20:33]produce_requested_data [19:20:33]requested_item fm.sn is exist - process it [19:20:33]wFMCommunicate request_size=4 [19:20:33]MH_SAM_APDU [19:20:33]CAPDU: 80 11 00 00 [19:20:33]Write to MH i2c: E2 08 00 56 6E 80 11 00 00 00 00 00 00 3E [19:20:33]Write i2c OK [19:20:33]MH_I2C_Read... [19:20:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:33]Read from MH i2c: E2 [19:20:33]MH_I2C_Read... [19:20:33]Read from MH i2c: E2 17 00 [19:20:33]MH_I2C_Read... [19:20:33]Read from MH i2c: E2 17 00 56 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 95 [19:20:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:20:33]wFMCommunicate OK [19:20:33]requested_item fd.num is exist - process it [19:20:33]SAM_PROTO_GetFieldsCounters [19:20:33]wFMCommunicate request_size=4 [19:20:33]MH_SAM_APDU [19:20:33]CAPDU: 80 13 00 00 [19:20:33]Write to MH i2c: E2 08 00 57 6E 80 13 00 00 00 00 00 00 41 [19:20:33]Write i2c OK [19:20:33]MH_I2C_Read... [19:20:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:20:33]Read from MH i2c: E2 [19:20:33]MH_I2C_Read... [19:20:33]Read from MH i2c: E2 62 00 [19:20:33]MH_I2C_Read... [19:20:33]Read from MH i2c: E2 62 00 57 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 39 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 75 01 00 00 5E 04 04 00 75 01 00 00 57 04 04 00 76 01 00 00 19 04 04 00 00 00 00 00 90 00 9D [19:20:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 39 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 75 01 00 00 5E 04 04 00 75 01 00 00 57 04 04 00 76 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:20:33]wFMCommunicate OK [19:20:33]SAM_PROTO_GetFieldsCounters done [19:20:33]requested_item shift.num is exist - process it [19:20:33]requested_item shift.opened is exist - process it [19:20:33]req_shift_opened [19:20:33]FM_GetShiftState [19:20:33]SAM_PROTO_GetShiftState [19:20:33]wFMCommunicate request_size=4 [19:20:33]MH_SAM_APDU [19:20:33]CAPDU: 80 13 01 00 [19:20:33]Write to MH i2c: E2 08 00 58 6E 80 13 01 00 00 00 00 00 43 [19:20:33]Write i2c OK [19:20:33]MH_I2C_Read... [19:20:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:33]Read from MH i2c: E2 [19:20:33]MH_I2C_Read... [19:20:33]Read from MH i2c: E2 0E 00 [19:20:33]MH_I2C_Read... [19:20:33]Read from MH i2c: E2 0E 00 58 6E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 0A [19:20:33]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [19:20:33]wFMCommunicate OK [19:20:33]SAM_PROTO_GetShiftState done [19:20:33]FM_GetShiftState done [19:20:33]req_shift_opened done [19:20:33]requested_item shift.open_date is exist - process it [19:20:33]req_shift_open_date [19:20:33]req_shift_open_date done [19:20:33]produce_requested_data done [19:20:33]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228409,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [19:20:33]process_action_free close_receipt [19:20:33]json_value_free [19:20:33]json_value_free done [19:20:33]process_json_proto returns [19:20:33]Send response to host [19:20:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228409,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [19:20:33]free response buf [19:20:33]execute_script done [19:20:33]execute_script returns [19:20:33]free content buf [19:20:33]Sock 7.Close socket [19:20:33]Sock 7.Thread stoped [19:20:37]OFD Sender: No OFD packet to send [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:42]accept exits with 9 [19:21:42]New connection [19:21:42]New thread 3067137380 created [19:21:42]Thread 3066994020 joined [19:21:42]Waiting for new connection... [19:21:42] Sock 9.Parse request [19:21:42]Sock 9.Check first char [19:21:42]Sock 9.First char is OK [19:21:42]request: POST /json_proto HTTP/1.0 [19:21:42]Method: POST [19:21:42]URL: /json_proto [19:21:42]Method is POST - this is cgi request [19:21:42]url: /json_proto [19:21:42]query_string will be loaded in cgi processing [19:21:42]execute_cgi json_proto POST (null) [19:21:42]execute_cgi path=json_proto method=POST [19:21:42]POST find Content-Length [19:21:42]Host: 172.17.44.195:8080 [19:21:42]Content-Length: 678 [19:21:42]Content-Type: application/json [19:21:42] [19:21:42]POST finish read [19:21:42]Found Content-Length = 678 [19:21:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964972", "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" : 66.90, "quantity" : 3.740, "sum" : 250.21, "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" ] } } [19:21:42]execute_script... [19:21: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)1964972", "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" : 66.90, "quantity" : 3.740, "sum" : 250.21, "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" ] } } [19:21:42]POST & json_proto [19:21:42]process_json_proto [19:21:42]json parsed OK: [19:21:42]protocol is kg_v1.0 [19:21:42]action value=close_receipt [19:21:42]process_action close_receipt [19:21:42]cmd_close_receipt [19:21:42]MH_GetDate [19:21:42]Write to MH i2c: F0 00 00 59 6E B6 [19:21:42]Write i2c OK [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: F0 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: F0 09 00 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: F0 09 00 59 6E 00 4C FB 17 67 82 C9 CF 66 04 [19:21:42]GetLastDocTimeStamp 1729624835 [19:21:42]current date 1729624908 [19:21:42]FM_GetShiftState [19:21:42]SAM_PROTO_GetShiftState [19:21:42]wFMCommunicate request_size=4 [19:21:42]MH_SAM_APDU [19:21:42]CAPDU: 80 13 01 00 [19:21:42]Write to MH i2c: E2 08 00 5A 6E 80 13 01 00 00 00 00 00 45 [19:21:42]Write i2c OK [19:21:42]MH_I2C_Read... [19:21:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:42]Read from MH i2c: E2 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: E2 0E 00 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: E2 0E 00 5A 6E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 0C [19:21:42]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [19:21:42]wFMCommunicate OK [19:21:42]SAM_PROTO_GetShiftState done [19:21:42]FM_GetShiftState done [19:21:42]opened in 1729555538 [19:21:42]opened+sec_in_day 1729641938 [19:21:42]quantity*price = 25020 [19:21:42]sum+1 = 25022 [19:21:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 374 22.10.2024 19:21 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228410 ФПД: 197997509363662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192148&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228410&fm=197997509363662&tin=02508201610067®Number=0000000000091685&sum=25000 [19:21:44]StoreToDocumentArchive [19:21:44]shift 535 fd 228410 [19:21:44]save to /storage/0535/doc_00228410 [19:21:44]save last doc name /storage/0535/doc_00228410 to /storage/kkm_last_doc_name [19:21:44]save OK [19:21:44]Clear old archive folders... [19:21:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:21:44]tlvbuf is 008B1F20 [19:21:44]SAM_PROTO_ClearQueue [19:21:44]wFMCommunicate request_size=4 [19:21:44]MH_SAM_APDU [19:21:44]CAPDU: 80 09 00 00 [19:21:44]Write to MH i2c: E2 08 00 67 6E 80 09 00 00 00 00 00 00 47 [19:21:44]Write i2c OK [19:21:44]MH_I2C_Read... [19:21:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:21:44]Read from MH i2c: E2 [19:21:44]MH_I2C_Read... [19:21:44]Read from MH i2c: E2 03 00 [19:21:44]MH_I2C_Read... [19:21:44]Read from MH i2c: E2 03 00 67 6E 00 90 00 49 [19:21:44]RAPDU: 90 00 [19:21:44]wFMCommunicate OK [19:21:44]SAM_PROTO_ClearQueue done [19:21:44]KKMCreateOFDPacket [19:21:44]OFDProtocolAddRootSTLVToBuf [19:21:44]FM_MakeSignedData [19:21:44]FM_MakeSignedData [19:21:44]SAM_PROTO_SignData [19:21:44]wFMCommunicate request_size=4 [19:21:44]MH_SAM_APDU [19:21:44]CAPDU: 80 0D 01 02 [19:21:44]Write to MH i2c: E2 08 00 68 6E 80 0D 01 02 00 00 00 00 4F [19:21:44]Write i2c OK [19:21:44]MH_I2C_Read... [19:21:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:21:44]Read from MH i2c: E2 [19:21:44]MH_I2C_Read... [19:21:44]Read from MH i2c: E2 03 00 [19:21:44]MH_I2C_Read... [19:21:44]Read from MH i2c: E2 03 00 68 6E 00 90 00 4A [19:21:44]RAPDU: 90 00 [19:21:44]wFMCommunicate OK [19:21:44]wFMCommunicate request_size=255 [19:21:44]MH_SAM_APDU [19:21: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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 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 61 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 76 01 00 00 F4 03 04 00 4C FB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3A 7C 03 00 35 04 06 00 B4 [19:21:44]Write to MH i2c: E2 02 01 69 6E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 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 61 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 76 01 00 00 F4 03 04 00 4C FB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3A 7C 03 00 35 04 06 00 B4 00 00 81 [19:21:44]Write i2c OK [19:21:44]MH_I2C_Read... [19:21:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:44]Read from MH i2c: E2 [19:21:44]MH_I2C_Read... [19:21:44]Read from MH i2c: E2 03 00 [19:21:44]MH_I2C_Read... [19:21:44]Read from MH i2c: E2 03 00 69 6E 00 90 00 4B [19:21:44]RAPDU: 90 00 [19:21:44]wFMCommunicate OK [19:21:44]wFMCommunicate request_size=10 [19:21:44]MH_SAM_APDU [19:21:44]CAPDU: 80 0D 02 02 05 13 E3 36 47 CE [19:21:44]Write to MH i2c: E2 0D 00 6A 6E 80 0D 02 02 05 00 13 E3 36 47 CE 00 00 9D [19:21:44]Write i2c OK [19:21:44]MH_I2C_Read... [19:21:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:44]Read from MH i2c: E2 [19:21:44]MH_I2C_Read... [19:21:44]Read from MH i2c: E2 03 00 [19:21:44]MH_I2C_Read... [19:21:44]Read from MH i2c: E2 03 00 6A 6E 00 90 00 4C [19:21:44]RAPDU: 90 00 [19:21:44]wFMCommunicate OK [19:21:44]wFMCommunicate request_size=4 [19:21:44]MH_SAM_APDU [19:21:44]CAPDU: 80 0D 03 02 [19:21:44]Write to MH i2c: E2 08 00 6B 6E 80 0D 03 02 00 00 00 00 54 [19:21:44]Write i2c OK [19:21:44]MH_I2C_Read... [19:21:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:21:44]Read from MH i2c: E2 [19:21:44]MH_I2C_Read... [19:21:44]Read from MH i2c: E2 0B 00 [19:21:44]MH_I2C_Read... [19:21:44]Read from MH i2c: E2 0B 00 6B 6E 00 15 23 9A D0 84 4E 26 29 90 00 18 [19:21:44]RAPDU: 15 23 9A D0 84 4E 26 29 90 00 [19:21:44]wFMCommunicate OK [19:21:44]SAM_PROTO_SignData done [19:21:44]FM_MakeSignedData done [19:21:44]CreateOFDProtocolMessage [19:21:44]wFMCommunicate request_size=4 [19:21:44]MH_SAM_APDU [19:21:44]CAPDU: 80 11 00 00 [19:21:44]Write to MH i2c: E2 08 00 6C 6E 80 11 00 00 00 00 00 00 54 [19:21:44]Write i2c OK [19:21:44]MH_I2C_Read... [19:21:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:44]Read from MH i2c: E2 [19:21:44]MH_I2C_Read... [19:21:44]Read from MH i2c: E2 17 00 [19:21:44]MH_I2C_Read... [19:21:44]Read from MH i2c: E2 17 00 6C 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AB [19:21:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:21:44]wFMCommunicate OK [19:21:44]CreateOFDProtocolMessage done [19:21:44]OFDSenderStorePacket 228410 [19:21:44]StoreOFDPacket docnum=228410 [19:21:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 74 A0 07 01 E8 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 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 61 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 76 01 00 00 F4 03 04 00 4C FB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3A 7C 03 00 35 04 06 00 B4 13 E3 36 47 CE 15 23 9A D0 84 4E 26 29 [19:21:44]CheckFolder [19:21:44]dirname=/storage/ofd_packets [19:21:44]CheckFolder done [19:21:44]ProducePacketName [19:21:44]name=ofd_packets/00228410 [19:21:44]NVStorageSaveData ofd_packets/00228410 [19:21:44]File name is /storage/ofd_packets/00228410 [19:21:44]Write 301 bytes [19:21:44]NVStorageSaveData done [19:21:44]OFDSenderStorePacket done [19:21:44]KKMCreateOFDPacket done [19:21:44]NVStorageSaveData kkm_last_timestamp [19:21:44]File name is /storage/kkm_last_timestamp [19:21:44]Write 4 bytes [19:21:44]NVStorageSaveData done [19:21:44]ExternCall_PrintAddStr [19:21:44]wPrintStart [19:21:44]Write to MH i2c: 01 00 00 6D 6E DB [19:21:44]Write i2c OK [19:21:44]MH_I2C_Read... [19:21:44]Read from MH i2c: 01 [19:21:44]MH_I2C_Read... [19:21:44]Read from MH i2c: 01 07 00 [19:21:44]MH_I2C_Read... [19:21:44]Read from MH i2c: 01 07 00 6D 6E 00 00 00 00 00 FF 0F F0 [19:21:44]RasterBufferAndPrint [19:21:44]line Счет N : (1)1964972 [19:21:44]line ИНН: 02508201610067 [19:21:44]line Контрольно-Кассовый Чек [19:21:44]line ПРОДАЖА [19:21:44]line ТРК (МРК, ГНК) : 53 [19:21:44]line Товар: 2710124130 [19:21:44]line Аи-92-К-5 [19:21:44]line 3.740 * 66.90 [19:21:44]line = 250.21 [19:21:44]line НДС 12% НСП 1% [19:21:44]line > о реализуемом товаре [19:21:44]line ОКРУГЛЕНИЕ: -0.21 [19:21:44]line ИТОГО: 250.00 [19:21:44]line Внесено: 250.00 [19:21:44]line СДАЧА: 0.00 [19:21:44]line НСП 1% : 2.21 [19:21:44]line НДС 12% : 26.57 [19:21:44]line Наличными: 250.00 [19:21:44]line Безнал.: 0.00 [19:21:44]line Место: АЗС № 133 "Партнер Нефть" [19:21:44]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:21:44]line СНО: Общий режим [19:21:44]line Чек 374 22.10.2024 19:21 [19:21:44]line Смена: 535 ФФД: 1.0 [19:21:44]line ЗНМ: 0300000091 [19:21:44]line РНМ: 0000000000091685 [19:21:44]line Версия ККМ: 001 [19:21:44]line ФМ: 0000000000871839 [19:21:44]line ФД: 228410 [19:21:44]line ФПД: 197997509363662 [19:21:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192148&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228410&fm=197997509363662&tin=02508201610067®Number=0000000000091685&sum=25000 [19:21:44]written 0, free lines is 4095 [19:21:44]OFD Sender: Processing packet 228410 [packets to send 38, broken 37] [19:21:44]ProducePacketName [19:21:44]name=ofd_packets/00228410 [19:21:44]OFD Sender: To server: pG, [19:21:44]CommunicateWithHost lk.salyk.kg:30040 [19:21:44]ConnectInit lk.salyk.kg [19:21:45]Connected sock=10 [19:21:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 74 A0 07 01 E8 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 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 61 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 76 01 00 00 F4 03 04 00 4C FB 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3A 7C 03 00 35 04 06 00 B4 13 E3 36 47 CE 15 23 9A D0 84 4E 26 29 [19:21:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 22 D4 47 00 9D AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3A 7C 03 00 F4 03 04 00 43 A6 17 67 B6 04 01 00 00 9B E6 72 4D 41 5F 53 61 [19:21:45]CommunicateWithHost err = 0 [19:21:45]CheckOFDResponse [19:21:45]1017 (14) - 77093643461234 [19:21:45]1041 (16) - 0000000000871839 [19:21:45]1040 (4) - 228410 [19:21:45]1012 (4) - 22.10.2024 13:18 [19:21:45]1206 (1) - 0 [19:21:45]OFD Sender: Remove packet 228410 [19:21:45]ProducePacketName [19:21:45]name=ofd_packets/00228410 [19:21:45]NVStorageDeleteData [19:21:45]Write to MH i2c: 01 00 00 97 6E 05 [19:21:45]Write i2c OK [19:21:45]MH_I2C_Read... [19:21:45]Read from MH i2c: 01 [19:21:45]MH_I2C_Read... [19:21:45]Read from MH i2c: 01 07 00 [19:21:45]MH_I2C_Read... [19:21:45]Read from MH i2c: 01 07 00 97 6E 00 00 00 00 00 B1 0C C9 [19:21:45]RasterBufferAndPrint [19:21:45]line [19:21:45]line [19:21:45]line [19:21:45]line [19:21:45]line [19:21:45]written 0, free lines is 3254 [19:21:45]MH_Cut [19:21:45]Write to MH i2c: D1 01 00 9E 6E 01 DE [19:21:45]Write i2c OK [19:21:45]MH_I2C_Read... [19:21:45]Read from MH i2c: D1 [19:21:45]MH_I2C_Read... [19:21:45]Read from MH i2c: D1 01 00 [19:21:45]MH_I2C_Read... [19:21:45]Read from MH i2c: D1 01 00 9E 6E 00 DD [19:21:45]Write to MH i2c: 01 00 00 9F 6E 0D [19:21:45]Write i2c OK [19:21:45]MH_I2C_Read... [19:21:45]OFD Sender: No OFD packet to send [19:21:46]*** Cut start [19:21:46]*** Partial cut [19:21:46]*** CUTSNS_PIN = 1 [19:21:46]*** CUTSNS_PIN = 0 [19:21:46]*** Brake cut motor [19:21:46]Read from MH i2c: 01 [19:21:46]MH_I2C_Read... [19:21:46]*** Stop cut motor [19:21:46]*** Cut end [19:21:46]Read from MH i2c: 01 07 00 [19:21:46]MH_I2C_Read... [19:21:46]Read from MH i2c: 01 07 00 9F 6E 00 00 00 00 00 FF 0F 22 [19:21:46]process_action close_receipt done [19:21:46]requested_data is exist [19:21:46]produce_requested_data [19:21:46]requested_item fm.sn is exist - process it [19:21:46]wFMCommunicate request_size=4 [19:21:46]MH_SAM_APDU [19:21:46]CAPDU: 80 11 00 00 [19:21:46]Write to MH i2c: E2 08 00 A0 6E 80 11 00 00 00 00 00 00 88 [19:21:46]Write i2c OK [19:21:46]MH_I2C_Read... [19:21:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:47]Read from MH i2c: E2 [19:21:47]MH_I2C_Read... [19:21:47]Read from MH i2c: E2 17 00 [19:21:47]MH_I2C_Read... [19:21:47]Read from MH i2c: E2 17 00 A0 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DF [19:21:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:21:47]wFMCommunicate OK [19:21:47]requested_item fd.num is exist - process it [19:21:47]SAM_PROTO_GetFieldsCounters [19:21:47]wFMCommunicate request_size=4 [19:21:47]MH_SAM_APDU [19:21:47]CAPDU: 80 13 00 00 [19:21:47]Write to MH i2c: E2 08 00 A1 6E 80 13 00 00 00 00 00 00 8B [19:21:47]Write i2c OK [19:21:47]MH_I2C_Read... [19:21:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:21:47]Read from MH i2c: E2 [19:21:47]MH_I2C_Read... [19:21:47]Read from MH i2c: E2 62 00 [19:21:47]MH_I2C_Read... [19:21:47]Read from MH i2c: E2 62 00 A1 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3A 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 EB [19:21:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3A 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:21:47]wFMCommunicate OK [19:21:47]SAM_PROTO_GetFieldsCounters done [19:21:47]requested_item shift.num is exist - process it [19:21:47]requested_item shift.opened is exist - process it [19:21:47]req_shift_opened [19:21:47]FM_GetShiftState [19:21:47]SAM_PROTO_GetShiftState [19:21:47]wFMCommunicate request_size=4 [19:21:47]MH_SAM_APDU [19:21:47]CAPDU: 80 13 01 00 [19:21:47]Write to MH i2c: E2 08 00 A2 6E 80 13 01 00 00 00 00 00 8D [19:21:47]Write i2c OK [19:21:47]MH_I2C_Read... [19:21:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:47]Read from MH i2c: E2 [19:21:47]MH_I2C_Read... [19:21:47]Read from MH i2c: E2 0E 00 [19:21:47]MH_I2C_Read... [19:21:47]Read from MH i2c: E2 0E 00 A2 6E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 54 [19:21:47]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [19:21:47]wFMCommunicate OK [19:21:47]SAM_PROTO_GetShiftState done [19:21:47]FM_GetShiftState done [19:21:47]req_shift_opened done [19:21:47]requested_item shift.open_date is exist - process it [19:21:47]req_shift_open_date [19:21:47]req_shift_open_date done [19:21:47]produce_requested_data done [19:21:47]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228410,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [19:21:47]process_action_free close_receipt [19:21:47]json_value_free [19:21:47]json_value_free done [19:21:47]process_json_proto returns [19:21:47]Send response to host [19:21:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228410,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [19:21:47]free response buf [19:21:47]execute_script done [19:21:47]execute_script returns [19:21:47]free content buf [19:21:47]Sock 9.Close socket [19:21:47]Sock 9.Thread stoped [19:21:50]OFD Sender: No OFD packet to send [19:21:55]OFD Sender: No OFD packet to send [19:22:00]OFD Sender: No OFD packet to send [19:22:05]OFD Sender: No OFD packet to send [19:22:10]OFD Sender: No OFD packet to send [19:22:15]OFD Sender: No OFD packet to send [19:22:20]OFD Sender: No OFD packet to send [19:22:25]OFD Sender: No OFD packet to send [19:22:30]OFD Sender: No OFD packet to send [19:22:35]OFD Sender: No OFD packet to send [19:22:40]OFD Sender: No OFD packet to send [19:22:45]OFD Sender: No OFD packet to send [19:22:50]OFD Sender: No OFD packet to send [19:22:55]OFD Sender: No OFD packet to send [19:23:00]OFD Sender: No OFD packet to send [19:23:05]OFD Sender: No OFD packet to send [19:23:10]OFD Sender: No OFD packet to send [19:23:15]OFD Sender: No OFD packet to send [19:23:20]OFD Sender: No OFD packet to send [19:23:25]OFD Sender: No OFD packet to send [19:23:30]OFD Sender: No OFD packet to send [19:23:35]OFD Sender: No OFD packet to send [19:23:40]OFD Sender: No OFD packet to send [19:23:45]OFD Sender: No OFD packet to send [19:23:50]OFD Sender: No OFD packet to send [19:23:55]OFD Sender: No OFD packet to send [19:24:00]OFD Sender: No OFD packet to send [19:24:05]OFD Sender: No OFD packet to send [19:24:10]OFD Sender: No OFD packet to send [19:24:15]OFD Sender: No OFD packet to send [19:24:20]OFD Sender: No OFD packet to send [19:24:25]OFD Sender: No OFD packet to send [19:24:30]OFD Sender: No OFD packet to send [19:24:35]OFD Sender: No OFD packet to send [19:24:40]OFD Sender: No OFD packet to send [19:24:45]OFD Sender: No OFD packet to send [19:24:50]OFD Sender: No OFD packet to send [19:24:55]OFD Sender: No OFD packet to send [19:24:56]accept exits with 7 [19:24:56]New connection [19:24:56]New thread 3066994020 created [19:24:56]Thread 3067137380 joined [19:24:56]Waiting for new connection... [19:24:56] Sock 7.Parse request [19:24:56]Sock 7.Check first char [19:24:56]Sock 7.First char is OK [19:24:56]request: POST /json_proto HTTP/1.0 [19:24:56]Method: POST [19:24:56]URL: /json_proto [19:24:56]Method is POST - this is cgi request [19:24:56]url: /json_proto [19:24:56]query_string will be loaded in cgi processing [19:24:56]execute_cgi json_proto POST (null) [19:24:56]execute_cgi path=json_proto method=POST [19:24:56]POST find Content-Length [19:24:56]Host: 172.17.44.195:8080 [19:24:56]Content-Length: 676 [19:24:56]Content-Type: application/json [19:24:56] [19:24:56]POST finish read [19:24:56]Found Content-Length = 676 [19:24:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "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" ] } } [19:24:56]execute_script... [19: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)1964975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "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" ] } } [19:24:56]POST & json_proto [19:24:56]process_json_proto [19:24:56]json parsed OK: [19:24:56]protocol is kg_v1.0 [19:24:56]action value=close_receipt [19:24:56]process_action close_receipt [19:24:56]cmd_close_receipt [19:24:56]MH_GetDate [19:24:56]Write to MH i2c: F0 00 00 A3 6E 00 [19:24:56]Write i2c OK [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: F0 [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: F0 09 00 [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: F0 09 00 A3 6E 00 0E FC 17 67 82 C9 CF 66 11 [19:24:56]GetLastDocTimeStamp 1729624908 [19:24:56]current date 1729625102 [19:24:56]FM_GetShiftState [19:24:56]SAM_PROTO_GetShiftState [19:24:56]wFMCommunicate request_size=4 [19:24:56]MH_SAM_APDU [19:24:56]CAPDU: 80 13 01 00 [19:24:56]Write to MH i2c: E2 08 00 A4 6E 80 13 01 00 00 00 00 00 8F [19:24:56]Write i2c OK [19:24:56]MH_I2C_Read... [19:24:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:56]Read from MH i2c: E2 [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: E2 0E 00 [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: E2 0E 00 A4 6E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 56 [19:24:56]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [19:24:56]wFMCommunicate OK [19:24:56]SAM_PROTO_GetShiftState done [19:24:56]FM_GetShiftState done [19:24:56]opened in 1729555538 [19:24:56]opened+sec_in_day 1729641938 [19:24:56]quantity*price = 80010 [19:24:56]sum+1 = 80011 [19:24:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 375 22.10.2024 19:25 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228411 ФПД: 222381570628777 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192502&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228411&fm=222381570628777&tin=02508201610067®Number=0000000000091685&sum=80000 [19:24:57]StoreToDocumentArchive [19:24:57]shift 535 fd 228411 [19:24:57]save to /storage/0535/doc_00228411 [19:24:57]save last doc name /storage/0535/doc_00228411 to /storage/kkm_last_doc_name [19:24:57]save OK [19:24:57]Clear old archive folders... [19:24:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:24:57]tlvbuf is 00A6CEB0 [19:24:57]SAM_PROTO_ClearQueue [19:24:57]wFMCommunicate request_size=4 [19:24:57]MH_SAM_APDU [19:24:57]CAPDU: 80 09 00 00 [19:24:57]Write to MH i2c: E2 08 00 B1 6E 80 09 00 00 00 00 00 00 91 [19:24:57]Write i2c OK [19:24:57]MH_I2C_Read... [19:24:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:24:57]Read from MH i2c: E2 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: E2 03 00 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: E2 03 00 B1 6E 00 90 00 93 [19:24:57]RAPDU: 90 00 [19:24:57]wFMCommunicate OK [19:24:57]SAM_PROTO_ClearQueue done [19:24:57]KKMCreateOFDPacket [19:24:57]OFDProtocolAddRootSTLVToBuf [19:24:57]FM_MakeSignedData [19:24:57]FM_MakeSignedData [19:24:57]SAM_PROTO_SignData [19:24:57]wFMCommunicate request_size=4 [19:24:57]MH_SAM_APDU [19:24:57]CAPDU: 80 0D 01 02 [19:24:57]Write to MH i2c: E2 08 00 B2 6E 80 0D 01 02 00 00 00 00 99 [19:24:57]Write i2c OK [19:24:57]MH_I2C_Read... [19:24:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:24:57]Read from MH i2c: E2 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: E2 03 00 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: E2 03 00 B2 6E 00 90 00 94 [19:24:57]RAPDU: 90 00 [19:24:57]wFMCommunicate OK [19:24:57]wFMCommunicate request_size=255 [19:24:57]MH_SAM_APDU [19:24: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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 0E FC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3B 7C 03 00 35 04 06 00 CA 41 3E 85 [19:24:57]Write to MH i2c: E2 02 01 B3 6E 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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 0E FC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3B 7C 03 00 35 04 06 00 CA 41 3E 85 00 00 FA [19:24:57]Write i2c OK [19:24:57]MH_I2C_Read... [19:24:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:58]Read from MH i2c: E2 [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: E2 03 00 [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: E2 03 00 B3 6E 00 90 00 95 [19:24:58]RAPDU: 90 00 [19:24:58]wFMCommunicate OK [19:24:58]wFMCommunicate request_size=7 [19:24:58]MH_SAM_APDU [19:24:58]CAPDU: 80 0D 02 02 02 9C A9 [19:24:58]Write to MH i2c: E2 0A 00 B4 6E 80 0D 02 02 02 00 9C A9 00 00 E5 [19:24:58]Write i2c OK [19:24:58]MH_I2C_Read... [19:24:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:58]Read from MH i2c: E2 [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: E2 03 00 [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: E2 03 00 B4 6E 00 90 00 96 [19:24:58]RAPDU: 90 00 [19:24:58]wFMCommunicate OK [19:24:58]wFMCommunicate request_size=4 [19:24:58]MH_SAM_APDU [19:24:58]CAPDU: 80 0D 03 02 [19:24:58]Write to MH i2c: E2 08 00 B5 6E 80 0D 03 02 00 00 00 00 9E [19:24:58]Write i2c OK [19:24:58]MH_I2C_Read... [19:24:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:58]Read from MH i2c: E2 [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: E2 0B 00 [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: E2 0B 00 B5 6E 00 85 38 65 68 5C 11 ED 8D 90 00 10 [19:24:58]RAPDU: 85 38 65 68 5C 11 ED 8D 90 00 [19:24:58]wFMCommunicate OK [19:24:58]SAM_PROTO_SignData done [19:24:58]FM_MakeSignedData done [19:24:58]CreateOFDProtocolMessage [19:24:58]wFMCommunicate request_size=4 [19:24:58]MH_SAM_APDU [19:24:58]CAPDU: 80 11 00 00 [19:24:58]Write to MH i2c: E2 08 00 B6 6E 80 11 00 00 00 00 00 00 9E [19:24:58]Write i2c OK [19:24:58]MH_I2C_Read... [19:24:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:58]Read from MH i2c: E2 [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: E2 17 00 [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: E2 17 00 B6 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F5 [19:24:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:24:58]wFMCommunicate OK [19:24:58]CreateOFDProtocolMessage done [19:24:58]OFDSenderStorePacket 228411 [19:24:58]StoreOFDPacket docnum=228411 [19:24:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 36 FA 04 01 FA 4B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 0E FC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3B 7C 03 00 35 04 06 00 CA 41 3E 85 9C A9 85 38 65 68 5C 11 ED 8D [19:24:58]CheckFolder [19:24:58]dirname=/storage/ofd_packets [19:24:58]CheckFolder done [19:24:58]ProducePacketName [19:24:58]name=ofd_packets/00228411 [19:24:58]NVStorageSaveData ofd_packets/00228411 [19:24:58]File name is /storage/ofd_packets/00228411 [19:24:58]Write 298 bytes [19:24:58]NVStorageSaveData done [19:24:58]OFDSenderStorePacket done [19:24:58]KKMCreateOFDPacket done [19:24:58]NVStorageSaveData kkm_last_timestamp [19:24:58]File name is /storage/kkm_last_timestamp [19:24:58]Write 4 bytes [19:24:58]NVStorageSaveData done [19:24:58]ExternCall_PrintAddStr [19:24:58]wPrintStart [19:24:58]Write to MH i2c: 01 00 00 B7 6E 25 [19:24:58]Write i2c OK [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: 01 [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: 01 07 00 [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: 01 07 00 B7 6E 00 00 00 00 00 FF 0F 3A [19:24:58]RasterBufferAndPrint [19:24:58]line Счет N : (1)1964975 [19:24:58]line ИНН: 02508201610067 [19:24:58]line Контрольно-Кассовый Чек [19:24:58]line ПРОДАЖА [19:24:58]line ТРК (МРК, ГНК) : 31 [19:24:58]line Товар: 2710194210 [19:24:58]line ДТ-К-5 [19:24:58]line 10.500 * 76.20 [19:24:58]line = 800.10 [19:24:58]line НДС 12% НСП 1% [19:24:58]line > о реализуемом товаре [19:24:58]line ОКРУГЛЕНИЕ: -0.10 [19:24:58]line ИТОГО: 800.00 [19:24:58]line Внесено: 800.00 [19:24:58]line СДАЧА: 0.00 [19:24:58]line НСП 1% : 7.08 [19:24:58]line НДС 12% : 84.97 [19:24:58]line Наличными: 800.00 [19:24:58]line Безнал.: 0.00 [19:24:58]line Место: АЗС № 133 "Партнер Нефть" [19:24:58]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:24:58]line СНО: Общий режим [19:24:58]line Чек 375 22.10.2024 19:25 [19:24:58]line Смена: 535 ФФД: 1.0 [19:24:58]line ЗНМ: 0300000091 [19:24:58]line РНМ: 0000000000091685 [19:24:58]line Версия ККМ: 001 [19:24:58]line ФМ: 0000000000871839 [19:24:58]line ФД: 228411 [19:24:58]line ФПД: 222381570628777 [19:24:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192502&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228411&fm=222381570628777&tin=02508201610067®Number=0000000000091685&sum=80000 [19:24:58]OFD Sender: Processing packet 228411 [packets to send 38, broken 37] [19:24:58]ProducePacketName [19:24:58]name=ofd_packets/00228411 [19:24:58]OFD Sender: To server: pG, [19:24:58]CommunicateWithHost lk.salyk.kg:30040 [19:24:58]ConnectInit lk.salyk.kg [19:24:58]written 0, free lines is 4095 [19:24:58]Connected sock=10 [19:24:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 36 FA 04 01 FA 4B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 0E FC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3B 7C 03 00 35 04 06 00 CA 41 3E 85 9C A9 85 38 65 68 5C 11 ED 8D [19:24:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 E6 52 47 00 82 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3B 7C 03 00 F4 03 04 00 05 A7 17 67 B6 04 01 00 00 89 B2 DF 1C 2D C9 4B A2 [19:24:58]CommunicateWithHost err = 0 [19:24:58]CheckOFDResponse [19:24:58]1017 (14) - 77093643461234 [19:24:58]1041 (16) - 0000000000871839 [19:24:58]1040 (4) - 228411 [19:24:58]1012 (4) - 22.10.2024 13:22 [19:24:58]1206 (1) - 0 [19:24:58]OFD Sender: Remove packet 228411 [19:24:58]ProducePacketName [19:24:58]name=ofd_packets/00228411 [19:24:58]NVStorageDeleteData [19:24:58]Write to MH i2c: 01 00 00 E1 6E 4F [19:24:58]Write i2c OK [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: 01 [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: 01 07 00 [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: 01 07 00 E1 6E 00 00 00 00 00 A7 0C 09 [19:24:58]RasterBufferAndPrint [19:24:58]line [19:24:58]line [19:24:58]line [19:24:58]line [19:24:58]line [19:24:58]written 0, free lines is 3243 [19:24:58]MH_Cut [19:24:58]Write to MH i2c: D1 01 00 E8 6E 01 28 [19:24:58]Write i2c OK [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: D1 [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: D1 01 00 [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: D1 01 00 E8 6E 00 27 [19:24:58]Write to MH i2c: 01 00 00 E9 6E 57 [19:24:58]Write i2c OK [19:24:58]MH_I2C_Read... [19:24:59]OFD Sender: No OFD packet to send [19:24:59]*** Cut start [19:24:59]*** Partial cut [19:24:59]*** CUTSNS_PIN = 1 [19:24:59]*** CUTSNS_PIN = 0 [19:25:00]*** Brake cut motor [19:25:00]Read from MH i2c: 01 [19:25:00]MH_I2C_Read... [19:25:00]*** Stop cut motor [19:25:00]*** Cut end [19:25:00]Read from MH i2c: 01 07 00 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: 01 07 00 E9 6E 00 00 00 00 00 FF 0F 6C [19:25:00]process_action close_receipt done [19:25:00]requested_data is exist [19:25:00]produce_requested_data [19:25:00]requested_item fm.sn is exist - process it [19:25:00]wFMCommunicate request_size=4 [19:25:00]MH_SAM_APDU [19:25:00]CAPDU: 80 11 00 00 [19:25:00]Write to MH i2c: E2 08 00 EA 6E 80 11 00 00 00 00 00 00 D2 [19:25:00]Write i2c OK [19:25:00]MH_I2C_Read... [19:25:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:00]Read from MH i2c: E2 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: E2 17 00 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: E2 17 00 EA 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 29 [19:25:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:25:00]wFMCommunicate OK [19:25:00]requested_item fd.num is exist - process it [19:25:00]SAM_PROTO_GetFieldsCounters [19:25:00]wFMCommunicate request_size=4 [19:25:00]MH_SAM_APDU [19:25:00]CAPDU: 80 13 00 00 [19:25:00]Write to MH i2c: E2 08 00 EB 6E 80 13 00 00 00 00 00 00 D5 [19:25:00]Write i2c OK [19:25:00]MH_I2C_Read... [19:25:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:25:00]Read from MH i2c: E2 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: E2 62 00 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: E2 62 00 EB 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3B 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 77 01 00 00 5E 04 04 00 77 01 00 00 57 04 04 00 78 01 00 00 19 04 04 00 00 00 00 00 90 00 39 [19:25:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3B 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 77 01 00 00 5E 04 04 00 77 01 00 00 57 04 04 00 78 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:25:00]wFMCommunicate OK [19:25:00]SAM_PROTO_GetFieldsCounters done [19:25:00]requested_item shift.num is exist - process it [19:25:00]requested_item shift.opened is exist - process it [19:25:00]req_shift_opened [19:25:00]FM_GetShiftState [19:25:00]SAM_PROTO_GetShiftState [19:25:00]wFMCommunicate request_size=4 [19:25:00]MH_SAM_APDU [19:25:00]CAPDU: 80 13 01 00 [19:25:00]Write to MH i2c: E2 08 00 EC 6E 80 13 01 00 00 00 00 00 D7 [19:25:00]Write i2c OK [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: E2 [19:25:00]MH_I2C_Read... [19:25:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:00]Read from MH i2c: E2 0E 00 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: E2 0E 00 EC 6E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 9E [19:25:00]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [19:25:00]wFMCommunicate OK [19:25:00]SAM_PROTO_GetShiftState done [19:25:00]FM_GetShiftState done [19:25:00]req_shift_opened done [19:25:00]requested_item shift.open_date is exist - process it [19:25:00]req_shift_open_date [19:25:00]req_shift_open_date done [19:25:00]produce_requested_data done [19:25:00]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228411,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [19:25:00]process_action_free close_receipt [19:25:00]json_value_free [19:25:00]json_value_free done [19:25:00]process_json_proto returns [19:25:00]Send response to host [19:25:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228411,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [19:25:00]free response buf [19:25:00]execute_script done [19:25:00]execute_script returns [19:25:00]free content buf [19:25:00]Sock 7.Close socket [19:25:00]Sock 7.Thread stoped [19:25:04]OFD Sender: No OFD packet to send [19:25:09]OFD Sender: No OFD packet to send [19:25:14]OFD Sender: No OFD packet to send [19:25:19]OFD Sender: No OFD packet to send [19:25:24]OFD Sender: No OFD packet to send [19:25:29]OFD Sender: No OFD packet to send [19:25:34]OFD Sender: No OFD packet to send [19:25:39]OFD Sender: No OFD packet to send [19:25:44]OFD Sender: No OFD packet to send [19:25:49]OFD Sender: No OFD packet to send [19:25:54]OFD Sender: No OFD packet to send [19:25:59]OFD Sender: No OFD packet to send [19:26:04]OFD Sender: No OFD packet to send [19:26:09]OFD Sender: No OFD packet to send [19:26:14]OFD Sender: No OFD packet to send [19:26:19]OFD Sender: No OFD packet to send [19:26:24]OFD Sender: No OFD packet to send [19:26:29]OFD Sender: No OFD packet to send [19:26:34]OFD Sender: No OFD packet to send [19:26:36]accept exits with 9 [19:26:36]New connection [19:26:36]New thread 3067137380 created [19:26:36]Thread 3066994020 joined [19:26:36]Waiting for new connection... [19:26:36] Sock 9.Parse request [19:26:36]Sock 9.Check first char [19:26:36]Sock 9.First char is OK [19:26:36]request: POST /json_proto HTTP/1.0 [19:26:36]Method: POST [19:26:36]URL: /json_proto [19:26:36]Method is POST - this is cgi request [19:26:36]url: /json_proto [19:26:36]query_string will be loaded in cgi processing [19:26:36]execute_cgi json_proto POST (null) [19:26:36]execute_cgi path=json_proto method=POST [19:26:36]POST find Content-Length [19:26:36]Host: 172.17.44.195:8080 [19:26:36]Content-Length: 678 [19:26:36]Content-Type: application/json [19:26:36] [19:26:36]POST finish read [19:26:36]Found Content-Length = 678 [19:26:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 2.970, "sum" : 220.37, "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" ] } } [19:26:36]execute_script... [19:26: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)1964977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 2.970, "sum" : 220.37, "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" ] } } [19:26:36]POST & json_proto [19:26:36]process_json_proto [19:26:36]json parsed OK: [19:26:36]protocol is kg_v1.0 [19:26:36]action value=close_receipt [19:26:36]process_action close_receipt [19:26:36]cmd_close_receipt [19:26:36]MH_GetDate [19:26:36]Write to MH i2c: F0 00 00 ED 6E 4A [19:26:36]Write i2c OK [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: F0 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: F0 09 00 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: F0 09 00 ED 6E 00 71 FC 17 67 82 C9 CF 66 BE [19:26:36]GetLastDocTimeStamp 1729625102 [19:26:36]current date 1729625201 [19:26:36]FM_GetShiftState [19:26:36]SAM_PROTO_GetShiftState [19:26:36]wFMCommunicate request_size=4 [19:26:36]MH_SAM_APDU [19:26:36]CAPDU: 80 13 01 00 [19:26:36]Write to MH i2c: E2 08 00 EE 6E 80 13 01 00 00 00 00 00 D9 [19:26:36]Write i2c OK [19:26:36]MH_I2C_Read... [19:26:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:36]Read from MH i2c: E2 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: E2 0E 00 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: E2 0E 00 EE 6E 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 A0 [19:26:36]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [19:26:36]wFMCommunicate OK [19:26:36]SAM_PROTO_GetShiftState done [19:26:36]FM_GetShiftState done [19:26:36]opened in 1729555538 [19:26:36]opened+sec_in_day 1729641938 [19:26:36]quantity*price = 22037 [19:26:36]sum+1 = 22038 [19:26:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.40 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 376 22.10.2024 19:26 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228412 ФПД: 167817691436956 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192641&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228412&fm=167817691436956&tin=02508201610067®Number=0000000000091685&sum=22000 [19:26:37]StoreToDocumentArchive [19:26:37]shift 535 fd 228412 [19:26:37]save to /storage/0535/doc_00228412 [19:26:37]save last doc name /storage/0535/doc_00228412 to /storage/kkm_last_doc_name [19:26:37]save OK [19:26:37]Clear old archive folders... [19:26:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:26:37]tlvbuf is 008FF890 [19:26:37]SAM_PROTO_ClearQueue [19:26:37]wFMCommunicate request_size=4 [19:26:37]MH_SAM_APDU [19:26:37]CAPDU: 80 09 00 00 [19:26:37]Write to MH i2c: E2 08 00 FB 6E 80 09 00 00 00 00 00 00 DB [19:26:37]Write i2c OK [19:26:37]MH_I2C_Read... [19:26:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:37]Read from MH i2c: E2 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: E2 03 00 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: E2 03 00 FB 6E 00 90 00 DD [19:26:37]RAPDU: 90 00 [19:26:37]wFMCommunicate OK [19:26:37]SAM_PROTO_ClearQueue done [19:26:37]KKMCreateOFDPacket [19:26:37]OFDProtocolAddRootSTLVToBuf [19:26:37]FM_MakeSignedData [19:26:37]FM_MakeSignedData [19:26:37]SAM_PROTO_SignData [19:26:37]wFMCommunicate request_size=4 [19:26:37]MH_SAM_APDU [19:26:37]CAPDU: 80 0D 01 02 [19:26:37]Write to MH i2c: E2 08 00 FC 6E 80 0D 01 02 00 00 00 00 E3 [19:26:37]Write i2c OK [19:26:37]MH_I2C_Read... [19:26:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:37]Read from MH i2c: E2 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: E2 03 00 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: E2 03 00 FC 6E 00 90 00 DE [19:26:37]RAPDU: 90 00 [19:26:37]wFMCommunicate OK [19:26:37]wFMCommunicate request_size=255 [19:26:37]MH_SAM_APDU [19:26:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 15 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 24 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 78 01 00 00 F4 03 04 00 71 FC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3C 7C 03 00 35 04 06 00 98 [19:26:37]Write to MH i2c: E2 02 01 FD 6E 80 0D 02 02 FA 00 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 9A 0B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 15 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 24 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 78 01 00 00 F4 03 04 00 71 FC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3C 7C 03 00 35 04 06 00 98 00 00 6B [19:26:37]Write i2c OK [19:26:37]MH_I2C_Read... [19:26:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:37]Read from MH i2c: E2 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: E2 03 00 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: E2 03 00 FD 6E 00 90 00 DF [19:26:37]RAPDU: 90 00 [19:26:37]wFMCommunicate OK [19:26:37]wFMCommunicate request_size=10 [19:26:37]MH_SAM_APDU [19:26:37]CAPDU: 80 0D 02 02 05 A1 19 E2 97 9C [19:26:37]Write to MH i2c: E2 0D 00 FE 6E 80 0D 02 02 05 00 A1 19 E2 97 9C 00 00 BF [19:26:37]Write i2c OK [19:26:37]MH_I2C_Read... [19:26:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:37]Read from MH i2c: E2 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: E2 03 00 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: E2 03 00 FE 6E 00 90 00 E0 [19:26:37]RAPDU: 90 00 [19:26:37]wFMCommunicate OK [19:26:37]wFMCommunicate request_size=4 [19:26:37]MH_SAM_APDU [19:26:37]CAPDU: 80 0D 03 02 [19:26:37]Write to MH i2c: E2 08 00 FF 6E 80 0D 03 02 00 00 00 00 E8 [19:26:37]Write i2c OK [19:26:37]MH_I2C_Read... [19:26:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:37]Read from MH i2c: E2 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: E2 0B 00 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: E2 0B 00 FF 6E 00 35 40 A1 C5 6A EE D7 F0 90 00 E3 [19:26:37]RAPDU: 35 40 A1 C5 6A EE D7 F0 90 00 [19:26:37]wFMCommunicate OK [19:26:37]SAM_PROTO_SignData done [19:26:37]FM_MakeSignedData done [19:26:37]CreateOFDProtocolMessage [19:26:37]wFMCommunicate request_size=4 [19:26:37]MH_SAM_APDU [19:26:37]CAPDU: 80 11 00 00 [19:26:37]Write to MH i2c: E2 08 00 00 6F 80 11 00 00 00 00 00 00 E9 [19:26:37]Write i2c OK [19:26:37]MH_I2C_Read... [19:26:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:37]Read from MH i2c: E2 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: E2 17 00 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: E2 17 00 00 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 40 [19:26:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:26:37]wFMCommunicate OK [19:26:37]CreateOFDProtocolMessage done [19:26:37]OFDSenderStorePacket 228412 [19:26:37]StoreOFDPacket docnum=228412 [19:26:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 60 47 07 01 41 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 15 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 24 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 78 01 00 00 F4 03 04 00 71 FC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3C 7C 03 00 35 04 06 00 98 A1 19 E2 97 9C 35 40 A1 C5 6A EE D7 F0 [19:26:37]CheckFolder [19:26:37]dirname=/storage/ofd_packets [19:26:37]CheckFolder done [19:26:37]ProducePacketName [19:26:37]name=ofd_packets/00228412 [19:26:37]NVStorageSaveData ofd_packets/00228412 [19:26:37]File name is /storage/ofd_packets/00228412 [19:26:37]Write 301 bytes [19:26:37]NVStorageSaveData done [19:26:37]OFDSenderStorePacket done [19:26:37]KKMCreateOFDPacket done [19:26:37]NVStorageSaveData kkm_last_timestamp [19:26:37]File name is /storage/kkm_last_timestamp [19:26:37]Write 4 bytes [19:26:37]NVStorageSaveData done [19:26:37]ExternCall_PrintAddStr [19:26:37]wPrintStart [19:26:37]Write to MH i2c: 01 00 00 01 6F 70 [19:26:37]Write i2c OK [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: 01 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: 01 07 00 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: 01 07 00 01 6F 00 00 00 00 00 FF 0F 85 [19:26:37]RasterBufferAndPrint [19:26:37]line Счет N : (1)1964977 [19:26:37]line ИНН: 02508201610067 [19:26:37]line Контрольно-Кассовый Чек [19:26:37]line ПРОДАЖА [19:26:37]line ТРК (МРК, ГНК) : 54 [19:26:37]line Товар: 2710124500 [19:26:37]line Аи-95-К-5 [19:26:37]line 2.970 * 74.20 [19:26:37]line = 220.37 [19:26:37]line НДС 12% НСП 1% [19:26:37]line > о реализуемом товаре [19:26:37]line ОКРУГЛЕНИЕ: -0.37 [19:26:37]line ИТОГО: 220.00 [19:26:37]line Внесено: 220.00 [19:26:37]line СДАЧА: 0.00 [19:26:37]line НСП 1% : 1.95 [19:26:37]line НДС 12% : 23.40 [19:26:37]line Наличными: 220.00 [19:26:37]line Безнал.: 0.00 [19:26:37]line Место: АЗС № 133 "Партнер Нефть" [19:26:37]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:26:37]line СНО: Общий режим [19:26:37]line Чек 376 22.10.2024 19:26 [19:26:37]line Смена: 535 ФФД: 1.0 [19:26:37]line ЗНМ: 0300000091 [19:26:37]line РНМ: 0000000000091685 [19:26:37]line Версия ККМ: 001 [19:26:37]line ФМ: 0000000000871839 [19:26:37]line ФД: 228412 [19:26:37]line ФПД: 167817691436956 [19:26:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192641&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228412&fm=167817691436956&tin=02508201610067®Number=0000000000091685&sum=22000 [19:26:37]OFD Sender: Processing packet 228412 [packets to send 38, broken 37] [19:26:37]ProducePacketName [19:26:37]name=ofd_packets/00228412 [19:26:37]OFD Sender: To server: pG, [19:26:37]CommunicateWithHost lk.salyk.kg:30040 [19:26:37]ConnectInit lk.salyk.kg [19:26:38]Connected sock=11 [19:26:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 60 47 07 01 41 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 15 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 24 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 78 01 00 00 F4 03 04 00 71 FC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3C 7C 03 00 35 04 06 00 98 A1 19 E2 97 9C 35 40 A1 C5 6A EE D7 F0 [19:26:38]written 0, free lines is 4095 [19:26:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 20 57 47 00 8E 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3C 7C 03 00 F4 03 04 00 69 A7 17 67 B6 04 01 00 00 77 3F 75 BC AE E3 6B 56 [19:26:38]CommunicateWithHost err = 0 [19:26:38]CheckOFDResponse [19:26:38]1017 (14) - 77093643461234 [19:26:38]1041 (16) - 0000000000871839 [19:26:38]1040 (4) - 228412 [19:26:38]1012 (4) - 22.10.2024 13:23 [19:26:38]1206 (1) - 0 [19:26:38]OFD Sender: Remove packet 228412 [19:26:38]ProducePacketName [19:26:38]name=ofd_packets/00228412 [19:26:38]NVStorageDeleteData [19:26:38]Write to MH i2c: 01 00 00 2B 6F 9A [19:26:38]Write i2c OK [19:26:38]MH_I2C_Read... [19:26:38]Read from MH i2c: 01 [19:26:38]MH_I2C_Read... [19:26:38]Read from MH i2c: 01 07 00 [19:26:38]MH_I2C_Read... [19:26:38]Read from MH i2c: 01 07 00 2B 6F 00 00 00 00 00 A8 0C 55 [19:26:38]RasterBufferAndPrint [19:26:38]line [19:26:38]line [19:26:38]line [19:26:38]line [19:26:38]line [19:26:38]written 0, free lines is 3243 [19:26:38]MH_Cut [19:26:38]Write to MH i2c: D1 01 00 32 6F 01 73 [19:26:38]Write i2c OK [19:26:38]MH_I2C_Read... [19:26:38]Read from MH i2c: D1 [19:26:38]MH_I2C_Read... [19:26:38]Read from MH i2c: D1 01 00 [19:26:38]MH_I2C_Read... [19:26:38]Read from MH i2c: D1 01 00 32 6F 00 72 [19:26:38]Write to MH i2c: 01 00 00 33 6F A2 [19:26:38]Write i2c OK [19:26:38]MH_I2C_Read... [19:26:38]OFD Sender: No OFD packet to send [19:26:39]*** Cut start [19:26:39]*** Partial cut [19:26:39]*** CUTSNS_PIN = 1 [19:26:39]*** CUTSNS_PIN = 0 [19:26:39]*** Brake cut motor [19:26:40]Read from MH i2c: 01 [19:26:40]MH_I2C_Read... [19:26:40]*** Stop cut motor [19:26:40]*** Cut end [19:26:40]Read from MH i2c: 01 07 00 [19:26:40]MH_I2C_Read... [19:26:40]Read from MH i2c: 01 07 00 33 6F 00 00 00 00 00 FF 0F B7 [19:26:40]process_action close_receipt done [19:26:40]requested_data is exist [19:26:40]produce_requested_data [19:26:40]requested_item fm.sn is exist - process it [19:26:40]wFMCommunicate request_size=4 [19:26:40]MH_SAM_APDU [19:26:40]CAPDU: 80 11 00 00 [19:26:40]Write to MH i2c: E2 08 00 34 6F 80 11 00 00 00 00 00 00 1D [19:26:40]Write i2c OK [19:26:40]MH_I2C_Read... [19:26:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:40]Read from MH i2c: E2 [19:26:40]MH_I2C_Read... [19:26:40]Read from MH i2c: E2 17 00 [19:26:40]MH_I2C_Read... [19:26:40]Read from MH i2c: E2 17 00 34 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 74 [19:26:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:26:40]wFMCommunicate OK [19:26:40]requested_item fd.num is exist - process it [19:26:40]SAM_PROTO_GetFieldsCounters [19:26:40]wFMCommunicate request_size=4 [19:26:40]MH_SAM_APDU [19:26:40]CAPDU: 80 13 00 00 [19:26:40]Write to MH i2c: E2 08 00 35 6F 80 13 00 00 00 00 00 00 20 [19:26:40]Write i2c OK [19:26:40]MH_I2C_Read... [19:26:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:40]Read from MH i2c: E2 [19:26:40]MH_I2C_Read... [19:26:40]Read from MH i2c: E2 62 00 [19:26:40]MH_I2C_Read... [19:26:40]Read from MH i2c: E2 62 00 35 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3C 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 78 01 00 00 5E 04 04 00 78 01 00 00 57 04 04 00 79 01 00 00 19 04 04 00 00 00 00 00 90 00 88 [19:26:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3C 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 78 01 00 00 5E 04 04 00 78 01 00 00 57 04 04 00 79 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:26:40]wFMCommunicate OK [19:26:40]SAM_PROTO_GetFieldsCounters done [19:26:40]requested_item shift.num is exist - process it [19:26:40]requested_item shift.opened is exist - process it [19:26:40]req_shift_opened [19:26:40]FM_GetShiftState [19:26:40]SAM_PROTO_GetShiftState [19:26:40]wFMCommunicate request_size=4 [19:26:40]MH_SAM_APDU [19:26:40]CAPDU: 80 13 01 00 [19:26:40]Write to MH i2c: E2 08 00 36 6F 80 13 01 00 00 00 00 00 22 [19:26:40]Write i2c OK [19:26:40]MH_I2C_Read... [19:26:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:40]Read from MH i2c: E2 [19:26:40]MH_I2C_Read... [19:26:40]Read from MH i2c: E2 0E 00 [19:26:40]MH_I2C_Read... [19:26:40]Read from MH i2c: E2 0E 00 36 6F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 E9 [19:26:40]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [19:26:40]wFMCommunicate OK [19:26:40]SAM_PROTO_GetShiftState done [19:26:40]FM_GetShiftState done [19:26:40]req_shift_opened done [19:26:40]requested_item shift.open_date is exist - process it [19:26:40]req_shift_open_date [19:26:40]req_shift_open_date done [19:26:40]produce_requested_data done [19:26:40]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228412,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [19:26:40]process_action_free close_receipt [19:26:40]json_value_free [19:26:40]json_value_free done [19:26:40]process_json_proto returns [19:26:40]Send response to host [19:26:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228412,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [19:26:40]free response buf [19:26:40]execute_script done [19:26:40]execute_script returns [19:26:40]free content buf [19:26:40]Sock 9.Close socket [19:26:40]Sock 9.Thread stoped [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:00]accept exits with 7 [19:28:00]New connection [19:28:00]New thread 3066994020 created [19:28:00]Thread 3067137380 joined [19:28:00]Waiting for new connection... [19:28:00] Sock 7.Parse request [19:28:00]Sock 7.Check first char [19:28:00]Sock 7.First char is OK [19:28:00]request: POST /json_proto HTTP/1.0 [19:28:00]Method: POST [19:28:00]URL: /json_proto [19:28:00]Method is POST - this is cgi request [19:28:00]url: /json_proto [19:28:00]query_string will be loaded in cgi processing [19:28:00]execute_cgi json_proto POST (null) [19:28:00]execute_cgi path=json_proto method=POST [19:28:00]POST find Content-Length [19:28:00]Host: 172.17.44.195:8080 [19:28:00]Content-Length: 678 [19:28:00]Content-Type: application/json [19:28:00] [19:28:00]POST finish read [19:28:00]Found Content-Length = 678 [19:28:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964979", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:28:00]execute_script... [19:28: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)1964979", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:28:00]POST & json_proto [19:28:00]process_json_proto [19:28:00]json parsed OK: [19:28:00]protocol is kg_v1.0 [19:28:00]action value=close_receipt [19:28:00]process_action close_receipt [19:28:00]cmd_close_receipt [19:28:00]MH_GetDate [19:28:00]Write to MH i2c: F0 00 00 37 6F 95 [19:28:00]Write i2c OK [19:28:00]MH_I2C_Read... [19:28:00]Read from MH i2c: F0 [19:28:00]MH_I2C_Read... [19:28:00]Read from MH i2c: F0 09 00 [19:28:00]MH_I2C_Read... [19:28:00]Read from MH i2c: F0 09 00 37 6F 00 C6 FC 17 67 82 C9 CF 66 5E [19:28:00]GetLastDocTimeStamp 1729625201 [19:28:00]current date 1729625286 [19:28:00]FM_GetShiftState [19:28:00]SAM_PROTO_GetShiftState [19:28:00]wFMCommunicate request_size=4 [19:28:00]MH_SAM_APDU [19:28:00]CAPDU: 80 13 01 00 [19:28:00]Write to MH i2c: E2 08 00 38 6F 80 13 01 00 00 00 00 00 24 [19:28:00]Write i2c OK [19:28:00]MH_I2C_Read... [19:28:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:00]Read from MH i2c: E2 [19:28:00]MH_I2C_Read... [19:28:00]Read from MH i2c: E2 0E 00 [19:28:00]MH_I2C_Read... [19:28:00]Read from MH i2c: E2 0E 00 38 6F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 EB [19:28:00]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [19:28:00]wFMCommunicate OK [19:28:00]SAM_PROTO_GetShiftState done [19:28:00]FM_GetShiftState done [19:28:00]opened in 1729555538 [19:28:00]opened+sec_in_day 1729641938 [19:28:00]quantity*price = 50041 [19:28:00]sum+1 = 50042 [19:28:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 377 22.10.2024 19:28 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228413 ФПД: 120944130220146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192806&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228413&fm=120944130220146&tin=02508201610067®Number=0000000000091685&sum=50000 [19:28:01]StoreToDocumentArchive [19:28:01]shift 535 fd 228413 [19:28:01]save to /storage/0535/doc_00228413 [19:28:02]save last doc name /storage/0535/doc_00228413 to /storage/kkm_last_doc_name [19:28:02]save OK [19:28:02]Clear old archive folders... [19:28:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:28:02]tlvbuf is 008CDD50 [19:28:02]SAM_PROTO_ClearQueue [19:28:02]wFMCommunicate request_size=4 [19:28:02]MH_SAM_APDU [19:28:02]CAPDU: 80 09 00 00 [19:28:02]Write to MH i2c: E2 08 00 45 6F 80 09 00 00 00 00 00 00 26 [19:28:02]Write i2c OK [19:28:02]MH_I2C_Read... [19:28:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:28:02]Read from MH i2c: E2 [19:28:02]MH_I2C_Read... [19:28:02]Read from MH i2c: E2 03 00 [19:28:02]MH_I2C_Read... [19:28:02]Read from MH i2c: E2 03 00 45 6F 00 90 00 28 [19:28:02]RAPDU: 90 00 [19:28:02]wFMCommunicate OK [19:28:02]SAM_PROTO_ClearQueue done [19:28:02]KKMCreateOFDPacket [19:28:02]OFDProtocolAddRootSTLVToBuf [19:28:02]FM_MakeSignedData [19:28:02]FM_MakeSignedData [19:28:02]SAM_PROTO_SignData [19:28:02]wFMCommunicate request_size=4 [19:28:02]MH_SAM_APDU [19:28:02]CAPDU: 80 0D 01 02 [19:28:02]Write to MH i2c: E2 08 00 46 6F 80 0D 01 02 00 00 00 00 2E [19:28:02]Write i2c OK [19:28:02]MH_I2C_Read... [19:28:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:28:02]Read from MH i2c: E2 [19:28:02]MH_I2C_Read... [19:28:02]Read from MH i2c: E2 03 00 [19:28:02]MH_I2C_Read... [19:28:02]Read from MH i2c: E2 03 00 46 6F 00 90 00 29 [19:28:02]RAPDU: 90 00 [19:28:02]wFMCommunicate OK [19:28:02]wFMCommunicate request_size=255 [19:28:02]MH_SAM_APDU [19:28: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 01 00 00 F4 03 04 00 C6 FC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3D 7C 03 00 35 04 06 00 6D [19:28:02]Write to MH i2c: E2 02 01 47 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 01 00 00 F4 03 04 00 C6 FC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3D 7C 03 00 35 04 06 00 6D 00 00 C1 [19:28:02]Write i2c OK [19:28:02]MH_I2C_Read... [19:28:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:02]Read from MH i2c: E2 [19:28:02]MH_I2C_Read... [19:28:02]Read from MH i2c: E2 03 00 [19:28:02]MH_I2C_Read... [19:28:02]Read from MH i2c: E2 03 00 47 6F 00 90 00 2A [19:28:02]RAPDU: 90 00 [19:28:02]wFMCommunicate OK [19:28:02]wFMCommunicate request_size=10 [19:28:02]MH_SAM_APDU [19:28:02]CAPDU: 80 0D 02 02 05 FF 7F EB 60 72 [19:28:02]Write to MH i2c: E2 0D 00 48 6F 80 0D 02 02 05 00 FF 7F EB 60 72 00 00 76 [19:28:02]Write i2c OK [19:28:02]MH_I2C_Read... [19:28:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:02]Read from MH i2c: E2 [19:28:02]MH_I2C_Read... [19:28:02]Read from MH i2c: E2 03 00 [19:28:02]MH_I2C_Read... [19:28:02]Read from MH i2c: E2 03 00 48 6F 00 90 00 2B [19:28:02]RAPDU: 90 00 [19:28:02]wFMCommunicate OK [19:28:02]wFMCommunicate request_size=4 [19:28:02]MH_SAM_APDU [19:28:02]CAPDU: 80 0D 03 02 [19:28:02]Write to MH i2c: E2 08 00 49 6F 80 0D 03 02 00 00 00 00 33 [19:28:02]Write i2c OK [19:28:02]MH_I2C_Read... [19:28:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:28:02]Read from MH i2c: E2 [19:28:02]MH_I2C_Read... [19:28:02]Read from MH i2c: E2 0B 00 [19:28:02]MH_I2C_Read... [19:28:02]Read from MH i2c: E2 0B 00 49 6F 00 03 8A CB 6E F6 4F 63 A7 90 00 49 [19:28:02]RAPDU: 03 8A CB 6E F6 4F 63 A7 90 00 [19:28:02]wFMCommunicate OK [19:28:02]SAM_PROTO_SignData done [19:28:02]FM_MakeSignedData done [19:28:02]CreateOFDProtocolMessage [19:28:02]wFMCommunicate request_size=4 [19:28:02]MH_SAM_APDU [19:28:02]CAPDU: 80 11 00 00 [19:28:02]Write to MH i2c: E2 08 00 4A 6F 80 11 00 00 00 00 00 00 33 [19:28:02]Write i2c OK [19:28:02]MH_I2C_Read... [19:28:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:02]Read from MH i2c: E2 [19:28:02]MH_I2C_Read... [19:28:02]Read from MH i2c: E2 17 00 [19:28:02]MH_I2C_Read... [19:28:02]Read from MH i2c: E2 17 00 4A 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8A [19:28:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:28:02]wFMCommunicate OK [19:28:02]CreateOFDProtocolMessage done [19:28:02]OFDSenderStorePacket 228413 [19:28:02]StoreOFDPacket docnum=228413 [19:28:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 E4 33 07 01 C4 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 01 00 00 F4 03 04 00 C6 FC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3D 7C 03 00 35 04 06 00 6D FF 7F EB 60 72 03 8A CB 6E F6 4F 63 A7 [19:28:02]CheckFolder [19:28:02]dirname=/storage/ofd_packets [19:28:02]CheckFolder done [19:28:02]ProducePacketName [19:28:02]name=ofd_packets/00228413 [19:28:02]NVStorageSaveData ofd_packets/00228413 [19:28:02]File name is /storage/ofd_packets/00228413 [19:28:02]Write 301 bytes [19:28:02]NVStorageSaveData done [19:28:02]OFDSenderStorePacket done [19:28:02]KKMCreateOFDPacket done [19:28:02]NVStorageSaveData kkm_last_timestamp [19:28:02]File name is /storage/kkm_last_timestamp [19:28:02]Write 4 bytes [19:28:02]NVStorageSaveData done [19:28:02]ExternCall_PrintAddStr [19:28:02]wPrintStart [19:28:02]Write to MH i2c: 01 00 00 4B 6F BA [19:28:02]Write i2c OK [19:28:02]MH_I2C_Read... [19:28:02]Read from MH i2c: 01 [19:28:02]MH_I2C_Read... [19:28:02]Read from MH i2c: 01 07 00 [19:28:02]MH_I2C_Read... [19:28:02]Read from MH i2c: 01 07 00 4B 6F 00 00 00 00 00 FF 0F CF [19:28:02]RasterBufferAndPrint [19:28:02]line Счет N : (1)1964979 [19:28:02]line ИНН: 02508201610067 [19:28:02]line Контрольно-Кассовый Чек [19:28:02]line ПРОДАЖА [19:28:02]line ТРК (МРК, ГНК) : 63 [19:28:02]line Товар: 2710124130 [19:28:02]line Аи-92-К-5 [19:28:02]line 7.480 * 66.90 [19:28:02]line = 500.41 [19:28:02]line НДС 12% НСП 1% [19:28:02]line > о реализуемом товаре [19:28:02]line ОКРУГЛЕНИЕ: -0.41 [19:28:02]line ИТОГО: 500.00 [19:28:02]line Внесено: 500.00 [19:28:02]line СДАЧА: 0.00 [19:28:02]line НСП 1% : 4.43 [19:28:02]line НДС 12% : 53.14 [19:28:02]line Наличными: 500.00 [19:28:02]line Безнал.: 0.00 [19:28:02]line Место: АЗС № 133 "Партнер Нефть" [19:28:02]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:28:02]line СНО: Общий режим [19:28:02]line Чек 377 22.10.2024 19:28 [19:28:02]line Смена: 535 ФФД: 1.0 [19:28:02]line ЗНМ: 0300000091 [19:28:02]line РНМ: 0000000000091685 [19:28:02]line Версия ККМ: 001 [19:28:02]line ФМ: 0000000000871839 [19:28:02]line ФД: 228413 [19:28:02]line ФПД: 120944130220146 [19:28:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192806&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228413&fm=120944130220146&tin=02508201610067®Number=0000000000091685&sum=50000 [19:28:02]OFD Sender: Processing packet 228413 [packets to send 38, broken 37] [19:28:02]ProducePacketName [19:28:02]name=ofd_packets/00228413 [19:28:02]OFD Sender: To server: pG, [19:28:02]CommunicateWithHost lk.salyk.kg:30040 [19:28:02]ConnectInit lk.salyk.kg [19:28:02]written 0, free lines is 4095 [19:28:02]Connected sock=10 [19:28:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 E4 33 07 01 C4 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 01 00 00 F4 03 04 00 C6 FC 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3D 7C 03 00 35 04 06 00 6D FF 7F EB 60 72 03 8A CB 6E F6 4F 63 A7 [19:28:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 28 EB 47 00 C7 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3D 7C 03 00 F4 03 04 00 BD A7 17 67 B6 04 01 00 00 8C 27 F5 2E CD 0A B2 61 [19:28:03]CommunicateWithHost err = 0 [19:28:03]CheckOFDResponse [19:28:03]1017 (14) - 77093643461234 [19:28:03]1041 (16) - 0000000000871839 [19:28:03]1040 (4) - 228413 [19:28:03]1012 (4) - 22.10.2024 13:25 [19:28:03]1206 (1) - 0 [19:28:03]OFD Sender: Remove packet 228413 [19:28:03]ProducePacketName [19:28:03]name=ofd_packets/00228413 [19:28:03]NVStorageDeleteData [19:28:03]Write to MH i2c: 01 00 00 75 6F E4 [19:28:03]Write i2c OK [19:28:03]MH_I2C_Read... [19:28:03]Read from MH i2c: 01 [19:28:03]MH_I2C_Read... [19:28:03]Read from MH i2c: 01 07 00 [19:28:03]MH_I2C_Read... [19:28:03]Read from MH i2c: 01 07 00 75 6F 00 00 00 00 00 A4 0C 9B [19:28:03]RasterBufferAndPrint [19:28:03]line [19:28:03]line [19:28:03]line [19:28:03]line [19:28:03]line [19:28:03]written 0, free lines is 3240 [19:28:03]MH_Cut [19:28:03]Write to MH i2c: D1 01 00 7C 6F 01 BD [19:28:03]Write i2c OK [19:28:03]MH_I2C_Read... [19:28:03]Read from MH i2c: D1 [19:28:03]MH_I2C_Read... [19:28:03]Read from MH i2c: D1 01 00 [19:28:03]MH_I2C_Read... [19:28:03]Read from MH i2c: D1 01 00 7C 6F 00 BC [19:28:03]Write to MH i2c: 01 00 00 7D 6F EC [19:28:03]Write i2c OK [19:28:03]MH_I2C_Read... [19:28:03]OFD Sender: No OFD packet to send [19:28:04]*** Cut start [19:28:04]*** Partial cut [19:28:04]*** CUTSNS_PIN = 1 [19:28:04]*** CUTSNS_PIN = 0 [19:28:04]*** Brake cut motor [19:28:04]Read from MH i2c: 01 [19:28:04]MH_I2C_Read... [19:28:04]*** Stop cut motor [19:28:04]*** Cut end [19:28:04]Read from MH i2c: 01 07 00 [19:28:04]MH_I2C_Read... [19:28:04]Read from MH i2c: 01 07 00 7D 6F 00 00 00 00 00 FF 0F 01 [19:28:04]process_action close_receipt done [19:28:04]requested_data is exist [19:28:04]produce_requested_data [19:28:04]requested_item fm.sn is exist - process it [19:28:04]wFMCommunicate request_size=4 [19:28:04]MH_SAM_APDU [19:28:04]CAPDU: 80 11 00 00 [19:28:04]Write to MH i2c: E2 08 00 7E 6F 80 11 00 00 00 00 00 00 67 [19:28:04]Write i2c OK [19:28:04]MH_I2C_Read... [19:28:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:04]Read from MH i2c: E2 [19:28:04]MH_I2C_Read... [19:28:04]Read from MH i2c: E2 17 00 [19:28:04]MH_I2C_Read... [19:28:04]Read from MH i2c: E2 17 00 7E 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BE [19:28:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:28:04]wFMCommunicate OK [19:28:04]requested_item fd.num is exist - process it [19:28:04]SAM_PROTO_GetFieldsCounters [19:28:04]wFMCommunicate request_size=4 [19:28:04]MH_SAM_APDU [19:28:04]CAPDU: 80 13 00 00 [19:28:04]Write to MH i2c: E2 08 00 7F 6F 80 13 00 00 00 00 00 00 6A [19:28:04]Write i2c OK [19:28:04]MH_I2C_Read... [19:28:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:05]Read from MH i2c: E2 [19:28:05]MH_I2C_Read... [19:28:05]Read from MH i2c: E2 62 00 [19:28:05]MH_I2C_Read... [19:28:05]Read from MH i2c: E2 62 00 7F 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3D 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 79 01 00 00 5E 04 04 00 79 01 00 00 57 04 04 00 7A 01 00 00 19 04 04 00 00 00 00 00 90 00 D6 [19:28:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3D 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 79 01 00 00 5E 04 04 00 79 01 00 00 57 04 04 00 7A 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:28:05]wFMCommunicate OK [19:28:05]SAM_PROTO_GetFieldsCounters done [19:28:05]requested_item shift.num is exist - process it [19:28:05]requested_item shift.opened is exist - process it [19:28:05]req_shift_opened [19:28:05]FM_GetShiftState [19:28:05]SAM_PROTO_GetShiftState [19:28:05]wFMCommunicate request_size=4 [19:28:05]MH_SAM_APDU [19:28:05]CAPDU: 80 13 01 00 [19:28:05]Write to MH i2c: E2 08 00 80 6F 80 13 01 00 00 00 00 00 6C [19:28:05]Write i2c OK [19:28:05]MH_I2C_Read... [19:28:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:05]Read from MH i2c: E2 [19:28:05]MH_I2C_Read... [19:28:05]Read from MH i2c: E2 0E 00 [19:28:05]MH_I2C_Read... [19:28:05]Read from MH i2c: E2 0E 00 80 6F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 33 [19:28:05]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [19:28:05]wFMCommunicate OK [19:28:05]SAM_PROTO_GetShiftState done [19:28:05]FM_GetShiftState done [19:28:05]req_shift_opened done [19:28:05]requested_item shift.open_date is exist - process it [19:28:05]req_shift_open_date [19:28:05]req_shift_open_date done [19:28:05]produce_requested_data done [19:28:05]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228413,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [19:28:05]process_action_free close_receipt [19:28:05]json_value_free [19:28:05]json_value_free done [19:28:05]process_json_proto returns [19:28:05]Send response to host [19:28:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228413,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [19:28:05]free response buf [19:28:05]execute_script done [19:28:05]execute_script returns [19:28:05]free content buf [19:28:05]Sock 7.Close socket [19:28:05]Sock 7.Thread stoped [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:07]accept exits with 9 [19:29:07]New connection [19:29:07]New thread 3067137380 created [19:29:07]Thread 3066994020 joined [19:29:07]Waiting for new connection... [19:29:07] Sock 9.Parse request [19:29:07]Sock 9.Check first char [19:29:07]Sock 9.First char is OK [19:29:07]request: POST /json_proto HTTP/1.0 [19:29:07]Method: POST [19:29:07]URL: /json_proto [19:29:07]Method is POST - this is cgi request [19:29:07]url: /json_proto [19:29:07]query_string will be loaded in cgi processing [19:29:07]execute_cgi json_proto POST (null) [19:29:07]execute_cgi path=json_proto method=POST [19:29:07]POST find Content-Length [19:29:07]Host: 172.17.44.195:8080 [19:29:07]Content-Length: 678 [19:29:07]Content-Type: application/json [19:29:07] [19:29:07]POST finish read [19:29:07]Found Content-Length = 678 [19:29:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "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" ] } } [19:29:07]execute_script... [19:29: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)1964980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "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" ] } } [19:29:07]POST & json_proto [19:29:07]process_json_proto [19:29:07]json parsed OK: [19:29:07]protocol is kg_v1.0 [19:29:07]action value=close_receipt [19:29:07]process_action close_receipt [19:29:07]cmd_close_receipt [19:29:07]MH_GetDate [19:29:07]Write to MH i2c: F0 00 00 81 6F DF [19:29:07]Write i2c OK [19:29:07]MH_I2C_Read... [19:29:07]Read from MH i2c: F0 [19:29:07]MH_I2C_Read... [19:29:07]Read from MH i2c: F0 09 00 [19:29:07]MH_I2C_Read... [19:29:07]Read from MH i2c: F0 09 00 81 6F 00 09 FD 17 67 82 C9 CF 66 EC [19:29:07]GetLastDocTimeStamp 1729625286 [19:29:07]current date 1729625353 [19:29:07]FM_GetShiftState [19:29:07]SAM_PROTO_GetShiftState [19:29:07]wFMCommunicate request_size=4 [19:29:07]MH_SAM_APDU [19:29:07]CAPDU: 80 13 01 00 [19:29:07]Write to MH i2c: E2 08 00 82 6F 80 13 01 00 00 00 00 00 6E [19:29:07]Write i2c OK [19:29:07]MH_I2C_Read... [19:29:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:07]Read from MH i2c: E2 [19:29:07]MH_I2C_Read... [19:29:07]Read from MH i2c: E2 0E 00 [19:29:07]MH_I2C_Read... [19:29:07]Read from MH i2c: E2 0E 00 82 6F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 35 [19:29:07]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [19:29:07]wFMCommunicate OK [19:29:07]SAM_PROTO_GetShiftState done [19:29:07]FM_GetShiftState done [19:29:07]opened in 1729555538 [19:29:07]opened+sec_in_day 1729641938 [19:29:07]quantity*price = 30038 [19:29:07]sum+1 = 30039 [19:29:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 378 22.10.2024 19:29 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228414 ФПД: 271490579324973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192913&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228414&fm=271490579324973&tin=02508201610067®Number=0000000000091685&sum=30000 [19:29:09]StoreToDocumentArchive [19:29:09]shift 535 fd 228414 [19:29:09]save to /storage/0535/doc_00228414 [19:29:09]save last doc name /storage/0535/doc_00228414 to /storage/kkm_last_doc_name [19:29:09]save OK [19:29:09]Clear old archive folders... [19:29:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:29:09]tlvbuf is 00D782A0 [19:29:09]SAM_PROTO_ClearQueue [19:29:09]wFMCommunicate request_size=4 [19:29:09]MH_SAM_APDU [19:29:09]CAPDU: 80 09 00 00 [19:29:09]Write to MH i2c: E2 08 00 8F 6F 80 09 00 00 00 00 00 00 70 [19:29:09]Write i2c OK [19:29:09]MH_I2C_Read... [19:29:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:29:09]Read from MH i2c: E2 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 03 00 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 03 00 8F 6F 00 90 00 72 [19:29:09]RAPDU: 90 00 [19:29:09]wFMCommunicate OK [19:29:09]SAM_PROTO_ClearQueue done [19:29:09]KKMCreateOFDPacket [19:29:09]OFDProtocolAddRootSTLVToBuf [19:29:09]FM_MakeSignedData [19:29:09]FM_MakeSignedData [19:29:09]SAM_PROTO_SignData [19:29:09]wFMCommunicate request_size=4 [19:29:09]MH_SAM_APDU [19:29:09]CAPDU: 80 0D 01 02 [19:29:09]Write to MH i2c: E2 08 00 90 6F 80 0D 01 02 00 00 00 00 78 [19:29:09]Write i2c OK [19:29:09]MH_I2C_Read... [19:29:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:29:09]Read from MH i2c: E2 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 03 00 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 03 00 90 6F 00 90 00 73 [19:29:09]RAPDU: 90 00 [19:29:09]wFMCommunicate OK [19:29:09]wFMCommunicate request_size=255 [19:29:09]MH_SAM_APDU [19:29: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 7A 01 00 00 F4 03 04 00 09 FD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3E 7C 03 00 35 04 06 00 F6 [19:29:09]Write to MH i2c: E2 02 01 91 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 11 00 00 00 00 00 37 04 06 00 22 1A 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 7A 01 00 00 F4 03 04 00 09 FD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3E 7C 03 00 35 04 06 00 F6 00 00 CE [19:29:09]Write i2c OK [19:29:09]MH_I2C_Read... [19:29:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:09]Read from MH i2c: E2 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 03 00 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 03 00 91 6F 00 90 00 74 [19:29:09]RAPDU: 90 00 [19:29:09]wFMCommunicate OK [19:29:09]wFMCommunicate request_size=10 [19:29:09]MH_SAM_APDU [19:29:09]CAPDU: 80 0D 02 02 05 EB 53 8A 60 2D [19:29:09]Write to MH i2c: E2 0D 00 92 6F 80 0D 02 02 05 00 EB 53 8A 60 2D 00 00 DA [19:29:09]Write i2c OK [19:29:09]MH_I2C_Read... [19:29:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:09]Read from MH i2c: E2 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 03 00 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 03 00 92 6F 00 90 00 75 [19:29:09]RAPDU: 90 00 [19:29:09]wFMCommunicate OK [19:29:09]wFMCommunicate request_size=4 [19:29:09]MH_SAM_APDU [19:29:09]CAPDU: 80 0D 03 02 [19:29:09]Write to MH i2c: E2 08 00 93 6F 80 0D 03 02 00 00 00 00 7D [19:29:09]Write i2c OK [19:29:09]MH_I2C_Read... [19:29:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:29:09]Read from MH i2c: E2 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 0B 00 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 0B 00 93 6F 00 4E 0A 69 06 ED E9 8E CA 90 00 73 [19:29:09]RAPDU: 4E 0A 69 06 ED E9 8E CA 90 00 [19:29:09]wFMCommunicate OK [19:29:09]SAM_PROTO_SignData done [19:29:09]FM_MakeSignedData done [19:29:09]CreateOFDProtocolMessage [19:29:09]wFMCommunicate request_size=4 [19:29:09]MH_SAM_APDU [19:29:09]CAPDU: 80 11 00 00 [19:29:09]Write to MH i2c: E2 08 00 94 6F 80 11 00 00 00 00 00 00 7D [19:29:09]Write i2c OK [19:29:09]MH_I2C_Read... [19:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:09]Read from MH i2c: E2 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 17 00 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 17 00 94 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D4 [19:29:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:29:09]wFMCommunicate OK [19:29:09]CreateOFDProtocolMessage done [19:29:09]OFDSenderStorePacket 228414 [19:29:09]StoreOFDPacket docnum=228414 [19:29:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 11 17 07 01 5A BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 7A 01 00 00 F4 03 04 00 09 FD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3E 7C 03 00 35 04 06 00 F6 EB 53 8A 60 2D 4E 0A 69 06 ED E9 8E CA [19:29:09]CheckFolder [19:29:09]dirname=/storage/ofd_packets [19:29:09]CheckFolder done [19:29:09]ProducePacketName [19:29:09]name=ofd_packets/00228414 [19:29:09]NVStorageSaveData ofd_packets/00228414 [19:29:09]File name is /storage/ofd_packets/00228414 [19:29:09]Write 301 bytes [19:29:09]NVStorageSaveData done [19:29:09]OFDSenderStorePacket done [19:29:09]KKMCreateOFDPacket done [19:29:09]NVStorageSaveData kkm_last_timestamp [19:29:09]File name is /storage/kkm_last_timestamp [19:29:09]Write 4 bytes [19:29:09]NVStorageSaveData done [19:29:09]ExternCall_PrintAddStr [19:29:09]wPrintStart [19:29:09]Write to MH i2c: 01 00 00 95 6F 04 [19:29:09]Write i2c OK [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: 01 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: 01 07 00 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: 01 07 00 95 6F 00 00 00 00 00 FF 0F 19 [19:29:09]RasterBufferAndPrint [19:29:09]line Счет N : (1)1964980 [19:29:09]line ИНН: 02508201610067 [19:29:09]line Контрольно-Кассовый Чек [19:29:09]line ПРОДАЖА [19:29:09]line ТРК (МРК, ГНК) : 43 [19:29:09]line Товар: 2710124130 [19:29:09]line Аи-92-К-5 [19:29:09]line 4.490 * 66.90 [19:29:09]line = 300.38 [19:29:09]line НДС 12% НСП 1% [19:29:09]line > о реализуемом товаре [19:29:09]line ОКРУГЛЕНИЕ: -0.38 [19:29:09]line ИТОГО: 300.00 [19:29:09]line Внесено: 300.00 [19:29:09]line СДАЧА: 0.00 [19:29:09]line НСП 1% : 2.66 [19:29:09]line НДС 12% : 31.90 [19:29:09]line Наличными: 300.00 [19:29:09]line Безнал.: 0.00 [19:29:09]line Место: АЗС № 133 "Партнер Нефть" [19:29:09]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:29:09]line СНО: Общий режим [19:29:09]line Чек 378 22.10.2024 19:29 [19:29:09]line Смена: 535 ФФД: 1.0 [19:29:09]line ЗНМ: 0300000091 [19:29:09]line РНМ: 0000000000091685 [19:29:09]line Версия ККМ: 001 [19:29:09]line ФМ: 0000000000871839 [19:29:09]line ФД: 228414 [19:29:09]line ФПД: 271490579324973 [19:29:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192913&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228414&fm=271490579324973&tin=02508201610067®Number=0000000000091685&sum=30000 [19:29:09]written 0, free lines is 4095 [19:29:09]OFD Sender: Processing packet 228414 [packets to send 38, broken 37] [19:29:09]ProducePacketName [19:29:09]name=ofd_packets/00228414 [19:29:09]OFD Sender: To server: pG, [19:29:09]CommunicateWithHost lk.salyk.kg:30040 [19:29:09]ConnectInit lk.salyk.kg [19:29:09]Connected sock=10 [19:29:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 11 17 07 01 5A BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 7A 01 00 00 F4 03 04 00 09 FD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3E 7C 03 00 35 04 06 00 F6 EB 53 8A 60 2D 4E 0A 69 06 ED E9 8E CA [19:29:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 C3 FA 47 00 D8 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 38 37 31 38 33 39 10 04 04 00 3E 7C 03 00 F4 03 04 00 00 A8 17 67 B6 04 01 00 00 C4 81 53 B0 05 F5 FC 47 [19:29:10]CommunicateWithHost err = 0 [19:29:10]CheckOFDResponse [19:29:10]1017 (14) - 77093643461234 [19:29:10]1041 (16) - 0000000000871839 [19:29:10]1040 (4) - 228414 [19:29:10]1012 (4) - 22.10.2024 13:26 [19:29:10]1206 (1) - 0 [19:29:10]OFD Sender: Remove packet 228414 [19:29:10]ProducePacketName [19:29:10]name=ofd_packets/00228414 [19:29:10]NVStorageDeleteData [19:29:10]Write to MH i2c: 01 00 00 BF 6F 2E [19:29:10]Write i2c OK [19:29:10]MH_I2C_Read... [19:29:10]Read from MH i2c: 01 [19:29:10]MH_I2C_Read... [19:29:10]Read from MH i2c: 01 07 00 [19:29:10]MH_I2C_Read... [19:29:10]Read from MH i2c: 01 07 00 BF 6F 00 00 00 00 00 A6 0C E7 [19:29:10]RasterBufferAndPrint [19:29:10]line [19:29:10]line [19:29:10]line [19:29:10]line [19:29:10]line [19:29:10]written 0, free lines is 3242 [19:29:10]MH_Cut [19:29:10]Write to MH i2c: D1 01 00 C6 6F 01 07 [19:29:10]Write i2c OK [19:29:10]MH_I2C_Read... [19:29:10]Read from MH i2c: D1 [19:29:10]MH_I2C_Read... [19:29:10]Read from MH i2c: D1 01 00 [19:29:10]MH_I2C_Read... [19:29:10]Read from MH i2c: D1 01 00 C6 6F 00 06 [19:29:10]Write to MH i2c: 01 00 00 C7 6F 36 [19:29:10]Write i2c OK [19:29:10]MH_I2C_Read... [19:29:10]OFD Sender: No OFD packet to send [19:29:11]*** Cut start [19:29:11]*** Partial cut [19:29:11]*** CUTSNS_PIN = 1 [19:29:11]*** CUTSNS_PIN = 0 [19:29:11]*** Brake cut motor [19:29:11]Read from MH i2c: 01 [19:29:11]MH_I2C_Read... [19:29:11]*** Stop cut motor [19:29:11]*** Cut end [19:29:11]Read from MH i2c: 01 07 00 [19:29:11]MH_I2C_Read... [19:29:11]Read from MH i2c: 01 07 00 C7 6F 00 00 00 00 00 FF 0F 4B [19:29:11]process_action close_receipt done [19:29:11]requested_data is exist [19:29:11]produce_requested_data [19:29:11]requested_item fm.sn is exist - process it [19:29:11]wFMCommunicate request_size=4 [19:29:11]MH_SAM_APDU [19:29:11]CAPDU: 80 11 00 00 [19:29:11]Write to MH i2c: E2 08 00 C8 6F 80 11 00 00 00 00 00 00 B1 [19:29:11]Write i2c OK [19:29:11]MH_I2C_Read... [19:29:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:11]Read from MH i2c: E2 [19:29:11]MH_I2C_Read... [19:29:11]Read from MH i2c: E2 17 00 [19:29:11]MH_I2C_Read... [19:29:11]Read from MH i2c: E2 17 00 C8 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 08 [19:29:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:29:11]wFMCommunicate OK [19:29:11]requested_item fd.num is exist - process it [19:29:11]SAM_PROTO_GetFieldsCounters [19:29:11]wFMCommunicate request_size=4 [19:29:11]MH_SAM_APDU [19:29:11]CAPDU: 80 13 00 00 [19:29:11]Write to MH i2c: E2 08 00 C9 6F 80 13 00 00 00 00 00 00 B4 [19:29:11]Write i2c OK [19:29:11]MH_I2C_Read... [19:29:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:29:12]Read from MH i2c: E2 [19:29:12]MH_I2C_Read... [19:29:12]Read from MH i2c: E2 62 00 [19:29:12]MH_I2C_Read... [19:29:12]Read from MH i2c: E2 62 00 C9 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3E 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 7A 01 00 00 5E 04 04 00 7A 01 00 00 57 04 04 00 7B 01 00 00 19 04 04 00 00 00 00 00 90 00 24 [19:29:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3E 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 7A 01 00 00 5E 04 04 00 7A 01 00 00 57 04 04 00 7B 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:29:12]wFMCommunicate OK [19:29:12]SAM_PROTO_GetFieldsCounters done [19:29:12]requested_item shift.num is exist - process it [19:29:12]requested_item shift.opened is exist - process it [19:29:12]req_shift_opened [19:29:12]FM_GetShiftState [19:29:12]SAM_PROTO_GetShiftState [19:29:12]wFMCommunicate request_size=4 [19:29:12]MH_SAM_APDU [19:29:12]CAPDU: 80 13 01 00 [19:29:12]Write to MH i2c: E2 08 00 CA 6F 80 13 01 00 00 00 00 00 B6 [19:29:12]Write i2c OK [19:29:12]MH_I2C_Read... [19:29:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:12]Read from MH i2c: E2 [19:29:12]MH_I2C_Read... [19:29:12]Read from MH i2c: E2 0E 00 [19:29:12]MH_I2C_Read... [19:29:12]Read from MH i2c: E2 0E 00 CA 6F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 7D [19:29:12]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [19:29:12]wFMCommunicate OK [19:29:12]SAM_PROTO_GetShiftState done [19:29:12]FM_GetShiftState done [19:29:12]req_shift_opened done [19:29:12]requested_item shift.open_date is exist - process it [19:29:12]req_shift_open_date [19:29:12]req_shift_open_date done [19:29:12]produce_requested_data done [19:29:12]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228414,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [19:29:12]process_action_free close_receipt [19:29:12]json_value_free [19:29:12]json_value_free done [19:29:12]process_json_proto returns [19:29:12]Send response to host [19:29:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228414,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [19:29:12]free response buf [19:29:12]execute_script done [19:29:12]execute_script returns [19:29:12]free content buf [19:29:12]Sock 9.Close socket [19:29:12]Sock 9.Thread stoped [19:29:15]OFD Sender: No OFD packet to send [19:29:20]OFD Sender: No OFD packet to send [19:29:25]OFD Sender: No OFD packet to send [19:29:30]OFD Sender: No OFD packet to send [19:29:35]OFD Sender: No OFD packet to send [19:29:40]OFD Sender: No OFD packet to send [19:29:45]OFD Sender: No OFD packet to send [19:29:50]OFD Sender: No OFD packet to send [19:29:55]OFD Sender: No OFD packet to send [19:30:00]OFD Sender: No OFD packet to send [19:30:05]OFD Sender: No OFD packet to send [19:30:10]OFD Sender: No OFD packet to send [19:30:15]OFD Sender: No OFD packet to send [19:30:20]OFD Sender: No OFD packet to send [19:30:25]OFD Sender: No OFD packet to send [19:30:30]OFD Sender: No OFD packet to send [19:30:35]OFD Sender: No OFD packet to send [19:30:40]OFD Sender: No OFD packet to send [19:30:45]OFD Sender: No OFD packet to send [19:30:50]OFD Sender: No OFD packet to send [19:30:55]OFD Sender: No OFD packet to send [19:31:00]OFD Sender: No OFD packet to send [19:31:05]OFD Sender: No OFD packet to send [19:31:10]OFD Sender: No OFD packet to send [19:31:15]OFD Sender: No OFD packet to send [19:31:20]OFD Sender: No OFD packet to send [19:31:25]OFD Sender: No OFD packet to send [19:31:30]OFD Sender: No OFD packet to send [19:31:34]accept exits with 7 [19:31:34]New connection [19:31:34]New thread 3066994020 created [19:31:34]Thread 3067137380 joined [19:31:34]Waiting for new connection... [19:31:34] Sock 7.Parse request [19:31:34]Sock 7.Check first char [19:31:34]Sock 7.First char is OK [19:31:34]request: POST /json_proto HTTP/1.0 [19:31:34]Method: POST [19:31:34]URL: /json_proto [19:31:34]Method is POST - this is cgi request [19:31:34]url: /json_proto [19:31:34]query_string will be loaded in cgi processing [19:31:34]execute_cgi json_proto POST (null) [19:31:34]execute_cgi path=json_proto method=POST [19:31:34]POST find Content-Length [19:31:34]Host: 172.17.44.195:8080 [19:31:34]Content-Length: 677 [19:31:34]Content-Type: application/json [19:31:34] [19:31:34]POST finish read [19:31:34]Found Content-Length = 677 [19:31:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:31:34]execute_script... [19:31: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)1964981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:31:34]POST & json_proto [19:31:34]process_json_proto [19:31:34]json parsed OK: [19:31:34]protocol is kg_v1.0 [19:31:34]action value=close_receipt [19:31:34]process_action close_receipt [19:31:34]cmd_close_receipt [19:31:34]MH_GetDate [19:31:34]Write to MH i2c: F0 00 00 CB 6F 29 [19:31:34]Write i2c OK [19:31:34]MH_I2C_Read... [19:31:34]Read from MH i2c: F0 [19:31:34]MH_I2C_Read... [19:31:34]Read from MH i2c: F0 09 00 [19:31:34]MH_I2C_Read... [19:31:34]Read from MH i2c: F0 09 00 CB 6F 00 9C FD 17 67 82 C9 CF 66 C9 [19:31:34]GetLastDocTimeStamp 1729625353 [19:31:34]current date 1729625500 [19:31:34]FM_GetShiftState [19:31:34]SAM_PROTO_GetShiftState [19:31:34]wFMCommunicate request_size=4 [19:31:34]MH_SAM_APDU [19:31:34]CAPDU: 80 13 01 00 [19:31:34]Write to MH i2c: E2 08 00 CC 6F 80 13 01 00 00 00 00 00 B8 [19:31:34]Write i2c OK [19:31:34]MH_I2C_Read... [19:31:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:34]Read from MH i2c: E2 [19:31:34]MH_I2C_Read... [19:31:34]Read from MH i2c: E2 0E 00 [19:31:34]MH_I2C_Read... [19:31:34]Read from MH i2c: E2 0E 00 CC 6F 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 7F [19:31:34]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [19:31:34]wFMCommunicate OK [19:31:34]SAM_PROTO_GetShiftState done [19:31:34]FM_GetShiftState done [19:31:34]opened in 1729555538 [19:31:34]opened+sec_in_day 1729641938 [19:31:34]quantity*price = 100011 [19:31:34]sum+1 = 100013 [19:31:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 379 22.10.2024 19:31 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228415 ФПД: 272614315254392 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T193140&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228415&fm=272614315254392&tin=02508201610067®Number=0000000000091685&sum=100000 [19:31:35]StoreToDocumentArchive [19:31:35]shift 535 fd 228415 [19:31:35]save to /storage/0535/doc_00228415 [19:31:35]save last doc name /storage/0535/doc_00228415 to /storage/kkm_last_doc_name [19:31:35]save OK [19:31:35]Clear old archive folders... [19:31:35]ProcessDocumentItem done err = 0, tmpTLVsize=245 [19:31:35]tlvbuf is 0098E4F0 [19:31:35]SAM_PROTO_ClearQueue [19:31:35]wFMCommunicate request_size=4 [19:31:35]MH_SAM_APDU [19:31:35]CAPDU: 80 09 00 00 [19:31:35]Write to MH i2c: E2 08 00 D9 6F 80 09 00 00 00 00 00 00 BA [19:31:35]Write i2c OK [19:31:35]MH_I2C_Read... [19:31:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:31:35]Read from MH i2c: E2 [19:31:35]MH_I2C_Read... [19:31:35]Read from MH i2c: E2 03 00 [19:31:35]MH_I2C_Read... [19:31:35]Read from MH i2c: E2 03 00 D9 6F 00 90 00 BC [19:31:35]RAPDU: 90 00 [19:31:35]wFMCommunicate OK [19:31:35]SAM_PROTO_ClearQueue done [19:31:35]KKMCreateOFDPacket [19:31:35]OFDProtocolAddRootSTLVToBuf [19:31:35]FM_MakeSignedData [19:31:35]FM_MakeSignedData [19:31:35]SAM_PROTO_SignData [19:31:35]wFMCommunicate request_size=4 [19:31:35]MH_SAM_APDU [19:31:35]CAPDU: 80 0D 01 02 [19:31:35]Write to MH i2c: E2 08 00 DA 6F 80 0D 01 02 00 00 00 00 C2 [19:31:35]Write i2c OK [19:31:35]MH_I2C_Read... [19:31:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:31:35]Read from MH i2c: E2 [19:31:35]MH_I2C_Read... [19:31:35]Read from MH i2c: E2 03 00 [19:31:35]MH_I2C_Read... [19:31:35]Read from MH i2c: E2 03 00 DA 6F 00 90 00 BD [19:31:35]RAPDU: 90 00 [19:31:35]wFMCommunicate OK [19:31:35]wFMCommunicate request_size=254 [19:31:35]MH_SAM_APDU [19:31:35]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7B 01 00 00 F4 03 04 00 9C FD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3F 7C 03 00 35 04 06 00 F7 F0 F7 6B E2 78 [19:31:36]Write to MH i2c: E2 01 01 DB 6F 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7B 01 00 00 F4 03 04 00 9C FD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3F 7C 03 00 35 04 06 00 F7 F0 F7 6B E2 78 00 00 39 [19:31:36]Write i2c OK [19:31:36]MH_I2C_Read... [19:31:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:36]Read from MH i2c: E2 [19:31:36]MH_I2C_Read... [19:31:36]Read from MH i2c: E2 03 00 [19:31:36]MH_I2C_Read... [19:31:36]Read from MH i2c: E2 03 00 DB 6F 00 90 00 BE [19:31:36]RAPDU: 90 00 [19:31:36]wFMCommunicate OK [19:31:36]wFMCommunicate request_size=4 [19:31:36]MH_SAM_APDU [19:31:36]CAPDU: 80 0D 03 02 [19:31:36]Write to MH i2c: E2 08 00 DC 6F 80 0D 03 02 00 00 00 00 C6 [19:31:36]Write i2c OK [19:31:36]MH_I2C_Read... [19:31:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:31:36]Read from MH i2c: E2 [19:31:36]MH_I2C_Read... [19:31:36]Read from MH i2c: E2 0B 00 [19:31:36]MH_I2C_Read... [19:31:36]Read from MH i2c: E2 0B 00 DC 6F 00 A7 14 88 BE 34 61 A6 39 90 00 3C [19:31:36]RAPDU: A7 14 88 BE 34 61 A6 39 90 00 [19:31:36]wFMCommunicate OK [19:31:36]SAM_PROTO_SignData done [19:31:36]FM_MakeSignedData done [19:31:36]CreateOFDProtocolMessage [19:31:36]wFMCommunicate request_size=4 [19:31:36]MH_SAM_APDU [19:31:36]CAPDU: 80 11 00 00 [19:31:36]Write to MH i2c: E2 08 00 DD 6F 80 11 00 00 00 00 00 00 C6 [19:31:36]Write i2c OK [19:31:36]MH_I2C_Read... [19:31:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:36]Read from MH i2c: E2 [19:31:36]MH_I2C_Read... [19:31:36]Read from MH i2c: E2 17 00 [19:31:36]MH_I2C_Read... [19:31:36]Read from MH i2c: E2 17 00 DD 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1D [19:31:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:31:36]wFMCommunicate OK [19:31:36]CreateOFDProtocolMessage done [19:31:36]OFDSenderStorePacket 228415 [19:31:36]StoreOFDPacket docnum=228415 [19:31:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 E2 0F 01 01 30 FB 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7B 01 00 00 F4 03 04 00 9C FD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3F 7C 03 00 35 04 06 00 F7 F0 F7 6B E2 78 A7 14 88 BE 34 61 A6 39 [19:31:36]CheckFolder [19:31:36]dirname=/storage/ofd_packets [19:31:36]CheckFolder done [19:31:36]ProducePacketName [19:31:36]name=ofd_packets/00228415 [19:31:36]NVStorageSaveData ofd_packets/00228415 [19:31:36]File name is /storage/ofd_packets/00228415 [19:31:36]Write 295 bytes [19:31:36]NVStorageSaveData done [19:31:36]OFDSenderStorePacket done [19:31:36]KKMCreateOFDPacket done [19:31:36]NVStorageSaveData kkm_last_timestamp [19:31:36]File name is /storage/kkm_last_timestamp [19:31:36]Write 4 bytes [19:31:36]NVStorageSaveData done [19:31:36]ExternCall_PrintAddStr [19:31:36]wPrintStart [19:31:36]Write to MH i2c: 01 00 00 DE 6F 4D [19:31:36]Write i2c OK [19:31:36]MH_I2C_Read... [19:31:36]Read from MH i2c: 01 [19:31:36]MH_I2C_Read... [19:31:36]Read from MH i2c: 01 07 00 [19:31:36]MH_I2C_Read... [19:31:36]Read from MH i2c: 01 07 00 DE 6F 00 00 00 00 00 FF 0F 62 [19:31:36]RasterBufferAndPrint [19:31:36]line Счет N : (1)1964981 [19:31:36]line ИНН: 02508201610067 [19:31:36]line Контрольно-Кассовый Чек [19:31:36]line ПРОДАЖА [19:31:36]line ТРК (МРК, ГНК) : 71 [19:31:36]line Товар: 2711129700 [19:31:36]line ГАЗ [19:31:36]line 25.710 * 38.90 [19:31:36]line = 1000.12 [19:31:36]line НДС 12% НСП 1% [19:31:36]line > о реализуемом товаре [19:31:36]line ОКРУГЛЕНИЕ: -0.12 [19:31:36]line ИТОГО: 1000.00 [19:31:36]line Внесено: 1000.00 [19:31:36]line СДАЧА: 0.00 [19:31:36]line НСП 1% : 8.85 [19:31:36]line НДС 12% : 106.21 [19:31:36]line Наличными: 1000.00 [19:31:36]line Безнал.: 0.00 [19:31:36]line Место: АЗС № 133 "Партнер Нефть" [19:31:36]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:31:36]line СНО: Общий режим [19:31:36]line Чек 379 22.10.2024 19:31 [19:31:36]line Смена: 535 ФФД: 1.0 [19:31:36]line ЗНМ: 0300000091 [19:31:36]line РНМ: 0000000000091685 [19:31:36]line Версия ККМ: 001 [19:31:36]line ФМ: 0000000000871839 [19:31:36]line ФД: 228415 [19:31:36]line ФПД: 272614315254392 [19:31:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T193140&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228415&fm=272614315254392&tin=02508201610067®Number=0000000000091685&sum=100000 [19:31:36]OFD Sender: Processing packet 228415 [packets to send 38, broken 37] [19:31:36]ProducePacketName [19:31:36]name=ofd_packets/00228415 [19:31:36]OFD Sender: To server: pG, [19:31:36]CommunicateWithHost lk.salyk.kg:30040 [19:31:36]ConnectInit lk.salyk.kg [19:31:36]written 0, free lines is 4095 [19:31:36]Connected sock=10 [19:31:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 E2 0F 01 01 30 FB 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7B 01 00 00 F4 03 04 00 9C FD 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3F 7C 03 00 35 04 06 00 F7 F0 F7 6B E2 78 A7 14 88 BE 34 61 A6 39 [19:31:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 FF 33 47 00 C5 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 38 37 31 38 33 39 10 04 04 00 3F 7C 03 00 F4 03 04 00 93 A8 17 67 B6 04 01 00 00 BF E0 6A 30 3E 71 A6 B0 [19:31:37]CommunicateWithHost err = 0 [19:31:37]CheckOFDResponse [19:31:37]1017 (14) - 77093643461234 [19:31:37]1041 (16) - 0000000000871839 [19:31:37]1040 (4) - 228415 [19:31:37]1012 (4) - 22.10.2024 13:28 [19:31:37]1206 (1) - 0 [19:31:37]OFD Sender: Remove packet 228415 [19:31:37]ProducePacketName [19:31:37]name=ofd_packets/00228415 [19:31:37]NVStorageDeleteData [19:31:37]Write to MH i2c: 01 00 00 08 70 78 [19:31:37]Write i2c OK [19:31:37]MH_I2C_Read... [19:31:37]Read from MH i2c: 01 [19:31:37]MH_I2C_Read... [19:31:37]Read from MH i2c: 01 07 00 [19:31:37]MH_I2C_Read... [19:31:37]Read from MH i2c: 01 07 00 08 70 00 00 00 00 00 B7 0C 42 [19:31:37]RasterBufferAndPrint [19:31:37]line [19:31:37]line [19:31:37]line [19:31:37]line [19:31:37]line [19:31:37]written 0, free lines is 3259 [19:31:37]MH_Cut [19:31:37]Write to MH i2c: D1 01 00 0F 70 01 51 [19:31:37]Write i2c OK [19:31:37]MH_I2C_Read... [19:31:37]Read from MH i2c: D1 [19:31:37]MH_I2C_Read... [19:31:37]Read from MH i2c: D1 01 00 [19:31:37]MH_I2C_Read... [19:31:37]Read from MH i2c: D1 01 00 0F 70 00 50 [19:31:37]Write to MH i2c: 01 00 00 10 70 80 [19:31:37]Write i2c OK [19:31:37]MH_I2C_Read... [19:31:37]OFD Sender: No OFD packet to send [19:31:38]*** Cut start [19:31:38]*** Partial cut [19:31:38]*** CUTSNS_PIN = 1 [19:31:38]*** CUTSNS_PIN = 0 [19:31:38]*** Brake cut motor [19:31:38]Read from MH i2c: 01 [19:31:38]MH_I2C_Read... [19:31:38]*** Stop cut motor [19:31:38]*** Cut end [19:31:38]Read from MH i2c: 01 07 00 [19:31:38]MH_I2C_Read... [19:31:38]Read from MH i2c: 01 07 00 10 70 00 00 00 00 00 FF 0F 95 [19:31:38]process_action close_receipt done [19:31:38]requested_data is exist [19:31:38]produce_requested_data [19:31:38]requested_item fm.sn is exist - process it [19:31:38]wFMCommunicate request_size=4 [19:31:38]MH_SAM_APDU [19:31:38]CAPDU: 80 11 00 00 [19:31:38]Write to MH i2c: E2 08 00 11 70 80 11 00 00 00 00 00 00 FB [19:31:38]Write i2c OK [19:31:38]MH_I2C_Read... [19:31:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:38]Read from MH i2c: E2 [19:31:38]MH_I2C_Read... [19:31:38]Read from MH i2c: E2 17 00 [19:31:38]MH_I2C_Read... [19:31:38]Read from MH i2c: E2 17 00 11 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 52 [19:31:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:31:38]wFMCommunicate OK [19:31:38]requested_item fd.num is exist - process it [19:31:38]SAM_PROTO_GetFieldsCounters [19:31:38]wFMCommunicate request_size=4 [19:31:38]MH_SAM_APDU [19:31:38]CAPDU: 80 13 00 00 [19:31:38]Write to MH i2c: E2 08 00 12 70 80 13 00 00 00 00 00 00 FE [19:31:38]Write i2c OK [19:31:38]MH_I2C_Read... [19:31:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:31:38]Read from MH i2c: E2 [19:31:38]MH_I2C_Read... [19:31:38]Read from MH i2c: E2 62 00 [19:31:38]MH_I2C_Read... [19:31:38]Read from MH i2c: E2 62 00 12 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3F 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 7B 01 00 00 5E 04 04 00 7B 01 00 00 57 04 04 00 7C 01 00 00 19 04 04 00 00 00 00 00 90 00 72 [19:31:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3F 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 7B 01 00 00 5E 04 04 00 7B 01 00 00 57 04 04 00 7C 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:31:38]wFMCommunicate OK [19:31:38]SAM_PROTO_GetFieldsCounters done [19:31:38]requested_item shift.num is exist - process it [19:31:38]requested_item shift.opened is exist - process it [19:31:38]req_shift_opened [19:31:38]FM_GetShiftState [19:31:38]SAM_PROTO_GetShiftState [19:31:38]wFMCommunicate request_size=4 [19:31:38]MH_SAM_APDU [19:31:38]CAPDU: 80 13 01 00 [19:31:38]Write to MH i2c: E2 08 00 13 70 80 13 01 00 00 00 00 00 00 [19:31:38]Write i2c OK [19:31:38]MH_I2C_Read... [19:31:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:38]Read from MH i2c: E2 [19:31:38]MH_I2C_Read... [19:31:38]Read from MH i2c: E2 0E 00 [19:31:38]MH_I2C_Read... [19:31:38]Read from MH i2c: E2 0E 00 13 70 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 C7 [19:31:38]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [19:31:38]wFMCommunicate OK [19:31:38]SAM_PROTO_GetShiftState done [19:31:38]FM_GetShiftState done [19:31:38]req_shift_opened done [19:31:38]requested_item shift.open_date is exist - process it [19:31:38]req_shift_open_date [19:31:38]req_shift_open_date done [19:31:38]produce_requested_data done [19:31:38]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228415,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [19:31:38]process_action_free close_receipt [19:31:38]json_value_free [19:31:38]json_value_free done [19:31:38]process_json_proto returns [19:31:38]Send response to host [19:31:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228415,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [19:31:38]free response buf [19:31:38]execute_script done [19:31:38]execute_script returns [19:31:38]free content buf [19:31:38]Sock 7.Close socket [19:31:38]Sock 7.Thread stoped [19:31:42]OFD Sender: No OFD packet to send [19:31:47]OFD Sender: No OFD packet to send [19:31:52]OFD Sender: No OFD packet to send [19:31:57]OFD Sender: No OFD packet to send [19:32:02]OFD Sender: No OFD packet to send [19:32:07]OFD Sender: No OFD packet to send [19:32:12]OFD Sender: No OFD packet to send [19:32:17]OFD Sender: No OFD packet to send [19:32:22]OFD Sender: No OFD packet to send [19:32:27]OFD Sender: No OFD packet to send [19:32:32]OFD Sender: No OFD packet to send [19:32:37]OFD Sender: No OFD packet to send [19:32:42]OFD Sender: No OFD packet to send [19:32:47]OFD Sender: No OFD packet to send [19:32:52]OFD Sender: No OFD packet to send [19:32:57]OFD Sender: No OFD packet to send [19:33:02]OFD Sender: No OFD packet to send [19:33:07]OFD Sender: No OFD packet to send [19:33:12]OFD Sender: No OFD packet to send [19:33:17]OFD Sender: No OFD packet to send [19:33:22]OFD Sender: No OFD packet to send [19:33:27]OFD Sender: No OFD packet to send [19:33:32]OFD Sender: No OFD packet to send [19:33:33]accept exits with 9 [19:33:33]New connection [19:33:33]New thread 3067137380 created [19:33:33]Thread 3066994020 joined [19:33:33]Waiting for new connection... [19:33:33] Sock 9.Parse request [19:33:33]Sock 9.Check first char [19:33:33]Sock 9.First char is OK [19:33:33]request: POST /json_proto HTTP/1.0 [19:33:33]Method: POST [19:33:33]URL: /json_proto [19:33:33]Method is POST - this is cgi request [19:33:33]url: /json_proto [19:33:33]query_string will be loaded in cgi processing [19:33:33]execute_cgi json_proto POST (null) [19:33:33]execute_cgi path=json_proto method=POST [19:33:33]POST find Content-Length [19:33:33]Host: 172.17.44.195:8080 [19:33:33]Content-Length: 678 [19:33:33]Content-Type: application/json [19:33:33] [19:33:33]POST finish read [19:33:33]Found Content-Length = 678 [19:33:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964985", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:33:33]execute_script... [19:33:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964985", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:33:33]POST & json_proto [19:33:33]process_json_proto [19:33:33]json parsed OK: [19:33:33]protocol is kg_v1.0 [19:33:33]action value=close_receipt [19:33:33]process_action close_receipt [19:33:33]cmd_close_receipt [19:33:33]MH_GetDate [19:33:33]Write to MH i2c: F0 00 00 14 70 73 [19:33:33]Write i2c OK [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: F0 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: F0 09 00 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: F0 09 00 14 70 00 12 FE 17 67 82 C9 CF 66 8A [19:33:33]GetLastDocTimeStamp 1729625500 [19:33:33]current date 1729625618 [19:33:33]FM_GetShiftState [19:33:33]SAM_PROTO_GetShiftState [19:33:33]wFMCommunicate request_size=4 [19:33:33]MH_SAM_APDU [19:33:33]CAPDU: 80 13 01 00 [19:33:33]Write to MH i2c: E2 08 00 15 70 80 13 01 00 00 00 00 00 02 [19:33:33]Write i2c OK [19:33:33]MH_I2C_Read... [19:33:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:33]Read from MH i2c: E2 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: E2 0E 00 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: E2 0E 00 15 70 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 C9 [19:33:33]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [19:33:33]wFMCommunicate OK [19:33:33]SAM_PROTO_GetShiftState done [19:33:33]FM_GetShiftState done [19:33:33]opened in 1729555538 [19:33:33]opened+sec_in_day 1729641938 [19:33:33]quantity*price = 50041 [19:33:33]sum+1 = 50042 [19:33:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 380 22.10.2024 19:33 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228416 ФПД: 137059699295044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T193338&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228416&fm=137059699295044&tin=02508201610067®Number=0000000000091685&sum=50000 [19:33:34]StoreToDocumentArchive [19:33:34]shift 535 fd 228416 [19:33:34]save to /storage/0535/doc_00228416 [19:33:34]save last doc name /storage/0535/doc_00228416 to /storage/kkm_last_doc_name [19:33:34]save OK [19:33:34]Clear old archive folders... [19:33:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:33:34]tlvbuf is 0093C9B0 [19:33:34]SAM_PROTO_ClearQueue [19:33:34]wFMCommunicate request_size=4 [19:33:34]MH_SAM_APDU [19:33:34]CAPDU: 80 09 00 00 [19:33:34]Write to MH i2c: E2 08 00 22 70 80 09 00 00 00 00 00 00 04 [19:33:34]Write i2c OK [19:33:34]MH_I2C_Read... [19:33:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:33:34]Read from MH i2c: E2 [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: E2 03 00 [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: E2 03 00 22 70 00 90 00 06 [19:33:34]RAPDU: 90 00 [19:33:34]wFMCommunicate OK [19:33:34]SAM_PROTO_ClearQueue done [19:33:34]KKMCreateOFDPacket [19:33:34]OFDProtocolAddRootSTLVToBuf [19:33:34]FM_MakeSignedData [19:33:34]FM_MakeSignedData [19:33:34]SAM_PROTO_SignData [19:33:34]wFMCommunicate request_size=4 [19:33:34]MH_SAM_APDU [19:33:34]CAPDU: 80 0D 01 02 [19:33:34]Write to MH i2c: E2 08 00 23 70 80 0D 01 02 00 00 00 00 0C [19:33:34]Write i2c OK [19:33:34]MH_I2C_Read... [19:33:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:33:34]Read from MH i2c: E2 [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: E2 03 00 [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: E2 03 00 23 70 00 90 00 07 [19:33:34]RAPDU: 90 00 [19:33:34]wFMCommunicate OK [19:33:34]wFMCommunicate request_size=255 [19:33:34]MH_SAM_APDU [19:33: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 12 FE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 40 7C 03 00 35 04 06 00 7C [19:33:34]Write to MH i2c: E2 02 01 24 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 12 FE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 40 7C 03 00 35 04 06 00 7C 00 00 02 [19:33:34]Write i2c OK [19:33:34]MH_I2C_Read... [19:33:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:34]Read from MH i2c: E2 [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: E2 03 00 [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: E2 03 00 24 70 00 90 00 08 [19:33:34]RAPDU: 90 00 [19:33:34]wFMCommunicate OK [19:33:34]wFMCommunicate request_size=10 [19:33:34]MH_SAM_APDU [19:33:34]CAPDU: 80 0D 02 02 05 A7 B2 B0 83 44 [19:33:34]Write to MH i2c: E2 0D 00 25 70 80 0D 02 02 05 00 A7 B2 B0 83 44 00 00 E9 [19:33:34]Write i2c OK [19:33:34]MH_I2C_Read... [19:33:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:34]Read from MH i2c: E2 [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: E2 03 00 [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: E2 03 00 25 70 00 90 00 09 [19:33:34]RAPDU: 90 00 [19:33:34]wFMCommunicate OK [19:33:34]wFMCommunicate request_size=4 [19:33:34]MH_SAM_APDU [19:33:34]CAPDU: 80 0D 03 02 [19:33:34]Write to MH i2c: E2 08 00 26 70 80 0D 03 02 00 00 00 00 11 [19:33:34]Write i2c OK [19:33:34]MH_I2C_Read... [19:33:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:33:34]Read from MH i2c: E2 [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: E2 0B 00 [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: E2 0B 00 26 70 00 E5 E2 EB DE E6 A7 8F 2F 90 00 ED [19:33:34]RAPDU: E5 E2 EB DE E6 A7 8F 2F 90 00 [19:33:34]wFMCommunicate OK [19:33:34]SAM_PROTO_SignData done [19:33:34]FM_MakeSignedData done [19:33:34]CreateOFDProtocolMessage [19:33:34]wFMCommunicate request_size=4 [19:33:34]MH_SAM_APDU [19:33:34]CAPDU: 80 11 00 00 [19:33:34]Write to MH i2c: E2 08 00 27 70 80 11 00 00 00 00 00 00 11 [19:33:34]Write i2c OK [19:33:34]MH_I2C_Read... [19:33:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:34]Read from MH i2c: E2 [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: E2 17 00 [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: E2 17 00 27 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 68 [19:33:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:33:34]wFMCommunicate OK [19:33:34]CreateOFDProtocolMessage done [19:33:34]OFDSenderStorePacket 228416 [19:33:34]StoreOFDPacket docnum=228416 [19:33:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 CE 1C 07 01 D7 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 12 FE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 40 7C 03 00 35 04 06 00 7C A7 B2 B0 83 44 E5 E2 EB DE E6 A7 8F 2F [19:33:34]CheckFolder [19:33:34]dirname=/storage/ofd_packets [19:33:34]CheckFolder done [19:33:34]ProducePacketName [19:33:34]name=ofd_packets/00228416 [19:33:34]NVStorageSaveData ofd_packets/00228416 [19:33:34]File name is /storage/ofd_packets/00228416 [19:33:34]Write 301 bytes [19:33:34]NVStorageSaveData done [19:33:34]OFDSenderStorePacket done [19:33:34]KKMCreateOFDPacket done [19:33:34]NVStorageSaveData kkm_last_timestamp [19:33:34]File name is /storage/kkm_last_timestamp [19:33:34]Write 4 bytes [19:33:34]NVStorageSaveData done [19:33:34]ExternCall_PrintAddStr [19:33:34]wPrintStart [19:33:34]Write to MH i2c: 01 00 00 28 70 98 [19:33:34]Write i2c OK [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: 01 [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: 01 07 00 [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: 01 07 00 28 70 00 00 00 00 00 FF 0F AD [19:33:34]RasterBufferAndPrint [19:33:34]line Счет N : (1)1964985 [19:33:34]line ИНН: 02508201610067 [19:33:34]line Контрольно-Кассовый Чек [19:33:34]line ПРОДАЖА [19:33:34]line ТРК (МРК, ГНК) : 53 [19:33:34]line Товар: 2710124130 [19:33:34]line Аи-92-К-5 [19:33:34]line 7.480 * 66.90 [19:33:34]line = 500.41 [19:33:34]line НДС 12% НСП 1% [19:33:34]line > о реализуемом товаре [19:33:34]line ОКРУГЛЕНИЕ: -0.41 [19:33:34]line ИТОГО: 500.00 [19:33:34]line Внесено: 500.00 [19:33:34]line СДАЧА: 0.00 [19:33:34]line НСП 1% : 4.43 [19:33:34]line НДС 12% : 53.14 [19:33:34]line Наличными: 500.00 [19:33:34]line Безнал.: 0.00 [19:33:34]line Место: АЗС № 133 "Партнер Нефть" [19:33:34]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:33:34]line СНО: Общий режим [19:33:34]line Чек 380 22.10.2024 19:33 [19:33:34]line Смена: 535 ФФД: 1.0 [19:33:34]line ЗНМ: 0300000091 [19:33:34]line РНМ: 0000000000091685 [19:33:34]line Версия ККМ: 001 [19:33:34]line ФМ: 0000000000871839 [19:33:34]line ФД: 228416 [19:33:34]line ФПД: 137059699295044 [19:33:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T193338&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228416&fm=137059699295044&tin=02508201610067®Number=0000000000091685&sum=50000 [19:33:35]OFD Sender: Processing packet 228416 [packets to send 38, broken 37] [19:33:35]ProducePacketName [19:33:35]name=ofd_packets/00228416 [19:33:35]OFD Sender: To server: pG, [19:33:35]CommunicateWithHost lk.salyk.kg:30040 [19:33:35]ConnectInit lk.salyk.kg [19:33:35]written 0, free lines is 4095 [19:33:35]Connected sock=10 [19:33:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 CE 1C 07 01 D7 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 12 FE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 40 7C 03 00 35 04 06 00 7C A7 B2 B0 83 44 E5 E2 EB DE E6 A7 8F 2F [19:33:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 5D 0B 47 00 DF 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 38 37 31 38 33 39 10 04 04 00 40 7C 03 00 F4 03 04 00 0A A9 17 67 B6 04 01 00 00 29 85 17 5F D9 34 62 F1 [19:33:35]CommunicateWithHost err = 0 [19:33:35]CheckOFDResponse [19:33:35]1017 (14) - 77093643461234 [19:33:35]1041 (16) - 0000000000871839 [19:33:35]1040 (4) - 228416 [19:33:35]1012 (4) - 22.10.2024 13:30 [19:33:35]1206 (1) - 0 [19:33:35]OFD Sender: Remove packet 228416 [19:33:35]ProducePacketName [19:33:35]name=ofd_packets/00228416 [19:33:35]NVStorageDeleteData [19:33:35]Write to MH i2c: 01 00 00 52 70 C2 [19:33:35]Write i2c OK [19:33:35]MH_I2C_Read... [19:33:35]Read from MH i2c: 01 [19:33:35]MH_I2C_Read... [19:33:35]Read from MH i2c: 01 07 00 [19:33:35]MH_I2C_Read... [19:33:35]Read from MH i2c: 01 07 00 52 70 00 00 00 00 00 A6 0C 7B [19:33:35]RasterBufferAndPrint [19:33:35]line [19:33:35]line [19:33:35]line [19:33:35]line [19:33:35]line [19:33:35]written 0, free lines is 3242 [19:33:35]MH_Cut [19:33:35]Write to MH i2c: D1 01 00 59 70 01 9B [19:33:35]Write i2c OK [19:33:35]MH_I2C_Read... [19:33:35]Read from MH i2c: D1 [19:33:35]MH_I2C_Read... [19:33:35]Read from MH i2c: D1 01 00 [19:33:35]MH_I2C_Read... [19:33:35]Read from MH i2c: D1 01 00 59 70 00 9A [19:33:35]Write to MH i2c: 01 00 00 5A 70 CA [19:33:35]Write i2c OK [19:33:35]MH_I2C_Read... [19:33:36]OFD Sender: No OFD packet to send [19:33:36]*** Cut start [19:33:36]*** Partial cut [19:33:36]*** CUTSNS_PIN = 1 [19:33:36]*** CUTSNS_PIN = 0 [19:33:36]*** Brake cut motor [19:33:37]Read from MH i2c: 01 [19:33:37]MH_I2C_Read... [19:33:37]*** Stop cut motor [19:33:37]*** Cut end [19:33:37]Read from MH i2c: 01 07 00 [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: 01 07 00 5A 70 00 00 00 00 00 FF 0F DF [19:33:37]process_action close_receipt done [19:33:37]requested_data is exist [19:33:37]produce_requested_data [19:33:37]requested_item fm.sn is exist - process it [19:33:37]wFMCommunicate request_size=4 [19:33:37]MH_SAM_APDU [19:33:37]CAPDU: 80 11 00 00 [19:33:37]Write to MH i2c: E2 08 00 5B 70 80 11 00 00 00 00 00 00 45 [19:33:37]Write i2c OK [19:33:37]MH_I2C_Read... [19:33:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:37]Read from MH i2c: E2 [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: E2 17 00 [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: E2 17 00 5B 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9C [19:33:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:33:37]wFMCommunicate OK [19:33:37]requested_item fd.num is exist - process it [19:33:37]SAM_PROTO_GetFieldsCounters [19:33:37]wFMCommunicate request_size=4 [19:33:37]MH_SAM_APDU [19:33:37]CAPDU: 80 13 00 00 [19:33:37]Write to MH i2c: E2 08 00 5C 70 80 13 00 00 00 00 00 00 48 [19:33:37]Write i2c OK [19:33:37]MH_I2C_Read... [19:33:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:37]Read from MH i2c: E2 [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: E2 62 00 [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: E2 62 00 5C 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 40 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 7C 01 00 00 5E 04 04 00 7C 01 00 00 57 04 04 00 7D 01 00 00 19 04 04 00 00 00 00 00 90 00 C0 [19:33:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 40 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 7C 01 00 00 5E 04 04 00 7C 01 00 00 57 04 04 00 7D 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:33:37]wFMCommunicate OK [19:33:37]SAM_PROTO_GetFieldsCounters done [19:33:37]requested_item shift.num is exist - process it [19:33:37]requested_item shift.opened is exist - process it [19:33:37]req_shift_opened [19:33:37]FM_GetShiftState [19:33:37]SAM_PROTO_GetShiftState [19:33:37]wFMCommunicate request_size=4 [19:33:37]MH_SAM_APDU [19:33:37]CAPDU: 80 13 01 00 [19:33:37]Write to MH i2c: E2 08 00 5D 70 80 13 01 00 00 00 00 00 4A [19:33:37]Write i2c OK [19:33:37]MH_I2C_Read... [19:33:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:37]Read from MH i2c: E2 [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: E2 0E 00 [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: E2 0E 00 5D 70 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 11 [19:33:37]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [19:33:37]wFMCommunicate OK [19:33:37]SAM_PROTO_GetShiftState done [19:33:37]FM_GetShiftState done [19:33:37]req_shift_opened done [19:33:37]requested_item shift.open_date is exist - process it [19:33:37]req_shift_open_date [19:33:37]req_shift_open_date done [19:33:37]produce_requested_data done [19:33:37]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228416,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [19:33:37]process_action_free close_receipt [19:33:37]json_value_free [19:33:37]json_value_free done [19:33:37]process_json_proto returns [19:33:37]Send response to host [19:33:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228416,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [19:33:37]free response buf [19:33:37]execute_script done [19:33:37]execute_script returns [19:33:37]free content buf [19:33:37]Sock 9.Close socket [19:33:37]Sock 9.Thread stoped [19:33:41]OFD Sender: No OFD packet to send [19:33:46]OFD Sender: No OFD packet to send [19:33:48]accept exits with 7 [19:33:48]New connection [19:33:48]New thread 3066994020 created [19:33:48]Thread 3067137380 joined [19:33:48]Waiting for new connection... [19:33:48] Sock 7.Parse request [19:33:48]Sock 7.Check first char [19:33:48]Sock 7.First char is OK [19:33:48]request: POST /json_proto HTTP/1.0 [19:33:48]Method: POST [19:33:48]URL: /json_proto [19:33:48]Method is POST - this is cgi request [19:33:48]url: /json_proto [19:33:48]query_string will be loaded in cgi processing [19:33:48]execute_cgi json_proto POST (null) [19:33:48]execute_cgi path=json_proto method=POST [19:33:48]POST find Content-Length [19:33:48]Host: 172.17.44.195:8080 [19:33:48]Content-Length: 678 [19:33:48]Content-Type: application/json [19:33:48] [19:33:48]POST finish read [19:33:48]Found Content-Length = 678 [19:33:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964984", "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" : 66.90, "quantity" : 4.490, "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" ] } } [19:33:48]execute_script... [19:33:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964984", "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" : 66.90, "quantity" : 4.490, "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" ] } } [19:33:48]POST & json_proto [19:33:48]process_json_proto [19:33:48]json parsed OK: [19:33:48]protocol is kg_v1.0 [19:33:48]action value=close_receipt [19:33:48]process_action close_receipt [19:33:48]cmd_close_receipt [19:33:48]MH_GetDate [19:33:48]Write to MH i2c: F0 00 00 5E 70 BD [19:33:48]Write i2c OK [19:33:48]MH_I2C_Read... [19:33:48]Read from MH i2c: F0 [19:33:48]MH_I2C_Read... [19:33:48]Read from MH i2c: F0 09 00 [19:33:48]MH_I2C_Read... [19:33:48]Read from MH i2c: F0 09 00 5E 70 00 22 FE 17 67 82 C9 CF 66 E4 [19:33:48]GetLastDocTimeStamp 1729625618 [19:33:48]current date 1729625634 [19:33:48]FM_GetShiftState [19:33:48]SAM_PROTO_GetShiftState [19:33:48]wFMCommunicate request_size=4 [19:33:48]MH_SAM_APDU [19:33:48]CAPDU: 80 13 01 00 [19:33:48]Write to MH i2c: E2 08 00 5F 70 80 13 01 00 00 00 00 00 4C [19:33:48]Write i2c OK [19:33:48]MH_I2C_Read... [19:33:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:48]Read from MH i2c: E2 [19:33:48]MH_I2C_Read... [19:33:48]Read from MH i2c: E2 0E 00 [19:33:48]MH_I2C_Read... [19:33:48]Read from MH i2c: E2 0E 00 5F 70 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 13 [19:33:48]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [19:33:48]wFMCommunicate OK [19:33:48]SAM_PROTO_GetShiftState done [19:33:48]FM_GetShiftState done [19:33:48]opened in 1729555538 [19:33:48]opened+sec_in_day 1729641938 [19:33:48]quantity*price = 30038 [19:33:48]sum+1 = 30039 [19:33:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 381 22.10.2024 19:33 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228417 ФПД: 218990112226121 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T193354&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228417&fm=218990112226121&tin=02508201610067®Number=0000000000091685&sum=30000 [19:33:49]StoreToDocumentArchive [19:33:49]shift 535 fd 228417 [19:33:49]save to /storage/0535/doc_00228417 [19:33:49]save last doc name /storage/0535/doc_00228417 to /storage/kkm_last_doc_name [19:33:49]save OK [19:33:49]Clear old archive folders... [19:33:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:33:49]tlvbuf is 00A74710 [19:33:49]SAM_PROTO_ClearQueue [19:33:49]wFMCommunicate request_size=4 [19:33:49]MH_SAM_APDU [19:33:49]CAPDU: 80 09 00 00 [19:33:49]Write to MH i2c: E2 08 00 6C 70 80 09 00 00 00 00 00 00 4E [19:33:49]Write i2c OK [19:33:49]MH_I2C_Read... [19:33:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:33:49]Read from MH i2c: E2 [19:33:49]MH_I2C_Read... [19:33:49]Read from MH i2c: E2 03 00 [19:33:49]MH_I2C_Read... [19:33:49]Read from MH i2c: E2 03 00 6C 70 00 90 00 50 [19:33:49]RAPDU: 90 00 [19:33:49]wFMCommunicate OK [19:33:49]SAM_PROTO_ClearQueue done [19:33:49]KKMCreateOFDPacket [19:33:49]OFDProtocolAddRootSTLVToBuf [19:33:49]FM_MakeSignedData [19:33:49]FM_MakeSignedData [19:33:49]SAM_PROTO_SignData [19:33:49]wFMCommunicate request_size=4 [19:33:49]MH_SAM_APDU [19:33:49]CAPDU: 80 0D 01 02 [19:33:49]Write to MH i2c: E2 08 00 6D 70 80 0D 01 02 00 00 00 00 56 [19:33:49]Write i2c OK [19:33:49]MH_I2C_Read... [19:33:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:33:50]Read from MH i2c: E2 [19:33:50]MH_I2C_Read... [19:33:50]Read from MH i2c: E2 03 00 [19:33:50]MH_I2C_Read... [19:33:50]Read from MH i2c: E2 03 00 6D 70 00 90 00 51 [19:33:50]RAPDU: 90 00 [19:33:50]wFMCommunicate OK [19:33:50]wFMCommunicate request_size=255 [19:33:50]MH_SAM_APDU [19:33: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 7D 01 00 00 F4 03 04 00 22 FE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 41 7C 03 00 35 04 06 00 C7 [19:33:50]Write to MH i2c: E2 02 01 6E 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 11 00 00 00 00 00 37 04 06 00 22 1A 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 7D 01 00 00 F4 03 04 00 22 FE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 41 7C 03 00 35 04 06 00 C7 00 00 9D [19:33:50]Write i2c OK [19:33:50]MH_I2C_Read... [19:33:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:50]Read from MH i2c: E2 [19:33:50]MH_I2C_Read... [19:33:50]Read from MH i2c: E2 03 00 [19:33:50]MH_I2C_Read... [19:33:50]Read from MH i2c: E2 03 00 6E 70 00 90 00 52 [19:33:50]RAPDU: 90 00 [19:33:50]wFMCommunicate OK [19:33:50]wFMCommunicate request_size=10 [19:33:50]MH_SAM_APDU [19:33:50]CAPDU: 80 0D 02 02 05 2B 9B D9 3B 49 [19:33:50]Write to MH i2c: E2 0D 00 6F 70 80 0D 02 02 05 00 2B 9B D9 3B 49 00 00 86 [19:33:50]Write i2c OK [19:33:50]MH_I2C_Read... [19:33:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:50]Read from MH i2c: E2 [19:33:50]MH_I2C_Read... [19:33:50]Read from MH i2c: E2 03 00 [19:33:50]MH_I2C_Read... [19:33:50]Read from MH i2c: E2 03 00 6F 70 00 90 00 53 [19:33:50]RAPDU: 90 00 [19:33:50]wFMCommunicate OK [19:33:50]wFMCommunicate request_size=4 [19:33:50]MH_SAM_APDU [19:33:50]CAPDU: 80 0D 03 02 [19:33:50]Write to MH i2c: E2 08 00 70 70 80 0D 03 02 00 00 00 00 5B [19:33:50]Write i2c OK [19:33:50]MH_I2C_Read... [19:33:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:33:50]Read from MH i2c: E2 [19:33:50]MH_I2C_Read... [19:33:50]Read from MH i2c: E2 0B 00 [19:33:50]MH_I2C_Read... [19:33:50]Read from MH i2c: E2 0B 00 70 70 00 CA BC 21 EC F1 83 2F 8F 90 00 21 [19:33:50]RAPDU: CA BC 21 EC F1 83 2F 8F 90 00 [19:33:50]wFMCommunicate OK [19:33:50]SAM_PROTO_SignData done [19:33:50]FM_MakeSignedData done [19:33:50]CreateOFDProtocolMessage [19:33:50]wFMCommunicate request_size=4 [19:33:50]MH_SAM_APDU [19:33:50]CAPDU: 80 11 00 00 [19:33:50]Write to MH i2c: E2 08 00 71 70 80 11 00 00 00 00 00 00 5B [19:33:50]Write i2c OK [19:33:50]MH_I2C_Read... [19:33:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:50]Read from MH i2c: E2 [19:33:50]MH_I2C_Read... [19:33:50]Read from MH i2c: E2 17 00 [19:33:50]MH_I2C_Read... [19:33:50]Read from MH i2c: E2 17 00 71 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B2 [19:33:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:33:50]wFMCommunicate OK [19:33:50]CreateOFDProtocolMessage done [19:33:50]OFDSenderStorePacket 228417 [19:33:50]StoreOFDPacket docnum=228417 [19:33:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 51 DA 07 01 E1 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 7D 01 00 00 F4 03 04 00 22 FE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 41 7C 03 00 35 04 06 00 C7 2B 9B D9 3B 49 CA BC 21 EC F1 83 2F 8F [19:33:50]CheckFolder [19:33:50]dirname=/storage/ofd_packets [19:33:50]CheckFolder done [19:33:50]ProducePacketName [19:33:50]name=ofd_packets/00228417 [19:33:50]NVStorageSaveData ofd_packets/00228417 [19:33:50]File name is /storage/ofd_packets/00228417 [19:33:50]Write 301 bytes [19:33:50]NVStorageSaveData done [19:33:50]OFDSenderStorePacket done [19:33:50]KKMCreateOFDPacket done [19:33:50]NVStorageSaveData kkm_last_timestamp [19:33:50]File name is /storage/kkm_last_timestamp [19:33:50]Write 4 bytes [19:33:50]NVStorageSaveData done [19:33:50]ExternCall_PrintAddStr [19:33:50]wPrintStart [19:33:50]Write to MH i2c: 01 00 00 72 70 E2 [19:33:50]Write i2c OK [19:33:50]MH_I2C_Read... [19:33:50]Read from MH i2c: 01 [19:33:50]MH_I2C_Read... [19:33:50]Read from MH i2c: 01 07 00 [19:33:50]MH_I2C_Read... [19:33:50]Read from MH i2c: 01 07 00 72 70 00 00 00 00 00 FF 0F F7 [19:33:50]RasterBufferAndPrint [19:33:50]line Счет N : (1)1964984 [19:33:50]line ИНН: 02508201610067 [19:33:50]line Контрольно-Кассовый Чек [19:33:50]line ПРОДАЖА [19:33:50]line ТРК (МРК, ГНК) : 63 [19:33:50]line Товар: 2710124130 [19:33:50]line Аи-92-К-5 [19:33:50]line 4.490 * 66.90 [19:33:50]line = 300.38 [19:33:50]line НДС 12% НСП 1% [19:33:50]line > о реализуемом товаре [19:33:50]line ОКРУГЛЕНИЕ: -0.38 [19:33:50]line ИТОГО: 300.00 [19:33:50]line Внесено: 300.00 [19:33:50]line СДАЧА: 0.00 [19:33:50]line НСП 1% : 2.66 [19:33:50]line НДС 12% : 31.90 [19:33:50]line Наличными: 300.00 [19:33:50]line Безнал.: 0.00 [19:33:50]line Место: АЗС № 133 "Партнер Нефть" [19:33:50]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:33:50]line СНО: Общий режим [19:33:50]line Чек 381 22.10.2024 19:33 [19:33:50]line Смена: 535 ФФД: 1.0 [19:33:50]line ЗНМ: 0300000091 [19:33:50]line РНМ: 0000000000091685 [19:33:50]line Версия ККМ: 001 [19:33:50]line ФМ: 0000000000871839 [19:33:50]line ФД: 228417 [19:33:50]line ФПД: 218990112226121 [19:33:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T193354&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228417&fm=218990112226121&tin=02508201610067®Number=0000000000091685&sum=30000 [19:33:50]OFD Sender: Processing packet 228417 [packets to send 38, broken 37] [19:33:50]ProducePacketName [19:33:50]name=ofd_packets/00228417 [19:33:50]OFD Sender: To server: pG, [19:33:50]CommunicateWithHost lk.salyk.kg:30040 [19:33:50]ConnectInit lk.salyk.kg [19:33:50]written 0, free lines is 4095 [19:33:50]Connected sock=11 [19:33:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 51 DA 07 01 E1 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 7D 01 00 00 F4 03 04 00 22 FE 17 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 41 7C 03 00 35 04 06 00 C7 2B 9B D9 3B 49 CA BC 21 EC F1 83 2F 8F [19:33:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 9D EA 47 00 49 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 41 7C 03 00 F4 03 04 00 19 A9 17 67 B6 04 01 00 00 F6 00 E0 B5 B1 EB F1 32 [19:33:51]CommunicateWithHost err = 0 [19:33:51]CheckOFDResponse [19:33:51]1017 (14) - 77093643461234 [19:33:51]1041 (16) - 0000000000871839 [19:33:51]1040 (4) - 228417 [19:33:51]1012 (4) - 22.10.2024 13:31 [19:33:51]1206 (1) - 0 [19:33:51]OFD Sender: Remove packet 228417 [19:33:51]ProducePacketName [19:33:51]name=ofd_packets/00228417 [19:33:51]NVStorageDeleteData [19:33:51]Write to MH i2c: 01 00 00 9C 70 0C [19:33:51]Write i2c OK [19:33:51]MH_I2C_Read... [19:33:51]Read from MH i2c: 01 [19:33:51]MH_I2C_Read... [19:33:51]Read from MH i2c: 01 07 00 [19:33:51]MH_I2C_Read... [19:33:51]Read from MH i2c: 01 07 00 9C 70 00 00 00 00 00 A8 0C C7 [19:33:51]RasterBufferAndPrint [19:33:51]line [19:33:51]line [19:33:51]line [19:33:51]line [19:33:51]line [19:33:51]written 0, free lines is 3242 [19:33:51]MH_Cut [19:33:51]Write to MH i2c: D1 01 00 A3 70 01 E5 [19:33:51]Write i2c OK [19:33:51]MH_I2C_Read... [19:33:51]Read from MH i2c: D1 [19:33:51]MH_I2C_Read... [19:33:51]Read from MH i2c: D1 01 00 [19:33:51]MH_I2C_Read... [19:33:51]Read from MH i2c: D1 01 00 A3 70 00 E4 [19:33:51]Write to MH i2c: 01 00 00 A4 70 14 [19:33:51]Write i2c OK [19:33:51]MH_I2C_Read... [19:33:51]OFD Sender: No OFD packet to send [19:33:52]*** Cut start [19:33:52]*** Partial cut [19:33:52]*** CUTSNS_PIN = 1 [19:33:52]*** CUTSNS_PIN = 0 [19:33:52]*** Brake cut motor [19:33:52]Read from MH i2c: 01 [19:33:52]MH_I2C_Read... [19:33:52]*** Stop cut motor [19:33:52]*** Cut end [19:33:52]Read from MH i2c: 01 07 00 [19:33:52]MH_I2C_Read... [19:33:52]Read from MH i2c: 01 07 00 A4 70 00 00 00 00 00 FF 0F 29 [19:33:52]process_action close_receipt done [19:33:52]requested_data is exist [19:33:52]produce_requested_data [19:33:52]requested_item fm.sn is exist - process it [19:33:52]wFMCommunicate request_size=4 [19:33:52]MH_SAM_APDU [19:33:52]CAPDU: 80 11 00 00 [19:33:52]Write to MH i2c: E2 08 00 A5 70 80 11 00 00 00 00 00 00 8F [19:33:52]Write i2c OK [19:33:52]MH_I2C_Read... [19:33:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:52]Read from MH i2c: E2 [19:33:52]MH_I2C_Read... [19:33:52]Read from MH i2c: E2 17 00 [19:33:52]MH_I2C_Read... [19:33:52]Read from MH i2c: E2 17 00 A5 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E6 [19:33:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:33:52]wFMCommunicate OK [19:33:52]requested_item fd.num is exist - process it [19:33:52]SAM_PROTO_GetFieldsCounters [19:33:52]wFMCommunicate request_size=4 [19:33:52]MH_SAM_APDU [19:33:52]CAPDU: 80 13 00 00 [19:33:52]Write to MH i2c: E2 08 00 A6 70 80 13 00 00 00 00 00 00 92 [19:33:52]Write i2c OK [19:33:52]MH_I2C_Read... [19:33:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:53]Read from MH i2c: E2 [19:33:53]MH_I2C_Read... [19:33:53]Read from MH i2c: E2 62 00 [19:33:53]MH_I2C_Read... [19:33:53]Read from MH i2c: E2 62 00 A6 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 41 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 7D 01 00 00 5E 04 04 00 7D 01 00 00 57 04 04 00 7E 01 00 00 19 04 04 00 00 00 00 00 90 00 0E [19:33:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 41 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 7D 01 00 00 5E 04 04 00 7D 01 00 00 57 04 04 00 7E 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:33:53]wFMCommunicate OK [19:33:53]SAM_PROTO_GetFieldsCounters done [19:33:53]requested_item shift.num is exist - process it [19:33:53]requested_item shift.opened is exist - process it [19:33:53]req_shift_opened [19:33:53]FM_GetShiftState [19:33:53]SAM_PROTO_GetShiftState [19:33:53]wFMCommunicate request_size=4 [19:33:53]MH_SAM_APDU [19:33:53]CAPDU: 80 13 01 00 [19:33:53]Write to MH i2c: E2 08 00 A7 70 80 13 01 00 00 00 00 00 94 [19:33:53]Write i2c OK [19:33:53]MH_I2C_Read... [19:33:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:53]Read from MH i2c: E2 [19:33:53]MH_I2C_Read... [19:33:53]Read from MH i2c: E2 0E 00 [19:33:53]MH_I2C_Read... [19:33:53]Read from MH i2c: E2 0E 00 A7 70 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 5B [19:33:53]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [19:33:53]wFMCommunicate OK [19:33:53]SAM_PROTO_GetShiftState done [19:33:53]FM_GetShiftState done [19:33:53]req_shift_opened done [19:33:53]requested_item shift.open_date is exist - process it [19:33:53]req_shift_open_date [19:33:53]req_shift_open_date done [19:33:53]produce_requested_data done [19:33:53]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228417,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [19:33:53]process_action_free close_receipt [19:33:53]json_value_free [19:33:53]json_value_free done [19:33:53]process_json_proto returns [19:33:53]Send response to host [19:33:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228417,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [19:33:53]free response buf [19:33:53]execute_script done [19:33:53]execute_script returns [19:33:53]free content buf [19:33:53]Sock 7.Close socket [19:33:53]Sock 7.Thread stoped [19:33:56]OFD Sender: No OFD packet to send [19:34:01]OFD Sender: No OFD packet to send [19:34:06]OFD Sender: No OFD packet to send [19:34:11]OFD Sender: No OFD packet to send [19:34:16]OFD Sender: No OFD packet to send [19:34:21]OFD Sender: No OFD packet to send [19:34:26]OFD Sender: No OFD packet to send [19:34:31]OFD Sender: No OFD packet to send [19:34:36]OFD Sender: No OFD packet to send [19:34:41]OFD Sender: No OFD packet to send [19:34:46]OFD Sender: No OFD packet to send [19:34:51]OFD Sender: No OFD packet to send [19:34:56]OFD Sender: No OFD packet to send [19:35:01]OFD Sender: No OFD packet to send [19:35:06]OFD Sender: No OFD packet to send [19:35:11]OFD Sender: No OFD packet to send [19:35:16]OFD Sender: No OFD packet to send [19:35:21]OFD Sender: No OFD packet to send [19:35:26]OFD Sender: No OFD packet to send [19:35:31]OFD Sender: No OFD packet to send [19:35:36]OFD Sender: No OFD packet to send [19:35:41]OFD Sender: No OFD packet to send [19:35:46]OFD Sender: No OFD packet to send [19:35:51]OFD Sender: No OFD packet to send [19:35:56]OFD Sender: No OFD packet to send [19:36:01]OFD Sender: No OFD packet to send [19:36:06]OFD Sender: No OFD packet to send [19:36:11]OFD Sender: No OFD packet to send [19:36:16]OFD Sender: No OFD packet to send [19:36:21]OFD Sender: No OFD packet to send [19:36:26]OFD Sender: No OFD packet to send [19:36:31]OFD Sender: No OFD packet to send [19:36:36]OFD Sender: No OFD packet to send [19:36:41]OFD Sender: No OFD packet to send [19:36:46]OFD Sender: No OFD packet to send [19:36:51]OFD Sender: No OFD packet to send [19:36:56]OFD Sender: No OFD packet to send [19:37:01]OFD Sender: No OFD packet to send [19:37:06]OFD Sender: No OFD packet to send [19:37:11]OFD Sender: No OFD packet to send [19:37:16]OFD Sender: No OFD packet to send [19:37:21]OFD Sender: No OFD packet to send [19:37:26]OFD Sender: No OFD packet to send [19:37:31]OFD Sender: No OFD packet to send [19:37:36]OFD Sender: No OFD packet to send [19:37:41]OFD Sender: No OFD packet to send [19:37:46]OFD Sender: No OFD packet to send [19:37:51]OFD Sender: No OFD packet to send [19:37:56]OFD Sender: No OFD packet to send [19:38:01]OFD Sender: No OFD packet to send [19:38:06]OFD Sender: No OFD packet to send [19:38:11]OFD Sender: No OFD packet to send [19:38:16]OFD Sender: No OFD packet to send [19:38:21]OFD Sender: No OFD packet to send [19:38:26]OFD Sender: No OFD packet to send [19:38:31]OFD Sender: No OFD packet to send [19:38:36]OFD Sender: No OFD packet to send [19:38:41]OFD Sender: No OFD packet to send [19:38:46]OFD Sender: No OFD packet to send [19:38:51]OFD Sender: No OFD packet to send [19:38:56]OFD Sender: No OFD packet to send [19:39:01]OFD Sender: No OFD packet to send [19:39:06]OFD Sender: No OFD packet to send [19:39:11]OFD Sender: No OFD packet to send [19:39:16]OFD Sender: No OFD packet to send [19:39:21]OFD Sender: No OFD packet to send [19:39:26]OFD Sender: No OFD packet to send [19:39:31]OFD Sender: No OFD packet to send [19:39:36]OFD Sender: No OFD packet to send [19:39:41]OFD Sender: No OFD packet to send [19:39:46]OFD Sender: No OFD packet to send [19:39:51]OFD Sender: No OFD packet to send [19:39:56]OFD Sender: No OFD packet to send [19:40:01]OFD Sender: No OFD packet to send [19:40:06]OFD Sender: No OFD packet to send [19:40:11]OFD Sender: No OFD packet to send [19:40:16]OFD Sender: No OFD packet to send [19:40:21]OFD Sender: No OFD packet to send [19:40:26]OFD Sender: No OFD packet to send [19:40:31]OFD Sender: No OFD packet to send [19:40:36]OFD Sender: No OFD packet to send [19:40:41]OFD Sender: No OFD packet to send [19:40:47]OFD Sender: No OFD packet to send [19:40:52]OFD Sender: No OFD packet to send [19:40:57]OFD Sender: No OFD packet to send [19:41:02]OFD Sender: No OFD packet to send [19:41:07]OFD Sender: No OFD packet to send [19:41:12]OFD Sender: No OFD packet to send [19:41:17]OFD Sender: No OFD packet to send [19:41:22]OFD Sender: No OFD packet to send [19:41:27]OFD Sender: No OFD packet to send [19:41:32]OFD Sender: No OFD packet to send [19:41:37]OFD Sender: No OFD packet to send [19:41:42]OFD Sender: No OFD packet to send [19:41:47]OFD Sender: No OFD packet to send [19:41:52]OFD Sender: No OFD packet to send [19:41:57]OFD Sender: No OFD packet to send [19:42:02]OFD Sender: No OFD packet to send [19:42:07]OFD Sender: No OFD packet to send [19:42:12]OFD Sender: No OFD packet to send [19:42:17]OFD Sender: No OFD packet to send [19:42:22]OFD Sender: No OFD packet to send [19:42:27]OFD Sender: No OFD packet to send [19:42:32]OFD Sender: No OFD packet to send [19:42:37]OFD Sender: No OFD packet to send [19:42:42]OFD Sender: No OFD packet to send [19:42:47]OFD Sender: No OFD packet to send [19:42:52]OFD Sender: No OFD packet to send [19:42:57]OFD Sender: No OFD packet to send [19:43:02]OFD Sender: No OFD packet to send [19:43:07]OFD Sender: No OFD packet to send [19:43:12]OFD Sender: No OFD packet to send [19:43:17]OFD Sender: No OFD packet to send [19:43:22]OFD Sender: No OFD packet to send [19:43:27]OFD Sender: No OFD packet to send [19:43:32]OFD Sender: No OFD packet to send [19:43:37]OFD Sender: No OFD packet to send [19:43:42]OFD Sender: No OFD packet to send [19:43:42]accept exits with 9 [19:43:42]New connection [19:43:42]New thread 3067137380 created [19:43:42]Thread 3066994020 joined [19:43:42]Waiting for new connection... [19:43:42] Sock 9.Parse request [19:43:42]Sock 9.Check first char [19:43:42]Sock 9.First char is OK [19:43:42]request: POST /json_proto HTTP/1.0 [19:43:42]Method: POST [19:43:42]URL: /json_proto [19:43:42]Method is POST - this is cgi request [19:43:42]url: /json_proto [19:43:42]query_string will be loaded in cgi processing [19:43:42]execute_cgi json_proto POST (null) [19:43:42]execute_cgi path=json_proto method=POST [19:43:42]POST find Content-Length [19:43:42]Host: 172.17.44.195:8080 [19:43:42]Content-Length: 674 [19:43:42]Content-Type: application/json [19:43:42] [19:43:42]POST finish read [19:43:42]Found Content-Length = 674 [19:43:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.000, "sum" : 66.90, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 66.00, "total" : 66.00, "payments": [ { "type": 0, "sum" : 66.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:43:42]execute_script... [19:43:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.000, "sum" : 66.90, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 66.00, "total" : 66.00, "payments": [ { "type": 0, "sum" : 66.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:43:42]POST & json_proto [19:43:42]process_json_proto [19:43:42]json parsed OK: [19:43:42]protocol is kg_v1.0 [19:43:42]action value=close_receipt [19:43:42]process_action close_receipt [19:43:42]cmd_close_receipt [19:43:42]MH_GetDate [19:43:42]Write to MH i2c: F0 00 00 A8 70 07 [19:43:42]Write i2c OK [19:43:42]MH_I2C_Read... [19:43:42]Read from MH i2c: F0 [19:43:42]MH_I2C_Read... [19:43:42]Read from MH i2c: F0 09 00 [19:43:42]MH_I2C_Read... [19:43:42]Read from MH i2c: F0 09 00 A8 70 00 74 00 18 67 82 C9 CF 66 83 [19:43:42]GetLastDocTimeStamp 1729625634 [19:43:42]current date 1729626228 [19:43:42]FM_GetShiftState [19:43:42]SAM_PROTO_GetShiftState [19:43:42]wFMCommunicate request_size=4 [19:43:42]MH_SAM_APDU [19:43:42]CAPDU: 80 13 01 00 [19:43:42]Write to MH i2c: E2 08 00 A9 70 80 13 01 00 00 00 00 00 96 [19:43:42]Write i2c OK [19:43:42]MH_I2C_Read... [19:43:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:42]Read from MH i2c: E2 [19:43:42]MH_I2C_Read... [19:43:42]Read from MH i2c: E2 0E 00 [19:43:42]MH_I2C_Read... [19:43:42]Read from MH i2c: E2 0E 00 A9 70 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 5D [19:43:42]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [19:43:42]wFMCommunicate OK [19:43:42]SAM_PROTO_GetShiftState done [19:43:42]FM_GetShiftState done [19:43:42]opened in 1729555538 [19:43:42]opened+sec_in_day 1729641938 [19:43:42]quantity*price = 6690 [19:43:42]sum+1 = 6691 [19:43:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.90 ИТОГО: 66.00 Внесено: 66.00 СДАЧА: 0.00 НСП 1% : 0.59 НДС 12% : 7.10 Наличными: 66.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 382 22.10.2024 19:43 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228418 ФПД: 28105520461696 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194348&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228418&fm=28105520461696&tin=02508201610067®Number=0000000000091685&sum=6600 [19:43:43]StoreToDocumentArchive [19:43:43]shift 535 fd 228418 [19:43:43]save to /storage/0535/doc_00228418 [19:43:43]save last doc name /storage/0535/doc_00228418 to /storage/kkm_last_doc_name [19:43:43]save OK [19:43:43]Clear old archive folders... [19:43:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:43:43]tlvbuf is 00A446C0 [19:43:43]SAM_PROTO_ClearQueue [19:43:43]wFMCommunicate request_size=4 [19:43:43]MH_SAM_APDU [19:43:43]CAPDU: 80 09 00 00 [19:43:43]Write to MH i2c: E2 08 00 B6 70 80 09 00 00 00 00 00 00 98 [19:43:43]Write i2c OK [19:43:43]MH_I2C_Read... [19:43:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:43:43]Read from MH i2c: E2 [19:43:43]MH_I2C_Read... [19:43:43]Read from MH i2c: E2 03 00 [19:43:43]MH_I2C_Read... [19:43:43]Read from MH i2c: E2 03 00 B6 70 00 90 00 9A [19:43:43]RAPDU: 90 00 [19:43:43]wFMCommunicate OK [19:43:43]SAM_PROTO_ClearQueue done [19:43:43]KKMCreateOFDPacket [19:43:43]OFDProtocolAddRootSTLVToBuf [19:43:43]FM_MakeSignedData [19:43:43]FM_MakeSignedData [19:43:43]SAM_PROTO_SignData [19:43:43]wFMCommunicate request_size=4 [19:43:43]MH_SAM_APDU [19:43:43]CAPDU: 80 0D 01 02 [19:43:43]Write to MH i2c: E2 08 00 B7 70 80 0D 01 02 00 00 00 00 A0 [19:43:43]Write i2c OK [19:43:43]MH_I2C_Read... [19:43:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:43:43]Read from MH i2c: E2 [19:43:43]MH_I2C_Read... [19:43:43]Read from MH i2c: E2 03 00 [19:43:43]MH_I2C_Read... [19:43:43]Read from MH i2c: E2 03 00 B7 70 00 90 00 9B [19:43:43]RAPDU: 90 00 [19:43:43]wFMCommunicate OK [19:43:43]wFMCommunicate request_size=255 [19:43:43]MH_SAM_APDU [19:43: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 E8 03 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 22 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 02 00 00 00 00 07 04 06 00 C8 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 01 00 00 F4 03 04 00 74 00 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 42 7C 03 00 35 04 06 00 19 [19:43:43]Write to MH i2c: E2 02 01 B8 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 22 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 02 00 00 00 00 07 04 06 00 C8 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 01 00 00 F4 03 04 00 74 00 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 42 7C 03 00 35 04 06 00 19 00 00 3F [19:43:43]Write i2c OK [19:43:43]MH_I2C_Read... [19:43:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:43]Read from MH i2c: E2 [19:43:43]MH_I2C_Read... [19:43:43]Read from MH i2c: E2 03 00 [19:43:43]MH_I2C_Read... [19:43:43]Read from MH i2c: E2 03 00 B8 70 00 90 00 9C [19:43:43]RAPDU: 90 00 [19:43:43]wFMCommunicate OK [19:43:43]wFMCommunicate request_size=10 [19:43:43]MH_SAM_APDU [19:43:43]CAPDU: 80 0D 02 02 05 8F D3 90 37 80 [19:43:43]Write to MH i2c: E2 0D 00 B9 70 80 0D 02 02 05 00 8F D3 90 37 80 00 00 56 [19:43:43]Write i2c OK [19:43:43]MH_I2C_Read... [19:43:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:43]Read from MH i2c: E2 [19:43:43]MH_I2C_Read... [19:43:43]Read from MH i2c: E2 03 00 [19:43:43]MH_I2C_Read... [19:43:43]Read from MH i2c: E2 03 00 B9 70 00 90 00 9D [19:43:43]RAPDU: 90 00 [19:43:43]wFMCommunicate OK [19:43:43]wFMCommunicate request_size=4 [19:43:43]MH_SAM_APDU [19:43:43]CAPDU: 80 0D 03 02 [19:43:43]Write to MH i2c: E2 08 00 BA 70 80 0D 03 02 00 00 00 00 A5 [19:43:43]Write i2c OK [19:43:43]MH_I2C_Read... [19:43:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:43:44]Read from MH i2c: E2 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: E2 0B 00 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: E2 0B 00 BA 70 00 20 14 38 BA 1C AD 2A 6F 90 00 2E [19:43:44]RAPDU: 20 14 38 BA 1C AD 2A 6F 90 00 [19:43:44]wFMCommunicate OK [19:43:44]SAM_PROTO_SignData done [19:43:44]FM_MakeSignedData done [19:43:44]CreateOFDProtocolMessage [19:43:44]wFMCommunicate request_size=4 [19:43:44]MH_SAM_APDU [19:43:44]CAPDU: 80 11 00 00 [19:43:44]Write to MH i2c: E2 08 00 BB 70 80 11 00 00 00 00 00 00 A5 [19:43:44]Write i2c OK [19:43:44]MH_I2C_Read... [19:43:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:44]Read from MH i2c: E2 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: E2 17 00 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: E2 17 00 BB 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FC [19:43:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:43:44]wFMCommunicate OK [19:43:44]CreateOFDProtocolMessage done [19:43:44]OFDSenderStorePacket 228418 [19:43:44]StoreOFDPacket docnum=228418 [19:43:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 17 E2 07 01 C7 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 E8 03 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 22 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 02 00 00 00 00 07 04 06 00 C8 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 01 00 00 F4 03 04 00 74 00 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 42 7C 03 00 35 04 06 00 19 8F D3 90 37 80 20 14 38 BA 1C AD 2A 6F [19:43:44]CheckFolder [19:43:44]dirname=/storage/ofd_packets [19:43:44]CheckFolder done [19:43:44]ProducePacketName [19:43:44]name=ofd_packets/00228418 [19:43:44]NVStorageSaveData ofd_packets/00228418 [19:43:44]File name is /storage/ofd_packets/00228418 [19:43:44]Write 301 bytes [19:43:44]NVStorageSaveData done [19:43:44]OFDSenderStorePacket done [19:43:44]KKMCreateOFDPacket done [19:43:44]NVStorageSaveData kkm_last_timestamp [19:43:44]File name is /storage/kkm_last_timestamp [19:43:44]Write 4 bytes [19:43:44]NVStorageSaveData done [19:43:44]OFD Sender: Processing packet 228418 [packets to send 38, broken 37] [19:43:44]ProducePacketName [19:43:44]name=ofd_packets/00228418 [19:43:44]OFD Sender: To server: pG, [19:43:44]CommunicateWithHost lk.salyk.kg:30040 [19:43:44]ConnectInit lk.salyk.kg [19:43:44]ExternCall_PrintAddStr [19:43:44]wPrintStart [19:43:44]Write to MH i2c: 01 00 00 BC 70 2C [19:43:44]Write i2c OK [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: 01 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: 01 07 00 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: 01 07 00 BC 70 00 00 00 00 00 FF 0F 41 [19:43:44]RasterBufferAndPrint [19:43:44]line Счет N : (1)1964992 [19:43:44]line ИНН: 02508201610067 [19:43:44]line Контрольно-Кассовый Чек [19:43:44]line ПРОДАЖА [19:43:44]line ТРК (МРК, ГНК) : 33 [19:43:44]line Товар: 2710124130 [19:43:44]line Аи-92-К-5 [19:43:44]line 1.000 * 66.90 [19:43:44]line = 66.90 [19:43:44]line НДС 12% НСП 1% [19:43:44]line > о реализуемом товаре [19:43:44]line ОКРУГЛЕНИЕ: -0.90 [19:43:44]line ИТОГО: 66.00 [19:43:44]line Внесено: 66.00 [19:43:44]line СДАЧА: 0.00 [19:43:44]line НСП 1% : 0.59 [19:43:44]line НДС 12% : 7.10 [19:43:44]line Наличными: 66.00 [19:43:44]line Безнал.: 0.00 [19:43:44]line Место: АЗС № 133 "Партнер Нефть" [19:43:44]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:43:44]line СНО: Общий режим [19:43:44]line Чек 382 22.10.2024 19:43 [19:43:44]line Смена: 535 ФФД: 1.0 [19:43:44]line ЗНМ: 0300000091 [19:43:44]line РНМ: 0000000000091685 [19:43:44]line Версия ККМ: 001 [19:43:44]line ФМ: 0000000000871839 [19:43:44]line ФД: 228418 [19:43:44]line ФПД: 28105520461696 [19:43:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194348&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228418&fm=28105520461696&tin=02508201610067®Number=0000000000091685&sum=6600 [19:43:44]Connected sock=11 [19:43:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 17 E2 07 01 C7 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 E8 03 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 22 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 02 00 00 00 00 07 04 06 00 C8 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 01 00 00 F4 03 04 00 74 00 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 42 7C 03 00 35 04 06 00 19 8F D3 90 37 80 20 14 38 BA 1C AD 2A 6F [19:43:44]written 0, free lines is 4095 [19:43:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 63 2D 47 00 77 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 42 7C 03 00 F4 03 04 00 6B AB 17 67 B6 04 01 00 00 88 1F E6 AE 00 3C 93 D6 [19:43:44]CommunicateWithHost err = 0 [19:43:44]CheckOFDResponse [19:43:44]1017 (14) - 77093643461234 [19:43:44]1041 (16) - 0000000000871839 [19:43:44]1040 (4) - 228418 [19:43:44]1012 (4) - 22.10.2024 13:40 [19:43:44]1206 (1) - 0 [19:43:44]OFD Sender: Remove packet 228418 [19:43:44]ProducePacketName [19:43:44]name=ofd_packets/00228418 [19:43:44]NVStorageDeleteData [19:43:44]Write to MH i2c: 01 00 00 E6 70 56 [19:43:44]Write i2c OK [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: 01 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: 01 07 00 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: 01 07 00 E6 70 00 00 00 00 00 A3 0C 0C [19:43:44]RasterBufferAndPrint [19:43:44]line [19:43:44]line [19:43:44]line [19:43:44]line [19:43:44]line [19:43:44]written 0, free lines is 3240 [19:43:44]MH_Cut [19:43:44]Write to MH i2c: D1 01 00 ED 70 01 2F [19:43:44]Write i2c OK [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: D1 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: D1 01 00 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: D1 01 00 ED 70 00 2E [19:43:44]Write to MH i2c: 01 00 00 EE 70 5E [19:43:44]Write i2c OK [19:43:44]MH_I2C_Read... [19:43:45]OFD Sender: No OFD packet to send [19:43:45]*** Cut start [19:43:45]*** Partial cut [19:43:45]*** CUTSNS_PIN = 1 [19:43:45]*** CUTSNS_PIN = 0 [19:43:46]*** Brake cut motor [19:43:46]Read from MH i2c: 01 [19:43:46]MH_I2C_Read... [19:43:46]*** Stop cut motor [19:43:46]*** Cut end [19:43:46]Read from MH i2c: 01 07 00 [19:43:46]MH_I2C_Read... [19:43:46]Read from MH i2c: 01 07 00 EE 70 00 00 00 00 00 FF 0F 73 [19:43:46]process_action close_receipt done [19:43:46]requested_data is exist [19:43:46]produce_requested_data [19:43:46]requested_item fm.sn is exist - process it [19:43:46]wFMCommunicate request_size=4 [19:43:46]MH_SAM_APDU [19:43:46]CAPDU: 80 11 00 00 [19:43:46]Write to MH i2c: E2 08 00 EF 70 80 11 00 00 00 00 00 00 D9 [19:43:46]Write i2c OK [19:43:46]MH_I2C_Read... [19:43:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:46]Read from MH i2c: E2 [19:43:46]MH_I2C_Read... [19:43:46]Read from MH i2c: E2 17 00 [19:43:46]MH_I2C_Read... [19:43:46]Read from MH i2c: E2 17 00 EF 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 30 [19:43:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:43:46]wFMCommunicate OK [19:43:46]requested_item fd.num is exist - process it [19:43:46]SAM_PROTO_GetFieldsCounters [19:43:46]wFMCommunicate request_size=4 [19:43:46]MH_SAM_APDU [19:43:46]CAPDU: 80 13 00 00 [19:43:46]Write to MH i2c: E2 08 00 F0 70 80 13 00 00 00 00 00 00 DC [19:43:46]Write i2c OK [19:43:46]MH_I2C_Read... [19:43:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:43:46]Read from MH i2c: E2 [19:43:46]MH_I2C_Read... [19:43:46]Read from MH i2c: E2 62 00 [19:43:46]MH_I2C_Read... [19:43:46]Read from MH i2c: E2 62 00 F0 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 42 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 7E 01 00 00 5E 04 04 00 7E 01 00 00 57 04 04 00 7F 01 00 00 19 04 04 00 00 00 00 00 90 00 5C [19:43:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 42 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 7E 01 00 00 5E 04 04 00 7E 01 00 00 57 04 04 00 7F 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:43:46]wFMCommunicate OK [19:43:46]SAM_PROTO_GetFieldsCounters done [19:43:46]requested_item shift.num is exist - process it [19:43:46]requested_item shift.opened is exist - process it [19:43:46]req_shift_opened [19:43:46]FM_GetShiftState [19:43:46]SAM_PROTO_GetShiftState [19:43:46]wFMCommunicate request_size=4 [19:43:46]MH_SAM_APDU [19:43:46]CAPDU: 80 13 01 00 [19:43:46]Write to MH i2c: E2 08 00 F1 70 80 13 01 00 00 00 00 00 DE [19:43:46]Write i2c OK [19:43:46]MH_I2C_Read... [19:43:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:46]Read from MH i2c: E2 [19:43:46]MH_I2C_Read... [19:43:46]Read from MH i2c: E2 0E 00 [19:43:46]MH_I2C_Read... [19:43:46]Read from MH i2c: E2 0E 00 F1 70 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 A5 [19:43:46]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [19:43:46]wFMCommunicate OK [19:43:46]SAM_PROTO_GetShiftState done [19:43:46]FM_GetShiftState done [19:43:46]req_shift_opened done [19:43:46]requested_item shift.open_date is exist - process it [19:43:46]req_shift_open_date [19:43:46]req_shift_open_date done [19:43:46]produce_requested_data done [19:43:46]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228418,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [19:43:46]process_action_free close_receipt [19:43:46]json_value_free [19:43:46]json_value_free done [19:43:46]process_json_proto returns [19:43:46]Send response to host [19:43:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228418,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [19:43:46]free response buf [19:43:46]execute_script done [19:43:46]execute_script returns [19:43:46]free content buf [19:43:46]Sock 9.Close socket [19:43:46]Sock 9.Thread stoped [19:43:50]OFD Sender: No OFD packet to send [19:43:55]OFD Sender: No OFD packet to send [19:44:00]OFD Sender: No OFD packet to send [19:44:05]OFD Sender: No OFD packet to send [19:44:10]OFD Sender: No OFD packet to send [19:44:15]OFD Sender: No OFD packet to send [19:44:20]OFD Sender: No OFD packet to send [19:44:25]OFD Sender: No OFD packet to send [19:44:30]OFD Sender: No OFD packet to send [19:44:35]OFD Sender: No OFD packet to send [19:44:40]OFD Sender: No OFD packet to send [19:44:45]OFD Sender: No OFD packet to send [19:44:50]OFD Sender: No OFD packet to send [19:44:55]OFD Sender: No OFD packet to send [19:45:00]OFD Sender: No OFD packet to send [19:45:05]OFD Sender: No OFD packet to send [19:45:08]accept exits with 7 [19:45:08]New connection [19:45:08]New thread 3066994020 created [19:45:08]Thread 3067137380 joined [19:45:08]Waiting for new connection... [19:45:08] Sock 7.Parse request [19:45:08]Sock 7.Check first char [19:45:08]Sock 7.First char is OK [19:45:08]request: POST /json_proto HTTP/1.0 [19:45:08]Method: POST [19:45:08]URL: /json_proto [19:45:08]Method is POST - this is cgi request [19:45:08]url: /json_proto [19:45:08]query_string will be loaded in cgi processing [19:45:08]execute_cgi json_proto POST (null) [19:45:08]execute_cgi path=json_proto method=POST [19:45:08]POST find Content-Length [19:45:08]Host: 172.17.44.195:8080 [19:45:08]Content-Length: 659 [19:45:08]Content-Type: application/json [19:45:08] [19:45:08]POST finish read [19:45:08]Found Content-Length = 659 [19:45:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 5.850, "sum" : 400.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:45:08]execute_script... [19:45: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)1964994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 5.850, "sum" : 400.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:45:08]POST & json_proto [19:45:08]process_json_proto [19:45:08]json parsed OK: [19:45:08]protocol is kg_v1.0 [19:45:08]action value=close_receipt [19:45:08]process_action close_receipt [19:45:08]cmd_close_receipt [19:45:08]MH_GetDate [19:45:08]Write to MH i2c: F0 00 00 F2 70 51 [19:45:08]Write i2c OK [19:45:08]MH_I2C_Read... [19:45:08]Read from MH i2c: F0 [19:45:08]MH_I2C_Read... [19:45:08]Read from MH i2c: F0 09 00 [19:45:08]MH_I2C_Read... [19:45:08]Read from MH i2c: F0 09 00 F2 70 00 CA 00 18 67 82 C9 CF 66 23 [19:45:08]GetLastDocTimeStamp 1729626228 [19:45:08]current date 1729626314 [19:45:08]FM_GetShiftState [19:45:08]SAM_PROTO_GetShiftState [19:45:08]wFMCommunicate request_size=4 [19:45:08]MH_SAM_APDU [19:45:08]CAPDU: 80 13 01 00 [19:45:08]Write to MH i2c: E2 08 00 F3 70 80 13 01 00 00 00 00 00 E0 [19:45:08]Write i2c OK [19:45:08]MH_I2C_Read... [19:45:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:08]Read from MH i2c: E2 [19:45:08]MH_I2C_Read... [19:45:08]Read from MH i2c: E2 0E 00 [19:45:08]MH_I2C_Read... [19:45:08]Read from MH i2c: E2 0E 00 F3 70 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 A7 [19:45:08]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [19:45:08]wFMCommunicate OK [19:45:08]SAM_PROTO_GetShiftState done [19:45:08]FM_GetShiftState done [19:45:08]opened in 1729555538 [19:45:08]opened+sec_in_day 1729641938 [19:45:08]quantity*price = 40014 [19:45:08]sum+1 = 40015 [19:45:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.49 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 383 22.10.2024 19:45 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228419 ФПД: 146899822991637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194514&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228419&fm=146899822991637&tin=02508201610067®Number=0000000000091685&sum=40000 [19:45:10]StoreToDocumentArchive [19:45:10]shift 535 fd 228419 [19:45:10]save to /storage/0535/doc_00228419 [19:45:10]save last doc name /storage/0535/doc_00228419 to /storage/kkm_last_doc_name [19:45:10]save OK [19:45:10]Clear old archive folders... [19:45:10]ProcessDocumentItem done err = 0, tmpTLVsize=244 [19:45:10]tlvbuf is 00A85BB0 [19:45:10]SAM_PROTO_ClearQueue [19:45:10]wFMCommunicate request_size=4 [19:45:10]MH_SAM_APDU [19:45:10]CAPDU: 80 09 00 00 [19:45:10]Write to MH i2c: E2 08 00 00 71 80 09 00 00 00 00 00 00 E3 [19:45:10]Write i2c OK [19:45:10]MH_I2C_Read... [19:45:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:45:10]Read from MH i2c: E2 [19:45:10]MH_I2C_Read... [19:45:10]Read from MH i2c: E2 03 00 [19:45:10]MH_I2C_Read... [19:45:10]Read from MH i2c: E2 03 00 00 71 00 90 00 E5 [19:45:10]RAPDU: 90 00 [19:45:10]wFMCommunicate OK [19:45:10]SAM_PROTO_ClearQueue done [19:45:10]KKMCreateOFDPacket [19:45:10]OFDProtocolAddRootSTLVToBuf [19:45:10]FM_MakeSignedData [19:45:10]FM_MakeSignedData [19:45:10]SAM_PROTO_SignData [19:45:10]wFMCommunicate request_size=4 [19:45:10]MH_SAM_APDU [19:45:10]CAPDU: 80 0D 01 02 [19:45:10]Write to MH i2c: E2 08 00 01 71 80 0D 01 02 00 00 00 00 EB [19:45:10]Write i2c OK [19:45:10]MH_I2C_Read... [19:45:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:45:10]Read from MH i2c: E2 [19:45:10]MH_I2C_Read... [19:45:10]Read from MH i2c: E2 03 00 [19:45:10]MH_I2C_Read... [19:45:10]Read from MH i2c: E2 03 00 01 71 00 90 00 E6 [19:45:10]RAPDU: 90 00 [19:45:10]wFMCommunicate OK [19:45:10]wFMCommunicate request_size=253 [19:45:10]MH_SAM_APDU [19:45:10]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 7F 01 00 00 F4 03 04 00 CA 00 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 43 7C 03 00 35 04 06 00 85 9A C7 C4 59 15 [19:45:10]Write to MH i2c: E2 00 01 02 71 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 7F 01 00 00 F4 03 04 00 CA 00 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 43 7C 03 00 35 04 06 00 85 9A C7 C4 59 15 00 00 D7 [19:45:10]Write i2c OK [19:45:10]MH_I2C_Read... [19:45:10]OFD Sender: No OFD packet to send [19:45:10]Read from MH i2c: E2 [19:45:10]MH_I2C_Read... [19:45:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:10]Read from MH i2c: E2 03 00 [19:45:10]MH_I2C_Read... [19:45:10]Read from MH i2c: E2 03 00 02 71 00 90 00 E7 [19:45:10]RAPDU: 90 00 [19:45:10]wFMCommunicate OK [19:45:10]wFMCommunicate request_size=4 [19:45:10]MH_SAM_APDU [19:45:10]CAPDU: 80 0D 03 02 [19:45:10]Write to MH i2c: E2 08 00 03 71 80 0D 03 02 00 00 00 00 EF [19:45:10]Write i2c OK [19:45:10]MH_I2C_Read... [19:45:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:45:10]Read from MH i2c: E2 [19:45:10]MH_I2C_Read... [19:45:10]Read from MH i2c: E2 0B 00 [19:45:10]MH_I2C_Read... [19:45:10]Read from MH i2c: E2 0B 00 03 71 00 6C 50 9A 31 2C 44 A1 3E 90 00 C6 [19:45:10]RAPDU: 6C 50 9A 31 2C 44 A1 3E 90 00 [19:45:10]wFMCommunicate OK [19:45:10]SAM_PROTO_SignData done [19:45:10]FM_MakeSignedData done [19:45:10]CreateOFDProtocolMessage [19:45:10]wFMCommunicate request_size=4 [19:45:10]MH_SAM_APDU [19:45:10]CAPDU: 80 11 00 00 [19:45:10]Write to MH i2c: E2 08 00 04 71 80 11 00 00 00 00 00 00 EF [19:45:10]Write i2c OK [19:45:10]MH_I2C_Read... [19:45:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:10]Read from MH i2c: E2 [19:45:10]MH_I2C_Read... [19:45:10]Read from MH i2c: E2 17 00 [19:45:10]MH_I2C_Read... [19:45:10]Read from MH i2c: E2 17 00 04 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 46 [19:45:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:45:10]wFMCommunicate OK [19:45:10]CreateOFDProtocolMessage done [19:45:10]OFDSenderStorePacket 228419 [19:45:10]StoreOFDPacket docnum=228419 [19:45:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 C3 4A 00 01 B1 C7 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 7F 01 00 00 F4 03 04 00 CA 00 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 43 7C 03 00 35 04 06 00 85 9A C7 C4 59 15 6C 50 9A 31 2C 44 A1 3E [19:45:10]CheckFolder [19:45:10]dirname=/storage/ofd_packets [19:45:10]CheckFolder done [19:45:10]ProducePacketName [19:45:10]name=ofd_packets/00228419 [19:45:10]NVStorageSaveData ofd_packets/00228419 [19:45:10]File name is /storage/ofd_packets/00228419 [19:45:10]Write 294 bytes [19:45:10]NVStorageSaveData done [19:45:10]OFDSenderStorePacket done [19:45:10]KKMCreateOFDPacket done [19:45:10]NVStorageSaveData kkm_last_timestamp [19:45:10]File name is /storage/kkm_last_timestamp [19:45:10]Write 4 bytes [19:45:10]NVStorageSaveData done [19:45:10]ExternCall_PrintAddStr [19:45:10]wPrintStart [19:45:10]Write to MH i2c: 01 00 00 05 71 76 [19:45:10]Write i2c OK [19:45:10]MH_I2C_Read... [19:45:10]Read from MH i2c: 01 [19:45:10]MH_I2C_Read... [19:45:10]Read from MH i2c: 01 07 00 [19:45:10]MH_I2C_Read... [19:45:10]Read from MH i2c: 01 07 00 05 71 00 00 00 00 00 FF 0F 8B [19:45:10]RasterBufferAndPrint [19:45:10]line Счет N : (1)1964994 [19:45:10]line ИНН: 02508201610067 [19:45:10]line Контрольно-Кассовый Чек [19:45:10]line ПРОДАЖА [19:45:10]line ТРК (МРК, ГНК) : 62 [19:45:10]line Товар: 2710124130 [19:45:10]line SU-92 [19:45:10]line 5.850 * 68.40 [19:45:10]line = 400.14 [19:45:10]line НДС 12% НСП 1% [19:45:10]line > о реализуемом товаре [19:45:10]line ОКРУГЛЕНИЕ: -0.14 [19:45:10]line ИТОГО: 400.00 [19:45:10]line Внесено: 400.00 [19:45:10]line СДАЧА: 0.00 [19:45:10]line НСП 1% : 3.54 [19:45:10]line НДС 12% : 42.49 [19:45:10]line Наличными: 400.00 [19:45:10]line Безнал.: 0.00 [19:45:10]line Место: АЗС № 133 "Партнер Нефть" [19:45:10]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:45:10]line СНО: Общий режим [19:45:10]line Чек 383 22.10.2024 19:45 [19:45:10]line Смена: 535 ФФД: 1.0 [19:45:10]line ЗНМ: 0300000091 [19:45:10]line РНМ: 0000000000091685 [19:45:10]line Версия ККМ: 001 [19:45:10]line ФМ: 0000000000871839 [19:45:10]line ФД: 228419 [19:45:10]line ФПД: 146899822991637 [19:45:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194514&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228419&fm=146899822991637&tin=02508201610067®Number=0000000000091685&sum=40000 [19:45:10]written 0, free lines is 4095 [19:45:10]OFD Sender: Processing packet 228419 [packets to send 38, broken 37] [19:45:10]ProducePacketName [19:45:10]name=ofd_packets/00228419 [19:45:10]OFD Sender: To server: pG, [19:45:10]CommunicateWithHost lk.salyk.kg:30040 [19:45:10]ConnectInit lk.salyk.kg [19:45:10]Connected sock=10 [19:45:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 C3 4A 00 01 B1 C7 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 7F 01 00 00 F4 03 04 00 CA 00 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 43 7C 03 00 35 04 06 00 85 9A C7 C4 59 15 6C 50 9A 31 2C 44 A1 3E [19:45:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 0A DD 47 00 2D 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 43 7C 03 00 F4 03 04 00 C1 AB 17 67 B6 04 01 00 00 D3 6D A6 B1 17 3D 34 64 [19:45:10]CommunicateWithHost err = 0 [19:45:10]CheckOFDResponse [19:45:10]1017 (14) - 77093643461234 [19:45:10]1041 (16) - 0000000000871839 [19:45:10]1040 (4) - 228419 [19:45:10]1012 (4) - 22.10.2024 13:42 [19:45:10]1206 (1) - 0 [19:45:10]OFD Sender: Remove packet 228419 [19:45:10]ProducePacketName [19:45:10]name=ofd_packets/00228419 [19:45:10]NVStorageDeleteData [19:45:11]Write to MH i2c: 01 00 00 2F 71 A0 [19:45:11]Write i2c OK [19:45:11]MH_I2C_Read... [19:45:11]Read from MH i2c: 01 [19:45:11]MH_I2C_Read... [19:45:11]Read from MH i2c: 01 07 00 [19:45:11]MH_I2C_Read... [19:45:11]Read from MH i2c: 01 07 00 2F 71 00 00 00 00 00 A7 0C 5A [19:45:11]RasterBufferAndPrint [19:45:11]line [19:45:11]line [19:45:11]line [19:45:11]line [19:45:11]line [19:45:11]written 0, free lines is 3242 [19:45:11]MH_Cut [19:45:11]Write to MH i2c: D1 01 00 36 71 01 79 [19:45:11]Write i2c OK [19:45:11]MH_I2C_Read... [19:45:11]Read from MH i2c: D1 [19:45:11]MH_I2C_Read... [19:45:11]Read from MH i2c: D1 01 00 [19:45:11]MH_I2C_Read... [19:45:11]Read from MH i2c: D1 01 00 36 71 00 78 [19:45:11]Write to MH i2c: 01 00 00 37 71 A8 [19:45:11]Write i2c OK [19:45:11]MH_I2C_Read... [19:45:11]OFD Sender: No OFD packet to send [19:45:11]*** Cut start [19:45:11]*** Partial cut [19:45:11]*** CUTSNS_PIN = 1 [19:45:12]*** CUTSNS_PIN = 0 [19:45:12]*** Brake cut motor [19:45:12]Read from MH i2c: 01 [19:45:12]MH_I2C_Read... [19:45:12]*** Stop cut motor [19:45:12]*** Cut end [19:45:12]Read from MH i2c: 01 07 00 [19:45:12]MH_I2C_Read... [19:45:12]Read from MH i2c: 01 07 00 37 71 00 00 00 00 00 FF 0F BD [19:45:12]process_action close_receipt done [19:45:12]requested_data is exist [19:45:12]produce_requested_data [19:45:12]requested_item fm.sn is exist - process it [19:45:12]wFMCommunicate request_size=4 [19:45:12]MH_SAM_APDU [19:45:12]CAPDU: 80 11 00 00 [19:45:12]Write to MH i2c: E2 08 00 38 71 80 11 00 00 00 00 00 00 23 [19:45:12]Write i2c OK [19:45:12]MH_I2C_Read... [19:45:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:12]Read from MH i2c: E2 [19:45:12]MH_I2C_Read... [19:45:12]Read from MH i2c: E2 17 00 [19:45:12]MH_I2C_Read... [19:45:12]Read from MH i2c: E2 17 00 38 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7A [19:45:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:45:12]wFMCommunicate OK [19:45:12]requested_item fd.num is exist - process it [19:45:12]SAM_PROTO_GetFieldsCounters [19:45:12]wFMCommunicate request_size=4 [19:45:12]MH_SAM_APDU [19:45:12]CAPDU: 80 13 00 00 [19:45:12]Write to MH i2c: E2 08 00 39 71 80 13 00 00 00 00 00 00 26 [19:45:12]Write i2c OK [19:45:12]MH_I2C_Read... [19:45:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:45:12]Read from MH i2c: E2 [19:45:12]MH_I2C_Read... [19:45:12]Read from MH i2c: E2 62 00 [19:45:12]MH_I2C_Read... [19:45:12]Read from MH i2c: E2 62 00 39 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 43 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 7F 01 00 00 5E 04 04 00 7F 01 00 00 57 04 04 00 80 01 00 00 19 04 04 00 00 00 00 00 90 00 AA [19:45:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 43 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 7F 01 00 00 5E 04 04 00 7F 01 00 00 57 04 04 00 80 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:45:12]wFMCommunicate OK [19:45:12]SAM_PROTO_GetFieldsCounters done [19:45:12]requested_item shift.num is exist - process it [19:45:12]requested_item shift.opened is exist - process it [19:45:12]req_shift_opened [19:45:12]FM_GetShiftState [19:45:12]SAM_PROTO_GetShiftState [19:45:12]wFMCommunicate request_size=4 [19:45:12]MH_SAM_APDU [19:45:12]CAPDU: 80 13 01 00 [19:45:12]Write to MH i2c: E2 08 00 3A 71 80 13 01 00 00 00 00 00 28 [19:45:12]Write i2c OK [19:45:12]MH_I2C_Read... [19:45:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:12]Read from MH i2c: E2 [19:45:12]MH_I2C_Read... [19:45:12]Read from MH i2c: E2 0E 00 [19:45:12]MH_I2C_Read... [19:45:12]Read from MH i2c: E2 0E 00 3A 71 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 EF [19:45:12]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [19:45:12]wFMCommunicate OK [19:45:12]SAM_PROTO_GetShiftState done [19:45:12]FM_GetShiftState done [19:45:12]req_shift_opened done [19:45:12]requested_item shift.open_date is exist - process it [19:45:12]req_shift_open_date [19:45:12]req_shift_open_date done [19:45:12]produce_requested_data done [19:45:12]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228419,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [19:45:12]process_action_free close_receipt [19:45:12]json_value_free [19:45:12]json_value_free done [19:45:12]process_json_proto returns [19:45:12]Send response to host [19:45:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228419,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [19:45:12]free response buf [19:45:12]execute_script done [19:45:12]execute_script returns [19:45:12]free content buf [19:45:12]Sock 7.Close socket [19:45:12]Sock 7.Thread stoped [19:45:13]accept exits with 9 [19:45:13]New connection [19:45:13]New thread 3067137380 created [19:45:13]Thread 3066994020 joined [19:45:13]Waiting for new connection... [19:45:13] Sock 9.Parse request [19:45:13]Sock 9.Check first char [19:45:13]Sock 9.First char is OK [19:45:13]request: POST /json_proto HTTP/1.0 [19:45:13]Method: POST [19:45:13]URL: /json_proto [19:45:13]Method is POST - this is cgi request [19:45:13]url: /json_proto [19:45:13]query_string will be loaded in cgi processing [19:45:13]execute_cgi json_proto POST (null) [19:45:13]execute_cgi path=json_proto method=POST [19:45:13]POST find Content-Length [19:45:13]Host: 172.17.44.195:8080 [19:45:13]Content-Length: 678 [19:45:13]Content-Type: application/json [19:45:13] [19:45:13]POST finish read [19:45:13]Found Content-Length = 678 [19:45:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1964993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "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" ] } } [19:45:13]execute_script... [19:45: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)1964993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "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" ] } } [19:45:13]POST & json_proto [19:45:13]process_json_proto [19:45:13]json parsed OK: [19:45:13]protocol is kg_v1.0 [19:45:13]action value=close_receipt [19:45:13]process_action close_receipt [19:45:13]cmd_close_receipt [19:45:13]MH_GetDate [19:45:13]Write to MH i2c: F0 00 00 3B 71 9B [19:45:13]Write i2c OK [19:45:13]MH_I2C_Read... [19:45:13]Read from MH i2c: F0 [19:45:13]MH_I2C_Read... [19:45:13]Read from MH i2c: F0 09 00 [19:45:13]MH_I2C_Read... [19:45:13]Read from MH i2c: F0 09 00 3B 71 00 CE 00 18 67 82 C9 CF 66 71 [19:45:13]GetLastDocTimeStamp 1729626314 [19:45:13]current date 1729626318 [19:45:13]FM_GetShiftState [19:45:13]SAM_PROTO_GetShiftState [19:45:13]wFMCommunicate request_size=4 [19:45:13]MH_SAM_APDU [19:45:13]CAPDU: 80 13 01 00 [19:45:13]Write to MH i2c: E2 08 00 3C 71 80 13 01 00 00 00 00 00 2A [19:45:13]Write i2c OK [19:45:13]MH_I2C_Read... [19:45:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:13]Read from MH i2c: E2 [19:45:13]MH_I2C_Read... [19:45:13]Read from MH i2c: E2 0E 00 [19:45:13]MH_I2C_Read... [19:45:13]Read from MH i2c: E2 0E 00 3C 71 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 F1 [19:45:13]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [19:45:13]wFMCommunicate OK [19:45:13]SAM_PROTO_GetShiftState done [19:45:13]FM_GetShiftState done [19:45:13]opened in 1729555538 [19:45:13]opened+sec_in_day 1729641938 [19:45:13]quantity*price = 30038 [19:45:13]sum+1 = 30039 [19:45:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 384 22.10.2024 19:45 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228420 ФПД: 216332169031421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194518&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228420&fm=216332169031421&tin=02508201610067®Number=0000000000091685&sum=30000 [19:45:14]StoreToDocumentArchive [19:45:14]shift 535 fd 228420 [19:45:14]save to /storage/0535/doc_00228420 [19:45:14]save last doc name /storage/0535/doc_00228420 to /storage/kkm_last_doc_name [19:45:14]save OK [19:45:14]Clear old archive folders... [19:45:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:45:14]tlvbuf is 00AAFEE0 [19:45:14]SAM_PROTO_ClearQueue [19:45:14]wFMCommunicate request_size=4 [19:45:14]MH_SAM_APDU [19:45:14]CAPDU: 80 09 00 00 [19:45:14]Write to MH i2c: E2 08 00 49 71 80 09 00 00 00 00 00 00 2C [19:45:14]Write i2c OK [19:45:14]MH_I2C_Read... [19:45:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:45:14]Read from MH i2c: E2 [19:45:14]MH_I2C_Read... [19:45:14]Read from MH i2c: E2 03 00 [19:45:14]MH_I2C_Read... [19:45:14]Read from MH i2c: E2 03 00 49 71 00 90 00 2E [19:45:14]RAPDU: 90 00 [19:45:14]wFMCommunicate OK [19:45:14]SAM_PROTO_ClearQueue done [19:45:14]KKMCreateOFDPacket [19:45:14]OFDProtocolAddRootSTLVToBuf [19:45:14]FM_MakeSignedData [19:45:14]FM_MakeSignedData [19:45:14]SAM_PROTO_SignData [19:45:14]wFMCommunicate request_size=4 [19:45:14]MH_SAM_APDU [19:45:14]CAPDU: 80 0D 01 02 [19:45:14]Write to MH i2c: E2 08 00 4A 71 80 0D 01 02 00 00 00 00 34 [19:45:14]Write i2c OK [19:45:14]MH_I2C_Read... [19:45:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:45:14]Read from MH i2c: E2 [19:45:14]MH_I2C_Read... [19:45:14]Read from MH i2c: E2 03 00 [19:45:14]MH_I2C_Read... [19:45:14]Read from MH i2c: E2 03 00 4A 71 00 90 00 2F [19:45:14]RAPDU: 90 00 [19:45:14]wFMCommunicate OK [19:45:14]wFMCommunicate request_size=255 [19:45:14]MH_SAM_APDU [19:45:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 80 01 00 00 F4 03 04 00 CE 00 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 44 7C 03 00 35 04 06 00 C4 [19:45:14]Write to MH i2c: E2 02 01 4B 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 11 00 00 00 00 00 37 04 06 00 22 1A 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 80 01 00 00 F4 03 04 00 CE 00 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 44 7C 03 00 35 04 06 00 C4 00 00 2D [19:45:14]Write i2c OK [19:45:14]MH_I2C_Read... [19:45:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:15]Read from MH i2c: E2 [19:45:15]MH_I2C_Read... [19:45:15]Read from MH i2c: E2 03 00 [19:45:15]MH_I2C_Read... [19:45:15]Read from MH i2c: E2 03 00 4B 71 00 90 00 30 [19:45:15]RAPDU: 90 00 [19:45:15]wFMCommunicate OK [19:45:15]wFMCommunicate request_size=10 [19:45:15]MH_SAM_APDU [19:45:15]CAPDU: 80 0D 02 02 05 C0 C2 16 AE FD [19:45:15]Write to MH i2c: E2 0D 00 4C 71 80 0D 02 02 05 00 C0 C2 16 AE FD 00 00 84 [19:45:15]Write i2c OK [19:45:15]MH_I2C_Read... [19:45:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:15]Read from MH i2c: E2 [19:45:15]MH_I2C_Read... [19:45:15]Read from MH i2c: E2 03 00 [19:45:15]MH_I2C_Read... [19:45:15]Read from MH i2c: E2 03 00 4C 71 00 90 00 31 [19:45:15]RAPDU: 90 00 [19:45:15]wFMCommunicate OK [19:45:15]wFMCommunicate request_size=4 [19:45:15]MH_SAM_APDU [19:45:15]CAPDU: 80 0D 03 02 [19:45:15]Write to MH i2c: E2 08 00 4D 71 80 0D 03 02 00 00 00 00 39 [19:45:15]Write i2c OK [19:45:15]MH_I2C_Read... [19:45:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:45:15]Read from MH i2c: E2 [19:45:15]MH_I2C_Read... [19:45:15]Read from MH i2c: E2 0B 00 [19:45:15]MH_I2C_Read... [19:45:15]Read from MH i2c: E2 0B 00 4D 71 00 76 1E 6F 8C FC 40 38 64 90 00 A1 [19:45:15]RAPDU: 76 1E 6F 8C FC 40 38 64 90 00 [19:45:15]wFMCommunicate OK [19:45:15]SAM_PROTO_SignData done [19:45:15]FM_MakeSignedData done [19:45:15]CreateOFDProtocolMessage [19:45:15]wFMCommunicate request_size=4 [19:45:15]MH_SAM_APDU [19:45:15]CAPDU: 80 11 00 00 [19:45:15]Write to MH i2c: E2 08 00 4E 71 80 11 00 00 00 00 00 00 39 [19:45:15]Write i2c OK [19:45:15]MH_I2C_Read... [19:45:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:15]Read from MH i2c: E2 [19:45:15]MH_I2C_Read... [19:45:15]Read from MH i2c: E2 17 00 [19:45:15]MH_I2C_Read... [19:45:15]Read from MH i2c: E2 17 00 4E 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 90 [19:45:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:45:15]wFMCommunicate OK [19:45:15]CreateOFDProtocolMessage done [19:45:15]OFDSenderStorePacket 228420 [19:45:15]StoreOFDPacket docnum=228420 [19:45:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 1E 81 07 01 EC 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 80 01 00 00 F4 03 04 00 CE 00 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 44 7C 03 00 35 04 06 00 C4 C0 C2 16 AE FD 76 1E 6F 8C FC 40 38 64 [19:45:15]CheckFolder [19:45:15]dirname=/storage/ofd_packets [19:45:15]CheckFolder done [19:45:15]ProducePacketName [19:45:15]name=ofd_packets/00228420 [19:45:15]NVStorageSaveData ofd_packets/00228420 [19:45:15]File name is /storage/ofd_packets/00228420 [19:45:15]Write 301 bytes [19:45:15]NVStorageSaveData done [19:45:15]OFDSenderStorePacket done [19:45:15]KKMCreateOFDPacket done [19:45:15]NVStorageSaveData kkm_last_timestamp [19:45:15]File name is /storage/kkm_last_timestamp [19:45:15]Write 4 bytes [19:45:15]NVStorageSaveData done [19:45:15]ExternCall_PrintAddStr [19:45:15]wPrintStart [19:45:15]Write to MH i2c: 01 00 00 4F 71 C0 [19:45:15]Write i2c OK [19:45:15]MH_I2C_Read... [19:45:15]OFD Sender: Processing packet 228420 [packets to send 38, broken 37] [19:45:15]ProducePacketName [19:45:15]name=ofd_packets/00228420 [19:45:15]OFD Sender: To server: pG, [19:45:15]CommunicateWithHost lk.salyk.kg:30040 [19:45:15]ConnectInit lk.salyk.kg [19:45:15]Read from MH i2c: 01 [19:45:15]MH_I2C_Read... [19:45:15]Read from MH i2c: 01 07 00 [19:45:15]MH_I2C_Read... [19:45:15]Read from MH i2c: 01 07 00 4F 71 00 00 00 00 00 FF 0F D5 [19:45:15]RasterBufferAndPrint [19:45:15]line Счет N : (1)1964993 [19:45:15]line ИНН: 02508201610067 [19:45:15]line Контрольно-Кассовый Чек [19:45:15]line ПРОДАЖА [19:45:15]line ТРК (МРК, ГНК) : 43 [19:45:15]line Товар: 2710124130 [19:45:15]line Аи-92-К-5 [19:45:15]line 4.490 * 66.90 [19:45:15]line = 300.38 [19:45:15]line НДС 12% НСП 1% [19:45:15]line > о реализуемом товаре [19:45:15]line ОКРУГЛЕНИЕ: -0.38 [19:45:15]line ИТОГО: 300.00 [19:45:15]line Внесено: 300.00 [19:45:15]line СДАЧА: 0.00 [19:45:15]line НСП 1% : 2.66 [19:45:15]line НДС 12% : 31.90 [19:45:15]line Наличными: 300.00 [19:45:15]line Безнал.: 0.00 [19:45:15]line Место: АЗС № 133 "Партнер Нефть" [19:45:15]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:45:15]line СНО: Общий режим [19:45:15]line Чек 384 22.10.2024 19:45 [19:45:15]line Смена: 535 ФФД: 1.0 [19:45:15]line ЗНМ: 0300000091 [19:45:15]line РНМ: 0000000000091685 [19:45:15]line Версия ККМ: 001 [19:45:15]line ФМ: 0000000000871839 [19:45:15]line ФД: 228420 [19:45:15]line ФПД: 216332169031421 [19:45:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194518&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228420&fm=216332169031421&tin=02508201610067®Number=0000000000091685&sum=30000 [19:45:15]Connected sock=10 [19:45:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 1E 81 07 01 EC 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 80 01 00 00 F4 03 04 00 CE 00 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 44 7C 03 00 35 04 06 00 C4 C0 C2 16 AE FD 76 1E 6F 8C FC 40 38 64 [19:45:15]written 0, free lines is 4095 [19:45:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 6D D3 47 00 62 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 44 7C 03 00 F4 03 04 00 C6 AB 17 67 B6 04 01 00 00 80 29 87 85 CC D7 E1 C7 [19:45:15]CommunicateWithHost err = 0 [19:45:15]CheckOFDResponse [19:45:15]1017 (14) - 77093643461234 [19:45:15]1041 (16) - 0000000000871839 [19:45:15]1040 (4) - 228420 [19:45:15]1012 (4) - 22.10.2024 13:42 [19:45:15]1206 (1) - 0 [19:45:15]OFD Sender: Remove packet 228420 [19:45:15]ProducePacketName [19:45:15]name=ofd_packets/00228420 [19:45:15]NVStorageDeleteData [19:45:16]Write to MH i2c: 01 00 00 79 71 EA [19:45:16]Write i2c OK [19:45:16]MH_I2C_Read... [19:45:16]Read from MH i2c: 01 [19:45:16]MH_I2C_Read... [19:45:16]Read from MH i2c: 01 07 00 [19:45:16]MH_I2C_Read... [19:45:16]Read from MH i2c: 01 07 00 79 71 00 00 00 00 00 B1 0C AE [19:45:16]RasterBufferAndPrint [19:45:16]line [19:45:16]line [19:45:16]line [19:45:16]line [19:45:16]line [19:45:16]written 0, free lines is 3261 [19:45:16]MH_Cut [19:45:16]Write to MH i2c: D1 01 00 80 71 01 C3 [19:45:16]Write i2c OK [19:45:16]MH_I2C_Read... [19:45:16]Read from MH i2c: D1 [19:45:16]MH_I2C_Read... [19:45:16]Read from MH i2c: D1 01 00 [19:45:16]MH_I2C_Read... [19:45:16]Read from MH i2c: D1 01 00 80 71 00 C2 [19:45:16]Write to MH i2c: 01 00 00 81 71 F2 [19:45:16]Write i2c OK [19:45:16]MH_I2C_Read... [19:45:16]OFD Sender: No OFD packet to send [19:45:17]*** Cut start [19:45:17]*** Partial cut [19:45:17]*** CUTSNS_PIN = 1 [19:45:17]*** CUTSNS_PIN = 0 [19:45:17]*** Brake cut motor [19:45:17]Read from MH i2c: 01 [19:45:17]MH_I2C_Read... [19:45:17]*** Stop cut motor [19:45:17]*** Cut end [19:45:17]Read from MH i2c: 01 07 00 [19:45:17]MH_I2C_Read... [19:45:17]Read from MH i2c: 01 07 00 81 71 00 00 00 00 00 FF 0F 07 [19:45:17]process_action close_receipt done [19:45:17]requested_data is exist [19:45:17]produce_requested_data [19:45:17]requested_item fm.sn is exist - process it [19:45:17]wFMCommunicate request_size=4 [19:45:17]MH_SAM_APDU [19:45:17]CAPDU: 80 11 00 00 [19:45:17]Write to MH i2c: E2 08 00 82 71 80 11 00 00 00 00 00 00 6D [19:45:17]Write i2c OK [19:45:17]MH_I2C_Read... [19:45:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:17]Read from MH i2c: E2 [19:45:17]MH_I2C_Read... [19:45:17]Read from MH i2c: E2 17 00 [19:45:17]MH_I2C_Read... [19:45:17]Read from MH i2c: E2 17 00 82 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C4 [19:45:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:45:17]wFMCommunicate OK [19:45:17]requested_item fd.num is exist - process it [19:45:17]SAM_PROTO_GetFieldsCounters [19:45:17]wFMCommunicate request_size=4 [19:45:17]MH_SAM_APDU [19:45:17]CAPDU: 80 13 00 00 [19:45:17]Write to MH i2c: E2 08 00 83 71 80 13 00 00 00 00 00 00 70 [19:45:17]Write i2c OK [19:45:17]MH_I2C_Read... [19:45:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:45:17]Read from MH i2c: E2 [19:45:17]MH_I2C_Read... [19:45:17]Read from MH i2c: E2 62 00 [19:45:17]MH_I2C_Read... [19:45:17]Read from MH i2c: E2 62 00 83 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 44 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 80 01 00 00 5E 04 04 00 80 01 00 00 57 04 04 00 81 01 00 00 19 04 04 00 00 00 00 00 90 00 F8 [19:45:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 44 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 80 01 00 00 5E 04 04 00 80 01 00 00 57 04 04 00 81 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:45:17]wFMCommunicate OK [19:45:17]SAM_PROTO_GetFieldsCounters done [19:45:17]requested_item shift.num is exist - process it [19:45:17]requested_item shift.opened is exist - process it [19:45:17]req_shift_opened [19:45:17]FM_GetShiftState [19:45:17]SAM_PROTO_GetShiftState [19:45:17]wFMCommunicate request_size=4 [19:45:17]MH_SAM_APDU [19:45:17]CAPDU: 80 13 01 00 [19:45:17]Write to MH i2c: E2 08 00 84 71 80 13 01 00 00 00 00 00 72 [19:45:17]Write i2c OK [19:45:17]MH_I2C_Read... [19:45:18]Read from MH i2c: E2 [19:45:18]MH_I2C_Read... [19:45:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:18]Read from MH i2c: E2 0E 00 [19:45:18]MH_I2C_Read... [19:45:18]Read from MH i2c: E2 0E 00 84 71 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 39 [19:45:18]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [19:45:18]wFMCommunicate OK [19:45:18]SAM_PROTO_GetShiftState done [19:45:18]FM_GetShiftState done [19:45:18]req_shift_opened done [19:45:18]requested_item shift.open_date is exist - process it [19:45:18]req_shift_open_date [19:45:18]req_shift_open_date done [19:45:18]produce_requested_data done [19:45:18]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228420,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [19:45:18]process_action_free close_receipt [19:45:18]json_value_free [19:45:18]json_value_free done [19:45:18]process_json_proto returns [19:45:18]Send response to host [19:45:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228420,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [19:45:18]free response buf [19:45:18]execute_script done [19:45:18]execute_script returns [19:45:18]free content buf [19:45:18]Sock 9.Close socket [19:45:18]Sock 9.Thread stoped [19:45:21]OFD Sender: No OFD packet to send [19:45:26]OFD Sender: No OFD packet to send [19:45:31]OFD Sender: No OFD packet to send [19:45:36]OFD Sender: No OFD packet to send [19:45:41]OFD Sender: No OFD packet to send [19:45:46]OFD Sender: No OFD packet to send [19:45:51]OFD Sender: No OFD packet to send [19:45:56]OFD Sender: No OFD packet to send [19:46:01]OFD Sender: No OFD packet to send [19:46:06]OFD Sender: No OFD packet to send [19:46:11]OFD Sender: No OFD packet to send [19:46:16]OFD Sender: No OFD packet to send [19:46:21]OFD Sender: No OFD packet to send [19:46:26]OFD Sender: No OFD packet to send [19:46:31]OFD Sender: No OFD packet to send [19:46:36]OFD Sender: No OFD packet to send [19:46:41]OFD Sender: No OFD packet to send [19:46:46]OFD Sender: No OFD packet to send [19:46:51]OFD Sender: No OFD packet to send [19:46:56]OFD Sender: No OFD packet to send [19:47:01]OFD Sender: No OFD packet to send [19:47:06]OFD Sender: No OFD packet to send [19:47:11]OFD Sender: No OFD packet to send [19:47:16]OFD Sender: No OFD packet to send [19:47:21]OFD Sender: No OFD packet to send [19:47:26]OFD Sender: No OFD packet to send [19:47:31]OFD Sender: No OFD packet to send [19:47:36]OFD Sender: No OFD packet to send [19:47:41]OFD Sender: No OFD packet to send [19:47:46]OFD Sender: No OFD packet to send [19:47:51]OFD Sender: No OFD packet to send [19:47:56]OFD Sender: No OFD packet to send [19:48:01]OFD Sender: No OFD packet to send [19:48:06]OFD Sender: No OFD packet to send [19:48:11]OFD Sender: No OFD packet to send [19:48:16]OFD Sender: No OFD packet to send [19:48:21]OFD Sender: No OFD packet to send [19:48:26]OFD Sender: No OFD packet to send [19:48:31]OFD Sender: No OFD packet to send [19:48:36]OFD Sender: No OFD packet to send [19:48:41]OFD Sender: No OFD packet to send [19:48:46]OFD Sender: No OFD packet to send [19:48:51]OFD Sender: No OFD packet to send [19:48:56]OFD Sender: No OFD packet to send [19:49:01]OFD Sender: No OFD packet to send [19:49:06]OFD Sender: No OFD packet to send [19:49:11]OFD Sender: No OFD packet to send [19:49:16]OFD Sender: No OFD packet to send [19:49:21]OFD Sender: No OFD packet to send [19:49:26]OFD Sender: No OFD packet to send [19:49:31]OFD Sender: No OFD packet to send [19:49:36]OFD Sender: No OFD packet to send [19:49:41]OFD Sender: No OFD packet to send [19:49:46]OFD Sender: No OFD packet to send [19:49:51]OFD Sender: No OFD packet to send [19:49:56]OFD Sender: No OFD packet to send [19:50:01]OFD Sender: No OFD packet to send [19:50:06]OFD Sender: No OFD packet to send [19:50:11]OFD Sender: No OFD packet to send [19:50:16]OFD Sender: No OFD packet to send [19:50:21]OFD Sender: No OFD packet to send [19:50:26]OFD Sender: No OFD packet to send [19:50:31]OFD Sender: No OFD packet to send [19:50:36]OFD Sender: No OFD packet to send [19:50:41]OFD Sender: No OFD packet to send [19:50:46]OFD Sender: No OFD packet to send [19:50:51]OFD Sender: No OFD packet to send [19:50:56]OFD Sender: No OFD packet to send [19:51:01]OFD Sender: No OFD packet to send [19:51:06]OFD Sender: No OFD packet to send [19:51:11]OFD Sender: No OFD packet to send [19:51:16]OFD Sender: No OFD packet to send [19:51:21]OFD Sender: No OFD packet to send [19:51:26]OFD Sender: No OFD packet to send [19:51:31]OFD Sender: No OFD packet to send [19:51:36]OFD Sender: No OFD packet to send [19:51:41]OFD Sender: No OFD packet to send [19:51:46]OFD Sender: No OFD packet to send [19:51:51]OFD Sender: No OFD packet to send [19:51:56]OFD Sender: No OFD packet to send [19:52:01]OFD Sender: No OFD packet to send [19:52:06]OFD Sender: No OFD packet to send [19:52:11]OFD Sender: No OFD packet to send [19:52:16]OFD Sender: No OFD packet to send [19:52:21]OFD Sender: No OFD packet to send [19:52:26]OFD Sender: No OFD packet to send [19:52:31]OFD Sender: No OFD packet to send [19:52:36]OFD Sender: No OFD packet to send [19:52:41]OFD Sender: No OFD packet to send [19:52:46]OFD Sender: No OFD packet to send [19:52:51]OFD Sender: No OFD packet to send [19:52:56]OFD Sender: No OFD packet to send [19:53:01]OFD Sender: No OFD packet to send [19:53:06]OFD Sender: No OFD packet to send [19:53:11]OFD Sender: No OFD packet to send [19:53:16]OFD Sender: No OFD packet to send [19:53:21]OFD Sender: No OFD packet to send [19:53:26]OFD Sender: No OFD packet to send [19:53:31]OFD Sender: No OFD packet to send [19:53:36]OFD Sender: No OFD packet to send [19:53:41]OFD Sender: No OFD packet to send [19:53:46]OFD Sender: No OFD packet to send [19:53:51]OFD Sender: No OFD packet to send [19:53:56]OFD Sender: No OFD packet to send [19:54:01]OFD Sender: No OFD packet to send [19:54:03]accept exits with 7 [19:54:03]New connection [19:54:03]New thread 3066994020 created [19:54:03]Thread 3067137380 joined [19:54:03]Waiting for new connection... [19:54:03] Sock 7.Parse request [19:54:03]Sock 7.Check first char [19:54:03]Sock 7.First char is OK [19:54:03]request: POST /json_proto HTTP/1.0 [19:54:03]Method: POST [19:54:03]URL: /json_proto [19:54:03]Method is POST - this is cgi request [19:54:03]url: /json_proto [19:54:03]query_string will be loaded in cgi processing [19:54:03]execute_cgi json_proto POST (null) [19:54:03]execute_cgi path=json_proto method=POST [19:54:03]POST find Content-Length [19:54:03]Host: 172.17.44.195:8080 [19:54:03]Content-Length: 659 [19:54:03]Content-Type: application/json [19:54:03] [19:54:03]POST finish read [19:54:03]Found Content-Length = 659 [19:54:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 5.850, "sum" : 400.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:03]execute_script... [19:54: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)1965010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 5.850, "sum" : 400.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:03]POST & json_proto [19:54:03]process_json_proto [19:54:03]json parsed OK: [19:54:03]protocol is kg_v1.0 [19:54:03]action value=close_receipt [19:54:03]process_action close_receipt [19:54:03]cmd_close_receipt [19:54:03]MH_GetDate [19:54:03]Write to MH i2c: F0 00 00 85 71 E5 [19:54:03]Write i2c OK [19:54:03]MH_I2C_Read... [19:54:03]Read from MH i2c: F0 [19:54:03]MH_I2C_Read... [19:54:03]Read from MH i2c: F0 09 00 [19:54:03]MH_I2C_Read... [19:54:03]Read from MH i2c: F0 09 00 85 71 00 E1 02 18 67 82 C9 CF 66 D0 [19:54:03]GetLastDocTimeStamp 1729626318 [19:54:03]current date 1729626849 [19:54:03]FM_GetShiftState [19:54:03]SAM_PROTO_GetShiftState [19:54:03]wFMCommunicate request_size=4 [19:54:03]MH_SAM_APDU [19:54:03]CAPDU: 80 13 01 00 [19:54:03]Write to MH i2c: E2 08 00 86 71 80 13 01 00 00 00 00 00 74 [19:54:03]Write i2c OK [19:54:03]MH_I2C_Read... [19:54:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:03]Read from MH i2c: E2 [19:54:03]MH_I2C_Read... [19:54:03]Read from MH i2c: E2 0E 00 [19:54:03]MH_I2C_Read... [19:54:03]Read from MH i2c: E2 0E 00 86 71 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 3B [19:54:03]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [19:54:03]wFMCommunicate OK [19:54:03]SAM_PROTO_GetShiftState done [19:54:03]FM_GetShiftState done [19:54:03]opened in 1729555538 [19:54:03]opened+sec_in_day 1729641938 [19:54:03]quantity*price = 40014 [19:54:03]sum+1 = 40015 [19:54:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.49 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 385 22.10.2024 19:54 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228421 ФПД: 23649311640690 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T195409&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228421&fm=23649311640690&tin=02508201610067®Number=0000000000091685&sum=40000 [19:54:04]StoreToDocumentArchive [19:54:04]shift 535 fd 228421 [19:54:04]save to /storage/0535/doc_00228421 [19:54:04]save last doc name /storage/0535/doc_00228421 to /storage/kkm_last_doc_name [19:54:04]save OK [19:54:04]Clear old archive folders... [19:54:04]ProcessDocumentItem done err = 0, tmpTLVsize=244 [19:54:04]tlvbuf is 0098E830 [19:54:04]SAM_PROTO_ClearQueue [19:54:04]wFMCommunicate request_size=4 [19:54:04]MH_SAM_APDU [19:54:04]CAPDU: 80 09 00 00 [19:54:04]Write to MH i2c: E2 08 00 93 71 80 09 00 00 00 00 00 00 76 [19:54:04]Write i2c OK [19:54:04]MH_I2C_Read... [19:54:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:54:04]Read from MH i2c: E2 [19:54:04]MH_I2C_Read... [19:54:04]Read from MH i2c: E2 03 00 [19:54:04]MH_I2C_Read... [19:54:04]Read from MH i2c: E2 03 00 93 71 00 90 00 78 [19:54:04]RAPDU: 90 00 [19:54:04]wFMCommunicate OK [19:54:04]SAM_PROTO_ClearQueue done [19:54:04]KKMCreateOFDPacket [19:54:04]OFDProtocolAddRootSTLVToBuf [19:54:04]FM_MakeSignedData [19:54:04]FM_MakeSignedData [19:54:04]SAM_PROTO_SignData [19:54:04]wFMCommunicate request_size=4 [19:54:04]MH_SAM_APDU [19:54:04]CAPDU: 80 0D 01 02 [19:54:04]Write to MH i2c: E2 08 00 94 71 80 0D 01 02 00 00 00 00 7E [19:54:04]Write i2c OK [19:54:04]MH_I2C_Read... [19:54:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:54:04]Read from MH i2c: E2 [19:54:04]MH_I2C_Read... [19:54:04]Read from MH i2c: E2 03 00 [19:54:04]MH_I2C_Read... [19:54:04]Read from MH i2c: E2 03 00 94 71 00 90 00 79 [19:54:04]RAPDU: 90 00 [19:54:04]wFMCommunicate OK [19:54:04]wFMCommunicate request_size=253 [19:54:04]MH_SAM_APDU [19:54:04]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 81 01 00 00 F4 03 04 00 E1 02 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 45 7C 03 00 35 04 06 00 15 82 48 D1 CC 72 [19:54:04]Write to MH i2c: E2 00 01 95 71 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 81 01 00 00 F4 03 04 00 E1 02 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 45 7C 03 00 35 04 06 00 15 82 48 D1 CC 72 00 00 5D [19:54:04]Write i2c OK [19:54:04]MH_I2C_Read... [19:54:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:05]Read from MH i2c: E2 [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: E2 03 00 [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: E2 03 00 95 71 00 90 00 7A [19:54:05]RAPDU: 90 00 [19:54:05]wFMCommunicate OK [19:54:05]wFMCommunicate request_size=4 [19:54:05]MH_SAM_APDU [19:54:05]CAPDU: 80 0D 03 02 [19:54:05]Write to MH i2c: E2 08 00 96 71 80 0D 03 02 00 00 00 00 82 [19:54:05]Write i2c OK [19:54:05]MH_I2C_Read... [19:54:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:54:05]Read from MH i2c: E2 [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: E2 0B 00 [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: E2 0B 00 96 71 00 50 6B 23 9F 79 14 3D D7 90 00 A1 [19:54:05]RAPDU: 50 6B 23 9F 79 14 3D D7 90 00 [19:54:05]wFMCommunicate OK [19:54:05]SAM_PROTO_SignData done [19:54:05]FM_MakeSignedData done [19:54:05]CreateOFDProtocolMessage [19:54:05]wFMCommunicate request_size=4 [19:54:05]MH_SAM_APDU [19:54:05]CAPDU: 80 11 00 00 [19:54:05]Write to MH i2c: E2 08 00 97 71 80 11 00 00 00 00 00 00 82 [19:54:05]Write i2c OK [19:54:05]MH_I2C_Read... [19:54:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:05]Read from MH i2c: E2 [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: E2 17 00 [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: E2 17 00 97 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D9 [19:54:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:54:05]wFMCommunicate OK [19:54:05]CreateOFDProtocolMessage done [19:54:05]OFDSenderStorePacket 228421 [19:54:05]StoreOFDPacket docnum=228421 [19:54:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 15 18 00 01 3B 4C 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 81 01 00 00 F4 03 04 00 E1 02 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 45 7C 03 00 35 04 06 00 15 82 48 D1 CC 72 50 6B 23 9F 79 14 3D D7 [19:54:05]CheckFolder [19:54:05]dirname=/storage/ofd_packets [19:54:05]CheckFolder done [19:54:05]ProducePacketName [19:54:05]name=ofd_packets/00228421 [19:54:05]NVStorageSaveData ofd_packets/00228421 [19:54:05]File name is /storage/ofd_packets/00228421 [19:54:05]Write 294 bytes [19:54:05]NVStorageSaveData done [19:54:05]OFDSenderStorePacket done [19:54:05]KKMCreateOFDPacket done [19:54:05]NVStorageSaveData kkm_last_timestamp [19:54:05]File name is /storage/kkm_last_timestamp [19:54:05]Write 4 bytes [19:54:05]NVStorageSaveData done [19:54:05]ExternCall_PrintAddStr [19:54:05]wPrintStart [19:54:05]Write to MH i2c: 01 00 00 98 71 09 [19:54:05]Write i2c OK [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: 01 [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: 01 07 00 [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: 01 07 00 98 71 00 00 00 00 00 FF 0F 1E [19:54:05]RasterBufferAndPrint [19:54:05]line Счет N : (1)1965010 [19:54:05]line ИНН: 02508201610067 [19:54:05]line Контрольно-Кассовый Чек [19:54:05]line ПРОДАЖА [19:54:05]line ТРК (МРК, ГНК) : 42 [19:54:05]line Товар: 2710124130 [19:54:05]line SU-92 [19:54:05]line 5.850 * 68.40 [19:54:05]line = 400.14 [19:54:05]line НДС 12% НСП 1% [19:54:05]line > о реализуемом товаре [19:54:05]line ОКРУГЛЕНИЕ: -0.14 [19:54:05]line ИТОГО: 400.00 [19:54:05]line Внесено: 400.00 [19:54:05]line СДАЧА: 0.00 [19:54:05]line НСП 1% : 3.54 [19:54:05]line НДС 12% : 42.49 [19:54:05]line Наличными: 400.00 [19:54:05]line Безнал.: 0.00 [19:54:05]line Место: АЗС № 133 "Партнер Нефть" [19:54:05]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:54:05]line СНО: Общий режим [19:54:05]line Чек 385 22.10.2024 19:54 [19:54:05]line Смена: 535 ФФД: 1.0 [19:54:05]line ЗНМ: 0300000091 [19:54:05]line РНМ: 0000000000091685 [19:54:05]line Версия ККМ: 001 [19:54:05]line ФМ: 0000000000871839 [19:54:05]line ФД: 228421 [19:54:05]line ФПД: 23649311640690 [19:54:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T195409&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228421&fm=23649311640690&tin=02508201610067®Number=0000000000091685&sum=40000 [19:54:05]OFD Sender: Processing packet 228421 [packets to send 38, broken 37] [19:54:05]ProducePacketName [19:54:05]name=ofd_packets/00228421 [19:54:05]OFD Sender: To server: pG, [19:54:05]CommunicateWithHost lk.salyk.kg:30040 [19:54:05]ConnectInit lk.salyk.kg [19:54:05]written 0, free lines is 4095 [19:54:05]Connected sock=10 [19:54:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 15 18 00 01 3B 4C 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 81 01 00 00 F4 03 04 00 E1 02 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 45 7C 03 00 35 04 06 00 15 82 48 D1 CC 72 50 6B 23 9F 79 14 3D D7 [19:54:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 6A E7 47 00 6A 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 45 7C 03 00 F4 03 04 00 D8 AD 17 67 B6 04 01 00 00 9D 69 BF 9D DA E5 1E 77 [19:54:05]CommunicateWithHost err = 0 [19:54:05]CheckOFDResponse [19:54:05]1017 (14) - 77093643461234 [19:54:05]1041 (16) - 0000000000871839 [19:54:05]1040 (4) - 228421 [19:54:05]1012 (4) - 22.10.2024 13:51 [19:54:05]1206 (1) - 0 [19:54:05]OFD Sender: Remove packet 228421 [19:54:05]ProducePacketName [19:54:05]name=ofd_packets/00228421 [19:54:05]NVStorageDeleteData [19:54:05]Write to MH i2c: 01 00 00 C2 71 33 [19:54:05]Write i2c OK [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: 01 [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: 01 07 00 [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: 01 07 00 C2 71 00 00 00 00 00 A7 0C ED [19:54:05]RasterBufferAndPrint [19:54:05]line [19:54:05]line [19:54:05]line [19:54:05]line [19:54:05]line [19:54:05]written 0, free lines is 3243 [19:54:05]MH_Cut [19:54:05]Write to MH i2c: D1 01 00 C9 71 01 0C [19:54:05]Write i2c OK [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: D1 [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: D1 01 00 [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: D1 01 00 C9 71 00 0B [19:54:05]Write to MH i2c: 01 00 00 CA 71 3B [19:54:05]Write i2c OK [19:54:05]MH_I2C_Read... [19:54:06]OFD Sender: No OFD packet to send [19:54:06]*** Cut start [19:54:06]*** Partial cut [19:54:06]*** CUTSNS_PIN = 1 [19:54:06]*** CUTSNS_PIN = 0 [19:54:07]*** Brake cut motor [19:54:07]Read from MH i2c: 01 [19:54:07]MH_I2C_Read... [19:54:07]*** Stop cut motor [19:54:07]*** Cut end [19:54:07]Read from MH i2c: 01 07 00 [19:54:07]MH_I2C_Read... [19:54:07]Read from MH i2c: 01 07 00 CA 71 00 00 00 00 00 FF 0F 50 [19:54:07]process_action close_receipt done [19:54:07]requested_data is exist [19:54:07]produce_requested_data [19:54:07]requested_item fm.sn is exist - process it [19:54:07]wFMCommunicate request_size=4 [19:54:07]MH_SAM_APDU [19:54:07]CAPDU: 80 11 00 00 [19:54:07]Write to MH i2c: E2 08 00 CB 71 80 11 00 00 00 00 00 00 B6 [19:54:07]Write i2c OK [19:54:07]MH_I2C_Read... [19:54:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:07]Read from MH i2c: E2 [19:54:07]MH_I2C_Read... [19:54:07]Read from MH i2c: E2 17 00 [19:54:07]MH_I2C_Read... [19:54:07]Read from MH i2c: E2 17 00 CB 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0D [19:54:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:54:07]wFMCommunicate OK [19:54:07]requested_item fd.num is exist - process it [19:54:07]SAM_PROTO_GetFieldsCounters [19:54:07]wFMCommunicate request_size=4 [19:54:07]MH_SAM_APDU [19:54:07]CAPDU: 80 13 00 00 [19:54:07]Write to MH i2c: E2 08 00 CC 71 80 13 00 00 00 00 00 00 B9 [19:54:07]Write i2c OK [19:54:07]MH_I2C_Read... [19:54:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:54:07]Read from MH i2c: E2 [19:54:07]MH_I2C_Read... [19:54:07]Read from MH i2c: E2 62 00 [19:54:07]MH_I2C_Read... [19:54:07]Read from MH i2c: E2 62 00 CC 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 45 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 81 01 00 00 5E 04 04 00 81 01 00 00 57 04 04 00 82 01 00 00 19 04 04 00 00 00 00 00 90 00 45 [19:54:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 45 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 81 01 00 00 5E 04 04 00 81 01 00 00 57 04 04 00 82 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:54:07]wFMCommunicate OK [19:54:07]SAM_PROTO_GetFieldsCounters done [19:54:07]requested_item shift.num is exist - process it [19:54:07]requested_item shift.opened is exist - process it [19:54:07]req_shift_opened [19:54:07]FM_GetShiftState [19:54:07]SAM_PROTO_GetShiftState [19:54:07]wFMCommunicate request_size=4 [19:54:07]MH_SAM_APDU [19:54:07]CAPDU: 80 13 01 00 [19:54:07]Write to MH i2c: E2 08 00 CD 71 80 13 01 00 00 00 00 00 BB [19:54:07]Write i2c OK [19:54:07]MH_I2C_Read... [19:54:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:07]Read from MH i2c: E2 [19:54:07]MH_I2C_Read... [19:54:07]Read from MH i2c: E2 0E 00 [19:54:07]MH_I2C_Read... [19:54:07]Read from MH i2c: E2 0E 00 CD 71 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 82 [19:54:07]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [19:54:07]wFMCommunicate OK [19:54:07]SAM_PROTO_GetShiftState done [19:54:07]FM_GetShiftState done [19:54:07]req_shift_opened done [19:54:07]requested_item shift.open_date is exist - process it [19:54:07]req_shift_open_date [19:54:07]req_shift_open_date done [19:54:07]produce_requested_data done [19:54:07]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228421,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [19:54:07]process_action_free close_receipt [19:54:07]json_value_free [19:54:07]json_value_free done [19:54:07]process_json_proto returns [19:54:07]Send response to host [19:54:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228421,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [19:54:07]free response buf [19:54:07]execute_script done [19:54:07]execute_script returns [19:54:07]free content buf [19:54:07]Sock 7.Close socket [19:54:07]Sock 7.Thread stoped [19:54:11]OFD Sender: No OFD packet to send [19:54:16]OFD Sender: No OFD packet to send [19:54:21]OFD Sender: No OFD packet to send [19:54:26]OFD Sender: No OFD packet to send [19:54:31]OFD Sender: No OFD packet to send [19:54:36]OFD Sender: No OFD packet to send [19:54:41]OFD Sender: No OFD packet to send [19:54:46]OFD Sender: No OFD packet to send [19:54:51]OFD Sender: No OFD packet to send [19:54:56]OFD Sender: No OFD packet to send [19:55:01]OFD Sender: No OFD packet to send [19:55:06]OFD Sender: No OFD packet to send [19:55:11]OFD Sender: No OFD packet to send [19:55:16]OFD Sender: No OFD packet to send [19:55:21]OFD Sender: No OFD packet to send [19:55:26]OFD Sender: No OFD packet to send [19:55:31]OFD Sender: No OFD packet to send [19:55:36]OFD Sender: No OFD packet to send [19:55:41]OFD Sender: No OFD packet to send [19:55:46]OFD Sender: No OFD packet to send [19:55:51]OFD Sender: No OFD packet to send [19:55:56]OFD Sender: No OFD packet to send [19:56:01]OFD Sender: No OFD packet to send [19:56:06]OFD Sender: No OFD packet to send [19:56:11]OFD Sender: No OFD packet to send [19:56:16]OFD Sender: No OFD packet to send [19:56:21]OFD Sender: No OFD packet to send [19:56:26]OFD Sender: No OFD packet to send [19:56:31]OFD Sender: No OFD packet to send [19:56:36]OFD Sender: No OFD packet to send [19:56:41]OFD Sender: No OFD packet to send [19:56:46]OFD Sender: No OFD packet to send [19:56:51]OFD Sender: No OFD packet to send [19:56:56]OFD Sender: No OFD packet to send [19:57:01]OFD Sender: No OFD packet to send [19:57:06]OFD Sender: No OFD packet to send [19:57:11]OFD Sender: No OFD packet to send [19:57:16]OFD Sender: No OFD packet to send [19:57:21]OFD Sender: No OFD packet to send [19:57:26]OFD Sender: No OFD packet to send [19:57:31]OFD Sender: No OFD packet to send [19:57:36]OFD Sender: No OFD packet to send [19:57:41]OFD Sender: No OFD packet to send [19:57:46]OFD Sender: No OFD packet to send [19:57:51]OFD Sender: No OFD packet to send [19:57:56]OFD Sender: No OFD packet to send [19:58:01]OFD Sender: No OFD packet to send [19:58:06]OFD Sender: No OFD packet to send [19:58:11]OFD Sender: No OFD packet to send [19:58:16]OFD Sender: No OFD packet to send [19:58:21]OFD Sender: No OFD packet to send [19:58:26]OFD Sender: No OFD packet to send [19:58:31]OFD Sender: No OFD packet to send [19:58:36]OFD Sender: No OFD packet to send [19:58:41]OFD Sender: No OFD packet to send [19:58:46]OFD Sender: No OFD packet to send [19:58:51]OFD Sender: No OFD packet to send [19:58:56]OFD Sender: No OFD packet to send [19:59:01]OFD Sender: No OFD packet to send [19:59:06]OFD Sender: No OFD packet to send [19:59:11]OFD Sender: No OFD packet to send [19:59:16]OFD Sender: No OFD packet to send [19:59:21]OFD Sender: No OFD packet to send [19:59:26]OFD Sender: No OFD packet to send [19:59:31]OFD Sender: No OFD packet to send [19:59:36]OFD Sender: No OFD packet to send [19:59:41]OFD Sender: No OFD packet to send [19:59:46]OFD Sender: No OFD packet to send [19:59:47]accept exits with 9 [19:59:47]New connection [19:59:47]New thread 3067137380 created [19:59:47]Thread 3066994020 joined [19:59:47]Waiting for new connection... [19:59:47] Sock 9.Parse request [19:59:47]Sock 9.Check first char [19:59:47]Sock 9.First char is OK [19:59:47]request: POST /json_proto HTTP/1.0 [19:59:47]Method: POST [19:59:47]URL: /json_proto [19:59:47]Method is POST - this is cgi request [19:59:47]url: /json_proto [19:59:47]query_string will be loaded in cgi processing [19:59:47]execute_cgi json_proto POST (null) [19:59:47]execute_cgi path=json_proto method=POST [19:59:47]POST find Content-Length [19:59:47]Host: 172.17.44.195:8080 [19:59:47]Content-Length: 678 [19:59:47]Content-Type: application/json [19:59:47] [19:59:47]POST finish read [19:59:47]Found Content-Length = 678 [19:59:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965016", "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" : 66.90, "quantity" : 4.490, "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" ] } } [19:59:47]execute_script... [19:59: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)1965016", "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" : 66.90, "quantity" : 4.490, "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" ] } } [19:59:47]POST & json_proto [19:59:47]process_json_proto [19:59:47]json parsed OK: [19:59:47]protocol is kg_v1.0 [19:59:47]action value=close_receipt [19:59:47]process_action close_receipt [19:59:47]cmd_close_receipt [19:59:47]MH_GetDate [19:59:47]Write to MH i2c: F0 00 00 CE 71 2E [19:59:47]Write i2c OK [19:59:47]MH_I2C_Read... [19:59:47]Read from MH i2c: F0 [19:59:47]MH_I2C_Read... [19:59:47]Read from MH i2c: F0 09 00 [19:59:47]MH_I2C_Read... [19:59:47]Read from MH i2c: F0 09 00 CE 71 00 39 04 18 67 82 C9 CF 66 73 [19:59:47]GetLastDocTimeStamp 1729626849 [19:59:47]current date 1729627193 [19:59:47]FM_GetShiftState [19:59:47]SAM_PROTO_GetShiftState [19:59:47]wFMCommunicate request_size=4 [19:59:47]MH_SAM_APDU [19:59:47]CAPDU: 80 13 01 00 [19:59:47]Write to MH i2c: E2 08 00 CF 71 80 13 01 00 00 00 00 00 BD [19:59:47]Write i2c OK [19:59:47]MH_I2C_Read... [19:59:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:48]Read from MH i2c: E2 [19:59:48]MH_I2C_Read... [19:59:48]Read from MH i2c: E2 0E 00 [19:59:48]MH_I2C_Read... [19:59:48]Read from MH i2c: E2 0E 00 CF 71 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 84 [19:59:48]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [19:59:48]wFMCommunicate OK [19:59:48]SAM_PROTO_GetShiftState done [19:59:48]FM_GetShiftState done [19:59:48]opened in 1729555538 [19:59:48]opened+sec_in_day 1729641938 [19:59:48]quantity*price = 30038 [19:59:48]sum+1 = 30039 [19:59:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 386 22.10.2024 19:59 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228422 ФПД: 265340793198355 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T195953&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228422&fm=265340793198355&tin=02508201610067®Number=0000000000091685&sum=30000 [19:59:49]StoreToDocumentArchive [19:59:49]shift 535 fd 228422 [19:59:49]save to /storage/0535/doc_00228422 [19:59:49]save last doc name /storage/0535/doc_00228422 to /storage/kkm_last_doc_name [19:59:49]save OK [19:59:49]Clear old archive folders... [19:59:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:59:49]tlvbuf is 00A747F0 [19:59:49]SAM_PROTO_ClearQueue [19:59:49]wFMCommunicate request_size=4 [19:59:49]MH_SAM_APDU [19:59:49]CAPDU: 80 09 00 00 [19:59:49]Write to MH i2c: E2 08 00 DC 71 80 09 00 00 00 00 00 00 BF [19:59:49]Write i2c OK [19:59:49]MH_I2C_Read... [19:59:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:59:49]Read from MH i2c: E2 [19:59:49]MH_I2C_Read... [19:59:49]Read from MH i2c: E2 03 00 [19:59:49]MH_I2C_Read... [19:59:49]Read from MH i2c: E2 03 00 DC 71 00 90 00 C1 [19:59:49]RAPDU: 90 00 [19:59:49]wFMCommunicate OK [19:59:49]SAM_PROTO_ClearQueue done [19:59:49]KKMCreateOFDPacket [19:59:49]OFDProtocolAddRootSTLVToBuf [19:59:49]FM_MakeSignedData [19:59:49]FM_MakeSignedData [19:59:49]SAM_PROTO_SignData [19:59:49]wFMCommunicate request_size=4 [19:59:49]MH_SAM_APDU [19:59:49]CAPDU: 80 0D 01 02 [19:59:49]Write to MH i2c: E2 08 00 DD 71 80 0D 01 02 00 00 00 00 C7 [19:59:49]Write i2c OK [19:59:49]MH_I2C_Read... [19:59:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:59:49]Read from MH i2c: E2 [19:59:49]MH_I2C_Read... [19:59:49]Read from MH i2c: E2 03 00 [19:59:49]MH_I2C_Read... [19:59:49]Read from MH i2c: E2 03 00 DD 71 00 90 00 C2 [19:59:49]RAPDU: 90 00 [19:59:49]wFMCommunicate OK [19:59:49]wFMCommunicate request_size=255 [19:59:49]MH_SAM_APDU [19:59:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 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 82 01 00 00 F4 03 04 00 39 04 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 46 7C 03 00 35 04 06 00 F1 [19:59:49]Write to MH i2c: E2 02 01 DE 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 11 00 00 00 00 00 37 04 06 00 22 1A 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 82 01 00 00 F4 03 04 00 39 04 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 46 7C 03 00 35 04 06 00 F1 00 00 60 [19:59:49]Write i2c OK [19:59:49]MH_I2C_Read... [19:59:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:49]Read from MH i2c: E2 [19:59:49]MH_I2C_Read... [19:59:49]Read from MH i2c: E2 03 00 [19:59:49]MH_I2C_Read... [19:59:49]Read from MH i2c: E2 03 00 DE 71 00 90 00 C3 [19:59:49]RAPDU: 90 00 [19:59:49]wFMCommunicate OK [19:59:49]wFMCommunicate request_size=10 [19:59:49]MH_SAM_APDU [19:59:49]CAPDU: 80 0D 02 02 05 53 77 B9 17 13 [19:59:49]Write to MH i2c: E2 0D 00 DF 71 80 0D 02 02 05 00 53 77 B9 17 13 00 00 81 [19:59:49]Write i2c OK [19:59:49]MH_I2C_Read... [19:59:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:49]Read from MH i2c: E2 [19:59:49]MH_I2C_Read... [19:59:49]Read from MH i2c: E2 03 00 [19:59:49]MH_I2C_Read... [19:59:49]Read from MH i2c: E2 03 00 DF 71 00 90 00 C4 [19:59:49]RAPDU: 90 00 [19:59:49]wFMCommunicate OK [19:59:49]wFMCommunicate request_size=4 [19:59:49]MH_SAM_APDU [19:59:49]CAPDU: 80 0D 03 02 [19:59:49]Write to MH i2c: E2 08 00 E0 71 80 0D 03 02 00 00 00 00 CC [19:59:49]Write i2c OK [19:59:49]MH_I2C_Read... [19:59:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:59:49]Read from MH i2c: E2 [19:59:49]MH_I2C_Read... [19:59:49]Read from MH i2c: E2 0B 00 [19:59:49]MH_I2C_Read... [19:59:49]Read from MH i2c: E2 0B 00 E0 71 00 CC DF 06 30 0A 29 AC E3 90 00 70 [19:59:49]RAPDU: CC DF 06 30 0A 29 AC E3 90 00 [19:59:49]wFMCommunicate OK [19:59:49]SAM_PROTO_SignData done [19:59:49]FM_MakeSignedData done [19:59:49]CreateOFDProtocolMessage [19:59:49]wFMCommunicate request_size=4 [19:59:49]MH_SAM_APDU [19:59:49]CAPDU: 80 11 00 00 [19:59:49]Write to MH i2c: E2 08 00 E1 71 80 11 00 00 00 00 00 00 CC [19:59:49]Write i2c OK [19:59:49]MH_I2C_Read... [19:59:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:49]Read from MH i2c: E2 [19:59:49]MH_I2C_Read... [19:59:49]Read from MH i2c: E2 17 00 [19:59:49]MH_I2C_Read... [19:59:49]Read from MH i2c: E2 17 00 E1 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 23 [19:59:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:59:49]wFMCommunicate OK [19:59:49]CreateOFDProtocolMessage done [19:59:49]OFDSenderStorePacket 228422 [19:59:49]StoreOFDPacket docnum=228422 [19:59:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 BF 08 07 01 0D AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 11 00 00 00 00 00 37 04 06 00 22 1A 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 82 01 00 00 F4 03 04 00 39 04 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 46 7C 03 00 35 04 06 00 F1 53 77 B9 17 13 CC DF 06 30 0A 29 AC E3 [19:59:49]CheckFolder [19:59:49]dirname=/storage/ofd_packets [19:59:49]CheckFolder done [19:59:49]ProducePacketName [19:59:49]name=ofd_packets/00228422 [19:59:49]NVStorageSaveData ofd_packets/00228422 [19:59:49]File name is /storage/ofd_packets/00228422 [19:59:49]Write 301 bytes [19:59:49]NVStorageSaveData done [19:59:49]OFDSenderStorePacket done [19:59:49]KKMCreateOFDPacket done [19:59:49]NVStorageSaveData kkm_last_timestamp [19:59:49]File name is /storage/kkm_last_timestamp [19:59:49]Write 4 bytes [19:59:49]NVStorageSaveData done [19:59:49]ExternCall_PrintAddStr [19:59:49]wPrintStart [19:59:49]Write to MH i2c: 01 00 00 E2 71 53 [19:59:49]Write i2c OK [19:59:49]MH_I2C_Read... [19:59:49]Read from MH i2c: 01 [19:59:49]MH_I2C_Read... [19:59:49]Read from MH i2c: 01 07 00 [19:59:49]MH_I2C_Read... [19:59:49]Read from MH i2c: 01 07 00 E2 71 00 00 00 00 00 FF 0F 68 [19:59:49]RasterBufferAndPrint [19:59:49]line Счет N : (1)1965016 [19:59:49]line ИНН: 02508201610067 [19:59:49]line Контрольно-Кассовый Чек [19:59:49]line ПРОДАЖА [19:59:49]line ТРК (МРК, ГНК) : 53 [19:59:49]line Товар: 2710124130 [19:59:49]line Аи-92-К-5 [19:59:49]line 4.490 * 66.90 [19:59:49]line = 300.38 [19:59:49]line НДС 12% НСП 1% [19:59:49]line > о реализуемом товаре [19:59:49]line ОКРУГЛЕНИЕ: -0.38 [19:59:49]line ИТОГО: 300.00 [19:59:49]line Внесено: 300.00 [19:59:49]line СДАЧА: 0.00 [19:59:49]line НСП 1% : 2.66 [19:59:49]line НДС 12% : 31.90 [19:59:49]line Наличными: 300.00 [19:59:49]line Безнал.: 0.00 [19:59:49]line Место: АЗС № 133 "Партнер Нефть" [19:59:49]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:59:49]line СНО: Общий режим [19:59:49]line Чек 386 22.10.2024 19:59 [19:59:49]line Смена: 535 ФФД: 1.0 [19:59:49]line ЗНМ: 0300000091 [19:59:49]line РНМ: 0000000000091685 [19:59:49]line Версия ККМ: 001 [19:59:49]line ФМ: 0000000000871839 [19:59:49]line ФД: 228422 [19:59:49]line ФПД: 265340793198355 [19:59:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T195953&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228422&fm=265340793198355&tin=02508201610067®Number=0000000000091685&sum=30000 [19:59:50]written 0, free lines is 4095 [19:59:50]OFD Sender: Processing packet 228422 [packets to send 38, broken 37] [19:59:50]ProducePacketName [19:59:50]name=ofd_packets/00228422 [19:59:50]OFD Sender: To server: pG, [19:59:50]CommunicateWithHost lk.salyk.kg:30040 [19:59:50]ConnectInit lk.salyk.kg [19:59:50]Connected sock=11 [19:59:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 BF 08 07 01 0D AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 11 00 00 00 00 00 37 04 06 00 22 1A 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 82 01 00 00 F4 03 04 00 39 04 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 46 7C 03 00 35 04 06 00 F1 53 77 B9 17 13 CC DF 06 30 0A 29 AC E3 [19:59:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 B1 59 47 00 8F 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 46 7C 03 00 F4 03 04 00 31 AF 17 67 B6 04 01 00 00 F5 BC 70 51 9E 0C 96 4F [19:59:50]CommunicateWithHost err = 0 [19:59:50]CheckOFDResponse [19:59:50]1017 (14) - 77093643461234 [19:59:50]1041 (16) - 0000000000871839 [19:59:50]1040 (4) - 228422 [19:59:50]1012 (4) - 22.10.2024 13:57 [19:59:50]1206 (1) - 0 [19:59:50]OFD Sender: Remove packet 228422 [19:59:50]ProducePacketName [19:59:50]name=ofd_packets/00228422 [19:59:50]NVStorageDeleteData [19:59:50]Write to MH i2c: 01 00 00 0C 72 7E [19:59:50]Write i2c OK [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: 01 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: 01 07 00 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: 01 07 00 0C 72 00 00 00 00 00 AA 0C 3B [19:59:50]RasterBufferAndPrint [19:59:50]line [19:59:50]line [19:59:50]line [19:59:50]line [19:59:50]line [19:59:50]written 0, free lines is 3246 [19:59:50]MH_Cut [19:59:50]Write to MH i2c: D1 01 00 13 72 01 57 [19:59:50]Write i2c OK [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: D1 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: D1 01 00 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: D1 01 00 13 72 00 56 [19:59:50]Write to MH i2c: 01 00 00 14 72 86 [19:59:50]Write i2c OK [19:59:50]MH_I2C_Read... [19:59:50]OFD Sender: No OFD packet to send [19:59:51]*** Cut start [19:59:51]*** Partial cut [19:59:51]*** CUTSNS_PIN = 1 [19:59:51]*** CUTSNS_PIN = 0 [19:59:52]*** Brake cut motor [19:59:53]Read from MH i2c: 01 [19:59:53]MH_I2C_Read... [19:59:53]*** Stop cut motor [19:59:53]*** FLAG_CUTTER_FAIL [19:59:53]*** Cut end [19:59:53]Read from MH i2c: 01 07 00 [19:59:53]MH_I2C_Read... [19:59:53]Read from MH i2c: 01 07 00 14 72 00 00 12 00 00 FF 0F AD [19:59:53]process_action_free close_receipt [19:59:53]json_value_free [19:59:53]json_value_free done [19:59:53]process_json_proto returns [19:59:53]Send response to host [19:59:53]{"protocol":"kg_v1.0","response":{"error":1047,"error_desc":"Cutter error"}} [19:59:53]free response buf [19:59:53]execute_script done [19:59:53]execute_script returns [19:59:53]free content buf [19:59:53]Sock 9.Close socket [19:59:53]Sock 9.Thread stoped [19:59:55]OFD Sender: No OFD packet to send [20:00:00]OFD Sender: No OFD packet to send [20:00:05]OFD Sender: No OFD packet to send [20:00:10]OFD Sender: No OFD packet to send [20:00:15]OFD Sender: No OFD packet to send [20:00:20]OFD Sender: No OFD packet to send [20:00:25]OFD Sender: No OFD packet to send [20:00:30]OFD Sender: No OFD packet to send [20:00:35]OFD Sender: No OFD packet to send [20:00:40]OFD Sender: No OFD packet to send [20:00:45]OFD Sender: No OFD packet to send [20:00:50]OFD Sender: No OFD packet to send [20:00:55]OFD Sender: No OFD packet to send [20:01:00]OFD Sender: No OFD packet to send [20:01:05]OFD Sender: No OFD packet to send [20:01:10]OFD Sender: No OFD packet to send [20:01:15]OFD Sender: No OFD packet to send [20:01:20]OFD Sender: No OFD packet to send [20:01:25]OFD Sender: No OFD packet to send [20:01:30]OFD Sender: No OFD packet to send [20:01:35]OFD Sender: No OFD packet to send [20:01:40]OFD Sender: No OFD packet to send [20:01:45]OFD Sender: No OFD packet to send [20:01:50]OFD Sender: No OFD packet to send [20:01:55]OFD Sender: No OFD packet to send [20:02:00]OFD Sender: No OFD packet to send [20:02:05]OFD Sender: No OFD packet to send [20:02:10]OFD Sender: No OFD packet to send [20:02:15]OFD Sender: No OFD packet to send [20:02:20]OFD Sender: No OFD packet to send [20:02:25]OFD Sender: No OFD packet to send [20:02:30]OFD Sender: No OFD packet to send [20:02:35]OFD Sender: No OFD packet to send [20:02:40]OFD Sender: No OFD packet to send [20:02:45]OFD Sender: No OFD packet to send [20:02:50]OFD Sender: No OFD packet to send [20:02:55]OFD Sender: No OFD packet to send [20:03:00]OFD Sender: No OFD packet to send [20:03:05]OFD Sender: No OFD packet to send [20:03:10]OFD Sender: No OFD packet to send [20:03:15]OFD Sender: No OFD packet to send [20:03:20]OFD Sender: No OFD packet to send [20:03:25]OFD Sender: No OFD packet to send [20:03:30]OFD Sender: No OFD packet to send [20:03:35]OFD Sender: No OFD packet to send [20:03:40]OFD Sender: No OFD packet to send [20:03:45]OFD Sender: No OFD packet to send [20:03:50]OFD Sender: No OFD packet to send [20:03:55]OFD Sender: No OFD packet to send [20:04:01]OFD Sender: No OFD packet to send [20:04:06]OFD Sender: No OFD packet to send [20:04:11]OFD Sender: No OFD packet to send [20:04:16]OFD Sender: No OFD packet to send [20:04:21]OFD Sender: No OFD packet to send [20:04:26]OFD Sender: No OFD packet to send [20:04:31]OFD Sender: No OFD packet to send [20:04:36]OFD Sender: No OFD packet to send [20:04:41]OFD Sender: No OFD packet to send [20:04:46]OFD Sender: No OFD packet to send [20:04:51]OFD Sender: No OFD packet to send [20:04:56]OFD Sender: No OFD packet to send [20:05:01]OFD Sender: No OFD packet to send [20:05:06]OFD Sender: No OFD packet to send [20:05:11]OFD Sender: No OFD packet to send [20:05:16]OFD Sender: No OFD packet to send [20:05:21]OFD Sender: No OFD packet to send [20:05:26]OFD Sender: No OFD packet to send [20:05:31]OFD Sender: No OFD packet to send [20:05:36]OFD Sender: No OFD packet to send [20:05:41]OFD Sender: No OFD packet to send [20:05:46]OFD Sender: No OFD packet to send [20:05:51]OFD Sender: No OFD packet to send [20:05:56]OFD Sender: No OFD packet to send [20:06:01]OFD Sender: No OFD packet to send [20:06:06]OFD Sender: No OFD packet to send [20:06:11]OFD Sender: No OFD packet to send [20:06:16]OFD Sender: No OFD packet to send [20:06:21]OFD Sender: No OFD packet to send [20:06:26]OFD Sender: No OFD packet to send [20:06:31]OFD Sender: No OFD packet to send [20:06:36]OFD Sender: No OFD packet to send [20:06:41]OFD Sender: No OFD packet to send [20:06:46]OFD Sender: No OFD packet to send [20:06:51]OFD Sender: No OFD packet to send [20:06:56]OFD Sender: No OFD packet to send [20:07:01]OFD Sender: No OFD packet to send [20:07: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:20]int [20:07:20]Write to MH i2c: 01 00 00 15 72 87 [20:07:20]*** FLAG_PRN_KEY set [20:07:20]Write i2c OK [20:07:20]MH_I2C_Read... [20:07:20]Read from MH i2c: 01 [20:07:20]MH_I2C_Read... [20:07:20]Read from MH i2c: 01 07 00 [20:07:20]MH_I2C_Read... [20:07:20]Read from MH i2c: 01 07 00 15 72 00 08 12 00 00 FF 0F B6 [20:07:20]state=0 [20:07:20]Key pressed [20:07:20]Cutter fail [20:07:20]Cutter bad position [20:07:20]MH_Cut [20:07:20]Write to MH i2c: D1 01 00 16 72 01 5A [20:07:20]Write i2c OK [20:07:20]MH_I2C_Read... [20:07:20]Read from MH i2c: D1 [20:07:20]MH_I2C_Read... [20:07:20]Read from MH i2c: D1 01 00 [20:07:20]MH_I2C_Read... [20:07:20]Read from MH i2c: D1 01 00 16 72 00 59 [20:07:20]Write to MH i2c: 01 00 00 17 72 89 [20:07:20]Write i2c OK [20:07:20]MH_I2C_Read... [20:07:20]*** Cut start [20:07:20]*** Partial cut [20:07:20]*** CUTSNS_PIN = 0 [20:07:21]OFD Sender: No OFD packet to send [20:07:21]*** Brake cut motor [20:07:22]Read from MH i2c: 01 [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: 01 07 00 [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: 01 07 00 17 72 00 08 12 00 00 FF 0F B8 [20:07:22]Write to MH i2c: D5 00 00 18 72 5E [20:07:22]Write i2c OK [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: D5 [20:07:22]MH_I2C_Read... [20:07:22]*** Stop cut motor [20:07:22]*** FLAG_CUTTER_FAIL [20:07:22]*** Cut end [20:07:22]*** FLAG_PRN_KEY reset [20:07:22]Read from MH i2c: D5 01 00 [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: D5 01 00 18 72 00 5F [20:07:22]Write to MH i2c: D5 00 00 19 72 5F [20:07:22]Write i2c OK [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: D5 [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: D5 01 00 [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: D5 01 00 19 72 00 60 [20:07:22]int line is 0 - check status [20:07:22]Write to MH i2c: 01 00 00 1A 72 8C [20:07:22]Write i2c OK [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: 01 [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: 01 07 00 [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: 01 07 00 1A 72 00 00 12 00 00 FF 0F B3 [20:07:22]state=0 [20:07:22]Cutter fail [20:07:22]Cutter bad position [20:07:22]int [20:07:22]Write to MH i2c: 01 00 00 1B 72 8D [20:07:22]Write i2c OK [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: 01 [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: 01 07 00 [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: 01 07 00 1B 72 00 00 12 00 00 FF 0F B4 [20:07:22]state=0 [20:07:22]Cutter fail [20:07:22]Cutter bad position [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:56]OFD Sender: No OFD packet to send [20:09:01]OFD Sender: No OFD packet to send [20:09:06]OFD Sender: No OFD packet to send [20:09:11]OFD Sender: No OFD packet to send [20:09:16]OFD Sender: No OFD packet to send [20:09:21]OFD Sender: No OFD packet to send [20:09:26]OFD Sender: No OFD packet to send [20:09:31]OFD Sender: No OFD packet to send [20:09:36]OFD Sender: No OFD packet to send [20:09:41]OFD Sender: No OFD packet to send [20:09:46]OFD Sender: No OFD packet to send [20:09:51]OFD Sender: No OFD packet to send [20:09:54]accept exits with 7 [20:09:54]New connection [20:09:54]New thread 3066994020 created [20:09:54]Thread 3067137380 joined [20:09:54]Waiting for new connection... [20:09:54] Sock 7.Parse request [20:09:54]Sock 7.Check first char [20:09:54]Sock 7.First char is OK [20:09:54]request: POST /json_proto HTTP/1.0 [20:09:54]Method: POST [20:09:54]URL: /json_proto [20:09:54]Method is POST - this is cgi request [20:09:54]url: /json_proto [20:09:54]query_string will be loaded in cgi processing [20:09:54]execute_cgi json_proto POST (null) [20:09:54]execute_cgi path=json_proto method=POST [20:09:54]POST find Content-Length [20:09:54]Host: 172.17.44.195:8080 [20:09:54]Content-Length: 215 [20:09:54]Content-Type: application/json [20:09:54] [20:09:54]POST finish read [20:09:54]Found Content-Length = 215 [20:09:54]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:09:54]execute_script... [20:09:54]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:09:54]POST & json_proto [20:09:54]process_json_proto [20:09:54]json parsed OK: [20:09:54]protocol is kg_v1.0 [20:09:54]action value=get_value [20:09:54]process_action get_value [20:09:54]cmd_get_value [20:09:54]process_action get_value done [20:09:54]requested_data is exist [20:09:54]produce_requested_data [20:09:54]requested_item kkm.sn is exist - process it [20:09:54]requested_item kkm.ver is exist - process it [20:09:54]requested_item fm.sn is exist - process it [20:09:54]wFMCommunicate request_size=4 [20:09:54]MH_SAM_APDU [20:09:54]CAPDU: 80 11 00 00 [20:09:54]Write to MH i2c: E2 08 00 1C 72 80 11 00 00 00 00 00 00 08 [20:09:54]Write i2c OK [20:09:54]MH_I2C_Read... [20:09:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:54]Read from MH i2c: E2 [20:09:54]MH_I2C_Read... [20:09:54]Read from MH i2c: E2 17 00 [20:09:54]MH_I2C_Read... [20:09:54]Read from MH i2c: E2 17 00 1C 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5F [20:09:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:09:54]wFMCommunicate OK [20:09:54]requested_item fd.num is exist - process it [20:09:54]SAM_PROTO_GetFieldsCounters [20:09:54]wFMCommunicate request_size=4 [20:09:54]MH_SAM_APDU [20:09:54]CAPDU: 80 13 00 00 [20:09:54]Write to MH i2c: E2 08 00 1D 72 80 13 00 00 00 00 00 00 0B [20:09:54]Write i2c OK [20:09:54]MH_I2C_Read... [20:09:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:09:54]Read from MH i2c: E2 [20:09:54]MH_I2C_Read... [20:09:54]Read from MH i2c: E2 62 00 [20:09:54]MH_I2C_Read... [20:09:54]Read from MH i2c: E2 62 00 1D 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 46 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 82 01 00 00 5E 04 04 00 82 01 00 00 57 04 04 00 83 01 00 00 19 04 04 00 00 00 00 00 90 00 9B [20:09:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 46 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 82 01 00 00 5E 04 04 00 82 01 00 00 57 04 04 00 83 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:09:54]wFMCommunicate OK [20:09:54]SAM_PROTO_GetFieldsCounters done [20:09:54]requested_item shift.num is exist - process it [20:09:54]requested_item shift.opened is exist - process it [20:09:54]req_shift_opened [20:09:54]FM_GetShiftState [20:09:54]SAM_PROTO_GetShiftState [20:09:54]wFMCommunicate request_size=4 [20:09:54]MH_SAM_APDU [20:09:54]CAPDU: 80 13 01 00 [20:09:54]Write to MH i2c: E2 08 00 1E 72 80 13 01 00 00 00 00 00 0D [20:09:54]Write i2c OK [20:09:54]MH_I2C_Read... [20:09:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:54]Read from MH i2c: E2 [20:09:54]MH_I2C_Read... [20:09:54]Read from MH i2c: E2 0E 00 [20:09:54]MH_I2C_Read... [20:09:54]Read from MH i2c: E2 0E 00 1E 72 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 D4 [20:09:54]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [20:09:54]wFMCommunicate OK [20:09:54]SAM_PROTO_GetShiftState done [20:09:54]FM_GetShiftState done [20:09:54]req_shift_opened done [20:09:54]requested_item shift.open_date is exist - process it [20:09:54]req_shift_open_date [20:09:54]req_shift_open_date done [20:09:54]produce_requested_data done [20:09:54]produce_requested_data return {"kkm.sn":"0300000091","kkm.ver":"001","fm.sn":"0000000000871839","fd.num":228422,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [20:09:54]process_action_free get_value [20:09:54]json_value_free [20:09:54]json_value_free done [20:09:54]process_json_proto returns [20:09:54]Send response to host [20:09:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000091","kkm.ver":"001","fm.sn":"0000000000871839","fd.num":228422,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [20:09:54]free response buf [20:09:54]execute_script done [20:09:54]execute_script returns [20:09:54]free content buf [20:09:54]Sock 7.Close socket [20:09:54]Sock 7.Thread stoped [20:09:54]accept exits with 9 [20:09:54]New connection [20:09:54]New thread 3067137380 created [20:09:54]Thread 3066994020 joined [20:09:54]Waiting for new connection... [20:09:54] Sock 9.Parse request [20:09:54]Sock 9.Check first char [20:09:54]Sock 9.First char is OK [20:09:54]request: POST /json_proto HTTP/1.0 [20:09:54]Method: POST [20:09:54]URL: /json_proto [20:09:54]Method is POST - this is cgi request [20:09:54]url: /json_proto [20:09:54]query_string will be loaded in cgi processing [20:09:54]execute_cgi json_proto POST (null) [20:09:54]execute_cgi path=json_proto method=POST [20:09:54]POST find Content-Length [20:09:54]Host: 172.17.44.195:8080 [20:09:54]Content-Length: 331 [20:09:54]Content-Type: application/json [20:09:54] [20:09:54]POST finish read [20:09:54]Found Content-Length = 331 [20:09:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [20:09:54]execute_script... [20:09:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [20:09:54]POST & json_proto [20:09:54]process_json_proto [20:09:54]json parsed OK: [20:09:54]protocol is kg_v1.0 [20:09:54]action value=get_value [20:09:55]process_action get_value [20:09:55]cmd_get_value [20:09:55]process_action get_value done [20:09:55]requested_data is exist [20:09:55]produce_requested_data [20:09:55]requested_item fm.sale.total is exist - process it [20:09:55]SAM_PROTO_GetFMData [20:09:55]wFMCommunicate request_size=4 [20:09:55]MH_SAM_APDU [20:09:55]CAPDU: 80 13 03 00 [20:09:55]Write to MH i2c: E2 08 00 1F 72 80 13 03 00 00 00 00 00 10 [20:09:55]Write i2c OK [20:09:55]MH_I2C_Read... [20:09:55]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [20:09:55]Read from MH i2c: E2 [20:09:55]MH_I2C_Read... [20:09:55]Read from MH i2c: E2 FD 00 [20:09:55]MH_I2C_Read... [20:09:55]Read from MH i2c: E2 FD 00 1F 72 00 C5 04 85 04 C1 04 6E 04 04 00 18 78 03 00 69 04 A3 00 6F 04 04 00 27 71 03 00 B1 04 05 00 15 1E 0B C9 04 70 04 05 00 FC 8B ED 4E 04 72 04 04 00 19 92 1D 7A 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 CF 9B 22 82 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 33 0B D8 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F1 06 00 00 B1 04 04 00 18 5D D0 1E 70 04 04 00 18 5D D0 1E 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 3D C9 45 03 EF 03 09 90 00 AE [20:09:55]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 18 78 03 00 69 04 A3 00 6F 04 04 00 27 71 03 00 B1 04 05 00 15 1E 0B C9 04 70 04 05 00 FC 8B ED 4E 04 72 04 04 00 19 92 1D 7A 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 CF 9B 22 82 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 33 0B D8 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F1 06 00 00 B1 04 04 00 18 5D D0 1E 70 04 04 00 18 5D D0 1E 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 3D C9 45 03 EF 03 09 90 00 [20:09:55]wFMCommunicate OK [20:09:55]wFMCommunicate request_size=4 [20:09:55]MH_SAM_APDU [20:09:55]CAPDU: 80 17 00 00 [20:09:55]Write to MH i2c: E2 08 00 20 72 80 17 00 00 00 00 00 00 12 [20:09:55]Write i2c OK [20:09:55]MH_I2C_Read... [20:09:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:09:55]Read from MH i2c: E2 [20:09:55]MH_I2C_Read... [20:09:55]Read from MH i2c: E2 FD 00 [20:09:55]MH_I2C_Read... [20:09:55]Read from MH i2c: E2 FD 00 20 72 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 49 D0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 26 [20:09:55]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 49 D0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [20:09:55]wFMCommunicate OK [20:09:55]wFMCommunicate request_size=4 [20:09:55]MH_SAM_APDU [20:09:55]CAPDU: 80 17 00 00 [20:09:55]Write to MH i2c: E2 08 00 21 72 80 17 00 00 00 00 00 00 13 [20:09:55]Write i2c OK [20:09:55]MH_I2C_Read... [20:09:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:09:56]Read from MH i2c: E2 [20:09:56]MH_I2C_Read... [20:09:56]Read from MH i2c: E2 FD 00 [20:09:56]MH_I2C_Read... [20:09:56]Read from MH i2c: E2 FD 00 21 72 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 25 [20:09:56]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:09:56]wFMCommunicate OK [20:09:56]wFMCommunicate request_size=4 [20:09:56]MH_SAM_APDU [20:09:56]CAPDU: 80 17 00 00 [20:09:56]Write to MH i2c: E2 08 00 22 72 80 17 00 00 00 00 00 00 14 [20:09:56]Write i2c OK [20:09:56]MH_I2C_Read... [20:09:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:09:56]Read from MH i2c: E2 [20:09:56]MH_I2C_Read... [20:09:56]Read from MH i2c: E2 FD 00 [20:09:56]MH_I2C_Read... [20:09:56]Read from MH i2c: E2 FD 00 22 72 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A0 [20:09:56]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:09:56]wFMCommunicate OK [20:09:56]wFMCommunicate request_size=4 [20:09:56]MH_SAM_APDU [20:09:56]CAPDU: 80 17 00 00 [20:09:56]Write to MH i2c: E2 08 00 23 72 80 17 00 00 00 00 00 00 15 [20:09:56]OFD Sender: No OFD packet to send [20:09:56]Write i2c OK [20:09:56]MH_I2C_Read... [20:09:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [20:09:56]Read from MH i2c: E2 [20:09:56]MH_I2C_Read... [20:09:56]Read from MH i2c: E2 E2 00 [20:09:56]MH_I2C_Read... [20:09:56]Read from MH i2c: E2 E2 00 23 72 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 [20:09:56]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:09:56]wFMCommunicate OK [20:09:56]SAM_PROTO_GetFMData done [20:09:56]requested_item fm.sale_refund.total is exist - process it [20:09:56]requested_item fm.buy.total is exist - process it [20:09:56]requested_item shift.sale.total is exist - process it [20:09:56]SAM_PROTO_GetShiftData [20:09:56]wFMCommunicate request_size=4 [20:09:56]MH_SAM_APDU [20:09:56]CAPDU: 80 13 02 00 [20:09:56]Write to MH i2c: E2 08 00 24 72 80 13 02 00 00 00 00 00 14 [20:09:56]Write i2c OK [20:09:56]MH_I2C_Read... [20:09:57]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [20:09:57]Read from MH i2c: E2 [20:09:57]MH_I2C_Read... [20:09:57]Read from MH i2c: E2 FD 00 [20:09:57]MH_I2C_Read... [20:09:57]Read from MH i2c: E2 FD 00 24 72 00 B1 04 AA 04 AD 04 6E 04 04 00 82 01 00 00 69 04 9E 00 6F 04 04 00 82 01 00 00 B1 04 04 00 DC 63 DE 01 70 04 04 00 94 7A 8B 01 72 04 03 00 48 E9 52 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 37 D1 32 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 0F 3C 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 B5 [20:09:57]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 82 01 00 00 69 04 9E 00 6F 04 04 00 82 01 00 00 B1 04 04 00 DC 63 DE 01 70 04 04 00 94 7A 8B 01 72 04 03 00 48 E9 52 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 37 D1 32 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 0F 3C 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [20:09:57]wFMCommunicate OK [20:09:57]wFMCommunicate request_size=4 [20:09:57]MH_SAM_APDU [20:09:57]CAPDU: 80 17 00 00 [20:09:57]Write to MH i2c: E2 08 00 25 72 80 17 00 00 00 00 00 00 17 [20:09:57]Write i2c OK [20:09:57]MH_I2C_Read... [20:09:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:09:57]Read from MH i2c: E2 [20:09:57]MH_I2C_Read... [20:09:57]Read from MH i2c: E2 FD 00 [20:09:57]MH_I2C_Read... [20:09:57]Read from MH i2c: E2 FD 00 25 72 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 30 [20:09:57]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:09:57]wFMCommunicate OK [20:09:57]wFMCommunicate request_size=4 [20:09:57]MH_SAM_APDU [20:09:57]CAPDU: 80 17 00 00 [20:09:57]Write to MH i2c: E2 08 00 26 72 80 17 00 00 00 00 00 00 18 [20:09:57]Write i2c OK [20:09:57]MH_I2C_Read... [20:09:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:09:57]Read from MH i2c: E2 [20:09:57]MH_I2C_Read... [20:09:57]Read from MH i2c: E2 FD 00 [20:09:57]MH_I2C_Read... [20:09:57]Read from MH i2c: E2 FD 00 26 72 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D1 [20:09:57]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:09:57]wFMCommunicate OK [20:09:57]wFMCommunicate request_size=4 [20:09:57]MH_SAM_APDU [20:09:57]CAPDU: 80 17 00 00 [20:09:57]Write to MH i2c: E2 08 00 27 72 80 17 00 00 00 00 00 00 19 [20:09:57]Write i2c OK [20:09:57]MH_I2C_Read... [20:09:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:09:58]Read from MH i2c: E2 [20:09:58]MH_I2C_Read... [20:09:58]Read from MH i2c: E2 FD 00 [20:09:58]MH_I2C_Read... [20:09:58]Read from MH i2c: E2 FD 00 27 72 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 90 00 91 [20:09:58]RAPDU: 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 90 00 [20:09:58]wFMCommunicate OK [20:09:58]wFMCommunicate request_size=4 [20:09:58]MH_SAM_APDU [20:09:58]CAPDU: 80 17 00 00 [20:09:58]Write to MH i2c: E2 08 00 28 72 80 17 00 00 00 00 00 00 1A [20:09:58]Write i2c OK [20:09:58]MH_I2C_Read... [20:09:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [20:09:58]Read from MH i2c: E2 [20:09:58]MH_I2C_Read... [20:09:58]Read from MH i2c: E2 CE 00 [20:09:58]MH_I2C_Read... [20:09:58]Read from MH i2c: E2 CE 00 28 72 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FF [20:09:58]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:09:58]wFMCommunicate OK [20:09:58]SAM_PROTO_GetShiftData done [20:09:58]requested_item shift.sale.total_cash is exist - process it [20:09:58]requested_item shift.sale_refund.total is exist - process it [20:09:58]requested_item shift.sale_refund.total_cash is exist - process it [20:09:58]requested_item shift.buy.total is exist - process it [20:09:58]requested_item shift.buy.total_cash is exist - process it [20:09:58]produce_requested_data done [20:09:58]produce_requested_data return {"fm.sale.total":205528181.97,"fm.sale_refund.total":5169718.00,"fm.buy.total":0.00,"shift.sale.total":313517.72,"shift.sale.total_cash":259181.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} [20:09:58]process_action_free get_value [20:09:58]json_value_free [20:09:58]json_value_free done [20:09:58]process_json_proto returns [20:09:58]Send response to host [20:09:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":205528181.97,"fm.sale_refund.total":5169718.00,"fm.buy.total":0.00,"shift.sale.total":313517.72,"shift.sale.total_cash":259181.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}}} [20:09:58]free response buf [20:09:58]execute_script done [20:09:58]execute_script returns [20:09:58]free content buf [20:09:58]Sock 9.Close socket [20:09:58]Sock 9.Thread stoped [20:09:58]accept exits with 7 [20:09:58]New connection [20:09:58]New thread 3066994020 created [20:09:58]Thread 3067137380 joined [20:09:58]Waiting for new connection... [20:09:58] Sock 7.Parse request [20:09:58]Sock 7.Check first char [20:09:58]Sock 7.First char is OK [20:09:58]request: POST /json_proto HTTP/1.0 [20:09:58]Method: POST [20:09:58]URL: /json_proto [20:09:58]Method is POST - this is cgi request [20:09:58]url: /json_proto [20:09:58]query_string will be loaded in cgi processing [20:09:58]execute_cgi json_proto POST (null) [20:09:58]execute_cgi path=json_proto method=POST [20:09:58]POST find Content-Length [20:09:58]Host: 172.17.44.195:8080 [20:09:58]Content-Length: 144 [20:09:58]Content-Type: application/json [20:09:58] [20:09:58]POST finish read [20:09:58]Found Content-Length = 144 [20:09:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [20:09:58]execute_script... [20:09:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [20:09:58]POST & json_proto [20:09:58]process_json_proto [20:09:58]json parsed OK: [20:09:58]protocol is kg_v1.0 [20:09:58]action value=print_doc [20:09:58]process_action print_doc [20:09:58]ExternCall_PrintAddStr [20:09:58]wPrintStart [20:09:58]Write to MH i2c: 01 00 00 29 72 9B [20:09:58]Write i2c OK [20:09:58]MH_I2C_Read... [20:09:58]Read from MH i2c: 01 [20:09:58]MH_I2C_Read... [20:09:58]Read from MH i2c: 01 07 00 [20:09:58]MH_I2C_Read... [20:09:58]Read from MH i2c: 01 07 00 29 72 00 00 12 00 00 FF 0F C2 [20:09:58]MH_Cut [20:09:58]Write to MH i2c: D1 01 00 2A 72 01 6E [20:09:58]Write i2c OK [20:09:58]MH_I2C_Read... [20:09:58]Read from MH i2c: D1 [20:09:58]MH_I2C_Read... [20:09:58]Read from MH i2c: D1 01 00 [20:09:58]MH_I2C_Read... [20:09:58]*** Cut start [20:09:58]*** Partial cut [20:09:58]*** CUTSNS_PIN = 0 [20:09:58]Read from MH i2c: D1 01 00 2A 72 00 6D [20:09:58]Write to MH i2c: 01 00 00 2B 72 9D [20:09:58]Write i2c OK [20:09:58]MH_I2C_Read... [20:09:59]*** Brake cut motor [20:10:00]Read from MH i2c: 01 [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: 01 07 00 [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: 01 07 00 2B 72 00 00 12 00 00 FF 0F C4 [20:10:00]process_action_free print_doc [20:10:00]json_value_free [20:10:00]json_value_free done [20:10:00]process_json_proto returns [20:10:00]Send response to host [20:10:00]{"protocol":"kg_v1.0","response":{"error":1047,"error_desc":"Cutter error"}} [20:10:00]free response buf [20:10:00]execute_script done [20:10:00]execute_script returns [20:10:00]free content buf [20:10:00]Sock 7.Close socket [20:10:00]Sock 7.Thread stoped [20:10:00]int [20:10:00]Write to MH i2c: 01 00 00 2C 72 9E [20:10:00]*** Stop cut motor [20:10:00]*** FLAG_CUTTER_FAIL [20:10:00]*** Cut end [20:10:00]*** FLAG_PRN_PAP1 set [20:10:00]*** FLAG_PRN_PAP2 set [20:10:00]Write i2c OK [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: 01 [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: 01 07 00 [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: 01 07 00 2C 72 00 03 12 00 00 FF 0F C8 [20:10:00]state=0 [20:10:00]No paper [20:10:00]Cover opened [20:10:00]Cutter fail [20:10:00]Cutter bad position [20:10:01]OFD Sender: No OFD packet to send [20:10:05]Write to MH i2c: 01 00 00 2D 72 9F [20:10:05]Write i2c OK [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: 01 [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: 01 07 00 [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: 01 07 00 2D 72 00 03 12 00 00 FF 0F C9 [20:10:05]state=3 [20:10:05]No paper [20:10:05]Cover opened [20:10:05]Cutter fail [20:10:05]Cutter bad position [20:10:06]OFD Sender: No OFD packet to send [20:10:10]Write to MH i2c: 01 00 00 2E 72 A0 [20:10:10]Write i2c OK [20:10:10]MH_I2C_Read... [20:10:10]Read from MH i2c: 01 [20:10:10]MH_I2C_Read... [20:10:10]Read from MH i2c: 01 07 00 [20:10:10]MH_I2C_Read... [20:10:10]Read from MH i2c: 01 07 00 2E 72 00 03 12 00 00 FF 0F CA [20:10:10]state=3 [20:10:10]No paper [20:10:10]Cover opened [20:10:10]Cutter fail [20:10:10]Cutter bad position [20:10:11]OFD Sender: No OFD packet to send [20:10:15]Write to MH i2c: 01 00 00 2F 72 A1 [20:10:15]Write i2c OK [20:10:15]MH_I2C_Read... [20:10:15]Read from MH i2c: 01 [20:10:15]MH_I2C_Read... [20:10:15]Read from MH i2c: 01 07 00 [20:10:15]MH_I2C_Read... [20:10:15]Read from MH i2c: 01 07 00 2F 72 00 03 12 00 00 FF 0F CB [20:10:15]state=3 [20:10:15]No paper [20:10:15]Cover opened [20:10:15]Cutter fail [20:10:15]Cutter bad position [20:10:15]int [20:10:15]Write to MH i2c: 01 00 00 30 72 A2 [20:10:15]*** FLAG_PRN_PAP2 reset [20:10:15]Write i2c OK [20:10:15]MH_I2C_Read... [20:10:15]Read from MH i2c: 01 [20:10:15]MH_I2C_Read... [20:10:15]Read from MH i2c: 01 07 00 [20:10:15]MH_I2C_Read... [20:10:15]Read from MH i2c: 01 07 00 30 72 00 01 12 00 00 FF 0F CA [20:10:15]state=3 [20:10:15]No paper [20:10:15]Cutter fail [20:10:15]Cutter bad position [20:10:15]Cover closed [20:10:15]int [20:10:15]Write to MH i2c: 01 00 00 31 72 A3 [20:10:15]*** FLAG_PRN_PAP2 set [20:10:15]Write i2c OK [20:10:15]MH_I2C_Read... [20:10:15]Read from MH i2c: 01 [20:10:15]MH_I2C_Read... [20:10:15]Read from MH i2c: 01 07 00 [20:10:15]MH_I2C_Read... [20:10:15]Read from MH i2c: 01 07 00 31 72 00 03 12 00 00 FF 0F CD [20:10:15]state=0 [20:10:15]No paper [20:10:15]Cover opened [20:10:15]Cutter fail [20:10:15]Cutter bad position [20:10:16]OFD Sender: No OFD packet to send [20:10:20]Write to MH i2c: 01 00 00 32 72 A4 [20:10:20]Write i2c OK [20:10:20]MH_I2C_Read... [20:10:20]Read from MH i2c: 01 [20:10:20]MH_I2C_Read... [20:10:20]Read from MH i2c: 01 07 00 [20:10:20]MH_I2C_Read... [20:10:20]Read from MH i2c: 01 07 00 32 72 00 03 12 00 00 FF 0F CE [20:10:20]state=3 [20:10:20]No paper [20:10:20]Cover opened [20:10:20]Cutter fail [20:10:20]Cutter bad position [20:10:21]OFD Sender: No OFD packet to send [20:10:25]Write to MH i2c: 01 00 00 33 72 A5 [20:10:25]Write i2c OK [20:10:25]MH_I2C_Read... [20:10:25]Read from MH i2c: 01 [20:10:25]MH_I2C_Read... [20:10:25]Read from MH i2c: 01 07 00 [20:10:25]MH_I2C_Read... [20:10:25]Read from MH i2c: 01 07 00 33 72 00 03 12 00 00 FF 0F CF [20:10:25]state=3 [20:10:25]No paper [20:10:25]Cover opened [20:10:25]Cutter fail [20:10:25]Cutter bad position [20:10:26]OFD Sender: No OFD packet to send [20:10:30]Write to MH i2c: 01 00 00 34 72 A6 [20:10:30]Write i2c OK [20:10:30]MH_I2C_Read... [20:10:30]Read from MH i2c: 01 [20:10:30]MH_I2C_Read... [20:10:30]Read from MH i2c: 01 07 00 [20:10:30]MH_I2C_Read... [20:10:30]Read from MH i2c: 01 07 00 34 72 00 03 12 00 00 FF 0F D0 [20:10:30]state=3 [20:10:30]No paper [20:10:30]Cover opened [20:10:30]Cutter fail [20:10:30]Cutter bad position [20:10:31]OFD Sender: No OFD packet to send [20:10:35]Write to MH i2c: 01 00 00 35 72 A7 [20:10:35]Write i2c OK [20:10:35]MH_I2C_Read... [20:10:35]Read from MH i2c: 01 [20:10:35]MH_I2C_Read... [20:10:35]Read from MH i2c: 01 07 00 [20:10:35]MH_I2C_Read... [20:10:35]Read from MH i2c: 01 07 00 35 72 00 03 12 00 00 FF 0F D1 [20:10:35]state=3 [20:10:35]No paper [20:10:35]Cover opened [20:10:35]Cutter fail [20:10:35]Cutter bad position [20:10:36]OFD Sender: No OFD packet to send [20:10:40]Write to MH i2c: 01 00 00 36 72 A8 [20:10:40]Write i2c OK [20:10:40]MH_I2C_Read... [20:10:40]Read from MH i2c: 01 [20:10:40]MH_I2C_Read... [20:10:40]Read from MH i2c: 01 07 00 [20:10:40]MH_I2C_Read... [20:10:40]Read from MH i2c: 01 07 00 36 72 00 03 12 00 00 FF 0F D2 [20:10:40]state=3 [20:10:40]No paper [20:10:40]Cover opened [20:10:40]Cutter fail [20:10:40]Cutter bad position [20:10:41]OFD Sender: No OFD packet to send [20:10:45]Write to MH i2c: 01 00 00 37 72 A9 [20:10:45]Write i2c OK [20:10:45]MH_I2C_Read... [20:10:45]Read from MH i2c: 01 [20:10:45]MH_I2C_Read... [20:10:45]Read from MH i2c: 01 07 00 [20:10:45]MH_I2C_Read... [20:10:45]Read from MH i2c: 01 07 00 37 72 00 03 12 00 00 FF 0F D3 [20:10:45]state=3 [20:10:45]No paper [20:10:45]Cover opened [20:10:45]Cutter fail [20:10:45]Cutter bad position [20:10:46]OFD Sender: No OFD packet to send [20:10:50]Write to MH i2c: 01 00 00 38 72 AA [20:10:50]Write i2c OK [20:10:50]MH_I2C_Read... [20:10:50]Read from MH i2c: 01 [20:10:50]MH_I2C_Read... [20:10:50]Read from MH i2c: 01 07 00 [20:10:50]MH_I2C_Read... [20:10:50]Read from MH i2c: 01 07 00 38 72 00 03 12 00 00 FF 0F D4 [20:10:50]state=3 [20:10:50]No paper [20:10:50]Cover opened [20:10:50]Cutter fail [20:10:50]Cutter bad position [20:10:51]OFD Sender: No OFD packet to send [20:10:55]Write to MH i2c: 01 00 00 39 72 AB [20:10:55]Write i2c OK [20:10:55]MH_I2C_Read... [20:10:55]Read from MH i2c: 01 [20:10:55]MH_I2C_Read... [20:10:55]Read from MH i2c: 01 07 00 [20:10:55]MH_I2C_Read... [20:10:55]Read from MH i2c: 01 07 00 39 72 00 03 12 00 00 FF 0F D5 [20:10:55]state=3 [20:10:55]No paper [20:10:55]Cover opened [20:10:55]Cutter fail [20:10:55]Cutter bad position [20:10:56]OFD Sender: No OFD packet to send [20:11:00]Write to MH i2c: 01 00 00 3A 72 AC [20:11:00]Write i2c OK [20:11:00]MH_I2C_Read... [20:11:00]Read from MH i2c: 01 [20:11:00]MH_I2C_Read... [20:11:00]Read from MH i2c: 01 07 00 [20:11:00]MH_I2C_Read... [20:11:00]Read from MH i2c: 01 07 00 3A 72 00 03 12 00 00 FF 0F D6 [20:11:00]state=3 [20:11:00]No paper [20:11:00]Cover opened [20:11:00]Cutter fail [20:11:00]Cutter bad position [20:11:01]OFD Sender: No OFD packet to send [20:11:05]Write to MH i2c: 01 00 00 3B 72 AD [20:11:05]Write i2c OK [20:11:05]MH_I2C_Read... [20:11:05]Read from MH i2c: 01 [20:11:05]MH_I2C_Read... [20:11:05]Read from MH i2c: 01 07 00 [20:11:05]MH_I2C_Read... [20:11:05]Read from MH i2c: 01 07 00 3B 72 00 03 12 00 00 FF 0F D7 [20:11:05]state=3 [20:11:05]No paper [20:11:05]Cover opened [20:11:05]Cutter fail [20:11:05]Cutter bad position [20:11:06]OFD Sender: No OFD packet to send [20:11:10]Write to MH i2c: 01 00 00 3C 72 AE [20:11:10]Write i2c OK [20:11:10]MH_I2C_Read... [20:11:10]Read from MH i2c: 01 [20:11:10]MH_I2C_Read... [20:11:10]Read from MH i2c: 01 07 00 [20:11:10]MH_I2C_Read... [20:11:10]Read from MH i2c: 01 07 00 3C 72 00 03 12 00 00 FF 0F D8 [20:11:10]state=3 [20:11:10]No paper [20:11:10]Cover opened [20:11:10]Cutter fail [20:11:10]Cutter bad position [20:11:11]OFD Sender: No OFD packet to send [20:11:15]Write to MH i2c: 01 00 00 3D 72 AF [20:11:15]Write i2c OK [20:11:15]MH_I2C_Read... [20:11:15]Read from MH i2c: 01 [20:11:15]MH_I2C_Read... [20:11:15]Read from MH i2c: 01 07 00 [20:11:15]MH_I2C_Read... [20:11:15]Read from MH i2c: 01 07 00 3D 72 00 03 12 00 00 FF 0F D9 [20:11:15]state=3 [20:11:15]No paper [20:11:15]Cover opened [20:11:15]Cutter fail [20:11:15]Cutter bad position [20:11:16]OFD Sender: No OFD packet to send [20:11:20]Write to MH i2c: 01 00 00 3E 72 B0 [20:11:20]Write i2c OK [20:11:20]MH_I2C_Read... [20:11:20]Read from MH i2c: 01 [20:11:20]MH_I2C_Read... [20:11:20]Read from MH i2c: 01 07 00 [20:11:20]MH_I2C_Read... [20:11:20]Read from MH i2c: 01 07 00 3E 72 00 03 12 00 00 FF 0F DA [20:11:20]state=3 [20:11:20]No paper [20:11:20]Cover opened [20:11:20]Cutter fail [20:11:20]Cutter bad position [20:11:21]OFD Sender: No OFD packet to send [20:11:25]Write to MH i2c: 01 00 00 3F 72 B1 [20:11:25]Write i2c OK [20:11:25]MH_I2C_Read... [20:11:25]Read from MH i2c: 01 [20:11:25]MH_I2C_Read... [20:11:25]Read from MH i2c: 01 07 00 [20:11:25]MH_I2C_Read... [20:11:25]Read from MH i2c: 01 07 00 3F 72 00 03 12 00 00 FF 0F DB [20:11:25]state=3 [20:11:25]No paper [20:11:25]Cover opened [20:11:25]Cutter fail [20:11:25]Cutter bad position [20:11:26]OFD Sender: No OFD packet to send [20:11:30]Write to MH i2c: 01 00 00 40 72 B2 [20:11:30]Write i2c OK [20:11:30]MH_I2C_Read... [20:11:30]Read from MH i2c: 01 [20:11:30]MH_I2C_Read... [20:11:30]Read from MH i2c: 01 07 00 [20:11:30]MH_I2C_Read... [20:11:30]Read from MH i2c: 01 07 00 40 72 00 03 12 00 00 FF 0F DC [20:11:30]state=3 [20:11:30]No paper [20:11:30]Cover opened [20:11:30]Cutter fail [20:11:30]Cutter bad position [20:11:31]OFD Sender: No OFD packet to send [20:11:35]Write to MH i2c: 01 00 00 41 72 B3 [20:11:35]Write i2c OK [20:11:35]MH_I2C_Read... [20:11:35]Read from MH i2c: 01 [20:11:35]MH_I2C_Read... [20:11:35]Read from MH i2c: 01 07 00 [20:11:35]MH_I2C_Read... [20:11:35]Read from MH i2c: 01 07 00 41 72 00 03 12 00 00 FF 0F DD [20:11:35]state=3 [20:11:35]No paper [20:11:35]Cover opened [20:11:35]Cutter fail [20:11:35]Cutter bad position [20:11:36]OFD Sender: No OFD packet to send [20:11:40]Write to MH i2c: 01 00 00 42 72 B4 [20:11:40]Write i2c OK [20:11:40]MH_I2C_Read... [20:11:40]Read from MH i2c: 01 [20:11:40]MH_I2C_Read... [20:11:40]Read from MH i2c: 01 07 00 [20:11:40]MH_I2C_Read... [20:11:40]Read from MH i2c: 01 07 00 42 72 00 03 12 00 00 FF 0F DE [20:11:40]state=3 [20:11:40]No paper [20:11:40]Cover opened [20:11:40]Cutter fail [20:11:40]Cutter bad position [20:11:41]OFD Sender: No OFD packet to send [20:11:45]Write to MH i2c: 01 00 00 43 72 B5 [20:11:45]Write i2c OK [20:11:45]MH_I2C_Read... [20:11:45]Read from MH i2c: 01 [20:11:45]MH_I2C_Read... [20:11:45]Read from MH i2c: 01 07 00 [20:11:45]MH_I2C_Read... [20:11:45]Read from MH i2c: 01 07 00 43 72 00 03 12 00 00 FF 0F DF [20:11:45]state=3 [20:11:45]No paper [20:11:45]Cover opened [20:11:45]Cutter fail [20:11:45]Cutter bad position [20:11:46]OFD Sender: No OFD packet to send [20:11:50]Write to MH i2c: 01 00 00 44 72 B6 [20:11:50]Write i2c OK [20:11:50]MH_I2C_Read... [20:11:50]Read from MH i2c: 01 [20:11:50]MH_I2C_Read... [20:11:50]Read from MH i2c: 01 07 00 [20:11:50]MH_I2C_Read... [20:11:50]Read from MH i2c: 01 07 00 44 72 00 03 12 00 00 FF 0F E0 [20:11:50]state=3 [20:11:50]No paper [20:11:50]Cover opened [20:11:50]Cutter fail [20:11:50]Cutter bad position [20:11:51]OFD Sender: No OFD packet to send [20:11:55]Write to MH i2c: 01 00 00 45 72 B7 [20:11:55]Write i2c OK [20:11:55]MH_I2C_Read... [20:11:55]Read from MH i2c: 01 [20:11:55]MH_I2C_Read... [20:11:55]Read from MH i2c: 01 07 00 [20:11:55]MH_I2C_Read... [20:11:55]Read from MH i2c: 01 07 00 45 72 00 03 12 00 00 FF 0F E1 [20:11:55]state=3 [20:11:55]No paper [20:11:55]Cover opened [20:11:55]Cutter fail [20:11:55]Cutter bad position [20:11:56]OFD Sender: No OFD packet to send [20:12:00]Write to MH i2c: 01 00 00 46 72 B8 [20:12:00]Write i2c OK [20:12:00]MH_I2C_Read... [20:12:00]Read from MH i2c: 01 [20:12:00]MH_I2C_Read... [20:12:00]Read from MH i2c: 01 07 00 [20:12:00]MH_I2C_Read... [20:12:00]Read from MH i2c: 01 07 00 46 72 00 03 12 00 00 FF 0F E2 [20:12:00]state=3 [20:12:00]No paper [20:12:00]Cover opened [20:12:00]Cutter fail [20:12:00]Cutter bad position [20:12:01]OFD Sender: No OFD packet to send [20:12:05]Write to MH i2c: 01 00 00 47 72 B9 [20:12:05]Write i2c OK [20:12:05]MH_I2C_Read... [20:12:05]Read from MH i2c: 01 [20:12:05]MH_I2C_Read... [20:12:05]Read from MH i2c: 01 07 00 [20:12:05]MH_I2C_Read... [20:12:05]Read from MH i2c: 01 07 00 47 72 00 03 12 00 00 FF 0F E3 [20:12:05]state=3 [20:12:05]No paper [20:12:05]Cover opened [20:12:05]Cutter fail [20:12:05]Cutter bad position [20:12:06]OFD Sender: No OFD packet to send [20:12:10]Write to MH i2c: 01 00 00 48 72 BA [20:12:10]Write i2c OK [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: 01 [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: 01 07 00 [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: 01 07 00 48 72 00 03 12 00 00 FF 0F E4 [20:12:10]state=3 [20:12:10]No paper [20:12:10]Cover opened [20:12:10]Cutter fail [20:12:10]Cutter bad position [20:12:11]OFD Sender: No OFD packet to send [20:12:15]Write to MH i2c: 01 00 00 49 72 BB [20:12:15]Write i2c OK [20:12:15]MH_I2C_Read... [20:12:15]Read from MH i2c: 01 [20:12:15]MH_I2C_Read... [20:12:15]Read from MH i2c: 01 07 00 [20:12:15]MH_I2C_Read... [20:12:15]Read from MH i2c: 01 07 00 49 72 00 03 12 00 00 FF 0F E5 [20:12:15]state=3 [20:12:15]No paper [20:12:15]Cover opened [20:12:15]Cutter fail [20:12:15]Cutter bad position [20:12:16]OFD Sender: No OFD packet to send [20:12:20]Write to MH i2c: 01 00 00 4A 72 BC [20:12:20]Write i2c OK [20:12:20]MH_I2C_Read... [20:12:20]Read from MH i2c: 01 [20:12:20]MH_I2C_Read... [20:12:20]Read from MH i2c: 01 07 00 [20:12:20]MH_I2C_Read... [20:12:20]Read from MH i2c: 01 07 00 4A 72 00 03 12 00 00 FF 0F E6 [20:12:20]state=3 [20:12:20]No paper [20:12:20]Cover opened [20:12:20]Cutter fail [20:12:20]Cutter bad position [20:12:21]OFD Sender: No OFD packet to send [20:12:25]Write to MH i2c: 01 00 00 4B 72 BD [20:12:25]Write i2c OK [20:12:25]MH_I2C_Read... [20:12:25]Read from MH i2c: 01 [20:12:25]MH_I2C_Read... [20:12:25]Read from MH i2c: 01 07 00 [20:12:25]MH_I2C_Read... [20:12:25]Read from MH i2c: 01 07 00 4B 72 00 03 12 00 00 FF 0F E7 [20:12:25]state=3 [20:12:25]No paper [20:12:25]Cover opened [20:12:25]Cutter fail [20:12:25]Cutter bad position [20:12:26]OFD Sender: No OFD packet to send [20:12:30]Write to MH i2c: 01 00 00 4C 72 BE [20:12:30]Write i2c OK [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: 01 [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: 01 07 00 [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: 01 07 00 4C 72 00 03 12 00 00 FF 0F E8 [20:12:30]state=3 [20:12:30]No paper [20:12:30]Cover opened [20:12:30]Cutter fail [20:12:30]Cutter bad position [20:12:31]OFD Sender: No OFD packet to send [20:12:35]Write to MH i2c: 01 00 00 4D 72 BF [20:12:35]Write i2c OK [20:12:35]MH_I2C_Read... [20:12:35]Read from MH i2c: 01 [20:12:35]MH_I2C_Read... [20:12:35]Read from MH i2c: 01 07 00 [20:12:35]MH_I2C_Read... [20:12:35]Read from MH i2c: 01 07 00 4D 72 00 03 12 00 00 FF 0F E9 [20:12:35]state=3 [20:12:35]No paper [20:12:35]Cover opened [20:12:35]Cutter fail [20:12:35]Cutter bad position [20:12:36]OFD Sender: No OFD packet to send [20:12:40]Write to MH i2c: 01 00 00 4E 72 C0 [20:12:40]Write i2c OK [20:12:40]MH_I2C_Read... [20:12:40]Read from MH i2c: 01 [20:12:40]MH_I2C_Read... [20:12:40]Read from MH i2c: 01 07 00 [20:12:40]MH_I2C_Read... [20:12:40]Read from MH i2c: 01 07 00 4E 72 00 03 12 00 00 FF 0F EA [20:12:40]state=3 [20:12:40]No paper [20:12:40]Cover opened [20:12:40]Cutter fail [20:12:40]Cutter bad position [20:12:41]OFD Sender: No OFD packet to send [20:12:45]Write to MH i2c: 01 00 00 4F 72 C1 [20:12:45]Write i2c OK [20:12:45]MH_I2C_Read... [20:12:45]Read from MH i2c: 01 [20:12:45]MH_I2C_Read... [20:12:45]Read from MH i2c: 01 07 00 [20:12:45]MH_I2C_Read... [20:12:45]Read from MH i2c: 01 07 00 4F 72 00 03 12 00 00 FF 0F EB [20:12:45]state=3 [20:12:45]No paper [20:12:45]Cover opened [20:12:45]Cutter fail [20:12:45]Cutter bad position [20:12:46]OFD Sender: No OFD packet to send [20:12:50]Write to MH i2c: 01 00 00 50 72 C2 [20:12:50]Write i2c OK [20:12:50]MH_I2C_Read... [20:12:50]Read from MH i2c: 01 [20:12:50]MH_I2C_Read... [20:12:50]Read from MH i2c: 01 07 00 [20:12:50]MH_I2C_Read... [20:12:50]Read from MH i2c: 01 07 00 50 72 00 03 12 00 00 FF 0F EC [20:12:50]state=3 [20:12:50]No paper [20:12:50]Cover opened [20:12:50]Cutter fail [20:12:50]Cutter bad position [20:12:51]OFD Sender: No OFD packet to send [20:12:55]Write to MH i2c: 01 00 00 51 72 C3 [20:12:55]Write i2c OK [20:12:55]MH_I2C_Read... [20:12:55]Read from MH i2c: 01 [20:12:55]MH_I2C_Read... [20:12:55]Read from MH i2c: 01 07 00 [20:12:55]MH_I2C_Read... [20:12:55]Read from MH i2c: 01 07 00 51 72 00 03 12 00 00 FF 0F ED [20:12:55]state=3 [20:12:55]No paper [20:12:55]Cover opened [20:12:55]Cutter fail [20:12:55]Cutter bad position [20:12:56]OFD Sender: No OFD packet to send [20:13:00]Write to MH i2c: 01 00 00 52 72 C4 [20:13:00]Write i2c OK [20:13:00]MH_I2C_Read... [20:13:00]Read from MH i2c: 01 [20:13:00]MH_I2C_Read... [20:13:00]Read from MH i2c: 01 07 00 [20:13:00]MH_I2C_Read... [20:13:00]Read from MH i2c: 01 07 00 52 72 00 03 12 00 00 FF 0F EE [20:13:00]state=3 [20:13:00]No paper [20:13:00]Cover opened [20:13:00]Cutter fail [20:13:00]Cutter bad position [20:13:01]OFD Sender: No OFD packet to send [20:13:05]Write to MH i2c: 01 00 00 53 72 C5 [20:13:05]Write i2c OK [20:13:05]MH_I2C_Read... [20:13:05]Read from MH i2c: 01 [20:13:05]MH_I2C_Read... [20:13:05]Read from MH i2c: 01 07 00 [20:13:05]MH_I2C_Read... [20:13:05]Read from MH i2c: 01 07 00 53 72 00 03 12 00 00 FF 0F EF [20:13:05]state=3 [20:13:05]No paper [20:13:05]Cover opened [20:13:05]Cutter fail [20:13:05]Cutter bad position [20:13:06]OFD Sender: No OFD packet to send [20:13:10]Write to MH i2c: 01 00 00 54 72 C6 [20:13:10]Write i2c OK [20:13:10]MH_I2C_Read... [20:13:10]Read from MH i2c: 01 [20:13:10]MH_I2C_Read... [20:13:10]Read from MH i2c: 01 07 00 [20:13:10]MH_I2C_Read... [20:13:10]Read from MH i2c: 01 07 00 54 72 00 03 12 00 00 FF 0F F0 [20:13:10]state=3 [20:13:10]No paper [20:13:10]Cover opened [20:13:10]Cutter fail [20:13:10]Cutter bad position [20:13:11]OFD Sender: No OFD packet to send [20:13:15]Write to MH i2c: 01 00 00 55 72 C7 [20:13:15]Write i2c OK [20:13:15]MH_I2C_Read... [20:13:15]Read from MH i2c: 01 [20:13:15]MH_I2C_Read... [20:13:15]Read from MH i2c: 01 07 00 [20:13:15]MH_I2C_Read... [20:13:15]Read from MH i2c: 01 07 00 55 72 00 03 12 00 00 FF 0F F1 [20:13:15]state=3 [20:13:15]No paper [20:13:15]Cover opened [20:13:15]Cutter fail [20:13:15]Cutter bad position [20:13:16]OFD Sender: No OFD packet to send [20:13:20]Write to MH i2c: 01 00 00 56 72 C8 [20:13:20]Write i2c OK [20:13:20]MH_I2C_Read... [20:13:20]Read from MH i2c: 01 [20:13:20]MH_I2C_Read... [20:13:20]Read from MH i2c: 01 07 00 [20:13:20]MH_I2C_Read... [20:13:20]Read from MH i2c: 01 07 00 56 72 00 03 12 00 00 FF 0F F2 [20:13:20]state=3 [20:13:20]No paper [20:13:20]Cover opened [20:13:20]Cutter fail [20:13:20]Cutter bad position [20:13:21]OFD Sender: No OFD packet to send [20:13:25]Write to MH i2c: 01 00 00 57 72 C9 [20:13:25]Write i2c OK [20:13:25]MH_I2C_Read... [20:13:25]Read from MH i2c: 01 [20:13:25]MH_I2C_Read... [20:13:25]Read from MH i2c: 01 07 00 [20:13:25]MH_I2C_Read... [20:13:25]Read from MH i2c: 01 07 00 57 72 00 03 12 00 00 FF 0F F3 [20:13:25]state=3 [20:13:25]No paper [20:13:25]Cover opened [20:13:25]Cutter fail [20:13:25]Cutter bad position [20:13:26]OFD Sender: No OFD packet to send [20:13:30]Write to MH i2c: 01 00 00 58 72 CA [20:13:30]Write i2c OK [20:13:30]MH_I2C_Read... [20:13:30]Read from MH i2c: 01 [20:13:30]MH_I2C_Read... [20:13:30]Read from MH i2c: 01 07 00 [20:13:30]MH_I2C_Read... [20:13:30]Read from MH i2c: 01 07 00 58 72 00 03 12 00 00 FF 0F F4 [20:13:30]state=3 [20:13:30]No paper [20:13:30]Cover opened [20:13:30]Cutter fail [20:13:30]Cutter bad position [20:13:31]OFD Sender: No OFD packet to send [20:13:35]Write to MH i2c: 01 00 00 59 72 CB [20:13:35]Write i2c OK [20:13:35]MH_I2C_Read... [20:13:35]Read from MH i2c: 01 [20:13:35]MH_I2C_Read... [20:13:35]Read from MH i2c: 01 07 00 [20:13:35]MH_I2C_Read... [20:13:35]Read from MH i2c: 01 07 00 59 72 00 03 12 00 00 FF 0F F5 [20:13:35]state=3 [20:13:35]No paper [20:13:35]Cover opened [20:13:35]Cutter fail [20:13:35]Cutter bad position [20:13:36]OFD Sender: No OFD packet to send [20:13:40]Write to MH i2c: 01 00 00 5A 72 CC [20:13:40]Write i2c OK [20:13:40]MH_I2C_Read... [20:13:40]Read from MH i2c: 01 [20:13:40]MH_I2C_Read... [20:13:40]Read from MH i2c: 01 07 00 [20:13:40]MH_I2C_Read... [20:13:40]Read from MH i2c: 01 07 00 5A 72 00 03 12 00 00 FF 0F F6 [20:13:40]state=3 [20:13:40]No paper [20:13:40]Cover opened [20:13:40]Cutter fail [20:13:40]Cutter bad position [20:13:41]OFD Sender: No OFD packet to send [20:13:45]Write to MH i2c: 01 00 00 5B 72 CD [20:13:45]Write i2c OK [20:13:45]MH_I2C_Read... [20:13:45]Read from MH i2c: 01 [20:13:45]MH_I2C_Read... [20:13:45]Read from MH i2c: 01 07 00 [20:13:45]MH_I2C_Read... [20:13:45]Read from MH i2c: 01 07 00 5B 72 00 03 12 00 00 FF 0F F7 [20:13:45]state=3 [20:13:45]No paper [20:13:45]Cover opened [20:13:45]Cutter fail [20:13:45]Cutter bad position [20:13:46]OFD Sender: No OFD packet to send [20:13:50]Write to MH i2c: 01 00 00 5C 72 CE [20:13:50]Write i2c OK [20:13:50]MH_I2C_Read... [20:13:50]Read from MH i2c: 01 [20:13:50]MH_I2C_Read... [20:13:50]Read from MH i2c: 01 07 00 [20:13:50]MH_I2C_Read... [20:13:50]Read from MH i2c: 01 07 00 5C 72 00 03 12 00 00 FF 0F F8 [20:13:50]state=3 [20:13:50]No paper [20:13:50]Cover opened [20:13:50]Cutter fail [20:13:50]Cutter bad position [20:13:51]OFD Sender: No OFD packet to send [20:13:55]Write to MH i2c: 01 00 00 5D 72 CF [20:13:55]Write i2c OK [20:13:55]MH_I2C_Read... [20:13:55]Read from MH i2c: 01 [20:13:55]MH_I2C_Read... [20:13:55]Read from MH i2c: 01 07 00 [20:13:55]MH_I2C_Read... [20:13:55]Read from MH i2c: 01 07 00 5D 72 00 03 12 00 00 FF 0F F9 [20:13:55]state=3 [20:13:55]No paper [20:13:55]Cover opened [20:13:55]Cutter fail [20:13:55]Cutter bad position [20:13:56]OFD Sender: No OFD packet to send [20:14:00]Write to MH i2c: 01 00 00 5E 72 D0 [20:14:00]Write i2c OK [20:14:00]MH_I2C_Read... [20:14:00]Read from MH i2c: 01 [20:14:00]MH_I2C_Read... [20:14:00]Read from MH i2c: 01 07 00 [20:14:00]MH_I2C_Read... [20:14:00]Read from MH i2c: 01 07 00 5E 72 00 03 12 00 00 FF 0F FA [20:14:00]state=3 [20:14:00]No paper [20:14:00]Cover opened [20:14:00]Cutter fail [20:14:00]Cutter bad position [20:14:01]OFD Sender: No OFD packet to send [20:14:05]Write to MH i2c: 01 00 00 5F 72 D1 [20:14:05]Write i2c OK [20:14:05]MH_I2C_Read... [20:14:05]Read from MH i2c: 01 [20:14:05]MH_I2C_Read... [20:14:05]Read from MH i2c: 01 07 00 [20:14:05]MH_I2C_Read... [20:14:05]Read from MH i2c: 01 07 00 5F 72 00 03 12 00 00 FF 0F FB [20:14:05]state=3 [20:14:05]No paper [20:14:05]Cover opened [20:14:05]Cutter fail [20:14:05]Cutter bad position [20:14:06]OFD Sender: No OFD packet to send [20:14:10]Write to MH i2c: 01 00 00 60 72 D2 [20:14:10]Write i2c OK [20:14:10]MH_I2C_Read... [20:14:10]Read from MH i2c: 01 [20:14:10]MH_I2C_Read... [20:14:10]Read from MH i2c: 01 07 00 [20:14:10]MH_I2C_Read... [20:14:10]Read from MH i2c: 01 07 00 60 72 00 03 12 00 00 FF 0F FC [20:14:10]state=3 [20:14:10]No paper [20:14:10]Cover opened [20:14:10]Cutter fail [20:14:10]Cutter bad position [20:14:11]OFD Sender: No OFD packet to send [20:14:15]Write to MH i2c: 01 00 00 61 72 D3 [20:14:15]Write i2c OK [20:14:15]MH_I2C_Read... [20:14:15]Read from MH i2c: 01 [20:14:15]MH_I2C_Read... [20:14:15]Read from MH i2c: 01 07 00 [20:14:15]MH_I2C_Read... [20:14:15]Read from MH i2c: 01 07 00 61 72 00 03 12 00 00 FF 0F FD [20:14:15]state=3 [20:14:15]No paper [20:14:15]Cover opened [20:14:15]Cutter fail [20:14:15]Cutter bad position [20:14:16]OFD Sender: No OFD packet to send [20:14:20]Write to MH i2c: 01 00 00 62 72 D4 [20:14:20]Write i2c OK [20:14:20]MH_I2C_Read... [20:14:20]Read from MH i2c: 01 [20:14:20]MH_I2C_Read... [20:14:20]Read from MH i2c: 01 07 00 [20:14:20]MH_I2C_Read... [20:14:20]Read from MH i2c: 01 07 00 62 72 00 03 12 00 00 FF 0F FE [20:14:20]state=3 [20:14:20]No paper [20:14:20]Cover opened [20:14:20]Cutter fail [20:14:20]Cutter bad position [20:14:21]OFD Sender: No OFD packet to send [20:14:25]Write to MH i2c: 01 00 00 63 72 D5 [20:14:25]Write i2c OK [20:14:25]MH_I2C_Read... [20:14:25]Read from MH i2c: 01 [20:14:25]MH_I2C_Read... [20:14:25]Read from MH i2c: 01 07 00 [20:14:25]MH_I2C_Read... [20:14:25]Read from MH i2c: 01 07 00 63 72 00 03 12 00 00 FF 0F FF [20:14:25]state=3 [20:14:25]No paper [20:14:25]Cover opened [20:14:25]Cutter fail [20:14:25]Cutter bad position [20:14:26]OFD Sender: No OFD packet to send [20:14:30]Write to MH i2c: 01 00 00 64 72 D6 [20:14:30]Write i2c OK [20:14:30]MH_I2C_Read... [20:14:30]Read from MH i2c: 01 [20:14:30]MH_I2C_Read... [20:14:30]Read from MH i2c: 01 07 00 [20:14:30]MH_I2C_Read... [20:14:30]Read from MH i2c: 01 07 00 64 72 00 03 12 00 00 FF 0F 00 [20:14:30]state=3 [20:14:30]No paper [20:14:30]Cover opened [20:14:30]Cutter fail [20:14:30]Cutter bad position [20:14:31]OFD Sender: No OFD packet to send [20:14:35]Write to MH i2c: 01 00 00 65 72 D7 [20:14:35]Write i2c OK [20:14:35]MH_I2C_Read... [20:14:35]Read from MH i2c: 01 [20:14:35]MH_I2C_Read... [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 65 72 00 03 12 00 00 FF 0F 01 [20:14:35]state=3 [20:14:35]No paper [20:14:35]Cover opened [20:14:35]Cutter fail [20:14:35]Cutter bad position [20:14:36]OFD Sender: No OFD packet to send [20:14:40]Write to MH i2c: 01 00 00 66 72 D8 [20:14:40]Write i2c OK [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: 01 [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: 01 07 00 [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: 01 07 00 66 72 00 03 12 00 00 FF 0F 02 [20:14:40]state=3 [20:14:40]No paper [20:14:40]Cover opened [20:14:40]Cutter fail [20:14:40]Cutter bad position [20:14:41]OFD Sender: No OFD packet to send [20:14:45]Write to MH i2c: 01 00 00 67 72 D9 [20:14:45]Write i2c OK [20:14:45]MH_I2C_Read... [20:14:45]Read from MH i2c: 01 [20:14:45]MH_I2C_Read... [20:14:45]Read from MH i2c: 01 07 00 [20:14:45]MH_I2C_Read... [20:14:45]Read from MH i2c: 01 07 00 67 72 00 03 12 00 00 FF 0F 03 [20:14:45]state=3 [20:14:45]No paper [20:14:45]Cover opened [20:14:45]Cutter fail [20:14:45]Cutter bad position [20:14:46]OFD Sender: No OFD packet to send [20:14:50]Write to MH i2c: 01 00 00 68 72 DA [20:14:50]Write i2c OK [20:14:50]MH_I2C_Read... [20:14:50]Read from MH i2c: 01 [20:14:50]MH_I2C_Read... [20:14:50]Read from MH i2c: 01 07 00 [20:14:50]MH_I2C_Read... [20:14:50]Read from MH i2c: 01 07 00 68 72 00 03 12 00 00 FF 0F 04 [20:14:50]state=3 [20:14:50]No paper [20:14:50]Cover opened [20:14:50]Cutter fail [20:14:50]Cutter bad position [20:14:51]OFD Sender: No OFD packet to send [20:14:55]Write to MH i2c: 01 00 00 69 72 DB [20:14:55]Write i2c OK [20:14:55]MH_I2C_Read... [20:14:55]Read from MH i2c: 01 [20:14:55]MH_I2C_Read... [20:14:55]Read from MH i2c: 01 07 00 [20:14:55]MH_I2C_Read... [20:14:55]Read from MH i2c: 01 07 00 69 72 00 03 12 00 00 FF 0F 05 [20:14:55]state=3 [20:14:55]No paper [20:14:55]Cover opened [20:14:55]Cutter fail [20:14:55]Cutter bad position [20:14:56]OFD Sender: No OFD packet to send [20:15:01]Write to MH i2c: 01 00 00 6A 72 DC [20:15:01]Write i2c OK [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: 01 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: 01 07 00 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: 01 07 00 6A 72 00 03 12 00 00 FF 0F 06 [20:15:01]state=3 [20:15:01]No paper [20:15:01]Cover opened [20:15:01]Cutter fail [20:15:01]Cutter bad position [20:15:01]OFD Sender: No OFD packet to send [20:15:06]Write to MH i2c: 01 00 00 6B 72 DD [20:15:06]Write i2c OK [20:15:06]MH_I2C_Read... [20:15:06]Read from MH i2c: 01 [20:15:06]MH_I2C_Read... [20:15:06]Read from MH i2c: 01 07 00 [20:15:06]MH_I2C_Read... [20:15:06]Read from MH i2c: 01 07 00 6B 72 00 03 12 00 00 FF 0F 07 [20:15:06]state=3 [20:15:06]No paper [20:15:06]Cover opened [20:15:06]Cutter fail [20:15:06]Cutter bad position [20:15:06]OFD Sender: No OFD packet to send [20:15:11]Write to MH i2c: 01 00 00 6C 72 DE [20:15:11]Write i2c OK [20:15:11]MH_I2C_Read... [20:15:11]Read from MH i2c: 01 [20:15:11]MH_I2C_Read... [20:15:11]Read from MH i2c: 01 07 00 [20:15:11]MH_I2C_Read... [20:15:11]Read from MH i2c: 01 07 00 6C 72 00 03 12 00 00 FF 0F 08 [20:15:11]state=3 [20:15:11]No paper [20:15:11]Cover opened [20:15:11]Cutter fail [20:15:11]Cutter bad position [20:15:11]OFD Sender: No OFD packet to send [20:15:16]Write to MH i2c: 01 00 00 6D 72 DF [20:15:16]Write i2c OK [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: 01 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: 01 07 00 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: 01 07 00 6D 72 00 03 12 00 00 FF 0F 09 [20:15:16]state=3 [20:15:16]No paper [20:15:16]Cover opened [20:15:16]Cutter fail [20:15:16]Cutter bad position [20:15:16]OFD Sender: No OFD packet to send [20:15:21]Write to MH i2c: 01 00 00 6E 72 E0 [20:15:21]Write i2c OK [20:15:21]MH_I2C_Read... [20:15:21]Read from MH i2c: 01 [20:15:21]MH_I2C_Read... [20:15:21]Read from MH i2c: 01 07 00 [20:15:21]MH_I2C_Read... [20:15:21]Read from MH i2c: 01 07 00 6E 72 00 03 12 00 00 FF 0F 0A [20:15:21]state=3 [20:15:21]No paper [20:15:21]Cover opened [20:15:21]Cutter fail [20:15:21]Cutter bad position [20:15:21]OFD Sender: No OFD packet to send [20:15:26]Write to MH i2c: 01 00 00 6F 72 E1 [20:15:26]Write i2c OK [20:15:26]MH_I2C_Read... [20:15:26]Read from MH i2c: 01 [20:15:26]MH_I2C_Read... [20:15:26]Read from MH i2c: 01 07 00 [20:15:26]MH_I2C_Read... [20:15:26]Read from MH i2c: 01 07 00 6F 72 00 03 12 00 00 FF 0F 0B [20:15:26]state=3 [20:15:26]No paper [20:15:26]Cover opened [20:15:26]Cutter fail [20:15:26]Cutter bad position [20:15:26]OFD Sender: No OFD packet to send [20:15:31]Write to MH i2c: 01 00 00 70 72 E2 [20:15:31]Write i2c OK [20:15:31]MH_I2C_Read... [20:15:31]Read from MH i2c: 01 [20:15:31]MH_I2C_Read... [20:15:31]Read from MH i2c: 01 07 00 [20:15:31]MH_I2C_Read... [20:15:31]Read from MH i2c: 01 07 00 70 72 00 03 12 00 00 FF 0F 0C [20:15:31]state=3 [20:15:31]No paper [20:15:31]Cover opened [20:15:31]Cutter fail [20:15:31]Cutter bad position [20:15:31]OFD Sender: No OFD packet to send [20:15:36]Write to MH i2c: 01 00 00 71 72 E3 [20:15:36]Write i2c OK [20:15:36]MH_I2C_Read... [20:15:36]Read from MH i2c: 01 [20:15:36]MH_I2C_Read... [20:15:36]Read from MH i2c: 01 07 00 [20:15:36]MH_I2C_Read... [20:15:36]Read from MH i2c: 01 07 00 71 72 00 03 12 00 00 FF 0F 0D [20:15:36]state=3 [20:15:36]No paper [20:15:36]Cover opened [20:15:36]Cutter fail [20:15:36]Cutter bad position [20:15:36]OFD Sender: No OFD packet to send [20:15:41]Write to MH i2c: 01 00 00 72 72 E4 [20:15:41]Write i2c OK [20:15:41]MH_I2C_Read... [20:15:41]Read from MH i2c: 01 [20:15:41]MH_I2C_Read... [20:15:41]Read from MH i2c: 01 07 00 [20:15:41]MH_I2C_Read... [20:15:41]Read from MH i2c: 01 07 00 72 72 00 03 12 00 00 FF 0F 0E [20:15:41]state=3 [20:15:41]No paper [20:15:41]Cover opened [20:15:41]Cutter fail [20:15:41]Cutter bad position [20:15:41]OFD Sender: No OFD packet to send [20:15:46]Write to MH i2c: 01 00 00 73 72 E5 [20:15:46]Write i2c OK [20:15:46]MH_I2C_Read... [20:15:46]Read from MH i2c: 01 [20:15:46]MH_I2C_Read... [20:15:46]Read from MH i2c: 01 07 00 [20:15:46]MH_I2C_Read... [20:15:46]Read from MH i2c: 01 07 00 73 72 00 03 12 00 00 FF 0F 0F [20:15:46]state=3 [20:15:46]No paper [20:15:46]Cover opened [20:15:46]Cutter fail [20:15:46]Cutter bad position [20:15:46]OFD Sender: No OFD packet to send [20:15:51]Write to MH i2c: 01 00 00 74 72 E6 [20:15:51]Write i2c OK [20:15:51]MH_I2C_Read... [20:15:51]Read from MH i2c: 01 [20:15:51]MH_I2C_Read... [20:15:51]Read from MH i2c: 01 07 00 [20:15:51]MH_I2C_Read... [20:15:51]Read from MH i2c: 01 07 00 74 72 00 03 12 00 00 FF 0F 10 [20:15:51]state=3 [20:15:51]No paper [20:15:51]Cover opened [20:15:51]Cutter fail [20:15:51]Cutter bad position [20:15:51]OFD Sender: No OFD packet to send [20:15:56]Write to MH i2c: 01 00 00 75 72 E7 [20:15:56]Write i2c OK [20:15:56]MH_I2C_Read... [20:15:56]Read from MH i2c: 01 [20:15:56]MH_I2C_Read... [20:15:56]Read from MH i2c: 01 07 00 [20:15:56]MH_I2C_Read... [20:15:56]Read from MH i2c: 01 07 00 75 72 00 03 12 00 00 FF 0F 11 [20:15:56]state=3 [20:15:56]No paper [20:15:56]Cover opened [20:15:56]Cutter fail [20:15:56]Cutter bad position [20:15:56]OFD Sender: No OFD packet to send [20:16:01]Write to MH i2c: 01 00 00 76 72 E8 [20:16:01]Write i2c OK [20:16:01]MH_I2C_Read... [20:16:01]Read from MH i2c: 01 [20:16:01]MH_I2C_Read... [20:16:01]Read from MH i2c: 01 07 00 [20:16:01]MH_I2C_Read... [20:16:01]Read from MH i2c: 01 07 00 76 72 00 03 12 00 00 FF 0F 12 [20:16:01]state=3 [20:16:01]No paper [20:16:01]Cover opened [20:16:01]Cutter fail [20:16:01]Cutter bad position [20:16:01]OFD Sender: No OFD packet to send [20:16:06]Write to MH i2c: 01 00 00 77 72 E9 [20:16:06]Write i2c OK [20:16:06]MH_I2C_Read... [20:16:06]Read from MH i2c: 01 [20:16:06]MH_I2C_Read... [20:16:06]Read from MH i2c: 01 07 00 [20:16:06]MH_I2C_Read... [20:16:06]Read from MH i2c: 01 07 00 77 72 00 03 12 00 00 FF 0F 13 [20:16:06]state=3 [20:16:06]No paper [20:16:06]Cover opened [20:16:06]Cutter fail [20:16:06]Cutter bad position [20:16:06]OFD Sender: No OFD packet to send [20:16:11]Write to MH i2c: 01 00 00 78 72 EA [20:16:11]Write i2c OK [20:16:11]MH_I2C_Read... [20:16:11]Read from MH i2c: 01 [20:16:11]MH_I2C_Read... [20:16:11]Read from MH i2c: 01 07 00 [20:16:11]MH_I2C_Read... [20:16:11]Read from MH i2c: 01 07 00 78 72 00 03 12 00 00 FF 0F 14 [20:16:11]state=3 [20:16:11]No paper [20:16:11]Cover opened [20:16:11]Cutter fail [20:16:11]Cutter bad position [20:16:11]OFD Sender: No OFD packet to send [20:16:16]Write to MH i2c: 01 00 00 79 72 EB [20:16:16]Write i2c OK [20:16:16]MH_I2C_Read... [20:16:16]Read from MH i2c: 01 [20:16:16]MH_I2C_Read... [20:16:16]Read from MH i2c: 01 07 00 [20:16:16]MH_I2C_Read... [20:16:16]Read from MH i2c: 01 07 00 79 72 00 03 12 00 00 FF 0F 15 [20:16:16]state=3 [20:16:16]No paper [20:16:16]Cover opened [20:16:16]Cutter fail [20:16:16]Cutter bad position [20:16:16]OFD Sender: No OFD packet to send [20:16:21]Write to MH i2c: 01 00 00 7A 72 EC [20:16:21]Write i2c OK [20:16:21]MH_I2C_Read... [20:16:21]Read from MH i2c: 01 [20:16:21]MH_I2C_Read... [20:16:21]Read from MH i2c: 01 07 00 [20:16:21]MH_I2C_Read... [20:16:21]Read from MH i2c: 01 07 00 7A 72 00 03 12 00 00 FF 0F 16 [20:16:21]state=3 [20:16:21]No paper [20:16:21]Cover opened [20:16:21]Cutter fail [20:16:21]Cutter bad position [20:16:21]OFD Sender: No OFD packet to send [20:16:26]Write to MH i2c: 01 00 00 7B 72 ED [20:16:26]Write i2c OK [20:16:26]MH_I2C_Read... [20:16:26]Read from MH i2c: 01 [20:16:26]MH_I2C_Read... [20:16:26]Read from MH i2c: 01 07 00 [20:16:26]MH_I2C_Read... [20:16:26]Read from MH i2c: 01 07 00 7B 72 00 03 12 00 00 FF 0F 17 [20:16:26]state=3 [20:16:26]No paper [20:16:26]Cover opened [20:16:26]Cutter fail [20:16:26]Cutter bad position [20:16:26]OFD Sender: No OFD packet to send [20:16:31]Write to MH i2c: 01 00 00 7C 72 EE [20:16:31]Write i2c OK [20:16:31]MH_I2C_Read... [20:16:31]Read from MH i2c: 01 [20:16:31]MH_I2C_Read... [20:16:31]Read from MH i2c: 01 07 00 [20:16:31]MH_I2C_Read... [20:16:31]Read from MH i2c: 01 07 00 7C 72 00 03 12 00 00 FF 0F 18 [20:16:31]state=3 [20:16:31]No paper [20:16:31]Cover opened [20:16:31]Cutter fail [20:16:31]Cutter bad position [20:16:31]OFD Sender: No OFD packet to send [20:16:36]Write to MH i2c: 01 00 00 7D 72 EF [20:16:36]Write i2c OK [20:16:36]MH_I2C_Read... [20:16:36]Read from MH i2c: 01 [20:16:36]MH_I2C_Read... [20:16:36]Read from MH i2c: 01 07 00 [20:16:36]MH_I2C_Read... [20:16:36]Read from MH i2c: 01 07 00 7D 72 00 03 12 00 00 FF 0F 19 [20:16:36]state=3 [20:16:36]No paper [20:16:36]Cover opened [20:16:36]Cutter fail [20:16:36]Cutter bad position [20:16:36]OFD Sender: No OFD packet to send [20:16:41]Write to MH i2c: 01 00 00 7E 72 F0 [20:16:41]Write i2c OK [20:16:41]MH_I2C_Read... [20:16:41]Read from MH i2c: 01 [20:16:41]MH_I2C_Read... [20:16:41]Read from MH i2c: 01 07 00 [20:16:41]MH_I2C_Read... [20:16:41]Read from MH i2c: 01 07 00 7E 72 00 03 12 00 00 FF 0F 1A [20:16:41]state=3 [20:16:41]No paper [20:16:41]Cover opened [20:16:41]Cutter fail [20:16:41]Cutter bad position [20:16:41]OFD Sender: No OFD packet to send [20:16:46]Write to MH i2c: 01 00 00 7F 72 F1 [20:16:46]Write i2c OK [20:16:46]MH_I2C_Read... [20:16:46]Read from MH i2c: 01 [20:16:46]MH_I2C_Read... [20:16:46]Read from MH i2c: 01 07 00 [20:16:46]MH_I2C_Read... [20:16:46]Read from MH i2c: 01 07 00 7F 72 00 03 12 00 00 FF 0F 1B [20:16:46]state=3 [20:16:46]No paper [20:16:46]Cover opened [20:16:46]Cutter fail [20:16:46]Cutter bad position [20:16:46]OFD Sender: No OFD packet to send [20:16:51]Write to MH i2c: 01 00 00 80 72 F2 [20:16:51]Write i2c OK [20:16:51]MH_I2C_Read... [20:16:51]Read from MH i2c: 01 [20:16:51]MH_I2C_Read... [20:16:51]Read from MH i2c: 01 07 00 [20:16:51]MH_I2C_Read... [20:16:51]Read from MH i2c: 01 07 00 80 72 00 03 12 00 00 FF 0F 1C [20:16:51]state=3 [20:16:51]No paper [20:16:51]Cover opened [20:16:51]Cutter fail [20:16:51]Cutter bad position [20:16:51]OFD Sender: No OFD packet to send [20:16:56]Write to MH i2c: 01 00 00 81 72 F3 [20:16:56]Write i2c OK [20:16:56]MH_I2C_Read... [20:16:56]Read from MH i2c: 01 [20:16:56]MH_I2C_Read... [20:16:56]Read from MH i2c: 01 07 00 [20:16:56]MH_I2C_Read... [20:16:56]Read from MH i2c: 01 07 00 81 72 00 03 12 00 00 FF 0F 1D [20:16:56]state=3 [20:16:56]No paper [20:16:56]Cover opened [20:16:56]Cutter fail [20:16:56]Cutter bad position [20:16:56]OFD Sender: No OFD packet to send [20:17:01]Write to MH i2c: 01 00 00 82 72 F4 [20:17:01]Write i2c OK [20:17:01]MH_I2C_Read... [20:17:01]Read from MH i2c: 01 [20:17:01]MH_I2C_Read... [20:17:01]Read from MH i2c: 01 07 00 [20:17:01]MH_I2C_Read... [20:17:01]Read from MH i2c: 01 07 00 82 72 00 03 12 00 00 FF 0F 1E [20:17:01]state=3 [20:17:01]No paper [20:17:01]Cover opened [20:17:01]Cutter fail [20:17:01]Cutter bad position [20:17:01]OFD Sender: No OFD packet to send [20:17:06]Write to MH i2c: 01 00 00 83 72 F5 [20:17:06]Write i2c OK [20:17:06]MH_I2C_Read... [20:17:06]Read from MH i2c: 01 [20:17:06]MH_I2C_Read... [20:17:06]Read from MH i2c: 01 07 00 [20:17:06]MH_I2C_Read... [20:17:06]Read from MH i2c: 01 07 00 83 72 00 03 12 00 00 FF 0F 1F [20:17:06]state=3 [20:17:06]No paper [20:17:06]Cover opened [20:17:06]Cutter fail [20:17:06]Cutter bad position [20:17:06]OFD Sender: No OFD packet to send [20:17:11]Write to MH i2c: 01 00 00 84 72 F6 [20:17:11]Write i2c OK [20:17:11]MH_I2C_Read... [20:17:11]Read from MH i2c: 01 [20:17:11]MH_I2C_Read... [20:17:11]Read from MH i2c: 01 07 00 [20:17:11]MH_I2C_Read... [20:17:11]Read from MH i2c: 01 07 00 84 72 00 03 12 00 00 FF 0F 20 [20:17:11]state=3 [20:17:11]No paper [20:17:11]Cover opened [20:17:11]Cutter fail [20:17:11]Cutter bad position [20:17:11]OFD Sender: No OFD packet to send [20:17:16]Write to MH i2c: 01 00 00 85 72 F7 [20:17:16]Write i2c OK [20:17:16]MH_I2C_Read... [20:17:16]Read from MH i2c: 01 [20:17:16]MH_I2C_Read... [20:17:16]Read from MH i2c: 01 07 00 [20:17:16]MH_I2C_Read... [20:17:16]Read from MH i2c: 01 07 00 85 72 00 03 12 00 00 FF 0F 21 [20:17:16]state=3 [20:17:16]No paper [20:17:16]Cover opened [20:17:16]Cutter fail [20:17:16]Cutter bad position [20:17:16]OFD Sender: No OFD packet to send [20:17:21]Write to MH i2c: 01 00 00 86 72 F8 [20:17:21]Write i2c OK [20:17:21]MH_I2C_Read... [20:17:21]Read from MH i2c: 01 [20:17:21]MH_I2C_Read... [20:17:21]Read from MH i2c: 01 07 00 [20:17:21]MH_I2C_Read... [20:17:21]Read from MH i2c: 01 07 00 86 72 00 03 12 00 00 FF 0F 22 [20:17:21]state=3 [20:17:21]No paper [20:17:21]Cover opened [20:17:21]Cutter fail [20:17:21]Cutter bad position [20:17:21]OFD Sender: No OFD packet to send [20:17:26]Write to MH i2c: 01 00 00 87 72 F9 [20:17:26]Write i2c OK [20:17:26]MH_I2C_Read... [20:17:26]Read from MH i2c: 01 [20:17:26]MH_I2C_Read... [20:17:26]Read from MH i2c: 01 07 00 [20:17:26]MH_I2C_Read... [20:17:26]Read from MH i2c: 01 07 00 87 72 00 03 12 00 00 FF 0F 23 [20:17:26]state=3 [20:17:26]No paper [20:17:26]Cover opened [20:17:26]Cutter fail [20:17:26]Cutter bad position [20:17:26]OFD Sender: No OFD packet to send [20:17:31]Write to MH i2c: 01 00 00 88 72 FA [20:17:31]Write i2c OK [20:17:31]MH_I2C_Read... [20:17:31]Read from MH i2c: 01 [20:17:31]MH_I2C_Read... [20:17:31]Read from MH i2c: 01 07 00 [20:17:31]MH_I2C_Read... [20:17:31]Read from MH i2c: 01 07 00 88 72 00 03 12 00 00 FF 0F 24 [20:17:31]state=3 [20:17:31]No paper [20:17:31]Cover opened [20:17:31]Cutter fail [20:17:31]Cutter bad position [20:17:31]OFD Sender: No OFD packet to send [20:17:36]Write to MH i2c: 01 00 00 89 72 FB [20:17:36]Write i2c OK [20:17:36]MH_I2C_Read... [20:17:36]Read from MH i2c: 01 [20:17:36]MH_I2C_Read... [20:17:36]Read from MH i2c: 01 07 00 [20:17:36]MH_I2C_Read... [20:17:36]Read from MH i2c: 01 07 00 89 72 00 03 12 00 00 FF 0F 25 [20:17:36]state=3 [20:17:36]No paper [20:17:36]Cover opened [20:17:36]Cutter fail [20:17:36]Cutter bad position [20:17:36]OFD Sender: No OFD packet to send [20:17:41]Write to MH i2c: 01 00 00 8A 72 FC [20:17:41]Write i2c OK [20:17:41]MH_I2C_Read... [20:17:41]Read from MH i2c: 01 [20:17:41]MH_I2C_Read... [20:17:41]Read from MH i2c: 01 07 00 [20:17:41]MH_I2C_Read... [20:17:41]Read from MH i2c: 01 07 00 8A 72 00 03 12 00 00 FF 0F 26 [20:17:41]state=3 [20:17:41]No paper [20:17:41]Cover opened [20:17:41]Cutter fail [20:17:41]Cutter bad position [20:17:41]OFD Sender: No OFD packet to send [20:17:46]Write to MH i2c: 01 00 00 8B 72 FD [20:17:46]Write i2c OK [20:17:46]MH_I2C_Read... [20:17:46]Read from MH i2c: 01 [20:17:46]MH_I2C_Read... [20:17:46]Read from MH i2c: 01 07 00 [20:17:46]MH_I2C_Read... [20:17:46]Read from MH i2c: 01 07 00 8B 72 00 03 12 00 00 FF 0F 27 [20:17:46]state=3 [20:17:46]No paper [20:17:46]Cover opened [20:17:46]Cutter fail [20:17:46]Cutter bad position [20:17:46]OFD Sender: No OFD packet to send [20:17:51]Write to MH i2c: 01 00 00 8C 72 FE [20:17:51]Write i2c OK [20:17:51]MH_I2C_Read... [20:17:51]Read from MH i2c: 01 [20:17:51]MH_I2C_Read... [20:17:51]Read from MH i2c: 01 07 00 [20:17:51]MH_I2C_Read... [20:17:51]Read from MH i2c: 01 07 00 8C 72 00 03 12 00 00 FF 0F 28 [20:17:51]state=3 [20:17:51]No paper [20:17:51]Cover opened [20:17:51]Cutter fail [20:17:51]Cutter bad position [20:17:51]OFD Sender: No OFD packet to send [20:17:56]Write to MH i2c: 01 00 00 8D 72 FF [20:17:56]Write i2c OK [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: 01 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: 01 07 00 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: 01 07 00 8D 72 00 03 12 00 00 FF 0F 29 [20:17:56]state=3 [20:17:56]No paper [20:17:56]Cover opened [20:17:56]Cutter fail [20:17:56]Cutter bad position [20:17:56]OFD Sender: No OFD packet to send [20:18:01]Write to MH i2c: 01 00 00 8E 72 00 [20:18:01]Write i2c OK [20:18:01]MH_I2C_Read... [20:18:01]Read from MH i2c: 01 [20:18:01]MH_I2C_Read... [20:18:01]Read from MH i2c: 01 07 00 [20:18:01]MH_I2C_Read... [20:18:01]Read from MH i2c: 01 07 00 8E 72 00 03 12 00 00 FF 0F 2A [20:18:01]state=3 [20:18:01]No paper [20:18:01]Cover opened [20:18:01]Cutter fail [20:18:01]Cutter bad position [20:18:01]OFD Sender: No OFD packet to send [20:18:06]Write to MH i2c: 01 00 00 8F 72 01 [20:18:06]Write i2c OK [20:18:06]MH_I2C_Read... [20:18:06]Read from MH i2c: 01 [20:18:06]MH_I2C_Read... [20:18:06]Read from MH i2c: 01 07 00 [20:18:06]MH_I2C_Read... [20:18:06]Read from MH i2c: 01 07 00 8F 72 00 03 12 00 00 FF 0F 2B [20:18:06]state=3 [20:18:06]No paper [20:18:06]Cover opened [20:18:06]Cutter fail [20:18:06]Cutter bad position [20:18:06]OFD Sender: No OFD packet to send [20:18:11]Write to MH i2c: 01 00 00 90 72 02 [20:18:11]Write i2c OK [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: 01 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: 01 07 00 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: 01 07 00 90 72 00 03 12 00 00 FF 0F 2C [20:18:11]state=3 [20:18:11]No paper [20:18:11]Cover opened [20:18:11]Cutter fail [20:18:11]Cutter bad position [20:18:11]OFD Sender: No OFD packet to send [20:18:16]Write to MH i2c: 01 00 00 91 72 03 [20:18:16]Write i2c OK [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: 01 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: 01 07 00 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: 01 07 00 91 72 00 03 12 00 00 FF 0F 2D [20:18:16]state=3 [20:18:16]No paper [20:18:16]Cover opened [20:18:16]Cutter fail [20:18:16]Cutter bad position [20:18:16]OFD Sender: No OFD packet to send [20:18:21]Write to MH i2c: 01 00 00 92 72 04 [20:18:21]Write i2c OK [20:18:21]MH_I2C_Read... [20:18:21]Read from MH i2c: 01 [20:18:21]MH_I2C_Read... [20:18:21]Read from MH i2c: 01 07 00 [20:18:21]MH_I2C_Read... [20:18:21]Read from MH i2c: 01 07 00 92 72 00 03 12 00 00 FF 0F 2E [20:18:21]state=3 [20:18:21]No paper [20:18:21]Cover opened [20:18:21]Cutter fail [20:18:21]Cutter bad position [20:18:21]OFD Sender: No OFD packet to send [20:18:26]Write to MH i2c: 01 00 00 93 72 05 [20:18:26]Write i2c OK [20:18:26]MH_I2C_Read... [20:18:26]Read from MH i2c: 01 [20:18:26]MH_I2C_Read... [20:18:26]Read from MH i2c: 01 07 00 [20:18:26]MH_I2C_Read... [20:18:26]Read from MH i2c: 01 07 00 93 72 00 03 12 00 00 FF 0F 2F [20:18:26]state=3 [20:18:26]No paper [20:18:26]Cover opened [20:18:26]Cutter fail [20:18:26]Cutter bad position [20:18:26]OFD Sender: No OFD packet to send [20:18:31]Write to MH i2c: 01 00 00 94 72 06 [20:18:31]Write i2c OK [20:18:31]MH_I2C_Read... [20:18:31]Read from MH i2c: 01 [20:18:31]MH_I2C_Read... [20:18:31]Read from MH i2c: 01 07 00 [20:18:31]MH_I2C_Read... [20:18:31]Read from MH i2c: 01 07 00 94 72 00 03 12 00 00 FF 0F 30 [20:18:31]state=3 [20:18:31]No paper [20:18:31]Cover opened [20:18:31]Cutter fail [20:18:31]Cutter bad position [20:18:31]OFD Sender: No OFD packet to send [20:18:36]Write to MH i2c: 01 00 00 95 72 07 [20:18:36]Write i2c OK [20:18:36]MH_I2C_Read... [20:18:36]Read from MH i2c: 01 [20:18:36]MH_I2C_Read... [20:18:36]Read from MH i2c: 01 07 00 [20:18:36]MH_I2C_Read... [20:18:36]Read from MH i2c: 01 07 00 95 72 00 03 12 00 00 FF 0F 31 [20:18:36]state=3 [20:18:36]No paper [20:18:36]Cover opened [20:18:36]Cutter fail [20:18:36]Cutter bad position [20:18:36]OFD Sender: No OFD packet to send [20:18:41]Write to MH i2c: 01 00 00 96 72 08 [20:18:41]Write i2c OK [20:18:41]MH_I2C_Read... [20:18:41]Read from MH i2c: 01 [20:18:41]MH_I2C_Read... [20:18:41]Read from MH i2c: 01 07 00 [20:18:41]MH_I2C_Read... [20:18:41]Read from MH i2c: 01 07 00 96 72 00 03 12 00 00 FF 0F 32 [20:18:41]state=3 [20:18:41]No paper [20:18:41]Cover opened [20:18:41]Cutter fail [20:18:41]Cutter bad position [20:18:41]OFD Sender: No OFD packet to send [20:18:46]Write to MH i2c: 01 00 00 97 72 09 [20:18:46]Write i2c OK [20:18:46]MH_I2C_Read... [20:18:46]Read from MH i2c: 01 [20:18:46]MH_I2C_Read... [20:18:46]Read from MH i2c: 01 07 00 [20:18:46]MH_I2C_Read... [20:18:46]Read from MH i2c: 01 07 00 97 72 00 03 12 00 00 FF 0F 33 [20:18:46]state=3 [20:18:46]No paper [20:18:46]Cover opened [20:18:46]Cutter fail [20:18:46]Cutter bad position [20:18:46]OFD Sender: No OFD packet to send [20:18:51]Write to MH i2c: 01 00 00 98 72 0A [20:18:51]Write i2c OK [20:18:51]MH_I2C_Read... [20:18:51]Read from MH i2c: 01 [20:18:51]MH_I2C_Read... [20:18:51]Read from MH i2c: 01 07 00 [20:18:51]MH_I2C_Read... [20:18:51]Read from MH i2c: 01 07 00 98 72 00 03 12 00 00 FF 0F 34 [20:18:51]state=3 [20:18:51]No paper [20:18:51]Cover opened [20:18:51]Cutter fail [20:18:51]Cutter bad position [20:18:51]OFD Sender: No OFD packet to send [20:18:56]Write to MH i2c: 01 00 00 99 72 0B [20:18:56]Write i2c OK [20:18:56]MH_I2C_Read... [20:18:56]Read from MH i2c: 01 [20:18:56]MH_I2C_Read... [20:18:56]Read from MH i2c: 01 07 00 [20:18:56]MH_I2C_Read... [20:18:56]Read from MH i2c: 01 07 00 99 72 00 03 12 00 00 FF 0F 35 [20:18:56]state=3 [20:18:56]No paper [20:18:56]Cover opened [20:18:56]Cutter fail [20:18:56]Cutter bad position [20:18:56]OFD Sender: No OFD packet to send [20:19:01]Write to MH i2c: 01 00 00 9A 72 0C [20:19:01]Write i2c OK [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: 01 [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: 01 07 00 [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: 01 07 00 9A 72 00 03 12 00 00 FF 0F 36 [20:19:01]state=3 [20:19:01]No paper [20:19:01]Cover opened [20:19:01]Cutter fail [20:19:01]Cutter bad position [20:19:01]OFD Sender: No OFD packet to send [20:19:06]Write to MH i2c: 01 00 00 9B 72 0D [20:19:06]Write i2c OK [20:19:06]MH_I2C_Read... [20:19:06]Read from MH i2c: 01 [20:19:06]MH_I2C_Read... [20:19:06]Read from MH i2c: 01 07 00 [20:19:06]MH_I2C_Read... [20:19:06]Read from MH i2c: 01 07 00 9B 72 00 03 12 00 00 FF 0F 37 [20:19:06]state=3 [20:19:06]No paper [20:19:06]Cover opened [20:19:06]Cutter fail [20:19:06]Cutter bad position [20:19:06]OFD Sender: No OFD packet to send [20:19:11]Write to MH i2c: 01 00 00 9C 72 0E [20:19:11]Write i2c OK [20:19:11]MH_I2C_Read... [20:19:11]Read from MH i2c: 01 [20:19:11]MH_I2C_Read... [20:19:11]Read from MH i2c: 01 07 00 [20:19:11]MH_I2C_Read... [20:19:11]Read from MH i2c: 01 07 00 9C 72 00 03 12 00 00 FF 0F 38 [20:19:11]state=3 [20:19:11]No paper [20:19:11]Cover opened [20:19:11]Cutter fail [20:19:11]Cutter bad position [20:19:11]OFD Sender: No OFD packet to send [20:19:16]Write to MH i2c: 01 00 00 9D 72 0F [20:19:16]Write i2c OK [20:19:16]MH_I2C_Read... [20:19:16]Read from MH i2c: 01 [20:19:16]MH_I2C_Read... [20:19:16]Read from MH i2c: 01 07 00 [20:19:16]MH_I2C_Read... [20:19:16]Read from MH i2c: 01 07 00 9D 72 00 03 12 00 00 FF 0F 39 [20:19:16]state=3 [20:19:16]No paper [20:19:16]Cover opened [20:19:16]Cutter fail [20:19:16]Cutter bad position [20:19:16]OFD Sender: No OFD packet to send [20:19:21]Write to MH i2c: 01 00 00 9E 72 10 [20:19:21]Write i2c OK [20:19:21]MH_I2C_Read... [20:19:21]Read from MH i2c: 01 [20:19:21]MH_I2C_Read... [20:19:21]Read from MH i2c: 01 07 00 [20:19:21]MH_I2C_Read... [20:19:21]Read from MH i2c: 01 07 00 9E 72 00 03 12 00 00 FF 0F 3A [20:19:21]state=3 [20:19:21]No paper [20:19:21]Cover opened [20:19:21]Cutter fail [20:19:21]Cutter bad position [20:19:21]OFD Sender: No OFD packet to send [20:19:26]Write to MH i2c: 01 00 00 9F 72 11 [20:19:26]Write i2c OK [20:19:26]MH_I2C_Read... [20:19:26]Read from MH i2c: 01 [20:19:26]MH_I2C_Read... [20:19:26]Read from MH i2c: 01 07 00 [20:19:26]MH_I2C_Read... [20:19:26]Read from MH i2c: 01 07 00 9F 72 00 03 12 00 00 FF 0F 3B [20:19:26]state=3 [20:19:26]No paper [20:19:26]Cover opened [20:19:26]Cutter fail [20:19:26]Cutter bad position [20:19:26]OFD Sender: No OFD packet to send [20:19:31]Write to MH i2c: 01 00 00 A0 72 12 [20:19:31]Write i2c OK [20:19:31]MH_I2C_Read... [20:19:31]Read from MH i2c: 01 [20:19:31]MH_I2C_Read... [20:19:31]Read from MH i2c: 01 07 00 [20:19:31]MH_I2C_Read... [20:19:31]Read from MH i2c: 01 07 00 A0 72 00 03 12 00 00 FF 0F 3C [20:19:31]state=3 [20:19:31]No paper [20:19:31]Cover opened [20:19:31]Cutter fail [20:19:31]Cutter bad position [20:19:31]OFD Sender: No OFD packet to send [20:19:36]Write to MH i2c: 01 00 00 A1 72 13 [20:19:36]Write i2c OK [20:19:36]MH_I2C_Read... [20:19:36]Read from MH i2c: 01 [20:19:36]MH_I2C_Read... [20:19:36]Read from MH i2c: 01 07 00 [20:19:36]MH_I2C_Read... [20:19:36]Read from MH i2c: 01 07 00 A1 72 00 03 12 00 00 FF 0F 3D [20:19:36]state=3 [20:19:36]No paper [20:19:36]Cover opened [20:19:36]Cutter fail [20:19:36]Cutter bad position [20:19:36]OFD Sender: No OFD packet to send [20:19:41]Write to MH i2c: 01 00 00 A2 72 14 [20:19:41]Write i2c OK [20:19:41]MH_I2C_Read... [20:19:41]Read from MH i2c: 01 [20:19:41]MH_I2C_Read... [20:19:41]Read from MH i2c: 01 07 00 [20:19:41]MH_I2C_Read... [20:19:41]Read from MH i2c: 01 07 00 A2 72 00 03 12 00 00 FF 0F 3E [20:19:41]state=3 [20:19:41]No paper [20:19:41]Cover opened [20:19:41]Cutter fail [20:19:41]Cutter bad position [20:19:41]OFD Sender: No OFD packet to send [20:19:46]Write to MH i2c: 01 00 00 A3 72 15 [20:19:46]Write i2c OK [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: 01 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: 01 07 00 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: 01 07 00 A3 72 00 03 12 00 00 FF 0F 3F [20:19:46]state=3 [20:19:46]No paper [20:19:46]Cover opened [20:19:46]Cutter fail [20:19:46]Cutter bad position [20:19:46]OFD Sender: No OFD packet to send [20:19:51]Write to MH i2c: 01 00 00 A4 72 16 [20:19:51]Write i2c OK [20:19:51]MH_I2C_Read... [20:19:51]Read from MH i2c: 01 [20:19:51]MH_I2C_Read... [20:19:51]Read from MH i2c: 01 07 00 [20:19:51]MH_I2C_Read... [20:19:51]Read from MH i2c: 01 07 00 A4 72 00 03 12 00 00 FF 0F 40 [20:19:51]state=3 [20:19:51]No paper [20:19:51]Cover opened [20:19:51]Cutter fail [20:19:51]Cutter bad position [20:19:51]OFD Sender: No OFD packet to send [20:19:56]Write to MH i2c: 01 00 00 A5 72 17 [20:19:56]Write i2c OK [20:19:56]MH_I2C_Read... [20:19:56]Read from MH i2c: 01 [20:19:56]MH_I2C_Read... [20:19:56]Read from MH i2c: 01 07 00 [20:19:56]MH_I2C_Read... [20:19:56]Read from MH i2c: 01 07 00 A5 72 00 03 12 00 00 FF 0F 41 [20:19:56]state=3 [20:19:56]No paper [20:19:56]Cover opened [20:19:56]Cutter fail [20:19:56]Cutter bad position [20:19:56]OFD Sender: No OFD packet to send [20:20:01]Write to MH i2c: 01 00 00 A6 72 18 [20:20:01]Write i2c OK [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: 01 [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: 01 07 00 [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: 01 07 00 A6 72 00 03 12 00 00 FF 0F 42 [20:20:01]state=3 [20:20:01]No paper [20:20:01]Cover opened [20:20:01]Cutter fail [20:20:01]Cutter bad position [20:20:01]OFD Sender: No OFD packet to send [20:20:06]Write to MH i2c: 01 00 00 A7 72 19 [20:20:06]Write i2c OK [20:20:06]MH_I2C_Read... [20:20:06]Read from MH i2c: 01 [20:20:06]MH_I2C_Read... [20:20:06]Read from MH i2c: 01 07 00 [20:20:06]MH_I2C_Read... [20:20:06]Read from MH i2c: 01 07 00 A7 72 00 03 12 00 00 FF 0F 43 [20:20:06]state=3 [20:20:06]No paper [20:20:06]Cover opened [20:20:06]Cutter fail [20:20:06]Cutter bad position [20:20:06]OFD Sender: No OFD packet to send [20:20:11]Write to MH i2c: 01 00 00 A8 72 1A [20:20:11]Write i2c OK [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: 01 [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: 01 07 00 [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: 01 07 00 A8 72 00 03 12 00 00 FF 0F 44 [20:20:11]state=3 [20:20:11]No paper [20:20:11]Cover opened [20:20:11]Cutter fail [20:20:11]Cutter bad position [20:20:11]OFD Sender: No OFD packet to send [20:20:16]Write to MH i2c: 01 00 00 A9 72 1B [20:20:16]Write i2c OK [20:20:16]MH_I2C_Read... [20:20:16]Read from MH i2c: 01 [20:20:16]MH_I2C_Read... [20:20:16]Read from MH i2c: 01 07 00 [20:20:16]MH_I2C_Read... [20:20:16]Read from MH i2c: 01 07 00 A9 72 00 03 12 00 00 FF 0F 45 [20:20:16]state=3 [20:20:16]No paper [20:20:16]Cover opened [20:20:16]Cutter fail [20:20:16]Cutter bad position [20:20:16]OFD Sender: No OFD packet to send [20:20:21]Write to MH i2c: 01 00 00 AA 72 1C [20:20:21]Write i2c OK [20:20:21]MH_I2C_Read... [20:20:21]Read from MH i2c: 01 [20:20:21]MH_I2C_Read... [20:20:21]Read from MH i2c: 01 07 00 [20:20:21]MH_I2C_Read... [20:20:21]Read from MH i2c: 01 07 00 AA 72 00 03 12 00 00 FF 0F 46 [20:20:21]state=3 [20:20:21]No paper [20:20:21]Cover opened [20:20:21]Cutter fail [20:20:21]Cutter bad position [20:20:21]OFD Sender: No OFD packet to send [20:20:26]Write to MH i2c: 01 00 00 AB 72 1D [20:20:26]Write i2c OK [20:20:26]MH_I2C_Read... [20:20:26]Read from MH i2c: 01 [20:20:26]MH_I2C_Read... [20:20:26]Read from MH i2c: 01 07 00 [20:20:26]MH_I2C_Read... [20:20:26]Read from MH i2c: 01 07 00 AB 72 00 03 12 00 00 FF 0F 47 [20:20:26]state=3 [20:20:26]No paper [20:20:26]Cover opened [20:20:26]Cutter fail [20:20:26]Cutter bad position [20:20:26]OFD Sender: No OFD packet to send [20:20:31]Write to MH i2c: 01 00 00 AC 72 1E [20:20:31]Write i2c OK [20:20:31]MH_I2C_Read... [20:20:31]Read from MH i2c: 01 [20:20:31]MH_I2C_Read... [20:20:31]Read from MH i2c: 01 07 00 [20:20:31]MH_I2C_Read... [20:20:31]Read from MH i2c: 01 07 00 AC 72 00 03 12 00 00 FF 0F 48 [20:20:31]state=3 [20:20:31]No paper [20:20:31]Cover opened [20:20:31]Cutter fail [20:20:31]Cutter bad position [20:20:31]OFD Sender: No OFD packet to send [20:20:36]Write to MH i2c: 01 00 00 AD 72 1F [20:20:36]Write i2c OK [20:20:36]MH_I2C_Read... [20:20:36]Read from MH i2c: 01 [20:20:36]MH_I2C_Read... [20:20:36]Read from MH i2c: 01 07 00 [20:20:36]MH_I2C_Read... [20:20:36]Read from MH i2c: 01 07 00 AD 72 00 03 12 00 00 FF 0F 49 [20:20:36]state=3 [20:20:36]No paper [20:20:36]Cover opened [20:20:36]Cutter fail [20:20:36]Cutter bad position [20:20:36]OFD Sender: No OFD packet to send [20:20:41]Write to MH i2c: 01 00 00 AE 72 20 [20:20:41]Write i2c OK [20:20:41]MH_I2C_Read... [20:20:41]Read from MH i2c: 01 [20:20:41]MH_I2C_Read... [20:20:41]Read from MH i2c: 01 07 00 [20:20:41]MH_I2C_Read... [20:20:41]Read from MH i2c: 01 07 00 AE 72 00 03 12 00 00 FF 0F 4A [20:20:41]state=3 [20:20:41]No paper [20:20:41]Cover opened [20:20:41]Cutter fail [20:20:41]Cutter bad position [20:20:41]OFD Sender: No OFD packet to send [20:20:42]int [20:20:42]Write to MH i2c: 01 00 00 AF 72 21 [20:20:42]*** FLAG_PRN_PAP2 reset [20:20:42]Write i2c OK [20:20:42]MH_I2C_Read... [20:20:42]Read from MH i2c: 01 [20:20:42]MH_I2C_Read... [20:20:42]Read from MH i2c: 01 07 00 [20:20:42]MH_I2C_Read... [20:20:42]*** FLAG_PRN_PAP1 reset [20:20:42]Read from MH i2c: 01 07 00 AF 72 00 00 12 00 00 FF 0F 48 [20:20:42]state=3 [20:20:42]Cutter fail [20:20:42]Cutter bad position [20:20:42]Cover closed [20:20:43]int [20:20:43]Write to MH i2c: 01 00 00 B0 72 22 [20:20:43]Write i2c OK [20:20:43]MH_I2C_Read... [20:20:43]Read from MH i2c: 01 [20:20:43]MH_I2C_Read... [20:20:43]Read from MH i2c: 01 07 00 [20:20:43]MH_I2C_Read... [20:20:43]*** FLAG_PRN_PAP2 set [20:20:43]*** FLAG_PRN_PAP1 set [20:20:43]Read from MH i2c: 01 07 00 B0 72 00 03 12 00 00 FF 0F 4C [20:20:43]state=0 [20:20:43]No paper [20:20:43]Cover opened [20:20:43]Cutter fail [20:20:43]Cutter bad position [20:20:46]OFD Sender: No OFD packet to send [20:20:48]Write to MH i2c: 01 00 00 B1 72 23 [20:20:48]Write i2c OK [20:20:48]MH_I2C_Read... [20:20:48]Read from MH i2c: 01 [20:20:48]MH_I2C_Read... [20:20:48]Read from MH i2c: 01 07 00 [20:20:48]MH_I2C_Read... [20:20:48]Read from MH i2c: 01 07 00 B1 72 00 03 12 00 00 FF 0F 4D [20:20:48]state=3 [20:20:48]No paper [20:20:48]Cover opened [20:20:48]Cutter fail [20:20:48]Cutter bad position [20:20:49]int [20:20:49]Write to MH i2c: 01 00 00 B2 72 24 [20:20:49]*** FLAG_PRN_PAP2 reset [20:20:49]Write i2c OK [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: 01 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: 01 07 00 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: 01 07 00 B2 72 00 01 12 00 00 FF 0F 4C [20:20:49]state=3 [20:20:49]No paper [20:20:49]Cutter fail [20:20:49]Cutter bad position [20:20:49]Cover closed [20:20:50]int [20:20:50]Write to MH i2c: 01 00 00 B3 72 25 [20:20:50]*** FLAG_PRN_PAP2 set [20:20:50]Write i2c OK [20:20:50]MH_I2C_Read... [20:20:50]Read from MH i2c: 01 [20:20:50]MH_I2C_Read... [20:20:50]Read from MH i2c: 01 07 00 [20:20:50]MH_I2C_Read... [20:20:50]Read from MH i2c: 01 07 00 B3 72 00 03 12 00 00 FF 0F 4F [20:20:50]state=0 [20:20:50]No paper [20:20:50]Cover opened [20:20:50]Cutter fail [20:20:50]Cutter bad position [20:20:51]OFD Sender: No OFD packet to send [20:20:54]int [20:20:54]Write to MH i2c: 01 00 00 B4 72 26 [20:20:54]*** FLAG_PRN_PAP2 reset [20:20:54]Write i2c OK [20:20:54]MH_I2C_Read... [20:20:54]Read from MH i2c: 01 [20:20:54]MH_I2C_Read... [20:20:54]Read from MH i2c: 01 07 00 [20:20:54]MH_I2C_Read... [20:20:54]Read from MH i2c: 01 07 00 B4 72 00 01 12 00 00 FF 0F 4E [20:20:54]state=3 [20:20:54]No paper [20:20:54]Cutter fail [20:20:54]Cutter bad position [20:20:54]Cover closed [20:20:55]int [20:20:55]Write to MH i2c: 01 00 00 B5 72 27 [20:20:55]*** FLAG_PRN_PAP2 set [20:20:55]Write i2c OK [20:20:55]MH_I2C_Read... [20:20:55]Read from MH i2c: 01 [20:20:55]MH_I2C_Read... [20:20:55]Read from MH i2c: 01 07 00 [20:20:55]MH_I2C_Read... [20:20:55]Read from MH i2c: 01 07 00 B5 72 00 03 12 00 00 FF 0F 51 [20:20:55]state=0 [20:20:55]No paper [20:20:55]Cover opened [20:20:55]Cutter fail [20:20:55]Cutter bad position [20:20:56]OFD Sender: No OFD packet to send [20:21:00]Write to MH i2c: 01 00 00 B6 72 28 [20:21:00]Write i2c OK [20:21:00]MH_I2C_Read... [20:21:00]Read from MH i2c: 01 [20:21:00]MH_I2C_Read... [20:21:00]Read from MH i2c: 01 07 00 [20:21:00]MH_I2C_Read... [20:21:00]Read from MH i2c: 01 07 00 B6 72 00 03 12 00 00 FF 0F 52 [20:21:00]state=3 [20:21:00]No paper [20:21:00]Cover opened [20:21:00]Cutter fail [20:21:00]Cutter bad position [20:21:01]OFD Sender: No OFD packet to send [20:21:05]Write to MH i2c: 01 00 00 B7 72 29 [20:21:05]Write i2c OK [20:21:05]MH_I2C_Read... [20:21:05]Read from MH i2c: 01 [20:21:05]MH_I2C_Read... [20:21:05]Read from MH i2c: 01 07 00 [20:21:05]MH_I2C_Read... [20:21:05]Read from MH i2c: 01 07 00 B7 72 00 03 12 00 00 FF 0F 53 [20:21:05]state=3 [20:21:05]No paper [20:21:05]Cover opened [20:21:05]Cutter fail [20:21:05]Cutter bad position [20:21:07]OFD Sender: No OFD packet to send [20:21:10]Write to MH i2c: 01 00 00 B8 72 2A [20:21:10]Write i2c OK [20:21:10]MH_I2C_Read... [20:21:10]Read from MH i2c: 01 [20:21:10]MH_I2C_Read... [20:21:10]Read from MH i2c: 01 07 00 [20:21:10]MH_I2C_Read... [20:21:10]Read from MH i2c: 01 07 00 B8 72 00 03 12 00 00 FF 0F 54 [20:21:10]state=3 [20:21:10]No paper [20:21:10]Cover opened [20:21:10]Cutter fail [20:21:10]Cutter bad position [20:21:12]OFD Sender: No OFD packet to send [20:21:15]Write to MH i2c: 01 00 00 B9 72 2B [20:21:15]Write i2c OK [20:21:15]MH_I2C_Read... [20:21:15]Read from MH i2c: 01 [20:21:15]MH_I2C_Read... [20:21:15]Read from MH i2c: 01 07 00 [20:21:15]MH_I2C_Read... [20:21:15]Read from MH i2c: 01 07 00 B9 72 00 03 12 00 00 FF 0F 55 [20:21:15]state=3 [20:21:15]No paper [20:21:15]Cover opened [20:21:15]Cutter fail [20:21:15]Cutter bad position [20:21:17]OFD Sender: No OFD packet to send [20:21:20]Write to MH i2c: 01 00 00 BA 72 2C [20:21:20]Write i2c OK [20:21:20]MH_I2C_Read... [20:21:20]Read from MH i2c: 01 [20:21:20]MH_I2C_Read... [20:21:20]Read from MH i2c: 01 07 00 [20:21:20]MH_I2C_Read... [20:21:20]Read from MH i2c: 01 07 00 BA 72 00 03 12 00 00 FF 0F 56 [20:21:20]state=3 [20:21:20]No paper [20:21:20]Cover opened [20:21:20]Cutter fail [20:21:20]Cutter bad position [20:21:22]OFD Sender: No OFD packet to send [20:21:25]Write to MH i2c: 01 00 00 BB 72 2D [20:21:25]Write i2c OK [20:21:25]MH_I2C_Read... [20:21:25]Read from MH i2c: 01 [20:21:25]MH_I2C_Read... [20:21:25]Read from MH i2c: 01 07 00 [20:21:25]MH_I2C_Read... [20:21:25]Read from MH i2c: 01 07 00 BB 72 00 03 12 00 00 FF 0F 57 [20:21:25]state=3 [20:21:25]No paper [20:21:25]Cover opened [20:21:25]Cutter fail [20:21:25]Cutter bad position [20:21:27]OFD Sender: No OFD packet to send [20:21:30]Write to MH i2c: 01 00 00 BC 72 2E [20:21:30]Write i2c OK [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: 01 [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: 01 07 00 [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: 01 07 00 BC 72 00 03 12 00 00 FF 0F 58 [20:21:30]state=3 [20:21:30]No paper [20:21:30]Cover opened [20:21:30]Cutter fail [20:21:30]Cutter bad position [20:21:32]OFD Sender: No OFD packet to send [20:21:35]Write to MH i2c: 01 00 00 BD 72 2F [20:21:35]Write i2c OK [20:21:35]MH_I2C_Read... [20:21:35]Read from MH i2c: 01 [20:21:35]MH_I2C_Read... [20:21:35]Read from MH i2c: 01 07 00 [20:21:35]MH_I2C_Read... [20:21:35]Read from MH i2c: 01 07 00 BD 72 00 03 12 00 00 FF 0F 59 [20:21:35]state=3 [20:21:35]No paper [20:21:35]Cover opened [20:21:35]Cutter fail [20:21:35]Cutter bad position [20:21:37]OFD Sender: No OFD packet to send [20:21:40]Write to MH i2c: 01 00 00 BE 72 30 [20:21:40]Write i2c OK [20:21:40]MH_I2C_Read... [20:21:40]Read from MH i2c: 01 [20:21:40]MH_I2C_Read... [20:21:40]Read from MH i2c: 01 07 00 [20:21:40]MH_I2C_Read... [20:21:40]Read from MH i2c: 01 07 00 BE 72 00 03 12 00 00 FF 0F 5A [20:21:40]state=3 [20:21:40]No paper [20:21:40]Cover opened [20:21:40]Cutter fail [20:21:40]Cutter bad position [20:21:42]OFD Sender: No OFD packet to send [20:21:45]Write to MH i2c: 01 00 00 BF 72 31 [20:21:45]Write i2c OK [20:21:45]MH_I2C_Read... [20:21:45]Read from MH i2c: 01 [20:21:45]MH_I2C_Read... [20:21:45]Read from MH i2c: 01 07 00 [20:21:45]MH_I2C_Read... [20:21:45]Read from MH i2c: 01 07 00 BF 72 00 03 12 00 00 FF 0F 5B [20:21:45]state=3 [20:21:45]No paper [20:21:45]Cover opened [20:21:45]Cutter fail [20:21:45]Cutter bad position [20:21:47]OFD Sender: No OFD packet to send [20:21:50]Write to MH i2c: 01 00 00 C0 72 32 [20:21:50]Write i2c OK [20:21:50]MH_I2C_Read... [20:21:50]Read from MH i2c: 01 [20:21:50]MH_I2C_Read... [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 C0 72 00 03 12 00 00 FF 0F 5C [20:21:50]state=3 [20:21:50]No paper [20:21:50]Cover opened [20:21:50]Cutter fail [20:21:50]Cutter bad position [20:21:52]OFD Sender: No OFD packet to send [20:21:55]Write to MH i2c: 01 00 00 C1 72 33 [20:21:55]Write i2c OK [20:21:55]MH_I2C_Read... [20:21:55]Read from MH i2c: 01 [20:21:55]MH_I2C_Read... [20:21:55]Read from MH i2c: 01 07 00 [20:21:55]MH_I2C_Read... [20:21:55]Read from MH i2c: 01 07 00 C1 72 00 03 12 00 00 FF 0F 5D [20:21:55]state=3 [20:21:55]No paper [20:21:55]Cover opened [20:21:55]Cutter fail [20:21:55]Cutter bad position [20:21:57]OFD Sender: No OFD packet to send [20:22:00]Write to MH i2c: 01 00 00 C2 72 34 [20:22:00]Write i2c OK [20:22:00]MH_I2C_Read... [20:22:00]Read from MH i2c: 01 [20:22:00]MH_I2C_Read... [20:22:00]Read from MH i2c: 01 07 00 [20:22:00]MH_I2C_Read... [20:22:00]Read from MH i2c: 01 07 00 C2 72 00 03 12 00 00 FF 0F 5E [20:22:00]state=3 [20:22:00]No paper [20:22:00]Cover opened [20:22:00]Cutter fail [20:22:00]Cutter bad position [20:22:02]OFD Sender: No OFD packet to send [20:22:05]Write to MH i2c: 01 00 00 C3 72 35 [20:22:05]Write i2c OK [20:22:05]MH_I2C_Read... [20:22:05]Read from MH i2c: 01 [20:22:05]MH_I2C_Read... [20:22:05]Read from MH i2c: 01 07 00 [20:22:05]MH_I2C_Read... [20:22:05]Read from MH i2c: 01 07 00 C3 72 00 03 12 00 00 FF 0F 5F [20:22:05]state=3 [20:22:05]No paper [20:22:05]Cover opened [20:22:05]Cutter fail [20:22:05]Cutter bad position [20:22:07]OFD Sender: No OFD packet to send [20:22:10]Write to MH i2c: 01 00 00 C4 72 36 [20:22:10]Write i2c OK [20:22:10]MH_I2C_Read... [20:22:10]Read from MH i2c: 01 [20:22:10]MH_I2C_Read... [20:22:10]Read from MH i2c: 01 07 00 [20:22:10]MH_I2C_Read... [20:22:10]Read from MH i2c: 01 07 00 C4 72 00 03 12 00 00 FF 0F 60 [20:22:10]state=3 [20:22:10]No paper [20:22:10]Cover opened [20:22:10]Cutter fail [20:22:10]Cutter bad position [20:22:12]OFD Sender: No OFD packet to send [20:22:15]Write to MH i2c: 01 00 00 C5 72 37 [20:22:15]Write i2c OK [20:22:15]MH_I2C_Read... [20:22:15]Read from MH i2c: 01 [20:22:15]MH_I2C_Read... [20:22:15]Read from MH i2c: 01 07 00 [20:22:15]MH_I2C_Read... [20:22:15]Read from MH i2c: 01 07 00 C5 72 00 03 12 00 00 FF 0F 61 [20:22:15]state=3 [20:22:15]No paper [20:22:15]Cover opened [20:22:15]Cutter fail [20:22:15]Cutter bad position [20:22:17]OFD Sender: No OFD packet to send [20:22:20]Write to MH i2c: 01 00 00 C6 72 38 [20:22:20]Write i2c OK [20:22:20]MH_I2C_Read... [20:22:20]Read from MH i2c: 01 [20:22:20]MH_I2C_Read... [20:22:20]Read from MH i2c: 01 07 00 [20:22:20]MH_I2C_Read... [20:22:20]Read from MH i2c: 01 07 00 C6 72 00 03 12 00 00 FF 0F 62 [20:22:20]state=3 [20:22:20]No paper [20:22:20]Cover opened [20:22:20]Cutter fail [20:22:20]Cutter bad position [20:22:22]OFD Sender: No OFD packet to send [20:22:25]Write to MH i2c: 01 00 00 C7 72 39 [20:22:25]Write i2c OK [20:22:25]MH_I2C_Read... [20:22:25]Read from MH i2c: 01 [20:22:25]MH_I2C_Read... [20:22:25]Read from MH i2c: 01 07 00 [20:22:25]MH_I2C_Read... [20:22:25]Read from MH i2c: 01 07 00 C7 72 00 03 12 00 00 FF 0F 63 [20:22:25]state=3 [20:22:25]No paper [20:22:25]Cover opened [20:22:25]Cutter fail [20:22:25]Cutter bad position [20:22:27]OFD Sender: No OFD packet to send [20:22:30]Write to MH i2c: 01 00 00 C8 72 3A [20:22:30]Write i2c OK [20:22:30]MH_I2C_Read... [20:22:30]Read from MH i2c: 01 [20:22:30]MH_I2C_Read... [20:22:30]Read from MH i2c: 01 07 00 [20:22:30]MH_I2C_Read... [20:22:30]Read from MH i2c: 01 07 00 C8 72 00 03 12 00 00 FF 0F 64 [20:22:30]state=3 [20:22:30]No paper [20:22:30]Cover opened [20:22:30]Cutter fail [20:22:30]Cutter bad position [20:22:32]OFD Sender: No OFD packet to send [20:22:35]Write to MH i2c: 01 00 00 C9 72 3B [20:22:35]Write i2c OK [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: 01 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: 01 07 00 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: 01 07 00 C9 72 00 03 12 00 00 FF 0F 65 [20:22:35]state=3 [20:22:35]No paper [20:22:35]Cover opened [20:22:35]Cutter fail [20:22:35]Cutter bad position [20:22:37]OFD Sender: No OFD packet to send [20:22:40]Write to MH i2c: 01 00 00 CA 72 3C [20:22:40]Write i2c OK [20:22:40]MH_I2C_Read... [20:22:40]Read from MH i2c: 01 [20:22:40]MH_I2C_Read... [20:22:40]Read from MH i2c: 01 07 00 [20:22:40]MH_I2C_Read... [20:22:40]Read from MH i2c: 01 07 00 CA 72 00 03 12 00 00 FF 0F 66 [20:22:40]state=3 [20:22:40]No paper [20:22:40]Cover opened [20:22:40]Cutter fail [20:22:40]Cutter bad position [20:22:42]OFD Sender: No OFD packet to send [20:22:45]Write to MH i2c: 01 00 00 CB 72 3D [20:22:45]Write i2c OK [20:22:45]MH_I2C_Read... [20:22:45]Read from MH i2c: 01 [20:22:45]MH_I2C_Read... [20:22:45]Read from MH i2c: 01 07 00 [20:22:45]MH_I2C_Read... [20:22:45]Read from MH i2c: 01 07 00 CB 72 00 03 12 00 00 FF 0F 67 [20:22:45]state=3 [20:22:45]No paper [20:22:45]Cover opened [20:22:45]Cutter fail [20:22:45]Cutter bad position [20:22:47]OFD Sender: No OFD packet to send [20:22:50]Write to MH i2c: 01 00 00 CC 72 3E [20:22:50]Write i2c OK [20:22:50]MH_I2C_Read... [20:22:50]Read from MH i2c: 01 [20:22:50]MH_I2C_Read... [20:22:50]Read from MH i2c: 01 07 00 [20:22:50]MH_I2C_Read... [20:22:50]Read from MH i2c: 01 07 00 CC 72 00 03 12 00 00 FF 0F 68 [20:22:50]state=3 [20:22:50]No paper [20:22:50]Cover opened [20:22:50]Cutter fail [20:22:50]Cutter bad position [20:22:52]OFD Sender: No OFD packet to send [20:22:55]Write to MH i2c: 01 00 00 CD 72 3F [20:22:55]Write i2c OK [20:22:55]MH_I2C_Read... [20:22:55]Read from MH i2c: 01 [20:22:55]MH_I2C_Read... [20:22:55]Read from MH i2c: 01 07 00 [20:22:55]MH_I2C_Read... [20:22:55]Read from MH i2c: 01 07 00 CD 72 00 03 12 00 00 FF 0F 69 [20:22:55]state=3 [20:22:55]No paper [20:22:55]Cover opened [20:22:55]Cutter fail [20:22:55]Cutter bad position [20:22:57]OFD Sender: No OFD packet to send [20:23:00]Write to MH i2c: 01 00 00 CE 72 40 [20:23:00]Write i2c OK [20:23:00]MH_I2C_Read... [20:23:00]Read from MH i2c: 01 [20:23:00]MH_I2C_Read... [20:23:00]Read from MH i2c: 01 07 00 [20:23:00]MH_I2C_Read... [20:23:00]Read from MH i2c: 01 07 00 CE 72 00 03 12 00 00 FF 0F 6A [20:23:00]state=3 [20:23:00]No paper [20:23:00]Cover opened [20:23:00]Cutter fail [20:23:00]Cutter bad position [20:23:02]OFD Sender: No OFD packet to send [20:23:05]Write to MH i2c: 01 00 00 CF 72 41 [20:23:05]Write i2c OK [20:23:05]MH_I2C_Read... [20:23:05]Read from MH i2c: 01 [20:23:05]MH_I2C_Read... [20:23:05]Read from MH i2c: 01 07 00 [20:23:05]MH_I2C_Read... [20:23:05]Read from MH i2c: 01 07 00 CF 72 00 03 12 00 00 FF 0F 6B [20:23:05]state=3 [20:23:05]No paper [20:23:05]Cover opened [20:23:05]Cutter fail [20:23:05]Cutter bad position [20:23:07]OFD Sender: No OFD packet to send [20:23:10]Write to MH i2c: 01 00 00 D0 72 42 [20:23:10]Write i2c OK [20:23:10]MH_I2C_Read... [20:23:10]Read from MH i2c: 01 [20:23:10]MH_I2C_Read... [20:23:10]Read from MH i2c: 01 07 00 [20:23:10]MH_I2C_Read... [20:23:10]Read from MH i2c: 01 07 00 D0 72 00 03 12 00 00 FF 0F 6C [20:23:10]state=3 [20:23:10]No paper [20:23:10]Cover opened [20:23:10]Cutter fail [20:23:10]Cutter bad position [20:23:12]OFD Sender: No OFD packet to send [20:23:15]Write to MH i2c: 01 00 00 D1 72 43 [20:23:15]Write i2c OK [20:23:15]MH_I2C_Read... [20:23:15]Read from MH i2c: 01 [20:23:15]MH_I2C_Read... [20:23:15]Read from MH i2c: 01 07 00 [20:23:15]MH_I2C_Read... [20:23:15]Read from MH i2c: 01 07 00 D1 72 00 03 12 00 00 FF 0F 6D [20:23:15]state=3 [20:23:15]No paper [20:23:15]Cover opened [20:23:15]Cutter fail [20:23:15]Cutter bad position [20:23:17]OFD Sender: No OFD packet to send [20:23:20]Write to MH i2c: 01 00 00 D2 72 44 [20:23:20]Write i2c OK [20:23:20]MH_I2C_Read... [20:23:20]Read from MH i2c: 01 [20:23:20]MH_I2C_Read... [20:23:20]Read from MH i2c: 01 07 00 [20:23:20]MH_I2C_Read... [20:23:20]Read from MH i2c: 01 07 00 D2 72 00 03 12 00 00 FF 0F 6E [20:23:20]state=3 [20:23:20]No paper [20:23:20]Cover opened [20:23:20]Cutter fail [20:23:20]Cutter bad position [20:23:22]OFD Sender: No OFD packet to send [20:23:25]Write to MH i2c: 01 00 00 D3 72 45 [20:23:25]Write i2c OK [20:23:25]MH_I2C_Read... [20:23:25]Read from MH i2c: 01 [20:23:25]MH_I2C_Read... [20:23:25]Read from MH i2c: 01 07 00 [20:23:25]MH_I2C_Read... [20:23:25]Read from MH i2c: 01 07 00 D3 72 00 03 12 00 00 FF 0F 6F [20:23:25]state=3 [20:23:25]No paper [20:23:25]Cover opened [20:23:25]Cutter fail [20:23:25]Cutter bad position [20:23:27]OFD Sender: No OFD packet to send [20:23:30]Write to MH i2c: 01 00 00 D4 72 46 [20:23:30]Write i2c OK [20:23:30]MH_I2C_Read... [20:23:30]Read from MH i2c: 01 [20:23:30]MH_I2C_Read... [20:23:30]Read from MH i2c: 01 07 00 [20:23:30]MH_I2C_Read... [20:23:30]Read from MH i2c: 01 07 00 D4 72 00 03 12 00 00 FF 0F 70 [20:23:30]state=3 [20:23:30]No paper [20:23:30]Cover opened [20:23:30]Cutter fail [20:23:30]Cutter bad position [20:23:32]OFD Sender: No OFD packet to send [20:23:35]Write to MH i2c: 01 00 00 D5 72 47 [20:23:35]Write i2c OK [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: 01 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: 01 07 00 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: 01 07 00 D5 72 00 03 12 00 00 FF 0F 71 [20:23:35]state=3 [20:23:35]No paper [20:23:35]Cover opened [20:23:35]Cutter fail [20:23:35]Cutter bad position [20:23:37]OFD Sender: No OFD packet to send [20:23:40]Write to MH i2c: 01 00 00 D6 72 48 [20:23:40]Write i2c OK [20:23:40]MH_I2C_Read... [20:23:40]Read from MH i2c: 01 [20:23:40]MH_I2C_Read... [20:23:40]Read from MH i2c: 01 07 00 [20:23:40]MH_I2C_Read... [20:23:40]Read from MH i2c: 01 07 00 D6 72 00 03 12 00 00 FF 0F 72 [20:23:40]state=3 [20:23:40]No paper [20:23:40]Cover opened [20:23:40]Cutter fail [20:23:40]Cutter bad position [20:23:42]OFD Sender: No OFD packet to send [20:23:45]Write to MH i2c: 01 00 00 D7 72 49 [20:23:45]Write i2c OK [20:23:45]MH_I2C_Read... [20:23:45]Read from MH i2c: 01 [20:23:45]MH_I2C_Read... [20:23:45]Read from MH i2c: 01 07 00 [20:23:45]MH_I2C_Read... [20:23:45]Read from MH i2c: 01 07 00 D7 72 00 03 12 00 00 FF 0F 73 [20:23:45]state=3 [20:23:45]No paper [20:23:45]Cover opened [20:23:45]Cutter fail [20:23:45]Cutter bad position [20:23:47]OFD Sender: No OFD packet to send [20:23:50]Write to MH i2c: 01 00 00 D8 72 4A [20:23:50]Write i2c OK [20:23:50]MH_I2C_Read... [20:23:50]Read from MH i2c: 01 [20:23:50]MH_I2C_Read... [20:23:50]Read from MH i2c: 01 07 00 [20:23:50]MH_I2C_Read... [20:23:50]Read from MH i2c: 01 07 00 D8 72 00 03 12 00 00 FF 0F 74 [20:23:50]state=3 [20:23:50]No paper [20:23:50]Cover opened [20:23:50]Cutter fail [20:23:50]Cutter bad position [20:23:52]OFD Sender: No OFD packet to send [20:23:55]Write to MH i2c: 01 00 00 D9 72 4B [20:23:55]Write i2c OK [20:23:55]MH_I2C_Read... [20:23:55]Read from MH i2c: 01 [20:23:55]MH_I2C_Read... [20:23:55]Read from MH i2c: 01 07 00 [20:23:55]MH_I2C_Read... [20:23:55]Read from MH i2c: 01 07 00 D9 72 00 03 12 00 00 FF 0F 75 [20:23:55]state=3 [20:23:55]No paper [20:23:55]Cover opened [20:23:55]Cutter fail [20:23:55]Cutter bad position [20:23:57]OFD Sender: No OFD packet to send [20:24:00]Write to MH i2c: 01 00 00 DA 72 4C [20:24:00]Write i2c OK [20:24:00]MH_I2C_Read... [20:24:00]Read from MH i2c: 01 [20:24:00]MH_I2C_Read... [20:24:00]Read from MH i2c: 01 07 00 [20:24:00]MH_I2C_Read... [20:24:00]Read from MH i2c: 01 07 00 DA 72 00 03 12 00 00 FF 0F 76 [20:24:00]state=3 [20:24:00]No paper [20:24:00]Cover opened [20:24:00]Cutter fail [20:24:00]Cutter bad position [20:24:02]OFD Sender: No OFD packet to send [20:24:05]Write to MH i2c: 01 00 00 DB 72 4D [20:24:05]Write i2c OK [20:24:05]MH_I2C_Read... [20:24:05]Read from MH i2c: 01 [20:24:05]MH_I2C_Read... [20:24:05]Read from MH i2c: 01 07 00 [20:24:05]MH_I2C_Read... [20:24:05]Read from MH i2c: 01 07 00 DB 72 00 03 12 00 00 FF 0F 77 [20:24:05]state=3 [20:24:05]No paper [20:24:05]Cover opened [20:24:05]Cutter fail [20:24:05]Cutter bad position [20:24:07]OFD Sender: No OFD packet to send [20:24:10]Write to MH i2c: 01 00 00 DC 72 4E [20:24:10]Write i2c OK [20:24:10]MH_I2C_Read... [20:24:10]Read from MH i2c: 01 [20:24:10]MH_I2C_Read... [20:24:10]Read from MH i2c: 01 07 00 [20:24:10]MH_I2C_Read... [20:24:10]Read from MH i2c: 01 07 00 DC 72 00 03 12 00 00 FF 0F 78 [20:24:10]state=3 [20:24:10]No paper [20:24:10]Cover opened [20:24:10]Cutter fail [20:24:10]Cutter bad position [20:24:12]OFD Sender: No OFD packet to send [20:24:13]int [20:24:13]Write to MH i2c: 01 00 00 DD 72 4F [20:24:13]*** FLAG_PRN_PAP2 reset [20:24:13]Write i2c OK [20:24:13]MH_I2C_Read... [20:24:13]Read from MH i2c: 01 [20:24:13]MH_I2C_Read... [20:24:13]Read from MH i2c: 01 07 00 [20:24:13]MH_I2C_Read... [20:24:13]*** FLAG_PRN_PAP1 reset [20:24:13]Read from MH i2c: 01 07 00 DD 72 00 00 12 00 00 FF 0F 76 [20:24:13]state=3 [20:24:13]Cutter fail [20:24:13]Cutter bad position [20:24:13]Cover closed [20:24:17]OFD Sender: No OFD packet to send [20:24:21]accept exits with 9 [20:24:21]New connection [20:24:21]New thread 3067137380 created [20:24:21]Thread 3066994020 joined [20:24:21]Waiting for new connection... [20:24:21] Sock 9.Parse request [20:24:21]Sock 9.Check first char [20:24:21]Sock 9.First char is OK [20:24:21]request: POST /json_proto HTTP/1.0 [20:24:21]Method: POST [20:24:21]URL: /json_proto [20:24:21]Method is POST - this is cgi request [20:24:21]url: /json_proto [20:24:21]query_string will be loaded in cgi processing [20:24:21]execute_cgi json_proto POST (null) [20:24:21]execute_cgi path=json_proto method=POST [20:24:21]POST find Content-Length [20:24:21]Host: 172.17.44.195:8080 [20:24:21]Content-Length: 215 [20:24:21]Content-Type: application/json [20:24:21] [20:24:21]POST finish read [20:24:21]Found Content-Length = 215 [20:24:21]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:24:21]execute_script... [20:24:21]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:24:21]POST & json_proto [20:24:21]process_json_proto [20:24:21]json parsed OK: [20:24:21]protocol is kg_v1.0 [20:24:21]action value=get_value [20:24:21]process_action get_value [20:24:21]cmd_get_value [20:24:21]process_action get_value done [20:24:21]requested_data is exist [20:24:21]produce_requested_data [20:24:21]requested_item kkm.sn is exist - process it [20:24:21]requested_item kkm.ver is exist - process it [20:24:21]requested_item fm.sn is exist - process it [20:24:21]wFMCommunicate request_size=4 [20:24:21]MH_SAM_APDU [20:24:21]CAPDU: 80 11 00 00 [20:24:21]Write to MH i2c: E2 08 00 DE 72 80 11 00 00 00 00 00 00 CA [20:24:21]Write i2c OK [20:24:21]MH_I2C_Read... [20:24:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:21]Read from MH i2c: E2 [20:24:21]MH_I2C_Read... [20:24:21]Read from MH i2c: E2 17 00 [20:24:21]MH_I2C_Read... [20:24:21]Read from MH i2c: E2 17 00 DE 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 21 [20:24:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:24:21]wFMCommunicate OK [20:24:21]requested_item fd.num is exist - process it [20:24:21]SAM_PROTO_GetFieldsCounters [20:24:21]wFMCommunicate request_size=4 [20:24:21]MH_SAM_APDU [20:24:21]CAPDU: 80 13 00 00 [20:24:21]Write to MH i2c: E2 08 00 DF 72 80 13 00 00 00 00 00 00 CD [20:24:21]Write i2c OK [20:24:21]MH_I2C_Read... [20:24:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:24:21]Read from MH i2c: E2 [20:24:21]MH_I2C_Read... [20:24:21]Read from MH i2c: E2 62 00 [20:24:21]MH_I2C_Read... [20:24:21]Read from MH i2c: E2 62 00 DF 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 46 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 82 01 00 00 5E 04 04 00 82 01 00 00 57 04 04 00 83 01 00 00 19 04 04 00 00 00 00 00 90 00 5D [20:24:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 46 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 82 01 00 00 5E 04 04 00 82 01 00 00 57 04 04 00 83 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:24:21]wFMCommunicate OK [20:24:21]SAM_PROTO_GetFieldsCounters done [20:24:21]requested_item shift.num is exist - process it [20:24:21]requested_item shift.opened is exist - process it [20:24:21]req_shift_opened [20:24:21]FM_GetShiftState [20:24:21]SAM_PROTO_GetShiftState [20:24:21]wFMCommunicate request_size=4 [20:24:21]MH_SAM_APDU [20:24:21]CAPDU: 80 13 01 00 [20:24:21]Write to MH i2c: E2 08 00 E0 72 80 13 01 00 00 00 00 00 CF [20:24:21]Write i2c OK [20:24:21]MH_I2C_Read... [20:24:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:24:21]Read from MH i2c: E2 [20:24:21]MH_I2C_Read... [20:24:21]Read from MH i2c: E2 0E 00 [20:24:21]MH_I2C_Read... [20:24:21]Read from MH i2c: E2 0E 00 E0 72 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 96 [20:24:21]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [20:24:21]wFMCommunicate OK [20:24:21]SAM_PROTO_GetShiftState done [20:24:21]FM_GetShiftState done [20:24:21]req_shift_opened done [20:24:21]requested_item shift.open_date is exist - process it [20:24:21]req_shift_open_date [20:24:21]req_shift_open_date done [20:24:21]produce_requested_data done [20:24:21]produce_requested_data return {"kkm.sn":"0300000091","kkm.ver":"001","fm.sn":"0000000000871839","fd.num":228422,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [20:24:21]process_action_free get_value [20:24:21]json_value_free [20:24:21]json_value_free done [20:24:21]process_json_proto returns [20:24:21]Send response to host [20:24:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000091","kkm.ver":"001","fm.sn":"0000000000871839","fd.num":228422,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [20:24:21]free response buf [20:24:21]execute_script done [20:24:21]execute_script returns [20:24:21]free content buf [20:24:21]Sock 9.Close socket [20:24:21]Sock 9.Thread stoped [20:24:21]accept exits with 7 [20:24:21]New connection [20:24:21]New thread 3066994020 created [20:24:21]Thread 3067137380 joined [20:24:21]Waiting for new connection... [20:24:21] Sock 7.Parse request [20:24:21]Sock 7.Check first char [20:24:21]Sock 7.First char is OK [20:24:21]request: POST /json_proto HTTP/1.0 [20:24:21]Method: POST [20:24:21]URL: /json_proto [20:24:21]Method is POST - this is cgi request [20:24:21]url: /json_proto [20:24:21]query_string will be loaded in cgi processing [20:24:21]execute_cgi json_proto POST (null) [20:24:21]execute_cgi path=json_proto method=POST [20:24:21]POST find Content-Length [20:24:21]Host: 172.17.44.195:8080 [20:24:21]Content-Length: 331 [20:24:21]Content-Type: application/json [20:24:21] [20:24:21]POST finish read [20:24:21]Found Content-Length = 331 [20:24:21]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:24:21]execute_script... [20:24:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [20:24:22]POST & json_proto [20:24:22]process_json_proto [20:24:22]json parsed OK: [20:24:22]protocol is kg_v1.0 [20:24:22]action value=get_value [20:24:22]process_action get_value [20:24:22]cmd_get_value [20:24:22]process_action get_value done [20:24:22]requested_data is exist [20:24:22]produce_requested_data [20:24:22]requested_item fm.sale.total is exist - process it [20:24:22]SAM_PROTO_GetFMData [20:24:22]wFMCommunicate request_size=4 [20:24:22]MH_SAM_APDU [20:24:22]CAPDU: 80 13 03 00 [20:24:22]Write to MH i2c: E2 08 00 E1 72 80 13 03 00 00 00 00 00 D2 [20:24:22]Write i2c OK [20:24:22]MH_I2C_Read... [20:24:22]OFD Sender: No OFD packet to send [20:24:22]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [20:24:22]Read from MH i2c: E2 [20:24:22]MH_I2C_Read... [20:24:22]Read from MH i2c: E2 FD 00 [20:24:22]MH_I2C_Read... [20:24:22]Read from MH i2c: E2 FD 00 E1 72 00 C5 04 85 04 C1 04 6E 04 04 00 18 78 03 00 69 04 A3 00 6F 04 04 00 27 71 03 00 B1 04 05 00 15 1E 0B C9 04 70 04 05 00 FC 8B ED 4E 04 72 04 04 00 19 92 1D 7A 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 CF 9B 22 82 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 33 0B D8 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F1 06 00 00 B1 04 04 00 18 5D D0 1E 70 04 04 00 18 5D D0 1E 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 3D C9 45 03 EF 03 09 90 00 70 [20:24:22]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 18 78 03 00 69 04 A3 00 6F 04 04 00 27 71 03 00 B1 04 05 00 15 1E 0B C9 04 70 04 05 00 FC 8B ED 4E 04 72 04 04 00 19 92 1D 7A 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 CF 9B 22 82 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 33 0B D8 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F1 06 00 00 B1 04 04 00 18 5D D0 1E 70 04 04 00 18 5D D0 1E 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 3D C9 45 03 EF 03 09 90 00 [20:24:22]wFMCommunicate OK [20:24:22]wFMCommunicate request_size=4 [20:24:22]MH_SAM_APDU [20:24:22]CAPDU: 80 17 00 00 [20:24:22]Write to MH i2c: E2 08 00 E2 72 80 17 00 00 00 00 00 00 D4 [20:24:22]Write i2c OK [20:24:22]MH_I2C_Read... [20:24:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:24:22]Read from MH i2c: E2 [20:24:22]MH_I2C_Read... [20:24:22]Read from MH i2c: E2 FD 00 [20:24:22]MH_I2C_Read... [20:24:22]Read from MH i2c: E2 FD 00 E2 72 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 49 D0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 E8 [20:24:22]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 49 D0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [20:24:22]wFMCommunicate OK [20:24:22]wFMCommunicate request_size=4 [20:24:22]MH_SAM_APDU [20:24:22]CAPDU: 80 17 00 00 [20:24:22]Write to MH i2c: E2 08 00 E3 72 80 17 00 00 00 00 00 00 D5 [20:24:22]Write i2c OK [20:24:22]MH_I2C_Read... [20:24:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:24:23]Read from MH i2c: E2 [20:24:23]MH_I2C_Read... [20:24:23]Read from MH i2c: E2 FD 00 [20:24:23]MH_I2C_Read... [20:24:23]Read from MH i2c: E2 FD 00 E3 72 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E7 [20:24:23]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:24:23]wFMCommunicate OK [20:24:23]wFMCommunicate request_size=4 [20:24:23]MH_SAM_APDU [20:24:23]CAPDU: 80 17 00 00 [20:24:23]Write to MH i2c: E2 08 00 E4 72 80 17 00 00 00 00 00 00 D6 [20:24:23]Write i2c OK [20:24:23]MH_I2C_Read... [20:24:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:24:23]Read from MH i2c: E2 [20:24:23]MH_I2C_Read... [20:24:23]Read from MH i2c: E2 FD 00 [20:24:23]MH_I2C_Read... [20:24:23]Read from MH i2c: E2 FD 00 E4 72 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 62 [20:24:23]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:24:23]wFMCommunicate OK [20:24:23]wFMCommunicate request_size=4 [20:24:23]MH_SAM_APDU [20:24:23]CAPDU: 80 17 00 00 [20:24:23]Write to MH i2c: E2 08 00 E5 72 80 17 00 00 00 00 00 00 D7 [20:24:23]Write i2c OK [20:24:23]MH_I2C_Read... [20:24:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [20:24:23]Read from MH i2c: E2 [20:24:23]MH_I2C_Read... [20:24:23]Read from MH i2c: E2 E2 00 [20:24:23]MH_I2C_Read... [20:24:23]Read from MH i2c: E2 E2 00 E5 72 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B5 [20:24:23]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:24:23]wFMCommunicate OK [20:24:23]SAM_PROTO_GetFMData done [20:24:23]requested_item fm.sale_refund.total is exist - process it [20:24:23]requested_item fm.buy.total is exist - process it [20:24:23]requested_item shift.sale.total is exist - process it [20:24:23]SAM_PROTO_GetShiftData [20:24:23]wFMCommunicate request_size=4 [20:24:23]MH_SAM_APDU [20:24:23]CAPDU: 80 13 02 00 [20:24:23]Write to MH i2c: E2 08 00 E6 72 80 13 02 00 00 00 00 00 D6 [20:24:23]Write i2c OK [20:24:23]MH_I2C_Read... [20:24:24]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [20:24:24]Read from MH i2c: E2 [20:24:24]MH_I2C_Read... [20:24:24]Read from MH i2c: E2 FD 00 [20:24:24]MH_I2C_Read... [20:24:24]Read from MH i2c: E2 FD 00 E6 72 00 B1 04 AA 04 AD 04 6E 04 04 00 82 01 00 00 69 04 9E 00 6F 04 04 00 82 01 00 00 B1 04 04 00 DC 63 DE 01 70 04 04 00 94 7A 8B 01 72 04 03 00 48 E9 52 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 37 D1 32 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 0F 3C 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 77 [20:24:24]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 82 01 00 00 69 04 9E 00 6F 04 04 00 82 01 00 00 B1 04 04 00 DC 63 DE 01 70 04 04 00 94 7A 8B 01 72 04 03 00 48 E9 52 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 37 D1 32 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 0F 3C 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [20:24:24]wFMCommunicate OK [20:24:24]wFMCommunicate request_size=4 [20:24:24]MH_SAM_APDU [20:24:24]CAPDU: 80 17 00 00 [20:24:24]Write to MH i2c: E2 08 00 E7 72 80 17 00 00 00 00 00 00 D9 [20:24:24]Write i2c OK [20:24:24]MH_I2C_Read... [20:24:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:24:24]Read from MH i2c: E2 [20:24:24]MH_I2C_Read... [20:24:24]Read from MH i2c: E2 FD 00 [20:24:24]MH_I2C_Read... [20:24:24]Read from MH i2c: E2 FD 00 E7 72 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F2 [20:24:24]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:24:24]wFMCommunicate OK [20:24:24]wFMCommunicate request_size=4 [20:24:24]MH_SAM_APDU [20:24:24]CAPDU: 80 17 00 00 [20:24:24]Write to MH i2c: E2 08 00 E8 72 80 17 00 00 00 00 00 00 DA [20:24:24]Write i2c OK [20:24:24]MH_I2C_Read... [20:24:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:24:24]Read from MH i2c: E2 [20:24:24]MH_I2C_Read... [20:24:24]Read from MH i2c: E2 FD 00 [20:24:24]MH_I2C_Read... [20:24:24]Read from MH i2c: E2 FD 00 E8 72 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 93 [20:24:24]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:24:24]wFMCommunicate OK [20:24:24]wFMCommunicate request_size=4 [20:24:24]MH_SAM_APDU [20:24:24]CAPDU: 80 17 00 00 [20:24:24]Write to MH i2c: E2 08 00 E9 72 80 17 00 00 00 00 00 00 DB [20:24:24]Write i2c OK [20:24:24]MH_I2C_Read... [20:24:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:24:24]Read from MH i2c: E2 [20:24:24]MH_I2C_Read... [20:24:24]Read from MH i2c: E2 FD 00 [20:24:24]MH_I2C_Read... [20:24:24]Read from MH i2c: E2 FD 00 E9 72 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 90 00 53 [20:24:24]RAPDU: 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 90 00 [20:24:24]wFMCommunicate OK [20:24:24]wFMCommunicate request_size=4 [20:24:24]MH_SAM_APDU [20:24:24]CAPDU: 80 17 00 00 [20:24:24]Write to MH i2c: E2 08 00 EA 72 80 17 00 00 00 00 00 00 DC [20:24:24]Write i2c OK [20:24:24]MH_I2C_Read... [20:24:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [20:24:25]Read from MH i2c: E2 [20:24:25]MH_I2C_Read... [20:24:25]Read from MH i2c: E2 CE 00 [20:24:25]MH_I2C_Read... [20:24:25]Read from MH i2c: E2 CE 00 EA 72 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C1 [20:24:25]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:24:25]wFMCommunicate OK [20:24:25]SAM_PROTO_GetShiftData done [20:24:25]requested_item shift.sale.total_cash is exist - process it [20:24:25]requested_item shift.sale_refund.total is exist - process it [20:24:25]requested_item shift.sale_refund.total_cash is exist - process it [20:24:25]requested_item shift.buy.total is exist - process it [20:24:25]requested_item shift.buy.total_cash is exist - process it [20:24:25]produce_requested_data done [20:24:25]produce_requested_data return {"fm.sale.total":205528181.97,"fm.sale_refund.total":5169718.00,"fm.buy.total":0.00,"shift.sale.total":313517.72,"shift.sale.total_cash":259181.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} [20:24:25]process_action_free get_value [20:24:25]json_value_free [20:24:25]json_value_free done [20:24:25]process_json_proto returns [20:24:25]Send response to host [20:24:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":205528181.97,"fm.sale_refund.total":5169718.00,"fm.buy.total":0.00,"shift.sale.total":313517.72,"shift.sale.total_cash":259181.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}}} [20:24:25]free response buf [20:24:25]execute_script done [20:24:25]execute_script returns [20:24:25]free content buf [20:24:25]Sock 7.Close socket [20:24:25]Sock 7.Thread stoped [20:24:27]OFD Sender: No OFD packet to send [20:24:31]int [20:24:31]Write to MH i2c: 01 00 00 EB 72 5D [20:24:31]Write i2c OK [20:24:31]MH_I2C_Read... [20:24:31]*** FLAG_PRN_PAP1 set [20:24:31]*** FLAG_PRN_PAP2 set [20:24:31]Read from MH i2c: 01 [20:24:31]MH_I2C_Read... [20:24:31]Read from MH i2c: 01 07 00 [20:24:31]MH_I2C_Read... [20:24:31]Read from MH i2c: 01 07 00 EB 72 00 03 12 00 00 FF 0F 87 [20:24:31]state=0 [20:24:31]No paper [20:24:31]Cover opened [20:24:31]Cutter fail [20:24:31]Cutter bad position [20:24:32]OFD Sender: No OFD packet to send [20:24:32]int [20:24:32]Write to MH i2c: 01 00 00 EC 72 5E [20:24:32]Write i2c OK [20:24:32]MH_I2C_Read... [20:24:32]Read from MH i2c: 01 [20:24:32]MH_I2C_Read... [20:24:32]*** FLAG_PRN_PAP2 reset [20:24:32]*** FLAG_PRN_PAP1 reset [20:24:32]Read from MH i2c: 01 07 00 [20:24:32]MH_I2C_Read... [20:24:32]Read from MH i2c: 01 07 00 EC 72 00 00 12 00 00 FF 0F 85 [20:24:32]state=3 [20:24:32]Cutter fail [20:24:32]Cutter bad position [20:24:32]Cover closed [20:24:37]OFD Sender: No OFD packet to send [20:24:37]accept exits with 9 [20:24:37]New connection [20:24:37]New thread 3067137380 created [20:24:37]Thread 3066994020 joined [20:24:37]Waiting for new connection... [20:24:37] Sock 9.Parse request [20:24:37]Sock 9.Check first char [20:24:37]Sock 9.First char is OK [20:24:37]request: POST /json_proto HTTP/1.0 [20:24:37]Method: POST [20:24:37]URL: /json_proto [20:24:37]Method is POST - this is cgi request [20:24:37]url: /json_proto [20:24:37]query_string will be loaded in cgi processing [20:24:37]execute_cgi json_proto POST (null) [20:24:37]execute_cgi path=json_proto method=POST [20:24:37]POST find Content-Length [20:24:37]Host: 172.17.44.195:8080 [20:24:37]Content-Length: 215 [20:24:37]Content-Type: application/json [20:24:37] [20:24:37]POST finish read [20:24:37]Found Content-Length = 215 [20:24:37]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:24:37]execute_script... [20:24:37]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:24:37]POST & json_proto [20:24:37]process_json_proto [20:24:37]json parsed OK: [20:24:37]protocol is kg_v1.0 [20:24:37]action value=get_value [20:24:37]process_action get_value [20:24:37]cmd_get_value [20:24:37]process_action get_value done [20:24:37]requested_data is exist [20:24:37]produce_requested_data [20:24:37]requested_item kkm.sn is exist - process it [20:24:37]requested_item kkm.ver is exist - process it [20:24:37]requested_item fm.sn is exist - process it [20:24:37]wFMCommunicate request_size=4 [20:24:37]MH_SAM_APDU [20:24:37]CAPDU: 80 11 00 00 [20:24:37]Write to MH i2c: E2 08 00 ED 72 80 11 00 00 00 00 00 00 D9 [20:24:37]Write i2c OK [20:24:37]MH_I2C_Read... [20:24:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:37]Read from MH i2c: E2 [20:24:37]MH_I2C_Read... [20:24:37]Read from MH i2c: E2 17 00 [20:24:37]MH_I2C_Read... [20:24:37]Read from MH i2c: E2 17 00 ED 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 30 [20:24:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:24:37]wFMCommunicate OK [20:24:37]requested_item fd.num is exist - process it [20:24:37]SAM_PROTO_GetFieldsCounters [20:24:37]wFMCommunicate request_size=4 [20:24:37]MH_SAM_APDU [20:24:37]CAPDU: 80 13 00 00 [20:24:37]Write to MH i2c: E2 08 00 EE 72 80 13 00 00 00 00 00 00 DC [20:24:37]Write i2c OK [20:24:37]MH_I2C_Read... [20:24:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:24:37]Read from MH i2c: E2 [20:24:37]MH_I2C_Read... [20:24:37]Read from MH i2c: E2 62 00 [20:24:37]MH_I2C_Read... [20:24:37]Read from MH i2c: E2 62 00 EE 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 46 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 82 01 00 00 5E 04 04 00 82 01 00 00 57 04 04 00 83 01 00 00 19 04 04 00 00 00 00 00 90 00 6C [20:24:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 46 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 82 01 00 00 5E 04 04 00 82 01 00 00 57 04 04 00 83 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:24:37]wFMCommunicate OK [20:24:37]SAM_PROTO_GetFieldsCounters done [20:24:37]requested_item shift.num is exist - process it [20:24:37]requested_item shift.opened is exist - process it [20:24:37]req_shift_opened [20:24:37]FM_GetShiftState [20:24:37]SAM_PROTO_GetShiftState [20:24:37]wFMCommunicate request_size=4 [20:24:37]MH_SAM_APDU [20:24:37]CAPDU: 80 13 01 00 [20:24:37]Write to MH i2c: E2 08 00 EF 72 80 13 01 00 00 00 00 00 DE [20:24:37]Write i2c OK [20:24:37]MH_I2C_Read... [20:24:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:24:37]Read from MH i2c: E2 [20:24:37]MH_I2C_Read... [20:24:37]Read from MH i2c: E2 0E 00 [20:24:37]MH_I2C_Read... [20:24:37]Read from MH i2c: E2 0E 00 EF 72 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 A5 [20:24:37]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [20:24:37]wFMCommunicate OK [20:24:37]SAM_PROTO_GetShiftState done [20:24:37]FM_GetShiftState done [20:24:37]req_shift_opened done [20:24:37]requested_item shift.open_date is exist - process it [20:24:37]req_shift_open_date [20:24:37]req_shift_open_date done [20:24:37]produce_requested_data done [20:24:37]produce_requested_data return {"kkm.sn":"0300000091","kkm.ver":"001","fm.sn":"0000000000871839","fd.num":228422,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [20:24:37]process_action_free get_value [20:24:37]json_value_free [20:24:37]json_value_free done [20:24:37]process_json_proto returns [20:24:37]Send response to host [20:24:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000091","kkm.ver":"001","fm.sn":"0000000000871839","fd.num":228422,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [20:24:37]free response buf [20:24:37]execute_script done [20:24:37]execute_script returns [20:24:37]free content buf [20:24:37]Sock 9.Close socket [20:24:37]Sock 9.Thread stoped [20:24:37]accept exits with 7 [20:24:37]New connection [20:24:37]New thread 3066994020 created [20:24:37]Thread 3067137380 joined [20:24:37]Waiting for new connection... [20:24:37] Sock 7.Parse request [20:24:37]Sock 7.Check first char [20:24:37]Sock 7.First char is OK [20:24:37]request: POST /json_proto HTTP/1.0 [20:24:37]Method: POST [20:24:37]URL: /json_proto [20:24:37]Method is POST - this is cgi request [20:24:37]url: /json_proto [20:24:37]query_string will be loaded in cgi processing [20:24:37]execute_cgi json_proto POST (null) [20:24:37]execute_cgi path=json_proto method=POST [20:24:37]POST find Content-Length [20:24:37]Host: 172.17.44.195:8080 [20:24:37]Content-Length: 331 [20:24:37]Content-Type: application/json [20:24:37] [20:24:37]POST finish read [20:24:37]Found Content-Length = 331 [20:24:37]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:24:37]execute_script... [20:24:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [20:24:37]POST & json_proto [20:24:37]process_json_proto [20:24:37]json parsed OK: [20:24:37]protocol is kg_v1.0 [20:24:37]action value=get_value [20:24:37]process_action get_value [20:24:37]cmd_get_value [20:24:37]process_action get_value done [20:24:37]requested_data is exist [20:24:37]produce_requested_data [20:24:37]requested_item fm.sale.total is exist - process it [20:24:37]SAM_PROTO_GetFMData [20:24:37]wFMCommunicate request_size=4 [20:24:37]MH_SAM_APDU [20:24:37]CAPDU: 80 13 03 00 [20:24:37]Write to MH i2c: E2 08 00 F0 72 80 13 03 00 00 00 00 00 E1 [20:24:37]Write i2c OK [20:24:37]MH_I2C_Read... [20:24:38]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [20:24:38]Read from MH i2c: E2 [20:24:38]MH_I2C_Read... [20:24:38]Read from MH i2c: E2 FD 00 [20:24:38]MH_I2C_Read... [20:24:38]Read from MH i2c: E2 FD 00 F0 72 00 C5 04 85 04 C1 04 6E 04 04 00 18 78 03 00 69 04 A3 00 6F 04 04 00 27 71 03 00 B1 04 05 00 15 1E 0B C9 04 70 04 05 00 FC 8B ED 4E 04 72 04 04 00 19 92 1D 7A 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 CF 9B 22 82 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 33 0B D8 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F1 06 00 00 B1 04 04 00 18 5D D0 1E 70 04 04 00 18 5D D0 1E 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 3D C9 45 03 EF 03 09 90 00 7F [20:24:38]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 18 78 03 00 69 04 A3 00 6F 04 04 00 27 71 03 00 B1 04 05 00 15 1E 0B C9 04 70 04 05 00 FC 8B ED 4E 04 72 04 04 00 19 92 1D 7A 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 CF 9B 22 82 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 33 0B D8 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F1 06 00 00 B1 04 04 00 18 5D D0 1E 70 04 04 00 18 5D D0 1E 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 3D C9 45 03 EF 03 09 90 00 [20:24:38]wFMCommunicate OK [20:24:38]wFMCommunicate request_size=4 [20:24:38]MH_SAM_APDU [20:24:38]CAPDU: 80 17 00 00 [20:24:38]Write to MH i2c: E2 08 00 F1 72 80 17 00 00 00 00 00 00 E3 [20:24:38]Write i2c OK [20:24:38]MH_I2C_Read... [20:24:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:24:38]Read from MH i2c: E2 [20:24:38]MH_I2C_Read... [20:24:38]Read from MH i2c: E2 FD 00 [20:24:38]MH_I2C_Read... [20:24:38]Read from MH i2c: E2 FD 00 F1 72 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 49 D0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 F7 [20:24:38]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 49 D0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [20:24:38]wFMCommunicate OK [20:24:38]wFMCommunicate request_size=4 [20:24:38]MH_SAM_APDU [20:24:38]CAPDU: 80 17 00 00 [20:24:38]Write to MH i2c: E2 08 00 F2 72 80 17 00 00 00 00 00 00 E4 [20:24:38]Write i2c OK [20:24:38]MH_I2C_Read... [20:24:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:24:38]Read from MH i2c: E2 [20:24:38]MH_I2C_Read... [20:24:38]Read from MH i2c: E2 FD 00 [20:24:38]MH_I2C_Read... [20:24:38]Read from MH i2c: E2 FD 00 F2 72 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F6 [20:24:38]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:24:38]wFMCommunicate OK [20:24:38]wFMCommunicate request_size=4 [20:24:38]MH_SAM_APDU [20:24:38]CAPDU: 80 17 00 00 [20:24:38]Write to MH i2c: E2 08 00 F3 72 80 17 00 00 00 00 00 00 E5 [20:24:38]Write i2c OK [20:24:38]MH_I2C_Read... [20:24:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:24:39]Read from MH i2c: E2 [20:24:39]MH_I2C_Read... [20:24:39]Read from MH i2c: E2 FD 00 [20:24:39]MH_I2C_Read... [20:24:39]Read from MH i2c: E2 FD 00 F3 72 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 71 [20:24:39]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:24:39]wFMCommunicate OK [20:24:39]wFMCommunicate request_size=4 [20:24:39]MH_SAM_APDU [20:24:39]CAPDU: 80 17 00 00 [20:24:39]Write to MH i2c: E2 08 00 F4 72 80 17 00 00 00 00 00 00 E6 [20:24:39]Write i2c OK [20:24:39]MH_I2C_Read... [20:24:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [20:24:39]Read from MH i2c: E2 [20:24:39]MH_I2C_Read... [20:24:39]Read from MH i2c: E2 E2 00 [20:24:39]MH_I2C_Read... [20:24:39]Read from MH i2c: E2 E2 00 F4 72 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C4 [20:24:39]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:24:39]wFMCommunicate OK [20:24:39]SAM_PROTO_GetFMData done [20:24:39]requested_item fm.sale_refund.total is exist - process it [20:24:39]requested_item fm.buy.total is exist - process it [20:24:39]requested_item shift.sale.total is exist - process it [20:24:39]SAM_PROTO_GetShiftData [20:24:39]wFMCommunicate request_size=4 [20:24:39]MH_SAM_APDU [20:24:39]CAPDU: 80 13 02 00 [20:24:39]Write to MH i2c: E2 08 00 F5 72 80 13 02 00 00 00 00 00 E5 [20:24:39]Write i2c OK [20:24:39]MH_I2C_Read... [20:24:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [20:24:39]Read from MH i2c: E2 [20:24:39]MH_I2C_Read... [20:24:39]Read from MH i2c: E2 FD 00 [20:24:39]MH_I2C_Read... [20:24:39]Read from MH i2c: E2 FD 00 F5 72 00 B1 04 AA 04 AD 04 6E 04 04 00 82 01 00 00 69 04 9E 00 6F 04 04 00 82 01 00 00 B1 04 04 00 DC 63 DE 01 70 04 04 00 94 7A 8B 01 72 04 03 00 48 E9 52 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 37 D1 32 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 0F 3C 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 86 [20:24:39]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 82 01 00 00 69 04 9E 00 6F 04 04 00 82 01 00 00 B1 04 04 00 DC 63 DE 01 70 04 04 00 94 7A 8B 01 72 04 03 00 48 E9 52 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 37 D1 32 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 0F 3C 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [20:24:39]wFMCommunicate OK [20:24:39]wFMCommunicate request_size=4 [20:24:39]MH_SAM_APDU [20:24:39]CAPDU: 80 17 00 00 [20:24:39]Write to MH i2c: E2 08 00 F6 72 80 17 00 00 00 00 00 00 E8 [20:24:39]Write i2c OK [20:24:39]MH_I2C_Read... [20:24:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:24:40]Read from MH i2c: E2 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 E7 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 8C [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725E7 (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: 4735137+1724893570=1729628707 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x220ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:10]*** Is cutter blocked? [00:00:10]*** Cutter blocked [00:00:10]*** Cut unblock start [00:00:10]*** Set cut motor for full cut [00:00:10]*** Cutter successfully unblocked [00:00:10]*** Brake cut motor [00:00:10]*** Stop cut motor [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 E7 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 8D [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 78 00 60 00 FF FF B6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 24 0A 18 67 82 C9 CF 66 2C [20:25:08]Current date/time: 22.10.2024 20:25 [20:25:08]FM_Init [20:25:08]wFMConnect [20:25:08]MH_SAM_On [20:25:08]Write to MH i2c: E0 00 00 08 00 E7 [20:25:08]Write i2c OK [20:25:08]MH_I2C_Read... [20:25:08]*** iso7816_init finished! [20:25:08]*** atr: [20:25:08]*** 0F 3B D5 18 FF 81 91 FE [20:25:08]*** 1F C3 80 73 C8 21 10 0A [20:25:08]*** 00 00 00 00 00 00 00 00 [20:25:08]*** 00 00 00 00 00 00 00 00 [20:25:08]*** 00 00 00 00 00 00 00 00 [20:25:08]*** 00 00 00 00 00 00 00 00 [20:25:08]*** 00 00 00 00 00 00 00 00 [20:25:08]*** 00 00 00 00 00 00 00 00 [20:25:08]Read from MH i2c: E0 [20:25:08]MH_I2C_Read... [20:25:08]Read from MH i2c: E0 10 00 [20:25:08]MH_I2C_Read... [20:25:08]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:25:08]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [20:25:08]wFMCommunicate request_size=10 [20:25:08]MH_SAM_APDU [20:25:08]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [20:25:08]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [20:25:08]Write i2c OK [20:25:08]MH_I2C_Read... [20:25:08]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [20:25:08]Read from MH i2c: E2 [20:25:08]MH_I2C_Read... [20:25:08]Read from MH i2c: E2 03 00 [20:25:08]MH_I2C_Read... [20:25:08]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [20:25:08]RAPDU: 90 00 [20:25:08]wFMCommunicate OK [20:25:08]wFMCommunicate request_size=4 [20:25:08]MH_SAM_APDU [20:25:08]CAPDU: 80 11 00 00 [20:25:08]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [20:25:08]Write i2c OK [20:25:08]MH_I2C_Read... [20:25:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:08]Read from MH i2c: E2 [20:25:08]MH_I2C_Read... [20:25:08]Read from MH i2c: E2 17 00 [20:25:08]MH_I2C_Read... [20:25:08]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DB [20:25:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:25:08]wFMCommunicate OK [20:25:08]Detected FM SN is 0000000000871839 [20:25:08]Stored FM SN is 0000000000871839 [20:25:08]wFMCommunicate request_size=9 [20:25:08]MH_SAM_APDU [20:25:08]CAPDU: 80 16 00 00 04 79 A4 00 00 [20:25:08]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 79 A4 00 00 00 00 AF [20:25:08]Write i2c OK [20:25:08]MH_I2C_Read... [20:25:08]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [20:25:08]Read from MH i2c: E2 [20:25:08]MH_I2C_Read... [20:25:08]Read from MH i2c: E2 03 00 [20:25:08]MH_I2C_Read... [20:25:08]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [20:25:08]RAPDU: 90 00 [20:25:08]wFMCommunicate OK [20:25:08]FM PIN OK [20:25:08]wFMCommunicate request_size=8 [20:25:08]MH_SAM_APDU [20:25:08]CAPDU: 80 14 04 00 03 02 00 01 [20:25:08]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [20:25:08]Write i2c OK [20:25:08]MH_I2C_Read... [20:25:08]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [20:25:08]Read from MH i2c: E2 [20:25:08]MH_I2C_Read... [20:25:08]Read from MH i2c: E2 03 00 [20:25:08]MH_I2C_Read... [20:25:08]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [20:25:08]RAPDU: 90 00 [20:25:08]wFMCommunicate OK [20:25:08]wFMCommunicate request_size=13 [20:25:08]MH_SAM_APDU [20:25:08]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [20:25:08]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:25:08]Write i2c OK [20:25:08]MH_I2C_Read... [20:25:08]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [20:25:08]Read from MH i2c: E2 [20:25:08]MH_I2C_Read... [20:25:08]Read from MH i2c: E2 03 00 [20:25:08]MH_I2C_Read... [20:25:08]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [20:25:08]RAPDU: 90 00 [20:25:08]wFMCommunicate OK [20:25:08]wFMCommunicate request_size=4 [20:25:08]MH_SAM_APDU [20:25:08]CAPDU: 80 11 00 00 [20:25:08]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [20:25:08]Write i2c OK [20:25:08]MH_I2C_Read... [20:25:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:08]Read from MH i2c: E2 [20:25:08]MH_I2C_Read... [20:25:08]Read from MH i2c: E2 17 00 [20:25:08]MH_I2C_Read... [20:25:08]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DF [20:25:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:25:08]wFMCommunicate OK [20:25:08]DocumentArchiveInit [20:25:08]Start Httpd... [20:25:08]Httpd thread 3067264356 created [20:25:08]Write to MH i2c: 01 00 00 0F 00 0F [20:25:08]Write i2c OK [20:25:08]MH_I2C_Read... [20:25:08]Read from MH i2c: 01 [20:25:08]MH_I2C_Read... [20:25:08]Read from MH i2c: 01 07 00 [20:25:08]MH_I2C_Read... [20:25:08]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [20:25:08]MH Int Process started [20:25:08]Allocated Socket 8 [20:25:08]Bind OK [20:25:08]Listen OK [20:25:08]httpd running on port 8080 [20:25:08]Waiting for new connection... [20:25:08]OFD Sender: No OFD packet to send [20:25:13]OFD Sender: No OFD packet to send [20:25:15]accept exits with 9 [20:25:15]New connection [20:25:15]New thread 3066977636 created [20:25:15]Waiting for new connection... [20:25:15] Sock 9.Parse request [20:25:15]Sock 9.Check first char [20:25:15]Sock 9.First char is OK [20:25:15]request: POST /json_proto HTTP/1.0 [20:25:15]Method: POST [20:25:15]URL: /json_proto [20:25:15]Method is POST - this is cgi request [20:25:15]url: /json_proto [20:25:15]query_string will be loaded in cgi processing [20:25:15]execute_cgi json_proto POST (null) [20:25:15]execute_cgi path=json_proto method=POST [20:25:15]POST find Content-Length [20:25:15]Host: 172.17.44.195:8080 [20:25:15]Content-Length: 215 [20:25:15]Content-Type: application/json [20:25:15] [20:25:15]POST finish read [20:25:15]Found Content-Length = 215 [20:25:15]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:25:15]execute_script... [20:25:15]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:25:15]POST & json_proto [20:25:15]process_json_proto [20:25:15]json parsed OK: [20:25:15]protocol is kg_v1.0 [20:25:15]action value=get_value [20:25:15]process_action get_value [20:25:15]cmd_get_value [20:25:15]process_action get_value done [20:25:15]requested_data is exist [20:25:15]produce_requested_data [20:25:15]requested_item kkm.sn is exist - process it [20:25:15]requested_item kkm.ver is exist - process it [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 10 00 80 11 00 00 00 00 00 00 8A [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 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E1 [20:25:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 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 11 00 80 13 00 00 00 00 00 00 8D [20:25:15]Write i2c OK [20:25:15]MH_I2C_Read... [20:25:15]Read from MH i2c: E2 [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 62 00 [20:25:15]MH_I2C_Read... [20:25:15]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 46 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 82 01 00 00 5E 04 04 00 82 01 00 00 57 04 04 00 83 01 00 00 19 04 04 00 00 00 00 00 90 00 1D [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 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 46 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 82 01 00 00 5E 04 04 00 82 01 00 00 57 04 04 00 83 01 00 00 19 04 04 00 00 00 00 00 90 00 [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 12 00 80 13 01 00 00 00 00 00 8F [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 12 00 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 56 [20:25:16]RAPDU: 09 00 01 52 EC 16 67 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 {"kkm.sn":"0300000091","kkm.ver":"001","fm.sn":"0000000000871839","fd.num":228422,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [20:25:16]process_action_free get_value [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":{"kkm.sn":"0300000091","kkm.ver":"001","fm.sn":"0000000000871839","fd.num":228422,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [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:16]accept exits with 7 [20:25:16]New connection [20:25:16]New thread 3066834276 created [20:25:16]Thread 3066977636 joined [20:25:16]Waiting for new connection... [20:25:16] Sock 7.Parse request [20:25:16]Sock 7.Check first char [20:25:16]Sock 7.First char is OK [20:25:16]request: POST /json_proto HTTP/1.0 [20:25:16]Method: POST [20:25:16]URL: /json_proto [20:25:16]Method is POST - this is cgi request [20:25:16]url: /json_proto [20:25:16]query_string will be loaded in cgi processing [20:25:16]execute_cgi json_proto POST (null) [20:25:16]execute_cgi path=json_proto method=POST [20:25:16]POST find Content-Length [20:25:16]Host: 172.17.44.195:8080 [20:25:16]Content-Length: 331 [20:25:16]Content-Type: application/json [20:25:16] [20:25:16]POST finish read [20:25:16]Found Content-Length = 331 [20:25:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [20:25:16]execute_script... [20:25:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [20:25:16]POST & json_proto [20:25:16]process_json_proto [20:25:16]json parsed OK: [20:25:16]protocol is kg_v1.0 [20:25:16]action value=get_value [20:25:16]process_action get_value [20:25:16]cmd_get_value [20:25:16]process_action get_value done [20:25:16]requested_data is exist [20:25:16]produce_requested_data [20:25:16]requested_item fm.sale.total is exist - process it [20:25:16]SAM_PROTO_GetFMData [20:25:16]wFMCommunicate request_size=4 [20:25:16]MH_SAM_APDU [20:25:16]CAPDU: 80 13 03 00 [20:25:16]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [20:25:16]Write i2c OK [20:25:16]MH_I2C_Read... [20:25:16]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [20:25:16]Read from MH i2c: E2 [20:25:16]MH_I2C_Read... [20:25:16]Read from MH i2c: E2 FD 00 [20:25:16]MH_I2C_Read... [20:25:16]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 18 78 03 00 69 04 A3 00 6F 04 04 00 27 71 03 00 B1 04 05 00 15 1E 0B C9 04 70 04 05 00 FC 8B ED 4E 04 72 04 04 00 19 92 1D 7A 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 CF 9B 22 82 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 33 0B D8 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F1 06 00 00 B1 04 04 00 18 5D D0 1E 70 04 04 00 18 5D D0 1E 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 3D C9 45 03 EF 03 09 90 00 30 [20:25:16]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 18 78 03 00 69 04 A3 00 6F 04 04 00 27 71 03 00 B1 04 05 00 15 1E 0B C9 04 70 04 05 00 FC 8B ED 4E 04 72 04 04 00 19 92 1D 7A 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 CF 9B 22 82 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 33 0B D8 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F1 06 00 00 B1 04 04 00 18 5D D0 1E 70 04 04 00 18 5D D0 1E 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 3D C9 45 03 EF 03 09 90 00 [20:25:16]wFMCommunicate OK [20:25:16]wFMCommunicate request_size=4 [20:25:16]MH_SAM_APDU [20:25:16]CAPDU: 80 17 00 00 [20:25:16]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [20:25:16]Write i2c OK [20:25:16]MH_I2C_Read... [20:25:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:25:17]Read from MH i2c: E2 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 FD 00 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 49 D0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 A8 [20:25:17]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 49 D0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [20:25:17]wFMCommunicate OK [20:25:17]wFMCommunicate request_size=4 [20:25:17]MH_SAM_APDU [20:25:17]CAPDU: 80 17 00 00 [20:25:17]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [20:25:17]Write i2c OK [20:25:17]MH_I2C_Read... [20:25:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:25:17]Read from MH i2c: E2 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 FD 00 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 FD 00 15 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A7 [20:25:17]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:25:17]wFMCommunicate OK [20:25:17]wFMCommunicate request_size=4 [20:25:17]MH_SAM_APDU [20:25:17]CAPDU: 80 17 00 00 [20:25:17]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [20:25:17]Write i2c OK [20:25:17]MH_I2C_Read... [20:25:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:25:17]Read from MH i2c: E2 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 FD 00 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 FD 00 16 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 22 [20:25:17]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:25:17]wFMCommunicate OK [20:25:17]wFMCommunicate request_size=4 [20:25:17]MH_SAM_APDU [20:25:17]CAPDU: 80 17 00 00 [20:25:17]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [20:25:17]Write i2c OK [20:25:17]MH_I2C_Read... [20:25:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [20:25:17]Read from MH i2c: E2 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 E2 00 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 75 [20:25:17]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:25:17]wFMCommunicate OK [20:25:17]SAM_PROTO_GetFMData done [20:25:17]requested_item fm.sale_refund.total is exist - process it [20:25:17]requested_item fm.buy.total is exist - process it [20:25:17]requested_item shift.sale.total is exist - process it [20:25:17]SAM_PROTO_GetShiftData [20:25:17]wFMCommunicate request_size=4 [20:25:17]MH_SAM_APDU [20:25:17]CAPDU: 80 13 02 00 [20:25:17]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [20:25:17]Write i2c OK [20:25:17]MH_I2C_Read... [20:25:18]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [20:25:18]Read from MH i2c: E2 [20:25:18]MH_I2C_Read... [20:25:18]Read from MH i2c: E2 FD 00 [20:25:18]MH_I2C_Read... [20:25:18]Read from MH i2c: E2 FD 00 18 00 00 B1 04 AA 04 AD 04 6E 04 04 00 82 01 00 00 69 04 9E 00 6F 04 04 00 82 01 00 00 B1 04 04 00 DC 63 DE 01 70 04 04 00 94 7A 8B 01 72 04 03 00 48 E9 52 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 37 D1 32 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 0F 3C 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 37 [20:25:18]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 82 01 00 00 69 04 9E 00 6F 04 04 00 82 01 00 00 B1 04 04 00 DC 63 DE 01 70 04 04 00 94 7A 8B 01 72 04 03 00 48 E9 52 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 37 D1 32 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 0F 3C 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [20:25:18]wFMCommunicate OK [20:25:18]wFMCommunicate request_size=4 [20:25:18]MH_SAM_APDU [20:25:18]CAPDU: 80 17 00 00 [20:25:18]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [20:25:18]Write i2c OK [20:25:18]MH_I2C_Read... [20:25:18]OFD Sender: No OFD packet to send [20:25:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:25:18]Read from MH i2c: E2 [20:25:18]MH_I2C_Read... [20:25:18]Read from MH i2c: E2 FD 00 [20:25:18]MH_I2C_Read... [20:25:18]Read from MH i2c: E2 FD 00 19 00 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B2 [20:25:18]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:25:18]wFMCommunicate OK [20:25:18]wFMCommunicate request_size=4 [20:25:18]MH_SAM_APDU [20:25:18]CAPDU: 80 17 00 00 [20:25:18]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [20:25:18]Write i2c OK [20:25:18]MH_I2C_Read... [20:25:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:25:18]Read from MH i2c: E2 [20:25:18]MH_I2C_Read... [20:25:18]Read from MH i2c: E2 FD 00 [20:25:18]MH_I2C_Read... [20:25:18]Read from MH i2c: E2 FD 00 1A 00 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 53 [20:25:18]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:25:18]wFMCommunicate OK [20:25:18]wFMCommunicate request_size=4 [20:25:18]MH_SAM_APDU [20:25:18]CAPDU: 80 17 00 00 [20:25:18]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [20:25:18]Write i2c OK [20:25:18]MH_I2C_Read... [20:25:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:25:19]Read from MH i2c: E2 [20:25:19]MH_I2C_Read... [20:25:19]Read from MH i2c: E2 FD 00 [20:25:19]MH_I2C_Read... [20:25:19]Read from MH i2c: E2 FD 00 1B 00 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 90 00 13 [20:25:19]RAPDU: 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 90 00 [20:25:19]wFMCommunicate OK [20:25:19]wFMCommunicate request_size=4 [20:25:19]MH_SAM_APDU [20:25:19]CAPDU: 80 17 00 00 [20:25:19]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [20:25:19]Write i2c OK [20:25:19]MH_I2C_Read... [20:25:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [20:25:19]Read from MH i2c: E2 [20:25:19]MH_I2C_Read... [20:25:19]Read from MH i2c: E2 CE 00 [20:25:19]MH_I2C_Read... [20:25:19]Read from MH i2c: E2 CE 00 1C 00 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 81 [20:25:19]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:25:19]wFMCommunicate OK [20:25:19]SAM_PROTO_GetShiftData done [20:25:19]requested_item shift.sale.total_cash is exist - process it [20:25:19]requested_item shift.sale_refund.total is exist - process it [20:25:19]requested_item shift.sale_refund.total_cash is exist - process it [20:25:19]requested_item shift.buy.total is exist - process it [20:25:19]requested_item shift.buy.total_cash is exist - process it [20:25:19]produce_requested_data done [20:25:19]produce_requested_data return {"fm.sale.total":205528181.97,"fm.sale_refund.total":5169718.00,"fm.buy.total":0.00,"shift.sale.total":313517.72,"shift.sale.total_cash":259181.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} [20:25:19]process_action_free get_value [20:25:19]json_value_free [20:25:19]json_value_free done [20:25:19]process_json_proto returns [20:25:19]Send response to host [20:25:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":205528181.97,"fm.sale_refund.total":5169718.00,"fm.buy.total":0.00,"shift.sale.total":313517.72,"shift.sale.total_cash":259181.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}}} [20:25:19]free response buf [20:25:19]execute_script done [20:25:19]execute_script returns [20:25:19]free content buf [20:25:19]Sock 7.Close socket [20:25:19]Sock 7.Thread stoped [20:25:23]OFD Sender: No OFD packet to send [20:25:27]accept exits with 9 [20:25:27]New connection [20:25:27]New thread 3066977636 created [20:25:27]Thread 3066834276 joined [20:25:27]Waiting for new connection... [20:25:27] Sock 9.Parse request [20:25:27]Sock 9.Check first char [20:25:27]Sock 9.First char is OK [20:25:27]request: POST /json_proto HTTP/1.0 [20:25:27]Method: POST [20:25:27]URL: /json_proto [20:25:27]Method is POST - this is cgi request [20:25:27]url: /json_proto [20:25:27]query_string will be loaded in cgi processing [20:25:27]execute_cgi json_proto POST (null) [20:25:27]execute_cgi path=json_proto method=POST [20:25:27]POST find Content-Length [20:25:27]Host: 172.17.44.195:8080 [20:25:27]Content-Length: 675 [20:25:27]Content-Type: application/json [20:25:27] [20:25:27]POST finish read [20:25:27]Found Content-Length = 675 [20:25:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 1.320, "sum" : 100.58, "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" ] } } [20:25:27]execute_script... [20:25: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)1965037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 1.320, "sum" : 100.58, "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" ] } } [20:25:27]POST & json_proto [20:25:27]process_json_proto [20:25:27]json parsed OK: [20:25:27]protocol is kg_v1.0 [20:25:27]action value=close_receipt [20:25:27]process_action close_receipt [20:25:27]cmd_close_receipt [20:25:27]MH_GetDate [20:25:27]Write to MH i2c: F0 00 00 1D 00 0C [20:25:27]Write i2c OK [20:25:27]MH_I2C_Read... [20:25:27]Read from MH i2c: F0 [20:25:27]MH_I2C_Read... [20:25:27]Read from MH i2c: F0 09 00 [20:25:27]MH_I2C_Read... [20:25:27]Read from MH i2c: F0 09 00 1D 00 00 38 0A 18 67 82 C9 CF 66 56 [20:25:27]GetLastDocTimeStamp 1729627193 [20:25:27]current date 1729628728 [20:25:27]FM_GetShiftState [20:25:27]SAM_PROTO_GetShiftState [20:25:27]wFMCommunicate request_size=4 [20:25:27]MH_SAM_APDU [20:25:27]CAPDU: 80 13 01 00 [20:25:27]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [20:25:27]Write i2c OK [20:25:27]MH_I2C_Read... [20:25:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:28]Read from MH i2c: E2 [20:25:28]MH_I2C_Read... [20:25:28]Read from MH i2c: E2 0E 00 [20:25:28]MH_I2C_Read... [20:25:28]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 62 [20:25:28]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [20:25:28]wFMCommunicate OK [20:25:28]SAM_PROTO_GetShiftState done [20:25:28]FM_GetShiftState done [20:25:28]opened in 1729555538 [20:25:28]opened+sec_in_day 1729641938 [20:25:28]quantity*price = 10058 [20:25:28]sum+1 = 10059 [20:25:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.68 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 387 22.10.2024 20:25 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228423 ФПД: 260149326646137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T202528&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228423&fm=260149326646137&tin=02508201610067®Number=0000000000091685&sum=10000 [20:25:29]StoreToDocumentArchive [20:25:29]shift 535 fd 228423 [20:25:29]save to /storage/0535/doc_00228423 [20:25:29]save last doc name /storage/0535/doc_00228423 to /storage/kkm_last_doc_name [20:25:29]save OK [20:25:29]Clear old archive folders... [20:25:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:25:29]tlvbuf is 002C00C0 [20:25:29]SAM_PROTO_ClearQueue [20:25:29]wFMCommunicate request_size=4 [20:25:29]MH_SAM_APDU [20:25:29]CAPDU: 80 09 00 00 [20:25:29]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [20:25:29]Write i2c OK [20:25:29]MH_I2C_Read... [20:25:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:25:29]Read from MH i2c: E2 [20:25:29]MH_I2C_Read... [20:25:29]Read from MH i2c: E2 03 00 [20:25:29]MH_I2C_Read... [20:25:29]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [20:25:29]RAPDU: 90 00 [20:25:29]wFMCommunicate OK [20:25:29]SAM_PROTO_ClearQueue done [20:25:29]KKMCreateOFDPacket [20:25:29]OFDProtocolAddRootSTLVToBuf [20:25:29]FM_MakeSignedData [20:25:29]FM_MakeSignedData [20:25:29]SAM_PROTO_SignData [20:25:29]wFMCommunicate request_size=4 [20:25:29]MH_SAM_APDU [20:25:29]CAPDU: 80 0D 01 02 [20:25:29]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [20:25:29]Write i2c OK [20:25:29]MH_I2C_Read... [20:25:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:25:29]Read from MH i2c: E2 [20:25:29]MH_I2C_Read... [20:25:29]Read from MH i2c: E2 03 00 [20:25:29]MH_I2C_Read... [20:25:29]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [20:25:29]RAPDU: 90 00 [20:25:29]wFMCommunicate OK [20:25:29]wFMCommunicate request_size=255 [20:25:29]MH_SAM_APDU [20:25: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 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 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 2C 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 83 01 00 00 F4 03 04 00 38 0A 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 47 7C 03 00 35 04 06 00 EC 9A BC 34 [20:25:29]Write to MH i2c: E2 02 01 2D 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 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 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 2C 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 83 01 00 00 F4 03 04 00 38 0A 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 47 7C 03 00 35 04 06 00 EC 9A BC 34 00 00 1A [20:25:29]Write i2c OK [20:25:29]MH_I2C_Read... [20:25:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:29]Read from MH i2c: E2 [20:25:29]MH_I2C_Read... [20:25:29]Read from MH i2c: E2 03 00 [20:25:29]MH_I2C_Read... [20:25:29]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [20:25:29]RAPDU: 90 00 [20:25:29]wFMCommunicate OK [20:25:29]wFMCommunicate request_size=7 [20:25:29]MH_SAM_APDU [20:25:29]CAPDU: 80 0D 02 02 02 0B 79 [20:25:29]Write to MH i2c: E2 0A 00 2E 00 80 0D 02 02 02 00 0B 79 00 00 30 [20:25:29]Write i2c OK [20:25:29]MH_I2C_Read... [20:25:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:29]Read from MH i2c: E2 [20:25:29]MH_I2C_Read... [20:25:29]Read from MH i2c: E2 03 00 [20:25:29]MH_I2C_Read... [20:25:29]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [20:25:29]RAPDU: 90 00 [20:25:29]wFMCommunicate OK [20:25:29]wFMCommunicate request_size=4 [20:25:29]MH_SAM_APDU [20:25:29]CAPDU: 80 0D 03 02 [20:25:29]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [20:25:29]Write i2c OK [20:25:29]MH_I2C_Read... [20:25:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:25:29]Read from MH i2c: E2 [20:25:29]MH_I2C_Read... [20:25:29]Read from MH i2c: E2 0B 00 [20:25:29]MH_I2C_Read... [20:25:29]Read from MH i2c: E2 0B 00 2F 00 00 A0 3D DA 1A 82 46 BC D5 90 00 D5 [20:25:29]RAPDU: A0 3D DA 1A 82 46 BC D5 90 00 [20:25:29]wFMCommunicate OK [20:25:29]SAM_PROTO_SignData done [20:25:29]FM_MakeSignedData done [20:25:29]CreateOFDProtocolMessage [20:25:29]wFMCommunicate request_size=4 [20:25:29]MH_SAM_APDU [20:25:29]CAPDU: 80 11 00 00 [20:25:29]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [20:25:29]Write i2c OK [20:25:29]MH_I2C_Read... [20:25:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:29]Read from MH i2c: E2 [20:25:29]MH_I2C_Read... [20:25:29]Read from MH i2c: E2 17 00 [20:25:29]MH_I2C_Read... [20:25:29]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 01 [20:25:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:25:29]wFMCommunicate OK [20:25:29]CreateOFDProtocolMessage done [20:25:29]OFDSenderStorePacket 228423 [20:25:29]StoreOFDPacket docnum=228423 [20:25:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 15 40 04 01 C0 4F 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 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 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 2C 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 83 01 00 00 F4 03 04 00 38 0A 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 47 7C 03 00 35 04 06 00 EC 9A BC 34 0B 79 A0 3D DA 1A 82 46 BC D5 [20:25:29]CheckFolder [20:25:29]dirname=/storage/ofd_packets [20:25:29]CheckFolder done [20:25:29]ProducePacketName [20:25:29]name=ofd_packets/00228423 [20:25:29]NVStorageSaveData ofd_packets/00228423 [20:25:29]File name is /storage/ofd_packets/00228423 [20:25:29]Write 298 bytes [20:25:29]NVStorageSaveData done [20:25:29]OFDSenderStorePacket done [20:25:29]KKMCreateOFDPacket done [20:25:29]NVStorageSaveData kkm_last_timestamp [20:25:29]File name is /storage/kkm_last_timestamp [20:25:29]Write 4 bytes [20:25:29]NVStorageSaveData done [20:25:29]ExternCall_PrintAddStr [20:25:29]wPrintStart [20:25:29]Write to MH i2c: 01 00 00 31 00 31 [20:25:29]Write i2c OK [20:25:29]MH_I2C_Read... [20:25:29]Read from MH i2c: 01 [20:25:29]MH_I2C_Read... [20:25:29]Read from MH i2c: 01 07 00 [20:25:29]MH_I2C_Read... [20:25:29]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [20:25:29]RasterBufferAndPrint [20:25:29]line Счет N : (1)1965037 [20:25:29]line ИНН: 02508201610067 [20:25:29]line Контрольно-Кассовый Чек [20:25:29]line ПРОДАЖА [20:25:29]line ТРК (МРК, ГНК) : 31 [20:25:29]line Товар: 2710194210 [20:25:29]line ДТ-К-5 [20:25:29]line 1.320 * 76.20 [20:25:29]line = 100.58 [20:25:29]line НДС 12% НСП 1% [20:25:29]line > о реализуемом товаре [20:25:29]line ОКРУГЛЕНИЕ: -0.58 [20:25:29]line ИТОГО: 100.00 [20:25:29]line Внесено: 100.00 [20:25:29]line СДАЧА: 0.00 [20:25:29]line НСП 1% : 0.89 [20:25:29]line НДС 12% : 10.68 [20:25:29]line Наличными: 100.00 [20:25:29]line Безнал.: 0.00 [20:25:29]line Место: АЗС № 133 "Партнер Нефть" [20:25:29]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:25:29]line СНО: Общий режим [20:25:29]line Чек 387 22.10.2024 20:25 [20:25:29]line Смена: 535 ФФД: 1.0 [20:25:29]line ЗНМ: 0300000091 [20:25:29]line РНМ: 0000000000091685 [20:25:29]line Версия ККМ: 001 [20:25:29]line ФМ: 0000000000871839 [20:25:29]line ФД: 228423 [20:25:29]line ФПД: 260149326646137 [20:25:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T202528&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228423&fm=260149326646137&tin=02508201610067®Number=0000000000091685&sum=10000 [20:25:29]written 0, free lines is 4095 [20:25:29]OFD Sender: Processing packet 228423 [packets to send 38, broken 37] [20:25:29]ProducePacketName [20:25:29]name=ofd_packets/00228423 [20:25:29]OFD Sender: To server: pG, [20:25:29]CommunicateWithHost lk.salyk.kg:30040 [20:25:29]ConnectInit lk.salyk.kg [20:25:29]Connected sock=7 [20:25:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 15 40 04 01 C0 4F 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 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 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 2C 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 83 01 00 00 F4 03 04 00 38 0A 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 47 7C 03 00 35 04 06 00 EC 9A BC 34 0B 79 A0 3D DA 1A 82 46 BC D5 [20:25:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 B9 EA 47 00 0A BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 47 7C 03 00 F4 03 04 00 2F B5 17 67 B6 04 01 00 00 E2 AE 67 E1 8C 4F 9A 10 [20:25:30]CommunicateWithHost err = 0 [20:25:30]CheckOFDResponse [20:25:30]1017 (14) - 77093643461234 [20:25:30]1041 (16) - 0000000000871839 [20:25:30]1040 (4) - 228423 [20:25:30]1012 (4) - 22.10.2024 14:22 [20:25:30]1206 (1) - 0 [20:25:30]OFD Sender: Remove packet 228423 [20:25:30]ProducePacketName [20:25:30]name=ofd_packets/00228423 [20:25:30]NVStorageDeleteData [20:25:30]Write to MH i2c: 01 00 00 5B 00 5B [20:25:30]Write i2c OK [20:25:30]MH_I2C_Read... [20:25:30]Read from MH i2c: 01 [20:25:30]MH_I2C_Read... [20:25:30]Read from MH i2c: 01 07 00 [20:25:30]MH_I2C_Read... [20:25:30]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 A9 0C 17 [20:25:30]RasterBufferAndPrint [20:25:30]line [20:25:30]line [20:25:30]line [20:25:30]line [20:25:30]line [20:25:30]written 0, free lines is 3245 [20:25:30]MH_Cut [20:25:30]Write to MH i2c: D1 01 00 62 00 01 34 [20:25:30]Write i2c OK [20:25:30]MH_I2C_Read... [20:25:30]Read from MH i2c: D1 [20:25:30]MH_I2C_Read... [20:25:30]Read from MH i2c: D1 01 00 [20:25:30]MH_I2C_Read... [20:25:30]Read from MH i2c: D1 01 00 62 00 00 33 [20:25:30]Write to MH i2c: 01 00 00 63 00 63 [20:25:30]Write i2c OK [20:25:30]MH_I2C_Read... [20:25:30]OFD Sender: No OFD packet to send [20:25:31]*** Cut start [20:25:31]*** Partial cut [20:25:31]*** CUTSNS_PIN = 1 [20:25:31]*** CUTSNS_PIN = 0 [20:25:31]*** Brake cut motor [20:25:31]Read from MH i2c: 01 [20:25:31]MH_I2C_Read... [20:25:31]*** Stop cut motor [20:25:31]*** Cut end [20:25:31]Read from MH i2c: 01 07 00 [20:25:31]MH_I2C_Read... [20:25:31]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [20:25:31]process_action close_receipt done [20:25:31]requested_data is exist [20:25:31]produce_requested_data [20:25:31]requested_item fm.sn is exist - process it [20:25:31]wFMCommunicate request_size=4 [20:25:31]MH_SAM_APDU [20:25:31]CAPDU: 80 11 00 00 [20:25:31]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [20:25:31]Write i2c OK [20:25:31]MH_I2C_Read... [20:25:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:31]Read from MH i2c: E2 [20:25:31]MH_I2C_Read... [20:25:31]Read from MH i2c: E2 17 00 [20:25:31]MH_I2C_Read... [20:25:31]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 35 [20:25:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:25:31]wFMCommunicate OK [20:25:31]requested_item fd.num is exist - process it [20:25:31]SAM_PROTO_GetFieldsCounters [20:25:31]wFMCommunicate request_size=4 [20:25:31]MH_SAM_APDU [20:25:31]CAPDU: 80 13 00 00 [20:25:31]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [20:25:31]Write i2c OK [20:25:31]MH_I2C_Read... [20:25:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:25:31]Read from MH i2c: E2 [20:25:31]MH_I2C_Read... [20:25:31]Read from MH i2c: E2 62 00 [20:25:31]MH_I2C_Read... [20:25:31]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 47 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 83 01 00 00 5E 04 04 00 83 01 00 00 57 04 04 00 84 01 00 00 19 04 04 00 00 00 00 00 90 00 75 [20:25:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 47 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 83 01 00 00 5E 04 04 00 83 01 00 00 57 04 04 00 84 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:25:31]wFMCommunicate OK [20:25:31]SAM_PROTO_GetFieldsCounters done [20:25:31]requested_item shift.num is exist - process it [20:25:31]requested_item shift.opened is exist - process it [20:25:31]req_shift_opened [20:25:31]FM_GetShiftState [20:25:31]SAM_PROTO_GetShiftState [20:25:31]wFMCommunicate request_size=4 [20:25:31]MH_SAM_APDU [20:25:31]CAPDU: 80 13 01 00 [20:25:31]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [20:25:31]Write i2c OK [20:25:31]MH_I2C_Read... [20:25:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:31]Read from MH i2c: E2 [20:25:31]MH_I2C_Read... [20:25:31]Read from MH i2c: E2 0E 00 [20:25:31]MH_I2C_Read... [20:25:31]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 AA [20:25:31]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [20:25:31]wFMCommunicate OK [20:25:31]SAM_PROTO_GetShiftState done [20:25:31]FM_GetShiftState done [20:25:31]req_shift_opened done [20:25:31]requested_item shift.open_date is exist - process it [20:25:31]req_shift_open_date [20:25:31]req_shift_open_date done [20:25:31]produce_requested_data done [20:25:31]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228423,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [20:25:31]process_action_free close_receipt [20:25:31]json_value_free [20:25:31]json_value_free done [20:25:31]process_json_proto returns [20:25:31]Send response to host [20:25:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228423,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [20:25:31]free response buf [20:25:31]execute_script done [20:25:31]execute_script returns [20:25:31]free content buf [20:25:31]Sock 9.Close socket [20:25:31]Sock 9.Thread stoped [20:25:33]accept exits with 10 [20:25:33]New connection [20:25:33]New thread 3066834276 created [20:25:33]Thread 3066977636 joined [20:25:33]Waiting for new connection... [20:25:33] Sock 10.Parse request [20:25:33]Sock 10.Check first char [20:25:33]Sock 10.First char is OK [20:25:33]request: POST /json_proto HTTP/1.0 [20:25:33]Method: POST [20:25:33]URL: /json_proto [20:25:33]Method is POST - this is cgi request [20:25:33]url: /json_proto [20:25:33]query_string will be loaded in cgi processing [20:25:33]execute_cgi json_proto POST (null) [20:25:33]execute_cgi path=json_proto method=POST [20:25:33]POST find Content-Length [20:25:33]Host: 172.17.44.195:8080 [20:25:33]Content-Length: 732 [20:25:33]Content-Type: application/json [20:25:33] [20:25:33]POST finish read [20:25:33]Found Content-Length = 732 [20:25:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 228423, "base_FM": "0000000000871839", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 1.320, "sum" : 100.58, "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" ] } } [20:25:33]execute_script... [20:25:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 228423, "base_FM": "0000000000871839", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 1.320, "sum" : 100.58, "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" ] } } [20:25:33]POST & json_proto [20:25:33]process_json_proto [20:25:33]json parsed OK: [20:25:33]protocol is kg_v1.0 [20:25:33]action value=close_receipt [20:25:33]process_action close_receipt [20:25:33]cmd_close_receipt [20:25:33]MH_GetDate [20:25:33]Write to MH i2c: F0 00 00 67 00 56 [20:25:33]Write i2c OK [20:25:33]MH_I2C_Read... [20:25:33]Read from MH i2c: F0 [20:25:33]MH_I2C_Read... [20:25:33]Read from MH i2c: F0 09 00 [20:25:33]MH_I2C_Read... [20:25:33]Read from MH i2c: F0 09 00 67 00 00 3D 0A 18 67 82 C9 CF 66 A5 [20:25:33]GetLastDocTimeStamp 1729628728 [20:25:33]current date 1729628733 [20:25:33]FM_GetShiftState [20:25:33]SAM_PROTO_GetShiftState [20:25:33]wFMCommunicate request_size=4 [20:25:33]MH_SAM_APDU [20:25:33]CAPDU: 80 13 01 00 [20:25:33]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [20:25:33]Write i2c OK [20:25:33]MH_I2C_Read... [20:25:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:33]Read from MH i2c: E2 [20:25:33]MH_I2C_Read... [20:25:33]Read from MH i2c: E2 0E 00 [20:25:33]MH_I2C_Read... [20:25:33]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 AC [20:25:33]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [20:25:33]wFMCommunicate OK [20:25:33]SAM_PROTO_GetShiftState done [20:25:33]FM_GetShiftState done [20:25:33]opened in 1729555538 [20:25:33]opened+sec_in_day 1729641938 [20:25:33]quantity*price = 10058 [20:25:33]sum+1 = 10059 [20:25:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 100.00 НСП 1% : 0.89 НДС 12% : 10.68 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 388 22.10.2024 20:25 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФД осн.: 228423 ФМ осн.: 0000000000871839 ФМ: 0000000000871839 ФД: 228424 ФПД: 224633528293784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T202533&type=2&operation_type=1&fn_number=0000000000871839&fd_number=228424&fm=224633528293784&tin=02508201610067®Number=0000000000091685&sum=10000 [20:25:34]StoreToDocumentArchive [20:25:34]shift 535 fd 228424 [20:25:34]save to /storage/0535/doc_00228424 [20:25:34]save last doc name /storage/0535/doc_00228424 to /storage/kkm_last_doc_name [20:25:34]save OK [20:25:34]Clear old archive folders... [20:25:35]ProcessDocumentItem done err = 0, tmpTLVsize=276 [20:25:35]tlvbuf is 002BFF80 [20:25:35]SAM_PROTO_ClearQueue [20:25:35]wFMCommunicate request_size=4 [20:25:35]MH_SAM_APDU [20:25:35]CAPDU: 80 09 00 00 [20:25:35]Write to MH i2c: E2 08 00 77 00 80 09 00 00 00 00 00 00 E9 [20:25:35]Write i2c OK [20:25:35]MH_I2C_Read... [20:25:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:25:35]Read from MH i2c: E2 [20:25:35]MH_I2C_Read... [20:25:35]Read from MH i2c: E2 03 00 [20:25:35]MH_I2C_Read... [20:25:35]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [20:25:35]RAPDU: 90 00 [20:25:35]wFMCommunicate OK [20:25:35]SAM_PROTO_ClearQueue done [20:25:35]KKMCreateOFDPacket [20:25:35]OFDProtocolAddRootSTLVToBuf [20:25:35]FM_MakeSignedData [20:25:35]FM_MakeSignedData [20:25:35]SAM_PROTO_SignData [20:25:35]wFMCommunicate request_size=4 [20:25:35]MH_SAM_APDU [20:25:35]CAPDU: 80 0D 01 02 [20:25:35]Write to MH i2c: E2 08 00 78 00 80 0D 01 02 00 00 00 00 F1 [20:25:35]Write i2c OK [20:25:35]MH_I2C_Read... [20:25:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:25:35]Read from MH i2c: E2 [20:25:35]MH_I2C_Read... [20:25:35]Read from MH i2c: E2 03 00 [20:25:35]MH_I2C_Read... [20:25:35]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [20:25:35]RAPDU: 90 00 [20:25:35]wFMCommunicate OK [20:25:35]wFMCommunicate request_size=255 [20:25:35]MH_SAM_APDU [20:25:35]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 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 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 2C 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 84 01 00 00 F4 03 04 00 3D 0A 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 27 04 04 00 47 7C 03 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 11 04 10 00 30 30 30 30 [20:25:35]Write to MH i2c: E2 02 01 79 00 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 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 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 2C 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 84 01 00 00 F4 03 04 00 3D 0A 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 27 04 04 00 47 7C 03 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 11 04 10 00 30 30 30 30 00 00 E8 [20:25:35]Write i2c OK [20:25:35]MH_I2C_Read... [20:25:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:35]Read from MH i2c: E2 [20:25:35]MH_I2C_Read... [20:25:35]Read from MH i2c: E2 03 00 [20:25:35]MH_I2C_Read... [20:25:35]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [20:25:35]RAPDU: 90 00 [20:25:35]wFMCommunicate OK [20:25:35]wFMCommunicate request_size=35 [20:25:35]MH_SAM_APDU [20:25:35]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 48 7C 03 00 35 04 06 00 CC 4D 91 A8 99 98 [20:25:35]Write to MH i2c: E2 26 00 7A 00 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 48 7C 03 00 35 04 06 00 CC 4D 91 A8 99 98 00 00 35 [20:25:35]Write i2c OK [20:25:35]MH_I2C_Read... [20:25:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:35]Read from MH i2c: E2 [20:25:35]MH_I2C_Read... [20:25:35]Read from MH i2c: E2 03 00 [20:25:35]MH_I2C_Read... [20:25:35]Read from MH i2c: E2 03 00 7A 00 00 90 00 EE [20:25:35]RAPDU: 90 00 [20:25:35]wFMCommunicate OK [20:25:35]wFMCommunicate request_size=4 [20:25:35]MH_SAM_APDU [20:25:35]CAPDU: 80 0D 03 02 [20:25:35]Write to MH i2c: E2 08 00 7B 00 80 0D 03 02 00 00 00 00 F6 [20:25:35]Write i2c OK [20:25:35]MH_I2C_Read... [20:25:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:25:35]Read from MH i2c: E2 [20:25:35]MH_I2C_Read... [20:25:35]Read from MH i2c: E2 0B 00 [20:25:35]MH_I2C_Read... [20:25:35]Read from MH i2c: E2 0B 00 7B 00 00 B5 6B 80 85 2F 3F 26 6E 90 00 1E [20:25:35]RAPDU: B5 6B 80 85 2F 3F 26 6E 90 00 [20:25:35]wFMCommunicate OK [20:25:35]SAM_PROTO_SignData done [20:25:35]FM_MakeSignedData done [20:25:35]CreateOFDProtocolMessage [20:25:35]wFMCommunicate request_size=4 [20:25:35]MH_SAM_APDU [20:25:35]CAPDU: 80 11 00 00 [20:25:35]Write to MH i2c: E2 08 00 7C 00 80 11 00 00 00 00 00 00 F6 [20:25:35]Write i2c OK [20:25:35]MH_I2C_Read... [20:25:35]OFD Sender: No OFD packet to send [20:25:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:35]Read from MH i2c: E2 [20:25:35]MH_I2C_Read... [20:25:35]Read from MH i2c: E2 17 00 [20:25:35]MH_I2C_Read... [20:25:35]Read from MH i2c: E2 17 00 7C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4D [20:25:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:25:35]wFMCommunicate OK [20:25:35]CreateOFDProtocolMessage done [20:25:35]OFDSenderStorePacket 228424 [20:25:35]StoreOFDPacket docnum=228424 [20:25:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 28 01 00 00 79 C8 20 01 41 4B 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 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 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 2C 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 84 01 00 00 F4 03 04 00 3D 0A 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 27 04 04 00 47 7C 03 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 48 7C 03 00 35 04 06 00 CC 4D 91 A8 99 98 B5 6B 80 85 2F 3F 26 6E [20:25:35]CheckFolder [20:25:35]dirname=/storage/ofd_packets [20:25:35]CheckFolder done [20:25:35]ProducePacketName [20:25:35]name=ofd_packets/00228424 [20:25:35]NVStorageSaveData ofd_packets/00228424 [20:25:35]File name is /storage/ofd_packets/00228424 [20:25:35]Write 326 bytes [20:25:35]NVStorageSaveData done [20:25:35]OFDSenderStorePacket done [20:25:35]KKMCreateOFDPacket done [20:25:35]NVStorageSaveData kkm_last_timestamp [20:25:35]File name is /storage/kkm_last_timestamp [20:25:35]Write 4 bytes [20:25:35]NVStorageSaveData done [20:25:35]ExternCall_PrintAddStr [20:25:35]wPrintStart [20:25:35]Write to MH i2c: 01 00 00 7D 00 7D [20:25:35]Write i2c OK [20:25:35]MH_I2C_Read... [20:25:35]Read from MH i2c: 01 [20:25:35]MH_I2C_Read... [20:25:35]Read from MH i2c: 01 07 00 [20:25:35]MH_I2C_Read... [20:25:35]Read from MH i2c: 01 07 00 7D 00 00 00 00 00 00 FF 0F 92 [20:25:35]RasterBufferAndPrint [20:25:35]line Счет N : (1)1965037 [20:25:35]line ИНН: 02508201610067 [20:25:35]line Контрольно-Кассовый Чек [20:25:35]line ВОЗВРАТ ПРОДАЖИ [20:25:35]line ТРК (МРК, ГНК) : 31 [20:25:35]line Товар: 2710194210 [20:25:35]line ДТ-К-5 [20:25:35]line 1.320 * 76.20 [20:25:35]line = 100.58 [20:25:35]line НДС 12% НСП 1% [20:25:35]line > о реализуемом товаре [20:25:35]line ОКРУГЛЕНИЕ: -0.58 [20:25:35]line ИТОГО: 100.00 [20:25:35]line НСП 1% : 0.89 [20:25:35]line НДС 12% : 10.68 [20:25:35]line Наличными: 100.00 [20:25:35]line Безнал.: 0.00 [20:25:35]line Место: АЗС № 133 "Партнер Нефть" [20:25:35]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:25:35]line СНО: Общий режим [20:25:35]line Чек 388 22.10.2024 20:25 [20:25:35]line Смена: 535 ФФД: 1.0 [20:25:35]line ЗНМ: 0300000091 [20:25:35]line РНМ: 0000000000091685 [20:25:35]line Версия ККМ: 001 [20:25:35]line ФД осн.: 228423 [20:25:35]line ФМ осн.: 0000000000871839 [20:25:35]line ФМ: 0000000000871839 [20:25:35]line ФД: 228424 [20:25:35]line ФПД: 224633528293784 [20:25:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T202533&type=2&operation_type=1&fn_number=0000000000871839&fd_number=228424&fm=224633528293784&tin=02508201610067®Number=0000000000091685&sum=10000 [20:25:35]written 0, free lines is 4095 [20:25:35]OFD Sender: Processing packet 228424 [packets to send 38, broken 37] [20:25:35]ProducePacketName [20:25:35]name=ofd_packets/00228424 [20:25:35]OFD Sender: To server: pG, [20:25:35]CommunicateWithHost lk.salyk.kg:30040 [20:25:35]ConnectInit lk.salyk.kg [20:25:35]Connected sock=9 [20:25:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 28 01 00 00 79 C8 20 01 41 4B 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 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 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 2C 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 84 01 00 00 F4 03 04 00 3D 0A 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 27 04 04 00 47 7C 03 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 48 7C 03 00 35 04 06 00 CC 4D 91 A8 99 98 B5 6B 80 85 2F 3F 26 6E [20:25:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 D5 04 47 00 41 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 48 7C 03 00 F4 03 04 00 35 B5 17 67 B6 04 01 00 00 FA FD 2F 6C 3B 63 97 62 [20:25:36]CommunicateWithHost err = 0 [20:25:36]CheckOFDResponse [20:25:36]1017 (14) - 77093643461234 [20:25:36]1041 (16) - 0000000000871839 [20:25:36]1040 (4) - 228424 [20:25:36]1012 (4) - 22.10.2024 14:22 [20:25:36]1206 (1) - 0 [20:25:36]OFD Sender: Remove packet 228424 [20:25:36]ProducePacketName [20:25:36]name=ofd_packets/00228424 [20:25:36]NVStorageDeleteData [20:25:36]Write to MH i2c: 01 00 00 A7 00 A7 [20:25:36]Write i2c OK [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: 01 [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: 01 07 00 [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 B0 0C 6A [20:25:36]RasterBufferAndPrint [20:25:36]line [20:25:36]line [20:25:36]line [20:25:36]line [20:25:36]line [20:25:36]written 0, free lines is 3258 [20:25:36]MH_Cut [20:25:36]Write to MH i2c: D1 01 00 AE 00 01 80 [20:25:36]Write i2c OK [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: D1 [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: D1 01 00 [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: D1 01 00 AE 00 00 7F [20:25:36]Write to MH i2c: 01 00 00 AF 00 AF [20:25:36]Write i2c OK [20:25:36]MH_I2C_Read... [20:25:36]OFD Sender: No OFD packet to send [20:25:37]*** Cut start [20:25:37]*** Partial cut [20:25:37]*** CUTSNS_PIN = 1 [20:25:37]*** CUTSNS_PIN = 0 [20:25:37]*** Brake cut motor [20:25:37]Read from MH i2c: 01 [20:25:37]MH_I2C_Read... [20:25:37]*** Stop cut motor [20:25:37]*** Cut end [20:25:37]Read from MH i2c: 01 07 00 [20:25:37]MH_I2C_Read... [20:25:37]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [20:25:37]process_action close_receipt done [20:25:37]requested_data is exist [20:25:37]produce_requested_data [20:25:37]requested_item fm.sn is exist - process it [20:25:37]wFMCommunicate request_size=4 [20:25:37]MH_SAM_APDU [20:25:37]CAPDU: 80 11 00 00 [20:25:37]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [20:25:37]Write i2c OK [20:25:37]MH_I2C_Read... [20:25:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:37]Read from MH i2c: E2 [20:25:37]MH_I2C_Read... [20:25:37]Read from MH i2c: E2 17 00 [20:25:37]MH_I2C_Read... [20:25:37]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 81 [20:25:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:25:37]wFMCommunicate OK [20:25:37]requested_item fd.num is exist - process it [20:25:37]SAM_PROTO_GetFieldsCounters [20:25:37]wFMCommunicate request_size=4 [20:25:37]MH_SAM_APDU [20:25:37]CAPDU: 80 13 00 00 [20:25:37]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [20:25:37]Write i2c OK [20:25:37]MH_I2C_Read... [20:25:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:25:37]Read from MH i2c: E2 [20:25:37]MH_I2C_Read... [20:25:37]Read from MH i2c: E2 62 00 [20:25:37]MH_I2C_Read... [20:25:37]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 48 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 84 01 00 00 5E 04 04 00 84 01 00 00 57 04 04 00 85 01 00 00 19 04 04 00 00 00 00 00 90 00 C5 [20:25:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 48 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 84 01 00 00 5E 04 04 00 84 01 00 00 57 04 04 00 85 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:25:37]wFMCommunicate OK [20:25:37]SAM_PROTO_GetFieldsCounters done [20:25:37]requested_item shift.num is exist - process it [20:25:37]requested_item shift.opened is exist - process it [20:25:37]req_shift_opened [20:25:37]FM_GetShiftState [20:25:37]SAM_PROTO_GetShiftState [20:25:37]wFMCommunicate request_size=4 [20:25:37]MH_SAM_APDU [20:25:37]CAPDU: 80 13 01 00 [20:25:37]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [20:25:37]Write i2c OK [20:25:37]MH_I2C_Read... [20:25:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:37]Read from MH i2c: E2 [20:25:37]MH_I2C_Read... [20:25:37]Read from MH i2c: E2 0E 00 [20:25:37]MH_I2C_Read... [20:25:37]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 F6 [20:25:37]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [20:25:37]wFMCommunicate OK [20:25:37]SAM_PROTO_GetShiftState done [20:25:37]FM_GetShiftState done [20:25:37]req_shift_opened done [20:25:37]requested_item shift.open_date is exist - process it [20:25:37]req_shift_open_date [20:25:37]req_shift_open_date done [20:25:37]produce_requested_data done [20:25:37]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228424,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [20:25:37]process_action_free close_receipt [20:25:37]json_value_free [20:25:37]json_value_free done [20:25:37]process_json_proto returns [20:25:37]Send response to host [20:25:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228424,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [20:25:37]free response buf [20:25:37]execute_script done [20:25:37]execute_script returns [20:25:37]free content buf [20:25:37]Sock 10.Close socket [20:25:37]Sock 10.Thread stoped [20:25:39]int [20:25:39]Write to MH i2c: 01 00 00 B3 00 B3 [20:25:39]*** FLAG_PRN_PAP1 set [20:25:39]Write i2c OK [20:25:39]MH_I2C_Read... [20:25:39]Read from MH i2c: 01 [20:25:39]MH_I2C_Read... [20:25:39]Read from MH i2c: 01 07 00 [20:25:39]MH_I2C_Read... [20:25:39]Read from MH i2c: 01 07 00 B3 00 00 01 00 00 00 FF 0F C9 [20:25:39]state=0 [20:25:39]No paper [20:25:39]int [20:25:39]Write to MH i2c: 01 00 00 B4 00 B4 [20:25:39]*** FLAG_PRN_PAP2 set [20:25:39]Write i2c OK [20:25:39]MH_I2C_Read... [20:25:39]Read from MH i2c: 01 [20:25:39]MH_I2C_Read... [20:25:39]Read from MH i2c: 01 07 00 [20:25:39]MH_I2C_Read... [20:25:39]Read from MH i2c: 01 07 00 B4 00 00 03 00 00 00 FF 0F CC [20:25:39]state=0 [20:25:39]No paper [20:25:39]Cover opened [20:25:41]OFD Sender: No OFD packet to send [20:25:44]Write to MH i2c: 01 00 00 B5 00 B5 [20:25:44]Write i2c OK [20:25:44]MH_I2C_Read... [20:25:44]Read from MH i2c: 01 [20:25:44]MH_I2C_Read... [20:25:44]Read from MH i2c: 01 07 00 [20:25:44]MH_I2C_Read... [20:25:44]Read from MH i2c: 01 07 00 B5 00 00 03 00 00 00 FF 0F CD [20:25:44]state=3 [20:25:44]No paper [20:25:44]Cover opened [20:25:46]OFD Sender: No OFD packet to send [20:25:49]Write to MH i2c: 01 00 00 B6 00 B6 [20:25:49]Write i2c OK [20:25:49]MH_I2C_Read... [20:25:49]Read from MH i2c: 01 [20:25:49]MH_I2C_Read... [20:25:49]Read from MH i2c: 01 07 00 [20:25:49]MH_I2C_Read... [20:25:49]Read from MH i2c: 01 07 00 B6 00 00 03 00 00 00 FF 0F CE [20:25:49]state=3 [20:25:49]No paper [20:25:49]Cover opened [20:25:51]OFD Sender: No OFD packet to send [20:25:54]Write to MH i2c: 01 00 00 B7 00 B7 [20:25:54]Write i2c OK [20:25:54]MH_I2C_Read... [20:25:54]Read from MH i2c: 01 [20:25:54]MH_I2C_Read... [20:25:54]Read from MH i2c: 01 07 00 [20:25:54]MH_I2C_Read... [20:25:54]Read from MH i2c: 01 07 00 B7 00 00 03 00 00 00 FF 0F CF [20:25:54]state=3 [20:25:54]No paper [20:25:54]Cover opened [20:25:56]OFD Sender: No OFD packet to send [20:25:59]Write to MH i2c: 01 00 00 B8 00 B8 [20:25:59]Write i2c OK [20:25:59]MH_I2C_Read... [20:25:59]Read from MH i2c: 01 [20:25:59]MH_I2C_Read... [20:25:59]Read from MH i2c: 01 07 00 [20:25:59]MH_I2C_Read... [20:25:59]Read from MH i2c: 01 07 00 B8 00 00 03 00 00 00 FF 0F D0 [20:25:59]state=3 [20:25:59]No paper [20:25:59]Cover opened [20:26:01]OFD Sender: No OFD packet to send [20:26:04]Write to MH i2c: 01 00 00 B9 00 B9 [20:26:04]Write i2c OK [20:26:04]MH_I2C_Read... [20:26:04]Read from MH i2c: 01 [20:26:04]MH_I2C_Read... [20:26:04]Read from MH i2c: 01 07 00 [20:26:04]MH_I2C_Read... [20:26:04]Read from MH i2c: 01 07 00 B9 00 00 03 00 00 00 FF 0F D1 [20:26:04]state=3 [20:26:04]No paper [20:26:04]Cover opened [20:26:06]OFD Sender: No OFD packet to send [20:26:09]Write to MH i2c: 01 00 00 BA 00 BA [20:26:09]Write i2c OK [20:26:09]MH_I2C_Read... [20:26:09]Read from MH i2c: 01 [20:26:09]MH_I2C_Read... [20:26:09]Read from MH i2c: 01 07 00 [20:26:09]MH_I2C_Read... [20:26:09]Read from MH i2c: 01 07 00 BA 00 00 03 00 00 00 FF 0F D2 [20:26:09]state=3 [20:26:09]No paper [20:26:09]Cover opened [20:26:11]OFD Sender: No OFD packet to send [20:26:14]Write to MH i2c: 01 00 00 BB 00 BB [20:26:14]Write i2c OK [20:26:14]MH_I2C_Read... [20:26:14]Read from MH i2c: 01 [20:26:14]MH_I2C_Read... [20:26:14]Read from MH i2c: 01 07 00 [20:26:14]MH_I2C_Read... [20:26:14]Read from MH i2c: 01 07 00 BB 00 00 03 00 00 00 FF 0F D3 [20:26:14]state=3 [20:26:14]No paper [20:26:14]Cover opened [20:26:16]OFD Sender: No OFD packet to send [20:26:19]Write to MH i2c: 01 00 00 BC 00 BC [20:26:19]Write i2c OK [20:26:19]MH_I2C_Read... [20:26:19]Read from MH i2c: 01 [20:26:19]MH_I2C_Read... [20:26:19]Read from MH i2c: 01 07 00 [20:26:19]MH_I2C_Read... [20:26:19]Read from MH i2c: 01 07 00 BC 00 00 03 00 00 00 FF 0F D4 [20:26:19]state=3 [20:26:19]No paper [20:26:19]Cover opened [20:26:21]OFD Sender: No OFD packet to send [20:26:24]Write to MH i2c: 01 00 00 BD 00 BD [20:26:24]Write i2c OK [20:26:24]MH_I2C_Read... [20:26:24]Read from MH i2c: 01 [20:26:24]MH_I2C_Read... [20:26:24]Read from MH i2c: 01 07 00 [20:26:24]MH_I2C_Read... [20:26:24]Read from MH i2c: 01 07 00 BD 00 00 03 00 00 00 FF 0F D5 [20:26:24]state=3 [20:26:24]No paper [20:26:24]Cover opened [20:26:26]OFD Sender: No OFD packet to send [20:26:29]Write to MH i2c: 01 00 00 BE 00 BE [20:26:29]Write i2c OK [20:26:29]MH_I2C_Read... [20:26:29]Read from MH i2c: 01 [20:26:29]MH_I2C_Read... [20:26:29]Read from MH i2c: 01 07 00 [20:26:29]MH_I2C_Read... [20:26:29]Read from MH i2c: 01 07 00 BE 00 00 03 00 00 00 FF 0F D6 [20:26:29]state=3 [20:26:29]No paper [20:26:29]Cover opened [20:26:31]OFD Sender: No OFD packet to send [20:26:34]Write to MH i2c: 01 00 00 BF 00 BF [20:26:34]Write i2c OK [20:26:34]MH_I2C_Read... [20:26:34]Read from MH i2c: 01 [20:26:34]MH_I2C_Read... [20:26:34]Read from MH i2c: 01 07 00 [20:26:34]MH_I2C_Read... [20:26:34]Read from MH i2c: 01 07 00 BF 00 00 03 00 00 00 FF 0F D7 [20:26:34]state=3 [20:26:34]No paper [20:26:34]Cover opened [20:26:36]OFD Sender: No OFD packet to send [20:26:39]Write to MH i2c: 01 00 00 C0 00 C0 [20:26:39]Write i2c OK [20:26:39]MH_I2C_Read... [20:26:39]Read from MH i2c: 01 [20:26:39]MH_I2C_Read... [20:26:39]Read from MH i2c: 01 07 00 [20:26:39]MH_I2C_Read... [20:26:39]Read from MH i2c: 01 07 00 C0 00 00 03 00 00 00 FF 0F D8 [20:26:39]state=3 [20:26:39]No paper [20:26:39]Cover opened [20:26:41]OFD Sender: No OFD packet to send [20:26:44]Write to MH i2c: 01 00 00 C1 00 C1 [20:26:44]Write i2c OK [20:26:44]MH_I2C_Read... [20:26:44]Read from MH i2c: 01 [20:26:44]MH_I2C_Read... [20:26:44]Read from MH i2c: 01 07 00 [20:26:44]MH_I2C_Read... [20:26:44]Read from MH i2c: 01 07 00 C1 00 00 03 00 00 00 FF 0F D9 [20:26:44]state=3 [20:26:44]No paper [20:26:44]Cover opened [20:26:46]OFD Sender: No OFD packet to send [20:26:49]Write to MH i2c: 01 00 00 C2 00 C2 [20:26:49]Write i2c OK [20:26:49]MH_I2C_Read... [20:26:49]Read from MH i2c: 01 [20:26:49]MH_I2C_Read... [20:26:49]Read from MH i2c: 01 07 00 [20:26:49]MH_I2C_Read... [20:26:49]Read from MH i2c: 01 07 00 C2 00 00 03 00 00 00 FF 0F DA [20:26:49]state=3 [20:26:49]No paper [20:26:49]Cover opened [20:26:51]OFD Sender: No OFD packet to send [20:26:54]Write to MH i2c: 01 00 00 C3 00 C3 [20:26:54]Write i2c OK [20:26:54]MH_I2C_Read... [20:26:54]Read from MH i2c: 01 [20:26:54]MH_I2C_Read... [20:26:54]Read from MH i2c: 01 07 00 [20:26:54]MH_I2C_Read... [20:26:54]Read from MH i2c: 01 07 00 C3 00 00 03 00 00 00 FF 0F DB [20:26:54]state=3 [20:26:54]No paper [20:26:54]Cover opened [20:26:56]OFD Sender: No OFD packet to send [20:26:59]Write to MH i2c: 01 00 00 C4 00 C4 [20:26:59]Write i2c OK [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: 01 [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: 01 07 00 [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: 01 07 00 C4 00 00 03 00 00 00 FF 0F DC [20:26:59]state=3 [20:26:59]No paper [20:26:59]Cover opened [20:27:01]OFD Sender: No OFD packet to send [20:27:04]Write to MH i2c: 01 00 00 C5 00 C5 [20:27:04]Write i2c OK [20:27:04]MH_I2C_Read... [20:27:04]Read from MH i2c: 01 [20:27:04]MH_I2C_Read... [20:27:04]Read from MH i2c: 01 07 00 [20:27:04]MH_I2C_Read... [20:27:04]Read from MH i2c: 01 07 00 C5 00 00 03 00 00 00 FF 0F DD [20:27:04]state=3 [20:27:04]No paper [20:27:04]Cover opened [20:27:06]OFD Sender: No OFD packet to send [20:27:09]Write to MH i2c: 01 00 00 C6 00 C6 [20:27:09]Write i2c OK [20:27:09]MH_I2C_Read... [20:27:09]Read from MH i2c: 01 [20:27:09]MH_I2C_Read... [20:27:09]Read from MH i2c: 01 07 00 [20:27:09]MH_I2C_Read... [20:27:09]Read from MH i2c: 01 07 00 C6 00 00 03 00 00 00 FF 0F DE [20:27:09]state=3 [20:27:09]No paper [20:27:09]Cover opened [20:27:11]OFD Sender: No OFD packet to send [20:27:14]Write to MH i2c: 01 00 00 C7 00 C7 [20:27:14]Write i2c OK [20:27:14]MH_I2C_Read... [20:27:14]Read from MH i2c: 01 [20:27:14]MH_I2C_Read... [20:27:14]Read from MH i2c: 01 07 00 [20:27:14]MH_I2C_Read... [20:27:14]Read from MH i2c: 01 07 00 C7 00 00 03 00 00 00 FF 0F DF [20:27:14]state=3 [20:27:14]No paper [20:27:14]Cover opened [20:27:16]OFD Sender: No OFD packet to send [20:27:19]Write to MH i2c: 01 00 00 C8 00 C8 [20:27:19]Write i2c OK [20:27:19]MH_I2C_Read... [20:27:19]Read from MH i2c: 01 [20:27:19]MH_I2C_Read... [20:27:19]Read from MH i2c: 01 07 00 [20:27:19]MH_I2C_Read... [20:27:19]Read from MH i2c: 01 07 00 C8 00 00 03 00 00 00 FF 0F E0 [20:27:19]state=3 [20:27:19]No paper [20:27:19]Cover opened [20:27:21]OFD Sender: No OFD packet to send [20:27:24]Write to MH i2c: 01 00 00 C9 00 C9 [20:27:24]Write i2c OK [20:27:24]MH_I2C_Read... [20:27:24]Read from MH i2c: 01 [20:27:24]MH_I2C_Read... [20:27:24]Read from MH i2c: 01 07 00 [20:27:24]MH_I2C_Read... [20:27:24]Read from MH i2c: 01 07 00 C9 00 00 03 00 00 00 FF 0F E1 [20:27:24]state=3 [20:27:24]No paper [20:27:24]Cover opened [20:27:26]OFD Sender: No OFD packet to send [20:27:29]Write to MH i2c: 01 00 00 CA 00 CA [20:27:29]Write i2c OK [20:27:29]MH_I2C_Read... [20:27:29]Read from MH i2c: 01 [20:27:29]MH_I2C_Read... [20:27:29]Read from MH i2c: 01 07 00 [20:27:29]MH_I2C_Read... [20:27:29]Read from MH i2c: 01 07 00 CA 00 00 03 00 00 00 FF 0F E2 [20:27:29]state=3 [20:27:29]No paper [20:27:29]Cover opened [20:27:31]OFD Sender: No OFD packet to send [20:27:34]Write to MH i2c: 01 00 00 CB 00 CB [20:27:34]Write i2c OK [20:27:34]MH_I2C_Read... [20:27:34]Read from MH i2c: 01 [20:27:34]MH_I2C_Read... [20:27:34]Read from MH i2c: 01 07 00 [20:27:34]MH_I2C_Read... [20:27:34]Read from MH i2c: 01 07 00 CB 00 00 03 00 00 00 FF 0F E3 [20:27:34]state=3 [20:27:34]No paper [20:27:34]Cover opened [20:27:36]OFD Sender: No OFD packet to send [20:27:39]Write to MH i2c: 01 00 00 CC 00 CC [20:27:39]Write i2c OK [20:27:39]MH_I2C_Read... [20:27:39]Read from MH i2c: 01 [20:27:39]MH_I2C_Read... [20:27:39]Read from MH i2c: 01 07 00 [20:27:39]MH_I2C_Read... [20:27:39]Read from MH i2c: 01 07 00 CC 00 00 03 00 00 00 FF 0F E4 [20:27:39]state=3 [20:27:39]No paper [20:27:39]Cover opened [20:27:41]OFD Sender: No OFD packet to send [20:27:44]Write to MH i2c: 01 00 00 CD 00 CD [20:27:44]Write i2c OK [20:27:44]MH_I2C_Read... [20:27:44]Read from MH i2c: 01 [20:27:44]MH_I2C_Read... [20:27:44]Read from MH i2c: 01 07 00 [20:27:44]MH_I2C_Read... [20:27:44]Read from MH i2c: 01 07 00 CD 00 00 03 00 00 00 FF 0F E5 [20:27:44]state=3 [20:27:44]No paper [20:27:44]Cover opened [20:27:46]OFD Sender: No OFD packet to send [20:27:49]Write to MH i2c: 01 00 00 CE 00 CE [20:27:49]Write i2c OK [20:27:49]MH_I2C_Read... [20:27:49]Read from MH i2c: 01 [20:27:49]MH_I2C_Read... [20:27:49]Read from MH i2c: 01 07 00 [20:27:49]MH_I2C_Read... [20:27:49]Read from MH i2c: 01 07 00 CE 00 00 03 00 00 00 FF 0F E6 [20:27:49]state=3 [20:27:49]No paper [20:27:49]Cover opened [20:27:51]OFD Sender: No OFD packet to send [20:27:54]Write to MH i2c: 01 00 00 CF 00 CF [20:27:54]Write i2c OK [20:27:54]MH_I2C_Read... [20:27:54]Read from MH i2c: 01 [20:27:54]MH_I2C_Read... [20:27:54]Read from MH i2c: 01 07 00 [20:27:54]MH_I2C_Read... [20:27:54]Read from MH i2c: 01 07 00 CF 00 00 03 00 00 00 FF 0F E7 [20:27:54]state=3 [20:27:54]No paper [20:27:54]Cover opened [20:27:56]OFD Sender: No OFD packet to send [20:27:59]Write to MH i2c: 01 00 00 D0 00 D0 [20:27:59]Write i2c OK [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: 01 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: 01 07 00 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: 01 07 00 D0 00 00 03 00 00 00 FF 0F E8 [20:27:59]state=3 [20:27:59]No paper [20:27:59]Cover opened [20:28:01]OFD Sender: No OFD packet to send [20:28:04]Write to MH i2c: 01 00 00 D1 00 D1 [20:28:04]Write i2c OK [20:28:04]MH_I2C_Read... [20:28:04]Read from MH i2c: 01 [20:28:04]MH_I2C_Read... [20:28:04]Read from MH i2c: 01 07 00 [20:28:04]MH_I2C_Read... [20:28:04]Read from MH i2c: 01 07 00 D1 00 00 03 00 00 00 FF 0F E9 [20:28:04]state=3 [20:28:04]No paper [20:28:04]Cover opened [20:28:06]OFD Sender: No OFD packet to send [20:28:09]Write to MH i2c: 01 00 00 D2 00 D2 [20:28:09]Write i2c OK [20:28:09]MH_I2C_Read... [20:28:09]Read from MH i2c: 01 [20:28:09]MH_I2C_Read... [20:28:09]Read from MH i2c: 01 07 00 [20:28:09]MH_I2C_Read... [20:28:09]Read from MH i2c: 01 07 00 D2 00 00 03 00 00 00 FF 0F EA [20:28:09]state=3 [20:28:09]No paper [20:28:09]Cover opened [20:28:11]OFD Sender: No OFD packet to send [20:28:14]Write to MH i2c: 01 00 00 D3 00 D3 [20:28:14]Write i2c OK [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: 01 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: 01 07 00 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: 01 07 00 D3 00 00 03 00 00 00 FF 0F EB [20:28:14]state=3 [20:28:14]No paper [20:28:14]Cover opened [20:28:16]OFD Sender: No OFD packet to send [20:28:19]Write to MH i2c: 01 00 00 D4 00 D4 [20:28:19]Write i2c OK [20:28:19]MH_I2C_Read... [20:28:19]Read from MH i2c: 01 [20:28:19]MH_I2C_Read... [20:28:19]Read from MH i2c: 01 07 00 [20:28:19]MH_I2C_Read... [20:28:19]Read from MH i2c: 01 07 00 D4 00 00 03 00 00 00 FF 0F EC [20:28:19]state=3 [20:28:19]No paper [20:28:19]Cover opened [20:28:21]OFD Sender: No OFD packet to send [20:28:24]Write to MH i2c: 01 00 00 D5 00 D5 [20:28:24]Write i2c OK [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: 01 [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: 01 07 00 [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: 01 07 00 D5 00 00 03 00 00 00 FF 0F ED [20:28:24]state=3 [20:28:24]No paper [20:28:24]Cover opened [20:28:26]OFD Sender: No OFD packet to send [20:28:29]Write to MH i2c: 01 00 00 D6 00 D6 [20:28:29]Write i2c OK [20:28:29]MH_I2C_Read... [20:28:29]Read from MH i2c: 01 [20:28:29]MH_I2C_Read... [20:28:29]Read from MH i2c: 01 07 00 [20:28:29]MH_I2C_Read... [20:28:29]Read from MH i2c: 01 07 00 D6 00 00 03 00 00 00 FF 0F EE [20:28:29]state=3 [20:28:29]No paper [20:28:29]Cover opened [20:28:31]OFD Sender: No OFD packet to send [20:28:34]Write to MH i2c: 01 00 00 D7 00 D7 [20:28:34]Write i2c OK [20:28:34]MH_I2C_Read... [20:28:34]Read from MH i2c: 01 [20:28:34]MH_I2C_Read... [20:28:34]Read from MH i2c: 01 07 00 [20:28:34]MH_I2C_Read... [20:28:34]Read from MH i2c: 01 07 00 D7 00 00 03 00 00 00 FF 0F EF [20:28:34]state=3 [20:28:34]No paper [20:28:34]Cover opened [20:28:36]OFD Sender: No OFD packet to send [20:28:39]Write to MH i2c: 01 00 00 D8 00 D8 [20:28:39]Write i2c OK [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: 01 [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: 01 07 00 [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: 01 07 00 D8 00 00 03 00 00 00 FF 0F F0 [20:28:39]state=3 [20:28:39]No paper [20:28:39]Cover opened [20:28:40]int [20:28:40]Write to MH i2c: 01 00 00 D9 00 D9 [20:28:40]*** FLAG_PRN_PAP2 reset [20:28:40]Write i2c OK [20:28:40]MH_I2C_Read... [20:28:40]Read from MH i2c: 01 [20:28:40]MH_I2C_Read... [20:28:40]Read from MH i2c: 01 07 00 [20:28:40]MH_I2C_Read... [20:28:40]Read from MH i2c: 01 07 00 D9 00 00 01 00 00 00 FF 0F EF [20:28:40]state=3 [20:28:40]No paper [20:28:40]Cover closed [20:28:40]int [20:28:40]Write to MH i2c: 01 00 00 DA 00 DA [20:28:40]*** FLAG_PRN_PAP1 reset [20:28:40]Write i2c OK [20:28:40]MH_I2C_Read... [20:28:40]Read from MH i2c: 01 [20:28:40]MH_I2C_Read... [20:28:40]Read from MH i2c: 01 07 00 [20:28:40]MH_I2C_Read... [20:28:40]Read from MH i2c: 01 07 00 DA 00 00 00 00 00 00 FF 0F EF [20:28:40]state=0 [20:28:41]OFD Sender: No OFD packet to send [20:28:46]OFD Sender: No OFD packet to send [20:28:51]OFD Sender: No OFD packet to send [20:28:51]accept exits with 7 [20:28:51]New connection [20:28:51]New thread 3066977636 created [20:28:51]Thread 3066834276 joined [20:28:51]Waiting for new connection... [20:28:51] Sock 7.Parse request [20:28:51]Sock 7.Check first char [20:28:51]Sock 7.First char is OK [20:28:51]request: POST /json_proto HTTP/1.0 [20:28:51]Method: POST [20:28:51]URL: /json_proto [20:28:51]Method is POST - this is cgi request [20:28:51]url: /json_proto [20:28:51]query_string will be loaded in cgi processing [20:28:51]execute_cgi json_proto POST (null) [20:28:51]execute_cgi path=json_proto method=POST [20:28:51]POST find Content-Length [20:28:51]Host: 172.17.44.195:8080 [20:28:51]Content-Length: 675 [20:28:51]Content-Type: application/json [20:28:51] [20:28:51]POST finish read [20:28:51]Found Content-Length = 675 [20:28:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 1.320, "sum" : 100.58, "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" ] } } [20:28:51]execute_script... [20:28: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)1965038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 1.320, "sum" : 100.58, "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" ] } } [20:28:51]POST & json_proto [20:28:51]process_json_proto [20:28:51]json parsed OK: [20:28:51]protocol is kg_v1.0 [20:28:51]action value=close_receipt [20:28:51]process_action close_receipt [20:28:51]cmd_close_receipt [20:28:51]MH_GetDate [20:28:51]Write to MH i2c: F0 00 00 DB 00 CA [20:28:51]Write i2c OK [20:28:51]MH_I2C_Read... [20:28:51]Read from MH i2c: F0 [20:28:51]MH_I2C_Read... [20:28:51]Read from MH i2c: F0 09 00 [20:28:51]MH_I2C_Read... [20:28:51]Read from MH i2c: F0 09 00 DB 00 00 04 0B 18 67 82 C9 CF 66 E1 [20:28:51]GetLastDocTimeStamp 1729628733 [20:28:51]current date 1729628932 [20:28:51]FM_GetShiftState [20:28:51]SAM_PROTO_GetShiftState [20:28:51]wFMCommunicate request_size=4 [20:28:51]MH_SAM_APDU [20:28:51]CAPDU: 80 13 01 00 [20:28:51]Write to MH i2c: E2 08 00 DC 00 80 13 01 00 00 00 00 00 59 [20:28:51]Write i2c OK [20:28:51]MH_I2C_Read... [20:28:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:51]Read from MH i2c: E2 [20:28:51]MH_I2C_Read... [20:28:51]Read from MH i2c: E2 0E 00 [20:28:51]MH_I2C_Read... [20:28:51]Read from MH i2c: E2 0E 00 DC 00 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 20 [20:28:51]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [20:28:51]wFMCommunicate OK [20:28:51]SAM_PROTO_GetShiftState done [20:28:51]FM_GetShiftState done [20:28:51]opened in 1729555538 [20:28:51]opened+sec_in_day 1729641938 [20:28:51]quantity*price = 10058 [20:28:51]sum+1 = 10059 [20:28:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.68 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 389 22.10.2024 20:28 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228425 ФПД: 53298923361539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T202852&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228425&fm=53298923361539&tin=02508201610067®Number=0000000000091685&sum=10000 [20:28:52]StoreToDocumentArchive [20:28:52]shift 535 fd 228425 [20:28:52]save to /storage/0535/doc_00228425 [20:28:52]save last doc name /storage/0535/doc_00228425 to /storage/kkm_last_doc_name [20:28:53]save OK [20:28:53]Clear old archive folders... [20:28:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:28:53]tlvbuf is 0029ED40 [20:28:53]SAM_PROTO_ClearQueue [20:28:53]wFMCommunicate request_size=4 [20:28:53]MH_SAM_APDU [20:28:53]CAPDU: 80 09 00 00 [20:28:53]Write to MH i2c: E2 08 00 E9 00 80 09 00 00 00 00 00 00 5B [20:28:53]Write i2c OK [20:28:53]MH_I2C_Read... [20:28:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:28:53]Read from MH i2c: E2 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: E2 03 00 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: E2 03 00 E9 00 00 90 00 5D [20:28:53]RAPDU: 90 00 [20:28:53]wFMCommunicate OK [20:28:53]SAM_PROTO_ClearQueue done [20:28:53]KKMCreateOFDPacket [20:28:53]OFDProtocolAddRootSTLVToBuf [20:28:53]FM_MakeSignedData [20:28:53]FM_MakeSignedData [20:28:53]SAM_PROTO_SignData [20:28:53]wFMCommunicate request_size=4 [20:28:53]MH_SAM_APDU [20:28:53]CAPDU: 80 0D 01 02 [20:28:53]Write to MH i2c: E2 08 00 EA 00 80 0D 01 02 00 00 00 00 63 [20:28:53]Write i2c OK [20:28:53]MH_I2C_Read... [20:28:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:28:53]Read from MH i2c: E2 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: E2 03 00 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: E2 03 00 EA 00 00 90 00 5E [20:28:53]RAPDU: 90 00 [20:28:53]wFMCommunicate OK [20:28:53]wFMCommunicate request_size=255 [20:28:53]MH_SAM_APDU [20:28:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 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 2C 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 85 01 00 00 F4 03 04 00 04 0B 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 49 7C 03 00 35 04 06 00 30 79 9F 64 [20:28:53]Write to MH i2c: E2 02 01 EB 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 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 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 2C 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 85 01 00 00 F4 03 04 00 04 0B 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 49 7C 03 00 35 04 06 00 30 79 9F 64 00 00 DF [20:28:53]Write i2c OK [20:28:53]MH_I2C_Read... [20:28:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:53]Read from MH i2c: E2 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: E2 03 00 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: E2 03 00 EB 00 00 90 00 5F [20:28:53]RAPDU: 90 00 [20:28:53]wFMCommunicate OK [20:28:53]wFMCommunicate request_size=7 [20:28:53]MH_SAM_APDU [20:28:53]CAPDU: 80 0D 02 02 02 D5 03 [20:28:53]Write to MH i2c: E2 0A 00 EC 00 80 0D 02 02 02 00 D5 03 00 00 42 [20:28:53]Write i2c OK [20:28:53]MH_I2C_Read... [20:28:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:53]Read from MH i2c: E2 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: E2 03 00 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: E2 03 00 EC 00 00 90 00 60 [20:28:53]RAPDU: 90 00 [20:28:53]wFMCommunicate OK [20:28:53]wFMCommunicate request_size=4 [20:28:53]MH_SAM_APDU [20:28:53]CAPDU: 80 0D 03 02 [20:28:53]Write to MH i2c: E2 08 00 ED 00 80 0D 03 02 00 00 00 00 68 [20:28:53]Write i2c OK [20:28:53]MH_I2C_Read... [20:28:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:28:53]Read from MH i2c: E2 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: E2 0B 00 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: E2 0B 00 ED 00 00 B0 B1 7F 92 FF 50 E0 A2 90 00 AC [20:28:53]RAPDU: B0 B1 7F 92 FF 50 E0 A2 90 00 [20:28:53]wFMCommunicate OK [20:28:53]SAM_PROTO_SignData done [20:28:53]FM_MakeSignedData done [20:28:53]CreateOFDProtocolMessage [20:28:53]wFMCommunicate request_size=4 [20:28:53]MH_SAM_APDU [20:28:53]CAPDU: 80 11 00 00 [20:28:53]Write to MH i2c: E2 08 00 EE 00 80 11 00 00 00 00 00 00 68 [20:28:53]Write i2c OK [20:28:53]MH_I2C_Read... [20:28:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:53]Read from MH i2c: E2 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: E2 17 00 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: E2 17 00 EE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BF [20:28:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:28:53]wFMCommunicate OK [20:28:53]CreateOFDProtocolMessage done [20:28:53]OFDSenderStorePacket 228425 [20:28:53]StoreOFDPacket docnum=228425 [20:28:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 D9 FB 04 01 7C 7F 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 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 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 2C 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 85 01 00 00 F4 03 04 00 04 0B 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 49 7C 03 00 35 04 06 00 30 79 9F 64 D5 03 B0 B1 7F 92 FF 50 E0 A2 [20:28:53]CheckFolder [20:28:53]dirname=/storage/ofd_packets [20:28:53]CheckFolder done [20:28:53]ProducePacketName [20:28:53]name=ofd_packets/00228425 [20:28:53]NVStorageSaveData ofd_packets/00228425 [20:28:53]File name is /storage/ofd_packets/00228425 [20:28:53]Write 298 bytes [20:28:53]NVStorageSaveData done [20:28:53]OFDSenderStorePacket done [20:28:53]KKMCreateOFDPacket done [20:28:53]NVStorageSaveData kkm_last_timestamp [20:28:53]File name is /storage/kkm_last_timestamp [20:28:53]Write 4 bytes [20:28:53]NVStorageSaveData done [20:28:53]ExternCall_PrintAddStr [20:28:53]wPrintStart [20:28:53]Write to MH i2c: 01 00 00 EF 00 EF [20:28:53]Write i2c OK [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: 01 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: 01 07 00 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 FF 0F 04 [20:28:53]RasterBufferAndPrint [20:28:53]line Счет N : (1)1965038 [20:28:53]line ИНН: 02508201610067 [20:28:53]line Контрольно-Кассовый Чек [20:28:53]line ПРОДАЖА [20:28:53]line ТРК (МРК, ГНК) : 31 [20:28:53]line Товар: 2710194210 [20:28:53]line ДТ-К-5 [20:28:53]line 1.320 * 76.20 [20:28:53]line = 100.58 [20:28:53]line НДС 12% НСП 1% [20:28:53]line > о реализуемом товаре [20:28:53]line ОКРУГЛЕНИЕ: -0.58 [20:28:53]line ИТОГО: 100.00 [20:28:53]line Внесено: 100.00 [20:28:53]line СДАЧА: 0.00 [20:28:53]line НСП 1% : 0.89 [20:28:53]line НДС 12% : 10.68 [20:28:53]line Наличными: 100.00 [20:28:53]line Безнал.: 0.00 [20:28:53]line Место: АЗС № 133 "Партнер Нефть" [20:28:53]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:28:53]line СНО: Общий режим [20:28:53]line Чек 389 22.10.2024 20:28 [20:28:53]line Смена: 535 ФФД: 1.0 [20:28:53]line ЗНМ: 0300000091 [20:28:53]line РНМ: 0000000000091685 [20:28:53]line Версия ККМ: 001 [20:28:53]line ФМ: 0000000000871839 [20:28:53]line ФД: 228425 [20:28:53]line ФПД: 53298923361539 [20:28:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T202852&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228425&fm=53298923361539&tin=02508201610067®Number=0000000000091685&sum=10000 [20:28:53]OFD Sender: Processing packet 228425 [packets to send 38, broken 37] [20:28:53]ProducePacketName [20:28:53]name=ofd_packets/00228425 [20:28:53]OFD Sender: To server: pG, [20:28:53]CommunicateWithHost lk.salyk.kg:30040 [20:28:53]ConnectInit lk.salyk.kg [20:28:53]written 0, free lines is 4095 [20:28:54]Write to MH i2c: 01 00 00 19 01 1A [20:28:54]Write i2c OK [20:28:54]MH_I2C_Read... [20:28:54]Read from MH i2c: 01 [20:28:54]MH_I2C_Read... [20:28:54]Read from MH i2c: 01 07 00 [20:28:54]MH_I2C_Read... [20:28:54]Read from MH i2c: 01 07 00 19 01 00 00 00 00 00 A5 0C D2 [20:28:54]RasterBufferAndPrint [20:28:54]line [20:28:54]line [20:28:54]line [20:28:54]line [20:28:54]line [20:28:54]written 0, free lines is 3240 [20:28:54]MH_Cut [20:28:54]Write to MH i2c: D1 01 00 20 01 01 F3 [20:28:54]Write i2c OK [20:28:54]MH_I2C_Read... [20:28:54]Read from MH i2c: D1 [20:28:54]MH_I2C_Read... [20:28:54]Read from MH i2c: D1 01 00 [20:28:54]MH_I2C_Read... [20:28:54]Read from MH i2c: D1 01 00 20 01 00 F2 [20:28:54]Write to MH i2c: 01 00 00 21 01 22 [20:28:54]Write i2c OK [20:28:54]MH_I2C_Read... [20:28:55]*** Cut start [20:28:55]*** Partial cut [20:28:55]*** CUTSNS_PIN = 1 [20:28:55]*** CUTSNS_PIN = 0 [20:28:55]*** Brake cut motor [20:28:55]Read from MH i2c: 01 [20:28:55]MH_I2C_Read... [20:28:55]*** Stop cut motor [20:28:55]*** Cut end [20:28:55]Read from MH i2c: 01 07 00 [20:28:55]MH_I2C_Read... [20:28:55]Read from MH i2c: 01 07 00 21 01 00 00 00 00 00 FF 0F 37 [20:28:55]process_action close_receipt done [20:28:55]requested_data is exist [20:28:55]produce_requested_data [20:28:55]requested_item fm.sn is exist - process it [20:28:55]wFMCommunicate request_size=4 [20:28:55]MH_SAM_APDU [20:28:55]CAPDU: 80 11 00 00 [20:28:55]Write to MH i2c: E2 08 00 22 01 80 11 00 00 00 00 00 00 9D [20:28:55]Write i2c OK [20:28:55]MH_I2C_Read... [20:28:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:55]Read from MH i2c: E2 [20:28:55]MH_I2C_Read... [20:28:55]Read from MH i2c: E2 17 00 [20:28:55]MH_I2C_Read... [20:28:55]Read from MH i2c: E2 17 00 22 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F4 [20:28:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:28:55]wFMCommunicate OK [20:28:55]requested_item fd.num is exist - process it [20:28:55]SAM_PROTO_GetFieldsCounters [20:28:55]wFMCommunicate request_size=4 [20:28:55]MH_SAM_APDU [20:28:55]CAPDU: 80 13 00 00 [20:28:55]Write to MH i2c: E2 08 00 23 01 80 13 00 00 00 00 00 00 A0 [20:28:55]Write i2c OK [20:28:55]MH_I2C_Read... [20:28:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:28:56]Read from MH i2c: E2 [20:28:56]MH_I2C_Read... [20:28:56]Read from MH i2c: E2 62 00 [20:28:56]MH_I2C_Read... [20:28:56]Read from MH i2c: E2 62 00 23 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 49 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 85 01 00 00 5E 04 04 00 85 01 00 00 57 04 04 00 86 01 00 00 19 04 04 00 00 00 00 00 90 00 3C [20:28:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 49 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 85 01 00 00 5E 04 04 00 85 01 00 00 57 04 04 00 86 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:28:56]wFMCommunicate OK [20:28:56]SAM_PROTO_GetFieldsCounters done [20:28:56]requested_item shift.num is exist - process it [20:28:56]requested_item shift.opened is exist - process it [20:28:56]req_shift_opened [20:28:56]FM_GetShiftState [20:28:56]SAM_PROTO_GetShiftState [20:28:56]wFMCommunicate request_size=4 [20:28:56]MH_SAM_APDU [20:28:56]CAPDU: 80 13 01 00 [20:28:56]Write to MH i2c: E2 08 00 24 01 80 13 01 00 00 00 00 00 A2 [20:28:56]Write i2c OK [20:28:56]MH_I2C_Read... [20:28:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:56]Read from MH i2c: E2 [20:28:56]MH_I2C_Read... [20:28:56]Read from MH i2c: E2 0E 00 [20:28:56]MH_I2C_Read... [20:28:56]Read from MH i2c: E2 0E 00 24 01 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 69 [20:28:56]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [20:28:56]wFMCommunicate OK [20:28:56]SAM_PROTO_GetShiftState done [20:28:56]FM_GetShiftState done [20:28:56]req_shift_opened done [20:28:56]requested_item shift.open_date is exist - process it [20:28:56]req_shift_open_date [20:28:56]req_shift_open_date done [20:28:56]produce_requested_data done [20:28:56]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228425,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [20:28:56]process_action_free close_receipt [20:28:56]json_value_free [20:28:56]json_value_free done [20:28:56]process_json_proto returns [20:28:56]Send response to host [20:28:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228425,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [20:28:56]free response buf [20:28:56]execute_script done [20:28:56]execute_script returns [20:28:56]free content buf [20:28:56]Sock 7.Close socket [20:28:56]Sock 7.Thread stoped [20:28:57]accept exits with 9 [20:28:57]New connection [20:28:57]New thread 3066834276 created [20:28:57]Thread 3066977636 joined [20:28:57]Waiting for new connection... [20:28:57] Sock 9.Parse request [20:28:57]Sock 9.Check first char [20:28:57]Sock 9.First char is OK [20:28:57]request: POST /json_proto HTTP/1.0 [20:28:57]Method: POST [20:28:57]URL: /json_proto [20:28:57]Method is POST - this is cgi request [20:28:57]url: /json_proto [20:28:57]query_string will be loaded in cgi processing [20:28:57]execute_cgi json_proto POST (null) [20:28:57]execute_cgi path=json_proto method=POST [20:28:57]POST find Content-Length [20:28:57]Host: 172.17.44.195:8080 [20:28:57]Content-Length: 732 [20:28:57]Content-Type: application/json [20:28:57] [20:28:57]POST finish read [20:28:57]Found Content-Length = 732 [20:28:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 228425, "base_FM": "0000000000871839", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 1.320, "sum" : 100.58, "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" ] } } [20:28:57]execute_script... [20:28:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 228425, "base_FM": "0000000000871839", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 1.320, "sum" : 100.58, "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" ] } } [20:28:57]POST & json_proto [20:28:57]process_json_proto [20:28:57]json parsed OK: [20:28:57]protocol is kg_v1.0 [20:28:57]action value=close_receipt [20:28:57]process_action close_receipt [20:28:57]cmd_close_receipt [20:28:57]MH_GetDate [20:28:57]Write to MH i2c: F0 00 00 25 01 15 [20:28:57]Write i2c OK [20:28:57]MH_I2C_Read... [20:28:57]Read from MH i2c: F0 [20:28:57]MH_I2C_Read... [20:28:57]Read from MH i2c: F0 09 00 [20:28:57]MH_I2C_Read... [20:28:57]Read from MH i2c: F0 09 00 25 01 00 09 0B 18 67 82 C9 CF 66 31 [20:28:57]GetLastDocTimeStamp 1729628932 [20:28:57]current date 1729628937 [20:28:57]FM_GetShiftState [20:28:57]SAM_PROTO_GetShiftState [20:28:57]wFMCommunicate request_size=4 [20:28:57]MH_SAM_APDU [20:28:57]CAPDU: 80 13 01 00 [20:28:57]Write to MH i2c: E2 08 00 26 01 80 13 01 00 00 00 00 00 A4 [20:28:57]Write i2c OK [20:28:57]MH_I2C_Read... [20:28:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:57]Read from MH i2c: E2 [20:28:57]MH_I2C_Read... [20:28:57]Read from MH i2c: E2 0E 00 [20:28:57]MH_I2C_Read... [20:28:57]Read from MH i2c: E2 0E 00 26 01 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 6B [20:28:57]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [20:28:57]wFMCommunicate OK [20:28:57]SAM_PROTO_GetShiftState done [20:28:57]FM_GetShiftState done [20:28:57]opened in 1729555538 [20:28:57]opened+sec_in_day 1729641938 [20:28:57]quantity*price = 10058 [20:28:57]sum+1 = 10059 [20:28:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 100.00 НСП 1% : 0.89 НДС 12% : 10.68 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 390 22.10.2024 20:28 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФД осн.: 228425 ФМ осн.: 0000000000871839 ФМ: 0000000000871839 ФД: 228426 ФПД: 280195800427511 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T202857&type=2&operation_type=1&fn_number=0000000000871839&fd_number=228426&fm=280195800427511&tin=02508201610067®Number=0000000000091685&sum=10000 [20:28:58]StoreToDocumentArchive [20:28:58]shift 535 fd 228426 [20:28:58]save to /storage/0535/doc_00228426 [20:28:58]save last doc name /storage/0535/doc_00228426 to /storage/kkm_last_doc_name [20:28:58]save OK [20:28:58]Clear old archive folders... [20:28:58]ProcessDocumentItem done err = 0, tmpTLVsize=276 [20:28:58]tlvbuf is 002A0970 [20:28:58]SAM_PROTO_ClearQueue [20:28:58]wFMCommunicate request_size=4 [20:28:58]MH_SAM_APDU [20:28:58]CAPDU: 80 09 00 00 [20:28:58]Write to MH i2c: E2 08 00 35 01 80 09 00 00 00 00 00 00 A8 [20:28:58]Write i2c OK [20:28:58]MH_I2C_Read... [20:28:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:28:58]Read from MH i2c: E2 [20:28:58]MH_I2C_Read... [20:28:58]Read from MH i2c: E2 03 00 [20:28:58]MH_I2C_Read... [20:28:58]Read from MH i2c: E2 03 00 35 01 00 90 00 AA [20:28:58]RAPDU: 90 00 [20:28:58]wFMCommunicate OK [20:28:58]SAM_PROTO_ClearQueue done [20:28:58]KKMCreateOFDPacket [20:28:58]OFDProtocolAddRootSTLVToBuf [20:28:58]FM_MakeSignedData [20:28:58]FM_MakeSignedData [20:28:58]SAM_PROTO_SignData [20:28:58]wFMCommunicate request_size=4 [20:28:58]MH_SAM_APDU [20:28:58]CAPDU: 80 0D 01 02 [20:28:58]Write to MH i2c: E2 08 00 36 01 80 0D 01 02 00 00 00 00 B0 [20:28:58]Write i2c OK [20:28:58]MH_I2C_Read... [20:28:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:28:58]Read from MH i2c: E2 [20:28:58]MH_I2C_Read... [20:28:58]Read from MH i2c: E2 03 00 [20:28:58]MH_I2C_Read... [20:28:58]Read from MH i2c: E2 03 00 36 01 00 90 00 AB [20:28:58]RAPDU: 90 00 [20:28:58]wFMCommunicate OK [20:28:58]wFMCommunicate request_size=255 [20:28:58]MH_SAM_APDU [20:28:58]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 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 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 2C 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 86 01 00 00 F4 03 04 00 09 0B 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 27 04 04 00 49 7C 03 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 11 04 10 00 30 30 30 30 [20:28:58]Write to MH i2c: E2 02 01 37 01 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 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 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 2C 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 86 01 00 00 F4 03 04 00 09 0B 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 27 04 04 00 49 7C 03 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 11 04 10 00 30 30 30 30 00 00 78 [20:28:58]Write i2c OK [20:28:58]MH_I2C_Read... [20:28:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:59]Read from MH i2c: E2 [20:28:59]MH_I2C_Read... [20:28:59]Read from MH i2c: E2 03 00 [20:28:59]MH_I2C_Read... [20:28:59]Read from MH i2c: E2 03 00 37 01 00 90 00 AC [20:28:59]RAPDU: 90 00 [20:28:59]wFMCommunicate OK [20:28:59]wFMCommunicate request_size=35 [20:28:59]MH_SAM_APDU [20:28:59]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4A 7C 03 00 35 04 06 00 FE D6 2B 26 EB F7 [20:28:59]Write to MH i2c: E2 26 00 38 01 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4A 7C 03 00 35 04 06 00 FE D6 2B 26 EB F7 00 00 7A [20:28:59]Write i2c OK [20:28:59]MH_I2C_Read... [20:28:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:59]Read from MH i2c: E2 [20:28:59]MH_I2C_Read... [20:28:59]Read from MH i2c: E2 03 00 [20:28:59]MH_I2C_Read... [20:28:59]Read from MH i2c: E2 03 00 38 01 00 90 00 AD [20:28:59]RAPDU: 90 00 [20:28:59]wFMCommunicate OK [20:28:59]wFMCommunicate request_size=4 [20:28:59]MH_SAM_APDU [20:28:59]CAPDU: 80 0D 03 02 [20:28:59]Write to MH i2c: E2 08 00 39 01 80 0D 03 02 00 00 00 00 B5 [20:28:59]Write i2c OK [20:28:59]MH_I2C_Read... [20:28:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:28:59]Read from MH i2c: E2 [20:28:59]MH_I2C_Read... [20:28:59]Read from MH i2c: E2 0B 00 [20:28:59]MH_I2C_Read... [20:28:59]Read from MH i2c: E2 0B 00 39 01 00 C5 1F 91 6B 0F 23 76 04 90 00 42 [20:28:59]RAPDU: C5 1F 91 6B 0F 23 76 04 90 00 [20:28:59]wFMCommunicate OK [20:28:59]SAM_PROTO_SignData done [20:28:59]FM_MakeSignedData done [20:28:59]CreateOFDProtocolMessage [20:28:59]wFMCommunicate request_size=4 [20:28:59]MH_SAM_APDU [20:28:59]CAPDU: 80 11 00 00 [20:28:59]Write to MH i2c: E2 08 00 3A 01 80 11 00 00 00 00 00 00 B5 [20:28:59]Write i2c OK [20:28:59]MH_I2C_Read... [20:28:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:59]Read from MH i2c: E2 [20:28:59]MH_I2C_Read... [20:28:59]Read from MH i2c: E2 17 00 [20:28:59]MH_I2C_Read... [20:28:59]Read from MH i2c: E2 17 00 3A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0C [20:28:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:28:59]wFMCommunicate OK [20:28:59]CreateOFDProtocolMessage done [20:28:59]OFDSenderStorePacket 228426 [20:28:59]StoreOFDPacket docnum=228426 [20:28:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 28 01 00 00 9F 39 20 01 F6 6D 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 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 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 2C 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 86 01 00 00 F4 03 04 00 09 0B 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 27 04 04 00 49 7C 03 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4A 7C 03 00 35 04 06 00 FE D6 2B 26 EB F7 C5 1F 91 6B 0F 23 76 04 [20:28:59]CheckFolder [20:28:59]dirname=/storage/ofd_packets [20:28:59]CheckFolder done [20:28:59]ProducePacketName [20:28:59]name=ofd_packets/00228426 [20:28:59]NVStorageSaveData ofd_packets/00228426 [20:28:59]File name is /storage/ofd_packets/00228426 [20:28:59]Write 326 bytes [20:28:59]NVStorageSaveData done [20:28:59]OFDSenderStorePacket done [20:28:59]KKMCreateOFDPacket done [20:28:59]NVStorageSaveData kkm_last_timestamp [20:28:59]File name is /storage/kkm_last_timestamp [20:28:59]Write 4 bytes [20:28:59]NVStorageSaveData done [20:28:59]ExternCall_PrintAddStr [20:28:59]wPrintStart [20:28:59]Write to MH i2c: 01 00 00 3B 01 3C [20:28:59]Write i2c OK [20:28:59]MH_I2C_Read... [20:28:59]Read from MH i2c: 01 [20:28:59]MH_I2C_Read... [20:28:59]Read from MH i2c: 01 07 00 [20:28:59]MH_I2C_Read... [20:28:59]Read from MH i2c: 01 07 00 3B 01 00 00 00 00 00 FF 0F 51 [20:28:59]RasterBufferAndPrint [20:28:59]line Счет N : (1)1965038 [20:28:59]line ИНН: 02508201610067 [20:28:59]line Контрольно-Кассовый Чек [20:28:59]line ВОЗВРАТ ПРОДАЖИ [20:28:59]line ТРК (МРК, ГНК) : 31 [20:28:59]line Товар: 2710194210 [20:28:59]line ДТ-К-5 [20:28:59]line 1.320 * 76.20 [20:28:59]line = 100.58 [20:28:59]line НДС 12% НСП 1% [20:28:59]line > о реализуемом товаре [20:28:59]line ОКРУГЛЕНИЕ: -0.58 [20:28:59]line ИТОГО: 100.00 [20:28:59]line НСП 1% : 0.89 [20:28:59]line НДС 12% : 10.68 [20:28:59]line Наличными: 100.00 [20:28:59]line Безнал.: 0.00 [20:28:59]line Место: АЗС № 133 "Партнер Нефть" [20:28:59]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:28:59]line СНО: Общий режим [20:28:59]line Чек 390 22.10.2024 20:28 [20:28:59]line Смена: 535 ФФД: 1.0 [20:28:59]line ЗНМ: 0300000091 [20:28:59]line РНМ: 0000000000091685 [20:28:59]line Версия ККМ: 001 [20:28:59]line ФД осн.: 228425 [20:28:59]line ФМ осн.: 0000000000871839 [20:28:59]line ФМ: 0000000000871839 [20:28:59]line ФД: 228426 [20:28:59]line ФПД: 280195800427511 [20:28:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T202857&type=2&operation_type=1&fn_number=0000000000871839&fd_number=228426&fm=280195800427511&tin=02508201610067®Number=0000000000091685&sum=10000 [20:28:59]written 0, free lines is 4095 [20:28:59]Write to MH i2c: 01 00 00 65 01 66 [20:28:59]Write i2c OK [20:28:59]MH_I2C_Read... [20:28:59]Read from MH i2c: 01 [20:28:59]MH_I2C_Read... [20:28:59]Read from MH i2c: 01 07 00 [20:28:59]MH_I2C_Read... [20:28:59]Read from MH i2c: 01 07 00 65 01 00 00 00 00 00 AA 0C 23 [20:28:59]RasterBufferAndPrint [20:28:59]line [20:28:59]line [20:28:59]line [20:28:59]line [20:28:59]line [20:28:59]written 0, free lines is 3248 [20:28:59]MH_Cut [20:28:59]Write to MH i2c: D1 01 00 6C 01 01 3F [20:28:59]Write i2c OK [20:28:59]MH_I2C_Read... [20:28:59]Read from MH i2c: D1 [20:28:59]MH_I2C_Read... [20:28:59]Read from MH i2c: D1 01 00 [20:28:59]MH_I2C_Read... [20:28:59]Read from MH i2c: D1 01 00 6C 01 00 3E [20:28:59]Write to MH i2c: 01 00 00 6D 01 6E [20:28:59]Write i2c OK [20:28:59]MH_I2C_Read... [20:29:00]*** Cut start [20:29:00]*** Partial cut [20:29:00]*** CUTSNS_PIN = 1 [20:29:00]*** CUTSNS_PIN = 0 [20:29:01]*** Brake cut motor [20:29:01]Read from MH i2c: 01 [20:29:01]MH_I2C_Read... [20:29:01]*** Stop cut motor [20:29:01]*** Cut end [20:29:01]Read from MH i2c: 01 07 00 [20:29:01]MH_I2C_Read... [20:29:01]Read from MH i2c: 01 07 00 6D 01 00 00 00 00 00 FF 0F 83 [20:29:01]process_action close_receipt done [20:29:01]requested_data is exist [20:29:01]produce_requested_data [20:29:01]requested_item fm.sn is exist - process it [20:29:01]wFMCommunicate request_size=4 [20:29:01]MH_SAM_APDU [20:29:01]CAPDU: 80 11 00 00 [20:29:01]Write to MH i2c: E2 08 00 6E 01 80 11 00 00 00 00 00 00 E9 [20:29:01]Write i2c OK [20:29:01]MH_I2C_Read... [20:29:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:01]Read from MH i2c: E2 [20:29:01]MH_I2C_Read... [20:29:01]Read from MH i2c: E2 17 00 [20:29:01]MH_I2C_Read... [20:29:01]Read from MH i2c: E2 17 00 6E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 40 [20:29:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:29:01]wFMCommunicate OK [20:29:01]requested_item fd.num is exist - process it [20:29:01]SAM_PROTO_GetFieldsCounters [20:29:01]wFMCommunicate request_size=4 [20:29:01]MH_SAM_APDU [20:29:01]CAPDU: 80 13 00 00 [20:29:01]Write to MH i2c: E2 08 00 6F 01 80 13 00 00 00 00 00 00 EC [20:29:01]Write i2c OK [20:29:01]MH_I2C_Read... [20:29:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:29:01]Read from MH i2c: E2 [20:29:01]MH_I2C_Read... [20:29:01]Read from MH i2c: E2 62 00 [20:29:01]MH_I2C_Read... [20:29:01]Read from MH i2c: E2 62 00 6F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4A 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 86 01 00 00 5E 04 04 00 86 01 00 00 57 04 04 00 87 01 00 00 19 04 04 00 00 00 00 00 90 00 8C [20:29:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4A 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 86 01 00 00 5E 04 04 00 86 01 00 00 57 04 04 00 87 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:29:01]wFMCommunicate OK [20:29:01]SAM_PROTO_GetFieldsCounters done [20:29:01]requested_item shift.num is exist - process it [20:29:01]requested_item shift.opened is exist - process it [20:29:01]req_shift_opened [20:29:01]FM_GetShiftState [20:29:01]SAM_PROTO_GetShiftState [20:29:01]wFMCommunicate request_size=4 [20:29:01]MH_SAM_APDU [20:29:01]CAPDU: 80 13 01 00 [20:29:01]Write to MH i2c: E2 08 00 70 01 80 13 01 00 00 00 00 00 EE [20:29:01]Write i2c OK [20:29:01]MH_I2C_Read... [20:29:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:01]Read from MH i2c: E2 [20:29:01]MH_I2C_Read... [20:29:01]Read from MH i2c: E2 0E 00 [20:29:01]MH_I2C_Read... [20:29:01]Read from MH i2c: E2 0E 00 70 01 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 B5 [20:29:01]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [20:29:01]wFMCommunicate OK [20:29:01]SAM_PROTO_GetShiftState done [20:29:01]FM_GetShiftState done [20:29:01]req_shift_opened done [20:29:01]requested_item shift.open_date is exist - process it [20:29:01]req_shift_open_date [20:29:01]req_shift_open_date done [20:29:01]produce_requested_data done [20:29:01]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228426,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [20:29:01]process_action_free close_receipt [20:29:01]json_value_free [20:29:01]json_value_free done [20:29:01]process_json_proto returns [20:29:01]Send response to host [20:29:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228426,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [20:29:01]free response buf [20:29:01]execute_script done [20:29:01]execute_script returns [20:29:01]free content buf [20:29:01]Sock 9.Close socket [20:29:01]Sock 9.Thread stoped [20:31:05]ConnectInit Can't connect to host [20:31:05]CommunicateWithHost connect error [20:31:05]CommunicateWithHost err = -1 [20:31:05]OFD Sender: Server communicate error [20:31:05]OFD Sender: Processing packet 228425 [packets to send 39, broken 37] [20:31:05]ProducePacketName [20:31:05]name=ofd_packets/00228425 [20:31:05]OFD Sender: To server: pG, [20:31:05]CommunicateWithHost lk.salyk.kg:30040 [20:31:05]ConnectInit lk.salyk.kg [20:31:05]Connected sock=9 [20:31:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 D9 FB 04 01 7C 7F 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 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 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 2C 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 85 01 00 00 F4 03 04 00 04 0B 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 49 7C 03 00 35 04 06 00 30 79 9F 64 D5 03 B0 B1 7F 92 FF 50 E0 A2 [20:31:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 89 DF 47 00 41 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 49 7C 03 00 F4 03 04 00 7F B6 17 67 B6 04 01 00 00 2A E9 86 E5 1B 80 2D 5F [20:31:06]CommunicateWithHost err = 0 [20:31:06]CheckOFDResponse [20:31:06]1017 (14) - 77093643461234 [20:31:06]1041 (16) - 0000000000871839 [20:31:06]1040 (4) - 228425 [20:31:06]1012 (4) - 22.10.2024 14:28 [20:31:06]1206 (1) - 0 [20:31:06]OFD Sender: Remove packet 228425 [20:31:06]ProducePacketName [20:31:06]name=ofd_packets/00228425 [20:31:06]NVStorageDeleteData [20:31:06]OFD Sender: Processing packet 228426 [packets to send 38, broken 37] [20:31:06]ProducePacketName [20:31:06]name=ofd_packets/00228426 [20:31:06]OFD Sender: To server: pG, [20:31:06]CommunicateWithHost lk.salyk.kg:30040 [20:31:06]ConnectInit lk.salyk.kg [20:31:06]Connected sock=9 [20:31:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 28 01 00 00 9F 39 20 01 F6 6D 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 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 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 2C 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 86 01 00 00 F4 03 04 00 09 0B 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 27 04 04 00 49 7C 03 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4A 7C 03 00 35 04 06 00 FE D6 2B 26 EB F7 C5 1F 91 6B 0F 23 76 04 [20:31:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 E8 F3 47 00 A9 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4A 7C 03 00 F4 03 04 00 80 B6 17 67 B6 04 01 00 00 06 EE C7 75 11 DC 10 9A [20:31:06]CommunicateWithHost err = 0 [20:31:06]CheckOFDResponse [20:31:06]1017 (14) - 77093643461234 [20:31:06]1041 (16) - 0000000000871839 [20:31:06]1040 (4) - 228426 [20:31:06]1012 (4) - 22.10.2024 14:28 [20:31:06]1206 (1) - 0 [20:31:06]OFD Sender: Remove packet 228426 [20:31:06]ProducePacketName [20:31:06]name=ofd_packets/00228426 [20:31:06]NVStorageDeleteData [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]OFD Sender: No OFD packet to send [20:37:02]OFD Sender: No OFD packet to send [20:37:07]OFD Sender: No OFD packet to send [20:37:12]OFD Sender: No OFD packet to send [20:37:17]OFD Sender: No OFD packet to send [20:37:22]OFD Sender: No OFD packet to send [20:37:27]OFD Sender: No OFD packet to send [20:37:32]OFD Sender: No OFD packet to send [20:37:37]OFD Sender: No OFD packet to send [20:37:42]OFD Sender: No OFD packet to send [20:37:47]OFD Sender: No OFD packet to send [20:37:52]OFD Sender: No OFD packet to send [20:37:57]OFD Sender: No OFD packet to send [20:38:02]OFD Sender: No OFD packet to send [20:38:07]OFD Sender: No OFD packet to send [20:38:12]OFD Sender: No OFD packet to send [20:38:17]OFD Sender: No OFD packet to send [20:38:22]OFD Sender: No OFD packet to send [20:38:27]OFD Sender: No OFD packet to send [20:38:32]OFD Sender: No OFD packet to send [20:38:37]OFD Sender: No OFD packet to send [20:38:42]OFD Sender: No OFD packet to send [20:38:47]OFD Sender: No OFD packet to send [20:38:52]OFD Sender: No OFD packet to send [20:38:57]OFD Sender: No OFD packet to send [20:39:02]OFD Sender: No OFD packet to send [20:39:07]OFD Sender: No OFD packet to send [20:39:12]OFD Sender: No OFD packet to send [20:39:17]OFD Sender: No OFD packet to send [20:39:22]OFD Sender: No OFD packet to send [20:39:27]OFD Sender: No OFD packet to send [20:39:32]OFD Sender: No OFD packet to send [20:39:37]OFD Sender: No OFD packet to send [20:39:42]OFD Sender: No OFD packet to send [20:39:47]OFD Sender: No OFD packet to send [20:39:52]OFD Sender: No OFD packet to send [20:39:57]OFD Sender: No OFD packet to send [20:40:02]OFD Sender: No OFD packet to send [20:40:07]OFD Sender: No OFD packet to send [20:40:12]OFD Sender: No OFD packet to send [20:40:17]OFD Sender: No OFD packet to send [20:40:22]OFD Sender: No OFD packet to send [20:40:27]OFD Sender: No OFD packet to send [20:40:32]OFD Sender: No OFD packet to send [20:40:37]OFD Sender: No OFD packet to send [20:40:42]OFD Sender: No OFD packet to send [20:40:47]OFD Sender: No OFD packet to send [20:40:52]OFD Sender: No OFD packet to send [20:40:57]OFD Sender: No OFD packet to send [20:41:02]OFD Sender: No OFD packet to send [20:41:07]OFD Sender: No OFD packet to send [20:41:12]OFD Sender: No OFD packet to send [20:41:17]OFD Sender: No OFD packet to send [20:41:22]OFD Sender: No OFD packet to send [20:41:27]OFD Sender: No OFD packet to send [20:41:32]OFD Sender: No OFD packet to send [20:41:37]OFD Sender: No OFD packet to send [20:41:42]OFD Sender: No OFD packet to send [20:41:47]OFD Sender: No OFD packet to send [20:41:52]OFD Sender: No OFD packet to send [20:41:57]OFD Sender: No OFD packet to send [20:42:02]OFD Sender: No OFD packet to send [20:42:07]OFD Sender: No OFD packet to send [20:42:12]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:08]OFD Sender: No OFD packet to send [20:46:13]OFD Sender: No OFD packet to send [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:33]OFD Sender: No OFD packet to send [20:46:38]OFD Sender: No OFD packet to send [20:46:43]OFD Sender: No OFD packet to send [20:46:48]OFD Sender: No OFD packet to send [20:46:53]OFD Sender: No OFD packet to send [20:46:58]OFD Sender: No OFD packet to send [20:47:03]OFD Sender: No OFD packet to send [20:47:08]OFD Sender: No OFD packet to send [20:47:13]OFD Sender: No OFD packet to send [20:47:18]OFD Sender: No OFD packet to send [20:47:23]OFD Sender: No OFD packet to send [20:47:28]OFD Sender: No OFD packet to send [20:47:33]OFD Sender: No OFD packet to send [20:47:38]OFD Sender: No OFD packet to send [20:47:40]accept exits with 7 [20:47:40]New connection [20:47:40]New thread 3066977636 created [20:47:40]Thread 3066834276 joined [20:47:40]Waiting for new connection... [20:47:40] Sock 7.Parse request [20:47:40]Sock 7.Check first char [20:47:40]Sock 7.First char is OK [20:47:40]request: POST /json_proto HTTP/1.0 [20:47:40]Method: POST [20:47:40]URL: /json_proto [20:47:40]Method is POST - this is cgi request [20:47:40]url: /json_proto [20:47:40]query_string will be loaded in cgi processing [20:47:40]execute_cgi json_proto POST (null) [20:47:40]execute_cgi path=json_proto method=POST [20:47:40]POST find Content-Length [20:47:40]Host: 172.17.44.195:8080 [20:47:40]Content-Length: 677 [20:47:40]Content-Type: application/json [20:47:40] [20:47:40]POST finish read [20:47:40]Found Content-Length = 677 [20:47:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:47:40]execute_script... [20:47: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)1965052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:47:40]POST & json_proto [20:47:40]process_json_proto [20:47:40]json parsed OK: [20:47:40]protocol is kg_v1.0 [20:47:40]action value=close_receipt [20:47:40]process_action close_receipt [20:47:40]cmd_close_receipt [20:47:40]MH_GetDate [20:47:40]Write to MH i2c: F0 00 00 71 01 61 [20:47:40]Write i2c OK [20:47:40]MH_I2C_Read... [20:47:40]Read from MH i2c: F0 [20:47:40]MH_I2C_Read... [20:47:40]Read from MH i2c: F0 09 00 [20:47:40]MH_I2C_Read... [20:47:40]Read from MH i2c: F0 09 00 71 01 00 6C 0F 18 67 82 C9 CF 66 E4 [20:47:40]GetLastDocTimeStamp 1729628937 [20:47:40]current date 1729630060 [20:47:40]FM_GetShiftState [20:47:40]SAM_PROTO_GetShiftState [20:47:40]wFMCommunicate request_size=4 [20:47:40]MH_SAM_APDU [20:47:40]CAPDU: 80 13 01 00 [20:47:40]Write to MH i2c: E2 08 00 72 01 80 13 01 00 00 00 00 00 F0 [20:47:40]Write i2c OK [20:47:40]MH_I2C_Read... [20:47:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:40]Read from MH i2c: E2 [20:47:40]MH_I2C_Read... [20:47:40]Read from MH i2c: E2 0E 00 [20:47:40]MH_I2C_Read... [20:47:40]Read from MH i2c: E2 0E 00 72 01 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 B7 [20:47:40]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [20:47:40]wFMCommunicate OK [20:47:40]SAM_PROTO_GetShiftState done [20:47:40]FM_GetShiftState done [20:47:40]opened in 1729555538 [20:47:40]opened+sec_in_day 1729641938 [20:47:40]quantity*price = 100011 [20:47:40]sum+1 = 100013 [20:47:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 391 22.10.2024 20:47 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228427 ФПД: 116801567423595 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T204740&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228427&fm=116801567423595&tin=02508201610067®Number=0000000000091685&sum=100000 [20:47:41]StoreToDocumentArchive [20:47:41]shift 535 fd 228427 [20:47:41]save to /storage/0535/doc_00228427 [20:47:41]save last doc name /storage/0535/doc_00228427 to /storage/kkm_last_doc_name [20:47:41]save OK [20:47:41]Clear old archive folders... [20:47:41]ProcessDocumentItem done err = 0, tmpTLVsize=245 [20:47:41]tlvbuf is 00306D30 [20:47:41]SAM_PROTO_ClearQueue [20:47:41]wFMCommunicate request_size=4 [20:47:41]MH_SAM_APDU [20:47:41]CAPDU: 80 09 00 00 [20:47:41]Write to MH i2c: E2 08 00 7F 01 80 09 00 00 00 00 00 00 F2 [20:47:41]Write i2c OK [20:47:41]MH_I2C_Read... [20:47:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:47:41]Read from MH i2c: E2 [20:47:41]MH_I2C_Read... [20:47:41]Read from MH i2c: E2 03 00 [20:47:41]MH_I2C_Read... [20:47:41]Read from MH i2c: E2 03 00 7F 01 00 90 00 F4 [20:47:41]RAPDU: 90 00 [20:47:41]wFMCommunicate OK [20:47:41]SAM_PROTO_ClearQueue done [20:47:41]KKMCreateOFDPacket [20:47:41]OFDProtocolAddRootSTLVToBuf [20:47:41]FM_MakeSignedData [20:47:41]FM_MakeSignedData [20:47:41]SAM_PROTO_SignData [20:47:41]wFMCommunicate request_size=4 [20:47:41]MH_SAM_APDU [20:47:41]CAPDU: 80 0D 01 02 [20:47:41]Write to MH i2c: E2 08 00 80 01 80 0D 01 02 00 00 00 00 FA [20:47:41]Write i2c OK [20:47:41]MH_I2C_Read... [20:47:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:47:41]Read from MH i2c: E2 [20:47:41]MH_I2C_Read... [20:47:41]Read from MH i2c: E2 03 00 [20:47:41]MH_I2C_Read... [20:47:41]Read from MH i2c: E2 03 00 80 01 00 90 00 F5 [20:47:41]RAPDU: 90 00 [20:47:41]wFMCommunicate OK [20:47:41]wFMCommunicate request_size=254 [20:47:41]MH_SAM_APDU [20:47:41]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 87 01 00 00 F4 03 04 00 6C 0F 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4B 7C 03 00 35 04 06 00 6A 3A FB EF 7C 6B [20:47:41]Write to MH i2c: E2 01 01 81 01 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 87 01 00 00 F4 03 04 00 6C 0F 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4B 7C 03 00 35 04 06 00 6A 3A FB EF 7C 6B 00 00 3E [20:47:41]Write i2c OK [20:47:41]MH_I2C_Read... [20:47:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:42]Read from MH i2c: E2 [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: E2 03 00 [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: E2 03 00 81 01 00 90 00 F6 [20:47:42]RAPDU: 90 00 [20:47:42]wFMCommunicate OK [20:47:42]wFMCommunicate request_size=4 [20:47:42]MH_SAM_APDU [20:47:42]CAPDU: 80 0D 03 02 [20:47:42]Write to MH i2c: E2 08 00 82 01 80 0D 03 02 00 00 00 00 FE [20:47:42]Write i2c OK [20:47:42]MH_I2C_Read... [20:47:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:47:42]Read from MH i2c: E2 [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: E2 0B 00 [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: E2 0B 00 82 01 00 C1 64 73 99 99 76 B3 62 90 00 54 [20:47:42]RAPDU: C1 64 73 99 99 76 B3 62 90 00 [20:47:42]wFMCommunicate OK [20:47:42]SAM_PROTO_SignData done [20:47:42]FM_MakeSignedData done [20:47:42]CreateOFDProtocolMessage [20:47:42]wFMCommunicate request_size=4 [20:47:42]MH_SAM_APDU [20:47:42]CAPDU: 80 11 00 00 [20:47:42]Write to MH i2c: E2 08 00 83 01 80 11 00 00 00 00 00 00 FE [20:47:42]Write i2c OK [20:47:42]MH_I2C_Read... [20:47:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:42]Read from MH i2c: E2 [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: E2 17 00 [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: E2 17 00 83 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 55 [20:47:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:47:42]wFMCommunicate OK [20:47:42]CreateOFDProtocolMessage done [20:47:42]OFDSenderStorePacket 228427 [20:47:42]StoreOFDPacket docnum=228427 [20:47:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 F7 9B 01 01 16 46 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 87 01 00 00 F4 03 04 00 6C 0F 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4B 7C 03 00 35 04 06 00 6A 3A FB EF 7C 6B C1 64 73 99 99 76 B3 62 [20:47:42]CheckFolder [20:47:42]dirname=/storage/ofd_packets [20:47:42]CheckFolder done [20:47:42]ProducePacketName [20:47:42]name=ofd_packets/00228427 [20:47:42]NVStorageSaveData ofd_packets/00228427 [20:47:42]File name is /storage/ofd_packets/00228427 [20:47:42]Write 295 bytes [20:47:42]NVStorageSaveData done [20:47:42]OFDSenderStorePacket done [20:47:42]KKMCreateOFDPacket done [20:47:42]NVStorageSaveData kkm_last_timestamp [20:47:42]File name is /storage/kkm_last_timestamp [20:47:42]Write 4 bytes [20:47:42]NVStorageSaveData done [20:47:42]ExternCall_PrintAddStr [20:47:42]wPrintStart [20:47:42]Write to MH i2c: 01 00 00 84 01 85 [20:47:42]Write i2c OK [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: 01 [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: 01 07 00 [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: 01 07 00 84 01 00 00 00 00 00 FF 0F 9A [20:47:42]RasterBufferAndPrint [20:47:42]line Счет N : (1)1965052 [20:47:42]line ИНН: 02508201610067 [20:47:42]line Контрольно-Кассовый Чек [20:47:42]line ПРОДАЖА [20:47:42]line ТРК (МРК, ГНК) : 71 [20:47:42]line Товар: 2711129700 [20:47:42]line ГАЗ [20:47:42]line 25.710 * 38.90 [20:47:42]line = 1000.12 [20:47:42]line НДС 12% НСП 1% [20:47:42]line > о реализуемом товаре [20:47:42]line ОКРУГЛЕНИЕ: -0.12 [20:47:42]line ИТОГО: 1000.00 [20:47:42]line Внесено: 1000.00 [20:47:42]line СДАЧА: 0.00 [20:47:42]line НСП 1% : 8.85 [20:47:42]line НДС 12% : 106.21 [20:47:42]line Наличными: 1000.00 [20:47:42]line Безнал.: 0.00 [20:47:42]line Место: АЗС № 133 "Партнер Нефть" [20:47:42]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:47:42]line СНО: Общий режим [20:47:42]line Чек 391 22.10.2024 20:47 [20:47:42]line Смена: 535 ФФД: 1.0 [20:47:42]line ЗНМ: 0300000091 [20:47:42]line РНМ: 0000000000091685 [20:47:42]line Версия ККМ: 001 [20:47:42]line ФМ: 0000000000871839 [20:47:42]line ФД: 228427 [20:47:42]line ФПД: 116801567423595 [20:47:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T204740&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228427&fm=116801567423595&tin=02508201610067®Number=0000000000091685&sum=100000 [20:47:42]OFD Sender: Processing packet 228427 [packets to send 38, broken 37] [20:47:42]ProducePacketName [20:47:42]name=ofd_packets/00228427 [20:47:42]OFD Sender: To server: pG, [20:47:42]CommunicateWithHost lk.salyk.kg:30040 [20:47:42]ConnectInit lk.salyk.kg [20:47:42]written 0, free lines is 4095 [20:47:42]Connected sock=10 [20:47:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 F7 9B 01 01 16 46 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 87 01 00 00 F4 03 04 00 6C 0F 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4B 7C 03 00 35 04 06 00 6A 3A FB EF 7C 6B C1 64 73 99 99 76 B3 62 [20:47:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 FB B9 47 00 99 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4B 7C 03 00 F4 03 04 00 64 BA 17 67 B6 04 01 00 00 24 51 11 55 E2 26 8C 99 [20:47:42]CommunicateWithHost err = 0 [20:47:42]CheckOFDResponse [20:47:42]1017 (14) - 77093643461234 [20:47:42]1041 (16) - 0000000000871839 [20:47:42]1040 (4) - 228427 [20:47:42]1012 (4) - 22.10.2024 14:44 [20:47:42]1206 (1) - 0 [20:47:42]OFD Sender: Remove packet 228427 [20:47:42]ProducePacketName [20:47:42]name=ofd_packets/00228427 [20:47:42]NVStorageDeleteData [20:47:42]Write to MH i2c: 01 00 00 AE 01 AF [20:47:42]Write i2c OK [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: 01 [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: 01 07 00 [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: 01 07 00 AE 01 00 00 00 00 00 A2 0C 64 [20:47:42]RasterBufferAndPrint [20:47:42]line [20:47:42]line [20:47:42]line [20:47:42]line [20:47:42]line [20:47:42]written 0, free lines is 3239 [20:47:42]MH_Cut [20:47:42]Write to MH i2c: D1 01 00 B5 01 01 88 [20:47:42]Write i2c OK [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: D1 [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: D1 01 00 [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: D1 01 00 B5 01 00 87 [20:47:42]Write to MH i2c: 01 00 00 B6 01 B7 [20:47:42]Write i2c OK [20:47:42]MH_I2C_Read... [20:47:43]OFD Sender: No OFD packet to send [20:47:43]*** Cut start [20:47:43]*** Partial cut [20:47:43]*** CUTSNS_PIN = 1 [20:47:43]*** CUTSNS_PIN = 0 [20:47:44]*** Brake cut motor [20:47:44]Read from MH i2c: 01 [20:47:44]MH_I2C_Read... [20:47:44]*** Stop cut motor [20:47:44]*** Cut end [20:47:44]Read from MH i2c: 01 07 00 [20:47:44]MH_I2C_Read... [20:47:44]Read from MH i2c: 01 07 00 B6 01 00 00 00 00 00 FF 0F CC [20:47:44]process_action close_receipt done [20:47:44]requested_data is exist [20:47:44]produce_requested_data [20:47:44]requested_item fm.sn is exist - process it [20:47:44]wFMCommunicate request_size=4 [20:47:44]MH_SAM_APDU [20:47:44]CAPDU: 80 11 00 00 [20:47:44]Write to MH i2c: E2 08 00 B7 01 80 11 00 00 00 00 00 00 32 [20:47:44]Write i2c OK [20:47:44]MH_I2C_Read... [20:47:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:44]Read from MH i2c: E2 [20:47:44]MH_I2C_Read... [20:47:44]Read from MH i2c: E2 17 00 [20:47:44]MH_I2C_Read... [20:47:44]Read from MH i2c: E2 17 00 B7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 89 [20:47:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:47:44]wFMCommunicate OK [20:47:44]requested_item fd.num is exist - process it [20:47:44]SAM_PROTO_GetFieldsCounters [20:47:44]wFMCommunicate request_size=4 [20:47:44]MH_SAM_APDU [20:47:44]CAPDU: 80 13 00 00 [20:47:44]Write to MH i2c: E2 08 00 B8 01 80 13 00 00 00 00 00 00 35 [20:47:44]Write i2c OK [20:47:44]MH_I2C_Read... [20:47:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:47:44]Read from MH i2c: E2 [20:47:44]MH_I2C_Read... [20:47:44]Read from MH i2c: E2 62 00 [20:47:44]MH_I2C_Read... [20:47:44]Read from MH i2c: E2 62 00 B8 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4B 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 87 01 00 00 5E 04 04 00 87 01 00 00 57 04 04 00 88 01 00 00 19 04 04 00 00 00 00 00 90 00 D9 [20:47:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4B 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 87 01 00 00 5E 04 04 00 87 01 00 00 57 04 04 00 88 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:47:44]wFMCommunicate OK [20:47:44]SAM_PROTO_GetFieldsCounters done [20:47:44]requested_item shift.num is exist - process it [20:47:44]requested_item shift.opened is exist - process it [20:47:44]req_shift_opened [20:47:44]FM_GetShiftState [20:47:44]SAM_PROTO_GetShiftState [20:47:44]wFMCommunicate request_size=4 [20:47:44]MH_SAM_APDU [20:47:44]CAPDU: 80 13 01 00 [20:47:44]Write to MH i2c: E2 08 00 B9 01 80 13 01 00 00 00 00 00 37 [20:47:44]Write i2c OK [20:47:44]MH_I2C_Read... [20:47:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:44]Read from MH i2c: E2 [20:47:44]MH_I2C_Read... [20:47:44]Read from MH i2c: E2 0E 00 [20:47:44]MH_I2C_Read... [20:47:44]Read from MH i2c: E2 0E 00 B9 01 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 FE [20:47:44]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [20:47:44]wFMCommunicate OK [20:47:44]SAM_PROTO_GetShiftState done [20:47:44]FM_GetShiftState done [20:47:44]req_shift_opened done [20:47:44]requested_item shift.open_date is exist - process it [20:47:44]req_shift_open_date [20:47:44]req_shift_open_date done [20:47:44]produce_requested_data done [20:47:44]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228427,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [20:47:44]process_action_free close_receipt [20:47:44]json_value_free [20:47:44]json_value_free done [20:47:44]process_json_proto returns [20:47:44]Send response to host [20:47:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228427,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [20:47:44]free response buf [20:47:44]execute_script done [20:47:44]execute_script returns [20:47:44]free content buf [20:47:44]Sock 7.Close socket [20:47:44]Sock 7.Thread stoped [20:47:48]OFD Sender: No OFD packet to send [20:47:53]OFD Sender: No OFD packet to send [20:47:58]OFD Sender: No OFD packet to send [20:48:03]OFD Sender: No OFD packet to send [20:48:08]OFD Sender: No OFD packet to send [20:48:13]OFD Sender: No OFD packet to send [20:48:18]OFD Sender: No OFD packet to send [20:48:23]OFD Sender: No OFD packet to send [20:48:28]OFD Sender: No OFD packet to send [20:48:33]OFD Sender: No OFD packet to send [20:48:38]OFD Sender: No OFD packet to send [20:48:43]OFD Sender: No OFD packet to send [20:48:48]OFD Sender: No OFD packet to send [20:48:53]OFD Sender: No OFD packet to send [20:48:58]OFD Sender: No OFD packet to send [20:49:03]OFD Sender: No OFD packet to send [20:49:08]OFD Sender: No OFD packet to send [20:49:13]OFD Sender: No OFD packet to send [20:49:18]OFD Sender: No OFD packet to send [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:48]OFD Sender: No OFD packet to send [20:50:53]OFD Sender: No OFD packet to send [20:50:58]OFD Sender: No OFD packet to send [20:51:03]OFD Sender: No OFD packet to send [20:51:08]OFD Sender: No OFD packet to send [20:51:13]OFD Sender: No OFD packet to send [20:51:18]OFD Sender: No OFD packet to send [20:51:23]OFD Sender: No OFD packet to send [20:51:28]OFD Sender: No OFD packet to send [20:51:33]OFD Sender: No OFD packet to send [20:51:38]OFD Sender: No OFD packet to send [20:51:43]OFD Sender: No OFD packet to send [20:51:48]OFD Sender: No OFD packet to send [20:51:53]OFD Sender: No OFD packet to send [20:51:58]OFD Sender: No OFD packet to send [20:52:03]accept exits with 9 [20:52:03]New connection [20:52:03]New thread 3066834276 created [20:52:03]Thread 3066977636 joined [20:52:03]Waiting for new connection... [20:52:03] Sock 9.Parse request [20:52:03]Sock 9.Check first char [20:52:03]Sock 9.First char is OK [20:52:03]request: POST /json_proto HTTP/1.0 [20:52:03]Method: POST [20:52:03]URL: /json_proto [20:52:03]Method is POST - this is cgi request [20:52:03]url: /json_proto [20:52:03]query_string will be loaded in cgi processing [20:52:03]execute_cgi json_proto POST (null) [20:52:03]execute_cgi path=json_proto method=POST [20:52:03]POST find Content-Length [20:52:03]Host: 172.17.44.195:8080 [20:52:03]Content-Length: 664 [20:52:03]Content-Type: application/json [20:52:03] [20:52:03]POST finish read [20:52:03]Found Content-Length = 664 [20:52:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 21.930, "sum" : 1500.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:03]execute_script... [20:52: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)1965053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 21.930, "sum" : 1500.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:03]POST & json_proto [20:52:03]process_json_proto [20:52:03]json parsed OK: [20:52:03]protocol is kg_v1.0 [20:52:03]action value=close_receipt [20:52:03]process_action close_receipt [20:52:03]cmd_close_receipt [20:52:03]MH_GetDate [20:52:03]Write to MH i2c: F0 00 00 BA 01 AA [20:52:03]Write i2c OK [20:52:03]MH_I2C_Read... [20:52:03]Read from MH i2c: F0 [20:52:03]MH_I2C_Read... [20:52:03]Read from MH i2c: F0 09 00 [20:52:03]MH_I2C_Read... [20:52:03]Read from MH i2c: F0 09 00 BA 01 00 73 10 18 67 82 C9 CF 66 35 [20:52:03]GetLastDocTimeStamp 1729630060 [20:52:03]current date 1729630323 [20:52:03]FM_GetShiftState [20:52:03]SAM_PROTO_GetShiftState [20:52:03]wFMCommunicate request_size=4 [20:52:03]MH_SAM_APDU [20:52:03]CAPDU: 80 13 01 00 [20:52:03]Write to MH i2c: E2 08 00 BB 01 80 13 01 00 00 00 00 00 39 [20:52:03]Write i2c OK [20:52:03]MH_I2C_Read... [20:52:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:03]Read from MH i2c: E2 [20:52:03]MH_I2C_Read... [20:52:03]Read from MH i2c: E2 0E 00 [20:52:03]MH_I2C_Read... [20:52:03]Read from MH i2c: E2 0E 00 BB 01 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 00 [20:52:03]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [20:52:03]wFMCommunicate OK [20:52:03]SAM_PROTO_GetShiftState done [20:52:03]FM_GetShiftState done [20:52:03]opened in 1729555538 [20:52:03]opened+sec_in_day 1729641938 [20:52:03]quantity*price = 150001 [20:52:03]sum+1 = 150002 [20:52:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.29 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 392 22.10.2024 20:52 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228428 ФПД: 277222765642538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T205203&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228428&fm=277222765642538&tin=02508201610067®Number=0000000000091685&sum=150000 [20:52:04]StoreToDocumentArchive [20:52:04]shift 535 fd 228428 [20:52:04]save to /storage/0535/doc_00228428 [20:52:04]save last doc name /storage/0535/doc_00228428 to /storage/kkm_last_doc_name [20:52:04]save OK [20:52:04]Clear old archive folders... [20:52:04]ProcessDocumentItem done err = 0, tmpTLVsize=244 [20:52:04]tlvbuf is 00308630 [20:52:04]SAM_PROTO_ClearQueue [20:52:04]wFMCommunicate request_size=4 [20:52:04]MH_SAM_APDU [20:52:04]CAPDU: 80 09 00 00 [20:52:04]Write to MH i2c: E2 08 00 C8 01 80 09 00 00 00 00 00 00 3B [20:52:04]Write i2c OK [20:52:04]MH_I2C_Read... [20:52:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:52:04]Read from MH i2c: E2 [20:52:04]MH_I2C_Read... [20:52:04]Read from MH i2c: E2 03 00 [20:52:04]MH_I2C_Read... [20:52:04]Read from MH i2c: E2 03 00 C8 01 00 90 00 3D [20:52:04]RAPDU: 90 00 [20:52:04]wFMCommunicate OK [20:52:04]SAM_PROTO_ClearQueue done [20:52:04]KKMCreateOFDPacket [20:52:04]OFDProtocolAddRootSTLVToBuf [20:52:04]FM_MakeSignedData [20:52:04]FM_MakeSignedData [20:52:04]SAM_PROTO_SignData [20:52:04]wFMCommunicate request_size=4 [20:52:04]MH_SAM_APDU [20:52:04]CAPDU: 80 0D 01 02 [20:52:04]Write to MH i2c: E2 08 00 C9 01 80 0D 01 02 00 00 00 00 43 [20:52:04]Write i2c OK [20:52:04]MH_I2C_Read... [20:52:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:52:04]Read from MH i2c: E2 [20:52:04]MH_I2C_Read... [20:52:04]Read from MH i2c: E2 03 00 [20:52:04]MH_I2C_Read... [20:52:04]Read from MH i2c: E2 03 00 C9 01 00 90 00 3E [20:52:04]RAPDU: 90 00 [20:52:04]wFMCommunicate OK [20:52:04]wFMCommunicate request_size=253 [20:52:04]MH_SAM_APDU [20:52:04]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 01 00 00 F4 03 04 00 73 10 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4C 7C 03 00 35 04 06 00 FC 21 F4 78 43 2A [20:52:04]Write to MH i2c: E2 00 01 CA 01 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 01 00 00 F4 03 04 00 73 10 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4C 7C 03 00 35 04 06 00 FC 21 F4 78 43 2A 00 00 96 [20:52:04]Write i2c OK [20:52:04]MH_I2C_Read... [20:52:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:04]Read from MH i2c: E2 [20:52:04]MH_I2C_Read... [20:52:04]Read from MH i2c: E2 03 00 [20:52:04]MH_I2C_Read... [20:52:04]Read from MH i2c: E2 03 00 CA 01 00 90 00 3F [20:52:04]RAPDU: 90 00 [20:52:04]wFMCommunicate OK [20:52:04]wFMCommunicate request_size=4 [20:52:04]MH_SAM_APDU [20:52:04]CAPDU: 80 0D 03 02 [20:52:04]Write to MH i2c: E2 08 00 CB 01 80 0D 03 02 00 00 00 00 47 [20:52:04]Write i2c OK [20:52:04]MH_I2C_Read... [20:52:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:52:04]Read from MH i2c: E2 [20:52:04]MH_I2C_Read... [20:52:05]Read from MH i2c: E2 0B 00 [20:52:05]MH_I2C_Read... [20:52:05]Read from MH i2c: E2 0B 00 CB 01 00 84 BC 8B 0B 7F 23 50 42 90 00 52 [20:52:05]RAPDU: 84 BC 8B 0B 7F 23 50 42 90 00 [20:52:05]wFMCommunicate OK [20:52:05]SAM_PROTO_SignData done [20:52:05]FM_MakeSignedData done [20:52:05]CreateOFDProtocolMessage [20:52:05]wFMCommunicate request_size=4 [20:52:05]MH_SAM_APDU [20:52:05]CAPDU: 80 11 00 00 [20:52:05]Write to MH i2c: E2 08 00 CC 01 80 11 00 00 00 00 00 00 47 [20:52:05]Write i2c OK [20:52:05]MH_I2C_Read... [20:52:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:05]Read from MH i2c: E2 [20:52:05]MH_I2C_Read... [20:52:05]Read from MH i2c: E2 17 00 [20:52:05]MH_I2C_Read... [20:52:05]Read from MH i2c: E2 17 00 CC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9E [20:52:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:52:05]wFMCommunicate OK [20:52:05]CreateOFDProtocolMessage done [20:52:05]OFDSenderStorePacket 228428 [20:52:05]StoreOFDPacket docnum=228428 [20:52:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 B2 0B 00 01 02 27 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 01 00 00 F4 03 04 00 73 10 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4C 7C 03 00 35 04 06 00 FC 21 F4 78 43 2A 84 BC 8B 0B 7F 23 50 42 [20:52:05]CheckFolder [20:52:05]dirname=/storage/ofd_packets [20:52:05]CheckFolder done [20:52:05]ProducePacketName [20:52:05]name=ofd_packets/00228428 [20:52:05]NVStorageSaveData ofd_packets/00228428 [20:52:05]File name is /storage/ofd_packets/00228428 [20:52:05]Write 294 bytes [20:52:05]NVStorageSaveData done [20:52:05]OFDSenderStorePacket done [20:52:05]KKMCreateOFDPacket done [20:52:05]NVStorageSaveData kkm_last_timestamp [20:52:05]File name is /storage/kkm_last_timestamp [20:52:05]Write 4 bytes [20:52:05]NVStorageSaveData done [20:52:05]ExternCall_PrintAddStr [20:52:05]wPrintStart [20:52:05]Write to MH i2c: 01 00 00 CD 01 CE [20:52:05]Write i2c OK [20:52:05]MH_I2C_Read... [20:52:05]Read from MH i2c: 01 [20:52:05]MH_I2C_Read... [20:52:05]Read from MH i2c: 01 07 00 [20:52:05]MH_I2C_Read... [20:52:05]Read from MH i2c: 01 07 00 CD 01 00 00 00 00 00 FF 0F E3 [20:52:05]RasterBufferAndPrint [20:52:05]line Счет N : (1)1965053 [20:52:05]line ИНН: 02508201610067 [20:52:05]line Контрольно-Кассовый Чек [20:52:05]line ПРОДАЖА [20:52:05]line ТРК (МРК, ГНК) : 32 [20:52:05]line Товар: 2710124130 [20:52:05]line SU-92 [20:52:05]line 21.930 * 68.40 [20:52:05]line = 1500.01 [20:52:05]line НДС 12% НСП 1% [20:52:05]line > о реализуемом товаре [20:52:05]line ОКРУГЛЕНИЕ: -0.01 [20:52:05]line ИТОГО: 1500.00 [20:52:05]line Внесено: 1500.00 [20:52:05]line СДАЧА: 0.00 [20:52:05]line НСП 1% : 13.27 [20:52:05]line НДС 12% : 159.29 [20:52:05]line Наличными: 1500.00 [20:52:05]line Безнал.: 0.00 [20:52:05]line Место: АЗС № 133 "Партнер Нефть" [20:52:05]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:52:05]line СНО: Общий режим [20:52:05]line Чек 392 22.10.2024 20:52 [20:52:05]line Смена: 535 ФФД: 1.0 [20:52:05]line ЗНМ: 0300000091 [20:52:05]line РНМ: 0000000000091685 [20:52:05]line Версия ККМ: 001 [20:52:05]line ФМ: 0000000000871839 [20:52:05]line ФД: 228428 [20:52:05]line ФПД: 277222765642538 [20:52:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T205203&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228428&fm=277222765642538&tin=02508201610067®Number=0000000000091685&sum=150000 [20:52:05]OFD Sender: Processing packet 228428 [packets to send 38, broken 37] [20:52:05]ProducePacketName [20:52:05]name=ofd_packets/00228428 [20:52:05]OFD Sender: To server: pG, [20:52:05]CommunicateWithHost lk.salyk.kg:30040 [20:52:05]ConnectInit lk.salyk.kg [20:52:05]written 0, free lines is 4095 [20:52:05]Connected sock=10 [20:52:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 B2 0B 00 01 02 27 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 01 00 00 F4 03 04 00 73 10 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4C 7C 03 00 35 04 06 00 FC 21 F4 78 43 2A 84 BC 8B 0B 7F 23 50 42 [20:52:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 E2 11 47 00 2F 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4C 7C 03 00 F4 03 04 00 6A BB 17 67 B6 04 01 00 00 F8 67 EF 15 ED 31 12 E9 [20:52:05]CommunicateWithHost err = 0 [20:52:05]CheckOFDResponse [20:52:05]1017 (14) - 77093643461234 [20:52:05]1041 (16) - 0000000000871839 [20:52:05]1040 (4) - 228428 [20:52:05]1012 (4) - 22.10.2024 14:49 [20:52:05]1206 (1) - 0 [20:52:05]OFD Sender: Remove packet 228428 [20:52:05]ProducePacketName [20:52:05]name=ofd_packets/00228428 [20:52:05]NVStorageDeleteData [20:52:05]Write to MH i2c: 01 00 00 F7 01 F8 [20:52:05]Write i2c OK [20:52:05]MH_I2C_Read... [20:52:05]Read from MH i2c: 01 [20:52:05]MH_I2C_Read... [20:52:05]Read from MH i2c: 01 07 00 [20:52:05]MH_I2C_Read... [20:52:05]Read from MH i2c: 01 07 00 F7 01 00 00 00 00 00 AA 0C B5 [20:52:05]RasterBufferAndPrint [20:52:05]line [20:52:05]line [20:52:05]line [20:52:05]line [20:52:05]line [20:52:05]written 0, free lines is 3247 [20:52:05]MH_Cut [20:52:05]Write to MH i2c: D1 01 00 FE 01 01 D1 [20:52:05]Write i2c OK [20:52:05]MH_I2C_Read... [20:52:05]Read from MH i2c: D1 [20:52:05]MH_I2C_Read... [20:52:05]Read from MH i2c: D1 01 00 [20:52:05]MH_I2C_Read... [20:52:05]Read from MH i2c: D1 01 00 FE 01 00 D0 [20:52:05]Write to MH i2c: 01 00 00 FF 01 00 [20:52:05]Write i2c OK [20:52:05]MH_I2C_Read... [20:52:06]OFD Sender: No OFD packet to send [20:52:06]*** Cut start [20:52:06]*** Partial cut [20:52:06]*** CUTSNS_PIN = 1 [20:52:06]*** CUTSNS_PIN = 0 [20:52:07]*** Brake cut motor [20:52:07]Read from MH i2c: 01 [20:52:07]MH_I2C_Read... [20:52:07]*** Stop cut motor [20:52:07]*** Cut end [20:52:07]Read from MH i2c: 01 07 00 [20:52:07]MH_I2C_Read... [20:52:07]Read from MH i2c: 01 07 00 FF 01 00 00 00 00 00 FF 0F 15 [20:52:07]process_action close_receipt done [20:52:07]requested_data is exist [20:52:07]produce_requested_data [20:52:07]requested_item fm.sn is exist - process it [20:52:07]wFMCommunicate request_size=4 [20:52:07]MH_SAM_APDU [20:52:07]CAPDU: 80 11 00 00 [20:52:07]Write to MH i2c: E2 08 00 00 02 80 11 00 00 00 00 00 00 7C [20:52:07]Write i2c OK [20:52:07]MH_I2C_Read... [20:52:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:07]Read from MH i2c: E2 [20:52:07]MH_I2C_Read... [20:52:07]Read from MH i2c: E2 17 00 [20:52:07]MH_I2C_Read... [20:52:07]Read from MH i2c: E2 17 00 00 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D3 [20:52:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:52:07]wFMCommunicate OK [20:52:07]requested_item fd.num is exist - process it [20:52:07]SAM_PROTO_GetFieldsCounters [20:52:07]wFMCommunicate request_size=4 [20:52:07]MH_SAM_APDU [20:52:07]CAPDU: 80 13 00 00 [20:52:07]Write to MH i2c: E2 08 00 01 02 80 13 00 00 00 00 00 00 7F [20:52:07]Write i2c OK [20:52:07]MH_I2C_Read... [20:52:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:52:07]Read from MH i2c: E2 [20:52:07]MH_I2C_Read... [20:52:07]Read from MH i2c: E2 62 00 [20:52:07]MH_I2C_Read... [20:52:07]Read from MH i2c: E2 62 00 01 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4C 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 88 01 00 00 5E 04 04 00 88 01 00 00 57 04 04 00 89 01 00 00 19 04 04 00 00 00 00 00 90 00 27 [20:52:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4C 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 88 01 00 00 5E 04 04 00 88 01 00 00 57 04 04 00 89 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:52:07]wFMCommunicate OK [20:52:07]SAM_PROTO_GetFieldsCounters done [20:52:07]requested_item shift.num is exist - process it [20:52:07]requested_item shift.opened is exist - process it [20:52:07]req_shift_opened [20:52:07]FM_GetShiftState [20:52:07]SAM_PROTO_GetShiftState [20:52:07]wFMCommunicate request_size=4 [20:52:07]MH_SAM_APDU [20:52:07]CAPDU: 80 13 01 00 [20:52:07]Write to MH i2c: E2 08 00 02 02 80 13 01 00 00 00 00 00 81 [20:52:07]Write i2c OK [20:52:07]MH_I2C_Read... [20:52:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:07]Read from MH i2c: E2 [20:52:07]MH_I2C_Read... [20:52:07]Read from MH i2c: E2 0E 00 [20:52:07]MH_I2C_Read... [20:52:07]Read from MH i2c: E2 0E 00 02 02 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 48 [20:52:07]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [20:52:07]wFMCommunicate OK [20:52:07]SAM_PROTO_GetShiftState done [20:52:07]FM_GetShiftState done [20:52:07]req_shift_opened done [20:52:07]requested_item shift.open_date is exist - process it [20:52:07]req_shift_open_date [20:52:07]req_shift_open_date done [20:52:07]produce_requested_data done [20:52:07]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228428,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [20:52:07]process_action_free close_receipt [20:52:07]json_value_free [20:52:07]json_value_free done [20:52:07]process_json_proto returns [20:52:07]Send response to host [20:52:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228428,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [20:52:07]free response buf [20:52:07]execute_script done [20:52:07]execute_script returns [20:52:07]free content buf [20:52:07]Sock 9.Close socket [20:52:07]Sock 9.Thread stoped [20:52:11]OFD Sender: No OFD packet to send [20:52:16]OFD Sender: No OFD packet to send [20:52:21]OFD Sender: No OFD packet to send [20:52:26]OFD Sender: No OFD packet to send [20:52:31]OFD Sender: No OFD packet to send [20:52:36]OFD Sender: No OFD packet to send [20:52:41]OFD Sender: No OFD packet to send [20:52:46]OFD Sender: No OFD packet to send [20:52:51]OFD Sender: No OFD packet to send [20:52:56]OFD Sender: No OFD packet to send [20:53:01]OFD Sender: No OFD packet to send [20:53:06]OFD Sender: No OFD packet to send [20:53:11]OFD Sender: No OFD packet to send [20:53:16]OFD Sender: No OFD packet to send [20:53:21]OFD Sender: No OFD packet to send [20:53:26]OFD Sender: No OFD packet to send [20:53:31]OFD Sender: No OFD packet to send [20:53:36]OFD Sender: No OFD packet to send [20:53:41]OFD Sender: No OFD packet to send [20:53:46]OFD Sender: No OFD packet to send [20:53:51]OFD Sender: No OFD packet to send [20:53:56]OFD Sender: No OFD packet to send [20:54:01]OFD Sender: No OFD packet to send [20:54:06]OFD Sender: No OFD packet to send [20:54:11]OFD Sender: No OFD packet to send [20:54:16]OFD Sender: No OFD packet to send [20:54:21]OFD Sender: No OFD packet to send [20:54:26]OFD Sender: No OFD packet to send [20:54:31]OFD Sender: No OFD packet to send [20:54:36]OFD Sender: No OFD packet to send [20:54:41]OFD Sender: No OFD packet to send [20:54:46]OFD Sender: No OFD packet to send [20:54:51]OFD Sender: No OFD packet to send [20:54:56]OFD Sender: No OFD packet to send [20:55:01]OFD Sender: No OFD packet to send [20:55:06]OFD Sender: No OFD packet to send [20:55:11]OFD Sender: No OFD packet to send [20:55:16]OFD Sender: No OFD packet to send [20:55:21]OFD Sender: No OFD packet to send [20:55:26]OFD Sender: No OFD packet to send [20:55:31]OFD Sender: No OFD packet to send [20:55:36]OFD Sender: No OFD packet to send [20:55:41]OFD Sender: No OFD packet to send [20:55:46]OFD Sender: No OFD packet to send [20:55:51]OFD Sender: No OFD packet to send [20:55:56]OFD Sender: No OFD packet to send [20:56:01]OFD Sender: No OFD packet to send [20:56:06]OFD Sender: No OFD packet to send [20:56:11]OFD Sender: No OFD packet to send [20:56:16]OFD Sender: No OFD packet to send [20:56:21]OFD Sender: No OFD packet to send [20:56:26]OFD Sender: No OFD packet to send [20:56:31]OFD Sender: No OFD packet to send [20:56:36]OFD Sender: No OFD packet to send [20:56:41]OFD Sender: No OFD packet to send [20:56:46]OFD Sender: No OFD packet to send [20:56:51]OFD Sender: No OFD packet to send [20:56:56]OFD Sender: No OFD packet to send [20:57:01]OFD Sender: No OFD packet to send [20:57:06]OFD Sender: No OFD packet to send [20:57:11]OFD Sender: No OFD packet to send [20:57:16]OFD Sender: No OFD packet to send [20:57:21]OFD Sender: No OFD packet to send [20:57:26]OFD Sender: No OFD packet to send [20:57:31]OFD Sender: No OFD packet to send [20:57:36]OFD Sender: No OFD packet to send [20:57:41]OFD Sender: No OFD packet to send [20:57:46]OFD Sender: No OFD packet to send [20:57:51]OFD Sender: No OFD packet to send [20:57:56]OFD Sender: No OFD packet to send [20:58:01]OFD Sender: No OFD packet to send [20:58:06]OFD Sender: No OFD packet to send [20:58:11]OFD Sender: No OFD packet to send [20:58:16]OFD Sender: No OFD packet to send [20:58:21]OFD Sender: No OFD packet to send [20:58:26]OFD Sender: No OFD packet to send [20:58:31]OFD Sender: No OFD packet to send [20:58:36]OFD Sender: No OFD packet to send [20:58:41]OFD Sender: No OFD packet to send [20:58:46]OFD Sender: No OFD packet to send [20:58:51]OFD Sender: No OFD packet to send [20:58:56]OFD Sender: No OFD packet to send [20:59:01]OFD Sender: No OFD packet to send [20:59:06]OFD Sender: No OFD packet to send [20:59:11]OFD Sender: No OFD packet to send [20:59:16]OFD Sender: No OFD packet to send [20:59:21]OFD Sender: No OFD packet to send [20:59:26]OFD Sender: No OFD packet to send [20:59:31]OFD Sender: No OFD packet to send [20:59:36]OFD Sender: No OFD packet to send [20:59:41]OFD Sender: No OFD packet to send [20:59:46]OFD Sender: No OFD packet to send [20:59:51]OFD Sender: No OFD packet to send [20:59:56]OFD Sender: No OFD packet to send [21:00:01]OFD Sender: No OFD packet to send [21:00:06]OFD Sender: No OFD packet to send [21:00:11]OFD Sender: No OFD packet to send [21:00:16]OFD Sender: No OFD packet to send [21:00:21]OFD Sender: No OFD packet to send [21:00:26]OFD Sender: No OFD packet to send [21:00:31]OFD Sender: No OFD packet to send [21:00:41]OFD Sender: No OFD packet to send [21:00:46]OFD Sender: No OFD packet to send [21:00:51]OFD Sender: No OFD packet to send [21:00:56]OFD Sender: No OFD packet to send [21:01:01]OFD Sender: No OFD packet to send [21:01:06]OFD Sender: No OFD packet to send [21:01:11]OFD Sender: No OFD packet to send [21:01:16]OFD Sender: No OFD packet to send [21:01:21]OFD Sender: No OFD packet to send [21:01:26]OFD Sender: No OFD packet to send [21:01:31]OFD Sender: No OFD packet to send [21:01:36]OFD Sender: No OFD packet to send [21:01:41]OFD Sender: No OFD packet to send [21:01:46]OFD Sender: No OFD packet to send [21:01:51]OFD Sender: No OFD packet to send [21:01:56]OFD Sender: No OFD packet to send [21:02:01]OFD Sender: No OFD packet to send [21:02:06]OFD Sender: No OFD packet to send [21:02:11]OFD Sender: No OFD packet to send [21:02:16]OFD Sender: No OFD packet to send [21:02:21]OFD Sender: No OFD packet to send [21:02:26]OFD Sender: No OFD packet to send [21:02:31]OFD Sender: No OFD packet to send [21:02:36]OFD Sender: No OFD packet to send [21:02:41]OFD Sender: No OFD packet to send [21:02:46]OFD Sender: No OFD packet to send [21:02:50]ConnectInit Can't connect to host [21:02:51]OFD Sender: No OFD packet to send [21:02:56]OFD Sender: No OFD packet to send [21:03:01]OFD Sender: No OFD packet to send [21:03:06]OFD Sender: No OFD packet to send [21:03:11]OFD Sender: No OFD packet to send [21:03:16]OFD Sender: No OFD packet to send [21:03:21]OFD Sender: No OFD packet to send [21:03:26]OFD Sender: No OFD packet to send [21:03:31]OFD Sender: No OFD packet to send [21:03:36]OFD Sender: No OFD packet to send [21:03:41]OFD Sender: No OFD packet to send [21:03:46]OFD Sender: No OFD packet to send [21:03:51]OFD Sender: No OFD packet to send [21:03:56]OFD Sender: No OFD packet to send [21:04:01]OFD Sender: No OFD packet to send [21:04:06]OFD Sender: No OFD packet to send [21:04:11]OFD Sender: No OFD packet to send [21:04:16]OFD Sender: No OFD packet to send [21:04:21]OFD Sender: No OFD packet to send [21:04:26]OFD Sender: No OFD packet to send [21:04:31]OFD Sender: No OFD packet to send [21:04:36]OFD Sender: No OFD packet to send [21:04:41]OFD Sender: No OFD packet to send [21:04:46]OFD Sender: No OFD packet to send [21:04:51]OFD Sender: No OFD packet to send [21:04:56]OFD Sender: No OFD packet to send [21:05:01]OFD Sender: No OFD packet to send [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:12]OFD Sender: No OFD packet to send [21:07:17]OFD Sender: No OFD packet to send [21:07:22]OFD Sender: No OFD packet to send [21:07:27]OFD Sender: No OFD packet to send [21:07:32]OFD Sender: No OFD packet to send [21:07:37]OFD Sender: No OFD packet to send [21:07:42]OFD Sender: No OFD packet to send [21:07:47]OFD Sender: No OFD packet to send [21:07:52]OFD Sender: No OFD packet to send [21:07:57]OFD Sender: No OFD packet to send [21:08:02]OFD Sender: No OFD packet to send [21:08:07]OFD Sender: No OFD packet to send [21:08:12]OFD Sender: No OFD packet to send [21:08:17]OFD Sender: No OFD packet to send [21:08:22]OFD Sender: No OFD packet to send [21:08:27]OFD Sender: No OFD packet to send [21:08:32]OFD Sender: No OFD packet to send [21:08:37]OFD Sender: No OFD packet to send [21:08:42]OFD Sender: No OFD packet to send [21:08:47]OFD Sender: No OFD packet to send [21:08:52]OFD Sender: No OFD packet to send [21:08:57]OFD Sender: No OFD packet to send [21:09:02]OFD Sender: No OFD packet to send [21:09:07]OFD Sender: No OFD packet to send [21:09:12]OFD Sender: No OFD packet to send [21:09:17]OFD Sender: No OFD packet to send [21:09:22]OFD Sender: No OFD packet to send [21:09:27]OFD Sender: No OFD packet to send [21:09:32]OFD Sender: No OFD packet to send [21:09:37]OFD Sender: No OFD packet to send [21:09:42]OFD Sender: No OFD packet to send [21:09:47]OFD Sender: No OFD packet to send [21:09:52]OFD Sender: No OFD packet to send [21:09:57]OFD Sender: No OFD packet to send [21:10:02]OFD Sender: No OFD packet to send [21:10:07]OFD Sender: No OFD packet to send [21:10:12]OFD Sender: No OFD packet to send [21:10:17]OFD Sender: No OFD packet to send [21:10:22]OFD Sender: No OFD packet to send [21:10:27]OFD Sender: No OFD packet to send [21:10:32]OFD Sender: No OFD packet to send [21:10:37]OFD Sender: No OFD packet to send [21:10:42]OFD Sender: No OFD packet to send [21:10:47]OFD Sender: No OFD packet to send [21:10:52]OFD Sender: No OFD packet to send [21:10:57]OFD Sender: No OFD packet to send [21:11:02]OFD Sender: No OFD packet to send [21:11:07]OFD Sender: No OFD packet to send [21:11:12]OFD Sender: No OFD packet to send [21:11:17]OFD Sender: No OFD packet to send [21:11:22]OFD Sender: No OFD packet to send [21:11:27]OFD Sender: No OFD packet to send [21:11:32]OFD Sender: No OFD packet to send [21:11:37]OFD Sender: No OFD packet to send [21:11:42]OFD Sender: No OFD packet to send [21:11:47]OFD Sender: No OFD packet to send [21:11:52]OFD Sender: No OFD packet to send [21:11:57]OFD Sender: No OFD packet to send [21:12:02]OFD Sender: No OFD packet to send [21:12:07]OFD Sender: No OFD packet to send [21:12:12]OFD Sender: No OFD packet to send [21:12:17]OFD Sender: No OFD packet to send [21:12:22]OFD Sender: No OFD packet to send [21:12:27]OFD Sender: No OFD packet to send [21:12:32]OFD Sender: No OFD packet to send [21:12:37]OFD Sender: No OFD packet to send [21:12:42]OFD Sender: No OFD packet to send [21:12:47]OFD Sender: No OFD packet to send [21:12:52]OFD Sender: No OFD packet to send [21:12:57]OFD Sender: No OFD packet to send [21:13:02]OFD Sender: No OFD packet to send [21:13:07]OFD Sender: No OFD packet to send [21:13:12]OFD Sender: No OFD packet to send [21:13:17]OFD Sender: No OFD packet to send [21:13:22]OFD Sender: No OFD packet to send [21:13:27]OFD Sender: No OFD packet to send [21:13:32]OFD Sender: No OFD packet to send [21:13:37]OFD Sender: No OFD packet to send [21:13:42]OFD Sender: No OFD packet to send [21:13:47]OFD Sender: No OFD packet to send [21:13:52]OFD Sender: No OFD packet to send [21:13:57]OFD Sender: No OFD packet to send [21:14:02]OFD Sender: No OFD packet to send [21:14:07]OFD Sender: No OFD packet to send [21:14:12]OFD Sender: No OFD packet to send [21:14:17]OFD Sender: No OFD packet to send [21:14:22]OFD Sender: No OFD packet to send [21:14:27]OFD Sender: No OFD packet to send [21:14:32]OFD Sender: No OFD packet to send [21:14:37]OFD Sender: No OFD packet to send [21:14:42]OFD Sender: No OFD packet to send [21:14:47]OFD Sender: No OFD packet to send [21:14:52]OFD Sender: No OFD packet to send [21:14:57]OFD Sender: No OFD packet to send [21:15:02]OFD Sender: No OFD packet to send [21:15:07]OFD Sender: No OFD packet to send [21:15:12]OFD Sender: No OFD packet to send [21:15:17]OFD Sender: No OFD packet to send [21:15:22]OFD Sender: No OFD packet to send [21:15:27]OFD Sender: No OFD packet to send [21:15:32]OFD Sender: No OFD packet to send [21:15:37]OFD Sender: No OFD packet to send [21:15:42]OFD Sender: No OFD packet to send [21:15:47]OFD Sender: No OFD packet to send [21:15:52]OFD Sender: No OFD packet to send [21:15:57]OFD Sender: No OFD packet to send [21:16:02]OFD Sender: No OFD packet to send [21:16:07]OFD Sender: No OFD packet to send [21:16:12]OFD Sender: No OFD packet to send [21:16:17]OFD Sender: No OFD packet to send [21:16:22]OFD Sender: No OFD packet to send [21:16:27]OFD Sender: No OFD packet to send [21:16:32]OFD Sender: No OFD packet to send [21:16:37]OFD Sender: No OFD packet to send [21:16:42]OFD Sender: No OFD packet to send [21:16:47]OFD Sender: No OFD packet to send [21:16:52]OFD Sender: No OFD packet to send [21:16:57]OFD Sender: No OFD packet to send [21:17:02]OFD Sender: No OFD packet to send [21:17:07]OFD Sender: No OFD packet to send [21:17:12]OFD Sender: No OFD packet to send [21:17:17]OFD Sender: No OFD packet to send [21:17:22]OFD Sender: No OFD packet to send [21:17:27]OFD Sender: No OFD packet to send [21:17:32]OFD Sender: No OFD packet to send [21:17:37]OFD Sender: No OFD packet to send [21:17:42]OFD Sender: No OFD packet to send [21:17:47]OFD Sender: No OFD packet to send [21:17:52]OFD Sender: No OFD packet to send [21:17:57]OFD Sender: No OFD packet to send [21:18:02]OFD Sender: No OFD packet to send [21:18:07]OFD Sender: No OFD packet to send [21:18:12]OFD Sender: No OFD packet to send [21:18:17]OFD Sender: No OFD packet to send [21:18:22]OFD Sender: No OFD packet to send [21:18:27]OFD Sender: No OFD packet to send [21:18:32]OFD Sender: No OFD packet to send [21:18:37]OFD Sender: No OFD packet to send [21:18:42]OFD Sender: No OFD packet to send [21:18:47]OFD Sender: No OFD packet to send [21:18:52]OFD Sender: No OFD packet to send [21:18:57]OFD Sender: No OFD packet to send [21:19:02]OFD Sender: No OFD packet to send [21:19:07]OFD Sender: No OFD packet to send [21:19:12]OFD Sender: No OFD packet to send [21:19:17]OFD Sender: No OFD packet to send [21:19:22]OFD Sender: No OFD packet to send [21:19:27]OFD Sender: No OFD packet to send [21:19:32]OFD Sender: No OFD packet to send [21:19:37]OFD Sender: No OFD packet to send [21:19:42]OFD Sender: No OFD packet to send [21:19:47]OFD Sender: No OFD packet to send [21:19:52]OFD Sender: No OFD packet to send [21:19:57]OFD Sender: No OFD packet to send [21:20:02]OFD Sender: No OFD packet to send [21:20:07]OFD Sender: No OFD packet to send [21:20:12]OFD Sender: No OFD packet to send [21:20:17]OFD Sender: No OFD packet to send [21:20:22]OFD Sender: No OFD packet to send [21:20:27]OFD Sender: No OFD packet to send [21:20:32]OFD Sender: No OFD packet to send [21:20:37]OFD Sender: No OFD packet to send [21:20:42]OFD Sender: No OFD packet to send [21:20:47]OFD Sender: No OFD packet to send [21:20:52]OFD Sender: No OFD packet to send [21:20:57]OFD Sender: No OFD packet to send [21:21:02]OFD Sender: No OFD packet to send [21:21:07]OFD Sender: No OFD packet to send [21:21:12]OFD Sender: No OFD packet to send [21:21:17]OFD Sender: No OFD packet to send [21:21:22]OFD Sender: No OFD packet to send [21:21:27]OFD Sender: No OFD packet to send [21:21:32]OFD Sender: No OFD packet to send [21:21:37]OFD Sender: No OFD packet to send [21:21:42]OFD Sender: No OFD packet to send [21:21:47]OFD Sender: No OFD packet to send [21:21:52]OFD Sender: No OFD packet to send [21:21:57]OFD Sender: No OFD packet to send [21:22:02]OFD Sender: No OFD packet to send [21:22:07]OFD Sender: No OFD packet to send [21:22:12]OFD Sender: No OFD packet to send [21:22:17]OFD Sender: No OFD packet to send [21:22:22]OFD Sender: No OFD packet to send [21:22:27]OFD Sender: No OFD packet to send [21:22:32]OFD Sender: No OFD packet to send [21:22:37]OFD Sender: No OFD packet to send [21:22:42]OFD Sender: No OFD packet to send [21:22:47]OFD Sender: No OFD packet to send [21:22:52]OFD Sender: No OFD packet to send [21:22:57]OFD Sender: No OFD packet to send [21:23:02]OFD Sender: No OFD packet to send [21:23:07]OFD Sender: No OFD packet to send [21:23:12]OFD Sender: No OFD packet to send [21:23:17]OFD Sender: No OFD packet to send [21:23:22]OFD Sender: No OFD packet to send [21:23:27]OFD Sender: No OFD packet to send [21:23:32]OFD Sender: No OFD packet to send [21:23:37]OFD Sender: No OFD packet to send [21:23:42]OFD Sender: No OFD packet to send [21:23:47]OFD Sender: No OFD packet to send [21:23:52]OFD Sender: No OFD packet to send [21:23:57]OFD Sender: No OFD packet to send [21:24:02]OFD Sender: No OFD packet to send [21:24:07]OFD Sender: No OFD packet to send [21:24:12]OFD Sender: No OFD packet to send [21:24:17]OFD Sender: No OFD packet to send [21:24:22]OFD Sender: No OFD packet to send [21:24:27]OFD Sender: No OFD packet to send [21:24:32]OFD Sender: No OFD packet to send [21:24:37]OFD Sender: No OFD packet to send [21:24:42]OFD Sender: No OFD packet to send [21:24:47]OFD Sender: No OFD packet to send [21:24:52]OFD Sender: No OFD packet to send [21:24:57]OFD Sender: No OFD packet to send [21:25:02]OFD Sender: No OFD packet to send [21:25:07]OFD Sender: No OFD packet to send [21:25:12]OFD Sender: No OFD packet to send [21:25:17]OFD Sender: No OFD packet to send [21:25:22]OFD Sender: No OFD packet to send [21:25:27]OFD Sender: No OFD packet to send [21:25:33]OFD Sender: No OFD packet to send [21:25:38]OFD Sender: No OFD packet to send [21:25:43]OFD Sender: No OFD packet to send [21:25:48]OFD Sender: No OFD packet to send [21:25:53]OFD Sender: No OFD packet to send [21:25:58]OFD Sender: No OFD packet to send [21:26:03]OFD Sender: No OFD packet to send [21:26:08]OFD Sender: No OFD packet to send [21:26:13]OFD Sender: No OFD packet to send [21:26:18]OFD Sender: No OFD packet to send [21:26:23]OFD Sender: No OFD packet to send [21:26:28]OFD Sender: No OFD packet to send [21:26:33]OFD Sender: No OFD packet to send [21:26:38]OFD Sender: No OFD packet to send [21:26:43]OFD Sender: No OFD packet to send [21:26:48]OFD Sender: No OFD packet to send [21:26:53]OFD Sender: No OFD packet to send [21:26:58]OFD Sender: No OFD packet to send [21:27:03]OFD Sender: No OFD packet to send [21:27:08]OFD Sender: No OFD packet to send [21:27:13]OFD Sender: No OFD packet to send [21:27:18]OFD Sender: No OFD packet to send [21:27:23]OFD Sender: No OFD packet to send [21:27:28]OFD Sender: No OFD packet to send [21:27:33]OFD Sender: No OFD packet to send [21:27:38]OFD Sender: No OFD packet to send [21:27:43]OFD Sender: No OFD packet to send [21:27:48]OFD Sender: No OFD packet to send [21:27:53]OFD Sender: No OFD packet to send [21:27:58]OFD Sender: No OFD packet to send [21:28:03]OFD Sender: No OFD packet to send [21:28:08]OFD Sender: No OFD packet to send [21:28:13]OFD Sender: No OFD packet to send [21:28:18]OFD Sender: No OFD packet to send [21:28:23]OFD Sender: No OFD packet to send [21:28:28]OFD Sender: No OFD packet to send [21:28:33]OFD Sender: No OFD packet to send [21:28:38]OFD Sender: No OFD packet to send [21:28:43]OFD Sender: No OFD packet to send [21:28:48]OFD Sender: No OFD packet to send [21:28:53]OFD Sender: No OFD packet to send [21:28:58]OFD Sender: No OFD packet to send [21:29:03]OFD Sender: No OFD packet to send [21:29:08]OFD Sender: No OFD packet to send [21:29:13]OFD Sender: No OFD packet to send [21:29:18]OFD Sender: No OFD packet to send [21:29:23]OFD Sender: No OFD packet to send [21:29:28]OFD Sender: No OFD packet to send [21:29:33]OFD Sender: No OFD packet to send [21:29:38]OFD Sender: No OFD packet to send [21:29:43]OFD Sender: No OFD packet to send [21:29:48]OFD Sender: No OFD packet to send [21:29:53]OFD Sender: No OFD packet to send [21:29:58]OFD Sender: No OFD packet to send [21:30:03]OFD Sender: No OFD packet to send [21:30:08]OFD Sender: No OFD packet to send [21:30:13]OFD Sender: No OFD packet to send [21:30:18]OFD Sender: No OFD packet to send [21:30:23]OFD Sender: No OFD packet to send [21:30:28]OFD Sender: No OFD packet to send [21:30:33]OFD Sender: No OFD packet to send [21:30:38]OFD Sender: No OFD packet to send [21:30:43]OFD Sender: No OFD packet to send [21:30:48]OFD Sender: No OFD packet to send [21:30:53]OFD Sender: No OFD packet to send [21:30:58]OFD Sender: No OFD packet to send [21:31:03]OFD Sender: No OFD packet to send [21:31:08]OFD Sender: No OFD packet to send [21:31:13]OFD Sender: No OFD packet to send [21:31:18]OFD Sender: No OFD packet to send [21:31:23]OFD Sender: No OFD packet to send [21:31:28]OFD Sender: No OFD packet to send [21:31:33]OFD Sender: No OFD packet to send [21:31:38]OFD Sender: No OFD packet to send [21:31:43]OFD Sender: No OFD packet to send [21:31:48]OFD Sender: No OFD packet to send [21:31:53]OFD Sender: No OFD packet to send [21:31:58]OFD Sender: No OFD packet to send [21:32:03]OFD Sender: No OFD packet to send [21:32:08]OFD Sender: No OFD packet to send [21:32:13]OFD Sender: No OFD packet to send [21:32:18]OFD Sender: No OFD packet to send [21:32:23]OFD Sender: No OFD packet to send [21:32:25]accept exits with 7 [21:32:25]New connection [21:32:25]New thread 3066977636 created [21:32:25]Thread 3066834276 joined [21:32:25]Waiting for new connection... [21:32:25] Sock 7.Parse request [21:32:25]Sock 7.Check first char [21:32:25]Sock 7.First char is OK [21:32:25]request: POST /json_proto HTTP/1.0 [21:32:25]Method: POST [21:32:25]URL: /json_proto [21:32:25]Method is POST - this is cgi request [21:32:25]url: /json_proto [21:32:25]query_string will be loaded in cgi processing [21:32:25]execute_cgi json_proto POST (null) [21:32:25]execute_cgi path=json_proto method=POST [21:32:25]POST find Content-Length [21:32:25]Host: 172.17.44.195:8080 [21:32:25]Content-Length: 675 [21:32:25]Content-Type: application/json [21:32:25] [21:32:25]POST finish read [21:32:25]Found Content-Length = 675 [21:32:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965073", "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" : 76.20, "quantity" : 9.850, "sum" : 750.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:32:25]execute_script... [21:32: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)1965073", "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" : 76.20, "quantity" : 9.850, "sum" : 750.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:32:25]POST & json_proto [21:32:25]process_json_proto [21:32:25]json parsed OK: [21:32:25]protocol is kg_v1.0 [21:32:25]action value=close_receipt [21:32:25]process_action close_receipt [21:32:25]cmd_close_receipt [21:32:25]MH_GetDate [21:32:25]Write to MH i2c: F0 00 00 03 02 F4 [21:32:25]Write i2c OK [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: F0 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: F0 09 00 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: F0 09 00 03 02 00 EA 19 18 67 82 C9 CF 66 FF [21:32:25]GetLastDocTimeStamp 1729630323 [21:32:25]current date 1729632746 [21:32:25]FM_GetShiftState [21:32:25]SAM_PROTO_GetShiftState [21:32:25]wFMCommunicate request_size=4 [21:32:25]MH_SAM_APDU [21:32:25]CAPDU: 80 13 01 00 [21:32:25]Write to MH i2c: E2 08 00 04 02 80 13 01 00 00 00 00 00 83 [21:32:25]Write i2c OK [21:32:25]MH_I2C_Read... [21:32:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:25]Read from MH i2c: E2 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: E2 0E 00 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: E2 0E 00 04 02 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 4A [21:32:25]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [21:32:25]wFMCommunicate OK [21:32:25]SAM_PROTO_GetShiftState done [21:32:25]FM_GetShiftState done [21:32:25]opened in 1729555538 [21:32:25]opened+sec_in_day 1729641938 [21:32:25]quantity*price = 75057 [21:32:25]sum+1 = 75058 [21:32:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.71 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 393 22.10.2024 21:32 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228429 ФПД: 56876942762674 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T213226&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228429&fm=56876942762674&tin=02508201610067®Number=0000000000091685&sum=75000 [21:32:26]StoreToDocumentArchive [21:32:26]shift 535 fd 228429 [21:32:26]save to /storage/0535/doc_00228429 [21:32:26]save last doc name /storage/0535/doc_00228429 to /storage/kkm_last_doc_name [21:32:26]save OK [21:32:26]Clear old archive folders... [21:32:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:32:26]tlvbuf is 003058F0 [21:32:26]SAM_PROTO_ClearQueue [21:32:26]wFMCommunicate request_size=4 [21:32:26]MH_SAM_APDU [21:32:26]CAPDU: 80 09 00 00 [21:32:26]Write to MH i2c: E2 08 00 11 02 80 09 00 00 00 00 00 00 85 [21:32:26]Write i2c OK [21:32:26]MH_I2C_Read... [21:32:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:32:26]Read from MH i2c: E2 [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: E2 03 00 [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: E2 03 00 11 02 00 90 00 87 [21:32:26]RAPDU: 90 00 [21:32:26]wFMCommunicate OK [21:32:26]SAM_PROTO_ClearQueue done [21:32:26]KKMCreateOFDPacket [21:32:26]OFDProtocolAddRootSTLVToBuf [21:32:26]FM_MakeSignedData [21:32:26]FM_MakeSignedData [21:32:26]SAM_PROTO_SignData [21:32:26]wFMCommunicate request_size=4 [21:32:26]MH_SAM_APDU [21:32:26]CAPDU: 80 0D 01 02 [21:32:26]Write to MH i2c: E2 08 00 12 02 80 0D 01 02 00 00 00 00 8D [21:32:26]Write i2c OK [21:32:26]MH_I2C_Read... [21:32:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:32:27]Read from MH i2c: E2 [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: E2 03 00 [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: E2 03 00 12 02 00 90 00 88 [21:32:27]RAPDU: 90 00 [21:32:27]wFMCommunicate OK [21:32:27]wFMCommunicate request_size=255 [21:32:27]MH_SAM_APDU [21:32: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 7A 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 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 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 01 00 00 F4 03 04 00 EA 19 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4D 7C 03 00 35 04 06 00 33 BA B1 F8 [21:32:27]Write to MH i2c: E2 02 01 13 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 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 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 01 00 00 F4 03 04 00 EA 19 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4D 7C 03 00 35 04 06 00 33 BA B1 F8 00 00 67 [21:32:27]Write i2c OK [21:32:27]MH_I2C_Read... [21:32:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:27]Read from MH i2c: E2 [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: E2 03 00 [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: E2 03 00 13 02 00 90 00 89 [21:32:27]RAPDU: 90 00 [21:32:27]wFMCommunicate OK [21:32:27]wFMCommunicate request_size=7 [21:32:27]MH_SAM_APDU [21:32:27]CAPDU: 80 0D 02 02 02 22 B2 [21:32:27]Write to MH i2c: E2 0A 00 14 02 80 0D 02 02 02 00 22 B2 00 00 68 [21:32:27]Write i2c OK [21:32:27]MH_I2C_Read... [21:32:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:27]Read from MH i2c: E2 [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: E2 03 00 [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: E2 03 00 14 02 00 90 00 8A [21:32:27]RAPDU: 90 00 [21:32:27]wFMCommunicate OK [21:32:27]wFMCommunicate request_size=4 [21:32:27]MH_SAM_APDU [21:32:27]CAPDU: 80 0D 03 02 [21:32:27]Write to MH i2c: E2 08 00 15 02 80 0D 03 02 00 00 00 00 92 [21:32:27]Write i2c OK [21:32:27]MH_I2C_Read... [21:32:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:32:27]Read from MH i2c: E2 [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: E2 0B 00 [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: E2 0B 00 15 02 00 BD E6 B8 08 6C AA 3A 83 90 00 C9 [21:32:27]RAPDU: BD E6 B8 08 6C AA 3A 83 90 00 [21:32:27]wFMCommunicate OK [21:32:27]SAM_PROTO_SignData done [21:32:27]FM_MakeSignedData done [21:32:27]CreateOFDProtocolMessage [21:32:27]wFMCommunicate request_size=4 [21:32:27]MH_SAM_APDU [21:32:27]CAPDU: 80 11 00 00 [21:32:27]Write to MH i2c: E2 08 00 16 02 80 11 00 00 00 00 00 00 92 [21:32:27]Write i2c OK [21:32:27]MH_I2C_Read... [21:32:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:27]Read from MH i2c: E2 [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: E2 17 00 [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: E2 17 00 16 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E9 [21:32:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:32:27]wFMCommunicate OK [21:32:27]CreateOFDProtocolMessage done [21:32:27]OFDSenderStorePacket 228429 [21:32:27]StoreOFDPacket docnum=228429 [21:32:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 39 63 04 01 11 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 7A 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 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 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 01 00 00 F4 03 04 00 EA 19 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4D 7C 03 00 35 04 06 00 33 BA B1 F8 22 B2 BD E6 B8 08 6C AA 3A 83 [21:32:27]CheckFolder [21:32:27]dirname=/storage/ofd_packets [21:32:27]CheckFolder done [21:32:27]ProducePacketName [21:32:27]name=ofd_packets/00228429 [21:32:27]NVStorageSaveData ofd_packets/00228429 [21:32:27]File name is /storage/ofd_packets/00228429 [21:32:27]Write 298 bytes [21:32:27]NVStorageSaveData done [21:32:27]OFDSenderStorePacket done [21:32:27]KKMCreateOFDPacket done [21:32:27]NVStorageSaveData kkm_last_timestamp [21:32:27]File name is /storage/kkm_last_timestamp [21:32:27]Write 4 bytes [21:32:27]NVStorageSaveData done [21:32:27]ExternCall_PrintAddStr [21:32:27]wPrintStart [21:32:27]Write to MH i2c: 01 00 00 17 02 19 [21:32:27]Write i2c OK [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: 01 [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: 01 07 00 [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: 01 07 00 17 02 00 00 00 00 00 FF 0F 2E [21:32:27]RasterBufferAndPrint [21:32:27]line Счет N : (1)1965073 [21:32:27]line ИНН: 02508201610067 [21:32:27]line Контрольно-Кассовый Чек [21:32:27]line ПРОДАЖА [21:32:27]line ТРК (МРК, ГНК) : 21 [21:32:27]line Товар: 2710194210 [21:32:27]line ДТ-К-5 [21:32:27]line 9.850 * 76.20 [21:32:27]line = 750.57 [21:32:27]line НДС 12% НСП 1% [21:32:27]line > о реализуемом товаре [21:32:27]line ОКРУГЛЕНИЕ: -0.57 [21:32:27]line ИТОГО: 750.00 [21:32:27]line Внесено: 750.00 [21:32:27]line СДАЧА: 0.00 [21:32:27]line НСП 1% : 6.64 [21:32:27]line НДС 12% : 79.71 [21:32:27]line Наличными: 750.00 [21:32:27]line Безнал.: 0.00 [21:32:27]line Место: АЗС № 133 "Партнер Нефть" [21:32:27]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:32:27]line СНО: Общий режим [21:32:27]line Чек 393 22.10.2024 21:32 [21:32:27]line Смена: 535 ФФД: 1.0 [21:32:27]line ЗНМ: 0300000091 [21:32:27]line РНМ: 0000000000091685 [21:32:27]line Версия ККМ: 001 [21:32:27]line ФМ: 0000000000871839 [21:32:27]line ФД: 228429 [21:32:27]line ФПД: 56876942762674 [21:32:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T213226&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228429&fm=56876942762674&tin=02508201610067®Number=0000000000091685&sum=75000 [21:32:27]OFD Sender: Processing packet 228429 [packets to send 38, broken 37] [21:32:27]ProducePacketName [21:32:27]name=ofd_packets/00228429 [21:32:27]OFD Sender: To server: pG, [21:32:27]CommunicateWithHost lk.salyk.kg:30040 [21:32:27]ConnectInit lk.salyk.kg [21:32:27]written 0, free lines is 4095 [21:32:27]Connected sock=10 [21:32:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 39 63 04 01 11 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 7A 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 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 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 01 00 00 F4 03 04 00 EA 19 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4D 7C 03 00 35 04 06 00 33 BA B1 F8 22 B2 BD E6 B8 08 6C AA 3A 83 [21:32:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 DF AE 47 00 66 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4D 7C 03 00 F4 03 04 00 E1 C4 17 67 B6 04 01 00 00 EA 32 DD 08 28 23 EF 7E [21:32:28]CommunicateWithHost err = 0 [21:32:28]CheckOFDResponse [21:32:28]1017 (14) - 77093643461234 [21:32:28]1041 (16) - 0000000000871839 [21:32:28]1040 (4) - 228429 [21:32:28]1012 (4) - 22.10.2024 15:29 [21:32:28]1206 (1) - 0 [21:32:28]OFD Sender: Remove packet 228429 [21:32:28]ProducePacketName [21:32:28]name=ofd_packets/00228429 [21:32:28]NVStorageDeleteData [21:32:28]Write to MH i2c: 01 00 00 41 02 43 [21:32:28]Write i2c OK [21:32:28]MH_I2C_Read... [21:32:28]Read from MH i2c: 01 [21:32:28]MH_I2C_Read... [21:32:28]Read from MH i2c: 01 07 00 [21:32:28]MH_I2C_Read... [21:32:28]Read from MH i2c: 01 07 00 41 02 00 00 00 00 00 A3 0C F9 [21:32:28]RasterBufferAndPrint [21:32:28]line [21:32:28]line [21:32:28]line [21:32:28]line [21:32:28]line [21:32:28]written 0, free lines is 3240 [21:32:28]MH_Cut [21:32:28]Write to MH i2c: D1 01 00 48 02 01 1C [21:32:28]Write i2c OK [21:32:28]MH_I2C_Read... [21:32:28]Read from MH i2c: D1 [21:32:28]MH_I2C_Read... [21:32:28]Read from MH i2c: D1 01 00 [21:32:28]MH_I2C_Read... [21:32:28]Read from MH i2c: D1 01 00 48 02 00 1B [21:32:28]Write to MH i2c: 01 00 00 49 02 4B [21:32:28]Write i2c OK [21:32:28]MH_I2C_Read... [21:32:28]OFD Sender: No OFD packet to send [21:32:29]*** Cut start [21:32:29]*** Partial cut [21:32:29]*** CUTSNS_PIN = 1 [21:32:29]*** CUTSNS_PIN = 0 [21:32:29]*** Brake cut motor [21:32:29]Read from MH i2c: 01 [21:32:29]MH_I2C_Read... [21:32:29]*** Stop cut motor [21:32:29]*** Cut end [21:32:29]Read from MH i2c: 01 07 00 [21:32:29]MH_I2C_Read... [21:32:29]Read from MH i2c: 01 07 00 49 02 00 00 00 00 00 FF 0F 60 [21:32:29]process_action close_receipt done [21:32:29]requested_data is exist [21:32:29]produce_requested_data [21:32:29]requested_item fm.sn is exist - process it [21:32:29]wFMCommunicate request_size=4 [21:32:29]MH_SAM_APDU [21:32:29]CAPDU: 80 11 00 00 [21:32:29]Write to MH i2c: E2 08 00 4A 02 80 11 00 00 00 00 00 00 C6 [21:32:29]Write i2c OK [21:32:29]MH_I2C_Read... [21:32:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:29]Read from MH i2c: E2 [21:32:29]MH_I2C_Read... [21:32:29]Read from MH i2c: E2 17 00 [21:32:29]MH_I2C_Read... [21:32:29]Read from MH i2c: E2 17 00 4A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1D [21:32:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:32:29]wFMCommunicate OK [21:32:29]requested_item fd.num is exist - process it [21:32:29]SAM_PROTO_GetFieldsCounters [21:32:29]wFMCommunicate request_size=4 [21:32:29]MH_SAM_APDU [21:32:29]CAPDU: 80 13 00 00 [21:32:29]Write to MH i2c: E2 08 00 4B 02 80 13 00 00 00 00 00 00 C9 [21:32:29]Write i2c OK [21:32:29]MH_I2C_Read... [21:32:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:32:30]Read from MH i2c: E2 [21:32:30]MH_I2C_Read... [21:32:30]Read from MH i2c: E2 62 00 [21:32:30]MH_I2C_Read... [21:32:30]Read from MH i2c: E2 62 00 4B 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4D 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 89 01 00 00 5E 04 04 00 89 01 00 00 57 04 04 00 8A 01 00 00 19 04 04 00 00 00 00 00 90 00 75 [21:32:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4D 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 89 01 00 00 5E 04 04 00 89 01 00 00 57 04 04 00 8A 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:32:30]wFMCommunicate OK [21:32:30]SAM_PROTO_GetFieldsCounters done [21:32:30]requested_item shift.num is exist - process it [21:32:30]requested_item shift.opened is exist - process it [21:32:30]req_shift_opened [21:32:30]FM_GetShiftState [21:32:30]SAM_PROTO_GetShiftState [21:32:30]wFMCommunicate request_size=4 [21:32:30]MH_SAM_APDU [21:32:30]CAPDU: 80 13 01 00 [21:32:30]Write to MH i2c: E2 08 00 4C 02 80 13 01 00 00 00 00 00 CB [21:32:30]Write i2c OK [21:32:30]MH_I2C_Read... [21:32:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:30]Read from MH i2c: E2 [21:32:30]MH_I2C_Read... [21:32:30]Read from MH i2c: E2 0E 00 [21:32:30]MH_I2C_Read... [21:32:30]Read from MH i2c: E2 0E 00 4C 02 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 92 [21:32:30]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [21:32:30]wFMCommunicate OK [21:32:30]SAM_PROTO_GetShiftState done [21:32:30]FM_GetShiftState done [21:32:30]req_shift_opened done [21:32:30]requested_item shift.open_date is exist - process it [21:32:30]req_shift_open_date [21:32:30]req_shift_open_date done [21:32:30]produce_requested_data done [21:32:30]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228429,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [21:32:30]process_action_free close_receipt [21:32:30]json_value_free [21:32:30]json_value_free done [21:32:30]process_json_proto returns [21:32:30]Send response to host [21:32:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228429,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [21:32:30]free response buf [21:32:30]execute_script done [21:32:30]execute_script returns [21:32:30]free content buf [21:32:30]Sock 7.Close socket [21:32:30]Sock 7.Thread stoped [21:32:33]OFD Sender: No OFD packet to send [21:32:38]OFD Sender: No OFD packet to send [21:32:43]OFD Sender: No OFD packet to send [21:32:48]OFD Sender: No OFD packet to send [21:32:53]OFD Sender: No OFD packet to send [21:32:58]OFD Sender: No OFD packet to send [21:33:03]OFD Sender: No OFD packet to send [21:33:08]OFD Sender: No OFD packet to send [21:33:13]OFD Sender: No OFD packet to send [21:33:18]OFD Sender: No OFD packet to send [21:33:23]OFD Sender: No OFD packet to send [21:33:28]OFD Sender: No OFD packet to send [21:33:33]OFD Sender: No OFD packet to send [21:33:38]OFD Sender: No OFD packet to send [21:33:43]OFD Sender: No OFD packet to send [21:33:48]OFD Sender: No OFD packet to send [21:33:53]OFD Sender: No OFD packet to send [21:33:58]OFD Sender: No OFD packet to send [21:34:03]OFD Sender: No OFD packet to send [21:34:08]OFD Sender: No OFD packet to send [21:34:13]OFD Sender: No OFD packet to send [21:34:18]OFD Sender: No OFD packet to send [21:34:23]OFD Sender: No OFD packet to send [21:34:28]OFD Sender: No OFD packet to send [21:34:33]OFD Sender: No OFD packet to send [21:34:38]OFD Sender: No OFD packet to send [21:34:43]OFD Sender: No OFD packet to send [21:34:48]OFD Sender: No OFD packet to send [21:34:53]OFD Sender: No OFD packet to send [21:34:58]OFD Sender: No OFD packet to send [21:35:03]OFD Sender: No OFD packet to send [21:35:08]OFD Sender: No OFD packet to send [21:35:13]OFD Sender: No OFD packet to send [21:35:18]OFD Sender: No OFD packet to send [21:35:19]accept exits with 9 [21:35:19]New connection [21:35:19]New thread 3066834276 created [21:35:19]Thread 3066977636 joined [21:35:19]Waiting for new connection... [21:35:19] Sock 9.Parse request [21:35:19]Sock 9.Check first char [21:35:19]Sock 9.First char is OK [21:35:19]request: POST /json_proto HTTP/1.0 [21:35:19]Method: POST [21:35:19]URL: /json_proto [21:35:19]Method is POST - this is cgi request [21:35:19]url: /json_proto [21:35:19]query_string will be loaded in cgi processing [21:35:19]execute_cgi json_proto POST (null) [21:35:19]execute_cgi path=json_proto method=POST [21:35:19]POST find Content-Length [21:35:19]Host: 172.17.44.195:8080 [21:35:19]Content-Length: 678 [21:35:19]Content-Type: application/json [21:35:19] [21:35:19]POST finish read [21:35:19]Found Content-Length = 678 [21:35:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965074", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:35:19]execute_script... [21:35: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)1965074", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:35:19]POST & json_proto [21:35:19]process_json_proto [21:35:19]json parsed OK: [21:35:19]protocol is kg_v1.0 [21:35:19]action value=close_receipt [21:35:19]process_action close_receipt [21:35:19]cmd_close_receipt [21:35:19]MH_GetDate [21:35:19]Write to MH i2c: F0 00 00 4D 02 3E [21:35:19]Write i2c OK [21:35:19]MH_I2C_Read... [21:35:19]Read from MH i2c: F0 [21:35:19]MH_I2C_Read... [21:35:19]Read from MH i2c: F0 09 00 [21:35:19]MH_I2C_Read... [21:35:19]Read from MH i2c: F0 09 00 4D 02 00 97 1A 18 67 82 C9 CF 66 F7 [21:35:19]GetLastDocTimeStamp 1729632746 [21:35:19]current date 1729632919 [21:35:19]FM_GetShiftState [21:35:19]SAM_PROTO_GetShiftState [21:35:19]wFMCommunicate request_size=4 [21:35:19]MH_SAM_APDU [21:35:19]CAPDU: 80 13 01 00 [21:35:19]Write to MH i2c: E2 08 00 4E 02 80 13 01 00 00 00 00 00 CD [21:35:19]Write i2c OK [21:35:19]MH_I2C_Read... [21:35:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:19]Read from MH i2c: E2 [21:35:19]MH_I2C_Read... [21:35:19]Read from MH i2c: E2 0E 00 [21:35:19]MH_I2C_Read... [21:35:19]Read from MH i2c: E2 0E 00 4E 02 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 94 [21:35:19]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [21:35:19]wFMCommunicate OK [21:35:19]SAM_PROTO_GetShiftState done [21:35:19]FM_GetShiftState done [21:35:19]opened in 1729555538 [21:35:19]opened+sec_in_day 1729641938 [21:35:19]quantity*price = 50041 [21:35:19]sum+1 = 50042 [21:35:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 394 22.10.2024 21:35 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228430 ФПД: 198558314106576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T213519&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228430&fm=198558314106576&tin=02508201610067®Number=0000000000091685&sum=50000 [21:35:20]StoreToDocumentArchive [21:35:20]shift 535 fd 228430 [21:35:20]save to /storage/0535/doc_00228430 [21:35:20]save last doc name /storage/0535/doc_00228430 to /storage/kkm_last_doc_name [21:35:20]save OK [21:35:20]Clear old archive folders... [21:35:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:35:20]tlvbuf is 002A3E10 [21:35:20]SAM_PROTO_ClearQueue [21:35:20]wFMCommunicate request_size=4 [21:35:20]MH_SAM_APDU [21:35:20]CAPDU: 80 09 00 00 [21:35:20]Write to MH i2c: E2 08 00 5B 02 80 09 00 00 00 00 00 00 CF [21:35:20]Write i2c OK [21:35:20]MH_I2C_Read... [21:35:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:35:20]Read from MH i2c: E2 [21:35:20]MH_I2C_Read... [21:35:20]Read from MH i2c: E2 03 00 [21:35:20]MH_I2C_Read... [21:35:20]Read from MH i2c: E2 03 00 5B 02 00 90 00 D1 [21:35:20]RAPDU: 90 00 [21:35:20]wFMCommunicate OK [21:35:20]SAM_PROTO_ClearQueue done [21:35:20]KKMCreateOFDPacket [21:35:20]OFDProtocolAddRootSTLVToBuf [21:35:20]FM_MakeSignedData [21:35:20]FM_MakeSignedData [21:35:20]SAM_PROTO_SignData [21:35:20]wFMCommunicate request_size=4 [21:35:20]MH_SAM_APDU [21:35:20]CAPDU: 80 0D 01 02 [21:35:20]Write to MH i2c: E2 08 00 5C 02 80 0D 01 02 00 00 00 00 D7 [21:35:20]Write i2c OK [21:35:20]MH_I2C_Read... [21:35:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:35:20]Read from MH i2c: E2 [21:35:20]MH_I2C_Read... [21:35:20]Read from MH i2c: E2 03 00 [21:35:20]MH_I2C_Read... [21:35:20]Read from MH i2c: E2 03 00 5C 02 00 90 00 D2 [21:35:20]RAPDU: 90 00 [21:35:20]wFMCommunicate OK [21:35:20]wFMCommunicate request_size=255 [21:35:20]MH_SAM_APDU [21:35: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 01 00 00 F4 03 04 00 97 1A 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4E 7C 03 00 35 04 06 00 B4 [21:35:20]Write to MH i2c: E2 02 01 5D 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 01 00 00 F4 03 04 00 97 1A 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4E 7C 03 00 35 04 06 00 B4 00 00 C3 [21:35:20]Write i2c OK [21:35:20]MH_I2C_Read... [21:35:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:20]Read from MH i2c: E2 [21:35:20]MH_I2C_Read... [21:35:20]Read from MH i2c: E2 03 00 [21:35:20]MH_I2C_Read... [21:35:20]Read from MH i2c: E2 03 00 5D 02 00 90 00 D3 [21:35:20]RAPDU: 90 00 [21:35:20]wFMCommunicate OK [21:35:20]wFMCommunicate request_size=10 [21:35:20]MH_SAM_APDU [21:35:20]CAPDU: 80 0D 02 02 05 96 75 C7 8E D0 [21:35:20]Write to MH i2c: E2 0D 00 5E 02 80 0D 02 02 05 00 96 75 C7 8E D0 00 00 14 [21:35:20]Write i2c OK [21:35:20]MH_I2C_Read... [21:35:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:20]Read from MH i2c: E2 [21:35:20]MH_I2C_Read... [21:35:20]Read from MH i2c: E2 03 00 [21:35:20]MH_I2C_Read... [21:35:20]Read from MH i2c: E2 03 00 5E 02 00 90 00 D4 [21:35:20]RAPDU: 90 00 [21:35:20]wFMCommunicate OK [21:35:20]wFMCommunicate request_size=4 [21:35:20]MH_SAM_APDU [21:35:20]CAPDU: 80 0D 03 02 [21:35:20]Write to MH i2c: E2 08 00 5F 02 80 0D 03 02 00 00 00 00 DC [21:35:20]Write i2c OK [21:35:20]MH_I2C_Read... [21:35:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:35:20]Read from MH i2c: E2 [21:35:20]MH_I2C_Read... [21:35:20]Read from MH i2c: E2 0B 00 [21:35:20]MH_I2C_Read... [21:35:20]Read from MH i2c: E2 0B 00 5F 02 00 F8 CC 88 66 78 F9 BF E4 90 00 A3 [21:35:20]RAPDU: F8 CC 88 66 78 F9 BF E4 90 00 [21:35:20]wFMCommunicate OK [21:35:20]SAM_PROTO_SignData done [21:35:20]FM_MakeSignedData done [21:35:20]CreateOFDProtocolMessage [21:35:20]wFMCommunicate request_size=4 [21:35:20]MH_SAM_APDU [21:35:20]CAPDU: 80 11 00 00 [21:35:20]Write to MH i2c: E2 08 00 60 02 80 11 00 00 00 00 00 00 DC [21:35:20]Write i2c OK [21:35:20]MH_I2C_Read... [21:35:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:20]Read from MH i2c: E2 [21:35:20]MH_I2C_Read... [21:35:20]Read from MH i2c: E2 17 00 [21:35:20]MH_I2C_Read... [21:35:20]Read from MH i2c: E2 17 00 60 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 33 [21:35:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:35:20]wFMCommunicate OK [21:35:20]CreateOFDProtocolMessage done [21:35:20]OFDSenderStorePacket 228430 [21:35:20]StoreOFDPacket docnum=228430 [21:35:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 58 DF 07 01 B9 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 01 00 00 F4 03 04 00 97 1A 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4E 7C 03 00 35 04 06 00 B4 96 75 C7 8E D0 F8 CC 88 66 78 F9 BF E4 [21:35:20]CheckFolder [21:35:20]dirname=/storage/ofd_packets [21:35:20]CheckFolder done [21:35:20]ProducePacketName [21:35:20]name=ofd_packets/00228430 [21:35:20]NVStorageSaveData ofd_packets/00228430 [21:35:20]File name is /storage/ofd_packets/00228430 [21:35:20]Write 301 bytes [21:35:20]NVStorageSaveData done [21:35:20]OFDSenderStorePacket done [21:35:20]KKMCreateOFDPacket done [21:35:20]NVStorageSaveData kkm_last_timestamp [21:35:20]File name is /storage/kkm_last_timestamp [21:35:20]Write 4 bytes [21:35:20]NVStorageSaveData done [21:35:20]ExternCall_PrintAddStr [21:35:20]wPrintStart [21:35:20]Write to MH i2c: 01 00 00 61 02 63 [21:35:20]Write i2c OK [21:35:20]MH_I2C_Read... [21:35:20]Read from MH i2c: 01 [21:35:20]MH_I2C_Read... [21:35:20]Read from MH i2c: 01 07 00 [21:35:20]MH_I2C_Read... [21:35:20]Read from MH i2c: 01 07 00 61 02 00 00 00 00 00 FF 0F 78 [21:35:20]RasterBufferAndPrint [21:35:20]line Счет N : (1)1965074 [21:35:20]line ИНН: 02508201610067 [21:35:20]line Контрольно-Кассовый Чек [21:35:20]line ПРОДАЖА [21:35:20]line ТРК (МРК, ГНК) : 63 [21:35:20]line Товар: 2710124130 [21:35:20]line Аи-92-К-5 [21:35:20]line 7.480 * 66.90 [21:35:20]line = 500.41 [21:35:20]line НДС 12% НСП 1% [21:35:20]line > о реализуемом товаре [21:35:20]line ОКРУГЛЕНИЕ: -0.41 [21:35:20]line ИТОГО: 500.00 [21:35:20]line Внесено: 500.00 [21:35:20]line СДАЧА: 0.00 [21:35:20]line НСП 1% : 4.43 [21:35:20]line НДС 12% : 53.14 [21:35:20]line Наличными: 500.00 [21:35:20]line Безнал.: 0.00 [21:35:20]line Место: АЗС № 133 "Партнер Нефть" [21:35:20]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:35:20]line СНО: Общий режим [21:35:20]line Чек 394 22.10.2024 21:35 [21:35:20]line Смена: 535 ФФД: 1.0 [21:35:20]line ЗНМ: 0300000091 [21:35:20]line РНМ: 0000000000091685 [21:35:20]line Версия ККМ: 001 [21:35:20]line ФМ: 0000000000871839 [21:35:20]line ФД: 228430 [21:35:20]line ФПД: 198558314106576 [21:35:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T213519&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228430&fm=198558314106576&tin=02508201610067®Number=0000000000091685&sum=50000 [21:35:21]OFD Sender: Processing packet 228430 [packets to send 38, broken 37] [21:35:21]ProducePacketName [21:35:21]name=ofd_packets/00228430 [21:35:21]OFD Sender: To server: pG, [21:35:21]CommunicateWithHost lk.salyk.kg:30040 [21:35:21]ConnectInit lk.salyk.kg [21:35:21]written 0, free lines is 4095 [21:35:21]Connected sock=10 [21:35:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 58 DF 07 01 B9 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 01 00 00 F4 03 04 00 97 1A 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4E 7C 03 00 35 04 06 00 B4 96 75 C7 8E D0 F8 CC 88 66 78 F9 BF E4 [21:35:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 77 AA 47 00 B7 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4E 7C 03 00 F4 03 04 00 8E C5 17 67 B6 04 01 00 00 AC 2D 63 6E 48 89 27 C9 [21:35:21]CommunicateWithHost err = 0 [21:35:21]CheckOFDResponse [21:35:21]1017 (14) - 77093643461234 [21:35:21]1041 (16) - 0000000000871839 [21:35:21]1040 (4) - 228430 [21:35:21]1012 (4) - 22.10.2024 15:32 [21:35:21]1206 (1) - 0 [21:35:21]OFD Sender: Remove packet 228430 [21:35:21]ProducePacketName [21:35:21]name=ofd_packets/00228430 [21:35:21]NVStorageDeleteData [21:35:21]Write to MH i2c: 01 00 00 8B 02 8D [21:35:21]Write i2c OK [21:35:21]MH_I2C_Read... [21:35:21]Read from MH i2c: 01 [21:35:21]MH_I2C_Read... [21:35:21]Read from MH i2c: 01 07 00 [21:35:21]MH_I2C_Read... [21:35:21]Read from MH i2c: 01 07 00 8B 02 00 00 00 00 00 A7 0C 47 [21:35:21]RasterBufferAndPrint [21:35:21]line [21:35:21]line [21:35:21]line [21:35:21]line [21:35:21]line [21:35:21]written 0, free lines is 3242 [21:35:21]MH_Cut [21:35:21]Write to MH i2c: D1 01 00 92 02 01 66 [21:35:21]Write i2c OK [21:35:21]MH_I2C_Read... [21:35:21]Read from MH i2c: D1 [21:35:21]MH_I2C_Read... [21:35:21]Read from MH i2c: D1 01 00 [21:35:21]MH_I2C_Read... [21:35:21]Read from MH i2c: D1 01 00 92 02 00 65 [21:35:21]Write to MH i2c: 01 00 00 93 02 95 [21:35:21]Write i2c OK [21:35:21]MH_I2C_Read... [21:35:21]OFD Sender: No OFD packet to send [21:35:22]*** Cut start [21:35:22]*** Partial cut [21:35:22]*** CUTSNS_PIN = 1 [21:35:22]*** CUTSNS_PIN = 0 [21:35:22]*** Brake cut motor [21:35:23]Read from MH i2c: 01 [21:35:23]MH_I2C_Read... [21:35:23]*** Stop cut motor [21:35:23]*** Cut end [21:35:23]Read from MH i2c: 01 07 00 [21:35:23]MH_I2C_Read... [21:35:23]Read from MH i2c: 01 07 00 93 02 00 00 00 00 00 FF 0F AA [21:35:23]process_action close_receipt done [21:35:23]requested_data is exist [21:35:23]produce_requested_data [21:35:23]requested_item fm.sn is exist - process it [21:35:23]wFMCommunicate request_size=4 [21:35:23]MH_SAM_APDU [21:35:23]CAPDU: 80 11 00 00 [21:35:23]Write to MH i2c: E2 08 00 94 02 80 11 00 00 00 00 00 00 10 [21:35:23]Write i2c OK [21:35:23]MH_I2C_Read... [21:35:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:23]Read from MH i2c: E2 [21:35:23]MH_I2C_Read... [21:35:23]Read from MH i2c: E2 17 00 [21:35:23]MH_I2C_Read... [21:35:23]Read from MH i2c: E2 17 00 94 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 67 [21:35:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:35:23]wFMCommunicate OK [21:35:23]requested_item fd.num is exist - process it [21:35:23]SAM_PROTO_GetFieldsCounters [21:35:23]wFMCommunicate request_size=4 [21:35:23]MH_SAM_APDU [21:35:23]CAPDU: 80 13 00 00 [21:35:23]Write to MH i2c: E2 08 00 95 02 80 13 00 00 00 00 00 00 13 [21:35:23]Write i2c OK [21:35:23]MH_I2C_Read... [21:35:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:35:23]Read from MH i2c: E2 [21:35:23]MH_I2C_Read... [21:35:23]Read from MH i2c: E2 62 00 [21:35:23]MH_I2C_Read... [21:35:23]Read from MH i2c: E2 62 00 95 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4E 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 8A 01 00 00 5E 04 04 00 8A 01 00 00 57 04 04 00 8B 01 00 00 19 04 04 00 00 00 00 00 90 00 C3 [21:35:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4E 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 8A 01 00 00 5E 04 04 00 8A 01 00 00 57 04 04 00 8B 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:35:23]wFMCommunicate OK [21:35:23]SAM_PROTO_GetFieldsCounters done [21:35:23]requested_item shift.num is exist - process it [21:35:23]requested_item shift.opened is exist - process it [21:35:23]req_shift_opened [21:35:23]FM_GetShiftState [21:35:23]SAM_PROTO_GetShiftState [21:35:23]wFMCommunicate request_size=4 [21:35:23]MH_SAM_APDU [21:35:23]CAPDU: 80 13 01 00 [21:35:23]Write to MH i2c: E2 08 00 96 02 80 13 01 00 00 00 00 00 15 [21:35:23]Write i2c OK [21:35:23]MH_I2C_Read... [21:35:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:23]Read from MH i2c: E2 [21:35:23]MH_I2C_Read... [21:35:23]Read from MH i2c: E2 0E 00 [21:35:23]MH_I2C_Read... [21:35:23]Read from MH i2c: E2 0E 00 96 02 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 DC [21:35:23]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [21:35:23]wFMCommunicate OK [21:35:23]SAM_PROTO_GetShiftState done [21:35:23]FM_GetShiftState done [21:35:23]req_shift_opened done [21:35:23]requested_item shift.open_date is exist - process it [21:35:23]req_shift_open_date [21:35:23]req_shift_open_date done [21:35:23]produce_requested_data done [21:35:23]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228430,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [21:35:23]process_action_free close_receipt [21:35:23]json_value_free [21:35:23]json_value_free done [21:35:23]process_json_proto returns [21:35:23]Send response to host [21:35:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228430,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [21:35:23]free response buf [21:35:23]execute_script done [21:35:23]execute_script returns [21:35:23]free content buf [21:35:23]Sock 9.Close socket [21:35:23]Sock 9.Thread stoped [21:35:26]OFD Sender: No OFD packet to send [21:35:31]OFD Sender: No OFD packet to send [21:35:36]OFD Sender: No OFD packet to send [21:35:41]OFD Sender: No OFD packet to send [21:35:46]OFD Sender: No OFD packet to send [21:35:51]OFD Sender: No OFD packet to send [21:35:56]OFD Sender: No OFD packet to send [21:36:01]OFD Sender: No OFD packet to send [21:36:06]OFD Sender: No OFD packet to send [21:36:11]OFD Sender: No OFD packet to send [21:36:16]OFD Sender: No OFD packet to send [21:36:21]OFD Sender: No OFD packet to send [21:36:26]OFD Sender: No OFD packet to send [21:36:31]OFD Sender: No OFD packet to send [21:36:36]OFD Sender: No OFD packet to send [21:36:41]OFD Sender: No OFD packet to send [21:36:46]OFD Sender: No OFD packet to send [21:36:51]OFD Sender: No OFD packet to send [21:36:56]OFD Sender: No OFD packet to send [21:37:01]OFD Sender: No OFD packet to send [21:37:06]OFD Sender: No OFD packet to send [21:37:11]OFD Sender: No OFD packet to send [21:37:16]OFD Sender: No OFD packet to send [21:37:21]OFD Sender: No OFD packet to send [21:37:26]OFD Sender: No OFD packet to send [21:37:31]OFD Sender: No OFD packet to send [21:37:37]OFD Sender: No OFD packet to send [21:37:42]OFD Sender: No OFD packet to send [21:37:47]OFD Sender: No OFD packet to send [21:37:52]OFD Sender: No OFD packet to send [21:37:57]OFD Sender: No OFD packet to send [21:38:02]OFD Sender: No OFD packet to send [21:38:07]OFD Sender: No OFD packet to send [21:38:12]OFD Sender: No OFD packet to send [21:38:17]OFD Sender: No OFD packet to send [21:38:22]OFD Sender: No OFD packet to send [21:38:27]OFD Sender: No OFD packet to send [21:38:32]OFD Sender: No OFD packet to send [21:38:37]OFD Sender: No OFD packet to send [21:38:42]OFD Sender: No OFD packet to send [21:38:47]OFD Sender: No OFD packet to send [21:38:52]OFD Sender: No OFD packet to send [21:38:57]OFD Sender: No OFD packet to send [21:39:02]OFD Sender: No OFD packet to send [21:39:07]OFD Sender: No OFD packet to send [21:39:12]OFD Sender: No OFD packet to send [21:39:17]OFD Sender: No OFD packet to send [21:39:22]OFD Sender: No OFD packet to send [21:39:27]OFD Sender: No OFD packet to send [21:39:32]OFD Sender: No OFD packet to send [21:39:37]OFD Sender: No OFD packet to send [21:39:42]OFD Sender: No OFD packet to send [21:39:47]OFD Sender: No OFD packet to send [21:39:52]OFD Sender: No OFD packet to send [21:39:57]OFD Sender: No OFD packet to send [21:40:02]OFD Sender: No OFD packet to send [21:40:07]OFD Sender: No OFD packet to send [21:40:12]OFD Sender: No OFD packet to send [21:40:17]OFD Sender: No OFD packet to send [21:40:22]OFD Sender: No OFD packet to send [21:40:27]OFD Sender: No OFD packet to send [21:40:32]OFD Sender: No OFD packet to send [21:40:37]OFD Sender: No OFD packet to send [21:40:42]OFD Sender: No OFD packet to send [21:40:47]OFD Sender: No OFD packet to send [21:40:52]OFD Sender: No OFD packet to send [21:40:57]OFD Sender: No OFD packet to send [21:41:02]OFD Sender: No OFD packet to send [21:41:07]OFD Sender: No OFD packet to send [21:41:12]OFD Sender: No OFD packet to send [21:41:17]OFD Sender: No OFD packet to send [21:41:22]OFD Sender: No OFD packet to send [21:41:27]OFD Sender: No OFD packet to send [21:41:32]OFD Sender: No OFD packet to send [21:41:37]OFD Sender: No OFD packet to send [21:41:42]OFD Sender: No OFD packet to send [21:41:47]OFD Sender: No OFD packet to send [21:41:52]OFD Sender: No OFD packet to send [21:41:57]OFD Sender: No OFD packet to send [21:42:02]OFD Sender: No OFD packet to send [21:42:07]OFD Sender: No OFD packet to send [21:42:12]OFD Sender: No OFD packet to send [21:42:17]OFD Sender: No OFD packet to send [21:42:22]OFD Sender: No OFD packet to send [21:42:27]OFD Sender: No OFD packet to send [21:42:32]OFD Sender: No OFD packet to send [21:42:36]accept exits with 7 [21:42:36]New connection [21:42:36]New thread 3066977636 created [21:42:36]Thread 3066834276 joined [21:42:36]Waiting for new connection... [21:42:36] Sock 7.Parse request [21:42:36]Sock 7.Check first char [21:42:36]Sock 7.First char is OK [21:42:36]request: POST /json_proto HTTP/1.0 [21:42:36]Method: POST [21:42:36]URL: /json_proto [21:42:36]Method is POST - this is cgi request [21:42:36]url: /json_proto [21:42:36]query_string will be loaded in cgi processing [21:42:36]execute_cgi json_proto POST (null) [21:42:36]execute_cgi path=json_proto method=POST [21:42:36]POST find Content-Length [21:42:36]Host: 172.17.44.195:8080 [21:42:36]Content-Length: 675 [21:42:36]Content-Type: application/json [21:42:36] [21:42:36]POST finish read [21:42:36]Found Content-Length = 675 [21:42:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965076", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:42:36]execute_script... [21:42: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)1965076", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:42:36]POST & json_proto [21:42:36]process_json_proto [21:42:36]json parsed OK: [21:42:36]protocol is kg_v1.0 [21:42:36]action value=close_receipt [21:42:36]process_action close_receipt [21:42:36]cmd_close_receipt [21:42:36]MH_GetDate [21:42:36]Write to MH i2c: F0 00 00 97 02 88 [21:42:36]Write i2c OK [21:42:36]MH_I2C_Read... [21:42:36]Read from MH i2c: F0 [21:42:36]MH_I2C_Read... [21:42:36]Read from MH i2c: F0 09 00 [21:42:36]MH_I2C_Read... [21:42:36]Read from MH i2c: F0 09 00 97 02 00 4C 1C 18 67 82 C9 CF 66 F8 [21:42:36]GetLastDocTimeStamp 1729632919 [21:42:36]current date 1729633356 [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 98 02 80 13 01 00 00 00 00 00 17 [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 98 02 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 DE [21:42:36]RAPDU: 09 00 01 52 EC 16 67 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]opened in 1729555538 [21:42:36]opened+sec_in_day 1729641938 [21:42:36]quantity*price = 50063 [21:42:36]sum+1 = 50064 [21:42:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 395 22.10.2024 21:42 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228431 ФПД: 134460590286350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T214236&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228431&fm=134460590286350&tin=02508201610067®Number=0000000000091685&sum=50000 [21:42:37]StoreToDocumentArchive [21:42:37]shift 535 fd 228431 [21:42:37]save to /storage/0535/doc_00228431 [21:42:37]save last doc name /storage/0535/doc_00228431 to /storage/kkm_last_doc_name [21:42:37]save OK [21:42:37]Clear old archive folders... [21:42:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:42:37]tlvbuf is 002E64F0 [21:42:37]SAM_PROTO_ClearQueue [21:42:37]wFMCommunicate request_size=4 [21:42:37]MH_SAM_APDU [21:42:37]CAPDU: 80 09 00 00 [21:42:37]Write to MH i2c: E2 08 00 A5 02 80 09 00 00 00 00 00 00 19 [21:42:37]Write i2c OK [21:42:37]MH_I2C_Read... [21:42:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:42:37]Read from MH i2c: E2 [21:42:37]MH_I2C_Read... [21:42:37]Read from MH i2c: E2 03 00 [21:42:37]MH_I2C_Read... [21:42:37]Read from MH i2c: E2 03 00 A5 02 00 90 00 1B [21:42:37]RAPDU: 90 00 [21:42:37]wFMCommunicate OK [21:42:37]SAM_PROTO_ClearQueue done [21:42:37]KKMCreateOFDPacket [21:42:37]OFDProtocolAddRootSTLVToBuf [21:42:37]FM_MakeSignedData [21:42:37]FM_MakeSignedData [21:42:37]SAM_PROTO_SignData [21:42:37]wFMCommunicate request_size=4 [21:42:37]MH_SAM_APDU [21:42:37]CAPDU: 80 0D 01 02 [21:42:37]Write to MH i2c: E2 08 00 A6 02 80 0D 01 02 00 00 00 00 21 [21:42:37]Write i2c OK [21:42:37]MH_I2C_Read... [21:42:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:42:37]Read from MH i2c: E2 [21:42:37]MH_I2C_Read... [21:42:37]Read from MH i2c: E2 03 00 [21:42:37]MH_I2C_Read... [21:42:37]Read from MH i2c: E2 03 00 A6 02 00 90 00 1C [21:42:37]RAPDU: 90 00 [21:42:37]wFMCommunicate OK [21:42:37]wFMCommunicate request_size=255 [21:42:37]MH_SAM_APDU [21:42:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 01 00 00 F4 03 04 00 4C 1C 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4F 7C 03 00 35 04 06 00 7A 4A 8B B8 [21:42:37]Write to MH i2c: E2 02 01 A7 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 01 00 00 F4 03 04 00 4C 1C 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4F 7C 03 00 35 04 06 00 7A 4A 8B B8 00 00 97 [21:42:37]Write i2c OK [21:42:37]MH_I2C_Read... [21:42:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:37]Read from MH i2c: E2 [21:42:37]MH_I2C_Read... [21:42:37]Read from MH i2c: E2 03 00 [21:42:37]MH_I2C_Read... [21:42:37]Read from MH i2c: E2 03 00 A7 02 00 90 00 1D [21:42:37]RAPDU: 90 00 [21:42:37]wFMCommunicate OK [21:42:37]wFMCommunicate request_size=7 [21:42:37]MH_SAM_APDU [21:42:37]CAPDU: 80 0D 02 02 02 66 0E [21:42:37]Write to MH i2c: E2 0A 00 A8 02 80 0D 02 02 02 00 66 0E 00 00 9C [21:42:37]Write i2c OK [21:42:37]MH_I2C_Read... [21:42:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:37]Read from MH i2c: E2 [21:42:37]MH_I2C_Read... [21:42:37]Read from MH i2c: E2 03 00 [21:42:37]MH_I2C_Read... [21:42:37]Read from MH i2c: E2 03 00 A8 02 00 90 00 1E [21:42:37]RAPDU: 90 00 [21:42:37]wFMCommunicate OK [21:42:37]wFMCommunicate request_size=4 [21:42:37]MH_SAM_APDU [21:42:37]CAPDU: 80 0D 03 02 [21:42:37]Write to MH i2c: E2 08 00 A9 02 80 0D 03 02 00 00 00 00 26 [21:42:37]Write i2c OK [21:42:37]MH_I2C_Read... [21:42:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:42:38]Read from MH i2c: E2 [21:42:38]MH_I2C_Read... [21:42:38]Read from MH i2c: E2 0B 00 [21:42:38]MH_I2C_Read... [21:42:38]Read from MH i2c: E2 0B 00 A9 02 00 80 B4 B6 F3 B4 27 6A 0C 90 00 55 [21:42:38]RAPDU: 80 B4 B6 F3 B4 27 6A 0C 90 00 [21:42:38]wFMCommunicate OK [21:42:38]SAM_PROTO_SignData done [21:42:38]FM_MakeSignedData done [21:42:38]CreateOFDProtocolMessage [21:42:38]wFMCommunicate request_size=4 [21:42:38]MH_SAM_APDU [21:42:38]CAPDU: 80 11 00 00 [21:42:38]Write to MH i2c: E2 08 00 AA 02 80 11 00 00 00 00 00 00 26 [21:42:38]Write i2c OK [21:42:38]MH_I2C_Read... [21:42:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:38]Read from MH i2c: E2 [21:42:38]MH_I2C_Read... [21:42:38]Read from MH i2c: E2 17 00 [21:42:38]MH_I2C_Read... [21:42:38]Read from MH i2c: E2 17 00 AA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7D [21:42:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:42:38]wFMCommunicate OK [21:42:38]CreateOFDProtocolMessage done [21:42:38]OFDSenderStorePacket 228431 [21:42:38]StoreOFDPacket docnum=228431 [21:42:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 3D D3 04 01 0C 91 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 01 00 00 F4 03 04 00 4C 1C 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4F 7C 03 00 35 04 06 00 7A 4A 8B B8 66 0E 80 B4 B6 F3 B4 27 6A 0C [21:42:38]CheckFolder [21:42:38]dirname=/storage/ofd_packets [21:42:38]CheckFolder done [21:42:38]ProducePacketName [21:42:38]name=ofd_packets/00228431 [21:42:38]NVStorageSaveData ofd_packets/00228431 [21:42:38]File name is /storage/ofd_packets/00228431 [21:42:38]Write 298 bytes [21:42:38]NVStorageSaveData done [21:42:38]OFDSenderStorePacket done [21:42:38]KKMCreateOFDPacket done [21:42:38]NVStorageSaveData kkm_last_timestamp [21:42:38]File name is /storage/kkm_last_timestamp [21:42:38]Write 4 bytes [21:42:38]NVStorageSaveData done [21:42:38]ExternCall_PrintAddStr [21:42:38]wPrintStart [21:42:38]Write to MH i2c: 01 00 00 AB 02 AD [21:42:38]Write i2c OK [21:42:38]MH_I2C_Read... [21:42:38]Read from MH i2c: 01 [21:42:38]MH_I2C_Read... [21:42:38]Read from MH i2c: 01 07 00 [21:42:38]MH_I2C_Read... [21:42:38]Read from MH i2c: 01 07 00 AB 02 00 00 00 00 00 FF 0F C2 [21:42:38]RasterBufferAndPrint [21:42:38]line Счет N : (1)1965076 [21:42:38]line ИНН: 02508201610067 [21:42:38]line Контрольно-Кассовый Чек [21:42:38]line ПРОДАЖА [21:42:38]line ТРК (МРК, ГНК) : 21 [21:42:38]line Товар: 2710194210 [21:42:38]line ДТ-К-5 [21:42:38]line 6.570 * 76.20 [21:42:38]line = 500.63 [21:42:38]line НДС 12% НСП 1% [21:42:38]line > о реализуемом товаре [21:42:38]line ОКРУГЛЕНИЕ: -0.63 [21:42:38]line ИТОГО: 500.00 [21:42:38]line Внесено: 500.00 [21:42:38]line СДАЧА: 0.00 [21:42:38]line НСП 1% : 4.43 [21:42:38]line НДС 12% : 53.16 [21:42:38]line Наличными: 500.00 [21:42:38]line Безнал.: 0.00 [21:42:38]line Место: АЗС № 133 "Партнер Нефть" [21:42:38]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:42:38]line СНО: Общий режим [21:42:38]line Чек 395 22.10.2024 21:42 [21:42:38]line Смена: 535 ФФД: 1.0 [21:42:38]line ЗНМ: 0300000091 [21:42:38]line РНМ: 0000000000091685 [21:42:38]line Версия ККМ: 001 [21:42:38]line ФМ: 0000000000871839 [21:42:38]line ФД: 228431 [21:42:38]line ФПД: 134460590286350 [21:42:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T214236&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228431&fm=134460590286350&tin=02508201610067®Number=0000000000091685&sum=50000 [21:42:38]OFD Sender: Processing packet 228431 [packets to send 38, broken 37] [21:42:38]ProducePacketName [21:42:38]name=ofd_packets/00228431 [21:42:38]OFD Sender: To server: pG, [21:42:38]CommunicateWithHost lk.salyk.kg:30040 [21:42:38]ConnectInit lk.salyk.kg [21:42:38]written 0, free lines is 4095 [21:42:38]Connected sock=10 [21:42:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 3D D3 04 01 0C 91 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 01 00 00 F4 03 04 00 4C 1C 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4F 7C 03 00 35 04 06 00 7A 4A 8B B8 66 0E 80 B4 B6 F3 B4 27 6A 0C [21:42:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 2C 94 47 00 5B 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4F 7C 03 00 F4 03 04 00 44 C7 17 67 B6 04 01 00 00 32 92 E1 DF 52 63 4B AB [21:42:38]CommunicateWithHost err = 0 [21:42:38]CheckOFDResponse [21:42:38]1017 (14) - 77093643461234 [21:42:38]1041 (16) - 0000000000871839 [21:42:38]1040 (4) - 228431 [21:42:38]1012 (4) - 22.10.2024 15:39 [21:42:38]1206 (1) - 0 [21:42:38]OFD Sender: Remove packet 228431 [21:42:38]ProducePacketName [21:42:38]name=ofd_packets/00228431 [21:42:38]NVStorageDeleteData [21:42:38]Write to MH i2c: 01 00 00 D5 02 D7 [21:42:38]Write i2c OK [21:42:38]MH_I2C_Read... [21:42:38]Read from MH i2c: 01 [21:42:38]MH_I2C_Read... [21:42:38]Read from MH i2c: 01 07 00 [21:42:38]MH_I2C_Read... [21:42:38]Read from MH i2c: 01 07 00 D5 02 00 00 00 00 00 A6 0C 90 [21:42:38]RasterBufferAndPrint [21:42:38]line [21:42:38]line [21:42:38]line [21:42:38]line [21:42:38]line [21:42:38]written 0, free lines is 3242 [21:42:38]MH_Cut [21:42:38]Write to MH i2c: D1 01 00 DC 02 01 B0 [21:42:38]Write i2c OK [21:42:38]MH_I2C_Read... [21:42:38]Read from MH i2c: D1 [21:42:38]MH_I2C_Read... [21:42:38]Read from MH i2c: D1 01 00 [21:42:38]MH_I2C_Read... [21:42:38]Read from MH i2c: D1 01 00 DC 02 00 AF [21:42:38]Write to MH i2c: 01 00 00 DD 02 DF [21:42:38]Write i2c OK [21:42:38]MH_I2C_Read... [21:42:39]OFD Sender: No OFD packet to send [21:42:39]*** Cut start [21:42:39]*** Partial cut [21:42:39]*** CUTSNS_PIN = 1 [21:42:39]*** CUTSNS_PIN = 0 [21:42:40]*** Brake cut motor [21:42:40]Read from MH i2c: 01 [21:42:40]MH_I2C_Read... [21:42:40]*** Stop cut motor [21:42:40]*** Cut end [21:42:40]Read from MH i2c: 01 07 00 [21:42:40]MH_I2C_Read... [21:42:40]Read from MH i2c: 01 07 00 DD 02 00 00 00 00 00 FF 0F F4 [21:42:40]process_action close_receipt done [21:42:40]requested_data is exist [21:42:40]produce_requested_data [21:42:40]requested_item fm.sn is exist - process it [21:42:40]wFMCommunicate request_size=4 [21:42:40]MH_SAM_APDU [21:42:40]CAPDU: 80 11 00 00 [21:42:40]Write to MH i2c: E2 08 00 DE 02 80 11 00 00 00 00 00 00 5A [21:42:40]Write i2c OK [21:42:40]MH_I2C_Read... [21:42:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:40]Read from MH i2c: E2 [21:42:40]MH_I2C_Read... [21:42:40]Read from MH i2c: E2 17 00 [21:42:40]MH_I2C_Read... [21:42:40]Read from MH i2c: E2 17 00 DE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B1 [21:42:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:42:40]wFMCommunicate OK [21:42:40]requested_item fd.num is exist - process it [21:42:40]SAM_PROTO_GetFieldsCounters [21:42:40]wFMCommunicate request_size=4 [21:42:40]MH_SAM_APDU [21:42:40]CAPDU: 80 13 00 00 [21:42:40]Write to MH i2c: E2 08 00 DF 02 80 13 00 00 00 00 00 00 5D [21:42:40]Write i2c OK [21:42:40]MH_I2C_Read... [21:42:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:42:40]Read from MH i2c: E2 [21:42:40]MH_I2C_Read... [21:42:40]Read from MH i2c: E2 62 00 [21:42:40]MH_I2C_Read... [21:42:40]Read from MH i2c: E2 62 00 DF 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4F 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 8B 01 00 00 5E 04 04 00 8B 01 00 00 57 04 04 00 8C 01 00 00 19 04 04 00 00 00 00 00 90 00 11 [21:42:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4F 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 8B 01 00 00 5E 04 04 00 8B 01 00 00 57 04 04 00 8C 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:42:40]wFMCommunicate OK [21:42:40]SAM_PROTO_GetFieldsCounters done [21:42:40]requested_item shift.num is exist - process it [21:42:40]requested_item shift.opened is exist - process it [21:42:40]req_shift_opened [21:42:40]FM_GetShiftState [21:42:40]SAM_PROTO_GetShiftState [21:42:40]wFMCommunicate request_size=4 [21:42:40]MH_SAM_APDU [21:42:40]CAPDU: 80 13 01 00 [21:42:40]Write to MH i2c: E2 08 00 E0 02 80 13 01 00 00 00 00 00 5F [21:42:40]Write i2c OK [21:42:40]MH_I2C_Read... [21:42:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:40]Read from MH i2c: E2 [21:42:40]MH_I2C_Read... [21:42:40]Read from MH i2c: E2 0E 00 [21:42:40]MH_I2C_Read... [21:42:40]Read from MH i2c: E2 0E 00 E0 02 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 26 [21:42:40]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [21:42:40]wFMCommunicate OK [21:42:40]SAM_PROTO_GetShiftState done [21:42:40]FM_GetShiftState done [21:42:40]req_shift_opened done [21:42:40]requested_item shift.open_date is exist - process it [21:42:40]req_shift_open_date [21:42:40]req_shift_open_date done [21:42:40]produce_requested_data done [21:42:40]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228431,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [21:42:40]process_action_free close_receipt [21:42:40]json_value_free [21:42:40]json_value_free done [21:42:40]process_json_proto returns [21:42:40]Send response to host [21:42:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228431,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [21:42:40]free response buf [21:42:40]execute_script done [21:42:40]execute_script returns [21:42:40]free content buf [21:42:40]Sock 7.Close socket [21:42:40]Sock 7.Thread stoped [21:42:44]OFD Sender: No OFD packet to send [21:42:49]OFD Sender: No OFD packet to send [21:42:54]OFD Sender: No OFD packet to send [21:42:59]OFD Sender: No OFD packet to send [21:43:04]OFD Sender: No OFD packet to send [21:43:09]OFD Sender: No OFD packet to send [21:43:14]OFD Sender: No OFD packet to send [21:43:18]accept exits with 9 [21:43:18]New connection [21:43:18]New thread 3066834276 created [21:43:18]Thread 3066977636 joined [21:43:18]Waiting for new connection... [21:43:18] Sock 9.Parse request [21:43:18]Sock 9.Check first char [21:43:18]Sock 9.First char is OK [21:43:18]request: POST /json_proto HTTP/1.0 [21:43:18]Method: POST [21:43:18]URL: /json_proto [21:43:18]Method is POST - this is cgi request [21:43:18]url: /json_proto [21:43:18]query_string will be loaded in cgi processing [21:43:18]execute_cgi json_proto POST (null) [21:43:18]execute_cgi path=json_proto method=POST [21:43:18]POST find Content-Length [21:43:18]Host: 172.17.44.195:8080 [21:43:18]Content-Length: 680 [21:43:18]Content-Type: application/json [21:43:18] [21:43:18]POST finish read [21:43:18]Found Content-Length = 680 [21:43:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965075", "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" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [21:43:18]execute_script... [21:43:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965075", "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" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [21:43:18]POST & json_proto [21:43:18]process_json_proto [21:43:18]json parsed OK: [21:43:18]protocol is kg_v1.0 [21:43:18]action value=close_receipt [21:43:18]process_action close_receipt [21:43:18]cmd_close_receipt [21:43:18]MH_GetDate [21:43:18]Write to MH i2c: F0 00 00 E1 02 D2 [21:43:18]Write i2c OK [21:43:18]MH_I2C_Read... [21:43:18]Read from MH i2c: F0 [21:43:18]MH_I2C_Read... [21:43:18]Read from MH i2c: F0 09 00 [21:43:18]MH_I2C_Read... [21:43:18]Read from MH i2c: F0 09 00 E1 02 00 76 1C 18 67 82 C9 CF 66 6C [21:43:18]GetLastDocTimeStamp 1729633356 [21:43:18]current date 1729633398 [21:43:18]FM_GetShiftState [21:43:18]SAM_PROTO_GetShiftState [21:43:18]wFMCommunicate request_size=4 [21:43:18]MH_SAM_APDU [21:43:18]CAPDU: 80 13 01 00 [21:43:18]Write to MH i2c: E2 08 00 E2 02 80 13 01 00 00 00 00 00 61 [21:43:18]Write i2c OK [21:43:18]MH_I2C_Read... [21:43:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:18]Read from MH i2c: E2 [21:43:18]MH_I2C_Read... [21:43:18]Read from MH i2c: E2 0E 00 [21:43:18]MH_I2C_Read... [21:43:18]Read from MH i2c: E2 0E 00 E2 02 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 28 [21:43:18]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [21:43:18]wFMCommunicate OK [21:43:18]SAM_PROTO_GetShiftState done [21:43:18]FM_GetShiftState done [21:43:18]opened in 1729555538 [21:43:18]opened+sec_in_day 1729641938 [21:43:18]quantity*price = 150037 [21:43:18]sum+1 = 150039 [21:43:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 396 22.10.2024 21:43 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228432 ФПД: 131271175628433 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T214318&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228432&fm=131271175628433&tin=02508201610067®Number=0000000000091685&sum=150000 [21:43:19]StoreToDocumentArchive [21:43:19]shift 535 fd 228432 [21:43:19]save to /storage/0535/doc_00228432 [21:43:19]save last doc name /storage/0535/doc_00228432 to /storage/kkm_last_doc_name [21:43:19]save OK [21:43:19]Clear old archive folders... [21:43:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:43:19]tlvbuf is 002A3880 [21:43:19]SAM_PROTO_ClearQueue [21:43:19]wFMCommunicate request_size=4 [21:43:19]MH_SAM_APDU [21:43:19]CAPDU: 80 09 00 00 [21:43:19]Write to MH i2c: E2 08 00 EF 02 80 09 00 00 00 00 00 00 63 [21:43:19]Write i2c OK [21:43:19]MH_I2C_Read... [21:43:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:43:19]Read from MH i2c: E2 [21:43:19]MH_I2C_Read... [21:43:19]Read from MH i2c: E2 03 00 [21:43:19]MH_I2C_Read... [21:43:19]Read from MH i2c: E2 03 00 EF 02 00 90 00 65 [21:43:19]RAPDU: 90 00 [21:43:19]wFMCommunicate OK [21:43:19]SAM_PROTO_ClearQueue done [21:43:19]KKMCreateOFDPacket [21:43:19]OFDProtocolAddRootSTLVToBuf [21:43:19]FM_MakeSignedData [21:43:19]FM_MakeSignedData [21:43:19]SAM_PROTO_SignData [21:43:19]wFMCommunicate request_size=4 [21:43:19]MH_SAM_APDU [21:43:19]CAPDU: 80 0D 01 02 [21:43:19]Write to MH i2c: E2 08 00 F0 02 80 0D 01 02 00 00 00 00 6B [21:43:19]Write i2c OK [21:43:19]MH_I2C_Read... [21:43:19]OFD Sender: No OFD packet to send [21:43:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:43:19]Read from MH i2c: E2 [21:43:19]MH_I2C_Read... [21:43:19]Read from MH i2c: E2 03 00 [21:43:19]MH_I2C_Read... [21:43:19]Read from MH i2c: E2 03 00 F0 02 00 90 00 66 [21:43:19]RAPDU: 90 00 [21:43:19]wFMCommunicate OK [21:43:19]wFMCommunicate request_size=255 [21:43:19]MH_SAM_APDU [21:43: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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 8C 01 00 00 F4 03 04 00 76 1C 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 50 7C 03 00 35 04 06 00 77 63 F3 CA [21:43:19]Write to MH i2c: E2 02 01 F1 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 8C 01 00 00 F4 03 04 00 76 1C 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 50 7C 03 00 35 04 06 00 77 63 F3 CA 00 00 8C [21:43:19]Write i2c OK [21:43:19]MH_I2C_Read... [21:43:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:19]Read from MH i2c: E2 [21:43:19]MH_I2C_Read... [21:43:19]Read from MH i2c: E2 03 00 [21:43:19]MH_I2C_Read... [21:43:19]Read from MH i2c: E2 03 00 F1 02 00 90 00 67 [21:43:19]RAPDU: 90 00 [21:43:19]wFMCommunicate OK [21:43:19]wFMCommunicate request_size=7 [21:43:19]MH_SAM_APDU [21:43:19]CAPDU: 80 0D 02 02 02 E6 91 [21:43:19]Write to MH i2c: E2 0A 00 F2 02 80 0D 02 02 02 00 E6 91 00 00 E9 [21:43:19]Write i2c OK [21:43:19]MH_I2C_Read... [21:43:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:19]Read from MH i2c: E2 [21:43:19]MH_I2C_Read... [21:43:19]Read from MH i2c: E2 03 00 [21:43:19]MH_I2C_Read... [21:43:19]Read from MH i2c: E2 03 00 F2 02 00 90 00 68 [21:43:19]RAPDU: 90 00 [21:43:19]wFMCommunicate OK [21:43:19]wFMCommunicate request_size=4 [21:43:19]MH_SAM_APDU [21:43:19]CAPDU: 80 0D 03 02 [21:43:19]Write to MH i2c: E2 08 00 F3 02 80 0D 03 02 00 00 00 00 70 [21:43:19]Write i2c OK [21:43:19]MH_I2C_Read... [21:43:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:43:19]Read from MH i2c: E2 [21:43:19]MH_I2C_Read... [21:43:19]Read from MH i2c: E2 0B 00 [21:43:19]MH_I2C_Read... [21:43:19]Read from MH i2c: E2 0B 00 F3 02 00 1A 78 EF 78 1C E6 BD E1 90 00 0A [21:43:19]RAPDU: 1A 78 EF 78 1C E6 BD E1 90 00 [21:43:19]wFMCommunicate OK [21:43:19]SAM_PROTO_SignData done [21:43:19]FM_MakeSignedData done [21:43:19]CreateOFDProtocolMessage [21:43:19]wFMCommunicate request_size=4 [21:43:19]MH_SAM_APDU [21:43:19]CAPDU: 80 11 00 00 [21:43:19]Write to MH i2c: E2 08 00 F4 02 80 11 00 00 00 00 00 00 70 [21:43:19]Write i2c OK [21:43:19]MH_I2C_Read... [21:43:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:19]Read from MH i2c: E2 [21:43:19]MH_I2C_Read... [21:43:19]Read from MH i2c: E2 17 00 [21:43:19]MH_I2C_Read... [21:43:19]Read from MH i2c: E2 17 00 F4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C7 [21:43:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:43:19]wFMCommunicate OK [21:43:19]CreateOFDProtocolMessage done [21:43:19]OFDSenderStorePacket 228432 [21:43:19]StoreOFDPacket docnum=228432 [21:43:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 A8 19 04 01 44 E5 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 8C 01 00 00 F4 03 04 00 76 1C 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 50 7C 03 00 35 04 06 00 77 63 F3 CA E6 91 1A 78 EF 78 1C E6 BD E1 [21:43:19]CheckFolder [21:43:19]dirname=/storage/ofd_packets [21:43:19]CheckFolder done [21:43:19]ProducePacketName [21:43:19]name=ofd_packets/00228432 [21:43:19]NVStorageSaveData ofd_packets/00228432 [21:43:19]File name is /storage/ofd_packets/00228432 [21:43:19]Write 298 bytes [21:43:19]NVStorageSaveData done [21:43:19]OFDSenderStorePacket done [21:43:19]KKMCreateOFDPacket done [21:43:19]NVStorageSaveData kkm_last_timestamp [21:43:19]File name is /storage/kkm_last_timestamp [21:43:19]Write 4 bytes [21:43:19]NVStorageSaveData done [21:43:19]ExternCall_PrintAddStr [21:43:19]wPrintStart [21:43:19]Write to MH i2c: 01 00 00 F5 02 F7 [21:43:19]Write i2c OK [21:43:19]MH_I2C_Read... [21:43:19]Read from MH i2c: 01 [21:43:19]MH_I2C_Read... [21:43:19]Read from MH i2c: 01 07 00 [21:43:19]MH_I2C_Read... [21:43:19]Read from MH i2c: 01 07 00 F5 02 00 00 00 00 00 FF 0F 0C [21:43:19]RasterBufferAndPrint [21:43:19]line Счет N : (1)1965075 [21:43:19]line ИНН: 02508201610067 [21:43:19]line Контрольно-Кассовый Чек [21:43:19]line ПРОДАЖА [21:43:19]line ТРК (МРК, ГНК) : 11 [21:43:19]line Товар: 2710194210 [21:43:19]line ДТ-К-5 [21:43:19]line 19.690 * 76.20 [21:43:19]line = 1500.38 [21:43:19]line НДС 12% НСП 1% [21:43:19]line > о реализуемом товаре [21:43:19]line ОКРУГЛЕНИЕ: -0.38 [21:43:19]line ИТОГО: 1500.00 [21:43:19]line Внесено: 1500.00 [21:43:19]line СДАЧА: 0.00 [21:43:19]line НСП 1% : 13.28 [21:43:19]line НДС 12% : 159.33 [21:43:19]line Наличными: 1500.00 [21:43:19]line Безнал.: 0.00 [21:43:19]line Место: АЗС № 133 "Партнер Нефть" [21:43:19]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:43:19]line СНО: Общий режим [21:43:19]line Чек 396 22.10.2024 21:43 [21:43:19]line Смена: 535 ФФД: 1.0 [21:43:19]line ЗНМ: 0300000091 [21:43:19]line РНМ: 0000000000091685 [21:43:19]line Версия ККМ: 001 [21:43:19]line ФМ: 0000000000871839 [21:43:19]line ФД: 228432 [21:43:19]line ФПД: 131271175628433 [21:43:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T214318&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228432&fm=131271175628433&tin=02508201610067®Number=0000000000091685&sum=150000 [21:43:20]OFD Sender: Processing packet 228432 [packets to send 38, broken 37] [21:43:20]ProducePacketName [21:43:20]name=ofd_packets/00228432 [21:43:20]OFD Sender: To server: pG, [21:43:20]CommunicateWithHost lk.salyk.kg:30040 [21:43:20]ConnectInit lk.salyk.kg [21:43:20]written 0, free lines is 4095 [21:43:20]Connected sock=10 [21:43:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 A8 19 04 01 44 E5 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 8C 01 00 00 F4 03 04 00 76 1C 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 50 7C 03 00 35 04 06 00 77 63 F3 CA E6 91 1A 78 EF 78 1C E6 BD E1 [21:43:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 08 DF 47 00 0B DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 50 7C 03 00 F4 03 04 00 6D C7 17 67 B6 04 01 00 00 82 2E 50 71 D1 BB 72 FB [21:43:20]CommunicateWithHost err = 0 [21:43:20]CheckOFDResponse [21:43:20]1017 (14) - 77093643461234 [21:43:20]1041 (16) - 0000000000871839 [21:43:20]1040 (4) - 228432 [21:43:20]1012 (4) - 22.10.2024 15:40 [21:43:20]1206 (1) - 0 [21:43:20]OFD Sender: Remove packet 228432 [21:43:20]ProducePacketName [21:43:20]name=ofd_packets/00228432 [21:43:20]NVStorageDeleteData [21:43:20]Write to MH i2c: 01 00 00 1F 03 22 [21:43:20]Write i2c OK [21:43:20]MH_I2C_Read... [21:43:20]Read from MH i2c: 01 [21:43:20]MH_I2C_Read... [21:43:20]Read from MH i2c: 01 07 00 [21:43:20]MH_I2C_Read... [21:43:20]Read from MH i2c: 01 07 00 1F 03 00 00 00 00 00 A9 0C DE [21:43:20]RasterBufferAndPrint [21:43:20]line [21:43:20]line [21:43:20]line [21:43:20]line [21:43:20]line [21:43:20]written 0, free lines is 3246 [21:43:20]MH_Cut [21:43:20]Write to MH i2c: D1 01 00 26 03 01 FB [21:43:20]Write i2c OK [21:43:20]MH_I2C_Read... [21:43:20]Read from MH i2c: D1 [21:43:20]MH_I2C_Read... [21:43:20]Read from MH i2c: D1 01 00 [21:43:20]MH_I2C_Read... [21:43:20]Read from MH i2c: D1 01 00 26 03 00 FA [21:43:20]Write to MH i2c: 01 00 00 27 03 2A [21:43:20]Write i2c OK [21:43:20]MH_I2C_Read... [21:43:21]OFD Sender: No OFD packet to send [21:43:21]*** Cut start [21:43:21]*** Partial cut [21:43:21]*** CUTSNS_PIN = 1 [21:43:21]*** CUTSNS_PIN = 0 [21:43:21]*** Brake cut motor [21:43:22]Read from MH i2c: 01 [21:43:22]MH_I2C_Read... [21:43:22]*** Stop cut motor [21:43:22]*** Cut end [21:43:22]Read from MH i2c: 01 07 00 [21:43:22]MH_I2C_Read... [21:43:22]Read from MH i2c: 01 07 00 27 03 00 00 00 00 00 FF 0F 3F [21:43:22]process_action close_receipt done [21:43:22]requested_data is exist [21:43:22]produce_requested_data [21:43:22]requested_item fm.sn is exist - process it [21:43:22]wFMCommunicate request_size=4 [21:43:22]MH_SAM_APDU [21:43:22]CAPDU: 80 11 00 00 [21:43:22]Write to MH i2c: E2 08 00 28 03 80 11 00 00 00 00 00 00 A5 [21:43:22]Write i2c OK [21:43:22]MH_I2C_Read... [21:43:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:22]Read from MH i2c: E2 [21:43:22]MH_I2C_Read... [21:43:22]Read from MH i2c: E2 17 00 [21:43:22]MH_I2C_Read... [21:43:22]Read from MH i2c: E2 17 00 28 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FC [21:43:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:43:22]wFMCommunicate OK [21:43:22]requested_item fd.num is exist - process it [21:43:22]SAM_PROTO_GetFieldsCounters [21:43:22]wFMCommunicate request_size=4 [21:43:22]MH_SAM_APDU [21:43:22]CAPDU: 80 13 00 00 [21:43:22]Write to MH i2c: E2 08 00 29 03 80 13 00 00 00 00 00 00 A8 [21:43:22]Write i2c OK [21:43:22]MH_I2C_Read... [21:43:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:43:22]Read from MH i2c: E2 [21:43:22]MH_I2C_Read... [21:43:22]Read from MH i2c: E2 62 00 [21:43:22]MH_I2C_Read... [21:43:22]Read from MH i2c: E2 62 00 29 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 50 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 8C 01 00 00 5E 04 04 00 8C 01 00 00 57 04 04 00 8D 01 00 00 19 04 04 00 00 00 00 00 90 00 60 [21:43:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 50 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 8C 01 00 00 5E 04 04 00 8C 01 00 00 57 04 04 00 8D 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:43:22]wFMCommunicate OK [21:43:22]SAM_PROTO_GetFieldsCounters done [21:43:22]requested_item shift.num is exist - process it [21:43:22]requested_item shift.opened is exist - process it [21:43:22]req_shift_opened [21:43:22]FM_GetShiftState [21:43:22]SAM_PROTO_GetShiftState [21:43:22]wFMCommunicate request_size=4 [21:43:22]MH_SAM_APDU [21:43:22]CAPDU: 80 13 01 00 [21:43:22]Write to MH i2c: E2 08 00 2A 03 80 13 01 00 00 00 00 00 AA [21:43:22]Write i2c OK [21:43:22]MH_I2C_Read... [21:43:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:22]Read from MH i2c: E2 [21:43:22]MH_I2C_Read... [21:43:22]Read from MH i2c: E2 0E 00 [21:43:22]MH_I2C_Read... [21:43:22]Read from MH i2c: E2 0E 00 2A 03 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 71 [21:43:22]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [21:43:22]wFMCommunicate OK [21:43:22]SAM_PROTO_GetShiftState done [21:43:22]FM_GetShiftState done [21:43:22]req_shift_opened done [21:43:22]requested_item shift.open_date is exist - process it [21:43:22]req_shift_open_date [21:43:22]req_shift_open_date done [21:43:22]produce_requested_data done [21:43:22]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228432,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [21:43:22]process_action_free close_receipt [21:43:22]json_value_free [21:43:22]json_value_free done [21:43:22]process_json_proto returns [21:43:22]Send response to host [21:43:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228432,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [21:43:22]free response buf [21:43:22]execute_script done [21:43:22]execute_script returns [21:43:22]free content buf [21:43:22]Sock 9.Close socket [21:43:22]Sock 9.Thread stoped [21:43:26]OFD Sender: No OFD packet to send [21:43:31]OFD Sender: No OFD packet to send [21:43:36]OFD Sender: No OFD packet to send [21:43:41]OFD Sender: No OFD packet to send [21:43:46]OFD Sender: No OFD packet to send [21:43:51]OFD Sender: No OFD packet to send [21:43:56]OFD Sender: No OFD packet to send [21:44:01]OFD Sender: No OFD packet to send [21:44:06]OFD Sender: No OFD packet to send [21:44:11]OFD Sender: No OFD packet to send [21:44:16]OFD Sender: No OFD packet to send [21:44:21]OFD Sender: No OFD packet to send [21:44:26]OFD Sender: No OFD packet to send [21:44:31]OFD Sender: No OFD packet to send [21:44:36]OFD Sender: No OFD packet to send [21:44:41]OFD Sender: No OFD packet to send [21:44:46]OFD Sender: No OFD packet to send [21:44:51]OFD Sender: No OFD packet to send [21:44:56]OFD Sender: No OFD packet to send [21:45:01]OFD Sender: No OFD packet to send [21:45:06]OFD Sender: No OFD packet to send [21:45:11]OFD Sender: No OFD packet to send [21:45:16]OFD Sender: No OFD packet to send [21:45:21]OFD Sender: No OFD packet to send [21:45:26]OFD Sender: No OFD packet to send [21:45:31]OFD Sender: No OFD packet to send [21:45:36]OFD Sender: No OFD packet to send [21:45:41]OFD Sender: No OFD packet to send [21:45:46]OFD Sender: No OFD packet to send [21:45:51]OFD Sender: No OFD packet to send [21:45:56]OFD Sender: No OFD packet to send [21:46:01]OFD Sender: No OFD packet to send [21:46:06]OFD Sender: No OFD packet to send [21:46:11]OFD Sender: No OFD packet to send [21:46:16]OFD Sender: No OFD packet to send [21:46:21]OFD Sender: No OFD packet to send [21:46:26]OFD Sender: No OFD packet to send [21:46:31]OFD Sender: No OFD packet to send [21:46:36]OFD Sender: No OFD packet to send [21:46:41]OFD Sender: No OFD packet to send [21:46:46]OFD Sender: No OFD packet to send [21:46:51]OFD Sender: No OFD packet to send [21:46:56]OFD Sender: No OFD packet to send [21:47:01]OFD Sender: No OFD packet to send [21:47:06]OFD Sender: No OFD packet to send [21:47:11]OFD Sender: No OFD packet to send [21:47:16]OFD Sender: No OFD packet to send [21:47:21]OFD Sender: No OFD packet to send [21:47:26]OFD Sender: No OFD packet to send [21:47:31]OFD Sender: No OFD packet to send [21:47:36]OFD Sender: No OFD packet to send [21:47:41]OFD Sender: No OFD packet to send [21:47:46]OFD Sender: No OFD packet to send [21:47:51]OFD Sender: No OFD packet to send [21:47:56]OFD Sender: No OFD packet to send [21:48:01]OFD Sender: No OFD packet to send [21:48:06]OFD Sender: No OFD packet to send [21:48:11]OFD Sender: No OFD packet to send [21:48:16]OFD Sender: No OFD packet to send [21:48:21]OFD Sender: No OFD packet to send [21:48:26]OFD Sender: No OFD packet to send [21:48:31]OFD Sender: No OFD packet to send [21:48:36]OFD Sender: No OFD packet to send [21:48:41]OFD Sender: No OFD packet to send [21:48:46]OFD Sender: No OFD packet to send [21:48:51]OFD Sender: No OFD packet to send [21:48:56]OFD Sender: No OFD packet to send [21:49:01]OFD Sender: No OFD packet to send [21:49:06]OFD Sender: No OFD packet to send [21:49:11]OFD Sender: No OFD packet to send [21:49:16]OFD Sender: No OFD packet to send [21:49:21]OFD Sender: No OFD packet to send [21:49:26]OFD Sender: No OFD packet to send [21:49:31]OFD Sender: No OFD packet to send [21:49:36]OFD Sender: No OFD packet to send [21:49:38]accept exits with 7 [21:49:38]New connection [21:49:38]New thread 3066977636 created [21:49:38]Thread 3066834276 joined [21:49:38]Waiting for new connection... [21:49:38] Sock 7.Parse request [21:49:38]Sock 7.Check first char [21:49:38]Sock 7.First char is OK [21:49:38]request: POST /json_proto HTTP/1.0 [21:49:38]Method: POST [21:49:38]URL: /json_proto [21:49:38]Method is POST - this is cgi request [21:49:38]url: /json_proto [21:49:38]query_string will be loaded in cgi processing [21:49:38]execute_cgi json_proto POST (null) [21:49:38]execute_cgi path=json_proto method=POST [21:49:38]POST find Content-Length [21:49:38]Host: 172.17.44.195:8080 [21:49:38]Content-Length: 679 [21:49:38]Content-Type: application/json [21:49:38] [21:49:38]POST finish read [21:49:38]Found Content-Length = 679 [21:49:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965077", "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" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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:49:38]execute_script... [21:49: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)1965077", "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" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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:49:38]POST & json_proto [21:49:38]process_json_proto [21:49:38]json parsed OK: [21:49:38]protocol is kg_v1.0 [21:49:38]action value=close_receipt [21:49:38]process_action close_receipt [21:49:38]cmd_close_receipt [21:49:38]MH_GetDate [21:49:38]Write to MH i2c: F0 00 00 2B 03 1D [21:49:38]Write i2c OK [21:49:38]MH_I2C_Read... [21:49:38]Read from MH i2c: F0 [21:49:38]MH_I2C_Read... [21:49:38]Read from MH i2c: F0 09 00 [21:49:38]MH_I2C_Read... [21:49:38]Read from MH i2c: F0 09 00 2B 03 00 F2 1D 18 67 82 C9 CF 66 34 [21:49:38]GetLastDocTimeStamp 1729633398 [21:49:38]current date 1729633778 [21:49:38]FM_GetShiftState [21:49:38]SAM_PROTO_GetShiftState [21:49:38]wFMCommunicate request_size=4 [21:49:38]MH_SAM_APDU [21:49:38]CAPDU: 80 13 01 00 [21:49:38]Write to MH i2c: E2 08 00 2C 03 80 13 01 00 00 00 00 00 AC [21:49:38]Write i2c OK [21:49:38]MH_I2C_Read... [21:49:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:38]Read from MH i2c: E2 [21:49:38]MH_I2C_Read... [21:49:38]Read from MH i2c: E2 0E 00 [21:49:38]MH_I2C_Read... [21:49:38]Read from MH i2c: E2 0E 00 2C 03 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 73 [21:49:38]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [21:49:38]wFMCommunicate OK [21:49:38]SAM_PROTO_GetShiftState done [21:49:38]FM_GetShiftState done [21:49:38]opened in 1729555538 [21:49:38]opened+sec_in_day 1729641938 [21:49:38]quantity*price = 70044 [21:49:38]sum+1 = 70045 [21:49:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 397 22.10.2024 21:49 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228433 ФПД: 261429685015174 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T214938&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228433&fm=261429685015174&tin=02508201610067®Number=0000000000091685&sum=70000 [21:49:39]StoreToDocumentArchive [21:49:39]shift 535 fd 228433 [21:49:39]save to /storage/0535/doc_00228433 [21:49:39]save last doc name /storage/0535/doc_00228433 to /storage/kkm_last_doc_name [21:49:39]save OK [21:49:39]Clear old archive folders... [21:49:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:49:39]tlvbuf is 002F5D00 [21:49:39]SAM_PROTO_ClearQueue [21:49:39]wFMCommunicate request_size=4 [21:49:39]MH_SAM_APDU [21:49:39]CAPDU: 80 09 00 00 [21:49:39]Write to MH i2c: E2 08 00 39 03 80 09 00 00 00 00 00 00 AE [21:49:39]Write i2c OK [21:49:39]MH_I2C_Read... [21:49:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:49:39]Read from MH i2c: E2 [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: E2 03 00 [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: E2 03 00 39 03 00 90 00 B0 [21:49:39]RAPDU: 90 00 [21:49:39]wFMCommunicate OK [21:49:39]SAM_PROTO_ClearQueue done [21:49:39]KKMCreateOFDPacket [21:49:39]OFDProtocolAddRootSTLVToBuf [21:49:39]FM_MakeSignedData [21:49:39]FM_MakeSignedData [21:49:39]SAM_PROTO_SignData [21:49:39]wFMCommunicate request_size=4 [21:49:39]MH_SAM_APDU [21:49:39]CAPDU: 80 0D 01 02 [21:49:39]Write to MH i2c: E2 08 00 3A 03 80 0D 01 02 00 00 00 00 B6 [21:49:39]Write i2c OK [21:49:39]MH_I2C_Read... [21:49:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:49:39]Read from MH i2c: E2 [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: E2 03 00 [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: E2 03 00 3A 03 00 90 00 B1 [21:49:39]RAPDU: 90 00 [21:49:39]wFMCommunicate OK [21:49:39]wFMCommunicate request_size=255 [21:49:39]MH_SAM_APDU [21:49: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 8D 01 00 00 F4 03 04 00 F2 1D 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 51 7C 03 00 35 04 06 00 ED [21:49:39]Write to MH i2c: E2 02 01 3B 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 8D 01 00 00 F4 03 04 00 F2 1D 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 51 7C 03 00 35 04 06 00 ED 00 00 4F [21:49:39]Write i2c OK [21:49:39]MH_I2C_Read... [21:49:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:39]Read from MH i2c: E2 [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: E2 03 00 [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: E2 03 00 3B 03 00 90 00 B2 [21:49:39]RAPDU: 90 00 [21:49:39]wFMCommunicate OK [21:49:39]wFMCommunicate request_size=10 [21:49:39]MH_SAM_APDU [21:49:39]CAPDU: 80 0D 02 02 05 C4 D7 82 52 86 [21:49:39]Write to MH i2c: E2 0D 00 3C 03 80 0D 02 02 05 00 C4 D7 82 52 86 00 00 B8 [21:49:39]Write i2c OK [21:49:39]MH_I2C_Read... [21:49:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:39]Read from MH i2c: E2 [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: E2 03 00 [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: E2 03 00 3C 03 00 90 00 B3 [21:49:39]RAPDU: 90 00 [21:49:39]wFMCommunicate OK [21:49:39]wFMCommunicate request_size=4 [21:49:39]MH_SAM_APDU [21:49:39]CAPDU: 80 0D 03 02 [21:49:39]Write to MH i2c: E2 08 00 3D 03 80 0D 03 02 00 00 00 00 BB [21:49:39]Write i2c OK [21:49:39]MH_I2C_Read... [21:49:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:49:39]Read from MH i2c: E2 [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: E2 0B 00 [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: E2 0B 00 3D 03 00 EE 49 10 0B 87 64 F5 B3 90 00 A1 [21:49:39]RAPDU: EE 49 10 0B 87 64 F5 B3 90 00 [21:49:39]wFMCommunicate OK [21:49:39]SAM_PROTO_SignData done [21:49:39]FM_MakeSignedData done [21:49:39]CreateOFDProtocolMessage [21:49:39]wFMCommunicate request_size=4 [21:49:39]MH_SAM_APDU [21:49:39]CAPDU: 80 11 00 00 [21:49:39]Write to MH i2c: E2 08 00 3E 03 80 11 00 00 00 00 00 00 BB [21:49:39]Write i2c OK [21:49:39]MH_I2C_Read... [21:49:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:39]Read from MH i2c: E2 [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: E2 17 00 [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: E2 17 00 3E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 12 [21:49:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:49:39]wFMCommunicate OK [21:49:39]CreateOFDProtocolMessage done [21:49:39]OFDSenderStorePacket 228433 [21:49:39]StoreOFDPacket docnum=228433 [21:49:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A8 1F 07 01 18 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 8D 01 00 00 F4 03 04 00 F2 1D 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 51 7C 03 00 35 04 06 00 ED C4 D7 82 52 86 EE 49 10 0B 87 64 F5 B3 [21:49:39]CheckFolder [21:49:39]dirname=/storage/ofd_packets [21:49:39]CheckFolder done [21:49:39]ProducePacketName [21:49:39]name=ofd_packets/00228433 [21:49:39]NVStorageSaveData ofd_packets/00228433 [21:49:39]File name is /storage/ofd_packets/00228433 [21:49:39]Write 301 bytes [21:49:39]NVStorageSaveData done [21:49:39]OFDSenderStorePacket done [21:49:39]KKMCreateOFDPacket done [21:49:39]NVStorageSaveData kkm_last_timestamp [21:49:39]File name is /storage/kkm_last_timestamp [21:49:39]Write 4 bytes [21:49:39]NVStorageSaveData done [21:49:39]ExternCall_PrintAddStr [21:49:39]wPrintStart [21:49:39]Write to MH i2c: 01 00 00 3F 03 42 [21:49:39]Write i2c OK [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: 01 [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: 01 07 00 [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: 01 07 00 3F 03 00 00 00 00 00 FF 0F 57 [21:49:39]RasterBufferAndPrint [21:49:39]line Счет N : (1)1965077 [21:49:39]line ИНН: 02508201610067 [21:49:39]line Контрольно-Кассовый Чек [21:49:39]line ПРОДАЖА [21:49:39]line ТРК (МРК, ГНК) : 53 [21:49:39]line Товар: 2710124130 [21:49:39]line Аи-92-К-5 [21:49:39]line 10.470 * 66.90 [21:49:39]line = 700.44 [21:49:39]line НДС 12% НСП 1% [21:49:39]line > о реализуемом товаре [21:49:39]line ОКРУГЛЕНИЕ: -0.44 [21:49:39]line ИТОГО: 700.00 [21:49:39]line Внесено: 700.00 [21:49:39]line СДАЧА: 0.00 [21:49:39]line НСП 1% : 6.20 [21:49:39]line НДС 12% : 74.38 [21:49:39]line Наличными: 700.00 [21:49:39]line Безнал.: 0.00 [21:49:39]line Место: АЗС № 133 "Партнер Нефть" [21:49:39]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:49:39]line СНО: Общий режим [21:49:39]line Чек 397 22.10.2024 21:49 [21:49:39]line Смена: 535 ФФД: 1.0 [21:49:39]line ЗНМ: 0300000091 [21:49:39]line РНМ: 0000000000091685 [21:49:39]line Версия ККМ: 001 [21:49:39]line ФМ: 0000000000871839 [21:49:39]line ФД: 228433 [21:49:39]line ФПД: 261429685015174 [21:49:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T214938&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228433&fm=261429685015174&tin=02508201610067®Number=0000000000091685&sum=70000 [21:49:39]written 0, free lines is 4095 [21:49:39]OFD Sender: Processing packet 228433 [packets to send 38, broken 37] [21:49:39]ProducePacketName [21:49:39]name=ofd_packets/00228433 [21:49:39]OFD Sender: To server: pG, [21:49:40]CommunicateWithHost lk.salyk.kg:30040 [21:49:40]ConnectInit lk.salyk.kg [21:49:40]Connected sock=10 [21:49:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A8 1F 07 01 18 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 8D 01 00 00 F4 03 04 00 F2 1D 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 51 7C 03 00 35 04 06 00 ED C4 D7 82 52 86 EE 49 10 0B 87 64 F5 B3 [21:49:40]Write to MH i2c: 01 00 00 69 03 6C [21:49:40]Write i2c OK [21:49:40]MH_I2C_Read... [21:49:40]Read from MH i2c: 01 [21:49:40]MH_I2C_Read... [21:49:40]Read from MH i2c: 01 07 00 [21:49:40]MH_I2C_Read... [21:49:40]Read from MH i2c: 01 07 00 69 03 00 00 00 00 00 AE 0C 2D [21:49:40]RasterBufferAndPrint [21:49:40]line [21:49:40]line [21:49:40]line [21:49:40]line [21:49:40]line [21:49:40]written 0, free lines is 3250 [21:49:40]MH_Cut [21:49:40]Write to MH i2c: D1 01 00 70 03 01 45 [21:49:40]Write i2c OK [21:49:40]MH_I2C_Read... [21:49:40]Read from MH i2c: D1 [21:49:40]MH_I2C_Read... [21:49:40]Read from MH i2c: D1 01 00 [21:49:40]MH_I2C_Read... [21:49:40]Read from MH i2c: D1 01 00 70 03 00 44 [21:49:40]Write to MH i2c: 01 00 00 71 03 74 [21:49:40]Write i2c OK [21:49:40]MH_I2C_Read... [21:49:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 24 24 47 00 09 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 38 37 31 38 33 39 10 04 04 00 51 7C 03 00 F4 03 04 00 E9 C8 17 67 B6 04 01 00 00 17 AF 24 6C BD CD 3B 0A [21:49:40]CommunicateWithHost err = 0 [21:49:40]CheckOFDResponse [21:49:40]1017 (14) - 77093643461234 [21:49:40]1041 (16) - 0000000000871839 [21:49:40]1040 (4) - 228433 [21:49:40]1012 (4) - 22.10.2024 15:46 [21:49:40]1206 (1) - 0 [21:49:40]OFD Sender: Remove packet 228433 [21:49:40]ProducePacketName [21:49:40]name=ofd_packets/00228433 [21:49:40]NVStorageDeleteData [21:49:41]OFD Sender: No OFD packet to send [21:49:41]*** Cut start [21:49:41]*** Partial cut [21:49:41]*** CUTSNS_PIN = 1 [21:49:41]*** CUTSNS_PIN = 0 [21:49:41]*** Brake cut motor [21:49:41]Read from MH i2c: 01 [21:49:42]MH_I2C_Read... [21:49:42]*** Stop cut motor [21:49:42]*** Cut end [21:49:42]Read from MH i2c: 01 07 00 [21:49:42]MH_I2C_Read... [21:49:42]Read from MH i2c: 01 07 00 71 03 00 00 00 00 00 FF 0F 89 [21:49:42]process_action close_receipt done [21:49:42]requested_data is exist [21:49:42]produce_requested_data [21:49:42]requested_item fm.sn is exist - process it [21:49:42]wFMCommunicate request_size=4 [21:49:42]MH_SAM_APDU [21:49:42]CAPDU: 80 11 00 00 [21:49:42]Write to MH i2c: E2 08 00 72 03 80 11 00 00 00 00 00 00 EF [21:49:42]Write i2c OK [21:49:42]MH_I2C_Read... [21:49:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:42]Read from MH i2c: E2 [21:49:42]MH_I2C_Read... [21:49:42]Read from MH i2c: E2 17 00 [21:49:42]MH_I2C_Read... [21:49:42]Read from MH i2c: E2 17 00 72 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 46 [21:49:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:49:42]wFMCommunicate OK [21:49:42]requested_item fd.num is exist - process it [21:49:42]SAM_PROTO_GetFieldsCounters [21:49:42]wFMCommunicate request_size=4 [21:49:42]MH_SAM_APDU [21:49:42]CAPDU: 80 13 00 00 [21:49:42]Write to MH i2c: E2 08 00 73 03 80 13 00 00 00 00 00 00 F2 [21:49:42]Write i2c OK [21:49:42]MH_I2C_Read... [21:49:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:49:42]Read from MH i2c: E2 [21:49:42]MH_I2C_Read... [21:49:42]Read from MH i2c: E2 62 00 [21:49:42]MH_I2C_Read... [21:49:42]Read from MH i2c: E2 62 00 73 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 51 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 8D 01 00 00 5E 04 04 00 8D 01 00 00 57 04 04 00 8E 01 00 00 19 04 04 00 00 00 00 00 90 00 AE [21:49:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 51 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 8D 01 00 00 5E 04 04 00 8D 01 00 00 57 04 04 00 8E 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:49:42]wFMCommunicate OK [21:49:42]SAM_PROTO_GetFieldsCounters done [21:49:42]requested_item shift.num is exist - process it [21:49:42]requested_item shift.opened is exist - process it [21:49:42]req_shift_opened [21:49:42]FM_GetShiftState [21:49:42]SAM_PROTO_GetShiftState [21:49:42]wFMCommunicate request_size=4 [21:49:42]MH_SAM_APDU [21:49:42]CAPDU: 80 13 01 00 [21:49:42]Write to MH i2c: E2 08 00 74 03 80 13 01 00 00 00 00 00 F4 [21:49:42]Write i2c OK [21:49:42]MH_I2C_Read... [21:49:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:42]Read from MH i2c: E2 [21:49:42]MH_I2C_Read... [21:49:42]Read from MH i2c: E2 0E 00 [21:49:42]MH_I2C_Read... [21:49:42]Read from MH i2c: E2 0E 00 74 03 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 BB [21:49:42]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [21:49:42]wFMCommunicate OK [21:49:42]SAM_PROTO_GetShiftState done [21:49:42]FM_GetShiftState done [21:49:42]req_shift_opened done [21:49:42]requested_item shift.open_date is exist - process it [21:49:42]req_shift_open_date [21:49:42]req_shift_open_date done [21:49:42]produce_requested_data done [21:49:42]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228433,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [21:49:42]process_action_free close_receipt [21:49:42]json_value_free [21:49:42]json_value_free done [21:49:42]process_json_proto returns [21:49:42]Send response to host [21:49:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228433,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [21:49:42]free response buf [21:49:42]execute_script done [21:49:42]execute_script returns [21:49:42]free content buf [21:49:42]Sock 7.Close socket [21:49:42]Sock 7.Thread stoped [21:49:46]OFD Sender: No OFD packet to send [21:49:51]OFD Sender: No OFD packet to send [21:49:56]OFD Sender: No OFD packet to send [21:50:01]OFD Sender: No OFD packet to send [21:50:06]OFD Sender: No OFD packet to send [21:50:11]OFD Sender: No OFD packet to send [21:50:16]OFD Sender: No OFD packet to send [21:50:21]OFD Sender: No OFD packet to send [21:50:26]OFD Sender: No OFD packet to send [21:50:31]OFD Sender: No OFD packet to send [21:50:36]OFD Sender: No OFD packet to send [21:50:41]OFD Sender: No OFD packet to send [21:50:46]OFD Sender: No OFD packet to send [21:50:51]OFD Sender: No OFD packet to send [21:50:56]OFD Sender: No OFD packet to send [21:51:01]OFD Sender: No OFD packet to send [21:51:06]OFD Sender: No OFD packet to send [21:51:11]OFD Sender: No OFD packet to send [21:51:16]OFD Sender: No OFD packet to send [21:51:21]OFD Sender: No OFD packet to send [21:51:26]OFD Sender: No OFD packet to send [21:51:31]OFD Sender: No OFD packet to send [21:51:36]OFD Sender: No OFD packet to send [21:51:41]OFD Sender: No OFD packet to send [21:51:46]OFD Sender: No OFD packet to send [21:51:51]OFD Sender: No OFD packet to send [21:51:56]OFD Sender: No OFD packet to send [21:51:56]accept exits with 9 [21:51:56]New connection [21:51:56]New thread 3066834276 created [21:51:56]Thread 3066977636 joined [21:51:56]Waiting for new connection... [21:51:56] Sock 9.Parse request [21:51:56]Sock 9.Check first char [21:51:56]Sock 9.First char is OK [21:51:56]request: POST /json_proto HTTP/1.0 [21:51:56]Method: POST [21:51:56]URL: /json_proto [21:51:56]Method is POST - this is cgi request [21:51:56]url: /json_proto [21:51:56]query_string will be loaded in cgi processing [21:51:56]execute_cgi json_proto POST (null) [21:51:56]execute_cgi path=json_proto method=POST [21:51:56]POST find Content-Length [21:51:56]Host: 172.17.44.195:8080 [21:51:56]Content-Length: 683 [21:51:56]Content-Type: application/json [21:51:56] [21:51:56]POST finish read [21:51:56]Found Content-Length = 683 [21:51:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:51:56]execute_script... [21: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)1965078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:51:56]POST & json_proto [21:51:56]process_json_proto [21:51:56]json parsed OK: [21:51:56]protocol is kg_v1.0 [21:51:56]action value=close_receipt [21:51:56]process_action close_receipt [21:51:56]cmd_close_receipt [21:51:56]MH_GetDate [21:51:56]Write to MH i2c: F0 00 00 75 03 67 [21:51:56]Write i2c OK [21:51:56]MH_I2C_Read... [21:51:56]Read from MH i2c: F0 [21:51:56]MH_I2C_Read... [21:51:56]Read from MH i2c: F0 09 00 [21:51:56]MH_I2C_Read... [21:51:56]Read from MH i2c: F0 09 00 75 03 00 7C 1E 18 67 82 C9 CF 66 09 [21:51:56]GetLastDocTimeStamp 1729633778 [21:51:56]current date 1729633916 [21:51:56]FM_GetShiftState [21:51:56]SAM_PROTO_GetShiftState [21:51:56]wFMCommunicate request_size=4 [21:51:56]MH_SAM_APDU [21:51:56]CAPDU: 80 13 01 00 [21:51:56]Write to MH i2c: E2 08 00 76 03 80 13 01 00 00 00 00 00 F6 [21:51:56]Write i2c OK [21:51:56]MH_I2C_Read... [21:51:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:56]Read from MH i2c: E2 [21:51:56]MH_I2C_Read... [21:51:56]Read from MH i2c: E2 0E 00 [21:51:56]MH_I2C_Read... [21:51:56]Read from MH i2c: E2 0E 00 76 03 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 BD [21:51:56]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [21:51:56]wFMCommunicate OK [21:51:56]SAM_PROTO_GetShiftState done [21:51:56]FM_GetShiftState done [21:51:56]opened in 1729555538 [21:51:56]opened+sec_in_day 1729641938 [21:51:56]quantity*price = 100021 [21:51:56]sum+1 = 100023 [21:51:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 398 22.10.2024 21:51 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228434 ФПД: 184083144037690 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T215157&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228434&fm=184083144037690&tin=02508201610067®Number=0000000000091685&sum=100000 [21:51:57]StoreToDocumentArchive [21:51:57]shift 535 fd 228434 [21:51:57]save to /storage/0535/doc_00228434 [21:51:57]save last doc name /storage/0535/doc_00228434 to /storage/kkm_last_doc_name [21:51:57]save OK [21:51:57]Clear old archive folders... [21:51:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:51:57]tlvbuf is 002EDFE0 [21:51:57]SAM_PROTO_ClearQueue [21:51:57]wFMCommunicate request_size=4 [21:51:57]MH_SAM_APDU [21:51:57]CAPDU: 80 09 00 00 [21:51:57]Write to MH i2c: E2 08 00 83 03 80 09 00 00 00 00 00 00 F8 [21:51:57]Write i2c OK [21:51:57]MH_I2C_Read... [21:51:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:51:57]Read from MH i2c: E2 [21:51:57]MH_I2C_Read... [21:51:57]Read from MH i2c: E2 03 00 [21:51:57]MH_I2C_Read... [21:51:57]Read from MH i2c: E2 03 00 83 03 00 90 00 FA [21:51:57]RAPDU: 90 00 [21:51:57]wFMCommunicate OK [21:51:57]SAM_PROTO_ClearQueue done [21:51:57]KKMCreateOFDPacket [21:51:57]OFDProtocolAddRootSTLVToBuf [21:51:57]FM_MakeSignedData [21:51:57]FM_MakeSignedData [21:51:57]SAM_PROTO_SignData [21:51:57]wFMCommunicate request_size=4 [21:51:57]MH_SAM_APDU [21:51:57]CAPDU: 80 0D 01 02 [21:51:57]Write to MH i2c: E2 08 00 84 03 80 0D 01 02 00 00 00 00 00 [21:51:57]Write i2c OK [21:51:57]MH_I2C_Read... [21:51:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:51:57]Read from MH i2c: E2 [21:51:57]MH_I2C_Read... [21:51:57]Read from MH i2c: E2 03 00 [21:51:57]MH_I2C_Read... [21:51:57]Read from MH i2c: E2 03 00 84 03 00 90 00 FB [21:51:57]RAPDU: 90 00 [21:51:57]wFMCommunicate OK [21:51:57]wFMCommunicate request_size=255 [21:51:57]MH_SAM_APDU [21: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 7D 1E 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 52 7C 03 00 35 04 06 00 A7 [21:51:57]Write to MH i2c: E2 02 01 85 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 7D 1E 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 52 7C 03 00 35 04 06 00 A7 00 00 EE [21:51:57]Write i2c OK [21:51:57]MH_I2C_Read... [21:51:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:57]Read from MH i2c: E2 [21:51:57]MH_I2C_Read... [21:51:57]Read from MH i2c: E2 03 00 [21:51:57]MH_I2C_Read... [21:51:57]Read from MH i2c: E2 03 00 85 03 00 90 00 FC [21:51:57]RAPDU: 90 00 [21:51:57]wFMCommunicate OK [21:51:57]wFMCommunicate request_size=10 [21:51:57]MH_SAM_APDU [21:51:57]CAPDU: 80 0D 02 02 05 6C 32 68 D5 3A [21:51:57]Write to MH i2c: E2 0D 00 86 03 80 0D 02 02 05 00 6C 32 68 D5 3A 00 00 22 [21:51:57]Write i2c OK [21:51:57]MH_I2C_Read... [21:51:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:58]Read from MH i2c: E2 [21:51:58]MH_I2C_Read... [21:51:58]Read from MH i2c: E2 03 00 [21:51:58]MH_I2C_Read... [21:51:58]Read from MH i2c: E2 03 00 86 03 00 90 00 FD [21:51:58]RAPDU: 90 00 [21:51:58]wFMCommunicate OK [21:51:58]wFMCommunicate request_size=4 [21:51:58]MH_SAM_APDU [21:51:58]CAPDU: 80 0D 03 02 [21:51:58]Write to MH i2c: E2 08 00 87 03 80 0D 03 02 00 00 00 00 05 [21:51:58]Write i2c OK [21:51:58]MH_I2C_Read... [21:51:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:51:58]Read from MH i2c: E2 [21:51:58]MH_I2C_Read... [21:51:58]Read from MH i2c: E2 0B 00 [21:51:58]MH_I2C_Read... [21:51:58]Read from MH i2c: E2 0B 00 87 03 00 5F F1 CF 32 DE 09 49 D2 90 00 59 [21:51:58]RAPDU: 5F F1 CF 32 DE 09 49 D2 90 00 [21:51:58]wFMCommunicate OK [21:51:58]SAM_PROTO_SignData done [21:51:58]FM_MakeSignedData done [21:51:58]CreateOFDProtocolMessage [21:51:58]wFMCommunicate request_size=4 [21:51:58]MH_SAM_APDU [21:51:58]CAPDU: 80 11 00 00 [21:51:58]Write to MH i2c: E2 08 00 88 03 80 11 00 00 00 00 00 00 05 [21:51:58]Write i2c OK [21:51:58]MH_I2C_Read... [21:51:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:58]Read from MH i2c: E2 [21:51:58]MH_I2C_Read... [21:51:58]Read from MH i2c: E2 17 00 [21:51:58]MH_I2C_Read... [21:51:58]Read from MH i2c: E2 17 00 88 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5C [21:51:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:51:58]wFMCommunicate OK [21:51:58]CreateOFDProtocolMessage done [21:51:58]OFDSenderStorePacket 228434 [21:51:58]StoreOFDPacket docnum=228434 [21:51:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 EB 95 07 01 87 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 7D 1E 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 52 7C 03 00 35 04 06 00 A7 6C 32 68 D5 3A 5F F1 CF 32 DE 09 49 D2 [21:51:58]CheckFolder [21:51:58]dirname=/storage/ofd_packets [21:51:58]CheckFolder done [21:51:58]ProducePacketName [21:51:58]name=ofd_packets/00228434 [21:51:58]NVStorageSaveData ofd_packets/00228434 [21:51:58]File name is /storage/ofd_packets/00228434 [21:51:58]Write 301 bytes [21:51:58]NVStorageSaveData done [21:51:58]OFDSenderStorePacket done [21:51:58]KKMCreateOFDPacket done [21:51:58]NVStorageSaveData kkm_last_timestamp [21:51:58]File name is /storage/kkm_last_timestamp [21:51:58]Write 4 bytes [21:51:58]NVStorageSaveData done [21:51:58]ExternCall_PrintAddStr [21:51:58]wPrintStart [21:51:58]Write to MH i2c: 01 00 00 89 03 8C [21:51:58]Write i2c OK [21:51:58]MH_I2C_Read... [21:51:58]Read from MH i2c: 01 [21:51:58]MH_I2C_Read... [21:51:58]Read from MH i2c: 01 07 00 [21:51:58]MH_I2C_Read... [21:51:58]Read from MH i2c: 01 07 00 89 03 00 00 00 00 00 FF 0F A1 [21:51:58]RasterBufferAndPrint [21:51:58]line Счет N : (1)1965078 [21:51:58]line ИНН: 02508201610067 [21:51:58]line Контрольно-Кассовый Чек [21:51:58]line ПРОДАЖА [21:51:58]line ТРК (МРК, ГНК) : 34 [21:51:58]line Товар: 2710124500 [21:51:58]line Аи-95-К-5 [21:51:58]line 13.480 * 74.20 [21:51:58]line = 1000.22 [21:51:58]line НДС 12% НСП 1% [21:51:58]line > о реализуемом товаре [21:51:58]line ОКРУГЛЕНИЕ: -0.22 [21:51:58]line ИТОГО: 1000.00 [21:51:58]line Внесено: 1000.00 [21:51:58]line СДАЧА: 0.00 [21:51:58]line НСП 1% : 8.85 [21:51:58]line НДС 12% : 106.22 [21:51:58]line Наличными: 1000.00 [21:51:58]line Безнал.: 0.00 [21:51:58]line Место: АЗС № 133 "Партнер Нефть" [21:51:58]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:51:58]line СНО: Общий режим [21:51:58]line Чек 398 22.10.2024 21:51 [21:51:58]line Смена: 535 ФФД: 1.0 [21:51:58]line ЗНМ: 0300000091 [21:51:58]line РНМ: 0000000000091685 [21:51:58]line Версия ККМ: 001 [21:51:58]line ФМ: 0000000000871839 [21:51:58]line ФД: 228434 [21:51:58]line ФПД: 184083144037690 [21:51:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T215157&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228434&fm=184083144037690&tin=02508201610067®Number=0000000000091685&sum=100000 [21:51:58]OFD Sender: Processing packet 228434 [packets to send 38, broken 37] [21:51:58]ProducePacketName [21:51:58]name=ofd_packets/00228434 [21:51:58]OFD Sender: To server: pG, [21:51:58]CommunicateWithHost lk.salyk.kg:30040 [21:51:58]ConnectInit lk.salyk.kg [21:51:58]written 0, free lines is 4095 [21:51:58]Connected sock=7 [21:51:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 EB 95 07 01 87 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 7D 1E 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 52 7C 03 00 35 04 06 00 A7 6C 32 68 D5 3A 5F F1 CF 32 DE 09 49 D2 [21:51:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 E9 7C 47 00 60 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 52 7C 03 00 F4 03 04 00 74 C9 17 67 B6 04 01 00 00 DB 2D A0 17 E9 72 9F 57 [21:51:58]CommunicateWithHost err = 0 [21:51:58]CheckOFDResponse [21:51:58]1017 (14) - 77093643461234 [21:51:58]1041 (16) - 0000000000871839 [21:51:58]1040 (4) - 228434 [21:51:58]1012 (4) - 22.10.2024 15:49 [21:51:58]1206 (1) - 0 [21:51:58]OFD Sender: Remove packet 228434 [21:51:58]ProducePacketName [21:51:58]name=ofd_packets/00228434 [21:51:58]NVStorageDeleteData [21:51:58]Write to MH i2c: 01 00 00 B3 03 B6 [21:51:58]Write i2c OK [21:51:58]MH_I2C_Read... [21:51:58]Read from MH i2c: 01 [21:51:58]MH_I2C_Read... [21:51:58]Read from MH i2c: 01 07 00 [21:51:58]MH_I2C_Read... [21:51:58]Read from MH i2c: 01 07 00 B3 03 00 00 00 00 00 AD 0C 76 [21:51:58]RasterBufferAndPrint [21:51:58]line [21:51:58]line [21:51:58]line [21:51:58]line [21:51:58]line [21:51:58]written 0, free lines is 3249 [21:51:58]MH_Cut [21:51:58]Write to MH i2c: D1 01 00 BA 03 01 8F [21:51:58]Write i2c OK [21:51:58]MH_I2C_Read... [21:51:58]Read from MH i2c: D1 [21:51:58]MH_I2C_Read... [21:51:58]Read from MH i2c: D1 01 00 [21:51:58]MH_I2C_Read... [21:51:58]Read from MH i2c: D1 01 00 BA 03 00 8E [21:51:58]Write to MH i2c: 01 00 00 BB 03 BE [21:51:58]Write i2c OK [21:51:58]MH_I2C_Read... [21:51:59]OFD Sender: No OFD packet to send [21:51:59]*** Cut start [21:51:59]*** Partial cut [21:51:59]*** CUTSNS_PIN = 1 [21:51:59]*** CUTSNS_PIN = 0 [21:52:00]*** Brake cut motor [21:52:00]Read from MH i2c: 01 [21:52:00]MH_I2C_Read... [21:52:00]*** Stop cut motor [21:52:00]*** Cut end [21:52:00]Read from MH i2c: 01 07 00 [21:52:00]MH_I2C_Read... [21:52:00]Read from MH i2c: 01 07 00 BB 03 00 00 00 00 00 FF 0F D3 [21:52:00]process_action close_receipt done [21:52:00]requested_data is exist [21:52:00]produce_requested_data [21:52:00]requested_item fm.sn is exist - process it [21:52:00]wFMCommunicate request_size=4 [21:52:00]MH_SAM_APDU [21:52:00]CAPDU: 80 11 00 00 [21:52:00]Write to MH i2c: E2 08 00 BC 03 80 11 00 00 00 00 00 00 39 [21:52:00]Write i2c OK [21:52:00]MH_I2C_Read... [21:52:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:00]Read from MH i2c: E2 [21:52:00]MH_I2C_Read... [21:52:00]Read from MH i2c: E2 17 00 [21:52:00]MH_I2C_Read... [21:52:00]Read from MH i2c: E2 17 00 BC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 90 [21:52:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:52:00]wFMCommunicate OK [21:52:00]requested_item fd.num is exist - process it [21:52:00]SAM_PROTO_GetFieldsCounters [21:52:00]wFMCommunicate request_size=4 [21:52:00]MH_SAM_APDU [21:52:00]CAPDU: 80 13 00 00 [21:52:00]Write to MH i2c: E2 08 00 BD 03 80 13 00 00 00 00 00 00 3C [21:52:00]Write i2c OK [21:52:00]MH_I2C_Read... [21:52:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:52:00]Read from MH i2c: E2 [21:52:00]MH_I2C_Read... [21:52:00]Read from MH i2c: E2 62 00 [21:52:00]MH_I2C_Read... [21:52:00]Read from MH i2c: E2 62 00 BD 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 52 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 8E 01 00 00 5E 04 04 00 8E 01 00 00 57 04 04 00 8F 01 00 00 19 04 04 00 00 00 00 00 90 00 FC [21:52:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 52 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 8E 01 00 00 5E 04 04 00 8E 01 00 00 57 04 04 00 8F 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:52:00]wFMCommunicate OK [21:52:00]SAM_PROTO_GetFieldsCounters done [21:52:00]requested_item shift.num is exist - process it [21:52:00]requested_item shift.opened is exist - process it [21:52:00]req_shift_opened [21:52:00]FM_GetShiftState [21:52:00]SAM_PROTO_GetShiftState [21:52:00]wFMCommunicate request_size=4 [21:52:00]MH_SAM_APDU [21:52:00]CAPDU: 80 13 01 00 [21:52:00]Write to MH i2c: E2 08 00 BE 03 80 13 01 00 00 00 00 00 3E [21:52:00]Write i2c OK [21:52:00]MH_I2C_Read... [21:52:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:00]Read from MH i2c: E2 [21:52:00]MH_I2C_Read... [21:52:00]Read from MH i2c: E2 0E 00 [21:52:00]MH_I2C_Read... [21:52:00]Read from MH i2c: E2 0E 00 BE 03 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 05 [21:52:00]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [21:52:00]wFMCommunicate OK [21:52:00]SAM_PROTO_GetShiftState done [21:52:00]FM_GetShiftState done [21:52:00]req_shift_opened done [21:52:00]requested_item shift.open_date is exist - process it [21:52:00]req_shift_open_date [21:52:00]req_shift_open_date done [21:52:00]produce_requested_data done [21:52:00]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228434,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [21:52:00]process_action_free close_receipt [21:52:00]json_value_free [21:52:00]json_value_free done [21:52:00]process_json_proto returns [21:52:00]Send response to host [21:52:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228434,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [21:52:00]free response buf [21:52:00]execute_script done [21:52:00]execute_script returns [21:52:00]free content buf [21:52:00]Sock 9.Close socket [21:52:00]Sock 9.Thread stoped [21:52:01]accept exits with 10 [21:52:01]New connection [21:52:01]New thread 3066977636 created [21:52:01]Thread 3066834276 joined [21:52:01]Waiting for new connection... [21:52:01] Sock 10.Parse request [21:52:01]Sock 10.Check first char [21:52:01]Sock 10.First char is OK [21:52:01]request: POST /json_proto HTTP/1.0 [21:52:01]Method: POST [21:52:01]URL: /json_proto [21:52:01]Method is POST - this is cgi request [21:52:01]url: /json_proto [21:52:01]query_string will be loaded in cgi processing [21:52:01]execute_cgi json_proto POST (null) [21:52:01]execute_cgi path=json_proto method=POST [21:52:01]POST find Content-Length [21:52:01]Host: 172.17.44.195:8080 [21:52:01]Content-Length: 679 [21:52:01]Content-Type: application/json [21:52:01] [21:52:01]POST finish read [21:52:01]Found Content-Length = 679 [21:52:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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:52:01]execute_script... [21:52: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)1965079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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:52:01]POST & json_proto [21:52:01]process_json_proto [21:52:01]json parsed OK: [21:52:01]protocol is kg_v1.0 [21:52:01]action value=close_receipt [21:52:01]process_action close_receipt [21:52:01]cmd_close_receipt [21:52:01]MH_GetDate [21:52:01]Write to MH i2c: F0 00 00 BF 03 B1 [21:52:01]Write i2c OK [21:52:01]MH_I2C_Read... [21:52:01]Read from MH i2c: F0 [21:52:01]MH_I2C_Read... [21:52:01]Read from MH i2c: F0 09 00 [21:52:01]MH_I2C_Read... [21:52:01]Read from MH i2c: F0 09 00 BF 03 00 81 1E 18 67 82 C9 CF 66 58 [21:52:01]GetLastDocTimeStamp 1729633917 [21:52:01]current date 1729633921 [21:52:01]FM_GetShiftState [21:52:01]SAM_PROTO_GetShiftState [21:52:01]wFMCommunicate request_size=4 [21:52:01]MH_SAM_APDU [21:52:01]CAPDU: 80 13 01 00 [21:52:01]Write to MH i2c: E2 08 00 C0 03 80 13 01 00 00 00 00 00 40 [21:52:01]Write i2c OK [21:52:01]MH_I2C_Read... [21:52:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:01]Read from MH i2c: E2 [21:52:01]MH_I2C_Read... [21:52:01]Read from MH i2c: E2 0E 00 [21:52:01]MH_I2C_Read... [21:52:01]Read from MH i2c: E2 0E 00 C0 03 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 07 [21:52:01]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [21:52:01]wFMCommunicate OK [21:52:01]SAM_PROTO_GetShiftState done [21:52:01]FM_GetShiftState done [21:52:01]opened in 1729555538 [21:52:01]opened+sec_in_day 1729641938 [21:52:01]quantity*price = 70044 [21:52:01]sum+1 = 70045 [21:52:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 399 22.10.2024 21:52 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228435 ФПД: 193547397810945 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T215201&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228435&fm=193547397810945&tin=02508201610067®Number=0000000000091685&sum=70000 [21:52:02]StoreToDocumentArchive [21:52:02]shift 535 fd 228435 [21:52:02]save to /storage/0535/doc_00228435 [21:52:02]save last doc name /storage/0535/doc_00228435 to /storage/kkm_last_doc_name [21:52:02]save OK [21:52:02]Clear old archive folders... [21:52:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:52:02]tlvbuf is 002EFB40 [21:52:02]SAM_PROTO_ClearQueue [21:52:02]wFMCommunicate request_size=4 [21:52:02]MH_SAM_APDU [21:52:02]CAPDU: 80 09 00 00 [21:52:02]Write to MH i2c: E2 08 00 CD 03 80 09 00 00 00 00 00 00 42 [21:52:02]Write i2c OK [21:52:02]MH_I2C_Read... [21:52:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:52:02]Read from MH i2c: E2 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: E2 03 00 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: E2 03 00 CD 03 00 90 00 44 [21:52:02]RAPDU: 90 00 [21:52:02]wFMCommunicate OK [21:52:02]SAM_PROTO_ClearQueue done [21:52:02]KKMCreateOFDPacket [21:52:02]OFDProtocolAddRootSTLVToBuf [21:52:02]FM_MakeSignedData [21:52:02]FM_MakeSignedData [21:52:02]SAM_PROTO_SignData [21:52:02]wFMCommunicate request_size=4 [21:52:02]MH_SAM_APDU [21:52:02]CAPDU: 80 0D 01 02 [21:52:02]Write to MH i2c: E2 08 00 CE 03 80 0D 01 02 00 00 00 00 4A [21:52:02]Write i2c OK [21:52:02]MH_I2C_Read... [21:52:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:52:02]Read from MH i2c: E2 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: E2 03 00 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: E2 03 00 CE 03 00 90 00 45 [21:52:02]RAPDU: 90 00 [21:52:02]wFMCommunicate OK [21:52:02]wFMCommunicate request_size=255 [21:52:02]MH_SAM_APDU [21:52:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 8F 01 00 00 F4 03 04 00 81 1E 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 53 7C 03 00 35 04 06 00 B0 [21:52:02]Write to MH i2c: E2 02 01 CF 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 8F 01 00 00 F4 03 04 00 81 1E 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 53 7C 03 00 35 04 06 00 B0 00 00 3A [21:52:02]Write i2c OK [21:52:02]MH_I2C_Read... [21:52:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:02]Read from MH i2c: E2 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: E2 03 00 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: E2 03 00 CF 03 00 90 00 46 [21:52:02]RAPDU: 90 00 [21:52:02]wFMCommunicate OK [21:52:02]wFMCommunicate request_size=10 [21:52:02]MH_SAM_APDU [21:52:02]CAPDU: 80 0D 02 02 05 07 C3 E4 CB 01 [21:52:02]Write to MH i2c: E2 0D 00 D0 03 80 0D 02 02 05 00 07 C3 E4 CB 01 00 00 D1 [21:52:02]Write i2c OK [21:52:02]MH_I2C_Read... [21:52:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:03]Read from MH i2c: E2 [21:52:03]MH_I2C_Read... [21:52:03]Read from MH i2c: E2 03 00 [21:52:03]MH_I2C_Read... [21:52:03]Read from MH i2c: E2 03 00 D0 03 00 90 00 47 [21:52:03]RAPDU: 90 00 [21:52:03]wFMCommunicate OK [21:52:03]wFMCommunicate request_size=4 [21:52:03]MH_SAM_APDU [21:52:03]CAPDU: 80 0D 03 02 [21:52:03]Write to MH i2c: E2 08 00 D1 03 80 0D 03 02 00 00 00 00 4F [21:52:03]Write i2c OK [21:52:03]MH_I2C_Read... [21:52:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:52:03]Read from MH i2c: E2 [21:52:03]MH_I2C_Read... [21:52:03]Read from MH i2c: E2 0B 00 [21:52:03]MH_I2C_Read... [21:52:03]Read from MH i2c: E2 0B 00 D1 03 00 77 1E EA 64 73 1B 3B 01 90 00 FD [21:52:03]RAPDU: 77 1E EA 64 73 1B 3B 01 90 00 [21:52:03]wFMCommunicate OK [21:52:03]SAM_PROTO_SignData done [21:52:03]FM_MakeSignedData done [21:52:03]CreateOFDProtocolMessage [21:52:03]wFMCommunicate request_size=4 [21:52:03]MH_SAM_APDU [21:52:03]CAPDU: 80 11 00 00 [21:52:03]Write to MH i2c: E2 08 00 D2 03 80 11 00 00 00 00 00 00 4F [21:52:03]Write i2c OK [21:52:03]MH_I2C_Read... [21:52:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:03]Read from MH i2c: E2 [21:52:03]MH_I2C_Read... [21:52:03]Read from MH i2c: E2 17 00 [21:52:03]MH_I2C_Read... [21:52:03]Read from MH i2c: E2 17 00 D2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A6 [21:52:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:52:03]wFMCommunicate OK [21:52:03]CreateOFDProtocolMessage done [21:52:03]OFDSenderStorePacket 228435 [21:52:03]StoreOFDPacket docnum=228435 [21:52:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 E0 8C 07 01 94 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 8F 01 00 00 F4 03 04 00 81 1E 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 53 7C 03 00 35 04 06 00 B0 07 C3 E4 CB 01 77 1E EA 64 73 1B 3B 01 [21:52:03]CheckFolder [21:52:03]dirname=/storage/ofd_packets [21:52:03]CheckFolder done [21:52:03]ProducePacketName [21:52:03]name=ofd_packets/00228435 [21:52:03]NVStorageSaveData ofd_packets/00228435 [21:52:03]File name is /storage/ofd_packets/00228435 [21:52:03]Write 301 bytes [21:52:03]NVStorageSaveData done [21:52:03]OFDSenderStorePacket done [21:52:03]KKMCreateOFDPacket done [21:52:03]NVStorageSaveData kkm_last_timestamp [21:52:03]File name is /storage/kkm_last_timestamp [21:52:03]Write 4 bytes [21:52:03]NVStorageSaveData done [21:52:03]ExternCall_PrintAddStr [21:52:03]wPrintStart [21:52:03]Write to MH i2c: 01 00 00 D3 03 D6 [21:52:03]Write i2c OK [21:52:03]MH_I2C_Read... [21:52:03]Read from MH i2c: 01 [21:52:03]MH_I2C_Read... [21:52:03]Read from MH i2c: 01 07 00 [21:52:03]MH_I2C_Read... [21:52:03]Read from MH i2c: 01 07 00 D3 03 00 00 00 00 00 FF 0F EB [21:52:03]RasterBufferAndPrint [21:52:03]line Счет N : (1)1965079 [21:52:03]line ИНН: 02508201610067 [21:52:03]line Контрольно-Кассовый Чек [21:52:03]line ПРОДАЖА [21:52:03]line ТРК (МРК, ГНК) : 43 [21:52:03]line Товар: 2710124130 [21:52:03]line Аи-92-К-5 [21:52:03]line 10.470 * 66.90 [21:52:03]line = 700.44 [21:52:03]line НДС 12% НСП 1% [21:52:03]line > о реализуемом товаре [21:52:03]line ОКРУГЛЕНИЕ: -0.44 [21:52:03]line ИТОГО: 700.00 [21:52:03]line Внесено: 700.00 [21:52:03]line СДАЧА: 0.00 [21:52:03]line НСП 1% : 6.20 [21:52:03]line НДС 12% : 74.38 [21:52:03]line Наличными: 700.00 [21:52:03]line Безнал.: 0.00 [21:52:03]line Место: АЗС № 133 "Партнер Нефть" [21:52:03]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:52:03]line СНО: Общий режим [21:52:03]line Чек 399 22.10.2024 21:52 [21:52:03]line Смена: 535 ФФД: 1.0 [21:52:03]line ЗНМ: 0300000091 [21:52:03]line РНМ: 0000000000091685 [21:52:03]line Версия ККМ: 001 [21:52:03]line ФМ: 0000000000871839 [21:52:03]line ФД: 228435 [21:52:03]line ФПД: 193547397810945 [21:52:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T215201&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228435&fm=193547397810945&tin=02508201610067®Number=0000000000091685&sum=70000 [21:52:03]written 0, free lines is 4095 [21:52:03]OFD Sender: Processing packet 228435 [packets to send 38, broken 37] [21:52:03]ProducePacketName [21:52:03]name=ofd_packets/00228435 [21:52:03]OFD Sender: To server: pG, [21:52:03]CommunicateWithHost lk.salyk.kg:30040 [21:52:03]ConnectInit lk.salyk.kg [21:52:03]Connected sock=9 [21:52:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 E0 8C 07 01 94 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 8F 01 00 00 F4 03 04 00 81 1E 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 53 7C 03 00 35 04 06 00 B0 07 C3 E4 CB 01 77 1E EA 64 73 1B 3B 01 [21:52:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 84 55 47 00 43 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 53 7C 03 00 F4 03 04 00 78 C9 17 67 B6 04 01 00 00 98 3D 24 99 7F 45 63 05 [21:52:03]CommunicateWithHost err = 0 [21:52:03]CheckOFDResponse [21:52:03]1017 (14) - 77093643461234 [21:52:03]1041 (16) - 0000000000871839 [21:52:03]1040 (4) - 228435 [21:52:03]1012 (4) - 22.10.2024 15:49 [21:52:03]1206 (1) - 0 [21:52:03]OFD Sender: Remove packet 228435 [21:52:03]ProducePacketName [21:52:03]name=ofd_packets/00228435 [21:52:03]NVStorageDeleteData [21:52:03]Write to MH i2c: 01 00 00 FD 03 00 [21:52:03]Write i2c OK [21:52:03]MH_I2C_Read... [21:52:03]Read from MH i2c: 01 [21:52:03]MH_I2C_Read... [21:52:03]Read from MH i2c: 01 07 00 [21:52:03]MH_I2C_Read... [21:52:03]Read from MH i2c: 01 07 00 FD 03 00 00 00 00 00 B1 0C C4 [21:52:03]RasterBufferAndPrint [21:52:03]line [21:52:03]line [21:52:03]line [21:52:03]line [21:52:03]line [21:52:03]written 0, free lines is 3259 [21:52:03]MH_Cut [21:52:03]Write to MH i2c: D1 01 00 04 04 01 DA [21:52:03]Write i2c OK [21:52:03]MH_I2C_Read... [21:52:03]Read from MH i2c: D1 [21:52:03]MH_I2C_Read... [21:52:03]Read from MH i2c: D1 01 00 [21:52:03]MH_I2C_Read... [21:52:03]Read from MH i2c: D1 01 00 04 04 00 D9 [21:52:03]Write to MH i2c: 01 00 00 05 04 09 [21:52:03]Write i2c OK [21:52:03]MH_I2C_Read... [21:52:04]OFD Sender: No OFD packet to send [21:52:04]*** Cut start [21:52:04]*** Partial cut [21:52:04]*** CUTSNS_PIN = 1 [21:52:04]*** CUTSNS_PIN = 0 [21:52:04]*** Brake cut motor [21:52:05]Read from MH i2c: 01 [21:52:05]MH_I2C_Read... [21:52:05]*** Stop cut motor [21:52:05]*** Cut end [21:52:05]Read from MH i2c: 01 07 00 [21:52:05]MH_I2C_Read... [21:52:05]Read from MH i2c: 01 07 00 05 04 00 00 00 00 00 FF 0F 1E [21:52:05]process_action close_receipt done [21:52:05]requested_data is exist [21:52:05]produce_requested_data [21:52:05]requested_item fm.sn is exist - process it [21:52:05]wFMCommunicate request_size=4 [21:52:05]MH_SAM_APDU [21:52:05]CAPDU: 80 11 00 00 [21:52:05]Write to MH i2c: E2 08 00 06 04 80 11 00 00 00 00 00 00 84 [21:52:05]Write i2c OK [21:52:05]MH_I2C_Read... [21:52:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:05]Read from MH i2c: E2 [21:52:05]MH_I2C_Read... [21:52:05]Read from MH i2c: E2 17 00 [21:52:05]MH_I2C_Read... [21:52:05]Read from MH i2c: E2 17 00 06 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DB [21:52:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:52:05]wFMCommunicate OK [21:52:05]requested_item fd.num is exist - process it [21:52:05]SAM_PROTO_GetFieldsCounters [21:52:05]wFMCommunicate request_size=4 [21:52:05]MH_SAM_APDU [21:52:05]CAPDU: 80 13 00 00 [21:52:05]Write to MH i2c: E2 08 00 07 04 80 13 00 00 00 00 00 00 87 [21:52:05]Write i2c OK [21:52:05]MH_I2C_Read... [21:52:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:52:05]Read from MH i2c: E2 [21:52:05]MH_I2C_Read... [21:52:05]Read from MH i2c: E2 62 00 [21:52:05]MH_I2C_Read... [21:52:05]Read from MH i2c: E2 62 00 07 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 53 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 8F 01 00 00 5E 04 04 00 8F 01 00 00 57 04 04 00 90 01 00 00 19 04 04 00 00 00 00 00 90 00 4B [21:52:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 53 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 8F 01 00 00 5E 04 04 00 8F 01 00 00 57 04 04 00 90 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:52:05]wFMCommunicate OK [21:52:05]SAM_PROTO_GetFieldsCounters done [21:52:05]requested_item shift.num is exist - process it [21:52:05]requested_item shift.opened is exist - process it [21:52:05]req_shift_opened [21:52:05]FM_GetShiftState [21:52:05]SAM_PROTO_GetShiftState [21:52:05]wFMCommunicate request_size=4 [21:52:05]MH_SAM_APDU [21:52:05]CAPDU: 80 13 01 00 [21:52:05]Write to MH i2c: E2 08 00 08 04 80 13 01 00 00 00 00 00 89 [21:52:05]Write i2c OK [21:52:05]MH_I2C_Read... [21:52:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:05]Read from MH i2c: E2 [21:52:05]MH_I2C_Read... [21:52:05]Read from MH i2c: E2 0E 00 [21:52:05]MH_I2C_Read... [21:52:05]Read from MH i2c: E2 0E 00 08 04 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 50 [21:52:05]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [21:52:05]wFMCommunicate OK [21:52:05]SAM_PROTO_GetShiftState done [21:52:05]FM_GetShiftState done [21:52:05]req_shift_opened done [21:52:05]requested_item shift.open_date is exist - process it [21:52:05]req_shift_open_date [21:52:05]req_shift_open_date done [21:52:05]produce_requested_data done [21:52:05]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228435,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [21:52:05]process_action_free close_receipt [21:52:05]json_value_free [21:52:05]json_value_free done [21:52:05]process_json_proto returns [21:52:05]Send response to host [21:52:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228435,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [21:52:05]free response buf [21:52:05]execute_script done [21:52:05]execute_script returns [21:52:05]free content buf [21:52:05]Sock 10.Close socket [21:52:05]Sock 10.Thread stoped [21:52:09]OFD Sender: No OFD packet to send [21:52:14]OFD Sender: No OFD packet to send [21:52:19]OFD Sender: No OFD packet to send [21:52:24]OFD Sender: No OFD packet to send [21:52:29]OFD Sender: No OFD packet to send [21:52:34]OFD Sender: No OFD packet to send [21:52:39]OFD Sender: No OFD packet to send [21:52:44]OFD Sender: No OFD packet to send [21:52:49]OFD Sender: No OFD packet to send [21:52:54]OFD Sender: No OFD packet to send [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:18]accept exits with 7 [21:53:18]New connection [21:53:18]New thread 3066834276 created [21:53:18]Thread 3066977636 joined [21:53:18]Waiting for new connection... [21:53:18] Sock 7.Parse request [21:53:18]Sock 7.Check first char [21:53:18]Sock 7.First char is OK [21:53:18]request: POST /json_proto HTTP/1.0 [21:53:18]Method: POST [21:53:18]URL: /json_proto [21:53:18]Method is POST - this is cgi request [21:53:18]url: /json_proto [21:53:18]query_string will be loaded in cgi processing [21:53:18]execute_cgi json_proto POST (null) [21:53:18]execute_cgi path=json_proto method=POST [21:53:18]POST find Content-Length [21:53:18]Host: 172.17.44.195:8080 [21:53:18]Content-Length: 770 [21:53:18]Content-Type: application/json [21:53:18] [21:53:18]POST finish read [21:53:18]Found Content-Length = 770 [21:53:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965080", "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" : 66.90, "quantity" : 22.430, "sum" : 1500.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: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:18]execute_script... [21:53:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965080", "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" : 66.90, "quantity" : 22.430, "sum" : 1500.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: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:18]POST & json_proto [21:53:18]process_json_proto [21:53:18]json parsed OK: [21:53:18]protocol is kg_v1.0 [21:53:18]action value=close_receipt [21:53:18]process_action close_receipt [21:53:18]cmd_close_receipt [21:53:18]MH_GetDate [21:53:18]Write to MH i2c: F0 00 00 09 04 FC [21:53:18]Write i2c OK [21:53:18]MH_I2C_Read... [21:53:18]Read from MH i2c: F0 [21:53:18]MH_I2C_Read... [21:53:18]Read from MH i2c: F0 09 00 [21:53:18]MH_I2C_Read... [21:53:18]Read from MH i2c: F0 09 00 09 04 00 CE 1E 18 67 82 C9 CF 66 F0 [21:53:18]GetLastDocTimeStamp 1729633921 [21:53:18]current date 1729633998 [21:53:18]FM_GetShiftState [21:53:18]SAM_PROTO_GetShiftState [21:53:18]wFMCommunicate request_size=4 [21:53:18]MH_SAM_APDU [21:53:18]CAPDU: 80 13 01 00 [21:53:18]Write to MH i2c: E2 08 00 0A 04 80 13 01 00 00 00 00 00 8B [21:53:18]Write i2c OK [21:53:18]MH_I2C_Read... [21:53:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:18]Read from MH i2c: E2 [21:53:18]MH_I2C_Read... [21:53:18]Read from MH i2c: E2 0E 00 [21:53:18]MH_I2C_Read... [21:53:18]Read from MH i2c: E2 0E 00 0A 04 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 52 [21:53:18]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [21:53:18]wFMCommunicate OK [21:53:18]SAM_PROTO_GetShiftState done [21:53:18]FM_GetShiftState done [21:53:18]opened in 1729555538 [21:53:18]opened+sec_in_day 1729641938 [21:53:18]quantity*price = 150056 [21:53:18]sum+1 = 150058 [21:53:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 400 22.10.2024 21:53 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 228436 ФПД: 28848360515096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T215318&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228436&fm=28848360515096&tin=02508201610067®Number=0000000000091685&sum=150057 [21:53:19]StoreToDocumentArchive [21:53:19]shift 535 fd 228436 [21:53:19]save to /storage/0535/doc_00228436 [21:53:19]save last doc name /storage/0535/doc_00228436 to /storage/kkm_last_doc_name [21:53:19]save OK [21:53:19]Clear old archive folders... [21:53:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:53:19]tlvbuf is 00304440 [21:53:19]SAM_PROTO_ClearQueue [21:53:19]wFMCommunicate request_size=4 [21:53:19]MH_SAM_APDU [21:53:19]CAPDU: 80 09 00 00 [21:53:19]Write to MH i2c: E2 08 00 17 04 80 09 00 00 00 00 00 00 8D [21:53:19]Write i2c OK [21:53:19]MH_I2C_Read... [21:53:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:53:19]Read from MH i2c: E2 [21:53:19]MH_I2C_Read... [21:53:19]Read from MH i2c: E2 03 00 [21:53:19]MH_I2C_Read... [21:53:19]Read from MH i2c: E2 03 00 17 04 00 90 00 8F [21:53:19]RAPDU: 90 00 [21:53:19]wFMCommunicate OK [21:53:19]SAM_PROTO_ClearQueue done [21:53:19]KKMCreateOFDPacket [21:53:19]OFDProtocolAddRootSTLVToBuf [21:53:19]FM_MakeSignedData [21:53:19]FM_MakeSignedData [21:53:19]SAM_PROTO_SignData [21:53:19]wFMCommunicate request_size=4 [21:53:19]MH_SAM_APDU [21:53:19]CAPDU: 80 0D 01 02 [21:53:19]Write to MH i2c: E2 08 00 18 04 80 0D 01 02 00 00 00 00 95 [21:53:19]Write i2c OK [21:53:19]MH_I2C_Read... [21:53:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:53:19]Read from MH i2c: E2 [21:53:19]MH_I2C_Read... [21:53:19]Read from MH i2c: E2 03 00 [21:53:19]MH_I2C_Read... [21:53:19]Read from MH i2c: E2 03 00 18 04 00 90 00 90 [21:53:19]RAPDU: 90 00 [21:53:19]wFMCommunicate OK [21:53:19]wFMCommunicate request_size=255 [21:53:19]MH_SAM_APDU [21:53: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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 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 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 01 00 00 F4 03 04 00 CE 1E 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 54 7C 03 00 35 04 06 00 1A [21:53:19]Write to MH i2c: E2 02 01 19 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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 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 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 01 00 00 F4 03 04 00 CE 1E 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 54 7C 03 00 35 04 06 00 1A 00 00 EB [21:53:19]Write i2c OK [21:53:19]MH_I2C_Read... [21:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:19]Read from MH i2c: E2 [21:53:19]MH_I2C_Read... [21:53:19]Read from MH i2c: E2 03 00 [21:53:19]MH_I2C_Read... [21:53:19]Read from MH i2c: E2 03 00 19 04 00 90 00 91 [21:53:19]RAPDU: 90 00 [21:53:19]wFMCommunicate OK [21:53:19]wFMCommunicate request_size=10 [21:53:19]MH_SAM_APDU [21:53:19]CAPDU: 80 0D 02 02 05 3C C8 47 E6 18 [21:53:19]Write to MH i2c: E2 0D 00 1A 04 80 0D 02 02 05 00 3C C8 47 E6 18 00 00 EB [21:53:19]Write i2c OK [21:53:19]MH_I2C_Read... [21:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:19]Read from MH i2c: E2 [21:53:19]MH_I2C_Read... [21:53:19]Read from MH i2c: E2 03 00 [21:53:19]MH_I2C_Read... [21:53:19]Read from MH i2c: E2 03 00 1A 04 00 90 00 92 [21:53:19]RAPDU: 90 00 [21:53:19]wFMCommunicate OK [21:53:19]wFMCommunicate request_size=4 [21:53:19]MH_SAM_APDU [21:53:19]CAPDU: 80 0D 03 02 [21:53:19]Write to MH i2c: E2 08 00 1B 04 80 0D 03 02 00 00 00 00 9A [21:53:19]Write i2c OK [21:53:19]MH_I2C_Read... [21:53:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:53:19]Read from MH i2c: E2 [21:53:19]MH_I2C_Read... [21:53:19]Read from MH i2c: E2 0B 00 [21:53:19]MH_I2C_Read... [21:53:19]Read from MH i2c: E2 0B 00 1B 04 00 F0 55 39 85 3C 82 E6 D8 90 00 1A [21:53:19]RAPDU: F0 55 39 85 3C 82 E6 D8 90 00 [21:53:19]wFMCommunicate OK [21:53:19]SAM_PROTO_SignData done [21:53:19]FM_MakeSignedData done [21:53:19]CreateOFDProtocolMessage [21:53:19]wFMCommunicate request_size=4 [21:53:19]MH_SAM_APDU [21:53:19]CAPDU: 80 11 00 00 [21:53:19]Write to MH i2c: E2 08 00 1C 04 80 11 00 00 00 00 00 00 9A [21:53:19]Write i2c OK [21:53:19]MH_I2C_Read... [21:53:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:20]Read from MH i2c: E2 [21:53:20]MH_I2C_Read... [21:53:20]Read from MH i2c: E2 17 00 [21:53:20]MH_I2C_Read... [21:53:20]Read from MH i2c: E2 17 00 1C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F1 [21:53:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:53:20]wFMCommunicate OK [21:53:20]CreateOFDProtocolMessage done [21:53:20]OFDSenderStorePacket 228436 [21:53:20]StoreOFDPacket docnum=228436 [21:53:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 74 30 07 01 E0 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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 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 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 01 00 00 F4 03 04 00 CE 1E 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 54 7C 03 00 35 04 06 00 1A 3C C8 47 E6 18 F0 55 39 85 3C 82 E6 D8 [21:53:20]CheckFolder [21:53:20]dirname=/storage/ofd_packets [21:53:20]CheckFolder done [21:53:20]ProducePacketName [21:53:20]name=ofd_packets/00228436 [21:53:20]NVStorageSaveData ofd_packets/00228436 [21:53:20]File name is /storage/ofd_packets/00228436 [21:53:20]Write 301 bytes [21:53:20]NVStorageSaveData done [21:53:20]OFDSenderStorePacket done [21:53:20]KKMCreateOFDPacket done [21:53:20]NVStorageSaveData kkm_last_timestamp [21:53:20]File name is /storage/kkm_last_timestamp [21:53:20]Write 4 bytes [21:53:20]NVStorageSaveData done [21:53:20]ExternCall_PrintAddStr [21:53:20]wPrintStart [21:53:20]Write to MH i2c: 01 00 00 1D 04 21 [21:53:20]Write i2c OK [21:53:20]MH_I2C_Read... [21:53:20]Read from MH i2c: 01 [21:53:20]MH_I2C_Read... [21:53:20]Read from MH i2c: 01 07 00 [21:53:20]MH_I2C_Read... [21:53:20]Read from MH i2c: 01 07 00 1D 04 00 00 00 00 00 FF 0F 36 [21:53:20]RasterBufferAndPrint [21:53:20]line Счет N : (1)1965080 [21:53:20]line ИНН: 02508201610067 [21:53:20]line Контрольно-Кассовый Чек [21:53:20]line ПРОДАЖА [21:53:20]line ТРК (МРК, ГНК) : 53 [21:53:20]line Товар: 2710124130 [21:53:20]line Аи-92-К-5 [21:53:20]line 22.430 * 66.90 [21:53:20]line = 1500.57 [21:53:20]line НДС 12% НСП 1% [21:53:20]line > о реализуемом товаре [21:53:20]line ИТОГО: 1500.57 [21:53:20]line НСП 1% : 13.28 [21:53:20]line НДС 12% : 159.35 [21:53:20]line Наличными: 0.00 [21:53:20]line Безнал.: 1500.57 [21:53:20]line Место: АЗС № 133 "Партнер Нефть" [21:53:20]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:53:20]line СНО: Общий режим [21:53:20]line Чек 400 22.10.2024 21:53 [21:53:20]line Смена: 535 ФФД: 1.0 [21:53:20]line ЗНМ: 0300000091 [21:53:20]line РНМ: 0000000000091685 [21:53:20]line Версия ККМ: 001 [21:53:20]line Платежная система: Mbank [21:53:20]line ФМ: 0000000000871839 [21:53:20]line ФД: 228436 [21:53:20]line ФПД: 28848360515096 [21:53:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T215318&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228436&fm=28848360515096&tin=02508201610067®Number=0000000000091685&sum=150057 [21:53:20]written 0, free lines is 4095 [21:53:20]OFD Sender: Processing packet 228436 [packets to send 38, broken 37] [21:53:20]ProducePacketName [21:53:20]name=ofd_packets/00228436 [21:53:20]OFD Sender: To server: pG, [21:53:20]CommunicateWithHost lk.salyk.kg:30040 [21:53:20]ConnectInit lk.salyk.kg [21:53:20]Connected sock=10 [21:53:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 74 30 07 01 E0 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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 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 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 01 00 00 F4 03 04 00 CE 1E 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 54 7C 03 00 35 04 06 00 1A 3C C8 47 E6 18 F0 55 39 85 3C 82 E6 D8 [21:53:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 C9 A9 47 00 62 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 38 37 31 38 33 39 10 04 04 00 54 7C 03 00 F4 03 04 00 C5 C9 17 67 B6 04 01 00 00 37 4E 10 6A 1B 82 19 87 [21:53:20]CommunicateWithHost err = 0 [21:53:20]CheckOFDResponse [21:53:20]1017 (14) - 77093643461234 [21:53:20]1041 (16) - 0000000000871839 [21:53:20]1040 (4) - 228436 [21:53:20]1012 (4) - 22.10.2024 15:50 [21:53:20]1206 (1) - 0 [21:53:20]OFD Sender: Remove packet 228436 [21:53:20]ProducePacketName [21:53:20]name=ofd_packets/00228436 [21:53:20]NVStorageDeleteData [21:53:20]Write to MH i2c: 01 00 00 45 04 49 [21:53:20]Write i2c OK [21:53:20]MH_I2C_Read... [21:53:20]Read from MH i2c: 01 [21:53:20]MH_I2C_Read... [21:53:20]Read from MH i2c: 01 07 00 [21:53:20]MH_I2C_Read... [21:53:20]Read from MH i2c: 01 07 00 45 04 00 00 00 00 00 E0 0C 3C [21:53:20]RasterBufferAndPrint [21:53:20]line [21:53:20]line [21:53:20]line [21:53:20]line [21:53:20]line [21:53:20]written 0, free lines is 3301 [21:53:20]MH_Cut [21:53:20]Write to MH i2c: D1 01 00 4C 04 01 22 [21:53:20]Write i2c OK [21:53:20]MH_I2C_Read... [21:53:20]Read from MH i2c: D1 [21:53:20]MH_I2C_Read... [21:53:20]Read from MH i2c: D1 01 00 [21:53:20]MH_I2C_Read... [21:53:20]Read from MH i2c: D1 01 00 4C 04 00 21 [21:53:20]Write to MH i2c: 01 00 00 4D 04 51 [21:53:20]Write i2c OK [21:53:20]MH_I2C_Read... [21:53:20]OFD Sender: No OFD packet to send [21:53:21]*** Cut start [21:53:21]*** Partial cut [21:53:21]*** CUTSNS_PIN = 1 [21:53:21]*** CUTSNS_PIN = 0 [21:53:21]*** Brake cut motor [21:53:22]Read from MH i2c: 01 [21:53:22]MH_I2C_Read... [21:53:22]*** Stop cut motor [21:53:22]*** Cut end [21:53:22]Read from MH i2c: 01 07 00 [21:53:22]MH_I2C_Read... [21:53:22]Read from MH i2c: 01 07 00 4D 04 00 00 00 00 00 FF 0F 66 [21:53:22]process_action close_receipt done [21:53:22]requested_data is exist [21:53:22]produce_requested_data [21:53:22]requested_item fm.sn is exist - process it [21:53:22]wFMCommunicate request_size=4 [21:53:22]MH_SAM_APDU [21:53:22]CAPDU: 80 11 00 00 [21:53:22]Write to MH i2c: E2 08 00 4E 04 80 11 00 00 00 00 00 00 CC [21:53:22]Write i2c OK [21:53:22]MH_I2C_Read... [21:53:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:22]Read from MH i2c: E2 [21:53:22]MH_I2C_Read... [21:53:22]Read from MH i2c: E2 17 00 [21:53:22]MH_I2C_Read... [21:53:22]Read from MH i2c: E2 17 00 4E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 23 [21:53:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:53:22]wFMCommunicate OK [21:53:22]requested_item fd.num is exist - process it [21:53:22]SAM_PROTO_GetFieldsCounters [21:53:22]wFMCommunicate request_size=4 [21:53:22]MH_SAM_APDU [21:53:22]CAPDU: 80 13 00 00 [21:53:22]Write to MH i2c: E2 08 00 4F 04 80 13 00 00 00 00 00 00 CF [21:53:22]Write i2c OK [21:53:22]MH_I2C_Read... [21:53:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:53:22]Read from MH i2c: E2 [21:53:22]MH_I2C_Read... [21:53:22]Read from MH i2c: E2 62 00 [21:53:22]MH_I2C_Read... [21:53:22]Read from MH i2c: E2 62 00 4F 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 54 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 90 01 00 00 5E 04 04 00 90 01 00 00 57 04 04 00 91 01 00 00 19 04 04 00 00 00 00 00 90 00 97 [21:53:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 54 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 90 01 00 00 5E 04 04 00 90 01 00 00 57 04 04 00 91 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:53:22]wFMCommunicate OK [21:53:22]SAM_PROTO_GetFieldsCounters done [21:53:22]requested_item shift.num is exist - process it [21:53:22]requested_item shift.opened is exist - process it [21:53:22]req_shift_opened [21:53:22]FM_GetShiftState [21:53:22]SAM_PROTO_GetShiftState [21:53:22]wFMCommunicate request_size=4 [21:53:22]MH_SAM_APDU [21:53:22]CAPDU: 80 13 01 00 [21:53:22]Write to MH i2c: E2 08 00 50 04 80 13 01 00 00 00 00 00 D1 [21:53:22]Write i2c OK [21:53:22]MH_I2C_Read... [21:53:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:22]Read from MH i2c: E2 [21:53:22]MH_I2C_Read... [21:53:22]Read from MH i2c: E2 0E 00 [21:53:22]MH_I2C_Read... [21:53:22]Read from MH i2c: E2 0E 00 50 04 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 98 [21:53:22]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [21:53:22]wFMCommunicate OK [21:53:22]SAM_PROTO_GetShiftState done [21:53:22]FM_GetShiftState done [21:53:22]req_shift_opened done [21:53:22]requested_item shift.open_date is exist - process it [21:53:22]req_shift_open_date [21:53:22]req_shift_open_date done [21:53:22]produce_requested_data done [21:53:22]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228436,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [21:53:22]process_action_free close_receipt [21:53:22]json_value_free [21:53:22]json_value_free done [21:53:22]process_json_proto returns [21:53:22]Send response to host [21:53:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228436,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [21:53:22]free response buf [21:53:22]execute_script done [21:53:22]execute_script returns [21:53:22]free content buf [21:53:22]Sock 7.Close socket [21:53:22]Sock 7.Thread stoped [21:53:25]OFD Sender: No OFD packet to send [21:53:30]OFD Sender: No OFD packet to send [21:53:35]OFD Sender: No OFD packet to send [21:53:40]OFD Sender: No OFD packet to send [21:53:45]OFD Sender: No OFD packet to send [21:53:50]OFD Sender: No OFD packet to send [21:53:55]OFD Sender: No OFD packet to send [21:54:01]OFD Sender: No OFD packet to send [21:54:06]OFD Sender: No OFD packet to send [21:54:11]OFD Sender: No OFD packet to send [21:54:16]OFD Sender: No OFD packet to send [21:54:21]OFD Sender: No OFD packet to send [21:54:26]OFD Sender: No OFD packet to send [21:54:31]OFD Sender: No OFD packet to send [21:54:31]accept exits with 9 [21:54:31]New connection [21:54:31]New thread 3066977636 created [21:54:31]Thread 3066834276 joined [21:54:31]Waiting for new connection... [21:54:31] Sock 9.Parse request [21:54:31]Sock 9.Check first char [21:54:31]Sock 9.First char is OK [21:54:31]request: POST /json_proto HTTP/1.0 [21:54:31]Method: POST [21:54:31]URL: /json_proto [21:54:31]Method is POST - this is cgi request [21:54:31]url: /json_proto [21:54:31]query_string will be loaded in cgi processing [21:54:31]execute_cgi json_proto POST (null) [21:54:31]execute_cgi path=json_proto method=POST [21:54:31]POST find Content-Length [21:54:31]Host: 172.17.44.195:8080 [21:54:31]Content-Length: 680 [21:54:31]Content-Type: application/json [21:54:31] [21:54:31]POST finish read [21:54:31]Found Content-Length = 680 [21:54:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965081", "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" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [21:54:31]execute_script... [21:54:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965081", "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" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [21:54:31]POST & json_proto [21:54:31]process_json_proto [21:54:31]json parsed OK: [21:54:31]protocol is kg_v1.0 [21:54:31]action value=close_receipt [21:54:31]process_action close_receipt [21:54:31]cmd_close_receipt [21:54:31]MH_GetDate [21:54:31]Write to MH i2c: F0 00 00 51 04 44 [21:54:31]Write i2c OK [21:54:31]MH_I2C_Read... [21:54:31]Read from MH i2c: F0 [21:54:31]MH_I2C_Read... [21:54:31]Read from MH i2c: F0 09 00 [21:54:31]MH_I2C_Read... [21:54:31]Read from MH i2c: F0 09 00 51 04 00 17 1F 18 67 82 C9 CF 66 82 [21:54:31]GetLastDocTimeStamp 1729633998 [21:54:31]current date 1729634071 [21:54:31]FM_GetShiftState [21:54:31]SAM_PROTO_GetShiftState [21:54:31]wFMCommunicate request_size=4 [21:54:31]MH_SAM_APDU [21:54:31]CAPDU: 80 13 01 00 [21:54:31]Write to MH i2c: E2 08 00 52 04 80 13 01 00 00 00 00 00 D3 [21:54:31]Write i2c OK [21:54:31]MH_I2C_Read... [21:54:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:31]Read from MH i2c: E2 [21:54:31]MH_I2C_Read... [21:54:31]Read from MH i2c: E2 0E 00 [21:54:31]MH_I2C_Read... [21:54:31]Read from MH i2c: E2 0E 00 52 04 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 9A [21:54:31]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [21:54:31]wFMCommunicate OK [21:54:31]SAM_PROTO_GetShiftState done [21:54:31]FM_GetShiftState done [21:54:31]opened in 1729555538 [21:54:31]opened+sec_in_day 1729641938 [21:54:31]quantity*price = 150037 [21:54:31]sum+1 = 150039 [21:54:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 401 22.10.2024 21:54 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228437 ФПД: 140468077872782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T215432&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228437&fm=140468077872782&tin=02508201610067®Number=0000000000091685&sum=150000 [21:54:32]StoreToDocumentArchive [21:54:32]shift 535 fd 228437 [21:54:32]save to /storage/0535/doc_00228437 [21:54:32]save last doc name /storage/0535/doc_00228437 to /storage/kkm_last_doc_name [21:54:32]save OK [21:54:32]Clear old archive folders... [21:54:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:54:32]tlvbuf is 002E83A0 [21:54:32]SAM_PROTO_ClearQueue [21:54:32]wFMCommunicate request_size=4 [21:54:32]MH_SAM_APDU [21:54:32]CAPDU: 80 09 00 00 [21:54:32]Write to MH i2c: E2 08 00 5F 04 80 09 00 00 00 00 00 00 D5 [21:54:32]Write i2c OK [21:54:32]MH_I2C_Read... [21:54:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:54:32]Read from MH i2c: E2 [21:54:32]MH_I2C_Read... [21:54:32]Read from MH i2c: E2 03 00 [21:54:32]MH_I2C_Read... [21:54:32]Read from MH i2c: E2 03 00 5F 04 00 90 00 D7 [21:54:32]RAPDU: 90 00 [21:54:32]wFMCommunicate OK [21:54:32]SAM_PROTO_ClearQueue done [21:54:32]KKMCreateOFDPacket [21:54:32]OFDProtocolAddRootSTLVToBuf [21:54:32]FM_MakeSignedData [21:54:32]FM_MakeSignedData [21:54:32]SAM_PROTO_SignData [21:54:32]wFMCommunicate request_size=4 [21:54:32]MH_SAM_APDU [21:54:32]CAPDU: 80 0D 01 02 [21:54:32]Write to MH i2c: E2 08 00 60 04 80 0D 01 02 00 00 00 00 DD [21:54:32]Write i2c OK [21:54:32]MH_I2C_Read... [21:54:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:54:32]Read from MH i2c: E2 [21:54:32]MH_I2C_Read... [21:54:32]Read from MH i2c: E2 03 00 [21:54:32]MH_I2C_Read... [21:54:32]Read from MH i2c: E2 03 00 60 04 00 90 00 D8 [21:54:32]RAPDU: 90 00 [21:54:32]wFMCommunicate OK [21:54:32]wFMCommunicate request_size=255 [21:54:32]MH_SAM_APDU [21:54: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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 91 01 00 00 F4 03 04 00 18 1F 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 55 7C 03 00 35 04 06 00 7F C1 45 E2 [21:54:32]Write to MH i2c: E2 02 01 61 04 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 91 01 00 00 F4 03 04 00 18 1F 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 55 7C 03 00 35 04 06 00 7F C1 45 E2 00 00 7D [21:54:32]Write i2c OK [21:54:32]MH_I2C_Read... [21:54:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:32]Read from MH i2c: E2 [21:54:32]MH_I2C_Read... [21:54:32]Read from MH i2c: E2 03 00 [21:54:32]MH_I2C_Read... [21:54:32]Read from MH i2c: E2 03 00 61 04 00 90 00 D9 [21:54:32]RAPDU: 90 00 [21:54:32]wFMCommunicate OK [21:54:32]wFMCommunicate request_size=7 [21:54:32]MH_SAM_APDU [21:54:32]CAPDU: 80 0D 02 02 02 46 8E [21:54:32]Write to MH i2c: E2 0A 00 62 04 80 0D 02 02 02 00 46 8E 00 00 B8 [21:54:32]Write i2c OK [21:54:32]MH_I2C_Read... [21:54:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:32]Read from MH i2c: E2 [21:54:32]MH_I2C_Read... [21:54:32]Read from MH i2c: E2 03 00 [21:54:32]MH_I2C_Read... [21:54:32]Read from MH i2c: E2 03 00 62 04 00 90 00 DA [21:54:32]RAPDU: 90 00 [21:54:32]wFMCommunicate OK [21:54:32]wFMCommunicate request_size=4 [21:54:32]MH_SAM_APDU [21:54:32]CAPDU: 80 0D 03 02 [21:54:32]Write to MH i2c: E2 08 00 63 04 80 0D 03 02 00 00 00 00 E2 [21:54:32]Write i2c OK [21:54:32]MH_I2C_Read... [21:54:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:54:33]Read from MH i2c: E2 [21:54:33]MH_I2C_Read... [21:54:33]Read from MH i2c: E2 0B 00 [21:54:33]MH_I2C_Read... [21:54:33]Read from MH i2c: E2 0B 00 63 04 00 19 9C DD E5 8C B5 56 81 90 00 72 [21:54:33]RAPDU: 19 9C DD E5 8C B5 56 81 90 00 [21:54:33]wFMCommunicate OK [21:54:33]SAM_PROTO_SignData done [21:54:33]FM_MakeSignedData done [21:54:33]CreateOFDProtocolMessage [21:54:33]wFMCommunicate request_size=4 [21:54:33]MH_SAM_APDU [21:54:33]CAPDU: 80 11 00 00 [21:54:33]Write to MH i2c: E2 08 00 64 04 80 11 00 00 00 00 00 00 E2 [21:54:33]Write i2c OK [21:54:33]MH_I2C_Read... [21:54:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:33]Read from MH i2c: E2 [21:54:33]MH_I2C_Read... [21:54:33]Read from MH i2c: E2 17 00 [21:54:33]MH_I2C_Read... [21:54:33]Read from MH i2c: E2 17 00 64 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 39 [21:54:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:54:33]wFMCommunicate OK [21:54:33]CreateOFDProtocolMessage done [21:54:33]OFDSenderStorePacket 228437 [21:54:33]StoreOFDPacket docnum=228437 [21:54:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 D8 C3 04 01 2A 3D 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 91 01 00 00 F4 03 04 00 18 1F 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 55 7C 03 00 35 04 06 00 7F C1 45 E2 46 8E 19 9C DD E5 8C B5 56 81 [21:54:33]CheckFolder [21:54:33]dirname=/storage/ofd_packets [21:54:33]CheckFolder done [21:54:33]ProducePacketName [21:54:33]name=ofd_packets/00228437 [21:54:33]NVStorageSaveData ofd_packets/00228437 [21:54:33]File name is /storage/ofd_packets/00228437 [21:54:33]Write 298 bytes [21:54:33]NVStorageSaveData done [21:54:33]OFDSenderStorePacket done [21:54:33]KKMCreateOFDPacket done [21:54:33]NVStorageSaveData kkm_last_timestamp [21:54:33]File name is /storage/kkm_last_timestamp [21:54:33]Write 4 bytes [21:54:33]NVStorageSaveData done [21:54:33]ExternCall_PrintAddStr [21:54:33]wPrintStart [21:54:33]Write to MH i2c: 01 00 00 65 04 69 [21:54:33]Write i2c OK [21:54:33]MH_I2C_Read... [21:54:33]Read from MH i2c: 01 [21:54:33]MH_I2C_Read... [21:54:33]Read from MH i2c: 01 07 00 [21:54:33]MH_I2C_Read... [21:54:33]Read from MH i2c: 01 07 00 65 04 00 00 00 00 00 FF 0F 7E [21:54:33]RasterBufferAndPrint [21:54:33]line Счет N : (1)1965081 [21:54:33]line ИНН: 02508201610067 [21:54:33]line Контрольно-Кассовый Чек [21:54:33]line ПРОДАЖА [21:54:33]line ТРК (МРК, ГНК) : 11 [21:54:33]line Товар: 2710194210 [21:54:33]line ДТ-К-5 [21:54:33]line 19.690 * 76.20 [21:54:33]line = 1500.38 [21:54:33]line НДС 12% НСП 1% [21:54:33]line > о реализуемом товаре [21:54:33]line ОКРУГЛЕНИЕ: -0.38 [21:54:33]line ИТОГО: 1500.00 [21:54:33]line Внесено: 1500.00 [21:54:33]line СДАЧА: 0.00 [21:54:33]line НСП 1% : 13.28 [21:54:33]line НДС 12% : 159.33 [21:54:33]line Наличными: 1500.00 [21:54:33]line Безнал.: 0.00 [21:54:33]line Место: АЗС № 133 "Партнер Нефть" [21:54:33]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:54:33]line СНО: Общий режим [21:54:33]line Чек 401 22.10.2024 21:54 [21:54:33]line Смена: 535 ФФД: 1.0 [21:54:33]line ЗНМ: 0300000091 [21:54:33]line РНМ: 0000000000091685 [21:54:33]line Версия ККМ: 001 [21:54:33]line ФМ: 0000000000871839 [21:54:33]line ФД: 228437 [21:54:33]line ФПД: 140468077872782 [21:54:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T215432&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228437&fm=140468077872782&tin=02508201610067®Number=0000000000091685&sum=150000 [21:54:33]written 0, free lines is 4095 [21:54:33]OFD Sender: Processing packet 228437 [packets to send 38, broken 37] [21:54:33]ProducePacketName [21:54:33]name=ofd_packets/00228437 [21:54:33]OFD Sender: To server: pG, [21:54:33]CommunicateWithHost lk.salyk.kg:30040 [21:54:33]ConnectInit lk.salyk.kg [21:54:33]Connected sock=10 [21:54:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 D8 C3 04 01 2A 3D 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 91 01 00 00 F4 03 04 00 18 1F 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 55 7C 03 00 35 04 06 00 7F C1 45 E2 46 8E 19 9C DD E5 8C B5 56 81 [21:54:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 D2 1B 47 00 82 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 55 7C 03 00 F4 03 04 00 0E CA 17 67 B6 04 01 00 00 F6 BB 96 2F 19 75 1E 75 [21:54:33]CommunicateWithHost err = 0 [21:54:33]CheckOFDResponse [21:54:33]1017 (14) - 77093643461234 [21:54:33]1041 (16) - 0000000000871839 [21:54:33]1040 (4) - 228437 [21:54:33]1012 (4) - 22.10.2024 15:51 [21:54:33]1206 (1) - 0 [21:54:33]OFD Sender: Remove packet 228437 [21:54:33]ProducePacketName [21:54:33]name=ofd_packets/00228437 [21:54:33]NVStorageDeleteData [21:54:33]Write to MH i2c: 01 00 00 8F 04 93 [21:54:33]Write i2c OK [21:54:33]MH_I2C_Read... [21:54:33]Read from MH i2c: 01 [21:54:33]MH_I2C_Read... [21:54:33]Read from MH i2c: 01 07 00 [21:54:33]MH_I2C_Read... [21:54:33]Read from MH i2c: 01 07 00 8F 04 00 00 00 00 00 B0 0C 56 [21:54:33]RasterBufferAndPrint [21:54:33]line [21:54:33]line [21:54:33]line [21:54:33]line [21:54:33]line [21:54:33]written 0, free lines is 3253 [21:54:33]MH_Cut [21:54:33]Write to MH i2c: D1 01 00 96 04 01 6C [21:54:33]Write i2c OK [21:54:33]MH_I2C_Read... [21:54:33]Read from MH i2c: D1 [21:54:33]MH_I2C_Read... [21:54:33]Read from MH i2c: D1 01 00 [21:54:33]MH_I2C_Read... [21:54:33]Read from MH i2c: D1 01 00 96 04 00 6B [21:54:33]Write to MH i2c: 01 00 00 97 04 9B [21:54:33]Write i2c OK [21:54:33]MH_I2C_Read... [21:54:34]OFD Sender: No OFD packet to send [21:54:34]*** Cut start [21:54:34]*** Partial cut [21:54:34]*** CUTSNS_PIN = 1 [21:54:34]*** CUTSNS_PIN = 0 [21:54:34]*** Brake cut motor [21:54:35]Read from MH i2c: 01 [21:54:35]MH_I2C_Read... [21:54:35]*** Stop cut motor [21:54:35]*** Cut end [21:54:35]Read from MH i2c: 01 07 00 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: 01 07 00 97 04 00 00 00 00 00 FF 0F B0 [21:54:35]process_action close_receipt done [21:54:35]requested_data is exist [21:54:35]produce_requested_data [21:54:35]requested_item fm.sn is exist - process it [21:54:35]wFMCommunicate request_size=4 [21:54:35]MH_SAM_APDU [21:54:35]CAPDU: 80 11 00 00 [21:54:35]Write to MH i2c: E2 08 00 98 04 80 11 00 00 00 00 00 00 16 [21:54:35]Write i2c OK [21:54:35]MH_I2C_Read... [21:54:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:35]Read from MH i2c: E2 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: E2 17 00 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: E2 17 00 98 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6D [21:54:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:54:35]wFMCommunicate OK [21:54:35]requested_item fd.num is exist - process it [21:54:35]SAM_PROTO_GetFieldsCounters [21:54:35]wFMCommunicate request_size=4 [21:54:35]MH_SAM_APDU [21:54:35]CAPDU: 80 13 00 00 [21:54:35]Write to MH i2c: E2 08 00 99 04 80 13 00 00 00 00 00 00 19 [21:54:35]Write i2c OK [21:54:35]MH_I2C_Read... [21:54:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:54:35]Read from MH i2c: E2 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: E2 62 00 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: E2 62 00 99 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 55 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 91 01 00 00 5E 04 04 00 91 01 00 00 57 04 04 00 92 01 00 00 19 04 04 00 00 00 00 00 90 00 E5 [21:54:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 55 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 91 01 00 00 5E 04 04 00 91 01 00 00 57 04 04 00 92 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:54:35]wFMCommunicate OK [21:54:35]SAM_PROTO_GetFieldsCounters done [21:54:35]requested_item shift.num is exist - process it [21:54:35]requested_item shift.opened is exist - process it [21:54:35]req_shift_opened [21:54:35]FM_GetShiftState [21:54:35]SAM_PROTO_GetShiftState [21:54:35]wFMCommunicate request_size=4 [21:54:35]MH_SAM_APDU [21:54:35]CAPDU: 80 13 01 00 [21:54:35]Write to MH i2c: E2 08 00 9A 04 80 13 01 00 00 00 00 00 1B [21:54:35]Write i2c OK [21:54:35]MH_I2C_Read... [21:54:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:35]Read from MH i2c: E2 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: E2 0E 00 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: E2 0E 00 9A 04 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 E2 [21:54:35]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [21:54:35]wFMCommunicate OK [21:54:35]SAM_PROTO_GetShiftState done [21:54:35]FM_GetShiftState done [21:54:35]req_shift_opened done [21:54:35]requested_item shift.open_date is exist - process it [21:54:35]req_shift_open_date [21:54:35]req_shift_open_date done [21:54:35]produce_requested_data done [21:54:35]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228437,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [21:54:35]process_action_free close_receipt [21:54:35]json_value_free [21:54:35]json_value_free done [21:54:35]process_json_proto returns [21:54:35]Send response to host [21:54:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228437,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [21:54:35]free response buf [21:54:35]execute_script done [21:54:35]execute_script returns [21:54:35]free content buf [21:54:35]Sock 9.Close socket [21:54:35]Sock 9.Thread stoped [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:58]accept exits with 7 [21:54:58]New connection [21:54:58]New thread 3066834276 created [21:54:58]Thread 3066977636 joined [21:54:58]Waiting for new connection... [21:54:58] Sock 7.Parse request [21:54:58]Sock 7.Check first char [21:54:58]Sock 7.First char is OK [21:54:58]request: POST /json_proto HTTP/1.0 [21:54:58]Method: POST [21:54:58]URL: /json_proto [21:54:58]Method is POST - this is cgi request [21:54:58]url: /json_proto [21:54:58]query_string will be loaded in cgi processing [21:54:58]execute_cgi json_proto POST (null) [21:54:58]execute_cgi path=json_proto method=POST [21:54:58]POST find Content-Length [21:54:58]Host: 172.17.44.195:8080 [21:54:58]Content-Length: 680 [21:54:58]Content-Type: application/json [21:54:58] [21:54:58]POST finish read [21:54:58]Found Content-Length = 680 [21:54:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965083", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:54:58]execute_script... [21: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)1965083", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:54:58]POST & json_proto [21:54:58]process_json_proto [21:54:58]json parsed OK: [21:54:58]protocol is kg_v1.0 [21:54:58]action value=close_receipt [21:54:58]process_action close_receipt [21:54:58]cmd_close_receipt [21:54:58]MH_GetDate [21:54:58]Write to MH i2c: F0 00 00 9B 04 8E [21:54:58]Write i2c OK [21:54:58]MH_I2C_Read... [21:54:58]Read from MH i2c: F0 [21:54:58]MH_I2C_Read... [21:54:58]Read from MH i2c: F0 09 00 [21:54:58]MH_I2C_Read... [21:54:58]Read from MH i2c: F0 09 00 9B 04 00 33 1F 18 67 82 C9 CF 66 E8 [21:54:58]GetLastDocTimeStamp 1729634072 [21:54:58]current date 1729634099 [21:54:58]FM_GetShiftState [21:54:58]SAM_PROTO_GetShiftState [21:54:58]wFMCommunicate request_size=4 [21:54:58]MH_SAM_APDU [21:54:58]CAPDU: 80 13 01 00 [21:54:58]Write to MH i2c: E2 08 00 9C 04 80 13 01 00 00 00 00 00 1D [21:54:58]Write i2c OK [21:54:58]MH_I2C_Read... [21:54:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:58]Read from MH i2c: E2 [21:54:58]MH_I2C_Read... [21:54:58]Read from MH i2c: E2 0E 00 [21:54:58]MH_I2C_Read... [21:54:58]Read from MH i2c: E2 0E 00 9C 04 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 E4 [21:54:58]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [21:54:58]wFMCommunicate OK [21:54:58]SAM_PROTO_GetShiftState done [21:54:58]FM_GetShiftState done [21:54:58]opened in 1729555538 [21:54:58]opened+sec_in_day 1729641938 [21:54:58]quantity*price = 100050 [21:54:58]sum+1 = 100052 [21:54:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 402 22.10.2024 21:54 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228438 ФПД: 61071233264088 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T215459&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228438&fm=61071233264088&tin=02508201610067®Number=0000000000091685&sum=100000 [21:54:59]StoreToDocumentArchive [21:54:59]shift 535 fd 228438 [21:54:59]save to /storage/0535/doc_00228438 [21:54:59]save last doc name /storage/0535/doc_00228438 to /storage/kkm_last_doc_name [21:54:59]save OK [21:54:59]Clear old archive folders... [21:54:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:54:59]tlvbuf is 002F7D60 [21:54:59]SAM_PROTO_ClearQueue [21:54:59]wFMCommunicate request_size=4 [21:54:59]MH_SAM_APDU [21:54:59]CAPDU: 80 09 00 00 [21:54:59]Write to MH i2c: E2 08 00 A9 04 80 09 00 00 00 00 00 00 1F [21:54:59]Write i2c OK [21:54:59]MH_I2C_Read... [21:54:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:54:59]Read from MH i2c: E2 [21:54:59]MH_I2C_Read... [21:54:59]Read from MH i2c: E2 03 00 [21:54:59]MH_I2C_Read... [21:54:59]Read from MH i2c: E2 03 00 A9 04 00 90 00 21 [21:54:59]RAPDU: 90 00 [21:54:59]wFMCommunicate OK [21:54:59]SAM_PROTO_ClearQueue done [21:54:59]KKMCreateOFDPacket [21:54:59]OFDProtocolAddRootSTLVToBuf [21:54:59]FM_MakeSignedData [21:54:59]FM_MakeSignedData [21:54:59]SAM_PROTO_SignData [21:54:59]wFMCommunicate request_size=4 [21:54:59]MH_SAM_APDU [21:54:59]CAPDU: 80 0D 01 02 [21:54:59]Write to MH i2c: E2 08 00 AA 04 80 0D 01 02 00 00 00 00 27 [21:54:59]Write i2c OK [21:54:59]MH_I2C_Read... [21:54:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:54:59]Read from MH i2c: E2 [21:54:59]MH_I2C_Read... [21:54:59]Read from MH i2c: E2 03 00 [21:54:59]MH_I2C_Read... [21:54:59]Read from MH i2c: E2 03 00 AA 04 00 90 00 22 [21:54:59]RAPDU: 90 00 [21:54:59]wFMCommunicate OK [21:54:59]wFMCommunicate request_size=255 [21:54:59]MH_SAM_APDU [21: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 92 01 00 00 F4 03 04 00 33 1F 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 56 7C 03 00 35 04 06 00 37 8B 41 2A [21:54:59]Write to MH i2c: E2 02 01 AB 04 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 92 01 00 00 F4 03 04 00 33 1F 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 56 7C 03 00 35 04 06 00 37 8B 41 2A 00 00 33 [21:54:59]Write i2c OK [21:54:59]MH_I2C_Read... [21:55:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:55:00]Read from MH i2c: E2 [21:55:00]MH_I2C_Read... [21:55:00]Read from MH i2c: E2 03 00 [21:55:00]MH_I2C_Read... [21:55:00]Read from MH i2c: E2 03 00 AB 04 00 90 00 23 [21:55:00]RAPDU: 90 00 [21:55:00]wFMCommunicate OK [21:55:00]wFMCommunicate request_size=7 [21:55:00]MH_SAM_APDU [21:55:00]CAPDU: 80 0D 02 02 02 29 D8 [21:55:00]Write to MH i2c: E2 0A 00 AC 04 80 0D 02 02 02 00 29 D8 00 00 2F [21:55:00]Write i2c OK [21:55:00]MH_I2C_Read... [21:55:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:55:00]Read from MH i2c: E2 [21:55:00]MH_I2C_Read... [21:55:00]Read from MH i2c: E2 03 00 [21:55:00]MH_I2C_Read... [21:55:00]Read from MH i2c: E2 03 00 AC 04 00 90 00 24 [21:55:00]RAPDU: 90 00 [21:55:00]wFMCommunicate OK [21:55:00]wFMCommunicate request_size=4 [21:55:00]MH_SAM_APDU [21:55:00]CAPDU: 80 0D 03 02 [21:55:00]Write to MH i2c: E2 08 00 AD 04 80 0D 03 02 00 00 00 00 2C [21:55:00]Write i2c OK [21:55:00]MH_I2C_Read... [21:55:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:55:00]Read from MH i2c: E2 [21:55:00]MH_I2C_Read... [21:55:00]Read from MH i2c: E2 0B 00 [21:55:00]MH_I2C_Read... [21:55:00]Read from MH i2c: E2 0B 00 AD 04 00 E8 01 17 ED 61 77 09 59 90 00 54 [21:55:00]RAPDU: E8 01 17 ED 61 77 09 59 90 00 [21:55:00]wFMCommunicate OK [21:55:00]SAM_PROTO_SignData done [21:55:00]FM_MakeSignedData done [21:55:00]CreateOFDProtocolMessage [21:55:00]wFMCommunicate request_size=4 [21:55:00]MH_SAM_APDU [21:55:00]CAPDU: 80 11 00 00 [21:55:00]Write to MH i2c: E2 08 00 AE 04 80 11 00 00 00 00 00 00 2C [21:55:00]Write i2c OK [21:55:00]MH_I2C_Read... [21:55:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:55:00]Read from MH i2c: E2 [21:55:00]MH_I2C_Read... [21:55:00]Read from MH i2c: E2 17 00 [21:55:00]MH_I2C_Read... [21:55:00]Read from MH i2c: E2 17 00 AE 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 83 [21:55:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:55:00]wFMCommunicate OK [21:55:00]CreateOFDProtocolMessage done [21:55:00]OFDSenderStorePacket 228438 [21:55:00]StoreOFDPacket docnum=228438 [21:55:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 76 BC 04 01 EF 94 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 92 01 00 00 F4 03 04 00 33 1F 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 56 7C 03 00 35 04 06 00 37 8B 41 2A 29 D8 E8 01 17 ED 61 77 09 59 [21:55:00]CheckFolder [21:55:00]dirname=/storage/ofd_packets [21:55:00]CheckFolder done [21:55:00]ProducePacketName [21:55:00]name=ofd_packets/00228438 [21:55:00]NVStorageSaveData ofd_packets/00228438 [21:55:00]File name is /storage/ofd_packets/00228438 [21:55:00]Write 298 bytes [21:55:00]NVStorageSaveData done [21:55:00]OFDSenderStorePacket done [21:55:00]KKMCreateOFDPacket done [21:55:00]NVStorageSaveData kkm_last_timestamp [21:55:00]File name is /storage/kkm_last_timestamp [21:55:00]Write 4 bytes [21:55:00]NVStorageSaveData done [21:55:00]ExternCall_PrintAddStr [21:55:00]wPrintStart [21:55:00]Write to MH i2c: 01 00 00 AF 04 B3 [21:55:00]Write i2c OK [21:55:00]MH_I2C_Read... [21:55:00]Read from MH i2c: 01 [21:55:00]MH_I2C_Read... [21:55:00]Read from MH i2c: 01 07 00 [21:55:00]MH_I2C_Read... [21:55:00]Read from MH i2c: 01 07 00 AF 04 00 00 00 00 00 FF 0F C8 [21:55:00]RasterBufferAndPrint [21:55:00]line Счет N : (1)1965083 [21:55:00]line ИНН: 02508201610067 [21:55:00]line Контрольно-Кассовый Чек [21:55:00]line ПРОДАЖА [21:55:00]line ТРК (МРК, ГНК) : 61 [21:55:00]line Товар: 2710194210 [21:55:00]line ДТ-К-5 [21:55:00]line 13.130 * 76.20 [21:55:00]line = 1000.51 [21:55:00]line НДС 12% НСП 1% [21:55:00]line > о реализуемом товаре [21:55:00]line ОКРУГЛЕНИЕ: -0.51 [21:55:00]line ИТОГО: 1000.00 [21:55:00]line Внесено: 1000.00 [21:55:00]line СДАЧА: 0.00 [21:55:00]line НСП 1% : 8.85 [21:55:00]line НДС 12% : 106.25 [21:55:00]line Наличными: 1000.00 [21:55:00]line Безнал.: 0.00 [21:55:00]line Место: АЗС № 133 "Партнер Нефть" [21:55:00]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:55:00]line СНО: Общий режим [21:55:00]line Чек 402 22.10.2024 21:54 [21:55:00]line Смена: 535 ФФД: 1.0 [21:55:00]line ЗНМ: 0300000091 [21:55:00]line РНМ: 0000000000091685 [21:55:00]line Версия ККМ: 001 [21:55:00]line ФМ: 0000000000871839 [21:55:00]line ФД: 228438 [21:55:00]line ФПД: 61071233264088 [21:55:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T215459&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228438&fm=61071233264088&tin=02508201610067®Number=0000000000091685&sum=100000 [21:55:00]OFD Sender: Processing packet 228438 [packets to send 38, broken 37] [21:55:00]ProducePacketName [21:55:00]name=ofd_packets/00228438 [21:55:00]OFD Sender: To server: pG, [21:55:00]CommunicateWithHost lk.salyk.kg:30040 [21:55:00]ConnectInit lk.salyk.kg [21:55:00]written 0, free lines is 4095 [21:55:00]Connected sock=10 [21:55:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 76 BC 04 01 EF 94 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 92 01 00 00 F4 03 04 00 33 1F 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 56 7C 03 00 35 04 06 00 37 8B 41 2A 29 D8 E8 01 17 ED 61 77 09 59 [21:55:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 5D 08 47 00 4E 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 56 7C 03 00 F4 03 04 00 2A CA 17 67 B6 04 01 00 00 5B 2E C2 9C 07 7B 57 54 [21:55:00]CommunicateWithHost err = 0 [21:55:00]CheckOFDResponse [21:55:00]1017 (14) - 77093643461234 [21:55:00]1041 (16) - 0000000000871839 [21:55:00]1040 (4) - 228438 [21:55:00]1012 (4) - 22.10.2024 15:52 [21:55:00]1206 (1) - 0 [21:55:00]OFD Sender: Remove packet 228438 [21:55:00]ProducePacketName [21:55:00]name=ofd_packets/00228438 [21:55:00]NVStorageDeleteData [21:55:00]Write to MH i2c: 01 00 00 D9 04 DD [21:55:00]Write i2c OK [21:55:00]MH_I2C_Read... [21:55:00]Read from MH i2c: 01 [21:55:00]MH_I2C_Read... [21:55:00]Read from MH i2c: 01 07 00 [21:55:00]MH_I2C_Read... [21:55:00]Read from MH i2c: 01 07 00 D9 04 00 00 00 00 00 B0 0C A0 [21:55:00]RasterBufferAndPrint [21:55:00]line [21:55:00]line [21:55:00]line [21:55:00]line [21:55:00]line [21:55:00]written 0, free lines is 3253 [21:55:00]MH_Cut [21:55:00]Write to MH i2c: D1 01 00 E0 04 01 B6 [21:55:00]Write i2c OK [21:55:00]MH_I2C_Read... [21:55:00]Read from MH i2c: D1 [21:55:00]MH_I2C_Read... [21:55:00]Read from MH i2c: D1 01 00 [21:55:00]MH_I2C_Read... [21:55:00]Read from MH i2c: D1 01 00 E0 04 00 B5 [21:55:00]Write to MH i2c: 01 00 00 E1 04 E5 [21:55:00]Write i2c OK [21:55:00]MH_I2C_Read... [21:55:01]OFD Sender: No OFD packet to send [21:55:01]*** Cut start [21:55:01]*** Partial cut [21:55:01]*** CUTSNS_PIN = 1 [21:55:01]*** CUTSNS_PIN = 0 [21:55:02]*** Brake cut motor [21:55:02]Read from MH i2c: 01 [21:55:02]MH_I2C_Read... [21:55:02]*** Stop cut motor [21:55:02]*** Cut end [21:55:02]Read from MH i2c: 01 07 00 [21:55:02]MH_I2C_Read... [21:55:02]Read from MH i2c: 01 07 00 E1 04 00 00 00 00 00 FF 0F FA [21:55:02]process_action close_receipt done [21:55:02]requested_data is exist [21:55:02]produce_requested_data [21:55:02]requested_item fm.sn is exist - process it [21:55:02]wFMCommunicate request_size=4 [21:55:02]MH_SAM_APDU [21:55:02]CAPDU: 80 11 00 00 [21:55:02]Write to MH i2c: E2 08 00 E2 04 80 11 00 00 00 00 00 00 60 [21:55:02]Write i2c OK [21:55:02]MH_I2C_Read... [21:55:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:55:02]Read from MH i2c: E2 [21:55:02]MH_I2C_Read... [21:55:02]Read from MH i2c: E2 17 00 [21:55:02]MH_I2C_Read... [21:55:02]Read from MH i2c: E2 17 00 E2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B7 [21:55:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:55:02]wFMCommunicate OK [21:55:02]requested_item fd.num is exist - process it [21:55:02]SAM_PROTO_GetFieldsCounters [21:55:02]wFMCommunicate request_size=4 [21:55:02]MH_SAM_APDU [21:55:02]CAPDU: 80 13 00 00 [21:55:02]Write to MH i2c: E2 08 00 E3 04 80 13 00 00 00 00 00 00 63 [21:55:02]Write i2c OK [21:55:02]MH_I2C_Read... [21:55:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:55:02]Read from MH i2c: E2 [21:55:02]MH_I2C_Read... [21:55:02]Read from MH i2c: E2 62 00 [21:55:02]MH_I2C_Read... [21:55:02]Read from MH i2c: E2 62 00 E3 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 56 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 92 01 00 00 5E 04 04 00 92 01 00 00 57 04 04 00 93 01 00 00 19 04 04 00 00 00 00 00 90 00 33 [21:55:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 56 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 92 01 00 00 5E 04 04 00 92 01 00 00 57 04 04 00 93 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:55:02]wFMCommunicate OK [21:55:02]SAM_PROTO_GetFieldsCounters done [21:55:02]requested_item shift.num is exist - process it [21:55:02]requested_item shift.opened is exist - process it [21:55:02]req_shift_opened [21:55:02]FM_GetShiftState [21:55:02]SAM_PROTO_GetShiftState [21:55:02]wFMCommunicate request_size=4 [21:55:02]MH_SAM_APDU [21:55:02]CAPDU: 80 13 01 00 [21:55:02]Write to MH i2c: E2 08 00 E4 04 80 13 01 00 00 00 00 00 65 [21:55:02]Write i2c OK [21:55:02]MH_I2C_Read... [21:55:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:55:02]Read from MH i2c: E2 [21:55:02]MH_I2C_Read... [21:55:02]Read from MH i2c: E2 0E 00 [21:55:02]MH_I2C_Read... [21:55:02]Read from MH i2c: E2 0E 00 E4 04 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 2C [21:55:02]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [21:55:02]wFMCommunicate OK [21:55:02]SAM_PROTO_GetShiftState done [21:55:02]FM_GetShiftState done [21:55:02]req_shift_opened done [21:55:02]requested_item shift.open_date is exist - process it [21:55:02]req_shift_open_date [21:55:02]req_shift_open_date done [21:55:02]produce_requested_data done [21:55:02]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228438,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [21:55:02]process_action_free close_receipt [21:55:02]json_value_free [21:55:02]json_value_free done [21:55:02]process_json_proto returns [21:55:02]Send response to host [21:55:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228438,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [21:55:02]free response buf [21:55:02]execute_script done [21:55:02]execute_script returns [21:55:02]free content buf [21:55:02]Sock 7.Close socket [21:55:02]Sock 7.Thread stoped [21:55:06]OFD Sender: No OFD packet to send [21:55:11]OFD Sender: No OFD packet to send [21:55:16]OFD Sender: No OFD packet to send [21:55:21]OFD Sender: No OFD packet to send [21:55:26]OFD Sender: No OFD packet to send [21:55:31]OFD Sender: No OFD packet to send [21:55:36]OFD Sender: No OFD packet to send [21:55:41]OFD Sender: No OFD packet to send [21:55:46]OFD Sender: No OFD packet to send [21:55:51]OFD Sender: No OFD packet to send [21:55:56]OFD Sender: No OFD packet to send [21:56:01]OFD Sender: No OFD packet to send [21:56:06]OFD Sender: No OFD packet to send [21:56:11]OFD Sender: No OFD packet to send [21:56:16]OFD Sender: No OFD packet to send [21:56:21]OFD Sender: No OFD packet to send [21:56:26]OFD Sender: No OFD packet to send [21:56:31]OFD Sender: No OFD packet to send [21:56:36]OFD Sender: No OFD packet to send [21:56:40]accept exits with 9 [21:56:40]New connection [21:56:40]New thread 3066977636 created [21:56:40]Thread 3066834276 joined [21:56:40]Waiting for new connection... [21:56:40] Sock 9.Parse request [21:56:40]Sock 9.Check first char [21:56:40]Sock 9.First char is OK [21:56:40]request: POST /json_proto HTTP/1.0 [21:56:40]Method: POST [21:56:40]URL: /json_proto [21:56:40]Method is POST - this is cgi request [21:56:40]url: /json_proto [21:56:40]query_string will be loaded in cgi processing [21:56:40]execute_cgi json_proto POST (null) [21:56:40]execute_cgi path=json_proto method=POST [21:56:40]POST find Content-Length [21:56:40]Host: 172.17.44.195:8080 [21:56:40]Content-Length: 683 [21:56:40]Content-Type: application/json [21:56:40] [21:56:40]POST finish read [21:56:40]Found Content-Length = 683 [21:56:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965084", "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" : 66.90, "quantity" : 14.950, "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" ] } } [21:56:40]execute_script... [21:56: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)1965084", "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" : 66.90, "quantity" : 14.950, "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" ] } } [21:56:40]POST & json_proto [21:56:40]process_json_proto [21:56:40]json parsed OK: [21:56:40]protocol is kg_v1.0 [21:56:40]action value=close_receipt [21:56:40]process_action close_receipt [21:56:40]cmd_close_receipt [21:56:40]MH_GetDate [21:56:40]Write to MH i2c: F0 00 00 E5 04 D8 [21:56:40]Write i2c OK [21:56:40]MH_I2C_Read... [21:56:40]Read from MH i2c: F0 [21:56:40]MH_I2C_Read... [21:56:40]Read from MH i2c: F0 09 00 [21:56:40]MH_I2C_Read... [21:56:40]Read from MH i2c: F0 09 00 E5 04 00 99 1F 18 67 82 C9 CF 66 98 [21:56:40]GetLastDocTimeStamp 1729634099 [21:56:40]current date 1729634201 [21:56:40]FM_GetShiftState [21:56:40]SAM_PROTO_GetShiftState [21:56:40]wFMCommunicate request_size=4 [21:56:40]MH_SAM_APDU [21:56:40]CAPDU: 80 13 01 00 [21:56:40]Write to MH i2c: E2 08 00 E6 04 80 13 01 00 00 00 00 00 67 [21:56:40]Write i2c OK [21:56:40]MH_I2C_Read... [21:56:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:40]Read from MH i2c: E2 [21:56:40]MH_I2C_Read... [21:56:40]Read from MH i2c: E2 0E 00 [21:56:40]MH_I2C_Read... [21:56:40]Read from MH i2c: E2 0E 00 E6 04 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 2E [21:56:40]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [21:56:40]wFMCommunicate OK [21:56:40]SAM_PROTO_GetShiftState done [21:56:40]FM_GetShiftState done [21:56:40]opened in 1729555538 [21:56:40]opened+sec_in_day 1729641938 [21:56:40]quantity*price = 100015 [21:56:40]sum+1 = 100017 [21:56:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 403 22.10.2024 21:56 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228439 ФПД: 242533024340700 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T215641&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228439&fm=242533024340700&tin=02508201610067®Number=0000000000091685&sum=100000 [21:56:41]StoreToDocumentArchive [21:56:41]shift 535 fd 228439 [21:56:41]save to /storage/0535/doc_00228439 [21:56:41]save last doc name /storage/0535/doc_00228439 to /storage/kkm_last_doc_name [21:56:41]save OK [21:56:41]Clear old archive folders... [21:56:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:56:41]tlvbuf is 00303C90 [21:56:41]SAM_PROTO_ClearQueue [21:56:41]wFMCommunicate request_size=4 [21:56:41]MH_SAM_APDU [21:56:41]CAPDU: 80 09 00 00 [21:56:41]Write to MH i2c: E2 08 00 F3 04 80 09 00 00 00 00 00 00 69 [21:56:41]Write i2c OK [21:56:41]MH_I2C_Read... [21:56:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:56:41]Read from MH i2c: E2 [21:56:41]MH_I2C_Read... [21:56:41]Read from MH i2c: E2 03 00 [21:56:41]MH_I2C_Read... [21:56:41]Read from MH i2c: E2 03 00 F3 04 00 90 00 6B [21:56:41]RAPDU: 90 00 [21:56:41]wFMCommunicate OK [21:56:41]SAM_PROTO_ClearQueue done [21:56:41]KKMCreateOFDPacket [21:56:41]OFDProtocolAddRootSTLVToBuf [21:56:41]FM_MakeSignedData [21:56:41]FM_MakeSignedData [21:56:41]SAM_PROTO_SignData [21:56:41]wFMCommunicate request_size=4 [21:56:41]MH_SAM_APDU [21:56:41]CAPDU: 80 0D 01 02 [21:56:41]Write to MH i2c: E2 08 00 F4 04 80 0D 01 02 00 00 00 00 71 [21:56:41]Write i2c OK [21:56:41]MH_I2C_Read... [21:56:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:56:42]Read from MH i2c: E2 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: E2 03 00 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: E2 03 00 F4 04 00 90 00 6C [21:56:42]RAPDU: 90 00 [21:56:42]wFMCommunicate OK [21:56:42]wFMCommunicate request_size=255 [21:56:42]MH_SAM_APDU [21:56: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 93 01 00 00 F4 03 04 00 99 1F 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 57 7C 03 00 35 04 06 00 DC [21:56:42]Write to MH i2c: E2 02 01 F5 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 93 01 00 00 F4 03 04 00 99 1F 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 57 7C 03 00 35 04 06 00 DC 00 00 98 [21:56:42]Write i2c OK [21:56:42]MH_I2C_Read... [21:56:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:42]Read from MH i2c: E2 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: E2 03 00 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: E2 03 00 F5 04 00 90 00 6D [21:56:42]RAPDU: 90 00 [21:56:42]wFMCommunicate OK [21:56:42]wFMCommunicate request_size=10 [21:56:42]MH_SAM_APDU [21:56:42]CAPDU: 80 0D 02 02 05 95 1E C3 1A DC [21:56:42]Write to MH i2c: E2 0D 00 F6 04 80 0D 02 02 05 00 95 1E C3 1A DC 00 00 EA [21:56:42]Write i2c OK [21:56:42]MH_I2C_Read... [21:56:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:42]Read from MH i2c: E2 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: E2 03 00 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: E2 03 00 F6 04 00 90 00 6E [21:56:42]RAPDU: 90 00 [21:56:42]wFMCommunicate OK [21:56:42]wFMCommunicate request_size=4 [21:56:42]MH_SAM_APDU [21:56:42]CAPDU: 80 0D 03 02 [21:56:42]Write to MH i2c: E2 08 00 F7 04 80 0D 03 02 00 00 00 00 76 [21:56:42]Write i2c OK [21:56:42]MH_I2C_Read... [21:56:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:56:42]Read from MH i2c: E2 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: E2 0B 00 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: E2 0B 00 F7 04 00 86 6F 92 A3 04 20 AA A3 90 00 12 [21:56:42]RAPDU: 86 6F 92 A3 04 20 AA A3 90 00 [21:56:42]wFMCommunicate OK [21:56:42]SAM_PROTO_SignData done [21:56:42]FM_MakeSignedData done [21:56:42]CreateOFDProtocolMessage [21:56:42]wFMCommunicate request_size=4 [21:56:42]MH_SAM_APDU [21:56:42]CAPDU: 80 11 00 00 [21:56:42]Write to MH i2c: E2 08 00 F8 04 80 11 00 00 00 00 00 00 76 [21:56:42]Write i2c OK [21:56:42]MH_I2C_Read... [21:56:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:42]Read from MH i2c: E2 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: E2 17 00 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: E2 17 00 F8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CD [21:56:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:56:42]wFMCommunicate OK [21:56:42]CreateOFDProtocolMessage done [21:56:42]OFDSenderStorePacket 228439 [21:56:42]StoreOFDPacket docnum=228439 [21:56:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 C2 6E 07 01 A6 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 93 01 00 00 F4 03 04 00 99 1F 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 57 7C 03 00 35 04 06 00 DC 95 1E C3 1A DC 86 6F 92 A3 04 20 AA A3 [21:56:42]CheckFolder [21:56:42]dirname=/storage/ofd_packets [21:56:42]CheckFolder done [21:56:42]ProducePacketName [21:56:42]name=ofd_packets/00228439 [21:56:42]NVStorageSaveData ofd_packets/00228439 [21:56:42]File name is /storage/ofd_packets/00228439 [21:56:42]Write 301 bytes [21:56:42]NVStorageSaveData done [21:56:42]OFDSenderStorePacket done [21:56:42]KKMCreateOFDPacket done [21:56:42]NVStorageSaveData kkm_last_timestamp [21:56:42]File name is /storage/kkm_last_timestamp [21:56:42]Write 4 bytes [21:56:42]NVStorageSaveData done [21:56:42]ExternCall_PrintAddStr [21:56:42]wPrintStart [21:56:42]Write to MH i2c: 01 00 00 F9 04 FD [21:56:42]OFD Sender: Processing packet 228439 [packets to send 38, broken 37] [21:56:42]ProducePacketName [21:56:42]name=ofd_packets/00228439 [21:56:42]OFD Sender: To server: pG, [21:56:42]CommunicateWithHost lk.salyk.kg:30040 [21:56:42]ConnectInit lk.salyk.kg [21:56:42]Write i2c OK [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: 01 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: 01 07 00 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: 01 07 00 F9 04 00 00 00 00 00 FF 0F 12 [21:56:42]RasterBufferAndPrint [21:56:42]line Счет N : (1)1965084 [21:56:42]line ИНН: 02508201610067 [21:56:42]line Контрольно-Кассовый Чек [21:56:42]line ПРОДАЖА [21:56:42]line ТРК (МРК, ГНК) : 63 [21:56:42]line Товар: 2710124130 [21:56:42]line Аи-92-К-5 [21:56:42]line 14.950 * 66.90 [21:56:42]line = 1000.16 [21:56:42]line НДС 12% НСП 1% [21:56:42]line > о реализуемом товаре [21:56:42]line ОКРУГЛЕНИЕ: -0.16 [21:56:42]line ИТОГО: 1000.00 [21:56:42]line Внесено: 1000.00 [21:56:42]line СДАЧА: 0.00 [21:56:42]line НСП 1% : 8.85 [21:56:42]line НДС 12% : 106.21 [21:56:42]line Наличными: 1000.00 [21:56:42]line Безнал.: 0.00 [21:56:42]line Место: АЗС № 133 "Партнер Нефть" [21:56:42]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:56:42]line СНО: Общий режим [21:56:42]line Чек 403 22.10.2024 21:56 [21:56:42]line Смена: 535 ФФД: 1.0 [21:56:42]line ЗНМ: 0300000091 [21:56:42]line РНМ: 0000000000091685 [21:56:42]line Версия ККМ: 001 [21:56:42]line ФМ: 0000000000871839 [21:56:42]line ФД: 228439 [21:56:42]line ФПД: 242533024340700 [21:56:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T215641&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228439&fm=242533024340700&tin=02508201610067®Number=0000000000091685&sum=100000 [21:56:42]written 0, free lines is 4095 [21:56:42]Connected sock=10 [21:56:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 C2 6E 07 01 A6 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 93 01 00 00 F4 03 04 00 99 1F 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 57 7C 03 00 35 04 06 00 DC 95 1E C3 1A DC 86 6F 92 A3 04 20 AA A3 [21:56:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 57 B9 47 00 AB 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 57 7C 03 00 F4 03 04 00 90 CA 17 67 B6 04 01 00 00 34 68 80 0A E0 BB 65 51 [21:56:42]CommunicateWithHost err = 0 [21:56:42]CheckOFDResponse [21:56:42]1017 (14) - 77093643461234 [21:56:42]1041 (16) - 0000000000871839 [21:56:42]1040 (4) - 228439 [21:56:42]1012 (4) - 22.10.2024 15:53 [21:56:42]1206 (1) - 0 [21:56:42]OFD Sender: Remove packet 228439 [21:56:42]ProducePacketName [21:56:42]name=ofd_packets/00228439 [21:56:42]NVStorageDeleteData [21:56:42]Write to MH i2c: 01 00 00 23 05 28 [21:56:42]Write i2c OK [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: 01 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: 01 07 00 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: 01 07 00 23 05 00 00 00 00 00 C3 0C FE [21:56:42]RasterBufferAndPrint [21:56:42]line [21:56:42]line [21:56:42]line [21:56:42]line [21:56:42]line [21:56:42]written 0, free lines is 3271 [21:56:42]MH_Cut [21:56:42]Write to MH i2c: D1 01 00 2A 05 01 01 [21:56:42]Write i2c OK [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: D1 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: D1 01 00 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: D1 01 00 2A 05 00 00 [21:56:42]Write to MH i2c: 01 00 00 2B 05 30 [21:56:42]Write i2c OK [21:56:42]MH_I2C_Read... [21:56:43]OFD Sender: No OFD packet to send [21:56:43]*** Cut start [21:56:43]*** Partial cut [21:56:43]*** CUTSNS_PIN = 1 [21:56:43]*** CUTSNS_PIN = 0 [21:56:44]*** Brake cut motor [21:56:44]Read from MH i2c: 01 [21:56:44]MH_I2C_Read... [21:56:44]*** Stop cut motor [21:56:44]*** Cut end [21:56:44]Read from MH i2c: 01 07 00 [21:56:44]MH_I2C_Read... [21:56:44]Read from MH i2c: 01 07 00 2B 05 00 00 00 00 00 FF 0F 45 [21:56:44]process_action close_receipt done [21:56:44]requested_data is exist [21:56:44]produce_requested_data [21:56:44]requested_item fm.sn is exist - process it [21:56:44]wFMCommunicate request_size=4 [21:56:44]MH_SAM_APDU [21:56:44]CAPDU: 80 11 00 00 [21:56:44]Write to MH i2c: E2 08 00 2C 05 80 11 00 00 00 00 00 00 AB [21:56:44]Write i2c OK [21:56:44]MH_I2C_Read... [21:56:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:44]Read from MH i2c: E2 [21:56:44]MH_I2C_Read... [21:56:44]Read from MH i2c: E2 17 00 [21:56:44]MH_I2C_Read... [21:56:44]Read from MH i2c: E2 17 00 2C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 02 [21:56:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:56:44]wFMCommunicate OK [21:56:44]requested_item fd.num is exist - process it [21:56:44]SAM_PROTO_GetFieldsCounters [21:56:44]wFMCommunicate request_size=4 [21:56:44]MH_SAM_APDU [21:56:44]CAPDU: 80 13 00 00 [21:56:44]Write to MH i2c: E2 08 00 2D 05 80 13 00 00 00 00 00 00 AE [21:56:44]Write i2c OK [21:56:44]MH_I2C_Read... [21:56:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:56:44]Read from MH i2c: E2 [21:56:44]MH_I2C_Read... [21:56:44]Read from MH i2c: E2 62 00 [21:56:44]MH_I2C_Read... [21:56:44]Read from MH i2c: E2 62 00 2D 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 57 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 93 01 00 00 5E 04 04 00 93 01 00 00 57 04 04 00 94 01 00 00 19 04 04 00 00 00 00 00 90 00 82 [21:56:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 57 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 93 01 00 00 5E 04 04 00 93 01 00 00 57 04 04 00 94 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:56:44]wFMCommunicate OK [21:56:44]SAM_PROTO_GetFieldsCounters done [21:56:44]requested_item shift.num is exist - process it [21:56:44]requested_item shift.opened is exist - process it [21:56:44]req_shift_opened [21:56:44]FM_GetShiftState [21:56:44]SAM_PROTO_GetShiftState [21:56:44]wFMCommunicate request_size=4 [21:56:44]MH_SAM_APDU [21:56:44]CAPDU: 80 13 01 00 [21:56:44]Write to MH i2c: E2 08 00 2E 05 80 13 01 00 00 00 00 00 B0 [21:56:44]Write i2c OK [21:56:44]MH_I2C_Read... [21:56:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:44]Read from MH i2c: E2 [21:56:44]MH_I2C_Read... [21:56:44]Read from MH i2c: E2 0E 00 [21:56:44]MH_I2C_Read... [21:56:44]Read from MH i2c: E2 0E 00 2E 05 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 77 [21:56:44]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [21:56:44]wFMCommunicate OK [21:56:44]SAM_PROTO_GetShiftState done [21:56:44]FM_GetShiftState done [21:56:44]req_shift_opened done [21:56:44]requested_item shift.open_date is exist - process it [21:56:44]req_shift_open_date [21:56:44]req_shift_open_date done [21:56:44]produce_requested_data done [21:56:44]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228439,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [21:56:44]process_action_free close_receipt [21:56:44]json_value_free [21:56:44]json_value_free done [21:56:44]process_json_proto returns [21:56:44]Send response to host [21:56:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228439,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [21:56:44]free response buf [21:56:44]execute_script done [21:56:44]execute_script returns [21:56:44]free content buf [21:56:44]Sock 9.Close socket [21:56:44]Sock 9.Thread stoped [21:56:48]OFD Sender: No OFD packet to send [21:56:53]OFD Sender: No OFD packet to send [21:56:58]OFD Sender: No OFD packet to send [21:57:03]OFD Sender: No OFD packet to send [21:57:08]OFD Sender: No OFD packet to send [21:57:13]OFD Sender: No OFD packet to send [21:57:18]OFD Sender: No OFD packet to send [21:57:23]OFD Sender: No OFD packet to send [21:57:28]OFD Sender: No OFD packet to send [21:57:33]OFD Sender: No OFD packet to send [21:57:34]accept exits with 7 [21:57:34]New connection [21:57:34]New thread 3066834276 created [21:57:34]Thread 3066977636 joined [21:57:34]Waiting for new connection... [21:57:34] Sock 7.Parse request [21:57:34]Sock 7.Check first char [21:57:34]Sock 7.First char is OK [21:57:34]request: POST /json_proto HTTP/1.0 [21:57:34]Method: POST [21:57:34]URL: /json_proto [21:57:34]Method is POST - this is cgi request [21:57:34]url: /json_proto [21:57:34]query_string will be loaded in cgi processing [21:57:34]execute_cgi json_proto POST (null) [21:57:34]execute_cgi path=json_proto method=POST [21:57:34]POST find Content-Length [21:57:34]Host: 172.17.44.195:8080 [21:57:34]Content-Length: 683 [21:57:34]Content-Type: application/json [21:57:34] [21:57:34]POST finish read [21:57:34]Found Content-Length = 683 [21:57:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:57:34]execute_script... [21:57: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)1965085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:57:34]POST & json_proto [21:57:34]process_json_proto [21:57:34]json parsed OK: [21:57:34]protocol is kg_v1.0 [21:57:34]action value=close_receipt [21:57:34]process_action close_receipt [21:57:34]cmd_close_receipt [21:57:34]MH_GetDate [21:57:34]Write to MH i2c: F0 00 00 2F 05 23 [21:57:34]Write i2c OK [21:57:34]MH_I2C_Read... [21:57:34]Read from MH i2c: F0 [21:57:34]MH_I2C_Read... [21:57:34]Read from MH i2c: F0 09 00 [21:57:34]MH_I2C_Read... [21:57:34]Read from MH i2c: F0 09 00 2F 05 00 CF 1F 18 67 82 C9 CF 66 19 [21:57:34]GetLastDocTimeStamp 1729634201 [21:57:34]current date 1729634255 [21:57:34]FM_GetShiftState [21:57:34]SAM_PROTO_GetShiftState [21:57:34]wFMCommunicate request_size=4 [21:57:34]MH_SAM_APDU [21:57:34]CAPDU: 80 13 01 00 [21:57:34]Write to MH i2c: E2 08 00 30 05 80 13 01 00 00 00 00 00 B2 [21:57:34]Write i2c OK [21:57:34]MH_I2C_Read... [21:57:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:34]Read from MH i2c: E2 [21:57:34]MH_I2C_Read... [21:57:34]Read from MH i2c: E2 0E 00 [21:57:34]MH_I2C_Read... [21:57:34]Read from MH i2c: E2 0E 00 30 05 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 79 [21:57:34]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [21:57:34]wFMCommunicate OK [21:57:34]SAM_PROTO_GetShiftState done [21:57:34]FM_GetShiftState done [21:57:34]opened in 1729555538 [21:57:34]opened+sec_in_day 1729641938 [21:57:34]quantity*price = 100021 [21:57:34]sum+1 = 100023 [21:57:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 404 22.10.2024 21:57 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228440 ФПД: 13743619348184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T215735&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228440&fm=13743619348184&tin=02508201610067®Number=0000000000091685&sum=100000 [21:57:35]StoreToDocumentArchive [21:57:35]shift 535 fd 228440 [21:57:35]save to /storage/0535/doc_00228440 [21:57:35]save last doc name /storage/0535/doc_00228440 to /storage/kkm_last_doc_name [21:57:35]save OK [21:57:35]Clear old archive folders... [21:57:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:57:35]tlvbuf is 00302B30 [21:57:35]SAM_PROTO_ClearQueue [21:57:35]wFMCommunicate request_size=4 [21:57:35]MH_SAM_APDU [21:57:35]CAPDU: 80 09 00 00 [21:57:35]Write to MH i2c: E2 08 00 3D 05 80 09 00 00 00 00 00 00 B4 [21:57:35]Write i2c OK [21:57:35]MH_I2C_Read... [21:57:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:57:35]Read from MH i2c: E2 [21:57:35]MH_I2C_Read... [21:57:35]Read from MH i2c: E2 03 00 [21:57:35]MH_I2C_Read... [21:57:35]Read from MH i2c: E2 03 00 3D 05 00 90 00 B6 [21:57:35]RAPDU: 90 00 [21:57:35]wFMCommunicate OK [21:57:35]SAM_PROTO_ClearQueue done [21:57:35]KKMCreateOFDPacket [21:57:35]OFDProtocolAddRootSTLVToBuf [21:57:35]FM_MakeSignedData [21:57:35]FM_MakeSignedData [21:57:35]SAM_PROTO_SignData [21:57:35]wFMCommunicate request_size=4 [21:57:35]MH_SAM_APDU [21:57:35]CAPDU: 80 0D 01 02 [21:57:35]Write to MH i2c: E2 08 00 3E 05 80 0D 01 02 00 00 00 00 BC [21:57:35]Write i2c OK [21:57:35]MH_I2C_Read... [21:57:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:57:35]Read from MH i2c: E2 [21:57:35]MH_I2C_Read... [21:57:35]Read from MH i2c: E2 03 00 [21:57:35]MH_I2C_Read... [21:57:35]Read from MH i2c: E2 03 00 3E 05 00 90 00 B7 [21:57:35]RAPDU: 90 00 [21:57:35]wFMCommunicate OK [21:57:35]wFMCommunicate request_size=255 [21:57:35]MH_SAM_APDU [21:57:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 CF 1F 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 58 7C 03 00 35 04 06 00 0C [21:57:35]Write to MH i2c: E2 02 01 3F 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 CF 1F 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 58 7C 03 00 35 04 06 00 0C 00 00 6E [21:57:35]Write i2c OK [21:57:35]MH_I2C_Read... [21:57:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:36]Read from MH i2c: E2 [21:57:36]MH_I2C_Read... [21:57:36]Read from MH i2c: E2 03 00 [21:57:36]MH_I2C_Read... [21:57:36]Read from MH i2c: E2 03 00 3F 05 00 90 00 B8 [21:57:36]RAPDU: 90 00 [21:57:36]wFMCommunicate OK [21:57:36]wFMCommunicate request_size=10 [21:57:36]MH_SAM_APDU [21:57:36]CAPDU: 80 0D 02 02 05 7F EF 8C 96 D8 [21:57:36]Write to MH i2c: E2 0D 00 40 05 80 0D 02 02 05 00 7F EF 8C 96 D8 00 00 31 [21:57:36]Write i2c OK [21:57:36]MH_I2C_Read... [21:57:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:36]Read from MH i2c: E2 [21:57:36]MH_I2C_Read... [21:57:36]Read from MH i2c: E2 03 00 [21:57:36]MH_I2C_Read... [21:57:36]Read from MH i2c: E2 03 00 40 05 00 90 00 B9 [21:57:36]RAPDU: 90 00 [21:57:36]wFMCommunicate OK [21:57:36]wFMCommunicate request_size=4 [21:57:36]MH_SAM_APDU [21:57:36]CAPDU: 80 0D 03 02 [21:57:36]Write to MH i2c: E2 08 00 41 05 80 0D 03 02 00 00 00 00 C1 [21:57:36]Write i2c OK [21:57:36]MH_I2C_Read... [21:57:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:57:36]Read from MH i2c: E2 [21:57:36]MH_I2C_Read... [21:57:36]Read from MH i2c: E2 0B 00 [21:57:36]MH_I2C_Read... [21:57:36]Read from MH i2c: E2 0B 00 41 05 00 4E 33 5D AF 1F 83 20 33 90 00 44 [21:57:36]RAPDU: 4E 33 5D AF 1F 83 20 33 90 00 [21:57:36]wFMCommunicate OK [21:57:36]SAM_PROTO_SignData done [21:57:36]FM_MakeSignedData done [21:57:36]CreateOFDProtocolMessage [21:57:36]wFMCommunicate request_size=4 [21:57:36]MH_SAM_APDU [21:57:36]CAPDU: 80 11 00 00 [21:57:36]Write to MH i2c: E2 08 00 42 05 80 11 00 00 00 00 00 00 C1 [21:57:36]Write i2c OK [21:57:36]MH_I2C_Read... [21:57:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:36]Read from MH i2c: E2 [21:57:36]MH_I2C_Read... [21:57:36]Read from MH i2c: E2 17 00 [21:57:36]MH_I2C_Read... [21:57:36]Read from MH i2c: E2 17 00 42 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 18 [21:57:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:57:36]wFMCommunicate OK [21:57:36]CreateOFDProtocolMessage done [21:57:36]OFDSenderStorePacket 228440 [21:57:36]StoreOFDPacket docnum=228440 [21:57:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B7 5F 07 01 CB 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 CF 1F 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 58 7C 03 00 35 04 06 00 0C 7F EF 8C 96 D8 4E 33 5D AF 1F 83 20 33 [21:57:36]CheckFolder [21:57:36]dirname=/storage/ofd_packets [21:57:36]CheckFolder done [21:57:36]ProducePacketName [21:57:36]name=ofd_packets/00228440 [21:57:36]NVStorageSaveData ofd_packets/00228440 [21:57:36]File name is /storage/ofd_packets/00228440 [21:57:36]Write 301 bytes [21:57:36]NVStorageSaveData done [21:57:36]OFDSenderStorePacket done [21:57:36]KKMCreateOFDPacket done [21:57:36]NVStorageSaveData kkm_last_timestamp [21:57:36]File name is /storage/kkm_last_timestamp [21:57:36]Write 4 bytes [21:57:36]NVStorageSaveData done [21:57:36]ExternCall_PrintAddStr [21:57:36]wPrintStart [21:57:36]Write to MH i2c: 01 00 00 43 05 48 [21:57:36]Write i2c OK [21:57:36]MH_I2C_Read... [21:57:36]Read from MH i2c: 01 [21:57:36]MH_I2C_Read... [21:57:36]Read from MH i2c: 01 07 00 [21:57:36]MH_I2C_Read... [21:57:36]Read from MH i2c: 01 07 00 43 05 00 00 00 00 00 FF 0F 5D [21:57:36]RasterBufferAndPrint [21:57:36]line Счет N : (1)1965085 [21:57:36]line ИНН: 02508201610067 [21:57:36]line Контрольно-Кассовый Чек [21:57:36]line ПРОДАЖА [21:57:36]line ТРК (МРК, ГНК) : 44 [21:57:36]line Товар: 2710124500 [21:57:36]line Аи-95-К-5 [21:57:36]line 13.480 * 74.20 [21:57:36]line = 1000.22 [21:57:36]line НДС 12% НСП 1% [21:57:36]line > о реализуемом товаре [21:57:36]line ОКРУГЛЕНИЕ: -0.22 [21:57:36]line ИТОГО: 1000.00 [21:57:36]line Внесено: 1000.00 [21:57:36]line СДАЧА: 0.00 [21:57:36]line НСП 1% : 8.85 [21:57:36]line НДС 12% : 106.22 [21:57:36]line Наличными: 1000.00 [21:57:36]line Безнал.: 0.00 [21:57:36]line Место: АЗС № 133 "Партнер Нефть" [21:57:36]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:57:36]line СНО: Общий режим [21:57:36]line Чек 404 22.10.2024 21:57 [21:57:36]line Смена: 535 ФФД: 1.0 [21:57:36]line ЗНМ: 0300000091 [21:57:36]line РНМ: 0000000000091685 [21:57:36]line Версия ККМ: 001 [21:57:36]line ФМ: 0000000000871839 [21:57:36]line ФД: 228440 [21:57:36]line ФПД: 13743619348184 [21:57:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T215735&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228440&fm=13743619348184&tin=02508201610067®Number=0000000000091685&sum=100000 [21:57:36]written 0, free lines is 4095 [21:57:36]OFD Sender: Processing packet 228440 [packets to send 38, broken 37] [21:57:36]ProducePacketName [21:57:36]name=ofd_packets/00228440 [21:57:36]OFD Sender: To server: pG, [21:57:36]CommunicateWithHost lk.salyk.kg:30040 [21:57:36]ConnectInit lk.salyk.kg [21:57:36]Connected sock=10 [21:57:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B7 5F 07 01 CB 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 CF 1F 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 58 7C 03 00 35 04 06 00 0C 7F EF 8C 96 D8 4E 33 5D AF 1F 83 20 33 [21:57:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 8C 1C 47 00 8C 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 58 7C 03 00 F4 03 04 00 C6 CA 17 67 B6 04 01 00 00 95 C2 40 7C 11 F7 83 95 [21:57:37]CommunicateWithHost err = 0 [21:57:37]CheckOFDResponse [21:57:37]1017 (14) - 77093643461234 [21:57:37]1041 (16) - 0000000000871839 [21:57:37]1040 (4) - 228440 [21:57:37]1012 (4) - 22.10.2024 15:54 [21:57:37]1206 (1) - 0 [21:57:37]OFD Sender: Remove packet 228440 [21:57:37]ProducePacketName [21:57:37]name=ofd_packets/00228440 [21:57:37]NVStorageDeleteData [21:57:37]Write to MH i2c: 01 00 00 6D 05 72 [21:57:37]Write i2c OK [21:57:37]MH_I2C_Read... [21:57:37]Read from MH i2c: 01 [21:57:37]MH_I2C_Read... [21:57:37]Read from MH i2c: 01 07 00 [21:57:37]MH_I2C_Read... [21:57:37]Read from MH i2c: 01 07 00 6D 05 00 00 00 00 00 B0 0C 35 [21:57:37]RasterBufferAndPrint [21:57:37]line [21:57:37]line [21:57:37]line [21:57:37]line [21:57:37]line [21:57:37]written 0, free lines is 3251 [21:57:37]MH_Cut [21:57:37]Write to MH i2c: D1 01 00 74 05 01 4B [21:57:37]Write i2c OK [21:57:37]MH_I2C_Read... [21:57:37]Read from MH i2c: D1 [21:57:37]MH_I2C_Read... [21:57:37]Read from MH i2c: D1 01 00 [21:57:37]MH_I2C_Read... [21:57:37]Read from MH i2c: D1 01 00 74 05 00 4A [21:57:37]Write to MH i2c: 01 00 00 75 05 7A [21:57:37]Write i2c OK [21:57:37]MH_I2C_Read... [21:57:37]OFD Sender: No OFD packet to send [21:57:38]*** Cut start [21:57:38]*** Partial cut [21:57:38]*** CUTSNS_PIN = 1 [21:57:38]*** CUTSNS_PIN = 0 [21:57:38]*** Brake cut motor [21:57:38]Read from MH i2c: 01 [21:57:38]MH_I2C_Read... [21:57:38]*** Stop cut motor [21:57:38]*** Cut end [21:57:38]Read from MH i2c: 01 07 00 [21:57:38]MH_I2C_Read... [21:57:38]Read from MH i2c: 01 07 00 75 05 00 00 00 00 00 FF 0F 8F [21:57:38]process_action close_receipt done [21:57:38]requested_data is exist [21:57:38]produce_requested_data [21:57:38]requested_item fm.sn is exist - process it [21:57:38]wFMCommunicate request_size=4 [21:57:38]MH_SAM_APDU [21:57:38]CAPDU: 80 11 00 00 [21:57:38]Write to MH i2c: E2 08 00 76 05 80 11 00 00 00 00 00 00 F5 [21:57:38]Write i2c OK [21:57:38]MH_I2C_Read... [21:57:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:38]Read from MH i2c: E2 [21:57:38]MH_I2C_Read... [21:57:38]Read from MH i2c: E2 17 00 [21:57:38]MH_I2C_Read... [21:57:38]Read from MH i2c: E2 17 00 76 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4C [21:57:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:57:38]wFMCommunicate OK [21:57:38]requested_item fd.num is exist - process it [21:57:38]SAM_PROTO_GetFieldsCounters [21:57:38]wFMCommunicate request_size=4 [21:57:38]MH_SAM_APDU [21:57:38]CAPDU: 80 13 00 00 [21:57:38]Write to MH i2c: E2 08 00 77 05 80 13 00 00 00 00 00 00 F8 [21:57:38]Write i2c OK [21:57:38]MH_I2C_Read... [21:57:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:57:38]Read from MH i2c: E2 [21:57:38]MH_I2C_Read... [21:57:38]Read from MH i2c: E2 62 00 [21:57:38]MH_I2C_Read... [21:57:38]Read from MH i2c: E2 62 00 77 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 58 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 94 01 00 00 5E 04 04 00 94 01 00 00 57 04 04 00 95 01 00 00 19 04 04 00 00 00 00 00 90 00 D0 [21:57:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 58 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 94 01 00 00 5E 04 04 00 94 01 00 00 57 04 04 00 95 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:57:38]wFMCommunicate OK [21:57:38]SAM_PROTO_GetFieldsCounters done [21:57:38]requested_item shift.num is exist - process it [21:57:38]requested_item shift.opened is exist - process it [21:57:38]req_shift_opened [21:57:38]FM_GetShiftState [21:57:38]SAM_PROTO_GetShiftState [21:57:38]wFMCommunicate request_size=4 [21:57:38]MH_SAM_APDU [21:57:38]CAPDU: 80 13 01 00 [21:57:38]Write to MH i2c: E2 08 00 78 05 80 13 01 00 00 00 00 00 FA [21:57:38]Write i2c OK [21:57:38]MH_I2C_Read... [21:57:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:39]Read from MH i2c: E2 [21:57:39]MH_I2C_Read... [21:57:39]Read from MH i2c: E2 0E 00 [21:57:39]MH_I2C_Read... [21:57:39]Read from MH i2c: E2 0E 00 78 05 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 C1 [21:57:39]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [21:57:39]wFMCommunicate OK [21:57:39]SAM_PROTO_GetShiftState done [21:57:39]FM_GetShiftState done [21:57:39]req_shift_opened done [21:57:39]requested_item shift.open_date is exist - process it [21:57:39]req_shift_open_date [21:57:39]req_shift_open_date done [21:57:39]produce_requested_data done [21:57:39]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228440,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [21:57:39]process_action_free close_receipt [21:57:39]json_value_free [21:57:39]json_value_free done [21:57:39]process_json_proto returns [21:57:39]Send response to host [21:57:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228440,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [21:57:39]free response buf [21:57:39]execute_script done [21:57:39]execute_script returns [21:57:39]free content buf [21:57:39]Sock 7.Close socket [21:57:39]Sock 7.Thread stoped [21:57:42]OFD Sender: No OFD packet to send [21:57:47]OFD Sender: No OFD packet to send [21:57:52]OFD Sender: No OFD packet to send [21:57:57]OFD Sender: No OFD packet to send [21:58:02]OFD Sender: No OFD packet to send [21:58:07]OFD Sender: No OFD packet to send [21:58:12]OFD Sender: No OFD packet to send [21:58:17]OFD Sender: No OFD packet to send [21:58:22]OFD Sender: No OFD packet to send [21:58:27]OFD Sender: No OFD packet to send [21:58:32]OFD Sender: No OFD packet to send [21:58:37]OFD Sender: No OFD packet to send [21:58:40]accept exits with 9 [21:58:40]New connection [21:58:40]New thread 3066977636 created [21:58:40]Thread 3066834276 joined [21:58:40]Waiting for new connection... [21:58:40] Sock 9.Parse request [21:58:40]Sock 9.Check first char [21:58:40]Sock 9.First char is OK [21:58:40]request: POST /json_proto HTTP/1.0 [21:58:40]Method: POST [21:58:40]URL: /json_proto [21:58:40]Method is POST - this is cgi request [21:58:40]url: /json_proto [21:58:40]query_string will be loaded in cgi processing [21:58:40]execute_cgi json_proto POST (null) [21:58:40]execute_cgi path=json_proto method=POST [21:58:40]POST find Content-Length [21:58:40]Host: 172.17.44.195:8080 [21:58:40]Content-Length: 679 [21:58:40]Content-Type: application/json [21:58:40] [21:58:40]POST finish read [21:58:40]Found Content-Length = 679 [21:58:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965086", "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" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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:58:40]execute_script... [21:58: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)1965086", "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" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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:58:40]POST & json_proto [21:58:40]process_json_proto [21:58:40]json parsed OK: [21:58:40]protocol is kg_v1.0 [21:58:40]action value=close_receipt [21:58:40]process_action close_receipt [21:58:40]cmd_close_receipt [21:58:40]MH_GetDate [21:58:40]Write to MH i2c: F0 00 00 79 05 6D [21:58:40]Write i2c OK [21:58:40]MH_I2C_Read... [21:58:40]Read from MH i2c: F0 [21:58:40]MH_I2C_Read... [21:58:40]Read from MH i2c: F0 09 00 [21:58:40]MH_I2C_Read... [21:58:40]Read from MH i2c: F0 09 00 79 05 00 11 20 18 67 82 C9 CF 66 A6 [21:58:40]GetLastDocTimeStamp 1729634255 [21:58:40]current date 1729634321 [21:58:40]FM_GetShiftState [21:58:40]SAM_PROTO_GetShiftState [21:58:40]wFMCommunicate request_size=4 [21:58:40]MH_SAM_APDU [21:58:40]CAPDU: 80 13 01 00 [21:58:40]Write to MH i2c: E2 08 00 7A 05 80 13 01 00 00 00 00 00 FC [21:58:40]Write i2c OK [21:58:40]MH_I2C_Read... [21:58:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:40]Read from MH i2c: E2 [21:58:40]MH_I2C_Read... [21:58:40]Read from MH i2c: E2 0E 00 [21:58:40]MH_I2C_Read... [21:58:40]Read from MH i2c: E2 0E 00 7A 05 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 C3 [21:58:40]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [21:58:40]wFMCommunicate OK [21:58:40]SAM_PROTO_GetShiftState done [21:58:40]FM_GetShiftState done [21:58:40]opened in 1729555538 [21:58:40]opened+sec_in_day 1729641938 [21:58:40]quantity*price = 70044 [21:58:40]sum+1 = 70045 [21:58:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 405 22.10.2024 21:58 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228441 ФПД: 226615151597356 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T215841&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228441&fm=226615151597356&tin=02508201610067®Number=0000000000091685&sum=70000 [21:58:41]StoreToDocumentArchive [21:58:41]shift 535 fd 228441 [21:58:41]save to /storage/0535/doc_00228441 [21:58:41]save last doc name /storage/0535/doc_00228441 to /storage/kkm_last_doc_name [21:58:41]save OK [21:58:41]Clear old archive folders... [21:58:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:58:41]tlvbuf is 002FB060 [21:58:41]SAM_PROTO_ClearQueue [21:58:41]wFMCommunicate request_size=4 [21:58:41]MH_SAM_APDU [21:58:41]CAPDU: 80 09 00 00 [21:58:41]Write to MH i2c: E2 08 00 87 05 80 09 00 00 00 00 00 00 FE [21:58:41]Write i2c OK [21:58:41]MH_I2C_Read... [21:58:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:58:41]Read from MH i2c: E2 [21:58:41]MH_I2C_Read... [21:58:41]Read from MH i2c: E2 03 00 [21:58:41]MH_I2C_Read... [21:58:41]Read from MH i2c: E2 03 00 87 05 00 90 00 00 [21:58:41]RAPDU: 90 00 [21:58:41]wFMCommunicate OK [21:58:41]SAM_PROTO_ClearQueue done [21:58:41]KKMCreateOFDPacket [21:58:41]OFDProtocolAddRootSTLVToBuf [21:58:41]FM_MakeSignedData [21:58:41]FM_MakeSignedData [21:58:41]SAM_PROTO_SignData [21:58:41]wFMCommunicate request_size=4 [21:58:41]MH_SAM_APDU [21:58:41]CAPDU: 80 0D 01 02 [21:58:41]Write to MH i2c: E2 08 00 88 05 80 0D 01 02 00 00 00 00 06 [21:58:41]Write i2c OK [21:58:41]MH_I2C_Read... [21:58:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:58:41]Read from MH i2c: E2 [21:58:41]MH_I2C_Read... [21:58:41]Read from MH i2c: E2 03 00 [21:58:41]MH_I2C_Read... [21:58:41]Read from MH i2c: E2 03 00 88 05 00 90 00 01 [21:58:41]RAPDU: 90 00 [21:58:41]wFMCommunicate OK [21:58:41]wFMCommunicate request_size=255 [21:58:41]MH_SAM_APDU [21:58: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 95 01 00 00 F4 03 04 00 11 20 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 59 7C 03 00 35 04 06 00 CE [21:58:41]Write to MH i2c: E2 02 01 89 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 95 01 00 00 F4 03 04 00 11 20 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 59 7C 03 00 35 04 06 00 CE 00 00 B2 [21:58:41]Write i2c OK [21:58:41]MH_I2C_Read... [21:58:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:41]Read from MH i2c: E2 [21:58:41]MH_I2C_Read... [21:58:41]Read from MH i2c: E2 03 00 [21:58:41]MH_I2C_Read... [21:58:41]Read from MH i2c: E2 03 00 89 05 00 90 00 02 [21:58:41]RAPDU: 90 00 [21:58:41]wFMCommunicate OK [21:58:41]wFMCommunicate request_size=10 [21:58:41]MH_SAM_APDU [21:58:41]CAPDU: 80 0D 02 02 05 1A F3 9C 97 2C [21:58:41]Write to MH i2c: E2 0D 00 8A 05 80 0D 02 02 05 00 1A F3 9C 97 2C 00 00 7F [21:58:41]Write i2c OK [21:58:41]MH_I2C_Read... [21:58:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:42]Read from MH i2c: E2 [21:58:42]MH_I2C_Read... [21:58:42]Read from MH i2c: E2 03 00 [21:58:42]MH_I2C_Read... [21:58:42]Read from MH i2c: E2 03 00 8A 05 00 90 00 03 [21:58:42]RAPDU: 90 00 [21:58:42]wFMCommunicate OK [21:58:42]wFMCommunicate request_size=4 [21:58:42]MH_SAM_APDU [21:58:42]CAPDU: 80 0D 03 02 [21:58:42]Write to MH i2c: E2 08 00 8B 05 80 0D 03 02 00 00 00 00 0B [21:58:42]Write i2c OK [21:58:42]MH_I2C_Read... [21:58:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:58:42]Read from MH i2c: E2 [21:58:42]MH_I2C_Read... [21:58:42]Read from MH i2c: E2 0B 00 [21:58:42]MH_I2C_Read... [21:58:42]Read from MH i2c: E2 0B 00 8B 05 00 D1 69 B5 75 70 81 F9 B1 90 00 0B [21:58:42]RAPDU: D1 69 B5 75 70 81 F9 B1 90 00 [21:58:42]wFMCommunicate OK [21:58:42]SAM_PROTO_SignData done [21:58:42]FM_MakeSignedData done [21:58:42]CreateOFDProtocolMessage [21:58:42]wFMCommunicate request_size=4 [21:58:42]MH_SAM_APDU [21:58:42]CAPDU: 80 11 00 00 [21:58:42]Write to MH i2c: E2 08 00 8C 05 80 11 00 00 00 00 00 00 0B [21:58:42]Write i2c OK [21:58:42]MH_I2C_Read... [21:58:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:42]Read from MH i2c: E2 [21:58:42]MH_I2C_Read... [21:58:42]Read from MH i2c: E2 17 00 [21:58:42]MH_I2C_Read... [21:58:42]Read from MH i2c: E2 17 00 8C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 62 [21:58:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:58:42]wFMCommunicate OK [21:58:42]CreateOFDProtocolMessage done [21:58:42]OFDSenderStorePacket 228441 [21:58:42]StoreOFDPacket docnum=228441 [21:58:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 BB 18 07 01 6D 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 95 01 00 00 F4 03 04 00 11 20 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 59 7C 03 00 35 04 06 00 CE 1A F3 9C 97 2C D1 69 B5 75 70 81 F9 B1 [21:58:42]CheckFolder [21:58:42]dirname=/storage/ofd_packets [21:58:42]CheckFolder done [21:58:42]ProducePacketName [21:58:42]name=ofd_packets/00228441 [21:58:42]NVStorageSaveData ofd_packets/00228441 [21:58:42]File name is /storage/ofd_packets/00228441 [21:58:42]Write 301 bytes [21:58:42]NVStorageSaveData done [21:58:42]OFDSenderStorePacket done [21:58:42]KKMCreateOFDPacket done [21:58:42]NVStorageSaveData kkm_last_timestamp [21:58:42]File name is /storage/kkm_last_timestamp [21:58:42]Write 4 bytes [21:58:42]NVStorageSaveData done [21:58:42]ExternCall_PrintAddStr [21:58:42]wPrintStart [21:58:42]Write to MH i2c: 01 00 00 8D 05 92 [21:58:42]Write i2c OK [21:58:42]MH_I2C_Read... [21:58:42]Read from MH i2c: 01 [21:58:42]MH_I2C_Read... [21:58:42]Read from MH i2c: 01 07 00 [21:58:42]MH_I2C_Read... [21:58:42]Read from MH i2c: 01 07 00 8D 05 00 00 00 00 00 FF 0F A7 [21:58:42]RasterBufferAndPrint [21:58:42]line Счет N : (1)1965086 [21:58:42]line ИНН: 02508201610067 [21:58:42]line Контрольно-Кассовый Чек [21:58:42]line ПРОДАЖА [21:58:42]line ТРК (МРК, ГНК) : 53 [21:58:42]line Товар: 2710124130 [21:58:42]line Аи-92-К-5 [21:58:42]line 10.470 * 66.90 [21:58:42]line = 700.44 [21:58:42]line НДС 12% НСП 1% [21:58:42]line > о реализуемом товаре [21:58:42]line ОКРУГЛЕНИЕ: -0.44 [21:58:42]line ИТОГО: 700.00 [21:58:42]line Внесено: 700.00 [21:58:42]line СДАЧА: 0.00 [21:58:42]line НСП 1% : 6.20 [21:58:42]line НДС 12% : 74.38 [21:58:42]line Наличными: 700.00 [21:58:42]line Безнал.: 0.00 [21:58:42]line Место: АЗС № 133 "Партнер Нефть" [21:58:42]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:58:42]line СНО: Общий режим [21:58:42]line Чек 405 22.10.2024 21:58 [21:58:42]line Смена: 535 ФФД: 1.0 [21:58:42]line ЗНМ: 0300000091 [21:58:42]line РНМ: 0000000000091685 [21:58:42]line Версия ККМ: 001 [21:58:42]line ФМ: 0000000000871839 [21:58:42]line ФД: 228441 [21:58:42]line ФПД: 226615151597356 [21:58:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T215841&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228441&fm=226615151597356&tin=02508201610067®Number=0000000000091685&sum=70000 [21:58:42]OFD Sender: Processing packet 228441 [packets to send 38, broken 37] [21:58:42]ProducePacketName [21:58:42]name=ofd_packets/00228441 [21:58:42]OFD Sender: To server: pG, [21:58:42]CommunicateWithHost lk.salyk.kg:30040 [21:58:42]ConnectInit lk.salyk.kg [21:58:42]written 0, free lines is 4095 [21:58:42]Connected sock=10 [21:58:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 BB 18 07 01 6D 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 95 01 00 00 F4 03 04 00 11 20 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 59 7C 03 00 35 04 06 00 CE 1A F3 9C 97 2C D1 69 B5 75 70 81 F9 B1 [21:58:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 A0 4E 47 00 84 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 59 7C 03 00 F4 03 04 00 08 CB 17 67 B6 04 01 00 00 76 9B 2A F7 80 48 5E 6E [21:58:42]CommunicateWithHost err = 0 [21:58:42]CheckOFDResponse [21:58:42]1017 (14) - 77093643461234 [21:58:42]1041 (16) - 0000000000871839 [21:58:42]1040 (4) - 228441 [21:58:42]1012 (4) - 22.10.2024 15:55 [21:58:42]1206 (1) - 0 [21:58:42]OFD Sender: Remove packet 228441 [21:58:42]ProducePacketName [21:58:42]name=ofd_packets/00228441 [21:58:42]NVStorageDeleteData [21:58:42]Write to MH i2c: 01 00 00 B7 05 BC [21:58:42]Write i2c OK [21:58:42]MH_I2C_Read... [21:58:42]Read from MH i2c: 01 [21:58:42]MH_I2C_Read... [21:58:42]Read from MH i2c: 01 07 00 [21:58:42]MH_I2C_Read... [21:58:42]Read from MH i2c: 01 07 00 B7 05 00 00 00 00 00 AF 0C 7E [21:58:42]RasterBufferAndPrint [21:58:42]line [21:58:42]line [21:58:42]line [21:58:42]line [21:58:42]line [21:58:42]written 0, free lines is 3251 [21:58:42]MH_Cut [21:58:42]Write to MH i2c: D1 01 00 BE 05 01 95 [21:58:42]Write i2c OK [21:58:42]MH_I2C_Read... [21:58:42]Read from MH i2c: D1 [21:58:42]MH_I2C_Read... [21:58:42]Read from MH i2c: D1 01 00 [21:58:42]MH_I2C_Read... [21:58:42]Read from MH i2c: D1 01 00 BE 05 00 94 [21:58:42]Write to MH i2c: 01 00 00 BF 05 C4 [21:58:42]Write i2c OK [21:58:42]MH_I2C_Read... [21:58:43]OFD Sender: No OFD packet to send [21:58:43]*** Cut start [21:58:43]*** Partial cut [21:58:43]*** CUTSNS_PIN = 1 [21:58:43]*** CUTSNS_PIN = 0 [21:58:44]*** Brake cut motor [21:58:44]Read from MH i2c: 01 [21:58:44]MH_I2C_Read... [21:58:44]*** Stop cut motor [21:58:44]*** Cut end [21:58:44]Read from MH i2c: 01 07 00 [21:58:44]MH_I2C_Read... [21:58:44]Read from MH i2c: 01 07 00 BF 05 00 00 00 00 00 FF 0F D9 [21:58:44]process_action close_receipt done [21:58:44]requested_data is exist [21:58:44]produce_requested_data [21:58:44]requested_item fm.sn is exist - process it [21:58:44]wFMCommunicate request_size=4 [21:58:44]MH_SAM_APDU [21:58:44]CAPDU: 80 11 00 00 [21:58:44]Write to MH i2c: E2 08 00 C0 05 80 11 00 00 00 00 00 00 3F [21:58:44]Write i2c OK [21:58:44]MH_I2C_Read... [21:58:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:44]Read from MH i2c: E2 [21:58:44]MH_I2C_Read... [21:58:44]Read from MH i2c: E2 17 00 [21:58:44]MH_I2C_Read... [21:58:44]Read from MH i2c: E2 17 00 C0 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 96 [21:58:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:58:44]wFMCommunicate OK [21:58:44]requested_item fd.num is exist - process it [21:58:44]SAM_PROTO_GetFieldsCounters [21:58:44]wFMCommunicate request_size=4 [21:58:44]MH_SAM_APDU [21:58:44]CAPDU: 80 13 00 00 [21:58:44]Write to MH i2c: E2 08 00 C1 05 80 13 00 00 00 00 00 00 42 [21:58:44]Write i2c OK [21:58:44]MH_I2C_Read... [21:58:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:58:44]Read from MH i2c: E2 [21:58:44]MH_I2C_Read... [21:58:44]Read from MH i2c: E2 62 00 [21:58:44]MH_I2C_Read... [21:58:44]Read from MH i2c: E2 62 00 C1 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 59 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 95 01 00 00 5E 04 04 00 95 01 00 00 57 04 04 00 96 01 00 00 19 04 04 00 00 00 00 00 90 00 1E [21:58:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 59 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 95 01 00 00 5E 04 04 00 95 01 00 00 57 04 04 00 96 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:58:44]wFMCommunicate OK [21:58:44]SAM_PROTO_GetFieldsCounters done [21:58:44]requested_item shift.num is exist - process it [21:58:44]requested_item shift.opened is exist - process it [21:58:44]req_shift_opened [21:58:44]FM_GetShiftState [21:58:44]SAM_PROTO_GetShiftState [21:58:44]wFMCommunicate request_size=4 [21:58:44]MH_SAM_APDU [21:58:44]CAPDU: 80 13 01 00 [21:58:44]Write to MH i2c: E2 08 00 C2 05 80 13 01 00 00 00 00 00 44 [21:58:44]Write i2c OK [21:58:44]MH_I2C_Read... [21:58:44]Read from MH i2c: E2 [21:58:44]MH_I2C_Read... [21:58:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:44]Read from MH i2c: E2 0E 00 [21:58:44]MH_I2C_Read... [21:58:44]Read from MH i2c: E2 0E 00 C2 05 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 0B [21:58:44]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [21:58:44]wFMCommunicate OK [21:58:44]SAM_PROTO_GetShiftState done [21:58:44]FM_GetShiftState done [21:58:44]req_shift_opened done [21:58:44]requested_item shift.open_date is exist - process it [21:58:44]req_shift_open_date [21:58:44]req_shift_open_date done [21:58:44]produce_requested_data done [21:58:44]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228441,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [21:58:44]process_action_free close_receipt [21:58:44]json_value_free [21:58:44]json_value_free done [21:58:44]process_json_proto returns [21:58:44]Send response to host [21:58:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228441,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [21:58:44]free response buf [21:58:44]execute_script done [21:58:44]execute_script returns [21:58:44]free content buf [21:58:44]Sock 9.Close socket [21:58:44]Sock 9.Thread stoped [21:58:48]OFD Sender: No OFD packet to send [21:58:53]OFD Sender: No OFD packet to send [21:58:58]OFD Sender: No OFD packet to send [21:59:03]OFD Sender: No OFD packet to send [21:59:08]OFD Sender: No OFD packet to send [21:59:13]OFD Sender: No OFD packet to send [21:59:18]OFD Sender: No OFD packet to send [21:59:23]OFD Sender: No OFD packet to send [21:59:28]OFD Sender: No OFD packet to send [21:59:33]OFD Sender: No OFD packet to send [21:59:38]OFD Sender: No OFD packet to send [21:59:43]OFD Sender: No OFD packet to send [21:59:48]OFD Sender: No OFD packet to send [21:59:50]accept exits with 7 [21:59:50]New connection [21:59:50]New thread 3066834276 created [21:59:50]Thread 3066977636 joined [21:59:50]Waiting for new connection... [21:59:50] Sock 7.Parse request [21:59:50]Sock 7.Check first char [21:59:50]Sock 7.First char is OK [21:59:50]request: POST /json_proto HTTP/1.0 [21:59:50]Method: POST [21:59:50]URL: /json_proto [21:59:50]Method is POST - this is cgi request [21:59:50]url: /json_proto [21:59:50]query_string will be loaded in cgi processing [21:59:50]execute_cgi json_proto POST (null) [21:59:50]execute_cgi path=json_proto method=POST [21:59:50]POST find Content-Length [21:59:50]Host: 172.17.44.195:8080 [21:59:50]Content-Length: 678 [21:59:50]Content-Type: application/json [21:59:50] [21:59:50]POST finish read [21:59:50]Found Content-Length = 678 [21:59:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "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" ] } } [21:59:50]execute_script... [21:59: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)1965087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "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" ] } } [21:59:50]POST & json_proto [21:59:50]process_json_proto [21:59:50]json parsed OK: [21:59:50]protocol is kg_v1.0 [21:59:50]action value=close_receipt [21:59:50]process_action close_receipt [21:59:50]cmd_close_receipt [21:59:50]MH_GetDate [21:59:50]Write to MH i2c: F0 00 00 C3 05 B7 [21:59:50]Write i2c OK [21:59:50]MH_I2C_Read... [21:59:50]Read from MH i2c: F0 [21:59:50]MH_I2C_Read... [21:59:50]Read from MH i2c: F0 09 00 [21:59:50]MH_I2C_Read... [21:59:50]Read from MH i2c: F0 09 00 C3 05 00 56 20 18 67 82 C9 CF 66 35 [21:59:50]GetLastDocTimeStamp 1729634321 [21:59:50]current date 1729634390 [21:59:50]FM_GetShiftState [21:59:50]SAM_PROTO_GetShiftState [21:59:50]wFMCommunicate request_size=4 [21:59:50]MH_SAM_APDU [21:59:50]CAPDU: 80 13 01 00 [21:59:50]Write to MH i2c: E2 08 00 C4 05 80 13 01 00 00 00 00 00 46 [21:59:50]Write i2c OK [21:59:50]MH_I2C_Read... [21:59:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:59:50]Read from MH i2c: E2 [21:59:50]MH_I2C_Read... [21:59:50]Read from MH i2c: E2 0E 00 [21:59:50]MH_I2C_Read... [21:59:50]Read from MH i2c: E2 0E 00 C4 05 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 0D [21:59:50]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [21:59:50]wFMCommunicate OK [21:59:50]SAM_PROTO_GetShiftState done [21:59:50]FM_GetShiftState done [21:59:50]opened in 1729555538 [21:59:50]opened+sec_in_day 1729641938 [21:59:50]quantity*price = 40006 [21:59:50]sum+1 = 40007 [21:59:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 406 22.10.2024 21:59 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228442 ФПД: 86248849265029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T215950&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228442&fm=86248849265029&tin=02508201610067®Number=0000000000091685&sum=40000 [21:59:51]StoreToDocumentArchive [21:59:51]shift 535 fd 228442 [21:59:51]save to /storage/0535/doc_00228442 [21:59:51]save last doc name /storage/0535/doc_00228442 to /storage/kkm_last_doc_name [21:59:51]save OK [21:59:51]Clear old archive folders... [21:59:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:59:51]tlvbuf is 0030E600 [21:59:51]SAM_PROTO_ClearQueue [21:59:51]wFMCommunicate request_size=4 [21:59:51]MH_SAM_APDU [21:59:51]CAPDU: 80 09 00 00 [21:59:51]Write to MH i2c: E2 08 00 D1 05 80 09 00 00 00 00 00 00 48 [21:59:51]Write i2c OK [21:59:51]MH_I2C_Read... [21:59:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:59:51]Read from MH i2c: E2 [21:59:51]MH_I2C_Read... [21:59:51]Read from MH i2c: E2 03 00 [21:59:51]MH_I2C_Read... [21:59:51]Read from MH i2c: E2 03 00 D1 05 00 90 00 4A [21:59:51]RAPDU: 90 00 [21:59:51]wFMCommunicate OK [21:59:51]SAM_PROTO_ClearQueue done [21:59:51]KKMCreateOFDPacket [21:59:51]OFDProtocolAddRootSTLVToBuf [21:59:51]FM_MakeSignedData [21:59:51]FM_MakeSignedData [21:59:51]SAM_PROTO_SignData [21:59:51]wFMCommunicate request_size=4 [21:59:51]MH_SAM_APDU [21:59:51]CAPDU: 80 0D 01 02 [21:59:51]Write to MH i2c: E2 08 00 D2 05 80 0D 01 02 00 00 00 00 50 [21:59:51]Write i2c OK [21:59:51]MH_I2C_Read... [21:59:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:59:51]Read from MH i2c: E2 [21:59:51]MH_I2C_Read... [21:59:51]Read from MH i2c: E2 03 00 [21:59:51]MH_I2C_Read... [21:59:51]Read from MH i2c: E2 03 00 D2 05 00 90 00 4B [21:59:51]RAPDU: 90 00 [21:59:51]wFMCommunicate OK [21:59:51]wFMCommunicate request_size=255 [21:59:51]MH_SAM_APDU [21:59: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 96 01 00 00 F4 03 04 00 56 20 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5A 7C 03 00 35 04 06 00 4E [21:59:51]Write to MH i2c: E2 02 01 D3 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 96 01 00 00 F4 03 04 00 56 20 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5A 7C 03 00 35 04 06 00 4E 00 00 82 [21:59:51]Write i2c OK [21:59:51]MH_I2C_Read... [21:59:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:59:51]Read from MH i2c: E2 [21:59:51]MH_I2C_Read... [21:59:51]Read from MH i2c: E2 03 00 [21:59:51]MH_I2C_Read... [21:59:51]Read from MH i2c: E2 03 00 D3 05 00 90 00 4C [21:59:51]RAPDU: 90 00 [21:59:51]wFMCommunicate OK [21:59:51]wFMCommunicate request_size=10 [21:59:51]MH_SAM_APDU [21:59:51]CAPDU: 80 0D 02 02 05 71 60 05 D1 85 [21:59:51]Write to MH i2c: E2 0D 00 D4 05 80 0D 02 02 05 00 71 60 05 D1 85 00 00 89 [21:59:51]Write i2c OK [21:59:51]MH_I2C_Read... [21:59:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:59:51]Read from MH i2c: E2 [21:59:51]MH_I2C_Read... [21:59:51]Read from MH i2c: E2 03 00 [21:59:51]MH_I2C_Read... [21:59:51]Read from MH i2c: E2 03 00 D4 05 00 90 00 4D [21:59:51]RAPDU: 90 00 [21:59:51]wFMCommunicate OK [21:59:51]wFMCommunicate request_size=4 [21:59:51]MH_SAM_APDU [21:59:51]CAPDU: 80 0D 03 02 [21:59:51]Write to MH i2c: E2 08 00 D5 05 80 0D 03 02 00 00 00 00 55 [21:59:51]Write i2c OK [21:59:51]MH_I2C_Read... [21:59:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:59:51]Read from MH i2c: E2 [21:59:51]MH_I2C_Read... [21:59:51]Read from MH i2c: E2 0B 00 [21:59:52]MH_I2C_Read... [21:59:52]Read from MH i2c: E2 0B 00 D5 05 00 74 D2 1C 05 D7 A3 4B D9 90 00 5B [21:59:52]RAPDU: 74 D2 1C 05 D7 A3 4B D9 90 00 [21:59:52]wFMCommunicate OK [21:59:52]SAM_PROTO_SignData done [21:59:52]FM_MakeSignedData done [21:59:52]CreateOFDProtocolMessage [21:59:52]wFMCommunicate request_size=4 [21:59:52]MH_SAM_APDU [21:59:52]CAPDU: 80 11 00 00 [21:59:52]Write to MH i2c: E2 08 00 D6 05 80 11 00 00 00 00 00 00 55 [21:59:52]Write i2c OK [21:59:52]MH_I2C_Read... [21:59:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:59:52]Read from MH i2c: E2 [21:59:52]MH_I2C_Read... [21:59:52]Read from MH i2c: E2 17 00 [21:59:52]MH_I2C_Read... [21:59:52]Read from MH i2c: E2 17 00 D6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AC [21:59:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:59:52]wFMCommunicate OK [21:59:52]CreateOFDProtocolMessage done [21:59:52]OFDSenderStorePacket 228442 [21:59:52]StoreOFDPacket docnum=228442 [21:59:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 E1 0C 07 01 78 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 22 1A 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 96 01 00 00 F4 03 04 00 56 20 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5A 7C 03 00 35 04 06 00 4E 71 60 05 D1 85 74 D2 1C 05 D7 A3 4B D9 [21:59:52]CheckFolder [21:59:52]dirname=/storage/ofd_packets [21:59:52]CheckFolder done [21:59:52]ProducePacketName [21:59:52]name=ofd_packets/00228442 [21:59:52]NVStorageSaveData ofd_packets/00228442 [21:59:52]File name is /storage/ofd_packets/00228442 [21:59:52]Write 301 bytes [21:59:52]NVStorageSaveData done [21:59:52]OFDSenderStorePacket done [21:59:52]KKMCreateOFDPacket done [21:59:52]NVStorageSaveData kkm_last_timestamp [21:59:52]File name is /storage/kkm_last_timestamp [21:59:52]Write 4 bytes [21:59:52]NVStorageSaveData done [21:59:52]ExternCall_PrintAddStr [21:59:52]wPrintStart [21:59:52]Write to MH i2c: 01 00 00 D7 05 DC [21:59:52]Write i2c OK [21:59:52]MH_I2C_Read... [21:59:52]Read from MH i2c: 01 [21:59:52]MH_I2C_Read... [21:59:52]Read from MH i2c: 01 07 00 [21:59:52]MH_I2C_Read... [21:59:52]Read from MH i2c: 01 07 00 D7 05 00 00 00 00 00 FF 0F F1 [21:59:52]RasterBufferAndPrint [21:59:52]line Счет N : (1)1965087 [21:59:52]line ИНН: 02508201610067 [21:59:52]line Контрольно-Кассовый Чек [21:59:52]line ПРОДАЖА [21:59:52]line ТРК (МРК, ГНК) : 33 [21:59:52]line Товар: 2710124130 [21:59:52]line Аи-92-К-5 [21:59:52]line 5.980 * 66.90 [21:59:52]line = 400.06 [21:59:52]line НДС 12% НСП 1% [21:59:52]line > о реализуемом товаре [21:59:52]line ОКРУГЛЕНИЕ: -0.06 [21:59:52]line ИТОГО: 400.00 [21:59:52]line Внесено: 400.00 [21:59:52]line СДАЧА: 0.00 [21:59:52]line НСП 1% : 3.54 [21:59:52]line НДС 12% : 42.48 [21:59:52]line Наличными: 400.00 [21:59:52]line Безнал.: 0.00 [21:59:52]line Место: АЗС № 133 "Партнер Нефть" [21:59:52]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:59:52]line СНО: Общий режим [21:59:52]line Чек 406 22.10.2024 21:59 [21:59:52]line Смена: 535 ФФД: 1.0 [21:59:52]line ЗНМ: 0300000091 [21:59:52]line РНМ: 0000000000091685 [21:59:52]line Версия ККМ: 001 [21:59:52]line ФМ: 0000000000871839 [21:59:52]line ФД: 228442 [21:59:52]line ФПД: 86248849265029 [21:59:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T215950&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228442&fm=86248849265029&tin=02508201610067®Number=0000000000091685&sum=40000 [21:59:52]written 0, free lines is 4095 [21:59:52]OFD Sender: Processing packet 228442 [packets to send 38, broken 37] [21:59:52]ProducePacketName [21:59:52]name=ofd_packets/00228442 [21:59:52]OFD Sender: To server: pG, [21:59:52]CommunicateWithHost lk.salyk.kg:30040 [21:59:52]ConnectInit lk.salyk.kg [21:59:52]Connected sock=10 [21:59:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 E1 0C 07 01 78 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 22 1A 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 96 01 00 00 F4 03 04 00 56 20 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5A 7C 03 00 35 04 06 00 4E 71 60 05 D1 85 74 D2 1C 05 D7 A3 4B D9 [21:59:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 6D 45 47 00 8E 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5A 7C 03 00 F4 03 04 00 4E CB 17 67 B6 04 01 00 00 D0 8D D4 20 30 71 49 EC [21:59:52]CommunicateWithHost err = 0 [21:59:52]CheckOFDResponse [21:59:52]1017 (14) - 77093643461234 [21:59:52]1041 (16) - 0000000000871839 [21:59:52]1040 (4) - 228442 [21:59:52]1012 (4) - 22.10.2024 15:57 [21:59:52]1206 (1) - 0 [21:59:52]OFD Sender: Remove packet 228442 [21:59:52]ProducePacketName [21:59:52]name=ofd_packets/00228442 [21:59:52]NVStorageDeleteData [21:59:52]Write to MH i2c: 01 00 00 01 06 07 [21:59:52]Write i2c OK [21:59:52]MH_I2C_Read... [21:59:52]Read from MH i2c: 01 [21:59:52]MH_I2C_Read... [21:59:52]Read from MH i2c: 01 07 00 [21:59:52]MH_I2C_Read... [21:59:52]Read from MH i2c: 01 07 00 01 06 00 00 00 00 00 AA 0C C4 [21:59:52]RasterBufferAndPrint [21:59:52]line [21:59:52]line [21:59:52]line [21:59:52]line [21:59:52]line [21:59:52]written 0, free lines is 3246 [21:59:52]MH_Cut [21:59:52]Write to MH i2c: D1 01 00 08 06 01 E0 [21:59:52]Write i2c OK [21:59:52]MH_I2C_Read... [21:59:52]Read from MH i2c: D1 [21:59:52]MH_I2C_Read... [21:59:52]Read from MH i2c: D1 01 00 [21:59:52]MH_I2C_Read... [21:59:52]Read from MH i2c: D1 01 00 08 06 00 DF [21:59:52]Write to MH i2c: 01 00 00 09 06 0F [21:59:52]Write i2c OK [21:59:52]MH_I2C_Read... [21:59:53]OFD Sender: No OFD packet to send [21:59:53]*** Cut start [21:59:53]*** Partial cut [21:59:53]*** CUTSNS_PIN = 1 [21:59:53]*** CUTSNS_PIN = 0 [21:59:54]*** Brake cut motor [21:59:54]Read from MH i2c: 01 [21:59:54]MH_I2C_Read... [21:59:54]*** Stop cut motor [21:59:54]*** Cut end [21:59:54]Read from MH i2c: 01 07 00 [21:59:54]MH_I2C_Read... [21:59:54]Read from MH i2c: 01 07 00 09 06 00 00 00 00 00 FF 0F 24 [21:59:54]process_action close_receipt done [21:59:54]requested_data is exist [21:59:54]produce_requested_data [21:59:54]requested_item fm.sn is exist - process it [21:59:54]wFMCommunicate request_size=4 [21:59:54]MH_SAM_APDU [21:59:54]CAPDU: 80 11 00 00 [21:59:54]Write to MH i2c: E2 08 00 0A 06 80 11 00 00 00 00 00 00 8A [21:59:54]Write i2c OK [21:59:54]MH_I2C_Read... [21:59:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:59:54]Read from MH i2c: E2 [21:59:54]MH_I2C_Read... [21:59:54]Read from MH i2c: E2 17 00 [21:59:54]MH_I2C_Read... [21:59:54]Read from MH i2c: E2 17 00 0A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E1 [21:59:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:59:54]wFMCommunicate OK [21:59:54]requested_item fd.num is exist - process it [21:59:54]SAM_PROTO_GetFieldsCounters [21:59:54]wFMCommunicate request_size=4 [21:59:54]MH_SAM_APDU [21:59:54]CAPDU: 80 13 00 00 [21:59:54]Write to MH i2c: E2 08 00 0B 06 80 13 00 00 00 00 00 00 8D [21:59:54]Write i2c OK [21:59:54]MH_I2C_Read... [21:59:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:59:54]Read from MH i2c: E2 [21:59:54]MH_I2C_Read... [21:59:54]Read from MH i2c: E2 62 00 [21:59:54]MH_I2C_Read... [21:59:54]Read from MH i2c: E2 62 00 0B 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5A 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 96 01 00 00 5E 04 04 00 96 01 00 00 57 04 04 00 97 01 00 00 19 04 04 00 00 00 00 00 90 00 6D [21:59:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5A 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 96 01 00 00 5E 04 04 00 96 01 00 00 57 04 04 00 97 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:59:54]wFMCommunicate OK [21:59:54]SAM_PROTO_GetFieldsCounters done [21:59:54]requested_item shift.num is exist - process it [21:59:54]requested_item shift.opened is exist - process it [21:59:54]req_shift_opened [21:59:54]FM_GetShiftState [21:59:54]SAM_PROTO_GetShiftState [21:59:54]wFMCommunicate request_size=4 [21:59:54]MH_SAM_APDU [21:59:54]CAPDU: 80 13 01 00 [21:59:54]Write to MH i2c: E2 08 00 0C 06 80 13 01 00 00 00 00 00 8F [21:59:54]Write i2c OK [21:59:54]MH_I2C_Read... [21:59:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:59:54]Read from MH i2c: E2 [21:59:54]MH_I2C_Read... [21:59:54]Read from MH i2c: E2 0E 00 [21:59:54]MH_I2C_Read... [21:59:54]Read from MH i2c: E2 0E 00 0C 06 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 56 [21:59:54]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [21:59:54]wFMCommunicate OK [21:59:54]SAM_PROTO_GetShiftState done [21:59:54]FM_GetShiftState done [21:59:54]req_shift_opened done [21:59:54]requested_item shift.open_date is exist - process it [21:59:54]req_shift_open_date [21:59:54]req_shift_open_date done [21:59:54]produce_requested_data done [21:59:54]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228442,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [21:59:54]process_action_free close_receipt [21:59:54]json_value_free [21:59:54]json_value_free done [21:59:54]process_json_proto returns [21:59:54]Send response to host [21:59:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228442,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [21:59:54]free response buf [21:59:54]execute_script done [21:59:54]execute_script returns [21:59:54]free content buf [21:59:54]Sock 7.Close socket [21:59:54]Sock 7.Thread stoped [21:59:58]OFD Sender: No OFD packet to send [22:00:03]OFD Sender: No OFD packet to send [22:00:08]OFD Sender: No OFD packet to send [22:00:13]OFD Sender: No OFD packet to send [22:00:18]OFD Sender: No OFD packet to send [22:00:23]OFD Sender: No OFD packet to send [22:00:28]OFD Sender: No OFD packet to send [22:00:33]OFD Sender: No OFD packet to send [22:00:38]OFD Sender: No OFD packet to send [22:00:43]OFD Sender: No OFD packet to send [22:00:48]OFD Sender: No OFD packet to send [22:00:53]OFD Sender: No OFD packet to send [22:00:58]OFD Sender: No OFD packet to send [22:00:58]accept exits with 9 [22:00:58]New connection [22:00:58]New thread 3066977636 created [22:00:58]Thread 3066834276 joined [22:00:58]Waiting for new connection... [22:00:58] Sock 9.Parse request [22:00:58]Sock 9.Check first char [22:00:58]Sock 9.First char is OK [22:00:58]request: POST /json_proto HTTP/1.0 [22:00:58]Method: POST [22:00:58]URL: /json_proto [22:00:58]Method is POST - this is cgi request [22:00:58]url: /json_proto [22:00:58]query_string will be loaded in cgi processing [22:00:58]execute_cgi json_proto POST (null) [22:00:58]execute_cgi path=json_proto method=POST [22:00:58]POST find Content-Length [22:00:58]Host: 172.17.44.195:8080 [22:00:58]Content-Length: 678 [22:00:58]Content-Type: application/json [22:00:58] [22:00:58]POST finish read [22:00:58]Found Content-Length = 678 [22:00:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965088", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:00:58]execute_script... [22:00: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)1965088", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:00:59]POST & json_proto [22:00:59]process_json_proto [22:00:59]json parsed OK: [22:00:59]protocol is kg_v1.0 [22:00:59]action value=close_receipt [22:00:59]process_action close_receipt [22:00:59]cmd_close_receipt [22:00:59]MH_GetDate [22:00:59]Write to MH i2c: F0 00 00 0D 06 02 [22:00:59]Write i2c OK [22:00:59]MH_I2C_Read... [22:00:59]Read from MH i2c: F0 [22:00:59]MH_I2C_Read... [22:00:59]Read from MH i2c: F0 09 00 [22:00:59]MH_I2C_Read... [22:00:59]Read from MH i2c: F0 09 00 0D 06 00 9B 20 18 67 82 C9 CF 66 C5 [22:00:59]GetLastDocTimeStamp 1729634390 [22:00:59]current date 1729634459 [22:00:59]FM_GetShiftState [22:00:59]SAM_PROTO_GetShiftState [22:00:59]wFMCommunicate request_size=4 [22:00:59]MH_SAM_APDU [22:00:59]CAPDU: 80 13 01 00 [22:00:59]Write to MH i2c: E2 08 00 0E 06 80 13 01 00 00 00 00 00 91 [22:00:59]Write i2c OK [22:00:59]MH_I2C_Read... [22:00:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:00:59]Read from MH i2c: E2 [22:00:59]MH_I2C_Read... [22:00:59]Read from MH i2c: E2 0E 00 [22:00:59]MH_I2C_Read... [22:00:59]Read from MH i2c: E2 0E 00 0E 06 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 58 [22:00:59]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [22:00:59]wFMCommunicate OK [22:00:59]SAM_PROTO_GetShiftState done [22:00:59]FM_GetShiftState done [22:00:59]opened in 1729555538 [22:00:59]opened+sec_in_day 1729641938 [22:00:59]quantity*price = 50041 [22:00:59]sum+1 = 50042 [22:00:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 407 22.10.2024 22:00 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228443 ФПД: 213488835818499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T220059&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228443&fm=213488835818499&tin=02508201610067®Number=0000000000091685&sum=50000 [22:01:00]StoreToDocumentArchive [22:01:00]shift 535 fd 228443 [22:01:00]save to /storage/0535/doc_00228443 [22:01:00]save last doc name /storage/0535/doc_00228443 to /storage/kkm_last_doc_name [22:01:00]save OK [22:01:00]Clear old archive folders... [22:01:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:01:00]tlvbuf is 00303710 [22:01:00]SAM_PROTO_ClearQueue [22:01:00]wFMCommunicate request_size=4 [22:01:00]MH_SAM_APDU [22:01:00]CAPDU: 80 09 00 00 [22:01:00]Write to MH i2c: E2 08 00 1B 06 80 09 00 00 00 00 00 00 93 [22:01:00]Write i2c OK [22:01:00]MH_I2C_Read... [22:01:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:01:00]Read from MH i2c: E2 [22:01:00]MH_I2C_Read... [22:01:00]Read from MH i2c: E2 03 00 [22:01:00]MH_I2C_Read... [22:01:00]Read from MH i2c: E2 03 00 1B 06 00 90 00 95 [22:01:00]RAPDU: 90 00 [22:01:00]wFMCommunicate OK [22:01:00]SAM_PROTO_ClearQueue done [22:01:00]KKMCreateOFDPacket [22:01:00]OFDProtocolAddRootSTLVToBuf [22:01:00]FM_MakeSignedData [22:01:00]FM_MakeSignedData [22:01:00]SAM_PROTO_SignData [22:01:00]wFMCommunicate request_size=4 [22:01:00]MH_SAM_APDU [22:01:00]CAPDU: 80 0D 01 02 [22:01:00]Write to MH i2c: E2 08 00 1C 06 80 0D 01 02 00 00 00 00 9B [22:01:00]Write i2c OK [22:01:00]MH_I2C_Read... [22:01:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:01:00]Read from MH i2c: E2 [22:01:00]MH_I2C_Read... [22:01:00]Read from MH i2c: E2 03 00 [22:01:00]MH_I2C_Read... [22:01:00]Read from MH i2c: E2 03 00 1C 06 00 90 00 96 [22:01:00]RAPDU: 90 00 [22:01:00]wFMCommunicate OK [22:01:00]wFMCommunicate request_size=255 [22:01:00]MH_SAM_APDU [22:01: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 01 00 00 F4 03 04 00 9B 20 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5B 7C 03 00 35 04 06 00 C2 [22:01:00]Write to MH i2c: E2 02 01 1D 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 01 00 00 F4 03 04 00 9B 20 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5B 7C 03 00 35 04 06 00 C2 00 00 B9 [22:01:00]Write i2c OK [22:01:00]MH_I2C_Read... [22:01:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:00]Read from MH i2c: E2 [22:01:00]MH_I2C_Read... [22:01:00]Read from MH i2c: E2 03 00 [22:01:00]MH_I2C_Read... [22:01:00]Read from MH i2c: E2 03 00 1D 06 00 90 00 97 [22:01:00]RAPDU: 90 00 [22:01:00]wFMCommunicate OK [22:01:00]wFMCommunicate request_size=10 [22:01:00]MH_SAM_APDU [22:01:00]CAPDU: 80 0D 02 02 05 2A BE 38 F4 03 [22:01:00]Write to MH i2c: E2 0D 00 1E 06 80 0D 02 02 05 00 2A BE 38 F4 03 00 00 BF [22:01:00]Write i2c OK [22:01:00]MH_I2C_Read... [22:01:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:00]Read from MH i2c: E2 [22:01:00]MH_I2C_Read... [22:01:00]Read from MH i2c: E2 03 00 [22:01:00]MH_I2C_Read... [22:01:00]Read from MH i2c: E2 03 00 1E 06 00 90 00 98 [22:01:00]RAPDU: 90 00 [22:01:00]wFMCommunicate OK [22:01:00]wFMCommunicate request_size=4 [22:01:00]MH_SAM_APDU [22:01:00]CAPDU: 80 0D 03 02 [22:01:00]Write to MH i2c: E2 08 00 1F 06 80 0D 03 02 00 00 00 00 A0 [22:01:00]Write i2c OK [22:01:00]MH_I2C_Read... [22:01:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:01:00]Read from MH i2c: E2 [22:01:00]MH_I2C_Read... [22:01:00]Read from MH i2c: E2 0B 00 [22:01:00]MH_I2C_Read... [22:01:00]Read from MH i2c: E2 0B 00 1F 06 00 F3 CE 7E F5 16 E3 86 A7 90 00 FB [22:01:00]RAPDU: F3 CE 7E F5 16 E3 86 A7 90 00 [22:01:00]wFMCommunicate OK [22:01:00]SAM_PROTO_SignData done [22:01:00]FM_MakeSignedData done [22:01:00]CreateOFDProtocolMessage [22:01:00]wFMCommunicate request_size=4 [22:01:00]MH_SAM_APDU [22:01:00]CAPDU: 80 11 00 00 [22:01:00]Write to MH i2c: E2 08 00 20 06 80 11 00 00 00 00 00 00 A0 [22:01:00]Write i2c OK [22:01:00]MH_I2C_Read... [22:01:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:00]Read from MH i2c: E2 [22:01:00]MH_I2C_Read... [22:01:00]Read from MH i2c: E2 17 00 [22:01:00]MH_I2C_Read... [22:01:00]Read from MH i2c: E2 17 00 20 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F7 [22:01:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:01:00]wFMCommunicate OK [22:01:00]CreateOFDProtocolMessage done [22:01:00]OFDSenderStorePacket 228443 [22:01:00]StoreOFDPacket docnum=228443 [22:01:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 98 04 07 01 EF 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 01 00 00 F4 03 04 00 9B 20 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5B 7C 03 00 35 04 06 00 C2 2A BE 38 F4 03 F3 CE 7E F5 16 E3 86 A7 [22:01:00]CheckFolder [22:01:00]dirname=/storage/ofd_packets [22:01:00]CheckFolder done [22:01:00]ProducePacketName [22:01:00]name=ofd_packets/00228443 [22:01:00]NVStorageSaveData ofd_packets/00228443 [22:01:00]File name is /storage/ofd_packets/00228443 [22:01:00]Write 301 bytes [22:01:00]NVStorageSaveData done [22:01:00]OFDSenderStorePacket done [22:01:00]KKMCreateOFDPacket done [22:01:00]NVStorageSaveData kkm_last_timestamp [22:01:00]File name is /storage/kkm_last_timestamp [22:01:00]Write 4 bytes [22:01:00]NVStorageSaveData done [22:01:00]ExternCall_PrintAddStr [22:01:00]wPrintStart [22:01:00]Write to MH i2c: 01 00 00 21 06 27 [22:01:00]Write i2c OK [22:01:00]MH_I2C_Read... [22:01:00]Read from MH i2c: 01 [22:01:00]MH_I2C_Read... [22:01:00]Read from MH i2c: 01 07 00 [22:01:00]MH_I2C_Read... [22:01:00]Read from MH i2c: 01 07 00 21 06 00 00 00 00 00 FF 0F 3C [22:01:00]RasterBufferAndPrint [22:01:00]line Счет N : (1)1965088 [22:01:00]line ИНН: 02508201610067 [22:01:00]line Контрольно-Кассовый Чек [22:01:00]line ПРОДАЖА [22:01:00]line ТРК (МРК, ГНК) : 63 [22:01:00]line Товар: 2710124130 [22:01:00]line Аи-92-К-5 [22:01:00]line 7.480 * 66.90 [22:01:00]line = 500.41 [22:01:00]line НДС 12% НСП 1% [22:01:00]line > о реализуемом товаре [22:01:00]line ОКРУГЛЕНИЕ: -0.41 [22:01:00]line ИТОГО: 500.00 [22:01:00]line Внесено: 500.00 [22:01:00]line СДАЧА: 0.00 [22:01:00]line НСП 1% : 4.43 [22:01:00]line НДС 12% : 53.14 [22:01:00]line Наличными: 500.00 [22:01:00]line Безнал.: 0.00 [22:01:00]line Место: АЗС № 133 "Партнер Нефть" [22:01:00]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [22:01:00]line СНО: Общий режим [22:01:00]line Чек 407 22.10.2024 22:00 [22:01:00]line Смена: 535 ФФД: 1.0 [22:01:00]line ЗНМ: 0300000091 [22:01:00]line РНМ: 0000000000091685 [22:01:00]line Версия ККМ: 001 [22:01:00]line ФМ: 0000000000871839 [22:01:00]line ФД: 228443 [22:01:00]line ФПД: 213488835818499 [22:01:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T220059&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228443&fm=213488835818499&tin=02508201610067®Number=0000000000091685&sum=50000 [22:01:01]written 0, free lines is 4095 [22:01:01]OFD Sender: Processing packet 228443 [packets to send 38, broken 37] [22:01:01]ProducePacketName [22:01:01]name=ofd_packets/00228443 [22:01:01]OFD Sender: To server: pG, [22:01:01]CommunicateWithHost lk.salyk.kg:30040 [22:01:01]ConnectInit lk.salyk.kg [22:01:01]Connected sock=10 [22:01:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 98 04 07 01 EF 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 01 00 00 F4 03 04 00 9B 20 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5B 7C 03 00 35 04 06 00 C2 2A BE 38 F4 03 F3 CE 7E F5 16 E3 86 A7 [22:01:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 DE 3A 47 00 4E B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5B 7C 03 00 F4 03 04 00 92 CB 17 67 B6 04 01 00 00 E3 71 AD 0C 1E 80 3D 74 [22:01:01]CommunicateWithHost err = 0 [22:01:01]CheckOFDResponse [22:01:01]1017 (14) - 77093643461234 [22:01:01]1041 (16) - 0000000000871839 [22:01:01]1040 (4) - 228443 [22:01:01]1012 (4) - 22.10.2024 15:58 [22:01:01]1206 (1) - 0 [22:01:01]OFD Sender: Remove packet 228443 [22:01:01]ProducePacketName [22:01:01]name=ofd_packets/00228443 [22:01:01]NVStorageDeleteData [22:01:01]Write to MH i2c: 01 00 00 4B 06 51 [22:01:01]Write i2c OK [22:01:01]MH_I2C_Read... [22:01:01]Read from MH i2c: 01 [22:01:01]MH_I2C_Read... [22:01:01]Read from MH i2c: 01 07 00 [22:01:01]MH_I2C_Read... [22:01:01]Read from MH i2c: 01 07 00 4B 06 00 00 00 00 00 AA 0C 0E [22:01:01]RasterBufferAndPrint [22:01:01]line [22:01:01]line [22:01:01]line [22:01:01]line [22:01:01]line [22:01:01]written 0, free lines is 3248 [22:01:01]MH_Cut [22:01:01]Write to MH i2c: D1 01 00 52 06 01 2A [22:01:01]Write i2c OK [22:01:01]MH_I2C_Read... [22:01:01]Read from MH i2c: D1 [22:01:01]MH_I2C_Read... [22:01:01]Read from MH i2c: D1 01 00 [22:01:01]MH_I2C_Read... [22:01:01]Read from MH i2c: D1 01 00 52 06 00 29 [22:01:01]Write to MH i2c: 01 00 00 53 06 59 [22:01:01]Write i2c OK [22:01:01]MH_I2C_Read... [22:01:01]OFD Sender: No OFD packet to send [22:01:02]*** Cut start [22:01:02]*** Partial cut [22:01:02]*** CUTSNS_PIN = 1 [22:01:02]*** CUTSNS_PIN = 0 [22:01:02]*** Brake cut motor [22:01:03]Read from MH i2c: 01 [22:01:03]MH_I2C_Read... [22:01:03]*** Stop cut motor [22:01:03]*** Cut end [22:01:03]Read from MH i2c: 01 07 00 [22:01:03]MH_I2C_Read... [22:01:03]Read from MH i2c: 01 07 00 53 06 00 00 00 00 00 FF 0F 6E [22:01:03]process_action close_receipt done [22:01:03]requested_data is exist [22:01:03]produce_requested_data [22:01:03]requested_item fm.sn is exist - process it [22:01:03]wFMCommunicate request_size=4 [22:01:03]MH_SAM_APDU [22:01:03]CAPDU: 80 11 00 00 [22:01:03]Write to MH i2c: E2 08 00 54 06 80 11 00 00 00 00 00 00 D4 [22:01:03]Write i2c OK [22:01:03]MH_I2C_Read... [22:01:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:03]Read from MH i2c: E2 [22:01:03]MH_I2C_Read... [22:01:03]Read from MH i2c: E2 17 00 [22:01:03]MH_I2C_Read... [22:01:03]Read from MH i2c: E2 17 00 54 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2B [22:01:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:01:03]wFMCommunicate OK [22:01:03]requested_item fd.num is exist - process it [22:01:03]SAM_PROTO_GetFieldsCounters [22:01:03]wFMCommunicate request_size=4 [22:01:03]MH_SAM_APDU [22:01:03]CAPDU: 80 13 00 00 [22:01:03]Write to MH i2c: E2 08 00 55 06 80 13 00 00 00 00 00 00 D7 [22:01:03]Write i2c OK [22:01:03]MH_I2C_Read... [22:01:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:01:03]Read from MH i2c: E2 [22:01:03]MH_I2C_Read... [22:01:03]Read from MH i2c: E2 62 00 [22:01:03]MH_I2C_Read... [22:01:03]Read from MH i2c: E2 62 00 55 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5B 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 97 01 00 00 5E 04 04 00 97 01 00 00 57 04 04 00 98 01 00 00 19 04 04 00 00 00 00 00 90 00 BB [22:01:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5B 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 97 01 00 00 5E 04 04 00 97 01 00 00 57 04 04 00 98 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:01:03]wFMCommunicate OK [22:01:03]SAM_PROTO_GetFieldsCounters done [22:01:03]requested_item shift.num is exist - process it [22:01:03]requested_item shift.opened is exist - process it [22:01:03]req_shift_opened [22:01:03]FM_GetShiftState [22:01:03]SAM_PROTO_GetShiftState [22:01:03]wFMCommunicate request_size=4 [22:01:03]MH_SAM_APDU [22:01:03]CAPDU: 80 13 01 00 [22:01:03]Write to MH i2c: E2 08 00 56 06 80 13 01 00 00 00 00 00 D9 [22:01:03]Write i2c OK [22:01:03]MH_I2C_Read... [22:01:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:03]Read from MH i2c: E2 [22:01:03]MH_I2C_Read... [22:01:03]Read from MH i2c: E2 0E 00 [22:01:03]MH_I2C_Read... [22:01:03]Read from MH i2c: E2 0E 00 56 06 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 A0 [22:01:03]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [22:01:03]wFMCommunicate OK [22:01:03]SAM_PROTO_GetShiftState done [22:01:03]FM_GetShiftState done [22:01:03]req_shift_opened done [22:01:03]requested_item shift.open_date is exist - process it [22:01:03]req_shift_open_date [22:01:03]req_shift_open_date done [22:01:03]produce_requested_data done [22:01:03]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228443,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [22:01:03]process_action_free close_receipt [22:01:03]json_value_free [22:01:03]json_value_free done [22:01:03]process_json_proto returns [22:01:03]Send response to host [22:01:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228443,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [22:01:03]free response buf [22:01:03]execute_script done [22:01:03]execute_script returns [22:01:03]free content buf [22:01:03]Sock 9.Close socket [22:01:03]Sock 9.Thread stoped [22:01:06]OFD Sender: No OFD packet to send [22:01:11]OFD Sender: No OFD packet to send [22:01:16]OFD Sender: No OFD packet to send [22:01:21]OFD Sender: No OFD packet to send [22:01:26]OFD Sender: No OFD packet to send [22:01:31]OFD Sender: No OFD packet to send [22:01:36]OFD Sender: No OFD packet to send [22:01:41]OFD Sender: No OFD packet to send [22:01:46]OFD Sender: No OFD packet to send [22:01:51]OFD Sender: No OFD packet to send [22:01:56]OFD Sender: No OFD packet to send [22:02:01]OFD Sender: No OFD packet to send [22:02:06]OFD Sender: No OFD packet to send [22:02:11]OFD Sender: No OFD packet to send [22:02:16]OFD Sender: No OFD packet to send [22:02:21]OFD Sender: No OFD packet to send [22:02:26]OFD Sender: No OFD packet to send [22:02:31]OFD Sender: No OFD packet to send [22:02:36]OFD Sender: No OFD packet to send [22:02:41]OFD Sender: No OFD packet to send [22:02:46]OFD Sender: No OFD packet to send [22:02:51]OFD Sender: No OFD packet to send [22:02:56]OFD Sender: No OFD packet to send [22:03:01]OFD Sender: No OFD packet to send [22:03:06]OFD Sender: No OFD packet to send [22:03:12]OFD Sender: No OFD packet to send [22:03:17]OFD Sender: No OFD packet to send [22:03:22]OFD Sender: No OFD packet to send [22:03:27]OFD Sender: No OFD packet to send [22:03:30]accept exits with 7 [22:03:30]New connection [22:03:30]New thread 3066834276 created [22:03:30]Thread 3066977636 joined [22:03:30]Waiting for new connection... [22:03:30] Sock 7.Parse request [22:03:30]Sock 7.Check first char [22:03:30]Sock 7.First char is OK [22:03:30]request: POST /json_proto HTTP/1.0 [22:03:30]Method: POST [22:03:30]URL: /json_proto [22:03:30]Method is POST - this is cgi request [22:03:30]url: /json_proto [22:03:30]query_string will be loaded in cgi processing [22:03:30]execute_cgi json_proto POST (null) [22:03:30]execute_cgi path=json_proto method=POST [22:03:30]POST find Content-Length [22:03:30]Host: 172.17.44.195:8080 [22:03:30]Content-Length: 678 [22:03:30]Content-Type: application/json [22:03:30] [22:03:30]POST finish read [22:03:30]Found Content-Length = 678 [22:03:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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:03:30]execute_script... [22:03: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)1965089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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:03:30]POST & json_proto [22:03:30]process_json_proto [22:03:30]json parsed OK: [22:03:30]protocol is kg_v1.0 [22:03:30]action value=close_receipt [22:03:30]process_action close_receipt [22:03:30]cmd_close_receipt [22:03:30]MH_GetDate [22:03:30]Write to MH i2c: F0 00 00 57 06 4C [22:03:30]Write i2c OK [22:03:30]MH_I2C_Read... [22:03:30]Read from MH i2c: F0 [22:03:30]MH_I2C_Read... [22:03:30]Read from MH i2c: F0 09 00 [22:03:30]MH_I2C_Read... [22:03:30]Read from MH i2c: F0 09 00 57 06 00 33 21 18 67 82 C9 CF 66 A8 [22:03:30]GetLastDocTimeStamp 1729634459 [22:03:30]current date 1729634611 [22:03:30]FM_GetShiftState [22:03:30]SAM_PROTO_GetShiftState [22:03:30]wFMCommunicate request_size=4 [22:03:30]MH_SAM_APDU [22:03:30]CAPDU: 80 13 01 00 [22:03:30]Write to MH i2c: E2 08 00 58 06 80 13 01 00 00 00 00 00 DB [22:03:30]Write i2c OK [22:03:30]MH_I2C_Read... [22:03:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:03:30]Read from MH i2c: E2 [22:03:30]MH_I2C_Read... [22:03:30]Read from MH i2c: E2 0E 00 [22:03:30]MH_I2C_Read... [22:03:30]Read from MH i2c: E2 0E 00 58 06 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 A2 [22:03:30]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [22:03:30]wFMCommunicate OK [22:03:30]SAM_PROTO_GetShiftState done [22:03:30]FM_GetShiftState done [22:03:30]opened in 1729555538 [22:03:30]opened+sec_in_day 1729641938 [22:03:30]quantity*price = 20003 [22:03:30]sum+1 = 20004 [22:03:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 408 22.10.2024 22:03 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228444 ФПД: 24257372132218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T220331&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228444&fm=24257372132218&tin=02508201610067®Number=0000000000091685&sum=20000 [22:03:31]StoreToDocumentArchive [22:03:31]shift 535 fd 228444 [22:03:31]save to /storage/0535/doc_00228444 [22:03:31]save last doc name /storage/0535/doc_00228444 to /storage/kkm_last_doc_name [22:03:31]save OK [22:03:31]Clear old archive folders... [22:03:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:03:31]tlvbuf is 003030C0 [22:03:31]SAM_PROTO_ClearQueue [22:03:31]wFMCommunicate request_size=4 [22:03:31]MH_SAM_APDU [22:03:31]CAPDU: 80 09 00 00 [22:03:31]Write to MH i2c: E2 08 00 65 06 80 09 00 00 00 00 00 00 DD [22:03:31]Write i2c OK [22:03:31]MH_I2C_Read... [22:03:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:03:31]Read from MH i2c: E2 [22:03:31]MH_I2C_Read... [22:03:31]Read from MH i2c: E2 03 00 [22:03:31]MH_I2C_Read... [22:03:31]Read from MH i2c: E2 03 00 65 06 00 90 00 DF [22:03:31]RAPDU: 90 00 [22:03:31]wFMCommunicate OK [22:03:31]SAM_PROTO_ClearQueue done [22:03:31]KKMCreateOFDPacket [22:03:31]OFDProtocolAddRootSTLVToBuf [22:03:31]FM_MakeSignedData [22:03:31]FM_MakeSignedData [22:03:31]SAM_PROTO_SignData [22:03:31]wFMCommunicate request_size=4 [22:03:31]MH_SAM_APDU [22:03:31]CAPDU: 80 0D 01 02 [22:03:31]Write to MH i2c: E2 08 00 66 06 80 0D 01 02 00 00 00 00 E5 [22:03:31]Write i2c OK [22:03:31]MH_I2C_Read... [22:03:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:03:31]Read from MH i2c: E2 [22:03:31]MH_I2C_Read... [22:03:31]Read from MH i2c: E2 03 00 [22:03:31]MH_I2C_Read... [22:03:31]Read from MH i2c: E2 03 00 66 06 00 90 00 E0 [22:03:31]RAPDU: 90 00 [22:03:31]wFMCommunicate OK [22:03:31]wFMCommunicate request_size=255 [22:03:31]MH_SAM_APDU [22:03: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 01 00 00 F4 03 04 00 33 21 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5C 7C 03 00 35 04 06 00 16 [22:03:31]Write to MH i2c: E2 02 01 67 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 01 00 00 F4 03 04 00 33 21 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5C 7C 03 00 35 04 06 00 16 00 00 B4 [22:03:31]Write i2c OK [22:03:31]MH_I2C_Read... [22:03:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:03:31]Read from MH i2c: E2 [22:03:31]MH_I2C_Read... [22:03:31]Read from MH i2c: E2 03 00 [22:03:31]MH_I2C_Read... [22:03:31]Read from MH i2c: E2 03 00 67 06 00 90 00 E1 [22:03:31]RAPDU: 90 00 [22:03:31]wFMCommunicate OK [22:03:31]wFMCommunicate request_size=10 [22:03:31]MH_SAM_APDU [22:03:31]CAPDU: 80 0D 02 02 05 0F DC 0C 93 7A [22:03:31]Write to MH i2c: E2 0D 00 68 06 80 0D 02 02 05 00 0F DC 0C 93 7A 00 00 F6 [22:03:31]Write i2c OK [22:03:31]MH_I2C_Read... [22:03:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:03:32]Read from MH i2c: E2 [22:03:32]MH_I2C_Read... [22:03:32]Read from MH i2c: E2 03 00 [22:03:32]MH_I2C_Read... [22:03:32]Read from MH i2c: E2 03 00 68 06 00 90 00 E2 [22:03:32]RAPDU: 90 00 [22:03:32]wFMCommunicate OK [22:03:32]wFMCommunicate request_size=4 [22:03:32]MH_SAM_APDU [22:03:32]CAPDU: 80 0D 03 02 [22:03:32]Write to MH i2c: E2 08 00 69 06 80 0D 03 02 00 00 00 00 EA [22:03:32]Write i2c OK [22:03:32]MH_I2C_Read... [22:03:32]OFD Sender: No OFD packet to send [22:03:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:03:32]Read from MH i2c: E2 [22:03:32]MH_I2C_Read... [22:03:32]Read from MH i2c: E2 0B 00 [22:03:32]MH_I2C_Read... [22:03:32]Read from MH i2c: E2 0B 00 69 06 00 2D 5D CF A2 9A B6 CD C0 90 00 C3 [22:03:32]RAPDU: 2D 5D CF A2 9A B6 CD C0 90 00 [22:03:32]wFMCommunicate OK [22:03:32]SAM_PROTO_SignData done [22:03:32]FM_MakeSignedData done [22:03:32]CreateOFDProtocolMessage [22:03:32]wFMCommunicate request_size=4 [22:03:32]MH_SAM_APDU [22:03:32]CAPDU: 80 11 00 00 [22:03:32]Write to MH i2c: E2 08 00 6A 06 80 11 00 00 00 00 00 00 EA [22:03:32]Write i2c OK [22:03:32]MH_I2C_Read... [22:03:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:03:32]Read from MH i2c: E2 [22:03:32]MH_I2C_Read... [22:03:32]Read from MH i2c: E2 17 00 [22:03:32]MH_I2C_Read... [22:03:32]Read from MH i2c: E2 17 00 6A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 41 [22:03:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:03:32]wFMCommunicate OK [22:03:32]CreateOFDProtocolMessage done [22:03:32]OFDSenderStorePacket 228444 [22:03:32]StoreOFDPacket docnum=228444 [22:03:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 F6 B2 07 01 61 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 01 00 00 F4 03 04 00 33 21 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5C 7C 03 00 35 04 06 00 16 0F DC 0C 93 7A 2D 5D CF A2 9A B6 CD C0 [22:03:32]CheckFolder [22:03:32]dirname=/storage/ofd_packets [22:03:32]CheckFolder done [22:03:32]ProducePacketName [22:03:32]name=ofd_packets/00228444 [22:03:32]NVStorageSaveData ofd_packets/00228444 [22:03:32]File name is /storage/ofd_packets/00228444 [22:03:32]Write 301 bytes [22:03:32]NVStorageSaveData done [22:03:32]OFDSenderStorePacket done [22:03:32]KKMCreateOFDPacket done [22:03:32]NVStorageSaveData kkm_last_timestamp [22:03:32]File name is /storage/kkm_last_timestamp [22:03:32]Write 4 bytes [22:03:32]NVStorageSaveData done [22:03:32]ExternCall_PrintAddStr [22:03:32]wPrintStart [22:03:32]Write to MH i2c: 01 00 00 6B 06 71 [22:03:32]Write i2c OK [22:03:32]MH_I2C_Read... [22:03:32]Read from MH i2c: 01 [22:03:32]MH_I2C_Read... [22:03:32]Read from MH i2c: 01 07 00 [22:03:32]MH_I2C_Read... [22:03:32]Read from MH i2c: 01 07 00 6B 06 00 00 00 00 00 FF 0F 86 [22:03:32]RasterBufferAndPrint [22:03:32]line Счет N : (1)1965089 [22:03:32]line ИНН: 02508201610067 [22:03:32]line Контрольно-Кассовый Чек [22:03:32]line ПРОДАЖА [22:03:32]line ТРК (МРК, ГНК) : 33 [22:03:32]line Товар: 2710124130 [22:03:32]line Аи-92-К-5 [22:03:32]line 2.990 * 66.90 [22:03:32]line = 200.03 [22:03:32]line НДС 12% НСП 1% [22:03:32]line > о реализуемом товаре [22:03:32]line ОКРУГЛЕНИЕ: -0.03 [22:03:32]line ИТОГО: 200.00 [22:03:32]line Внесено: 200.00 [22:03:32]line СДАЧА: 0.00 [22:03:32]line НСП 1% : 1.77 [22:03:32]line НДС 12% : 21.24 [22:03:32]line Наличными: 200.00 [22:03:32]line Безнал.: 0.00 [22:03:32]line Место: АЗС № 133 "Партнер Нефть" [22:03:32]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [22:03:32]line СНО: Общий режим [22:03:32]line Чек 408 22.10.2024 22:03 [22:03:32]line Смена: 535 ФФД: 1.0 [22:03:32]line ЗНМ: 0300000091 [22:03:32]line РНМ: 0000000000091685 [22:03:32]line Версия ККМ: 001 [22:03:32]line ФМ: 0000000000871839 [22:03:32]line ФД: 228444 [22:03:32]line ФПД: 24257372132218 [22:03:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T220331&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228444&fm=24257372132218&tin=02508201610067®Number=0000000000091685&sum=20000 [22:03:32]OFD Sender: Processing packet 228444 [packets to send 38, broken 37] [22:03:32]ProducePacketName [22:03:32]name=ofd_packets/00228444 [22:03:32]OFD Sender: To server: pG, [22:03:32]CommunicateWithHost lk.salyk.kg:30040 [22:03:32]ConnectInit lk.salyk.kg [22:03:32]written 0, free lines is 4095 [22:03:32]Connected sock=11 [22:03:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 F6 B2 07 01 61 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 01 00 00 F4 03 04 00 33 21 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5C 7C 03 00 35 04 06 00 16 0F DC 0C 93 7A 2D 5D CF A2 9A B6 CD C0 [22:03:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 7C C8 47 00 51 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5C 7C 03 00 F4 03 04 00 2A CC 17 67 B6 04 01 00 00 02 31 33 E8 6B 3E 36 D7 [22:03:32]CommunicateWithHost err = 0 [22:03:32]CheckOFDResponse [22:03:32]1017 (14) - 77093643461234 [22:03:32]1041 (16) - 0000000000871839 [22:03:32]1040 (4) - 228444 [22:03:32]1012 (4) - 22.10.2024 16:00 [22:03:32]1206 (1) - 0 [22:03:32]OFD Sender: Remove packet 228444 [22:03:32]ProducePacketName [22:03:32]name=ofd_packets/00228444 [22:03:32]NVStorageDeleteData [22:03:32]Write to MH i2c: 01 00 00 95 06 9B [22:03:32]Write i2c OK [22:03:32]MH_I2C_Read... [22:03:32]Read from MH i2c: 01 [22:03:32]MH_I2C_Read... [22:03:32]Read from MH i2c: 01 07 00 [22:03:32]MH_I2C_Read... [22:03:32]Read from MH i2c: 01 07 00 95 06 00 00 00 00 00 AD 0C 5B [22:03:32]RasterBufferAndPrint [22:03:32]line [22:03:32]line [22:03:32]line [22:03:32]line [22:03:32]line [22:03:32]written 0, free lines is 3249 [22:03:32]MH_Cut [22:03:32]Write to MH i2c: D1 01 00 9C 06 01 74 [22:03:32]Write i2c OK [22:03:32]MH_I2C_Read... [22:03:32]Read from MH i2c: D1 [22:03:32]MH_I2C_Read... [22:03:32]Read from MH i2c: D1 01 00 [22:03:32]MH_I2C_Read... [22:03:32]Read from MH i2c: D1 01 00 9C 06 00 73 [22:03:32]Write to MH i2c: 01 00 00 9D 06 A3 [22:03:32]Write i2c OK [22:03:32]MH_I2C_Read... [22:03:33]OFD Sender: No OFD packet to send [22:03:33]*** Cut start [22:03:33]*** Partial cut [22:03:33]*** CUTSNS_PIN = 1 [22:03:33]*** CUTSNS_PIN = 0 [22:03:34]*** Brake cut motor [22:03:34]Read from MH i2c: 01 [22:03:34]MH_I2C_Read... [22:03:34]*** Stop cut motor [22:03:34]*** Cut end [22:03:34]Read from MH i2c: 01 07 00 [22:03:34]MH_I2C_Read... [22:03:34]Read from MH i2c: 01 07 00 9D 06 00 00 00 00 00 FF 0F B8 [22:03:34]process_action close_receipt done [22:03:34]requested_data is exist [22:03:34]produce_requested_data [22:03:34]requested_item fm.sn is exist - process it [22:03:34]wFMCommunicate request_size=4 [22:03:34]MH_SAM_APDU [22:03:34]CAPDU: 80 11 00 00 [22:03:34]Write to MH i2c: E2 08 00 9E 06 80 11 00 00 00 00 00 00 1E [22:03:34]Write i2c OK [22:03:34]MH_I2C_Read... [22:03:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:03:34]Read from MH i2c: E2 [22:03:34]MH_I2C_Read... [22:03:34]Read from MH i2c: E2 17 00 [22:03:34]MH_I2C_Read... [22:03:34]Read from MH i2c: E2 17 00 9E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 75 [22:03:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:03:34]wFMCommunicate OK [22:03:34]requested_item fd.num is exist - process it [22:03:34]SAM_PROTO_GetFieldsCounters [22:03:34]wFMCommunicate request_size=4 [22:03:34]MH_SAM_APDU [22:03:34]CAPDU: 80 13 00 00 [22:03:34]Write to MH i2c: E2 08 00 9F 06 80 13 00 00 00 00 00 00 21 [22:03:34]Write i2c OK [22:03:34]MH_I2C_Read... [22:03:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:03:34]Read from MH i2c: E2 [22:03:34]MH_I2C_Read... [22:03:34]Read from MH i2c: E2 62 00 [22:03:34]MH_I2C_Read... [22:03:34]Read from MH i2c: E2 62 00 9F 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5C 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 98 01 00 00 5E 04 04 00 98 01 00 00 57 04 04 00 99 01 00 00 19 04 04 00 00 00 00 00 90 00 09 [22:03:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5C 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 98 01 00 00 5E 04 04 00 98 01 00 00 57 04 04 00 99 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:03:34]wFMCommunicate OK [22:03:34]SAM_PROTO_GetFieldsCounters done [22:03:34]requested_item shift.num is exist - process it [22:03:34]requested_item shift.opened is exist - process it [22:03:34]req_shift_opened [22:03:34]FM_GetShiftState [22:03:34]SAM_PROTO_GetShiftState [22:03:34]wFMCommunicate request_size=4 [22:03:34]MH_SAM_APDU [22:03:34]CAPDU: 80 13 01 00 [22:03:34]Write to MH i2c: E2 08 00 A0 06 80 13 01 00 00 00 00 00 23 [22:03:34]Write i2c OK [22:03:34]MH_I2C_Read... [22:03:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:03:34]Read from MH i2c: E2 [22:03:34]MH_I2C_Read... [22:03:34]Read from MH i2c: E2 0E 00 [22:03:34]MH_I2C_Read... [22:03:34]Read from MH i2c: E2 0E 00 A0 06 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 EA [22:03:34]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [22:03:34]wFMCommunicate OK [22:03:34]SAM_PROTO_GetShiftState done [22:03:34]FM_GetShiftState done [22:03:34]req_shift_opened done [22:03:34]requested_item shift.open_date is exist - process it [22:03:34]req_shift_open_date [22:03:34]req_shift_open_date done [22:03:34]produce_requested_data done [22:03:34]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228444,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [22:03:34]process_action_free close_receipt [22:03:34]json_value_free [22:03:34]json_value_free done [22:03:34]process_json_proto returns [22:03:34]Send response to host [22:03:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228444,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [22:03:34]free response buf [22:03:34]execute_script done [22:03:34]execute_script returns [22:03:34]free content buf [22:03:34]Sock 7.Close socket [22:03:34]Sock 7.Thread stoped [22:03:38]OFD Sender: No OFD packet to send [22:03:43]OFD Sender: No OFD packet to send [22:03:48]OFD Sender: No OFD packet to send [22:03:53]OFD Sender: No OFD packet to send [22:03:58]OFD Sender: No OFD packet to send [22:04:03]OFD Sender: No OFD packet to send [22:04:08]OFD Sender: No OFD packet to send [22:04:13]OFD Sender: No OFD packet to send [22:04:18]OFD Sender: No OFD packet to send [22:04:23]OFD Sender: No OFD packet to send [22:04:28]OFD Sender: No OFD packet to send [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:48]OFD Sender: No OFD packet to send [22:06:53]OFD Sender: No OFD packet to send [22:06:58]OFD Sender: No OFD packet to send [22:07:03]OFD Sender: No OFD packet to send [22:07:08]OFD Sender: No OFD packet to send [22:07:13]OFD Sender: No OFD packet to send [22:07:18]OFD Sender: No OFD packet to send [22:07:23]OFD Sender: No OFD packet to send [22:07:26]accept exits with 9 [22:07:26]New connection [22:07:26]New thread 3066977636 created [22:07:26]Thread 3066834276 joined [22:07:26]Waiting for new connection... [22:07:26] Sock 9.Parse request [22:07:26]Sock 9.Check first char [22:07:26]Sock 9.First char is OK [22:07:26]request: POST /json_proto HTTP/1.0 [22:07:26]Method: POST [22:07:26]URL: /json_proto [22:07:26]Method is POST - this is cgi request [22:07:26]url: /json_proto [22:07:26]query_string will be loaded in cgi processing [22:07:26]execute_cgi json_proto POST (null) [22:07:26]execute_cgi path=json_proto method=POST [22:07:26]POST find Content-Length [22:07:26]Host: 172.17.44.195:8080 [22:07:26]Content-Length: 767 [22:07:26]Content-Type: application/json [22:07:26] [22:07:26]POST finish read [22:07:26]Found Content-Length = 767 [22:07:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965090", "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" : 76.20, "quantity" : 59.060, "sum" : 4500.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: Mbank", "payments": [ { "type": 1, "sum" : 4500.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:26]execute_script... [22:07: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)1965090", "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" : 76.20, "quantity" : 59.060, "sum" : 4500.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: Mbank", "payments": [ { "type": 1, "sum" : 4500.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:26]POST & json_proto [22:07:26]process_json_proto [22:07:26]json parsed OK: [22:07:26]protocol is kg_v1.0 [22:07:26]action value=close_receipt [22:07:26]process_action close_receipt [22:07:26]cmd_close_receipt [22:07:26]MH_GetDate [22:07:26]Write to MH i2c: F0 00 00 A1 06 96 [22:07:26]Write i2c OK [22:07:26]MH_I2C_Read... [22:07:26]Read from MH i2c: F0 [22:07:26]MH_I2C_Read... [22:07:26]Read from MH i2c: F0 09 00 [22:07:26]MH_I2C_Read... [22:07:26]Read from MH i2c: F0 09 00 A1 06 00 1F 22 18 67 82 C9 CF 66 DF [22:07:26]GetLastDocTimeStamp 1729634611 [22:07:26]current date 1729634847 [22:07:26]FM_GetShiftState [22:07:26]SAM_PROTO_GetShiftState [22:07:26]wFMCommunicate request_size=4 [22:07:26]MH_SAM_APDU [22:07:26]CAPDU: 80 13 01 00 [22:07:26]Write to MH i2c: E2 08 00 A2 06 80 13 01 00 00 00 00 00 25 [22:07:26]Write i2c OK [22:07:26]MH_I2C_Read... [22:07:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:26]Read from MH i2c: E2 [22:07:26]MH_I2C_Read... [22:07:26]Read from MH i2c: E2 0E 00 [22:07:26]MH_I2C_Read... [22:07:26]Read from MH i2c: E2 0E 00 A2 06 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 EC [22:07:26]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [22:07:26]wFMCommunicate OK [22:07:26]SAM_PROTO_GetShiftState done [22:07:26]FM_GetShiftState done [22:07:26]opened in 1729555538 [22:07:26]opened+sec_in_day 1729641938 [22:07:26]quantity*price = 450037 [22:07:26]sum+1 = 450038 [22:07:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4500.37 НСП 1% : 39.83 НДС 12% : 477.91 Наличными: 0.00 Безнал.: 4500.37 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 409 22.10.2024 22:07 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 228445 ФПД: 17975794558503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T220727&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228445&fm=17975794558503&tin=02508201610067®Number=0000000000091685&sum=450037 [22:07:28]StoreToDocumentArchive [22:07:28]shift 535 fd 228445 [22:07:28]save to /storage/0535/doc_00228445 [22:07:28]save last doc name /storage/0535/doc_00228445 to /storage/kkm_last_doc_name [22:07:28]save OK [22:07:28]Clear old archive folders... [22:07:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:07:28]tlvbuf is 00302D10 [22:07:28]SAM_PROTO_ClearQueue [22:07:28]wFMCommunicate request_size=4 [22:07:28]MH_SAM_APDU [22:07:28]CAPDU: 80 09 00 00 [22:07:28]Write to MH i2c: E2 08 00 AF 06 80 09 00 00 00 00 00 00 27 [22:07:28]Write i2c OK [22:07:28]MH_I2C_Read... [22:07:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:07:28]Read from MH i2c: E2 [22:07:28]MH_I2C_Read... [22:07:28]Read from MH i2c: E2 03 00 [22:07:28]MH_I2C_Read... [22:07:28]Read from MH i2c: E2 03 00 AF 06 00 90 00 29 [22:07:28]RAPDU: 90 00 [22:07:28]wFMCommunicate OK [22:07:28]SAM_PROTO_ClearQueue done [22:07:28]KKMCreateOFDPacket [22:07:28]OFDProtocolAddRootSTLVToBuf [22:07:28]FM_MakeSignedData [22:07:28]FM_MakeSignedData [22:07:28]SAM_PROTO_SignData [22:07:28]wFMCommunicate request_size=4 [22:07:28]MH_SAM_APDU [22:07:28]CAPDU: 80 0D 01 02 [22:07:28]Write to MH i2c: E2 08 00 B0 06 80 0D 01 02 00 00 00 00 2F [22:07:28]Write i2c OK [22:07:28]MH_I2C_Read... [22:07:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:07:28]Read from MH i2c: E2 [22:07:28]MH_I2C_Read... [22:07:28]Read from MH i2c: E2 03 00 [22:07:28]MH_I2C_Read... [22:07:28]Read from MH i2c: E2 03 00 B0 06 00 90 00 2A [22:07:28]RAPDU: 90 00 [22:07:28]wFMCommunicate OK [22:07:28]wFMCommunicate request_size=255 [22:07:28]MH_SAM_APDU [22:07: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 B4 E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F5 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F5 DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 01 00 00 F4 03 04 00 1F 22 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5D 7C 03 00 35 04 06 00 10 59 50 D9 [22:07:28]Write to MH i2c: E2 02 01 B1 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F5 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F5 DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 01 00 00 F4 03 04 00 1F 22 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5D 7C 03 00 35 04 06 00 10 59 50 D9 00 00 7F [22:07:28]Write i2c OK [22:07:28]MH_I2C_Read... [22:07:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:28]Read from MH i2c: E2 [22:07:28]MH_I2C_Read... [22:07:28]Read from MH i2c: E2 03 00 [22:07:28]MH_I2C_Read... [22:07:28]Read from MH i2c: E2 03 00 B1 06 00 90 00 2B [22:07:28]RAPDU: 90 00 [22:07:28]wFMCommunicate OK [22:07:28]wFMCommunicate request_size=7 [22:07:28]MH_SAM_APDU [22:07:28]CAPDU: 80 0D 02 02 02 66 27 [22:07:28]Write to MH i2c: E2 0A 00 B2 06 80 0D 02 02 02 00 66 27 00 00 C3 [22:07:28]Write i2c OK [22:07:28]MH_I2C_Read... [22:07:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:28]Read from MH i2c: E2 [22:07:28]MH_I2C_Read... [22:07:28]Read from MH i2c: E2 03 00 [22:07:28]MH_I2C_Read... [22:07:28]Read from MH i2c: E2 03 00 B2 06 00 90 00 2C [22:07:28]RAPDU: 90 00 [22:07:28]wFMCommunicate OK [22:07:28]wFMCommunicate request_size=4 [22:07:28]MH_SAM_APDU [22:07:28]CAPDU: 80 0D 03 02 [22:07:28]Write to MH i2c: E2 08 00 B3 06 80 0D 03 02 00 00 00 00 34 [22:07:28]Write i2c OK [22:07:28]MH_I2C_Read... [22:07:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:07:28]Read from MH i2c: E2 [22:07:28]MH_I2C_Read... [22:07:28]Read from MH i2c: E2 0B 00 [22:07:28]MH_I2C_Read... [22:07:28]Read from MH i2c: E2 0B 00 B3 06 00 C2 2B 16 7D 5B 4A 77 CC 90 00 9D [22:07:28]RAPDU: C2 2B 16 7D 5B 4A 77 CC 90 00 [22:07:28]wFMCommunicate OK [22:07:28]SAM_PROTO_SignData done [22:07:28]FM_MakeSignedData done [22:07:28]CreateOFDProtocolMessage [22:07:28]wFMCommunicate request_size=4 [22:07:28]MH_SAM_APDU [22:07:28]CAPDU: 80 11 00 00 [22:07:28]Write to MH i2c: E2 08 00 B4 06 80 11 00 00 00 00 00 00 34 [22:07:28]Write i2c OK [22:07:28]MH_I2C_Read... [22:07:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:28]Read from MH i2c: E2 [22:07:28]MH_I2C_Read... [22:07:28]Read from MH i2c: E2 17 00 [22:07:28]MH_I2C_Read... [22:07:28]Read from MH i2c: E2 17 00 B4 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8B [22:07:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:07:28]wFMCommunicate OK [22:07:28]CreateOFDProtocolMessage done [22:07:28]OFDSenderStorePacket 228445 [22:07:28]StoreOFDPacket docnum=228445 [22:07:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 70 13 04 01 8A 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 B4 E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F5 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F5 DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 01 00 00 F4 03 04 00 1F 22 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5D 7C 03 00 35 04 06 00 10 59 50 D9 66 27 C2 2B 16 7D 5B 4A 77 CC [22:07:28]CheckFolder [22:07:28]dirname=/storage/ofd_packets [22:07:28]CheckFolder done [22:07:28]ProducePacketName [22:07:28]name=ofd_packets/00228445 [22:07:28]NVStorageSaveData ofd_packets/00228445 [22:07:28]File name is /storage/ofd_packets/00228445 [22:07:28]Write 298 bytes [22:07:28]NVStorageSaveData done [22:07:28]OFDSenderStorePacket done [22:07:28]KKMCreateOFDPacket done [22:07:28]NVStorageSaveData kkm_last_timestamp [22:07:28]File name is /storage/kkm_last_timestamp [22:07:28]Write 4 bytes [22:07:28]NVStorageSaveData done [22:07:28]ExternCall_PrintAddStr [22:07:28]wPrintStart [22:07:28]Write to MH i2c: 01 00 00 B5 06 BB [22:07:28]Write i2c OK [22:07:28]MH_I2C_Read... [22:07:28]Read from MH i2c: 01 [22:07:28]MH_I2C_Read... [22:07:28]Read from MH i2c: 01 07 00 [22:07:28]MH_I2C_Read... [22:07:28]Read from MH i2c: 01 07 00 B5 06 00 00 00 00 00 FF 0F D0 [22:07:28]RasterBufferAndPrint [22:07:28]line Счет N : (1)1965090 [22:07:28]line ИНН: 02508201610067 [22:07:28]line Контрольно-Кассовый Чек [22:07:28]line ПРОДАЖА [22:07:28]line ТРК (МРК, ГНК) : 21 [22:07:28]line Товар: 2710194210 [22:07:28]line ДТ-К-5 [22:07:28]line 59.060 * 76.20 [22:07:28]line = 4500.37 [22:07:28]line НДС 12% НСП 1% [22:07:28]line > о реализуемом товаре [22:07:28]line ИТОГО: 4500.37 [22:07:28]line НСП 1% : 39.83 [22:07:28]line НДС 12% : 477.91 [22:07:28]line Наличными: 0.00 [22:07:28]line Безнал.: 4500.37 [22:07:28]line Место: АЗС № 133 "Партнер Нефть" [22:07:28]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [22:07:28]line СНО: Общий режим [22:07:28]line Чек 409 22.10.2024 22:07 [22:07:28]line Смена: 535 ФФД: 1.0 [22:07:28]line ЗНМ: 0300000091 [22:07:28]line РНМ: 0000000000091685 [22:07:28]line Версия ККМ: 001 [22:07:28]line Платежная система: Mbank [22:07:28]line ФМ: 0000000000871839 [22:07:28]line ФД: 228445 [22:07:28]line ФПД: 17975794558503 [22:07:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T220727&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228445&fm=17975794558503&tin=02508201610067®Number=0000000000091685&sum=450037 [22:07:28]OFD Sender: Processing packet 228445 [packets to send 38, broken 37] [22:07:28]ProducePacketName [22:07:28]name=ofd_packets/00228445 [22:07:28]OFD Sender: To server: pG, [22:07:28]CommunicateWithHost lk.salyk.kg:30040 [22:07:28]ConnectInit lk.salyk.kg [22:07:28]written 0, free lines is 4095 [22:07:28]Connected sock=10 [22:07:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 70 13 04 01 8A 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 B4 E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F5 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F5 DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 01 00 00 F4 03 04 00 1F 22 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5D 7C 03 00 35 04 06 00 10 59 50 D9 66 27 C2 2B 16 7D 5B 4A 77 CC [22:07:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 D5 5B 47 00 7F 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5D 7C 03 00 F4 03 04 00 16 CD 17 67 B6 04 01 00 00 9F 90 25 24 5E 06 9B 7B [22:07:29]CommunicateWithHost err = 0 [22:07:29]CheckOFDResponse [22:07:29]1017 (14) - 77093643461234 [22:07:29]1041 (16) - 0000000000871839 [22:07:29]1040 (4) - 228445 [22:07:29]1012 (4) - 22.10.2024 16:04 [22:07:29]1206 (1) - 0 [22:07:29]OFD Sender: Remove packet 228445 [22:07:29]ProducePacketName [22:07:29]name=ofd_packets/00228445 [22:07:29]NVStorageDeleteData [22:07:29]Write to MH i2c: 01 00 00 DD 06 E3 [22:07:29]Write i2c OK [22:07:29]MH_I2C_Read... [22:07:29]Read from MH i2c: 01 [22:07:29]MH_I2C_Read... [22:07:29]Read from MH i2c: 01 07 00 [22:07:29]MH_I2C_Read... [22:07:29]Read from MH i2c: 01 07 00 DD 06 00 00 00 00 00 DD 0C D3 [22:07:29]RasterBufferAndPrint [22:07:29]line [22:07:29]line [22:07:29]line [22:07:29]line [22:07:29]line [22:07:29]written 0, free lines is 3297 [22:07:29]MH_Cut [22:07:29]Write to MH i2c: D1 01 00 E4 06 01 BC [22:07:29]Write i2c OK [22:07:29]MH_I2C_Read... [22:07:29]Read from MH i2c: D1 [22:07:29]MH_I2C_Read... [22:07:29]Read from MH i2c: D1 01 00 [22:07:29]MH_I2C_Read... [22:07:29]Read from MH i2c: D1 01 00 E4 06 00 BB [22:07:29]Write to MH i2c: 01 00 00 E5 06 EB [22:07:29]Write i2c OK [22:07:29]MH_I2C_Read... [22:07:29]OFD Sender: No OFD packet to send [22:07:30]*** Cut start [22:07:30]*** Partial cut [22:07:30]*** CUTSNS_PIN = 1 [22:07:30]*** CUTSNS_PIN = 0 [22:07:30]*** Brake cut motor [22:07:30]Read from MH i2c: 01 [22:07:30]MH_I2C_Read... [22:07:30]*** Stop cut motor [22:07:30]*** Cut end [22:07:30]Read from MH i2c: 01 07 00 [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: 01 07 00 E5 06 00 00 00 00 00 FF 0F 00 [22:07:30]process_action close_receipt done [22:07:30]requested_data is exist [22:07:30]produce_requested_data [22:07:30]requested_item fm.sn is exist - process it [22:07:30]wFMCommunicate request_size=4 [22:07:30]MH_SAM_APDU [22:07:30]CAPDU: 80 11 00 00 [22:07:30]Write to MH i2c: E2 08 00 E6 06 80 11 00 00 00 00 00 00 66 [22:07:30]Write i2c OK [22:07:30]MH_I2C_Read... [22:07:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:30]Read from MH i2c: E2 [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: E2 17 00 [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: E2 17 00 E6 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BD [22:07:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:07:30]wFMCommunicate OK [22:07:30]requested_item fd.num is exist - process it [22:07:30]SAM_PROTO_GetFieldsCounters [22:07:30]wFMCommunicate request_size=4 [22:07:30]MH_SAM_APDU [22:07:30]CAPDU: 80 13 00 00 [22:07:30]Write to MH i2c: E2 08 00 E7 06 80 13 00 00 00 00 00 00 69 [22:07:30]Write i2c OK [22:07:30]MH_I2C_Read... [22:07:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:07:31]Read from MH i2c: E2 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: E2 62 00 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: E2 62 00 E7 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5D 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 99 01 00 00 5E 04 04 00 99 01 00 00 57 04 04 00 9A 01 00 00 19 04 04 00 00 00 00 00 90 00 55 [22:07:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5D 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 99 01 00 00 5E 04 04 00 99 01 00 00 57 04 04 00 9A 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:07:31]wFMCommunicate OK [22:07:31]SAM_PROTO_GetFieldsCounters done [22:07:31]requested_item shift.num is exist - process it [22:07:31]requested_item shift.opened is exist - process it [22:07:31]req_shift_opened [22:07:31]FM_GetShiftState [22:07:31]SAM_PROTO_GetShiftState [22:07:31]wFMCommunicate request_size=4 [22:07:31]MH_SAM_APDU [22:07:31]CAPDU: 80 13 01 00 [22:07:31]Write to MH i2c: E2 08 00 E8 06 80 13 01 00 00 00 00 00 6B [22:07:31]Write i2c OK [22:07:31]MH_I2C_Read... [22:07:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:31]Read from MH i2c: E2 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: E2 0E 00 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: E2 0E 00 E8 06 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 32 [22:07:31]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [22:07:31]wFMCommunicate OK [22:07:31]SAM_PROTO_GetShiftState done [22:07:31]FM_GetShiftState done [22:07:31]req_shift_opened done [22:07:31]requested_item shift.open_date is exist - process it [22:07:31]req_shift_open_date [22:07:31]req_shift_open_date done [22:07:31]produce_requested_data done [22:07:31]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228445,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [22:07:31]process_action_free close_receipt [22:07:31]json_value_free [22:07:31]json_value_free done [22:07:31]process_json_proto returns [22:07:31]Send response to host [22:07:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228445,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [22:07:31]free response buf [22:07:31]execute_script done [22:07:31]execute_script returns [22:07:31]free content buf [22:07:31]Sock 9.Close socket [22:07:31]Sock 9.Thread stoped [22:07:34]OFD Sender: No OFD packet to send [22:07:39]OFD Sender: No OFD packet to send [22:07:44]OFD Sender: No OFD packet to send [22:07:49]OFD Sender: No OFD packet to send [22:07:54]OFD Sender: No OFD packet to send [22:07:59]OFD Sender: No OFD packet to send [22:08:04]OFD Sender: No OFD packet to send [22:08:09]OFD Sender: No OFD packet to send [22:08:14]OFD Sender: No OFD packet to send [22:08:19]OFD Sender: No OFD packet to send [22:08:24]OFD Sender: No OFD packet to send [22:08:29]OFD Sender: No OFD packet to send [22:08:34]OFD Sender: No OFD packet to send [22:08:39]OFD Sender: No OFD packet to send [22:08:44]OFD Sender: No OFD packet to send [22:08:49]OFD Sender: No OFD packet to send [22:08:54]OFD Sender: No OFD packet to send [22:08:59]OFD Sender: No OFD packet to send [22:09:04]OFD Sender: No OFD packet to send [22:09:09]OFD Sender: No OFD packet to send [22:09:14]OFD Sender: No OFD packet to send [22:09:19]OFD Sender: No OFD packet to send [22:09:24]OFD Sender: No OFD packet to send [22:09:29]OFD Sender: No OFD packet to send [22:09:34]OFD Sender: No OFD packet to send [22:09:39]OFD Sender: No OFD packet to send [22:09:44]OFD Sender: No OFD packet to send [22:09:49]OFD Sender: No OFD packet to send [22:09:54]OFD Sender: No OFD packet to send [22:09:59]OFD Sender: No OFD packet to send [22:10:04]OFD Sender: No OFD packet to send [22:10:09]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]int [22:11:24]Write to MH i2c: 01 00 00 E9 06 EF [22:11:24]*** FLAG_PRN_PAP1 set [22:11:24]Write i2c OK [22:11:24]MH_I2C_Read... [22:11:24]Read from MH i2c: 01 [22:11:24]MH_I2C_Read... [22:11:24]Read from MH i2c: 01 07 00 [22:11:24]MH_I2C_Read... [22:11:24]Read from MH i2c: 01 07 00 E9 06 00 01 00 00 00 FF 0F 05 [22:11:24]state=0 [22:11:24]No paper [22:11:24]int [22:11:24]Write to MH i2c: 01 00 00 EA 06 F0 [22:11:24]*** FLAG_PRN_PAP2 set [22:11:24]Write i2c OK [22:11:24]MH_I2C_Read... [22:11:24]Read from MH i2c: 01 [22:11:24]MH_I2C_Read... [22:11:24]Read from MH i2c: 01 07 00 [22:11:24]MH_I2C_Read... [22:11:24]Read from MH i2c: 01 07 00 EA 06 00 03 00 00 00 FF 0F 08 [22:11:24]state=0 [22:11:24]No paper [22:11:24]Cover opened [22:11:24]OFD Sender: No OFD packet to send [22:11:29]Write to MH i2c: 01 00 00 EB 06 F1 [22:11:29]Write i2c OK [22:11:29]MH_I2C_Read... [22:11:29]Read from MH i2c: 01 [22:11:29]MH_I2C_Read... [22:11:29]Read from MH i2c: 01 07 00 [22:11:29]MH_I2C_Read... [22:11:29]Read from MH i2c: 01 07 00 EB 06 00 03 00 00 00 FF 0F 09 [22:11:29]state=3 [22:11:29]No paper [22:11:29]Cover opened [22:11:29]OFD Sender: No OFD packet to send [22:11:32]int [22:11:32]Write to MH i2c: 01 00 00 EC 06 F2 [22:11:32]*** FLAG_PRN_PAP2 reset [22:11:32]Write i2c OK [22:11:32]MH_I2C_Read... [22:11:32]Read from MH i2c: 01 [22:11:32]MH_I2C_Read... [22:11:32]Read from MH i2c: 01 07 00 [22:11:32]MH_I2C_Read... [22:11:32]*** FLAG_PRN_PAP1 reset [22:11:32]Read from MH i2c: 01 07 00 EC 06 00 00 00 00 00 FF 0F 07 [22:11:32]state=3 [22:11:32]Cover closed [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:34]OFD Sender: No OFD packet to send [22:12:39]OFD Sender: No OFD packet to send [22:12:44]OFD Sender: No OFD packet to send [22:12:49]OFD Sender: No OFD packet to send [22:12:54]OFD Sender: No OFD packet to send [22:12:59]OFD Sender: No OFD packet to send [22:13:04]OFD Sender: No OFD packet to send [22:13:09]OFD Sender: No OFD packet to send [22:13:14]OFD Sender: No OFD packet to send [22:13:19]OFD Sender: No OFD packet to send [22:13:24]OFD Sender: No OFD packet to send [22:13:29]OFD Sender: No OFD packet to send [22:13:35]OFD Sender: No OFD packet to send [22:13:40]OFD Sender: No OFD packet to send [22:13:42]accept exits with 7 [22:13:42]New connection [22:13:42]New thread 3066834276 created [22:13:42]Thread 3066977636 joined [22:13:42]Waiting for new connection... [22:13:42] Sock 7.Parse request [22:13:42]Sock 7.Check first char [22:13:42]Sock 7.First char is OK [22:13:42]request: POST /json_proto HTTP/1.0 [22:13:42]Method: POST [22:13:42]URL: /json_proto [22:13:42]Method is POST - this is cgi request [22:13:42]url: /json_proto [22:13:42]query_string will be loaded in cgi processing [22:13:42]execute_cgi json_proto POST (null) [22:13:42]execute_cgi path=json_proto method=POST [22:13:42]POST find Content-Length [22:13:42]Host: 172.17.44.195:8080 [22:13:42]Content-Length: 677 [22:13:42]Content-Type: application/json [22:13:42] [22:13:42]POST finish read [22:13:42]Found Content-Length = 677 [22:13:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.24, "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" ] } } [22:13:42]execute_script... [22: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)1965091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.24, "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" ] } } [22:13:42]POST & json_proto [22:13:42]process_json_proto [22:13:42]json parsed OK: [22:13:42]protocol is kg_v1.0 [22:13:42]action value=close_receipt [22:13:42]process_action close_receipt [22:13:42]cmd_close_receipt [22:13:42]MH_GetDate [22:13:42]Write to MH i2c: F0 00 00 ED 06 E2 [22:13:42]Write i2c OK [22:13:42]MH_I2C_Read... [22:13:42]Read from MH i2c: F0 [22:13:42]MH_I2C_Read... [22:13:42]Read from MH i2c: F0 09 00 [22:13:42]MH_I2C_Read... [22:13:42]Read from MH i2c: F0 09 00 ED 06 00 97 23 18 67 82 C9 CF 66 A4 [22:13:42]GetLastDocTimeStamp 1729634847 [22:13:42]current date 1729635223 [22:13:42]FM_GetShiftState [22:13:42]SAM_PROTO_GetShiftState [22:13:42]wFMCommunicate request_size=4 [22:13:42]MH_SAM_APDU [22:13:42]CAPDU: 80 13 01 00 [22:13:42]Write to MH i2c: E2 08 00 EE 06 80 13 01 00 00 00 00 00 71 [22:13:42]Write i2c OK [22:13:42]MH_I2C_Read... [22:13:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:42]Read from MH i2c: E2 [22:13:42]MH_I2C_Read... [22:13:42]Read from MH i2c: E2 0E 00 [22:13:42]MH_I2C_Read... [22:13:42]Read from MH i2c: E2 0E 00 EE 06 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 38 [22:13:42]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [22:13:42]wFMCommunicate OK [22:13:42]SAM_PROTO_GetShiftState done [22:13:42]FM_GetShiftState done [22:13:42]opened in 1729555538 [22:13:42]opened+sec_in_day 1729641938 [22:13:42]quantity*price = 200023 [22:13:42]sum+1 = 200025 [22:13:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 410 22.10.2024 22:13 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228446 ФПД: 205319390526450 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T221343&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228446&fm=205319390526450&tin=02508201610067®Number=0000000000091685&sum=200000 [22:13:44]StoreToDocumentArchive [22:13:44]shift 535 fd 228446 [22:13:44]save to /storage/0535/doc_00228446 [22:13:44]save last doc name /storage/0535/doc_00228446 to /storage/kkm_last_doc_name [22:13:44]save OK [22:13:44]Clear old archive folders... [22:13:44]ProcessDocumentItem done err = 0, tmpTLVsize=245 [22:13:44]tlvbuf is 002EDF80 [22:13:44]SAM_PROTO_ClearQueue [22:13:44]wFMCommunicate request_size=4 [22:13:44]MH_SAM_APDU [22:13:44]CAPDU: 80 09 00 00 [22:13:44]Write to MH i2c: E2 08 00 FB 06 80 09 00 00 00 00 00 00 73 [22:13:44]Write i2c OK [22:13:44]MH_I2C_Read... [22:13:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:13:44]Read from MH i2c: E2 [22:13:44]MH_I2C_Read... [22:13:44]Read from MH i2c: E2 03 00 [22:13:44]MH_I2C_Read... [22:13:44]Read from MH i2c: E2 03 00 FB 06 00 90 00 75 [22:13:44]RAPDU: 90 00 [22:13:44]wFMCommunicate OK [22:13:44]SAM_PROTO_ClearQueue done [22:13:44]KKMCreateOFDPacket [22:13:44]OFDProtocolAddRootSTLVToBuf [22:13:44]FM_MakeSignedData [22:13:44]FM_MakeSignedData [22:13:44]SAM_PROTO_SignData [22:13:44]wFMCommunicate request_size=4 [22:13:44]MH_SAM_APDU [22:13:44]CAPDU: 80 0D 01 02 [22:13:44]Write to MH i2c: E2 08 00 FC 06 80 0D 01 02 00 00 00 00 7B [22:13:44]Write i2c OK [22:13:44]MH_I2C_Read... [22:13:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:13:44]Read from MH i2c: E2 [22:13:44]MH_I2C_Read... [22:13:44]Read from MH i2c: E2 03 00 [22:13:44]MH_I2C_Read... [22:13:44]Read from MH i2c: E2 03 00 FC 06 00 90 00 76 [22:13:44]RAPDU: 90 00 [22:13:44]wFMCommunicate OK [22:13:44]wFMCommunicate request_size=254 [22:13:44]MH_SAM_APDU [22:13:44]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 01 00 00 F4 03 04 00 97 23 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5E 7C 03 00 35 04 06 00 BA BC A5 56 7B F2 [22:13:44]Write to MH i2c: E2 01 01 FD 06 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 01 00 00 F4 03 04 00 97 23 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5E 7C 03 00 35 04 06 00 BA BC A5 56 7B F2 00 00 03 [22:13:44]Write i2c OK [22:13:44]MH_I2C_Read... [22:13:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:44]Read from MH i2c: E2 [22:13:44]MH_I2C_Read... [22:13:44]Read from MH i2c: E2 03 00 [22:13:44]MH_I2C_Read... [22:13:44]Read from MH i2c: E2 03 00 FD 06 00 90 00 77 [22:13:44]RAPDU: 90 00 [22:13:44]wFMCommunicate OK [22:13:44]wFMCommunicate request_size=4 [22:13:44]MH_SAM_APDU [22:13:44]CAPDU: 80 0D 03 02 [22:13:44]Write to MH i2c: E2 08 00 FE 06 80 0D 03 02 00 00 00 00 7F [22:13:44]Write i2c OK [22:13:44]MH_I2C_Read... [22:13:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:13:44]Read from MH i2c: E2 [22:13:44]MH_I2C_Read... [22:13:44]Read from MH i2c: E2 0B 00 [22:13:44]MH_I2C_Read... [22:13:44]Read from MH i2c: E2 0B 00 FE 06 00 7E A5 13 DE 51 E9 35 02 90 00 05 [22:13:44]RAPDU: 7E A5 13 DE 51 E9 35 02 90 00 [22:13:44]wFMCommunicate OK [22:13:44]SAM_PROTO_SignData done [22:13:44]FM_MakeSignedData done [22:13:44]CreateOFDProtocolMessage [22:13:44]wFMCommunicate request_size=4 [22:13:44]MH_SAM_APDU [22:13:44]CAPDU: 80 11 00 00 [22:13:44]Write to MH i2c: E2 08 00 FF 06 80 11 00 00 00 00 00 00 7F [22:13:44]Write i2c OK [22:13:44]MH_I2C_Read... [22:13:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:44]Read from MH i2c: E2 [22:13:44]MH_I2C_Read... [22:13:44]Read from MH i2c: E2 17 00 [22:13:44]MH_I2C_Read... [22:13:44]Read from MH i2c: E2 17 00 FF 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D6 [22:13:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:13:44]wFMCommunicate OK [22:13:44]CreateOFDProtocolMessage done [22:13:44]OFDSenderStorePacket 228446 [22:13:44]StoreOFDPacket docnum=228446 [22:13:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 B2 28 01 01 CF 77 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 01 00 00 F4 03 04 00 97 23 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5E 7C 03 00 35 04 06 00 BA BC A5 56 7B F2 7E A5 13 DE 51 E9 35 02 [22:13:44]CheckFolder [22:13:44]dirname=/storage/ofd_packets [22:13:44]CheckFolder done [22:13:44]ProducePacketName [22:13:44]name=ofd_packets/00228446 [22:13:44]NVStorageSaveData ofd_packets/00228446 [22:13:44]File name is /storage/ofd_packets/00228446 [22:13:44]Write 295 bytes [22:13:44]NVStorageSaveData done [22:13:44]OFDSenderStorePacket done [22:13:44]KKMCreateOFDPacket done [22:13:44]NVStorageSaveData kkm_last_timestamp [22:13:44]File name is /storage/kkm_last_timestamp [22:13:44]Write 4 bytes [22:13:44]NVStorageSaveData done [22:13:44]ExternCall_PrintAddStr [22:13:44]wPrintStart [22:13:44]Write to MH i2c: 01 00 00 00 07 07 [22:13:44]Write i2c OK [22:13:44]MH_I2C_Read... [22:13:44]Read from MH i2c: 01 [22:13:44]MH_I2C_Read... [22:13:44]Read from MH i2c: 01 07 00 [22:13:44]MH_I2C_Read... [22:13:44]Read from MH i2c: 01 07 00 00 07 00 00 00 00 00 FF 0F 1C [22:13:44]RasterBufferAndPrint [22:13:44]line Счет N : (1)1965091 [22:13:44]line ИНН: 02508201610067 [22:13:44]line Контрольно-Кассовый Чек [22:13:44]line ПРОДАЖА [22:13:44]line ТРК (МРК, ГНК) : 71 [22:13:44]line Товар: 2711129700 [22:13:44]line ГАЗ [22:13:44]line 51.420 * 38.90 [22:13:44]line = 2000.24 [22:13:44]line НДС 12% НСП 1% [22:13:44]line > о реализуемом товаре [22:13:44]line ОКРУГЛЕНИЕ: -0.24 [22:13:44]line ИТОГО: 2000.00 [22:13:44]line Внесено: 2000.00 [22:13:44]line СДАЧА: 0.00 [22:13:44]line НСП 1% : 17.70 [22:13:44]line НДС 12% : 212.41 [22:13:44]line Наличными: 2000.00 [22:13:44]line Безнал.: 0.00 [22:13:44]line Место: АЗС № 133 "Партнер Нефть" [22:13:44]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [22:13:44]line СНО: Общий режим [22:13:44]line Чек 410 22.10.2024 22:13 [22:13:44]line Смена: 535 ФФД: 1.0 [22:13:44]line ЗНМ: 0300000091 [22:13:44]line РНМ: 0000000000091685 [22:13:44]line Версия ККМ: 001 [22:13:44]line ФМ: 0000000000871839 [22:13:44]line ФД: 228446 [22:13:44]line ФПД: 205319390526450 [22:13:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T221343&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228446&fm=205319390526450&tin=02508201610067®Number=0000000000091685&sum=200000 [22:13:44]OFD Sender: Processing packet 228446 [packets to send 38, broken 37] [22:13:44]ProducePacketName [22:13:44]name=ofd_packets/00228446 [22:13:44]OFD Sender: To server: pG, [22:13:44]CommunicateWithHost lk.salyk.kg:30040 [22:13:44]ConnectInit lk.salyk.kg [22:13:44]written 0, free lines is 4095 [22:13:44]Connected sock=10 [22:13:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 B2 28 01 01 CF 77 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 01 00 00 F4 03 04 00 97 23 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5E 7C 03 00 35 04 06 00 BA BC A5 56 7B F2 7E A5 13 DE 51 E9 35 02 [22:13:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 16 73 47 00 9F B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5E 7C 03 00 F4 03 04 00 8E CE 17 67 B6 04 01 00 00 88 A3 9D 47 45 9A 40 A0 [22:13:45]CommunicateWithHost err = 0 [22:13:45]CheckOFDResponse [22:13:45]1017 (14) - 77093643461234 [22:13:45]1041 (16) - 0000000000871839 [22:13:45]1040 (4) - 228446 [22:13:45]1012 (4) - 22.10.2024 16:10 [22:13:45]1206 (1) - 0 [22:13:45]OFD Sender: Remove packet 228446 [22:13:45]ProducePacketName [22:13:45]name=ofd_packets/00228446 [22:13:45]NVStorageDeleteData [22:13:45]Write to MH i2c: 01 00 00 2A 07 31 [22:13:45]Write i2c OK [22:13:45]MH_I2C_Read... [22:13:45]Read from MH i2c: 01 [22:13:45]MH_I2C_Read... [22:13:45]Read from MH i2c: 01 07 00 [22:13:45]MH_I2C_Read... [22:13:45]Read from MH i2c: 01 07 00 2A 07 00 00 00 00 00 AD 0C F1 [22:13:45]RasterBufferAndPrint [22:13:45]line [22:13:45]line [22:13:45]line [22:13:45]line [22:13:45]line [22:13:45]written 0, free lines is 3248 [22:13:45]MH_Cut [22:13:45]Write to MH i2c: D1 01 00 31 07 01 0A [22:13:45]Write i2c OK [22:13:45]MH_I2C_Read... [22:13:45]Read from MH i2c: D1 [22:13:45]MH_I2C_Read... [22:13:45]Read from MH i2c: D1 01 00 [22:13:45]MH_I2C_Read... [22:13:45]Read from MH i2c: D1 01 00 31 07 00 09 [22:13:45]Write to MH i2c: 01 00 00 32 07 39 [22:13:45]Write i2c OK [22:13:45]MH_I2C_Read... [22:13:45]OFD Sender: No OFD packet to send [22:13:46]*** Cut start [22:13:46]*** Partial cut [22:13:46]*** CUTSNS_PIN = 1 [22:13:46]*** CUTSNS_PIN = 0 [22:13:46]*** Brake cut motor [22:13:46]Read from MH i2c: 01 [22:13:46]MH_I2C_Read... [22:13:46]*** Stop cut motor [22:13:46]*** Cut end [22:13:46]Read from MH i2c: 01 07 00 [22:13:46]MH_I2C_Read... [22:13:46]Read from MH i2c: 01 07 00 32 07 00 00 00 00 00 FF 0F 4E [22:13:46]process_action close_receipt done [22:13:46]requested_data is exist [22:13:46]produce_requested_data [22:13:46]requested_item fm.sn is exist - process it [22:13:46]wFMCommunicate request_size=4 [22:13:46]MH_SAM_APDU [22:13:46]CAPDU: 80 11 00 00 [22:13:46]Write to MH i2c: E2 08 00 33 07 80 11 00 00 00 00 00 00 B4 [22:13:46]Write i2c OK [22:13:46]MH_I2C_Read... [22:13:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:46]Read from MH i2c: E2 [22:13:46]MH_I2C_Read... [22:13:46]Read from MH i2c: E2 17 00 [22:13:46]MH_I2C_Read... [22:13:46]Read from MH i2c: E2 17 00 33 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0B [22:13:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:13:46]wFMCommunicate OK [22:13:46]requested_item fd.num is exist - process it [22:13:46]SAM_PROTO_GetFieldsCounters [22:13:46]wFMCommunicate request_size=4 [22:13:46]MH_SAM_APDU [22:13:46]CAPDU: 80 13 00 00 [22:13:46]Write to MH i2c: E2 08 00 34 07 80 13 00 00 00 00 00 00 B7 [22:13:46]Write i2c OK [22:13:46]MH_I2C_Read... [22:13:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:13:47]Read from MH i2c: E2 [22:13:47]MH_I2C_Read... [22:13:47]Read from MH i2c: E2 62 00 [22:13:47]MH_I2C_Read... [22:13:47]Read from MH i2c: E2 62 00 34 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5E 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 9A 01 00 00 5E 04 04 00 9A 01 00 00 57 04 04 00 9B 01 00 00 19 04 04 00 00 00 00 00 90 00 A7 [22:13:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5E 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 9A 01 00 00 5E 04 04 00 9A 01 00 00 57 04 04 00 9B 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:13:47]wFMCommunicate OK [22:13:47]SAM_PROTO_GetFieldsCounters done [22:13:47]requested_item shift.num is exist - process it [22:13:47]requested_item shift.opened is exist - process it [22:13:47]req_shift_opened [22:13:47]FM_GetShiftState [22:13:47]SAM_PROTO_GetShiftState [22:13:47]wFMCommunicate request_size=4 [22:13:47]MH_SAM_APDU [22:13:47]CAPDU: 80 13 01 00 [22:13:47]Write to MH i2c: E2 08 00 35 07 80 13 01 00 00 00 00 00 B9 [22:13:47]Write i2c OK [22:13:47]MH_I2C_Read... [22:13:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:47]Read from MH i2c: E2 [22:13:47]MH_I2C_Read... [22:13:47]Read from MH i2c: E2 0E 00 [22:13:47]MH_I2C_Read... [22:13:47]Read from MH i2c: E2 0E 00 35 07 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 80 [22:13:47]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [22:13:47]wFMCommunicate OK [22:13:47]SAM_PROTO_GetShiftState done [22:13:47]FM_GetShiftState done [22:13:47]req_shift_opened done [22:13:47]requested_item shift.open_date is exist - process it [22:13:47]req_shift_open_date [22:13:47]req_shift_open_date done [22:13:47]produce_requested_data done [22:13:47]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228446,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [22:13:47]process_action_free close_receipt [22:13:47]json_value_free [22:13:47]json_value_free done [22:13:47]process_json_proto returns [22:13:47]Send response to host [22:13:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228446,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [22:13:47]free response buf [22:13:47]execute_script done [22:13:47]execute_script returns [22:13:47]free content buf [22:13:47]Sock 7.Close socket [22:13:47]Sock 7.Thread stoped [22:13:50]OFD Sender: No OFD packet to send [22:13:55]OFD Sender: No OFD packet to send [22:13:59]accept exits with 9 [22:13:59]New connection [22:13:59]New thread 3066977636 created [22:13:59]Thread 3066834276 joined [22:13:59]Waiting for new connection... [22:13:59] Sock 9.Parse request [22:13:59]Sock 9.Check first char [22:13:59]Sock 9.First char is OK [22:13:59]request: POST /json_proto HTTP/1.0 [22:13:59]Method: POST [22:13:59]URL: /json_proto [22:13:59]Method is POST - this is cgi request [22:13:59]url: /json_proto [22:13:59]query_string will be loaded in cgi processing [22:13:59]execute_cgi json_proto POST (null) [22:13:59]execute_cgi path=json_proto method=POST [22:13:59]POST find Content-Length [22:13:59]Host: 172.17.44.195:8080 [22:13:59]Content-Length: 799 [22:13:59]Content-Type: application/json [22:13:59] [22:13:59]POST finish read [22:13:59]Found Content-Length = 799 [22:13:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965092", "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" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4922373", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:59]execute_script... [22:13: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)1965092", "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" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4922373", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:59]POST & json_proto [22:13:59]process_json_proto [22:13:59]json parsed OK: [22:13:59]protocol is kg_v1.0 [22:13:59]action value=close_receipt [22:13:59]process_action close_receipt [22:13:59]cmd_close_receipt [22:13:59]MH_GetDate [22:13:59]Write to MH i2c: F0 00 00 36 07 2C [22:13:59]Write i2c OK [22:13:59]MH_I2C_Read... [22:13:59]Read from MH i2c: F0 [22:13:59]MH_I2C_Read... [22:13:59]Read from MH i2c: F0 09 00 [22:13:59]MH_I2C_Read... [22:13:59]Read from MH i2c: F0 09 00 36 07 00 A8 23 18 67 82 C9 CF 66 FF [22:13:59]GetLastDocTimeStamp 1729635223 [22:13:59]current date 1729635240 [22:13:59]FM_GetShiftState [22:13:59]SAM_PROTO_GetShiftState [22:13:59]wFMCommunicate request_size=4 [22:13:59]MH_SAM_APDU [22:13:59]CAPDU: 80 13 01 00 [22:13:59]Write to MH i2c: E2 08 00 37 07 80 13 01 00 00 00 00 00 BB [22:13:59]Write i2c OK [22:13:59]MH_I2C_Read... [22:13:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:59]Read from MH i2c: E2 [22:13:59]MH_I2C_Read... [22:13:59]Read from MH i2c: E2 0E 00 [22:13:59]MH_I2C_Read... [22:13:59]Read from MH i2c: E2 0E 00 37 07 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 82 [22:13:59]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [22:13:59]wFMCommunicate OK [22:13:59]SAM_PROTO_GetShiftState done [22:13:59]FM_GetShiftState done [22:13:59]opened in 1729555538 [22:13:59]opened+sec_in_day 1729641938 [22:13:59]quantity*price = 0 [22:13:59]sum+1 = 1 [22:13:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 411 22.10.2024 22:14 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливные Талоны 4922373 ФМ: 0000000000871839 ФД: 228447 ФПД: 97820985968943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T221400&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228447&fm=97820985968943&tin=02508201610067®Number=0000000000091685&sum=0 [22:14:01]StoreToDocumentArchive [22:14:01]shift 535 fd 228447 [22:14:01]save to /storage/0535/doc_00228447 [22:14:01]save last doc name /storage/0535/doc_00228447 to /storage/kkm_last_doc_name [22:14:01]save OK [22:14:01]Clear old archive folders... [22:14:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:14:01]tlvbuf is 00318730 [22:14:01]SAM_PROTO_ClearQueue [22:14:01]wFMCommunicate request_size=4 [22:14:01]MH_SAM_APDU [22:14:01]CAPDU: 80 09 00 00 [22:14:01]Write to MH i2c: E2 08 00 44 07 80 09 00 00 00 00 00 00 BD [22:14:01]Write i2c OK [22:14:01]MH_I2C_Read... [22:14:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:14:01]Read from MH i2c: E2 [22:14:01]MH_I2C_Read... [22:14:01]Read from MH i2c: E2 03 00 [22:14:01]MH_I2C_Read... [22:14:01]Read from MH i2c: E2 03 00 44 07 00 90 00 BF [22:14:01]RAPDU: 90 00 [22:14:01]wFMCommunicate OK [22:14:01]SAM_PROTO_ClearQueue done [22:14:01]KKMCreateOFDPacket [22:14:01]OFDProtocolAddRootSTLVToBuf [22:14:01]FM_MakeSignedData [22:14:01]FM_MakeSignedData [22:14:01]SAM_PROTO_SignData [22:14:01]wFMCommunicate request_size=4 [22:14:01]MH_SAM_APDU [22:14:01]CAPDU: 80 0D 01 02 [22:14:01]Write to MH i2c: E2 08 00 45 07 80 0D 01 02 00 00 00 00 C5 [22:14:01]Write i2c OK [22:14:01]MH_I2C_Read... [22:14:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:14:01]Read from MH i2c: E2 [22:14:01]MH_I2C_Read... [22:14:01]Read from MH i2c: E2 03 00 [22:14:01]MH_I2C_Read... [22:14:01]Read from MH i2c: E2 03 00 45 07 00 90 00 C0 [22:14:01]RAPDU: 90 00 [22:14:01]wFMCommunicate OK [22:14:01]wFMCommunicate request_size=255 [22:14:01]MH_SAM_APDU [22:14:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 A8 23 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5F 7C 03 00 35 04 06 00 58 F7 B9 1E [22:14:01]Write to MH i2c: E2 02 01 46 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 A8 23 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5F 7C 03 00 35 04 06 00 58 F7 B9 1E 00 00 54 [22:14:01]Write i2c OK [22:14:01]MH_I2C_Read... [22:14:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:14:01]Read from MH i2c: E2 [22:14:01]MH_I2C_Read... [22:14:01]Read from MH i2c: E2 03 00 [22:14:01]MH_I2C_Read... [22:14:01]Read from MH i2c: E2 03 00 46 07 00 90 00 C1 [22:14:01]RAPDU: 90 00 [22:14:01]wFMCommunicate OK [22:14:01]wFMCommunicate request_size=7 [22:14:01]MH_SAM_APDU [22:14:01]CAPDU: 80 0D 02 02 02 C9 2F [22:14:01]Write to MH i2c: E2 0A 00 47 07 80 0D 02 02 02 00 C9 2F 00 00 C4 [22:14:01]Write i2c OK [22:14:01]MH_I2C_Read... [22:14:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:14:01]Read from MH i2c: E2 [22:14:01]MH_I2C_Read... [22:14:01]Read from MH i2c: E2 03 00 [22:14:01]MH_I2C_Read... [22:14:01]Read from MH i2c: E2 03 00 47 07 00 90 00 C2 [22:14:01]RAPDU: 90 00 [22:14:01]wFMCommunicate OK [22:14:01]wFMCommunicate request_size=4 [22:14:01]MH_SAM_APDU [22:14:01]CAPDU: 80 0D 03 02 [22:14:01]Write to MH i2c: E2 08 00 48 07 80 0D 03 02 00 00 00 00 CA [22:14:01]Write i2c OK [22:14:01]MH_I2C_Read... [22:14:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:14:01]Read from MH i2c: E2 [22:14:01]MH_I2C_Read... [22:14:01]Read from MH i2c: E2 0B 00 [22:14:01]MH_I2C_Read... [22:14:01]Read from MH i2c: E2 0B 00 48 07 00 18 C4 D2 6F E3 7F 68 F9 90 00 AB [22:14:01]RAPDU: 18 C4 D2 6F E3 7F 68 F9 90 00 [22:14:01]wFMCommunicate OK [22:14:01]SAM_PROTO_SignData done [22:14:01]FM_MakeSignedData done [22:14:01]CreateOFDProtocolMessage [22:14:01]wFMCommunicate request_size=4 [22:14:01]MH_SAM_APDU [22:14:01]CAPDU: 80 11 00 00 [22:14:01]Write to MH i2c: E2 08 00 49 07 80 11 00 00 00 00 00 00 CA [22:14:01]Write i2c OK [22:14:01]MH_I2C_Read... [22:14:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:14:01]Read from MH i2c: E2 [22:14:01]MH_I2C_Read... [22:14:01]Read from MH i2c: E2 17 00 [22:14:01]MH_I2C_Read... [22:14:01]Read from MH i2c: E2 17 00 49 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 21 [22:14:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:14:01]wFMCommunicate OK [22:14:01]CreateOFDProtocolMessage done [22:14:01]OFDSenderStorePacket 228447 [22:14:01]StoreOFDPacket docnum=228447 [22:14:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 9F 3A 04 01 4A 9C 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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 A8 23 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5F 7C 03 00 35 04 06 00 58 F7 B9 1E C9 2F 18 C4 D2 6F E3 7F 68 F9 [22:14:01]CheckFolder [22:14:01]dirname=/storage/ofd_packets [22:14:01]CheckFolder done [22:14:01]ProducePacketName [22:14:01]name=ofd_packets/00228447 [22:14:01]NVStorageSaveData ofd_packets/00228447 [22:14:01]File name is /storage/ofd_packets/00228447 [22:14:01]Write 298 bytes [22:14:01]NVStorageSaveData done [22:14:01]OFDSenderStorePacket done [22:14:01]KKMCreateOFDPacket done [22:14:01]NVStorageSaveData kkm_last_timestamp [22:14:01]File name is /storage/kkm_last_timestamp [22:14:01]Write 4 bytes [22:14:01]NVStorageSaveData done [22:14:01]ExternCall_PrintAddStr [22:14:01]wPrintStart [22:14:01]Write to MH i2c: 01 00 00 4A 07 51 [22:14:01]Write i2c OK [22:14:01]MH_I2C_Read... [22:14:01]Read from MH i2c: 01 [22:14:01]MH_I2C_Read... [22:14:01]Read from MH i2c: 01 07 00 [22:14:01]MH_I2C_Read... [22:14:01]Read from MH i2c: 01 07 00 4A 07 00 00 00 00 00 FF 0F 66 [22:14:01]RasterBufferAndPrint [22:14:01]line Счет N : (1)1965092 [22:14:01]line ИНН: 02508201610067 [22:14:01]line Контрольно-Кассовый Чек [22:14:01]line ПРОДАЖА [22:14:01]line ТРК (МРК, ГНК) : 21 [22:14:01]line Товар: 2710194210 [22:14:01]line ДТ-К-5 [22:14:01]line 100.000 * 0.00 [22:14:01]line = 0.00 [22:14:01]line НДС 12% НСП 1% [22:14:01]line > о реализуемом товаре [22:14:01]line ИТОГО: 0.00 [22:14:01]line НСП 1% : 0.00 [22:14:01]line НДС 12% : 0.00 [22:14:01]line Наличными: 0.00 [22:14:01]line Безнал.: 0.00 [22:14:01]line Место: АЗС № 133 "Партнер Нефть" [22:14:01]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [22:14:01]line СНО: Общий режим [22:14:01]line Чек 411 22.10.2024 22:14 [22:14:01]line Смена: 535 ФФД: 1.0 [22:14:01]line ЗНМ: 0300000091 [22:14:01]line РНМ: 0000000000091685 [22:14:01]line Версия ККМ: 001 [22:14:01]line Талоны: Топливные Талоны [22:14:01]line 4922373 [22:14:01]line ФМ: 0000000000871839 [22:14:01]line ФД: 228447 [22:14:01]line ФПД: 97820985968943 [22:14:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T221400&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228447&fm=97820985968943&tin=02508201610067®Number=0000000000091685&sum=0 [22:14:01]OFD Sender: Processing packet 228447 [packets to send 38, broken 37] [22:14:01]ProducePacketName [22:14:01]name=ofd_packets/00228447 [22:14:01]OFD Sender: To server: pG, [22:14:01]CommunicateWithHost lk.salyk.kg:30040 [22:14:01]ConnectInit lk.salyk.kg [22:14:01]written 0, free lines is 4095 [22:14:02]Connected sock=11 [22:14:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 9F 3A 04 01 4A 9C 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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 A8 23 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5F 7C 03 00 35 04 06 00 58 F7 B9 1E C9 2F 18 C4 D2 6F E3 7F 68 F9 [22:14:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 27 8E 47 00 53 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5F 7C 03 00 F4 03 04 00 9F CE 17 67 B6 04 01 00 00 84 7B 41 74 02 9C 19 5D [22:14:02]CommunicateWithHost err = 0 [22:14:02]CheckOFDResponse [22:14:02]1017 (14) - 77093643461234 [22:14:02]1041 (16) - 0000000000871839 [22:14:02]1040 (4) - 228447 [22:14:02]1012 (4) - 22.10.2024 16:11 [22:14:02]1206 (1) - 0 [22:14:02]OFD Sender: Remove packet 228447 [22:14:02]ProducePacketName [22:14:02]name=ofd_packets/00228447 [22:14:02]NVStorageDeleteData [22:14:02]Write to MH i2c: 01 00 00 73 07 7A [22:14:02]Write i2c OK [22:14:02]MH_I2C_Read... [22:14:02]Read from MH i2c: 01 [22:14:02]MH_I2C_Read... [22:14:02]Read from MH i2c: 01 07 00 [22:14:02]MH_I2C_Read... [22:14:02]Read from MH i2c: 01 07 00 73 07 00 00 00 00 00 C5 0C 52 [22:14:02]RasterBufferAndPrint [22:14:02]line [22:14:02]line [22:14:02]line [22:14:02]line [22:14:02]line [22:14:02]written 0, free lines is 3272 [22:14:02]MH_Cut [22:14:02]Write to MH i2c: D1 01 00 7A 07 01 53 [22:14:02]Write i2c OK [22:14:02]MH_I2C_Read... [22:14:02]Read from MH i2c: D1 [22:14:02]MH_I2C_Read... [22:14:02]Read from MH i2c: D1 01 00 [22:14:02]MH_I2C_Read... [22:14:02]Read from MH i2c: D1 01 00 7A 07 00 52 [22:14:02]Write to MH i2c: 01 00 00 7B 07 82 [22:14:02]Write i2c OK [22:14:02]MH_I2C_Read... [22:14:02]OFD Sender: No OFD packet to send [22:14:03]*** Cut start [22:14:03]*** Partial cut [22:14:03]*** CUTSNS_PIN = 1 [22:14:03]*** CUTSNS_PIN = 0 [22:14:03]*** Brake cut motor [22:14:03]Read from MH i2c: 01 [22:14:03]MH_I2C_Read... [22:14:03]*** Stop cut motor [22:14:03]*** Cut end [22:14:03]Read from MH i2c: 01 07 00 [22:14:03]MH_I2C_Read... [22:14:03]Read from MH i2c: 01 07 00 7B 07 00 00 00 00 00 FF 0F 97 [22:14:03]process_action close_receipt done [22:14:03]requested_data is exist [22:14:03]produce_requested_data [22:14:03]requested_item fm.sn is exist - process it [22:14:03]wFMCommunicate request_size=4 [22:14:03]MH_SAM_APDU [22:14:03]CAPDU: 80 11 00 00 [22:14:03]Write to MH i2c: E2 08 00 7C 07 80 11 00 00 00 00 00 00 FD [22:14:03]Write i2c OK [22:14:03]MH_I2C_Read... [22:14:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:14:03]Read from MH i2c: E2 [22:14:03]MH_I2C_Read... [22:14:03]Read from MH i2c: E2 17 00 [22:14:03]MH_I2C_Read... [22:14:03]Read from MH i2c: E2 17 00 7C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 54 [22:14:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:14:03]wFMCommunicate OK [22:14:03]requested_item fd.num is exist - process it [22:14:03]SAM_PROTO_GetFieldsCounters [22:14:03]wFMCommunicate request_size=4 [22:14:03]MH_SAM_APDU [22:14:03]CAPDU: 80 13 00 00 [22:14:03]Write to MH i2c: E2 08 00 7D 07 80 13 00 00 00 00 00 00 00 [22:14:03]Write i2c OK [22:14:03]MH_I2C_Read... [22:14:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:14:04]Read from MH i2c: E2 [22:14:04]MH_I2C_Read... [22:14:04]Read from MH i2c: E2 62 00 [22:14:04]MH_I2C_Read... [22:14:04]Read from MH i2c: E2 62 00 7D 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5F 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 9B 01 00 00 5E 04 04 00 9B 01 00 00 57 04 04 00 9C 01 00 00 19 04 04 00 00 00 00 00 90 00 F4 [22:14:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5F 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 9B 01 00 00 5E 04 04 00 9B 01 00 00 57 04 04 00 9C 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:14:04]wFMCommunicate OK [22:14:04]SAM_PROTO_GetFieldsCounters done [22:14:04]requested_item shift.num is exist - process it [22:14:04]requested_item shift.opened is exist - process it [22:14:04]req_shift_opened [22:14:04]FM_GetShiftState [22:14:04]SAM_PROTO_GetShiftState [22:14:04]wFMCommunicate request_size=4 [22:14:04]MH_SAM_APDU [22:14:04]CAPDU: 80 13 01 00 [22:14:04]Write to MH i2c: E2 08 00 7E 07 80 13 01 00 00 00 00 00 02 [22:14:04]Write i2c OK [22:14:04]MH_I2C_Read... [22:14:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:14:04]Read from MH i2c: E2 [22:14:04]MH_I2C_Read... [22:14:04]Read from MH i2c: E2 0E 00 [22:14:04]MH_I2C_Read... [22:14:04]Read from MH i2c: E2 0E 00 7E 07 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 C9 [22:14:04]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [22:14:04]wFMCommunicate OK [22:14:04]SAM_PROTO_GetShiftState done [22:14:04]FM_GetShiftState done [22:14:04]req_shift_opened done [22:14:04]requested_item shift.open_date is exist - process it [22:14:04]req_shift_open_date [22:14:04]req_shift_open_date done [22:14:04]produce_requested_data done [22:14:04]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228447,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [22:14:04]process_action_free close_receipt [22:14:04]json_value_free [22:14:04]json_value_free done [22:14:04]process_json_proto returns [22:14:04]Send response to host [22:14:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228447,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [22:14:04]free response buf [22:14:04]execute_script done [22:14:04]execute_script returns [22:14:04]free content buf [22:14:04]Sock 9.Close socket [22:14:04]Sock 9.Thread stoped [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:41]accept exits with 7 [22:15:41]New connection [22:15:41]New thread 3066834276 created [22:15:41]Thread 3066977636 joined [22:15:41]Waiting for new connection... [22:15:41] Sock 7.Parse request [22:15:41]Sock 7.Check first char [22:15:41]Sock 7.First char is OK [22:15:41]request: POST /json_proto HTTP/1.0 [22:15:41]Method: POST [22:15:41]URL: /json_proto [22:15:41]Method is POST - this is cgi request [22:15:41]url: /json_proto [22:15:41]query_string will be loaded in cgi processing [22:15:41]execute_cgi json_proto POST (null) [22:15:41]execute_cgi path=json_proto method=POST [22:15:41]POST find Content-Length [22:15:41]Host: 172.17.44.195:8080 [22:15:41]Content-Length: 678 [22:15:41]Content-Type: application/json [22:15:41] [22:15:41]POST finish read [22:15:41]Found Content-Length = 678 [22:15:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965094", "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" : 66.90, "quantity" : 5.980, "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" ] } } [22:15:41]execute_script... [22:15: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)1965094", "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" : 66.90, "quantity" : 5.980, "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" ] } } [22:15:41]POST & json_proto [22:15:41]process_json_proto [22:15:41]json parsed OK: [22:15:41]protocol is kg_v1.0 [22:15:41]action value=close_receipt [22:15:41]process_action close_receipt [22:15:41]cmd_close_receipt [22:15:41]MH_GetDate [22:15:41]Write to MH i2c: F0 00 00 7F 07 75 [22:15:41]Write i2c OK [22:15:41]MH_I2C_Read... [22:15:41]Read from MH i2c: F0 [22:15:41]MH_I2C_Read... [22:15:41]Read from MH i2c: F0 09 00 [22:15:41]MH_I2C_Read... [22:15:41]Read from MH i2c: F0 09 00 7F 07 00 0E 24 18 67 82 C9 CF 66 AF [22:15:41]GetLastDocTimeStamp 1729635240 [22:15:41]current date 1729635342 [22:15:41]FM_GetShiftState [22:15:41]SAM_PROTO_GetShiftState [22:15:41]wFMCommunicate request_size=4 [22:15:41]MH_SAM_APDU [22:15:41]CAPDU: 80 13 01 00 [22:15:41]Write to MH i2c: E2 08 00 80 07 80 13 01 00 00 00 00 00 04 [22:15:41]Write i2c OK [22:15:41]MH_I2C_Read... [22:15:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:41]Read from MH i2c: E2 [22:15:41]MH_I2C_Read... [22:15:41]Read from MH i2c: E2 0E 00 [22:15:41]MH_I2C_Read... [22:15:41]Read from MH i2c: E2 0E 00 80 07 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 CB [22:15:41]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [22:15:41]wFMCommunicate OK [22:15:41]SAM_PROTO_GetShiftState done [22:15:41]FM_GetShiftState done [22:15:41]opened in 1729555538 [22:15:41]opened+sec_in_day 1729641938 [22:15:41]quantity*price = 40006 [22:15:41]sum+1 = 40007 [22:15:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 412 22.10.2024 22:15 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228448 ФПД: 235900689658506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T221542&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228448&fm=235900689658506&tin=02508201610067®Number=0000000000091685&sum=40000 [22:15:42]StoreToDocumentArchive [22:15:42]shift 535 fd 228448 [22:15:42]save to /storage/0535/doc_00228448 [22:15:42]save last doc name /storage/0535/doc_00228448 to /storage/kkm_last_doc_name [22:15:42]save OK [22:15:42]Clear old archive folders... [22:15:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:15:42]tlvbuf is 00319A80 [22:15:42]SAM_PROTO_ClearQueue [22:15:42]wFMCommunicate request_size=4 [22:15:42]MH_SAM_APDU [22:15:42]CAPDU: 80 09 00 00 [22:15:42]Write to MH i2c: E2 08 00 8D 07 80 09 00 00 00 00 00 00 06 [22:15:42]Write i2c OK [22:15:42]MH_I2C_Read... [22:15:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:15:42]Read from MH i2c: E2 [22:15:42]MH_I2C_Read... [22:15:42]Read from MH i2c: E2 03 00 [22:15:42]MH_I2C_Read... [22:15:42]Read from MH i2c: E2 03 00 8D 07 00 90 00 08 [22:15:42]RAPDU: 90 00 [22:15:42]wFMCommunicate OK [22:15:42]SAM_PROTO_ClearQueue done [22:15:42]KKMCreateOFDPacket [22:15:42]OFDProtocolAddRootSTLVToBuf [22:15:42]FM_MakeSignedData [22:15:42]FM_MakeSignedData [22:15:42]SAM_PROTO_SignData [22:15:42]wFMCommunicate request_size=4 [22:15:42]MH_SAM_APDU [22:15:42]CAPDU: 80 0D 01 02 [22:15:42]Write to MH i2c: E2 08 00 8E 07 80 0D 01 02 00 00 00 00 0E [22:15:42]Write i2c OK [22:15:42]MH_I2C_Read... [22:15:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:15:42]Read from MH i2c: E2 [22:15:42]MH_I2C_Read... [22:15:42]Read from MH i2c: E2 03 00 [22:15:42]MH_I2C_Read... [22:15:42]Read from MH i2c: E2 03 00 8E 07 00 90 00 09 [22:15:42]RAPDU: 90 00 [22:15:42]wFMCommunicate OK [22:15:42]wFMCommunicate request_size=255 [22:15:42]MH_SAM_APDU [22:15: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 9C 01 00 00 F4 03 04 00 0E 24 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 60 7C 03 00 35 04 06 00 D6 [22:15:42]Write to MH i2c: E2 02 01 8F 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 9C 01 00 00 F4 03 04 00 0E 24 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 60 7C 03 00 35 04 06 00 D6 00 00 90 [22:15:42]Write i2c OK [22:15:42]MH_I2C_Read... [22:15:42]OFD Sender: No OFD packet to send [22:15:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:43]Read from MH i2c: E2 [22:15:43]MH_I2C_Read... [22:15:43]Read from MH i2c: E2 03 00 [22:15:43]MH_I2C_Read... [22:15:43]Read from MH i2c: E2 03 00 8F 07 00 90 00 0A [22:15:43]RAPDU: 90 00 [22:15:43]wFMCommunicate OK [22:15:43]wFMCommunicate request_size=10 [22:15:43]MH_SAM_APDU [22:15:43]CAPDU: 80 0D 02 02 05 8C E8 CF 32 8A [22:15:43]Write to MH i2c: E2 0D 00 90 07 80 0D 02 02 05 00 8C E8 CF 32 8A 00 00 1A [22:15:43]Write i2c OK [22:15:43]MH_I2C_Read... [22:15:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:43]Read from MH i2c: E2 [22:15:43]MH_I2C_Read... [22:15:43]Read from MH i2c: E2 03 00 [22:15:43]MH_I2C_Read... [22:15:43]Read from MH i2c: E2 03 00 90 07 00 90 00 0B [22:15:43]RAPDU: 90 00 [22:15:43]wFMCommunicate OK [22:15:43]wFMCommunicate request_size=4 [22:15:43]MH_SAM_APDU [22:15:43]CAPDU: 80 0D 03 02 [22:15:43]Write to MH i2c: E2 08 00 91 07 80 0D 03 02 00 00 00 00 13 [22:15:43]Write i2c OK [22:15:43]MH_I2C_Read... [22:15:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:15:43]Read from MH i2c: E2 [22:15:43]MH_I2C_Read... [22:15:43]Read from MH i2c: E2 0B 00 [22:15:43]MH_I2C_Read... [22:15:43]Read from MH i2c: E2 0B 00 91 07 00 53 20 BF 57 3C 31 06 96 90 00 A6 [22:15:43]RAPDU: 53 20 BF 57 3C 31 06 96 90 00 [22:15:43]wFMCommunicate OK [22:15:43]SAM_PROTO_SignData done [22:15:43]FM_MakeSignedData done [22:15:43]CreateOFDProtocolMessage [22:15:43]wFMCommunicate request_size=4 [22:15:43]MH_SAM_APDU [22:15:43]CAPDU: 80 11 00 00 [22:15:43]Write to MH i2c: E2 08 00 92 07 80 11 00 00 00 00 00 00 13 [22:15:43]Write i2c OK [22:15:43]MH_I2C_Read... [22:15:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:43]Read from MH i2c: E2 [22:15:43]MH_I2C_Read... [22:15:43]Read from MH i2c: E2 17 00 [22:15:43]MH_I2C_Read... [22:15:43]Read from MH i2c: E2 17 00 92 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6A [22:15:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:15:43]wFMCommunicate OK [22:15:43]CreateOFDProtocolMessage done [22:15:43]OFDSenderStorePacket 228448 [22:15:43]StoreOFDPacket docnum=228448 [22:15:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 1E E8 07 01 D5 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 9C 01 00 00 F4 03 04 00 0E 24 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 60 7C 03 00 35 04 06 00 D6 8C E8 CF 32 8A 53 20 BF 57 3C 31 06 96 [22:15:43]CheckFolder [22:15:43]dirname=/storage/ofd_packets [22:15:43]CheckFolder done [22:15:43]ProducePacketName [22:15:43]name=ofd_packets/00228448 [22:15:43]NVStorageSaveData ofd_packets/00228448 [22:15:43]File name is /storage/ofd_packets/00228448 [22:15:43]Write 301 bytes [22:15:43]NVStorageSaveData done [22:15:43]OFDSenderStorePacket done [22:15:43]KKMCreateOFDPacket done [22:15:43]NVStorageSaveData kkm_last_timestamp [22:15:43]File name is /storage/kkm_last_timestamp [22:15:43]Write 4 bytes [22:15:43]NVStorageSaveData done [22:15:43]OFD Sender: Processing packet 228448 [packets to send 38, broken 37] [22:15:43]ProducePacketName [22:15:43]name=ofd_packets/00228448 [22:15:43]OFD Sender: To server: pG, [22:15:43]CommunicateWithHost lk.salyk.kg:30040 [22:15:43]ConnectInit lk.salyk.kg [22:15:43]ExternCall_PrintAddStr [22:15:43]wPrintStart [22:15:43]Write to MH i2c: 01 00 00 93 07 9A [22:15:43]Write i2c OK [22:15:43]MH_I2C_Read... [22:15:43]Read from MH i2c: 01 [22:15:43]MH_I2C_Read... [22:15:43]Read from MH i2c: 01 07 00 [22:15:43]MH_I2C_Read... [22:15:43]Read from MH i2c: 01 07 00 93 07 00 00 00 00 00 FF 0F AF [22:15:43]RasterBufferAndPrint [22:15:43]line Счет N : (1)1965094 [22:15:43]line ИНН: 02508201610067 [22:15:43]line Контрольно-Кассовый Чек [22:15:43]line ПРОДАЖА [22:15:43]line ТРК (МРК, ГНК) : 53 [22:15:43]line Товар: 2710124130 [22:15:43]line Аи-92-К-5 [22:15:43]line 5.980 * 66.90 [22:15:43]line = 400.06 [22:15:43]line НДС 12% НСП 1% [22:15:43]line > о реализуемом товаре [22:15:43]line ОКРУГЛЕНИЕ: -0.06 [22:15:43]line ИТОГО: 400.00 [22:15:43]line Внесено: 400.00 [22:15:43]line СДАЧА: 0.00 [22:15:43]line НСП 1% : 3.54 [22:15:43]line НДС 12% : 42.48 [22:15:43]line Наличными: 400.00 [22:15:43]line Безнал.: 0.00 [22:15:43]line Место: АЗС № 133 "Партнер Нефть" [22:15:43]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [22:15:43]line СНО: Общий режим [22:15:43]line Чек 412 22.10.2024 22:15 [22:15:43]line Смена: 535 ФФД: 1.0 [22:15:43]line ЗНМ: 0300000091 [22:15:43]line РНМ: 0000000000091685 [22:15:43]line Версия ККМ: 001 [22:15:43]line ФМ: 0000000000871839 [22:15:43]line ФД: 228448 [22:15:43]line ФПД: 235900689658506 [22:15:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T221542&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228448&fm=235900689658506&tin=02508201610067®Number=0000000000091685&sum=40000 [22:15:43]Connected sock=11 [22:15:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 1E E8 07 01 D5 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 9C 01 00 00 F4 03 04 00 0E 24 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 60 7C 03 00 35 04 06 00 D6 8C E8 CF 32 8A 53 20 BF 57 3C 31 06 96 [22:15:43]written 0, free lines is 4095 [22:15:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 82 30 47 00 AA A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 60 7C 03 00 F4 03 04 00 05 CF 17 67 B6 04 01 00 00 DC 7B FB 3C 57 24 0C 2A [22:15:43]CommunicateWithHost err = 0 [22:15:43]CheckOFDResponse [22:15:43]1017 (14) - 77093643461234 [22:15:43]1041 (16) - 0000000000871839 [22:15:43]1040 (4) - 228448 [22:15:43]1012 (4) - 22.10.2024 16:12 [22:15:43]1206 (1) - 0 [22:15:43]OFD Sender: Remove packet 228448 [22:15:43]ProducePacketName [22:15:43]name=ofd_packets/00228448 [22:15:43]NVStorageDeleteData [22:15:44]Write to MH i2c: 01 00 00 BD 07 C4 [22:15:44]Write i2c OK [22:15:44]MH_I2C_Read... [22:15:44]Read from MH i2c: 01 [22:15:44]MH_I2C_Read... [22:15:44]Read from MH i2c: 01 07 00 [22:15:44]MH_I2C_Read... [22:15:44]Read from MH i2c: 01 07 00 BD 07 00 00 00 00 00 B0 0C 87 [22:15:44]RasterBufferAndPrint [22:15:44]line [22:15:44]line [22:15:44]line [22:15:44]line [22:15:44]line [22:15:44]written 0, free lines is 3253 [22:15:44]MH_Cut [22:15:44]Write to MH i2c: D1 01 00 C4 07 01 9D [22:15:44]Write i2c OK [22:15:44]MH_I2C_Read... [22:15:44]Read from MH i2c: D1 [22:15:44]MH_I2C_Read... [22:15:44]Read from MH i2c: D1 01 00 [22:15:44]MH_I2C_Read... [22:15:44]Read from MH i2c: D1 01 00 C4 07 00 9C [22:15:44]Write to MH i2c: 01 00 00 C5 07 CC [22:15:44]Write i2c OK [22:15:44]MH_I2C_Read... [22:15:44]OFD Sender: No OFD packet to send [22:15:44]*** Cut start [22:15:44]*** Partial cut [22:15:44]*** CUTSNS_PIN = 1 [22:15:45]*** CUTSNS_PIN = 0 [22:15:45]*** Brake cut motor [22:15:45]Read from MH i2c: 01 [22:15:45]MH_I2C_Read... [22:15:45]*** Stop cut motor [22:15:45]*** Cut end [22:15:45]Read from MH i2c: 01 07 00 [22:15:45]MH_I2C_Read... [22:15:45]Read from MH i2c: 01 07 00 C5 07 00 00 00 00 00 FF 0F E1 [22:15:45]process_action close_receipt done [22:15:45]requested_data is exist [22:15:45]produce_requested_data [22:15:45]requested_item fm.sn is exist - process it [22:15:45]wFMCommunicate request_size=4 [22:15:45]MH_SAM_APDU [22:15:45]CAPDU: 80 11 00 00 [22:15:45]Write to MH i2c: E2 08 00 C6 07 80 11 00 00 00 00 00 00 47 [22:15:45]Write i2c OK [22:15:45]MH_I2C_Read... [22:15:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:45]Read from MH i2c: E2 [22:15:45]MH_I2C_Read... [22:15:45]Read from MH i2c: E2 17 00 [22:15:45]MH_I2C_Read... [22:15:45]Read from MH i2c: E2 17 00 C6 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9E [22:15:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:15:45]wFMCommunicate OK [22:15:45]requested_item fd.num is exist - process it [22:15:45]SAM_PROTO_GetFieldsCounters [22:15:45]wFMCommunicate request_size=4 [22:15:45]MH_SAM_APDU [22:15:45]CAPDU: 80 13 00 00 [22:15:45]Write to MH i2c: E2 08 00 C7 07 80 13 00 00 00 00 00 00 4A [22:15:45]Write i2c OK [22:15:45]MH_I2C_Read... [22:15:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:15:45]Read from MH i2c: E2 [22:15:45]MH_I2C_Read... [22:15:45]Read from MH i2c: E2 62 00 [22:15:45]MH_I2C_Read... [22:15:45]Read from MH i2c: E2 62 00 C7 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 60 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 9C 01 00 00 5E 04 04 00 9C 01 00 00 57 04 04 00 9D 01 00 00 19 04 04 00 00 00 00 00 90 00 42 [22:15:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 60 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 9C 01 00 00 5E 04 04 00 9C 01 00 00 57 04 04 00 9D 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:15:45]wFMCommunicate OK [22:15:45]SAM_PROTO_GetFieldsCounters done [22:15:45]requested_item shift.num is exist - process it [22:15:45]requested_item shift.opened is exist - process it [22:15:45]req_shift_opened [22:15:45]FM_GetShiftState [22:15:45]SAM_PROTO_GetShiftState [22:15:45]wFMCommunicate request_size=4 [22:15:45]MH_SAM_APDU [22:15:45]CAPDU: 80 13 01 00 [22:15:45]Write to MH i2c: E2 08 00 C8 07 80 13 01 00 00 00 00 00 4C [22:15:45]Write i2c OK [22:15:45]MH_I2C_Read... [22:15:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:45]Read from MH i2c: E2 [22:15:45]MH_I2C_Read... [22:15:45]Read from MH i2c: E2 0E 00 [22:15:45]MH_I2C_Read... [22:15:45]Read from MH i2c: E2 0E 00 C8 07 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 13 [22:15:45]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [22:15:45]wFMCommunicate OK [22:15:45]SAM_PROTO_GetShiftState done [22:15:45]FM_GetShiftState done [22:15:45]req_shift_opened done [22:15:45]requested_item shift.open_date is exist - process it [22:15:45]req_shift_open_date [22:15:45]req_shift_open_date done [22:15:45]produce_requested_data done [22:15:45]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228448,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [22:15:45]process_action_free close_receipt [22:15:45]json_value_free [22:15:45]json_value_free done [22:15:45]process_json_proto returns [22:15:45]Send response to host [22:15:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228448,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [22:15:45]free response buf [22:15:45]execute_script done [22:15:45]execute_script returns [22:15:45]free content buf [22:15:45]Sock 7.Close socket [22:15:45]Sock 7.Thread stoped [22:15:49]OFD Sender: No OFD packet to send [22:15:54]OFD Sender: No OFD packet to send [22:15:59]OFD Sender: No OFD packet to send [22:16:04]OFD Sender: No OFD packet to send [22:16:09]OFD Sender: No OFD packet to send [22:16:14]OFD Sender: No OFD packet to send [22:16:19]OFD Sender: No OFD packet to send [22:16:24]OFD Sender: No OFD packet to send [22:16:29]OFD Sender: No OFD packet to send [22:16:34]OFD Sender: No OFD packet to send [22:16:39]OFD Sender: No OFD packet to send [22:16:44]OFD Sender: No OFD packet to send [22:16:49]OFD Sender: No OFD packet to send [22:16:54]OFD Sender: No OFD packet to send [22:16:59]OFD Sender: No OFD packet to send [22:17:04]OFD Sender: No OFD packet to send [22:17:09]OFD Sender: No OFD packet to send [22:17:14]OFD Sender: No OFD packet to send [22:17:19]OFD Sender: No OFD packet to send [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:45]accept exits with 9 [22:17:45]New connection [22:17:45]New thread 3066977636 created [22:17:45]Thread 3066834276 joined [22:17:45]Waiting for new connection... [22:17:45] Sock 9.Parse request [22:17:45]Sock 9.Check first char [22:17:45]Sock 9.First char is OK [22:17:45]request: POST /json_proto HTTP/1.0 [22:17:45]Method: POST [22:17:45]URL: /json_proto [22:17:45]Method is POST - this is cgi request [22:17:45]url: /json_proto [22:17:45]query_string will be loaded in cgi processing [22:17:45]execute_cgi json_proto POST (null) [22:17:45]execute_cgi path=json_proto method=POST [22:17:45]POST find Content-Length [22:17:45]Host: 172.17.44.195:8080 [22:17:45]Content-Length: 799 [22:17:45]Content-Type: application/json [22:17:45] [22:17:45]POST finish read [22:17:45]Found Content-Length = 799 [22:17:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965093", "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" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4922372", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:17:45]execute_script... [22:17: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)1965093", "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" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4922372", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:17:45]POST & json_proto [22:17:45]process_json_proto [22:17:45]json parsed OK: [22:17:45]protocol is kg_v1.0 [22:17:45]action value=close_receipt [22:17:45]process_action close_receipt [22:17:45]cmd_close_receipt [22:17:45]MH_GetDate [22:17:45]Write to MH i2c: F0 00 00 C9 07 BF [22:17:45]Write i2c OK [22:17:45]MH_I2C_Read... [22:17:45]Read from MH i2c: F0 [22:17:45]MH_I2C_Read... [22:17:45]Read from MH i2c: F0 09 00 [22:17:45]MH_I2C_Read... [22:17:45]Read from MH i2c: F0 09 00 C9 07 00 8A 24 18 67 82 C9 CF 66 75 [22:17:45]GetLastDocTimeStamp 1729635342 [22:17:45]current date 1729635466 [22:17:45]FM_GetShiftState [22:17:45]SAM_PROTO_GetShiftState [22:17:45]wFMCommunicate request_size=4 [22:17:45]MH_SAM_APDU [22:17:45]CAPDU: 80 13 01 00 [22:17:45]Write to MH i2c: E2 08 00 CA 07 80 13 01 00 00 00 00 00 4E [22:17:45]Write i2c OK [22:17:45]MH_I2C_Read... [22:17:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:45]Read from MH i2c: E2 [22:17:45]MH_I2C_Read... [22:17:45]Read from MH i2c: E2 0E 00 [22:17:45]MH_I2C_Read... [22:17:45]Read from MH i2c: E2 0E 00 CA 07 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 15 [22:17:45]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [22:17:45]wFMCommunicate OK [22:17:45]SAM_PROTO_GetShiftState done [22:17:45]FM_GetShiftState done [22:17:45]opened in 1729555538 [22:17:45]opened+sec_in_day 1729641938 [22:17:45]quantity*price = 0 [22:17:45]sum+1 = 1 [22:17:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 413 22.10.2024 22:17 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливные Талоны 4922372 ФМ: 0000000000871839 ФД: 228449 ФПД: 14417493575982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T221746&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228449&fm=14417493575982&tin=02508201610067®Number=0000000000091685&sum=0 [22:17:46]StoreToDocumentArchive [22:17:46]shift 535 fd 228449 [22:17:46]save to /storage/0535/doc_00228449 [22:17:46]save last doc name /storage/0535/doc_00228449 to /storage/kkm_last_doc_name [22:17:46]save OK [22:17:46]Clear old archive folders... [22:17:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:17:46]tlvbuf is 002E8D30 [22:17:46]SAM_PROTO_ClearQueue [22:17:46]wFMCommunicate request_size=4 [22:17:46]MH_SAM_APDU [22:17:46]CAPDU: 80 09 00 00 [22:17:46]Write to MH i2c: E2 08 00 D7 07 80 09 00 00 00 00 00 00 50 [22:17:46]Write i2c OK [22:17:46]MH_I2C_Read... [22:17:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:17:46]Read from MH i2c: E2 [22:17:46]MH_I2C_Read... [22:17:46]Read from MH i2c: E2 03 00 [22:17:46]MH_I2C_Read... [22:17:46]Read from MH i2c: E2 03 00 D7 07 00 90 00 52 [22:17:46]RAPDU: 90 00 [22:17:46]wFMCommunicate OK [22:17:46]SAM_PROTO_ClearQueue done [22:17:46]KKMCreateOFDPacket [22:17:46]OFDProtocolAddRootSTLVToBuf [22:17:46]FM_MakeSignedData [22:17:46]FM_MakeSignedData [22:17:46]SAM_PROTO_SignData [22:17:46]wFMCommunicate request_size=4 [22:17:46]MH_SAM_APDU [22:17:46]CAPDU: 80 0D 01 02 [22:17:46]Write to MH i2c: E2 08 00 D8 07 80 0D 01 02 00 00 00 00 58 [22:17:46]Write i2c OK [22:17:46]MH_I2C_Read... [22:17:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:17:46]Read from MH i2c: E2 [22:17:46]MH_I2C_Read... [22:17:46]Read from MH i2c: E2 03 00 [22:17:46]MH_I2C_Read... [22:17:46]Read from MH i2c: E2 03 00 D8 07 00 90 00 53 [22:17:46]RAPDU: 90 00 [22:17:46]wFMCommunicate OK [22:17:46]wFMCommunicate request_size=255 [22:17:46]MH_SAM_APDU [22:17: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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 01 00 00 F4 03 04 00 8A 24 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 61 7C 03 00 35 04 06 00 0D 1C D5 95 [22:17:46]Write to MH i2c: E2 02 01 D9 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 01 00 00 F4 03 04 00 8A 24 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 61 7C 03 00 35 04 06 00 0D 1C D5 95 00 00 3B [22:17:46]Write i2c OK [22:17:46]MH_I2C_Read... [22:17:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:17:46]Read from MH i2c: E2 [22:17:46]MH_I2C_Read... [22:17:46]Read from MH i2c: E2 03 00 [22:17:46]MH_I2C_Read... [22:17:46]Read from MH i2c: E2 03 00 D9 07 00 90 00 54 [22:17:46]RAPDU: 90 00 [22:17:46]wFMCommunicate OK [22:17:46]wFMCommunicate request_size=7 [22:17:46]MH_SAM_APDU [22:17:46]CAPDU: 80 0D 02 02 02 49 2E [22:17:46]Write to MH i2c: E2 0A 00 DA 07 80 0D 02 02 02 00 49 2E 00 00 D6 [22:17:46]Write i2c OK [22:17:46]MH_I2C_Read... [22:17:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:17:47]Read from MH i2c: E2 [22:17:47]MH_I2C_Read... [22:17:47]Read from MH i2c: E2 03 00 [22:17:47]MH_I2C_Read... [22:17:47]Read from MH i2c: E2 03 00 DA 07 00 90 00 55 [22:17:47]RAPDU: 90 00 [22:17:47]wFMCommunicate OK [22:17:47]wFMCommunicate request_size=4 [22:17:47]MH_SAM_APDU [22:17:47]CAPDU: 80 0D 03 02 [22:17:47]Write to MH i2c: E2 08 00 DB 07 80 0D 03 02 00 00 00 00 5D [22:17:47]Write i2c OK [22:17:47]MH_I2C_Read... [22:17:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:17:47]Read from MH i2c: E2 [22:17:47]MH_I2C_Read... [22:17:47]Read from MH i2c: E2 0B 00 [22:17:47]MH_I2C_Read... [22:17:47]Read from MH i2c: E2 0B 00 DB 07 00 14 15 73 31 43 36 CF 50 90 00 C3 [22:17:47]RAPDU: 14 15 73 31 43 36 CF 50 90 00 [22:17:47]wFMCommunicate OK [22:17:47]SAM_PROTO_SignData done [22:17:47]FM_MakeSignedData done [22:17:47]CreateOFDProtocolMessage [22:17:47]wFMCommunicate request_size=4 [22:17:47]MH_SAM_APDU [22:17:47]CAPDU: 80 11 00 00 [22:17:47]Write to MH i2c: E2 08 00 DC 07 80 11 00 00 00 00 00 00 5D [22:17:47]Write i2c OK [22:17:47]MH_I2C_Read... [22:17:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:47]Read from MH i2c: E2 [22:17:47]MH_I2C_Read... [22:17:47]Read from MH i2c: E2 17 00 [22:17:47]MH_I2C_Read... [22:17:47]Read from MH i2c: E2 17 00 DC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B4 [22:17:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:17:47]wFMCommunicate OK [22:17:47]CreateOFDProtocolMessage done [22:17:47]OFDSenderStorePacket 228449 [22:17:47]StoreOFDPacket docnum=228449 [22:17:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 C2 85 04 01 D6 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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 01 00 00 F4 03 04 00 8A 24 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 61 7C 03 00 35 04 06 00 0D 1C D5 95 49 2E 14 15 73 31 43 36 CF 50 [22:17:47]CheckFolder [22:17:47]dirname=/storage/ofd_packets [22:17:47]CheckFolder done [22:17:47]ProducePacketName [22:17:47]name=ofd_packets/00228449 [22:17:47]NVStorageSaveData ofd_packets/00228449 [22:17:47]File name is /storage/ofd_packets/00228449 [22:17:47]Write 298 bytes [22:17:47]NVStorageSaveData done [22:17:47]OFDSenderStorePacket done [22:17:47]KKMCreateOFDPacket done [22:17:47]NVStorageSaveData kkm_last_timestamp [22:17:47]File name is /storage/kkm_last_timestamp [22:17:47]Write 4 bytes [22:17:47]NVStorageSaveData done [22:17:47]ExternCall_PrintAddStr [22:17:47]wPrintStart [22:17:47]Write to MH i2c: 01 00 00 DD 07 E4 [22:17:47]Write i2c OK [22:17:47]MH_I2C_Read... [22:17:47]Read from MH i2c: 01 [22:17:47]MH_I2C_Read... [22:17:47]Read from MH i2c: 01 07 00 [22:17:47]MH_I2C_Read... [22:17:47]Read from MH i2c: 01 07 00 DD 07 00 00 00 00 00 FF 0F F9 [22:17:47]RasterBufferAndPrint [22:17:47]line Счет N : (1)1965093 [22:17:47]line ИНН: 02508201610067 [22:17:47]line Контрольно-Кассовый Чек [22:17:47]line ПРОДАЖА [22:17:47]line ТРК (МРК, ГНК) : 21 [22:17:47]line Товар: 2710194210 [22:17:47]line ДТ-К-5 [22:17:47]line 100.000 * 0.00 [22:17:47]line = 0.00 [22:17:47]line НДС 12% НСП 1% [22:17:47]line > о реализуемом товаре [22:17:47]line ИТОГО: 0.00 [22:17:47]line НСП 1% : 0.00 [22:17:47]line НДС 12% : 0.00 [22:17:47]line Наличными: 0.00 [22:17:47]line Безнал.: 0.00 [22:17:47]line Место: АЗС № 133 "Партнер Нефть" [22:17:47]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [22:17:47]line СНО: Общий режим [22:17:47]line Чек 413 22.10.2024 22:17 [22:17:47]line Смена: 535 ФФД: 1.0 [22:17:47]line ЗНМ: 0300000091 [22:17:47]line РНМ: 0000000000091685 [22:17:47]line Версия ККМ: 001 [22:17:47]line Талоны: Топливные Талоны [22:17:47]line 4922372 [22:17:47]line ФМ: 0000000000871839 [22:17:47]line ФД: 228449 [22:17:47]line ФПД: 14417493575982 [22:17:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T221746&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228449&fm=14417493575982&tin=02508201610067®Number=0000000000091685&sum=0 [22:17:47]OFD Sender: Processing packet 228449 [packets to send 38, broken 37] [22:17:47]ProducePacketName [22:17:47]name=ofd_packets/00228449 [22:17:47]OFD Sender: To server: pG, [22:17:47]CommunicateWithHost lk.salyk.kg:30040 [22:17:47]ConnectInit lk.salyk.kg [22:17:47]written 0, free lines is 4095 [22:17:47]Connected sock=10 [22:17:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 C2 85 04 01 D6 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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 01 00 00 F4 03 04 00 8A 24 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 61 7C 03 00 35 04 06 00 0D 1C D5 95 49 2E 14 15 73 31 43 36 CF 50 [22:17:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 23 8A 47 00 D5 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 61 7C 03 00 F4 03 04 00 81 CF 17 67 B6 04 01 00 00 BE 01 98 D9 03 25 F9 D2 [22:17:47]CommunicateWithHost err = 0 [22:17:47]CheckOFDResponse [22:17:47]1017 (14) - 77093643461234 [22:17:47]1041 (16) - 0000000000871839 [22:17:47]1040 (4) - 228449 [22:17:47]1012 (4) - 22.10.2024 16:14 [22:17:47]1206 (1) - 0 [22:17:47]OFD Sender: Remove packet 228449 [22:17:47]ProducePacketName [22:17:47]name=ofd_packets/00228449 [22:17:47]NVStorageDeleteData [22:17:47]Write to MH i2c: 01 00 00 06 08 0E [22:17:47]Write i2c OK [22:17:47]MH_I2C_Read... [22:17:47]Read from MH i2c: 01 [22:17:47]MH_I2C_Read... [22:17:47]Read from MH i2c: 01 07 00 [22:17:47]MH_I2C_Read... [22:17:47]Read from MH i2c: 01 07 00 06 08 00 00 00 00 00 C5 0C E6 [22:17:47]RasterBufferAndPrint [22:17:47]line [22:17:47]line [22:17:47]line [22:17:47]line [22:17:47]line [22:17:47]written 0, free lines is 3273 [22:17:47]MH_Cut [22:17:47]Write to MH i2c: D1 01 00 0D 08 01 E7 [22:17:47]Write i2c OK [22:17:47]MH_I2C_Read... [22:17:47]Read from MH i2c: D1 [22:17:47]MH_I2C_Read... [22:17:47]Read from MH i2c: D1 01 00 [22:17:47]MH_I2C_Read... [22:17:47]Read from MH i2c: D1 01 00 0D 08 00 E6 [22:17:47]Write to MH i2c: 01 00 00 0E 08 16 [22:17:47]Write i2c OK [22:17:47]MH_I2C_Read... [22:17:48]OFD Sender: No OFD packet to send [22:17:48]*** Cut start [22:17:48]*** Partial cut [22:17:48]*** CUTSNS_PIN = 1 [22:17:48]*** CUTSNS_PIN = 0 [22:17:49]*** Brake cut motor [22:17:49]Read from MH i2c: 01 [22:17:49]MH_I2C_Read... [22:17:49]*** Stop cut motor [22:17:49]*** Cut end [22:17:49]Read from MH i2c: 01 07 00 [22:17:49]MH_I2C_Read... [22:17:49]Read from MH i2c: 01 07 00 0E 08 00 00 00 00 00 FF 0F 2B [22:17:49]process_action close_receipt done [22:17:49]requested_data is exist [22:17:49]produce_requested_data [22:17:49]requested_item fm.sn is exist - process it [22:17:49]wFMCommunicate request_size=4 [22:17:49]MH_SAM_APDU [22:17:49]CAPDU: 80 11 00 00 [22:17:49]Write to MH i2c: E2 08 00 0F 08 80 11 00 00 00 00 00 00 91 [22:17:49]Write i2c OK [22:17:49]MH_I2C_Read... [22:17:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:49]Read from MH i2c: E2 [22:17:49]MH_I2C_Read... [22:17:49]Read from MH i2c: E2 17 00 [22:17:49]MH_I2C_Read... [22:17:49]Read from MH i2c: E2 17 00 0F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E8 [22:17:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:17:49]wFMCommunicate OK [22:17:49]requested_item fd.num is exist - process it [22:17:49]SAM_PROTO_GetFieldsCounters [22:17:49]wFMCommunicate request_size=4 [22:17:49]MH_SAM_APDU [22:17:49]CAPDU: 80 13 00 00 [22:17:49]Write to MH i2c: E2 08 00 10 08 80 13 00 00 00 00 00 00 94 [22:17:49]Write i2c OK [22:17:49]MH_I2C_Read... [22:17:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:17:49]Read from MH i2c: E2 [22:17:49]MH_I2C_Read... [22:17:49]Read from MH i2c: E2 62 00 [22:17:49]MH_I2C_Read... [22:17:49]Read from MH i2c: E2 62 00 10 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 61 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 9D 01 00 00 5E 04 04 00 9D 01 00 00 57 04 04 00 9E 01 00 00 19 04 04 00 00 00 00 00 90 00 90 [22:17:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 61 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 9D 01 00 00 5E 04 04 00 9D 01 00 00 57 04 04 00 9E 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:17:49]wFMCommunicate OK [22:17:49]SAM_PROTO_GetFieldsCounters done [22:17:49]requested_item shift.num is exist - process it [22:17:49]requested_item shift.opened is exist - process it [22:17:49]req_shift_opened [22:17:49]FM_GetShiftState [22:17:49]SAM_PROTO_GetShiftState [22:17:49]wFMCommunicate request_size=4 [22:17:49]MH_SAM_APDU [22:17:49]CAPDU: 80 13 01 00 [22:17:49]Write to MH i2c: E2 08 00 11 08 80 13 01 00 00 00 00 00 96 [22:17:49]Write i2c OK [22:17:49]MH_I2C_Read... [22:17:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:49]Read from MH i2c: E2 [22:17:49]MH_I2C_Read... [22:17:49]Read from MH i2c: E2 0E 00 [22:17:49]MH_I2C_Read... [22:17:49]Read from MH i2c: E2 0E 00 11 08 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 5D [22:17:49]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [22:17:49]wFMCommunicate OK [22:17:49]SAM_PROTO_GetShiftState done [22:17:49]FM_GetShiftState done [22:17:49]req_shift_opened done [22:17:49]requested_item shift.open_date is exist - process it [22:17:49]req_shift_open_date [22:17:49]req_shift_open_date done [22:17:49]produce_requested_data done [22:17:49]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228449,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [22:17:49]process_action_free close_receipt [22:17:49]json_value_free [22:17:49]json_value_free done [22:17:49]process_json_proto returns [22:17:49]Send response to host [22:17:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228449,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [22:17:49]free response buf [22:17:49]execute_script done [22:17:49]execute_script returns [22:17:49]free content buf [22:17:49]Sock 9.Close socket [22:17:49]Sock 9.Thread stoped [22:17:53]OFD Sender: No OFD packet to send [22:17:58]OFD Sender: No OFD packet to send [22:18:03]OFD Sender: No OFD packet to send [22:18:08]OFD Sender: No OFD packet to send [22:18:13]OFD Sender: No OFD packet to send [22:18:18]OFD Sender: No OFD packet to send [22:18:23]OFD Sender: No OFD packet to send [22:18:28]OFD Sender: No OFD packet to send [22:18:33]OFD Sender: No OFD packet to send [22:18:38]OFD Sender: No OFD packet to send [22:18:43]OFD Sender: No OFD packet to send [22:18:48]OFD Sender: No OFD packet to send [22:18:53]OFD Sender: No OFD packet to send [22:18:58]OFD Sender: No OFD packet to send [22:19:03]OFD Sender: No OFD packet to send [22:19:08]OFD Sender: No OFD packet to send [22:19:13]OFD Sender: No OFD packet to send [22:19:18]OFD Sender: No OFD packet to send [22:19:23]OFD Sender: No OFD packet to send [22:19:28]OFD Sender: No OFD packet to send [22:19:33]OFD Sender: No OFD packet to send [22:19:38]OFD Sender: No OFD packet to send [22:19:43]OFD Sender: No OFD packet to send [22:19:48]OFD Sender: No OFD packet to send [22:19:53]OFD Sender: No OFD packet to send [22:19:58]OFD Sender: No OFD packet to send [22:20:03]OFD Sender: No OFD packet to send [22:20:08]OFD Sender: No OFD packet to send [22:20:13]OFD Sender: No OFD packet to send [22:20:18]OFD Sender: No OFD packet to send [22:20:23]OFD Sender: No OFD packet to send [22:20:28]OFD Sender: No OFD packet to send [22:20:33]OFD Sender: No OFD packet to send [22:20:38]OFD Sender: No OFD packet to send [22:20:43]OFD Sender: No OFD packet to send [22:20:48]OFD Sender: No OFD packet to send [22:20:53]OFD Sender: No OFD packet to send [22:20:58]OFD Sender: No OFD packet to send [22:21:03]OFD Sender: No OFD packet to send [22:21:08]OFD Sender: No OFD packet to send [22:21:13]OFD Sender: No OFD packet to send [22:21:18]OFD Sender: No OFD packet to send [22:21:18]accept exits with 7 [22:21:18]New connection [22:21:18]New thread 3066834276 created [22:21:18]Thread 3066977636 joined [22:21:18]Waiting for new connection... [22:21:18] Sock 7.Parse request [22:21:18]Sock 7.Check first char [22:21:18]Sock 7.First char is OK [22:21:18]request: POST /json_proto HTTP/1.0 [22:21:18]Method: POST [22:21:18]URL: /json_proto [22:21:18]Method is POST - this is cgi request [22:21:18]url: /json_proto [22:21:18]query_string will be loaded in cgi processing [22:21:18]execute_cgi json_proto POST (null) [22:21:18]execute_cgi path=json_proto method=POST [22:21:18]POST find Content-Length [22:21:18]Host: 172.17.44.195:8080 [22:21:18]Content-Length: 799 [22:21:18]Content-Type: application/json [22:21:18] [22:21:18]POST finish read [22:21:18]Found Content-Length = 799 [22:21:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965095", "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" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4922371", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:18]execute_script... [22:21: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)1965095", "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" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4922371", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:18]POST & json_proto [22:21:18]process_json_proto [22:21:18]json parsed OK: [22:21:18]protocol is kg_v1.0 [22:21:18]action value=close_receipt [22:21:18]process_action close_receipt [22:21:18]cmd_close_receipt [22:21:18]MH_GetDate [22:21:18]Write to MH i2c: F0 00 00 12 08 09 [22:21:18]Write i2c OK [22:21:18]MH_I2C_Read... [22:21:18]Read from MH i2c: F0 [22:21:18]MH_I2C_Read... [22:21:18]Read from MH i2c: F0 09 00 [22:21:18]MH_I2C_Read... [22:21:18]Read from MH i2c: F0 09 00 12 08 00 5F 25 18 67 82 C9 CF 66 95 [22:21:18]GetLastDocTimeStamp 1729635466 [22:21:18]current date 1729635679 [22:21:18]FM_GetShiftState [22:21:18]SAM_PROTO_GetShiftState [22:21:18]wFMCommunicate request_size=4 [22:21:18]MH_SAM_APDU [22:21:18]CAPDU: 80 13 01 00 [22:21:18]Write to MH i2c: E2 08 00 13 08 80 13 01 00 00 00 00 00 98 [22:21:18]Write i2c OK [22:21:18]MH_I2C_Read... [22:21:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:19]Read from MH i2c: E2 [22:21:19]MH_I2C_Read... [22:21:19]Read from MH i2c: E2 0E 00 [22:21:19]MH_I2C_Read... [22:21:19]Read from MH i2c: E2 0E 00 13 08 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 5F [22:21:19]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [22:21:19]wFMCommunicate OK [22:21:19]SAM_PROTO_GetShiftState done [22:21:19]FM_GetShiftState done [22:21:19]opened in 1729555538 [22:21:19]opened+sec_in_day 1729641938 [22:21:19]quantity*price = 0 [22:21:19]sum+1 = 1 [22:21:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 414 22.10.2024 22:21 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливные Талоны 4922371 ФМ: 0000000000871839 ФД: 228450 ФПД: 12901218200284 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T222119&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228450&fm=12901218200284&tin=02508201610067®Number=0000000000091685&sum=0 [22:21:20]StoreToDocumentArchive [22:21:20]shift 535 fd 228450 [22:21:20]save to /storage/0535/doc_00228450 [22:21:20]save last doc name /storage/0535/doc_00228450 to /storage/kkm_last_doc_name [22:21:20]save OK [22:21:20]Clear old archive folders... [22:21:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:21:20]tlvbuf is 0031A990 [22:21:20]SAM_PROTO_ClearQueue [22:21:20]wFMCommunicate request_size=4 [22:21:20]MH_SAM_APDU [22:21:20]CAPDU: 80 09 00 00 [22:21:20]Write to MH i2c: E2 08 00 20 08 80 09 00 00 00 00 00 00 9A [22:21:20]Write i2c OK [22:21:20]MH_I2C_Read... [22:21:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:21:20]Read from MH i2c: E2 [22:21:20]MH_I2C_Read... [22:21:20]Read from MH i2c: E2 03 00 [22:21:20]MH_I2C_Read... [22:21:20]Read from MH i2c: E2 03 00 20 08 00 90 00 9C [22:21:20]RAPDU: 90 00 [22:21:20]wFMCommunicate OK [22:21:20]SAM_PROTO_ClearQueue done [22:21:20]KKMCreateOFDPacket [22:21:20]OFDProtocolAddRootSTLVToBuf [22:21:20]FM_MakeSignedData [22:21:20]FM_MakeSignedData [22:21:20]SAM_PROTO_SignData [22:21:20]wFMCommunicate request_size=4 [22:21:20]MH_SAM_APDU [22:21:20]CAPDU: 80 0D 01 02 [22:21:20]Write to MH i2c: E2 08 00 21 08 80 0D 01 02 00 00 00 00 A2 [22:21:20]Write i2c OK [22:21:20]MH_I2C_Read... [22:21:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:21:20]Read from MH i2c: E2 [22:21:20]MH_I2C_Read... [22:21:20]Read from MH i2c: E2 03 00 [22:21:20]MH_I2C_Read... [22:21:20]Read from MH i2c: E2 03 00 21 08 00 90 00 9D [22:21:20]RAPDU: 90 00 [22:21:20]wFMCommunicate OK [22:21:20]wFMCommunicate request_size=255 [22:21:20]MH_SAM_APDU [22:21: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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 5F 25 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 62 7C 03 00 35 04 06 00 0B BB CC 87 [22:21:20]Write to MH i2c: E2 02 01 22 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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 5F 25 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 62 7C 03 00 35 04 06 00 0B BB CC 87 00 00 E3 [22:21:20]Write i2c OK [22:21:20]MH_I2C_Read... [22:21:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:20]Read from MH i2c: E2 [22:21:20]MH_I2C_Read... [22:21:20]Read from MH i2c: E2 03 00 [22:21:20]MH_I2C_Read... [22:21:20]Read from MH i2c: E2 03 00 22 08 00 90 00 9E [22:21:20]RAPDU: 90 00 [22:21:20]wFMCommunicate OK [22:21:20]wFMCommunicate request_size=7 [22:21:20]MH_SAM_APDU [22:21:20]CAPDU: 80 0D 02 02 02 2A DC [22:21:20]Write to MH i2c: E2 0A 00 23 08 80 0D 02 02 02 00 2A DC 00 00 AF [22:21:20]Write i2c OK [22:21:20]MH_I2C_Read... [22:21:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:20]Read from MH i2c: E2 [22:21:20]MH_I2C_Read... [22:21:20]Read from MH i2c: E2 03 00 [22:21:20]MH_I2C_Read... [22:21:20]Read from MH i2c: E2 03 00 23 08 00 90 00 9F [22:21:20]RAPDU: 90 00 [22:21:20]wFMCommunicate OK [22:21:20]wFMCommunicate request_size=4 [22:21:20]MH_SAM_APDU [22:21:20]CAPDU: 80 0D 03 02 [22:21:20]Write to MH i2c: E2 08 00 24 08 80 0D 03 02 00 00 00 00 A7 [22:21:20]Write i2c OK [22:21:20]MH_I2C_Read... [22:21:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:21:20]Read from MH i2c: E2 [22:21:20]MH_I2C_Read... [22:21:20]Read from MH i2c: E2 0B 00 [22:21:20]MH_I2C_Read... [22:21:20]Read from MH i2c: E2 0B 00 24 08 00 A7 C1 34 4F 37 5D F5 9E 90 00 BA [22:21:20]RAPDU: A7 C1 34 4F 37 5D F5 9E 90 00 [22:21:20]wFMCommunicate OK [22:21:20]SAM_PROTO_SignData done [22:21:20]FM_MakeSignedData done [22:21:20]CreateOFDProtocolMessage [22:21:20]wFMCommunicate request_size=4 [22:21:20]MH_SAM_APDU [22:21:20]CAPDU: 80 11 00 00 [22:21:20]Write to MH i2c: E2 08 00 25 08 80 11 00 00 00 00 00 00 A7 [22:21:20]Write i2c OK [22:21:20]MH_I2C_Read... [22:21:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:20]Read from MH i2c: E2 [22:21:20]MH_I2C_Read... [22:21:20]Read from MH i2c: E2 17 00 [22:21:20]MH_I2C_Read... [22:21:20]Read from MH i2c: E2 17 00 25 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FE [22:21:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:21:20]wFMCommunicate OK [22:21:20]CreateOFDProtocolMessage done [22:21:20]OFDSenderStorePacket 228450 [22:21:20]StoreOFDPacket docnum=228450 [22:21:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 3D 6D 04 01 F6 BA 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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 5F 25 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 62 7C 03 00 35 04 06 00 0B BB CC 87 2A DC A7 C1 34 4F 37 5D F5 9E [22:21:20]CheckFolder [22:21:20]dirname=/storage/ofd_packets [22:21:20]CheckFolder done [22:21:20]ProducePacketName [22:21:20]name=ofd_packets/00228450 [22:21:20]NVStorageSaveData ofd_packets/00228450 [22:21:20]File name is /storage/ofd_packets/00228450 [22:21:20]Write 298 bytes [22:21:20]NVStorageSaveData done [22:21:20]OFDSenderStorePacket done [22:21:20]KKMCreateOFDPacket done [22:21:20]NVStorageSaveData kkm_last_timestamp [22:21:20]File name is /storage/kkm_last_timestamp [22:21:20]Write 4 bytes [22:21:20]NVStorageSaveData done [22:21:20]ExternCall_PrintAddStr [22:21:20]wPrintStart [22:21:20]Write to MH i2c: 01 00 00 26 08 2E [22:21:20]Write i2c OK [22:21:20]MH_I2C_Read... [22:21:20]Read from MH i2c: 01 [22:21:20]MH_I2C_Read... [22:21:20]Read from MH i2c: 01 07 00 [22:21:20]MH_I2C_Read... [22:21:20]Read from MH i2c: 01 07 00 26 08 00 00 00 00 00 FF 0F 43 [22:21:20]RasterBufferAndPrint [22:21:20]line Счет N : (1)1965095 [22:21:20]line ИНН: 02508201610067 [22:21:20]line Контрольно-Кассовый Чек [22:21:20]line ПРОДАЖА [22:21:20]line ТРК (МРК, ГНК) : 21 [22:21:20]line Товар: 2710194210 [22:21:20]line ДТ-К-5 [22:21:20]line 100.000 * 0.00 [22:21:20]line = 0.00 [22:21:20]line НДС 12% НСП 1% [22:21:20]line > о реализуемом товаре [22:21:20]line ИТОГО: 0.00 [22:21:20]line НСП 1% : 0.00 [22:21:20]line НДС 12% : 0.00 [22:21:20]line Наличными: 0.00 [22:21:20]line Безнал.: 0.00 [22:21:20]line Место: АЗС № 133 "Партнер Нефть" [22:21:20]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [22:21:20]line СНО: Общий режим [22:21:20]line Чек 414 22.10.2024 22:21 [22:21:20]line Смена: 535 ФФД: 1.0 [22:21:20]line ЗНМ: 0300000091 [22:21:20]line РНМ: 0000000000091685 [22:21:20]line Версия ККМ: 001 [22:21:20]line Талоны: Топливные Талоны [22:21:20]line 4922371 [22:21:20]line ФМ: 0000000000871839 [22:21:20]line ФД: 228450 [22:21:20]line ФПД: 12901218200284 [22:21:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T222119&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228450&fm=12901218200284&tin=02508201610067®Number=0000000000091685&sum=0 [22:21:21]OFD Sender: Processing packet 228450 [packets to send 38, broken 37] [22:21:21]ProducePacketName [22:21:21]name=ofd_packets/00228450 [22:21:21]OFD Sender: To server: pG, [22:21:21]CommunicateWithHost lk.salyk.kg:30040 [22:21:21]ConnectInit lk.salyk.kg [22:21:21]written 0, free lines is 4095 [22:21:21]Connected sock=10 [22:21:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 3D 6D 04 01 F6 BA 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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 5F 25 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 62 7C 03 00 35 04 06 00 0B BB CC 87 2A DC A7 C1 34 4F 37 5D F5 9E [22:21:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 F4 4A 47 00 E1 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 62 7C 03 00 F4 03 04 00 56 D0 17 67 B6 04 01 00 00 E2 6E 97 B8 7C EC A4 51 [22:21:21]CommunicateWithHost err = 0 [22:21:21]CheckOFDResponse [22:21:21]1017 (14) - 77093643461234 [22:21:21]1041 (16) - 0000000000871839 [22:21:21]1040 (4) - 228450 [22:21:21]1012 (4) - 22.10.2024 16:18 [22:21:21]1206 (1) - 0 [22:21:21]OFD Sender: Remove packet 228450 [22:21:21]ProducePacketName [22:21:21]name=ofd_packets/00228450 [22:21:21]NVStorageDeleteData [22:21:21]Write to MH i2c: 01 00 00 4F 08 57 [22:21:21]Write i2c OK [22:21:21]MH_I2C_Read... [22:21:21]Read from MH i2c: 01 [22:21:21]MH_I2C_Read... [22:21:21]Read from MH i2c: 01 07 00 [22:21:21]MH_I2C_Read... [22:21:21]Read from MH i2c: 01 07 00 4F 08 00 00 00 00 00 C5 0C 2F [22:21:21]RasterBufferAndPrint [22:21:21]line [22:21:21]line [22:21:21]line [22:21:21]line [22:21:21]line [22:21:21]written 0, free lines is 3273 [22:21:21]MH_Cut [22:21:21]Write to MH i2c: D1 01 00 56 08 01 30 [22:21:21]Write i2c OK [22:21:21]MH_I2C_Read... [22:21:21]Read from MH i2c: D1 [22:21:21]MH_I2C_Read... [22:21:21]Read from MH i2c: D1 01 00 [22:21:21]MH_I2C_Read... [22:21:21]Read from MH i2c: D1 01 00 56 08 00 2F [22:21:21]Write to MH i2c: 01 00 00 57 08 5F [22:21:21]Write i2c OK [22:21:21]MH_I2C_Read... [22:21:21]OFD Sender: No OFD packet to send [22:21:22]*** Cut start [22:21:22]*** Partial cut [22:21:22]*** CUTSNS_PIN = 1 [22:21:22]*** CUTSNS_PIN = 0 [22:21:22]*** Brake cut motor [22:21:22]Read from MH i2c: 01 [22:21:23]MH_I2C_Read... [22:21:23]*** Stop cut motor [22:21:23]*** Cut end [22:21:23]Read from MH i2c: 01 07 00 [22:21:23]MH_I2C_Read... [22:21:23]Read from MH i2c: 01 07 00 57 08 00 00 00 00 00 FF 0F 74 [22:21:23]process_action close_receipt done [22:21:23]requested_data is exist [22:21:23]produce_requested_data [22:21:23]requested_item fm.sn is exist - process it [22:21:23]wFMCommunicate request_size=4 [22:21:23]MH_SAM_APDU [22:21:23]CAPDU: 80 11 00 00 [22:21:23]Write to MH i2c: E2 08 00 58 08 80 11 00 00 00 00 00 00 DA [22:21:23]Write i2c OK [22:21:23]MH_I2C_Read... [22:21:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:23]Read from MH i2c: E2 [22:21:23]MH_I2C_Read... [22:21:23]Read from MH i2c: E2 17 00 [22:21:23]MH_I2C_Read... [22:21:23]Read from MH i2c: E2 17 00 58 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 31 [22:21:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:21:23]wFMCommunicate OK [22:21:23]requested_item fd.num is exist - process it [22:21:23]SAM_PROTO_GetFieldsCounters [22:21:23]wFMCommunicate request_size=4 [22:21:23]MH_SAM_APDU [22:21:23]CAPDU: 80 13 00 00 [22:21:23]Write to MH i2c: E2 08 00 59 08 80 13 00 00 00 00 00 00 DD [22:21:23]Write i2c OK [22:21:23]MH_I2C_Read... [22:21:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:21:23]Read from MH i2c: E2 [22:21:23]MH_I2C_Read... [22:21:23]Read from MH i2c: E2 62 00 [22:21:23]MH_I2C_Read... [22:21:23]Read from MH i2c: E2 62 00 59 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 62 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 9E 01 00 00 5E 04 04 00 9E 01 00 00 57 04 04 00 9F 01 00 00 19 04 04 00 00 00 00 00 90 00 DD [22:21:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 62 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 9E 01 00 00 5E 04 04 00 9E 01 00 00 57 04 04 00 9F 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:21:23]wFMCommunicate OK [22:21:23]SAM_PROTO_GetFieldsCounters done [22:21:23]requested_item shift.num is exist - process it [22:21:23]requested_item shift.opened is exist - process it [22:21:23]req_shift_opened [22:21:23]FM_GetShiftState [22:21:23]SAM_PROTO_GetShiftState [22:21:23]wFMCommunicate request_size=4 [22:21:23]MH_SAM_APDU [22:21:23]CAPDU: 80 13 01 00 [22:21:23]Write to MH i2c: E2 08 00 5A 08 80 13 01 00 00 00 00 00 DF [22:21:23]Write i2c OK [22:21:23]MH_I2C_Read... [22:21:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:23]Read from MH i2c: E2 [22:21:23]MH_I2C_Read... [22:21:23]Read from MH i2c: E2 0E 00 [22:21:23]MH_I2C_Read... [22:21:23]Read from MH i2c: E2 0E 00 5A 08 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 A6 [22:21:23]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [22:21:23]wFMCommunicate OK [22:21:23]SAM_PROTO_GetShiftState done [22:21:23]FM_GetShiftState done [22:21:23]req_shift_opened done [22:21:23]requested_item shift.open_date is exist - process it [22:21:23]req_shift_open_date [22:21:23]req_shift_open_date done [22:21:23]produce_requested_data done [22:21:23]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228450,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [22:21:23]process_action_free close_receipt [22:21:23]json_value_free [22:21:23]json_value_free done [22:21:23]process_json_proto returns [22:21:23]Send response to host [22:21:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228450,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [22:21:23]free response buf [22:21:23]execute_script done [22:21:23]execute_script returns [22:21:23]free content buf [22:21:23]Sock 7.Close socket [22:21:23]Sock 7.Thread stoped [22:21:26]OFD Sender: No OFD packet to send [22:21:31]OFD Sender: No OFD packet to send [22:21:36]OFD Sender: No OFD packet to send [22:21:41]OFD Sender: No OFD packet to send [22:21:46]OFD Sender: No OFD packet to send [22:21:51]OFD Sender: No OFD packet to send [22:21:56]OFD Sender: No OFD packet to send [22:22:01]OFD Sender: No OFD packet to send [22:22:06]OFD Sender: No OFD packet to send [22:22:11]OFD Sender: No OFD packet to send [22:22:16]OFD Sender: No OFD packet to send [22:22:21]OFD Sender: No OFD packet to send [22:22:26]OFD Sender: No OFD packet to send [22:22:31]OFD Sender: No OFD packet to send [22:22:36]OFD Sender: No OFD packet to send [22:22:41]OFD Sender: No OFD packet to send [22:22:46]OFD Sender: No OFD packet to send [22:22:51]OFD Sender: No OFD packet to send [22:22:56]OFD Sender: No OFD packet to send [22:23:01]OFD Sender: No OFD packet to send [22:23:06]OFD Sender: No OFD packet to send [22:23:11]OFD Sender: No OFD packet to send [22:23:16]OFD Sender: No OFD packet to send [22:23:21]OFD Sender: No OFD packet to send [22:23:26]OFD Sender: No OFD packet to send [22:23:31]OFD Sender: No OFD packet to send [22:23:36]OFD Sender: No OFD packet to send [22:23:41]OFD Sender: No OFD packet to send [22:23:46]OFD Sender: No OFD packet to send [22:23:51]OFD Sender: No OFD packet to send [22:23:57]OFD Sender: No OFD packet to send [22:24:02]OFD Sender: No OFD packet to send [22:24:07]OFD Sender: No OFD packet to send [22:24:12]OFD Sender: No OFD packet to send [22:24:17]OFD Sender: No OFD packet to send [22:24:22]OFD Sender: No OFD packet to send [22:24:27]OFD Sender: No OFD packet to send [22:24:32]OFD Sender: No OFD packet to send [22:24:37]OFD Sender: No OFD packet to send [22:24:42]OFD Sender: No OFD packet to send [22:24:47]OFD Sender: No OFD packet to send [22:24:52]OFD Sender: No OFD packet to send [22:24:57]OFD Sender: No OFD packet to send [22:25:02]OFD Sender: No OFD packet to send [22:25:07]OFD Sender: No OFD packet to send [22:25:12]OFD Sender: No OFD packet to send [22:25:17]OFD Sender: No OFD packet to send [22:25:22]OFD Sender: No OFD packet to send [22:25:27]OFD Sender: No OFD packet to send [22:25:32]OFD Sender: No OFD packet to send [22:25:37]OFD Sender: No OFD packet to send [22:25:42]OFD Sender: No OFD packet to send [22:25:47]OFD Sender: No OFD packet to send [22:25:52]OFD Sender: No OFD packet to send [22:25:57]OFD Sender: No OFD packet to send [22:26:02]OFD Sender: No OFD packet to send [22:26:07]OFD Sender: No OFD packet to send [22:26:12]OFD Sender: No OFD packet to send [22:26:17]OFD Sender: No OFD packet to send [22:26:22]OFD Sender: No OFD packet to send [22:26:27]OFD Sender: No OFD packet to send [22:26:32]OFD Sender: No OFD packet to send [22:26:37]OFD Sender: No OFD packet to send [22:26:42]OFD Sender: No OFD packet to send [22:26:47]OFD Sender: No OFD packet to send [22:26:52]OFD Sender: No OFD packet to send [22:26:57]OFD Sender: No OFD packet to send [22:27:02]OFD Sender: No OFD packet to send [22:27:07]OFD Sender: No OFD packet to send [22:27:09]accept exits with 9 [22:27:09]New connection [22:27:09]New thread 3066977636 created [22:27:09]Thread 3066834276 joined [22:27:09]Waiting for new connection... [22:27:09] Sock 9.Parse request [22:27:09]Sock 9.Check first char [22:27:09]Sock 9.First char is OK [22:27:09]request: POST /json_proto HTTP/1.0 [22:27:09]Method: POST [22:27:09]URL: /json_proto [22:27:09]Method is POST - this is cgi request [22:27:09]url: /json_proto [22:27:09]query_string will be loaded in cgi processing [22:27:09]execute_cgi json_proto POST (null) [22:27:09]execute_cgi path=json_proto method=POST [22:27:09]POST find Content-Length [22:27:09]Host: 172.17.44.195:8080 [22:27:09]Content-Length: 751 [22:27:09]Content-Type: application/json [22:27:09] [22:27:09]POST finish read [22:27:09]Found Content-Length = 751 [22:27:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 24.860, "sum" : 1700.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: Mbank", "payments": [ { "type": 1, "sum" : 1700.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:09]execute_script... [22: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)1965097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 24.860, "sum" : 1700.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: Mbank", "payments": [ { "type": 1, "sum" : 1700.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:09]POST & json_proto [22:27:09]process_json_proto [22:27:09]json parsed OK: [22:27:09]protocol is kg_v1.0 [22:27:09]action value=close_receipt [22:27:09]process_action close_receipt [22:27:09]cmd_close_receipt [22:27:09]MH_GetDate [22:27:09]Write to MH i2c: F0 00 00 5B 08 52 [22:27:09]Write i2c OK [22:27:09]MH_I2C_Read... [22:27:09]Read from MH i2c: F0 [22:27:09]MH_I2C_Read... [22:27:09]Read from MH i2c: F0 09 00 [22:27:09]MH_I2C_Read... [22:27:09]Read from MH i2c: F0 09 00 5B 08 00 BD 26 18 67 82 C9 CF 66 3D [22:27:09]GetLastDocTimeStamp 1729635679 [22:27:09]current date 1729636029 [22:27:09]FM_GetShiftState [22:27:09]SAM_PROTO_GetShiftState [22:27:09]wFMCommunicate request_size=4 [22:27:09]MH_SAM_APDU [22:27:09]CAPDU: 80 13 01 00 [22:27:09]Write to MH i2c: E2 08 00 5C 08 80 13 01 00 00 00 00 00 E1 [22:27:09]Write i2c OK [22:27:09]MH_I2C_Read... [22:27:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:09]Read from MH i2c: E2 [22:27:09]MH_I2C_Read... [22:27:09]Read from MH i2c: E2 0E 00 [22:27:09]MH_I2C_Read... [22:27:09]Read from MH i2c: E2 0E 00 5C 08 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 A8 [22:27:09]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [22:27:09]wFMCommunicate OK [22:27:09]SAM_PROTO_GetShiftState done [22:27:09]FM_GetShiftState done [22:27:09]opened in 1729555538 [22:27:09]opened+sec_in_day 1729641938 [22:27:09]quantity*price = 170042 [22:27:09]sum+1 = 170043 [22:27:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1700.42 НСП 1% : 15.05 НДС 12% : 180.58 Наличными: 0.00 Безнал.: 1700.42 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 415 22.10.2024 22:27 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 228451 ФПД: 120884395647609 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T222709&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228451&fm=120884395647609&tin=02508201610067®Number=0000000000091685&sum=170042 [22:27:10]StoreToDocumentArchive [22:27:10]shift 535 fd 228451 [22:27:10]save to /storage/0535/doc_00228451 [22:27:10]save last doc name /storage/0535/doc_00228451 to /storage/kkm_last_doc_name [22:27:10]save OK [22:27:10]Clear old archive folders... [22:27:10]ProcessDocumentItem done err = 0, tmpTLVsize=244 [22:27:10]tlvbuf is 002FAEA0 [22:27:10]SAM_PROTO_ClearQueue [22:27:10]wFMCommunicate request_size=4 [22:27:10]MH_SAM_APDU [22:27:10]CAPDU: 80 09 00 00 [22:27:10]Write to MH i2c: E2 08 00 69 08 80 09 00 00 00 00 00 00 E3 [22:27:10]Write i2c OK [22:27:10]MH_I2C_Read... [22:27:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:27:10]Read from MH i2c: E2 [22:27:10]MH_I2C_Read... [22:27:10]Read from MH i2c: E2 03 00 [22:27:10]MH_I2C_Read... [22:27:10]Read from MH i2c: E2 03 00 69 08 00 90 00 E5 [22:27:10]RAPDU: 90 00 [22:27:10]wFMCommunicate OK [22:27:10]SAM_PROTO_ClearQueue done [22:27:10]KKMCreateOFDPacket [22:27:10]OFDProtocolAddRootSTLVToBuf [22:27:10]FM_MakeSignedData [22:27:10]FM_MakeSignedData [22:27:10]SAM_PROTO_SignData [22:27:10]wFMCommunicate request_size=4 [22:27:10]MH_SAM_APDU [22:27:10]CAPDU: 80 0D 01 02 [22:27:10]Write to MH i2c: E2 08 00 6A 08 80 0D 01 02 00 00 00 00 EB [22:27:10]Write i2c OK [22:27:10]MH_I2C_Read... [22:27:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:27:10]Read from MH i2c: E2 [22:27:10]MH_I2C_Read... [22:27:10]Read from MH i2c: E2 03 00 [22:27:10]MH_I2C_Read... [22:27:10]Read from MH i2c: E2 03 00 6A 08 00 90 00 E6 [22:27:10]RAPDU: 90 00 [22:27:10]wFMCommunicate OK [22:27:10]wFMCommunicate request_size=253 [22:27:10]MH_SAM_APDU [22:27:10]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 61 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 3A 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3A 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 8A 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3A 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 01 00 00 F4 03 04 00 BD 26 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 63 7C 03 00 35 04 06 00 6D F1 97 76 22 79 [22:27:10]Write to MH i2c: E2 00 01 6B 08 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 61 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 3A 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3A 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 8A 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3A 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 01 00 00 F4 03 04 00 BD 26 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 63 7C 03 00 35 04 06 00 6D F1 97 76 22 79 00 00 2F [22:27:10]Write i2c OK [22:27:10]MH_I2C_Read... [22:27:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:10]Read from MH i2c: E2 [22:27:10]MH_I2C_Read... [22:27:10]Read from MH i2c: E2 03 00 [22:27:10]MH_I2C_Read... [22:27:10]Read from MH i2c: E2 03 00 6B 08 00 90 00 E7 [22:27:10]RAPDU: 90 00 [22:27:10]wFMCommunicate OK [22:27:10]wFMCommunicate request_size=4 [22:27:10]MH_SAM_APDU [22:27:10]CAPDU: 80 0D 03 02 [22:27:10]Write to MH i2c: E2 08 00 6C 08 80 0D 03 02 00 00 00 00 EF [22:27:10]Write i2c OK [22:27:10]MH_I2C_Read... [22:27:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:27:10]Read from MH i2c: E2 [22:27:10]MH_I2C_Read... [22:27:10]Read from MH i2c: E2 0B 00 [22:27:10]MH_I2C_Read... [22:27:10]Read from MH i2c: E2 0B 00 6C 08 00 FA B4 37 68 28 67 19 12 90 00 F7 [22:27:10]RAPDU: FA B4 37 68 28 67 19 12 90 00 [22:27:10]wFMCommunicate OK [22:27:10]SAM_PROTO_SignData done [22:27:10]FM_MakeSignedData done [22:27:10]CreateOFDProtocolMessage [22:27:10]wFMCommunicate request_size=4 [22:27:10]MH_SAM_APDU [22:27:10]CAPDU: 80 11 00 00 [22:27:10]Write to MH i2c: E2 08 00 6D 08 80 11 00 00 00 00 00 00 EF [22:27:10]Write i2c OK [22:27:10]MH_I2C_Read... [22:27:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:10]Read from MH i2c: E2 [22:27:10]MH_I2C_Read... [22:27:10]Read from MH i2c: E2 17 00 [22:27:10]MH_I2C_Read... [22:27:10]Read from MH i2c: E2 17 00 6D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 46 [22:27:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:27:10]wFMCommunicate OK [22:27:10]CreateOFDProtocolMessage done [22:27:10]OFDSenderStorePacket 228451 [22:27:10]StoreOFDPacket docnum=228451 [22:27:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 3B 71 00 01 BB FF 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 61 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 3A 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3A 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 8A 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3A 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 01 00 00 F4 03 04 00 BD 26 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 63 7C 03 00 35 04 06 00 6D F1 97 76 22 79 FA B4 37 68 28 67 19 12 [22:27:10]CheckFolder [22:27:10]dirname=/storage/ofd_packets [22:27:10]CheckFolder done [22:27:10]ProducePacketName [22:27:10]name=ofd_packets/00228451 [22:27:10]NVStorageSaveData ofd_packets/00228451 [22:27:10]File name is /storage/ofd_packets/00228451 [22:27:10]Write 294 bytes [22:27:10]NVStorageSaveData done [22:27:10]OFDSenderStorePacket done [22:27:10]KKMCreateOFDPacket done [22:27:10]NVStorageSaveData kkm_last_timestamp [22:27:10]File name is /storage/kkm_last_timestamp [22:27:10]Write 4 bytes [22:27:10]NVStorageSaveData done [22:27:10]ExternCall_PrintAddStr [22:27:10]wPrintStart [22:27:10]Write to MH i2c: 01 00 00 6E 08 76 [22:27:10]Write i2c OK [22:27:10]MH_I2C_Read... [22:27:10]Read from MH i2c: 01 [22:27:10]MH_I2C_Read... [22:27:10]Read from MH i2c: 01 07 00 [22:27:10]MH_I2C_Read... [22:27:10]Read from MH i2c: 01 07 00 6E 08 00 00 00 00 00 FF 0F 8B [22:27:10]RasterBufferAndPrint [22:27:10]line Счет N : (1)1965097 [22:27:10]line ИНН: 02508201610067 [22:27:10]line Контрольно-Кассовый Чек [22:27:10]line ПРОДАЖА [22:27:10]line ТРК (МРК, ГНК) : 52 [22:27:10]line Товар: 2710124130 [22:27:10]line SU-92 [22:27:10]line 24.860 * 68.40 [22:27:10]line = 1700.42 [22:27:10]line НДС 12% НСП 1% [22:27:10]line > о реализуемом товаре [22:27:10]line ИТОГО: 1700.42 [22:27:10]line НСП 1% : 15.05 [22:27:10]line НДС 12% : 180.58 [22:27:10]line Наличными: 0.00 [22:27:10]line Безнал.: 1700.42 [22:27:10]line Место: АЗС № 133 "Партнер Нефть" [22:27:10]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [22:27:10]line СНО: Общий режим [22:27:10]line Чек 415 22.10.2024 22:27 [22:27:10]line Смена: 535 ФФД: 1.0 [22:27:10]line ЗНМ: 0300000091 [22:27:10]line РНМ: 0000000000091685 [22:27:10]line Версия ККМ: 001 [22:27:10]line Платежная система: Mbank [22:27:10]line ФМ: 0000000000871839 [22:27:10]line ФД: 228451 [22:27:10]line ФПД: 120884395647609 [22:27:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T222709&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228451&fm=120884395647609&tin=02508201610067®Number=0000000000091685&sum=170042 [22:27:10]written 0, free lines is 4095 [22:27:10]OFD Sender: Processing packet 228451 [packets to send 38, broken 37] [22:27:10]ProducePacketName [22:27:10]name=ofd_packets/00228451 [22:27:10]OFD Sender: To server: pG, [22:27:10]CommunicateWithHost lk.salyk.kg:30040 [22:27:10]ConnectInit lk.salyk.kg [22:27:10]Connected sock=10 [22:27:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 3B 71 00 01 BB FF 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 61 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 3A 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3A 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 8A 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3A 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 01 00 00 F4 03 04 00 BD 26 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 63 7C 03 00 35 04 06 00 6D F1 97 76 22 79 FA B4 37 68 28 67 19 12 [22:27:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 52 7A 47 00 03 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 38 37 31 38 33 39 10 04 04 00 63 7C 03 00 F4 03 04 00 B4 D1 17 67 B6 04 01 00 00 97 DC 3D 8C 91 62 48 03 [22:27:11]CommunicateWithHost err = 0 [22:27:11]CheckOFDResponse [22:27:11]1017 (14) - 77093643461234 [22:27:11]1041 (16) - 0000000000871839 [22:27:11]1040 (4) - 228451 [22:27:11]1012 (4) - 22.10.2024 16:24 [22:27:11]1206 (1) - 0 [22:27:11]OFD Sender: Remove packet 228451 [22:27:11]ProducePacketName [22:27:11]name=ofd_packets/00228451 [22:27:11]NVStorageDeleteData [22:27:11]Write to MH i2c: 01 00 00 96 08 9E [22:27:11]Write i2c OK [22:27:11]MH_I2C_Read... [22:27:11]Read from MH i2c: 01 [22:27:11]MH_I2C_Read... [22:27:11]Read from MH i2c: 01 07 00 [22:27:11]MH_I2C_Read... [22:27:11]Read from MH i2c: 01 07 00 96 08 00 00 00 00 00 D9 0C 8A [22:27:11]RasterBufferAndPrint [22:27:11]line [22:27:11]line [22:27:11]line [22:27:11]line [22:27:11]line [22:27:11]written 0, free lines is 3293 [22:27:11]MH_Cut [22:27:11]Write to MH i2c: D1 01 00 9D 08 01 77 [22:27:11]Write i2c OK [22:27:11]MH_I2C_Read... [22:27:11]Read from MH i2c: D1 [22:27:11]MH_I2C_Read... [22:27:11]Read from MH i2c: D1 01 00 [22:27:11]MH_I2C_Read... [22:27:11]Read from MH i2c: D1 01 00 9D 08 00 76 [22:27:11]Write to MH i2c: 01 00 00 9E 08 A6 [22:27:11]Write i2c OK [22:27:11]MH_I2C_Read... [22:27:11]OFD Sender: No OFD packet to send [22:27:12]*** Cut start [22:27:12]*** Partial cut [22:27:12]*** CUTSNS_PIN = 1 [22:27:12]*** CUTSNS_PIN = 0 [22:27:12]*** Brake cut motor [22:27:12]Read from MH i2c: 01 [22:27:12]MH_I2C_Read... [22:27:12]*** Stop cut motor [22:27:12]*** Cut end [22:27:12]Read from MH i2c: 01 07 00 [22:27:12]MH_I2C_Read... [22:27:12]Read from MH i2c: 01 07 00 9E 08 00 00 00 00 00 FF 0F BB [22:27:12]process_action close_receipt done [22:27:12]requested_data is exist [22:27:12]produce_requested_data [22:27:12]requested_item fm.sn is exist - process it [22:27:12]wFMCommunicate request_size=4 [22:27:12]MH_SAM_APDU [22:27:12]CAPDU: 80 11 00 00 [22:27:12]Write to MH i2c: E2 08 00 9F 08 80 11 00 00 00 00 00 00 21 [22:27:12]Write i2c OK [22:27:12]MH_I2C_Read... [22:27:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:12]Read from MH i2c: E2 [22:27:12]MH_I2C_Read... [22:27:12]Read from MH i2c: E2 17 00 [22:27:12]MH_I2C_Read... [22:27:12]Read from MH i2c: E2 17 00 9F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 78 [22:27:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:27:12]wFMCommunicate OK [22:27:12]requested_item fd.num is exist - process it [22:27:12]SAM_PROTO_GetFieldsCounters [22:27:12]wFMCommunicate request_size=4 [22:27:12]MH_SAM_APDU [22:27:12]CAPDU: 80 13 00 00 [22:27:12]Write to MH i2c: E2 08 00 A0 08 80 13 00 00 00 00 00 00 24 [22:27:12]Write i2c OK [22:27:12]MH_I2C_Read... [22:27:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:27:13]Read from MH i2c: E2 [22:27:13]MH_I2C_Read... [22:27:13]Read from MH i2c: E2 62 00 [22:27:13]MH_I2C_Read... [22:27:13]Read from MH i2c: E2 62 00 A0 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 63 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 9F 01 00 00 5E 04 04 00 9F 01 00 00 57 04 04 00 A0 01 00 00 19 04 04 00 00 00 00 00 90 00 28 [22:27:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 63 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 9F 01 00 00 5E 04 04 00 9F 01 00 00 57 04 04 00 A0 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:27:13]wFMCommunicate OK [22:27:13]SAM_PROTO_GetFieldsCounters done [22:27:13]requested_item shift.num is exist - process it [22:27:13]requested_item shift.opened is exist - process it [22:27:13]req_shift_opened [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 A1 08 80 13 01 00 00 00 00 00 26 [22:27:13]Write i2c OK [22:27:13]MH_I2C_Read... [22:27:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:13]Read from MH i2c: E2 [22:27:13]MH_I2C_Read... [22:27:13]Read from MH i2c: E2 0E 00 [22:27:13]MH_I2C_Read... [22:27:13]Read from MH i2c: E2 0E 00 A1 08 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 ED [22:27:13]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [22:27:13]wFMCommunicate OK [22:27:13]SAM_PROTO_GetShiftState done [22:27:13]FM_GetShiftState done [22:27:13]req_shift_opened done [22:27:13]requested_item shift.open_date is exist - process it [22:27:13]req_shift_open_date [22:27:13]req_shift_open_date done [22:27:13]produce_requested_data done [22:27:13]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228451,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [22:27:13]process_action_free close_receipt [22:27:13]json_value_free [22:27:13]json_value_free done [22:27:13]process_json_proto returns [22:27:13]Send response to host [22:27:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228451,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [22:27:13]free response buf [22:27:13]execute_script done [22:27:13]execute_script returns [22:27:13]free content buf [22:27:13]Sock 9.Close socket [22:27:13]Sock 9.Thread stoped [22:27:16]OFD Sender: No OFD packet to send [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:26]OFD Sender: No OFD packet to send [22:30:31]OFD Sender: No OFD packet to send [22:30:36]OFD Sender: No OFD packet to send [22:30:41]OFD Sender: No OFD packet to send [22:30:46]OFD Sender: No OFD packet to send [22:30:51]OFD Sender: No OFD packet to send [22:30:56]OFD Sender: No OFD packet to send [22:31:01]OFD Sender: No OFD packet to send [22:31:06]OFD Sender: No OFD packet to send [22:31:11]OFD Sender: No OFD packet to send [22:31:16]OFD Sender: No OFD packet to send [22:31:21]OFD Sender: No OFD packet to send [22:31:26]OFD Sender: No OFD packet to send [22:31:31]OFD Sender: No OFD packet to send [22:31:36]OFD Sender: No OFD packet to send [22:31:41]OFD Sender: No OFD packet to send [22:31:43]accept exits with 7 [22:31:43]New connection [22:31:43]New thread 3066834276 created [22:31:43]Thread 3066977636 joined [22:31:43]Waiting for new connection... [22:31:43] Sock 7.Parse request [22:31:43]Sock 7.Check first char [22:31:43]Sock 7.First char is OK [22:31:43]request: POST /json_proto HTTP/1.0 [22:31:43]Method: POST [22:31:43]URL: /json_proto [22:31:43]Method is POST - this is cgi request [22:31:43]url: /json_proto [22:31:43]query_string will be loaded in cgi processing [22:31:43]execute_cgi json_proto POST (null) [22:31:43]execute_cgi path=json_proto method=POST [22:31:43]POST find Content-Length [22:31:43]Host: 172.17.44.195:8080 [22:31:43]Content-Length: 799 [22:31:43]Content-Type: application/json [22:31:43] [22:31:43]POST finish read [22:31:43]Found Content-Length = 799 [22:31:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965096", "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" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4922374", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:31:43]execute_script... [22:31: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)1965096", "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" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4922374", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:31:43]POST & json_proto [22:31:43]process_json_proto [22:31:43]json parsed OK: [22:31:43]protocol is kg_v1.0 [22:31:43]action value=close_receipt [22:31:43]process_action close_receipt [22:31:43]cmd_close_receipt [22:31:43]MH_GetDate [22:31:43]Write to MH i2c: F0 00 00 A2 08 99 [22:31:43]Write i2c OK [22:31:43]MH_I2C_Read... [22:31:43]Read from MH i2c: F0 [22:31:43]MH_I2C_Read... [22:31:43]Read from MH i2c: F0 09 00 [22:31:43]MH_I2C_Read... [22:31:43]Read from MH i2c: F0 09 00 A2 08 00 D0 27 18 67 82 C9 CF 66 98 [22:31:43]GetLastDocTimeStamp 1729636029 [22:31:43]current date 1729636304 [22:31:43]FM_GetShiftState [22:31:43]SAM_PROTO_GetShiftState [22:31:43]wFMCommunicate request_size=4 [22:31:43]MH_SAM_APDU [22:31:43]CAPDU: 80 13 01 00 [22:31:43]Write to MH i2c: E2 08 00 A3 08 80 13 01 00 00 00 00 00 28 [22:31:43]Write i2c OK [22:31:43]MH_I2C_Read... [22:31:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:31:43]Read from MH i2c: E2 [22:31:43]MH_I2C_Read... [22:31:43]Read from MH i2c: E2 0E 00 [22:31:43]MH_I2C_Read... [22:31:43]Read from MH i2c: E2 0E 00 A3 08 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 EF [22:31:43]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [22:31:43]wFMCommunicate OK [22:31:43]SAM_PROTO_GetShiftState done [22:31:43]FM_GetShiftState done [22:31:43]opened in 1729555538 [22:31:43]opened+sec_in_day 1729641938 [22:31:43]quantity*price = 0 [22:31:43]sum+1 = 1 [22:31:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 416 22.10.2024 22:31 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливные Талоны 4922374 ФМ: 0000000000871839 ФД: 228452 ФПД: 193391137379179 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T223144&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228452&fm=193391137379179&tin=02508201610067®Number=0000000000091685&sum=0 [22:31:45]StoreToDocumentArchive [22:31:45]shift 535 fd 228452 [22:31:45]save to /storage/0535/doc_00228452 [22:31:45]save last doc name /storage/0535/doc_00228452 to /storage/kkm_last_doc_name [22:31:45]save OK [22:31:45]Clear old archive folders... [22:31:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:31:45]tlvbuf is 002FB780 [22:31:45]SAM_PROTO_ClearQueue [22:31:45]wFMCommunicate request_size=4 [22:31:45]MH_SAM_APDU [22:31:45]CAPDU: 80 09 00 00 [22:31:45]Write to MH i2c: E2 08 00 B0 08 80 09 00 00 00 00 00 00 2A [22:31:45]Write i2c OK [22:31:45]MH_I2C_Read... [22:31:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:31:45]Read from MH i2c: E2 [22:31:45]MH_I2C_Read... [22:31:45]Read from MH i2c: E2 03 00 [22:31:45]MH_I2C_Read... [22:31:45]Read from MH i2c: E2 03 00 B0 08 00 90 00 2C [22:31:45]RAPDU: 90 00 [22:31:45]wFMCommunicate OK [22:31:45]SAM_PROTO_ClearQueue done [22:31:45]KKMCreateOFDPacket [22:31:45]OFDProtocolAddRootSTLVToBuf [22:31:45]FM_MakeSignedData [22:31:45]FM_MakeSignedData [22:31:45]SAM_PROTO_SignData [22:31:45]wFMCommunicate request_size=4 [22:31:45]MH_SAM_APDU [22:31:45]CAPDU: 80 0D 01 02 [22:31:45]Write to MH i2c: E2 08 00 B1 08 80 0D 01 02 00 00 00 00 32 [22:31:45]Write i2c OK [22:31:45]MH_I2C_Read... [22:31:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:31:45]Read from MH i2c: E2 [22:31:45]MH_I2C_Read... [22:31:45]Read from MH i2c: E2 03 00 [22:31:45]MH_I2C_Read... [22:31:45]Read from MH i2c: E2 03 00 B1 08 00 90 00 2D [22:31:45]RAPDU: 90 00 [22:31:45]wFMCommunicate OK [22:31:45]wFMCommunicate request_size=255 [22:31:45]MH_SAM_APDU [22:31: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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 01 00 00 F4 03 04 00 D0 27 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 64 7C 03 00 35 04 06 00 AF E3 62 0B [22:31:45]Write to MH i2c: E2 02 01 B2 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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 01 00 00 F4 03 04 00 D0 27 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 64 7C 03 00 35 04 06 00 AF E3 62 0B 00 00 D0 [22:31:45]Write i2c OK [22:31:45]MH_I2C_Read... [22:31:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:31:45]Read from MH i2c: E2 [22:31:45]MH_I2C_Read... [22:31:45]Read from MH i2c: E2 03 00 [22:31:45]MH_I2C_Read... [22:31:45]Read from MH i2c: E2 03 00 B2 08 00 90 00 2E [22:31:45]RAPDU: 90 00 [22:31:45]wFMCommunicate OK [22:31:45]wFMCommunicate request_size=7 [22:31:45]MH_SAM_APDU [22:31:45]CAPDU: 80 0D 02 02 02 D3 6B [22:31:45]Write to MH i2c: E2 0A 00 B3 08 80 0D 02 02 02 00 D3 6B 00 00 77 [22:31:45]Write i2c OK [22:31:45]MH_I2C_Read... [22:31:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:31:45]Read from MH i2c: E2 [22:31:45]MH_I2C_Read... [22:31:45]Read from MH i2c: E2 03 00 [22:31:45]MH_I2C_Read... [22:31:45]Read from MH i2c: E2 03 00 B3 08 00 90 00 2F [22:31:45]RAPDU: 90 00 [22:31:45]wFMCommunicate OK [22:31:45]wFMCommunicate request_size=4 [22:31:45]MH_SAM_APDU [22:31:45]CAPDU: 80 0D 03 02 [22:31:45]Write to MH i2c: E2 08 00 B4 08 80 0D 03 02 00 00 00 00 37 [22:31:45]Write i2c OK [22:31:45]MH_I2C_Read... [22:31:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:31:45]Read from MH i2c: E2 [22:31:45]MH_I2C_Read... [22:31:45]Read from MH i2c: E2 0B 00 [22:31:45]MH_I2C_Read... [22:31:45]Read from MH i2c: E2 0B 00 B4 08 00 A8 26 C0 5B D0 B2 7F 81 90 00 A3 [22:31:45]RAPDU: A8 26 C0 5B D0 B2 7F 81 90 00 [22:31:45]wFMCommunicate OK [22:31:45]SAM_PROTO_SignData done [22:31:45]FM_MakeSignedData done [22:31:45]CreateOFDProtocolMessage [22:31:45]wFMCommunicate request_size=4 [22:31:45]MH_SAM_APDU [22:31:45]CAPDU: 80 11 00 00 [22:31:45]Write to MH i2c: E2 08 00 B5 08 80 11 00 00 00 00 00 00 37 [22:31:45]Write i2c OK [22:31:45]MH_I2C_Read... [22:31:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:31:45]Read from MH i2c: E2 [22:31:45]MH_I2C_Read... [22:31:45]Read from MH i2c: E2 17 00 [22:31:45]MH_I2C_Read... [22:31:45]Read from MH i2c: E2 17 00 B5 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8E [22:31:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:31:45]wFMCommunicate OK [22:31:45]CreateOFDProtocolMessage done [22:31:45]OFDSenderStorePacket 228452 [22:31:45]StoreOFDPacket docnum=228452 [22:31:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 F3 A0 04 01 59 17 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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 01 00 00 F4 03 04 00 D0 27 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 64 7C 03 00 35 04 06 00 AF E3 62 0B D3 6B A8 26 C0 5B D0 B2 7F 81 [22:31:45]CheckFolder [22:31:45]dirname=/storage/ofd_packets [22:31:45]CheckFolder done [22:31:45]ProducePacketName [22:31:45]name=ofd_packets/00228452 [22:31:45]NVStorageSaveData ofd_packets/00228452 [22:31:45]File name is /storage/ofd_packets/00228452 [22:31:45]Write 298 bytes [22:31:45]NVStorageSaveData done [22:31:45]OFDSenderStorePacket done [22:31:45]KKMCreateOFDPacket done [22:31:45]NVStorageSaveData kkm_last_timestamp [22:31:45]File name is /storage/kkm_last_timestamp [22:31:45]Write 4 bytes [22:31:45]NVStorageSaveData done [22:31:45]ExternCall_PrintAddStr [22:31:45]wPrintStart [22:31:45]Write to MH i2c: 01 00 00 B6 08 BE [22:31:45]Write i2c OK [22:31:45]MH_I2C_Read... [22:31:45]Read from MH i2c: 01 [22:31:45]MH_I2C_Read... [22:31:45]Read from MH i2c: 01 07 00 [22:31:45]MH_I2C_Read... [22:31:45]Read from MH i2c: 01 07 00 B6 08 00 00 00 00 00 FF 0F D3 [22:31:45]RasterBufferAndPrint [22:31:45]line Счет N : (1)1965096 [22:31:45]line ИНН: 02508201610067 [22:31:45]line Контрольно-Кассовый Чек [22:31:45]line ПРОДАЖА [22:31:45]line ТРК (МРК, ГНК) : 21 [22:31:45]line Товар: 2710194210 [22:31:45]line ДТ-К-5 [22:31:45]line 100.000 * 0.00 [22:31:45]line = 0.00 [22:31:45]line НДС 12% НСП 1% [22:31:45]line > о реализуемом товаре [22:31:45]line ИТОГО: 0.00 [22:31:45]line НСП 1% : 0.00 [22:31:45]line НДС 12% : 0.00 [22:31:45]line Наличными: 0.00 [22:31:45]line Безнал.: 0.00 [22:31:45]line Место: АЗС № 133 "Партнер Нефть" [22:31:45]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [22:31:45]line СНО: Общий режим [22:31:45]line Чек 416 22.10.2024 22:31 [22:31:45]line Смена: 535 ФФД: 1.0 [22:31:45]line ЗНМ: 0300000091 [22:31:45]line РНМ: 0000000000091685 [22:31:45]line Версия ККМ: 001 [22:31:45]line Талоны: Топливные Талоны [22:31:45]line 4922374 [22:31:45]line ФМ: 0000000000871839 [22:31:45]line ФД: 228452 [22:31:45]line ФПД: 193391137379179 [22:31:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T223144&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228452&fm=193391137379179&tin=02508201610067®Number=0000000000091685&sum=0 [22:31:45]OFD Sender: Processing packet 228452 [packets to send 38, broken 37] [22:31:45]ProducePacketName [22:31:45]name=ofd_packets/00228452 [22:31:45]OFD Sender: To server: pG, [22:31:45]CommunicateWithHost lk.salyk.kg:30040 [22:31:45]ConnectInit lk.salyk.kg [22:31:45]written 0, free lines is 4095 [22:31:45]Connected sock=10 [22:31:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 F3 A0 04 01 59 17 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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 01 00 00 F4 03 04 00 D0 27 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 64 7C 03 00 35 04 06 00 AF E3 62 0B D3 6B A8 26 C0 5B D0 B2 7F 81 [22:31:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 79 6B 47 00 21 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 64 7C 03 00 F4 03 04 00 C7 D2 17 67 B6 04 01 00 00 04 7B 17 56 C5 F4 A6 CF [22:31:46]CommunicateWithHost err = 0 [22:31:46]CheckOFDResponse [22:31:46]1017 (14) - 77093643461234 [22:31:46]1041 (16) - 0000000000871839 [22:31:46]1040 (4) - 228452 [22:31:46]1012 (4) - 22.10.2024 16:28 [22:31:46]1206 (1) - 0 [22:31:46]OFD Sender: Remove packet 228452 [22:31:46]ProducePacketName [22:31:46]name=ofd_packets/00228452 [22:31:46]NVStorageDeleteData [22:31:46]Write to MH i2c: 01 00 00 DF 08 E7 [22:31:46]Write i2c OK [22:31:46]MH_I2C_Read... [22:31:46]Read from MH i2c: 01 [22:31:46]MH_I2C_Read... [22:31:46]Read from MH i2c: 01 07 00 [22:31:46]MH_I2C_Read... [22:31:46]Read from MH i2c: 01 07 00 DF 08 00 00 00 00 00 C3 0C BD [22:31:46]RasterBufferAndPrint [22:31:46]line [22:31:46]line [22:31:46]line [22:31:46]line [22:31:46]line [22:31:46]written 0, free lines is 3270 [22:31:46]MH_Cut [22:31:46]Write to MH i2c: D1 01 00 E6 08 01 C0 [22:31:46]Write i2c OK [22:31:46]MH_I2C_Read... [22:31:46]Read from MH i2c: D1 [22:31:46]MH_I2C_Read... [22:31:46]Read from MH i2c: D1 01 00 [22:31:46]MH_I2C_Read... [22:31:46]Read from MH i2c: D1 01 00 E6 08 00 BF [22:31:46]Write to MH i2c: 01 00 00 E7 08 EF [22:31:46]Write i2c OK [22:31:46]MH_I2C_Read... [22:31:46]OFD Sender: No OFD packet to send [22:31:47]*** Cut start [22:31:47]*** Partial cut [22:31:47]*** CUTSNS_PIN = 1 [22:31:47]*** CUTSNS_PIN = 0 [22:31:47]*** Brake cut motor [22:31:47]Read from MH i2c: 01 [22:31:47]MH_I2C_Read... [22:31:47]*** Stop cut motor [22:31:47]*** Cut end [22:31:47]Read from MH i2c: 01 07 00 [22:31:47]MH_I2C_Read... [22:31:47]Read from MH i2c: 01 07 00 E7 08 00 00 00 00 00 FF 0F 04 [22:31:47]process_action close_receipt done [22:31:47]requested_data is exist [22:31:47]produce_requested_data [22:31:47]requested_item fm.sn is exist - process it [22:31:47]wFMCommunicate request_size=4 [22:31:47]MH_SAM_APDU [22:31:47]CAPDU: 80 11 00 00 [22:31:47]Write to MH i2c: E2 08 00 E8 08 80 11 00 00 00 00 00 00 6A [22:31:47]Write i2c OK [22:31:47]MH_I2C_Read... [22:31:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:31:47]Read from MH i2c: E2 [22:31:47]MH_I2C_Read... [22:31:47]Read from MH i2c: E2 17 00 [22:31:47]MH_I2C_Read... [22:31:47]Read from MH i2c: E2 17 00 E8 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C1 [22:31:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:31:47]wFMCommunicate OK [22:31:47]requested_item fd.num is exist - process it [22:31:47]SAM_PROTO_GetFieldsCounters [22:31:47]wFMCommunicate request_size=4 [22:31:47]MH_SAM_APDU [22:31:47]CAPDU: 80 13 00 00 [22:31:47]Write to MH i2c: E2 08 00 E9 08 80 13 00 00 00 00 00 00 6D [22:31:47]Write i2c OK [22:31:47]MH_I2C_Read... [22:31:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:31:48]Read from MH i2c: E2 [22:31:48]MH_I2C_Read... [22:31:48]Read from MH i2c: E2 62 00 [22:31:48]MH_I2C_Read... [22:31:48]Read from MH i2c: E2 62 00 E9 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 64 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 A0 01 00 00 5E 04 04 00 A0 01 00 00 57 04 04 00 A1 01 00 00 19 04 04 00 00 00 00 00 90 00 75 [22:31:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 64 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 A0 01 00 00 5E 04 04 00 A0 01 00 00 57 04 04 00 A1 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:31:48]wFMCommunicate OK [22:31:48]SAM_PROTO_GetFieldsCounters done [22:31:48]requested_item shift.num is exist - process it [22:31:48]requested_item shift.opened is exist - process it [22:31:48]req_shift_opened [22:31:48]FM_GetShiftState [22:31:48]SAM_PROTO_GetShiftState [22:31:48]wFMCommunicate request_size=4 [22:31:48]MH_SAM_APDU [22:31:48]CAPDU: 80 13 01 00 [22:31:48]Write to MH i2c: E2 08 00 EA 08 80 13 01 00 00 00 00 00 6F [22:31:48]Write i2c OK [22:31:48]MH_I2C_Read... [22:31:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:31:48]Read from MH i2c: E2 [22:31:48]MH_I2C_Read... [22:31:48]Read from MH i2c: E2 0E 00 [22:31:48]MH_I2C_Read... [22:31:48]Read from MH i2c: E2 0E 00 EA 08 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 36 [22:31:48]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [22:31:48]wFMCommunicate OK [22:31:48]SAM_PROTO_GetShiftState done [22:31:48]FM_GetShiftState done [22:31:48]req_shift_opened done [22:31:48]requested_item shift.open_date is exist - process it [22:31:48]req_shift_open_date [22:31:48]req_shift_open_date done [22:31:48]produce_requested_data done [22:31:48]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228452,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [22:31:48]process_action_free close_receipt [22:31:48]json_value_free [22:31:48]json_value_free done [22:31:48]process_json_proto returns [22:31:48]Send response to host [22:31:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228452,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [22:31:48]free response buf [22:31:48]execute_script done [22:31:48]execute_script returns [22:31:48]free content buf [22:31:48]Sock 7.Close socket [22:31:48]Sock 7.Thread stoped [22:31:51]OFD Sender: No OFD packet to send [22:31:56]OFD Sender: No OFD packet to send [22:32:01]OFD Sender: No OFD packet to send [22:32:06]OFD Sender: No OFD packet to send [22:32:11]OFD Sender: No OFD packet to send [22:32:16]OFD Sender: No OFD packet to send [22:32:21]OFD Sender: No OFD packet to send [22:32:26]OFD Sender: No OFD packet to send [22:32:31]OFD Sender: No OFD packet to send [22:32:36]OFD Sender: No OFD packet to send [22:32:41]OFD Sender: No OFD packet to send [22:32:46]OFD Sender: No OFD packet to send [22:32:51]OFD Sender: No OFD packet to send [22:32:56]OFD Sender: No OFD packet to send [22:33:01]OFD Sender: No OFD packet to send [22:33:06]OFD Sender: No OFD packet to send [22:33:11]OFD Sender: No OFD packet to send [22:33:16]OFD Sender: No OFD packet to send [22:33:21]OFD Sender: No OFD packet to send [22:33:26]OFD Sender: No OFD packet to send [22:33:31]OFD Sender: No OFD packet to send [22:33:36]OFD Sender: No OFD packet to send [22:33:41]OFD Sender: No OFD packet to send [22:33:46]OFD Sender: No OFD packet to send [22:33:51]OFD Sender: No OFD packet to send [22:33:56]OFD Sender: No OFD packet to send [22:34:01]OFD Sender: No OFD packet to send [22:34:06]OFD Sender: No OFD packet to send [22:34:11]OFD Sender: No OFD packet to send [22:34:16]OFD Sender: No OFD packet to send [22:34:21]OFD Sender: No OFD packet to send [22:34:26]OFD Sender: No OFD packet to send [22:34:31]OFD Sender: No OFD packet to send [22:34:36]OFD Sender: No OFD packet to send [22:34:41]OFD Sender: No OFD packet to send [22:34:46]OFD Sender: No OFD packet to send [22:34:51]OFD Sender: No OFD packet to send [22:34: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:01]OFD Sender: No OFD packet to send [22:36:06]OFD Sender: No OFD packet to send [22:36:09]accept exits with 9 [22:36:09]New connection [22:36:09]New thread 3066977636 created [22:36:09]Thread 3066834276 joined [22:36:09]Waiting for new connection... [22:36:09] Sock 9.Parse request [22:36:09]Sock 9.Check first char [22:36:09]Sock 9.First char is OK [22:36:09]request: POST /json_proto HTTP/1.0 [22:36:09]Method: POST [22:36:09]URL: /json_proto [22:36:09]Method is POST - this is cgi request [22:36:09]url: /json_proto [22:36:09]query_string will be loaded in cgi processing [22:36:09]execute_cgi json_proto POST (null) [22:36:09]execute_cgi path=json_proto method=POST [22:36:09]POST find Content-Length [22:36:09]Host: 172.17.44.195:8080 [22:36:09]Content-Length: 765 [22:36:09]Content-Type: application/json [22:36:09] [22:36:09]POST finish read [22:36:09]Found Content-Length = 765 [22:36:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 11.820, "sum" : 900.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 900.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:36:09]execute_script... [22:36:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 11.820, "sum" : 900.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 900.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:36:09]POST & json_proto [22:36:09]process_json_proto [22:36:09]json parsed OK: [22:36:09]protocol is kg_v1.0 [22:36:09]action value=close_receipt [22:36:09]process_action close_receipt [22:36:09]cmd_close_receipt [22:36:09]MH_GetDate [22:36:09]Write to MH i2c: F0 00 00 EB 08 E2 [22:36:09]Write i2c OK [22:36:09]MH_I2C_Read... [22:36:09]Read from MH i2c: F0 [22:36:09]MH_I2C_Read... [22:36:09]Read from MH i2c: F0 09 00 [22:36:09]MH_I2C_Read... [22:36:09]Read from MH i2c: F0 09 00 EB 08 00 DA 28 18 67 82 C9 CF 66 EC [22:36:09]GetLastDocTimeStamp 1729636304 [22:36:09]current date 1729636570 [22:36:09]FM_GetShiftState [22:36:09]SAM_PROTO_GetShiftState [22:36:09]wFMCommunicate request_size=4 [22:36:09]MH_SAM_APDU [22:36:09]CAPDU: 80 13 01 00 [22:36:09]Write to MH i2c: E2 08 00 EC 08 80 13 01 00 00 00 00 00 71 [22:36:09]Write i2c OK [22:36:09]MH_I2C_Read... [22:36:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:09]Read from MH i2c: E2 [22:36:09]MH_I2C_Read... [22:36:09]Read from MH i2c: E2 0E 00 [22:36:09]MH_I2C_Read... [22:36:09]Read from MH i2c: E2 0E 00 EC 08 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 38 [22:36:09]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [22:36:09]wFMCommunicate OK [22:36:09]SAM_PROTO_GetShiftState done [22:36:09]FM_GetShiftState done [22:36:09]opened in 1729555538 [22:36:09]opened+sec_in_day 1729641938 [22:36:09]quantity*price = 90068 [22:36:09]sum+1 = 90069 [22:36:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 900.68 НСП 1% : 7.97 НДС 12% : 95.65 Наличными: 0.00 Безнал.: 900.68 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 417 22.10.2024 22:36 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 228453 ФПД: 193274683763875 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T223610&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228453&fm=193274683763875&tin=02508201610067®Number=0000000000091685&sum=90068 [22:36:10]StoreToDocumentArchive [22:36:10]shift 535 fd 228453 [22:36:10]save to /storage/0535/doc_00228453 [22:36:10]save last doc name /storage/0535/doc_00228453 to /storage/kkm_last_doc_name [22:36:10]save OK [22:36:10]Clear old archive folders... [22:36:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:36:10]tlvbuf is 0030F0A0 [22:36:10]SAM_PROTO_ClearQueue [22:36:10]wFMCommunicate request_size=4 [22:36:10]MH_SAM_APDU [22:36:10]CAPDU: 80 09 00 00 [22:36:10]Write to MH i2c: E2 08 00 F9 08 80 09 00 00 00 00 00 00 73 [22:36:10]Write i2c OK [22:36:10]MH_I2C_Read... [22:36:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:36:10]Read from MH i2c: E2 [22:36:10]MH_I2C_Read... [22:36:10]Read from MH i2c: E2 03 00 [22:36:10]MH_I2C_Read... [22:36:10]Read from MH i2c: E2 03 00 F9 08 00 90 00 75 [22:36:10]RAPDU: 90 00 [22:36:10]wFMCommunicate OK [22:36:10]SAM_PROTO_ClearQueue done [22:36:10]KKMCreateOFDPacket [22:36:10]OFDProtocolAddRootSTLVToBuf [22:36:10]FM_MakeSignedData [22:36:10]FM_MakeSignedData [22:36:10]SAM_PROTO_SignData [22:36:10]wFMCommunicate request_size=4 [22:36:10]MH_SAM_APDU [22:36:10]CAPDU: 80 0D 01 02 [22:36:10]Write to MH i2c: E2 08 00 FA 08 80 0D 01 02 00 00 00 00 7B [22:36:10]Write i2c OK [22:36:10]MH_I2C_Read... [22:36:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:36:10]Read from MH i2c: E2 [22:36:10]MH_I2C_Read... [22:36:10]Read from MH i2c: E2 03 00 [22:36:10]MH_I2C_Read... [22:36:10]Read from MH i2c: E2 03 00 FA 08 00 90 00 76 [22:36:10]RAPDU: 90 00 [22:36:10]wFMCommunicate OK [22:36:10]wFMCommunicate request_size=255 [22:36:10]MH_SAM_APDU [22:36:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 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 5D 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 01 00 00 F4 03 04 00 DA 28 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 65 7C 03 00 35 04 06 00 AF C8 44 DE [22:36:10]Write to MH i2c: E2 02 01 FB 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 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 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 5D 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 01 00 00 F4 03 04 00 DA 28 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 65 7C 03 00 35 04 06 00 AF C8 44 DE 00 00 12 [22:36:10]Write i2c OK [22:36:10]MH_I2C_Read... [22:36:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:36:11]Read from MH i2c: E2 [22:36:11]MH_I2C_Read... [22:36:11]Read from MH i2c: E2 03 00 [22:36:11]MH_I2C_Read... [22:36:11]Read from MH i2c: E2 03 00 FB 08 00 90 00 77 [22:36:11]RAPDU: 90 00 [22:36:11]wFMCommunicate OK [22:36:11]wFMCommunicate request_size=7 [22:36:11]MH_SAM_APDU [22:36:11]CAPDU: 80 0D 02 02 02 AC A3 [22:36:11]Write to MH i2c: E2 0A 00 FC 08 80 0D 02 02 02 00 AC A3 00 00 D1 [22:36:11]Write i2c OK [22:36:11]MH_I2C_Read... [22:36:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:36:11]Read from MH i2c: E2 [22:36:11]MH_I2C_Read... [22:36:11]Read from MH i2c: E2 03 00 [22:36:11]MH_I2C_Read... [22:36:11]Read from MH i2c: E2 03 00 FC 08 00 90 00 78 [22:36:11]RAPDU: 90 00 [22:36:11]wFMCommunicate OK [22:36:11]wFMCommunicate request_size=4 [22:36:11]MH_SAM_APDU [22:36:11]CAPDU: 80 0D 03 02 [22:36:11]Write to MH i2c: E2 08 00 FD 08 80 0D 03 02 00 00 00 00 80 [22:36:11]Write i2c OK [22:36:11]MH_I2C_Read... [22:36:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:36:11]Read from MH i2c: E2 [22:36:11]MH_I2C_Read... [22:36:11]Read from MH i2c: E2 0B 00 [22:36:11]MH_I2C_Read... [22:36:11]Read from MH i2c: E2 0B 00 FD 08 00 DB D9 3E 35 0B 0A A9 06 90 00 6C [22:36:11]RAPDU: DB D9 3E 35 0B 0A A9 06 90 00 [22:36:11]wFMCommunicate OK [22:36:11]SAM_PROTO_SignData done [22:36:11]FM_MakeSignedData done [22:36:11]CreateOFDProtocolMessage [22:36:11]wFMCommunicate request_size=4 [22:36:11]MH_SAM_APDU [22:36:11]CAPDU: 80 11 00 00 [22:36:11]Write to MH i2c: E2 08 00 FE 08 80 11 00 00 00 00 00 00 80 [22:36:11]Write i2c OK [22:36:11]MH_I2C_Read... [22:36:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:36:11]Read from MH i2c: E2 [22:36:11]MH_I2C_Read... [22:36:11]Read from MH i2c: E2 17 00 [22:36:11]MH_I2C_Read... [22:36:11]Read from MH i2c: E2 17 00 FE 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D7 [22:36:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:36:11]wFMCommunicate OK [22:36:11]CreateOFDProtocolMessage done [22:36:11]OFDSenderStorePacket 228453 [22:36:11]StoreOFDPacket docnum=228453 [22:36:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 25 32 04 01 4B 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 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 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 5D 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 01 00 00 F4 03 04 00 DA 28 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 65 7C 03 00 35 04 06 00 AF C8 44 DE AC A3 DB D9 3E 35 0B 0A A9 06 [22:36:11]CheckFolder [22:36:11]dirname=/storage/ofd_packets [22:36:11]CheckFolder done [22:36:11]ProducePacketName [22:36:11]name=ofd_packets/00228453 [22:36:11]NVStorageSaveData ofd_packets/00228453 [22:36:11]File name is /storage/ofd_packets/00228453 [22:36:11]Write 298 bytes [22:36:11]NVStorageSaveData done [22:36:11]OFDSenderStorePacket done [22:36:11]KKMCreateOFDPacket done [22:36:11]NVStorageSaveData kkm_last_timestamp [22:36:11]File name is /storage/kkm_last_timestamp [22:36:11]Write 4 bytes [22:36:11]NVStorageSaveData done [22:36:11]ExternCall_PrintAddStr [22:36:11]wPrintStart [22:36:11]Write to MH i2c: 01 00 00 FF 08 07 [22:36:11]Write i2c OK [22:36:11]MH_I2C_Read... [22:36:11]Read from MH i2c: 01 [22:36:11]MH_I2C_Read... [22:36:11]Read from MH i2c: 01 07 00 [22:36:11]MH_I2C_Read... [22:36:11]Read from MH i2c: 01 07 00 FF 08 00 00 00 00 00 FF 0F 1C [22:36:11]RasterBufferAndPrint [22:36:11]line Счет N : (1)1965099 [22:36:11]line ИНН: 02508201610067 [22:36:11]line Контрольно-Кассовый Чек [22:36:11]line ПРОДАЖА [22:36:11]line ТРК (МРК, ГНК) : 41 [22:36:11]line Товар: 2710194210 [22:36:11]line ДТ-К-5 [22:36:11]line 11.820 * 76.20 [22:36:11]line = 900.68 [22:36:11]line НДС 12% НСП 1% [22:36:11]line > о реализуемом товаре [22:36:11]line ИТОГО: 900.68 [22:36:11]line НСП 1% : 7.97 [22:36:11]line НДС 12% : 95.65 [22:36:11]line Наличными: 0.00 [22:36:11]line Безнал.: 900.68 [22:36:11]line Место: АЗС № 133 "Партнер Нефть" [22:36:11]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [22:36:11]line СНО: Общий режим [22:36:11]line Чек 417 22.10.2024 22:36 [22:36:11]line Смена: 535 ФФД: 1.0 [22:36:11]line ЗНМ: 0300000091 [22:36:11]line РНМ: 0000000000091685 [22:36:11]line Версия ККМ: 001 [22:36:11]line Платежная система: Mbank [22:36:11]line ФМ: 0000000000871839 [22:36:11]line ФД: 228453 [22:36:11]line ФПД: 193274683763875 [22:36:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T223610&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228453&fm=193274683763875&tin=02508201610067®Number=0000000000091685&sum=90068 [22:36:11]OFD Sender: Processing packet 228453 [packets to send 38, broken 37] [22:36:11]ProducePacketName [22:36:11]name=ofd_packets/00228453 [22:36:11]OFD Sender: To server: pG, [22:36:11]CommunicateWithHost lk.salyk.kg:30040 [22:36:11]ConnectInit lk.salyk.kg [22:36:11]written 0, free lines is 4095 [22:36:11]Connected sock=10 [22:36:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 25 32 04 01 4B 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 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 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 5D 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 01 00 00 F4 03 04 00 DA 28 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 65 7C 03 00 35 04 06 00 AF C8 44 DE AC A3 DB D9 3E 35 0B 0A A9 06 [22:36:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 7B 39 47 00 B3 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 65 7C 03 00 F4 03 04 00 D1 D3 17 67 B6 04 01 00 00 88 30 10 BF 3E 99 48 58 [22:36:11]CommunicateWithHost err = 0 [22:36:11]CheckOFDResponse [22:36:11]1017 (14) - 77093643461234 [22:36:11]1041 (16) - 0000000000871839 [22:36:11]1040 (4) - 228453 [22:36:11]1012 (4) - 22.10.2024 16:33 [22:36:11]1206 (1) - 0 [22:36:11]OFD Sender: Remove packet 228453 [22:36:11]ProducePacketName [22:36:11]name=ofd_packets/00228453 [22:36:11]NVStorageDeleteData [22:36:11]Write to MH i2c: 01 00 00 27 09 30 [22:36:11]Write i2c OK [22:36:11]MH_I2C_Read... [22:36:11]Read from MH i2c: 01 [22:36:11]MH_I2C_Read... [22:36:11]Read from MH i2c: 01 07 00 [22:36:11]MH_I2C_Read... [22:36:11]Read from MH i2c: 01 07 00 27 09 00 00 00 00 00 DA 0C 1D [22:36:11]RasterBufferAndPrint [22:36:11]line [22:36:11]line [22:36:11]line [22:36:11]line [22:36:11]line [22:36:11]written 0, free lines is 3295 [22:36:11]MH_Cut [22:36:11]Write to MH i2c: D1 01 00 2E 09 01 09 [22:36:11]Write i2c OK [22:36:11]MH_I2C_Read... [22:36:11]Read from MH i2c: D1 [22:36:11]MH_I2C_Read... [22:36:11]Read from MH i2c: D1 01 00 [22:36:11]MH_I2C_Read... [22:36:11]Read from MH i2c: D1 01 00 2E 09 00 08 [22:36:11]Write to MH i2c: 01 00 00 2F 09 38 [22:36:12]Write i2c OK [22:36:12]MH_I2C_Read... [22:36:12]OFD Sender: No OFD packet to send [22:36:12]*** Cut start [22:36:12]*** Partial cut [22:36:12]*** CUTSNS_PIN = 1 [22:36:12]*** CUTSNS_PIN = 0 [22:36:13]*** Brake cut motor [22:36:13]Read from MH i2c: 01 [22:36:13]MH_I2C_Read... [22:36:13]*** Stop cut motor [22:36:13]*** Cut end [22:36:13]Read from MH i2c: 01 07 00 [22:36:13]MH_I2C_Read... [22:36:13]Read from MH i2c: 01 07 00 2F 09 00 00 00 00 00 FF 0F 4D [22:36:13]process_action close_receipt done [22:36:13]requested_data is exist [22:36:13]produce_requested_data [22:36:13]requested_item fm.sn is exist - process it [22:36:13]wFMCommunicate request_size=4 [22:36:13]MH_SAM_APDU [22:36:13]CAPDU: 80 11 00 00 [22:36:13]Write to MH i2c: E2 08 00 30 09 80 11 00 00 00 00 00 00 B3 [22:36:13]Write i2c OK [22:36:13]MH_I2C_Read... [22:36:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:36:13]Read from MH i2c: E2 [22:36:13]MH_I2C_Read... [22:36:13]Read from MH i2c: E2 17 00 [22:36:13]MH_I2C_Read... [22:36:13]Read from MH i2c: E2 17 00 30 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0A [22:36:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:36:13]wFMCommunicate OK [22:36:13]requested_item fd.num is exist - process it [22:36:13]SAM_PROTO_GetFieldsCounters [22:36:13]wFMCommunicate request_size=4 [22:36:13]MH_SAM_APDU [22:36:13]CAPDU: 80 13 00 00 [22:36:13]Write to MH i2c: E2 08 00 31 09 80 13 00 00 00 00 00 00 B6 [22:36:13]Write i2c OK [22:36:13]MH_I2C_Read... [22:36:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:36:13]Read from MH i2c: E2 [22:36:13]MH_I2C_Read... [22:36:13]Read from MH i2c: E2 62 00 [22:36:13]MH_I2C_Read... [22:36:13]Read from MH i2c: E2 62 00 31 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 65 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 A1 01 00 00 5E 04 04 00 A1 01 00 00 57 04 04 00 A2 01 00 00 19 04 04 00 00 00 00 00 90 00 C2 [22:36:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 65 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 A1 01 00 00 5E 04 04 00 A1 01 00 00 57 04 04 00 A2 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:36:13]wFMCommunicate OK [22:36:13]SAM_PROTO_GetFieldsCounters done [22:36:13]requested_item shift.num is exist - process it [22:36:13]requested_item shift.opened is exist - process it [22:36:13]req_shift_opened [22:36:13]FM_GetShiftState [22:36:13]SAM_PROTO_GetShiftState [22:36:13]wFMCommunicate request_size=4 [22:36:13]MH_SAM_APDU [22:36:13]CAPDU: 80 13 01 00 [22:36:13]Write to MH i2c: E2 08 00 32 09 80 13 01 00 00 00 00 00 B8 [22:36:13]Write i2c OK [22:36:13]MH_I2C_Read... [22:36:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:13]Read from MH i2c: E2 [22:36:13]MH_I2C_Read... [22:36:13]Read from MH i2c: E2 0E 00 [22:36:13]MH_I2C_Read... [22:36:13]Read from MH i2c: E2 0E 00 32 09 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 7F [22:36:13]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [22:36:13]wFMCommunicate OK [22:36:13]SAM_PROTO_GetShiftState done [22:36:13]FM_GetShiftState done [22:36:13]req_shift_opened done [22:36:13]requested_item shift.open_date is exist - process it [22:36:13]req_shift_open_date [22:36:13]req_shift_open_date done [22:36:13]produce_requested_data done [22:36:13]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228453,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [22:36:13]process_action_free close_receipt [22:36:13]json_value_free [22:36:13]json_value_free done [22:36:13]process_json_proto returns [22:36:13]Send response to host [22:36:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228453,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [22:36:13]free response buf [22:36:13]execute_script done [22:36:13]execute_script returns [22:36:13]free content buf [22:36:13]Sock 9.Close socket [22:36:13]Sock 9.Thread stoped [22:36:17]OFD Sender: No OFD packet to send [22:36:22]OFD Sender: No OFD packet to send [22:36:22]accept exits with 7 [22:36:22]New connection [22:36:22]New thread 3066834276 created [22:36:22]Thread 3066977636 joined [22:36:22]Waiting for new connection... [22:36:22] Sock 7.Parse request [22:36:22]Sock 7.Check first char [22:36:22]Sock 7.First char is OK [22:36:22]request: POST /json_proto HTTP/1.0 [22:36:22]Method: POST [22:36:22]URL: /json_proto [22:36:22]Method is POST - this is cgi request [22:36:22]url: /json_proto [22:36:22]query_string will be loaded in cgi processing [22:36:22]execute_cgi json_proto POST (null) [22:36:22]execute_cgi path=json_proto method=POST [22:36:22]POST find Content-Length [22:36:22]Host: 172.17.44.195:8080 [22:36:22]Content-Length: 677 [22:36:22]Content-Type: application/json [22:36:22] [22:36:22]POST finish read [22:36:22]Found Content-Length = 677 [22:36:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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" ] } } [22:36:22]execute_script... [22:36: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)1965098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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" ] } } [22:36:22]POST & json_proto [22:36:22]process_json_proto [22:36:22]json parsed OK: [22:36:22]protocol is kg_v1.0 [22:36:22]action value=close_receipt [22:36:22]process_action close_receipt [22:36:22]cmd_close_receipt [22:36:22]MH_GetDate [22:36:22]Write to MH i2c: F0 00 00 33 09 2B [22:36:22]Write i2c OK [22:36:22]MH_I2C_Read... [22:36:22]Read from MH i2c: F0 [22:36:22]MH_I2C_Read... [22:36:22]Read from MH i2c: F0 09 00 [22:36:22]MH_I2C_Read... [22:36:22]Read from MH i2c: F0 09 00 33 09 00 E7 28 18 67 82 C9 CF 66 42 [22:36:22]GetLastDocTimeStamp 1729636570 [22:36:22]current date 1729636583 [22:36:22]FM_GetShiftState [22:36:22]SAM_PROTO_GetShiftState [22:36:22]wFMCommunicate request_size=4 [22:36:22]MH_SAM_APDU [22:36:22]CAPDU: 80 13 01 00 [22:36:22]Write to MH i2c: E2 08 00 34 09 80 13 01 00 00 00 00 00 BA [22:36:22]Write i2c OK [22:36:22]MH_I2C_Read... [22:36:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:22]Read from MH i2c: E2 [22:36:22]MH_I2C_Read... [22:36:22]Read from MH i2c: E2 0E 00 [22:36:22]MH_I2C_Read... [22:36:22]Read from MH i2c: E2 0E 00 34 09 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 81 [22:36:22]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [22:36:22]wFMCommunicate OK [22:36:22]SAM_PROTO_GetShiftState done [22:36:22]FM_GetShiftState done [22:36:22]opened in 1729555538 [22:36:22]opened+sec_in_day 1729641938 [22:36:22]quantity*price = 100011 [22:36:22]sum+1 = 100013 [22:36:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 418 22.10.2024 22:36 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228454 ФПД: 163161946093051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T223623&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228454&fm=163161946093051&tin=02508201610067®Number=0000000000091685&sum=100000 [22:36:24]StoreToDocumentArchive [22:36:24]shift 535 fd 228454 [22:36:24]save to /storage/0535/doc_00228454 [22:36:24]save last doc name /storage/0535/doc_00228454 to /storage/kkm_last_doc_name [22:36:24]save OK [22:36:24]Clear old archive folders... [22:36:24]ProcessDocumentItem done err = 0, tmpTLVsize=245 [22:36:24]tlvbuf is 0031D500 [22:36:24]SAM_PROTO_ClearQueue [22:36:24]wFMCommunicate request_size=4 [22:36:24]MH_SAM_APDU [22:36:24]CAPDU: 80 09 00 00 [22:36:24]Write to MH i2c: E2 08 00 41 09 80 09 00 00 00 00 00 00 BC [22:36:24]Write i2c OK [22:36:24]MH_I2C_Read... [22:36:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:36:24]Read from MH i2c: E2 [22:36:24]MH_I2C_Read... [22:36:24]Read from MH i2c: E2 03 00 [22:36:24]MH_I2C_Read... [22:36:24]Read from MH i2c: E2 03 00 41 09 00 90 00 BE [22:36:24]RAPDU: 90 00 [22:36:24]wFMCommunicate OK [22:36:24]SAM_PROTO_ClearQueue done [22:36:24]KKMCreateOFDPacket [22:36:24]OFDProtocolAddRootSTLVToBuf [22:36:24]FM_MakeSignedData [22:36:24]FM_MakeSignedData [22:36:24]SAM_PROTO_SignData [22:36:24]wFMCommunicate request_size=4 [22:36:24]MH_SAM_APDU [22:36:24]CAPDU: 80 0D 01 02 [22:36:24]Write to MH i2c: E2 08 00 42 09 80 0D 01 02 00 00 00 00 C4 [22:36:24]Write i2c OK [22:36:24]MH_I2C_Read... [22:36:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:36:24]Read from MH i2c: E2 [22:36:24]MH_I2C_Read... [22:36:24]Read from MH i2c: E2 03 00 [22:36:24]MH_I2C_Read... [22:36:24]Read from MH i2c: E2 03 00 42 09 00 90 00 BF [22:36:24]RAPDU: 90 00 [22:36:24]wFMCommunicate OK [22:36:24]wFMCommunicate request_size=254 [22:36:24]MH_SAM_APDU [22:36:24]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A2 01 00 00 F4 03 04 00 E7 28 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 66 7C 03 00 35 04 06 00 94 65 19 D6 75 FB [22:36:24]Write to MH i2c: E2 01 01 43 09 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A2 01 00 00 F4 03 04 00 E7 28 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 66 7C 03 00 35 04 06 00 94 65 19 D6 75 FB 00 00 B5 [22:36:24]Write i2c OK [22:36:24]MH_I2C_Read... [22:36:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:36:24]Read from MH i2c: E2 [22:36:24]MH_I2C_Read... [22:36:24]Read from MH i2c: E2 03 00 [22:36:24]MH_I2C_Read... [22:36:24]Read from MH i2c: E2 03 00 43 09 00 90 00 C0 [22:36:24]RAPDU: 90 00 [22:36:24]wFMCommunicate OK [22:36:24]wFMCommunicate request_size=4 [22:36:24]MH_SAM_APDU [22:36:24]CAPDU: 80 0D 03 02 [22:36:24]Write to MH i2c: E2 08 00 44 09 80 0D 03 02 00 00 00 00 C8 [22:36:24]Write i2c OK [22:36:24]MH_I2C_Read... [22:36:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:36:24]Read from MH i2c: E2 [22:36:24]MH_I2C_Read... [22:36:24]Read from MH i2c: E2 0B 00 [22:36:24]MH_I2C_Read... [22:36:24]Read from MH i2c: E2 0B 00 44 09 00 63 9C F7 B6 30 CF BD 3F 90 00 70 [22:36:24]RAPDU: 63 9C F7 B6 30 CF BD 3F 90 00 [22:36:24]wFMCommunicate OK [22:36:24]SAM_PROTO_SignData done [22:36:24]FM_MakeSignedData done [22:36:24]CreateOFDProtocolMessage [22:36:24]wFMCommunicate request_size=4 [22:36:24]MH_SAM_APDU [22:36:24]CAPDU: 80 11 00 00 [22:36:24]Write to MH i2c: E2 08 00 45 09 80 11 00 00 00 00 00 00 C8 [22:36:24]Write i2c OK [22:36:24]MH_I2C_Read... [22:36:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:36:24]Read from MH i2c: E2 [22:36:24]MH_I2C_Read... [22:36:24]Read from MH i2c: E2 17 00 [22:36:24]MH_I2C_Read... [22:36:24]Read from MH i2c: E2 17 00 45 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1F [22:36:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:36:24]wFMCommunicate OK [22:36:24]CreateOFDProtocolMessage done [22:36:24]OFDSenderStorePacket 228454 [22:36:24]StoreOFDPacket docnum=228454 [22:36:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 F3 55 01 01 AA A3 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A2 01 00 00 F4 03 04 00 E7 28 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 66 7C 03 00 35 04 06 00 94 65 19 D6 75 FB 63 9C F7 B6 30 CF BD 3F [22:36:24]CheckFolder [22:36:24]dirname=/storage/ofd_packets [22:36:24]CheckFolder done [22:36:24]ProducePacketName [22:36:24]name=ofd_packets/00228454 [22:36:24]NVStorageSaveData ofd_packets/00228454 [22:36:24]File name is /storage/ofd_packets/00228454 [22:36:24]Write 295 bytes [22:36:24]NVStorageSaveData done [22:36:24]OFDSenderStorePacket done [22:36:24]KKMCreateOFDPacket done [22:36:24]NVStorageSaveData kkm_last_timestamp [22:36:24]File name is /storage/kkm_last_timestamp [22:36:24]Write 4 bytes [22:36:24]NVStorageSaveData done [22:36:24]ExternCall_PrintAddStr [22:36:24]wPrintStart [22:36:24]Write to MH i2c: 01 00 00 46 09 4F [22:36:24]Write i2c OK [22:36:24]MH_I2C_Read... [22:36:24]Read from MH i2c: 01 [22:36:24]MH_I2C_Read... [22:36:24]Read from MH i2c: 01 07 00 [22:36:24]MH_I2C_Read... [22:36:24]Read from MH i2c: 01 07 00 46 09 00 00 00 00 00 FF 0F 64 [22:36:24]RasterBufferAndPrint [22:36:24]line Счет N : (1)1965098 [22:36:24]line ИНН: 02508201610067 [22:36:24]line Контрольно-Кассовый Чек [22:36:24]line ПРОДАЖА [22:36:24]line ТРК (МРК, ГНК) : 71 [22:36:24]line Товар: 2711129700 [22:36:24]line ГАЗ [22:36:24]line 25.710 * 38.90 [22:36:24]line = 1000.12 [22:36:24]line НДС 12% НСП 1% [22:36:24]line > о реализуемом товаре [22:36:24]line ОКРУГЛЕНИЕ: -0.12 [22:36:24]line ИТОГО: 1000.00 [22:36:24]line Внесено: 1000.00 [22:36:24]line СДАЧА: 0.00 [22:36:24]line НСП 1% : 8.85 [22:36:24]line НДС 12% : 106.21 [22:36:24]line Наличными: 1000.00 [22:36:24]line Безнал.: 0.00 [22:36:24]line Место: АЗС № 133 "Партнер Нефть" [22:36:24]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [22:36:24]line СНО: Общий режим [22:36:24]line Чек 418 22.10.2024 22:36 [22:36:24]line Смена: 535 ФФД: 1.0 [22:36:24]line ЗНМ: 0300000091 [22:36:24]line РНМ: 0000000000091685 [22:36:24]line Версия ККМ: 001 [22:36:24]line ФМ: 0000000000871839 [22:36:24]line ФД: 228454 [22:36:24]line ФПД: 163161946093051 [22:36:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T223623&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228454&fm=163161946093051&tin=02508201610067®Number=0000000000091685&sum=100000 [22:36:24]OFD Sender: Processing packet 228454 [packets to send 38, broken 37] [22:36:24]ProducePacketName [22:36:24]name=ofd_packets/00228454 [22:36:24]OFD Sender: To server: pG, [22:36:24]CommunicateWithHost lk.salyk.kg:30040 [22:36:24]ConnectInit lk.salyk.kg [22:36:24]written 0, free lines is 4095 [22:36:25]Connected sock=10 [22:36:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 F3 55 01 01 AA A3 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A2 01 00 00 F4 03 04 00 E7 28 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 66 7C 03 00 35 04 06 00 94 65 19 D6 75 FB 63 9C F7 B6 30 CF BD 3F [22:36:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 B2 AC 47 00 C8 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 66 7C 03 00 F4 03 04 00 DE D3 17 67 B6 04 01 00 00 15 77 39 DD 78 42 FE 03 [22:36:25]CommunicateWithHost err = 0 [22:36:25]CheckOFDResponse [22:36:25]1017 (14) - 77093643461234 [22:36:25]1041 (16) - 0000000000871839 [22:36:25]1040 (4) - 228454 [22:36:25]1012 (4) - 22.10.2024 16:33 [22:36:25]1206 (1) - 0 [22:36:25]OFD Sender: Remove packet 228454 [22:36:25]ProducePacketName [22:36:25]name=ofd_packets/00228454 [22:36:25]NVStorageDeleteData [22:36:25]Write to MH i2c: 01 00 00 70 09 79 [22:36:25]Write i2c OK [22:36:25]MH_I2C_Read... [22:36:25]Read from MH i2c: 01 [22:36:25]MH_I2C_Read... [22:36:25]Read from MH i2c: 01 07 00 [22:36:25]MH_I2C_Read... [22:36:25]Read from MH i2c: 01 07 00 70 09 00 00 00 00 00 AA 0C 36 [22:36:25]RasterBufferAndPrint [22:36:25]line [22:36:25]line [22:36:25]line [22:36:25]line [22:36:25]line [22:36:25]written 0, free lines is 3246 [22:36:25]MH_Cut [22:36:25]Write to MH i2c: D1 01 00 77 09 01 52 [22:36:25]Write i2c OK [22:36:25]MH_I2C_Read... [22:36:25]Read from MH i2c: D1 [22:36:25]MH_I2C_Read... [22:36:25]Read from MH i2c: D1 01 00 [22:36:25]MH_I2C_Read... [22:36:25]Read from MH i2c: D1 01 00 77 09 00 51 [22:36:25]Write to MH i2c: 01 00 00 78 09 81 [22:36:25]Write i2c OK [22:36:25]MH_I2C_Read... [22:36:25]OFD Sender: No OFD packet to send [22:36:26]*** Cut start [22:36:26]*** Partial cut [22:36:26]*** CUTSNS_PIN = 1 [22:36:26]*** CUTSNS_PIN = 0 [22:36:26]*** Brake cut motor [22:36:26]Read from MH i2c: 01 [22:36:27]MH_I2C_Read... [22:36:27]*** Stop cut motor [22:36:27]*** Cut end [22:36:27]Read from MH i2c: 01 07 00 [22:36:27]MH_I2C_Read... [22:36:27]Read from MH i2c: 01 07 00 78 09 00 00 00 00 00 FF 0F 96 [22:36:27]process_action close_receipt done [22:36:27]requested_data is exist [22:36:27]produce_requested_data [22:36:27]requested_item fm.sn is exist - process it [22:36:27]wFMCommunicate request_size=4 [22:36:27]MH_SAM_APDU [22:36:27]CAPDU: 80 11 00 00 [22:36:27]Write to MH i2c: E2 08 00 79 09 80 11 00 00 00 00 00 00 FC [22:36:27]Write i2c OK [22:36:27]MH_I2C_Read... [22:36:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:36:27]Read from MH i2c: E2 [22:36:27]MH_I2C_Read... [22:36:27]Read from MH i2c: E2 17 00 [22:36:27]MH_I2C_Read... [22:36:27]Read from MH i2c: E2 17 00 79 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 53 [22:36:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:36:27]wFMCommunicate OK [22:36:27]requested_item fd.num is exist - process it [22:36:27]SAM_PROTO_GetFieldsCounters [22:36:27]wFMCommunicate request_size=4 [22:36:27]MH_SAM_APDU [22:36:27]CAPDU: 80 13 00 00 [22:36:27]Write to MH i2c: E2 08 00 7A 09 80 13 00 00 00 00 00 00 FF [22:36:27]Write i2c OK [22:36:27]MH_I2C_Read... [22:36:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:36:27]Read from MH i2c: E2 [22:36:27]MH_I2C_Read... [22:36:27]Read from MH i2c: E2 62 00 [22:36:27]MH_I2C_Read... [22:36:27]Read from MH i2c: E2 62 00 7A 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 66 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 A2 01 00 00 5E 04 04 00 A2 01 00 00 57 04 04 00 A3 01 00 00 19 04 04 00 00 00 00 00 90 00 0F [22:36:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 66 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 A2 01 00 00 5E 04 04 00 A2 01 00 00 57 04 04 00 A3 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:36:27]wFMCommunicate OK [22:36:27]SAM_PROTO_GetFieldsCounters done [22:36:27]requested_item shift.num is exist - process it [22:36:27]requested_item shift.opened is exist - process it [22:36:27]req_shift_opened [22:36:27]FM_GetShiftState [22:36:27]SAM_PROTO_GetShiftState [22:36:27]wFMCommunicate request_size=4 [22:36:27]MH_SAM_APDU [22:36:27]CAPDU: 80 13 01 00 [22:36:27]Write to MH i2c: E2 08 00 7B 09 80 13 01 00 00 00 00 00 01 [22:36:27]Write i2c OK [22:36:27]MH_I2C_Read... [22:36:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:27]Read from MH i2c: E2 [22:36:27]MH_I2C_Read... [22:36:27]Read from MH i2c: E2 0E 00 [22:36:27]MH_I2C_Read... [22:36:27]Read from MH i2c: E2 0E 00 7B 09 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 C8 [22:36:27]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [22:36:27]wFMCommunicate OK [22:36:27]SAM_PROTO_GetShiftState done [22:36:27]FM_GetShiftState done [22:36:27]req_shift_opened done [22:36:27]requested_item shift.open_date is exist - process it [22:36:27]req_shift_open_date [22:36:27]req_shift_open_date done [22:36:27]produce_requested_data done [22:36:27]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228454,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [22:36:27]process_action_free close_receipt [22:36:27]json_value_free [22:36:27]json_value_free done [22:36:27]process_json_proto returns [22:36:27]Send response to host [22:36:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228454,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [22:36:27]free response buf [22:36:27]execute_script done [22:36:27]execute_script returns [22:36:27]free content buf [22:36:27]Sock 7.Close socket [22:36:27]Sock 7.Thread stoped [22:36:30]OFD Sender: No OFD packet to send [22:36:35]OFD Sender: No OFD packet to send [22:36:40]OFD Sender: No OFD packet to send [22:36:45]OFD Sender: No OFD packet to send [22:36:50]OFD Sender: No OFD packet to send [22:36:55]OFD Sender: No OFD packet to send [22:37:00]OFD Sender: No OFD packet to send [22:37:05]OFD Sender: No OFD packet to send [22:37:10]OFD Sender: No OFD packet to send [22:37:15]OFD Sender: No OFD packet to send [22:37:20]OFD Sender: No OFD packet to send [22:37:25]OFD Sender: No OFD packet to send [22:37:30]OFD Sender: No OFD packet to send [22:37:35]OFD Sender: No OFD packet to send [22:37:40]OFD Sender: No OFD packet to send [22:37:45]OFD Sender: No OFD packet to send [22:37:50]OFD Sender: No OFD packet to send [22:37:55]OFD Sender: No OFD packet to send [22:38:00]OFD Sender: No OFD packet to send [22:38:05]OFD Sender: No OFD packet to send [22:38:10]OFD Sender: No OFD packet to send [22:38:15]OFD Sender: No OFD packet to send [22:38:20]OFD Sender: No OFD packet to send [22:38:25]OFD Sender: No OFD packet to send [22:38:30]OFD Sender: No OFD packet to send [22:38:35]OFD Sender: No OFD packet to send [22:38:40]OFD Sender: No OFD packet to send [22:38:45]OFD Sender: No OFD packet to send [22:38:50]OFD Sender: No OFD packet to send [22:38:55]OFD Sender: No OFD packet to send [22:39:00]OFD Sender: No OFD packet to send [22:39:05]OFD Sender: No OFD packet to send [22:39:10]OFD Sender: No OFD packet to send [22:39:15]OFD Sender: No OFD packet to send [22:39:20]OFD Sender: No OFD packet to send [22:39:25]OFD Sender: No OFD packet to send [22:39:30]OFD Sender: No OFD packet to send [22:39:35]OFD Sender: No OFD packet to send [22:39:40]OFD Sender: No OFD packet to send [22:39:45]OFD Sender: No OFD packet to send [22:39:50]OFD Sender: No OFD packet to send [22:39:55]OFD Sender: No OFD packet to send [22:40:00]OFD Sender: No OFD packet to send [22:40:04]accept exits with 9 [22:40:04]New connection [22:40:04]New thread 3066977636 created [22:40:04]Thread 3066834276 joined [22:40:04]Waiting for new connection... [22:40:04] Sock 9.Parse request [22:40:04]Sock 9.Check first char [22:40:04]Sock 9.First char is OK [22:40:04]request: POST /json_proto HTTP/1.0 [22:40:04]Method: POST [22:40:04]URL: /json_proto [22:40:04]Method is POST - this is cgi request [22:40:04]url: /json_proto [22:40:04]query_string will be loaded in cgi processing [22:40:04]execute_cgi json_proto POST (null) [22:40:04]execute_cgi path=json_proto method=POST [22:40:04]POST find Content-Length [22:40:04]Host: 172.17.44.195:8080 [22:40:04]Content-Length: 673 [22:40:04]Content-Type: application/json [22:40:04] [22:40:04]POST finish read [22:40:04]Found Content-Length = 673 [22:40:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 12.860, "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:40:04]execute_script... [22:40: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)1965100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 12.860, "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:40:04]POST & json_proto [22:40:04]process_json_proto [22:40:04]json parsed OK: [22:40:04]protocol is kg_v1.0 [22:40:04]action value=close_receipt [22:40:04]process_action close_receipt [22:40:04]cmd_close_receipt [22:40:04]MH_GetDate [22:40:04]Write to MH i2c: F0 00 00 7C 09 74 [22:40:04]Write i2c OK [22:40:04]MH_I2C_Read... [22:40:04]Read from MH i2c: F0 [22:40:04]MH_I2C_Read... [22:40:04]Read from MH i2c: F0 09 00 [22:40:04]MH_I2C_Read... [22:40:04]Read from MH i2c: F0 09 00 7C 09 00 C5 29 18 67 82 C9 CF 66 6A [22:40:04]GetLastDocTimeStamp 1729636583 [22:40:04]current date 1729636805 [22:40:04]FM_GetShiftState [22:40:04]SAM_PROTO_GetShiftState [22:40:04]wFMCommunicate request_size=4 [22:40:04]MH_SAM_APDU [22:40:04]CAPDU: 80 13 01 00 [22:40:04]Write to MH i2c: E2 08 00 7D 09 80 13 01 00 00 00 00 00 03 [22:40:04]Write i2c OK [22:40:04]MH_I2C_Read... [22:40:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:04]Read from MH i2c: E2 [22:40:04]MH_I2C_Read... [22:40:04]Read from MH i2c: E2 0E 00 [22:40:04]MH_I2C_Read... [22:40:04]Read from MH i2c: E2 0E 00 7D 09 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 CA [22:40:04]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [22:40:04]wFMCommunicate OK [22:40:04]SAM_PROTO_GetShiftState done [22:40:04]FM_GetShiftState done [22:40:04]opened in 1729555538 [22:40:04]opened+sec_in_day 1729641938 [22:40:04]quantity*price = 50025 [22:40:04]sum+1 = 50026 [22:40:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 419 22.10.2024 22:40 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228455 ФПД: 140375805087519 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T224005&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228455&fm=140375805087519&tin=02508201610067®Number=0000000000091685&sum=50000 [22:40:05]StoreToDocumentArchive [22:40:05]shift 535 fd 228455 [22:40:05]save to /storage/0535/doc_00228455 [22:40:05]save last doc name /storage/0535/doc_00228455 to /storage/kkm_last_doc_name [22:40:05]save OK [22:40:05]Clear old archive folders... [22:40:05]ProcessDocumentItem done err = 0, tmpTLVsize=245 [22:40:05]tlvbuf is 002FA820 [22:40:05]SAM_PROTO_ClearQueue [22:40:05]wFMCommunicate request_size=4 [22:40:05]MH_SAM_APDU [22:40:05]CAPDU: 80 09 00 00 [22:40:05]Write to MH i2c: E2 08 00 8A 09 80 09 00 00 00 00 00 00 05 [22:40:05]Write i2c OK [22:40:05]MH_I2C_Read... [22:40:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:40:05]Read from MH i2c: E2 [22:40:05]MH_I2C_Read... [22:40:05]Read from MH i2c: E2 03 00 [22:40:05]MH_I2C_Read... [22:40:05]Read from MH i2c: E2 03 00 8A 09 00 90 00 07 [22:40:05]RAPDU: 90 00 [22:40:05]wFMCommunicate OK [22:40:05]SAM_PROTO_ClearQueue done [22:40:05]KKMCreateOFDPacket [22:40:05]OFDProtocolAddRootSTLVToBuf [22:40:05]FM_MakeSignedData [22:40:05]FM_MakeSignedData [22:40:05]SAM_PROTO_SignData [22:40:05]wFMCommunicate request_size=4 [22:40:05]MH_SAM_APDU [22:40:05]CAPDU: 80 0D 01 02 [22:40:05]Write to MH i2c: E2 08 00 8B 09 80 0D 01 02 00 00 00 00 0D [22:40:05]Write i2c OK [22:40:05]MH_I2C_Read... [22:40:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:40:05]Read from MH i2c: E2 [22:40:05]MH_I2C_Read... [22:40:05]Read from MH i2c: E2 03 00 [22:40:05]MH_I2C_Read... [22:40:05]Read from MH i2c: E2 03 00 8B 09 00 90 00 08 [22:40:05]RAPDU: 90 00 [22:40:05]wFMCommunicate OK [22:40:05]wFMCommunicate request_size=254 [22:40:05]MH_SAM_APDU [22:40:05]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 01 00 00 F4 03 04 00 C5 29 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 67 7C 03 00 35 04 06 00 7F AB C9 FF 4F 1F [22:40:05]Write to MH i2c: E2 01 01 8C 09 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 01 00 00 F4 03 04 00 C5 29 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 67 7C 03 00 35 04 06 00 7F AB C9 FF 4F 1F 00 00 C6 [22:40:05]Write i2c OK [22:40:05]MH_I2C_Read... [22:40:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:05]Read from MH i2c: E2 [22:40:05]MH_I2C_Read... [22:40:05]Read from MH i2c: E2 03 00 [22:40:05]MH_I2C_Read... [22:40:05]Read from MH i2c: E2 03 00 8C 09 00 90 00 09 [22:40:05]RAPDU: 90 00 [22:40:05]wFMCommunicate OK [22:40:05]wFMCommunicate request_size=4 [22:40:05]MH_SAM_APDU [22:40:05]CAPDU: 80 0D 03 02 [22:40:05]Write to MH i2c: E2 08 00 8D 09 80 0D 03 02 00 00 00 00 11 [22:40:05]Write i2c OK [22:40:05]MH_I2C_Read... [22:40:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:40:05]Read from MH i2c: E2 [22:40:05]MH_I2C_Read... [22:40:05]Read from MH i2c: E2 0B 00 [22:40:05]MH_I2C_Read... [22:40:05]Read from MH i2c: E2 0B 00 8D 09 00 A4 6B 3D 7C 3C 94 9F 1A 90 00 63 [22:40:05]RAPDU: A4 6B 3D 7C 3C 94 9F 1A 90 00 [22:40:05]wFMCommunicate OK [22:40:05]SAM_PROTO_SignData done [22:40:05]FM_MakeSignedData done [22:40:05]CreateOFDProtocolMessage [22:40:05]wFMCommunicate request_size=4 [22:40:05]MH_SAM_APDU [22:40:05]CAPDU: 80 11 00 00 [22:40:05]Write to MH i2c: E2 08 00 8E 09 80 11 00 00 00 00 00 00 11 [22:40:05]Write i2c OK [22:40:05]MH_I2C_Read... [22:40:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:05]Read from MH i2c: E2 [22:40:05]MH_I2C_Read... [22:40:05]Read from MH i2c: E2 17 00 [22:40:05]MH_I2C_Read... [22:40:05]Read from MH i2c: E2 17 00 8E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 68 [22:40:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:40:05]wFMCommunicate OK [22:40:05]CreateOFDProtocolMessage done [22:40:05]OFDSenderStorePacket 228455 [22:40:05]StoreOFDPacket docnum=228455 [22:40:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 64 16 01 01 47 A5 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 01 00 00 F4 03 04 00 C5 29 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 67 7C 03 00 35 04 06 00 7F AB C9 FF 4F 1F A4 6B 3D 7C 3C 94 9F 1A [22:40:05]CheckFolder [22:40:05]dirname=/storage/ofd_packets [22:40:05]CheckFolder done [22:40:05]ProducePacketName [22:40:05]name=ofd_packets/00228455 [22:40:05]NVStorageSaveData ofd_packets/00228455 [22:40:05]File name is /storage/ofd_packets/00228455 [22:40:05]Write 295 bytes [22:40:05]NVStorageSaveData done [22:40:05]OFDSenderStorePacket done [22:40:05]KKMCreateOFDPacket done [22:40:05]NVStorageSaveData kkm_last_timestamp [22:40:05]File name is /storage/kkm_last_timestamp [22:40:05]Write 4 bytes [22:40:05]NVStorageSaveData done [22:40:05]ExternCall_PrintAddStr [22:40:05]wPrintStart [22:40:05]Write to MH i2c: 01 00 00 8F 09 98 [22:40:05]Write i2c OK [22:40:05]MH_I2C_Read... [22:40:05]Read from MH i2c: 01 [22:40:05]MH_I2C_Read... [22:40:05]Read from MH i2c: 01 07 00 [22:40:05]MH_I2C_Read... [22:40:05]Read from MH i2c: 01 07 00 8F 09 00 00 00 00 00 FF 0F AD [22:40:05]RasterBufferAndPrint [22:40:05]line Счет N : (1)1965100 [22:40:05]line ИНН: 02508201610067 [22:40:05]line Контрольно-Кассовый Чек [22:40:05]line ПРОДАЖА [22:40:05]line ТРК (МРК, ГНК) : 71 [22:40:05]line Товар: 2711129700 [22:40:05]line ГАЗ [22:40:05]line 12.860 * 38.90 [22:40:05]line = 500.25 [22:40:05]line НДС 12% НСП 1% [22:40:05]line > о реализуемом товаре [22:40:05]line ОКРУГЛЕНИЕ: -0.25 [22:40:05]line ИТОГО: 500.00 [22:40:05]line Внесено: 500.00 [22:40:05]line СДАЧА: 0.00 [22:40:05]line НСП 1% : 4.43 [22:40:05]line НДС 12% : 53.12 [22:40:05]line Наличными: 500.00 [22:40:05]line Безнал.: 0.00 [22:40:05]line Место: АЗС № 133 "Партнер Нефть" [22:40:05]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [22:40:05]line СНО: Общий режим [22:40:05]line Чек 419 22.10.2024 22:40 [22:40:05]line Смена: 535 ФФД: 1.0 [22:40:05]line ЗНМ: 0300000091 [22:40:05]line РНМ: 0000000000091685 [22:40:05]line Версия ККМ: 001 [22:40:05]line ФМ: 0000000000871839 [22:40:05]line ФД: 228455 [22:40:05]line ФПД: 140375805087519 [22:40:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T224005&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228455&fm=140375805087519&tin=02508201610067®Number=0000000000091685&sum=50000 [22:40:06]OFD Sender: Processing packet 228455 [packets to send 38, broken 37] [22:40:06]ProducePacketName [22:40:06]name=ofd_packets/00228455 [22:40:06]OFD Sender: To server: pG, [22:40:06]CommunicateWithHost lk.salyk.kg:30040 [22:40:06]ConnectInit lk.salyk.kg [22:40:06]written 0, free lines is 4095 [22:40:06]Connected sock=10 [22:40:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 64 16 01 01 47 A5 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 01 00 00 F4 03 04 00 C5 29 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 67 7C 03 00 35 04 06 00 7F AB C9 FF 4F 1F A4 6B 3D 7C 3C 94 9F 1A [22:40:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 2E 00 47 00 B2 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 67 7C 03 00 F4 03 04 00 BB D4 17 67 B6 04 01 00 00 86 8E 06 FF FA 77 70 66 [22:40:06]CommunicateWithHost err = 0 [22:40:06]CheckOFDResponse [22:40:06]1017 (14) - 77093643461234 [22:40:06]1041 (16) - 0000000000871839 [22:40:06]1040 (4) - 228455 [22:40:06]1012 (4) - 22.10.2024 16:37 [22:40:06]1206 (1) - 0 [22:40:06]OFD Sender: Remove packet 228455 [22:40:06]ProducePacketName [22:40:06]name=ofd_packets/00228455 [22:40:06]NVStorageDeleteData [22:40:06]Write to MH i2c: 01 00 00 B9 09 C2 [22:40:06]Write i2c OK [22:40:06]MH_I2C_Read... [22:40:06]Read from MH i2c: 01 [22:40:06]MH_I2C_Read... [22:40:06]Read from MH i2c: 01 07 00 [22:40:06]MH_I2C_Read... [22:40:06]Read from MH i2c: 01 07 00 B9 09 00 00 00 00 00 A4 0C 79 [22:40:06]RasterBufferAndPrint [22:40:06]line [22:40:06]line [22:40:06]line [22:40:06]line [22:40:06]line [22:40:06]written 0, free lines is 3241 [22:40:06]MH_Cut [22:40:06]Write to MH i2c: D1 01 00 C0 09 01 9B [22:40:06]Write i2c OK [22:40:06]MH_I2C_Read... [22:40:06]Read from MH i2c: D1 [22:40:06]MH_I2C_Read... [22:40:06]Read from MH i2c: D1 01 00 [22:40:06]MH_I2C_Read... [22:40:06]Read from MH i2c: D1 01 00 C0 09 00 9A [22:40:06]Write to MH i2c: 01 00 00 C1 09 CA [22:40:06]Write i2c OK [22:40:06]MH_I2C_Read... [22:40:07]OFD Sender: No OFD packet to send [22:40:07]*** Cut start [22:40:07]*** Partial cut [22:40:07]*** CUTSNS_PIN = 1 [22:40:07]*** CUTSNS_PIN = 0 [22:40:07]*** Brake cut motor [22:40:08]Read from MH i2c: 01 [22:40:08]MH_I2C_Read... [22:40:08]*** Stop cut motor [22:40:08]*** Cut end [22:40:08]Read from MH i2c: 01 07 00 [22:40:08]MH_I2C_Read... [22:40:08]Read from MH i2c: 01 07 00 C1 09 00 00 00 00 00 FF 0F DF [22:40:08]process_action close_receipt done [22:40:08]requested_data is exist [22:40:08]produce_requested_data [22:40:08]requested_item fm.sn is exist - process it [22:40:08]wFMCommunicate request_size=4 [22:40:08]MH_SAM_APDU [22:40:08]CAPDU: 80 11 00 00 [22:40:08]Write to MH i2c: E2 08 00 C2 09 80 11 00 00 00 00 00 00 45 [22:40:08]Write i2c OK [22:40:08]MH_I2C_Read... [22:40:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:08]Read from MH i2c: E2 [22:40:08]MH_I2C_Read... [22:40:08]Read from MH i2c: E2 17 00 [22:40:08]MH_I2C_Read... [22:40:08]Read from MH i2c: E2 17 00 C2 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9C [22:40:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:40:08]wFMCommunicate OK [22:40:08]requested_item fd.num is exist - process it [22:40:08]SAM_PROTO_GetFieldsCounters [22:40:08]wFMCommunicate request_size=4 [22:40:08]MH_SAM_APDU [22:40:08]CAPDU: 80 13 00 00 [22:40:08]Write to MH i2c: E2 08 00 C3 09 80 13 00 00 00 00 00 00 48 [22:40:08]Write i2c OK [22:40:08]MH_I2C_Read... [22:40:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:40:08]Read from MH i2c: E2 [22:40:08]MH_I2C_Read... [22:40:08]Read from MH i2c: E2 62 00 [22:40:08]MH_I2C_Read... [22:40:08]Read from MH i2c: E2 62 00 C3 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 67 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 A3 01 00 00 5E 04 04 00 A3 01 00 00 57 04 04 00 A4 01 00 00 19 04 04 00 00 00 00 00 90 00 5C [22:40:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 67 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 A3 01 00 00 5E 04 04 00 A3 01 00 00 57 04 04 00 A4 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:40:08]wFMCommunicate OK [22:40:08]SAM_PROTO_GetFieldsCounters done [22:40:08]requested_item shift.num is exist - process it [22:40:08]requested_item shift.opened is exist - process it [22:40:08]req_shift_opened [22:40:08]FM_GetShiftState [22:40:08]SAM_PROTO_GetShiftState [22:40:08]wFMCommunicate request_size=4 [22:40:08]MH_SAM_APDU [22:40:08]CAPDU: 80 13 01 00 [22:40:08]Write to MH i2c: E2 08 00 C4 09 80 13 01 00 00 00 00 00 4A [22:40:08]Write i2c OK [22:40:08]MH_I2C_Read... [22:40:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:08]Read from MH i2c: E2 [22:40:08]MH_I2C_Read... [22:40:08]Read from MH i2c: E2 0E 00 [22:40:08]MH_I2C_Read... [22:40:08]Read from MH i2c: E2 0E 00 C4 09 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 11 [22:40:08]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [22:40:08]wFMCommunicate OK [22:40:08]SAM_PROTO_GetShiftState done [22:40:08]FM_GetShiftState done [22:40:08]req_shift_opened done [22:40:08]requested_item shift.open_date is exist - process it [22:40:08]req_shift_open_date [22:40:08]req_shift_open_date done [22:40:08]produce_requested_data done [22:40:08]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228455,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [22:40:08]process_action_free close_receipt [22:40:08]json_value_free [22:40:08]json_value_free done [22:40:08]process_json_proto returns [22:40:08]Send response to host [22:40:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228455,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [22:40:08]free response buf [22:40:08]execute_script done [22:40:08]execute_script returns [22:40:08]free content buf [22:40:08]Sock 9.Close socket [22:40:08]Sock 9.Thread stoped [22:40:08]accept exits with 7 [22:40:08]New connection [22:40:08]New thread 3066834276 created [22:40:08]Thread 3066977636 joined [22:40:08]Waiting for new connection... [22:40:08] Sock 7.Parse request [22:40:08]Sock 7.Check first char [22:40:08]Sock 7.First char is OK [22:40:08]request: POST /json_proto HTTP/1.0 [22:40:08]Method: POST [22:40:08]URL: /json_proto [22:40:08]Method is POST - this is cgi request [22:40:08]url: /json_proto [22:40:08]query_string will be loaded in cgi processing [22:40:08]execute_cgi json_proto POST (null) [22:40:08]execute_cgi path=json_proto method=POST [22:40:08]POST find Content-Length [22:40:08]Host: 172.17.44.195:8080 [22:40:08]Content-Length: 680 [22:40:08]Content-Type: application/json [22:40:08] [22:40:08]POST finish read [22:40:08]Found Content-Length = 680 [22:40:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "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" ] } } [22:40:08]execute_script... [22:40: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)1965101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "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" ] } } [22:40:08]POST & json_proto [22:40:08]process_json_proto [22:40:08]json parsed OK: [22:40:08]protocol is kg_v1.0 [22:40:08]action value=close_receipt [22:40:08]process_action close_receipt [22:40:08]cmd_close_receipt [22:40:08]MH_GetDate [22:40:08]Write to MH i2c: F0 00 00 C5 09 BD [22:40:08]Write i2c OK [22:40:08]MH_I2C_Read... [22:40:08]Read from MH i2c: F0 [22:40:08]MH_I2C_Read... [22:40:08]Read from MH i2c: F0 09 00 [22:40:08]MH_I2C_Read... [22:40:08]Read from MH i2c: F0 09 00 C5 09 00 C9 29 18 67 82 C9 CF 66 B7 [22:40:08]GetLastDocTimeStamp 1729636805 [22:40:08]current date 1729636809 [22:40:08]FM_GetShiftState [22:40:08]SAM_PROTO_GetShiftState [22:40:08]wFMCommunicate request_size=4 [22:40:08]MH_SAM_APDU [22:40:08]CAPDU: 80 13 01 00 [22:40:08]Write to MH i2c: E2 08 00 C6 09 80 13 01 00 00 00 00 00 4C [22:40:08]Write i2c OK [22:40:08]MH_I2C_Read... [22:40:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:08]Read from MH i2c: E2 [22:40:08]MH_I2C_Read... [22:40:08]Read from MH i2c: E2 0E 00 [22:40:08]MH_I2C_Read... [22:40:08]Read from MH i2c: E2 0E 00 C6 09 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 13 [22:40:08]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [22:40:08]wFMCommunicate OK [22:40:08]SAM_PROTO_GetShiftState done [22:40:08]FM_GetShiftState done [22:40:08]opened in 1729555538 [22:40:08]opened+sec_in_day 1729641938 [22:40:08]quantity*price = 100050 [22:40:08]sum+1 = 100052 [22:40:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 420 22.10.2024 22:40 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228456 ФПД: 13085909130657 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T224009&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228456&fm=13085909130657&tin=02508201610067®Number=0000000000091685&sum=100000 [22:40:10]StoreToDocumentArchive [22:40:10]shift 535 fd 228456 [22:40:10]save to /storage/0535/doc_00228456 [22:40:10]save last doc name /storage/0535/doc_00228456 to /storage/kkm_last_doc_name [22:40:10]save OK [22:40:10]Clear old archive folders... [22:40:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:40:10]tlvbuf is 002AF050 [22:40:10]SAM_PROTO_ClearQueue [22:40:10]wFMCommunicate request_size=4 [22:40:10]MH_SAM_APDU [22:40:10]CAPDU: 80 09 00 00 [22:40:10]Write to MH i2c: E2 08 00 D3 09 80 09 00 00 00 00 00 00 4E [22:40:10]Write i2c OK [22:40:10]MH_I2C_Read... [22:40:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:40:10]Read from MH i2c: E2 [22:40:10]MH_I2C_Read... [22:40:10]Read from MH i2c: E2 03 00 [22:40:10]MH_I2C_Read... [22:40:10]Read from MH i2c: E2 03 00 D3 09 00 90 00 50 [22:40:10]RAPDU: 90 00 [22:40:10]wFMCommunicate OK [22:40:10]SAM_PROTO_ClearQueue done [22:40:10]KKMCreateOFDPacket [22:40:10]OFDProtocolAddRootSTLVToBuf [22:40:10]FM_MakeSignedData [22:40:10]FM_MakeSignedData [22:40:10]SAM_PROTO_SignData [22:40:10]wFMCommunicate request_size=4 [22:40:10]MH_SAM_APDU [22:40:10]CAPDU: 80 0D 01 02 [22:40:10]Write to MH i2c: E2 08 00 D4 09 80 0D 01 02 00 00 00 00 56 [22:40:10]Write i2c OK [22:40:10]MH_I2C_Read... [22:40:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:40:10]Read from MH i2c: E2 [22:40:10]MH_I2C_Read... [22:40:10]Read from MH i2c: E2 03 00 [22:40:10]MH_I2C_Read... [22:40:10]Read from MH i2c: E2 03 00 D4 09 00 90 00 51 [22:40:10]RAPDU: 90 00 [22:40:10]wFMCommunicate OK [22:40:10]wFMCommunicate request_size=255 [22:40:10]MH_SAM_APDU [22:40:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 A4 01 00 00 F4 03 04 00 C9 29 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 68 7C 03 00 35 04 06 00 0B E6 CC F7 [22:40:10]Write to MH i2c: E2 02 01 D5 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 A4 01 00 00 F4 03 04 00 C9 29 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 68 7C 03 00 35 04 06 00 0B E6 CC F7 00 00 AD [22:40:10]Write i2c OK [22:40:10]MH_I2C_Read... [22:40:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:10]Read from MH i2c: E2 [22:40:10]MH_I2C_Read... [22:40:10]Read from MH i2c: E2 03 00 [22:40:10]MH_I2C_Read... [22:40:10]Read from MH i2c: E2 03 00 D5 09 00 90 00 52 [22:40:10]RAPDU: 90 00 [22:40:10]wFMCommunicate OK [22:40:10]wFMCommunicate request_size=7 [22:40:10]MH_SAM_APDU [22:40:10]CAPDU: 80 0D 02 02 02 1D A1 [22:40:10]Write to MH i2c: E2 0A 00 D6 09 80 0D 02 02 02 00 1D A1 00 00 1B [22:40:10]Write i2c OK [22:40:10]MH_I2C_Read... [22:40:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:10]Read from MH i2c: E2 [22:40:10]MH_I2C_Read... [22:40:10]Read from MH i2c: E2 03 00 [22:40:10]MH_I2C_Read... [22:40:10]Read from MH i2c: E2 03 00 D6 09 00 90 00 53 [22:40:10]RAPDU: 90 00 [22:40:10]wFMCommunicate OK [22:40:10]wFMCommunicate request_size=4 [22:40:10]MH_SAM_APDU [22:40:10]CAPDU: 80 0D 03 02 [22:40:10]Write to MH i2c: E2 08 00 D7 09 80 0D 03 02 00 00 00 00 5B [22:40:10]Write i2c OK [22:40:10]MH_I2C_Read... [22:40:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:40:10]Read from MH i2c: E2 [22:40:10]MH_I2C_Read... [22:40:10]Read from MH i2c: E2 0B 00 [22:40:10]MH_I2C_Read... [22:40:10]Read from MH i2c: E2 0B 00 D7 09 00 F3 56 BA 9F 2B 13 D9 02 90 00 17 [22:40:10]RAPDU: F3 56 BA 9F 2B 13 D9 02 90 00 [22:40:10]wFMCommunicate OK [22:40:10]SAM_PROTO_SignData done [22:40:10]FM_MakeSignedData done [22:40:10]CreateOFDProtocolMessage [22:40:10]wFMCommunicate request_size=4 [22:40:10]MH_SAM_APDU [22:40:10]CAPDU: 80 11 00 00 [22:40:10]Write to MH i2c: E2 08 00 D8 09 80 11 00 00 00 00 00 00 5B [22:40:10]Write i2c OK [22:40:10]MH_I2C_Read... [22:40:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:10]Read from MH i2c: E2 [22:40:10]MH_I2C_Read... [22:40:10]Read from MH i2c: E2 17 00 [22:40:10]MH_I2C_Read... [22:40:10]Read from MH i2c: E2 17 00 D8 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B2 [22:40:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:40:10]wFMCommunicate OK [22:40:10]CreateOFDProtocolMessage done [22:40:10]OFDSenderStorePacket 228456 [22:40:10]StoreOFDPacket docnum=228456 [22:40:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 C3 50 04 01 88 55 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 A4 01 00 00 F4 03 04 00 C9 29 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 68 7C 03 00 35 04 06 00 0B E6 CC F7 1D A1 F3 56 BA 9F 2B 13 D9 02 [22:40:10]CheckFolder [22:40:10]dirname=/storage/ofd_packets [22:40:10]CheckFolder done [22:40:10]ProducePacketName [22:40:10]name=ofd_packets/00228456 [22:40:10]NVStorageSaveData ofd_packets/00228456 [22:40:10]File name is /storage/ofd_packets/00228456 [22:40:10]Write 298 bytes [22:40:10]NVStorageSaveData done [22:40:10]OFDSenderStorePacket done [22:40:10]KKMCreateOFDPacket done [22:40:10]NVStorageSaveData kkm_last_timestamp [22:40:10]File name is /storage/kkm_last_timestamp [22:40:10]Write 4 bytes [22:40:10]NVStorageSaveData done [22:40:10]ExternCall_PrintAddStr [22:40:10]wPrintStart [22:40:10]Write to MH i2c: 01 00 00 D9 09 E2 [22:40:10]Write i2c OK [22:40:10]MH_I2C_Read... [22:40:10]Read from MH i2c: 01 [22:40:10]MH_I2C_Read... [22:40:10]Read from MH i2c: 01 07 00 [22:40:10]MH_I2C_Read... [22:40:10]Read from MH i2c: 01 07 00 D9 09 00 00 00 00 00 FF 0F F7 [22:40:10]RasterBufferAndPrint [22:40:10]line Счет N : (1)1965101 [22:40:10]line ИНН: 02508201610067 [22:40:10]line Контрольно-Кассовый Чек [22:40:10]line ПРОДАЖА [22:40:10]line ТРК (МРК, ГНК) : 41 [22:40:10]line Товар: 2710194210 [22:40:10]line ДТ-К-5 [22:40:10]line 13.130 * 76.20 [22:40:10]line = 1000.51 [22:40:10]line НДС 12% НСП 1% [22:40:10]line > о реализуемом товаре [22:40:10]line ОКРУГЛЕНИЕ: -0.51 [22:40:10]line ИТОГО: 1000.00 [22:40:10]line Внесено: 1000.00 [22:40:10]line СДАЧА: 0.00 [22:40:10]line НСП 1% : 8.85 [22:40:10]line НДС 12% : 106.25 [22:40:10]line Наличными: 1000.00 [22:40:10]line Безнал.: 0.00 [22:40:10]line Место: АЗС № 133 "Партнер Нефть" [22:40:10]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [22:40:10]line СНО: Общий режим [22:40:10]line Чек 420 22.10.2024 22:40 [22:40:10]line Смена: 535 ФФД: 1.0 [22:40:10]line ЗНМ: 0300000091 [22:40:10]line РНМ: 0000000000091685 [22:40:10]line Версия ККМ: 001 [22:40:10]line ФМ: 0000000000871839 [22:40:10]line ФД: 228456 [22:40:10]line ФПД: 13085909130657 [22:40:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T224009&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228456&fm=13085909130657&tin=02508201610067®Number=0000000000091685&sum=100000 [22:40:10]OFD Sender: Processing packet 228456 [packets to send 38, broken 37] [22:40:10]ProducePacketName [22:40:10]name=ofd_packets/00228456 [22:40:10]OFD Sender: To server: pG, [22:40:10]CommunicateWithHost lk.salyk.kg:30040 [22:40:10]ConnectInit lk.salyk.kg [22:40:10]written 0, free lines is 4095 [22:40:11]Connected sock=10 [22:40:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 C3 50 04 01 88 55 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 A4 01 00 00 F4 03 04 00 C9 29 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 68 7C 03 00 35 04 06 00 0B E6 CC F7 1D A1 F3 56 BA 9F 2B 13 D9 02 [22:40:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 D4 F3 47 00 45 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 68 7C 03 00 F4 03 04 00 C0 D4 17 67 B6 04 01 00 00 BF 43 21 8A E4 E3 30 9A [22:40:11]CommunicateWithHost err = 0 [22:40:11]CheckOFDResponse [22:40:11]1017 (14) - 77093643461234 [22:40:11]1041 (16) - 0000000000871839 [22:40:11]1040 (4) - 228456 [22:40:11]1012 (4) - 22.10.2024 16:37 [22:40:11]1206 (1) - 0 [22:40:11]OFD Sender: Remove packet 228456 [22:40:11]ProducePacketName [22:40:11]name=ofd_packets/00228456 [22:40:11]NVStorageDeleteData [22:40:11]Write to MH i2c: 01 00 00 03 0A 0D [22:40:11]Write i2c OK [22:40:11]MH_I2C_Read... [22:40:11]Read from MH i2c: 01 [22:40:11]MH_I2C_Read... [22:40:11]Read from MH i2c: 01 07 00 [22:40:11]MH_I2C_Read... [22:40:11]Read from MH i2c: 01 07 00 03 0A 00 00 00 00 00 BD 0C DD [22:40:11]RasterBufferAndPrint [22:40:11]line [22:40:11]line [22:40:11]line [22:40:11]line [22:40:11]line [22:40:11]written 0, free lines is 3271 [22:40:11]MH_Cut [22:40:11]Write to MH i2c: D1 01 00 0A 0A 01 E6 [22:40:11]Write i2c OK [22:40:11]MH_I2C_Read... [22:40:11]Read from MH i2c: D1 [22:40:11]MH_I2C_Read... [22:40:11]Read from MH i2c: D1 01 00 [22:40:11]MH_I2C_Read... [22:40:11]Read from MH i2c: D1 01 00 0A 0A 00 E5 [22:40:11]Write to MH i2c: 01 00 00 0B 0A 15 [22:40:11]Write i2c OK [22:40:11]MH_I2C_Read... [22:40:11]OFD Sender: No OFD packet to send [22:40:12]*** Cut start [22:40:12]*** Partial cut [22:40:12]*** CUTSNS_PIN = 1 [22:40:12]*** CUTSNS_PIN = 0 [22:40:12]*** Brake cut motor [22:40:12]Read from MH i2c: 01 [22:40:13]MH_I2C_Read... [22:40:13]*** Stop cut motor [22:40:13]*** Cut end [22:40:13]Read from MH i2c: 01 07 00 [22:40:13]MH_I2C_Read... [22:40:13]Read from MH i2c: 01 07 00 0B 0A 00 00 00 00 00 FF 0F 2A [22:40:13]process_action close_receipt done [22:40:13]requested_data is exist [22:40:13]produce_requested_data [22:40:13]requested_item fm.sn is exist - process it [22:40:13]wFMCommunicate request_size=4 [22:40:13]MH_SAM_APDU [22:40:13]CAPDU: 80 11 00 00 [22:40:13]Write to MH i2c: E2 08 00 0C 0A 80 11 00 00 00 00 00 00 90 [22:40:13]Write i2c OK [22:40:13]MH_I2C_Read... [22:40:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:13]Read from MH i2c: E2 [22:40:13]MH_I2C_Read... [22:40:13]Read from MH i2c: E2 17 00 [22:40:13]MH_I2C_Read... [22:40:13]Read from MH i2c: E2 17 00 0C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E7 [22:40:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:40:13]wFMCommunicate OK [22:40:13]requested_item fd.num is exist - process it [22:40:13]SAM_PROTO_GetFieldsCounters [22:40:13]wFMCommunicate request_size=4 [22:40:13]MH_SAM_APDU [22:40:13]CAPDU: 80 13 00 00 [22:40:13]Write to MH i2c: E2 08 00 0D 0A 80 13 00 00 00 00 00 00 93 [22:40:13]Write i2c OK [22:40:13]MH_I2C_Read... [22:40:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:40:13]Read from MH i2c: E2 [22:40:13]MH_I2C_Read... [22:40:13]Read from MH i2c: E2 62 00 [22:40:13]MH_I2C_Read... [22:40:13]Read from MH i2c: E2 62 00 0D 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 68 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 A4 01 00 00 5E 04 04 00 A4 01 00 00 57 04 04 00 A5 01 00 00 19 04 04 00 00 00 00 00 90 00 AB [22:40:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 68 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 A4 01 00 00 5E 04 04 00 A4 01 00 00 57 04 04 00 A5 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:40:13]wFMCommunicate OK [22:40:13]SAM_PROTO_GetFieldsCounters done [22:40:13]requested_item shift.num is exist - process it [22:40:13]requested_item shift.opened is exist - process it [22:40:13]req_shift_opened [22:40:13]FM_GetShiftState [22:40:13]SAM_PROTO_GetShiftState [22:40:13]wFMCommunicate request_size=4 [22:40:13]MH_SAM_APDU [22:40:13]CAPDU: 80 13 01 00 [22:40:13]Write to MH i2c: E2 08 00 0E 0A 80 13 01 00 00 00 00 00 95 [22:40:13]Write i2c OK [22:40:13]MH_I2C_Read... [22:40:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:13]Read from MH i2c: E2 [22:40:13]MH_I2C_Read... [22:40:13]Read from MH i2c: E2 0E 00 [22:40:13]MH_I2C_Read... [22:40:13]Read from MH i2c: E2 0E 00 0E 0A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 5C [22:40:13]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [22:40:13]wFMCommunicate OK [22:40:13]SAM_PROTO_GetShiftState done [22:40:13]FM_GetShiftState done [22:40:13]req_shift_opened done [22:40:13]requested_item shift.open_date is exist - process it [22:40:13]req_shift_open_date [22:40:13]req_shift_open_date done [22:40:13]produce_requested_data done [22:40:13]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228456,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [22:40:13]process_action_free close_receipt [22:40:13]json_value_free [22:40:13]json_value_free done [22:40:13]process_json_proto returns [22:40:13]Send response to host [22:40:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228456,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [22:40:13]free response buf [22:40:13]execute_script done [22:40:13]execute_script returns [22:40:13]free content buf [22:40:13]Sock 7.Close socket [22:40:13]Sock 7.Thread stoped [22:40:16]OFD Sender: No OFD packet to send [22:40:21]OFD Sender: No OFD packet to send [22:40:26]OFD Sender: No OFD packet to send [22:40:31]OFD Sender: No OFD packet to send [22:40:36]OFD Sender: No OFD packet to send [22:40:41]OFD Sender: No OFD packet to send [22:40:46]OFD Sender: No OFD packet to send [22:40:51]OFD Sender: No OFD packet to send [22:40:56]OFD Sender: No OFD packet to send [22:41:01]OFD Sender: No OFD packet to send [22:41:06]OFD Sender: No OFD packet to send [22:41:11]OFD Sender: No OFD packet to send [22:41:16]OFD Sender: No OFD packet to send [22:41:21]OFD Sender: No OFD packet to send [22:41:26]OFD Sender: No OFD packet to send [22:41:31]OFD Sender: No OFD packet to send [22:41:36]OFD Sender: No OFD packet to send [22:41:41]OFD Sender: No OFD packet to send [22:41:46]OFD Sender: No OFD packet to send [22:41:51]OFD Sender: No OFD packet to send [22:41:56]OFD Sender: No OFD packet to send [22:42:01]OFD Sender: No OFD packet to send [22:42:06]OFD Sender: No OFD packet to send [22:42:11]OFD Sender: No OFD packet to send [22:42:16]OFD Sender: No OFD packet to send [22:42:21]OFD Sender: No OFD packet to send [22:42:26]OFD Sender: No OFD packet to send [22:42:31]OFD Sender: No OFD packet to send [22:42:36]OFD Sender: No OFD packet to send [22:42:41]OFD Sender: No OFD packet to send [22:42:46]OFD Sender: No OFD packet to send [22:42:51]OFD Sender: No OFD packet to send [22:42:56]OFD Sender: No OFD packet to send [22:42:58]accept exits with 9 [22:42:58]New connection [22:42:58]New thread 3066977636 created [22:42:58]Thread 3066834276 joined [22:42:58]Waiting for new connection... [22:42:58] Sock 9.Parse request [22:42:58]Sock 9.Check first char [22:42:58]Sock 9.First char is OK [22:42:58]request: POST /json_proto HTTP/1.0 [22:42:58]Method: POST [22:42:58]URL: /json_proto [22:42:58]Method is POST - this is cgi request [22:42:58]url: /json_proto [22:42:58]query_string will be loaded in cgi processing [22:42:58]execute_cgi json_proto POST (null) [22:42:58]execute_cgi path=json_proto method=POST [22:42:58]POST find Content-Length [22:42:58]Host: 172.17.44.195:8080 [22:42:58]Content-Length: 678 [22:42:58]Content-Type: application/json [22:42:58] [22:42:58]POST finish read [22:42:58]Found Content-Length = 678 [22:42:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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:42:58]execute_script... [22:42: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)1965102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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:42:58]POST & json_proto [22:42:58]process_json_proto [22:42:58]json parsed OK: [22:42:58]protocol is kg_v1.0 [22:42:58]action value=close_receipt [22:42:58]process_action close_receipt [22:42:58]cmd_close_receipt [22:42:58]MH_GetDate [22:42:58]Write to MH i2c: F0 00 00 0F 0A 08 [22:42:58]Write i2c OK [22:42:58]MH_I2C_Read... [22:42:58]Read from MH i2c: F0 [22:42:58]MH_I2C_Read... [22:42:58]Read from MH i2c: F0 09 00 [22:42:58]MH_I2C_Read... [22:42:58]Read from MH i2c: F0 09 00 0F 0A 00 73 2A 18 67 82 C9 CF 66 AD [22:42:58]GetLastDocTimeStamp 1729636809 [22:42:58]current date 1729636979 [22:42:58]FM_GetShiftState [22:42:58]SAM_PROTO_GetShiftState [22:42:58]wFMCommunicate request_size=4 [22:42:58]MH_SAM_APDU [22:42:58]CAPDU: 80 13 01 00 [22:42:58]Write to MH i2c: E2 08 00 10 0A 80 13 01 00 00 00 00 00 97 [22:42:58]Write i2c OK [22:42:58]MH_I2C_Read... [22:42:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:58]Read from MH i2c: E2 [22:42:58]MH_I2C_Read... [22:42:58]Read from MH i2c: E2 0E 00 [22:42:58]MH_I2C_Read... [22:42:59]Read from MH i2c: E2 0E 00 10 0A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 5E [22:42:59]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [22:42:59]wFMCommunicate OK [22:42:59]SAM_PROTO_GetShiftState done [22:42:59]FM_GetShiftState done [22:42:59]opened in 1729555538 [22:42:59]opened+sec_in_day 1729641938 [22:42:59]quantity*price = 20003 [22:42:59]sum+1 = 20004 [22:42:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 421 22.10.2024 22:42 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228457 ФПД: 159756224202653 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T224259&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228457&fm=159756224202653&tin=02508201610067®Number=0000000000091685&sum=20000 [22:43:00]StoreToDocumentArchive [22:43:00]shift 535 fd 228457 [22:43:00]save to /storage/0535/doc_00228457 [22:43:00]save last doc name /storage/0535/doc_00228457 to /storage/kkm_last_doc_name [22:43:00]save OK [22:43:00]Clear old archive folders... [22:43:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:43:00]tlvbuf is 0030E310 [22:43:00]SAM_PROTO_ClearQueue [22:43:00]wFMCommunicate request_size=4 [22:43:00]MH_SAM_APDU [22:43:00]CAPDU: 80 09 00 00 [22:43:00]Write to MH i2c: E2 08 00 1D 0A 80 09 00 00 00 00 00 00 99 [22:43:00]Write i2c OK [22:43:00]MH_I2C_Read... [22:43:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:43:00]Read from MH i2c: E2 [22:43:00]MH_I2C_Read... [22:43:00]Read from MH i2c: E2 03 00 [22:43:00]MH_I2C_Read... [22:43:00]Read from MH i2c: E2 03 00 1D 0A 00 90 00 9B [22:43:00]RAPDU: 90 00 [22:43:00]wFMCommunicate OK [22:43:00]SAM_PROTO_ClearQueue done [22:43:00]KKMCreateOFDPacket [22:43:00]OFDProtocolAddRootSTLVToBuf [22:43:00]FM_MakeSignedData [22:43:00]FM_MakeSignedData [22:43:00]SAM_PROTO_SignData [22:43:00]wFMCommunicate request_size=4 [22:43:00]MH_SAM_APDU [22:43:00]CAPDU: 80 0D 01 02 [22:43:00]Write to MH i2c: E2 08 00 1E 0A 80 0D 01 02 00 00 00 00 A1 [22:43:00]Write i2c OK [22:43:00]MH_I2C_Read... [22:43:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:43:00]Read from MH i2c: E2 [22:43:00]MH_I2C_Read... [22:43:00]Read from MH i2c: E2 03 00 [22:43:00]MH_I2C_Read... [22:43:00]Read from MH i2c: E2 03 00 1E 0A 00 90 00 9C [22:43:00]RAPDU: 90 00 [22:43:00]wFMCommunicate OK [22:43:00]wFMCommunicate request_size=255 [22:43:00]MH_SAM_APDU [22:43: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 01 00 00 F4 03 04 00 73 2A 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 69 7C 03 00 35 04 06 00 91 [22:43:00]Write to MH i2c: E2 02 01 1F 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 01 00 00 F4 03 04 00 73 2A 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 69 7C 03 00 35 04 06 00 91 00 00 4E [22:43:00]Write i2c OK [22:43:00]MH_I2C_Read... [22:43:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:43:00]Read from MH i2c: E2 [22:43:00]MH_I2C_Read... [22:43:00]Read from MH i2c: E2 03 00 [22:43:00]MH_I2C_Read... [22:43:00]Read from MH i2c: E2 03 00 1F 0A 00 90 00 9D [22:43:00]RAPDU: 90 00 [22:43:00]wFMCommunicate OK [22:43:00]wFMCommunicate request_size=10 [22:43:00]MH_SAM_APDU [22:43:00]CAPDU: 80 0D 02 02 05 4C 24 FE 87 9D [22:43:00]Write to MH i2c: E2 0D 00 20 0A 80 0D 02 02 05 00 4C 24 FE 87 9D 00 00 40 [22:43:00]Write i2c OK [22:43:00]MH_I2C_Read... [22:43:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:43:00]Read from MH i2c: E2 [22:43:00]MH_I2C_Read... [22:43:00]Read from MH i2c: E2 03 00 [22:43:00]MH_I2C_Read... [22:43:00]Read from MH i2c: E2 03 00 20 0A 00 90 00 9E [22:43:00]RAPDU: 90 00 [22:43:00]wFMCommunicate OK [22:43:00]wFMCommunicate request_size=4 [22:43:00]MH_SAM_APDU [22:43:00]CAPDU: 80 0D 03 02 [22:43:00]Write to MH i2c: E2 08 00 21 0A 80 0D 03 02 00 00 00 00 A6 [22:43:00]Write i2c OK [22:43:00]MH_I2C_Read... [22:43:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:43:00]Read from MH i2c: E2 [22:43:00]MH_I2C_Read... [22:43:00]Read from MH i2c: E2 0B 00 [22:43:00]MH_I2C_Read... [22:43:00]Read from MH i2c: E2 0B 00 21 0A 00 DE 58 7B 88 87 69 03 6E 90 00 41 [22:43:00]RAPDU: DE 58 7B 88 87 69 03 6E 90 00 [22:43:00]wFMCommunicate OK [22:43:00]SAM_PROTO_SignData done [22:43:00]FM_MakeSignedData done [22:43:00]CreateOFDProtocolMessage [22:43:00]wFMCommunicate request_size=4 [22:43:00]MH_SAM_APDU [22:43:00]CAPDU: 80 11 00 00 [22:43:00]Write to MH i2c: E2 08 00 22 0A 80 11 00 00 00 00 00 00 A6 [22:43:00]Write i2c OK [22:43:00]MH_I2C_Read... [22:43:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:43:00]Read from MH i2c: E2 [22:43:00]MH_I2C_Read... [22:43:00]Read from MH i2c: E2 17 00 [22:43:00]MH_I2C_Read... [22:43:00]Read from MH i2c: E2 17 00 22 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FD [22:43:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:43:00]wFMCommunicate OK [22:43:00]CreateOFDProtocolMessage done [22:43:00]OFDSenderStorePacket 228457 [22:43:00]StoreOFDPacket docnum=228457 [22:43:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 12 95 07 01 69 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 01 00 00 F4 03 04 00 73 2A 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 69 7C 03 00 35 04 06 00 91 4C 24 FE 87 9D DE 58 7B 88 87 69 03 6E [22:43:00]CheckFolder [22:43:00]dirname=/storage/ofd_packets [22:43:00]CheckFolder done [22:43:00]ProducePacketName [22:43:00]name=ofd_packets/00228457 [22:43:00]NVStorageSaveData ofd_packets/00228457 [22:43:00]File name is /storage/ofd_packets/00228457 [22:43:00]Write 301 bytes [22:43:00]NVStorageSaveData done [22:43:00]OFDSenderStorePacket done [22:43:00]KKMCreateOFDPacket done [22:43:00]NVStorageSaveData kkm_last_timestamp [22:43:00]File name is /storage/kkm_last_timestamp [22:43:00]Write 4 bytes [22:43:00]NVStorageSaveData done [22:43:00]ExternCall_PrintAddStr [22:43:00]wPrintStart [22:43:00]Write to MH i2c: 01 00 00 23 0A 2D [22:43:00]Write i2c OK [22:43:00]MH_I2C_Read... [22:43:00]Read from MH i2c: 01 [22:43:00]MH_I2C_Read... [22:43:00]Read from MH i2c: 01 07 00 [22:43:00]MH_I2C_Read... [22:43:00]Read from MH i2c: 01 07 00 23 0A 00 00 00 00 00 FF 0F 42 [22:43:00]RasterBufferAndPrint [22:43:00]line Счет N : (1)1965102 [22:43:00]line ИНН: 02508201610067 [22:43:00]line Контрольно-Кассовый Чек [22:43:00]line ПРОДАЖА [22:43:00]line ТРК (МРК, ГНК) : 33 [22:43:00]line Товар: 2710124130 [22:43:00]line Аи-92-К-5 [22:43:00]line 2.990 * 66.90 [22:43:00]line = 200.03 [22:43:00]line НДС 12% НСП 1% [22:43:00]line > о реализуемом товаре [22:43:00]line ОКРУГЛЕНИЕ: -0.03 [22:43:00]line ИТОГО: 200.00 [22:43:00]line Внесено: 200.00 [22:43:00]line СДАЧА: 0.00 [22:43:00]line НСП 1% : 1.77 [22:43:00]line НДС 12% : 21.24 [22:43:00]line Наличными: 200.00 [22:43:00]line Безнал.: 0.00 [22:43:00]line Место: АЗС № 133 "Партнер Нефть" [22:43:00]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [22:43:00]line СНО: Общий режим [22:43:00]line Чек 421 22.10.2024 22:42 [22:43:00]line Смена: 535 ФФД: 1.0 [22:43:00]line ЗНМ: 0300000091 [22:43:00]line РНМ: 0000000000091685 [22:43:00]line Версия ККМ: 001 [22:43:00]line ФМ: 0000000000871839 [22:43:00]line ФД: 228457 [22:43:00]line ФПД: 159756224202653 [22:43:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T224259&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228457&fm=159756224202653&tin=02508201610067®Number=0000000000091685&sum=20000 [22:43:01]written 0, free lines is 4095 [22:43:01]OFD Sender: Processing packet 228457 [packets to send 38, broken 37] [22:43:01]ProducePacketName [22:43:01]name=ofd_packets/00228457 [22:43:01]OFD Sender: To server: pG, [22:43:01]CommunicateWithHost lk.salyk.kg:30040 [22:43:01]ConnectInit lk.salyk.kg [22:43:01]Connected sock=10 [22:43:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 12 95 07 01 69 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 01 00 00 F4 03 04 00 73 2A 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 69 7C 03 00 35 04 06 00 91 4C 24 FE 87 9D DE 58 7B 88 87 69 03 6E [22:43:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 C2 19 47 00 D2 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 69 7C 03 00 F4 03 04 00 6A D5 17 67 B6 04 01 00 00 BE B0 C0 F4 4D 6F F0 5E [22:43:01]CommunicateWithHost err = 0 [22:43:01]CheckOFDResponse [22:43:01]1017 (14) - 77093643461234 [22:43:01]1041 (16) - 0000000000871839 [22:43:01]1040 (4) - 228457 [22:43:01]1012 (4) - 22.10.2024 16:40 [22:43:01]1206 (1) - 0 [22:43:01]OFD Sender: Remove packet 228457 [22:43:01]ProducePacketName [22:43:01]name=ofd_packets/00228457 [22:43:01]NVStorageDeleteData [22:43:01]Write to MH i2c: 01 00 00 4D 0A 57 [22:43:01]Write i2c OK [22:43:01]MH_I2C_Read... [22:43:01]Read from MH i2c: 01 [22:43:01]MH_I2C_Read... [22:43:01]Read from MH i2c: 01 07 00 [22:43:01]MH_I2C_Read... [22:43:01]Read from MH i2c: 01 07 00 4D 0A 00 00 00 00 00 A2 0C 0C [22:43:01]RasterBufferAndPrint [22:43:01]line [22:43:01]line [22:43:01]line [22:43:01]line [22:43:01]line [22:43:01]written 0, free lines is 3239 [22:43:01]MH_Cut [22:43:01]Write to MH i2c: D1 01 00 54 0A 01 30 [22:43:01]Write i2c OK [22:43:01]MH_I2C_Read... [22:43:01]Read from MH i2c: D1 [22:43:01]MH_I2C_Read... [22:43:01]Read from MH i2c: D1 01 00 [22:43:01]MH_I2C_Read... [22:43:01]Read from MH i2c: D1 01 00 54 0A 00 2F [22:43:01]Write to MH i2c: 01 00 00 55 0A 5F [22:43:01]Write i2c OK [22:43:01]MH_I2C_Read... [22:43:01]OFD Sender: No OFD packet to send [22:43:02]*** Cut start [22:43:02]*** Partial cut [22:43:02]*** CUTSNS_PIN = 1 [22:43:02]*** CUTSNS_PIN = 0 [22:43:02]*** Brake cut motor [22:43:03]Read from MH i2c: 01 [22:43:03]MH_I2C_Read... [22:43:03]*** Stop cut motor [22:43:03]*** Cut end [22:43:03]Read from MH i2c: 01 07 00 [22:43:03]MH_I2C_Read... [22:43:03]Read from MH i2c: 01 07 00 55 0A 00 00 00 00 00 FF 0F 74 [22:43:03]process_action close_receipt done [22:43:03]requested_data is exist [22:43:03]produce_requested_data [22:43:03]requested_item fm.sn is exist - process it [22:43:03]wFMCommunicate request_size=4 [22:43:03]MH_SAM_APDU [22:43:03]CAPDU: 80 11 00 00 [22:43:03]Write to MH i2c: E2 08 00 56 0A 80 11 00 00 00 00 00 00 DA [22:43:03]Write i2c OK [22:43:03]MH_I2C_Read... [22:43:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:43:03]Read from MH i2c: E2 [22:43:03]MH_I2C_Read... [22:43:03]Read from MH i2c: E2 17 00 [22:43:03]MH_I2C_Read... [22:43:03]Read from MH i2c: E2 17 00 56 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 31 [22:43:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:43:03]wFMCommunicate OK [22:43:03]requested_item fd.num is exist - process it [22:43:03]SAM_PROTO_GetFieldsCounters [22:43:03]wFMCommunicate request_size=4 [22:43:03]MH_SAM_APDU [22:43:03]CAPDU: 80 13 00 00 [22:43:03]Write to MH i2c: E2 08 00 57 0A 80 13 00 00 00 00 00 00 DD [22:43:03]Write i2c OK [22:43:03]MH_I2C_Read... [22:43:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:43:03]Read from MH i2c: E2 [22:43:03]MH_I2C_Read... [22:43:03]Read from MH i2c: E2 62 00 [22:43:03]MH_I2C_Read... [22:43:03]Read from MH i2c: E2 62 00 57 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 69 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 A5 01 00 00 5E 04 04 00 A5 01 00 00 57 04 04 00 A6 01 00 00 19 04 04 00 00 00 00 00 90 00 F9 [22:43:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 69 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 A5 01 00 00 5E 04 04 00 A5 01 00 00 57 04 04 00 A6 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:43:03]wFMCommunicate OK [22:43:03]SAM_PROTO_GetFieldsCounters done [22:43:03]requested_item shift.num is exist - process it [22:43:03]requested_item shift.opened is exist - process it [22:43:03]req_shift_opened [22:43:03]FM_GetShiftState [22:43:03]SAM_PROTO_GetShiftState [22:43:03]wFMCommunicate request_size=4 [22:43:03]MH_SAM_APDU [22:43:03]CAPDU: 80 13 01 00 [22:43:03]Write to MH i2c: E2 08 00 58 0A 80 13 01 00 00 00 00 00 DF [22:43:03]Write i2c OK [22:43:03]MH_I2C_Read... [22:43:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:43:03]Read from MH i2c: E2 [22:43:03]MH_I2C_Read... [22:43:03]Read from MH i2c: E2 0E 00 [22:43:03]MH_I2C_Read... [22:43:03]Read from MH i2c: E2 0E 00 58 0A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 A6 [22:43:03]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [22:43:03]wFMCommunicate OK [22:43:03]SAM_PROTO_GetShiftState done [22:43:03]FM_GetShiftState done [22:43:03]req_shift_opened done [22:43:03]requested_item shift.open_date is exist - process it [22:43:03]req_shift_open_date [22:43:03]req_shift_open_date done [22:43:03]produce_requested_data done [22:43:03]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228457,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [22:43:03]process_action_free close_receipt [22:43:03]json_value_free [22:43:03]json_value_free done [22:43:03]process_json_proto returns [22:43:03]Send response to host [22:43:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228457,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [22:43:03]free response buf [22:43:03]execute_script done [22:43:03]execute_script returns [22:43:03]free content buf [22:43:03]Sock 9.Close socket [22:43:03]Sock 9.Thread stoped [22:43:06]OFD Sender: No OFD packet to send [22:43:11]OFD Sender: No OFD packet to send [22:43:16]OFD Sender: No OFD packet to send [22:43:21]OFD Sender: No OFD packet to send [22:43:26]OFD Sender: No OFD packet to send [22:43:31]OFD Sender: No OFD packet to send [22:43:36]OFD Sender: No OFD packet to send [22:43:41]OFD Sender: No OFD packet to send [22:43:46]OFD Sender: No OFD packet to send [22:43:51]OFD Sender: No OFD packet to send [22:43:56]OFD Sender: No OFD packet to send [22:44:01]OFD Sender: No OFD packet to send [22:44:06]OFD Sender: No OFD packet to send [22:44:11]OFD Sender: No OFD packet to send [22:44:16]OFD Sender: No OFD packet to send [22:44:21]OFD Sender: No OFD packet to send [22:44:26]OFD Sender: No OFD packet to send [22:44:31]OFD Sender: No OFD packet to send [22:44:36]OFD Sender: No OFD packet to send [22:44:41]OFD Sender: No OFD packet to send [22:44:46]OFD Sender: No OFD packet to send [22:44:51]OFD Sender: No OFD packet to send [22:44:56]OFD Sender: No OFD packet to send [22:45:01]OFD Sender: No OFD packet to send [22:45:06]OFD Sender: No OFD packet to send [22:45:11]OFD Sender: No OFD packet to send [22:45:16]OFD Sender: No OFD packet to send [22:45:21]OFD Sender: No OFD packet to send [22:45:26]OFD Sender: No OFD packet to send [22:45:31]OFD Sender: No OFD packet to send [22:45:36]OFD Sender: No OFD packet to send [22:45:41]OFD Sender: No OFD packet to send [22:45:46]OFD Sender: No OFD packet to send [22:45:51]OFD Sender: No OFD packet to send [22:45:56]OFD Sender: No OFD packet to send [22:46:01]OFD Sender: No OFD packet to send [22:46:06]OFD Sender: No OFD packet to send [22:46:11]OFD Sender: No OFD packet to send [22:46:16]OFD Sender: No OFD packet to send [22:46:21]OFD Sender: No OFD packet to send [22:46:26]OFD Sender: No OFD packet to send [22:46:32]OFD Sender: No OFD packet to send [22:46:37]OFD Sender: No OFD packet to send [22:46:42]OFD Sender: No OFD packet to send [22:46:47]OFD Sender: No OFD packet to send [22:46:52]OFD Sender: No OFD packet to send [22:46:57]OFD Sender: No OFD packet to send [22:47:02]OFD Sender: No OFD packet to send [22:47:07]OFD Sender: No OFD packet to send [22:47:12]OFD Sender: No OFD packet to send [22:47:17]OFD Sender: No OFD packet to send [22:47:22]OFD Sender: No OFD packet to send [22:47:27]OFD Sender: No OFD packet to send [22:47:32]OFD Sender: No OFD packet to send [22:47:37]OFD Sender: No OFD packet to send [22:47:42]OFD Sender: No OFD packet to send [22:47:47]OFD Sender: No OFD packet to send [22:47:52]OFD Sender: No OFD packet to send [22:47:57]OFD Sender: No OFD packet to send [22:48:02]OFD Sender: No OFD packet to send [22:48:07]OFD Sender: No OFD packet to send [22:48:12]OFD Sender: No OFD packet to send [22:48:17]OFD Sender: No OFD packet to send [22:48:22]OFD Sender: No OFD packet to send [22:48:27]OFD Sender: No OFD packet to send [22:48:32]OFD Sender: No OFD packet to send [22:48:37]OFD Sender: No OFD packet to send [22:48:42]OFD Sender: No OFD packet to send [22:48:47]OFD Sender: No OFD packet to send [22:48:52]OFD Sender: No OFD packet to send [22:48:57]OFD Sender: No OFD packet to send [22:49:02]OFD Sender: No OFD packet to send [22:49:07]OFD Sender: No OFD packet to send [22:49:12]OFD Sender: No OFD packet to send [22:49:17]OFD Sender: No OFD packet to send [22:49:22]OFD Sender: No OFD packet to send [22:49:27]OFD Sender: No OFD packet to send [22:49:32]OFD Sender: No OFD packet to send [22:49:37]OFD Sender: No OFD packet to send [22:49:42]OFD Sender: No OFD packet to send [22:49:47]OFD Sender: No OFD packet to send [22:49:52]OFD Sender: No OFD packet to send [22:49:57]OFD Sender: No OFD packet to send [22:50:02]OFD Sender: No OFD packet to send [22:50:07]OFD Sender: No OFD packet to send [22:50:12]OFD Sender: No OFD packet to send [22:50:17]OFD Sender: No OFD packet to send [22:50:22]OFD Sender: No OFD packet to send [22:50:27]OFD Sender: No OFD packet to send [22:50:32]OFD Sender: No OFD packet to send [22:50:37]OFD Sender: No OFD packet to send [22:50:42]OFD Sender: No OFD packet to send [22:50:47]OFD Sender: No OFD packet to send [22:50:52]OFD Sender: No OFD packet to send [22:50:57]OFD Sender: No OFD packet to send [22:51:02]OFD Sender: No OFD packet to send [22:51:07]OFD Sender: No OFD packet to send [22:51:12]OFD Sender: No OFD packet to send [22:51:17]OFD Sender: No OFD packet to send [22:51:22]OFD Sender: No OFD packet to send [22:51:27]OFD Sender: No OFD packet to send [22:51:32]OFD Sender: No OFD packet to send [22:51:37]OFD Sender: No OFD packet to send [22:51:42]OFD Sender: No OFD packet to send [22:51:47]OFD Sender: No OFD packet to send [22:51:52]OFD Sender: No OFD packet to send [22:51:57]OFD Sender: No OFD packet to send [22:52:02]OFD Sender: No OFD packet to send [22:52:07]OFD Sender: No OFD packet to send [22:52:12]OFD Sender: No OFD packet to send [22:52:17]OFD Sender: No OFD packet to send [22:52:22]OFD Sender: No OFD packet to send [22:52:27]OFD Sender: No OFD packet to send [22:52:32]OFD Sender: No OFD packet to send [22:52:37]OFD Sender: No OFD packet to send [22:52:42]OFD Sender: No OFD packet to send [22:52:47]OFD Sender: No OFD packet to send [22:52:52]OFD Sender: No OFD packet to send [22:52:57]OFD Sender: No OFD packet to send [22:53:02]OFD Sender: No OFD packet to send [22:53:07]OFD Sender: No OFD packet to send [22:53:12]OFD Sender: No OFD packet to send [22:53:17]OFD Sender: No OFD packet to send [22:53:22]OFD Sender: No OFD packet to send [22:53:27]OFD Sender: No OFD packet to send [22:53:32]OFD Sender: No OFD packet to send [22:53:37]OFD Sender: No OFD packet to send [22:53:42]OFD Sender: No OFD packet to send [22:53:47]OFD Sender: No OFD packet to send [22:53:52]OFD Sender: No OFD packet to send [22:53:57]OFD Sender: No OFD packet to send [22:54:02]OFD Sender: No OFD packet to send [22:54:07]OFD Sender: No OFD packet to send [22:54:12]OFD Sender: No OFD packet to send [22:54:17]OFD Sender: No OFD packet to send [22:54:22]OFD Sender: No OFD packet to send [22:54:27]OFD Sender: No OFD packet to send [22:54:32]OFD Sender: No OFD packet to send [22:54:37]OFD Sender: No OFD packet to send [22:54:42]OFD Sender: No OFD packet to send [22:54:47]OFD Sender: No OFD packet to send [22:54:52]OFD Sender: No OFD packet to send [22:54:57]OFD Sender: No OFD packet to send [22:55:02]OFD Sender: No OFD packet to send [22:55:07]OFD Sender: No OFD packet to send [22:55:12]OFD Sender: No OFD packet to send [22:55:17]OFD Sender: No OFD packet to send [22:55:22]OFD Sender: No OFD packet to send [22:55:27]OFD Sender: No OFD packet to send [22:55:32]OFD Sender: No OFD packet to send [22:55:37]OFD Sender: No OFD packet to send [22:55:42]OFD Sender: No OFD packet to send [22:55:47]OFD Sender: No OFD packet to send [22:55:52]OFD Sender: No OFD packet to send [22:55:57]OFD Sender: No OFD packet to send [22:56:02]OFD Sender: No OFD packet to send [22:56:07]OFD Sender: No OFD packet to send [22:56:12]OFD Sender: No OFD packet to send [22:56:17]OFD Sender: No OFD packet to send [22:56:22]OFD Sender: No OFD packet to send [22:56:27]OFD Sender: No OFD packet to send [22:56:32]OFD Sender: No OFD packet to send [22:56:37]OFD Sender: No OFD packet to send [22:56:42]OFD Sender: No OFD packet to send [22:56:47]OFD Sender: No OFD packet to send [22:56:52]OFD Sender: No OFD packet to send [22:56:57]OFD Sender: No OFD packet to send [22:57:02]OFD Sender: No OFD packet to send [22:57:07]OFD Sender: No OFD packet to send [22:57:12]OFD Sender: No OFD packet to send [22:57:17]OFD Sender: No OFD packet to send [22:57:22]OFD Sender: No OFD packet to send [22:57:27]OFD Sender: No OFD packet to send [22:57:32]OFD Sender: No OFD packet to send [22:57:37]OFD Sender: No OFD packet to send [22:57:42]OFD Sender: No OFD packet to send [22:57:47]OFD Sender: No OFD packet to send [22:57:52]OFD Sender: No OFD packet to send [22:57:57]OFD Sender: No OFD packet to send [22:58:02]OFD Sender: No OFD packet to send [22:58:07]OFD Sender: No OFD packet to send [22:58:12]OFD Sender: No OFD packet to send [22:58:17]OFD Sender: No OFD packet to send [22:58:22]OFD Sender: No OFD packet to send [22:58:27]OFD Sender: No OFD packet to send [22:58:32]OFD Sender: No OFD packet to send [22:58:37]OFD Sender: No OFD packet to send [22:58:42]OFD Sender: No OFD packet to send [22:58:47]OFD Sender: No OFD packet to send [22:58:52]OFD Sender: No OFD packet to send [22:58:57]OFD Sender: No OFD packet to send [22:59:02]OFD Sender: No OFD packet to send [22:59:07]OFD Sender: No OFD packet to send [22:59:12]OFD Sender: No OFD packet to send [22:59:17]OFD Sender: No OFD packet to send [22:59:22]OFD Sender: No OFD packet to send [22:59:27]OFD Sender: No OFD packet to send [22:59:32]OFD Sender: No OFD packet to send [22:59:37]OFD Sender: No OFD packet to send [22:59:42]OFD Sender: No OFD packet to send [22:59:47]OFD Sender: No OFD packet to send [22:59:52]OFD Sender: No OFD packet to send [22:59:57]OFD Sender: No OFD packet to send [23:00:02]OFD Sender: No OFD packet to send [23:00:07]OFD Sender: No OFD packet to send [23:00:12]OFD Sender: No OFD packet to send [23:00:17]OFD Sender: No OFD packet to send [23:00:22]OFD Sender: No OFD packet to send [23:00:27]OFD Sender: No OFD packet to send [23:00:32]OFD Sender: No OFD packet to send [23:00:37]OFD Sender: No OFD packet to send [23:00:42]OFD Sender: No OFD packet to send [23:00:47]OFD Sender: No OFD packet to send [23:00:52]OFD Sender: No OFD packet to send [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:43]OFD Sender: No OFD packet to send [23:05:48]OFD Sender: No OFD packet to send [23:05:53]OFD Sender: No OFD packet to send [23:05:58]OFD Sender: No OFD packet to send [23:06:03]OFD Sender: No OFD packet to send [23:06:08]OFD Sender: No OFD packet to send [23:06:13]OFD Sender: No OFD packet to send [23:06:18]OFD Sender: No OFD packet to send [23:06:23]OFD Sender: No OFD packet to send [23:06:28]OFD Sender: No OFD packet to send [23:06:33]OFD Sender: No OFD packet to send [23:06:38]OFD Sender: No OFD packet to send [23:06:43]OFD Sender: No OFD packet to send [23:06:48]OFD Sender: No OFD packet to send [23:06:53]OFD Sender: No OFD packet to send [23:06:58]OFD Sender: No OFD packet to send [23:07:03]OFD Sender: No OFD packet to send [23:07:08]OFD Sender: No OFD packet to send [23:07:13]OFD Sender: No OFD packet to send [23:07:18]OFD Sender: No OFD packet to send [23:07:23]OFD Sender: No OFD packet to send [23:07:28]OFD Sender: No OFD packet to send [23:07:33]OFD Sender: No OFD packet to send [23:07:38]OFD Sender: No OFD packet to send [23:07:43]OFD Sender: No OFD packet to send [23:07:48]OFD Sender: No OFD packet to send [23:07:53]OFD Sender: No OFD packet to send [23:07:58]OFD Sender: No OFD packet to send [23:08:03]OFD Sender: No OFD packet to send [23:08:08]OFD Sender: No OFD packet to send [23:08:13]OFD Sender: No OFD packet to send [23:08:18]OFD Sender: No OFD packet to send [23:08:23]OFD Sender: No OFD packet to send [23:08:28]OFD Sender: No OFD packet to send [23:08:33]OFD Sender: No OFD packet to send [23:08:38]OFD Sender: No OFD packet to send [23:08:43]OFD Sender: No OFD packet to send [23:08:48]OFD Sender: No OFD packet to send [23:08:53]OFD Sender: No OFD packet to send [23:08:58]OFD Sender: No OFD packet to send [23:09:03]OFD Sender: No OFD packet to send [23:09:08]OFD Sender: No OFD packet to send [23:09:13]OFD Sender: No OFD packet to send [23:09:18]OFD Sender: No OFD packet to send [23:09:23]OFD Sender: No OFD packet to send [23:09:28]OFD Sender: No OFD packet to send [23:09:33]OFD Sender: No OFD packet to send [23:09:38]OFD Sender: No OFD packet to send [23:09:43]OFD Sender: No OFD packet to send [23:09:48]OFD Sender: No OFD packet to send [23:09:53]OFD Sender: No OFD packet to send [23:09:58]OFD Sender: No OFD packet to send [23:10:03]OFD Sender: No OFD packet to send [23:10:08]OFD Sender: No OFD packet to send [23:10:13]OFD Sender: No OFD packet to send [23:10:18]OFD Sender: No OFD packet to send [23:10:23]OFD Sender: No OFD packet to send [23:10:28]OFD Sender: No OFD packet to send [23:10:33]OFD Sender: No OFD packet to send [23:10:38]OFD Sender: No OFD packet to send [23:10:43]OFD Sender: No OFD packet to send [23:10:48]OFD Sender: No OFD packet to send [23:10:53]OFD Sender: No OFD packet to send [23:10:58]OFD Sender: No OFD packet to send [23:11:03]OFD Sender: No OFD packet to send [23:11:08]OFD Sender: No OFD packet to send [23:11:13]OFD Sender: No OFD packet to send [23:11:18]OFD Sender: No OFD packet to send [23:11:23]OFD Sender: No OFD packet to send [23:11:28]OFD Sender: No OFD packet to send [23:11:33]OFD Sender: No OFD packet to send [23:11:38]OFD Sender: No OFD packet to send [23:11:43]OFD Sender: No OFD packet to send [23:11:48]OFD Sender: No OFD packet to send [23:11:53]OFD Sender: No OFD packet to send [23:11:58]OFD Sender: No OFD packet to send [23:12:03]OFD Sender: No OFD packet to send [23:12:08]OFD Sender: No OFD packet to send [23:12:13]OFD Sender: No OFD packet to send [23:12:18]OFD Sender: No OFD packet to send [23:12:23]OFD Sender: No OFD packet to send [23:12:28]OFD Sender: No OFD packet to send [23:12:33]OFD Sender: No OFD packet to send [23:12:38]OFD Sender: No OFD packet to send [23:12:43]OFD Sender: No OFD packet to send [23:12:48]OFD Sender: No OFD packet to send [23:12:53]OFD Sender: No OFD packet to send [23:12:58]OFD Sender: No OFD packet to send [23:13:03]OFD Sender: No OFD packet to send [23:13:08]OFD Sender: No OFD packet to send [23:13:13]OFD Sender: No OFD packet to send [23:13:18]OFD Sender: No OFD packet to send [23:13:23]OFD Sender: No OFD packet to send [23:13:28]OFD Sender: No OFD packet to send [23:13:33]OFD Sender: No OFD packet to send [23:13:38]OFD Sender: No OFD packet to send [23:13:43]OFD Sender: No OFD packet to send [23:13:48]OFD Sender: No OFD packet to send [23:13:53]OFD Sender: No OFD packet to send [23:13:58]OFD Sender: No OFD packet to send [23:14:03]OFD Sender: No OFD packet to send [23:14:08]OFD Sender: No OFD packet to send [23:14:13]OFD Sender: No OFD packet to send [23:14:18]OFD Sender: No OFD packet to send [23:14:23]OFD Sender: No OFD packet to send [23:14:28]OFD Sender: No OFD packet to send [23:14:33]OFD Sender: No OFD packet to send [23:14:38]OFD Sender: No OFD packet to send [23:14:43]OFD Sender: No OFD packet to send [23:14:48]OFD Sender: No OFD packet to send [23:14:53]OFD Sender: No OFD packet to send [23:14:58]OFD Sender: No OFD packet to send [23:15:03]OFD Sender: No OFD packet to send [23:15:08]OFD Sender: No OFD packet to send [23:15:13]OFD Sender: No OFD packet to send [23:15:18]OFD Sender: No OFD packet to send [23:15:23]OFD Sender: No OFD packet to send [23:15:28]OFD Sender: No OFD packet to send [23:15:33]OFD Sender: No OFD packet to send [23:15:38]OFD Sender: No OFD packet to send [23:15:43]OFD Sender: No OFD packet to send [23:15:48]OFD Sender: No OFD packet to send [23:15:53]OFD Sender: No OFD packet to send [23:15:58]OFD Sender: No OFD packet to send [23:16:03]OFD Sender: No OFD packet to send [23:16:08]OFD Sender: No OFD packet to send [23:16:13]OFD Sender: No OFD packet to send [23:16:18]OFD Sender: No OFD packet to send [23:16:23]OFD Sender: No OFD packet to send [23:16:28]OFD Sender: No OFD packet to send [23:16:33]OFD Sender: No OFD packet to send [23:16:38]OFD Sender: No OFD packet to send [23:16:43]OFD Sender: No OFD packet to send [23:16:48]OFD Sender: No OFD packet to send [23:16:53]OFD Sender: No OFD packet to send [23:16:58]OFD Sender: No OFD packet to send [23:17:03]OFD Sender: No OFD packet to send [23:17:08]OFD Sender: No OFD packet to send [23:17:13]OFD Sender: No OFD packet to send [23:17:18]OFD Sender: No OFD packet to send [23:17:23]OFD Sender: No OFD packet to send [23:17:28]OFD Sender: No OFD packet to send [23:17:33]OFD Sender: No OFD packet to send [23:17:38]OFD Sender: No OFD packet to send [23:17:43]OFD Sender: No OFD packet to send [23:17:48]OFD Sender: No OFD packet to send [23:17:53]OFD Sender: No OFD packet to send [23:17:58]OFD Sender: No OFD packet to send [23:18:03]OFD Sender: No OFD packet to send [23:18:08]OFD Sender: No OFD packet to send [23:18:13]OFD Sender: No OFD packet to send [23:18:18]OFD Sender: No OFD packet to send [23:18:23]OFD Sender: No OFD packet to send [23:18:28]OFD Sender: No OFD packet to send [23:18:33]OFD Sender: No OFD packet to send [23:18:38]OFD Sender: No OFD packet to send [23:18:43]OFD Sender: No OFD packet to send [23:18:48]OFD Sender: No OFD packet to send [23:18:53]OFD Sender: No OFD packet to send [23:18:58]OFD Sender: No OFD packet to send [23:19:03]OFD Sender: No OFD packet to send [23:19:08]OFD Sender: No OFD packet to send [23:19:13]OFD Sender: No OFD packet to send [23:19:18]OFD Sender: No OFD packet to send [23:19:23]OFD Sender: No OFD packet to send [23:19:28]OFD Sender: No OFD packet to send [23:19:33]OFD Sender: No OFD packet to send [23:19:38]OFD Sender: No OFD packet to send [23:19:43]OFD Sender: No OFD packet to send [23:19:48]OFD Sender: No OFD packet to send [23:19:53]OFD Sender: No OFD packet to send [23:19:58]OFD Sender: No OFD packet to send [23:20:03]OFD Sender: No OFD packet to send [23:20:08]OFD Sender: No OFD packet to send [23:20:13]OFD Sender: No OFD packet to send [23:20:18]OFD Sender: No OFD packet to send [23:20:23]OFD Sender: No OFD packet to send [23:20:28]OFD Sender: No OFD packet to send [23:20:33]OFD Sender: No OFD packet to send [23:20:38]OFD Sender: No OFD packet to send [23:20:43]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:08]OFD Sender: No OFD packet to send [23:21:13]OFD Sender: No OFD packet to send [23:21:18]OFD Sender: No OFD packet to send [23:21:23]OFD Sender: No OFD packet to send [23:21:28]OFD Sender: No OFD packet to send [23:21:33]OFD Sender: No OFD packet to send [23:21:38]OFD Sender: No OFD packet to send [23:21:43]OFD Sender: No OFD packet to send [23:21:48]OFD Sender: No OFD packet to send [23:21:53]OFD Sender: No OFD packet to send [23:21:58]OFD Sender: No OFD packet to send [23:22:03]OFD Sender: No OFD packet to send [23:22:08]OFD Sender: No OFD packet to send [23:22:13]OFD Sender: No OFD packet to send [23:22:18]OFD Sender: No OFD packet to send [23:22:23]OFD Sender: No OFD packet to send [23:22:28]OFD Sender: No OFD packet to send [23:22:33]OFD Sender: No OFD packet to send [23:22:38]OFD Sender: No OFD packet to send [23:22:43]OFD Sender: No OFD packet to send [23:22:48]OFD Sender: No OFD packet to send [23:22:53]OFD Sender: No OFD packet to send [23:22:58]OFD Sender: No OFD packet to send [23:23:03]OFD Sender: No OFD packet to send [23:23:08]OFD Sender: No OFD packet to send [23:23:13]OFD Sender: No OFD packet to send [23:23:18]OFD Sender: No OFD packet to send [23:23:23]OFD Sender: No OFD packet to send [23:23:28]OFD Sender: No OFD packet to send [23:23:33]OFD Sender: No OFD packet to send [23:23:38]OFD Sender: No OFD packet to send [23:23:43]OFD Sender: No OFD packet to send [23:23:48]OFD Sender: No OFD packet to send [23:23:53]OFD Sender: No OFD packet to send [23:23:58]OFD Sender: No OFD packet to send [23:24:03]OFD Sender: No OFD packet to send [23:24:08]OFD Sender: No OFD packet to send [23:24:13]OFD Sender: No OFD packet to send [23:24:18]OFD Sender: No OFD packet to send [23:24:23]OFD Sender: No OFD packet to send [23:24:28]OFD Sender: No OFD packet to send [23:24:33]OFD Sender: No OFD packet to send [23:24:39]OFD Sender: No OFD packet to send [23:24:44]OFD Sender: No OFD packet to send [23:24:49]OFD Sender: No OFD packet to send [23:24:54]OFD Sender: No OFD packet to send [23:24:59]OFD Sender: No OFD packet to send [23:25:04]OFD Sender: No OFD packet to send [23:25:09]OFD Sender: No OFD packet to send [23:25:14]OFD Sender: No OFD packet to send [23:25:19]OFD Sender: No OFD packet to send [23:25:24]OFD Sender: No OFD packet to send [23:25:29]OFD Sender: No OFD packet to send [23:25:34]OFD Sender: No OFD packet to send [23:25:39]OFD Sender: No OFD packet to send [23:25:44]OFD Sender: No OFD packet to send [23:25:49]OFD Sender: No OFD packet to send [23:25:54]OFD Sender: No OFD packet to send [23:25:59]OFD Sender: No OFD packet to send [23:26:04]OFD Sender: No OFD packet to send [23:26:09]OFD Sender: No OFD packet to send [23:26:14]OFD Sender: No OFD packet to send [23:26:19]OFD Sender: No OFD packet to send [23:26:24]OFD Sender: No OFD packet to send [23:26:29]OFD Sender: No OFD packet to send [23:26:34]OFD Sender: No OFD packet to send [23:26:39]OFD Sender: No OFD packet to send [23:26:44]OFD Sender: No OFD packet to send [23:26:49]OFD Sender: No OFD packet to send [23:26:54]OFD Sender: No OFD packet to send [23:26:59]OFD Sender: No OFD packet to send [23:27:04]OFD Sender: No OFD packet to send [23:27:09]OFD Sender: No OFD packet to send [23:27:14]OFD Sender: No OFD packet to send [23:27:19]OFD Sender: No OFD packet to send [23:27:24]OFD Sender: No OFD packet to send [23:27:29]OFD Sender: No OFD packet to send [23:27:34]OFD Sender: No OFD packet to send [23:27:39]OFD Sender: No OFD packet to send [23:27:44]OFD Sender: No OFD packet to send [23:27:49]OFD Sender: No OFD packet to send [23:27:54]OFD Sender: No OFD packet to send [23:27:59]OFD Sender: No OFD packet to send [23:28:04]OFD Sender: No OFD packet to send [23:28:09]OFD Sender: No OFD packet to send [23:28:14]OFD Sender: No OFD packet to send [23:28:19]OFD Sender: No OFD packet to send [23:28:24]OFD Sender: No OFD packet to send [23:28:29]OFD Sender: No OFD packet to send [23:28:34]OFD Sender: No OFD packet to send [23:28:39]OFD Sender: No OFD packet to send [23:28:44]OFD Sender: No OFD packet to send [23:28:49]OFD Sender: No OFD packet to send [23:28:54]OFD Sender: No OFD packet to send [23:28:59]OFD Sender: No OFD packet to send [23:29:04]OFD Sender: No OFD packet to send [23:29:09]OFD Sender: No OFD packet to send [23:29:14]OFD Sender: No OFD packet to send [23:29:19]OFD Sender: No OFD packet to send [23:29:24]OFD Sender: No OFD packet to send [23:29:29]OFD Sender: No OFD packet to send [23:29:34]OFD Sender: No OFD packet to send [23:29:39]OFD Sender: No OFD packet to send [23:29:44]OFD Sender: No OFD packet to send [23:29:49]OFD Sender: No OFD packet to send [23:29:54]OFD Sender: No OFD packet to send [23:29:59]OFD Sender: No OFD packet to send [23:30:04]OFD Sender: No OFD packet to send [23:30:09]OFD Sender: No OFD packet to send [23:30:14]OFD Sender: No OFD packet to send [23:30:19]OFD Sender: No OFD packet to send [23:30:24]OFD Sender: No OFD packet to send [23:30:29]OFD Sender: No OFD packet to send [23:30:34]OFD Sender: No OFD packet to send [23:30:39]OFD Sender: No OFD packet to send [23:30:44]OFD Sender: No OFD packet to send [23:30:49]OFD Sender: No OFD packet to send [23:30:54]OFD Sender: No OFD packet to send [23:30:59]OFD Sender: No OFD packet to send [23:31:04]OFD Sender: No OFD packet to send [23:31:09]OFD Sender: No OFD packet to send [23:31:14]OFD Sender: No OFD packet to send [23:31:19]OFD Sender: No OFD packet to send [23:31:24]OFD Sender: No OFD packet to send [23:31:29]OFD Sender: No OFD packet to send [23:31:34]OFD Sender: No OFD packet to send [23:31:39]OFD Sender: No OFD packet to send [23:31:44]OFD Sender: No OFD packet to send [23:31:49]OFD Sender: No OFD packet to send [23:31:54]OFD Sender: No OFD packet to send [23:31:59]OFD Sender: No OFD packet to send [23:32:04]OFD Sender: No OFD packet to send [23:32:09]OFD Sender: No OFD packet to send [23:32:14]OFD Sender: No OFD packet to send [23:32:19]OFD Sender: No OFD packet to send [23:32:24]OFD Sender: No OFD packet to send [23:32:29]OFD Sender: No OFD packet to send [23:32:34]OFD Sender: No OFD packet to send [23:32:39]OFD Sender: No OFD packet to send [23:32:44]OFD Sender: No OFD packet to send [23:32:49]OFD Sender: No OFD packet to send [23:32:54]OFD Sender: No OFD packet to send [23:32:59]OFD Sender: No OFD packet to send [23:33:04]OFD Sender: No OFD packet to send [23:33:09]OFD Sender: No OFD packet to send [23:33:14]OFD Sender: No OFD packet to send [23:33:19]OFD Sender: No OFD packet to send [23:33:24]OFD Sender: No OFD packet to send [23:33:29]OFD Sender: No OFD packet to send [23:33:34]OFD Sender: No OFD packet to send [23:33:39]OFD Sender: No OFD packet to send [23:33:44]OFD Sender: No OFD packet to send [23:33:49]OFD Sender: No OFD packet to send [23:33:54]OFD Sender: No OFD packet to send [23:33:59]OFD Sender: No OFD packet to send [23:34:04]OFD Sender: No OFD packet to send [23:34:09]OFD Sender: No OFD packet to send [23:34:14]OFD Sender: No OFD packet to send [23:34:19]OFD Sender: No OFD packet to send [23:34:24]OFD Sender: No OFD packet to send [23:34:29]OFD Sender: No OFD packet to send [23:34:34]OFD Sender: No OFD packet to send [23:34:39]OFD Sender: No OFD packet to send [23:34:44]OFD Sender: No OFD packet to send [23:34:49]OFD Sender: No OFD packet to send [23:34:54]OFD Sender: No OFD packet to send [23:34:59]OFD Sender: No OFD packet to send [23:35:04]OFD Sender: No OFD packet to send [23:35:09]OFD Sender: No OFD packet to send [23:35:14]OFD Sender: No OFD packet to send [23:35:19]OFD Sender: No OFD packet to send [23:35:24]OFD Sender: No OFD packet to send [23:35:29]OFD Sender: No OFD packet to send [23:35:34]OFD Sender: No OFD packet to send [23:35:39]OFD Sender: No OFD packet to send [23:35:44]OFD Sender: No OFD packet to send [23:35:49]OFD Sender: No OFD packet to send [23:35:54]OFD Sender: No OFD packet to send [23:35:59]OFD Sender: No OFD packet to send [23:36:04]OFD Sender: No OFD packet to send [23:36:09]OFD Sender: No OFD packet to send [23:36:14]OFD Sender: No OFD packet to send [23:36:19]OFD Sender: No OFD packet to send [23:36:24]OFD Sender: No OFD packet to send [23:36:29]OFD Sender: No OFD packet to send [23:36:34]OFD Sender: No OFD packet to send [23:36:39]OFD Sender: No OFD packet to send [23:36:44]OFD Sender: No OFD packet to send [23:36:49]OFD Sender: No OFD packet to send [23:36:54]OFD Sender: No OFD packet to send [23:36:59]OFD Sender: No OFD packet to send [23:37:04]OFD Sender: No OFD packet to send [23:37:09]OFD Sender: No OFD packet to send [23:37:14]OFD Sender: No OFD packet to send [23:37:19]OFD Sender: No OFD packet to send [23:37:24]OFD Sender: No OFD packet to send [23:37:29]OFD Sender: No OFD packet to send [23:37:34]OFD Sender: No OFD packet to send [23:37:39]OFD Sender: No OFD packet to send [23:37:44]OFD Sender: No OFD packet to send [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:54]OFD Sender: No OFD packet to send [23:38:59]OFD Sender: No OFD packet to send [23:39:04]OFD Sender: No OFD packet to send [23:39:09]OFD Sender: No OFD packet to send [23:39:14]OFD Sender: No OFD packet to send [23:39:19]OFD Sender: No OFD packet to send [23:39:24]OFD Sender: No OFD packet to send [23:39:29]OFD Sender: No OFD packet to send [23:39:34]OFD Sender: No OFD packet to send [23:39:39]OFD Sender: No OFD packet to send [23:39:44]OFD Sender: No OFD packet to send [23:39:49]OFD Sender: No OFD packet to send [23:39:54]OFD Sender: No OFD packet to send [23:39:59]OFD Sender: No OFD packet to send [23:40:04]OFD Sender: No OFD packet to send [23:40:09]OFD Sender: No OFD packet to send [23:40:14]OFD Sender: No OFD packet to send [23:40:19]OFD Sender: No OFD packet to send [23:40:24]OFD Sender: No OFD packet to send [23:40:29]OFD Sender: No OFD packet to send [23:40:34]OFD Sender: No OFD packet to send [23:40:39]OFD Sender: No OFD packet to send [23:40:44]OFD Sender: No OFD packet to send [23:40:49]OFD Sender: No OFD packet to send [23:40:54]OFD Sender: No OFD packet to send [23:40:59]OFD Sender: No OFD packet to send [23:41:04]OFD Sender: No OFD packet to send [23:41:09]OFD Sender: No OFD packet to send [23:41:14]OFD Sender: No OFD packet to send [23:41:19]OFD Sender: No OFD packet to send [23:41:24]OFD Sender: No OFD packet to send [23:41:29]OFD Sender: No OFD packet to send [23:41:34]OFD Sender: No OFD packet to send [23:41:39]OFD Sender: No OFD packet to send [23:41:44]OFD Sender: No OFD packet to send [23:41:49]OFD Sender: No OFD packet to send [23:41:54]OFD Sender: No OFD packet to send [23:41:59]OFD Sender: No OFD packet to send [23:42:04]OFD Sender: No OFD packet to send [23:42:09]OFD Sender: No OFD packet to send [23:42:14]OFD Sender: No OFD packet to send [23:42:19]OFD Sender: No OFD packet to send [23:42:24]OFD Sender: No OFD packet to send [23:42:29]OFD Sender: No OFD packet to send [23:42:34]OFD Sender: No OFD packet to send [23:42:39]OFD Sender: No OFD packet to send [23:42:44]OFD Sender: No OFD packet to send [23:42:49]OFD Sender: No OFD packet to send [23:42:54]OFD Sender: No OFD packet to send [23:42:59]OFD Sender: No OFD packet to send [23:43:04]OFD Sender: No OFD packet to send [23:43:09]OFD Sender: No OFD packet to send [23:43:14]OFD Sender: No OFD packet to send [23:43:19]OFD Sender: No OFD packet to send [23:43:24]OFD Sender: No OFD packet to send [23:43:29]OFD Sender: No OFD packet to send [23:43:34]OFD Sender: No OFD packet to send [23:43:39]OFD Sender: No OFD packet to send [23:43:44]OFD Sender: No OFD packet to send [23:43: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]OFD Sender: No OFD packet to send [23:48:25]OFD Sender: No OFD packet to send [23:48:27]accept exits with 7 [23:48:27]New connection [23:48:27]New thread 3066834276 created [23:48:27]Thread 3066977636 joined [23:48:27]Waiting for new connection... [23:48:27] Sock 7.Parse request [23:48:27]Sock 7.Check first char [23:48:27]Sock 7.First char is OK [23:48:27]request: POST /json_proto HTTP/1.0 [23:48:27]Method: POST [23:48:27]URL: /json_proto [23:48:27]Method is POST - this is cgi request [23:48:27]url: /json_proto [23:48:27]query_string will be loaded in cgi processing [23:48:27]execute_cgi json_proto POST (null) [23:48:27]execute_cgi path=json_proto method=POST [23:48:27]POST find Content-Length [23:48:27]Host: 172.17.44.195:8080 [23:48:27]Content-Length: 683 [23:48:27]Content-Type: application/json [23:48:27] [23:48:27]POST finish read [23:48:27]Found Content-Length = 683 [23:48:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.180, "sum" : 1350.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1350.00, "total" : 1350.00, "payments": [ { "type": 0, "sum" : 1350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:48:27]execute_script... [23:48: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)1965126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.180, "sum" : 1350.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1350.00, "total" : 1350.00, "payments": [ { "type": 0, "sum" : 1350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:48:27]POST & json_proto [23:48:27]process_json_proto [23:48:27]json parsed OK: [23:48:27]protocol is kg_v1.0 [23:48:27]action value=close_receipt [23:48:27]process_action close_receipt [23:48:27]cmd_close_receipt [23:48:27]MH_GetDate [23:48:27]Write to MH i2c: F0 00 00 59 0A 52 [23:48:27]Write i2c OK [23:48:27]MH_I2C_Read... [23:48:27]Read from MH i2c: F0 [23:48:27]MH_I2C_Read... [23:48:27]Read from MH i2c: F0 09 00 [23:48:27]MH_I2C_Read... [23:48:27]Read from MH i2c: F0 09 00 59 0A 00 CC 39 18 67 82 C9 CF 66 5F [23:48:27]GetLastDocTimeStamp 1729636979 [23:48:27]current date 1729640908 [23:48:27]FM_GetShiftState [23:48:27]SAM_PROTO_GetShiftState [23:48:27]wFMCommunicate request_size=4 [23:48:27]MH_SAM_APDU [23:48:27]CAPDU: 80 13 01 00 [23:48:27]Write to MH i2c: E2 08 00 5A 0A 80 13 01 00 00 00 00 00 E1 [23:48:27]Write i2c OK [23:48:27]MH_I2C_Read... [23:48:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:27]Read from MH i2c: E2 [23:48:27]MH_I2C_Read... [23:48:27]Read from MH i2c: E2 0E 00 [23:48:27]MH_I2C_Read... [23:48:27]Read from MH i2c: E2 0E 00 5A 0A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 A8 [23:48:27]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [23:48:27]wFMCommunicate OK [23:48:27]SAM_PROTO_GetShiftState done [23:48:27]FM_GetShiftState done [23:48:27]opened in 1729555538 [23:48:27]opened+sec_in_day 1729641938 [23:48:27]quantity*price = 135004 [23:48:27]sum+1 = 135005 [23:48:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 1350.00 Внесено: 1350.00 СДАЧА: 0.00 НСП 1% : 11.95 НДС 12% : 143.37 Наличными: 1350.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 422 22.10.2024 23:48 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228458 ФПД: 227472076684524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T234828&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228458&fm=227472076684524&tin=02508201610067®Number=0000000000091685&sum=135000 [23:48:28]StoreToDocumentArchive [23:48:28]shift 535 fd 228458 [23:48:28]save to /storage/0535/doc_00228458 [23:48:28]save last doc name /storage/0535/doc_00228458 to /storage/kkm_last_doc_name [23:48:28]save OK [23:48:28]Clear old archive folders... [23:48:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:48:28]tlvbuf is 0030E330 [23:48:28]SAM_PROTO_ClearQueue [23:48:28]wFMCommunicate request_size=4 [23:48:28]MH_SAM_APDU [23:48:28]CAPDU: 80 09 00 00 [23:48:28]Write to MH i2c: E2 08 00 67 0A 80 09 00 00 00 00 00 00 E3 [23:48:28]Write i2c OK [23:48:28]MH_I2C_Read... [23:48:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:48:28]Read from MH i2c: E2 [23:48:28]MH_I2C_Read... [23:48:28]Read from MH i2c: E2 03 00 [23:48:28]MH_I2C_Read... [23:48:28]Read from MH i2c: E2 03 00 67 0A 00 90 00 E5 [23:48:28]RAPDU: 90 00 [23:48:28]wFMCommunicate OK [23:48:28]SAM_PROTO_ClearQueue done [23:48:28]KKMCreateOFDPacket [23:48:28]OFDProtocolAddRootSTLVToBuf [23:48:28]FM_MakeSignedData [23:48:28]FM_MakeSignedData [23:48:28]SAM_PROTO_SignData [23:48:28]wFMCommunicate request_size=4 [23:48:28]MH_SAM_APDU [23:48:28]CAPDU: 80 0D 01 02 [23:48:28]Write to MH i2c: E2 08 00 68 0A 80 0D 01 02 00 00 00 00 EB [23:48:28]Write i2c OK [23:48:28]MH_I2C_Read... [23:48:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:48:28]Read from MH i2c: E2 [23:48:28]MH_I2C_Read... [23:48:28]Read from MH i2c: E2 03 00 [23:48:28]MH_I2C_Read... [23:48:28]Read from MH i2c: E2 03 00 68 0A 00 90 00 E6 [23:48:28]RAPDU: 90 00 [23:48:28]wFMCommunicate OK [23:48:28]wFMCommunicate request_size=255 [23:48:28]MH_SAM_APDU [23:48: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 D4 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 38 00 00 00 00 07 04 06 00 58 0F 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 01 00 00 F4 03 04 00 CC 39 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6A 7C 03 00 35 04 06 00 CE [23:48:28]Write to MH i2c: E2 02 01 69 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 D4 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 38 00 00 00 00 07 04 06 00 58 0F 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 01 00 00 F4 03 04 00 CC 39 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6A 7C 03 00 35 04 06 00 CE 00 00 7D [23:48:28]Write i2c OK [23:48:28]MH_I2C_Read... [23:48:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:28]Read from MH i2c: E2 [23:48:28]MH_I2C_Read... [23:48:28]Read from MH i2c: E2 03 00 [23:48:28]MH_I2C_Read... [23:48:28]Read from MH i2c: E2 03 00 69 0A 00 90 00 E7 [23:48:28]RAPDU: 90 00 [23:48:28]wFMCommunicate OK [23:48:28]wFMCommunicate request_size=10 [23:48:28]MH_SAM_APDU [23:48:28]CAPDU: 80 0D 02 02 05 E2 78 53 BC EC [23:48:28]Write to MH i2c: E2 0D 00 6A 0A 80 0D 02 02 05 00 E2 78 53 BC EC 00 00 4D [23:48:28]Write i2c OK [23:48:28]MH_I2C_Read... [23:48:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:28]Read from MH i2c: E2 [23:48:28]MH_I2C_Read... [23:48:28]Read from MH i2c: E2 03 00 [23:48:28]MH_I2C_Read... [23:48:28]Read from MH i2c: E2 03 00 6A 0A 00 90 00 E8 [23:48:28]RAPDU: 90 00 [23:48:28]wFMCommunicate OK [23:48:28]wFMCommunicate request_size=4 [23:48:28]MH_SAM_APDU [23:48:28]CAPDU: 80 0D 03 02 [23:48:28]Write to MH i2c: E2 08 00 6B 0A 80 0D 03 02 00 00 00 00 F0 [23:48:28]Write i2c OK [23:48:28]MH_I2C_Read... [23:48:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:48:28]Read from MH i2c: E2 [23:48:28]MH_I2C_Read... [23:48:28]Read from MH i2c: E2 0B 00 [23:48:28]MH_I2C_Read... [23:48:28]Read from MH i2c: E2 0B 00 6B 0A 00 1A 1C E7 18 88 D6 4C 24 90 00 F4 [23:48:28]RAPDU: 1A 1C E7 18 88 D6 4C 24 90 00 [23:48:28]wFMCommunicate OK [23:48:28]SAM_PROTO_SignData done [23:48:28]FM_MakeSignedData done [23:48:28]CreateOFDProtocolMessage [23:48:28]wFMCommunicate request_size=4 [23:48:28]MH_SAM_APDU [23:48:28]CAPDU: 80 11 00 00 [23:48:28]Write to MH i2c: E2 08 00 6C 0A 80 11 00 00 00 00 00 00 F0 [23:48:28]Write i2c OK [23:48:28]MH_I2C_Read... [23:48:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:28]Read from MH i2c: E2 [23:48:28]MH_I2C_Read... [23:48:28]Read from MH i2c: E2 17 00 [23:48:28]MH_I2C_Read... [23:48:28]Read from MH i2c: E2 17 00 6C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 47 [23:48:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [23:48:28]wFMCommunicate OK [23:48:28]CreateOFDProtocolMessage done [23:48:28]OFDSenderStorePacket 228458 [23:48:28]StoreOFDPacket docnum=228458 [23:48:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 35 21 07 01 59 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 38 00 00 00 00 07 04 06 00 58 0F 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 01 00 00 F4 03 04 00 CC 39 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6A 7C 03 00 35 04 06 00 CE E2 78 53 BC EC 1A 1C E7 18 88 D6 4C 24 [23:48:28]CheckFolder [23:48:28]dirname=/storage/ofd_packets [23:48:28]CheckFolder done [23:48:28]ProducePacketName [23:48:28]name=ofd_packets/00228458 [23:48:28]NVStorageSaveData ofd_packets/00228458 [23:48:28]File name is /storage/ofd_packets/00228458 [23:48:28]Write 301 bytes [23:48:28]NVStorageSaveData done [23:48:28]OFDSenderStorePacket done [23:48:28]KKMCreateOFDPacket done [23:48:28]NVStorageSaveData kkm_last_timestamp [23:48:28]File name is /storage/kkm_last_timestamp [23:48:28]Write 4 bytes [23:48:28]NVStorageSaveData done [23:48:28]ExternCall_PrintAddStr [23:48:28]wPrintStart [23:48:28]Write to MH i2c: 01 00 00 6D 0A 77 [23:48:28]Write i2c OK [23:48:28]MH_I2C_Read... [23:48:28]Read from MH i2c: 01 [23:48:28]MH_I2C_Read... [23:48:28]Read from MH i2c: 01 07 00 [23:48:28]MH_I2C_Read... [23:48:28]Read from MH i2c: 01 07 00 6D 0A 00 00 00 00 00 FF 0F 8C [23:48:28]RasterBufferAndPrint [23:48:28]line Счет N : (1)1965126 [23:48:28]line ИНН: 02508201610067 [23:48:28]line Контрольно-Кассовый Чек [23:48:28]line ПРОДАЖА [23:48:28]line ТРК (МРК, ГНК) : 33 [23:48:28]line Товар: 2710124130 [23:48:28]line Аи-92-К-5 [23:48:28]line 20.180 * 66.90 [23:48:28]line = 1350.04 [23:48:28]line НДС 12% НСП 1% [23:48:28]line > о реализуемом товаре [23:48:28]line ОКРУГЛЕНИЕ: -0.04 [23:48:28]line ИТОГО: 1350.00 [23:48:28]line Внесено: 1350.00 [23:48:28]line СДАЧА: 0.00 [23:48:28]line НСП 1% : 11.95 [23:48:28]line НДС 12% : 143.37 [23:48:28]line Наличными: 1350.00 [23:48:28]line Безнал.: 0.00 [23:48:28]line Место: АЗС № 133 "Партнер Нефть" [23:48:28]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [23:48:28]line СНО: Общий режим [23:48:28]line Чек 422 22.10.2024 23:48 [23:48:28]line Смена: 535 ФФД: 1.0 [23:48:28]line ЗНМ: 0300000091 [23:48:28]line РНМ: 0000000000091685 [23:48:28]line Версия ККМ: 001 [23:48:28]line ФМ: 0000000000871839 [23:48:28]line ФД: 228458 [23:48:28]line ФПД: 227472076684524 [23:48:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T234828&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228458&fm=227472076684524&tin=02508201610067®Number=0000000000091685&sum=135000 [23:48:29]OFD Sender: Processing packet 228458 [packets to send 38, broken 37] [23:48:29]ProducePacketName [23:48:29]name=ofd_packets/00228458 [23:48:29]OFD Sender: To server: pG, [23:48:29]CommunicateWithHost lk.salyk.kg:30040 [23:48:29]ConnectInit lk.salyk.kg [23:48:29]written 0, free lines is 4095 [23:48:29]Connected sock=10 [23:48:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 35 21 07 01 59 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 38 00 00 00 00 07 04 06 00 58 0F 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 01 00 00 F4 03 04 00 CC 39 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6A 7C 03 00 35 04 06 00 CE E2 78 53 BC EC 1A 1C E7 18 88 D6 4C 24 [23:48:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 7D 82 47 00 17 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6A 7C 03 00 F4 03 04 00 C3 E4 17 67 B6 04 01 00 00 2D FC 9C C1 D1 E3 03 49 [23:48:29]CommunicateWithHost err = 0 [23:48:29]CheckOFDResponse [23:48:29]1017 (14) - 77093643461234 [23:48:29]1041 (16) - 0000000000871839 [23:48:29]1040 (4) - 228458 [23:48:29]1012 (4) - 22.10.2024 17:45 [23:48:29]1206 (1) - 0 [23:48:29]OFD Sender: Remove packet 228458 [23:48:29]ProducePacketName [23:48:29]name=ofd_packets/00228458 [23:48:29]NVStorageDeleteData [23:48:29]Write to MH i2c: 01 00 00 97 0A A1 [23:48:29]Write i2c OK [23:48:29]MH_I2C_Read... [23:48:29]Read from MH i2c: 01 [23:48:29]MH_I2C_Read... [23:48:29]Read from MH i2c: 01 07 00 [23:48:29]MH_I2C_Read... [23:48:29]Read from MH i2c: 01 07 00 97 0A 00 00 00 00 00 A7 0C 5B [23:48:29]RasterBufferAndPrint [23:48:29]line [23:48:29]line [23:48:29]line [23:48:29]line [23:48:29]line [23:48:29]written 0, free lines is 3242 [23:48:29]MH_Cut [23:48:29]Write to MH i2c: D1 01 00 9E 0A 01 7A [23:48:29]Write i2c OK [23:48:29]MH_I2C_Read... [23:48:29]Read from MH i2c: D1 [23:48:29]MH_I2C_Read... [23:48:29]Read from MH i2c: D1 01 00 [23:48:29]MH_I2C_Read... [23:48:29]Read from MH i2c: D1 01 00 9E 0A 00 79 [23:48:29]Write to MH i2c: 01 00 00 9F 0A A9 [23:48:29]Write i2c OK [23:48:29]MH_I2C_Read... [23:48:30]OFD Sender: No OFD packet to send [23:48:30]*** Cut start [23:48:30]*** Partial cut [23:48:30]*** CUTSNS_PIN = 1 [23:48:30]*** CUTSNS_PIN = 0 [23:48:30]*** Brake cut motor [23:48:31]Read from MH i2c: 01 [23:48:31]MH_I2C_Read... [23:48:31]*** Stop cut motor [23:48:31]*** Cut end [23:48:31]Read from MH i2c: 01 07 00 [23:48:31]MH_I2C_Read... [23:48:31]Read from MH i2c: 01 07 00 9F 0A 00 00 00 00 00 FF 0F BE [23:48:31]process_action close_receipt done [23:48:31]requested_data is exist [23:48:31]produce_requested_data [23:48:31]requested_item fm.sn is exist - process it [23:48:31]wFMCommunicate request_size=4 [23:48:31]MH_SAM_APDU [23:48:31]CAPDU: 80 11 00 00 [23:48:31]Write to MH i2c: E2 08 00 A0 0A 80 11 00 00 00 00 00 00 24 [23:48:31]Write i2c OK [23:48:31]MH_I2C_Read... [23:48:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:31]Read from MH i2c: E2 [23:48:31]MH_I2C_Read... [23:48:31]Read from MH i2c: E2 17 00 [23:48:31]MH_I2C_Read... [23:48:31]Read from MH i2c: E2 17 00 A0 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7B [23:48:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [23:48:31]wFMCommunicate OK [23:48:31]requested_item fd.num is exist - process it [23:48:31]SAM_PROTO_GetFieldsCounters [23:48:31]wFMCommunicate request_size=4 [23:48:31]MH_SAM_APDU [23:48:31]CAPDU: 80 13 00 00 [23:48:31]Write to MH i2c: E2 08 00 A1 0A 80 13 00 00 00 00 00 00 27 [23:48:31]Write i2c OK [23:48:31]MH_I2C_Read... [23:48:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:48:31]Read from MH i2c: E2 [23:48:31]MH_I2C_Read... [23:48:31]Read from MH i2c: E2 62 00 [23:48:31]MH_I2C_Read... [23:48:31]Read from MH i2c: E2 62 00 A1 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6A 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 A6 01 00 00 5E 04 04 00 A6 01 00 00 57 04 04 00 A7 01 00 00 19 04 04 00 00 00 00 00 90 00 47 [23:48:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6A 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 A6 01 00 00 5E 04 04 00 A6 01 00 00 57 04 04 00 A7 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:48:31]wFMCommunicate OK [23:48:31]SAM_PROTO_GetFieldsCounters done [23:48:31]requested_item shift.num is exist - process it [23:48:31]requested_item shift.opened is exist - process it [23:48:31]req_shift_opened [23:48:31]FM_GetShiftState [23:48:31]SAM_PROTO_GetShiftState [23:48:31]wFMCommunicate request_size=4 [23:48:31]MH_SAM_APDU [23:48:31]CAPDU: 80 13 01 00 [23:48:31]Write to MH i2c: E2 08 00 A2 0A 80 13 01 00 00 00 00 00 29 [23:48:31]Write i2c OK [23:48:31]MH_I2C_Read... [23:48:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:31]Read from MH i2c: E2 [23:48:31]MH_I2C_Read... [23:48:31]Read from MH i2c: E2 0E 00 [23:48:31]MH_I2C_Read... [23:48:31]Read from MH i2c: E2 0E 00 A2 0A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 F0 [23:48:31]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [23:48:31]wFMCommunicate OK [23:48:31]SAM_PROTO_GetShiftState done [23:48:31]FM_GetShiftState done [23:48:31]req_shift_opened done [23:48:31]requested_item shift.open_date is exist - process it [23:48:31]req_shift_open_date [23:48:31]req_shift_open_date done [23:48:31]produce_requested_data done [23:48:31]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228458,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [23:48:31]process_action_free close_receipt [23:48:31]json_value_free [23:48:31]json_value_free done [23:48:31]process_json_proto returns [23:48:31]Send response to host [23:48:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228458,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [23:48:31]free response buf [23:48:31]execute_script done [23:48:31]execute_script returns [23:48:31]free content buf [23:48:31]Sock 7.Close socket [23:48:31]Sock 7.Thread stoped [23:48:35]OFD Sender: No OFD packet to send [23:48:40]OFD Sender: No OFD packet to send [23:48:45]OFD Sender: No OFD packet to send [23:48:47]accept exits with 9 [23:48:47]New connection [23:48:47]New thread 3066977636 created [23:48:47]Thread 3066834276 joined [23:48:47]Waiting for new connection... [23:48:47] Sock 9.Parse request [23:48:47]Sock 9.Check first char [23:48:47]Sock 9.First char is OK [23:48:47]request: POST /json_proto HTTP/1.0 [23:48:47]Method: POST [23:48:47]URL: /json_proto [23:48:47]Method is POST - this is cgi request [23:48:47]url: /json_proto [23:48:47]query_string will be loaded in cgi processing [23:48:47]execute_cgi json_proto POST (null) [23:48:47]execute_cgi path=json_proto method=POST [23:48:47]POST find Content-Length [23:48:47]Host: 172.17.44.195:8080 [23:48:47]Content-Length: 678 [23:48:47]Content-Type: application/json [23:48:47] [23:48:47]POST finish read [23:48:47]Found Content-Length = 678 [23:48:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.340, "sum" : 290.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:48:47]execute_script... [23:48: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)1965127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.340, "sum" : 290.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:48:47]POST & json_proto [23:48:47]process_json_proto [23:48:47]json parsed OK: [23:48:47]protocol is kg_v1.0 [23:48:47]action value=close_receipt [23:48:47]process_action close_receipt [23:48:47]cmd_close_receipt [23:48:47]MH_GetDate [23:48:47]Write to MH i2c: F0 00 00 A3 0A 9C [23:48:47]Write i2c OK [23:48:47]MH_I2C_Read... [23:48:47]Read from MH i2c: F0 [23:48:47]MH_I2C_Read... [23:48:47]Read from MH i2c: F0 09 00 [23:48:47]MH_I2C_Read... [23:48:47]Read from MH i2c: F0 09 00 A3 0A 00 E0 39 18 67 82 C9 CF 66 BD [23:48:47]GetLastDocTimeStamp 1729640908 [23:48:47]current date 1729640928 [23:48:47]FM_GetShiftState [23:48:47]SAM_PROTO_GetShiftState [23:48:47]wFMCommunicate request_size=4 [23:48:47]MH_SAM_APDU [23:48:47]CAPDU: 80 13 01 00 [23:48:47]Write to MH i2c: E2 08 00 A4 0A 80 13 01 00 00 00 00 00 2B [23:48:47]Write i2c OK [23:48:47]MH_I2C_Read... [23:48:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:47]Read from MH i2c: E2 [23:48:47]MH_I2C_Read... [23:48:47]Read from MH i2c: E2 0E 00 [23:48:47]MH_I2C_Read... [23:48:47]Read from MH i2c: E2 0E 00 A4 0A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 F2 [23:48:47]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [23:48:47]wFMCommunicate OK [23:48:47]SAM_PROTO_GetShiftState done [23:48:47]FM_GetShiftState done [23:48:47]opened in 1729555538 [23:48:47]opened+sec_in_day 1729641938 [23:48:47]quantity*price = 29034 [23:48:47]sum+1 = 29036 [23:48:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 290.00 Внесено: 290.00 СДАЧА: 0.00 НСП 1% : 2.57 НДС 12% : 30.83 Наличными: 290.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 423 22.10.2024 23:48 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228459 ФПД: 179448607482707 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T234848&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228459&fm=179448607482707&tin=02508201610067®Number=0000000000091685&sum=29000 [23:48:48]StoreToDocumentArchive [23:48:48]shift 535 fd 228459 [23:48:48]save to /storage/0535/doc_00228459 [23:48:48]save last doc name /storage/0535/doc_00228459 to /storage/kkm_last_doc_name [23:48:48]save OK [23:48:48]Clear old archive folders... [23:48:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:48:48]tlvbuf is 0030E070 [23:48:48]SAM_PROTO_ClearQueue [23:48:48]wFMCommunicate request_size=4 [23:48:48]MH_SAM_APDU [23:48:48]CAPDU: 80 09 00 00 [23:48:48]Write to MH i2c: E2 08 00 B1 0A 80 09 00 00 00 00 00 00 2D [23:48:48]Write i2c OK [23:48:48]MH_I2C_Read... [23:48:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:48:48]Read from MH i2c: E2 [23:48:48]MH_I2C_Read... [23:48:48]Read from MH i2c: E2 03 00 [23:48:48]MH_I2C_Read... [23:48:48]Read from MH i2c: E2 03 00 B1 0A 00 90 00 2F [23:48:48]RAPDU: 90 00 [23:48:48]wFMCommunicate OK [23:48:48]SAM_PROTO_ClearQueue done [23:48:48]KKMCreateOFDPacket [23:48:48]OFDProtocolAddRootSTLVToBuf [23:48:48]FM_MakeSignedData [23:48:48]FM_MakeSignedData [23:48:48]SAM_PROTO_SignData [23:48:48]wFMCommunicate request_size=4 [23:48:48]MH_SAM_APDU [23:48:48]CAPDU: 80 0D 01 02 [23:48:48]Write to MH i2c: E2 08 00 B2 0A 80 0D 01 02 00 00 00 00 35 [23:48:48]Write i2c OK [23:48:48]MH_I2C_Read... [23:48:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:48:48]Read from MH i2c: E2 [23:48:48]MH_I2C_Read... [23:48:48]Read from MH i2c: E2 03 00 [23:48:48]MH_I2C_Read... [23:48:48]Read from MH i2c: E2 03 00 B2 0A 00 90 00 30 [23:48:48]RAPDU: 90 00 [23:48:48]wFMCommunicate OK [23:48:48]wFMCommunicate request_size=255 [23:48:48]MH_SAM_APDU [23:48:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 E0 39 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6B 7C 03 00 35 04 06 00 A3 [23:48:48]Write to MH i2c: E2 02 01 B3 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 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 E0 39 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6B 7C 03 00 35 04 06 00 A3 00 00 D4 [23:48:48]Write i2c OK [23:48:48]MH_I2C_Read... [23:48:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:49]Read from MH i2c: E2 [23:48:49]MH_I2C_Read... [23:48:49]Read from MH i2c: E2 03 00 [23:48:49]MH_I2C_Read... [23:48:49]Read from MH i2c: E2 03 00 B3 0A 00 90 00 31 [23:48:49]RAPDU: 90 00 [23:48:49]wFMCommunicate OK [23:48:49]wFMCommunicate request_size=10 [23:48:49]MH_SAM_APDU [23:48:49]CAPDU: 80 0D 02 02 05 35 22 81 23 53 [23:48:49]Write to MH i2c: E2 0D 00 B4 0A 80 0D 02 02 05 00 35 22 81 23 53 00 00 90 [23:48:49]Write i2c OK [23:48:49]MH_I2C_Read... [23:48:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:49]Read from MH i2c: E2 [23:48:49]MH_I2C_Read... [23:48:49]Read from MH i2c: E2 03 00 [23:48:49]MH_I2C_Read... [23:48:49]Read from MH i2c: E2 03 00 B4 0A 00 90 00 32 [23:48:49]RAPDU: 90 00 [23:48:49]wFMCommunicate OK [23:48:49]wFMCommunicate request_size=4 [23:48:49]MH_SAM_APDU [23:48:49]CAPDU: 80 0D 03 02 [23:48:49]Write to MH i2c: E2 08 00 B5 0A 80 0D 03 02 00 00 00 00 3A [23:48:49]Write i2c OK [23:48:49]MH_I2C_Read... [23:48:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:48:49]Read from MH i2c: E2 [23:48:49]MH_I2C_Read... [23:48:49]Read from MH i2c: E2 0B 00 [23:48:49]MH_I2C_Read... [23:48:49]Read from MH i2c: E2 0B 00 B5 0A 00 3F D5 90 4E 4A 0B AE 99 90 00 C9 [23:48:49]RAPDU: 3F D5 90 4E 4A 0B AE 99 90 00 [23:48:49]wFMCommunicate OK [23:48:49]SAM_PROTO_SignData done [23:48:49]FM_MakeSignedData done [23:48:49]CreateOFDProtocolMessage [23:48:49]wFMCommunicate request_size=4 [23:48:49]MH_SAM_APDU [23:48:49]CAPDU: 80 11 00 00 [23:48:49]Write to MH i2c: E2 08 00 B6 0A 80 11 00 00 00 00 00 00 3A [23:48:49]Write i2c OK [23:48:49]MH_I2C_Read... [23:48:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:49]Read from MH i2c: E2 [23:48:49]MH_I2C_Read... [23:48:49]Read from MH i2c: E2 17 00 [23:48:49]MH_I2C_Read... [23:48:49]Read from MH i2c: E2 17 00 B6 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 91 [23:48:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [23:48:49]wFMCommunicate OK [23:48:49]CreateOFDProtocolMessage done [23:48:49]OFDSenderStorePacket 228459 [23:48:49]StoreOFDPacket docnum=228459 [23:48:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 6E B5 07 01 A0 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 E0 39 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6B 7C 03 00 35 04 06 00 A3 35 22 81 23 53 3F D5 90 4E 4A 0B AE 99 [23:48:49]CheckFolder [23:48:49]dirname=/storage/ofd_packets [23:48:49]CheckFolder done [23:48:49]ProducePacketName [23:48:49]name=ofd_packets/00228459 [23:48:49]NVStorageSaveData ofd_packets/00228459 [23:48:49]File name is /storage/ofd_packets/00228459 [23:48:49]Write 301 bytes [23:48:49]NVStorageSaveData done [23:48:49]OFDSenderStorePacket done [23:48:49]KKMCreateOFDPacket done [23:48:49]NVStorageSaveData kkm_last_timestamp [23:48:49]File name is /storage/kkm_last_timestamp [23:48:49]Write 4 bytes [23:48:49]NVStorageSaveData done [23:48:49]ExternCall_PrintAddStr [23:48:49]wPrintStart [23:48:49]Write to MH i2c: 01 00 00 B7 0A C1 [23:48:49]Write i2c OK [23:48:49]MH_I2C_Read... [23:48:49]Read from MH i2c: 01 [23:48:49]MH_I2C_Read... [23:48:49]Read from MH i2c: 01 07 00 [23:48:49]MH_I2C_Read... [23:48:49]Read from MH i2c: 01 07 00 B7 0A 00 00 00 00 00 FF 0F D6 [23:48:49]RasterBufferAndPrint [23:48:49]line Счет N : (1)1965127 [23:48:49]line ИНН: 02508201610067 [23:48:49]line Контрольно-Кассовый Чек [23:48:49]line ПРОДАЖА [23:48:49]line ТРК (МРК, ГНК) : 43 [23:48:49]line Товар: 2710124130 [23:48:49]line Аи-92-К-5 [23:48:49]line 4.340 * 66.90 [23:48:49]line = 290.35 [23:48:49]line НДС 12% НСП 1% [23:48:49]line > о реализуемом товаре [23:48:49]line ОКРУГЛЕНИЕ: -0.35 [23:48:49]line ИТОГО: 290.00 [23:48:49]line Внесено: 290.00 [23:48:49]line СДАЧА: 0.00 [23:48:49]line НСП 1% : 2.57 [23:48:49]line НДС 12% : 30.83 [23:48:49]line Наличными: 290.00 [23:48:49]line Безнал.: 0.00 [23:48:49]line Место: АЗС № 133 "Партнер Нефть" [23:48:49]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [23:48:49]line СНО: Общий режим [23:48:49]line Чек 423 22.10.2024 23:48 [23:48:49]line Смена: 535 ФФД: 1.0 [23:48:49]line ЗНМ: 0300000091 [23:48:49]line РНМ: 0000000000091685 [23:48:49]line Версия ККМ: 001 [23:48:49]line ФМ: 0000000000871839 [23:48:49]line ФД: 228459 [23:48:49]line ФПД: 179448607482707 [23:48:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T234848&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228459&fm=179448607482707&tin=02508201610067®Number=0000000000091685&sum=29000 [23:48:49]written 0, free lines is 4095 [23:48:49]OFD Sender: Processing packet 228459 [packets to send 38, broken 37] [23:48:49]ProducePacketName [23:48:49]name=ofd_packets/00228459 [23:48:49]OFD Sender: To server: pG, [23:48:49]CommunicateWithHost lk.salyk.kg:30040 [23:48:49]ConnectInit lk.salyk.kg [23:48:49]Connected sock=10 [23:48:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 6E B5 07 01 A0 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 E0 39 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6B 7C 03 00 35 04 06 00 A3 35 22 81 23 53 3F D5 90 4E 4A 0B AE 99 [23:48:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 34 BF 47 00 79 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6B 7C 03 00 F4 03 04 00 D7 E4 17 67 B6 04 01 00 00 68 B7 FB 6E 87 DA 0D 86 [23:48:49]CommunicateWithHost err = 0 [23:48:49]CheckOFDResponse [23:48:49]1017 (14) - 77093643461234 [23:48:49]1041 (16) - 0000000000871839 [23:48:49]1040 (4) - 228459 [23:48:49]1012 (4) - 22.10.2024 17:45 [23:48:49]1206 (1) - 0 [23:48:49]OFD Sender: Remove packet 228459 [23:48:49]ProducePacketName [23:48:49]name=ofd_packets/00228459 [23:48:49]NVStorageDeleteData [23:48:50]Write to MH i2c: 01 00 00 E1 0A EB [23:48:50]Write i2c OK [23:48:50]MH_I2C_Read... [23:48:50]Read from MH i2c: 01 [23:48:50]MH_I2C_Read... [23:48:50]Read from MH i2c: 01 07 00 [23:48:50]MH_I2C_Read... [23:48:50]Read from MH i2c: 01 07 00 E1 0A 00 00 00 00 00 A2 0C A0 [23:48:50]RasterBufferAndPrint [23:48:50]line [23:48:50]line [23:48:50]line [23:48:50]line [23:48:50]line [23:48:50]written 0, free lines is 3239 [23:48:50]MH_Cut [23:48:50]Write to MH i2c: D1 01 00 E8 0A 01 C4 [23:48:50]Write i2c OK [23:48:50]MH_I2C_Read... [23:48:50]Read from MH i2c: D1 [23:48:50]MH_I2C_Read... [23:48:50]Read from MH i2c: D1 01 00 [23:48:50]MH_I2C_Read... [23:48:50]Read from MH i2c: D1 01 00 E8 0A 00 C3 [23:48:50]Write to MH i2c: 01 00 00 E9 0A F3 [23:48:50]Write i2c OK [23:48:50]MH_I2C_Read... [23:48:50]OFD Sender: No OFD packet to send [23:48:51]*** Cut start [23:48:51]*** Partial cut [23:48:51]*** CUTSNS_PIN = 1 [23:48:51]*** CUTSNS_PIN = 0 [23:48:51]*** Brake cut motor [23:48:51]Read from MH i2c: 01 [23:48:51]MH_I2C_Read... [23:48:51]Read from MH i2c: 01 07 00 [23:48:51]MH_I2C_Read... [23:48:51]*** Stop cut motor [23:48:51]*** Cut end [23:48:51]Read from MH i2c: 01 07 00 E9 0A 00 00 00 00 00 FF 0F 08 [23:48:51]process_action close_receipt done [23:48:51]requested_data is exist [23:48:51]produce_requested_data [23:48:51]requested_item fm.sn is exist - process it [23:48:51]wFMCommunicate request_size=4 [23:48:51]MH_SAM_APDU [23:48:51]CAPDU: 80 11 00 00 [23:48:51]Write to MH i2c: E2 08 00 EA 0A 80 11 00 00 00 00 00 00 6E [23:48:51]Write i2c OK [23:48:51]MH_I2C_Read... [23:48:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:51]Read from MH i2c: E2 [23:48:51]MH_I2C_Read... [23:48:51]Read from MH i2c: E2 17 00 [23:48:51]MH_I2C_Read... [23:48:51]Read from MH i2c: E2 17 00 EA 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C5 [23:48:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [23:48:51]wFMCommunicate OK [23:48:51]requested_item fd.num is exist - process it [23:48:51]SAM_PROTO_GetFieldsCounters [23:48:51]wFMCommunicate request_size=4 [23:48:51]MH_SAM_APDU [23:48:51]CAPDU: 80 13 00 00 [23:48:51]Write to MH i2c: E2 08 00 EB 0A 80 13 00 00 00 00 00 00 71 [23:48:51]Write i2c OK [23:48:51]MH_I2C_Read... [23:48:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:48:51]Read from MH i2c: E2 [23:48:51]MH_I2C_Read... [23:48:51]Read from MH i2c: E2 62 00 [23:48:51]MH_I2C_Read... [23:48:51]Read from MH i2c: E2 62 00 EB 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6B 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 A7 01 00 00 5E 04 04 00 A7 01 00 00 57 04 04 00 A8 01 00 00 19 04 04 00 00 00 00 00 90 00 95 [23:48:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6B 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 A7 01 00 00 5E 04 04 00 A7 01 00 00 57 04 04 00 A8 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:48:51]wFMCommunicate OK [23:48:51]SAM_PROTO_GetFieldsCounters done [23:48:51]requested_item shift.num is exist - process it [23:48:51]requested_item shift.opened is exist - process it [23:48:51]req_shift_opened [23:48:51]FM_GetShiftState [23:48:51]SAM_PROTO_GetShiftState [23:48:51]wFMCommunicate request_size=4 [23:48:51]MH_SAM_APDU [23:48:51]CAPDU: 80 13 01 00 [23:48:51]Write to MH i2c: E2 08 00 EC 0A 80 13 01 00 00 00 00 00 73 [23:48:51]Write i2c OK [23:48:51]MH_I2C_Read... [23:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:51]Read from MH i2c: E2 [23:48:51]MH_I2C_Read... [23:48:51]Read from MH i2c: E2 0E 00 [23:48:51]MH_I2C_Read... [23:48:51]Read from MH i2c: E2 0E 00 EC 0A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 3A [23:48:51]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [23:48:51]wFMCommunicate OK [23:48:51]SAM_PROTO_GetShiftState done [23:48:51]FM_GetShiftState done [23:48:51]req_shift_opened done [23:48:51]requested_item shift.open_date is exist - process it [23:48:51]req_shift_open_date [23:48:51]req_shift_open_date done [23:48:51]produce_requested_data done [23:48:51]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228459,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [23:48:51]process_action_free close_receipt [23:48:51]json_value_free [23:48:51]json_value_free done [23:48:51]process_json_proto returns [23:48:51]Send response to host [23:48:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228459,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [23:48:51]free response buf [23:48:51]execute_script done [23:48:51]execute_script returns [23:48:51]free content buf [23:48:51]Sock 9.Close socket [23:48:51]Sock 9.Thread stoped [23:48:55]OFD Sender: No OFD packet to send [23:49:00]OFD Sender: No OFD packet to send [23:49:05]OFD Sender: No OFD packet to send [23:49:10]OFD Sender: No OFD packet to send [23:49:15]OFD Sender: No OFD packet to send [23:49:20]OFD Sender: No OFD packet to send [23:49:25]OFD Sender: No OFD packet to send [23:49:30]OFD Sender: No OFD packet to send [23:49:35]OFD Sender: No OFD packet to send [23:49:40]OFD Sender: No OFD packet to send [23:49:45]OFD Sender: No OFD packet to send [23:49:50]OFD Sender: No OFD packet to send [23:49:55]OFD Sender: No OFD packet to send [23:50:00]OFD Sender: No OFD packet to send [23:50:05]OFD Sender: No OFD packet to send [23:50:10]OFD Sender: No OFD packet to send [23:50:15]OFD Sender: No OFD packet to send [23:50:20]OFD Sender: No OFD packet to send [23:50:25]OFD Sender: No OFD packet to send [23:50:30]OFD Sender: No OFD packet to send [23:50:35]OFD Sender: No OFD packet to send [23:50:40]OFD Sender: No OFD packet to send [23:50:45]OFD Sender: No OFD packet to send [23:50:50]OFD Sender: No OFD packet to send [23:50:55]OFD Sender: No OFD packet to send [23:51:00]OFD Sender: No OFD packet to send [23:51:05]OFD Sender: No OFD packet to send [23:51:10]OFD Sender: No OFD packet to send [23:51:15]OFD Sender: No OFD packet to send [23:51:20]OFD Sender: No OFD packet to send [23:51:25]OFD Sender: No OFD packet to send [23:51:30]OFD Sender: No OFD packet to send [23:51:35]OFD Sender: No OFD packet to send [23:51:40]OFD Sender: No OFD packet to send [23:51:45]OFD Sender: No OFD packet to send [23:51:50]OFD Sender: No OFD packet to send [23:51:55]OFD Sender: No OFD packet to send [23:52:00]OFD Sender: No OFD packet to send [23:52:05]OFD Sender: No OFD packet to send [23:52:10]OFD Sender: No OFD packet to send [23:52:15]OFD Sender: No OFD packet to send [23:52:20]OFD Sender: No OFD packet to send [23:52:25]OFD Sender: No OFD packet to send [23:52:30]OFD Sender: No OFD packet to send [23:52:35]OFD Sender: No OFD packet to send [23:52:40]OFD Sender: No OFD packet to send [23:52:45]OFD Sender: No OFD packet to send [23:52:50]OFD Sender: No OFD packet to send [23:52:55]OFD Sender: No OFD packet to send [23:53:00]OFD Sender: No OFD packet to send [23:53:05]OFD Sender: No OFD packet to send [23:53:10]OFD Sender: No OFD packet to send [23:53:15]OFD Sender: No OFD packet to send [23:53:20]OFD Sender: No OFD packet to send [23:53:25]OFD Sender: No OFD packet to send [23:53:30]OFD Sender: No OFD packet to send [23:53:35]OFD Sender: No OFD packet to send [23:53:40]OFD Sender: No OFD packet to send [23:53:45]OFD Sender: No OFD packet to send [23:53:50]OFD Sender: No OFD packet to send [23:53:55]OFD Sender: No OFD packet to send [23:54:00]OFD Sender: No OFD packet to send [23:54:05]OFD Sender: No OFD packet to send [23:54:10]OFD Sender: No OFD packet to send [23:54:15]OFD Sender: No OFD packet to send [23:54:20]OFD Sender: No OFD packet to send [23:54:25]OFD Sender: No OFD packet to send [23:54:30]OFD Sender: No OFD packet to send [23:54:35]OFD Sender: No OFD packet to send [23:54:40]OFD Sender: No OFD packet to send [23:54:45]OFD Sender: No OFD packet to send [23:54:50]OFD Sender: No OFD packet to send [23:54:55]OFD Sender: No OFD packet to send [23:55:00]OFD Sender: No OFD packet to send [23:55:05]OFD Sender: No OFD packet to send [23:55:10]OFD Sender: No OFD packet to send [23:55:15]OFD Sender: No OFD packet to send [23:55:20]OFD Sender: No OFD packet to send [23:55:25]OFD Sender: No OFD packet to send [23:55:30]OFD Sender: No OFD packet to send [23:55:35]OFD Sender: No OFD packet to send [23:55:40]OFD Sender: No OFD packet to send [23:55:45]OFD Sender: No OFD packet to send [23:55:50]OFD Sender: No OFD packet to send [23:55:55]OFD Sender: No OFD packet to send [23:56:00]OFD Sender: No OFD packet to send [23:56:05]OFD Sender: No OFD packet to send [23:56:10]OFD Sender: No OFD packet to send [23:56:15]OFD Sender: No OFD packet to send [23:56:20]OFD Sender: No OFD packet to send [23:56:25]OFD Sender: No OFD packet to send [23:56:30]OFD Sender: No OFD packet to send [23:56:35]OFD Sender: No OFD packet to send [23:56:40]OFD Sender: No OFD packet to send [23:56:45]OFD Sender: No OFD packet to send [23:56:50]OFD Sender: No OFD packet to send [23:56:55]OFD Sender: No OFD packet to send [23:57:00]OFD Sender: No OFD packet to send [23:57:05]OFD Sender: No OFD packet to send [23:57:10]OFD Sender: No OFD packet to send [23:57:15]OFD Sender: No OFD packet to send [23:57:20]OFD Sender: No OFD packet to send [23:57:25]OFD Sender: No OFD packet to send [23:57:30]OFD Sender: No OFD packet to send [23:57:35]OFD Sender: No OFD packet to send [23:57:40]OFD Sender: No OFD packet to send [23:57:45]OFD Sender: No OFD packet to send [23:57:50]OFD Sender: No OFD packet to send [23:57:55]OFD Sender: No OFD packet to send [23:58:00]OFD Sender: No OFD packet to send [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:35]OFD Sender: No OFD packet to send [23:58:40]OFD Sender: No OFD packet to send [23:58:45]OFD Sender: No OFD packet to send [23:58:50]OFD Sender: No OFD packet to send [23:58:55]OFD Sender: No OFD packet to send [23:59:00]OFD Sender: No OFD packet to send [23:59:05]OFD Sender: No OFD packet to send [23:59:10]OFD Sender: No OFD packet to send [23:59:13]accept exits with 7 [23:59:13]New connection [23:59:13]New thread 3066834276 created [23:59:13]Thread 3066977636 joined [23:59:13]Waiting for new connection... [23:59:13] Sock 7.Parse request [23:59:13]Sock 7.Check first char [23:59:13]Sock 7.First char is OK [23:59:13]request: POST /json_proto HTTP/1.0 [23:59:13]Method: POST [23:59:13]URL: /json_proto [23:59:13]Method is POST - this is cgi request [23:59:13]url: /json_proto [23:59:13]query_string will be loaded in cgi processing [23:59:13]execute_cgi json_proto POST (null) [23:59:13]execute_cgi path=json_proto method=POST [23:59:13]POST find Content-Length [23:59:13]Host: 172.17.44.195:8080 [23:59:13]Content-Length: 679 [23:59:13]Content-Type: application/json [23:59:13] [23:59:13]POST finish read [23:59:13]Found Content-Length = 679 [23:59:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965130", "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" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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:13]execute_script... [23:59: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)1965130", "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" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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:13]POST & json_proto [23:59:13]process_json_proto [23:59:13]json parsed OK: [23:59:13]protocol is kg_v1.0 [23:59:13]action value=close_receipt [23:59:13]process_action close_receipt [23:59:13]cmd_close_receipt [23:59:13]MH_GetDate [23:59:13]Write to MH i2c: F0 00 00 ED 0A E6 [23:59:13]Write i2c OK [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: F0 [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: F0 09 00 [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: F0 09 00 ED 0A 00 52 3C 18 67 82 C9 CF 66 7C [23:59:13]GetLastDocTimeStamp 1729640928 [23:59:13]current date 1729641554 [23:59:13]FM_GetShiftState [23:59:13]SAM_PROTO_GetShiftState [23:59:13]wFMCommunicate request_size=4 [23:59:13]MH_SAM_APDU [23:59:13]CAPDU: 80 13 01 00 [23:59:13]Write to MH i2c: E2 08 00 EE 0A 80 13 01 00 00 00 00 00 75 [23:59:13]Write i2c OK [23:59:13]MH_I2C_Read... [23:59:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:13]Read from MH i2c: E2 [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: E2 0E 00 [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: E2 0E 00 EE 0A 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 3C [23:59:13]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [23:59:13]wFMCommunicate OK [23:59:13]SAM_PROTO_GetShiftState done [23:59:13]FM_GetShiftState done [23:59:13]opened in 1729555538 [23:59:13]opened+sec_in_day 1729641938 [23:59:13]quantity*price = 70044 [23:59:13]sum+1 = 70045 [23:59:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 424 22.10.2024 23:59 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228460 ФПД: 102337212224346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T235914&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228460&fm=102337212224346&tin=02508201610067®Number=0000000000091685&sum=70000 [23:59:14]StoreToDocumentArchive [23:59:14]shift 535 fd 228460 [23:59:14]save to /storage/0535/doc_00228460 [23:59:14]save last doc name /storage/0535/doc_00228460 to /storage/kkm_last_doc_name [23:59:14]save OK [23:59:14]Clear old archive folders... [23:59:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:59:14]tlvbuf is 002FA750 [23:59:14]SAM_PROTO_ClearQueue [23:59:14]wFMCommunicate request_size=4 [23:59:14]MH_SAM_APDU [23:59:14]CAPDU: 80 09 00 00 [23:59:14]Write to MH i2c: E2 08 00 FB 0A 80 09 00 00 00 00 00 00 77 [23:59:14]Write i2c OK [23:59:14]MH_I2C_Read... [23:59:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:59:14]Read from MH i2c: E2 [23:59:14]MH_I2C_Read... [23:59:14]Read from MH i2c: E2 03 00 [23:59:14]MH_I2C_Read... [23:59:14]Read from MH i2c: E2 03 00 FB 0A 00 90 00 79 [23:59:14]RAPDU: 90 00 [23:59:14]wFMCommunicate OK [23:59:14]SAM_PROTO_ClearQueue done [23:59:14]KKMCreateOFDPacket [23:59:14]OFDProtocolAddRootSTLVToBuf [23:59:14]FM_MakeSignedData [23:59:14]FM_MakeSignedData [23:59:14]SAM_PROTO_SignData [23:59:14]wFMCommunicate request_size=4 [23:59:14]MH_SAM_APDU [23:59:14]CAPDU: 80 0D 01 02 [23:59:14]Write to MH i2c: E2 08 00 FC 0A 80 0D 01 02 00 00 00 00 7F [23:59:14]Write i2c OK [23:59:14]MH_I2C_Read... [23:59:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:59:14]Read from MH i2c: E2 [23:59:14]MH_I2C_Read... [23:59:14]Read from MH i2c: E2 03 00 [23:59:14]MH_I2C_Read... [23:59:14]Read from MH i2c: E2 03 00 FC 0A 00 90 00 7A [23:59:14]RAPDU: 90 00 [23:59:14]wFMCommunicate OK [23:59:14]wFMCommunicate request_size=255 [23:59:14]MH_SAM_APDU [23:59:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 A8 01 00 00 F4 03 04 00 52 3C 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6C 7C 03 00 35 04 06 00 5D [23:59:14]Write to MH i2c: E2 02 01 FD 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 A8 01 00 00 F4 03 04 00 52 3C 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6C 7C 03 00 35 04 06 00 5D 00 00 3D [23:59:14]Write i2c OK [23:59:14]MH_I2C_Read... [23:59:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:59:14]Read from MH i2c: E2 [23:59:14]MH_I2C_Read... [23:59:14]Read from MH i2c: E2 03 00 [23:59:14]MH_I2C_Read... [23:59:14]Read from MH i2c: E2 03 00 FD 0A 00 90 00 7B [23:59:14]RAPDU: 90 00 [23:59:14]wFMCommunicate OK [23:59:14]wFMCommunicate request_size=10 [23:59:14]MH_SAM_APDU [23:59:14]CAPDU: 80 0D 02 02 05 13 3D 2E 93 5A [23:59:14]Write to MH i2c: E2 0D 00 FE 0A 80 0D 02 02 05 00 13 3D 2E 93 5A 00 00 F7 [23:59:14]Write i2c OK [23:59:14]MH_I2C_Read... [23:59:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:59:14]Read from MH i2c: E2 [23:59:14]MH_I2C_Read... [23:59:14]Read from MH i2c: E2 03 00 [23:59:14]MH_I2C_Read... [23:59:14]Read from MH i2c: E2 03 00 FE 0A 00 90 00 7C [23:59:14]RAPDU: 90 00 [23:59:14]wFMCommunicate OK [23:59:14]wFMCommunicate request_size=4 [23:59:14]MH_SAM_APDU [23:59:14]CAPDU: 80 0D 03 02 [23:59:14]Write to MH i2c: E2 08 00 FF 0A 80 0D 03 02 00 00 00 00 84 [23:59:14]Write i2c OK [23:59:14]MH_I2C_Read... [23:59:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:59:14]Read from MH i2c: E2 [23:59:14]MH_I2C_Read... [23:59:14]Read from MH i2c: E2 0B 00 [23:59:14]MH_I2C_Read... [23:59:14]Read from MH i2c: E2 0B 00 FF 0A 00 89 71 A0 5E 5D 4B 12 56 90 00 8D [23:59:14]RAPDU: 89 71 A0 5E 5D 4B 12 56 90 00 [23:59:14]wFMCommunicate OK [23:59:14]SAM_PROTO_SignData done [23:59:14]FM_MakeSignedData done [23:59:14]CreateOFDProtocolMessage [23:59:14]wFMCommunicate request_size=4 [23:59:14]MH_SAM_APDU [23:59:14]CAPDU: 80 11 00 00 [23:59:14]Write to MH i2c: E2 08 00 00 0B 80 11 00 00 00 00 00 00 85 [23:59:14]Write i2c OK [23:59:14]MH_I2C_Read... [23:59:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:14]Read from MH i2c: E2 [23:59:14]MH_I2C_Read... [23:59:14]Read from MH i2c: E2 17 00 [23:59:14]MH_I2C_Read... [23:59:14]Read from MH i2c: E2 17 00 00 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DC [23:59:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [23:59:14]wFMCommunicate OK [23:59:14]CreateOFDProtocolMessage done [23:59:14]OFDSenderStorePacket 228460 [23:59:14]StoreOFDPacket docnum=228460 [23:59:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 81 72 07 01 8A 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 A8 01 00 00 F4 03 04 00 52 3C 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6C 7C 03 00 35 04 06 00 5D 13 3D 2E 93 5A 89 71 A0 5E 5D 4B 12 56 [23:59:14]CheckFolder [23:59:14]dirname=/storage/ofd_packets [23:59:14]CheckFolder done [23:59:14]ProducePacketName [23:59:14]name=ofd_packets/00228460 [23:59:14]NVStorageSaveData ofd_packets/00228460 [23:59:14]File name is /storage/ofd_packets/00228460 [23:59:14]Write 301 bytes [23:59:14]NVStorageSaveData done [23:59:14]OFDSenderStorePacket done [23:59:14]KKMCreateOFDPacket done [23:59:14]NVStorageSaveData kkm_last_timestamp [23:59:14]File name is /storage/kkm_last_timestamp [23:59:14]Write 4 bytes [23:59:14]NVStorageSaveData done [23:59:14]ExternCall_PrintAddStr [23:59:14]wPrintStart [23:59:14]Write to MH i2c: 01 00 00 01 0B 0C [23:59:14]OFD Sender: Processing packet 228460 [packets to send 38, broken 37] [23:59:14]ProducePacketName [23:59:14]name=ofd_packets/00228460 [23:59:14]OFD Sender: To server: pG, [23:59:14]CommunicateWithHost lk.salyk.kg:30040 [23:59:14]ConnectInit lk.salyk.kg [23:59:14]Write i2c OK [23:59:14]MH_I2C_Read... [23:59:14]Read from MH i2c: 01 [23:59:14]MH_I2C_Read... [23:59:14]Read from MH i2c: 01 07 00 [23:59:14]MH_I2C_Read... [23:59:14]Read from MH i2c: 01 07 00 01 0B 00 00 00 00 00 FF 0F 21 [23:59:14]RasterBufferAndPrint [23:59:14]line Счет N : (1)1965130 [23:59:14]line ИНН: 02508201610067 [23:59:14]line Контрольно-Кассовый Чек [23:59:14]line ПРОДАЖА [23:59:14]line ТРК (МРК, ГНК) : 53 [23:59:14]line Товар: 2710124130 [23:59:14]line Аи-92-К-5 [23:59:14]line 10.470 * 66.90 [23:59:14]line = 700.44 [23:59:14]line НДС 12% НСП 1% [23:59:14]line > о реализуемом товаре [23:59:14]line ОКРУГЛЕНИЕ: -0.44 [23:59:14]line ИТОГО: 700.00 [23:59:14]line Внесено: 700.00 [23:59:14]line СДАЧА: 0.00 [23:59:14]line НСП 1% : 6.20 [23:59:14]line НДС 12% : 74.38 [23:59:14]line Наличными: 700.00 [23:59:14]line Безнал.: 0.00 [23:59:14]line Место: АЗС № 133 "Партнер Нефть" [23:59:14]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [23:59:14]line СНО: Общий режим [23:59:14]line Чек 424 22.10.2024 23:59 [23:59:14]line Смена: 535 ФФД: 1.0 [23:59:14]line ЗНМ: 0300000091 [23:59:14]line РНМ: 0000000000091685 [23:59:14]line Версия ККМ: 001 [23:59:14]line ФМ: 0000000000871839 [23:59:14]line ФД: 228460 [23:59:14]line ФПД: 102337212224346 [23:59:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T235914&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228460&fm=102337212224346&tin=02508201610067®Number=0000000000091685&sum=70000 [23:59:15]Connected sock=10 [23:59:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 81 72 07 01 8A 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 A8 01 00 00 F4 03 04 00 52 3C 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6C 7C 03 00 35 04 06 00 5D 13 3D 2E 93 5A 89 71 A0 5E 5D 4B 12 56 [23:59:15]written 0, free lines is 4095 [23:59:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 BA 10 47 00 C7 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6C 7C 03 00 F4 03 04 00 48 E7 17 67 B6 04 01 00 00 6F C2 7B 15 D9 1E 4D 7D [23:59:15]CommunicateWithHost err = 0 [23:59:15]CheckOFDResponse [23:59:15]1017 (14) - 77093643461234 [23:59:15]1041 (16) - 0000000000871839 [23:59:15]1040 (4) - 228460 [23:59:15]1012 (4) - 22.10.2024 17:56 [23:59:15]1206 (1) - 0 [23:59:15]OFD Sender: Remove packet 228460 [23:59:15]ProducePacketName [23:59:15]name=ofd_packets/00228460 [23:59:15]NVStorageDeleteData [23:59:15]Write to MH i2c: 01 00 00 2B 0B 36 [23:59:15]Write i2c OK [23:59:15]MH_I2C_Read... [23:59:15]Read from MH i2c: 01 [23:59:15]MH_I2C_Read... [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 2B 0B 00 00 00 00 00 A3 0C EC [23:59:15]RasterBufferAndPrint [23:59:15]line [23:59:15]line [23:59:15]line [23:59:15]line [23:59:15]line [23:59:15]written 0, free lines is 3239 [23:59:15]MH_Cut [23:59:15]Write to MH i2c: D1 01 00 32 0B 01 0F [23:59:15]Write i2c OK [23:59:15]MH_I2C_Read... [23:59:15]Read from MH i2c: D1 [23:59:15]MH_I2C_Read... [23:59:15]Read from MH i2c: D1 01 00 [23:59:15]MH_I2C_Read... [23:59:15]Read from MH i2c: D1 01 00 32 0B 00 0E [23:59:15]Write to MH i2c: 01 00 00 33 0B 3E [23:59:15]Write i2c OK [23:59:15]MH_I2C_Read... [23:59:15]OFD Sender: No OFD packet to send [23:59:16]*** Cut start [23:59:16]*** Partial cut [23:59:16]*** CUTSNS_PIN = 1 [23:59:16]*** CUTSNS_PIN = 0 [23:59:16]*** Brake cut motor [23:59:17]Read from MH i2c: 01 [23:59:17]MH_I2C_Read... [23:59:17]*** Stop cut motor [23:59:17]*** Cut end [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 33 0B 00 00 00 00 00 FF 0F 53 [23:59:17]process_action close_receipt done [23:59:17]requested_data is exist [23:59:17]produce_requested_data [23:59:17]requested_item fm.sn is exist - process it [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 34 0B 80 11 00 00 00 00 00 00 B9 [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 34 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 10 [23:59:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [23:59:17]wFMCommunicate OK [23:59:17]requested_item fd.num is exist - process it [23:59:17]SAM_PROTO_GetFieldsCounters [23:59:17]wFMCommunicate request_size=4 [23:59:17]MH_SAM_APDU [23:59:17]CAPDU: 80 13 00 00 [23:59:17]Write to MH i2c: E2 08 00 35 0B 80 13 00 00 00 00 00 00 BC [23:59:17]Write i2c OK [23:59:17]MH_I2C_Read... [23:59:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:59:17]Read from MH i2c: E2 [23:59:17]MH_I2C_Read... [23:59:17]Read from MH i2c: E2 62 00 [23:59:17]MH_I2C_Read... [23:59:17]Read from MH i2c: E2 62 00 35 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6C 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 A8 01 00 00 5E 04 04 00 A8 01 00 00 57 04 04 00 A9 01 00 00 19 04 04 00 00 00 00 00 90 00 E4 [23:59:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6C 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 A8 01 00 00 5E 04 04 00 A8 01 00 00 57 04 04 00 A9 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:59:17]wFMCommunicate OK [23:59:17]SAM_PROTO_GetFieldsCounters done [23:59:17]requested_item shift.num is exist - process it [23:59:17]requested_item shift.opened is exist - process it [23:59:17]req_shift_opened [23:59:17]FM_GetShiftState [23:59:17]SAM_PROTO_GetShiftState [23:59:17]wFMCommunicate request_size=4 [23:59:17]MH_SAM_APDU [23:59:17]CAPDU: 80 13 01 00 [23:59:17]Write to MH i2c: E2 08 00 36 0B 80 13 01 00 00 00 00 00 BE [23:59:17]Write i2c OK [23:59:17]MH_I2C_Read... [23:59:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:17]Read from MH i2c: E2 [23:59:17]MH_I2C_Read... [23:59:17]Read from MH i2c: E2 0E 00 [23:59:17]MH_I2C_Read... [23:59:17]Read from MH i2c: E2 0E 00 36 0B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 85 [23:59:17]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [23:59:17]wFMCommunicate OK [23:59:17]SAM_PROTO_GetShiftState done [23:59:17]FM_GetShiftState done [23:59:17]req_shift_opened done [23:59:17]requested_item shift.open_date is exist - process it [23:59:17]req_shift_open_date [23:59:17]req_shift_open_date done [23:59:17]produce_requested_data done [23:59:17]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228460,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [23:59:17]process_action_free close_receipt [23:59:17]json_value_free [23:59:17]json_value_free done [23:59:17]process_json_proto returns [23:59:17]Send response to host [23:59:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228460,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [23:59:17]free response buf [23:59:17]execute_script done [23:59:17]execute_script returns [23:59:17]free content buf [23:59:17]Sock 7.Close socket [23:59:17]Sock 7.Thread stoped [23:59:20]OFD Sender: No OFD packet to send [23:59:25]OFD Sender: No OFD packet to send [23:59:30]OFD Sender: No OFD packet to send [23:59:35]OFD Sender: No OFD packet to send [23:59:40]OFD Sender: No OFD packet to send [23:59:42]accept exits with 9 [23:59:42]New connection [23:59:42]New thread 3066977636 created [23:59:42]Thread 3066834276 joined [23:59:42]Waiting for new connection... [23:59:42] Sock 9.Parse request [23:59:42]Sock 9.Check first char [23:59:42]Sock 9.First char is OK [23:59:42]request: POST /json_proto HTTP/1.0 [23:59:42]Method: POST [23:59:42]URL: /json_proto [23:59:42]Method is POST - this is cgi request [23:59:42]url: /json_proto [23:59:42]query_string will be loaded in cgi processing [23:59:42]execute_cgi json_proto POST (null) [23:59:42]execute_cgi path=json_proto method=POST [23:59:42]POST find Content-Length [23:59:42]Host: 172.17.44.195:8080 [23:59:42]Content-Length: 683 [23:59:42]Content-Type: application/json [23:59:42] [23:59:42]POST finish read [23:59:42]Found Content-Length = 683 [23:59:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "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" ] } } [23:59:42]execute_script... [23:59: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)1965129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "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" ] } } [23:59:42]POST & json_proto [23:59:42]process_json_proto [23:59:42]json parsed OK: [23:59:42]protocol is kg_v1.0 [23:59:42]action value=close_receipt [23:59:42]process_action close_receipt [23:59:42]cmd_close_receipt [23:59:42]MH_GetDate [23:59:42]Write to MH i2c: F0 00 00 37 0B 31 [23:59:42]Write i2c OK [23:59:42]MH_I2C_Read... [23:59:42]Read from MH i2c: F0 [23:59:42]MH_I2C_Read... [23:59:42]Read from MH i2c: F0 09 00 [23:59:42]MH_I2C_Read... [23:59:42]Read from MH i2c: F0 09 00 37 0B 00 6F 3C 18 67 82 C9 CF 66 E4 [23:59:42]GetLastDocTimeStamp 1729641554 [23:59:42]current date 1729641583 [23:59:42]FM_GetShiftState [23:59:42]SAM_PROTO_GetShiftState [23:59:42]wFMCommunicate request_size=4 [23:59:42]MH_SAM_APDU [23:59:42]CAPDU: 80 13 01 00 [23:59:42]Write to MH i2c: E2 08 00 38 0B 80 13 01 00 00 00 00 00 C0 [23:59:42]Write i2c OK [23:59:42]MH_I2C_Read... [23:59:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:42]Read from MH i2c: E2 [23:59:42]MH_I2C_Read... [23:59:42]Read from MH i2c: E2 0E 00 [23:59:42]MH_I2C_Read... [23:59:42]Read from MH i2c: E2 0E 00 38 0B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 87 [23:59:42]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [23:59:42]wFMCommunicate OK [23:59:42]SAM_PROTO_GetShiftState done [23:59:42]FM_GetShiftState done [23:59:42]opened in 1729555538 [23:59:42]opened+sec_in_day 1729641938 [23:59:42]quantity*price = 200043 [23:59:42]sum+1 = 200044 [23:59:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 425 22.10.2024 23:59 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228461 ФПД: 36165321757957 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T235943&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228461&fm=36165321757957&tin=02508201610067®Number=0000000000091685&sum=200000 [23:59:43]StoreToDocumentArchive [23:59:43]shift 535 fd 228461 [23:59:43]save to /storage/0535/doc_00228461 [23:59:43]save last doc name /storage/0535/doc_00228461 to /storage/kkm_last_doc_name [23:59:43]save OK [23:59:43]Clear old archive folders... [23:59:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:59:43]tlvbuf is 002F1E90 [23:59:43]SAM_PROTO_ClearQueue [23:59:43]wFMCommunicate request_size=4 [23:59:43]MH_SAM_APDU [23:59:43]CAPDU: 80 09 00 00 [23:59:43]Write to MH i2c: E2 08 00 45 0B 80 09 00 00 00 00 00 00 C2 [23:59:43]Write i2c OK [23:59:43]MH_I2C_Read... [23:59:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:59:43]Read from MH i2c: E2 [23:59:43]MH_I2C_Read... [23:59:43]Read from MH i2c: E2 03 00 [23:59:43]MH_I2C_Read... [23:59:43]Read from MH i2c: E2 03 00 45 0B 00 90 00 C4 [23:59:43]RAPDU: 90 00 [23:59:43]wFMCommunicate OK [23:59:43]SAM_PROTO_ClearQueue done [23:59:43]KKMCreateOFDPacket [23:59:43]OFDProtocolAddRootSTLVToBuf [23:59:43]FM_MakeSignedData [23:59:43]FM_MakeSignedData [23:59:43]SAM_PROTO_SignData [23:59:43]wFMCommunicate request_size=4 [23:59:43]MH_SAM_APDU [23:59:43]CAPDU: 80 0D 01 02 [23:59:43]Write to MH i2c: E2 08 00 46 0B 80 0D 01 02 00 00 00 00 CA [23:59:43]Write i2c OK [23:59:43]MH_I2C_Read... [23:59:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:59:43]Read from MH i2c: E2 [23:59:43]MH_I2C_Read... [23:59:43]Read from MH i2c: E2 03 00 [23:59:43]MH_I2C_Read... [23:59:43]Read from MH i2c: E2 03 00 46 0B 00 90 00 C5 [23:59:43]RAPDU: 90 00 [23:59:43]wFMCommunicate OK [23:59:43]wFMCommunicate request_size=255 [23:59:43]MH_SAM_APDU [23:59: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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 A9 01 00 00 F4 03 04 00 6F 3C 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6D 7C 03 00 35 04 06 00 20 [23:59:43]Write to MH i2c: E2 02 01 47 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 A9 01 00 00 F4 03 04 00 6F 3C 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6D 7C 03 00 35 04 06 00 20 00 00 02 [23:59:43]Write i2c OK [23:59:43]MH_I2C_Read... [23:59:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:59:44]Read from MH i2c: E2 [23:59:44]MH_I2C_Read... [23:59:44]Read from MH i2c: E2 03 00 [23:59:44]MH_I2C_Read... [23:59:44]Read from MH i2c: E2 03 00 47 0B 00 90 00 C6 [23:59:44]RAPDU: 90 00 [23:59:44]wFMCommunicate OK [23:59:44]wFMCommunicate request_size=10 [23:59:44]MH_SAM_APDU [23:59:44]CAPDU: 80 0D 02 02 05 E4 65 28 15 05 [23:59:44]Write to MH i2c: E2 0D 00 48 0B 80 0D 02 02 05 00 E4 65 28 15 05 00 00 62 [23:59:44]Write i2c OK [23:59:44]MH_I2C_Read... [23:59:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:59:44]Read from MH i2c: E2 [23:59:44]MH_I2C_Read... [23:59:44]Read from MH i2c: E2 03 00 [23:59:44]MH_I2C_Read... [23:59:44]Read from MH i2c: E2 03 00 48 0B 00 90 00 C7 [23:59:44]RAPDU: 90 00 [23:59:44]wFMCommunicate OK [23:59:44]wFMCommunicate request_size=4 [23:59:44]MH_SAM_APDU [23:59:44]CAPDU: 80 0D 03 02 [23:59:44]Write to MH i2c: E2 08 00 49 0B 80 0D 03 02 00 00 00 00 CF [23:59:44]Write i2c OK [23:59:44]MH_I2C_Read... [23:59:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:59:44]Read from MH i2c: E2 [23:59:44]MH_I2C_Read... [23:59:44]Read from MH i2c: E2 0B 00 [23:59:44]MH_I2C_Read... [23:59:44]Read from MH i2c: E2 0B 00 49 0B 00 DB 8A 96 41 8C AE E6 37 90 00 63 [23:59:44]RAPDU: DB 8A 96 41 8C AE E6 37 90 00 [23:59:44]wFMCommunicate OK [23:59:44]SAM_PROTO_SignData done [23:59:44]FM_MakeSignedData done [23:59:44]CreateOFDProtocolMessage [23:59:44]wFMCommunicate request_size=4 [23:59:44]MH_SAM_APDU [23:59:44]CAPDU: 80 11 00 00 [23:59:44]Write to MH i2c: E2 08 00 4A 0B 80 11 00 00 00 00 00 00 CF [23:59:44]Write i2c OK [23:59:44]MH_I2C_Read... [23:59:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:44]Read from MH i2c: E2 [23:59:44]MH_I2C_Read... [23:59:44]Read from MH i2c: E2 17 00 [23:59:44]MH_I2C_Read... [23:59:44]Read from MH i2c: E2 17 00 4A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 26 [23:59:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [23:59:44]wFMCommunicate OK [23:59:44]CreateOFDProtocolMessage done [23:59:44]OFDSenderStorePacket 228461 [23:59:44]StoreOFDPacket docnum=228461 [23:59:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 5A DE 07 01 FF 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 A9 01 00 00 F4 03 04 00 6F 3C 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6D 7C 03 00 35 04 06 00 20 E4 65 28 15 05 DB 8A 96 41 8C AE E6 37 [23:59:44]CheckFolder [23:59:44]dirname=/storage/ofd_packets [23:59:44]CheckFolder done [23:59:44]ProducePacketName [23:59:44]name=ofd_packets/00228461 [23:59:44]NVStorageSaveData ofd_packets/00228461 [23:59:44]File name is /storage/ofd_packets/00228461 [23:59:44]Write 301 bytes [23:59:44]NVStorageSaveData done [23:59:44]OFDSenderStorePacket done [23:59:44]KKMCreateOFDPacket done [23:59:44]NVStorageSaveData kkm_last_timestamp [23:59:44]File name is /storage/kkm_last_timestamp [23:59:44]Write 4 bytes [23:59:44]NVStorageSaveData done [23:59:44]ExternCall_PrintAddStr [23:59:44]wPrintStart [23:59:44]Write to MH i2c: 01 00 00 4B 0B 56 [23:59:44]Write i2c OK [23:59:44]MH_I2C_Read... [23:59:44]Read from MH i2c: 01 [23:59:44]MH_I2C_Read... [23:59:44]Read from MH i2c: 01 07 00 [23:59:44]MH_I2C_Read... [23:59:44]Read from MH i2c: 01 07 00 4B 0B 00 00 00 00 00 FF 0F 6B [23:59:44]RasterBufferAndPrint [23:59:44]line Счет N : (1)1965129 [23:59:44]line ИНН: 02508201610067 [23:59:44]line Контрольно-Кассовый Чек [23:59:44]line ПРОДАЖА [23:59:44]line ТРК (МРК, ГНК) : 64 [23:59:44]line Товар: 2710124500 [23:59:44]line Аи-95-К-5 [23:59:44]line 26.960 * 74.20 [23:59:44]line = 2000.43 [23:59:44]line НДС 12% НСП 1% [23:59:44]line > о реализуемом товаре [23:59:44]line ОКРУГЛЕНИЕ: -0.43 [23:59:44]line ИТОГО: 2000.00 [23:59:44]line Внесено: 2000.00 [23:59:44]line СДАЧА: 0.00 [23:59:44]line НСП 1% : 17.70 [23:59:44]line НДС 12% : 212.43 [23:59:44]line Наличными: 2000.00 [23:59:44]line Безнал.: 0.00 [23:59:44]line Место: АЗС № 133 "Партнер Нефть" [23:59:44]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [23:59:44]line СНО: Общий режим [23:59:44]line Чек 425 22.10.2024 23:59 [23:59:44]line Смена: 535 ФФД: 1.0 [23:59:44]line ЗНМ: 0300000091 [23:59:44]line РНМ: 0000000000091685 [23:59:44]line Версия ККМ: 001 [23:59:44]line ФМ: 0000000000871839 [23:59:44]line ФД: 228461 [23:59:44]line ФПД: 36165321757957 [23:59:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T235943&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228461&fm=36165321757957&tin=02508201610067®Number=0000000000091685&sum=200000 [23:59:44]OFD Sender: Processing packet 228461 [packets to send 38, broken 37] [23:59:44]ProducePacketName [23:59:44]name=ofd_packets/00228461 [23:59:44]OFD Sender: To server: pG, [23:59:44]CommunicateWithHost lk.salyk.kg:30040 [23:59:44]ConnectInit lk.salyk.kg [23:59:44]written 0, free lines is 4095 [23:59:44]Connected sock=10 [23:59:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 5A DE 07 01 FF 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 A9 01 00 00 F4 03 04 00 6F 3C 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6D 7C 03 00 35 04 06 00 20 E4 65 28 15 05 DB 8A 96 41 8C AE E6 37 [23:59:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 CB A8 47 00 B0 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6D 7C 03 00 F4 03 04 00 66 E7 17 67 B6 04 01 00 00 9C 81 CF B0 5A 21 4B F6 [23:59:44]CommunicateWithHost err = 0 [23:59:44]CheckOFDResponse [23:59:44]1017 (14) - 77093643461234 [23:59:44]1041 (16) - 0000000000871839 [23:59:44]1040 (4) - 228461 [23:59:44]1012 (4) - 22.10.2024 17:56 [23:59:44]1206 (1) - 0 [23:59:44]OFD Sender: Remove packet 228461 [23:59:44]ProducePacketName [23:59:44]name=ofd_packets/00228461 [23:59:44]NVStorageDeleteData [23:59:45]Write to MH i2c: 01 00 00 75 0B 80 [23:59:45]Write i2c OK [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: 01 [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: 01 07 00 [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: 01 07 00 75 0B 00 00 00 00 00 AD 0C 40 [23:59:45]RasterBufferAndPrint [23:59:45]line [23:59:45]line [23:59:45]line [23:59:45]line [23:59:45]line [23:59:45]written 0, free lines is 3249 [23:59:45]MH_Cut [23:59:45]Write to MH i2c: D1 01 00 7C 0B 01 59 [23:59:45]Write i2c OK [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: D1 [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: D1 01 00 [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: D1 01 00 7C 0B 00 58 [23:59:45]Write to MH i2c: 01 00 00 7D 0B 88 [23:59:45]Write i2c OK [23:59:45]MH_I2C_Read... [23:59:45]OFD Sender: No OFD packet to send [23:59:46]*** Cut start [23:59:46]*** Partial cut [23:59:46]*** CUTSNS_PIN = 1 [23:59:46]*** CUTSNS_PIN = 0 [23:59:46]*** Brake cut motor [23:59:46]Read from MH i2c: 01 [23:59:46]MH_I2C_Read... [23:59:46]*** Stop cut motor [23:59:46]*** Cut end [23:59:46]Read from MH i2c: 01 07 00 [23:59:46]MH_I2C_Read... [23:59:46]Read from MH i2c: 01 07 00 7D 0B 00 00 00 00 00 FF 0F 9D [23:59:46]process_action close_receipt done [23:59:46]requested_data is exist [23:59:46]produce_requested_data [23:59:46]requested_item fm.sn is exist - process it [23:59:46]wFMCommunicate request_size=4 [23:59:46]MH_SAM_APDU [23:59:46]CAPDU: 80 11 00 00 [23:59:46]Write to MH i2c: E2 08 00 7E 0B 80 11 00 00 00 00 00 00 03 [23:59:46]Write i2c OK [23:59:46]MH_I2C_Read... [23:59:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:46]Read from MH i2c: E2 [23:59:46]MH_I2C_Read... [23:59:46]Read from MH i2c: E2 17 00 [23:59:46]MH_I2C_Read... [23:59:46]Read from MH i2c: E2 17 00 7E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5A [23:59:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [23:59:46]wFMCommunicate OK [23:59:46]requested_item fd.num is exist - process it [23:59:46]SAM_PROTO_GetFieldsCounters [23:59:46]wFMCommunicate request_size=4 [23:59:46]MH_SAM_APDU [23:59:46]CAPDU: 80 13 00 00 [23:59:46]Write to MH i2c: E2 08 00 7F 0B 80 13 00 00 00 00 00 00 06 [23:59:46]Write i2c OK [23:59:46]MH_I2C_Read... [23:59:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:59:46]Read from MH i2c: E2 [23:59:46]MH_I2C_Read... [23:59:46]Read from MH i2c: E2 62 00 [23:59:46]MH_I2C_Read... [23:59:46]Read from MH i2c: E2 62 00 7F 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6D 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 A9 01 00 00 5E 04 04 00 A9 01 00 00 57 04 04 00 AA 01 00 00 19 04 04 00 00 00 00 00 90 00 32 [23:59:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6D 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 A9 01 00 00 5E 04 04 00 A9 01 00 00 57 04 04 00 AA 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:59:46]wFMCommunicate OK [23:59:46]SAM_PROTO_GetFieldsCounters done [23:59:46]requested_item shift.num is exist - process it [23:59:46]requested_item shift.opened is exist - process it [23:59:46]req_shift_opened [23:59:46]FM_GetShiftState [23:59:46]SAM_PROTO_GetShiftState [23:59:46]wFMCommunicate request_size=4 [23:59:46]MH_SAM_APDU [23:59:46]CAPDU: 80 13 01 00 [23:59:46]Write to MH i2c: E2 08 00 80 0B 80 13 01 00 00 00 00 00 08 [23:59:46]Write i2c OK [23:59:46]MH_I2C_Read... [23:59:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:46]Read from MH i2c: E2 [23:59:46]MH_I2C_Read... [23:59:46]Read from MH i2c: E2 0E 00 [23:59:46]MH_I2C_Read... [23:59:46]Read from MH i2c: E2 0E 00 80 0B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 CF [23:59:46]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [23:59:46]wFMCommunicate OK [23:59:46]SAM_PROTO_GetShiftState done [23:59:46]FM_GetShiftState done [23:59:46]req_shift_opened done [23:59:46]requested_item shift.open_date is exist - process it [23:59:46]req_shift_open_date [23:59:46]req_shift_open_date done [23:59:46]produce_requested_data done [23:59:46]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228461,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [23:59:46]process_action_free close_receipt [23:59:46]json_value_free [23:59:46]json_value_free done [23:59:46]process_json_proto returns [23:59:46]Send response to host [23:59:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228461,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [23:59:46]free response buf [23:59:46]execute_script done [23:59:46]execute_script returns [23:59:46]free content buf [23:59:46]Sock 9.Close socket [23:59:46]Sock 9.Thread stoped [23:59:50]OFD Sender: No OFD packet to send [23:59:55]OFD Sender: No OFD packet to send [00:00:00]OFD Sender: No OFD packet to send [00:00:05]OFD Sender: No OFD packet to send [00:00:10]OFD Sender: No OFD packet to send [00:00:15]OFD Sender: No OFD packet to send [00:00:20]OFD Sender: No OFD packet to send [00:00:25]OFD Sender: No OFD packet to send [00:00:30]OFD Sender: No OFD packet to send [00:00:35]OFD Sender: No OFD packet to send [00:00:40]OFD Sender: No OFD packet to send [00:00:45]OFD Sender: No OFD packet to send [00:00:50]OFD Sender: No OFD packet to send [00:00:55]OFD Sender: No OFD packet to send [00:01:00]OFD Sender: No OFD packet to send [00:01:05]OFD Sender: No OFD packet to send [00:01:10]OFD Sender: No OFD packet to send [00:01:15]OFD Sender: No OFD packet to send [00:01:20]OFD Sender: No OFD packet to send [00:01:25]OFD Sender: No OFD packet to send [00:01:30]OFD Sender: No OFD packet to send [00:01:35]OFD Sender: No OFD packet to send [00:01:40]OFD Sender: No OFD packet to send [00:01:45]OFD Sender: No OFD packet to send [00:01:50]OFD Sender: No OFD packet to send [00:01:55]OFD Sender: No OFD packet to send [00:02:00]OFD Sender: No OFD packet to send [00:02:05]OFD Sender: No OFD packet to send [00:02:10]OFD Sender: No OFD packet to send [00:02:15]OFD Sender: No OFD packet to send [00:02:20]OFD Sender: No OFD packet to send [00:02:25]OFD Sender: No OFD packet to send [00:02:30]OFD Sender: No OFD packet to send [00:02:35]OFD Sender: No OFD packet to send [00:02:40]OFD Sender: No OFD packet to send [00:02:45]OFD Sender: No OFD packet to send [00:02:46]accept exits with 7 [00:02:46]New connection [00:02:46]New thread 3066834276 created [00:02:46]Thread 3066977636 joined [00:02:46]Waiting for new connection... [00:02:46] Sock 7.Parse request [00:02:46]Sock 7.Check first char [00:02:46]Sock 7.First char is OK [00:02:46]request: POST /json_proto HTTP/1.0 [00:02:46]Method: POST [00:02:46]URL: /json_proto [00:02:46]Method is POST - this is cgi request [00:02:46]url: /json_proto [00:02:46]query_string will be loaded in cgi processing [00:02:46]execute_cgi json_proto POST (null) [00:02:46]execute_cgi path=json_proto method=POST [00:02:46]POST find Content-Length [00:02:46]Host: 172.17.44.195:8080 [00:02:46]Content-Length: 751 [00:02:46]Content-Type: application/json [00:02:46] [00:02:46]POST finish read [00:02:46]Found Content-Length = 751 [00:02:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 55.590, "sum" : 3802.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3802.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:02:46]execute_script... [00:02: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)1965131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 55.590, "sum" : 3802.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3802.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:02:46]POST & json_proto [00:02:46]process_json_proto [00:02:46]json parsed OK: [00:02:46]protocol is kg_v1.0 [00:02:46]action value=close_receipt [00:02:46]process_action close_receipt [00:02:46]cmd_close_receipt [00:02:46]MH_GetDate [00:02:46]Write to MH i2c: F0 00 00 81 0B 7B [00:02:46]Write i2c OK [00:02:46]MH_I2C_Read... [00:02:46]Read from MH i2c: F0 [00:02:46]MH_I2C_Read... [00:02:46]Read from MH i2c: F0 09 00 [00:02:46]MH_I2C_Read... [00:02:46]Read from MH i2c: F0 09 00 81 0B 00 27 3D 18 67 82 C9 CF 66 E7 [00:02:46]GetLastDocTimeStamp 1729641583 [00:02:46]current date 1729641767 [00:02:46]FM_GetShiftState [00:02:46]SAM_PROTO_GetShiftState [00:02:46]wFMCommunicate request_size=4 [00:02:46]MH_SAM_APDU [00:02:46]CAPDU: 80 13 01 00 [00:02:46]Write to MH i2c: E2 08 00 82 0B 80 13 01 00 00 00 00 00 0A [00:02:46]Write i2c OK [00:02:46]MH_I2C_Read... [00:02:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:46]Read from MH i2c: E2 [00:02:46]MH_I2C_Read... [00:02:46]Read from MH i2c: E2 0E 00 [00:02:46]MH_I2C_Read... [00:02:46]Read from MH i2c: E2 0E 00 82 0B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 D1 [00:02:46]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [00:02:46]wFMCommunicate OK [00:02:46]SAM_PROTO_GetShiftState done [00:02:46]FM_GetShiftState done [00:02:46]opened in 1729555538 [00:02:46]opened+sec_in_day 1729641938 [00:02:46]quantity*price = 380235 [00:02:46]sum+1 = 380237 [00:02:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3802.36 НСП 1% : 33.65 НДС 12% : 403.79 Наличными: 0.00 Безнал.: 3802.36 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 426 23.10.2024 00:02 Смена: 535 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 228462 ФПД: 117612027616583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T000248&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228462&fm=117612027616583&tin=02508201610067®Number=0000000000091685&sum=380236 [00:02:48]StoreToDocumentArchive [00:02:48]shift 535 fd 228462 [00:02:48]save to /storage/0535/doc_00228462 [00:02:48]save last doc name /storage/0535/doc_00228462 to /storage/kkm_last_doc_name [00:02:48]save OK [00:02:48]Clear old archive folders... [00:02:48]ProcessDocumentItem done err = 0, tmpTLVsize=244 [00:02:48]tlvbuf is 002AF9B0 [00:02:48]SAM_PROTO_ClearQueue [00:02:48]wFMCommunicate request_size=4 [00:02:48]MH_SAM_APDU [00:02:48]CAPDU: 80 09 00 00 [00:02:48]Write to MH i2c: E2 08 00 8F 0B 80 09 00 00 00 00 00 00 0C [00:02:48]Write i2c OK [00:02:48]MH_I2C_Read... [00:02:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:02:48]Read from MH i2c: E2 [00:02:48]MH_I2C_Read... [00:02:48]Read from MH i2c: E2 03 00 [00:02:48]MH_I2C_Read... [00:02:48]Read from MH i2c: E2 03 00 8F 0B 00 90 00 0E [00:02:48]RAPDU: 90 00 [00:02:48]wFMCommunicate OK [00:02:48]SAM_PROTO_ClearQueue done [00:02:48]KKMCreateOFDPacket [00:02:48]OFDProtocolAddRootSTLVToBuf [00:02:48]FM_MakeSignedData [00:02:48]FM_MakeSignedData [00:02:48]SAM_PROTO_SignData [00:02:48]wFMCommunicate request_size=4 [00:02:48]MH_SAM_APDU [00:02:48]CAPDU: 80 0D 01 02 [00:02:48]Write to MH i2c: E2 08 00 90 0B 80 0D 01 02 00 00 00 00 14 [00:02:48]Write i2c OK [00:02:48]MH_I2C_Read... [00:02:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:02:48]Read from MH i2c: E2 [00:02:48]MH_I2C_Read... [00:02:48]Read from MH i2c: E2 03 00 [00:02:48]MH_I2C_Read... [00:02:48]Read from MH i2c: E2 03 00 90 0B 00 90 00 0F [00:02:48]RAPDU: 90 00 [00:02:48]wFMCommunicate OK [00:02:48]wFMCommunicate request_size=253 [00:02:48]MH_SAM_APDU [00:02:48]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 D9 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C CD 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C CD 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 9D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C CD 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 01 00 00 F4 03 04 00 28 3D 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6E 7C 03 00 35 04 06 00 6A F7 AF 20 9D 47 [00:02:48]Write to MH i2c: E2 00 01 91 0B 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 D9 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C CD 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C CD 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 9D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C CD 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 01 00 00 F4 03 04 00 28 3D 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6E 7C 03 00 35 04 06 00 6A F7 AF 20 9D 47 00 00 32 [00:02:48]Write i2c OK [00:02:48]MH_I2C_Read... [00:02:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:02:48]Read from MH i2c: E2 [00:02:48]MH_I2C_Read... [00:02:48]Read from MH i2c: E2 03 00 [00:02:48]MH_I2C_Read... [00:02:48]Read from MH i2c: E2 03 00 91 0B 00 90 00 10 [00:02:48]RAPDU: 90 00 [00:02:48]wFMCommunicate OK [00:02:48]wFMCommunicate request_size=4 [00:02:48]MH_SAM_APDU [00:02:48]CAPDU: 80 0D 03 02 [00:02:48]Write to MH i2c: E2 08 00 92 0B 80 0D 03 02 00 00 00 00 18 [00:02:48]Write i2c OK [00:02:48]MH_I2C_Read... [00:02:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:02:48]Read from MH i2c: E2 [00:02:48]MH_I2C_Read... [00:02:48]Read from MH i2c: E2 0B 00 [00:02:48]MH_I2C_Read... [00:02:48]Read from MH i2c: E2 0B 00 92 0B 00 93 A0 59 18 1C 63 9B F9 90 00 D0 [00:02:48]RAPDU: 93 A0 59 18 1C 63 9B F9 90 00 [00:02:48]wFMCommunicate OK [00:02:48]SAM_PROTO_SignData done [00:02:48]FM_MakeSignedData done [00:02:48]CreateOFDProtocolMessage [00:02:48]wFMCommunicate request_size=4 [00:02:48]MH_SAM_APDU [00:02:48]CAPDU: 80 11 00 00 [00:02:48]Write to MH i2c: E2 08 00 93 0B 80 11 00 00 00 00 00 00 18 [00:02:48]Write i2c OK [00:02:48]MH_I2C_Read... [00:02:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:48]Read from MH i2c: E2 [00:02:48]MH_I2C_Read... [00:02:48]Read from MH i2c: E2 17 00 [00:02:48]MH_I2C_Read... [00:02:48]Read from MH i2c: E2 17 00 93 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6F [00:02:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:02:48]wFMCommunicate OK [00:02:48]CreateOFDProtocolMessage done [00:02:48]OFDSenderStorePacket 228462 [00:02:48]StoreOFDPacket docnum=228462 [00:02:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 A0 79 00 01 43 80 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 D9 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C CD 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C CD 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 9D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C CD 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 01 00 00 F4 03 04 00 28 3D 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6E 7C 03 00 35 04 06 00 6A F7 AF 20 9D 47 93 A0 59 18 1C 63 9B F9 [00:02:48]CheckFolder [00:02:48]dirname=/storage/ofd_packets [00:02:48]CheckFolder done [00:02:48]ProducePacketName [00:02:48]name=ofd_packets/00228462 [00:02:48]NVStorageSaveData ofd_packets/00228462 [00:02:48]File name is /storage/ofd_packets/00228462 [00:02:48]Write 294 bytes [00:02:48]NVStorageSaveData done [00:02:48]OFDSenderStorePacket done [00:02:48]KKMCreateOFDPacket done [00:02:48]NVStorageSaveData kkm_last_timestamp [00:02:48]File name is /storage/kkm_last_timestamp [00:02:48]Write 4 bytes [00:02:48]NVStorageSaveData done [00:02:48]ExternCall_PrintAddStr [00:02:48]wPrintStart [00:02:48]Write to MH i2c: 01 00 00 94 0B 9F [00:02:48]Write i2c OK [00:02:48]MH_I2C_Read... [00:02:48]Read from MH i2c: 01 [00:02:48]MH_I2C_Read... [00:02:48]Read from MH i2c: 01 07 00 [00:02:48]MH_I2C_Read... [00:02:48]Read from MH i2c: 01 07 00 94 0B 00 00 00 00 00 FF 0F B4 [00:02:48]RasterBufferAndPrint [00:02:48]line Счет N : (1)1965131 [00:02:48]line ИНН: 02508201610067 [00:02:48]line Контрольно-Кассовый Чек [00:02:48]line ПРОДАЖА [00:02:48]line ТРК (МРК, ГНК) : 42 [00:02:48]line Товар: 2710124130 [00:02:48]line SU-92 [00:02:48]line 55.590 * 68.40 [00:02:48]line = 3802.36 [00:02:48]line НДС 12% НСП 1% [00:02:48]line > о реализуемом товаре [00:02:48]line ИТОГО: 3802.36 [00:02:48]line НСП 1% : 33.65 [00:02:48]line НДС 12% : 403.79 [00:02:48]line Наличными: 0.00 [00:02:48]line Безнал.: 3802.36 [00:02:48]line Место: АЗС № 133 "Партнер Нефть" [00:02:48]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [00:02:48]line СНО: Общий режим [00:02:48]line Чек 426 23.10.2024 00:02 [00:02:48]line Смена: 535 ФФД: 1.0 [00:02:48]line ЗНМ: 0300000091 [00:02:48]line РНМ: 0000000000091685 [00:02:48]line Версия ККМ: 001 [00:02:48]line Платежная система: Mbank [00:02:48]line ФМ: 0000000000871839 [00:02:48]line ФД: 228462 [00:02:48]line ФПД: 117612027616583 [00:02:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T000248&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228462&fm=117612027616583&tin=02508201610067®Number=0000000000091685&sum=380236 [00:02:48]OFD Sender: Processing packet 228462 [packets to send 38, broken 37] [00:02:48]ProducePacketName [00:02:48]name=ofd_packets/00228462 [00:02:48]OFD Sender: To server: pG, [00:02:48]CommunicateWithHost lk.salyk.kg:30040 [00:02:48]ConnectInit lk.salyk.kg [00:02:48]written 0, free lines is 4095 [00:02:48]Connected sock=10 [00:02:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 A0 79 00 01 43 80 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 D9 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C CD 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C CD 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 9D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C CD 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 01 00 00 F4 03 04 00 28 3D 18 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6E 7C 03 00 35 04 06 00 6A F7 AF 20 9D 47 93 A0 59 18 1C 63 9B F9 [00:02:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 0D 10 47 00 FE 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6E 7C 03 00 F4 03 04 00 1E E8 17 67 B6 04 01 00 00 5C E9 4E 87 4B 0C AA B6 [00:02:49]CommunicateWithHost err = 0 [00:02:49]CheckOFDResponse [00:02:49]1017 (14) - 77093643461234 [00:02:49]1041 (16) - 0000000000871839 [00:02:49]1040 (4) - 228462 [00:02:49]1012 (4) - 22.10.2024 17:59 [00:02:49]1206 (1) - 0 [00:02:49]OFD Sender: Remove packet 228462 [00:02:49]ProducePacketName [00:02:49]name=ofd_packets/00228462 [00:02:49]NVStorageDeleteData [00:02:49]Write to MH i2c: 01 00 00 BC 0B C7 [00:02:49]Write i2c OK [00:02:49]MH_I2C_Read... [00:02:49]Read from MH i2c: 01 [00:02:49]MH_I2C_Read... [00:02:49]Read from MH i2c: 01 07 00 [00:02:49]MH_I2C_Read... [00:02:49]Read from MH i2c: 01 07 00 BC 0B 00 00 00 00 00 E5 0C BF [00:02:49]RasterBufferAndPrint [00:02:49]line [00:02:49]line [00:02:49]line [00:02:49]line [00:02:49]line [00:02:49]written 0, free lines is 3305 [00:02:49]MH_Cut [00:02:49]Write to MH i2c: D1 01 00 C3 0B 01 A0 [00:02:49]Write i2c OK [00:02:49]MH_I2C_Read... [00:02:49]Read from MH i2c: D1 [00:02:49]MH_I2C_Read... [00:02:49]Read from MH i2c: D1 01 00 [00:02:49]MH_I2C_Read... [00:02:49]Read from MH i2c: D1 01 00 C3 0B 00 9F [00:02:49]Write to MH i2c: 01 00 00 C4 0B CF [00:02:49]Write i2c OK [00:02:49]MH_I2C_Read... [00:02:49]OFD Sender: No OFD packet to send [00:02:50]*** Cut start [00:02:50]*** Partial cut [00:02:50]*** CUTSNS_PIN = 1 [00:02:50]*** CUTSNS_PIN = 0 [00:02:50]*** Brake cut motor [00:02:50]Read from MH i2c: 01 [00:02:50]MH_I2C_Read... [00:02:50]*** Stop cut motor [00:02:50]*** Cut end [00:02:50]Read from MH i2c: 01 07 00 [00:02:50]MH_I2C_Read... [00:02:50]Read from MH i2c: 01 07 00 C4 0B 00 00 00 00 00 FF 0F E4 [00:02:50]process_action close_receipt done [00:02:50]requested_data is exist [00:02:50]produce_requested_data [00:02:50]requested_item fm.sn is exist - process it [00:02:50]wFMCommunicate request_size=4 [00:02:50]MH_SAM_APDU [00:02:50]CAPDU: 80 11 00 00 [00:02:50]Write to MH i2c: E2 08 00 C5 0B 80 11 00 00 00 00 00 00 4A [00:02:50]Write i2c OK [00:02:50]MH_I2C_Read... [00:02:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:50]Read from MH i2c: E2 [00:02:50]MH_I2C_Read... [00:02:50]Read from MH i2c: E2 17 00 [00:02:50]MH_I2C_Read... [00:02:50]Read from MH i2c: E2 17 00 C5 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A1 [00:02:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:02:50]wFMCommunicate OK [00:02:50]requested_item fd.num is exist - process it [00:02:50]SAM_PROTO_GetFieldsCounters [00:02:50]wFMCommunicate request_size=4 [00:02:50]MH_SAM_APDU [00:02:50]CAPDU: 80 13 00 00 [00:02:50]Write to MH i2c: E2 08 00 C6 0B 80 13 00 00 00 00 00 00 4D [00:02:50]Write i2c OK [00:02:50]MH_I2C_Read... [00:02:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:02:51]Read from MH i2c: E2 [00:02:51]MH_I2C_Read... [00:02:51]Read from MH i2c: E2 62 00 [00:02:51]MH_I2C_Read... [00:02:51]Read from MH i2c: E2 62 00 C6 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6E 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 AA 01 00 00 5E 04 04 00 AA 01 00 00 57 04 04 00 AB 01 00 00 19 04 04 00 00 00 00 00 90 00 7D [00:02:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6E 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 AA 01 00 00 5E 04 04 00 AA 01 00 00 57 04 04 00 AB 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:02:51]wFMCommunicate OK [00:02:51]SAM_PROTO_GetFieldsCounters done [00:02:51]requested_item shift.num is exist - process it [00:02:51]requested_item shift.opened is exist - process it [00:02:51]req_shift_opened [00:02:51]FM_GetShiftState [00:02:51]SAM_PROTO_GetShiftState [00:02:51]wFMCommunicate request_size=4 [00:02:51]MH_SAM_APDU [00:02:51]CAPDU: 80 13 01 00 [00:02:51]Write to MH i2c: E2 08 00 C7 0B 80 13 01 00 00 00 00 00 4F [00:02:51]Write i2c OK [00:02:51]MH_I2C_Read... [00:02:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:51]Read from MH i2c: E2 [00:02:51]MH_I2C_Read... [00:02:51]Read from MH i2c: E2 0E 00 [00:02:51]MH_I2C_Read... [00:02:51]Read from MH i2c: E2 0E 00 C7 0B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 16 [00:02:51]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [00:02:51]wFMCommunicate OK [00:02:51]SAM_PROTO_GetShiftState done [00:02:51]FM_GetShiftState done [00:02:51]req_shift_opened done [00:02:51]requested_item shift.open_date is exist - process it [00:02:51]req_shift_open_date [00:02:51]req_shift_open_date done [00:02:51]produce_requested_data done [00:02:51]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228462,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [00:02:51]process_action_free close_receipt [00:02:51]json_value_free [00:02:51]json_value_free done [00:02:51]process_json_proto returns [00:02:51]Send response to host [00:02:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228462,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [00:02:51]free response buf [00:02:51]execute_script done [00:02:51]execute_script returns [00:02:51]free content buf [00:02:51]Sock 7.Close socket [00:02:51]Sock 7.Thread stoped [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:18]accept exits with 9 [00:06:18]New connection [00:06:18]New thread 3066977636 created [00:06:18]Thread 3066834276 joined [00:06:18]Waiting for new connection... [00:06:18] Sock 9.Parse request [00:06:18]Sock 9.Check first char [00:06:18]Sock 9.First char is OK [00:06:18]request: POST /json_proto HTTP/1.0 [00:06:18]Method: POST [00:06:18]URL: /json_proto [00:06:18]Method is POST - this is cgi request [00:06:18]url: /json_proto [00:06:18]query_string will be loaded in cgi processing [00:06:18]execute_cgi json_proto POST (null) [00:06:18]execute_cgi path=json_proto method=POST [00:06:18]POST find Content-Length [00:06:18]Host: 172.17.44.195:8080 [00:06:18]Content-Length: 215 [00:06:18]Content-Type: application/json [00:06:18] [00:06:18]POST finish read [00:06:18]Found Content-Length = 215 [00:06:18]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:06:18]execute_script... [00:06:18]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:06:18]POST & json_proto [00:06:18]process_json_proto [00:06:18]json parsed OK: [00:06:18]protocol is kg_v1.0 [00:06:18]action value=get_value [00:06:18]process_action get_value [00:06:18]cmd_get_value [00:06:18]process_action get_value done [00:06:18]requested_data is exist [00:06:18]produce_requested_data [00:06:18]requested_item kkm.sn is exist - process it [00:06:18]requested_item kkm.ver is exist - process it [00:06:18]requested_item fm.sn is exist - process it [00:06:18]wFMCommunicate request_size=4 [00:06:18]MH_SAM_APDU [00:06:18]CAPDU: 80 11 00 00 [00:06:18]Write to MH i2c: E2 08 00 C8 0B 80 11 00 00 00 00 00 00 4D [00:06:18]Write i2c OK [00:06:18]MH_I2C_Read... [00:06:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:18]Read from MH i2c: E2 [00:06:18]MH_I2C_Read... [00:06:18]Read from MH i2c: E2 17 00 [00:06:18]MH_I2C_Read... [00:06:18]Read from MH i2c: E2 17 00 C8 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A4 [00:06:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:06:18]wFMCommunicate OK [00:06:18]requested_item fd.num is exist - process it [00:06:18]SAM_PROTO_GetFieldsCounters [00:06:18]wFMCommunicate request_size=4 [00:06:18]MH_SAM_APDU [00:06:18]CAPDU: 80 13 00 00 [00:06:18]Write to MH i2c: E2 08 00 C9 0B 80 13 00 00 00 00 00 00 50 [00:06:18]Write i2c OK [00:06:18]MH_I2C_Read... [00:06:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:18]Read from MH i2c: E2 [00:06:18]MH_I2C_Read... [00:06:18]Read from MH i2c: E2 62 00 [00:06:18]MH_I2C_Read... [00:06:18]Read from MH i2c: E2 62 00 C9 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6E 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 AA 01 00 00 5E 04 04 00 AA 01 00 00 57 04 04 00 AB 01 00 00 19 04 04 00 00 00 00 00 90 00 80 [00:06:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6E 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 AA 01 00 00 5E 04 04 00 AA 01 00 00 57 04 04 00 AB 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:06:18]wFMCommunicate OK [00:06:18]SAM_PROTO_GetFieldsCounters done [00:06:18]requested_item shift.num is exist - process it [00:06:18]requested_item shift.opened is exist - process it [00:06:18]req_shift_opened [00:06:18]FM_GetShiftState [00:06:18]SAM_PROTO_GetShiftState [00:06:18]wFMCommunicate request_size=4 [00:06:18]MH_SAM_APDU [00:06:18]CAPDU: 80 13 01 00 [00:06:18]Write to MH i2c: E2 08 00 CA 0B 80 13 01 00 00 00 00 00 52 [00:06:18]Write i2c OK [00:06:18]MH_I2C_Read... [00:06:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:19]Read from MH i2c: E2 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 0E 00 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 0E 00 CA 0B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 19 [00:06:19]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [00:06:19]wFMCommunicate OK [00:06:19]SAM_PROTO_GetShiftState done [00:06:19]FM_GetShiftState done [00:06:19]req_shift_opened done [00:06:19]requested_item shift.open_date is exist - process it [00:06:19]req_shift_open_date [00:06:19]req_shift_open_date done [00:06:19]produce_requested_data done [00:06:19]produce_requested_data return {"kkm.sn":"0300000091","kkm.ver":"001","fm.sn":"0000000000871839","fd.num":228462,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [00:06:19]process_action_free get_value [00:06:19]json_value_free [00:06:19]json_value_free done [00:06:19]process_json_proto returns [00:06:19]Send response to host [00:06:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000091","kkm.ver":"001","fm.sn":"0000000000871839","fd.num":228462,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [00:06:19]free response buf [00:06:19]execute_script done [00:06:19]execute_script returns [00:06:19]free content buf [00:06:19]Sock 9.Close socket [00:06:19]Sock 9.Thread stoped [00:06:19]accept exits with 7 [00:06:19]New connection [00:06:19]New thread 3066834276 created [00:06:19]Thread 3066977636 joined [00:06:19]Waiting for new connection... [00:06:19] Sock 7.Parse request [00:06:19]Sock 7.Check first char [00:06:19]Sock 7.First char is OK [00:06:19]request: POST /json_proto HTTP/1.0 [00:06:19]Method: POST [00:06:19]URL: /json_proto [00:06:19]Method is POST - this is cgi request [00:06:19]url: /json_proto [00:06:19]query_string will be loaded in cgi processing [00:06:19]execute_cgi json_proto POST (null) [00:06:19]execute_cgi path=json_proto method=POST [00:06:19]POST find Content-Length [00:06:19]Host: 172.17.44.195:8080 [00:06:19]Content-Length: 331 [00:06:19]Content-Type: application/json [00:06:19] [00:06:19]POST finish read [00:06:19]Found Content-Length = 331 [00:06:19]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:06:19]execute_script... [00:06:19]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:06:19]POST & json_proto [00:06:19]process_json_proto [00:06:19]json parsed OK: [00:06:19]protocol is kg_v1.0 [00:06:19]action value=get_value [00:06:19]process_action get_value [00:06:19]cmd_get_value [00:06:19]process_action get_value done [00:06:19]requested_data is exist [00:06:19]produce_requested_data [00:06:19]requested_item fm.sale.total is exist - process it [00:06:19]SAM_PROTO_GetFMData [00:06:19]wFMCommunicate request_size=4 [00:06:19]MH_SAM_APDU [00:06:19]CAPDU: 80 13 03 00 [00:06:19]Write to MH i2c: E2 08 00 CB 0B 80 13 03 00 00 00 00 00 55 [00:06:19]Write i2c OK [00:06:19]MH_I2C_Read... [00:06:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:19]Read from MH i2c: E2 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 FD 00 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 FD 00 CB 0B 00 C5 04 85 04 C1 04 6E 04 04 00 40 78 03 00 69 04 A3 00 6F 04 04 00 4D 71 03 00 B1 04 05 00 B5 CD 42 C9 04 70 04 05 00 24 4E 12 4F 04 72 04 04 00 91 7F 30 7A 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 0A 86 28 82 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 63 89 D8 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 06 00 00 B1 04 04 00 38 AB D0 1E 70 04 04 00 38 AB D0 1E 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 95 D1 45 03 EF 03 09 90 00 68 [00:06:19]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 40 78 03 00 69 04 A3 00 6F 04 04 00 4D 71 03 00 B1 04 05 00 B5 CD 42 C9 04 70 04 05 00 24 4E 12 4F 04 72 04 04 00 91 7F 30 7A 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 0A 86 28 82 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 63 89 D8 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 06 00 00 B1 04 04 00 38 AB D0 1E 70 04 04 00 38 AB D0 1E 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 95 D1 45 03 EF 03 09 90 00 [00:06:19]wFMCommunicate OK [00:06:19]wFMCommunicate request_size=4 [00:06:19]MH_SAM_APDU [00:06:19]CAPDU: 80 17 00 00 [00:06:19]Write to MH i2c: E2 08 00 CC 0B 80 17 00 00 00 00 00 00 57 [00:06:19]Write i2c OK [00:06:19]MH_I2C_Read... [00:06:19]OFD Sender: No OFD packet to send [00:06:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:20]Read from MH i2c: E2 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 FD 00 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 FD 00 CC 0B 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB D0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 1D [00:06:20]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB D0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:06:20]wFMCommunicate OK [00:06:20]wFMCommunicate request_size=4 [00:06:20]MH_SAM_APDU [00:06:20]CAPDU: 80 17 00 00 [00:06:20]Write to MH i2c: E2 08 00 CD 0B 80 17 00 00 00 00 00 00 58 [00:06:20]Write i2c OK [00:06:20]MH_I2C_Read... [00:06:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:20]Read from MH i2c: E2 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 FD 00 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 FD 00 CD 0B 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6A [00:06:20]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:20]wFMCommunicate OK [00:06:20]wFMCommunicate request_size=4 [00:06:20]MH_SAM_APDU [00:06:20]CAPDU: 80 17 00 00 [00:06:20]Write to MH i2c: E2 08 00 CE 0B 80 17 00 00 00 00 00 00 59 [00:06:20]Write i2c OK [00:06:20]MH_I2C_Read... [00:06:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:20]Read from MH i2c: E2 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 FD 00 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 FD 00 CE 0B 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E5 [00:06:20]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:20]wFMCommunicate OK [00:06:20]wFMCommunicate request_size=4 [00:06:20]MH_SAM_APDU [00:06:20]CAPDU: 80 17 00 00 [00:06:20]Write to MH i2c: E2 08 00 CF 0B 80 17 00 00 00 00 00 00 5A [00:06:20]Write i2c OK [00:06:20]MH_I2C_Read... [00:06:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:06:20]Read from MH i2c: E2 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 E2 00 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 E2 00 CF 0B 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 38 [00:06:20]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:06:20]wFMCommunicate OK [00:06:20]SAM_PROTO_GetFMData done [00:06:20]requested_item fm.sale_refund.total is exist - process it [00:06:20]requested_item fm.buy.total is exist - process it [00:06:20]requested_item shift.sale.total is exist - process it [00:06:20]SAM_PROTO_GetShiftData [00:06:20]wFMCommunicate request_size=4 [00:06:20]MH_SAM_APDU [00:06:20]CAPDU: 80 13 02 00 [00:06:20]Write to MH i2c: E2 08 00 D0 0B 80 13 02 00 00 00 00 00 59 [00:06:20]Write i2c OK [00:06:20]MH_I2C_Read... [00:06:21]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:21]Read from MH i2c: E2 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: E2 FD 00 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: E2 FD 00 D0 0B 00 B8 04 AA 04 B4 04 6E 04 04 00 AA 01 00 00 69 04 9E 00 6F 04 04 00 A8 01 00 00 B1 04 04 00 7C 13 16 02 70 04 04 00 BC 3C B0 01 72 04 03 00 C0 D6 65 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 72 BB 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 3F BA 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 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 20 4E 70 04 02 00 20 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 89 [00:06:21]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 AA 01 00 00 69 04 9E 00 6F 04 04 00 A8 01 00 00 B1 04 04 00 7C 13 16 02 70 04 04 00 BC 3C B0 01 72 04 03 00 C0 D6 65 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 72 BB 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 3F BA 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 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 20 4E 70 04 02 00 20 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:06:21]wFMCommunicate OK [00:06:21]wFMCommunicate request_size=4 [00:06:21]MH_SAM_APDU [00:06:21]CAPDU: 80 17 00 00 [00:06:21]Write to MH i2c: E2 08 00 D1 0B 80 17 00 00 00 00 00 00 5C [00:06:21]Write i2c OK [00:06:21]MH_I2C_Read... [00:06:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:21]Read from MH i2c: E2 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: E2 FD 00 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: E2 FD 00 D1 0B 00 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 40 [00:06:21]RAPDU: 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:06:21]wFMCommunicate OK [00:06:21]wFMCommunicate request_size=4 [00:06:21]MH_SAM_APDU [00:06:21]CAPDU: 80 17 00 00 [00:06:21]Write to MH i2c: E2 08 00 D2 0B 80 17 00 00 00 00 00 00 5D [00:06:21]Write i2c OK [00:06:21]MH_I2C_Read... [00:06:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:21]Read from MH i2c: E2 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: E2 FD 00 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: E2 FD 00 D2 0B 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 FF [00:06:21]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [00:06:21]wFMCommunicate OK [00:06:21]wFMCommunicate request_size=4 [00:06:21]MH_SAM_APDU [00:06:21]CAPDU: 80 17 00 00 [00:06:21]Write to MH i2c: E2 08 00 D3 0B 80 17 00 00 00 00 00 00 5E [00:06:21]Write i2c OK [00:06:21]MH_I2C_Read... [00:06:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:22]Read from MH i2c: E2 [00:06:22]MH_I2C_Read... [00:06:22]Read from MH i2c: E2 FD 00 [00:06:22]MH_I2C_Read... [00:06:22]Read from MH i2c: E2 FD 00 D3 0B 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 E7 [00:06:22]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [00:06:22]wFMCommunicate OK [00:06:22]wFMCommunicate request_size=4 [00:06:22]MH_SAM_APDU [00:06:22]CAPDU: 80 17 00 00 [00:06:22]Write to MH i2c: E2 08 00 D4 0B 80 17 00 00 00 00 00 00 5F [00:06:22]Write i2c OK [00:06:22]MH_I2C_Read... [00:06:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:06:22]Read from MH i2c: E2 [00:06:22]MH_I2C_Read... [00:06:22]Read from MH i2c: E2 D5 00 [00:06:22]MH_I2C_Read... [00:06:22]Read from MH i2c: E2 D5 00 D4 0B 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 40 [00:06:22]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:22]wFMCommunicate OK [00:06:22]SAM_PROTO_GetShiftData done [00:06:22]requested_item shift.sale.total_cash is exist - process it [00:06:22]requested_item shift.sale_refund.total is exist - process it [00:06:22]requested_item shift.sale_refund.total_cash is exist - process it [00:06:22]requested_item shift.buy.total is exist - process it [00:06:22]requested_item shift.buy.total_cash is exist - process it [00:06:22]produce_requested_data done [00:06:22]produce_requested_data return {"fm.sale.total":205564676.37,"fm.sale_refund.total":5169918.00,"fm.buy.total":0.00,"shift.sale.total":350012.12,"shift.sale.total_cash":283271.00,"shift.sale_refund.total":200.00,"shift.sale_refund.total_cash":200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:06:22]process_action_free get_value [00:06:22]json_value_free [00:06:22]json_value_free done [00:06:22]process_json_proto returns [00:06:22]Send response to host [00:06:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":205564676.37,"fm.sale_refund.total":5169918.00,"fm.buy.total":0.00,"shift.sale.total":350012.12,"shift.sale.total_cash":283271.00,"shift.sale_refund.total":200.00,"shift.sale_refund.total_cash":200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:06:22]free response buf [00:06:22]execute_script done [00:06:22]execute_script returns [00:06:22]free content buf [00:06:22]Sock 7.Close socket [00:06:22]Sock 7.Thread stoped [00:06:22]accept exits with 9 [00:06:22]New connection [00:06:22]New thread 3066977636 created [00:06:22]Thread 3066834276 joined [00:06:22]Waiting for new connection... [00:06:22] Sock 9.Parse request [00:06:22]Sock 9.Check first char [00:06:22]Sock 9.First char is OK [00:06:22]request: POST /json_proto HTTP/1.0 [00:06:22]Method: POST [00:06:22]URL: /json_proto [00:06:22]Method is POST - this is cgi request [00:06:22]url: /json_proto [00:06:22]query_string will be loaded in cgi processing [00:06:22]execute_cgi json_proto POST (null) [00:06:22]execute_cgi path=json_proto method=POST [00:06:22]POST find Content-Length [00:06:22]Host: 172.17.44.195:8080 [00:06:22]Content-Length: 331 [00:06:22]Content-Type: application/json [00:06:22] [00:06:22]POST finish read [00:06:22]Found Content-Length = 331 [00:06:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:22]execute_script... [00:06:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:22]POST & json_proto [00:06:22]process_json_proto [00:06:22]json parsed OK: [00:06:22]protocol is kg_v1.0 [00:06:22]action value=get_value [00:06:22]process_action get_value [00:06:22]cmd_get_value [00:06:22]process_action get_value done [00:06:22]requested_data is exist [00:06:22]produce_requested_data [00:06:22]requested_item fm.sale.total is exist - process it [00:06:22]SAM_PROTO_GetFMData [00:06:22]wFMCommunicate request_size=4 [00:06:22]MH_SAM_APDU [00:06:22]CAPDU: 80 13 03 00 [00:06:22]Write to MH i2c: E2 08 00 D5 0B 80 13 03 00 00 00 00 00 5F [00:06:22]Write i2c OK [00:06:22]MH_I2C_Read... [00:06:23]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:23]Read from MH i2c: E2 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 FD 00 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 FD 00 D5 0B 00 C5 04 85 04 C1 04 6E 04 04 00 40 78 03 00 69 04 A3 00 6F 04 04 00 4D 71 03 00 B1 04 05 00 B5 CD 42 C9 04 70 04 05 00 24 4E 12 4F 04 72 04 04 00 91 7F 30 7A 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 0A 86 28 82 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 63 89 D8 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 06 00 00 B1 04 04 00 38 AB D0 1E 70 04 04 00 38 AB D0 1E 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 95 D1 45 03 EF 03 09 90 00 72 [00:06:23]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 40 78 03 00 69 04 A3 00 6F 04 04 00 4D 71 03 00 B1 04 05 00 B5 CD 42 C9 04 70 04 05 00 24 4E 12 4F 04 72 04 04 00 91 7F 30 7A 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 0A 86 28 82 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 63 89 D8 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 06 00 00 B1 04 04 00 38 AB D0 1E 70 04 04 00 38 AB D0 1E 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 95 D1 45 03 EF 03 09 90 00 [00:06:23]wFMCommunicate OK [00:06:23]wFMCommunicate request_size=4 [00:06:23]MH_SAM_APDU [00:06:23]CAPDU: 80 17 00 00 [00:06:23]Write to MH i2c: E2 08 00 D6 0B 80 17 00 00 00 00 00 00 61 [00:06:23]Write i2c OK [00:06:23]MH_I2C_Read... [00:06:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:23]Read from MH i2c: E2 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 FD 00 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 FD 00 D6 0B 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB D0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 27 [00:06:23]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB D0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:06:23]wFMCommunicate OK [00:06:23]wFMCommunicate request_size=4 [00:06:23]MH_SAM_APDU [00:06:23]CAPDU: 80 17 00 00 [00:06:23]Write to MH i2c: E2 08 00 D7 0B 80 17 00 00 00 00 00 00 62 [00:06:23]Write i2c OK [00:06:23]MH_I2C_Read... [00:06:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:23]Read from MH i2c: E2 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 FD 00 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 FD 00 D7 0B 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 74 [00:06:23]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:23]wFMCommunicate OK [00:06:23]wFMCommunicate request_size=4 [00:06:23]MH_SAM_APDU [00:06:23]CAPDU: 80 17 00 00 [00:06:23]Write to MH i2c: E2 08 00 D8 0B 80 17 00 00 00 00 00 00 63 [00:06:23]Write i2c OK [00:06:23]MH_I2C_Read... [00:06:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:24]Read from MH i2c: E2 [00:06:24]MH_I2C_Read... [00:06:24]Read from MH i2c: E2 FD 00 [00:06:24]MH_I2C_Read... [00:06:24]Read from MH i2c: E2 FD 00 D8 0B 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EF [00:06:24]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:24]wFMCommunicate OK [00:06:24]wFMCommunicate request_size=4 [00:06:24]MH_SAM_APDU [00:06:24]CAPDU: 80 17 00 00 [00:06:24]Write to MH i2c: E2 08 00 D9 0B 80 17 00 00 00 00 00 00 64 [00:06:24]Write i2c OK [00:06:24]MH_I2C_Read... [00:06:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:06:24]Read from MH i2c: E2 [00:06:24]MH_I2C_Read... [00:06:24]Read from MH i2c: E2 E2 00 [00:06:24]MH_I2C_Read... [00:06:24]Read from MH i2c: E2 E2 00 D9 0B 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 42 [00:06:24]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:06:24]wFMCommunicate OK [00:06:24]SAM_PROTO_GetFMData done [00:06:24]requested_item fm.sale_refund.total is exist - process it [00:06:24]requested_item fm.buy.total is exist - process it [00:06:24]requested_item shift.sale.total is exist - process it [00:06:24]SAM_PROTO_GetShiftData [00:06:24]wFMCommunicate request_size=4 [00:06:24]MH_SAM_APDU [00:06:24]CAPDU: 80 13 02 00 [00:06:24]Write to MH i2c: E2 08 00 DA 0B 80 13 02 00 00 00 00 00 63 [00:06:24]Write i2c OK [00:06:24]MH_I2C_Read... [00:06:24]OFD Sender: No OFD packet to send [00:06:25]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:25]Read from MH i2c: E2 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 FD 00 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 FD 00 DA 0B 00 B8 04 AA 04 B4 04 6E 04 04 00 AA 01 00 00 69 04 9E 00 6F 04 04 00 A8 01 00 00 B1 04 04 00 7C 13 16 02 70 04 04 00 BC 3C B0 01 72 04 03 00 C0 D6 65 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 72 BB 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 3F BA 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 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 20 4E 70 04 02 00 20 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 93 [00:06:25]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 AA 01 00 00 69 04 9E 00 6F 04 04 00 A8 01 00 00 B1 04 04 00 7C 13 16 02 70 04 04 00 BC 3C B0 01 72 04 03 00 C0 D6 65 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 72 BB 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 3F BA 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 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 20 4E 70 04 02 00 20 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:06:25]wFMCommunicate OK [00:06:25]wFMCommunicate request_size=4 [00:06:25]MH_SAM_APDU [00:06:25]CAPDU: 80 17 00 00 [00:06:25]Write to MH i2c: E2 08 00 DB 0B 80 17 00 00 00 00 00 00 66 [00:06:25]Write i2c OK [00:06:25]MH_I2C_Read... [00:06:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:25]Read from MH i2c: E2 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 FD 00 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 FD 00 DB 0B 00 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 4A [00:06:25]RAPDU: 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:06:25]wFMCommunicate OK [00:06:25]wFMCommunicate request_size=4 [00:06:25]MH_SAM_APDU [00:06:25]CAPDU: 80 17 00 00 [00:06:25]Write to MH i2c: E2 08 00 DC 0B 80 17 00 00 00 00 00 00 67 [00:06:25]Write i2c OK [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 [00:06:25]MH_I2C_Read... [00:06:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:25]Read from MH i2c: E2 FD 00 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 FD 00 DC 0B 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 09 [00:06:26]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [00:06:26]wFMCommunicate OK [00:06:26]wFMCommunicate request_size=4 [00:06:26]MH_SAM_APDU [00:06:26]CAPDU: 80 17 00 00 [00:06:26]Write to MH i2c: E2 08 00 DD 0B 80 17 00 00 00 00 00 00 68 [00:06:26]Write i2c OK [00:06:26]MH_I2C_Read... [00:06:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:26]Read from MH i2c: E2 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 FD 00 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 FD 00 DD 0B 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 F1 [00:06:26]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [00:06:26]wFMCommunicate OK [00:06:26]wFMCommunicate request_size=4 [00:06:26]MH_SAM_APDU [00:06:26]CAPDU: 80 17 00 00 [00:06:26]Write to MH i2c: E2 08 00 DE 0B 80 17 00 00 00 00 00 00 69 [00:06:26]Write i2c OK [00:06:26]MH_I2C_Read... [00:06:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:06:26]Read from MH i2c: E2 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 D5 00 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 D5 00 DE 0B 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4A [00:06:26]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:26]wFMCommunicate OK [00:06:26]SAM_PROTO_GetShiftData done [00:06:26]requested_item shift.sale.total_cash is exist - process it [00:06:26]requested_item shift.sale_refund.total is exist - process it [00:06:26]requested_item shift.sale_refund.total_cash is exist - process it [00:06:26]requested_item shift.buy.total is exist - process it [00:06:26]requested_item shift.buy.total_cash is exist - process it [00:06:26]produce_requested_data done [00:06:26]produce_requested_data return {"fm.sale.total":205564676.37,"fm.sale_refund.total":5169918.00,"fm.buy.total":0.00,"shift.sale.total":350012.12,"shift.sale.total_cash":283271.00,"shift.sale_refund.total":200.00,"shift.sale_refund.total_cash":200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:06:26]process_action_free get_value [00:06:26]json_value_free [00:06:26]json_value_free done [00:06:26]process_json_proto returns [00:06:26]Send response to host [00:06:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":205564676.37,"fm.sale_refund.total":5169918.00,"fm.buy.total":0.00,"shift.sale.total":350012.12,"shift.sale.total_cash":283271.00,"shift.sale_refund.total":200.00,"shift.sale_refund.total_cash":200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:06:26]free response buf [00:06:26]execute_script done [00:06:26]execute_script returns [00:06:26]free content buf [00:06:26]Sock 9.Close socket [00:06:26]Sock 9.Thread stoped [00:06:26]accept exits with 7 [00:06:26]New connection [00:06:26]New thread 3066834276 created [00:06:26]Thread 3066977636 joined [00:06:26]Waiting for new connection... [00:06:26] Sock 7.Parse request [00:06:26]Sock 7.Check first char [00:06:26]Sock 7.First char is OK [00:06:26]request: POST /json_proto HTTP/1.0 [00:06:26]Method: POST [00:06:26]URL: /json_proto [00:06:26]Method is POST - this is cgi request [00:06:26]url: /json_proto [00:06:26]query_string will be loaded in cgi processing [00:06:26]execute_cgi json_proto POST (null) [00:06:26]execute_cgi path=json_proto method=POST [00:06:26]POST find Content-Length [00:06:26]Host: 172.17.44.195:8080 [00:06:26]Content-Length: 282 [00:06:26]Content-Type: application/json [00:06:26] [00:06:26]POST finish read [00:06:26]Found Content-Length = 282 [00:06:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0428\u0435\u043A\u0435\u0440\u0431\u0435\u043A \u043A\u044B\u0437\u044B \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:26]execute_script... [00:06:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0428\u0435\u043A\u0435\u0440\u0431\u0435\u043A \u043A\u044B\u0437\u044B \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:26]POST & json_proto [00:06:26]process_json_proto [00:06:26]json parsed OK: [00:06:26]protocol is kg_v1.0 [00:06:26]action value=x_report [00:06:26]process_action x_report [00:06:26]cmd_x_report [00:06:26]MH_GetDate [00:06:26]Write to MH i2c: F0 00 00 DF 0B D9 [00:06:26]Write i2c OK [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: F0 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: F0 09 00 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: F0 09 00 DF 0B 00 04 3E 18 67 82 C9 CF 66 23 [00:06:26]GetLastDocTimeStamp 1729641768 [00:06:26]current date 1729641988 [00:06:26]FM_GetShiftState [00:06:26]SAM_PROTO_GetShiftState [00:06:26]wFMCommunicate request_size=4 [00:06:26]MH_SAM_APDU [00:06:26]CAPDU: 80 13 01 00 [00:06:26]Write to MH i2c: E2 08 00 E0 0B 80 13 01 00 00 00 00 00 68 [00:06:26]Write i2c OK [00:06:26]MH_I2C_Read... [00:06:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:27]Read from MH i2c: E2 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 0E 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 0E 00 E0 0B 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 2F [00:06:27]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [00:06:27]wFMCommunicate OK [00:06:27]SAM_PROTO_GetShiftState done [00:06:27]FM_GetShiftState done [00:06:27]KKMCreateXReportDocument [00:06:27]Load OK [00:06:27]Malloc new data [00:06:27]MH_GetDate [00:06:27]Write to MH i2c: F0 00 00 E1 0B DB [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: F0 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: F0 09 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: F0 09 00 E1 0B 00 04 3E 18 67 82 C9 CF 66 25 [00:06:27]Malloc new data [00:06:27]Malloc new data [00:06:27]wFMCommunicate request_size=4 [00:06:27]MH_SAM_APDU [00:06:27]CAPDU: 80 11 00 00 [00:06:27]Write to MH i2c: E2 08 00 E2 0B 80 11 00 00 00 00 00 00 67 [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:27]Read from MH i2c: E2 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 17 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 17 00 E2 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BE [00:06:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:06:27]wFMCommunicate OK [00:06:27]SAM_PROTO_GetFieldsCounters [00:06:27]wFMCommunicate request_size=4 [00:06:27]MH_SAM_APDU [00:06:27]CAPDU: 80 13 00 00 [00:06:27]Write to MH i2c: E2 08 00 E3 0B 80 13 00 00 00 00 00 00 6A [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:27]Read from MH i2c: E2 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 62 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 62 00 E3 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6E 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 AA 01 00 00 5E 04 04 00 AA 01 00 00 57 04 04 00 AB 01 00 00 19 04 04 00 00 00 00 00 90 00 9A [00:06:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6E 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 AA 01 00 00 5E 04 04 00 AA 01 00 00 57 04 04 00 AB 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:06:27]wFMCommunicate OK [00:06:27]SAM_PROTO_GetFieldsCounters done [00:06:27]Malloc new data [00:06:27]Malloc new data [00:06:27]Malloc new data [00:06:27]KKMCreateXReportDocument OK [00:06:27]KKMSetXReportData OK [00:06:27]KKMPrepareXReportFMData [00:06:27]SAM_PROTO_GetShiftData [00:06:27]wFMCommunicate request_size=4 [00:06:27]MH_SAM_APDU [00:06:27]CAPDU: 80 13 02 00 [00:06:27]Write to MH i2c: E2 08 00 E4 0B 80 13 02 00 00 00 00 00 6D [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:27]Read from MH i2c: E2 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 FD 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 FD 00 E4 0B 00 B8 04 AA 04 B4 04 6E 04 04 00 AA 01 00 00 69 04 9E 00 6F 04 04 00 A8 01 00 00 B1 04 04 00 7C 13 16 02 70 04 04 00 BC 3C B0 01 72 04 03 00 C0 D6 65 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 72 BB 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 3F BA 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 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 20 4E 70 04 02 00 20 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 9D [00:06:27]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 AA 01 00 00 69 04 9E 00 6F 04 04 00 A8 01 00 00 B1 04 04 00 7C 13 16 02 70 04 04 00 BC 3C B0 01 72 04 03 00 C0 D6 65 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 72 BB 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 3F BA 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 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 20 4E 70 04 02 00 20 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:06:28]wFMCommunicate OK [00:06:28]wFMCommunicate request_size=4 [00:06:28]MH_SAM_APDU [00:06:28]CAPDU: 80 17 00 00 [00:06:28]Write to MH i2c: E2 08 00 E5 0B 80 17 00 00 00 00 00 00 70 [00:06:28]Write i2c OK [00:06:28]MH_I2C_Read... [00:06:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:28]Read from MH i2c: E2 [00:06:28]MH_I2C_Read... [00:06:28]Read from MH i2c: E2 FD 00 [00:06:28]MH_I2C_Read... [00:06:28]Read from MH i2c: E2 FD 00 E5 0B 00 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 54 [00:06:28]RAPDU: 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:06:28]wFMCommunicate OK [00:06:28]wFMCommunicate request_size=4 [00:06:28]MH_SAM_APDU [00:06:28]CAPDU: 80 17 00 00 [00:06:28]Write to MH i2c: E2 08 00 E6 0B 80 17 00 00 00 00 00 00 71 [00:06:28]Write i2c OK [00:06:28]MH_I2C_Read... [00:06:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:28]Read from MH i2c: E2 [00:06:28]MH_I2C_Read... [00:06:28]Read from MH i2c: E2 FD 00 [00:06:28]MH_I2C_Read... [00:06:28]Read from MH i2c: E2 FD 00 E6 0B 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 13 [00:06:28]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [00:06:28]wFMCommunicate OK [00:06:28]wFMCommunicate request_size=4 [00:06:28]MH_SAM_APDU [00:06:28]CAPDU: 80 17 00 00 [00:06:28]Write to MH i2c: E2 08 00 E7 0B 80 17 00 00 00 00 00 00 72 [00:06:28]Write i2c OK [00:06:28]MH_I2C_Read... [00:06:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:29]Read from MH i2c: E2 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: E2 FD 00 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: E2 FD 00 E7 0B 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 FB [00:06:29]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [00:06:29]wFMCommunicate OK [00:06:29]wFMCommunicate request_size=4 [00:06:29]MH_SAM_APDU [00:06:29]CAPDU: 80 17 00 00 [00:06:29]Write to MH i2c: E2 08 00 E8 0B 80 17 00 00 00 00 00 00 73 [00:06:29]Write i2c OK [00:06:29]MH_I2C_Read... [00:06:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:06:29]Read from MH i2c: E2 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: E2 D5 00 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: E2 D5 00 E8 0B 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:06:29]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:29]wFMCommunicate OK [00:06:29]SAM_PROTO_GetShiftData done [00:06:29]1194 (1204) - счетчики итогов смены [00:06:29] 1134 (4) - 426 - количество чеков со всеми признаками расчетов [00:06:29] 1129 (158) - счетчики операций «приход» [00:06:29] 1135 (4) - 424 - количество чеков по признаку расчетов [00:06:29] 1201 (4) - 350012.12 - общая итоговая сумма в чеках [00:06:29] 1136 (4) - 283271.00 - итоговая сумма в чеках наличными [00:06:29] 1138 (3) - 66741.12 - итоговая сумма в чеках безналичными [00:06:29] 1024 (123) - суммы налогов [00:06:29] 1006 (9) - суммы НДС [00:06:29] 1010 (1) - 0% - код ставки НДС [00:06:29] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:29] 1006 (12) - суммы НДС [00:06:29] 1010 (1) - 12% - код ставки НДС [00:06:29] 1011 (3) - 37180.02 - сумма НДС по ставке [00:06:29] 1007 (9) - суммы НСП [00:06:29] 1014 (1) - 0% - код ставки НСП [00:06:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:29] 1007 (12) - суммы НСП [00:06:29] 1014 (1) - 1% - код ставки НСП [00:06:29] 1015 (3) - 3098.23 - сумма НСП по ставке [00:06:29] 1007 (9) - суммы НСП [00:06:29] 1014 (1) - 2% - код ставки НСП [00:06:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:29] 1007 (9) - суммы НСП [00:06:29] 1014 (1) - 3% - код ставки НСП [00:06:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:29] 1007 (9) - суммы НСП [00:06:29] 1014 (1) - 5% - код ставки НСП [00:06:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:29] 1007 (9) - суммы НСП [00:06:29] 1014 (1) - 0,50% - код ставки НСП [00:06:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:29] 1007 (9) - суммы НСП [00:06:29] 1014 (1) - 1,50% - код ставки НСП [00:06:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:29] 1130 (148) - счетчики операций «возврат прихода» [00:06:29] 1135 (4) - 2 - количество чеков по признаку расчетов [00:06:29] 1201 (2) - 200.00 - общая итоговая сумма в чеках [00:06:29] 1136 (2) - 200.00 - итоговая сумма в чеках наличными [00:06:29] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:06:29] 1024 (120) - суммы налогов [00:06:29] 1006 (9) - суммы НДС [00:06:29] 1010 (1) - 0% - код ставки НДС [00:06:29] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:29] 1006 (11) - суммы НДС [00:06:29] 1010 (1) - 12% - код ставки НДС [00:06:29] 1011 (2) - 21.36 - сумма НДС по ставке [00:06:29] 1007 (9) - суммы НСП [00:06:29] 1014 (1) - 0% - код ставки НСП [00:06:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:29] 1007 (10) - суммы НСП [00:06:29] 1014 (1) - 1% - код ставки НСП [00:06:29] 1015 (1) - 1.78 - сумма НСП по ставке [00:06:29] 1007 (9) - суммы НСП [00:06:29] 1014 (1) - 2% - код ставки НСП [00:06:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:29] 1007 (9) - суммы НСП [00:06:29] 1014 (1) - 3% - код ставки НСП [00:06:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:29] 1007 (9) - суммы НСП [00:06:29] 1014 (1) - 5% - код ставки НСП [00:06:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:29] 1007 (9) - суммы НСП [00:06:29] 1014 (1) - 0,50% - код ставки НСП [00:06:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:29] 1007 (9) - суммы НСП [00:06:29] 1014 (1) - 1,50% - код ставки НСП [00:06:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:29] 1131 (141) - счетчики операций «расход» [00:06:29] 1135 (4) - 0 - количество чеков по признаку расчетов [00:06:29] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:06:29] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:06:29] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:06:29] 1024 (117) - суммы налогов [00:06:29] 1006 (9) - суммы НДС [00:06:29] 1010 (1) - 0% - код ставки НДС [00:06:29] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:29] 1006 (9) - суммы НДС [00:06:29] 1010 (1) - 12% - код ставки НДС [00:06:29] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:29] 1007 (9) - суммы НСП [00:06:29] 1014 (1) - 0% - код ставки НСП [00:06:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:29] 1007 (9) - суммы НСП [00:06:29] 1014 (1) - 1% - код ставки НСП [00:06:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:29] 1007 (9) - суммы НСП [00:06:29] 1014 (1) - 2% - код ставки НСП [00:06:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:29] 1007 (9) - суммы НСП [00:06:29] 1014 (1) - 3% - код ставки НСП [00:06:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:29] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 5% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 0,50% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 1,50% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1132 (141) - счетчики операций «возврат расхода» [00:06:30] 1135 (4) - 0 - количество чеков по признаку расчетов [00:06:30] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:06:30] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:06:30] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:06:30] 1024 (117) - суммы налогов [00:06:30] 1006 (9) - суммы НДС [00:06:30] 1010 (1) - 0% - код ставки НДС [00:06:30] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:30] 1006 (9) - суммы НДС [00:06:30] 1010 (1) - 12% - код ставки НДС [00:06:30] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 0% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 1% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 2% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 3% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 5% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 0,50% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 1,50% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1133 (588) - - счетчики коррекции - не используются [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1194 (04AA) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1134 (046E) [00:06:30]Malloc new data [00:06:30]Processing tag 1129 (0469) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1135 (046F) [00:06:30]Malloc new data [00:06:30]Processing tag 1201 (04B1) [00:06:30]Malloc new data [00:06:30]Processing tag 1136 (0470) [00:06:30]Malloc new data [00:06:30]Processing tag 1138 (0472) [00:06:30]Malloc new data [00:06:30]Processing tag 1024 (0400) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1006 (03EE) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1010 (03F2) [00:06:30]Malloc new data [00:06:30]Processing tag 1011 (03F3) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1006 (03EE) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1010 (03F2) [00:06:30]Malloc new data [00:06:30]Processing tag 1011 (03F3) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]SetTLVBufToDocument err=0 [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1130 (046A) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1135 (046F) [00:06:30]Malloc new data [00:06:30]Processing tag 1201 (04B1) [00:06:30]Malloc new data [00:06:30]Processing tag 1136 (0470) [00:06:30]Malloc new data [00:06:30]Processing tag 1138 (0472) [00:06:30]Malloc new data [00:06:30]Processing tag 1024 (0400) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1006 (03EE) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1010 (03F2) [00:06:30]Malloc new data [00:06:30]Processing tag 1011 (03F3) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1006 (03EE) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1010 (03F2) [00:06:30]Malloc new data [00:06:30]Processing tag 1011 (03F3) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]SetTLVBufToDocument err=0 [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1131 (046B) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1135 (046F) [00:06:30]Malloc new data [00:06:30]Processing tag 1201 (04B1) [00:06:30]Malloc new data [00:06:30]Processing tag 1136 (0470) [00:06:30]Malloc new data [00:06:30]Processing tag 1138 (0472) [00:06:30]Malloc new data [00:06:30]Processing tag 1024 (0400) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1006 (03EE) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1010 (03F2) [00:06:30]Malloc new data [00:06:30]Processing tag 1011 (03F3) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1006 (03EE) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1010 (03F2) [00:06:30]Malloc new data [00:06:30]Processing tag 1011 (03F3) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]SetTLVBufToDocument err=0 [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1132 (046C) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1135 (046F) [00:06:30]Malloc new data [00:06:30]Processing tag 1201 (04B1) [00:06:30]Malloc new data [00:06:30]Processing tag 1136 (0470) [00:06:30]Malloc new data [00:06:30]Processing tag 1138 (0472) [00:06:30]Malloc new data [00:06:30]Processing tag 1024 (0400) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]OFD Sender: No OFD packet to send [00:06:30]Processing tag 1006 (03EE) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1010 (03F2) [00:06:30]Malloc new data [00:06:30]Processing tag 1011 (03F3) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1006 (03EE) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1010 (03F2) [00:06:30]Malloc new data [00:06:30]Processing tag 1011 (03F3) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]SetTLVBufToDocument err=0 [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1133 (046D) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Malloc new data [00:06:30]SAM_PROTO_GetFMData [00:06:30]wFMCommunicate request_size=4 [00:06:30]MH_SAM_APDU [00:06:30]CAPDU: 80 13 03 00 [00:06:30]Write to MH i2c: E2 08 00 E9 0B 80 13 03 00 00 00 00 00 73 [00:06:30]Write i2c OK [00:06:30]MH_I2C_Read... [00:06:31]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:31]Read from MH i2c: E2 [00:06:31]MH_I2C_Read... [00:06:31]Read from MH i2c: E2 FD 00 [00:06:31]MH_I2C_Read... [00:06:31]Read from MH i2c: E2 FD 00 E9 0B 00 C5 04 85 04 C1 04 6E 04 04 00 40 78 03 00 69 04 A3 00 6F 04 04 00 4D 71 03 00 B1 04 05 00 B5 CD 42 C9 04 70 04 05 00 24 4E 12 4F 04 72 04 04 00 91 7F 30 7A 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 0A 86 28 82 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 63 89 D8 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 06 00 00 B1 04 04 00 38 AB D0 1E 70 04 04 00 38 AB D0 1E 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 95 D1 45 03 EF 03 09 90 00 86 [00:06:31]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 40 78 03 00 69 04 A3 00 6F 04 04 00 4D 71 03 00 B1 04 05 00 B5 CD 42 C9 04 70 04 05 00 24 4E 12 4F 04 72 04 04 00 91 7F 30 7A 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 0A 86 28 82 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 63 89 D8 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 06 00 00 B1 04 04 00 38 AB D0 1E 70 04 04 00 38 AB D0 1E 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 95 D1 45 03 EF 03 09 90 00 [00:06:31]wFMCommunicate OK [00:06:31]wFMCommunicate request_size=4 [00:06:31]MH_SAM_APDU [00:06:31]CAPDU: 80 17 00 00 [00:06:31]Write to MH i2c: E2 08 00 EA 0B 80 17 00 00 00 00 00 00 75 [00:06:31]Write i2c OK [00:06:31]MH_I2C_Read... [00:06:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:31]Read from MH i2c: E2 [00:06:31]MH_I2C_Read... [00:06:31]Read from MH i2c: E2 FD 00 [00:06:31]MH_I2C_Read... [00:06:31]Read from MH i2c: E2 FD 00 EA 0B 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB D0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 3B [00:06:31]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB D0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:06:32]wFMCommunicate OK [00:06:32]wFMCommunicate request_size=4 [00:06:32]MH_SAM_APDU [00:06:32]CAPDU: 80 17 00 00 [00:06:32]Write to MH i2c: E2 08 00 EB 0B 80 17 00 00 00 00 00 00 76 [00:06:32]Write i2c OK [00:06:32]MH_I2C_Read... [00:06:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:32]Read from MH i2c: E2 [00:06:32]MH_I2C_Read... [00:06:32]Read from MH i2c: E2 FD 00 [00:06:32]MH_I2C_Read... [00:06:32]Read from MH i2c: E2 FD 00 EB 0B 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 88 [00:06:32]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:32]wFMCommunicate OK [00:06:32]wFMCommunicate request_size=4 [00:06:32]MH_SAM_APDU [00:06:32]CAPDU: 80 17 00 00 [00:06:32]Write to MH i2c: E2 08 00 EC 0B 80 17 00 00 00 00 00 00 77 [00:06:32]Write i2c OK [00:06:32]MH_I2C_Read... [00:06:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:32]Read from MH i2c: E2 [00:06:32]MH_I2C_Read... [00:06:32]Read from MH i2c: E2 FD 00 [00:06:32]MH_I2C_Read... [00:06:32]Read from MH i2c: E2 FD 00 EC 0B 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 03 [00:06:32]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:33]wFMCommunicate OK [00:06:33]wFMCommunicate request_size=4 [00:06:33]MH_SAM_APDU [00:06:33]CAPDU: 80 17 00 00 [00:06:33]Write to MH i2c: E2 08 00 ED 0B 80 17 00 00 00 00 00 00 78 [00:06:33]Write i2c OK [00:06:33]MH_I2C_Read... [00:06:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:06:33]Read from MH i2c: E2 [00:06:33]MH_I2C_Read... [00:06:33]Read from MH i2c: E2 E2 00 [00:06:33]MH_I2C_Read... [00:06:33]Read from MH i2c: E2 E2 00 ED 0B 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 56 [00:06:33]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:06:33]wFMCommunicate OK [00:06:33]SAM_PROTO_GetFMData done [00:06:33]FM_GetFMData:85 04 C1 04 6E 04 04 00 40 78 03 00 69 04 A3 00 6F 04 04 00 4D 71 03 00 B1 04 05 00 B5 CD 42 C9 04 70 04 05 00 24 4E 12 4F 04 72 04 04 00 91 7F 30 7A 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 0A 86 28 82 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 63 89 D8 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 06 00 00 B1 04 04 00 38 AB D0 1E 70 04 04 00 38 AB D0 1E 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 95 D1 45 03 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 FB D0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:06:34]oper:6F 04 04 00 4D 71 03 00 B1 04 05 00 B5 CD 42 C9 04 70 04 05 00 24 4E 12 4F 04 72 04 04 00 91 7F 30 7A 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 0A 86 28 82 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 63 89 D8 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:06:34]total:B5 CD 42 C9 04 [00:06:34]Malloc new data [00:06:34]oper:6F 04 04 00 F3 06 00 00 B1 04 04 00 38 AB D0 1E 70 04 04 00 38 AB D0 1E 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 95 D1 45 03 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 FB D0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:06:34]total:38 AB D0 1E [00:06:34]Malloc new data [00:06:34]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:06:34]total: [00:06:34]Malloc new data [00:06:34]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:06:34]total: [00:06:34]Malloc new data [00:06:34]KKMPrepareXReportFMData err=0 [00:06:34]Х отчет ИНН: 02508201610067 Кассир: Шекербек кызы К. 23.10.2024 00:06 Смена: 522 РНМ: 0000000000091685 ЗНМ: 0300000091 СНО: Общий режим Всего чеков: 426 ИТОГИ ПРИХОД Чеков: 424 Общий итог: 350012.12 Итого наличными: 283271.00 Итого безнал.: 66741.12 НДС 0% : 0.00 НДС 12% : 37180.02 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 3098.23 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 2 Общий итог: 200.00 Итого наличными: 200.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 21.36 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1.78 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 283071.00 НС Приход: 205564676.37 НС Возвр.Прихода: 5169918.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871839 [00:06:34]StoreToDocumentArchive [00:06:34]MH_GetDate [00:06:34]Write to MH i2c: F0 00 00 EE 0B E8 [00:06:34]Write i2c OK [00:06:34]MH_I2C_Read... [00:06:34]Read from MH i2c: F0 [00:06:34]MH_I2C_Read... [00:06:34]Read from MH i2c: F0 09 00 [00:06:34]MH_I2C_Read... [00:06:34]Read from MH i2c: F0 09 00 EE 0B 00 0B 3E 18 67 82 C9 CF 66 39 [00:06:34]shift 522 fd 1729641995 [00:06:34]Create dir for shift 0522 [00:06:34]save to /storage/0522/doc_1729641995 [00:06:34]save last doc name /storage/0522/doc_1729641995 to /storage/kkm_last_doc_name [00:06:34]save OK [00:06:34]Clear old archive folders... [00:06:34]NVStorageSaveData kkm_last_timestamp [00:06:34]File name is /storage/kkm_last_timestamp [00:06:34]Write 4 bytes [00:06:34]NVStorageSaveData done [00:06:34]ExternCall_PrintAddStr [00:06:34]wPrintStart [00:06:34]Write to MH i2c: 01 00 00 EF 0B FA [00:06:34]Write i2c OK [00:06:34]MH_I2C_Read... [00:06:34]Read from MH i2c: 01 [00:06:34]MH_I2C_Read... [00:06:34]Read from MH i2c: 01 07 00 [00:06:34]MH_I2C_Read... [00:06:34]Read from MH i2c: 01 07 00 EF 0B 00 00 00 00 00 FF 0F 0F [00:06:34]RasterBufferAndPrint [00:06:34]line Х отчет [00:06:34]line ИНН: 02508201610067 [00:06:34]line Кассир: Шекербек кызы К. [00:06:34]line 23.10.2024 00:06 [00:06:34]line Смена: 522 [00:06:34]line РНМ: 0000000000091685 [00:06:34]line ЗНМ: 0300000091 [00:06:34]line СНО: Общий режим [00:06:34]line Всего чеков: 426 [00:06:34]line ИТОГИ ПРИХОД [00:06:34]line Чеков: 424 [00:06:34]line Общий итог: 350012.12 [00:06:34]line Итого наличными: 283271.00 [00:06:34]line Итого безнал.: 66741.12 [00:06:34]line НДС 0% : 0.00 [00:06:34]line НДС 12% : 37180.02 [00:06:34]line НСП 0% : 0.00 [00:06:34]line НСП 1,50% : 0.00 [00:06:34]line НСП 0,50% : 0.00 [00:06:34]line НСП 5% : 0.00 [00:06:34]line НСП 3% : 0.00 [00:06:34]line НСП 2% : 0.00 [00:06:34]line НСП 1% : 3098.23 [00:06:34]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:06:34]line Чеков: 2 [00:06:34]line Общий итог: 200.00 [00:06:34]line Итого наличными: 200.00 [00:06:34]line Итого безнал.: 0.00 [00:06:34]line НДС 0% : 0.00 [00:06:34]line НДС 12% : 21.36 [00:06:34]line НСП 0% : 0.00 [00:06:34]line НСП 1,50% : 0.00 [00:06:34]line НСП 0,50% : 0.00 [00:06:34]line НСП 5% : 0.00 [00:06:34]line НСП 3% : 0.00 [00:06:34]line НСП 2% : 0.00 [00:06:34]line НСП 1% : 1.78 [00:06:34]line ИТОГИ РАСХОД [00:06:34]line Чеков: 0 [00:06:34]line Общий итог: 0.00 [00:06:34]line Итого наличными: 0.00 [00:06:34]line Итого безнал.: 0.00 [00:06:34]line НДС 0% : 0.00 [00:06:34]line НДС 12% : 0.00 [00:06:34]line НСП 0% : 0.00 [00:06:34]line НСП 1,50% : 0.00 [00:06:34]line НСП 0,50% : 0.00 [00:06:34]line НСП 5% : 0.00 [00:06:34]line НСП 3% : 0.00 [00:06:34]line НСП 2% : 0.00 [00:06:34]line НСП 1% : 0.00 [00:06:34]line ИТОГИ ВОЗВРАТ РАСХОДА [00:06:34]line Чеков: 0 [00:06:34]line Общий итог: 0.00 [00:06:34]line Итого наличными: 0.00 [00:06:34]line Итого безнал.: 0.00 [00:06:34]line НДС 0% : 0.00 [00:06:34]line НДС 12% : 0.00 [00:06:34]line НСП 0% : 0.00 [00:06:34]line НСП 1,50% : 0.00 [00:06:34]line НСП 0,50% : 0.00 [00:06:34]line НСП 5% : 0.00 [00:06:34]line НСП 3% : 0.00 [00:06:34]line НСП 2% : 0.00 [00:06:34]line НСП 1% : 0.00 [00:06:34]line Сумма внесений: 0.00 [00:06:34]line Сумма выплат: 0.00 [00:06:34]line Нал. в кассе: 283071.00 [00:06:34]line НС Приход: 205564676.37 [00:06:34]line НС Возвр.Прихода: 5169918.00 [00:06:34]line НС Расход: 0.00 [00:06:34]line НС Возвр.Расхода: 0.00 [00:06:34]line ФМ: 0000000000871839 [00:06:34]written 0, free lines is 4095 [00:06:35]Write to MH i2c: 01 00 00 3A 0C 46 [00:06:35]Write i2c OK [00:06:35]MH_I2C_Read... [00:06:35]Read from MH i2c: 01 [00:06:35]MH_I2C_Read... [00:06:35]Read from MH i2c: 01 07 00 [00:06:35]MH_I2C_Read... [00:06:35]Read from MH i2c: 01 07 00 3A 0C 00 00 00 00 00 1F 0A 76 [00:06:35]RasterBufferAndPrint [00:06:35]line [00:06:35]line [00:06:35]line [00:06:35]line [00:06:35]line [00:06:35]written 0, free lines is 2607 [00:06:35]MH_Cut [00:06:35]Write to MH i2c: D1 01 00 41 0C 01 1F [00:06:35]Write i2c OK [00:06:35]MH_I2C_Read... [00:06:35]Read from MH i2c: D1 [00:06:35]MH_I2C_Read... [00:06:35]Read from MH i2c: D1 01 00 [00:06:35]MH_I2C_Read... [00:06:35]Read from MH i2c: D1 01 00 41 0C 00 1E [00:06:35]Write to MH i2c: 01 00 00 42 0C 4E [00:06:35]Write i2c OK [00:06:35]MH_I2C_Read... [00:06:35]OFD Sender: No OFD packet to send [00:06:36]*** Cut start [00:06:36]*** Partial cut [00:06:36]*** CUTSNS_PIN = 1 [00:06:36]*** CUTSNS_PIN = 0 [00:06:37]*** Brake cut motor [00:06:37]Read from MH i2c: 01 [00:06:37]MH_I2C_Read... [00:06:37]*** Stop cut motor [00:06:37]*** Cut end [00:06:37]Read from MH i2c: 01 07 00 [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: 01 07 00 42 0C 00 00 00 00 00 FF 0F 63 [00:06:37]process_action x_report done [00:06:37]requested_data is exist [00:06:37]produce_requested_data [00:06:37]requested_item fd.num is exist - process it [00:06:37]SAM_PROTO_GetFieldsCounters [00:06:37]wFMCommunicate request_size=4 [00:06:37]MH_SAM_APDU [00:06:37]CAPDU: 80 13 00 00 [00:06:37]Write to MH i2c: E2 08 00 43 0C 80 13 00 00 00 00 00 00 CB [00:06:37]Write i2c OK [00:06:37]MH_I2C_Read... [00:06:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:37]Read from MH i2c: E2 [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: E2 62 00 [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: E2 62 00 43 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6E 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 AA 01 00 00 5E 04 04 00 AA 01 00 00 57 04 04 00 AB 01 00 00 19 04 04 00 00 00 00 00 90 00 FB [00:06:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6E 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 AA 01 00 00 5E 04 04 00 AA 01 00 00 57 04 04 00 AB 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:06:37]wFMCommunicate OK [00:06:37]SAM_PROTO_GetFieldsCounters done [00:06:37]requested_item shift.num is exist - process it [00:06:37]requested_item shift.opened is exist - process it [00:06:37]req_shift_opened [00:06:37]FM_GetShiftState [00:06:37]SAM_PROTO_GetShiftState [00:06:37]wFMCommunicate request_size=4 [00:06:37]MH_SAM_APDU [00:06:37]CAPDU: 80 13 01 00 [00:06:37]Write to MH i2c: E2 08 00 44 0C 80 13 01 00 00 00 00 00 CD [00:06:37]Write i2c OK [00:06:37]MH_I2C_Read... [00:06:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:37]Read from MH i2c: E2 [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: E2 0E 00 [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: E2 0E 00 44 0C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 94 [00:06:37]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [00:06:37]wFMCommunicate OK [00:06:37]SAM_PROTO_GetShiftState done [00:06:37]FM_GetShiftState done [00:06:37]req_shift_opened done [00:06:37]requested_item shift.open_date is exist - process it [00:06:37]req_shift_open_date [00:06:37]req_shift_open_date done [00:06:37]produce_requested_data done [00:06:37]produce_requested_data return {"fd.num":228462,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [00:06:37]process_action_free x_report [00:06:37]json_value_free [00:06:37]json_value_free done [00:06:37]process_json_proto returns [00:06:37]Send response to host [00:06:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":228462,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [00:06:37]free response buf [00:06:37]execute_script done [00:06:37]execute_script returns [00:06:37]free content buf [00:06:37]Sock 7.Close socket [00:06:37]Sock 7.Thread stoped [00:06:40]OFD Sender: No OFD packet to send [00:06:45]OFD Sender: No OFD packet to send [00:06:50]OFD Sender: No OFD packet to send [00:06:55]OFD Sender: No OFD packet to send [00:07:00]OFD Sender: No OFD packet to send [00:07:05]OFD Sender: No OFD packet to send [00:07:10]OFD Sender: No OFD packet to send [00:07:15]OFD Sender: No OFD packet to send [00:07:20]OFD Sender: No OFD packet to send [00:07:24]accept exits with 9 [00:07:24]New connection [00:07:24]New thread 3066977636 created [00:07:24]Thread 3066834276 joined [00:07:24]Waiting for new connection... [00:07:24] Sock 9.Parse request [00:07:24]Sock 9.Check first char [00:07:24]Sock 9.First char is OK [00:07:24]request: POST /json_proto HTTP/1.0 [00:07:24]Method: POST [00:07:24]URL: /json_proto [00:07:24]Method is POST - this is cgi request [00:07:24]url: /json_proto [00:07:24]query_string will be loaded in cgi processing [00:07:24]execute_cgi json_proto POST (null) [00:07:24]execute_cgi path=json_proto method=POST [00:07:24]POST find Content-Length [00:07:24]Host: 172.17.44.195:8080 [00:07:24]Content-Length: 215 [00:07:24]Content-Type: application/json [00:07:24] [00:07:24]POST finish read [00:07:24]Found Content-Length = 215 [00:07:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:24]execute_script... [00:07:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:24]POST & json_proto [00:07:24]process_json_proto [00:07:24]json parsed OK: [00:07:24]protocol is kg_v1.0 [00:07:24]action value=get_value [00:07:24]process_action get_value [00:07:24]cmd_get_value [00:07:24]process_action get_value done [00:07:24]requested_data is exist [00:07:24]produce_requested_data [00:07:24]requested_item kkm.sn is exist - process it [00:07:24]requested_item kkm.ver is exist - process it [00:07:24]requested_item fm.sn is exist - process it [00:07:24]wFMCommunicate request_size=4 [00:07:24]MH_SAM_APDU [00:07:24]CAPDU: 80 11 00 00 [00:07:24]Write to MH i2c: E2 08 00 45 0C 80 11 00 00 00 00 00 00 CB [00:07:24]Write i2c OK [00:07:24]MH_I2C_Read... [00:07:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:25]Read from MH i2c: E2 [00:07:25]MH_I2C_Read... [00:07:25]Read from MH i2c: E2 17 00 [00:07:25]MH_I2C_Read... [00:07:25]Read from MH i2c: E2 17 00 45 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 22 [00:07:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:07:25]wFMCommunicate OK [00:07:25]requested_item fd.num is exist - process it [00:07:25]SAM_PROTO_GetFieldsCounters [00:07:25]wFMCommunicate request_size=4 [00:07:25]MH_SAM_APDU [00:07:25]CAPDU: 80 13 00 00 [00:07:25]Write to MH i2c: E2 08 00 46 0C 80 13 00 00 00 00 00 00 CE [00:07:25]Write i2c OK [00:07:25]MH_I2C_Read... [00:07:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:25]Read from MH i2c: E2 [00:07:25]MH_I2C_Read... [00:07:25]Read from MH i2c: E2 62 00 [00:07:25]MH_I2C_Read... [00:07:25]Read from MH i2c: E2 62 00 46 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6E 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 AA 01 00 00 5E 04 04 00 AA 01 00 00 57 04 04 00 AB 01 00 00 19 04 04 00 00 00 00 00 90 00 FE [00:07:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6E 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 AA 01 00 00 5E 04 04 00 AA 01 00 00 57 04 04 00 AB 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:25]wFMCommunicate OK [00:07:25]SAM_PROTO_GetFieldsCounters done [00:07:25]requested_item shift.num is exist - process it [00:07:25]requested_item shift.opened is exist - process it [00:07:25]req_shift_opened [00:07:25]FM_GetShiftState [00:07:25]SAM_PROTO_GetShiftState [00:07:25]wFMCommunicate request_size=4 [00:07:25]MH_SAM_APDU [00:07:25]CAPDU: 80 13 01 00 [00:07:25]Write to MH i2c: E2 08 00 47 0C 80 13 01 00 00 00 00 00 D0 [00:07:25]Write i2c OK [00:07:25]MH_I2C_Read... [00:07:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:25]Read from MH i2c: E2 [00:07:25]MH_I2C_Read... [00:07:25]Read from MH i2c: E2 0E 00 [00:07:25]MH_I2C_Read... [00:07:25]Read from MH i2c: E2 0E 00 47 0C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 97 [00:07:25]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [00:07:25]wFMCommunicate OK [00:07:25]SAM_PROTO_GetShiftState done [00:07:25]FM_GetShiftState done [00:07:25]req_shift_opened done [00:07:25]requested_item shift.open_date is exist - process it [00:07:25]req_shift_open_date [00:07:25]req_shift_open_date done [00:07:25]produce_requested_data done [00:07:25]produce_requested_data return {"kkm.sn":"0300000091","kkm.ver":"001","fm.sn":"0000000000871839","fd.num":228462,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538} [00:07:25]process_action_free get_value [00:07:25]json_value_free [00:07:25]json_value_free done [00:07:25]process_json_proto returns [00:07:25]Send response to host [00:07:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000091","kkm.ver":"001","fm.sn":"0000000000871839","fd.num":228462,"shift.num":535,"shift.opened":1,"shift.open_date":1729555538}}} [00:07:25]free response buf [00:07:25]execute_script done [00:07:25]execute_script returns [00:07:25]free content buf [00:07:25]Sock 9.Close socket [00:07:25]Sock 9.Thread stoped [00:07:25]accept exits with 7 [00:07:25]New connection [00:07:25]New thread 3066834276 created [00:07:25]Thread 3066977636 joined [00:07:25]Waiting for new connection... [00:07:25] Sock 7.Parse request [00:07:25]Sock 7.Check first char [00:07:25]Sock 7.First char is OK [00:07:25]request: POST /json_proto HTTP/1.0 [00:07:25]Method: POST [00:07:25]URL: /json_proto [00:07:25]Method is POST - this is cgi request [00:07:25]url: /json_proto [00:07:25]query_string will be loaded in cgi processing [00:07:25]execute_cgi json_proto POST (null) [00:07:25]execute_cgi path=json_proto method=POST [00:07:25]POST find Content-Length [00:07:25]Host: 172.17.44.195:8080 [00:07:25]Content-Length: 331 [00:07:25]Content-Type: application/json [00:07:25] [00:07:25]POST finish read [00:07:25]Found Content-Length = 331 [00:07:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:25]execute_script... [00:07:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:25]POST & json_proto [00:07:25]process_json_proto [00:07:25]json parsed OK: [00:07:25]protocol is kg_v1.0 [00:07:25]action value=get_value [00:07:25]process_action get_value [00:07:25]cmd_get_value [00:07:25]process_action get_value done [00:07:25]requested_data is exist [00:07:25]produce_requested_data [00:07:25]requested_item fm.sale.total is exist - process it [00:07:25]SAM_PROTO_GetFMData [00:07:25]wFMCommunicate request_size=4 [00:07:25]MH_SAM_APDU [00:07:25]CAPDU: 80 13 03 00 [00:07:25]Write to MH i2c: E2 08 00 48 0C 80 13 03 00 00 00 00 00 D3 [00:07:25]Write i2c OK [00:07:25]MH_I2C_Read... [00:07:25]OFD Sender: No OFD packet to send [00:07:25]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:25]Read from MH i2c: E2 [00:07:25]MH_I2C_Read... [00:07:25]Read from MH i2c: E2 FD 00 [00:07:25]MH_I2C_Read... [00:07:25]Read from MH i2c: E2 FD 00 48 0C 00 C5 04 85 04 C1 04 6E 04 04 00 40 78 03 00 69 04 A3 00 6F 04 04 00 4D 71 03 00 B1 04 05 00 B5 CD 42 C9 04 70 04 05 00 24 4E 12 4F 04 72 04 04 00 91 7F 30 7A 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 0A 86 28 82 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 63 89 D8 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 06 00 00 B1 04 04 00 38 AB D0 1E 70 04 04 00 38 AB D0 1E 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 95 D1 45 03 EF 03 09 90 00 E6 [00:07:25]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 40 78 03 00 69 04 A3 00 6F 04 04 00 4D 71 03 00 B1 04 05 00 B5 CD 42 C9 04 70 04 05 00 24 4E 12 4F 04 72 04 04 00 91 7F 30 7A 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 0A 86 28 82 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 63 89 D8 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 06 00 00 B1 04 04 00 38 AB D0 1E 70 04 04 00 38 AB D0 1E 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 95 D1 45 03 EF 03 09 90 00 [00:07:25]wFMCommunicate OK [00:07:25]wFMCommunicate request_size=4 [00:07:25]MH_SAM_APDU [00:07:25]CAPDU: 80 17 00 00 [00:07:25]Write to MH i2c: E2 08 00 49 0C 80 17 00 00 00 00 00 00 D5 [00:07:25]Write i2c OK [00:07:25]MH_I2C_Read... [00:07:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:26]Read from MH i2c: E2 [00:07:26]MH_I2C_Read... [00:07:26]Read from MH i2c: E2 FD 00 [00:07:26]MH_I2C_Read... [00:07:26]Read from MH i2c: E2 FD 00 49 0C 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB D0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 9B [00:07:26]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB D0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:07:26]wFMCommunicate OK [00:07:26]wFMCommunicate request_size=4 [00:07:26]MH_SAM_APDU [00:07:26]CAPDU: 80 17 00 00 [00:07:26]Write to MH i2c: E2 08 00 4A 0C 80 17 00 00 00 00 00 00 D6 [00:07:26]Write i2c OK [00:07:26]MH_I2C_Read... [00:07:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:26]Read from MH i2c: E2 [00:07:26]MH_I2C_Read... [00:07:26]Read from MH i2c: E2 FD 00 [00:07:26]MH_I2C_Read... [00:07:26]Read from MH i2c: E2 FD 00 4A 0C 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E8 [00:07:26]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:26]wFMCommunicate OK [00:07:26]wFMCommunicate request_size=4 [00:07:26]MH_SAM_APDU [00:07:26]CAPDU: 80 17 00 00 [00:07:26]Write to MH i2c: E2 08 00 4B 0C 80 17 00 00 00 00 00 00 D7 [00:07:26]Write i2c OK [00:07:26]MH_I2C_Read... [00:07:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:26]Read from MH i2c: E2 [00:07:26]MH_I2C_Read... [00:07:26]Read from MH i2c: E2 FD 00 [00:07:26]MH_I2C_Read... [00:07:26]Read from MH i2c: E2 FD 00 4B 0C 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 63 [00:07:26]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:26]wFMCommunicate OK [00:07:26]wFMCommunicate request_size=4 [00:07:26]MH_SAM_APDU [00:07:26]CAPDU: 80 17 00 00 [00:07:26]Write to MH i2c: E2 08 00 4C 0C 80 17 00 00 00 00 00 00 D8 [00:07:26]Write i2c OK [00:07:26]MH_I2C_Read... [00:07:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:07:26]Read from MH i2c: E2 [00:07:26]MH_I2C_Read... [00:07:26]Read from MH i2c: E2 E2 00 [00:07:26]MH_I2C_Read... [00:07:26]Read from MH i2c: E2 E2 00 4C 0C 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B6 [00:07:27]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:27]wFMCommunicate OK [00:07:27]SAM_PROTO_GetFMData done [00:07:27]requested_item fm.sale_refund.total is exist - process it [00:07:27]requested_item fm.buy.total is exist - process it [00:07:27]requested_item shift.sale.total is exist - process it [00:07:27]SAM_PROTO_GetShiftData [00:07:27]wFMCommunicate request_size=4 [00:07:27]MH_SAM_APDU [00:07:27]CAPDU: 80 13 02 00 [00:07:27]Write to MH i2c: E2 08 00 4D 0C 80 13 02 00 00 00 00 00 D7 [00:07:27]Write i2c OK [00:07:27]MH_I2C_Read... [00:07:27]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:27]Read from MH i2c: E2 [00:07:27]MH_I2C_Read... [00:07:27]Read from MH i2c: E2 FD 00 [00:07:27]MH_I2C_Read... [00:07:27]Read from MH i2c: E2 FD 00 4D 0C 00 B8 04 AA 04 B4 04 6E 04 04 00 AA 01 00 00 69 04 9E 00 6F 04 04 00 A8 01 00 00 B1 04 04 00 7C 13 16 02 70 04 04 00 BC 3C B0 01 72 04 03 00 C0 D6 65 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 72 BB 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 3F BA 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 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 20 4E 70 04 02 00 20 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 07 [00:07:27]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 AA 01 00 00 69 04 9E 00 6F 04 04 00 A8 01 00 00 B1 04 04 00 7C 13 16 02 70 04 04 00 BC 3C B0 01 72 04 03 00 C0 D6 65 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 72 BB 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 3F BA 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 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 20 4E 70 04 02 00 20 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:07:27]wFMCommunicate OK [00:07:27]wFMCommunicate request_size=4 [00:07:27]MH_SAM_APDU [00:07:27]CAPDU: 80 17 00 00 [00:07:27]Write to MH i2c: E2 08 00 4E 0C 80 17 00 00 00 00 00 00 DA [00:07:27]Write i2c OK [00:07:27]MH_I2C_Read... [00:07:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:27]Read from MH i2c: E2 [00:07:27]MH_I2C_Read... [00:07:27]Read from MH i2c: E2 FD 00 [00:07:27]MH_I2C_Read... [00:07:27]Read from MH i2c: E2 FD 00 4E 0C 00 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 BE [00:07:27]RAPDU: 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:07:27]wFMCommunicate OK [00:07:27]wFMCommunicate request_size=4 [00:07:27]MH_SAM_APDU [00:07:27]CAPDU: 80 17 00 00 [00:07:27]Write to MH i2c: E2 08 00 4F 0C 80 17 00 00 00 00 00 00 DB [00:07:27]Write i2c OK [00:07:27]MH_I2C_Read... [00:07:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:27]Read from MH i2c: E2 [00:07:27]MH_I2C_Read... [00:07:27]Read from MH i2c: E2 FD 00 [00:07:27]MH_I2C_Read... [00:07:28]Read from MH i2c: E2 FD 00 4F 0C 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 7D [00:07:28]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [00:07:28]wFMCommunicate OK [00:07:28]wFMCommunicate request_size=4 [00:07:28]MH_SAM_APDU [00:07:28]CAPDU: 80 17 00 00 [00:07:28]Write to MH i2c: E2 08 00 50 0C 80 17 00 00 00 00 00 00 DC [00:07:28]Write i2c OK [00:07:28]MH_I2C_Read... [00:07:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:28]Read from MH i2c: E2 [00:07:28]MH_I2C_Read... [00:07:28]Read from MH i2c: E2 FD 00 [00:07:28]MH_I2C_Read... [00:07:28]Read from MH i2c: E2 FD 00 50 0C 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 65 [00:07:28]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [00:07:28]wFMCommunicate OK [00:07:28]wFMCommunicate request_size=4 [00:07:28]MH_SAM_APDU [00:07:28]CAPDU: 80 17 00 00 [00:07:28]Write to MH i2c: E2 08 00 51 0C 80 17 00 00 00 00 00 00 DD [00:07:28]Write i2c OK [00:07:28]MH_I2C_Read... [00:07:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:07:28]Read from MH i2c: E2 [00:07:28]MH_I2C_Read... [00:07:28]Read from MH i2c: E2 D5 00 [00:07:28]MH_I2C_Read... [00:07:28]Read from MH i2c: E2 D5 00 51 0C 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BE [00:07:28]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:28]wFMCommunicate OK [00:07:28]SAM_PROTO_GetShiftData done [00:07:28]requested_item shift.sale.total_cash is exist - process it [00:07:28]requested_item shift.sale_refund.total is exist - process it [00:07:28]requested_item shift.sale_refund.total_cash is exist - process it [00:07:28]requested_item shift.buy.total is exist - process it [00:07:28]requested_item shift.buy.total_cash is exist - process it [00:07:28]produce_requested_data done [00:07:28]produce_requested_data return {"fm.sale.total":205564676.37,"fm.sale_refund.total":5169918.00,"fm.buy.total":0.00,"shift.sale.total":350012.12,"shift.sale.total_cash":283271.00,"shift.sale_refund.total":200.00,"shift.sale_refund.total_cash":200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:07:28]process_action_free get_value [00:07:28]json_value_free [00:07:28]json_value_free done [00:07:28]process_json_proto returns [00:07:28]Send response to host [00:07:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":205564676.37,"fm.sale_refund.total":5169918.00,"fm.buy.total":0.00,"shift.sale.total":350012.12,"shift.sale.total_cash":283271.00,"shift.sale_refund.total":200.00,"shift.sale_refund.total_cash":200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:07:28]free response buf [00:07:28]execute_script done [00:07:28]execute_script returns [00:07:28]free content buf [00:07:28]Sock 7.Close socket [00:07:28]Sock 7.Thread stoped [00:07:28]accept exits with 9 [00:07:28]New connection [00:07:28]New thread 3066977636 created [00:07:28]Thread 3066834276 joined [00:07:28]Waiting for new connection... [00:07:28] Sock 9.Parse request [00:07:28]Sock 9.Check first char [00:07:28]Sock 9.First char is OK [00:07:28]request: POST /json_proto HTTP/1.0 [00:07:28]Method: POST [00:07:28]URL: /json_proto [00:07:28]Method is POST - this is cgi request [00:07:28]url: /json_proto [00:07:28]query_string will be loaded in cgi processing [00:07:28]execute_cgi json_proto POST (null) [00:07:28]execute_cgi path=json_proto method=POST [00:07:28]POST find Content-Length [00:07:28]Host: 172.17.44.195:8080 [00:07:28]Content-Length: 331 [00:07:28]Content-Type: application/json [00:07:28] [00:07:28]POST finish read [00:07:28]Found Content-Length = 331 [00:07:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:28]execute_script... [00:07:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:28]POST & json_proto [00:07:28]process_json_proto [00:07:28]json parsed OK: [00:07:28]protocol is kg_v1.0 [00:07:28]action value=get_value [00:07:28]process_action get_value [00:07:28]cmd_get_value [00:07:28]process_action get_value done [00:07:28]requested_data is exist [00:07:28]produce_requested_data [00:07:28]requested_item fm.sale.total is exist - process it [00:07:28]SAM_PROTO_GetFMData [00:07:28]wFMCommunicate request_size=4 [00:07:28]MH_SAM_APDU [00:07:28]CAPDU: 80 13 03 00 [00:07:28]Write to MH i2c: E2 08 00 52 0C 80 13 03 00 00 00 00 00 DD [00:07:28]Write i2c OK [00:07:28]MH_I2C_Read... [00:07:29]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:29]Read from MH i2c: E2 [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: E2 FD 00 [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: E2 FD 00 52 0C 00 C5 04 85 04 C1 04 6E 04 04 00 40 78 03 00 69 04 A3 00 6F 04 04 00 4D 71 03 00 B1 04 05 00 B5 CD 42 C9 04 70 04 05 00 24 4E 12 4F 04 72 04 04 00 91 7F 30 7A 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 0A 86 28 82 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 63 89 D8 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 06 00 00 B1 04 04 00 38 AB D0 1E 70 04 04 00 38 AB D0 1E 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 95 D1 45 03 EF 03 09 90 00 F0 [00:07:29]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 40 78 03 00 69 04 A3 00 6F 04 04 00 4D 71 03 00 B1 04 05 00 B5 CD 42 C9 04 70 04 05 00 24 4E 12 4F 04 72 04 04 00 91 7F 30 7A 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 0A 86 28 82 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 63 89 D8 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 06 00 00 B1 04 04 00 38 AB D0 1E 70 04 04 00 38 AB D0 1E 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 95 D1 45 03 EF 03 09 90 00 [00:07:29]wFMCommunicate OK [00:07:29]wFMCommunicate request_size=4 [00:07:29]MH_SAM_APDU [00:07:29]CAPDU: 80 17 00 00 [00:07:29]Write to MH i2c: E2 08 00 53 0C 80 17 00 00 00 00 00 00 DF [00:07:29]Write i2c OK [00:07:29]MH_I2C_Read... [00:07:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:29]Read from MH i2c: E2 [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: E2 FD 00 [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: E2 FD 00 53 0C 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB D0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 A5 [00:07:29]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB D0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:07:29]wFMCommunicate OK [00:07:29]wFMCommunicate request_size=4 [00:07:29]MH_SAM_APDU [00:07:29]CAPDU: 80 17 00 00 [00:07:29]Write to MH i2c: E2 08 00 54 0C 80 17 00 00 00 00 00 00 E0 [00:07:29]Write i2c OK [00:07:29]MH_I2C_Read... [00:07:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:29]Read from MH i2c: E2 [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: E2 FD 00 [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: E2 FD 00 54 0C 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F2 [00:07:29]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:29]wFMCommunicate OK [00:07:29]wFMCommunicate request_size=4 [00:07:29]MH_SAM_APDU [00:07:29]CAPDU: 80 17 00 00 [00:07:29]Write to MH i2c: E2 08 00 55 0C 80 17 00 00 00 00 00 00 E1 [00:07:29]Write i2c OK [00:07:29]MH_I2C_Read... [00:07:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:30]Read from MH i2c: E2 [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: E2 FD 00 [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: E2 FD 00 55 0C 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [00:07:30]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:30]wFMCommunicate OK [00:07:30]wFMCommunicate request_size=4 [00:07:30]MH_SAM_APDU [00:07:30]CAPDU: 80 17 00 00 [00:07:30]Write to MH i2c: E2 08 00 56 0C 80 17 00 00 00 00 00 00 E2 [00:07:30]Write i2c OK [00:07:30]MH_I2C_Read... [00:07:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:07:30]Read from MH i2c: E2 [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: E2 E2 00 [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: E2 E2 00 56 0C 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C0 [00:07:30]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:30]wFMCommunicate OK [00:07:30]SAM_PROTO_GetFMData done [00:07:30]requested_item fm.sale_refund.total is exist - process it [00:07:30]requested_item fm.buy.total is exist - process it [00:07:30]requested_item shift.sale.total is exist - process it [00:07:30]SAM_PROTO_GetShiftData [00:07:30]wFMCommunicate request_size=4 [00:07:30]MH_SAM_APDU [00:07:30]CAPDU: 80 13 02 00 [00:07:30]Write to MH i2c: E2 08 00 57 0C 80 13 02 00 00 00 00 00 E1 [00:07:30]Write i2c OK [00:07:30]MH_I2C_Read... [00:07:30]OFD Sender: No OFD packet to send [00:07:31]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:31]Read from MH i2c: E2 [00:07:31]MH_I2C_Read... [00:07:31]Read from MH i2c: E2 FD 00 [00:07:31]MH_I2C_Read... [00:07:31]Read from MH i2c: E2 FD 00 57 0C 00 B8 04 AA 04 B4 04 6E 04 04 00 AA 01 00 00 69 04 9E 00 6F 04 04 00 A8 01 00 00 B1 04 04 00 7C 13 16 02 70 04 04 00 BC 3C B0 01 72 04 03 00 C0 D6 65 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 72 BB 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 3F BA 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 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 20 4E 70 04 02 00 20 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 11 [00:07:31]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 AA 01 00 00 69 04 9E 00 6F 04 04 00 A8 01 00 00 B1 04 04 00 7C 13 16 02 70 04 04 00 BC 3C B0 01 72 04 03 00 C0 D6 65 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 72 BB 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 3F BA 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 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 20 4E 70 04 02 00 20 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:07:31]wFMCommunicate OK [00:07:31]wFMCommunicate request_size=4 [00:07:31]MH_SAM_APDU [00:07:31]CAPDU: 80 17 00 00 [00:07:31]Write to MH i2c: E2 08 00 58 0C 80 17 00 00 00 00 00 00 E4 [00:07:31]Write i2c OK [00:07:31]MH_I2C_Read... [00:07:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:31]Read from MH i2c: E2 [00:07:31]MH_I2C_Read... [00:07:31]Read from MH i2c: E2 FD 00 [00:07:31]MH_I2C_Read... [00:07:31]Read from MH i2c: E2 FD 00 58 0C 00 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 C8 [00:07:31]RAPDU: 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:07:31]wFMCommunicate OK [00:07:31]wFMCommunicate request_size=4 [00:07:31]MH_SAM_APDU [00:07:31]CAPDU: 80 17 00 00 [00:07:31]Write to MH i2c: E2 08 00 59 0C 80 17 00 00 00 00 00 00 E5 [00:07:31]Write i2c OK [00:07:31]MH_I2C_Read... [00:07:31]Read from MH i2c: E2 [00:07:31]MH_I2C_Read... [00:07:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:31]Read from MH i2c: E2 FD 00 [00:07:31]MH_I2C_Read... [00:07:31]Read from MH i2c: E2 FD 00 59 0C 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 87 [00:07:31]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [00:07:32]wFMCommunicate OK [00:07:32]wFMCommunicate request_size=4 [00:07:32]MH_SAM_APDU [00:07:32]CAPDU: 80 17 00 00 [00:07:32]Write to MH i2c: E2 08 00 5A 0C 80 17 00 00 00 00 00 00 E6 [00:07:32]Write i2c OK [00:07:32]MH_I2C_Read... [00:07:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:32]Read from MH i2c: E2 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 FD 00 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 FD 00 5A 0C 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 6F [00:07:32]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [00:07:32]wFMCommunicate OK [00:07:32]wFMCommunicate request_size=4 [00:07:32]MH_SAM_APDU [00:07:32]CAPDU: 80 17 00 00 [00:07:32]Write to MH i2c: E2 08 00 5B 0C 80 17 00 00 00 00 00 00 E7 [00:07:32]Write i2c OK [00:07:32]MH_I2C_Read... [00:07:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:07:32]Read from MH i2c: E2 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 D5 00 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 D5 00 5B 0C 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C8 [00:07:32]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:32]wFMCommunicate OK [00:07:32]SAM_PROTO_GetShiftData done [00:07:32]requested_item shift.sale.total_cash is exist - process it [00:07:32]requested_item shift.sale_refund.total is exist - process it [00:07:32]requested_item shift.sale_refund.total_cash is exist - process it [00:07:32]requested_item shift.buy.total is exist - process it [00:07:32]requested_item shift.buy.total_cash is exist - process it [00:07:32]produce_requested_data done [00:07:32]produce_requested_data return {"fm.sale.total":205564676.37,"fm.sale_refund.total":5169918.00,"fm.buy.total":0.00,"shift.sale.total":350012.12,"shift.sale.total_cash":283271.00,"shift.sale_refund.total":200.00,"shift.sale_refund.total_cash":200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:07:32]process_action_free get_value [00:07:32]json_value_free [00:07:32]json_value_free done [00:07:32]process_json_proto returns [00:07:32]Send response to host [00:07:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":205564676.37,"fm.sale_refund.total":5169918.00,"fm.buy.total":0.00,"shift.sale.total":350012.12,"shift.sale.total_cash":283271.00,"shift.sale_refund.total":200.00,"shift.sale_refund.total_cash":200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:07:32]free response buf [00:07:32]execute_script done [00:07:32]execute_script returns [00:07:32]free content buf [00:07:32]Sock 9.Close socket [00:07:32]Sock 9.Thread stoped [00:07:32]accept exits with 7 [00:07:32]New connection [00:07:32]New thread 3066834276 created [00:07:32]Thread 3066977636 joined [00:07:32]Waiting for new connection... [00:07:32] Sock 7.Parse request [00:07:32]Sock 7.Check first char [00:07:32]Sock 7.First char is OK [00:07:32]request: POST /json_proto HTTP/1.0 [00:07:32]Method: POST [00:07:32]URL: /json_proto [00:07:32]Method is POST - this is cgi request [00:07:32]url: /json_proto [00:07:32]query_string will be loaded in cgi processing [00:07:32]execute_cgi json_proto POST (null) [00:07:32]execute_cgi path=json_proto method=POST [00:07:32]POST find Content-Length [00:07:32]Host: 172.17.44.195:8080 [00:07:32]Content-Length: 285 [00:07:32]Content-Type: application/json [00:07:32] [00:07:32]POST finish read [00:07:32]Found Content-Length = 285 [00:07:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0428\u0435\u043A\u0435\u0440\u0431\u0435\u043A \u043A\u044B\u0437\u044B \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:32]execute_script... [00:07:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0428\u0435\u043A\u0435\u0440\u0431\u0435\u043A \u043A\u044B\u0437\u044B \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:32]POST & json_proto [00:07:32]process_json_proto [00:07:32]json parsed OK: [00:07:32]protocol is kg_v1.0 [00:07:32]action value=close_shift [00:07:32]process_action close_shift [00:07:32]cmd_close_shift [00:07:32]MH_GetDate [00:07:32]Write to MH i2c: F0 00 00 5C 0C 57 [00:07:32]Write i2c OK [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: F0 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: F0 09 00 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: F0 09 00 5C 0C 00 45 3E 18 67 82 C9 CF 66 E2 [00:07:32]GetLastDocTimeStamp 1729641988 [00:07:32]current date 1729642053 [00:07:32]FM_GetShiftState [00:07:32]SAM_PROTO_GetShiftState [00:07:32]wFMCommunicate request_size=4 [00:07:32]MH_SAM_APDU [00:07:32]CAPDU: 80 13 01 00 [00:07:32]Write to MH i2c: E2 08 00 5D 0C 80 13 01 00 00 00 00 00 E6 [00:07:32]Write i2c OK [00:07:32]MH_I2C_Read... [00:07:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:32]Read from MH i2c: E2 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 0E 00 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 0E 00 5D 0C 00 09 00 01 52 EC 16 67 00 00 00 00 90 00 AD [00:07:32]RAPDU: 09 00 01 52 EC 16 67 00 00 00 00 90 00 [00:07:32]wFMCommunicate OK [00:07:32]SAM_PROTO_GetShiftState done [00:07:32]FM_GetShiftState done [00:07:32]KKMCreateCloseShiftDocument [00:07:32]Load OK [00:07:32]Malloc new data [00:07:32]MH_GetDate [00:07:32]Write to MH i2c: F0 00 00 5E 0C 59 [00:07:32]Write i2c OK [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: F0 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: F0 09 00 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: F0 09 00 5E 0C 00 45 3E 18 67 82 C9 CF 66 E4 [00:07:32]Malloc new data [00:07:32]Malloc new data [00:07:32]Malloc new data [00:07:32]Malloc new data [00:07:32]KKMCreateCloseShiftDocument OK [00:07:32]KKMSetCloseShiftData OK [00:07:32]ProcessDocumentItem done err = 0, tmpTLVsize=80 [00:07:32]tlvbuf is 0031D530 [00:07:32]KKMLoadAndSignCloseShiftData [00:07:32]SAM_PROTO_ProcessDocument [00:07:32]wFMCommunicate request_size=9 [00:07:32]MH_SAM_APDU [00:07:32]CAPDU: 80 15 01 00 04 05 00 50 00 [00:07:32]Write to MH i2c: E2 0C 00 5F 0C 80 15 01 00 04 00 05 00 50 00 00 00 47 [00:07:32]Write i2c OK [00:07:32]MH_I2C_Read... [00:07:32]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:07:32]Read from MH i2c: E2 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 03 00 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 03 00 5F 0C 00 90 00 DF [00:07:32]RAPDU: 90 00 [00:07:32]wFMCommunicate OK [00:07:32]wFMCommunicate request_size=23 [00:07:32]MH_SAM_APDU [00:07:32]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:07:32]Write to MH i2c: E2 1A 00 60 0C 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 E1 [00:07:32]Write i2c OK [00:07:32]MH_I2C_Read... [00:07:33]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:33]Read from MH i2c: E2 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: E2 03 00 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: E2 03 00 60 0C 00 90 00 E0 [00:07:33]RAPDU: 90 00 [00:07:33]wFMCommunicate OK [00:07:33]wFMCommunicate request_size=39 [00:07:33]MH_SAM_APDU [00:07:33]CAPDU: 80 15 02 00 22 FD 03 1E 00 D0 A8 D0 B5 D0 BA D0 B5 D1 80 D0 B1 D0 B5 D0 BA 20 D0 BA D1 8B D0 B7 D1 8B 20 D0 9A 2E 20 [00:07:33]Write to MH i2c: E2 2A 00 61 0C 80 15 02 00 22 00 FD 03 1E 00 D0 A8 D0 B5 D0 BA D0 B5 D1 80 D0 B1 D0 B5 D0 BA 20 D0 BA D1 8B D0 B7 D1 8B 20 D0 9A 2E 20 00 00 FD [00:07:33]Write i2c OK [00:07:33]MH_I2C_Read... [00:07:33]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:33]Read from MH i2c: E2 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: E2 03 00 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: E2 03 00 61 0C 00 90 00 E1 [00:07:33]RAPDU: 90 00 [00:07:33]wFMCommunicate OK [00:07:33]wFMCommunicate request_size=13 [00:07:33]MH_SAM_APDU [00:07:33]CAPDU: 80 15 02 00 08 F4 03 04 00 45 3E 18 67 [00:07:33]Write to MH i2c: E2 10 00 62 0C 80 15 02 00 08 00 F4 03 04 00 45 3E 18 67 00 00 FB [00:07:33]Write i2c OK [00:07:33]MH_I2C_Read... [00:07:33]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:33]Read from MH i2c: E2 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: E2 03 00 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: E2 03 00 62 0C 00 90 00 E2 [00:07:33]RAPDU: 90 00 [00:07:33]wFMCommunicate OK [00:07:33]wFMCommunicate request_size=25 [00:07:33]MH_SAM_APDU [00:07:33]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 [00:07:33]Write to MH i2c: E2 1C 00 63 0C 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 00 00 55 [00:07:33]Write i2c OK [00:07:33]MH_I2C_Read... [00:07:33]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:33]Read from MH i2c: E2 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: E2 03 00 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: E2 03 00 63 0C 00 90 00 E3 [00:07:33]RAPDU: 90 00 [00:07:33]wFMCommunicate OK [00:07:33]wFMCommunicate request_size=4 [00:07:33]MH_SAM_APDU [00:07:33]CAPDU: 80 15 03 00 [00:07:33]Write to MH i2c: E2 08 00 64 0C 80 15 03 00 00 00 00 00 F1 [00:07:33]Write i2c OK [00:07:33]MH_I2C_Read... [00:07:33]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:07:33]Read from MH i2c: E2 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: E2 FD 00 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: E2 FD 00 64 0C 00 FB 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6F 7C 03 00 0E 04 04 00 17 02 00 00 5E 04 04 00 AA 01 00 00 57 04 04 00 AC 01 00 00 AA 04 B4 04 6E 04 04 00 AA 01 00 00 69 04 9E 00 6F 04 04 00 A8 01 00 00 B1 04 04 00 7C 13 16 02 70 04 04 00 BC 3C B0 01 72 04 03 00 C0 D6 65 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 72 BB 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 3F BA 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 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 20 90 00 88 [00:07:33]RAPDU: FB 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6F 7C 03 00 0E 04 04 00 17 02 00 00 5E 04 04 00 AA 01 00 00 57 04 04 00 AC 01 00 00 AA 04 B4 04 6E 04 04 00 AA 01 00 00 69 04 9E 00 6F 04 04 00 A8 01 00 00 B1 04 04 00 7C 13 16 02 70 04 04 00 BC 3C B0 01 72 04 03 00 C0 D6 65 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 72 BB 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 3F BA 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 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 20 90 00 [00:07:33]wFMCommunicate OK [00:07:33]SAM_PROTO_ProcessDocument answer len = 1275 [00:07:33]SAM_PROTO_ProcessDocument remain to read = 1027 [00:07:33]wFMCommunicate request_size=4 [00:07:33]MH_SAM_APDU [00:07:33]CAPDU: 80 17 00 00 [00:07:33]Write to MH i2c: E2 08 00 65 0C 80 17 00 00 00 00 00 00 F1 [00:07:33]Write i2c OK [00:07:33]MH_I2C_Read... [00:07:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:34]Read from MH i2c: E2 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 FD 00 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 FD 00 65 0C 00 4E 70 04 02 00 20 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 99 [00:07:34]RAPDU: 4E 70 04 02 00 20 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:34]wFMCommunicate OK [00:07:34]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:07:34]SAM_PROTO_ProcessDocument remain to read = 777 [00:07:34]wFMCommunicate request_size=4 [00:07:34]MH_SAM_APDU [00:07:34]CAPDU: 80 17 00 00 [00:07:34]Write to MH i2c: E2 08 00 66 0C 80 17 00 00 00 00 00 00 F2 [00:07:34]Write i2c OK [00:07:34]MH_I2C_Read... [00:07:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:34]Read from MH i2c: E2 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 FD 00 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 FD 00 66 0C 00 F7 03 00 00 EF 03 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 90 00 54 [00:07:34]RAPDU: F7 03 00 00 EF 03 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 90 00 [00:07:34]wFMCommunicate OK [00:07:34]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:07:34]SAM_PROTO_ProcessDocument remain to read = 527 [00:07:34]wFMCommunicate request_size=4 [00:07:34]MH_SAM_APDU [00:07:34]CAPDU: 80 17 00 00 [00:07:34]Write to MH i2c: E2 08 00 67 0C 80 17 00 00 00 00 00 00 F3 [00:07:34]Write i2c OK [00:07:34]MH_I2C_Read... [00:07:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:35]Read from MH i2c: E2 [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: E2 FD 00 [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: E2 FD 00 67 0C 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 06 [00:07:35]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:35]wFMCommunicate OK [00:07:35]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:07:35]SAM_PROTO_ProcessDocument remain to read = 277 [00:07:35]wFMCommunicate request_size=4 [00:07:35]MH_SAM_APDU [00:07:35]CAPDU: 80 17 00 00 [00:07:35]Write to MH i2c: E2 08 00 68 0C 80 17 00 00 00 00 00 00 F4 [00:07:35]Write i2c OK [00:07:35]MH_I2C_Read... [00:07:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:35]Read from MH i2c: E2 [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: E2 FD 00 [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: E2 FD 00 68 0C 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 33 [00:07:35]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 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 90 00 [00:07:35]wFMCommunicate OK [00:07:35]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:07:35]SAM_PROTO_ProcessDocument remain to read = 27 [00:07:35]wFMCommunicate request_size=4 [00:07:35]MH_SAM_APDU [00:07:35]CAPDU: 80 17 00 00 [00:07:35]Write to MH i2c: E2 08 00 69 0C 80 17 00 00 00 00 00 00 F5 [00:07:35]Write i2c OK [00:07:35]MH_I2C_Read... [00:07:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 27! [00:07:35]Read from MH i2c: E2 [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: E2 1E 00 [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: E2 1E 00 69 0C 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 F6 DA 3E C0 6A A3 90 00 0D [00:07:35]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 F6 DA 3E C0 6A A3 90 00 [00:07:35]wFMCommunicate OK [00:07:35]SAM_PROTO_ProcessDocument received (without SW) 27 bytes [00:07:35]SAM_PROTO_ProcessDocument done [00:07:35]1209 (1) - 1.0 - номер версии ФФД [00:07:35]1041 (16) - 0000000000871839 - номер ФМ [00:07:35]1040 (4) - 228463 - номер ФД [00:07:35]1038 (4) - 535 - номер смены [00:07:35]1118 (4) - 426 - количество кассовых чеков за смену [00:07:35]1111 (4) - 428 - общее количество ФД за смену [00:07:35]1194 (1204) - счетчики итогов смены [00:07:35] 1134 (4) - 426 - количество чеков со всеми признаками расчетов [00:07:35] 1129 (158) - счетчики операций «приход» [00:07:35] 1135 (4) - 424 - количество чеков по признаку расчетов [00:07:35] 1201 (4) - 350012.12 - общая итоговая сумма в чеках [00:07:35] 1136 (4) - 283271.00 - итоговая сумма в чеках наличными [00:07:35] 1138 (3) - 66741.12 - итоговая сумма в чеках безналичными [00:07:35] 1024 (123) - суммы налогов [00:07:35] 1006 (9) - суммы НДС [00:07:35] 1010 (1) - 0% - код ставки НДС [00:07:35] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:35] 1006 (12) - суммы НДС [00:07:35] 1010 (1) - 12% - код ставки НДС [00:07:35] 1011 (3) - 37180.02 - сумма НДС по ставке [00:07:35] 1007 (9) - суммы НСП [00:07:35] 1014 (1) - 0% - код ставки НСП [00:07:35] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:35] 1007 (12) - суммы НСП [00:07:35] 1014 (1) - 1% - код ставки НСП [00:07:35] 1015 (3) - 3098.23 - сумма НСП по ставке [00:07:35] 1007 (9) - суммы НСП [00:07:35] 1014 (1) - 2% - код ставки НСП [00:07:35] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:35] 1007 (9) - суммы НСП [00:07:35] 1014 (1) - 3% - код ставки НСП [00:07:35] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:35] 1007 (9) - суммы НСП [00:07:35] 1014 (1) - 5% - код ставки НСП [00:07:35] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:35] 1007 (9) - суммы НСП [00:07:35] 1014 (1) - 0,50% - код ставки НСП [00:07:35] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:35] 1007 (9) - суммы НСП [00:07:35] 1014 (1) - 1,50% - код ставки НСП [00:07:35] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:35] 1130 (148) - счетчики операций «возврат прихода» [00:07:35] 1135 (4) - 2 - количество чеков по признаку расчетов [00:07:35] 1201 (2) - 200.00 - общая итоговая сумма в чеках [00:07:35] 1136 (2) - 200.00 - итоговая сумма в чеках наличными [00:07:35] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:35] 1024 (120) - суммы налогов [00:07:35] 1006 (9) - суммы НДС [00:07:35] 1010 (1) - 0% - код ставки НДС [00:07:35] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:35] 1006 (11) - суммы НДС [00:07:35] 1010 (1) - 12% - код ставки НДС [00:07:35] 1011 (2) - 21.36 - сумма НДС по ставке [00:07:35] 1007 (9) - суммы НСП [00:07:35] 1014 (1) - 0% - код ставки НСП [00:07:35] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:35] 1007 (10) - суммы НСП [00:07:35] 1014 (1) - 1% - код ставки НСП [00:07:35] 1015 (1) - 1.78 - сумма НСП по ставке [00:07:35] 1007 (9) - суммы НСП [00:07:35] 1014 (1) - 2% - код ставки НСП [00:07:35] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:35] 1007 (9) - суммы НСП [00:07:35] 1014 (1) - 3% - код ставки НСП [00:07:35] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:36] 1007 (9) - суммы НСП [00:07:36] 1014 (1) - 5% - код ставки НСП [00:07:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:36] 1007 (9) - суммы НСП [00:07:36] 1014 (1) - 0,50% - код ставки НСП [00:07:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:36] 1007 (9) - суммы НСП [00:07:36] 1014 (1) - 1,50% - код ставки НСП [00:07:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:36] 1131 (141) - счетчики операций «расход» [00:07:36] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:36] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:36] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:36] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:36] 1024 (117) - суммы налогов [00:07:36] 1006 (9) - суммы НДС [00:07:36] 1010 (1) - 0% - код ставки НДС [00:07:36] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:36] 1006 (9) - суммы НДС [00:07:36] 1010 (1) - 12% - код ставки НДС [00:07:36] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:36] 1007 (9) - суммы НСП [00:07:36] 1014 (1) - 0% - код ставки НСП [00:07:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:36] 1007 (9) - суммы НСП [00:07:36] 1014 (1) - 1% - код ставки НСП [00:07:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:36] 1007 (9) - суммы НСП [00:07:36] 1014 (1) - 2% - код ставки НСП [00:07:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:36] 1007 (9) - суммы НСП [00:07:36] 1014 (1) - 3% - код ставки НСП [00:07:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:36] 1007 (9) - суммы НСП [00:07:36] 1014 (1) - 5% - код ставки НСП [00:07:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:36] 1007 (9) - суммы НСП [00:07:36] 1014 (1) - 0,50% - код ставки НСП [00:07:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:36] 1007 (9) - суммы НСП [00:07:36] 1014 (1) - 1,50% - код ставки НСП [00:07:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:36] 1132 (141) - счетчики операций «возврат расхода» [00:07:36] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:36] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:36] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:36] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:36] 1024 (117) - суммы налогов [00:07:36] 1006 (9) - суммы НДС [00:07:36] 1010 (1) - 0% - код ставки НДС [00:07:36] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:36] 1006 (9) - суммы НДС [00:07:36] 1010 (1) - 12% - код ставки НДС [00:07:36] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:36] 1007 (9) - суммы НСП [00:07:36] 1014 (1) - 0% - код ставки НСП [00:07:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:36] 1007 (9) - суммы НСП [00:07:36] 1014 (1) - 1% - код ставки НСП [00:07:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:36] 1007 (9) - суммы НСП [00:07:36] 1014 (1) - 2% - код ставки НСП [00:07:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:36] 1007 (9) - суммы НСП [00:07:36] 1014 (1) - 3% - код ставки НСП [00:07:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:36] 1007 (9) - суммы НСП [00:07:36] 1014 (1) - 5% - код ставки НСП [00:07:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:36] 1007 (9) - суммы НСП [00:07:36] 1014 (1) - 0,50% - код ставки НСП [00:07:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:36] 1007 (9) - суммы НСП [00:07:36] 1014 (1) - 1,50% - код ставки НСП [00:07:36]OFD Sender: No OFD packet to send [00:07:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:36] 1133 (588) - - счетчики коррекции - не используются [00:07:36]1077 (6) - 271417216101027 - ФПД [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1209 (04B9) [00:07:36]Malloc new data [00:07:36]Processing tag 1041 (0411) [00:07:36]Processing tag 1040 (0410) [00:07:36]Malloc new data [00:07:36]Processing tag 1038 (040E) [00:07:36]Malloc new data [00:07:36]Processing tag 1118 (045E) [00:07:36]Malloc new data [00:07:36]Processing tag 1111 (0457) [00:07:36]Malloc new data [00:07:36]Processing tag 1194 (04AA) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1134 (046E) [00:07:36]Malloc new data [00:07:36]Processing tag 1129 (0469) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1135 (046F) [00:07:36]Malloc new data [00:07:36]Processing tag 1201 (04B1) [00:07:36]Malloc new data [00:07:36]Processing tag 1136 (0470) [00:07:36]Malloc new data [00:07:36]Processing tag 1138 (0472) [00:07:36]Malloc new data [00:07:36]Processing tag 1024 (0400) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1006 (03EE) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1010 (03F2) [00:07:36]Malloc new data [00:07:36]Processing tag 1011 (03F3) [00:07:36]Malloc new data [00:07:36]SetTLVBufToDocument err=0 [00:07:36]Processing tag 1006 (03EE) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1010 (03F2) [00:07:36]Malloc new data [00:07:36]Processing tag 1011 (03F3) [00:07:36]Malloc new data [00:07:36]SetTLVBufToDocument err=0 [00:07:36]Processing tag 1007 (03EF) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1014 (03F6) [00:07:36]Malloc new data [00:07:36]Processing tag 1015 (03F7) [00:07:36]Malloc new data [00:07:36]SetTLVBufToDocument err=0 [00:07:36]Processing tag 1007 (03EF) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1014 (03F6) [00:07:36]Malloc new data [00:07:36]Processing tag 1015 (03F7) [00:07:36]Malloc new data [00:07:36]SetTLVBufToDocument err=0 [00:07:36]Processing tag 1007 (03EF) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1014 (03F6) [00:07:36]Malloc new data [00:07:36]Processing tag 1015 (03F7) [00:07:36]Malloc new data [00:07:36]SetTLVBufToDocument err=0 [00:07:36]Processing tag 1007 (03EF) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1014 (03F6) [00:07:36]Malloc new data [00:07:36]Processing tag 1015 (03F7) [00:07:36]Malloc new data [00:07:36]SetTLVBufToDocument err=0 [00:07:36]Processing tag 1007 (03EF) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1014 (03F6) [00:07:36]Malloc new data [00:07:36]Processing tag 1015 (03F7) [00:07:36]Malloc new data [00:07:36]SetTLVBufToDocument err=0 [00:07:36]Processing tag 1007 (03EF) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1014 (03F6) [00:07:36]Malloc new data [00:07:36]Processing tag 1015 (03F7) [00:07:36]Malloc new data [00:07:36]SetTLVBufToDocument err=0 [00:07:36]Processing tag 1007 (03EF) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1014 (03F6) [00:07:36]Malloc new data [00:07:36]Processing tag 1015 (03F7) [00:07:36]Malloc new data [00:07:36]SetTLVBufToDocument err=0 [00:07:36]SetTLVBufToDocument err=0 [00:07:36]SetTLVBufToDocument err=0 [00:07:36]Processing tag 1130 (046A) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1135 (046F) [00:07:36]Malloc new data [00:07:36]Processing tag 1201 (04B1) [00:07:36]Malloc new data [00:07:36]Processing tag 1136 (0470) [00:07:36]Malloc new data [00:07:36]Processing tag 1138 (0472) [00:07:36]Malloc new data [00:07:36]Processing tag 1024 (0400) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1006 (03EE) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1010 (03F2) [00:07:36]Malloc new data [00:07:36]Processing tag 1011 (03F3) [00:07:36]Malloc new data [00:07:36]SetTLVBufToDocument err=0 [00:07:36]Processing tag 1006 (03EE) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1010 (03F2) [00:07:36]Malloc new data [00:07:36]Processing tag 1011 (03F3) [00:07:36]Malloc new data [00:07:36]SetTLVBufToDocument err=0 [00:07:36]Processing tag 1007 (03EF) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1014 (03F6) [00:07:36]Malloc new data [00:07:36]Processing tag 1015 (03F7) [00:07:36]Malloc new data [00:07:36]SetTLVBufToDocument err=0 [00:07:36]Processing tag 1007 (03EF) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1014 (03F6) [00:07:36]Malloc new data [00:07:36]Processing tag 1015 (03F7) [00:07:36]Malloc new data [00:07:36]SetTLVBufToDocument err=0 [00:07:36]Processing tag 1007 (03EF) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1014 (03F6) [00:07:36]Malloc new data [00:07:36]Processing tag 1015 (03F7) [00:07:36]Malloc new data [00:07:36]SetTLVBufToDocument err=0 [00:07:36]Processing tag 1007 (03EF) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1014 (03F6) [00:07:36]Malloc new data [00:07:36]Processing tag 1015 (03F7) [00:07:36]Malloc new data [00:07:36]SetTLVBufToDocument err=0 [00:07:36]Processing tag 1007 (03EF) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1014 (03F6) [00:07:36]Malloc new data [00:07:36]Processing tag 1015 (03F7) [00:07:36]Malloc new data [00:07:36]SetTLVBufToDocument err=0 [00:07:36]Processing tag 1007 (03EF) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1014 (03F6) [00:07:36]Malloc new data [00:07:36]Processing tag 1015 (03F7) [00:07:36]Malloc new data [00:07:36]SetTLVBufToDocument err=0 [00:07:36]Processing tag 1007 (03EF) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1014 (03F6) [00:07:36]Malloc new data [00:07:36]Processing tag 1015 (03F7) [00:07:36]Malloc new data [00:07:36]SetTLVBufToDocument err=0 [00:07:36]SetTLVBufToDocument err=0 [00:07:36]SetTLVBufToDocument err=0 [00:07:36]Processing tag 1131 (046B) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1135 (046F) [00:07:36]Malloc new data [00:07:36]Processing tag 1201 (04B1) [00:07:36]Malloc new data [00:07:36]Processing tag 1136 (0470) [00:07:36]Malloc new data [00:07:36]Processing tag 1138 (0472) [00:07:36]Malloc new data [00:07:36]Processing tag 1024 (0400) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1006 (03EE) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1010 (03F2) [00:07:36]Malloc new data [00:07:36]Processing tag 1011 (03F3) [00:07:36]Malloc new data [00:07:36]SetTLVBufToDocument err=0 [00:07:36]Processing tag 1006 (03EE) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1010 (03F2) [00:07:36]Malloc new data [00:07:36]Processing tag 1011 (03F3) [00:07:36]Malloc new data [00:07:36]SetTLVBufToDocument err=0 [00:07:36]Processing tag 1007 (03EF) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1014 (03F6) [00:07:36]Malloc new data [00:07:36]Processing tag 1015 (03F7) [00:07:36]Malloc new data [00:07:36]SetTLVBufToDocument err=0 [00:07:36]Processing tag 1007 (03EF) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1014 (03F6) [00:07:36]Malloc new data [00:07:36]Processing tag 1015 (03F7) [00:07:36]Malloc new data [00:07:36]SetTLVBufToDocument err=0 [00:07:36]Processing tag 1007 (03EF) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1014 (03F6) [00:07:36]Malloc new data [00:07:36]Processing tag 1015 (03F7) [00:07:36]Malloc new data [00:07:36]SetTLVBufToDocument err=0 [00:07:36]Processing tag 1007 (03EF) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1014 (03F6) [00:07:36]Malloc new data [00:07:36]Processing tag 1015 (03F7) [00:07:36]Malloc new data [00:07:36]SetTLVBufToDocument err=0 [00:07:36]Processing tag 1007 (03EF) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1014 (03F6) [00:07:36]Malloc new data [00:07:36]Processing tag 1015 (03F7) [00:07:36]Malloc new data [00:07:36]SetTLVBufToDocument err=0 [00:07:36]Processing tag 1007 (03EF) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1014 (03F6) [00:07:36]Malloc new data [00:07:36]Processing tag 1015 (03F7) [00:07:36]Malloc new data [00:07:36]SetTLVBufToDocument err=0 [00:07:36]Processing tag 1007 (03EF) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1014 (03F6) [00:07:36]Malloc new data [00:07:36]Processing tag 1015 (03F7) [00:07:36]Malloc new data [00:07:36]SetTLVBufToDocument err=0 [00:07:36]SetTLVBufToDocument err=0 [00:07:36]SetTLVBufToDocument err=0 [00:07:36]Processing tag 1132 (046C) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1135 (046F) [00:07:36]Malloc new data [00:07:36]Processing tag 1201 (04B1) [00:07:36]Malloc new data [00:07:36]Processing tag 1136 (0470) [00:07:36]Malloc new data [00:07:36]Processing tag 1138 (0472) [00:07:36]Malloc new data [00:07:36]Processing tag 1024 (0400) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1006 (03EE) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1010 (03F2) [00:07:36]Malloc new data [00:07:36]Processing tag 1011 (03F3) [00:07:36]Malloc new data [00:07:36]SetTLVBufToDocument err=0 [00:07:36]Processing tag 1006 (03EE) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1010 (03F2) [00:07:36]Malloc new data [00:07:36]Processing tag 1011 (03F3) [00:07:36]Malloc new data [00:07:36]SetTLVBufToDocument err=0 [00:07:36]Processing tag 1007 (03EF) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1014 (03F6) [00:07:36]Malloc new data [00:07:36]Processing tag 1015 (03F7) [00:07:36]Malloc new data [00:07:36]SetTLVBufToDocument err=0 [00:07:36]Processing tag 1007 (03EF) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1014 (03F6) [00:07:36]Malloc new data [00:07:36]Processing tag 1015 (03F7) [00:07:36]Malloc new data [00:07:36]SetTLVBufToDocument err=0 [00:07:36]Processing tag 1007 (03EF) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1014 (03F6) [00:07:36]Malloc new data [00:07:36]Processing tag 1015 (03F7) [00:07:36]Malloc new data [00:07:36]SetTLVBufToDocument err=0 [00:07:36]Processing tag 1007 (03EF) [00:07:36]Load OK [00:07:36]SetTLVBufToDocument [00:07:36]Processing tag 1014 (03F6) [00:07:36]Malloc new data [00:07:36]Processing tag 1015 (03F7) [00:07:36]Malloc new data [00:07:36]SetTLVBufToDocument err=0 [00:07:36]Processing tag 1007 (03EF) [00:07:36]Load OK [00:07:37]SetTLVBufToDocument [00:07:37]Processing tag 1014 (03F6) [00:07:37]Malloc new data [00:07:37]Processing tag 1015 (03F7) [00:07:37]Malloc new data [00:07:37]SetTLVBufToDocument err=0 [00:07:37]Processing tag 1007 (03EF) [00:07:37]Load OK [00:07:37]SetTLVBufToDocument [00:07:37]Processing tag 1014 (03F6) [00:07:37]Malloc new data [00:07:37]Processing tag 1015 (03F7) [00:07:37]Malloc new data [00:07:37]SetTLVBufToDocument err=0 [00:07:37]Processing tag 1007 (03EF) [00:07:37]Load OK [00:07:37]SetTLVBufToDocument [00:07:37]Processing tag 1014 (03F6) [00:07:37]Malloc new data [00:07:37]Processing tag 1015 (03F7) [00:07:37]Malloc new data [00:07:37]SetTLVBufToDocument err=0 [00:07:37]SetTLVBufToDocument err=0 [00:07:37]SetTLVBufToDocument err=0 [00:07:37]Processing tag 1133 (046D) [00:07:37]Malloc new data [00:07:37]SetTLVBufToDocument err=0 [00:07:37]Processing tag 1077 (0435) [00:07:37]Malloc new data [00:07:37]SetTLVBufToDocument err=0 [00:07:37]Malloc new data [00:07:37]SAM_PROTO_GetFMData [00:07:37]wFMCommunicate request_size=4 [00:07:37]MH_SAM_APDU [00:07:37]CAPDU: 80 13 03 00 [00:07:37]Write to MH i2c: E2 08 00 6A 0C 80 13 03 00 00 00 00 00 F5 [00:07:37]Write i2c OK [00:07:37]MH_I2C_Read... [00:07:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:37]Read from MH i2c: E2 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: E2 FD 00 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: E2 FD 00 6A 0C 00 C5 04 85 04 C1 04 6E 04 04 00 40 78 03 00 69 04 A3 00 6F 04 04 00 4D 71 03 00 B1 04 05 00 B5 CD 42 C9 04 70 04 05 00 24 4E 12 4F 04 72 04 04 00 91 7F 30 7A 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 0A 86 28 82 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 63 89 D8 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 06 00 00 B1 04 04 00 38 AB D0 1E 70 04 04 00 38 AB D0 1E 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 95 D1 45 03 EF 03 09 90 00 08 [00:07:37]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 40 78 03 00 69 04 A3 00 6F 04 04 00 4D 71 03 00 B1 04 05 00 B5 CD 42 C9 04 70 04 05 00 24 4E 12 4F 04 72 04 04 00 91 7F 30 7A 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 0A 86 28 82 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 63 89 D8 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 06 00 00 B1 04 04 00 38 AB D0 1E 70 04 04 00 38 AB D0 1E 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 95 D1 45 03 EF 03 09 90 00 [00:07:37]wFMCommunicate OK [00:07:37]wFMCommunicate request_size=4 [00:07:37]MH_SAM_APDU [00:07:37]CAPDU: 80 17 00 00 [00:07:37]Write to MH i2c: E2 08 00 6B 0C 80 17 00 00 00 00 00 00 F7 [00:07:37]Write i2c OK [00:07:37]MH_I2C_Read... [00:07:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:38]Read from MH i2c: E2 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 FD 00 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 FD 00 6B 0C 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB D0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 BD [00:07:38]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB D0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:07:38]wFMCommunicate OK [00:07:38]wFMCommunicate request_size=4 [00:07:38]MH_SAM_APDU [00:07:38]CAPDU: 80 17 00 00 [00:07:38]Write to MH i2c: E2 08 00 6C 0C 80 17 00 00 00 00 00 00 F8 [00:07:38]Write i2c OK [00:07:38]MH_I2C_Read... [00:07:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:38]Read from MH i2c: E2 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 FD 00 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 FD 00 6C 0C 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0A [00:07:38]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:38]wFMCommunicate OK [00:07:38]wFMCommunicate request_size=4 [00:07:38]MH_SAM_APDU [00:07:38]CAPDU: 80 17 00 00 [00:07:38]Write to MH i2c: E2 08 00 6D 0C 80 17 00 00 00 00 00 00 F9 [00:07:38]Write i2c OK [00:07:38]MH_I2C_Read... [00:07:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:39]Read from MH i2c: E2 [00:07:39]MH_I2C_Read... [00:07:39]Read from MH i2c: E2 FD 00 [00:07:39]MH_I2C_Read... [00:07:39]Read from MH i2c: E2 FD 00 6D 0C 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 85 [00:07:39]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:39]wFMCommunicate OK [00:07:39]wFMCommunicate request_size=4 [00:07:39]MH_SAM_APDU [00:07:39]CAPDU: 80 17 00 00 [00:07:39]Write to MH i2c: E2 08 00 6E 0C 80 17 00 00 00 00 00 00 FA [00:07:39]Write i2c OK [00:07:39]MH_I2C_Read... [00:07:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:07:39]Read from MH i2c: E2 [00:07:39]MH_I2C_Read... [00:07:39]Read from MH i2c: E2 E2 00 [00:07:39]MH_I2C_Read... [00:07:39]Read from MH i2c: E2 E2 00 6E 0C 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D8 [00:07:39]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:39]wFMCommunicate OK [00:07:39]SAM_PROTO_GetFMData done [00:07:39]Malloc new data [00:07:39]Malloc new data [00:07:39]Malloc new data [00:07:39]Malloc new data [00:07:39]KKMLoadAndSignCloseShiftData err=0 [00:07:39]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Шекербек кызы К. 23.10.2024 00:07 Смена: 535 РНМ: 0000000000091685 ЗНМ: 0300000091 СНО: Общий режим Чеков за смену: 426 ФД за смену: 428 Всего чеков: 426 ИТОГИ ПРИХОД Чеков: 424 Общий итог: 350012.12 Итого наличными: 283271.00 Итого безнал.: 66741.12 НДС 0% : 0.00 НДС 12% : 37180.02 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 3098.23 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 2 Общий итог: 200.00 Итого наличными: 200.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 21.36 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1.78 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 283071.00 НС Приход: 205564676.37 НС Возвр.Прихода: 5169918.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 228463 ФМ: 0000000000871839 ФПД: 271417216101027 [00:07:39]StoreToDocumentArchive [00:07:39]shift 535 fd 228463 [00:07:39]save to /storage/0535/doc_00228463 [00:07:39]save last doc name /storage/0535/doc_00228463 to /storage/kkm_last_doc_name [00:07:39]save OK [00:07:39]Clear old archive folders... [00:07:39]Remove dir /storage/0522 [00:07:39]opendir ok [00:07:39]file . [00:07:39]file .. [00:07:39]file doc_1729641995 [00:07:39]remove file /storage/0522/doc_1729641995 [00:07:39]remove dir /storage/0522 [00:07:39]NVStorageSaveData kkm_registers [00:07:39]File name is /storage/kkm_registers [00:07:39]Write 24 bytes [00:07:39]NVStorageSaveData done [00:07:39]NVStorageSaveData kkm_registers [00:07:39]File name is /storage/kkm_registers [00:07:39]Write 24 bytes [00:07:39]NVStorageSaveData done [00:07:39]ProcessDocumentItem done err = 0, tmpTLVsize=1394 [00:07:39]tlvbuf is 00385E20 [00:07:39]SAM_PROTO_ClearQueue [00:07:39]wFMCommunicate request_size=4 [00:07:39]MH_SAM_APDU [00:07:39]CAPDU: 80 09 00 00 [00:07:39]Write to MH i2c: E2 08 00 6F 0C 80 09 00 00 00 00 00 00 ED [00:07:39]Write i2c OK [00:07:39]MH_I2C_Read... [00:07:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:07:39]Read from MH i2c: E2 [00:07:39]MH_I2C_Read... [00:07:39]Read from MH i2c: E2 03 00 [00:07:39]MH_I2C_Read... [00:07:39]Read from MH i2c: E2 03 00 6F 0C 00 90 00 EF [00:07:39]RAPDU: 90 00 [00:07:39]wFMCommunicate OK [00:07:39]SAM_PROTO_ClearQueue done [00:07:39]KKMCreateOFDPacket [00:07:39]OFDProtocolAddRootSTLVToBuf [00:07:39]FM_MakeSignedData [00:07:39]FM_MakeSignedData [00:07:39]SAM_PROTO_SignData [00:07:39]wFMCommunicate request_size=4 [00:07:39]MH_SAM_APDU [00:07:39]CAPDU: 80 0D 01 02 [00:07:39]Write to MH i2c: E2 08 00 70 0C 80 0D 01 02 00 00 00 00 F5 [00:07:39]Write i2c OK [00:07:39]MH_I2C_Read... [00:07:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:07:39]Read from MH i2c: E2 [00:07:39]MH_I2C_Read... [00:07:39]Read from MH i2c: E2 03 00 [00:07:39]MH_I2C_Read... [00:07:39]Read from MH i2c: E2 03 00 70 0C 00 90 00 F0 [00:07:39]RAPDU: 90 00 [00:07:39]wFMCommunicate OK [00:07:39]wFMCommunicate request_size=255 [00:07:39]MH_SAM_APDU [00:07:39]CAPDU: 80 0D 02 02 FA 05 00 72 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1E 00 D0 A8 D0 B5 D0 BA D0 B5 D1 80 D0 B1 D0 B5 D0 BA 20 D0 BA D1 8B D0 B7 D1 8B 20 D0 9A 2E 20 F4 03 04 00 45 3E 18 67 0E 04 04 00 17 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 5E 04 04 00 AA 01 00 00 57 04 04 00 AC 01 00 00 AA 04 DB 04 6E 04 04 00 AA 01 00 00 69 04 A5 00 6F 04 04 00 A8 01 00 00 B1 04 04 00 7C 13 16 02 70 04 04 00 BC 3C B0 01 72 04 03 00 C0 D6 65 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 72 BB 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 [00:07:40]Write to MH i2c: E2 02 01 71 0C 80 0D 02 02 FA 00 05 00 72 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1E 00 D0 A8 D0 B5 D0 BA D0 B5 D1 80 D0 B1 D0 B5 D0 BA 20 D0 BA D1 8B D0 B7 D1 8B 20 D0 9A 2E 20 F4 03 04 00 45 3E 18 67 0E 04 04 00 17 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 5E 04 04 00 AA 01 00 00 57 04 04 00 AC 01 00 00 AA 04 DB 04 6E 04 04 00 AA 01 00 00 69 04 A5 00 6F 04 04 00 A8 01 00 00 B1 04 04 00 7C 13 16 02 70 04 04 00 BC 3C B0 01 72 04 03 00 C0 D6 65 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 72 BB 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 00 00 B3 [00:07:40]Write i2c OK [00:07:40]MH_I2C_Read... [00:07:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:40]Read from MH i2c: E2 [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: E2 03 00 [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: E2 03 00 71 0C 00 90 00 F1 [00:07:40]RAPDU: 90 00 [00:07:40]wFMCommunicate OK [00:07:40]wFMCommunicate request_size=255 [00:07:40]MH_SAM_APDU [00:07:40]CAPDU: 80 0D 02 02 FA 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 3F BA 04 6A 04 9C 00 6F 04 04 00 02 00 00 00 B1 04 02 00 20 4E 70 04 02 00 20 4E 72 04 01 00 00 00 04 7F 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 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 B2 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE [00:07:40]Write to MH i2c: E2 02 01 72 0C 80 0D 02 02 FA 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 3F BA 04 6A 04 9C 00 6F 04 04 00 02 00 00 00 B1 04 02 00 20 4E 70 04 02 00 20 4E 72 04 01 00 00 00 04 7F 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 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 B2 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 00 00 57 [00:07:40]Write i2c OK [00:07:40]MH_I2C_Read... [00:07:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:41]Read from MH i2c: E2 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: E2 03 00 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: E2 03 00 72 0C 00 90 00 F2 [00:07:41]RAPDU: 90 00 [00:07:41]wFMCommunicate OK [00:07:41]wFMCommunicate request_size=255 [00:07:41]MH_SAM_APDU [00:07:41]CAPDU: 80 0D 02 02 FA 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 [00:07:41]Write to MH i2c: E2 02 01 73 0C 80 0D 02 02 FA 00 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 00 00 C0 [00:07:41]OFD Sender: No OFD packet to send [00:07:41]Write i2c OK [00:07:41]MH_I2C_Read... [00:07:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:41]Read from MH i2c: E2 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: E2 03 00 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: E2 03 00 73 0C 00 90 00 F3 [00:07:41]RAPDU: 90 00 [00:07:41]wFMCommunicate OK [00:07:41]wFMCommunicate request_size=255 [00:07:41]MH_SAM_APDU [00:07:41]CAPDU: 80 0D 02 02 FA 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 [00:07:41]Write to MH i2c: E2 02 01 74 0C 80 0D 02 02 FA 00 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 00 00 C9 [00:07:42]Write i2c OK [00:07:42]MH_I2C_Read... [00:07:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:42]Read from MH i2c: E2 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 03 00 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 03 00 74 0C 00 90 00 F4 [00:07:42]RAPDU: 90 00 [00:07:42]wFMCommunicate OK [00:07:42]wFMCommunicate request_size=255 [00:07:42]MH_SAM_APDU [00:07:42]CAPDU: 80 0D 02 02 FA 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 [00:07:42]Write to MH i2c: E2 02 01 75 0C 80 0D 02 02 FA 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 [00:07:42]Write i2c OK [00:07:42]MH_I2C_Read... [00:07:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:42]Read from MH i2c: E2 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 03 00 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 03 00 75 0C 00 90 00 F5 [00:07:42]RAPDU: 90 00 [00:07:42]wFMCommunicate OK [00:07:42]wFMCommunicate request_size=153 [00:07:42]MH_SAM_APDU [00:07:42]CAPDU: 80 0D 02 02 94 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 6F 7C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 35 04 06 00 F6 DA 3E C0 6A A3 [00:07:42]Write to MH i2c: E2 9C 00 76 0C 80 0D 02 02 94 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 6F 7C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 35 04 06 00 F6 DA 3E C0 6A A3 00 00 08 [00:07:43]Write i2c OK [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 [00:07:43]MH_I2C_Read... [00:07:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:43]Read from MH i2c: E2 03 00 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 03 00 76 0C 00 90 00 F6 [00:07:43]RAPDU: 90 00 [00:07:43]wFMCommunicate OK [00:07:43]wFMCommunicate request_size=4 [00:07:43]MH_SAM_APDU [00:07:43]CAPDU: 80 0D 03 02 [00:07:43]Write to MH i2c: E2 08 00 77 0C 80 0D 03 02 00 00 00 00 FE [00:07:43]Write i2c OK [00:07:43]MH_I2C_Read... [00:07:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:07:43]Read from MH i2c: E2 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 0B 00 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 0B 00 77 0C 00 4A CA 13 68 0B CC A1 9C 90 00 A2 [00:07:43]RAPDU: 4A CA 13 68 0B CC A1 9C 90 00 [00:07:43]wFMCommunicate OK [00:07:43]SAM_PROTO_SignData done [00:07:43]FM_MakeSignedData done [00:07:43]CreateOFDProtocolMessage [00:07:43]wFMCommunicate request_size=4 [00:07:43]MH_SAM_APDU [00:07:43]CAPDU: 80 11 00 00 [00:07:43]Write to MH i2c: E2 08 00 78 0C 80 11 00 00 00 00 00 00 FE [00:07:43]Write i2c OK [00:07:43]MH_I2C_Read... [00:07:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:43]Read from MH i2c: E2 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 17 00 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 17 00 78 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 55 [00:07:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:07:43]wFMCommunicate OK [00:07:43]CreateOFDProtocolMessage done [00:07:43]OFDSenderStorePacket 228463 [00:07:43]StoreOFDPacket docnum=228463 [00:07:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 86 05 00 00 AD EC 7E 05 65 54 5A 05 01 00 05 00 72 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1E 00 D0 A8 D0 B5 D0 BA D0 B5 D1 80 D0 B1 D0 B5 D0 BA 20 D0 BA D1 8B D0 B7 D1 8B 20 D0 9A 2E 20 F4 03 04 00 45 3E 18 67 0E 04 04 00 17 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 5E 04 04 00 AA 01 00 00 57 04 04 00 AC 01 00 00 AA 04 DB 04 6E 04 04 00 AA 01 00 00 69 04 A5 00 6F 04 04 00 A8 01 00 00 B1 04 04 00 7C 13 16 02 70 04 04 00 BC 3C B0 01 72 04 03 00 C0 D6 65 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 72 BB 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 3F BA 04 6A 04 9C 00 6F 04 04 00 02 00 00 00 B1 04 02 00 20 4E 70 04 02 00 20 4E 72 04 01 00 00 00 04 7F 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 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 B2 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 6F 7C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 35 04 06 00 F6 DA 3E C0 6A A3 4A CA 13 68 0B CC A1 9C [00:07:43]CheckFolder [00:07:43]dirname=/storage/ofd_packets [00:07:43]CheckFolder done [00:07:43]ProducePacketName [00:07:43]name=ofd_packets/00228463 [00:07:43]NVStorageSaveData ofd_packets/00228463 [00:07:43]File name is /storage/ofd_packets/00228463 [00:07:43]Write 1444 bytes [00:07:43]NVStorageSaveData done [00:07:43]OFDSenderStorePacket done [00:07:43]KKMCreateOFDPacket done [00:07:43]NVStorageSaveData kkm_last_timestamp [00:07:43]File name is /storage/kkm_last_timestamp [00:07:43]Write 4 bytes [00:07:43]NVStorageSaveData done [00:07:43]ExternCall_PrintAddStr [00:07:43]wPrintStart [00:07:43]Write to MH i2c: 01 00 00 79 0C 85 [00:07:43]Write i2c OK [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: 01 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: 01 07 00 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: 01 07 00 79 0C 00 00 00 00 00 FF 0F 9A [00:07:43]RasterBufferAndPrint [00:07:43]line Отчет о закрытии смены [00:07:43]line ФФД: 1.0 [00:07:43]line ИНН: 02508201610067 [00:07:43]line Кассир: Шекербек кызы К. [00:07:43]line 23.10.2024 00:07 [00:07:43]line Смена: 535 [00:07:43]line РНМ: 0000000000091685 [00:07:43]line ЗНМ: 0300000091 [00:07:43]line СНО: Общий режим [00:07:43]line Чеков за смену: 426 [00:07:43]line ФД за смену: 428 [00:07:43]line Всего чеков: 426 [00:07:43]line ИТОГИ ПРИХОД [00:07:43]line Чеков: 424 [00:07:43]line Общий итог: 350012.12 [00:07:43]line Итого наличными: 283271.00 [00:07:43]line Итого безнал.: 66741.12 [00:07:43]line НДС 0% : 0.00 [00:07:43]line НДС 12% : 37180.02 [00:07:43]line НСП 0% : 0.00 [00:07:43]line НСП 1,50% : 0.00 [00:07:43]line НСП 0,50% : 0.00 [00:07:43]line НСП 5% : 0.00 [00:07:43]line НСП 3% : 0.00 [00:07:43]line НСП 2% : 0.00 [00:07:43]line НСП 1% : 3098.23 [00:07:43]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:07:43]line Чеков: 2 [00:07:43]line Общий итог: 200.00 [00:07:43]line Итого наличными: 200.00 [00:07:43]line Итого безнал.: 0.00 [00:07:43]line НДС 0% : 0.00 [00:07:43]line НДС 12% : 21.36 [00:07:43]line НСП 0% : 0.00 [00:07:43]line НСП 1,50% : 0.00 [00:07:43]line НСП 0,50% : 0.00 [00:07:43]line НСП 5% : 0.00 [00:07:43]line НСП 3% : 0.00 [00:07:43]line НСП 2% : 0.00 [00:07:43]line НСП 1% : 1.78 [00:07:43]line ИТОГИ РАСХОД [00:07:43]line Чеков: 0 [00:07:43]line Общий итог: 0.00 [00:07:43]line Итого наличными: 0.00 [00:07:43]line Итого безнал.: 0.00 [00:07:43]line НДС 0% : 0.00 [00:07:43]line НДС 12% : 0.00 [00:07:43]line НСП 0% : 0.00 [00:07:43]line НСП 1,50% : 0.00 [00:07:43]line НСП 0,50% : 0.00 [00:07:43]line НСП 5% : 0.00 [00:07:43]line НСП 3% : 0.00 [00:07:43]line НСП 2% : 0.00 [00:07:43]line НСП 1% : 0.00 [00:07:43]line ИТОГИ ВОЗВРАТ РАСХОДА [00:07:43]line Чеков: 0 [00:07:43]line Общий итог: 0.00 [00:07:43]line Итого наличными: 0.00 [00:07:43]line Итого безнал.: 0.00 [00:07:43]line НДС 0% : 0.00 [00:07:43]line НДС 12% : 0.00 [00:07:43]line НСП 0% : 0.00 [00:07:43]line НСП 1,50% : 0.00 [00:07:43]line НСП 0,50% : 0.00 [00:07:43]line НСП 5% : 0.00 [00:07:43]line НСП 3% : 0.00 [00:07:43]line НСП 2% : 0.00 [00:07:43]line НСП 1% : 0.00 [00:07:43]line Сумма внесений: 0.00 [00:07:43]line Сумма выплат: 0.00 [00:07:43]line Нал. в кассе: 283071.00 [00:07:43]line НС Приход: 205564676.37 [00:07:43]line НС Возвр.Прихода: 5169918.00 [00:07:43]line НС Расход: 0.00 [00:07:43]line НС Возвр.Расхода: 0.00 [00:07:43]line ФД: 228463 [00:07:43]line ФМ: 0000000000871839 [00:07:43]line ФПД: 271417216101027 [00:07:43]written 0, free lines is 4095 [00:07:43]OFD Sender: Processing packet 228463 [packets to send 38, broken 37] [00:07:43]ProducePacketName [00:07:43]name=ofd_packets/00228463 [00:07:43]OFD Sender: To server: pG, [00:07:43]CommunicateWithHost lk.salyk.kg:30040 [00:07:43]ConnectInit lk.salyk.kg [00:07:43]Connected sock=10 [00:07:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 86 05 00 00 AD EC 7E 05 65 54 5A 05 01 00 05 00 72 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1E 00 D0 A8 D0 B5 D0 BA D0 B5 D1 80 D0 B1 D0 B5 D0 BA 20 D0 BA D1 8B D0 B7 D1 8B 20 D0 9A 2E 20 F4 03 04 00 45 3E 18 67 0E 04 04 00 17 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 5E 04 04 00 AA 01 00 00 57 04 04 00 AC 01 00 00 AA 04 DB 04 6E 04 04 00 AA 01 00 00 69 04 A5 00 6F 04 04 00 A8 01 00 00 B1 04 04 00 7C 13 16 02 70 04 04 00 BC 3C B0 01 72 04 03 00 C0 D6 65 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 72 BB 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 3F BA 04 6A 04 9C 00 6F 04 04 00 02 00 00 00 B1 04 02 00 20 4E 70 04 02 00 20 4E 72 04 01 00 00 00 04 7F 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 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 B2 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 Write to MH i2c: 03 01 09 00 00 00 F6 C9 03 0C 01 D5 00 [00:07:44]06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 Write i2c OK [00:07:44]00 MH_I2C_Read... [00:07:44]00 Read from MH i2c: 70 01 04 [00:07:44]00 MH_I2C_Read... [00:07:44]00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 Read from MH i2c: 00 01 EE 07 03 00 09 [00:07:44]00 MH_I2C_Read... [00:07:44]F2 Read from MH i2c: 03 01 01 07 00 00 01 C9 F3 0C 03 00 00 00 00 00 EF 00 03 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 16 00 0A 01 FC F7 [00:07:44]03 RasterBufferAndPrint [00:07:44]00 line [00:07:44]00 line [00:07:44]EF line [00:07:44]03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 line [00:07:44]03 line [00:07:44]01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 written 0, free lines is 2674 [00:07:44]04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 MH_Cut [00:07:44]00 Write to MH i2c: EF D1 03 01 09 00 00 D0 F6 0C 03 01 01 AE 00 [00:07:44]06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 Write i2c OK [00:07:44]00 MH_I2C_Read... [00:07:44]00 Read from MH i2c: 72 D1 04 [00:07:44]00 MH_I2C_Read... [00:07:44]00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 Read from MH i2c: 09 D1 00 01 F2 00 03 [00:07:44]01 MH_I2C_Read... [00:07:44]00 Read from MH i2c: 01 D1 F3 01 03 00 00 D0 00 0C EF 00 03 AD 09 [00:07:44]00 Write to MH i2c: F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 01 F7 00 03 00 00 D1 00 0C EF DD 03 [00:07:44]09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 Write i2c OK [00:07:44]03 MH_I2C_Read... [00:07:44]00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6F 7C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 35 04 06 00 F6 DA 3E C0 6A A3 4A CA 13 68 0B CC A1 9C [00:07:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 D8 ED 47 00 29 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6F 7C 03 00 F4 03 04 00 46 E9 17 67 B6 04 01 00 00 27 6E B9 72 74 15 26 0D [00:07:45]CommunicateWithHost err = 0 [00:07:45]CheckOFDResponse [00:07:45]1017 (14) - 77093643461234 [00:07:45]1041 (16) - 0000000000871839 [00:07:45]1040 (4) - 228463 [00:07:45]1012 (4) - 22.10.2024 18:04 [00:07:45]1206 (1) - 0 [00:07:45]OFD Sender: Remove packet 228463 [00:07:45]ProducePacketName [00:07:45]name=ofd_packets/00228463 [00:07:45]NVStorageDeleteData [00:07:45]OFD Sender: No OFD packet to send [00:07:46]*** Cut start [00:07:46]*** Partial cut [00:07:46]*** CUTSNS_PIN = 1 [00:07:46]*** CUTSNS_PIN = 0 [00:07:46]*** Brake cut motor [00:07:46]Read from MH i2c: 01 [00:07:46]MH_I2C_Read... [00:07:46]*** Stop cut motor [00:07:46]*** Cut end [00:07:46]Read from MH i2c: 01 07 00 [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: 01 07 00 D1 0C 00 00 00 00 00 FF 0F F2 [00:07:46]process_action close_shift done [00:07:46]requested_data is exist [00:07:46]produce_requested_data [00:07:46]requested_item fd.num is exist - process it [00:07:46]SAM_PROTO_GetFieldsCounters [00:07:46]wFMCommunicate request_size=4 [00:07:46]MH_SAM_APDU [00:07:46]CAPDU: 80 13 00 00 [00:07:46]Write to MH i2c: E2 08 00 D2 0C 80 13 00 00 00 00 00 00 5A [00:07:46]Write i2c OK [00:07:46]MH_I2C_Read... [00:07:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:46]Read from MH i2c: E2 [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: E2 62 00 [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: E2 62 00 D2 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6F 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 AA 01 00 00 5E 04 04 00 AA 01 00 00 57 04 04 00 AC 01 00 00 19 04 04 00 00 00 00 00 90 00 8C [00:07:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6F 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 AA 01 00 00 5E 04 04 00 AA 01 00 00 57 04 04 00 AC 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:46]wFMCommunicate OK [00:07:46]SAM_PROTO_GetFieldsCounters done [00:07:46]requested_item shift.num is exist - process it [00:07:46]requested_item shift.opened is exist - process it [00:07:46]req_shift_opened [00:07:47]FM_GetShiftState [00:07:47]SAM_PROTO_GetShiftState [00:07:47]wFMCommunicate request_size=4 [00:07:47]MH_SAM_APDU [00:07:47]CAPDU: 80 13 01 00 [00:07:47]Write to MH i2c: E2 08 00 D3 0C 80 13 01 00 00 00 00 00 5C [00:07:47]Write i2c OK [00:07:47]MH_I2C_Read... [00:07:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:47]Read from MH i2c: E2 [00:07:47]MH_I2C_Read... [00:07:47]Read from MH i2c: E2 0E 00 [00:07:47]MH_I2C_Read... [00:07:47]Read from MH i2c: E2 0E 00 D3 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 67 [00:07:47]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:07:47]wFMCommunicate OK [00:07:47]SAM_PROTO_GetShiftState done [00:07:47]FM_GetShiftState done [00:07:47]req_shift_opened done [00:07:47]requested_item shift.open_date is exist - process it [00:07:47]req_shift_open_date [00:07:47]FM_GetShiftState [00:07:47]SAM_PROTO_GetShiftState [00:07:47]wFMCommunicate request_size=4 [00:07:47]MH_SAM_APDU [00:07:47]CAPDU: 80 13 01 00 [00:07:47]Write to MH i2c: E2 08 00 D4 0C 80 13 01 00 00 00 00 00 5D [00:07:47]Write i2c OK [00:07:47]MH_I2C_Read... [00:07:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:47]Read from MH i2c: E2 [00:07:47]MH_I2C_Read... [00:07:47]Read from MH i2c: E2 0E 00 [00:07:47]MH_I2C_Read... [00:07:47]Read from MH i2c: E2 0E 00 D4 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 68 [00:07:47]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:07:47]wFMCommunicate OK [00:07:47]SAM_PROTO_GetShiftState done [00:07:47]FM_GetShiftState done [00:07:47]req_shift_open_date done [00:07:47]produce_requested_data done [00:07:47]produce_requested_data return {"fd.num":228463,"shift.num":535,"shift.opened":0,"shift.open_date":0} [00:07:47]process_action_free close_shift [00:07:47]json_value_free [00:07:47]json_value_free done [00:07:47]process_json_proto returns [00:07:47]Send response to host [00:07:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":228463,"shift.num":535,"shift.opened":0,"shift.open_date":0}}} [00:07:47]free response buf [00:07:47]execute_script done [00:07:47]execute_script returns [00:07:47]free content buf [00:07:47]Sock 7.Close socket [00:07:47]Sock 7.Thread stoped [00:07:50]OFD Sender: No OFD packet to send [00:07:55]OFD Sender: No OFD packet to send [00:08:00]OFD Sender: No OFD packet to send [00:08:06]OFD Sender: No OFD packet to send [00:08:11]OFD Sender: No OFD packet to send [00:08:16]OFD Sender: No OFD packet to send [00:08:21]OFD Sender: No OFD packet to send [00:08:26]OFD Sender: No OFD packet to send [00:08:31]OFD Sender: No OFD packet to send [00:08:36]OFD Sender: No OFD packet to send [00:08:41]OFD Sender: No OFD packet to send [00:08:46]OFD Sender: No OFD packet to send [00:08:51]OFD Sender: No OFD packet to send [00:08:56]OFD Sender: No OFD packet to send [00:09:01]OFD Sender: No OFD packet to send [00:09:06]OFD Sender: No OFD packet to send [00:09:11]OFD Sender: No OFD packet to send [00:09:16]OFD Sender: No OFD packet to send [00:09:21]OFD Sender: No OFD packet to send [00:09:26]OFD Sender: No OFD packet to send [00:09:31]OFD Sender: No OFD packet to send [00:09:36]OFD Sender: No OFD packet to send [00:09:41]OFD Sender: No OFD packet to send [00:09:46]OFD Sender: No OFD packet to send [00:09:51]OFD Sender: No OFD packet to send [00:09:56]OFD Sender: No OFD packet to send [00:10:01]OFD Sender: No OFD packet to send [00:10:06]OFD Sender: No OFD packet to send [00:10:11]OFD Sender: No OFD packet to send [00:10:16]OFD Sender: No OFD packet to send [00:10:21]OFD Sender: No OFD packet to send [00:10:26]OFD Sender: No OFD packet to send [00:10:31]OFD Sender: No OFD packet to send [00:10:36]OFD Sender: No OFD packet to send [00:10:41]OFD Sender: No OFD packet to send [00:10:46]OFD Sender: No OFD packet to send [00:10:51]OFD Sender: No OFD packet to send [00:10:56]OFD Sender: No OFD packet to send [00:11:01]OFD Sender: No OFD packet to send [00:11:06]OFD Sender: No OFD packet to send [00:11:11]OFD Sender: No OFD packet to send [00:11:16]OFD Sender: No OFD packet to send [00:11:21]OFD Sender: No OFD packet to send [00:11:26]OFD Sender: No OFD packet to send [00:11:31]OFD Sender: No OFD packet to send [00:11:36]OFD Sender: No OFD packet to send [00:11:41]OFD Sender: No OFD packet to send [00:11:46]OFD Sender: No OFD packet to send [00:11:51]OFD Sender: No OFD packet to send [00:11:56]OFD Sender: No OFD packet to send [00:12:01]OFD Sender: No OFD packet to send [00:12:06]OFD Sender: No OFD packet to send [00:12:11]OFD Sender: No OFD packet to send [00:12:16]OFD Sender: No OFD packet to send [00:12:21]OFD Sender: No OFD packet to send [00:12:26]OFD Sender: No OFD packet to send [00:12:27]accept exits with 9 [00:12:27]New connection [00:12:27]New thread 3066977636 created [00:12:27]Thread 3066834276 joined [00:12:27]Waiting for new connection... [00:12:27] Sock 9.Parse request [00:12:27]Sock 9.Check first char [00:12:27]Sock 9.First char is OK [00:12:27]request: POST /json_proto HTTP/1.0 [00:12:27]Method: POST [00:12:27]URL: /json_proto [00:12:27]Method is POST - this is cgi request [00:12:27]url: /json_proto [00:12:27]query_string will be loaded in cgi processing [00:12:27]execute_cgi json_proto POST (null) [00:12:27]execute_cgi path=json_proto method=POST [00:12:27]POST find Content-Length [00:12:27]Host: 172.17.44.195:8080 [00:12:27]Content-Length: 215 [00:12:27]Content-Type: application/json [00:12:27] [00:12:27]POST finish read [00:12:27]Found Content-Length = 215 [00:12:27]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:12:27]execute_script... [00:12:27]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:12:27]POST & json_proto [00:12:27]process_json_proto [00:12:27]json parsed OK: [00:12:27]protocol is kg_v1.0 [00:12:27]action value=get_value [00:12:27]process_action get_value [00:12:27]cmd_get_value [00:12:27]process_action get_value done [00:12:27]requested_data is exist [00:12:27]produce_requested_data [00:12:27]requested_item kkm.sn is exist - process it [00:12:27]requested_item kkm.ver is exist - process it [00:12:27]requested_item fm.sn is exist - process it [00:12:27]wFMCommunicate request_size=4 [00:12:27]MH_SAM_APDU [00:12:27]CAPDU: 80 11 00 00 [00:12:27]Write to MH i2c: E2 08 00 D5 0C 80 11 00 00 00 00 00 00 5B [00:12:27]Write i2c OK [00:12:27]MH_I2C_Read... [00:12:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:27]Read from MH i2c: E2 [00:12:27]MH_I2C_Read... [00:12:27]Read from MH i2c: E2 17 00 [00:12:27]MH_I2C_Read... [00:12:27]Read from MH i2c: E2 17 00 D5 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B2 [00:12:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:12:27]wFMCommunicate OK [00:12:27]requested_item fd.num is exist - process it [00:12:27]SAM_PROTO_GetFieldsCounters [00:12:27]wFMCommunicate request_size=4 [00:12:27]MH_SAM_APDU [00:12:27]CAPDU: 80 13 00 00 [00:12:27]Write to MH i2c: E2 08 00 D6 0C 80 13 00 00 00 00 00 00 5E [00:12:27]Write i2c OK [00:12:27]MH_I2C_Read... [00:12:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:12:28]Read from MH i2c: E2 [00:12:28]MH_I2C_Read... [00:12:28]Read from MH i2c: E2 62 00 [00:12:28]MH_I2C_Read... [00:12:28]Read from MH i2c: E2 62 00 D6 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6F 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 AA 01 00 00 5E 04 04 00 AA 01 00 00 57 04 04 00 AC 01 00 00 19 04 04 00 00 00 00 00 90 00 90 [00:12:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6F 7C 03 00 0E 04 04 00 17 02 00 00 12 04 04 00 AA 01 00 00 5E 04 04 00 AA 01 00 00 57 04 04 00 AC 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:12:28]wFMCommunicate OK [00:12:28]SAM_PROTO_GetFieldsCounters done [00:12:28]requested_item shift.num is exist - process it [00:12:28]requested_item shift.opened is exist - process it [00:12:28]req_shift_opened [00:12:28]FM_GetShiftState [00:12:28]SAM_PROTO_GetShiftState [00:12:28]wFMCommunicate request_size=4 [00:12:28]MH_SAM_APDU [00:12:28]CAPDU: 80 13 01 00 [00:12:28]Write to MH i2c: E2 08 00 D7 0C 80 13 01 00 00 00 00 00 60 [00:12:28]Write i2c OK [00:12:28]MH_I2C_Read... [00:12:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:28]Read from MH i2c: E2 [00:12:28]MH_I2C_Read... [00:12:28]Read from MH i2c: E2 0E 00 [00:12:28]MH_I2C_Read... [00:12:28]Read from MH i2c: E2 0E 00 D7 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 6B [00:12:28]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:12:28]wFMCommunicate OK [00:12:28]SAM_PROTO_GetShiftState done [00:12:28]FM_GetShiftState done [00:12:28]req_shift_opened done [00:12:28]requested_item shift.open_date is exist - process it [00:12:28]req_shift_open_date [00:12:28]FM_GetShiftState [00:12:28]SAM_PROTO_GetShiftState [00:12:28]wFMCommunicate request_size=4 [00:12:28]MH_SAM_APDU [00:12:28]CAPDU: 80 13 01 00 [00:12:28]Write to MH i2c: E2 08 00 D8 0C 80 13 01 00 00 00 00 00 61 [00:12:28]Write i2c OK [00:12:28]MH_I2C_Read... [00:12:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:28]Read from MH i2c: E2 [00:12:28]MH_I2C_Read... [00:12:28]Read from MH i2c: E2 0E 00 [00:12:28]MH_I2C_Read... [00:12:28]Read from MH i2c: E2 0E 00 D8 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 6C [00:12:28]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:12:28]wFMCommunicate OK [00:12:28]SAM_PROTO_GetShiftState done [00:12:28]FM_GetShiftState done [00:12:28]req_shift_open_date done [00:12:28]produce_requested_data done [00:12:28]produce_requested_data return {"kkm.sn":"0300000091","kkm.ver":"001","fm.sn":"0000000000871839","fd.num":228463,"shift.num":535,"shift.opened":0,"shift.open_date":0} [00:12:28]process_action_free get_value [00:12:28]json_value_free [00:12:28]json_value_free done [00:12:28]process_json_proto returns [00:12:28]Send response to host [00:12:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000091","kkm.ver":"001","fm.sn":"0000000000871839","fd.num":228463,"shift.num":535,"shift.opened":0,"shift.open_date":0}}} [00:12:28]free response buf [00:12:28]execute_script done [00:12:28]execute_script returns [00:12:28]free content buf [00:12:28]Sock 9.Close socket [00:12:28]Sock 9.Thread stoped [00:12:28]accept exits with 7 [00:12:28]New connection [00:12:28]New thread 3066834276 created [00:12:28]Thread 3066977636 joined [00:12:28]Waiting for new connection... [00:12:28] Sock 7.Parse request [00:12:28]Sock 7.Check first char [00:12:28]Sock 7.First char is OK [00:12:28]request: POST /json_proto HTTP/1.0 [00:12:28]Method: POST [00:12:28]URL: /json_proto [00:12:28]Method is POST - this is cgi request [00:12:28]url: /json_proto [00:12:28]query_string will be loaded in cgi processing [00:12:28]execute_cgi json_proto POST (null) [00:12:28]execute_cgi path=json_proto method=POST [00:12:28]POST find Content-Length [00:12:28]Host: 172.17.44.195:8080 [00:12:28]Content-Length: 331 [00:12:28]Content-Type: application/json [00:12:28] [00:12:28]POST finish read [00:12:28]Found Content-Length = 331 [00:12:28]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:12:28]execute_script... [00:12:28]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:12:28]POST & json_proto [00:12:28]process_json_proto [00:12:28]json parsed OK: [00:12:28]protocol is kg_v1.0 [00:12:28]action value=get_value [00:12:28]process_action get_value [00:12:28]cmd_get_value [00:12:28]process_action get_value done [00:12:28]requested_data is exist [00:12:28]produce_requested_data [00:12:28]requested_item fm.sale.total is exist - process it [00:12:28]SAM_PROTO_GetFMData [00:12:28]wFMCommunicate request_size=4 [00:12:28]MH_SAM_APDU [00:12:28]CAPDU: 80 13 03 00 [00:12:28]Write to MH i2c: E2 08 00 D9 0C 80 13 03 00 00 00 00 00 64 [00:12:28]Write i2c OK [00:12:28]MH_I2C_Read... [00:12:28]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:12:28]Read from MH i2c: E2 [00:12:28]MH_I2C_Read... [00:12:28]Read from MH i2c: E2 FD 00 [00:12:28]MH_I2C_Read... [00:12:28]Read from MH i2c: E2 FD 00 D9 0C 00 C5 04 85 04 C1 04 6E 04 04 00 40 78 03 00 69 04 A3 00 6F 04 04 00 4D 71 03 00 B1 04 05 00 B5 CD 42 C9 04 70 04 05 00 24 4E 12 4F 04 72 04 04 00 91 7F 30 7A 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 0A 86 28 82 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 63 89 D8 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 06 00 00 B1 04 04 00 38 AB D0 1E 70 04 04 00 38 AB D0 1E 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 95 D1 45 03 EF 03 09 90 00 77 [00:12:28]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 40 78 03 00 69 04 A3 00 6F 04 04 00 4D 71 03 00 B1 04 05 00 B5 CD 42 C9 04 70 04 05 00 24 4E 12 4F 04 72 04 04 00 91 7F 30 7A 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 0A 86 28 82 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 63 89 D8 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 06 00 00 B1 04 04 00 38 AB D0 1E 70 04 04 00 38 AB D0 1E 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 95 D1 45 03 EF 03 09 90 00 [00:12:28]wFMCommunicate OK [00:12:28]wFMCommunicate request_size=4 [00:12:28]MH_SAM_APDU [00:12:28]CAPDU: 80 17 00 00 [00:12:28]Write to MH i2c: E2 08 00 DA 0C 80 17 00 00 00 00 00 00 66 [00:12:28]Write i2c OK [00:12:28]MH_I2C_Read... [00:12:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:29]Read from MH i2c: E2 [00:12:29]MH_I2C_Read... [00:12:29]Read from MH i2c: E2 FD 00 [00:12:29]MH_I2C_Read... [00:12:29]Read from MH i2c: E2 FD 00 DA 0C 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB D0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 2C [00:12:29]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB D0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:12:29]wFMCommunicate OK [00:12:29]wFMCommunicate request_size=4 [00:12:29]MH_SAM_APDU [00:12:29]CAPDU: 80 17 00 00 [00:12:29]Write to MH i2c: E2 08 00 DB 0C 80 17 00 00 00 00 00 00 67 [00:12:29]Write i2c OK [00:12:29]MH_I2C_Read... [00:12:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:29]Read from MH i2c: E2 [00:12:29]MH_I2C_Read... [00:12:29]Read from MH i2c: E2 FD 00 [00:12:29]MH_I2C_Read... [00:12:29]Read from MH i2c: E2 FD 00 DB 0C 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 79 [00:12:29]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:29]wFMCommunicate OK [00:12:29]wFMCommunicate request_size=4 [00:12:29]MH_SAM_APDU [00:12:29]CAPDU: 80 17 00 00 [00:12:29]Write to MH i2c: E2 08 00 DC 0C 80 17 00 00 00 00 00 00 68 [00:12:29]Write i2c OK [00:12:29]MH_I2C_Read... [00:12:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:29]Read from MH i2c: E2 [00:12:29]MH_I2C_Read... [00:12:29]Read from MH i2c: E2 FD 00 [00:12:29]MH_I2C_Read... [00:12:29]Read from MH i2c: E2 FD 00 DC 0C 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F4 [00:12:29]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:29]wFMCommunicate OK [00:12:29]wFMCommunicate request_size=4 [00:12:29]MH_SAM_APDU [00:12:29]CAPDU: 80 17 00 00 [00:12:29]Write to MH i2c: E2 08 00 DD 0C 80 17 00 00 00 00 00 00 69 [00:12:29]Write i2c OK [00:12:29]MH_I2C_Read... [00:12:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:12:29]Read from MH i2c: E2 [00:12:29]MH_I2C_Read... [00:12:29]Read from MH i2c: E2 E2 00 [00:12:29]MH_I2C_Read... [00:12:29]Read from MH i2c: E2 E2 00 DD 0C 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 47 [00:12:29]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:12:29]wFMCommunicate OK [00:12:29]SAM_PROTO_GetFMData done [00:12:29]requested_item fm.sale_refund.total is exist - process it [00:12:29]requested_item fm.buy.total is exist - process it [00:12:29]requested_item shift.sale.total is exist - process it [00:12:29]SAM_PROTO_GetShiftData [00:12:29]wFMCommunicate request_size=4 [00:12:29]MH_SAM_APDU [00:12:29]CAPDU: 80 13 02 00 [00:12:29]Write to MH i2c: E2 08 00 DE 0C 80 13 02 00 00 00 00 00 68 [00:12:29]Write i2c OK [00:12:29]MH_I2C_Read... [00:12:30]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:12:30]Read from MH i2c: E2 [00:12:30]MH_I2C_Read... [00:12:30]Read from MH i2c: E2 FD 00 [00:12:30]MH_I2C_Read... [00:12:30]Read from MH i2c: E2 FD 00 DE 0C 00 B8 04 AA 04 B4 04 6E 04 04 00 AA 01 00 00 69 04 9E 00 6F 04 04 00 A8 01 00 00 B1 04 04 00 7C 13 16 02 70 04 04 00 BC 3C B0 01 72 04 03 00 C0 D6 65 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 72 BB 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 3F BA 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 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 20 4E 70 04 02 00 20 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 98 [00:12:30]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 AA 01 00 00 69 04 9E 00 6F 04 04 00 A8 01 00 00 B1 04 04 00 7C 13 16 02 70 04 04 00 BC 3C B0 01 72 04 03 00 C0 D6 65 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 72 BB 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 3F BA 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 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 20 4E 70 04 02 00 20 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:12:30]wFMCommunicate OK [00:12:30]wFMCommunicate request_size=4 [00:12:30]MH_SAM_APDU [00:12:30]CAPDU: 80 17 00 00 [00:12:30]Write to MH i2c: E2 08 00 DF 0C 80 17 00 00 00 00 00 00 6B [00:12:30]Write i2c OK [00:12:30]MH_I2C_Read... [00:12:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:30]Read from MH i2c: E2 [00:12:30]MH_I2C_Read... [00:12:30]Read from MH i2c: E2 FD 00 [00:12:30]MH_I2C_Read... [00:12:30]Read from MH i2c: E2 FD 00 DF 0C 00 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 4F [00:12:30]RAPDU: 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:12:30]wFMCommunicate OK [00:12:30]wFMCommunicate request_size=4 [00:12:30]MH_SAM_APDU [00:12:30]CAPDU: 80 17 00 00 [00:12:30]Write to MH i2c: E2 08 00 E0 0C 80 17 00 00 00 00 00 00 6C [00:12:30]Write i2c OK [00:12:30]MH_I2C_Read... [00:12:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:30]Read from MH i2c: E2 [00:12:30]MH_I2C_Read... [00:12:30]Read from MH i2c: E2 FD 00 [00:12:30]MH_I2C_Read... [00:12:30]Read from MH i2c: E2 FD 00 E0 0C 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 0E [00:12:30]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [00:12:31]wFMCommunicate OK [00:12:31]wFMCommunicate request_size=4 [00:12:31]MH_SAM_APDU [00:12:31]CAPDU: 80 17 00 00 [00:12:31]Write to MH i2c: E2 08 00 E1 0C 80 17 00 00 00 00 00 00 6D [00:12:31]Write i2c OK [00:12:31]MH_I2C_Read... [00:12:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:31]Read from MH i2c: E2 [00:12:31]MH_I2C_Read... [00:12:31]Read from MH i2c: E2 FD 00 [00:12:31]MH_I2C_Read... [00:12:31]Read from MH i2c: E2 FD 00 E1 0C 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 F6 [00:12:31]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [00:12:31]wFMCommunicate OK [00:12:31]wFMCommunicate request_size=4 [00:12:31]MH_SAM_APDU [00:12:31]CAPDU: 80 17 00 00 [00:12:31]Write to MH i2c: E2 08 00 E2 0C 80 17 00 00 00 00 00 00 6E [00:12:31]OFD Sender: No OFD packet to send [00:12:31]Write i2c OK [00:12:31]MH_I2C_Read... [00:12:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:12:31]Read from MH i2c: E2 [00:12:31]MH_I2C_Read... [00:12:31]Read from MH i2c: E2 D5 00 [00:12:31]MH_I2C_Read... [00:12:31]Read from MH i2c: E2 D5 00 E2 0C 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:12:31]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:12:31]wFMCommunicate OK [00:12:31]SAM_PROTO_GetShiftData done [00:12:31]requested_item shift.sale.total_cash is exist - process it [00:12:31]requested_item shift.sale_refund.total is exist - process it [00:12:31]requested_item shift.sale_refund.total_cash is exist - process it [00:12:31]requested_item shift.buy.total is exist - process it [00:12:31]requested_item shift.buy.total_cash is exist - process it [00:12:31]produce_requested_data done [00:12:31]produce_requested_data return {"fm.sale.total":205564676.37,"fm.sale_refund.total":5169918.00,"fm.buy.total":0.00,"shift.sale.total":350012.12,"shift.sale.total_cash":283271.00,"shift.sale_refund.total":200.00,"shift.sale_refund.total_cash":200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:12:31]process_action_free get_value [00:12:31]json_value_free [00:12:31]json_value_free done [00:12:31]process_json_proto returns [00:12:31]Send response to host [00:12:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":205564676.37,"fm.sale_refund.total":5169918.00,"fm.buy.total":0.00,"shift.sale.total":350012.12,"shift.sale.total_cash":283271.00,"shift.sale_refund.total":200.00,"shift.sale_refund.total_cash":200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:12:31]free response buf [00:12:31]execute_script done [00:12:31]execute_script returns [00:12:31]free content buf [00:12:31]Sock 7.Close socket [00:12:31]Sock 7.Thread stoped [00:12:31]accept exits with 9 [00:12:31]New connection [00:12:31]New thread 3066977636 created [00:12:31]Thread 3066834276 joined [00:12:31]Waiting for new connection... [00:12:31] Sock 9.Parse request [00:12:31]Sock 9.Check first char [00:12:31]Sock 9.First char is OK [00:12:31]request: POST /json_proto HTTP/1.0 [00:12:31]Method: POST [00:12:31]URL: /json_proto [00:12:31]Method is POST - this is cgi request [00:12:31]url: /json_proto [00:12:31]query_string will be loaded in cgi processing [00:12:31]execute_cgi json_proto POST (null) [00:12:31]execute_cgi path=json_proto method=POST [00:12:31]POST find Content-Length [00:12:31]Host: 172.17.44.195:8080 [00:12:31]Content-Length: 259 [00:12:31]Content-Type: application/json [00:12:31] [00:12:31]POST finish read [00:12:31]Found Content-Length = 259 [00:12:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041E\u0440\u043C\u043E\u043D\u043E\u0432\u0430 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:31]execute_script... [00:12:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041E\u0440\u043C\u043E\u043D\u043E\u0432\u0430 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:31]POST & json_proto [00:12:31]process_json_proto [00:12:31]json parsed OK: [00:12:31]protocol is kg_v1.0 [00:12:31]action value=open_shift [00:12:31]process_action open_shift [00:12:31]cmd_open_shift [00:12:31]MH_GetDate [00:12:31]Write to MH i2c: F0 00 00 E3 0C DE [00:12:31]Write i2c OK [00:12:31]MH_I2C_Read... [00:12:31]Read from MH i2c: F0 [00:12:31]MH_I2C_Read... [00:12:31]Read from MH i2c: F0 09 00 [00:12:31]MH_I2C_Read... [00:12:31]Read from MH i2c: F0 09 00 E3 0C 00 70 3F 18 67 82 C9 CF 66 95 [00:12:31]GetLastDocTimeStamp 1729642053 [00:12:31]current date 1729642352 [00:12:31]FM_GetShiftState [00:12:31]SAM_PROTO_GetShiftState [00:12:31]wFMCommunicate request_size=4 [00:12:31]MH_SAM_APDU [00:12:31]CAPDU: 80 13 01 00 [00:12:31]Write to MH i2c: E2 08 00 E4 0C 80 13 01 00 00 00 00 00 6D [00:12:31]Write i2c OK [00:12:31]MH_I2C_Read... [00:12:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:31]Read from MH i2c: E2 [00:12:31]MH_I2C_Read... [00:12:31]Read from MH i2c: E2 0E 00 [00:12:31]MH_I2C_Read... [00:12:31]Read from MH i2c: E2 0E 00 E4 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 78 [00:12:31]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:12:31]wFMCommunicate OK [00:12:31]SAM_PROTO_GetShiftState done [00:12:31]FM_GetShiftState done [00:12:31]KKMCreateOpenShiftDocument [00:12:31]Load OK [00:12:31]Malloc new data [00:12:31]MH_GetDate [00:12:31]Write to MH i2c: F0 00 00 E5 0C E0 [00:12:31]Write i2c OK [00:12:31]MH_I2C_Read... [00:12:31]Read from MH i2c: F0 [00:12:31]MH_I2C_Read... [00:12:31]Read from MH i2c: F0 09 00 [00:12:31]MH_I2C_Read... [00:12:31]Read from MH i2c: F0 09 00 E5 0C 00 70 3F 18 67 82 C9 CF 66 97 [00:12:31]Malloc new data [00:12:31]KKMCreateOpenShiftDocument OK [00:12:31]KKMSetOpenShiftData OK [00:12:31]ProcessDocumentItem done err = 0, tmpTLVsize=186 [00:12:31]tlvbuf is 002C5950 [00:12:31]KKMLoadAndSignOpenShiftData [00:12:31]SAM_PROTO_ProcessDocument [00:12:31]wFMCommunicate request_size=9 [00:12:31]MH_SAM_APDU [00:12:31]CAPDU: 80 15 01 00 04 02 00 BA 00 [00:12:31]Write to MH i2c: E2 0C 00 E6 0C 80 15 01 00 04 00 02 00 BA 00 00 00 35 [00:12:31]Write i2c OK [00:12:31]MH_I2C_Read... [00:12:31]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:12:31]Read from MH i2c: E2 [00:12:31]MH_I2C_Read... [00:12:31]Read from MH i2c: E2 03 00 [00:12:31]MH_I2C_Read... [00:12:31]Read from MH i2c: E2 03 00 E6 0C 00 90 00 66 [00:12:31]RAPDU: 90 00 [00:12:31]wFMCommunicate OK [00:12:31]wFMCommunicate request_size=23 [00:12:31]MH_SAM_APDU [00:12:31]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:12:31]Write to MH i2c: E2 1A 00 E7 0C 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 68 [00:12:31]Write i2c OK [00:12:31]MH_I2C_Read... [00:12:31]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:31]Read from MH i2c: E2 [00:12:31]MH_I2C_Read... [00:12:31]Read from MH i2c: E2 03 00 [00:12:31]MH_I2C_Read... [00:12:31]Read from MH i2c: E2 03 00 E7 0C 00 90 00 67 [00:12:31]RAPDU: 90 00 [00:12:31]wFMCommunicate OK [00:12:31]wFMCommunicate request_size=30 [00:12:31]MH_SAM_APDU [00:12:31]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 9E D1 80 D0 BC D0 BE D0 BD D0 BE D0 B2 D0 B0 20 D0 94 2E 20 [00:12:31]Write to MH i2c: E2 21 00 E8 0C 80 15 02 00 19 00 FD 03 15 00 D0 9E D1 80 D0 BC D0 BE D0 BD D0 BE D0 B2 D0 B0 20 D0 94 2E 20 00 00 83 [00:12:31]Write i2c OK [00:12:31]MH_I2C_Read... [00:12:32]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:32]Read from MH i2c: E2 [00:12:32]MH_I2C_Read... [00:12:32]Read from MH i2c: E2 03 00 [00:12:32]MH_I2C_Read... [00:12:32]Read from MH i2c: E2 03 00 E8 0C 00 90 00 68 [00:12:32]RAPDU: 90 00 [00:12:32]wFMCommunicate OK [00:12:32]wFMCommunicate request_size=74 [00:12:32]MH_SAM_APDU [00:12:32]CAPDU: 80 15 02 00 45 F1 03 41 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D1 81 D1 8B 2C 20 D1 83 D0 BB 2E 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B0 20 35 30 2C 20 34 31 2E 30 36 34 36 37 33 2C 20 37 32 2E 36 34 39 31 36 31 [00:12:32]Write to MH i2c: E2 4D 00 E9 0C 80 15 02 00 45 00 F1 03 41 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D1 81 D1 8B 2C 20 D1 83 D0 BB 2E 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B0 20 35 30 2C 20 34 31 2E 30 36 34 36 37 33 2C 20 37 32 2E 36 34 39 31 36 31 00 00 2B [00:12:32]Write i2c OK [00:12:32]MH_I2C_Read... [00:12:32]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:32]Read from MH i2c: E2 [00:12:32]MH_I2C_Read... [00:12:32]Read from MH i2c: E2 03 00 [00:12:32]MH_I2C_Read... [00:12:32]Read from MH i2c: E2 03 00 E9 0C 00 90 00 69 [00:12:32]RAPDU: 90 00 [00:12:32]wFMCommunicate OK [00:12:32]wFMCommunicate request_size=51 [00:12:32]MH_SAM_APDU [00:12:32]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 33 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:12:32]Write to MH i2c: E2 36 00 EA 0C 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 33 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 1F [00:12:32]Write i2c OK [00:12:32]MH_I2C_Read... [00:12:32]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:32]Read from MH i2c: E2 [00:12:32]MH_I2C_Read... [00:12:32]Read from MH i2c: E2 03 00 [00:12:32]MH_I2C_Read... [00:12:32]Read from MH i2c: E2 03 00 EA 0C 00 90 00 6A [00:12:32]RAPDU: 90 00 [00:12:32]wFMCommunicate OK [00:12:32]wFMCommunicate request_size=13 [00:12:32]MH_SAM_APDU [00:12:32]CAPDU: 80 15 02 00 08 F4 03 04 00 70 3F 18 67 [00:12:32]Write to MH i2c: E2 10 00 EB 0C 80 15 02 00 08 00 F4 03 04 00 70 3F 18 67 00 00 B0 [00:12:32]Write i2c OK [00:12:32]MH_I2C_Read... [00:12:32]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:32]Read from MH i2c: E2 [00:12:32]MH_I2C_Read... [00:12:32]Read from MH i2c: E2 03 00 [00:12:32]MH_I2C_Read... [00:12:32]Read from MH i2c: E2 03 00 EB 0C 00 90 00 6B [00:12:32]RAPDU: 90 00 [00:12:32]wFMCommunicate OK [00:12:32]wFMCommunicate request_size=25 [00:12:32]MH_SAM_APDU [00:12:32]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 [00:12:32]Write to MH i2c: E2 1C 00 EC 0C 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 00 00 DE [00:12:32]Write i2c OK [00:12:32]MH_I2C_Read... [00:12:32]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:32]Read from MH i2c: E2 [00:12:32]MH_I2C_Read... [00:12:32]Read from MH i2c: E2 03 00 [00:12:32]MH_I2C_Read... [00:12:32]Read from MH i2c: E2 03 00 EC 0C 00 90 00 6C [00:12:32]RAPDU: 90 00 [00:12:32]wFMCommunicate OK [00:12:32]wFMCommunicate request_size=4 [00:12:32]MH_SAM_APDU [00:12:32]CAPDU: 80 15 03 00 [00:12:32]Write to MH i2c: E2 08 00 ED 0C 80 15 03 00 00 00 00 00 7A [00:12:32]Write i2c OK [00:12:32]MH_I2C_Read... [00:12:32]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:12:32]Read from MH i2c: E2 [00:12:32]MH_I2C_Read... [00:12:32]Read from MH i2c: E2 38 00 [00:12:32]MH_I2C_Read... [00:12:32]Read from MH i2c: E2 38 00 ED 0C 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 70 7C 03 00 0E 04 04 00 18 02 00 00 35 04 06 00 89 1C D5 87 79 AC 90 00 79 [00:12:32]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 70 7C 03 00 0E 04 04 00 18 02 00 00 35 04 06 00 89 1C D5 87 79 AC 90 00 [00:12:32]wFMCommunicate OK [00:12:32]SAM_PROTO_ProcessDocument answer len = 51 [00:12:32]SAM_PROTO_ProcessDocument done [00:12:32]SetTLVBufToDocument [00:12:32]Processing tag 1209 (04B9) [00:12:32]Malloc new data [00:12:32]Processing tag 1041 (0411) [00:12:32]Processing tag 1040 (0410) [00:12:32]Malloc new data [00:12:32]Processing tag 1038 (040E) [00:12:32]Malloc new data [00:12:32]Processing tag 1077 (0435) [00:12:32]Malloc new data [00:12:32]SetTLVBufToDocument err=0 [00:12:32]KKMLoadAndSignOpenShiftData store KKM data [00:12:32]KKMLoadAndSignOpenShiftData err=0 [00:12:32]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Ормонова Д. Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 Место: АЗС № 133 "Партнер Нефть" 23.10.2024 00:12 Смена: 536 РНМ: 0000000000091685 ЗНМ: 0300000091 ФД: 228464 ФМ: 0000000000871839 ФПД: 150756934515116 [00:12:32]StoreToDocumentArchive [00:12:32]shift 536 fd 228464 [00:12:32]Create dir for shift 0536 [00:12:32]save to /storage/0536/doc_00228464 [00:12:32]save last doc name /storage/0536/doc_00228464 to /storage/kkm_last_doc_name [00:12:32]save OK [00:12:32]Clear old archive folders... [00:12:32]Remove dir /storage/0535 [00:12:32]opendir ok [00:12:32]file . [00:12:32]file .. [00:12:32]file doc_00228036 [00:12:32]remove file /storage/0535/doc_00228036 [00:12:32]file doc_00228037 [00:12:32]remove file /storage/0535/doc_00228037 [00:12:32]file doc_00228038 [00:12:32]remove file /storage/0535/doc_00228038 [00:12:32]file doc_00228039 [00:12:32]remove file /storage/0535/doc_00228039 [00:12:32]file doc_00228040 [00:12:32]remove file /storage/0535/doc_00228040 [00:12:32]file doc_00228041 [00:12:32]remove file /storage/0535/doc_00228041 [00:12:32]file doc_00228042 [00:12:32]remove file /storage/0535/doc_00228042 [00:12:32]file doc_00228043 [00:12:32]remove file /storage/0535/doc_00228043 [00:12:32]file doc_00228044 [00:12:32]remove file /storage/0535/doc_00228044 [00:12:32]file doc_00228045 [00:12:32]remove file /storage/0535/doc_00228045 [00:12:32]file doc_00228046 [00:12:32]remove file /storage/0535/doc_00228046 [00:12:32]file doc_00228047 [00:12:32]remove file /storage/0535/doc_00228047 [00:12:32]file doc_00228048 [00:12:32]remove file /storage/0535/doc_00228048 [00:12:32]file doc_00228049 [00:12:32]remove file /storage/0535/doc_00228049 [00:12:32]file doc_00228050 [00:12:32]remove file /storage/0535/doc_00228050 [00:12:32]file doc_00228051 [00:12:32]remove file /storage/0535/doc_00228051 [00:12:32]file doc_00228052 [00:12:32]remove file /storage/0535/doc_00228052 [00:12:32]file doc_00228053 [00:12:32]remove file /storage/0535/doc_00228053 [00:12:32]file doc_00228054 [00:12:32]remove file /storage/0535/doc_00228054 [00:12:32]file doc_00228055 [00:12:32]remove file /storage/0535/doc_00228055 [00:12:32]file doc_00228056 [00:12:32]remove file /storage/0535/doc_00228056 [00:12:32]file doc_00228057 [00:12:32]remove file /storage/0535/doc_00228057 [00:12:32]file doc_00228058 [00:12:32]remove file /storage/0535/doc_00228058 [00:12:32]file doc_00228059 [00:12:32]remove file /storage/0535/doc_00228059 [00:12:32]file doc_00228060 [00:12:32]remove file /storage/0535/doc_00228060 [00:12:32]file doc_00228061 [00:12:32]remove file /storage/0535/doc_00228061 [00:12:32]file doc_00228062 [00:12:32]remove file /storage/0535/doc_00228062 [00:12:32]file doc_00228063 [00:12:32]remove file /storage/0535/doc_00228063 [00:12:32]file doc_00228064 [00:12:32]remove file /storage/0535/doc_00228064 [00:12:32]file doc_00228065 [00:12:32]remove file /storage/0535/doc_00228065 [00:12:32]file doc_00228066 [00:12:32]remove file /storage/0535/doc_00228066 [00:12:32]file doc_00228067 [00:12:32]remove file /storage/0535/doc_00228067 [00:12:32]file doc_00228068 [00:12:32]remove file /storage/0535/doc_00228068 [00:12:32]file doc_00228069 [00:12:32]remove file /storage/0535/doc_00228069 [00:12:32]file doc_00228070 [00:12:32]remove file /storage/0535/doc_00228070 [00:12:32]file doc_00228071 [00:12:32]remove file /storage/0535/doc_00228071 [00:12:32]file doc_00228072 [00:12:32]remove file /storage/0535/doc_00228072 [00:12:32]file doc_00228073 [00:12:32]remove file /storage/0535/doc_00228073 [00:12:32]file doc_00228074 [00:12:32]remove file /storage/0535/doc_00228074 [00:12:32]file doc_00228075 [00:12:32]remove file /storage/0535/doc_00228075 [00:12:32]file doc_00228076 [00:12:32]remove file /storage/0535/doc_00228076 [00:12:32]file doc_00228077 [00:12:32]remove file /storage/0535/doc_00228077 [00:12:32]file doc_00228078 [00:12:32]remove file /storage/0535/doc_00228078 [00:12:32]file doc_00228079 [00:12:32]remove file /storage/0535/doc_00228079 [00:12:32]file doc_00228080 [00:12:32]remove file /storage/0535/doc_00228080 [00:12:32]file doc_00228081 [00:12:32]remove file /storage/0535/doc_00228081 [00:12:32]file doc_00228082 [00:12:32]remove file /storage/0535/doc_00228082 [00:12:32]file doc_00228083 [00:12:32]remove file /storage/0535/doc_00228083 [00:12:32]file doc_00228084 [00:12:32]remove file /storage/0535/doc_00228084 [00:12:32]file doc_00228085 [00:12:32]remove file /storage/0535/doc_00228085 [00:12:32]file doc_00228086 [00:12:32]remove file /storage/0535/doc_00228086 [00:12:32]file doc_00228087 [00:12:32]remove file /storage/0535/doc_00228087 [00:12:32]file doc_00228088 [00:12:32]remove file /storage/0535/doc_00228088 [00:12:32]file doc_00228089 [00:12:32]remove file /storage/0535/doc_00228089 [00:12:32]file doc_00228090 [00:12:32]remove file /storage/0535/doc_00228090 [00:12:32]file doc_00228091 [00:12:32]remove file /storage/0535/doc_00228091 [00:12:32]file doc_00228092 [00:12:32]remove file /storage/0535/doc_00228092 [00:12:32]file doc_00228093 [00:12:32]remove file /storage/0535/doc_00228093 [00:12:32]file doc_00228094 [00:12:32]remove file /storage/0535/doc_00228094 [00:12:32]file doc_00228095 [00:12:32]remove file /storage/0535/doc_00228095 [00:12:32]file doc_00228096 [00:12:32]remove file /storage/0535/doc_00228096 [00:12:32]file doc_00228097 [00:12:32]remove file /storage/0535/doc_00228097 [00:12:32]file doc_00228098 [00:12:32]remove file /storage/0535/doc_00228098 [00:12:32]file doc_00228099 [00:12:32]remove file /storage/0535/doc_00228099 [00:12:32]file doc_00228100 [00:12:32]remove file /storage/0535/doc_00228100 [00:12:32]file doc_00228101 [00:12:32]remove file /storage/0535/doc_00228101 [00:12:32]file doc_00228102 [00:12:32]remove file /storage/0535/doc_00228102 [00:12:32]file doc_00228103 [00:12:32]remove file /storage/0535/doc_00228103 [00:12:32]file doc_00228104 [00:12:32]remove file /storage/0535/doc_00228104 [00:12:32]file doc_00228105 [00:12:32]remove file /storage/0535/doc_00228105 [00:12:32]file doc_00228106 [00:12:32]remove file /storage/0535/doc_00228106 [00:12:32]file doc_00228107 [00:12:32]remove file /storage/0535/doc_00228107 [00:12:32]file doc_00228108 [00:12:32]remove file /storage/0535/doc_00228108 [00:12:32]file doc_00228109 [00:12:32]remove file /storage/0535/doc_00228109 [00:12:32]file doc_00228110 [00:12:32]remove file /storage/0535/doc_00228110 [00:12:32]file doc_00228111 [00:12:32]remove file /storage/0535/doc_00228111 [00:12:32]file doc_00228112 [00:12:32]remove file /storage/0535/doc_00228112 [00:12:32]file doc_00228113 [00:12:32]remove file /storage/0535/doc_00228113 [00:12:32]file doc_00228114 [00:12:32]remove file /storage/0535/doc_00228114 [00:12:32]file doc_00228115 [00:12:32]remove file /storage/0535/doc_00228115 [00:12:32]file doc_00228116 [00:12:32]remove file /storage/0535/doc_00228116 [00:12:32]file doc_00228117 [00:12:32]remove file /storage/0535/doc_00228117 [00:12:32]file doc_00228118 [00:12:32]remove file /storage/0535/doc_00228118 [00:12:32]file doc_00228119 [00:12:32]remove file /storage/0535/doc_00228119 [00:12:32]file doc_00228120 [00:12:32]remove file /storage/0535/doc_00228120 [00:12:32]file doc_00228121 [00:12:32]remove file /storage/0535/doc_00228121 [00:12:32]file doc_00228122 [00:12:32]remove file /storage/0535/doc_00228122 [00:12:32]file doc_00228123 [00:12:32]remove file /storage/0535/doc_00228123 [00:12:32]file doc_00228124 [00:12:32]remove file /storage/0535/doc_00228124 [00:12:32]file doc_00228125 [00:12:32]remove file /storage/0535/doc_00228125 [00:12:32]file doc_00228126 [00:12:32]remove file /storage/0535/doc_00228126 [00:12:32]file doc_00228127 [00:12:32]remove file /storage/0535/doc_00228127 [00:12:32]file doc_00228128 [00:12:32]remove file /storage/0535/doc_00228128 [00:12:32]file doc_00228129 [00:12:32]remove file /storage/0535/doc_00228129 [00:12:32]file doc_00228130 [00:12:33]remove file /storage/0535/doc_00228130 [00:12:33]file doc_00228131 [00:12:33]remove file /storage/0535/doc_00228131 [00:12:33]file doc_00228132 [00:12:33]remove file /storage/0535/doc_00228132 [00:12:33]file doc_00228133 [00:12:33]remove file /storage/0535/doc_00228133 [00:12:33]file doc_00228134 [00:12:33]remove file /storage/0535/doc_00228134 [00:12:33]file doc_00228135 [00:12:33]remove file /storage/0535/doc_00228135 [00:12:33]file doc_00228136 [00:12:33]remove file /storage/0535/doc_00228136 [00:12:33]file doc_00228137 [00:12:33]remove file /storage/0535/doc_00228137 [00:12:33]file doc_00228138 [00:12:33]remove file /storage/0535/doc_00228138 [00:12:33]file doc_00228139 [00:12:33]remove file /storage/0535/doc_00228139 [00:12:33]file doc_00228140 [00:12:33]remove file /storage/0535/doc_00228140 [00:12:33]file doc_00228141 [00:12:33]remove file /storage/0535/doc_00228141 [00:12:33]file doc_00228142 [00:12:33]remove file /storage/0535/doc_00228142 [00:12:33]file doc_00228143 [00:12:33]remove file /storage/0535/doc_00228143 [00:12:33]file doc_00228144 [00:12:33]remove file /storage/0535/doc_00228144 [00:12:33]file doc_00228145 [00:12:33]remove file /storage/0535/doc_00228145 [00:12:33]file doc_00228146 [00:12:33]remove file /storage/0535/doc_00228146 [00:12:33]file doc_00228147 [00:12:33]remove file /storage/0535/doc_00228147 [00:12:33]file doc_00228148 [00:12:33]remove file /storage/0535/doc_00228148 [00:12:33]file doc_00228149 [00:12:33]remove file /storage/0535/doc_00228149 [00:12:33]file doc_00228150 [00:12:33]remove file /storage/0535/doc_00228150 [00:12:33]file doc_00228151 [00:12:33]remove file /storage/0535/doc_00228151 [00:12:33]file doc_00228152 [00:12:33]remove file /storage/0535/doc_00228152 [00:12:33]file doc_00228153 [00:12:33]remove file /storage/0535/doc_00228153 [00:12:33]file doc_00228154 [00:12:33]remove file /storage/0535/doc_00228154 [00:12:33]file doc_00228155 [00:12:33]remove file /storage/0535/doc_00228155 [00:12:33]file doc_00228156 [00:12:33]remove file /storage/0535/doc_00228156 [00:12:33]file doc_00228157 [00:12:33]remove file /storage/0535/doc_00228157 [00:12:33]file doc_00228158 [00:12:33]remove file /storage/0535/doc_00228158 [00:12:33]file doc_00228159 [00:12:33]remove file /storage/0535/doc_00228159 [00:12:33]file doc_00228160 [00:12:33]remove file /storage/0535/doc_00228160 [00:12:33]file doc_00228161 [00:12:33]remove file /storage/0535/doc_00228161 [00:12:33]file doc_00228162 [00:12:33]remove file /storage/0535/doc_00228162 [00:12:33]file doc_00228163 [00:12:33]remove file /storage/0535/doc_00228163 [00:12:33]file doc_00228164 [00:12:33]remove file /storage/0535/doc_00228164 [00:12:33]file doc_00228165 [00:12:33]remove file /storage/0535/doc_00228165 [00:12:33]file doc_00228166 [00:12:33]remove file /storage/0535/doc_00228166 [00:12:33]file doc_00228167 [00:12:33]remove file /storage/0535/doc_00228167 [00:12:33]file doc_00228168 [00:12:33]remove file /storage/0535/doc_00228168 [00:12:33]file doc_00228169 [00:12:33]remove file /storage/0535/doc_00228169 [00:12:33]file doc_00228170 [00:12:33]remove file /storage/0535/doc_00228170 [00:12:33]file doc_00228171 [00:12:33]remove file /storage/0535/doc_00228171 [00:12:33]file doc_00228172 [00:12:33]remove file /storage/0535/doc_00228172 [00:12:33]file doc_00228173 [00:12:33]remove file /storage/0535/doc_00228173 [00:12:33]file doc_00228174 [00:12:33]remove file /storage/0535/doc_00228174 [00:12:33]file doc_00228175 [00:12:33]remove file /storage/0535/doc_00228175 [00:12:33]file doc_00228176 [00:12:33]remove file /storage/0535/doc_00228176 [00:12:33]file doc_00228177 [00:12:33]remove file /storage/0535/doc_00228177 [00:12:33]file doc_00228178 [00:12:33]remove file /storage/0535/doc_00228178 [00:12:33]file doc_00228179 [00:12:33]remove file /storage/0535/doc_00228179 [00:12:33]file doc_00228180 [00:12:33]remove file /storage/0535/doc_00228180 [00:12:33]file doc_00228181 [00:12:33]remove file /storage/0535/doc_00228181 [00:12:33]file doc_00228182 [00:12:33]remove file /storage/0535/doc_00228182 [00:12:33]file doc_00228183 [00:12:33]remove file /storage/0535/doc_00228183 [00:12:33]file doc_00228184 [00:12:33]remove file /storage/0535/doc_00228184 [00:12:33]file doc_00228185 [00:12:33]remove file /storage/0535/doc_00228185 [00:12:33]file doc_00228186 [00:12:33]remove file /storage/0535/doc_00228186 [00:12:33]file doc_00228187 [00:12:33]remove file /storage/0535/doc_00228187 [00:12:33]file doc_00228188 [00:12:33]remove file /storage/0535/doc_00228188 [00:12:33]file doc_00228189 [00:12:33]remove file /storage/0535/doc_00228189 [00:12:33]file doc_00228190 [00:12:33]remove file /storage/0535/doc_00228190 [00:12:33]file doc_00228191 [00:12:33]remove file /storage/0535/doc_00228191 [00:12:33]file doc_00228192 [00:12:33]remove file /storage/0535/doc_00228192 [00:12:33]file doc_00228193 [00:12:33]remove file /storage/0535/doc_00228193 [00:12:33]file doc_00228194 [00:12:33]remove file /storage/0535/doc_00228194 [00:12:33]file doc_00228195 [00:12:33]remove file /storage/0535/doc_00228195 [00:12:33]file doc_00228196 [00:12:33]remove file /storage/0535/doc_00228196 [00:12:33]file doc_00228197 [00:12:33]remove file /storage/0535/doc_00228197 [00:12:33]file doc_00228198 [00:12:33]remove file /storage/0535/doc_00228198 [00:12:33]file doc_00228199 [00:12:33]remove file /storage/0535/doc_00228199 [00:12:33]file doc_00228200 [00:12:33]remove file /storage/0535/doc_00228200 [00:12:33]file doc_00228201 [00:12:33]remove file /storage/0535/doc_00228201 [00:12:33]file doc_00228202 [00:12:33]remove file /storage/0535/doc_00228202 [00:12:33]file doc_00228203 [00:12:33]remove file /storage/0535/doc_00228203 [00:12:33]file doc_00228204 [00:12:33]remove file /storage/0535/doc_00228204 [00:12:33]file doc_00228205 [00:12:33]remove file /storage/0535/doc_00228205 [00:12:33]file doc_00228206 [00:12:33]remove file /storage/0535/doc_00228206 [00:12:33]file doc_00228207 [00:12:33]remove file /storage/0535/doc_00228207 [00:12:33]file doc_00228208 [00:12:33]remove file /storage/0535/doc_00228208 [00:12:33]file doc_00228209 [00:12:33]remove file /storage/0535/doc_00228209 [00:12:33]file doc_00228210 [00:12:33]remove file /storage/0535/doc_00228210 [00:12:33]file doc_00228211 [00:12:33]remove file /storage/0535/doc_00228211 [00:12:33]file doc_00228212 [00:12:33]remove file /storage/0535/doc_00228212 [00:12:33]file doc_00228213 [00:12:33]remove file /storage/0535/doc_00228213 [00:12:33]file doc_00228214 [00:12:33]remove file /storage/0535/doc_00228214 [00:12:33]file doc_00228215 [00:12:33]remove file /storage/0535/doc_00228215 [00:12:33]file doc_00228216 [00:12:33]remove file /storage/0535/doc_00228216 [00:12:33]file doc_00228217 [00:12:33]remove file /storage/0535/doc_00228217 [00:12:33]file doc_00228218 [00:12:33]remove file /storage/0535/doc_00228218 [00:12:33]file doc_00228219 [00:12:33]remove file /storage/0535/doc_00228219 [00:12:33]file doc_00228220 [00:12:33]remove file /storage/0535/doc_00228220 [00:12:33]file doc_00228221 [00:12:33]remove file /storage/0535/doc_00228221 [00:12:33]file doc_00228222 [00:12:33]remove file /storage/0535/doc_00228222 [00:12:33]file doc_00228223 [00:12:33]remove file /storage/0535/doc_00228223 [00:12:33]file doc_00228224 [00:12:33]remove file /storage/0535/doc_00228224 [00:12:33]file doc_00228225 [00:12:33]remove file /storage/0535/doc_00228225 [00:12:33]file doc_00228226 [00:12:33]remove file /storage/0535/doc_00228226 [00:12:33]file doc_00228227 [00:12:33]remove file /storage/0535/doc_00228227 [00:12:33]file doc_00228228 [00:12:33]remove file /storage/0535/doc_00228228 [00:12:33]file doc_00228229 [00:12:33]remove file /storage/0535/doc_00228229 [00:12:33]file doc_00228230 [00:12:33]remove file /storage/0535/doc_00228230 [00:12:33]file doc_00228231 [00:12:33]remove file /storage/0535/doc_00228231 [00:12:33]file doc_00228232 [00:12:33]remove file /storage/0535/doc_00228232 [00:12:33]file doc_00228233 [00:12:33]remove file /storage/0535/doc_00228233 [00:12:33]file doc_00228234 [00:12:33]remove file /storage/0535/doc_00228234 [00:12:33]file doc_00228235 [00:12:33]remove file /storage/0535/doc_00228235 [00:12:33]file doc_00228236 [00:12:33]remove file /storage/0535/doc_00228236 [00:12:33]file doc_00228237 [00:12:33]remove file /storage/0535/doc_00228237 [00:12:33]file doc_00228238 [00:12:33]remove file /storage/0535/doc_00228238 [00:12:33]file doc_00228239 [00:12:33]remove file /storage/0535/doc_00228239 [00:12:33]file doc_00228240 [00:12:33]remove file /storage/0535/doc_00228240 [00:12:33]file doc_00228241 [00:12:33]remove file /storage/0535/doc_00228241 [00:12:33]file doc_00228242 [00:12:33]remove file /storage/0535/doc_00228242 [00:12:33]file doc_00228243 [00:12:33]remove file /storage/0535/doc_00228243 [00:12:33]file doc_00228244 [00:12:33]remove file /storage/0535/doc_00228244 [00:12:33]file doc_00228245 [00:12:33]remove file /storage/0535/doc_00228245 [00:12:33]file doc_00228246 [00:12:33]remove file /storage/0535/doc_00228246 [00:12:33]file doc_00228247 [00:12:33]remove file /storage/0535/doc_00228247 [00:12:33]file doc_00228248 [00:12:33]remove file /storage/0535/doc_00228248 [00:12:33]file doc_00228249 [00:12:33]remove file /storage/0535/doc_00228249 [00:12:33]file doc_00228250 [00:12:33]remove file /storage/0535/doc_00228250 [00:12:33]file doc_00228251 [00:12:33]remove file /storage/0535/doc_00228251 [00:12:33]file doc_00228252 [00:12:33]remove file /storage/0535/doc_00228252 [00:12:33]file doc_00228253 [00:12:33]remove file /storage/0535/doc_00228253 [00:12:33]file doc_00228254 [00:12:33]remove file /storage/0535/doc_00228254 [00:12:33]file doc_00228255 [00:12:33]remove file /storage/0535/doc_00228255 [00:12:33]file doc_00228256 [00:12:33]remove file /storage/0535/doc_00228256 [00:12:33]file doc_00228257 [00:12:33]remove file /storage/0535/doc_00228257 [00:12:33]file doc_00228258 [00:12:33]remove file /storage/0535/doc_00228258 [00:12:33]file doc_00228259 [00:12:33]remove file /storage/0535/doc_00228259 [00:12:33]file doc_00228260 [00:12:33]remove file /storage/0535/doc_00228260 [00:12:33]file doc_00228261 [00:12:33]remove file /storage/0535/doc_00228261 [00:12:33]file doc_00228262 [00:12:33]remove file /storage/0535/doc_00228262 [00:12:33]file doc_00228263 [00:12:33]remove file /storage/0535/doc_00228263 [00:12:33]file doc_00228264 [00:12:33]remove file /storage/0535/doc_00228264 [00:12:33]file doc_00228265 [00:12:33]remove file /storage/0535/doc_00228265 [00:12:33]file doc_00228266 [00:12:33]remove file /storage/0535/doc_00228266 [00:12:33]file doc_00228267 [00:12:33]remove file /storage/0535/doc_00228267 [00:12:33]file doc_00228268 [00:12:33]remove file /storage/0535/doc_00228268 [00:12:33]file doc_00228269 [00:12:33]remove file /storage/0535/doc_00228269 [00:12:33]file doc_00228270 [00:12:33]remove file /storage/0535/doc_00228270 [00:12:33]file doc_00228271 [00:12:33]remove file /storage/0535/doc_00228271 [00:12:33]file doc_00228272 [00:12:33]remove file /storage/0535/doc_00228272 [00:12:33]file doc_00228273 [00:12:33]remove file /storage/0535/doc_00228273 [00:12:33]file doc_00228274 [00:12:33]remove file /storage/0535/doc_00228274 [00:12:33]file doc_00228275 [00:12:33]remove file /storage/0535/doc_00228275 [00:12:33]file doc_00228276 [00:12:33]remove file /storage/0535/doc_00228276 [00:12:33]file doc_00228277 [00:12:33]remove file /storage/0535/doc_00228277 [00:12:33]file doc_00228278 [00:12:33]remove file /storage/0535/doc_00228278 [00:12:33]file doc_00228279 [00:12:33]remove file /storage/0535/doc_00228279 [00:12:33]file doc_00228280 [00:12:33]remove file /storage/0535/doc_00228280 [00:12:33]file doc_00228281 [00:12:33]remove file /storage/0535/doc_00228281 [00:12:33]file doc_00228282 [00:12:33]remove file /storage/0535/doc_00228282 [00:12:33]file doc_00228283 [00:12:33]remove file /storage/0535/doc_00228283 [00:12:33]file doc_00228284 [00:12:33]remove file /storage/0535/doc_00228284 [00:12:33]file doc_00228285 [00:12:33]remove file /storage/0535/doc_00228285 [00:12:33]file doc_00228286 [00:12:33]remove file /storage/0535/doc_00228286 [00:12:33]file doc_00228287 [00:12:33]remove file /storage/0535/doc_00228287 [00:12:33]file doc_00228288 [00:12:33]remove file /storage/0535/doc_00228288 [00:12:33]file doc_00228289 [00:12:33]remove file /storage/0535/doc_00228289 [00:12:33]file doc_00228290 [00:12:33]remove file /storage/0535/doc_00228290 [00:12:33]file doc_00228291 [00:12:33]remove file /storage/0535/doc_00228291 [00:12:33]file doc_00228292 [00:12:33]remove file /storage/0535/doc_00228292 [00:12:33]file doc_00228293 [00:12:33]remove file /storage/0535/doc_00228293 [00:12:33]file doc_00228294 [00:12:34]remove file /storage/0535/doc_00228294 [00:12:34]file doc_00228295 [00:12:34]remove file /storage/0535/doc_00228295 [00:12:34]file doc_00228296 [00:12:34]remove file /storage/0535/doc_00228296 [00:12:34]file doc_00228297 [00:12:34]remove file /storage/0535/doc_00228297 [00:12:34]file doc_00228298 [00:12:34]remove file /storage/0535/doc_00228298 [00:12:34]file doc_00228299 [00:12:34]remove file /storage/0535/doc_00228299 [00:12:34]file doc_00228300 [00:12:34]remove file /storage/0535/doc_00228300 [00:12:34]file doc_00228301 [00:12:34]remove file /storage/0535/doc_00228301 [00:12:34]file doc_00228302 [00:12:34]remove file /storage/0535/doc_00228302 [00:12:34]file doc_00228303 [00:12:34]remove file /storage/0535/doc_00228303 [00:12:34]file doc_00228304 [00:12:34]remove file /storage/0535/doc_00228304 [00:12:34]file doc_00228305 [00:12:34]remove file /storage/0535/doc_00228305 [00:12:34]file doc_00228306 [00:12:34]remove file /storage/0535/doc_00228306 [00:12:34]file doc_00228307 [00:12:34]remove file /storage/0535/doc_00228307 [00:12:34]file doc_00228308 [00:12:34]remove file /storage/0535/doc_00228308 [00:12:34]file doc_00228309 [00:12:34]remove file /storage/0535/doc_00228309 [00:12:34]file doc_00228310 [00:12:34]remove file /storage/0535/doc_00228310 [00:12:34]file doc_00228311 [00:12:34]remove file /storage/0535/doc_00228311 [00:12:34]file doc_00228312 [00:12:34]remove file /storage/0535/doc_00228312 [00:12:34]file doc_00228313 [00:12:34]remove file /storage/0535/doc_00228313 [00:12:34]file doc_00228314 [00:12:34]remove file /storage/0535/doc_00228314 [00:12:34]file doc_00228315 [00:12:34]remove file /storage/0535/doc_00228315 [00:12:34]file doc_00228316 [00:12:34]remove file /storage/0535/doc_00228316 [00:12:34]file doc_00228317 [00:12:34]remove file /storage/0535/doc_00228317 [00:12:34]file doc_00228318 [00:12:34]remove file /storage/0535/doc_00228318 [00:12:34]file doc_00228319 [00:12:34]remove file /storage/0535/doc_00228319 [00:12:34]file doc_00228320 [00:12:34]remove file /storage/0535/doc_00228320 [00:12:34]file doc_00228321 [00:12:34]remove file /storage/0535/doc_00228321 [00:12:34]file doc_00228322 [00:12:34]remove file /storage/0535/doc_00228322 [00:12:34]file doc_00228323 [00:12:34]remove file /storage/0535/doc_00228323 [00:12:34]file doc_00228324 [00:12:34]remove file /storage/0535/doc_00228324 [00:12:34]file doc_00228325 [00:12:34]remove file /storage/0535/doc_00228325 [00:12:34]file doc_00228326 [00:12:34]remove file /storage/0535/doc_00228326 [00:12:34]file doc_00228327 [00:12:34]remove file /storage/0535/doc_00228327 [00:12:34]file doc_00228328 [00:12:34]remove file /storage/0535/doc_00228328 [00:12:34]file doc_00228329 [00:12:34]remove file /storage/0535/doc_00228329 [00:12:34]file doc_00228330 [00:12:34]remove file /storage/0535/doc_00228330 [00:12:34]file doc_00228331 [00:12:34]remove file /storage/0535/doc_00228331 [00:12:34]file doc_00228332 [00:12:34]remove file /storage/0535/doc_00228332 [00:12:34]file doc_00228333 [00:12:34]remove file /storage/0535/doc_00228333 [00:12:34]file doc_00228334 [00:12:34]remove file /storage/0535/doc_00228334 [00:12:34]file doc_00228335 [00:12:34]remove file /storage/0535/doc_00228335 [00:12:34]file doc_00228336 [00:12:34]remove file /storage/0535/doc_00228336 [00:12:34]file doc_00228337 [00:12:34]remove file /storage/0535/doc_00228337 [00:12:34]file doc_00228338 [00:12:34]remove file /storage/0535/doc_00228338 [00:12:34]file doc_00228339 [00:12:34]remove file /storage/0535/doc_00228339 [00:12:34]file doc_00228340 [00:12:34]remove file /storage/0535/doc_00228340 [00:12:34]file doc_00228341 [00:12:34]remove file /storage/0535/doc_00228341 [00:12:34]file doc_00228342 [00:12:34]remove file /storage/0535/doc_00228342 [00:12:34]file doc_00228343 [00:12:34]remove file /storage/0535/doc_00228343 [00:12:34]file doc_00228344 [00:12:34]remove file /storage/0535/doc_00228344 [00:12:34]file doc_00228345 [00:12:34]remove file /storage/0535/doc_00228345 [00:12:34]file doc_00228346 [00:12:34]remove file /storage/0535/doc_00228346 [00:12:34]file doc_00228347 [00:12:34]remove file /storage/0535/doc_00228347 [00:12:34]file doc_00228348 [00:12:34]remove file /storage/0535/doc_00228348 [00:12:34]file doc_00228349 [00:12:34]remove file /storage/0535/doc_00228349 [00:12:34]file doc_00228350 [00:12:34]remove file /storage/0535/doc_00228350 [00:12:34]file doc_00228351 [00:12:34]remove file /storage/0535/doc_00228351 [00:12:34]file doc_00228352 [00:12:34]remove file /storage/0535/doc_00228352 [00:12:34]file doc_00228353 [00:12:34]remove file /storage/0535/doc_00228353 [00:12:34]file doc_00228354 [00:12:34]remove file /storage/0535/doc_00228354 [00:12:34]file doc_00228355 [00:12:34]remove file /storage/0535/doc_00228355 [00:12:34]file doc_00228356 [00:12:34]remove file /storage/0535/doc_00228356 [00:12:34]file doc_00228357 [00:12:34]remove file /storage/0535/doc_00228357 [00:12:34]file doc_00228358 [00:12:34]remove file /storage/0535/doc_00228358 [00:12:34]file doc_00228359 [00:12:34]remove file /storage/0535/doc_00228359 [00:12:34]file doc_00228360 [00:12:34]remove file /storage/0535/doc_00228360 [00:12:34]file doc_00228361 [00:12:34]remove file /storage/0535/doc_00228361 [00:12:34]file doc_00228362 [00:12:34]remove file /storage/0535/doc_00228362 [00:12:34]file doc_00228363 [00:12:34]remove file /storage/0535/doc_00228363 [00:12:34]file doc_00228364 [00:12:34]remove file /storage/0535/doc_00228364 [00:12:34]file doc_00228365 [00:12:34]remove file /storage/0535/doc_00228365 [00:12:34]file doc_00228366 [00:12:34]remove file /storage/0535/doc_00228366 [00:12:34]file doc_00228367 [00:12:34]remove file /storage/0535/doc_00228367 [00:12:34]file doc_00228368 [00:12:34]remove file /storage/0535/doc_00228368 [00:12:34]file doc_00228369 [00:12:34]remove file /storage/0535/doc_00228369 [00:12:34]file doc_00228370 [00:12:34]remove file /storage/0535/doc_00228370 [00:12:34]file doc_00228371 [00:12:34]remove file /storage/0535/doc_00228371 [00:12:34]file doc_00228372 [00:12:34]remove file /storage/0535/doc_00228372 [00:12:34]file doc_00228373 [00:12:34]remove file /storage/0535/doc_00228373 [00:12:34]file doc_00228374 [00:12:34]remove file /storage/0535/doc_00228374 [00:12:34]file doc_00228375 [00:12:34]remove file /storage/0535/doc_00228375 [00:12:34]file doc_00228376 [00:12:34]remove file /storage/0535/doc_00228376 [00:12:34]file doc_00228377 [00:12:34]remove file /storage/0535/doc_00228377 [00:12:34]file doc_00228378 [00:12:34]remove file /storage/0535/doc_00228378 [00:12:34]file doc_00228379 [00:12:34]remove file /storage/0535/doc_00228379 [00:12:34]file doc_00228380 [00:12:34]remove file /storage/0535/doc_00228380 [00:12:34]file doc_00228381 [00:12:34]remove file /storage/0535/doc_00228381 [00:12:34]file doc_00228382 [00:12:34]remove file /storage/0535/doc_00228382 [00:12:34]file doc_00228383 [00:12:34]remove file /storage/0535/doc_00228383 [00:12:34]file doc_00228384 [00:12:34]remove file /storage/0535/doc_00228384 [00:12:34]file doc_00228385 [00:12:34]remove file /storage/0535/doc_00228385 [00:12:34]file doc_00228386 [00:12:34]remove file /storage/0535/doc_00228386 [00:12:34]file doc_00228387 [00:12:34]remove file /storage/0535/doc_00228387 [00:12:34]file doc_00228388 [00:12:34]remove file /storage/0535/doc_00228388 [00:12:34]file doc_00228389 [00:12:34]remove file /storage/0535/doc_00228389 [00:12:34]file doc_00228390 [00:12:34]remove file /storage/0535/doc_00228390 [00:12:34]file doc_00228391 [00:12:34]remove file /storage/0535/doc_00228391 [00:12:34]file doc_00228392 [00:12:34]remove file /storage/0535/doc_00228392 [00:12:34]file doc_00228393 [00:12:34]remove file /storage/0535/doc_00228393 [00:12:34]file doc_00228394 [00:12:34]remove file /storage/0535/doc_00228394 [00:12:34]file doc_00228395 [00:12:34]remove file /storage/0535/doc_00228395 [00:12:34]file doc_00228396 [00:12:34]remove file /storage/0535/doc_00228396 [00:12:34]file doc_00228397 [00:12:34]remove file /storage/0535/doc_00228397 [00:12:34]file doc_00228398 [00:12:34]remove file /storage/0535/doc_00228398 [00:12:34]file doc_00228399 [00:12:34]remove file /storage/0535/doc_00228399 [00:12:34]file doc_00228400 [00:12:34]remove file /storage/0535/doc_00228400 [00:12:34]file doc_00228401 [00:12:34]remove file /storage/0535/doc_00228401 [00:12:34]file doc_00228402 [00:12:34]remove file /storage/0535/doc_00228402 [00:12:34]file doc_00228403 [00:12:34]remove file /storage/0535/doc_00228403 [00:12:34]file doc_00228404 [00:12:34]remove file /storage/0535/doc_00228404 [00:12:34]file doc_00228405 [00:12:34]remove file /storage/0535/doc_00228405 [00:12:34]file doc_00228406 [00:12:34]remove file /storage/0535/doc_00228406 [00:12:34]file doc_00228407 [00:12:34]remove file /storage/0535/doc_00228407 [00:12:34]file doc_00228408 [00:12:34]remove file /storage/0535/doc_00228408 [00:12:34]file doc_00228409 [00:12:34]remove file /storage/0535/doc_00228409 [00:12:34]file doc_00228410 [00:12:34]remove file /storage/0535/doc_00228410 [00:12:34]file doc_00228411 [00:12:34]remove file /storage/0535/doc_00228411 [00:12:34]file doc_00228412 [00:12:34]remove file /storage/0535/doc_00228412 [00:12:34]file doc_00228413 [00:12:34]remove file /storage/0535/doc_00228413 [00:12:34]file doc_00228414 [00:12:34]remove file /storage/0535/doc_00228414 [00:12:34]file doc_00228415 [00:12:34]remove file /storage/0535/doc_00228415 [00:12:34]file doc_00228416 [00:12:34]remove file /storage/0535/doc_00228416 [00:12:34]file doc_00228417 [00:12:34]remove file /storage/0535/doc_00228417 [00:12:34]file doc_00228418 [00:12:34]remove file /storage/0535/doc_00228418 [00:12:34]file doc_00228419 [00:12:34]remove file /storage/0535/doc_00228419 [00:12:34]file doc_00228420 [00:12:34]remove file /storage/0535/doc_00228420 [00:12:34]file doc_00228421 [00:12:34]remove file /storage/0535/doc_00228421 [00:12:34]file doc_00228422 [00:12:34]remove file /storage/0535/doc_00228422 [00:12:34]file doc_00228423 [00:12:34]remove file /storage/0535/doc_00228423 [00:12:34]file doc_00228424 [00:12:34]remove file /storage/0535/doc_00228424 [00:12:34]file doc_00228425 [00:12:34]remove file /storage/0535/doc_00228425 [00:12:34]file doc_00228426 [00:12:34]remove file /storage/0535/doc_00228426 [00:12:34]file doc_00228427 [00:12:34]remove file /storage/0535/doc_00228427 [00:12:34]file doc_00228428 [00:12:34]remove file /storage/0535/doc_00228428 [00:12:34]file doc_00228429 [00:12:34]remove file /storage/0535/doc_00228429 [00:12:34]file doc_00228430 [00:12:34]remove file /storage/0535/doc_00228430 [00:12:34]file doc_00228431 [00:12:34]remove file /storage/0535/doc_00228431 [00:12:34]file doc_00228432 [00:12:34]remove file /storage/0535/doc_00228432 [00:12:34]file doc_00228433 [00:12:34]remove file /storage/0535/doc_00228433 [00:12:34]file doc_00228434 [00:12:34]remove file /storage/0535/doc_00228434 [00:12:34]file doc_00228435 [00:12:34]remove file /storage/0535/doc_00228435 [00:12:34]file doc_00228436 [00:12:34]remove file /storage/0535/doc_00228436 [00:12:34]file doc_00228437 [00:12:34]remove file /storage/0535/doc_00228437 [00:12:34]file doc_00228438 [00:12:34]remove file /storage/0535/doc_00228438 [00:12:34]file doc_00228439 [00:12:34]remove file /storage/0535/doc_00228439 [00:12:34]file doc_00228440 [00:12:34]remove file /storage/0535/doc_00228440 [00:12:34]file doc_00228441 [00:12:34]remove file /storage/0535/doc_00228441 [00:12:34]file doc_00228442 [00:12:34]remove file /storage/0535/doc_00228442 [00:12:34]file doc_00228443 [00:12:34]remove file /storage/0535/doc_00228443 [00:12:34]file doc_00228444 [00:12:34]remove file /storage/0535/doc_00228444 [00:12:34]file doc_00228445 [00:12:34]remove file /storage/0535/doc_00228445 [00:12:34]file doc_00228446 [00:12:34]remove file /storage/0535/doc_00228446 [00:12:34]file doc_00228447 [00:12:34]remove file /storage/0535/doc_00228447 [00:12:34]file doc_00228448 [00:12:34]remove file /storage/0535/doc_00228448 [00:12:34]file doc_00228449 [00:12:34]remove file /storage/0535/doc_00228449 [00:12:34]file doc_00228450 [00:12:34]remove file /storage/0535/doc_00228450 [00:12:34]file doc_00228451 [00:12:34]remove file /storage/0535/doc_00228451 [00:12:34]file doc_00228452 [00:12:34]remove file /storage/0535/doc_00228452 [00:12:34]file doc_00228453 [00:12:34]remove file /storage/0535/doc_00228453 [00:12:34]file doc_00228454 [00:12:34]remove file /storage/0535/doc_00228454 [00:12:34]file doc_00228455 [00:12:34]remove file /storage/0535/doc_00228455 [00:12:34]file doc_00228456 [00:12:34]remove file /storage/0535/doc_00228456 [00:12:34]file doc_00228457 [00:12:34]remove file /storage/0535/doc_00228457 [00:12:34]file doc_00228458 [00:12:34]remove file /storage/0535/doc_00228458 [00:12:34]file doc_00228459 [00:12:34]remove file /storage/0535/doc_00228459 [00:12:34]file doc_00228460 [00:12:34]remove file /storage/0535/doc_00228460 [00:12:34]file doc_00228461 [00:12:34]remove file /storage/0535/doc_00228461 [00:12:34]file doc_00228462 [00:12:34]remove file /storage/0535/doc_00228462 [00:12:34]file doc_00228463 [00:12:34]remove file /storage/0535/doc_00228463 [00:12:34]remove dir /storage/0535 [00:12:34]ProcessDocumentItem done err = 0, tmpTLVsize=237 [00:12:34]tlvbuf is 002EBD40 [00:12:34]SAM_PROTO_ClearQueue [00:12:34]wFMCommunicate request_size=4 [00:12:34]MH_SAM_APDU [00:12:34]CAPDU: 80 09 00 00 [00:12:34]Write to MH i2c: E2 08 00 EE 0C 80 09 00 00 00 00 00 00 6C [00:12:34]Write i2c OK [00:12:34]MH_I2C_Read... [00:12:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:12:34]Read from MH i2c: E2 [00:12:34]MH_I2C_Read... [00:12:34]Read from MH i2c: E2 03 00 [00:12:34]MH_I2C_Read... [00:12:34]Read from MH i2c: E2 03 00 EE 0C 00 90 00 6E [00:12:34]RAPDU: 90 00 [00:12:34]wFMCommunicate OK [00:12:34]SAM_PROTO_ClearQueue done [00:12:34]KKMCreateOFDPacket [00:12:34]OFDProtocolAddRootSTLVToBuf [00:12:34]FM_MakeSignedData [00:12:34]FM_MakeSignedData [00:12:34]SAM_PROTO_SignData [00:12:34]wFMCommunicate request_size=4 [00:12:34]MH_SAM_APDU [00:12:34]CAPDU: 80 0D 01 02 [00:12:34]Write to MH i2c: E2 08 00 EF 0C 80 0D 01 02 00 00 00 00 74 [00:12:34]Write i2c OK [00:12:34]MH_I2C_Read... [00:12:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:12:34]Read from MH i2c: E2 [00:12:34]MH_I2C_Read... [00:12:34]Read from MH i2c: E2 03 00 [00:12:34]MH_I2C_Read... [00:12:35]Read from MH i2c: E2 03 00 EF 0C 00 90 00 6F [00:12:35]RAPDU: 90 00 [00:12:35]wFMCommunicate OK [00:12:35]wFMCommunicate request_size=246 [00:12:35]MH_SAM_APDU [00:12:35]CAPDU: 80 0D 02 02 F1 02 00 ED 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9E D1 80 D0 BC D0 BE D0 BD D0 BE D0 B2 D0 B0 20 D0 94 2E 20 F1 03 41 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D1 81 D1 8B 2C 20 D1 83 D0 BB 2E 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B0 20 35 30 2C 20 34 31 2E 30 36 34 36 37 33 2C 20 37 32 2E 36 34 39 31 36 31 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 33 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 70 3F 18 67 0E 04 04 00 18 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 70 7C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 35 04 06 00 89 1C D5 87 79 AC [00:12:35]Write to MH i2c: E2 F9 00 F0 0C 80 0D 02 02 F1 00 02 00 ED 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9E D1 80 D0 BC D0 BE D0 BD D0 BE D0 B2 D0 B0 20 D0 94 2E 20 F1 03 41 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D1 81 D1 8B 2C 20 D1 83 D0 BB 2E 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B0 20 35 30 2C 20 34 31 2E 30 36 34 36 37 33 2C 20 37 32 2E 36 34 39 31 36 31 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 33 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 70 3F 18 67 0E 04 04 00 18 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 70 7C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 35 04 06 00 89 1C D5 87 79 AC 00 00 79 [00:12:35]Write i2c OK [00:12:35]MH_I2C_Read... [00:12:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:35]Read from MH i2c: E2 [00:12:35]MH_I2C_Read... [00:12:35]Read from MH i2c: E2 03 00 [00:12:35]MH_I2C_Read... [00:12:35]Read from MH i2c: E2 03 00 F0 0C 00 90 00 70 [00:12:35]RAPDU: 90 00 [00:12:35]wFMCommunicate OK [00:12:35]wFMCommunicate request_size=4 [00:12:35]MH_SAM_APDU [00:12:35]CAPDU: 80 0D 03 02 [00:12:35]Write to MH i2c: E2 08 00 F1 0C 80 0D 03 02 00 00 00 00 78 [00:12:35]Write i2c OK [00:12:35]MH_I2C_Read... [00:12:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:12:35]Read from MH i2c: E2 [00:12:35]MH_I2C_Read... [00:12:35]Read from MH i2c: E2 0B 00 [00:12:35]MH_I2C_Read... [00:12:35]Read from MH i2c: E2 0B 00 F1 0C 00 E8 8A 7C 7F 1A F6 9A 7C 90 00 0C [00:12:35]RAPDU: E8 8A 7C 7F 1A F6 9A 7C 90 00 [00:12:35]wFMCommunicate OK [00:12:35]SAM_PROTO_SignData done [00:12:35]FM_MakeSignedData done [00:12:35]CreateOFDProtocolMessage [00:12:35]wFMCommunicate request_size=4 [00:12:35]MH_SAM_APDU [00:12:35]CAPDU: 80 11 00 00 [00:12:35]Write to MH i2c: E2 08 00 F2 0C 80 11 00 00 00 00 00 00 78 [00:12:35]Write i2c OK [00:12:35]MH_I2C_Read... [00:12:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:35]Read from MH i2c: E2 [00:12:35]MH_I2C_Read... [00:12:35]Read from MH i2c: E2 17 00 [00:12:35]MH_I2C_Read... [00:12:35]Read from MH i2c: E2 17 00 F2 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CF [00:12:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:12:35]wFMCommunicate OK [00:12:35]CreateOFDProtocolMessage done [00:12:35]OFDSenderStorePacket 228464 [00:12:35]StoreOFDPacket docnum=228464 [00:12:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 01 01 00 00 3A BF F9 00 19 79 5A 02 01 00 02 00 ED 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9E D1 80 D0 BC D0 BE D0 BD D0 BE D0 B2 D0 B0 20 D0 94 2E 20 F1 03 41 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D1 81 D1 8B 2C 20 D1 83 D0 BB 2E 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B0 20 35 30 2C 20 34 31 2E 30 36 34 36 37 33 2C 20 37 32 2E 36 34 39 31 36 31 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 33 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 70 3F 18 67 0E 04 04 00 18 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 70 7C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 35 04 06 00 89 1C D5 87 79 AC E8 8A 7C 7F 1A F6 9A 7C [00:12:35]CheckFolder [00:12:35]dirname=/storage/ofd_packets [00:12:35]CheckFolder done [00:12:35]ProducePacketName [00:12:35]name=ofd_packets/00228464 [00:12:35]NVStorageSaveData ofd_packets/00228464 [00:12:35]File name is /storage/ofd_packets/00228464 [00:12:35]Write 287 bytes [00:12:35]NVStorageSaveData done [00:12:35]OFDSenderStorePacket done [00:12:35]KKMCreateOFDPacket done [00:12:35]NVStorageSaveData kkm_last_timestamp [00:12:35]File name is /storage/kkm_last_timestamp [00:12:35]Write 4 bytes [00:12:35]NVStorageSaveData done [00:12:35]ExternCall_PrintAddStr [00:12:35]wPrintStart [00:12:35]Write to MH i2c: 01 00 00 F3 0C FF [00:12:35]Write i2c OK [00:12:35]MH_I2C_Read... [00:12:35]Read from MH i2c: 01 [00:12:35]MH_I2C_Read... [00:12:35]Read from MH i2c: 01 07 00 [00:12:35]MH_I2C_Read... [00:12:35]Read from MH i2c: 01 07 00 F3 0C 00 00 00 00 00 FF 0F 14 [00:12:35]RasterBufferAndPrint [00:12:35]line Отчет об открытии смены [00:12:35]line ФФД: 1.0 [00:12:35]line ИНН: 02508201610067 [00:12:35]line Кассир: Ормонова Д. [00:12:35]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [00:12:35]line Место: АЗС № 133 "Партнер Нефть" [00:12:35]line 23.10.2024 00:12 [00:12:35]line Смена: 536 [00:12:35]line РНМ: 0000000000091685 [00:12:35]line ЗНМ: 0300000091 [00:12:35]line ФД: 228464 [00:12:35]line ФМ: 0000000000871839 [00:12:35]line ФПД: 150756934515116 [00:12:35]written 0, free lines is 4095 [00:12:35]OFD Sender: Processing packet 228464 [packets to send 38, broken 37] [00:12:35]ProducePacketName [00:12:35]name=ofd_packets/00228464 [00:12:35]OFD Sender: To server: pG, [00:12:35]CommunicateWithHost lk.salyk.kg:30040 [00:12:35]ConnectInit lk.salyk.kg [00:12:35]Connected sock=10 [00:12:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 01 01 00 00 3A BF F9 00 19 79 5A 02 01 00 02 00 ED 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9E D1 80 D0 BC D0 BE D0 BD D0 BE D0 B2 D0 B0 20 D0 94 2E 20 F1 03 41 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D1 81 D1 8B 2C 20 D1 83 D0 BB 2E 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B0 20 35 30 2C 20 34 31 2E 30 36 34 36 37 33 2C 20 37 32 2E 36 34 39 31 36 31 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 33 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 70 3F 18 67 0E 04 04 00 18 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 70 7C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 35 04 06 00 89 1C D5 87 79 AC E8 8A 7C 7F 1A F6 9A 7C [00:12:36]Write to MH i2c: 01 00 00 04 0D 11 [00:12:36]Write i2c OK [00:12:36]MH_I2C_Read... [00:12:36]Read from MH i2c: 01 [00:12:36]MH_I2C_Read... [00:12:36]Read from MH i2c: 01 07 00 [00:12:36]MH_I2C_Read... [00:12:36]Read from MH i2c: 01 07 00 04 0D 00 00 00 00 00 6F 0E 95 [00:12:36]RasterBufferAndPrint [00:12:36]line [00:12:36]line [00:12:36]line [00:12:36]line [00:12:36]line [00:12:36]written 0, free lines is 3704 [00:12:36]MH_Cut [00:12:36]Write to MH i2c: D1 01 00 0B 0D 01 EA [00:12:36]Write i2c OK [00:12:36]MH_I2C_Read... [00:12:36]Read from MH i2c: D1 [00:12:36]MH_I2C_Read... [00:12:36]Read from MH i2c: D1 01 00 [00:12:36]MH_I2C_Read... [00:12:36]Read from MH i2c: D1 01 00 0B 0D 00 E9 [00:12:36]Write to MH i2c: 01 00 00 0C 0D 19 [00:12:36]Write i2c OK [00:12:36]MH_I2C_Read... [00:12:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 6B 20 47 00 44 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 70 7C 03 00 F4 03 04 00 69 EA 17 67 B6 04 01 00 00 4C B4 95 18 14 33 BD 10 [00:12:36]CommunicateWithHost err = 0 [00:12:36]CheckOFDResponse [00:12:36]1017 (14) - 77093643461234 [00:12:36]1041 (16) - 0000000000871839 [00:12:36]1040 (4) - 228464 [00:12:36]1012 (4) - 22.10.2024 18:09 [00:12:36]1206 (1) - 0 [00:12:36]OFD Sender: Remove packet 228464 [00:12:36]ProducePacketName [00:12:36]name=ofd_packets/00228464 [00:12:36]NVStorageDeleteData [00:12:36]*** Cut start [00:12:36]*** Partial cut [00:12:36]*** CUTSNS_PIN = 1 [00:12:36]*** CUTSNS_PIN = 0 [00:12:36]OFD Sender: No OFD packet to send [00:12:36]*** Brake cut motor [00:12:37]Read from MH i2c: 01 [00:12:37]MH_I2C_Read... [00:12:37]*** Stop cut motor [00:12:37]*** Cut end [00:12:37]Read from MH i2c: 01 07 00 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: 01 07 00 0C 0D 00 00 00 00 00 FF 0F 2E [00:12:37]process_action open_shift done [00:12:37]requested_data is exist [00:12:37]produce_requested_data [00:12:37]requested_item fd.num is exist - process it [00:12:37]SAM_PROTO_GetFieldsCounters [00:12:37]wFMCommunicate request_size=4 [00:12:37]MH_SAM_APDU [00:12:37]CAPDU: 80 13 00 00 [00:12:37]Write to MH i2c: E2 08 00 0D 0D 80 13 00 00 00 00 00 00 96 [00:12:37]Write i2c OK [00:12:37]MH_I2C_Read... [00:12:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:12:37]Read from MH i2c: E2 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: E2 62 00 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: E2 62 00 0D 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 70 7C 03 00 0E 04 04 00 18 02 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 C8 [00:12:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 70 7C 03 00 0E 04 04 00 18 02 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:12:37]wFMCommunicate OK [00:12:37]SAM_PROTO_GetFieldsCounters done [00:12:37]requested_item shift.num is exist - process it [00:12:37]requested_item shift.opened is exist - process it [00:12:37]req_shift_opened [00:12:37]FM_GetShiftState [00:12:37]SAM_PROTO_GetShiftState [00:12:37]wFMCommunicate request_size=4 [00:12:37]MH_SAM_APDU [00:12:37]CAPDU: 80 13 01 00 [00:12:37]Write to MH i2c: E2 08 00 0E 0D 80 13 01 00 00 00 00 00 98 [00:12:37]Write i2c OK [00:12:37]MH_I2C_Read... [00:12:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:37]Read from MH i2c: E2 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: E2 0E 00 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: E2 0E 00 0E 0D 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 D2 [00:12:37]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [00:12:37]wFMCommunicate OK [00:12:37]SAM_PROTO_GetShiftState done [00:12:37]FM_GetShiftState done [00:12:37]req_shift_opened done [00:12:37]requested_item shift.open_date is exist - process it [00:12:37]req_shift_open_date [00:12:37]req_shift_open_date done [00:12:37]produce_requested_data done [00:12:37]produce_requested_data return {"fd.num":228464,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352} [00:12:37]process_action_free open_shift [00:12:37]json_value_free [00:12:37]json_value_free done [00:12:37]process_json_proto returns [00:12:37]Send response to host [00:12:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":228464,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352}}} [00:12:37]free response buf [00:12:37]execute_script done [00:12:37]execute_script returns [00:12:37]free content buf [00:12:37]Sock 9.Close socket [00:12:37]Sock 9.Thread stoped [00:12:37]accept exits with 7 [00:12:37]New connection [00:12:37]New thread 3066834276 created [00:12:37]Thread 3066977636 joined [00:12:37]Waiting for new connection... [00:12:37] Sock 7.Parse request [00:12:37]Sock 7.Check first char [00:12:37]Sock 7.First char is OK [00:12:37]request: POST /json_proto HTTP/1.0 [00:12:37]Method: POST [00:12:37]URL: /json_proto [00:12:37]Method is POST - this is cgi request [00:12:37]url: /json_proto [00:12:37]query_string will be loaded in cgi processing [00:12:37]execute_cgi json_proto POST (null) [00:12:37]execute_cgi path=json_proto method=POST [00:12:37]POST find Content-Length [00:12:37]Host: 172.17.44.195:8080 [00:12:37]Content-Length: 331 [00:12:37]Content-Type: application/json [00:12:37] [00:12:37]POST finish read [00:12:37]Found Content-Length = 331 [00:12:37]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:12:37]execute_script... [00:12:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:12:37]POST & json_proto [00:12:37]process_json_proto [00:12:37]json parsed OK: [00:12:37]protocol is kg_v1.0 [00:12:37]action value=get_value [00:12:37]process_action get_value [00:12:37]cmd_get_value [00:12:37]process_action get_value done [00:12:37]requested_data is exist [00:12:37]produce_requested_data [00:12:37]requested_item fm.sale.total is exist - process it [00:12:37]SAM_PROTO_GetFMData [00:12:37]wFMCommunicate request_size=4 [00:12:37]MH_SAM_APDU [00:12:37]CAPDU: 80 13 03 00 [00:12:37]Write to MH i2c: E2 08 00 0F 0D 80 13 03 00 00 00 00 00 9B [00:12:37]Write i2c OK [00:12:37]MH_I2C_Read... [00:12:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:12:37]Read from MH i2c: E2 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: E2 FD 00 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: E2 FD 00 0F 0D 00 C5 04 85 04 C1 04 6E 04 04 00 40 78 03 00 69 04 A3 00 6F 04 04 00 4D 71 03 00 B1 04 05 00 B5 CD 42 C9 04 70 04 05 00 24 4E 12 4F 04 72 04 04 00 91 7F 30 7A 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 0A 86 28 82 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 63 89 D8 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 06 00 00 B1 04 04 00 38 AB D0 1E 70 04 04 00 38 AB D0 1E 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 95 D1 45 03 EF 03 09 90 00 AE [00:12:37]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 40 78 03 00 69 04 A3 00 6F 04 04 00 4D 71 03 00 B1 04 05 00 B5 CD 42 C9 04 70 04 05 00 24 4E 12 4F 04 72 04 04 00 91 7F 30 7A 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 0A 86 28 82 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 63 89 D8 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 06 00 00 B1 04 04 00 38 AB D0 1E 70 04 04 00 38 AB D0 1E 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 95 D1 45 03 EF 03 09 90 00 [00:12:38]wFMCommunicate OK [00:12:38]wFMCommunicate request_size=4 [00:12:38]MH_SAM_APDU [00:12:38]CAPDU: 80 17 00 00 [00:12:38]Write to MH i2c: E2 08 00 10 0D 80 17 00 00 00 00 00 00 9D [00:12:38]Write i2c OK [00:12:38]MH_I2C_Read... [00:12:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:38]Read from MH i2c: E2 [00:12:38]MH_I2C_Read... [00:12:38]Read from MH i2c: E2 FD 00 [00:12:38]MH_I2C_Read... [00:12:38]Read from MH i2c: E2 FD 00 10 0D 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB D0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 63 [00:12:38]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB D0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:12:38]wFMCommunicate OK [00:12:38]wFMCommunicate request_size=4 [00:12:38]MH_SAM_APDU [00:12:38]CAPDU: 80 17 00 00 [00:12:38]Write to MH i2c: E2 08 00 11 0D 80 17 00 00 00 00 00 00 9E [00:12:38]Write i2c OK [00:12:38]MH_I2C_Read... [00:12:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:38]Read from MH i2c: E2 [00:12:38]MH_I2C_Read... [00:12:38]Read from MH i2c: E2 FD 00 [00:12:38]MH_I2C_Read... [00:12:38]Read from MH i2c: E2 FD 00 11 0D 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B0 [00:12:38]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:38]wFMCommunicate OK [00:12:38]wFMCommunicate request_size=4 [00:12:38]MH_SAM_APDU [00:12:38]CAPDU: 80 17 00 00 [00:12:38]Write to MH i2c: E2 08 00 12 0D 80 17 00 00 00 00 00 00 9F [00:12:38]Write i2c OK [00:12:38]MH_I2C_Read... [00:12:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:39]Read from MH i2c: E2 [00:12:39]MH_I2C_Read... [00:12:39]Read from MH i2c: E2 FD 00 [00:12:39]MH_I2C_Read... [00:12:39]Read from MH i2c: E2 FD 00 12 0D 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2B [00:12:39]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:39]wFMCommunicate OK [00:12:39]wFMCommunicate request_size=4 [00:12:39]MH_SAM_APDU [00:12:39]CAPDU: 80 17 00 00 [00:12:39]Write to MH i2c: E2 08 00 13 0D 80 17 00 00 00 00 00 00 A0 [00:12:39]Write i2c OK [00:12:39]MH_I2C_Read... [00:12:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:12:39]Read from MH i2c: E2 [00:12:39]MH_I2C_Read... [00:12:39]Read from MH i2c: E2 E2 00 [00:12:39]MH_I2C_Read... [00:12:39]Read from MH i2c: E2 E2 00 13 0D 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7E [00:12:39]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:12:39]wFMCommunicate OK [00:12:39]SAM_PROTO_GetFMData done [00:12:39]requested_item fm.sale_refund.total is exist - process it [00:12:39]requested_item fm.buy.total is exist - process it [00:12:39]requested_item shift.sale.total is exist - process it [00:12:39]SAM_PROTO_GetShiftData [00:12:39]wFMCommunicate request_size=4 [00:12:39]MH_SAM_APDU [00:12:39]CAPDU: 80 13 02 00 [00:12:39]Write to MH i2c: E2 08 00 14 0D 80 13 02 00 00 00 00 00 9F [00:12:39]Write i2c OK [00:12:39]MH_I2C_Read... [00:12:40]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:12:40]Read from MH i2c: E2 [00:12:40]MH_I2C_Read... [00:12:40]Read from MH i2c: E2 FD 00 [00:12:40]MH_I2C_Read... [00:12:40]Read from MH i2c: E2 FD 00 14 0D 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 12 [00:12:40]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:12:40]wFMCommunicate OK [00:12:40]wFMCommunicate request_size=4 [00:12:40]MH_SAM_APDU [00:12:40]CAPDU: 80 17 00 00 [00:12:40]Write to MH i2c: E2 08 00 15 0D 80 17 00 00 00 00 00 00 A2 [00:12:40]Write i2c OK [00:12:40]MH_I2C_Read... [00:12:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:40]Read from MH i2c: E2 [00:12:40]MH_I2C_Read... [00:12:40]Read from MH i2c: E2 FD 00 [00:12:40]MH_I2C_Read... [00:12:40]Read from MH i2c: E2 FD 00 15 0D 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 AA [00:12:40]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:12:40]wFMCommunicate OK [00:12:40]wFMCommunicate request_size=4 [00:12:40]MH_SAM_APDU [00:12:40]CAPDU: 80 17 00 00 [00:12:40]Write to MH i2c: E2 08 00 16 0D 80 17 00 00 00 00 00 00 A3 [00:12:40]Write i2c OK [00:12:40]MH_I2C_Read... [00:12:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:40]Read from MH i2c: E2 [00:12:40]MH_I2C_Read... [00:12:40]Read from MH i2c: E2 FD 00 [00:12:40]MH_I2C_Read... [00:12:40]Read from MH i2c: E2 FD 00 16 0D 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 75 [00:12:41]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:12:41]wFMCommunicate OK [00:12:41]wFMCommunicate request_size=4 [00:12:41]MH_SAM_APDU [00:12:41]CAPDU: 80 17 00 00 [00:12:41]Write to MH i2c: E2 08 00 17 0D 80 17 00 00 00 00 00 00 A4 [00:12:41]Write i2c OK [00:12:41]MH_I2C_Read... [00:12:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:41]Read from MH i2c: E2 [00:12:41]MH_I2C_Read... [00:12:41]Read from MH i2c: E2 FD 00 [00:12:41]MH_I2C_Read... [00:12:41]Read from MH i2c: E2 FD 00 17 0D 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 16 [00:12:41]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:12:41]wFMCommunicate OK [00:12:41]wFMCommunicate request_size=4 [00:12:41]MH_SAM_APDU [00:12:41]CAPDU: 80 17 00 00 [00:12:41]Write to MH i2c: E2 08 00 18 0D 80 17 00 00 00 00 00 00 A5 [00:12:41]Write i2c OK [00:12:41]MH_I2C_Read... [00:12:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:12:41]Read from MH i2c: E2 [00:12:41]MH_I2C_Read... [00:12:41]Read from MH i2c: E2 BD 00 [00:12:41]MH_I2C_Read... [00:12:41]Read from MH i2c: E2 BD 00 18 0D 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 8B [00:12:41]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 OFD Sender: No OFD packet to send [00:12:41]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:12:41]wFMCommunicate OK [00:12:41]SAM_PROTO_GetShiftData done [00:12:41]requested_item shift.sale.total_cash is exist - process it [00:12:41]requested_item shift.sale_refund.total is exist - process it [00:12:41]requested_item shift.sale_refund.total_cash is exist - process it [00:12:41]requested_item shift.buy.total is exist - process it [00:12:41]requested_item shift.buy.total_cash is exist - process it [00:12:41]produce_requested_data done [00:12:41]produce_requested_data return {"fm.sale.total":205564676.37,"fm.sale_refund.total":5169918.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:12:41]process_action_free get_value [00:12:41]json_value_free [00:12:41]json_value_free done [00:12:41]process_json_proto returns [00:12:41]Send response to host [00:12:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":205564676.37,"fm.sale_refund.total":5169918.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:12:41]free response buf [00:12:41]execute_script done [00:12:41]execute_script returns [00:12:41]free content buf [00:12:41]Sock 7.Close socket [00:12:41]Sock 7.Thread stoped [00:12:46]OFD Sender: No OFD packet to send [00:12:51]OFD Sender: No OFD packet to send [00:12:56]OFD Sender: No OFD packet to send [00:13:01]OFD Sender: No OFD packet to send [00:13:06]OFD Sender: No OFD packet to send [00:13:11]OFD Sender: No OFD packet to send [00:13:16]OFD Sender: No OFD packet to send [00:13:21]OFD Sender: No OFD packet to send [00:13:26]OFD Sender: No OFD packet to send [00:13:31]OFD Sender: No OFD packet to send [00:13:36]OFD Sender: No OFD packet to send [00:13:41]OFD Sender: No OFD packet to send [00:13:46]OFD Sender: No OFD packet to send [00:13:51]OFD Sender: No OFD packet to send [00:13:56]OFD Sender: No OFD packet to send [00:14:01]OFD Sender: No OFD packet to send [00:14:06]OFD Sender: No OFD packet to send [00:14:11]OFD Sender: No OFD packet to send [00:14:16]OFD Sender: No OFD packet to send [00:14:21]OFD Sender: No OFD packet to send [00:14:26]OFD Sender: No OFD packet to send [00:14:32]OFD Sender: No OFD packet to send [00:14:37]OFD Sender: No OFD packet to send [00:14:42]OFD Sender: No OFD packet to send [00:14:47]OFD Sender: No OFD packet to send [00:14:52]OFD Sender: No OFD packet to send [00:14:57]OFD Sender: No OFD packet to send [00:15:02]OFD Sender: No OFD packet to send [00:15:07]OFD Sender: No OFD packet to send [00:15:12]OFD Sender: No OFD packet to send [00:15:17]OFD Sender: No OFD packet to send [00:15:22]OFD Sender: No OFD packet to send [00:15:27]OFD Sender: No OFD packet to send [00:15:32]OFD Sender: No OFD packet to send [00:15:37]OFD Sender: No OFD packet to send [00:15:42]OFD Sender: No OFD packet to send [00:15:47]OFD Sender: No OFD packet to send [00:15:52]OFD Sender: No OFD packet to send [00:15:57]OFD Sender: No OFD packet to send [00:16:02]OFD Sender: No OFD packet to send [00:16:07]OFD Sender: No OFD packet to send [00:16:12]OFD Sender: No OFD packet to send [00:16:17]OFD Sender: No OFD packet to send [00:16:22]OFD Sender: No OFD packet to send [00:16:27]OFD Sender: No OFD packet to send [00:16:32]OFD Sender: No OFD packet to send [00:16:37]OFD Sender: No OFD packet to send [00:16:42]OFD Sender: No OFD packet to send [00:16:47]OFD Sender: No OFD packet to send [00:16:52]OFD Sender: No OFD packet to send [00:16:57]OFD Sender: No OFD packet to send [00:17:02]OFD Sender: No OFD packet to send [00:17:07]OFD Sender: No OFD packet to send [00:17:12]OFD Sender: No OFD packet to send [00:17:17]OFD Sender: No OFD packet to send [00:17:22]OFD Sender: No OFD packet to send [00:17:27]OFD Sender: No OFD packet to send [00:17:32]OFD Sender: No OFD packet to send [00:17:37]OFD Sender: No OFD packet to send [00:17:42]OFD Sender: No OFD packet to send [00:17:47]OFD Sender: No OFD packet to send [00:17:52]OFD Sender: No OFD packet to send [00:17:57]OFD Sender: No OFD packet to send [00:18:02]OFD Sender: No OFD packet to send [00:18:07]OFD Sender: No OFD packet to send [00:18:12]OFD Sender: No OFD packet to send [00:18:17]OFD Sender: No OFD packet to send [00:18:22]OFD Sender: No OFD packet to send [00:18:27]OFD Sender: No OFD packet to send [00:18:32]OFD Sender: No OFD packet to send [00:18:37]OFD Sender: No OFD packet to send [00:18:42]OFD Sender: No OFD packet to send [00:18:47]OFD Sender: No OFD packet to send [00:18:52]OFD Sender: No OFD packet to send [00:18:57]OFD Sender: No OFD packet to send [00:19:02]OFD Sender: No OFD packet to send [00:19:07]OFD Sender: No OFD packet to send [00:19:12]OFD Sender: No OFD packet to send [00:19:17]OFD Sender: No OFD packet to send [00:19:22]OFD Sender: No OFD packet to send [00:19:27]OFD Sender: No OFD packet to send [00:19:32]OFD Sender: No OFD packet to send [00:19:37]OFD Sender: No OFD packet to send [00:19:42]OFD Sender: No OFD packet to send [00:19:47]OFD Sender: No OFD packet to send [00:19:52]OFD Sender: No OFD packet to send [00:19:57]OFD Sender: No OFD packet to send [00:20:02]OFD Sender: No OFD packet to send [00:20:07]OFD Sender: No OFD packet to send [00:20:12]OFD Sender: No OFD packet to send [00:20:17]OFD Sender: No OFD packet to send [00:20:22]OFD Sender: No OFD packet to send [00:20:27]OFD Sender: No OFD packet to send [00:20:32]OFD Sender: No OFD packet to send [00:20:37]OFD Sender: No OFD packet to send [00:20:42]OFD Sender: No OFD packet to send [00:20:47]OFD Sender: No OFD packet to send [00:20:52]OFD Sender: No OFD packet to send [00:20:57]OFD Sender: No OFD packet to send [00:21:02]OFD Sender: No OFD packet to send [00:21:07]OFD Sender: No OFD packet to send [00:21:12]OFD Sender: No OFD packet to send [00:21:17]OFD Sender: No OFD packet to send [00:21:22]OFD Sender: No OFD packet to send [00:21:27]OFD Sender: No OFD packet to send [00:21:32]OFD Sender: No OFD packet to send [00:21:37]OFD Sender: No OFD packet to send [00:21:42]OFD Sender: No OFD packet to send [00:21:47]OFD Sender: No OFD packet to send [00:21:52]OFD Sender: No OFD packet to send [00:21:57]OFD Sender: No OFD packet to send [00:22:02]OFD Sender: No OFD packet to send [00:22:07]OFD Sender: No OFD packet to send [00:22:12]OFD Sender: No OFD packet to send [00:22:17]accept exits with 9 [00:22:17]New connection [00:22:17]New thread 3066977636 created [00:22:17]Thread 3066834276 joined [00:22:17]Waiting for new connection... [00:22:17] Sock 9.Parse request [00:22:17]Sock 9.Check first char [00:22:17]Sock 9.First char is OK [00:22:17]request: POST /json_proto HTTP/1.0 [00:22:17]Method: POST [00:22:17]URL: /json_proto [00:22:17]Method is POST - this is cgi request [00:22:17]url: /json_proto [00:22:17]query_string will be loaded in cgi processing [00:22:17]execute_cgi json_proto POST (null) [00:22:17]execute_cgi path=json_proto method=POST [00:22:17]POST find Content-Length [00:22:17]Host: 172.17.44.195:8080 [00:22:17]Content-Length: 678 [00:22:17]Content-Type: application/json [00:22:17] [00:22:17]POST finish read [00:22:17]Found Content-Length = 678 [00:22:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:22:17]execute_script... [00:22:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:22:17]POST & json_proto [00:22:17]process_json_proto [00:22:17]json parsed OK: [00:22:17]protocol is kg_v1.0 [00:22:17]action value=close_receipt [00:22:17]process_action close_receipt [00:22:17]cmd_close_receipt [00:22:17]MH_GetDate [00:22:17]Write to MH i2c: F0 00 00 19 0D 15 [00:22:17]Write i2c OK [00:22:17]MH_I2C_Read... [00:22:17]Read from MH i2c: F0 [00:22:17]MH_I2C_Read... [00:22:17]Read from MH i2c: F0 09 00 [00:22:17]MH_I2C_Read... [00:22:17]Read from MH i2c: F0 09 00 19 0D 00 BA 41 18 67 82 C9 CF 66 18 [00:22:17]GetLastDocTimeStamp 1729642352 [00:22:17]current date 1729642938 [00:22:17]FM_GetShiftState [00:22:17]SAM_PROTO_GetShiftState [00:22:17]wFMCommunicate request_size=4 [00:22:17]MH_SAM_APDU [00:22:17]CAPDU: 80 13 01 00 [00:22:17]Write to MH i2c: E2 08 00 1A 0D 80 13 01 00 00 00 00 00 A4 [00:22:17]OFD Sender: No OFD packet to send [00:22:17]Write i2c OK [00:22:17]MH_I2C_Read... [00:22:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:22:17]Read from MH i2c: E2 [00:22:17]MH_I2C_Read... [00:22:17]Read from MH i2c: E2 0E 00 [00:22:17]MH_I2C_Read... [00:22:17]Read from MH i2c: E2 0E 00 1A 0D 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 DE [00:22:17]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [00:22:17]wFMCommunicate OK [00:22:17]SAM_PROTO_GetShiftState done [00:22:17]FM_GetShiftState done [00:22:17]opened in 1729642352 [00:22:17]opened+sec_in_day 1729728752 [00:22:17]quantity*price = 50041 [00:22:17]sum+1 = 50042 [00:22:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 1 23.10.2024 00:22 Смена: 536 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228465 ФПД: 26498266248402 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T002218&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228465&fm=26498266248402&tin=02508201610067®Number=0000000000091685&sum=50000 [00:22:18]StoreToDocumentArchive [00:22:18]shift 536 fd 228465 [00:22:18]save to /storage/0536/doc_00228465 [00:22:18]save last doc name /storage/0536/doc_00228465 to /storage/kkm_last_doc_name [00:22:18]save OK [00:22:18]Clear old archive folders... [00:22:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:22:18]tlvbuf is 002FAA10 [00:22:18]SAM_PROTO_ClearQueue [00:22:18]wFMCommunicate request_size=4 [00:22:18]MH_SAM_APDU [00:22:18]CAPDU: 80 09 00 00 [00:22:18]Write to MH i2c: E2 08 00 27 0D 80 09 00 00 00 00 00 00 A6 [00:22:18]Write i2c OK [00:22:18]MH_I2C_Read... [00:22:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:22:18]Read from MH i2c: E2 [00:22:18]MH_I2C_Read... [00:22:18]Read from MH i2c: E2 03 00 [00:22:18]MH_I2C_Read... [00:22:18]Read from MH i2c: E2 03 00 27 0D 00 90 00 A8 [00:22:18]RAPDU: 90 00 [00:22:18]wFMCommunicate OK [00:22:18]SAM_PROTO_ClearQueue done [00:22:18]KKMCreateOFDPacket [00:22:18]OFDProtocolAddRootSTLVToBuf [00:22:18]FM_MakeSignedData [00:22:18]FM_MakeSignedData [00:22:18]SAM_PROTO_SignData [00:22:18]wFMCommunicate request_size=4 [00:22:18]MH_SAM_APDU [00:22:18]CAPDU: 80 0D 01 02 [00:22:18]Write to MH i2c: E2 08 00 28 0D 80 0D 01 02 00 00 00 00 AE [00:22:18]Write i2c OK [00:22:18]MH_I2C_Read... [00:22:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:22:18]Read from MH i2c: E2 [00:22:18]MH_I2C_Read... [00:22:18]Read from MH i2c: E2 03 00 [00:22:18]MH_I2C_Read... [00:22:18]Read from MH i2c: E2 03 00 28 0D 00 90 00 A9 [00:22:18]RAPDU: 90 00 [00:22:18]wFMCommunicate OK [00:22:18]wFMCommunicate request_size=255 [00:22:18]MH_SAM_APDU [00:22: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 BA 41 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 71 7C 03 00 35 04 06 00 18 [00:22:18]Write to MH i2c: E2 02 01 29 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 BA 41 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 71 7C 03 00 35 04 06 00 18 00 00 E2 [00:22:18]Write i2c OK [00:22:18]MH_I2C_Read... [00:22:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:22:18]Read from MH i2c: E2 [00:22:18]MH_I2C_Read... [00:22:18]Read from MH i2c: E2 03 00 [00:22:18]MH_I2C_Read... [00:22:18]Read from MH i2c: E2 03 00 29 0D 00 90 00 AA [00:22:18]RAPDU: 90 00 [00:22:18]wFMCommunicate OK [00:22:18]wFMCommunicate request_size=10 [00:22:18]MH_SAM_APDU [00:22:18]CAPDU: 80 0D 02 02 05 19 9B BF 34 D2 [00:22:18]Write to MH i2c: E2 0D 00 2A 0D 80 0D 02 02 05 00 19 9B BF 34 D2 00 00 34 [00:22:18]Write i2c OK [00:22:18]MH_I2C_Read... [00:22:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:22:19]Read from MH i2c: E2 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: E2 03 00 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: E2 03 00 2A 0D 00 90 00 AB [00:22:19]RAPDU: 90 00 [00:22:19]wFMCommunicate OK [00:22:19]wFMCommunicate request_size=4 [00:22:19]MH_SAM_APDU [00:22:19]CAPDU: 80 0D 03 02 [00:22:19]Write to MH i2c: E2 08 00 2B 0D 80 0D 03 02 00 00 00 00 B3 [00:22:19]Write i2c OK [00:22:19]MH_I2C_Read... [00:22:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:22:19]Read from MH i2c: E2 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: E2 0B 00 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: E2 0B 00 2B 0D 00 55 19 E1 67 BC 8E 7C 5B 90 00 8B [00:22:19]RAPDU: 55 19 E1 67 BC 8E 7C 5B 90 00 [00:22:19]wFMCommunicate OK [00:22:19]SAM_PROTO_SignData done [00:22:19]FM_MakeSignedData done [00:22:19]CreateOFDProtocolMessage [00:22:19]wFMCommunicate request_size=4 [00:22:19]MH_SAM_APDU [00:22:19]CAPDU: 80 11 00 00 [00:22:19]Write to MH i2c: E2 08 00 2C 0D 80 11 00 00 00 00 00 00 B3 [00:22:19]Write i2c OK [00:22:19]MH_I2C_Read... [00:22:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:22:19]Read from MH i2c: E2 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: E2 17 00 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: E2 17 00 2C 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0A [00:22:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:22:19]wFMCommunicate OK [00:22:19]CreateOFDProtocolMessage done [00:22:19]OFDSenderStorePacket 228465 [00:22:19]StoreOFDPacket docnum=228465 [00:22:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D5 C2 07 01 F8 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 BA 41 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 71 7C 03 00 35 04 06 00 18 19 9B BF 34 D2 55 19 E1 67 BC 8E 7C 5B [00:22:19]CheckFolder [00:22:19]dirname=/storage/ofd_packets [00:22:19]CheckFolder done [00:22:19]ProducePacketName [00:22:19]name=ofd_packets/00228465 [00:22:19]NVStorageSaveData ofd_packets/00228465 [00:22:19]File name is /storage/ofd_packets/00228465 [00:22:19]Write 301 bytes [00:22:19]NVStorageSaveData done [00:22:19]OFDSenderStorePacket done [00:22:19]KKMCreateOFDPacket done [00:22:19]NVStorageSaveData kkm_last_timestamp [00:22:19]File name is /storage/kkm_last_timestamp [00:22:19]Write 4 bytes [00:22:19]NVStorageSaveData done [00:22:19]ExternCall_PrintAddStr [00:22:19]wPrintStart [00:22:19]Write to MH i2c: 01 00 00 2D 0D 3A [00:22:19]Write i2c OK [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: 01 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: 01 07 00 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: 01 07 00 2D 0D 00 00 00 00 00 FF 0F 4F [00:22:19]RasterBufferAndPrint [00:22:19]line Счет N : (1)1965135 [00:22:19]line ИНН: 02508201610067 [00:22:19]line Контрольно-Кассовый Чек [00:22:19]line ПРОДАЖА [00:22:19]line ТРК (МРК, ГНК) : 43 [00:22:19]line Товар: 2710124130 [00:22:19]line Аи-92-К-5 [00:22:19]line 7.480 * 66.90 [00:22:19]line = 500.41 [00:22:19]line НДС 12% НСП 1% [00:22:19]line > о реализуемом товаре [00:22:19]line ОКРУГЛЕНИЕ: -0.41 [00:22:19]line ИТОГО: 500.00 [00:22:19]line Внесено: 500.00 [00:22:19]line СДАЧА: 0.00 [00:22:19]line НСП 1% : 4.43 [00:22:19]line НДС 12% : 53.14 [00:22:19]line Наличными: 500.00 [00:22:19]line Безнал.: 0.00 [00:22:19]line Место: АЗС № 133 "Партнер Нефть" [00:22:19]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [00:22:19]line СНО: Общий режим [00:22:19]line Чек 1 23.10.2024 00:22 [00:22:19]line Смена: 536 ФФД: 1.0 [00:22:19]line ЗНМ: 0300000091 [00:22:19]line РНМ: 0000000000091685 [00:22:19]line Версия ККМ: 001 [00:22:19]line ФМ: 0000000000871839 [00:22:19]line ФД: 228465 [00:22:19]line ФПД: 26498266248402 [00:22:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T002218&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228465&fm=26498266248402&tin=02508201610067®Number=0000000000091685&sum=50000 [00:22:19]OFD Sender: Processing packet 228465 [packets to send 38, broken 37] [00:22:19]ProducePacketName [00:22:19]name=ofd_packets/00228465 [00:22:19]OFD Sender: To server: pG, [00:22:19]CommunicateWithHost lk.salyk.kg:30040 [00:22:19]ConnectInit lk.salyk.kg [00:22:19]written 0, free lines is 4095 [00:22:19]Connected sock=10 [00:22:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D5 C2 07 01 F8 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 BA 41 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 71 7C 03 00 35 04 06 00 18 19 9B BF 34 D2 55 19 E1 67 BC 8E 7C 5B [00:22:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 64 80 47 00 5F 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 71 7C 03 00 F4 03 04 00 B1 EC 17 67 B6 04 01 00 00 11 69 B9 99 FA DF 13 43 [00:22:19]CommunicateWithHost err = 0 [00:22:19]CheckOFDResponse [00:22:19]1017 (14) - 77093643461234 [00:22:19]1041 (16) - 0000000000871839 [00:22:19]1040 (4) - 228465 [00:22:19]1012 (4) - 22.10.2024 18:19 [00:22:19]1206 (1) - 0 [00:22:19]OFD Sender: Remove packet 228465 [00:22:19]ProducePacketName [00:22:19]name=ofd_packets/00228465 [00:22:19]NVStorageDeleteData [00:22:19]Write to MH i2c: 01 00 00 57 0D 64 [00:22:19]Write i2c OK [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: 01 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: 01 07 00 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: 01 07 00 57 0D 00 00 00 00 00 9B 0C 12 [00:22:19]RasterBufferAndPrint [00:22:19]line [00:22:19]line [00:22:19]line [00:22:19]line [00:22:19]line [00:22:19]written 0, free lines is 3232 [00:22:19]MH_Cut [00:22:19]Write to MH i2c: D1 01 00 5E 0D 01 3D [00:22:19]Write i2c OK [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: D1 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: D1 01 00 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: D1 01 00 5E 0D 00 3C [00:22:19]Write to MH i2c: 01 00 00 5F 0D 6C [00:22:19]Write i2c OK [00:22:19]MH_I2C_Read... [00:22:20]OFD Sender: No OFD packet to send [00:22:20]*** Cut start [00:22:20]*** Partial cut [00:22:20]*** CUTSNS_PIN = 1 [00:22:20]*** CUTSNS_PIN = 0 [00:22:21]*** Brake cut motor [00:22:21]Read from MH i2c: 01 [00:22:21]MH_I2C_Read... [00:22:21]*** Stop cut motor [00:22:21]*** Cut end [00:22:21]Read from MH i2c: 01 07 00 [00:22:21]MH_I2C_Read... [00:22:21]Read from MH i2c: 01 07 00 5F 0D 00 00 00 00 00 FF 0F 81 [00:22:21]process_action close_receipt done [00:22:21]requested_data is exist [00:22:21]produce_requested_data [00:22:21]requested_item fm.sn is exist - process it [00:22:21]wFMCommunicate request_size=4 [00:22:21]MH_SAM_APDU [00:22:21]CAPDU: 80 11 00 00 [00:22:21]Write to MH i2c: E2 08 00 60 0D 80 11 00 00 00 00 00 00 E7 [00:22:21]Write i2c OK [00:22:21]MH_I2C_Read... [00:22:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:22:21]Read from MH i2c: E2 [00:22:21]MH_I2C_Read... [00:22:21]Read from MH i2c: E2 17 00 [00:22:21]MH_I2C_Read... [00:22:21]Read from MH i2c: E2 17 00 60 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 3E [00:22:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:22:21]wFMCommunicate OK [00:22:21]requested_item fd.num is exist - process it [00:22:21]SAM_PROTO_GetFieldsCounters [00:22:21]wFMCommunicate request_size=4 [00:22:21]MH_SAM_APDU [00:22:21]CAPDU: 80 13 00 00 [00:22:21]Write to MH i2c: E2 08 00 61 0D 80 13 00 00 00 00 00 00 EA [00:22:21]Write i2c OK [00:22:21]MH_I2C_Read... [00:22:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:22:21]Read from MH i2c: E2 [00:22:21]MH_I2C_Read... [00:22:21]Read from MH i2c: E2 62 00 [00:22:21]MH_I2C_Read... [00:22:21]Read from MH i2c: E2 62 00 61 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 71 7C 03 00 0E 04 04 00 18 02 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 20 [00:22:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 71 7C 03 00 0E 04 04 00 18 02 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:22:21]wFMCommunicate OK [00:22:21]SAM_PROTO_GetFieldsCounters done [00:22:21]requested_item shift.num is exist - process it [00:22:21]requested_item shift.opened is exist - process it [00:22:21]req_shift_opened [00:22:21]FM_GetShiftState [00:22:21]SAM_PROTO_GetShiftState [00:22:21]wFMCommunicate request_size=4 [00:22:21]MH_SAM_APDU [00:22:21]CAPDU: 80 13 01 00 [00:22:21]Write to MH i2c: E2 08 00 62 0D 80 13 01 00 00 00 00 00 EC [00:22:21]Write i2c OK [00:22:21]MH_I2C_Read... [00:22:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:22:21]Read from MH i2c: E2 [00:22:21]MH_I2C_Read... [00:22:21]Read from MH i2c: E2 0E 00 [00:22:21]MH_I2C_Read... [00:22:21]Read from MH i2c: E2 0E 00 62 0D 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 26 [00:22:21]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [00:22:21]wFMCommunicate OK [00:22:21]SAM_PROTO_GetShiftState done [00:22:21]FM_GetShiftState done [00:22:21]req_shift_opened done [00:22:21]requested_item shift.open_date is exist - process it [00:22:21]req_shift_open_date [00:22:21]req_shift_open_date done [00:22:21]produce_requested_data done [00:22:21]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228465,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352} [00:22:21]process_action_free close_receipt [00:22:21]json_value_free [00:22:21]json_value_free done [00:22:21]process_json_proto returns [00:22:21]Send response to host [00:22:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228465,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352}}} [00:22:21]free response buf [00:22:21]execute_script done [00:22:21]execute_script returns [00:22:21]free content buf [00:22:21]Sock 9.Close socket [00:22:21]Sock 9.Thread stoped [00:22:22]accept exits with 7 [00:22:22]New connection [00:22:22]New thread 3066834276 created [00:22:22]Thread 3066977636 joined [00:22:22]Waiting for new connection... [00:22:22] Sock 7.Parse request [00:22:22]Sock 7.Check first char [00:22:22]Sock 7.First char is OK [00:22:22]request: POST /json_proto HTTP/1.0 [00:22:22]Method: POST [00:22:22]URL: /json_proto [00:22:22]Method is POST - this is cgi request [00:22:22]url: /json_proto [00:22:22]query_string will be loaded in cgi processing [00:22:22]execute_cgi json_proto POST (null) [00:22:22]execute_cgi path=json_proto method=POST [00:22:22]POST find Content-Length [00:22:22]Host: 172.17.44.195:8080 [00:22:22]Content-Length: 767 [00:22:22]Content-Type: application/json [00:22:22] [00:22:22]POST finish read [00:22:22]Found Content-Length = 767 [00:22:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965134", "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" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:22:22]execute_script... [00: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)1965134", "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" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:22:22]POST & json_proto [00:22:22]process_json_proto [00:22:22]json parsed OK: [00:22:22]protocol is kg_v1.0 [00:22:22]action value=close_receipt [00:22:22]process_action close_receipt [00:22:22]cmd_close_receipt [00:22:22]MH_GetDate [00:22:22]Write to MH i2c: F0 00 00 63 0D 5F [00:22:22]Write i2c OK [00:22:22]MH_I2C_Read... [00:22:22]Read from MH i2c: F0 [00:22:22]MH_I2C_Read... [00:22:22]Read from MH i2c: F0 09 00 [00:22:22]MH_I2C_Read... [00:22:22]Read from MH i2c: F0 09 00 63 0D 00 BF 41 18 67 82 C9 CF 66 67 [00:22:22]GetLastDocTimeStamp 1729642938 [00:22:22]current date 1729642943 [00:22:22]FM_GetShiftState [00:22:22]SAM_PROTO_GetShiftState [00:22:22]wFMCommunicate request_size=4 [00:22:22]MH_SAM_APDU [00:22:22]CAPDU: 80 13 01 00 [00:22:22]Write to MH i2c: E2 08 00 64 0D 80 13 01 00 00 00 00 00 EE [00:22:22]Write i2c OK [00:22:22]MH_I2C_Read... [00:22:22]Read from MH i2c: E2 [00:22:22]MH_I2C_Read... [00:22:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:22:22]Read from MH i2c: E2 0E 00 [00:22:22]MH_I2C_Read... [00:22:22]Read from MH i2c: E2 0E 00 64 0D 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 28 [00:22:22]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [00:22:22]wFMCommunicate OK [00:22:22]SAM_PROTO_GetShiftState done [00:22:22]FM_GetShiftState done [00:22:22]opened in 1729642352 [00:22:22]opened+sec_in_day 1729728752 [00:22:22]quantity*price = 300075 [00:22:22]sum+1 = 300077 [00:22:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.76 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.76 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 2 23.10.2024 00:22 Смена: 536 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 228466 ФПД: 218795608232228 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T002223&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228466&fm=218795608232228&tin=02508201610067®Number=0000000000091685&sum=300076 [00:22:23]StoreToDocumentArchive [00:22:23]shift 536 fd 228466 [00:22:23]save to /storage/0536/doc_00228466 [00:22:23]save last doc name /storage/0536/doc_00228466 to /storage/kkm_last_doc_name [00:22:23]save OK [00:22:23]Clear old archive folders... [00:22:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:22:23]tlvbuf is 002AFCB0 [00:22:23]SAM_PROTO_ClearQueue [00:22:23]wFMCommunicate request_size=4 [00:22:23]MH_SAM_APDU [00:22:23]CAPDU: 80 09 00 00 [00:22:23]Write to MH i2c: E2 08 00 71 0D 80 09 00 00 00 00 00 00 F0 [00:22:23]Write i2c OK [00:22:23]MH_I2C_Read... [00:22:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:22:23]Read from MH i2c: E2 [00:22:23]MH_I2C_Read... [00:22:23]Read from MH i2c: E2 03 00 [00:22:23]MH_I2C_Read... [00:22:23]Read from MH i2c: E2 03 00 71 0D 00 90 00 F2 [00:22:23]RAPDU: 90 00 [00:22:23]wFMCommunicate OK [00:22:23]SAM_PROTO_ClearQueue done [00:22:23]KKMCreateOFDPacket [00:22:23]OFDProtocolAddRootSTLVToBuf [00:22:23]FM_MakeSignedData [00:22:23]FM_MakeSignedData [00:22:23]SAM_PROTO_SignData [00:22:23]wFMCommunicate request_size=4 [00:22:23]MH_SAM_APDU [00:22:23]CAPDU: 80 0D 01 02 [00:22:23]Write to MH i2c: E2 08 00 72 0D 80 0D 01 02 00 00 00 00 F8 [00:22:23]Write i2c OK [00:22:23]MH_I2C_Read... [00:22:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:22:23]Read from MH i2c: E2 [00:22:23]MH_I2C_Read... [00:22:23]Read from MH i2c: E2 03 00 [00:22:23]MH_I2C_Read... [00:22:23]Read from MH i2c: E2 03 00 72 0D 00 90 00 F3 [00:22:23]RAPDU: 90 00 [00:22:23]wFMCommunicate OK [00:22:23]wFMCommunicate request_size=255 [00:22:23]MH_SAM_APDU [00:22: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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 BF 41 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 72 7C 03 00 35 04 06 00 C6 FE 52 81 [00:22:23]Write to MH i2c: E2 02 01 73 0D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 BF 41 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 72 7C 03 00 35 04 06 00 C6 FE 52 81 00 00 79 [00:22:23]Write i2c OK [00:22:23]MH_I2C_Read... [00:22:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:22:23]Read from MH i2c: E2 [00:22:23]MH_I2C_Read... [00:22:23]Read from MH i2c: E2 03 00 [00:22:23]MH_I2C_Read... [00:22:23]Read from MH i2c: E2 03 00 73 0D 00 90 00 F4 [00:22:23]RAPDU: 90 00 [00:22:23]wFMCommunicate OK [00:22:23]wFMCommunicate request_size=7 [00:22:23]MH_SAM_APDU [00:22:23]CAPDU: 80 0D 02 02 02 D1 24 [00:22:23]Write to MH i2c: E2 0A 00 74 0D 80 0D 02 02 02 00 D1 24 00 00 F4 [00:22:23]Write i2c OK [00:22:23]MH_I2C_Read... [00:22:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:22:23]Read from MH i2c: E2 [00:22:23]MH_I2C_Read... [00:22:23]Read from MH i2c: E2 03 00 [00:22:23]MH_I2C_Read... [00:22:23]Read from MH i2c: E2 03 00 74 0D 00 90 00 F5 [00:22:23]RAPDU: 90 00 [00:22:23]wFMCommunicate OK [00:22:23]wFMCommunicate request_size=4 [00:22:23]MH_SAM_APDU [00:22:23]CAPDU: 80 0D 03 02 [00:22:23]Write to MH i2c: E2 08 00 75 0D 80 0D 03 02 00 00 00 00 FD [00:22:23]Write i2c OK [00:22:23]MH_I2C_Read... [00:22:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:22:23]Read from MH i2c: E2 [00:22:23]MH_I2C_Read... [00:22:23]Read from MH i2c: E2 0B 00 [00:22:23]MH_I2C_Read... [00:22:23]Read from MH i2c: E2 0B 00 75 0D 00 2A 74 43 00 84 26 72 A7 90 00 A2 [00:22:23]RAPDU: 2A 74 43 00 84 26 72 A7 90 00 [00:22:23]wFMCommunicate OK [00:22:23]SAM_PROTO_SignData done [00:22:23]FM_MakeSignedData done [00:22:23]CreateOFDProtocolMessage [00:22:23]wFMCommunicate request_size=4 [00:22:23]MH_SAM_APDU [00:22:23]CAPDU: 80 11 00 00 [00:22:23]Write to MH i2c: E2 08 00 76 0D 80 11 00 00 00 00 00 00 FD [00:22:23]Write i2c OK [00:22:23]MH_I2C_Read... [00:22:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:22:24]Read from MH i2c: E2 [00:22:24]MH_I2C_Read... [00:22:24]Read from MH i2c: E2 17 00 [00:22:24]MH_I2C_Read... [00:22:24]Read from MH i2c: E2 17 00 76 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 54 [00:22:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:22:24]wFMCommunicate OK [00:22:24]CreateOFDProtocolMessage done [00:22:24]OFDSenderStorePacket 228466 [00:22:24]StoreOFDPacket docnum=228466 [00:22:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 64 73 04 01 95 D0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 BF 41 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 72 7C 03 00 35 04 06 00 C6 FE 52 81 D1 24 2A 74 43 00 84 26 72 A7 [00:22:24]CheckFolder [00:22:24]dirname=/storage/ofd_packets [00:22:24]CheckFolder done [00:22:24]ProducePacketName [00:22:24]name=ofd_packets/00228466 [00:22:24]NVStorageSaveData ofd_packets/00228466 [00:22:24]File name is /storage/ofd_packets/00228466 [00:22:24]Write 298 bytes [00:22:24]NVStorageSaveData done [00:22:24]OFDSenderStorePacket done [00:22:24]KKMCreateOFDPacket done [00:22:24]NVStorageSaveData kkm_last_timestamp [00:22:24]File name is /storage/kkm_last_timestamp [00:22:24]Write 4 bytes [00:22:24]NVStorageSaveData done [00:22:24]ExternCall_PrintAddStr [00:22:24]wPrintStart [00:22:24]Write to MH i2c: 01 00 00 77 0D 84 [00:22:24]Write i2c OK [00:22:24]MH_I2C_Read... [00:22:24]Read from MH i2c: 01 [00:22:24]MH_I2C_Read... [00:22:24]Read from MH i2c: 01 07 00 [00:22:24]MH_I2C_Read... [00:22:24]Read from MH i2c: 01 07 00 77 0D 00 00 00 00 00 FF 0F 99 [00:22:24]RasterBufferAndPrint [00:22:24]line Счет N : (1)1965134 [00:22:24]line ИНН: 02508201610067 [00:22:24]line Контрольно-Кассовый Чек [00:22:24]line ПРОДАЖА [00:22:24]line ТРК (МРК, ГНК) : 21 [00:22:24]line Товар: 2710194210 [00:22:24]line ДТ-К-5 [00:22:24]line 39.380 * 76.20 [00:22:24]line = 3000.76 [00:22:24]line НДС 12% НСП 1% [00:22:24]line > о реализуемом товаре [00:22:24]line ИТОГО: 3000.76 [00:22:24]line НСП 1% : 26.55 [00:22:24]line НДС 12% : 318.66 [00:22:24]line Наличными: 0.00 [00:22:24]line Безнал.: 3000.76 [00:22:24]line Место: АЗС № 133 "Партнер Нефть" [00:22:24]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [00:22:24]line СНО: Общий режим [00:22:24]line Чек 2 23.10.2024 00:22 [00:22:24]line Смена: 536 ФФД: 1.0 [00:22:24]line ЗНМ: 0300000091 [00:22:24]line РНМ: 0000000000091685 [00:22:24]line Версия ККМ: 001 [00:22:24]line Платежная система: Mbank [00:22:24]line ФМ: 0000000000871839 [00:22:24]line ФД: 228466 [00:22:24]line ФПД: 218795608232228 [00:22:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T002223&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228466&fm=218795608232228&tin=02508201610067®Number=0000000000091685&sum=300076 [00:22:24]OFD Sender: Processing packet 228466 [packets to send 38, broken 37] [00:22:24]ProducePacketName [00:22:24]name=ofd_packets/00228466 [00:22:24]OFD Sender: To server: pG, [00:22:24]CommunicateWithHost lk.salyk.kg:30040 [00:22:24]ConnectInit lk.salyk.kg [00:22:24]written 0, free lines is 4095 [00:22:24]Connected sock=10 [00:22:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 64 73 04 01 95 D0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 BF 41 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 72 7C 03 00 35 04 06 00 C6 FE 52 81 D1 24 2A 74 43 00 84 26 72 A7 [00:22:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 69 D7 47 00 C7 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 72 7C 03 00 F4 03 04 00 B6 EC 17 67 B6 04 01 00 00 D5 69 28 F1 C9 CB F3 AA [00:22:24]CommunicateWithHost err = 0 [00:22:24]CheckOFDResponse [00:22:24]1017 (14) - 77093643461234 [00:22:24]1041 (16) - 0000000000871839 [00:22:24]1040 (4) - 228466 [00:22:24]1012 (4) - 22.10.2024 18:19 [00:22:24]1206 (1) - 0 [00:22:24]OFD Sender: Remove packet 228466 [00:22:24]ProducePacketName [00:22:24]name=ofd_packets/00228466 [00:22:24]NVStorageDeleteData [00:22:24]Write to MH i2c: 01 00 00 9F 0D AC [00:22:24]Write i2c OK [00:22:24]MH_I2C_Read... [00:22:24]Read from MH i2c: 01 [00:22:24]MH_I2C_Read... [00:22:24]Read from MH i2c: 01 07 00 [00:22:24]MH_I2C_Read... [00:22:24]Read from MH i2c: 01 07 00 9F 0D 00 00 00 00 00 E1 0C A0 [00:22:24]RasterBufferAndPrint [00:22:24]line [00:22:24]line [00:22:24]line [00:22:24]line [00:22:24]line [00:22:24]written 0, free lines is 3306 [00:22:24]MH_Cut [00:22:24]Write to MH i2c: D1 01 00 A6 0D 01 85 [00:22:24]Write i2c OK [00:22:24]MH_I2C_Read... [00:22:24]Read from MH i2c: D1 [00:22:24]MH_I2C_Read... [00:22:24]Read from MH i2c: D1 01 00 [00:22:24]MH_I2C_Read... [00:22:24]Read from MH i2c: D1 01 00 A6 0D 00 84 [00:22:24]Write to MH i2c: 01 00 00 A7 0D B4 [00:22:24]Write i2c OK [00:22:24]MH_I2C_Read... [00:22:25]OFD Sender: No OFD packet to send [00:22:25]*** Cut start [00:22:25]*** Partial cut [00:22:25]*** CUTSNS_PIN = 1 [00:22:25]*** CUTSNS_PIN = 0 [00:22:26]*** Brake cut motor [00:22:26]Read from MH i2c: 01 [00:22:26]MH_I2C_Read... [00:22:26]*** Stop cut motor [00:22:26]*** Cut end [00:22:26]Read from MH i2c: 01 07 00 [00:22:26]MH_I2C_Read... [00:22:26]Read from MH i2c: 01 07 00 A7 0D 00 00 00 00 00 FF 0F C9 [00:22:26]process_action close_receipt done [00:22:26]requested_data is exist [00:22:26]produce_requested_data [00:22:26]requested_item fm.sn is exist - process it [00:22:26]wFMCommunicate request_size=4 [00:22:26]MH_SAM_APDU [00:22:26]CAPDU: 80 11 00 00 [00:22:26]Write to MH i2c: E2 08 00 A8 0D 80 11 00 00 00 00 00 00 2F [00:22:26]Write i2c OK [00:22:26]MH_I2C_Read... [00:22:26]Read from MH i2c: E2 [00:22:26]MH_I2C_Read... [00:22:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:22:26]Read from MH i2c: E2 17 00 [00:22:26]MH_I2C_Read... [00:22:26]Read from MH i2c: E2 17 00 A8 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 86 [00:22:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:22:26]wFMCommunicate OK [00:22:26]requested_item fd.num is exist - process it [00:22:26]SAM_PROTO_GetFieldsCounters [00:22:26]wFMCommunicate request_size=4 [00:22:26]MH_SAM_APDU [00:22:26]CAPDU: 80 13 00 00 [00:22:26]Write to MH i2c: E2 08 00 A9 0D 80 13 00 00 00 00 00 00 32 [00:22:26]Write i2c OK [00:22:26]MH_I2C_Read... [00:22:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:22:26]Read from MH i2c: E2 [00:22:26]MH_I2C_Read... [00:22:26]Read from MH i2c: E2 62 00 [00:22:26]MH_I2C_Read... [00:22:26]Read from MH i2c: E2 62 00 A9 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 72 7C 03 00 0E 04 04 00 18 02 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 6C [00:22:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 72 7C 03 00 0E 04 04 00 18 02 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:22:26]wFMCommunicate OK [00:22:26]SAM_PROTO_GetFieldsCounters done [00:22:26]requested_item shift.num is exist - process it [00:22:26]requested_item shift.opened is exist - process it [00:22:26]req_shift_opened [00:22:26]FM_GetShiftState [00:22:26]SAM_PROTO_GetShiftState [00:22:26]wFMCommunicate request_size=4 [00:22:26]MH_SAM_APDU [00:22:26]CAPDU: 80 13 01 00 [00:22:26]Write to MH i2c: E2 08 00 AA 0D 80 13 01 00 00 00 00 00 34 [00:22:26]Write i2c OK [00:22:26]MH_I2C_Read... [00:22:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:22:26]Read from MH i2c: E2 [00:22:26]MH_I2C_Read... [00:22:26]Read from MH i2c: E2 0E 00 [00:22:26]MH_I2C_Read... [00:22:26]Read from MH i2c: E2 0E 00 AA 0D 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 6E [00:22:26]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [00:22:26]wFMCommunicate OK [00:22:26]SAM_PROTO_GetShiftState done [00:22:26]FM_GetShiftState done [00:22:26]req_shift_opened done [00:22:26]requested_item shift.open_date is exist - process it [00:22:26]req_shift_open_date [00:22:26]req_shift_open_date done [00:22:26]produce_requested_data done [00:22:26]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228466,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352} [00:22:26]process_action_free close_receipt [00:22:26]json_value_free [00:22:26]json_value_free done [00:22:26]process_json_proto returns [00:22:26]Send response to host [00:22:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228466,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352}}} [00:22:26]free response buf [00:22:26]execute_script done [00:22:26]execute_script returns [00:22:26]free content buf [00:22:26]Sock 7.Close socket [00:22:26]Sock 7.Thread stoped [00:22:30]OFD Sender: No OFD packet to send [00:22:35]OFD Sender: No OFD packet to send [00:22:40]OFD Sender: No OFD packet to send [00:22:45]OFD Sender: No OFD packet to send [00:22:50]OFD Sender: No OFD packet to send [00:22:55]OFD Sender: No OFD packet to send [00:23:00]OFD Sender: No OFD packet to send [00:23:05]OFD Sender: No OFD packet to send [00:23:10]OFD Sender: No OFD packet to send [00:23:15]OFD Sender: No OFD packet to send [00:23:20]OFD Sender: No OFD packet to send [00:23:25]OFD Sender: No OFD packet to send [00:23:30]OFD Sender: No OFD packet to send [00:23:35]OFD Sender: No OFD packet to send [00:23:40]OFD Sender: No OFD packet to send [00:23:45]OFD Sender: No OFD packet to send [00:23:50]OFD Sender: No OFD packet to send [00:23:55]OFD Sender: No OFD packet to send [00:24:00]OFD Sender: No OFD packet to send [00:24:05]OFD Sender: No OFD packet to send [00:24:10]OFD Sender: No OFD packet to send [00:24:15]OFD Sender: No OFD packet to send [00:24:20]OFD Sender: No OFD packet to send [00:24:25]OFD Sender: No OFD packet to send [00:24:30]OFD Sender: No OFD packet to send [00:24:35]OFD Sender: No OFD packet to send [00:24:40]OFD Sender: No OFD packet to send [00:24:45]OFD Sender: No OFD packet to send [00:24:50]OFD Sender: No OFD packet to send [00:24:55]OFD Sender: No OFD packet to send [00:25:00]OFD Sender: No OFD packet to send [00:25:05]OFD Sender: No OFD packet to send [00:25:10]accept exits with 9 [00:25:10]New connection [00:25:10]New thread 3066977636 created [00:25:10]Thread 3066834276 joined [00:25:10]Waiting for new connection... [00:25:10] Sock 9.Parse request [00:25:10]Sock 9.Check first char [00:25:10]Sock 9.First char is OK [00:25:10]request: POST /json_proto HTTP/1.0 [00:25:10]Method: POST [00:25:10]URL: /json_proto [00:25:10]Method is POST - this is cgi request [00:25:10]url: /json_proto [00:25:10]query_string will be loaded in cgi processing [00:25:10]execute_cgi json_proto POST (null) [00:25:10]execute_cgi path=json_proto method=POST [00:25:10]POST find Content-Length [00:25:10]Host: 172.17.44.195:8080 [00:25:10]Content-Length: 678 [00:25:10]Content-Type: application/json [00:25:10] [00:25:10]POST finish read [00:25:10]Found Content-Length = 678 [00:25:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965136", "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" : 66.90, "quantity" : 5.980, "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" ] } } [00:25:10]execute_script... [00:25: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)1965136", "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" : 66.90, "quantity" : 5.980, "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" ] } } [00:25:10]POST & json_proto [00:25:10]process_json_proto [00:25:10]json parsed OK: [00:25:10]protocol is kg_v1.0 [00:25:10]action value=close_receipt [00:25:10]process_action close_receipt [00:25:10]cmd_close_receipt [00:25:10]MH_GetDate [00:25:10]Write to MH i2c: F0 00 00 AB 0D A7 [00:25:10]Write i2c OK [00:25:10]MH_I2C_Read... [00:25:10]Read from MH i2c: F0 [00:25:10]MH_I2C_Read... [00:25:10]Read from MH i2c: F0 09 00 [00:25:10]MH_I2C_Read... [00:25:10]Read from MH i2c: F0 09 00 AB 0D 00 67 42 18 67 82 C9 CF 66 58 [00:25:10]GetLastDocTimeStamp 1729642943 [00:25:10]current date 1729643111 [00:25:10]FM_GetShiftState [00:25:10]SAM_PROTO_GetShiftState [00:25:10]wFMCommunicate request_size=4 [00:25:10]MH_SAM_APDU [00:25:10]CAPDU: 80 13 01 00 [00:25:10]Write to MH i2c: E2 08 00 AC 0D 80 13 01 00 00 00 00 00 36 [00:25:10]Write i2c OK [00:25:10]MH_I2C_Read... [00:25:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:10]Read from MH i2c: E2 [00:25:10]MH_I2C_Read... [00:25:10]Read from MH i2c: E2 0E 00 [00:25:10]MH_I2C_Read... [00:25:10]Read from MH i2c: E2 0E 00 AC 0D 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 70 [00:25:10]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [00:25:10]wFMCommunicate OK [00:25:10]SAM_PROTO_GetShiftState done [00:25:10]FM_GetShiftState done [00:25:10]opened in 1729642352 [00:25:10]opened+sec_in_day 1729728752 [00:25:10]quantity*price = 40006 [00:25:10]sum+1 = 40007 [00:25:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 3 23.10.2024 00:25 Смена: 536 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228467 ФПД: 219656482748995 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T002511&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228467&fm=219656482748995&tin=02508201610067®Number=0000000000091685&sum=40000 [00:25:11]StoreToDocumentArchive [00:25:11]shift 536 fd 228467 [00:25:11]save to /storage/0536/doc_00228467 [00:25:11]save last doc name /storage/0536/doc_00228467 to /storage/kkm_last_doc_name [00:25:11]save OK [00:25:11]Clear old archive folders... [00:25:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:25:11]tlvbuf is 002B3320 [00:25:11]SAM_PROTO_ClearQueue [00:25:11]wFMCommunicate request_size=4 [00:25:11]MH_SAM_APDU [00:25:11]CAPDU: 80 09 00 00 [00:25:11]Write to MH i2c: E2 08 00 B9 0D 80 09 00 00 00 00 00 00 38 [00:25:11]Write i2c OK [00:25:11]MH_I2C_Read... [00:25:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:25:11]Read from MH i2c: E2 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: E2 03 00 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: E2 03 00 B9 0D 00 90 00 3A [00:25:11]RAPDU: 90 00 [00:25:11]wFMCommunicate OK [00:25:11]SAM_PROTO_ClearQueue done [00:25:11]KKMCreateOFDPacket [00:25:11]OFDProtocolAddRootSTLVToBuf [00:25:11]FM_MakeSignedData [00:25:11]FM_MakeSignedData [00:25:11]SAM_PROTO_SignData [00:25:11]wFMCommunicate request_size=4 [00:25:11]MH_SAM_APDU [00:25:11]CAPDU: 80 0D 01 02 [00:25:11]Write to MH i2c: E2 08 00 BA 0D 80 0D 01 02 00 00 00 00 40 [00:25:11]Write i2c OK [00:25:11]MH_I2C_Read... [00:25:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:25:11]Read from MH i2c: E2 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: E2 03 00 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: E2 03 00 BA 0D 00 90 00 3B [00:25:11]RAPDU: 90 00 [00:25:11]wFMCommunicate OK [00:25:11]wFMCommunicate request_size=255 [00:25:11]MH_SAM_APDU [00:25: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 03 00 00 00 F4 03 04 00 67 42 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 73 7C 03 00 35 04 06 00 C7 [00:25:11]Write to MH i2c: E2 02 01 BB 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 03 00 00 00 F4 03 04 00 67 42 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 73 7C 03 00 35 04 06 00 C7 00 00 A4 [00:25:11]Write i2c OK [00:25:11]MH_I2C_Read... [00:25:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:11]Read from MH i2c: E2 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: E2 03 00 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: E2 03 00 BB 0D 00 90 00 3C [00:25:11]RAPDU: 90 00 [00:25:11]wFMCommunicate OK [00:25:11]wFMCommunicate request_size=10 [00:25:11]MH_SAM_APDU [00:25:11]CAPDU: 80 0D 02 02 05 C6 C2 A0 7A 43 [00:25:11]Write to MH i2c: E2 0D 00 BC 0D 80 0D 02 02 05 00 C6 C2 A0 7A 43 00 00 32 [00:25:11]Write i2c OK [00:25:11]MH_I2C_Read... [00:25:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:11]Read from MH i2c: E2 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: E2 03 00 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: E2 03 00 BC 0D 00 90 00 3D [00:25:11]RAPDU: 90 00 [00:25:11]wFMCommunicate OK [00:25:11]wFMCommunicate request_size=4 [00:25:11]MH_SAM_APDU [00:25:11]CAPDU: 80 0D 03 02 [00:25:11]Write to MH i2c: E2 08 00 BD 0D 80 0D 03 02 00 00 00 00 45 [00:25:11]Write i2c OK [00:25:11]MH_I2C_Read... [00:25:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:25:11]Read from MH i2c: E2 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: E2 0B 00 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: E2 0B 00 BD 0D 00 A4 5D 0A AC CC 8F 45 37 90 00 D4 [00:25:11]RAPDU: A4 5D 0A AC CC 8F 45 37 90 00 [00:25:11]wFMCommunicate OK [00:25:11]SAM_PROTO_SignData done [00:25:11]FM_MakeSignedData done [00:25:11]CreateOFDProtocolMessage [00:25:11]wFMCommunicate request_size=4 [00:25:11]MH_SAM_APDU [00:25:11]CAPDU: 80 11 00 00 [00:25:11]Write to MH i2c: E2 08 00 BE 0D 80 11 00 00 00 00 00 00 45 [00:25:11]Write i2c OK [00:25:11]MH_I2C_Read... [00:25:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:11]Read from MH i2c: E2 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: E2 17 00 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: E2 17 00 BE 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9C [00:25:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:25:11]wFMCommunicate OK [00:25:11]CreateOFDProtocolMessage done [00:25:11]OFDSenderStorePacket 228467 [00:25:11]StoreOFDPacket docnum=228467 [00:25:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 CC 4D 07 01 2B 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 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 03 00 00 00 F4 03 04 00 67 42 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 73 7C 03 00 35 04 06 00 C7 C6 C2 A0 7A 43 A4 5D 0A AC CC 8F 45 37 [00:25:11]CheckFolder [00:25:11]dirname=/storage/ofd_packets [00:25:11]CheckFolder done [00:25:11]ProducePacketName [00:25:11]name=ofd_packets/00228467 [00:25:11]NVStorageSaveData ofd_packets/00228467 [00:25:11]File name is /storage/ofd_packets/00228467 [00:25:11]Write 301 bytes [00:25:11]NVStorageSaveData done [00:25:11]OFDSenderStorePacket done [00:25:11]KKMCreateOFDPacket done [00:25:11]NVStorageSaveData kkm_last_timestamp [00:25:11]File name is /storage/kkm_last_timestamp [00:25:11]Write 4 bytes [00:25:11]NVStorageSaveData done [00:25:11]ExternCall_PrintAddStr [00:25:11]wPrintStart [00:25:11]Write to MH i2c: 01 00 00 BF 0D CC [00:25:11]OFD Sender: Processing packet 228467 [packets to send 38, broken 37] [00:25:11]ProducePacketName [00:25:11]name=ofd_packets/00228467 [00:25:11]OFD Sender: To server: pG, [00:25:11]CommunicateWithHost lk.salyk.kg:30040 [00:25:11]ConnectInit lk.salyk.kg [00:25:11]Write i2c OK [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: 01 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: 01 07 00 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: 01 07 00 BF 0D 00 00 00 00 00 FF 0F E1 [00:25:11]RasterBufferAndPrint [00:25:11]line Счет N : (1)1965136 [00:25:11]line ИНН: 02508201610067 [00:25:11]line Контрольно-Кассовый Чек [00:25:11]line ПРОДАЖА [00:25:11]line ТРК (МРК, ГНК) : 53 [00:25:11]line Товар: 2710124130 [00:25:11]line Аи-92-К-5 [00:25:11]line 5.980 * 66.90 [00:25:11]line = 400.06 [00:25:11]line НДС 12% НСП 1% [00:25:11]line > о реализуемом товаре [00:25:11]line ОКРУГЛЕНИЕ: -0.06 [00:25:11]line ИТОГО: 400.00 [00:25:11]line Внесено: 400.00 [00:25:11]line СДАЧА: 0.00 [00:25:11]line НСП 1% : 3.54 [00:25:11]line НДС 12% : 42.48 [00:25:11]line Наличными: 400.00 [00:25:11]line Безнал.: 0.00 [00:25:11]line Место: АЗС № 133 "Партнер Нефть" [00:25:11]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [00:25:11]line СНО: Общий режим [00:25:11]line Чек 3 23.10.2024 00:25 [00:25:11]line Смена: 536 ФФД: 1.0 [00:25:11]line ЗНМ: 0300000091 [00:25:11]line РНМ: 0000000000091685 [00:25:11]line Версия ККМ: 001 [00:25:11]line ФМ: 0000000000871839 [00:25:11]line ФД: 228467 [00:25:11]line ФПД: 219656482748995 [00:25:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T002511&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228467&fm=219656482748995&tin=02508201610067®Number=0000000000091685&sum=40000 [00:25:12]Connected sock=10 [00:25:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 CC 4D 07 01 2B 44 5A 03 01 00 03 00 written 0, free lines is 4095 [00:25:12]FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 22 1A 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 03 00 00 00 F4 03 04 00 67 42 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 73 7C 03 00 35 04 06 00 C7 C6 C2 A0 7A 43 A4 5D 0A AC CC 8F 45 37 [00:25:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 12 F9 47 00 A6 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 73 7C 03 00 F4 03 04 00 5D ED 17 67 B6 04 01 00 00 C9 32 98 5D EF 7B B6 22 [00:25:12]CommunicateWithHost err = 0 [00:25:12]CheckOFDResponse [00:25:12]1017 (14) - 77093643461234 [00:25:12]1041 (16) - 0000000000871839 [00:25:12]1040 (4) - 228467 [00:25:12]1012 (4) - 22.10.2024 18:22 [00:25:12]1206 (1) - 0 [00:25:12]OFD Sender: Remove packet 228467 [00:25:12]ProducePacketName [00:25:12]name=ofd_packets/00228467 [00:25:12]NVStorageDeleteData [00:25:12]Write to MH i2c: 01 00 00 E9 0D F6 [00:25:12]Write i2c OK [00:25:12]MH_I2C_Read... [00:25:12]Read from MH i2c: 01 [00:25:12]MH_I2C_Read... [00:25:12]Read from MH i2c: 01 07 00 [00:25:12]MH_I2C_Read... [00:25:12]Read from MH i2c: 01 07 00 E9 0D 00 00 00 00 00 9E 0C A7 [00:25:12]RasterBufferAndPrint [00:25:12]line [00:25:12]line [00:25:12]line [00:25:12]line [00:25:12]line [00:25:12]written 0, free lines is 3234 [00:25:12]MH_Cut [00:25:12]Write to MH i2c: D1 01 00 F0 0D 01 CF [00:25:12]Write i2c OK [00:25:12]MH_I2C_Read... [00:25:12]Read from MH i2c: D1 [00:25:12]MH_I2C_Read... [00:25:12]Read from MH i2c: D1 01 00 [00:25:12]MH_I2C_Read... [00:25:12]Read from MH i2c: D1 01 00 F0 0D 00 CE [00:25:12]Write to MH i2c: 01 00 00 F1 0D FE [00:25:12]Write i2c OK [00:25:12]MH_I2C_Read... [00:25:12]OFD Sender: No OFD packet to send [00:25:13]*** Cut start [00:25:13]*** Partial cut [00:25:13]*** CUTSNS_PIN = 1 [00:25:13]*** CUTSNS_PIN = 0 [00:25:13]*** Brake cut motor [00:25:14]Read from MH i2c: 01 [00:25:14]MH_I2C_Read... [00:25:14]*** Stop cut motor [00:25:14]*** Cut end [00:25:14]Read from MH i2c: 01 07 00 [00:25:14]MH_I2C_Read... [00:25:14]Read from MH i2c: 01 07 00 F1 0D 00 00 00 00 00 FF 0F 13 [00:25:14]process_action close_receipt done [00:25:14]requested_data is exist [00:25:14]produce_requested_data [00:25:14]requested_item fm.sn is exist - process it [00:25:14]wFMCommunicate request_size=4 [00:25:14]MH_SAM_APDU [00:25:14]CAPDU: 80 11 00 00 [00:25:14]Write to MH i2c: E2 08 00 F2 0D 80 11 00 00 00 00 00 00 79 [00:25:14]Write i2c OK [00:25:14]MH_I2C_Read... [00:25:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:14]Read from MH i2c: E2 [00:25:14]MH_I2C_Read... [00:25:14]Read from MH i2c: E2 17 00 [00:25:14]MH_I2C_Read... [00:25:14]Read from MH i2c: E2 17 00 F2 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D0 [00:25:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:25:14]wFMCommunicate OK [00:25:14]requested_item fd.num is exist - process it [00:25:14]SAM_PROTO_GetFieldsCounters [00:25:14]wFMCommunicate request_size=4 [00:25:14]MH_SAM_APDU [00:25:14]CAPDU: 80 13 00 00 [00:25:14]Write to MH i2c: E2 08 00 F3 0D 80 13 00 00 00 00 00 00 7C [00:25:14]Write i2c OK [00:25:14]MH_I2C_Read... [00:25:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:25:14]Read from MH i2c: E2 [00:25:14]MH_I2C_Read... [00:25:14]Read from MH i2c: E2 62 00 [00:25:14]MH_I2C_Read... [00:25:14]Read from MH i2c: E2 62 00 F3 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 73 7C 03 00 0E 04 04 00 18 02 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 BA [00:25:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 73 7C 03 00 0E 04 04 00 18 02 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:25:14]wFMCommunicate OK [00:25:14]SAM_PROTO_GetFieldsCounters done [00:25:14]requested_item shift.num is exist - process it [00:25:14]requested_item shift.opened is exist - process it [00:25:14]req_shift_opened [00:25:14]FM_GetShiftState [00:25:14]SAM_PROTO_GetShiftState [00:25:14]wFMCommunicate request_size=4 [00:25:14]MH_SAM_APDU [00:25:14]CAPDU: 80 13 01 00 [00:25:14]Write to MH i2c: E2 08 00 F4 0D 80 13 01 00 00 00 00 00 7E [00:25:14]Write i2c OK [00:25:14]MH_I2C_Read... [00:25:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:14]Read from MH i2c: E2 [00:25:14]MH_I2C_Read... [00:25:14]Read from MH i2c: E2 0E 00 [00:25:14]MH_I2C_Read... [00:25:14]Read from MH i2c: E2 0E 00 F4 0D 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 B8 [00:25:14]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [00:25:14]wFMCommunicate OK [00:25:14]SAM_PROTO_GetShiftState done [00:25:14]FM_GetShiftState done [00:25:14]req_shift_opened done [00:25:14]requested_item shift.open_date is exist - process it [00:25:14]req_shift_open_date [00:25:14]req_shift_open_date done [00:25:14]produce_requested_data done [00:25:14]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228467,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352} [00:25:14]process_action_free close_receipt [00:25:14]json_value_free [00:25:14]json_value_free done [00:25:14]process_json_proto returns [00:25:14]Send response to host [00:25:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228467,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352}}} [00:25:14]free response buf [00:25:14]execute_script done [00:25:14]execute_script returns [00:25:14]free content buf [00:25:14]Sock 9.Close socket [00:25:14]Sock 9.Thread stoped [00:25:17]OFD Sender: No OFD packet to send [00:25:22]OFD Sender: No OFD packet to send [00:25:27]OFD Sender: No OFD packet to send [00:25:32]OFD Sender: No OFD packet to send [00:25:37]OFD Sender: No OFD packet to send [00:25:42]OFD Sender: No OFD packet to send [00:25:47]OFD Sender: No OFD packet to send [00:25:52]OFD Sender: No OFD packet to send [00:25:57]OFD Sender: No OFD packet to send [00:26:02]OFD Sender: No OFD packet to send [00:26:07]OFD Sender: No OFD packet to send [00:26:12]OFD Sender: No OFD packet to send [00:26:17]OFD Sender: No OFD packet to send [00:26:22]OFD Sender: No OFD packet to send [00:26:27]OFD Sender: No OFD packet to send [00:26:32]OFD Sender: No OFD packet to send [00:26:37]OFD Sender: No OFD packet to send [00:26:42]OFD Sender: No OFD packet to send [00:26:45]accept exits with 7 [00:26:45]New connection [00:26:45]New thread 3066834276 created [00:26:45]Thread 3066977636 joined [00:26:45]Waiting for new connection... [00:26:45] Sock 7.Parse request [00:26:45]Sock 7.Check first char [00:26:45]Sock 7.First char is OK [00:26:45]request: POST /json_proto HTTP/1.0 [00:26:45]Method: POST [00:26:45]URL: /json_proto [00:26:45]Method is POST - this is cgi request [00:26:45]url: /json_proto [00:26:45]query_string will be loaded in cgi processing [00:26:45]execute_cgi json_proto POST (null) [00:26:45]execute_cgi path=json_proto method=POST [00:26:45]POST find Content-Length [00:26:45]Host: 172.17.44.195:8080 [00:26:45]Content-Length: 678 [00:26:45]Content-Type: application/json [00:26:45] [00:26:45]POST finish read [00:26:45]Found Content-Length = 678 [00:26:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965137", "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" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:45]execute_script... [00: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)1965137", "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" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:45]POST & json_proto [00:26:45]process_json_proto [00:26:45]json parsed OK: [00:26:45]protocol is kg_v1.0 [00:26:45]action value=close_receipt [00:26:45]process_action close_receipt [00:26:45]cmd_close_receipt [00:26:45]MH_GetDate [00:26:45]Write to MH i2c: F0 00 00 F5 0D F1 [00:26:45]Write i2c OK [00:26:45]MH_I2C_Read... [00:26:45]Read from MH i2c: F0 [00:26:45]MH_I2C_Read... [00:26:45]Read from MH i2c: F0 09 00 [00:26:45]MH_I2C_Read... [00:26:45]Read from MH i2c: F0 09 00 F5 0D 00 C7 42 18 67 82 C9 CF 66 02 [00:26:45]GetLastDocTimeStamp 1729643111 [00:26:45]current date 1729643207 [00:26:45]FM_GetShiftState [00:26:45]SAM_PROTO_GetShiftState [00:26:45]wFMCommunicate request_size=4 [00:26:45]MH_SAM_APDU [00:26:45]CAPDU: 80 13 01 00 [00:26:45]Write to MH i2c: E2 08 00 F6 0D 80 13 01 00 00 00 00 00 80 [00:26:45]Write i2c OK [00:26:45]MH_I2C_Read... [00:26:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:46]Read from MH i2c: E2 [00:26:46]MH_I2C_Read... [00:26:46]Read from MH i2c: E2 0E 00 [00:26:46]MH_I2C_Read... [00:26:46]Read from MH i2c: E2 0E 00 F6 0D 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 BA [00:26:46]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [00:26:46]wFMCommunicate OK [00:26:46]SAM_PROTO_GetShiftState done [00:26:46]FM_GetShiftState done [00:26:46]opened in 1729642352 [00:26:46]opened+sec_in_day 1729728752 [00:26:46]quantity*price = 20003 [00:26:46]sum+1 = 20004 [00:26:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 4 23.10.2024 00:26 Смена: 536 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228468 ФПД: 262437251273225 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T002647&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228468&fm=262437251273225&tin=02508201610067®Number=0000000000091685&sum=20000 [00:26:47]StoreToDocumentArchive [00:26:47]shift 536 fd 228468 [00:26:47]save to /storage/0536/doc_00228468 [00:26:47]save last doc name /storage/0536/doc_00228468 to /storage/kkm_last_doc_name [00:26:47]save OK [00:26:47]Clear old archive folders... [00:26:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:26:47]tlvbuf is 00285840 [00:26:47]SAM_PROTO_ClearQueue [00:26:47]wFMCommunicate request_size=4 [00:26:47]MH_SAM_APDU [00:26:47]CAPDU: 80 09 00 00 [00:26:47]Write to MH i2c: E2 08 00 03 0E 80 09 00 00 00 00 00 00 83 [00:26:47]Write i2c OK [00:26:47]MH_I2C_Read... [00:26:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:26:47]Read from MH i2c: E2 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 03 00 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 03 00 03 0E 00 90 00 85 [00:26:47]RAPDU: 90 00 [00:26:47]wFMCommunicate OK [00:26:47]SAM_PROTO_ClearQueue done [00:26:47]KKMCreateOFDPacket [00:26:47]OFDProtocolAddRootSTLVToBuf [00:26:47]FM_MakeSignedData [00:26:47]FM_MakeSignedData [00:26:47]SAM_PROTO_SignData [00:26:47]wFMCommunicate request_size=4 [00:26:47]MH_SAM_APDU [00:26:47]CAPDU: 80 0D 01 02 [00:26:47]Write to MH i2c: E2 08 00 04 0E 80 0D 01 02 00 00 00 00 8B [00:26:47]Write i2c OK [00:26:47]MH_I2C_Read... [00:26:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:26:47]Read from MH i2c: E2 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 03 00 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 03 00 04 0E 00 90 00 86 [00:26:47]RAPDU: 90 00 [00:26:47]wFMCommunicate OK [00:26:47]wFMCommunicate request_size=255 [00:26:47]MH_SAM_APDU [00:26: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 C7 42 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 74 7C 03 00 35 04 06 00 EE [00:26:47]Write to MH i2c: E2 02 01 05 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 C7 42 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 74 7C 03 00 35 04 06 00 EE 00 00 6B [00:26:47]Write i2c OK [00:26:47]MH_I2C_Read... [00:26:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:47]Read from MH i2c: E2 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 03 00 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 03 00 05 0E 00 90 00 87 [00:26:47]RAPDU: 90 00 [00:26:47]wFMCommunicate OK [00:26:47]wFMCommunicate request_size=10 [00:26:47]MH_SAM_APDU [00:26:47]CAPDU: 80 0D 02 02 05 AF 6F 23 52 09 [00:26:47]Write to MH i2c: E2 0D 00 06 0E 80 0D 02 02 05 00 AF 6F 23 52 09 00 00 34 [00:26:47]Write i2c OK [00:26:47]MH_I2C_Read... [00:26:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:47]Read from MH i2c: E2 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 03 00 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 03 00 06 0E 00 90 00 88 [00:26:47]RAPDU: 90 00 [00:26:47]wFMCommunicate OK [00:26:47]wFMCommunicate request_size=4 [00:26:47]MH_SAM_APDU [00:26:47]CAPDU: 80 0D 03 02 [00:26:47]Write to MH i2c: E2 08 00 07 0E 80 0D 03 02 00 00 00 00 90 [00:26:47]Write i2c OK [00:26:47]MH_I2C_Read... [00:26:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:26:47]Read from MH i2c: E2 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 0B 00 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 0B 00 07 0E 00 DE 4D F7 18 6A 21 07 DD 90 00 3A [00:26:47]RAPDU: DE 4D F7 18 6A 21 07 DD 90 00 [00:26:47]wFMCommunicate OK [00:26:47]SAM_PROTO_SignData done [00:26:47]FM_MakeSignedData done [00:26:47]CreateOFDProtocolMessage [00:26:47]wFMCommunicate request_size=4 [00:26:47]MH_SAM_APDU [00:26:47]CAPDU: 80 11 00 00 [00:26:47]Write to MH i2c: E2 08 00 08 0E 80 11 00 00 00 00 00 00 90 [00:26:47]Write i2c OK [00:26:47]MH_I2C_Read... [00:26:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:26:47]Read from MH i2c: E2 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 17 00 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 17 00 08 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E7 [00:26:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:26:47]wFMCommunicate OK [00:26:47]CreateOFDProtocolMessage done [00:26:47]OFDSenderStorePacket 228468 [00:26:47]StoreOFDPacket docnum=228468 [00:26:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 7A 7F 07 01 76 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 C7 42 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 74 7C 03 00 35 04 06 00 EE AF 6F 23 52 09 DE 4D F7 18 6A 21 07 DD [00:26:47]CheckFolder [00:26:47]dirname=/storage/ofd_packets [00:26:47]CheckFolder done [00:26:47]ProducePacketName [00:26:47]name=ofd_packets/00228468 [00:26:47]NVStorageSaveData ofd_packets/00228468 [00:26:47]File name is /storage/ofd_packets/00228468 [00:26:47]Write 301 bytes [00:26:47]NVStorageSaveData done [00:26:47]OFDSenderStorePacket done [00:26:47]KKMCreateOFDPacket done [00:26:47]NVStorageSaveData kkm_last_timestamp [00:26:47]File name is /storage/kkm_last_timestamp [00:26:47]Write 4 bytes [00:26:47]NVStorageSaveData done [00:26:47]ExternCall_PrintAddStr [00:26:47]wPrintStart [00:26:47]Write to MH i2c: 01 00 00 09 0E 17 [00:26:47]Write i2c OK [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: 01 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: 01 07 00 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: 01 07 00 09 0E 00 00 00 00 00 FF 0F 2C [00:26:47]RasterBufferAndPrint [00:26:47]line Счет N : (1)1965137 [00:26:47]line ИНН: 02508201610067 [00:26:47]line Контрольно-Кассовый Чек [00:26:47]line ПРОДАЖА [00:26:47]line ТРК (МРК, ГНК) : 53 [00:26:47]line Товар: 2710124130 [00:26:47]line Аи-92-К-5 [00:26:47]line 2.990 * 66.90 [00:26:47]line = 200.03 [00:26:47]line НДС 12% НСП 1% [00:26:47]line > о реализуемом товаре [00:26:47]line ОКРУГЛЕНИЕ: -0.03 [00:26:47]line ИТОГО: 200.00 [00:26:47]line Внесено: 200.00 [00:26:47]line СДАЧА: 0.00 [00:26:47]line НСП 1% : 1.77 [00:26:47]line НДС 12% : 21.24 [00:26:47]line Наличными: 200.00 [00:26:47]line Безнал.: 0.00 [00:26:47]line Место: АЗС № 133 "Партнер Нефть" [00:26:47]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [00:26:47]line СНО: Общий режим [00:26:47]line Чек 4 23.10.2024 00:26 [00:26:47]line Смена: 536 ФФД: 1.0 [00:26:47]line ЗНМ: 0300000091 [00:26:47]line РНМ: 0000000000091685 [00:26:47]line Версия ККМ: 001 [00:26:47]line ФМ: 0000000000871839 [00:26:47]line ФД: 228468 [00:26:47]line ФПД: 262437251273225 [00:26:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T002647&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228468&fm=262437251273225&tin=02508201610067®Number=0000000000091685&sum=20000 [00:26:48]written 0, free lines is 4095 [00:26:48]OFD Sender: Processing packet 228468 [packets to send 38, broken 37] [00:26:48]ProducePacketName [00:26:48]name=ofd_packets/00228468 [00:26:48]OFD Sender: To server: pG, [00:26:48]CommunicateWithHost lk.salyk.kg:30040 [00:26:48]ConnectInit lk.salyk.kg [00:26:48]Connected sock=10 [00:26:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 7A 7F 07 01 76 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 C7 42 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 74 7C 03 00 35 04 06 00 EE AF 6F 23 52 09 DE 4D F7 18 6A 21 07 DD [00:26:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 1C A1 47 00 56 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 74 7C 03 00 F4 03 04 00 BD ED 17 67 B6 04 01 00 00 98 56 02 55 06 E3 E9 70 [00:26:48]CommunicateWithHost err = 0 [00:26:48]CheckOFDResponse [00:26:48]1017 (14) - 77093643461234 [00:26:48]1041 (16) - 0000000000871839 [00:26:48]1040 (4) - 228468 [00:26:48]1012 (4) - 22.10.2024 18:23 [00:26:48]1206 (1) - 0 [00:26:48]OFD Sender: Remove packet 228468 [00:26:48]ProducePacketName [00:26:48]name=ofd_packets/00228468 [00:26:48]NVStorageDeleteData [00:26:48]Write to MH i2c: 01 00 00 33 0E 41 [00:26:48]Write i2c OK [00:26:48]MH_I2C_Read... [00:26:48]Read from MH i2c: 01 [00:26:48]MH_I2C_Read... [00:26:48]Read from MH i2c: 01 07 00 [00:26:48]MH_I2C_Read... [00:26:48]Read from MH i2c: 01 07 00 33 0E 00 00 00 00 00 A0 0C F4 [00:26:48]RasterBufferAndPrint [00:26:48]line [00:26:48]line [00:26:48]line [00:26:48]line [00:26:48]line [00:26:48]written 0, free lines is 3235 [00:26:48]MH_Cut [00:26:48]Write to MH i2c: D1 01 00 3A 0E 01 1A [00:26:48]Write i2c OK [00:26:48]MH_I2C_Read... [00:26:48]Read from MH i2c: D1 [00:26:48]MH_I2C_Read... [00:26:48]Read from MH i2c: D1 01 00 [00:26:48]MH_I2C_Read... [00:26:48]Read from MH i2c: D1 01 00 3A 0E 00 19 [00:26:48]Write to MH i2c: 01 00 00 3B 0E 49 [00:26:48]Write i2c OK [00:26:48]MH_I2C_Read... [00:26:48]OFD Sender: No OFD packet to send [00:26:49]*** Cut start [00:26:49]*** Partial cut [00:26:49]*** CUTSNS_PIN = 1 [00:26:49]*** CUTSNS_PIN = 0 [00:26:49]*** Brake cut motor [00:26:50]Read from MH i2c: 01 [00:26:50]MH_I2C_Read... [00:26:50]*** Stop cut motor [00:26:50]*** Cut end [00:26:50]Read from MH i2c: 01 07 00 [00:26:50]MH_I2C_Read... [00:26:50]Read from MH i2c: 01 07 00 3B 0E 00 00 00 00 00 FF 0F 5E [00:26:50]process_action close_receipt done [00:26:50]requested_data is exist [00:26:50]produce_requested_data [00:26:50]requested_item fm.sn is exist - process it [00:26:50]wFMCommunicate request_size=4 [00:26:50]MH_SAM_APDU [00:26:50]CAPDU: 80 11 00 00 [00:26:50]Write to MH i2c: E2 08 00 3C 0E 80 11 00 00 00 00 00 00 C4 [00:26:50]Write i2c OK [00:26:50]MH_I2C_Read... [00:26:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:26:50]Read from MH i2c: E2 [00:26:50]MH_I2C_Read... [00:26:50]Read from MH i2c: E2 17 00 [00:26:50]MH_I2C_Read... [00:26:50]Read from MH i2c: E2 17 00 3C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1B [00:26:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:26:50]wFMCommunicate OK [00:26:50]requested_item fd.num is exist - process it [00:26:50]SAM_PROTO_GetFieldsCounters [00:26:50]wFMCommunicate request_size=4 [00:26:50]MH_SAM_APDU [00:26:50]CAPDU: 80 13 00 00 [00:26:50]Write to MH i2c: E2 08 00 3D 0E 80 13 00 00 00 00 00 00 C7 [00:26:50]Write i2c OK [00:26:50]MH_I2C_Read... [00:26:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:26:50]Read from MH i2c: E2 [00:26:50]MH_I2C_Read... [00:26:50]Read from MH i2c: E2 62 00 [00:26:50]MH_I2C_Read... [00:26:50]Read from MH i2c: E2 62 00 3D 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 74 7C 03 00 0E 04 04 00 18 02 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 09 [00:26:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 74 7C 03 00 0E 04 04 00 18 02 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:26:50]wFMCommunicate OK [00:26:50]SAM_PROTO_GetFieldsCounters done [00:26:50]requested_item shift.num is exist - process it [00:26:50]requested_item shift.opened is exist - process it [00:26:50]req_shift_opened [00:26:50]FM_GetShiftState [00:26:50]SAM_PROTO_GetShiftState [00:26:50]wFMCommunicate request_size=4 [00:26:50]MH_SAM_APDU [00:26:50]CAPDU: 80 13 01 00 [00:26:50]Write to MH i2c: E2 08 00 3E 0E 80 13 01 00 00 00 00 00 C9 [00:26:50]Write i2c OK [00:26:50]MH_I2C_Read... [00:26:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:50]Read from MH i2c: E2 [00:26:50]MH_I2C_Read... [00:26:50]Read from MH i2c: E2 0E 00 [00:26:50]MH_I2C_Read... [00:26:50]Read from MH i2c: E2 0E 00 3E 0E 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 03 [00:26:50]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [00:26:50]wFMCommunicate OK [00:26:50]SAM_PROTO_GetShiftState done [00:26:50]FM_GetShiftState done [00:26:50]req_shift_opened done [00:26:50]requested_item shift.open_date is exist - process it [00:26:50]req_shift_open_date [00:26:50]req_shift_open_date done [00:26:50]produce_requested_data done [00:26:50]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228468,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352} [00:26:50]process_action_free close_receipt [00:26:50]json_value_free [00:26:50]json_value_free done [00:26:50]process_json_proto returns [00:26:50]Send response to host [00:26:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228468,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352}}} [00:26:50]free response buf [00:26:50]execute_script done [00:26:50]execute_script returns [00:26:50]free content buf [00:26:50]Sock 7.Close socket [00:26:50]Sock 7.Thread stoped [00:26:53]OFD Sender: No OFD packet to send [00:26:58]OFD Sender: No OFD packet to send [00:27:03]OFD Sender: No OFD packet to send [00:27:08]OFD Sender: No OFD packet to send [00:27:13]OFD Sender: No OFD packet to send [00:27:18]OFD Sender: No OFD packet to send [00:27:23]OFD Sender: No OFD packet to send [00:27:28]OFD Sender: No OFD packet to send [00:27:33]OFD Sender: No OFD packet to send [00:27:38]OFD Sender: No OFD packet to send [00:27:43]OFD Sender: No OFD packet to send [00:27:48]OFD Sender: No OFD packet to send [00:27:53]OFD Sender: No OFD packet to send [00:27:58]OFD Sender: No OFD packet to send [00:28:03]OFD Sender: No OFD packet to send [00:28:08]OFD Sender: No OFD packet to send [00:28:13]OFD Sender: No OFD packet to send [00:28:18]OFD Sender: No OFD packet to send [00:28:23]OFD Sender: No OFD packet to send [00:28:28]OFD Sender: No OFD packet to send [00:28:33]OFD Sender: No OFD packet to send [00:28:38]OFD Sender: No OFD packet to send [00:28:43]OFD Sender: No OFD packet to send [00:28:48]OFD Sender: No OFD packet to send [00:28:53]OFD Sender: No OFD packet to send [00:28:58]OFD Sender: No OFD packet to send [00:29:03]OFD Sender: No OFD packet to send [00:29:08]OFD Sender: No OFD packet to send [00:29:13]OFD Sender: No OFD packet to send [00:29:18]OFD Sender: No OFD packet to send [00:29:23]OFD Sender: No OFD packet to send [00:29:28]OFD Sender: No OFD packet to send [00:29:33]OFD Sender: No OFD packet to send [00:29:38]OFD Sender: No OFD packet to send [00:29:43]OFD Sender: No OFD packet to send [00:29:48]OFD Sender: No OFD packet to send [00:29:53]OFD Sender: No OFD packet to send [00:29:59]OFD Sender: No OFD packet to send [00:30:01]accept exits with 9 [00:30:01]New connection [00:30:01]New thread 3066977636 created [00:30:01]Thread 3066834276 joined [00:30:01]Waiting for new connection... [00:30:01] Sock 9.Parse request [00:30:01]Sock 9.Check first char [00:30:01]Sock 9.First char is OK [00:30:01]request: POST /json_proto HTTP/1.0 [00:30:01]Method: POST [00:30:01]URL: /json_proto [00:30:01]Method is POST - this is cgi request [00:30:01]url: /json_proto [00:30:01]query_string will be loaded in cgi processing [00:30:01]execute_cgi json_proto POST (null) [00:30:01]execute_cgi path=json_proto method=POST [00:30:01]POST find Content-Length [00:30:01]Host: 172.17.44.195:8080 [00:30:01]Content-Length: 680 [00:30:01]Content-Type: application/json [00:30:01] [00:30:01]POST finish read [00:30:01]Found Content-Length = 680 [00:30:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965138", "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" : 76.20, "quantity" : 91.870, "sum" : 7000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7000.00, "total" : 7000.00, "payments": [ { "type": 0, "sum" : 7000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:01]execute_script... [00:30: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)1965138", "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" : 76.20, "quantity" : 91.870, "sum" : 7000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7000.00, "total" : 7000.00, "payments": [ { "type": 0, "sum" : 7000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:01]POST & json_proto [00:30:01]process_json_proto [00:30:01]json parsed OK: [00:30:01]protocol is kg_v1.0 [00:30:01]action value=close_receipt [00:30:01]process_action close_receipt [00:30:01]cmd_close_receipt [00:30:01]MH_GetDate [00:30:01]Write to MH i2c: F0 00 00 3F 0E 3C [00:30:01]Write i2c OK [00:30:01]MH_I2C_Read... [00:30:01]Read from MH i2c: F0 [00:30:01]MH_I2C_Read... [00:30:01]Read from MH i2c: F0 09 00 [00:30:01]MH_I2C_Read... [00:30:01]Read from MH i2c: F0 09 00 3F 0E 00 8A 43 18 67 82 C9 CF 66 11 [00:30:01]GetLastDocTimeStamp 1729643207 [00:30:01]current date 1729643402 [00:30:01]FM_GetShiftState [00:30:01]SAM_PROTO_GetShiftState [00:30:01]wFMCommunicate request_size=4 [00:30:01]MH_SAM_APDU [00:30:01]CAPDU: 80 13 01 00 [00:30:01]Write to MH i2c: E2 08 00 40 0E 80 13 01 00 00 00 00 00 CB [00:30:01]Write i2c OK [00:30:01]MH_I2C_Read... [00:30:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:01]Read from MH i2c: E2 [00:30:01]MH_I2C_Read... [00:30:01]Read from MH i2c: E2 0E 00 [00:30:01]MH_I2C_Read... [00:30:01]Read from MH i2c: E2 0E 00 40 0E 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 05 [00:30:01]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [00:30:01]wFMCommunicate OK [00:30:01]SAM_PROTO_GetShiftState done [00:30:01]FM_GetShiftState done [00:30:01]opened in 1729642352 [00:30:01]opened+sec_in_day 1729728752 [00:30:01]quantity*price = 700049 [00:30:01]sum+1 = 700050 [00:30:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 7000.00 Внесено: 7000.00 СДАЧА: 0.00 НСП 1% : 61.95 НДС 12% : 743.41 Наличными: 7000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 5 23.10.2024 00:30 Смена: 536 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228469 ФПД: 214913333263488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T003002&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228469&fm=214913333263488&tin=02508201610067®Number=0000000000091685&sum=700000 [00:30:02]StoreToDocumentArchive [00:30:02]shift 536 fd 228469 [00:30:02]save to /storage/0536/doc_00228469 [00:30:02]save last doc name /storage/0536/doc_00228469 to /storage/kkm_last_doc_name [00:30:02]save OK [00:30:02]Clear old archive folders... [00:30:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:30:02]tlvbuf is 0030E010 [00:30:02]SAM_PROTO_ClearQueue [00:30:02]wFMCommunicate request_size=4 [00:30:02]MH_SAM_APDU [00:30:02]CAPDU: 80 09 00 00 [00:30:02]Write to MH i2c: E2 08 00 4D 0E 80 09 00 00 00 00 00 00 CD [00:30:02]Write i2c OK [00:30:02]MH_I2C_Read... [00:30:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:30:02]Read from MH i2c: E2 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 03 00 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 03 00 4D 0E 00 90 00 CF [00:30:02]RAPDU: 90 00 [00:30:02]wFMCommunicate OK [00:30:02]SAM_PROTO_ClearQueue done [00:30:02]KKMCreateOFDPacket [00:30:02]OFDProtocolAddRootSTLVToBuf [00:30:02]FM_MakeSignedData [00:30:02]FM_MakeSignedData [00:30:02]SAM_PROTO_SignData [00:30:02]wFMCommunicate request_size=4 [00:30:02]MH_SAM_APDU [00:30:02]CAPDU: 80 0D 01 02 [00:30:02]Write to MH i2c: E2 08 00 4E 0E 80 0D 01 02 00 00 00 00 D5 [00:30:02]Write i2c OK [00:30:02]MH_I2C_Read... [00:30:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:30:02]Read from MH i2c: E2 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 03 00 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 03 00 4E 0E 00 90 00 D0 [00:30:02]RAPDU: 90 00 [00:30:02]wFMCommunicate OK [00:30:02]wFMCommunicate request_size=255 [00:30:02]MH_SAM_APDU [00:30: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 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 22 01 00 00 00 07 04 06 00 60 AE 0A 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 8A 43 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 75 7C 03 00 35 04 06 00 C3 76 68 E2 [00:30:02]Write to MH i2c: E2 02 01 4F 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 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 22 01 00 00 00 07 04 06 00 60 AE 0A 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 8A 43 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 75 7C 03 00 35 04 06 00 C3 76 68 E2 00 00 8E [00:30:02]Write i2c OK [00:30:02]MH_I2C_Read... [00:30:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:02]Read from MH i2c: E2 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 03 00 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 03 00 4F 0E 00 90 00 D1 [00:30:02]RAPDU: 90 00 [00:30:02]wFMCommunicate OK [00:30:02]wFMCommunicate request_size=7 [00:30:02]MH_SAM_APDU [00:30:02]CAPDU: 80 0D 02 02 02 FC 80 [00:30:02]Write to MH i2c: E2 0A 00 50 0E 80 0D 02 02 02 00 FC 80 00 00 58 [00:30:02]Write i2c OK [00:30:02]MH_I2C_Read... [00:30:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:02]Read from MH i2c: E2 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 03 00 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 03 00 50 0E 00 90 00 D2 [00:30:02]RAPDU: 90 00 [00:30:02]wFMCommunicate OK [00:30:02]wFMCommunicate request_size=4 [00:30:02]MH_SAM_APDU [00:30:02]CAPDU: 80 0D 03 02 [00:30:02]Write to MH i2c: E2 08 00 51 0E 80 0D 03 02 00 00 00 00 DA [00:30:02]Write i2c OK [00:30:02]MH_I2C_Read... [00:30:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:30:02]Read from MH i2c: E2 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 0B 00 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 0B 00 51 0E 00 78 EA 5A 7B 8A D2 DB 82 90 00 CB [00:30:02]RAPDU: 78 EA 5A 7B 8A D2 DB 82 90 00 [00:30:02]wFMCommunicate OK [00:30:02]SAM_PROTO_SignData done [00:30:02]FM_MakeSignedData done [00:30:02]CreateOFDProtocolMessage [00:30:02]wFMCommunicate request_size=4 [00:30:02]MH_SAM_APDU [00:30:02]CAPDU: 80 11 00 00 [00:30:02]Write to MH i2c: E2 08 00 52 0E 80 11 00 00 00 00 00 00 DA [00:30:02]Write i2c OK [00:30:02]MH_I2C_Read... [00:30:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:02]Read from MH i2c: E2 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 17 00 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 17 00 52 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 31 [00:30:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:30:02]wFMCommunicate OK [00:30:02]CreateOFDProtocolMessage done [00:30:02]OFDSenderStorePacket 228469 [00:30:02]StoreOFDPacket docnum=228469 [00:30:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 CB 58 04 01 EF 3B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 22 01 00 00 00 07 04 06 00 60 AE 0A 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 8A 43 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 75 7C 03 00 35 04 06 00 C3 76 68 E2 FC 80 78 EA 5A 7B 8A D2 DB 82 [00:30:02]CheckFolder [00:30:02]dirname=/storage/ofd_packets [00:30:02]CheckFolder done [00:30:02]ProducePacketName [00:30:02]name=ofd_packets/00228469 [00:30:02]NVStorageSaveData ofd_packets/00228469 [00:30:02]File name is /storage/ofd_packets/00228469 [00:30:02]Write 298 bytes [00:30:02]NVStorageSaveData done [00:30:02]OFDSenderStorePacket done [00:30:02]KKMCreateOFDPacket done [00:30:02]NVStorageSaveData kkm_last_timestamp [00:30:02]File name is /storage/kkm_last_timestamp [00:30:02]Write 4 bytes [00:30:02]NVStorageSaveData done [00:30:02]ExternCall_PrintAddStr [00:30:02]wPrintStart [00:30:02]Write to MH i2c: 01 00 00 53 0E 61 [00:30:02]Write i2c OK [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: 01 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: 01 07 00 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: 01 07 00 53 0E 00 00 00 00 00 FF 0F 76 [00:30:02]RasterBufferAndPrint [00:30:02]line Счет N : (1)1965138 [00:30:02]line ИНН: 02508201610067 [00:30:02]line Контрольно-Кассовый Чек [00:30:02]line ПРОДАЖА [00:30:02]line ТРК (МРК, ГНК) : 21 [00:30:02]line Товар: 2710194210 [00:30:02]line ДТ-К-5 [00:30:02]line 91.870 * 76.20 [00:30:02]line = 7000.49 [00:30:02]line НДС 12% НСП 1% [00:30:02]line > о реализуемом товаре [00:30:02]line ОКРУГЛЕНИЕ: -0.49 [00:30:02]line ИТОГО: 7000.00 [00:30:02]line Внесено: 7000.00 [00:30:02]line СДАЧА: 0.00 [00:30:02]line НСП 1% : 61.95 [00:30:02]line НДС 12% : 743.41 [00:30:02]line Наличными: 7000.00 [00:30:02]line Безнал.: 0.00 [00:30:02]line Место: АЗС № 133 "Партнер Нефть" [00:30:02]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [00:30:02]line СНО: Общий режим [00:30:02]line Чек 5 23.10.2024 00:30 [00:30:02]line Смена: 536 ФФД: 1.0 [00:30:02]line ЗНМ: 0300000091 [00:30:02]line РНМ: 0000000000091685 [00:30:02]line Версия ККМ: 001 [00:30:02]line ФМ: 0000000000871839 [00:30:02]line ФД: 228469 [00:30:02]line ФПД: 214913333263488 [00:30:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T003002&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228469&fm=214913333263488&tin=02508201610067®Number=0000000000091685&sum=700000 [00:30:03]OFD Sender: Processing packet 228469 [packets to send 38, broken 37] [00:30:03]ProducePacketName [00:30:03]name=ofd_packets/00228469 [00:30:03]OFD Sender: To server: pG, [00:30:03]CommunicateWithHost lk.salyk.kg:30040 [00:30:03]ConnectInit lk.salyk.kg [00:30:03]written 0, free lines is 4095 [00:30:03]Connected sock=7 [00:30:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 CB 58 04 01 EF 3B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 22 01 00 00 00 07 04 06 00 60 AE 0A 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 8A 43 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 75 7C 03 00 35 04 06 00 C3 76 68 E2 FC 80 78 EA 5A 7B 8A D2 DB 82 [00:30:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 94 C2 47 00 6E 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 38 37 31 38 33 39 10 04 04 00 75 7C 03 00 F4 03 04 00 81 EE 17 67 B6 04 01 00 00 F4 7F BB 5D 96 CE 6B 4D [00:30:03]CommunicateWithHost err = 0 [00:30:03]CheckOFDResponse [00:30:03]1017 (14) - 77093643461234 [00:30:03]1041 (16) - 0000000000871839 [00:30:03]1040 (4) - 228469 [00:30:03]1012 (4) - 22.10.2024 18:27 [00:30:03]1206 (1) - 0 [00:30:03]OFD Sender: Remove packet 228469 [00:30:03]ProducePacketName [00:30:03]name=ofd_packets/00228469 [00:30:03]NVStorageDeleteData [00:30:03]Write to MH i2c: 01 00 00 7D 0E 8B [00:30:03]Write i2c OK [00:30:03]MH_I2C_Read... [00:30:03]Read from MH i2c: 01 [00:30:03]MH_I2C_Read... [00:30:03]Read from MH i2c: 01 07 00 [00:30:03]MH_I2C_Read... [00:30:03]Read from MH i2c: 01 07 00 7D 0E 00 00 00 00 00 A3 0C 41 [00:30:03]RasterBufferAndPrint [00:30:03]line [00:30:03]line [00:30:03]line [00:30:03]line [00:30:03]line [00:30:03]written 0, free lines is 3239 [00:30:03]MH_Cut [00:30:03]Write to MH i2c: D1 01 00 84 0E 01 64 [00:30:03]Write i2c OK [00:30:03]MH_I2C_Read... [00:30:03]Read from MH i2c: D1 [00:30:03]MH_I2C_Read... [00:30:03]Read from MH i2c: D1 01 00 [00:30:03]MH_I2C_Read... [00:30:03]Read from MH i2c: D1 01 00 84 0E 00 63 [00:30:03]Write to MH i2c: 01 00 00 85 0E 93 [00:30:03]Write i2c OK [00:30:03]MH_I2C_Read... [00:30:04]OFD Sender: No OFD packet to send [00:30:04]*** Cut start [00:30:04]*** Partial cut [00:30:04]*** CUTSNS_PIN = 1 [00:30:04]*** CUTSNS_PIN = 0 [00:30:04]*** Brake cut motor [00:30:05]Read from MH i2c: 01 [00:30:05]MH_I2C_Read... [00:30:05]*** Stop cut motor [00:30:05]*** Cut end [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 85 0E 00 00 00 00 00 FF 0F A8 [00:30:05]process_action close_receipt done [00:30:05]requested_data is exist [00:30:05]produce_requested_data [00:30:05]requested_item fm.sn is exist - process it [00:30:05]wFMCommunicate request_size=4 [00:30:05]MH_SAM_APDU [00:30:05]CAPDU: 80 11 00 00 [00:30:05]Write to MH i2c: E2 08 00 86 0E 80 11 00 00 00 00 00 00 0E [00:30:05]Write i2c OK [00:30:05]MH_I2C_Read... [00:30:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:05]Read from MH i2c: E2 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: E2 17 00 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: E2 17 00 86 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 65 [00:30:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:30:05]wFMCommunicate OK [00:30:05]requested_item fd.num is exist - process it [00:30:05]SAM_PROTO_GetFieldsCounters [00:30:05]wFMCommunicate request_size=4 [00:30:05]MH_SAM_APDU [00:30:05]CAPDU: 80 13 00 00 [00:30:05]Write to MH i2c: E2 08 00 87 0E 80 13 00 00 00 00 00 00 11 [00:30:05]Write i2c OK [00:30:05]MH_I2C_Read... [00:30:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:05]Read from MH i2c: E2 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: E2 62 00 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: E2 62 00 87 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 75 7C 03 00 0E 04 04 00 18 02 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 57 [00:30:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 75 7C 03 00 0E 04 04 00 18 02 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:30:05]wFMCommunicate OK [00:30:05]SAM_PROTO_GetFieldsCounters done [00:30:05]requested_item shift.num is exist - process it [00:30:05]requested_item shift.opened is exist - process it [00:30:05]req_shift_opened [00:30:05]FM_GetShiftState [00:30:05]SAM_PROTO_GetShiftState [00:30:05]wFMCommunicate request_size=4 [00:30:05]MH_SAM_APDU [00:30:05]CAPDU: 80 13 01 00 [00:30:05]Write to MH i2c: E2 08 00 88 0E 80 13 01 00 00 00 00 00 13 [00:30:05]Write i2c OK [00:30:05]MH_I2C_Read... [00:30:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:05]Read from MH i2c: E2 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: E2 0E 00 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: E2 0E 00 88 0E 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 4D [00:30:05]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [00:30:05]wFMCommunicate OK [00:30:05]SAM_PROTO_GetShiftState done [00:30:05]FM_GetShiftState done [00:30:05]req_shift_opened done [00:30:05]requested_item shift.open_date is exist - process it [00:30:05]req_shift_open_date [00:30:05]req_shift_open_date done [00:30:05]produce_requested_data done [00:30:05]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228469,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352} [00:30:05]process_action_free close_receipt [00:30:05]json_value_free [00:30:05]json_value_free done [00:30:05]process_json_proto returns [00:30:05]Send response to host [00:30:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228469,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352}}} [00:30:05]free response buf [00:30:05]execute_script done [00:30:05]execute_script returns [00:30:05]free content buf [00:30:05]Sock 9.Close socket [00:30:05]Sock 9.Thread stoped [00:30:09]OFD Sender: No OFD packet to send [00:30:14]OFD Sender: No OFD packet to send [00:30:19]OFD Sender: No OFD packet to send [00:30:24]OFD Sender: No OFD packet to send [00:30:29]OFD Sender: No OFD packet to send [00:30:34]OFD Sender: No OFD packet to send [00:30:39]OFD Sender: No OFD packet to send [00:30:44]OFD Sender: No OFD packet to send [00:30:49]OFD Sender: No OFD packet to send [00:30:54]OFD Sender: No OFD packet to send [00:30:59]OFD Sender: No OFD packet to send [00:31:04]OFD Sender: No OFD packet to send [00:31:09]OFD Sender: No OFD packet to send [00:31:14]OFD Sender: No OFD packet to send [00:31:19]OFD Sender: No OFD packet to send [00:31:24]OFD Sender: No OFD packet to send [00:31:29]OFD Sender: No OFD packet to send [00:31:34]OFD Sender: No OFD packet to send [00:31:39]OFD Sender: No OFD packet to send [00:31:44]OFD Sender: No OFD packet to send [00:31:49]OFD Sender: No OFD packet to send [00:31:54]OFD Sender: No OFD packet to send [00:31:59]OFD Sender: No OFD packet to send [00:32:04]OFD Sender: No OFD packet to send [00:32:09]OFD Sender: No OFD packet to send [00:32:14]OFD Sender: No OFD packet to send [00:32:19]OFD Sender: No OFD packet to send [00:32:24]OFD Sender: No OFD packet to send [00:32:29]OFD Sender: No OFD packet to send [00:32:34]OFD Sender: No OFD packet to send [00:32:39]OFD Sender: No OFD packet to send [00:32:44]OFD Sender: No OFD packet to send [00:32:49]OFD Sender: No OFD packet to send [00:32:54]OFD Sender: No OFD packet to send [00:32:59]OFD Sender: No OFD packet to send [00:33:04]OFD Sender: No OFD packet to send [00:33:09]OFD Sender: No OFD packet to send [00:33:14]OFD Sender: No OFD packet to send [00:33:19]OFD Sender: No OFD packet to send [00:33:24]OFD Sender: No OFD packet to send [00:33:29]OFD Sender: No OFD packet to send [00:33:34]OFD Sender: No OFD packet to send [00:33:39]OFD Sender: No OFD packet to send [00:33:44]OFD Sender: No OFD packet to send [00:33:49]OFD Sender: No OFD packet to send [00:33:54]OFD Sender: No OFD packet to send [00:33:59]OFD Sender: No OFD packet to send [00:34:04]OFD Sender: No OFD packet to send [00:34:09]OFD Sender: No OFD packet to send [00:34:14]OFD Sender: No OFD packet to send [00:34:19]OFD Sender: No OFD packet to send [00:34:24]OFD Sender: No OFD packet to send [00:34:29]OFD Sender: No OFD packet to send [00:34:34]OFD Sender: No OFD packet to send [00:34:39]OFD Sender: No OFD packet to send [00:34:44]OFD Sender: No OFD packet to send [00:34:49]OFD Sender: No OFD packet to send [00:34:54]OFD Sender: No OFD packet to send [00:34:59]OFD Sender: No OFD packet to send [00:35:04]OFD Sender: No OFD packet to send [00:35:09]OFD Sender: No OFD packet to send [00:35:14]OFD Sender: No OFD packet to send [00:35:19]OFD Sender: No OFD packet to send [00:35:24]OFD Sender: No OFD packet to send [00:35:29]OFD Sender: No OFD packet to send [00:35:34]OFD Sender: No OFD packet to send [00:35:39]OFD Sender: No OFD packet to send [00:35:44]OFD Sender: No OFD packet to send [00:35:49]OFD Sender: No OFD packet to send [00:35:54]OFD Sender: No OFD packet to send [00:35:59]OFD Sender: No OFD packet to send [00:36:04]OFD Sender: No OFD packet to send [00:36:09]OFD Sender: No OFD packet to send [00:36:14]OFD Sender: No OFD packet to send [00:36:19]OFD Sender: No OFD packet to send [00:36:24]OFD Sender: No OFD packet to send [00:36:29]OFD Sender: No OFD packet to send [00:36:34]OFD Sender: No OFD packet to send [00:36:39]OFD Sender: No OFD packet to send [00:36:44]OFD Sender: No OFD packet to send [00:36:49]OFD Sender: No OFD packet to send [00:36:54]OFD Sender: No OFD packet to send [00:36:59]OFD Sender: No OFD packet to send [00:37:04]OFD Sender: No OFD packet to send [00:37:09]OFD Sender: No OFD packet to send [00:37:14]OFD Sender: No OFD packet to send [00:37:19]OFD Sender: No OFD packet to send [00:37:24]OFD Sender: No OFD packet to send [00:37:29]OFD Sender: No OFD packet to send [00:37:34]OFD Sender: No OFD packet to send [00:37:39]OFD Sender: No OFD packet to send [00:37:44]OFD Sender: No OFD packet to send [00:37:49]OFD Sender: No OFD packet to send [00:37:54]OFD Sender: No OFD packet to send [00:37:59]OFD Sender: No OFD packet to send [00:38:04]OFD Sender: No OFD packet to send [00:38:09]OFD Sender: No OFD packet to send [00:38:14]OFD Sender: No OFD packet to send [00:38:19]OFD Sender: No OFD packet to send [00:38:24]OFD Sender: No OFD packet to send [00:38:29]OFD Sender: No OFD packet to send [00:38:34]accept exits with 10 [00:38:34]New connection [00:38:34]New thread 3066834276 created [00:38:34]Thread 3066977636 joined [00:38:34]Waiting for new connection... [00:38:34] Sock 10.Parse request [00:38:34]Sock 10.Check first char [00:38:34]Sock 10.First char is OK [00:38:34]request: POST /json_proto HTTP/1.0 [00:38:34]Method: POST [00:38:34]URL: /json_proto [00:38:34]Method is POST - this is cgi request [00:38:34]url: /json_proto [00:38:34]query_string will be loaded in cgi processing [00:38:34]execute_cgi json_proto POST (null) [00:38:34]execute_cgi path=json_proto method=POST [00:38:34]POST find Content-Length [00:38:34]Host: 172.17.44.195:8080 [00:38:34]Content-Length: 683 [00:38:34]Content-Type: application/json [00:38:34] [00:38:34]POST finish read [00:38:34]Found Content-Length = 683 [00:38:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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" ] } } [00:38:34]execute_script... [00:38: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)1965139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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" ] } } [00:38:34]POST & json_proto [00:38:34]process_json_proto [00:38:34]json parsed OK: [00:38:34]protocol is kg_v1.0 [00:38:34]action value=close_receipt [00:38:34]process_action close_receipt [00:38:34]cmd_close_receipt [00:38:34]MH_GetDate [00:38:34]Write to MH i2c: F0 00 00 89 0E 86 [00:38:34]Write i2c OK [00:38:34]MH_I2C_Read... [00:38:34]Read from MH i2c: F0 [00:38:34]MH_I2C_Read... [00:38:34]Read from MH i2c: F0 09 00 [00:38:34]MH_I2C_Read... [00:38:34]Read from MH i2c: F0 09 00 89 0E 00 8B 45 18 67 82 C9 CF 66 5E [00:38:34]GetLastDocTimeStamp 1729643402 [00:38:34]current date 1729643915 [00:38:34]FM_GetShiftState [00:38:34]SAM_PROTO_GetShiftState [00:38:34]wFMCommunicate request_size=4 [00:38:34]MH_SAM_APDU [00:38:34]CAPDU: 80 13 01 00 [00:38:34]Write to MH i2c: E2 08 00 8A 0E 80 13 01 00 00 00 00 00 15 [00:38:34]Write i2c OK [00:38:34]MH_I2C_Read... [00:38:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:34]Read from MH i2c: E2 [00:38:34]MH_I2C_Read... [00:38:34]Read from MH i2c: E2 0E 00 [00:38:34]MH_I2C_Read... [00:38:34]Read from MH i2c: E2 0E 00 8A 0E 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 4F [00:38:34]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [00:38:34]wFMCommunicate OK [00:38:34]SAM_PROTO_GetShiftState done [00:38:34]FM_GetShiftState done [00:38:34]opened in 1729642352 [00:38:34]opened+sec_in_day 1729728752 [00:38:34]quantity*price = 150032 [00:38:34]sum+1 = 150033 [00:38:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 6 23.10.2024 00:38 Смена: 536 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228470 ФПД: 174168282319510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T003835&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228470&fm=174168282319510&tin=02508201610067®Number=0000000000091685&sum=150000 [00:38:35]StoreToDocumentArchive [00:38:35]shift 536 fd 228470 [00:38:35]save to /storage/0536/doc_00228470 [00:38:35]save last doc name /storage/0536/doc_00228470 to /storage/kkm_last_doc_name [00:38:35]save OK [00:38:35]Clear old archive folders... [00:38:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:38:35]tlvbuf is 0031D640 [00:38:35]SAM_PROTO_ClearQueue [00:38:35]wFMCommunicate request_size=4 [00:38:35]MH_SAM_APDU [00:38:35]CAPDU: 80 09 00 00 [00:38:35]Write to MH i2c: E2 08 00 97 0E 80 09 00 00 00 00 00 00 17 [00:38:35]Write i2c OK [00:38:35]MH_I2C_Read... [00:38:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:38:35]Read from MH i2c: E2 [00:38:35]MH_I2C_Read... [00:38:35]Read from MH i2c: E2 03 00 [00:38:35]MH_I2C_Read... [00:38:35]Read from MH i2c: E2 03 00 97 0E 00 90 00 19 [00:38:35]RAPDU: 90 00 [00:38:35]wFMCommunicate OK [00:38:35]SAM_PROTO_ClearQueue done [00:38:35]KKMCreateOFDPacket [00:38:35]OFDProtocolAddRootSTLVToBuf [00:38:35]FM_MakeSignedData [00:38:35]FM_MakeSignedData [00:38:35]SAM_PROTO_SignData [00:38:35]wFMCommunicate request_size=4 [00:38:35]MH_SAM_APDU [00:38:35]CAPDU: 80 0D 01 02 [00:38:35]Write to MH i2c: E2 08 00 98 0E 80 0D 01 02 00 00 00 00 1F [00:38:35]Write i2c OK [00:38:35]MH_I2C_Read... [00:38:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:38:35]Read from MH i2c: E2 [00:38:35]MH_I2C_Read... [00:38:35]Read from MH i2c: E2 03 00 [00:38:35]MH_I2C_Read... [00:38:35]Read from MH i2c: E2 03 00 98 0E 00 90 00 1A [00:38:35]RAPDU: 90 00 [00:38:35]wFMCommunicate OK [00:38:35]wFMCommunicate request_size=255 [00:38:35]MH_SAM_APDU [00:38:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 3D 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 06 00 00 00 F4 03 04 00 8B 45 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 76 7C 03 00 35 04 06 00 9E [00:38:35]Write to MH i2c: E2 02 01 99 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 3D 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 06 00 00 00 F4 03 04 00 8B 45 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 76 7C 03 00 35 04 06 00 9E 00 00 1B [00:38:35]Write i2c OK [00:38:35]MH_I2C_Read... [00:38:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:38:35]Read from MH i2c: E2 [00:38:35]MH_I2C_Read... [00:38:35]Read from MH i2c: E2 03 00 [00:38:35]MH_I2C_Read... [00:38:35]Read from MH i2c: E2 03 00 99 0E 00 90 00 1B [00:38:35]RAPDU: 90 00 [00:38:35]wFMCommunicate OK [00:38:35]wFMCommunicate request_size=10 [00:38:35]MH_SAM_APDU [00:38:35]CAPDU: 80 0D 02 02 05 67 B6 99 4A 96 [00:38:35]Write to MH i2c: E2 0D 00 9A 0E 80 0D 02 02 05 00 67 B6 99 4A 96 00 00 C2 [00:38:35]Write i2c OK [00:38:35]MH_I2C_Read... [00:38:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:38:35]Read from MH i2c: E2 [00:38:35]MH_I2C_Read... [00:38:35]Read from MH i2c: E2 03 00 [00:38:35]MH_I2C_Read... [00:38:35]Read from MH i2c: E2 03 00 9A 0E 00 90 00 1C [00:38:35]RAPDU: 90 00 [00:38:35]wFMCommunicate OK [00:38:35]wFMCommunicate request_size=4 [00:38:35]MH_SAM_APDU [00:38:35]CAPDU: 80 0D 03 02 [00:38:35]Write to MH i2c: E2 08 00 9B 0E 80 0D 03 02 00 00 00 00 24 [00:38:35]Write i2c OK [00:38:35]MH_I2C_Read... [00:38:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:38:35]Read from MH i2c: E2 [00:38:35]MH_I2C_Read... [00:38:35]Read from MH i2c: E2 0B 00 [00:38:35]MH_I2C_Read... [00:38:35]Read from MH i2c: E2 0B 00 9B 0E 00 EB D3 46 B5 44 C9 91 1C 90 00 98 [00:38:35]RAPDU: EB D3 46 B5 44 C9 91 1C 90 00 [00:38:35]wFMCommunicate OK [00:38:35]SAM_PROTO_SignData done [00:38:35]FM_MakeSignedData done [00:38:35]CreateOFDProtocolMessage [00:38:35]wFMCommunicate request_size=4 [00:38:35]MH_SAM_APDU [00:38:35]CAPDU: 80 11 00 00 [00:38:35]Write to MH i2c: E2 08 00 9C 0E 80 11 00 00 00 00 00 00 24 [00:38:35]Write i2c OK [00:38:35]MH_I2C_Read... [00:38:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:35]Read from MH i2c: E2 [00:38:35]MH_I2C_Read... [00:38:35]Read from MH i2c: E2 17 00 [00:38:35]MH_I2C_Read... [00:38:35]Read from MH i2c: E2 17 00 9C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7B [00:38:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:38:35]wFMCommunicate OK [00:38:35]CreateOFDProtocolMessage done [00:38:35]OFDSenderStorePacket 228470 [00:38:35]StoreOFDPacket docnum=228470 [00:38:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 6E F1 07 01 61 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 3D 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 06 00 00 00 F4 03 04 00 8B 45 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 76 7C 03 00 35 04 06 00 9E 67 B6 99 4A 96 EB D3 46 B5 44 C9 91 1C [00:38:35]CheckFolder [00:38:35]dirname=/storage/ofd_packets [00:38:35]CheckFolder done [00:38:35]ProducePacketName [00:38:35]name=ofd_packets/00228470 [00:38:35]NVStorageSaveData ofd_packets/00228470 [00:38:35]File name is /storage/ofd_packets/00228470 [00:38:35]Write 301 bytes [00:38:35]NVStorageSaveData done [00:38:35]OFDSenderStorePacket done [00:38:35]KKMCreateOFDPacket done [00:38:35]NVStorageSaveData kkm_last_timestamp [00:38:35]File name is /storage/kkm_last_timestamp [00:38:35]Write 4 bytes [00:38:35]NVStorageSaveData done [00:38:35]ExternCall_PrintAddStr [00:38:35]wPrintStart [00:38:35]Write to MH i2c: 01 00 00 9D 0E AB [00:38:35]Write i2c OK [00:38:35]MH_I2C_Read... [00:38:35]Read from MH i2c: 01 [00:38:35]MH_I2C_Read... [00:38:35]Read from MH i2c: 01 07 00 [00:38:35]MH_I2C_Read... [00:38:35]Read from MH i2c: 01 07 00 9D 0E 00 00 00 00 00 FF 0F C0 [00:38:35]RasterBufferAndPrint [00:38:35]line Счет N : (1)1965139 [00:38:35]line ИНН: 02508201610067 [00:38:35]line Контрольно-Кассовый Чек [00:38:35]line ПРОДАЖА [00:38:35]line ТРК (МРК, ГНК) : 54 [00:38:35]line Товар: 2710124500 [00:38:35]line Аи-95-К-5 [00:38:35]line 20.220 * 74.20 [00:38:35]line = 1500.32 [00:38:35]line НДС 12% НСП 1% [00:38:35]line > о реализуемом товаре [00:38:35]line ОКРУГЛЕНИЕ: -0.32 [00:38:35]line ИТОГО: 1500.00 [00:38:35]line Внесено: 1500.00 [00:38:35]line СДАЧА: 0.00 [00:38:35]line НСП 1% : 13.28 [00:38:35]line НДС 12% : 159.33 [00:38:35]line Наличными: 1500.00 [00:38:35]line Безнал.: 0.00 [00:38:35]line Место: АЗС № 133 "Партнер Нефть" [00:38:35]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [00:38:35]line СНО: Общий режим [00:38:35]line Чек 6 23.10.2024 00:38 [00:38:35]line Смена: 536 ФФД: 1.0 [00:38:35]line ЗНМ: 0300000091 [00:38:35]line РНМ: 0000000000091685 [00:38:35]line Версия ККМ: 001 [00:38:35]line ФМ: 0000000000871839 [00:38:35]line ФД: 228470 [00:38:35]line ФПД: 174168282319510 [00:38:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T003835&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228470&fm=174168282319510&tin=02508201610067®Number=0000000000091685&sum=150000 [00:38:36]OFD Sender: Processing packet 228470 [packets to send 38, broken 37] [00:38:36]ProducePacketName [00:38:36]name=ofd_packets/00228470 [00:38:36]OFD Sender: To server: pG, [00:38:36]CommunicateWithHost lk.salyk.kg:30040 [00:38:36]ConnectInit lk.salyk.kg [00:38:36]written 0, free lines is 4095 [00:38:36]Connected sock=9 [00:38:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 6E F1 07 01 61 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 3D 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 06 00 00 00 F4 03 04 00 8B 45 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 76 7C 03 00 35 04 06 00 9E 67 B6 99 4A 96 EB D3 46 B5 44 C9 91 1C [00:38:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 43 52 47 00 8B A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 76 7C 03 00 F4 03 04 00 82 F0 17 67 B6 04 01 00 00 7F B1 42 37 FE D7 7C 93 [00:38:36]CommunicateWithHost err = 0 [00:38:36]CheckOFDResponse [00:38:36]1017 (14) - 77093643461234 [00:38:36]1041 (16) - 0000000000871839 [00:38:36]1040 (4) - 228470 [00:38:36]1012 (4) - 22.10.2024 18:35 [00:38:36]1206 (1) - 0 [00:38:36]OFD Sender: Remove packet 228470 [00:38:36]ProducePacketName [00:38:36]name=ofd_packets/00228470 [00:38:36]NVStorageDeleteData [00:38:36]Write to MH i2c: 01 00 00 C7 0E D5 [00:38:36]Write i2c OK [00:38:36]MH_I2C_Read... [00:38:36]Read from MH i2c: 01 [00:38:36]MH_I2C_Read... [00:38:36]Read from MH i2c: 01 07 00 [00:38:36]MH_I2C_Read... [00:38:36]Read from MH i2c: 01 07 00 C7 0E 00 00 00 00 00 9F 0C 87 [00:38:36]RasterBufferAndPrint [00:38:36]line [00:38:36]line [00:38:36]line [00:38:36]line [00:38:36]line [00:38:36]written 0, free lines is 3235 [00:38:36]MH_Cut [00:38:36]Write to MH i2c: D1 01 00 CE 0E 01 AE [00:38:36]Write i2c OK [00:38:36]MH_I2C_Read... [00:38:36]Read from MH i2c: D1 [00:38:36]MH_I2C_Read... [00:38:36]Read from MH i2c: D1 01 00 [00:38:36]MH_I2C_Read... [00:38:36]Read from MH i2c: D1 01 00 CE 0E 00 AD [00:38:36]Write to MH i2c: 01 00 00 CF 0E DD [00:38:36]Write i2c OK [00:38:36]MH_I2C_Read... [00:38:36]OFD Sender: No OFD packet to send [00:38:37]*** Cut start [00:38:37]*** Partial cut [00:38:37]*** CUTSNS_PIN = 1 [00:38:37]*** CUTSNS_PIN = 0 [00:38:37]*** Brake cut motor [00:38:38]Read from MH i2c: 01 [00:38:38]MH_I2C_Read... [00:38:38]*** Stop cut motor [00:38:38]*** Cut end [00:38:38]Read from MH i2c: 01 07 00 [00:38:38]MH_I2C_Read... [00:38:38]Read from MH i2c: 01 07 00 CF 0E 00 00 00 00 00 FF 0F F2 [00:38:38]process_action close_receipt done [00:38:38]requested_data is exist [00:38:38]produce_requested_data [00:38:38]requested_item fm.sn is exist - process it [00:38:38]wFMCommunicate request_size=4 [00:38:38]MH_SAM_APDU [00:38:38]CAPDU: 80 11 00 00 [00:38:38]Write to MH i2c: E2 08 00 D0 0E 80 11 00 00 00 00 00 00 58 [00:38:38]Write i2c OK [00:38:38]MH_I2C_Read... [00:38:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:38]Read from MH i2c: E2 [00:38:38]MH_I2C_Read... [00:38:38]Read from MH i2c: E2 17 00 [00:38:38]MH_I2C_Read... [00:38:38]Read from MH i2c: E2 17 00 D0 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AF [00:38:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:38:38]wFMCommunicate OK [00:38:38]requested_item fd.num is exist - process it [00:38:38]SAM_PROTO_GetFieldsCounters [00:38:38]wFMCommunicate request_size=4 [00:38:38]MH_SAM_APDU [00:38:38]CAPDU: 80 13 00 00 [00:38:38]Write to MH i2c: E2 08 00 D1 0E 80 13 00 00 00 00 00 00 5B [00:38:38]Write i2c OK [00:38:38]MH_I2C_Read... [00:38:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:38:38]Read from MH i2c: E2 [00:38:38]MH_I2C_Read... [00:38:38]Read from MH i2c: E2 62 00 [00:38:38]MH_I2C_Read... [00:38:38]Read from MH i2c: E2 62 00 D1 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 76 7C 03 00 0E 04 04 00 18 02 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 A5 [00:38:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 76 7C 03 00 0E 04 04 00 18 02 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:38:38]wFMCommunicate OK [00:38:38]SAM_PROTO_GetFieldsCounters done [00:38:38]requested_item shift.num is exist - process it [00:38:38]requested_item shift.opened is exist - process it [00:38:38]req_shift_opened [00:38:38]FM_GetShiftState [00:38:38]SAM_PROTO_GetShiftState [00:38:38]wFMCommunicate request_size=4 [00:38:38]MH_SAM_APDU [00:38:38]CAPDU: 80 13 01 00 [00:38:38]Write to MH i2c: E2 08 00 D2 0E 80 13 01 00 00 00 00 00 5D [00:38:38]Write i2c OK [00:38:38]MH_I2C_Read... [00:38:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:38]Read from MH i2c: E2 [00:38:38]MH_I2C_Read... [00:38:38]Read from MH i2c: E2 0E 00 [00:38:38]MH_I2C_Read... [00:38:38]Read from MH i2c: E2 0E 00 D2 0E 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 97 [00:38:38]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [00:38:38]wFMCommunicate OK [00:38:38]SAM_PROTO_GetShiftState done [00:38:38]FM_GetShiftState done [00:38:38]req_shift_opened done [00:38:38]requested_item shift.open_date is exist - process it [00:38:38]req_shift_open_date [00:38:38]req_shift_open_date done [00:38:38]produce_requested_data done [00:38:38]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228470,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352} [00:38:38]process_action_free close_receipt [00:38:38]json_value_free [00:38:38]json_value_free done [00:38:38]process_json_proto returns [00:38:38]Send response to host [00:38:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228470,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352}}} [00:38:38]free response buf [00:38:38]execute_script done [00:38:38]execute_script returns [00:38:38]free content buf [00:38:38]Sock 10.Close socket [00:38:38]Sock 10.Thread stoped [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:32]OFD Sender: No OFD packet to send [00:40:37]OFD Sender: No OFD packet to send [00:40:42]OFD Sender: No OFD packet to send [00:40:47]OFD Sender: No OFD packet to send [00:40:52]OFD Sender: No OFD packet to send [00:40:57]OFD Sender: No OFD packet to send [00:41:02]OFD Sender: No OFD packet to send [00:41:07]OFD Sender: No OFD packet to send [00:41:12]OFD Sender: No OFD packet to send [00:41:17]OFD Sender: No OFD packet to send [00:41:22]OFD Sender: No OFD packet to send [00:41:27]OFD Sender: No OFD packet to send [00:41:32]OFD Sender: No OFD packet to send [00:41:37]OFD Sender: No OFD packet to send [00:41:42]OFD Sender: No OFD packet to send [00:41:47]OFD Sender: No OFD packet to send [00:41:52]OFD Sender: No OFD packet to send [00:41:57]OFD Sender: No OFD packet to send [00:42:02]OFD Sender: No OFD packet to send [00:42:07]OFD Sender: No OFD packet to send [00:42:12]OFD Sender: No OFD packet to send [00:42:17]OFD Sender: No OFD packet to send [00:42:22]OFD Sender: No OFD packet to send [00:42:27]OFD Sender: No OFD packet to send [00:42:32]OFD Sender: No OFD packet to send [00:42:37]OFD Sender: No OFD packet to send [00:42:42]OFD Sender: No OFD packet to send [00:42:47]OFD Sender: No OFD packet to send [00:42:52]OFD Sender: No OFD packet to send [00:42:57]OFD Sender: No OFD packet to send [00:43:02]OFD Sender: No OFD packet to send [00:43:07]OFD Sender: No OFD packet to send [00:43:12]OFD Sender: No OFD packet to send [00:43:17]OFD Sender: No OFD packet to send [00:43:22]OFD Sender: No OFD packet to send [00:43:27]OFD Sender: No OFD packet to send [00:43:32]OFD Sender: No OFD packet to send [00:43:37]OFD Sender: No OFD packet to send [00:43:42]OFD Sender: No OFD packet to send [00:43:47]OFD Sender: No OFD packet to send [00:43:52]OFD Sender: No OFD packet to send [00:43:57]OFD Sender: No OFD packet to send [00:44:02]OFD Sender: No OFD packet to send [00:44:07]OFD Sender: No OFD packet to send [00:44:12]OFD Sender: No OFD packet to send [00:44:17]OFD Sender: No OFD packet to send [00:44:22]OFD Sender: No OFD packet to send [00:44:27]OFD Sender: No OFD packet to send [00:44:32]OFD Sender: No OFD packet to send [00:44:37]OFD Sender: No OFD packet to send [00:44:42]OFD Sender: No OFD packet to send [00:44:47]OFD Sender: No OFD packet to send [00:44:52]OFD Sender: No OFD packet to send [00:44:57]OFD Sender: No OFD packet to send [00:45:02]OFD Sender: No OFD packet to send [00:45:03]accept exits with 7 [00:45:03]New connection [00:45:03]New thread 3066977636 created [00:45:03]Thread 3066834276 joined [00:45:03]Waiting for new connection... [00:45:03] Sock 7.Parse request [00:45:03]Sock 7.Check first char [00:45:03]Sock 7.First char is OK [00:45:03]request: POST /json_proto HTTP/1.0 [00:45:03]Method: POST [00:45:03]URL: /json_proto [00:45:03]Method is POST - this is cgi request [00:45:03]url: /json_proto [00:45:03]query_string will be loaded in cgi processing [00:45:03]execute_cgi json_proto POST (null) [00:45:03]execute_cgi path=json_proto method=POST [00:45:03]POST find Content-Length [00:45:03]Host: 172.17.44.195:8080 [00:45:03]Content-Length: 683 [00:45:03]Content-Type: application/json [00:45:03] [00:45:03]POST finish read [00:45:03]Found Content-Length = 683 [00:45:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "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" ] } } [00:45:03]execute_script... [00:45: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)1965140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "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" ] } } [00:45:03]POST & json_proto [00:45:03]process_json_proto [00:45:03]json parsed OK: [00:45:03]protocol is kg_v1.0 [00:45:03]action value=close_receipt [00:45:03]process_action close_receipt [00:45:03]cmd_close_receipt [00:45:03]MH_GetDate [00:45:03]Write to MH i2c: F0 00 00 D3 0E D0 [00:45:03]Write i2c OK [00:45:03]MH_I2C_Read... [00:45:03]Read from MH i2c: F0 [00:45:03]MH_I2C_Read... [00:45:03]Read from MH i2c: F0 09 00 [00:45:03]MH_I2C_Read... [00:45:03]Read from MH i2c: F0 09 00 D3 0E 00 10 47 18 67 82 C9 CF 66 2F [00:45:03]GetLastDocTimeStamp 1729643915 [00:45:03]current date 1729644304 [00:45:03]FM_GetShiftState [00:45:03]SAM_PROTO_GetShiftState [00:45:03]wFMCommunicate request_size=4 [00:45:03]MH_SAM_APDU [00:45:03]CAPDU: 80 13 01 00 [00:45:03]Write to MH i2c: E2 08 00 D4 0E 80 13 01 00 00 00 00 00 5F [00:45:03]Write i2c OK [00:45:03]MH_I2C_Read... [00:45:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:03]Read from MH i2c: E2 [00:45:03]MH_I2C_Read... [00:45:03]Read from MH i2c: E2 0E 00 [00:45:03]MH_I2C_Read... [00:45:03]Read from MH i2c: E2 0E 00 D4 0E 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 99 [00:45:03]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [00:45:03]wFMCommunicate OK [00:45:03]SAM_PROTO_GetShiftState done [00:45:03]FM_GetShiftState done [00:45:03]opened in 1729642352 [00:45:03]opened+sec_in_day 1729728752 [00:45:03]quantity*price = 100015 [00:45:03]sum+1 = 100017 [00:45:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 7 23.10.2024 00:45 Смена: 536 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228471 ФПД: 207536401925196 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T004504&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228471&fm=207536401925196&tin=02508201610067®Number=0000000000091685&sum=100000 [00:45:04]StoreToDocumentArchive [00:45:04]shift 536 fd 228471 [00:45:04]save to /storage/0536/doc_00228471 [00:45:04]save last doc name /storage/0536/doc_00228471 to /storage/kkm_last_doc_name [00:45:04]save OK [00:45:04]Clear old archive folders... [00:45:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:45:04]tlvbuf is 00285A00 [00:45:04]SAM_PROTO_ClearQueue [00:45:04]wFMCommunicate request_size=4 [00:45:04]MH_SAM_APDU [00:45:04]CAPDU: 80 09 00 00 [00:45:04]Write to MH i2c: E2 08 00 E1 0E 80 09 00 00 00 00 00 00 61 [00:45:04]Write i2c OK [00:45:04]MH_I2C_Read... [00:45:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:45:04]Read from MH i2c: E2 [00:45:04]MH_I2C_Read... [00:45:04]Read from MH i2c: E2 03 00 [00:45:04]MH_I2C_Read... [00:45:04]Read from MH i2c: E2 03 00 E1 0E 00 90 00 63 [00:45:04]RAPDU: 90 00 [00:45:04]wFMCommunicate OK [00:45:04]SAM_PROTO_ClearQueue done [00:45:04]KKMCreateOFDPacket [00:45:04]OFDProtocolAddRootSTLVToBuf [00:45:04]FM_MakeSignedData [00:45:04]FM_MakeSignedData [00:45:04]SAM_PROTO_SignData [00:45:04]wFMCommunicate request_size=4 [00:45:04]MH_SAM_APDU [00:45:04]CAPDU: 80 0D 01 02 [00:45:04]Write to MH i2c: E2 08 00 E2 0E 80 0D 01 02 00 00 00 00 69 [00:45:04]Write i2c OK [00:45:04]MH_I2C_Read... [00:45:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:45:04]Read from MH i2c: E2 [00:45:04]MH_I2C_Read... [00:45:04]Read from MH i2c: E2 03 00 [00:45:04]MH_I2C_Read... [00:45:04]Read from MH i2c: E2 03 00 E2 0E 00 90 00 64 [00:45:04]RAPDU: 90 00 [00:45:04]wFMCommunicate OK [00:45:04]wFMCommunicate request_size=255 [00:45:04]MH_SAM_APDU [00:45: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 07 00 00 00 F4 03 04 00 10 47 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 77 7C 03 00 35 04 06 00 BC [00:45:04]Write to MH i2c: E2 02 01 E3 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 07 00 00 00 F4 03 04 00 10 47 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 77 7C 03 00 35 04 06 00 BC 00 00 A3 [00:45:04]Write i2c OK [00:45:04]MH_I2C_Read... [00:45:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:04]Read from MH i2c: E2 [00:45:04]MH_I2C_Read... [00:45:04]Read from MH i2c: E2 03 00 [00:45:04]MH_I2C_Read... [00:45:04]Read from MH i2c: E2 03 00 E3 0E 00 90 00 65 [00:45:04]RAPDU: 90 00 [00:45:04]wFMCommunicate OK [00:45:04]wFMCommunicate request_size=10 [00:45:04]MH_SAM_APDU [00:45:04]CAPDU: 80 0D 02 02 05 C0 D5 83 C4 4C [00:45:04]Write to MH i2c: E2 0D 00 E4 0E 80 0D 02 02 05 00 C0 D5 83 C4 4C 00 00 9E [00:45:04]Write i2c OK [00:45:04]MH_I2C_Read... [00:45:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:04]Read from MH i2c: E2 [00:45:04]MH_I2C_Read... [00:45:04]Read from MH i2c: E2 03 00 [00:45:04]MH_I2C_Read... [00:45:04]Read from MH i2c: E2 03 00 E4 0E 00 90 00 66 [00:45:04]RAPDU: 90 00 [00:45:04]wFMCommunicate OK [00:45:04]wFMCommunicate request_size=4 [00:45:04]MH_SAM_APDU [00:45:04]CAPDU: 80 0D 03 02 [00:45:04]Write to MH i2c: E2 08 00 E5 0E 80 0D 03 02 00 00 00 00 6E [00:45:04]Write i2c OK [00:45:04]MH_I2C_Read... [00:45:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:45:04]Read from MH i2c: E2 [00:45:04]MH_I2C_Read... [00:45:04]Read from MH i2c: E2 0B 00 [00:45:04]MH_I2C_Read... [00:45:04]Read from MH i2c: E2 0B 00 E5 0E 00 A6 67 0E AA 52 02 E1 DA 90 00 43 [00:45:04]RAPDU: A6 67 0E AA 52 02 E1 DA 90 00 [00:45:04]wFMCommunicate OK [00:45:04]SAM_PROTO_SignData done [00:45:04]FM_MakeSignedData done [00:45:04]CreateOFDProtocolMessage [00:45:04]wFMCommunicate request_size=4 [00:45:04]MH_SAM_APDU [00:45:04]CAPDU: 80 11 00 00 [00:45:04]Write to MH i2c: E2 08 00 E6 0E 80 11 00 00 00 00 00 00 6E [00:45:04]Write i2c OK [00:45:04]MH_I2C_Read... [00:45:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:04]Read from MH i2c: E2 [00:45:04]MH_I2C_Read... [00:45:04]Read from MH i2c: E2 17 00 [00:45:04]MH_I2C_Read... [00:45:04]Read from MH i2c: E2 17 00 E6 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C5 [00:45:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:45:04]wFMCommunicate OK [00:45:04]CreateOFDProtocolMessage done [00:45:04]OFDSenderStorePacket 228471 [00:45:04]StoreOFDPacket docnum=228471 [00:45:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 38 10 07 01 EF 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 07 00 00 00 F4 03 04 00 10 47 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 77 7C 03 00 35 04 06 00 BC C0 D5 83 C4 4C A6 67 0E AA 52 02 E1 DA [00:45:04]CheckFolder [00:45:04]dirname=/storage/ofd_packets [00:45:04]CheckFolder done [00:45:04]ProducePacketName [00:45:04]name=ofd_packets/00228471 [00:45:04]NVStorageSaveData ofd_packets/00228471 [00:45:04]File name is /storage/ofd_packets/00228471 [00:45:04]Write 301 bytes [00:45:04]NVStorageSaveData done [00:45:04]OFDSenderStorePacket done [00:45:04]KKMCreateOFDPacket done [00:45:04]NVStorageSaveData kkm_last_timestamp [00:45:04]File name is /storage/kkm_last_timestamp [00:45:04]Write 4 bytes [00:45:04]NVStorageSaveData done [00:45:04]ExternCall_PrintAddStr [00:45:04]wPrintStart [00:45:04]Write to MH i2c: 01 00 00 E7 0E F5 [00:45:04]Write i2c OK [00:45:04]MH_I2C_Read... [00:45:04]Read from MH i2c: 01 [00:45:04]MH_I2C_Read... [00:45:04]Read from MH i2c: 01 07 00 [00:45:04]MH_I2C_Read... [00:45:04]Read from MH i2c: 01 07 00 E7 0E 00 00 00 00 00 FF 0F 0A [00:45:04]RasterBufferAndPrint [00:45:04]line Счет N : (1)1965140 [00:45:04]line ИНН: 02508201610067 [00:45:04]line Контрольно-Кассовый Чек [00:45:04]line ПРОДАЖА [00:45:04]line ТРК (МРК, ГНК) : 33 [00:45:04]line Товар: 2710124130 [00:45:04]line Аи-92-К-5 [00:45:04]line 14.950 * 66.90 [00:45:04]line = 1000.16 [00:45:04]line НДС 12% НСП 1% [00:45:04]line > о реализуемом товаре [00:45:04]line ОКРУГЛЕНИЕ: -0.16 [00:45:04]line ИТОГО: 1000.00 [00:45:04]line Внесено: 1000.00 [00:45:04]line СДАЧА: 0.00 [00:45:04]line НСП 1% : 8.85 [00:45:04]line НДС 12% : 106.21 [00:45:04]line Наличными: 1000.00 [00:45:04]line Безнал.: 0.00 [00:45:04]line Место: АЗС № 133 "Партнер Нефть" [00:45:04]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [00:45:04]line СНО: Общий режим [00:45:04]line Чек 7 23.10.2024 00:45 [00:45:04]line Смена: 536 ФФД: 1.0 [00:45:04]line ЗНМ: 0300000091 [00:45:04]line РНМ: 0000000000091685 [00:45:04]line Версия ККМ: 001 [00:45:04]line ФМ: 0000000000871839 [00:45:04]line ФД: 228471 [00:45:04]line ФПД: 207536401925196 [00:45:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T004504&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228471&fm=207536401925196&tin=02508201610067®Number=0000000000091685&sum=100000 [00:45:05]OFD Sender: Processing packet 228471 [packets to send 38, broken 37] [00:45:05]ProducePacketName [00:45:05]name=ofd_packets/00228471 [00:45:05]OFD Sender: To server: pG, [00:45:05]CommunicateWithHost lk.salyk.kg:30040 [00:45:05]ConnectInit lk.salyk.kg [00:45:05]written 0, free lines is 4095 [00:45:05]Connected sock=10 [00:45:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 38 10 07 01 EF 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 07 00 00 00 F4 03 04 00 10 47 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 77 7C 03 00 35 04 06 00 BC C0 D5 83 C4 4C A6 67 0E AA 52 02 E1 DA [00:45:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 BA 40 47 00 16 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 77 7C 03 00 F4 03 04 00 07 F2 17 67 B6 04 01 00 00 A5 9C 6D 83 B8 05 1F E8 [00:45:05]CommunicateWithHost err = 0 [00:45:05]CheckOFDResponse [00:45:05]1017 (14) - 77093643461234 [00:45:05]1041 (16) - 0000000000871839 [00:45:05]1040 (4) - 228471 [00:45:05]1012 (4) - 22.10.2024 18:42 [00:45:05]1206 (1) - 0 [00:45:05]OFD Sender: Remove packet 228471 [00:45:05]ProducePacketName [00:45:05]name=ofd_packets/00228471 [00:45:05]NVStorageDeleteData [00:45:05]Write to MH i2c: 01 00 00 11 0F 20 [00:45:05]Write i2c OK [00:45:05]MH_I2C_Read... [00:45:05]Read from MH i2c: 01 [00:45:05]MH_I2C_Read... [00:45:05]Read from MH i2c: 01 07 00 [00:45:05]MH_I2C_Read... [00:45:05]Read from MH i2c: 01 07 00 11 0F 00 00 00 00 00 96 0C C9 [00:45:05]RasterBufferAndPrint [00:45:05]line [00:45:05]line [00:45:05]line [00:45:05]line [00:45:05]line [00:45:05]written 0, free lines is 3227 [00:45:05]MH_Cut [00:45:05]Write to MH i2c: D1 01 00 18 0F 01 F9 [00:45:05]Write i2c OK [00:45:05]MH_I2C_Read... [00:45:05]Read from MH i2c: D1 [00:45:05]MH_I2C_Read... [00:45:05]Read from MH i2c: D1 01 00 [00:45:05]MH_I2C_Read... [00:45:05]Read from MH i2c: D1 01 00 18 0F 00 F8 [00:45:05]Write to MH i2c: 01 00 00 19 0F 28 [00:45:05]Write i2c OK [00:45:05]MH_I2C_Read... [00:45:05]OFD Sender: No OFD packet to send [00:45:06]*** Cut start [00:45:06]*** Partial cut [00:45:06]*** CUTSNS_PIN = 1 [00:45:06]*** CUTSNS_PIN = 0 [00:45:06]*** Brake cut motor [00:45:07]Read from MH i2c: 01 [00:45:07]MH_I2C_Read... [00:45:07]*** Stop cut motor [00:45:07]*** Cut end [00:45:07]Read from MH i2c: 01 07 00 [00:45:07]MH_I2C_Read... [00:45:07]Read from MH i2c: 01 07 00 19 0F 00 00 00 00 00 FF 0F 3D [00:45:07]process_action close_receipt done [00:45:07]requested_data is exist [00:45:07]produce_requested_data [00:45:07]requested_item fm.sn is exist - process it [00:45:07]wFMCommunicate request_size=4 [00:45:07]MH_SAM_APDU [00:45:07]CAPDU: 80 11 00 00 [00:45:07]Write to MH i2c: E2 08 00 1A 0F 80 11 00 00 00 00 00 00 A3 [00:45:07]Write i2c OK [00:45:07]MH_I2C_Read... [00:45:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:07]Read from MH i2c: E2 [00:45:07]MH_I2C_Read... [00:45:07]Read from MH i2c: E2 17 00 [00:45:07]MH_I2C_Read... [00:45:07]Read from MH i2c: E2 17 00 1A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FA [00:45:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:45:07]wFMCommunicate OK [00:45:07]requested_item fd.num is exist - process it [00:45:07]SAM_PROTO_GetFieldsCounters [00:45:07]wFMCommunicate request_size=4 [00:45:07]MH_SAM_APDU [00:45:07]CAPDU: 80 13 00 00 [00:45:07]Write to MH i2c: E2 08 00 1B 0F 80 13 00 00 00 00 00 00 A6 [00:45:07]Write i2c OK [00:45:07]MH_I2C_Read... [00:45:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:45:07]Read from MH i2c: E2 [00:45:07]MH_I2C_Read... [00:45:07]Read from MH i2c: E2 62 00 [00:45:07]MH_I2C_Read... [00:45:07]Read from MH i2c: E2 62 00 1B 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 77 7C 03 00 0E 04 04 00 18 02 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 F4 [00:45:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 77 7C 03 00 0E 04 04 00 18 02 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:45:07]wFMCommunicate OK [00:45:07]SAM_PROTO_GetFieldsCounters done [00:45:07]requested_item shift.num is exist - process it [00:45:07]requested_item shift.opened is exist - process it [00:45:07]req_shift_opened [00:45:07]FM_GetShiftState [00:45:07]SAM_PROTO_GetShiftState [00:45:07]wFMCommunicate request_size=4 [00:45:07]MH_SAM_APDU [00:45:07]CAPDU: 80 13 01 00 [00:45:07]Write to MH i2c: E2 08 00 1C 0F 80 13 01 00 00 00 00 00 A8 [00:45:07]Write i2c OK [00:45:07]MH_I2C_Read... [00:45:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:07]Read from MH i2c: E2 [00:45:07]MH_I2C_Read... [00:45:07]Read from MH i2c: E2 0E 00 [00:45:07]MH_I2C_Read... [00:45:07]Read from MH i2c: E2 0E 00 1C 0F 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 E2 [00:45:07]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [00:45:07]wFMCommunicate OK [00:45:07]SAM_PROTO_GetShiftState done [00:45:07]FM_GetShiftState done [00:45:07]req_shift_opened done [00:45:07]requested_item shift.open_date is exist - process it [00:45:07]req_shift_open_date [00:45:07]req_shift_open_date done [00:45:07]produce_requested_data done [00:45:07]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228471,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352} [00:45:07]process_action_free close_receipt [00:45:07]json_value_free [00:45:07]json_value_free done [00:45:07]process_json_proto returns [00:45:07]Send response to host [00:45:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228471,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352}}} [00:45:07]free response buf [00:45:07]execute_script done [00:45:07]execute_script returns [00:45:07]free content buf [00:45:07]Sock 7.Close socket [00:45:07]Sock 7.Thread stoped [00:45:10]OFD Sender: No OFD packet to send [00:45:15]OFD Sender: No OFD packet to send [00:45:20]OFD Sender: No OFD packet to send [00:45:25]OFD Sender: No OFD packet to send [00:45:30]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:32]accept exits with 9 [00:48:32]New connection [00:48:32]New thread 3066834276 created [00:48:32]Thread 3066977636 joined [00:48:32]Waiting for new connection... [00:48:32] Sock 9.Parse request [00:48:32]Sock 9.Check first char [00:48:32]Sock 9.First char is OK [00:48:32]request: POST /json_proto HTTP/1.0 [00:48:32]Method: POST [00:48:32]URL: /json_proto [00:48:32]Method is POST - this is cgi request [00:48:32]url: /json_proto [00:48:32]query_string will be loaded in cgi processing [00:48:32]execute_cgi json_proto POST (null) [00:48:32]execute_cgi path=json_proto method=POST [00:48:32]POST find Content-Length [00:48:32]Host: 172.17.44.195:8080 [00:48:32]Content-Length: 678 [00:48:32]Content-Type: application/json [00:48:32] [00:48:32]POST finish read [00:48:32]Found Content-Length = 678 [00:48:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965141", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:48:32]execute_script... [00:48: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)1965141", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:48:32]POST & json_proto [00:48:32]process_json_proto [00:48:32]json parsed OK: [00:48:32]protocol is kg_v1.0 [00:48:32]action value=close_receipt [00:48:32]process_action close_receipt [00:48:32]cmd_close_receipt [00:48:32]MH_GetDate [00:48:32]Write to MH i2c: F0 00 00 1D 0F 1B [00:48:32]Write i2c OK [00:48:32]MH_I2C_Read... [00:48:32]Read from MH i2c: F0 [00:48:32]MH_I2C_Read... [00:48:32]Read from MH i2c: F0 09 00 [00:48:32]MH_I2C_Read... [00:48:32]Read from MH i2c: F0 09 00 1D 0F 00 E2 47 18 67 82 C9 CF 66 4C [00:48:32]GetLastDocTimeStamp 1729644304 [00:48:32]current date 1729644514 [00:48:32]FM_GetShiftState [00:48:32]SAM_PROTO_GetShiftState [00:48:32]wFMCommunicate request_size=4 [00:48:32]MH_SAM_APDU [00:48:32]CAPDU: 80 13 01 00 [00:48:32]Write to MH i2c: E2 08 00 1E 0F 80 13 01 00 00 00 00 00 AA [00:48:32]Write i2c OK [00:48:32]MH_I2C_Read... [00:48:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:32]Read from MH i2c: E2 [00:48:32]MH_I2C_Read... [00:48:32]Read from MH i2c: E2 0E 00 [00:48:32]MH_I2C_Read... [00:48:32]Read from MH i2c: E2 0E 00 1E 0F 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 E4 [00:48:32]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [00:48:32]wFMCommunicate OK [00:48:32]SAM_PROTO_GetShiftState done [00:48:32]FM_GetShiftState done [00:48:32]opened in 1729642352 [00:48:32]opened+sec_in_day 1729728752 [00:48:32]quantity*price = 50041 [00:48:32]sum+1 = 50042 [00:48:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 8 23.10.2024 00:48 Смена: 536 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228472 ФПД: 27437980658634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T004834&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228472&fm=27437980658634&tin=02508201610067®Number=0000000000091685&sum=50000 [00:48:34]StoreToDocumentArchive [00:48:34]shift 536 fd 228472 [00:48:34]save to /storage/0536/doc_00228472 [00:48:34]save last doc name /storage/0536/doc_00228472 to /storage/kkm_last_doc_name [00:48:34]save OK [00:48:34]Clear old archive folders... [00:48:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:48:34]tlvbuf is 00306CC0 [00:48:34]SAM_PROTO_ClearQueue [00:48:34]wFMCommunicate request_size=4 [00:48:34]MH_SAM_APDU [00:48:34]CAPDU: 80 09 00 00 [00:48:34]Write to MH i2c: E2 08 00 2B 0F 80 09 00 00 00 00 00 00 AC [00:48:34]Write i2c OK [00:48:34]MH_I2C_Read... [00:48:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:48:34]Read from MH i2c: E2 [00:48:34]MH_I2C_Read... [00:48:34]Read from MH i2c: E2 03 00 [00:48:34]MH_I2C_Read... [00:48:34]Read from MH i2c: E2 03 00 2B 0F 00 90 00 AE [00:48:34]RAPDU: 90 00 [00:48:34]wFMCommunicate OK [00:48:34]SAM_PROTO_ClearQueue done [00:48:34]KKMCreateOFDPacket [00:48:34]OFDProtocolAddRootSTLVToBuf [00:48:34]FM_MakeSignedData [00:48:34]FM_MakeSignedData [00:48:34]SAM_PROTO_SignData [00:48:34]wFMCommunicate request_size=4 [00:48:34]MH_SAM_APDU [00:48:34]CAPDU: 80 0D 01 02 [00:48:34]Write to MH i2c: E2 08 00 2C 0F 80 0D 01 02 00 00 00 00 B4 [00:48:34]Write i2c OK [00:48:34]MH_I2C_Read... [00:48:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:48:34]Read from MH i2c: E2 [00:48:34]MH_I2C_Read... [00:48:34]Read from MH i2c: E2 03 00 [00:48:34]MH_I2C_Read... [00:48:34]Read from MH i2c: E2 03 00 2C 0F 00 90 00 AF [00:48:34]RAPDU: 90 00 [00:48:34]wFMCommunicate OK [00:48:34]wFMCommunicate request_size=255 [00:48:34]MH_SAM_APDU [00:48: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 E2 47 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 78 7C 03 00 35 04 06 00 18 [00:48:34]Write to MH i2c: E2 02 01 2D 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 E2 47 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 78 7C 03 00 35 04 06 00 18 00 00 24 [00:48:34]Write i2c OK [00:48:34]MH_I2C_Read... [00:48:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:34]Read from MH i2c: E2 [00:48:34]MH_I2C_Read... [00:48:34]Read from MH i2c: E2 03 00 [00:48:34]MH_I2C_Read... [00:48:34]Read from MH i2c: E2 03 00 2D 0F 00 90 00 B0 [00:48:34]RAPDU: 90 00 [00:48:34]wFMCommunicate OK [00:48:34]wFMCommunicate request_size=10 [00:48:34]MH_SAM_APDU [00:48:34]CAPDU: 80 0D 02 02 05 F4 67 17 2B CA [00:48:34]Write to MH i2c: E2 0D 00 2E 0F 80 0D 02 02 05 00 F4 67 17 2B CA 00 00 28 [00:48:34]Write i2c OK [00:48:34]MH_I2C_Read... [00:48:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:34]Read from MH i2c: E2 [00:48:34]MH_I2C_Read... [00:48:34]Read from MH i2c: E2 03 00 [00:48:34]MH_I2C_Read... [00:48:34]Read from MH i2c: E2 03 00 2E 0F 00 90 00 B1 [00:48:34]RAPDU: 90 00 [00:48:34]wFMCommunicate OK [00:48:34]wFMCommunicate request_size=4 [00:48:34]MH_SAM_APDU [00:48:34]CAPDU: 80 0D 03 02 [00:48:34]Write to MH i2c: E2 08 00 2F 0F 80 0D 03 02 00 00 00 00 B9 [00:48:34]Write i2c OK [00:48:34]MH_I2C_Read... [00:48:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:48:34]Read from MH i2c: E2 [00:48:34]MH_I2C_Read... [00:48:34]Read from MH i2c: E2 0B 00 [00:48:34]MH_I2C_Read... [00:48:34]Read from MH i2c: E2 0B 00 2F 0F 00 B0 9C 0E F2 F8 1B C0 5D 90 00 36 [00:48:34]RAPDU: B0 9C 0E F2 F8 1B C0 5D 90 00 [00:48:34]wFMCommunicate OK [00:48:34]SAM_PROTO_SignData done [00:48:34]FM_MakeSignedData done [00:48:34]CreateOFDProtocolMessage [00:48:34]wFMCommunicate request_size=4 [00:48:34]MH_SAM_APDU [00:48:34]CAPDU: 80 11 00 00 [00:48:34]Write to MH i2c: E2 08 00 30 0F 80 11 00 00 00 00 00 00 B9 [00:48:34]Write i2c OK [00:48:34]MH_I2C_Read... [00:48:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:34]Read from MH i2c: E2 [00:48:34]MH_I2C_Read... [00:48:34]Read from MH i2c: E2 17 00 [00:48:34]MH_I2C_Read... [00:48:34]Read from MH i2c: E2 17 00 30 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 10 [00:48:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:48:34]wFMCommunicate OK [00:48:34]CreateOFDProtocolMessage done [00:48:34]OFDSenderStorePacket 228472 [00:48:34]StoreOFDPacket docnum=228472 [00:48:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 03 63 07 01 9A 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 E2 47 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 78 7C 03 00 35 04 06 00 18 F4 67 17 2B CA B0 9C 0E F2 F8 1B C0 5D [00:48:34]CheckFolder [00:48:34]dirname=/storage/ofd_packets [00:48:34]CheckFolder done [00:48:34]ProducePacketName [00:48:34]name=ofd_packets/00228472 [00:48:34]NVStorageSaveData ofd_packets/00228472 [00:48:34]File name is /storage/ofd_packets/00228472 [00:48:34]Write 301 bytes [00:48:34]NVStorageSaveData done [00:48:34]OFDSenderStorePacket done [00:48:34]KKMCreateOFDPacket done [00:48:34]NVStorageSaveData kkm_last_timestamp [00:48:34]File name is /storage/kkm_last_timestamp [00:48:34]Write 4 bytes [00:48:34]NVStorageSaveData done [00:48:34]ExternCall_PrintAddStr [00:48:34]wPrintStart [00:48:34]Write to MH i2c: 01 00 00 31 0F 40 [00:48:34]Write i2c OK [00:48:34]MH_I2C_Read... [00:48:34]Read from MH i2c: 01 [00:48:34]MH_I2C_Read... [00:48:34]Read from MH i2c: 01 07 00 [00:48:34]MH_I2C_Read... [00:48:34]Read from MH i2c: 01 07 00 31 0F 00 00 00 00 00 FF 0F 55 [00:48:34]RasterBufferAndPrint [00:48:34]line Счет N : (1)1965141 [00:48:34]line ИНН: 02508201610067 [00:48:34]line Контрольно-Кассовый Чек [00:48:34]line ПРОДАЖА [00:48:34]line ТРК (МРК, ГНК) : 63 [00:48:34]line Товар: 2710124130 [00:48:34]line Аи-92-К-5 [00:48:34]line 7.480 * 66.90 [00:48:34]line = 500.41 [00:48:34]line НДС 12% НСП 1% [00:48:34]line > о реализуемом товаре [00:48:34]line ОКРУГЛЕНИЕ: -0.41 [00:48:34]line ИТОГО: 500.00 [00:48:34]line Внесено: 500.00 [00:48:34]line СДАЧА: 0.00 [00:48:34]line НСП 1% : 4.43 [00:48:34]line НДС 12% : 53.14 [00:48:34]line Наличными: 500.00 [00:48:34]line Безнал.: 0.00 [00:48:34]line Место: АЗС № 133 "Партнер Нефть" [00:48:34]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [00:48:34]line СНО: Общий режим [00:48:34]line Чек 8 23.10.2024 00:48 [00:48:34]line Смена: 536 ФФД: 1.0 [00:48:34]line ЗНМ: 0300000091 [00:48:34]line РНМ: 0000000000091685 [00:48:34]line Версия ККМ: 001 [00:48:34]line ФМ: 0000000000871839 [00:48:34]line ФД: 228472 [00:48:34]line ФПД: 27437980658634 [00:48:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T004834&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228472&fm=27437980658634&tin=02508201610067®Number=0000000000091685&sum=50000 [00:48:34]OFD Sender: Processing packet 228472 [packets to send 38, broken 37] [00:48:34]ProducePacketName [00:48:34]name=ofd_packets/00228472 [00:48:34]OFD Sender: To server: pG, [00:48:34]CommunicateWithHost lk.salyk.kg:30040 [00:48:34]ConnectInit lk.salyk.kg [00:48:34]written 0, free lines is 4095 [00:48:35]Connected sock=10 [00:48:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 03 63 07 01 9A 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 E2 47 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 78 7C 03 00 35 04 06 00 18 F4 67 17 2B CA B0 9C 0E F2 F8 1B C0 5D [00:48:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 65 48 47 00 BD 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 78 7C 03 00 F4 03 04 00 D8 F2 17 67 B6 04 01 00 00 EE 7E BD CC D1 2E 11 F9 [00:48:35]CommunicateWithHost err = 0 [00:48:35]CheckOFDResponse [00:48:35]1017 (14) - 77093643461234 [00:48:35]1041 (16) - 0000000000871839 [00:48:35]1040 (4) - 228472 [00:48:35]1012 (4) - 22.10.2024 18:45 [00:48:35]1206 (1) - 0 [00:48:35]OFD Sender: Remove packet 228472 [00:48:35]ProducePacketName [00:48:35]name=ofd_packets/00228472 [00:48:35]NVStorageDeleteData [00:48:35]Write to MH i2c: 01 00 00 5B 0F 6A [00:48:35]Write i2c OK [00:48:35]MH_I2C_Read... [00:48:35]Read from MH i2c: 01 [00:48:35]MH_I2C_Read... [00:48:35]Read from MH i2c: 01 07 00 [00:48:35]MH_I2C_Read... [00:48:35]Read from MH i2c: 01 07 00 5B 0F 00 00 00 00 00 98 0C 15 [00:48:35]RasterBufferAndPrint [00:48:35]line [00:48:35]line [00:48:35]line [00:48:35]line [00:48:35]line [00:48:35]written 0, free lines is 3228 [00:48:35]MH_Cut [00:48:35]Write to MH i2c: D1 01 00 62 0F 01 43 [00:48:35]Write i2c OK [00:48:35]MH_I2C_Read... [00:48:35]Read from MH i2c: D1 [00:48:35]MH_I2C_Read... [00:48:35]Read from MH i2c: D1 01 00 [00:48:35]MH_I2C_Read... [00:48:35]Read from MH i2c: D1 01 00 62 0F 00 42 [00:48:35]Write to MH i2c: 01 00 00 63 0F 72 [00:48:35]Write i2c OK [00:48:35]MH_I2C_Read... [00:48:35]OFD Sender: No OFD packet to send [00:48:36]*** Cut start [00:48:36]*** Partial cut [00:48:36]*** CUTSNS_PIN = 1 [00:48:36]*** CUTSNS_PIN = 0 [00:48:36]*** Brake cut motor [00:48:36]Read from MH i2c: 01 [00:48:36]MH_I2C_Read... [00:48:36]*** Stop cut motor [00:48:36]*** Cut end [00:48:36]Read from MH i2c: 01 07 00 [00:48:36]MH_I2C_Read... [00:48:36]Read from MH i2c: 01 07 00 63 0F 00 00 00 00 00 FF 0F 87 [00:48:36]process_action close_receipt done [00:48:36]requested_data is exist [00:48:36]produce_requested_data [00:48:36]requested_item fm.sn is exist - process it [00:48:36]wFMCommunicate request_size=4 [00:48:36]MH_SAM_APDU [00:48:36]CAPDU: 80 11 00 00 [00:48:36]Write to MH i2c: E2 08 00 64 0F 80 11 00 00 00 00 00 00 ED [00:48:36]Write i2c OK [00:48:36]MH_I2C_Read... [00:48:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:37]Read from MH i2c: E2 [00:48:37]MH_I2C_Read... [00:48:37]Read from MH i2c: E2 17 00 [00:48:37]MH_I2C_Read... [00:48:37]Read from MH i2c: E2 17 00 64 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 44 [00:48:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:48:37]wFMCommunicate OK [00:48:37]requested_item fd.num is exist - process it [00:48:37]SAM_PROTO_GetFieldsCounters [00:48:37]wFMCommunicate request_size=4 [00:48:37]MH_SAM_APDU [00:48:37]CAPDU: 80 13 00 00 [00:48:37]Write to MH i2c: E2 08 00 65 0F 80 13 00 00 00 00 00 00 F0 [00:48:37]Write i2c OK [00:48:37]MH_I2C_Read... [00:48:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:48:37]Read from MH i2c: E2 [00:48:37]MH_I2C_Read... [00:48:37]Read from MH i2c: E2 62 00 [00:48:37]MH_I2C_Read... [00:48:37]Read from MH i2c: E2 62 00 65 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 78 7C 03 00 0E 04 04 00 18 02 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 42 [00:48:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 78 7C 03 00 0E 04 04 00 18 02 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:48:37]wFMCommunicate OK [00:48:37]SAM_PROTO_GetFieldsCounters done [00:48:37]requested_item shift.num is exist - process it [00:48:37]requested_item shift.opened is exist - process it [00:48:37]req_shift_opened [00:48:37]FM_GetShiftState [00:48:37]SAM_PROTO_GetShiftState [00:48:37]wFMCommunicate request_size=4 [00:48:37]MH_SAM_APDU [00:48:37]CAPDU: 80 13 01 00 [00:48:37]Write to MH i2c: E2 08 00 66 0F 80 13 01 00 00 00 00 00 F2 [00:48:37]Write i2c OK [00:48:37]MH_I2C_Read... [00:48:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:37]Read from MH i2c: E2 [00:48:37]MH_I2C_Read... [00:48:37]Read from MH i2c: E2 0E 00 [00:48:37]MH_I2C_Read... [00:48:37]Read from MH i2c: E2 0E 00 66 0F 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 2C [00:48:37]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [00:48:37]wFMCommunicate OK [00:48:37]SAM_PROTO_GetShiftState done [00:48:37]FM_GetShiftState done [00:48:37]req_shift_opened done [00:48:37]requested_item shift.open_date is exist - process it [00:48:37]req_shift_open_date [00:48:37]req_shift_open_date done [00:48:37]produce_requested_data done [00:48:37]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228472,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352} [00:48:37]process_action_free close_receipt [00:48:37]json_value_free [00:48:37]json_value_free done [00:48:37]process_json_proto returns [00:48:37]Send response to host [00:48:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228472,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352}}} [00:48:37]free response buf [00:48:37]execute_script done [00:48:37]execute_script returns [00:48:37]free content buf [00:48:37]Sock 9.Close socket [00:48:37]Sock 9.Thread stoped [00:48:40]OFD Sender: No OFD packet to send [00:48:45]OFD Sender: No OFD packet to send [00:48:50]OFD Sender: No OFD packet to send [00:48:55]OFD Sender: No OFD packet to send [00:49:00]OFD Sender: No OFD packet to send [00:49:05]OFD Sender: No OFD packet to send [00:49:10]OFD Sender: No OFD packet to send [00:49:15]OFD Sender: No OFD packet to send [00:49:20]OFD Sender: No OFD packet to send [00:49:25]OFD Sender: No OFD packet to send [00:49:30]OFD Sender: No OFD packet to send [00:49:35]OFD Sender: No OFD packet to send [00:49:40]OFD Sender: No OFD packet to send [00:49:45]OFD Sender: No OFD packet to send [00:49:50]OFD Sender: No OFD packet to send [00:49:55]OFD Sender: No OFD packet to send [00:50:00]OFD Sender: No OFD packet to send [00:50:05]OFD Sender: No OFD packet to send [00:50:10]OFD Sender: No OFD packet to send [00:50:15]OFD Sender: No OFD packet to send [00:50:20]OFD Sender: No OFD packet to send [00:50:25]OFD Sender: No OFD packet to send [00:50:30]OFD Sender: No OFD packet to send [00:50:35]OFD Sender: No OFD packet to send [00:50:40]OFD Sender: No OFD packet to send [00:50:45]OFD Sender: No OFD packet to send [00:50:50]OFD Sender: No OFD packet to send [00:50:55]OFD Sender: No OFD packet to send [00:51:00]OFD Sender: No OFD packet to send [00:51:05]OFD Sender: No OFD packet to send [00:51:10]OFD Sender: No OFD packet to send [00:51:15]OFD Sender: No OFD packet to send [00:51:20]OFD Sender: No OFD packet to send [00:51:25]OFD Sender: No OFD packet to send [00:51:30]OFD Sender: No OFD packet to send [00:51:35]OFD Sender: No OFD packet to send [00:51:40]OFD Sender: No OFD packet to send [00:51:45]OFD Sender: No OFD packet to send [00:51:50]OFD Sender: No OFD packet to send [00:51:55]OFD Sender: No OFD packet to send [00:52:00]OFD Sender: No OFD packet to send [00:52:05]OFD Sender: No OFD packet to send [00:52:10]OFD Sender: No OFD packet to send [00:52:15]OFD Sender: No OFD packet to send [00:52:20]OFD Sender: No OFD packet to send [00:52:25]OFD Sender: No OFD packet to send [00:52:30]OFD Sender: No OFD packet to send [00:52:35]OFD Sender: No OFD packet to send [00:52:40]OFD Sender: No OFD packet to send [00:52:45]OFD Sender: No OFD packet to send [00:52:50]OFD Sender: No OFD packet to send [00:52:55]OFD Sender: No OFD packet to send [00:53:00]OFD Sender: No OFD packet to send [00:53:05]OFD Sender: No OFD packet to send [00:53:10]OFD Sender: No OFD packet to send [00:53:15]OFD Sender: No OFD packet to send [00:53:20]OFD Sender: No OFD packet to send [00:53:25]OFD Sender: No OFD packet to send [00:53:30]OFD Sender: No OFD packet to send [00:53:36]OFD Sender: No OFD packet to send [00:53:41]OFD Sender: No OFD packet to send [00:53:46]OFD Sender: No OFD packet to send [00:53:51]OFD Sender: No OFD packet to send [00:53:56]OFD Sender: No OFD packet to send [00:54:01]OFD Sender: No OFD packet to send [00:54:06]OFD Sender: No OFD packet to send [00:54:11]OFD Sender: No OFD packet to send [00:54:16]OFD Sender: No OFD packet to send [00:54:21]OFD Sender: No OFD packet to send [00:54:26]OFD Sender: No OFD packet to send [00:54:31]OFD Sender: No OFD packet to send [00:54:36]OFD Sender: No OFD packet to send [00:54:41]OFD Sender: No OFD packet to send [00:54:46]OFD Sender: No OFD packet to send [00:54:51]OFD Sender: No OFD packet to send [00:54:56]OFD Sender: No OFD packet to send [00:55:01]OFD Sender: No OFD packet to send [00:55:06]OFD Sender: No OFD packet to send [00:55:11]OFD Sender: No OFD packet to send [00:55:16]OFD Sender: No OFD packet to send [00:55:21]OFD Sender: No OFD packet to send [00:55:21]accept exits with 7 [00:55:21]New connection [00:55:21]New thread 3066977636 created [00:55:21]Thread 3066834276 joined [00:55:21]Waiting for new connection... [00:55:21] Sock 7.Parse request [00:55:21]Sock 7.Check first char [00:55:21]Sock 7.First char is OK [00:55:21]request: POST /json_proto HTTP/1.0 [00:55:21]Method: POST [00:55:21]URL: /json_proto [00:55:21]Method is POST - this is cgi request [00:55:21]url: /json_proto [00:55:21]query_string will be loaded in cgi processing [00:55:21]execute_cgi json_proto POST (null) [00:55:21]execute_cgi path=json_proto method=POST [00:55:21]POST find Content-Length [00:55:21]Host: 172.17.44.195:8080 [00:55:21]Content-Length: 659 [00:55:21]Content-Type: application/json [00:55:21] [00:55:21]POST finish read [00:55:21]Found Content-Length = 659 [00:55:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 5.850, "sum" : 400.14, "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" ] } } [00:55:21]execute_script... [00:55: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)1965142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 5.850, "sum" : 400.14, "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" ] } } [00:55:21]POST & json_proto [00:55:21]process_json_proto [00:55:21]json parsed OK: [00:55:21]protocol is kg_v1.0 [00:55:21]action value=close_receipt [00:55:21]process_action close_receipt [00:55:21]cmd_close_receipt [00:55:21]MH_GetDate [00:55:21]Write to MH i2c: F0 00 00 67 0F 65 [00:55:21]Write i2c OK [00:55:21]MH_I2C_Read... [00:55:21]Read from MH i2c: F0 [00:55:21]MH_I2C_Read... [00:55:21]Read from MH i2c: F0 09 00 [00:55:21]MH_I2C_Read... [00:55:21]Read from MH i2c: F0 09 00 67 0F 00 7B 49 18 67 82 C9 CF 66 31 [00:55:21]GetLastDocTimeStamp 1729644514 [00:55:21]current date 1729644923 [00:55:21]FM_GetShiftState [00:55:21]SAM_PROTO_GetShiftState [00:55:21]wFMCommunicate request_size=4 [00:55:21]MH_SAM_APDU [00:55:21]CAPDU: 80 13 01 00 [00:55:21]Write to MH i2c: E2 08 00 68 0F 80 13 01 00 00 00 00 00 F4 [00:55:21]Write i2c OK [00:55:21]MH_I2C_Read... [00:55:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:55:21]Read from MH i2c: E2 [00:55:21]MH_I2C_Read... [00:55:21]Read from MH i2c: E2 0E 00 [00:55:21]MH_I2C_Read... [00:55:21]Read from MH i2c: E2 0E 00 68 0F 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 2E [00:55:21]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [00:55:21]wFMCommunicate OK [00:55:21]SAM_PROTO_GetShiftState done [00:55:21]FM_GetShiftState done [00:55:21]opened in 1729642352 [00:55:21]opened+sec_in_day 1729728752 [00:55:21]quantity*price = 40014 [00:55:21]sum+1 = 40015 [00:55:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.49 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 9 23.10.2024 00:55 Смена: 536 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228473 ФПД: 226487596358972 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T005523&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228473&fm=226487596358972&tin=02508201610067®Number=0000000000091685&sum=40000 [00:55:23]StoreToDocumentArchive [00:55:23]shift 536 fd 228473 [00:55:23]save to /storage/0536/doc_00228473 [00:55:23]save last doc name /storage/0536/doc_00228473 to /storage/kkm_last_doc_name [00:55:23]save OK [00:55:23]Clear old archive folders... [00:55:23]ProcessDocumentItem done err = 0, tmpTLVsize=244 [00:55:23]tlvbuf is 002F1FB0 [00:55:23]SAM_PROTO_ClearQueue [00:55:23]wFMCommunicate request_size=4 [00:55:23]MH_SAM_APDU [00:55:23]CAPDU: 80 09 00 00 [00:55:23]Write to MH i2c: E2 08 00 75 0F 80 09 00 00 00 00 00 00 F6 [00:55:23]Write i2c OK [00:55:23]MH_I2C_Read... [00:55:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:55:23]Read from MH i2c: E2 [00:55:23]MH_I2C_Read... [00:55:23]Read from MH i2c: E2 03 00 [00:55:23]MH_I2C_Read... [00:55:23]Read from MH i2c: E2 03 00 75 0F 00 90 00 F8 [00:55:23]RAPDU: 90 00 [00:55:23]wFMCommunicate OK [00:55:23]SAM_PROTO_ClearQueue done [00:55:23]KKMCreateOFDPacket [00:55:23]OFDProtocolAddRootSTLVToBuf [00:55:23]FM_MakeSignedData [00:55:23]FM_MakeSignedData [00:55:23]SAM_PROTO_SignData [00:55:23]wFMCommunicate request_size=4 [00:55:23]MH_SAM_APDU [00:55:23]CAPDU: 80 0D 01 02 [00:55:23]Write to MH i2c: E2 08 00 76 0F 80 0D 01 02 00 00 00 00 FE [00:55:23]Write i2c OK [00:55:23]MH_I2C_Read... [00:55:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:55:23]Read from MH i2c: E2 [00:55:23]MH_I2C_Read... [00:55:23]Read from MH i2c: E2 03 00 [00:55:23]MH_I2C_Read... [00:55:23]Read from MH i2c: E2 03 00 76 0F 00 90 00 F9 [00:55:23]RAPDU: 90 00 [00:55:23]wFMCommunicate OK [00:55:23]wFMCommunicate request_size=253 [00:55:23]MH_SAM_APDU [00:55:23]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 09 00 00 00 F4 03 04 00 7B 49 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 79 7C 03 00 35 04 06 00 CD FD 40 BA 1D 3C [00:55:23]Write to MH i2c: E2 00 01 77 0F 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 09 00 00 00 F4 03 04 00 7B 49 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 79 7C 03 00 35 04 06 00 CD FD 40 BA 1D 3C 00 00 A9 [00:55:23]Write i2c OK [00:55:23]MH_I2C_Read... [00:55:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:55:23]Read from MH i2c: E2 [00:55:23]MH_I2C_Read... [00:55:23]Read from MH i2c: E2 03 00 [00:55:23]MH_I2C_Read... [00:55:23]Read from MH i2c: E2 03 00 77 0F 00 90 00 FA [00:55:23]RAPDU: 90 00 [00:55:23]wFMCommunicate OK [00:55:23]wFMCommunicate request_size=4 [00:55:23]MH_SAM_APDU [00:55:23]CAPDU: 80 0D 03 02 [00:55:23]Write to MH i2c: E2 08 00 78 0F 80 0D 03 02 00 00 00 00 02 [00:55:23]Write i2c OK [00:55:23]MH_I2C_Read... [00:55:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:55:23]Read from MH i2c: E2 [00:55:23]MH_I2C_Read... [00:55:23]Read from MH i2c: E2 0B 00 [00:55:23]MH_I2C_Read... [00:55:23]Read from MH i2c: E2 0B 00 78 0F 00 65 CA E0 78 7C C5 65 EE 90 00 1E [00:55:23]RAPDU: 65 CA E0 78 7C C5 65 EE 90 00 [00:55:23]wFMCommunicate OK [00:55:23]SAM_PROTO_SignData done [00:55:23]FM_MakeSignedData done [00:55:23]CreateOFDProtocolMessage [00:55:23]wFMCommunicate request_size=4 [00:55:23]MH_SAM_APDU [00:55:23]CAPDU: 80 11 00 00 [00:55:23]Write to MH i2c: E2 08 00 79 0F 80 11 00 00 00 00 00 00 02 [00:55:23]Write i2c OK [00:55:23]MH_I2C_Read... [00:55:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:55:23]Read from MH i2c: E2 [00:55:23]MH_I2C_Read... [00:55:23]Read from MH i2c: E2 17 00 [00:55:23]MH_I2C_Read... [00:55:23]Read from MH i2c: E2 17 00 79 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 59 [00:55:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:55:23]wFMCommunicate OK [00:55:23]CreateOFDProtocolMessage done [00:55:23]OFDSenderStorePacket 228473 [00:55:23]StoreOFDPacket docnum=228473 [00:55:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 67 B7 00 01 BE 99 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 09 00 00 00 F4 03 04 00 7B 49 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 79 7C 03 00 35 04 06 00 CD FD 40 BA 1D 3C 65 CA E0 78 7C C5 65 EE [00:55:23]CheckFolder [00:55:23]dirname=/storage/ofd_packets [00:55:23]CheckFolder done [00:55:23]ProducePacketName [00:55:23]name=ofd_packets/00228473 [00:55:23]NVStorageSaveData ofd_packets/00228473 [00:55:23]File name is /storage/ofd_packets/00228473 [00:55:23]Write 294 bytes [00:55:23]NVStorageSaveData done [00:55:23]OFDSenderStorePacket done [00:55:23]KKMCreateOFDPacket done [00:55:23]NVStorageSaveData kkm_last_timestamp [00:55:23]File name is /storage/kkm_last_timestamp [00:55:23]Write 4 bytes [00:55:23]NVStorageSaveData done [00:55:23]ExternCall_PrintAddStr [00:55:23]wPrintStart [00:55:23]Write to MH i2c: 01 00 00 7A 0F 89 [00:55:23]Write i2c OK [00:55:23]MH_I2C_Read... [00:55:23]Read from MH i2c: 01 [00:55:23]MH_I2C_Read... [00:55:23]Read from MH i2c: 01 07 00 [00:55:23]MH_I2C_Read... [00:55:23]Read from MH i2c: 01 07 00 7A 0F 00 00 00 00 00 FF 0F 9E [00:55:23]RasterBufferAndPrint [00:55:23]line Счет N : (1)1965142 [00:55:23]line ИНН: 02508201610067 [00:55:23]line Контрольно-Кассовый Чек [00:55:23]line ПРОДАЖА [00:55:23]line ТРК (МРК, ГНК) : 32 [00:55:23]line Товар: 2710124130 [00:55:23]line SU-92 [00:55:23]line 5.850 * 68.40 [00:55:23]line = 400.14 [00:55:23]line НДС 12% НСП 1% [00:55:23]line > о реализуемом товаре [00:55:23]line ОКРУГЛЕНИЕ: -0.14 [00:55:23]line ИТОГО: 400.00 [00:55:23]line Внесено: 400.00 [00:55:23]line СДАЧА: 0.00 [00:55:23]line НСП 1% : 3.54 [00:55:23]line НДС 12% : 42.49 [00:55:23]line Наличными: 400.00 [00:55:23]line Безнал.: 0.00 [00:55:23]line Место: АЗС № 133 "Партнер Нефть" [00:55:23]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [00:55:23]line СНО: Общий режим [00:55:23]line Чек 9 23.10.2024 00:55 [00:55:23]line Смена: 536 ФФД: 1.0 [00:55:23]line ЗНМ: 0300000091 [00:55:23]line РНМ: 0000000000091685 [00:55:23]line Версия ККМ: 001 [00:55:23]line ФМ: 0000000000871839 [00:55:23]line ФД: 228473 [00:55:23]line ФПД: 226487596358972 [00:55:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T005523&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228473&fm=226487596358972&tin=02508201610067®Number=0000000000091685&sum=40000 [00:55:23]OFD Sender: Processing packet 228473 [packets to send 38, broken 37] [00:55:23]ProducePacketName [00:55:23]name=ofd_packets/00228473 [00:55:23]OFD Sender: To server: pG, [00:55:23]CommunicateWithHost lk.salyk.kg:30040 [00:55:23]ConnectInit lk.salyk.kg [00:55:23]written 0, free lines is 4095 [00:55:23]Connected sock=10 [00:55:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 67 B7 00 01 BE 99 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 09 00 00 00 F4 03 04 00 7B 49 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 79 7C 03 00 35 04 06 00 CD FD 40 BA 1D 3C 65 CA E0 78 7C C5 65 EE [00:55:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 BE 63 47 00 06 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 79 7C 03 00 F4 03 04 00 71 F4 17 67 B6 04 01 00 00 33 14 D8 10 01 41 9A C8 [00:55:24]CommunicateWithHost err = 0 [00:55:24]CheckOFDResponse [00:55:24]1017 (14) - 77093643461234 [00:55:24]1041 (16) - 0000000000871839 [00:55:24]1040 (4) - 228473 [00:55:24]1012 (4) - 22.10.2024 18:52 [00:55:24]1206 (1) - 0 [00:55:24]OFD Sender: Remove packet 228473 [00:55:24]ProducePacketName [00:55:24]name=ofd_packets/00228473 [00:55:24]NVStorageDeleteData [00:55:24]Write to MH i2c: 01 00 00 A4 0F B3 [00:55:24]Write i2c OK [00:55:24]MH_I2C_Read... [00:55:24]Read from MH i2c: 01 [00:55:24]MH_I2C_Read... [00:55:24]Read from MH i2c: 01 07 00 [00:55:24]MH_I2C_Read... [00:55:24]Read from MH i2c: 01 07 00 A4 0F 00 00 00 00 00 9B 0C 61 [00:55:24]RasterBufferAndPrint [00:55:24]line [00:55:24]line [00:55:24]line [00:55:24]line [00:55:24]line [00:55:24]written 0, free lines is 3232 [00:55:24]MH_Cut [00:55:24]Write to MH i2c: D1 01 00 AB 0F 01 8C [00:55:24]Write i2c OK [00:55:24]MH_I2C_Read... [00:55:24]Read from MH i2c: D1 [00:55:24]MH_I2C_Read... [00:55:24]Read from MH i2c: D1 01 00 [00:55:24]MH_I2C_Read... [00:55:24]Read from MH i2c: D1 01 00 AB 0F 00 8B [00:55:24]Write to MH i2c: 01 00 00 AC 0F BB [00:55:24]Write i2c OK [00:55:24]MH_I2C_Read... [00:55:24]OFD Sender: No OFD packet to send [00:55:25]*** Cut start [00:55:25]*** Partial cut [00:55:25]*** CUTSNS_PIN = 1 [00:55:25]*** CUTSNS_PIN = 0 [00:55:25]*** Brake cut motor [00:55:25]Read from MH i2c: 01 [00:55:25]MH_I2C_Read... [00:55:25]*** Stop cut motor [00:55:25]*** Cut end [00:55:25]Read from MH i2c: 01 07 00 [00:55:25]MH_I2C_Read... [00:55:25]Read from MH i2c: 01 07 00 AC 0F 00 00 00 00 00 FF 0F D0 [00:55:25]process_action close_receipt done [00:55:25]requested_data is exist [00:55:25]produce_requested_data [00:55:25]requested_item fm.sn is exist - process it [00:55:25]wFMCommunicate request_size=4 [00:55:25]MH_SAM_APDU [00:55:25]CAPDU: 80 11 00 00 [00:55:25]Write to MH i2c: E2 08 00 AD 0F 80 11 00 00 00 00 00 00 36 [00:55:25]Write i2c OK [00:55:25]MH_I2C_Read... [00:55:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:55:26]Read from MH i2c: E2 [00:55:26]MH_I2C_Read... [00:55:26]Read from MH i2c: E2 17 00 [00:55:26]MH_I2C_Read... [00:55:26]Read from MH i2c: E2 17 00 AD 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8D [00:55:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:55:26]wFMCommunicate OK [00:55:26]requested_item fd.num is exist - process it [00:55:26]SAM_PROTO_GetFieldsCounters [00:55:26]wFMCommunicate request_size=4 [00:55:26]MH_SAM_APDU [00:55:26]CAPDU: 80 13 00 00 [00:55:26]Write to MH i2c: E2 08 00 AE 0F 80 13 00 00 00 00 00 00 39 [00:55:26]Write i2c OK [00:55:26]MH_I2C_Read... [00:55:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:55:26]Read from MH i2c: E2 [00:55:26]MH_I2C_Read... [00:55:26]Read from MH i2c: E2 62 00 [00:55:26]MH_I2C_Read... [00:55:26]Read from MH i2c: E2 62 00 AE 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 79 7C 03 00 0E 04 04 00 18 02 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 8F [00:55:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 79 7C 03 00 0E 04 04 00 18 02 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:26]wFMCommunicate OK [00:55:26]SAM_PROTO_GetFieldsCounters done [00:55:26]requested_item shift.num is exist - process it [00:55:26]requested_item shift.opened is exist - process it [00:55:26]req_shift_opened [00:55:26]FM_GetShiftState [00:55:26]SAM_PROTO_GetShiftState [00:55:26]wFMCommunicate request_size=4 [00:55:26]MH_SAM_APDU [00:55:26]CAPDU: 80 13 01 00 [00:55:26]Write to MH i2c: E2 08 00 AF 0F 80 13 01 00 00 00 00 00 3B [00:55:26]Write i2c OK [00:55:26]MH_I2C_Read... [00:55:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:55:26]Read from MH i2c: E2 [00:55:26]MH_I2C_Read... [00:55:26]Read from MH i2c: E2 0E 00 [00:55:26]MH_I2C_Read... [00:55:26]Read from MH i2c: E2 0E 00 AF 0F 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 75 [00:55:26]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [00:55:26]wFMCommunicate OK [00:55:26]SAM_PROTO_GetShiftState done [00:55:26]FM_GetShiftState done [00:55:26]req_shift_opened done [00:55:26]requested_item shift.open_date is exist - process it [00:55:26]req_shift_open_date [00:55:26]req_shift_open_date done [00:55:26]produce_requested_data done [00:55:26]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228473,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352} [00:55:26]process_action_free close_receipt [00:55:26]json_value_free [00:55:26]json_value_free done [00:55:26]process_json_proto returns [00:55:26]Send response to host [00:55:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228473,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352}}} [00:55:26]free response buf [00:55:26]execute_script done [00:55:26]execute_script returns [00:55:26]free content buf [00:55:26]Sock 7.Close socket [00:55:26]Sock 7.Thread stoped [00:55:29]OFD Sender: No OFD packet to send [00:55:34]OFD Sender: No OFD packet to send [00:55:39]OFD Sender: No OFD packet to send [00:55:44]OFD Sender: No OFD packet to send [00:55:49]OFD Sender: No OFD packet to send [00:55:54]OFD Sender: No OFD packet to send [00:55:59]OFD Sender: No OFD packet to send [00:56:04]OFD Sender: No OFD packet to send [00:56:09]OFD Sender: No OFD packet to send [00:56:14]OFD Sender: No OFD packet to send [00:56:19]OFD Sender: No OFD packet to send [00:56:24]OFD Sender: No OFD packet to send [00:56:29]OFD Sender: No OFD packet to send [00:56:34]OFD Sender: No OFD packet to send [00:56:39]OFD Sender: No OFD packet to send [00:56:44]OFD Sender: No OFD packet to send [00:56:49]OFD Sender: No OFD packet to send [00:56:54]OFD Sender: No OFD packet to send [00:56:59]OFD Sender: No OFD packet to send [00:57:04]OFD Sender: No OFD packet to send [00:57:09]OFD Sender: No OFD packet to send [00:57:14]OFD Sender: No OFD packet to send [00:57:19]OFD Sender: No OFD packet to send [00:57:24]OFD Sender: No OFD packet to send [00:57:29]OFD Sender: No OFD packet to send [00:57:34]OFD Sender: No OFD packet to send [00:57:39]OFD Sender: No OFD packet to send [00:57:44]OFD Sender: No OFD packet to send [00:57:49]OFD Sender: No OFD packet to send [00:57:54]OFD Sender: No OFD packet to send [00:57:59]OFD Sender: No OFD packet to send [00:58:04]OFD Sender: No OFD packet to send [00:58:09]OFD Sender: No OFD packet to send [00:58:14]OFD Sender: No OFD packet to send [00:58:19]OFD Sender: No OFD packet to send [00:58:24]OFD Sender: No OFD packet to send [00:58:29]OFD Sender: No OFD packet to send [00:58:34]OFD Sender: No OFD packet to send [00:58:39]OFD Sender: No OFD packet to send [00:58:44]OFD Sender: No OFD packet to send [00:58:49]OFD Sender: No OFD packet to send [00:58:54]OFD Sender: No OFD packet to send [00:58:59]OFD Sender: No OFD packet to send [00:59:04]OFD Sender: No OFD packet to send [00:59:09]OFD Sender: No OFD packet to send [00:59:14]OFD Sender: No OFD packet to send [00:59:19]OFD Sender: No OFD packet to send [00:59:24]OFD Sender: No OFD packet to send [00:59:29]OFD Sender: No OFD packet to send [00:59:34]OFD Sender: No OFD packet to send [00:59:39]OFD Sender: No OFD packet to send [00:59:44]OFD Sender: No OFD packet to send [00:59:49]OFD Sender: No OFD packet to send [00:59:54]OFD Sender: No OFD packet to send [00:59:59]OFD Sender: No OFD packet to send [01:00:04]OFD Sender: No OFD packet to send [01:00:09]OFD Sender: No OFD packet to send [01:00:14]OFD Sender: No OFD packet to send [01:00:19]OFD Sender: No OFD packet to send [01:00:24]OFD Sender: No OFD packet to send [01:00:29]OFD Sender: No OFD packet to send [01:00:34]OFD Sender: No OFD packet to send [01:00:39]OFD Sender: No OFD packet to send [01:00:44]OFD Sender: No OFD packet to send [01:00:49]OFD Sender: No OFD packet to send [01:00:54]OFD Sender: No OFD packet to send [01:00:59]OFD Sender: No OFD packet to send [01:01:05]OFD Sender: No OFD packet to send [01:01:10]OFD Sender: No OFD packet to send [01:01:15]OFD Sender: No OFD packet to send [01:01:20]OFD Sender: No OFD packet to send [01:01:25]OFD Sender: No OFD packet to send [01:01:30]OFD Sender: No OFD packet to send [01:01:35]OFD Sender: No OFD packet to send [01:01:40]OFD Sender: No OFD packet to send [01:01:45]OFD Sender: No OFD packet to send [01:01:50]OFD Sender: No OFD packet to send [01:01:55]OFD Sender: No OFD packet to send [01:02:00]OFD Sender: No OFD packet to send [01:02:05]OFD Sender: No OFD packet to send [01:02:10]OFD Sender: No OFD packet to send [01:02:15]OFD Sender: No OFD packet to send [01:02:20]OFD Sender: No OFD packet to send [01:02:25]OFD Sender: No OFD packet to send [01:02:30]OFD Sender: No OFD packet to send [01:02:35]OFD Sender: No OFD packet to send [01:02:40]OFD Sender: No OFD packet to send [01:02:45]OFD Sender: No OFD packet to send [01:02:50]OFD Sender: No OFD packet to send [01:02:55]OFD Sender: No OFD packet to send [01:03:00]OFD Sender: No OFD packet to send [01:03:05]OFD Sender: No OFD packet to send [01:03:10]OFD Sender: No OFD packet to send [01:03:15]OFD Sender: No OFD packet to send [01:03:20]OFD Sender: No OFD packet to send [01:03:25]OFD Sender: No OFD packet to send [01:03:30]OFD Sender: No OFD packet to send [01:03:35]OFD Sender: No OFD packet to send [01:03:40]OFD Sender: No OFD packet to send [01:03:45]OFD Sender: No OFD packet to send [01:03:50]OFD Sender: No OFD packet to send [01:03:55]OFD Sender: No OFD packet to send [01:04:00]OFD Sender: No OFD packet to send [01:04:05]OFD Sender: No OFD packet to send [01:04:10]OFD Sender: No OFD packet to send [01:04:15]OFD Sender: No OFD packet to send [01:04:20]OFD Sender: No OFD packet to send [01:04:25]OFD Sender: No OFD packet to send [01:04:30]OFD Sender: No OFD packet to send [01:04:35]OFD Sender: No OFD packet to send [01:04:40]OFD Sender: No OFD packet to send [01:04:45]OFD Sender: No OFD packet to send [01:04:50]OFD Sender: No OFD packet to send [01:04:55]OFD Sender: No OFD packet to send [01:05:00]OFD Sender: No OFD packet to send [01:05:05]OFD Sender: No OFD packet to send [01:05:10]OFD Sender: No OFD packet to send [01:05:15]OFD Sender: No OFD packet to send [01:05:20]OFD Sender: No OFD packet to send [01:05:25]OFD Sender: No OFD packet to send [01:05:30]OFD Sender: No OFD packet to send [01:05:35]OFD Sender: No OFD packet to send [01:05:40]OFD Sender: No OFD packet to send [01:05:45]OFD Sender: No OFD packet to send [01:05:50]OFD Sender: No OFD packet to send [01:05:55]OFD Sender: No OFD packet to send [01:06:00]OFD Sender: No OFD packet to send [01:06:05]OFD Sender: No OFD packet to send [01:06:10]OFD Sender: No OFD packet to send [01:06:15]OFD Sender: No OFD packet to send [01:06:20]OFD Sender: No OFD packet to send [01:06:25]OFD Sender: No OFD packet to send [01:06:30]OFD Sender: No OFD packet to send [01:06:35]OFD Sender: No OFD packet to send [01:06:40]OFD Sender: No OFD packet to send [01:06:45]OFD Sender: No OFD packet to send [01:06:50]OFD Sender: No OFD packet to send [01:06:55]OFD Sender: No OFD packet to send [01:07:00]OFD Sender: No OFD packet to send [01:07:05]OFD Sender: No OFD packet to send [01:07:10]OFD Sender: No OFD packet to send [01:07:15]OFD Sender: No OFD packet to send [01:07:20]OFD Sender: No OFD packet to send [01:07:25]OFD Sender: No OFD packet to send [01:07:30]OFD Sender: No OFD packet to send [01:07:35]OFD Sender: No OFD packet to send [01:07:40]OFD Sender: No OFD packet to send [01:07:45]OFD Sender: No OFD packet to send [01:07:50]OFD Sender: No OFD packet to send [01:07:55]OFD Sender: No OFD packet to send [01:08:00]OFD Sender: No OFD packet to send [01:08:05]OFD Sender: No OFD packet to send [01:08:10]OFD Sender: No OFD packet to send [01:08:15]OFD Sender: No OFD packet to send [01:08:20]OFD Sender: No OFD packet to send [01:08:25]OFD Sender: No OFD packet to send [01:08:30]OFD Sender: No OFD packet to send [01:08:33]accept exits with 9 [01:08:33]New connection [01:08:33]New thread 3066834276 created [01:08:33]Thread 3066977636 joined [01:08:33]Waiting for new connection... [01:08:33] Sock 9.Parse request [01:08:33]Sock 9.Check first char [01:08:33]Sock 9.First char is OK [01:08:33]request: POST /json_proto HTTP/1.0 [01:08:33]Method: POST [01:08:33]URL: /json_proto [01:08:33]Method is POST - this is cgi request [01:08:33]url: /json_proto [01:08:33]query_string will be loaded in cgi processing [01:08:33]execute_cgi json_proto POST (null) [01:08:33]execute_cgi path=json_proto method=POST [01:08:33]POST find Content-Length [01:08:33]Host: 172.17.44.195:8080 [01:08:33]Content-Length: 841 [01:08:33]Content-Type: application/json [01:08:33] [01:08:33]POST finish read [01:08:33]Found Content-Length = 841 [01:08:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:08:33]execute_script... [01:08: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)1965143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:08:33]POST & json_proto [01:08:33]process_json_proto [01:08:33]json parsed OK: [01:08:33]protocol is kg_v1.0 [01:08:33]action value=close_receipt [01:08:33]process_action close_receipt [01:08:33]cmd_close_receipt [01:08:33]MH_GetDate [01:08:33]Write to MH i2c: F0 00 00 B0 0F AE [01:08:33]Write i2c OK [01:08:33]MH_I2C_Read... [01:08:33]Read from MH i2c: F0 [01:08:33]MH_I2C_Read... [01:08:33]Read from MH i2c: F0 09 00 [01:08:33]MH_I2C_Read... [01:08:33]Read from MH i2c: F0 09 00 B0 0F 00 92 4C 18 67 82 C9 CF 66 94 [01:08:33]GetLastDocTimeStamp 1729644923 [01:08:33]current date 1729645714 [01:08:33]FM_GetShiftState [01:08:33]SAM_PROTO_GetShiftState [01:08:33]wFMCommunicate request_size=4 [01:08:33]MH_SAM_APDU [01:08:33]CAPDU: 80 13 01 00 [01:08:33]Write to MH i2c: E2 08 00 B1 0F 80 13 01 00 00 00 00 00 3D [01:08:33]Write i2c OK [01:08:33]MH_I2C_Read... [01:08:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:08:33]Read from MH i2c: E2 [01:08:33]MH_I2C_Read... [01:08:33]Read from MH i2c: E2 0E 00 [01:08:33]MH_I2C_Read... [01:08:33]Read from MH i2c: E2 0E 00 B1 0F 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 77 [01:08:33]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [01:08:33]wFMCommunicate OK [01:08:33]SAM_PROTO_GetShiftState done [01:08:33]FM_GetShiftState done [01:08:33]opened in 1729642352 [01:08:33]opened+sec_in_day 1729728752 [01:08:33]quantity*price = 50041 [01:08:33]sum+1 = 50042 [01:08:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 10 23.10.2024 01:08 Смена: 536 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000871839 ФД: 228474 ФПД: 153903151844884 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T010834&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228474&fm=153903151844884&tin=02508201610067®Number=0000000000091685&sum=50041 [01:08:34]StoreToDocumentArchive [01:08:34]shift 536 fd 228474 [01:08:34]save to /storage/0536/doc_00228474 [01:08:34]save last doc name /storage/0536/doc_00228474 to /storage/kkm_last_doc_name [01:08:34]save OK [01:08:34]Clear old archive folders... [01:08:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:08:34]tlvbuf is 0031CD00 [01:08:34]SAM_PROTO_ClearQueue [01:08:34]wFMCommunicate request_size=4 [01:08:34]MH_SAM_APDU [01:08:34]CAPDU: 80 09 00 00 [01:08:34]Write to MH i2c: E2 08 00 BE 0F 80 09 00 00 00 00 00 00 3F [01:08:34]Write i2c OK [01:08:34]MH_I2C_Read... [01:08:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:08:34]Read from MH i2c: E2 [01:08:34]MH_I2C_Read... [01:08:34]Read from MH i2c: E2 03 00 [01:08:34]MH_I2C_Read... [01:08:34]Read from MH i2c: E2 03 00 BE 0F 00 90 00 41 [01:08:34]RAPDU: 90 00 [01:08:34]wFMCommunicate OK [01:08:34]SAM_PROTO_ClearQueue done [01:08:34]KKMCreateOFDPacket [01:08:34]OFDProtocolAddRootSTLVToBuf [01:08:34]FM_MakeSignedData [01:08:34]FM_MakeSignedData [01:08:34]SAM_PROTO_SignData [01:08:34]wFMCommunicate request_size=4 [01:08:34]MH_SAM_APDU [01:08:34]CAPDU: 80 0D 01 02 [01:08:34]Write to MH i2c: E2 08 00 BF 0F 80 0D 01 02 00 00 00 00 47 [01:08:34]Write i2c OK [01:08:34]MH_I2C_Read... [01:08:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:08:34]Read from MH i2c: E2 [01:08:34]MH_I2C_Read... [01:08:34]Read from MH i2c: E2 03 00 [01:08:34]MH_I2C_Read... [01:08:34]Read from MH i2c: E2 03 00 BF 0F 00 90 00 42 [01:08:34]RAPDU: 90 00 [01:08:34]wFMCommunicate OK [01:08:34]wFMCommunicate request_size=255 [01:08:34]MH_SAM_APDU [01:08: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 92 4C 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7A 7C 03 00 35 04 06 00 8B [01:08:34]Write to MH i2c: E2 02 01 C0 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 92 4C 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7A 7C 03 00 35 04 06 00 8B 00 00 35 [01:08:34]Write i2c OK [01:08:34]MH_I2C_Read... [01:08:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:08:34]Read from MH i2c: E2 [01:08:34]MH_I2C_Read... [01:08:34]Read from MH i2c: E2 03 00 [01:08:34]MH_I2C_Read... [01:08:34]Read from MH i2c: E2 03 00 C0 0F 00 90 00 43 [01:08:34]RAPDU: 90 00 [01:08:34]wFMCommunicate OK [01:08:34]wFMCommunicate request_size=10 [01:08:34]MH_SAM_APDU [01:08:34]CAPDU: 80 0D 02 02 05 F9 5E B2 0E 14 [01:08:34]Write to MH i2c: E2 0D 00 C1 0F 80 0D 02 02 05 00 F9 5E B2 0E 14 00 00 7F [01:08:34]Write i2c OK [01:08:34]MH_I2C_Read... [01:08:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:08:34]Read from MH i2c: E2 [01:08:34]MH_I2C_Read... [01:08:34]Read from MH i2c: E2 03 00 [01:08:34]MH_I2C_Read... [01:08:34]Read from MH i2c: E2 03 00 C1 0F 00 90 00 44 [01:08:34]RAPDU: 90 00 [01:08:34]wFMCommunicate OK [01:08:34]wFMCommunicate request_size=4 [01:08:34]MH_SAM_APDU [01:08:34]CAPDU: 80 0D 03 02 [01:08:34]Write to MH i2c: E2 08 00 C2 0F 80 0D 03 02 00 00 00 00 4C [01:08:34]Write i2c OK [01:08:34]MH_I2C_Read... [01:08:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:08:34]Read from MH i2c: E2 [01:08:34]MH_I2C_Read... [01:08:34]Read from MH i2c: E2 0B 00 [01:08:34]MH_I2C_Read... [01:08:34]Read from MH i2c: E2 0B 00 C2 0F 00 AE FB 78 74 FF D9 2F 62 90 00 4B [01:08:34]RAPDU: AE FB 78 74 FF D9 2F 62 90 00 [01:08:34]wFMCommunicate OK [01:08:34]SAM_PROTO_SignData done [01:08:34]FM_MakeSignedData done [01:08:34]CreateOFDProtocolMessage [01:08:34]wFMCommunicate request_size=4 [01:08:34]MH_SAM_APDU [01:08:34]CAPDU: 80 11 00 00 [01:08:34]Write to MH i2c: E2 08 00 C3 0F 80 11 00 00 00 00 00 00 4C [01:08:34]Write i2c OK [01:08:34]MH_I2C_Read... [01:08:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:08:35]Read from MH i2c: E2 [01:08:35]MH_I2C_Read... [01:08:35]Read from MH i2c: E2 17 00 [01:08:35]MH_I2C_Read... [01:08:35]Read from MH i2c: E2 17 00 C3 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A3 [01:08:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [01:08:35]wFMCommunicate OK [01:08:35]CreateOFDProtocolMessage done [01:08:35]OFDSenderStorePacket 228474 [01:08:35]StoreOFDPacket docnum=228474 [01:08:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 45 E0 07 01 F7 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 92 4C 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7A 7C 03 00 35 04 06 00 8B F9 5E B2 0E 14 AE FB 78 74 FF D9 2F 62 [01:08:35]CheckFolder [01:08:35]dirname=/storage/ofd_packets [01:08:35]CheckFolder done [01:08:35]ProducePacketName [01:08:35]name=ofd_packets/00228474 [01:08:35]NVStorageSaveData ofd_packets/00228474 [01:08:35]File name is /storage/ofd_packets/00228474 [01:08:35]Write 301 bytes [01:08:35]NVStorageSaveData done [01:08:35]OFDSenderStorePacket done [01:08:35]KKMCreateOFDPacket done [01:08:35]NVStorageSaveData kkm_last_timestamp [01:08:35]File name is /storage/kkm_last_timestamp [01:08:35]Write 4 bytes [01:08:35]NVStorageSaveData done [01:08:35]OFD Sender: Processing packet 228474 [packets to send 38, broken 37] [01:08:35]ProducePacketName [01:08:35]name=ofd_packets/00228474 [01:08:35]OFD Sender: To server: pG, [01:08:35]CommunicateWithHost lk.salyk.kg:30040 [01:08:35]ConnectInit lk.salyk.kg [01:08:35]ExternCall_PrintAddStr [01:08:35]wPrintStart [01:08:35]Write to MH i2c: 01 00 00 C4 0F D3 [01:08:35]Write i2c OK [01:08:35]MH_I2C_Read... [01:08:35]Read from MH i2c: 01 [01:08:35]MH_I2C_Read... [01:08:35]Read from MH i2c: 01 07 00 [01:08:35]MH_I2C_Read... [01:08:35]Read from MH i2c: 01 07 00 C4 0F 00 00 00 00 00 FF 0F E8 [01:08:35]RasterBufferAndPrint [01:08:35]line Счет N : (1)1965143 [01:08:35]line ИНН: 02508201610067 [01:08:35]line Контрольно-Кассовый Чек [01:08:35]line ПРОДАЖА [01:08:35]line ТРК (МРК, ГНК) : 33 [01:08:35]line Товар: 2710124130 [01:08:35]line Аи-92-К-5 [01:08:35]line 7.480 * 66.90 [01:08:35]line = 500.41 [01:08:35]line НДС 12% НСП 1% [01:08:35]line > о реализуемом товаре [01:08:35]line ИТОГО: 500.41 [01:08:35]line НСП 1% : 4.43 [01:08:35]line НДС 12% : 53.14 [01:08:35]line Наличными: 0.00 [01:08:35]line Безнал.: 500.41 [01:08:35]line Место: АЗС № 133 "Партнер Нефть" [01:08:35]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [01:08:35]line СНО: Общий режим [01:08:35]line Чек 10 23.10.2024 01:08 [01:08:35]line Смена: 536 ФФД: 1.0 [01:08:35]line ЗНМ: 0300000091 [01:08:35]line РНМ: 0000000000091685 [01:08:35]line Версия ККМ: 001 [01:08:35]line Платежная система: АКБ Кыргызстан [01:08:35]line ФМ: 0000000000871839 [01:08:35]line ФД: 228474 [01:08:35]line ФПД: 153903151844884 [01:08:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T010834&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228474&fm=153903151844884&tin=02508201610067®Number=0000000000091685&sum=50041 [01:08:35]Connected sock=11 [01:08:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 45 E0 07 01 F7 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 92 4C 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7A 7C 03 00 35 04 06 00 8B F9 5E B2 0E 14 AE FB 78 74 FF D9 2F 62 [01:08:35]written 0, free lines is 4095 [01:08:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 72 B8 47 00 D8 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7A 7C 03 00 F4 03 04 00 89 F7 17 67 B6 04 01 00 00 A6 1B F6 0F 00 1C 80 49 [01:08:35]CommunicateWithHost err = 0 [01:08:35]CheckOFDResponse [01:08:35]1017 (14) - 77093643461234 [01:08:35]1041 (16) - 0000000000871839 [01:08:35]1040 (4) - 228474 [01:08:35]1012 (4) - 22.10.2024 19:05 [01:08:35]1206 (1) - 0 [01:08:35]OFD Sender: Remove packet 228474 [01:08:35]ProducePacketName [01:08:35]name=ofd_packets/00228474 [01:08:35]NVStorageDeleteData [01:08:35]Write to MH i2c: 01 00 00 ED 0F FC [01:08:35]Write i2c OK [01:08:35]MH_I2C_Read... [01:08:35]Read from MH i2c: 01 [01:08:35]MH_I2C_Read... [01:08:35]Read from MH i2c: 01 07 00 [01:08:35]MH_I2C_Read... [01:08:35]Read from MH i2c: 01 07 00 ED 0F 00 00 00 00 00 B6 0C C5 [01:08:35]RasterBufferAndPrint [01:08:35]line [01:08:35]line [01:08:35]line [01:08:35]line [01:08:35]line [01:08:35]written 0, free lines is 3258 [01:08:35]MH_Cut [01:08:35]Write to MH i2c: D1 01 00 F4 0F 01 D5 [01:08:35]Write i2c OK [01:08:35]MH_I2C_Read... [01:08:35]Read from MH i2c: D1 [01:08:35]MH_I2C_Read... [01:08:35]Read from MH i2c: D1 01 00 [01:08:35]MH_I2C_Read... [01:08:35]Read from MH i2c: D1 01 00 F4 0F 00 D4 [01:08:35]Write to MH i2c: 01 00 00 F5 0F 04 [01:08:35]Write i2c OK [01:08:35]MH_I2C_Read... [01:08:36]OFD Sender: No OFD packet to send [01:08:36]*** Cut start [01:08:36]*** Partial cut [01:08:36]*** CUTSNS_PIN = 1 [01:08:36]*** CUTSNS_PIN = 0 [01:08:37]*** Brake cut motor [01:08:37]Read from MH i2c: 01 [01:08:37]MH_I2C_Read... [01:08:37]*** Stop cut motor [01:08:37]*** Cut end [01:08:37]Read from MH i2c: 01 07 00 [01:08:37]MH_I2C_Read... [01:08:37]Read from MH i2c: 01 07 00 F5 0F 00 00 00 00 00 FF 0F 19 [01:08:37]process_action close_receipt done [01:08:37]requested_data is exist [01:08:37]produce_requested_data [01:08:37]requested_item fm.sn is exist - process it [01:08:37]wFMCommunicate request_size=4 [01:08:37]MH_SAM_APDU [01:08:37]CAPDU: 80 11 00 00 [01:08:37]Write to MH i2c: E2 08 00 F6 0F 80 11 00 00 00 00 00 00 7F [01:08:37]Write i2c OK [01:08:37]MH_I2C_Read... [01:08:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:08:37]Read from MH i2c: E2 [01:08:37]MH_I2C_Read... [01:08:37]Read from MH i2c: E2 17 00 [01:08:37]MH_I2C_Read... [01:08:37]Read from MH i2c: E2 17 00 F6 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D6 [01:08:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [01:08:37]wFMCommunicate OK [01:08:37]requested_item fd.num is exist - process it [01:08:37]SAM_PROTO_GetFieldsCounters [01:08:37]wFMCommunicate request_size=4 [01:08:37]MH_SAM_APDU [01:08:37]CAPDU: 80 13 00 00 [01:08:37]Write to MH i2c: E2 08 00 F7 0F 80 13 00 00 00 00 00 00 82 [01:08:37]Write i2c OK [01:08:37]MH_I2C_Read... [01:08:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:08:37]Read from MH i2c: E2 [01:08:37]MH_I2C_Read... [01:08:37]Read from MH i2c: E2 62 00 [01:08:37]MH_I2C_Read... [01:08:37]Read from MH i2c: E2 62 00 F7 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7A 7C 03 00 0E 04 04 00 18 02 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 DC [01:08:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7A 7C 03 00 0E 04 04 00 18 02 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:08:37]wFMCommunicate OK [01:08:37]SAM_PROTO_GetFieldsCounters done [01:08:37]requested_item shift.num is exist - process it [01:08:37]requested_item shift.opened is exist - process it [01:08:37]req_shift_opened [01:08:37]FM_GetShiftState [01:08:37]SAM_PROTO_GetShiftState [01:08:37]wFMCommunicate request_size=4 [01:08:37]MH_SAM_APDU [01:08:37]CAPDU: 80 13 01 00 [01:08:37]Write to MH i2c: E2 08 00 F8 0F 80 13 01 00 00 00 00 00 84 [01:08:37]Write i2c OK [01:08:37]MH_I2C_Read... [01:08:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:08:37]Read from MH i2c: E2 [01:08:37]MH_I2C_Read... [01:08:37]Read from MH i2c: E2 0E 00 [01:08:37]MH_I2C_Read... [01:08:37]Read from MH i2c: E2 0E 00 F8 0F 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 BE [01:08:37]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [01:08:37]wFMCommunicate OK [01:08:37]SAM_PROTO_GetShiftState done [01:08:37]FM_GetShiftState done [01:08:37]req_shift_opened done [01:08:37]requested_item shift.open_date is exist - process it [01:08:37]req_shift_open_date [01:08:37]req_shift_open_date done [01:08:37]produce_requested_data done [01:08:37]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228474,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352} [01:08:37]process_action_free close_receipt [01:08:37]json_value_free [01:08:37]json_value_free done [01:08:37]process_json_proto returns [01:08:37]Send response to host [01:08:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228474,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352}}} [01:08:37]free response buf [01:08:37]execute_script done [01:08:37]execute_script returns [01:08:37]free content buf [01:08:37]Sock 9.Close socket [01:08:37]Sock 9.Thread stoped [01:08:41]OFD Sender: No OFD packet to send [01:08:46]OFD Sender: No OFD packet to send [01:08:51]OFD Sender: No OFD packet to send [01:08:56]OFD Sender: No OFD packet to send [01:09:01]OFD Sender: No OFD packet to send [01:09:06]OFD Sender: No OFD packet to send [01:09:11]OFD Sender: No OFD packet to send [01:09:16]OFD Sender: No OFD packet to send [01:09:21]OFD Sender: No OFD packet to send [01:09:26]OFD Sender: No OFD packet to send [01:09:31]OFD Sender: No OFD packet to send [01:09:36]OFD Sender: No OFD packet to send [01:09:41]OFD Sender: No OFD packet to send [01:09:46]OFD Sender: No OFD packet to send [01:09:51]OFD Sender: No OFD packet to send [01:09:56]OFD Sender: No OFD packet to send [01:10:01]OFD Sender: No OFD packet to send [01:10:06]OFD Sender: No OFD packet to send [01:10:11]OFD Sender: No OFD packet to send [01:10:16]OFD Sender: No OFD packet to send [01:10:21]OFD Sender: No OFD packet to send [01:10:26]OFD Sender: No OFD packet to send [01:10:31]OFD Sender: No OFD packet to send [01:10:36]OFD Sender: No OFD packet to send [01:10:41]OFD Sender: No OFD packet to send [01:10:46]OFD Sender: No OFD packet to send [01:10:51]OFD Sender: No OFD packet to send [01:10:56]OFD Sender: No OFD packet to send [01:11:01]OFD Sender: No OFD packet to send [01:11:06]OFD Sender: No OFD packet to send [01:11:11]OFD Sender: No OFD packet to send [01:11:16]OFD Sender: No OFD packet to send [01:11:21]OFD Sender: No OFD packet to send [01:11:26]OFD Sender: No OFD packet to send [01:11:31]OFD Sender: No OFD packet to send [01:11:36]OFD Sender: No OFD packet to send [01:11:41]OFD Sender: No OFD packet to send [01:11:46]OFD Sender: No OFD packet to send [01:11:51]OFD Sender: No OFD packet to send [01:11:56]OFD Sender: No OFD packet to send [01:12:01]OFD Sender: No OFD packet to send [01:12:06]OFD Sender: No OFD packet to send [01:12:11]OFD Sender: No OFD packet to send [01:12:16]OFD Sender: No OFD packet to send [01:12:21]OFD Sender: No OFD packet to send [01:12:26]OFD Sender: No OFD packet to send [01:12:31]OFD Sender: No OFD packet to send [01:12:36]OFD Sender: No OFD packet to send [01:12:41]OFD Sender: No OFD packet to send [01:12:46]OFD Sender: No OFD packet to send [01:12:51]OFD Sender: No OFD packet to send [01:12:56]OFD Sender: No OFD packet to send [01:13:01]OFD Sender: No OFD packet to send [01:13:06]OFD Sender: No OFD packet to send [01:13:11]OFD Sender: No OFD packet to send [01:13:16]OFD Sender: No OFD packet to send [01:13:21]OFD Sender: No OFD packet to send [01:13:26]OFD Sender: No OFD packet to send [01:13:31]OFD Sender: No OFD packet to send [01:13:36]OFD Sender: No OFD packet to send [01:13:41]OFD Sender: No OFD packet to send [01:13:46]OFD Sender: No OFD packet to send [01:13:51]OFD Sender: No OFD packet to send [01:13:51]accept exits with 10 [01:13:51]New connection [01:13:51]New thread 3066977636 created [01:13:51]Thread 3066834276 joined [01:13:51]Waiting for new connection... [01:13:51] Sock 10.Parse request [01:13:51]Sock 10.Check first char [01:13:51]Sock 10.First char is OK [01:13:51]request: POST /json_proto HTTP/1.0 [01:13:51]Method: POST [01:13:51]URL: /json_proto [01:13:51]Method is POST - this is cgi request [01:13:51]url: /json_proto [01:13:51]query_string will be loaded in cgi processing [01:13:51]execute_cgi json_proto POST (null) [01:13:51]execute_cgi path=json_proto method=POST [01:13:51]POST find Content-Length [01:13:51]Host: 172.17.44.195:8080 [01:13:51]Content-Length: 683 [01:13:51]Content-Type: application/json [01:13:51] [01:13:51]POST finish read [01:13:51]Found Content-Length = 683 [01:13:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "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" ] } } [01:13:51]execute_script... [01:13:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "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" ] } } [01:13:51]POST & json_proto [01:13:51]process_json_proto [01:13:51]json parsed OK: [01:13:51]protocol is kg_v1.0 [01:13:51]action value=close_receipt [01:13:51]process_action close_receipt [01:13:51]cmd_close_receipt [01:13:51]MH_GetDate [01:13:51]Write to MH i2c: F0 00 00 F9 0F F7 [01:13:51]Write i2c OK [01:13:51]MH_I2C_Read... [01:13:51]Read from MH i2c: F0 [01:13:51]MH_I2C_Read... [01:13:51]Read from MH i2c: F0 09 00 [01:13:51]MH_I2C_Read... [01:13:51]Read from MH i2c: F0 09 00 F9 0F 00 D1 4D 18 67 82 C9 CF 66 1D [01:13:51]GetLastDocTimeStamp 1729645714 [01:13:51]current date 1729646033 [01:13:51]FM_GetShiftState [01:13:51]SAM_PROTO_GetShiftState [01:13:51]wFMCommunicate request_size=4 [01:13:51]MH_SAM_APDU [01:13:51]CAPDU: 80 13 01 00 [01:13:51]Write to MH i2c: E2 08 00 FA 0F 80 13 01 00 00 00 00 00 86 [01:13:51]Write i2c OK [01:13:51]MH_I2C_Read... [01:13:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:13:51]Read from MH i2c: E2 [01:13:51]MH_I2C_Read... [01:13:51]Read from MH i2c: E2 0E 00 [01:13:51]MH_I2C_Read... [01:13:51]Read from MH i2c: E2 0E 00 FA 0F 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 C0 [01:13:51]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [01:13:51]wFMCommunicate OK [01:13:51]SAM_PROTO_GetShiftState done [01:13:51]FM_GetShiftState done [01:13:51]opened in 1729642352 [01:13:51]opened+sec_in_day 1729728752 [01:13:51]quantity*price = 100015 [01:13:51]sum+1 = 100017 [01:13:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 11 23.10.2024 01:13 Смена: 536 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228475 ФПД: 98546627095571 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T011353&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228475&fm=98546627095571&tin=02508201610067®Number=0000000000091685&sum=100000 [01:13:53]StoreToDocumentArchive [01:13:53]shift 536 fd 228475 [01:13:53]save to /storage/0536/doc_00228475 [01:13:53]save last doc name /storage/0536/doc_00228475 to /storage/kkm_last_doc_name [01:13:53]save OK [01:13:53]Clear old archive folders... [01:13:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:13:53]tlvbuf is 002F8890 [01:13:53]SAM_PROTO_ClearQueue [01:13:53]wFMCommunicate request_size=4 [01:13:53]MH_SAM_APDU [01:13:53]CAPDU: 80 09 00 00 [01:13:53]Write to MH i2c: E2 08 00 07 10 80 09 00 00 00 00 00 00 89 [01:13:53]Write i2c OK [01:13:53]MH_I2C_Read... [01:13:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:13:53]Read from MH i2c: E2 [01:13:53]MH_I2C_Read... [01:13:53]Read from MH i2c: E2 03 00 [01:13:53]MH_I2C_Read... [01:13:53]Read from MH i2c: E2 03 00 07 10 00 90 00 8B [01:13:53]RAPDU: 90 00 [01:13:53]wFMCommunicate OK [01:13:53]SAM_PROTO_ClearQueue done [01:13:53]KKMCreateOFDPacket [01:13:53]OFDProtocolAddRootSTLVToBuf [01:13:53]FM_MakeSignedData [01:13:53]FM_MakeSignedData [01:13:53]SAM_PROTO_SignData [01:13:53]wFMCommunicate request_size=4 [01:13:53]MH_SAM_APDU [01:13:53]CAPDU: 80 0D 01 02 [01:13:53]Write to MH i2c: E2 08 00 08 10 80 0D 01 02 00 00 00 00 91 [01:13:53]Write i2c OK [01:13:53]MH_I2C_Read... [01:13:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:13:53]Read from MH i2c: E2 [01:13:53]MH_I2C_Read... [01:13:53]Read from MH i2c: E2 03 00 [01:13:53]MH_I2C_Read... [01:13:53]Read from MH i2c: E2 03 00 08 10 00 90 00 8C [01:13:53]RAPDU: 90 00 [01:13:53]wFMCommunicate OK [01:13:53]wFMCommunicate request_size=255 [01:13:53]MH_SAM_APDU [01:13: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 0B 00 00 00 F4 03 04 00 D1 4D 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7B 7C 03 00 35 04 06 00 59 [01:13:53]Write to MH i2c: E2 02 01 09 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 0B 00 00 00 F4 03 04 00 D1 4D 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7B 7C 03 00 35 04 06 00 59 00 00 37 [01:13:53]Write i2c OK [01:13:53]MH_I2C_Read... [01:13:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:13:53]Read from MH i2c: E2 [01:13:53]MH_I2C_Read... [01:13:53]Read from MH i2c: E2 03 00 [01:13:53]MH_I2C_Read... [01:13:53]Read from MH i2c: E2 03 00 09 10 00 90 00 8D [01:13:53]RAPDU: 90 00 [01:13:53]wFMCommunicate OK [01:13:53]wFMCommunicate request_size=10 [01:13:53]MH_SAM_APDU [01:13:53]CAPDU: 80 0D 02 02 05 A0 AC B3 AC 13 [01:13:53]Write to MH i2c: E2 0D 00 0A 10 80 0D 02 02 05 00 A0 AC B3 AC 13 00 00 5C [01:13:53]Write i2c OK [01:13:53]MH_I2C_Read... [01:13:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:13:53]Read from MH i2c: E2 [01:13:53]MH_I2C_Read... [01:13:53]Read from MH i2c: E2 03 00 [01:13:53]MH_I2C_Read... [01:13:53]Read from MH i2c: E2 03 00 0A 10 00 90 00 8E [01:13:53]RAPDU: 90 00 [01:13:53]wFMCommunicate OK [01:13:53]wFMCommunicate request_size=4 [01:13:53]MH_SAM_APDU [01:13:53]CAPDU: 80 0D 03 02 [01:13:53]Write to MH i2c: E2 08 00 0B 10 80 0D 03 02 00 00 00 00 96 [01:13:53]Write i2c OK [01:13:53]MH_I2C_Read... [01:13:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:13:53]Read from MH i2c: E2 [01:13:53]MH_I2C_Read... [01:13:53]Read from MH i2c: E2 0B 00 [01:13:53]MH_I2C_Read... [01:13:53]Read from MH i2c: E2 0B 00 0B 10 00 01 17 0E D8 AE 75 6E A5 90 00 CB [01:13:53]RAPDU: 01 17 0E D8 AE 75 6E A5 90 00 [01:13:53]wFMCommunicate OK [01:13:53]SAM_PROTO_SignData done [01:13:53]FM_MakeSignedData done [01:13:53]CreateOFDProtocolMessage [01:13:53]wFMCommunicate request_size=4 [01:13:53]MH_SAM_APDU [01:13:53]CAPDU: 80 11 00 00 [01:13:53]Write to MH i2c: E2 08 00 0C 10 80 11 00 00 00 00 00 00 96 [01:13:53]Write i2c OK [01:13:53]MH_I2C_Read... [01:13:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:13:53]Read from MH i2c: E2 [01:13:53]MH_I2C_Read... [01:13:53]Read from MH i2c: E2 17 00 [01:13:53]MH_I2C_Read... [01:13:53]Read from MH i2c: E2 17 00 0C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 ED [01:13:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [01:13:53]wFMCommunicate OK [01:13:53]CreateOFDProtocolMessage done [01:13:53]OFDSenderStorePacket 228475 [01:13:53]StoreOFDPacket docnum=228475 [01:13:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 79 D0 07 01 3A 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 0B 00 00 00 F4 03 04 00 D1 4D 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7B 7C 03 00 35 04 06 00 59 A0 AC B3 AC 13 01 17 0E D8 AE 75 6E A5 [01:13:53]CheckFolder [01:13:53]dirname=/storage/ofd_packets [01:13:53]CheckFolder done [01:13:53]ProducePacketName [01:13:53]name=ofd_packets/00228475 [01:13:53]NVStorageSaveData ofd_packets/00228475 [01:13:53]File name is /storage/ofd_packets/00228475 [01:13:53]Write 301 bytes [01:13:53]NVStorageSaveData done [01:13:53]OFDSenderStorePacket done [01:13:53]KKMCreateOFDPacket done [01:13:53]NVStorageSaveData kkm_last_timestamp [01:13:53]File name is /storage/kkm_last_timestamp [01:13:53]Write 4 bytes [01:13:53]NVStorageSaveData done [01:13:53]ExternCall_PrintAddStr [01:13:53]wPrintStart [01:13:53]Write to MH i2c: 01 00 00 0D 10 1D [01:13:53]Write i2c OK [01:13:53]MH_I2C_Read... [01:13:53]Read from MH i2c: 01 [01:13:53]MH_I2C_Read... [01:13:53]Read from MH i2c: 01 07 00 [01:13:53]MH_I2C_Read... [01:13:53]Read from MH i2c: 01 07 00 0D 10 00 00 00 00 00 FF 0F 32 [01:13:53]RasterBufferAndPrint [01:13:53]line Счет N : (1)1965144 [01:13:53]line ИНН: 02508201610067 [01:13:53]line Контрольно-Кассовый Чек [01:13:53]line ПРОДАЖА [01:13:53]line ТРК (МРК, ГНК) : 33 [01:13:53]line Товар: 2710124130 [01:13:53]line Аи-92-К-5 [01:13:53]line 14.950 * 66.90 [01:13:53]line = 1000.16 [01:13:53]line НДС 12% НСП 1% [01:13:53]line > о реализуемом товаре [01:13:53]line ОКРУГЛЕНИЕ: -0.16 [01:13:53]line ИТОГО: 1000.00 [01:13:53]line Внесено: 1000.00 [01:13:53]line СДАЧА: 0.00 [01:13:53]line НСП 1% : 8.85 [01:13:53]line НДС 12% : 106.21 [01:13:53]line Наличными: 1000.00 [01:13:53]line Безнал.: 0.00 [01:13:53]line Место: АЗС № 133 "Партнер Нефть" [01:13:53]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [01:13:53]line СНО: Общий режим [01:13:53]line Чек 11 23.10.2024 01:13 [01:13:53]line Смена: 536 ФФД: 1.0 [01:13:53]line ЗНМ: 0300000091 [01:13:53]line РНМ: 0000000000091685 [01:13:53]line Версия ККМ: 001 [01:13:53]line ФМ: 0000000000871839 [01:13:53]line ФД: 228475 [01:13:53]line ФПД: 98546627095571 [01:13:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T011353&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228475&fm=98546627095571&tin=02508201610067®Number=0000000000091685&sum=100000 [01:13:53]OFD Sender: Processing packet 228475 [packets to send 38, broken 37] [01:13:53]ProducePacketName [01:13:53]name=ofd_packets/00228475 [01:13:53]OFD Sender: To server: pG, [01:13:53]CommunicateWithHost lk.salyk.kg:30040 [01:13:53]ConnectInit lk.salyk.kg [01:13:53]written 0, free lines is 4095 [01:13:54]Connected sock=9 [01:13:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 79 D0 07 01 3A 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 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 0B 00 00 00 F4 03 04 00 D1 4D 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7B 7C 03 00 35 04 06 00 59 A0 AC B3 AC 13 01 17 0E D8 AE 75 6E A5 [01:13:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 1F 3B 47 00 26 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7B 7C 03 00 F4 03 04 00 C7 F8 17 67 B6 04 01 00 00 AE 80 14 AE E2 95 E1 2F [01:13:54]CommunicateWithHost err = 0 [01:13:54]CheckOFDResponse [01:13:54]1017 (14) - 77093643461234 [01:13:54]1041 (16) - 0000000000871839 [01:13:54]1040 (4) - 228475 [01:13:54]1012 (4) - 22.10.2024 19:11 [01:13:54]1206 (1) - 0 [01:13:54]OFD Sender: Remove packet 228475 [01:13:54]ProducePacketName [01:13:54]name=ofd_packets/00228475 [01:13:54]NVStorageDeleteData [01:13:54]Write to MH i2c: 01 00 00 37 10 47 [01:13:54]Write i2c OK [01:13:54]MH_I2C_Read... [01:13:54]Read from MH i2c: 01 [01:13:54]MH_I2C_Read... [01:13:54]Read from MH i2c: 01 07 00 [01:13:54]MH_I2C_Read... [01:13:54]Read from MH i2c: 01 07 00 37 10 00 00 00 00 00 97 0C F1 [01:13:54]RasterBufferAndPrint [01:13:54]line [01:13:54]line [01:13:54]line [01:13:54]line [01:13:54]line [01:13:54]written 0, free lines is 3227 [01:13:54]MH_Cut [01:13:54]Write to MH i2c: D1 01 00 3E 10 01 20 [01:13:54]Write i2c OK [01:13:54]MH_I2C_Read... [01:13:54]Read from MH i2c: D1 [01:13:54]MH_I2C_Read... [01:13:54]Read from MH i2c: D1 01 00 [01:13:54]MH_I2C_Read... [01:13:54]Read from MH i2c: D1 01 00 3E 10 00 1F [01:13:54]Write to MH i2c: 01 00 00 3F 10 4F [01:13:54]Write i2c OK [01:13:54]MH_I2C_Read... [01:13:54]OFD Sender: No OFD packet to send [01:13:55]*** Cut start [01:13:55]*** Partial cut [01:13:55]*** CUTSNS_PIN = 1 [01:13:55]*** CUTSNS_PIN = 0 [01:13:55]*** Brake cut motor [01:13:55]Read from MH i2c: 01 [01:13:55]MH_I2C_Read... [01:13:55]*** Stop cut motor [01:13:55]*** Cut end [01:13:55]Read from MH i2c: 01 07 00 [01:13:55]MH_I2C_Read... [01:13:55]Read from MH i2c: 01 07 00 3F 10 00 00 00 00 00 FF 0F 64 [01:13:55]process_action close_receipt done [01:13:55]requested_data is exist [01:13:55]produce_requested_data [01:13:55]requested_item fm.sn is exist - process it [01:13:55]wFMCommunicate request_size=4 [01:13:55]MH_SAM_APDU [01:13:55]CAPDU: 80 11 00 00 [01:13:55]Write to MH i2c: E2 08 00 40 10 80 11 00 00 00 00 00 00 CA [01:13:55]Write i2c OK [01:13:55]MH_I2C_Read... [01:13:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:13:56]Read from MH i2c: E2 [01:13:56]MH_I2C_Read... [01:13:56]Read from MH i2c: E2 17 00 [01:13:56]MH_I2C_Read... [01:13:56]Read from MH i2c: E2 17 00 40 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 21 [01:13:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [01:13:56]wFMCommunicate OK [01:13:56]requested_item fd.num is exist - process it [01:13:56]SAM_PROTO_GetFieldsCounters [01:13:56]wFMCommunicate request_size=4 [01:13:56]MH_SAM_APDU [01:13:56]CAPDU: 80 13 00 00 [01:13:56]Write to MH i2c: E2 08 00 41 10 80 13 00 00 00 00 00 00 CD [01:13:56]Write i2c OK [01:13:56]MH_I2C_Read... [01:13:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:13:56]Read from MH i2c: E2 [01:13:56]MH_I2C_Read... [01:13:56]Read from MH i2c: E2 62 00 [01:13:56]MH_I2C_Read... [01:13:56]Read from MH i2c: E2 62 00 41 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7B 7C 03 00 0E 04 04 00 18 02 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 2B [01:13:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7B 7C 03 00 0E 04 04 00 18 02 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:13:56]wFMCommunicate OK [01:13:56]SAM_PROTO_GetFieldsCounters done [01:13:56]requested_item shift.num is exist - process it [01:13:56]requested_item shift.opened is exist - process it [01:13:56]req_shift_opened [01:13:56]FM_GetShiftState [01:13:56]SAM_PROTO_GetShiftState [01:13:56]wFMCommunicate request_size=4 [01:13:56]MH_SAM_APDU [01:13:56]CAPDU: 80 13 01 00 [01:13:56]Write to MH i2c: E2 08 00 42 10 80 13 01 00 00 00 00 00 CF [01:13:56]Write i2c OK [01:13:56]MH_I2C_Read... [01:13:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:13:56]Read from MH i2c: E2 [01:13:56]MH_I2C_Read... [01:13:56]Read from MH i2c: E2 0E 00 [01:13:56]MH_I2C_Read... [01:13:56]Read from MH i2c: E2 0E 00 42 10 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 09 [01:13:56]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [01:13:56]wFMCommunicate OK [01:13:56]SAM_PROTO_GetShiftState done [01:13:56]FM_GetShiftState done [01:13:56]req_shift_opened done [01:13:56]requested_item shift.open_date is exist - process it [01:13:56]req_shift_open_date [01:13:56]req_shift_open_date done [01:13:56]produce_requested_data done [01:13:56]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228475,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352} [01:13:56]process_action_free close_receipt [01:13:56]json_value_free [01:13:56]json_value_free done [01:13:56]process_json_proto returns [01:13:56]Send response to host [01:13:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228475,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352}}} [01:13:56]free response buf [01:13:56]execute_script done [01:13:56]execute_script returns [01:13:56]free content buf [01:13:56]Sock 10.Close socket [01:13:56]Sock 10.Thread stoped [01:13:59]OFD Sender: No OFD packet to send [01:14:04]OFD Sender: No OFD packet to send [01:14:09]OFD Sender: No OFD packet to send [01:14:14]OFD Sender: No OFD packet to send [01:14:19]OFD Sender: No OFD packet to send [01:14:24]OFD Sender: No OFD packet to send [01:14:29]OFD Sender: No OFD packet to send [01:14:34]OFD Sender: No OFD packet to send [01:14:39]OFD Sender: No OFD packet to send [01:14:44]OFD Sender: No OFD packet to send [01:14:49]OFD Sender: No OFD packet to send [01:14:54]OFD Sender: No OFD packet to send [01:14:59]OFD Sender: No OFD packet to send [01:15:04]OFD Sender: No OFD packet to send [01:15:09]OFD Sender: No OFD packet to send [01:15:14]OFD Sender: No OFD packet to send [01:15:19]OFD Sender: No OFD packet to send [01:15:24]OFD Sender: No OFD packet to send [01:15:29]OFD Sender: No OFD packet to send [01:15:34]OFD Sender: No OFD packet to send [01:15:39]OFD Sender: No OFD packet to send [01:15:43]accept exits with 7 [01:15:43]New connection [01:15:43]New thread 3066834276 created [01:15:43]Thread 3066977636 joined [01:15:43]Waiting for new connection... [01:15:43] Sock 7.Parse request [01:15:43]Sock 7.Check first char [01:15:43]Sock 7.First char is OK [01:15:43]request: POST /json_proto HTTP/1.0 [01:15:43]Method: POST [01:15:43]URL: /json_proto [01:15:43]Method is POST - this is cgi request [01:15:43]url: /json_proto [01:15:43]query_string will be loaded in cgi processing [01:15:43]execute_cgi json_proto POST (null) [01:15:43]execute_cgi path=json_proto method=POST [01:15:43]POST find Content-Length [01:15:43]Host: 172.17.44.195:8080 [01:15:43]Content-Length: 979 [01:15:43]Content-Type: application/json [01:15:43] [01:15:43]POST finish read [01:15:43]Found Content-Length = 979 [01:15:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "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" ] } } [01:15:43]execute_script... [01:15: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)1965145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "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" ] } } [01:15:43]POST & json_proto [01:15:43]process_json_proto [01:15:43]json parsed OK: [01:15:43]protocol is kg_v1.0 [01:15:43]action value=close_receipt [01:15:43]process_action close_receipt [01:15:43]cmd_close_receipt [01:15:43]MH_GetDate [01:15:43]Write to MH i2c: F0 00 00 43 10 42 [01:15:43]Write i2c OK [01:15:43]MH_I2C_Read... [01:15:43]Read from MH i2c: F0 [01:15:43]MH_I2C_Read... [01:15:43]Read from MH i2c: F0 09 00 [01:15:43]MH_I2C_Read... [01:15:43]Read from MH i2c: F0 09 00 43 10 00 40 4E 18 67 82 C9 CF 66 D8 [01:15:43]GetLastDocTimeStamp 1729646033 [01:15:43]current date 1729646144 [01:15:43]FM_GetShiftState [01:15:43]SAM_PROTO_GetShiftState [01:15:43]wFMCommunicate request_size=4 [01:15:43]MH_SAM_APDU [01:15:43]CAPDU: 80 13 01 00 [01:15:43]Write to MH i2c: E2 08 00 44 10 80 13 01 00 00 00 00 00 D1 [01:15:43]Write i2c OK [01:15:43]MH_I2C_Read... [01:15:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:15:43]Read from MH i2c: E2 [01:15:43]MH_I2C_Read... [01:15:43]Read from MH i2c: E2 0E 00 [01:15:43]MH_I2C_Read... [01:15:43]Read from MH i2c: E2 0E 00 44 10 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 0B [01:15:43]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [01:15:43]wFMCommunicate OK [01:15:43]SAM_PROTO_GetShiftState done [01:15:43]FM_GetShiftState done [01:15:43]opened in 1729642352 [01:15:43]opened+sec_in_day 1729728752 [01:15:43]quantity*price = 500004 [01:15:43]sum+1 = 500006 [01:15:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 530.98 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 12 23.10.2024 01:15 Смена: 536 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Дисконтная программа ДТ номер 133 сэкономлено 66.49 сом ФМ: 0000000000871839 ФД: 228476 ФПД: 111376266862638 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T011544&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228476&fm=111376266862638&tin=02508201610067®Number=0000000000091685&sum=500000 [01:15:44]StoreToDocumentArchive [01:15:44]shift 536 fd 228476 [01:15:44]save to /storage/0536/doc_00228476 [01:15:44]save last doc name /storage/0536/doc_00228476 to /storage/kkm_last_doc_name [01:15:44]save OK [01:15:44]Clear old archive folders... [01:15:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [01:15:44]tlvbuf is 00286C00 [01:15:44]SAM_PROTO_ClearQueue [01:15:44]wFMCommunicate request_size=4 [01:15:44]MH_SAM_APDU [01:15:44]CAPDU: 80 09 00 00 [01:15:44]Write to MH i2c: E2 08 00 51 10 80 09 00 00 00 00 00 00 D3 [01:15:44]Write i2c OK [01:15:44]MH_I2C_Read... [01:15:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:15:44]Read from MH i2c: E2 [01:15:44]MH_I2C_Read... [01:15:44]Read from MH i2c: E2 03 00 [01:15:44]MH_I2C_Read... [01:15:44]Read from MH i2c: E2 03 00 51 10 00 90 00 D5 [01:15:44]RAPDU: 90 00 [01:15:44]wFMCommunicate OK [01:15:44]SAM_PROTO_ClearQueue done [01:15:44]KKMCreateOFDPacket [01:15:44]OFDProtocolAddRootSTLVToBuf [01:15:44]FM_MakeSignedData [01:15:44]FM_MakeSignedData [01:15:44]SAM_PROTO_SignData [01:15:44]wFMCommunicate request_size=4 [01:15:44]MH_SAM_APDU [01:15:44]CAPDU: 80 0D 01 02 [01:15:44]Write to MH i2c: E2 08 00 52 10 80 0D 01 02 00 00 00 00 DB [01:15:44]Write i2c OK [01:15:44]MH_I2C_Read... [01:15:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:15:44]Read from MH i2c: E2 [01:15:44]MH_I2C_Read... [01:15:44]Read from MH i2c: E2 03 00 [01:15:44]MH_I2C_Read... [01:15:44]Read from MH i2c: E2 03 00 52 10 00 90 00 D6 [01:15:44]RAPDU: 90 00 [01:15:44]wFMCommunicate OK [01:15:44]wFMCommunicate request_size=255 [01:15:44]MH_SAM_APDU [01:15:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 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 6A 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 0C 00 00 00 F4 03 04 00 40 4E 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7C 7C 03 00 35 04 06 00 65 4B CE D2 [01:15:44]Write to MH i2c: E2 02 01 53 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 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 6A 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 0C 00 00 00 F4 03 04 00 40 4E 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7C 7C 03 00 35 04 06 00 65 4B CE D2 00 00 E9 [01:15:44]Write i2c OK [01:15:44]MH_I2C_Read... [01:15:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:15:44]Read from MH i2c: E2 [01:15:44]MH_I2C_Read... [01:15:44]Read from MH i2c: E2 03 00 [01:15:44]MH_I2C_Read... [01:15:44]Read from MH i2c: E2 03 00 53 10 00 90 00 D7 [01:15:44]RAPDU: 90 00 [01:15:44]wFMCommunicate OK [01:15:44]wFMCommunicate request_size=7 [01:15:44]MH_SAM_APDU [01:15:44]CAPDU: 80 0D 02 02 02 A0 2E [01:15:44]Write to MH i2c: E2 0A 00 54 10 80 0D 02 02 02 00 A0 2E 00 00 B0 [01:15:44]Write i2c OK [01:15:44]MH_I2C_Read... [01:15:44]OFD Sender: No OFD packet to send [01:15:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:15:44]Read from MH i2c: E2 [01:15:44]MH_I2C_Read... [01:15:44]Read from MH i2c: E2 03 00 [01:15:44]MH_I2C_Read... [01:15:44]Read from MH i2c: E2 03 00 54 10 00 90 00 D8 [01:15:44]RAPDU: 90 00 [01:15:44]wFMCommunicate OK [01:15:44]wFMCommunicate request_size=4 [01:15:44]MH_SAM_APDU [01:15:44]CAPDU: 80 0D 03 02 [01:15:44]Write to MH i2c: E2 08 00 55 10 80 0D 03 02 00 00 00 00 E0 [01:15:44]Write i2c OK [01:15:44]MH_I2C_Read... [01:15:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:15:44]Read from MH i2c: E2 [01:15:44]MH_I2C_Read... [01:15:44]Read from MH i2c: E2 0B 00 [01:15:44]MH_I2C_Read... [01:15:44]Read from MH i2c: E2 0B 00 55 10 00 B0 BC 1A A6 74 B7 35 B5 90 00 22 [01:15:44]RAPDU: B0 BC 1A A6 74 B7 35 B5 90 00 [01:15:44]wFMCommunicate OK [01:15:44]SAM_PROTO_SignData done [01:15:44]FM_MakeSignedData done [01:15:44]CreateOFDProtocolMessage [01:15:44]wFMCommunicate request_size=4 [01:15:44]MH_SAM_APDU [01:15:44]CAPDU: 80 11 00 00 [01:15:44]Write to MH i2c: E2 08 00 56 10 80 11 00 00 00 00 00 00 E0 [01:15:44]Write i2c OK [01:15:44]MH_I2C_Read... [01:15:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:15:45]Read from MH i2c: E2 [01:15:45]MH_I2C_Read... [01:15:45]Read from MH i2c: E2 17 00 [01:15:45]MH_I2C_Read... [01:15:45]Read from MH i2c: E2 17 00 56 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 37 [01:15:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [01:15:45]wFMCommunicate OK [01:15:45]CreateOFDProtocolMessage done [01:15:45]OFDSenderStorePacket 228476 [01:15:45]StoreOFDPacket docnum=228476 [01:15:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 37 7C 04 01 93 ED 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 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 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 6A 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 0C 00 00 00 F4 03 04 00 40 4E 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7C 7C 03 00 35 04 06 00 65 4B CE D2 A0 2E B0 BC 1A A6 74 B7 35 B5 [01:15:45]CheckFolder [01:15:45]dirname=/storage/ofd_packets [01:15:45]CheckFolder done [01:15:45]ProducePacketName [01:15:45]name=ofd_packets/00228476 [01:15:45]NVStorageSaveData ofd_packets/00228476 [01:15:45]File name is /storage/ofd_packets/00228476 [01:15:45]Write 298 bytes [01:15:45]NVStorageSaveData done [01:15:45]OFDSenderStorePacket done [01:15:45]KKMCreateOFDPacket done [01:15:45]NVStorageSaveData kkm_last_timestamp [01:15:45]File name is /storage/kkm_last_timestamp [01:15:45]Write 4 bytes [01:15:45]NVStorageSaveData done [01:15:45]ExternCall_PrintAddStr [01:15:45]wPrintStart [01:15:45]Write to MH i2c: 01 00 00 57 10 67 [01:15:45]Write i2c OK [01:15:45]MH_I2C_Read... [01:15:45]Read from MH i2c: 01 [01:15:45]MH_I2C_Read... [01:15:45]Read from MH i2c: 01 07 00 [01:15:45]MH_I2C_Read... [01:15:45]Read from MH i2c: 01 07 00 57 10 00 00 00 00 00 FF 0F 7C [01:15:45]RasterBufferAndPrint [01:15:45]line Счет N : (1)1965145 [01:15:45]line ИНН: 02508201610067 [01:15:45]line Контрольно-Кассовый Чек [01:15:45]line ПРОДАЖА [01:15:45]line ТРК (МРК, ГНК) : 41 [01:15:45]line Товар: 2710194210 [01:15:45]line ДТ-К-5 [01:15:45]line 66.490 * 75.20 [01:15:45]line = 5000.05 [01:15:45]line НДС 12% НСП 1% [01:15:45]line > о реализуемом товаре [01:15:45]line ОКРУГЛЕНИЕ: -0.05 [01:15:45]line ИТОГО: 5000.00 [01:15:45]line Внесено: 5000.00 [01:15:45]line СДАЧА: 0.00 [01:15:45]line НСП 1% : 44.25 [01:15:45]line НДС 12% : 530.98 [01:15:45]line Наличными: 5000.00 [01:15:45]line Безнал.: 0.00 [01:15:45]line Место: АЗС № 133 "Партнер Нефть" [01:15:45]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [01:15:45]line СНО: Общий режим [01:15:45]line Чек 12 23.10.2024 01:15 [01:15:45]line Смена: 536 ФФД: 1.0 [01:15:45]line ЗНМ: 0300000091 [01:15:45]line РНМ: 0000000000091685 [01:15:45]line Версия ККМ: 001 [01:15:45]line [01:15:45]line Дисконтная программа [01:15:45]line ДТ [01:15:45]line номер 133 [01:15:45]line сэкономлено 66.49 сом [01:15:45]line ФМ: 0000000000871839 [01:15:45]line ФД: 228476 [01:15:45]line ФПД: 111376266862638 [01:15:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T011544&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228476&fm=111376266862638&tin=02508201610067®Number=0000000000091685&sum=500000 [01:15:45]OFD Sender: Processing packet 228476 [packets to send 38, broken 37] [01:15:45]ProducePacketName [01:15:45]name=ofd_packets/00228476 [01:15:45]OFD Sender: To server: pG, [01:15:45]CommunicateWithHost lk.salyk.kg:30040 [01:15:45]ConnectInit lk.salyk.kg [01:15:45]written 0, free lines is 4095 [01:15:45]Connected sock=10 [01:15:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 37 7C 04 01 93 ED 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 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 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 6A 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 0C 00 00 00 F4 03 04 00 40 4E 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7C 7C 03 00 35 04 06 00 65 4B CE D2 A0 2E B0 BC 1A A6 74 B7 35 B5 [01:15:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 D2 27 47 00 90 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7C 7C 03 00 F4 03 04 00 37 F9 17 67 B6 04 01 00 00 55 E8 C3 AC A5 F7 42 6F [01:15:45]CommunicateWithHost err = 0 [01:15:45]CheckOFDResponse [01:15:45]1017 (14) - 77093643461234 [01:15:45]1041 (16) - 0000000000871839 [01:15:45]1040 (4) - 228476 [01:15:45]1012 (4) - 22.10.2024 19:12 [01:15:45]1206 (1) - 0 [01:15:45]OFD Sender: Remove packet 228476 [01:15:45]ProducePacketName [01:15:45]name=ofd_packets/00228476 [01:15:45]NVStorageDeleteData [01:15:45]Write to MH i2c: 01 00 00 86 10 96 [01:15:45]Write i2c OK [01:15:45]MH_I2C_Read... [01:15:45]Read from MH i2c: 01 [01:15:45]MH_I2C_Read... [01:15:45]Read from MH i2c: 01 07 00 [01:15:45]MH_I2C_Read... [01:15:45]Read from MH i2c: 01 07 00 86 10 00 00 00 00 00 31 0C DA [01:15:45]RasterBufferAndPrint [01:15:45]line [01:15:45]line [01:15:45]line [01:15:45]line [01:15:45]line [01:15:45]written 0, free lines is 3125 [01:15:45]MH_Cut [01:15:45]Write to MH i2c: D1 01 00 8D 10 01 6F [01:15:45]Write i2c OK [01:15:45]MH_I2C_Read... [01:15:45]Read from MH i2c: D1 [01:15:45]MH_I2C_Read... [01:15:45]Read from MH i2c: D1 01 00 [01:15:45]MH_I2C_Read... [01:15:45]Read from MH i2c: D1 01 00 8D 10 00 6E [01:15:45]Write to MH i2c: 01 00 00 8E 10 9E [01:15:45]Write i2c OK [01:15:45]MH_I2C_Read... [01:15:46]OFD Sender: No OFD packet to send [01:15:46]*** Cut start [01:15:46]*** Partial cut [01:15:46]*** CUTSNS_PIN = 1 [01:15:46]*** CUTSNS_PIN = 0 [01:15:47]*** Brake cut motor [01:15:47]Read from MH i2c: 01 [01:15:47]MH_I2C_Read... [01:15:47]*** Stop cut motor [01:15:47]*** Cut end [01:15:47]Read from MH i2c: 01 07 00 [01:15:47]MH_I2C_Read... [01:15:47]Read from MH i2c: 01 07 00 8E 10 00 00 00 00 00 FF 0F B3 [01:15:47]process_action close_receipt done [01:15:47]requested_data is exist [01:15:47]produce_requested_data [01:15:47]requested_item fm.sn is exist - process it [01:15:47]wFMCommunicate request_size=4 [01:15:47]MH_SAM_APDU [01:15:47]CAPDU: 80 11 00 00 [01:15:47]Write to MH i2c: E2 08 00 8F 10 80 11 00 00 00 00 00 00 19 [01:15:47]Write i2c OK [01:15:47]MH_I2C_Read... [01:15:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:15:47]Read from MH i2c: E2 [01:15:47]MH_I2C_Read... [01:15:47]Read from MH i2c: E2 17 00 [01:15:47]MH_I2C_Read... [01:15:47]Read from MH i2c: E2 17 00 8F 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 70 [01:15:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [01:15:47]wFMCommunicate OK [01:15:47]requested_item fd.num is exist - process it [01:15:47]SAM_PROTO_GetFieldsCounters [01:15:47]wFMCommunicate request_size=4 [01:15:47]MH_SAM_APDU [01:15:47]CAPDU: 80 13 00 00 [01:15:47]Write to MH i2c: E2 08 00 90 10 80 13 00 00 00 00 00 00 1C [01:15:47]Write i2c OK [01:15:47]MH_I2C_Read... [01:15:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:15:47]Read from MH i2c: E2 [01:15:47]MH_I2C_Read... [01:15:47]Read from MH i2c: E2 62 00 [01:15:47]MH_I2C_Read... [01:15:47]Read from MH i2c: E2 62 00 90 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7C 7C 03 00 0E 04 04 00 18 02 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 7E [01:15:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7C 7C 03 00 0E 04 04 00 18 02 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:15:47]wFMCommunicate OK [01:15:47]SAM_PROTO_GetFieldsCounters done [01:15:47]requested_item shift.num is exist - process it [01:15:47]requested_item shift.opened is exist - process it [01:15:47]req_shift_opened [01:15:47]FM_GetShiftState [01:15:47]SAM_PROTO_GetShiftState [01:15:47]wFMCommunicate request_size=4 [01:15:47]MH_SAM_APDU [01:15:47]CAPDU: 80 13 01 00 [01:15:47]Write to MH i2c: E2 08 00 91 10 80 13 01 00 00 00 00 00 1E [01:15:47]Write i2c OK [01:15:47]MH_I2C_Read... [01:15:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:15:47]Read from MH i2c: E2 [01:15:47]MH_I2C_Read... [01:15:47]Read from MH i2c: E2 0E 00 [01:15:47]MH_I2C_Read... [01:15:47]Read from MH i2c: E2 0E 00 91 10 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 58 [01:15:47]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [01:15:47]wFMCommunicate OK [01:15:47]SAM_PROTO_GetShiftState done [01:15:47]FM_GetShiftState done [01:15:47]req_shift_opened done [01:15:47]requested_item shift.open_date is exist - process it [01:15:47]req_shift_open_date [01:15:47]req_shift_open_date done [01:15:47]produce_requested_data done [01:15:47]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228476,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352} [01:15:47]process_action_free close_receipt [01:15:47]json_value_free [01:15:47]json_value_free done [01:15:47]process_json_proto returns [01:15:47]Send response to host [01:15:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228476,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352}}} [01:15:47]free response buf [01:15:47]execute_script done [01:15:47]execute_script returns [01:15:47]free content buf [01:15:47]Sock 7.Close socket [01:15:47]Sock 7.Thread stoped [01:15:51]OFD Sender: No OFD packet to send [01:15:56]OFD Sender: No OFD packet to send [01:16:01]OFD Sender: No OFD packet to send [01:16:06]OFD Sender: No OFD packet to send [01:16:11]OFD Sender: No OFD packet to send [01:16:16]OFD Sender: No OFD packet to send [01:16:21]OFD Sender: No OFD packet to send [01:16:26]OFD Sender: No OFD packet to send [01:16:31]OFD Sender: No OFD packet to send [01:16:36]OFD Sender: No OFD packet to send [01:16:41]OFD Sender: No OFD packet to send [01:16:46]OFD Sender: No OFD packet to send [01:16:51]OFD Sender: No OFD packet to send [01:16:56]OFD Sender: No OFD packet to send [01:17:01]OFD Sender: No OFD packet to send [01:17:06]OFD Sender: No OFD packet to send [01:17:11]OFD Sender: No OFD packet to send [01:17:16]OFD Sender: No OFD packet to send [01:17:21]OFD Sender: No OFD packet to send [01:17:26]OFD Sender: No OFD packet to send [01:17:31]OFD Sender: No OFD packet to send [01:17:36]OFD Sender: No OFD packet to send [01:17:41]OFD Sender: No OFD packet to send [01:17:46]OFD Sender: No OFD packet to send [01:17:51]OFD Sender: No OFD packet to send [01:17:56]OFD Sender: No OFD packet to send [01:18:01]OFD Sender: No OFD packet to send [01:18:06]OFD Sender: No OFD packet to send [01:18:11]OFD Sender: No OFD packet to send [01:18:16]OFD Sender: No OFD packet to send [01:18:21]OFD Sender: No OFD packet to send [01:18:26]OFD Sender: No OFD packet to send [01:18:31]OFD Sender: No OFD packet to send [01:18:36]OFD Sender: No OFD packet to send [01:18:41]OFD Sender: No OFD packet to send [01:18:46]OFD Sender: No OFD packet to send [01:18:51]OFD Sender: No OFD packet to send [01:18:56]OFD Sender: No OFD packet to send [01:19:01]OFD Sender: No OFD packet to send [01:19:06]OFD Sender: No OFD packet to send [01:19:11]OFD Sender: No OFD packet to send [01:19:16]OFD Sender: No OFD packet to send [01:19:21]OFD Sender: No OFD packet to send [01:19:26]OFD Sender: No OFD packet to send [01:19:31]OFD Sender: No OFD packet to send [01:19:36]OFD Sender: No OFD packet to send [01:19:41]OFD Sender: No OFD packet to send [01:19:46]OFD Sender: No OFD packet to send [01:19:51]OFD Sender: No OFD packet to send [01:19:53]accept exits with 9 [01:19:53]New connection [01:19:53]New thread 3066977636 created [01:19:53]Thread 3066834276 joined [01:19:53]Waiting for new connection... [01:19:53] Sock 9.Parse request [01:19:53]Sock 9.Check first char [01:19:53]Sock 9.First char is OK [01:19:53]request: POST /json_proto HTTP/1.0 [01:19:53]Method: POST [01:19:53]URL: /json_proto [01:19:53]Method is POST - this is cgi request [01:19:53]url: /json_proto [01:19:53]query_string will be loaded in cgi processing [01:19:53]execute_cgi json_proto POST (null) [01:19:53]execute_cgi path=json_proto method=POST [01:19:53]POST find Content-Length [01:19:53]Host: 172.17.44.195:8080 [01:19:53]Content-Length: 678 [01:19:53]Content-Type: application/json [01:19:53] [01:19:53]POST finish read [01:19:53]Found Content-Length = 678 [01:19:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965146", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:19:53]execute_script... [01:19:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965146", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:19:53]POST & json_proto [01:19:53]process_json_proto [01:19:53]json parsed OK: [01:19:53]protocol is kg_v1.0 [01:19:53]action value=close_receipt [01:19:53]process_action close_receipt [01:19:53]cmd_close_receipt [01:19:53]MH_GetDate [01:19:53]Write to MH i2c: F0 00 00 92 10 91 [01:19:53]Write i2c OK [01:19:53]MH_I2C_Read... [01:19:53]Read from MH i2c: F0 [01:19:53]MH_I2C_Read... [01:19:53]Read from MH i2c: F0 09 00 [01:19:53]MH_I2C_Read... [01:19:53]Read from MH i2c: F0 09 00 92 10 00 3A 4F 18 67 82 C9 CF 66 22 [01:19:53]GetLastDocTimeStamp 1729646144 [01:19:53]current date 1729646394 [01:19:53]FM_GetShiftState [01:19:53]SAM_PROTO_GetShiftState [01:19:53]wFMCommunicate request_size=4 [01:19:53]MH_SAM_APDU [01:19:53]CAPDU: 80 13 01 00 [01:19:53]Write to MH i2c: E2 08 00 93 10 80 13 01 00 00 00 00 00 20 [01:19:53]Write i2c OK [01:19:53]MH_I2C_Read... [01:19:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:19:53]Read from MH i2c: E2 [01:19:53]MH_I2C_Read... [01:19:53]Read from MH i2c: E2 0E 00 [01:19:53]MH_I2C_Read... [01:19:53]Read from MH i2c: E2 0E 00 93 10 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 5A [01:19:53]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [01:19:53]wFMCommunicate OK [01:19:53]SAM_PROTO_GetShiftState done [01:19:53]FM_GetShiftState done [01:19:53]opened in 1729642352 [01:19:53]opened+sec_in_day 1729728752 [01:19:53]quantity*price = 50041 [01:19:53]sum+1 = 50042 [01:19:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 13 23.10.2024 01:19 Смена: 536 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228477 ФПД: 206303131380671 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T011954&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228477&fm=206303131380671&tin=02508201610067®Number=0000000000091685&sum=50000 [01:19:54]StoreToDocumentArchive [01:19:54]shift 536 fd 228477 [01:19:54]save to /storage/0536/doc_00228477 [01:19:54]save last doc name /storage/0536/doc_00228477 to /storage/kkm_last_doc_name [01:19:54]save OK [01:19:54]Clear old archive folders... [01:19:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:19:54]tlvbuf is 002858F0 [01:19:54]SAM_PROTO_ClearQueue [01:19:54]wFMCommunicate request_size=4 [01:19:54]MH_SAM_APDU [01:19:54]CAPDU: 80 09 00 00 [01:19:54]Write to MH i2c: E2 08 00 A0 10 80 09 00 00 00 00 00 00 22 [01:19:54]Write i2c OK [01:19:54]MH_I2C_Read... [01:19:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:19:54]Read from MH i2c: E2 [01:19:54]MH_I2C_Read... [01:19:54]Read from MH i2c: E2 03 00 [01:19:54]MH_I2C_Read... [01:19:54]Read from MH i2c: E2 03 00 A0 10 00 90 00 24 [01:19:54]RAPDU: 90 00 [01:19:54]wFMCommunicate OK [01:19:54]SAM_PROTO_ClearQueue done [01:19:54]KKMCreateOFDPacket [01:19:54]OFDProtocolAddRootSTLVToBuf [01:19:54]FM_MakeSignedData [01:19:54]FM_MakeSignedData [01:19:54]SAM_PROTO_SignData [01:19:54]wFMCommunicate request_size=4 [01:19:54]MH_SAM_APDU [01:19:54]CAPDU: 80 0D 01 02 [01:19:54]Write to MH i2c: E2 08 00 A1 10 80 0D 01 02 00 00 00 00 2A [01:19:54]Write i2c OK [01:19:54]MH_I2C_Read... [01:19:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:19:54]Read from MH i2c: E2 [01:19:54]MH_I2C_Read... [01:19:54]Read from MH i2c: E2 03 00 [01:19:54]MH_I2C_Read... [01:19:54]Read from MH i2c: E2 03 00 A1 10 00 90 00 25 [01:19:54]RAPDU: 90 00 [01:19:54]wFMCommunicate OK [01:19:54]wFMCommunicate request_size=255 [01:19:54]MH_SAM_APDU [01:19:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 3A 4F 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7D 7C 03 00 35 04 06 00 BB [01:19:54]Write to MH i2c: E2 02 01 A2 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 3A 4F 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7D 7C 03 00 35 04 06 00 BB 00 00 A7 [01:19:54]Write i2c OK [01:19:54]MH_I2C_Read... [01:19:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:19:55]Read from MH i2c: E2 [01:19:55]MH_I2C_Read... [01:19:55]Read from MH i2c: E2 03 00 [01:19:55]MH_I2C_Read... [01:19:55]Read from MH i2c: E2 03 00 A2 10 00 90 00 26 [01:19:55]RAPDU: 90 00 [01:19:55]wFMCommunicate OK [01:19:55]wFMCommunicate request_size=10 [01:19:55]MH_SAM_APDU [01:19:55]CAPDU: 80 0D 02 02 05 A1 B0 DC AB BF [01:19:55]Write to MH i2c: E2 0D 00 A3 10 80 0D 02 02 05 00 A1 B0 DC AB BF 00 00 CE [01:19:55]Write i2c OK [01:19:55]MH_I2C_Read... [01:19:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:19:55]Read from MH i2c: E2 [01:19:55]MH_I2C_Read... [01:19:55]Read from MH i2c: E2 03 00 [01:19:55]MH_I2C_Read... [01:19:55]Read from MH i2c: E2 03 00 A3 10 00 90 00 27 [01:19:55]RAPDU: 90 00 [01:19:55]wFMCommunicate OK [01:19:55]wFMCommunicate request_size=4 [01:19:55]MH_SAM_APDU [01:19:55]CAPDU: 80 0D 03 02 [01:19:55]Write to MH i2c: E2 08 00 A4 10 80 0D 03 02 00 00 00 00 2F [01:19:55]Write i2c OK [01:19:55]MH_I2C_Read... [01:19:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:19:55]Read from MH i2c: E2 [01:19:55]MH_I2C_Read... [01:19:55]Read from MH i2c: E2 0B 00 [01:19:55]MH_I2C_Read... [01:19:55]Read from MH i2c: E2 0B 00 A4 10 00 FC 4A 7C 67 22 37 16 6E 90 00 36 [01:19:55]RAPDU: FC 4A 7C 67 22 37 16 6E 90 00 [01:19:55]wFMCommunicate OK [01:19:55]SAM_PROTO_SignData done [01:19:55]FM_MakeSignedData done [01:19:55]CreateOFDProtocolMessage [01:19:55]wFMCommunicate request_size=4 [01:19:55]MH_SAM_APDU [01:19:55]CAPDU: 80 11 00 00 [01:19:55]Write to MH i2c: E2 08 00 A5 10 80 11 00 00 00 00 00 00 2F [01:19:55]Write i2c OK [01:19:55]MH_I2C_Read... [01:19:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:19:55]Read from MH i2c: E2 [01:19:55]MH_I2C_Read... [01:19:55]Read from MH i2c: E2 17 00 [01:19:55]MH_I2C_Read... [01:19:55]Read from MH i2c: E2 17 00 A5 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 86 [01:19:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [01:19:55]wFMCommunicate OK [01:19:55]CreateOFDProtocolMessage done [01:19:55]OFDSenderStorePacket 228477 [01:19:55]StoreOFDPacket docnum=228477 [01:19:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 61 CE 07 01 DB 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 3A 4F 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7D 7C 03 00 35 04 06 00 BB A1 B0 DC AB BF FC 4A 7C 67 22 37 16 6E [01:19:55]CheckFolder [01:19:55]dirname=/storage/ofd_packets [01:19:55]CheckFolder done [01:19:55]ProducePacketName [01:19:55]name=ofd_packets/00228477 [01:19:55]NVStorageSaveData ofd_packets/00228477 [01:19:55]File name is /storage/ofd_packets/00228477 [01:19:55]Write 301 bytes [01:19:55]NVStorageSaveData done [01:19:55]OFDSenderStorePacket done [01:19:55]KKMCreateOFDPacket done [01:19:55]NVStorageSaveData kkm_last_timestamp [01:19:55]File name is /storage/kkm_last_timestamp [01:19:55]Write 4 bytes [01:19:55]NVStorageSaveData done [01:19:55]ExternCall_PrintAddStr [01:19:55]wPrintStart [01:19:55]Write to MH i2c: 01 00 00 A6 10 B6 [01:19:55]Write i2c OK [01:19:55]MH_I2C_Read... [01:19:55]Read from MH i2c: 01 [01:19:55]MH_I2C_Read... [01:19:55]Read from MH i2c: 01 07 00 [01:19:55]MH_I2C_Read... [01:19:55]Read from MH i2c: 01 07 00 A6 10 00 00 00 00 00 FF 0F CB [01:19:55]RasterBufferAndPrint [01:19:55]line Счет N : (1)1965146 [01:19:55]line ИНН: 02508201610067 [01:19:55]line Контрольно-Кассовый Чек [01:19:55]line ПРОДАЖА [01:19:55]line ТРК (МРК, ГНК) : 63 [01:19:55]line Товар: 2710124130 [01:19:55]line Аи-92-К-5 [01:19:55]line 7.480 * 66.90 [01:19:55]line = 500.41 [01:19:55]line НДС 12% НСП 1% [01:19:55]line > о реализуемом товаре [01:19:55]line ОКРУГЛЕНИЕ: -0.41 [01:19:55]line ИТОГО: 500.00 [01:19:55]line Внесено: 500.00 [01:19:55]line СДАЧА: 0.00 [01:19:55]line НСП 1% : 4.43 [01:19:55]line НДС 12% : 53.14 [01:19:55]line Наличными: 500.00 [01:19:55]line Безнал.: 0.00 [01:19:55]line Место: АЗС № 133 "Партнер Нефть" [01:19:55]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [01:19:55]line СНО: Общий режим [01:19:55]line Чек 13 23.10.2024 01:19 [01:19:55]line Смена: 536 ФФД: 1.0 [01:19:55]line ЗНМ: 0300000091 [01:19:55]line РНМ: 0000000000091685 [01:19:55]line Версия ККМ: 001 [01:19:55]line ФМ: 0000000000871839 [01:19:55]line ФД: 228477 [01:19:55]line ФПД: 206303131380671 [01:19:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T011954&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228477&fm=206303131380671&tin=02508201610067®Number=0000000000091685&sum=50000 [01:19:55]written 0, free lines is 4095 [01:19:55]OFD Sender: Processing packet 228477 [packets to send 38, broken 37] [01:19:55]ProducePacketName [01:19:55]name=ofd_packets/00228477 [01:19:55]OFD Sender: To server: pG, [01:19:55]CommunicateWithHost lk.salyk.kg:30040 [01:19:55]ConnectInit lk.salyk.kg [01:19:55]Write to MH i2c: 01 00 00 D0 10 E0 [01:19:55]Write i2c OK [01:19:55]MH_I2C_Read... [01:19:55]Read from MH i2c: 01 [01:19:55]MH_I2C_Read... [01:19:55]Read from MH i2c: 01 07 00 [01:19:55]MH_I2C_Read... [01:19:55]Read from MH i2c: 01 07 00 D0 10 00 00 00 00 00 99 0C 8C [01:19:55]RasterBufferAndPrint [01:19:55]line [01:19:55]line [01:19:55]line [01:19:55]line [01:19:55]line [01:19:55]written 0, free lines is 3228 [01:19:55]MH_Cut [01:19:55]Write to MH i2c: D1 01 00 D7 10 01 B9 [01:19:55]Write i2c OK [01:19:55]MH_I2C_Read... [01:19:55]Read from MH i2c: D1 [01:19:55]MH_I2C_Read... [01:19:55]Read from MH i2c: D1 01 00 [01:19:55]MH_I2C_Read... [01:19:55]Read from MH i2c: D1 01 00 D7 10 00 B8 [01:19:55]Write to MH i2c: 01 00 00 D8 10 E8 [01:19:55]Write i2c OK [01:19:55]MH_I2C_Read... [01:19:56]*** Cut start [01:19:56]*** Partial cut [01:19:56]*** CUTSNS_PIN = 1 [01:19:56]*** CUTSNS_PIN = 0 [01:19:57]*** Brake cut motor [01:19:57]Read from MH i2c: 01 [01:19:57]MH_I2C_Read... [01:19:57]*** Stop cut motor [01:19:57]*** Cut end [01:19:57]Read from MH i2c: 01 07 00 [01:19:57]MH_I2C_Read... [01:19:57]Read from MH i2c: 01 07 00 D8 10 00 00 00 00 00 FF 0F FD [01:19:57]process_action close_receipt done [01:19:57]requested_data is exist [01:19:57]produce_requested_data [01:19:57]requested_item fm.sn is exist - process it [01:19:57]wFMCommunicate request_size=4 [01:19:57]MH_SAM_APDU [01:19:57]CAPDU: 80 11 00 00 [01:19:57]Write to MH i2c: E2 08 00 D9 10 80 11 00 00 00 00 00 00 63 [01:19:57]Write i2c OK [01:19:57]MH_I2C_Read... [01:19:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:19:57]Read from MH i2c: E2 [01:19:57]MH_I2C_Read... [01:19:57]Read from MH i2c: E2 17 00 [01:19:57]MH_I2C_Read... [01:19:57]Read from MH i2c: E2 17 00 D9 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BA [01:19:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [01:19:57]wFMCommunicate OK [01:19:57]requested_item fd.num is exist - process it [01:19:57]SAM_PROTO_GetFieldsCounters [01:19:57]wFMCommunicate request_size=4 [01:19:57]MH_SAM_APDU [01:19:57]CAPDU: 80 13 00 00 [01:19:57]Write to MH i2c: E2 08 00 DA 10 80 13 00 00 00 00 00 00 66 [01:19:57]Write i2c OK [01:19:57]MH_I2C_Read... [01:19:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:19:57]Read from MH i2c: E2 [01:19:57]MH_I2C_Read... [01:19:57]Read from MH i2c: E2 62 00 [01:19:57]MH_I2C_Read... [01:19:57]Read from MH i2c: E2 62 00 DA 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7D 7C 03 00 0E 04 04 00 18 02 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 CC [01:19:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7D 7C 03 00 0E 04 04 00 18 02 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:19:57]wFMCommunicate OK [01:19:57]SAM_PROTO_GetFieldsCounters done [01:19:57]requested_item shift.num is exist - process it [01:19:57]requested_item shift.opened is exist - process it [01:19:57]req_shift_opened [01:19:57]FM_GetShiftState [01:19:57]SAM_PROTO_GetShiftState [01:19:57]wFMCommunicate request_size=4 [01:19:57]MH_SAM_APDU [01:19:57]CAPDU: 80 13 01 00 [01:19:57]Write to MH i2c: E2 08 00 DB 10 80 13 01 00 00 00 00 00 68 [01:19:57]Write i2c OK [01:19:57]MH_I2C_Read... [01:19:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:19:57]Read from MH i2c: E2 [01:19:57]MH_I2C_Read... [01:19:57]Read from MH i2c: E2 0E 00 [01:19:57]MH_I2C_Read... [01:19:57]Read from MH i2c: E2 0E 00 DB 10 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 A2 [01:19:57]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [01:19:57]wFMCommunicate OK [01:19:57]SAM_PROTO_GetShiftState done [01:19:57]FM_GetShiftState done [01:19:57]req_shift_opened done [01:19:57]requested_item shift.open_date is exist - process it [01:19:57]req_shift_open_date [01:19:57]req_shift_open_date done [01:19:57]produce_requested_data done [01:19:57]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228477,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352} [01:19:57]process_action_free close_receipt [01:19:57]json_value_free [01:19:57]json_value_free done [01:19:57]process_json_proto returns [01:19:57]Send response to host [01:19:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228477,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352}}} [01:19:57]free response buf [01:19:57]execute_script done [01:19:57]execute_script returns [01:19:57]free content buf [01:19:57]Sock 9.Close socket [01:19:57]Sock 9.Thread stoped [01:20:23]accept exits with 7 [01:20:23]New connection [01:20:23]New thread 3066834276 created [01:20:23]Thread 3066977636 joined [01:20:23]Waiting for new connection... [01:20:23] Sock 7.Parse request [01:20:23]Sock 7.Check first char [01:20:23]Sock 7.First char is OK [01:20:23]request: POST /json_proto HTTP/1.0 [01:20:23]Method: POST [01:20:23]URL: /json_proto [01:20:23]Method is POST - this is cgi request [01:20:23]url: /json_proto [01:20:23]query_string will be loaded in cgi processing [01:20:23]execute_cgi json_proto POST (null) [01:20:23]execute_cgi path=json_proto method=POST [01:20:23]POST find Content-Length [01:20:23]Host: 172.17.44.195:8080 [01:20:23]Content-Length: 660 [01:20:23]Content-Type: application/json [01:20:23] [01:20:23]POST finish read [01:20:23]Found Content-Length = 660 [01:20:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 11.700, "sum" : 800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:20:23]execute_script... [01:20: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)1965147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 11.700, "sum" : 800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:20:23]POST & json_proto [01:20:23]process_json_proto [01:20:23]json parsed OK: [01:20:23]protocol is kg_v1.0 [01:20:23]action value=close_receipt [01:20:23]process_action close_receipt [01:20:23]cmd_close_receipt [01:20:23]MH_GetDate [01:20:23]Write to MH i2c: F0 00 00 DC 10 DB [01:20:23]Write i2c OK [01:20:23]MH_I2C_Read... [01:20:23]Read from MH i2c: F0 [01:20:23]MH_I2C_Read... [01:20:23]Read from MH i2c: F0 09 00 [01:20:23]MH_I2C_Read... [01:20:23]Read from MH i2c: F0 09 00 DC 10 00 59 4F 18 67 82 C9 CF 66 8B [01:20:23]GetLastDocTimeStamp 1729646394 [01:20:23]current date 1729646425 [01:20:23]FM_GetShiftState [01:20:23]SAM_PROTO_GetShiftState [01:20:23]wFMCommunicate request_size=4 [01:20:23]MH_SAM_APDU [01:20:23]CAPDU: 80 13 01 00 [01:20:23]Write to MH i2c: E2 08 00 DD 10 80 13 01 00 00 00 00 00 6A [01:20:23]Write i2c OK [01:20:23]MH_I2C_Read... [01:20:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:20:23]Read from MH i2c: E2 [01:20:23]MH_I2C_Read... [01:20:23]Read from MH i2c: E2 0E 00 [01:20:23]MH_I2C_Read... [01:20:23]Read from MH i2c: E2 0E 00 DD 10 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 A4 [01:20:23]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [01:20:23]wFMCommunicate OK [01:20:23]SAM_PROTO_GetShiftState done [01:20:23]FM_GetShiftState done [01:20:23]opened in 1729642352 [01:20:23]opened+sec_in_day 1729728752 [01:20:23]quantity*price = 80028 [01:20:23]sum+1 = 80029 [01:20:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 14 23.10.2024 01:20 Смена: 536 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228478 ФПД: 116509023738737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T012025&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228478&fm=116509023738737&tin=02508201610067®Number=0000000000091685&sum=80000 [01:20:24]StoreToDocumentArchive [01:20:24]shift 536 fd 228478 [01:20:24]save to /storage/0536/doc_00228478 [01:20:24]save last doc name /storage/0536/doc_00228478 to /storage/kkm_last_doc_name [01:20:24]save OK [01:20:24]Clear old archive folders... [01:20:24]ProcessDocumentItem done err = 0, tmpTLVsize=244 [01:20:24]tlvbuf is 00306A20 [01:20:24]SAM_PROTO_ClearQueue [01:20:24]wFMCommunicate request_size=4 [01:20:24]MH_SAM_APDU [01:20:24]CAPDU: 80 09 00 00 [01:20:24]Write to MH i2c: E2 08 00 EA 10 80 09 00 00 00 00 00 00 6C [01:20:24]Write i2c OK [01:20:24]MH_I2C_Read... [01:20:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:20:24]Read from MH i2c: E2 [01:20:24]MH_I2C_Read... [01:20:24]Read from MH i2c: E2 03 00 [01:20:24]MH_I2C_Read... [01:20:24]Read from MH i2c: E2 03 00 EA 10 00 90 00 6E [01:20:24]RAPDU: 90 00 [01:20:24]wFMCommunicate OK [01:20:24]SAM_PROTO_ClearQueue done [01:20:24]KKMCreateOFDPacket [01:20:24]OFDProtocolAddRootSTLVToBuf [01:20:24]FM_MakeSignedData [01:20:24]FM_MakeSignedData [01:20:24]SAM_PROTO_SignData [01:20:24]wFMCommunicate request_size=4 [01:20:24]MH_SAM_APDU [01:20:24]CAPDU: 80 0D 01 02 [01:20:24]Write to MH i2c: E2 08 00 EB 10 80 0D 01 02 00 00 00 00 74 [01:20:24]Write i2c OK [01:20:24]MH_I2C_Read... [01:20:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:20:24]Read from MH i2c: E2 [01:20:24]MH_I2C_Read... [01:20:24]Read from MH i2c: E2 03 00 [01:20:24]MH_I2C_Read... [01:20:24]Read from MH i2c: E2 03 00 EB 10 00 90 00 6F [01:20:24]RAPDU: 90 00 [01:20:24]wFMCommunicate OK [01:20:24]wFMCommunicate request_size=253 [01:20:24]MH_SAM_APDU [01:20:24]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 59 4F 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7E 7C 03 00 35 04 06 00 69 F6 DE F9 1B 71 [01:20:24]Write to MH i2c: E2 00 01 EC 10 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 59 4F 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7E 7C 03 00 35 04 06 00 69 F6 DE F9 1B 71 00 00 55 [01:20:24]Write i2c OK [01:20:24]MH_I2C_Read... [01:20:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:20:25]Read from MH i2c: E2 [01:20:25]MH_I2C_Read... [01:20:25]Read from MH i2c: E2 03 00 [01:20:25]MH_I2C_Read... [01:20:25]Read from MH i2c: E2 03 00 EC 10 00 90 00 70 [01:20:25]RAPDU: 90 00 [01:20:25]wFMCommunicate OK [01:20:25]wFMCommunicate request_size=4 [01:20:25]MH_SAM_APDU [01:20:25]CAPDU: 80 0D 03 02 [01:20:25]Write to MH i2c: E2 08 00 ED 10 80 0D 03 02 00 00 00 00 78 [01:20:25]Write i2c OK [01:20:25]MH_I2C_Read... [01:20:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:20:25]Read from MH i2c: E2 [01:20:25]MH_I2C_Read... [01:20:25]Read from MH i2c: E2 0B 00 [01:20:25]MH_I2C_Read... [01:20:25]Read from MH i2c: E2 0B 00 ED 10 00 19 10 63 7F D5 20 B4 9E 90 00 CB [01:20:25]RAPDU: 19 10 63 7F D5 20 B4 9E 90 00 [01:20:25]wFMCommunicate OK [01:20:25]SAM_PROTO_SignData done [01:20:25]FM_MakeSignedData done [01:20:25]CreateOFDProtocolMessage [01:20:25]wFMCommunicate request_size=4 [01:20:25]MH_SAM_APDU [01:20:25]CAPDU: 80 11 00 00 [01:20:25]Write to MH i2c: E2 08 00 EE 10 80 11 00 00 00 00 00 00 78 [01:20:25]Write i2c OK [01:20:25]MH_I2C_Read... [01:20:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:20:25]Read from MH i2c: E2 [01:20:25]MH_I2C_Read... [01:20:25]Read from MH i2c: E2 17 00 [01:20:25]MH_I2C_Read... [01:20:25]Read from MH i2c: E2 17 00 EE 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CF [01:20:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [01:20:25]wFMCommunicate OK [01:20:25]CreateOFDProtocolMessage done [01:20:25]OFDSenderStorePacket 228478 [01:20:25]StoreOFDPacket docnum=228478 [01:20:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 A4 63 00 01 CE C8 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 59 4F 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7E 7C 03 00 35 04 06 00 69 F6 DE F9 1B 71 19 10 63 7F D5 20 B4 9E [01:20:25]CheckFolder [01:20:25]dirname=/storage/ofd_packets [01:20:25]CheckFolder done [01:20:25]ProducePacketName [01:20:25]name=ofd_packets/00228478 [01:20:25]NVStorageSaveData ofd_packets/00228478 [01:20:25]File name is /storage/ofd_packets/00228478 [01:20:25]Write 294 bytes [01:20:25]NVStorageSaveData done [01:20:25]OFDSenderStorePacket done [01:20:25]KKMCreateOFDPacket done [01:20:25]NVStorageSaveData kkm_last_timestamp [01:20:25]File name is /storage/kkm_last_timestamp [01:20:25]Write 4 bytes [01:20:25]NVStorageSaveData done [01:20:25]ExternCall_PrintAddStr [01:20:25]wPrintStart [01:20:25]Write to MH i2c: 01 00 00 EF 10 FF [01:20:25]Write i2c OK [01:20:25]MH_I2C_Read... [01:20:25]Read from MH i2c: 01 [01:20:25]MH_I2C_Read... [01:20:25]Read from MH i2c: 01 07 00 [01:20:25]MH_I2C_Read... [01:20:25]Read from MH i2c: 01 07 00 EF 10 00 00 00 00 00 FF 0F 14 [01:20:25]RasterBufferAndPrint [01:20:25]line Счет N : (1)1965147 [01:20:25]line ИНН: 02508201610067 [01:20:25]line Контрольно-Кассовый Чек [01:20:25]line ПРОДАЖА [01:20:25]line ТРК (МРК, ГНК) : 42 [01:20:25]line Товар: 2710124130 [01:20:25]line SU-92 [01:20:25]line 11.700 * 68.40 [01:20:25]line = 800.28 [01:20:25]line НДС 12% НСП 1% [01:20:25]line > о реализуемом товаре [01:20:25]line ОКРУГЛЕНИЕ: -0.28 [01:20:25]line ИТОГО: 800.00 [01:20:25]line Внесено: 800.00 [01:20:25]line СДАЧА: 0.00 [01:20:25]line НСП 1% : 7.08 [01:20:25]line НДС 12% : 84.98 [01:20:25]line Наличными: 800.00 [01:20:25]line Безнал.: 0.00 [01:20:25]line Место: АЗС № 133 "Партнер Нефть" [01:20:25]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [01:20:25]line СНО: Общий режим [01:20:25]line Чек 14 23.10.2024 01:20 [01:20:25]line Смена: 536 ФФД: 1.0 [01:20:25]line ЗНМ: 0300000091 [01:20:25]line РНМ: 0000000000091685 [01:20:25]line Версия ККМ: 001 [01:20:25]line ФМ: 0000000000871839 [01:20:25]line ФД: 228478 [01:20:25]line ФПД: 116509023738737 [01:20:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T012025&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228478&fm=116509023738737&tin=02508201610067®Number=0000000000091685&sum=80000 [01:20:25]written 0, free lines is 4095 [01:20:26]Write to MH i2c: 01 00 00 19 11 2A [01:20:26]Write i2c OK [01:20:26]MH_I2C_Read... [01:20:26]Read from MH i2c: 01 [01:20:26]MH_I2C_Read... [01:20:26]Read from MH i2c: 01 07 00 [01:20:26]MH_I2C_Read... [01:20:26]Read from MH i2c: 01 07 00 19 11 00 00 00 00 00 9B 0C D8 [01:20:26]RasterBufferAndPrint [01:20:26]line [01:20:26]line [01:20:26]line [01:20:26]line [01:20:26]line [01:20:26]written 0, free lines is 3230 [01:20:26]MH_Cut [01:20:26]Write to MH i2c: D1 01 00 20 11 01 03 [01:20:26]Write i2c OK [01:20:26]MH_I2C_Read... [01:20:26]Read from MH i2c: D1 [01:20:26]MH_I2C_Read... [01:20:26]Read from MH i2c: D1 01 00 [01:20:26]MH_I2C_Read... [01:20:26]Read from MH i2c: D1 01 00 20 11 00 02 [01:20:26]Write to MH i2c: 01 00 00 21 11 32 [01:20:26]Write i2c OK [01:20:26]MH_I2C_Read... [01:20:27]*** Cut start [01:20:27]*** Partial cut [01:20:27]*** CUTSNS_PIN = 1 [01:20:27]*** CUTSNS_PIN = 0 [01:20:27]*** Brake cut motor [01:20:27]Read from MH i2c: 01 [01:20:27]MH_I2C_Read... [01:20:27]*** Stop cut motor [01:20:27]*** Cut end [01:20:27]Read from MH i2c: 01 07 00 [01:20:27]MH_I2C_Read... [01:20:27]Read from MH i2c: 01 07 00 21 11 00 00 00 00 00 FF 0F 47 [01:20:27]process_action close_receipt done [01:20:27]requested_data is exist [01:20:27]produce_requested_data [01:20:27]requested_item fm.sn is exist - process it [01:20:27]wFMCommunicate request_size=4 [01:20:27]MH_SAM_APDU [01:20:27]CAPDU: 80 11 00 00 [01:20:27]Write to MH i2c: E2 08 00 22 11 80 11 00 00 00 00 00 00 AD [01:20:27]Write i2c OK [01:20:27]MH_I2C_Read... [01:20:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:20:27]Read from MH i2c: E2 [01:20:27]MH_I2C_Read... [01:20:27]Read from MH i2c: E2 17 00 [01:20:27]MH_I2C_Read... [01:20:27]Read from MH i2c: E2 17 00 22 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 04 [01:20:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [01:20:27]wFMCommunicate OK [01:20:27]requested_item fd.num is exist - process it [01:20:27]SAM_PROTO_GetFieldsCounters [01:20:27]wFMCommunicate request_size=4 [01:20:27]MH_SAM_APDU [01:20:27]CAPDU: 80 13 00 00 [01:20:27]Write to MH i2c: E2 08 00 23 11 80 13 00 00 00 00 00 00 B0 [01:20:27]Write i2c OK [01:20:27]MH_I2C_Read... [01:20:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:20:27]Read from MH i2c: E2 [01:20:27]MH_I2C_Read... [01:20:27]Read from MH i2c: E2 62 00 [01:20:27]MH_I2C_Read... [01:20:27]Read from MH i2c: E2 62 00 23 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7E 7C 03 00 0E 04 04 00 18 02 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 1A [01:20:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7E 7C 03 00 0E 04 04 00 18 02 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:20:27]wFMCommunicate OK [01:20:27]SAM_PROTO_GetFieldsCounters done [01:20:27]requested_item shift.num is exist - process it [01:20:27]requested_item shift.opened is exist - process it [01:20:27]req_shift_opened [01:20:27]FM_GetShiftState [01:20:27]SAM_PROTO_GetShiftState [01:20:27]wFMCommunicate request_size=4 [01:20:27]MH_SAM_APDU [01:20:27]CAPDU: 80 13 01 00 [01:20:27]Write to MH i2c: E2 08 00 24 11 80 13 01 00 00 00 00 00 B2 [01:20:27]Write i2c OK [01:20:27]MH_I2C_Read... [01:20:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:20:27]Read from MH i2c: E2 [01:20:27]MH_I2C_Read... [01:20:27]Read from MH i2c: E2 0E 00 [01:20:27]MH_I2C_Read... [01:20:27]Read from MH i2c: E2 0E 00 24 11 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 EC [01:20:27]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [01:20:27]wFMCommunicate OK [01:20:27]SAM_PROTO_GetShiftState done [01:20:27]FM_GetShiftState done [01:20:27]req_shift_opened done [01:20:27]requested_item shift.open_date is exist - process it [01:20:27]req_shift_open_date [01:20:27]req_shift_open_date done [01:20:27]produce_requested_data done [01:20:27]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228478,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352} [01:20:27]process_action_free close_receipt [01:20:27]json_value_free [01:20:27]json_value_free done [01:20:27]process_json_proto returns [01:20:27]Send response to host [01:20:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228478,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352}}} [01:20:27]free response buf [01:20:27]execute_script done [01:20:27]execute_script returns [01:20:27]free content buf [01:20:27]Sock 7.Close socket [01:20:27]Sock 7.Thread stoped [01:22:04]ConnectInit Can't connect to host [01:22:04]CommunicateWithHost connect error [01:22:04]CommunicateWithHost err = -1 [01:22:04]OFD Sender: Server communicate error [01:22:04]OFD Sender: Processing packet 228477 [packets to send 39, broken 37] [01:22:04]ProducePacketName [01:22:04]name=ofd_packets/00228477 [01:22:04]OFD Sender: To server: pG, [01:22:04]CommunicateWithHost lk.salyk.kg:30040 [01:22:04]ConnectInit lk.salyk.kg [01:22:05]Connected sock=7 [01:22:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 61 CE 07 01 DB 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 3A 4F 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7D 7C 03 00 35 04 06 00 BB A1 B0 DC AB BF FC 4A 7C 67 22 37 16 6E [01:22:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 E1 09 47 00 BD 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7D 7C 03 00 F4 03 04 00 B3 FA 17 67 B6 04 01 00 00 8C CA 3D A6 96 C3 F6 48 [01:22:05]CommunicateWithHost err = 0 [01:22:05]CheckOFDResponse [01:22:05]1017 (14) - 77093643461234 [01:22:05]1041 (16) - 0000000000871839 [01:22:05]1040 (4) - 228477 [01:22:05]1012 (4) - 22.10.2024 19:19 [01:22:05]1206 (1) - 0 [01:22:05]OFD Sender: Remove packet 228477 [01:22:05]ProducePacketName [01:22:05]name=ofd_packets/00228477 [01:22:05]NVStorageDeleteData [01:22:05]OFD Sender: Processing packet 228478 [packets to send 38, broken 37] [01:22:05]ProducePacketName [01:22:05]name=ofd_packets/00228478 [01:22:05]OFD Sender: To server: pG, [01:22:05]CommunicateWithHost lk.salyk.kg:30040 [01:22:05]ConnectInit lk.salyk.kg [01:22:05]Connected sock=7 [01:22:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 A4 63 00 01 CE C8 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 59 4F 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7E 7C 03 00 35 04 06 00 69 F6 DE F9 1B 71 19 10 63 7F D5 20 B4 9E [01:22:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 29 40 47 00 6C 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7E 7C 03 00 F4 03 04 00 B3 FA 17 67 B6 04 01 00 00 6D 1E 5C 84 4B CE FB 04 [01:22:06]CommunicateWithHost err = 0 [01:22:06]CheckOFDResponse [01:22:06]1017 (14) - 77093643461234 [01:22:06]1041 (16) - 0000000000871839 [01:22:06]1040 (4) - 228478 [01:22:06]1012 (4) - 22.10.2024 19:19 [01:22:06]1206 (1) - 0 [01:22:06]OFD Sender: Remove packet 228478 [01:22:06]ProducePacketName [01:22:06]name=ofd_packets/00228478 [01:22:06]NVStorageDeleteData [01:22:06]OFD Sender: No OFD packet to send [01:22:11]OFD Sender: No OFD packet to send [01:22:16]OFD Sender: No OFD packet to send [01:22:21]OFD Sender: No OFD packet to send [01:22:26]OFD Sender: No OFD packet to send [01:22:31]OFD Sender: No OFD packet to send [01:22:36]OFD Sender: No OFD packet to send [01:22:41]OFD Sender: No OFD packet to send [01:22:46]OFD Sender: No OFD packet to send [01:22:51]OFD Sender: No OFD packet to send [01:22:56]OFD Sender: No OFD packet to send [01:23:01]OFD Sender: No OFD packet to send [01:23:06]OFD Sender: No OFD packet to send [01:23:11]OFD Sender: No OFD packet to send [01:23:16]OFD Sender: No OFD packet to send [01:23:21]OFD Sender: No OFD packet to send [01:23:26]OFD Sender: No OFD packet to send [01:23:31]OFD Sender: No OFD packet to send [01:23:36]OFD Sender: No OFD packet to send [01:23:39]accept exits with 9 [01:23:39]New connection [01:23:39]New thread 3066977636 created [01:23:39]Thread 3066834276 joined [01:23:39]Waiting for new connection... [01:23:39] Sock 9.Parse request [01:23:39]Sock 9.Check first char [01:23:39]Sock 9.First char is OK [01:23:39]request: POST /json_proto HTTP/1.0 [01:23:39]Method: POST [01:23:39]URL: /json_proto [01:23:39]Method is POST - this is cgi request [01:23:39]url: /json_proto [01:23:39]query_string will be loaded in cgi processing [01:23:39]execute_cgi json_proto POST (null) [01:23:39]execute_cgi path=json_proto method=POST [01:23:39]POST find Content-Length [01:23:39]Host: 172.17.44.195:8080 [01:23:39]Content-Length: 683 [01:23:39]Content-Type: application/json [01:23:39] [01:23:39]POST finish read [01:23:39]Found Content-Length = 683 [01:23:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [01:23:39]execute_script... [01: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)1965148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [01:23:39]POST & json_proto [01:23:39]process_json_proto [01:23:39]json parsed OK: [01:23:39]protocol is kg_v1.0 [01:23:39]action value=close_receipt [01:23:39]process_action close_receipt [01:23:39]cmd_close_receipt [01:23:39]MH_GetDate [01:23:39]Write to MH i2c: F0 00 00 25 11 25 [01:23:39]Write i2c OK [01:23:39]MH_I2C_Read... [01:23:39]Read from MH i2c: F0 [01:23:39]MH_I2C_Read... [01:23:39]Read from MH i2c: F0 09 00 [01:23:39]MH_I2C_Read... [01:23:39]Read from MH i2c: F0 09 00 25 11 00 1C 50 18 67 82 C9 CF 66 99 [01:23:39]GetLastDocTimeStamp 1729646425 [01:23:39]current date 1729646620 [01:23:39]FM_GetShiftState [01:23:39]SAM_PROTO_GetShiftState [01:23:39]wFMCommunicate request_size=4 [01:23:39]MH_SAM_APDU [01:23:39]CAPDU: 80 13 01 00 [01:23:39]Write to MH i2c: E2 08 00 26 11 80 13 01 00 00 00 00 00 B4 [01:23:39]Write i2c OK [01:23:39]MH_I2C_Read... [01:23:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:23:39]Read from MH i2c: E2 [01:23:39]MH_I2C_Read... [01:23:39]Read from MH i2c: E2 0E 00 [01:23:39]MH_I2C_Read... [01:23:39]Read from MH i2c: E2 0E 00 26 11 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 EE [01:23:39]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [01:23:39]wFMCommunicate OK [01:23:39]SAM_PROTO_GetShiftState done [01:23:39]FM_GetShiftState done [01:23:39]opened in 1729642352 [01:23:39]opened+sec_in_day 1729728752 [01:23:39]quantity*price = 150056 [01:23:39]sum+1 = 150058 [01:23:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 15 23.10.2024 01:23 Смена: 536 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228479 ФПД: 272085392134943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T012340&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228479&fm=272085392134943&tin=02508201610067®Number=0000000000091685&sum=150000 [01:23:40]StoreToDocumentArchive [01:23:40]shift 536 fd 228479 [01:23:40]save to /storage/0536/doc_00228479 [01:23:40]save last doc name /storage/0536/doc_00228479 to /storage/kkm_last_doc_name [01:23:40]save OK [01:23:40]Clear old archive folders... [01:23:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:23:40]tlvbuf is 0031D200 [01:23:40]SAM_PROTO_ClearQueue [01:23:40]wFMCommunicate request_size=4 [01:23:40]MH_SAM_APDU [01:23:40]CAPDU: 80 09 00 00 [01:23:40]Write to MH i2c: E2 08 00 33 11 80 09 00 00 00 00 00 00 B6 [01:23:40]Write i2c OK [01:23:40]MH_I2C_Read... [01:23:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:23:40]Read from MH i2c: E2 [01:23:40]MH_I2C_Read... [01:23:40]Read from MH i2c: E2 03 00 [01:23:40]MH_I2C_Read... [01:23:40]Read from MH i2c: E2 03 00 33 11 00 90 00 B8 [01:23:40]RAPDU: 90 00 [01:23:40]wFMCommunicate OK [01:23:40]SAM_PROTO_ClearQueue done [01:23:40]KKMCreateOFDPacket [01:23:40]OFDProtocolAddRootSTLVToBuf [01:23:40]FM_MakeSignedData [01:23:40]FM_MakeSignedData [01:23:40]SAM_PROTO_SignData [01:23:40]wFMCommunicate request_size=4 [01:23:40]MH_SAM_APDU [01:23:40]CAPDU: 80 0D 01 02 [01:23:40]Write to MH i2c: E2 08 00 34 11 80 0D 01 02 00 00 00 00 BE [01:23:40]Write i2c OK [01:23:40]MH_I2C_Read... [01:23:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:23:40]Read from MH i2c: E2 [01:23:40]MH_I2C_Read... [01:23:40]Read from MH i2c: E2 03 00 [01:23:40]MH_I2C_Read... [01:23:40]Read from MH i2c: E2 03 00 34 11 00 90 00 B9 [01:23:40]RAPDU: 90 00 [01:23:40]wFMCommunicate OK [01:23:40]wFMCommunicate request_size=255 [01:23:40]MH_SAM_APDU [01: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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 1C 50 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7F 7C 03 00 35 04 06 00 F7 [01:23:40]Write to MH i2c: E2 02 01 35 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 1C 50 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7F 7C 03 00 35 04 06 00 F7 00 00 A7 [01:23:40]Write i2c OK [01:23:40]MH_I2C_Read... [01:23:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:23:40]Read from MH i2c: E2 [01:23:40]MH_I2C_Read... [01:23:40]Read from MH i2c: E2 03 00 [01:23:40]MH_I2C_Read... [01:23:40]Read from MH i2c: E2 03 00 35 11 00 90 00 BA [01:23:40]RAPDU: 90 00 [01:23:40]wFMCommunicate OK [01:23:40]wFMCommunicate request_size=10 [01:23:40]MH_SAM_APDU [01:23:40]CAPDU: 80 0D 02 02 05 75 D1 25 93 1F [01:23:40]Write to MH i2c: E2 0D 00 36 11 80 0D 02 02 05 00 75 D1 25 93 1F 00 00 E8 [01:23:40]Write i2c OK [01:23:40]MH_I2C_Read... [01:23:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:23:40]Read from MH i2c: E2 [01:23:40]MH_I2C_Read... [01:23:40]Read from MH i2c: E2 03 00 [01:23:40]MH_I2C_Read... [01:23:40]Read from MH i2c: E2 03 00 36 11 00 90 00 BB [01:23:40]RAPDU: 90 00 [01:23:40]wFMCommunicate OK [01:23:40]wFMCommunicate request_size=4 [01:23:40]MH_SAM_APDU [01:23:40]CAPDU: 80 0D 03 02 [01:23:40]Write to MH i2c: E2 08 00 37 11 80 0D 03 02 00 00 00 00 C3 [01:23:40]Write i2c OK [01:23:40]MH_I2C_Read... [01:23:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:23:41]Read from MH i2c: E2 [01:23:41]MH_I2C_Read... [01:23:41]Read from MH i2c: E2 0B 00 [01:23:41]MH_I2C_Read... [01:23:41]Read from MH i2c: E2 0B 00 37 11 00 3C 61 F5 02 B8 73 54 EB 90 00 C2 [01:23:41]RAPDU: 3C 61 F5 02 B8 73 54 EB 90 00 [01:23:41]wFMCommunicate OK [01:23:41]SAM_PROTO_SignData done [01:23:41]FM_MakeSignedData done [01:23:41]CreateOFDProtocolMessage [01:23:41]wFMCommunicate request_size=4 [01:23:41]MH_SAM_APDU [01:23:41]CAPDU: 80 11 00 00 [01:23:41]Write to MH i2c: E2 08 00 38 11 80 11 00 00 00 00 00 00 C3 [01:23:41]Write i2c OK [01:23:41]MH_I2C_Read... [01:23:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:23:41]Read from MH i2c: E2 [01:23:41]MH_I2C_Read... [01:23:41]Read from MH i2c: E2 17 00 [01:23:41]MH_I2C_Read... [01:23:41]Read from MH i2c: E2 17 00 38 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1A [01:23:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [01:23:41]wFMCommunicate OK [01:23:41]CreateOFDProtocolMessage done [01:23:41]OFDSenderStorePacket 228479 [01:23:41]StoreOFDPacket docnum=228479 [01:23:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 1B D2 07 01 CC 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 1C 50 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7F 7C 03 00 35 04 06 00 F7 75 D1 25 93 1F 3C 61 F5 02 B8 73 54 EB [01:23:41]CheckFolder [01:23:41]dirname=/storage/ofd_packets [01:23:41]CheckFolder done [01:23:41]ProducePacketName [01:23:41]name=ofd_packets/00228479 [01:23:41]NVStorageSaveData ofd_packets/00228479 [01:23:41]File name is /storage/ofd_packets/00228479 [01:23:41]Write 301 bytes [01:23:41]NVStorageSaveData done [01:23:41]OFDSenderStorePacket done [01:23:41]KKMCreateOFDPacket done [01:23:41]NVStorageSaveData kkm_last_timestamp [01:23:41]File name is /storage/kkm_last_timestamp [01:23:41]Write 4 bytes [01:23:41]NVStorageSaveData done [01:23:41]ExternCall_PrintAddStr [01:23:41]wPrintStart [01:23:41]Write to MH i2c: 01 00 00 39 11 4A [01:23:41]Write i2c OK [01:23:41]MH_I2C_Read... [01:23:41]Read from MH i2c: 01 [01:23:41]MH_I2C_Read... [01:23:41]Read from MH i2c: 01 07 00 [01:23:41]MH_I2C_Read... [01:23:41]Read from MH i2c: 01 07 00 39 11 00 00 00 00 00 FF 0F 5F [01:23:41]RasterBufferAndPrint [01:23:41]line Счет N : (1)1965148 [01:23:41]line ИНН: 02508201610067 [01:23:41]line Контрольно-Кассовый Чек [01:23:41]line ПРОДАЖА [01:23:41]line ТРК (МРК, ГНК) : 43 [01:23:41]line Товар: 2710124130 [01:23:41]line Аи-92-К-5 [01:23:41]line 22.430 * 66.90 [01:23:41]line = 1500.57 [01:23:41]line НДС 12% НСП 1% [01:23:41]line > о реализуемом товаре [01:23:41]line ОКРУГЛЕНИЕ: -0.57 [01:23:41]line ИТОГО: 1500.00 [01:23:41]line Внесено: 1500.00 [01:23:41]line СДАЧА: 0.00 [01:23:41]line НСП 1% : 13.28 [01:23:41]line НДС 12% : 159.35 [01:23:41]line Наличными: 1500.00 [01:23:41]line Безнал.: 0.00 [01:23:41]line Место: АЗС № 133 "Партнер Нефть" [01:23:41]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [01:23:41]line СНО: Общий режим [01:23:41]line Чек 15 23.10.2024 01:23 [01:23:41]line Смена: 536 ФФД: 1.0 [01:23:41]line ЗНМ: 0300000091 [01:23:41]line РНМ: 0000000000091685 [01:23:41]line Версия ККМ: 001 [01:23:41]line ФМ: 0000000000871839 [01:23:41]line ФД: 228479 [01:23:41]line ФПД: 272085392134943 [01:23:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T012340&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228479&fm=272085392134943&tin=02508201610067®Number=0000000000091685&sum=150000 [01:23:41]written 0, free lines is 4095 [01:23:41]OFD Sender: Processing packet 228479 [packets to send 38, broken 37] [01:23:41]ProducePacketName [01:23:41]name=ofd_packets/00228479 [01:23:41]OFD Sender: To server: pG, [01:23:41]CommunicateWithHost lk.salyk.kg:30040 [01:23:41]ConnectInit lk.salyk.kg [01:23:41]Connected sock=10 [01:23:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 1B D2 07 01 CC 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 1C 50 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7F 7C 03 00 35 04 06 00 F7 75 D1 25 93 1F 3C 61 F5 02 B8 73 54 EB [01:23:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 21 12 47 00 61 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7F 7C 03 00 F4 03 04 00 13 FB 17 67 B6 04 01 00 00 72 5D 7E 31 9C B9 35 25 [01:23:41]CommunicateWithHost err = 0 [01:23:41]CheckOFDResponse [01:23:41]1017 (14) - 77093643461234 [01:23:41]1041 (16) - 0000000000871839 [01:23:41]1040 (4) - 228479 [01:23:41]1012 (4) - 22.10.2024 19:20 [01:23:41]1206 (1) - 0 [01:23:41]OFD Sender: Remove packet 228479 [01:23:41]ProducePacketName [01:23:41]name=ofd_packets/00228479 [01:23:41]NVStorageDeleteData [01:23:41]Write to MH i2c: 01 00 00 63 11 74 [01:23:41]Write i2c OK [01:23:41]MH_I2C_Read... [01:23:41]Read from MH i2c: 01 [01:23:41]MH_I2C_Read... [01:23:41]Read from MH i2c: 01 07 00 [01:23:41]MH_I2C_Read... [01:23:41]Read from MH i2c: 01 07 00 63 11 00 00 00 00 00 A1 0C 28 [01:23:41]RasterBufferAndPrint [01:23:41]line [01:23:41]line [01:23:41]line [01:23:41]line [01:23:41]line [01:23:41]written 0, free lines is 3238 [01:23:41]MH_Cut [01:23:41]Write to MH i2c: D1 01 00 6A 11 01 4D [01:23:41]Write i2c OK [01:23:41]MH_I2C_Read... [01:23:41]Read from MH i2c: D1 [01:23:41]MH_I2C_Read... [01:23:41]Read from MH i2c: D1 01 00 [01:23:41]MH_I2C_Read... [01:23:41]Read from MH i2c: D1 01 00 6A 11 00 4C [01:23:41]Write to MH i2c: 01 00 00 6B 11 7C [01:23:41]Write i2c OK [01:23:41]MH_I2C_Read... [01:23:42]OFD Sender: No OFD packet to send [01:23:42]*** Cut start [01:23:42]*** Partial cut [01:23:42]*** CUTSNS_PIN = 1 [01:23:42]*** CUTSNS_PIN = 0 [01:23:43]*** Brake cut motor [01:23:43]Read from MH i2c: 01 [01:23:43]MH_I2C_Read... [01:23:43]*** Stop cut motor [01:23:43]*** Cut end [01:23:43]Read from MH i2c: 01 07 00 [01:23:43]MH_I2C_Read... [01:23:43]Read from MH i2c: 01 07 00 6B 11 00 00 00 00 00 FF 0F 91 [01:23:43]process_action close_receipt done [01:23:43]requested_data is exist [01:23:43]produce_requested_data [01:23:43]requested_item fm.sn is exist - process it [01:23:43]wFMCommunicate request_size=4 [01:23:43]MH_SAM_APDU [01:23:43]CAPDU: 80 11 00 00 [01:23:43]Write to MH i2c: E2 08 00 6C 11 80 11 00 00 00 00 00 00 F7 [01:23:43]Write i2c OK [01:23:43]MH_I2C_Read... [01:23:43]Read from MH i2c: E2 [01:23:43]MH_I2C_Read... [01:23:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:23:43]Read from MH i2c: E2 17 00 [01:23:43]MH_I2C_Read... [01:23:43]Read from MH i2c: E2 17 00 6C 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4E [01:23:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [01:23:43]wFMCommunicate OK [01:23:43]requested_item fd.num is exist - process it [01:23:43]SAM_PROTO_GetFieldsCounters [01:23:43]wFMCommunicate request_size=4 [01:23:43]MH_SAM_APDU [01:23:43]CAPDU: 80 13 00 00 [01:23:43]Write to MH i2c: E2 08 00 6D 11 80 13 00 00 00 00 00 00 FA [01:23:43]Write i2c OK [01:23:43]MH_I2C_Read... [01:23:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:23:43]Read from MH i2c: E2 [01:23:43]MH_I2C_Read... [01:23:43]Read from MH i2c: E2 62 00 [01:23:43]MH_I2C_Read... [01:23:43]Read from MH i2c: E2 62 00 6D 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7F 7C 03 00 0E 04 04 00 18 02 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 68 [01:23:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7F 7C 03 00 0E 04 04 00 18 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:23:43]wFMCommunicate OK [01:23:43]SAM_PROTO_GetFieldsCounters done [01:23:43]requested_item shift.num is exist - process it [01:23:43]requested_item shift.opened is exist - process it [01:23:43]req_shift_opened [01:23:43]FM_GetShiftState [01:23:43]SAM_PROTO_GetShiftState [01:23:43]wFMCommunicate request_size=4 [01:23:43]MH_SAM_APDU [01:23:43]CAPDU: 80 13 01 00 [01:23:43]Write to MH i2c: E2 08 00 6E 11 80 13 01 00 00 00 00 00 FC [01:23:43]Write i2c OK [01:23:43]MH_I2C_Read... [01:23:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:23:43]Read from MH i2c: E2 [01:23:43]MH_I2C_Read... [01:23:43]Read from MH i2c: E2 0E 00 [01:23:43]MH_I2C_Read... [01:23:43]Read from MH i2c: E2 0E 00 6E 11 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 36 [01:23:43]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [01:23:43]wFMCommunicate OK [01:23:43]SAM_PROTO_GetShiftState done [01:23:43]FM_GetShiftState done [01:23:43]req_shift_opened done [01:23:43]requested_item shift.open_date is exist - process it [01:23:43]req_shift_open_date [01:23:43]req_shift_open_date done [01:23:43]produce_requested_data done [01:23:43]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228479,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352} [01:23:43]process_action_free close_receipt [01:23:43]json_value_free [01:23:43]json_value_free done [01:23:43]process_json_proto returns [01:23:43]Send response to host [01:23:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228479,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352}}} [01:23:43]free response buf [01:23:43]execute_script done [01:23:43]execute_script returns [01:23:43]free content buf [01:23:43]Sock 9.Close socket [01:23:43]Sock 9.Thread stoped [01:23:47]OFD Sender: No OFD packet to send [01:23:52]OFD Sender: No OFD packet to send [01:23:57]OFD Sender: No OFD packet to send [01:24:02]OFD Sender: No OFD packet to send [01:24:07]OFD Sender: No OFD packet to send [01:24:12]OFD Sender: No OFD packet to send [01:24:17]OFD Sender: No OFD packet to send [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:12]accept exits with 7 [01:26:12]New connection [01:26:12]New thread 3066834276 created [01:26:12]Thread 3066977636 joined [01:26:12]Waiting for new connection... [01:26:12] Sock 7.Parse request [01:26:12]Sock 7.Check first char [01:26:12]Sock 7.First char is OK [01:26:12]request: POST /json_proto HTTP/1.0 [01:26:12]Method: POST [01:26:12]URL: /json_proto [01:26:12]Method is POST - this is cgi request [01:26:12]url: /json_proto [01:26:12]query_string will be loaded in cgi processing [01:26:12]execute_cgi json_proto POST (null) [01:26:12]execute_cgi path=json_proto method=POST [01:26:12]POST find Content-Length [01:26:12]Host: 172.17.44.195:8080 [01:26:12]Content-Length: 660 [01:26:12]Content-Type: application/json [01:26:12] [01:26:12]POST finish read [01:26:12]Found Content-Length = 660 [01:26:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "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" ] } } [01:26:12]execute_script... [01: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)1965149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "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" ] } } [01:26:12]POST & json_proto [01:26:12]process_json_proto [01:26:12]json parsed OK: [01:26:12]protocol is kg_v1.0 [01:26:12]action value=close_receipt [01:26:12]process_action close_receipt [01:26:12]cmd_close_receipt [01:26:12]MH_GetDate [01:26:12]Write to MH i2c: F0 00 00 6F 11 6F [01:26:12]Write i2c OK [01:26:12]MH_I2C_Read... [01:26:12]Read from MH i2c: F0 [01:26:12]MH_I2C_Read... [01:26:12]Read from MH i2c: F0 09 00 [01:26:12]MH_I2C_Read... [01:26:12]Read from MH i2c: F0 09 00 6F 11 00 B6 50 18 67 82 C9 CF 66 7D [01:26:12]GetLastDocTimeStamp 1729646620 [01:26:12]current date 1729646774 [01:26:12]FM_GetShiftState [01:26:12]SAM_PROTO_GetShiftState [01:26:12]wFMCommunicate request_size=4 [01:26:12]MH_SAM_APDU [01:26:12]CAPDU: 80 13 01 00 [01:26:12]Write to MH i2c: E2 08 00 70 11 80 13 01 00 00 00 00 00 FE [01:26:12]Write i2c OK [01:26:12]MH_I2C_Read... [01:26:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:26:12]Read from MH i2c: E2 [01:26:12]MH_I2C_Read... [01:26:12]Read from MH i2c: E2 0E 00 [01:26:12]MH_I2C_Read... [01:26:12]Read from MH i2c: E2 0E 00 70 11 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 38 [01:26:12]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [01:26:12]wFMCommunicate OK [01:26:12]SAM_PROTO_GetShiftState done [01:26:12]FM_GetShiftState done [01:26:12]opened in 1729642352 [01:26:12]opened+sec_in_day 1729728752 [01:26:12]quantity*price = 70041 [01:26:12]sum+1 = 70043 [01:26:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 16 23.10.2024 01:26 Смена: 536 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228480 ФПД: 101512025553062 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T012614&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228480&fm=101512025553062&tin=02508201610067®Number=0000000000091685&sum=70000 [01:26:13]StoreToDocumentArchive [01:26:13]shift 536 fd 228480 [01:26:13]save to /storage/0536/doc_00228480 [01:26:13]save last doc name /storage/0536/doc_00228480 to /storage/kkm_last_doc_name [01:26:13]save OK [01:26:13]Clear old archive folders... [01:26:13]ProcessDocumentItem done err = 0, tmpTLVsize=244 [01:26:13]tlvbuf is 002B3260 [01:26:13]SAM_PROTO_ClearQueue [01:26:13]wFMCommunicate request_size=4 [01:26:13]MH_SAM_APDU [01:26:13]CAPDU: 80 09 00 00 [01:26:13]Write to MH i2c: E2 08 00 7D 11 80 09 00 00 00 00 00 00 00 [01:26:13]Write i2c OK [01:26:13]MH_I2C_Read... [01:26:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:26:13]Read from MH i2c: E2 [01:26:13]MH_I2C_Read... [01:26:13]Read from MH i2c: E2 03 00 [01:26:13]MH_I2C_Read... [01:26:13]Read from MH i2c: E2 03 00 7D 11 00 90 00 02 [01:26:13]RAPDU: 90 00 [01:26:13]wFMCommunicate OK [01:26:13]SAM_PROTO_ClearQueue done [01:26:13]KKMCreateOFDPacket [01:26:13]OFDProtocolAddRootSTLVToBuf [01:26:13]FM_MakeSignedData [01:26:13]FM_MakeSignedData [01:26:13]SAM_PROTO_SignData [01:26:13]wFMCommunicate request_size=4 [01:26:13]MH_SAM_APDU [01:26:13]CAPDU: 80 0D 01 02 [01:26:13]Write to MH i2c: E2 08 00 7E 11 80 0D 01 02 00 00 00 00 08 [01:26:13]Write i2c OK [01:26:13]MH_I2C_Read... [01:26:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:26:13]Read from MH i2c: E2 [01:26:13]MH_I2C_Read... [01:26:13]Read from MH i2c: E2 03 00 [01:26:13]MH_I2C_Read... [01:26:13]Read from MH i2c: E2 03 00 7E 11 00 90 00 03 [01:26:13]RAPDU: 90 00 [01:26:13]wFMCommunicate OK [01:26:13]wFMCommunicate request_size=253 [01:26:13]MH_SAM_APDU [01:26:13]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 10 00 00 00 F4 03 04 00 B6 50 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 80 7C 03 00 35 04 06 00 5C 53 1C 39 38 A6 [01:26:13]Write to MH i2c: E2 00 01 7F 11 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 10 00 00 00 F4 03 04 00 B6 50 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 80 7C 03 00 35 04 06 00 5C 53 1C 39 38 A6 00 00 9B [01:26:13]Write i2c OK [01:26:13]MH_I2C_Read... [01:26:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:26:14]Read from MH i2c: E2 [01:26:14]MH_I2C_Read... [01:26:14]Read from MH i2c: E2 03 00 [01:26:14]MH_I2C_Read... [01:26:14]Read from MH i2c: E2 03 00 7F 11 00 90 00 04 [01:26:14]RAPDU: 90 00 [01:26:14]wFMCommunicate OK [01:26:14]wFMCommunicate request_size=4 [01:26:14]MH_SAM_APDU [01:26:14]CAPDU: 80 0D 03 02 [01:26:14]Write to MH i2c: E2 08 00 80 11 80 0D 03 02 00 00 00 00 0C [01:26:14]Write i2c OK [01:26:14]MH_I2C_Read... [01:26:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:26:14]Read from MH i2c: E2 [01:26:14]MH_I2C_Read... [01:26:14]Read from MH i2c: E2 0B 00 [01:26:14]MH_I2C_Read... [01:26:14]Read from MH i2c: E2 0B 00 80 11 00 35 A8 47 4A 7E 34 5B 9F 90 00 27 [01:26:14]RAPDU: 35 A8 47 4A 7E 34 5B 9F 90 00 [01:26:14]wFMCommunicate OK [01:26:14]SAM_PROTO_SignData done [01:26:14]FM_MakeSignedData done [01:26:14]CreateOFDProtocolMessage [01:26:14]wFMCommunicate request_size=4 [01:26:14]MH_SAM_APDU [01:26:14]CAPDU: 80 11 00 00 [01:26:14]Write to MH i2c: E2 08 00 81 11 80 11 00 00 00 00 00 00 0C [01:26:14]Write i2c OK [01:26:14]MH_I2C_Read... [01:26:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:26:14]Read from MH i2c: E2 [01:26:14]MH_I2C_Read... [01:26:14]Read from MH i2c: E2 17 00 [01:26:14]MH_I2C_Read... [01:26:14]Read from MH i2c: E2 17 00 81 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 63 [01:26:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [01:26:14]wFMCommunicate OK [01:26:14]CreateOFDProtocolMessage done [01:26:14]OFDSenderStorePacket 228480 [01:26:14]StoreOFDPacket docnum=228480 [01:26:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 DF B1 00 01 14 BC 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 10 00 00 00 F4 03 04 00 B6 50 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 80 7C 03 00 35 04 06 00 5C 53 1C 39 38 A6 35 A8 47 4A 7E 34 5B 9F [01:26:14]CheckFolder [01:26:14]dirname=/storage/ofd_packets [01:26:14]CheckFolder done [01:26:14]ProducePacketName [01:26:14]name=ofd_packets/00228480 [01:26:14]NVStorageSaveData ofd_packets/00228480 [01:26:14]File name is /storage/ofd_packets/00228480 [01:26:14]Write 294 bytes [01:26:14]NVStorageSaveData done [01:26:14]OFDSenderStorePacket done [01:26:14]KKMCreateOFDPacket done [01:26:14]NVStorageSaveData kkm_last_timestamp [01:26:14]File name is /storage/kkm_last_timestamp [01:26:14]Write 4 bytes [01:26:14]NVStorageSaveData done [01:26:14]ExternCall_PrintAddStr [01:26:14]wPrintStart [01:26:14]Write to MH i2c: 01 00 00 82 11 93 [01:26:14]Write i2c OK [01:26:14]MH_I2C_Read... [01:26:14]Read from MH i2c: 01 [01:26:14]MH_I2C_Read... [01:26:14]Read from MH i2c: 01 07 00 [01:26:14]MH_I2C_Read... [01:26:14]Read from MH i2c: 01 07 00 82 11 00 00 00 00 00 FF 0F A8 [01:26:14]RasterBufferAndPrint [01:26:14]line Счет N : (1)1965149 [01:26:14]line ИНН: 02508201610067 [01:26:14]line Контрольно-Кассовый Чек [01:26:14]line ПРОДАЖА [01:26:14]line ТРК (МРК, ГНК) : 62 [01:26:14]line Товар: 2710124130 [01:26:14]line SU-92 [01:26:14]line 10.240 * 68.40 [01:26:14]line = 700.42 [01:26:14]line НДС 12% НСП 1% [01:26:14]line > о реализуемом товаре [01:26:14]line ОКРУГЛЕНИЕ: -0.42 [01:26:14]line ИТОГО: 700.00 [01:26:14]line Внесено: 700.00 [01:26:14]line СДАЧА: 0.00 [01:26:14]line НСП 1% : 6.20 [01:26:14]line НДС 12% : 74.38 [01:26:14]line Наличными: 700.00 [01:26:14]line Безнал.: 0.00 [01:26:14]line Место: АЗС № 133 "Партнер Нефть" [01:26:14]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [01:26:14]line СНО: Общий режим [01:26:14]line Чек 16 23.10.2024 01:26 [01:26:14]line Смена: 536 ФФД: 1.0 [01:26:14]line ЗНМ: 0300000091 [01:26:14]line РНМ: 0000000000091685 [01:26:14]line Версия ККМ: 001 [01:26:14]line ФМ: 0000000000871839 [01:26:14]line ФД: 228480 [01:26:14]line ФПД: 101512025553062 [01:26:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T012614&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228480&fm=101512025553062&tin=02508201610067®Number=0000000000091685&sum=70000 [01:26:14]OFD Sender: Processing packet 228480 [packets to send 38, broken 37] [01:26:14]ProducePacketName [01:26:14]name=ofd_packets/00228480 [01:26:14]OFD Sender: To server: pG, [01:26:14]CommunicateWithHost lk.salyk.kg:30040 [01:26:14]ConnectInit lk.salyk.kg [01:26:14]written 0, free lines is 4095 [01:26:14]Connected sock=10 [01:26:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 DF B1 00 01 14 BC 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 10 00 00 00 F4 03 04 00 B6 50 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 80 7C 03 00 35 04 06 00 5C 53 1C 39 38 A6 35 A8 47 4A 7E 34 5B 9F [01:26:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 90 14 47 00 F8 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 80 7C 03 00 F4 03 04 00 AC FB 17 67 B6 04 01 00 00 D8 F5 EC B7 B6 57 6B D6 [01:26:14]CommunicateWithHost err = 0 [01:26:14]CheckOFDResponse [01:26:14]1017 (14) - 77093643461234 [01:26:14]1041 (16) - 0000000000871839 [01:26:14]1040 (4) - 228480 [01:26:14]1012 (4) - 22.10.2024 19:23 [01:26:14]1206 (1) - 0 [01:26:14]OFD Sender: Remove packet 228480 [01:26:14]ProducePacketName [01:26:14]name=ofd_packets/00228480 [01:26:14]NVStorageDeleteData [01:26:15]Write to MH i2c: 01 00 00 AC 11 BD [01:26:15]Write i2c OK [01:26:15]MH_I2C_Read... [01:26:15]Read from MH i2c: 01 [01:26:15]MH_I2C_Read... [01:26:15]Read from MH i2c: 01 07 00 [01:26:15]MH_I2C_Read... [01:26:15]Read from MH i2c: 01 07 00 AC 11 00 00 00 00 00 9D 0C 6D [01:26:15]RasterBufferAndPrint [01:26:15]line [01:26:15]line [01:26:15]line [01:26:15]line [01:26:15]line [01:26:15]written 0, free lines is 3233 [01:26:15]MH_Cut [01:26:15]Write to MH i2c: D1 01 00 B3 11 01 96 [01:26:15]Write i2c OK [01:26:15]MH_I2C_Read... [01:26:15]Read from MH i2c: D1 [01:26:15]MH_I2C_Read... [01:26:15]Read from MH i2c: D1 01 00 [01:26:15]MH_I2C_Read... [01:26:15]Read from MH i2c: D1 01 00 B3 11 00 95 [01:26:15]Write to MH i2c: 01 00 00 B4 11 C5 [01:26:15]Write i2c OK [01:26:15]MH_I2C_Read... [01:26:15]OFD Sender: No OFD packet to send [01:26:16]*** Cut start [01:26:16]*** Partial cut [01:26:16]*** CUTSNS_PIN = 1 [01:26:16]*** CUTSNS_PIN = 0 [01:26:16]*** Brake cut motor [01:26:16]Read from MH i2c: 01 [01:26:16]MH_I2C_Read... [01:26:16]*** Stop cut motor [01:26:16]*** Cut end [01:26:16]Read from MH i2c: 01 07 00 [01:26:16]MH_I2C_Read... [01:26:16]Read from MH i2c: 01 07 00 B4 11 00 00 00 00 00 FF 0F DA [01:26:16]process_action close_receipt done [01:26:16]requested_data is exist [01:26:16]produce_requested_data [01:26:16]requested_item fm.sn is exist - process it [01:26:16]wFMCommunicate request_size=4 [01:26:16]MH_SAM_APDU [01:26:16]CAPDU: 80 11 00 00 [01:26:16]Write to MH i2c: E2 08 00 B5 11 80 11 00 00 00 00 00 00 40 [01:26:16]Write i2c OK [01:26:16]MH_I2C_Read... [01:26:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:26:16]Read from MH i2c: E2 [01:26:16]MH_I2C_Read... [01:26:16]Read from MH i2c: E2 17 00 [01:26:16]MH_I2C_Read... [01:26:16]Read from MH i2c: E2 17 00 B5 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 97 [01:26:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [01:26:16]wFMCommunicate OK [01:26:16]requested_item fd.num is exist - process it [01:26:16]SAM_PROTO_GetFieldsCounters [01:26:16]wFMCommunicate request_size=4 [01:26:16]MH_SAM_APDU [01:26:16]CAPDU: 80 13 00 00 [01:26:16]Write to MH i2c: E2 08 00 B6 11 80 13 00 00 00 00 00 00 43 [01:26:16]Write i2c OK [01:26:16]MH_I2C_Read... [01:26:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:26:16]Read from MH i2c: E2 [01:26:16]MH_I2C_Read... [01:26:16]Read from MH i2c: E2 62 00 [01:26:16]MH_I2C_Read... [01:26:16]Read from MH i2c: E2 62 00 B6 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 80 7C 03 00 0E 04 04 00 18 02 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 B5 [01:26:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 80 7C 03 00 0E 04 04 00 18 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:26:16]wFMCommunicate OK [01:26:16]SAM_PROTO_GetFieldsCounters done [01:26:16]requested_item shift.num is exist - process it [01:26:16]requested_item shift.opened is exist - process it [01:26:16]req_shift_opened [01:26:16]FM_GetShiftState [01:26:16]SAM_PROTO_GetShiftState [01:26:16]wFMCommunicate request_size=4 [01:26:16]MH_SAM_APDU [01:26:16]CAPDU: 80 13 01 00 [01:26:16]Write to MH i2c: E2 08 00 B7 11 80 13 01 00 00 00 00 00 45 [01:26:16]Write i2c OK [01:26:16]MH_I2C_Read... [01:26:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:26:16]Read from MH i2c: E2 [01:26:16]MH_I2C_Read... [01:26:16]Read from MH i2c: E2 0E 00 [01:26:16]MH_I2C_Read... [01:26:16]Read from MH i2c: E2 0E 00 B7 11 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 7F [01:26:16]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [01:26:16]wFMCommunicate OK [01:26:16]SAM_PROTO_GetShiftState done [01:26:16]FM_GetShiftState done [01:26:16]req_shift_opened done [01:26:16]requested_item shift.open_date is exist - process it [01:26:16]req_shift_open_date [01:26:16]req_shift_open_date done [01:26:16]produce_requested_data done [01:26:16]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228480,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352} [01:26:16]process_action_free close_receipt [01:26:16]json_value_free [01:26:16]json_value_free done [01:26:16]process_json_proto returns [01:26:16]Send response to host [01:26:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228480,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352}}} [01:26:16]free response buf [01:26:16]execute_script done [01:26:16]execute_script returns [01:26:16]free content buf [01:26:16]Sock 7.Close socket [01:26:16]Sock 7.Thread stoped [01:26:19]accept exits with 9 [01:26:19]New connection [01:26:19]New thread 3066977636 created [01:26:19]Thread 3066834276 joined [01:26:19]Waiting for new connection... [01:26:19] Sock 9.Parse request [01:26:19]Sock 9.Check first char [01:26:19]Sock 9.First char is OK [01:26:19]request: POST /json_proto HTTP/1.0 [01:26:19]Method: POST [01:26:19]URL: /json_proto [01:26:19]Method is POST - this is cgi request [01:26:19]url: /json_proto [01:26:19]query_string will be loaded in cgi processing [01:26:19]execute_cgi json_proto POST (null) [01:26:19]execute_cgi path=json_proto method=POST [01:26:19]POST find Content-Length [01:26:19]Host: 172.17.44.195:8080 [01:26:19]Content-Length: 678 [01:26:19]Content-Type: application/json [01:26:19] [01:26:19]POST finish read [01:26:19]Found Content-Length = 678 [01:26:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.630, "sum" : 510.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 510.00, "total" : 510.00, "payments": [ { "type": 0, "sum" : 510.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:26:19]execute_script... [01:26: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)1965150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.630, "sum" : 510.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 510.00, "total" : 510.00, "payments": [ { "type": 0, "sum" : 510.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:26:19]POST & json_proto [01:26:19]process_json_proto [01:26:19]json parsed OK: [01:26:19]protocol is kg_v1.0 [01:26:19]action value=close_receipt [01:26:19]process_action close_receipt [01:26:19]cmd_close_receipt [01:26:19]MH_GetDate [01:26:19]Write to MH i2c: F0 00 00 B8 11 B8 [01:26:19]Write i2c OK [01:26:19]MH_I2C_Read... [01:26:19]Read from MH i2c: F0 [01:26:19]MH_I2C_Read... [01:26:19]Read from MH i2c: F0 09 00 [01:26:19]MH_I2C_Read... [01:26:19]Read from MH i2c: F0 09 00 B8 11 00 BC 50 18 67 82 C9 CF 66 CC [01:26:19]GetLastDocTimeStamp 1729646774 [01:26:19]current date 1729646780 [01:26:19]FM_GetShiftState [01:26:19]SAM_PROTO_GetShiftState [01:26:19]wFMCommunicate request_size=4 [01:26:19]MH_SAM_APDU [01:26:19]CAPDU: 80 13 01 00 [01:26:19]Write to MH i2c: E2 08 00 B9 11 80 13 01 00 00 00 00 00 47 [01:26:19]Write i2c OK [01:26:19]MH_I2C_Read... [01:26:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:26:19]Read from MH i2c: E2 [01:26:19]MH_I2C_Read... [01:26:19]Read from MH i2c: E2 0E 00 [01:26:19]MH_I2C_Read... [01:26:19]Read from MH i2c: E2 0E 00 B9 11 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 81 [01:26:19]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [01:26:19]wFMCommunicate OK [01:26:19]SAM_PROTO_GetShiftState done [01:26:19]FM_GetShiftState done [01:26:19]opened in 1729642352 [01:26:19]opened+sec_in_day 1729728752 [01:26:19]quantity*price = 51044 [01:26:19]sum+1 = 51046 [01:26:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 510.00 Внесено: 510.00 СДАЧА: 0.00 НСП 1% : 4.52 НДС 12% : 54.21 Наличными: 510.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 17 23.10.2024 01:26 Смена: 536 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228481 ФПД: 263195601805817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T012620&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228481&fm=263195601805817&tin=02508201610067®Number=0000000000091685&sum=51000 [01:26:20]StoreToDocumentArchive [01:26:20]shift 536 fd 228481 [01:26:20]save to /storage/0536/doc_00228481 [01:26:20]save last doc name /storage/0536/doc_00228481 to /storage/kkm_last_doc_name [01:26:20]save OK [01:26:20]Clear old archive folders... [01:26:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:26:20]tlvbuf is 002BCDB0 [01:26:20]SAM_PROTO_ClearQueue [01:26:20]wFMCommunicate request_size=4 [01:26:20]MH_SAM_APDU [01:26:20]CAPDU: 80 09 00 00 [01:26:20]Write to MH i2c: E2 08 00 C6 11 80 09 00 00 00 00 00 00 49 [01:26:20]Write i2c OK [01:26:20]MH_I2C_Read... [01:26:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:26:20]Read from MH i2c: E2 [01:26:20]MH_I2C_Read... [01:26:20]Read from MH i2c: E2 03 00 [01:26:20]MH_I2C_Read... [01:26:20]Read from MH i2c: E2 03 00 C6 11 00 90 00 4B [01:26:20]RAPDU: 90 00 [01:26:20]wFMCommunicate OK [01:26:20]SAM_PROTO_ClearQueue done [01:26:20]KKMCreateOFDPacket [01:26:20]OFDProtocolAddRootSTLVToBuf [01:26:20]FM_MakeSignedData [01:26:20]FM_MakeSignedData [01:26:20]SAM_PROTO_SignData [01:26:20]wFMCommunicate request_size=4 [01:26:20]MH_SAM_APDU [01:26:20]CAPDU: 80 0D 01 02 [01:26:20]Write to MH i2c: E2 08 00 C7 11 80 0D 01 02 00 00 00 00 51 [01:26:20]Write i2c OK [01:26:20]MH_I2C_Read... [01:26:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:26:20]Read from MH i2c: E2 [01:26:20]MH_I2C_Read... [01:26:20]Read from MH i2c: E2 03 00 [01:26:20]MH_I2C_Read... [01:26:20]Read from MH i2c: E2 03 00 C7 11 00 90 00 4C [01:26:20]RAPDU: 90 00 [01:26:20]wFMCommunicate OK [01:26:20]wFMCommunicate request_size=255 [01:26:20]MH_SAM_APDU [01:26: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 CE 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 65 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 BC 50 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 81 7C 03 00 35 04 06 00 EF [01:26:20]Write to MH i2c: E2 02 01 C8 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 65 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 BC 50 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 81 7C 03 00 35 04 06 00 EF 00 00 60 [01:26:20]OFD Sender: No OFD packet to send [01:26:20]Write i2c OK [01:26:20]MH_I2C_Read... [01:26:20]Read from MH i2c: E2 [01:26:20]MH_I2C_Read... [01:26:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:26:20]Read from MH i2c: E2 03 00 [01:26:20]MH_I2C_Read... [01:26:20]Read from MH i2c: E2 03 00 C8 11 00 90 00 4D [01:26:20]RAPDU: 90 00 [01:26:20]wFMCommunicate OK [01:26:20]wFMCommunicate request_size=10 [01:26:20]MH_SAM_APDU [01:26:20]CAPDU: 80 0D 02 02 05 60 00 5A 21 F9 [01:26:20]Write to MH i2c: E2 0D 00 C9 11 80 0D 02 02 05 00 60 00 5A 21 F9 00 00 32 [01:26:20]Write i2c OK [01:26:20]MH_I2C_Read... [01:26:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:26:20]Read from MH i2c: E2 [01:26:20]MH_I2C_Read... [01:26:20]Read from MH i2c: E2 03 00 [01:26:20]MH_I2C_Read... [01:26:20]Read from MH i2c: E2 03 00 C9 11 00 90 00 4E [01:26:20]RAPDU: 90 00 [01:26:20]wFMCommunicate OK [01:26:20]wFMCommunicate request_size=4 [01:26:20]MH_SAM_APDU [01:26:20]CAPDU: 80 0D 03 02 [01:26:20]Write to MH i2c: E2 08 00 CA 11 80 0D 03 02 00 00 00 00 56 [01:26:20]Write i2c OK [01:26:20]MH_I2C_Read... [01:26:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:26:20]Read from MH i2c: E2 [01:26:20]MH_I2C_Read... [01:26:20]Read from MH i2c: E2 0B 00 [01:26:20]MH_I2C_Read... [01:26:20]Read from MH i2c: E2 0B 00 CA 11 00 C8 51 B1 23 76 0A E9 3A 90 00 E7 [01:26:20]RAPDU: C8 51 B1 23 76 0A E9 3A 90 00 [01:26:20]wFMCommunicate OK [01:26:20]SAM_PROTO_SignData done [01:26:20]FM_MakeSignedData done [01:26:20]CreateOFDProtocolMessage [01:26:20]wFMCommunicate request_size=4 [01:26:20]MH_SAM_APDU [01:26:20]CAPDU: 80 11 00 00 [01:26:20]Write to MH i2c: E2 08 00 CB 11 80 11 00 00 00 00 00 00 56 [01:26:20]Write i2c OK [01:26:20]MH_I2C_Read... [01:26:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:26:20]Read from MH i2c: E2 [01:26:20]MH_I2C_Read... [01:26:20]Read from MH i2c: E2 17 00 [01:26:20]MH_I2C_Read... [01:26:20]Read from MH i2c: E2 17 00 CB 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AD [01:26:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [01:26:20]wFMCommunicate OK [01:26:20]CreateOFDProtocolMessage done [01:26:20]OFDSenderStorePacket 228481 [01:26:20]StoreOFDPacket docnum=228481 [01:26:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B4 39 07 01 43 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 65 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 BC 50 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 81 7C 03 00 35 04 06 00 EF 60 00 5A 21 F9 C8 51 B1 23 76 0A E9 3A [01:26:20]CheckFolder [01:26:20]dirname=/storage/ofd_packets [01:26:20]CheckFolder done [01:26:20]ProducePacketName [01:26:20]name=ofd_packets/00228481 [01:26:20]NVStorageSaveData ofd_packets/00228481 [01:26:20]File name is /storage/ofd_packets/00228481 [01:26:21]Write 301 bytes [01:26:21]NVStorageSaveData done [01:26:21]OFDSenderStorePacket done [01:26:21]KKMCreateOFDPacket done [01:26:21]NVStorageSaveData kkm_last_timestamp [01:26:21]File name is /storage/kkm_last_timestamp [01:26:21]Write 4 bytes [01:26:21]NVStorageSaveData done [01:26:21]ExternCall_PrintAddStr [01:26:21]wPrintStart [01:26:21]Write to MH i2c: 01 00 00 CC 11 DD [01:26:21]Write i2c OK [01:26:21]MH_I2C_Read... [01:26:21]Read from MH i2c: 01 [01:26:21]MH_I2C_Read... [01:26:21]Read from MH i2c: 01 07 00 [01:26:21]MH_I2C_Read... [01:26:21]Read from MH i2c: 01 07 00 CC 11 00 00 00 00 00 FF 0F F2 [01:26:21]RasterBufferAndPrint [01:26:21]line Счет N : (1)1965150 [01:26:21]line ИНН: 02508201610067 [01:26:21]line Контрольно-Кассовый Чек [01:26:21]line ПРОДАЖА [01:26:21]line ТРК (МРК, ГНК) : 33 [01:26:21]line Товар: 2710124130 [01:26:21]line Аи-92-К-5 [01:26:21]line 7.630 * 66.90 [01:26:21]line = 510.45 [01:26:21]line НДС 12% НСП 1% [01:26:21]line > о реализуемом товаре [01:26:21]line ОКРУГЛЕНИЕ: -0.45 [01:26:21]line ИТОГО: 510.00 [01:26:21]line Внесено: 510.00 [01:26:21]line СДАЧА: 0.00 [01:26:21]line НСП 1% : 4.52 [01:26:21]line НДС 12% : 54.21 [01:26:21]line Наличными: 510.00 [01:26:21]line Безнал.: 0.00 [01:26:21]line Место: АЗС № 133 "Партнер Нефть" [01:26:21]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [01:26:21]line СНО: Общий режим [01:26:21]line Чек 17 23.10.2024 01:26 [01:26:21]line Смена: 536 ФФД: 1.0 [01:26:21]line ЗНМ: 0300000091 [01:26:21]line РНМ: 0000000000091685 [01:26:21]line Версия ККМ: 001 [01:26:21]line ФМ: 0000000000871839 [01:26:21]line ФД: 228481 [01:26:21]line ФПД: 263195601805817 [01:26:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T012620&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228481&fm=263195601805817&tin=02508201610067®Number=0000000000091685&sum=51000 [01:26:21]written 0, free lines is 4095 [01:26:21]OFD Sender: Processing packet 228481 [packets to send 38, broken 37] [01:26:21]ProducePacketName [01:26:21]name=ofd_packets/00228481 [01:26:21]OFD Sender: To server: pG, [01:26:21]CommunicateWithHost lk.salyk.kg:30040 [01:26:21]ConnectInit lk.salyk.kg [01:26:21]Connected sock=10 [01:26:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B4 39 07 01 43 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 65 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 BC 50 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 81 7C 03 00 35 04 06 00 EF 60 00 5A 21 F9 C8 51 B1 23 76 0A E9 3A [01:26:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 82 24 47 00 C1 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 81 7C 03 00 F4 03 04 00 B3 FB 17 67 B6 04 01 00 00 51 A5 65 B5 30 CC FB FA [01:26:21]CommunicateWithHost err = 0 [01:26:21]CheckOFDResponse [01:26:21]1017 (14) - 77093643461234 [01:26:21]1041 (16) - 0000000000871839 [01:26:21]1040 (4) - 228481 [01:26:21]1012 (4) - 22.10.2024 19:23 [01:26:21]1206 (1) - 0 [01:26:21]OFD Sender: Remove packet 228481 [01:26:21]ProducePacketName [01:26:21]name=ofd_packets/00228481 [01:26:21]NVStorageDeleteData [01:26:21]Write to MH i2c: 01 00 00 F6 11 07 [01:26:21]Write i2c OK [01:26:21]MH_I2C_Read... [01:26:21]Read from MH i2c: 01 [01:26:21]MH_I2C_Read... [01:26:21]Read from MH i2c: 01 07 00 [01:26:21]MH_I2C_Read... [01:26:21]Read from MH i2c: 01 07 00 F6 11 00 00 00 00 00 A6 0C C0 [01:26:21]RasterBufferAndPrint [01:26:21]line [01:26:21]line [01:26:21]line [01:26:21]line [01:26:21]line [01:26:21]written 0, free lines is 3243 [01:26:21]MH_Cut [01:26:21]Write to MH i2c: D1 01 00 FD 11 01 E0 [01:26:21]Write i2c OK [01:26:21]MH_I2C_Read... [01:26:21]Read from MH i2c: D1 [01:26:21]MH_I2C_Read... [01:26:21]Read from MH i2c: D1 01 00 [01:26:21]MH_I2C_Read... [01:26:21]Read from MH i2c: D1 01 00 FD 11 00 DF [01:26:21]Write to MH i2c: 01 00 00 FE 11 0F [01:26:21]Write i2c OK [01:26:21]MH_I2C_Read... [01:26:21]OFD Sender: No OFD packet to send [01:26:22]*** Cut start [01:26:22]*** Partial cut [01:26:22]*** CUTSNS_PIN = 1 [01:26:22]*** CUTSNS_PIN = 0 [01:26:22]*** Brake cut motor [01:26:23]Read from MH i2c: 01 [01:26:23]MH_I2C_Read... [01:26:23]*** Stop cut motor [01:26:23]*** Cut end [01:26:23]Read from MH i2c: 01 07 00 [01:26:23]MH_I2C_Read... [01:26:23]Read from MH i2c: 01 07 00 FE 11 00 00 00 00 00 FF 0F 24 [01:26:23]process_action close_receipt done [01:26:23]requested_data is exist [01:26:23]produce_requested_data [01:26:23]requested_item fm.sn is exist - process it [01:26:23]wFMCommunicate request_size=4 [01:26:23]MH_SAM_APDU [01:26:23]CAPDU: 80 11 00 00 [01:26:23]Write to MH i2c: E2 08 00 FF 11 80 11 00 00 00 00 00 00 8A [01:26:23]Write i2c OK [01:26:23]MH_I2C_Read... [01:26:23]Read from MH i2c: E2 [01:26:23]MH_I2C_Read... [01:26:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:26:23]Read from MH i2c: E2 17 00 [01:26:23]MH_I2C_Read... [01:26:23]Read from MH i2c: E2 17 00 FF 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E1 [01:26:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [01:26:23]wFMCommunicate OK [01:26:23]requested_item fd.num is exist - process it [01:26:23]SAM_PROTO_GetFieldsCounters [01:26:23]wFMCommunicate request_size=4 [01:26:23]MH_SAM_APDU [01:26:23]CAPDU: 80 13 00 00 [01:26:23]Write to MH i2c: E2 08 00 00 12 80 13 00 00 00 00 00 00 8E [01:26:23]Write i2c OK [01:26:23]MH_I2C_Read... [01:26:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:26:23]Read from MH i2c: E2 [01:26:23]MH_I2C_Read... [01:26:23]Read from MH i2c: E2 62 00 [01:26:23]MH_I2C_Read... [01:26:23]Read from MH i2c: E2 62 00 00 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 81 7C 03 00 0E 04 04 00 18 02 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 [01:26:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 81 7C 03 00 0E 04 04 00 18 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:26:23]wFMCommunicate OK [01:26:23]SAM_PROTO_GetFieldsCounters done [01:26:23]requested_item shift.num is exist - process it [01:26:23]requested_item shift.opened is exist - process it [01:26:23]req_shift_opened [01:26:23]FM_GetShiftState [01:26:23]SAM_PROTO_GetShiftState [01:26:23]wFMCommunicate request_size=4 [01:26:23]MH_SAM_APDU [01:26:23]CAPDU: 80 13 01 00 [01:26:23]Write to MH i2c: E2 08 00 01 12 80 13 01 00 00 00 00 00 90 [01:26:23]Write i2c OK [01:26:23]MH_I2C_Read... [01:26:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:26:23]Read from MH i2c: E2 [01:26:23]MH_I2C_Read... [01:26:23]Read from MH i2c: E2 0E 00 [01:26:23]MH_I2C_Read... [01:26:23]Read from MH i2c: E2 0E 00 01 12 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 CA [01:26:23]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [01:26:23]wFMCommunicate OK [01:26:23]SAM_PROTO_GetShiftState done [01:26:23]FM_GetShiftState done [01:26:23]req_shift_opened done [01:26:23]requested_item shift.open_date is exist - process it [01:26:23]req_shift_open_date [01:26:23]req_shift_open_date done [01:26:23]produce_requested_data done [01:26:23]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228481,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352} [01:26:23]process_action_free close_receipt [01:26:23]json_value_free [01:26:23]json_value_free done [01:26:23]process_json_proto returns [01:26:23]Send response to host [01:26:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228481,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352}}} [01:26:23]free response buf [01:26:23]execute_script done [01:26:23]execute_script returns [01:26:23]free content buf [01:26:23]Sock 9.Close socket [01:26:23]Sock 9.Thread stoped [01:26:26]OFD Sender: No OFD packet to send [01:26:31]OFD Sender: No OFD packet to send [01:26:36]OFD Sender: No OFD packet to send [01:26:41]OFD Sender: No OFD packet to send [01:26:46]OFD Sender: No OFD packet to send [01:26:51]OFD Sender: No OFD packet to send [01:26:56]OFD Sender: No OFD packet to send [01:27:01]OFD Sender: No OFD packet to send [01:27:06]OFD Sender: No OFD packet to send [01:27:11]OFD Sender: No OFD packet to send [01:27:16]OFD Sender: No OFD packet to send [01:27:21]OFD Sender: No OFD packet to send [01:27:26]OFD Sender: No OFD packet to send [01:27:31]OFD Sender: No OFD packet to send [01:27:36]OFD Sender: No OFD packet to send [01:27:41]OFD Sender: No OFD packet to send [01:27:46]OFD Sender: No OFD packet to send [01:27:51]OFD Sender: No OFD packet to send [01:27:56]OFD Sender: No OFD packet to send [01:28:01]OFD Sender: No OFD packet to send [01:28:06]OFD Sender: No OFD packet to send [01:28:11]OFD Sender: No OFD packet to send [01:28:16]OFD Sender: No OFD packet to send [01:28:22]OFD Sender: No OFD packet to send [01:28:27]OFD Sender: No OFD packet to send [01:28:32]OFD Sender: No OFD packet to send [01:28:37]OFD Sender: No OFD packet to send [01:28:42]OFD Sender: No OFD packet to send [01:28:47]OFD Sender: No OFD packet to send [01:28:52]OFD Sender: No OFD packet to send [01:28:57]OFD Sender: No OFD packet to send [01:29:02]OFD Sender: No OFD packet to send [01:29:07]OFD Sender: No OFD packet to send [01:29:12]OFD Sender: No OFD packet to send [01:29:17]OFD Sender: No OFD packet to send [01:29:22]OFD Sender: No OFD packet to send [01:29:27]OFD Sender: No OFD packet to send [01:29:32]OFD Sender: No OFD packet to send [01:29:37]OFD Sender: No OFD packet to send [01:29:42]OFD Sender: No OFD packet to send [01:29:47]OFD Sender: No OFD packet to send [01:29:52]OFD Sender: No OFD packet to send [01:29:57]OFD Sender: No OFD packet to send [01:30:02]OFD Sender: No OFD packet to send [01:30:07]OFD Sender: No OFD packet to send [01:30:12]OFD Sender: No OFD packet to send [01:30:17]OFD Sender: No OFD packet to send [01:30:22]OFD Sender: No OFD packet to send [01:30:27]OFD Sender: No OFD packet to send [01:30:32]OFD Sender: No OFD packet to send [01:30:37]OFD Sender: No OFD packet to send [01:30:42]OFD Sender: No OFD packet to send [01:30:47]OFD Sender: No OFD packet to send [01:30:52]OFD Sender: No OFD packet to send [01:30:57]OFD Sender: No OFD packet to send [01:31:02]OFD Sender: No OFD packet to send [01:31:07]OFD Sender: No OFD packet to send [01:31:12]OFD Sender: No OFD packet to send [01:31:17]OFD Sender: No OFD packet to send [01:31:22]OFD Sender: No OFD packet to send [01:31:27]OFD Sender: No OFD packet to send [01:31:32]OFD Sender: No OFD packet to send [01:31:37]OFD Sender: No OFD packet to send [01:31:42]OFD Sender: No OFD packet to send [01:31:47]OFD Sender: No OFD packet to send [01:31:52]OFD Sender: No OFD packet to send [01:31:57]OFD Sender: No OFD packet to send [01:32:02]OFD Sender: No OFD packet to send [01:32:07]OFD Sender: No OFD packet to send [01:32:12]OFD Sender: No OFD packet to send [01:32:17]OFD Sender: No OFD packet to send [01:32:22]OFD Sender: No OFD packet to send [01:32:27]OFD Sender: No OFD packet to send [01:32:32]OFD Sender: No OFD packet to send [01:32:37]OFD Sender: No OFD packet to send [01:32:42]OFD Sender: No OFD packet to send [01:32:47]OFD Sender: No OFD packet to send [01:32:52]OFD Sender: No OFD packet to send [01:32:57]OFD Sender: No OFD packet to send [01:33:02]OFD Sender: No OFD packet to send [01:33:07]OFD Sender: No OFD packet to send [01:33:12]OFD Sender: No OFD packet to send [01:33:17]OFD Sender: No OFD packet to send [01:33:22]OFD Sender: No OFD packet to send [01:33:27]OFD Sender: No OFD packet to send [01:33:32]OFD Sender: No OFD packet to send [01:33:37]OFD Sender: No OFD packet to send [01:33:42]OFD Sender: No OFD packet to send [01:33:47]OFD Sender: No OFD packet to send [01:33:52]OFD Sender: No OFD packet to send [01:33:57]OFD Sender: No OFD packet to send [01:34:02]OFD Sender: No OFD packet to send [01:34:07]OFD Sender: No OFD packet to send [01:34:12]OFD Sender: No OFD packet to send [01:34:17]OFD Sender: No OFD packet to send [01:34:22]OFD Sender: No OFD packet to send [01:34:27]OFD Sender: No OFD packet to send [01:34:32]OFD Sender: No OFD packet to send [01:34:37]OFD Sender: No OFD packet to send [01:34:42]OFD Sender: No OFD packet to send [01:34:47]OFD Sender: No OFD packet to send [01:34:52]OFD Sender: No OFD packet to send [01:34:57]OFD Sender: No OFD packet to send [01:35:02]OFD Sender: No OFD packet to send [01:35:07]OFD Sender: No OFD packet to send [01:35:12]OFD Sender: No OFD packet to send [01:35:17]OFD Sender: No OFD packet to send [01:35:22]OFD Sender: No OFD packet to send [01:35:27]OFD Sender: No OFD packet to send [01:35:32]OFD Sender: No OFD packet to send [01:35:37]OFD Sender: No OFD packet to send [01:35:42]OFD Sender: No OFD packet to send [01:35:47]OFD Sender: No OFD packet to send [01:35:52]OFD Sender: No OFD packet to send [01:35:57]OFD Sender: No OFD packet to send [01:36:02]OFD Sender: No OFD packet to send [01:36:07]OFD Sender: No OFD packet to send [01:36:12]OFD Sender: No OFD packet to send [01:36:17]OFD Sender: No OFD packet to send [01:36:22]OFD Sender: No OFD packet to send [01:36:27]OFD Sender: No OFD packet to send [01:36:32]OFD Sender: No OFD packet to send [01:36:37]OFD Sender: No OFD packet to send [01:36:42]OFD Sender: No OFD packet to send [01:36:47]OFD Sender: No OFD packet to send [01:36:52]OFD Sender: No OFD packet to send [01:36:57]OFD Sender: No OFD packet to send [01:37:02]OFD Sender: No OFD packet to send [01:37:07]OFD Sender: No OFD packet to send [01:37:12]OFD Sender: No OFD packet to send [01:37:17]OFD Sender: No OFD packet to send [01:37:22]OFD Sender: No OFD packet to send [01:37:27]OFD Sender: No OFD packet to send [01:37:32]OFD Sender: No OFD packet to send [01:37:37]OFD Sender: No OFD packet to send [01:37:42]OFD Sender: No OFD packet to send [01:37:47]OFD Sender: No OFD packet to send [01:37:52]OFD Sender: No OFD packet to send [01:37:57]OFD Sender: No OFD packet to send [01:38:02]OFD Sender: No OFD packet to send [01:38:07]OFD Sender: No OFD packet to send [01:38:12]OFD Sender: No OFD packet to send [01:38:17]OFD Sender: No OFD packet to send [01:38:22]OFD Sender: No OFD packet to send [01:38:27]OFD Sender: No OFD packet to send [01:38:32]OFD Sender: No OFD packet to send [01:38:37]OFD Sender: No OFD packet to send [01:38:42]OFD Sender: No OFD packet to send [01:38:47]OFD Sender: No OFD packet to send [01:38:52]OFD Sender: No OFD packet to send [01:38:57]OFD Sender: No OFD packet to send [01:39:02]OFD Sender: No OFD packet to send [01:39:07]OFD Sender: No OFD packet to send [01:39:12]OFD Sender: No OFD packet to send [01:39:17]OFD Sender: No OFD packet to send [01:39:22]OFD Sender: No OFD packet to send [01:39:27]OFD Sender: No OFD packet to send [01:39:32]OFD Sender: No OFD packet to send [01:39:37]OFD Sender: No OFD packet to send [01:39:42]OFD Sender: No OFD packet to send [01:39:47]OFD Sender: No OFD packet to send [01:39:52]OFD Sender: No OFD packet to send [01:39:57]OFD Sender: No OFD packet to send [01:40:02]OFD Sender: No OFD packet to send [01:40:07]OFD Sender: No OFD packet to send [01:40:12]OFD Sender: No OFD packet to send [01:40:17]OFD Sender: No OFD packet to send [01:40:22]OFD Sender: No OFD packet to send [01:40:27]OFD Sender: No OFD packet to send [01:40:32]OFD Sender: No OFD packet to send [01:40:37]OFD Sender: No OFD packet to send [01:40:42]OFD Sender: No OFD packet to send [01:40:47]OFD Sender: No OFD packet to send [01:40:52]OFD Sender: No OFD packet to send [01:40:57]OFD Sender: No OFD packet to send [01:41:02]OFD Sender: No OFD packet to send [01:41:07]OFD Sender: No OFD packet to send [01:41:12]OFD Sender: No OFD packet to send [01:41:17]OFD Sender: No OFD packet to send [01:41:22]OFD Sender: No OFD packet to send [01:41:27]OFD Sender: No OFD packet to send [01:41:32]OFD Sender: No OFD packet to send [01:41:37]OFD Sender: No OFD packet to send [01:41:42]OFD Sender: No OFD packet to send [01:41:47]OFD Sender: No OFD packet to send [01:41:52]OFD Sender: No OFD packet to send [01:41:57]OFD Sender: No OFD packet to send [01:42:02]OFD Sender: No OFD packet to send [01:42:07]OFD Sender: No OFD packet to send [01:42:12]OFD Sender: No OFD packet to send [01:42:17]OFD Sender: No OFD packet to send [01:42:22]OFD Sender: No OFD packet to send [01:42:27]OFD Sender: No OFD packet to send [01:42:32]OFD Sender: No OFD packet to send [01:42:37]OFD Sender: No OFD packet to send [01:42:42]OFD Sender: No OFD packet to send [01:42:47]OFD Sender: No OFD packet to send [01:42:52]OFD Sender: No OFD packet to send [01:42:57]OFD Sender: No OFD packet to send [01:43:02]OFD Sender: No OFD packet to send [01:43:07]OFD Sender: No OFD packet to send [01:43:12]OFD Sender: No OFD packet to send [01:43:17]OFD Sender: No OFD packet to send [01:43:22]OFD Sender: No OFD packet to send [01:43:27]OFD Sender: No OFD packet to send [01:43:32]OFD Sender: No OFD packet to send [01:43:37]OFD Sender: No OFD packet to send [01:43:42]OFD Sender: No OFD packet to send [01:43:47]OFD Sender: No OFD packet to send [01:43:52]OFD Sender: No OFD packet to send [01:43:57]OFD Sender: No OFD packet to send [01:44:02]OFD Sender: No OFD packet to send [01:44:07]OFD Sender: No OFD packet to send [01:44:12]OFD Sender: No OFD packet to send [01:44:17]OFD Sender: No OFD packet to send [01:44:22]OFD Sender: No OFD packet to send [01:44:27]OFD Sender: No OFD packet to send [01:44:32]OFD Sender: No OFD packet to send [01:44:37]OFD Sender: No OFD packet to send [01:44:42]OFD Sender: No OFD packet to send [01:44:47]OFD Sender: No OFD packet to send [01:44:52]OFD Sender: No OFD packet to send [01:44:57]OFD Sender: No OFD packet to send [01:45:02]OFD Sender: No OFD packet to send [01:45:07]OFD Sender: No OFD packet to send [01:45:12]OFD Sender: No OFD packet to send [01:45:17]OFD Sender: No OFD packet to send [01:45:22]OFD Sender: No OFD packet to send [01:45:27]OFD Sender: No OFD packet to send [01:45:32]OFD Sender: No OFD packet to send [01:45:37]OFD Sender: No OFD packet to send [01:45:42]OFD Sender: No OFD packet to send [01:45:47]OFD Sender: No OFD packet to send [01:45:52]OFD Sender: No OFD packet to send [01:45:57]OFD Sender: No OFD packet to send [01:46:02]OFD Sender: No OFD packet to send [01:46:07]OFD Sender: No OFD packet to send [01:46:12]OFD Sender: No OFD packet to send [01:46:17]OFD Sender: No OFD packet to send [01:46:22]OFD Sender: No OFD packet to send [01:46:27]OFD Sender: No OFD packet to send [01:46:32]OFD Sender: No OFD packet to send [01:46:37]OFD Sender: No OFD packet to send [01:46:42]OFD Sender: No OFD packet to send [01:46:47]OFD Sender: No OFD packet to send [01:46:52]OFD Sender: No OFD packet to send [01:46:57]OFD Sender: No OFD packet to send [01:47:02]OFD Sender: No OFD packet to send [01:47:07]OFD Sender: No OFD packet to send [01:47:12]OFD Sender: No OFD packet to send [01:47:17]OFD Sender: No OFD packet to send [01:47:23]OFD Sender: No OFD packet to send [01:47:28]OFD Sender: No OFD packet to send [01:47:32]accept exits with 7 [01:47:32]New connection [01:47:32]New thread 3066834276 created [01:47:32]Thread 3066977636 joined [01:47:32]Waiting for new connection... [01:47:32] Sock 7.Parse request [01:47:32]Sock 7.Check first char [01:47:32]Sock 7.First char is OK [01:47:32]request: POST /json_proto HTTP/1.0 [01:47:32]Method: POST [01:47:32]URL: /json_proto [01:47:32]Method is POST - this is cgi request [01:47:32]url: /json_proto [01:47:32]query_string will be loaded in cgi processing [01:47:32]execute_cgi json_proto POST (null) [01:47:32]execute_cgi path=json_proto method=POST [01:47:32]POST find Content-Length [01:47:32]Host: 172.17.44.195:8080 [01:47:32]Content-Length: 673 [01:47:32]Content-Type: application/json [01:47:32] [01:47:32]POST finish read [01:47:32]Found Content-Length = 673 [01:47:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 12.860, "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" ] } } [01:47:32]execute_script... [01: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)1965151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 12.860, "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" ] } } [01:47:32]POST & json_proto [01:47:32]process_json_proto [01:47:32]json parsed OK: [01:47:32]protocol is kg_v1.0 [01:47:32]action value=close_receipt [01:47:32]process_action close_receipt [01:47:32]cmd_close_receipt [01:47:32]MH_GetDate [01:47:32]Write to MH i2c: F0 00 00 02 12 03 [01:47:32]Write i2c OK [01:47:32]MH_I2C_Read... [01:47:32]Read from MH i2c: F0 [01:47:32]MH_I2C_Read... [01:47:32]Read from MH i2c: F0 09 00 [01:47:32]MH_I2C_Read... [01:47:32]Read from MH i2c: F0 09 00 02 12 00 B5 55 18 67 82 C9 CF 66 15 [01:47:32]GetLastDocTimeStamp 1729646780 [01:47:32]current date 1729648053 [01:47:32]FM_GetShiftState [01:47:32]SAM_PROTO_GetShiftState [01:47:32]wFMCommunicate request_size=4 [01:47:32]MH_SAM_APDU [01:47:32]CAPDU: 80 13 01 00 [01:47:32]Write to MH i2c: E2 08 00 03 12 80 13 01 00 00 00 00 00 92 [01:47:32]Write i2c OK [01:47:32]MH_I2C_Read... [01:47:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:47:32]Read from MH i2c: E2 [01:47:32]MH_I2C_Read... [01:47:32]Read from MH i2c: E2 0E 00 [01:47:32]MH_I2C_Read... [01:47:32]Read from MH i2c: E2 0E 00 03 12 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 CC [01:47:32]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [01:47:32]wFMCommunicate OK [01:47:32]SAM_PROTO_GetShiftState done [01:47:32]FM_GetShiftState done [01:47:32]opened in 1729642352 [01:47:32]opened+sec_in_day 1729728752 [01:47:32]quantity*price = 50025 [01:47:32]sum+1 = 50026 [01:47:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 18 23.10.2024 01:47 Смена: 536 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228482 ФПД: 11674800414618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T014733&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228482&fm=11674800414618&tin=02508201610067®Number=0000000000091685&sum=50000 [01:47:33]StoreToDocumentArchive [01:47:33]shift 536 fd 228482 [01:47:33]save to /storage/0536/doc_00228482 [01:47:33]save last doc name /storage/0536/doc_00228482 to /storage/kkm_last_doc_name [01:47:33]save OK [01:47:33]Clear old archive folders... [01:47:33]ProcessDocumentItem done err = 0, tmpTLVsize=245 [01:47:33]tlvbuf is 002869F0 [01:47:33]SAM_PROTO_ClearQueue [01:47:33]wFMCommunicate request_size=4 [01:47:33]MH_SAM_APDU [01:47:33]CAPDU: 80 09 00 00 [01:47:33]Write to MH i2c: E2 08 00 10 12 80 09 00 00 00 00 00 00 94 [01:47:33]Write i2c OK [01:47:33]MH_I2C_Read... [01:47:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:47:33]Read from MH i2c: E2 [01:47:33]MH_I2C_Read... [01:47:33]Read from MH i2c: E2 03 00 [01:47:33]MH_I2C_Read... [01:47:33]Read from MH i2c: E2 03 00 10 12 00 90 00 96 [01:47:33]RAPDU: 90 00 [01:47:33]wFMCommunicate OK [01:47:33]SAM_PROTO_ClearQueue done [01:47:33]KKMCreateOFDPacket [01:47:33]OFDProtocolAddRootSTLVToBuf [01:47:33]FM_MakeSignedData [01:47:33]FM_MakeSignedData [01:47:33]SAM_PROTO_SignData [01:47:33]wFMCommunicate request_size=4 [01:47:33]MH_SAM_APDU [01:47:33]CAPDU: 80 0D 01 02 [01:47:33]Write to MH i2c: E2 08 00 11 12 80 0D 01 02 00 00 00 00 9C [01:47:33]Write i2c OK [01:47:33]MH_I2C_Read... [01:47:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:47:33]Read from MH i2c: E2 [01:47:33]MH_I2C_Read... [01:47:33]Read from MH i2c: E2 03 00 [01:47:33]MH_I2C_Read... [01:47:33]Read from MH i2c: E2 03 00 11 12 00 90 00 97 [01:47:33]RAPDU: 90 00 [01:47:33]wFMCommunicate OK [01:47:33]wFMCommunicate request_size=254 [01:47:33]MH_SAM_APDU [01:47:33]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 B5 55 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 82 7C 03 00 35 04 06 00 0A 9E 40 54 DF 9A [01:47:33]Write to MH i2c: E2 01 01 12 12 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 B5 55 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 82 7C 03 00 35 04 06 00 0A 9E 40 54 DF 9A 00 00 50 [01:47:33]Write i2c OK [01:47:33]MH_I2C_Read... [01:47:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:47:33]Read from MH i2c: E2 [01:47:33]MH_I2C_Read... [01:47:33]Read from MH i2c: E2 03 00 [01:47:33]MH_I2C_Read... [01:47:33]Read from MH i2c: E2 03 00 12 12 00 90 00 98 [01:47:33]RAPDU: 90 00 [01:47:33]wFMCommunicate OK [01:47:33]wFMCommunicate request_size=4 [01:47:33]MH_SAM_APDU [01:47:33]CAPDU: 80 0D 03 02 [01:47:33]Write to MH i2c: E2 08 00 13 12 80 0D 03 02 00 00 00 00 A0 [01:47:33]Write i2c OK [01:47:33]MH_I2C_Read... [01:47:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:47:33]Read from MH i2c: E2 [01:47:33]MH_I2C_Read... [01:47:33]Read from MH i2c: E2 0B 00 [01:47:33]MH_I2C_Read... [01:47:33]Read from MH i2c: E2 0B 00 13 12 00 13 4F B3 F7 27 AB DB 7C 90 00 D6 [01:47:33]RAPDU: 13 4F B3 F7 27 AB DB 7C 90 00 [01:47:33]wFMCommunicate OK [01:47:33]SAM_PROTO_SignData done [01:47:33]FM_MakeSignedData done [01:47:33]CreateOFDProtocolMessage [01:47:33]wFMCommunicate request_size=4 [01:47:33]MH_SAM_APDU [01:47:33]CAPDU: 80 11 00 00 [01:47:33]Write to MH i2c: E2 08 00 14 12 80 11 00 00 00 00 00 00 A0 [01:47:33]Write i2c OK [01:47:33]MH_I2C_Read... [01:47:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:47:33]Read from MH i2c: E2 [01:47:33]MH_I2C_Read... [01:47:33]Read from MH i2c: E2 17 00 [01:47:33]MH_I2C_Read... [01:47:33]Read from MH i2c: E2 17 00 14 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F7 [01:47:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [01:47:33]wFMCommunicate OK [01:47:33]CreateOFDProtocolMessage done [01:47:33]OFDSenderStorePacket 228482 [01:47:33]StoreOFDPacket docnum=228482 [01:47:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 75 8C 01 01 EA 31 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 B5 55 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 82 7C 03 00 35 04 06 00 0A 9E 40 54 DF 9A 13 4F B3 F7 27 AB DB 7C [01:47:33]CheckFolder [01:47:33]dirname=/storage/ofd_packets [01:47:33]CheckFolder done [01:47:33]ProducePacketName [01:47:33]name=ofd_packets/00228482 [01:47:33]NVStorageSaveData ofd_packets/00228482 [01:47:33]File name is /storage/ofd_packets/00228482 [01:47:33]Write 295 bytes [01:47:33]NVStorageSaveData done [01:47:33]OFDSenderStorePacket done [01:47:33]KKMCreateOFDPacket done [01:47:33]NVStorageSaveData kkm_last_timestamp [01:47:33]File name is /storage/kkm_last_timestamp [01:47:33]Write 4 bytes [01:47:33]NVStorageSaveData done [01:47:33]ExternCall_PrintAddStr [01:47:33]wPrintStart [01:47:33]Write to MH i2c: 01 00 00 15 12 27 [01:47:33]Write i2c OK [01:47:33]MH_I2C_Read... [01:47:33]Read from MH i2c: 01 [01:47:33]MH_I2C_Read... [01:47:33]Read from MH i2c: 01 07 00 [01:47:33]MH_I2C_Read... [01:47:33]Read from MH i2c: 01 07 00 15 12 00 00 00 00 00 FF 0F 3C [01:47:33]RasterBufferAndPrint [01:47:33]line Счет N : (1)1965151 [01:47:33]line ИНН: 02508201610067 [01:47:33]line Контрольно-Кассовый Чек [01:47:33]line ПРОДАЖА [01:47:33]line ТРК (МРК, ГНК) : 71 [01:47:33]line Товар: 2711129700 [01:47:33]line ГАЗ [01:47:33]line 12.860 * 38.90 [01:47:33]line = 500.25 [01:47:33]line НДС 12% НСП 1% [01:47:33]line > о реализуемом товаре [01:47:33]line ОКРУГЛЕНИЕ: -0.25 [01:47:33]line ИТОГО: 500.00 [01:47:33]line Внесено: 500.00 [01:47:33]line СДАЧА: 0.00 [01:47:33]line НСП 1% : 4.43 [01:47:33]line НДС 12% : 53.12 [01:47:33]line Наличными: 500.00 [01:47:33]line Безнал.: 0.00 [01:47:33]line Место: АЗС № 133 "Партнер Нефть" [01:47:33]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [01:47:33]line СНО: Общий режим [01:47:33]line Чек 18 23.10.2024 01:47 [01:47:33]line Смена: 536 ФФД: 1.0 [01:47:33]line ЗНМ: 0300000091 [01:47:33]line РНМ: 0000000000091685 [01:47:33]line Версия ККМ: 001 [01:47:33]line ФМ: 0000000000871839 [01:47:33]line ФД: 228482 [01:47:33]line ФПД: 11674800414618 [01:47:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T014733&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228482&fm=11674800414618&tin=02508201610067®Number=0000000000091685&sum=50000 [01:47:34]OFD Sender: Processing packet 228482 [packets to send 38, broken 37] [01:47:34]ProducePacketName [01:47:34]name=ofd_packets/00228482 [01:47:34]OFD Sender: To server: pG, [01:47:34]CommunicateWithHost lk.salyk.kg:30040 [01:47:34]ConnectInit lk.salyk.kg [01:47:34]written 0, free lines is 4095 [01:47:34]Connected sock=10 [01:47:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 09 01 00 00 75 8C 01 01 EA 31 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 B5 55 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 82 7C 03 00 35 04 06 00 0A 9E 40 54 DF 9A 13 4F B3 F7 27 AB DB 7C [01:47:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 4C 85 47 00 F4 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 82 7C 03 00 F4 03 04 00 AC 00 18 67 B6 04 01 00 00 24 99 C4 2B 51 18 05 D1 [01:47:34]CommunicateWithHost err = 0 [01:47:34]CheckOFDResponse [01:47:34]1017 (14) - 77093643461234 [01:47:34]1041 (16) - 0000000000871839 [01:47:34]1040 (4) - 228482 [01:47:34]1012 (4) - 22.10.2024 19:44 [01:47:34]1206 (1) - 0 [01:47:34]OFD Sender: Remove packet 228482 [01:47:34]ProducePacketName [01:47:34]name=ofd_packets/00228482 [01:47:34]NVStorageDeleteData [01:47:34]Write to MH i2c: 01 00 00 3F 12 51 [01:47:34]Write i2c OK [01:47:34]MH_I2C_Read... [01:47:34]Read from MH i2c: 01 [01:47:34]MH_I2C_Read... [01:47:34]Read from MH i2c: 01 07 00 [01:47:34]MH_I2C_Read... [01:47:34]Read from MH i2c: 01 07 00 3F 12 00 00 00 00 00 91 0C F5 [01:47:34]RasterBufferAndPrint [01:47:34]line [01:47:34]line [01:47:34]line [01:47:34]line [01:47:34]line [01:47:34]written 0, free lines is 3221 [01:47:34]MH_Cut [01:47:34]Write to MH i2c: D1 01 00 46 12 01 2A [01:47:34]Write i2c OK [01:47:34]MH_I2C_Read... [01:47:34]Read from MH i2c: D1 [01:47:34]MH_I2C_Read... [01:47:34]Read from MH i2c: D1 01 00 [01:47:34]MH_I2C_Read... [01:47:34]Read from MH i2c: D1 01 00 46 12 00 29 [01:47:34]Write to MH i2c: 01 00 00 47 12 59 [01:47:34]Write i2c OK [01:47:34]MH_I2C_Read... [01:47:35]OFD Sender: No OFD packet to send [01:47:35]*** Cut start [01:47:35]*** Partial cut [01:47:35]*** CUTSNS_PIN = 1 [01:47:35]*** CUTSNS_PIN = 0 [01:47:36]*** Brake cut motor [01:47:36]Read from MH i2c: 01 [01:47:36]MH_I2C_Read... [01:47:36]*** Stop cut motor [01:47:36]*** Cut end [01:47:36]Read from MH i2c: 01 07 00 [01:47:36]MH_I2C_Read... [01:47:36]Read from MH i2c: 01 07 00 47 12 00 00 00 00 00 FF 0F 6E [01:47:36]process_action close_receipt done [01:47:36]requested_data is exist [01:47:36]produce_requested_data [01:47:36]requested_item fm.sn is exist - process it [01:47:36]wFMCommunicate request_size=4 [01:47:36]MH_SAM_APDU [01:47:36]CAPDU: 80 11 00 00 [01:47:36]Write to MH i2c: E2 08 00 48 12 80 11 00 00 00 00 00 00 D4 [01:47:36]Write i2c OK [01:47:36]MH_I2C_Read... [01:47:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:47:36]Read from MH i2c: E2 [01:47:36]MH_I2C_Read... [01:47:36]Read from MH i2c: E2 17 00 [01:47:36]MH_I2C_Read... [01:47:36]Read from MH i2c: E2 17 00 48 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2B [01:47:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [01:47:36]wFMCommunicate OK [01:47:36]requested_item fd.num is exist - process it [01:47:36]SAM_PROTO_GetFieldsCounters [01:47:36]wFMCommunicate request_size=4 [01:47:36]MH_SAM_APDU [01:47:36]CAPDU: 80 13 00 00 [01:47:36]Write to MH i2c: E2 08 00 49 12 80 13 00 00 00 00 00 00 D7 [01:47:36]Write i2c OK [01:47:36]MH_I2C_Read... [01:47:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:47:36]Read from MH i2c: E2 [01:47:36]MH_I2C_Read... [01:47:36]Read from MH i2c: E2 62 00 [01:47:36]MH_I2C_Read... [01:47:36]Read from MH i2c: E2 62 00 49 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 82 7C 03 00 0E 04 04 00 18 02 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 51 [01:47:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 82 7C 03 00 0E 04 04 00 18 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:47:36]wFMCommunicate OK [01:47:36]SAM_PROTO_GetFieldsCounters done [01:47:36]requested_item shift.num is exist - process it [01:47:36]requested_item shift.opened is exist - process it [01:47:36]req_shift_opened [01:47:36]FM_GetShiftState [01:47:36]SAM_PROTO_GetShiftState [01:47:36]wFMCommunicate request_size=4 [01:47:36]MH_SAM_APDU [01:47:36]CAPDU: 80 13 01 00 [01:47:36]Write to MH i2c: E2 08 00 4A 12 80 13 01 00 00 00 00 00 D9 [01:47:36]Write i2c OK [01:47:36]MH_I2C_Read... [01:47:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:47:36]Read from MH i2c: E2 [01:47:36]MH_I2C_Read... [01:47:36]Read from MH i2c: E2 0E 00 [01:47:36]MH_I2C_Read... [01:47:36]Read from MH i2c: E2 0E 00 4A 12 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 13 [01:47:36]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [01:47:36]wFMCommunicate OK [01:47:36]SAM_PROTO_GetShiftState done [01:47:36]FM_GetShiftState done [01:47:36]req_shift_opened done [01:47:36]requested_item shift.open_date is exist - process it [01:47:36]req_shift_open_date [01:47:36]req_shift_open_date done [01:47:36]produce_requested_data done [01:47:36]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228482,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352} [01:47:36]process_action_free close_receipt [01:47:36]json_value_free [01:47:36]json_value_free done [01:47:36]process_json_proto returns [01:47:36]Send response to host [01:47:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228482,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352}}} [01:47:36]free response buf [01:47:36]execute_script done [01:47:36]execute_script returns [01:47:36]free content buf [01:47:36]Sock 7.Close socket [01:47:36]Sock 7.Thread stoped [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:28]accept exits with 9 [01:52:28]New connection [01:52:28]New thread 3066977636 created [01:52:28]Thread 3066834276 joined [01:52:28]Waiting for new connection... [01:52:28] Sock 9.Parse request [01:52:28]Sock 9.Check first char [01:52:28]Sock 9.First char is OK [01:52:28]request: POST /json_proto HTTP/1.0 [01:52:28]Method: POST [01:52:28]URL: /json_proto [01:52:28]Method is POST - this is cgi request [01:52:28]url: /json_proto [01:52:28]query_string will be loaded in cgi processing [01:52:28]execute_cgi json_proto POST (null) [01:52:28]execute_cgi path=json_proto method=POST [01:52:28]POST find Content-Length [01:52:28]Host: 172.17.44.195:8080 [01:52:28]Content-Length: 664 [01:52:28]Content-Type: application/json [01:52:28] [01:52:28]POST finish read [01:52:28]Found Content-Length = 664 [01:52:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.02, "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" ] } } [01:52:28]execute_script... [01:52:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.02, "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" ] } } [01:52:28]POST & json_proto [01:52:28]process_json_proto [01:52:28]json parsed OK: [01:52:28]protocol is kg_v1.0 [01:52:28]action value=close_receipt [01:52:28]process_action close_receipt [01:52:28]cmd_close_receipt [01:52:28]MH_GetDate [01:52:28]Write to MH i2c: F0 00 00 4B 12 4C [01:52:28]Write i2c OK [01:52:28]MH_I2C_Read... [01:52:28]Read from MH i2c: F0 [01:52:28]MH_I2C_Read... [01:52:28]Read from MH i2c: F0 09 00 [01:52:28]MH_I2C_Read... [01:52:28]Read from MH i2c: F0 09 00 4B 12 00 DE 56 18 67 82 C9 CF 66 88 [01:52:28]GetLastDocTimeStamp 1729648053 [01:52:28]current date 1729648350 [01:52:28]FM_GetShiftState [01:52:28]SAM_PROTO_GetShiftState [01:52:28]wFMCommunicate request_size=4 [01:52:28]MH_SAM_APDU [01:52:28]CAPDU: 80 13 01 00 [01:52:28]Write to MH i2c: E2 08 00 4C 12 80 13 01 00 00 00 00 00 DB [01:52:28]Write i2c OK [01:52:28]MH_I2C_Read... [01:52:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:52:28]Read from MH i2c: E2 [01:52:28]MH_I2C_Read... [01:52:28]Read from MH i2c: E2 0E 00 [01:52:28]MH_I2C_Read... [01:52:28]Read from MH i2c: E2 0E 00 4C 12 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 15 [01:52:28]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [01:52:28]wFMCommunicate OK [01:52:28]SAM_PROTO_GetShiftState done [01:52:28]FM_GetShiftState done [01:52:28]opened in 1729642352 [01:52:28]opened+sec_in_day 1729728752 [01:52:28]quantity*price = 200001 [01:52:28]sum+1 = 200003 [01:52:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.39 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 19 23.10.2024 01:52 Смена: 536 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228483 ФПД: 200364307983599 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T015230&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228483&fm=200364307983599&tin=02508201610067®Number=0000000000091685&sum=200000 [01:52:29]StoreToDocumentArchive [01:52:29]shift 536 fd 228483 [01:52:29]save to /storage/0536/doc_00228483 [01:52:29]save last doc name /storage/0536/doc_00228483 to /storage/kkm_last_doc_name [01:52:29]save OK [01:52:29]Clear old archive folders... [01:52:29]ProcessDocumentItem done err = 0, tmpTLVsize=244 [01:52:29]tlvbuf is 002EB840 [01:52:29]SAM_PROTO_ClearQueue [01:52:29]wFMCommunicate request_size=4 [01:52:29]MH_SAM_APDU [01:52:29]CAPDU: 80 09 00 00 [01:52:29]Write to MH i2c: E2 08 00 59 12 80 09 00 00 00 00 00 00 DD [01:52:29]Write i2c OK [01:52:29]MH_I2C_Read... [01:52:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:52:29]Read from MH i2c: E2 [01:52:29]MH_I2C_Read... [01:52:29]Read from MH i2c: E2 03 00 [01:52:29]MH_I2C_Read... [01:52:29]Read from MH i2c: E2 03 00 59 12 00 90 00 DF [01:52:29]RAPDU: 90 00 [01:52:29]wFMCommunicate OK [01:52:29]SAM_PROTO_ClearQueue done [01:52:29]KKMCreateOFDPacket [01:52:29]OFDProtocolAddRootSTLVToBuf [01:52:29]FM_MakeSignedData [01:52:29]FM_MakeSignedData [01:52:29]SAM_PROTO_SignData [01:52:29]wFMCommunicate request_size=4 [01:52:29]MH_SAM_APDU [01:52:29]CAPDU: 80 0D 01 02 [01:52:29]Write to MH i2c: E2 08 00 5A 12 80 0D 01 02 00 00 00 00 E5 [01:52:29]Write i2c OK [01:52:29]MH_I2C_Read... [01:52:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:52:30]Read from MH i2c: E2 [01:52:30]MH_I2C_Read... [01:52:30]Read from MH i2c: E2 03 00 [01:52:30]MH_I2C_Read... [01:52:30]Read from MH i2c: E2 03 00 5A 12 00 90 00 E0 [01:52:30]RAPDU: 90 00 [01:52:30]wFMCommunicate OK [01:52:30]wFMCommunicate request_size=253 [01:52:30]MH_SAM_APDU [01:52:30]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 13 00 00 00 F4 03 04 00 DE 56 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 83 7C 03 00 35 04 06 00 B6 3A F3 67 2C EF [01:52:30]Write to MH i2c: E2 00 01 5B 12 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 13 00 00 00 F4 03 04 00 DE 56 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 83 7C 03 00 35 04 06 00 B6 3A F3 67 2C EF 00 00 93 [01:52:30]Write i2c OK [01:52:30]MH_I2C_Read... [01:52:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:52:30]Read from MH i2c: E2 [01:52:30]MH_I2C_Read... [01:52:30]Read from MH i2c: E2 03 00 [01:52:30]MH_I2C_Read... [01:52:30]Read from MH i2c: E2 03 00 5B 12 00 90 00 E1 [01:52:30]RAPDU: 90 00 [01:52:30]wFMCommunicate OK [01:52:30]wFMCommunicate request_size=4 [01:52:30]MH_SAM_APDU [01:52:30]CAPDU: 80 0D 03 02 [01:52:30]Write to MH i2c: E2 08 00 5C 12 80 0D 03 02 00 00 00 00 E9 [01:52:30]Write i2c OK [01:52:30]MH_I2C_Read... [01:52:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:52:30]Read from MH i2c: E2 [01:52:30]MH_I2C_Read... [01:52:30]Read from MH i2c: E2 0B 00 [01:52:30]MH_I2C_Read... [01:52:30]Read from MH i2c: E2 0B 00 5C 12 00 68 A0 E7 57 ED 95 DD E7 90 00 76 [01:52:30]RAPDU: 68 A0 E7 57 ED 95 DD E7 90 00 [01:52:30]wFMCommunicate OK [01:52:30]SAM_PROTO_SignData done [01:52:30]FM_MakeSignedData done [01:52:30]CreateOFDProtocolMessage [01:52:30]wFMCommunicate request_size=4 [01:52:30]MH_SAM_APDU [01:52:30]CAPDU: 80 11 00 00 [01:52:30]Write to MH i2c: E2 08 00 5D 12 80 11 00 00 00 00 00 00 E9 [01:52:30]Write i2c OK [01:52:30]MH_I2C_Read... [01:52:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:52:30]Read from MH i2c: E2 [01:52:30]MH_I2C_Read... [01:52:30]Read from MH i2c: E2 17 00 [01:52:30]MH_I2C_Read... [01:52:30]Read from MH i2c: E2 17 00 5D 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 40 [01:52:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [01:52:30]wFMCommunicate OK [01:52:30]CreateOFDProtocolMessage done [01:52:30]OFDSenderStorePacket 228483 [01:52:30]StoreOFDPacket docnum=228483 [01:52:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 4F DE 00 01 81 65 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 13 00 00 00 F4 03 04 00 DE 56 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 83 7C 03 00 35 04 06 00 B6 3A F3 67 2C EF 68 A0 E7 57 ED 95 DD E7 [01:52:30]CheckFolder [01:52:30]dirname=/storage/ofd_packets [01:52:30]CheckFolder done [01:52:30]ProducePacketName [01:52:30]name=ofd_packets/00228483 [01:52:30]NVStorageSaveData ofd_packets/00228483 [01:52:30]File name is /storage/ofd_packets/00228483 [01:52:30]Write 294 bytes [01:52:30]NVStorageSaveData done [01:52:30]OFDSenderStorePacket done [01:52:30]KKMCreateOFDPacket done [01:52:30]NVStorageSaveData kkm_last_timestamp [01:52:30]File name is /storage/kkm_last_timestamp [01:52:30]Write 4 bytes [01:52:30]NVStorageSaveData done [01:52:30]ExternCall_PrintAddStr [01:52:30]wPrintStart [01:52:30]Write to MH i2c: 01 00 00 5E 12 70 [01:52:30]Write i2c OK [01:52:30]MH_I2C_Read... [01:52:30]Read from MH i2c: 01 [01:52:30]MH_I2C_Read... [01:52:30]Read from MH i2c: 01 07 00 [01:52:30]MH_I2C_Read... [01:52:30]Read from MH i2c: 01 07 00 5E 12 00 00 00 00 00 FF 0F 85 [01:52:30]RasterBufferAndPrint [01:52:30]line Счет N : (1)1965152 [01:52:30]line ИНН: 02508201610067 [01:52:30]line Контрольно-Кассовый Чек [01:52:30]line ПРОДАЖА [01:52:30]line ТРК (МРК, ГНК) : 42 [01:52:30]line Товар: 2710124130 [01:52:30]line SU-92 [01:52:30]line 29.240 * 68.40 [01:52:30]line = 2000.02 [01:52:30]line НДС 12% НСП 1% [01:52:30]line > о реализуемом товаре [01:52:30]line ОКРУГЛЕНИЕ: -0.02 [01:52:30]line ИТОГО: 2000.00 [01:52:30]line Внесено: 2000.00 [01:52:30]line СДАЧА: 0.00 [01:52:30]line НСП 1% : 17.70 [01:52:30]line НДС 12% : 212.39 [01:52:30]line Наличными: 2000.00 [01:52:30]line Безнал.: 0.00 [01:52:30]line Место: АЗС № 133 "Партнер Нефть" [01:52:30]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [01:52:30]line СНО: Общий режим [01:52:30]line Чек 19 23.10.2024 01:52 [01:52:30]line Смена: 536 ФФД: 1.0 [01:52:30]line ЗНМ: 0300000091 [01:52:30]line РНМ: 0000000000091685 [01:52:30]line Версия ККМ: 001 [01:52:30]line ФМ: 0000000000871839 [01:52:30]line ФД: 228483 [01:52:30]line ФПД: 200364307983599 [01:52:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T015230&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228483&fm=200364307983599&tin=02508201610067®Number=0000000000091685&sum=200000 [01:52:30]OFD Sender: Processing packet 228483 [packets to send 38, broken 37] [01:52:30]ProducePacketName [01:52:30]name=ofd_packets/00228483 [01:52:30]OFD Sender: To server: pG, [01:52:30]CommunicateWithHost lk.salyk.kg:30040 [01:52:30]ConnectInit lk.salyk.kg [01:52:30]written 0, free lines is 4095 [01:52:30]Connected sock=10 [01:52:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 4F DE 00 01 81 65 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 13 00 00 00 F4 03 04 00 DE 56 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 83 7C 03 00 35 04 06 00 B6 3A F3 67 2C EF 68 A0 E7 57 ED 95 DD E7 [01:52:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 9A FA 47 00 00 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 83 7C 03 00 F4 03 04 00 D4 01 18 67 B6 04 01 00 00 F4 BF B5 6A B9 00 15 04 [01:52:31]CommunicateWithHost err = 0 [01:52:31]CheckOFDResponse [01:52:31]1017 (14) - 77093643461234 [01:52:31]1041 (16) - 0000000000871839 [01:52:31]1040 (4) - 228483 [01:52:31]1012 (4) - 22.10.2024 19:49 [01:52:31]1206 (1) - 0 [01:52:31]OFD Sender: Remove packet 228483 [01:52:31]ProducePacketName [01:52:31]name=ofd_packets/00228483 [01:52:31]NVStorageDeleteData [01:52:31]Write to MH i2c: 01 00 00 88 12 9A [01:52:31]Write i2c OK [01:52:31]MH_I2C_Read... [01:52:31]Read from MH i2c: 01 [01:52:31]MH_I2C_Read... [01:52:31]Read from MH i2c: 01 07 00 [01:52:31]MH_I2C_Read... [01:52:31]Read from MH i2c: 01 07 00 88 12 00 00 00 00 00 A6 0C 53 [01:52:31]RasterBufferAndPrint [01:52:31]line [01:52:31]line [01:52:31]line [01:52:31]line [01:52:31]line [01:52:31]written 0, free lines is 3242 [01:52:31]MH_Cut [01:52:31]Write to MH i2c: D1 01 00 8F 12 01 73 [01:52:31]Write i2c OK [01:52:31]MH_I2C_Read... [01:52:31]Read from MH i2c: D1 [01:52:31]MH_I2C_Read... [01:52:31]Read from MH i2c: D1 01 00 [01:52:31]MH_I2C_Read... [01:52:31]Read from MH i2c: D1 01 00 8F 12 00 72 [01:52:31]Write to MH i2c: 01 00 00 90 12 A2 [01:52:31]Write i2c OK [01:52:31]MH_I2C_Read... [01:52:31]OFD Sender: No OFD packet to send [01:52:32]*** Cut start [01:52:32]*** Partial cut [01:52:32]*** CUTSNS_PIN = 1 [01:52:32]*** CUTSNS_PIN = 0 [01:52:32]*** Brake cut motor [01:52:32]Read from MH i2c: 01 [01:52:32]MH_I2C_Read... [01:52:32]*** Stop cut motor [01:52:32]*** Cut end [01:52:32]Read from MH i2c: 01 07 00 [01:52:32]MH_I2C_Read... [01:52:32]Read from MH i2c: 01 07 00 90 12 00 00 00 00 00 FF 0F B7 [01:52:32]process_action close_receipt done [01:52:32]requested_data is exist [01:52:32]produce_requested_data [01:52:32]requested_item fm.sn is exist - process it [01:52:32]wFMCommunicate request_size=4 [01:52:32]MH_SAM_APDU [01:52:32]CAPDU: 80 11 00 00 [01:52:32]Write to MH i2c: E2 08 00 91 12 80 11 00 00 00 00 00 00 1D [01:52:32]Write i2c OK [01:52:32]MH_I2C_Read... [01:52:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:52:32]Read from MH i2c: E2 [01:52:32]MH_I2C_Read... [01:52:32]Read from MH i2c: E2 17 00 [01:52:32]MH_I2C_Read... [01:52:32]Read from MH i2c: E2 17 00 91 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 74 [01:52:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [01:52:32]wFMCommunicate OK [01:52:32]requested_item fd.num is exist - process it [01:52:32]SAM_PROTO_GetFieldsCounters [01:52:32]wFMCommunicate request_size=4 [01:52:32]MH_SAM_APDU [01:52:32]CAPDU: 80 13 00 00 [01:52:32]Write to MH i2c: E2 08 00 92 12 80 13 00 00 00 00 00 00 20 [01:52:32]Write i2c OK [01:52:32]MH_I2C_Read... [01:52:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:52:33]Read from MH i2c: E2 [01:52:33]MH_I2C_Read... [01:52:33]Read from MH i2c: E2 62 00 [01:52:33]MH_I2C_Read... [01:52:33]Read from MH i2c: E2 62 00 92 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 83 7C 03 00 0E 04 04 00 18 02 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 9E [01:52:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 83 7C 03 00 0E 04 04 00 18 02 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 [01:52:33]wFMCommunicate OK [01:52:33]SAM_PROTO_GetFieldsCounters done [01:52:33]requested_item shift.num is exist - process it [01:52:33]requested_item shift.opened is exist - process it [01:52:33]req_shift_opened [01:52:33]FM_GetShiftState [01:52:33]SAM_PROTO_GetShiftState [01:52:33]wFMCommunicate request_size=4 [01:52:33]MH_SAM_APDU [01:52:33]CAPDU: 80 13 01 00 [01:52:33]Write to MH i2c: E2 08 00 93 12 80 13 01 00 00 00 00 00 22 [01:52:33]Write i2c OK [01:52:33]MH_I2C_Read... [01:52:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:52:33]Read from MH i2c: E2 [01:52:33]MH_I2C_Read... [01:52:33]Read from MH i2c: E2 0E 00 [01:52:33]MH_I2C_Read... [01:52:33]Read from MH i2c: E2 0E 00 93 12 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 5C [01:52:33]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [01:52:33]wFMCommunicate OK [01:52:33]SAM_PROTO_GetShiftState done [01:52:33]FM_GetShiftState done [01:52:33]req_shift_opened done [01:52:33]requested_item shift.open_date is exist - process it [01:52:33]req_shift_open_date [01:52:33]req_shift_open_date done [01:52:33]produce_requested_data done [01:52:33]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228483,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352} [01:52:33]process_action_free close_receipt [01:52:33]json_value_free [01:52:33]json_value_free done [01:52:33]process_json_proto returns [01:52:33]Send response to host [01:52:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228483,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352}}} [01:52:33]free response buf [01:52:33]execute_script done [01:52:33]execute_script returns [01:52:33]free content buf [01:52:33]Sock 9.Close socket [01:52:33]Sock 9.Thread stoped [01:52:36]OFD Sender: No OFD packet to send [01:52:41]OFD Sender: No OFD packet to send [01:52:46]OFD Sender: No OFD packet to send [01:52:51]OFD Sender: No OFD packet to send [01:52:56]OFD Sender: No OFD packet to send [01:53:01]OFD Sender: No OFD packet to send [01:53:06]OFD Sender: No OFD packet to send [01:53:11]OFD Sender: No OFD packet to send [01:53:16]OFD Sender: No OFD packet to send [01:53:21]OFD Sender: No OFD packet to send [01:53:26]OFD Sender: No OFD packet to send [01:53:31]OFD Sender: No OFD packet to send [01:53:36]OFD Sender: No OFD packet to send [01:53:41]OFD Sender: No OFD packet to send [01:53:46]OFD Sender: No OFD packet to send [01:53:51]OFD Sender: No OFD packet to send [01:53:56]OFD Sender: No OFD packet to send [01:54:01]OFD Sender: No OFD packet to send [01:54:06]OFD Sender: No OFD packet to send [01:54:11]OFD Sender: No OFD packet to send [01:54:16]OFD Sender: No OFD packet to send [01:54:21]OFD Sender: No OFD packet to send [01:54:26]OFD Sender: No OFD packet to send [01:54:31]OFD Sender: No OFD packet to send [01:54:36]OFD Sender: No OFD packet to send [01:54:41]OFD Sender: No OFD packet to send [01:54:46]OFD Sender: No OFD packet to send [01:54:51]OFD Sender: No OFD packet to send [01:54:56]OFD Sender: No OFD packet to send [01:55:01]OFD Sender: No OFD packet to send [01:55:06]OFD Sender: No OFD packet to send [01:55:11]OFD Sender: No OFD packet to send [01:55:16]OFD Sender: No OFD packet to send [01:55:21]OFD Sender: No OFD packet to send [01:55:26]OFD Sender: No OFD packet to send [01:55:31]OFD Sender: No OFD packet to send [01:55:36]OFD Sender: No OFD packet to send [01:55:41]OFD Sender: No OFD packet to send [01:55:46]OFD Sender: No OFD packet to send [01:55:51]OFD Sender: No OFD packet to send [01:55:56]OFD Sender: No OFD packet to send [01:56:01]OFD Sender: No OFD packet to send [01:56:06]OFD Sender: No OFD packet to send [01:56:11]OFD Sender: No OFD packet to send [01:56:16]OFD Sender: No OFD packet to send [01:56:21]OFD Sender: No OFD packet to send [01:56:26]OFD Sender: No OFD packet to send [01:56:31]OFD Sender: No OFD packet to send [01:56:36]OFD Sender: No OFD packet to send [01:56:41]OFD Sender: No OFD packet to send [01:56:46]OFD Sender: No OFD packet to send [01:56:51]OFD Sender: No OFD packet to send [01:56:56]OFD Sender: No OFD packet to send [01:57:01]OFD Sender: No OFD packet to send [01:57:06]OFD Sender: No OFD packet to send [01:57:11]OFD Sender: No OFD packet to send [01:57:16]OFD Sender: No OFD packet to send [01:57:21]OFD Sender: No OFD packet to send [01:57:26]OFD Sender: No OFD packet to send [01:57:31]OFD Sender: No OFD packet to send [01:57:36]OFD Sender: No OFD packet to send [01:57:41]OFD Sender: No OFD packet to send [01:57:46]OFD Sender: No OFD packet to send [01:57:51]OFD Sender: No OFD packet to send [01:57:56]OFD Sender: No OFD packet to send [01:58:01]OFD Sender: No OFD packet to send [01:58:06]OFD Sender: No OFD packet to send [01:58:11]OFD Sender: No OFD packet to send [01:58:16]OFD Sender: No OFD packet to send [01:58:21]OFD Sender: No OFD packet to send [01:58:26]OFD Sender: No OFD packet to send [01:58:31]OFD Sender: No OFD packet to send [01:58:36]OFD Sender: No OFD packet to send [01:58:41]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:33]accept exits with 7 [02:00:33]New connection [02:00:33]New thread 3066834276 created [02:00:33]Thread 3066977636 joined [02:00:33]Waiting for new connection... [02:00:33] Sock 7.Parse request [02:00:33]Sock 7.Check first char [02:00:33]Sock 7.First char is OK [02:00:33]request: POST /json_proto HTTP/1.0 [02:00:33]Method: POST [02:00:33]URL: /json_proto [02:00:33]Method is POST - this is cgi request [02:00:33]url: /json_proto [02:00:33]query_string will be loaded in cgi processing [02:00:33]execute_cgi json_proto POST (null) [02:00:33]execute_cgi path=json_proto method=POST [02:00:33]POST find Content-Length [02:00:33]Host: 172.17.44.195:8080 [02:00:33]Content-Length: 979 [02:00:33]Content-Type: application/json [02:00:33] [02:00:33]POST finish read [02:00:33]Found Content-Length = 979 [02:00:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965153", "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" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "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" ] } } [02:00:33]execute_script... [02:00: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)1965153", "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" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "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" ] } } [02:00:33]POST & json_proto [02:00:33]process_json_proto [02:00:33]json parsed OK: [02:00:33]protocol is kg_v1.0 [02:00:33]action value=close_receipt [02:00:33]process_action close_receipt [02:00:33]cmd_close_receipt [02:00:33]MH_GetDate [02:00:33]Write to MH i2c: F0 00 00 94 12 95 [02:00:33]Write i2c OK [02:00:33]MH_I2C_Read... [02:00:33]Read from MH i2c: F0 [02:00:33]MH_I2C_Read... [02:00:33]Read from MH i2c: F0 09 00 [02:00:33]MH_I2C_Read... [02:00:33]Read from MH i2c: F0 09 00 94 12 00 C2 58 18 67 82 C9 CF 66 B7 [02:00:33]GetLastDocTimeStamp 1729648350 [02:00:33]current date 1729648834 [02:00:33]FM_GetShiftState [02:00:33]SAM_PROTO_GetShiftState [02:00:33]wFMCommunicate request_size=4 [02:00:33]MH_SAM_APDU [02:00:33]CAPDU: 80 13 01 00 [02:00:33]Write to MH i2c: E2 08 00 95 12 80 13 01 00 00 00 00 00 24 [02:00:33]Write i2c OK [02:00:33]MH_I2C_Read... [02:00:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:00:33]Read from MH i2c: E2 [02:00:33]MH_I2C_Read... [02:00:33]Read from MH i2c: E2 0E 00 [02:00:33]MH_I2C_Read... [02:00:33]Read from MH i2c: E2 0E 00 95 12 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 5E [02:00:33]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [02:00:33]wFMCommunicate OK [02:00:33]SAM_PROTO_GetShiftState done [02:00:33]FM_GetShiftState done [02:00:33]opened in 1729642352 [02:00:33]opened+sec_in_day 1729728752 [02:00:33]quantity*price = 500004 [02:00:33]sum+1 = 500006 [02:00:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 530.98 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 20 23.10.2024 02:00 Смена: 536 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Дисконтная программа ДТ номер 133 сэкономлено 66.49 сом ФМ: 0000000000871839 ФД: 228484 ФПД: 40399356776892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T020034&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228484&fm=40399356776892&tin=02508201610067®Number=0000000000091685&sum=500000 [02:00:34]StoreToDocumentArchive [02:00:34]shift 536 fd 228484 [02:00:34]save to /storage/0536/doc_00228484 [02:00:34]save last doc name /storage/0536/doc_00228484 to /storage/kkm_last_doc_name [02:00:34]save OK [02:00:34]Clear old archive folders... [02:00:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:00:34]tlvbuf is 00304A00 [02:00:34]SAM_PROTO_ClearQueue [02:00:34]wFMCommunicate request_size=4 [02:00:34]MH_SAM_APDU [02:00:34]CAPDU: 80 09 00 00 [02:00:34]Write to MH i2c: E2 08 00 A2 12 80 09 00 00 00 00 00 00 26 [02:00:34]Write i2c OK [02:00:34]MH_I2C_Read... [02:00:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:00:34]Read from MH i2c: E2 [02:00:34]MH_I2C_Read... [02:00:34]Read from MH i2c: E2 03 00 [02:00:34]MH_I2C_Read... [02:00:34]Read from MH i2c: E2 03 00 A2 12 00 90 00 28 [02:00:34]RAPDU: 90 00 [02:00:34]wFMCommunicate OK [02:00:34]SAM_PROTO_ClearQueue done [02:00:34]KKMCreateOFDPacket [02:00:34]OFDProtocolAddRootSTLVToBuf [02:00:34]FM_MakeSignedData [02:00:34]FM_MakeSignedData [02:00:34]SAM_PROTO_SignData [02:00:34]wFMCommunicate request_size=4 [02:00:34]MH_SAM_APDU [02:00:34]CAPDU: 80 0D 01 02 [02:00:34]Write to MH i2c: E2 08 00 A3 12 80 0D 01 02 00 00 00 00 2E [02:00:34]Write i2c OK [02:00:34]MH_I2C_Read... [02:00:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:00:34]Read from MH i2c: E2 [02:00:34]MH_I2C_Read... [02:00:34]Read from MH i2c: E2 03 00 [02:00:34]MH_I2C_Read... [02:00:34]Read from MH i2c: E2 03 00 A3 12 00 90 00 29 [02:00:34]RAPDU: 90 00 [02:00:34]wFMCommunicate OK [02:00:34]wFMCommunicate request_size=255 [02:00:34]MH_SAM_APDU [02:00: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 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 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 6A 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 14 00 00 00 F4 03 04 00 C2 58 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 84 7C 03 00 35 04 06 00 24 BE 35 4F [02:00:34]Write to MH i2c: E2 02 01 A4 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 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 6A 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 14 00 00 00 F4 03 04 00 C2 58 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 84 7C 03 00 35 04 06 00 24 BE 35 4F 00 00 EE [02:00:34]Write i2c OK [02:00:34]MH_I2C_Read... [02:00:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:00:34]Read from MH i2c: E2 [02:00:34]MH_I2C_Read... [02:00:34]Read from MH i2c: E2 03 00 [02:00:34]MH_I2C_Read... [02:00:34]Read from MH i2c: E2 03 00 A4 12 00 90 00 2A [02:00:34]RAPDU: 90 00 [02:00:34]wFMCommunicate OK [02:00:34]wFMCommunicate request_size=7 [02:00:34]MH_SAM_APDU [02:00:34]CAPDU: 80 0D 02 02 02 51 BC [02:00:34]Write to MH i2c: E2 0A 00 A5 12 80 0D 02 02 02 00 51 BC 00 00 42 [02:00:34]Write i2c OK [02:00:34]MH_I2C_Read... [02:00:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:00:34]Read from MH i2c: E2 [02:00:34]MH_I2C_Read... [02:00:34]Read from MH i2c: E2 03 00 [02:00:34]MH_I2C_Read... [02:00:34]Read from MH i2c: E2 03 00 A5 12 00 90 00 2B [02:00:34]RAPDU: 90 00 [02:00:34]wFMCommunicate OK [02:00:34]wFMCommunicate request_size=4 [02:00:34]MH_SAM_APDU [02:00:34]CAPDU: 80 0D 03 02 [02:00:34]Write to MH i2c: E2 08 00 A6 12 80 0D 03 02 00 00 00 00 33 [02:00:34]Write i2c OK [02:00:34]MH_I2C_Read... [02:00:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:00:34]Read from MH i2c: E2 [02:00:34]MH_I2C_Read... [02:00:34]Read from MH i2c: E2 0B 00 [02:00:34]MH_I2C_Read... [02:00:34]Read from MH i2c: E2 0B 00 A6 12 00 4A DF 3D 1D 43 15 96 63 90 00 08 [02:00:34]RAPDU: 4A DF 3D 1D 43 15 96 63 90 00 [02:00:34]wFMCommunicate OK [02:00:34]SAM_PROTO_SignData done [02:00:34]FM_MakeSignedData done [02:00:34]CreateOFDProtocolMessage [02:00:34]wFMCommunicate request_size=4 [02:00:34]MH_SAM_APDU [02:00:34]CAPDU: 80 11 00 00 [02:00:34]Write to MH i2c: E2 08 00 A7 12 80 11 00 00 00 00 00 00 33 [02:00:34]Write i2c OK [02:00:34]MH_I2C_Read... [02:00:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:00:34]Read from MH i2c: E2 [02:00:34]MH_I2C_Read... [02:00:34]Read from MH i2c: E2 17 00 [02:00:34]MH_I2C_Read... [02:00:34]Read from MH i2c: E2 17 00 A7 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8A [02:00:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [02:00:34]wFMCommunicate OK [02:00:34]CreateOFDProtocolMessage done [02:00:34]OFDSenderStorePacket 228484 [02:00:34]StoreOFDPacket docnum=228484 [02:00:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 A8 26 04 01 5F CB 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 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 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 6A 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 14 00 00 00 F4 03 04 00 C2 58 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 84 7C 03 00 35 04 06 00 24 BE 35 4F 51 BC 4A DF 3D 1D 43 15 96 63 [02:00:34]CheckFolder [02:00:34]dirname=/storage/ofd_packets [02:00:34]CheckFolder done [02:00:34]ProducePacketName [02:00:34]name=ofd_packets/00228484 [02:00:34]NVStorageSaveData ofd_packets/00228484 [02:00:34]File name is /storage/ofd_packets/00228484 [02:00:34]Write 298 bytes [02:00:34]NVStorageSaveData done [02:00:34]OFDSenderStorePacket done [02:00:34]KKMCreateOFDPacket done [02:00:34]NVStorageSaveData kkm_last_timestamp [02:00:34]File name is /storage/kkm_last_timestamp [02:00:34]Write 4 bytes [02:00:34]NVStorageSaveData done [02:00:34]ExternCall_PrintAddStr [02:00:34]wPrintStart [02:00:34]Write to MH i2c: 01 00 00 A8 12 BA [02:00:34]Write i2c OK [02:00:34]MH_I2C_Read... [02:00:34]Read from MH i2c: 01 [02:00:34]MH_I2C_Read... [02:00:34]Read from MH i2c: 01 07 00 [02:00:34]MH_I2C_Read... [02:00:34]Read from MH i2c: 01 07 00 A8 12 00 00 00 00 00 FF 0F CF [02:00:34]RasterBufferAndPrint [02:00:34]line Счет N : (1)1965153 [02:00:34]line ИНН: 02508201610067 [02:00:34]line Контрольно-Кассовый Чек [02:00:34]line ПРОДАЖА [02:00:34]line ТРК (МРК, ГНК) : 11 [02:00:34]line Товар: 2710194210 [02:00:34]line ДТ-К-5 [02:00:34]line 66.490 * 75.20 [02:00:34]line = 5000.05 [02:00:34]line НДС 12% НСП 1% [02:00:34]line > о реализуемом товаре [02:00:34]line ОКРУГЛЕНИЕ: -0.05 [02:00:34]line ИТОГО: 5000.00 [02:00:34]line Внесено: 5000.00 [02:00:34]line СДАЧА: 0.00 [02:00:34]line НСП 1% : 44.25 [02:00:34]line НДС 12% : 530.98 [02:00:34]line Наличными: 5000.00 [02:00:34]line Безнал.: 0.00 [02:00:34]line Место: АЗС № 133 "Партнер Нефть" [02:00:34]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [02:00:34]line СНО: Общий режим [02:00:34]line Чек 20 23.10.2024 02:00 [02:00:34]line Смена: 536 ФФД: 1.0 [02:00:34]line ЗНМ: 0300000091 [02:00:34]line РНМ: 0000000000091685 [02:00:34]line Версия ККМ: 001 [02:00:34]line [02:00:34]line Дисконтная программа [02:00:34]line ДТ [02:00:34]line номер 133 [02:00:34]line сэкономлено 66.49 сом [02:00:34]line ФМ: 0000000000871839 [02:00:34]line ФД: 228484 [02:00:34]line ФПД: 40399356776892 [02:00:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T020034&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228484&fm=40399356776892&tin=02508201610067®Number=0000000000091685&sum=500000 [02:00:35]OFD Sender: Processing packet 228484 [packets to send 38, broken 37] [02:00:35]ProducePacketName [02:00:35]name=ofd_packets/00228484 [02:00:35]OFD Sender: To server: pG, [02:00:35]CommunicateWithHost lk.salyk.kg:30040 [02:00:35]ConnectInit lk.salyk.kg [02:00:35]written 0, free lines is 4095 [02:00:35]Connected sock=10 [02:00:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 A8 26 04 01 5F CB 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 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 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 6A 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 14 00 00 00 F4 03 04 00 C2 58 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 84 7C 03 00 35 04 06 00 24 BE 35 4F 51 BC 4A DF 3D 1D 43 15 96 63 [02:00:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 CA BD 47 00 EB E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 84 7C 03 00 F4 03 04 00 B9 03 18 67 B6 04 01 00 00 53 B8 8D 19 42 3B 0B 46 [02:00:35]CommunicateWithHost err = 0 [02:00:35]CheckOFDResponse [02:00:35]1017 (14) - 77093643461234 [02:00:35]1041 (16) - 0000000000871839 [02:00:35]1040 (4) - 228484 [02:00:35]1012 (4) - 22.10.2024 19:57 [02:00:35]1206 (1) - 0 [02:00:35]OFD Sender: Remove packet 228484 [02:00:35]ProducePacketName [02:00:35]name=ofd_packets/00228484 [02:00:35]NVStorageDeleteData [02:00:35]Write to MH i2c: 01 00 00 D7 12 E9 [02:00:35]Write i2c OK [02:00:35]MH_I2C_Read... [02:00:35]Read from MH i2c: 01 [02:00:35]MH_I2C_Read... [02:00:35]Read from MH i2c: 01 07 00 [02:00:35]MH_I2C_Read... [02:00:35]Read from MH i2c: 01 07 00 D7 12 00 00 00 00 00 2B 0C 27 [02:00:35]RasterBufferAndPrint [02:00:35]line [02:00:35]line [02:00:35]line [02:00:35]line [02:00:35]line [02:00:35]written 0, free lines is 3119 [02:00:35]MH_Cut [02:00:35]Write to MH i2c: D1 01 00 DE 12 01 C2 [02:00:35]Write i2c OK [02:00:35]MH_I2C_Read... [02:00:35]Read from MH i2c: D1 [02:00:35]MH_I2C_Read... [02:00:35]Read from MH i2c: D1 01 00 [02:00:35]MH_I2C_Read... [02:00:35]Read from MH i2c: D1 01 00 DE 12 00 C1 [02:00:35]Write to MH i2c: 01 00 00 DF 12 F1 [02:00:35]Write i2c OK [02:00:35]MH_I2C_Read... [02:00:36]OFD Sender: No OFD packet to send [02:00:36]*** Cut start [02:00:36]*** Partial cut [02:00:36]*** CUTSNS_PIN = 1 [02:00:36]*** CUTSNS_PIN = 0 [02:00:37]*** Brake cut motor [02:00:37]Read from MH i2c: 01 [02:00:37]MH_I2C_Read... [02:00:37]*** Stop cut motor [02:00:37]*** Cut end [02:00:37]Read from MH i2c: 01 07 00 [02:00:37]MH_I2C_Read... [02:00:37]Read from MH i2c: 01 07 00 DF 12 00 00 00 00 00 FF 0F 06 [02:00:37]process_action close_receipt done [02:00:37]requested_data is exist [02:00:37]produce_requested_data [02:00:37]requested_item fm.sn is exist - process it [02:00:37]wFMCommunicate request_size=4 [02:00:37]MH_SAM_APDU [02:00:37]CAPDU: 80 11 00 00 [02:00:37]Write to MH i2c: E2 08 00 E0 12 80 11 00 00 00 00 00 00 6C [02:00:37]Write i2c OK [02:00:37]MH_I2C_Read... [02:00:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:00:37]Read from MH i2c: E2 [02:00:37]MH_I2C_Read... [02:00:37]Read from MH i2c: E2 17 00 [02:00:37]MH_I2C_Read... [02:00:37]Read from MH i2c: E2 17 00 E0 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C3 [02:00:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [02:00:37]wFMCommunicate OK [02:00:37]requested_item fd.num is exist - process it [02:00:37]SAM_PROTO_GetFieldsCounters [02:00:37]wFMCommunicate request_size=4 [02:00:37]MH_SAM_APDU [02:00:37]CAPDU: 80 13 00 00 [02:00:37]Write to MH i2c: E2 08 00 E1 12 80 13 00 00 00 00 00 00 6F [02:00:37]Write i2c OK [02:00:37]MH_I2C_Read... [02:00:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:00:37]Read from MH i2c: E2 [02:00:37]MH_I2C_Read... [02:00:37]Read from MH i2c: E2 62 00 [02:00:37]MH_I2C_Read... [02:00:37]Read from MH i2c: E2 62 00 E1 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 84 7C 03 00 0E 04 04 00 18 02 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 F1 [02:00:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 84 7C 03 00 0E 04 04 00 18 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:00:37]wFMCommunicate OK [02:00:37]SAM_PROTO_GetFieldsCounters done [02:00:37]requested_item shift.num is exist - process it [02:00:37]requested_item shift.opened is exist - process it [02:00:37]req_shift_opened [02:00:37]FM_GetShiftState [02:00:37]SAM_PROTO_GetShiftState [02:00:37]wFMCommunicate request_size=4 [02:00:37]MH_SAM_APDU [02:00:37]CAPDU: 80 13 01 00 [02:00:37]Write to MH i2c: E2 08 00 E2 12 80 13 01 00 00 00 00 00 71 [02:00:37]Write i2c OK [02:00:37]MH_I2C_Read... [02:00:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:00:37]Read from MH i2c: E2 [02:00:37]MH_I2C_Read... [02:00:37]Read from MH i2c: E2 0E 00 [02:00:37]MH_I2C_Read... [02:00:37]Read from MH i2c: E2 0E 00 E2 12 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 AB [02:00:37]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [02:00:37]wFMCommunicate OK [02:00:37]SAM_PROTO_GetShiftState done [02:00:37]FM_GetShiftState done [02:00:37]req_shift_opened done [02:00:37]requested_item shift.open_date is exist - process it [02:00:37]req_shift_open_date [02:00:37]req_shift_open_date done [02:00:37]produce_requested_data done [02:00:37]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228484,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352} [02:00:37]process_action_free close_receipt [02:00:37]json_value_free [02:00:37]json_value_free done [02:00:37]process_json_proto returns [02:00:37]Send response to host [02:00:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228484,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352}}} [02:00:37]free response buf [02:00:37]execute_script done [02:00:37]execute_script returns [02:00:37]free content buf [02:00:37]Sock 7.Close socket [02:00:37]Sock 7.Thread stoped [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]OFD Sender: No OFD packet to send [02:07:16]OFD Sender: No OFD packet to send [02:07:21]OFD Sender: No OFD packet to send [02:07:26]OFD Sender: No OFD packet to send [02:07:31]OFD Sender: No OFD packet to send [02:07:36]OFD Sender: No OFD packet to send [02:07:41]OFD Sender: No OFD packet to send [02:07:46]OFD Sender: No OFD packet to send [02:07:51]OFD Sender: No OFD packet to send [02:07:56]OFD Sender: No OFD packet to send [02:08:01]OFD Sender: No OFD packet to send [02:08:06]OFD Sender: No OFD packet to send [02:08:11]OFD Sender: No OFD packet to send [02:08:16]OFD Sender: No OFD packet to send [02:08:21]OFD Sender: No OFD packet to send [02:08:26]OFD Sender: No OFD packet to send [02:08:31]OFD Sender: No OFD packet to send [02:08:36]OFD Sender: No OFD packet to send [02:08:41]OFD Sender: No OFD packet to send [02:08:46]OFD Sender: No OFD packet to send [02:08:51]OFD Sender: No OFD packet to send [02:08:56]OFD Sender: No OFD packet to send [02:09:01]OFD Sender: No OFD packet to send [02:09:06]OFD Sender: No OFD packet to send [02:09:11]OFD Sender: No OFD packet to send [02:09:16]OFD Sender: No OFD packet to send [02:09:21]OFD Sender: No OFD packet to send [02:09:26]OFD Sender: No OFD packet to send [02:09:31]OFD Sender: No OFD packet to send [02:09:36]OFD Sender: No OFD packet to send [02:09:41]OFD Sender: No OFD packet to send [02:09:46]OFD Sender: No OFD packet to send [02:09:51]OFD Sender: No OFD packet to send [02:09:56]OFD Sender: No OFD packet to send [02:10:01]OFD Sender: No OFD packet to send [02:10:06]OFD Sender: No OFD packet to send [02:10:11]OFD Sender: No OFD packet to send [02:10:16]OFD Sender: No OFD packet to send [02:10:21]OFD Sender: No OFD packet to send [02:10:26]OFD Sender: No OFD packet to send [02:10:31]OFD Sender: No OFD packet to send [02:10:36]OFD Sender: No OFD packet to send [02:10:41]OFD Sender: No OFD packet to send [02:10:46]OFD Sender: No OFD packet to send [02:10:51]OFD Sender: No OFD packet to send [02:10:56]OFD Sender: No OFD packet to send [02:11:01]OFD Sender: No OFD packet to send [02:11:06]OFD Sender: No OFD packet to send [02:11:11]OFD Sender: No OFD packet to send [02:11:16]OFD Sender: No OFD packet to send [02:11:21]OFD Sender: No OFD packet to send [02:11:26]OFD Sender: No OFD packet to send [02:11:31]OFD Sender: No OFD packet to send [02:11:36]OFD Sender: No OFD packet to send [02:11:41]OFD Sender: No OFD packet to send [02:11:46]OFD Sender: No OFD packet to send [02:11:51]OFD Sender: No OFD packet to send [02:11:56]OFD Sender: No OFD packet to send [02:12:01]OFD Sender: No OFD packet to send [02:12:06]OFD Sender: No OFD packet to send [02:12:11]OFD Sender: No OFD packet to send [02:12:16]OFD Sender: No OFD packet to send [02:12:21]OFD Sender: No OFD packet to send [02:12:26]OFD Sender: No OFD packet to send [02:12:31]OFD Sender: No OFD packet to send [02:12:36]OFD Sender: No OFD packet to send [02:12:41]OFD Sender: No OFD packet to send [02:12:46]OFD Sender: No OFD packet to send [02:12:51]OFD Sender: No OFD packet to send [02:12:56]OFD Sender: No OFD packet to send [02:13:01]OFD Sender: No OFD packet to send [02:13:06]OFD Sender: No OFD packet to send [02:13:11]OFD Sender: No OFD packet to send [02:13:16]OFD Sender: No OFD packet to send [02:13:21]OFD Sender: No OFD packet to send [02:13:26]OFD Sender: No OFD packet to send [02:13:31]OFD Sender: No OFD packet to send [02:13:36]OFD Sender: No OFD packet to send [02:13:41]OFD Sender: No OFD packet to send [02:13:46]OFD Sender: No OFD packet to send [02:13:51]OFD Sender: No OFD packet to send [02:13:56]OFD Sender: No OFD packet to send [02:14:01]OFD Sender: No OFD packet to send [02:14:06]OFD Sender: No OFD packet to send [02:14:11]OFD Sender: No OFD packet to send [02:14:16]OFD Sender: No OFD packet to send [02:14:21]OFD Sender: No OFD packet to send [02:14:26]OFD Sender: No OFD packet to send [02:14:31]OFD Sender: No OFD packet to send [02:14:36]OFD Sender: No OFD packet to send [02:14:41]OFD Sender: No OFD packet to send [02:14:46]OFD Sender: No OFD packet to send [02:14:51]OFD Sender: No OFD packet to send [02:14:56]OFD Sender: No OFD packet to send [02:15:01]OFD Sender: No OFD packet to send [02:15:06]OFD Sender: No OFD packet to send [02:15:11]OFD Sender: No OFD packet to send [02:15:16]OFD Sender: No OFD packet to send [02:15:21]OFD Sender: No OFD packet to send [02:15:26]OFD Sender: No OFD packet to send [02:15:31]OFD Sender: No OFD packet to send [02:15:36]OFD Sender: No OFD packet to send [02:15:41]OFD Sender: No OFD packet to send [02:15:46]OFD Sender: No OFD packet to send [02:15:51]OFD Sender: No OFD packet to send [02:15:56]OFD Sender: No OFD packet to send [02:16:01]OFD Sender: No OFD packet to send [02:16:06]OFD Sender: No OFD packet to send [02:16:11]OFD Sender: No OFD packet to send [02:16:16]OFD Sender: No OFD packet to send [02:16:21]OFD Sender: No OFD packet to send [02:16:26]OFD Sender: No OFD packet to send [02:16:31]OFD Sender: No OFD packet to send [02:16:36]OFD Sender: No OFD packet to send [02:16:41]OFD Sender: No OFD packet to send [02:16:46]OFD Sender: No OFD packet to send [02:16:51]OFD Sender: No OFD packet to send [02:16:56]OFD Sender: No OFD packet to send [02:17:01]OFD Sender: No OFD packet to send [02:17:06]OFD Sender: No OFD packet to send [02:17:11]OFD Sender: No OFD packet to send [02:17:16]OFD Sender: No OFD packet to send [02:17:21]OFD Sender: No OFD packet to send [02:17:26]OFD Sender: No OFD packet to send [02:17:31]OFD Sender: No OFD packet to send [02:17:36]OFD Sender: No OFD packet to send [02:17:41]OFD Sender: No OFD packet to send [02:17:46]OFD Sender: No OFD packet to send [02:17:51]OFD Sender: No OFD packet to send [02:17:56]OFD Sender: No OFD packet to send [02:18:01]OFD Sender: No OFD packet to send [02:18:06]OFD Sender: No OFD packet to send [02:18:11]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:38]accept exits with 9 [02:22:38]New connection [02:22:38]New thread 3066977636 created [02:22:38]Thread 3066834276 joined [02:22:38]Waiting for new connection... [02:22:38] Sock 9.Parse request [02:22:38]Sock 9.Check first char [02:22:38]Sock 9.First char is OK [02:22:38]request: POST /json_proto HTTP/1.0 [02:22:38]Method: POST [02:22:38]URL: /json_proto [02:22:38]Method is POST - this is cgi request [02:22:38]url: /json_proto [02:22:38]query_string will be loaded in cgi processing [02:22:38]execute_cgi json_proto POST (null) [02:22:38]execute_cgi path=json_proto method=POST [02:22:38]POST find Content-Length [02:22:38]Host: 172.17.44.195:8080 [02:22:38]Content-Length: 799 [02:22:38]Content-Type: application/json [02:22:38] [02:22:38]POST finish read [02:22:38]Found Content-Length = 799 [02:22:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965155", "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" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4358770", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:22:38]execute_script... [02:22:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965155", "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" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4358770", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:22:38]POST & json_proto [02:22:38]process_json_proto [02:22:38]json parsed OK: [02:22:38]protocol is kg_v1.0 [02:22:38]action value=close_receipt [02:22:38]process_action close_receipt [02:22:38]cmd_close_receipt [02:22:38]MH_GetDate [02:22:38]Write to MH i2c: F0 00 00 E3 12 E4 [02:22:38]Write i2c OK [02:22:38]MH_I2C_Read... [02:22:38]Read from MH i2c: F0 [02:22:38]MH_I2C_Read... [02:22:38]Read from MH i2c: F0 09 00 [02:22:38]MH_I2C_Read... [02:22:38]Read from MH i2c: F0 09 00 E3 12 00 F0 5D 18 67 82 C9 CF 66 39 [02:22:38]GetLastDocTimeStamp 1729648834 [02:22:38]current date 1729650160 [02:22:38]FM_GetShiftState [02:22:38]SAM_PROTO_GetShiftState [02:22:38]wFMCommunicate request_size=4 [02:22:38]MH_SAM_APDU [02:22:38]CAPDU: 80 13 01 00 [02:22:38]Write to MH i2c: E2 08 00 E4 12 80 13 01 00 00 00 00 00 73 [02:22:38]Write i2c OK [02:22:38]MH_I2C_Read... [02:22:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:22:38]Read from MH i2c: E2 [02:22:38]MH_I2C_Read... [02:22:38]Read from MH i2c: E2 0E 00 [02:22:38]MH_I2C_Read... [02:22:38]Read from MH i2c: E2 0E 00 E4 12 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 AD [02:22:38]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [02:22:38]wFMCommunicate OK [02:22:38]SAM_PROTO_GetShiftState done [02:22:38]FM_GetShiftState done [02:22:38]opened in 1729642352 [02:22:38]opened+sec_in_day 1729728752 [02:22:38]quantity*price = 0 [02:22:38]sum+1 = 1 [02:22:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 21 23.10.2024 02:22 Смена: 536 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливные Талоны 4358770 ФМ: 0000000000871839 ФД: 228485 ФПД: 109135497613831 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T022240&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228485&fm=109135497613831&tin=02508201610067®Number=0000000000091685&sum=0 [02:22:39]StoreToDocumentArchive [02:22:39]shift 536 fd 228485 [02:22:39]save to /storage/0536/doc_00228485 [02:22:39]save last doc name /storage/0536/doc_00228485 to /storage/kkm_last_doc_name [02:22:39]save OK [02:22:39]Clear old archive folders... [02:22:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:22:39]tlvbuf is 002869B0 [02:22:39]SAM_PROTO_ClearQueue [02:22:39]wFMCommunicate request_size=4 [02:22:39]MH_SAM_APDU [02:22:39]CAPDU: 80 09 00 00 [02:22:39]Write to MH i2c: E2 08 00 F1 12 80 09 00 00 00 00 00 00 75 [02:22:39]Write i2c OK [02:22:39]MH_I2C_Read... [02:22:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:22:39]Read from MH i2c: E2 [02:22:39]MH_I2C_Read... [02:22:39]Read from MH i2c: E2 03 00 [02:22:39]MH_I2C_Read... [02:22:39]Read from MH i2c: E2 03 00 F1 12 00 90 00 77 [02:22:39]RAPDU: 90 00 [02:22:39]wFMCommunicate OK [02:22:39]SAM_PROTO_ClearQueue done [02:22:39]KKMCreateOFDPacket [02:22:39]OFDProtocolAddRootSTLVToBuf [02:22:39]FM_MakeSignedData [02:22:39]FM_MakeSignedData [02:22:39]SAM_PROTO_SignData [02:22:39]wFMCommunicate request_size=4 [02:22:39]MH_SAM_APDU [02:22:39]CAPDU: 80 0D 01 02 [02:22:39]Write to MH i2c: E2 08 00 F2 12 80 0D 01 02 00 00 00 00 7D [02:22:39]Write i2c OK [02:22:39]MH_I2C_Read... [02:22:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:22:39]Read from MH i2c: E2 [02:22:39]MH_I2C_Read... [02:22:39]Read from MH i2c: E2 03 00 [02:22:39]MH_I2C_Read... [02:22:39]Read from MH i2c: E2 03 00 F2 12 00 90 00 78 [02:22:39]RAPDU: 90 00 [02:22:39]wFMCommunicate OK [02:22:39]wFMCommunicate request_size=255 [02:22:39]MH_SAM_APDU [02:22: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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 F0 5D 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 85 7C 03 00 35 04 06 00 63 42 16 91 [02:22:39]Write to MH i2c: E2 02 01 F3 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 F0 5D 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 85 7C 03 00 35 04 06 00 63 42 16 91 00 00 54 [02:22:39]Write i2c OK [02:22:39]MH_I2C_Read... [02:22:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:22:39]Read from MH i2c: E2 [02:22:39]MH_I2C_Read... [02:22:39]Read from MH i2c: E2 03 00 [02:22:39]MH_I2C_Read... [02:22:39]Read from MH i2c: E2 03 00 F3 12 00 90 00 79 [02:22:39]RAPDU: 90 00 [02:22:39]wFMCommunicate OK [02:22:39]wFMCommunicate request_size=7 [02:22:39]MH_SAM_APDU [02:22:39]CAPDU: 80 0D 02 02 02 52 07 [02:22:39]Write to MH i2c: E2 0A 00 F4 12 80 0D 02 02 02 00 52 07 00 00 DD [02:22:39]Write i2c OK [02:22:39]MH_I2C_Read... [02:22:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:22:39]Read from MH i2c: E2 [02:22:39]MH_I2C_Read... [02:22:39]Read from MH i2c: E2 03 00 [02:22:39]MH_I2C_Read... [02:22:39]Read from MH i2c: E2 03 00 F4 12 00 90 00 7A [02:22:39]RAPDU: 90 00 [02:22:39]wFMCommunicate OK [02:22:39]wFMCommunicate request_size=4 [02:22:39]MH_SAM_APDU [02:22:39]CAPDU: 80 0D 03 02 [02:22:39]Write to MH i2c: E2 08 00 F5 12 80 0D 03 02 00 00 00 00 82 [02:22:39]Write i2c OK [02:22:39]MH_I2C_Read... [02:22:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:22:39]Read from MH i2c: E2 [02:22:40]MH_I2C_Read... [02:22:40]Read from MH i2c: E2 0B 00 [02:22:40]MH_I2C_Read... [02:22:40]Read from MH i2c: E2 0B 00 F5 12 00 BB 32 50 80 AB 40 84 A9 90 00 58 [02:22:40]RAPDU: BB 32 50 80 AB 40 84 A9 90 00 [02:22:40]wFMCommunicate OK [02:22:40]SAM_PROTO_SignData done [02:22:40]FM_MakeSignedData done [02:22:40]CreateOFDProtocolMessage [02:22:40]wFMCommunicate request_size=4 [02:22:40]MH_SAM_APDU [02:22:40]CAPDU: 80 11 00 00 [02:22:40]Write to MH i2c: E2 08 00 F6 12 80 11 00 00 00 00 00 00 82 [02:22:40]Write i2c OK [02:22:40]MH_I2C_Read... [02:22:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:22:40]Read from MH i2c: E2 [02:22:40]MH_I2C_Read... [02:22:40]Read from MH i2c: E2 17 00 [02:22:40]MH_I2C_Read... [02:22:40]Read from MH i2c: E2 17 00 F6 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D9 [02:22:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [02:22:40]wFMCommunicate OK [02:22:40]CreateOFDProtocolMessage done [02:22:40]OFDSenderStorePacket 228485 [02:22:40]StoreOFDPacket docnum=228485 [02:22:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 4E BB 04 01 8E E1 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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 F0 5D 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 85 7C 03 00 35 04 06 00 63 42 16 91 52 07 BB 32 50 80 AB 40 84 A9 [02:22:40]CheckFolder [02:22:40]dirname=/storage/ofd_packets [02:22:40]CheckFolder done [02:22:40]ProducePacketName [02:22:40]name=ofd_packets/00228485 [02:22:40]NVStorageSaveData ofd_packets/00228485 [02:22:40]File name is /storage/ofd_packets/00228485 [02:22:40]Write 298 bytes [02:22:40]NVStorageSaveData done [02:22:40]OFDSenderStorePacket done [02:22:40]KKMCreateOFDPacket done [02:22:40]NVStorageSaveData kkm_last_timestamp [02:22:40]File name is /storage/kkm_last_timestamp [02:22:40]Write 4 bytes [02:22:40]NVStorageSaveData done [02:22:40]ExternCall_PrintAddStr [02:22:40]wPrintStart [02:22:40]Write to MH i2c: 01 00 00 F7 12 09 [02:22:40]Write i2c OK [02:22:40]MH_I2C_Read... [02:22:40]Read from MH i2c: 01 [02:22:40]MH_I2C_Read... [02:22:40]Read from MH i2c: 01 07 00 [02:22:40]MH_I2C_Read... [02:22:40]Read from MH i2c: 01 07 00 F7 12 00 00 00 00 00 FF 0F 1E [02:22:40]RasterBufferAndPrint [02:22:40]line Счет N : (1)1965155 [02:22:40]line ИНН: 02508201610067 [02:22:40]line Контрольно-Кассовый Чек [02:22:40]line ПРОДАЖА [02:22:40]line ТРК (МРК, ГНК) : 21 [02:22:40]line Товар: 2710194210 [02:22:40]line ДТ-К-5 [02:22:40]line 100.000 * 0.00 [02:22:40]line = 0.00 [02:22:40]line НДС 12% НСП 1% [02:22:40]line > о реализуемом товаре [02:22:40]line ИТОГО: 0.00 [02:22:40]line НСП 1% : 0.00 [02:22:40]line НДС 12% : 0.00 [02:22:40]line Наличными: 0.00 [02:22:40]line Безнал.: 0.00 [02:22:40]line Место: АЗС № 133 "Партнер Нефть" [02:22:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [02:22:40]line СНО: Общий режим [02:22:40]line Чек 21 23.10.2024 02:22 [02:22:40]line Смена: 536 ФФД: 1.0 [02:22:40]line ЗНМ: 0300000091 [02:22:40]line РНМ: 0000000000091685 [02:22:40]line Версия ККМ: 001 [02:22:40]line Талоны: Топливные Талоны [02:22:40]line 4358770 [02:22:40]line ФМ: 0000000000871839 [02:22:40]line ФД: 228485 [02:22:40]line ФПД: 109135497613831 [02:22:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T022240&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228485&fm=109135497613831&tin=02508201610067®Number=0000000000091685&sum=0 [02:22:40]OFD Sender: Processing packet 228485 [packets to send 38, broken 37] [02:22:40]ProducePacketName [02:22:40]name=ofd_packets/00228485 [02:22:40]OFD Sender: To server: pG, [02:22:40]CommunicateWithHost lk.salyk.kg:30040 [02:22:40]ConnectInit lk.salyk.kg [02:22:40]written 0, free lines is 4095 [02:22:40]Connected sock=10 [02:22:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 4E BB 04 01 8E E1 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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 F0 5D 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 85 7C 03 00 35 04 06 00 63 42 16 91 52 07 BB 32 50 80 AB 40 84 A9 [02:22:40]Write to MH i2c: 01 00 00 20 13 33 [02:22:40]Write i2c OK [02:22:40]MH_I2C_Read... [02:22:40]Read from MH i2c: 01 [02:22:40]MH_I2C_Read... [02:22:40]Read from MH i2c: 01 07 00 [02:22:40]MH_I2C_Read... [02:22:40]Read from MH i2c: 01 07 00 20 13 00 00 00 00 00 AD 0C F3 [02:22:40]RasterBufferAndPrint [02:22:40]line [02:22:40]line [02:22:40]line [02:22:40]line [02:22:40]line [02:22:40]written 0, free lines is 3249 [02:22:40]MH_Cut [02:22:40]Write to MH i2c: D1 01 00 27 13 01 0C [02:22:40]Write i2c OK [02:22:40]MH_I2C_Read... [02:22:40]Read from MH i2c: D1 [02:22:40]MH_I2C_Read... [02:22:40]Read from MH i2c: D1 01 00 [02:22:40]MH_I2C_Read... [02:22:40]Read from MH i2c: D1 01 00 27 13 00 0B [02:22:40]Write to MH i2c: 01 00 00 28 13 3B [02:22:40]Write i2c OK [02:22:40]MH_I2C_Read... [02:22:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 91 4A 47 00 B0 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 38 37 31 38 33 39 10 04 04 00 85 7C 03 00 F4 03 04 00 E6 08 18 67 B6 04 01 00 00 7C C7 B5 9E 13 08 F6 BA [02:22:40]CommunicateWithHost err = 0 [02:22:40]CheckOFDResponse [02:22:40]1017 (14) - 77093643461234 [02:22:40]1041 (16) - 0000000000871839 [02:22:40]1040 (4) - 228485 [02:22:40]1012 (4) - 22.10.2024 20:19 [02:22:40]1206 (1) - 0 [02:22:40]OFD Sender: Remove packet 228485 [02:22:40]ProducePacketName [02:22:40]name=ofd_packets/00228485 [02:22:40]NVStorageDeleteData [02:22:41]OFD Sender: No OFD packet to send [02:22:41]*** Cut start [02:22:41]*** Partial cut [02:22:41]*** CUTSNS_PIN = 1 [02:22:41]*** CUTSNS_PIN = 0 [02:22:42]*** Brake cut motor [02:22:42]Read from MH i2c: 01 [02:22:42]MH_I2C_Read... [02:22:42]*** Stop cut motor [02:22:42]*** Cut end [02:22:42]Read from MH i2c: 01 07 00 [02:22:42]MH_I2C_Read... [02:22:42]Read from MH i2c: 01 07 00 28 13 00 00 00 00 00 FF 0F 50 [02:22:42]process_action close_receipt done [02:22:42]requested_data is exist [02:22:42]produce_requested_data [02:22:42]requested_item fm.sn is exist - process it [02:22:42]wFMCommunicate request_size=4 [02:22:42]MH_SAM_APDU [02:22:42]CAPDU: 80 11 00 00 [02:22:42]Write to MH i2c: E2 08 00 29 13 80 11 00 00 00 00 00 00 B6 [02:22:42]Write i2c OK [02:22:42]MH_I2C_Read... [02:22:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:22:42]Read from MH i2c: E2 [02:22:42]MH_I2C_Read... [02:22:42]Read from MH i2c: E2 17 00 [02:22:42]MH_I2C_Read... [02:22:42]Read from MH i2c: E2 17 00 29 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0D [02:22:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [02:22:42]wFMCommunicate OK [02:22:42]requested_item fd.num is exist - process it [02:22:42]SAM_PROTO_GetFieldsCounters [02:22:42]wFMCommunicate request_size=4 [02:22:42]MH_SAM_APDU [02:22:42]CAPDU: 80 13 00 00 [02:22:42]Write to MH i2c: E2 08 00 2A 13 80 13 00 00 00 00 00 00 B9 [02:22:42]Write i2c OK [02:22:42]MH_I2C_Read... [02:22:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:22:42]Read from MH i2c: E2 [02:22:42]MH_I2C_Read... [02:22:42]Read from MH i2c: E2 62 00 [02:22:42]MH_I2C_Read... [02:22:42]Read from MH i2c: E2 62 00 2A 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 85 7C 03 00 0E 04 04 00 18 02 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 3F [02:22:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 85 7C 03 00 0E 04 04 00 18 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:22:42]wFMCommunicate OK [02:22:42]SAM_PROTO_GetFieldsCounters done [02:22:42]requested_item shift.num is exist - process it [02:22:42]requested_item shift.opened is exist - process it [02:22:42]req_shift_opened [02:22:42]FM_GetShiftState [02:22:42]SAM_PROTO_GetShiftState [02:22:42]wFMCommunicate request_size=4 [02:22:42]MH_SAM_APDU [02:22:42]CAPDU: 80 13 01 00 [02:22:42]Write to MH i2c: E2 08 00 2B 13 80 13 01 00 00 00 00 00 BB [02:22:42]Write i2c OK [02:22:42]MH_I2C_Read... [02:22:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:22:42]Read from MH i2c: E2 [02:22:42]MH_I2C_Read... [02:22:42]Read from MH i2c: E2 0E 00 [02:22:42]MH_I2C_Read... [02:22:42]Read from MH i2c: E2 0E 00 2B 13 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 F5 [02:22:42]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [02:22:42]wFMCommunicate OK [02:22:42]SAM_PROTO_GetShiftState done [02:22:42]FM_GetShiftState done [02:22:42]req_shift_opened done [02:22:42]requested_item shift.open_date is exist - process it [02:22:42]req_shift_open_date [02:22:42]req_shift_open_date done [02:22:42]produce_requested_data done [02:22:42]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228485,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352} [02:22:42]process_action_free close_receipt [02:22:42]json_value_free [02:22:42]json_value_free done [02:22:42]process_json_proto returns [02:22:42]Send response to host [02:22:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228485,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352}}} [02:22:42]free response buf [02:22:42]execute_script done [02:22:42]execute_script returns [02:22:42]free content buf [02:22:42]Sock 9.Close socket [02:22:42]Sock 9.Thread stoped [02:22:46]OFD Sender: No OFD packet to send [02:22:47]accept exits with 7 [02:22:47]New connection [02:22:47]New thread 3066834276 created [02:22:47]Thread 3066977636 joined [02:22:47]Waiting for new connection... [02:22:47] Sock 7.Parse request [02:22:47]Sock 7.Check first char [02:22:47]Sock 7.First char is OK [02:22:47]request: POST /json_proto HTTP/1.0 [02:22:47]Method: POST [02:22:47]URL: /json_proto [02:22:47]Method is POST - this is cgi request [02:22:47]url: /json_proto [02:22:47]query_string will be loaded in cgi processing [02:22:47]execute_cgi json_proto POST (null) [02:22:47]execute_cgi path=json_proto method=POST [02:22:47]POST find Content-Length [02:22:47]Host: 172.17.44.195:8080 [02:22:47]Content-Length: 799 [02:22:47]Content-Type: application/json [02:22:47] [02:22:47]POST finish read [02:22:47]Found Content-Length = 799 [02:22:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965154", "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" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4358765", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:22:47]execute_script... [02:22:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965154", "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" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4358765", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:22:47]POST & json_proto [02:22:47]process_json_proto [02:22:47]json parsed OK: [02:22:47]protocol is kg_v1.0 [02:22:47]action value=close_receipt [02:22:47]process_action close_receipt [02:22:47]cmd_close_receipt [02:22:47]MH_GetDate [02:22:47]Write to MH i2c: F0 00 00 2C 13 2E [02:22:47]Write i2c OK [02:22:47]MH_I2C_Read... [02:22:47]Read from MH i2c: F0 [02:22:47]MH_I2C_Read... [02:22:47]Read from MH i2c: F0 09 00 [02:22:47]MH_I2C_Read... [02:22:47]Read from MH i2c: F0 09 00 2C 13 00 F9 5D 18 67 82 C9 CF 66 8C [02:22:47]GetLastDocTimeStamp 1729650160 [02:22:47]current date 1729650169 [02:22:47]FM_GetShiftState [02:22:47]SAM_PROTO_GetShiftState [02:22:47]wFMCommunicate request_size=4 [02:22:47]MH_SAM_APDU [02:22:47]CAPDU: 80 13 01 00 [02:22:47]Write to MH i2c: E2 08 00 2D 13 80 13 01 00 00 00 00 00 BD [02:22:47]Write i2c OK [02:22:47]MH_I2C_Read... [02:22:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:22:47]Read from MH i2c: E2 [02:22:47]MH_I2C_Read... [02:22:47]Read from MH i2c: E2 0E 00 [02:22:47]MH_I2C_Read... [02:22:47]Read from MH i2c: E2 0E 00 2D 13 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 F7 [02:22:47]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [02:22:47]wFMCommunicate OK [02:22:47]SAM_PROTO_GetShiftState done [02:22:47]FM_GetShiftState done [02:22:47]opened in 1729642352 [02:22:47]opened+sec_in_day 1729728752 [02:22:47]quantity*price = 0 [02:22:47]sum+1 = 1 [02:22:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 22 23.10.2024 02:22 Смена: 536 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливные Талоны 4358765 ФМ: 0000000000871839 ФД: 228486 ФПД: 147640948283133 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T022249&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228486&fm=147640948283133&tin=02508201610067®Number=0000000000091685&sum=0 [02:22:48]StoreToDocumentArchive [02:22:48]shift 536 fd 228486 [02:22:48]save to /storage/0536/doc_00228486 [02:22:48]save last doc name /storage/0536/doc_00228486 to /storage/kkm_last_doc_name [02:22:48]save OK [02:22:48]Clear old archive folders... [02:22:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:22:48]tlvbuf is 002A9D70 [02:22:48]SAM_PROTO_ClearQueue [02:22:48]wFMCommunicate request_size=4 [02:22:48]MH_SAM_APDU [02:22:48]CAPDU: 80 09 00 00 [02:22:48]Write to MH i2c: E2 08 00 3A 13 80 09 00 00 00 00 00 00 BF [02:22:48]Write i2c OK [02:22:48]MH_I2C_Read... [02:22:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:22:48]Read from MH i2c: E2 [02:22:48]MH_I2C_Read... [02:22:48]Read from MH i2c: E2 03 00 [02:22:48]MH_I2C_Read... [02:22:48]Read from MH i2c: E2 03 00 3A 13 00 90 00 C1 [02:22:48]RAPDU: 90 00 [02:22:48]wFMCommunicate OK [02:22:48]SAM_PROTO_ClearQueue done [02:22:48]KKMCreateOFDPacket [02:22:48]OFDProtocolAddRootSTLVToBuf [02:22:48]FM_MakeSignedData [02:22:48]FM_MakeSignedData [02:22:48]SAM_PROTO_SignData [02:22:48]wFMCommunicate request_size=4 [02:22:48]MH_SAM_APDU [02:22:48]CAPDU: 80 0D 01 02 [02:22:48]Write to MH i2c: E2 08 00 3B 13 80 0D 01 02 00 00 00 00 C7 [02:22:48]Write i2c OK [02:22:48]MH_I2C_Read... [02:22:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:22:48]Read from MH i2c: E2 [02:22:48]MH_I2C_Read... [02:22:48]Read from MH i2c: E2 03 00 [02:22:48]MH_I2C_Read... [02:22:48]Read from MH i2c: E2 03 00 3B 13 00 90 00 C2 [02:22:48]RAPDU: 90 00 [02:22:48]wFMCommunicate OK [02:22:48]wFMCommunicate request_size=255 [02:22:48]MH_SAM_APDU [02:22:48]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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 F9 5D 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 86 7C 03 00 35 04 06 00 86 47 56 46 [02:22:48]Write to MH i2c: E2 02 01 3C 13 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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 F9 5D 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 86 7C 03 00 35 04 06 00 86 47 56 46 00 00 C6 [02:22:48]Write i2c OK [02:22:48]MH_I2C_Read... [02:22:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:22:48]Read from MH i2c: E2 [02:22:48]MH_I2C_Read... [02:22:48]Read from MH i2c: E2 03 00 [02:22:48]MH_I2C_Read... [02:22:48]Read from MH i2c: E2 03 00 3C 13 00 90 00 C3 [02:22:48]RAPDU: 90 00 [02:22:48]wFMCommunicate OK [02:22:48]wFMCommunicate request_size=7 [02:22:48]MH_SAM_APDU [02:22:48]CAPDU: 80 0D 02 02 02 D6 FD [02:22:48]Write to MH i2c: E2 0A 00 3D 13 80 0D 02 02 02 00 D6 FD 00 00 A1 [02:22:48]Write i2c OK [02:22:48]MH_I2C_Read... [02:22:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:22:49]Read from MH i2c: E2 [02:22:49]MH_I2C_Read... [02:22:49]Read from MH i2c: E2 03 00 [02:22:49]MH_I2C_Read... [02:22:49]Read from MH i2c: E2 03 00 3D 13 00 90 00 C4 [02:22:49]RAPDU: 90 00 [02:22:49]wFMCommunicate OK [02:22:49]wFMCommunicate request_size=4 [02:22:49]MH_SAM_APDU [02:22:49]CAPDU: 80 0D 03 02 [02:22:49]Write to MH i2c: E2 08 00 3E 13 80 0D 03 02 00 00 00 00 CC [02:22:49]Write i2c OK [02:22:49]MH_I2C_Read... [02:22:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:22:49]Read from MH i2c: E2 [02:22:49]MH_I2C_Read... [02:22:49]Read from MH i2c: E2 0B 00 [02:22:49]MH_I2C_Read... [02:22:49]Read from MH i2c: E2 0B 00 3E 13 00 78 D7 DB B3 8E B1 9E B3 90 00 3A [02:22:49]RAPDU: 78 D7 DB B3 8E B1 9E B3 90 00 [02:22:49]wFMCommunicate OK [02:22:49]SAM_PROTO_SignData done [02:22:49]FM_MakeSignedData done [02:22:49]CreateOFDProtocolMessage [02:22:49]wFMCommunicate request_size=4 [02:22:49]MH_SAM_APDU [02:22:49]CAPDU: 80 11 00 00 [02:22:49]Write to MH i2c: E2 08 00 3F 13 80 11 00 00 00 00 00 00 CC [02:22:49]Write i2c OK [02:22:49]MH_I2C_Read... [02:22:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:22:49]Read from MH i2c: E2 [02:22:49]MH_I2C_Read... [02:22:49]Read from MH i2c: E2 17 00 [02:22:49]MH_I2C_Read... [02:22:49]Read from MH i2c: E2 17 00 3F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 23 [02:22:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [02:22:49]wFMCommunicate OK [02:22:49]CreateOFDProtocolMessage done [02:22:49]OFDSenderStorePacket 228486 [02:22:49]StoreOFDPacket docnum=228486 [02:22:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 C5 12 04 01 E5 6C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 F9 5D 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 86 7C 03 00 35 04 06 00 86 47 56 46 D6 FD 78 D7 DB B3 8E B1 9E B3 [02:22:49]CheckFolder [02:22:49]dirname=/storage/ofd_packets [02:22:49]CheckFolder done [02:22:49]ProducePacketName [02:22:49]name=ofd_packets/00228486 [02:22:49]NVStorageSaveData ofd_packets/00228486 [02:22:49]File name is /storage/ofd_packets/00228486 [02:22:49]Write 298 bytes [02:22:49]NVStorageSaveData done [02:22:49]OFDSenderStorePacket done [02:22:49]KKMCreateOFDPacket done [02:22:49]NVStorageSaveData kkm_last_timestamp [02:22:49]File name is /storage/kkm_last_timestamp [02:22:49]Write 4 bytes [02:22:49]NVStorageSaveData done [02:22:49]ExternCall_PrintAddStr [02:22:49]wPrintStart [02:22:49]Write to MH i2c: 01 00 00 40 13 53 [02:22:49]Write i2c OK [02:22:49]MH_I2C_Read... [02:22:49]Read from MH i2c: 01 [02:22:49]MH_I2C_Read... [02:22:49]Read from MH i2c: 01 07 00 [02:22:49]MH_I2C_Read... [02:22:49]Read from MH i2c: 01 07 00 40 13 00 00 00 00 00 FF 0F 68 [02:22:49]RasterBufferAndPrint [02:22:49]line Счет N : (1)1965154 [02:22:49]line ИНН: 02508201610067 [02:22:49]line Контрольно-Кассовый Чек [02:22:49]line ПРОДАЖА [02:22:49]line ТРК (МРК, ГНК) : 11 [02:22:49]line Товар: 2710194210 [02:22:49]line ДТ-К-5 [02:22:49]line 100.000 * 0.00 [02:22:49]line = 0.00 [02:22:49]line НДС 12% НСП 1% [02:22:49]line > о реализуемом товаре [02:22:49]line ИТОГО: 0.00 [02:22:49]line НСП 1% : 0.00 [02:22:49]line НДС 12% : 0.00 [02:22:49]line Наличными: 0.00 [02:22:49]line Безнал.: 0.00 [02:22:49]line Место: АЗС № 133 "Партнер Нефть" [02:22:49]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [02:22:49]line СНО: Общий режим [02:22:49]line Чек 22 23.10.2024 02:22 [02:22:49]line Смена: 536 ФФД: 1.0 [02:22:49]line ЗНМ: 0300000091 [02:22:49]line РНМ: 0000000000091685 [02:22:49]line Версия ККМ: 001 [02:22:49]line Талоны: Топливные Талоны [02:22:49]line 4358765 [02:22:49]line ФМ: 0000000000871839 [02:22:49]line ФД: 228486 [02:22:49]line ФПД: 147640948283133 [02:22:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T022249&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228486&fm=147640948283133&tin=02508201610067®Number=0000000000091685&sum=0 [02:22:49]written 0, free lines is 4095 [02:22:49]OFD Sender: Processing packet 228486 [packets to send 38, broken 37] [02:22:49]ProducePacketName [02:22:49]name=ofd_packets/00228486 [02:22:49]OFD Sender: To server: pG, [02:22:49]CommunicateWithHost lk.salyk.kg:30040 [02:22:49]ConnectInit lk.salyk.kg [02:22:49]Connected sock=9 [02:22:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 C5 12 04 01 E5 6C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 F9 5D 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 86 7C 03 00 35 04 06 00 86 47 56 46 D6 FD 78 D7 DB B3 8E B1 9E B3 [02:22:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 84 6A 47 00 C0 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 86 7C 03 00 F4 03 04 00 EF 08 18 67 B6 04 01 00 00 01 7E 43 B0 58 E2 2E CF [02:22:49]CommunicateWithHost err = 0 [02:22:49]CheckOFDResponse [02:22:49]1017 (14) - 77093643461234 [02:22:49]1041 (16) - 0000000000871839 [02:22:49]1040 (4) - 228486 [02:22:49]1012 (4) - 22.10.2024 20:19 [02:22:49]1206 (1) - 0 [02:22:49]OFD Sender: Remove packet 228486 [02:22:49]ProducePacketName [02:22:49]name=ofd_packets/00228486 [02:22:49]NVStorageDeleteData [02:22:49]Write to MH i2c: 01 00 00 69 13 7C [02:22:49]Write i2c OK [02:22:49]MH_I2C_Read... [02:22:49]Read from MH i2c: 01 [02:22:49]MH_I2C_Read... [02:22:49]Read from MH i2c: 01 07 00 [02:22:49]MH_I2C_Read... [02:22:49]Read from MH i2c: 01 07 00 69 13 00 00 00 00 00 BA 0C 49 [02:22:49]RasterBufferAndPrint [02:22:49]line [02:22:49]line [02:22:49]line [02:22:49]line [02:22:49]line [02:22:49]written 0, free lines is 3263 [02:22:49]MH_Cut [02:22:49]Write to MH i2c: D1 01 00 70 13 01 55 [02:22:49]Write i2c OK [02:22:49]MH_I2C_Read... [02:22:49]Read from MH i2c: D1 [02:22:49]MH_I2C_Read... [02:22:49]Read from MH i2c: D1 01 00 [02:22:49]MH_I2C_Read... [02:22:49]Read from MH i2c: D1 01 00 70 13 00 54 [02:22:49]Write to MH i2c: 01 00 00 71 13 84 [02:22:49]Write i2c OK [02:22:49]MH_I2C_Read... [02:22:49]OFD Sender: No OFD packet to send [02:22:50]*** Cut start [02:22:50]*** Partial cut [02:22:50]*** CUTSNS_PIN = 1 [02:22:50]*** CUTSNS_PIN = 0 [02:22:50]*** Brake cut motor [02:22:51]Read from MH i2c: 01 [02:22:51]MH_I2C_Read... [02:22:51]*** Stop cut motor [02:22:51]*** Cut end [02:22:51]Read from MH i2c: 01 07 00 [02:22:51]MH_I2C_Read... [02:22:51]Read from MH i2c: 01 07 00 71 13 00 00 00 00 00 FF 0F 99 [02:22:51]process_action close_receipt done [02:22:51]requested_data is exist [02:22:51]produce_requested_data [02:22:51]requested_item fm.sn is exist - process it [02:22:51]wFMCommunicate request_size=4 [02:22:51]MH_SAM_APDU [02:22:51]CAPDU: 80 11 00 00 [02:22:51]Write to MH i2c: E2 08 00 72 13 80 11 00 00 00 00 00 00 FF [02:22:51]Write i2c OK [02:22:51]MH_I2C_Read... [02:22:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:22:51]Read from MH i2c: E2 [02:22:51]MH_I2C_Read... [02:22:51]Read from MH i2c: E2 17 00 [02:22:51]MH_I2C_Read... [02:22:51]Read from MH i2c: E2 17 00 72 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 56 [02:22:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [02:22:51]wFMCommunicate OK [02:22:51]requested_item fd.num is exist - process it [02:22:51]SAM_PROTO_GetFieldsCounters [02:22:51]wFMCommunicate request_size=4 [02:22:51]MH_SAM_APDU [02:22:51]CAPDU: 80 13 00 00 [02:22:51]Write to MH i2c: E2 08 00 73 13 80 13 00 00 00 00 00 00 02 [02:22:51]Write i2c OK [02:22:51]MH_I2C_Read... [02:22:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:22:51]Read from MH i2c: E2 [02:22:51]MH_I2C_Read... [02:22:51]Read from MH i2c: E2 62 00 [02:22:51]MH_I2C_Read... [02:22:51]Read from MH i2c: E2 62 00 73 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 86 7C 03 00 0E 04 04 00 18 02 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 8C [02:22:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 86 7C 03 00 0E 04 04 00 18 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:22:51]wFMCommunicate OK [02:22:51]SAM_PROTO_GetFieldsCounters done [02:22:51]requested_item shift.num is exist - process it [02:22:51]requested_item shift.opened is exist - process it [02:22:51]req_shift_opened [02:22:51]FM_GetShiftState [02:22:51]SAM_PROTO_GetShiftState [02:22:51]wFMCommunicate request_size=4 [02:22:51]MH_SAM_APDU [02:22:51]CAPDU: 80 13 01 00 [02:22:51]Write to MH i2c: E2 08 00 74 13 80 13 01 00 00 00 00 00 04 [02:22:51]Write i2c OK [02:22:51]MH_I2C_Read... [02:22:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:22:51]Read from MH i2c: E2 [02:22:51]MH_I2C_Read... [02:22:51]Read from MH i2c: E2 0E 00 [02:22:51]MH_I2C_Read... [02:22:51]Read from MH i2c: E2 0E 00 74 13 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 3E [02:22:51]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [02:22:51]wFMCommunicate OK [02:22:51]SAM_PROTO_GetShiftState done [02:22:51]FM_GetShiftState done [02:22:51]req_shift_opened done [02:22:51]requested_item shift.open_date is exist - process it [02:22:51]req_shift_open_date [02:22:51]req_shift_open_date done [02:22:51]produce_requested_data done [02:22:51]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228486,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352} [02:22:51]process_action_free close_receipt [02:22:51]json_value_free [02:22:51]json_value_free done [02:22:51]process_json_proto returns [02:22:51]Send response to host [02:22:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228486,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352}}} [02:22:51]free response buf [02:22:51]execute_script done [02:22:51]execute_script returns [02:22:51]free content buf [02:22:51]Sock 7.Close socket [02:22:51]Sock 7.Thread stoped [02:22:55]OFD Sender: No OFD packet to send [02:23:00]OFD Sender: No OFD packet to send [02:23:05]OFD Sender: No OFD packet to send [02:23:10]OFD Sender: No OFD packet to send [02:23:15]OFD Sender: No OFD packet to send [02:23:20]OFD Sender: No OFD packet to send [02:23:25]OFD Sender: No OFD packet to send [02:23:30]OFD Sender: No OFD packet to send [02:23:35]OFD Sender: No OFD packet to send [02:23:40]OFD Sender: No OFD packet to send [02:23:45]OFD Sender: No OFD packet to send [02:23:50]OFD Sender: No OFD packet to send [02:23:55]OFD Sender: No OFD packet to send [02:24:00]OFD Sender: No OFD packet to send [02:24:05]OFD Sender: No OFD packet to send [02:24:10]OFD Sender: No OFD packet to send [02:24:15]OFD Sender: No OFD packet to send [02:24:20]OFD Sender: No OFD packet to send [02:24:25]OFD Sender: No OFD packet to send [02:24:30]OFD Sender: No OFD packet to send [02:24:35]OFD Sender: No OFD packet to send [02:24:40]OFD Sender: No OFD packet to send [02:24:45]OFD Sender: No OFD packet to send [02:24:50]OFD Sender: No OFD packet to send [02:24:55]OFD Sender: No OFD packet to send [02:25:00]OFD Sender: No OFD packet to send [02:25:05]OFD Sender: No OFD packet to send [02:25:10]OFD Sender: No OFD packet to send [02:25:15]OFD Sender: No OFD packet to send [02:25:20]OFD Sender: No OFD packet to send [02:25:25]OFD Sender: No OFD packet to send [02:25:29]accept exits with 10 [02:25:29]New connection [02:25:29]New thread 3066977636 created [02:25:29]Thread 3066834276 joined [02:25:29]Waiting for new connection... [02:25:29] Sock 10.Parse request [02:25:29]Sock 10.Check first char [02:25:29]Sock 10.First char is OK [02:25:29]request: POST /json_proto HTTP/1.0 [02:25:29]Method: POST [02:25:29]URL: /json_proto [02:25:29]Method is POST - this is cgi request [02:25:29]url: /json_proto [02:25:29]query_string will be loaded in cgi processing [02:25:29]execute_cgi json_proto POST (null) [02:25:29]execute_cgi path=json_proto method=POST [02:25:29]POST find Content-Length [02:25:29]Host: 172.17.44.195:8080 [02:25:29]Content-Length: 798 [02:25:29]Content-Type: application/json [02:25:29] [02:25:29]POST finish read [02:25:29]Found Content-Length = 798 [02:25:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965156", "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" : 0.00, "quantity" : 80.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4358778", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:25:29]execute_script... [02:25: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)1965156", "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" : 0.00, "quantity" : 80.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4358778", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:25:29]POST & json_proto [02:25:29]process_json_proto [02:25:29]json parsed OK: [02:25:29]protocol is kg_v1.0 [02:25:29]action value=close_receipt [02:25:29]process_action close_receipt [02:25:29]cmd_close_receipt [02:25:29]MH_GetDate [02:25:29]Write to MH i2c: F0 00 00 75 13 77 [02:25:29]Write i2c OK [02:25:29]MH_I2C_Read... [02:25:29]Read from MH i2c: F0 [02:25:29]MH_I2C_Read... [02:25:29]Read from MH i2c: F0 09 00 [02:25:29]MH_I2C_Read... [02:25:29]Read from MH i2c: F0 09 00 75 13 00 9B 5E 18 67 82 C9 CF 66 78 [02:25:29]GetLastDocTimeStamp 1729650169 [02:25:29]current date 1729650331 [02:25:29]FM_GetShiftState [02:25:29]SAM_PROTO_GetShiftState [02:25:29]wFMCommunicate request_size=4 [02:25:29]MH_SAM_APDU [02:25:29]CAPDU: 80 13 01 00 [02:25:29]Write to MH i2c: E2 08 00 76 13 80 13 01 00 00 00 00 00 06 [02:25:29]Write i2c OK [02:25:29]MH_I2C_Read... [02:25:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:25:29]Read from MH i2c: E2 [02:25:29]MH_I2C_Read... [02:25:29]Read from MH i2c: E2 0E 00 [02:25:29]MH_I2C_Read... [02:25:29]Read from MH i2c: E2 0E 00 76 13 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 40 [02:25:29]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [02:25:29]wFMCommunicate OK [02:25:29]SAM_PROTO_GetShiftState done [02:25:29]FM_GetShiftState done [02:25:29]opened in 1729642352 [02:25:29]opened+sec_in_day 1729728752 [02:25:29]quantity*price = 0 [02:25:29]sum+1 = 1 [02:25:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 23 23.10.2024 02:25 Смена: 536 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливные Талоны 4358778 ФМ: 0000000000871839 ФД: 228487 ФПД: 179699270465218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T022531&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228487&fm=179699270465218&tin=02508201610067®Number=0000000000091685&sum=0 [02:25:30]StoreToDocumentArchive [02:25:30]shift 536 fd 228487 [02:25:30]save to /storage/0536/doc_00228487 [02:25:30]save last doc name /storage/0536/doc_00228487 to /storage/kkm_last_doc_name [02:25:30]save OK [02:25:30]Clear old archive folders... [02:25:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:25:30]tlvbuf is 002B3810 [02:25:30]SAM_PROTO_ClearQueue [02:25:30]wFMCommunicate request_size=4 [02:25:30]MH_SAM_APDU [02:25:30]CAPDU: 80 09 00 00 [02:25:30]Write to MH i2c: E2 08 00 83 13 80 09 00 00 00 00 00 00 08 [02:25:30]Write i2c OK [02:25:30]MH_I2C_Read... [02:25:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:25:30]Read from MH i2c: E2 [02:25:30]MH_I2C_Read... [02:25:30]Read from MH i2c: E2 03 00 [02:25:30]MH_I2C_Read... [02:25:30]Read from MH i2c: E2 03 00 83 13 00 90 00 0A [02:25:30]RAPDU: 90 00 [02:25:30]wFMCommunicate OK [02:25:30]SAM_PROTO_ClearQueue done [02:25:30]KKMCreateOFDPacket [02:25:30]OFDProtocolAddRootSTLVToBuf [02:25:30]FM_MakeSignedData [02:25:30]FM_MakeSignedData [02:25:30]SAM_PROTO_SignData [02:25:30]wFMCommunicate request_size=4 [02:25:30]MH_SAM_APDU [02:25:30]CAPDU: 80 0D 01 02 [02:25:30]Write to MH i2c: E2 08 00 84 13 80 0D 01 02 00 00 00 00 10 [02:25:30]Write i2c OK [02:25:30]MH_I2C_Read... [02:25:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:25:30]Read from MH i2c: E2 [02:25:30]MH_I2C_Read... [02:25:30]Read from MH i2c: E2 03 00 [02:25:30]MH_I2C_Read... [02:25:30]Read from MH i2c: E2 03 00 84 13 00 90 00 0B [02:25:30]RAPDU: 90 00 [02:25:30]wFMCommunicate OK [02:25:30]wFMCommunicate request_size=255 [02:25:30]MH_SAM_APDU [02:25: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 80 38 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 9B 5E 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 87 7C 03 00 35 04 06 00 A3 6F 7F 2E [02:25:30]Write to MH i2c: E2 02 01 85 13 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 80 38 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 9B 5E 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 87 7C 03 00 35 04 06 00 A3 6F 7F 2E 00 00 9C [02:25:30]Write i2c OK [02:25:30]MH_I2C_Read... [02:25:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:25:31]Read from MH i2c: E2 [02:25:31]MH_I2C_Read... [02:25:31]Read from MH i2c: E2 03 00 [02:25:31]MH_I2C_Read... [02:25:31]Read from MH i2c: E2 03 00 85 13 00 90 00 0C [02:25:31]RAPDU: 90 00 [02:25:31]wFMCommunicate OK [02:25:31]wFMCommunicate request_size=7 [02:25:31]MH_SAM_APDU [02:25:31]CAPDU: 80 0D 02 02 02 B6 C2 [02:25:31]Write to MH i2c: E2 0A 00 86 13 80 0D 02 02 02 00 B6 C2 00 00 8F [02:25:31]Write i2c OK [02:25:31]MH_I2C_Read... [02:25:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:25:31]Read from MH i2c: E2 [02:25:31]MH_I2C_Read... [02:25:31]Read from MH i2c: E2 03 00 [02:25:31]MH_I2C_Read... [02:25:31]Read from MH i2c: E2 03 00 86 13 00 90 00 0D [02:25:31]RAPDU: 90 00 [02:25:31]wFMCommunicate OK [02:25:31]wFMCommunicate request_size=4 [02:25:31]MH_SAM_APDU [02:25:31]CAPDU: 80 0D 03 02 [02:25:31]Write to MH i2c: E2 08 00 87 13 80 0D 03 02 00 00 00 00 15 [02:25:31]Write i2c OK [02:25:31]MH_I2C_Read... [02:25:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:25:31]Read from MH i2c: E2 [02:25:31]MH_I2C_Read... [02:25:31]Read from MH i2c: E2 0B 00 [02:25:31]MH_I2C_Read... [02:25:31]Read from MH i2c: E2 0B 00 87 13 00 05 D8 21 CF EA 86 96 F1 90 00 DA [02:25:31]RAPDU: 05 D8 21 CF EA 86 96 F1 90 00 [02:25:31]wFMCommunicate OK [02:25:31]SAM_PROTO_SignData done [02:25:31]FM_MakeSignedData done [02:25:31]CreateOFDProtocolMessage [02:25:31]wFMCommunicate request_size=4 [02:25:31]MH_SAM_APDU [02:25:31]CAPDU: 80 11 00 00 [02:25:31]Write to MH i2c: E2 08 00 88 13 80 11 00 00 00 00 00 00 15 [02:25:31]Write i2c OK [02:25:31]MH_I2C_Read... [02:25:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:25:31]Read from MH i2c: E2 [02:25:31]MH_I2C_Read... [02:25:31]Read from MH i2c: E2 17 00 [02:25:31]MH_I2C_Read... [02:25:31]Read from MH i2c: E2 17 00 88 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6C [02:25:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [02:25:31]wFMCommunicate OK [02:25:31]CreateOFDProtocolMessage done [02:25:31]OFDSenderStorePacket 228487 [02:25:31]StoreOFDPacket docnum=228487 [02:25:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 CF BE 04 01 47 7B 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 80 38 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 9B 5E 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 87 7C 03 00 35 04 06 00 A3 6F 7F 2E B6 C2 05 D8 21 CF EA 86 96 F1 [02:25:31]CheckFolder [02:25:31]dirname=/storage/ofd_packets [02:25:31]CheckFolder done [02:25:31]ProducePacketName [02:25:31]name=ofd_packets/00228487 [02:25:31]NVStorageSaveData ofd_packets/00228487 [02:25:31]File name is /storage/ofd_packets/00228487 [02:25:31]Write 298 bytes [02:25:31]NVStorageSaveData done [02:25:31]OFDSenderStorePacket done [02:25:31]KKMCreateOFDPacket done [02:25:31]NVStorageSaveData kkm_last_timestamp [02:25:31]File name is /storage/kkm_last_timestamp [02:25:31]Write 4 bytes [02:25:31]NVStorageSaveData done [02:25:31]ExternCall_PrintAddStr [02:25:31]wPrintStart [02:25:31]Write to MH i2c: 01 00 00 89 13 9C [02:25:31]Write i2c OK [02:25:31]MH_I2C_Read... [02:25:31]Read from MH i2c: 01 [02:25:31]MH_I2C_Read... [02:25:31]Read from MH i2c: 01 07 00 [02:25:31]MH_I2C_Read... [02:25:31]Read from MH i2c: 01 07 00 89 13 00 00 00 00 00 FF 0F B1 [02:25:31]RasterBufferAndPrint [02:25:31]line Счет N : (1)1965156 [02:25:31]line ИНН: 02508201610067 [02:25:31]line Контрольно-Кассовый Чек [02:25:31]line ПРОДАЖА [02:25:31]line ТРК (МРК, ГНК) : 11 [02:25:31]line Товар: 2710194210 [02:25:31]line ДТ-К-5 [02:25:31]line 80.000 * 0.00 [02:25:31]line = 0.00 [02:25:31]line НДС 12% НСП 1% [02:25:31]line > о реализуемом товаре [02:25:31]line ИТОГО: 0.00 [02:25:31]line НСП 1% : 0.00 [02:25:31]line НДС 12% : 0.00 [02:25:31]line Наличными: 0.00 [02:25:31]line Безнал.: 0.00 [02:25:31]line Место: АЗС № 133 "Партнер Нефть" [02:25:31]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [02:25:31]line СНО: Общий режим [02:25:31]line Чек 23 23.10.2024 02:25 [02:25:31]line Смена: 536 ФФД: 1.0 [02:25:31]line ЗНМ: 0300000091 [02:25:31]line РНМ: 0000000000091685 [02:25:31]line Версия ККМ: 001 [02:25:31]line Талоны: Топливные Талоны [02:25:31]line 4358778 [02:25:31]line ФМ: 0000000000871839 [02:25:31]line ФД: 228487 [02:25:31]line ФПД: 179699270465218 [02:25:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T022531&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228487&fm=179699270465218&tin=02508201610067®Number=0000000000091685&sum=0 [02:25:31]OFD Sender: Processing packet 228487 [packets to send 38, broken 37] [02:25:31]ProducePacketName [02:25:31]name=ofd_packets/00228487 [02:25:31]OFD Sender: To server: pG, [02:25:31]CommunicateWithHost lk.salyk.kg:30040 [02:25:31]ConnectInit lk.salyk.kg [02:25:31]written 0, free lines is 4095 [02:25:31]Connected sock=11 [02:25:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 CF BE 04 01 47 7B 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 80 38 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 9B 5E 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 87 7C 03 00 35 04 06 00 A3 6F 7F 2E B6 C2 05 D8 21 CF EA 86 96 F1 [02:25:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 21 D4 47 00 1A 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 38 37 31 38 33 39 10 04 04 00 87 7C 03 00 F4 03 04 00 91 09 18 67 B6 04 01 00 00 81 4C 46 86 D3 3F A3 32 [02:25:31]CommunicateWithHost err = 0 [02:25:31]CheckOFDResponse [02:25:31]1017 (14) - 77093643461234 [02:25:31]1041 (16) - 0000000000871839 [02:25:31]1040 (4) - 228487 [02:25:31]1012 (4) - 22.10.2024 20:22 [02:25:31]1206 (1) - 0 [02:25:31]OFD Sender: Remove packet 228487 [02:25:31]ProducePacketName [02:25:31]name=ofd_packets/00228487 [02:25:31]NVStorageDeleteData [02:25:31]Write to MH i2c: 01 00 00 B2 13 C5 [02:25:31]Write i2c OK [02:25:31]MH_I2C_Read... [02:25:31]Read from MH i2c: 01 [02:25:31]MH_I2C_Read... [02:25:31]Read from MH i2c: 01 07 00 [02:25:31]MH_I2C_Read... [02:25:31]Read from MH i2c: 01 07 00 B2 13 00 00 00 00 00 B6 0C 8E [02:25:31]RasterBufferAndPrint [02:25:31]line [02:25:31]line [02:25:31]line [02:25:31]line [02:25:31]line [02:25:31]written 0, free lines is 3257 [02:25:31]MH_Cut [02:25:31]Write to MH i2c: D1 01 00 B9 13 01 9E [02:25:31]Write i2c OK [02:25:31]MH_I2C_Read... [02:25:31]Read from MH i2c: D1 [02:25:31]MH_I2C_Read... [02:25:31]Read from MH i2c: D1 01 00 [02:25:31]MH_I2C_Read... [02:25:31]Read from MH i2c: D1 01 00 B9 13 00 9D [02:25:31]Write to MH i2c: 01 00 00 BA 13 CD [02:25:31]Write i2c OK [02:25:31]MH_I2C_Read... [02:25:32]OFD Sender: No OFD packet to send [02:25:32]*** Cut start [02:25:32]*** Partial cut [02:25:32]*** CUTSNS_PIN = 1 [02:25:32]*** CUTSNS_PIN = 0 [02:25:33]*** Brake cut motor [02:25:33]Read from MH i2c: 01 [02:25:33]MH_I2C_Read... [02:25:33]*** Stop cut motor [02:25:33]*** Cut end [02:25:33]Read from MH i2c: 01 07 00 [02:25:33]MH_I2C_Read... [02:25:33]Read from MH i2c: 01 07 00 BA 13 00 00 00 00 00 FF 0F E2 [02:25:33]process_action close_receipt done [02:25:33]requested_data is exist [02:25:33]produce_requested_data [02:25:33]requested_item fm.sn is exist - process it [02:25:33]wFMCommunicate request_size=4 [02:25:33]MH_SAM_APDU [02:25:33]CAPDU: 80 11 00 00 [02:25:33]Write to MH i2c: E2 08 00 BB 13 80 11 00 00 00 00 00 00 48 [02:25:33]Write i2c OK [02:25:33]MH_I2C_Read... [02:25:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:25:33]Read from MH i2c: E2 [02:25:33]MH_I2C_Read... [02:25:33]Read from MH i2c: E2 17 00 [02:25:33]MH_I2C_Read... [02:25:33]Read from MH i2c: E2 17 00 BB 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9F [02:25:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [02:25:33]wFMCommunicate OK [02:25:33]requested_item fd.num is exist - process it [02:25:33]SAM_PROTO_GetFieldsCounters [02:25:33]wFMCommunicate request_size=4 [02:25:33]MH_SAM_APDU [02:25:33]CAPDU: 80 13 00 00 [02:25:33]Write to MH i2c: E2 08 00 BC 13 80 13 00 00 00 00 00 00 4B [02:25:33]Write i2c OK [02:25:33]MH_I2C_Read... [02:25:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:25:33]Read from MH i2c: E2 [02:25:33]MH_I2C_Read... [02:25:33]Read from MH i2c: E2 62 00 [02:25:33]MH_I2C_Read... [02:25:33]Read from MH i2c: E2 62 00 BC 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 87 7C 03 00 0E 04 04 00 18 02 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 D9 [02:25:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 87 7C 03 00 0E 04 04 00 18 02 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:25:33]wFMCommunicate OK [02:25:33]SAM_PROTO_GetFieldsCounters done [02:25:33]requested_item shift.num is exist - process it [02:25:33]requested_item shift.opened is exist - process it [02:25:33]req_shift_opened [02:25:33]FM_GetShiftState [02:25:33]SAM_PROTO_GetShiftState [02:25:33]wFMCommunicate request_size=4 [02:25:33]MH_SAM_APDU [02:25:33]CAPDU: 80 13 01 00 [02:25:33]Write to MH i2c: E2 08 00 BD 13 80 13 01 00 00 00 00 00 4D [02:25:33]Write i2c OK [02:25:33]MH_I2C_Read... [02:25:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:25:33]Read from MH i2c: E2 [02:25:33]MH_I2C_Read... [02:25:33]Read from MH i2c: E2 0E 00 [02:25:33]MH_I2C_Read... [02:25:33]Read from MH i2c: E2 0E 00 BD 13 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 87 [02:25:33]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [02:25:33]wFMCommunicate OK [02:25:33]SAM_PROTO_GetShiftState done [02:25:33]FM_GetShiftState done [02:25:33]req_shift_opened done [02:25:33]requested_item shift.open_date is exist - process it [02:25:33]req_shift_open_date [02:25:33]req_shift_open_date done [02:25:33]produce_requested_data done [02:25:33]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228487,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352} [02:25:33]process_action_free close_receipt [02:25:33]json_value_free [02:25:33]json_value_free done [02:25:33]process_json_proto returns [02:25:33]Send response to host [02:25:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228487,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352}}} [02:25:33]free response buf [02:25:33]execute_script done [02:25:33]execute_script returns [02:25:33]free content buf [02:25:33]Sock 10.Close socket [02:25:33]Sock 10.Thread stoped [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:52]OFD Sender: No OFD packet to send [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:22]accept exits with 7 [02:31:22]New connection [02:31:22]New thread 3066834276 created [02:31:22]Thread 3066977636 joined [02:31:22]Waiting for new connection... [02:31:22] Sock 7.Parse request [02:31:22]Sock 7.Check first char [02:31:22]Sock 7.First char is OK [02:31:22]request: POST /json_proto HTTP/1.0 [02:31:22]Method: POST [02:31:22]URL: /json_proto [02:31:22]Method is POST - this is cgi request [02:31:22]url: /json_proto [02:31:22]query_string will be loaded in cgi processing [02:31:22]execute_cgi json_proto POST (null) [02:31:22]execute_cgi path=json_proto method=POST [02:31:22]POST find Content-Length [02:31:22]Host: 172.17.44.195:8080 [02:31:22]Content-Length: 979 [02:31:22]Content-Type: application/json [02:31:22] [02:31:22]POST finish read [02:31:22]Found Content-Length = 979 [02:31:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965157", "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" : 75.20, "quantity" : 93.090, "sum" : 7000.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 93.09 \u0441\u043E\u043C", "deposit" : 7000.00, "total" : 7000.00, "payments": [ { "type": 0, "sum" : 7000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:31:22]execute_script... [02:31: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)1965157", "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" : 75.20, "quantity" : 93.090, "sum" : 7000.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 93.09 \u0441\u043E\u043C", "deposit" : 7000.00, "total" : 7000.00, "payments": [ { "type": 0, "sum" : 7000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:31:22]POST & json_proto [02:31:22]process_json_proto [02:31:22]json parsed OK: [02:31:22]protocol is kg_v1.0 [02:31:22]action value=close_receipt [02:31:22]process_action close_receipt [02:31:22]cmd_close_receipt [02:31:22]MH_GetDate [02:31:22]Write to MH i2c: F0 00 00 BE 13 C0 [02:31:22]Write i2c OK [02:31:22]MH_I2C_Read... [02:31:22]Read from MH i2c: F0 [02:31:22]MH_I2C_Read... [02:31:22]Read from MH i2c: F0 09 00 [02:31:22]MH_I2C_Read... [02:31:22]Read from MH i2c: F0 09 00 BE 13 00 FC 5F 18 67 82 C9 CF 66 23 [02:31:22]GetLastDocTimeStamp 1729650331 [02:31:22]current date 1729650684 [02:31:22]FM_GetShiftState [02:31:22]SAM_PROTO_GetShiftState [02:31:22]wFMCommunicate request_size=4 [02:31:22]MH_SAM_APDU [02:31:22]CAPDU: 80 13 01 00 [02:31:22]Write to MH i2c: E2 08 00 BF 13 80 13 01 00 00 00 00 00 4F [02:31:22]Write i2c OK [02:31:22]MH_I2C_Read... [02:31:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:31:22]Read from MH i2c: E2 [02:31:22]MH_I2C_Read... [02:31:22]Read from MH i2c: E2 0E 00 [02:31:22]MH_I2C_Read... [02:31:22]Read from MH i2c: E2 0E 00 BF 13 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 89 [02:31:22]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [02:31:22]wFMCommunicate OK [02:31:22]SAM_PROTO_GetShiftState done [02:31:22]FM_GetShiftState done [02:31:22]opened in 1729642352 [02:31:22]opened+sec_in_day 1729728752 [02:31:22]quantity*price = 700036 [02:31:22]sum+1 = 700038 [02:31:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 7000.00 Внесено: 7000.00 СДАЧА: 0.00 НСП 1% : 61.95 НДС 12% : 743.40 Наличными: 7000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 24 23.10.2024 02:31 Смена: 536 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Дисконтная программа ДТ номер 133 сэкономлено 93.09 сом ФМ: 0000000000871839 ФД: 228488 ФПД: 134779500426200 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T023124&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228488&fm=134779500426200&tin=02508201610067®Number=0000000000091685&sum=700000 [02:31:24]StoreToDocumentArchive [02:31:24]shift 536 fd 228488 [02:31:24]save to /storage/0536/doc_00228488 [02:31:24]save last doc name /storage/0536/doc_00228488 to /storage/kkm_last_doc_name [02:31:24]save OK [02:31:24]Clear old archive folders... [02:31:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:31:24]tlvbuf is 002B3090 [02:31:24]SAM_PROTO_ClearQueue [02:31:24]wFMCommunicate request_size=4 [02:31:24]MH_SAM_APDU [02:31:24]CAPDU: 80 09 00 00 [02:31:24]Write to MH i2c: E2 08 00 CC 13 80 09 00 00 00 00 00 00 51 [02:31:24]Write i2c OK [02:31:24]MH_I2C_Read... [02:31:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:31:24]Read from MH i2c: E2 [02:31:24]MH_I2C_Read... [02:31:24]Read from MH i2c: E2 03 00 [02:31:24]MH_I2C_Read... [02:31:24]Read from MH i2c: E2 03 00 CC 13 00 90 00 53 [02:31:24]RAPDU: 90 00 [02:31:24]wFMCommunicate OK [02:31:24]SAM_PROTO_ClearQueue done [02:31:24]KKMCreateOFDPacket [02:31:24]OFDProtocolAddRootSTLVToBuf [02:31:24]FM_MakeSignedData [02:31:24]FM_MakeSignedData [02:31:24]SAM_PROTO_SignData [02:31:24]wFMCommunicate request_size=4 [02:31:24]MH_SAM_APDU [02:31:24]CAPDU: 80 0D 01 02 [02:31:24]Write to MH i2c: E2 08 00 CD 13 80 0D 01 02 00 00 00 00 59 [02:31:24]Write i2c OK [02:31:24]MH_I2C_Read... [02:31:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:31:24]Read from MH i2c: E2 [02:31:24]MH_I2C_Read... [02:31:24]Read from MH i2c: E2 03 00 [02:31:24]MH_I2C_Read... [02:31:24]Read from MH i2c: E2 03 00 CD 13 00 90 00 54 [02:31:24]RAPDU: 90 00 [02:31:24]wFMCommunicate OK [02:31:24]wFMCommunicate request_size=255 [02:31:24]MH_SAM_APDU [02:31: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 A2 6B 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 85 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 22 01 00 00 00 07 04 06 00 60 AE 0A 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 FC 5F 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 88 7C 03 00 35 04 06 00 7A 94 CC 3E [02:31:24]Write to MH i2c: E2 02 01 CE 13 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 A2 6B 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 85 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 22 01 00 00 00 07 04 06 00 60 AE 0A 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 FC 5F 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 88 7C 03 00 35 04 06 00 7A 94 CC 3E 00 00 B3 [02:31:24]Write i2c OK [02:31:24]MH_I2C_Read... [02:31:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:31:24]Read from MH i2c: E2 [02:31:24]MH_I2C_Read... [02:31:24]Read from MH i2c: E2 03 00 [02:31:24]MH_I2C_Read... [02:31:24]Read from MH i2c: E2 03 00 CE 13 00 90 00 55 [02:31:24]RAPDU: 90 00 [02:31:24]wFMCommunicate OK [02:31:24]wFMCommunicate request_size=7 [02:31:24]MH_SAM_APDU [02:31:24]CAPDU: 80 0D 02 02 02 F3 D8 [02:31:24]Write to MH i2c: E2 0A 00 CF 13 80 0D 02 02 02 00 F3 D8 00 00 2B [02:31:24]Write i2c OK [02:31:24]MH_I2C_Read... [02:31:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:31:24]Read from MH i2c: E2 [02:31:24]MH_I2C_Read... [02:31:24]Read from MH i2c: E2 03 00 [02:31:24]MH_I2C_Read... [02:31:24]Read from MH i2c: E2 03 00 CF 13 00 90 00 56 [02:31:24]RAPDU: 90 00 [02:31:24]wFMCommunicate OK [02:31:24]wFMCommunicate request_size=4 [02:31:24]MH_SAM_APDU [02:31:24]CAPDU: 80 0D 03 02 [02:31:24]Write to MH i2c: E2 08 00 D0 13 80 0D 03 02 00 00 00 00 5E [02:31:24]Write i2c OK [02:31:24]MH_I2C_Read... [02:31:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:31:24]Read from MH i2c: E2 [02:31:24]MH_I2C_Read... [02:31:24]Read from MH i2c: E2 0B 00 [02:31:24]MH_I2C_Read... [02:31:24]Read from MH i2c: E2 0B 00 D0 13 00 A1 74 F0 F2 56 98 4E DF 90 00 71 [02:31:24]RAPDU: A1 74 F0 F2 56 98 4E DF 90 00 [02:31:24]wFMCommunicate OK [02:31:24]SAM_PROTO_SignData done [02:31:24]FM_MakeSignedData done [02:31:24]CreateOFDProtocolMessage [02:31:24]wFMCommunicate request_size=4 [02:31:24]MH_SAM_APDU [02:31:24]CAPDU: 80 11 00 00 [02:31:24]Write to MH i2c: E2 08 00 D1 13 80 11 00 00 00 00 00 00 5E [02:31:24]Write i2c OK [02:31:24]MH_I2C_Read... [02:31:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:31:24]Read from MH i2c: E2 [02:31:24]MH_I2C_Read... [02:31:24]Read from MH i2c: E2 17 00 [02:31:24]MH_I2C_Read... [02:31:24]Read from MH i2c: E2 17 00 D1 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B5 [02:31:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [02:31:24]wFMCommunicate OK [02:31:24]CreateOFDProtocolMessage done [02:31:24]OFDSenderStorePacket 228488 [02:31:24]StoreOFDPacket docnum=228488 [02:31:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 2B D2 04 01 DB D0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A2 6B 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 85 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 22 01 00 00 00 07 04 06 00 60 AE 0A 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 FC 5F 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 88 7C 03 00 35 04 06 00 7A 94 CC 3E F3 D8 A1 74 F0 F2 56 98 4E DF [02:31:24]CheckFolder [02:31:24]dirname=/storage/ofd_packets [02:31:24]CheckFolder done [02:31:24]ProducePacketName [02:31:24]name=ofd_packets/00228488 [02:31:24]NVStorageSaveData ofd_packets/00228488 [02:31:24]File name is /storage/ofd_packets/00228488 [02:31:24]Write 298 bytes [02:31:24]NVStorageSaveData done [02:31:24]OFDSenderStorePacket done [02:31:24]KKMCreateOFDPacket done [02:31:24]NVStorageSaveData kkm_last_timestamp [02:31:24]File name is /storage/kkm_last_timestamp [02:31:24]Write 4 bytes [02:31:24]NVStorageSaveData done [02:31:24]ExternCall_PrintAddStr [02:31:24]wPrintStart [02:31:24]Write to MH i2c: 01 00 00 D2 13 E5 [02:31:24]Write i2c OK [02:31:24]MH_I2C_Read... [02:31:24]Read from MH i2c: 01 [02:31:24]MH_I2C_Read... [02:31:24]Read from MH i2c: 01 07 00 [02:31:24]MH_I2C_Read... [02:31:24]Read from MH i2c: 01 07 00 D2 13 00 00 00 00 00 FF 0F FA [02:31:24]RasterBufferAndPrint [02:31:24]line Счет N : (1)1965157 [02:31:24]line ИНН: 02508201610067 [02:31:24]line Контрольно-Кассовый Чек [02:31:24]line ПРОДАЖА [02:31:24]line ТРК (МРК, ГНК) : 11 [02:31:24]line Товар: 2710194210 [02:31:24]line ДТ-К-5 [02:31:24]line 93.090 * 75.20 [02:31:24]line = 7000.37 [02:31:24]line НДС 12% НСП 1% [02:31:24]line > о реализуемом товаре [02:31:24]line ОКРУГЛЕНИЕ: -0.37 [02:31:24]line ИТОГО: 7000.00 [02:31:24]line Внесено: 7000.00 [02:31:24]line СДАЧА: 0.00 [02:31:24]line НСП 1% : 61.95 [02:31:24]line НДС 12% : 743.40 [02:31:24]line Наличными: 7000.00 [02:31:24]line Безнал.: 0.00 [02:31:24]line Место: АЗС № 133 "Партнер Нефть" [02:31:24]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [02:31:24]line СНО: Общий режим [02:31:24]line Чек 24 23.10.2024 02:31 [02:31:24]line Смена: 536 ФФД: 1.0 [02:31:24]line ЗНМ: 0300000091 [02:31:24]line РНМ: 0000000000091685 [02:31:24]line Версия ККМ: 001 [02:31:24]line [02:31:24]line Дисконтная программа [02:31:24]line ДТ [02:31:24]line номер 133 [02:31:24]line сэкономлено 93.09 сом [02:31:24]line ФМ: 0000000000871839 [02:31:24]line ФД: 228488 [02:31:24]line ФПД: 134779500426200 [02:31:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T023124&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228488&fm=134779500426200&tin=02508201610067®Number=0000000000091685&sum=700000 [02:31:24]OFD Sender: Processing packet 228488 [packets to send 38, broken 37] [02:31:24]ProducePacketName [02:31:24]name=ofd_packets/00228488 [02:31:24]OFD Sender: To server: pG, [02:31:24]CommunicateWithHost lk.salyk.kg:30040 [02:31:24]ConnectInit lk.salyk.kg [02:31:24]written 0, free lines is 4095 [02:31:25]Connected sock=10 [02:31:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 2B D2 04 01 DB D0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A2 6B 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 85 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 22 01 00 00 00 07 04 06 00 60 AE 0A 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 FC 5F 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 88 7C 03 00 35 04 06 00 7A 94 CC 3E F3 D8 A1 74 F0 F2 56 98 4E DF [02:31:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 0B 51 47 00 75 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 38 37 31 38 33 39 10 04 04 00 88 7C 03 00 F4 03 04 00 F3 0A 18 67 B6 04 01 00 00 46 CE D5 3B 8A 08 24 7C [02:31:25]CommunicateWithHost err = 0 [02:31:25]CheckOFDResponse [02:31:25]1017 (14) - 77093643461234 [02:31:25]1041 (16) - 0000000000871839 [02:31:25]1040 (4) - 228488 [02:31:25]1012 (4) - 22.10.2024 20:28 [02:31:25]1206 (1) - 0 [02:31:25]OFD Sender: Remove packet 228488 [02:31:25]ProducePacketName [02:31:25]name=ofd_packets/00228488 [02:31:25]NVStorageDeleteData [02:31:25]Write to MH i2c: 01 00 00 01 14 15 [02:31:25]Write i2c OK [02:31:25]MH_I2C_Read... [02:31:25]Read from MH i2c: 01 [02:31:25]MH_I2C_Read... [02:31:25]Read from MH i2c: 01 07 00 [02:31:25]MH_I2C_Read... [02:31:25]Read from MH i2c: 01 07 00 01 14 00 00 00 00 00 2B 0C 53 [02:31:25]RasterBufferAndPrint [02:31:25]line [02:31:25]line [02:31:25]line [02:31:25]line [02:31:25]line [02:31:25]written 0, free lines is 3120 [02:31:25]MH_Cut [02:31:25]Write to MH i2c: D1 01 00 08 14 01 EE [02:31:25]Write i2c OK [02:31:25]MH_I2C_Read... [02:31:25]Read from MH i2c: D1 [02:31:25]MH_I2C_Read... [02:31:25]Read from MH i2c: D1 01 00 [02:31:25]MH_I2C_Read... [02:31:25]Read from MH i2c: D1 01 00 08 14 00 ED [02:31:25]Write to MH i2c: 01 00 00 09 14 1D [02:31:25]Write i2c OK [02:31:25]MH_I2C_Read... [02:31:25]OFD Sender: No OFD packet to send [02:31:26]*** Cut start [02:31:26]*** Partial cut [02:31:26]*** CUTSNS_PIN = 1 [02:31:26]*** CUTSNS_PIN = 0 [02:31:26]*** Brake cut motor [02:31:27]Read from MH i2c: 01 [02:31:27]MH_I2C_Read... [02:31:27]*** Stop cut motor [02:31:27]*** Cut end [02:31:27]Read from MH i2c: 01 07 00 [02:31:27]MH_I2C_Read... [02:31:27]Read from MH i2c: 01 07 00 09 14 00 00 00 00 00 FF 0F 32 [02:31:27]process_action close_receipt done [02:31:27]requested_data is exist [02:31:27]produce_requested_data [02:31:27]requested_item fm.sn is exist - process it [02:31:27]wFMCommunicate request_size=4 [02:31:27]MH_SAM_APDU [02:31:27]CAPDU: 80 11 00 00 [02:31:27]Write to MH i2c: E2 08 00 0A 14 80 11 00 00 00 00 00 00 98 [02:31:27]Write i2c OK [02:31:27]MH_I2C_Read... [02:31:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:31:27]Read from MH i2c: E2 [02:31:27]MH_I2C_Read... [02:31:27]Read from MH i2c: E2 17 00 [02:31:27]MH_I2C_Read... [02:31:27]Read from MH i2c: E2 17 00 0A 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 EF [02:31:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [02:31:27]wFMCommunicate OK [02:31:27]requested_item fd.num is exist - process it [02:31:27]SAM_PROTO_GetFieldsCounters [02:31:27]wFMCommunicate request_size=4 [02:31:27]MH_SAM_APDU [02:31:27]CAPDU: 80 13 00 00 [02:31:27]Write to MH i2c: E2 08 00 0B 14 80 13 00 00 00 00 00 00 9B [02:31:27]Write i2c OK [02:31:27]MH_I2C_Read... [02:31:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:31:27]Read from MH i2c: E2 [02:31:27]MH_I2C_Read... [02:31:27]Read from MH i2c: E2 62 00 [02:31:27]MH_I2C_Read... [02:31:27]Read from MH i2c: E2 62 00 0B 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 88 7C 03 00 0E 04 04 00 18 02 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 2D [02:31:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 88 7C 03 00 0E 04 04 00 18 02 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 [02:31:27]wFMCommunicate OK [02:31:27]SAM_PROTO_GetFieldsCounters done [02:31:27]requested_item shift.num is exist - process it [02:31:27]requested_item shift.opened is exist - process it [02:31:27]req_shift_opened [02:31:27]FM_GetShiftState [02:31:27]SAM_PROTO_GetShiftState [02:31:27]wFMCommunicate request_size=4 [02:31:27]MH_SAM_APDU [02:31:27]CAPDU: 80 13 01 00 [02:31:27]Write to MH i2c: E2 08 00 0C 14 80 13 01 00 00 00 00 00 9D [02:31:27]Write i2c OK [02:31:27]MH_I2C_Read... [02:31:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:31:27]Read from MH i2c: E2 [02:31:27]MH_I2C_Read... [02:31:27]Read from MH i2c: E2 0E 00 [02:31:27]MH_I2C_Read... [02:31:27]Read from MH i2c: E2 0E 00 0C 14 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 D7 [02:31:27]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [02:31:27]wFMCommunicate OK [02:31:27]SAM_PROTO_GetShiftState done [02:31:27]FM_GetShiftState done [02:31:27]req_shift_opened done [02:31:27]requested_item shift.open_date is exist - process it [02:31:27]req_shift_open_date [02:31:27]req_shift_open_date done [02:31:27]produce_requested_data done [02:31:27]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228488,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352} [02:31:27]process_action_free close_receipt [02:31:27]json_value_free [02:31:27]json_value_free done [02:31:27]process_json_proto returns [02:31:27]Send response to host [02:31:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228488,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352}}} [02:31:27]free response buf [02:31:27]execute_script done [02:31:27]execute_script returns [02:31:27]free content buf [02:31:27]Sock 7.Close socket [02:31:27]Sock 7.Thread stoped [02:31:30]OFD Sender: No OFD packet to send [02:31:35]OFD Sender: No OFD packet to send [02:31:40]OFD Sender: No OFD packet to send [02:31:45]OFD Sender: No OFD packet to send [02:31:50]OFD Sender: No OFD packet to send [02:31:55]OFD Sender: No OFD packet to send [02:32:00]OFD Sender: No OFD packet to send [02:32:05]OFD Sender: No OFD packet to send [02:32:10]OFD Sender: No OFD packet to send [02:32:15]OFD Sender: No OFD packet to send [02:32:20]OFD Sender: No OFD packet to send [02:32:25]OFD Sender: No OFD packet to send [02:32:30]OFD Sender: No OFD packet to send [02:32:35]OFD Sender: No OFD packet to send [02:32:40]OFD Sender: No OFD packet to send [02:32:45]OFD Sender: No OFD packet to send [02:32:50]OFD Sender: No OFD packet to send [02:32:55]OFD Sender: No OFD packet to send [02:33:00]OFD Sender: No OFD packet to send [02:33:05]OFD Sender: No OFD packet to send [02:33:10]OFD Sender: No OFD packet to send [02:33:15]OFD Sender: No OFD packet to send [02:33:20]OFD Sender: No OFD packet to send [02:33:25]OFD Sender: No OFD packet to send [02:33:30]OFD Sender: No OFD packet to send [02:33:35]OFD Sender: No OFD packet to send [02:33:40]OFD Sender: No OFD packet to send [02:33:45]OFD Sender: No OFD packet to send [02:33:50]OFD Sender: No OFD packet to send [02:33:55]OFD Sender: No OFD packet to send [02:34:00]OFD Sender: No OFD packet to send [02:34:05]OFD Sender: No OFD packet to send [02:34:10]OFD Sender: No OFD packet to send [02:34:15]OFD Sender: No OFD packet to send [02:34:20]OFD Sender: No OFD packet to send [02:34:25]OFD Sender: No OFD packet to send [02:34:30]OFD Sender: No OFD packet to send [02:34:35]OFD Sender: No OFD packet to send [02:34:40]OFD Sender: No OFD packet to send [02:34:45]OFD Sender: No OFD packet to send [02:34:50]OFD Sender: No OFD packet to send [02:34:55]OFD Sender: No OFD packet to send [02:35:00]OFD Sender: No OFD packet to send [02:35:05]OFD Sender: No OFD packet to send [02:35:10]OFD Sender: No OFD packet to send [02:35:15]OFD Sender: No OFD packet to send [02:35:20]OFD Sender: No OFD packet to send [02:35:25]OFD Sender: No OFD packet to send [02:35:30]OFD Sender: No OFD packet to send [02:35:35]OFD Sender: No OFD packet to send [02:35:40]OFD Sender: No OFD packet to send [02:35:45]OFD Sender: No OFD packet to send [02:35:51]OFD Sender: No OFD packet to send [02:35:56]OFD Sender: No OFD packet to send [02:36:01]OFD Sender: No OFD packet to send [02:36:06]OFD Sender: No OFD packet to send [02:36:11]OFD Sender: No OFD packet to send [02:36:16]OFD Sender: No OFD packet to send [02:36:21]OFD Sender: No OFD packet to send [02:36:26]OFD Sender: No OFD packet to send [02:36:31]OFD Sender: No OFD packet to send [02:36:36]OFD Sender: No OFD packet to send [02:36:41]OFD Sender: No OFD packet to send [02:36:46]OFD Sender: No OFD packet to send [02:36:51]OFD Sender: No OFD packet to send [02:36:56]OFD Sender: No OFD packet to send [02:37:01]OFD Sender: No OFD packet to send [02:37:06]OFD Sender: No OFD packet to send [02:37:11]OFD Sender: No OFD packet to send [02:37:16]OFD Sender: No OFD packet to send [02:37:21]OFD Sender: No OFD packet to send [02:37:26]OFD Sender: No OFD packet to send [02:37:31]OFD Sender: No OFD packet to send [02:37:36]OFD Sender: No OFD packet to send [02:37:41]OFD Sender: No OFD packet to send [02:37:46]OFD Sender: No OFD packet to send [02:37:51]OFD Sender: No OFD packet to send [02:37:56]OFD Sender: No OFD packet to send [02:38:01]OFD Sender: No OFD packet to send [02:38:06]OFD Sender: No OFD packet to send [02:38:11]OFD Sender: No OFD packet to send [02:38:16]OFD Sender: No OFD packet to send [02:38:21]OFD Sender: No OFD packet to send [02:38:26]OFD Sender: No OFD packet to send [02:38:31]OFD Sender: No OFD packet to send [02:38:36]OFD Sender: No OFD packet to send [02:38:41]OFD Sender: No OFD packet to send [02:38:46]OFD Sender: No OFD packet to send [02:38:51]OFD Sender: No OFD packet to send [02:38:56]OFD Sender: No OFD packet to send [02:39:01]OFD Sender: No OFD packet to send [02:39:06]OFD Sender: No OFD packet to send [02:39:11]OFD Sender: No OFD packet to send [02:39:16]OFD Sender: No OFD packet to send [02:39:21]OFD Sender: No OFD packet to send [02:39:26]OFD Sender: No OFD packet to send [02:39:31]OFD Sender: No OFD packet to send [02:39:36]OFD Sender: No OFD packet to send [02:39:41]OFD Sender: No OFD packet to send [02:39:46]OFD Sender: No OFD packet to send [02:39:51]OFD Sender: No OFD packet to send [02:39:56]OFD Sender: No OFD packet to send [02:40:01]OFD Sender: No OFD packet to send [02:40:06]OFD Sender: No OFD packet to send [02:40:11]OFD Sender: No OFD packet to send [02:40:16]OFD Sender: No OFD packet to send [02:40:21]OFD Sender: No OFD packet to send [02:40:26]OFD Sender: No OFD packet to send [02:40:31]OFD Sender: No OFD packet to send [02:40:36]OFD Sender: No OFD packet to send [02:40:41]OFD Sender: No OFD packet to send [02:40:46]OFD Sender: No OFD packet to send [02:40:51]OFD Sender: No OFD packet to send [02:40:56]OFD Sender: No OFD packet to send [02:41:01]OFD Sender: No OFD packet to send [02:41:06]OFD Sender: No OFD packet to send [02:41:11]OFD Sender: No OFD packet to send [02:41:16]OFD Sender: No OFD packet to send [02:41:21]OFD Sender: No OFD packet to send [02:41:26]OFD Sender: No OFD packet to send [02:41:31]OFD Sender: No OFD packet to send [02:41:36]OFD Sender: No OFD packet to send [02:41:41]OFD Sender: No OFD packet to send [02:41:46]OFD Sender: No OFD packet to send [02:41:51]OFD Sender: No OFD packet to send [02:41:56]OFD Sender: No OFD packet to send [02:42:01]OFD Sender: No OFD packet to send [02:42:06]OFD Sender: No OFD packet to send [02:42:11]OFD Sender: No OFD packet to send [02:42:16]OFD Sender: No OFD packet to send [02:42:21]OFD Sender: No OFD packet to send [02:42:26]OFD Sender: No OFD packet to send [02:42:31]OFD Sender: No OFD packet to send [02:42:36]OFD Sender: No OFD packet to send [02:42:41]OFD Sender: No OFD packet to send [02:42:46]OFD Sender: No OFD packet to send [02:42:51]OFD Sender: No OFD packet to send [02:42:56]OFD Sender: No OFD packet to send [02:43:01]OFD Sender: No OFD packet to send [02:43:06]OFD Sender: No OFD packet to send [02:43:09]accept exits with 9 [02:43:09]New connection [02:43:09]New thread 3066977636 created [02:43:09]Thread 3066834276 joined [02:43:09]Waiting for new connection... [02:43:09] Sock 9.Parse request [02:43:09]Sock 9.Check first char [02:43:09]Sock 9.First char is OK [02:43:09]request: POST /json_proto HTTP/1.0 [02:43:09]Method: POST [02:43:09]URL: /json_proto [02:43:09]Method is POST - this is cgi request [02:43:09]url: /json_proto [02:43:09]query_string will be loaded in cgi processing [02:43:09]execute_cgi json_proto POST (null) [02:43:09]execute_cgi path=json_proto method=POST [02:43:09]POST find Content-Length [02:43:09]Host: 172.17.44.195:8080 [02:43:09]Content-Length: 680 [02:43:09]Content-Type: application/json [02:43:09] [02:43:09]POST finish read [02:43:09]Found Content-Length = 680 [02:43:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:43:09]execute_script... [02:43: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)1965158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:43:09]POST & json_proto [02:43:09]process_json_proto [02:43:09]json parsed OK: [02:43:09]protocol is kg_v1.0 [02:43:09]action value=close_receipt [02:43:09]process_action close_receipt [02:43:09]cmd_close_receipt [02:43:09]MH_GetDate [02:43:09]Write to MH i2c: F0 00 00 0D 14 10 [02:43:09]Write i2c OK [02:43:09]MH_I2C_Read... [02:43:09]Read from MH i2c: F0 [02:43:09]MH_I2C_Read... [02:43:09]Read from MH i2c: F0 09 00 [02:43:09]MH_I2C_Read... [02:43:09]Read from MH i2c: F0 09 00 0D 14 00 BF 62 18 67 82 C9 CF 66 39 [02:43:09]GetLastDocTimeStamp 1729650684 [02:43:09]current date 1729651391 [02:43:09]FM_GetShiftState [02:43:09]SAM_PROTO_GetShiftState [02:43:09]wFMCommunicate request_size=4 [02:43:09]MH_SAM_APDU [02:43:09]CAPDU: 80 13 01 00 [02:43:09]Write to MH i2c: E2 08 00 0E 14 80 13 01 00 00 00 00 00 9F [02:43:09]Write i2c OK [02:43:09]MH_I2C_Read... [02:43:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:43:09]Read from MH i2c: E2 [02:43:09]MH_I2C_Read... [02:43:09]Read from MH i2c: E2 0E 00 [02:43:09]MH_I2C_Read... [02:43:09]Read from MH i2c: E2 0E 00 0E 14 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 D9 [02:43:09]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [02:43:09]wFMCommunicate OK [02:43:09]SAM_PROTO_GetShiftState done [02:43:09]FM_GetShiftState done [02:43:09]opened in 1729642352 [02:43:09]opened+sec_in_day 1729728752 [02:43:09]quantity*price = 300075 [02:43:09]sum+1 = 300077 [02:43:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 25 23.10.2024 02:43 Смена: 536 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228489 ФПД: 78975811931709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T024311&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228489&fm=78975811931709&tin=02508201610067®Number=0000000000091685&sum=300000 [02:43:10]StoreToDocumentArchive [02:43:10]shift 536 fd 228489 [02:43:10]save to /storage/0536/doc_00228489 [02:43:10]save last doc name /storage/0536/doc_00228489 to /storage/kkm_last_doc_name [02:43:10]save OK [02:43:10]Clear old archive folders... [02:43:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:43:10]tlvbuf is 002EBE10 [02:43:10]SAM_PROTO_ClearQueue [02:43:10]wFMCommunicate request_size=4 [02:43:10]MH_SAM_APDU [02:43:10]CAPDU: 80 09 00 00 [02:43:10]Write to MH i2c: E2 08 00 1B 14 80 09 00 00 00 00 00 00 A1 [02:43:10]Write i2c OK [02:43:10]MH_I2C_Read... [02:43:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:43:10]Read from MH i2c: E2 [02:43:10]MH_I2C_Read... [02:43:10]Read from MH i2c: E2 03 00 [02:43:10]MH_I2C_Read... [02:43:10]Read from MH i2c: E2 03 00 1B 14 00 90 00 A3 [02:43:10]RAPDU: 90 00 [02:43:10]wFMCommunicate OK [02:43:10]SAM_PROTO_ClearQueue done [02:43:10]KKMCreateOFDPacket [02:43:10]OFDProtocolAddRootSTLVToBuf [02:43:10]FM_MakeSignedData [02:43:10]FM_MakeSignedData [02:43:10]SAM_PROTO_SignData [02:43:10]wFMCommunicate request_size=4 [02:43:10]MH_SAM_APDU [02:43:10]CAPDU: 80 0D 01 02 [02:43:10]Write to MH i2c: E2 08 00 1C 14 80 0D 01 02 00 00 00 00 A9 [02:43:10]Write i2c OK [02:43:10]MH_I2C_Read... [02:43:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:43:10]Read from MH i2c: E2 [02:43:10]MH_I2C_Read... [02:43:10]Read from MH i2c: E2 03 00 [02:43:10]MH_I2C_Read... [02:43:10]Read from MH i2c: E2 03 00 1C 14 00 90 00 A4 [02:43:10]RAPDU: 90 00 [02:43:10]wFMCommunicate OK [02:43:10]wFMCommunicate request_size=255 [02:43:10]MH_SAM_APDU [02:43:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 BF 62 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 89 7C 03 00 35 04 06 00 47 D3 FD 37 [02:43:10]Write to MH i2c: E2 02 01 1D 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 BF 62 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 89 7C 03 00 35 04 06 00 47 D3 FD 37 00 00 96 [02:43:10]Write i2c OK [02:43:10]MH_I2C_Read... [02:43:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:43:11]Read from MH i2c: E2 [02:43:11]MH_I2C_Read... [02:43:11]Read from MH i2c: E2 03 00 [02:43:11]MH_I2C_Read... [02:43:11]Read from MH i2c: E2 03 00 1D 14 00 90 00 A5 [02:43:11]RAPDU: 90 00 [02:43:11]wFMCommunicate OK [02:43:11]wFMCommunicate request_size=7 [02:43:11]MH_SAM_APDU [02:43:11]CAPDU: 80 0D 02 02 02 4E 3D [02:43:11]Write to MH i2c: E2 0A 00 1E 14 80 0D 02 02 02 00 4E 3D 00 00 3B [02:43:11]Write i2c OK [02:43:11]MH_I2C_Read... [02:43:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:43:11]Read from MH i2c: E2 [02:43:11]MH_I2C_Read... [02:43:11]Read from MH i2c: E2 03 00 [02:43:11]MH_I2C_Read... [02:43:11]Read from MH i2c: E2 03 00 1E 14 00 90 00 A6 [02:43:11]RAPDU: 90 00 [02:43:11]wFMCommunicate OK [02:43:11]wFMCommunicate request_size=4 [02:43:11]MH_SAM_APDU [02:43:11]CAPDU: 80 0D 03 02 [02:43:11]Write to MH i2c: E2 08 00 1F 14 80 0D 03 02 00 00 00 00 AE [02:43:11]Write i2c OK [02:43:11]MH_I2C_Read... [02:43:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:43:11]Read from MH i2c: E2 [02:43:11]MH_I2C_Read... [02:43:11]Read from MH i2c: E2 0B 00 [02:43:11]MH_I2C_Read... [02:43:11]Read from MH i2c: E2 0B 00 1F 14 00 CE 8C 5F 0D 51 74 DE 94 90 00 AC [02:43:11]RAPDU: CE 8C 5F 0D 51 74 DE 94 90 00 [02:43:11]wFMCommunicate OK [02:43:11]SAM_PROTO_SignData done [02:43:11]FM_MakeSignedData done [02:43:11]CreateOFDProtocolMessage [02:43:11]wFMCommunicate request_size=4 [02:43:11]MH_SAM_APDU [02:43:11]CAPDU: 80 11 00 00 [02:43:11]Write to MH i2c: E2 08 00 20 14 80 11 00 00 00 00 00 00 AE [02:43:11]Write i2c OK [02:43:11]MH_I2C_Read... [02:43:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:43:11]Read from MH i2c: E2 [02:43:11]MH_I2C_Read... [02:43:11]Read from MH i2c: E2 17 00 [02:43:11]MH_I2C_Read... [02:43:11]Read from MH i2c: E2 17 00 20 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 05 [02:43:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [02:43:11]wFMCommunicate OK [02:43:11]CreateOFDProtocolMessage done [02:43:11]OFDSenderStorePacket 228489 [02:43:11]StoreOFDPacket docnum=228489 [02:43:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 E6 6B 04 01 2E 74 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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 BF 62 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 89 7C 03 00 35 04 06 00 47 D3 FD 37 4E 3D CE 8C 5F 0D 51 74 DE 94 [02:43:11]CheckFolder [02:43:11]dirname=/storage/ofd_packets [02:43:11]CheckFolder done [02:43:11]ProducePacketName [02:43:11]name=ofd_packets/00228489 [02:43:11]NVStorageSaveData ofd_packets/00228489 [02:43:11]File name is /storage/ofd_packets/00228489 [02:43:11]Write 298 bytes [02:43:11]NVStorageSaveData done [02:43:11]OFDSenderStorePacket done [02:43:11]KKMCreateOFDPacket done [02:43:11]NVStorageSaveData kkm_last_timestamp [02:43:11]File name is /storage/kkm_last_timestamp [02:43:11]Write 4 bytes [02:43:11]NVStorageSaveData done [02:43:11]ExternCall_PrintAddStr [02:43:11]wPrintStart [02:43:11]Write to MH i2c: 01 00 00 21 14 35 [02:43:11]Write i2c OK [02:43:11]MH_I2C_Read... [02:43:11]Read from MH i2c: 01 [02:43:11]MH_I2C_Read... [02:43:11]Read from MH i2c: 01 07 00 [02:43:11]MH_I2C_Read... [02:43:11]Read from MH i2c: 01 07 00 21 14 00 00 00 00 00 FF 0F 4A [02:43:11]RasterBufferAndPrint [02:43:11]line Счет N : (1)1965158 [02:43:11]line ИНН: 02508201610067 [02:43:11]line Контрольно-Кассовый Чек [02:43:11]line ПРОДАЖА [02:43:11]line ТРК (МРК, ГНК) : 41 [02:43:11]line Товар: 2710194210 [02:43:11]line ДТ-К-5 [02:43:11]line 39.380 * 76.20 [02:43:11]line = 3000.76 [02:43:11]line НДС 12% НСП 1% [02:43:11]line > о реализуемом товаре [02:43:11]line ОКРУГЛЕНИЕ: -0.76 [02:43:11]line ИТОГО: 3000.00 [02:43:11]line Внесено: 3000.00 [02:43:11]line СДАЧА: 0.00 [02:43:11]line НСП 1% : 26.55 [02:43:11]line НДС 12% : 318.66 [02:43:11]line Наличными: 3000.00 [02:43:11]line Безнал.: 0.00 [02:43:11]line Место: АЗС № 133 "Партнер Нефть" [02:43:11]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [02:43:11]line СНО: Общий режим [02:43:11]line Чек 25 23.10.2024 02:43 [02:43:11]line Смена: 536 ФФД: 1.0 [02:43:11]line ЗНМ: 0300000091 [02:43:11]line РНМ: 0000000000091685 [02:43:11]line Версия ККМ: 001 [02:43:11]line ФМ: 0000000000871839 [02:43:11]line ФД: 228489 [02:43:11]line ФПД: 78975811931709 [02:43:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T024311&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228489&fm=78975811931709&tin=02508201610067®Number=0000000000091685&sum=300000 [02:43:11]OFD Sender: Processing packet 228489 [packets to send 38, broken 37] [02:43:11]ProducePacketName [02:43:11]name=ofd_packets/00228489 [02:43:11]OFD Sender: To server: pG, [02:43:11]CommunicateWithHost lk.salyk.kg:30040 [02:43:11]ConnectInit lk.salyk.kg [02:43:11]written 0, free lines is 4095 [02:43:11]Connected sock=10 [02:43:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 E6 6B 04 01 2E 74 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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 BF 62 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 89 7C 03 00 35 04 06 00 47 D3 FD 37 4E 3D CE 8C 5F 0D 51 74 DE 94 [02:43:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 41 A6 47 00 FC C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 89 7C 03 00 F4 03 04 00 B5 0D 18 67 B6 04 01 00 00 E2 0C 5E 21 5F 5A 8E A2 [02:43:11]CommunicateWithHost err = 0 [02:43:11]CheckOFDResponse [02:43:11]1017 (14) - 77093643461234 [02:43:11]1041 (16) - 0000000000871839 [02:43:11]1040 (4) - 228489 [02:43:11]1012 (4) - 22.10.2024 20:40 [02:43:11]1206 (1) - 0 [02:43:11]OFD Sender: Remove packet 228489 [02:43:11]ProducePacketName [02:43:11]name=ofd_packets/00228489 [02:43:11]NVStorageDeleteData [02:43:11]Write to MH i2c: 01 00 00 4B 14 5F [02:43:11]Write i2c OK [02:43:11]MH_I2C_Read... [02:43:11]Read from MH i2c: 01 [02:43:11]MH_I2C_Read... [02:43:11]Read from MH i2c: 01 07 00 [02:43:11]MH_I2C_Read... [02:43:11]Read from MH i2c: 01 07 00 4B 14 00 00 00 00 00 9A 0C 0C [02:43:11]RasterBufferAndPrint [02:43:11]line [02:43:11]line [02:43:11]line [02:43:11]line [02:43:11]line [02:43:11]written 0, free lines is 3230 [02:43:11]MH_Cut [02:43:11]Write to MH i2c: D1 01 00 52 14 01 38 [02:43:11]Write i2c OK [02:43:11]MH_I2C_Read... [02:43:11]Read from MH i2c: D1 [02:43:11]MH_I2C_Read... [02:43:11]Read from MH i2c: D1 01 00 [02:43:11]MH_I2C_Read... [02:43:11]Read from MH i2c: D1 01 00 52 14 00 37 [02:43:11]Write to MH i2c: 01 00 00 53 14 67 [02:43:11]Write i2c OK [02:43:11]MH_I2C_Read... [02:43:12]OFD Sender: No OFD packet to send [02:43:12]*** Cut start [02:43:12]*** Partial cut [02:43:12]*** CUTSNS_PIN = 1 [02:43:13]*** CUTSNS_PIN = 0 [02:43:13]*** Brake cut motor [02:43:13]Read from MH i2c: 01 [02:43:13]MH_I2C_Read... [02:43:13]*** Stop cut motor [02:43:13]*** Cut end [02:43:13]Read from MH i2c: 01 07 00 [02:43:13]MH_I2C_Read... [02:43:13]Read from MH i2c: 01 07 00 53 14 00 00 00 00 00 FF 0F 7C [02:43:13]process_action close_receipt done [02:43:13]requested_data is exist [02:43:13]produce_requested_data [02:43:13]requested_item fm.sn is exist - process it [02:43:13]wFMCommunicate request_size=4 [02:43:13]MH_SAM_APDU [02:43:13]CAPDU: 80 11 00 00 [02:43:13]Write to MH i2c: E2 08 00 54 14 80 11 00 00 00 00 00 00 E2 [02:43:13]Write i2c OK [02:43:13]MH_I2C_Read... [02:43:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:43:13]Read from MH i2c: E2 [02:43:13]MH_I2C_Read... [02:43:13]Read from MH i2c: E2 17 00 [02:43:13]MH_I2C_Read... [02:43:13]Read from MH i2c: E2 17 00 54 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 39 [02:43:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [02:43:13]wFMCommunicate OK [02:43:13]requested_item fd.num is exist - process it [02:43:13]SAM_PROTO_GetFieldsCounters [02:43:13]wFMCommunicate request_size=4 [02:43:13]MH_SAM_APDU [02:43:13]CAPDU: 80 13 00 00 [02:43:13]Write to MH i2c: E2 08 00 55 14 80 13 00 00 00 00 00 00 E5 [02:43:13]Write i2c OK [02:43:13]MH_I2C_Read... [02:43:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:43:13]Read from MH i2c: E2 [02:43:13]MH_I2C_Read... [02:43:13]Read from MH i2c: E2 62 00 [02:43:13]MH_I2C_Read... [02:43:13]Read from MH i2c: E2 62 00 55 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 89 7C 03 00 0E 04 04 00 18 02 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 7B [02:43:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 89 7C 03 00 0E 04 04 00 18 02 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 [02:43:13]wFMCommunicate OK [02:43:13]SAM_PROTO_GetFieldsCounters done [02:43:13]requested_item shift.num is exist - process it [02:43:13]requested_item shift.opened is exist - process it [02:43:13]req_shift_opened [02:43:13]FM_GetShiftState [02:43:13]SAM_PROTO_GetShiftState [02:43:13]wFMCommunicate request_size=4 [02:43:13]MH_SAM_APDU [02:43:13]CAPDU: 80 13 01 00 [02:43:13]Write to MH i2c: E2 08 00 56 14 80 13 01 00 00 00 00 00 E7 [02:43:13]Write i2c OK [02:43:13]MH_I2C_Read... [02:43:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:43:13]Read from MH i2c: E2 [02:43:13]MH_I2C_Read... [02:43:13]Read from MH i2c: E2 0E 00 [02:43:13]MH_I2C_Read... [02:43:13]Read from MH i2c: E2 0E 00 56 14 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 21 [02:43:13]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [02:43:13]wFMCommunicate OK [02:43:13]SAM_PROTO_GetShiftState done [02:43:13]FM_GetShiftState done [02:43:13]req_shift_opened done [02:43:13]requested_item shift.open_date is exist - process it [02:43:13]req_shift_open_date [02:43:13]req_shift_open_date done [02:43:13]produce_requested_data done [02:43:13]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228489,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352} [02:43:13]process_action_free close_receipt [02:43:13]json_value_free [02:43:13]json_value_free done [02:43:13]process_json_proto returns [02:43:13]Send response to host [02:43:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228489,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352}}} [02:43:13]free response buf [02:43:13]execute_script done [02:43:13]execute_script returns [02:43:13]free content buf [02:43:13]Sock 9.Close socket [02:43:13]Sock 9.Thread stoped [02:43:17]OFD Sender: No OFD packet to send [02:43:22]OFD Sender: No OFD packet to send [02:43:27]OFD Sender: No OFD packet to send [02:43:32]OFD Sender: No OFD packet to send [02:43:37]OFD Sender: No OFD packet to send [02:43:42]OFD Sender: No OFD packet to send [02:43:47]OFD Sender: No OFD packet to send [02:43:52]OFD Sender: No OFD packet to send [02:43:57]OFD Sender: No OFD packet to send [02:44:02]OFD Sender: No OFD packet to send [02:44:07]OFD Sender: No OFD packet to send [02:44:12]OFD Sender: No OFD packet to send [02:44:17]OFD Sender: No OFD packet to send [02:44:22]OFD Sender: No OFD packet to send [02:44:27]OFD Sender: No OFD packet to send [02:44:32]OFD Sender: No OFD packet to send [02:44:37]OFD Sender: No OFD packet to send [02:44:42]OFD Sender: No OFD packet to send [02:44:47]OFD Sender: No OFD packet to send [02:44:52]OFD Sender: No OFD packet to send [02:44:57]OFD Sender: No OFD packet to send [02:45:02]OFD Sender: No OFD packet to send [02:45:07]OFD Sender: No OFD packet to send [02:45:12]OFD Sender: No OFD packet to send [02:45:17]OFD Sender: No OFD packet to send [02:45:22]OFD Sender: No OFD packet to send [02:45:27]OFD Sender: No OFD packet to send [02:45:32]OFD Sender: No OFD packet to send [02:45:37]OFD Sender: No OFD packet to send [02:45:42]OFD Sender: No OFD packet to send [02:45:47]OFD Sender: No OFD packet to send [02:45:52]OFD Sender: No OFD packet to send [02:45:57]OFD Sender: No OFD packet to send [02:46:02]OFD Sender: No OFD packet to send [02:46:07]OFD Sender: No OFD packet to send [02:46:12]OFD Sender: No OFD packet to send [02:46:17]OFD Sender: No OFD packet to send [02:46:22]OFD Sender: No OFD packet to send [02:46:27]OFD Sender: No OFD packet to send [02:46:32]OFD Sender: No OFD packet to send [02:46:37]OFD Sender: No OFD packet to send [02:46:42]OFD Sender: No OFD packet to send [02:46:47]OFD Sender: No OFD packet to send [02:46:52]OFD Sender: No OFD packet to send [02:46:57]OFD Sender: No OFD packet to send [02:47:02]OFD Sender: No OFD packet to send [02:47:07]OFD Sender: No OFD packet to send [02:47:12]OFD Sender: No OFD packet to send [02:47:17]OFD Sender: No OFD packet to send [02:47:22]OFD Sender: No OFD packet to send [02:47:27]OFD Sender: No OFD packet to send [02:47:32]OFD Sender: No OFD packet to send [02:47:37]OFD Sender: No OFD packet to send [02:47:42]OFD Sender: No OFD packet to send [02:47:47]OFD Sender: No OFD packet to send [02:47:52]OFD Sender: No OFD packet to send [02:47:57]OFD Sender: No OFD packet to send [02:48:02]OFD Sender: No OFD packet to send [02:48:07]OFD Sender: No OFD packet to send [02:48:12]OFD Sender: No OFD packet to send [02:48:17]OFD Sender: No OFD packet to send [02:48:22]OFD Sender: No OFD packet to send [02:48:27]OFD Sender: No OFD packet to send [02:48:32]OFD Sender: No OFD packet to send [02:48:37]OFD Sender: No OFD packet to send [02:48:42]OFD Sender: No OFD packet to send [02:48:47]OFD Sender: No OFD packet to send [02:48:52]OFD Sender: No OFD packet to send [02:48:57]OFD Sender: No OFD packet to send [02:49:02]OFD Sender: No OFD packet to send [02:49:07]OFD Sender: No OFD packet to send [02:49:12]OFD Sender: No OFD packet to send [02:49:17]OFD Sender: No OFD packet to send [02:49:22]OFD Sender: No OFD packet to send [02:49:27]OFD Sender: No OFD packet to send [02:49:32]OFD Sender: No OFD packet to send [02:49:37]OFD Sender: No OFD packet to send [02:49:42]OFD Sender: No OFD packet to send [02:49:47]OFD Sender: No OFD packet to send [02:49:52]OFD Sender: No OFD packet to send [02:49:57]OFD Sender: No OFD packet to send [02:50:02]OFD Sender: No OFD packet to send [02:50:07]OFD Sender: No OFD packet to send [02:50:12]OFD Sender: No OFD packet to send [02:50:17]OFD Sender: No OFD packet to send [02:50:22]OFD Sender: No OFD packet to send [02:50:27]OFD Sender: No OFD packet to send [02:50:32]OFD Sender: No OFD packet to send [02:50:37]OFD Sender: No OFD packet to send [02:50:42]OFD Sender: No OFD packet to send [02:50:47]OFD Sender: No OFD packet to send [02:50:52]OFD Sender: No OFD packet to send [02:50:57]OFD Sender: No OFD packet to send [02:51:02]OFD Sender: No OFD packet to send [02:51:07]OFD Sender: No OFD packet to send [02:51:12]OFD Sender: No OFD packet to send [02:51:17]OFD Sender: No OFD packet to send [02:51:22]OFD Sender: No OFD packet to send [02:51:27]OFD Sender: No OFD packet to send [02:51:32]OFD Sender: No OFD packet to send [02:51:37]OFD Sender: No OFD packet to send [02:51:42]OFD Sender: No OFD packet to send [02:51:47]OFD Sender: No OFD packet to send [02:51:52]OFD Sender: No OFD packet to send [02:51:57]OFD Sender: No OFD packet to send [02:52:02]OFD Sender: No OFD packet to send [02:52:07]OFD Sender: No OFD packet to send [02:52:12]OFD Sender: No OFD packet to send [02:52:17]OFD Sender: No OFD packet to send [02:52:22]OFD Sender: No OFD packet to send [02:52:27]OFD Sender: No OFD packet to send [02:52:31]accept exits with 7 [02:52:31]New connection [02:52:31]New thread 3066834276 created [02:52:31]Thread 3066977636 joined [02:52:31]Waiting for new connection... [02:52:31] Sock 7.Parse request [02:52:31]Sock 7.Check first char [02:52:31]Sock 7.First char is OK [02:52:31]request: POST /json_proto HTTP/1.0 [02:52:31]Method: POST [02:52:31]URL: /json_proto [02:52:31]Method is POST - this is cgi request [02:52:31]url: /json_proto [02:52:31]query_string will be loaded in cgi processing [02:52:31]execute_cgi json_proto POST (null) [02:52:31]execute_cgi path=json_proto method=POST [02:52:31]POST find Content-Length [02:52:31]Host: 172.17.44.195:8080 [02:52:31]Content-Length: 767 [02:52:31]Content-Type: application/json [02:52:31] [02:52:31]POST finish read [02:52:31]Found Content-Length = 767 [02:52:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965159", "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" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:52:31]execute_script... [02:52: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)1965159", "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" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:52:31]POST & json_proto [02:52:31]process_json_proto [02:52:31]json parsed OK: [02:52:31]protocol is kg_v1.0 [02:52:31]action value=close_receipt [02:52:31]process_action close_receipt [02:52:31]cmd_close_receipt [02:52:31]MH_GetDate [02:52:31]Write to MH i2c: F0 00 00 57 14 5A [02:52:31]Write i2c OK [02:52:31]MH_I2C_Read... [02:52:31]Read from MH i2c: F0 [02:52:31]MH_I2C_Read... [02:52:31]Read from MH i2c: F0 09 00 [02:52:31]MH_I2C_Read... [02:52:31]Read from MH i2c: F0 09 00 57 14 00 F1 64 18 67 82 C9 CF 66 B7 [02:52:31]GetLastDocTimeStamp 1729651391 [02:52:31]current date 1729651953 [02:52:31]FM_GetShiftState [02:52:31]SAM_PROTO_GetShiftState [02:52:31]wFMCommunicate request_size=4 [02:52:31]MH_SAM_APDU [02:52:31]CAPDU: 80 13 01 00 [02:52:31]Write to MH i2c: E2 08 00 58 14 80 13 01 00 00 00 00 00 E9 [02:52:31]Write i2c OK [02:52:31]MH_I2C_Read... [02:52:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:52:31]Read from MH i2c: E2 [02:52:31]MH_I2C_Read... [02:52:31]Read from MH i2c: E2 0E 00 [02:52:31]MH_I2C_Read... [02:52:31]Read from MH i2c: E2 0E 00 58 14 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 23 [02:52:31]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [02:52:31]wFMCommunicate OK [02:52:31]SAM_PROTO_GetShiftState done [02:52:31]FM_GetShiftState done [02:52:31]opened in 1729642352 [02:52:31]opened+sec_in_day 1729728752 [02:52:31]quantity*price = 300075 [02:52:31]sum+1 = 300077 [02:52:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.76 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.76 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 26 23.10.2024 02:52 Смена: 536 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 228490 ФПД: 108340850874941 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T025233&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228490&fm=108340850874941&tin=02508201610067®Number=0000000000091685&sum=300076 [02:52:32]StoreToDocumentArchive [02:52:32]shift 536 fd 228490 [02:52:32]save to /storage/0536/doc_00228490 [02:52:32]save last doc name /storage/0536/doc_00228490 to /storage/kkm_last_doc_name [02:52:32]save OK [02:52:32]Clear old archive folders... [02:52:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:52:32]tlvbuf is 002B2680 [02:52:32]SAM_PROTO_ClearQueue [02:52:32]wFMCommunicate request_size=4 [02:52:32]MH_SAM_APDU [02:52:32]CAPDU: 80 09 00 00 [02:52:32]Write to MH i2c: E2 08 00 65 14 80 09 00 00 00 00 00 00 EB [02:52:32]Write i2c OK [02:52:32]MH_I2C_Read... [02:52:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:52:32]Read from MH i2c: E2 [02:52:32]MH_I2C_Read... [02:52:32]Read from MH i2c: E2 03 00 [02:52:32]MH_I2C_Read... [02:52:32]Read from MH i2c: E2 03 00 65 14 00 90 00 ED [02:52:32]RAPDU: 90 00 [02:52:32]wFMCommunicate OK [02:52:32]SAM_PROTO_ClearQueue done [02:52:32]KKMCreateOFDPacket [02:52:32]OFDProtocolAddRootSTLVToBuf [02:52:32]FM_MakeSignedData [02:52:32]FM_MakeSignedData [02:52:32]SAM_PROTO_SignData [02:52:32]wFMCommunicate request_size=4 [02:52:32]MH_SAM_APDU [02:52:32]CAPDU: 80 0D 01 02 [02:52:32]Write to MH i2c: E2 08 00 66 14 80 0D 01 02 00 00 00 00 F3 [02:52:32]Write i2c OK [02:52:32]MH_I2C_Read... [02:52:32]OFD Sender: No OFD packet to send [02:52:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:52:32]Read from MH i2c: E2 [02:52:32]MH_I2C_Read... [02:52:32]Read from MH i2c: E2 03 00 [02:52:32]MH_I2C_Read... [02:52:32]Read from MH i2c: E2 03 00 66 14 00 90 00 EE [02:52:32]RAPDU: 90 00 [02:52:32]wFMCommunicate OK [02:52:32]wFMCommunicate request_size=255 [02:52:32]MH_SAM_APDU [02:52: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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 F1 64 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8A 7C 03 00 35 04 06 00 62 89 11 EE [02:52:32]Write to MH i2c: E2 02 01 67 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 F1 64 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8A 7C 03 00 35 04 06 00 62 89 11 EE 00 00 4C [02:52:32]Write i2c OK [02:52:32]MH_I2C_Read... [02:52:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:52:33]Read from MH i2c: E2 [02:52:33]MH_I2C_Read... [02:52:33]Read from MH i2c: E2 03 00 [02:52:33]MH_I2C_Read... [02:52:33]Read from MH i2c: E2 03 00 67 14 00 90 00 EF [02:52:33]RAPDU: 90 00 [02:52:33]wFMCommunicate OK [02:52:33]wFMCommunicate request_size=7 [02:52:33]MH_SAM_APDU [02:52:33]CAPDU: 80 0D 02 02 02 5A 3D [02:52:33]Write to MH i2c: E2 0A 00 68 14 80 0D 02 02 02 00 5A 3D 00 00 91 [02:52:33]Write i2c OK [02:52:33]MH_I2C_Read... [02:52:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:52:33]Read from MH i2c: E2 [02:52:33]MH_I2C_Read... [02:52:33]Read from MH i2c: E2 03 00 [02:52:33]MH_I2C_Read... [02:52:33]Read from MH i2c: E2 03 00 68 14 00 90 00 F0 [02:52:33]RAPDU: 90 00 [02:52:33]wFMCommunicate OK [02:52:33]wFMCommunicate request_size=4 [02:52:33]MH_SAM_APDU [02:52:33]CAPDU: 80 0D 03 02 [02:52:33]Write to MH i2c: E2 08 00 69 14 80 0D 03 02 00 00 00 00 F8 [02:52:33]Write i2c OK [02:52:33]MH_I2C_Read... [02:52:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:52:33]Read from MH i2c: E2 [02:52:33]MH_I2C_Read... [02:52:33]Read from MH i2c: E2 0B 00 [02:52:33]MH_I2C_Read... [02:52:33]Read from MH i2c: E2 0B 00 69 14 00 30 3E 8D 1E D1 A7 60 D7 90 00 C1 [02:52:33]RAPDU: 30 3E 8D 1E D1 A7 60 D7 90 00 [02:52:33]wFMCommunicate OK [02:52:33]SAM_PROTO_SignData done [02:52:33]FM_MakeSignedData done [02:52:33]CreateOFDProtocolMessage [02:52:33]wFMCommunicate request_size=4 [02:52:33]MH_SAM_APDU [02:52:33]CAPDU: 80 11 00 00 [02:52:33]Write to MH i2c: E2 08 00 6A 14 80 11 00 00 00 00 00 00 F8 [02:52:33]Write i2c OK [02:52:33]MH_I2C_Read... [02:52:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:52:33]Read from MH i2c: E2 [02:52:33]MH_I2C_Read... [02:52:33]Read from MH i2c: E2 17 00 [02:52:33]MH_I2C_Read... [02:52:33]Read from MH i2c: E2 17 00 6A 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4F [02:52:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [02:52:33]wFMCommunicate OK [02:52:33]CreateOFDProtocolMessage done [02:52:33]OFDSenderStorePacket 228490 [02:52:33]StoreOFDPacket docnum=228490 [02:52:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 F5 F5 04 01 69 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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 F1 64 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8A 7C 03 00 35 04 06 00 62 89 11 EE 5A 3D 30 3E 8D 1E D1 A7 60 D7 [02:52:33]CheckFolder [02:52:33]dirname=/storage/ofd_packets [02:52:33]CheckFolder done [02:52:33]ProducePacketName [02:52:33]name=ofd_packets/00228490 [02:52:33]NVStorageSaveData ofd_packets/00228490 [02:52:33]File name is /storage/ofd_packets/00228490 [02:52:33]Write 298 bytes [02:52:33]NVStorageSaveData done [02:52:33]OFDSenderStorePacket done [02:52:33]KKMCreateOFDPacket done [02:52:33]NVStorageSaveData kkm_last_timestamp [02:52:33]File name is /storage/kkm_last_timestamp [02:52:33]Write 4 bytes [02:52:33]NVStorageSaveData done [02:52:33]ExternCall_PrintAddStr [02:52:33]wPrintStart [02:52:33]Write to MH i2c: 01 00 00 6B 14 7F [02:52:33]Write i2c OK [02:52:33]MH_I2C_Read... [02:52:33]Read from MH i2c: 01 [02:52:33]MH_I2C_Read... [02:52:33]Read from MH i2c: 01 07 00 [02:52:33]MH_I2C_Read... [02:52:33]Read from MH i2c: 01 07 00 6B 14 00 00 00 00 00 FF 0F 94 [02:52:33]RasterBufferAndPrint [02:52:33]line Счет N : (1)1965159 [02:52:33]line ИНН: 02508201610067 [02:52:33]line Контрольно-Кассовый Чек [02:52:33]line ПРОДАЖА [02:52:33]line ТРК (МРК, ГНК) : 21 [02:52:33]line Товар: 2710194210 [02:52:33]line ДТ-К-5 [02:52:33]line 39.380 * 76.20 [02:52:33]line = 3000.76 [02:52:33]line НДС 12% НСП 1% [02:52:33]line > о реализуемом товаре [02:52:33]line ИТОГО: 3000.76 [02:52:33]line НСП 1% : 26.55 [02:52:33]line НДС 12% : 318.66 [02:52:33]line Наличными: 0.00 [02:52:33]line Безнал.: 3000.76 [02:52:33]line Место: АЗС № 133 "Партнер Нефть" [02:52:33]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [02:52:33]line СНО: Общий режим [02:52:33]line Чек 26 23.10.2024 02:52 [02:52:33]line Смена: 536 ФФД: 1.0 [02:52:33]line ЗНМ: 0300000091 [02:52:33]line РНМ: 0000000000091685 [02:52:33]line Версия ККМ: 001 [02:52:33]line Платежная система: Mbank [02:52:33]line ФМ: 0000000000871839 [02:52:33]line ФД: 228490 [02:52:33]line ФПД: 108340850874941 [02:52:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T025233&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228490&fm=108340850874941&tin=02508201610067®Number=0000000000091685&sum=300076 [02:52:33]OFD Sender: Processing packet 228490 [packets to send 38, broken 37] [02:52:33]ProducePacketName [02:52:33]name=ofd_packets/00228490 [02:52:33]OFD Sender: To server: pG, [02:52:33]CommunicateWithHost lk.salyk.kg:30040 [02:52:33]ConnectInit lk.salyk.kg [02:52:33]written 0, free lines is 4095 [02:52:33]Connected sock=10 [02:52:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 F5 F5 04 01 69 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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 F1 64 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8A 7C 03 00 35 04 06 00 62 89 11 EE 5A 3D 30 3E 8D 1E D1 A7 60 D7 [02:52:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 5C E8 47 00 B0 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8A 7C 03 00 F4 03 04 00 E7 0F 18 67 B6 04 01 00 00 47 6E 35 77 32 26 74 8C [02:52:33]CommunicateWithHost err = 0 [02:52:33]CheckOFDResponse [02:52:33]1017 (14) - 77093643461234 [02:52:33]1041 (16) - 0000000000871839 [02:52:33]1040 (4) - 228490 [02:52:33]1012 (4) - 22.10.2024 20:49 [02:52:33]1206 (1) - 0 [02:52:33]OFD Sender: Remove packet 228490 [02:52:33]ProducePacketName [02:52:33]name=ofd_packets/00228490 [02:52:33]NVStorageDeleteData [02:52:34]Write to MH i2c: 01 00 00 93 14 A7 [02:52:34]Write i2c OK [02:52:34]MH_I2C_Read... [02:52:34]Read from MH i2c: 01 [02:52:34]MH_I2C_Read... [02:52:34]Read from MH i2c: 01 07 00 [02:52:34]MH_I2C_Read... [02:52:34]Read from MH i2c: 01 07 00 93 14 00 00 00 00 00 CB 0C 85 [02:52:34]RasterBufferAndPrint [02:52:34]line [02:52:34]line [02:52:34]line [02:52:34]line [02:52:34]line [02:52:34]written 0, free lines is 3278 [02:52:34]MH_Cut [02:52:34]Write to MH i2c: D1 01 00 9A 14 01 80 [02:52:34]Write i2c OK [02:52:34]MH_I2C_Read... [02:52:34]Read from MH i2c: D1 [02:52:34]MH_I2C_Read... [02:52:34]Read from MH i2c: D1 01 00 [02:52:34]MH_I2C_Read... [02:52:34]Read from MH i2c: D1 01 00 9A 14 00 7F [02:52:34]Write to MH i2c: 01 00 00 9B 14 AF [02:52:34]Write i2c OK [02:52:34]MH_I2C_Read... [02:52:34]OFD Sender: No OFD packet to send [02:52:35]*** Cut start [02:52:35]*** Partial cut [02:52:35]*** CUTSNS_PIN = 1 [02:52:35]*** CUTSNS_PIN = 0 [02:52:35]*** Brake cut motor [02:52:35]Read from MH i2c: 01 [02:52:35]MH_I2C_Read... [02:52:35]*** Stop cut motor [02:52:35]*** Cut end [02:52:35]Read from MH i2c: 01 07 00 [02:52:35]MH_I2C_Read... [02:52:35]Read from MH i2c: 01 07 00 9B 14 00 00 00 00 00 FF 0F C4 [02:52:35]process_action close_receipt done [02:52:35]requested_data is exist [02:52:35]produce_requested_data [02:52:35]requested_item fm.sn is exist - process it [02:52:35]wFMCommunicate request_size=4 [02:52:35]MH_SAM_APDU [02:52:35]CAPDU: 80 11 00 00 [02:52:35]Write to MH i2c: E2 08 00 9C 14 80 11 00 00 00 00 00 00 2A [02:52:35]Write i2c OK [02:52:35]MH_I2C_Read... [02:52:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:52:35]Read from MH i2c: E2 [02:52:35]MH_I2C_Read... [02:52:35]Read from MH i2c: E2 17 00 [02:52:35]MH_I2C_Read... [02:52:35]Read from MH i2c: E2 17 00 9C 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 81 [02:52:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [02:52:35]wFMCommunicate OK [02:52:35]requested_item fd.num is exist - process it [02:52:35]SAM_PROTO_GetFieldsCounters [02:52:35]wFMCommunicate request_size=4 [02:52:35]MH_SAM_APDU [02:52:35]CAPDU: 80 13 00 00 [02:52:35]Write to MH i2c: E2 08 00 9D 14 80 13 00 00 00 00 00 00 2D [02:52:35]Write i2c OK [02:52:35]MH_I2C_Read... [02:52:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:52:35]Read from MH i2c: E2 [02:52:35]MH_I2C_Read... [02:52:35]Read from MH i2c: E2 62 00 [02:52:35]MH_I2C_Read... [02:52:35]Read from MH i2c: E2 62 00 9D 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8A 7C 03 00 0E 04 04 00 18 02 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 C7 [02:52:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8A 7C 03 00 0E 04 04 00 18 02 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 [02:52:35]wFMCommunicate OK [02:52:35]SAM_PROTO_GetFieldsCounters done [02:52:35]requested_item shift.num is exist - process it [02:52:35]requested_item shift.opened is exist - process it [02:52:35]req_shift_opened [02:52:35]FM_GetShiftState [02:52:35]SAM_PROTO_GetShiftState [02:52:35]wFMCommunicate request_size=4 [02:52:35]MH_SAM_APDU [02:52:35]CAPDU: 80 13 01 00 [02:52:35]Write to MH i2c: E2 08 00 9E 14 80 13 01 00 00 00 00 00 2F [02:52:35]Write i2c OK [02:52:35]MH_I2C_Read... [02:52:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:52:35]Read from MH i2c: E2 [02:52:35]MH_I2C_Read... [02:52:35]Read from MH i2c: E2 0E 00 [02:52:35]MH_I2C_Read... [02:52:35]Read from MH i2c: E2 0E 00 9E 14 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 69 [02:52:35]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [02:52:35]wFMCommunicate OK [02:52:35]SAM_PROTO_GetShiftState done [02:52:35]FM_GetShiftState done [02:52:35]req_shift_opened done [02:52:35]requested_item shift.open_date is exist - process it [02:52:35]req_shift_open_date [02:52:35]req_shift_open_date done [02:52:35]produce_requested_data done [02:52:35]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228490,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352} [02:52:35]process_action_free close_receipt [02:52:35]json_value_free [02:52:35]json_value_free done [02:52:35]process_json_proto returns [02:52:35]Send response to host [02:52:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228490,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352}}} [02:52:35]free response buf [02:52:35]execute_script done [02:52:35]execute_script returns [02:52:35]free content buf [02:52:35]Sock 7.Close socket [02:52:35]Sock 7.Thread stoped [02:52:39]OFD Sender: No OFD packet to send [02:52:44]OFD Sender: No OFD packet to send [02:52:49]OFD Sender: No OFD packet to send [02:52:54]OFD Sender: No OFD packet to send [02:52:59]OFD Sender: No OFD packet to send [02:53:04]OFD Sender: No OFD packet to send [02:53:09]OFD Sender: No OFD packet to send [02:53:14]OFD Sender: No OFD packet to send [02:53:19]OFD Sender: No OFD packet to send [02:53:24]OFD Sender: No OFD packet to send [02:53:29]OFD Sender: No OFD packet to send [02:53:34]OFD Sender: No OFD packet to send [02:53:39]OFD Sender: No OFD packet to send [02:53:44]OFD Sender: No OFD packet to send [02:53:49]OFD Sender: No OFD packet to send [02:53:54]OFD Sender: No OFD packet to send [02:53:59]OFD Sender: No OFD packet to send [02:54:04]OFD Sender: No OFD packet to send [02:54:09]OFD Sender: No OFD packet to send [02:54:14]OFD Sender: No OFD packet to send [02:54:19]OFD Sender: No OFD packet to send [02:54:24]OFD Sender: No OFD packet to send [02:54:29]OFD Sender: No OFD packet to send [02:54:34]OFD Sender: No OFD packet to send [02:54:39]OFD Sender: No OFD packet to send [02:54:44]OFD Sender: No OFD packet to send [02:54:49]OFD Sender: No OFD packet to send [02:54:54]OFD Sender: No OFD packet to send [02:54:59]OFD Sender: No OFD packet to send [02:55:04]OFD Sender: No OFD packet to send [02:55:09]OFD Sender: No OFD packet to send [02:55:14]OFD Sender: No OFD packet to send [02:55:19]OFD Sender: No OFD packet to send [02:55:24]OFD Sender: No OFD packet to send [02:55:29]OFD Sender: No OFD packet to send [02:55:34]OFD Sender: No OFD packet to send [02:55:39]OFD Sender: No OFD packet to send [02:55:44]OFD Sender: No OFD packet to send [02:55:49]OFD Sender: No OFD packet to send [02:55:54]OFD Sender: No OFD packet to send [02:55:59]OFD Sender: No OFD packet to send [02:56:04]OFD Sender: No OFD packet to send [02:56:09]OFD Sender: No OFD packet to send [02:56:14]OFD Sender: No OFD packet to send [02:56:19]OFD Sender: No OFD packet to send [02:56:24]OFD Sender: No OFD packet to send [02:56:29]OFD Sender: No OFD packet to send [02:56:34]OFD Sender: No OFD packet to send [02:56:39]OFD Sender: No OFD packet to send [02:56:44]OFD Sender: No OFD packet to send [02:56:49]OFD Sender: No OFD packet to send [02:56:54]OFD Sender: No OFD packet to send [02:56:59]OFD Sender: No OFD packet to send [02:57:04]OFD Sender: No OFD packet to send [02:57:09]OFD Sender: No OFD packet to send [02:57:14]OFD Sender: No OFD packet to send [02:57:19]OFD Sender: No OFD packet to send [02:57:24]OFD Sender: No OFD packet to send [02:57:29]OFD Sender: No OFD packet to send [02:57:34]OFD Sender: No OFD packet to send [02:57:39]OFD Sender: No OFD packet to send [02:57:44]OFD Sender: No OFD packet to send [02:57:49]OFD Sender: No OFD packet to send [02:57:54]OFD Sender: No OFD packet to send [02:57:59]OFD Sender: No OFD packet to send [02:58:04]OFD Sender: No OFD packet to send [02:58:09]OFD Sender: No OFD packet to send [02:58:14]OFD Sender: No OFD packet to send [02:58:19]OFD Sender: No OFD packet to send [02:58:24]OFD Sender: No OFD packet to send [02:58:29]OFD Sender: No OFD packet to send [02:58:34]OFD Sender: No OFD packet to send [02:58:39]OFD Sender: No OFD packet to send [02:58:44]OFD Sender: No OFD packet to send [02:58:49]OFD Sender: No OFD packet to send [02:58:54]OFD Sender: No OFD packet to send [02:58:59]OFD Sender: No OFD packet to send [02:59:04]OFD Sender: No OFD packet to send [02:59:09]OFD Sender: No OFD packet to send [02:59:14]OFD Sender: No OFD packet to send [02:59:19]OFD Sender: No OFD packet to send [02:59:24]OFD Sender: No OFD packet to send [02:59:29]OFD Sender: No OFD packet to send [02:59:34]OFD Sender: No OFD packet to send [02:59:39]OFD Sender: No OFD packet to send [02:59:44]OFD Sender: No OFD packet to send [02:59:49]OFD Sender: No OFD packet to send [02:59:54]OFD Sender: No OFD packet to send [02:59:59]OFD Sender: No OFD packet to send [03:00:04]OFD Sender: No OFD packet to send [03:00:09]OFD Sender: No OFD packet to send [03:00:14]OFD Sender: No OFD packet to send [03:00:19]OFD Sender: No OFD packet to send [03:00:24]OFD Sender: No OFD packet to send [03:00:29]OFD Sender: No OFD packet to send [03:00:34]OFD Sender: No OFD packet to send [03:00:39]OFD Sender: No OFD packet to send [03:00:44]OFD Sender: No OFD packet to send [03:00:49]OFD Sender: No OFD packet to send [03:00:54]OFD Sender: No OFD packet to send [03:00:59]OFD Sender: No OFD packet to send [03:01:04]OFD Sender: No OFD packet to send [03:01:09]OFD Sender: No OFD packet to send [03:01:14]OFD Sender: No OFD packet to send [03:01:19]OFD Sender: No OFD packet to send [03:01:24]OFD Sender: No OFD packet to send [03:01:29]OFD Sender: No OFD packet to send [03:01:34]accept exits with 9 [03:01:34]New connection [03:01:34]New thread 3066977636 created [03:01:34]Thread 3066834276 joined [03:01:34]Waiting for new connection... [03:01:34] Sock 9.Parse request [03:01:34]Sock 9.Check first char [03:01:34]Sock 9.First char is OK [03:01:34]request: POST /json_proto HTTP/1.0 [03:01:34]Method: POST [03:01:34]URL: /json_proto [03:01:34]Method is POST - this is cgi request [03:01:34]url: /json_proto [03:01:34]query_string will be loaded in cgi processing [03:01:34]execute_cgi json_proto POST (null) [03:01:34]execute_cgi path=json_proto method=POST [03:01:34]POST find Content-Length [03:01:34]Host: 172.17.44.195:8080 [03:01:34]Content-Length: 683 [03:01:34]Content-Type: application/json [03:01:34] [03:01:34]POST finish read [03:01:34]Found Content-Length = 683 [03:01:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:01:34]execute_script... [03:01: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)1965161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:01:34]POST & json_proto [03:01:34]process_json_proto [03:01:34]json parsed OK: [03:01:34]protocol is kg_v1.0 [03:01:34]action value=close_receipt [03:01:34]process_action close_receipt [03:01:34]cmd_close_receipt [03:01:34]MH_GetDate [03:01:34]Write to MH i2c: F0 00 00 9F 14 A2 [03:01:34]Write i2c OK [03:01:34]MH_I2C_Read... [03:01:34]Read from MH i2c: F0 [03:01:34]MH_I2C_Read... [03:01:34]Read from MH i2c: F0 09 00 [03:01:34]MH_I2C_Read... [03:01:34]Read from MH i2c: F0 09 00 9F 14 00 10 67 18 67 82 C9 CF 66 21 [03:01:34]GetLastDocTimeStamp 1729651953 [03:01:34]current date 1729652496 [03:01:34]FM_GetShiftState [03:01:34]SAM_PROTO_GetShiftState [03:01:34]wFMCommunicate request_size=4 [03:01:34]MH_SAM_APDU [03:01:34]CAPDU: 80 13 01 00 [03:01:34]Write to MH i2c: E2 08 00 A0 14 80 13 01 00 00 00 00 00 31 [03:01:34]Write i2c OK [03:01:34]MH_I2C_Read... [03:01:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:01:34]Read from MH i2c: E2 [03:01:34]MH_I2C_Read... [03:01:34]Read from MH i2c: E2 0E 00 [03:01:34]MH_I2C_Read... [03:01:34]Read from MH i2c: E2 0E 00 A0 14 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 6B [03:01:34]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [03:01:34]wFMCommunicate OK [03:01:34]SAM_PROTO_GetShiftState done [03:01:34]FM_GetShiftState done [03:01:34]opened in 1729642352 [03:01:34]opened+sec_in_day 1729728752 [03:01:34]quantity*price = 100021 [03:01:34]sum+1 = 100023 [03:01:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 27 23.10.2024 03:01 Смена: 536 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 228491 ФПД: 21854714596710 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T030136&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228491&fm=21854714596710&tin=02508201610067®Number=0000000000091685&sum=100000 [03:01:35]StoreToDocumentArchive [03:01:35]shift 536 fd 228491 [03:01:35]save to /storage/0536/doc_00228491 [03:01:35]save last doc name /storage/0536/doc_00228491 to /storage/kkm_last_doc_name [03:01:35]save OK [03:01:35]Clear old archive folders... [03:01:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:01:35]tlvbuf is 002F7C60 [03:01:35]SAM_PROTO_ClearQueue [03:01:35]wFMCommunicate request_size=4 [03:01:35]MH_SAM_APDU [03:01:35]CAPDU: 80 09 00 00 [03:01:35]Write to MH i2c: E2 08 00 AD 14 80 09 00 00 00 00 00 00 33 [03:01:35]Write i2c OK [03:01:35]MH_I2C_Read... [03:01:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:01:36]Read from MH i2c: E2 [03:01:36]MH_I2C_Read... [03:01:36]Read from MH i2c: E2 03 00 [03:01:36]MH_I2C_Read... [03:01:36]Read from MH i2c: E2 03 00 AD 14 00 90 00 35 [03:01:36]RAPDU: 90 00 [03:01:36]wFMCommunicate OK [03:01:36]SAM_PROTO_ClearQueue done [03:01:36]KKMCreateOFDPacket [03:01:36]OFDProtocolAddRootSTLVToBuf [03:01:36]FM_MakeSignedData [03:01:36]FM_MakeSignedData [03:01:36]SAM_PROTO_SignData [03:01:36]wFMCommunicate request_size=4 [03:01:36]MH_SAM_APDU [03:01:36]CAPDU: 80 0D 01 02 [03:01:36]Write to MH i2c: E2 08 00 AE 14 80 0D 01 02 00 00 00 00 3B [03:01:36]Write i2c OK [03:01:36]MH_I2C_Read... [03:01:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:01:36]Read from MH i2c: E2 [03:01:36]MH_I2C_Read... [03:01:36]Read from MH i2c: E2 03 00 [03:01:36]MH_I2C_Read... [03:01:36]Read from MH i2c: E2 03 00 AE 14 00 90 00 36 [03:01:36]RAPDU: 90 00 [03:01:36]wFMCommunicate OK [03:01:36]wFMCommunicate request_size=255 [03:01:36]MH_SAM_APDU [03:01: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 10 67 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8B 7C 03 00 35 04 06 00 13 [03:01:36]Write to MH i2c: E2 02 01 AF 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 10 67 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8B 7C 03 00 35 04 06 00 13 00 00 37 [03:01:36]Write i2c OK [03:01:36]MH_I2C_Read... [03:01:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:01:36]Read from MH i2c: E2 [03:01:36]MH_I2C_Read... [03:01:36]Read from MH i2c: E2 03 00 [03:01:36]MH_I2C_Read... [03:01:36]Read from MH i2c: E2 03 00 AF 14 00 90 00 37 [03:01:36]RAPDU: 90 00 [03:01:36]wFMCommunicate OK [03:01:36]wFMCommunicate request_size=10 [03:01:36]MH_SAM_APDU [03:01:36]CAPDU: 80 0D 02 02 05 E0 72 80 0D 66 [03:01:36]Write to MH i2c: E2 0D 00 B0 14 80 0D 02 02 05 00 E0 72 80 0D 66 00 00 8D [03:01:36]Write i2c OK [03:01:36]MH_I2C_Read... [03:01:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:01:36]Read from MH i2c: E2 [03:01:36]MH_I2C_Read... [03:01:36]Read from MH i2c: E2 03 00 [03:01:36]MH_I2C_Read... [03:01:36]Read from MH i2c: E2 03 00 B0 14 00 90 00 38 [03:01:36]RAPDU: 90 00 [03:01:36]wFMCommunicate OK [03:01:36]wFMCommunicate request_size=4 [03:01:36]MH_SAM_APDU [03:01:36]CAPDU: 80 0D 03 02 [03:01:36]Write to MH i2c: E2 08 00 B1 14 80 0D 03 02 00 00 00 00 40 [03:01:36]Write i2c OK [03:01:36]MH_I2C_Read... [03:01:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:01:36]Read from MH i2c: E2 [03:01:36]MH_I2C_Read... [03:01:36]Read from MH i2c: E2 0B 00 [03:01:36]MH_I2C_Read... [03:01:36]Read from MH i2c: E2 0B 00 B1 14 00 B9 C7 31 CE 5C 53 55 68 90 00 2C [03:01:36]RAPDU: B9 C7 31 CE 5C 53 55 68 90 00 [03:01:36]wFMCommunicate OK [03:01:36]SAM_PROTO_SignData done [03:01:36]FM_MakeSignedData done [03:01:36]CreateOFDProtocolMessage [03:01:36]wFMCommunicate request_size=4 [03:01:36]MH_SAM_APDU [03:01:36]CAPDU: 80 11 00 00 [03:01:36]Write to MH i2c: E2 08 00 B2 14 80 11 00 00 00 00 00 00 40 [03:01:36]Write i2c OK [03:01:36]MH_I2C_Read... [03:01:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:01:36]Read from MH i2c: E2 [03:01:36]MH_I2C_Read... [03:01:36]Read from MH i2c: E2 17 00 [03:01:36]MH_I2C_Read... [03:01:36]Read from MH i2c: E2 17 00 B2 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 97 [03:01:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [03:01:36]wFMCommunicate OK [03:01:36]CreateOFDProtocolMessage done [03:01:36]OFDSenderStorePacket 228491 [03:01:36]StoreOFDPacket docnum=228491 [03:01:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 6B 20 07 01 0E 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 10 67 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8B 7C 03 00 35 04 06 00 13 E0 72 80 0D 66 B9 C7 31 CE 5C 53 55 68 [03:01:36]CheckFolder [03:01:36]dirname=/storage/ofd_packets [03:01:36]CheckFolder done [03:01:36]ProducePacketName [03:01:36]name=ofd_packets/00228491 [03:01:36]NVStorageSaveData ofd_packets/00228491 [03:01:36]File name is /storage/ofd_packets/00228491 [03:01:36]Write 301 bytes [03:01:36]NVStorageSaveData done [03:01:36]OFDSenderStorePacket done [03:01:36]KKMCreateOFDPacket done [03:01:36]NVStorageSaveData kkm_last_timestamp [03:01:36]File name is /storage/kkm_last_timestamp [03:01:36]Write 4 bytes [03:01:36]NVStorageSaveData done [03:01:36]ExternCall_PrintAddStr [03:01:36]wPrintStart [03:01:36]Write to MH i2c: 01 00 00 B3 14 C7 [03:01:36]Write i2c OK [03:01:36]MH_I2C_Read... [03:01:36]Read from MH i2c: 01 [03:01:36]MH_I2C_Read... [03:01:36]Read from MH i2c: 01 07 00 [03:01:36]MH_I2C_Read... [03:01:36]Read from MH i2c: 01 07 00 B3 14 00 00 00 00 00 FF 0F DC [03:01:36]RasterBufferAndPrint [03:01:36]line Счет N : (1)1965161 [03:01:36]line ИНН: 02508201610067 [03:01:36]line Контрольно-Кассовый Чек [03:01:36]line ПРОДАЖА [03:01:36]line ТРК (МРК, ГНК) : 34 [03:01:36]line Товар: 2710124500 [03:01:36]line Аи-95-К-5 [03:01:36]line 13.480 * 74.20 [03:01:36]line = 1000.22 [03:01:36]line НДС 12% НСП 1% [03:01:36]line > о реализуемом товаре [03:01:36]line ОКРУГЛЕНИЕ: -0.22 [03:01:36]line ИТОГО: 1000.00 [03:01:36]line Внесено: 1000.00 [03:01:36]line СДАЧА: 0.00 [03:01:36]line НСП 1% : 8.85 [03:01:36]line НДС 12% : 106.22 [03:01:36]line Наличными: 1000.00 [03:01:36]line Безнал.: 0.00 [03:01:36]line Место: АЗС № 133 "Партнер Нефть" [03:01:36]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [03:01:36]line СНО: Общий режим [03:01:36]line Чек 27 23.10.2024 03:01 [03:01:36]line Смена: 536 ФФД: 1.0 [03:01:36]line ЗНМ: 0300000091 [03:01:36]line РНМ: 0000000000091685 [03:01:36]line Версия ККМ: 001 [03:01:36]line ФМ: 0000000000871839 [03:01:36]line ФД: 228491 [03:01:36]line ФПД: 21854714596710 [03:01:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T030136&type=1&operation_type=1&fn_number=0000000000871839&fd_number=228491&fm=21854714596710&tin=02508201610067®Number=0000000000091685&sum=100000 [03:01:36]OFD Sender: Processing packet 228491 [packets to send 38, broken 37] [03:01:36]ProducePacketName [03:01:36]name=ofd_packets/00228491 [03:01:36]OFD Sender: To server: pG, [03:01:36]CommunicateWithHost lk.salyk.kg:30040 [03:01:36]ConnectInit lk.salyk.kg [03:01:36]written 0, free lines is 4095 [03:01:36]Connected sock=7 [03:01:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 6B 20 07 01 0E 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 10 67 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8B 7C 03 00 35 04 06 00 13 E0 72 80 0D 66 B9 C7 31 CE 5C 53 55 68 [03:01:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 06 CF 47 00 5A 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8B 7C 03 00 F4 03 04 00 07 12 18 67 B6 04 01 00 00 AB 88 62 EA B2 DB C5 AD [03:01:37]CommunicateWithHost err = 0 [03:01:37]CheckOFDResponse [03:01:37]1017 (14) - 77093643461234 [03:01:37]1041 (16) - 0000000000871839 [03:01:37]1040 (4) - 228491 [03:01:37]1012 (4) - 22.10.2024 20:58 [03:01:37]1206 (1) - 0 [03:01:37]OFD Sender: Remove packet 228491 [03:01:37]ProducePacketName [03:01:37]name=ofd_packets/00228491 [03:01:37]NVStorageDeleteData [03:01:37]Write to MH i2c: 01 00 00 DD 14 F1 [03:01:37]Write i2c OK [03:01:37]MH_I2C_Read... [03:01:37]Read from MH i2c: 01 [03:01:37]MH_I2C_Read... [03:01:37]Read from MH i2c: 01 07 00 [03:01:37]MH_I2C_Read... [03:01:37]Read from MH i2c: 01 07 00 DD 14 00 00 00 00 00 91 0C 95 [03:01:37]RasterBufferAndPrint [03:01:37]line [03:01:37]line [03:01:37]line [03:01:37]line [03:01:37]line [03:01:37]written 0, free lines is 3222 [03:01:37]MH_Cut [03:01:37]Write to MH i2c: D1 01 00 E4 14 01 CA [03:01:37]Write i2c OK [03:01:37]MH_I2C_Read... [03:01:37]Read from MH i2c: D1 [03:01:37]MH_I2C_Read... [03:01:37]Read from MH i2c: D1 01 00 [03:01:37]MH_I2C_Read... [03:01:37]Read from MH i2c: D1 01 00 E4 14 00 C9 [03:01:37]Write to MH i2c: 01 00 00 E5 14 F9 [03:01:37]Write i2c OK [03:01:37]MH_I2C_Read... [03:01:37]OFD Sender: No OFD packet to send [03:01:38]*** Cut start [03:01:38]*** Partial cut [03:01:38]*** CUTSNS_PIN = 1 [03:01:38]*** CUTSNS_PIN = 0 [03:01:38]*** Brake cut motor [03:01:38]Read from MH i2c: 01 [03:01:38]MH_I2C_Read... [03:01:38]*** Stop cut motor [03:01:38]*** Cut end [03:01:38]Read from MH i2c: 01 07 00 [03:01:38]MH_I2C_Read... [03:01:38]Read from MH i2c: 01 07 00 E5 14 00 00 00 00 00 FF 0F 0E [03:01:38]process_action close_receipt done [03:01:38]requested_data is exist [03:01:38]produce_requested_data [03:01:38]requested_item fm.sn is exist - process it [03:01:38]wFMCommunicate request_size=4 [03:01:38]MH_SAM_APDU [03:01:38]CAPDU: 80 11 00 00 [03:01:38]Write to MH i2c: E2 08 00 E6 14 80 11 00 00 00 00 00 00 74 [03:01:38]Write i2c OK [03:01:38]MH_I2C_Read... [03:01:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:01:39]Read from MH i2c: E2 [03:01:39]MH_I2C_Read... [03:01:39]Read from MH i2c: E2 17 00 [03:01:39]MH_I2C_Read... [03:01:39]Read from MH i2c: E2 17 00 E6 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CB [03:01:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [03:01:39]wFMCommunicate OK [03:01:39]requested_item fd.num is exist - process it [03:01:39]SAM_PROTO_GetFieldsCounters [03:01:39]wFMCommunicate request_size=4 [03:01:39]MH_SAM_APDU [03:01:39]CAPDU: 80 13 00 00 [03:01:39]Write to MH i2c: E2 08 00 E7 14 80 13 00 00 00 00 00 00 77 [03:01:39]Write i2c OK [03:01:39]MH_I2C_Read... [03:01:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:01:39]Read from MH i2c: E2 [03:01:39]MH_I2C_Read... [03:01:39]Read from MH i2c: E2 62 00 [03:01:39]MH_I2C_Read... [03:01:39]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 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8B 7C 03 00 0E 04 04 00 18 02 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 15 [03:01:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8B 7C 03 00 0E 04 04 00 18 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:01:39]wFMCommunicate OK [03:01:39]SAM_PROTO_GetFieldsCounters done [03:01:39]requested_item shift.num is exist - process it [03:01:39]requested_item shift.opened is exist - process it [03:01:39]req_shift_opened [03:01:39]FM_GetShiftState [03:01:39]SAM_PROTO_GetShiftState [03:01:39]wFMCommunicate request_size=4 [03:01:39]MH_SAM_APDU [03:01:39]CAPDU: 80 13 01 00 [03:01:39]Write to MH i2c: E2 08 00 E8 14 80 13 01 00 00 00 00 00 79 [03:01:39]Write i2c OK [03:01:39]MH_I2C_Read... [03:01:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:01:39]Read from MH i2c: E2 [03:01:39]MH_I2C_Read... [03:01:39]Read from MH i2c: E2 0E 00 [03:01:39]MH_I2C_Read... [03:01:39]Read from MH i2c: E2 0E 00 E8 14 00 09 00 01 70 3F 18 67 00 00 00 00 90 00 B3 [03:01:39]RAPDU: 09 00 01 70 3F 18 67 00 00 00 00 90 00 [03:01:39]wFMCommunicate OK [03:01:39]SAM_PROTO_GetShiftState done [03:01:39]FM_GetShiftState done [03:01:39]req_shift_opened done [03:01:39]requested_item shift.open_date is exist - process it [03:01:39]req_shift_open_date [03:01:39]req_shift_open_date done [03:01:39]produce_requested_data done [03:01:39]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":228491,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352} [03:01:39]process_action_free close_receipt [03:01:39]json_value_free [03:01:39]json_value_free done [03:01:39]process_json_proto returns [03:01:39]Send response to host [03:01:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":228491,"shift.num":536,"shift.opened":1,"shift.open_date":1729642352}}} [03:01:39]free response buf [03:01:39]execute_script done [03:01:39]execute_script returns [03:01:39]free content buf [03:01:39]Sock 9.Close socket [03:01:39]Sock 9.Thread stoped [03:01:42]OFD Sender: No OFD packet to send [03:01:47]OFD Sender: No OFD packet to send [03:01:52]OFD Sender: No OFD packet to send [03:01:57]OFD Sender: No OFD packet to send [03:02:02]OFD Sender: No OFD packet to send [03:02:07]OFD Sender: No OFD packet to send [03:02:12]OFD Sender: No OFD packet to send [03:02:17]OFD Sender: No OFD packet to send [03:02:22]OFD Sender: No OFD packet to send [03:02:27]OFD Sender: No OFD packet to send [03:02:32]OFD Sender: No OFD packet to send [03:02:37]OFD Sender: No OFD packet to send [03:02:42]OFD Sender: No OFD packet to send [03:02:47]OFD Sender: No OFD packet to send